From sandricionut at yahoo.com Sun Feb 1 02:28:13 2009 From: sandricionut at yahoo.com (sandric ionut) Date: Sun, 1 Feb 2009 02:28:13 -0800 (PST) Subject: [mapserver-users] create mapObj without map file Message-ID: <114460.36585.qm@web51310.mail.re2.yahoo.com> Hello: Is it possible to create a mapObj object without having a map file? and than create layers and define symbology and everything for each layer, than add the layer to the map? I am trying to eliminate the need of having the map file and read from that map file Thank you, Ionut -------------- next part -------------- An HTML attachment was scrubbed... URL: From sandricionut at yahoo.com Sun Feb 1 03:02:44 2009 From: sandricionut at yahoo.com (sandric ionut) Date: Sun, 1 Feb 2009 03:02:44 -0800 (PST) Subject: [mapserver-users] create mapObj without map file References: <114460.36585.qm@web51310.mail.re2.yahoo.com> <1233485260.4976.2.camel@localhost> Message-ID: <433846.37531.qm@web51311.mail.re2.yahoo.com> Thank you Nicol: I am using C# Mapscript. I am trying now to see if is working by just adding a file with the map extension, but with no line inside, just an empty file and than create everything from code (layers etc) Ionut ________________________________ From: Nicol Hermann To: sandric ionut Sent: Sunday, February 1, 2009 12:47:40 PM Subject: Re: [mapserver-users] create mapObj without map file Hello Ionut, yes it is possible if you are using (PHP) mapscript. Using PHP mapscript you can do the following dl('./bin/php_mapscript.so'); $map = ms_newMapObj('') or die('Unable to open mapfile.'); $map -> set ('width', 300); ... $Layer = ms_newLayerObj($map); Hope this helps Best regards Nicol Am Sonntag, den 01.02.2009, 02:28 -0800 schrieb sandric ionut: >? > Hello: >? > Is it possible to create a mapObj object without having a map file? > and than create layers and define symbology and everything for each > layer, than add the layer to the map? >? > I am trying to eliminate the need of having the map file and read from > that map file >? > Thank you, >? > Ionut > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From sandricionut at yahoo.com Sun Feb 1 04:18:37 2009 From: sandricionut at yahoo.com (sandric ionut) Date: Sun, 1 Feb 2009 04:18:37 -0800 (PST) Subject: [mapserver-users] OpenLayers and Mapscript C# Message-ID: <78919.50635.qm@web51306.mail.re2.yahoo.com> Hello: Is it possible to use Mapscript C# and OpenLayers? I want to create a website using Mapscript C# and use OpenLayers to handle the zoom and pan May I receive an example for a similar implementation? Thank you, Ionut -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Sun Feb 1 07:38:50 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Sun, 1 Feb 2009 16:38:50 +0100 Subject: [mapserver-users] create mapObj without map file In-Reply-To: <114460.36585.qm@web51310.mail.re2.yahoo.com> References: <114460.36585.qm@web51310.mail.re2.yahoo.com> Message-ID: Hi Ionut, You could create a map object without having to load a mapfile something like this: mapObj map = new mapObj(null); map.name = "testmap"; map.extent = new rectObj(313448.426748,7345979.999602,360571.684951,7413999.938403,0); map..units = MS_UNITS.MS_METERS; map.height = 400; map.width = 400; map. layerObj layer = new layerObj(map); layer.connectiontype = MS_CONNECTION_TYPE.MS_OGR; layer.type = MS_LAYER_TYPE.MS_LAYER_LINE; layer.connection = "[my ogr connection]"; layer.status = mapscript.MS_ON; classObj class_obj = new classObj(layer); styleObj style= new styleObj(class_obj); style.color = new colorObj(0, 0, 255, 0); style.size = 10; etc. See http://mapserver.org/mapscript/mapscript.html for more information about the API. Best regards, Tamas 2009/2/1 sandric ionut > > Hello: > > Is it possible to create a mapObj object without having a map file? and > than create layers and define symbology and everything for each layer, than > add the layer to the map? > > I am trying to eliminate the need of having the map file and read from that > map file > > Thank you, > > Ionut > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Sun Feb 1 07:46:11 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Sun, 1 Feb 2009 16:46:11 +0100 Subject: [mapserver-users] OpenLayers and Mapscript C# In-Reply-To: <78919.50635.qm@web51306.mail.re2.yahoo.com> References: <78919.50635.qm@web51306.mail.re2.yahoo.com> Message-ID: Hi, This question is more about an OpenLayers than a mapserver issue. I suspect OpenLayers can rely on commonly used mapping interfaces like MapServer CGI / WMS / KaMap and you should implement one of those interface specifications in your MapScript C# application to be able to interact. Best regards, Tamas 2009/2/1 sandric ionut > Hello: > > Is it possible to use Mapscript C# and OpenLayers? I want to create a > website using Mapscript C# and use OpenLayers to handle the zoom and pan > May I receive an example for a similar implementation? > > Thank you, > > Ionut > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From randre at gmail.com Sun Feb 1 11:01:28 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Sun, 1 Feb 2009 11:01:28 -0800 Subject: [mapserver-users] Python mapscript, cStringIO, and the AGG renderer Message-ID: <9c2015090902011101l1c88c00egd68551315452b26c@mail.gmail.com> Hi All, I'm having problems using the AGG renderer with Python mapscript. I believe it may be due to the way in which I am writing the image into a cStringIO.StringIO() object, but I'm not sure. I do know that if I comment out my OUTPUTFORMAT section of the mapfile, I get an image back in my browser. I'm hoping I can fix this somehow with a FORMATOPTION. - Below is the mapscript and Python CGI: #! /usr/bin/python import mapscript import cStringIO def DrawMap(): mapfile = "/var/www/mapfiles/gis_layers/gis_layers.map" mapobject = mapscript.mapObj(mapfile) mapimage = mapobject.draw() f = cStringIO.StringIO() mapimage.write(f) print "Content-type: image/png\n" f.seek(0) print f.read() print mapimage if __name__ == "__main__": DrawMap() - And here is the OUTPUTFORMAT section that's causing the problem: OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END Thanks, Roger -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Sun Feb 1 12:05:00 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sun, 1 Feb 2009 21:05:00 +0100 Subject: [mapserver-users] Python mapscript, cStringIO, and the AGG renderer In-Reply-To: <9c2015090902011101l1c88c00egd68551315452b26c@mail.gmail.com> References: <9c2015090902011101l1c88c00egd68551315452b26c@mail.gmail.com> Message-ID: > I'm having problems using the AGG renderer with Python mapscript. what version of mapserver, and exactly what problem? regards, thomas From vladimir at gessolutions.com Sun Feb 1 14:04:19 2009 From: vladimir at gessolutions.com (VladimirC) Date: Sun, 1 Feb 2009 14:04:19 -0800 (PST) Subject: [mapserver-users] mapserver and pmapper In-Reply-To: <48C61896.4050107@casnt.ro> References: <48C61896.4050107@casnt.ro> Message-ID: <1233525859608-2255392.post@n2.nabble.com> Same problem running MapServer 5.0.3 and Pmaper 3.2 installed as Debian binaries. Were you able to resolve? Victor Sterpu wrote: > > In compiled mapserver 5.2.0 and everythig works fine. > But when I tryed to use pmapper I receive this MapServer error: > > Warning: [MapServer Error]: msEvalRegex(): String (/var/www/pmap/config) > failed expression test. in /var/www/pmap/incphp/globals.php on line 60 > Warning: Failed to open map file /var/www/pmap/config in > /var/www/pmap/incphp/globals.php on line 60 > Fatal error: Call to a member function getAllGroupNames() on a > non-object in /var/www/pmap/incphp/init/initmap.php on line 129 > > Pmapper is version 3.2.0. > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/mapserver-and-pmapper-tp1972469p2255392.html Sent from the Mapserver - User mailing list archive at Nabble.com. From randre at gmail.com Sun Feb 1 16:37:26 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Sun, 1 Feb 2009 16:37:26 -0800 Subject: [mapserver-users] Python mapscript, cStringIO, and the AGG renderer In-Reply-To: References: <9c2015090902011101l1c88c00egd68551315452b26c@mail.gmail.com> Message-ID: <9c2015090902011637i118812d6ic0fcd5436c5e50eb@mail.gmail.com> - MapServer version 5.2.0 [image: The image "http://localhost/cgi-bin/mapscript/dynamic_map.py" cannot be displayed, because it contains errors.]- "The image cannot be displayed, because it contains errors." -- On Sun, Feb 1, 2009 at 12:05 PM, thomas bonfort wrote: > > I'm having problems using the AGG renderer with Python mapscript. > > what version of mapserver, and exactly what problem? > > regards, > thomas > -------------- next part -------------- An HTML attachment was scrubbed... URL: From death_knight0911 at yahoo.com Sun Feb 1 20:18:50 2009 From: death_knight0911 at yahoo.com (MeLv1n wAuRaN) Date: Sun, 1 Feb 2009 20:18:50 -0800 (PST) Subject: [mapserver-users] problem with raster data.. In-Reply-To: <49848A1B.379F.0037.0@asurequality.com> Message-ID: <647283.31282.qm@web54201.mail.re2.yahoo.com> i already included the gdaltindex path in the environment variable. But another error occured, it said: "C:\ms4w\data\raster>gdaltindex sample_index.shp sample*.tif ERROR 4: Unable to open sample_index.shp or sample_index.SHP. Creating new index file... ERROR 4: `sample*.tif' does not exist in the file system, and is not recognised as a supported dataset name. Unable to open sample*.tif, skipping." what do you think is the problem here? --- On Sat, 1/31/09, Robert Sanson wrote: From: Robert Sanson Subject: Re: [mapserver-users] problem with raster data.. To: death_knight0911 at yahoo.com Date: Saturday, January 31, 2009, 12:27 PM It looks like it can't find gdaltindex.exe in the PATH environment variable. You will have to add the directory that gdaltindex.erxe lives in to your PATH variable, via Control Panel. ? Option 2 is to specify the location of gdaltindex.exe when you run it: ? eg. ? C:\ms4w\data\raster>C:\ms4w\tools\gdaltindex sample_index.shp sample*.tif Robert >>> MeLv1n wAuRaN 30/01/2009 4:36 p.m. >>> hi again robert, i tried running it in the cmd but it gives me an error message: C:\ms4w\data\raster>gdaltindex sample_index.shp sample*.tif 'gdaltindex' is not recognized as an internal or external command, operable program or batch file. so, what did i miss in the mapserver configuration? i'm using MS4W_2.3.1 --- On Fri, 1/30/09, Robert Sanson wrote: From: Robert Sanson Subject: Re: [mapserver-users] problem with raster data.. To: death_knight0911 at yahoo.com Date: Friday, January 30, 2009, 11:11 AM If you intend to store the sample_index.shp file in the same directory as your TIF files, then open a DOS cmd window and navigate to that directory "cd c:\ms4w\data\raster". once you are there, simply run: ? gdaltindex sample_index.shp sample*.tif ? This will create the sample_index.shp file in that directory. the accompanying .dbf file will haev a single attribute field "Location" that will hold the name of each TIF file. ? If you want, you can spatially index this file using the shptree utility that comes with Mapserver. It will create a spatial index .qix file. ? In your Map file you will need to specify the location of the sample_index. ? regards, ? Robert Click here to report this email as spam. ------------------------------------------------------------------ The?contents?of?this?email?are?confidential?to?AsureQuality.?If?you?have?received?this?communication?in?error?please?notify?the?sender?immediately?and?delete?the?message?and?any?attachments.?The?opinions?expressed?in?this?email?are?not?necessarily?those?of?AsureQuality.?This?message?has?been?scanned?for?known?viruses?before?delivery.?AsureQuality?supports?the?Unsolicited?Electronic?Messages?Act?2007.?If?you?do?not?wish?to?receive?similar?communications?in?future,?please?notify?the?sender?of?this?message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Sun Feb 1 20:26:45 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 01 Feb 2009 23:26:45 -0500 Subject: [mapserver-users] problem with raster data.. In-Reply-To: <647283.31282.qm@web54201.mail.re2.yahoo.com> References: <647283.31282.qm@web54201.mail.re2.yahoo.com> Message-ID: <49867605.5080507@swoodbridge.com> MeLv1n wAuRaN wrote: > i already included the gdaltindex path in the environment variable. > But another error occured, it said: > > "C:\ms4w\data\raster>gdaltindex sample_index.shp sample*.tif > ERROR 4: Unable to open sample_index.shp or sample_index.SHP. > Creating new index file... This error is ok, it is just telling you that the index file does not already exist and it is creating a new one. gdaltindex appends to an existing file so keep that in mind if you need to add to your tileindex. > ERROR 4: `sample*.tif' does not exist in the file system, > and is not recognised as a supported dataset name. This says that there are no files in the current directory named sample*.tif what does a dir command respond with? -Steve W > Unable to open sample*.tif, skipping." > > what do you think is the problem here? > > --- On *Sat, 1/31/09, Robert Sanson //* wrote: > > From: Robert Sanson > Subject: Re: [mapserver-users] problem with raster data.. > To: death_knight0911 at yahoo.com > Date: Saturday, January 31, 2009, 12:27 PM > > It looks like it can't find gdaltindex.exe in the PATH environment > variable. You will have to add the directory that gdaltindex.erxe > lives in to your PATH variable, via Control Panel. > > Option 2 is to specify the location of gdaltindex.exe when you run it: > > eg. > > C:\ms4w\data\raster>C:\ms4w\tools\gdaltindex sample_index.shp > sample*.tif > Robert > > >>> MeLv1n wAuRaN 30/01/2009 4:36 p.m. >>> > hi again robert, > > i tried running it in the cmd but it gives me an error message: > > C:\ms4w\data\raster>gdaltindex sample_index.shp sample*.tif > 'gdaltindex' is not recognized as an internal or external command, > operable program or batch file. > > so, what did i miss in the mapserver configuration? i'm using MS4W_2.3.1 > > > --- On *Fri, 1/30/09, Robert Sanson //* wrote: > > From: Robert Sanson > Subject: Re: [mapserver-users] problem with raster data.. > To: death_knight0911 at yahoo.com > Date: Friday, January 30, 2009, 11:11 AM > > If you intend to store the sample_index.shp file in the same > directory as your TIF files, then open a DOS cmd window and > navigate to that directory "cd c:\ms4w\data\raster". once you > are there, simply run: > > gdaltindex sample_index.shp sample*.tif > > This will create the sample_index.shp file in that directory. > the accompanying .dbf file will haev a single attribute field > "Location" that will hold the name of each TIF file. > > If you want, you can spatially index this file using the shptree > utility that comes with Mapserver. It will create a spatial > index .qix file. > > In your Map file you will need to specify the location of the > sample_index. > > regards, > > Robert > > > > > Click here > to report this email as spam. > > > > > ------------------------------------------------------------------ > The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. > ------------------------------------------------------------------ > > > > This message has been scanned for malware by SurfControl plc. > www.surfcontrol.com > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From umn-ms at hydrotec.de Sun Feb 1 23:24:34 2009 From: umn-ms at hydrotec.de (umn-ms at hydrotec.de) Date: Mon, 2 Feb 2009 08:24:34 +0100 Subject: [mapserver-users] OpenLayers and Mapscript C# In-Reply-To: Message-ID: > ... CGI / WMS / KaMap and you should implement one of those > interface specifications in your MapScript C# Maybe http://mapserver.org/ogc/mapscript.html is helpfull by implementing WMS with C#. Bye, Benedikt Rothe mapserver-users-bounces at lists.osgeo.org schrieb am 01.02.2009 16:46:11: > Hi, > > This question is more about an OpenLayers than a mapserver issue. I > suspect OpenLayers can rely on commonly used mapping interfaces like > MapServer CGI / WMS / KaMap and you should implement one of those > interface specifications in your MapScript C# application to be able > to interact. > > Best regards, > > Tamas > > > 2009/2/1 sandric ionut > Hello: > > Is it possible to use Mapscript C# and OpenLayers? I want to create > a website using Mapscript C# and use OpenLayers to handle the zoom and pan > May I receive an example for a similar implementation? > > Thank you, > > Ionut > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From death_knight0911 at yahoo.com Mon Feb 2 02:23:44 2009 From: death_knight0911 at yahoo.com (MeLv1n wAuRaN) Date: Mon, 2 Feb 2009 02:23:44 -0800 (PST) Subject: [mapserver-users] problem with raster data.. In-Reply-To: <49867605.5080507@swoodbridge.com> Message-ID: <858472.60776.qm@web54201.mail.re2.yahoo.com> Ok so basically it is done right? it created sample_index.dbf, sample_index.shp, and sample_index.shx. Now, which file should i load into the .MAP as my basemap? An example from Robert Sanson: LAYER ? NAME nz250ktm ? GROUP "Toposcans" ? TYPE RASTER ? STATUS ON ? TILEINDEX ../data/nztm/250k_index ? TILEITEM Location ? MAXSCALE 300000 ? MINSCALE 75000 well, this is a layer right? what i mean is, this tile index will be the basemap of the map instead of a layer, for example llike: MAP ?? NAME "..........." ?? STATUS ........ ?? EXTENT .................... ?? IMAGETYPE ........ ?? SIZE .............. ?? SHAPEPATH "......................." ?? IMAGECOLOR ......... ?? ......... ?? ......... ?? ......... END or is this tileindex supposed to be a layer instead of a basemap? --- On Mon, 2/2/09, Stephen Woodbridge wrote: From: Stephen Woodbridge Subject: Re: [mapserver-users] problem with raster data.. To: death_knight0911 at yahoo.com Cc: "Robert Sanson" , mapserver-users at lists.osgeo.org Date: Monday, February 2, 2009, 12:26 PM MeLv1n wAuRaN wrote: > i already included the gdaltindex path in the environment variable. But another error occured, it said: > > "C:\ms4w\data\raster>gdaltindex sample_index.shp sample*.tif > ERROR 4: Unable to open sample_index.shp or sample_index.SHP. > Creating new index file... This error is ok, it is just telling you that the index file does not already exist and it is creating a new one. gdaltindex appends to an existing file so keep that in mind if you need to add to your tileindex. > ERROR 4: `sample*.tif' does not exist in the file system, > and is not recognised as a supported dataset name. This says that there are no files in the current directory named sample*.tif what does a dir command respond with? -Steve W > Unable to open sample*.tif, skipping." > > what do you think is the problem here? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From subha at gslab.com Mon Feb 2 04:04:07 2009 From: subha at gslab.com (Subha Ramakrishnan) Date: Mon, 02 Feb 2009 17:34:07 +0530 Subject: [mapserver-users] Transverse Mercator projection In-Reply-To: <1233525859608-2255392.post@n2.nabble.com> References: <48C61896.4050107@casnt.ro> <1233525859608-2255392.post@n2.nabble.com> Message-ID: <4986E137.5000302@gslab.com> Hi, I am trying to show some data in Transverse Mercator Projection using MapServer. When i searched on google, i got the corresponding EPSG code as 9807 but there is not entry for this in "epsg" file of PROJ 4 library. And i am not able to get the entry for the same that i can add to the file. The "prj" file that came with the shape file said "PROJECTION["Transverse_Mercator"]". I am using Mapserver 5.0.2. Has anyone worked with this projection or knows how to show the images or convert them to EPSG:4326? Please help. Thanks a lot. Regards, Subha From vladimir at gessolutions.com Mon Feb 2 03:47:35 2009 From: vladimir at gessolutions.com (Vladimir Cvejanovic) Date: Mon, 02 Feb 2009 12:47:35 +0100 Subject: [mapserver-users] P.MAPPER 4.0 overrides rendering setting in map file? Message-ID: <4986DD57.8080207@gessolutions.com> Hi Everyone, I've joined the list to see if anyone else has encountered the following issue and can shed some light on how to resolve it. I'm not getting any anti-aliasing in AGG rendered images when accessing the map through pmapper. The weird thing is that rendering the same mapfile using mapserver CGI does produce anti-aliased output: CGI Example: localhost/cgi-bin/mapserv?map=/var/www/pmapper-4.0-beta/config/default/example-proj.map&layer=polyshape&mode=map My suspicion is that the output I'm seeing in pmapper isn't actually rendered using AGG as instructed by the mapfile but is defaulting to GD. I haven't been able to confirm this suspicion because even with debug cranked up to 5 I can't seem to generate any debug info regarding the rendering engine. My second suspicion is that I may be missing a crucial pmapper specific config param in either the mapfile or the pmapper config file (config_default.xml in 4.0-beta). I'm not able to find docs for v4. OS: Ubuntu Intrepid (ssame behaviour confirmed on Debian Lenny) PMAPPER v4.0-beta HTTPD: Apache2 Mapserver 5.0.3 Mapscript for php5 Mapfile - included below I would be very grateful for any help this list can offer! Regards, Vladimir MAP EXTENT -1.212047 -0.966758 0.610465 0.446515 UNITS dd SIZE 600 500 SHAPEPATH "/var/www/example-proj" IMAGETYPE agg_png RESOLUTION 96 DEBUG 5 CONFIG "MS_ERRORFILE" "/var/log/php/ms-error.log" # # Image formats for AGG # OUTPUTFORMAT ### 24 bit PNG NAME 'agg_png' DRIVER AGG/PNG IMAGEMODE RGB MIMETYPE "image/png" TRANSPARENT OFF EXTENSION "png" END # # Start of web interface definition # WEB TEMPLATE "map.html" IMAGEPATH "/var/www/tmp/" IMAGEURL "/tmp/" LOG "/var/log/php/ms.log" END # Web # # Start of Reference map definition # REFERENCE EXTENT -1.212047 -0.966758 0.610465 0.446515 IMAGE "../../images/reference.png" SIZE 199 149 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END # Reference #================== START OF LAYER SECTION =====================# LAYER NAME "polyshape" TYPE line DATA "polyshape" CLASS STYLE WIDTH 10 COLOR 255 155 155 END END # Class END # Layer END #Map Pmapper Ini p.mapper - A MapServer PHP/MapScript Framework 3 default javascript common/print.xml inline example-proj.map polyshape polyshape polyshape 1 png max 100000 tree attached 0 0 1 18 14 en UTF-8 1 From vladimir at gessolutions.com Mon Feb 2 04:31:23 2009 From: vladimir at gessolutions.com (Vladimir Cvejanovic) Date: Mon, 02 Feb 2009 13:31:23 +0100 Subject: [mapserver-users] P.MAPPER 4.0 overrides rendering setting in map file? In-Reply-To: <4986DD57.8080207@gessolutions.com> References: <4986DD57.8080207@gessolutions.com> Message-ID: <4986E79B.8080804@gessolutions.com> Hi Again, Just solved this. Yes, pmapper does override the mapfile imagetype directive using it's own parameter in config_default.xml. This needs to be set to the desired outputformat name and everyhitng appears to work fine. Example: ... agg_png ... Cheers, Vladimir Vladimir Cvejanovic wrote: > Hi Everyone, > > I've joined the list to see if anyone else has encountered the > following issue and can shed some light on how to resolve it. > > I'm not getting any anti-aliasing in AGG rendered images when > accessing the map through pmapper. The weird thing is that rendering > the same mapfile using mapserver CGI does produce anti-aliased output: > > CGI Example: > localhost/cgi-bin/mapserv?map=/var/www/pmapper-4.0-beta/config/default/example-proj.map&layer=polyshape&mode=map > > > My suspicion is that the output I'm seeing in pmapper isn't actually > rendered using AGG as instructed by the mapfile but is defaulting to > GD. I haven't been able to confirm this suspicion because even with > debug cranked up to 5 I can't seem to generate any debug info > regarding the rendering engine. > > My second suspicion is that I may be missing a crucial pmapper > specific config param in either the mapfile or the pmapper config file > (config_default.xml in 4.0-beta). I'm not able to find docs for v4. > > OS: Ubuntu Intrepid (ssame behaviour confirmed on Debian Lenny) > PMAPPER v4.0-beta > HTTPD: Apache2 > Mapserver 5.0.3 > Mapscript for php5 > Mapfile - included below > > I would be very grateful for any help this list can offer! > > Regards, > Vladimir > > MAP > EXTENT -1.212047 -0.966758 0.610465 0.446515 > UNITS dd > SIZE 600 500 > SHAPEPATH "/var/www/example-proj" > IMAGETYPE agg_png > RESOLUTION 96 > > DEBUG 5 > CONFIG "MS_ERRORFILE" "/var/log/php/ms-error.log" > > > # > # Image formats for AGG > # > OUTPUTFORMAT ### 24 bit PNG > NAME 'agg_png' > DRIVER AGG/PNG > IMAGEMODE RGB > MIMETYPE "image/png" > TRANSPARENT OFF > EXTENSION "png" > END > > # > # Start of web interface definition > # > WEB > TEMPLATE "map.html" > IMAGEPATH "/var/www/tmp/" > IMAGEURL "/tmp/" > LOG "/var/log/php/ms.log" > END # Web > > # > # Start of Reference map definition > # > REFERENCE > EXTENT -1.212047 -0.966758 0.610465 0.446515 > IMAGE "../../images/reference.png" > SIZE 199 149 > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > END # Reference > > #================== START OF LAYER SECTION =====================# > > LAYER > NAME "polyshape" > TYPE line > DATA "polyshape" > CLASS > STYLE > WIDTH 10 > COLOR 255 155 155 > END > END # Class > END # Layer > > END #Map > > > Pmapper Ini > > > > p.mapper - A MapServer PHP/MapScript > Framework > 3 > > > default > javascript > common/print.xml > inline > > > example-proj.map > > > polyshape > > > > polyshape > > > polyshape > > 1 > png > max > 100000 > > > tree > attached > 0 > 0 > 1 > 18 > 14 > > > en > UTF-8 > 1 > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Andreas.Eichner at sid.sachsen.de Mon Feb 2 04:17:26 2009 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Mon, 2 Feb 2009 13:17:26 +0100 Subject: AW: [mapserver-users] Transverse Mercator projection References: <48C61896.4050107@casnt.ro><1233525859608-2255392.post@n2.nabble.com> <4986E137.5000302@gslab.com> Message-ID: Take a look at http://www.remotesensing.org/geotiff/proj_list/transverse_mercator.html. HTH. -----Urspr?ngliche Nachricht----- Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Subha Ramakrishnan Gesendet: Montag, 2. Februar 2009 13:04 An: mapserver-users at lists.osgeo.org Betreff: [mapserver-users] Transverse Mercator projection Hi, I am trying to show some data in Transverse Mercator Projection using MapServer. When i searched on google, i got the corresponding EPSG code as 9807 but there is not entry for this in "epsg" file of PROJ 4 library. And i am not able to get the entry for the same that i can add to the file. The "prj" file that came with the shape file said "PROJECTION["Transverse_Mercator"]". I am using Mapserver 5.0.2. Has anyone worked with this projection or knows how to show the images or convert them to EPSG:4326? Please help. Thanks a lot. Regards, Subha _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From subha at gslab.com Mon Feb 2 05:13:41 2009 From: subha at gslab.com (Subha Ramakrishnan) Date: Mon, 02 Feb 2009 18:43:41 +0530 Subject: AW: [mapserver-users] Transverse Mercator projection In-Reply-To: References: <48C61896.4050107@casnt.ro><1233525859608-2255392.post@n2.nabble.com> <4986E137.5000302@gslab.com> Message-ID: <4986F185.7090509@gslab.com> Hi, Thanks for the reply. I did take a look at that page. In fact i found entries in the "epsg" file corresponding to my projection but it seems to be deprecated. "RT90 2.5 gon W (deprecated) #<2400> +proj=tmerc +lat_0=0 +lon_0=15.80827777777778 +k=1 +x_0=1500000 +y_0=0 +ellps=bessel +units=m +no_defs <>" This is exactly the details that are there in my "prj" file. Any idea how to support this?? Or is there a way to convert this data to WGS84? Regards, Subha Eichner, Andreas - SID-NLKM wrote: > Take a look at http://www.remotesensing.org/geotiff/proj_list/transverse_mercator.html. HTH. > > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Subha Ramakrishnan > Gesendet: Montag, 2. Februar 2009 13:04 > An: mapserver-users at lists.osgeo.org > Betreff: [mapserver-users] Transverse Mercator projection > > Hi, > > I am trying to show some data in Transverse Mercator Projection using > MapServer. > When i searched on google, i got the corresponding EPSG code as 9807 but > there is not entry for this in "epsg" file of PROJ 4 library. And i am > not able to get the entry for the same that i can add to the file. > > The "prj" file that came with the shape file said > "PROJECTION["Transverse_Mercator"]". > > I am using Mapserver 5.0.2. Has anyone worked with this projection or > knows how to show the images or convert them to EPSG:4326? > > Please help. > Thanks a lot. > > Regards, > Subha > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From piebe.de.vries at geodan.nl Mon Feb 2 06:22:34 2009 From: piebe.de.vries at geodan.nl (Piebe de Vries) Date: Mon, 02 Feb 2009 15:22:34 +0100 Subject: [mapserver-users] application\vnd.ogc.se_inimage format Message-ID: <498701AA.1070303@geodan.nl> hi, I configured a layer to return png only. When my application does a getMap request (using format=image/png) a png picture is returned. Everything fine so far. However if an error occurs the same request (using exceptions=application\vnd.ogc.se_inimage) returns a gif picture. And my application is not very happy with that...(also the wms standards specifies that the image returned should be the one asked in the format parameter) I am using mapserver 5.2.1 Can anybody confirm this behavior? Thanks, Piebe -- --------------------------- ---------------------------- Piebe de Vries piebe.de.vries at geodan.nl Geodan IT b.v. Tel: +31 (0)73 - 6925 151 President Kennedylaan 1 Fax: +31 (0)73 - 5711 333 1079 MB Amsterdam (NL) http://www.geodan.nl --------------------------- ---------------------------- From skinny2 at netins.net Mon Feb 2 06:34:12 2009 From: skinny2 at netins.net (Kirk Webb) Date: Mon, 02 Feb 2009 08:34:12 -0600 Subject: [mapserver-users] horizontally arranged symbols for watermarking Message-ID: At the mapserver web site http://mapserver.org/mapfile/symbology/construction.html#signatures-of-type-pixmap it explains how to construct horizontally arranged area symbols. I have a logo with a symbol file and a pixmap layer in my mapfile that displays the logo in the middle of the page. But it is not displaying multiple horizontally arranges symbols of my logo. Am I missing something here? SYMBOL NAME "logo" TYPE PIXMAP IMAGE "logo.png" END ######PIXMAP Logo###### LAYER NAME logo STATUS DEFAULT TYPE point TRANSFORM OFF FEATURE POINTS 300 300 END END TRANSPARENCY 8 CLASS STYLE SIZE 20 COLOR 0 0 0 END STYLE SYMBOL "logo" SIZE 60 COLOR 0 0 0 OUTLINECOLOR 0 0 255 END # class END END From jmckenna at gatewaygeomatics.com Mon Feb 2 06:27:54 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 02 Feb 2009 09:27:54 -0500 Subject: [mapserver-users] problem with raster data.. In-Reply-To: <858472.60776.qm@web54201.mail.re2.yahoo.com> References: <858472.60776.qm@web54201.mail.re2.yahoo.com> Message-ID: <498702EA.5030501@gatewaygeomatics.com> MeLv1n wAuRaN wrote: > Ok so basically it is done right? it created sample_index.dbf, > sample_index.shp, and sample_index.shx. Now, which file should i load > into the .MAP as my basemap? Not necessarily. You should address StephenW's previous question (because if there is an error with the gdaltindex command an empty shapefile is created, which is no good to you). To verify the 'sample_index.shp' file you should open it in QGIS and view it's attributes (there should be a record for each tif file). For an example of what an index file should look like, see the screengrabs in http://www.mapserver.org/utilities/tile4ms.html > An example from Robert Sanson: > > LAYER > NAME nz250ktm > GROUP "Toposcans" > TYPE RASTER > STATUS ON > TILEINDEX ../data/nztm/250k_index > TILEITEM Location > MAXSCALE 300000 > MINSCALE 75000 > > well, this is a layer right? what i mean is, this tile index will be the > basemap of the map instead of a layer, for example llike: > correct, you would point to your valid 'sample_index.shp' file in the TILEINDEX parameter. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From yassefa at dmsolutions.ca Mon Feb 2 06:47:34 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Mon, 02 Feb 2009 09:47:34 -0500 Subject: [mapserver-users] application\vnd.ogc.se_inimage format In-Reply-To: <498701AA.1070303@geodan.nl> References: <498701AA.1070303@geodan.nl> Message-ID: <49870786.7000003@dmsolutions.ca> Hi There, Is the IMAGETYPE parameter set in your map file? If not you might want to try it by adding something like this in your map file: IMAGETYPE png (or any other valid formats that you want). Best Regards Piebe de Vries wrote: > hi, > > I configured a layer to return png only. When my application does a > getMap request (using format=image/png) a png picture is returned. > Everything fine so far. However if an error occurs the same request > (using exceptions=application\vnd.ogc.se_inimage) returns a gif picture. > And my application is not very happy with that...(also the wms standards > specifies that the image returned should be the one asked in the format > parameter) > > I am using mapserver 5.2.1 Can anybody confirm this behavior? > > Thanks, > Piebe > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From woodbri at swoodbridge.com Mon Feb 2 08:53:49 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 02 Feb 2009 11:53:49 -0500 Subject: [mapserver-users] problem with raster data.. In-Reply-To: <858472.60776.qm@web54201.mail.re2.yahoo.com> References: <858472.60776.qm@web54201.mail.re2.yahoo.com> Message-ID: <4987251D.4070408@swoodbridge.com> The tileindex is used in a layer like you have shown below. Your map image is "built-up" from the layers in the mapfile. The first layers are drawn into the output image first and so on through the mapfile. So if you want your images to be the background of the image then put that layer first in the mapfile and all other layers will be drawn on top of that. Also for directory paths, I think it is best if you lay them out something like: /path/to/data/ /path/to/data/nztm/... then: cd /path/to/data/ gdaltindex 250k_index.shp nztm/250Kfiles/*.tif shptree 250k_index.shp adjust the paths as appropriate. Then in your mapfile DATAPATH "/path/to/data" ... LAYER ... TILEINDEX "250k_index" basically start out putting all your tileindexes in /path/to/data and putting all your data in sub directories. This is a simple setup and should always work, so start like this. Then you can experiment with moving directories and tileindexes around. The reason for this is that the rules for how mapserver finds files is not always obvious and sometimes requires reading the code or a little simple experimentation to get it right. -Steve MeLv1n wAuRaN wrote: > Ok so basically it is done right? it created sample_index.dbf, > sample_index.shp, and sample_index.shx. Now, which file should i load > into the .MAP as my basemap? > > An example from Robert Sanson: > > LAYER > NAME nz250ktm > GROUP "Toposcans" > TYPE RASTER > STATUS ON > TILEINDEX ../data/nztm/250k_index > TILEITEM Location > MAXSCALE 300000 > MINSCALE 75000 > > well, this is a layer right? what i mean is, this tile index will be the > basemap of the map instead of a layer, for example llike: > > MAP > NAME "..........." > STATUS ........ > EXTENT .................... > IMAGETYPE ........ > SIZE .............. > SHAPEPATH "......................." > IMAGECOLOR ......... > ......... > ......... > ......... > END > > > or is this tileindex supposed to be a layer instead of a basemap? > > > --- On *Mon, 2/2/09, Stephen Woodbridge //* wrote: > > From: Stephen Woodbridge > Subject: Re: [mapserver-users] problem with raster data.. > To: death_knight0911 at yahoo.com > Cc: "Robert Sanson" , > mapserver-users at lists.osgeo.org > Date: Monday, February 2, 2009, 12:26 PM > > MeLv1n wAuRaN > wrote: > > i already included the gdaltindex path in the environment variable. But > another error occured, it said: > > > > "C:\ms4w\data\raster>gdaltindex sample_index.shp > sample*.tif > > ERROR 4: Unable to open sample_index.shp or sample_index.SHP. > > Creating new index file... > > This error is ok, it is just telling you that the index file does not already > exist and it is creating a new one. gdaltindex appends to an existing file so > keep that in mind if you need to add to your tileindex. > > > ERROR 4: `sample*.tif' does not exist in the file system, > > and is not recognised as a supported dataset name. > > This says that there are no files in the current directory named sample*.tif > what does a dir command respond with? > > -Steve W > > > Unable to open sample*.tif, skipping." > > > > what do you think is the problem here? > > > > > From carlosgc at gmail.com Mon Feb 2 09:33:34 2009 From: carlosgc at gmail.com (CarlosGC) Date: Mon, 2 Feb 2009 09:33:34 -0800 (PST) Subject: [mapserver-users] Problems to draw simple polygons Message-ID: <1233596014511-2259225.post@n2.nabble.com> Hello to all I am using oraclespatial (Oracle 10g) and MS4W and I trying to create a layer with few polygons. - Table data: MKT_ID | NAME | SHAPE 2 | cola_b | MDSYS.SDO_GEOMETRY(2003,null,null,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,1),MDSYS.SDO_ORDINATE_ARRAY(5,1,8,1,8,6,5,7,5,1)) 3 | cola_c | MDSYS.SDO_GEOMETRY(2003,null,null,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,1),MDSYS.SDO_ORDINATE_ARRAY(3,3,6,3,6,5,4,5,3,3)) - .MAP file content: MAP    NAME "teste"    STATUS ON    EXTENT 0 0 100 100    SIZE 500 500    SHAPEPATH "data"    IMAGETYPE PNG    IMAGECOLOR 255 255 255    UNITS METERS    TEMPLATEPATTERN "itasca"    WEB       MINSCALE 1       MAXSCALE 1550000       IMAGEPATH "/ms4w/tmp/ms_tmp/"       IMAGEURL "/ms_tmp/"       TEMPLATE "itasca_teste.html"    END    LAYER    NAME "pontos"    STATUS DEFAULT    TYPE POLYGON    CONNECTIONTYPE oraclespatial    CONNECTION "***/***@***"    DATA "SHAPE FROM COLA_MARKETS"    DUMP TRUE       CLASS          STYLE             OUTLINECOLOR 0 0 0             COLOR 0 128 128          END       END    END END The generated map is complete white. Nothing is drawn. Any ideia about what is the problem? Thanks, CarlosGC -- View this message in context: http://n2.nabble.com/Problems-to-draw-simple-polygons-tp2259225p2259225.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.kofahl at gmx.net Mon Feb 2 12:00:25 2009 From: m.kofahl at gmx.net (Martin Kofahl) Date: Mon, 02 Feb 2009 21:00:25 +0100 Subject: [mapserver-users] exclude layer from wms capabilities Message-ID: <498750D9.9040504@gmx.net> I've got a copyright layer in a map file, status is default. Is there a way to hide this annotation layer in the capabilities output? Martin From bamerbalazs at gmail.com Mon Feb 2 14:00:59 2009 From: bamerbalazs at gmail.com (=?UTF-8?B?QmFsw6F6cyBCw6FtZXI=?=) Date: Mon, 2 Feb 2009 23:00:59 +0100 Subject: [mapserver-users] CGI problem Message-ID: Hi All, I've compiled and installed Mapserver for CGI use. If I try it from browser like http://web.address.hu/cgi-bin/proba?map=/var/www/proba/data/proba.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities it gives Internal Server Error with Premature end of script headers in Apache error log. It definitely finds the mapfile. After some list archive investigations, I tried the command-line method for inspecting output to see behind internal server errors: root at Black:/var/log/mapserver# REQUEST_METHOD=GET root at Black:/var/log/mapserver# QUERY_STRING="map=/ext/home/rich/wrk/mapserver/freenavi/zoom0-5.rich.map&mode=map" root at Black:/var/log/mapserver# /usr/lib/cgi-bin/mapserv This script can only be used to decode form results and should be initiated as a CGI process via a httpd server. so it seems the mapserv called from command line didn't see the "query". How could I debug it? Thank you in advance. Best regards: Bal?zs B?mer From jjschlafley at yahoo.com Mon Feb 2 16:15:05 2009 From: jjschlafley at yahoo.com (J.J. Schlafley) Date: Mon, 2 Feb 2009 16:15:05 -0800 (PST) Subject: [mapserver-users] CLASS expression and maxscaledenom ignored Message-ID: <427029.61749.qm@web52306.mail.re2.yahoo.com> I have found that the functions LayerObj.whichShapes() and LayerObj.queryByAttributes ignore any CLASS expression or maxscaledenom in the LAYER.? The results returned by these functions seem to come from "any" feature in the layer's dataset?at the?given?spatial extent?and/or attribute?query.? Anyone else ever come across this? Thanks, JJ -------------- next part -------------- An HTML attachment was scrubbed... URL: From siki at agt.bme.hu Tue Feb 3 03:00:44 2009 From: siki at agt.bme.hu (Siki Zoltan) Date: Tue, 3 Feb 2009 10:00:44 -0100 (GMT+1) Subject: [mapserver-users] CGI problem In-Reply-To: References: Message-ID: Dear Bal?zs, Probably you have an error in your map file, an END may be missing or a quote ("). Test your map file with shp2img e.g. shp2img -m your_map_file -o output_image An other note, do not use your unix box as root if it is not neccessary. Best regards, Zolt?n On Mon, 2 Feb 2009, Bal?zs B?mer wrote: > Hi All, > > I've compiled and installed Mapserver for CGI use. If I try it from browser like > http://web.address.hu/cgi-bin/proba?map=/var/www/proba/data/proba.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > it gives > Internal Server Error > with > Premature end of script headers > in Apache error log. It definitely finds the mapfile. > > After some list archive investigations, I tried the command-line > method for inspecting output to see behind internal server errors: > root at Black:/var/log/mapserver# REQUEST_METHOD=GET > root at Black:/var/log/mapserver# > QUERY_STRING="map=/ext/home/rich/wrk/mapserver/freenavi/zoom0-5.rich.map&mode=map" > root at Black:/var/log/mapserver# /usr/lib/cgi-bin/mapserv > This script can only be used to decode form results and > should be initiated as a CGI process via a httpd server. > > so it seems the mapserv called from command line didn't see the "query". > > How could I debug it? > > Thank you in advance. > Best regards: Bal?zs B?mer > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Andreas.Eichner at sid.sachsen.de Mon Feb 2 23:44:31 2009 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Tue, 3 Feb 2009 08:44:31 +0100 Subject: AW: [mapserver-users] CGI problem References: Message-ID: Internal server error are usually caused by seg faults. So your intention is right, but you've only set the variables. To let the called program see them you need to export them (and use the same request that caused the error): $ export REQUEST_METHOD=GET $ export QUERY_STRING='map=/var/www/proba/data/proba.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities' Let us know if you really found a bug... From piebe.de.vries at geodan.nl Tue Feb 3 02:34:30 2009 From: piebe.de.vries at geodan.nl (Piebe de Vries) Date: Tue, 03 Feb 2009 11:34:30 +0100 Subject: [mapserver-users] application\vnd.ogc.se_inimage format In-Reply-To: <49870786.7000003@dmsolutions.ca> References: <498701AA.1070303@geodan.nl> <49870786.7000003@dmsolutions.ca> Message-ID: <49881DB6.801@geodan.nl> imagetype is set to png the only defined output type is png Yewondwossen Assefa wrote: > Hi There, > > Is the IMAGETYPE parameter set in your map file? If not you might > want to try it by adding something like this in your map file: > IMAGETYPE png (or any other valid formats that you want). > > Best Regards > > > Piebe de Vries wrote: >> hi, >> >> I configured a layer to return png only. When my application does a >> getMap request (using format=image/png) a png picture is returned. >> Everything fine so far. However if an error occurs the same request >> (using exceptions=application\vnd.ogc.se_inimage) returns a gif >> picture. And my application is not very happy with that...(also the >> wms standards specifies that the image returned should be the one >> asked in the format parameter) >> >> I am using mapserver 5.2.1 Can anybody confirm this behavior? >> >> Thanks, >> Piebe >> >> > > -- --------------------------- ---------------------------- Piebe de Vries piebe.de.vries at geodan.nl Geodan IT b.v. Tel: +31 (0)73 - 6925 151 President Kennedylaan 1 Fax: +31 (0)73 - 5711 333 1079 MB Amsterdam (NL) http://www.geodan.nl --------------------------- ---------------------------- From vladimir at gessolutions.com Tue Feb 3 03:17:08 2009 From: vladimir at gessolutions.com (Vladimir Cvejanovic) Date: Tue, 03 Feb 2009 12:17:08 +0100 Subject: [mapserver-users] Different SIZEUNITS for line width and label fontsize In-Reply-To: <49881DB6.801@geodan.nl> References: <498701AA.1070303@geodan.nl> <49870786.7000003@dmsolutions.ca> <49881DB6.801@geodan.nl> Message-ID: <498827B4.2020900@gessolutions.com> Hi All, In the Mapfile, Is it possible to have different SIZEUNTIS for line width and label font in the same layer? The example is below. I have managed to solve this by defining two layers one which only displays the line and one which only displays the labels however this seems like a hack and very inefficient from a processing / querying point of view. The context is a line layer containing road lines which have a width in meters but labels in pixels. This would make things scale nicely Can this be done? Does anyone have a better approach? Thanks, Vladimir LAYER NAME 'highway' TYPE LINE DATA 'highway.shp' STATUS DEFAULT TRANSPARENCY 30 LABELITEM "NAME" SIZEUNITS meters CLASS NAME 'highway' STYLE WIDTH 5 #WANT THESE TO BE METERS COLOR 55 55 55 END LABEL TYPE TRUETYPE FONT FreeSans SIZE 08 # WANT THESE TO BE PIXELS COLOR 0 0 0 OUTLINECOLOR 255 255 255 ANTIALIAS TRUE ANGLE AUTO MINFEATURESIZE AUTO FORCE true END END END From vtammineni at roulacglobal.com Tue Feb 3 03:27:00 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Tue, 3 Feb 2009 16:57:00 +0530 Subject: [mapserver-users] Different SIZEUNITS for line width and label fontsize In-Reply-To: <498827B4.2020900@gessolutions.com> References: <498701AA.1070303@geodan.nl> <49870786.7000003@dmsolutions.ca> <49881DB6.801@geodan.nl> <498827B4.2020900@gessolutions.com> Message-ID: <010901c985f2$561ab320$02501960$@com> Hi, Please refer below url http://mapserver.org/mapfile/symbology/construction.html I hope this helps you. Thanks Venkat. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Vladimir Cvejanovic Sent: Tuesday, February 03, 2009 4:47 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Different SIZEUNITS for line width and label fontsize Hi All, In the Mapfile, Is it possible to have different SIZEUNTIS for line width and label font in the same layer? The example is below. I have managed to solve this by defining two layers one which only displays the line and one which only displays the labels however this seems like a hack and very inefficient from a processing / querying point of view. The context is a line layer containing road lines which have a width in meters but labels in pixels. This would make things scale nicely Can this be done? Does anyone have a better approach? Thanks, Vladimir LAYER NAME 'highway' TYPE LINE DATA 'highway.shp' STATUS DEFAULT TRANSPARENCY 30 LABELITEM "NAME" SIZEUNITS meters CLASS NAME 'highway' STYLE WIDTH 5 #WANT THESE TO BE METERS COLOR 55 55 55 END LABEL TYPE TRUETYPE FONT FreeSans SIZE 08 # WANT THESE TO BE PIXELS COLOR 0 0 0 OUTLINECOLOR 255 255 255 ANTIALIAS TRUE ANGLE AUTO MINFEATURESIZE AUTO FORCE true END END END _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Tue Feb 3 03:23:33 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 3 Feb 2009 12:23:33 +0100 Subject: [mapserver-users] Different SIZEUNITS for line width and label fontsize In-Reply-To: <498827B4.2020900@gessolutions.com> References: <498701AA.1070303@geodan.nl> <49870786.7000003@dmsolutions.ca> <49881DB6.801@geodan.nl> <498827B4.2020900@gessolutions.com> Message-ID: hi, you can use minsize and maxsize in your label: these are always pixels: size 8 minszie 8 maxsize 8 regards, thomas On Tue, Feb 3, 2009 at 12:17, Vladimir Cvejanovic wrote: > Hi All, > > In the Mapfile, Is it possible to have different SIZEUNTIS for line width > and label font in the same layer? The example is below. > > I have managed to solve this by defining two layers one which only displays > the line and one which only displays the labels however this seems like a > hack and very inefficient from a processing / querying point of view. > > The context is a line layer containing road lines which have a width in > meters but labels in pixels. This would make things scale nicely Can this be > done? Does anyone have a better approach? > > Thanks, > Vladimir > > LAYER > NAME 'highway' > TYPE LINE > DATA 'highway.shp' > > STATUS DEFAULT > TRANSPARENCY 30 > > LABELITEM "NAME" > SIZEUNITS meters > > CLASS > NAME 'highway' > STYLE > WIDTH 5 #WANT THESE TO BE METERS > COLOR 55 55 55 > END > LABEL > TYPE TRUETYPE > FONT FreeSans > SIZE 08 # WANT THESE TO BE PIXELS > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > ANTIALIAS TRUE > ANGLE AUTO > MINFEATURESIZE AUTO > FORCE true > END > END > END > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From vladimir at gessolutions.com Tue Feb 3 03:41:50 2009 From: vladimir at gessolutions.com (Vladimir Cvejanovic) Date: Tue, 03 Feb 2009 12:41:50 +0100 Subject: [mapserver-users] Different SIZEUNITS for line width and label fontsize In-Reply-To: References: <498701AA.1070303@geodan.nl> <49870786.7000003@dmsolutions.ca> <49881DB6.801@geodan.nl> <498827B4.2020900@gessolutions.com> Message-ID: <49882D7E.7010305@gessolutions.com> Hi Thomas, Thanks for your reply. I have already plaid around with MINSIZE and MAXSIZE. They are a good way to avoid the labels being displayed when they are too small to read. Also coupled with MINSCALE and MAXSCALE class definitions I was able to set up three classes for large, medium and small text depending on the scale used. This isn't a bad solution at all but I wanted to see if there is away to prevent the labels scaling at all within the same layer definition as the scalable (real-world sized) lines. Thanks, Vladimir thomas bonfort wrote: > hi, > you can use minsize and maxsize in your label: these are always pixels: > > size 8 > minszie 8 > maxsize 8 > > regards, > thomas > > On Tue, Feb 3, 2009 at 12:17, Vladimir Cvejanovic > wrote: > >> Hi All, >> >> In the Mapfile, Is it possible to have different SIZEUNTIS for line width >> and label font in the same layer? The example is below. >> >> I have managed to solve this by defining two layers one which only displays >> the line and one which only displays the labels however this seems like a >> hack and very inefficient from a processing / querying point of view. >> >> The context is a line layer containing road lines which have a width in >> meters but labels in pixels. This would make things scale nicely Can this be >> done? Does anyone have a better approach? >> >> Thanks, >> Vladimir >> >> LAYER >> NAME 'highway' >> TYPE LINE >> DATA 'highway.shp' >> >> STATUS DEFAULT >> TRANSPARENCY 30 >> >> LABELITEM "NAME" >> SIZEUNITS meters >> >> CLASS >> NAME 'highway' >> STYLE >> WIDTH 5 #WANT THESE TO BE METERS >> COLOR 55 55 55 >> END >> LABEL >> TYPE TRUETYPE >> FONT FreeSans >> SIZE 08 # WANT THESE TO BE PIXELS >> COLOR 0 0 0 >> OUTLINECOLOR 255 255 255 >> ANTIALIAS TRUE >> ANGLE AUTO >> MINFEATURESIZE AUTO >> FORCE true >> END >> END >> END >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> From thomas.bonfort at gmail.com Tue Feb 3 03:49:02 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 3 Feb 2009 12:49:02 +0100 Subject: [mapserver-users] Different SIZEUNITS for line width and label fontsize In-Reply-To: <49882D7E.7010305@gessolutions.com> References: <498701AA.1070303@geodan.nl> <49870786.7000003@dmsolutions.ca> <49881DB6.801@geodan.nl> <498827B4.2020900@gessolutions.com> <49882D7E.7010305@gessolutions.com> Message-ID: Hi again, using: size 8 minsize 8 maxsize 8 is *exactly* the same as using only size 8 with pixel sizeunits i.e. this effectively prevents the labels scaling at all regards, thomas On Tue, Feb 3, 2009 at 12:41, Vladimir Cvejanovic wrote: > Hi Thomas, > > Thanks for your reply. I have already plaid around with MINSIZE and MAXSIZE. > They are a good way to avoid the labels being displayed when they are too > small to read. Also coupled with MINSCALE and MAXSCALE class definitions I > was able to set up three classes for large, medium and small text depending > on the scale used. > > This isn't a bad solution at all but I wanted to see if there is away to > prevent the labels scaling at all within the same layer definition as the > scalable (real-world sized) lines. > > Thanks, > Vladimir > > > thomas bonfort wrote: >> >> hi, >> you can use minsize and maxsize in your label: these are always pixels: >> >> size 8 >> minszie 8 >> maxsize 8 >> >> regards, >> thomas >> >> On Tue, Feb 3, 2009 at 12:17, Vladimir Cvejanovic >> wrote: >> >>> >>> Hi All, >>> >>> In the Mapfile, Is it possible to have different SIZEUNTIS for line width >>> and label font in the same layer? The example is below. >>> >>> I have managed to solve this by defining two layers one which only >>> displays >>> the line and one which only displays the labels however this seems like a >>> hack and very inefficient from a processing / querying point of view. >>> >>> The context is a line layer containing road lines which have a width in >>> meters but labels in pixels. This would make things scale nicely Can this >>> be >>> done? Does anyone have a better approach? >>> >>> Thanks, >>> Vladimir >>> >>> LAYER >>> NAME 'highway' >>> TYPE LINE >>> DATA 'highway.shp' >>> >>> STATUS DEFAULT >>> TRANSPARENCY 30 >>> >>> LABELITEM "NAME" >>> SIZEUNITS meters >>> >>> CLASS >>> NAME 'highway' >>> STYLE >>> WIDTH 5 #WANT THESE TO BE METERS >>> COLOR 55 55 55 >>> END >>> LABEL >>> TYPE TRUETYPE >>> FONT FreeSans >>> SIZE 08 # WANT THESE TO BE PIXELS >>> COLOR 0 0 0 >>> OUTLINECOLOR 255 255 255 >>> ANTIALIAS TRUE >>> ANGLE AUTO >>> MINFEATURESIZE AUTO >>> FORCE true >>> END >>> END >>> END >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> > > From vladimir at gessolutions.com Tue Feb 3 03:53:16 2009 From: vladimir at gessolutions.com (Vladimir Cvejanovic) Date: Tue, 03 Feb 2009 12:53:16 +0100 Subject: [mapserver-users] Different SIZEUNITS for line width and label fontsize In-Reply-To: References: <498701AA.1070303@geodan.nl> <49870786.7000003@dmsolutions.ca> <49881DB6.801@geodan.nl> <498827B4.2020900@gessolutions.com> <49882D7E.7010305@gessolutions.com> Message-ID: <4988302C.3030100@gessolutions.com> Hi Thomas, Thanks for elaborating on that, I was under the false impression that MINSIZE worked similar to MINSCALE in that it defined minimum criteria for the class to be applied. Will try this now. Thanks again! Vladimir thomas bonfort wrote: > Hi again, > > using: > size 8 > minsize 8 > maxsize 8 > > is *exactly* the same as using only size 8 with pixel sizeunits > i.e. this effectively prevents the labels scaling at all > > regards, > thomas > > On Tue, Feb 3, 2009 at 12:41, Vladimir Cvejanovic > wrote: > >> Hi Thomas, >> >> Thanks for your reply. I have already plaid around with MINSIZE and MAXSIZE. >> They are a good way to avoid the labels being displayed when they are too >> small to read. Also coupled with MINSCALE and MAXSCALE class definitions I >> was able to set up three classes for large, medium and small text depending >> on the scale used. >> >> This isn't a bad solution at all but I wanted to see if there is away to >> prevent the labels scaling at all within the same layer definition as the >> scalable (real-world sized) lines. >> >> Thanks, >> Vladimir >> >> >> thomas bonfort wrote: >> >>> hi, >>> you can use minsize and maxsize in your label: these are always pixels: >>> >>> size 8 >>> minszie 8 >>> maxsize 8 >>> >>> regards, >>> thomas >>> >>> On Tue, Feb 3, 2009 at 12:17, Vladimir Cvejanovic >>> wrote: >>> >>> >>>> Hi All, >>>> >>>> In the Mapfile, Is it possible to have different SIZEUNTIS for line width >>>> and label font in the same layer? The example is below. >>>> >>>> I have managed to solve this by defining two layers one which only >>>> displays >>>> the line and one which only displays the labels however this seems like a >>>> hack and very inefficient from a processing / querying point of view. >>>> >>>> The context is a line layer containing road lines which have a width in >>>> meters but labels in pixels. This would make things scale nicely Can this >>>> be >>>> done? Does anyone have a better approach? >>>> >>>> Thanks, >>>> Vladimir >>>> >>>> LAYER >>>> NAME 'highway' >>>> TYPE LINE >>>> DATA 'highway.shp' >>>> >>>> STATUS DEFAULT >>>> TRANSPARENCY 30 >>>> >>>> LABELITEM "NAME" >>>> SIZEUNITS meters >>>> >>>> CLASS >>>> NAME 'highway' >>>> STYLE >>>> WIDTH 5 #WANT THESE TO BE METERS >>>> COLOR 55 55 55 >>>> END >>>> LABEL >>>> TYPE TRUETYPE >>>> FONT FreeSans >>>> SIZE 08 # WANT THESE TO BE PIXELS >>>> COLOR 0 0 0 >>>> OUTLINECOLOR 255 255 255 >>>> ANTIALIAS TRUE >>>> ANGLE AUTO >>>> MINFEATURESIZE AUTO >>>> FORCE true >>>> END >>>> END >>>> END >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>>> >> From bamerbalazs at gmail.com Tue Feb 3 05:44:26 2009 From: bamerbalazs at gmail.com (=?UTF-8?B?QmFsw6F6cyBCw6FtZXI=?=) Date: Tue, 3 Feb 2009 14:44:26 +0100 Subject: [mapserver-users] segmentation fault with endless recursion Message-ID: Hi All, I always receive segmentation fault for the map file here: http://www.bamer.hu/proba.map My GDAL version can see in part of gdb backtrace: #9426 0xb7983d5b in sincos () from /usr/lib/libgdal1.5.0.so.1 #9427 0xb7983d5b in sincos () from /usr/lib/libgdal1.5.0.so.1 #9428 0xb7983d5b in sincos () from /usr/lib/libgdal1.5.0.so.1 The OS is Ubuntu Linux 8.10 I installed gdal using apt-get. Installed packages are gdal-bin install libgdal-doc install libgdal1-1.5.0 install libgdal1-dev install actual libgdal is /usr/lib/libgdal1.5.0.so.1.12.2 My Mapserver is configured with the line below: ./configure --with-oci --with-oraclespatial=/usr/local/instantclient_11_1 --with-proj --with-threads --with-gdal --with-ogr --with-jpeg --with-png=/usr/lib --with-php=/usr/include/php5 configure output here: http://www.bamer.hu/konf What is the problem with gdal? Thank you in advance. Best regards: Bal?zs B?mer From yassefa at dmsolutions.ca Tue Feb 3 07:07:20 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 03 Feb 2009 10:07:20 -0500 Subject: [mapserver-users] application\vnd.ogc.se_inimage format In-Reply-To: <49881DB6.801@geodan.nl> References: <498701AA.1070303@geodan.nl> <49870786.7000003@dmsolutions.ca> <49881DB6.801@geodan.nl> Message-ID: <49885DA8.3070403@dmsolutions.ca> Hi, I could reproduce a GIF output for the exception image in some particular cases. I have added a bug on it http://trac.osgeo.org/mapserver/ticket/2874 and committed a patch. Please give it a try and update the bug. Best Regards, Piebe de Vries wrote: > imagetype is set to png > the only defined output type is png > > > Yewondwossen Assefa wrote: >> Hi There, >> >> Is the IMAGETYPE parameter set in your map file? If not you might >> want to try it by adding something like this in your map file: >> IMAGETYPE png (or any other valid formats that you want). >> >> Best Regards >> >> >> Piebe de Vries wrote: >>> hi, >>> >>> I configured a layer to return png only. When my application does a >>> getMap request (using format=image/png) a png picture is returned. >>> Everything fine so far. However if an error occurs the same request >>> (using exceptions=application\vnd.ogc.se_inimage) returns a gif >>> picture. And my application is not very happy with that...(also the >>> wms standards specifies that the image returned should be the one >>> asked in the format parameter) >>> >>> I am using mapserver 5.2.1 Can anybody confirm this behavior? >>> >>> Thanks, >>> Piebe >>> >>> >> >> > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From valemunoz at gmail.com Tue Feb 3 11:47:37 2009 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Tue, 3 Feb 2009 16:47:37 -0300 Subject: [mapserver-users] optimal path between two points. In-Reply-To: <4b56aefe0901191043k756aba67k253737d080d5420d@mail.gmail.com> References: <4b56aefe0901191043k756aba67k253737d080d5420d@mail.gmail.com> Message-ID: <4b56aefe0902031147u8de1ac4h3cc424d6e3cf98f6@mail.gmail.com> hi.. I am back again with my problem pgrouting.. I followed a little tutorial works perfectly with the shapefile from the example, but to use mine the result is not expected, generating lines are not continuous, I think I missing some coordinates or something to work with my shapefile. attached image. please help!!.. 2009/1/19 Valeria Mu?oz > Hi > > I would like to implement the service "optimum path between 2 points," > can someone help me to be able to implement it?. The general idea is that a > user picks a point A and point B and a display on the map the best route to > get from point A to B. > > RG... > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: img_routing.JPG Type: image/jpeg Size: 17178 bytes Desc: not available URL: From woodbri at swoodbridge.com Tue Feb 3 12:05:16 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 03 Feb 2009 15:05:16 -0500 Subject: [mapserver-users] optimal path between two points. In-Reply-To: <4b56aefe0902031147u8de1ac4h3cc424d6e3cf98f6@mail.gmail.com> References: <4b56aefe0901191043k756aba67k253737d080d5420d@mail.gmail.com> <4b56aefe0902031147u8de1ac4h3cc424d6e3cf98f6@mail.gmail.com> Message-ID: <4988A37C.9000604@swoodbridge.com> This may be cause because you need to check the direction of the line segments before you create a linestring to pass to the client. If you route is something like segment source target 1 1 3 2 4 3 3 7 4 etc route (1,2,4,3,7,4) or 1,3,3,4) depending on how you assemble it is not going to make sense. Then segment 2 needs to be reversed so it goes from 3 to 4 and segment 3 needs to be reverse also. so you get: route (1,3,4,7). Also this is not really a mapserver issues and you should probably pust this to the pgRouting list. It would alos help if you showed some of the intermediate results. When you show a image and the route is broken, most of us can look at the image and say "Yup, looks like the route is broken!" We do not see what data you got out of pgRouting, we do not know how that got passed to mapserver or OpenLayers, there are a lot of places that you can break things. We don't even know how data flows through your system or who/what is rendering the route part of the image. -Steve Valeria Mu?oz wrote: > hi.. > > I am back again with my problem pgrouting.. I followed a little tutorial > works perfectly with the shapefile from the example, but to use mine the > result is not expected, generating lines are not continuous, I think I > missing some coordinates or something to work with my shapefile. > > attached image. > > please help!!.. > > 2009/1/19 Valeria Mu?oz > > > Hi > > I would like to implement the service "optimum path between 2 > points," can someone help me to be able to implement it?. The > general idea is that a user picks a point A and point B and a > display on the map the best route to get from point A to B. > > RG... > > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From valemunoz at gmail.com Tue Feb 3 12:23:51 2009 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Tue, 3 Feb 2009 17:23:51 -0300 Subject: [mapserver-users] optimal path between two points. In-Reply-To: <4988A37C.9000604@swoodbridge.com> References: <4b56aefe0901191043k756aba67k253737d080d5420d@mail.gmail.com> <4b56aefe0902031147u8de1ac4h3cc424d6e3cf98f6@mail.gmail.com> <4988A37C.9000604@swoodbridge.com> Message-ID: <4b56aefe0902031223t2f766ba2ia4cdf20fbc45f114@mail.gmail.com> example the query is optimal path between 887 y 852. : SELECT rt.gid, AsText(rt.the_geom) AS wkt, length(rt.the_geom) AS length, calle.gid FROM calle, (SELECT gid, the_geom FROM dijkstra_sp_delta( 'calle', 887, 852, 3000) ) as rt WHERE calle.gid=rt.gid; result: "gid";"wkt";"length";"gid" 4389;"MULTILINESTRING((-71.1951327440651 -30.5911350429583,-71.1957462426904 -30.5912128948402,-71.1957861853043 -30.591219747929,-71.1958400125164 -30.591211719682))";0.000713367403530106;4389 4603;"MULTILINESTRING((-71.1939954028678 -30.5921681162637,-71.1939834234752 -30.5922241673576,-71.1938231446269 -30.5925509466888))";0.000421286769021393;4603 4331;"MULTILINESTRING((-71.1950174992082 -30.5919506007811,-71.1950526139385 -30.5916919152203))";0.000261057969957178;4331 4608;"MULTILINESTRING((-71.1938231446269 -30.5925509466888,-71.1937648360013 -30.5926358138883))";0.00010296765211197;4608 RG 2009/2/3 Stephen Woodbridge > This may be cause because you need to check the direction of the line > segments before you create a linestring to pass to the client. If you route > is something like > > segment source target > 1 1 3 > 2 4 3 > 3 7 4 > etc > > route (1,2,4,3,7,4) or 1,3,3,4) depending on how you assemble it is not > going to make sense. > > Then segment 2 needs to be reversed so it goes from 3 to 4 and segment 3 > needs to be reverse also. so you get: > > route (1,3,4,7). > > Also this is not really a mapserver issues and you should probably pust > this to the pgRouting list. It would alos help if you showed some of the > intermediate results. When you show a image and the route is broken, most of > us can look at the image and say "Yup, looks like the route is broken!" We > do not see what data you got out of pgRouting, we do not know how that got > passed to mapserver or OpenLayers, there are a lot of places that you can > break things. We don't even know how data flows through your system or > who/what is rendering the route part of the image. > > -Steve > > Valeria Mu?oz wrote: > >> hi.. >> I am back again with my problem pgrouting.. I followed a little tutorial >> works perfectly with the shapefile from the example, but to use mine the >> result is not expected, generating lines are not continuous, I think I >> missing some coordinates or something to work with my shapefile. >> attached image. >> please help!!.. >> >> 2009/1/19 Valeria Mu?oz > >> >> >> Hi >> I would like to implement the service "optimum path between 2 >> points," can someone help me to be able to implement it?. The >> general idea is that a user picks a point A and point B and a >> display on the map the best route to get from point A to B. >> RG... >> >> >> >> ------------------------------------------------------------------------ >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Tue Feb 3 12:44:10 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 03 Feb 2009 15:44:10 -0500 Subject: [mapserver-users] optimal path between two points. In-Reply-To: <4b56aefe0902031223t2f766ba2ia4cdf20fbc45f114@mail.gmail.com> References: <4b56aefe0901191043k756aba67k253737d080d5420d@mail.gmail.com> <4b56aefe0902031147u8de1ac4h3cc424d6e3cf98f6@mail.gmail.com> <4988A37C.9000604@swoodbridge.com> <4b56aefe0902031223t2f766ba2ia4cdf20fbc45f114@mail.gmail.com> Message-ID: <4988AC9A.50205@swoodbridge.com> Yup, the results from pgRouting look broken. You should repost to the pgRouting list and describe how you set up your data. What tolerances you used when you created the vertices_tmp table, etc. This is not relevant to the mapserver list. -Steve W Valeria Mu?oz wrote: > example > > the query is optimal path between 887 y 852. : > SELECT rt.gid, AsText(rt.the_geom) AS wkt, > length(rt.the_geom) AS length, calle.gid > FROM calle, > (SELECT gid, the_geom > FROM dijkstra_sp_delta( > 'calle', > 887, > 852, > 3000) > ) as rt > WHERE calle.gid=rt.gid; > result: > > "gid";"wkt";"length";"gid" > 4389;"MULTILINESTRING((-71.1951327440651 > -30.5911350429583,-71.1957462426904 -30.5912128948402,-71.1957861853043 > -30.591219747929,-71.1958400125164 > -30.591211719682))";0.000713367403530106;4389 > 4603;"MULTILINESTRING((-71.1939954028678 > -30.5921681162637,-71.1939834234752 -30.5922241673576,-71.1938231446269 > -30.5925509466888))";0.000421286769021393;4603 > 4331;"MULTILINESTRING((-71.1950174992082 > -30.5919506007811,-71.1950526139385 > -30.5916919152203))";0.000261057969957178;4331 > 4608;"MULTILINESTRING((-71.1938231446269 > -30.5925509466888,-71.1937648360013 > -30.5926358138883))";0.00010296765211197;4608 > RG > > 2009/2/3 Stephen Woodbridge > > > This may be cause because you need to check the direction of the > line segments before you create a linestring to pass to the client. > If you route is something like > > segment source target > 1 1 3 > 2 4 3 > 3 7 4 > etc > > route (1,2,4,3,7,4) or 1,3,3,4) depending on how you assemble it is > not going to make sense. > > Then segment 2 needs to be reversed so it goes from 3 to 4 and > segment 3 needs to be reverse also. so you get: > > route (1,3,4,7). > > Also this is not really a mapserver issues and you should probably > pust this to the pgRouting list. It would alos help if you showed > some of the intermediate results. When you show a image and the > route is broken, most of us can look at the image and say "Yup, > looks like the route is broken!" We do not see what data you got out > of pgRouting, we do not know how that got passed to mapserver or > OpenLayers, there are a lot of places that you can break things. We > don't even know how data flows through your system or who/what is > rendering the route part of the image. > > -Steve > > Valeria Mu?oz wrote: > > hi.. > I am back again with my problem pgrouting.. I followed a little > tutorial works perfectly with the shapefile from the example, > but to use mine the result is not expected, generating lines are > not continuous, I think I missing some coordinates or something > to work with my shapefile. > attached image. > please help!!.. > > 2009/1/19 Valeria Mu?oz >> > > > Hi > I would like to implement the service "optimum path between 2 > points," can someone help me to be able to implement it?. The > general idea is that a user picks a point A and point B and a > display on the map the best route to get from point A to B. > RG... > > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > From orkney at gmx.de Tue Feb 3 16:18:45 2009 From: orkney at gmx.de (Daniel Kastl) Date: Wed, 04 Feb 2009 09:18:45 +0900 Subject: [mapserver-users] optimal path between two points. In-Reply-To: <4b56aefe0902031223t2f766ba2ia4cdf20fbc45f114@mail.gmail.com> References: <4b56aefe0901191043k756aba67k253737d080d5420d@mail.gmail.com> <4b56aefe0902031147u8de1ac4h3cc424d6e3cf98f6@mail.gmail.com> <4988A37C.9000604@swoodbridge.com> <4b56aefe0902031223t2f766ba2ia4cdf20fbc45f114@mail.gmail.com> Message-ID: <4988DEE5.4090508@gmx.de> Hi, I agree with Steve, that you better ask this question in the pgRouting forum or on their list. Looking at your screenshot my first thought was that your network topology is not correct, maybe you took a too high "tolerance" value when you assigned source and target IDs (units meter instead of degree). But let's discuss this better here http://pgrouting.postlbs.org/discussion or here http://lists.postlbs.org/mailman/listinfo/pgrouting-users Daniel Valeria Mu?oz schrieb: > example > > the query is optimal path between 887 y 852. : > SELECT rt.gid, AsText(rt.the_geom) AS wkt, > length(rt.the_geom) AS length, calle.gid > FROM calle, > (SELECT gid, the_geom > FROM dijkstra_sp_delta( > 'calle', > 887, > 852, > 3000) > ) as rt > WHERE calle.gid=rt.gid; > result: > > "gid";"wkt";"length";"gid" > 4389;"MULTILINESTRING((-71.1951327440651 > -30.5911350429583,-71.1957462426904 > -30.5912128948402,-71.1957861853043 -30.591219747929,-71.1958400125164 > -30.591211719682))";0.000713367403530106;4389 > 4603;"MULTILINESTRING((-71.1939954028678 > -30.5921681162637,-71.1939834234752 > -30.5922241673576,-71.1938231446269 > -30.5925509466888))";0.000421286769021393;4603 > 4331;"MULTILINESTRING((-71.1950174992082 > -30.5919506007811,-71.1950526139385 > -30.5916919152203))";0.000261057969957178;4331 > 4608;"MULTILINESTRING((-71.1938231446269 > -30.5925509466888,-71.1937648360013 > -30.5926358138883))";0.00010296765211197;4608 > RG > > 2009/2/3 Stephen Woodbridge > > > This may be cause because you need to check the direction of the > line segments before you create a linestring to pass to the > client. If you route is something like > > segment source target > 1 1 3 > 2 4 3 > 3 7 4 > etc > > route (1,2,4,3,7,4) or 1,3,3,4) depending on how you assemble it > is not going to make sense. > > Then segment 2 needs to be reversed so it goes from 3 to 4 and > segment 3 needs to be reverse also. so you get: > > route (1,3,4,7). > > Also this is not really a mapserver issues and you should probably > pust this to the pgRouting list. It would alos help if you showed > some of the intermediate results. When you show a image and the > route is broken, most of us can look at the image and say "Yup, > looks like the route is broken!" We do not see what data you got > out of pgRouting, we do not know how that got passed to mapserver > or OpenLayers, there are a lot of places that you can break > things. We don't even know how data flows through your system or > who/what is rendering the route part of the image. > > -Steve > > Valeria Mu?oz wrote: > > hi.. > I am back again with my problem pgrouting.. I followed a > little tutorial works perfectly with the shapefile from the > example, but to use mine the result is not expected, > generating lines are not continuous, I think I missing some > coordinates or something to work with my shapefile. > attached image. > please help!!.. > > 2009/1/19 Valeria Mu?oz >> > > > Hi > I would like to implement the service "optimum path > between 2 > points," can someone help me to be able to implement it?. The > general idea is that a user picks a point A and point B and a > display on the map the best route to get from point A to B. > RG... > > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From M.Kofahl at gmx.net Tue Feb 3 23:27:34 2009 From: M.Kofahl at gmx.net (Martin Kofahl) Date: Wed, 04 Feb 2009 08:27:34 +0100 Subject: [mapserver-users] segmentation fault with endless recursion In-Reply-To: References: Message-ID: <20090204072734.93990@gmx.net> Try to add a STYLE section (even empty - STYLE END) in you class CLASS EXPRESSION "" NAME "Pont" END Martin -------- Original-Nachricht -------- > Datum: Tue, 3 Feb 2009 14:44:26 +0100 > Von: "Bal?zs B?mer" > An: mapserver-users at lists.osgeo.org > Betreff: [mapserver-users] segmentation fault with endless recursion > Hi All, > > I always receive segmentation fault for the map file here: > http://www.bamer.hu/proba.map > > My GDAL version can see in part of gdb backtrace: > #9426 0xb7983d5b in sincos () from /usr/lib/libgdal1.5.0.so.1 > #9427 0xb7983d5b in sincos () from /usr/lib/libgdal1.5.0.so.1 > #9428 0xb7983d5b in sincos () from /usr/lib/libgdal1.5.0.so.1 > > The OS is Ubuntu Linux 8.10 I installed gdal using apt-get. Installed > packages are > gdal-bin install > libgdal-doc install > libgdal1-1.5.0 install > libgdal1-dev install > > actual libgdal is /usr/lib/libgdal1.5.0.so.1.12.2 > > My Mapserver is configured with the line below: > ./configure --with-oci > --with-oraclespatial=/usr/local/instantclient_11_1 --with-proj > --with-threads --with-gdal --with-ogr --with-jpeg --with-png=/usr/lib > --with-php=/usr/include/php5 > > configure output here: > http://www.bamer.hu/konf > > What is the problem with gdal? > > Thank you in advance. > Best regards: Bal?zs B?mer > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From pal.kristensen at statkart.no Wed Feb 4 02:19:12 2009 From: pal.kristensen at statkart.no (paalkr) Date: Wed, 4 Feb 2009 02:19:12 -0800 (PST) Subject: [mapserver-users] exclude layer from wms capabilities In-Reply-To: <498750D9.9040504@gmx.net> References: <498750D9.9040504@gmx.net> Message-ID: <1233742752674-2268004.post@n2.nabble.com> Hi! This issue has been discussed several times in the past. Se the links below for some more information: http://n2.nabble.com/Hiding-overviews-tt1970417.html#a1970417 http://n2.nabble.com/GetCapabilities-for-a-specific-layer%2C-not-the-entire-mapfile--tt1970666.html#a1970668 There is also a patch available which I have used with great success. http://trac.osgeo.org/mapserver/ticket/1952 This patch has to be considered a quickfix, as long as the ticket below is not resolved. http://trac.osgeo.org/mapserver/ticket/2582 I really hope that this issue will be fixed for the 5.4 release. Some people, you and me included, requests this functionality from time to time. The issue is recognized as a bug and therefore should be fixed. I think the best approach would be to take the MS_DELETE keyword into consideration when requesting capabilities (as described in ticket 2582) Regards, P?l Kristensen Martin Kofahl wrote: > > I've got a copyright layer in a map file, status is default. Is there a > way to hide this annotation layer in the capabilities output? > > Martin > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/exclude-layer-from-wms-capabilities-tp2259954p2268004.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Wed Feb 4 04:17:45 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 4 Feb 2009 14:17:45 +0200 Subject: [mapserver-users] Multiple bounding boxes for WMS layers In-Reply-To: <1233742752674-2268004.post@n2.nabble.com> Message-ID: Hi, There is a closed ticket http://trac.osgeo.org/mapserver/ticket/1905 We need to deliver most of our WMS layers in 3-5 different projections. It would good to get bounding boxes for all the projections that are advertised with "wms_srs". Ticket comment: "Do we really want/need this?" My comment: If bounding box is missing the GIS client cannot zoom to WMS layer. Users need to open some local vector file or WFS layer in correct projection for locating themselves to correct place. It is not very handy. Ticket comment: "Imagine for instance a server which advertizes 50 SRS and contains 50 layers... thbose are fairly low numbers for WMS services but would result in 2500 bbox entries, most of them possibly invalid because the bbox is outside the projections' mathematical limits and the reprojection of the bbox results in invalid values." My comment: I did, and continued to imagine a server advertizing 1000 SRS and 1000 layers. Wow, I see a million bounding boxes in my eyes :) In real life less than hundred boxes would be enough for us and our users would love us. If Mapserver won't support multiple bounding boxes I could also imagine to make it manually. But should I then create some static getCapabilities document and deliver that for our clients? Where should I put the file when running Mapserver from MS4W? -Jukka Rahkonen- From dzizes451 at gmail.com Wed Feb 4 05:58:02 2009 From: dzizes451 at gmail.com (dzizes) Date: Wed, 4 Feb 2009 05:58:02 -0800 (PST) Subject: [mapserver-users] msOracleSpatialLayerGetShape(): OracleSpatial error. Error: ORA-00932 Message-ID: <1233755882631-2268870.post@n2.nabble.com> Hi, I've created a simple Oracle table, which contains NUMERIC id, SDO_GEOMETRY shape and SDO_GEOM.SDO_CENTROID based on shape. There are spatial indexes on both geometry columns. GetMap requests are valid and I can see the map. However, when requesting a GetFeatureInfo I receive: Layer 'SHAPE' Content-type: application/vnd.ogc.se_xml msOracleSpatialLayerGetShape(): OracleSpatial error. Error: ORA-00932: inconsistent datatypes: expected %s got %s . Query statement: SELECT ID, GEO_CENTROID, GEOMETRIA FROM GEOM WHERE ID = 18746 .Check your data statement. below my WMS request: http://localhost/cgi-bin/mapserv?map=/map/shape.map&service=WMS&VERSION=1.1&SRS=EPSG:4326&LAYERS=SHAPE&TRANSPARENT=true&FORMAT=image%2Fpng&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&BBOX=17.545968%2C51.146653%2C17.552216%2C51.151939&X=374&Y=146&INFO_FORMAT=mime&QUERY_LAYERS=SHAPE&WIDTH=656&HEIGHT=555 any help apriciated! -- View this message in context: http://n2.nabble.com/msOracleSpatialLayerGetShape%28%29%3A-OracleSpatial-error.-Error%3A-ORA-00932-tp2268870p2268870.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dzizes451 at gmail.com Wed Feb 4 06:16:51 2009 From: dzizes451 at gmail.com (dzizes) Date: Wed, 4 Feb 2009 06:16:51 -0800 (PST) Subject: [mapserver-users] OracleSpatial ENCODING Message-ID: <1233757011420-2268981.post@n2.nabble.com> Hello! I would like to get Polish fonts from layer stored in Oracle Spatial. The layer is properly created and I can nicely GetMap(s). In the LABEL section in my mapfile I've added ENCODING ISO-8859-2 It does not work. Help! -- View this message in context: http://n2.nabble.com/OracleSpatial-ENCODING-tp2268981p2268981.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jkapalczynski at ci.maple-grove.mn.us Tue Feb 3 14:09:20 2009 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Tue, 3 Feb 2009 16:09:20 -0600 Subject: [mapserver-users] FW: Expressions Message-ID: I am trying to do expressions based on a shapefile...I had this working in a prior version but now it wont work... The fields GEO_SIMPLE and dateValues exist in the shapefile. I have the date values in "dateValues" as TEXT, 8 characters. The Star symbols come up but the application freezes up and wont draw the rest of the layers...so I have something wrong... Does the date format have to be changed? Does the field have to be a date field? Will the below format work? ("%2M%2D%2Y) But in the field it looks like this 11509 If I remove the param types and the expression stuff it draws the layer fine...so it has to be with the dates. THANKS IN ADVANCE FOR ANY HELP I get this error: [cid:image001.png at 01C98611.1084BB70] DEMO.XML /ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/Burglaries/Burglaries_8bit.map BURGLARIES.map CLASS NAME 'Last Week' EXPRESSION ('[GEO_SIMPLE]' = 'BURGLARY' AND '[dateValues]' > '%LASTWEEK%') COLOR 197 0 255 SYMBOL "star" SIZE 12 END CLASS NAME 'Last Two Weeks' EXPRESSION ('[GEO_SIMPLE]' = 'BURGLARY' AND '[dateValues]' > '%LASTTWOWEEKS%') COLOR 255 0 0 SYMBOL "star" SIZE 12 END CLASS NAME 'Last Thirty Days' EXPRESSION ('[GEO_SIMPLE]' = 'BURGLARY' AND '[dateValues]' > '%LASTTHIRTY%') COLOR 0 255 0 SYMBOL "star" SIZE 12 END CLASS NAME 'Last Ninety Days' EXPRESSION ('[GEO_SIMPLE]' = 'BURGLARY' AND '[dateValues]' > '%LASTNINTY%') COLOR 0 0 255 SYMBOL "star" SIZE 12 END -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 17636 bytes Desc: image001.png URL: From umn-ms at hydrotec.de Wed Feb 4 06:24:50 2009 From: umn-ms at hydrotec.de (umn-ms at hydrotec.de) Date: Wed, 4 Feb 2009 15:24:50 +0100 Subject: Antwort: [mapserver-users] msOracleSpatialLayerGetShape(): OracleSpatial error. Error: ORA-00932 In-Reply-To: <1233755882631-2268870.post@n2.nabble.com> Message-ID: Hi I think you shouldn't query 2 geometry-columns at once Either DATA "GEOMETRIA FROM (SELECT ID, GEOMETRIA FROM GEOM) USING UNIQUE ID SRID XYZ" or DATA "GEO_CENTROID FROM (SELECT ID, GEO_CENTROID FROM GEOM) USING UNIQUE ID SRID XYZ" If you want to have the Centerpoint in Getfeatureinfo you may try: DATA "GEOMETRIA FROM (SELECT ID, GEOMETRIA, GEO_CENTROID.SDO_POINT.X, GEO_CENTROID.SDO_POINT.Y FROM GEOM) USING UNIQUE ID SRID XYZ" Bye Benedikt Rothe mapserver-users-bounces at lists.osgeo.org schrieb am 04.02.2009 14:58:02: > > Hi, > > I've created a simple Oracle table, which contains NUMERIC id, SDO_GEOMETRY > shape and SDO_GEOM.SDO_CENTROID based on shape. There are spatial indexes on > both geometry columns. > GetMap requests are valid and I can see the map. However, when requesting a > GetFeatureInfo I receive: > > Layer 'SHAPE' > Content-type: application/vnd.ogc.se_xml > > > "http://schemas.opengis.net/wms/1.1.0/exception_1_1_0.dtd"> > > > msOracleSpatialLayerGetShape(): OracleSpatial error. Error: ORA-00932: > inconsistent datatypes: expected %s got %s > . Query statement: SELECT ID, GEO_CENTROID, GEOMETRIA FROM GEOM WHERE ID = > 18746 .Check your data statement. > > > > below my WMS request: > > http://localhost/cgi-bin/mapserv?map=/map/shape. > map&service=WMS&VERSION=1.1&SRS=EPSG: > 4326&LAYERS=SHAPE&TRANSPARENT=true&FORMAT=image% > 2Fpng&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd. > ogc.se_xml&BBOX=17.545968%2C51.146653%2C17.552216%2C51. > 151939&X=374&Y=146&INFO_FORMAT=mime&QUERY_LAYERS=SHAPE&WIDTH=656&HEIGHT=555 > > any help apriciated! > > -- > View this message in context: http://n2.nabble. > com/msOracleSpatialLayerGetShape%28%29%3A-OracleSpatial-error.- > Error%3A-ORA-00932-tp2268870p2268870.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Eichner at sid.sachsen.de Wed Feb 4 06:25:38 2009 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Wed, 4 Feb 2009 15:25:38 +0100 Subject: AW: [mapserver-users] OracleSpatial ENCODING References: <1233757011420-2268981.post@n2.nabble.com> Message-ID: You have to put something like SetEnv NLS_LANG GERMAN_GERMANY.WE8ISO8859P1 in your apache.conf. Of course, you need to use that value appropriate for your setup. Might be SetEnv NLS_LANG POLISH_POLAND.EE8MSWIN1250 or simply SetEnv NLS_LANG _POLAND. See http://www.oracle.com/technology/tech/globalization/htdocs/nls_lang%20faq.htm for more information. -----Urspr?ngliche Nachricht----- Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von dzizes Gesendet: Mittwoch, 4. Februar 2009 15:17 An: mapserver-users at lists.osgeo.org Betreff: [mapserver-users] OracleSpatial ENCODING Hello! I would like to get Polish fonts from layer stored in Oracle Spatial. The layer is properly created and I can nicely GetMap(s). In the LABEL section in my mapfile I've added ENCODING ISO-8859-2 It does not work. Help! -- View this message in context: http://n2.nabble.com/OracleSpatial-ENCODING-tp2268981p2268981.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From umn-ms at hydrotec.de Wed Feb 4 06:32:19 2009 From: umn-ms at hydrotec.de (umn-ms at hydrotec.de) Date: Wed, 4 Feb 2009 15:32:19 +0100 Subject: Antwort: [mapserver-users] OracleSpatial ENCODING In-Reply-To: <1233757011420-2268981.post@n2.nabble.com> Message-ID: > > Hello! > I would like to get Polish fonts from layer stored in Oracle Spatial. > The layer is properly created and I can nicely GetMap(s). > In the LABEL section in my mapfile I've added > > ENCODING ISO-8859-2 For german we have to set the environment-variable NLS_LANG: export NLS_LANG=german_germany.we8iso8859p1 Maybe you have to use NLS_LANG=poland_polish.we8iso8859p2 or just NLS_LANG=we8iso8859p2 Benedikt http://www.dba-oracle.com/t_nls_lang.htm > > It does not work. > > Help! > > -- > View this message in context: http://n2.nabble.com/OracleSpatial- > ENCODING-tp2268981p2268981.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.hopfgartner at r3-gis.com Wed Feb 4 05:47:15 2009 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Wed, 04 Feb 2009 14:47:15 +0100 Subject: [mapserver-users] Multilingual map files Message-ID: <49899C63.5020705@r3-gis.com> Dear list members I would like ask how map files for multilingual applications are handled by mapserver users. Multilingual information may impact the map in various ways. As by now, those come to mind: * Fix strings in the map file, (NAME, DESCRIPTION etc) * Database borne data, changing column for different languages as for LABELITEM * Queries changing with language, so that DATA/FILTER statements must be adapted to the current language (e.g. WHERE lang_id='en'). What we are currently doing is to write the mapfiles like: CLASS NAME "IT:Progetti linee|DE:Projekte Linien" SYMBOL 'circle' SIZE 3 COLOR 0 0 255 END METADATA "DESCRIPTION" "IT:Progetti|DE:Projekte" END LABELITEM "IT:gemi|DE:gemd" and modify the labels through Mapscript before rendering the map. This works if the map file is processed by Mapscript, whereas it would not work for CGI and W*S services. We would need a map file for each language for those services. How do you handle i18n in MapServer? Regards, Peter -- Dott. Peter Hopfgartner R3 GIS Srl - GmbH Via Johann Kravogl-Str. 2 I-39012 Meran/Merano (BZ) Email: peter.hopfgartner at r3-gis.com Tel. : +39 0473 494949 Fax : +39 0473 069902 www : http://www.r3-gis.com From Jukka.Rahkonen at mmmtike.fi Wed Feb 4 07:44:39 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 4 Feb 2009 17:44:39 +0200 Subject: [mapserver-users] Re: bounding boxes for different SRS in WMS In-Reply-To: <4989B728.4000309@azgs.az.gov> Message-ID: Hi, I think in the same way, because OpenJUMP WMS client has a menu box for browsing the different boxes and that has at least partly made by deegree folks. It does not help me much because we are going to continue with Mapserver. -Jukka- > -----Alkuper?inen viesti----- > L?hett?j?: Stephen M. Richard [mailto:steve.richard at azgs.az.gov] > L?hetetty: 4. helmikuuta 2009 17:41 > Vastaanottaja: Rahkonen Jukka > Aihe: bounding boxes for different SRS in WMS > > Jukka-- I think the DeeGree WMS configuration allows > specification of bounding boxes for different SRS, but I > haven't actually tested that. > steve > > -- > Stephen M. Richard > Section Chief, Geoinformatics > Arizona Geological Survey > 416 W. Congress St., #100 > Tucson, Arizona, 85701 > USA > phone: (520) 770-3500. FAX: (520) 770-3505 > email: steve.richard at azgs.az.gov > > > From dzizes451 at gmail.com Wed Feb 4 07:46:53 2009 From: dzizes451 at gmail.com (dzizes) Date: Wed, 4 Feb 2009 07:46:53 -0800 (PST) Subject: [mapserver-users] Antwort: msOracleSpatialLayerGetShape(): OracleSpatial error. Error: ORA-00932 In-Reply-To: References: <1233755882631-2268870.post@n2.nabble.com> Message-ID: <1233762413666-2269508.post@n2.nabble.com> Hi, I've changed into: DATA "GEOMETRIA FROM (SELECT ID, GEOMETRIA FROM GEOM) USING UNIQUE ID VERSION 10g" and GetFeatureInfo works fine. However, I can not see the map :( -- View this message in context: http://n2.nabble.com/msOracleSpatialLayerGetShape%28%29%3A-OracleSpatial-error.-Error%3A-ORA-00932-tp2268870p2269508.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Tom.Kralidis at ec.gc.ca Wed Feb 4 08:14:27 2009 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Wed, 4 Feb 2009 11:14:27 -0500 Subject: [mapserver-users] Multilingual map files In-Reply-To: <49899C63.5020705@r3-gis.com> References: <49899C63.5020705@r3-gis.com> Message-ID: > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Peter Hopfgartner > Sent: Wednesday, 04 February 2009 08:47 > To: mapserver-users at lists.osgeo.org > Cc: Paolo Viskanic > Subject: [mapserver-users] Multilingual map files > > Dear list members > > I would like ask how map files for multilingual applications > are handled by mapserver users. > > Multilingual information may impact the map in various ways. > As by now, those come to mind: > > * Fix strings in the map file, (NAME, DESCRIPTION etc) > * Database borne data, changing column for different > languages as for LABELITEM > * Queries changing with language, so that DATA/FILTER > statements must be adapted to the current language (e.g. > WHERE lang_id='en'). > > What we are currently doing is to write the mapfiles like: > > CLASS > NAME "IT:Progetti linee|DE:Projekte Linien" > SYMBOL 'circle' > SIZE 3 > COLOR 0 0 255 > END > > METADATA > "DESCRIPTION" "IT:Progetti|DE:Projekte" > END > > LABELITEM "IT:gemi|DE:gemd" > > and modify the labels through Mapscript before rendering the > map. This works if the map file is processed by Mapscript, > whereas it would not work for CGI and W*S services. We would > need a map file for each language for those services. > For WxS, the specs themselves don't handle this, but it would be nice to handle multilingual metadata in one document, i.e.: road rue In our environment, we've created one mapfile / language. One thing you could do is use MapScript WxS to intercept an incoming request (say with an extended lang parameter), then, once you have the lang, set the values in the mapfile accordingly. ..Tom > How do you handle i18n in MapServer? > From jkapalczynski at ci.maple-grove.mn.us Wed Feb 4 08:38:42 2009 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Wed, 4 Feb 2009 10:38:42 -0600 Subject: [mapserver-users] Expressions Message-ID: I am trying to do expressions based on a shapefile...I had this working in a prior version but now it wont work... The fields GEO_SIMPLE and dateValues exist in the shapefile. I have the date values in "dateValues" as TEXT, 8 characters. The Star symbols come up but the application freezes up and wont draw the rest of the layers...so I have something wrong... Does the date format have to be changed? Does the field have to be a date field? Will the below format work? ("%2M%2D%2Y) But in the field it looks like this 11509 If I remove the param types and the expression stuff it draws the layer fine...so it has to be with the dates. THANKS IN ADVANCE FOR ANY HELP I get this error: Strfdate is not defined mapParams[i].SetAttribute('value',strfdate(new Date(d.getTime()+offset),formats............ DEMO.XML /ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/Burglaries/Burglaries_8bit.map BURGLARIES.map CLASS NAME 'Last Week' EXPRESSION ('[GEO_SIMPLE]' = 'BURGLARY' AND '[dateValues]' > '%LASTWEEK%') COLOR 197 0 255 SYMBOL "star" SIZE 12 END CLASS NAME 'Last Two Weeks' EXPRESSION ('[GEO_SIMPLE]' = 'BURGLARY' AND '[dateValues]' > '%LASTTWOWEEKS%') COLOR 255 0 0 SYMBOL "star" SIZE 12 END CLASS NAME 'Last Thirty Days' EXPRESSION ('[GEO_SIMPLE]' = 'BURGLARY' AND '[dateValues]' > '%LASTTHIRTY%') COLOR 0 255 0 SYMBOL "star" SIZE 12 END CLASS NAME 'Last Ninety Days' EXPRESSION ('[GEO_SIMPLE]' = 'BURGLARY' AND '[dateValues]' > '%LASTNINTY%') COLOR 0 0 255 SYMBOL "star" SIZE 12 END -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Wed Feb 4 08:55:05 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 04 Feb 2009 11:55:05 -0500 Subject: [mapserver-users] Expressions In-Reply-To: References: Message-ID: <4989C869.3010208@gatewaygeomatics.com> Jay Kapalczynski wrote: > I am trying to do expressions based on a shapefile?I had this working in > a prior version but now it wont work? > > > > The fields GEO_SIMPLE and dateValues exist in the shapefile. > > I have the date values in ?dateValues? as TEXT, 8 characters. > > > > The Star symbols come up but the application freezes up and wont draw > the rest of the layers?so I have something wrong? > > > > Does the date format have to be changed? > > Does the field have to be a date field? > > Will the below format work? ("%2M%2D%2Y) > > But in the field it looks like this *11509* > > > > If I remove the param types and the expression stuff it draws the layer > fine?so it has to be with the dates. > > > > THANKS IN ADVANCE FOR ANY HELP > > > > I get this error: > > > > Strfdate is not defined > > > > mapParams[i].SetAttribute(?value?,strfdate(new > Date(d.getTime()+offset),formats???? > > > > > > > > *DEMO.XML* > > popups="true" data="true"> > > format="%2M%2D%2Y"/> > > format="%2M%2D%2Y"/> > > format="%2M%2D%2Y"/> > > format="%2M%2D%2Y"/> > > > /ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/Burglaries/Burglaries_8bit.map > > > > > > > > > > *BURGLARIES.map* > > CLASS > > NAME 'Last Week' > > EXPRESSION ('[GEO_SIMPLE]' = > 'BURGLARY' AND '[dateValues]' > '%LASTWEEK%') > > COLOR 197 0 255 > > SYMBOL "star" > > SIZE 12 > > END > > > > CLASS > > NAME 'Last Two Weeks' > > EXPRESSION ('[GEO_SIMPLE]' = > 'BURGLARY' AND '[dateValues]' > '%LASTTWOWEEKS%') > > COLOR 255 0 0 > > SYMBOL "star" > > SIZE 12 > > END > > > > CLASS > > NAME 'Last Thirty Days' > > EXPRESSION ('[GEO_SIMPLE]' = > 'BURGLARY' AND '[dateValues]' > '%LASTTHIRTY%') > > COLOR 0 255 0 > > SYMBOL "star" > > SIZE 12 > > END > > > > CLASS > > NAME 'Last Ninety Days' > > EXPRESSION ('[GEO_SIMPLE]' = > 'BURGLARY' AND '[dateValues]' > '%LASTNINTY%') > > COLOR 0 0 255 > > SYMBOL "star" > > SIZE 12 > > END > The first thing you might try is a shp2img command (http://mapserver.org/utilities/shp2img.html) with the -map_debug switch (see example on that page) and then report the errors listed in that command result to this mapserver-users email list. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From David.Fawcett at state.mn.us Wed Feb 4 08:56:38 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Wed, 4 Feb 2009 10:56:38 -0600 Subject: [mapserver-users] Expressions In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA1D2@s-sp22.pca.state.mn.us> Jay, This sounds like more of a GeoMoose problem than a MapServer problem. I would try that list as well. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay Kapalczynski Sent: Wednesday, February 04, 2009 10:39 AM To: 'mapserver-users at lists.osgeo.org'; 'mapserver-users at lists.umn.edu' Subject: [mapserver-users] Expressions I am trying to do expressions based on a shapefile...I had this working in a prior version but now it wont work... The fields GEO_SIMPLE and dateValues exist in the shapefile. I have the date values in "dateValues" as TEXT, 8 characters. The Star symbols come up but the application freezes up and wont draw the rest of the layers...so I have something wrong... Does the date format have to be changed? Does the field have to be a date field? Will the below format work? ("%2M%2D%2Y) But in the field it looks like this 11509 If I remove the param types and the expression stuff it draws the layer fine...so it has to be with the dates. THANKS IN ADVANCE FOR ANY HELP I get this error: Strfdate is not defined mapParams[i].SetAttribute('value',strfdate(new Date(d.getTime()+offset),formats............ DEMO.XML /ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/Burglaries/Burglaries_8bi t.map BURGLARIES.map CLASS NAME 'Last Week' EXPRESSION ('[GEO_SIMPLE]' = 'BURGLARY' AND '[dateValues]' > '%LASTWEEK%') COLOR 197 0 255 SYMBOL "star" SIZE 12 END CLASS NAME 'Last Two Weeks' EXPRESSION ('[GEO_SIMPLE]' = 'BURGLARY' AND '[dateValues]' > '%LASTTWOWEEKS%') COLOR 255 0 0 SYMBOL "star" SIZE 12 END CLASS NAME 'Last Thirty Days' EXPRESSION ('[GEO_SIMPLE]' = 'BURGLARY' AND '[dateValues]' > '%LASTTHIRTY%') COLOR 0 255 0 SYMBOL "star" SIZE 12 END CLASS NAME 'Last Ninety Days' EXPRESSION ('[GEO_SIMPLE]' = 'BURGLARY' AND '[dateValues]' > '%LASTNINTY%') COLOR 0 0 255 SYMBOL "star" SIZE 12 END -------------- next part -------------- An HTML attachment was scrubbed... URL: From jkapalczynski at ci.maple-grove.mn.us Wed Feb 4 08:34:40 2009 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Wed, 4 Feb 2009 10:34:40 -0600 Subject: [mapserver-users] RE: Expressions In-Reply-To: References: Message-ID: Has something changes in the newer version of map server? Has anyone done this before? Or ran into this problem? Thanks From: Jay Kapalczynski Sent: Tuesday, February 03, 2009 4:09 PM To: mapserver-users at lists.osgeo.org Subject: FW: Expressions I am trying to do expressions based on a shapefile...I had this working in a prior version but now it wont work... The fields GEO_SIMPLE and dateValues exist in the shapefile. I have the date values in "dateValues" as TEXT, 8 characters. The Star symbols come up but the application freezes up and wont draw the rest of the layers...so I have something wrong... Does the date format have to be changed? Does the field have to be a date field? Will the below format work? ("%2M%2D%2Y) But in the field it looks like this 11509 If I remove the param types and the expression stuff it draws the layer fine...so it has to be with the dates. THANKS IN ADVANCE FOR ANY HELP I get this error: [cid:image001.png at 01C986B4.2E6B0290] DEMO.XML /ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/Burglaries/Burglaries_8bit.map BURGLARIES.map CLASS NAME 'Last Week' EXPRESSION ('[GEO_SIMPLE]' = 'BURGLARY' AND '[dateValues]' > '%LASTWEEK%') COLOR 197 0 255 SYMBOL "star" SIZE 12 END CLASS NAME 'Last Two Weeks' EXPRESSION ('[GEO_SIMPLE]' = 'BURGLARY' AND '[dateValues]' > '%LASTTWOWEEKS%') COLOR 255 0 0 SYMBOL "star" SIZE 12 END CLASS NAME 'Last Thirty Days' EXPRESSION ('[GEO_SIMPLE]' = 'BURGLARY' AND '[dateValues]' > '%LASTTHIRTY%') COLOR 0 255 0 SYMBOL "star" SIZE 12 END CLASS NAME 'Last Ninety Days' EXPRESSION ('[GEO_SIMPLE]' = 'BURGLARY' AND '[dateValues]' > '%LASTNINTY%') COLOR 0 0 255 SYMBOL "star" SIZE 12 END -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 17636 bytes Desc: image001.png URL: From gwaldron at gmail.com Wed Feb 4 10:52:26 2009 From: gwaldron at gmail.com (gwaldron) Date: Wed, 4 Feb 2009 10:52:26 -0800 (PST) Subject: [mapserver-users] Using IMAGECOLOR to create a transparency mask Message-ID: <1233773546429-2270688.post@n2.nabble.com> I'm trying to use IMAGECOLOR to try to force all pixels of a certain color to become fully transparent, but I am not having any luck getting it to work. My output format it AGG/PNG, RGBA, TRANSPARENT ON. I have a shapefile layer set to COLOR 0 50 100, and my map-level IMAGECOLOR set to the same. I was hoping all the polys in the shapefile would render as transparent pixels, but no luck; they just show up as blue polygons. What am I doing wrong here? Thanks. ----- Glenn Waldron * Pelican Mapping * gwaldron at pelicanmapping.com * +1 703 652 4791 -- View this message in context: http://n2.nabble.com/Using-IMAGECOLOR-to-create-a-transparency-mask-tp2270688p2270688.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mike at barrodale.com Wed Feb 4 11:05:06 2009 From: mike at barrodale.com (Mike Dunham-Wilkie) Date: Wed, 04 Feb 2009 11:05:06 -0800 Subject: [mapserver-users] Using IMAGECOLOR to create a transparency mask In-Reply-To: <1233773546429-2270688.post@n2.nabble.com> References: <1233773546429-2270688.post@n2.nabble.com> Message-ID: <20090204191232.E399AE0006B@lists.osgeo.org> Sorry Glenn, I don't have an answer, but I've been dealing with the same problem. Transparency seems to work as expected with: OUTPUTFORMAT NAME png24 DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" TRANSPARENT ON END but not with: OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGBA FORMATOPTION "PALETTE_FORCE=TRUE" FORMATOPTION "PALETTE=" TRANSPARENT ON END It's as if with AGG/PNG the TRANSPARENT ON setting is completely ignored. Mike At 10:52 AM 04/02/2009, gwaldron wrote: >I'm trying to use IMAGECOLOR to try to force all pixels of a certain color to >become fully transparent, but I am not having any luck getting it to work. > >My output format it AGG/PNG, RGBA, TRANSPARENT ON. > >I have a shapefile layer set to COLOR 0 50 100, and my map-level IMAGECOLOR >set to the same. I was hoping all the polys in the shapefile would render as >transparent pixels, but no luck; they just show up as blue polygons. > >What am I doing wrong here? Thanks. > >----- >Glenn Waldron * Pelican Mapping * gwaldron at pelicanmapping.com * +1 703 652 >4791 >-- >View this message in context: >http://n2.nabble.com/Using-IMAGECOLOR-to-create-a-transparency-mask-tp2270688p2270688.html >Sent from the Mapserver - User mailing list archive at Nabble.com. > >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users ---------------------------------------------- Michael Dunham-Wilkie, M.Sc., M.P.A. Senior Database Analyst Barrodale Computing Services Ltd. Tel: (250) 472-4372 Fax: (250) 472-4373 Web: http://www.barrodale.com Email: mike at barrodale.com ---------------------------------------------- Mailing Address: P.O. Box 3075 STN CSC Victoria BC Canada V8W 3W2 Shipping Address: Hut R, McKenzie Avenue University of Victoria Victoria BC Canada V8W 3W2 ---------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From randre at gmail.com Wed Feb 4 11:19:04 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Wed, 4 Feb 2009 11:19:04 -0800 Subject: [mapserver-users] Using IMAGECOLOR to create a transparency mask In-Reply-To: <20090204191232.E399AE0006B@lists.osgeo.org> References: <1233773546429-2270688.post@n2.nabble.com> <20090204191232.E399AE0006B@lists.osgeo.org> Message-ID: <9c2015090902041119t3ca6b120l7a9afc89282fa0c7@mail.gmail.com> Hey guys, Have a try resetting your OUTPUTFORMAT to this: OUTPUTFORMAT NAME 'AGGA' DRIVER AGG/PNG MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" FORMATOPTION "INTERLACE=OFF" END Transparency works for me with this. -- On Wed, Feb 4, 2009 at 11:05 AM, Mike Dunham-Wilkie wrote: > > Sorry Glenn, I don't have an answer, but I've been dealing with the same > problem. > > Transparency seems to work as expected with: > > OUTPUTFORMAT > NAME png24 > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE RGBA > EXTENSION "png" > TRANSPARENT ON > END > > but not with: > > OUTPUTFORMAT > NAME 'AGG' > DRIVER AGG/PNG > IMAGEMODE RGBA > FORMATOPTION "PALETTE_FORCE=TRUE" > FORMATOPTION "PALETTE=" > TRANSPARENT ON > END > > It's as if with AGG/PNG the TRANSPARENT ON setting is completely ignored. > > Mike > > > > At 10:52 AM 04/02/2009, gwaldron wrote: > > > I'm trying to use IMAGECOLOR to try to force all pixels of a certain color > to > become fully transparent, but I am not having any luck getting it to work. > > My output format it AGG/PNG, RGBA, TRANSPARENT ON. > > I have a shapefile layer set to COLOR 0 50 100, and my map-level IMAGECOLOR > set to the same. I was hoping all the polys in the shapefile would render > as > transparent pixels, but no luck; they just show up as blue polygons. > > What am I doing wrong here? Thanks. > > ----- > Glenn Waldron * Pelican Mapping * gwaldron at pelicanmapping.com * +1 703 652 > 4791 > -- > View this message in context: > http://n2.nabble.com/Using-IMAGECOLOR-to-create-a-transparency-mask-tp2270688p2270688.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ---------------------------------------------- > Michael Dunham-Wilkie, M.Sc., M.P.A. > Senior Database Analyst > Barrodale Computing Services Ltd. > Tel: (250) 472-4372 Fax: (250) 472-4373 > Web: http://www.barrodale.com > Email: mike at barrodale.com > ---------------------------------------------- > Mailing Address: > P.O. Box 3075 STN CSC > Victoria BC Canada V8W 3W2 > > Shipping Address: > Hut R, McKenzie Avenue > University of Victoria > Victoria BC Canada V8W 3W2 > ---------------------------------------------- > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Wed Feb 4 11:55:13 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 04 Feb 2009 13:55:13 -0600 Subject: [mapserver-users] CLASS expression and maxscaledenom ignored In-Reply-To: <427029.61749.qm@web52306.mail.re2.yahoo.com> References: <427029.61749.qm@web52306.mail.re2.yahoo.com> Message-ID: <49899E41.5157.008F.0@dnr.state.mn.us> In looking at the source the attribute queries do respect both class expressions and scales. However, a typical attribute query will not result in a scale being set beforehand because attribute queries tend not to be tied to a map unlike "click on a map" type queries. The whichShapes method is CLASS independent and is really just a convenience method. The other query functions use whichShapes internally to setup the list of candidate shapes and they themselves apply specific rules to include or exclude a candidate shape. For queries we look at the availability of a presentation template for example. What does your class structure look like? Steve >>> On 2/2/2009 at 6:15 PM, in message <427029.61749.qm at web52306.mail.re2.yahoo.com>, "J.J. Schlafley" wrote: > I have found that the functions LayerObj.whichShapes() and > LayerObj.queryByAttributes ignore any CLASS expression or maxscaledenom in > the LAYER. The results returned by these functions seem to come from "any" > feature in the layer's dataset at the given spatial extent and/or attribute > query. Anyone else ever come across this? > > Thanks, > > JJ > > > From gwaldron at gmail.com Wed Feb 4 11:58:16 2009 From: gwaldron at gmail.com (gwaldron) Date: Wed, 4 Feb 2009 11:58:16 -0800 (PST) Subject: [mapserver-users] Using IMAGECOLOR to create a transparency mask In-Reply-To: <9c2015090902041119t3ca6b120l7a9afc89282fa0c7@mail.gmail.com> References: <1233773546429-2270688.post@n2.nabble.com> <20090204191232.E399AE0006B@lists.osgeo.org> <9c2015090902041119t3ca6b120l7a9afc89282fa0c7@mail.gmail.com> Message-ID: <1233777496035-2271134.post@n2.nabble.com> Roger, Andre, Thanks for your suggestions .... unfortunately none of these ideas worked for me. I will keep banging away at it and let me know if I discover anything. Glenn Roger Andr? wrote: > > Hey guys, > > Have a try resetting your OUTPUTFORMAT to this: > > OUTPUTFORMAT > NAME 'AGGA' > DRIVER AGG/PNG > MIMETYPE "image/png" > IMAGEMODE RGBA > EXTENSION "png" > FORMATOPTION "INTERLACE=OFF" > END > > Transparency works for me with this. > -- > > On Wed, Feb 4, 2009 at 11:05 AM, Mike Dunham-Wilkie > wrote: > >> >> Sorry Glenn, I don't have an answer, but I've been dealing with the same >> problem. >> >> Transparency seems to work as expected with: >> >> OUTPUTFORMAT >> NAME png24 >> DRIVER "GD/PNG" >> MIMETYPE "image/png" >> IMAGEMODE RGBA >> EXTENSION "png" >> TRANSPARENT ON >> END >> >> but not with: >> >> OUTPUTFORMAT >> NAME 'AGG' >> DRIVER AGG/PNG >> IMAGEMODE RGBA >> FORMATOPTION "PALETTE_FORCE=TRUE" >> FORMATOPTION "PALETTE=" >> TRANSPARENT ON >> END >> >> It's as if with AGG/PNG the TRANSPARENT ON setting is completely ignored. >> >> Mike >> >> >> >> At 10:52 AM 04/02/2009, gwaldron wrote: >> >> >> I'm trying to use IMAGECOLOR to try to force all pixels of a certain >> color >> to >> become fully transparent, but I am not having any luck getting it to >> work. >> >> My output format it AGG/PNG, RGBA, TRANSPARENT ON. >> >> I have a shapefile layer set to COLOR 0 50 100, and my map-level >> IMAGECOLOR >> set to the same. I was hoping all the polys in the shapefile would render >> as >> transparent pixels, but no luck; they just show up as blue polygons. >> >> What am I doing wrong here? Thanks. >> >> ----- >> Glenn Waldron * Pelican Mapping * gwaldron at pelicanmapping.com * +1 703 >> 652 >> 4791 >> -- >> View this message in context: >> http://n2.nabble.com/Using-IMAGECOLOR-to-create-a-transparency-mask-tp2270688p2270688.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> ---------------------------------------------- >> Michael Dunham-Wilkie, M.Sc., M.P.A. >> Senior Database Analyst >> Barrodale Computing Services Ltd. >> Tel: (250) 472-4372 Fax: (250) 472-4373 >> Web: http://www.barrodale.com >> Email: mike at barrodale.com >> ---------------------------------------------- >> Mailing Address: >> P.O. Box 3075 STN CSC >> Victoria BC Canada V8W 3W2 >> >> Shipping Address: >> Hut R, McKenzie Avenue >> University of Victoria >> Victoria BC Canada V8W 3W2 >> ---------------------------------------------- >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ----- Glenn Waldron * Pelican Mapping * gwaldron at pelicanmapping.com * +1 703 652 4791 -- View this message in context: http://n2.nabble.com/Using-IMAGECOLOR-to-create-a-transparency-mask-tp2270688p2271134.html Sent from the Mapserver - User mailing list archive at Nabble.com. From kholbrook at gwi.net Wed Feb 4 11:53:24 2009 From: kholbrook at gwi.net (Kirk Holbrook) Date: Wed, 04 Feb 2009 14:53:24 -0500 Subject: [mapserver-users] Win64 Java Mapscript? Message-ID: <4989F234.5070002@gwi.net> Hi, I've searched through the messages for info on 64-bit MapServer for Windows. I see that the buildbot has 64-bit binaries for Windows, but it does not have Java Mapscript in the package. Has anyone compiled 64-bit Windows with Java Mapscript? If so, can I get a copy? Thanks a lot, Kirk From Steve.Lime at dnr.state.mn.us Wed Feb 4 15:04:16 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 04 Feb 2009 17:04:16 -0600 Subject: [mapserver-users] horizontally arranged symbols for watermarking In-Reply-To: References: Message-ID: <4989CA91.5157.008F.0@dnr.state.mn.us> Your layer is of type POINT and the documentation is referring to filling POLYGONs... Steve >>> On 2/2/2009 at 8:34 AM, in message , "Kirk Webb" wrote: > At the mapserver web site > http://mapserver.org/mapfile/symbology/construction.html#signatures-of-type-pix > map > it explains how to construct horizontally arranged area > symbols. > I have a logo with a symbol file and a pixmap layer in my > mapfile that displays the logo in the middle of the page. > But it is not displaying multiple horizontally arranges > symbols of my logo. Am I missing something here? > > SYMBOL > NAME "logo" > TYPE PIXMAP > IMAGE "logo.png" > END > > ######PIXMAP Logo###### > LAYER > NAME logo > STATUS DEFAULT > TYPE point > TRANSFORM OFF > FEATURE > POINTS > 300 300 > END > END > TRANSPARENCY 8 > CLASS > STYLE > SIZE 20 > COLOR 0 0 0 > END > STYLE > SYMBOL "logo" > SIZE 60 > COLOR 0 0 0 > OUTLINECOLOR 0 0 255 > END # class > END > END > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From szekerest at gmail.com Wed Feb 4 15:41:34 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 5 Feb 2009 00:41:34 +0100 Subject: [mapserver-users] Win64 Java Mapscript? In-Reply-To: <4989F234.5070002@gwi.net> References: <4989F234.5070002@gwi.net> Message-ID: Hi Kirk, As far as I remember MapScript java did compile for x64 on the buildbot machine however the make test target have segfaulted and that's why I haven't added those steps to the build process. I could anyway provide the binaries (if it still compiles) in case if you feel enough power to track down the potential run time issues you may have ;-) Isn't that possibe to run the Win32 version of the binaries on the x64 server you're using? Best regards, Tamas 2009/2/4 Kirk Holbrook > Hi, > > I've searched through the messages for info on 64-bit MapServer for > Windows. I see that the buildbot has 64-bit binaries for Windows, but it > does not have Java Mapscript in the package. > > Has anyone compiled 64-bit Windows with Java Mapscript? If so, can I get a > copy? > > Thanks a lot, > Kirk > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From boesiii at yahoo.com Wed Feb 4 16:48:16 2009 From: boesiii at yahoo.com (boesiii) Date: Wed, 4 Feb 2009 16:48:16 -0800 (PST) Subject: [mapserver-users] Any way to measure between two picked points? Message-ID: <1233794896081-2272684.post@n2.nabble.com> I am using mapserver with an html template. Is there anyway to add a tool that would enable a user to pick two points on a map and have it tell the distance between the two points? -- View this message in context: http://n2.nabble.com/Any-way-to-measure-between-two-picked-points--tp2272684p2272684.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at swoodbridge.com Wed Feb 4 19:57:38 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 04 Feb 2009 22:57:38 -0500 Subject: [mapserver-users] Using IMAGECOLOR to create a transparency mask In-Reply-To: <1233773546429-2270688.post@n2.nabble.com> References: <1233773546429-2270688.post@n2.nabble.com> Message-ID: <498A63B2.5030209@swoodbridge.com> gwaldron wrote: > I'm trying to use IMAGECOLOR to try to force all pixels of a certain color to > become fully transparent, but I am not having any luck getting it to work. > > My output format it AGG/PNG, RGBA, TRANSPARENT ON. > > I have a shapefile layer set to COLOR 0 50 100, and my map-level IMAGECOLOR > set to the same. I was hoping all the polys in the shapefile would render as > transparent pixels, but no luck; they just show up as blue polygons. > > What am I doing wrong here? Thanks. Transparency is tricky indeed. I always have to experiment with setting to get it to work. I should document it for my one good, next time I work it out. Which doesn't really help you, but you might try the following. COLOR -1 -1 -1 or leaving the COLOR off totally on a polygon should prevent it from filling, You probably want to use OUTLINECOLOR to cause it to draw the polygon border. Or are you trying to draw a color the will overwrite the pixels below it and make them transparent? -Steve W From umn-ms at hydrotec.de Wed Feb 4 23:15:50 2009 From: umn-ms at hydrotec.de (umn-ms at hydrotec.de) Date: Thu, 5 Feb 2009 08:15:50 +0100 Subject: [mapserver-users] Antwort: msOracleSpatialLayerGetShape(): OracleSpatial error. Error: ORA-00932 In-Reply-To: <1233762413666-2269508.post@n2.nabble.com> Message-ID: Hi In the cases, you didn't find the solution on your own, you should post your mapfile. - any projection-issue? - correct layer type? - geometrie-objects validated (SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEX)? Benedikt mapserver-users-bounces at lists.osgeo.org schrieb am 04.02.2009 16:46:53: > > Hi, > > I've changed into: > DATA "GEOMETRIA FROM (SELECT ID, GEOMETRIA FROM GEOM) USING UNIQUE ID > VERSION 10g" > > and GetFeatureInfo works fine. > > However, I can not see the map :( > > -- > View this message in context: http://n2.nabble. > com/msOracleSpatialLayerGetShape%28%29%3A-OracleSpatial-error.- > Error%3A-ORA-00932-tp2268870p2269508.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From dzizes451 at gmail.com Thu Feb 5 00:47:53 2009 From: dzizes451 at gmail.com (dzizes) Date: Thu, 5 Feb 2009 00:47:53 -0800 (PST) Subject: [mapserver-users] Antwort: msOracleSpatialLayerGetShape(): OracleSpatial error. Error: ORA-00932 In-Reply-To: References: <1233755882631-2268870.post@n2.nabble.com> <1233762413666-2269508.post@n2.nabble.com> Message-ID: <1233823673203-2273833.post@n2.nabble.com> Hello! LAYER NAME "GEOM" STATUS ON TYPE POLYGON #MAXSCALE 110000 PROCESSING "CLOSE_CONNECTION=DEFER" CONNECTIONTYPE oraclespatial CONNECTION "asdasd/asdasd at GIS" DATA "GEOMETRIA FROM V_GEOM USING UNIQUE ID VERSION 10g" DUMP TRUE DEBUG 5 METADATA "wms_title" "V_GEOM" "wms_srs" "EPSG:4326" "wms_include_items" "ID" END TEMPLATE "blank.html" PROJECTION "proj=longlat" "ellps=WGS84" "datum=WGS84" "no_defs" END END Below tail of MapServer Log: [Thu Feb 5 09:30:00 2009].520573 msOracleSpatialLayerFreeItemInfo was called. [Thu Feb 5 09:30:00 2009].520671 msOracleSpatialLayerWhichShapes was called. [Thu Feb 5 09:30:00 2009].520756 msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT ID, GEOMETRIA FROM V_GEOM WHERE SDO_FILTER( GEOMETRIA, MDSYS.SDO_GEOMETRY(2003, NULL, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(18.5535453,53.937141,18.6345023,54.0180979) ),'querytype=window') = 'TRUE' [Thu Feb 5 09:30:00 2009].799125 msOracleSpatialLayerFreeItemInfo was called. [Thu Feb 5 09:30:00 2009].799230 msOracleSpatialLayerClose was called. Layer name: GEOM. Layer connection: asdasd/asdasd at GIS [Thu Feb 5 09:30:00 2009].799268 msOracleSpatialLayerClose. Cleaning layerinfo handlers. [Thu Feb 5 09:30:00 2009].799502 msOracleSpatialLayerClose. Cleaning Oracle Cache. [Thu Feb 5 09:30:00 2009].799898 msOracleSpatialLayerClose. Release the Oracle Pool. [Thu Feb 5 09:30:00 2009].799912 When executing the spatial query found in log file it works fine. GetFeatureInfo works fine. -- View this message in context: http://n2.nabble.com/msOracleSpatialLayerGetShape%28%29%3A-OracleSpatial-error.-Error%3A-ORA-00932-tp2268870p2273833.html Sent from the Mapserver - User mailing list archive at Nabble.com. From vtammineni at roulacglobal.com Thu Feb 5 02:13:02 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Thu, 5 Feb 2009 15:43:02 +0530 Subject: [mapserver-users] How to display multiple labels in single layer in Mapfile Message-ID: <002401c9877a$55bf73a0$013e5ae0$@com> Dear All, Is it possible to display two labels that is (Country name and Population) and the country name and population is in separate columns . I am waiting for your great response. Advanced Thanks, Regards Venkat. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mschulz at webgis.de Thu Feb 5 02:25:20 2009 From: mschulz at webgis.de (Michael Schulz) Date: Thu, 5 Feb 2009 11:25:20 +0100 Subject: [mapserver-users] How to display multiple labels in single layer in Mapfile In-Reply-To: <002401c9877a$55bf73a0$013e5ae0$@com> References: <002401c9877a$55bf73a0$013e5ae0$@com> Message-ID: Hi Venkat, you can use TEXT ([FIRSTNAME],[LASTNAME]) in the CLASS context. See here: http://mapserver.org/mapfile/class.html Cheers, Michael 2009/2/5 Venkat Rao Tammineni : > Dear All, > > > > Is it possible to display two labels that is (Country name and > Population) and the country name and population is in separate columns . > > > > I am waiting for your great response. > > > > > > Advanced Thanks, > > > > Regards > > Venkat. > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 79108 Freiburg Tel +49 (0)761 556959-5 Fax +49 (0)761 556959-6 http://www.webgis.de / http://www.zopecms.de ----------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg From vtammineni at roulacglobal.com Thu Feb 5 02:46:38 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Thu, 5 Feb 2009 16:16:38 +0530 Subject: [mapserver-users] How to display multiple labels in single layer in Mapfile In-Reply-To: References: <002401c9877a$55bf73a0$013e5ae0$@com> Message-ID: <003501c9877f$07d58580$17809080$@com> Dear Michael, Thanks for your great response. I am not clear with you answer. But what I need is I need to display two labels in single shape in a single layer.I mean do we have any option set labelitem as multiple colums.now the labelitem is taking single column. Please guide me. Thanks and Regards Venkat. -----Original Message----- From: mandschulz at googlemail.com [mailto:mandschulz at googlemail.com] On Behalf Of Michael Schulz Sent: Thursday, February 05, 2009 3:55 PM To: Venkat Rao Tammineni Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] How to display multiple labels in single layer in Mapfile Hi Venkat, you can use TEXT ([FIRSTNAME],[LASTNAME]) in the CLASS context. See here: http://mapserver.org/mapfile/class.html Cheers, Michael 2009/2/5 Venkat Rao Tammineni : > Dear All, > > > > Is it possible to display two labels that is (Country name and > Population) and the country name and population is in separate columns . > > > > I am waiting for your great response. > > > > > > Advanced Thanks, > > > > Regards > > Venkat. > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 79108 Freiburg Tel +49 (0)761 556959-5 Fax +49 (0)761 556959-6 http://www.webgis.de / http://www.zopecms.de ----------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg From massimo.ferraguto at gmail.com Thu Feb 5 03:15:18 2009 From: massimo.ferraguto at gmail.com (MassimoFerr) Date: Thu, 5 Feb 2009 03:15:18 -0800 (PST) Subject: [mapserver-users] SOS with database: how to map columns to response Message-ID: <1233832518189-2274359.post@n2.nabble.com> SOS service: It is not at all clear from the Mapserver documentation how to map my database columns to the xml response fields. I have spent several days trying and in the end I got the solution after reading a lot of messages from the mailing list archives. The solution is to put in the layer metadata section for each data column we want to output to the SOS response a row like the following: "sos_myColumnName_alias" "xmlElementNameInResponse" This is should be highlighted in the SOS page. I post it here hoping it may be useful to tome other new user. -- View this message in context: http://n2.nabble.com/SOS-with-database%3A-how-to-map-columns-to-response-tp2274359p2274359.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mschulz at webgis.de Thu Feb 5 03:19:08 2009 From: mschulz at webgis.de (Michael Schulz) Date: Thu, 5 Feb 2009 12:19:08 +0100 Subject: [mapserver-users] How to display multiple labels in single layer in Mapfile In-Reply-To: <003501c9877f$07d58580$17809080$@com> References: <002401c9877a$55bf73a0$013e5ae0$@com> <003501c9877f$07d58580$17809080$@com> Message-ID: Hi Venkat, yes, that's exactly what the TEXT parameter can do. The labelitem is ignored if the TEXT parameter is found in a class definition. To define a label from multiple attributes you write in the class definition TEXT ([myAttribute1], [myAttribute2]) a small example: CLASS EXPRESSION "2004" NAME "2004" TEXT ([TK50]:![BEFLIEG1],[BEFLIEG2]) LABEL WRAP "!" TYPE truetype FONT 'verdana' ANTIALIAS true SIZE 8 COLOR 100 100 100 OUTLINECOLOR 250 250 250 END END This definition labels a polygon with the name of a topograpic map and two dates in the following way: "6548: 2001,2006" The WRAP parameter additionally defines a character at which a label should insert a linebreak, in this case a "!" and you'll find the ! in the TEXT parameter definition. HTH, Michael 2009/2/5 Venkat Rao Tammineni : > Dear Michael, > > > Thanks for your great response. I am not clear with you answer. But what I > need is I need to display two labels in single shape in a single layer.I > mean do we have any option set labelitem as multiple colums.now the > labelitem is taking single column. > > Please guide me. > > Thanks and Regards > Venkat. > > -----Original Message----- > From: mandschulz at googlemail.com [mailto:mandschulz at googlemail.com] On Behalf > Of Michael Schulz > Sent: Thursday, February 05, 2009 3:55 PM > To: Venkat Rao Tammineni > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] How to display multiple labels in single > layer in Mapfile > > Hi Venkat, > > you can use > > TEXT ([FIRSTNAME],[LASTNAME]) in the CLASS context. > > See here: http://mapserver.org/mapfile/class.html > > Cheers, Michael > > > 2009/2/5 Venkat Rao Tammineni : >> Dear All, >> >> >> >> Is it possible to display two labels that is (Country name and >> Population) and the country name and population is in separate columns . >> >> >> >> I am waiting for your great response. >> >> >> >> >> >> Advanced Thanks, >> >> >> >> Regards >> >> Venkat. >> >> >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > > -- > ----------------------------------------------------------- > Michael Schulz > mschulz at webgis.de > > in medias res > Gesellschaft f?r Informationstechnologie mbH > > In den Weihermatten 66 > 79108 Freiburg > > Tel +49 (0)761 556959-5 > Fax +49 (0)761 556959-6 > > http://www.webgis.de / http://www.zopecms.de > ----------------------------------------------------------- > Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck > Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg > > -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 79108 Freiburg Tel +49 (0)761 556959-5 Fax +49 (0)761 556959-6 http://www.webgis.de / http://www.zopecms.de ----------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg From rpha88 at gmail.com Thu Feb 5 04:50:55 2009 From: rpha88 at gmail.com (rohan phatak) Date: Thu, 5 Feb 2009 17:20:55 +0430 Subject: [mapserver-users] Change/Insert new Symbol to mapfile. Message-ID: Hello friends, I want to insert new symbol in .map file so i have prepare .sym file in which i have added new symbol in first and then calling through .map file but it gives me error. so where i mistaken?? .sym file-- SYMBOL NAME 'T' TYPE TRUETYPE FONT "arial" CHARACTER "T" ANTIALIAS TRUE GAP 10 END END Symbol Name 'star' Type VECTOR Filled TRUE Points 0 .375 .35 .375 .5 0 .65 .375 1 .375 .75 .625 .875 1 .5 .75 .125 1 .25 .625 END END In map file i want to use star symbol but it is not working somewhere its go wrong. I am using GMAP one of the application of mapserver. thanks in advance : ) From bartvde at osgis.nl Thu Feb 5 04:52:49 2009 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Thu, 5 Feb 2009 13:52:49 +0100 (CET) Subject: [mapserver-users] Change/Insert new Symbol to mapfile. In-Reply-To: References: Message-ID: <55534.145.50.39.11.1233838369.squirrel@webmail.hostingdiscounter.nl> Hi, your first SYMBOL has 2 END tags, it should only be 1 END tag. Bart > Hello friends, > I want to insert new symbol in .map file so i have prepare .sym file > in which i have added new symbol in first and then calling through > .map file but it gives me error. so where i mistaken?? > > .sym file-- > > SYMBOL > NAME 'T' > TYPE TRUETYPE > FONT "arial" > CHARACTER "T" > ANTIALIAS TRUE > GAP 10 > > END > END > > > Symbol > Name 'star' > Type VECTOR > Filled TRUE > Points > 0 .375 > .35 .375 > .5 0 > .65 .375 > 1 .375 > .75 .625 > .875 1 > .5 .75 > .125 1 > .25 .625 > END > END > > In map file i want to use star symbol but it is not working somewhere > its go wrong. > I am using GMAP one of the application of mapserver. > thanks in advance : ) > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From adube at mapgears.com Thu Feb 5 05:34:44 2009 From: adube at mapgears.com (Alexandre Dube) Date: Thu, 05 Feb 2009 08:34:44 -0500 Subject: [mapserver-users] Any way to measure between two picked points? In-Reply-To: <1233794896081-2272684.post@n2.nabble.com> References: <1233794896081-2272684.post@n2.nabble.com> Message-ID: <498AEAF4.30409@mapgears.com> Hi, I don't have a direct solution to your problem. I rather have propositions. You could use a client-side application like Chameleon (1) or Openlayers (2). Both have that kind of tool already, see one in Openlayers (3). You could also check their code to custom your own in your html template. Hope this helps, Alexandre (1) http://openlayers.org/ (2) http://chameleon.maptools.org/ (3) http://dev.openlayers.org/sandbox/jvanulden/openlayers/examples/extended-layerswitcher.html boesiii wrote: > I am using mapserver with an html template. Is there anyway to add a tool > that would enable a user to pick two points on a map and have it tell the > distance between the two points? > > > -- Alexandre Dub? Mapgears www.mapgears.com From gwaldron at gmail.com Thu Feb 5 05:43:43 2009 From: gwaldron at gmail.com (Glenn Waldron) Date: Thu, 5 Feb 2009 08:43:43 -0500 Subject: [mapserver-users] Using IMAGECOLOR to create a transparency mask In-Reply-To: <498A63B2.5030209@swoodbridge.com> References: <1233773546429-2270688.post@n2.nabble.com> <498A63B2.5030209@swoodbridge.com> Message-ID: <70fbea790902050543i2595e32dsa06d5ba2d641f195@mail.gmail.com> Stephen, Thanks for the tip. I believe your approach may set the shape layer to be transparent, letting lower layers to show through. However, I am trying to get the pixels in the final composited image to be completely transparent. Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : +1.703.652.4791 On Wed, Feb 4, 2009 at 10:57 PM, Stephen Woodbridge wrote: > gwaldron wrote: > >> I'm trying to use IMAGECOLOR to try to force all pixels of a certain color >> to >> become fully transparent, but I am not having any luck getting it to work. >> >> My output format it AGG/PNG, RGBA, TRANSPARENT ON. >> >> I have a shapefile layer set to COLOR 0 50 100, and my map-level >> IMAGECOLOR >> set to the same. I was hoping all the polys in the shapefile would render >> as >> transparent pixels, but no luck; they just show up as blue polygons. >> >> What am I doing wrong here? Thanks. >> > > Transparency is tricky indeed. I always have to experiment with setting to > get it to work. I should document it for my one good, next time I work it > out. Which doesn't really help you, but you might try the following. > > COLOR -1 -1 -1 > > or leaving the COLOR off totally on a polygon should prevent it from > filling, You probably want to use OUTLINECOLOR to cause it to draw the > polygon border. > > Or are you trying to draw a color the will overwrite the pixels below it > and make them transparent? > > -Steve W > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ml.dje at geocontent.de Thu Feb 5 06:35:02 2009 From: ml.dje at geocontent.de (Dirk Jesko) Date: Thu, 05 Feb 2009 15:35:02 +0100 Subject: [mapserver-users] How to change a layer's DATA attribute via URL? Message-ID: <498AF916.60807@geocontent.de> Hello, I would like to change the DATA attribute of a layer via URL. Mapserver is called using the cgi interface. The layer definition is LAYER NAME "luftbild" DATA "IMG_01646.tif" TYPE RASTER TRANSFORM UL PROCESSING "RESAMPLE=BILINEAR" END Now I would like to select the image that shall be displayed using the URL, e.g. ... &MAPEXT=0 500 500 1000&mapsize=256 256&map.layer[luftbild]=DATA+"IMG_01648.tif" However, this just results in the following error message: loadLayer(): General error message. URL-based DATA configuration failed pattern validation. Any idea? Thanks for any help, Dirk From Steve.Lime at dnr.state.mn.us Thu Feb 5 06:56:41 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 05 Feb 2009 08:56:41 -0600 Subject: [mapserver-users] How to change a layer's DATA attribute via URL? Message-ID: <498AA9D40200008F0002061E@co5.dnr.state.mn.us> You have to set a DATAPATTERN in the webObj (I think) so that someone just can't change that value to anything. For example you might consider: DATAPATTERN "^IMG_[0-9]{5}\.tif$" The value for DATAPATTERN is a regex. Steve >>> Dirk Jesko 02/05/09 8:48 AM >>> Hello, I would like to change the DATA attribute of a layer via URL. Mapserver is called using the cgi interface. The layer definition is LAYER NAME "luftbild" DATA "IMG_01646.tif" TYPE RASTER TRANSFORM UL PROCESSING "RESAMPLE=BILINEAR" END Now I would like to select the image that shall be displayed using the URL, e.g. ... &MAPEXT=0 500 500 1000&mapsize=256 256&map.layer[luftbild]=DATA+"IMG_01648.tif" However, this just results in the following error message: loadLayer(): General error message. URL-based DATA configuration failed pattern validation. Any idea? Thanks for any help, Dirk _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From russell at flora.ca Thu Feb 5 08:00:46 2009 From: russell at flora.ca (Russell McOrmond) Date: Thu, 5 Feb 2009 11:00:46 -0500 (EST) Subject: [mapserver-users] Confirmation of status of UTF8 support, and where transcoding to Latin-1 may be happening. In-Reply-To: References: <49284AB9.9010407@flora.ca> <49613F8E.7010206@flora.ca> Message-ID: This will likely be my final update on this specific, given I believe I've found all our issue. The problem came down to two unrelated problems, eithor of which meant that nationally encoded strings from ArcSDE weren't being properly handled in mapserver. a) gd 2.0.35 This version of GD was incorrectly detecting the iconv library due to a missing macro. configure.ac:64: error: possibly undefined macro: AM_ICONV This meant that it was missing the '#define HAVE_ICONV 1' in the config.h. If this is not defined, this activates a set of stub functions in gdkanji.c . This was the source of iconv_open() always returning -1. This problem is fixed in gd 2.0.36RC1 . There is likely a way to add the right macro with 2.0.35 and use it as well. b) endianness setting with NSTRING data from SDE See http://trac.osgeo.org/mapserver/ticket/2878 http://lists.gnu.org/archive/html/bug-gnu-libiconv/2009-02/msg00001.html It turns out that we need to specify the endianness for the NSTRING data (UTF-16 encoded) coming from libsde. The glibc version of the iconv() functions seem to assume little-endian for "UTF-16", while the libiconv version seems to assume network order or big-endian. If we specify "UTF-16LE", it will always work regardless of which iconv() version we are using. With this problem now solved, I just wish the problem with zlib in libsde was resolved. http://forums.esri.com/Thread.asp?c=2&f=1718&t=212867 If libsde from ArcSDE 9.3 is still using a known insecure version of zlib from 1998, it is quite likely that other aspects of ESRI tools are using this as well. I am surprised to learn that this was not considered a high priority for ESRI, given the most recent version of zlib is from 2005 and there has been plenty of opportunity for distributing a fix. -- Russell McOrmond, Internet Consultant: Please help us tell the Canadian Parliament to protect our property rights as owners of Information Technology. Sign the petition! http://digital-copyright.ca/petition/ict/ http://KillBillC61.ca "The government, lobbied by legacy copyright holders and hardware manufacturers, can pry control over my camcorder, computer, home theatre, or portable media player from my cold dead hands!" From valemunoz at gmail.com Thu Feb 5 09:11:59 2009 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Thu, 5 Feb 2009 14:11:59 -0300 Subject: [mapserver-users] symbol problem Message-ID: <4b56aefe0902050911m23e8f962i86eed7bc8195996e@mail.gmail.com> Hi I have problems with displaying symbols,I can not give the correct orientation-... attached image of my problem LAYER NAME 'calle' MAXSCALE 5000 TYPE LINE DATA 'calle.shp' METADATA 'wms_title' 'calle' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END #LABELITEM 'ONEWAY' CLASS EXPRESSION ('[HWYLEVEL]' = '4' and '[ONEWAY]'='0') #TEXT (<->) #NAME 'calle' STYLE SYMBOL 'flecha_ambos' SIZE 13 ANGLE 0 #OUTLINECOLOR 161 189 196 #COLOR 0 0 0 END LABEL TYPE truetype FONT 'georgia' SIZE 6 ANTIALIAS TRUE COLOR 156 0 0 ANGLE FOLLOW #MINDISTANCE -1 #MINFEATURESIZE -1 OFFSET 5 0 FORCE FALSE POSITION CC BUFFER 10 PARTIALS FALSE END END END SYMBOL NAME "flecha_ambos" TYPE PIXMAP IMAGE "C:/ms4w/Apache/htdocs/mapFile/mapas/etc/icons/arrow_left_right.png" GAP -50 END RG -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: img_symbol.JPG Type: image/jpeg Size: 4076 bytes Desc: not available URL: From valemunoz at gmail.com Thu Feb 5 09:30:28 2009 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Thu, 5 Feb 2009 14:30:28 -0300 Subject: [mapserver-users] Re: symbol problem In-Reply-To: <4b56aefe0902050911m23e8f962i86eed7bc8195996e@mail.gmail.com> References: <4b56aefe0902050911m23e8f962i86eed7bc8195996e@mail.gmail.com> Message-ID: <4b56aefe0902050930n644de9d9j901ae6330dd84b4d@mail.gmail.com> HI! I found the problem : OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGB #RGBA transparente EXTENSION "png" FORMATOPTION "TRANSPARENT=OFF" FORMATOPTION "INTERLACE=ON" END do you know why does not work with this configuration? RG 2009/2/5 Valeria Mu?oz > Hi > I have problems with displaying symbols,I can not give the correct > orientation-... attached image of my problem > > LAYER > NAME 'calle' > MAXSCALE 5000 > TYPE LINE > DATA 'calle.shp' > METADATA > 'wms_title' 'calle' > END > STATUS DEFAULT > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > '' > END > #LABELITEM 'ONEWAY' > CLASS > EXPRESSION ('[HWYLEVEL]' = '4' and '[ONEWAY]'='0') > > #TEXT (<->) > #NAME 'calle' > STYLE > SYMBOL 'flecha_ambos' > SIZE 13 > ANGLE 0 > #OUTLINECOLOR 161 189 196 > #COLOR 0 0 0 > END > LABEL > TYPE truetype > FONT 'georgia' > SIZE 6 > ANTIALIAS TRUE > COLOR 156 0 0 > ANGLE FOLLOW > #MINDISTANCE -1 > #MINFEATURESIZE -1 > OFFSET 5 0 > FORCE FALSE > POSITION CC > BUFFER 10 > PARTIALS FALSE > END > END > END > > > SYMBOL > NAME "flecha_ambos" > TYPE PIXMAP > IMAGE > "C:/ms4w/Apache/htdocs/mapFile/mapas/etc/icons/arrow_left_right.png" > GAP -50 > END > > > RG > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdeltoro1973 at yahoo.com Thu Feb 5 09:43:12 2009 From: jdeltoro1973 at yahoo.com (=?iso-8859-1?Q?Juan_Jose_Del_Toro_Madrue=F1o?=) Date: Thu, 5 Feb 2009 09:43:12 -0800 (PST) Subject: [mapserver-users] MapServer hosting services Message-ID: <167987.85208.qm@web51701.mail.re2.yahoo.com> Dear List; There are several companies offering web hosting services with MapServer, has anyone had any experience good/bad using these companies? Any recommendation would be helpful Also if anyone has an app/site on one of these servers that I could visit that would also be appreciated ?Saludos! / Greetings! Juan Jos? Del Toro Madrue?o jdeltoro1973 at yahoo.com Guadalajara, Jalisco M?XICO __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ?gratis! Reg?strate ya - http://correo.yahoo.com.mx/ From thomas.bonfort at gmail.com Thu Feb 5 10:24:19 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 5 Feb 2009 19:24:19 +0100 Subject: [mapserver-users] Using IMAGECOLOR to create a transparency mask In-Reply-To: <70fbea790902050543i2595e32dsa06d5ba2d641f195@mail.gmail.com> References: <1233773546429-2270688.post@n2.nabble.com> <498A63B2.5030209@swoodbridge.com> <70fbea790902050543i2595e32dsa06d5ba2d641f195@mail.gmail.com> Message-ID: On Thu, Feb 5, 2009 at 14:43, Glenn Waldron wrote: > Stephen, > > However, I am trying to > get the pixels in the final composited image to be completely transparent. > There's no way you can set pixels to become transparent once the image is saved with the AGG outputformat. regards, thomas From gwaldron at gmail.com Thu Feb 5 11:02:02 2009 From: gwaldron at gmail.com (Glenn Waldron) Date: Thu, 5 Feb 2009 14:02:02 -0500 Subject: [mapserver-users] Using IMAGECOLOR to create a transparency mask In-Reply-To: References: <1233773546429-2270688.post@n2.nabble.com> <498A63B2.5030209@swoodbridge.com> <70fbea790902050543i2595e32dsa06d5ba2d641f195@mail.gmail.com> Message-ID: <70fbea790902051102p52a8067ar643666f0562642f3@mail.gmail.com> Hi Thomas, In that case maybe I am misunderstanding the purpose of IMAGECOLOR. What is it supposed to do, if not make all pixels of the specified color transparent? Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : +1.703.652.4791 On Thu, Feb 5, 2009 at 1:24 PM, thomas bonfort wrote: > On Thu, Feb 5, 2009 at 14:43, Glenn Waldron wrote: > > Stephen, > > > > However, I am trying to > > get the pixels in the final composited image to be completely > transparent. > > > > There's no way you can set pixels to become transparent once the image > is saved with the AGG outputformat. > > regards, > thomas > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Thu Feb 5 11:04:27 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 05 Feb 2009 13:04:27 -0600 Subject: [mapserver-users] Using IMAGECOLOR to create a transparency mask In-Reply-To: <70fbea790902051102p52a8067ar643666f0562642f3@mail.gmail.com> References: <1233773546429-2270688.post@n2.nabble.com> <498A63B2.5030209@swoodbridge.com> <70fbea790902050543i2595e32dsa06d5ba2d641f195@mail.gmail.com> <70fbea790902051102p52a8067ar643666f0562642f3@mail.gmail.com> Message-ID: <498AE3DC.5157.008F.0@dnr.state.mn.us> IMAGECOLOR just sets the background color for an image. Steve >>> On 2/5/2009 at 1:02 PM, in message <70fbea790902051102p52a8067ar643666f0562642f3 at mail.gmail.com>, Glenn Waldron wrote: > Hi Thomas, > > In that case maybe I am misunderstanding the purpose of IMAGECOLOR. What is > it supposed to do, if not make all pixels of the specified color > transparent? > > > Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : > +1.703.652.4791 > > > On Thu, Feb 5, 2009 at 1:24 PM, thomas bonfort > wrote: > >> On Thu, Feb 5, 2009 at 14:43, Glenn Waldron wrote: >> > Stephen, >> > >> > However, I am trying to >> > get the pixels in the final composited image to be completely >> transparent. >> > >> >> There's no way you can set pixels to become transparent once the image >> is saved with the AGG outputformat. >> >> regards, >> thomas >> From hestrada at imapdata.com Thu Feb 5 11:49:20 2009 From: hestrada at imapdata.com (Hugo Estrada) Date: Thu, 5 Feb 2009 14:49:20 -0500 Subject: [mapserver-users] Virtual Earth Tiling with MapScript Message-ID: Hi, there, Is there a simple way of getting Virtual Earth tiles using MapScript? Thanks in advance! -------------- next part -------------- An HTML attachment was scrubbed... URL: From crschmidt at metacarta.com Thu Feb 5 11:52:25 2009 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Thu, 5 Feb 2009 14:52:25 -0500 Subject: [mapserver-users] Virtual Earth Tiling with MapScript In-Reply-To: References: Message-ID: <20090205195225.GO19271@metacarta.com> On Thu, Feb 05, 2009 at 02:49:20PM -0500, Hugo Estrada wrote: > Hi, there, > > Is there a simple way of getting Virtual Earth tiles using MapScript? This is a violation of the terms of use of Virtual Earth. If you have access to these tiles, the best way to access them would probably be to write a "WMS MiniDriver" in GDAL, Similar to the WorldWind and TileService plugins, that could access the VE tiles. The tiling scheme is relatively simple, and writing this code in GDAL would allow it to be used as a Layer within MapServer. I'm not aware of anyone having done this, because most people do not have legal access to the tiles. If you simply wish to combine MapServer data with VE data, you might look into OpenLayers. Regards, -- Christopher Schmidt MetaCarta From gwaldron at gmail.com Thu Feb 5 12:03:05 2009 From: gwaldron at gmail.com (Glenn Waldron) Date: Thu, 5 Feb 2009 15:03:05 -0500 Subject: [mapserver-users] Using IMAGECOLOR to create a transparency mask In-Reply-To: <498AE3DC.5157.008F.0@dnr.state.mn.us> References: <1233773546429-2270688.post@n2.nabble.com> <498A63B2.5030209@swoodbridge.com> <70fbea790902050543i2595e32dsa06d5ba2d641f195@mail.gmail.com> <70fbea790902051102p52a8067ar643666f0562642f3@mail.gmail.com> <498AE3DC.5157.008F.0@dnr.state.mn.us> Message-ID: <70fbea790902051203k5fa95dc6i59895f071e1abd14@mail.gmail.com> Hi Steve, I am trying to achieve the transparency effect as described in the documentation: "IMAGECOLOR [r] [g] [b]Color to initialize the map with (i.e. background color). When transparency is enabled (TRANSPARENT ON) for the typical case of 8-bit pseudocolored map generation, this color will be marked as transparent in the output file palette. Any other map components drawn in this color will also be transparent, so for map generation with transparency it is best to use an otherwise unused color as the background color."Perhaps I'm not clear on what constitutes "8-bit pseudocolored map generation". I am using the AGG/PNG driver with TRANSPARENT ON. Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : +1.703.652.4791 On Thu, Feb 5, 2009 at 2:04 PM, Steve Lime wrote: > IMAGECOLOR just sets the background color for an image. > > Steve > > >>> On 2/5/2009 at 1:02 PM, in message > <70fbea790902051102p52a8067ar643666f0562642f3 at mail.gmail.com>, Glenn > Waldron > wrote: > > Hi Thomas, > > > > In that case maybe I am misunderstanding the purpose of IMAGECOLOR. What > is > > it supposed to do, if not make all pixels of the specified color > > transparent? > > > > > > Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : > > +1.703.652.4791 > > > > > > On Thu, Feb 5, 2009 at 1:24 PM, thomas bonfort > > wrote: > > > >> On Thu, Feb 5, 2009 at 14:43, Glenn Waldron wrote: > >> > Stephen, > >> > > >> > However, I am trying to > >> > get the pixels in the final composited image to be completely > >> transparent. > >> > > >> > >> There's no way you can set pixels to become transparent once the image > >> is saved with the AGG outputformat. > >> > >> regards, > >> thomas > >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Thu Feb 5 12:16:11 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 5 Feb 2009 21:16:11 +0100 Subject: [mapserver-users] Using IMAGECOLOR to create a transparency mask In-Reply-To: <70fbea790902051203k5fa95dc6i59895f071e1abd14@mail.gmail.com> References: <1233773546429-2270688.post@n2.nabble.com> <498A63B2.5030209@swoodbridge.com> <70fbea790902050543i2595e32dsa06d5ba2d641f195@mail.gmail.com> <70fbea790902051102p52a8067ar643666f0562642f3@mail.gmail.com> <498AE3DC.5157.008F.0@dnr.state.mn.us> <70fbea790902051203k5fa95dc6i59895f071e1abd14@mail.gmail.com> Message-ID: this is meant to be applied with paletted images, ie IMAGEMODE PC256 which is only supported with the gd driver. having a single fully transparent color is not compatible with antialiasing, so you're better off sticking with gd anyways if you have this transparency requirement. regards, thomas On Thu, Feb 5, 2009 at 21:03, Glenn Waldron wrote: > Hi Steve, > > I am trying to achieve the transparency effect as described in the > documentation: > "IMAGECOLOR [r] [g] [b]Color to initialize the map with (i.e. background > color). When transparency is enabled (TRANSPARENT ON) for the typical case > of 8-bit pseudocolored map generation, this color will be marked as > transparent in the output file palette. Any other map components drawn in > this color will also be transparent, so for map generation with transparency > it is best to use an otherwise unused color as the background color."Perhaps > I'm not clear on what constitutes "8-bit pseudocolored map generation". I am > using the AGG/PNG driver with TRANSPARENT ON. > > > Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : > +1.703.652.4791 > > > On Thu, Feb 5, 2009 at 2:04 PM, Steve Lime > wrote: >> >> IMAGECOLOR just sets the background color for an image. >> >> Steve >> >> >>> On 2/5/2009 at 1:02 PM, in message >> <70fbea790902051102p52a8067ar643666f0562642f3 at mail.gmail.com>, Glenn >> Waldron >> wrote: >> > Hi Thomas, >> > >> > In that case maybe I am misunderstanding the purpose of IMAGECOLOR. What >> > is >> > it supposed to do, if not make all pixels of the specified color >> > transparent? >> > >> > >> > Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : >> > +1.703.652.4791 >> > >> > >> > On Thu, Feb 5, 2009 at 1:24 PM, thomas bonfort >> > wrote: >> > >> >> On Thu, Feb 5, 2009 at 14:43, Glenn Waldron wrote: >> >> > Stephen, >> >> > >> >> > However, I am trying to >> >> > get the pixels in the final composited image to be completely >> >> transparent. >> >> > >> >> >> >> There's no way you can set pixels to become transparent once the image >> >> is saved with the AGG outputformat. >> >> >> >> regards, >> >> thomas >> >> >> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From gregor at hostgis.com Thu Feb 5 12:17:12 2009 From: gregor at hostgis.com (Gregor at HostGIS) Date: Thu, 05 Feb 2009 12:17:12 -0800 Subject: [mapserver-users] Using IMAGECOLOR to create a transparency mask In-Reply-To: <70fbea790902051203k5fa95dc6i59895f071e1abd14@mail.gmail.com> References: <1233773546429-2270688.post@n2.nabble.com> <498A63B2.5030209@swoodbridge.com> <70fbea790902050543i2595e32dsa06d5ba2d641f195@mail.gmail.com> <70fbea790902051102p52a8067ar643666f0562642f3@mail.gmail.com> <498AE3DC.5157.008F.0@dnr.state.mn.us> <70fbea790902051203k5fa95dc6i59895f071e1abd14@mail.gmail.com> Message-ID: <498B4948.6030801@hostgis.com> > Perhaps I'm not clear on what constitutes "8-bit pseudocolored map > generation". I am using the AGG/PNG driver with TRANSPARENT ON. FWIW, here is my favorite IMAGETYPE block for generating AGG PNGs with transparency: OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE RGBA TRANSPARENT OFF END It does set transparent off, but the RGBA uses alpha blending to make transparency anyway. We love it. -- Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ System Administrator, Lead Programmer HostGIS development & hosting services, http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From gwaldron at gmail.com Thu Feb 5 12:34:14 2009 From: gwaldron at gmail.com (Glenn Waldron) Date: Thu, 5 Feb 2009 15:34:14 -0500 Subject: [mapserver-users] Using IMAGECOLOR to create a transparency mask In-Reply-To: References: <1233773546429-2270688.post@n2.nabble.com> <498A63B2.5030209@swoodbridge.com> <70fbea790902050543i2595e32dsa06d5ba2d641f195@mail.gmail.com> <70fbea790902051102p52a8067ar643666f0562642f3@mail.gmail.com> <498AE3DC.5157.008F.0@dnr.state.mn.us> <70fbea790902051203k5fa95dc6i59895f071e1abd14@mail.gmail.com> Message-ID: <70fbea790902051234u37167f50o6e72ee02e424c8b7@mail.gmail.com> Thanks Thomas, I believe this answers my question. Sounds like I will not be able to do what I want inside MapServer and still do 24-bit color. Thanks again for your (and everyone's) help. Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : +1.703.652.4791 On Thu, Feb 5, 2009 at 3:16 PM, thomas bonfort wrote: > this is meant to be applied with paletted images, ie > IMAGEMODE PC256 > which is only supported with the gd driver. having a single fully > transparent color is not compatible with antialiasing, so you're > better off sticking with gd anyways if you have this transparency > requirement. > > regards, > thomas > > On Thu, Feb 5, 2009 at 21:03, Glenn Waldron wrote: > > Hi Steve, > > > > I am trying to achieve the transparency effect as described in the > > documentation: > > "IMAGECOLOR [r] [g] [b]Color to initialize the map with (i.e. background > > color). When transparency is enabled (TRANSPARENT ON) for the typical > case > > of 8-bit pseudocolored map generation, this color will be marked as > > transparent in the output file palette. Any other map components drawn in > > this color will also be transparent, so for map generation with > transparency > > it is best to use an otherwise unused color as the background > color."Perhaps > > I'm not clear on what constitutes "8-bit pseudocolored map generation". I > am > > using the AGG/PNG driver with TRANSPARENT ON. > > > > > > Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : > > +1.703.652.4791 > > > > > > On Thu, Feb 5, 2009 at 2:04 PM, Steve Lime > > wrote: > >> > >> IMAGECOLOR just sets the background color for an image. > >> > >> Steve > >> > >> >>> On 2/5/2009 at 1:02 PM, in message > >> <70fbea790902051102p52a8067ar643666f0562642f3 at mail.gmail.com>, Glenn > >> Waldron > >> wrote: > >> > Hi Thomas, > >> > > >> > In that case maybe I am misunderstanding the purpose of IMAGECOLOR. > What > >> > is > >> > it supposed to do, if not make all pixels of the specified color > >> > transparent? > >> > > >> > > >> > Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : > >> > +1.703.652.4791 > >> > > >> > > >> > On Thu, Feb 5, 2009 at 1:24 PM, thomas bonfort > >> > wrote: > >> > > >> >> On Thu, Feb 5, 2009 at 14:43, Glenn Waldron > wrote: > >> >> > Stephen, > >> >> > > >> >> > However, I am trying to > >> >> > get the pixels in the final composited image to be completely > >> >> transparent. > >> >> > > >> >> > >> >> There's no way you can set pixels to become transparent once the > image > >> >> is saved with the AGG outputformat. > >> >> > >> >> regards, > >> >> thomas > >> >> > >> > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Thu Feb 5 12:42:11 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 05 Feb 2009 14:42:11 -0600 Subject: [mapserver-users] Using IMAGECOLOR to create a transparency mask In-Reply-To: <70fbea790902051203k5fa95dc6i59895f071e1abd14@mail.gmail.com> References: <1233773546429-2270688.post@n2.nabble.com> <498A63B2.5030209@swoodbridge.com> <70fbea790902050543i2595e32dsa06d5ba2d641f195@mail.gmail.com> <70fbea790902051102p52a8067ar643666f0562642f3@mail.gmail.com> <498AE3DC.5157.008F.0@dnr.state.mn.us> <70fbea790902051203k5fa95dc6i59895f071e1abd14@mail.gmail.com> Message-ID: <498AFAC4.5157.008F.0@dnr.state.mn.us> AGG always produces 24-bit (or 32-bit) output. The documentation relates more to the GD driver I guess. The default behavior with GD is that the first color allocated (which is always IMAGECOLOR) becomes transparent if TRANSPARENT ON is set. The way to get 8-bit output out of GD is to either quantize to 256 or fewer colors or force a predefined palette. Both are controlled via format options. I'm not positive about what happens with transparency in those instances but you can give it a try. Steve >>> On 2/5/2009 at 2:03 PM, in message <70fbea790902051203k5fa95dc6i59895f071e1abd14 at mail.gmail.com>, Glenn Waldron wrote: > Hi Steve, > > I am trying to achieve the transparency effect as described in the > documentation: > "IMAGECOLOR [r] [g] [b]Color to initialize the map with (i.e. background > color). When transparency is enabled (TRANSPARENT ON) for the typical case > of 8-bit pseudocolored map generation, this color will be marked as > transparent in the output file palette. Any other map components drawn in > this color will also be transparent, so for map generation with transparency > it is best to use an otherwise unused color as the background color."Perhaps > I'm not clear on what constitutes "8-bit pseudocolored map generation". I am > using the AGG/PNG driver with TRANSPARENT ON. > > > Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : > +1.703.652.4791 > > > On Thu, Feb 5, 2009 at 2:04 PM, Steve Lime wrote: > >> IMAGECOLOR just sets the background color for an image. >> >> Steve >> >> >>> On 2/5/2009 at 1:02 PM, in message >> <70fbea790902051102p52a8067ar643666f0562642f3 at mail.gmail.com>, Glenn >> Waldron >> wrote: >> > Hi Thomas, >> > >> > In that case maybe I am misunderstanding the purpose of IMAGECOLOR. What >> is >> > it supposed to do, if not make all pixels of the specified color >> > transparent? >> > >> > >> > Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : >> > +1.703.652.4791 >> > >> > >> > On Thu, Feb 5, 2009 at 1:24 PM, thomas bonfort >> > wrote: >> > >> >> On Thu, Feb 5, 2009 at 14:43, Glenn Waldron wrote: >> >> > Stephen, >> >> > >> >> > However, I am trying to >> >> > get the pixels in the final composited image to be completely >> >> transparent. >> >> > >> >> >> >> There's no way you can set pixels to become transparent once the image >> >> is saved with the AGG outputformat. >> >> >> >> regards, >> >> thomas >> >> >> >> From vtammineni at roulacglobal.com Thu Feb 5 19:58:19 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Fri, 6 Feb 2009 09:28:19 +0530 Subject: [mapserver-users] How to get Layers By Group Message-ID: <004901c9880f$271feb20$755fc160$@com> Dear All, How can I retrieve layers by Group Name. And how to loop these layers based on group. Where I can able to switch on and swatch off the layers based on Group.I have Group property in my mapfile .but I don't know how to get layers and populate some control(tree view or some other). Please anyone can guide me . I am waiting for your great response. Advanced Thanks Regards, Venkat -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at hostgis.com Thu Feb 5 20:00:55 2009 From: gregor at hostgis.com (Gregor at HostGIS) Date: Thu, 05 Feb 2009 20:00:55 -0800 Subject: [mapserver-users] How to get Layers By Group In-Reply-To: <004901c9880f$271feb20$755fc160$@com> References: <004901c9880f$271feb20$755fc160$@com> Message-ID: <498BB5F7.4050900@hostgis.com> Venkat Rao Tammineni wrote: > How can I retrieve layers by Group Name. And how to loop these > layers based on group. Where I can able to switch on and swatch off the > layers based on Group. A group is just a "fake layer" with many layers. You request a group in the same way as you would a layer; the only change is that you use the group name and will get all the layers mixed together. Example: LAYER NAME "roads" GROUP "usamap" END LAYER NAME "lakes" GROUP "usamap" END LAYER NAME "cities" GROUP "usamap" END I would then request "layers=usamap" and magically get all three layers merged into one request. > I have Group property in my mapfile .but I don?t > know how to get layers and populate some control As to generating a control, that's the same as with layers as well except that you would use getAllGroupNames() instead of getAllLayerNames() But that depends on your own programming style and goals. -- Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ System Administrator, Lead Programmer HostGIS development & hosting services, http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From vtammineni at roulacglobal.com Thu Feb 5 20:15:59 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Fri, 6 Feb 2009 09:45:59 +0530 Subject: [mapserver-users] How to get Layers By Group In-Reply-To: <498BB5F7.4050900@hostgis.com> References: <004901c9880f$271feb20$755fc160$@com> <498BB5F7.4050900@hostgis.com> Message-ID: <005401c98811$9f6863d0$de392b70$@com> Dear Gregor, Thanks for your great response. The below is my code to retrieve layer based on layer index and I am populating into checkboxes for (int i = 0; i < map.numlayers; i++) { layer = map.getLayer(i); cbLayer.Items.Add(layer.name); //checkbox if (layer.status == (int)mapscript.MS_ON) { cbLayer.Items[i].Selected = true; //check box } } Like that how can I populate layer names based on group into check box or treeview. Thanks Venkat. -----Original Message----- From: Gregor at HostGIS [mailto:gregor at hostgis.com] Sent: Friday, February 06, 2009 9:31 AM To: Venkat Rao Tammineni Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] How to get Layers By Group Venkat Rao Tammineni wrote: > How can I retrieve layers by Group Name. And how to loop these > layers based on group. Where I can able to switch on and swatch off the > layers based on Group. A group is just a "fake layer" with many layers. You request a group in the same way as you would a layer; the only change is that you use the group name and will get all the layers mixed together. Example: LAYER NAME "roads" GROUP "usamap" END LAYER NAME "lakes" GROUP "usamap" END LAYER NAME "cities" GROUP "usamap" END I would then request "layers=usamap" and magically get all three layers merged into one request. > I have Group property in my mapfile .but I don't > know how to get layers and populate some control As to generating a control, that's the same as with layers as well except that you would use getAllGroupNames() instead of getAllLayerNames() But that depends on your own programming style and goals. -- Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ System Administrator, Lead Programmer HostGIS 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 Thu Feb 5 22:28:16 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 06 Feb 2009 01:28:16 -0500 Subject: [mapserver-users] WFS Server Control output by scale? Message-ID: <498BD880.2070101@swoodbridge.com> Hi all, I'm using mapserver as a WFS server with OpenLayers to serve some polygons. How does one control at what scale mapserver will respond to WFS requests. It looks like OpenLayers makes its request based on a min/max extents. How do you control this? Can you easily limit when OpenLayers makes request if you are using fixed scales based on the scale? or control mapserver based on size/area of extent? I'm not seeing anything in either projects documentation. I could use a clue or pointer to docs. Thanks, -Steve From amiyapatra188 at gmail.com Thu Feb 5 23:11:47 2009 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Fri, 6 Feb 2009 12:41:47 +0530 Subject: [mapserver-users] Regarding Apache Message-ID: Hi Thanks for helping always. Again I need help. Actually the problem is that after some time my apache is going down. i.e my image is not coming. But if I restart my apache then it is coming. I think in http.conf file I have to change some config. I am not getting.Plz help me regarding this. Thanks and regards Amiya Patra -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Eichner at sid.sachsen.de Thu Feb 5 23:30:34 2009 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Fri, 6 Feb 2009 08:30:34 +0100 Subject: AW: [mapserver-users] WFS Server Control output by scale? References: <498BD880.2070101@swoodbridge.com> Message-ID: Hi, I believe you're misunderstanding WFS. It is not intended to serve data on a scale basis. It delivers the raw underlying feature data according to a filter you supply. So if you want features related to an area of interest (which would be the current extent in Openlayers) then you want to filter your features, f.e.: Geometry 13.0983 31.5899 35.5472 42.8143 You can limit the amount by using a maxfeatures attribute/parameter in your request or limit directly with MapServer by using a wfs_maxfeatures metadata. So basically the client (Openlayers) has to decide when to fetch the features. -----Urspr?ngliche Nachricht----- Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Stephen Woodbridge Gesendet: Freitag, 6. Februar 2009 07:28 An: mapserver-users; openlayers user list Betreff: [mapserver-users] WFS Server Control output by scale? Hi all, I'm using mapserver as a WFS server with OpenLayers to serve some polygons. How does one control at what scale mapserver will respond to WFS requests. It looks like OpenLayers makes its request based on a min/max extents. How do you control this? Can you easily limit when OpenLayers makes request if you are using fixed scales based on the scale? or control mapserver based on size/area of extent? I'm not seeing anything in either projects documentation. I could use a clue or pointer to docs. Thanks, -Steve _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From cemre.yilmaz at gmail.com Thu Feb 5 23:58:49 2009 From: cemre.yilmaz at gmail.com (cemre yilmaz) Date: Fri, 6 Feb 2009 09:58:49 +0200 Subject: [mapserver-users] making my pc remote service and client simultaneously Message-ID: <28babe2b0902052358k2942a7edme3663b689417ca8f@mail.gmail.com> Hi everybody, I want to evaluate the performance of the map server with raster images. So I want to make my pc remote server and also client at the same time. Could you please inform me what should I do? Thanks.. Cemre Y. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at hostgis.com Fri Feb 6 00:03:40 2009 From: gregor at hostgis.com (Gregor at HostGIS) Date: Fri, 06 Feb 2009 00:03:40 -0800 Subject: [mapserver-users] Regarding Apache In-Reply-To: References: Message-ID: <498BEEDC.5090300@hostgis.com> Apache is crashing? Ouch. Question: Are you using PHP/MapScript and PHP as a DSO instead of a CGI? That has a habit of causing Apache to effectively freeze but not crash. -- Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ System Administrator, Lead Programmer HostGIS development & hosting services, http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From amiyapatra188 at gmail.com Fri Feb 6 00:15:24 2009 From: amiyapatra188 at gmail.com (Amiya Patra) Date: Fri, 6 Feb 2009 13:45:24 +0530 Subject: [mapserver-users] Regarding Apache In-Reply-To: <498BEEDC.5090300@hostgis.com> References: <498BEEDC.5090300@hostgis.com> Message-ID: *PHP/MapScript and PHP has a habit of causing Apache to effectively freeze* But how to solve that one...!!!!!!!!!!!!!!!!!!!!!!!! On Fri, Feb 6, 2009 at 1:33 PM, Gregor at HostGIS wrote: > Apache is crashing? Ouch. > > Question: Are you using PHP/MapScript and PHP as a DSO instead of a CGI? > That has a habit of causing Apache to effectively freeze but not crash. > > -- > Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ > System Administrator, Lead Programmer > HostGIS development & hosting services, http://www.HostGIS.com/ > > "Remember that no one cares if you can back up, > only if you can restore." - AMANDA > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at hostgis.com Fri Feb 6 00:58:01 2009 From: gregor at hostgis.com (Gregor at HostGIS) Date: Fri, 06 Feb 2009 00:58:01 -0800 Subject: [mapserver-users] Regarding Apache In-Reply-To: References: <498BEEDC.5090300@hostgis.com> Message-ID: <498BFB99.1030306@hostgis.com> Amiya Patra wrote: > *PHP/MapScript and PHP has a habit of causing Apache to effectively freeze* > But how to solve that one...!!!!!!!!!!!!!!!!!!!!!!!! If you suspect that that's the problem with your server, do what everyone else does: compile and run PHP as a CGI program, not as a DSO. It is unfortunate. By using PHP as a CGI, you fix that problem, but lose a lot of the benefits of PHP as DSO, such as database connection pooling and being able to use Zend Optimizer. But if you're using PHP/MapScript that's just how it is. I do have one workaround which suits us well at one site: We I figured out that it's the imgObj->draw() method that causes the freezes (in our use cases). We use PHP/MapScript extensively, but for the rendering we use shp2img via the `` operator. This gets around the freezing problem, as well as a few other bugs in draw() which we found unacceptable. -- Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ System Administrator, Lead Programmer HostGIS development & hosting services, http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From peter.hopfgartner at r3-gis.com Fri Feb 6 02:28:46 2009 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Fri, 06 Feb 2009 11:28:46 +0100 Subject: [mapserver-users] Multilingual map files In-Reply-To: References: <49899C63.5020705@r3-gis.com> Message-ID: <498C10DE.4040107@r3-gis.com> Kralidis,Tom [Ontario] wrote: > > > >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >> Peter Hopfgartner >> Sent: Wednesday, 04 February 2009 08:47 >> To: mapserver-users at lists.osgeo.org >> Cc: Paolo Viskanic >> Subject: [mapserver-users] Multilingual map files >> >> Dear list members >> >> I would like ask how map files for multilingual applications >> are handled by mapserver users. >> >> Multilingual information may impact the map in various ways. >> As by now, those come to mind: >> >> * Fix strings in the map file, (NAME, DESCRIPTION etc) >> * Database borne data, changing column for different >> languages as for LABELITEM >> * Queries changing with language, so that DATA/FILTER >> statements must be adapted to the current language (e.g. >> WHERE lang_id='en'). >> >> What we are currently doing is to write the mapfiles like: >> >> CLASS >> NAME "IT:Progetti linee|DE:Projekte Linien" >> SYMBOL 'circle' >> SIZE 3 >> COLOR 0 0 255 >> END >> >> METADATA >> "DESCRIPTION" "IT:Progetti|DE:Projekte" >> END >> >> LABELITEM "IT:gemi|DE:gemd" >> >> and modify the labels through Mapscript before rendering the >> map. This works if the map file is processed by Mapscript, >> whereas it would not work for CGI and W*S services. We would >> need a map file for each language for those services. >> >> > > For WxS, the specs themselves don't handle this, but it would be nice to > handle multilingual metadata in one document, i.e.: > > road > rue > > I remember Arnulf Christel mentioning some work on multilingual WxS by OGC. Do you know anything about this? > In our environment, we've created one mapfile / language. One thing you > could do is use MapScript WxS to intercept an incoming request (say with > an extended lang parameter), then, once you have the lang, set the > values in the mapfile accordingly. > > ..Tom > > > Thanks, Peter >> How do you handle i18n in MapServer? >> >> > > -- Dott. Peter Hopfgartner R3 GIS Srl - GmbH Via Johann Kravogl-Str. 2 I-39012 Meran/Merano (BZ) Email: peter.hopfgartner at r3-gis.com Tel. : +39 0473 494949 Fax : +39 0473 069902 www : http://www.r3-gis.com From Tom.Kralidis at ec.gc.ca Fri Feb 6 03:59:07 2009 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Fri, 6 Feb 2009 06:59:07 -0500 Subject: [mapserver-users] Multilingual map files In-Reply-To: <498C10DE.4040107@r3-gis.com> References: <49899C63.5020705@r3-gis.com> <498C10DE.4040107@r3-gis.com> Message-ID: > -----Original Message----- > From: Peter Hopfgartner [mailto:peter.hopfgartner at r3-gis.com] > Sent: Friday, 06 February 2009 05:29 > To: Kralidis,Tom [Ontario] > Cc: mapserver-users at lists.osgeo.org; Paolo Viskanic > Subject: Re: [mapserver-users] Multilingual map files > > Kralidis,Tom [Ontario] wrote: > > > > > > > >> -----Original Message----- > >> From: mapserver-users-bounces at lists.osgeo.org > >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf > Of Peter > >> Hopfgartner > >> Sent: Wednesday, 04 February 2009 08:47 > >> To: mapserver-users at lists.osgeo.org > >> Cc: Paolo Viskanic > >> Subject: [mapserver-users] Multilingual map files > >> > >> Dear list members > >> > >> I would like ask how map files for multilingual applications are > >> handled by mapserver users. > >> > >> Multilingual information may impact the map in various ways. > >> As by now, those come to mind: > >> > >> * Fix strings in the map file, (NAME, DESCRIPTION etc) > >> * Database borne data, changing column for different > languages as for > >> LABELITEM > >> * Queries changing with language, so that DATA/FILTER > statements must > >> be adapted to the current language (e.g. > >> WHERE lang_id='en'). > >> > >> What we are currently doing is to write the mapfiles like: > >> > >> CLASS > >> NAME "IT:Progetti linee|DE:Projekte Linien" > >> SYMBOL 'circle' > >> SIZE 3 > >> COLOR 0 0 255 > >> END > >> > >> METADATA > >> "DESCRIPTION" "IT:Progetti|DE:Projekte" > >> END > >> > >> LABELITEM "IT:gemi|DE:gemd" > >> > >> and modify the labels through Mapscript before rendering the map. > >> This works if the map file is processed by Mapscript, whereas it > >> would not work for CGI and W*S services. We would need a > map file for > >> each language for those services. > >> > >> > > > > For WxS, the specs themselves don't handle this, but it > would be nice > > to handle multilingual metadata in one document, i.e.: > > > > road > > rue > > > > > I remember Arnulf Christel mentioning some work on > multilingual WxS by OGC. Do you know anything about this? I wonder if Arnulf can refresh our memories? > > In our environment, we've created one mapfile / language. > One thing > > you could do is use MapScript WxS to intercept an incoming request > > (say with an extended lang parameter), then, once you have > the lang, > > set the values in the mapfile accordingly. > > > > ..Tom > > > > > > > Thanks, > > Peter > >> How do you handle i18n in MapServer? > >> > >> > > > > > > > -- > > Dott. Peter Hopfgartner > > R3 GIS Srl - GmbH > Via Johann Kravogl-Str. 2 > I-39012 Meran/Merano (BZ) > Email: peter.hopfgartner at r3-gis.com > Tel. : +39 0473 494949 > Fax : +39 0473 069902 > www : http://www.r3-gis.com > > From adube at mapgears.com Fri Feb 6 05:49:22 2009 From: adube at mapgears.com (Alexandre Dube) Date: Fri, 06 Feb 2009 08:49:22 -0500 Subject: [mapserver-users] Re: [OpenLayers-Users] WFS Server Control output by scale? In-Reply-To: <498BD880.2070101@swoodbridge.com> References: <498BD880.2070101@swoodbridge.com> Message-ID: <498C3FE2.8070708@mapgears.com> Hi Stephen, Like Eric said, using minScale and maxScale in your layer options should do what you're want to do. I also had a similar problem trying to display vector polygons at small scales ( like 1:13000000 ). Here's what I did : - I determined fixed scales to work with - I normalized my shapefile to have one per scale - Then you can have one Layer.WFS per data set only visible when at their scale OR you could use the customized Options-by-zoom strategy I made, see the example (1). Best of luck, Alexandre (1) http://dev4.mapgears.com/bdga/options-by-zoom-bdga.html Stephen Woodbridge wrote: > Hi all, > > I'm using mapserver as a WFS server with OpenLayers to serve some > polygons. How does one control at what scale mapserver will respond to > WFS requests. It looks like OpenLayers makes its request based on a > min/max extents. How do you control this? Can you easily limit when > OpenLayers makes request if you are using fixed scales based on the > scale? or control mapserver based on size/area of extent? > > I'm not seeing anything in either projects documentation. > > I could use a clue or pointer to docs. > > Thanks, > -Steve > _______________________________________________ > Users mailing list > Users at openlayers.org > http://openlayers.org/mailman/listinfo/users > -- Alexandre Dub? Mapgears www.mapgears.com From dmorissette at mapgears.com Fri Feb 6 06:17:39 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 06 Feb 2009 09:17:39 -0500 Subject: [mapserver-users] Regarding Apache In-Reply-To: <498BFB99.1030306@hostgis.com> References: <498BEEDC.5090300@hostgis.com> <498BFB99.1030306@hostgis.com> Message-ID: <498C4683.5060908@mapgears.com> Gregor at HostGIS wrote: > We use PHP/MapScript extensively, but for the rendering we > use shp2img via the `` operator. This gets around the freezing problem, > as well as a few other bugs in draw() which we found unacceptable. > We're always interested in making PHP MapScript better, especially when it comes to crashes of freezes. If you have identified specific bugs with reproduceable test cases, then we'd appreciate if you could file tickets with all the details (or point us to the existing ticket if there is one). Thanks Daniel -- Daniel Morissette http://www.mapgears.com/ From thomas.bonfort at gmail.com Fri Feb 6 07:23:08 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 6 Feb 2009 16:23:08 +0100 Subject: [mapserver-users] Map File for Open Street Map symbology In-Reply-To: <8CB3A44D5B3BBEA-DDC-277B@WEBMAIL-MB17.sysops.aol.com> References: <8CB3A44D5B3BBEA-DDC-277B@WEBMAIL-MB17.sysops.aol.com> Message-ID: I've created a wiki page with (I hope) a step by step tutorial for rendering OSM data with mapserver. enjoy it (or hate it) here: http://trac.osgeo.org/mapserver/wiki/RenderingOsmData best regards, thomas On Thu, Jan 1, 2009 at 17:26, wrote: > Anyone have a mapfile with the symbology corresponding to the OSM layers > shown on the new MapServer main page? TIA. From boesiii at yahoo.com Fri Feb 6 07:38:31 2009 From: boesiii at yahoo.com (boesiii) Date: Fri, 6 Feb 2009 07:38:31 -0800 (PST) Subject: [mapserver-users] Is there a way to change the background color at the url? Message-ID: <1233934711134-2284718.post@n2.nabble.com> In my map file I specify the color using "IMAGECOLOR 205 205 205". In my main html template I have a button to setup a new webpage for nicer printing but I would like the background to be white and not "205 205 205" (it's a light grey). Is there anyway to change image color in the url. Below is the code from my html template: Here's my MAP file http://n2.nabble.com/file/n2284718/niramap.map niramap.map -- View this message in context: http://n2.nabble.com/Is-there-a-way-to-change-the-background-color-at-the-url--tp2284718p2284718.html Sent from the Mapserver - User mailing list archive at Nabble.com. From David.Fawcett at state.mn.us Fri Feb 6 07:51:57 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Fri, 6 Feb 2009 09:51:57 -0600 Subject: [mapserver-users] Is there a way to change the background color atthe url? In-Reply-To: <1233934711134-2284718.post@n2.nabble.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA1EC@s-sp22.pca.state.mn.us> This URL should give you what you want: http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/apps/workshop08/hellowo rld.map&mode=map&map.imagecolor=255+255+255 David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of boesiii Sent: Friday, February 06, 2009 9:39 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Is there a way to change the background color atthe url? In my map file I specify the color using "IMAGECOLOR 205 205 205". In my main html template I have a button to setup a new webpage for nicer printing but I would like the background to be white and not "205 205 205" (it's a light grey). Is there anyway to change image color in the url. Below is the code from my html template: Here's my MAP file http://n2.nabble.com/file/n2284718/niramap.map niramap.map -- View this message in context: http://n2.nabble.com/Is-there-a-way-to-change-the-background-color-at-th e-url--tp2284718p2284718.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From boesiii at yahoo.com Fri Feb 6 07:59:47 2009 From: boesiii at yahoo.com (boesiii) Date: Fri, 6 Feb 2009 07:59:47 -0800 (PST) Subject: [mapserver-users] Is there a way to change the background color atthe url? In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA1EC@s-sp22.pca.state.mn.us> References: <1233934711134-2284718.post@n2.nabble.com> <6246727221874A4FB8D3F9BBC37D9BD5056DA1EC@s-sp22.pca.state.mn.us> Message-ID: <1233935987426-2284855.post@n2.nabble.com> Thanks that worked. I forgot to add "map." before imagecolor -- View this message in context: http://n2.nabble.com/Is-there-a-way-to-change-the-background-color-at-the-url--tp2284718p2284855.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Michele.Shimomura at denvergov.org Fri Feb 6 08:13:21 2009 From: Michele.Shimomura at denvergov.org (Shimomura, Michele L.- Environmental Health) Date: Fri, 6 Feb 2009 09:13:21 -0700 Subject: [mapserver-users] c# or php? Message-ID: Hi all, I'm pretty new to MapServer and I've created some proof of concept apps, but I'm at a decision point for how to move forward and would like to hear others' opinions. First, the small applications that I created were in Visual Studio 2008 using the c# mapscript that came with the MS4W package, but now I've found out that our Windows 2003 server is running IIS 6 in 64-bit mode. So, my question is: 1) Can I compile everything to work in Windows and 64 bit and are there instructions on how to do that somewhere? In googling, I read something about buildbot, but that site seems to be down. 2) Or, would I be better off just using Apache and the PHP mapscript? I'll be integrating these maps into a SharePoint Intranet environment (built in c#), so that's why my preference is towards that way. And if I go with #2, I'm thinking I can still use my c# front end but then create php web services to return functionality. Also, eventually, the functionality will need to be able to insert/update PostGreSQL spatial data. I would love to hear from others who have done this before because, if possible, I'd like to avoid getting way down path only to have many unexpected surprises. Thanks in advance for your help! Michele -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Fri Feb 6 08:50:40 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 6 Feb 2009 17:50:40 +0100 Subject: [mapserver-users] c# or php? In-Reply-To: References: Message-ID: Michele, It is possible to compile mapserver with many of the dependencies (but not all) for x64 and I have a couple of code could run on WS2003 x64 in ASP.NETenvironment. But using this option might be surprising definitely, since only a few feedback we got about the possible issues in a real production environment. The multithreaded environment provided by ASP.NET may also be challenging for the various libraries that mapserver is using. But if you would like to follow this way I could probably provide the required binary package to make a test with. To insert/update pgsql you could utilize the ogr C# interface contained by the gdal package. Apache/PHP would also be a wise choice if an inhomogeneous architecture is acceptable or you could create one or more single threaded C# application so as to serve the required images for the client application to achieve the same result. By using the /platform:x86 compile option you could ensure your appserver would be able to run either on Win32 or x64 environments equally well. Best regards, Tamas 2009/2/6 Shimomura, Michele L.- Environmental Health < Michele.Shimomura at denvergov.org> > Hi all, > > > > I'm pretty new to MapServer and I've created some proof of concept apps, > but I'm at a decision point for how to move forward and would like to hear > others' opinions. > > > > First, the small applications that I created were in Visual Studio 2008 > using the c# mapscript that came with the MS4W package, but now I've found > out that our Windows 2003 server is running IIS 6 in 64-bit mode. > > > > So, my question is: > > 1) Can I compile everything to work in Windows and 64 bit and are there > instructions on how to do that somewhere? In googling, I read something > about buildbot, but that site seems to be down. > > > > 2) Or, would I be better off just using Apache and the PHP > mapscript? > > > > I'll be integrating these maps into a SharePoint Intranet environment > (built in c#), so that's why my preference is towards that way. And if I go > with #2, I'm thinking I can still use my c# front end but then create php > web services to return functionality. Also, eventually, the functionality > will need to be able to insert/update PostGreSQL spatial data. > > > > I would love to hear from others who have done this before because, if > possible, I'd like to avoid getting way down path only to have many > unexpected surprises. > > > > Thanks in advance for your help! > > Michele > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From MMaganti at oriongis.com Fri Feb 6 09:39:56 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Fri, 6 Feb 2009 12:39:56 -0500 Subject: [mapserver-users] Encoding issues Message-ID: Hello I am having some issues using Arabic text as labels. I am using C# map script. I am setting the following at runtime labelObj label = classObj.label; label.encoding = "CP1256"; label.text = "some text in Arabic"; (At rune time in VS, I can see the text is actually in Arabic) But labels are displayed as '?????'. Is there any conversion I need to do before setting the text value. How are the string represented in the underlying mapscript dll (ASCII or Unicode?). As I was reading in the MSDN, the default marshalling uses LPStr which is a single byte of ASCII. Does it mean that first I need to convert from Unicode to ASCII in C# before setting the value. Appreciate any help. Thanks Murty -------------- next part -------------- An HTML attachment was scrubbed... URL: From pgiannini at bytewise.it Fri Feb 6 09:43:30 2009 From: pgiannini at bytewise.it (Pietro Giannini) Date: Fri, 6 Feb 2009 18:43:30 +0100 (CET) Subject: [mapserver-users] c# or php? In-Reply-To: References: Message-ID: <40847.89.97.235.106.1233942210.squirrel@localhost.localdomain> Hi Michele, I'm currently working on a C# MapScript application on a SharePoint environment. I cannot answer your 1st question, but if you already developed a test app you shouldn't have problems... I currently use the csharp_mapscript that came with the last ms4w, no matter to recompile it. Maybe the idea of use both apache-php and iis-.net is possible, but it seems me an unnecessary complication. I found usefully this article - for PostGIS connection too: http://www.paolocorti.net/2006/09/20/mapserver-tutorial-for-c-mapscript-asp-net/ ciao ................ pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Ven, Febbraio 6, 2009 17:13, Shimomura, Michele L.- Environmental Health wrote: > Hi all, > > > > I'm pretty new to MapServer and I've created some proof of concept apps, > but I'm at a decision point for how to move forward and would like to > hear others' opinions. > > > > First, the small applications that I created were in Visual Studio 2008 > using the c# mapscript that came with the MS4W package, but now I've > found out that our Windows 2003 server is running IIS 6 in 64-bit mode. > > > > So, my question is: > > 1) Can I compile everything to work in Windows and 64 bit and are there > instructions on how to do that somewhere? In googling, I read something > about buildbot, but that site seems to be down. > > > > 2) Or, would I be better off just using Apache and the PHP > mapscript? > > > > I'll be integrating these maps into a SharePoint Intranet environment > (built in c#), so that's why my preference is towards that way. And if > I go with #2, I'm thinking I can still use my c# front end but then > create php web services to return functionality. Also, eventually, the > functionality will need to be able to insert/update PostGreSQL spatial > data. > > > > I would love to hear from others who have done this before because, if > possible, I'd like to avoid getting way down path only to have many > unexpected surprises. > > > > Thanks in advance for your help! > > Michele > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From pcreso at pcreso.com Fri Feb 6 10:52:50 2009 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Fri, 6 Feb 2009 10:52:50 -0800 (PST) Subject: [mapserver-users] Re: [OpenLayers-Users] WFS Server Control output by scale? In-Reply-To: <498C3FE2.8070708@mapgears.com> Message-ID: <662.49146.qm@web33206.mail.mud.yahoo.com> Hi, I have found that using PostGIS for this has some nice options. USe different zoom or scale based layers, with MINSCALE, MAXSCALE parameters. Mapserver providing the layers via WFS, as a single group of scale dependent queries on the same table. That way you can have one table with all the data, but the mapfile has several zoom layers applying SQL queries to redusce the data volume. One example, for what was a 150Mb shapefile of depth contours, summarised below. By tweaking the simplify parameter (which applies a vey fast Peuker-Douglas generalisation to each linestring) and adjusting which contours are rendered, the WFS server always sends roughly the same volume of data to the client, so performance is about the same, irrespective of scale. And the best thing is, you only use one full resolution data source. Zoomed out we don't need all the data in full precision for a large extent, zoomed in & we can display high precision data for a small extent. zoomed out, select only some depths and simplify by 5km "select depth, simplify(geom,5000) as geom from contours where depth = 250 or depth = 500 or depth = 1000 or depth = 5000;" zooming in, add more depth lines & reduce the simplification "select depth, simplify(geom, 1000) as geom from contours where depth = 250 or depth = 500 or depth = 1000 or depth = 2500 or depth = 5000; zoom in further, simplify by 100 & add 100, 250, 500, 750, 1000, 2000, 3000, 4000. 5000 contours zoomed fully: "select depth, geom from contours;" Hth, Brent Wood --- On Sat, 2/7/09, Alexandre Dube wrote: > From: Alexandre Dube > Subject: [mapserver-users] Re: [OpenLayers-Users] WFS Server Control output by scale? > To: "Stephen Woodbridge" > Cc: "openlayers user list" , "mapserver-users" > Date: Saturday, February 7, 2009, 2:49 AM > Hi Stephen, > > Like Eric said, using minScale and maxScale in your layer > options should do what you're want to do. > > I also had a similar problem trying to display vector > polygons at small scales ( like 1:13000000 ). Here's > what I did : > > - I determined fixed scales to work with > - I normalized my shapefile to have one per scale > - Then you can have one Layer.WFS per data set only visible > when at their scale OR you could use the customized > Options-by-zoom strategy I made, see the example (1). > > Best of luck, > > Alexandre > > (1) http://dev4.mapgears.com/bdga/options-by-zoom-bdga.html > > Stephen Woodbridge wrote: > > Hi all, > > > > I'm using mapserver as a WFS server with > OpenLayers to serve some polygons. How does one control at > what scale mapserver will respond to WFS requests. It looks > like OpenLayers makes its request based on a min/max > extents. How do you control this? Can you easily limit when > OpenLayers makes request if you are using fixed scales based > on the scale? or control mapserver based on size/area of > extent? > > > > I'm not seeing anything in either projects > documentation. > > > > I could use a clue or pointer to docs. > > > > Thanks, > > -Steve > > _______________________________________________ > > Users mailing list > > Users at openlayers.org > > http://openlayers.org/mailman/listinfo/users > > > > > -- Alexandre Dub? > Mapgears > www.mapgears.com > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From szekerest at gmail.com Fri Feb 6 12:01:33 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 6 Feb 2009 21:01:33 +0100 Subject: [mapserver-users] Encoding issues In-Reply-To: References: Message-ID: Hi, You might want to try with encoding="ISO-8859-6" assuming you have libiconv compiled in. The c# mapscript doesn't specify explicit conversion during the marshaling. In this case I assume an unicode to Charset.Ansi conversion will automatically takes place by default. Best regards, Tamas 2009/2/6 Murty Maganti > Hello > > > > I am having some issues using Arabic text as labels. I am using C# map > script. I am setting the following at runtime > > > > labelObj label = classObj.label; > > label.encoding = "CP1256"; > > label.text = "some text in Arabic"; (At rune time in VS, I can see the text > is actually in Arabic) > > > > But labels are displayed as '?????'. > > > > Is there any conversion I need to do before setting the text value. How > are the string represented in the underlying mapscript dll (ASCII or > Unicode?). As I was reading in the MSDN, the default marshalling uses LPStr > which is a single byte of ASCII. Does it mean that first I need to convert > from Unicode to ASCII in C# before setting the value. > > > > Appreciate any help. > > > > Thanks > > Murty > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ml at lingner.eu Fri Feb 6 12:32:21 2009 From: ml at lingner.eu (Lars Lingner) Date: Fri, 06 Feb 2009 21:32:21 +0100 Subject: [mapserver-users] Map File for Open Street Map symbology In-Reply-To: References: <8CB3A44D5B3BBEA-DDC-277B@WEBMAIL-MB17.sysops.aol.com> Message-ID: <498C9E55.8090809@lingner.eu> thomas bonfort schrieb: > I've created a wiki page with (I hope) a step by step tutorial for > rendering OSM data with mapserver. > enjoy it (or hate it) here: > > http://trac.osgeo.org/mapserver/wiki/RenderingOsmData Thank you. You put a lot of work in this! It was a big surprise to see that MIN/MAXSCALEDENOM is allowed at Label-Level. At least with current trunk version. That are great news! I see that you also had to rename the column "natural". As this is an reserved name by postgres, is there an way to use such a name in an mapserver expression? Although renaming the column did work for me I just want to know how to quote correctly. Lars From MMaganti at oriongis.com Fri Feb 6 12:43:45 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Fri, 6 Feb 2009 15:43:45 -0500 Subject: [mapserver-users] Encoding issues In-Reply-To: References: Message-ID: Hi I tried with the suggested encoding but still no success. >From the output below, I guess ICONV support is included. E:\Utils\MapServer\Map Server 5.2 RC\ms4w\Apache\cgi-bin>mapserv -v MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICO NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUP PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Where can get some details on how to build the C# mapscript (Managed assembly only) from Visual Studio, keeping all unmanaged dlls from binaries from ms4w. I just want to give a try using MarshalAsAttribute. Thanks Murty From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Friday, February 06, 2009 3:02 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Encoding issues Hi, You might want to try with encoding="ISO-8859-6" assuming you have libiconv compiled in. The c# mapscript doesn't specify explicit conversion during the marshaling. In this case I assume an unicode to Charset.Ansi conversion will automatically takes place by default. Best regards, Tamas 2009/2/6 Murty Maganti Hello I am having some issues using Arabic text as labels. I am using C# map script. I am setting the following at runtime labelObj label = classObj.label; label.encoding = "CP1256"; label.text = "some text in Arabic"; (At rune time in VS, I can see the text is actually in Arabic) But labels are displayed as '?????'. Is there any conversion I need to do before setting the text value. How are the string represented in the underlying mapscript dll (ASCII or Unicode?). As I was reading in the MSDN, the default marshalling uses LPStr which is a single byte of ASCII. Does it mean that first I need to convert from Unicode to ASCII in C# before setting the value. Appreciate any help. Thanks Murty _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Fri Feb 6 13:11:39 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 6 Feb 2009 22:11:39 +0100 Subject: [mapserver-users] Encoding issues In-Reply-To: References: Message-ID: Please send me your example so that I could examine what's going on. Best regards, Tamas 2009/2/6 Murty Maganti > Hi > > > > I tried with the suggested encoding but still no success. > > From the output below, I guess ICONV support is included. > > > > E:\Utils\MapServer\Map Server 5.2 RC\ms4w\Apache\cgi-bin>mapserv -v > > MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF > > OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE * > SUPPORTS=ICO* > > *NV* SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER > > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER > SUPPORTS=FASTCGI SUP > > PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS > INPUT=OGR > > INPUT=GDAL INPUT=SHAPEFILE > > > > Where can get some details on how to build the C# mapscript (Managed > assembly only) from Visual Studio, keeping all unmanaged dlls from binaries > from ms4w. I just want to give a try using MarshalAsAttribute. > > > > Thanks > > Murty > > *From:* Tamas Szekeres [mailto:szekerest at gmail.com] > *Sent:* Friday, February 06, 2009 3:02 PM > *To:* Murty Maganti > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Encoding issues > > > > Hi, > > You might want to try with encoding="ISO-8859-6" assuming you have libiconv > compiled in. > The c# mapscript doesn't specify explicit conversion during the marshaling. > In this case I assume an unicode to Charset.Ansi conversion will > automatically takes place by default. > > Best regards, > > Tamas > > > > > 2009/2/6 Murty Maganti > > Hello > > > > I am having some issues using Arabic text as labels. I am using C# map > script. I am setting the following at runtime > > > > labelObj label = classObj.label; > > label.encoding = "CP1256"; > > label.text = "some text in Arabic"; (At rune time in VS, I can see the text > is actually in Arabic) > > > > But labels are displayed as '?????'. > > > > Is there any conversion I need to do before setting the text value. How > are the string represented in the underlying mapscript dll (ASCII or > Unicode?). As I was reading in the MSDN, the default marshalling uses LPStr > which is a single byte of ASCII. Does it mean that first I need to convert > from Unicode to ASCII in C# before setting the value. > > > > Appreciate any help. > > > > Thanks > > Murty > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From MMaganti at oriongis.com Fri Feb 6 13:57:34 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Fri, 6 Feb 2009 16:57:34 -0500 Subject: [mapserver-users] Encoding issues In-Reply-To: References: Message-ID: HI I am doing a simple thing. I have a map file and trying to show some static text in Arabic on map. You can try this with any map file as it is nothing to do with layers from map. At run time (like on a button click), please add this layerObj lyr = new layerObj(mapObj); lyr.name = "TextAcetate?; lyr.status = mapscript.MS_ON; lyr.type = MS_LAYER_TYPE.MS_LAYER_ANNOTATION; lyr.labelcache = mapscript.MS_TRUE; double locationX = 50; double locationY = 50; lyr.transform = (int)mapscript.MS_FALSE; classObj layerClass = new classObj(lyr); //All label properties layerClass.label.size = 15; layerClass.label.type = MS_FONT_TYPE.MS_TRUETYPE; ? ? layerClass.label.encoding = ?CP1256?; shapeObj shpObj = new shapeObj((int)MS_SHAPE_TYPE.MS_SHAPE_POINT); lineObj lnObj = new lineObj(); pointObj pt = new pointObj(locationX, locationY, 0, 0); lnObj.add(pt); shpObj.add(lnObj); shpObj.text = ?????????????????; //I actually get this (in arabic) through user input lyr.addFeature(shpObj); mapObj.draw(); //Onto a picture box or save as file (In the map file, my output format is set to GD/PNG) Please let me know if you need more information. Thanks Murty From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Tamas Szekeres Sent: Friday, February 06, 2009 4:12 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Encoding issues Please send me your example so that I could examine what's going on. Best regards, Tamas 2009/2/6 Murty Maganti Hi I tried with the suggested encoding but still no success. >From the output below, I guess ICONV support is included. E:\Utils\MapServer\Map Server 5.2 RC\ms4w\Apache\cgi-bin>mapserv -v MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICO NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUP PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Where can get some details on how to build the C# mapscript (Managed assembly only) from Visual Studio, keeping all unmanaged dlls from binaries from ms4w. I just want to give a try using MarshalAsAttribute. Thanks Murty From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Friday, February 06, 2009 3:02 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Encoding issues Hi, You might want to try with encoding="ISO-8859-6" assuming you have libiconv compiled in. The c# mapscript doesn't specify explicit conversion during the marshaling. In this case I assume an unicode to Charset.Ansi conversion will automatically takes place by default. Best regards, Tamas 2009/2/6 Murty Maganti Hello I am having some issues using Arabic text as labels. I am using C# map script. I am setting the following at runtime labelObj label = classObj.label; label.encoding = "CP1256"; label.text = "some text in Arabic"; (At rune time in VS, I can see the text is actually in Arabic) But labels are displayed as '?????'. Is there any conversion I need to do before setting the text value. How are the string represented in the underlying mapscript dll (ASCII or Unicode?). As I was reading in the MSDN, the default marshalling uses LPStr which is a single byte of ASCII. Does it mean that first I need to convert from Unicode to ASCII in C# before setting the value. Appreciate any help. Thanks Murty _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Fri Feb 6 15:58:46 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Sat, 7 Feb 2009 00:58:46 +0100 Subject: [mapserver-users] Encoding issues In-Reply-To: References: Message-ID: You might have to make explicit conversion maually something like: string value = "???????????????"; //I actually get this (in arabic) through user input byte[] bytes = Encoding.Convert(Encoding.Unicode, Encoding.GetEncoding(1256), Encoding.Unicode.GetBytes(value)); StringBuilder s = new StringBuilder(); for (int i = 0; i < bytes.Length; i++) s.Append(Convert.ToChar(bytes[i])); shpObj.text = s.ToString(); Best regards, Tamas 2009/2/6 Murty Maganti > HI > > > > I am doing a simple thing. I have a map file and trying to show some static > text in Arabic on map. You can try this with any map file as it is nothing > to do with layers from map. > > > > At run time (like on a button click), please add this > > > > layerObj lyr = new layerObj(mapObj); > > lyr.name = "TextAcetate"; > > lyr.status = mapscript.MS_ON; > > lyr.type = MS_LAYER_TYPE.MS_LAYER_ANNOTATION; > > lyr.labelcache = mapscript.MS_TRUE; > > > > double locationX = 50; > > double locationY = 50; > > > > lyr.transform = (int)mapscript.MS_FALSE; > > > > classObj layerClass = new classObj(lyr); > > > > //All label properties > > layerClass.label.size = 15; > > layerClass.label.type = MS_FONT_TYPE.MS_TRUETYPE; > > ? > > ? > > layerClass.label.encoding = "CP1256"; > > > > > > shapeObj shpObj = new shapeObj((int)MS_SHAPE_TYPE > .MS_SHAPE_POINT); > > lineObj lnObj = new lineObj(); > > > > pointObj pt = new pointObj(locationX, locationY, 0, 0); > > lnObj.add(pt); > > > > shpObj.add(lnObj); > > > > shpObj.text = "???????????????"; //I actually get this (in > arabic) through user input > > > > lyr.addFeature(shpObj); > > > > mapObj.draw(); //Onto a picture box or save as file > > > > (In the map file, my output format is set to GD/PNG) > > > > Please let me know if you need more information. > > > > Thanks > > Murty > > > > > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Tamas Szekeres > *Sent:* Friday, February 06, 2009 4:12 PM > > *To:* Murty Maganti > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Encoding issues > > > > Please send me your example so that I could examine what's going on. > > Best regards, > > Tamas > > > 2009/2/6 Murty Maganti > > Hi > > > > I tried with the suggested encoding but still no success. > > From the output below, I guess ICONV support is included. > > > > E:\Utils\MapServer\Map Server 5.2 RC\ms4w\Apache\cgi-bin>mapserv -v > > MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF > > OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE * > SUPPORTS=ICO* > > *NV* SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER > > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER > SUPPORTS=FASTCGI SUP > > PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS > INPUT=OGR > > INPUT=GDAL INPUT=SHAPEFILE > > > > Where can get some details on how to build the C# mapscript (Managed > assembly only) from Visual Studio, keeping all unmanaged dlls from binaries > from ms4w. I just want to give a try using MarshalAsAttribute. > > > > Thanks > > Murty > > *From:* Tamas Szekeres [mailto:szekerest at gmail.com] > *Sent:* Friday, February 06, 2009 3:02 PM > *To:* Murty Maganti > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Encoding issues > > > > Hi, > > You might want to try with encoding="ISO-8859-6" assuming you have libiconv > compiled in. > The c# mapscript doesn't specify explicit conversion during the marshaling. > In this case I assume an unicode to Charset.Ansi conversion will > automatically takes place by default. > > Best regards, > > Tamas > > > > 2009/2/6 Murty Maganti > > Hello > > > > I am having some issues using Arabic text as labels. I am using C# map > script. I am setting the following at runtime > > > > labelObj label = classObj.label; > > label.encoding = "CP1256"; > > label.text = "some text in Arabic"; (At rune time in VS, I can see the text > is actually in Arabic) > > > > But labels are displayed as '?????'. > > > > Is there any conversion I need to do before setting the text value. How > are the string represented in the underlying mapscript dll (ASCII or > Unicode?). As I was reading in the MSDN, the default marshalling uses LPStr > which is a single byte of ASCII. Does it mean that first I need to convert > from Unicode to ASCII in C# before setting the value. > > > > Appreciate any help. > > > > Thanks > > Murty > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jbw2003 at earthlink.net Fri Feb 6 16:29:15 2009 From: jbw2003 at earthlink.net (jim white) Date: Fri, 06 Feb 2009 19:29:15 -0500 Subject: [mapserver-users] Re: Regarding Apache In-Reply-To: <20090206153836.142D9E014FF@lists.osgeo.org> References: <20090206153836.142D9E014FF@lists.osgeo.org> Message-ID: <498CD5DB.3030404@earthlink.net> Gregor at HostGIS wrote: > > We use PHP/MapScript extensively, but for the rendering we > > use shp2img via the `` operator. This gets around the freezing problem, > > as well as a few other bugs in draw() which we found unacceptable. > > > We're always interested in making PHP MapScript better, especially when it comes to crashes of freezes. If you have identified specific bugs with reproduceable test cases, then we'd appreciate if you could file tickets with all the details (or point us to the existing ticket if there is one). Thanks Daniel -------- I have tried recently switching between cgi and DSO. Our site uses PHP MapScript 5.02 and what I have noticed is that with cgi it helps to insert flush() and/or ob_flush() in the script. However, running as DSO pages will not load and I have to comment out flush() and ob_flush(). James White Programmer Biodiversity and Spatial Information Center North Carolina State University www.basic.ncsu.edu From MMaganti at oriongis.com Fri Feb 6 19:33:36 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Fri, 6 Feb 2009 22:33:36 -0500 Subject: [mapserver-users] Encoding issues In-Reply-To: References: Message-ID: Hello Great. It worked. Thanks a lot for your quick help. Thanks Murty From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Friday, February 06, 2009 6:59 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Encoding issues You might have to make explicit conversion maually something like: string value = "???????????????"; //I actually get this (in arabic) through user input byte[] bytes = Encoding.Convert(Encoding.Unicode, Encoding.GetEncoding(1256), Encoding.Unicode.GetBytes(value)); StringBuilder s = new StringBuilder(); for (int i = 0; i < bytes.Length; i++) s.Append(Convert.ToChar(bytes[i])); shpObj.text = s.ToString(); Best regards, Tamas 2009/2/6 Murty Maganti HI I am doing a simple thing. I have a map file and trying to show some static text in Arabic on map. You can try this with any map file as it is nothing to do with layers from map. At run time (like on a button click), please add this layerObj lyr = new layerObj(mapObj); lyr.name = "TextAcetate"; lyr.status = mapscript.MS_ON; lyr.type = MS_LAYER_TYPE.MS_LAYER_ANNOTATION; lyr.labelcache = mapscript.MS_TRUE; double locationX = 50; double locationY = 50; lyr.transform = (int)mapscript.MS_FALSE; classObj layerClass = new classObj(lyr); //All label properties layerClass.label.size = 15; layerClass.label.type = MS_FONT_TYPE.MS_TRUETYPE; ? ? layerClass.label.encoding = "CP1256"; shapeObj shpObj = new shapeObj((int)MS_SHAPE_TYPE.MS_SHAPE_POINT); lineObj lnObj = new lineObj(); pointObj pt = new pointObj(locationX, locationY, 0, 0); lnObj.add(pt); shpObj.add(lnObj); shpObj.text = "???????????????"; //I actually get this (in arabic) through user input lyr.addFeature(shpObj); mapObj.draw(); //Onto a picture box or save as file (In the map file, my output format is set to GD/PNG) Please let me know if you need more information. Thanks Murty From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Tamas Szekeres Sent: Friday, February 06, 2009 4:12 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Encoding issues Please send me your example so that I could examine what's going on. Best regards, Tamas 2009/2/6 Murty Maganti Hi I tried with the suggested encoding but still no success. >From the output below, I guess ICONV support is included. E:\Utils\MapServer\Map Server 5.2 RC\ms4w\Apache\cgi-bin>mapserv -v MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICO NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUP PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Where can get some details on how to build the C# mapscript (Managed assembly only) from Visual Studio, keeping all unmanaged dlls from binaries from ms4w. I just want to give a try using MarshalAsAttribute. Thanks Murty From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Friday, February 06, 2009 3:02 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Encoding issues Hi, You might want to try with encoding="ISO-8859-6" assuming you have libiconv compiled in. The c# mapscript doesn't specify explicit conversion during the marshaling. In this case I assume an unicode to Charset.Ansi conversion will automatically takes place by default. Best regards, Tamas 2009/2/6 Murty Maganti Hello I am having some issues using Arabic text as labels. I am using C# map script. I am setting the following at runtime labelObj label = classObj.label; label.encoding = "CP1256"; label.text = "some text in Arabic"; (At rune time in VS, I can see the text is actually in Arabic) But labels are displayed as '?????'. Is there any conversion I need to do before setting the text value. How are the string represented in the underlying mapscript dll (ASCII or Unicode?). As I was reading in the MSDN, the default marshalling uses LPStr which is a single byte of ASCII. Does it mean that first I need to convert from Unicode to ASCII in C# before setting the value. Appreciate any help. Thanks Murty _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Sat Feb 7 03:35:44 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sat, 7 Feb 2009 13:35:44 +0200 Subject: [mapserver-users] Map File for Open Street Map symbology References: <8CB3A44D5B3BBEA-DDC-277B@WEBMAIL-MB17.sysops.aol.com> <498C9E55.8090809@lingner.eu> Message-ID: Lars Lingner wrote: > I see that you also had to rename the column "natural". As this is an > reserved name by postgres, is there an way to use such a name in an > mapserver expression? > Although renaming the column did work for me I just want to know how to > quote correctly. Natural is reserved keyword in PostgrSQL, but it is not actually denied to use it as a column name. It just needs to be queried like select "natural" from osm_line limit 10; Renaming the column may make living a bit easier, many PostGIS drivers I have used with GIS programs are sending SQL simply like "select natural..." and that will fail. -Jukka Rahkonen- From ml at lingner.eu Sat Feb 7 03:57:35 2009 From: ml at lingner.eu (Lars Lingner) Date: Sat, 07 Feb 2009 12:57:35 +0100 Subject: [mapserver-users] Map File for Open Street Map symbology In-Reply-To: References: <8CB3A44D5B3BBEA-DDC-277B@WEBMAIL-MB17.sysops.aol.com> <498C9E55.8090809@lingner.eu> Message-ID: <498D772F.3000901@lingner.eu> Rahkonen Jukka schrieb: > Lars Lingner wrote: > > > >> I see that you also had to rename the column "natural". As this is an >> reserved name by postgres, is there an way to use such a name in an >> mapserver expression? >> Although renaming the column did work for me I just want to know how to >> quote correctly. >> > > Natural is reserved keyword in PostgrSQL, but it is not actually denied to use it as a column name. It just needs to be queried like > select "natural" from osm_line limit 10; > Renaming the column may make living a bit easier, many PostGIS drivers I have used with GIS programs are sending SQL simply like "select natural..." and that will fail. > Yes you are right but I couldn't find a way to quote this keyword in an mapfile data statement. DATA "way from (select way,osm_id ,name from planet_osm_polygon where 'natural'='water' ) as foo using unique osm_id using srid=900913" was not working... but I just tried it again, just to make sure I don't say anything wrong... and its working. *doh* Allright than. I don't know what I did wrong. Thanks for your response! Lars From thomas.bonfort at gmail.com Sat Feb 7 13:29:47 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sat, 7 Feb 2009 22:29:47 +0100 Subject: [mapserver-users] Map File for Open Street Map symbology In-Reply-To: <498D772F.3000901@lingner.eu> References: <8CB3A44D5B3BBEA-DDC-277B@WEBMAIL-MB17.sysops.aol.com> <498C9E55.8090809@lingner.eu> <498D772F.3000901@lingner.eu> Message-ID: On Sat, Feb 7, 2009 at 12:57, Lars Lingner wrote: > Rahkonen Jukka schrieb: >> Lars Lingner wrote: >> >> >> >>> I see that you also had to rename the column "natural". As this is an >>> reserved name by postgres, is there an way to use such a name in an >>> mapserver expression? >>> Although renaming the column did work for me I just want to know how to >>> quote correctly. I don't think you can if you need to do a string comparison in your sql where clause, as there's no way in mapserver to escape the ' or " characters > > DATA "way from (select way,osm_id ,name from planet_osm_polygon where > 'natural'='water' ) as foo using unique osm_id using srid=900913" > > was not working... but I just tried it again, just to make sure I don't > say anything wrong... and its working. *doh* it's a valid sql clause, but useless for mapserver as it won't return any data (as the string 'water' and 'natural' are never equal) regards, thomas From pcreso at pcreso.com Sat Feb 7 16:32:06 2009 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Sat, 7 Feb 2009 16:32:06 -0800 (PST) Subject: [mapserver-users] Map File for Open Street Map symbology In-Reply-To: Message-ID: <337705.54184.qm@web33206.mail.mud.yahoo.com> If you want to keep the original column names in the underlying table, but have issues with mapserver being unable to use these for whatever reason, you can implement a database view on the table with renamed columns as necessary for Mapserver to access them. Works well & is one example of the advantages of managing your spatial data inside a database. HTH, Brent Wood --- On Sun, 2/8/09, thomas bonfort wrote: > From: thomas bonfort > Subject: Re: [mapserver-users] Map File for Open Street Map symbology > To: "Lars Lingner" > Cc: mapserver-users at lists.osgeo.org > Date: Sunday, February 8, 2009, 10:29 AM > On Sat, Feb 7, 2009 at 12:57, Lars Lingner > wrote: > > Rahkonen Jukka schrieb: > >> Lars Lingner wrote: > >> > >> > >> > >>> I see that you also had to rename the column > "natural". As this is an > >>> reserved name by postgres, is there an way to > use such a name in an > >>> mapserver expression? > >>> Although renaming the column did work for me I > just want to know how to > >>> quote correctly. > I don't think you can if you need to do a string > comparison in your > sql where clause, as there's no way in mapserver to > escape the ' or " > characters > > > > > > DATA "way from (select way,osm_id ,name from > planet_osm_polygon where > > 'natural'='water' ) as foo using > unique osm_id using srid=900913" > > > > was not working... but I just tried it again, just to > make sure I don't > > say anything wrong... and its working. *doh* > > it's a valid sql clause, but useless for mapserver as > it won't return > any data (as the string 'water' and > 'natural' are never equal) > > regards, > thomas > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From accounts.nabble at datawranglers.com Sat Feb 7 19:55:45 2009 From: accounts.nabble at datawranglers.com (Tim Wood) Date: Sat, 07 Feb 2009 20:55:45 -0700 Subject: [mapserver-users] Problems with MapScript and setProjection Message-ID: <498E57C1.4040707@datawranglers.com> I've been round and round with setProjection in MapScript and setProjection today. I either get the infamous blank image or the image returns in the same proportions as the original lat/long data. Proj seems to be (at least partially) working because if I forget something like +ellps=[blah blah], it throws an error. I'd like to look at a simple php mapscript example of creating a map, adding a layer, adding something to that layer (e.g. my a simple query against a lat/long shapefile) and then project that another way (tmerc, lcc, whatever). But, I have yet to find one. Can someone share a working example or know of one on the web? Tim Wood -------------- next part -------------- An HTML attachment was scrubbed... URL: From accounts.nabble at datawranglers.com Sat Feb 7 19:34:37 2009 From: accounts.nabble at datawranglers.com (Tim Wood) Date: Sat, 07 Feb 2009 20:34:37 -0700 Subject: [mapserver-users] Problems with MapScript and setProjection Message-ID: <498E52CD.4060900@datawranglers.com> I've been round and round with setProjection in MapScript and setProjection today. I either get the infamous blank image or the image returns in the same proportions as the original lat/long data. Proj seems to be (at least partially) working because if I forget something like +ellps=[blah blah], it throws an error. I'd like to look at a simple php mapscript example of creating a map, adding a layer, adding something to that layer (e.g. my a simple query against a lat/long shapefile) and then project that another way (tmerc, lcc, whatever). But, I have yet to find one. Can someone share a working example or know of one on the web? Tim Wood -------------- next part -------------- An HTML attachment was scrubbed... URL: From ml at lingner.eu Sun Feb 8 05:22:49 2009 From: ml at lingner.eu (Lars Lingner) Date: Sun, 08 Feb 2009 14:22:49 +0100 Subject: [mapserver-users] Map File for Open Street Map symbology In-Reply-To: References: <8CB3A44D5B3BBEA-DDC-277B@WEBMAIL-MB17.sysops.aol.com> <498C9E55.8090809@lingner.eu> <498D772F.3000901@lingner.eu> Message-ID: <498EDCA9.8060102@lingner.eu> thomas bonfort schrieb: > [...] > I don't think you can if you need to do a string comparison in your > sql where clause, as there's no way in mapserver to escape the ' or " > characters > > > Ok, thanks for clarification. >> DATA "way from (select way,osm_id ,name from planet_osm_polygon where >> 'natural'='water' ) as foo using unique osm_id using srid=900913" >> >> was not working... but I just tried it again, just to make sure I don't >> say anything wrong... and its working. *doh* >> > > it's a valid sql clause, but useless for mapserver as it won't return > any data (as the string 'water' and 'natural' are never equal) > > Right, I only checked if mapserver returns an error... I didn't review the actual rendered image. Lars From armin.burger at gmx.net Sun Feb 8 06:05:00 2009 From: armin.burger at gmx.net (Armin Burger) Date: Sun, 08 Feb 2009 15:05:00 +0100 Subject: [mapserver-users] Regarding Apache In-Reply-To: <498BFB99.1030306@hostgis.com> References: <498BEEDC.5090300@hostgis.com> <498BFB99.1030306@hostgis.com> Message-ID: <498EE68C.5040004@gmx.net> My experience is the following: I'm using PHP MapScript since ~ 2 years as Apache DSO without noticing problems. Important is to use the Apache 'prefork MPM' version of Apache 2.+ (or Apache 1.3 which seems always 'prefork'). Using the threaded MPM ('worker') of Apache seems not to work correctly with Mapscript. And the PHP docs recommend the prefork MPM anyway. Apache on Windows seems always to be threaded, therefore PHP should be used only as CGI when Mapscript is required. Regards, Armin On 06/02/2009 09:58, Gregor at HostGIS wrote: > Amiya Patra wrote: >> *PHP/MapScript and PHP has a habit of causing Apache to effectively >> freeze* >> But how to solve that one...!!!!!!!!!!!!!!!!!!!!!!!! > > If you suspect that that's the problem with your server, do what > everyone else does: compile and run PHP as a CGI program, not as a DSO. > > It is unfortunate. By using PHP as a CGI, you fix that problem, but lose > a lot of the benefits of PHP as DSO, such as database connection pooling > and being able to use Zend Optimizer. But if you're using PHP/MapScript > that's just how it is. > From Tom.Kralidis at ec.gc.ca Sun Feb 8 15:44:36 2009 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Sun, 8 Feb 2009 18:44:36 -0500 Subject: [mapserver-users] Problems with MapScript and setProjection References: <498E57C1.4040707@datawranglers.com> Message-ID: I've added a small example at: http://trac.osgeo.org/mapserver/wiki/PHPMapscriptAddLayerQueryReproject Hope this helps. ..Tom -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org on behalf of Tim Wood Sent: Sat 07-Feb-09 22:55 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Problems with MapScript and setProjection I've been round and round with setProjection in MapScript and setProjection today. I either get the infamous blank image or the image returns in the same proportions as the original lat/long data. Proj seems to be (at least partially) working because if I forget something like +ellps=[blah blah], it throws an error. I'd like to look at a simple php mapscript example of creating a map, adding a layer, adding something to that layer (e.g. my a simple query against a lat/long shapefile) and then project that another way (tmerc, lcc, whatever). But, I have yet to find one. Can someone share a working example or know of one on the web? Tim Wood From nagal005 at umn.edu Sun Feb 8 17:14:41 2009 From: nagal005 at umn.edu (new2ms4w) Date: Sun, 8 Feb 2009 17:14:41 -0800 (PST) Subject: [mapserver-users] newbie mapserver question Message-ID: <1234142081467-2295097.post@n2.nabble.com> Hello Everyone, I've very recently started working on a project to display some moving objects on a road network in the map. I would like to (dynamically) display moving objects on a road map. I got the mapserver up and running on my machine and have read some documentation from the mapserver website. What I intend to do is add some points to a layer on top of the roads layer and keep changing their position so that they appear to be constant moving on the roads. Has anyone done this kind of stuff before. I would like to know if I'm going in the right direction... Also, can someone point to the Perl-Mapscript binaries for mapserver. I'm currently using MS4W software which doesn't include them. Thank you for your time. ~PN -- View this message in context: http://n2.nabble.com/newbie-mapserver-question-tp2295097p2295097.html Sent from the Mapserver - User mailing list archive at Nabble.com. From shanksje at yahoo.com Sun Feb 8 18:29:12 2009 From: shanksje at yahoo.com (Jennifer Shanks) Date: Sun, 8 Feb 2009 18:29:12 -0800 (PST) Subject: [mapserver-users] illegible labels - recommendations? Message-ID: <160128.33037.qm@web83408.mail.sp1.yahoo.com> Hello, I'm using ANGLE FOLLOW to draw labels that follow trails and rivers. In some cases, the labels are drawn around a tight curve and are illegible. Does anyone have any recommendations for improving legibility? Is there a way to increase spacing between letters? Are there certain fonts that other users have found to work well? Any thoughts would be much appreciated. Thanks, Jennifer From death_knight0911 at yahoo.com Mon Feb 9 00:41:18 2009 From: death_knight0911 at yahoo.com (MeLv1n wAuRaN) Date: Mon, 9 Feb 2009 00:41:18 -0800 (PST) Subject: [mapserver-users] can't display a very big .TIF Message-ID: <511443.7778.qm@web54204.mail.re2.yahoo.com> hi again, can someone help me out here, i can't display my my basemap because the size is too big. I've successfully merged my tiled TIFs if you still remember my previous post, but now my problem is i can't display them. Now the file's size is 1.03 GB with dimensions 16800 x 22000 can anyone help me display this raster file as my basemap? thank you so much for helping... -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at osgis.nl Mon Feb 9 00:43:21 2009 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Mon, 9 Feb 2009 09:43:21 +0100 (CET) Subject: [mapserver-users] can't display a very big .TIF In-Reply-To: <511443.7778.qm@web54204.mail.re2.yahoo.com> References: <511443.7778.qm@web54204.mail.re2.yahoo.com> Message-ID: <61158.145.50.39.11.1234169001.squirrel@webmail.hostingdiscounter.nl> Have you created overviews using gdaladdo? http://www.gdal.org/gdaladdo.html Best regards, Bart > hi again, > > can someone help me out here, i can't display my my basemap because the > size > is too big. I've successfully merged my tiled TIFs if you still remember > my previous > post, but now my problem is i can't display them. Now the file's size is > 1.03 GB > with dimensions 16800 x 22000 > > can anyone help me display this raster file as my basemap? > thank you so much for helping... > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From valemunoz at gmail.com Mon Feb 9 04:39:08 2009 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Mon, 9 Feb 2009 09:39:08 -0300 Subject: [mapserver-users] symbol problem Message-ID: <4b56aefe0902090439k61022ef3j9fcc2865580cf426@mail.gmail.com> Hi I have problems with displaying symbols,I can not give the correct orientation-... do you know why does not work with this configuration? attached image of my problem OUTPUTFORMAT *NAME png DRIVER "AGG/PNG"* MIMETYPE "image/png" IMAGEMODE RGB #RGBA transparente EXTENSION "png" FORMATOPTION "TRANSPARENT=OFF" FORMATOPTION "INTERLACE=ON" END LAYER NAME 'calle' MAXSCALE 5000 TYPE LINE DATA 'calle.shp' METADATA 'wms_title' 'calle' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END #LABELITEM 'ONEWAY' CLASS EXPRESSION ('[HWYLEVEL]' = '4' and '[ONEWAY]'='0') #TEXT (<->) #NAME 'calle' STYLE SYMBOL 'flecha_ambos' SIZE 13 ANGLE 0 #OUTLINECOLOR 161 189 196 #COLOR 0 0 0 END LABEL TYPE truetype FONT 'georgia' SIZE 6 ANTIALIAS TRUE COLOR 156 0 0 ANGLE FOLLOW #MINDISTANCE -1 #MINFEATURESIZE -1 OFFSET 5 0 FORCE FALSE POSITION CC BUFFER 10 PARTIALS FALSE END END END SYMBOL NAME "flecha_ambos" TYPE PIXMAP IMAGE "C:/ms4w/Apache/htdocs/mapFile/mapas/etc/icons/arrow_left_right.png" GAP -50 END RG -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: img_symbol.JPG Type: image/jpeg Size: 4076 bytes Desc: not available URL: From dgilby at chebucto.ns.ca Mon Feb 9 04:51:21 2009 From: dgilby at chebucto.ns.ca (Derek Gilby) Date: Mon, 09 Feb 2009 08:51:21 -0400 Subject: [mapserver-users] newbie mapserver question In-Reply-To: <1234142081467-2295097.post@n2.nabble.com> References: <1234142081467-2295097.post@n2.nabble.com> Message-ID: <499026C9.7080401@chebucto.ns.ca> Hi How are things? I know it is possible, although this website is for SVG it will give you an idea of what can be done, look at http://www.carto.net/ Derek new2ms4w wrote: > Hello Everyone, > > I've very recently started working on a project to display some moving > objects on a road network in the map. > I would like to (dynamically) display moving objects on a road map. > I got the mapserver up and running on my machine and have read some > documentation from the mapserver website. > What I intend to do is add some points to a layer on top of the roads layer > and keep changing their position so that they appear to be constant moving > on the roads. > Has anyone done this kind of stuff before. I would like to know if I'm going > in the right direction... > > Also, can someone point to the Perl-Mapscript binaries for mapserver. I'm > currently using MS4W software which doesn't include them. > > > Thank you for your time. > > ~PN > > > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.0.233 / Virus Database: 270.10.19/1940 - Release Date: 02/07/09 13:39:00 > -- Derek Gilby 30 Samuel Danial Drive Eastern Passage, NS B3G 1P7 902 404-2741 www.DerekGilby.org ** Propensity to think through/beyond the problem and provide possible options for a solution. ** From dmorissette at mapgears.com Mon Feb 9 07:01:47 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 09 Feb 2009 10:01:47 -0500 Subject: [mapserver-users] Re: Regarding Apache In-Reply-To: <498CD5DB.3030404@earthlink.net> References: <20090206153836.142D9E014FF@lists.osgeo.org> <498CD5DB.3030404@earthlink.net> Message-ID: <4990455B.8010806@mapgears.com> jim white wrote: > > I have tried recently switching between cgi and DSO. Our site uses PHP > MapScript 5.02 and what I have noticed is that with cgi it helps to > insert flush() and/or ob_flush() in the script. However, running as DSO > pages will not load and I have to comment out flush() and ob_flush(). > On which OS and with which version of PHP? Can you please be more specific on "pages will not load"? Did you get a 500 (internal server error), an empty response, or no response at all (browser hangs)? Any hints in Apache's error_log when that happens? Does this happen even if you do not use any function from php_mapscript.so (or do you know which MapScript function triggers the issue)? Finally, do you have a short script that reproduces this? Daniel -- Daniel Morissette http://www.mapgears.com/ From Steve.Lime at dnr.state.mn.us Mon Feb 9 07:20:03 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 09 Feb 2009 09:20:03 -0600 Subject: [mapserver-users] newbie mapserver question Message-ID: <498FF54D0200008F000207F3@co5.dnr.state.mn.us> Might want to look at OpenLayers too. Depending on the number of objects you might be able to represent the objects using OL vector features on top of a MapServer rendered roads layer. Or you could render the objects in a second layer (generated on the server) using MapServer and use OL to overlay them. You'd achieve better performance that way. Also, Perl/MapScript isn't available for Windows that I know of... Steve >>> new2ms4w 02/08/09 7:15 PM >>> Hello Everyone, I've very recently started working on a project to display some moving objects on a road network in the map. I would like to (dynamically) display moving objects on a road map. I got the mapserver up and running on my machine and have read some documentation from the mapserver website. What I intend to do is add some points to a layer on top of the roads layer and keep changing their position so that they appear to be constant moving on the roads. Has anyone done this kind of stuff before. I would like to know if I'm going in the right direction... Also, can someone point to the Perl-Mapscript binaries for mapserver. I'm currently using MS4W software which doesn't include them. Thank you for your time. ~PN -- View this message in context: http://n2.nabble.com/newbie-mapserver-question-tp2295097p2295097.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From dfwc at research.att.com Mon Feb 9 07:41:48 2009 From: dfwc at research.att.com (Donald F Caldwell) Date: Mon, 9 Feb 2009 10:41:48 -0500 Subject: [mapserver-users] line shapefiles Message-ID: <20090209154148.GA4580@research.att.com> i am having trouble showing line data on mapserver ########################################################################### # i create an 'arc' shapefile with one edge ########################################################################### shpcreate nysf arc shpadd nysf -73.905235290527344 40.707859039306641 + -122.380088806152344 37.795818328857422 dbfcreate nysf -s ecity 32 -s wcity 32 dbfadd nysf "New York" "San Francisco" ########################################################################### # i use this mapfile ########################################################################### MAP # Start of MAP object DEBUG ON SIZE 800 600 EXTENT -122.380089 37.795818 -73.905235 40.707859 IMAGECOLOR 255 255 255 UNITS DD LAYER NAME nysf TYPE LINE STATUS DEFAULT DATA nysf DEBUG 5 CLASS NAME 'edge' STYLE COLOR 0 0 0 END END END END # End of MAP object and map file ########################################################################### # i attempt to create an image with this line in it ########################################################################### shp2img -m nysf.map -i png -o nysf.png -s 800 600 -all_debug 9 ########################################################################### # result - no line # my question is - do these tools support lines? # if so, how do i make them visible? # thanks in advance From srph124 at yahoo.com Mon Feb 9 07:59:18 2009 From: srph124 at yahoo.com (Saka Royban) Date: Mon, 9 Feb 2009 07:59:18 -0800 (PST) Subject: [mapserver-users] CGI (FastCGI) mode versus Mapscript? Message-ID: <221095.51245.qm@web58201.mail.re3.yahoo.com> Hi all. i couldn't get good answers from web seach.? i read more and more about CGI,FastCGI and dynamic pages like ASP,JSP,.... and? i don't know why mapserver shouldbe? used in CGI or FastCGI mode. So, what is the difference of using mapserver in CGI mode or in dynamic pages via mapscript really, regarding performance and speed? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at ec.gc.ca Mon Feb 9 08:18:18 2009 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Mon, 9 Feb 2009 11:18:18 -0500 Subject: [mapserver-users] line shapefiles In-Reply-To: <20090209154148.GA4580@research.att.com> References: <20090209154148.GA4580@research.att.com> Message-ID: > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Donald F Caldwell > Sent: Monday, 09 February 2009 10:42 > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] line shapefiles > > > i am having trouble showing line data on mapserver > > ############################################################## > ############# > # i create an 'arc' shapefile with one edge > ############################################################## > ############# > > shpcreate nysf arc > shpadd nysf -73.905235290527344 40.707859039306641 + > -122.380088806152344 37.795818328857422 Looks like you're adding points here for two records > dbfcreate nysf -s ecity 32 -s wcity 32 > dbfadd nysf "New York" "San Francisco" > This adds one record to the dbf, not two. > # result - no line > # my question is - do these tools support lines? > # if so, how do i make them visible? $ shpcreate foo arc $ shpadd foo -75 45 -76 46 $ dbfcreate foo $ dfcreate foo -s id 32 -s desc 32 $ dbfadd foo "line 1" "mydesc" $ shpadd foo -80 33 -81 34 $ dbfadd foo "line 2" "mydesc2" $ ogrinfo -al foo.shp INFO: Open of `foo.shp' using driver `ESRI Shapefile' successful. Layer name: foo Geometry: Line String Feature Count: 2 Extent: (-81.000000, 33.000000) - (-75.000000, 46.000000) Layer SRS WKT: (unknown) id: String (32.0) desc: String (32.0) OGRFeature(foo):0 id (String) = line 1 desc (String) = mydesc LINESTRING (-75 45,-76 46) OGRFeature(foo):1 id (String) = line 2 desc (String) = mydesc2 LINESTRING (-80 33,-81 34) You might want to check out the docs at http://shapelib.maptools.org/shapelib-tools.html Hope this helps. ..Tom From David.Fawcett at state.mn.us Mon Feb 9 08:59:59 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Mon, 9 Feb 2009 10:59:59 -0600 Subject: [mapserver-users] symbol problem In-Reply-To: <4b56aefe0902090439k61022ef3j9fcc2865580cf426@mail.gmail.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA1FC@s-sp22.pca.state.mn.us> Valeria, It would be useful if you provided more information. What version of MapServer are you using? What were you expecting to see? Because you are setting your symbol angle to 0, I am guessing that you want all of the arrows to point to the top of the map. I am aware of a bug in AGG rendering where TrueType symbols are not corrrectly rotated (fixed in trunk), but I haven't seen a problem with pixmap symbols. In the symbol block of your layer, try commenting out the SIZE property. I think that you really just want your pixmap symbol to be displayed in its native size. Also, in your symbol definition at the end of your map file, try changing the value of GAP from -50 to 50. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Valeria Mu?oz Sent: Monday, February 09, 2009 6:39 AM To: mapserver-users Subject: [mapserver-users] symbol problem Hi I have problems with displaying symbols,I can not give the correct orientation-... do you know why does not work with this configuration? attached image of my problem OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGB #RGBA transparente EXTENSION "png" FORMATOPTION "TRANSPARENT=OFF" FORMATOPTION "INTERLACE=ON" END LAYER NAME 'calle' MAXSCALE 5000 TYPE LINE DATA 'calle.shp' METADATA 'wms_title' 'calle' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END #LABELITEM 'ONEWAY' CLASS EXPRESSION ('[HWYLEVEL]' = '4' and '[ONEWAY]'='0') #TEXT (<->) #NAME 'calle' STYLE SYMBOL 'flecha_ambos' SIZE 13 ANGLE 0 #OUTLINECOLOR 161 189 196 #COLOR 0 0 0 END LABEL TYPE truetype FONT 'georgia' SIZE 6 ANTIALIAS TRUE COLOR 156 0 0 ANGLE FOLLOW #MINDISTANCE -1 #MINFEATURESIZE -1 OFFSET 5 0 FORCE FALSE POSITION CC BUFFER 10 PARTIALS FALSE END END END SYMBOL NAME "flecha_ambos" TYPE PIXMAP IMAGE "C:/ms4w/Apache/htdocs/mapFile/mapas/etc/icons/arrow_left_right.png" GAP -50 END RG -------------- next part -------------- An HTML attachment was scrubbed... URL: From valemunoz at gmail.com Mon Feb 9 09:26:12 2009 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Mon, 9 Feb 2009 14:26:12 -0300 Subject: [mapserver-users] symbol problem In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA1FC@s-sp22.pca.state.mn.us> References: <4b56aefe0902090439k61022ef3j9fcc2865580cf426@mail.gmail.com> <6246727221874A4FB8D3F9BBC37D9BD5056DA1FC@s-sp22.pca.state.mn.us> Message-ID: <4b56aefe0902090926g3fcc3839m1f4780c37d8f23c6@mail.gmail.com> hi david.. If i change the "OUTPUTFORMAT"configuration to: OUTPUTFORMAT NAME gif DRIVER 'GD/GIF' MIMETYPE 'image/gif' #IMAGEMODE PC256 EXTENSION 'gif' END works... i thinks is a problem of AGG RG 2009/2/9 Fawcett, David > Valeria, > > It would be useful if you provided more information. What version of > MapServer are you using? What were you expecting to see? > Because you are setting your symbol angle to 0, I am guessing that you want > all of the arrows to point to the top of the map. > > I am aware of a bug in AGG rendering where TrueType symbols are not > corrrectly rotated (fixed in trunk), but I haven't seen a problem with > pixmap symbols. > > In the symbol block of your layer, try commenting out the SIZE property. I > think that you really just want your pixmap symbol to be displayed in its > native size. > > Also, in your symbol definition at the end of your map file, try changing > the value of GAP from -50 to 50. > > David. > > -----Original Message----- > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Valeria Mu?oz > *Sent:* Monday, February 09, 2009 6:39 AM > *To:* mapserver-users > *Subject:* [mapserver-users] symbol problem > > Hi > I have problems with displaying symbols,I can not give the correct > orientation-... do you know why does not work with this configuration? > attached image of my problem > > OUTPUTFORMAT > *NAME png > DRIVER "AGG/PNG"* > MIMETYPE "image/png" > IMAGEMODE RGB #RGBA transparente > EXTENSION "png" > FORMATOPTION "TRANSPARENT=OFF" > FORMATOPTION "INTERLACE=ON" > END > > LAYER > NAME 'calle' > MAXSCALE 5000 > TYPE LINE > DATA 'calle.shp' > METADATA > 'wms_title' 'calle' > END > STATUS DEFAULT > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > '' > END > #LABELITEM 'ONEWAY' > CLASS > EXPRESSION ('[HWYLEVEL]' = '4' and '[ONEWAY]'='0') > > #TEXT (<->) > #NAME 'calle' > STYLE > SYMBOL 'flecha_ambos' > SIZE 13 > ANGLE 0 > #OUTLINECOLOR 161 189 196 > #COLOR 0 0 0 > END > LABEL > TYPE truetype > FONT 'georgia' > SIZE 6 > ANTIALIAS TRUE > COLOR 156 0 0 > ANGLE FOLLOW > #MINDISTANCE -1 > #MINFEATURESIZE -1 > OFFSET 5 0 > FORCE FALSE > POSITION CC > BUFFER 10 > PARTIALS FALSE > END > END > END > > > SYMBOL > NAME "flecha_ambos" > TYPE PIXMAP > IMAGE > "C:/ms4w/Apache/htdocs/mapFile/mapas/etc/icons/arrow_left_right.png" > GAP -50 > END > > > RG > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From valemunoz at gmail.com Mon Feb 9 09:34:30 2009 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Mon, 9 Feb 2009 14:34:30 -0300 Subject: [mapserver-users] symbol problem In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA1FC@s-sp22.pca.state.mn.us> References: <4b56aefe0902090439k61022ef3j9fcc2865580cf426@mail.gmail.com> <6246727221874A4FB8D3F9BBC37D9BD5056DA1FC@s-sp22.pca.state.mn.us> Message-ID: <4b56aefe0902090934u39c23669l231ad64f59ef5d2b@mail.gmail.com> mapserver version is 5.0.2 . RG 2009/2/9 Fawcett, David > Valeria, > > It would be useful if you provided more information. What version of > MapServer are you using? What were you expecting to see? > Because you are setting your symbol angle to 0, I am guessing that you want > all of the arrows to point to the top of the map. > > I am aware of a bug in AGG rendering where TrueType symbols are not > corrrectly rotated (fixed in trunk), but I haven't seen a problem with > pixmap symbols. > > In the symbol block of your layer, try commenting out the SIZE property. I > think that you really just want your pixmap symbol to be displayed in its > native size. > > Also, in your symbol definition at the end of your map file, try changing > the value of GAP from -50 to 50. > > David. > > -----Original Message----- > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Valeria Mu?oz > *Sent:* Monday, February 09, 2009 6:39 AM > *To:* mapserver-users > *Subject:* [mapserver-users] symbol problem > > Hi > I have problems with displaying symbols,I can not give the correct > orientation-... do you know why does not work with this configuration? > attached image of my problem > > OUTPUTFORMAT > *NAME png > DRIVER "AGG/PNG"* > MIMETYPE "image/png" > IMAGEMODE RGB #RGBA transparente > EXTENSION "png" > FORMATOPTION "TRANSPARENT=OFF" > FORMATOPTION "INTERLACE=ON" > END > > LAYER > NAME 'calle' > MAXSCALE 5000 > TYPE LINE > DATA 'calle.shp' > METADATA > 'wms_title' 'calle' > END > STATUS DEFAULT > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > '' > END > #LABELITEM 'ONEWAY' > CLASS > EXPRESSION ('[HWYLEVEL]' = '4' and '[ONEWAY]'='0') > > #TEXT (<->) > #NAME 'calle' > STYLE > SYMBOL 'flecha_ambos' > SIZE 13 > ANGLE 0 > #OUTLINECOLOR 161 189 196 > #COLOR 0 0 0 > END > LABEL > TYPE truetype > FONT 'georgia' > SIZE 6 > ANTIALIAS TRUE > COLOR 156 0 0 > ANGLE FOLLOW > #MINDISTANCE -1 > #MINFEATURESIZE -1 > OFFSET 5 0 > FORCE FALSE > POSITION CC > BUFFER 10 > PARTIALS FALSE > END > END > END > > > SYMBOL > NAME "flecha_ambos" > TYPE PIXMAP > IMAGE > "C:/ms4w/Apache/htdocs/mapFile/mapas/etc/icons/arrow_left_right.png" > GAP -50 > END > > > RG > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Mon Feb 9 09:34:50 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Mon, 9 Feb 2009 11:34:50 -0600 Subject: [mapserver-users] symbol problem In-Reply-To: <4b56aefe0902090926g3fcc3839m1f4780c37d8f23c6@mail.gmail.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA1FE@s-sp22.pca.state.mn.us> My assumption was that the problem was likely only with AGG rendering. Please try the suggestions that I made in my last message and let me know how they work, particularly setting the GAP value to a positive number. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Valeria Mu?oz Sent: Monday, February 09, 2009 11:26 AM To: Fawcett, David Cc: mapserver-users Subject: Re: [mapserver-users] symbol problem hi david.. If i change the "OUTPUTFORMAT"configuration to: OUTPUTFORMAT NAME gif DRIVER 'GD/GIF' MIMETYPE 'image/gif' #IMAGEMODE PC256 EXTENSION 'gif' END works... i thinks is a problem of AGG RG 2009/2/9 Fawcett, David Valeria, It would be useful if you provided more information. What version of MapServer are you using? What were you expecting to see? Because you are setting your symbol angle to 0, I am guessing that you want all of the arrows to point to the top of the map. I am aware of a bug in AGG rendering where TrueType symbols are not corrrectly rotated (fixed in trunk), but I haven't seen a problem with pixmap symbols. In the symbol block of your layer, try commenting out the SIZE property. I think that you really just want your pixmap symbol to be displayed in its native size. Also, in your symbol definition at the end of your map file, try changing the value of GAP from -50 to 50. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Valeria Mu?oz Sent: Monday, February 09, 2009 6:39 AM To: mapserver-users Subject: [mapserver-users] symbol problem Hi I have problems with displaying symbols,I can not give the correct orientation-... do you know why does not work with this configuration? attached image of my problem OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGB #RGBA transparente EXTENSION "png" FORMATOPTION "TRANSPARENT=OFF" FORMATOPTION "INTERLACE=ON" END LAYER NAME 'calle' MAXSCALE 5000 TYPE LINE DATA 'calle.shp' METADATA 'wms_title' 'calle' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END #LABELITEM 'ONEWAY' CLASS EXPRESSION ('[HWYLEVEL]' = '4' and '[ONEWAY]'='0') #TEXT (<->) #NAME 'calle' STYLE SYMBOL 'flecha_ambos' SIZE 13 ANGLE 0 #OUTLINECOLOR 161 189 196 #COLOR 0 0 0 END LABEL TYPE truetype FONT 'georgia' SIZE 6 ANTIALIAS TRUE COLOR 156 0 0 ANGLE FOLLOW #MINDISTANCE -1 #MINFEATURESIZE -1 OFFSET 5 0 FORCE FALSE POSITION CC BUFFER 10 PARTIALS FALSE END END END SYMBOL NAME "flecha_ambos" TYPE PIXMAP IMAGE "C:/ms4w/Apache/htdocs/mapFile/mapas/etc/icons/arrow_left_right.png" GAP -50 END RG -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Mon Feb 9 09:48:26 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 9 Feb 2009 18:48:26 +0100 Subject: [mapserver-users] symbol problem In-Reply-To: <4b56aefe0902090934u39c23669l231ad64f59ef5d2b@mail.gmail.com> References: <4b56aefe0902090439k61022ef3j9fcc2865580cf426@mail.gmail.com> <6246727221874A4FB8D3F9BBC37D9BD5056DA1FC@s-sp22.pca.state.mn.us> <4b56aefe0902090934u39c23669l231ad64f59ef5d2b@mail.gmail.com> Message-ID: upgrading to 5.2.x should fix this. I'm surprised you're having this problem again as you posted the same message in december and noted that you had solved the problem. regards, -- thomas On Mon, Feb 9, 2009 at 18:34, Valeria Mu?oz wrote: > mapserver version is 5.0.2 . > > RG > > 2009/2/9 Fawcett, David >> >> Valeria, >> >> It would be useful if you provided more information. What version of >> MapServer are you using? What were you expecting to see? >> Because you are setting your symbol angle to 0, I am guessing that you >> want all of the arrows to point to the top of the map. >> >> I am aware of a bug in AGG rendering where TrueType symbols are not >> corrrectly rotated (fixed in trunk), but I haven't seen a problem with >> pixmap symbols. >> >> In the symbol block of your layer, try commenting out the SIZE property. >> I think that you really just want your pixmap symbol to be displayed in its >> native size. >> >> Also, in your symbol definition at the end of your map file, try changing >> the value of GAP from -50 to 50. >> >> David. >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Valeria Mu?oz >> Sent: Monday, February 09, 2009 6:39 AM >> To: mapserver-users >> Subject: [mapserver-users] symbol problem >> >> Hi >> I have problems with displaying symbols,I can not give the correct >> orientation-... do you know why does not work with this configuration? >> attached image of my problem >> >> OUTPUTFORMAT >> NAME png >> DRIVER "AGG/PNG" >> MIMETYPE "image/png" >> IMAGEMODE RGB #RGBA transparente >> EXTENSION "png" >> FORMATOPTION "TRANSPARENT=OFF" >> FORMATOPTION "INTERLACE=ON" >> END >> LAYER >> NAME 'calle' >> MAXSCALE 5000 >> TYPE LINE >> DATA 'calle.shp' >> METADATA >> 'wms_title' 'calle' >> END >> STATUS DEFAULT >> TRANSPARENCY 100 >> PROJECTION >> 'proj=longlat' >> 'ellps=WGS84' >> 'datum=WGS84' >> 'no_defs' >> '' >> END >> #LABELITEM 'ONEWAY' >> CLASS >> EXPRESSION ('[HWYLEVEL]' = '4' and '[ONEWAY]'='0') >> >> #TEXT (<->) >> #NAME 'calle' >> STYLE >> SYMBOL 'flecha_ambos' >> SIZE 13 >> ANGLE 0 >> #OUTLINECOLOR 161 189 196 >> #COLOR 0 0 0 >> END >> LABEL >> TYPE truetype >> FONT 'georgia' >> SIZE 6 >> ANTIALIAS TRUE >> COLOR 156 0 0 >> ANGLE FOLLOW >> #MINDISTANCE -1 >> #MINFEATURESIZE -1 >> OFFSET 5 0 >> FORCE FALSE >> POSITION CC >> BUFFER 10 >> PARTIALS FALSE >> END >> END >> END >> >> >> SYMBOL >> NAME "flecha_ambos" >> TYPE PIXMAP >> IMAGE >> "C:/ms4w/Apache/htdocs/mapFile/mapas/etc/icons/arrow_left_right.png" >> GAP -50 >> END >> >> >> RG > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From valemunoz at gmail.com Mon Feb 9 09:50:45 2009 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Mon, 9 Feb 2009 14:50:45 -0300 Subject: [mapserver-users] symbol problem In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA1FE@s-sp22.pca.state.mn.us> References: <4b56aefe0902090926g3fcc3839m1f4780c37d8f23c6@mail.gmail.com> <6246727221874A4FB8D3F9BBC37D9BD5056DA1FE@s-sp22.pca.state.mn.us> Message-ID: <4b56aefe0902090950y6418f04fs4c7923ebe36e789b@mail.gmail.com> David I make the changes and does not works RG 2009/2/9 Fawcett, David > My assumption was that the problem was likely only with AGG rendering. > > Please try the suggestions that I made in my last message and let me know > how they work, particularly setting the GAP value to a positive number. > > David. > > -----Original Message----- > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Valeria Mu?oz > *Sent:* Monday, February 09, 2009 11:26 AM > *To:* Fawcett, David > *Cc:* mapserver-users > *Subject:* Re: [mapserver-users] symbol problem > > hi david.. > > If i change the "OUTPUTFORMAT"configuration to: > OUTPUTFORMAT > NAME gif > DRIVER 'GD/GIF' > MIMETYPE 'image/gif' > #IMAGEMODE PC256 > EXTENSION 'gif' > END > > works... i thinks is a problem of AGG > > RG > > 2009/2/9 Fawcett, David > >> Valeria, >> >> It would be useful if you provided more information. What version of >> MapServer are you using? What were you expecting to see? >> Because you are setting your symbol angle to 0, I am guessing that you >> want all of the arrows to point to the top of the map. >> >> I am aware of a bug in AGG rendering where TrueType symbols are not >> corrrectly rotated (fixed in trunk), but I haven't seen a problem with >> pixmap symbols. >> >> In the symbol block of your layer, try commenting out the SIZE property. >> I think that you really just want your pixmap symbol to be displayed in its >> native size. >> >> Also, in your symbol definition at the end of your map file, try changing >> the value of GAP from -50 to 50. >> >> David. >> >> -----Original Message----- >> *From:* mapserver-users-bounces at lists.osgeo.org [mailto: >> mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Valeria Mu?oz >> *Sent:* Monday, February 09, 2009 6:39 AM >> *To:* mapserver-users >> *Subject:* [mapserver-users] symbol problem >> >> Hi >> I have problems with displaying symbols,I can not give the correct >> orientation-... do you know why does not work with this configuration? >> attached image of my problem >> >> OUTPUTFORMAT >> *NAME png >> DRIVER "AGG/PNG"* >> MIMETYPE "image/png" >> IMAGEMODE RGB #RGBA transparente >> EXTENSION "png" >> FORMATOPTION "TRANSPARENT=OFF" >> FORMATOPTION "INTERLACE=ON" >> END >> >> LAYER >> NAME 'calle' >> MAXSCALE 5000 >> TYPE LINE >> DATA 'calle.shp' >> METADATA >> 'wms_title' 'calle' >> END >> STATUS DEFAULT >> TRANSPARENCY 100 >> PROJECTION >> 'proj=longlat' >> 'ellps=WGS84' >> 'datum=WGS84' >> 'no_defs' >> '' >> END >> #LABELITEM 'ONEWAY' >> CLASS >> EXPRESSION ('[HWYLEVEL]' = '4' and '[ONEWAY]'='0') >> >> #TEXT (<->) >> #NAME 'calle' >> STYLE >> SYMBOL 'flecha_ambos' >> SIZE 13 >> ANGLE 0 >> #OUTLINECOLOR 161 189 196 >> #COLOR 0 0 0 >> END >> LABEL >> TYPE truetype >> FONT 'georgia' >> SIZE 6 >> ANTIALIAS TRUE >> COLOR 156 0 0 >> ANGLE FOLLOW >> #MINDISTANCE -1 >> #MINFEATURESIZE -1 >> OFFSET 5 0 >> FORCE FALSE >> POSITION CC >> BUFFER 10 >> PARTIALS FALSE >> END >> END >> END >> >> >> SYMBOL >> NAME "flecha_ambos" >> TYPE PIXMAP >> IMAGE >> "C:/ms4w/Apache/htdocs/mapFile/mapas/etc/icons/arrow_left_right.png" >> GAP -50 >> END >> >> >> RG >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Feb 9 09:52:08 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 09 Feb 2009 12:52:08 -0500 Subject: [mapserver-users] symbol problem In-Reply-To: References: <4b56aefe0902090439k61022ef3j9fcc2865580cf426@mail.gmail.com> <6246727221874A4FB8D3F9BBC37D9BD5056DA1FC@s-sp22.pca.state.mn.us> <4b56aefe0902090934u39c23669l231ad64f59ef5d2b@mail.gmail.com> Message-ID: <49906D48.4090501@gatewaygeomatics.com> thomas bonfort wrote: > upgrading to 5.2.x should fix this. ms4w version 2.3.1 is what you would need then. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From valemunoz at gmail.com Mon Feb 9 09:52:13 2009 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Mon, 9 Feb 2009 14:52:13 -0300 Subject: [mapserver-users] symbol problem In-Reply-To: References: <4b56aefe0902090439k61022ef3j9fcc2865580cf426@mail.gmail.com> <6246727221874A4FB8D3F9BBC37D9BD5056DA1FC@s-sp22.pca.state.mn.us> <4b56aefe0902090934u39c23669l231ad64f59ef5d2b@mail.gmail.com> Message-ID: <4b56aefe0902090952u35de7809td78b198e0d829501@mail.gmail.com> hi thomas in december i did not use AGG/PNG configuration. now my problem is "AGG/PNG " RG 2009/2/9 thomas bonfort > upgrading to 5.2.x should fix this. > I'm surprised you're having this problem again as you posted the same > message in december and noted that you had solved the problem. > > regards, > > -- > thomas > > > On Mon, Feb 9, 2009 at 18:34, Valeria Mu?oz wrote: > > mapserver version is 5.0.2 . > > > > RG > > > > 2009/2/9 Fawcett, David > >> > >> Valeria, > >> > >> It would be useful if you provided more information. What version of > >> MapServer are you using? What were you expecting to see? > >> Because you are setting your symbol angle to 0, I am guessing that you > >> want all of the arrows to point to the top of the map. > >> > >> I am aware of a bug in AGG rendering where TrueType symbols are not > >> corrrectly rotated (fixed in trunk), but I haven't seen a problem with > >> pixmap symbols. > >> > >> In the symbol block of your layer, try commenting out the SIZE property. > >> I think that you really just want your pixmap symbol to be displayed in > its > >> native size. > >> > >> Also, in your symbol definition at the end of your map file, try > changing > >> the value of GAP from -50 to 50. > >> > >> David. > >> > >> -----Original Message----- > >> From: mapserver-users-bounces at lists.osgeo.org > >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Valeria > Mu?oz > >> Sent: Monday, February 09, 2009 6:39 AM > >> To: mapserver-users > >> Subject: [mapserver-users] symbol problem > >> > >> Hi > >> I have problems with displaying symbols,I can not give the correct > >> orientation-... do you know why does not work with this configuration? > >> attached image of my problem > >> > >> OUTPUTFORMAT > >> NAME png > >> DRIVER "AGG/PNG" > >> MIMETYPE "image/png" > >> IMAGEMODE RGB #RGBA transparente > >> EXTENSION "png" > >> FORMATOPTION "TRANSPARENT=OFF" > >> FORMATOPTION "INTERLACE=ON" > >> END > >> LAYER > >> NAME 'calle' > >> MAXSCALE 5000 > >> TYPE LINE > >> DATA 'calle.shp' > >> METADATA > >> 'wms_title' 'calle' > >> END > >> STATUS DEFAULT > >> TRANSPARENCY 100 > >> PROJECTION > >> 'proj=longlat' > >> 'ellps=WGS84' > >> 'datum=WGS84' > >> 'no_defs' > >> '' > >> END > >> #LABELITEM 'ONEWAY' > >> CLASS > >> EXPRESSION ('[HWYLEVEL]' = '4' and '[ONEWAY]'='0') > >> > >> #TEXT (<->) > >> #NAME 'calle' > >> STYLE > >> SYMBOL 'flecha_ambos' > >> SIZE 13 > >> ANGLE 0 > >> #OUTLINECOLOR 161 189 196 > >> #COLOR 0 0 0 > >> END > >> LABEL > >> TYPE truetype > >> FONT 'georgia' > >> SIZE 6 > >> ANTIALIAS TRUE > >> COLOR 156 0 0 > >> ANGLE FOLLOW > >> #MINDISTANCE -1 > >> #MINFEATURESIZE -1 > >> OFFSET 5 0 > >> FORCE FALSE > >> POSITION CC > >> BUFFER 10 > >> PARTIALS FALSE > >> END > >> END > >> END > >> > >> > >> SYMBOL > >> NAME "flecha_ambos" > >> TYPE PIXMAP > >> IMAGE > >> "C:/ms4w/Apache/htdocs/mapFile/mapas/etc/icons/arrow_left_right.png" > >> GAP -50 > >> END > >> > >> > >> RG > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From valemunoz at gmail.com Mon Feb 9 10:10:39 2009 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Mon, 9 Feb 2009 15:10:39 -0300 Subject: [mapserver-users] symbol problem In-Reply-To: <49906D48.4090501@gatewaygeomatics.com> References: <4b56aefe0902090439k61022ef3j9fcc2865580cf426@mail.gmail.com> <6246727221874A4FB8D3F9BBC37D9BD5056DA1FC@s-sp22.pca.state.mn.us> <4b56aefe0902090934u39c23669l231ad64f59ef5d2b@mail.gmail.com> <49906D48.4090501@gatewaygeomatics.com> Message-ID: <4b56aefe0902091010q33c129f1w100bb070e38f92b8@mail.gmail.com> thanks for everything. i changed my mapserver version to 5.2.x and works. RG 2009/2/9 Jeff McKenna > thomas bonfort wrote: > >> upgrading to 5.2.x should fix this. >> > > ms4w version 2.3.1 is what you would need then. > > -jeff > > > > > -- > Jeff McKenna > FOSS4G Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From accounts.nabble at datawranglers.com Mon Feb 9 10:19:00 2009 From: accounts.nabble at datawranglers.com (Tim Wood) Date: Mon, 09 Feb 2009 11:19:00 -0700 Subject: [mapserver-users] Problems with MapScript and setProjection In-Reply-To: References: <498E57C1.4040707@datawranglers.com> Message-ID: <49907394.3030009@datawranglers.com> Tom, that PPT linked from your example is filled with good stuff. Anyway, I took your example and did some minor changes to make it work with mapscript as Fedora installs it and my data. Then I added the ability to turn projection on & off. With the projection off, everything works great. But, I'm still getting a blank image with the projection turned on. If anyone has any pointers on what's wrong with the code (below) I'd appreciate it. Tim Wood --------------------------------------------------------------------- setExtent( $ex0, $ex1, $ex2, $ex3 ); // Set the shapepath $map->set( 'shapepath', $shape_path ); // Set the output format and size $map->selectOutputFormat( 'png' ); $map->setSize( $output_width, $output_height ); // add new layer to map $layer = ms_newLayerObj($map); $layer->set("name", "foo"); $layer->set("status", MS_ON); $layer->set("data", $shape_file ); $layer->set("type", MS_SHAPE_POLYGON ); $layer->setProjection( $shape_file_projection ); // This line hides a bunch of errors that appear iff $output_projection is set $layer->set("template", "ttt"); $layer->set("dump", "true"); // add new class to new layer $class = ms_newClassObj($layer); $class->set("name", "foo"); // add new style to new class $style = ms_newStyleObj($class); $style->color->setRGB(255, 0, 0); $style->outlinecolor->setRGB( 128,128,128 ); if( $output_projection != '' ) { // Project and Draw // create new rect to query against the new layer $rect = ms_newRectObj(); $rect->setExtent( $ex0, $ex1, $ex2, $ex3 ); // query new layer $layer->queryByRect( $rect ); $map->queryByRect( $rect ); // set projection of output map $map->setProjection($output_projection, MS_TRUE); // draw $image = $map->drawQuery(); } else { // Just draw the map // draw $image = $map->draw(); } // Save the image $image->saveImage( $output_file_path ); ?> --------------------------------------------------------------------- Kralidis,Tom [Ontario] wrote: > I've added a small example at: > > http://trac.osgeo.org/mapserver/wiki/PHPMapscriptAddLayerQueryReproject > > Hope this helps. > > ..Tom > > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org on behalf of Tim Wood > Sent: Sat 07-Feb-09 22:55 > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Problems with MapScript and setProjection > > I've been round and round with setProjection in MapScript and > setProjection today. I either get the infamous blank image or the image > returns in the same proportions as the original lat/long data. Proj > seems to be (at least partially) working because if I forget something > like +ellps=[blah blah], it throws an error. > > I'd like to look at a simple php mapscript example of creating a map, > adding a layer, adding something to that layer (e.g. my a simple query > against a lat/long shapefile) and then project that another way (tmerc, > lcc, whatever). But, I have yet to find one. Can someone share a working > example or know of one on the web? > > Tim Wood > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Feb 9 13:11:08 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 09 Feb 2009 16:11:08 -0500 Subject: [mapserver-users] newbie mapserver question In-Reply-To: <1234142081467-2295097.post@n2.nabble.com> References: <1234142081467-2295097.post@n2.nabble.com> Message-ID: <49909BEC.4040106@gatewaygeomatics.com> new2ms4w wrote: > > Also, can someone point to the Perl-Mapscript binaries for mapserver. I'm > currently using MS4W software which doesn't include them. You might also want to glance at the PerlMapScript wiki pages: http://trac.osgeo.org/mapserver/wiki/PerlMapScript -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From bamerbalazs at gmail.com Mon Feb 9 13:10:21 2009 From: bamerbalazs at gmail.com (=?UTF-8?B?QmFsw6F6cyBCw6FtZXI=?=) Date: Mon, 9 Feb 2009 22:10:21 +0100 Subject: [mapserver-users] GetFeatureInfo problem Message-ID: Hi All, My OS is Ubuntu 8.10, Mapbender is 2.5, WMS is Mapserver 5.2.1 which seems all right, I have an experimental MapBender GUI: http://att-it.homelinux.net:22080/mapbender/ user: mapbenderlist, pass: =]-[0p For non-Mapbender users, feature info is requested with the 'i' button for any feature. Feature info function hasn't worked for me yet. When I try red features (layer szerkesztheto), it seems OK but no info shown at all. Same for the point layer. For green ones (csakolv), an error message is returned: msOracleSpatialLayerGetShape(): OracleSpatial error. Error: ORA-00932: inconsistent datatypes: expected %s got %s . Query statement: SELECT BLOAZ, TAJOL, MERAR, ORT1X, ORT1Y, ORT2X, ORT2Y, KGEOM, TGEOM, SORSZAM, bgeom FROM blokk_a0 WHERE sorszam = 26 .Check your data statement. Which, however, works in SQL Developer. The above message is shown also in Mapserver log. You can see my map settings here: http://att-it.homelinux.net:22080/cgi-bin/spatial?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities What goes wrong for the error and the nothing-shown case? thank you in advance. Best regards: Bal?zs B?mer From gregor at hostgis.com Mon Feb 9 14:36:37 2009 From: gregor at hostgis.com (Gregor at HostGIS) Date: Mon, 09 Feb 2009 14:36:37 -0800 Subject: [mapserver-users] Clipping out unprojectable area? Message-ID: <4990AFF5.1010107@hostgis.com> Hey guys. This picture says the first 1000 words: http://maps.hostgis.com/gregor/cg-esri-compare.jpg In this case it's a UTM projection for South America, and they're zoomed out inappropriately, so the rest of the world looks ugly. The client's request, is whether MapServer has a mechanism for clipping out the area of the requested bbox which would look too gnarly given the projection. The application is in PHP and uses PostGIS, so solutions at either of those levels would also be welcome. -- Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ System Administrator, Lead Programmer HostGIS development & hosting services, http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From Bob.Bistrais at maine.gov Mon Feb 9 14:48:41 2009 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Mon, 9 Feb 2009 17:48:41 -0500 Subject: [mapserver-users] Problem with spatial query Message-ID: <4EFF8BB964547748A07CA32961810C0412C48368@SOM-TEAQASMAIL1.som.w2k.state.me.us> This message is also posted to the Ka-Map users board, but I'm also posting here because it pertains to PHP MapScript... I've been customizing some of the Ka-Map Search code. These are modifications of the kaSearch .php and .js. I have a tool that allows a user to enter a parcel number into a text box, and zoom to that parcel automatically. That part of the process works. I can get the extent of the selected parcel and the map will zoom to it. Here's where I'm having trouble- now that I have the extent of the desired parcel, I would like to automatically run a query a zoning layer, and return the zoning polygons that the selected parcel intersects. I tried Query by Point, Rectangle, and Shape, I'm sure the coordinates area valid, but when I run the tool, it returns zone polygons from an area far away from where I am querying. It doesn't even seem to matter what parcel I use for input- it always returns the same zoning polygons. As a matter of fact, it looks as though it's returning results for the same poly, over and over again. In any case, it's definitely far from the selected parcel polygon. I've pasted some code below. Does anyone have any suggestions? Thanks, Bob This code is part of my kaSearchParcel.php, which selects a parcel and zooms to it. The code below is the query that tries to return the intersecting zoning polygons: $zoneLayer = $oMap->getLayer(3); //Layer 3 is the zoning data $oMap->preparequery(); $results = @$oMap->queryByShape($oShape); //$oShape is the parcel that was selected earlier in the php file if ($results == MS_SUCCESS){ $r = $zoneLayer->getNumResults(); for ($d=0; $d<$r; $d++) { $zoneLayer->open(); $result = $zoneLayer->getResult(0); echo $r . " results found
"; $shape = $zoneLayer->getFeature($result->shapeIndex, $result->tileindex); foreach ($shape->values as $key => $value) { echo $key. " = " .$value . "index =" .$result->shapeIndex . "
"; } } -------------- next part -------------- An HTML attachment was scrubbed... URL: From crschmidt at metacarta.com Mon Feb 9 15:40:47 2009 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Mon, 9 Feb 2009 18:40:47 -0500 Subject: [mapserver-users] Clipping out unprojectable area? In-Reply-To: <4990AFF5.1010107@hostgis.com> References: <4990AFF5.1010107@hostgis.com> Message-ID: <20090209234047.GF25534@metacarta.com> On Mon, Feb 09, 2009 at 02:36:37PM -0800, Gregor at HostGIS wrote: > Hey guys. This picture says the first 1000 words: > http://maps.hostgis.com/gregor/cg-esri-compare.jpg > > In this case it's a UTM projection for South America, and they're zoomed > out inappropriately, so the rest of the world looks ugly. > > The client's request, is whether MapServer has a mechanism for clipping > out the area of the requested bbox which would look too gnarly given the > projection. > > The application is in PHP and uses PostGIS, so solutions at either of > those levels would also be welcome. Alter your geometry DATA selection to be ST_Union(geom, bbox_of_projection)? Regards, -- Christopher Schmidt MetaCarta From gregor at hostgis.com Mon Feb 9 16:20:47 2009 From: gregor at hostgis.com (Gregor at HostGIS) Date: Mon, 09 Feb 2009 16:20:47 -0800 Subject: [mapserver-users] Clipping out unprojectable area? In-Reply-To: <20090209234047.GF25534@metacarta.com> References: <4990AFF5.1010107@hostgis.com> <20090209234047.GF25534@metacarta.com> Message-ID: <4990C85F.4030101@hostgis.com> > Alter your geometry DATA selection to be ST_Union(geom, > bbox_of_projection)? Not sure I get you. I see that union would trim to a square. What would be the effective box of a given projection? -- Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ System Administrator, Lead Programmer HostGIS development & hosting services, http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From crschmidt at metacarta.com Mon Feb 9 17:04:27 2009 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Mon, 9 Feb 2009 20:04:27 -0500 Subject: [mapserver-users] Clipping out unprojectable area? In-Reply-To: <4990C85F.4030101@hostgis.com> References: <4990AFF5.1010107@hostgis.com> <20090209234047.GF25534@metacarta.com> <4990C85F.4030101@hostgis.com> Message-ID: <20090210010427.GH25534@metacarta.com> On Mon, Feb 09, 2009 at 04:20:47PM -0800, Gregor at HostGIS wrote: > >Alter your geometry DATA selection to be ST_Union(geom, > >bbox_of_projection)? > > Not sure I get you. I see that union would trim to a square. What would > be the effective box of a given projection? Depends n the projection. The data is stored in the EPSG database, and exposed in a human readable form on spatialreference.org: if you need to support any projection, then you'll have to keep a copy of the epsg database handy for yourself. Regards, -- Christopher Schmidt MetaCarta From boesiii at yahoo.com Mon Feb 9 19:07:45 2009 From: boesiii at yahoo.com (boesiii) Date: Mon, 9 Feb 2009 19:07:45 -0800 (PST) Subject: [mapserver-users] Map File for Open Street Map symbology In-Reply-To: <495D1971.5080008@hostgis.com> References: <8CB3A44D5B3BBEA-DDC-277B@WEBMAIL-MB17.sysops.aol.com> <495D1971.5080008@hostgis.com> Message-ID: <1234235265790-2300742.post@n2.nabble.com> Gregor Mosheh wrote: > > Ooh, that'd be neat. If so, can someone post it to the Symbology > Exchange pages of the website's wiki? We do have one "google-style > streets" posting up there now. > Gregor, I would like the find the "google style" and I looked on the Symbology examples page and couldn't find it. Could you point me in the right direction. -- View this message in context: http://n2.nabble.com/Map-File-for-Open-Street-Map-symbology-tp2099050p2300742.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Schoenhammer.Herbert at Regensburg.de Mon Feb 9 22:25:32 2009 From: Schoenhammer.Herbert at Regensburg.de (=?iso-8859-1?Q?Sch=F6nhammer=2C_Herbert?=) Date: Tue, 10 Feb 2009 07:25:32 +0100 Subject: AW: [mapserver-users] GetFeatureInfo problem In-Reply-To: Message-ID: Hi, I observed a similar problem changing from mapserver 4.10.x to mapserver 5.x.x. I got the identical error message, but I'm using postgis. Defining a wfs, you must define a DATA statement. In your case something like this: DATA 'KGEOM(?) from (SELECT BLOAZ, TAJOL, MERAR, ORT1X, ORT1Y, ORT2X, ORT2Y, KGEOM, TGEOM, SORSZAM, bgeom FROM blokk_a0 WHERE sorszam = 26 as foo using unique xxx using SRID=yyyy' In my case, the error occured, if the datatype of attribute xxx was a character datatype (like character varying). This is allowed by mapserver 4.x.x. Mapserver 5.x.x expects a numeric datatype (int or serial or something like this) as datatype for the fid attribute. So in my case changing the datatype of the fid attribute solved the problem. Perhaps this might ba a solution for you too. regards Herbert >-----Urspr?ngliche Nachricht----- >Von: mapserver-users-bounces at lists.osgeo.org >[mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag >von Bal?zs B?mer >Gesendet: Montag, 9. Februar 2009 22:10 >An: mapserver-users at lists.osgeo.org >Betreff: [mapserver-users] GetFeatureInfo problem > > >Hi All, > >My OS is Ubuntu 8.10, Mapbender is 2.5, WMS is Mapserver 5.2.1 which >seems all right, I have an experimental MapBender GUI: >http://att-it.homelinux.net:22080/mapbender/ >user: mapbenderlist, pass: =]-[0p >For non-Mapbender users, feature info is requested with the 'i' button >for any feature. > >Feature info function hasn't worked for me yet. When I try red >features (layer szerkesztheto), it seems OK but no info shown at all. >Same for the point layer. >For green ones (csakolv), an error message is returned: >msOracleSpatialLayerGetShape(): OracleSpatial error. Error: ORA-00932: >inconsistent datatypes: expected %s got %s > . Query statement: SELECT BLOAZ, TAJOL, MERAR, ORT1X, ORT1Y, ORT2X, >ORT2Y, KGEOM, TGEOM, SORSZAM, bgeom FROM blokk_a0 WHERE sorszam = 26 >.Check your data statement. >Which, however, works in SQL Developer. The above message is shown >also in Mapserver log. You can see my map settings here: >http://att-it.homelinux.net:22080/cgi-bin/spatial?SERVICE=WMS&V ERSION=1.1.1&REQUEST=GetCapabilities What goes wrong for the error and the nothing-shown case? thank you in advance. Best regards: Bal?zs B?mer _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From bgiv at GMX.DE Tue Feb 10 00:26:06 2009 From: bgiv at GMX.DE (wolfgang) Date: Tue, 10 Feb 2009 00:26:06 -0800 (PST) Subject: [mapserver-users] Map File for Open Street Map symbology In-Reply-To: References: <8CB3A44D5B3BBEA-DDC-277B@WEBMAIL-MB17.sysops.aol.com> <495D1971.5080008@hostgis.com> Message-ID: <1234254366294-2301421.post@n2.nabble.com> thomas bonfort wrote: > > http://code.google.com/p/mapserver-utils/source/browse/trunk/ > > you'll need the code from the mapserver graphics sandbox (rev 8254 is > preferred as it doesn't have the cairo code in it yet) > > regards, > thomas > Great work, Thomas! Unfortunately, I am having difficulties to display the map if, and only if, in the following section of the mapfile I remove the # sign. This will crash mapserver with a memory access error. Any idea? I am using mapserver from svn. CLASS EXPRESSION ('[highway]'='footway') MAXSCALEDENOM 60000 STYLE MAXSCALEDENOM 20000 SYMBOL "butt" WIDTH 3 MINWIDTH 0.5 MAXWIDTH 2 OUTLINEWIDTH 1.5 OUTLINECOLOR 128 128 128 END STYLE WIDTH 3 MINWIDTH 0.5 MAXWIDTH 2 #OUTLINEWIDTH 1.4 OUTLINECOLOR 255 255 255 END STYLE SYMBOL "path" WIDTH 3 MINWIDTH 0.5 MAXWIDTH 2 COLOR 128 128 128 END END regards, wolfgang -- View this message in context: http://n2.nabble.com/Map-File-for-Open-Street-Map-symbology-tp2099050p2301421.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pgiannini at bytewise.it Tue Feb 10 02:53:17 2009 From: pgiannini at bytewise.it (Pietro Giannini) Date: Tue, 10 Feb 2009 11:53:17 +0100 (CET) Subject: [mapserver-users] Problems with MapScript and setProjection In-Reply-To: <49907394.3030009@datawranglers.com> References: <498E57C1.4040707@datawranglers.com> <49907394.3030009@datawranglers.com> Message-ID: <34769.89.97.235.106.1234263197.squirrel@localhost.localdomain> Tim, maybe you set a map extent wich don't coincides with the extent of the dataset. If you change the projection of the map you should change the extent according with the new projection. Try reproject the extent of the map: $oMapProjection = ms_newProjectionObj($map->getProjection()); $oNewProjection = ms_newProjectionObj("+proj=tcc +lon_0=90w +ellps=GRS80"); $oRect = $map->extent; $oRect->project($oMapProjection,$oNewProjection); $map->setExtent($oRect->minx,$oRect->miny,$oRect->maxx,$oRect->maxy); $map->setProjection("+proj=tcc +lon_0=90w +ellps=GRS80"); let me know, ciao ...................pg STOP !! ERRATA CORRIGE: Now I read the new php MapScript documentation and found a new implementation of the setprojection() function: int setProjection(string proj_params, boolean bSetUnitsAndExtents) bSetUnitsAndExtents (default false), if true force the map to update Extents and Units based on the new projection (I suppose it works with the last release, 5.2.1) bye .......pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Lun, Febbraio 9, 2009 19:19, Tim Wood wrote: > Tom, that PPT linked from your example is filled with good stuff. > Anyway, I took your example and did some minor changes to make it work > with mapscript as Fedora installs it and my data. Then I added the > ability to turn projection on & off. With the projection off, everything > works great. But, I'm still getting a blank image with the projection > turned on. If anyone has any pointers on what's wrong with the code > (below) I'd appreciate it. > > Tim Wood > > --------------------------------------------------------------------- > > // Where my key directories are located > $doc_root = '/var/www/html'; > $rel_path = "example1/round2"; > $base_path = "$doc_root/$rel_path"; > > // An empty map file > $base_map = "$base_path/data/empty.map"; > > // The data I'm using (Statistics Canada's 2006 FSA files) > $shape_path = "$base_path/data/zcta/zt08_d00_shp/"; // goofy path > I'm too lazy to fix > $shape_file = "gfsa000b06a_e"; // works with or > w/o the extension > $shape_file_projection = "+proj=longlat +datum=NAD83"; > > // The Extents (area) I want in latitude, longitude (Canada) > list( $ex0, $ex1, $ex2, $ex3 ) = array(-140, 40, -50, 55 ); > > // Describe the rest of my output > $output_projection = ''; > $output_projection = "+proj=tcc +lon_0=90w +ellps=GRS80"; > $output_file_rel = "output/index2.png"; > $output_file_path = "$base_path/$output_file_rel"; > list($output_width, $output_height ) = array( 600, 500 ); > > > > // Load MapScript extension > if (!extension_loaded("MapScript")) > dl('php_mapscript.'.PHP_SHLIB_SUFFIX); > > // add map > $map = ms_newMapObj( $base_map ); > > // tdw temp > $map->setExtent( $ex0, $ex1, $ex2, $ex3 ); > > // Set the shapepath > $map->set( 'shapepath', $shape_path ); > // Set the output format and size > $map->selectOutputFormat( 'png' ); > $map->setSize( $output_width, $output_height ); > > // add new layer to map > $layer = ms_newLayerObj($map); > $layer->set("name", "foo"); > $layer->set("status", MS_ON); > $layer->set("data", $shape_file ); > $layer->set("type", MS_SHAPE_POLYGON ); > $layer->setProjection( $shape_file_projection ); > > // This line hides a bunch of errors that appear iff $output_projection > is set > $layer->set("template", "ttt"); > $layer->set("dump", "true"); > > // add new class to new layer > $class = ms_newClassObj($layer); > $class->set("name", "foo"); > > // add new style to new class > $style = ms_newStyleObj($class); > $style->color->setRGB(255, 0, 0); > $style->outlinecolor->setRGB( 128,128,128 ); > > if( $output_projection != '' ) { // Project and Draw > // create new rect to query against the new layer > $rect = ms_newRectObj(); > $rect->setExtent( $ex0, $ex1, $ex2, $ex3 ); > > // query new layer > $layer->queryByRect( $rect ); > $map->queryByRect( $rect ); > > // set projection of output map > $map->setProjection($output_projection, MS_TRUE); > > // draw > $image = $map->drawQuery(); > } else { // Just draw the map > // draw > $image = $map->draw(); > } > > // Save the image > $image->saveImage( $output_file_path ); > > ?> > > > > > > --------------------------------------------------------------------- > > > Kralidis,Tom [Ontario] wrote: >> I've added a small example at: >> >> http://trac.osgeo.org/mapserver/wiki/PHPMapscriptAddLayerQueryReproject >> >> Hope this helps. >> >> ..Tom >> >> >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org on behalf of Tim Wood >> Sent: Sat 07-Feb-09 22:55 >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] Problems with MapScript and setProjection >> >> I've been round and round with setProjection in MapScript and >> setProjection today. I either get the infamous blank image or the image >> returns in the same proportions as the original lat/long data. Proj >> seems to be (at least partially) working because if I forget something >> like +ellps=[blah blah], it throws an error. >> >> I'd like to look at a simple php mapscript example of creating a map, >> adding a layer, adding something to that layer (e.g. my a simple query >> against a lat/long shapefile) and then project that another way (tmerc, >> lcc, whatever). But, I have yet to find one. Can someone share a working >> example or know of one on the web? >> >> Tim Wood >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Schoenhammer.Herbert at Regensburg.de Tue Feb 10 04:00:45 2009 From: Schoenhammer.Herbert at Regensburg.de (=?iso-8859-1?Q?Sch=F6nhammer=2C_Herbert?=) Date: Tue, 10 Feb 2009 13:00:45 +0100 Subject: [mapserver-users] Configuration of PDF-print: download=true ? Message-ID: Hi list, in mapbender docu (http://www.mapbender.org/Troubleshooting_printPDF), you can read: "Es empfiehlt sich, in der print_pdf.conf $download auf "true" zu setzen. " Unfortenately there is no explanation in the docu. Why should I set "$download=true". If download is set to "true", the temporary created pdf-files are remaining in the server's directory. If set to "false", the user need not to do another click and no temporary files stay in server's directory. So, could anybody explain, why download should be set to "true" ? Thanks a lot Herbert -------------- next part -------------- An HTML attachment was scrubbed... URL: From Schoenhammer.Herbert at Regensburg.de Tue Feb 10 04:07:14 2009 From: Schoenhammer.Herbert at Regensburg.de (=?iso-8859-1?Q?Sch=F6nhammer=2C_Herbert?=) Date: Tue, 10 Feb 2009 13:07:14 +0100 Subject: [mapserver-users] AW: Configuration of PDF-print: download=true ? In-Reply-To: Message-ID: Sorry, this was the wrong list ! -----Urspr?ngliche Nachricht----- Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Sch?nhammer, Herbert Gesendet: Dienstag, 10. Februar 2009 13:01 An: Mapserver-users (mapserver-users at lists.osgeo.org) Betreff: [mapserver-users] Configuration of PDF-print: download=true ? Hi list, in mapbender docu (http://www.mapbender.org/Troubleshooting_printPDF), you can read: "Es empfiehlt sich, in der print_pdf.conf $download auf "true" zu setzen. " Unfortenately there is no explanation in the docu. Why should I set "$download=true". If download is set to "true", the temporary created pdf-files are remaining in the server's directory. If set to "false", the user need not to do another click and no temporary files stay in server's directory. So, could anybody explain, why download should be set to "true" ? Thanks a lot Herbert -------------- next part -------------- An HTML attachment was scrubbed... URL: From accounts.nabble at datawranglers.com Tue Feb 10 09:20:44 2009 From: accounts.nabble at datawranglers.com (Tim Wood) Date: Tue, 10 Feb 2009 10:20:44 -0700 Subject: [mapserver-users] Problems with MapScript and setProjection In-Reply-To: <34769.89.97.235.106.1234263197.squirrel@localhost.localdomain> References: <498E57C1.4040707@datawranglers.com> <49907394.3030009@datawranglers.com> <34769.89.97.235.106.1234263197.squirrel@localhost.localdomain> Message-ID: <4991B76C.7010601@datawranglers.com> Pietro, that was exactly what I needed. Thanks. The example below pulls everything together and works under MapServer 5.2.1 (tested under Fedora 10). If someone hits this in the mailing list archive later and is trying to figure out reprojection, start at the end with the comment "reproject (if needed) and draw". If someone who already has a wiki login, wants to add it to the page that Tom Kralidis set up, feel free. Tim Wood extent; $oRect->project( $origProjObj, $newProjObj ); $map->setExtent( $oRect->minx, $oRect->miny, $oRect->maxx, $oRect->maxy ); $map->setProjection( $output_projection ); } // --------------------------- // The Main Code // // add map $map = ms_newMapObj( $base_map ); $map->set( 'name', 'my_map' ); // If we're using a blank map file, give it a name // Set the extent $map->setExtent( $ex0, $ex1, $ex2, $ex3 ); // Set the shapepath $map->set( 'shapepath', $shape_path ); // Set the output format and size $map->selectOutputFormat( 'png' ); $map->setSize( $output_width, $output_height ); // add new layer to map $layer = ms_newLayerObj($map); $layer->set("name", "foo"); $layer->set("status", MS_ON); $layer->set("data", $shape_file ); $layer->set("type", MS_SHAPE_POLYGON ); $layer->setProjection( $shape_file_projection ); $layer->set("template", "ttt"); // hide errors that appear iff $output_projection is set? $layer->set("dump", "true"); // add new class to new layer $class = ms_newClassObj($layer); $class->set("name", "foo"); // add new style to new class $style = ms_newStyleObj($class); $style->color->setRGB(255, 0, 0); $style->outlinecolor->setRGB( 128,128,128 ); // reproject (if needed) and draw if( $output_projection != '' ) { reproject_map( $map, $shape_file_projection, $output_projection ); $image = $map->drawQuery(); } else { // draw $image = $map->draw(); } // --------------------------- // Output the image // $image->saveImage( $output_file_path ); ?> -------------- next part -------------- An HTML attachment was scrubbed... URL: From abe.gillespie.lists at gmail.com Tue Feb 10 13:11:31 2009 From: abe.gillespie.lists at gmail.com (Abram Gillespie) Date: Tue, 10 Feb 2009 16:11:31 -0500 Subject: [mapserver-users] ANN: zigGIS 2.0.2 Message-ID: <283a65ca0902101311q48fec770vd44085454c84f44b@mail.gmail.com> The Obtuse Software team is pleased to announce the immediate availability of zigGIS 2.0.2. You'll be happy to know that your PostGIS tables no longer need a "GID" column nor must tables be registered with geometry_columns. In addition, PostgreSQL Views are now natively supported as read-only datasources. The flexibility to interoperate between ESRI, QGIS, uDig, Manifold, and other GIS has been yet unseen until now. And our goal is that zigGIS enables your GIS to fluidly work between PostGIS, ESRI, and most other sorts of Open Source GIS. All existing customers have been upgraded for free. Please head over to: https://www.obtusesoft.com/download.aspx and enter your download code. As always, personal and educational use is free (contact us at license-request at obtusesoft.com). Source code is available at: http://pub.obtusesoft.com/source.aspx and is subject to our EULA (free personal and educational use, purchased license for all other use): http://pub.obtusesoft.com/eula.rtf For additional information please see the release notes: http://pub.obtusesoft.com/release.txt or Abe Gillespie's blog: http://abegillespie.blogspot.com or Bill Dollin's blog: http://geobabble.wordpress.com/ or Paolo Corti's blog: http://www.paolocorti.net/ Please don't hesitate to contact us if you need personal assistance. Happy zigging! Obtuse Software zigGIS Team info at obtusesoft.com From gluker at scu.edu.au Tue Feb 10 17:08:13 2009 From: gluker at scu.edu.au (Greg Luker) Date: Wed, 11 Feb 2009 11:08:13 +1000 Subject: [mapserver-users] hide .map contents Message-ID: <200902110010.n1B0AMFa020028@atom.scu.edu.au> Hi, How can I hide the contents of my .map file? I use CGI MapServer 5.2.0. Currently, a simple View/Source in the browser following a query result displays my entire .map file, including the database (OGRVRTDataSource) password! Thanks, Greg Luker Australia. From woodbri at swoodbridge.com Tue Feb 10 16:37:13 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 10 Feb 2009 19:37:13 -0500 Subject: [mapserver-users] hide .map contents In-Reply-To: <200902110010.n1B0AMFa020028@atom.scu.edu.au> References: <200902110010.n1B0AMFa020028@atom.scu.edu.au> Message-ID: <49921DB9.40105@swoodbridge.com> Greg Luker wrote: > Hi, > > How can I hide the contents of my .map file? I use CGI MapServer 5.2.0. > Currently, a simple View/Source in the browser following a query result > displays my entire .map file, including the database (OGRVRTDataSource) > password! Just move you map file outside the apache root directory. -Steve W From woodbri at swoodbridge.com Tue Feb 10 19:27:43 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 10 Feb 2009 22:27:43 -0500 Subject: [mapserver-users] hide .map contents In-Reply-To: <200902110156.n1B1ubQB010215@atom.scu.edu.au> References: <200902110010.n1B0AMFa020028@atom.scu.edu.au> <49921DB9.40105@swoodbridge.com> <200902110156.n1B1ubQB010215@atom.scu.edu.au> Message-ID: <499245AF.5020601@swoodbridge.com> Greg Luker wrote: > Hi Stephen, > > At 10:37 AM 11/02/2009, you wrote: >> Just move you map file outside the apache root directory. > > Thanks for your reply. As far as I know, the .map file is already > outside the apache root directory. Attached is the 'View/Source' output > - I just noticed error messages in it - does this point to a problem? (I > replaced sensitive info with ***) yes, this is an error message, not your mapfile. Granted it does have mapfile information in it and more specifically it is an error generated by the GDAL libraries from within mapserver. So, I am reposting this to the list, because there are probably people there that are better able to respond to this issue, which is why it is always good to do a Reply All so the message goes back to the list and it helps other that might have the same problem searching the archives. -Steve W -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: mapserver_web_error.txt URL: From Andreas.Eichner at sid.sachsen.de Wed Feb 11 03:29:37 2009 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Wed, 11 Feb 2009 12:29:37 +0100 Subject: AW: [mapserver-users] hide .map contents References: <200902110010.n1B0AMFa020028@atom.scu.edu.au><49921DB9.40105@swoodbridge.com><200902110156.n1B1ubQB010215@atom.scu.edu.au> <499245AF.5020601@swoodbridge.com> Message-ID: Think you should put the descriptor in a file and set DATA . Since reading the error message it tells: "/var/mapserver/champ/ ... /OGRVRTDataSource>): path is too long" This tells me you used a SHAPEPATH "/var/mapserver/champ" and a DATA which results in MapServer trying to use your descriptor text as a file name... From pgiannini at bytewise.it Wed Feb 11 06:44:24 2009 From: pgiannini at bytewise.it (Pietro Giannini) Date: Wed, 11 Feb 2009 15:44:24 +0100 Subject: [mapserver-users] hide .map contents In-Reply-To: <499245AF.5020601@swoodbridge.com> References: <200902110010.n1B0AMFa020028@atom.scu.edu.au> <49921DB9.40105@swoodbridge.com> <200902110156.n1B1ubQB010215@atom.scu.edu.au> <499245AF.5020601@swoodbridge.com> Message-ID: <4992E448.8020600@bytewise.it> An HTML attachment was scrubbed... URL: From gluker at scu.edu.au Wed Feb 11 16:15:14 2009 From: gluker at scu.edu.au (Greg Luker) Date: Thu, 12 Feb 2009 10:15:14 +1000 Subject: [mapserver-users] hide .map contents In-Reply-To: <4992E448.8020600@bytewise.it> References: <200902110010.n1B0AMFa020028@atom.scu.edu.au> <49921DB9.40105@swoodbridge.com> <200902110156.n1B1ubQB010215@atom.scu.edu.au> <499245AF.5020601@swoodbridge.com> <4992E448.8020600@bytewise.it> Message-ID: <200902112317.n1BNHU09028928@atom.scu.edu.au> Hi mapservers-users, Thanks Steve W, Pietro, and Andreas for your help! I have got around some of the problem (MapServer error messages and MySQL passwords visible in browser View/Source) by moving the OGRVRT MySQL info from inline in the .map file into an external .ovf file (Pietro's >1024 characters problem seems right), but two problems remain. 1) I originally abandoned external .ovf file because I can't pass variables into it like I can when inline (eg can't do (s.site_num_previous_surveys >= %myvarn%) in external .ovf). Is there a way to use variables in .ovf file? 2) I am still getting an error in View/Source:
I've tried finding this problem in SYMBOL-related commands in the .map file, but no luck. Any ideas? (I can send .map file if that helps) Thanks, Greg Luker. Australia. From rm_mapserv at cheapcomplexdevices.com Wed Feb 11 17:30:57 2009 From: rm_mapserv at cheapcomplexdevices.com (Ron M) Date: Wed, 11 Feb 2009 17:30:57 -0800 Subject: [mapserver-users] Errors in trying to angle my labels. Message-ID: <49937BD1.7030808@cheapcomplexdevices.com> I see that mapserver 5.2.1 has the ability to draw labels at angles with the LABEL ..blah blah... ANGLE "[rotation]" END Can I put an expression in that rotation column? When I try doing something like this: LABEL MINFEATURESIZE 75 COLOR 255 255 255 OUTLINECOLOR 255 0 0 TYPE truetype ANTIALIAS TRUE FONT arial-bold SIZE 8 PARTIALS FALSE POSITION CC buffer 0 ANGLE [(180/3.141592654*atan2((y(endpoint(the_geom))-y(startpoint(the_geom))),(x(endpoint(the_geom))-x(startpoint(the_geom)))))] END it's giving me an error suggesting that this expression is not the name of a column in my table. With mapserver 4.4.1 I was able to write labels at angles with an expression like this: LABELANGLEITEM "(180/3.141592654*atan2((y(endpoint(the_geom))-y(startpoint(the_geom))),(x(endpoint(the_geom))-x(startpoint(the_geom)))))" Is there any way I can get mapserver 5.2.1 to not try to quote the ANGLE for the label? From SansonR at asurequality.com Wed Feb 11 17:44:34 2009 From: SansonR at asurequality.com (Robert Sanson) Date: Thu, 12 Feb 2009 14:44:34 +1300 Subject: [mapserver-users] hide .map contents In-Reply-To: <200902112317.n1BNHU09028928@atom.scu.edu.au> References: <200902110010.n1B0AMFa020028@atom.scu.edu.au> <49921DB9.40105@swoodbridge.com> <200902110156.n1B1ubQB010215@atom.scu.edu.au> <499245AF.5020601@swoodbridge.com> <4992E448.8020600@bytewise.it> <200902112317.n1BNHU09028928@atom.scu.edu.au> Message-ID: <499435D2.379F.0037.0@asurequality.com> Hi Greg Mapserver is correctly passing where conditions containing in-line variables to an external .ovf for me. I am using Mapserver 5.2 as in ms4w. My .ovf uses an ODBC datasource. Here is part of a layer definition from my mapfile: LAYER NAME "main_gates" GROUP "FMS" CONNECTION "./main_gates.ovf" CONNECTIONTYPE OGR DATA "main_gates" FILTER "WHERE farm_id = '%farmid%'" Robert Sanson >>> Greg Luker 12/02/2009 1:15 p.m. >>> Hi mapservers-users, Thanks Steve W, Pietro, and Andreas for your help! I have got around some of the problem (MapServer error messages and MySQL passwords visible in browser View/Source) by moving the OGRVRT MySQL info from inline in the .map file into an external .ovf file (Pietro's >1024 characters problem seems right), but two problems remain. 1) I originally abandoned external .ovf file because I can't pass variables into it like I can when inline (eg can't do (s.site_num_previous_surveys >= %myvarn%) in external .ovf). Is there a way to use variables in .ovf file? 2) I am still getting an error in View/Source:
I've tried finding this problem in SYMBOL-related commands in the .map file, but no luck. Any ideas? (I can send .map file if that helps) Thanks, Greg Luker. Australia. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at hostgis.com Wed Feb 11 18:31:26 2009 From: gregor at hostgis.com (Gregor at HostGIS) Date: Wed, 11 Feb 2009 18:31:26 -0800 Subject: [mapserver-users] Clipping out unprojectable area? In-Reply-To: <20090210010427.GH25534@metacarta.com> References: <4990AFF5.1010107@hostgis.com> <20090209234047.GF25534@metacarta.com> <4990C85F.4030101@hostgis.com> <20090210010427.GH25534@metacarta.com> Message-ID: <499389FE.5020606@hostgis.com> With some SQL know-how I did get the EPSG database merged with our own spatial_ref_sys table (it has other mods for our uses, so this was trivial) and our program generating ST_Intersection(the_geom) statements. This does work as expected, which is great. Thanks for another simple and elegant solution, Christopher. Now to cope with some of our data having self-intersecting polygons which break such operators... -- Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ System Administrator, Lead Programmer HostGIS development & hosting services, http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From gluker at scu.edu.au Wed Feb 11 19:42:56 2009 From: gluker at scu.edu.au (Greg Luker) Date: Thu, 12 Feb 2009 13:42:56 +1000 Subject: [mapserver-users] hide .map contents In-Reply-To: <499435D2.379F.0037.0@asurequality.com> References: <200902110010.n1B0AMFa020028@atom.scu.edu.au> <49921DB9.40105@swoodbridge.com> <200902110156.n1B1ubQB010215@atom.scu.edu.au> <499245AF.5020601@swoodbridge.com> <4992E448.8020600@bytewise.it> <200902112317.n1BNHU09028928@atom.scu.edu.au> <499435D2.379F.0037.0@asurequality.com> Message-ID: <200902120245.n1C2j9XB002495@atom.scu.edu.au> Hi Robert, Thanks for the info! I see you're using a FILTER in the .map file. I'll check into that. My sample "WHERE" clause is in the MySQL SELECT statement inside the .ovf file, it doesn't work in there. At 11:44 AM 12/02/2009, SansonR wrote: >Mapserver is correctly passing where conditions >containing in-line variables to an external .ovf >for me. I am using Mapserver 5.2 as in ms4w. My .ovf uses an ODBC datasource. >Here is part of a layer definition from my mapfile: > LAYER > NAME "main_gates" > GROUP "FMS" > CONNECTION "./main_gates.ovf" > CONNECTIONTYPE OGR > DATA "main_gates" > FILTER "WHERE farm_id = '?rmid%'" Thanks, Greg. Greg Luker GIS Lab Manager, Southern Cross University Lismore, AUSTRALIA. gluker at scu.edu.au phone 61 2 66203026 From sdc at sdc.com.au Wed Feb 11 20:55:10 2009 From: sdc at sdc.com.au (Stephen Davies) Date: Thu, 12 Feb 2009 15:25:10 +1030 Subject: [mapserver-users] Mapserver layer selects Message-ID: <200902121525.10951.sdc@sdc.com.au> Could somebody please help me explain the results below. The selects are cut-and-paste from postgresql log of cursor creation commands from mapserver. Both refer to the same point entity and both have the same map extent constraint but the first query (correctly) returns one row while the second returns none. However, removing the extent constraint from the second query to give the third, succeeds in returning the correct row. Given that this is the only difference between queries 2 and three, one would have to assume that the point is outside the extent. However, query 1 shows that the point is actually in the extent - as does eyeballing the geometries. To further confuse me, increasing the extent in query 2 eventually results in the entity being returned. Mapserv 5.2.0 with PostgreSQL 8.3.5 and PostGIS 1.3.5. Cheers and thanks, Stephen Davies benparts=# SELECT * from swip2 WHERE (pid in (select probe.id from probe where logger_id in (select id from logger where client_id=120)) and rdate='2009-02-12 13:30:00') and (geom && setSRID( 'BOX3D(138.5356633 -34.9225467,138.5397151 -34.9184949)'::BOX3D,4283) ); rdate | state | pid | location | geom ---------------------+--------+-----+----------+---------------------------------------------------- 2009-02-12 13:30:00 | 13.000 | 607 | Oval | 0101000020BB1000007ADFF8DA335161406551D845D17541C0 (1 row) benparts=# SELECT * from swip3 WHERE (pid in (select probe.id from probe where logger_id in (select id from logger where client_id=120)) and rdate='2009-02-12 13:30:00') and (geom && setSRID( 'BOX3D(138.5356633 -34.9225467,138.5397151 -34.9184949)'::BOX3D,4283) ); id | zname | pid | geom | rdate ----+-------+-----+------+------- (0 rows) benparts=# SELECT * from swip3 WHERE (pid in (select probe.id from probe where logger_id in (select id from logger where client_id=120)) and rdate='2009-02-12 13:30:00'); id | zname | pid | geom | rdate ----+--------+-----+----------------------------------------------------+--------------------- 28 | Zone 2 | 607 | 0101000020BB1000007ADFF8DA335161406551D845D17541C0 | 2009-02-12 13:30:00 (1 row) -- ============================================================================= Stephen Davies Consulting P/L Voice: 08-8177 1595 Adelaide, South Australia. Fax : 08-8177 0133 Computing & Network solutions. Mobile:040 304 0583 VoIP:sip:1132210 at sip1.bbpglobal.com From gluker at scu.edu.au Wed Feb 11 22:54:08 2009 From: gluker at scu.edu.au (Greg Luker) Date: Thu, 12 Feb 2009 16:54:08 +1000 Subject: [mapserver-users] query error message Message-ID: <200902120556.n1C5uLoj010967@atom.scu.edu.au> Hi mapserver-users, When I do a browser View/Source on a page that contains the results of a MapServer query, the following line is included:
The browser View/Source just shows the html code behind the web page that is currently displayed. What "Error message buffer" is this referring to? (the query is MySQL via an OGRVRT connection) Thanks, Greg Luker Australia. From Andreas.Eichner at sid.sachsen.de Wed Feb 11 23:08:50 2009 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Thu, 12 Feb 2009 08:08:50 +0100 Subject: AW: [mapserver-users] Errors in trying to angle my labels. References: <49937BD1.7030808@cheapcomplexdevices.com> Message-ID: Not sure, but try again without the square brackets. I believe MapServer treats there content as column name. Since you used LABELANGLEITEM successfully the generalized ANGLE should also work... So try ANGLE "(180/3.141592654*atan2((y(endpoint(the_geom))-y(startpoint(the_geom))), (x(endpoint(the_geom))-x(startpoint(the_geom)))))" From pgiannini at bytewise.it Thu Feb 12 01:49:42 2009 From: pgiannini at bytewise.it (Pietro Giannini) Date: Thu, 12 Feb 2009 10:49:42 +0100 Subject: [mapserver-users] hide .map contents In-Reply-To: <200902112317.n1BNHU09028928@atom.scu.edu.au> References: <200902110010.n1B0AMFa020028@atom.scu.edu.au> <49921DB9.40105@swoodbridge.com> <200902110156.n1B1ubQB010215@atom.scu.edu.au> <499245AF.5020601@swoodbridge.com> <4992E448.8020600@bytewise.it> <200902112317.n1BNHU09028928@atom.scu.edu.au> Message-ID: <4993F0B6.5030606@bytewise.it> Hi Greg. 1) No. You can only - use the FILTER at layer level, or - have multiple .ovf files and pass their name (eg CONNECTION %filename%), or - use mapscript to flush the query in the .ovf file (this means to rethink the whole application...). 2) Please post the map file. ciao ........ pg Greg Luker ha scritto: > Hi mapservers-users, > > Thanks Steve W, Pietro, and Andreas for your help! > > I have got around some of the problem (MapServer error messages and > MySQL passwords visible in browser View/Source) by moving the OGRVRT > MySQL info from inline in the .map file into an external .ovf file > (Pietro's >1024 characters problem seems right), but two problems remain. > > 1) I originally abandoned external .ovf file because I can't pass > variables into it like I can when inline (eg can't do > (s.site_num_previous_surveys >= %myvarn%) in external .ovf). Is there > a way to use variables in .ovf file? > > 2) I am still getting an error in View/Source: >
> I've tried finding this problem in SYMBOL-related commands in the .map > file, but no luck. Any ideas? > > (I can send .map file if that helps) > > Thanks, > Greg Luker. > Australia. > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E From pal.kristensen at statkart.no Thu Feb 12 11:27:04 2009 From: pal.kristensen at statkart.no (paalkr) Date: Thu, 12 Feb 2009 11:27:04 -0800 (PST) Subject: [mapserver-users] Full CADRG and VPF support In-Reply-To: <1233874856466-2277970.post@n2.nabble.com> References: <1233874856466-2277970.post@n2.nabble.com> Message-ID: <1234466824501-2317029.post@n2.nabble.com> Hi! I would guess that there is a mismatch in the location attribute path in conjunction with the shapepath in the mapfile. These values are concatenated at runtime to build up the full path to each raster cell. Have you turned om logging in the mapfile, do you get any error messages? One way to find out if the geometry in the tileindex is correct, is to render the tileindex as a vector layer and visually see if the raster footprints are located as expected. If the are, the error is most likely to be the path issue. Regards, P?l Kristensen purnomod wrote: > > Hi paalkr, > > I have tried as per your suggestion. The gdaltindex is working fine and it > created the tile index shape file with location attribute. the issue is > when I open the layer in the GAIA it did not show anything. is there > anything else that I need to do to make it work. The below is my mapserver > configudation. > > Thank you very much in advance for your help > > LAYER > NAME 'WMTS-006' > STATUS ON > DEBUG 5 > TILEINDEX "rpf_job.shp" > TILEITEM "location" > GROUP "JOG" > TYPE RASTER > MAXSCALE 1000000 > #MINSCALE 1 > PROCESSING "RESAMPLE=AVERAGE" > #PROCESSING "RESAMPLE=BILINEAR" > PROCESSING "OVERSAMPLE_RATIO=8" # 8 improves the output image greatly, > could try other values > GROUP "JOG" > METADATA > "wms_title" "JOG Mosaic" > "wms_group_title" "JOG" > "wms_style" "Default" > END > PROJECTION > "init=epsg:4326" > END > END # Layer > -- View this message in context: http://n2.nabble.com/Full-CADRG-and-VPF-support-tp1972100p2317029.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pal.kristensen at statkart.no Thu Feb 12 11:31:11 2009 From: pal.kristensen at statkart.no (paalkr) Date: Thu, 12 Feb 2009 11:31:11 -0800 (PST) Subject: [mapserver-users] Multiple bounding boxes for WMS layers In-Reply-To: References: <498750D9.9040504@gmx.net> <1233742752674-2268004.post@n2.nabble.com> Message-ID: <1234467071755-2317049.post@n2.nabble.com> Hi! I'm sorry, but i can't see the relevance to the hiding layers issue? Maybe I just don't get this? Regards, P?l Kristensen Jukka Rahkonen wrote: > > Hi, > > There is a closed ticket > http://trac.osgeo.org/mapserver/ticket/1905 > > We need to deliver most of our WMS layers in 3-5 different projections. > It would good to get bounding boxes for all the projections that are > advertised with "wms_srs". > > Ticket comment: "Do we really want/need this?" > My comment: If bounding box is missing the GIS client cannot zoom to WMS > layer. Users need to open some local vector file or WFS layer in correct > projection for locating themselves to correct place. It is not very > handy. > > Ticket comment: "Imagine for instance a server which advertizes 50 SRS > and contains 50 layers... thbose are fairly low numbers for WMS services > but would result in 2500 bbox entries, most of them possibly invalid > because the bbox is outside the projections' mathematical limits and the > reprojection of the bbox results in invalid values." > My comment: I did, and continued to imagine a server advertizing 1000 > SRS and 1000 layers. Wow, I see a million bounding boxes in my eyes :) > In real life less than hundred boxes would be enough for us and our > users would love us. > > If Mapserver won't support multiple bounding boxes I could also imagine > to make it manually. But should I then create some static > getCapabilities document and deliver that for our clients? Where should > I put the file when running Mapserver from MS4W? > > -Jukka Rahkonen- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/exclude-layer-from-wms-capabilities-tp2259954p2317049.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pal.kristensen at statkart.no Thu Feb 12 11:35:59 2009 From: pal.kristensen at statkart.no (paalkr) Date: Thu, 12 Feb 2009 11:35:59 -0800 (PST) Subject: [mapserver-users] exclude layer from wms capabilities In-Reply-To: <1233742752674-2268004.post@n2.nabble.com> References: <498750D9.9040504@gmx.net> <1233742752674-2268004.post@n2.nabble.com> Message-ID: <1234467359670-2317079.post@n2.nabble.com> Hi! I would really appreciate if this issue could get in the todo list before the 5.4 feature freeze on Friday. The tickets has been around for some time now, and deserves to be fixed :-) Regards, P?l Kristensen paalkr wrote: > > Hi! > > This issue has been discussed several times in the past. Se the links > below for some more information: > http://n2.nabble.com/Hiding-overviews-tt1970417.html#a1970417 > http://n2.nabble.com/GetCapabilities-for-a-specific-layer%2C-not-the-entire-mapfile--tt1970666.html#a1970668 > > There is also a patch available which I have used with great success. > http://trac.osgeo.org/mapserver/ticket/1952 > This patch has to be considered a quickfix, as long as the ticket below is > not resolved. > http://trac.osgeo.org/mapserver/ticket/2582 > > I really hope that this issue will be fixed for the 5.4 release. Some > people, you and me included, requests this functionality from time to > time. The issue is recognized as a bug and therefore should be fixed. I > think the best approach would be to take the MS_DELETE keyword into > consideration when requesting capabilities (as described in ticket 2582) > > Regards, > P?l Kristensen > > > Martin Kofahl wrote: >> >> I've got a copyright layer in a map file, status is default. Is there a >> way to hide this annotation layer in the capabilities output? >> >> Martin >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > -- View this message in context: http://n2.nabble.com/exclude-layer-from-wms-capabilities-tp2259954p2317079.html Sent from the Mapserver - User mailing list archive at Nabble.com. From traviskirstine at gmail.com Thu Feb 12 11:45:28 2009 From: traviskirstine at gmail.com (Travis Kirstine) Date: Thu, 12 Feb 2009 14:45:28 -0500 Subject: [mapserver-users] How can I do a SQL text comparison in a mapfile? Message-ID: <681116190902121145l1d877fe1ofb835eaa07bd0979@mail.gmail.com> The following line does not work and I think it has something to do with the single quotes. When I use double quotes Postgres thinks I'm referring to a column name. Is there a way to escape the single quotes? DATA "geom from (select id as oid, geom from some_table where some_field = 'some_string') as myquery using SRID=-1" The following line works because I'm doing a numeric comparison. DATA "geom from (select id as oid, geom from some_table where some_field_number = 99) as myquery using SRID=-1" -- Travis K. Toronto, Canada ------------------------------------------------------------ "She knows there's no success like failure And that failure's no success at all." -Bob Dylan- ------------------------------------------------------------ From Bob.Basques at ci.stpaul.mn.us Thu Feb 12 11:56:00 2009 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Thu, 12 Feb 2009 13:56:00 -0600 Subject: [mapserver-users] How can I do a SQL text comparison in a mapfile? Message-ID: <49942A70020000A800011125@jeckle> This was just talked about this past week in another thread. I don't believe there is a method for escaping the internal quotes in the SQL statement you show. Possible option(s) would be to add a numeric column to the DB table/view for filtering on. Or make a call that returns more using a different SQL filter and use EXPRESSIONs in the Layer CLASS to filter further for display. This doesn't seem like the economical way to do things things though. There was some stuff done in recent versions of MapServer though in EXPRESSIONs that may be related. bobb >>> Travis Kirstine 02/12/09 1:45 PM >>> The following line does not work and I think it has something to do with the single quotes. When I use double quotes Postgres thinks I'm referring to a column name. Is there a way to escape the single quotes? DATA "geom from (select id as oid, geom from some_table where some_field = 'some_string') as myquery using SRID=-1" The following line works because I'm doing a numeric comparison. DATA "geom from (select id as oid, geom from some_table where some_field_number = 99) as myquery using SRID=-1" -- Travis K. Toronto, Canada ------------------------------------------------------------ "She knows there's no success like failure And that failure's no success at all." -Bob Dylan- ------------------------------------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Thu Feb 12 12:13:11 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 12 Feb 2009 15:13:11 -0500 Subject: [mapserver-users] How can I do a SQL text comparison in a mapfile? In-Reply-To: <49942A70020000A800011125@jeckle> References: <49942A70020000A800011125@jeckle> Message-ID: <499482D7.7010505@swoodbridge.com> Anyone know if we have a bug open for this issue. It seems like a pretty simple oversight that could be fixed in 5.4 if someone would champion it. -Steve Bob Basques wrote: > This was just talked about this past week in another thread. > > I don't believe there is a method for escaping the internal quotes in > the SQL statement you show. Possible option(s) would be to add a > numeric column to the DB table/view for filtering on. Or make a call > that returns more using a different SQL filter and use EXPRESSIONs in > the Layer CLASS to filter further for display. This doesn't seem > like the economical way to do things things though. > > There was some stuff done in recent versions of MapServer though in > EXPRESSIONs that may be related. > > bobb > > > > > >>>> Travis Kirstine 02/12/09 1:45 PM >>> >>>> > The following line does not work and I think it has something to do > with the single quotes. When I use double quotes Postgres thinks I'm > referring to a column name. Is there a way to escape the single > quotes? DATA "geom from (select id as oid, geom from some_table where > some_field = 'some_string') as myquery using SRID=-1" > > The following line works because I'm doing a numeric comparison. DATA > "geom from (select id as oid, geom from some_table where > some_field_number = 99) as myquery using SRID=-1" > > From SansonR at asurequality.com Thu Feb 12 12:10:18 2009 From: SansonR at asurequality.com (Robert Sanson) Date: Fri, 13 Feb 2009 09:10:18 +1300 Subject: [mapserver-users] How can I do a SQL text comparison in a mapfile? In-Reply-To: <49942A70020000A800011125@jeckle> References: <49942A70020000A800011125@jeckle> Message-ID: <499538F7.379F.0037.0@asurequality.com> I don't have a problem with an internal quote in my map file using ms4w with Mapserver 5.2: FILTER "WHERE LEGAL_DESC LIKE '%%legal%%'" The double %% allow me to use wildcard searching. Robert Sanson >>> "Bob Basques" 13/02/2009 8:56 a.m. >>> This was just talked about this past week in another thread. I don't believe there is a method for escaping the internal quotes in the SQL statement you show. Possible option(s) would be to add a numeric column to the DB table/view for filtering on. Or make a call that returns more using a different SQL filter and use EXPRESSIONs in the Layer CLASS to filter further for display. This doesn't seem like the economical way to do things things though. There was some stuff done in recent versions of MapServer though in EXPRESSIONs that may be related. bobb >>> Travis Kirstine 02/12/09 1:45 PM >>> The following line does not work and I think it has something to do with the single quotes. When I use double quotes Postgres thinks I'm referring to a column name. Is there a way to escape the single quotes? DATA "geom from (select id as oid, geom from some_table where some_field = 'some_string') as myquery using SRID=-1" The following line works because I'm doing a numeric comparison. DATA "geom from (select id as oid, geom from some_table where some_field_number = 99) as myquery using SRID=-1" -- Travis K. Toronto, Canada ------------------------------------------------------------ "She knows there's no success like failure And that failure's no success at all." -Bob Dylan- ------------------------------------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at ci.stpaul.mn.us Thu Feb 12 12:25:44 2009 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Thu, 12 Feb 2009 14:25:44 -0600 Subject: [mapserver-users] How can I do a SQL text comparison in a mapfile? Message-ID: <49943168020000A80001113A@jeckle> Robert, I think the problem is related to a DATA (SQL/DB call-here) call, not at the EXPRESSION or FILTER level which I believe were added fairly recently. bobb >>> "Robert Sanson" 02/12/09 2:13 PM >>> I don't have a problem with an internal quote in my map file using ms4w with Mapserver 5.2: FILTER "WHERE LEGAL_DESC LIKE '%%legal%%'" The double %% allow me to use wildcard searching. Robert Sanson >>> "Bob Basques" 13/02/2009 8:56 a.m. >>> This was just talked about this past week in another thread. I don't believe there is a method for escaping the internal quotes in the SQL statement you show. Possible option(s) would be to add a numeric column to the DB table/view for filtering on. Or make a call that returns more using a different SQL filter and use EXPRESSIONs in the Layer CLASS to filter further for display. This doesn't seem like the economical way to do things things though. There was some stuff done in recent versions of MapServer though in EXPRESSIONs that may be related. bobb >>> Travis Kirstine 02/12/09 1:45 PM >>> The following line does not work and I think it has something to do with the single quotes. When I use double quotes Postgres thinks I'm referring to a column name. Is there a way to escape the single quotes? DATA "geom from (select id as oid, geom from some_table where some_field = 'some_string') as myquery using SRID=-1" The following line works because I'm doing a numeric comparison. DATA "geom from (select id as oid, geom from some_table where some_field_number = 99) as myquery using SRID=-1" -- Travis K. Toronto, Canada ------------------------------------------------------------ "She knows there's no success like failure And that failure's no success at all." -Bob Dylan- ------------------------------------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com From woodbri at swoodbridge.com Thu Feb 12 12:27:54 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 12 Feb 2009 15:27:54 -0500 Subject: [mapserver-users] How can I do a SQL text comparison in a mapfile? In-Reply-To: <499482D7.7010505@swoodbridge.com> References: <49942A70020000A800011125@jeckle> <499482D7.7010505@swoodbridge.com> Message-ID: <4994864A.7070204@swoodbridge.com> Just opened ticket: http://trac.osgeo.org/mapserver/ticket/2888 add yourself to the CC if you are interested in tracking it. -Steve W Stephen Woodbridge wrote: > Anyone know if we have a bug open for this issue. It seems like a pretty > simple oversight that could be fixed in 5.4 if someone would champion it. > > -Steve > > Bob Basques wrote: >> This was just talked about this past week in another thread. >> >> I don't believe there is a method for escaping the internal quotes in >> the SQL statement you show. Possible option(s) would be to add a >> numeric column to the DB table/view for filtering on. Or make a call >> that returns more using a different SQL filter and use EXPRESSIONs in >> the Layer CLASS to filter further for display. This doesn't seem >> like the economical way to do things things though. >> >> There was some stuff done in recent versions of MapServer though in >> EXPRESSIONs that may be related. >> >> bobb >> >> >> >> >> >>>>> Travis Kirstine 02/12/09 1:45 PM >>> >>>>> >> The following line does not work and I think it has something to do >> with the single quotes. When I use double quotes Postgres thinks I'm >> referring to a column name. Is there a way to escape the single >> quotes? DATA "geom from (select id as oid, geom from some_table where >> some_field = 'some_string') as myquery using SRID=-1" >> >> The following line works because I'm doing a numeric comparison. DATA >> "geom from (select id as oid, geom from some_table where >> some_field_number = 99) as myquery using SRID=-1" >> >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From rm_mapserv at cheapcomplexdevices.com Thu Feb 12 12:48:41 2009 From: rm_mapserv at cheapcomplexdevices.com (Ron M) Date: Thu, 12 Feb 2009 12:48:41 -0800 Subject: AW: [mapserver-users] Errors in trying to angle my labels. In-Reply-To: References: <49937BD1.7030808@cheapcomplexdevices.com> Message-ID: <49948B29.2070304@cheapcomplexdevices.com> Eichner, Andreas - SID-NLKM wrote: > Not sure, but try again without the square brackets. I believe MapServer > treats there content as column name. Since you used LABELANGLEITEM > successfully the generalized ANGLE should also work... > So try > > ANGLE > "(180/3.141592654*atan2((y(endpoint(the_geom))-y(startpoint(the_geom))), > (x(endpoint(the_geom))-x(startpoint(the_geom)))))" Nope, no such luck. The Mapserver 5 migration guide http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT suggests that I should be using LABEL...ANGLE...END instead of LABELANGLEITEM, and the mapserver docs for ANGLE say the square brackets are required. But mapserver 5's ANGLE seems less flexible than mapserver 4's LABELANGLEITEM in the ability to use complex expressions for the labels. Is the best approach to create a view in the database for mapserver that makes that expression look like a column? From woodbri at swoodbridge.com Thu Feb 12 13:13:59 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 12 Feb 2009 16:13:59 -0500 Subject: AW: [mapserver-users] Errors in trying to angle my labels. In-Reply-To: <49948B29.2070304@cheapcomplexdevices.com> References: <49937BD1.7030808@cheapcomplexdevices.com> <49948B29.2070304@cheapcomplexdevices.com> Message-ID: <49949117.6000109@swoodbridge.com> Since you seem to be doing this in postgis, I think the way to do thie is something like this: DATA "the_geom from (select (180/3.141592654*atan2((y(endpoint(the_geom))-y(startpoint(the_geom))), >> (x(endpoint(the_geom))-x(startpoint(the_geom))))) as angle, the_geom, ... from table ...) as foo using ..." then you can do ANGLE [angle] to use the value as an attribute column. -Steve W. Ron M wrote: > Eichner, Andreas - SID-NLKM wrote: >> Not sure, but try again without the square brackets. I believe MapServer >> treats there content as column name. Since you used LABELANGLEITEM >> successfully the generalized ANGLE should also work... >> So try >> >> ANGLE >> "(180/3.141592654*atan2((y(endpoint(the_geom))-y(startpoint(the_geom))), >> (x(endpoint(the_geom))-x(startpoint(the_geom)))))" > > Nope, no such luck. > > The Mapserver 5 migration guide > http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT > suggests that I should be using LABEL...ANGLE...END instead of LABELANGLEITEM, > and the mapserver docs for ANGLE say the square brackets are required. > > But mapserver 5's ANGLE seems less flexible than mapserver 4's LABELANGLEITEM > in the ability to use complex expressions for the labels. > > Is the best approach to create a view in the database for mapserver that > makes that expression look like a column? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Thu Feb 12 13:22:06 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 12 Feb 2009 22:22:06 +0100 Subject: [mapserver-users] How can I do a SQL text comparison in a mapfile? In-Reply-To: <681116190902121145l1d877fe1ofb835eaa07bd0979@mail.gmail.com> References: <681116190902121145l1d877fe1ofb835eaa07bd0979@mail.gmail.com> Message-ID: I don't see why you're a problem with that query string. From my experience, there's a limitation when you need to mix single and double quotes inside the sql expression. eg: DATA "way from (select way,osm_id ,leisure , landuse, name from osm_polygon where leisure='park' or leisure='golf_course' or landuse='recreation_ground' or landuse='cemetery') as foo using unique osm_id using srid=900913" works fine. Travis, could you post your exact data statement, so we can check if your problem isn't elsewhere? regards, thomas On Thu, Feb 12, 2009 at 20:45, Travis Kirstine wrote: > The following line does not work and I think it has something to do > with the single quotes. When I use double quotes Postgres thinks I'm > referring to a column name. Is there a way to escape the single > quotes? > DATA "geom from (select id as oid, geom from some_table where > some_field = 'some_string') as myquery using SRID=-1" > > The following line works because I'm doing a numeric comparison. > DATA "geom from (select id as oid, geom from some_table where > some_field_number = 99) as myquery using SRID=-1" > > > -- > Travis K. > > Toronto, Canada > ------------------------------------------------------------ > "She knows there's no success like failure > And that failure's no success at all." > -Bob Dylan- > ------------------------------------------------------------ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Jukka.Rahkonen at mmmtike.fi Thu Feb 12 14:01:17 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 13 Feb 2009 00:01:17 +0200 Subject: [mapserver-users] Multiple bounding boxes for WMS layers References: <498750D9.9040504@gmx.net><1233742752674-2268004.post@n2.nabble.com> <1234467071755-2317049.post@n2.nabble.com> Message-ID: Hi, Hiding layers issue? Ticket #1905 does not really have much do do with it, even it may be hard to find the layer if bounding box is missing. Are you sure you were looking at the same ticket number? -Jukka- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: paalkr L?hetetty: to 12.2.2009 21:31 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Multiple bounding boxes for WMS layers Hi! I'm sorry, but i can't see the relevance to the hiding layers issue? Maybe I just don't get this? Regards, P?l Kristensen Jukka Rahkonen wrote: > > Hi, > > There is a closed ticket > http://trac.osgeo.org/mapserver/ticket/1905 > > We need to deliver most of our WMS layers in 3-5 different projections. > It would good to get bounding boxes for all the projections that are > advertised with "wms_srs". > > Ticket comment: "Do we really want/need this?" > My comment: If bounding box is missing the GIS client cannot zoom to WMS > layer. Users need to open some local vector file or WFS layer in correct > projection for locating themselves to correct place. It is not very > handy. > > Ticket comment: "Imagine for instance a server which advertizes 50 SRS > and contains 50 layers... thbose are fairly low numbers for WMS services > but would result in 2500 bbox entries, most of them possibly invalid > because the bbox is outside the projections' mathematical limits and the > reprojection of the bbox results in invalid values." > My comment: I did, and continued to imagine a server advertizing 1000 > SRS and 1000 layers. Wow, I see a million bounding boxes in my eyes :) > In real life less than hundred boxes would be enough for us and our > users would love us. > > If Mapserver won't support multiple bounding boxes I could also imagine > to make it manually. But should I then create some static > getCapabilities document and deliver that for our clients? Where should > I put the file when running Mapserver from MS4W? > > -Jukka Rahkonen- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/exclude-layer-from-wms-capabilities-tp2259954p2317049.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From randre at gmail.com Thu Feb 12 15:46:14 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Thu, 12 Feb 2009 15:46:14 -0800 Subject: [mapserver-users] Reading raster data source dynamically Message-ID: <9c2015090902121546t1deaaea4qd6335f4651ea8093@mail.gmail.com> Hi All, I'm wondering if there is some way I could feed Mapserver a raster data source dynamically? Like maybe constructing a GeoTIFF in memory from a numerical array, and then passing that into mapscript along with the rest of the layer info. The goal here is to avoid having to create temporary image files for each of the raster layers that I'm mapping. Any idea here would be welcome. Thanks, Roger -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From randre at gmail.com Thu Feb 12 16:32:01 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Thu, 12 Feb 2009 16:32:01 -0800 Subject: [mapserver-users] Re: Reading raster data source dynamically In-Reply-To: <9c2015090902121546t1deaaea4qd6335f4651ea8093@mail.gmail.com> References: <9c2015090902121546t1deaaea4qd6335f4651ea8093@mail.gmail.com> Message-ID: <9c2015090902121632p55cc56c7o6ac24b3e1a844229@mail.gmail.com> Or maybe creating a GDAL "In Memory Raster" and then pointing to it as the data source for the mapscript layer? -- On Thu, Feb 12, 2009 at 3:46 PM, Roger Andr? wrote: > Hi All, > > I'm wondering if there is some way I could feed Mapserver a raster data > source dynamically? Like maybe constructing a GeoTIFF in memory from a > numerical array, and then passing that into mapscript along with the rest of > the layer info. The goal here is to avoid having to create temporary image > files for each of the raster layers that I'm mapping. > > Any idea here would be welcome. > > Thanks, > > Roger > -- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rm_mapserv at cheapcomplexdevices.com Thu Feb 12 17:38:20 2009 From: rm_mapserv at cheapcomplexdevices.com (Ron M) Date: Thu, 12 Feb 2009 17:38:20 -0800 Subject: AW: [mapserver-users] Errors in trying to angle my labels. In-Reply-To: <49949117.6000109@swoodbridge.com> References: <49937BD1.7030808@cheapcomplexdevices.com> <49948B29.2070304@cheapcomplexdevices.com> <49949117.6000109@swoodbridge.com> Message-ID: <4994CF0C.8000207@cheapcomplexdevices.com> Stephen Woodbridge wrote: > Since you seem to be doing this in postgis, I think the way to do thie > is something like this: > > DATA "the_geom from (select > (180/3.141592654*atan2((y(endpoint(the_geom))-y(startpoint(the_geom))), >>> (x(endpoint(the_geom))-x(startpoint(the_geom))))) as angle, the_geom, > ... from table ...) as foo using ..." > > then you can do > > ANGLE [angle] > > to use the value as an attribute column. Very nice! It works. Thanks much. From paulborodaev at gmail.com Fri Feb 13 00:18:58 2009 From: paulborodaev at gmail.com (BrainDrain) Date: Fri, 13 Feb 2009 00:18:58 -0800 (PST) Subject: [mapserver-users] CGI (FastCGI) mode versus Mapscript? In-Reply-To: <221095.51245.qm@web58201.mail.re3.yahoo.com> References: <221095.51245.qm@web58201.mail.re3.yahoo.com> Message-ID: <1234513138533-2320103.post@n2.nabble.com> I can say about subj running on wintel systems (IIS). I've successfully setup mapserv cgi on win2003 & iis 6 in fastcgi mode using extension from iis.net. Visually it has nearly 2-3x performance effect. Response speed increases because of mapserv processes keep their instances (more than one in iis "web garden powered" app pool) for future use. Winthout fastcgi I've observe cpu overloading. Performance effect may be bigger with burden. I have a great experience of developing wep apps using c# mapserver wrapper - this is great opportunity to use c# power, linq to objects, lambda expressions, asp.net script services/methods, json serializers, to extend mapserver classes with new methods (using C# extension methods) - and this is REALLY helpful! But in spite of wrapper uses swig technology (native c++ code calls) - image generation is slightly slower vs mapserv.exe (but some times more correct with peculiar image extents ... never mind). Also mapscript c# allow you to use gdal c# and NTS.net. Saka Royban wrote: > > Hi all. > i couldn't get good answers from web seach.? i read more and more about > CGI,FastCGI and dynamic pages like ASP,JSP,.... and? i don't know why > mapserver shouldbe? used in CGI or FastCGI mode. > So, what is the difference of using mapserver in CGI mode or in dynamic > pages via mapscript really, regarding performance and speed? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- View this message in context: http://n2.nabble.com/CGI-%28FastCGI%29-mode-versus-Mapscript--tp2297934p2320103.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Andreas.Eichner at sid.sachsen.de Fri Feb 13 00:57:55 2009 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Fri, 13 Feb 2009 09:57:55 +0100 Subject: AW: [mapserver-users] Mapserver layer selects References: <200902121525.10951.sdc@sdc.com.au> Message-ID: <4FBC13C3CB49244088DD095B32B5D4CD0ABE1B@KS-EVS1.smi.sachsen.de> Altough this is more PostgreSQL/PostGIS related and should go to there list but I tried it and... strange, I can not reproduce your problem. This is what I did: create table swip3 ( id int, zname varchar(20), pid int, geom geometry, rdate timestamp ); insert into swip3 values ( 28, 'Zone 2', 607, geomfromewkb( decode( '0101000020BB1000007ADFF8DA335161406551D845D17541C0', 'hex')), '2009-02-12 13:30:00'::timestamp ); create table probe ( int id, int logger_id ); insert into probe values ( 607, 1 ); create table logger ( int id, int client_id ); insert into logger values ( 1, 120 ); SELECT * from swip3 WHERE (pid in (select probe.id from probe where logger_id in (select id from logger where client_id=120)) and rdate='2009-02-12 13:30:00') and (geom && setSRID( 'BOX3D(138.5356633 -34.9225467,138.5397151 -34.9184949)'::BOX3D,4283) ); id | zname | pid | geom | rdate ----+--------+-----+---------------------------------------------------- +--------------------- 28 | Zone 2 | 607 | 0101000020BB1000007ADFF8DA335161406551D845D17541C0 | 2009-02-12 13:30:00 (1 Zeile) So I believe this has really nothing to do with MS. From nishap97 at gmail.com Fri Feb 13 03:13:32 2009 From: nishap97 at gmail.com (Nisha P) Date: Fri, 13 Feb 2009 16:43:32 +0530 Subject: [mapserver-users] WMS layer in mapserver Message-ID: Hi All... I have added a WMS layer in mapguide open source successfully.. Now i want to add WMS layer in mapserver...My ms4w version is 2.2.6.. Is it supports WMS? From where can i get WMS CAPABILITIES Document? Anybody please send me WMS mapfile..i m newer in mapserver..So plz help me.. Regards Nisha P -------------- next part -------------- An HTML attachment was scrubbed... URL: From kmanoj-pg7 at iiitmk.ac.in Fri Feb 13 03:31:12 2009 From: kmanoj-pg7 at iiitmk.ac.in (kmanoj-pg7 kmanoj-pg7) Date: Fri, 13 Feb 2009 17:01:12 +0530 Subject: [mapserver-users] loadWeb(): Unknown identifier. Parsing error near (:):(line 1) on fedora9 Message-ID: <9ab9b8cf0902130331h61ad3fbeq9da12e5fd118b99d@mail.gmail.com> hello users, i am newbie to mapserver.... i am trying to get the itasca demo map by running in my fedora 9....... i have installed mapserver 5.0.3-3 version........ i am really couldn't understand by looking at the documentation file given for the installation of itasca demo..... especially instructions given to edit the index.html..... but i have made the following edits in the index.html....
//change configure() as submit_form() - kapil after editing completed i call the link http://localhost/Mapserver_Demo/ then i initialized the basic application its thrown the following error loadWeb(): Unknown identifier. Parsing error near (/var/www/html/Mapserver_Demo/tmp/):(line 1) i searched the mapserver forum by somehow to figure out this problem..... i saw similar postings with the same error..... but unfortunately i haven't found any answer for the question..... someone please help me out from this error........ help/tips will be appreciated.. Thanks , kapilmanoj -------------- next part -------------- An HTML attachment was scrubbed... URL: From kmanoj-pg7 at iiitmk.ac.in Fri Feb 13 03:32:26 2009 From: kmanoj-pg7 at iiitmk.ac.in (kmanoj-pg7 kmanoj-pg7) Date: Fri, 13 Feb 2009 17:02:26 +0530 Subject: [mapserver-users] gmap-ms46 demo map not rendering properly Message-ID: <9ab9b8cf0902130332od06062bj7dc688abeef94c5@mail.gmail.com> hello users... I am a newbie to mapserver. i am trying to get the gamp demo to run in my machine fedora 9. i have installed mapserver 5.0.3-3 and php-mapserver 5.0.3-3 extension for php/mapscripting. Moreover i installed all the libraries and packges whatever mentioned in the installation documentation perfectly. i have added the AddTypes in the httpd.cong. Perhaps i have made the edits in the php.ini file. now when i call the http://localhost/gmap/gmap75.phtml i stunned to see everything is projecting except the map is not rendering. at the beginning i thought it might be a problem of the java mode is enabled then i tried to disabled that but i failed it was also not working means the button was not working.... Then i looked into the httpd error log file ... i got this following error............ [Wed Feb 11 15:06:53 2009] [error] [client 127.0.0.1] PHP Notice: Undefined variable: HTTP_POST_VARS in /var/www/html/gmap-ms46/htdocs/gmap75.inc.php on line 40, referer: [Wed Feb 11 15:06:54 2009] [error] [client 127.0.0.1] PHP Notice: Undefined variable: HTTP_GET_VARS in /var/www/html/gmap-ms46/htdocs/gmap75.inc.php on line 42, referer: [Wed Feb 11 15:06:54 2009] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant MS_GIF - assumed 'MS_GIF' in /var/www/html/gmap-ms46/htdocs/gmap75.inc.php on line 53, referer:// [Wed Feb 11 15:06:54 2009] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant MS_GIF - assumed 'MS_GIF' in /var/www/html/gmap-ms46/htdocs/gmap75.inc.php on line 54, referer: [Wed Feb 11 15:06:57 2009] [error] [client 127.0.0.1] PHP Notice: Undefined index: MAP_NAME in /var/www/html/gmap-ms46/htdocs/gmap75.phtml on line 589, referer:// [Wed Feb 11 15:07:16 2009] [error] [client 127.0.0.1] File does not exist: /var/www/html/gmap-ms46/htdocs/netscape Then i opened my gmap75.phtml file i did some modification means i changed the value of $gblsHtmlMode to 1 actually its value is 0.. as you can see from the following snippet... if (strlen($HTTP_FORM_VARS["PREVIOUS_MODE"])==0) $gbIsHtmlMode = 1; // Start with Java On by default else $gbIsHtmlMode = intval($HTTP_FORM_VARS["PREVIOUS_MODE"]); wow its great...... i was surprised this time , the map rendered .... but unfortunately all my happiness was just for a few minutes... when i was try to zoom the map.... i failed it doesnt work... again i checked my httpd error log file ... i got the following error... [Thu Feb 12 14:16:10 2009] [error] [client 127.0.0.1] PHP Notice: Undefined variable: HTTP_POST_VARS in /var/www/html/gmap-ms46/htdocs/gmap75.inc.php on line 40 [Thu Feb 12 14:16:10 2009] [error] [client 127.0.0.1] PHP Notice: Undefined variable: HTTP_GET_VARS in /var/www/html/gmap-ms46/htdocs/gmap75.inc.php on line 42 [Thu Feb 12 14:16:10 2009] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant MS_GIF - assumed 'MS_GIF' in /var/www/html/gmap-ms46/htdocs/gmap75.inc.php on line 53 [Thu Feb 12 14:16:10 2009] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant MS_GIF - assumed 'MS_GIF' in /var/www/html/gmap-ms46/htdocs/gmap75.inc.php on line 54 [Thu Feb 12 14:16:10 2009] [error] [client 127.0.0.1] PHP Notice: Undefined index: MAP_NAME in /var/www/html/gmap-ms46/htdocs/gmap75.phtml on line 63 [Thu Feb 12 14:16:10 2009] [error] [client 127.0.0.1] PHP Notice: Undefined index: minx in /var/www/html/gmap-ms46/htdocs/gmap75.inc.php on line 167 [Thu Feb 12 14:16:10 2009] [error] [client 127.0.0.1] PHP Notice: Undefined index: MapSize in /var/www/html/gmap-ms46/htdocs/gmap75.inc.php on line 187 [Thu Feb 12 14:16:10 2009] [error] [client 127.0.0.1] PHP Notice: Undefined index: KEYMAP_x in /var/www/html/gmap-ms46/htdocs/gmap75.inc.php on line 205 [Thu Feb 12 14:16:10 2009] [error] [client 127.0.0.1] PHP Notice: Undefined index: ViewRegion in /var/www/html/gmap-ms46/htdocs/gmap75.inc.php on line 274... actually am getting few more errors like above but i have mentioned very little.... these errors are similar to the above first errors.... i am struggling to solve this problem for the past two days...... someone please help me out..... any help/tips will be appreciated.... Thanks, kapilmanoj -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Fri Feb 13 04:19:14 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 13 Feb 2009 07:19:14 -0500 Subject: [mapserver-users] WMS layer in mapserver In-Reply-To: References: Message-ID: <49956542.9010006@gatewaygeomatics.com> Nisha P wrote: > Hi All... > > I have added a WMS layer in mapguide open source successfully.. > > Now i want to add WMS layer in mapserver...My ms4w version is 2.2.6.. > > Is it supports WMS? From where can i get WMS CAPABILITIES Document? > > Anybody please send me WMS mapfile..i m newer in mapserver..So plz help me.. > Hi. Here's how to add a WMS layer in MapServer: http://www.mapserver.org/ogc/wms_client.html And here's how to serve your own MapServer layers through WMS: http://www.mapserver.org/ogc/wms_server.html -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From jmckenna at gatewaygeomatics.com Fri Feb 13 04:24:34 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 13 Feb 2009 07:24:34 -0500 Subject: [mapserver-users] loadWeb(): Unknown identifier. Parsing error near (:):(line 1) on fedora9 In-Reply-To: <9ab9b8cf0902130331h61ad3fbeq9da12e5fd118b99d@mail.gmail.com> References: <9ab9b8cf0902130331h61ad3fbeq9da12e5fd118b99d@mail.gmail.com> Message-ID: <49956682.5060002@gatewaygeomatics.com> kmanoj-pg7 kmanoj-pg7 wrote: > hello users, > > i am newbie to mapserver.... i am trying to get the itasca demo map by > running in my fedora 9....... i have installed mapserver 5.0.3-3 > version........ i am really couldn't understand by looking at the > documentation file given for the installation of itasca demo..... > especially instructions given to edit the index.html..... but i have > made the following edits in the index.html.... > > > > onSubmit="submit_form()"> > //change configure() as submit_form() - kapil > > > > > > > value="/var/www/html/Mapserver_Demo/itasca.map"> > > > value="/var/www/html/Mapserver_Demo/tmp/"> > > > > after editing completed i call the link > > http://localhost/Mapserver_Demo/ > > then i initialized the basic application its thrown the following error > > loadWeb(): Unknown identifier. Parsing error near > (/var/www/html/Mapserver_Demo/tmp/):(line 1) > > i searched the mapserver forum by somehow to figure out this > problem..... i saw similar postings with the same error..... but > unfortunately i haven't found any answer for the question..... > > someone please help me out from this error........ > > help/tips will be appreciated.. > There were changes in MapServer 5.0 affecting the way to pass CGI variables. If you do a search of this list's archives you will see that this question has been answered before, here is a response: http://n2.nabble.com/msLoadMap()-Unable-to-access-file-td1971168.html#a17286109 -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From jmckenna at gatewaygeomatics.com Fri Feb 13 04:43:21 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 13 Feb 2009 07:43:21 -0500 Subject: [mapserver-users] gmap-ms46 demo map not rendering properly In-Reply-To: <9ab9b8cf0902130332od06062bj7dc688abeef94c5@mail.gmail.com> References: <9ab9b8cf0902130332od06062bj7dc688abeef94c5@mail.gmail.com> Message-ID: <49956AE9.1070404@gatewaygeomatics.com> kmanoj-pg7 kmanoj-pg7 wrote: > hello users... > > I am a newbie to mapserver. i am trying to get the gamp demo to run in my > machine fedora 9. i have installed mapserver 5.0.3-3 and php-mapserver > 5.0.3-3 extension for php/mapscripting. Moreover i installed all the > libraries and packges whatever mentioned in the installation documentation > perfectly. > > i have added the AddTypes in the httpd.cong. Perhaps i have made the edits > in the php.ini file. now when i call the > > http://localhost/gmap/gmap75.phtml > > i stunned to see everything is projecting except the map is not rendering. > at the beginning i thought it might be a problem of the java mode is enabled > then i tried to disabled that but i failed it was also not working means the > button was not working.... Then i looked into the httpd error log file ... > i got this following error............ > > [Wed Feb 11 15:06:53 2009] [error] [client 127.0.0.1] PHP Notice: Undefined > variable: HTTP_POST_VARS in /var/www/html/gmap-ms46/ > htdocs/gmap75.inc.php on > line 40, referer: > [Wed Feb 11 15:06:54 2009] [error] [client 127.0.0.1] PHP Notice: Undefined > variable: HTTP_GET_VARS in /var/www/html/gmap-ms46/htdocs/gmap75.inc.php on > line 42, referer: > [Wed Feb 11 15:06:54 2009] [error] [client 127.0.0.1] PHP Notice: Use of > undefined constant MS_GIF - assumed 'MS_GIF' in > /var/www/html/gmap-ms46/htdocs/gmap75.inc.php on line 53, referer:// > [Wed Feb 11 15:06:54 2009] [error] [client 127.0.0.1] PHP Notice: Use of > undefined constant MS_GIF - assumed 'MS_GIF' in > /var/www/html/gmap-ms46/htdocs/gmap75.inc.php on line 54, referer: > [Wed Feb 11 15:06:57 2009] [error] [client 127.0.0.1] PHP Notice: Undefined > index: MAP_NAME in /var/www/html/gmap-ms46/htdocs/gmap75.phtml on line 589, > referer:// > [Wed Feb 11 15:07:16 2009] [error] [client 127.0.0.1] File does not exist: > /var/www/html/gmap-ms46/htdocs/netscape > > The GMap demo is very old and requires you to change your php.ini settings for error reporting to not show notices: error_reporting = E_ALL & ~E_NOTICE -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From bthoen at gisnet.com Fri Feb 13 06:14:35 2009 From: bthoen at gisnet.com (Bill Thoen) Date: Fri, 13 Feb 2009 07:14:35 -0700 Subject: [mapserver-users] Selective Background Transparency with Labels Message-ID: <4995804B.3070901@gisnet.com> Is there a way to set a LABEL BACKGROUNDCOLOR to render transparent just pixels of a particular color instead of changing all pixels to the specified color? My situation is regarding contour line labels. I want the label to follow the contour line's center, but I would like just the parts of the contour line behind the labels to be knocked out, leaving the background otherwise untouched. In this case the color of the layer just below the contour lines varies across the map (it's a shaded relief layer), so setting BACKGOUNDCOLOR to a specific value doesn't give me the effect I want. Any solutions? - Bill Thoen From thomas.bonfort at gmail.com Fri Feb 13 06:36:50 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 13 Feb 2009 15:36:50 +0100 Subject: [mapserver-users] Selective Background Transparency with Labels In-Reply-To: <4995804B.3070901@gisnet.com> References: <4995804B.3070901@gisnet.com> Message-ID: If I correctly understand what you're trying to do, then no, this is not possible with mapserver, as this would require recovering the pixels that have been overdrawn by the line. regards, thomas On Fri, Feb 13, 2009 at 15:14, Bill Thoen wrote: > Is there a way to set a LABEL BACKGROUNDCOLOR to render transparent just > pixels of a particular color instead of changing all pixels to the specified > color? My situation is regarding contour line labels. I want the label to > follow the contour line's center, but I would like just the parts of the > contour line behind the labels to be knocked out, leaving the background > otherwise untouched. In this case the color of the layer just below the > contour lines varies across the map (it's a shaded relief layer), so setting > BACKGOUNDCOLOR to a specific value doesn't give me the effect I want. Any > solutions? > > - Bill Thoen > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Bob.Bistrais at maine.gov Fri Feb 13 07:02:59 2009 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Fri, 13 Feb 2009 10:02:59 -0500 Subject: [mapserver-users] WMS layer in mapserver In-Reply-To: References: Message-ID: <4EFF8BB964547748A07CA32961810C0412C48395@SOM-TEAQASMAIL1.som.w2k.state.me.us> Hi Nisha, Here is a sample of a .map file that consumes a WMS service. In this case, it consumes a WMS service containing orthoimagery. The wms_name element contains the names of the layers within the service that you want to display... LAYER GROUP "Imagery" NAME "naip2007" TYPE raster STATUS OFF CONNECTIONTYPE WMS CONNECTION "http://your-server-name/wms/mapserv.exe?map=c:/wms/orthos.map &" METADATA "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_title" "NAIP" "wms_abstract" "NAIP 2007 imagery" "wms_srs" "EPSG:26919" "wms_onlineresource" "MaineOrthos-NAIP" "wms_name" "naip2007,naip10moverview,naip100moverview" END END ________________________________ From: Nisha P [mailto:nishap97 at gmail.com] Sent: Friday, February 13, 2009 6:14 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] WMS layer in mapserver Hi All... I have added a WMS layer in mapguide open source successfully.. Now i want to add WMS layer in mapserver...My ms4w version is 2.2.6.. Is it supports WMS? From where can i get WMS CAPABILITIES Document? Anybody please send me WMS mapfile..i m newer in mapserver..So plz help me.. Regards Nisha P -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Fri Feb 13 07:19:18 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 13 Feb 2009 16:19:18 +0100 Subject: [mapserver-users] Selective Background Transparency with Labels In-Reply-To: <49953A73020000A80001118B@jeckle> References: <49953A73020000A80001118B@jeckle> Message-ID: On Fri, Feb 13, 2009 at 16:16, Bob Basques wrote: > Bill, > > I understand (I think what you're after. The only way I can figure out how to do this would be with three images stacked on top of each other. > > You would generate the background first, > then build the contour lines separately, > lastly, the labels, which would be drawn with the contours again but the contours would be drawn over the labels with the same color as the background (transparent color). > > Stacking these all together I think will get you the desired effect. > > You would need something like GeoMoose or openlayers to view the stack though. > > bobb > > > >>>> thomas bonfort 02/13/09 8:37 AM >>> > If I correctly understand what you're trying to do, then no, this is > not possible with mapserver, as this would require recovering the > pixels that have been overdrawn by the line. > > regards, > thomas > > On Fri, Feb 13, 2009 at 15:14, Bill Thoen wrote: >> Is there a way to set a LABEL BACKGROUNDCOLOR to render transparent just >> pixels of a particular color instead of changing all pixels to the specified >> color? My situation is regarding contour line labels. I want the label to >> follow the contour line's center, but I would like just the parts of the >> contour line behind the labels to be knocked out, leaving the background >> otherwise untouched. In this case the color of the layer just below the >> contour lines varies across the map (it's a shaded relief layer), so setting >> BACKGOUNDCOLOR to a specific value doesn't give me the effect I want. Any >> solutions? >> >> - Bill Thoen >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Bob.Basques at ci.stpaul.mn.us Fri Feb 13 07:34:48 2009 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Fri, 13 Feb 2009 09:34:48 -0600 Subject: [mapserver-users] Selective Background Transparency with Labels Message-ID: <49953EB8020000A80001119C@jeckle> Bill, Upon reflection, I guess you could build the background and contours as a single image, so you would only really need to build two images. bobb >>> thomas bonfort 02/13/09 9:19 AM >>> On Fri, Feb 13, 2009 at 16:16, Bob Basques wrote: > Bill, > > I understand (I think what you're after. The only way I can figure out how to do this would be with three images stacked on top of each other. > > You would generate the background first, > then build the contour lines separately, > lastly, the labels, which would be drawn with the contours again but the contours would be drawn over the labels with the same color as the background (transparent color). > > Stacking these all together I think will get you the desired effect. > > You would need something like GeoMoose or openlayers to view the stack though. > > bobb > > > >>>> thomas bonfort 02/13/09 8:37 AM >>> > If I correctly understand what you're trying to do, then no, this is > not possible with mapserver, as this would require recovering the > pixels that have been overdrawn by the line. > > regards, > thomas > > On Fri, Feb 13, 2009 at 15:14, Bill Thoen wrote: >> Is there a way to set a LABEL BACKGROUNDCOLOR to render transparent just >> pixels of a particular color instead of changing all pixels to the specified >> color? My situation is regarding contour line labels. I want the label to >> follow the contour line's center, but I would like just the parts of the >> contour line behind the labels to be knocked out, leaving the background >> otherwise untouched. In this case the color of the layer just below the >> contour lines varies across the map (it's a shaded relief layer), so setting >> BACKGOUNDCOLOR to a specific value doesn't give me the effect I want. Any >> solutions? >> >> - Bill Thoen >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From boesiii at yahoo.com Fri Feb 13 09:01:32 2009 From: boesiii at yahoo.com (boesiii) Date: Fri, 13 Feb 2009 09:01:32 -0800 (PST) Subject: [mapserver-users] How to open a MPEG file from mapserver Message-ID: <1234544492264-2322350.post@n2.nabble.com> I will have a shapefile with an attribute that points to the location of a MPEG file. Is there any way to open that file once it is selected by the user. -- View this message in context: http://n2.nabble.com/How-to-open-a-MPEG-file-from-mapserver-tp2322350p2322350.html Sent from the Mapserver - User mailing list archive at Nabble.com. From MMaganti at oriongis.com Fri Feb 13 11:20:00 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Fri, 13 Feb 2009 14:20:00 -0500 Subject: [mapserver-users] Scalebar (and C# mapscript) issue Message-ID: Hello I am having strange issue with scalebar. I have scalebar displayed on map (embed) and scale units are set to miles. It has size of 200x10 pixels. It shows up fine on the map. Then at run time (using C# map script), I just change the units to feet or meters and the bar size shrinks (to almost 10 pixels length), which appears strange to me. Why would the scalebar length changes by changing units. Is there any other setting I need to set to maintain the same scalebar size? This works fine (or not noticeable) for maps which have extents at city level. I am testing on map which displays Ontario province (Canada). Also, you need to have projection elements defined at both map and layer level. In my case, the projection is same (WGS 1984). Thanks Murty -------------- next part -------------- An HTML attachment was scrubbed... URL: From patilvikram at gmail.com Fri Feb 13 12:03:57 2009 From: patilvikram at gmail.com (vikram_vap) Date: Fri, 13 Feb 2009 12:03:57 -0800 (PST) Subject: [mapserver-users] newbie: Error in first atttempt to use postgis with mapserver? In-Reply-To: <749300.75708.qm@web58201.mail.re3.yahoo.com> References: <749300.75708.qm@web58201.mail.re3.yahoo.com> Message-ID: <1234555437012-2323496.post@n2.nabble.com> Hello, I have same problem as Saka. I was not able to get mapfile and positgis working together. I am getting empty page when I am trying to render map file containing SQL query to postgis. Saka it will be great if you can share your experience personally. Thanks everyone. Vikram Saka Royban wrote: > > > Hi everyone. > i've used workshop material of FOSS4G2007 (PostGIS workshop)to learn > postgis along with its data. but there is a problem > i got this error in first attempt to retrieve data from postgis: > > msDrawMap(): > Image handling error. Failed to draw layer named 'bc_municipality'. > prepare_database(): Query error. Error declaring cursor: ERROR: column > "oid" does not exist LINE 1: > ...inary(force_collection(force_2d(the_geom)),'NDR'),OID::text ... ^ > With query string: > DECLARE mycursor BINARY CURSOR FOR SELECT > asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from > bc_municipality WHERE the_geom && setSRID('BOX3D(458426.1 > 260651.497368421,1943216.4 > 1373313.90263158)'::BOX3D, find_srid('','bc_municipality ','the_geom') > ) msPOSTGISLayerRetrievePGVersion(): Query error. Error executing > POSTGIS statement (msPOSTGISLayerRetrievePGVersion():select > substring(version() from 12 for (position('on' in version()) - 13)) > > i don't know what causes the problem although it sounds easy. > THX > > > > > -----Inline Attachment Follows----- > > _______________________________________________ > postgis-users mailing list > postgis-users at postgis.refractions.net > http://postgis.refractions.net/mailman/listinfo/postgis-users > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/newbie%3A-Error-in-first-atttempt-to-use-postgis-with-mapserver--tp2161688p2323496.html Sent from the Mapserver - User mailing list archive at Nabble.com. From j.l.h.hartmann at uva.nl Fri Feb 13 13:36:33 2009 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Fri, 13 Feb 2009 22:36:33 +0100 Subject: [mapserver-users] MapServer conferences on mapserver.org Message-ID: <4995E7E1.80002@uva.nl> Hi folks, While zapping around the internet, I stumbled over this site: http://old-mapserver.gis.umn.edu/mum/index2003.html It's the proceedings of the first MapServer conference at the University of Minnesota, on the beautiful campus of St. Paul, June 6-7 2003. I remember that conference with much pleasure , and I guess more people do, as this was the first time MapServer developers and users met face to face, including MapServer's mother and father (isn't that a weird idea, parents meeting for the first time long after their child was born?). And Frank Warmerdam wasn't even there! Wouldn't it be a nice idea to put all MapServer conferences somewhere on the MapServer.org site? Much of it has only historical value of course, but there have been some very interesting talks and workshops in all those years. And who said history isn't important? Jan From jmckenna at gatewaygeomatics.com Fri Feb 13 14:44:05 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 13 Feb 2009 17:44:05 -0500 Subject: [mapserver-users] MapServer conferences on mapserver.org In-Reply-To: <4995E7E1.80002@uva.nl> References: <4995E7E1.80002@uva.nl> Message-ID: <4995F7B5.9000703@gatewaygeomatics.com> Jan Hartmann wrote: > Wouldn't it be a nice > idea to put all MapServer conferences somewhere on the MapServer.org > site? Jan, There is a wiki page for Conferences (http://trac.osgeo.org/mapserver/wiki/Conferences) please feel free to edit it accordingly. That page is linked from this mapserver.org page: http://www.mapserver.org/community/index.html -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From sdc at sdc.com.au Fri Feb 13 16:54:28 2009 From: sdc at sdc.com.au (Stephen Davies) Date: Sat, 14 Feb 2009 11:24:28 +1030 Subject: AW: [mapserver-users] Mapserver layer selects In-Reply-To: <4FBC13C3CB49244088DD095B32B5D4CD0ABE1B@KS-EVS1.smi.sachsen.de> References: <200902121525.10951.sdc@sdc.com.au> <4FBC13C3CB49244088DD095B32B5D4CD0ABE1B@KS-EVS1.smi.sachsen.de> Message-ID: <200902141124.28137.sdc@sdc.com.au> I agree that my problem is more PostGIS related than Mapserver but it did arise from a Mapserver session and this list is usually very helpful. In addition, the constraint that seems to be in question is the extent constraint added by Mapserver. Swip2 and swip3 are views: benparts=# \d swip2 View "public.swip2" Column | Type | Modifiers ----------+-----------------------------+----------- rdate | timestamp without time zone | state | numeric | pid | integer | location | text | geom | text | View definition: SELECT max(reading.rdate) AS rdate, sum(reading.rval) AS state, probe.id AS pid, max(probe.location) AS location, max(probe.geom::text) AS geom FROM probe, sensor, switch, reading WHERE probe.id = sensor.probe_id AND sensor.id = reading.sensor_id AND probe.switch_id = switch.id AND sensor.sensor_type::text = 'C'::text GROUP BY probe.id, reading.rdate ORDER BY max(reading.rdate) DESC; benparts=# \d swip3 View "public.swip3" Column | Type | Modifiers --------+-----------------------------+----------- id | integer | zname | text | pid | integer | geom | geometry | rdate | timestamp without time zone | View definition: SELECT DISTINCT zone.id, zone.name AS zname, probe.id AS pid, probe.geom, reading.rdate FROM reading, sensor, zone, probe, switch WHERE reading.sensor_id = sensor.id AND sensor.zone = zone.id AND zone.probe_id = probe.id AND probe.switch_id = switch.id AND sensor.sensor_type::text = 'C'::text AND reading.rval = 1::numeric ORDER BY zone.id, zone.name, probe.id, probe.geom, reading.rdate; They are used to display irrigation probe and zone status in Mapserver layers. The queries (should) return the same probe, switch and sensors - and without the extent constraint (as in query 3), they do. Cheers and thanks, Stephen On Friday 13 February 2009 19:27:55 Eichner, Andreas - SID-NLKM wrote: > Altough this is more PostgreSQL/PostGIS related and should go to there > list but I tried it and... > strange, I can not reproduce your problem. This is what I did: > > create table swip3 ( > id int, > zname varchar(20), > pid int, > geom geometry, > rdate timestamp > ); > insert into swip3 values ( 28, 'Zone 2', 607, geomfromewkb( decode( > '0101000020BB1000007ADFF8DA335161406551D845D17541C0', 'hex')), > '2009-02-12 13:30:00'::timestamp ); > > create table probe ( > int id, > int logger_id > ); > insert into probe values ( 607, 1 ); > > create table logger ( > int id, > int client_id > ); > insert into logger values ( 1, 120 ); > > SELECT * from swip3 WHERE (pid in (select probe.id from probe where > logger_id in (select id from logger where client_id=120)) and > rdate='2009-02-12 13:30:00') and (geom && setSRID( 'BOX3D(138.5356633 > -34.9225467,138.5397151 -34.9184949)'::BOX3D,4283) ); > > id | zname | pid | geom > > | rdate > > ----+--------+-----+---------------------------------------------------- > +--------------------- > 28 | Zone 2 | 607 | 0101000020BB1000007ADFF8DA335161406551D845D17541C0 > > | 2009-02-12 13:30:00 > > (1 Zeile) > > So I believe this has really nothing to do with MS. -- ============================================================================= Stephen Davies Consulting P/L Voice: 08-8177 1595 Adelaide, South Australia. Fax : 08-8177 0133 Computing & Network solutions. Mobile:040 304 0583 VoIP:sip:1132210 at sip1.bbpglobal.com From j.l.h.hartmann at uva.nl Fri Feb 13 23:21:52 2009 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Sat, 14 Feb 2009 08:21:52 +0100 Subject: [mapserver-users] MapServer conferences on mapserver.org In-Reply-To: <4995F7B5.9000703@gatewaygeomatics.com> References: <4995E7E1.80002@uva.nl> <4995F7B5.9000703@gatewaygeomatics.com> Message-ID: <49967110.8000109@uva.nl> Hi Jef, I got an Internal Server Error when I tried to access that page this morning. Even so, the page of the first conference (http://old-mapserver.gis.umn.edu/mum/index2003.html) is on the old U. of Minnesota server, that hosted MapServer for so long a period (and very grateful we are to them for it). I don't think it will remain there for ever. If I remember well, the second conference in Ottawa isn't on the Wiki either. Isn't it possible to copy de proceedings of those two "parental" conferences (in more than one sense of the word :-) ) to mapserver.org? Jan Jeff McKenna wrote: > Jan Hartmann wrote: >> Wouldn't it be a nice idea to put all MapServer conferences somewhere >> on the MapServer.org site? > > Jan, > > There is a wiki page for Conferences > (http://trac.osgeo.org/mapserver/wiki/Conferences) please feel free to > edit it accordingly. > > That page is linked from this mapserver.org page: > http://www.mapserver.org/community/index.html > > -jeff > > From jmckenna at gatewaygeomatics.com Fri Feb 13 23:35:39 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sat, 14 Feb 2009 02:35:39 -0500 Subject: [mapserver-users] MapServer conferences on mapserver.org In-Reply-To: <49967110.8000109@uva.nl> References: <4995E7E1.80002@uva.nl> <4995F7B5.9000703@gatewaygeomatics.com> <49967110.8000109@uva.nl> Message-ID: <4996744B.6040904@gatewaygeomatics.com> Jan Hartmann wrote: > Hi Jef, > > I got an Internal Server Error when I tried to access that page this > morning. Even so, the page of the first conference > (http://old-mapserver.gis.umn.edu/mum/index2003.html) is on the old U. > of Minnesota server, that hosted MapServer for so long a period (and > very grateful we are to them for it). I don't think it will remain there > for ever. If I remember well, the second conference in Ottawa isn't on > the Wiki either. Isn't it possible to copy de proceedings of those two > "parental" conferences (in more than one sense of the word :-) ) to > mapserver.org? > Hi Jan, I have hit that Trac error before (sometimes Trac reports "database locked", or you get an Internal Server Error)...but give it another try (works for me now): http://trac.osgeo.org/mapserver/wiki/Conferences -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From j.l.h.hartmann at uva.nl Sat Feb 14 07:05:08 2009 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Sat, 14 Feb 2009 16:05:08 +0100 Subject: [mapserver-users] MapServer conferences on mapserver.org In-Reply-To: <4995F7B5.9000703@gatewaygeomatics.com> References: <4995E7E1.80002@uva.nl> <4995F7B5.9000703@gatewaygeomatics.com> Message-ID: <4996DDA4.6070500@uva.nl> Jeff McKenna wrote: > There is a wiki page for Conferences > (http://trac.osgeo.org/mapserver/wiki/Conferences) please feel free to > edit it accordingly. > That page is linked from this mapserver.org page: > http://www.mapserver.org/community/index.html > I added the link to the old site, and copied the complete conference proceedings to my server in Amsterdam (http://mapserver.sara.nl/conferences/2003/mum/), in case the old site goes down. We wouldn't like to miss Steve Lime presiding over his first motley crew, eating hamburgers on the sidewalks of Minneapolis, or (in Daniel's case) drinking massive tankards of excellent Minnesota beer, wouldn't we? Pity I am not on that picture myself :-) Jan From bamerbalazs at gmail.com Sun Feb 15 00:15:25 2009 From: bamerbalazs at gmail.com (=?UTF-8?B?QmFsw6F6cyBCw6FtZXI=?=) Date: Sun, 15 Feb 2009 09:15:25 +0100 Subject: [mapserver-users] GetFeatureInfo returns no attributes Message-ID: Hi All, I spent days on searching the reason why a WMS GetFeatureInfo request returns matches without attributes. I found the solution in Google, but think this should be included in the Mapserver docs WMS part, or Mapfile Layer part. Well, I could have also read the OGC WMS documentation, but didn't think anything else is necessary. So the solution is setting ows_include_items for layer metadata like LAYER NAME szerkesztheto METADATA "DESCRIPTION" "szerkesztheto" "wms_title" "szerkesztheto" "ows_include_items" "all" # or comma-separated list of attributes END ... best regards: Bal?zs B?mer From death_knight0911 at yahoo.com Sun Feb 15 04:08:38 2009 From: death_knight0911 at yahoo.com (MeLv1n wAuRaN) Date: Sun, 15 Feb 2009 04:08:38 -0800 (PST) Subject: [mapserver-users] cannot display my map..please help Message-ID: <587153.63248.qm@web54207.mail.re2.yahoo.com> Hi all, i recently create a map with a really big raster file as my background map. The background map is 16800 x 22000 in dimensions, and 1.03 GB in size. here are the errors i got: Warning: [MapServer Error]: msSaveImage(): (/tmp/ms_tmp/123469655152481.gif) in C:\ms4w\apps\maplab-2.2\htdocs\mapedit\preview.php on line 474 Warning: [MapServer Error]: msSHPOpenFile(): (/ms4w/apps///latihan/map/../data/minut/../data/minut/shape/atm.shp) in C:\ms4w\apps\maplab-2.2\htdocs\mapedit\preview.php on line 474 Warning: [MapServer Error]: msDrawRaster(): (../data/minut/all_raster.tif) in C:\ms4w\apps\maplab-2.2\htdocs\mapedit\preview.php on line 474 Warning: [MapServer Error]: processIcon(): Error while save GD image to disk (/tmp/ms_tmp/1234696551_0_0_20_10.gif). in C:\ms4w\apps\maplab-2.2\htdocs\mapedit\preview.php on line 474 Warning: [MapServer Error]: msSaveImage(): (/tmp/ms_tmp/1234696551_0_0_20_10.gif) in C:\ms4w\apps\maplab-2.2\htdocs\mapedit\preview.php on line 474 Warning: [MapServer Error]: msInsertHashTable: Invalid hash table or key in C:\ms4w\apps\maplab-2.2\htdocs\mapedit\preview.php on line 474 Warning: [MapServer Error]: processIcon(): Error while save GD image to disk (/tmp/ms_tmp/1234696551_1_0_20_10.gif). in C:\ms4w\apps\maplab-2.2\htdocs\mapedit\preview.php on line 474 Warning: [MapServer Error]: msSaveImage(): (/tmp/ms_tmp/1234696551_1_0_20_10.gif) in C:\ms4w\apps\maplab-2.2\htdocs\mapedit\preview.php on line 474 Warning: [MapServer Error]: msInsertHashTable: Invalid hash table or key in C:\ms4w\apps\maplab-2.2\htdocs\mapedit\preview.php on line 474 Fatal error: Failed writing image to /tmp/ms_tmp/123469655152481.gif in C:\ms4w\apps\maplab-2.2\htdocs\mapedit\preview.php on line 474 andthis is my .MAP details: MAP ? NAME "Minahasa Utara" ? STATUS ON ? EXTENT 702000 140000 744000 195000 ? SIZE 512 512 ? SHAPEPATH "../data/minut" ? SYMBOLSET "../etc/symbols.sym" ? FONTSET "../etc/Vera.ttf" ? UNITS DD ? WEB ??? IMAGEPATH "/tmp/ms_tmp/" ??? IMAGEURL "/ms_tmp/" ? END ? PROJECTION ??? "init=epsg:23851" ? END ? LAYER ??? NAME "background" ??? STATUS ON ??? DATA "../data/minut/all_raster.tif" ??? TYPE RASTER ? END ? LAYER ??? NAME "ATM" ??? STATUS ON ??? DATA "../data/minut/shape/atm.shp" ??? TYPE POINT ??? CLASS ????? COLOR -1 -1 -1 ????? OUTLINECOLOR 0 0 0 ??? END ? END END Thanks for the help, any idea will be much appreciated Melvin -------------- next part -------------- An HTML attachment was scrubbed... URL: From rafa.informatica at gmail.com Sun Feb 15 08:42:17 2009 From: rafa.informatica at gmail.com (Rafa) Date: Sun, 15 Feb 2009 13:42:17 -0300 Subject: [mapserver-users] =?iso-8859-1?q?Caminhos_Geol=F3gicos?= Message-ID: Hi! I would show my last job for you... http://www.caminhosgeologicos.rj.gov.br/novo/mapa.html Flash / Mapserver / PHP / PostgreSQL Send your opinions! A hug! http://www.caminhosgeologicos.rj.gov.br/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From jose.maria.michia at gmail.com Sun Feb 15 11:15:45 2009 From: jose.maria.michia at gmail.com (=?ISO-8859-1?Q?Jos=E9_Mar=EDa_Michia?=) Date: Sun, 15 Feb 2009 17:15:45 -0200 Subject: [mapserver-users] cannot display my map..please help In-Reply-To: <587153.63248.qm@web54207.mail.re2.yahoo.com> References: <587153.63248.qm@web54207.mail.re2.yahoo.com> Message-ID: 2009/2/15 MeLv1n wAuRaN > > Hi all, > > i recently create a map with a really big raster file as my background map. The background map is 16800 x 22000 in dimensions, and 1.03 GB in size. > > > here are the errors i got: > > Warning: [MapServer Error]: msSaveImage(): (/tmp/ms_tmp/123469655152481.gif) in C:\ms4w\apps\maplab-2.2\htdocs\mapedit\preview.php on line 474 > > Warning: [MapServer Error]: msSHPOpenFile(): (/ms4w/apps///latihan/map/../data/minut/../data/minut/shape/atm.shp) in C:\ms4w\apps\maplab-2.2\htdocs\mapedit\preview.php on line 474 > > Warning: [MapServer Error]: msDrawRaster(): (../data/minut/all_raster.tif) in C:\ms4w\apps\maplab-2.2\htdocs\mapedit\preview.php on line 474 > > Warning: [MapServer Error]: processIcon(): Error while save GD image to disk (/tmp/ms_tmp/1234696551_0_0_20_10.gif). in C:\ms4w\apps\maplab-2.2\htdocs\mapedit\preview.php on line 474 > > Warning: [MapServer Error]: msSaveImage(): (/tmp/ms_tmp/1234696551_0_0_20_10.gif) in C:\ms4w\apps\maplab-2.2\htdocs\mapedit\preview.php on line 474 > > Warning: [MapServer Error]: msInsertHashTable: Invalid hash table or key in C:\ms4w\apps\maplab-2.2\htdocs\mapedit\preview.php on line 474 > > Warning: [MapServer Error]: processIcon(): Error while save GD image to disk (/tmp/ms_tmp/1234696551_1_0_20_10.gif). in C:\ms4w\apps\maplab-2.2\htdocs\mapedit\preview.php on line 474 > > Warning: [MapServer Error]: msSaveImage(): (/tmp/ms_tmp/1234696551_1_0_20_10.gif) in C:\ms4w\apps\maplab-2.2\htdocs\mapedit\preview.php on line 474 > > Warning: [MapServer Error]: msInsertHashTable: Invalid hash table or key in C:\ms4w\apps\maplab-2.2\htdocs\mapedit\preview.php on line 474 > > Fatal error: Failed writing image to /tmp/ms_tmp/123469655152481.gif in C:\ms4w\apps\maplab-2.2\htdocs\mapedit\preview.php on line 474 > > > andthis is my .MAP details: > > MAP > NAME "Minahasa Utara" > STATUS ON > EXTENT 702000 140000 744000 195000 > SIZE 512 512 > SHAPEPATH "../data/minut" > SYMBOLSET "../etc/symbols.sym" > FONTSET "../etc/Vera.ttf" > UNITS DD > > WEB > IMAGEPATH "/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > END > > PROJECTION > "init=epsg:23851" > END > > LAYER > NAME "background" > STATUS ON > DATA "../data/minut/all_raster.tif" > TYPE RASTER > END > > LAYER > NAME "ATM" > STATUS ON > DATA "../data/minut/shape/atm.shp" > TYPE POINT > > CLASS > COLOR -1 -1 -1 > OUTLINECOLOR 0 0 0 > END > > END > END > > > Thanks for the help, any idea will be much appreciated Hi Melvin! My advice es very very basic, but, maybe useful to you: make sure that folder "/tmp/ms_tmp/" have write permissions to the user that run the process. Also, make sure that you have enough free space (at least, the same space that the background image). Secondly, make sure that the same user have permissions to read all files needed (shapes and raster). I hope to be useful! Jos? Mar?a > Melvin > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From kmanoj-pg7 at iiitmk.ac.in Sun Feb 15 21:42:47 2009 From: kmanoj-pg7 at iiitmk.ac.in (kapilmanoj) Date: Sun, 15 Feb 2009 21:42:47 -0800 (PST) Subject: [mapserver-users] gmap-ms46 demo map not rendering properly In-Reply-To: <49956AE9.1070404@gatewaygeomatics.com> References: <9ab9b8cf0902130332od06062bj7dc688abeef94c5@mail.gmail.com> <49956AE9.1070404@gatewaygeomatics.com> Message-ID: <1234762967263-2333307.post@n2.nabble.com> wow!!!!!!!! its great!!!!!!!! my gmap works fine....... thank you very much for immediate reply........ regards kapilmanoj Jeff McKenna wrote: > > kmanoj-pg7 kmanoj-pg7 wrote: >> hello users... >> >> I am a newbie to mapserver. i am trying to get the gamp demo to run in >> my >> machine fedora 9. i have installed mapserver 5.0.3-3 and php-mapserver >> 5.0.3-3 extension for php/mapscripting. Moreover i installed all the >> libraries and packges whatever mentioned in the installation >> documentation >> perfectly. >> >> i have added the AddTypes in the httpd.cong. Perhaps i have made the >> edits >> in the php.ini file. now when i call the >> >> http://localhost/gmap/gmap75.phtml >> >> i stunned to see everything is projecting except the map is not >> rendering. >> at the beginning i thought it might be a problem of the java mode is >> enabled >> then i tried to disabled that but i failed it was also not working means >> the >> button was not working.... Then i looked into the httpd error log file >> ... >> i got this following error............ >> >> [Wed Feb 11 15:06:53 2009] [error] [client 127.0.0.1] PHP Notice: >> Undefined >> variable: HTTP_POST_VARS in /var/www/html/gmap-ms46/ >> htdocs/gmap75.inc.php on >> line 40, referer: >> [Wed Feb 11 15:06:54 2009] [error] [client 127.0.0.1] PHP Notice: >> Undefined >> variable: HTTP_GET_VARS in /var/www/html/gmap-ms46/htdocs/gmap75.inc.php >> on >> line 42, referer: >> [Wed Feb 11 15:06:54 2009] [error] [client 127.0.0.1] PHP Notice: Use of >> undefined constant MS_GIF - assumed 'MS_GIF' in >> /var/www/html/gmap-ms46/htdocs/gmap75.inc.php on line 53, referer:// >> [Wed Feb 11 15:06:54 2009] [error] [client 127.0.0.1] PHP Notice: Use of >> undefined constant MS_GIF - assumed 'MS_GIF' in >> /var/www/html/gmap-ms46/htdocs/gmap75.inc.php on line 54, referer: >> [Wed Feb 11 15:06:57 2009] [error] [client 127.0.0.1] PHP Notice: >> Undefined >> index: MAP_NAME in /var/www/html/gmap-ms46/htdocs/gmap75.phtml on line >> 589, >> referer:// >> [Wed Feb 11 15:07:16 2009] [error] [client 127.0.0.1] File does not >> exist: >> /var/www/html/gmap-ms46/htdocs/netscape >> >> > > The GMap demo is very old and requires you to change your php.ini > settings for error reporting to not show notices: > > error_reporting = E_ALL & ~E_NOTICE > > > -jeff > > > > -- > Jeff McKenna > FOSS4G Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/gmap-ms46-demo-map-not-rendering-properly-tp2320776p2333307.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Espen.Messel at ffi.no Sun Feb 15 22:55:38 2009 From: Espen.Messel at ffi.no (Espen.Messel at ffi.no) Date: Mon, 16 Feb 2009 07:55:38 +0100 Subject: [mapserver-users] GetFeatureInfo and HDF5 Message-ID: Hi all.. I'm having problems with HDF5 raster files and GetFeatureInfo with MapServer. When trying to get some pixel data out, I always get the Empty template from the WEB section. Is it some special way to handle HDF5 files? When I use gdal_translate and convert the file into GTiff and change the DATA line in my mapfile everything works fine. I probably get 100 HDF5 images an hour, so I hope to use them without converting them into geotiffs. Regards, Espen Messel MAPFILE: LAYER NAME "radar" TYPE RASTER DUMP TRUE STATUS OFF DATA 'HDF5:"/tmp/data/aeqd-1000.hdf"://image1/data' # DATA test.tif HEADER "/etc/templates/header.html" FOOTER "/etc/templates/footer.html" TEMPLATE "/etc/templates/radar.html" TOLERANCE 10 TOLERANCEUNITS miles OPACITY 90 PROJECTION "init=epsg:4326" END INCLUDE "radar_metadata.map" INCLUDE "radar_color.map" END ---------------------------------------------------------------------- Espen Messel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sadiqueshadab at gmail.com Sun Feb 15 21:15:36 2009 From: sadiqueshadab at gmail.com (MOHAMMED SADIQUE SHADAB) Date: Mon, 16 Feb 2009 10:45:36 +0530 Subject: [mapserver-users] How to place a dynamic object in a map Message-ID: Hi, i just want to place a dynamic object in map using POSTGRESQL. when i place an object statically using POINT in mapfile,i am getting a point as specified in *attachment* please see that too but when i want to place the same object dynamically i am not able to do that, For that i have created one table in postgresql as shown below *create table geometry(geom varchar,srid int); insert into geometry values('POINTS(0 0)',2); select * from geometry; geom | srid ------------+------ POINT(0 0) | 2 *i have linked the above database using mapfile as *# This is our "Dynamic Object" mapfile NAME "object" SIZE 800 600 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 WEB TEMPLATE "/opt/fgs/www/htdocs/db.html" IMAGEPATH "/opt/fgs/www/htdocs/tmp/" IMAGEURL "/tmp/" END LAYER NAME "data" CONNECTIONTYPE POSTGIS NAME "postgres" CONNECTION "host=localhost port=5432 dbname=postgres user=postgres password=hellopostgres " DATA "geom from geometry" STATUS ON TYPE POINT CLASS STYLE #SYMBOL 'circle' SIZE 30 COLOR 229 100 225 END END FEATURE END END SYMBOL TYPE ellipse FILLED true POINT 10 10 END END END END END END END * i am not getting any point on the map, it shows only the blank image without point. will anyone help me to overcome this problem and make me clear my connection is correct thanks Regards SHADAB -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: staticmapoutput.png Type: image/png Size: 231546 bytes Desc: not available URL: From sadiqueshadab at gmail.com Mon Feb 16 04:51:59 2009 From: sadiqueshadab at gmail.com (MOHAMMED SADIQUE SHADAB) Date: Mon, 16 Feb 2009 18:21:59 +0530 Subject: [mapserver-users] Re: How to place a dynamic object in a map In-Reply-To: References: Message-ID: On 2/16/09, MOHAMMED SADIQUE SHADAB wrote: > Hi, > i just want to place a dynamic object in map using POSTGRESQL. > when i place an object statically using POINT in mapfile,i am getting a > point as specified in *attachment* please see that too > > but when i want to place the same object dynamically i am not able to do > that, > For that i have created one table in postgresql as shown below > > *create table geometry(geom varchar,srid int); > insert into geometry values('POINTS(0 0)',2); > select * from geometry; > geom | srid > ------------+------ > POINT(0 0) | 2 > > > *i have linked the above database using mapfile as > > *# This is our "Dynamic Object" mapfile > NAME "object" > SIZE 800 600 > IMAGECOLOR 249 245 186 > IMAGETYPE png > EXTENT -1.00 -1.00 1.00 1.00 > WEB > TEMPLATE "/opt/fgs/www/htdocs/db.html" > IMAGEPATH "/opt/fgs/www/htdocs/tmp/" > IMAGEURL "/tmp/" > END > LAYER > NAME "data" > CONNECTIONTYPE POSTGIS > NAME "postgres" > CONNECTION "host=localhost port=5432 dbname=postgres user=postgres > password=hellopostgres " > DATA "geom from geometry" > STATUS ON > TYPE POINT > CLASS > STYLE > #SYMBOL 'circle' > SIZE 30 > COLOR 229 100 225 > END > END > FEATURE > END > END > SYMBOL > TYPE ellipse > FILLED true > POINT > 10 10 > END > END > END > END > END > END > END > * > i am not getting any point on the map, it shows only the blank image > without point. > > will anyone help me to overcome this problem and make me clear my > connection > is correct > > thanks > > Regards > SHADAB > From massimo.ferraguto at ssf.fi Mon Feb 16 06:49:32 2009 From: massimo.ferraguto at ssf.fi (MassimoF) Date: Mon, 16 Feb 2009 06:49:32 -0800 (PST) Subject: [mapserver-users] SOS response XML validity Message-ID: <1234795772083-2335205.post@n2.nabble.com> Hello, I have created a mapfile to generate a SOS response containing data from a database. I have understood that mapserver supports only "flat" reporting of the database columns to the xml response. My problem is that I wonder whether this kind of "flat" response is valid or not. If I try to validate the response against the xml schema I get errors. How can I solve this problem of xml validity against the schema? Here are the errors: *** Error start *** Element is not allowed under element . Reason: The following elements are expected at this location (see below) Annotations of type 'om:ObservationType' (see below) Base type for Observations. Observation is an act ("event"), whose result is an estimate of the value of a property of the feature of interest. The observed property may be any property associated with the type of the feature of interest. The following properties are inherited from AbstractFeatureType: Error location: om:ObservationCollection / om:member / om:Observation / observedProperty Details cvc-model-group: Element unexpected by type 'om:ObservationType' of element . cvc-elt.5.2.1: The element is not valid with respect to the actual type definition 'om:ObservationType'. *** Error end *** after modifying observedProperty ==> om:observedProperty I get another error: *** Error start *** Text 'temperature' is not allowed for element . The element declaration's content type is 'element-only'. Error location: om:ObservationCollection / om:member / om:Observation / om:observedProperty Details cvc-complex-type.2.3: Text 'temperature' is not allowed for element . The element declaration's content type is 'element-only'. cvc-elt.5.2.1: The element is not valid with respect to the actual type definition 'swe:PhenomenonPropertyType'. *** Error end *** Here is an example response that I get from my server: htb data Helsinki test bed data 20081127042000 temperature 25.399600 60.316000 25.399600 60.316000 25.399600 60.316000 37 20081127042054 60.316 25.3996 altitude 17 m 1 temperature -1.1 C instant 0 n/a n/a -- View this message in context: http://n2.nabble.com/SOS-response-XML-validity-tp2335205p2335205.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Tom.Kralidis at ec.gc.ca Mon Feb 16 07:00:43 2009 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Mon, 16 Feb 2009 10:00:43 -0500 Subject: [mapserver-users] SOS response XML validity In-Reply-To: <1234795772083-2335205.post@n2.nabble.com> References: <1234795772083-2335205.post@n2.nabble.com> Message-ID: > I have created a mapfile to generate a SOS response > containing data from a database. I have understood that > mapserver supports only "flat" reporting of the database > columns to the xml response. > > My problem is that I wonder whether this kind of "flat" > response is valid or not. If I try to validate the response > against the xml schema I get errors. > > How can I solve this problem of xml validity against the schema? > > Here are the errors: > > *** Error start *** > Element is not allowed under element > . > Reason: The following elements are expected at this > location (see below) > > > Annotations of type 'om:ObservationType' (see below) > Base type for Observations. > Observation is an act ("event"), whose result is an estimate > of the value of a property of the feature of interest. > The observed property may be any property associated with the > type of the feature of interest. > The following properties are inherited from AbstractFeatureType: > Error location: om:ObservationCollection / om:member / > om:Observation / observedProperty > Details > cvc-model-group: Element > unexpected by type 'om:ObservationType' of element . > cvc-elt.5.2.1: The element is not > valid with respect to the actual type definition 'om:ObservationType'. > *** Error end *** > > after modifying observedProperty ==> om:observedProperty I get another > error: > > *** Error start *** > Text 'temperature' is not allowed for element > . The element declaration's content type > is 'element-only'. > Error location: om:ObservationCollection / om:member / > om:Observation / om:observedProperty > Details > cvc-complex-type.2.3: Text 'temperature' is not > allowed for element . The element > declaration's content type is 'element-only'. > cvc-elt.5.2.1: The element is > not valid with > respect to the actual type definition > 'swe:PhenomenonPropertyType'. > *** Error end *** > > Here is an example response that I get from my server: > > > xmlns:ows="http://www.opengis.net/ows/1.1" > xmlns:swe="http://www.opengis.net/swe/1.0.1" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:sos="http://www.opengis.net/sos/1.0" > xmlns:om="http://www.opengis.net/om/1.0" gml:id="htb_offering" > xsi:schemaLocation="http://www.opengis.net/om/1.0 > http://schemas.opengis.net/om/1.0.0/om.xsd"> > htb > data > Helsinki > test bed data > > > > > 20081127042000 > > > > temperature > > > > > > 25.399600 60.316000 > 25.399600 60.316000 > > > > > 25.399600 60.316000 > > > 37 > 20081127042054 > 60.316 > 25.3996 > altitude > 17 > m > 1 > temperature > -1.1 > C > instant > 0 > n/a >
n/a
>
>
>
>
>
>
> Note that we're working on validating the SOS GetObservation output (see http://trac.osgeo.org/mapserver/ticket/2646), and what is in svn trunk is very close to a valid XML document. We're close to having this for 5.4. ..Tom From pal.kristensen at statkart.no Mon Feb 16 13:54:50 2009 From: pal.kristensen at statkart.no (paalkr) Date: Mon, 16 Feb 2009 13:54:50 -0800 (PST) Subject: [mapserver-users] Status on ticket 2582? Message-ID: <1234821290361-2337548.post@n2.nabble.com> Hi all devs! What is the status on ticket http://trac.osgeo.org/mapserver/ticket/2582 2582 ? Is this going to be included in 5.4? Regards, P?l Kristensen -- View this message in context: http://n2.nabble.com/Status-on-ticket-2582--tp2337548p2337548.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dmorissette at mapgears.com Mon Feb 16 13:58:07 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 16 Feb 2009 16:58:07 -0500 Subject: [mapserver-users] Status on ticket 2582? In-Reply-To: <1234821290361-2337548.post@n2.nabble.com> References: <1234821290361-2337548.post@n2.nabble.com> Message-ID: <4999E16F.30502@mapgears.com> paalkr wrote: > Hi all devs! > > What is the status on ticket http://trac.osgeo.org/mapserver/ticket/2582 > 2582 ? Is this going to be included in 5.4? > Yes, we'll take care of it for 5.4. Daniel -- Daniel Morissette http://www.mapgears.com/ From m.kofahl at gmx.net Mon Feb 16 14:17:36 2009 From: m.kofahl at gmx.net (Martin Kofahl) Date: Mon, 16 Feb 2009 23:17:36 +0100 Subject: [mapserver-users] Status on ticket 2582? In-Reply-To: <4999E16F.30502@mapgears.com> References: <1234821290361-2337548.post@n2.nabble.com> <4999E16F.30502@mapgears.com> Message-ID: <4999E600.6080405@gmx.net> Perfect! Although the solution described in ticket 1952 might be more flexible for future use. Daniel Morissette wrote: > paalkr wrote: >> Hi all devs! >> >> What is the status on ticket http://trac.osgeo.org/mapserver/ticket/2582 >> 2582 ? Is this going to be included in 5.4? >> > > Yes, we'll take care of it for 5.4. > > Daniel From dmorissette at mapgears.com Mon Feb 16 14:57:29 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 16 Feb 2009 17:57:29 -0500 Subject: [mapserver-users] Status on ticket 2582? In-Reply-To: <4999E600.6080405@gmx.net> References: <1234821290361-2337548.post@n2.nabble.com> <4999E16F.30502@mapgears.com> <4999E600.6080405@gmx.net> Message-ID: <4999EF59.2080004@mapgears.com> Martin Kofahl wrote: > Perfect! Although the solution described in ticket 1952 might be more > flexible for future use. > I think layers with status MS_DELETE should clearly be skipped, that's very straightforward and that's what #2582 will fix. With respect to adding a mechanism to hide specific layers, various approaches have been discussed in the past (see tickets #337 and #300 in addition to 1952) and we never came up to an agreement on the best way to go. It would be great to solve this one once for all, but unfortunately I'm on the road until next week and won't be able to participate in a discussion on this topic... maybe other dev's will be available to take the lead on this? Daniel > Daniel Morissette wrote: >> paalkr wrote: >>> Hi all devs! >>> >>> What is the status on ticket >>> http://trac.osgeo.org/mapserver/ticket/2582 >>> 2582 ? Is this going to be included in 5.4? >>> >> >> Yes, we'll take care of it for 5.4. >> >> Daniel > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ From tiedtke at gmail.com Mon Feb 16 19:48:37 2009 From: tiedtke at gmail.com (Thiago Tiedtke) Date: Tue, 17 Feb 2009 00:48:37 -0300 Subject: [mapserver-users] Tcl + Postgis Message-ID: <82108beb0902161948x7b1e9fbaucd5d32b3278730b6@mail.gmail.com> Hi, I'm trying to use the tcl mapscript to retrieve data from postgres+postgis database, but whitout success. The mapscript do not support the connectiontype postgis ? A error is generated in follow line from my mapfile: .... layer name "Munic?pios" status on connectiontype postgis <---- Error Here!! connection "user=postgres dbname=db_name host=localhost port=5432" data "the_geom from municipios" ... end I'm using tcl/tk8.5 and mapserver 5.2.1 under Windows XP... Thanks for advance, Thiago Tiedtke dos Reis -------------- next part -------------- An HTML attachment was scrubbed... URL: From massimo.ferraguto at ssf.fi Tue Feb 17 00:09:47 2009 From: massimo.ferraguto at ssf.fi (Massimo Ferraguto) Date: Tue, 17 Feb 2009 10:09:47 +0200 Subject: [mapserver-users] SOS response XML validity References: <1234795772083-2335205.post@n2.nabble.com> Message-ID: <6EEF55C8C52EAF478462702546102BDDD0E0E7@spock.ssf.fi> Very good, thanks for the reply, so we'll have to wait for the fix Best regards, Massimo Ferraguto -----Original Message----- From: Kralidis,Tom [Ontario] [mailto:Tom.Kralidis at ec.gc.ca] Sent: Mon 16 February 2009 17:01 To: Massimo Ferraguto; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] SOS response XML validity > I have created a mapfile to generate a SOS response > containing data from a database. I have understood that > mapserver supports only "flat" reporting of the database > columns to the xml response. > > My problem is that I wonder whether this kind of "flat" > response is valid or not. If I try to validate the response > against the xml schema I get errors. > > How can I solve this problem of xml validity against the schema? > > Here are the errors: > > *** Error start *** > Element is not allowed under element > . > Reason: The following elements are expected at this > location (see below) > > > Annotations of type 'om:ObservationType' (see below) > Base type for Observations. > Observation is an act ("event"), whose result is an estimate > of the value of a property of the feature of interest. > The observed property may be any property associated with the > type of the feature of interest. > The following properties are inherited from AbstractFeatureType: > Error location: om:ObservationCollection / om:member / > om:Observation / observedProperty > Details > cvc-model-group: Element > unexpected by type 'om:ObservationType' of element . > cvc-elt.5.2.1: The element is not > valid with respect to the actual type definition 'om:ObservationType'. > *** Error end *** > > after modifying observedProperty ==> om:observedProperty I get another > error: > > *** Error start *** > Text 'temperature' is not allowed for element > . The element declaration's content type > is 'element-only'. > Error location: om:ObservationCollection / om:member / > om:Observation / om:observedProperty > Details > cvc-complex-type.2.3: Text 'temperature' is not > allowed for element . The element > declaration's content type is 'element-only'. > cvc-elt.5.2.1: The element is > not valid with > respect to the actual type definition > 'swe:PhenomenonPropertyType'. > *** Error end *** > > Here is an example response that I get from my server: > > > xmlns:ows="http://www.opengis.net/ows/1.1" > xmlns:swe="http://www.opengis.net/swe/1.0.1" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:sos="http://www.opengis.net/sos/1.0" > xmlns:om="http://www.opengis.net/om/1.0" gml:id="htb_offering" > xsi:schemaLocation="http://www.opengis.net/om/1.0 > http://schemas.opengis.net/om/1.0.0/om.xsd"> > htb > data > Helsinki > test bed data > > > > > 20081127042000 > > > > temperature > > > > > > 25.399600 60.316000 > 25.399600 60.316000 > > > > > 25.399600 60.316000 > > > 37 > 20081127042054 > 60.316 > 25.3996 > altitude > 17 > m > 1 > temperature > -1.1 > C > instant > 0 > n/a >
n/a
>
>
>
>
>
>
> Note that we're working on validating the SOS GetObservation output (see http://trac.osgeo.org/mapserver/ticket/2646), and what is in svn trunk is very close to a valid XML document. We're close to having this for 5.4. ..Tom From schroeter at netgis.de Tue Feb 17 03:08:25 2009 From: schroeter at netgis.de (Sven Schroeter) Date: Tue, 17 Feb 2009 12:08:25 +0100 Subject: [mapserver-users] incorrect minscale using php mapscript Message-ID: Hi all, I'm using php mapscript (MS 5.2.1 on Windows) in my client and have problems with the minscale from the WEB-Section of my mapfile. For example if I set MINSCALE 10000 on an imgsize with 1618 x 907 pixels the minscale for creating an image is 17848 on an imgsize with 822 x 503 pixels the minscale is 16355 I get the same wrong scale setting the minscale with mapscript: $map->web->set(minscale, 10000); where is the error? Thanks Sven From pal.kristensen at statkart.no Tue Feb 17 06:53:10 2009 From: pal.kristensen at statkart.no (paalkr) Date: Tue, 17 Feb 2009 06:53:10 -0800 (PST) Subject: [mapserver-users] Status on ticket 2582? In-Reply-To: <4999E600.6080405@gmx.net> References: <1234821290361-2337548.post@n2.nabble.com> <4999E16F.30502@mapgears.com> <4999E600.6080405@gmx.net> Message-ID: <1234882390329-2341220.post@n2.nabble.com> Hi! Thanks Daniel for taking responsibility for this issue, which has been around for far to long :-) I agree that ticket 1952 discusses a more flexible functionality, but I don't think we need to make this more complicated than it is already. I can't see a situation where you would like to hide a layer from one service type, but not in an other (but thats my opinion). Fixing the 2582 bug would satisfy many of the user needs on this issue. Taking the GROUP functionality into consideration seems to be important, as this possibly could cause some mixup if a hidden layer is inside a group layer. What if all layers inside a GROUP is hidden? Should the group layer still be exposed in the capabilities document? I'd say yes, but other may have a different opinion. Regards, P?l Kristensen Martin Kofahl wrote: > > Perfect! Although the solution described in ticket 1952 might be more > flexible for future use. > > Daniel Morissette wrote: >> paalkr wrote: >>> Hi all devs! >>> >>> What is the status on ticket >>> http://trac.osgeo.org/mapserver/ticket/2582 >>> 2582 ? Is this going to be included in 5.4? >>> >> >> Yes, we'll take care of it for 5.4. >> >> Daniel > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/Status-on-ticket-2582--tp2337548p2341220.html Sent from the Mapserver - User mailing list archive at Nabble.com. From gautamvs at gmail.com Tue Feb 17 07:16:36 2009 From: gautamvs at gmail.com (gautamvs) Date: Tue, 17 Feb 2009 07:16:36 -0800 (PST) Subject: [mapserver-users] Pyhton mapscript import error Message-ID: <1234883796448-2341344.post@n2.nabble.com> I am getting error while importing mapscript in python >>> import mapscript Traceback (most recent call last): File "", line 1, in ? File "mapscript.py", line 7, in ? import _mapscript ImportError: /usr/local/lib/python2.4/site-packages/_mapscript.so: undefined symbol: _ZN3agg6gse5x7E when i removed the AGG suport in Mapserver , i am able to import without any error. But my application requires AGG support (ie. with Tilecache) I am using Mapserver 5.2.1, AGG 2.5, Python 2.4 on CentOS. Thanks for any help. Gautam -- View this message in context: http://n2.nabble.com/Pyhton-mapscript-import-error-tp2341344p2341344.html Sent from the Mapserver - User mailing list archive at Nabble.com. From brian.hulbert at linquest.com Tue Feb 17 08:12:36 2009 From: brian.hulbert at linquest.com (Hulbert, Brian) Date: Tue, 17 Feb 2009 11:12:36 -0500 Subject: [mapserver-users] Scalebar (and C# mapscript) issue In-Reply-To: References: Message-ID: <001c01c9911a$8df76df0$a9e649d0$@hulbert@linquest.com> Murty, It works fine for me using MapServer 5.0.2 with an equirectangular projection using a WGS84 geoid reference whether I'm zoomed to a world view or to a street-level view. Be sure you are setting the scalebar units member accordingly in C#. For example, scalebar.units = (int)OSGeo.MapServer.MS_UNITS.MS_FEET to set the units to feet. However, I have noted that it will appear garbled and squashed in width if you use units which are not meaningful for the current zoomed area. In other words, don't use inches when zoomed to a city or world view.the numbers are too large to display properly. Write a routine that sets the appropriate units based on the delta degrees that you are showing. For example, if the user chose English units (versus metric) and the current viewport spans roughly ~0.5 nautical miles, then set the units to inches. If the viewport is > 0.5 NM and < 1 NM, set the units to feet. Otherwise (the viewport spans more than 1 NM), set the units to miles. You can tweak this idea to suit your needs but this works well for me. Brian NOTE: The views expressed are the author's and do not necessarily reflect the official position of LinQuest Corporation or any of its subsidiaries or the organization providing Internet access. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Murty Maganti Sent: Friday, February 13, 2009 2:20 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Scalebar (and C# mapscript) issue Hello I am having strange issue with scalebar. I have scalebar displayed on map (embed) and scale units are set to miles. It has size of 200x10 pixels. It shows up fine on the map. Then at run time (using C# map script), I just change the units to feet or meters and the bar size shrinks (to almost 10 pixels length), which appears strange to me. Why would the scalebar length changes by changing units. Is there any other setting I need to set to maintain the same scalebar size? This works fine (or not noticeable) for maps which have extents at city level. I am testing on map which displays Ontario province (Canada). Also, you need to have projection elements defined at both map and layer level. In my case, the projection is same (WGS 1984). Thanks Murty -------------- next part -------------- An HTML attachment was scrubbed... URL: From greg at gregorycollins.net Tue Feb 17 09:10:10 2009 From: greg at gregorycollins.net (Gregory Collins) Date: Tue, 17 Feb 2009 12:10:10 -0500 Subject: [mapserver-users] Question re: city points layers and markers Message-ID: Hello all, Sorry if this question has an answer in the existing documentation but I've been struggling for days and can't find a solution. I'm trying to render a city points layer on a regional-level map. I want point markers to be placed for all of the cities which are important enough to get labels, but no markers for unlabeled cities. If I use a layer of type "point", I get markers for all of the points, which I don't want. The documentation says that for annotation layers, "Annotation means that a label point will be calculated for the features, but the feature itself will not be drawn although a marker symbol can be optionally drawn", but I can't seem to get it to draw the markers. What am I doing wrong? G. -- Gregory Collins From MMaganti at oriongis.com Tue Feb 17 09:29:29 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Tue, 17 Feb 2009 12:29:29 -0500 Subject: [mapserver-users] Scalebar (and C# mapscript) issue In-Reply-To: <001c01c9911a$8df76df0$a9e649d0$@hulbert@linquest.com> References: <001c01c9911a$8df76df0$a9e649d0$@hulbert@linquest.com> Message-ID: Hi Brian I had verified my code and there is no issue setting the units correctly in C#. In fact, I see the same issue setting the units to feet in map file directly. It seems there is some rounding issue when the scale values are too large. Please see the ticket http://trac.osgeo.org/mapserver/ticket/2890. Thanks a lot for your response. Murty From: Hulbert, Brian [mailto:brian.hulbert at linquest.com] Sent: Tuesday, February 17, 2009 11:13 AM To: Murty Maganti; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Scalebar (and C# mapscript) issue Murty, It works fine for me using MapServer 5.0.2 with an equirectangular projection using a WGS84 geoid reference whether I'm zoomed to a world view or to a street-level view. Be sure you are setting the scalebar units member accordingly in C#. For example, scalebar.units = (int)OSGeo.MapServer.MS_UNITS.MS_FEET to set the units to feet. However, I have noted that it will appear garbled and squashed in width if you use units which are not meaningful for the current zoomed area. In other words, don't use inches when zoomed to a city or world view...the numbers are too large to display properly. Write a routine that sets the appropriate units based on the delta degrees that you are showing. For example, if the user chose English units (versus metric) and the current viewport spans roughly ~0.5 nautical miles, then set the units to inches. If the viewport is > 0.5 NM and < 1 NM, set the units to feet. Otherwise (the viewport spans more than 1 NM), set the units to miles. You can tweak this idea to suit your needs but this works well for me. Brian NOTE: The views expressed are the author's and do not necessarily reflect the official position of LinQuest Corporation or any of its subsidiaries or the organization providing Internet access. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Murty Maganti Sent: Friday, February 13, 2009 2:20 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Scalebar (and C# mapscript) issue Hello I am having strange issue with scalebar. I have scalebar displayed on map (embed) and scale units are set to miles. It has size of 200x10 pixels. It shows up fine on the map. Then at run time (using C# map script), I just change the units to feet or meters and the bar size shrinks (to almost 10 pixels length), which appears strange to me. Why would the scalebar length changes by changing units. Is there any other setting I need to set to maintain the same scalebar size? This works fine (or not noticeable) for maps which have extents at city level. I am testing on map which displays Ontario province (Canada). Also, you need to have projection elements defined at both map and layer level. In my case, the projection is same (WGS 1984). Thanks Murty -------------- next part -------------- An HTML attachment was scrubbed... URL: From meierrom at gmail.com Tue Feb 17 10:04:17 2009 From: meierrom at gmail.com (Roman Meier) Date: Tue, 17 Feb 2009 18:04:17 -0000 Subject: [mapserver-users] Problem with search using msQueryByAttributes Message-ID: <000001c9912a$35260d70$550332ac@pcroman> Hi list One of my customers is facing a very strange problem. I spent quite some time trying to figure out where the problem is coming from, but now I'm giving up. The problem appears with php/mapscript v4.0.2. There are no plans right now to upgrade to a newer version. I use the msQueryByAttributes function to search for records. It's a bit strange and definitely a mistery to me: If I search for a string ending with "UF" or "uf", f.e. "525UF", I get the following message: Warning: [MapServer Error]: msQueryByAttributes(): No matching record(s) found. in [...]. The entry "525UF" is definitely there! If I search for the string "4028UF", msQueryByAttributes returns the entry "4028". Same thing is I search for the string "4028uf". Just for more complete info: Entries ending with different caracters, f.e. "4023A" are found. Is this not strange? Any ideas? Kind regards, Roman From woodbri at swoodbridge.com Tue Feb 17 10:17:32 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 17 Feb 2009 13:17:32 -0500 Subject: [mapserver-users] Question re: city points layers and markers In-Reply-To: References: Message-ID: <499AFF3C.7010605@swoodbridge.com> Gregory Collins wrote: > Hello all, > > Sorry if this question has an answer in the existing documentation but > I've been struggling for days and can't find a solution. > > I'm trying to render a city points layer on a regional-level map. I want > point markers to be placed for all of the cities which are important > enough to get labels, but no markers for unlabeled cities. > > If I use a layer of type "point", I get markers for all of the points, > which I don't want. The documentation says that for annotation layers, > "Annotation means that a label point will be calculated for the > features, but the feature itself will not be drawn although a marker > symbol can be optionally drawn", but I can't seem to get it to draw the > markers. > > What am I doing wrong? > > G. It would probably help if you show the LAYER definition from your mapfile. -Steve W From greg at gregorycollins.net Tue Feb 17 10:29:43 2009 From: greg at gregorycollins.net (Gregory Collins) Date: Tue, 17 Feb 2009 13:29:43 -0500 Subject: [mapserver-users] Question re: city points layers and markers In-Reply-To: <499AFF3C.7010605@swoodbridge.com> (Stephen Woodbridge's message of "Tue, 17 Feb 2009 13:17:32 -0500") References: <499AFF3C.7010605@swoodbridge.com> Message-ID: Stephen Woodbridge writes: > Gregory Collins wrote: >> Hello all, >> >> Sorry if this question has an answer in the existing documentation but >> I've been struggling for days and can't find a solution. >> >> I'm trying to render a city points layer on a regional-level map. I want >> point markers to be placed for all of the cities which are important >> enough to get labels, but no markers for unlabeled cities. >> >> If I use a layer of type "point", I get markers for all of the points, >> which I don't want. The documentation says that for annotation layers, >> "Annotation means that a label point will be calculated for the >> features, but the feature itself will not be drawn although a marker >> symbol can be optionally drawn", but I can't seem to get it to draw the >> markers. >> >> What am I doing wrong? >> >> G. > > It would probably help if you show the LAYER definition from your mapfile. > > -Steve W Here's an elided version (the rest of the classes in this layer are similar): ##### Layer NamedPlc ################################################### LAYER CONNECTION "MYSQL:Navteq,user=***,password=***,host=***,tables=NamedPlc" CONNECTIONTYPE OGR DATA "SELECT the_geom, poi_name, population, capital FROM NamedPlc WHERE MBRIntersects(GeomFromText('Polygon((%ominx% %ominy%, %ominx% %omaxy%,%omaxx% %omaxy%, %omaxx% %ominy%,%ominx% %ominy%))'), the_geom) ORDER BY population DESC" LABELCACHE on LABELITEM poi_name MINSCALEDENOM 3381.6146550891413 MAXSCALEDENOM 886496206.5436879 NAME "NamedPlc" TYPE annotation PROJECTION "proj=longlat" "ellps=WGS84" "datum=WGS84" END #projection #----------------------------------------------------------------- CLASS # country capital at level 0 OUTLINECOLOR 80 0 0 EXPRESSION ('[capital]' == '1') SYMBOL "unfilledcircle" OVERLAYCOLOR 80 0 0 OVERLAYOUTLINECOLOR 80 0 0 OVERLAYSYMBOL "star" OVERLAYSIZE 11.0 LABEL ANGLE 0.0 COLOR 255 255 255 FONT "roman" OUTLINECOLOR 0 0 0 PARTIALS False PRIORITY 10 SIZE 11.0 TYPE truetype END #(end label) SIZE 11.0 END #(end country capital at level 0) G. -- Gregory Collins From woklist at kyngchaos.com Tue Feb 17 10:42:40 2009 From: woklist at kyngchaos.com (William Kyngesburye) Date: Tue, 17 Feb 2009 12:42:40 -0600 Subject: [mapserver-users] trying new label positioning - no change Message-ID: <7DA25C07-8345-491D-B082-B268EE4802A5@kyngchaos.com> I'm trying the new label positioning improvements for polygons in trunk from http://trac.osgeo.org/mapserver/ticket/606 but AUTO seems to be ignoring the initial CC in the new ordering - with no collisions with other labels, all polygons are labelled at the UL corner of the polygon center. Are there special conditions for AUTO/CC to work? A typical label I'm trying is: LABEL COLOR 0 100 222 SHADOWCOLOR 218 218 218 SHADOWSIZE 1 1 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT helvetica-italic SIZE 9 POSITION AUTO WRAP '|' PRIORITY 5 MINFEATURESIZE 16 END AUTO: -------------- next part -------------- A non-text attachment was scrubbed... Name: Picture-1.png Type: image/png Size: 4279 bytes Desc: not available URL: -------------- next part -------------- POSITION CC does work to label polys at CC: -------------- next part -------------- A non-text attachment was scrubbed... Name: Picture-2.png Type: image/png Size: 4142 bytes Desc: not available URL: -------------- next part -------------- PS. the new gravity positioning is nice! ----- William Kyngesburye http://www.kyngchaos.com/ Earth: "Mostly harmless" - revised entry in the HitchHiker's Guide to the Galaxy From traviskirstine at gmail.com Tue Feb 17 10:51:13 2009 From: traviskirstine at gmail.com (Travis Kirstine) Date: Tue, 17 Feb 2009 13:51:13 -0500 Subject: [mapserver-users] How can I do a SQL text comparison in a mapfile? In-Reply-To: References: <681116190902121145l1d877fe1ofb835eaa07bd0979@mail.gmail.com> Message-ID: <681116190902171051x504aa475v59f34ea30c4dd340@mail.gmail.com> Sorry for the delay This is the exact query string DATA "geom from (select id as oid, geom from im_item where filename = 'DSM_UK.poly') as subquery using SRID=-1" 2009/2/12 thomas bonfort : > I don't see why you're a problem with that query string. From my > experience, there's a limitation when you need to mix single and > double quotes inside the sql expression. > > eg: > > DATA "way from (select way,osm_id ,leisure , landuse, name from > osm_polygon where leisure='park' or leisure='golf_course' or > landuse='recreation_ground' or landuse='cemetery') as foo using unique > osm_id using srid=900913" > > works fine. > > Travis, could you post your exact data statement, so we can check if > your problem isn't elsewhere? > > regards, > thomas > > > > On Thu, Feb 12, 2009 at 20:45, Travis Kirstine wrote: >> The following line does not work and I think it has something to do >> with the single quotes. When I use double quotes Postgres thinks I'm >> referring to a column name. Is there a way to escape the single >> quotes? >> DATA "geom from (select id as oid, geom from some_table where >> some_field = 'some_string') as myquery using SRID=-1" >> >> The following line works because I'm doing a numeric comparison. >> DATA "geom from (select id as oid, geom from some_table where >> some_field_number = 99) as myquery using SRID=-1" >> >> >> -- >> Travis K. >> >> Toronto, Canada >> ------------------------------------------------------------ >> "She knows there's no success like failure >> And that failure's no success at all." >> -Bob Dylan- >> ------------------------------------------------------------ >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > -- Travis K. Toronto, Canada ------------------------------------------------------------ "She knows there's no success like failure And that failure's no success at all." -Bob Dylan- ------------------------------------------------------------ From MMaganti at oriongis.com Tue Feb 17 12:06:57 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Tue, 17 Feb 2009 15:06:57 -0500 Subject: [mapserver-users] help on SQL Server 2008 + C# map script Message-ID: Hi After firing queryByShape() on SQL Server 2008 layer, getting junk characters for those field which are null (or have no value) in the database. Shows fine for those fields with some value. When I run any sample query on the table in query analyzer, I see the output as {null}. If the value is null in the database, I should be getting null reference or empty string (using C# map script i.e. shapeObj.values). Why I am getting junk characters. Appreciate any help. Thanks Murty -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Tue Feb 17 12:29:00 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 17 Feb 2009 14:29:00 -0600 Subject: [mapserver-users] trying new label positioning - no change In-Reply-To: <7DA25C07-8345-491D-B082-B268EE4802A5@kyngchaos.com> References: <7DA25C07-8345-491D-B082-B268EE4802A5@kyngchaos.com> Message-ID: <499AC9AC.5157.008F.0@dnr.state.mn.us> So what are pictures 1 & 2 representing? There's certainly a difference and I would have expected picture 2 to represent the new labeling with CC as the first choice. Steve >>> On 2/17/2009 at 12:42 PM, in message <7DA25C07-8345-491D-B082-B268EE4802A5 at kyngchaos.com>, William Kyngesburye wrote: > I'm trying the new label positioning improvements for polygons in > trunk from > > http://trac.osgeo.org/mapserver/ticket/606 > > but AUTO seems to be ignoring the initial CC in the new ordering - > with no collisions with other labels, all polygons are labelled at the > UL corner of the polygon center. > > Are there special conditions for AUTO/CC to work? A typical label I'm > trying is: > > LABEL > COLOR 0 100 222 > SHADOWCOLOR 218 218 218 > SHADOWSIZE 1 1 > OUTLINECOLOR 255 255 255 > TYPE TRUETYPE > FONT helvetica-italic > SIZE 9 > POSITION AUTO > WRAP '|' > PRIORITY 5 > MINFEATURESIZE 16 > END > > AUTO: From woklist at kyngchaos.com Tue Feb 17 12:45:44 2009 From: woklist at kyngchaos.com (William Kyngesburye) Date: Tue, 17 Feb 2009 14:45:44 -0600 Subject: [mapserver-users] trying new label positioning - no change In-Reply-To: <499AC9AC.5157.008F.0@dnr.state.mn.us> References: <7DA25C07-8345-491D-B082-B268EE4802A5@kyngchaos.com> <499AC9AC.5157.008F.0@dnr.state.mn.us> Message-ID: <482BA200-15BC-498A-8D74-75FF278CB5C1@kyngchaos.com> (Sorry, OSX mail habit, the images would be inline next to appropriate text descriptions) The first is POSITION AUTO. Not what I was expecting. The second is POSITION CC. What I was expecting for AUTO, now. On Feb 17, 2009, at 2:29 PM, Steve Lime wrote: > So what are pictures 1 & 2 representing? There's certainly a > difference and I would have expected > picture 2 to represent the new labeling with CC as the first choice. > > Steve > >>>> On 2/17/2009 at 12:42 PM, in message > <7DA25C07-8345-491D-B082-B268EE4802A5 at kyngchaos.com>, William > Kyngesburye > wrote: >> I'm trying the new label positioning improvements for polygons in >> trunk from >> >> http://trac.osgeo.org/mapserver/ticket/606 >> >> but AUTO seems to be ignoring the initial CC in the new ordering - >> with no collisions with other labels, all polygons are labelled at >> the >> UL corner of the polygon center. >> ----- William Kyngesburye http://www.kyngchaos.com/ The equator is so long, it could encircle the earth completely once. From m.kofahl at gmx.net Tue Feb 17 13:11:35 2009 From: m.kofahl at gmx.net (Martin Kofahl) Date: Tue, 17 Feb 2009 22:11:35 +0100 Subject: [mapserver-users] Status on ticket 2582? In-Reply-To: <1234882390329-2341220.post@n2.nabble.com> References: <1234821290361-2337548.post@n2.nabble.com> <4999E16F.30502@mapgears.com> <4999E600.6080405@gmx.net> <1234882390329-2341220.post@n2.nabble.com> Message-ID: <499B2807.7040304@gmx.net> Hm, I'm not certain sure if MS_DELETE is really a good value for the STATUS key. It's more an attribute ... 'STATUS ON, MS_DELETE'. Using MS_DELETE coequal with OFF would break the DEFAULT value which is quite useful when avoiding grouped layers -- I don't like nesting in the Capabilities document because of one simple copyright layer which can be hidden an set to default. As far as I can see there are three possible solutions: - adding MS_DELETE as an attribute to ON, OFF and DEFAULT (not sure how hard to implement) - adding a new keyword HIDDEN [false|true] coequal to STATUS - some kind of ows_hidden 'true' in the metadata (I'm neither sure when one could require a distinction by service type) Kind regards Martin paalkr wrote: > Hi! > > Thanks Daniel for taking responsibility for this issue, which has been > around for far to long :-) I agree that ticket 1952 discusses a more > flexible functionality, but I don't think we need to make this more > complicated than it is already. I can't see a situation where you would like > to hide a layer from one service type, but not in an other (but thats my > opinion). Fixing the 2582 bug would satisfy many of the user needs on this > issue. > > Taking the GROUP functionality into consideration seems to be important, as > this possibly could cause some mixup if a hidden layer is inside a group > layer. What if all layers inside a GROUP is hidden? Should the group layer > still be exposed in the capabilities document? I'd say yes, but other may > have a different opinion. > > Regards, > P?l Kristensen > > > Martin Kofahl wrote: >> Perfect! Although the solution described in ticket 1952 might be more >> flexible for future use. >> >> Daniel Morissette wrote: >>> paalkr wrote: >>>> Hi all devs! >>>> >>>> What is the status on ticket >>>> http://trac.osgeo.org/mapserver/ticket/2582 >>>> 2582 ? Is this going to be included in 5.4? >>>> >>> Yes, we'll take care of it for 5.4. >>> >>> Daniel From Steve.Lime at dnr.state.mn.us Tue Feb 17 13:32:17 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 17 Feb 2009 15:32:17 -0600 Subject: [mapserver-users] trying new label positioning - no change In-Reply-To: <482BA200-15BC-498A-8D74-75FF278CB5C1@kyngchaos.com> References: <7DA25C07-8345-491D-B082-B268EE4802A5@kyngchaos.com> <499AC9AC.5157.008F.0@dnr.state.mn.us> <482BA200-15BC-498A-8D74-75FF278CB5C1@kyngchaos.com> Message-ID: <499AD881.5157.008F.0@dnr.state.mn.us> Hmmm... That's not what I'm seeing in my testing. CC is definitely the starting place. I'll generate a test case tonite and look closer. Steve >>> On 2/17/2009 at 2:45 PM, in message <482BA200-15BC-498A-8D74-75FF278CB5C1 at kyngchaos.com>, William Kyngesburye wrote: > (Sorry, OSX mail habit, the images would be inline next to appropriate > text descriptions) > > The first is POSITION AUTO. Not what I was expecting. > > The second is POSITION CC. What I was expecting for AUTO, now. > > On Feb 17, 2009, at 2:29 PM, Steve Lime wrote: > >> So what are pictures 1 & 2 representing? There's certainly a >> difference and I would have expected >> picture 2 to represent the new labeling with CC as the first choice. >> >> Steve >> >>>>> On 2/17/2009 at 12:42 PM, in message >> <7DA25C07-8345-491D-B082-B268EE4802A5 at kyngchaos.com>, William >> Kyngesburye >> wrote: >>> I'm trying the new label positioning improvements for polygons in >>> trunk from >>> >>> http://trac.osgeo.org/mapserver/ticket/606 >>> >>> but AUTO seems to be ignoring the initial CC in the new ordering - >>> with no collisions with other labels, all polygons are labelled at >>> the >>> UL corner of the polygon center. >>> > > ----- > William Kyngesburye > http://www.kyngchaos.com/ > > The equator is so long, it could encircle the earth completely once. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From szekerest at gmail.com Tue Feb 17 14:47:24 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 17 Feb 2009 23:47:24 +0100 Subject: [mapserver-users] help on SQL Server 2008 + C# map script In-Reply-To: References: Message-ID: I guess it's due to a problem in the mssql driver which doesn't properly handle the null value condition. Please file a ticket about this issue and I'll look into the details shortly. Best regards, Tamas 2009/2/17 Murty Maganti > Hi > > > > After firing queryByShape() on SQL Server 2008 layer, getting junk > characters for those field which are null (or have no value) in the > database. Shows fine for those fields with some value. > > > > When I run any sample query on the table in query analyzer, I see the > output as {null}. > > > > If the value is null in the database, I should be getting null reference or > empty string (using C# map script i.e. shapeObj.values). Why I am getting > junk characters. > > > > Appreciate any help. > > > > Thanks > > Murty > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From MMaganti at oriongis.com Tue Feb 17 15:09:18 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Tue, 17 Feb 2009 18:09:18 -0500 Subject: [mapserver-users] Problem with loading map file using C# map script Message-ID: Hi I have a issue loading a map file through map script and need help. I have two map info (tab) files with same name but in two different folders. I have two map files each containing each layer. I am loading these map files using C# map script (each map file is loaded in to a separate mapObj on a separate thread). At run time, when I debug the second mapObj, the layer has items (layerObj.getItem()) from the first layer loaded by the first map file. I verified 'shapepath' on mapObj and it is pointing to correct path. There is nothing wrong there. I am surprised how is it caching the item info, just by the file name (file name is same but they are completely from different folders). When I load the map file one more time (again a different .Net thread, it shows up correct fields). Within my app (Asp.Net), I can consistently replicate this. Thanks Murty -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Tue Feb 17 15:33:14 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 18 Feb 2009 00:33:14 +0100 Subject: [mapserver-users] Problem with loading map file using C# map script In-Reply-To: References: Message-ID: Hmmm. I haven't found such an issue before. If you could post an example that would be helpful to reproduce this. Best regards, Tamas 2009/2/18 Murty Maganti > Hi > > > > I have a issue loading a map file through map script and need help. > > > > I have two map info (tab) files with same name but in two different > folders. I have two map files each containing each layer. I am loading these > map files using C# map script (each map file is loaded in to a separate > mapObj on a separate thread). At run time, when I debug the second mapObj, > the layer has items (layerObj.getItem()) from the first layer loaded by the > first map file. I verified 'shapepath' on mapObj and it is pointing to > correct path. There is nothing wrong there. I am surprised how is it caching > the item info, just by the file name (file name is same but they are > completely from different folders). > > > > When I load the map file one more time (again a different .Net thread, it > shows up correct fields). > > > > Within my app (Asp.Net), I can consistently replicate this. > > > > Thanks > > Murty > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From MMaganti at oriongis.com Tue Feb 17 16:08:01 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Tue, 17 Feb 2009 19:08:01 -0500 Subject: [mapserver-users] Problem with loading map file using C# map script References: Message-ID: I will create a test app and post it. Thanks Murty ________________________________ From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Tue 17/02/2009 6:33 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problem with loading map file using C# map script Hmmm. I haven't found such an issue before. If you could post an example that would be helpful to reproduce this. I Best regards, Tamas 2009/2/18 Murty Maganti Hi I have a issue loading a map file through map script and need help. I have two map info (tab) files with same name but in two different folders. I have two map files each containing each layer. I am loading these map files using C# map script (each map file is loaded in to a separate mapObj on a separate thread). At run time, when I debug the second mapObj, the layer has items (layerObj.getItem()) from the first layer loaded by the first map file. I verified 'shapepath' on mapObj and it is pointing to correct path. There is nothing wrong there. I am surprised how is it caching the item info, just by the file name (file name is same but they are completely from different folders). When I load the map file one more time (again a different .Net thread, it shows up correct fields). Within my app (Asp.Net), I can consistently replicate this. Thanks Murty _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From no-reply at neogeo-online.net Tue Feb 17 17:26:30 2009 From: no-reply at neogeo-online.net (Guillaume Sueur) Date: Wed, 18 Feb 2009 02:26:30 +0100 Subject: [mapserver-users] Pyhton mapscript import error In-Reply-To: <1234883796448-2341344.post@n2.nabble.com> References: <1234883796448-2341344.post@n2.nabble.com> Message-ID: <499B63C6.9000507@neogeo-online.net> Hi, python mapscript + agg is a real pain I grabbed a howto file some months ago, on PerryGeo blog (http://www.perrygeo.net/wordpress/) find it here as attachment it works fine. I've just tested it again few minutes ago. Regards Guillaume gautamvs a ?crit : > I am getting error while importing mapscript in python > > >>>> import mapscript > Traceback (most recent call last): > File "", line 1, in ? > File "mapscript.py", line 7, in ? > import _mapscript > ImportError: /usr/local/lib/python2.4/site-packages/_mapscript.so: undefined > symbol: _ZN3agg6gse5x7E > > > when i removed the AGG suport in Mapserver , i am able to import without any > error. > > But my application requires AGG support (ie. with Tilecache) > > I am using Mapserver 5.2.1, AGG 2.5, Python 2.4 on CentOS. > > Thanks for any help. > > Gautam > > > > > > > > > > > > > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: agg_mapserver.txt URL: From sdc at sdc.com.au Tue Feb 17 20:13:28 2009 From: sdc at sdc.com.au (Stephen Davies) Date: Wed, 18 Feb 2009 14:43:28 +1030 Subject: [mapserver-users] Re: Mapserver layer selects - resolved Message-ID: <200902181443.28370.sdc@sdc.com.au> I have finally resolved this issue by upgrading to 8.3.6 and then dropping and recreating the relevant GIST geometry index. Could this be a manifestation of the GIST bug fixed in 8.3.6? Cheers, Stephen On Saturday 14 February 2009 13:55:08 Stephen Davies wrote: > Further to my earlier question. > > I have experimented further and now get the following results: > > benparts=# SELECT * from swip3 WHERE (pid in (select probe.id from probe > where logger_id in (select id from logger where client_id=120)) and > rdate='2009-02-12 13:30:00') and (geom && > setSRID( 'BOX3D(138.5356633 -34.99,138.5397151 -34.8)'::BOX3D,4283) ); > id | zname | pid | geom | rdate > ----+-------+-----+------+------- > (0 rows) > > benparts=# SELECT * from swip3 WHERE (pid in (select probe.id from probe > where logger_id in (select id from logger where client_id=120)) and > rdate='2009-02-12 13:30:00') and (geom && > setSRID( 'BOX3D(138.5 -34.99,138.6 -34.9)'::BOX3D,4283) ); > id | zname | pid | geom | > rdate > ----+--------+-----+----------------------------------------------------+-- >------------------- 28 | Zone 2 | 607 | > 0101000020BB1000007ADFF8DA335161406551D845D17541C0 | 2009-02-12 13:30:00 > (1 row) > > benparts=# SELECT astext(geom) from swip3 WHERE (pid in (select probe.id > from probe where logger_id in (select id from logger where client_id=120)) > and rdate='2009-02-12 13:30:00'); > astext > ----------------------------- > POINT(138.53758 -34.920449) > (1 row) > > The only thing that changes between query 1 and query 2 is that I have > increased the "extent constraint". > However, as query 3 shows, the point is clearly within the smaller original > extent so should have been returned by query 1. > > No??? > > Cheers, > Stephen -- ============================================================================= Stephen Davies Consulting P/L Voice: 08-8177 1595 Adelaide, South Australia. Fax : 08-8177 0133 Computing & Network solutions. Mobile:040 304 0583 VoIP:sip:1132210 at sip1.bbpglobal.com From Steve.Lime at dnr.state.mn.us Tue Feb 17 21:02:07 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 17 Feb 2009 23:02:07 -0600 Subject: [mapserver-users] trying new label positioning - no change Message-ID: <499B41EF0200008F00020C3D@co5.dnr.state.mn.us> William: In my testing a polygon layer is definitely starting at position CC. Any chance you're using an annotation layer here? I have found an issue if that's the case. The decision to using one set of positions vs another is made based on the layer type NOT the geometry type. So annotation layers are treated as point layers regardless of the source geometry. As the code sits now that information is lost. Wasn't an issue previously since we didn't vary things. I'll file a bug on this issue. Let me know if this isn't the case for you. One work around is to ditch annotation layers for polygons. They really aren't necessary with the addition of the label priority support in 5.0. Steve >>> William Kyngesburye 02/17/09 2:55 PM >>> (Sorry, OSX mail habit, the images would be inline next to appropriate text descriptions) The first is POSITION AUTO. Not what I was expecting. The second is POSITION CC. What I was expecting for AUTO, now. On Feb 17, 2009, at 2:29 PM, Steve Lime wrote: > So what are pictures 1 & 2 representing? There's certainly a > difference and I would have expected > picture 2 to represent the new labeling with CC as the first choice. > > Steve > >>>> On 2/17/2009 at 12:42 PM, in message > <7DA25C07-8345-491D-B082-B268EE4802A5 at kyngchaos.com>, William > Kyngesburye > wrote: >> I'm trying the new label positioning improvements for polygons in >> trunk from >> >> http://trac.osgeo.org/mapserver/ticket/606 >> >> but AUTO seems to be ignoring the initial CC in the new ordering - >> with no collisions with other labels, all polygons are labelled at >> the >> UL corner of the polygon center. >> ----- William Kyngesburye http://www.kyngchaos.com/ The equator is so long, it could encircle the earth completely once. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From woklist at kyngchaos.com Tue Feb 17 21:33:24 2009 From: woklist at kyngchaos.com (William Kyngesburye) Date: Tue, 17 Feb 2009 23:33:24 -0600 Subject: [mapserver-users] trying new label positioning - no change In-Reply-To: <499B41EF0200008F00020C3D@co5.dnr.state.mn.us> References: <499B41EF0200008F00020C3D@co5.dnr.state.mn.us> Message-ID: <21A71527-716F-485B-A7DD-43DEDF5CFFB1@kyngchaos.com> On Feb 17, 2009, at 11:02 PM, Steve Lime wrote: > William: In my testing a polygon layer is definitely starting at > position CC. Any chance > you're using an annotation layer here? I have found an issue if > that's the case. The decision > to using one set of positions vs another is made based on the layer > type NOT the geometry > type. So annotation layers are treated as point layers regardless of > the source geometry. As > the code sits now that information is lost. Wasn't an issue > previously since we didn't vary > things. I'll file a bug on this issue. > > Let me know if this isn't the case for you. Ohhhh. I've always used annotation layers for feature annotation. But, if it always treats annotation layers as point layers, why does ANGLE FOLLOW work on annotation layers of line features, or gravity positioning on annotation of poly features? Or does that trigger stepping out of the assumed-point default somehow? I did notice when poking around in the source that the labelling routines didn't know about the geometry of individual features. In my own early (v4.4) attempts at reordering the positions for polys (before the recent changes) I added a parameter to the addlabel() functions to pass the shapetype. > One work around is to ditch annotation layers for polygons. They > really aren't necessary with > the addition of the label priority support in 5.0. I'm not sure what you mean here - how does label priority invalidate annotation layers? ----- William Kyngesburye http://www.kyngchaos.com/ "Oh, look, I seem to have fallen down a deep, dark hole. Now what does that remind me of? Ah, yes - life." - Marvin From Steve.Lime at dnr.state.mn.us Tue Feb 17 22:15:56 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 18 Feb 2009 00:15:56 -0600 Subject: [mapserver-users] trying new label positioning - no change Message-ID: <499B533C0200008F00020C47@co5.dnr.state.mn.us> Comments inline... >>>> William Kyngesburye 02/17/09 11:34 PM >>> > On Feb 17, 2009, at 11:02 PM, Steve Lime wrote: > >> William: In my testing a polygon layer is definitely starting at >> position CC. Any chance >> you're using an annotation layer here? I have found an issue if >> that's the case. The decision >> to using one set of positions vs another is made based on the layer >> type NOT the geometry >> type. So annotation layers are treated as point layers regardless of >> the source geometry. As >> the code sits now that information is lost. Wasn't an issue >> previously since we didn't vary >> things. I'll file a bug on this issue. >> >> Let me know if this isn't the case for you. > Ohhhh. I've always used annotation layers for feature annotation. > But, if it always treats annotation layers as point layers, why does > ANGLE FOLLOW work on annotation layers of line features, or gravity > positioning on annotation of poly features? Or does that trigger > stepping out of the assumed-point default somehow? A shapes geometry is used when deciding where to compute a label point. In this case the we're deciding on what the acceptable position array is and that's done when processing the cache, long after the label points original geometry has been destroyed. > I did notice when poking around in the source that the labelling > routines didn't know about the geometry of individual features. In my > own early (v4.4) attempts at reordering the positions for polys > (before the recent changes) I added a parameter to the addlabel() > functions to pass the shapetype. I think I'd just pass a shapeObj pointer to the msAddLabel() and harvest what is necessary: type and a few indexes. >> One work around is to ditch annotation layers for polygons. They >> really aren't necessary with the addition of the label priority support in 5.0. > I'm not sure what you mean here - how does label priority invalidate > annotation layers? The principle reason to use annotation layers was to control the order in which labels are stuffed into the cache. They were especially useful with polygons since you typically draw those first but if you want to emphasize labels then you'd have to use annotation to make the labels show before other stuff. Label priorities fix that. You can give a polygon layer high priority labels without having to resort to annotation layers later in the mapfile. The benefits (besides working around this bug) are two-fold: 1) performance, you only have to process the polygon features once... 2) brevity, shorter, more concise layer definitions are good... Certainly annotation layers are still useful but principally for things like copyright notices or road shields. Steve From woklist at kyngchaos.com Tue Feb 17 22:54:40 2009 From: woklist at kyngchaos.com (William Kyngesburye) Date: Wed, 18 Feb 2009 00:54:40 -0600 Subject: [mapserver-users] trying new label positioning - no change In-Reply-To: <499B533C0200008F00020C47@co5.dnr.state.mn.us> References: <499B533C0200008F00020C47@co5.dnr.state.mn.us> Message-ID: <7337B9B3-D0B1-48A9-B7F9-C243A6EBAFD0@kyngchaos.com> On Feb 18, 2009, at 12:15 AM, Steve Lime wrote: >> I did notice when poking around in the source that the labelling >> routines didn't know about the geometry of individual features. In >> my >> own early (v4.4) attempts at reordering the positions for polys >> (before the recent changes) I added a parameter to the addlabel() >> functions to pass the shapetype. > > I think I'd just pass a shapeObj pointer to the msAddLabel() and > harvest > what is necessary: type and a few indexes. If you think this is something that can be done, it would be nice have geometry and annotation layers both use the same positioning rules based on the geometry type (see comments below). >> I'm not sure what you mean here - how does label priority invalidate >> annotation layers? > > The principle reason to use annotation layers was to control the > order in > which labels are stuffed into the cache. They were especially useful > with > polygons since you typically draw those first but if you want to > emphasize > labels then you'd have to use annotation to make the labels show > before > other stuff. > > Label priorities fix that. You can give a polygon layer high > priority labels > without having to resort to annotation layers later in the mapfile. > The benefits > (besides working around this bug) are two-fold: > > 1) performance, you only have to process the polygon features once... > 2) brevity, shorter, more concise layer definitions are good... > > Certainly annotation layers are still useful but principally for > things like > copyright notices or road shields. > > Steve Hmm, but mixing the annotations with their geometry in a single layer means you can't turn geometry and annotations on and off separately - I often want to show just the feature geometry, yet be able to turn on their annotations if I need it. Also, what about the drawing order? Won't other feature layers then draw on top of earlier feature layers and annotations of those layers? Or does the label cache force ALL annotations to draw last, no matter what layer they're on? I guess I need a visual diagram of the [now many] various possible combinations of layer types, annotations, priorities and layer ordering to make sense of this. ----- William Kyngesburye http://www.kyngchaos.com/ "Time is an illusion - lunchtime doubly so." - Ford Prefect From feigle at 126.com Tue Feb 17 22:33:02 2009 From: feigle at 126.com (feigle) Date: Wed, 18 Feb 2009 14:33:02 +0800 (CST) Subject: [mapserver-users] Loading Geotiff to PostGIS Message-ID: <12576769.613451234938782442.JavaMail.coremail@bj126app16.126.com> Hi all, I got one hill to climb when deloping application using mapserver. I The porblem is, how to store raster data in PostGIS/Postgres SQL. There are multiple ideas I am working on right now I have many satellite raster data in geotiff format (one image data is about 1 GB), I am trying to load these raster data into PostGIS and then wants to render them in web browser through mapserve r(just display them on a top layer acoording to the query extent). my questions are 1. Can we store actually raster data directly in PostgreSQL or PostGIS or we should store it in outside of PostGIS and have some sort ofreference to PostGIS with other data. 2. If we can store the raster data directly in PostGIS, how can upload geotiff image to PostGIS? i know PostGIS can not support raster data input. 3. can mapserver query the PostGIS efficiently with the huge geotiff data? I am a newer to mapserver and PostGIS, Is there someone has the experience with Mapserver PostGIS to handle geotiff image. Any hints and suggestion will be very appreciated. the better one is posting some codes here(if convenient). Thanks very much in advance! Feigle -------------- next part -------------- An HTML attachment was scrubbed... URL: From gautamvs at gmail.com Wed Feb 18 01:17:45 2009 From: gautamvs at gmail.com (gautamvs) Date: Wed, 18 Feb 2009 01:17:45 -0800 (PST) Subject: [mapserver-users] Pyhton mapscript import error In-Reply-To: <499B63C6.9000507@neogeo-online.net> References: <1234883796448-2341344.post@n2.nabble.com> <499B63C6.9000507@neogeo-online.net> Message-ID: <1234948665484-2345804.post@n2.nabble.com> Thanks Guillaume I'll check it, with method given by you to install AGG. regards Gautam Guillaume Sueur-2 wrote: > > Hi, > > python mapscript + agg is a real pain > > I grabbed a howto file some months ago, on PerryGeo blog > (http://www.perrygeo.net/wordpress/) > > find it here as attachment > it works fine. I've just tested it again few minutes ago. > > Regards > > Guillaume > > gautamvs a ?crit : >> I am getting error while importing mapscript in python >> >> >>>>> import mapscript >> Traceback (most recent call last): >> File "", line 1, in ? >> File "mapscript.py", line 7, in ? >> import _mapscript >> ImportError: /usr/local/lib/python2.4/site-packages/_mapscript.so: >> undefined >> symbol: _ZN3agg6gse5x7E >> >> >> when i removed the AGG suport in Mapserver , i am able to import without >> any >> error. >> >> But my application requires AGG support (ie. with Tilecache) >> >> I am using Mapserver 5.2.1, AGG 2.5, Python 2.4 on CentOS. >> >> Thanks for any help. >> >> Gautam >> >> >> >> >> >> >> >> >> >> >> >> >> > > > # agg > #agg 2.4 > # based on http://trac.osgeo.org/mapserver/ticket/2215 > tar -xzvf agg2.4.tar.gz > cd agg2.4 > emacs src/Makefile > # add to CXXFLAGS ... -fPIC > > CXXFLAGS= $(AGGCXXFLAGS) -I../include -L./ -fPIC > > # add to the end of file > shared: $(OBJ) ../font_freetype/agg_font_freetype.o > $(CXX) -shared -W1,-soname,libagg.2.4.so -o libagg.so \$(OBJ) > ../font_freetype/agg_font_freetype.o -L/usr/local/lib -lfreetype > > make > > cd examples/X11 > emacs Makefile > > # Change: > # -I/usr/local/include/freetype2 \ > # To: > # `freetype-config --cflags` \ > > # add to both CXXFLAGS ...... -fPIC > > ###### > CXXFLAGS= $(AGGCXXFLAGS) -I../../include \ > -L../../src \ > $(PIXFMT) -fPIC > > CXXFREETYPEFLAGS= $(AGGCXXFLAGS) -Wall \ > -I../../include \ > -I../../font_freetype \ > `freetype-config --cflags` \ > -L../../src \ > $(PIXFMT) -fPIC > ###### > > make freetype > > > cd ../../font_freetype/ > ar r libaggfontfreetype.a agg_font_freetype.o > > cd ../src > ln -s ../font_freetype/libaggfontfreetype.a > > cd .. > make clean > make > > cd src > make shared > sudo cp libagg.so /usr/local/lib > sudo ldconfig > > # mapserver > ./configure --without-tiff --with-jpeg --with-png --with-freetype \ > --with-zlib --with-threads --with-proj \ > --with-gdal=/usr/local/bin/gdal-config --with-wcs --with-ogr \ > --with-wmsclient --with-wfsclient --with-wfs \ > --without-pdf --with-geos --enable-debug > --with-agg=/home/perry/src/agg-2.4 \ > --with-postgis=/usr/bin/pg_config \ > --with-curl-config=/usr/bin/curl-config --with-httpd=/usr/sbin/apache2 > --with-gd=/usr/local \ > --with-fastcgi > make > > sudo cp mapserv /usr/lib/cgi-bin/ > sudo cp shp2img shp2pdf shptree shptreetst shptreevis sortshp tile4ms > scalebar legend msencrypt mapserv /usr/local/bin/ > > #mapscript > cd mapscript/python > # swig -python -shadow -modern -o mapscript_wrap.c ../mapscript.i > swig -python -shadow -modern -templatereduce -fastdispatch -fvirtual > -fastproxy \ > -modernargs -castmode -dirvtable -fastinit -fastquery -noproxydel > -nobuildnone \ > -o mapscript_wrap.c ../mapscript.i > python setup.py build > cd tests/cases && python runalltests.py -v > # don't worry about the 4 test failures .. due to postgres database not > being present > cd ../.. > sudo python setup.py install --force > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/Pyhton-mapscript-import-error-tp2341344p2345804.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Wed Feb 18 05:18:20 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 18 Feb 2009 08:18:20 -0500 Subject: [mapserver-users] Loading Geotiff to PostGIS In-Reply-To: <12576769.613451234938782442.JavaMail.coremail@bj126app16.126.com> References: <12576769.613451234938782442.JavaMail.coremail@bj126app16.126.com> Message-ID: <499C0A9C.2090307@gatewaygeomatics.com> feigle wrote: > Hi all, > > I got one hill to climb when deloping application using mapserver. > > I The porblem is, how to store raster > data in PostGIS/Postgres SQL. There are multiple ideas I am working on > right now > > I have many satellite raster data in geotiff format (one image data is > about 1 GB), > I am trying to load these raster data into PostGIS and then wants to > render them > in web browser through mapserve r(just display them on a top layer > acoording to > the query extent). > > my questions are > > 1. Can we store actually raster data directly in PostgreSQL or PostGIS or > we should store it in outside of PostGIS and have some sort ofreference to > PostGIS with other data. > > 2. If we can store the raster data directly in PostGIS, how can upload > geotiff > image to PostGIS? i know PostGIS can not support raster data input. > > 3. can mapserver query the PostGIS efficiently with the huge geotiff data? > > I am a newer to mapserver and PostGIS, Is there someone has the > experience with > Mapserver PostGIS to handle geotiff image. Any hints and suggestion will > be very > appreciated. the better one is posting some codes here(if convenient). > Thanks very much in advance! > Here's a good page for you to read about the PostGIS-raster progress: http://postgis.refractions.net/support/wiki/index.php?RasterNotes Myself, I would just keep the image as a geotiff (which is the most optimal format for rasters in MapServer), and possibly add overviews to that file (http://www.gdal.org/gdaladdo.html). -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From Tom.Kralidis at ec.gc.ca Wed Feb 18 05:58:15 2009 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Wed, 18 Feb 2009 08:58:15 -0500 Subject: [mapserver-users] minimal wrapper script for OGC services Message-ID: Hi: we are deploying MapServer 5.2.1 in a Windows environment, and require the use of a wrapper script to have a prettier url, and to hide the underlying mapfile path. I tried the ASP example at http://www.mapserver.org/ogc/wms_server.html#more-about-the-online-resource-url, and it works well for GET requests, but not POST requests. MapServer WFS and SOS support both GET and POST approaches (where POST is the client sending an XML document as the request). I then thought of using a minimal MapScript WxS wrapper, and this works perfectly with Python: import mapscript req = mapscript.OWSRequest() req.loadParams() map = mapscript.mapObj('/path/to/config.map') map.OWSDispatch(req) Unfortunately, we are bound to either ASP or PHP to deploy the wrapper. Trying this in PHP: loadparams(); ms_ioinstallstdouttobuffer(); $oMap = ms_newMapobj('../../apps/ms_ogc_workshop/sos/config.map'); $oMap->owsdispatch($request); $contenttype = ms_iostripstdoutbuffercontenttype(); $buffer = ms_iogetstdoutbufferstring(); header('Content-type: $contenttype'); echo $buffer; ms_ioresethandlers(); ?> Handles GET requests seemingly fine, but when testing with POST, I get the following response: HTTP/1.1 200 OK Date: Wed, 18 Feb 2009 13:46:37 GMT Server: Apache/2.2.10 (Win32) Connection: close Content-Type: text/html POST body is short As an aside, the PHP e.g. prompts a file download dialog when deployed on a Linux box (?). I'm using ms4w as the testing environment: - save PHP file to c:\ms4w\Apache\htdocs\test.php - go to http://localhost/ms_ogc_workshop/sos/index.html - in the "server" input text box, point to the PHP script (i.e. http://localhost/test.php) - click "GetCapabilities" to the request to be POST'd - click "Send" Any ideas or suggestions? Thanks ..Tom From b.veldkamp at zonnet.nl Wed Feb 18 07:36:56 2009 From: b.veldkamp at zonnet.nl (Berend Veldkamp) Date: Wed, 18 Feb 2009 16:36:56 +0100 Subject: [mapserver-users] MapScript CSharp save fontset Message-ID: <57fc60330902180736h312ca414ka0fd30df47a66536@mail.gmail.com> Hi, Is there a way to save a fontset with CSharp MapScript? It is of course not hard to do that manually, but it would be nice to have a method similar to symbolset.save(). And another thing: After I save the fontset, I can't seem to set the mapObj.fontset.filename, because it claims to be a read-only property. Regards, Berend From damarmo at gmail.com Wed Feb 18 07:37:44 2009 From: damarmo at gmail.com (David Martinez Morata) Date: Wed, 18 Feb 2009 16:37:44 +0100 Subject: [mapserver-users] Problem with Tiled wms Size Message-ID: <9771eb540902180737j350c837ew9ce0b726d168ee8@mail.gmail.com> Hello. I have a mapfile to a wms service, and I create a Web application with MapFish to show the wms service. And I have a problem. When I use Firefox in a small window I show this layer (and the request to the server it's:map=/ms4w/apps/FastFEP/maps/TestFeatureinfo_wms_FastFEP.map&LAYERS=ngo7_w84_01meu_sites&FORMAT=image%2Fgif&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=260193.43573939195,6249127.907968564,261234.29308530758,6249582.051406069&WIDTH=1743&HEIGHT=760) But when I put FF in fullscreen mode I have a problem with Width and Height (url:map=/ms4w/apps/FastFEP/maps/TestFeatureinfo_wms_FastFEP.map&LAYERS=POP%20Neuf%20Telecom&FORMAT=image%2Fgif&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=259511.07840972155,6248565.507950876,261997.67048567825,6249565.1609612405&WIDTH=2082&HEIGHT=837 ) I don't know how to solve this, but I can change the maximun size in my mapfile for the width value? Thanks -- Martinez Morata David Thinking GIS -------------- next part -------------- An HTML attachment was scrubbed... URL: From b.veldkamp at zonnet.nl Wed Feb 18 07:39:58 2009 From: b.veldkamp at zonnet.nl (Berend Veldkamp) Date: Wed, 18 Feb 2009 16:39:58 +0100 Subject: [mapserver-users] CSharp Mapscript regional settings Message-ID: <57fc60330902180739i45901e99h76bdb5750493b264@mail.gmail.com> Hi, I have written an application based on CSharp MapScript that generates mapfiles. When I save them, decimal values are written in the format specified in my regional settings (In the Netherlands that is a comma "," instead of a period "."). So I end up with: EXTENT -336022,285241803 -144935,85554567 383601,953193977 550266,745839123 Which should be: EXTENT -336022.285241803 -144935.85554567 383601.953193977 550266.745839123 I successfully set the decimal separator in my code to a period like this, but apparently MapScript doesn't use that value: System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture; When I change the value in the Control Panel, and then run the application, it works perfect. However I would like to be able to run it independent of any system settings. Regards, Berend From brian.hulbert at linquest.com Wed Feb 18 07:48:18 2009 From: brian.hulbert at linquest.com (Hulbert, Brian) Date: Wed, 18 Feb 2009 10:48:18 -0500 Subject: [mapserver-users] MapScript CSharp save fontset In-Reply-To: <57fc60330902180736h312ca414ka0fd30df47a66536@mail.gmail.com> References: <57fc60330902180736h312ca414ka0fd30df47a66536@mail.gmail.com> Message-ID: <006001c991e0$52a9eea0$f7fdcbe0$@hulbert@linquest.com> Regarding the contents of the fontset. I dynamically create the fontset file after indexing the fonts installed on the user's system. That makes it easier to just show the user a common Font dialog and allow them to choose the font they want. Regarding the fonset filename. Using MapServer 5.0.2 from a C# app, I call setFontSet() of my mapObj and pass it a fully qualified path and filename to my fontset file. Brian NOTE: The views expressed are the author's and do not necessarily reflect the official position of LinQuest Corporation or any of its subsidiaries or the organization providing Internet access. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Berend Veldkamp Sent: Wednesday, February 18, 2009 10:37 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] MapScript CSharp save fontset Hi, Is there a way to save a fontset with CSharp MapScript? It is of course not hard to do that manually, but it would be nice to have a method similar to symbolset.save(). And another thing: After I save the fontset, I can't seem to set the mapObj.fontset.filename, because it claims to be a read-only property. Regards, Berend _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From michael.smith at usace.army.mil Wed Feb 18 08:01:29 2009 From: michael.smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Wed, 18 Feb 2009 11:01:29 -0500 Subject: [mapserver-users] Problem with Tiled wms Size In-Reply-To: <9771eb540902180737j350c837ew9ce0b726d168ee8@mail.gmail.com> Message-ID: David, Try adding a MAPSIZE value to your mapfile, eg MAPSIZE 4096 (to allow up to 4096x4096 size image). Mike -- Michael Smith Remote Sensing GIS Center CRREL - ERDC US Army Corps of Engineers Hanover, NH On 2/18/09 10:37 AM, "David Martinez Morata" wrote: > Hello. > > I have a mapfile to a wms service, and I create a Web application with MapFish > to show the wms service. > And I have a problem. > When I use Firefox in a small window I show this layer (and the request to the > server > it's:map=/ms4w/apps/FastFEP/maps/TestFeatureinfo_wms_FastFEP.map&LAYERS=ngo7_w > 84_01meu_sites&FORMAT=image%2Fgif&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&R > EQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A9 > 00913&BBOX=260193.43573939195,6249127.907968564,261234.29308530758,6249582.051 > 406069&WIDTH=1743&HEIGHT=760) > > > But when I put FF in fullscreen mode I have a problem with Width and Height > (url:map=/ms4w/apps/FastFEP/maps/TestFeatureinfo_wms_FastFEP.map&LAYERS=POP%20 > Neuf%20Telecom&FORMAT=image%2Fgif&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&R > EQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A9 > 00913&BBOX=259511.07840972155,6248565.507950876,261997.67048567825,6249565.160 > 9612405&WIDTH=2082&HEIGHT=837 ) > > I don't know how to solve this, but I can change the maximun size in my > mapfile for the width value? > > > Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Feb 18 08:32:23 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 18 Feb 2009 17:32:23 +0100 Subject: [mapserver-users] Problem with Tiled wms Size In-Reply-To: References: <9771eb540902180737j350c837ew9ce0b726d168ee8@mail.gmail.com> Message-ID: the keyword is MAXSIZE regards, thomas On Wed, Feb 18, 2009 at 17:01, Smith, Michael ERDC-CRREL-NH wrote: > David, > > Try adding a MAPSIZE value to your mapfile, eg MAPSIZE 4096 (to allow up to > 4096x4096 size image). > > Mike > > > -- > Michael Smith > Remote Sensing GIS Center > CRREL - ERDC > US Army Corps of Engineers > Hanover, NH > > > > > On 2/18/09 10:37 AM, "David Martinez Morata" wrote: > > Hello. > > I have a mapfile to a wms service, and I create a Web application with > MapFish to show the wms service. > And I have a problem. > When I use Firefox in a small window I show this layer (and the request to > the server > it's:map=/ms4w/apps/FastFEP/maps/TestFeatureinfo_wms_FastFEP.map&LAYERS=ngo7_w84_01meu_sites&FORMAT=image%2Fgif&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=260193.43573939195,6249127.907968564,261234.29308530758,6249582.051406069&WIDTH=1743&HEIGHT=760) > > > But when I put FF in fullscreen mode I have a problem with Width and Height > (url:map=/ms4w/apps/FastFEP/maps/TestFeatureinfo_wms_FastFEP.map&LAYERS=POP%20Neuf%20Telecom&FORMAT=image%2Fgif&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=259511.07840972155,6248565.507950876,261997.67048567825,6249565.1609612405&WIDTH=2082&HEIGHT=837 > ) > > I don't know how to solve this, but I can change the maximun size in my > mapfile for the width value? > > > Thanks > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From pmoen at nd.gov Wed Feb 18 09:03:12 2009 From: pmoen at nd.gov (Moen, Paul T.) Date: Wed, 18 Feb 2009 11:03:12 -0600 Subject: [mapserver-users] Symbols Don't Follow Lines. Message-ID: I have two symbols that are used in a railroad layer. The railties symbol used to be aligned perpendicular to the line and therefore looked like railroad ties. The symbol now only draws upright, i.e. horizontal. The documentation at http://mapserver.org/mapfile/symbology/construction.html#sym-construction shows a layer and a symbol similar to what I have, except they use a T as the character, following the line. What changed and how do I get the symbol to follow the line again? SYMBOL NAME 'railties' TYPE TRUETYPE FONT "helvetica" CHARACTER "T" ANTIALIAS TRUE GAP 7 END SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END LAYER NAME "Railroads" DATA railroads GROUP "Transportation" TYPE LINE STATUS ON CLASS MAXSCALEDENOM 150000 NAME "Railroads" STYLE SYMBOL 'circle' COLOR 0 0 0 SIZE 2 END OVERLAYSYMBOL 'railties' OVERLAYCOLOR 0 0 0 OVERLAYSIZE 7 END END Thanks, Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From pmoen at nd.gov Wed Feb 18 09:20:59 2009 From: pmoen at nd.gov (Moen, Paul T.) Date: Wed, 18 Feb 2009 11:20:59 -0600 Subject: [mapserver-users] Symbols Don't Follow Lines. In-Reply-To: Message-ID: I forgot to mention the version. The output type is AGG and I see there was a problem with this. Does anybody if the version I am using has this problem? MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE On 2/18/09 11:03 AM, "Paul Moen" wrote: I have two symbols that are used in a railroad layer. The railties symbol used to be aligned perpendicular to the line and therefore looked like railroad ties. The symbol now only draws upright, i.e. horizontal. The documentation at http://mapserver.org/mapfile/symbology/construction.html#sym-construction shows a layer and a symbol similar to what I have, except they use a T as the character, following the line. What changed and how do I get the symbol to follow the line again? SYMBOL NAME 'railties' TYPE TRUETYPE FONT "helvetica" CHARACTER "T" ANTIALIAS TRUE GAP 7 END SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END LAYER NAME "Railroads" DATA railroads GROUP "Transportation" TYPE LINE STATUS ON CLASS MAXSCALEDENOM 150000 NAME "Railroads" STYLE SYMBOL 'circle' COLOR 0 0 0 SIZE 2 END OVERLAYSYMBOL 'railties' OVERLAYCOLOR 0 0 0 OVERLAYSIZE 7 END END Thanks, Paul Paul T. Moen pmoen at nd.gov 701-328-2434 701-328-3696 (fax) ND State Water Commission -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Wed Feb 18 09:29:11 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 18 Feb 2009 12:29:11 -0500 Subject: [mapserver-users] Symbols Don't Follow Lines. In-Reply-To: References: Message-ID: <499C4567.10507@swoodbridge.com> Paul, Use GAP -7 to fix the problem. -Steve W Moen, Paul T. wrote: > I forgot to mention the version. > > The output type is AGG and I see there was a problem with this. Does > anybody if the version I am using has this problem? > > MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE > SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER > SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > > > On 2/18/09 11:03 AM, "Paul Moen" wrote: > > I have two symbols that are used in a railroad layer. The railties > symbol used to be aligned perpendicular to the line and therefore > looked like railroad ties. The symbol now only draws upright, i.e. > horizontal. The documentation at > http://mapserver.org/mapfile/symbology/construction.html#sym-construction > shows a layer and a symbol similar to what I have, except they use a > T as the character, following the line. What changed and how do I > get the symbol to follow the line again? > > SYMBOL > NAME 'railties' > TYPE TRUETYPE > FONT "helvetica" > CHARACTER "T" > ANTIALIAS TRUE > GAP 7 > END > SYMBOL > NAME 'circle' > TYPE ELLIPSE > POINTS 1 1 END > FILLED TRUE > END > > LAYER > NAME "Railroads" > DATA railroads > GROUP "Transportation" > TYPE LINE > STATUS ON > CLASS > MAXSCALEDENOM 150000 > NAME "Railroads" > STYLE > SYMBOL 'circle' > COLOR 0 0 0 > SIZE 2 > END > OVERLAYSYMBOL 'railties' > OVERLAYCOLOR 0 0 0 > OVERLAYSIZE 7 > END > END > > Thanks, > > Paul > > > > Paul T. Moen > pmoen at nd.gov > 701-328-2434 > 701-328-3696 (fax) > ND State Water Commission > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From pmoen at nd.gov Wed Feb 18 09:45:48 2009 From: pmoen at nd.gov (Moen, Paul T.) Date: Wed, 18 Feb 2009 11:45:48 -0600 Subject: [mapserver-users] Symbols Don't Follow Lines. In-Reply-To: <499C4567.10507@swoodbridge.com> Message-ID: Changing the gap to a negative value fixed the problem. Thank you Steve. On 2/18/09 11:29 AM, "Stephen Woodbridge" wrote: Paul, Use GAP -7 to fix the problem. -Steve W Moen, Paul T. wrote: > I forgot to mention the version. > > The output type is AGG and I see there was a problem with this. Does > anybody if the version I am using has this problem? > > MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE > SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER > SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > > > On 2/18/09 11:03 AM, "Paul Moen" wrote: > > I have two symbols that are used in a railroad layer. The railties > symbol used to be aligned perpendicular to the line and therefore > looked like railroad ties. The symbol now only draws upright, i.e. > horizontal. The documentation at > http://mapserver.org/mapfile/symbology/construction.html#sym-construction > shows a layer and a symbol similar to what I have, except they use a > T as the character, following the line. What changed and how do I > get the symbol to follow the line again? > > SYMBOL > NAME 'railties' > TYPE TRUETYPE > FONT "helvetica" > CHARACTER "T" > ANTIALIAS TRUE > GAP 7 > END > SYMBOL > NAME 'circle' > TYPE ELLIPSE > POINTS 1 1 END > FILLED TRUE > END > > LAYER > NAME "Railroads" > DATA railroads > GROUP "Transportation" > TYPE LINE > STATUS ON > CLASS > MAXSCALEDENOM 150000 > NAME "Railroads" > STYLE > SYMBOL 'circle' > COLOR 0 0 0 > SIZE 2 > END > OVERLAYSYMBOL 'railties' > OVERLAYCOLOR 0 0 0 > OVERLAYSIZE 7 > END > END > > Thanks, > > Paul > -------------- next part -------------- An HTML attachment was scrubbed... URL: From MMaganti at oriongis.com Wed Feb 18 09:57:16 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Wed, 18 Feb 2009 12:57:16 -0500 Subject: [mapserver-users] Problem with loading map file using C# map script In-Reply-To: References: Message-ID: Hi I have posted the test application. But the email is waiting for approval of moderator (as the attachment size is 75 KB and I think allowed is only 40 KB). Thanks Murty From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Tuesday, February 17, 2009 6:33 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problem with loading map file using C# map script Hmmm. I haven't found such an issue before. If you could post an example that would be helpful to reproduce this. Best regards, Tamas 2009/2/18 Murty Maganti Hi I have a issue loading a map file through map script and need help. I have two map info (tab) files with same name but in two different folders. I have two map files each containing each layer. I am loading these map files using C# map script (each map file is loaded in to a separate mapObj on a separate thread). At run time, when I debug the second mapObj, the layer has items (layerObj.getItem()) from the first layer loaded by the first map file. I verified 'shapepath' on mapObj and it is pointing to correct path. There is nothing wrong there. I am surprised how is it caching the item info, just by the file name (file name is same but they are completely from different folders). When I load the map file one more time (again a different .Net thread, it shows up correct fields). Within my app (Asp.Net), I can consistently replicate this. Thanks Murty _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From woklist at kyngchaos.com Wed Feb 18 09:54:23 2009 From: woklist at kyngchaos.com (William Kyngesburye) Date: Wed, 18 Feb 2009 11:54:23 -0600 Subject: [mapserver-users] trying new label positioning - no change In-Reply-To: <7337B9B3-D0B1-48A9-B7F9-C243A6EBAFD0@kyngchaos.com> References: <499B533C0200008F00020C47@co5.dnr.state.mn.us> <7337B9B3-D0B1-48A9-B7F9-C243A6EBAFD0@kyngchaos.com> Message-ID: <2E9044E3-5C2D-4E10-873C-14095C170747@kyngchaos.com> On Feb 18, 2009, at 12:54 AM, William Kyngesburye wrote: > Hmm, but mixing the annotations with their geometry in a single > layer means you can't turn geometry and annotations on and off > separately - I often want to show just the feature geometry, yet be > able to turn on their annotations if I need it. > > Also, what about the drawing order? Won't other feature layers then > draw on top of earlier feature layers and annotations of those > layers? Or does the label cache force ALL annotations to draw last, > no matter what layer they're on? Simply changing the polygon annotation layer to type polygon does the trick. Without any style attributes, and only a label block, the geometry is not drawn again and it uses the polygon label ordering. And it still lets me keep label and geometry layers separate. And I'm not really worried about performance right now. ----- William Kyngesburye http://www.kyngchaos.com/ "The beast is actively interested only in now, and, as it is always now and always shall be, there is an eternity of time for the accomplishment of objects." - the wisdom of Tarzan From woklist at kyngchaos.com Wed Feb 18 10:27:28 2009 From: woklist at kyngchaos.com (William Kyngesburye) Date: Wed, 18 Feb 2009 12:27:28 -0600 Subject: [mapserver-users] another labelling problem in trunk Message-ID: <65C404A8-9910-4EAD-9887-E4941B538E97@kyngchaos.com> MINFEATURESIZE doesn't seem to be working for polygons, in trunk. Works in 5.2. Doesn't matter if I use polygon or annotation layer type. It works for line layers. I suppose this should go right into a bug report, but I wanted to make sure there wasn't something I missed. ----- William Kyngesburye http://www.kyngchaos.com/ First Pogril: Why is life like sticking your head in a bucket filled with hyena offal? Second Pogril: I don't know. Why IS life like sticking your head in a bucket filled with hyena offal? First Pogril: I don't know either. Wretched, isn't it? -HitchHiker's Guide to the Galaxy From szekerest at gmail.com Wed Feb 18 11:02:45 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 18 Feb 2009 20:02:45 +0100 Subject: [mapserver-users] Problem with loading map file using C# map script In-Reply-To: References: Message-ID: Would you send me the files privately for the meantime? Tamas 2009/2/18 Murty Maganti > Hi > > > > I have posted the test application. But the email is waiting for approval > of moderator (as the attachment size is 75 KB and I think allowed is only 40 > KB). > > > > Thanks > > Murty > > > > *From:* Tamas Szekeres [mailto:szekerest at gmail.com] > *Sent:* Tuesday, February 17, 2009 6:33 PM > *To:* Murty Maganti > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Problem with loading map file using C# > map script > > > > Hmmm. I haven't found such an issue before. > > If you could post an example that would be helpful to reproduce this. > > Best regards, > > Tamas > > > 2009/2/18 Murty Maganti > > Hi > > > > I have a issue loading a map file through map script and need help. > > > > I have two map info (tab) files with same name but in two different > folders. I have two map files each containing each layer. I am loading these > map files using C# map script (each map file is loaded in to a separate > mapObj on a separate thread). At run time, when I debug the second mapObj, > the layer has items (layerObj.getItem()) from the first layer loaded by the > first map file. I verified 'shapepath' on mapObj and it is pointing to > correct path. There is nothing wrong there. I am surprised how is it caching > the item info, just by the file name (file name is same but they are > completely from different folders). > > > > When I load the map file one more time (again a different .Net thread, it > shows up correct fields). > > > > Within my app (Asp.Net), I can consistently replicate this. > > > > Thanks > > Murty > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From MMaganti at oriongis.com Wed Feb 18 09:49:15 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Wed, 18 Feb 2009 12:49:15 -0500 Subject: [mapserver-users] Problem with loading map file using C# map script In-Reply-To: References: Message-ID: Hi Tamas I have created a test application and the issue is easily replicable. It is VS 2008 project. If you are using VS 2005, then please grab the code from Form1.cs into a new project ( I have removed the bin\debug folder to reduce the attachment size. Please make sure to copy the map server binaries) Issue is easily replicable. I have a layer called 'Layer' in two data folders 'data1' and 'data2'. Data1\Layer has field named 'ABCD' and data2\Layer has field named 'PQRS'. Watch for the values of field1 and field2 variables in the code. You will find the name is same. Please let me know if you need more details. Thanks Murty From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Tuesday, February 17, 2009 6:33 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problem with loading map file using C# map script Hmmm. I haven't found such an issue before. If you could post an example that would be helpful to reproduce this. Best regards, Tamas 2009/2/18 Murty Maganti Hi I have a issue loading a map file through map script and need help. I have two map info (tab) files with same name but in two different folders. I have two map files each containing each layer. I am loading these map files using C# map script (each map file is loaded in to a separate mapObj on a separate thread). At run time, when I debug the second mapObj, the layer has items (layerObj.getItem()) from the first layer loaded by the first map file. I verified 'shapepath' on mapObj and it is pointing to correct path. There is nothing wrong there. I am surprised how is it caching the item info, just by the file name (file name is same but they are completely from different folders). When I load the map file one more time (again a different .Net thread, it shows up correct fields). Within my app (Asp.Net), I can consistently replicate this. Thanks Murty _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: MapInfoIssue.zip Type: application/x-zip-compressed Size: 80854 bytes Desc: MapInfoIssue.zip URL: From MMaganti at oriongis.com Wed Feb 18 11:36:19 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Wed, 18 Feb 2009 14:36:19 -0500 Subject: [mapserver-users] Problem with loading map file using C# map script In-Reply-To: References: Message-ID: Hi Tried few times before but that is bouncing with following message Your message did not reach some or all of the intended recipients. Subject: RE: [mapserver-users] Problem with loading map file using C# map script The following recipient(s) cannot be reached: 'Tamas Szekeres' on 2/18/2009 2:35 PM There was a SMTP communication problem with the recipient's email server. Please contact your system administrator. From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Wednesday, February 18, 2009 2:03 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problem with loading map file using C# map script Would you send me the files privately for the meantime? Tamas 2009/2/18 Murty Maganti Hi I have posted the test application. But the email is waiting for approval of moderator (as the attachment size is 75 KB and I think allowed is only 40 KB). Thanks Murty From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Tuesday, February 17, 2009 6:33 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problem with loading map file using C# map script Hmmm. I haven't found such an issue before. If you could post an example that would be helpful to reproduce this. Best regards, Tamas 2009/2/18 Murty Maganti Hi I have a issue loading a map file through map script and need help. I have two map info (tab) files with same name but in two different folders. I have two map files each containing each layer. I am loading these map files using C# map script (each map file is loaded in to a separate mapObj on a separate thread). At run time, when I debug the second mapObj, the layer has items (layerObj.getItem()) from the first layer loaded by the first map file. I verified 'shapepath' on mapObj and it is pointing to correct path. There is nothing wrong there. I am surprised how is it caching the item info, just by the file name (file name is same but they are completely from different folders). When I load the map file one more time (again a different .Net thread, it shows up correct fields). Within my app (Asp.Net), I can consistently replicate this. Thanks Murty _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From MMaganti at oriongis.com Wed Feb 18 11:37:43 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Wed, 18 Feb 2009 14:37:43 -0500 Subject: [mapserver-users] Problem with loading map file using C# map script In-Reply-To: References: Message-ID: Sorry, it may be coming from our SMTP server. I will verify. From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Wednesday, February 18, 2009 2:03 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problem with loading map file using C# map script Would you send me the files privately for the meantime? Tamas 2009/2/18 Murty Maganti Hi I have posted the test application. But the email is waiting for approval of moderator (as the attachment size is 75 KB and I think allowed is only 40 KB). Thanks Murty From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Tuesday, February 17, 2009 6:33 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problem with loading map file using C# map script Hmmm. I haven't found such an issue before. If you could post an example that would be helpful to reproduce this. Best regards, Tamas 2009/2/18 Murty Maganti Hi I have a issue loading a map file through map script and need help. I have two map info (tab) files with same name but in two different folders. I have two map files each containing each layer. I am loading these map files using C# map script (each map file is loaded in to a separate mapObj on a separate thread). At run time, when I debug the second mapObj, the layer has items (layerObj.getItem()) from the first layer loaded by the first map file. I verified 'shapepath' on mapObj and it is pointing to correct path. There is nothing wrong there. I am surprised how is it caching the item info, just by the file name (file name is same but they are completely from different folders). When I load the map file one more time (again a different .Net thread, it shows up correct fields). Within my app (Asp.Net), I can consistently replicate this. Thanks Murty _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at osgis.nl Wed Feb 18 11:35:31 2009 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed, 18 Feb 2009 20:35:31 +0100 Subject: [mapserver-users] Problem with loading map file using C# map script In-Reply-To: References: Message-ID: <499C6303.1000409@osgis.nl> I just allowed your message on the list so I am sure Tamas will get it. Best regards, Bart Murty Maganti wrote: > > Sorry, it may be coming from our SMTP server. I will verify. > > > > *From:* Tamas Szekeres [mailto:szekerest at gmail.com] > *Sent:* Wednesday, February 18, 2009 2:03 PM > *To:* Murty Maganti > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Problem with loading map file using > C# map script > > > > Would you send me the files privately for the meantime? > > Tamas > > > 2009/2/18 Murty Maganti > > > Hi > > > > I have posted the test application. But the email is waiting for > approval of moderator (as the attachment size is 75 KB and I think > allowed is only 40 KB). > > > > Thanks > > Murty > > > > *From:* Tamas Szekeres [mailto:szekerest at gmail.com > ] > *Sent:* Tuesday, February 17, 2009 6:33 PM > > > *To:* Murty Maganti > *Cc:* mapserver-users at lists.osgeo.org > > *Subject:* Re: [mapserver-users] Problem with loading map file using > C# map script > > > > Hmmm. I haven't found such an issue before. > > > If you could post an example that would be helpful to reproduce this. > > Best regards, > > Tamas > > 2009/2/18 Murty Maganti > > > Hi > > > > I have a issue loading a map file through map script and need help. > > > > I have two map info (tab) files with same name but in two different > folders. I have two map files each containing each layer. I am loading > these map files using C# map script (each map file is loaded in to a > separate mapObj on a separate thread). At run time, when I debug the > second mapObj, the layer has items (layerObj.getItem()) from the first > layer loaded by the first map file. I verified 'shapepath' on mapObj > and it is pointing to correct path. There is nothing wrong there. I am > surprised how is it caching the item info, just by the file name (file > name is same but they are completely from different folders). > > > > When I load the map file one more time (again a different .Net thread, > it shows up correct fields). > > > > Within my app (Asp.Net), I can consistently replicate this. > > > > Thanks > > Murty > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Bart van den Eijnden OSGIS, Open Source GIS bartvde at osgis.nl http://www.osgis.nl From szekerest at gmail.com Wed Feb 18 13:42:47 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 18 Feb 2009 22:42:47 +0100 Subject: [mapserver-users] Problem with loading map file using C# map script In-Reply-To: References: Message-ID: Murty, I've investigated the problem it seems having the same name for each connection causes that the same connection is used from the connection pool when opening the second layer by the OGR driver. But if you close the first layer before opening the second it should work correctly then, like: string mapfile1 = Path.Combine(Application.StartupPath, @"..\..\mapfile1.map"); mapObj map1 = new mapObj(mapfile1); layerObj lyr1 = map1.getLayer(0); lyr1.open(); string field1 = lyr1.getItem(0); lyr1.close(); string mapfile2 = Path.Combine(Application.StartupPath, @"..\..\mapfile2.map"); mapObj map2 = new mapObj(mapfile2); layerObj lyr2 = map2.getLayer(0); lyr2.open(); string field2 = lyr2.getItem(0); lyr2.close(); Best regards, Tamas 2009/2/18 Murty Maganti > Hi > > > > I have posted the test application. But the email is waiting for approval > of moderator (as the attachment size is 75 KB and I think allowed is only 40 > KB). > > > > Thanks > > Murty > > > > *From:* Tamas Szekeres [mailto:szekerest at gmail.com] > *Sent:* Tuesday, February 17, 2009 6:33 PM > *To:* Murty Maganti > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Problem with loading map file using C# > map script > > > > Hmmm. I haven't found such an issue before. > > If you could post an example that would be helpful to reproduce this. > > Best regards, > > Tamas > > > 2009/2/18 Murty Maganti > > Hi > > > > I have a issue loading a map file through map script and need help. > > > > I have two map info (tab) files with same name but in two different > folders. I have two map files each containing each layer. I am loading these > map files using C# map script (each map file is loaded in to a separate > mapObj on a separate thread). At run time, when I debug the second mapObj, > the layer has items (layerObj.getItem()) from the first layer loaded by the > first map file. I verified 'shapepath' on mapObj and it is pointing to > correct path. There is nothing wrong there. I am surprised how is it caching > the item info, just by the file name (file name is same but they are > completely from different folders). > > > > When I load the map file one more time (again a different .Net thread, it > shows up correct fields). > > > > Within my app (Asp.Net), I can consistently replicate this. > > > > Thanks > > Murty > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From greg at gregorycollins.net Wed Feb 18 13:48:59 2009 From: greg at gregorycollins.net (Gregory Collins) Date: Wed, 18 Feb 2009 16:48:59 -0500 Subject: [mapserver-users] Question re: city points layers and markers In-Reply-To: (Gregory Collins's message of "Tue, 17 Feb 2009 12:10:10 -0500") References: Message-ID: Gregory Collins writes: > Hello all, > > Sorry if this question has an answer in the existing documentation but > I've been struggling for days and can't find a solution. > > I'm trying to render a city points layer on a regional-level map. I want > point markers to be placed for all of the cities which are important > enough to get labels, but no markers for unlabeled cities. > > If I use a layer of type "point", I get markers for all of the points, > which I don't want. The documentation says that for annotation layers, > "Annotation means that a label point will be calculated for the > features, but the feature itself will not be drawn although a marker > symbol can be optionally drawn", but I can't seem to get it to draw the > markers. > > What am I doing wrong? Figured this out: without "POSITION AUTO" on the labels (which I thought was the default) it was drawing the labels on top of the markers. G -- Gregory Collins From MMaganti at oriongis.com Wed Feb 18 14:03:35 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Wed, 18 Feb 2009 17:03:35 -0500 Subject: [mapserver-users] Problem with loading map file using C# map script In-Reply-To: References: Message-ID: Thanks a lot. It resolved my issue. Murty From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Wednesday, February 18, 2009 4:43 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problem with loading map file using C# map script Murty, I've investigated the problem it seems having the same name for each connection causes that the same connection is used from the connection pool when opening the second layer by the OGR driver. But if you close the first layer before opening the second it should work correctly then, like: string mapfile1 = Path.Combine(Application.StartupPath, @"..\..\mapfile1.map"); mapObj map1 = new mapObj(mapfile1); layerObj lyr1 = map1.getLayer(0); lyr1.open(); string field1 = lyr1.getItem(0); lyr1.close(); string mapfile2 = Path.Combine(Application.StartupPath, @"..\..\mapfile2.map"); mapObj map2 = new mapObj(mapfile2); layerObj lyr2 = map2.getLayer(0); lyr2.open(); string field2 = lyr2.getItem(0); lyr2.close(); Best regards, Tamas 2009/2/18 Murty Maganti Hi I have posted the test application. But the email is waiting for approval of moderator (as the attachment size is 75 KB and I think allowed is only 40 KB). Thanks Murty From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Tuesday, February 17, 2009 6:33 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problem with loading map file using C# map script Hmmm. I haven't found such an issue before. If you could post an example that would be helpful to reproduce this. Best regards, Tamas 2009/2/18 Murty Maganti Hi I have a issue loading a map file through map script and need help. I have two map info (tab) files with same name but in two different folders. I have two map files each containing each layer. I am loading these map files using C# map script (each map file is loaded in to a separate mapObj on a separate thread). At run time, when I debug the second mapObj, the layer has items (layerObj.getItem()) from the first layer loaded by the first map file. I verified 'shapepath' on mapObj and it is pointing to correct path. There is nothing wrong there. I am surprised how is it caching the item info, just by the file name (file name is same but they are completely from different folders). When I load the map file one more time (again a different .Net thread, it shows up correct fields). Within my app (Asp.Net), I can consistently replicate this. Thanks Murty _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From randre at gmail.com Wed Feb 18 14:24:54 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Wed, 18 Feb 2009 14:24:54 -0800 Subject: [mapserver-users] GDAL image handling band error with NetCDF WCS layer Message-ID: <9c2015090902181424t6b74dff5r9371fd912100a391@mail.gmail.com> Hi All, - I am attempting to use a NetCDF file as a data source for a raster layer in Mapserver. According to a very useful email sent in November 2005 from Norman Barker, http://lists.osgeo.org/pipermail/mapserver-users/2005-November/012153.html, and from Mapserver documentation at http://www.mapserver.org/ogc/wcs_format.html#netcdf, it seems like this should be possible using Mapserver's gdal driver to read the file. However, I am running into some problems when trying to implement his example. - The NetCDF file which I am using is a "CF Convention" sample file which I downloaded from http://www.unidata.ucar.edu/software/netcdf/examples/tos_O1_2001-2002.nc. This file contains information about sea-surface temperatures, and when viewed by gdalinfo has the following characteristics: $ gdalinfo tos_O1_2001-2002.nc Driver: netCDF/Network Common Data Format Files: tos_O1_2001-2002.nc Size is 512, 512 Coordinate System is `' Metadata: NC_GLOBAL#title=IPSL model output prepared for IPCC Fourth Assessment SRES A2 experiment NC_GLOBAL#institution=IPSL (Institut Pierre Simon Laplace, Paris, France) NC_GLOBAL#source=IPSL-CM4_v1 (2003) : atmosphere : LMDZ (IPSL-CM4_IPCC, 96x71x19) ; ocean ORCA2 (ipsl_cm4_v1_8, 2x2L31); sea ice LIM (ipsl_cm4_v NC_GLOBAL#contact=Sebastien Denvil, sebastien.denvil at ipsl.jussieu.fr NC_GLOBAL#project_id=IPCC Fourth Assessment NC_GLOBAL#table_id=Table O1 (13 November 2004) NC_GLOBAL#experiment_id=SRES A2 experiment NC_GLOBAL#realization=1 NC_GLOBAL#cmor_version=9.600000e-01 NC_GLOBAL#Conventions=CF-1.0 NC_GLOBAL#history=YYYY/MM/JJ: data generated; YYYY/MM/JJ+1 data transformed At 16:37:23 on 01/11/2005, CMOR rewrote data to comply with CF standards and IPCC Fourth Assessment requirements NC_GLOBAL#references=Dufresne et al, Journal of Climate, 2015, vol XX, p 136 NC_GLOBAL#comment=Test drive Subdatasets: SUBDATASET_1_NAME=NETCDF:"tos_O1_2001-2002.nc":lon_bnds SUBDATASET_1_DESC=[180x2] lon_bnds (64-bit floating-point) SUBDATASET_2_NAME=NETCDF:"tos_O1_2001-2002.nc":lat_bnds SUBDATASET_2_DESC=[170x2] lat_bnds (64-bit floating-point) SUBDATASET_3_NAME=NETCDF:"tos_O1_2001-2002.nc":time_bnds SUBDATASET_3_DESC=[24x2] time_bnds (64-bit floating-point) SUBDATASET_4_NAME=NETCDF:"tos_O1_2001-2002.nc":tos SUBDATASET_4_DESC=[24x170x180] sea_surface_temperature (32-bit floating-point) Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 512.0) Upper Right ( 512.0, 0.0) Lower Right ( 512.0, 512.0) Center ( 256.0, 256.0) - The SUBDATASET of interest is the "tos" one, and when queried by gdalinfo it shows that it contains 24 bands, each of which varies by NETCDF_DIMENSION_time that increments by 15. When specifically queried by gdalinfo, this SUBDATASET looks like this: $ gdalinfo NETCDF:"tos_O1_2001-2002.nc":tos Driver: netCDF/Network Common Data Format Files: none associated Size is 180, 170 Coordinate System is `' Origin = (0.000000000000000,90.000000000000000) Pixel Size = (2.000000000000000,-1.000000000000000) Metadata: NC_GLOBAL#title=IPSL model output prepared for IPCC Fourth Assessment SRES A2 experiment NC_GLOBAL#institution=IPSL (Institut Pierre Simon Laplace, Paris, France) NC_GLOBAL#source=IPSL-CM4_v1 (2003) : atmosphere : LMDZ (IPSL-CM4_IPCC, 96x71x19) ; ocean ORCA2 (ipsl_cm4_v1_8, 2x2L31); sea ice LIM (ipsl_cm4_v NC_GLOBAL#contact=Sebastien Denvil, sebastien.denvil at ipsl.jussieu.fr NC_GLOBAL#project_id=IPCC Fourth Assessment NC_GLOBAL#table_id=Table O1 (13 November 2004) NC_GLOBAL#experiment_id=SRES A2 experiment NC_GLOBAL#realization=1 NC_GLOBAL#cmor_version=9.600000e-01 NC_GLOBAL#Conventions=CF-1.0 NC_GLOBAL#history=YYYY/MM/JJ: data generated; YYYY/MM/JJ+1 data transformed At 16:37:23 on 01/11/2005, CMOR rewrote data to comply with CF standards and IPCC Fourth Assessment requirements NC_GLOBAL#references=Dufresne et al, Journal of Climate, 2015, vol XX, p 136 NC_GLOBAL#comment=Test drive tos#standard_name=sea_surface_temperature tos#long_name=Sea Surface Temperature tos#units=K tos#cell_methods=time: mean (interval: 30 minutes) tos#_FillValue=1.000000e+20 tos#missing_value=1.000000e+20 tos#original_name=sosstsst tos#original_units=degC tos#history= At 16:37:23 on 01/11/2005: CMOR altered the data in the following ways: added 2.73150E+02 to yield output units; Cyclical dimension was output starting at a different lon; lon#standard_name=longitude lon#long_name=longitude lon#units=degrees_east lon#axis=X lon#bounds=lon_bnds lon#original_units=degrees_east lat#standard_name=latitude lat#long_name=latitude lat#units=degrees_north lat#axis=Y lat#bounds=lat_bnds lat#original_units=degrees_north time#standard_name=time time#long_name=time time#units=days since 2001-1-1 time#axis=T time#calendar=360_day time#bounds=time_bnds time#original_units=seconds since 2001-1-1 Corner Coordinates: Upper Left ( 0.0000000, 90.0000000) Lower Left ( 0.0000000, -80.0000000) Upper Right ( 360.000, 90.000) Lower Right ( 360.000, -80.000) Center ( 180.0000000, 5.0000000) Band 1 Block=180x1 Type=Float32, ColorInterp=Undefined NoData Value=1.00000002004087734e+20 Metadata: NETCDF_VARNAME=tos NETCDF_DIMENSION_time=15 NETCDF_time_units=days since 2001-1-1 Band 2 Block=180x1 Type=Float32, ColorInterp=Undefined NoData Value=1.00000002004087734e+20 Metadata: NETCDF_VARNAME=tos NETCDF_DIMENSION_time=45 NETCDF_time_units=days since 2001-1-1 Band 3 Block=180x1 Type=Float32, ColorInterp=Undefined NoData Value=1.00000002004087734e+20 Metadata: NETCDF_VARNAME=tos NETCDF_DIMENSION_time=75 NETCDF_time_units=days since 2001-1-1 Band 4 Block=180x1 Type=Float32, ColorInterp=Undefined NoData Value=1.00000002004087734e+20 Metadata: NETCDF_VARNAME=tos NETCDF_DIMENSION_time=105 NETCDF_time_units=days since 2001-1-1 Band 5 Block=180x1 Type=Float32, ColorInterp=Undefined NoData Value=1.00000002004087734e+20 Metadata: NETCDF_VARNAME=tos NETCDF_DIMENSION_time=135 NETCDF_time_units=days since 2001-1-1 Band 6 Block=180x1 Type=Float32, ColorInterp=Undefined NoData Value=1.00000002004087734e+20 Metadata: NETCDF_VARNAME=tos NETCDF_DIMENSION_time=165 NETCDF_time_units=days since 2001-1-1 Band 7 Block=180x1 Type=Float32, ColorInterp=Undefined NoData Value=1.00000002004087734e+20 Metadata: NETCDF_VARNAME=tos NETCDF_DIMENSION_time=195 NETCDF_time_units=days since 2001-1-1 Band 8 Block=180x1 Type=Float32, ColorInterp=Undefined NoData Value=1.00000002004087734e+20 Metadata: NETCDF_VARNAME=tos NETCDF_DIMENSION_time=225 NETCDF_time_units=days since 2001-1-1 Band 9 Block=180x1 Type=Float32, ColorInterp=Undefined NoData Value=1.00000002004087734e+20 Metadata: NETCDF_VARNAME=tos NETCDF_DIMENSION_time=255 NETCDF_time_units=days since 2001-1-1 Band 10 Block=180x1 Type=Float32, ColorInterp=Undefined NoData Value=1.00000002004087734e+20 Metadata: NETCDF_VARNAME=tos NETCDF_DIMENSION_time=285 NETCDF_time_units=days since 2001-1-1 Band 11 Block=180x1 Type=Float32, ColorInterp=Undefined NoData Value=1.00000002004087734e+20 Metadata: NETCDF_VARNAME=tos NETCDF_DIMENSION_time=315 NETCDF_time_units=days since 2001-1-1 Band 12 Block=180x1 Type=Float32, ColorInterp=Undefined NoData Value=1.00000002004087734e+20 Metadata: NETCDF_VARNAME=tos NETCDF_DIMENSION_time=345 NETCDF_time_units=days since 2001-1-1 Band 13 Block=180x1 Type=Float32, ColorInterp=Undefined NoData Value=1.00000002004087734e+20 Metadata: NETCDF_VARNAME=tos NETCDF_DIMENSION_time=375 NETCDF_time_units=days since 2001-1-1 Band 14 Block=180x1 Type=Float32, ColorInterp=Undefined NoData Value=1.00000002004087734e+20 Metadata: NETCDF_VARNAME=tos NETCDF_DIMENSION_time=405 NETCDF_time_units=days since 2001-1-1 Band 15 Block=180x1 Type=Float32, ColorInterp=Undefined NoData Value=1.00000002004087734e+20 Metadata: NETCDF_VARNAME=tos NETCDF_DIMENSION_time=435 NETCDF_time_units=days since 2001-1-1 Band 16 Block=180x1 Type=Float32, ColorInterp=Undefined NoData Value=1.00000002004087734e+20 Metadata: NETCDF_VARNAME=tos NETCDF_DIMENSION_time=465 NETCDF_time_units=days since 2001-1-1 Band 17 Block=180x1 Type=Float32, ColorInterp=Undefined NoData Value=1.00000002004087734e+20 Metadata: NETCDF_VARNAME=tos NETCDF_DIMENSION_time=495 NETCDF_time_units=days since 2001-1-1 Band 18 Block=180x1 Type=Float32, ColorInterp=Undefined NoData Value=1.00000002004087734e+20 Metadata: NETCDF_VARNAME=tos NETCDF_DIMENSION_time=525 NETCDF_time_units=days since 2001-1-1 Band 19 Block=180x1 Type=Float32, ColorInterp=Undefined NoData Value=1.00000002004087734e+20 Metadata: NETCDF_VARNAME=tos NETCDF_DIMENSION_time=555 NETCDF_time_units=days since 2001-1-1 Band 20 Block=180x1 Type=Float32, ColorInterp=Undefined NoData Value=1.00000002004087734e+20 Metadata: NETCDF_VARNAME=tos NETCDF_DIMENSION_time=585 NETCDF_time_units=days since 2001-1-1 Band 21 Block=180x1 Type=Float32, ColorInterp=Undefined NoData Value=1.00000002004087734e+20 Metadata: NETCDF_VARNAME=tos NETCDF_DIMENSION_time=615 NETCDF_time_units=days since 2001-1-1 Band 22 Block=180x1 Type=Float32, ColorInterp=Undefined NoData Value=1.00000002004087734e+20 Metadata: NETCDF_VARNAME=tos NETCDF_DIMENSION_time=645 NETCDF_time_units=days since 2001-1-1 Band 23 Block=180x1 Type=Float32, ColorInterp=Undefined NoData Value=1.00000002004087734e+20 Metadata: NETCDF_VARNAME=tos NETCDF_DIMENSION_time=675 NETCDF_time_units=days since 2001-1-1 Band 24 Block=180x1 Type=Float32, ColorInterp=Undefined NoData Value=1.00000002004087734e+20 Metadata: NETCDF_VARNAME=tos NETCDF_DIMENSION_time=705 NETCDF_time_units=days since 2001-1-1 - I have been able to setup a WCS implementation that returns a correct DescribeCoverage response using the following request: http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/netCDF/test.map &SERVICE=WCS &VERSION=1.0.0 &REQUEST=DescribeCoverage &COVERAGE=netcdf - However, I cannot seem to make a GetCoverage request work properly. Below is an example of one that I've tried. http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/netCDF/test.map &SERVICE=wcs &VERSION=1.0.0 &REQUEST=GetCoverage &coverage=netcdf &CRS=EPSG:4326 &BBOX=-179,-80,180,90 &WIDTH=1200 &HEIGHT=600 &FORMAT=GTiff &RangeSubset=BandsName:bilinear[bands[1]] - The error I get back is this: msGetGDALBandList(): Image handling error. Attempt to operate on GDAL file with no bands, layer=netcdf. - I'm not sure based on the structure of the NetCDF file how I should structure the request, or if my mapfiles are correctly structured. Below are my mapfiles: - test.map: ----------- MAP NAME 'test' EXTENT -180 -80 180 90 #EXTENT 0.0 -80.0 360.0 90.0 SIZE 600 600 IMAGECOLOR 0 0 0 PROJECTION "init=epsg:4326" END # layers to include in map INCLUDE 'netcdf.map' # WEB PARAMETERS WEB IMAGEURL "/var/www/html/tmp" IMAGEPATH "/tmp" METADATA "wcs_label" "GMap WCS Demo Server" END END OUTPUTFORMAT NAME 'GEOTIFF_FLOAT' DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE FLOAT32 EXTENSION "tif" END END ------------- - netcdf.map: ------------- # netcdf LAYER NAME "netcdf" STATUS DEFAULT TYPE RASTER DUMP TRUE DATA "tos_O1_2001-2002.nc" METADATA wcs_label "Test netCDF Server" ows_extent '-180.0 -80.0 180.0 90.0' #ows_extent '0.0 -80.0 360.0 90.0' wcs_resolution '2 -1' ows_srs "EPSG:4326" wcs_formats "GEOTIFF_FLOAT" wcs_nativeformat "netCDF" wcs_bandcount "24" wcs_rangeset_axes "bands" wcs_rangeset_label "tos" wcs_rangeset_name "bands" END END - If anything jumps out at you, please let me know. Thanks, Roger -------------- next part -------------- An HTML attachment was scrubbed... URL: From cheung.jackey at gmail.com Wed Feb 18 17:48:51 2009 From: cheung.jackey at gmail.com (GMail) Date: Thu, 19 Feb 2009 09:48:51 +0800 Subject: [mapserver-users] How does MINDISTANCE work exactly? Message-ID: <1A9C46C0EE284E3EBA52DBF4A31D824D@jcdesktop> Greetings! We are using MapServer 5.2.0, and we've got a long line to render with labels. The CLASS goes as: CLASS NAME "Local Road (2.5K)" MINSCALEDENOM 2500 MAXSCALEDENOM 5000 EXPRESSION "3430" STYLE WIDTH 8 COLOR 96 96 96 END STYLE WIDTH 6 COLOR 255 255 255 END LABEL ANGLE FOLLOW PRIORITY 8 ENCODING "UTF-8" COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT arial SIZE 7 POSITION CC PARTIALS FALSE MINDISTANCE 10 BUFFER 1 #MINFEATURESIZE AUTO END END And we've got the attached image in result. However, the image isn't what we were expecting. We expect that there should be 3 to 4 labels along the line, since it's long enough to hold them, and the MINDISTANCE is just 10 pixels. We've tried to change the POSITION to left aligned, but still have the same resulting image. What exactly goes wrong here? Or we've just misunderstood something? -------------- next part -------------- A non-text attachment was scrubbed... Name: MS12350066033332.jpg Type: image/jpeg Size: 5613 bytes Desc: not available URL: From woodbri at swoodbridge.com Wed Feb 18 19:00:46 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 18 Feb 2009 22:00:46 -0500 Subject: [mapserver-users] How does MINDISTANCE work exactly? In-Reply-To: <1A9C46C0EE284E3EBA52DBF4A31D824D@jcdesktop> References: <1A9C46C0EE284E3EBA52DBF4A31D824D@jcdesktop> Message-ID: <499CCB5E.1030207@swoodbridge.com> Only ONE label is produced per line object, regardless of how long it is. MINDISTANCE controls how close another label of the same name on a different object may be. This is for thinning out label NOT adding additional labels. -Steve W GMail wrote: > Greetings! > > We are using MapServer 5.2.0, and we've got a long line to render with > labels. > > The CLASS goes as: > CLASS > NAME "Local Road (2.5K)" > MINSCALEDENOM 2500 > MAXSCALEDENOM 5000 > EXPRESSION "3430" > STYLE > WIDTH 8 > COLOR 96 96 96 > END > STYLE > WIDTH 6 > COLOR 255 255 255 > END > LABEL > ANGLE FOLLOW > PRIORITY 8 > ENCODING "UTF-8" > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > TYPE TRUETYPE > FONT arial > SIZE 7 > POSITION CC > PARTIALS FALSE > MINDISTANCE 10 > BUFFER 1 > #MINFEATURESIZE AUTO > END > END > > And we've got the attached image in result. > > However, the image isn't what we were expecting. We expect that there > should be 3 to 4 labels along the line, since it's long enough to hold > them, and the MINDISTANCE is just 10 pixels. We've tried to change the > POSITION to left aligned, but still have the same resulting image. > > What exactly goes wrong here? Or we've just misunderstood something? > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From gluker at scu.edu.au Wed Feb 18 20:24:34 2009 From: gluker at scu.edu.au (Greg Luker) Date: Thu, 19 Feb 2009 14:24:34 +1000 Subject: [mapserver-users] How does MINDISTANCE work exactly? In-Reply-To: <1A9C46C0EE284E3EBA52DBF4A31D824D@jcdesktop> References: <1A9C46C0EE284E3EBA52DBF4A31D824D@jcdesktop> Message-ID: <200902190325.n1J3PDFv014112@atom.scu.edu.au> Hi mapserver-users, At 11:48 AM 19/02/2009, GMail wrote: >We are using MapServer 5.2.0, and we've got a long line to render with labels. Could you use TEXT ([attrib_label1],[attrib_label2],[attrib_label3]) in the CLASS object for this? Thanks, Greg. Greg Luker GIS Lab Manager, Southern Cross University Lismore, AUSTRALIA. gluker at scu.edu.au phone 61 2 66203026 From Steve.Lime at dnr.state.mn.us Wed Feb 18 20:59:23 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 18 Feb 2009 22:59:23 -0600 Subject: [mapserver-users] MapServer 5.4.0-beta1 Released Message-ID: <499C92CB0200008F00020D3D@co5.dnr.state.mn.us> Hi all: The MapServer PSC is pleased to announce the release of the first beta for the 5.4.0 release. This will likely be the last major release in the 5.x series as we are planning for a 6.0 release later this year. Important new functionality includes: - support for WMS 1.3.0 (RFC 30) - style-level geometry transformations for enhanced output rendering (RFC 48) - expanded URL mapfile configuration (RFC 44) - numerous symbology, labeling and cartography improvements (RFC 49) - major re-factoring of the PostGIS driver code As usual there an a large number of additional small enhancements and bug fixes. For a complete list is the HISTORY.TXT file at: http://svn.osgeo.org/mapserver/tags/rel-5-4-0-beta1/mapserver/HISTORY.TXT The release can be downloaded at: http://mapserver.org/download.html OR http://download.osgeo.org/mapserver/mapserver-5.4.0-beta1.tar.gz This is the first of two beta releases and if all goes well a final release should occur in early March. The full release plan can be viewed at: http://trac.osgeo.org/mapserver/wiki/54ReleasePlan We need your help to ensure a high quality product so please help out by testing your applications with this new code base. Thanks! - Steve From woodbri at swoodbridge.com Wed Feb 18 21:54:27 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 19 Feb 2009 00:54:27 -0500 Subject: [mapserver-users] Re: [mapserver-dev] MapServer 5.4.0-beta1 Released In-Reply-To: <499C92CB0200008F00020D3D@co5.dnr.state.mn.us> References: <499C92CB0200008F00020D3D@co5.dnr.state.mn.us> Message-ID: <499CF413.6020908@swoodbridge.com> Steve Lime wrote: > Hi all: The MapServer PSC is pleased to announce the release of the first beta for the 5.4.0 release. This will likely be the last major release in the 5.x series as we are planning for a 6.0 release later this year. Important new functionality includes: > > - support for WMS 1.3.0 (RFC 30) > - style-level geometry transformations for enhanced output rendering (RFC 48) > - expanded URL mapfile configuration (RFC 44) > - numerous symbology, labeling and cartography improvements (RFC 49) > - major re-factoring of the PostGIS driver code > > As usual there an a large number of additional small enhancements and bug fixes. For a complete list is the HISTORY.TXT file at: > > http://svn.osgeo.org/mapserver/tags/rel-5-4-0-beta1/mapserver/HISTORY.TXT > > The release can be downloaded at: > > http://mapserver.org/download.html OR > http://download.osgeo.org/mapserver/mapserver-5.4.0-beta1.tar.gz > > This is the first of two beta releases and if all goes well a final release should occur in early March. The full release plan can be viewed at: > > http://trac.osgeo.org/mapserver/wiki/54ReleasePlan > > We need your help to ensure a high quality product so please help out by testing your applications with this new code base. > > Thanks! - Steve > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev Hi Steve, This fails to build with the following: $ ./configure \ --enable-runpath \ --enable-ignore-missing-data \ --enable-debug \ --with-httpd=/usr/sbin/apache \ --with-proj=/usr \ --with-agg=../agg-2.4 \ --with-gd \ --with-freetype \ --with-postgis \ --without-tiff \ --with-wmsclient \ --with-fribidi-config=yes \ --with-gdal \ --with-gdal \ --with-wfs \ --with-ogr \ $ make ... g++ -c -g -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_FRIBIDI -DUSE_FRIBIDI2 -DUSE_WMS_LYR -DUSE_CURL -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_POSTGIS -DUSE_GDAL -DUSE_OGR -DUSE_PROJ -DUSE_EPPL -DUSE_AGG -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_ICONV -DUSE_ZLIB -DUSE_FRIBIDI -DUSE_FRIBIDI2 -I/usr/include -I/u/software/mapserver-5.4.0-beta1/../agg-2.4/include -I/u/software/mapserver-5.4.0-beta1/../agg-2.4/font_freetype -I/usr/include/freetype2 -I/usr/include -I/usr/include -I/usr/include/postgresql -I/usr/local/include/fribidi mapogr.cpp -o mapogr.o mapogr.cpp: In function `char** msOGRGetValues(layerObj*, void*)': mapogr.cpp:1061: error: `OGRSTLabelStrikeout' undeclared (first use this function) mapogr.cpp:1061: error: (Each undeclared identifier is reported only once for each function it appears in.) mapogr.cpp:1072: error: `OGRSTLabelStretch' undeclared (first use this function) mapogr.cpp:1083: error: `OGRSTLabelAdjHor' undeclared (first use this function) mapogr.cpp:1094: error: `OGRSTLabelAdjVert' undeclared (first use this function) make: *** [mapogr.o] Error 1 -Steve W From kmanoj-pg7 at iiitmk.ac.in Thu Feb 19 01:55:31 2009 From: kmanoj-pg7 at iiitmk.ac.in (kmanoj-pg7 kmanoj-pg7) Date: Thu, 19 Feb 2009 15:25:31 +0530 Subject: [mapserver-users] msLoadMap(): Unable to access file on fedora 9 - newbie Message-ID: <9ab9b8cf0902190155n69e34bafv6e40333c05ceaff0@mail.gmail.com> Dear users.. I have been using mapserver 5.0.3 on fedora 9. now i am just playing with examples given in the tutorial for mapserver 5.x, unfortunately i stuck in the very first example explained in the tutorial. when i call the link http://localhost/cgi-bin/mapserv?map=/mapfiles/sampletest/kerala.map&layer=kerala&mode=map i faced the following error message msLoadMap(): Unable to access file. (/mapfiles/sampletest/kerala.map) i know i have done some silly mistake related to permission or path. I checked everything like permission and path, but i just cannot make it work. This my Map file for your kind perusal Map IMAGETYPE PNG NAME "Gods own country" SIZE 400 300 IMAGECOLOR 255 255 255 EXTENT -97.238976 41.619778 -82.122902 49.385620 SHAPEPATH "/var/www/html/mapfiles/sampletest/data/" WEB IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END PROJECTION "proj=laea" "ellps=clrk66" "lat_0=45" "lon_0=-100" # # Alternatively, you can specify an EPSG code. # "init=epsg:2163" # END LAYER NAME "kerala" TYPE POLYGON STATUS DEFAULT DATA "/var/www/html/mapfiles/sampletest/data/kerala_districts.shp" PROJECTION "init=epsg:4326" END CLASS STYLE COLOR 232 232 232 OUTLINECOLOR 32 32 32 END END END presumably , i am doing something stupid that i cannot see what can anybody please help me out.... moreover am a newbie help nd suggestion will be appreciated.... Thanks kapilmanoj -------------- next part -------------- An HTML attachment was scrubbed... URL: From b.veldkamp at zonnet.nl Thu Feb 19 05:05:32 2009 From: b.veldkamp at zonnet.nl (Berend Veldkamp) Date: Thu, 19 Feb 2009 14:05:32 +0100 Subject: [mapserver-users] Hatch symbol not properly saved Message-ID: <57fc60330902190505o1471ffdfq299bf9ad46eae40a@mail.gmail.com> Hi, I'm using CSharp mapscript to define some symbols, for instance a hatch: symbolObj result = new symbolObj("hatch", null); result.type = (int)MS_SYMBOL_TYPE.MS_SYMBOL_HATCH; map.symbolset.appendSymbol(result); when I call msmap.symbolset.save(), the symbol will have the following definition: SYMBOL NAME "hatch" END As you can see, "TYPE HATCH" is missing. Mapserver then says: "Symbol of type VECTOR or ELLIPSE has no point data" Any ideas? I'm using FWTools 2.3.1 (MS 5.3-dev) Regards, Berend From b.veldkamp at zonnet.nl Thu Feb 19 05:06:19 2009 From: b.veldkamp at zonnet.nl (Berend Veldkamp) Date: Thu, 19 Feb 2009 14:06:19 +0100 Subject: [mapserver-users] MapScript CSharp save fontset In-Reply-To: <7170806938776313520@unknownmsgid> References: <57fc60330902180736h312ca414ka0fd30df47a66536@mail.gmail.com> <7170806938776313520@unknownmsgid> Message-ID: <57fc60330902190506w777f7413la1bea630f0d43e9a@mail.gmail.com> Brian, Thanks. I was too focused on mapObj.fontset so I forgot to scroll down Visual Studio's auto-complete list. Berend On Wed, Feb 18, 2009 at 4:48 PM, Hulbert, Brian wrote: > Regarding the contents of the fontset. > I dynamically create the fontset file after indexing the fonts > installed on the user's system. That makes it easier to just show the user > a common Font dialog and allow them to choose the font they want. > > Regarding the fonset filename. > Using MapServer 5.0.2 from a C# app, I call setFontSet() of my > mapObj and pass it a fully qualified path and filename to my fontset file. > > > Brian > From valemunoz at gmail.com Thu Feb 19 05:23:07 2009 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Thu, 19 Feb 2009 10:23:07 -0300 Subject: [mapserver-users] HELP Message-ID: <4b56aefe0902190523j56eae0a9xe0804292c6d1a95e@mail.gmail.com> Hi, we need the possibility of creating multiple instances of Apache-linux connections for tilecache us to deliver up to 4 concurrents conections with the same site. I know that has nothing to do with the list, but if somebody can help me will be great! example. Default website *www.sitio1-tilecache.com* *www.sitio1-tilecache1.com:80* *www.sitio1-tilecache2.com:81* *www.sitio1-tilecache3.com:82* www.sitio1-tilecache4.com:83 how can i do this? RG -------------- next part -------------- An HTML attachment was scrubbed... URL: From nico.mandery at geops.de Thu Feb 19 05:32:51 2009 From: nico.mandery at geops.de (Nico Mandery) Date: Thu, 19 Feb 2009 14:32:51 +0100 Subject: [mapserver-users] HELP In-Reply-To: <4b56aefe0902190523j56eae0a9xe0804292c6d1a95e@mail.gmail.com> References: <4b56aefe0902190523j56eae0a9xe0804292c6d1a95e@mail.gmail.com> Message-ID: <499D5F83.6020802@geops.de> Hi Valeria, you are talking about virtualhosts I think. But why do you want to use non-standard ports like 81 to 83? A minimal Apache-config for these vhosts would be ServerName www.sitio1-tilecache1.com ServerAlias www.sitio1-tilecache2.com www.sitio1-tilecache3.com www.sitio1-tilecache4.com [...] But using subdomains it would be more elegant: ServerName tilecache1.sitio1.com ServerAlias tilecache2.sitio1.com tilecache3.sitio1.com tilecache4.sitio1.com [...] The DNS records for all these domains must point to the IP of this server. nico Valeria Mu?oz schrieb: > Hi, > > we need the possibility of creating multiple instances of Apache-linux > connections for tilecache us to deliver up to 4 concurrents conections with > the same site. > I know that has nothing to do with the list, but if somebody can help me > will be great! > > example. > > Default website *www.sitio1-tilecache.com* > > *www.sitio1-tilecache1.com:80* > > *www.sitio1-tilecache2.com:81* > > *www.sitio1-tilecache3.com:82* > www.sitio1-tilecache4.com:83 > > how can i do this? > > RG > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From aboudreault at mapgears.com Thu Feb 19 06:31:26 2009 From: aboudreault at mapgears.com (Alan Boudreault) Date: Thu, 19 Feb 2009 09:31:26 -0500 Subject: [mapserver-users] Re: [mapserver-dev] MapServer 5.4.0-beta1 Released In-Reply-To: <499CF413.6020908@swoodbridge.com> References: <499C92CB0200008F00020D3D@co5.dnr.state.mn.us> <499CF413.6020908@swoodbridge.com> Message-ID: <200902190931.26849.aboudreault@mapgears.com> I'm currently looking what version of OGR is needed for these properties. Alan On February 19, 2009 12:54:27 am Stephen Woodbridge wrote: > Steve Lime wrote: > > Hi all: The MapServer PSC is pleased to announce the release of the first > > beta for the 5.4.0 release. This will likely be the last major release in > > the 5.x series as we are planning for a 6.0 release later this year. > > Important new functionality includes: > > > > - support for WMS 1.3.0 (RFC 30) > > - style-level geometry transformations for enhanced output rendering > > (RFC 48) - expanded URL mapfile configuration (RFC 44) > > - numerous symbology, labeling and cartography improvements (RFC 49) > > - major re-factoring of the PostGIS driver code > > > > As usual there an a large number of additional small enhancements and bug > > fixes. For a complete list is the HISTORY.TXT file at: > > > > > > http://svn.osgeo.org/mapserver/tags/rel-5-4-0-beta1/mapserver/HISTORY.TXT > > > > The release can be downloaded at: > > > > http://mapserver.org/download.html OR > > http://download.osgeo.org/mapserver/mapserver-5.4.0-beta1.tar.gz > > > > This is the first of two beta releases and if all goes well a final > > release should occur in early March. The full release plan can be viewed > > at: > > > > http://trac.osgeo.org/mapserver/wiki/54ReleasePlan > > > > We need your help to ensure a high quality product so please help out by > > testing your applications with this new code base. > > > > Thanks! - Steve > > _______________________________________________ > > mapserver-dev mailing list > > mapserver-dev at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-dev > > Hi Steve, > > This fails to build with the following: > > $ ./configure \ > --enable-runpath \ > --enable-ignore-missing-data \ > --enable-debug \ > --with-httpd=/usr/sbin/apache \ > --with-proj=/usr \ > --with-agg=../agg-2.4 \ > --with-gd \ > --with-freetype \ > --with-postgis \ > --without-tiff \ > --with-wmsclient \ > --with-fribidi-config=yes \ > --with-gdal \ > --with-gdal \ > --with-wfs \ > --with-ogr \ > > $ make > ... > > g++ -c -g -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF > -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_FRIBIDI -DUSE_FRIBIDI2 > -DUSE_WMS_LYR -DUSE_CURL -DUSE_WFS_SVR -DUSE_WMS_SVR > -DUSE_POSTGIS -DUSE_GDAL -DUSE_OGR -DUSE_PROJ -DUSE_EPPL -DUSE_AGG > -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_ICONV -DUSE_ZLIB -DUSE_FRIBIDI -DUSE_FRIBIDI2 -I/usr/include > -I/u/software/mapserver-5.4.0-beta1/../agg-2.4/include > -I/u/software/mapserver-5.4.0-beta1/../agg-2.4/font_freetype > -I/usr/include/freetype2 -I/usr/include -I/usr/include > -I/usr/include/postgresql -I/usr/local/include/fribidi > mapogr.cpp -o mapogr.o > mapogr.cpp: In function `char** msOGRGetValues(layerObj*, void*)': > mapogr.cpp:1061: error: `OGRSTLabelStrikeout' undeclared (first use this > function) > mapogr.cpp:1061: error: (Each undeclared identifier is reported only > once for > each function it appears in.) > mapogr.cpp:1072: error: `OGRSTLabelStretch' undeclared (first use this > function) > mapogr.cpp:1083: error: `OGRSTLabelAdjHor' undeclared (first use this > function) > mapogr.cpp:1094: error: `OGRSTLabelAdjVert' undeclared (first use this > function) > make: *** [mapogr.o] Error 1 > > -Steve W > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Thu Feb 19 06:39:30 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 19 Feb 2009 09:39:30 -0500 Subject: [mapserver-users] Re: [mapserver-dev] MapServer 5.4.0-beta1 Released In-Reply-To: <200902190931.26849.aboudreault@mapgears.com> References: <499C92CB0200008F00020D3D@co5.dnr.state.mn.us> <499CF413.6020908@swoodbridge.com> <200902190931.26849.aboudreault@mapgears.com> Message-ID: <499D6F22.7060504@gatewaygeomatics.com> Alan Boudreault wrote: > I'm currently looking what version of OGR is needed for these properties. > >> mapogr.cpp:1072: error: `OGRSTLabelStretch' undeclared (first use this >> function) >> mapogr.cpp:1083: error: `OGRSTLabelAdjHor' undeclared (first use this >> function) >> mapogr.cpp:1094: error: `OGRSTLabelAdjVert' undeclared (first use this >> function) >> make: *** [mapogr.o] Error 1 I better update the OGR doc with that as well, with your findings. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From aboudreault at mapgears.com Thu Feb 19 07:01:57 2009 From: aboudreault at mapgears.com (Alan Boudreault) Date: Thu, 19 Feb 2009 10:01:57 -0500 Subject: [mapserver-users] Re: [mapserver-dev] MapServer =?iso-8859-1?q?5=2E4=2E0-beta1=09Released?= In-Reply-To: <499D6F22.7060504@gatewaygeomatics.com> References: <499C92CB0200008F00020D3D@co5.dnr.state.mn.us> <200902190931.26849.aboudreault@mapgears.com> <499D6F22.7060504@gatewaygeomatics.com> Message-ID: <200902191001.58128.aboudreault@mapgears.com> Fixed in trunk. Jeff, those label style properties need GDAL >= 1.4.0 : * OGRSTLabelStrikeout, * OGRSTLabelStretch * OGRSTLabelAdjHor, * OGRSTLabelAdjVert, * OGRSTLabelHColor, Alan On February 19, 2009 09:39:30 am Jeff McKenna wrote: > Alan Boudreault wrote: > > I'm currently looking what version of OGR is needed for these properties. > > > >> mapogr.cpp:1072: error: `OGRSTLabelStretch' undeclared (first use this > >> function) > >> mapogr.cpp:1083: error: `OGRSTLabelAdjHor' undeclared (first use this > >> function) > >> mapogr.cpp:1094: error: `OGRSTLabelAdjVert' undeclared (first use this > >> function) > >> make: *** [mapogr.o] Error 1 > > I better update the OGR doc with that as well, with your findings. > > -jeff From woodbri at swoodbridge.com Thu Feb 19 07:20:22 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 19 Feb 2009 10:20:22 -0500 Subject: [mapserver-users] Re: [mapserver-dev] MapServer 5.4.0-beta1 Released In-Reply-To: <200902191001.58128.aboudreault@mapgears.com> References: <499C92CB0200008F00020D3D@co5.dnr.state.mn.us> <200902190931.26849.aboudreault@mapgears.com> <499D6F22.7060504@gatewaygeomatics.com> <200902191001.58128.aboudreault@mapgears.com> Message-ID: <499D78B6.30000@swoodbridge.com> Does this mean the GDAL >= 1.4.0 is not required for Mapserver 5.4? How well distributed is this version as far as stable Linux distribution go? What feature(s) in 5.4 are these being used for? Thanks, -Steve W Alan Boudreault wrote: > Fixed in trunk. > > Jeff, those label style properties need GDAL >= 1.4.0 : > > * OGRSTLabelStrikeout, > * OGRSTLabelStretch > * OGRSTLabelAdjHor, > * OGRSTLabelAdjVert, > * OGRSTLabelHColor, > > Alan > > On February 19, 2009 09:39:30 am Jeff McKenna wrote: >> Alan Boudreault wrote: >>> I'm currently looking what version of OGR is needed for these properties. >>> >>>> mapogr.cpp:1072: error: `OGRSTLabelStretch' undeclared (first use this >>>> function) >>>> mapogr.cpp:1083: error: `OGRSTLabelAdjHor' undeclared (first use this >>>> function) >>>> mapogr.cpp:1094: error: `OGRSTLabelAdjVert' undeclared (first use this >>>> function) >>>> make: *** [mapogr.o] Error 1 >> I better update the OGR doc with that as well, with your findings. >> >> -jeff > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Thu Feb 19 07:22:37 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 19 Feb 2009 10:22:37 -0500 Subject: [mapserver-users] Re: [mapserver-dev] MapServer 5.4.0-beta1 Released In-Reply-To: <499D78B6.30000@swoodbridge.com> References: <499C92CB0200008F00020D3D@co5.dnr.state.mn.us> <200902190931.26849.aboudreault@mapgears.com> <499D6F22.7060504@gatewaygeomatics.com> <200902191001.58128.aboudreault@mapgears.com> <499D78B6.30000@swoodbridge.com> Message-ID: <499D793D.6000300@gatewaygeomatics.com> Stephen Woodbridge wrote: > What feature(s) in 5.4 are these being used for? > see: http://www.mapserver.org/input/vector/ogr.html#accessing-ogr-styleitemauto-label-styles-through-mapscript -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From MMaganti at oriongis.com Thu Feb 19 08:05:42 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Thu, 19 Feb 2009 11:05:42 -0500 Subject: [mapserver-users] C# map script question Message-ID: Hi I want to encrypt the passwords in map file. I know there is a tool available under installation folder but I want to encrypt through my application. Is there any API available under C# map script for encrypt/decrypt or invoking tool as shell command is the only option? Thanks Murty -------------- next part -------------- An HTML attachment was scrubbed... URL: From prathee11 at gmail.com Thu Feb 19 08:34:00 2009 From: prathee11 at gmail.com (A.Pratheepan) Date: Thu, 19 Feb 2009 04:34:00 -1200 Subject: [mapserver-users] FILTER Message-ID: Hi i'm New one to map server. I'm Using PostgreSQL 8.3 with pgAdminIII and post GIS. Upto now I've populated my database in post GIS and Map also working succesfully. Now my problem is Filter. Filter is working without any problem under my layer(lecture_hall layer). Ex FILTER ("multimedia='yes' and seats >= 95 and Sound= 'yes')" It gives the out put in the map which mean shows in the out put the condition satisfied lecture halls. Now i want to input these filter condition via the user interface. I Used html page. But i'm failing. Pls Send me any ideas to solve this problem. I've attached my map file & html file Please help me.............. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mytest.map Type: application/octet-stream Size: 4224 bytes Desc: not available URL: From bamerbalazs at gmail.com Thu Feb 19 11:41:53 2009 From: bamerbalazs at gmail.com (=?UTF-8?B?QmFsw6F6cyBCw6FtZXI=?=) Date: Thu, 19 Feb 2009 20:41:53 +0100 Subject: [mapserver-users] raster layer problem in mapfile Message-ID: Hi All, I try to make a simple classified raster mapfile. However, Mapserver 5.2.1 always ends up with this in log: msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the LAYERS parameter. OS is Ubuntu Linux 8.10, Mapserver was compiled with ./configure --with-oci --with-oraclespatial=/usr/local/instantclient_11_1 --with-proj --with-threads --with-gdal --with-ogr --with-jpeg --with-png=/usr/lib --with-php=/usr/include/php5 The jpg file is greyscale, and there is also a vakterkep.wld world file. Paths should be OK because it was derived from an earlier one using shapefiles. Server response is msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the LAYERS parameter. What is the problem? Thank you in advance, best regards: Bal?zs B?mer mapfile contents: # # Start of GMAP map file # # MAP NAME KATEGORIAS STATUS ON SIZE 650 500 # xmin ymin xmax ymax? EXTENT 420000 40000 950000 370000 UNITS METERS PROJECTION "init=epsg:23700" END SHAPEPATH "." IMAGECOLOR 200 200 200 DEBUG 5 CONFIG "MS_ERRORFILE" "/var/log/mapserver/error.txt" CONFIG "ON_MISSING_DATA" "LOG" # # Start of web interface definition # WEB MINSCALE 10000 MAXSCALE 1000000 IMAGEPATH "/tmp" IMAGEURL "/tmp" LOG "/var/log/mapserver/ms_error.txt" METADATA "wms_title" "kategorias proba" "wms_onlineresource" "http://att-it.homelinux.net:22080/cgi-bin/kategorias" END END # # Start of legend # LEGEND LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE SMALL END SIZE 150 5 COLOR 255 255 255 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS meters INTERVALS 5 STATUS ON END QUERYMAP STYLE HILITE COLOR 255 0 0 END # # Start of layer definitions # LAYER NAME kategorias METADATA "DESCRIPTION" "kategorias" "wms_title" "kategorias" # "wms_srs" "EPSG:23700" nem kell orokli terkepet "ows_include_items" "all" END PROJECTION "init=epsg:23700" END TYPE RASTER STATUS ON DATA "vakterkep.jpg" CLASS EXPRESSION ([pixel]<64) STYLE COLOR 0 32 64 END END CLASS EXPRESSION ([pixel]>=64 and [pixel]<128) STYLE COLOR 0 64 128 END END CLASS EXPRESSION ([pixel]>=128 and [pixel]<192) STYLE COLOR 0 96 192 END END CLASS EXPRESSION ([pixel]>=192) STYLE COLOR 0 128 255 END END END # layer END # Map File From szekerest at gmail.com Thu Feb 19 13:59:44 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 19 Feb 2009 22:59:44 +0100 Subject: [mapserver-users] C# map script question In-Reply-To: References: Message-ID: Those functions haven't been exposed to the MapScript interface yet. Best regards, Tamas 2009/2/19 Murty Maganti > Hi > > > > I want to encrypt the passwords in map file. I know there is a tool > available under installation folder but I want to encrypt through my > application. Is there any API available under C# map script for > encrypt/decrypt or invoking tool as shell command is the only option? > > > > > > Thanks > > Murty > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From MMaganti at oriongis.com Thu Feb 19 14:05:22 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Thu, 19 Feb 2009 17:05:22 -0500 Subject: [mapserver-users] C# map script question In-Reply-To: References: Message-ID: Thanks. Currently I have used System.Diagnostic.Process in my app to call msencrypt and there are no issues. From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Thursday, February 19, 2009 5:00 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] C# map script question Those functions haven't been exposed to the MapScript interface yet. Best regards, Tamas 2009/2/19 Murty Maganti Hi I want to encrypt the passwords in map file. I know there is a tool available under installation folder but I want to encrypt through my application. Is there any API available under C# map script for encrypt/decrypt or invoking tool as shell command is the only option? Thanks Murty _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Thu Feb 19 14:31:24 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 19 Feb 2009 23:31:24 +0100 Subject: [mapserver-users] Hatch symbol not properly saved In-Reply-To: <57fc60330902190505o1471ffdfq299bf9ad46eae40a@mail.gmail.com> References: <57fc60330902190505o1471ffdfq299bf9ad46eae40a@mail.gmail.com> Message-ID: Berend, It doesn't seem to be implemented in the code. You might want to file a ticket so as to stay with this end in view. Best regards, Tamas 2009/2/19 Berend Veldkamp > Hi, > > I'm using CSharp mapscript to define some symbols, for instance a hatch: > > symbolObj result = new symbolObj("hatch", null); > result.type = (int)MS_SYMBOL_TYPE.MS_SYMBOL_HATCH; > map.symbolset.appendSymbol(result); > > when I call msmap.symbolset.save(), the symbol will have the following > definition: > > SYMBOL > NAME "hatch" > END > > As you can see, "TYPE HATCH" is missing. Mapserver then says: "Symbol > of type VECTOR or ELLIPSE has no point data" > > Any ideas? I'm using FWTools 2.3.1 (MS 5.3-dev) > > Regards, Berend > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Thu Feb 19 18:54:02 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 19 Feb 2009 21:54:02 -0500 Subject: [mapserver-users] Re: [mapserver-dev] MapServer 5.4.0-beta1 Released In-Reply-To: <499D78B6.30000@swoodbridge.com> References: <499C92CB0200008F00020D3D@co5.dnr.state.mn.us> <200902190931.26849.aboudreault@mapgears.com> <499D6F22.7060504@gatewaygeomatics.com> <200902191001.58128.aboudreault@mapgears.com> <499D78B6.30000@swoodbridge.com> Message-ID: <499E1B4A.8000503@swoodbridge.com> Just to follow up on this, Alan provided a patch to trunk that should allow gdal-1.3.1 to work with MS-5.4, but I have not tried it because while he was looking into that, I was able to backport gdal-1.4.0 to my debian system and build mapserver-5.4b1 and it seems to be working ok. I ran through the new mapfile with many of the new rendering features that Thomas has add to 5.4 and it works great. Thanks, -Steve Stephen Woodbridge wrote: > Does this mean the GDAL >= 1.4.0 is not required for Mapserver 5.4? > How well distributed is this version as far as stable Linux distribution > go? > What feature(s) in 5.4 are these being used for? > > Thanks, > -Steve W > > Alan Boudreault wrote: >> Fixed in trunk. >> >> Jeff, those label style properties need GDAL >= 1.4.0 : >> >> * OGRSTLabelStrikeout, >> * OGRSTLabelStretch >> * OGRSTLabelAdjHor, >> * OGRSTLabelAdjVert, >> * OGRSTLabelHColor, >> >> Alan >> >> On February 19, 2009 09:39:30 am Jeff McKenna wrote: >>> Alan Boudreault wrote: >>>> I'm currently looking what version of OGR is needed for these >>>> properties. >>>> >>>>> mapogr.cpp:1072: error: `OGRSTLabelStretch' undeclared (first use this >>>>> function) >>>>> mapogr.cpp:1083: error: `OGRSTLabelAdjHor' undeclared (first use this >>>>> function) >>>>> mapogr.cpp:1094: error: `OGRSTLabelAdjVert' undeclared (first use this >>>>> function) >>>>> make: *** [mapogr.o] Error 1 >>> I better update the OGR doc with that as well, with your findings. >>> >>> -jeff >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From prathee11 at gmail.com Thu Feb 19 20:32:31 2009 From: prathee11 at gmail.com (prathee11 at gmail.com) Date: Thu, 19 Feb 2009 20:32:31 -0800 Subject: [mapserver-users] FILTER Message-ID: <2384851.534541235104351829.JavaMail.nabble@tervel.nabble.com> I want to filter my layer accoring to client's prefernce, via the client interfACE. How can i sent user input to the map file under the layer, Filter? Pls anyone help me From M.Kofahl at gmx.net Thu Feb 19 23:04:29 2009 From: M.Kofahl at gmx.net (Martin Kofahl) Date: Fri, 20 Feb 2009 08:04:29 +0100 Subject: [mapserver-users] MS RFC 47 and WMS client connections Message-ID: <20090220070429.123390@gmx.net> Hi, I faced a problem when drawing layers from remote WMS. Some services not working properly sometimes return an 0-byte HTTP 200, content-type image/png response. msDrawRasterLayerLow() will fail to draw the temporarily saved file with any driver. drawEPP() will finally fail with 'Unrecognized or unsupported image format'. Can we treat corrupt files as missing data (see rfc 47) and fail|log|ignore? For comparison, when getting a http timeout, mapserv works similar to MS_MISSING_DATA_LOG (msDebug and msSetError). Martin From Espen.Messel at ffi.no Thu Feb 19 23:08:44 2009 From: Espen.Messel at ffi.no (Espen.Messel at ffi.no) Date: Fri, 20 Feb 2009 08:08:44 +0100 Subject: [mapserver-users] FILTER In-Reply-To: <2384851.534541235104351829.JavaMail.nabble@tervel.nabble.com> References: <2384851.534541235104351829.JavaMail.nabble@tervel.nabble.com> Message-ID: > -----Opprinnelig melding----- > Fra: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] P? vegne av prathee11 at gmail.com > Sendt: 20. februar 2009 05:33 > Til: mapserver-users at lists.osgeo.org > Emne: [mapserver-users] FILTER > > I want to filter my layer accoring to client's prefernce, via the client > interfACE. How can i sent user input to the map file under the layer, > Filter? > Pls anyone help me Is it a WMS service? If yes then You can use SLD and FE http://mapserver.org/ogc/sld.html http://mapserver.org/ogc/filter_encoding.html elseif WFS Use FE directly http://mapserver.org/ogc/filter_encoding.html Regards, Espen Messel Example: Put this in a xml file and include it in the SLD=url_to_xmlfile in the url or send everything below in the SLD_BODY=xmlfile_source Wave SLD Title WaveHeight 3 Wave #ff0000 3 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From gabmessner at gmail.com Thu Feb 19 23:14:15 2009 From: gabmessner at gmail.com (Gabriel Messner) Date: Fri, 20 Feb 2009 08:14:15 +0100 Subject: [mapserver-users] FILTER In-Reply-To: References: Message-ID: <1708890c0902192314w6a89a7c6id44716dcb166f16c@mail.gmail.com> May be the problem is the sintax; Try: FILTER ( ('[multimedia]' = 'yes') AND ('[seats]' >= 95) AND ('[Sound]' = 'yes') ) 2009/2/19 A.Pratheepan > > Hi > i'm New one to map server. I'm Using PostgreSQL 8.3 with pgAdminIII and > post GIS. Upto now I've populated my database in post GIS and Map also > working succesfully. Now my problem is Filter. Filter is working without any > problem under my layer(lecture_hall layer). Ex FILTER ("multimedia='yes' and > seats >= 95 and Sound= 'yes')" It gives the out put in the map which mean > shows in the out put the condition satisfied lecture halls. Now i want to > input these filter condition via the user interface. I Used html page. But > i'm failing. Pls Send me any ideas to solve this problem. > I've attached my map file & html file > > Please help me.............. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From belasalwa at yahoo.fr Fri Feb 20 03:46:04 2009 From: belasalwa at yahoo.fr (belaqziz salwa) Date: Fri, 20 Feb 2009 11:46:04 +0000 (GMT) Subject: [mapserver-users] Mapserver Message-ID: <862627.40701.qm@web26006.mail.ukl.yahoo.com> Hi, I am working on a on project with Mapserver and WCS server, please can u tell me how can i configure my Spatio/Temporal data in a Mapfile , and match them to a .hdr file ? Thank you (sorry i don't speak english very well ) -------------- next part -------------- An HTML attachment was scrubbed... URL: From belasalwa at yahoo.fr Fri Feb 20 03:46:08 2009 From: belasalwa at yahoo.fr (belaqziz salwa) Date: Fri, 20 Feb 2009 11:46:08 +0000 (GMT) Subject: [mapserver-users] Mapserver Message-ID: <137822.59018.qm@web26003.mail.ukl.yahoo.com> Hi, I am working on a on project with Mapserver and WCS server, please can u tell me how can i configure my Spatio/Temporal data in a Mapfile , and match them to a .hdr file ? Thank you (sorry i don't speak english very well ) -------------- next part -------------- An HTML attachment was scrubbed... URL: From belasalwa at yahoo.fr Fri Feb 20 03:46:10 2009 From: belasalwa at yahoo.fr (belaqziz salwa) Date: Fri, 20 Feb 2009 11:46:10 +0000 (GMT) Subject: [mapserver-users] Mapserver Message-ID: <344073.4106.qm@web26007.mail.ukl.yahoo.com> Hi, I am working on a on project with Mapserver and WCS server, please can u tell me how can i configure my Spatio/Temporal data in a Mapfile , and match them to a .hdr file ? Thank you (sorry i don't speak english very well ) -------------- next part -------------- An HTML attachment was scrubbed... URL: From belasalwa at yahoo.fr Fri Feb 20 03:46:12 2009 From: belasalwa at yahoo.fr (belaqziz salwa) Date: Fri, 20 Feb 2009 11:46:12 +0000 (GMT) Subject: [mapserver-users] Mapserver Message-ID: <71544.84032.qm@web26008.mail.ukl.yahoo.com> Hi, I am working on a on project with Mapserver and WCS server, please can u tell me how can i configure my Spatio/Temporal data in a Mapfile , and match them to a .hdr file ? Thank you (sorry i don't speak english very well ) -------------- next part -------------- An HTML attachment was scrubbed... URL: From belasalwa at yahoo.fr Fri Feb 20 03:46:18 2009 From: belasalwa at yahoo.fr (belaqziz salwa) Date: Fri, 20 Feb 2009 11:46:18 +0000 (GMT) Subject: [mapserver-users] Mapserver Message-ID: <681343.37732.qm@web26002.mail.ukl.yahoo.com> Hi, I am working on a on project with Mapserver and WCS server, please can u tell me how can i configure my Spatio/Temporal data in a Mapfile , and match them to a .hdr file ? Thank you (sorry i don't speak english very well ) -------------- next part -------------- An HTML attachment was scrubbed... URL: From belasalwa at yahoo.fr Fri Feb 20 03:46:14 2009 From: belasalwa at yahoo.fr (belaqziz salwa) Date: Fri, 20 Feb 2009 11:46:14 +0000 (GMT) Subject: [mapserver-users] Mapserver Message-ID: <805354.79683.qm@web26008.mail.ukl.yahoo.com> Hi, I am working on a on project with Mapserver and WCS server, please can u tell me how can i configure my Spatio/Temporal data in a Mapfile , and match them to a .hdr file ? Thank you (sorry i don't speak english very well ) -------------- next part -------------- An HTML attachment was scrubbed... URL: From belasalwa at yahoo.fr Fri Feb 20 03:46:19 2009 From: belasalwa at yahoo.fr (belaqziz salwa) Date: Fri, 20 Feb 2009 11:46:19 +0000 (GMT) Subject: [mapserver-users] Mapserver Message-ID: <636487.70254.qm@web26007.mail.ukl.yahoo.com> Hi, I am working on a on project with Mapserver and WCS server, please can u tell me how can i configure my Spatio/Temporal data in a Mapfile , and match them to a .hdr file ? Thank you (sorry i don't speak english very well ) -------------- next part -------------- An HTML attachment was scrubbed... URL: From belasalwa at yahoo.fr Fri Feb 20 03:46:18 2009 From: belasalwa at yahoo.fr (belaqziz salwa) Date: Fri, 20 Feb 2009 11:46:18 +0000 (GMT) Subject: [mapserver-users] Mapserver Message-ID: <146140.4125.qm@web26007.mail.ukl.yahoo.com> Hi, I am working on a on project with Mapserver and WCS server, please can u tell me how can i configure my Spatio/Temporal data in a Mapfile , and match them to a .hdr file ? Thank you (sorry i don't speak english very well ) -------------- next part -------------- An HTML attachment was scrubbed... URL: From belasalwa at yahoo.fr Fri Feb 20 03:46:23 2009 From: belasalwa at yahoo.fr (belaqziz salwa) Date: Fri, 20 Feb 2009 11:46:23 +0000 (GMT) Subject: [mapserver-users] Mapserver Message-ID: <808727.35243.qm@web26004.mail.ukl.yahoo.com> Hi, I am working on a on project with Mapserver and WCS server, please can u tell me how can i configure my Spatio/Temporal data in a Mapfile , and match them to a .hdr file ? Thank you (sorry i don't speak english very well ) -------------- next part -------------- An HTML attachment was scrubbed... URL: From belasalwa at yahoo.fr Fri Feb 20 03:46:24 2009 From: belasalwa at yahoo.fr (belaqziz salwa) Date: Fri, 20 Feb 2009 11:46:24 +0000 (GMT) Subject: [mapserver-users] Mapserver Message-ID: <859815.9009.qm@web26005.mail.ukl.yahoo.com> Hi, I am working on a on project with Mapserver and WCS server, please can u tell me how can i configure my Spatio/Temporal data in a Mapfile , and match them to a .hdr file ? Thank you (sorry i don't speak english very well ) -------------- next part -------------- An HTML attachment was scrubbed... URL: From belasalwa at yahoo.fr Fri Feb 20 03:46:27 2009 From: belasalwa at yahoo.fr (belaqziz salwa) Date: Fri, 20 Feb 2009 11:46:27 +0000 (GMT) Subject: [mapserver-users] Mapserver Message-ID: <330963.4611.qm@web26007.mail.ukl.yahoo.com> Hi, I am working on a on project with Mapserver and WCS server, please can u tell me how can i configure my Spatio/Temporal data in a Mapfile , and match them to a .hdr file ? Thank you (sorry i don't speak english very well ) -------------- next part -------------- An HTML attachment was scrubbed... URL: From belasalwa at yahoo.fr Fri Feb 20 03:56:25 2009 From: belasalwa at yahoo.fr (belaqziz salwa) Date: Fri, 20 Feb 2009 11:56:25 +0000 (GMT) Subject: [mapserver-users] Mapserver Message-ID: <224564.43811.qm@web26004.mail.ukl.yahoo.com> Hi, I am working on a project with Mapserver and WCS server, please can u tell me how can i configure my Spatio/Temporal data in a Mapfile (in Lyer Object Metadata), and match them to a .hdr file ? Thank you very mauch. (sorry i don't speak english very well ) ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From temiz at deprem.gov.tr Fri Feb 20 05:05:06 2009 From: temiz at deprem.gov.tr (orkun) Date: Fri, 20 Feb 2009 15:05:06 +0200 Subject: [mapserver-users] pooled connection Message-ID: <1235135106.5967.4.camel@orkun-desktop> hello with java-mapscript, I was wondering if it was possible to do pooled connection to postgresql/postgis database in tomcat server. regards -- Ahmet Temiz Jeo. M?h. Afet ??leri Gen. Md.l??? Deprem Ar. D. Ahmet Temiz Geo. Eng. General Dir. of Disaster Affairs TURKEY -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From pal.kristensen at statkart.no Fri Feb 20 05:39:57 2009 From: pal.kristensen at statkart.no (paalkr) Date: Fri, 20 Feb 2009 05:39:57 -0800 (PST) Subject: [mapserver-users] Status on ticket 2582? In-Reply-To: <4999E16F.30502@mapgears.com> References: <1234821290361-2337548.post@n2.nabble.com> <4999E16F.30502@mapgears.com> Message-ID: <1235137197915-2358883.post@n2.nabble.com> Hi! I see that this ticket now is closed and part of the 5.4 beta 1 (thanks), but I would appreciate if someone could give me an example of how the mapfile syntax is. Regards, P?l Kristensen Daniel Morissette wrote: > > paalkr wrote: >> Hi all devs! >> >> What is the status on ticket http://trac.osgeo.org/mapserver/ticket/2582 >> 2582 ? Is this going to be included in 5.4? >> > > Yes, we'll take care of it for 5.4. > > Daniel > -- > Daniel Morissette > http://www.mapgears.com/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/Status-on-ticket-2582--tp2337548p2358883.html Sent from the Mapserver - User mailing list archive at Nabble.com. From aboudreault at mapgears.com Fri Feb 20 06:07:55 2009 From: aboudreault at mapgears.com (Alan Boudreault) Date: Fri, 20 Feb 2009 09:07:55 -0500 Subject: [mapserver-users] Status on ticket 2582? In-Reply-To: <1235137197915-2358883.post@n2.nabble.com> References: <1234821290361-2337548.post@n2.nabble.com> <4999E16F.30502@mapgears.com> <1235137197915-2358883.post@n2.nabble.com> Message-ID: <200902200907.55282.aboudreault@mapgears.com> Pal, It isn't a mapfile syntax, but it could be used in Mapscript. Here's an example: getLayerByName("prov_bound2"); $layer_wms->set("status", MS_DELETE); // WMS $request = ms_newOwsrequestObj(); $request->setparameter('VERSION','1.1.1'); $request->setparameter('SERVICE','WMS'); $request->setparameter('REQUEST','GetCapabilities'); $map_wms->owsdispatch($request); ?> Alan On February 20, 2009 08:39:57 am paalkr wrote: > Hi! > > I see that this ticket now is closed and part of the 5.4 beta 1 (thanks), > but I would appreciate if someone could give me an example of how the > mapfile syntax is. > > Regards, > P?l Kristensen > > Daniel Morissette wrote: > > paalkr wrote: > >> Hi all devs! > >> > >> What is the status on ticket > >> http://trac.osgeo.org/mapserver/ticket/2582 2582 ? Is this going to be > >> included in 5.4? > > > > Yes, we'll take care of it for 5.4. > > > > Daniel > > -- > > Daniel Morissette > > http://www.mapgears.com/ > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Fri Feb 20 06:07:41 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 20 Feb 2009 09:07:41 -0500 Subject: [mapserver-users] Mapserver In-Reply-To: <224564.43811.qm@web26004.mail.ukl.yahoo.com> References: <224564.43811.qm@web26004.mail.ukl.yahoo.com> Message-ID: <499EB92D.9010504@gatewaygeomatics.com> belaqziz salwa wrote: > Hi, > I am working on a project with Mapserver and WCS server, please can u > tell me how can i configure my Spatio/Temporal data in a Mapfile (in > Lyer Object Metadata), and match them to a .hdr file ? > > Thank you very mauch. > > (sorry i don't speak english very well ) > Hi, To configure your mapfile for serving WCS data, you can find the metadata in: http://www.mapserver.org/ogc/wcs_server.html#reference-section To load your raster in a mapfile layer, you can find examples here: http://www.mapserver.org/input/raster.html -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From jmckenna at gatewaygeomatics.com Fri Feb 20 06:12:46 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 20 Feb 2009 09:12:46 -0500 Subject: [mapserver-users] Status on ticket 2582? In-Reply-To: <200902200907.55282.aboudreault@mapgears.com> References: <1234821290361-2337548.post@n2.nabble.com> <4999E16F.30502@mapgears.com> <1235137197915-2358883.post@n2.nabble.com> <200902200907.55282.aboudreault@mapgears.com> Message-ID: <499EBA5E.4010004@gatewaygeomatics.com> Alan Boudreault wrote: > Pal, > > It isn't a mapfile syntax, but it could be used in Mapscript. Here's an It isn't? Since most users don't use MapScript, ticket 2582 (ignore layers in OWS requests) should include a mapfile setting shouldn't it?? -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From aboudreault at mapgears.com Fri Feb 20 06:31:38 2009 From: aboudreault at mapgears.com (Alan Boudreault) Date: Fri, 20 Feb 2009 09:31:38 -0500 Subject: [mapserver-users] Status on ticket 2582? In-Reply-To: <499EBA5E.4010004@gatewaygeomatics.com> References: <1234821290361-2337548.post@n2.nabble.com> <200902200907.55282.aboudreault@mapgears.com> <499EBA5E.4010004@gatewaygeomatics.com> Message-ID: <200902200931.38323.aboudreault@mapgears.com> It could. By the fact that a status MS_DELETE can only be set through Mapscript, i've only added this part. I think the ticket have been open for that ? You could add a comment in the ticket to propose a specific mapfile setting. Alan On February 20, 2009 09:12:46 am Jeff McKenna wrote: > Alan Boudreault wrote: > > Pal, > > > > It isn't a mapfile syntax, but it could be used in Mapscript. Here's an > > It isn't? Since most users don't use MapScript, ticket 2582 (ignore > layers in OWS requests) should include a mapfile setting shouldn't it?? > > -jeff From jmckenna at gatewaygeomatics.com Fri Feb 20 07:04:31 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 20 Feb 2009 10:04:31 -0500 Subject: [mapserver-users] Status on ticket 2582? In-Reply-To: <200902200931.38323.aboudreault@mapgears.com> References: <1234821290361-2337548.post@n2.nabble.com> <200902200907.55282.aboudreault@mapgears.com> <499EBA5E.4010004@gatewaygeomatics.com> <200902200931.38323.aboudreault@mapgears.com> Message-ID: <499EC67F.2060409@gatewaygeomatics.com> Alan Boudreault wrote: > It could. By the fact that a status MS_DELETE can only be set through > Mapscript, i've only added this part. I think the ticket have been open for > that ? You could add a comment in the ticket to propose a specific mapfile > setting. > > Alan I've made a comment in that ticket, and I am proposing we finally fix this through an old existing ticket (http://trac.osgeo.org/mapserver/ticket/337). -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From belasalwa at yahoo.fr Fri Feb 20 08:19:24 2009 From: belasalwa at yahoo.fr (salwa) Date: Fri, 20 Feb 2009 08:19:24 -0800 (PST) Subject: [mapserver-users] Mapserver In-Reply-To: <224564.43811.qm@web26004.mail.ukl.yahoo.com> References: <224564.43811.qm@web26004.mail.ukl.yahoo.com> Message-ID: <1235146764016-2359744.post@n2.nabble.com> salwa wrote: > > Hi, > I am working on a project with Mapserver and WCS server, please can u tell > me how can i configure my Spatio/Temporal data in a Mapfile (in Layer > Object Metadata), and match them to a .hdr file ? > > Thank you very much. > > > > ? > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/Mapserver-tp2358451p2359744.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Bob.Basques at ci.stpaul.mn.us Fri Feb 20 09:04:32 2009 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Fri, 20 Feb 2009 11:04:32 -0600 Subject: [mapserver-users] Status on ticket 2582? Message-ID: <499E8E40020000A800011493@jeckle> I would vote for this as well. (Question, why would the two be considered different things? Wouldn't it be prudent to always include the other when talking about either (MapScript/MapFile[CGI] Just wondering) bobb >>> Jeff McKenna 02/20/09 8:19 AM >>> Alan Boudreault wrote: > Pal, > > It isn't a mapfile syntax, but it could be used in Mapscript. Here's an It isn't? Since most users don't use MapScript, ticket 2582 (ignore layers in OWS requests) should include a mapfile setting shouldn't it?? -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From rpha88 at gmail.com Fri Feb 20 09:37:31 2009 From: rpha88 at gmail.com (rohan phatak) Date: Fri, 20 Feb 2009 23:07:31 +0530 Subject: [mapserver-users] Edit mode in mapserver Message-ID: Hello Friends, I am using Mapserver Application Gmap in which .map file is using. I am trying to develop "Information System" & I want to publish these map to other computers & i want to give 'edit' mode for user means if user see any new feature then he can insert point/line/polygon data in it with attribute information. ( the relationship is like Server-Client) So how to do this?? 1. Is PHP/ mapscript will useful Or 2. Is there any inbuilt application to do these?? at a time only one user can use edit mode. thanks a lot !! -------------- next part -------------- An HTML attachment was scrubbed... URL: From g.zambotti at gmail.com Fri Feb 20 10:03:01 2009 From: g.zambotti at gmail.com (gzambotti) Date: Fri, 20 Feb 2009 10:03:01 -0800 (PST) Subject: [mapserver-users] GetFeatureInfo + Google Maps + Date field format Message-ID: <1235152981836-2360374.post@n2.nabble.com> Hi there, I use Mapserver 4.9 to display a shapefile, in a google maps environment. I also use GetFeatureInfo to get the info table. Everything work well, except a Date field that I get in the wrong format (20090617). I would like to have the field in this format 6/17/2009. Any idea? -- View this message in context: http://n2.nabble.com/GetFeatureInfo-%2B-Google-Maps-%2B-Date-field-format-tp2360374p2360374.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nsavard at mapgears.com Fri Feb 20 10:36:40 2009 From: nsavard at mapgears.com (Normand Savard) Date: Fri, 20 Feb 2009 13:36:40 -0500 Subject: [mapserver-users] Re: [mapserver-dev] MapServer 5.4.0-beta1 Released In-Reply-To: <499C92CB0200008F00020D3D@co5.dnr.state.mn.us> References: <499C92CB0200008F00020D3D@co5.dnr.state.mn.us> Message-ID: <499EF838.3080606@mapgears.com> Steve Lime wrote: > Hi all: The MapServer PSC is pleased to announce the release of the first beta for the 5.4.0 release. This will likely be the last major release in the 5.x series as we are planning for a 6.0 release later this year. Important new functionality includes: > > - support for WMS 1.3.0 (RFC 30) > - style-level geometry transformations for enhanced output rendering (RFC 48) > - expanded URL mapfile configuration (RFC 44) > - numerous symbology, labeling and cartography improvements (RFC 49) > - major re-factoring of the PostGIS driver code > > As usual there an a large number of additional small enhancements and bug fixes. For a complete list is the HISTORY.TXT file at: > > http://svn.osgeo.org/mapserver/tags/rel-5-4-0-beta1/mapserver/HISTORY.TXT > > The release can be downloaded at: > > http://mapserver.org/download.html OR > http://download.osgeo.org/mapserver/mapserver-5.4.0-beta1.tar.gz > > This is the first of two beta releases and if all goes well a final release should occur in early March. The full release plan can be viewed at: > > http://trac.osgeo.org/mapserver/wiki/54ReleasePlan > > We need your help to ensure a high quality product so please help out by testing your applications with this new code base. > > I have created a FGS self-installer package to test MapServer 5.4.0beta1 available at: http://dl.maptools.org/dl/fgs/releases/1.0/1.0.0/self-installers/ MapServer base and php FGS modules are also available at: http://dl.maptools.org/dl/fgs/releases/1.0/1.0.0/modules/ Norm From adube at mapgears.com Fri Feb 20 12:04:56 2009 From: adube at mapgears.com (Alexandre Dube) Date: Fri, 20 Feb 2009 15:04:56 -0500 Subject: [mapserver-users] Edit mode in mapserver In-Reply-To: References: Message-ID: <499F0CE8.7090705@mapgears.com> Hi Rohan, It is not possible to "edit" features with MapServer. You might want to take a look at one of theses projects that can : GeoServer, TinyOWS, FeatureServer. In a small demo I wrote, I use MapServer as my WMS server to render images and TinyOWS as my WFS server to return GML and to do my transactional stuff ( insert/update/delete ) and finally OpenLayers as my client UI. Both MapServer and TinyOWS read the "road" data from a PostGIS database ( required with TinyOWS ). See the demo below (1). Hope this gives you some clues/ideas for your project. Regards, Alexandre (1) http://dev4.mapgears.com/bdga/bdgaWFS-T.html (2) http://dev.openlayers.org/sandbox/topp/wfs/examples/wfs-protocol-transactions.html rohan phatak wrote: > Hello Friends, > I am using Mapserver Application Gmap in which .map file is using. I > am trying to develop "Information System" & I want to publish these > map to other computers & i want to give 'edit' mode for user means if > user see any new feature then he can insert point/line/polygon data in > it with attribute information. ( the relationship is like Server-Client) > So how to do this?? > 1. Is PHP/ mapscript will useful Or > 2. Is there any inbuilt application to do these?? > at a time only one user can use edit mode. > thanks a lot !! > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alexandre Dub? Mapgears www.mapgears.com From bpicinbono at worldonline.fr Fri Feb 20 12:12:23 2009 From: bpicinbono at worldonline.fr (Blaise) Date: Fri, 20 Feb 2009 21:12:23 +0100 Subject: [mapserver-users] Edit mode in mapserver In-Reply-To: <499F0CE8.7090705@mapgears.com> References: <499F0CE8.7090705@mapgears.com> Message-ID: <200902202112.23705.bpicinbono@worldonline.fr> Hi there, Hopefully, it IS possible to edit features with MapServer / MapScript. You have to write your own functions. It works great. Regards Blaise On Friday 20 February 2009 21:04, Alexandre Dube wrote: > Hi Rohan, > > It is not possible to "edit" features with MapServer. You might want > to take a look at one of theses projects that can : GeoServer, TinyOWS, > FeatureServer. > > In a small demo I wrote, I use MapServer as my WMS server to render > images and TinyOWS as my WFS server to return GML and to do my > transactional stuff ( insert/update/delete ) and finally OpenLayers as > my client UI. Both MapServer and TinyOWS read the "road" data from a > PostGIS database ( required with TinyOWS ). See the demo below (1). > > Hope this gives you some clues/ideas for your project. > > Regards, > > Alexandre > > (1) http://dev4.mapgears.com/bdga/bdgaWFS-T.html > (2) > http://dev.openlayers.org/sandbox/topp/wfs/examples/wfs-protocol-transactio >ns.html > > rohan phatak wrote: > > Hello Friends, > > I am using Mapserver Application Gmap in which .map file is using. I > > am trying to develop "Information System" & I want to publish these > > map to other computers & i want to give 'edit' mode for user means if > > user see any new feature then he can insert point/line/polygon data in > > it with attribute information. ( the relationship is like Server-Client) > > So how to do this?? > > 1. Is PHP/ mapscript will useful Or > > 2. Is there any inbuilt application to do these?? > > at a time only one user can use edit mode. > > thanks a lot !! > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users From adube at mapgears.com Fri Feb 20 12:21:43 2009 From: adube at mapgears.com (Alexandre Dube) Date: Fri, 20 Feb 2009 15:21:43 -0500 Subject: [mapserver-users] Edit mode in mapserver In-Reply-To: <200902202112.23705.bpicinbono@worldonline.fr> References: <499F0CE8.7090705@mapgears.com> <200902202112.23705.bpicinbono@worldonline.fr> Message-ID: <499F10D7.3050508@mapgears.com> Sorry, I should have written : it's not possible to use WFS in transactional mode with MapServer. Sure, you can write your own script with mapscript, but I think using the OpenLayers UI, with the drawFeature control, it's easy and a common practice. Regards, Alexandre Blaise wrote: > Hi there, > > Hopefully, it IS possible to edit features with MapServer / MapScript. You > have to write your own functions. It works great. > > Regards > Blaise > > On Friday 20 February 2009 21:04, Alexandre Dube wrote: > >> Hi Rohan, >> >> It is not possible to "edit" features with MapServer. You might want >> to take a look at one of theses projects that can : GeoServer, TinyOWS, >> FeatureServer. >> >> In a small demo I wrote, I use MapServer as my WMS server to render >> images and TinyOWS as my WFS server to return GML and to do my >> transactional stuff ( insert/update/delete ) and finally OpenLayers as >> my client UI. Both MapServer and TinyOWS read the "road" data from a >> PostGIS database ( required with TinyOWS ). See the demo below (1). >> >> Hope this gives you some clues/ideas for your project. >> >> Regards, >> >> Alexandre >> >> (1) http://dev4.mapgears.com/bdga/bdgaWFS-T.html >> (2) >> http://dev.openlayers.org/sandbox/topp/wfs/examples/wfs-protocol-transactio >> ns.html >> >> rohan phatak wrote: >> >>> Hello Friends, >>> I am using Mapserver Application Gmap in which .map file is using. I >>> am trying to develop "Information System" & I want to publish these >>> map to other computers & i want to give 'edit' mode for user means if >>> user see any new feature then he can insert point/line/polygon data in >>> it with attribute information. ( the relationship is like Server-Client) >>> So how to do this?? >>> 1. Is PHP/ mapscript will useful Or >>> 2. Is there any inbuilt application to do these?? >>> at a time only one user can use edit mode. >>> thanks a lot !! >>> >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alexandre Dub? Mapgears www.mapgears.com From MMaganti at oriongis.com Fri Feb 20 13:20:32 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Fri, 20 Feb 2009 16:20:32 -0500 Subject: [mapserver-users] Map server build kit Message-ID: Hello All Where can I download latest build kit for map server? Also, will I be able to use nmake of VS 2008 to compile it? Thanks Murty -------------- next part -------------- An HTML attachment was scrubbed... URL: From pal.kristensen at statkart.no Fri Feb 20 14:16:45 2009 From: pal.kristensen at statkart.no (paalkr) Date: Fri, 20 Feb 2009 14:16:45 -0800 (PST) Subject: [mapserver-users] Status on ticket 2582? In-Reply-To: <499EC67F.2060409@gatewaygeomatics.com> References: <1234821290361-2337548.post@n2.nabble.com> <4999E16F.30502@mapgears.com> <1235137197915-2358883.post@n2.nabble.com> <200902200907.55282.aboudreault@mapgears.com> <499EBA5E.4010004@gatewaygeomatics.com> <200902200931.38323.aboudreault@mapgears.com> <499EC67F.2060409@gatewaygeomatics.com> Message-ID: <1235168205544-2361593.post@n2.nabble.com> Hi All! I glad this issue got some focus, and I must say that I was kind of surprised realizing that ticket 2582 only addressed the MapScript part. Anyway, I'm very glad that Jeff now proposes a final solution for this issue, that of course should be fixed in both cgi and MapScript, and for every service type. Jeffs proposal for a boolean metadata keyword, like ignore_layer sound OK, but maybe ows_ignore_layer is more appropriate as the layer obviously shall not be ignored, only the exposure in the GetCapabilities document. I think the following aspects are important to have in mind when resolving the issue: 1) The hiding mechanism must not interfere with which layers that actually are rendered (turned on) . This has to be controlled as before by the STATUS, SCALE and DEPENDENCIES keywords. 2) What will happen if the hidden layer is inside a GROUP? 3) What will happen if all layers inside a GROUP is hidden? I would suggest that the group layer is exposed as a single layer, in this way you could have different resolution layers inside a GROUP and expose this as a single layer to the end user. Often the different resolution layers are only present to optimize rendering speed, and are not intended for the end user. 4) What will happen if the hidden layer is part of a group defined with the wms_layer_group metadata tag? Regards, P?l Kristensen Jeff McKenna wrote: > > Alan Boudreault wrote: >> It could. By the fact that a status MS_DELETE can only be set through >> Mapscript, i've only added this part. I think the ticket have been open >> for >> that ? You could add a comment in the ticket to propose a specific >> mapfile >> setting. >> >> Alan > > I've made a comment in that ticket, and I am proposing we finally fix > this through an old existing ticket > (http://trac.osgeo.org/mapserver/ticket/337). > > -jeff > > > -- > Jeff McKenna > FOSS4G Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/Status-on-ticket-2582--tp2337548p2361593.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mrdouville at shaw.ca Fri Feb 20 14:38:41 2009 From: mrdouville at shaw.ca (Michelle Douville) Date: Fri, 20 Feb 2009 14:38:41 -0800 Subject: [mapserver-users] GetFeatureInfo with ArcSDE9.1/Oracle10g Spatial Views - Mapserver 5.2 Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded message was scrubbed... From: mapserver-users-owner at lists.osgeo.org Subject: [mapserver-users] GetFeatureInfo with ArcSDE9.1/Oracle10g Spatial Views - Mapserver 5.2 Date: Fri, 20 Feb 2009 13:30:57 -0500 Size: 5223 URL: From jmckenna at gatewaygeomatics.com Fri Feb 20 14:40:01 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 20 Feb 2009 17:40:01 -0500 Subject: [mapserver-users] Map server build kit In-Reply-To: References: Message-ID: <499F3141.2090301@gatewaygeomatics.com> > Where can I download latest build kit for map server? Also, will I be > able to use nmake of VS 2008 to compile it? http://www.gatewaygeomatics.com/dl/buildkit/ (made with VS 2003) -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From mrdouville at shaw.ca Fri Feb 20 14:41:29 2009 From: mrdouville at shaw.ca (Michelle Douville) Date: Fri, 20 Feb 2009 14:41:29 -0800 Subject: [mapserver-users] GetFeatureInfo with ArcSDE9.1/Oracle10g Spatial Views - Mapserver 5.2 Message-ID: I am wondering if anyone else has come across this while using the ArcSDE Datastore: I am trying to get a text/plain result from a getFeatureInfo. I get two types of results depending on whether the sde layer is an actual spatial layer or a spatial view (based on a join within oracle). Here is a request to a spatial view.. http:///mapserver520/terrestrial_ecology520?service=wms&request=getFeatureInfo&version=1.1.1&layers=BIOT_OCCR_TREES_AREA_SVW&query_layers=BIOT_OCCR_TREES_AREA_SVW&width=500&height=500&SRS=EPSG:4326&BBOX=-115.458612543896,49.1997596600283,-115.458021667689,49.2001915091176&x=200&y=200&info_format=text/plain And this is the result: Layer 'BIOT_OCCR_TREES_AREA_SVW' Content-type: application/vnd.ogc.se_xml msSDELayerGetShape(): SDE error. SE_stream_fetch_row(): Invalid parameter value passed to function. (-66) When doing a getFeatureInfo on a spatial layer, such as this.. http:///mapserver520/terrestrial_ecology520?service=wms&request=getFeatureInfo&version=1.1.1&layers=BIOT_OCCR_MASKED_SENS_AREA_SP&query_layers=BIOT_OCCR_MASKED_SENS_AREA_SP&width=500&height=500&SRS=EPSG:4326&BBOX=-115.295184921231,49.1055064203968,-115.241763642305,49.1445500142613&x=200&y=200&info_format=text/plain I get this.. GetFeatureInfo results: Layer 'BIOT_OCCR_MASKED_SENS_AREA_SP' ? Feature 1278361: Are there limitations on how mapserver can handle spatial views in ArcSDE/Oracle? This is similar to http://trac.osgeo.org/mapserver/ticket/536 Many thanks, Michelle -------------- next part -------------- An HTML attachment was scrubbed... URL: From mrdouville at shaw.ca Fri Feb 20 15:34:34 2009 From: mrdouville at shaw.ca (Michelle Douvil) Date: Fri, 20 Feb 2009 15:34:34 -0800 (PST) Subject: [mapserver-users] GetFeatureInfo with ArcSDE9.1/Oracle10g Spatial Views - Mapserver 5.2 In-Reply-To: References: Message-ID: <1235172874274-2361946.post@n2.nabble.com> Additional debugging info.. [Fri Feb 20 15:18:05 2009].241000 msSDELayerOpen(): Layer BIOT_OCCR_TREES_AREA_SVW specified version SDE.DEFAULT. [Fri Feb 20 15:18:05 2009].241000 msSDEGetLayerInfo(): Looking for layer by WHSE_TERRESTRIAL_ECOLOGY.BIOT_OCCR_TREES_AREA_SVW, GEOMETRY, server,port:port,sde,username,password [Fri Feb 20 15:18:05 2009].241000 msSDEGetLayerId(): Matched layer to id 896. [Fri Feb 20 15:18:05 2009].241000 Getting all column information in msSDELayerInitItemInfo [Fri Feb 20 15:18:05 2009].241000 msSDELayerGetRowIDColumn(): Table was not registered, returning SE_ROW_ID. [Fri Feb 20 15:18:05 2009].241000 msSDELayerInitItemInfo(): getting info for OCCR_AREA_SP_ID [Fri Feb 20 15:18:05 2009].241000 msSDELayerInitItemInfo(): getting info for GEOMETRY [Fri Feb 20 15:18:05 2009].241000 msSDELayerInitItemInfo(): getting info for OBJECTID [Fri Feb 20 15:18:05 2009].241000 msSDELayerInitItemInfo(): getting info for FEATURE_CODE [Fri Feb 20 15:18:05 2009].241000 msSDELayerInitItemInfo(): getting info for SHAPE_ID [Fri Feb 20 15:18:05 2009].241000 msSDELayerInitItemInfo(): getting info for SCI_NAME_F [Fri Feb 20 15:18:05 2009].241000 msSDELayerInitItemInfo(): getting info for SCI_NAME [Fri Feb 20 15:18:05 2009].241000 msSDELayerInitItemInfo(): getting info for ENG_NAME_F [Fri Feb 20 15:18:05 2009].241000 msSDELayerInitItemInfo(): getting info for ENG_NAME [Fri Feb 20 15:18:05 2009].241000 msSDELayerInitItemInfo(): getting info for OCCR_ID [Fri Feb 20 15:18:05 2009].241000 msSDELayerInitItemInfo(): getting info for EL_TYPE [Fri Feb 20 15:18:05 2009].241000 msSDELayerInitItemInfo(): getting info for DATA_SENS [Fri Feb 20 15:18:05 2009].241000 msSDELayerInitItemInfo(): getting info for SURV_SITE [Fri Feb 20 15:18:05 2009].241000 msSDELayerInitItemInfo(): getting info for DIRECTIONS [Fri Feb 20 15:18:05 2009].241000 msSDELayerInitItemInfo(): getting info for FIRST_OBS [Fri Feb 20 15:18:05 2009].241000 msSDELayerInitItemInfo(): getting info for LAST_OBS [Fri Feb 20 15:18:05 2009].241000 msSDELayerInitItemInfo(): getting info for OCCR_DATA [Fri Feb 20 15:18:05 2009].241000 msSDELayerInitItemInfo(): getting info for GEN_DESC [Fri Feb 20 15:18:05 2009].241000 msSDELayerInitItemInfo(): getting info for VEG_ZONE [Fri Feb 20 15:18:05 2009].241000 msSDELayerInitItemInfo(): getting info for HABITAT [Fri Feb 20 15:18:05 2009].241000 msSDELayerInitItemInfo(): getting info for BGC [Fri Feb 20 15:18:05 2009].241000 msSDELayerInitItemInfo(): getting info for REFERENCES [Fri Feb 20 15:18:05 2009].241000 msSDELayerInitItemInfo(): getting info for VERS_DATE [Fri Feb 20 15:18:05 2009].241000 msSDELayerInitItemInfo(): getting info for EST_RA [Fri Feb 20 15:18:05 2009].241000 msSDELayerGetShape(): SDE error. SE_stream_fetch_row(): Invalid parameter value passed to function. (-66) [Fri Feb 20 15:18:05 2009].241000 mapserv request processing time (msLoadMap not incl.): 0.016s [Fri Feb 20 15:18:05 2009].241000 msFreeMap(): freeing map at 010B4548. [Fri Feb 20 15:18:05 2009].241000 msSDELayerCloseConnection(): Closing connection for layer BIOT_OCCR_TREES_AREA_SVW. Mapfile layer: LAYER NAME 'BIOT_OCCR_TREES_AREA_SVW' CONNECTIONTYPE sde CONNECTION "server,port,sde,username,password" DATA 'WHSE_TERRESTRIAL_ECOLOGY.BIOT_OCCR_TREES_AREA_SVW,GEOMETRY,SDE.DEFAULT' # PROCESSING "OBJECTID=SHAPE_ID" LABELITEM 'SHAPE_ID' LABELMAXSCALE 500000 CLASS NAME 'CDC Big Trees' STYLE SYMBOL 'square' COLOR 215 194 158 SIZE 5 END #end style LABEL COLOR 0 0 0 FONT arial TYPE truetype SIZE 8 PARTIALS FALSE BUFFER 1 OUTLINECOLOR 254 254 254 END #end label END #end class TYPE polygon MINSCALE 0 MAXSCALE 3000000 STATUS ON PROJECTION "init=EPSG:3005" END #projection METADATA wms_title "Big Trees - Non Sensitive Occurrences" wms_metadataurl_format "html" wms_metadataurl_href " " wms_metadataurl_type "TC211" wfs_title "CDC Big Trees" # gml_geometries "geom" gml_geom_type "polygon" gml_include_items "all" # gml_exclude_items "GEOMETRY,OBJECTID" ows_include_items "all" gml_featureid "OBJECTID" ows_feature_id "OBJECTID" # "wms_feature_info_mime_type" "text/plain" END #metadata PROCESSING "CLOSE_CONNECTION=DEFER" DEBUG 5 DUMP TRUE TEMPLATE "foo.html" END #end layer -- View this message in context: http://n2.nabble.com/GetFeatureInfo-with-ArcSDE9.1-Oracle10g-Spatial-Views---Mapserver-5.2-tp2361707p2361946.html Sent from the Mapserver - User mailing list archive at Nabble.com. From m.kofahl at gmx.net Fri Feb 20 23:57:31 2009 From: m.kofahl at gmx.net (Martin Kofahl) Date: Sat, 21 Feb 2009 08:57:31 +0100 Subject: [mapserver-users] Status on ticket 2582? In-Reply-To: <1235168205544-2361593.post@n2.nabble.com> References: <1234821290361-2337548.post@n2.nabble.com> <4999E16F.30502@mapgears.com> <1235137197915-2358883.post@n2.nabble.com> <200902200907.55282.aboudreault@mapgears.com> <499EBA5E.4010004@gatewaygeomatics.com> <200902200931.38323.aboudreault@mapgears.com> <499EC67F.2060409@gatewaygeomatics.com> <1235168205544-2361593.post@n2.nabble.com> Message-ID: <499FB3EB.9050400@gmx.net> Hi, I think the second patch for ticket 1952 already covers some of these issues for the wms service (one can easily change ows_service to ows_hidden_layer -- I think 'hidden' makes even more sense than 'ignore'): > 1) The hiding mechanism must not interfere with which layers that > actually are rendered (turned on). ... only suppresses the capabilities output. > 2) What will happen if the hidden layer is inside a GROUP? ... the single layer is hidden > 3) What will happen if all layers inside a GROUP is hidden? ... as far I remember, the mentioned patch currently hides the whole group and its layers. In order to support grouped layers for different resolutions, my workaround was to hide any layer in this group (hence no capabilities) and to have a single not-grouped, not-hidden layer with the name identical to the group name. When all grouped layers are hidden and we decide to expose it as a sigle layer as P?l suggests, the question is which metadata to use. > 4) What will happen if the hidden layer is part of a group defined > with the wms_layer_group metadata tag? ... should work similar to 2 und 3. But currently I have no idea what the patch does with wms_layer_group layers. Martin paalkr wrote: > Hi All! > > I glad this issue got some focus, and I must say that I was kind of > surprised realizing that ticket 2582 only addressed the MapScript > part. Anyway, I'm very glad that Jeff now proposes a final solution > for this issue, that of course should be fixed in both cgi and > MapScript, and for every service type. > > Jeffs proposal for a boolean metadata keyword, like ignore_layer > sound OK, but maybe ows_ignore_layer is more appropriate as the layer > obviously shall not be ignored, only the exposure in the > GetCapabilities document. I think the following aspects are important > to have in mind when resolving the issue: > > 1) The hiding mechanism must not interfere with which layers that > actually are rendered (turned on) . This has to be controlled as > before by the STATUS, SCALE and DEPENDENCIES keywords. 2) What will > happen if the hidden layer is inside a GROUP? 3) What will happen if > all layers inside a GROUP is hidden? I would suggest that the group > layer is exposed as a single layer, in this way you could have > different resolution layers inside a GROUP and expose this as a > single layer to the end user. Often the different resolution layers > are only present to optimize rendering speed, and are not intended > for the end user. 4) What will happen if the hidden layer is part of > a group defined with the wms_layer_group metadata tag? > > Regards, P?l Kristensen > > > Jeff McKenna wrote: >> Alan Boudreault wrote: >>> It could. By the fact that a status MS_DELETE can only be set >>> through Mapscript, i've only added this part. I think the ticket >>> have been open for that ? You could add a comment in the ticket >>> to propose a specific mapfile setting. >>> >>> Alan >> I've made a comment in that ticket, and I am proposing we finally >> fix this through an old existing ticket >> (http://trac.osgeo.org/mapserver/ticket/337). >> >> -jeff >> >> From enri at 163.com Sat Feb 21 01:13:27 2009 From: enri at 163.com (enri) Date: Sat, 21 Feb 2009 17:13:27 +0800 (CST) Subject: [mapserver-users] MSCompanion: A new Mapfile WYSWYG editor is finally available for you Message-ID: <28733478.179141235207607854.JavaMail.coremail@bj163app106.163.com> Hi, Several months ago, I planned to contribute a mapfile editor to you, the Mapserver community. After many overnights' hard work, the first alpha version, a totally WYSWYG mapfile editor - MSCompanion is finally available now. Please find it at http://code.google.com/p/mscompanion/ and check if it can help you. Also I am waiting for your response and suggestion. Enri -------------- next part -------------- An HTML attachment was scrubbed... URL: From pal.kristensen at statkart.no Sat Feb 21 02:13:38 2009 From: pal.kristensen at statkart.no (paalkr) Date: Sat, 21 Feb 2009 02:13:38 -0800 (PST) Subject: [mapserver-users] Status on ticket 2582? In-Reply-To: <499FB3EB.9050400@gmx.net> References: <1234821290361-2337548.post@n2.nabble.com> <4999E16F.30502@mapgears.com> <1235137197915-2358883.post@n2.nabble.com> <200902200907.55282.aboudreault@mapgears.com> <499EBA5E.4010004@gatewaygeomatics.com> <200902200931.38323.aboudreault@mapgears.com> <499EC67F.2060409@gatewaygeomatics.com> <1235168205544-2361593.post@n2.nabble.com> <499FB3EB.9050400@gmx.net> Message-ID: <1235211218284-2363221.post@n2.nabble.com> Hi all! See my comments in italic below Martin Kofahl wrote: > > Hi, > I think the second patch for ticket 1952 already covers some of these > issues for the wms service (one can easily change ows_service to > ows_hidden_layer -- I think 'hidden' makes even more sense than 'ignore'): > > I agree, and I have actually used your patch with great success in many > cases. > >> 1) The hiding mechanism must not interfere with which layers that >> actually are rendered (turned on). > ... only suppresses the capabilities output. > > Perfect > >> 2) What will happen if the hidden layer is inside a GROUP? > ... the single layer is hidden > > As expected > >> 3) What will happen if all layers inside a GROUP is hidden? > ... as far I remember, the mentioned patch currently hides the whole > group and its layers. In order to support grouped layers for different > resolutions, my workaround was to hide any layer in this group (hence no > capabilities) and to have a single not-grouped, not-hidden layer with > the name identical to the group name. > When all grouped layers are hidden and we decide to expose it as a sigle > layer as P?l suggests, the question is which metadata to use. > > I did not think of the opportunity to have single layer with the same name > as the group, but this sounds like a more sensible solution then > transforming a group layer to a single layer. Specially when it comes to > decide which metadata to expose. > >> 4) What will happen if the hidden layer is part of a group defined >> with the wms_layer_group metadata tag? > ... should work similar to 2 und 3. But currently I have no idea what > the patch does with wms_layer_group layers. > > Me neither :-) > > Regards, > P?l Kristensen > > paalkr wrote: >> Hi All! >> >> I glad this issue got some focus, and I must say that I was kind of >> surprised realizing that ticket 2582 only addressed the MapScript >> part. Anyway, I'm very glad that Jeff now proposes a final solution >> for this issue, that of course should be fixed in both cgi and >> MapScript, and for every service type. >> >> Jeffs proposal for a boolean metadata keyword, like ignore_layer >> sound OK, but maybe ows_ignore_layer is more appropriate as the layer >> obviously shall not be ignored, only the exposure in the >> GetCapabilities document. I think the following aspects are important >> to have in mind when resolving the issue: >> >> 1) The hiding mechanism must not interfere with which layers that >> actually are rendered (turned on) . This has to be controlled as >> before by the STATUS, SCALE and DEPENDENCIES keywords. 2) What will >> happen if the hidden layer is inside a GROUP? 3) What will happen if >> all layers inside a GROUP is hidden? I would suggest that the group >> layer is exposed as a single layer, in this way you could have >> different resolution layers inside a GROUP and expose this as a >> single layer to the end user. Often the different resolution layers >> are only present to optimize rendering speed, and are not intended >> for the end user. 4) What will happen if the hidden layer is part of >> a group defined with the wms_layer_group metadata tag? >> >> Regards, P?l Kristensen >> >> >> Jeff McKenna wrote: >>> Alan Boudreault wrote: >>>> It could. By the fact that a status MS_DELETE can only be set >>>> through Mapscript, i've only added this part. I think the ticket >>>> have been open for that ? You could add a comment in the ticket >>>> to propose a specific mapfile setting. >>>> >>>> Alan >>> I've made a comment in that ticket, and I am proposing we finally >>> fix this through an old existing ticket >>> (http://trac.osgeo.org/mapserver/ticket/337). >>> >>> -jeff >>> >>> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/Status-on-ticket-2582--tp2337548p2363221.html Sent from the Mapserver - User mailing list archive at Nabble.com. From enri at 163.com Sat Feb 21 09:02:39 2009 From: enri at 163.com (enri) Date: Sun, 22 Feb 2009 01:02:39 +0800 (CST) Subject: [mapserver-users] MSCompanion: A new Mapfile WYSWYG editor is finally available for you In-Reply-To: References: <28733478.179141235207607854.JavaMail.coremail@bj163app106.163.com> Message-ID: <31727518.262361235235759263.JavaMail.coremail@bj163app174.163.com> Hi, James, when you run MSCompanion the first time, it will create a config file according to your settings in the folder of the EXE file as I expect, which named as msc.cfg. If you can not find such a file, perhaps every time you start it, it will compain about the directories. As for the settings of directories, please go to the "System Directories" tab of the "System Config" dialog, check "Guess the other directories when one of them is set", and click the button right of the first "Mapserver Utilities Directory", locate to the "shp2img.exe" file, for MS4W could be "C:\ms4w\tools\mapserv\shp2img.exe", then if you have MS4W installed, it should verify the other directories correctly. if the directories are right, usually it should work. Please tell me if the problem is still there. Good luck, enri. >Hi, > >Thanks of this - I think it could become a very useful tool - but at >the moment I have some problems. > >I have the latest version of MS4W installed in C:\MS4W - despite the >configuration pointing at this it still said it couldn't find the >directories at first >Eventually - after restarting several times it no longer complained >about the directories (although they were still pointing to the same >place??) > >Now it opens up - but when I create a new map and goto add a layer it >just tells me I have an Access violation at adresss xxxxx > >Best wishes >James > >2009/2/21 enri : >> Hi, >> >> Several months ago, I planned to contribute a mapfile editor to you, the >> Mapserver community. After many overnights' hard work, the first alpha >> version, a totally WYSWYG mapfile editor - MSCompanion is finally available >> now. Please find it at http://code.google.com/p/mscompanion/ and check if it >> can help you. Also I am waiting for your response and suggestion. >> >> Enri >> >> >> >> ________________________________ >> ????????????????? >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > >-- >Dr James Perrins >exeGesIS SDM Ltd >Great House Barn >New Street, Talgarth >Powys LD3 0AH. >Direct Line: 01646 686650 >Tel: 01874 711145 >Fax: 01874 711156 >Email: JamesP at esdm.co.uk > >This E-mail and any files transmitted with it are private and intended >solely for the use of the individual or entity to whom they are >addressed. If you are not the intended recipient, the E-mail and any >files have been transmitted to you in error and any copying, >distribution or other use of the information contained in them is >strictly prohibited. > >Nothing in this E-mail message amounts to a contractual or other legal >commitment on the part of exeGesIS SDM Ltd unless confirmed by a >signed communication. > >exeGesIS SDM Ltd will make every effort to keep its network free of >viruses. However, the recipient of this message will need to scan this >message, and any attachments, for viruses, as exeGesIS SDM Ltd can >take no responsibility for any computer virus that might be >transferred by this e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: From enri at 163.com Sat Feb 21 09:35:38 2009 From: enri at 163.com (enri) Date: Sun, 22 Feb 2009 01:35:38 +0800 (CST) Subject: [mapserver-users] MSCompanion: A new Mapfile WYSWYG editor is finally available for you In-Reply-To: <49A01EDD.7040505@gritechnologies.com> References: <49A01EDD.7040505@gritechnologies.com> <28733478.179141235207607854.JavaMail.coremail@bj163app106.163.com> Message-ID: <3124090.263871235237738013.JavaMail.coremail@bj163app174.163.com> bobb, Sorry the help document is not available, I will try my best to write it recently. 1. version of mapserver the mapfile for: just like 5.0 5.2 5.2.1 or 5.4, as Mapserver does 2. goto menu "Tools->Options" then choose "System Directories" tab, check the checkbox at the top, and click the botton right of the first text box, locate to Mapserver Utilities folder, say "D:\ms4w\tools\mapserv\shp2img.exe", then wait a while it will correct all other directories to point to the right folder. 3. Could you explain with more words what's the meaning of "Highlighting comments "? 4. A web version is not in my plan, because there are already several choices. But I do consider to implement the function of menu item "Map->Publish" with MS4W as a underlying environment. 5. All MSCompanion does is write a Mapfile for Mapserver's use, it changes nothing but the mapfile authoring method. Generally you can check the result mapfile to find the source of problems and go to the right place fix it. By the way, paths such as MAP->SHAPEPATH, LAYER->DATA in the the result mapfile can be relative or obsolute path, you can set it at Gerneral Tab of "MAP Properties" dialog. Keep in mind when you move the result mapfile to other production environment, you must keep the right relationship between this paths. I don't know if these words can answer your question. Thank you foe your message. Good luck, Enri. Enri, Looks interesting from a first glance. Very comprehensive. First things I noticed (because you asked): How do you define what version of MapServer the Mapfile is for? I did find the "Default Version of MapServer entry, what should the entry look like? Just the version number? Some hint next to the entry form would be good. How does a user change the drive leter. I had MS4W installed on the "D" drive. It all worked after I manually switched the drive letter in all the entry form slots. Highlighting comments (or even highlighting all aspects, function/data) would help. Did you think about building a Web version at all. I still haven't figured out how to connect to my mapserver (which is in a different location than the MS4W install) for the image display. I keep getting a "Invalid image size" error. Still looking . . . . Really nice so far though. Thanks for the effort. bobb enri wrote: Hi, Several months ago, I planned to contribute a mapfile editor to you, the Mapserver community. After many overnights' hard work, the first alpha version, a totally WYSWYG mapfile editor - MSCompanion is finally available now. Please find it at http://code.google.com/p/mscompanion/ and check if it can help you. Also I am waiting for your response and suggestion. Enri ????????????????? _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From enri at 163.com Sat Feb 21 23:55:03 2009 From: enri at 163.com (enri) Date: Sun, 22 Feb 2009 15:55:03 +0800 (CST) Subject: [mapserver-users] MSCompanion v1.0 alpha2 is available Message-ID: <32725764.387521235289303366.JavaMail.coremail@bj163app106.163.com> Hi, Friends, According to messages from James Perrins and Bob Basques, Several updates has been made to make it clear and easier to get the correct directories settings. You can download the new version 1.0 alpha2 at http://code.google.com/p/mscompanion/. wish you enjoy it. Enri -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.kofahl at gmx.net Sun Feb 22 06:02:39 2009 From: m.kofahl at gmx.net (Martin Kofahl) Date: Sun, 22 Feb 2009 15:02:39 +0100 Subject: [mapserver-users] Status on ticket 2582? In-Reply-To: <1235211218284-2363221.post@n2.nabble.com> References: <1234821290361-2337548.post@n2.nabble.com> <4999E16F.30502@mapgears.com> <1235137197915-2358883.post@n2.nabble.com> <200902200907.55282.aboudreault@mapgears.com> <499EBA5E.4010004@gatewaygeomatics.com> <200902200931.38323.aboudreault@mapgears.com> <499EC67F.2060409@gatewaygeomatics.com> <1235168205544-2361593.post@n2.nabble.com> <499FB3EB.9050400@gmx.net> <1235211218284-2363221.post@n2.nabble.com> Message-ID: <49A15AFF.8060107@gmx.net> Hi, I did add a patch for ms540-b1 to ticket #1952 [http://trac.osgeo.org/mapserver/ticket/1952]. It uses a ows_hidden_layer metadata and does also solve ticket #2582. It does also work for layers grouped by using the wms_layer_group metadata and does otherwise work as described i my last post. Martin paalkr wrote: > Hi all! > > See my comments in italic below > > > Martin Kofahl wrote: >> Hi, >> I think the second patch for ticket 1952 already covers some of these >> issues for the wms service (one can easily change ows_service to >> ows_hidden_layer -- I think 'hidden' makes even more sense than 'ignore'): >> >> I agree, and I have actually used your patch with great success in many >> cases. >> >>> 1) The hiding mechanism must not interfere with which layers that >>> actually are rendered (turned on). >> ... only suppresses the capabilities output. >> >> Perfect >> >>> 2) What will happen if the hidden layer is inside a GROUP? >> ... the single layer is hidden >> >> As expected >> >>> 3) What will happen if all layers inside a GROUP is hidden? >> ... as far I remember, the mentioned patch currently hides the whole >> group and its layers. In order to support grouped layers for different >> resolutions, my workaround was to hide any layer in this group (hence no >> capabilities) and to have a single not-grouped, not-hidden layer with >> the name identical to the group name. >> When all grouped layers are hidden and we decide to expose it as a sigle >> layer as P?l suggests, the question is which metadata to use. >> >> I did not think of the opportunity to have single layer with the same name >> as the group, but this sounds like a more sensible solution then >> transforming a group layer to a single layer. Specially when it comes to >> decide which metadata to expose. >> >>> 4) What will happen if the hidden layer is part of a group defined >>> with the wms_layer_group metadata tag? >> ... should work similar to 2 und 3. But currently I have no idea what >> the patch does with wms_layer_group layers. >> >> Me neither :-) >> >> Regards, >> P?l Kristensen >> >> paalkr wrote: >>> Hi All! >>> >>> I glad this issue got some focus, and I must say that I was kind of >>> surprised realizing that ticket 2582 only addressed the MapScript >>> part. Anyway, I'm very glad that Jeff now proposes a final solution >>> for this issue, that of course should be fixed in both cgi and >>> MapScript, and for every service type. >>> >>> Jeffs proposal for a boolean metadata keyword, like ignore_layer >>> sound OK, but maybe ows_ignore_layer is more appropriate as the layer >>> obviously shall not be ignored, only the exposure in the >>> GetCapabilities document. I think the following aspects are important >>> to have in mind when resolving the issue: >>> >>> 1) The hiding mechanism must not interfere with which layers that >>> actually are rendered (turned on) . This has to be controlled as >>> before by the STATUS, SCALE and DEPENDENCIES keywords. 2) What will >>> happen if the hidden layer is inside a GROUP? 3) What will happen if >>> all layers inside a GROUP is hidden? I would suggest that the group >>> layer is exposed as a single layer, in this way you could have >>> different resolution layers inside a GROUP and expose this as a >>> single layer to the end user. Often the different resolution layers >>> are only present to optimize rendering speed, and are not intended >>> for the end user. 4) What will happen if the hidden layer is part of >>> a group defined with the wms_layer_group metadata tag? >>> >>> Regards, P?l Kristensen >>> >>> >>> Jeff McKenna wrote: >>>> Alan Boudreault wrote: >>>>> It could. By the fact that a status MS_DELETE can only be set >>>>> through Mapscript, i've only added this part. I think the ticket >>>>> have been open for that ? You could add a comment in the ticket >>>>> to propose a specific mapfile setting. >>>>> >>>>> Alan >>>> I've made a comment in that ticket, and I am proposing we finally >>>> fix this through an old existing ticket >>>> (http://trac.osgeo.org/mapserver/ticket/337). >>>> >>>> -jeff >>>> >>>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > From pal.kristensen at statkart.no Sun Feb 22 06:18:49 2009 From: pal.kristensen at statkart.no (paalkr) Date: Sun, 22 Feb 2009 06:18:49 -0800 (PST) Subject: [mapserver-users] Status on ticket 2582? In-Reply-To: <49A15AFF.8060107@gmx.net> References: <1234821290361-2337548.post@n2.nabble.com> <4999E16F.30502@mapgears.com> <1235137197915-2358883.post@n2.nabble.com> <200902200907.55282.aboudreault@mapgears.com> <499EBA5E.4010004@gatewaygeomatics.com> <200902200931.38323.aboudreault@mapgears.com> <499EC67F.2060409@gatewaygeomatics.com> <1235168205544-2361593.post@n2.nabble.com> <499FB3EB.9050400@gmx.net> <1235211218284-2363221.post@n2.nabble.com> <49A15AFF.8060107@gmx.net> Message-ID: <1235312329092-2367635.post@n2.nabble.com> Hi Martin and devs This is great work Martin! @Devs; what about incorporating this patch into the core and finally fix the issue? I guess the remaining work is to apply support for other services than WMS (i.e. wfs, sos, wcs), and documentation of course :-) Regards, P?l Kristensen Martin Kofahl wrote: > > Hi, > I did add a patch for ms540-b1 to ticket #1952 > [http://trac.osgeo.org/mapserver/ticket/1952]. It uses a > ows_hidden_layer metadata and does also solve ticket #2582. It does also > work for layers grouped by using the wms_layer_group metadata and does > otherwise work as described i my last post. > > Martin > > -- View this message in context: http://n2.nabble.com/Status-on-ticket-2582--tp2337548p2367635.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pal.kristensen at statkart.no Sun Feb 22 06:27:03 2009 From: pal.kristensen at statkart.no (paalkr) Date: Sun, 22 Feb 2009 06:27:03 -0800 (PST) Subject: [mapserver-users] Status on ticket 2582? In-Reply-To: <1235312329092-2367635.post@n2.nabble.com> References: <1234821290361-2337548.post@n2.nabble.com> <4999E16F.30502@mapgears.com> <1235137197915-2358883.post@n2.nabble.com> <200902200907.55282.aboudreault@mapgears.com> <499EBA5E.4010004@gatewaygeomatics.com> <200902200931.38323.aboudreault@mapgears.com> <499EC67F.2060409@gatewaygeomatics.com> <1235168205544-2361593.post@n2.nabble.com> <499FB3EB.9050400@gmx.net> <1235211218284-2363221.post@n2.nabble.com> <49A15AFF.8060107@gmx.net> <1235312329092-2367635.post@n2.nabble.com> Message-ID: <1235312823870-2367659.post@n2.nabble.com> Sorry! Didn't look at the patch prior to writing the comment. Obviously Martin has taken care of all the service types. I see no reason why the patch not should enter trunk (and 5.4 branch) and become a part of the next 5.4 beta. Regards, P?l Kristensen paalkr wrote: > > ... > @Devs; what about incorporating this patch into the core and finally fix > the issue? I guess the remaining work is to apply support for other > services than WMS (i.e. wfs, sos, wcs), and documentation of course :-) > > Regards, > P?l Kristensen > > > Martin Kofahl wrote: >> >> Hi, >> I did add a patch for ms540-b1 to ticket #1952 >> [http://trac.osgeo.org/mapserver/ticket/1952]. It uses a >> ows_hidden_layer metadata and does also solve ticket #2582. It does also >> work for layers grouped by using the wms_layer_group metadata and does >> otherwise work as described i my last post. >> >> Martin >> >> > > -- View this message in context: http://n2.nabble.com/Status-on-ticket-2582--tp2337548p2367659.html Sent from the Mapserver - User mailing list archive at Nabble.com. From aboudreault at mapgears.com Sun Feb 22 09:07:11 2009 From: aboudreault at mapgears.com (Alan Boudreault) Date: Sun, 22 Feb 2009 12:07:11 -0500 Subject: [mapserver-users] Status on ticket 2582? In-Reply-To: <1235312823870-2367659.post@n2.nabble.com> References: <1234821290361-2337548.post@n2.nabble.com> <4999E16F.30502@mapgears.com> <1235137197915-2358883.post@n2.nabble.com> <200902200907.55282.aboudreault@mapgears.com> <499EBA5E.4010004@gatewaygeomatics.com> <200902200931.38323.aboudreault@mapgears.com> <499EC67F.2060409@gatewaygeomatics.com> <1235168205544-2361593.post@n2.nabble.com> <499FB3EB.9050400@gmx.net> <1235211218284-2363221.post@n2.nabble.com> <49A15AFF.8060107@gmx.net> <1235312329092-2367635.post@n2.nabble.com> <1235312823870-2367659.post@n2.nabble.com> Message-ID: <49A1863F.2070809@mapgears.com> I'm currently making a similar patch. I didn't see the ticket 1952 before. It will use "[service]_dump" metadata. ie. "wms_dump" set to false (true by default) will disable this layer for all possible requests (not only the getcapabilities). It should be in 5.4 beta 2. Alan paalkr wrote: > Sorry! Didn't look at the patch prior to writing the comment. Obviously > Martin has taken care of all the service types. I see no reason why the > patch not should enter trunk (and 5.4 branch) and become a part of the next > 5.4 beta. > > Regards, > P?l Kristensen > > > paalkr wrote: > >> >> ... >> @Devs; what about incorporating this patch into the core and finally fix >> the issue? I guess the remaining work is to apply support for other >> services than WMS (i.e. wfs, sos, wcs), and documentation of course :-) >> >> Regards, >> P?l Kristensen >> >> >> Martin Kofahl wrote: >> >>> Hi, >>> I did add a patch for ms540-b1 to ticket #1952 >>> [http://trac.osgeo.org/mapserver/ticket/1952]. It uses a >>> ows_hidden_layer metadata and does also solve ticket #2582. It does also >>> work for layers grouped by using the wms_layer_group metadata and does >>> otherwise work as described i my last post. >>> >>> Martin >>> >>> >>> >> > > -- Alan Boudreault Mapgears http://www.mapgears.com From szekerest at gmail.com Sun Feb 22 09:24:53 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Sun, 22 Feb 2009 18:24:53 +0100 Subject: [mapserver-users] MapServer and GDAL build SDKs available Message-ID: Folks, I've uploaded my latest SDK packages which provide a quick solution to make consistent debug or release builds with various compiler versions and architectures. The Windows builders of the GDAL buildbot have already been relying on these packages for quite a long time (until the buildbot was alive ;-) Those packages contain a number of the precompiled libraries required to be able to build GDAL and MapServer successfully, each of the dependencies have been compiled by using the same compiler so as to avoid the possible memory issues reated to the mixed CRT dependencies. For this reason mixing the dll-s and libs among these packages is highly discouraged and unsupported. For the compiling instructions please refer to the readme.txt contained by the packages. The supported dependencies/versions are enumerated in the /doc subdirectory of the packages. The C# packages correspond to the compiler default .NET Framework versions 1.1, 2.0 and 3.5. The various versions of the packages can be downloaded from these locations: MSVC2003 (Win32): http://vbkto.dyndns.org:1280/sdk/release-1310-dev.zip MSVC2005 (Win32): http://vbkto.dyndns.org:1280/sdk/release-1400-dev.zip MSVC2005 (Win64): http://vbkto.dyndns.org:1280/sdk/release-1400-x64-dev.zip MSVC2008 (Win32): http://vbkto.dyndns.org:1280/sdk/release-1500-dev.zip MSVC2008 (Win64): http://vbkto.dyndns.org:1280/sdk/release-1500-x64-dev.zip You can download the corresponding binary only standalone packages from these locations: MSVC2003 (Win32): http://vbkto.dyndns.org:1280/sdk/release-1310-gdal-1-6-mapserver.zip MSVC2005 (Win32): http://vbkto.dyndns.org:1280/sdk/release-1400-gdal-1-6-mapserver.zip MSVC2005 (Win64): http://vbkto.dyndns.org:1280/sdk/release-1400-x64-gdal-1-6-mapserver.zip MSVC2008 (Win32): http://vbkto.dyndns.org:1280/sdk/release-1500-gdal-1-6-mapserver.zip MSVC2008 (Win64): http://vbkto.dyndns.org:1280/sdk/release-1500-x64-gdal-1-6-mapserver.zip In the near future (hopefully) I'll present automated daily builds of the binaries for the development versions of GDAL and MapServer to be able to stay in sync with the latest changes/fixes in the SVN easily. Let me know about your experences, wishes Best regards Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.kofahl at gmx.net Sun Feb 22 09:44:14 2009 From: m.kofahl at gmx.net (Martin Kofahl) Date: Sun, 22 Feb 2009 18:44:14 +0100 Subject: [mapserver-users] Status on ticket 2582? In-Reply-To: <49A1863F.2070809@mapgears.com> References: <1234821290361-2337548.post@n2.nabble.com> <4999E16F.30502@mapgears.com> <1235137197915-2358883.post@n2.nabble.com> <200902200907.55282.aboudreault@mapgears.com> <499EBA5E.4010004@gatewaygeomatics.com> <200902200931.38323.aboudreault@mapgears.com> <499EC67F.2060409@gatewaygeomatics.com> <1235168205544-2361593.post@n2.nabble.com> <499FB3EB.9050400@gmx.net> <1235211218284-2363221.post@n2.nabble.com> <49A15AFF.8060107@gmx.net> <1235312329092-2367635.post@n2.nabble.com> <1235312823870-2367659.post@n2.nabble.com> <49A1863F.2070809@mapgears.com> Message-ID: <49A18EEE.4090804@gmx.net> Hi Alan, the intention of #1952 (and #2582 !?) was to hide a layer only for capabilities requests. E.g. in order to hide grouped layers with different resolutions which shall be used only by the group name. So getmap requests (e.g. using the group name) shall definitely work even if a layer is hidden. I think your work will prevent the layer to be served at all?! Martin Alan Boudreault wrote: > I'm currently making a similar patch. I didn't see the ticket 1952 > before. It will use "[service]_dump" metadata. ie. "wms_dump" set to > false (true by default) will disable this layer for all possible > requests (not only the getcapabilities). It should be in 5.4 beta 2. > > Alan > > paalkr wrote: >> Sorry! Didn't look at the patch prior to writing the comment. Obviously >> Martin has taken care of all the service types. I see no reason why the >> patch not should enter trunk (and 5.4 branch) and become a part of the next >> 5.4 beta. >> >> Regards, >> P?l Kristensen >> >> >> paalkr wrote: >> >>> >>> ... >>> @Devs; what about incorporating this patch into the core and finally fix >>> the issue? I guess the remaining work is to apply support for other >>> services than WMS (i.e. wfs, sos, wcs), and documentation of course :-) >>> >>> Regards, >>> P?l Kristensen >>> >>> >>> Martin Kofahl wrote: >>> >>>> Hi, >>>> I did add a patch for ms540-b1 to ticket #1952 >>>> [http://trac.osgeo.org/mapserver/ticket/1952]. It uses a >>>> ows_hidden_layer metadata and does also solve ticket #2582. It does also >>>> work for layers grouped by using the wms_layer_group metadata and does >>>> otherwise work as described i my last post. >>>> >>>> Martin >>>> >>>> >>>> >>> >> > > From pal.kristensen at statkart.no Sun Feb 22 09:45:12 2009 From: pal.kristensen at statkart.no (paalkr) Date: Sun, 22 Feb 2009 09:45:12 -0800 (PST) Subject: [mapserver-users] Status on ticket 2582? In-Reply-To: <49A1863F.2070809@mapgears.com> References: <1234821290361-2337548.post@n2.nabble.com> <4999E16F.30502@mapgears.com> <1235137197915-2358883.post@n2.nabble.com> <200902200907.55282.aboudreault@mapgears.com> <499EBA5E.4010004@gatewaygeomatics.com> <200902200931.38323.aboudreault@mapgears.com> <499EC67F.2060409@gatewaygeomatics.com> <1235168205544-2361593.post@n2.nabble.com> <499FB3EB.9050400@gmx.net> <1235211218284-2363221.post@n2.nabble.com> <49A15AFF.8060107@gmx.net> <1235312329092-2367635.post@n2.nabble.com> <1235312823870-2367659.post@n2.nabble.com> <49A1863F.2070809@mapgears.com> Message-ID: <1235324712181-2368388.post@n2.nabble.com> Hi! Will this prevent the layer from being rendered, because that is not what we want? If the STATUS is set to default the intention is that the "hidden" layers shall be drawn. What about using [service]_hide instead of [service]_dump? Dump eq false kind of sounds like the layer is totally disabled, hence the question above. An other option could be [service]_expose, which then defaults to true. Other than that I like the idea of disabling all request, not only GetCpabilities. Regards, P?l Kristensen Alan Boudreault wrote: > > I'm currently making a similar patch. I didn't see the ticket 1952 > before. It will use "[service]_dump" metadata. ie. "wms_dump" set to > false (true by default) will disable this layer for all possible > requests (not only the getcapabilities). It should be in 5.4 beta 2. > > Alan > > paalkr wrote: >> Sorry! Didn't look at the patch prior to writing the comment. Obviously >> Martin has taken care of all the service types. I see no reason why the >> patch not should enter trunk (and 5.4 branch) and become a part of the >> next >> 5.4 beta. >> >> Regards, >> P?l Kristensen >> >> >> paalkr wrote: >> >>> >>> ... >>> @Devs; what about incorporating this patch into the core and finally fix >>> the issue? I guess the remaining work is to apply support for other >>> services than WMS (i.e. wfs, sos, wcs), and documentation of course :-) >>> >>> Regards, >>> P?l Kristensen >>> >>> >>> Martin Kofahl wrote: >>> >>>> Hi, >>>> I did add a patch for ms540-b1 to ticket #1952 >>>> [http://trac.osgeo.org/mapserver/ticket/1952]. It uses a >>>> ows_hidden_layer metadata and does also solve ticket #2582. It does >>>> also >>>> work for layers grouped by using the wms_layer_group metadata and does >>>> otherwise work as described i my last post. >>>> >>>> Martin >>>> >>>> >>>> >>> >> >> > > > -- > Alan Boudreault > Mapgears > http://www.mapgears.com > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/Status-on-ticket-2582--tp2337548p2368388.html Sent from the Mapserver - User mailing list archive at Nabble.com. From russell at flora.ca Sun Feb 22 10:16:33 2009 From: russell at flora.ca (Russell McOrmond) Date: Sun, 22 Feb 2009 13:16:33 -0500 Subject: [mapserver-users] Reference to OSGeo software in reply to Canadian Public Works Request for Information Message-ID: <49A19681.6070809@flora.ca> Acquisitions Branch of Public Works and Government Services Canada (PWGSC) did an official RFI on so-called "No Charge Licensed Software". I included the two issues I found at work that I discussed here in the past, and use them to compare the benefits of Open Source compared to sole proprietor software. OpenDocument and PDF versions are available from: http://www.digital-copyright.ca/node/5014 OSGeo is at the end: 6. Lessons from Agriculture Canada 6.1. Character Encoding 6.2. Compressed RASTER data in database For those in this list from Ottawa, it was great to meet some of you on Thursday at the Ottawa chapter meeting. I'm an open source person, but even though I have little-to-no geospacial experience I was welcomed. I hope to meet more of you at future events, and learn more about the geospacial community. -- Russell McOrmond, Internet Consultant: Please help us tell the Canadian Parliament to protect our property rights as owners of Information Technology. Sign the petition! http://www.digital-copyright.ca/petition/ict/ "The government, lobbied by legacy copyright holders and hardware manufacturers, can pry my camcorder, computer, home theatre, or portable media player from my cold dead hands!" From m.kofahl at gmx.net Sun Feb 22 11:08:20 2009 From: m.kofahl at gmx.net (Martin Kofahl) Date: Sun, 22 Feb 2009 20:08:20 +0100 Subject: [mapserver-users] Status on ticket 2582? In-Reply-To: <49A1863F.2070809@mapgears.com> References: <1234821290361-2337548.post@n2.nabble.com> <4999E16F.30502@mapgears.com> <1235137197915-2358883.post@n2.nabble.com> <200902200907.55282.aboudreault@mapgears.com> <499EBA5E.4010004@gatewaygeomatics.com> <200902200931.38323.aboudreault@mapgears.com> <499EC67F.2060409@gatewaygeomatics.com> <1235168205544-2361593.post@n2.nabble.com> <499FB3EB.9050400@gmx.net> <1235211218284-2363221.post@n2.nabble.com> <49A15AFF.8060107@gmx.net> <1235312329092-2367635.post@n2.nabble.com> <1235312823870-2367659.post@n2.nabble.com> <49A1863F.2070809@mapgears.com> Message-ID: <49A1A2A4.1010809@gmx.net> Hi, it becomes apparent that we try to solve different issues with hiding, ignoring and so on. We should try to find an implementation which also solves related tickets but is open for future requirements. So couldn't we use a metadata like [service]_disable_request which lists all request type (per service) MapServer shouldn't support for a layer? Maybe expanded with the request type 'all'. Possible examples: wms_disable_request 'all' wms_disable_request 'getcapabilities getfeatureinfo' This should solve tickets 337, 1952, 2582. What do you think? Martin Alan Boudreault wrote: > I'm currently making a similar patch. I didn't see the ticket 1952 > before. It will use "[service]_dump" metadata. ie. "wms_dump" set to > false (true by default) will disable this layer for all possible > requests (not only the getcapabilities). It should be in 5.4 beta 2. > > Alan > > paalkr wrote: >> Sorry! Didn't look at the patch prior to writing the comment. Obviously >> Martin has taken care of all the service types. I see no reason why the >> patch not should enter trunk (and 5.4 branch) and become a part of the next >> 5.4 beta. >> >> Regards, >> P?l Kristensen >> >> >> paalkr wrote: >> >>> >>> ... >>> @Devs; what about incorporating this patch into the core and finally fix >>> the issue? I guess the remaining work is to apply support for other >>> services than WMS (i.e. wfs, sos, wcs), and documentation of course :-) >>> >>> Regards, >>> P?l Kristensen >>> >>> >>> Martin Kofahl wrote: >>> >>>> Hi, >>>> I did add a patch for ms540-b1 to ticket #1952 >>>> [http://trac.osgeo.org/mapserver/ticket/1952]. It uses a >>>> ows_hidden_layer metadata and does also solve ticket #2582. It does also >>>> work for layers grouped by using the wms_layer_group metadata and does >>>> otherwise work as described i my last post. >>>> >>>> Martin >>>> >>>> >>>> >>> >> > > From pal.kristensen at statkart.no Sun Feb 22 14:51:39 2009 From: pal.kristensen at statkart.no (paalkr) Date: Sun, 22 Feb 2009 14:51:39 -0800 (PST) Subject: [mapserver-users] Status on ticket 2582? In-Reply-To: <49A1A2A4.1010809@gmx.net> References: <1234821290361-2337548.post@n2.nabble.com> <4999E16F.30502@mapgears.com> <1235137197915-2358883.post@n2.nabble.com> <200902200907.55282.aboudreault@mapgears.com> <499EBA5E.4010004@gatewaygeomatics.com> <200902200931.38323.aboudreault@mapgears.com> <499EC67F.2060409@gatewaygeomatics.com> <1235168205544-2361593.post@n2.nabble.com> <499FB3EB.9050400@gmx.net> <1235211218284-2363221.post@n2.nabble.com> <49A15AFF.8060107@gmx.net> <1235312329092-2367635.post@n2.nabble.com> <1235312823870-2367659.post@n2.nabble.com> <49A1863F.2070809@mapgears.com> <49A1A2A4.1010809@gmx.net> Message-ID: <1235343099022-2369505.post@n2.nabble.com> Hi! Good idea, this could even make the dump == false / true for OWS redundant. Adding wfs_disable_request 'all' would effectively prevent wfs support. Adding wms_disable_request 'GetFeatureinfo' would be the same as dump == false on a WMS layer. I think the following situations are the most common where this "hiding" functionality would be needed: 1) Adding a "copyright" statement to a map. Hiding the layer and setting status to default will insure that the label is rendered regardless of requested layers. 2) Exposing different raster resolution layers as one "logical" layer. This can be achieved in two different ways a) adding all the raster layers (status == default) to a group as hidden layers (the group will (should) then become hidden as well), then add a "dummy" layer (which don't draws anything) with the same name as the group. Requesting the dummy layer would actually also request the group because the name is identical. b) adding all the layers as hidden single layers (status == default) and use the requires mechanism to set dependencies to a "dummy" layer. 3) Hiding tileindex layers. Setting up the tileindex as a separate layer is the only way of adding a tileindex to e.g PostgreSQL atm. 4) Enable / expose some layers only for certain service types (wms, wfs, sos, wcs) 5) Limit the "users" ability to interact and change the map appearance. Anyway. I hope that either Martins patch is added to 5.4 or that we agree on something similar, in time to reach the 5.4 release. Regards, P?l Kristensen Martin Kofahl wrote: > > Hi, > it becomes apparent that we try to solve different issues with hiding, > ignoring and so on. We should try to find an implementation which also > solves related tickets but is open for future requirements. > > So couldn't we use a metadata like [service]_disable_request which lists > all request type (per service) MapServer shouldn't support for a layer? > Maybe expanded with the request type 'all'. Possible examples: > > wms_disable_request 'all' > wms_disable_request 'getcapabilities getfeatureinfo' > > This should solve tickets 337, 1952, 2582. > What do you think? > > Martin > > -- View this message in context: http://n2.nabble.com/Status-on-ticket-2582--tp2337548p2369505.html Sent from the Mapserver - User mailing list archive at Nabble.com. From stephan.holl at intevation.de Mon Feb 23 00:20:02 2009 From: stephan.holl at intevation.de (Stephan Holl) Date: Mon, 23 Feb 2009 09:20:02 +0100 Subject: [mapserver-users] GetFeatureInfo with ArcSDE9.1/Oracle10g Spatial Views - Mapserver 5.2 In-Reply-To: <1235172874274-2361946.post@n2.nabble.com> References: <1235172874274-2361946.post@n2.nabble.com> Message-ID: <20090223092002.428e0869@thoe.hq.intevation.de> Hello Michelle, Michelle Douvil , [20090220 - 15:34:34] > > > Additional debugging info.. > > [Fri Feb 20 15:18:05 2009].241000 msSDELayerOpen(): Layer > BIOT_OCCR_TREES_AREA_SVW specified version SDE.DEFAULT. > [Fri Feb 20 15:18:05 2009].241000 msSDEGetLayerInfo(): Looking for > layer by WHSE_TERRESTRIAL_ECOLOGY.BIOT_OCCR_TREES_AREA_SVW, GEOMETRY, > server,port:port,sde,username,password > [Fri Feb 20 15:18:05 2009].241000 msSDEGetLayerId(): Matched layer to > id 896. > [Fri Feb 20 15:18:05 2009].241000 Getting all column information in > msSDELayerInitItemInfo > [Fri Feb 20 15:18:05 2009].241000 msSDELayerGetRowIDColumn(): Table > was not registered, returning SE_ROW_ID. Make sure that your Layer is registerd properly in our ArcSDE, otherwise you will not be able to fetch the GetFeatureInfo. [...] > [Fri Feb 20 15:18:05 2009].241000 msSDELayerGetShape(): SDE error. > SE_stream_fetch_row(): Invalid parameter value passed to function. > (-66) [Fri Feb 20 15:18:05 2009].241000 mapserv request processing > time (msLoadMap not incl.): 0.016s > [Fri Feb 20 15:18:05 2009].241000 msFreeMap(): freeing map at > 010B4548. [Fri Feb 20 15:18:05 2009].241000 > msSDELayerCloseConnection(): Closing connection for layer > BIOT_OCCR_TREES_AREA_SVW. [...] Best Stephan -- Stephan Holl | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 206 bytes Desc: not available URL: From rpha88 at gmail.com Mon Feb 23 09:21:00 2009 From: rpha88 at gmail.com (rohan phatak) Date: Mon, 23 Feb 2009 22:51:00 +0530 Subject: [mapserver-users] database connection bt. shape file and postgresql Message-ID: hello friends, I am connecting .dbf table of the shape file to postgersql in the given format but i cant get the role of "origin info" i don't understand what is the exact relation of that?? and the given code is right or wrong?? LAYER NAME "prov_bound" TYPE POLYGON STATUS DEFAULT DATA "prov.shp" CLASS NAME "Province" STYLE OUTLINECOLOR 120 120 120 COLOR 255 255 0 END END TEMPLATE "../htdocs/cgi-query-templates/prov.html" HEADER "../htdocs/cgi-query-templates/prov-header.html" FOOTER "../htdocs/cgi-query-templates/footer.html" JOIN NAME "test" TABLE "../data/lookup.dbf" FROM "ID" TO "IDENT" TYPE ONE-TO-ONE END END # layer -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at usace.army.mil Mon Feb 23 09:42:12 2009 From: Michael.Smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Mon, 23 Feb 2009 11:42:12 -0600 Subject: [mapserver-users] MS4W Mapserver 5.4 Beta 1 In-Reply-To: <49A2D1CC.8030504@gatewaygeomatics.com> References: <49A2D1CC.8030504@gatewaygeomatics.com> Message-ID: Jeff, I've downloaded the ms4w mapserver 5.4 beta 1 update but it appears that the Oracle 10g libmap.dll is compiled for a different version of gdal (v 1.5) than the version in ms4w 2.3.1 (v 1.6). It works fine with the non Oracle 10g libmap. Mike Mike Smith RSGIS Center ERDC - US Army Corps of Engineers Hanover, NH From phalguni.pal at gmail.com Mon Feb 23 09:47:27 2009 From: phalguni.pal at gmail.com (Phalguni Pal) Date: Mon, 23 Feb 2009 18:47:27 +0100 Subject: [mapserver-users] MapServer problem Message-ID: Hi Mapserver users, I am trying to display few points on the browser using Mapserver. I have created MySQL database and created connection with mapserver by the help of .ovf xml file. ------------------------------------------------- MYSQL:dispro,user=uuuuuu,password=pppp,host=192.170.1.100,port=3306,tables=STATION SELECT absnum, stlat, stlon, stflag FROM STATION wkbPoint -------------------------------------------------- When I run the command : ogrinfo /mnt/fritjof/wms/nsdb/con.ovf ogrinfo returns : ERROR 4: Update access not supported for VRT datasources. Had to open data source read-only. INFO: Open of `/mnt/fritjof/wms/nsdb/con.ovf' using driver `VRT' successful. 1: nsdb (Point) ..................................................................................................................................... Version details of mapserver and GDAL as follows: $ ./mapserv -v MapServer version 4.10.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG $ gdal-config --version 1.5.3 - Show quoted text - I have a map file con.map as follows: ------------------------------------------------------------- MAP NAME "MYSQL-TEST" EXTENT -180 -90 180 90 UNITS dd CONFIG "CPL_DEBUG" "ON" PROJECTION "init=epsg:4326" END SHAPEPATH "/mnt/fritjof/wms/nsdb" LAYER DEBUG ON METADATA "wms_title" "nsdb" "wms_srs" "EPSG:4326" "wms_extent" "-57.768 64.1842 -51.6283 64.3645" END NAME "stations" STATUS DEFAULT TYPE POINT CONNECTIONTYPE OGR CONNECTION "con.ovf" DATA "nsdb" PROJECTION "init=epsg:4326" END EXTENT -57.768 64.1842 -51.6283 64.3645 CLASS NAME "MyClass" STYLE SYMBOL 1 SIZE 15 COLOR 255 0 0 END END END END ........................................ And I have another html form from where I am trying to display in browser the Latitude and longitude points which are stored in database. ======================================================== MAPFILE REQUEST SERVICE VERSION LAYERS STYLES SRS BBOX WIDTH HEIGHT FORMAT ========================================= But Mapserver is displaying nothing and does not giving any error. Just it's showing a blank map. Could you tell me Why?? What's the problem may be happen?? Thanking you. Regards, Phalguni -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Mon Feb 23 10:09:36 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 23 Feb 2009 12:09:36 -0600 Subject: [mapserver-users] Status on ticket 2582? In-Reply-To: <1235343099022-2369505.post@n2.nabble.com> References: <1234821290361-2337548.post@n2.nabble.com> <4999E16F.30502@mapgears.com> <1235137197915-2358883.post@n2.nabble.com> <200902200907.55282.aboudreault@mapgears.com> <499EBA5E.4010004@gatewaygeomatics.com> <200902200931.38323.aboudreault@mapgears.com> <499EC67F.2060409@gatewaygeomatics.com> <1235168205544-2361593.post@n2.nabble.com> <499FB3EB.9050400@gmx.net> <1235211218284-2363221.post@n2.nabble.com> <49A15AFF.8060107@gmx.net> <1235312329092-2367635.post@n2.nabble.com> <1235312823870-2367659.post@n2.nabble.com> <49A1863F.2070809@mapgears.com> <49A1A2A4.1010809@gmx.net> <1235343099022-2369505.post@n2.nabble.com> Message-ID: <49A291FF.5157.008F.0@dnr.state.mn.us> Hi guys: I think we need a small RFC on this issue. The impacts are too broad to handle without a formal plan. Anyone care to take the lead? Steve >>> On 2/22/2009 at 4:51 PM, in message <1235343099022-2369505.post at n2.nabble.com>, paalkr wrote: > Hi! > > Good idea, this could even make the dump == false / true for OWS redundant. > Adding wfs_disable_request 'all' would effectively prevent wfs support. > Adding wms_disable_request 'GetFeatureinfo' would be the same as dump == > false on a WMS layer. > > I think the following situations are the most common where this "hiding" > functionality would be needed: > > 1) Adding a "copyright" statement to a map. Hiding the layer and setting > status to default will insure that the label is rendered regardless of > requested layers. > 2) Exposing different raster resolution layers as one "logical" layer. This > can be achieved in two different ways > a) adding all the raster layers (status == default) to a group as hidden > layers (the group will (should) then become hidden as well), then add a > "dummy" layer (which don't draws anything) with the same name as the group. > Requesting the dummy layer would actually also request the group because the > name is identical. > b) adding all the layers as hidden single layers (status == default) and use > the requires mechanism to set dependencies to a "dummy" layer. > 3) Hiding tileindex layers. Setting up the tileindex as a separate layer is > the only way of adding a tileindex to e.g PostgreSQL atm. > 4) Enable / expose some layers only for certain service types (wms, wfs, > sos, wcs) > 5) Limit the "users" ability to interact and change the map appearance. > > Anyway. I hope that either Martins patch is added to 5.4 or that we agree on > something similar, in time to reach the 5.4 release. > > Regards, > P?l Kristensen > > > Martin Kofahl wrote: >> >> Hi, >> it becomes apparent that we try to solve different issues with hiding, >> ignoring and so on. We should try to find an implementation which also >> solves related tickets but is open for future requirements. >> >> So couldn't we use a metadata like [service]_disable_request which lists >> all request type (per service) MapServer shouldn't support for a layer? >> Maybe expanded with the request type 'all'. Possible examples: >> >> wms_disable_request 'all' >> wms_disable_request 'getcapabilities getfeatureinfo' >> >> This should solve tickets 337, 1952, 2582. >> What do you think? >> >> Martin >> >> > > -- > View this message in context: > http://n2.nabble.com/Status-on-ticket-2582--tp2337548p2369505.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Mon Feb 23 10:34:30 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 23 Feb 2009 13:34:30 -0500 Subject: [mapserver-users] Re: MS4W Mapserver 5.4 Beta 1 In-Reply-To: References: <49A2D1CC.8030504@gatewaygeomatics.com> Message-ID: <49A2EC36.6010803@gatewaygeomatics.com> Smith, Michael ERDC-CRREL-NH wrote: > Jeff, > > I've downloaded the ms4w mapserver 5.4 beta 1 update but it appears that the > Oracle 10g libmap.dll is compiled for a different version of gdal (v 1.5) > than the version in ms4w 2.3.1 (v 1.6). It works fine with the non Oracle 10g > libmap. > > Mike > Good catch Mike (I've verified the problem). I've re-uploaded the beta1 package with the proper dll, and if you just need that Oracle dll you can grab it temporarily at: http://www.gatewaygeomatics.com/dl/buildkit/libmap.dll -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From aboudreault at mapgears.com Mon Feb 23 10:37:16 2009 From: aboudreault at mapgears.com (Alan Boudreault) Date: Mon, 23 Feb 2009 13:37:16 -0500 Subject: [mapserver-users] Status on ticket 2582? In-Reply-To: <49A291FF.5157.008F.0@dnr.state.mn.us> References: <1234821290361-2337548.post@n2.nabble.com> <1235343099022-2369505.post@n2.nabble.com> <49A291FF.5157.008F.0@dnr.state.mn.us> Message-ID: <200902231337.16424.aboudreault@mapgears.com> I'll make the RFC in the next days. Alan On February 23, 2009 01:09:36 pm Steve Lime wrote: > Hi guys: I think we need a small RFC on this issue. The impacts are too > broad to handle > without a formal plan. Anyone care to take the lead? > > Steve > > >>> On 2/22/2009 at 4:51 PM, in message > > <1235343099022-2369505.post at n2.nabble.com>, > > paalkr wrote: > > Hi! > > > > Good idea, this could even make the dump == false / true for OWS > > redundant. > > > Adding wfs_disable_request 'all' would effectively prevent wfs > > support. > > > Adding wms_disable_request 'GetFeatureinfo' would be the same as dump > > == > > > false on a WMS layer. > > > > I think the following situations are the most common where this > > "hiding" > > > functionality would be needed: > > > > 1) Adding a "copyright" statement to a map. Hiding the layer and > > setting > > > status to default will insure that the label is rendered regardless > > of > > > requested layers. > > 2) Exposing different raster resolution layers as one "logical" > > layer. This > > > can be achieved in two different ways > > a) adding all the raster layers (status == default) to a group as > > hidden > > > layers (the group will (should) then become hidden as well), then add > > a > > > "dummy" layer (which don't draws anything) with the same name as the > > group. > > > Requesting the dummy layer would actually also request the group > > because the > > > name is identical. > > b) adding all the layers as hidden single layers (status == default) > > and use > > > the requires mechanism to set dependencies to a "dummy" layer. > > 3) Hiding tileindex layers. Setting up the tileindex as a separate > > layer is > > > the only way of adding a tileindex to e.g PostgreSQL atm. > > 4) Enable / expose some layers only for certain service types (wms, > > wfs, > > > sos, wcs) > > 5) Limit the "users" ability to interact and change the map > > appearance. > > > Anyway. I hope that either Martins patch is added to 5.4 or that we > > agree on > > > something similar, in time to reach the 5.4 release. > > > > Regards, > > P?l Kristensen > > > > Martin Kofahl wrote: > >> Hi, > >> it becomes apparent that we try to solve different issues with > > hiding, > > >> ignoring and so on. We should try to find an implementation which > > also > > >> solves related tickets but is open for future requirements. > >> > >> So couldn't we use a metadata like [service]_disable_request which > > lists > > >> all request type (per service) MapServer shouldn't support for a > > layer? > > >> Maybe expanded with the request type 'all'. Possible examples: > >> > >> wms_disable_request 'all' > >> wms_disable_request 'getcapabilities getfeatureinfo' > >> > >> This should solve tickets 337, 1952, 2582. > >> What do you think? > >> > >> Martin > > > > -- > > View this message in context: > > http://n2.nabble.com/Status-on-ticket-2582--tp2337548p2369505.html > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Tom.Kralidis at ec.gc.ca Mon Feb 23 10:48:35 2009 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Mon, 23 Feb 2009 13:48:35 -0500 Subject: [mapserver-users] MapServer problem In-Reply-To: References: Message-ID: > Hi Mapserver users, > > > I am trying to display few points on the browser using > Mapserver. I have created MySQL database and created > connection with mapserver by the help of .ovf xml file. > > > ------------------------------------------------- > > > > > > > > MYSQL:dispro,user=uuuuuu,password=pppp,host=192 > .170.1.100,port=3306,tables=STATION > > SELECT absnum, stlat, stlon, stflag FROM > STATION > > wkbPoint > > y="stlat"/> > > > > > > -------------------------------------------------- > > > > > When I run the command : > ogrinfo /mnt/fritjof/wms/nsdb/con.ovf > > ogrinfo returns : > > > > ERROR 4: Update access not supported for VRT datasources. > > Had to open data source read-only. > > INFO: Open of `/mnt/fritjof/wms/nsdb/con.ovf' > > using driver `VRT' successful. > > 1: nsdb (Point) > .............................................................. > .............................................................. > ......... > > Version details of mapserver and GDAL as follows: > > $ ./mapserv -v > MapServer version 4.10.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > OUTPUT=WBMP OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT > > > SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=EPPL7 INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG > > > $ gdal-config --version > 1.5.3 > - Show quoted text - > > I have a map file con.map as follows: > ------------------------------------------------------------- > MAP > NAME "MYSQL-TEST" > EXTENT -180 -90 180 90 > UNITS dd > CONFIG "CPL_DEBUG" "ON" > > PROJECTION > "init=epsg:4326" > END > > SHAPEPATH "/mnt/fritjof/wms/nsdb" > > LAYER > DEBUG ON > METADATA > "wms_title" "nsdb" > "wms_srs" "EPSG:4326" > "wms_extent" "-57.768 64.1842 -51.6283 64.3645" > END > NAME "stations" > STATUS DEFAULT > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "con.ovf" > DATA "nsdb" > PROJECTION > "init=epsg:4326" > END > EXTENT -57.768 64.1842 -51.6283 64.3645 > CLASS > NAME "MyClass" > STYLE > SYMBOL 1 > SIZE 15 > COLOR 255 0 0 > END > END > END > > END You're pointing to a SYMBOL that doesn't exist. Either comment that out, or make sure your mapfile references a SYMBOLSET file. ..Tom > ........................................ > > And I have another html form from where I am trying to > display in browser the Latitude and longitude points which > are stored in database. > > > ======================================================== > > > MAPFILE > REQUEST > SERVICE > VERSION > LAYERS > STYLES > SRS > BBOX > WIDTH > HEIGHT > FORMAT > > > > > > > > > > ========================================= > > But Mapserver is displaying nothing and does not giving any > error. Just it's showing a blank map. Could you tell me Why?? > What's the problem may be happen?? > Thanking you. > Regards, > Phalguni > > From Steve.Lime at dnr.state.mn.us Mon Feb 23 10:48:56 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 23 Feb 2009 12:48:56 -0600 Subject: [mapserver-users] FILTER In-Reply-To: References: Message-ID: <49A29B38.5157.008F.0@dnr.state.mn.us> You can use runtime substitutions to change values within a FILTER as you go. For example your FILTER could be written like so: FILTER ("multimedia='[multimedia]' and seats >= [nseats] and Sound= '[sound]') Then (assuming you're using the CGI interface) you could pass in variables named multimedia, nseats and sound with values defined by the user in an HTML form. You should also define validation expressions on these variables to guard against unintentional SQL being submitted to postgis. Within the layer metadata you'd do the following: METADATA 'multimedia_validation_string' '^yes|no$' 'sound_validation_string' '^yes|no$' 'nseats_validation_string' '^[0-9]{1,2}$' ... more metadata ... END The validation strings are regular expressions that are applied against the appropriate variable value before being added to the FILTER. The first two limit the value of multimedia and sound to yes or no. The third limits the value for nseats to a 2 digit integer. Steve >>> On 2/19/2009 at 10:34 AM, in message , "A.Pratheepan" wrote: > Hi > i'm New one to map server. I'm Using PostgreSQL 8.3 with pgAdminIII and post > GIS. Upto now I've populated my database in post GIS and Map also working > succesfully. Now my problem is Filter. Filter is working without any problem > under my layer(lecture_hall layer). Ex FILTER ("multimedia='yes' and seats >>= 95 and Sound= 'yes')" It gives the out put in the map which mean shows > in the out put the condition satisfied lecture halls. Now i want to input > these filter condition via the user interface. I Used html page. But i'm > failing. Pls Send me any ideas to solve this problem. > I've attached my map file & html file > > Please help me.............. From valemunoz at gmail.com Mon Feb 23 10:53:51 2009 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Mon, 23 Feb 2009 15:53:51 -0300 Subject: [mapserver-users] copyright Message-ID: <4b56aefe0902231053y471213a3l248002d858890c00@mail.gmail.com> Hi do you know how can i put copyright in my map?, like google :) thanks,RG -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Mon Feb 23 11:28:22 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Mon, 23 Feb 2009 13:28:22 -0600 Subject: [mapserver-users] copyright In-Reply-To: <4b56aefe0902231053y471213a3l248002d858890c00@mail.gmail.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA22C@s-sp22.pca.state.mn.us> This might help: http://mapserver.org/faq.html#how-do-i-add-a-copyright-notice-on-the-corner-of-my-map -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Valeria Mu?oz Sent: Monday, February 23, 2009 12:54 PM To: mapserver-users Subject: [mapserver-users] copyright Hi do you know how can i put copyright in my map?, like google :) thanks,RG -------------- next part -------------- An HTML attachment was scrubbed... URL: From valemunoz at gmail.com Mon Feb 23 11:51:39 2009 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Mon, 23 Feb 2009 16:51:39 -0300 Subject: [mapserver-users] copyright In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA22C@s-sp22.pca.state.mn.us> References: <4b56aefe0902231053y471213a3l248002d858890c00@mail.gmail.com> <6246727221874A4FB8D3F9BBC37D9BD5056DA22C@s-sp22.pca.state.mn.us> Message-ID: <4b56aefe0902231151l5d5ac1b7gcb17672b5c15e42f@mail.gmail.com> Hi david, I check this example, but in my map the copyright multiply by 4, should be a problem of point? RG 2009/2/23 Fawcett, David > This might help: > http://mapserver.org/faq.html#how-do-i-add-a-copyright-notice-on-the-corner-of-my-map > > -----Original Message----- > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Valeria Mu?oz > *Sent:* Monday, February 23, 2009 12:54 PM > *To:* mapserver-users > *Subject:* [mapserver-users] copyright > > Hi > > do you know how can i put copyright in my map?, like google :) > thanks,RG > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From valemunoz at gmail.com Mon Feb 23 11:56:28 2009 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Mon, 23 Feb 2009 16:56:28 -0300 Subject: [mapserver-users] copyright In-Reply-To: <49A2FEA8.5040104@osgis.nl> References: <4b56aefe0902231053y471213a3l248002d858890c00@mail.gmail.com> <6246727221874A4FB8D3F9BBC37D9BD5056DA22C@s-sp22.pca.state.mn.us> <4b56aefe0902231151l5d5ac1b7gcb17672b5c15e42f@mail.gmail.com> <49A2FEA8.5040104@osgis.nl> Message-ID: <4b56aefe0902231156m28a2f4c6y7795054dcfc42691@mail.gmail.com> HI Bart yes i use openlayer 2009/2/23 Bart van den Eijnden (OSGIS) > Are you using a tiled client like OpenLayers? > > Bart > > Valeria Mu?oz wrote: > >> Hi david, >> I check this example, but in my map the copyright multiply by 4, should >> be a problem of point? >> RG >> 2009/2/23 Fawcett, David > David.Fawcett at state.mn.us>> >> >> This might help: >> http://mapserver.org/faq.html#how-do-i-add-a-copyright-notice-on-the-corner-of-my-map >> >> -----Original Message----- >> *From:* mapserver-users-bounces at lists.osgeo.org >> >> [mailto:mapserver-users-bounces at lists.osgeo.org >> ] *On Behalf >> Of *Valeria Mu?oz >> *Sent:* Monday, February 23, 2009 12:54 PM >> *To:* mapserver-users >> *Subject:* [mapserver-users] copyright >> >> Hi >> do you know how can i put copyright in my map?, like >> google :) >> thanks,RG >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > bartvde at osgis.nl > http://www.osgis.nl > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at osgis.nl Mon Feb 23 12:10:12 2009 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Mon, 23 Feb 2009 21:10:12 +0100 Subject: [mapserver-users] copyright In-Reply-To: <4b56aefe0902231156m28a2f4c6y7795054dcfc42691@mail.gmail.com> References: <4b56aefe0902231053y471213a3l248002d858890c00@mail.gmail.com> <6246727221874A4FB8D3F9BBC37D9BD5056DA22C@s-sp22.pca.state.mn.us> <4b56aefe0902231151l5d5ac1b7gcb17672b5c15e42f@mail.gmail.com> <49A2FEA8.5040104@osgis.nl> <4b56aefe0902231156m28a2f4c6y7795054dcfc42691@mail.gmail.com> Message-ID: <49A302A4.6020306@osgis.nl> Use {singleTile: true} on your layer options. Best regards, Bart Valeria Mu?oz wrote: > HI Bart > > yes i use openlayer > > 2009/2/23 Bart van den Eijnden (OSGIS) > > > Are you using a tiled client like OpenLayers? > > Bart > > Valeria Mu?oz wrote: > > Hi david, > I check this example, but in my map the copyright multiply by > 4, should be a problem of point? > RG > 2009/2/23 Fawcett, David > >> > > > This might help: > http://mapserver.org/faq.html#how-do-i-add-a-copyright-notice-on-the-corner-of-my-map > > -----Original Message----- > *From:* mapserver-users-bounces at lists.osgeo.org > > > > [mailto:mapserver-users-bounces at lists.osgeo.org > > >] *On Behalf > Of *Valeria Mu?oz > *Sent:* Monday, February 23, 2009 12:54 PM > *To:* mapserver-users > *Subject:* [mapserver-users] copyright > > Hi > do you know how can i put copyright in my > map?, like google :) > thanks,RG > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > bartvde at osgis.nl > http://www.osgis.nl > > -- Bart van den Eijnden OSGIS, Open Source GIS bartvde at osgis.nl http://www.osgis.nl From bartvde at osgis.nl Mon Feb 23 11:53:12 2009 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Mon, 23 Feb 2009 20:53:12 +0100 Subject: [mapserver-users] copyright In-Reply-To: <4b56aefe0902231151l5d5ac1b7gcb17672b5c15e42f@mail.gmail.com> References: <4b56aefe0902231053y471213a3l248002d858890c00@mail.gmail.com> <6246727221874A4FB8D3F9BBC37D9BD5056DA22C@s-sp22.pca.state.mn.us> <4b56aefe0902231151l5d5ac1b7gcb17672b5c15e42f@mail.gmail.com> Message-ID: <49A2FEA8.5040104@osgis.nl> Are you using a tiled client like OpenLayers? Bart Valeria Mu?oz wrote: > Hi david, > > I check this example, but in my map the copyright multiply by 4, > should be a problem of point? > > RG > 2009/2/23 Fawcett, David > > > This might help: > http://mapserver.org/faq.html#how-do-i-add-a-copyright-notice-on-the-corner-of-my-map > > -----Original Message----- > *From:* mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org > ] *On Behalf > Of *Valeria Mu?oz > *Sent:* Monday, February 23, 2009 12:54 PM > *To:* mapserver-users > *Subject:* [mapserver-users] copyright > > Hi > > do you know how can i put copyright in my map?, like google :) > thanks,RG > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Bart van den Eijnden OSGIS, Open Source GIS bartvde at osgis.nl http://www.osgis.nl From valemunoz at gmail.com Mon Feb 23 13:06:56 2009 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Mon, 23 Feb 2009 18:06:56 -0300 Subject: [mapserver-users] copyright In-Reply-To: <49A302A4.6020306@osgis.nl> References: <4b56aefe0902231053y471213a3l248002d858890c00@mail.gmail.com> <6246727221874A4FB8D3F9BBC37D9BD5056DA22C@s-sp22.pca.state.mn.us> <4b56aefe0902231151l5d5ac1b7gcb17672b5c15e42f@mail.gmail.com> <49A2FEA8.5040104@osgis.nl> <4b56aefe0902231156m28a2f4c6y7795054dcfc42691@mail.gmail.com> <49A302A4.6020306@osgis.nl> Message-ID: <4b56aefe0902231306u6ef8e7f5r8c15d585b73d67c4@mail.gmail.com> thanks!! Bart. 2009/2/23 Bart van den Eijnden (OSGIS) > Use {singleTile: true} on your layer options. > > Best regards, > Bart > > Valeria Mu?oz wrote: > >> HI Bart >> yes i use openlayer >> >> 2009/2/23 Bart van den Eijnden (OSGIS) > bartvde at osgis.nl>> >> >> Are you using a tiled client like OpenLayers? >> >> Bart >> >> Valeria Mu?oz wrote: >> >> Hi david, >> I check this example, but in my map the copyright multiply by >> 4, should be a problem of point? >> RG >> 2009/2/23 Fawcett, David > >> > >> >> >> >> This might help: >> http://mapserver.org/faq.html#how-do-i-add-a-copyright-notice-on-the-corner-of-my-map >> >> -----Original Message----- >> *From:* mapserver-users-bounces at lists.osgeo.org >> >> > > >> [mailto:mapserver-users-bounces at lists.osgeo.org >> >> > >] *On Behalf >> Of *Valeria Mu?oz >> *Sent:* Monday, February 23, 2009 12:54 PM >> *To:* mapserver-users >> *Subject:* [mapserver-users] copyright >> >> Hi >> do you know how can i put copyright in my >> map?, like google :) >> thanks,RG >> >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> -- Bart van den Eijnden >> OSGIS, Open Source GIS >> bartvde at osgis.nl >> http://www.osgis.nl >> >> >> > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > bartvde at osgis.nl > http://www.osgis.nl > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pal.kristensen at statkart.no Mon Feb 23 14:40:50 2009 From: pal.kristensen at statkart.no (paalkr) Date: Mon, 23 Feb 2009 14:40:50 -0800 (PST) Subject: [mapserver-users] Status on ticket 2582? In-Reply-To: <200902231337.16424.aboudreault@mapgears.com> References: <1234821290361-2337548.post@n2.nabble.com> <4999E16F.30502@mapgears.com> <1235137197915-2358883.post@n2.nabble.com> <200902200907.55282.aboudreault@mapgears.com> <499EBA5E.4010004@gatewaygeomatics.com> <200902200931.38323.aboudreault@mapgears.com> <499EC67F.2060409@gatewaygeomatics.com> <1235168205544-2361593.post@n2.nabble.com> <499FB3EB.9050400@gmx.net> <1235211218284-2363221.post@n2.nabble.com> <49A15AFF.8060107@gmx.net> <1235312329092-2367635.post@n2.nabble.com> <1235312823870-2367659.post@n2.nabble.com> <49A1863F.2070809@mapgears.com> <49A1A2A4.1010809@gmx.net> <1235343099022-2369505.post@n2.nabble.com> <49A291FF.5157.008F.0@dnr.state.mn.us> <200902231337.16424.aboudreault@mapgears.com> Message-ID: <1235428850752-2374868.post@n2.nabble.com> Great! Regards, P?l Kristensen Alan Boudreault wrote: > > I'll make the RFC in the next days. > > Alan > > On February 23, 2009 01:09:36 pm Steve Lime wrote: >> Hi guys: I think we need a small RFC on this issue. The impacts are too >> broad to handle >> without a formal plan. Anyone care to take the lead? >> >> Steve >> >> >>> On 2/22/2009 at 4:51 PM, in message >> >> <1235343099022-2369505.post at n2.nabble.com>, >> >> paalkr wrote: >> > Hi! >> > >> > Good idea, this could even make the dump == false / true for OWS >> >> redundant. >> >> > Adding wfs_disable_request 'all' would effectively prevent wfs >> >> support. >> >> > Adding wms_disable_request 'GetFeatureinfo' would be the same as dump >> >> == >> >> > false on a WMS layer. >> > >> > I think the following situations are the most common where this >> >> "hiding" >> >> > functionality would be needed: >> > >> > 1) Adding a "copyright" statement to a map. Hiding the layer and >> >> setting >> >> > status to default will insure that the label is rendered regardless >> >> of >> >> > requested layers. >> > 2) Exposing different raster resolution layers as one "logical" >> >> layer. This >> >> > can be achieved in two different ways >> > a) adding all the raster layers (status == default) to a group as >> >> hidden >> >> > layers (the group will (should) then become hidden as well), then add >> >> a >> >> > "dummy" layer (which don't draws anything) with the same name as the >> >> group. >> >> > Requesting the dummy layer would actually also request the group >> >> because the >> >> > name is identical. >> > b) adding all the layers as hidden single layers (status == default) >> >> and use >> >> > the requires mechanism to set dependencies to a "dummy" layer. >> > 3) Hiding tileindex layers. Setting up the tileindex as a separate >> >> layer is >> >> > the only way of adding a tileindex to e.g PostgreSQL atm. >> > 4) Enable / expose some layers only for certain service types (wms, >> >> wfs, >> >> > sos, wcs) >> > 5) Limit the "users" ability to interact and change the map >> >> appearance. >> >> > Anyway. I hope that either Martins patch is added to 5.4 or that we >> >> agree on >> >> > something similar, in time to reach the 5.4 release. >> > >> > Regards, >> > P?l Kristensen >> > >> > Martin Kofahl wrote: >> >> Hi, >> >> it becomes apparent that we try to solve different issues with >> >> hiding, >> >> >> ignoring and so on. We should try to find an implementation which >> >> also >> >> >> solves related tickets but is open for future requirements. >> >> >> >> So couldn't we use a metadata like [service]_disable_request which >> >> lists >> >> >> all request type (per service) MapServer shouldn't support for a >> >> layer? >> >> >> Maybe expanded with the request type 'all'. Possible examples: >> >> >> >> wms_disable_request 'all' >> >> wms_disable_request 'getcapabilities getfeatureinfo' >> >> >> >> This should solve tickets 337, 1952, 2582. >> >> What do you think? >> >> >> >> Martin >> > >> > -- >> > View this message in context: >> > http://n2.nabble.com/Status-on-ticket-2582--tp2337548p2369505.html >> > Sent from the Mapserver - User mailing list archive at Nabble.com. >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/Status-on-ticket-2582--tp2337548p2374868.html Sent from the Mapserver - User mailing list archive at Nabble.com. From kmanoj-pg7 at iiitmk.ac.in Mon Feb 23 21:45:44 2009 From: kmanoj-pg7 at iiitmk.ac.in (kmanoj-pg7 kmanoj-pg7) Date: Tue, 24 Feb 2009 11:15:44 +0530 Subject: [mapserver-users] showing blank page Message-ID: <9ab9b8cf0902232145g37c0ed5cp3f54e8743df12bb9@mail.gmail.com> Dear users, I am following the tutorial mapserver 5.x to get a practice in the mapserver. i successfully tested the examples given in the tutorial and got succeed too... now i am trying by my own, means with my own shapefiles. when i called the following link... http://localhost/cgi-bin/mapserv?map=/var/www/html/mapfiles/sampletest/htdocs/kerala.map&layer=kerala&mode=map it showing blank page instead of image of my map........ what could be a problem...... i couldn't puzzled it out..... This is my map file for your perusal Map IMAGETYPE PNG NAME "Gods own country" SIZE 400 300 IMAGECOLOR 255 255 255 EXTENT -97.238976 41.619778 -82.122902 49.385620 SHAPEPATH "/var/www/html/mapfiles/sampletest/data" LAYER NAME kerala TYPE POLYGON STATUS ON DATA parl_04 CLASS NAME "Greenary Land" STYLE COLOR 232 232 232 OUTLINECOLOR 32 32 32 END END END END can anyone help me out..... Thanks kapilmanoj -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Eichner at sid.sachsen.de Tue Feb 24 00:45:15 2009 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Tue, 24 Feb 2009 09:45:15 +0100 Subject: [mapserver-users] MapServer with RHEL5 Message-ID: <4FBC13C3CB49244088DD095B32B5D4CD0ABE21@KS-EVS1.smi.sachsen.de> Hi guys, we're using MapServer 5.2 with RedHat Enterprise Linux 5, Update 3. The necessary packages (like gdal) are inserted from Fedora Core 6. That works but the packages are somewhat outdated. So I tried to use those from the EPEL channel instead but without success. After compiling MS it segfaults because of the same problem discussed earlier on the list with a conflict between librx headers and libraries (the segfault can be avoided adding some bytes to sizeof(regex_t) in ms_regcomp() but with the effect of ms_regexec() returning wrong results). The servers are fed by a satellite server and have no direct access to a separate repo. So does anyone use MS with RHEL5 and has a nice solution for that? My personal solution would be to use Debian as on my test server (where I never had problems compiling and using MS) but that's not an option for the productive systems here :( Regards, Andreas Eichner From Christophe.Ambrosino at geo-soft.fr Tue Feb 24 05:00:09 2009 From: Christophe.Ambrosino at geo-soft.fr (Christophe AMBROSINO) Date: Tue, 24 Feb 2009 14:00:09 +0100 Subject: [mapserver-users] getBytes: General error message. Failed to get image buffer; msSaveImageBufferGD(): Image handling error. Unknown output image type driver Message-ID: <49A3EF59.7050506@geo-soft.fr> Hi all ! I get an error that occurs _randomly :_ sometimes I get : getBytes: General error message. Failed to get image buffer;msSaveImageBufferGD(): Image handling error. Unknown output image type driver:* gd/EG*. or something i get : getBytes: General error message. Failed to get image buffer;msSaveImageBufferGD(): Image handling error. Unknown output image type driver:* gd/PEG*. on a "*createLegendIcon*" instruction here my mapfile OUTPUTFORMAT OUTPUTFORMAT NAME "AGGA" MIMETYPE "image/jpeg" DRIVER "AGG/JPEG" EXTENSION "jpg" IMAGEMODE "RGB" TRANSPARENT FALSE FORMATOPTION "INTERLACE=ON" FORMATOPTION "QUALITY=80" END I use mapscript for java and tomcat server 5.5.27 Has anyone ever encountered this problem ? thank you for your possible answers christophe -------------- next part -------------- A non-text attachment was scrubbed... Name: Christophe_Ambrosino.vcf Type: text/x-vcard Size: 481 bytes Desc: not available URL: From adube at mapgears.com Tue Feb 24 05:10:57 2009 From: adube at mapgears.com (Alexandre Dube) Date: Tue, 24 Feb 2009 08:10:57 -0500 Subject: [mapserver-users] showing blank page In-Reply-To: <9ab9b8cf0902232145g37c0ed5cp3f54e8743df12bb9@mail.gmail.com> References: <9ab9b8cf0902232145g37c0ed5cp3f54e8743df12bb9@mail.gmail.com> Message-ID: <49A3F1E1.1080007@mapgears.com> Hi, Put this in your MAP section : CONFIG MS_ERRORFILE "/tmp/mymapfileerror.log" and this in your LAYER section : DEBUG 5 Load your url and go see what the error log has to say. You can also check your apache and error logs. Regards, Alexandre kmanoj-pg7 kmanoj-pg7 wrote: > Dear users, > > I am following the tutorial mapserver 5.x to get a practice in the > mapserver. i successfully tested the examples given in the tutorial > and got succeed too... > > now i am trying by my own, means with my own shapefiles. when i called > the following link... > > > http://localhost/cgi-bin/mapserv?map=/var/www/html/mapfiles/sampletest/htdocs/kerala.map&layer=kerala&mode=map > > > > it showing blank page instead of image of my map........ what could > be a problem...... i couldn't puzzled it out..... > > This is my map file for your perusal > > Map > IMAGETYPE PNG > NAME "Gods own country" > SIZE 400 300 > IMAGECOLOR 255 255 255 > EXTENT -97.238976 41.619778 -82.122902 49.385620 > SHAPEPATH "/var/www/html/mapfiles/sampletest/data" > > > LAYER > NAME kerala > TYPE POLYGON > STATUS ON > DATA parl_04 > CLASS > NAME "Greenary Land" > STYLE > COLOR 232 232 232 > OUTLINECOLOR 32 32 32 > END > END > END > END > > can anyone help me out..... > > > Thanks > > kapilmanoj > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alexandre Dub? Mapgears www.mapgears.com From peter.hopfgartner at r3-gis.com Tue Feb 24 06:16:58 2009 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Tue, 24 Feb 2009 15:16:58 +0100 Subject: [mapserver-users] MapServer with RHEL5 In-Reply-To: <4FBC13C3CB49244088DD095B32B5D4CD0ABE21@KS-EVS1.smi.sachsen.de> References: <4FBC13C3CB49244088DD095B32B5D4CD0ABE21@KS-EVS1.smi.sachsen.de> Message-ID: <49A4015A.4060800@r3-gis.com> Eichner, Andreas - SID-NLKM wrote: > Hi guys, > > we're using MapServer 5.2 with RedHat Enterprise Linux 5, Update 3. The > necessary packages (like gdal) are inserted from Fedora Core 6. That > works but the packages are somewhat outdated. So I tried to use those > from the EPEL channel instead but without success. After compiling MS it > segfaults because of the same problem discussed earlier on the list with > a conflict between librx headers and libraries (the segfault can be > avoided adding some bytes to sizeof(regex_t) in ms_regcomp() but with > the effect of ms_regexec() returning wrong results). > The servers are fed by a satellite server and have no direct access to a > separate repo. So does anyone use MS with RHEL5 and has a nice solution > for that? My personal solution would be to use Debian as on my test > server (where I never had problems compiling and using MS) but that's > not an option for the productive systems here :( > > Regards, > Andreas Eichner > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > Hi Andreas, we use CentOS 5 and Red Hat 4/5 on all our servers. We are using the EPEL packages on some of our servers, but mapserver is still at 4.10, there. Anyway, we did not have real problems with that. On most of our servers we use MapServer and PostGIS/GEOS with current upstream versions. Usually, I take packages from Fedora 9/10 and replace the source archive with the most current upstream version. Furthermore we do compile our own GDAL package, sonce we need ECW support. Needless to say, we do not have problems with those packages, they fit well our needs. I can give you the SPEC file or the compiled binaries for CentOS 5.2. If you want to be sure they work for RHEL 5.3, wait until the end of the week, I'm working on that these days. Regards, Peter -- Dott. Peter Hopfgartner R3 GIS Srl - GmbH Via Johann Kravogl-Str. 2 I-39012 Meran/Merano (BZ) Email: peter.hopfgartner at r3-gis.com Tel. : +39 0473 494949 Fax : +39 0473 069902 www : http://www.r3-gis.com From peter.hopfgartner at r3-gis.com Tue Feb 24 07:31:49 2009 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Tue, 24 Feb 2009 16:31:49 +0100 Subject: AW: [mapserver-users] MapServer with RHEL5 In-Reply-To: <4FBC13C3CB49244088DD095B32B5D4CD0ABE23@KS-EVS1.smi.sachsen.de> References: <4FBC13C3CB49244088DD095B32B5D4CD0ABE21@KS-EVS1.smi.sachsen.de> <49A3D645.3030508@r3-gis.com> <4FBC13C3CB49244088DD095B32B5D4CD0ABE23@KS-EVS1.smi.sachsen.de> Message-ID: <49A412E5.4060203@r3-gis.com> Eichner, Andreas - SID-NLKM wrote: > Hallo Peter, > > I'm wondering how you get this going. Tried gdal from FC9 and FC10 with the same result: > > # LC_ALL=C rpm -i gdal-1.5.3-1.fc9.i386.rpm > warning: gdal-1.5.3-1.fc9.i386.rpm: Header V3 DSA signature: NOKEY, key ID 6df2196f > error: Failed dependencies: > libc.so.6(GLIBC_2.7) is needed by gdal-1.5.3-1.fc9.i386 > libcrypto.so.7 is needed by gdal-1.5.3-1.fc9.i386 > libcurl.so.4 is needed by gdal-1.5.3-1.fc9.i386 > libdap.so.8 is needed by gdal-1.5.3-1.fc9.i386 > libdapclient.so.2 is needed by gdal-1.5.3-1.fc9.i386 > libdapserver.so.4 is needed by gdal-1.5.3-1.fc9.i386 > libexpat.so.1 is needed by gdal-1.5.3-1.fc9.i386 > libgrass_I.so.6.3 is needed by gdal-1.5.3-1.fc9.i386 > libgrass_datetime.so.6.3 is needed by gdal-1.5.3-1.fc9.i386 > libgrass_dbmibase.so.6.3 is needed by gdal-1.5.3-1.fc9.i386 > libgrass_dbmiclient.so.6.3 is needed by gdal-1.5.3-1.fc9.i386 > libgrass_dgl.so.6.3 is needed by gdal-1.5.3-1.fc9.i386 > libgrass_dig2.so.6.3 is needed by gdal-1.5.3-1.fc9.i386 > libgrass_gis.so.6.3 is needed by gdal-1.5.3-1.fc9.i386 > libgrass_gmath.so.6.3 is needed by gdal-1.5.3-1.fc9.i386 > libgrass_gproj.so.6.3 is needed by gdal-1.5.3-1.fc9.i386 > libgrass_linkm.so.6.3 is needed by gdal-1.5.3-1.fc9.i386 > libgrass_rtree.so.6.3 is needed by gdal-1.5.3-1.fc9.i386 > libgrass_vask.so.6.3 is needed by gdal-1.5.3-1.fc9.i386 > libgrass_vect.so.6.3 is needed by gdal-1.5.3-1.fc9.i386 > libhdf5.so.5 is needed by gdal-1.5.3-1.fc9.i386 > libpq.so.5 is needed by gdal-1.5.3-1.fc9.i386 > libssl.so.7 is needed by gdal-1.5.3-1.fc9.i386 > libstdc++.so.6(GLIBCXX_3.4.9) is needed by gdal-1.5.3-1.fc9.i386 > libxerces-c.so.28 is needed by gdal-1.5.3-1.fc9.i386 > > So it looks I have to use FC's libc and libstdc++ but that usually results in installing a completely new system. Aren't there backports for RHEL5 anywhere? RHEL and RPM really drive me crazy... > Indeed, I took the GDAL from EPEL. It is still 1.4, but compiles fine. We do not depend, at this tie, on anything in GDAL 1.5 or 1.6. GDAL is, IMHO, the most difficult dependency. If my memory is ok, then I had to edit the SPEC file for GDAl, in order to disable the GRASS dependency. Peter > -----Urspr?ngliche Nachricht----- > On most of our servers we use MapServer and PostGIS/GEOS with current > upstream versions. Usually, I take packages from Fedora 9/10 and replace > the source archive with the most current upstream version. Furthermore > we do compile our own GDAL package, sonce we need ECW support. > > Needless to say, we do not have problems with those packages, they fit > well our needs. I can gave you the SPEC file or the compiled binaries > for CentOS 5.2 + PostgreSQL/PHP/HTTPD from CentOS testing on x86_64. > > If you want to be sure they work for RHEL 5.3, wait until the end of the > week, I'm working on that these days. > > Regards, > > Peter > > -- Dott. Peter Hopfgartner R3 GIS Srl - GmbH Via Johann Kravogl-Str. 2 I-39012 Meran/Merano (BZ) Email: peter.hopfgartner at r3-gis.com Tel. : +39 0473 494949 Fax : +39 0473 069902 www : http://www.r3-gis.com From randre at gmail.com Tue Feb 24 14:44:36 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Tue, 24 Feb 2009 14:44:36 -0800 Subject: [mapserver-users] Python mapscript: inline point feature How To Message-ID: <9c2015090902241444l2289c7dcr329309199e054b37@mail.gmail.com> Hi Everyone, A little while ago, Brent Fraser sent me a mapfile snippet that could be used to add a Title to a map using pixel coordinate space. It looked like this: LAYER NAME title STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 4 396 END TEXT 'This is a Great Map!' END CLASS LABEL TYPE TRUETYPE FONT arial SIZE 8 ANTIALIAS COLOR 255 255 255 POSITION UR END END END This works well, but I would like to override the TEXT value using mapscript to create new labels that are based on the result of PostGIS queries. I've been picking apart various examples on the web, but can't seem to come up with the magic sauce. I can figure out how to grab the layer ByName, but then I'm not quite sure what I need to do in order to access the feature and override the TEXT. Can someone give me a clue? Thanks, Roger -------------- next part -------------- An HTML attachment was scrubbed... URL: From randre at gmail.com Tue Feb 24 15:53:39 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Tue, 24 Feb 2009 15:53:39 -0800 Subject: [mapserver-users] Re: Python mapscript: inline point feature How To In-Reply-To: <9c2015090902241444l2289c7dcr329309199e054b37@mail.gmail.com> References: <9c2015090902241444l2289c7dcr329309199e054b37@mail.gmail.com> Message-ID: <9c2015090902241553q2bd5ef1bg19a90cc1bb5388b@mail.gmail.com> Answered my own question using Sean Gillies AWESOME unit tests - again. http://kentuckykarst.org/mapserver/mapscript/python/tests/cases/fonttest.py title_layer = mapobject.getLayerByName("title") point = mapscript.pointObj(500, 4) coords = mapscript.lineObj() coords.add(point) feature = mapscript.shapeObj(title_layer.type) feature.add(coords) feature.text = title_string title_layer.addFeature(feature) I also had to comment out the FEATURE section of my mapfile, in order to prevent having 2 entries in the resulting map. -- On Tue, Feb 24, 2009 at 2:44 PM, Roger Andr? wrote: > Hi Everyone, > > A little while ago, Brent Fraser sent me a mapfile snippet that could be > used to add a Title to a map using pixel coordinate space. It looked like > this: > > LAYER > NAME title > STATUS DEFAULT > TRANSFORM FALSE > TYPE ANNOTATION > > FEATURE > POINTS 4 396 END > TEXT 'This is a Great Map!' > END > > CLASS > LABEL > TYPE TRUETYPE > FONT arial > SIZE 8 > ANTIALIAS > COLOR 255 255 255 > POSITION UR > END > END > > END > > This works well, but I would like to override the TEXT value using > mapscript to create new labels that are based on the result of PostGIS > queries. I've been picking apart various examples on the web, but can't > seem to come up with the magic sauce. I can figure out how to grab the > layer ByName, but then I'm not quite sure what I need to do in order to > access the feature and override the TEXT. > > Can someone give me a clue? > > Thanks, > > Roger > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gluker at scu.edu.au Tue Feb 24 17:30:28 2009 From: gluker at scu.edu.au (Greg Luker) Date: Wed, 25 Feb 2009 11:30:28 +1000 Subject: [mapserver-users] nquery template question Message-ID: <200902250032.n1P0WocP031639@atom.scu.edu.au> Hi mapserver-users, How does nquery templating work? I'm trying to modify nquery result contents using javascript (I don't know much about javascript!). The best I have done so far is (nquery template):
[site_code] [site_name] [featdesc_description] [feature_comment] [genderaccess_description]
Which blanks the first [site_code] returned, but I want to blank repeating [site_code] in the nquery result table. Any ideas gratefully accepted! Thanks, Greg. Greg Luker GIS Lab Manager, Southern Cross University Lismore, AUSTRALIA. gluker at scu.edu.au phone 61 2 66203026 From gluker at scu.edu.au Tue Feb 24 19:23:34 2009 From: gluker at scu.edu.au (Greg Luker) Date: Wed, 25 Feb 2009 13:23:34 +1000 Subject: Oops! Re: [mapserver-users] nquery template question Message-ID: <200902250224.n1P2OWQ8022729@atom.scu.edu.au> Hi mapserver-users, Seems like I shouldn't send html code in an email! How does nquery templating work? I'm trying to modify nquery result contents using javascript (I don't know much about javascript!). The best I have done so far is (nquery template), substitute '<' for '(': (html xmlns="http://www.w3.org/1999/xhtml"> (head> (/head> (body> (script language="Javascript" type="text/javascript"> var Cell = window.document.all.A1; Cell.innerText = " "; (/script> (form name="table1" method="post"> (tr bgcolor=#FFFFD0> (td ID="A1">[site_code](/td> (td>[site_name](/td> (td>[featdesc_description](/td> (td>[feature_comment](/td> (td>[genderaccess_description](/td> (/tr> (/form> (/body> (/html> Which blanks the first [site_code] returned, but I want to blank repeating [site_code] in the nquery result table. Any ideas gratefully accepted! Thanks, Greg. Greg Luker GIS Lab Manager, Southern Cross University Lismore, AUSTRALIA. gluker at scu.edu.au phone 61 2 66203026 From enri at 163.com Tue Feb 24 22:57:04 2009 From: enri at 163.com (enri) Date: Wed, 25 Feb 2009 14:57:04 +0800 Subject: [mapserver-users] MSCompanion v1.0 alpha3 is available Message-ID: <200902251456581618739@163.com> Hi, With days of work, some updates have been made, it's available at http://code.google.com/p/mscompanion/. Changes include: 1. export mapfile strictly complying to the version specified (<5.0, 5.0-5.4,>=5.4), support the latest version of MapServer 5.4.0 beta1; 2. get the default version according to the specified shp2img.exe; 3. fixed the problem of opening an existing map created not by MSCompanion with custom defined image type will cause an error; 4. full support relative or obsolute path in all path related elements Before the finall release of version 1.0, following features will be implement. 1. support data source type detect and CONNECTION string building (now only support shape file) 2. join: let it more smart 3. Layer: for Feature Grid and Data, need to consider the excluding relationship 4. Suppoert Raster data type detect If you think this tool can help you with your work, please keep an eye on it. And you can join the special group for MSCompanion at http://groups.google.com/group/MSCompanion, so you can get updated once any new version is available. Also you can get prompt support from this group. Good Luck,?? Enri From adrian_gh.popa at romtelecom.ro Tue Feb 24 23:24:44 2009 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Wed, 25 Feb 2009 09:24:44 +0200 Subject: [mapserver-users] Changing the "EXTENT" for a layer Message-ID: <49A4F23C.2020104@romtelecom.ro> Hello all! I'm trying to display some layers (ESRI Shapefile and MapInfo) in the same map. The ESRI shapefiles work just fine, and I've used them for a long time. The new MapInfo layer however has very different "Extent" values for its coordinates and does not overlap with the original layers (they should overlap, because they cover the same area). Here is some output from ogrinfo: 1. A layer that displays ok and for which the coordinates are longitude/latitude: [adrianp at server data]$ ogrinfo Limits.shp -so -al Had to open data source read-only. INFO: Open of `Limits.shp' using driver `ESRI Shapefile' successful. Layer name: Limits Geometry: Line String Feature Count: 8718 *Extent: (20.261522, 43.618437) - (29.704897, 48.264780)* Layer SRS WKT: GEOGCS["GCS_WGS_1984", DATUM["WGS_1984", SPHEROID["WGS_1984",6378137.0,298.257223563]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]] OBJECTID_1: Integer (9.0) TIP: Integer (4.0) Shape_Leng: Real (19.11) 2. A layer which displays if I set the Extent parameter in the MAP file to the values returned by ogrinfo: [adrianp at server data]$ ogrinfo coverage.TAB -so -al Had to open data source read-only. INFO: Open of `coverage.TAB' using driver `MapInfo File' successful. Layer name: coverage Geometry: Unknown (any) Feature Count: 1 *Extent: (550.002594, 4830850.004496) - (707800.001127, 5318099.996174)* Layer SRS WKT: PROJCS["unnamed", GEOGCS["unnamed", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563], TOWGS84[0,0,0,-0,-0,-0,0]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",27], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",0], UNIT["Meter",1.0]] LEGEND: String (50.0) THRESHOLD: Real (0.0) COLOR: String (20.0) Prediction_name: String (50.0) I don't know how the second layer was generated (perhaps the values in extent are not longitude/latitude values), but I would like to display both layers in the same coordinate system. If I consider the second set of values is longitude/latitude, they make no sense (unless the surface of Earth is the same as the surface of Jupiter!). My question is: can mapserver do the translation of coordinates (by adding/substracting a fixed value), or do I need to do this with another system? If the solution is external to mapserver, what's my next step (some manuals please!)? I haven't worked with projections; could this be the cause? Any help is appreciated, thanks! Adrian -------------- next part -------------- An HTML attachment was scrubbed... URL: From no-reply at neogeo-online.net Wed Feb 25 01:07:58 2009 From: no-reply at neogeo-online.net (Guillaume Sueur) Date: Wed, 25 Feb 2009 10:07:58 +0100 Subject: [mapserver-users] runtime substitution DATA Message-ID: <49A50A6E.90406@neogeo-online.net> Hi list, I'm trying to change the DATA statement of a PostGIS Layer on the fly, from a WMS request. I made it work for FILTER or EXPRESSION, but no success with DATA, either using my %PARAM% in the middle of the SQL string or for the whole thing. I've seen here (http://mapserver.org/cgi/runsub.html) that it should validate a DATAPATTERN. Would someone have some clues about this ? Thanks Guillaume From Jukka.Rahkonen at mmmtike.fi Wed Feb 25 01:15:32 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 25 Feb 2009 11:15:32 +0200 Subject: [mapserver-users] Changing the "EXTENT" for a layer In-Reply-To: <49A4F23C.2020104@romtelecom.ro> Message-ID: Hi, Mapserver works without any knowledge about projection with one dataset if only the extents suit the data coordinates. That's the case with your ESRI layer. But you have two datasets which obviously are using different projections. To show them together either (or both) of them needs to be reprojected. And that is possible only if you know and tell Mapserver the projections for both datasets. What needs to be done is 1) Set at the MAP level the projection that you want Mapserver to use for output as well as map extents using values and units of the output projection. 2) Set at the LAYER level the projections for both of the datasets. To make is as simple as possible for the beginning I suggest to use projection epsg:4326 and a bit wider extents than you have now at MAP level. Thats because those extents are already working for you, and ESRI dataset most propably is in WGS84 projection. Thus you should use projection epsg:4326 also for your ESRI layer. Then there will be just the Mapinfo layer left. Defined by the the ogrinfo line PARAMETER["central_meridian",27] and coordinates it looks like it might be in UTM 35N projection (epsg:32635). Have a try with that first. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Adrian Popa L?hetetty: 25. helmikuuta 2009 9:25 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Changing the "EXTENT" for a layer Hello all! I'm trying to display some layers (ESRI Shapefile and MapInfo) in the same map. The ESRI shapefiles work just fine, and I've used them for a long time. The new MapInfo layer however has very different "Extent" values for its coordinates and does not overlap with the original layers (they should overlap, because they cover the same area). Here is some output from ogrinfo: 1. A layer that displays ok and for which the coordinates are longitude/latitude: [adrianp at server data]$ ogrinfo Limits.shp -so -al Had to open data source read-only. INFO: Open of `Limits.shp' using driver `ESRI Shapefile' successful. Layer name: Limits Geometry: Line String Feature Count: 8718 Extent: (20.261522, 43.618437) - (29.704897, 48.264780) Layer SRS WKT: GEOGCS["GCS_WGS_1984", DATUM["WGS_1984", SPHEROID["WGS_1984",6378137.0,298.257223563]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]] OBJECTID_1: Integer (9.0) TIP: Integer (4.0) Shape_Leng: Real (19.11) 2. A layer which displays if I set the Extent parameter in the MAP file to the values returned by ogrinfo: [adrianp at server data]$ ogrinfo coverage.TAB -so -al Had to open data source read-only. INFO: Open of `coverage.TAB' using driver `MapInfo File' successful. Layer name: coverage Geometry: Unknown (any) Feature Count: 1 Extent: (550.002594, 4830850.004496) - (707800.001127, 5318099.996174) Layer SRS WKT: PROJCS["unnamed", GEOGCS["unnamed", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563], TOWGS84[0,0,0,-0,-0,-0,0]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",27], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",0], UNIT["Meter",1.0]] LEGEND: String (50.0) THRESHOLD: Real (0.0) COLOR: String (20.0) Prediction_name: String (50.0) I don't know how the second layer was generated (perhaps the values in extent are not longitude/latitude values), but I would like to display both layers in the same coordinate system. If I consider the second set of values is longitude/latitude, they make no sense (unless the surface of Earth is the same as the surface of Jupiter!). My question is: can mapserver do the translation of coordinates (by adding/substracting a fixed value), or do I need to do this with another system? If the solution is external to mapserver, what's my next step (some manuals please!)? I haven't worked with projections; could this be the cause? Any help is appreciated, thanks! Adrian -------------- next part -------------- An HTML attachment was scrubbed... URL: From srph124 at yahoo.com Wed Feb 25 02:09:45 2009 From: srph124 at yahoo.com (Saka Royban) Date: Wed, 25 Feb 2009 02:09:45 -0800 (PST) Subject: [mapserver-users] dBox problem (with Python mapscript)? Message-ID: <658993.13675.qm@web58201.mail.re3.yahoo.com> Hi all I'm gonna use dBox, start using dbox0.9a1 example which is based on python2.4, although mapscript is built with python2.5 in latest version of MS4W. for legend, i just see one node at top with no layer(dBox uses yahoo treeview). this is error i get from firebug: Traceback (most recent call last): File "D:\ms4w\Apache\cgi-bin\make_dlegend_xml_cgi.py", line 36, in <module> make_dlegend_xml.write_xml(mapfile, server) File "D:\ms4w\Apache\cgi-bin\make_dlegend_xml.py", line 278, in write_xml (minscale, maxscale) = get_group_minscale_and_maxscale(mapp, layer_indexes) File "D:\ms4w\Apache\cgi-bin\make_dlegend_xml.py", line 204, in get_group_minscale_and_maxscale if layer.minscale == -1: File "D:\ms4w\Apache\cgi-bin\mapscript.py", line 1006, in <lambda> __getattr__ = lambda self, name: _swig_getattr(self, layerObj, name) File "D:\ms4w\Apache\cgi-bin\mapscript.py", line 34, in _swig_getattr raise AttributeError,name AttributeError: minscale anyone has idea about this? Isn't is because minscale (& maxscale) is deprecated (replaced with minsclaedenom)? -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian_gh.popa at romtelecom.ro Wed Feb 25 04:17:27 2009 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Wed, 25 Feb 2009 14:17:27 +0200 Subject: [mapserver-users] Changing the "EXTENT" for a layer In-Reply-To: References: Message-ID: <49A536D7.6040504@romtelecom.ro> Hello, Thank you for your reply. I managed to find out the MapInfo layer is using WGS 84 / UTM zone 35N (like you predicted). I will try to adjust my mapfile for these projections. I guess I need to reproject *every* layer. Thanks again for your help. I'll contant all to let you know how it worked out. Cheers, Adrian Rahkonen Jukka wrote: > Hi, > > Mapserver works without any knowledge about projection with one > dataset if only the extents suit the data coordinates. That's the case > with your ESRI layer. But you have two datasets which obviously are > using different projections. To show them together either (or both) > of them needs to be reprojected. And that is possible only if you > know and tell Mapserver the projections for both datasets. > > What needs to be done is > 1) Set at the MAP level the projection that you want Mapserver to use > for output as well as map extents using values and units of the output > projection. > 2) Set at the LAYER level the projections for both of the datasets. > > To make is as simple as possible for the beginning I suggest to > use projection epsg:4326 and a bit wider extents than you have now at > MAP level. Thats because those extents are already working for you, > and ESRI dataset most propably is in WGS84 projection. Thus you > should use projection epsg:4326 also for your ESRI layer. > > Then there will be just the Mapinfo layer left. Defined by the the > ogrinfo line PARAMETER["central_meridian",27] and coordinates it looks > like it might be in UTM 35N projection (epsg:32635). Have a try with > that first. > > -Jukka Rahkonen- > > ------------------------------------------------------------------------ > *L?hett?j?:* mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *Puolesta *Adrian Popa > *L?hetetty:* 25. helmikuuta 2009 9:25 > *Vastaanottaja:* mapserver-users at lists.osgeo.org > *Aihe:* [mapserver-users] Changing the "EXTENT" for a layer > > Hello all! > > I'm trying to display some layers (ESRI Shapefile and MapInfo) in > the same map. The ESRI shapefiles work just fine, and I've used > them for a long time. The new MapInfo layer however has very > different "Extent" values for its coordinates and does not overlap > with the original layers (they should overlap, because they cover > the same area). > > Here is some output from ogrinfo: > > 1. A layer that displays ok and for which the coordinates are > longitude/latitude: > > [adrianp at server data]$ ogrinfo Limits.shp -so -al > Had to open data source read-only. > INFO: Open of `Limits.shp' > using driver `ESRI Shapefile' successful. > > Layer name: Limits > Geometry: Line String > Feature Count: 8718 > *Extent: (20.261522, 43.618437) - (29.704897, 48.264780)* > Layer SRS WKT: > GEOGCS["GCS_WGS_1984", > DATUM["WGS_1984", > SPHEROID["WGS_1984",6378137.0,298.257223563]], > PRIMEM["Greenwich",0.0], > UNIT["Degree",0.0174532925199433]] > OBJECTID_1: Integer (9.0) > TIP: Integer (4.0) > Shape_Leng: Real (19.11) > > 2. A layer which displays if I set the Extent parameter in the MAP > file to the values returned by ogrinfo: > > [adrianp at server data]$ ogrinfo coverage.TAB -so -al > Had to open data source read-only. > INFO: Open of `coverage.TAB' > using driver `MapInfo File' successful. > > Layer name: coverage > Geometry: Unknown (any) > Feature Count: 1 > *Extent: (550.002594, 4830850.004496) - (707800.001127, > 5318099.996174)* > Layer SRS WKT: > PROJCS["unnamed", > GEOGCS["unnamed", > DATUM["WGS_1984", > SPHEROID["WGS 84",6378137,298.257223563], > TOWGS84[0,0,0,-0,-0,-0,0]], > PRIMEM["Greenwich",0], > UNIT["degree",0.0174532925199433]], > PROJECTION["Transverse_Mercator"], > PARAMETER["latitude_of_origin",0], > PARAMETER["central_meridian",27], > PARAMETER["scale_factor",0.9996], > PARAMETER["false_easting",500000], > PARAMETER["false_northing",0], > UNIT["Meter",1.0]] > LEGEND: String (50.0) > THRESHOLD: Real (0.0) > COLOR: String (20.0) > Prediction_name: String (50.0) > > > I don't know how the second layer was generated (perhaps the > values in extent are not longitude/latitude values), but I would > like to display both layers in the same coordinate system. > If I consider the second set of values is longitude/latitude, they > make no sense (unless the surface of Earth is the same as the > surface of Jupiter!). > > My question is: can mapserver do the translation of coordinates > (by adding/substracting a fixed value), or do I need to do this > with another system? > If the solution is external to mapserver, what's my next step > (some manuals please!)? > > I haven't worked with projections; could this be the cause? > > Any help is appreciated, thanks! > Adrian > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adrian_gh.popa at romtelecom.ro Wed Feb 25 04:52:30 2009 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Wed, 25 Feb 2009 14:52:30 +0200 Subject: [mapserver-users] Changing the "EXTENT" for a layer In-Reply-To: References: Message-ID: <49A53F0E.5070505@romtelecom.ro> Yup, it worked like a charm! Thank you for your help. One more question - how cpu intensive is reprojection using mapserver? I mean, if I have 300 users requesting the page, will I kill the CPU because it needs to reproject a layer, or are the calculations straight-forward and add little extra load on the server? Can I reproject the layer "offline" and load it without projection in mapserver? If I can, which tool would I use (proj4?)? Thanks again, Adrian Rahkonen Jukka wrote: > Hi, > > Mapserver works without any knowledge about projection with one > dataset if only the extents suit the data coordinates. That's the case > with your ESRI layer. But you have two datasets which obviously are > using different projections. To show them together either (or both) > of them needs to be reprojected. And that is possible only if you > know and tell Mapserver the projections for both datasets. > > What needs to be done is > 1) Set at the MAP level the projection that you want Mapserver to use > for output as well as map extents using values and units of the output > projection. > 2) Set at the LAYER level the projections for both of the datasets. > > To make is as simple as possible for the beginning I suggest to > use projection epsg:4326 and a bit wider extents than you have now at > MAP level. Thats because those extents are already working for you, > and ESRI dataset most propably is in WGS84 projection. Thus you > should use projection epsg:4326 also for your ESRI layer. > > Then there will be just the Mapinfo layer left. Defined by the the > ogrinfo line PARAMETER["central_meridian",27] and coordinates it looks > like it might be in UTM 35N projection (epsg:32635). Have a try with > that first. > > -Jukka Rahkonen- > > ------------------------------------------------------------------------ > *L?hett?j?:* mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *Puolesta *Adrian Popa > *L?hetetty:* 25. helmikuuta 2009 9:25 > *Vastaanottaja:* mapserver-users at lists.osgeo.org > *Aihe:* [mapserver-users] Changing the "EXTENT" for a layer > > Hello all! > > I'm trying to display some layers (ESRI Shapefile and MapInfo) in > the same map. The ESRI shapefiles work just fine, and I've used > them for a long time. The new MapInfo layer however has very > different "Extent" values for its coordinates and does not overlap > with the original layers (they should overlap, because they cover > the same area). > > Here is some output from ogrinfo: > > 1. A layer that displays ok and for which the coordinates are > longitude/latitude: > > [adrianp at server data]$ ogrinfo Limits.shp -so -al > Had to open data source read-only. > INFO: Open of `Limits.shp' > using driver `ESRI Shapefile' successful. > > Layer name: Limits > Geometry: Line String > Feature Count: 8718 > *Extent: (20.261522, 43.618437) - (29.704897, 48.264780)* > Layer SRS WKT: > GEOGCS["GCS_WGS_1984", > DATUM["WGS_1984", > SPHEROID["WGS_1984",6378137.0,298.257223563]], > PRIMEM["Greenwich",0.0], > UNIT["Degree",0.0174532925199433]] > OBJECTID_1: Integer (9.0) > TIP: Integer (4.0) > Shape_Leng: Real (19.11) > > 2. A layer which displays if I set the Extent parameter in the MAP > file to the values returned by ogrinfo: > > [adrianp at server data]$ ogrinfo coverage.TAB -so -al > Had to open data source read-only. > INFO: Open of `coverage.TAB' > using driver `MapInfo File' successful. > > Layer name: coverage > Geometry: Unknown (any) > Feature Count: 1 > *Extent: (550.002594, 4830850.004496) - (707800.001127, > 5318099.996174)* > Layer SRS WKT: > PROJCS["unnamed", > GEOGCS["unnamed", > DATUM["WGS_1984", > SPHEROID["WGS 84",6378137,298.257223563], > TOWGS84[0,0,0,-0,-0,-0,0]], > PRIMEM["Greenwich",0], > UNIT["degree",0.0174532925199433]], > PROJECTION["Transverse_Mercator"], > PARAMETER["latitude_of_origin",0], > PARAMETER["central_meridian",27], > PARAMETER["scale_factor",0.9996], > PARAMETER["false_easting",500000], > PARAMETER["false_northing",0], > UNIT["Meter",1.0]] > LEGEND: String (50.0) > THRESHOLD: Real (0.0) > COLOR: String (20.0) > Prediction_name: String (50.0) > > > I don't know how the second layer was generated (perhaps the > values in extent are not longitude/latitude values), but I would > like to display both layers in the same coordinate system. > If I consider the second set of values is longitude/latitude, they > make no sense (unless the surface of Earth is the same as the > surface of Jupiter!). > > My question is: can mapserver do the translation of coordinates > (by adding/substracting a fixed value), or do I need to do this > with another system? > If the solution is external to mapserver, what's my next step > (some manuals please!)? > > I haven't worked with projections; could this be the cause? > > Any help is appreciated, thanks! > Adrian > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nsanchezb08 at gmail.com Wed Feb 25 05:14:50 2009 From: nsanchezb08 at gmail.com (NN SS) Date: Wed, 25 Feb 2009 08:14:50 -0500 Subject: [mapserver-users] Change Style Line Message-ID: Dear OpenLayers Users. I have a problem. I need to draw an arrow instead line ( For exmaple : -->-->-->-->-->-->-->-->-- ) to join two or more points, How I can do this ? Thanks for your help Regards, Nelson. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Wed Feb 25 06:37:12 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 25 Feb 2009 16:37:12 +0200 Subject: [mapserver-users] Changing the "EXTENT" for a layer In-Reply-To: <49A53F0E.5070505@romtelecom.ro> Message-ID: Hi, There is no need to guess this, nor would it be very useful. Instead, insert DEBUG 5 into your layer definitions, collect log and see from the timing values how it goes. Make a pre-reproprojected layer from your data with ogr2ogr program, do some timings and compare the results. -Jukka- ________________________________ L?hett?j?: Adrian Popa [mailto:adrian_gh.popa at romtelecom.ro] L?hetetty: 25. helmikuuta 2009 14:53 Vastaanottaja: Rahkonen Jukka Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Changing the "EXTENT" for a layer Yup, it worked like a charm! Thank you for your help. One more question - how cpu intensive is reprojection using mapserver? I mean, if I have 300 users requesting the page, will I kill the CPU because it needs to reproject a layer, or are the calculations straight-forward and add little extra load on the server? Can I reproject the layer "offline" and load it without projection in mapserver? If I can, which tool would I use (proj4?)? Thanks again, Adrian Rahkonen Jukka wrote: Hi, Mapserver works without any knowledge about projection with one dataset if only the extents suit the data coordinates. That's the case with your ESRI layer. But you have two datasets which obviously are using different projections. To show them together either (or both) of them needs to be reprojected. And that is possible only if you know and tell Mapserver the projections for both datasets. What needs to be done is 1) Set at the MAP level the projection that you want Mapserver to use for output as well as map extents using values and units of the output projection. 2) Set at the LAYER level the projections for both of the datasets. To make is as simple as possible for the beginning I suggest to use projection epsg:4326 and a bit wider extents than you have now at MAP level. Thats because those extents are already working for you, and ESRI dataset most propably is in WGS84 projection. Thus you should use projection epsg:4326 also for your ESRI layer. Then there will be just the Mapinfo layer left. Defined by the the ogrinfo line PARAMETER["central_meridian",27] and coordinates it looks like it might be in UTM 35N projection (epsg:32635). Have a try with that first. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Adrian Popa L?hetetty: 25. helmikuuta 2009 9:25 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Changing the "EXTENT" for a layer Hello all! I'm trying to display some layers (ESRI Shapefile and MapInfo) in the same map. The ESRI shapefiles work just fine, and I've used them for a long time. The new MapInfo layer however has very different "Extent" values for its coordinates and does not overlap with the original layers (they should overlap, because they cover the same area). Here is some output from ogrinfo: 1. A layer that displays ok and for which the coordinates are longitude/latitude: [adrianp at server data]$ ogrinfo Limits.shp -so -al Had to open data source read-only. INFO: Open of `Limits.shp' using driver `ESRI Shapefile' successful. Layer name: Limits Geometry: Line String Feature Count: 8718 Extent: (20.261522, 43.618437) - (29.704897, 48.264780) Layer SRS WKT: GEOGCS["GCS_WGS_1984", DATUM["WGS_1984", SPHEROID["WGS_1984",6378137.0,298.257223563]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]] OBJECTID_1: Integer (9.0) TIP: Integer (4.0) Shape_Leng: Real (19.11) 2. A layer which displays if I set the Extent parameter in the MAP file to the values returned by ogrinfo: [adrianp at server data]$ ogrinfo coverage.TAB -so -al Had to open data source read-only. INFO: Open of `coverage.TAB' using driver `MapInfo File' successful. Layer name: coverage Geometry: Unknown (any) Feature Count: 1 Extent: (550.002594, 4830850.004496) - (707800.001127, 5318099.996174) Layer SRS WKT: PROJCS["unnamed", GEOGCS["unnamed", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563], TOWGS84[0,0,0,-0,-0,-0,0]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",27], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",0], UNIT["Meter",1.0]] LEGEND: String (50.0) THRESHOLD: Real (0.0) COLOR: String (20.0) Prediction_name: String (50.0) I don't know how the second layer was generated (perhaps the values in extent are not longitude/latitude values), but I would like to display both layers in the same coordinate system. If I consider the second set of values is longitude/latitude, they make no sense (unless the surface of Earth is the same as the surface of Jupiter!). My question is: can mapserver do the translation of coordinates (by adding/substracting a fixed value), or do I need to do this with another system? If the solution is external to mapserver, what's my next step (some manuals please!)? I haven't worked with projections; could this be the cause? Any help is appreciated, thanks! Adrian -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Wed Feb 25 07:54:46 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 25 Feb 2009 09:54:46 -0600 Subject: [mapserver-users] runtime substitution DATA In-Reply-To: <49A50A6E.90406@neogeo-online.net> References: <49A50A6E.90406@neogeo-online.net> Message-ID: <49A51565.5157.008F.0@dnr.state.mn.us> You should be able to use either approach. To change the whole thing you'd do: &map.layer[mylayer]=DATA+'some new SQL string'&... but in this case you must set DATAPATTERN at the map level to a regular expression to use to validate the new SQL. I think this is really hard to do properly and so should probably be avoided. Another alternative is replacing just parts of the SQL, kind of an SQL template approach, here's an example I'm using in production now: DATA "point FROM (SELECT *,oid FROM sites2 WHERE has_telemetry ~ '%has_telemetry%' AND has_archive ~ '%has_archive%' AND has_water_chemistry ~ '%has_water_chemistry%' AND is_cwl_site ~ '%is_cwl_site%' AND is_flood_warning_gage ~ '%is_flood_warning_gage%') as foo USING UNIQUE oid USING SRID=-1" METADATA has_telemetry_validation_pattern '^[01.]$' has_archive_validation_pattern '^[01.]$' has_water_chemistry_validation_pattern '^[01.]$' is_cwl_site_validation_pattern '^[01.]$' is_flood_warning_gage_validation_pattern '^[01.]$' END In this example my data contain 0 or 1 depending on the properties of a site. I want to allow the user to pick 0, 1 or either so I use regex's in PostgreSQL (hence the . being a legal character from my application. The validation patterns restrict input to 0,1 or . (e.g. either). Another example: DATA 'point FROM (select *,oid, substring(station from 2) as station_no_char from sites2 where oid=%id%) as foo USING UNIQUE oid USING SRID=-1' METADATA id_validation_pattern '^[0-9]{1,14}$' END Here I'm using the oid to identify one site and the validation pattern to limit input to a sequence of numbers from 1 to 14 characters in length. If the value for "id" doesn't match then an error is thrown. Steve >>> On 2/25/2009 at 3:07 AM, in message <49A50A6E.90406 at neogeo-online.net>, Guillaume Sueur wrote: > Hi list, > > I'm trying to change the DATA statement of a PostGIS Layer on the fly, > from a WMS request. > I made it work for FILTER or EXPRESSION, but no success with DATA, > either using my %PARAM% in the middle of the SQL string or for the whole > thing. > I've seen here (http://mapserver.org/cgi/runsub.html) that it should > validate a DATAPATTERN. > > Would someone have some clues about this ? > > Thanks > > Guillaume > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From no-reply at neogeo-online.net Wed Feb 25 08:31:34 2009 From: no-reply at neogeo-online.net (Guillaume Sueur) Date: Wed, 25 Feb 2009 17:31:34 +0100 Subject: [mapserver-users] runtime substitution DATA In-Reply-To: <49A51565.5157.008F.0@dnr.state.mn.us> References: <49A50A6E.90406@neogeo-online.net> <49A51565.5157.008F.0@dnr.state.mn.us> Message-ID: <49A57266.8060701@neogeo-online.net> These are a really good explanation and examples Steve ! Many many thanks, I'm going to put my hands into it ! Regards, Guillaume Steve Lime a ?crit : > You should be able to use either approach. To change the whole thing you'd do: > > &map.layer[mylayer]=DATA+'some new SQL string'&... > > but in this case you must set DATAPATTERN at the map level to a regular expression to use > to validate the new SQL. I think this is really hard to do properly and so should probably be > avoided. > > Another alternative is replacing just parts of the SQL, kind of an SQL template approach, here's > an example I'm using in production now: > > DATA "point FROM (SELECT *,oid FROM sites2 WHERE has_telemetry ~ '%has_telemetry%' AND has_archive ~ '%has_archive%' AND has_water_chemistry ~ '%has_water_chemistry%' AND is_cwl_site ~ '%is_cwl_site%' AND is_flood_warning_gage ~ '%is_flood_warning_gage%') as foo USING UNIQUE oid USING SRID=-1" > METADATA > has_telemetry_validation_pattern '^[01.]$' > has_archive_validation_pattern '^[01.]$' > has_water_chemistry_validation_pattern '^[01.]$' > is_cwl_site_validation_pattern '^[01.]$' > is_flood_warning_gage_validation_pattern '^[01.]$' > END > > In this example my data contain 0 or 1 depending on the properties of a site. I want to allow the user > to pick 0, 1 or either so I use regex's in PostgreSQL (hence the . being a legal character from my > application. The validation patterns restrict input to 0,1 or . (e.g. either). Another example: > > DATA 'point FROM (select *,oid, substring(station from 2) as station_no_char from sites2 where oid=%id%) as foo USING UNIQUE oid USING SRID=-1' > METADATA > id_validation_pattern '^[0-9]{1,14}$' > END > > Here I'm using the oid to identify one site and the validation pattern to limit input to a sequence of > numbers from 1 to 14 characters in length. If the value for "id" doesn't match then an error is thrown. > > Steve > >>>> On 2/25/2009 at 3:07 AM, in message <49A50A6E.90406 at neogeo-online.net>, > Guillaume Sueur wrote: >> Hi list, >> >> I'm trying to change the DATA statement of a PostGIS Layer on the fly, >> from a WMS request. >> I made it work for FILTER or EXPRESSION, but no success with DATA, >> either using my %PARAM% in the middle of the SQL string or for the whole >> thing. >> I've seen here (http://mapserver.org/cgi/runsub.html) that it should >> validate a DATAPATTERN. >> >> Would someone have some clues about this ? >> >> Thanks >> >> Guillaume >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > From bartvde at osgis.nl Wed Feb 25 10:15:51 2009 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed, 25 Feb 2009 19:15:51 +0100 Subject: [mapserver-users] Oracle virtual private database and ArcSDE Message-ID: <49A58AD7.9050907@osgis.nl> Sorry for the off-topic question, but is there anybody out here that has experience with the combination of Oracle Virtual Private Database and ArcSDE. In other words, Oracle's row level security in combination with ESRI's ArcSDE. If so, please contact me off-list. TIA. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS bartvde at osgis.nl http://www.osgis.nl From robhyx at gmail.com Wed Feb 25 10:37:03 2009 From: robhyx at gmail.com (Robert Hicks) Date: Wed, 25 Feb 2009 13:37:03 -0500 Subject: [mapserver-users] Extracting layers from a GetCapabilities request Message-ID: Hi all, I have a few dozen GetCapabilities requests and I am ultimately trying to create separate GetMap requests from each of them. Is there an automated way to do this already implemented somewhere? I know on Google Maps you can select the individual layers from the GetCapabilities, so I assume it is just parsing through the XML and grabbing each layer, however I do not want to reinvent the wheel. So I am looking for a tool that already does this for me. Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From bamerbalazs at gmail.com Wed Feb 25 12:33:35 2009 From: bamerbalazs at gmail.com (=?UTF-8?B?QmFsw6F6cyBCw6FtZXI=?=) Date: Wed, 25 Feb 2009 21:33:35 +0100 Subject: [mapserver-users] Oracle database problem Message-ID: Hi All, I have a MapServer 5.2.1 compiled with ./configure --with-oci --with-oraclespatial=/usr/local/instantclient_11_1 --with-proj --with-threads --with-gdal --with-ogr --with-jpeg --with-png=/usr/lib --with-php=/usr/include/php5 on Ubuntu 8.10 I tried to maka a layer with LAYER NAME lejto METADATA "DESCRIPTION" "lejto" "wms_title" "lejto" "ows_include_items" "all" END PROJECTION "init=epsg:23700" END TYPE POLYGON STATUS ON CONNECTIONTYPE oraclespatial CONNECTION "sde/asdfgh at 10.0.8.51:1521" DATA "geom from LEJTO_2008_070814 using SRID 23700" CLASS NAME "lejto" STYLE OUTLINECOLOR 127 127 127 END END DUMP TRUE TEMPLATE "template.html" END # layer GetCapabilities query works. If I try to draw the map with (you can try): http://att-it.homelinux.net:22080/cgi-bin/sokfolt?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=lejto&STYLES=&SRS=epsg:23700&BBOX=420000,40000,950000,370000&WIDTH=938&HEIGHT=591&FORMAT=image/png the response is msDrawMap(): Image handling error. Failed to draw layer named 'lejto'. msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: ORA-00942: table or view does not exist . Query statement: SELECT rownum, geom FROM LEJTO_2008_070814 WHERE SDO_FILTER( geom, MDSYS.SDO_GEOMETRY(2003, 23700, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(420000,40000,950000,370000) ),'querytype=window') = 'TRUE' . Check your data statement. while in sqlplus the query quite similar to the above (just modified to write row count instead of the 2 columns) SELECT count(1) FROM LEJTO_2008_070814 WHERE SDO_FILTER( geom, MDSYS.SDO_GEOMETRY(2003, 23700, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(420000,40000,950000,370000) ),'querytype=window') = 'TRUE' runs. SRID information and table user_sdo_geom_metadata is actualized: Insert into USER_SDO_GEOM_METADATA (TABLE_NAME,COLUMN_NAME,DIMINFO,SRID) values ('lejto_2008_070814','GEOM',MDSYS.SDO_DIM_ARRAY(MDSYS.SDO_DIM_ELEMENT('X',437534.249899998,935741,5E-8),MDSYS.SDO_DIM_ELEMENT('Y',47058.0469,355027,5E-8)),23700); drop index IDX_LEJTO_2008_070814_GEOM; UPDATE lejto_2008_070814 c SET c.geom.SDO_SRID=23700; CREATE INDEX idx_lejto_2008_070814_GEOM ON lejto_2008_070814 (GEOM) INDEXTYPE IS MDSYS.SPATIAL_INDEX PARAMETERS ('layer_gtype=POLYGON'); What can be the problem? Thank you in advance. Best regards: Bal?zs B?mer What can be the problem? From szekerest at gmail.com Wed Feb 25 13:37:02 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 25 Feb 2009 22:37:02 +0100 Subject: [mapserver-users] MapServer and GDAL daily build Windows binaries available In-Reply-To: References: Message-ID: Hi All, I've set up a build server providing daily snapshot builds for various compilers/architectures and created a root page containing the links to the results (along with the build SDKs have been used for the builds) http://vbkto.dyndns.org:1280/sdk/index.html You can simply download and use any of the build snapshots to be able to obtain the Windows binaries with the recent fixes without requiring to compile by yourself. But if you would rather compile by hand (eg for debugging purposes) just pick up the SDK packages providing a ready to use compile environment for all of those platforms enumerated. You may encounter some features missing (like swigpython binaries, mapscript-java etc) which are about to be added shortly, after I make sure those are working equally well on all platforms. I'll also provide links to the corresponding autotest results until the buildbot configuration is not resurrected. Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From asle at benoni.no Wed Feb 25 14:13:07 2009 From: asle at benoni.no (asle) Date: Wed, 25 Feb 2009 14:13:07 -0800 (PST) Subject: [mapserver-users] setenv MS_MAPFILE not working Message-ID: <1235599987085-2386468.post@n2.nabble.com> Hi, I have just setup and am running mapserver 5 on OS X Server 10.5. I have tried to set this in an include conf file: SetEnv Request_URI "/cgi-bin/demo" MS_MAPFILE=/MS/apps/demo/demo.map SetEnv Request_URI "/cgi-bin/demo" MS_ERRORFILE=/MS/apps/demo/ms.log but it is not working. The mapserver excecutable is called "demo". I have a catalog in webroot called "MS" which is the domains webfolder. I have a folder in there with the structure like above with the demo.map in the demo folder. Still if I write the URL: http://domainname../cgi-bin/demo I get No query information to decode. QUERY_STRING is set, but empty. If I use this URL it works, http://borchbio.no/cgi-bin/mapserv?map=/Library/WebServer/Documents/MS/apps/demo/demo.map&layer=n5byggflate&mode=map except I get another error which is another problem. Now I just want to get the shortcut to work. Are these paths relative to the drive root or to the apache root (/Library/WebServer/Documents/)? Thanks! -- View this message in context: http://n2.nabble.com/setenv-MS_MAPFILE-not-working-tp2386468p2386468.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dmorissette at mapgears.com Wed Feb 25 14:32:14 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 25 Feb 2009 17:32:14 -0500 Subject: [mapserver-users] setenv MS_MAPFILE not working In-Reply-To: <1235599987085-2386468.post@n2.nabble.com> References: <1235599987085-2386468.post@n2.nabble.com> Message-ID: <49A5C6EE.5060109@mapgears.com> asle wrote: > I have just setup and am running mapserver 5 on OS X Server 10.5. I have > tried to set this in an include conf file: > SetEnv Request_URI "/cgi-bin/demo" MS_MAPFILE=/MS/apps/demo/demo.map > SetEnv Request_URI "/cgi-bin/demo" MS_ERRORFILE=/MS/apps/demo/ms.log > Did you mean to use SetEnvIf instead of SetEnv? i.e. SetEnvIf Request_URI "/cgi-bin/demo" MS_MAPFILE=/MS/apps/demo/demo.map SetEnvIf Request_URI "/cgi-bin/demo" MS_ERRORFILE=/MS/apps/demo/ms.log Daniel -- Daniel Morissette http://www.mapgears.com/ From enri at 163.com Wed Feb 25 16:54:13 2009 From: enri at 163.com (enri) Date: Thu, 26 Feb 2009 08:54:13 +0800 Subject: [mapserver-users] MSCompanion v1.0 alpha3 is available References: <200902251456581618739@163.com> Message-ID: <200902260854077876858@163.com> James Perrins, Thank you very much for your careful analysis. Obviously you are right, I will fix these problems in alpha4. I took it for granted the dependent dlls should locate at the same directory as libmap.dll, that's the reason caused the PATH problem. Thank you again. Best regards?? Enri???? ======= 2009-02-26 01:12:32 you wrote??======= >Hi enri, > >I have made some progress and sort of have it working now. > >I have discovered a a few thinsg you might like to take into account: > >1)The add layers option from the menu always seems to error - right >clicking on the map does work though > >2) I think there is some re-pathing issue - when I captured the >command you were creating and ran it from the command line - >shp2img.exe told be it could not find a dll which was in >C:\ms4w\Apache\cgi-bin\ - and this path was set in your app. As a >work around I copied all the dlls into the C:\ms4w\tools\mapserv\ >directory and things started working > >C:\ms4w\tools\mapserv\shp2img.exe -m C:\Documents and >Settings\JamesP\My Documents\Visual Studio >2005\Projects\DesktopMapServer\DesktopMapServer\384~.map -o >C:\DOCUME~1\JamesP\LOCALS~1\Temp\382~.png -s 534 497 -e >-3.42765815730672E-11 -108426.966292135 1200000 1008426.96629213 -l >"UK" > >3) I was also trying to run your app from teh desktop - which meant >the temp map file was being created on the desktop - and on XP of >course this has spaces in the path name - which caused an error - I >think you need to consider enclosing path names in quotes > >Anyway - I now have a map displaying - so I am happy - I will have >more of a play later when I have a bit more time > >Best wishes >James > >2009/2/25 enri : >> Hi, >> >> With days of work, some updates have been made, it's available at http://code.google.com/p/mscompanion/. >> >> Changes include: >> 1. export mapfile strictly complying to the version specified (<5.0, 5.0-5.4,>=5.4), support the latest version of MapServer 5.4.0 beta1; >> 2. get the default version according to the specified shp2img.exe; >> 3. fixed the problem of opening an existing map created not by MSCompanion with custom defined image type will cause an error; >> 4. full support relative or obsolute path in all path related elements >> >> Before the finall ?release of version 1.0, following features will be implement. >> 1. support data source type detect and CONNECTION string building (now only support shape file) >> 2. join: let it more smart >> 3. Layer: for Feature Grid and Data, need to consider the excluding relationship >> 4. Suppoert Raster data type detect >> >> If you think this tool can help you with your work, please keep an eye on it. And you can join the special group for MSCompanion at ?http://groups.google.com/group/MSCompanion, so you can get updated once any new version is available. Also you can get prompt support from this group. >> >> Good Luck, >> Enri >> >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > >-- >Dr James Perrins >exeGesIS SDM Ltd >Great House Barn >New Street, Talgarth >Powys LD3 0AH. >Direct Line: 01646 686650 >Tel: 01874 711145 >Fax: 01874 711156 >Email: JamesP at esdm.co.uk > >This E-mail and any files transmitted with it are private and intended >solely for the use of the individual or entity to whom they are >addressed. If you are not the intended recipient, the E-mail and any >files have been transmitted to you in error and any copying, >distribution or other use of the information contained in them is >strictly prohibited. > >Nothing in this E-mail message amounts to a contractual or other legal >commitment on the part of exeGesIS SDM Ltd unless confirmed by a >signed communication. > >exeGesIS SDM Ltd will make every effort to keep its network free of >viruses. However, the recipient of this message will need to scan this >message, and any attachments, for viruses, as exeGesIS SDM Ltd can >take no responsibility for any computer virus that might be >transferred by this e-mail. = = = = = = = = = = = = = = = = = = = = From mitchelljj98 at gmail.com Wed Feb 25 18:58:14 2009 From: mitchelljj98 at gmail.com (John Mitchell) Date: Wed, 25 Feb 2009 21:58:14 -0500 Subject: [mapserver-users] Is using ECW format allowed or not? In-Reply-To: <48FCBCC8.9080504@hostgis.com> References: <48FCBCC8.9080504@hostgis.com> Message-ID: Does a JPEG2000 created by ER Mapper/ECW also require licensing like an ECW format file when used by MapServer? Thanks, John On Mon, Oct 20, 2008 at 12:15 PM, Gregor Mosheh wrote: > 1. Can we use our compressed ECW images as input for MapServer WMS? >> 2. Can we use ECW as an output format for MapServer WCS? >> > > The license agreement says that the ECW SDK cannot be used "on a server" > then goes on to define that as a computer connected to the Internet which > provides images. I'd say that clearly rules out MapServer consuming ECW. > Very unfortunate, but in my opinion very clear. > > In my tests, I have found that JPEG2000 and ECW are really too slow for > production use anyway. Maybe that's some "sour grapes" consolation? :) > > -- > Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ > System Administrator, Lead Programmer > HostGIS development & hosting services, http://www.HostGIS.com/ > > "Remember that no one cares if you can back up, > only if you can restore." - AMANDA > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From rpha88 at gmail.com Wed Feb 25 19:28:50 2009 From: rpha88 at gmail.com (rohan phatak) Date: Thu, 26 Feb 2009 08:58:50 +0530 Subject: [mapserver-users] How to Add button to find shortest path?? Message-ID: Hello friends, i want to add button for finding shortest path in my map?? how to add it? I am using GMAP application for that it has two files .phtml and .inc in which file should i add the code?? it supports php. thanks in advance : ) -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Wed Feb 25 20:00:46 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 25 Feb 2009 23:00:46 -0500 Subject: [mapserver-users] How to Add button to find shortest path?? In-Reply-To: References: Message-ID: <49A613EE.601@swoodbridge.com> rohan phatak wrote: > Hello friends, > i want to add button for finding shortest path in my map?? how to add it? > I am using GMAP application for that it has two files > .phtml and .inc in which file should i add the code?? it supports php. > thanks in advance : ) mapserver does not do shortest path. you probably should look at pgRouting http://www.postlbs.org/ -Steve W From Antti.Roppola at brs.gov.au Wed Feb 25 20:09:20 2009 From: Antti.Roppola at brs.gov.au (Roppola, Antti - BRS) Date: Thu, 26 Feb 2009 15:09:20 +1100 Subject: [mapserver-users] Is using ECW format allowed or not? [SEC=UNCLASSIFIED] In-Reply-To: References: <48FCBCC8.9080504@hostgis.com> Message-ID: <61C2DEA055980B418D063F8646FCAEFC05AD1F88@ACT001CL03EX03.agdaff.gov.au> I just happened to be looking at the ERDAS web site the other day, and noticed that there's been a relaese of the ECW SDK since the ER Mapper/ERDAS merger. What caught my eye was changes to the SDK licensing mentioned in the release notes: "Product enhancements, including: * No more restrictions on the distribution of 'Server Software' under the GPL-style Public Use License Agreement Commercial Use. Subject to all other terms of this Agreement, You are hereby granted a nonexclusive, worldwide, royalty-free license to use the ECW/JP2 CODEC SDK to create, use and distribute END APPLICATIONS that DECODE for COMMERCIAL USES." Also supporting this interpretation is the seperate royalty schedule for Commercial use, it only lists ENCODING as a use where license fees are due. Cheers, Antti ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of John Mitchell Sent: Thursday, 26 February 2009 1:58 PM To: Gregor Mosheh Cc: Rahkonen Jukka; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Is using ECW format allowed or not? Does a JPEG2000 created by ER Mapper/ECW also require licensing like an ECW format file when used by MapServer? Thanks, John On Mon, Oct 20, 2008 at 12:15 PM, Gregor Mosheh wrote: 1. Can we use our compressed ECW images as input for MapServer WMS? 2. Can we use ECW as an output format for MapServer WCS? The license agreement says that the ECW SDK cannot be used "on a server" then goes on to define that as a computer connected to the Internet which provides images. I'd say that clearly rules out MapServer consuming ECW. Very unfortunate, but in my opinion very clear. In my tests, I have found that JPEG2000 and ECW are really too slow for production use anyway. Maybe that's some "sour grapes" consolation? :) -- Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ System Administrator, Lead Programmer HostGIS development & hosting services, http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- John J. Mitchell ------ IMPORTANT - This message has been issued by The Department of Agriculture, Fisheries and Forestry (DAFF). The information transmitted is for the use of the intended recipient only and may contain sensitive and/or legally privileged material. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. Any reproduction, publication, communication, re-transmission, disclosure, dissemination or other use of the information contained in this e-mail by persons or entities other than the intended recipient is prohibited. The taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error please notify the sender and delete all copies of this transmission together with any attachments. If you have received this e-mail as part of a valid mailing list and no longer want to receive a message such as this one advise the sender by return e-mail accordingly. Only e-mail correspondence which includes this footer, has been authorised by DAFF ------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Wed Feb 25 21:44:39 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 25 Feb 2009 23:44:39 -0600 Subject: [mapserver-users] MapServer 5.4 Beta 2 Available Message-ID: <49A5D7E70200008F00021085@co5.dnr.state.mn.us> Greetings all: MapServer 5.4 Beta 2 is now available for download at http://mapserver.org/download. A number of bugs uncovered during testing of the first beta have been fixed. As a result a 3rd beta is planned for next Wed., March 4th. As always any help in testing the software is greatly appreciated. Findings should be sent to the mapserver-dev (or even just mapserver-users) mailing list. The updated 5.4 release plan can be found at: http://trac.osgeo.org/mapserver/wiki/54ReleasePlan Steve From Jukka.Rahkonen at mmmtike.fi Wed Feb 25 21:59:19 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 26 Feb 2009 07:59:19 +0200 Subject: [mapserver-users] Is using ECW format allowed or not? References: <48FCBCC8.9080504@hostgis.com> Message-ID: Hi, One comment about gdal JP2ECW driver. It has some bug and gives out a lossy image from a lossless original, at least if the original has been compressed with Kakadu. Difference in image quality is not great and the bug is not serious in normal browsing but it is worth knowing if planning to deliver imagery through Mapserver WCS. Gdal JP2KAK and JP2MrSID drivers works OK with lossless images as well. -Jukka Rahkonen- John Mitchell wrote: Does a JPEG2000 created by ER Mapper/ECW also require licensing like an ECW format file when used by MapServer? Thanks, John On Mon, Oct 20, 2008 at 12:15 PM, Gregor Mosheh wrote: > 1. Can we use our compressed ECW images as input for MapServer WMS? >> 2. Can we use ECW as an output format for MapServer WCS? >> > > The license agreement says that the ECW SDK cannot be used "on a server" > then goes on to define that as a computer connected to the Internet which > provides images. I'd say that clearly rules out MapServer consuming ECW. > Very unfortunate, but in my opinion very clear. > > In my tests, I have found that JPEG2000 and ECW are really too slow for > production use anyway. Maybe that's some "sour grapes" consolation? :) > > -- > Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ > System Administrator, Lead Programmer > HostGIS development & hosting services, http://www.HostGIS.com/ > > "Remember that no one cares if you can back up, > only if you can restore." - AMANDA > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- John J. Mitchell From asle at benoni.no Thu Feb 26 01:57:11 2009 From: asle at benoni.no (asle) Date: Thu, 26 Feb 2009 01:57:11 -0800 (PST) Subject: [mapserver-users] setenv MS_MAPFILE not working In-Reply-To: <49A5C6EE.5060109@mapgears.com> References: <1235599987085-2386468.post@n2.nabble.com> <49A5C6EE.5060109@mapgears.com> Message-ID: <1235642231957-2388730.post@n2.nabble.com> Yes, of course I miswrote that. This should be correct? SetEnvIf Request_URI "/cgi-bin/demo" MS_MAPFILE=/MS/apps/demo/demo.map SetEnvIf Request_URI "/cgi-bin/demo" MS_ERRORFILE=/MS/apps/demo/ms.log But I still get the same error when I type the URL http://domainname.../cgi-bin/demo No query information to decode. QUERY_STRING is set, but empty. -- View this message in context: http://n2.nabble.com/setenv-MS_MAPFILE-not-working-tp2386468p2388730.html Sent from the Mapserver - User mailing list archive at Nabble.com. From asle at benoni.no Thu Feb 26 02:15:05 2009 From: asle at benoni.no (asle) Date: Thu, 26 Feb 2009 02:15:05 -0800 (PST) Subject: [mapserver-users] Layer must have an EPSG or AUTO projection code Message-ID: <1235643305858-2388793.post@n2.nabble.com> Hello, Trying to get mapserver to work on Mac OS X Server 10.5.6. Here is my setup: MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I get this error when accessing the map file: msBuildWMSLayerURL(): WMS connection error. Layer must have an EPSG or AUTO projection code (in its PROJECTION object or wms_srs metadata) (If I try to remove all WMS layer I can see the map) I have exported from QGIS. All layers are shape files. I checked that all layers have the same EPSG id (32632) and all have same projection code. I tried several exports checking this but still get this error. /asle -- View this message in context: http://n2.nabble.com/Layer-must-have-an-EPSG-or-AUTO-projection-code-tp2388793p2388793.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Thu Feb 26 02:24:42 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 26 Feb 2009 12:24:42 +0200 Subject: [mapserver-users] Layer must have an EPSG or AUTO projection code In-Reply-To: <1235643305858-2388793.post@n2.nabble.com> Message-ID: Hi, Just for clarification, are you trying to connect to some external WMS service and cascade it through Mapserver? And the WMS layers that fail look something like this: LAYER NAME "prov_bound" TYPE RASTER STATUS ON CONNECTION "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:42304" "wms_name" "prov_bound" "wms_server_version" "1.1.1" "wms_format" "image/gif" END END What do you actually mean with "I have exported from QGIS. All layers are shape files."? -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta asle > L?hetetty: 26. helmikuuta 2009 12:15 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Layer must have an EPSG or AUTO > projection code > > > Hello, > Trying to get mapserver to work on Mac OS X Server 10.5.6. > Here is my setup: > MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG > SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT > SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS > INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > I get this error when accessing the map file: > msBuildWMSLayerURL(): WMS connection error. Layer must have > an EPSG or AUTO projection code (in its PROJECTION object or > wms_srs metadata) (If I try to remove all WMS layer I can see the map) > > I have exported from QGIS. All layers are shape files. I > checked that all layers have the same EPSG id (32632) and all > have same projection code. I tried several exports checking > this but still get this error. > > /asle > > -- > View this message in context: > http://n2.nabble.com/Layer-must-have-an-EPSG-or-AUTO-projectio > n-code-tp2388793p2388793.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Jukka.Rahkonen at mmmtike.fi Thu Feb 26 02:35:15 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 26 Feb 2009 12:35:15 +0200 Subject: [mapserver-users] setenv MS_MAPFILE not working In-Reply-To: <1235642231957-2388730.post@n2.nabble.com> Message-ID: Hi, This is not an error. You do not ask Mapserver to do anything for you, therefore it answers "QUERY_STRING is set, but empty." Add something reasonable to the query and you may start seeing something. You can start by addind ?mode=map&layers=all and sending the query from browser. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta asle > L?hetetty: 26. helmikuuta 2009 11:57 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] setenv MS_MAPFILE not working > > > Yes, of course I miswrote that. This should be correct? > SetEnvIf Request_URI "/cgi-bin/demo" > MS_MAPFILE=/MS/apps/demo/demo.map SetEnvIf Request_URI > "/cgi-bin/demo" MS_ERRORFILE=/MS/apps/demo/ms.log > > But I still get the same error when I type the URL > http://domainname.../cgi-bin/demo No query information to > decode. QUERY_STRING is set, but empty. > > -- > View this message in context: > http://n2.nabble.com/setenv-MS_MAPFILE-not-working-tp2386468p2 > 388730.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From kmanoj-pg7 at iiitmk.ac.in Thu Feb 26 02:37:13 2009 From: kmanoj-pg7 at iiitmk.ac.in (kmanoj-pg7 kmanoj-pg7) Date: Thu, 26 Feb 2009 16:07:13 +0530 Subject: [mapserver-users] loadOutputFormat(): error AGG/PNG driver isn't configured. Message-ID: <9ab9b8cf0902260237h73d8200eqebd0b0f512101c4f@mail.gmail.com> Dear users, I am using mapserver 5.0.3 on fedora 9. i have been trying out the examples given in the mapserver 5.x tutorial. i am receiving the following error message when attempting to use AGG Output format. i have installed AGG-2.5 through yum install command in fedora 9.... error message: *loadOutputFormat(): General error message. OUTPUTFORMAT clause references driver AGG/PNG, but this driver isn't configured. * This my mapfile for your kind attention MAP NAME Gods own country EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514 # LAEA #EXTENT -97.5 41.619778 -82.122902 49.38562 # Geographic SIZE 400 300 IMAGECOLOR 255 255 255 SHAPEPATH "/var/www/html/ms4w/aapa/tutorial/data" SYMBOLSET "/var/www/html/ms4w/aapa/tutorial/symbols/symbols35.sym" FONTSET "/var/www/html/ms4w/aapa/tutorial/fonts/fonts.list" IMAGETYPE PNG24 OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END OUTPUTFORMAT NAME png24 DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" END OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" FORMATOPTION "QUALITY=75" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" END OUTPUTFORMAT NAME GTiff DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE RGB EXTENSION "tif" END OUTPUTFORMAT NAME AGG DRIVER "AGG/PNG" IMAGEMODE RGB END OUTPUTFORMAT NAME AGGA DRIVER "AGG/PNG" IMAGEMODE RGBA END OUTPUTFORMAT NAME AGGJ DRIVER "AGG/JPEG" IMAGEMODE RGB END WEB IMAGEPATH '/tmp/ms_tmp/' IMAGEURL '/ms_tmp/' END PROJECTION "init=epsg:2163" END LAYER NAME districts DATA parl_04 STATUS OFF TYPE POLYGON PROJECTION "init=epsg:4326" END CLASSITEM "NAME" CLASS EXPRESSION 'party' STYLE SYMBOL 0 COLOR 232 232 232 END END END . . . . LAYER NAME districts DATA parl_04 STATUS OFF TYPE ANNOTATION PROJECTION "init=epsg:4326" END CLASSITEM "NAME" LABELITEM "WINNER" CLASS EXPRESSION 'party' STYLE COLOR -1 -1 -1 END LABEL COLOR 255 255 255 TYPE TRUETYPE FONT arial-bold SIZE 12 ANTIALIAS TRUE POSITION CL PARTIALS FALSE MINDISTANCE 300 BUFFER 4 END # end of label END # end of class END # States label layer ends here # End of LAYER DEFINITIONS ------------------------------- END # end of map file can anyone please help me out ..... suggestion will be appreciated.. Thanks kapilmanoj -------------- next part -------------- An HTML attachment was scrubbed... URL: From asle at benoni.no Thu Feb 26 02:48:13 2009 From: asle at benoni.no (asle) Date: Thu, 26 Feb 2009 02:48:13 -0800 (PST) Subject: [mapserver-users] setenv MS_MAPFILE not working In-Reply-To: References: <1235599987085-2386468.post@n2.nabble.com> <49A5C6EE.5060109@mapgears.com> <1235642231957-2388730.post@n2.nabble.com> Message-ID: <1235645293974-2388949.post@n2.nabble.com> Thanks, I thought that setenvif should fix that but I understand it needs some more info. When I then enter http://domainname.../cgi-bin/demo?mode=map&layers=all I then get this error: loadMap(): Web application error. CGI variable "map" is not set. so it seems it could be my path is not set correctly in my mapserv.conf (http). Is the pathe in SETENVIF local or from the webroot for apache or webroot for the domain? /asle Rahkonen Jukka wrote: > > Hi, > > This is not an error. You do not ask Mapserver to do anything for you, > therefore it answers "QUERY_STRING is set, but empty." Add something > reasonable to the query and you may start seeing something. You can start > by adding > ?mode=map&layers=all > and sending the query from browser. > > -Jukka Rahkonen- > > > >> -----Alkuper?inen viesti----- >> L?hett?j?: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta asle >> L?hetetty: 26. helmikuuta 2009 11:57 >> Vastaanottaja: mapserver-users at lists.osgeo.org >> Aihe: Re: [mapserver-users] setenv MS_MAPFILE not working >> >> >> Yes, of course I miswrote that. This should be correct? >> SetEnvIf Request_URI "/cgi-bin/demo" >> MS_MAPFILE=/MS/apps/demo/demo.map SetEnvIf Request_URI >> "/cgi-bin/demo" MS_ERRORFILE=/MS/apps/demo/ms.log >> >> But I still get the same error when I type the URL >> http://domainname.../cgi-bin/demo No query information to >> decode. QUERY_STRING is set, but empty. >> >> -- >> View this message in context: >> http://n2.nabble.com/setenv-MS_MAPFILE-not-working-tp2386468p2 >> 388730.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/setenv-MS_MAPFILE-not-working-tp2386468p2388949.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Thu Feb 26 02:57:00 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 26 Feb 2009 12:57:00 +0200 Subject: [mapserver-users] setenv MS_MAPFILE not working In-Reply-To: <1235645293974-2388949.post@n2.nabble.com> Message-ID: I am having a full physical path there MS_MAPFILE=d:/data/maps/test.map -Jukka- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta asle > L?hetetty: 26. helmikuuta 2009 12:48 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] setenv MS_MAPFILE not working > > > Thanks, > I thought that setenvif should fix that but I understand it > needs some more info. When I then enter > http://domainname.../cgi-bin/demo?mode=map&layers=all > I then get this error: > loadMap(): Web application error. CGI variable "map" is not set. > so it seems it could be my path is not set correctly in my > mapserv.conf (http). Is the pathe in SETENVIF local or from > the webroot for apache or webroot for the domain? > > /asle > > > Rahkonen Jukka wrote: > > > > Hi, > > > > This is not an error. You do not ask Mapserver to do anything for > > you, therefore it answers "QUERY_STRING is set, but empty." Add > > something reasonable to the query and you may start seeing > something. > > You can start by adding ?mode=map&layers=all and sending the query > > from browser. > > > > -Jukka Rahkonen- > > > > > > > >> -----Alkuper?inen viesti----- > >> L?hett?j?: mapserver-users-bounces at lists.osgeo.org > >> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta asle > >> L?hetetty: 26. helmikuuta 2009 11:57 > >> Vastaanottaja: mapserver-users at lists.osgeo.org > >> Aihe: Re: [mapserver-users] setenv MS_MAPFILE not working > >> > >> > >> Yes, of course I miswrote that. This should be correct? > >> SetEnvIf Request_URI "/cgi-bin/demo" > >> MS_MAPFILE=/MS/apps/demo/demo.map SetEnvIf Request_URI > >> "/cgi-bin/demo" MS_ERRORFILE=/MS/apps/demo/ms.log > >> > >> But I still get the same error when I type the URL > >> http://domainname.../cgi-bin/demo No query information to decode. > >> QUERY_STRING is set, but empty. > >> > >> -- > >> View this message in context: > >> http://n2.nabble.com/setenv-MS_MAPFILE-not-working-tp2386468p2 > >> 388730.html > >> Sent from the Mapserver - User mailing list archive at Nabble.com. > >> > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > -- > View this message in context: > http://n2.nabble.com/setenv-MS_MAPFILE-not-working-tp2386468p2 > 388949.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From asle at benoni.no Thu Feb 26 02:58:01 2009 From: asle at benoni.no (asle) Date: Thu, 26 Feb 2009 02:58:01 -0800 (PST) Subject: [mapserver-users] Layer must have an EPSG or AUTO projection code In-Reply-To: References: <1235643305858-2388793.post@n2.nabble.com> Message-ID: <1235645881660-2388992.post@n2.nabble.com> Hi, This was very helpful. I looked at the map file and noticed that QGIS had not written any 'wms_srs' line. This must be a bug in the Mac OS X version of QGIS? When I adde that line to every layer it seems to display the map without errors. Here is one changed layer: LAYER NAME 'Markslag WMS' TYPE RASTER CONNECTIONTYPE WMS CONNECTION 'http://wms.geonorge.no/skwms1/wms.topo?' METADATA 'wms_name' 'N5000Markslag,N2000Markslag,N1000Markslag,N500Markslag,N250Markslag,N50Markslag' 'wms_srs' 'EPSG:32632' 'wms_server_version' '1.1.1' 'wms_format' 'image/png' 'wms_style' ',,,,,' END METADATA 'wms_title' 'Markslag WMS' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=utm' 'zone=32' 'ellps=WGS84' 'datum=WGS84' 'units=m' 'no_defs' '' END END /asle Rahkonen Jukka wrote: > > Hi, > > Just for clarification, are you trying to connect to some external WMS > service and cascade it through Mapserver? > And the WMS layers that fail look something like this: > > LAYER > NAME "prov_bound" > TYPE RASTER > STATUS ON > CONNECTION "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?" > CONNECTIONTYPE WMS > METADATA > "wms_srs" "EPSG:42304" > "wms_name" "prov_bound" > "wms_server_version" "1.1.1" > "wms_format" "image/gif" > END > END > > What do you actually mean with "I have exported from QGIS. All layers are > shape files."? > > -Jukka Rahkonen- > > > -- View this message in context: http://n2.nabble.com/Layer-must-have-an-EPSG-or-AUTO-projection-code-tp2388793p2388992.html Sent from the Mapserver - User mailing list archive at Nabble.com. From gautamvs at gmail.com Thu Feb 26 05:10:28 2009 From: gautamvs at gmail.com (gautamvs) Date: Thu, 26 Feb 2009 05:10:28 -0800 (PST) Subject: [mapserver-users] Pyhton mapscript import error In-Reply-To: <1234948665484-2345804.post@n2.nabble.com> References: <1234883796448-2341344.post@n2.nabble.com> <499B63C6.9000507@neogeo-online.net> <1234948665484-2345804.post@n2.nabble.com> Message-ID: <1235653828284-2389536.post@n2.nabble.com> Hi Guillaume, I followed the steps you had mentioned. I was able to install and import python mapscript successfully.Thanks for the same. Still I was not able to get images anti-aliased while seeding using tilecache_seed.py cmd used: python tilecache_seed.py rmap_vector 0 3 -f tilecache.cfg [rmap_vector] type=MapServer layers=road mapfile=/var/www/html/mapserver/test.map antialias=true #scaling=antialias (tried this options also) bbox=.... levels=8 resolutions=0.000171661376953125,0.0000858306884765625,0.00004291534423828125,0.000021457672119140625,0.0000107288360595703125,0.00000536441802978515625,0.000002682209014892578125 While I was able to get anti-aliased image using python mapscript with same mapfile >>> import mapscript >>> mapfile = '/var/www/html/mapserver/test.map' >>> m = mapscript.mapObj(mapfile) >>> img =m.draw() >>> img.save('map.png') map.png is anti-aliased image (as i have taken output format in mapfile using AGG driver) What could be the reason that tilecache_seed.py is not genreating the anti-aliased image. regards Gautam -- View this message in context: http://n2.nabble.com/Pyhton-mapscript-import-error-tp2341344p2389536.html Sent from the Mapserver - User mailing list archive at Nabble.com. From asle at benoni.no Thu Feb 26 05:48:39 2009 From: asle at benoni.no (asle) Date: Thu, 26 Feb 2009 05:48:39 -0800 (PST) Subject: [mapserver-users] setenv MS_MAPFILE not working In-Reply-To: References: <1235599987085-2386468.post@n2.nabble.com> <49A5C6EE.5060109@mapgears.com> <1235642231957-2388730.post@n2.nabble.com> <1235645293974-2388949.post@n2.nabble.com> Message-ID: <1235656119708-2389693.post@n2.nabble.com> I tried full physical path but it does not work. What would be correct paths for the file on OS X. Any Idea? This is OS X Server 10.5.6 running Apache 2.2. Here is the included conf file: Alias /demo "/Library/WebServer/Naturkart/kulturminnekart/apps/demo/" # set directory defaults for the above mapping AllowOverride None Options Indexes FollowSymLinks Multiviews Order allow,deny Allow from all SetEnvIf Request_URI "/cgi-bin/demo" MS_MAPFILE=/Library/WebServer/Documents/Naturkart/kulturminnekart/apps/demo/demo.map SetEnvIf Request_URI "/cgi-bin/demo" MS_ERRORFILE=/Library/WebServer/Documents/Naturkart/kulturminnekart/apps/demo/ms.log Rahkonen Jukka wrote: > > I am having a full physical path there > MS_MAPFILE=d:/data/maps/test.map > > -Jukka- > -- View this message in context: http://n2.nabble.com/setenv-MS_MAPFILE-not-working-tp2386468p2389693.html Sent from the Mapserver - User mailing list archive at Nabble.com. From andrea.ardito at provincia.biella.it Thu Feb 26 06:00:10 2009 From: andrea.ardito at provincia.biella.it (Andrea Ardito) Date: Thu, 26 Feb 2009 15:00:10 +0100 Subject: [mapserver-users] WMS problem Message-ID: Hi, we have this system working with MapServer version 4.8.2, PHP version 4.4.2. I am trying to do a map that shows both layer (WGS84 shapefile) and WMS data togheter. The starting response is ok, but I get the blank image from the first pan or zoom on. This is the example URL: http://webgis.provincia.biella.it/apps/maplab/projects/gmf_apps/basewms4/wmdmap.php I guess the problem is due to wrong parameters for EXTENT, SIZE and PROJECTION in the mapfile. These are: EXTENT -15 25 40 70 SIZE 470 520 PROJECTION "init=epsg:4326". The question are: 1. the SIZE (in pixel) has to be proportional to the EXTENT? 2. if yes, how to obtain the right values for the EXTENT? 3. if not, where is the problem? 4. in a map with geographic non-projected data like this, is correct to have value for scale of the representation since UNITS are DD? I would be very grateful for any help from you all, thanks! Best regards andrea ardito P.S. If I set no layer in the map file, and I try to represent only WMS layer (adding them from "Servizi WMS" button), it works. arch. Andrea ARDITO Sistema Informativo Territoriale Ambientale (S.I.T.A.) Settore Pianificazione e Sicurezza del Territorio Provincia di Biella Via Quintino Sella, 12 - 13900 BIELLA tel. 015.8480880 fax. 015.8480740 --http://www.provincia.biella.it------------------------------------------------------ Vuoi rimanere sempre aggiornato sulle nostre attivita'? Visita la pagina dei feed RSS sul nostro sito ed iscriviti alla sezione di interesse. --Avviso------------------------------------------------------------------------------ Questo messaggio e i suoi allegati sono riservati esclusivamente alle persone in indirizzo e possono contenere informazioni confidenziali. Se questo messaggio vi e' pervenuto per errore, vi informiamo che ogni suo uso e'proibito. In questo caso rispedite immediatamente il messaggio al mittente e cancellatelo. Per ogni chiarimento contattateci scrivendo a ced at provincia.biella.it. Grazie -Il Webmaster. --Warning----------------------------------------------------------------------------- This message and its attachments are addressed solely to the persons above and may contain confidential information. If you have received the message in error, be informed that any use of the content hereof is prohibited. Please return it immediately to the sender and delete the message. Should you have any questions, please contact us by replying to ced at provincia.biella.it. The Webmaster. -------------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From akrosengreen at yahoo.dk Thu Feb 26 06:37:09 2009 From: akrosengreen at yahoo.dk (andersr) Date: Thu, 26 Feb 2009 06:37:09 -0800 (PST) Subject: [mapserver-users] Setting scale on mapobject Message-ID: <1235659029708-2389961.post@n2.nabble.com> Hi, Does anybody know how to set the scale on a mapobject in mapscript? And what is the difference between scale and zoomlevel? Regards Anders -- View this message in context: http://n2.nabble.com/Setting-scale-on-mapobject-tp2389961p2389961.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woklist at kyngchaos.com Thu Feb 26 06:45:35 2009 From: woklist at kyngchaos.com (William Kyngesburye) Date: Thu, 26 Feb 2009 08:45:35 -0600 Subject: [mapserver-users] MapServer 5.4 Beta 2 Available In-Reply-To: <49A5D7E70200008F00021085@co5.dnr.state.mn.us> References: <49A5D7E70200008F00021085@co5.dnr.state.mn.us> Message-ID: I didn't see bug #2897 in the history list. It just missed beta 1, and I figured it would be in beta 2. On Feb 25, 2009, at 11:44 PM, Steve Lime wrote: > Greetings all: MapServer 5.4 Beta 2 is now available for download at http://mapserver.org/download > . A number of bugs uncovered during testing of the first beta have > been fixed. As a result a 3rd beta is planned for next Wed., March > 4th. As always any help in testing the software is greatly > appreciated. Findings should be sent to the mapserver-dev (or even > just mapserver-users) mailing list. > > The updated 5.4 release plan can be found at: > > http://trac.osgeo.org/mapserver/wiki/54ReleasePlan > > Steve > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users ----- William Kyngesburye http://www.kyngchaos.com/ "The beast is actively interested only in now, and, as it is always now and always shall be, there is an eternity of time for the accomplishment of objects." - the wisdom of Tarzan From pgiannini at bytewise.it Thu Feb 26 07:11:41 2009 From: pgiannini at bytewise.it (Pietro Giannini) Date: Thu, 26 Feb 2009 16:11:41 +0100 Subject: [mapserver-users] WMS problem In-Reply-To: References: Message-ID: <49A6B12D.9090308@bytewise.it> Hi Andrea, 1. no 2. no matters 3. It is difficult to answer... If the problem is EXTENT & PROJECTION, remember that a .map file has the PROJECTION set at map level and PROJECTIONs set at layers level; the map Projection is the projection system of the result of the map (i.e. the map image), the layer Projection is the projection system of the data source of the layer. If a layer datasource projection differs from the map projection, you must to set it, otherwise ms try to project the data according with map projection. Try invoke mapserver in cgi mode to see the results: http://the.host/cgi-bin/mapserv?map=/path/of/the.map&mode=map&layer=... Imho your problem isn't the map, but occurs in your php script. Take a look on the php error log: it is a text file, its path is set in your php.ini file (error_log directive, can be an absolute or relative path) 4. obviously scale is nonsense when using non-projected reference systems like epsg:4326, but mapserver does not know. hth ciao ....................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E Andrea Ardito ha scritto: > Hi, we have this system working with MapServer version 4.8.2, PHP > version 4.4.2. I am trying to do a map that shows both layer (WGS84 > shapefile) and WMS data togheter. The starting response is ok, but I get the > blank image from the first pan or zoom on. This is the example URL: > http://webgis.provincia.biella.it/apps/maplab/projects/gmf_apps/basewms4/wmdmap.php > I guess the problem is due to wrong parameters for EXTENT, SIZE and > PROJECTION in the mapfile. These are: EXTENT -15 25 40 70 SIZE 470 520 > PROJECTION "init=epsg:4326". The question are: 1. the SIZE (in pixel) has > to be proportional to the EXTENT? 2. if yes, how to obtain the right values > for the EXTENT? 3. if not, where is the problem? 4. in a map with geographic > non-projected data like this, is correct to have value for scale of the > representation since UNITS are DD? I would be very grateful for any help > from you all, thanks! Best regards andrea ardito P.S. If I set no layer in > the map file, and I try to represent only WMS layer (adding them from > "Servizi WMS" button), it works. > > > arch. Andrea ARDITO > Sistema Informativo Territoriale Ambientale (S.I.T.A.) > Settore Pianificazione e Sicurezza del Territorio > Provincia di Biella > Via Quintino Sella, 12 - 13900 BIELLA > tel. 015.8480880 > fax. 015.8480740 > > --http://www.provincia.biella.it------------------------------------------------------ > > Vuoi rimanere sempre aggiornato sulle nostre attivita'? > Visita la pagina dei feed RSS sul nostro sito ed iscriviti alla > sezione di interesse. > > --Avviso------------------------------------------------------------------------------ > Questo messaggio e i suoi allegati sono riservati esclusivamente alle > persone in > indirizzo e possono contenere informazioni confidenziali. Se questo > messaggio vi e' > pervenuto per errore, vi informiamo che ogni suo uso e'proibito. > In questo caso rispedite immediatamente il messaggio al mittente e > cancellatelo. > Per ogni chiarimento contattateci scrivendo a ced at provincia.biella.it. > Grazie -Il Webmaster. > --Warning----------------------------------------------------------------------------- > This message and its attachments are addressed solely to the persons > above and may > contain confidential information. If you have received the message in > error, be > informed that any use of the content hereof is prohibited. > Please return it immediately to the sender and delete the message. > Should you have > any questions, please contact us by replying to ced at provincia.biella.it. > The Webmaster. > -------------------------------------------------------------------------------------- > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pgiannini at bytewise.it Thu Feb 26 07:23:54 2009 From: pgiannini at bytewise.it (Pietro Giannini) Date: Thu, 26 Feb 2009 16:23:54 +0100 Subject: [mapserver-users] Setting scale on mapobject In-Reply-To: <1235659029708-2389961.post@n2.nabble.com> References: <1235659029708-2389961.post@n2.nabble.com> Message-ID: <49A6B40A.7050006@bytewise.it> Hi Anders, the mapObject.scale is deprecated, use mapObject.scaledenom. It is the denominator of the scale ratio: if the scale is 1:100000, the mapObject.scale(denom) is 100000. This is a read-only property, it cannot be set programmatically because it is set by the mapObject.drawMap() function, but you can use the mapObject.zoomscale() function. Take a look here: http://mapserver.org/mapscript/php/index.html#mapobj-class. Zoomlevel I don't know, perhaps you refer to zoomfactor, that is a parameter of the mapObject.zoompoint() function. hth bye ...................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E andersr ha scritto: > Hi, > > Does anybody know how to set the scale on a mapobject in mapscript? > > And what is the difference between scale and zoomlevel? > > Regards > > Anders > From MMaganti at oriongis.com Thu Feb 26 08:00:28 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Thu, 26 Feb 2009 11:00:28 -0500 Subject: [mapserver-users] WFS Layer + C# map script Message-ID: Hi I am trying load a WFS layer and getting the following error calling mapObj.draw(). Is WFS layer handled by OGR or is it handled directly by map server. When I ran 'orginfo -formats', it does not show WFS as supported format by OGR. WFS URL in map file is correct and I can see the capabilities xml in browser using the url. Here is the error msDrawMap(): Image handling error. Failed to draw layer named 'Municipality (id=0)'.;msOGRFileOpen(): OGR error. Open failed for OGR connection in layer ` Municipality (id=0)'. File not found or unsupported format. Layer entry in the map file LAYER CONNECTION "http://vmonp03/wfsconnector/com.esri.wfs.Esrimap/ MS01?" CONNECTIONTYPE WFS METADATA "wfs_srs" "EPSG:26917" "wfs_request_method" "GET" "wfs_typename" "Municipality-0" "wfs_service" "WFS" "wfs_version" "1.0.0" END NAME "Municipality (id=0)" STATUS ON TYPE POLYGON UNITS METERS CLASS NAME "Municipality (id=0)" STYLE COLOR 184 155 225 OPACITY 100 OUTLINECOLOR 0 0 0 SYMBOL 0 END END END Thanks Murty -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Thu Feb 26 08:13:11 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Thu, 26 Feb 2009 11:13:11 -0500 Subject: [mapserver-users] WFS Layer + C# map script In-Reply-To: References: Message-ID: <49A6BF97.7040700@dmsolutions.ca> Hi Murty, MapServer does a request to the WFS server to get the GML file. This GML file is saved locally and rendered by OGR as a vector layer. You might want to check the file you got from the server (should be inside web.imagepath (xxxx.tmp.gml) and see if it is valid or/if can be opened with ogr. Best Regards Murty Maganti wrote: > Hi > > > > I am trying load a WFS layer and getting the following error calling > mapObj.draw(). Is WFS layer handled by OGR or is it handled directly by > map server. When I ran ?orginfo ?formats?, it does not show WFS as > supported format by OGR. WFS URL in map file is correct and I can see > the capabilities xml in browser using the url. > > > > Here is the error > > msDrawMap(): Image handling error. Failed to draw layer named > ?Municipality (id=0)'.;msOGRFileOpen(): OGR error. Open failed for OGR > connection in layer ` Municipality (id=0)'. File not found or > unsupported format. > > > > Layer entry in the map file > > > > LAYER > > CONNECTION "http://vmonp03/wfsconnector/com.esri.wfs.Esrimap/ MS01?" > > CONNECTIONTYPE WFS > > METADATA > > "wfs_srs" "EPSG:26917" > > "wfs_request_method" "GET" > > "wfs_typename" "Municipality-0" > > "wfs_service" "WFS" > > "wfs_version" "1.0.0" > > END > > NAME "Municipality (id=0)" > > STATUS ON > > TYPE POLYGON > > UNITS METERS > > CLASS > > NAME "Municipality (id=0)" > > STYLE > > COLOR 184 155 225 > > OPACITY 100 > > OUTLINECOLOR 0 0 0 > > SYMBOL 0 > > END > > END > > END > > > > Thanks > > Murty > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From dmorissette at mapgears.com Thu Feb 26 09:00:14 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 26 Feb 2009 12:00:14 -0500 Subject: [mapserver-users] Status on ticket 2582? In-Reply-To: <49A291FF.5157.008F.0@dnr.state.mn.us> References: <1234821290361-2337548.post@n2.nabble.com> <4999E16F.30502@mapgears.com> <1235137197915-2358883.post@n2.nabble.com> <200902200907.55282.aboudreault@mapgears.com> <499EBA5E.4010004@gatewaygeomatics.com> <200902200931.38323.aboudreault@mapgears.com> <499EC67F.2060409@gatewaygeomatics.com> <1235168205544-2361593.post@n2.nabble.com> <499FB3EB.9050400@gmx.net> <1235211218284-2363221.post@n2.nabble.com> <49A15AFF.8060107@gmx.net> <1235312329092-2367635.post@n2.nabble.com> <1235312823870-2367659.post@n2.nabble.com> <49A1863F.2070809@mapgears.com> <49A1A2A4.1010809@gmx.net> <1235343099022-2369505.post@n2.nabble.com> <49A291FF.5157.008F.0@dnr.state.mn.us> Message-ID: <49A6CA9E.8080003@mapgears.com> Steve Lime wrote: > Hi guys: I think we need a small RFC on this issue. The impacts are too > broad to handle > without a formal plan. Anyone care to take the lead? > I agree with the need for a RFC, but as I found out in reading some of the comments (which reminded me of all the past headaches related to this), there are several angles to consider, so before we even think of a RFC we need an organized discussion on this. I have prepared a Wiki page to collect use cases, and eventually start proposing and discussing solutions: http://trac.osgeo.org/mapserver/wiki/HidingLayersInOGCWebServices You are invited to add well documented use cases to the page. I have started with a few of the most common ones that I remembered. The rest of the discussion on this topic should happen on the mapserver-dev list. I'll go start another thread there now. Daniel -- Daniel Morissette http://www.mapgears.com/ From adube at mapgears.com Thu Feb 26 09:26:30 2009 From: adube at mapgears.com (Alexandre Dube) Date: Thu, 26 Feb 2009 12:26:30 -0500 Subject: [mapserver-users] Setting scale on mapobject In-Reply-To: <49A6B40A.7050006@bytewise.it> References: <1235659029708-2389961.post@n2.nabble.com> <49A6B40A.7050006@bytewise.it> Message-ID: <49A6D0C6.9000109@mapgears.com> Hi Pietro, You could try this (untested): $nScaleDenom = 50000; // your scaledenom value $oCenter = ms_newPointObj(); $nX = $oMap->width / 2; $nY = $oMap->height / 2; $oCenter->setXY($nX,$nY); $oMap->zoomscale($nScaleDenom, $oCenter, $oMap->width, $oMap->height, $oMap->extent); Regards, Alexandre Pietro Giannini wrote: > Hi Anders, > the mapObject.scale is deprecated, use mapObject.scaledenom. It is the > denominator of the scale ratio: if the scale is 1:100000, the > mapObject.scale(denom) is 100000. > This is a read-only property, it cannot be set programmatically > because it is set by the mapObject.drawMap() function, but you can use > the mapObject.zoomscale() function. Take a look here: > http://mapserver.org/mapscript/php/index.html#mapobj-class. > > Zoomlevel I don't know, perhaps you refer to zoomfactor, that is a > parameter of the mapObject.zoompoint() function. > > hth > bye ...................pg > > -- Alexandre Dub? Mapgears www.mapgears.com From pauljame at gmail.com Thu Feb 26 09:59:24 2009 From: pauljame at gmail.com (Paul james) Date: Thu, 26 Feb 2009 14:59:24 -0300 Subject: [mapserver-users] Status on ticket 2887 ... 5.4? Message-ID: <33fad6880902260959g22b7e1ddpcf117bdad8ea3e1@mail.gmail.com> Hello Guys... I?d like to know about http://trac.osgeo.org/mapserver/ticket/2887 Is this going to be included in 5.4? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From MMaganti at oriongis.com Thu Feb 26 10:59:35 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Thu, 26 Feb 2009 13:59:35 -0500 Subject: [mapserver-users] WFS Layer + C# map script In-Reply-To: <49A6BF97.7040700@dmsolutions.ca> References: <49A6BF97.7040700@dmsolutions.ca> Message-ID: Hi Assefa Yes, the problem seems to be related to the GML file not accessible. I normally leave WEB->IMAGEPATH empty in my map files as my application displays map image on a windows form directly. When I started adding support for WMS layers, I noticed that it is using imagepath to store temporary files. I didn't want to specify a qualified path as the map file will not load on other machines which may not have the same path. I tried "\" (after briefly scanning through msBuildPath and msBuildPath3 methods) and it worked for WMS. I guess "\" gets resolved to location of the map file. But same is not working for WFS. If I change the path from "\" to a fully qualified path, I don't see that error any more. But I don't want to use fully qualified path. I want to use any relative path that can be resolved to map file path or shappath or any other location. What is the best relative path I can use for imagepath that can work for WMS/WFS or any other data sources that use this to store temporary files. Thanks Murty -----Original Message----- From: Yewondwossen Assefa [mailto:yassefa at dmsolutions.ca] Sent: Thursday, February 26, 2009 11:13 AM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WFS Layer + C# map script Hi Murty, MapServer does a request to the WFS server to get the GML file. This GML file is saved locally and rendered by OGR as a vector layer. You might want to check the file you got from the server (should be inside web.imagepath (xxxx.tmp.gml) and see if it is valid or/if can be opened with ogr. Best Regards Murty Maganti wrote: > Hi > > > > I am trying load a WFS layer and getting the following error calling > mapObj.draw(). Is WFS layer handled by OGR or is it handled directly by > map server. When I ran 'orginfo -formats', it does not show WFS as > supported format by OGR. WFS URL in map file is correct and I can see > the capabilities xml in browser using the url. > > > > Here is the error > > msDrawMap(): Image handling error. Failed to draw layer named > 'Municipality (id=0)'.;msOGRFileOpen(): OGR error. Open failed for OGR > connection in layer ` Municipality (id=0)'. File not found or > unsupported format. > > > > Layer entry in the map file > > > > LAYER > > CONNECTION "http://vmonp03/wfsconnector/com.esri.wfs.Esrimap/ MS01?" > > CONNECTIONTYPE WFS > > METADATA > > "wfs_srs" "EPSG:26917" > > "wfs_request_method" "GET" > > "wfs_typename" "Municipality-0" > > "wfs_service" "WFS" > > "wfs_version" "1.0.0" > > END > > NAME "Municipality (id=0)" > > STATUS ON > > TYPE POLYGON > > UNITS METERS > > CLASS > > NAME "Municipality (id=0)" > > STYLE > > COLOR 184 155 225 > > OPACITY 100 > > OUTLINECOLOR 0 0 0 > > SYMBOL 0 > > END > > END > > END > > > > Thanks > > Murty > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From nsavard at mapgears.com Thu Feb 26 11:29:41 2009 From: nsavard at mapgears.com (Normand Savard) Date: Thu, 26 Feb 2009 14:29:41 -0500 Subject: [mapserver-users] Re: [mapserver-dev] MapServer 5.4 Beta 2 Available In-Reply-To: <49A5D7E70200008F00021085@co5.dnr.state.mn.us> References: <49A5D7E70200008F00021085@co5.dnr.state.mn.us> Message-ID: <49A6EDA5.4010802@mapgears.com> Steve Lime wrote: > Greetings all: MapServer 5.4 Beta 2 is now available for download at http://mapserver.org/download. A number of bugs uncovered during testing of the first beta have been fixed. As a result a 3rd beta is planned for next Wed., March 4th. As always any help in testing the software is greatly appreciated. Findings should be sent to the mapserver-dev (or even just mapserver-users) mailing list. > > The updated 5.4 release plan can be found at: > > http://trac.osgeo.org/mapserver/wiki/54ReleasePlan > > As usual the FGS package for MapServer and the self-installer for this Beta can be found: http://dl.maptools.org/dl/fgs/releases/1.0/1.0.0/ Norm From armin.burger at gmx.net Thu Feb 26 11:42:14 2009 From: armin.burger at gmx.net (Armin Burger) Date: Thu, 26 Feb 2009 20:42:14 +0100 Subject: [mapserver-users] MapServer 5.4 Beta 2 Available In-Reply-To: <49A5D7E70200008F00021085@co5.dnr.state.mn.us> References: <49A5D7E70200008F00021085@co5.dnr.state.mn.us> Message-ID: <49A6F096.20200@gmx.net> Hello just a more marginal remark regarding WCS and time support: is there a chance that the small patches for WCS-T (tickets #2487 and #1856) will make it into the 5.4? Greetings, Armin On 26/02/2009 06:44, Steve Lime wrote: > Greetings all: MapServer 5.4 Beta 2 is now available for download at http://mapserver.org/download. A number of bugs uncovered during testing of the first beta have been fixed. As a result a 3rd beta is planned for next Wed., March 4th. As always any help in testing the software is greatly appreciated. Findings should be sent to the mapserver-dev (or even just mapserver-users) mailing list. > > The updated 5.4 release plan can be found at: > > http://trac.osgeo.org/mapserver/wiki/54ReleasePlan > > Steve > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Bob.Bistrais at maine.gov Thu Feb 26 12:38:13 2009 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Thu, 26 Feb 2009 15:38:13 -0500 Subject: [mapserver-users] Reducing background color with Internet Explorer Message-ID: <4EFF8BB964547748A07CA32961810C0412C48417@SOM-TEAQASMAIL1.som.w2k.state.me.us> I've been putting together maps with numerous layers. I had been using the Offsite command to reduce the background color of those layers, so that subsequent layers don't obscure the ones under them. But I'm still having trouble with Internet Explorer. Maps that look fine in Firefox still have layers obscuring each other in IE. Does anyone have more recommendations on how to reduce the layer background? -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Thu Feb 26 12:55:40 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 26 Feb 2009 15:55:40 -0500 Subject: [mapserver-users] Patent on making maps on the Internet Message-ID: <49A701CC.9020200@mapgears.com> Some of you may remember the patent that was awarded to multimap.com back in 2000-2001. We all thought it was dead, but I came across a blog a few days ago (http://www.systemed.net/blog/?p=68) that leads to the conclusion that Microsoft (who bought multimap.com) may have started licensing this patent (or some related one). I don't think there is much to worry about given the amount of prior art, but since this blog was very well written and contained lots of interesting references, I started a page in the OSGeo wiki to keep a trace of all that collective knowledge, in case it is ever needed. The wiki entry is at http://wiki.osgeo.org/wiki/Web_Mapping_Patents, and as for any wiki, you are welcome to contribute any relevant info that you may have. Daniel -- Daniel Morissette http://www.mapgears.com/ From crschmidt at metacarta.com Thu Feb 26 12:58:03 2009 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Thu, 26 Feb 2009 15:58:03 -0500 Subject: [mapserver-users] Reducing background color with Internet Explorer In-Reply-To: <4EFF8BB964547748A07CA32961810C0412C48417@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C0412C48417@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <20090226205803.GH16867@metacarta.com> On Thu, Feb 26, 2009 at 03:38:13PM -0500, Bistrais, Bob wrote: > I've been putting together maps with numerous layers. I had been using > the Offsite command to reduce the background color of those layers, so > that subsequent layers don't obscure the ones under them. But I'm still > having trouble with Internet Explorer. Maps that look fine in Firefox > still have layers obscuring each other in IE. Does anyone have more > recommendations on how to reduce the layer background? Presumably you arae using multiple layers in the browser, using something like OpenLayers? A simple answer is "Don't do that": merge your layers on the server side. another possible answer is "Use png8/gif instead of PNG RGBA." Regards, -- Christopher Schmidt MetaCarta From emiliomayorga at gmail.com Thu Feb 26 13:09:31 2009 From: emiliomayorga at gmail.com (Emilio Mayorga) Date: Thu, 26 Feb 2009 13:09:31 -0800 Subject: [mapserver-users] Suggestions for OGC SOS clients? OpenLayers? Message-ID: MapServer can serve data via OGC SOS; I've been reading about this, though I haven't tried it yet. What I'd like to ask is for pointers or recommendations for open source SOS *clients*, preferably web applications but I'd be interested in hearing about desktop clients, too. I found a presentation from FOSS4G 2008 that talked about the addition of an SOS Layer type to OpenLayers: http://www.terrestris.de/wiki/doku.php?id=vortraege:2008:foss4g_sensor But it doesn't look like the code has made it to the trunk yet. 52North apparently has a client, but it looks like it's part of a heavy and all-encompassing Java framework http://52north.org/index.php?option=com_content&view=category&layout=blog&id=30&Itemid=45 I'd like something easier to use -- javascript, php, python, etc. OpenLayers would be great. MapServer would be, too, but it definitely looks like it doesn't support SOS as a client (I don't see any documentation and haven't seen any chatter). Thanks! Apologies for the broad question that's not really MapServer-specific. -Emilio Mayorga Applied Physics Laboratory University of Washington Seattle, WA 98105-6698 USA From crschmidt at metacarta.com Thu Feb 26 13:47:37 2009 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Thu, 26 Feb 2009 16:47:37 -0500 Subject: [mapserver-users] Suggestions for OGC SOS clients? OpenLayers? In-Reply-To: References: Message-ID: <20090226214737.GK16867@metacarta.com> On Thu, Feb 26, 2009 at 01:09:31PM -0800, Emilio Mayorga wrote: > MapServer can serve data via OGC SOS; I've been reading about this, > though I haven't tried it yet. What I'd like to ask is for pointers or > recommendations for open source SOS *clients*, preferably web > applications but I'd be interested in hearing about desktop clients, > too. > > I found a presentation from FOSS4G 2008 that talked about the addition > of an SOS Layer type to OpenLayers: > http://www.terrestris.de/wiki/doku.php?id=vortraege:2008:foss4g_sensor > But it doesn't look like the code has made it to the trunk yet. I am an OpenLayers developer. I have never heard of this work before. So I can confirm that this work hasn't made it to trunk, but no one has followed any of the steps of getting it to trunk. Given that, I would say that the best bet is to follow up with the developers and encourage them to approach the OpenLayers community. Best Regards, -- Christopher Schmidt MetaCarta From emiliomayorga at gmail.com Thu Feb 26 15:27:24 2009 From: emiliomayorga at gmail.com (Emilio Mayorga) Date: Thu, 26 Feb 2009 15:27:24 -0800 Subject: [mapserver-users] Suggestions for OGC SOS clients? OpenLayers? In-Reply-To: <20090226214737.GK16867@metacarta.com> References: <20090226214737.GK16867@metacarta.com> Message-ID: On Thu, Feb 26, 2009 at 1:47 PM, Christopher Schmidt wrote: > On Thu, Feb 26, 2009 at 01:09:31PM -0800, Emilio Mayorga wrote: >> MapServer can serve data via OGC SOS; I've been reading about this, >> though I haven't tried it yet. What I'd like to ask is for pointers or >> recommendations for open source SOS *clients*, preferably web >> applications but I'd be interested in hearing about desktop clients, >> too. >> >> I found a presentation from FOSS4G 2008 that talked about the addition >> of an SOS Layer type to OpenLayers: >> http://www.terrestris.de/wiki/doku.php?id=vortraege:2008:foss4g_sensor >> But it doesn't look like the code has made it to the trunk yet. > > I am an OpenLayers developer. I have never heard of this work before. So > I can confirm that this work hasn't made it to trunk, but no one has > followed any of the steps of getting it to trunk. Given that, I would > say that the best bet is to follow up with the developers and encourage > them to approach the OpenLayers community. Thanks. As that was my hunch, I wanted to cast a wide net here. I'll contact the developers, though I probably won't use myself (at this point) something that's not robust. I should add that with the "Climate Change Integration Plugfest" announced a month ago for FOSS4G2009 (http://www.osgeo.org/news/2009/01/FOSS4G_Integration), maybe SOS will get more attention. Cheers, -Emilio From bks at centrum.cz Fri Feb 27 02:55:33 2009 From: bks at centrum.cz (Stanislav Bek) Date: Fri, 27 Feb 2009 11:55:33 +0100 Subject: [mapserver-users] file output In-Reply-To: <200902271154.29366@centrum.cz> References: <200902271148.10063@centrum.cz> <200902271149.20077@centrum.cz> <200902271150.31805@centrum.cz> <200902271151.11120@centrum.cz> <200902271152.18616@centrum.cz> <200902271153.11748@centrum.cz> <200902271154.29366@centrum.cz> Message-ID: <200902271155.19785@centrum.cz> Hi, how can I directly save image file from Mapserver? Wenn I put http://localhost/cgi-bin/mapserv?map=/var/mapservdata/jezera.map&mode=map into browser, I get html with image. I tried to use wget in shell in order to save the image file directly to disc. Without success. Could you please give me an advice. Stanislav From pgiannini at bytewise.it Fri Feb 27 03:16:19 2009 From: pgiannini at bytewise.it (Pietro Giannini) Date: Fri, 27 Feb 2009 12:16:19 +0100 Subject: [mapserver-users] file output In-Reply-To: <200902271155.19785@centrum.cz> References: <200902271148.10063@centrum.cz> <200902271149.20077@centrum.cz> <200902271150.31805@centrum.cz> <200902271151.11120@centrum.cz> <200902271152.18616@centrum.cz> <200902271153.11748@centrum.cz> <200902271154.29366@centrum.cz> <200902271155.19785@centrum.cz> Message-ID: <49A7CB83.5080403@bytewise.it> shp2img, a tool in FWTools (http://fwtools.maptools.org/) .............pg Stanislav Bek ha scritto: > Hi, > > how can I directly save image file from Mapserver? > > Wenn I put http://localhost/cgi-bin/mapserv?map=/var/mapservdata/jezera.map&mode=map > into browser, I get html with image. I tried to use wget in shell in order to save the image > file directly to disc. Without success. > > Could you please give me an advice. > Stanislav > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E From andrea.ardito at provincia.biella.it Fri Feb 27 03:48:59 2009 From: andrea.ardito at provincia.biella.it (Andrea Ardito) Date: Fri, 27 Feb 2009 12:48:59 +0100 Subject: [mapserver-users] WMS problem In-Reply-To: <49A6B12D.9090308@bytewise.it> References: <49A6B12D.9090308@bytewise.it> Message-ID: Hi Pietro, 1.I've tried to invoke mapserver in cgi mode and it seems ok. http://webgis.provincia.biella.it/cgi-bin/mapserv?map=/opt/fgs/apps/mapservergeo/map/basewms.map&mode=map&layer=stati 2. We looked on the apache log file and we fixed some errors we had in a php file. Anyway things are not changed. http://webgis.provincia.biella.it/apps/maplab/projects/gmf_apps/basewms4/wmdmap.php Please, do you have anything else to suggest? Thank you very much for your help ciao andrea arch. Andrea ARDITO Sistema Informativo Territoriale Ambientale (S.I.T.A.) Settore Pianificazione e Sicurezza del Territorio Provincia di Biella Via Quintino Sella, 12 - 13900 BIELLA tel. 015.8480880 fax. 015.8480740 -----Original Message----- From: Pietro Giannini To: mapserver-users Date: Thu, 26 Feb 2009 16:11:41 +0100 Subject: Re: [mapserver-users] WMS problem Hi Andrea, 1. no 2. no matters 3. It is difficult to answer... If the problem is EXTENT & PROJECTION, remember that a .map file has the PROJECTION set at map level and PROJECTIONs set at layers level; the map Projection is the projection system of the result of the map (i.e. the map image), the layer Projection is the projection system of the data source of the layer. If a layer datasource projection differs from the map projection, you must to set it, otherwise ms try to project the data according with map projection. Try invoke mapserver in cgi mode to see the results: http://the.host/cgi-bin/mapserv?map=/path/of/the.map&mode=map&layer= [http://the.host/cgi-bin/mapserv?map=/path/of/the.map&mode=map&layer=]... Imho your problem isn't the map, but occurs in your php script. Take a look on the php error log: it is a text file, its path is set in your php.ini file (error_log directive, can be an absolute or relative path) 4. obviously scale is nonsense when using non-projected reference systems like epsg:4326, but mapserver does not know. hth ciao ....................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E Andrea Ardito ha scritto: Hi, we have this system working with MapServer version 4.8.2, PHP version 4.4.2. I am trying to do a map that shows both layer (WGS84 shapefile) and WMS data togheter. The starting response is ok, but I get the blank image from the first pan or zoom on. This is the example URL: http://webgis.provincia.biella.it/apps/maplab/projects/gmf_apps/basewms4/wmdmap.php [http://webgis.provincia.biella.it/apps/maplab/projects/gmf_apps/basewms4/wmdmap.php] I guess the problem is due to wrong parameters for EXTENT, SIZE and PROJECTION in the mapfile. These are: EXTENT -15 25 40 70 SIZE 470 520 PROJECTION "init=epsg:4326". The question are: 1. the SIZE (in pixel) has to be proportional to the EXTENT? 2. if yes, how to obtain the right values for the EXTENT? 3. if not, where is the problem? 4. in a map with geographic non-projected data like this, is correct to have value for scale of the representation since UNITS are DD? I would be very grateful for any help from you all, thanks! Best regards andrea ardito P.S. If I set no layer in the map file, and I try to represent only WMS layer (adding them from "Servizi WMS" button), it works. arch. Andrea ARDITO Sistema Informativo Territoriale Ambientale (S.I.T.A.) Settore Pianificazione e Sicurezza del Territorio Provincia di Biella Via Quintino Sella, 12 - 13900 BIELLA tel. 015.8480880 fax. 015.8480740 --http://www.provincia.biella.it------------------------------------------------------ Vuoi rimanere sempre aggiornato sulle nostre attivita'? Visita la pagina dei feed RSS sul nostro sito ed iscriviti alla sezione di interesse. --Avviso------------------------------------------------------------------------------ Questo messaggio e i suoi allegati sono riservati esclusivamente alle persone in indirizzo e possono contenere informazioni confidenziali. Se questo messaggio vi e' pervenuto per errore, vi informiamo che ogni suo uso e'proibito. In questo caso rispedite immediatamente il messaggio al mittente e cancellatelo. Per ogni chiarimento contattateci scrivendo a ced at provincia.biella.it [mailto:ced at provincia.biella.it]. Grazie -Il Webmaster. --Warning----------------------------------------------------------------------------- This message and its attachments are addressed solely to the persons above and may contain confidential information. If you have received the message in error, be informed that any use of the content hereof is prohibited. Please return it immediately to the sender and delete the message. Should you have any questions, please contact us by replying to ced at provincia.biella.it [mailto:ced at provincia.biella.it]. The Webmaster. -------------------------------------------------------------------------------------- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org [mailto:mapserver-users at lists.osgeo.org] http://lists.osgeo.org/mailman/listinfo/mapserver-users [http://lists.osgeo.org/mailman/listinfo/mapserver-users] -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Fri Feb 27 04:42:01 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 27 Feb 2009 14:42:01 +0200 Subject: VS: [mapserver-users] WMS problem In-Reply-To: Message-ID: Hi, It is for sure possible to fix your problem, but because MapLab is no more supported or developed in any way I would suggest you to select some other application to play with. I could guess that there is nothing wrong with your Mapserver configuration because you do see the image in the beginning. Zooming problems are most probably caused by MapLab and struggling with is would of course be educational but if you are searching for some permanent system, go and get a fresh Mapserver version (5.2 or 5.4 beta) and choose another client. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Andrea Ardito L?hetetty: 27. helmikuuta 2009 13:49 Vastaanottaja: mapserver-users Kopio: Mattia Ferrari; Edgardo Ghibaudo Aihe: Re: [mapserver-users] WMS problem Hi Pietro, 1.I've tried to invoke mapserver in cgi mode and it seems ok. http://webgis.provincia.biella.it/cgi-bin/mapserv?map=/opt/fgs/apps/mapservergeo/map/basewms.map&mode=map&layer=stati 2. We looked on the apache log file and we fixed some errors we had in a php file. Anyway things are not changed. http://webgis.provincia.biella.it/apps/maplab/projects/gmf_apps/basewms4/wmdmap.php Please, do you have anything else to suggest? Thank you very much for your help ciao andrea arch. Andrea ARDITO Sistema Informativo Territoriale Ambientale (S.I.T.A.) Settore Pianificazione e Sicurezza del Territorio Provincia di Biella Via Quintino Sella, 12 - 13900 BIELLA tel. 015.8480880 fax. 015.8480740 -----Original Message----- From: Pietro Giannini To: mapserver-users Date: Thu, 26 Feb 2009 16:11:41 +0100 Subject: Re: [mapserver-users] WMS problem Hi Andrea, 1. no 2. no matters 3. It is difficult to answer... If the problem is EXTENT & PROJECTION, remember that a .map file has the PROJECTION set at map level and PROJECTIONs set at layers level; the map Projection is the projection system of the result of the map (i.e. the map image), the layer Projection is the projection system of the data source of the layer. If a layer datasource projection differs from the map projection, you must to set it, otherwise ms try to project the data according with map projection. Try invoke mapserver in cgi mode to see the results: http://the.host/cgi-bin/mapserv?map=/path/of/the.map&mode=map&layer= ... Imho your problem isn't the map, but occurs in your php script. Take a look on the php error log: it is a text file, its path is set in your php.ini file (error_log directive, can be an absolute or relative path) 4. obviously scale is nonsense when using non-projected reference systems like epsg:4326, but mapserver does not know. hth ciao ....................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E Andrea Ardito ha scritto: Hi, we have this system working with MapServer version 4.8.2, PHP version 4.4.2. I am trying to do a map that shows both layer (WGS84 shapefile) and WMS data togheter. The starting response is ok, but I get the blank image from the first pan or zoom on. This is the example URL: http://webgis.provincia.biella.it/apps/maplab/projects/gmf_apps/basewms4/wmdmap.php I guess the problem is due to wrong parameters for EXTENT, SIZE and PROJECTION in the mapfile. These are: EXTENT -15 25 40 70 SIZE 470 520 PROJECTION "init=epsg:4326". The question are: 1. the SIZE (in pixel) has to be proportional to the EXTENT? 2. if yes, how to obtain the right values for the EXTENT? 3. if not, where is the problem? 4. in a map with geographic non-projected data like this, is correct to have value for scale of the representation since UNITS are DD? I would be very grateful for any help from you all, thanks! Best regards andrea ardito P.S. If I set no layer in the map file, and I try to represent only WMS layer (adding them from "Servizi WMS" button), it works. arch. Andrea ARDITO Sistema Informativo Territoriale Ambientale (S.I.T.A.) Settore Pianificazione e Sicurezza del Territorio Provincia di Biella Via Quintino Sella, 12 - 13900 BIELLA tel. 015.8480880 fax. 015.8480740 --http://www.provincia.biella.it------------------------------------------------------ Vuoi rimanere sempre aggiornato sulle nostre attivita'? Visita la pagina dei feed RSS sul nostro sito ed iscriviti alla sezione di interesse. --Avviso------------------------------------------------------------------------------ Questo messaggio e i suoi allegati sono riservati esclusivamente alle persone in indirizzo e possono contenere informazioni confidenziali. Se questo messaggio vi e' pervenuto per errore, vi informiamo che ogni suo uso e'proibito. In questo caso rispedite immediatamente il messaggio al mittente e cancellatelo. Per ogni chiarimento contattateci scrivendo a ced at provincia.biella.it. Grazie -Il Webmaster. --Warning----------------------------------------------------------------------------- This message and its attachments are addressed solely to the persons above and may contain confidential information. If you have received the message in error, be informed that any use of the content hereof is prohibited. Please return it immediately to the sender and delete the message. Should you have any questions, please contact us by replying to ced at provincia.biella.it. The Webmaster. -------------------------------------------------------------------------------------- ________________________________ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From pgiannini at bytewise.it Fri Feb 27 05:40:03 2009 From: pgiannini at bytewise.it (Pietro Giannini) Date: Fri, 27 Feb 2009 14:40:03 +0100 Subject: [mapserver-users] WMS problem In-Reply-To: References: <49A6B12D.9090308@bytewise.it> Message-ID: <49A7ED33.7070601@bytewise.it> Hi Andrea, did you look on the php error log file? pg Andrea Ardito ha scritto: > Hi Pietro, > > 1.I've tried to invoke mapserver in cgi mode and it seems ok. > http://webgis.provincia.biella.it/cgi-bin/mapserv?map=/opt/fgs/apps/mapservergeo/map/basewms.map&mode=map&layer=stati > > > 2. We looked on the apache log file and we fixed some errors we had in > a php file. > Anyway things are not changed. > http://webgis.provincia.biella.it/apps/maplab/projects/gmf_apps/basewms4/wmdmap.php > > > Please, do you have anything else to suggest? > Thank you very much for your help > ciao > andrea > > arch. Andrea ARDITO > Sistema Informativo Territoriale Ambientale (S.I.T.A.) > Settore Pianificazione e Sicurezza del Territorio > Provincia di Biella > Via Quintino Sella, 12 - 13900 BIELLA > tel. 015.8480880 > fax. 015.8480740 > > > -----Original Message----- > From: Pietro Giannini > To: mapserver-users > Date: Thu, 26 Feb 2009 16:11:41 +0100 > Subject: Re: [mapserver-users] WMS problem > > Hi Andrea, > > 1. no > 2. no matters > 3. It is difficult to answer... > > If the problem is EXTENT & PROJECTION, remember that a .map file > has the PROJECTION set at map level and PROJECTIONs set at layers > level; the map Projection is the projection system of the result > of the map (i.e. the map image), the layer Projection is the > projection system of the data source of the layer. If a layer > datasource projection differs from the map projection, you must to > set it, otherwise ms try to project the data according with map > projection. > Try invoke mapserver in cgi mode to see the results: > http://the.host/cgi-bin/mapserv?map=/path/of/the.map&mode=map&layer= > ... > > Imho your problem isn't the map, but occurs in your php script. > Take a look on the php error log: it is a text file, its path is > set in your php.ini file (error_log directive, can be an absolute > or relative path) > > 4. obviously scale is nonsense when using non-projected reference > systems like epsg:4326, but mapserver does not know. > > hth > > ciao > ....................pg > > > > -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N > 12?29'13.39"E > > > > > > Andrea Ardito ha scritto: >> Hi, we have this system working with MapServer version 4.8.2, PHP version >> 4.4.2. I am trying to do a map that shows both layer (WGS84 shapefile) and >> WMS data togheter. The starting response is ok, but I get the blank image >> from the first pan or zoom on. This is the example URL: >> http://webgis.provincia.biella.it/apps/maplab/projects/gmf_apps/basewms4/wmdmap.php >> I guess the problem is due to wrong parameters for EXTENT, SIZE and >> PROJECTION in the mapfile. These are: EXTENT -15 25 40 70 SIZE 470 520 >> PROJECTION "init=epsg:4326". The question are: 1. the SIZE (in pixel) has >> to be proportional to the EXTENT? 2. if yes, how to obtain the right values >> for the EXTENT? 3. if not, where is the problem? 4. in a map with geographic >> non-projected data like this, is correct to have value for scale of the >> representation since UNITS are DD? I would be very grateful for any help >> from you all, thanks! Best regards andrea ardito P.S. If I set no layer in >> the map file, and I try to represent only WMS layer (adding them from >> "Servizi WMS" button), it works. >> >> >> arch. Andrea ARDITO >> Sistema Informativo Territoriale Ambientale (S.I.T.A.) >> Settore Pianificazione e Sicurezza del Territorio >> Provincia di Biella >> Via Quintino Sella, 12 - 13900 BIELLA >> tel. 015.8480880 >> fax. 015.8480740 >> >> --http://www.provincia.biella.it------------------------------------------------------ >> >> >> Vuoi rimanere sempre aggiornato sulle nostre attivita'? >> Visita la pagina dei feed RSS sul nostro sito ed iscriviti alla >> sezione di interesse. >> >> --Avviso------------------------------------------------------------------------------ >> >> Questo messaggio e i suoi allegati sono riservati esclusivamente >> alle persone in >> indirizzo e possono contenere informazioni confidenziali. Se >> questo messaggio vi e' >> pervenuto per errore, vi informiamo che ogni suo uso e'proibito. >> In questo caso rispedite immediatamente il messaggio al mittente >> e cancellatelo. >> Per ogni chiarimento contattateci scrivendo a >> ced at provincia.biella.it. >> Grazie -Il Webmaster. >> --Warning----------------------------------------------------------------------------- >> >> This message and its attachments are addressed solely to the >> persons above and may >> contain confidential information. If you have received the >> message in error, be >> informed that any use of the content hereof is prohibited. >> Please return it immediately to the sender and delete the >> message. Should you have >> any questions, please contact us by replying to >> ced at provincia.biella.it. >> The Webmaster. >> -------------------------------------------------------------------------------------- >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ mapserver-users mailing list >> >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Fri Feb 27 06:14:45 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 27 Feb 2009 09:14:45 -0500 Subject: [mapserver-users] file output In-Reply-To: <200902271155.19785@centrum.cz> References: <200902271148.10063@centrum.cz> <200902271149.20077@centrum.cz> <200902271150.31805@centrum.cz> <200902271151.11120@centrum.cz> <200902271152.18616@centrum.cz> <200902271153.11748@centrum.cz> <200902271154.29366@centrum.cz> <200902271155.19785@centrum.cz> Message-ID: <49A7F555.9080708@gatewaygeomatics.com> Stanislav Bek wrote: > Hi, > > how can I directly save image file from Mapserver? > > Wenn I put http://localhost/cgi-bin/mapserv?map=/var/mapservdata/jezera.map&mode=map > into browser, I get html with image. I tried to use wget in shell in order to save the image > file directly to disc. Without success. > > Could you please give me an advice. > Stanislav See: http://www.mapserver.org/utilities/shp2img.html -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From maurerj at nsidc.org Fri Feb 27 06:46:45 2009 From: maurerj at nsidc.org (john.maurer) Date: Fri, 27 Feb 2009 06:46:45 -0800 (PST) Subject: [mapserver-users] Dynamic Reference Map In-Reply-To: <4884A75E.5157.008F.0@dnr.state.mn.us> References: <348277DFCE9FF044B3812A6CF459CD37DCC4BE@welshmail.welshco.com.local> <4884A75E.5157.008F.0@dnr.state.mn.us> Message-ID: <1235746005485-2396020.post@n2.nabble.com> Hi Steve or Gabe, Do you know if this was fixed in 5.2.1? From my initial tests just now, it doesn't seem that it was though MapServer bug #2699 looked as though it should be fixed in 5.2.1 according to the "milestone" column at: http://trac.osgeo.org/mapserver/ticket/2699 Maybe I'm tracking the wrong bug? Please let me know. I'm very interested in dynamically modifying the reference map as well. This will allow me to dynamically change my reference map to zoom in over Antarctica when the user is at the proper zoom level, and to zoom out to a hemispheric reference map when appropriate. Thanks! Cheers, John Maurer Steve Lime wrote: > > Gabe: This is related to changes at the 5.0 release level limiting what > can be changed via > URL. There has been a thread on this in the last couple of weeks or so. > I'm going to be trying > to restore 5.0 capabilities but with security hobbles in place but that > won't happen until 5.2.1 > at the earliest and more likely 5.4 so for now you're out of luck unless > you're in position to > recompile. > > Steve > >>>> On 7/18/2008 at 3:23 PM, in message > <348277DFCE9FF044B3812A6CF459CD37DCC4BE at welshmail.welshco.com.local>, > "Emerson, > Gabe" wrote: >> Hello everyone. My apologies if this has been solved already, but I've >> read through the previous posts on this topic and haven't found a >> solution that works for me. >> >> >> >> I'm trying to replace the default reference map image and extent on the >> fly, using Javascript in my template file. Basically, I want to check if >> the map is zooming out past a certain scale and/or leaving the area >> covered by the default reference map, and display a reference map of the >> entire state (the default is the local metro area). >> >> >> >> I'm using the 5.2.0 version of mapserv that comes with ms4w 2.2.7 >> (although ms4w's default index page claims it's still 2.2.6 with mapserv >> 5.0). From what I've read in the docs and mailing list archives, I >> should be able to do what I want in one of two ways: >> >> >> >> -Include in the url: map_reference_image='/images/mnref.gif' >> >> >> >> -Or alternatively: map_reference=IMAGE+'/images/mnref.gif' >> >> >> >> The first method gives me this error: >> >> loadReferenceMap(): Unknown identifier. Parsing error near >> (/images/mnref.gif):(line 1) >> >> >> >> And the second method gives me this: >> >> loadReferenceMap(): Unknown identifier. Parsing error near (IMAGE):(line >> 1) >> >> >> >> I've tried these with every combination of quotes, escaped quotes, no >> quotes, etc, without luck. What I CAN do is turn the reference map on >> and off with map_reference=STATUS+off in the url, but that seems to be >> the only reference object parameter that I can change. >> >> >> >> According to what I've read I'm pretty sure this is possible, there was >> even a code update to make the first method work in an earlier version. >> Hopefully I'm just missing something obvious and someone can point out >> my newb mistake. >> >> >> >> Thanks! >> >> >> >> >> >> >> >> Gabe Emerson >> >> Research Department >> >> Welsh Companies >> >> 4350 Baker Road, Suite 400 >> >> Minnetonka, MN 55343-8695 >> >> >> >> 952-897-7700, ext. 1306 >> >> gemerson at welshco.com >> >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/Dynamic-Reference-Map-tp1972016p2396020.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pal.kristensen at statkart.no Fri Feb 27 08:08:39 2009 From: pal.kristensen at statkart.no (paalkr) Date: Fri, 27 Feb 2009 08:08:39 -0800 (PST) Subject: [mapserver-users] PROCESSING "LABEL_NO_CLIP=True" not working with 5.4 beta? Message-ID: <1235750919604-2396527.post@n2.nabble.com> Hi all! I'm trying out 5.4 b1 at the moment, and there seems to be something going on with labels. With an identical mapfile, 5.2.1 and 5.4 b1 behaves different when it comes to label placement. The data source is a point feature class (added as TYPE annotation), and the label is held in place with all possible methods to prevent clipping with tile output. The problem is that with 5.4 b1 there seems to be a larger occurrences of clipped labels, then with 5.2.1. Snippet from mapfile PROCESSING "LABEL_NO_CLIP=True" LABEL COLOR 168 112 0 OUTLINECOLOR 254 254 254 TYPE TRUETYPE FONT "SkHelveticaMA" SIZE 10 ENCODING "UTF-8" ANTIALIAS TRUE POSITION cc FORCE TRUE PARTIALS FALSE END Regards, P?l Kristensen -- View this message in context: http://n2.nabble.com/PROCESSING-%22LABEL_NO_CLIP%3DTrue%22-not-working-with-5.4-beta--tp2396527p2396527.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pal.kristensen at statkart.no Fri Feb 27 08:20:24 2009 From: pal.kristensen at statkart.no (paalkr) Date: Fri, 27 Feb 2009 08:20:24 -0800 (PST) Subject: [mapserver-users] Documentation update Message-ID: <1235751624497-2396593.post@n2.nabble.com> Hi! I would suggest that someone with the right privileges adds the following the the documentation In the LAYER mapfile reference (http://mapserver.org/mapfile/layer.html), new headline Label directives: PROCESSING "LABEL_NO_CLIP=True" In the Raster Data, Special Processing Directives (http://mapserver.org/input/raster.html#special-processing-directives) PROCESSING "OVERSAMPLE_RATIO=[int]" Both are quite handy, and information about usage should be easy accessible in the documentation. Regards, P?l Kristensen -- View this message in context: http://n2.nabble.com/Documentation-update-tp2396593p2396593.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at dnr.state.mn.us Fri Feb 27 08:25:24 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 27 Feb 2009 10:25:24 -0600 Subject: [mapserver-users] PROCESSING "LABEL_NO_CLIP=True" not working with5.4 beta? In-Reply-To: <1235750919604-2396527.post@n2.nabble.com> References: <1235750919604-2396527.post@n2.nabble.com> Message-ID: <49A7BF94.5157.008F.0@dnr.state.mn.us> Can you post images showing the difference and a full layer definition? >>> On 2/27/2009 at 10:08 AM, in message <1235750919604-2396527.post at n2.nabble.com>, paalkr wrote: > Hi all! > > I'm trying out 5.4 b1 at the moment, and there seems to be something going > on with labels. With an identical mapfile, 5.2.1 and 5.4 b1 behaves > different when it comes to label placement. The data source is a point > feature class (added as TYPE annotation), and the label is held in place > with all possible methods to prevent clipping with tile output. The problem > is that with 5.4 b1 there seems to be a larger occurrences of clipped > labels, then with 5.2.1. > > Snippet from mapfile > > PROCESSING "LABEL_NO_CLIP=True" > LABEL > COLOR 168 112 0 > OUTLINECOLOR 254 254 254 > TYPE TRUETYPE > FONT "SkHelveticaMA" > SIZE 10 > ENCODING "UTF-8" > ANTIALIAS TRUE > POSITION cc > FORCE TRUE > PARTIALS FALSE > END > > Regards, > P?l Kristensen > > -- > View this message in context: > http://n2.nabble.com/PROCESSING-%22LABEL_NO_CLIP%3DTrue%22-not-working-with-5 > .4-beta--tp2396527p2396527.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Fri Feb 27 08:40:35 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 27 Feb 2009 11:40:35 -0500 Subject: [mapserver-users] Documentation update In-Reply-To: <1235751624497-2396593.post@n2.nabble.com> References: <1235751624497-2396593.post@n2.nabble.com> Message-ID: <49A81783.6040901@gatewaygeomatics.com> paalkr wrote: > Hi! > > I would suggest that someone with the right privileges adds the following > the the documentation > > In the LAYER mapfile reference (http://mapserver.org/mapfile/layer.html), > new headline Label directives: > PROCESSING "LABEL_NO_CLIP=True" > > In the Raster Data, Special Processing Directives > (http://mapserver.org/input/raster.html#special-processing-directives) > PROCESSING "OVERSAMPLE_RATIO=[int]" > > Both are quite handy, and information about usage should be easy accessible > in the documentation. > > Regards, > P?l Kristensen Please file any documentation changes you need through the MapServer Issue Tracker, in the "MapServer Documentation" component. Thank you. (otherwise mailing list emails are lost and forgotten) -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From valemunoz at gmail.com Fri Feb 27 10:53:27 2009 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Fri, 27 Feb 2009 15:53:27 -0300 Subject: [mapserver-users] Label problem Message-ID: <4b56aefe0902271053o67edac65k49c9a16a00e4a857@mail.gmail.com> Hi i have problem with a label, the label do not always follow the curve , some times cross the line. LABEL TYPE truetype FONT 'georgia' SIZE 7 ANTIALIAS TRUE COLOR 0 0 0 ANGLE FOLLOW FORCE FALSE POSITION cc MINDISTANCE -1 MINFEATURESIZE -1 BUFFER 15 OFFSET 0 0 PARTIALS FALSE END RG -------------- next part -------------- An HTML attachment was scrubbed... URL: From pal.kristensen at statkart.no Fri Feb 27 11:06:19 2009 From: pal.kristensen at statkart.no (paalkr) Date: Fri, 27 Feb 2009 11:06:19 -0800 (PST) Subject: [mapserver-users] Documentation update In-Reply-To: <49A81783.6040901@gatewaygeomatics.com> References: <1235751624497-2396593.post@n2.nabble.com> <49A81783.6040901@gatewaygeomatics.com> Message-ID: <1235761579085-2397520.post@n2.nabble.com> Done, http://trac.osgeo.org/mapserver/ticket/2909#preview P?l Jeff McKenna wrote: > > paalkr wrote: >> Hi! >> >> I would suggest that someone with the right privileges adds the following >> the the documentation >> >> In the LAYER mapfile reference (http://mapserver.org/mapfile/layer.html), >> new headline Label directives: >> PROCESSING "LABEL_NO_CLIP=True" >> >> In the Raster Data, Special Processing Directives >> (http://mapserver.org/input/raster.html#special-processing-directives) >> PROCESSING "OVERSAMPLE_RATIO=[int]" >> >> Both are quite handy, and information about usage should be easy >> accessible >> in the documentation. >> >> Regards, >> P?l Kristensen > > > Please file any documentation changes you need through the MapServer > Issue Tracker, in the "MapServer Documentation" component. Thank you. > (otherwise mailing list emails are lost and forgotten) > > -jeff > > > > -- > Jeff McKenna > FOSS4G Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/Documentation-update-tp2396593p2397520.html Sent from the Mapserver - User mailing list archive at Nabble.com. From randre at gmail.com Fri Feb 27 11:40:32 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Fri, 27 Feb 2009 11:40:32 -0800 Subject: [mapserver-users] WCS that reads NetCDF files returns "Image handling error. Attempt to operate on GDAL file with no bands" Message-ID: <9c2015090902271140j5561d2f1rb9dce4529f087124@mail.gmail.com> Hi Norman, Sorry for the direct email, but much of the relevant documentation that I have found regarding this topic appears to have been written by you.? I'm hoping you can take the time to share a bit more of your wisdom regarding this. I would like to setup a Mapserver WCS service that reads a single netCDF file as the data source.? Later on I'd like to get fancy and read multiple files as a tileindex, with multiple time slices in them, but for now I am just trying to read a single file with a one-band data layer in it.? I am using the example you posted on the Mapserver website, http://mapserver.org/ogc/wcs_format.html, as well as an old post from you - http://lists.osgeo.org/pipermail/mapserver-users/2005-November/012153.html. The examples are great, but I'm having trouble adapting them to my sample data. I have downloaded a CF convention netCDF file from http://www.unidata.ucar.edu/software/netcdf/examples/sresa1b_ncar_ccsm3_0_run1_200001.nc, which contains a SUBDATASET named "tas".? This SUBDATASET contains only a single band, which when queried by gdalinfo looks like this (Note: I have omitted the Metadata for clarity.) --------------------------- $ gdalinfo NETCDF:"sresa1b_ncar_ccsm3_0_run1_200001.nc":tas Warning 1: Latitude grid not spaced evenly. Seting projection for grid spacing is within 0.1 degrees threshold. Driver: netCDF/Network Common Data Format Files: none associated Size is 256, 128 Coordinate System is `' Origin = (-0.703125000000000,89.627952755905511) Pixel Size = (1.406250000000000,-1.400436761811024) Corner Coordinates: Upper Left? (? -0.7031250,? 89.6279528) Lower Left? (? -0.7031250, -89.6279528) Upper Right (???? 359.297,????? 89.628) Lower Right (???? 359.297,???? -89.628) Center????? ( 179.2968750,?? 0.0000000) Band 1 Block=256x1 Type=Float32, ColorInterp=Undefined ? NoData Value=1.00000002004087734e+20 ? Metadata: ??? NETCDF_VARNAME=tas ??? NETCDF_DIMENSION_time=730136 ??? NETCDF_time_units=days since 0000-1-1 -------------------------- I have setup a mapfile to read this file/layer which looks like this: -------------------------- MAP NAME 'netcdf' OUTPUTFORMAT NAME "GEOTIFF_FLOAT" DRIVER 'GDAL/GTiff' MIMETYPE 'image/tiff' IMAGEMODE FLOAT32 EXTENSION 'tif' END LAYER NAME "tas" STATUS OFF TYPE RASTER DUMP TRUE DATA "sresa1b_ncar_ccsm3_0_run1_200001.nc" METADATA wcs_label "Test netCDF Server" ows_extent '-0.7031250 -89.6279528 359.297 89.628' # <-- 0 to 360? wcs_resolution '1.406250000000000 -1.400436761811024' ows_srs "EPSG:4326" # <-- Not sure about this wcs_formats "GEOTIFF_FLOAT" wcs_nativeformat "netCDF" wcs_bandcount "1" # <-- Not sure about this wcs_rangeset_axes "bands" wcs_rangeset_label "Atmospheric Levels" wcs_rangeset_name "tas" # <-- Not sure about this END # end metadata END # end layer END # map ------------------------ I took a stab at what the wcs and ows entries should look like in the METADATA section, but I'm not at all sure I got them right. For example, the geographic extents of all the netCDF files I have seen so far seem to use a 0 - 360 longitude range. I'm not really sure how to reconcile this with the ows_srs of EPSG:4326, of how to properly list the extents. I used what gdalinfo reports, thinking that since gdal would be reading the file, the info should match. With this mapfile, I am able to execute a DescribeCoverage request using the following command: --------------------------- http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/netCDF/netcdf.map &SERVICE=WCS &VERSION=1.0.0 &REQUEST=DescribeCoverage &COVERAGE=tas --------------------------- I've attached the XML that is returned, it appears to be reasonable, but whether it is correct or not, I'm not sure. What is certain though, is that when I try to make a GetCoverage request, I get back a consistent error that says "Attempt to operate on GDAL file with no bands, layer=tas". My GetCoverage request looks like this: --------------------------- http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/netCDF/netcdf.map &SERVICE=wcs &VERSION=1.0.0 &REQUEST=GetCoverage &coverage=tas &CRS=EPSG:4326 &BBOX=-0.703125,-89.6279528,359.297,89.628 &WIDTH=600 &HEIGHT=600 &FORMAT=image/tiff --------------------------- The error that is returned looks like this: --------------------------- msGetGDALBandList(): Image handling error. Attempt to operate on GDAL file with no bands, layer=tas. ---------------------------- And now I am stuck. Since there are quite a few different parameters that need to be set, I'm not sure which of them I've messed up. Thanks in advance for any assistance you could provide with this. Roger -- -------------- next part -------------- A non-text attachment was scrubbed... Name: tas_netcdf_coverage.xml Type: text/xml Size: 2500 bytes Desc: not available URL: From randre at gmail.com Fri Feb 27 12:53:37 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Fri, 27 Feb 2009 12:53:37 -0800 Subject: [mapserver-users] Re: WCS that reads NetCDF files returns "Image handling error. Attempt to operate on GDAL file with no bands" In-Reply-To: <9c2015090902271140j5561d2f1rb9dce4529f087124@mail.gmail.com> References: <9c2015090902271140j5561d2f1rb9dce4529f087124@mail.gmail.com> Message-ID: <9c2015090902271253n696e7382kbd772c7375dfbbf6@mail.gmail.com> Alright, found a promising lead in http://trac.osgeo.org/mapserver/ticket/2462. It appears that the DATA parameter for the layer needs to specify more than just the filename of the netcdf. Using the syntax below returns a GeoTIFF. DATA "netCDF:/var/www/mapfiles/netCDF/sresa1b_ncar_ccsm3_0_run1_200001.nc:tas" Now need to figure out how to work with the extents. -- On Fri, Feb 27, 2009 at 11:40 AM, Roger Andr? wrote: > Hi Norman, > > Sorry for the direct email, but much of the relevant documentation > that I have found regarding this topic appears to have been written by > you.? I'm hoping you can take the time to share a bit more of your > wisdom regarding this. > > I would like to setup a Mapserver WCS service that reads a single > netCDF file as the data source.? Later on I'd like to get fancy and > read multiple files as a tileindex, with multiple time slices in them, > but for now I am just trying to read a single file with a one-band > data layer in it.? I am using the example you posted on the Mapserver > website, http://mapserver.org/ogc/wcs_format.html, as well as an old > post from you - > http://lists.osgeo.org/pipermail/mapserver-users/2005-November/012153.html. > ?The examples are great, but I'm having trouble adapting them to my > sample data. > > I have downloaded a CF convention netCDF file from > http://www.unidata.ucar.edu/software/netcdf/examples/sresa1b_ncar_ccsm3_0_run1_200001.nc, > which contains a SUBDATASET named "tas".? This SUBDATASET contains > only a single band, which when queried by gdalinfo looks like this > (Note: I have omitted the Metadata for clarity.) > --------------------------- > $ gdalinfo NETCDF:"sresa1b_ncar_ccsm3_0_run1_200001.nc":tas > Warning 1: Latitude grid not spaced evenly. > Seting projection for grid spacing is within 0.1 degrees threshold. > > Driver: netCDF/Network Common Data Format > Files: none associated > Size is 256, 128 > Coordinate System is `' > Origin = (-0.703125000000000,89.627952755905511) > Pixel Size = (1.406250000000000,-1.400436761811024) > Corner Coordinates: > Upper Left? (? -0.7031250,? 89.6279528) > Lower Left? (? -0.7031250, -89.6279528) > Upper Right (???? 359.297,????? 89.628) > Lower Right (???? 359.297,???? -89.628) > Center????? ( 179.2968750,?? 0.0000000) > Band 1 Block=256x1 Type=Float32, ColorInterp=Undefined > ? NoData Value=1.00000002004087734e+20 > ? Metadata: > ??? NETCDF_VARNAME=tas > ??? NETCDF_DIMENSION_time=730136 > ??? NETCDF_time_units=days since 0000-1-1 > -------------------------- > > I have setup a mapfile to read this file/layer which looks like this: > > -------------------------- > MAP > NAME 'netcdf' > > OUTPUTFORMAT > ?NAME "GEOTIFF_FLOAT" > ?DRIVER 'GDAL/GTiff' > ?MIMETYPE 'image/tiff' > ?IMAGEMODE FLOAT32 > ?EXTENSION 'tif' > END > > ? ?LAYER > ? ? ? ?NAME "tas" > ? ? ? ?STATUS OFF > ? ? ? ?TYPE RASTER > ? ? ? ?DUMP TRUE > ? ? ? ?DATA "sresa1b_ncar_ccsm3_0_run1_200001.nc" > ? ? ? ?METADATA > ? ? ? ? ? ?wcs_label "Test netCDF Server" > ? ? ? ? ? ?ows_extent '-0.7031250 -89.6279528 359.297 89.628' # <-- 0 to 360? > ? ? ? ? ? ?wcs_resolution '1.406250000000000 -1.400436761811024' > ? ? ? ? ? ?ows_srs "EPSG:4326" # <-- Not sure about this > ? ? ? ? ? ?wcs_formats "GEOTIFF_FLOAT" > ? ? ? ? ? ?wcs_nativeformat "netCDF" > ? ? ? ? ? ?wcs_bandcount "1" # <-- Not sure about this > ? ? ? ? ? ?wcs_rangeset_axes "bands" > ? ? ? ? ? ?wcs_rangeset_label "Atmospheric Levels" > ? ? ? ? ? ?wcs_rangeset_name "tas" # <-- Not sure about this > ? ? ? ?END # end metadata > ? ?END # end layer > > END # map > ------------------------ > > I took a stab at what the wcs and ows entries should look like in the > METADATA section, but I'm not at all sure I got them right. ?For > example, the geographic extents of all the netCDF files I have seen so > far seem to use a 0 - 360 longitude range. ?I'm not really sure how to > reconcile this with the ows_srs of EPSG:4326, of how to properly list > the extents. ?I used what gdalinfo reports, thinking that since gdal > would be reading the file, the info should match. > > With this mapfile, I am able to execute a DescribeCoverage request > using the following command: > > --------------------------- > http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/netCDF/netcdf.map > &SERVICE=WCS > &VERSION=1.0.0 > &REQUEST=DescribeCoverage > &COVERAGE=tas > --------------------------- > > I've attached the XML that is returned, it appears to be reasonable, > but whether it is correct or not, I'm not sure. ?What is certain > though, is that when I try to make a GetCoverage request, I get back a > consistent error that says "Attempt to operate on GDAL file with no > bands, layer=tas". ?My GetCoverage request looks like this: > > --------------------------- > http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/netCDF/netcdf.map > &SERVICE=wcs > &VERSION=1.0.0 > &REQUEST=GetCoverage > &coverage=tas > &CRS=EPSG:4326 > &BBOX=-0.703125,-89.6279528,359.297,89.628 > &WIDTH=600 > &HEIGHT=600 > &FORMAT=image/tiff > --------------------------- > > The error that is returned looks like this: > > --------------------------- > > xmlns="http://www.opengis.net/ogc" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/ogc > http://schemas.opengis.net/wcs/1.0.0/OGC-exception.xsd"> > ?msGetGDALBandList(): Image handling error. Attempt > to operate on GDAL file with no bands, layer=tas. > ? > > ---------------------------- > > And now I am stuck. ?Since there are quite a few different parameters > that need to be set, I'm not sure which of them I've messed up. > > Thanks in advance for any assistance you could provide with this. > > Roger > -- > From randre at gmail.com Fri Feb 27 13:49:15 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Fri, 27 Feb 2009 13:49:15 -0800 Subject: [mapserver-users] wcs client support Message-ID: <9c2015090902271349m2334898ek57286c2b9f061038@mail.gmail.com> Hi All, Does anyone know of any work being done to implement WCS client functionality in Mapserver? I have seen a passing reference to this on the OGC Galeon page, http://www.ogcnetwork.net/node/113. It looked like Texas A&M was going to implement a test client, but I can't find any additional info about this. I'd like to make some maps using data stored on WCS servers, but I can't seem to find any clients that can render the data directly. Thanks, Roger -- From warmerdam at pobox.com Fri Feb 27 14:04:49 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 27 Feb 2009 17:04:49 -0500 Subject: [mapserver-users] wcs client support In-Reply-To: <9c2015090902271349m2334898ek57286c2b9f061038@mail.gmail.com> References: <9c2015090902271349m2334898ek57286c2b9f061038@mail.gmail.com> Message-ID: <49A86381.7020704@pobox.com> Roger Andr? wrote: > Hi All, > > Does anyone know of any work being done to implement WCS client > functionality in Mapserver? I have seen a passing reference to this > on the OGC Galeon page, http://www.ogcnetwork.net/node/113. It looked > like Texas A&M was going to implement a test client, but I can't find > any additional info about this. > > I'd like to make some maps using data stored on WCS servers, but I > can't seem to find any clients that can render the data directly. Roger, GDAL already has a WCS driver so the normal approach to serving maps from WCS sources is to use MapServer and GDAL's WCS driver. Within reason I can provide assistance trying this out. http://www.gdal.org/frmt_wcs.html Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From randre at gmail.com Fri Feb 27 14:38:22 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Fri, 27 Feb 2009 14:38:22 -0800 Subject: [mapserver-users] wcs client support In-Reply-To: <49A86381.7020704@pobox.com> References: <9c2015090902271349m2334898ek57286c2b9f061038@mail.gmail.com> <49A86381.7020704@pobox.com> Message-ID: <9c2015090902271438r1fe7e5eeh342b43a3984e5de3@mail.gmail.com> Hi Frank, I didn't know about the gdal WCS driver. I'll see if I can get something working from the doc you've linked to. Thanks, Roger -- On Fri, Feb 27, 2009 at 2:04 PM, Frank Warmerdam wrote: > Roger Andr? wrote: >> >> Hi All, >> >> Does anyone know of any work being done to implement WCS client >> functionality in Mapserver? ?I have seen a passing reference to this >> on the OGC Galeon page, http://www.ogcnetwork.net/node/113. It looked >> like Texas A&M was going to implement a test client, but I can't find >> any additional info about this. >> >> I'd like to make some maps using data stored on WCS servers, but I >> can't seem to find any clients that can render the data directly. > > Roger, > > GDAL already has a WCS driver so the normal approach to serving maps > from WCS sources is to use MapServer and GDAL's WCS driver. ?Within reason > I can provide assistance trying this out. > > ?http://www.gdal.org/frmt_wcs.html > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up ? | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush ? ?| Geospatial Programmer for Rent > > From randre at gmail.com Fri Feb 27 15:23:22 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Fri, 27 Feb 2009 15:23:22 -0800 Subject: [mapserver-users] wcs client support In-Reply-To: <9c2015090902271438r1fe7e5eeh342b43a3984e5de3@mail.gmail.com> References: <9c2015090902271349m2334898ek57286c2b9f061038@mail.gmail.com> <49A86381.7020704@pobox.com> <9c2015090902271438r1fe7e5eeh342b43a3984e5de3@mail.gmail.com> Message-ID: <9c2015090902271523x6a90e63blf2ee2d020a4b25e6@mail.gmail.com> Hi Frank, Apologies if this is a dense question, but is it correct to assume the following: 1) create an XML file similar to this one that points at valid WCS service: http://maps.gdal.org/cgi-bin/mapserv_dem? srtmplus_raw 2. Create a Mapserver LAYER with TYPE raster, and where the DATA line points to the above-mentioned XML file. Is that it? Do I need to specify in the LAYER something special for Mapserver to use GDAL to query the WCS via the XML file? (whew, say that 3x fast) Thanks, Roger -- On Fri, Feb 27, 2009 at 2:38 PM, Roger Andr? wrote: > Hi Frank, > > I didn't know about the gdal WCS driver. ?I'll see if I can get > something working from the doc you've linked to. > > Thanks, > > Roger > -- > > On Fri, Feb 27, 2009 at 2:04 PM, Frank Warmerdam wrote: >> Roger Andr? wrote: >>> >>> Hi All, >>> >>> Does anyone know of any work being done to implement WCS client >>> functionality in Mapserver? ?I have seen a passing reference to this >>> on the OGC Galeon page, http://www.ogcnetwork.net/node/113. It looked >>> like Texas A&M was going to implement a test client, but I can't find >>> any additional info about this. >>> >>> I'd like to make some maps using data stored on WCS servers, but I >>> can't seem to find any clients that can render the data directly. >> >> Roger, >> >> GDAL already has a WCS driver so the normal approach to serving maps >> from WCS sources is to use MapServer and GDAL's WCS driver. ?Within reason >> I can provide assistance trying this out. >> >> ?http://www.gdal.org/frmt_wcs.html >> >> Best regards, >> -- >> ---------------------------------------+-------------------------------------- >> I set the clouds in motion - turn up ? | Frank Warmerdam, >> warmerdam at pobox.com >> light and sound - activate the windows | http://pobox.com/~warmerdam >> and watch the world go round - Rush ? ?| Geospatial Programmer for Rent >> >> > From warmerdam at pobox.com Fri Feb 27 15:38:37 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 27 Feb 2009 18:38:37 -0500 Subject: [mapserver-users] wcs client support In-Reply-To: <9c2015090902271523x6a90e63blf2ee2d020a4b25e6@mail.gmail.com> References: <9c2015090902271349m2334898ek57286c2b9f061038@mail.gmail.com> <49A86381.7020704@pobox.com> <9c2015090902271438r1fe7e5eeh342b43a3984e5de3@mail.gmail.com> <9c2015090902271523x6a90e63blf2ee2d020a4b25e6@mail.gmail.com> Message-ID: <49A8797D.8040204@pobox.com> Roger Andr? wrote: > Hi Frank, > > Apologies if this is a dense question, but is it correct to assume the > following: > > 1) create an XML file similar to this one that points at valid WCS service: > > http://maps.gdal.org/cgi-bin/mapserv_dem? > srtmplus_raw > > > 2. Create a Mapserver LAYER with TYPE raster, and where the DATA line > points to the above-mentioned XML file. > > Is that it? Yes > Do I need to specify in the LAYER something special for > Mapserver to use GDAL to query the WCS via the XML file? (whew, say > that 3x fast) No, nothing special. As far as MapServer knows this is just another raster file. I will note that the XML file with the WCS definition needs to be writable as the first time it is accessed GDAL will fetch the WCS capabilities and add a bunch more detail in the XML file. You might want to even trigger this in advance with gdalinfo to ensure things are working ok. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From randre at gmail.com Fri Feb 27 15:56:13 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Fri, 27 Feb 2009 15:56:13 -0800 Subject: [mapserver-users] wcs client support In-Reply-To: <49A8797D.8040204@pobox.com> References: <9c2015090902271349m2334898ek57286c2b9f061038@mail.gmail.com> <49A86381.7020704@pobox.com> <9c2015090902271438r1fe7e5eeh342b43a3984e5de3@mail.gmail.com> <9c2015090902271523x6a90e63blf2ee2d020a4b25e6@mail.gmail.com> <49A8797D.8040204@pobox.com> Message-ID: <9c2015090902271556t4a67d45amc55feb6b798124ff@mail.gmail.com> Unbelievable. This is really incredible. Works like a champ. Thanks for your help. -- On Fri, Feb 27, 2009 at 3:38 PM, Frank Warmerdam wrote: > Roger Andr? wrote: >> >> Hi Frank, >> >> Apologies if this is a dense question, but is it correct to assume the >> following: >> >> 1) create an XML file similar to this one that points at valid WCS >> service: >> >> ?http://maps.gdal.org/cgi-bin/mapserv_dem? >> ?srtmplus_raw >> >> >> 2. Create a Mapserver LAYER with TYPE raster, and where the DATA line >> points to the above-mentioned XML file. > >> >> >> Is that it? > > Yes > >> Do I need to specify in the LAYER something special for >> >> Mapserver to use GDAL to query the WCS via the XML file? (whew, say >> that 3x fast) > > No, nothing special. ?As far as MapServer knows this is just > another raster file. ?I will note that the XML file with the WCS > definition needs to be writable as the first time it is accessed > GDAL will fetch the WCS capabilities and add a bunch more detail in > the XML file. ?You might want to even trigger this in advance with > gdalinfo to ensure things are working ok. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up ? | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush ? ?| Geospatial Programmer for Rent > > From gautamvs at gmail.com Sat Feb 28 02:48:16 2009 From: gautamvs at gmail.com (gautamvs) Date: Sat, 28 Feb 2009 02:48:16 -0800 (PST) Subject: [mapserver-users] Pyhton mapscript import error In-Reply-To: <1235653828284-2389536.post@n2.nabble.com> References: <1234883796448-2341344.post@n2.nabble.com> <499B63C6.9000507@neogeo-online.net> <1234948665484-2345804.post@n2.nabble.com> <1235653828284-2389536.post@n2.nabble.com> Message-ID: <1235818096783-2400381.post@n2.nabble.com> Hi As I checked the Tilecache code Mapserver.py. There is no option for image type format agg, as default is image/png. I tried agg/png that is not working in loadOWSparameters. How can I give AGG image type. Regards Gautam -- View this message in context: http://n2.nabble.com/Pyhton-mapscript-import-error-tp2341344p2400381.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Sat Feb 28 03:04:10 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sat, 28 Feb 2009 12:04:10 +0100 Subject: [mapserver-users] Pyhton mapscript import error In-Reply-To: <1235818096783-2400381.post@n2.nabble.com> References: <1234883796448-2341344.post@n2.nabble.com> <499B63C6.9000507@neogeo-online.net> <1234948665484-2345804.post@n2.nabble.com> <1235653828284-2389536.post@n2.nabble.com> <1235818096783-2400381.post@n2.nabble.com> Message-ID: hi, you should get going by adding MIMETYPE image/png to your agg outputformat bloc, or by explicitely calling your agg outputformat by its name in your tilecache requests (ie. format=aggpng24) regards, thomas On Sat, Feb 28, 2009 at 11:48, gautamvs wrote: > > Hi > As I checked the Tilecache code Mapserver.py. There is no option for image > type format agg, as default is image/png. I tried agg/png that is not > working in loadOWSparameters. How can I give AGG image type. > > Regards > Gautam > > -- > View this message in context: http://n2.nabble.com/Pyhton-mapscript-import-error-tp2341344p2400381.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From crschmidt at metacarta.com Sat Feb 28 04:01:58 2009 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Sat, 28 Feb 2009 07:01:58 -0500 Subject: [mapserver-users] Pyhton mapscript import error In-Reply-To: References: <1234883796448-2341344.post@n2.nabble.com> <499B63C6.9000507@neogeo-online.net> <1234948665484-2345804.post@n2.nabble.com> <1235653828284-2389536.post@n2.nabble.com> <1235818096783-2400381.post@n2.nabble.com> Message-ID: <20090228120158.GC22639@metacarta.com> On Sat, Feb 28, 2009 at 12:04:10PM +0100, thomas bonfort wrote: > hi, > you should get going by adding > MIMETYPE image/png > to your agg outputformat bloc, or by explicitely calling your agg > outputformat by its name in your tilecache requests (ie. > format=aggpng24) The former is the correct solution. THe latter won't work with the MapServer layer that is referenced. However, the MapServer Python bindings tend to leak like a sieve. If you ca, I'd recommend using a WMS layer instead, in which case i think thomas's suggestion would be acceptable as well, though I only ever use the former method. -- Chris > thomas > > On Sat, Feb 28, 2009 at 11:48, gautamvs wrote: > > > > Hi > > As I checked the Tilecache code Mapserver.py. There is no option for image > > type format agg, as default is image/png. I tried agg/png that is not > > working in loadOWSparameters. How can I give AGG image type. > > > > Regards > > Gautam > > > > -- > > View this message in context: http://n2.nabble.com/Pyhton-mapscript-import-error-tp2341344p2400381.html > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Christopher Schmidt MetaCarta From nishap97 at gmail.com Sat Feb 28 18:42:06 2009 From: nishap97 at gmail.com (nisha p) Date: Sat, 28 Feb 2009 21:42:06 -0500 Subject: [mapserver-users] nisha p sent you a Friend Request on Yaari Message-ID: <001d8519b420e34733cd70cae8643ea1@localhost.localdomain> nisha p wants you to join Yaari! Is nisha your friend? Yes, nisha is my friend! No, nisha isn't my friend. Please respond or nisha may think you said no :( Thanks, The Yaari Team ____ If you prefer not to receive this email tell us here. If you have any concerns regarding the content of this message, please email abuse at yaari.com. Yaari LLC, 358 Angier Ave, Atlanta, GA 30312 YaariPYS167RKT450OAV222WII225 -------------- next part -------------- An HTML attachment was scrubbed... URL: