From ChiefDan at gmail.com Fri Jul 1 06:32:17 2011 From: ChiefDan at gmail.com (ChiefDan) Date: Fri, 1 Jul 2011 06:32:17 -0700 (PDT) Subject: [mapserver-users] Re: Mapserver 5.6.6 and Python mapscript In-Reply-To: References: <1309459336021-6534460.post@n2.nabble.com> Message-ID: <1309527137882-6537782.post@n2.nabble.com> There are options I use in mapserver that are not compiled into the ubuntu distribution. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapserver-5-6-6-and-Python-mapscript-tp6534460p6537782.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ChiefDan at gmail.com Fri Jul 1 06:38:54 2011 From: ChiefDan at gmail.com (ChiefDan) Date: Fri, 1 Jul 2011 06:38:54 -0700 (PDT) Subject: [mapserver-users] Re: MapServer Make Failure on RedHat In-Reply-To: <1309347726866-6528584.post@n2.nabble.com> References: <1309347726866-6528584.post@n2.nabble.com> Message-ID: <1309527534187-6537807.post@n2.nabble.com> I stumbled across this: http://www.mail-archive.com/mapserver-users at lists.osgeo.org/msg09257.html that seems to be similar to your issue. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/MapServer-Make-Failure-on-RedHat-tp6528584p6537807.html Sent from the Mapserver - User mailing list archive at Nabble.com. From MarkVolz at co.lyon.mn.us Fri Jul 1 08:26:36 2011 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Fri, 1 Jul 2011 15:26:36 +0000 Subject: [mapserver-users] wms server - raster image quality Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA3A5FC@swmail01.r8nssis.local> Hello I set up a WMS Server using Mapserver. The quality of the map is terrible. If anyone an example of a mapfile to serve imagery via wms it would be appreciated. Thanks MAP NAME "MAP" EXTENT 699283 4853930 736320 4904147 PROJECTION "init=epsg:26914" END #PROJECTION OUTPUTFORMAT NAME 'gd/jpeg' #DRIVER GD/JPEG IMAGEMODE RGB #IMAGEMODE PC256 FORMATOPTION "TRANSPARENT=FALSE" FORMATOPTION "QUALITY=90" DRIVER "AGG/JPEG" MIMETYPE "image/jpeg" END #outputformat MAXSIZE 10000 #limit size of wms IMAGETYPE gd/jpeg WEB IMAGEPATH '/tmp/' IMAGEURL '/tmp/' METADATA 'wms_title' 'MAP' 'wms_onlineresource' 'http://localhost/cgi-bin/mapserv.exe?MAP=/ms4w/apps/PipestoneMOOSE/maps_pipestone/Raster/LocalRaster/FSA2010/LocalFSA2010.map' 'wms_srs' 'EPSG:26914' END #metadata END #web ########################### LAYER NAME 'FSA' TYPE RASTER DATA './ortho_1-1_1n_s_mn117_2010_1.sid' METADATA 'wms_title' 'FSA' END #metadata STATUS DEFAULT PROJECTION "proj=utm" "zone=14" "ellps=GRS80" "datum=NAD83" "units=m" "no_defs" END #PROJECTION PROCESSING "OVERSAMPLE_RATIO=1" END #layer END ## end Map Mark Volz GIS Specialist -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.callahan at udel.edu Fri Jul 1 08:44:25 2011 From: john.callahan at udel.edu (John Callahan) Date: Fri, 1 Jul 2011 11:44:25 -0400 Subject: [mapserver-users] job opportunity for web project Message-ID: [Hopefully, it's OK to post job opportunities to this list. I posted this to the PostGIS list but Mapserver may play a more prominent role is getting this work done. I am not sure which method/software to use for these tasks.] I'm looking to hire someone to help on a web project I'm working on. We use Postgres/PostGIS as the database, MapServer as the map engine, and OpenLayers/GeoExt as the javascript mapping framework on the front end. Server-side: PHP/Python, Windows, Apache. The project involves displaying numerous spatial data layers on a map with common functionality; this part has already been done, (screenshot at http://www.dgs.udel.edu/temp/screenshot_weblayout.png) However, we need to add several specific tasks, such as: - display subsets of points based on a certain criteria selected by user via radio-buttons - based on mouse click, return values of the polygon or raster grid cell clicked within - use attribute of a clicked polygon to perform queries/reporting from other tables - if a groundwater well is click on (points), then display time series graph of data - based on user selected criteria, select points and return as line and display on map If you would be interested in this opportunity or think this post would be more appropriate on another list, please let me know. It's fine with me if any work done is shared back to the community. Start date is anytime, sooner the better. Thanks. - John *********************************** John Callahan, Research Scientist Delaware Geological Survey University of Delaware URL: http://www.dgs.udel.edu ******************************* -------------- next part -------------- An HTML attachment was scrubbed... URL: From psoots at gmail.com Sat Jul 2 00:23:48 2011 From: psoots at gmail.com (psoots) Date: Sat, 2 Jul 2011 00:23:48 -0700 (PDT) Subject: [mapserver-users] Re: MapServer 6 - CGI but php mapscript not In-Reply-To: References: Message-ID: <1309591428612-6540443.post@n2.nabble.com> I am having the same issue. The problem is related to compiling MapServer. These warnings are scattered throughout my output when I run make: *warning: implicit declaration of function 'zval_set_isref_p'* Clearly the function isn't defined anywhere and I have no idea where to find it. I know my configurations are correct. I ran ldd on php_mapscript.so and nothing seemed to be missing. If zval_set_isref_p is a zend function, I couldn't find it anywhere in the zend files in my /usr/include/php/Zend directory. Could it be that MapServer is relying on an old version of Zend? Another possibility that I've read about in the http://mapserver.org/installation/php.html#faq-common-problems php MapServer FAQ is that php wasn't configured to load dynamic libraries. However, I am running on a shared host and didn't personally compile php. I'd like to avoid having to build my own custom php if I can. Is there a way to determine if php was configured this way or not? I'd even settle for finding the definition of zval_set_isref_p and putting it in all the necessary c files just to get the darn thing to compile properly. SETUP: My server is BlueHost (Fedora, I think). MapServer 6 PHP 5.2.17 with Suhosin-Patch 0.9.7 (cgi-fcgi) Zend Engine v2.2.0 with Zend Optimizer v3.3.9 -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/MapServer-6-CGI-but-php-mapscript-not-tp6502411p6540443.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From eduardo.kanegae at gmail.com Sat Jul 2 10:48:59 2011 From: eduardo.kanegae at gmail.com (Eduardo Kanegae) Date: Sat, 2 Jul 2011 14:48:59 -0300 Subject: RES: [mapserver-users] ENC: Openlayers Identify Problem Message-ID: Hi Steve, Just to drop a last note on topic http://lists.osgeo.org/pipermail/mapserver-users/2011-June/069053.html - the problem was solved: the layer template file was missing 'mapserver template' header tag. The strange thing: mapserver was reporting "no items found at this point". best -- Eduardo Patto Kanegae http://www.webmapit.com.br +55(19)9610-8768 -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.bagni at marcobagni.com Mon Jul 4 06:54:01 2011 From: m.bagni at marcobagni.com (Marco Bagni) Date: Mon, 4 Jul 2011 15:54:01 +0200 Subject: [mapserver-users] Thankyou Message and a possible bug in the SLD feature (mapserver 5.6.5-2) Message-ID: Hi all, after having received extremely useful support from this community, I wish to publicly recognize the effort spent by Yewondwossen Assefa in supporting my request of help. Thanks to his support I was able to overcome my problem related to the use of the SLD feature to apply a spatial user-related filter to a coverage. After his help, I went on with the experiments and I found that, under the release 5.6.5-2 of mapserver (linux Debian), the spatial filter, applied to a coverage maintains all the features defined in the map file for the elements that fall within the BBOX filter (this spatial filter worked fine as well as the more generic polygonal fence) with the exception of the LABEL, which was not passed to the selected features. In other words: given the calling URL like: http://bla-bla/cgi-bin/mapserv?map=/bla-bla-bla/maps_2.map&LAYERS=mylayer&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&TRANSPARENT=TRUE&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913&BBOX=-10018754.17,-10018754.17,0,0&WIDTH=256&HEIGHT=256&SLD=http://localhost/sldfile.xml and an sldfile.xml containing only the spatial filter like: mylayer xxx Geometry $BBOX_minx,$BBOX_miny $BBOX_maxx,$BBOX_maxy where $BBOX_m... are variables replaced by the BBOX coords, then, assuming that the layer "mylayer" is a polygon layer with a label defined, then the whole command returns only the polygons that fall within the BBOX boundaries with all the attributes defined in the map file (like the filling color or the stroke size and color) but without the LABEL (the same call without the SLD param returns the whole coverage including the labels. Again thank you Yewondwossen and thank you all. Respectfully. Marco Bagni From oliver.christen at camptocamp.com Mon Jul 4 06:54:27 2011 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Mon, 04 Jul 2011 15:54:27 +0200 Subject: [mapserver-users] Mapserver WMS server, IIS and wrong content-type Message-ID: <4E11C613.1000708@camptocamp.com> hi list One of our client reported some strange problem they have with their Mapserver (5.2.1) WMS server running on IIS 6.0, when doing a GetMap resquest, the "Content-Type" in the response is "text/html" instead of the mimetype specified in the OUTPUTFORMAT in the mapfile for the image format requested, as a result the image is displayed as text in browsers and some other clients. for example: http://geo.fr.ch/wms/orthophoto_2005_fribourg.php?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=Communes&SRS=EPSG:4326&BBOX=6.71555,46.3924,7.43958,47.0604&WIDTH=500&HEIGHT=500&FORMAT=image/png the header say: HTTP/1.1 200 OK Date: Mon, 04 Jul 2011 11:40:31 GMT Server: Microsoft-IIS/6.0 Content-Type: text/html Content-Length: 123821 the OUTPUTFORMAT in the mapfile are: OUTPUTFORMAT NAME png24 DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" FORMATOPTION "INTERLACE=ON" TRANSPARENT ON END OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" FORMATOPTION "INTERLACE=ON" FORMATOPTION "QUALITY=90" END Anyone has a idea what could be wrong? Is it some missing Mapserver configuration ? Or maybe in the IIS configuration? thanks for any idea about this. best regards Oliver Christen From leo_dumont at yahoo.fr Mon Jul 4 07:18:25 2011 From: leo_dumont at yahoo.fr (=?UTF-8?Q?L=C3=A9o_D=2E?=) Date: Mon, 4 Jul 2011 07:18:25 -0700 (PDT) Subject: [mapserver-users] Installing PHP MapScript with MapServer 6.0.0-3 and PHP 5.3.6 on Mac OS X 10.6.8 Message-ID: <1309789105155-6546297.post@n2.nabble.com> Hi there, I've installed MapServer 6.0.0-3 (thanks to the installer from http://www.kyngchaos.com) on my local computer, which I'm guessing is working since that when I'm going to http://localhost/cgi-bin/mapserv? with my browser I can see this error : "No query information to decode. QUERY_STRING is set, but empty." which means MapServer is working, right ? I'd like to use MapServer through the PHP MapScript. My installation seems ok for my phpinfo() displays a MapScript section. But when I'm running "php -m" command in my shell, there is no mention of MapScript in the list of modules, I'm guessing something is going wrong here but I've failed to find out what it could be. The Apache version on my mac is 2.2.17 and I'm running PHP 5.3.6. I've tried to make this http://mapserver.org/mapscript/php/by_example.html#php-example example work (I've of course changed the pathes in the MapFile so that they match to my local files), but despite my efforts it doesn't. And the script is not returning any error message, just an empty page. Any idea to help me solve that ? Thanks for your help ! L?o D. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Installing-PHP-MapScript-with-MapServer-6-0-0-3-and-PHP-5-3-6-on-Mac-OS-X-10-6-8-tp6546297p6546297.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Jul 4 07:19:43 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 04 Jul 2011 11:19:43 -0300 Subject: [mapserver-users] Mapserver WMS server, IIS and wrong content-type In-Reply-To: <4E11C613.1000708@camptocamp.com> References: <4E11C613.1000708@camptocamp.com> Message-ID: <4E11CBFF.3070806@gatewaygeomatics.com> Hello Oliver, Quick guess: maybe that IIS instance needs to be configured for that MIME type (http://technet.microsoft.com/en-us/library/cc786786%28WS.10%29.aspx). -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-07-04 10:54 AM, Oliver Christen wrote: > hi list > > One of our client reported some strange problem they have with their > Mapserver (5.2.1) WMS server running on IIS 6.0, > > when doing a GetMap resquest, the "Content-Type" in the response is > "text/html" instead of the mimetype specified in the OUTPUTFORMAT in the > mapfile for the image format requested, as a result the image is > displayed as text in browsers and some other clients. > > for example: > > http://geo.fr.ch/wms/orthophoto_2005_fribourg.php?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=Communes&SRS=EPSG:4326&BBOX=6.71555,46.3924,7.43958,47.0604&WIDTH=500&HEIGHT=500&FORMAT=image/png > > > the header say: > > HTTP/1.1 200 OK > Date: Mon, 04 Jul 2011 11:40:31 GMT > Server: Microsoft-IIS/6.0 > Content-Type: text/html > Content-Length: 123821 > > > the OUTPUTFORMAT in the mapfile are: > > OUTPUTFORMAT > NAME png24 > DRIVER "AGG/PNG" > MIMETYPE "image/png" > IMAGEMODE RGBA > EXTENSION "png" > FORMATOPTION "INTERLACE=ON" > TRANSPARENT ON > END > > OUTPUTFORMAT > NAME jpeg > DRIVER "GD/JPEG" > MIMETYPE "image/jpeg" > IMAGEMODE RGB > EXTENSION "jpg" > FORMATOPTION "INTERLACE=ON" > FORMATOPTION "QUALITY=90" > END > > > > Anyone has a idea what could be wrong? > Is it some missing Mapserver configuration ? > Or maybe in the IIS configuration? > > thanks for any idea about this. > > best regards > Oliver Christen > > From oliver.christen at camptocamp.com Mon Jul 4 07:24:15 2011 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Mon, 04 Jul 2011 16:24:15 +0200 Subject: [mapserver-users] Mapserver WMS server, IIS and wrong content-type In-Reply-To: <4E11CBFF.3070806@gatewaygeomatics.com> References: <4E11C613.1000708@camptocamp.com> <4E11CBFF.3070806@gatewaygeomatics.com> Message-ID: <4E11CD0F.5030506@camptocamp.com> Hi Jeff that would make some sens, but would IIS recognise the extension type when the url requested is a dynamic wms url ? ie. would IIS use the filename returned by Mapserver to match the extension ? O. > Hello Oliver, > > Quick guess: maybe that IIS instance needs to be configured for that > MIME type > (http://technet.microsoft.com/en-us/library/cc786786%28WS.10%29.aspx). > > -jeff > > From jmckenna at gatewaygeomatics.com Mon Jul 4 07:34:34 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 04 Jul 2011 11:34:34 -0300 Subject: [mapserver-users] Mapserver WMS server, IIS and wrong content-type In-Reply-To: <4E11CD0F.5030506@camptocamp.com> References: <4E11C613.1000708@camptocamp.com> <4E11CBFF.3070806@gatewaygeomatics.com> <4E11CD0F.5030506@camptocamp.com> Message-ID: <4E11CF7A.6010401@gatewaygeomatics.com> Hello Oliver, It can't hurt to try the steps outlined in that link I provided. It would answer the questions you posed in your last email. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-07-04 11:24 AM, Oliver Christen wrote: > Hi Jeff > > that would make some sens, but would IIS recognise the extension type > when the url requested is a dynamic wms url ? > ie. would IIS use the filename returned by Mapserver to match the > extension ? > > O. > >> Hello Oliver, >> >> Quick guess: maybe that IIS instance needs to be configured for that >> MIME type >> (http://technet.microsoft.com/en-us/library/cc786786%28WS.10%29.aspx). >> >> -jeff >> >> > > From oliver.christen at camptocamp.com Mon Jul 4 07:39:19 2011 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Mon, 04 Jul 2011 16:39:19 +0200 Subject: [mapserver-users] Mapserver WMS server, IIS and wrong content-type In-Reply-To: <4E11CF7A.6010401@gatewaygeomatics.com> References: <4E11C613.1000708@camptocamp.com> <4E11CBFF.3070806@gatewaygeomatics.com> <4E11CD0F.5030506@camptocamp.com> <4E11CF7A.6010401@gatewaygeomatics.com> Message-ID: <4E11D097.6070506@camptocamp.com> Hi Jeff, I do not have my hand on that server so I cant test it myself, I was only relaying the question. I did read the article but I failed to see how it would solve the problem. I will relay that info to the server admin and see if it works. thank you best regards Oliver > Hello Oliver, > > It can't hurt to try the steps outlined in that link I provided. It > would answer the questions you posed in your last email. > > -jeff > > From jmckenna at gatewaygeomatics.com Mon Jul 4 07:56:07 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 04 Jul 2011 11:56:07 -0300 Subject: [mapserver-users] Mapserver WMS server, IIS and wrong content-type In-Reply-To: <4E11D097.6070506@camptocamp.com> References: <4E11C613.1000708@camptocamp.com> <4E11CBFF.3070806@gatewaygeomatics.com> <4E11CD0F.5030506@camptocamp.com> <4E11CF7A.6010401@gatewaygeomatics.com> <4E11D097.6070506@camptocamp.com> Message-ID: <4E11D487.7030506@gatewaygeomatics.com> Hello Oliver, Here is some more info, taken from http://www.libpng.org/pub/png/pngstatus.html : "As a related item, note that Microsoft's Internet Information Server (a.k.a. IIS) shipped by default without an explicit MIME type for PNG images until version 6, which effectively meant that it treated PNGs as application/octet-stream rather than image/png. Not surprisingly, this affected only non-Microsoft web browsers connecting to IIS servers; they rightly refused to display such mislabelled PNGs. Fortunately, Microsoft did finally correct the problem with the release of IIS 6.0 in 2003, and a fix is available for older versions (at least for version 4.0)." So that goes along with my initial ideas. Anyway those are my quick thoughts on your problem with your client's IIS instance. If you want to contact me directly and we can work through this together with your client please do. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-07-04 11:39 AM, Oliver Christen wrote: > Hi Jeff, > I do not have my hand on that server so I cant test it myself, I was > only relaying the question. > I did read the article but I failed to see how it would solve the problem. > I will relay that info to the server admin and see if it works. > > thank you > best regards > Oliver > >> Hello Oliver, >> >> It can't hurt to try the steps outlined in that link I provided. It >> would answer the questions you posed in your last email. >> >> -jeff >> From lists at remoteinformation.com.au Mon Jul 4 08:35:08 2011 From: lists at remoteinformation.com.au (Ben Madin) Date: Mon, 4 Jul 2011 23:35:08 +0800 Subject: [mapserver-users] Installing PHP MapScript with MapServer 6.0.0-3 and PHP 5.3.6 on Mac OS X 10.6.8 In-Reply-To: <20110704151613.BC5F0E01D86@lists.osgeo.org> References: <20110704151613.BC5F0E01D86@lists.osgeo.org> Message-ID: <75F09D15-3C5C-4913-BD7B-7719B3041FAC@remoteinformation.com.au> L?o, My guess is that your php.ini doesn't load the php_mapscript.so library. There was a mention somewhere when installing the current update that this doesn't happen (and you can't dl() it anymore); so you need to go to the /usr/local/php5cgi/lib directory, and edit php.ini. somewhere (anywhere!) you need to add the line : extension=php_mapscript.so (I personally put it below the line that loads ming.so so I remember where to look) Then put a file with into your server root and execute it and you should end up with : MapScript MapServer Version MapServer version 6.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE PHP MapScript Version ($Revision: 11619 $ $Date: 2011-04-27 08:23:07 -0700 (Wed, 27 Apr 2011) $) I don't think it will show using php -m cheers Ben On 04/07/2011, at 11:16 PM, mapserver-users-request at lists.osgeo.org wrote: > From: L?o D. > Date: 4 July 2011 10:18:25 PM AWST > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Installing PHP MapScript with MapServer 6.0.0-3 and PHP 5.3.6 on Mac OS X 10.6.8 > > > Hi there, I've installed MapServer 6.0.0-3 (thanks to the installer from http://www.kyngchaos.com) on my local computer, which I'm guessing is working since that when I'm going to http://localhost/cgi-bin/mapserv? with my browser I can see this error : "No query information to decode. QUERY_STRING is set, but empty." which means MapServer is working, right ? I'd like to use MapServer through the PHP MapScript. My installation seems ok for my phpinfo() displays a MapScript section. But when I'm running "php -m" command in my shell, there is no mention of MapScript in the list of modules, I'm guessing something is going wrong here but I've failed to find out what it could be. The Apache version on my mac is 2.2.17 and I'm running PHP 5.3.6. I've tried to make this example work (I've of course changed the pathes in the MapFile so that they match to my local files), but despite my efforts it doesn't. And the script is not returning any error message, just an empty page. Any idea to help me solve that ? Thanks for your help ! L?o D. > View this message in context: Installing PHP MapScript with MapServer 6.0.0-3 and PHP 5.3.6 on Mac OS X 10.6.8 > Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie.allgrove at connectionservices.com Mon Jul 4 09:15:57 2011 From: charlie.allgrove at connectionservices.com (Charlie Allgrove) Date: Mon, 4 Jul 2011 17:15:57 +0100 Subject: [mapserver-users] PHP mapscript shapefile query with multiple filters Message-ID: <018401cc3a65$a904be30$fb0e3a90$@allgrove@connectionservices.com> Hi I have a shapefile containing almost 250k points in 3 cols (lat/long/sitetype). I need to use PHP mapscript to query that file to tell me how many points of a given type are present in a given rectangle. The script will either tell me the number of points in rectangle, OR points of a given type, but never both... Unfortunately I'm not at liberty to post the datafile anywhere, but the gist of the PHP is here: $lstrMapPath = "/path/to/shapefile"; $lstrOutput = ""; $lobjMap = ms_newMapObj($lstrMapPath); $lobjLayer = $lobjMap->getLayerByName("layer1"); if(!$lobjLayer) { exit; // errors handled elsewhere } $lobjLayer->open(); /* THIS WORKS */ @$lobjLayer->queryByRect($lobjRect); $lintCount = $lobjLayer->getNumResults(); /* THIS ALSO WORKS - BUT NOT IF THE queryByRect() is enabled above */ /* @$lobjLayer->queryByAttributes('sitetype','8',MS_MULTIPLE); $lintCount = $lobjLayer->getNumResults(); */ $lstrOutput = "layer".$k.":".$lintCount; $lobjLayer->close(); echo $lstrOutput; Any pointers would be gratefully received! Cheers Charlie -------------- next part -------------- An HTML attachment was scrubbed... URL: From woklist at kyngchaos.com Mon Jul 4 07:46:13 2011 From: woklist at kyngchaos.com (William Kyngesburye) Date: Mon, 4 Jul 2011 09:46:13 -0500 Subject: [mapserver-users] Installing PHP MapScript with MapServer 6.0.0-3 and PHP 5.3.6 on Mac OS X 10.6.8 In-Reply-To: <1309789105155-6546297.post@n2.nabble.com> References: <1309789105155-6546297.post@n2.nabble.com> Message-ID: PHP 5.3 doesn't allow extension loading from scripts now without compiling support for it into PHP and enabling it in php.ini. Unfortunately, I could not get that to work for my PHP package, so you must load extensions from php.ini with: extension=php_mapscript.so I need to add a note about this to my MapServer package, or make the installer do it. On Jul 4, 2011, at 9:18 AM, L?o D. wrote: > Hi there, I've installed MapServer 6.0.0-3 (thanks to the installer from http://www.kyngchaos.com) on my local computer, which I'm guessing is working since that when I'm going to http://localhost/cgi-bin/mapserv? with my browser I can see this error : "No query information to decode. QUERY_STRING is set, but empty." which means MapServer is working, right ? I'd like to use MapServer through the PHP MapScript. My installation seems ok for my phpinfo() displays a MapScript section. But when I'm running "php -m" command in my shell, there is no mention of MapScript in the list of modules, I'm guessing something is going wrong here but I've failed to find out what it could be. The Apache version on my mac is 2.2.17 and I'm running PHP 5.3.6. I've tried to make this example work (I've of course changed the pathes in the MapFile so that they match to my local files), but despite my efforts it doesn't. And the script is not returning any error message, just an empty page. Any idea to help me solve that ? Thanks for your help ! L?o D. > View this message in context: Installing PHP MapScript with MapServer 6.0.0-3 and PHP 5.3.6 on Mac OS X 10.6.8 > 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 ----- William Kyngesburye http://www.kyngchaos.com/ [Trillian] What are you supposed to do WITH a maniacally depressed robot? [Marvin] You think you have problems? What are you supposed to do if you ARE a maniacally depressed robot? No, don't try and answer, I'm 50,000 times more intelligent than you and even I don't know the answer... - HitchHiker's Guide to the Galaxy From oliver.christen at camptocamp.com Mon Jul 4 23:14:18 2011 From: oliver.christen at camptocamp.com (Oliver Christen) Date: Tue, 05 Jul 2011 08:14:18 +0200 Subject: [mapserver-users] Mapserver WMS server, IIS and wrong content-type In-Reply-To: <4E11D487.7030506@gatewaygeomatics.com> References: <4E11C613.1000708@camptocamp.com> <4E11CBFF.3070806@gatewaygeomatics.com> <4E11CD0F.5030506@camptocamp.com> <4E11CF7A.6010401@gatewaygeomatics.com> <4E11D097.6070506@camptocamp.com> <4E11D487.7030506@gatewaygeomatics.com> Message-ID: <4E12ABBA.5080103@camptocamp.com> Hello Jeff Thank you for the informations, I have transmitted what you told me to my client's IIS admin, I will see if they can work it on by themself or if they need further assistance. Thanks again best regards Oliver > Hello Oliver, > > Here is some more info, taken from > http://www.libpng.org/pub/png/pngstatus.html : > > "As a related item, note that Microsoft's Internet Information Server > (a.k.a. IIS) shipped by default without an explicit MIME type for PNG > images until version 6, which effectively meant that it treated PNGs > as application/octet-stream rather than image/png. Not surprisingly, > this affected only non-Microsoft web browsers connecting to IIS > servers; they rightly refused to display such mislabelled PNGs. > Fortunately, Microsoft did finally correct the problem with the > release of IIS 6.0 in 2003, and a fix is available for older versions > (at least for version 4.0)." > > So that goes along with my initial ideas. > > Anyway those are my quick thoughts on your problem with your client's > IIS instance. If you want to contact me directly and we can work > through this together with your client please do. > > -jeff > From dushan888 at gmail.com Mon Jul 4 23:24:07 2011 From: dushan888 at gmail.com (Dushi) Date: Tue, 5 Jul 2011 11:54:07 +0530 Subject: [mapserver-users] mapserver on apache - issue Message-ID: Hi guys, Im using mapserver with apache on Ubuntu. I'm trying to generate a PNG image using shape files by calling a map file. When i call the mapserver through apache2 web server it only generates an empty PNG with white space. but when i call it through "shp2img" utility it works fine. please be kind to help me. i'm a new to mapserver. Thank you so much -- Me on Web http://dushan888.wordpress.com http://www.twitter.com/Dushi http://identi.ca/dushi -------------- next part -------------- An HTML attachment was scrubbed... URL: From pelin.01 at gmail.com Tue Jul 5 04:46:05 2011 From: pelin.01 at gmail.com (pelin) Date: Tue, 5 Jul 2011 08:46:05 -0300 Subject: [mapserver-users] pie/bar graphs with labels? Message-ID: estimados, como estan. les hago una consulta,es posible poner labels en layers que son CHART? is feasible put labels into layers with type CHART? Saludos! -- -------------------------------------------------------- http://blogs.hydras.com.ar/srodriguez/ -------------------------------------------------------- Atentamente Rolando Sergio Rodriguez -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdlime at gmail.com Tue Jul 5 06:55:25 2011 From: sdlime at gmail.com (Steve Lime) Date: Tue, 5 Jul 2011 08:55:25 -0500 Subject: RES: [mapserver-users] ENC: Openlayers Identify Problem In-Reply-To: References: Message-ID: Is that the exact error message? Sent from my iPad On Jul 2, 2011, at 12:48 PM, Eduardo Kanegae wrote: > Hi Steve, > > Just to drop a last note on topic http://lists.osgeo.org/pipermail/mapserver-users/2011-June/069053.html > - the problem was solved: the layer template file was missing 'mapserver template' header tag. > > The strange thing: mapserver was reporting "no items found at this point". > > best > > -- > Eduardo Patto Kanegae > http://www.webmapit.com.br > +55(19)9610-8768 > > _______________________________________________ > 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 boolean10001 at yahoo.com Tue Jul 5 07:30:58 2011 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Tue, 5 Jul 2011 07:30:58 -0700 (PDT) Subject: [mapserver-users] pie/bar graphs with labels? In-Reply-To: References: Message-ID: <1309876258.78881.YahooMailNeo@web38203.mail.mud.yahoo.com> Rolando, Al parecer no es posible dibujar etiquetas en capas de tipo chart. He hecho el intento haciendo uso de LABELITEM y LABEL pero no las dibuja. Desconozco si exista una directiva en PROCESSING que pudiera hacer esto. Saludos desde Guadalajara, M?xico It seems it's not possible to draw labels with chart type layers. I've been trying with LABELITEM and LABEL but it doesn't work. I don't know if there's a PROCESSING directive to draw a label. Cheers from Guadalajara, M?xico ? IC Carlos Ruiz ________________________________ From: pelin To: mapserver-users at lists.osgeo.org Sent: Tuesday, July 5, 2011 6:46 AM Subject: [mapserver-users] pie/bar graphs with labels? estimados, como estan. les hago una consulta,es posible poner labels en layers que son CHART? is feasible put labels into layers with type CHART? Saludos! -- -------------------------------------------------------- http://blogs.hydras.com.ar/srodriguez/ -------------------------------------------------------- ?Atentamente ? ? ? ?? Rolando Sergio Rodriguez _______________________________________________ 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 pelin.01 at gmail.com Tue Jul 5 07:42:09 2011 From: pelin.01 at gmail.com (pelin) Date: Tue, 5 Jul 2011 11:42:09 -0300 Subject: [mapserver-users] pie/bar graphs with labels? In-Reply-To: <1309876258.78881.YahooMailNeo@web38203.mail.mud.yahoo.com> References: <1309876258.78881.YahooMailNeo@web38203.mail.mud.yahoo.com> Message-ID: Estimado Carlos: Muchas gracias por la respuesta. Yo tambien trate pero aun no consegui nada, pero seguire intentando. Saludos! Atentamente Rolando Sergio Rodriguez DIT Direccion de Informacion Territorial - SPER Provincia del Chaco Marcelo T. de Alvear 145 - 9no Piso de Casa de Gobierno Tel: 03722-456426 (Directo) 03722-448000 int. 6426 Cel: 03722-15-814858 (red win) BB Messenger: 22F397A7 http://etisig.chaco.gov.ar http://etisig.siup.gov.ar -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdlime at gmail.com Tue Jul 5 08:29:37 2011 From: sdlime at gmail.com (Steve Lime) Date: Tue, 5 Jul 2011 10:29:37 -0500 Subject: [mapserver-users] PHP mapscript shapefile query with multiple filters In-Reply-To: <4e11e8eb.4a80e50a.5095.1212SMTPIN_ADDED@mx.google.com> References: <4e11e8eb.4a80e50a.5095.1212SMTPIN_ADDED@mx.google.com> Message-ID: <1087F03C-0231-4571-B064-4E5565DC10DE@gmail.com> What version? What happens if you close the layer between calls to queries? Steve Sent from my iPad On Jul 4, 2011, at 11:15 AM, "Charlie Allgrove" wrote: > Hi > > > > I have a shapefile containing almost 250k points in 3 cols (lat/long/sitetype). > > I need to use PHP mapscript to query that file to tell me how many points of a given type are present in a given rectangle. > > > > The script will either tell me the number of points in rectangle, OR points of a given type, but never both... > > Unfortunately I'm not at liberty to post the datafile anywhere, but the gist of the PHP is here: > > > > > > $lstrMapPath = "/path/to/shapefile"; > > $lstrOutput = ""; > > > > $lobjMap = ms_newMapObj($lstrMapPath); > > > > $lobjLayer = $lobjMap->getLayerByName("layer1"); > > if(!$lobjLayer) { > > exit; // errors handled elsewhere > > } > > > > $lobjLayer->open(); > > /* THIS WORKS */ > > @$lobjLayer->queryByRect($lobjRect); > > $lintCount = $lobjLayer->getNumResults(); > > > > /* THIS ALSO WORKS - BUT NOT IF THE queryByRect() is enabled above */ > > /* > > @$lobjLayer->queryByAttributes('sitetype','8',MS_MULTIPLE); > > $lintCount = $lobjLayer->getNumResults(); > > */ > > $lstrOutput = "layer".$k.":".$lintCount; > > $lobjLayer->close(); > > > > echo $lstrOutput; > > > > > > > > Any pointers would be gratefully received! > > > > Cheers > > > > Charlie > > > > _______________________________________________ > 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 sdlime at gmail.com Tue Jul 5 08:33:50 2011 From: sdlime at gmail.com (Steve Lime) Date: Tue, 5 Jul 2011 10:33:50 -0500 Subject: [mapserver-users] mapserver on apache - issue In-Reply-To: References: Message-ID: I'm guessing this is a layer status issue. The cgi and shp2img behave differently in that regard. The cgi sets any non-default layer to off so you must request the layers to be on explicitly using the "layer" variable, e.g. ...&layer=foo1&layer=foo2&... Steve Sent from my iPad On Jul 5, 2011, at 1:24 AM, Dushi wrote: > Hi guys, > Im using mapserver with apache on Ubuntu. I'm trying to generate a PNG image using shape files by calling a map file. When i call the mapserver through apache2 web server it only generates an empty PNG with white space. but when i call it through "shp2img" utility it works fine. please be kind to help me. i'm a new to mapserver. > Thank you so much > -- > Me on Web > http://dushan888.wordpress.com > http://www.twitter.com/Dushi > http://identi.ca/dushi > _______________________________________________ > 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 charlie.allgrove at connectionservices.com Tue Jul 5 08:41:17 2011 From: charlie.allgrove at connectionservices.com (Charlie Allgrove) Date: Tue, 5 Jul 2011 16:41:17 +0100 Subject: [mapserver-users] PHP mapscript shapefile query with multiple filters In-Reply-To: <1087F03C-0231-4571-B064-4E5565DC10DE@gmail.com> References: <4e11e8eb.4a80e50a.5095.1212SMTPIN_ADDED@mx.google.com> <1087F03C-0231-4571-B064-4E5565DC10DE@gmail.com> Message-ID: <007b01cc3b29$fc67f0f0$f537d2d0$@allgrove@connectionservices.com> We're running 5.6 at the moment. I'll try closing layers between querie...and let you know Cheers Charlie From: Steve Lime [mailto:sdlime at gmail.com] Sent: 05 July 2011 16:30 To: Charlie Allgrove Cc: Subject: Re: [mapserver-users] PHP mapscript shapefile query with multiple filters What version? What happens if you close the layer between calls to queries? Steve Sent from my iPad On Jul 4, 2011, at 11:15 AM, "Charlie Allgrove" wrote: Hi I have a shapefile containing almost 250k points in 3 cols (lat/long/sitetype). I need to use PHP mapscript to query that file to tell me how many points of a given type are present in a given rectangle. The script will either tell me the number of points in rectangle, OR points of a given type, but never both... Unfortunately I'm not at liberty to post the datafile anywhere, but the gist of the PHP is here: $lstrMapPath = "/path/to/shapefile"; $lstrOutput = ""; $lobjMap = ms_newMapObj($lstrMapPath); $lobjLayer = $lobjMap->getLayerByName("layer1"); if(!$lobjLayer) { exit; // errors handled elsewhere } $lobjLayer->open(); /* THIS WORKS */ @$lobjLayer->queryByRect($lobjRect); $lintCount = $lobjLayer->getNumResults(); /* THIS ALSO WORKS - BUT NOT IF THE queryByRect() is enabled above */ /* @$lobjLayer->queryByAttributes('sitetype','8',MS_MULTIPLE); $lintCount = $lobjLayer->getNumResults(); */ $lstrOutput = "layer".$k.":".$lintCount; $lobjLayer->close(); echo $lstrOutput; Any pointers would be gratefully received! Cheers Charlie _______________________________________________ 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 leo_dumont at yahoo.fr Tue Jul 5 09:19:19 2011 From: leo_dumont at yahoo.fr (=?UTF-8?Q?L=C3=A9o_D=2E?=) Date: Tue, 5 Jul 2011 09:19:19 -0700 (PDT) Subject: [mapserver-users] Re: Installing PHP MapScript with MapServer 6.0.0-3 and PHP 5.3.6 on Mac OS X 10.6.8 In-Reply-To: <75F09D15-3C5C-4913-BD7B-7719B3041FAC@remoteinformation.com.au> References: <1309789105155-6546297.post@n2.nabble.com> <75F09D15-3C5C-4913-BD7B-7719B3041FAC@remoteinformation.com.au> Message-ID: <1309882759444-6550486.post@n2.nabble.com> Thanks to both of you for your answers. I've allready edit my php.ini to add "extension=php_mapscript.so" and with a phpinfo() I can see the section about MapScript. Moreover when I run this script to test if the extension is loaded or not and I have a positive result, so I think that PHP MapScript is working: if (!extension_loaded('MapScript')) { echo"Not loaded"; } else { echo"Loaded!"; } But when I try to run the example script from the mapserver.org documentation (without the dl() instruction), it doesn't work and I have no error message, just an empty page. Here is my php code: draw(); $image_url = $image->saveWebImage(); echo' Exemple : Afficher un shapefile '.$image_url.' '; ?> And here is my mapfile: MAP NAME "Europe en bleu" SIZE 400 400 STATUS ON EXTENT -31.2467 27.6065 40.1199 80.762 UNITS DD SHAPEPATH "~/macbook/Sites/mapserver/introduction/shape/" WEB IMAGEPATH '~/macbook/Sites/mapeserver/temp/' IMAGEURL '/temp/' END LAYER NAME "Europe" TYPE POLYGON STATUS ON DATA "europe" CLASS STYLE COLOR 20 10 110 OUTLINECOLOR 200 200 200 END END END END Maybe I've made a mistake in one of these files? Thanks for your help ! L?o -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Installing-PHP-MapScript-with-MapServer-6-0-0-3-and-PHP-5-3-6-on-Mac-OS-X-10-6-8-tp6546297p6550486.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jfuch at indec.mecon.gov.ar Tue Jul 5 10:44:14 2011 From: jfuch at indec.mecon.gov.ar (Fuchs Juan Carlos) Date: Tue, 5 Jul 2011 14:44:14 -0300 Subject: [mapserver-users] pie/bar graphs with labels? Message-ID: Estimados Siempre es posible hacer una nueva capa con anotaciones y vlocar ah? las etiquetas agrupar la capa chart con la capa anotaciones y manejar el grupo como una sola capa. que por este camino se llega a un sinf?n de capas?, y s?, as? es la vida en Mapserver. pero imagino que esto ya lo ?sab?an, solo digo Saludos JC -----Mensaje original----- De: Carlos Ruiz [mailto:boolean10001 at yahoo.com] Enviado el: Martes, 05 de Julio de 2011 11:31 a.m. Para: pelin; mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] pie/bar graphs with labels? Rolando, Al parecer no es posible dibujar etiquetas en capas de tipo chart. He hecho el intento haciendo uso de LABELITEM y LABEL pero no las dibuja. Desconozco si exista una directiva en PROCESSING que pudiera hacer esto. Saludos desde Guadalajara, M?xico It seems it's not possible to draw labels with chart type layers. I've been trying with LABELITEM and LABEL but it doesn't work. I don't know if there's a PROCESSING directive to draw a label. Cheers from Guadalajara, M?xico IC Carlos Ruiz _____ From: pelin To: mapserver-users at lists.osgeo.org Sent: Tuesday, July 5, 2011 6:46 AM Subject: [mapserver-users] pie/bar graphs with labels? estimados, como estan. les hago una consulta,es posible poner labels en layers que son CHART? is feasible put labels into layers with type CHART? Saludos! -- -------------------------------------------------------- http://blogs.hydras.com.ar/srodriguez/ -------------------------------------------------------- Atentamente Rolando Sergio Rodriguez _______________________________________________ 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 dmorissette at mapgears.com Tue Jul 5 14:13:07 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 05 Jul 2011 17:13:07 -0400 Subject: [mapserver-users] Re: Installing PHP MapScript with MapServer 6.0.0-3 and PHP 5.3.6 on Mac OS X 10.6.8 In-Reply-To: <1309882759444-6550486.post@n2.nabble.com> References: <1309789105155-6546297.post@n2.nabble.com> <75F09D15-3C5C-4913-BD7B-7719B3041FAC@remoteinformation.com.au> <1309882759444-6550486.post@n2.nabble.com> Message-ID: <4E137E63.4050805@mapgears.com> On 11-07-05 12:19 PM, L?o D. wrote: > > But when I try to run the example script from the mapserver.org > documentation (without the dl() instruction), it doesn't work and I have no > error message, just an empty page. Here is my php code: > If you do a "View Source" in your browser on the empty page, is the soruce really empty or does it contain anything or an error message? Next step would be to look at the Apache error_log file for error messages, and also try enabling debug output and see if anything shows up. Fro more info see: http://mapserver.org/optimization/debugging.html -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From Robert.Sanson at asurequality.com Tue Jul 5 14:08:28 2011 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Wed, 06 Jul 2011 09:08:28 +1200 Subject: [mapserver-users] Random colours for polygon fill? In-Reply-To: References: Message-ID: <4E14260B.379F.0037.1@asurequality.com> Dear Mapserver users Just wondering if it is possible to colour a polygon Shape file layer with each distinct polygon having a different colour? Many thanks, Robert Sanson This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system. This message has been scanned for Malware and Viruses by Websense Hosted Security. www.websense.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From luis.peinado at geodata.es Wed Jul 6 04:17:58 2011 From: luis.peinado at geodata.es (luis peinado) Date: Wed, 6 Jul 2011 13:17:58 +0200 Subject: [mapserver-users] KML as Outputformat returns incorrect coordinates In-Reply-To: <603153.40051.qm@web114406.mail.gq1.yahoo.com> References: <603153.40051.qm@web114406.mail.gq1.yahoo.com> Message-ID: Hi all, I'm having some related problem: I have no problem with my mapserver png outputformat: This png request works really fine: http://geoserver3/wms60/ddgi/servidor/espaisprotegits?FORMAT=image/png&TRANSPARENT=true&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&LAYERS=zonhum&SRS=EPSG%3A4326&BBOX=-1.0469740101326659,41.39036252208658,5.764549426147167,42.77237478582793&WIDTH=1860&HEIGHT=1039 Changing only the FORMAT parameter to KML: http://geoserver3/wms60/ddgi/servidor/espaisprotegits?FORMAT=KML&TRANSPARENT=true&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&LAYERS=zonhum&SRS=EPSG%3A4326&BBOX=-1.0469740101326659,41.39036252208658,5.764549426147167,42.77237478582793&WIDTH=1860&HEIGHT=1039 (sorry, my server is not at the Internet). I get as a response an xml file with no extension and taking a look at it with my text editor, I can see things like 583.23708456,950.02673133 583.22503040,950.03227145 And these coordinates are wrong. Mapserver's log doese not seem to show any problem: Log after the FORMAT=kml query [Wed Jul 6 13:08:21 2011].550681 CGI Request 1 on process 1073 [Wed Jul 6 13:08:21 2011].550929 msWMSLoadGetMapParams(): enabling non-square pixels. [Wed Jul 6 13:08:21 2011].551361 msDrawMap(): kicking into non-square pixel preserving mode. [Wed Jul 6 13:08:21 2011].551380 msDrawMap(): rendering using outputformat named kml (KML). [Wed Jul 6 13:08:21 2011].551400 msDrawMap(): WMS/WFS set-up and query, 0.000s [Wed Jul 6 13:08:22 2011].533734 msDrawMap(): Layer 0 (zonhum), 0.982s [Wed Jul 6 13:08:22 2011].533776 msDrawMap(): Drawing Label Cache, 0.000s [Wed Jul 6 13:08:22 2011].533791 msDrawMap() total time: 0.983s [Wed Jul 6 13:08:22 2011].942736 msSaveImage(stdout) total time: 0.409s [Wed Jul 6 13:08:22 2011].943681 mapserv request processing time (msLoadMap not incl.): 1.393s [Wed Jul 6 13:08:22 2011].943700 msFreeMap(): freeing map at 0x9603678. Can someone help me? Thanks in advance for any response. Llu?s. 2011/6/6 Joe Franklin > I'm using Mapserver 6.0. I get the same results using the windows MS4W > version as well as compiling it myself on Centos 5. I'm including a simple > map file with an embedded point, but I also tested using a point shapefile. > Anyone else see this problem? > > Works using shp2img- returns -77.00000000,48.000000000: > shp2img -m airport.map > > Doesn't work using mapserv CGI or PHP Mapscript - returns > 76.80000000,409.60000000 > mapserv -nh > "QUERY_STRING=map=airport.map&service=wms&VERSION=1.1.1&REQUEST=GetMap&SRS=epsg:4326&WIDTH=512&HEIGHT=512&LAYERS=Airports&TRANSPARENT=TRUE&FORMAT=kml&BBOX=-80,40,-60,50" > > > MAP > NAME "Airport" > STATUS ON > SIZE 512 512 > EXTENT -80 40 -60 50 > IMAGETYPE kml > UNITS DD > IMAGECOLOR 255 255 255 > PROJECTION > "init=epsg:4326" > END > WEB > METADATA > "ows_enable_request" "*" > "wms_title" "Airport" > "wms_onlineresource" "http://localhost/mapserv?map=/tmp/airport.map > " > "ows_srs" "epsg:4326" > END > END #WEB > SYMBOL > NAME 'circle' > TYPE ellipse > FILLED true > POINTS 1 1 END > END > LAYER > NAME "Airports" > TYPE point > FEATURE > POINTS -77 48 END > END > METADATA > "wms_title" "Airports" > END # METADATA > STATUS ON > CLASS > STYLE > COLOR 255 0 0 > SYMBOL 1 > SIZE 5 > END # STYLE > TEMPLATE "ttt_query.html" > END # CLASS > END # LAYER > END > > > MapServer version 6.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML > SUPPORTS=PROJ > SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV > SUPPORTS=FRIBIDI > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI > SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE > > _______________________________________________ > 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 jmckenna at gatewaygeomatics.com Wed Jul 6 05:00:03 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 06 Jul 2011 09:00:03 -0300 Subject: [mapserver-users] KML as Outputformat returns incorrect coordinates In-Reply-To: References: <603153.40051.qm@web114406.mail.gq1.yahoo.com> Message-ID: <4E144E43.7000005@gatewaygeomatics.com> You might be hitting the same issue that I reported a few weeks ago (http://trac.osgeo.org/mapserver/ticket/3928). -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-07-06 8:17 AM, luis peinado wrote: > Hi all, > I'm having some related problem: > I have no problem with my mapserver png outputformat: > This png request works really fine: > http://geoserver3/wms60/ddgi/servidor/espaisprotegits?FORMAT=image/png&TRANSPARENT=true&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&LAYERS=zonhum&SRS=EPSG%3A4326&BBOX=-1.0469740101326659,41.39036252208658,5.764549426147167,42.77237478582793&WIDTH=1860&HEIGHT=1039 > > > Changing only the FORMAT parameter to KML: > http://geoserver3/wms60/ddgi/servidor/espaisprotegits?FORMAT=KML&TRANSPARENT=true&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&LAYERS=zonhum&SRS=EPSG%3A4326&BBOX=-1.0469740101326659,41.39036252208658,5.764549426147167,42.77237478582793&WIDTH=1860&HEIGHT=1039 > > > (sorry, my server is not at the Internet). > > I get as a response an xml file with no extension and taking a look at > it with my text editor, I can see things like > > 583.23708456,950.02673133 > 583.22503040,950.03227145 > > And these coordinates are wrong. > > Mapserver's log doese not seem to show any problem: > Log after the FORMAT=kml query > > [Wed Jul 6 13:08:21 2011].550681 CGI Request 1 on process 1073 > [Wed Jul 6 13:08:21 2011].550929 msWMSLoadGetMapParams(): enabling > non-square pixels. > [Wed Jul 6 13:08:21 2011].551361 msDrawMap(): kicking into non-square > pixel preserving mode. > [Wed Jul 6 13:08:21 2011].551380 msDrawMap(): rendering using > outputformat named kml (KML). > [Wed Jul 6 13:08:21 2011].551400 msDrawMap(): WMS/WFS set-up and query, > 0.000s > [Wed Jul 6 13:08:22 2011].533734 msDrawMap(): Layer 0 (zonhum), 0.982s > [Wed Jul 6 13:08:22 2011].533776 msDrawMap(): Drawing Label Cache, 0.000s > [Wed Jul 6 13:08:22 2011].533791 msDrawMap() total time: 0.983s > [Wed Jul 6 13:08:22 2011].942736 msSaveImage(stdout) total time: 0.409s > [Wed Jul 6 13:08:22 2011].943681 mapserv request processing time > (msLoadMap not incl.): 1.393s > [Wed Jul 6 13:08:22 2011].943700 msFreeMap(): freeing map at 0x9603678. > > Can someone help me? > Thanks in advance for any response. > Llu?s. > > 2011/6/6 Joe Franklin > > > I'm using Mapserver 6.0. I get the same results using the windows > MS4W version as well as compiling it myself on Centos 5. I'm > including a simple map file with an embedded point, but I also > tested using a point shapefile. Anyone else see this problem? > > Works using shp2img- returns -77.00000000,48.000000000: > shp2img -m airport.map > > Doesn't work using mapserv CGI or PHP Mapscript - returns > 76.80000000,409.60000000 > mapserv -nh > "QUERY_STRING=map=airport.map&service=wms&VERSION=1.1.1&REQUEST=GetMap&SRS=epsg:4326&WIDTH=512&HEIGHT=512&LAYERS=Airports&TRANSPARENT=TRUE&FORMAT=kml&BBOX=-80,40,-60,50" > > > MAP > NAME "Airport" > STATUS ON > SIZE 512 512 > EXTENT -80 40 -60 50 > IMAGETYPE kml > UNITS DD > IMAGECOLOR 255 255 255 > PROJECTION > "init=epsg:4326" > END > WEB > METADATA > "ows_enable_request" "*" > "wms_title" "Airport" > "wms_onlineresource" "http://localhost/mapserv?map=/tmp/airport.map" > "ows_srs" "epsg:4326" > END > END #WEB > SYMBOL > NAME 'circle' > TYPE ellipse > FILLED true > POINTS 1 1 END > END > LAYER > NAME "Airports" > TYPE point > FEATURE > POINTS -77 48 END > END > METADATA > "wms_title" "Airports" > END # METADATA > STATUS ON > CLASS > STYLE > COLOR 255 0 0 > SYMBOL 1 > SIZE 5 > END # STYLE > TEMPLATE "ttt_query.html" > END # CLASS > END # LAYER > END > > > MapServer version 6.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML > SUPPORTS=PROJ > SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV > SUPPORTS=FRIBIDI > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER > SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG > INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > From Jukka.Rahkonen at mmmtike.fi Wed Jul 6 05:35:25 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 6 Jul 2011 12:35:25 +0000 Subject: [mapserver-users] Example of GPSBabel outputformat wanted Message-ID: <84446DEF76453C439E9E97E438E13A63012023@suutari.haapa.mmm.fi> Hi, After reading some Mapserver, GDAL and GPSBabel documents I have a feeling that it should be possible to reach pretty amusing results with Mapserver WFS and ORG output. For example it looks possible to do WFS GetFeature request and get back POIs which could be installed directly into Garmin handheld GPS units. [1] http://mapserver.org/trunk/output/ogr.html [2] http://svn.osgeo.org/mapserver/trunk/msautotest/wxs/wfs_ogr.map [3] http://gdal.org/ogr/drv_gpsbabel.html [4] http://www.gpsbabel.org/htmldoc-development/fmt_garmin_gpi.html I wonder if someone has a working example about some OGR/GPSBabel driver based outputformat section of a mapfile like the ones in document [2] to be used as an template. The syntax is not very clear for a firsttimer. -Jukka Rahkonen- From Gunnar.Stroeer at stadt.freiburg.de Wed Jul 6 05:33:48 2011 From: Gunnar.Stroeer at stadt.freiburg.de (Gunnar Stroeer) Date: Wed, 06 Jul 2011 14:33:48 +0200 Subject: [mapserver-users] Compiling Mapserver 6 ./configure problem with gif-lib Message-ID: <4E14724C.B0BD.0068.1@stadt.freiburg.de> Hi all, I've a problem with compiling Mapserver on SLES11, I can't do a clean configure command without getting errors, even I installed the giv-lib devs. The "gif_lib.h" is located in following folders: find -name gif_lib.h ./usr/local/src/gdal-1.6.2/frmts/gif/libungif/gif_lib.h ./usr/src/debug/giflib-4.1.6/lib/gif_lib.h My ./configure command for Mapserver 6.0.0 is: ./configure --with-gd --with-freetype --without-tiff --with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config --with-proj=/usr/local/src/proj-4.7.0 --with-zlib --with-jpeg --with-png=/usr/ --with-curl-config=/usr/bin/curl-config --with-threads --with-postgis --with-wfs --with-wcs --with-wmsclient --with-wfsclient --with-php=/usr/include/php5/ --enable-debug -with-agg=/usr/local/src/agg-2.5 --with-geos --with-fastcgi=/usr/local/src/fcgi-2.4.0 --with-oraclespatial=yes I've also tried adding "--with-gif=/usr/src/" and variations without success. The error is: ... checking for /usr//include/png.h... yes checking setjmp.h usability... yes checking setjmp.h presence... yes checking for setjmp.h... yes configure: checking where GIF is installed... checking for DGifOpenFileHandle in -lgif... no checking gif_lib.h usability... no checking gif_lib.h presence... no checking for gif_lib.h... no configure: error: cannot find gif headers in system path I'd appreciate any help for getting a solution. Regards, Gunnar --------------------------------------------- Gunnar Str?er Administration Geodatenmanagement Stadt Freiburg i. Br. Stabsstelle Geodatenmanagement Fehrenbachallee 12 79106 Freiburg i. Br. Tel. +49 761/201-4031 Fax +49 761/201-4049 E-Mail: gunnar.stroeer at stadt.freiburg.de --------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From chris.green at ibstv.co.uk Wed Jul 6 06:16:54 2011 From: chris.green at ibstv.co.uk (Chris Green) Date: Wed, 6 Jul 2011 14:16:54 +0100 Subject: FW: [mapserver-users] php-Mapscript and MySQL layer syntax Message-ID: <022d01cc3bde$f9f8c370$edea4a50$@green@ibstv.co.uk> Hello to all, especially PHP-Mapscript users: Apologies for asking the same question twice, but I got no responses to the below and I am still stuck on both problems. Very happy to receive some help on either but especially the first one.. Chris From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Chris Green Sent: 27 June 2011 09:05 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] php-Mapscript and MySQL layer syntax Hi to all I am using PHP5-Mapscript together with Mapserver 6.0 and I have a layer which obtains its data from a MySQL database via an OGR connection. This all works, but I am having trouble with two items of PHP-Mapscript syntax: 1. $layer->getExtent() - I can't make this work with my layer: can someone confirm if it works with a MySQL layer and if so give a syntax example? 2. $query= $layer->queryByAttributes(null, $expression, MS_MULTIPLE); On the 2nd question I came across some advice from Frank Wamerdam dated 2006 which said: "The trick with OGR connections to pass the filter through to OGR is to use a query expression starting with WHERE. So you might do something like: expr = 'WHERE ' + $qField + ' = ' + $qValue $qLayer->queryByAttributes(null,$expr,MS_MULTIPLE); (forgive my incorrect PHP syntax, I'm just trying to get the idea accross)." However I can't come up with any expression that gives me any results at all. Is there any current advice on how to do this kind of query over an OGR connection? Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: ATT02834.txt URL: From lists at remoteinformation.com.au Wed Jul 6 06:33:30 2011 From: lists at remoteinformation.com.au (Ben Madin) Date: Wed, 6 Jul 2011 21:33:30 +0800 Subject: [mapserver-users] Re: Installing PHP MapScript with MapServer 6.0.0-3 and PHP 5.3.6 on Mac OS X 10.6.8 In-Reply-To: <20110706140155.BAE24E02108@lists.osgeo.org> References: <20110706140155.BAE24E02108@lists.osgeo.org> Message-ID: <0A15367A-3D74-4A09-81F1-A4D32B24B535@remoteinformation.com.au> L?o, First, I'd volunteer that you have incorrect paths - using ~ probably isn't going to work unless the webserver is running as you (unlikely, but possible) I'm assuming from what you have that your system looks like (and your user is called macbook) : Sites | +---mapserver | +----- introduction | | | +----- test.map | | | +----- shape | | | +----- europe.shp etc | +----- temp | +----- test.php > $map = ms_newMapObj("~/macbook/Sites/mapeserver/introduction/test.map"); probably then should be : $map = ms_newMapObj("introduction/test.map"); > SHAPEPATH "~/macbook/Sites/mapserver/introduction/shape/" probably then should be : SHAPEPATH "/Users/macbook/Sites/mapserver/introduction/shape/" > IMAGEPATH '~/macbook/Sites/mapeserver/temp/' probably then could be : IMAGEPATH 'temp/' > IMAGEURL '/temp/' should then work. You also need to make the temp/ directory writeable by the webserver - for now, I'd just Get Info on the directory, and make that directory write and read by anyone - security risk blah, but for now, just get it working. Then open your Console (in Utilities) and navigate down to FILES > /private/var/log > apache2 > error_log if you have error logging turned on in php.ini, this will help you enough to find out what is going wrong. If you are really stuck I'd go with Daniel's suggestion on turning on debugging in mapserver, which you will need to do while you are learning, but for now just the apache error log should get you started. Good luck. cheers Ben On 06/07/2011, at 10:01 PM, mapserver-users-request at lists.osgeo.org wrote: > From: L?o D. > Date: 6 July 2011 12:19:19 AM AWST > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Re: Installing PHP MapScript with MapServer 6.0.0-3 and PHP 5.3.6 on Mac OS X 10.6.8 > > > Thanks to both of you for your answers. > > I've allready edit my php.ini to add "extension=php_mapscript.so" and with a > phpinfo() I can see the section about MapScript. > Moreover when I run this script to test if the extension is loaded or not > and I have a positive result, so I think that PHP MapScript is working: > > if (!extension_loaded('MapScript')) { > echo"Not loaded"; > } > else { > echo"Loaded!"; > } > > But when I try to run the example script from the mapserver.org > documentation (without the dl() instruction), it doesn't work and I have no > error message, just an empty page. Here is my php code: > > $map = ms_newMapObj("~/macbook/Sites/mapeserver/introduction/test.map"); > $image = $map->draw(); > $image_url = $image->saveWebImage(); > > echo' > > Exemple : Afficher un shapefile > > > '.$image_url.' > > '; > ?> > > And here is my mapfile: > > MAP > NAME "Europe en bleu" > SIZE 400 400 > STATUS ON > EXTENT -31.2467 27.6065 40.1199 80.762 > UNITS DD > SHAPEPATH "~/macbook/Sites/mapserver/introduction/shape/" > > WEB > IMAGEPATH '~/macbook/Sites/mapeserver/temp/' > IMAGEURL '/temp/' > END > > LAYER > NAME "Europe" > TYPE POLYGON > STATUS ON > DATA "europe" > CLASS > STYLE > COLOR 20 10 110 > OUTLINECOLOR 200 200 200 > END > END > END > > END > > Maybe I've made a mistake in one of these files? > Thanks for your help ! > > L?o > -------------- next part -------------- An HTML attachment was scrubbed... URL: From amrzakaria73 at hotmail.com Wed Jul 6 06:40:46 2011 From: amrzakaria73 at hotmail.com (Amr Zakaria) Date: Wed, 6 Jul 2011 13:40:46 +0000 Subject: [mapserver-users] transparnt polygon color In-Reply-To: <20110706162507.026E1E02169@lists.osgeo.org> References: <20110706162507.026E1E02169@lists.osgeo.org> Message-ID: How to make polygon with transparent color Best VB programmer , Azz. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Smith at usace.army.mil Wed Jul 6 06:47:02 2011 From: Michael.Smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Wed, 6 Jul 2011 13:47:02 +0000 Subject: [mapserver-users] transparnt polygon color In-Reply-To: Message-ID: Use the keyword OPACITY [0-100] where 100 is fully opaque. Opacity is available at both the LAYER and STYLE level. See http://mapserver.org/mapfile/layer.html and http://mapserver.org/mapfile/style.html -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers From: Amr Zakaria > Date: Wed, 6 Jul 2011 13:40:46 +0000 To: > Subject: [mapserver-users] transparnt polygon color How to make polygon with transparent color Best VB programmer , Azz. _______________________________________________ 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 Phil.Anzel at ftc.usda.gov Wed Jul 6 07:11:22 2011 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - Fort Collins, CO) Date: Wed, 6 Jul 2011 14:11:22 +0000 Subject: [mapserver-users] RE: Random colours for polygon fill? In-Reply-To: <20110706140156.21275E0210F@lists.osgeo.org> References: <20110706140156.21275E0210F@lists.osgeo.org> Message-ID: Hi, Robert, A simple approach would be to generate a pseudo-random color based upon a value unique to each record in your source data. For example, in the following example the source data, pulled from a Microsoft Sql Server database, has an integer column named "ShapeID": layer name "mupolygon" status on connectiontype plugin plugin "C:/ms4w/Apache/specialplugins/msplugin_mssql2008.dll" processing "CLOSE_CONNECTION=DEFER" connection "server=...;" projection 'init=epsg:4269' END # NAD83 units DD DATA "shapeGeometry from soilmu_a_wy721_nad83 using unique shapeID using SRID=4269" type polygon opacity 40 class name "mupoly" style COLOR [convert(varchar(3), (128 + shapeID) % 253) + ' ' + convert(varchar(3), (200 + shapeID) % 254) + ' ' + convert(varchar(3), (64 + shapeID) % 255)] outlinecolor 0 0 0 outlinewidth 1 end end # of class "mupoly" end # of layer "mupolygon" In the context used above, the content of COLOR's specification (everything between the square brackets) is passed on as part of the SQL statement generated and transmitted to the database engine. Many variations are possible. Note that this approach does not provide any protection against the unlikely case where adjacent polygons display the same color. I cannot speak to using data from other data sources. Best of luck with this. - Phil Anzel Web Soil Survey developer Vistronix Inc for USDA/NRCS/ITC -----Original Message----- ------------------------------ Message: 4 Date: Wed, 06 Jul 2011 09:08:28 +1200 From: "Robert Sanson" Subject: [mapserver-users] Random colours for polygon fill? To: Message-ID: <4E14260B.379F.0037.1 at asurequality.com> Content-Type: text/plain; charset="us-ascii" Dear Mapserver users Just wondering if it is possible to colour a polygon Shape file layer with each distinct polygon having a different colour? Many thanks, Robert Sanson From traderboy at yahoo.com Wed Jul 6 08:55:39 2011 From: traderboy at yahoo.com (Joe Franklin) Date: Wed, 6 Jul 2011 08:55:39 -0700 (PDT) Subject: [mapserver-users] KML as Outputformat returns incorrect coordinates In-Reply-To: <4E144E43.7000005@gatewaygeomatics.com> References: <603153.40051.qm@web114406.mail.gq1.yahoo.com> <4E144E43.7000005@gatewaygeomatics.com> Message-ID: <1309967739.19172.YahooMailNeo@web114416.mail.gq1.yahoo.com> I had to adjust the height parameter to make it work when downloading as KML: height = ((maxy-miny)/(maxx-minx))*width It still seems like a bug, but does this help?? I guess the WIDTH and HEIGHT parameters don't make much sense when?outputting as?KML. ----- Original Message ----- From: Jeff McKenna To: mapserver-users Cc: Sent: Wednesday, July 6, 2011 8:00 AM Subject: Re: [mapserver-users] KML as Outputformat returns incorrect coordinates You might be hitting the same issue that I reported a few weeks ago (http://trac.osgeo.org/mapserver/ticket/3928). -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-07-06 8:17 AM, luis peinado wrote: > Hi all, > I'm having some related problem: > I have no problem with my mapserver png outputformat: > This png request works really fine: > http://geoserver3/wms60/ddgi/servidor/espaisprotegits?FORMAT=image/png&TRANSPARENT=true&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&LAYERS=zonhum&SRS=EPSG%3A4326&BBOX=-1.0469740101326659,41.39036252208658,5.764549426147167,42.77237478582793&WIDTH=1860&HEIGHT=1039 > > > Changing only the FORMAT parameter to KML: > http://geoserver3/wms60/ddgi/servidor/espaisprotegits?FORMAT=KML&TRANSPARENT=true&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&LAYERS=zonhum&SRS=EPSG%3A4326&BBOX=-1.0469740101326659,41.39036252208658,5.764549426147167,42.77237478582793&WIDTH=1860&HEIGHT=1039 > > > (sorry, my server is not at the Internet). > > I get as a response an xml file with no extension and taking a look at > it with my text editor, I can see things like > > 583.23708456,950.02673133 > 583.22503040,950.03227145 > > And these coordinates are wrong. > > Mapserver's log doese not seem to show any problem: > Log after the FORMAT=kml query > > [Wed Jul? 6 13:08:21 2011].550681 CGI Request 1 on process 1073 > [Wed Jul? 6 13:08:21 2011].550929 msWMSLoadGetMapParams(): enabling > non-square pixels. > [Wed Jul? 6 13:08:21 2011].551361 msDrawMap(): kicking into non-square > pixel preserving mode. > [Wed Jul? 6 13:08:21 2011].551380 msDrawMap(): rendering using > outputformat named kml (KML). > [Wed Jul? 6 13:08:21 2011].551400 msDrawMap(): WMS/WFS set-up and query, > 0.000s > [Wed Jul? 6 13:08:22 2011].533734 msDrawMap(): Layer 0 (zonhum), 0.982s > [Wed Jul? 6 13:08:22 2011].533776 msDrawMap(): Drawing Label Cache, 0.000s > [Wed Jul? 6 13:08:22 2011].533791 msDrawMap() total time: 0.983s > [Wed Jul? 6 13:08:22 2011].942736 msSaveImage(stdout) total time: 0.409s > [Wed Jul? 6 13:08:22 2011].943681 mapserv request processing time > (msLoadMap not incl.): 1.393s > [Wed Jul? 6 13:08:22 2011].943700 msFreeMap(): freeing map at 0x9603678. > > Can someone help me? > Thanks in advance for any response. > Llu?s. > > 2011/6/6 Joe Franklin > > >? ? I'm using Mapserver 6.0.? I get the same results using the windows >? ? MS4W version as well as compiling it myself on Centos 5.? I'm >? ? including a simple map file with an embedded point, but I also >? ? tested using a point shapefile.? Anyone else see this problem? > >? ? Works using shp2img- returns -77.00000000,48.000000000: >? ? shp2img -m airport.map > >? ? Doesn't work using mapserv CGI or PHP Mapscript - returns >? ? 76.80000000,409.60000000 >? ? mapserv -nh >? ? "QUERY_STRING=map=airport.map&service=wms&VERSION=1.1.1&REQUEST=GetMap&SRS=epsg:4326&WIDTH=512&HEIGHT=512&LAYERS=Airports&TRANSPARENT=TRUE&FORMAT=kml&BBOX=-80,40,-60,50" > > >? ? MAP >? ? NAME "Airport" >? ? STATUS ON >? ? SIZE 512 512 >? ? EXTENT -80 40 -60 50 >? ? IMAGETYPE kml >? ? UNITS DD >? ? IMAGECOLOR 255 255 255 >? ? PROJECTION >? ? "init=epsg:4326" >? ? END >? ? WEB >? ? ? ? METADATA >? ? "ows_enable_request" "*" >? ? "wms_title" "Airport" >? ? "wms_onlineresource" "http://localhost/mapserv?map=/tmp/airport.map" >? ? "ows_srs" "epsg:4326" >? ? ? ? END >? ? END? #WEB >? ? SYMBOL >? ? ? ? ? ? ? NAME 'circle' >? ? ? ? ? ? ? TYPE ellipse >? ? ? ? ? ? ? FILLED true >? ? ? ? ? ? ? POINTS 1 1 END >? ? END >? ? LAYER >? ? ? ? ? NAME "Airports" >? ? ? ? ? TYPE point >? ? ? ? ? FEATURE >? ? ? ? ? ? POINTS -77 48 END >? ? ? ? ? END >? ? ? ? ? METADATA >? ? "wms_title" "Airports" >? ? ? ? ? END # METADATA >? ? ? ? ? STATUS ON >? ? ? ? ? CLASS >? ? ? ? ? ? STYLE >? ? ? ? ? ? ? COLOR 255 0 0 >? ? ? ? ? ? ? SYMBOL 1 >? ? ? ? ? ? ? SIZE 5 >? ? ? ? ? ? END # STYLE >? ? ? ? ? ? TEMPLATE "ttt_query.html" >? ? ? ? ? END # CLASS >? ? END # LAYER >? ? END > > >? ? MapServer version 6.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML >? ? SUPPORTS=PROJ >? ? SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV >? ? SUPPORTS=FRIBIDI >? ? SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER >? ? SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER >? ? SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG >? ? INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From yassefa at dmsolutions.ca Wed Jul 6 09:14:29 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 06 Jul 2011 12:14:29 -0400 Subject: [mapserver-users] KML as Outputformat returns incorrect coordinates In-Reply-To: <1309967739.19172.YahooMailNeo@web114416.mail.gq1.yahoo.com> References: <603153.40051.qm@web114406.mail.gq1.yahoo.com> <4E144E43.7000005@gatewaygeomatics.com> <1309967739.19172.YahooMailNeo@web114416.mail.gq1.yahoo.com> Message-ID: <4E1489E5.9090805@dmsolutions.ca> Hi, I think this bug is happening because of the fact that internally MapSever "plays" with the projection when answering to non-square (distorted) wms requests. I think we end up with pixel coordinates, instead of ground coordinates at the output stage. There was a similar issue I corrected a while ago (http://trac.osgeo.org/mapserver/ticket/3840). I will use the test case provided in http://trac.osgeo.org/mapserver/ticket/3928 to correct this and update the bug. best regards, On 06/07/2011 11:55 AM, Joe Franklin wrote: > I had to adjust the height parameter to make it work when downloading as KML: > > height = ((maxy-miny)/(maxx-minx))*width > > It still seems like a bug, but does this help? I guess the WIDTH and HEIGHT parameters don't make much sense when outputting as KML. > > > > ----- Original Message ----- > From: Jeff McKenna > To: mapserver-users > Cc: > Sent: Wednesday, July 6, 2011 8:00 AM > Subject: Re: [mapserver-users] KML as Outputformat returns incorrect coordinates > > You might be hitting the same issue that I reported a few weeks ago > (http://trac.osgeo.org/mapserver/ticket/3928). > > -jeff > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From boolean10001 at yahoo.com Wed Jul 6 10:37:27 2011 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Wed, 6 Jul 2011 10:37:27 -0700 (PDT) Subject: [mapserver-users] Re: Installing PHP MapScript with MapServer 6.0.0-3 and PHP 5.3.6 on Mac OS X 10.6.8 In-Reply-To: <1309882759444-6550486.post@n2.nabble.com> References: <1309789105155-6546297.post@n2.nabble.com> <75F09D15-3C5C-4913-BD7B-7719B3041FAC@remoteinformation.com.au> <1309882759444-6550486.post@n2.nabble.com> Message-ID: <1309973847.32476.YahooMailNeo@web38203.mail.mud.yahoo.com> L?o, If you server is not a production server, please make sure that you have the php.ini error handling as follows: error_reporting = E_ALL Remember to restart Apache. Also, in the MAP section, add something like this: DEBUG ON CONFIG "MS_ERRORFILE" "/var/www/html/errores.txt" Let's see what happens. Cheers from M?xico IC Carlos Ruiz ________________________________ From: L?o D. To: mapserver-users at lists.osgeo.org Sent: Tuesday, July 5, 2011 11:19 AM Subject: [mapserver-users] Re: Installing PHP MapScript with MapServer 6.0.0-3 and PHP 5.3.6 on Mac OS X 10.6.8 Thanks to both of you for your answers. I've allready edit my php.ini to add "extension=php_mapscript.so" and with a phpinfo() I can see the section about MapScript. Moreover when I run this script to test if the extension is loaded or not and I have a positive result, so I think that PHP MapScript is working: if (!extension_loaded('MapScript')) { echo"Not loaded"; } else { echo"Loaded!"; } But when I try to run the example script from the mapserver.org documentation (without the dl() instruction), it doesn't work and I have no error message, just an empty page. Here is my php code: draw(); $image_url = $image->saveWebImage(); echo' ? ? ? Exemple : Afficher un shapefile ? ? ? ? ? '.$image_url.' ? '; ?> And here is my mapfile: MAP NAME "Europe en bleu" SIZE 400 400 STATUS ON EXTENT -31.2467 27.6065 40.1199 80.762 UNITS DD SHAPEPATH "~/macbook/Sites/mapserver/introduction/shape/" ??? WEB ? IMAGEPATH '~/macbook/Sites/mapeserver/temp/' ? IMAGEURL? '/temp/' END LAYER ? NAME "Europe" ? TYPE POLYGON ? STATUS ON ? DATA "europe" ? CLASS ? ? STYLE ? ? ? COLOR 20 10 110 ? ? ? OUTLINECOLOR 200 200 200 ? ? END ? END END END Maybe I've made a mistake in one of these files? Thanks for your help ! L?o -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Installing-PHP-MapScript-with-MapServer-6-0-0-3-and-PHP-5-3-6-on-Mac-OS-X-10-6-8-tp6546297p6550486.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 posthumusb at AGR.GC.CA Wed Jul 6 13:41:57 2011 From: posthumusb at AGR.GC.CA (Brad Posthumus) Date: Wed, 6 Jul 2011 13:41:57 -0700 (PDT) Subject: [mapserver-users] Font rendering in MapServer 6.0 Message-ID: <1309984917149-6555935.post@n2.nabble.com> We're in the process of upgrading from MapServer 5.4 to 6.0 and, after following the migration guide from 5.4->5.6->6.0, almost everything is working fine. The one exception is truetype font rendering. Text in 6.0 doesn't render well - it's blocky and distorted. Has anyone encountered this change in their MapServer upgrade? Here's an example of a legend request in 5.4: http://osgeo-org.1803224.n2.nabble.com/file/n6555935/legend_5_4.png and the same legend request in 6.0: http://osgeo-org.1803224.n2.nabble.com/file/n6555935/legend_6_0.png This result is using the following legend definition for both: LEGEND STATUS ON KEYSIZE 19 14 KEYSPACING 6 4 LABEL TYPE truetype FONT "arial" SIZE 10 END TEMPLATE "../htdocs/legendTemplate.html" END In a WMS request, the result is blockier with a broken outline and larger text. Using 5.4: http://osgeo-org.1803224.n2.nabble.com/file/n6555935/wms_5_4.png and 6.0: http://osgeo-org.1803224.n2.nabble.com/file/n6555935/wms_6_0.png ...using this label definition in each of the layer classes: LABEL TYPE TRUETYPE FONT [FONTNAME_M] SIZE [FONTSIZE] POSITION cc ANTIALIAS FALSE FORCE TRUE COLOR 0 0 0 OUTLINECOLOR 255 255 235 END I should point out we have included "DEFRESOLUTION 72" in the MAP section which fixed our vector rendering, and the only reason why the city symbols are larger in the 6.0 screenshot is that they're also based on a font. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Font-rendering-in-MapServer-6-0-tp6555935p6555935.html Sent from the Mapserver - User mailing list archive at Nabble.com. From posthumusb at AGR.GC.CA Wed Jul 6 13:58:28 2011 From: posthumusb at AGR.GC.CA (Brad Posthumus) Date: Wed, 6 Jul 2011 13:58:28 -0700 (PDT) Subject: [mapserver-users] Re: wms server - raster image quality In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA3A5FC@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA3A5FC@swmail01.r8nssis.local> Message-ID: <1309985908088-6555988.post@n2.nabble.com> mark volz-2 wrote: > > I set up a WMS Server using Mapserver. The quality of the map is > terrible. If anyone an example of a mapfile to serve imagery via wms it > would be appreciated. > I found the playing around with the PROCESSING values can make a big difference. http://mapserver.org/input/raster.html#special-processing-directives What type of image is it? Colour or panchromatic? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/wms-server-raster-image-quality-tp6538171p6555988.html Sent from the Mapserver - User mailing list archive at Nabble.com. From posthumusb at AGR.GC.CA Wed Jul 6 14:40:28 2011 From: posthumusb at AGR.GC.CA (Brad Posthumus) Date: Wed, 6 Jul 2011 14:40:28 -0700 (PDT) Subject: [mapserver-users] Re: Font rendering in MapServer 6.0 In-Reply-To: <1309984917149-6555935.post@n2.nabble.com> References: <1309984917149-6555935.post@n2.nabble.com> Message-ID: <1309988428403-6556130.post@n2.nabble.com> I mistakenly had DEFRESOLUTION 72 instead of DEFRESOLUTION 96 in my test mapfile. This fixes the text/symbol size problem. However, the font quality is still an issue in 6.0 http://osgeo-org.1803224.n2.nabble.com/file/n6556130/wms_6_0.png -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Font-rendering-in-MapServer-6-0-tp6555935p6556130.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Robert.Sanson at asurequality.com Wed Jul 6 15:48:00 2011 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Thu, 07 Jul 2011 10:48:00 +1200 Subject: [mapserver-users] RE: Random colours for polygon fill? In-Reply-To: References: <20110706140156.21275E0210F@lists.osgeo.org> Message-ID: <4E158EE0.379F.0037.1@asurequality.com> Looks an interesting approach. I tried it with my layer in ArcGIS Server (stored in MS-SQL v 2005) and couldn't get it to work. I am using Mapserver 5.4.2 Here is my layer: LAYER NAME fbnd GROUP "CRS" TYPE POLYGON STATUS ON CONNECTIONTYPE SDE CONNECTIONTYPE PLUGIN PLUGIN "d:/ms4w/apache/specialplugins/msplugin_sde_93.dll" CONNECTION "db-esri,port:5155,cadastre,user,pass" DATA "CADASTRE.SDEADMIN.VW_FARM_BOUNDARY_SP,SHAPE" DUMP TRUE HEADER ../templates/apiaries_query_header.html TEMPLATE ../templates/apiaries_query_body.html LABELMAXSCALE 100000 LABELCACHE on LABELITEM 'key_decision_maker' MAXSCALE 250000 CLASS NAME "fbnd" DEBUG on STYLE WIDTH 3 #COLOR 135 206 235 COLOR [convert(varchar(3), ((128 + convert(int,env_min_x)) % 253)) + " " + convert(varchar(3), ((200 + convert(int,env_min_x)) % 254)) + " " + convert(varchar(3), ((64 + convert(int,env_min_x)) % 255))] OUTLINECOLOR 0 255 0 END LABEL TYPE truetype FONT "arial" SIZE 9 POSITION auto OUTLINECOLOR 255 255 255 #--Halo COLOR 76 179 145 MINDISTANCE 50 BUFFER 2 END #LABEL END #CLASS Many thanks, Robert >>> "Anzel, Phil - Fort Collins, CO" 7/07/2011 2:11 a.m. >>> Hi, Robert, A simple approach would be to generate a pseudo-random color based upon a value unique to each record in your source data. For example, in the following example the source data, pulled from a Microsoft Sql Server database, has an integer column named "ShapeID": layer name "mupolygon" status on connectiontype plugin plugin "C:/ms4w/Apache/specialplugins/msplugin_mssql2008.dll" processing "CLOSE_CONNECTION=DEFER" connection "server=...;" projection 'init=epsg:4269' END # NAD83 units DD DATA "shapeGeometry from soilmu_a_wy721_nad83 using unique shapeID using SRID=4269" type polygon opacity 40 class name "mupoly" style COLOR [convert(varchar(3), (128 + shapeID) % 253) + ' ' + convert(varchar(3), (200 + shapeID) % 254) + ' ' + convert(varchar(3), (64 + shapeID) % 255)] outlinecolor 0 0 0 outlinewidth 1 end end # of class "mupoly" end # of layer "mupolygon" In the context used above, the content of COLOR's specification (everything between the square brackets) is passed on as part of the SQL statement generated and transmitted to the database engine. Many variations are possible. Note that this approach does not provide any protection against the unlikely case where adjacent polygons display the same color. I cannot speak to using data from other data sources. Best of luck with this. - Phil Anzel Web Soil Survey developer Vistronix Inc for USDA/NRCS/ITC -----Original Message----- ------------------------------ Message: 4 Date: Wed, 06 Jul 2011 09:08:28 +1200 From: "Robert Sanson" Subject: [mapserver-users] Random colours for polygon fill? To: Message-ID: <4E14260B.379F.0037.1 at asurequality.com> Content-Type: text/plain; charset="us-ascii" Dear Mapserver users Just wondering if it is possible to colour a polygon Shape file layer with each distinct polygon having a different colour? Many thanks, Robert Sanson This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system. This message has been scanned for Malware and Viruses by Websense Hosted Security. www.websense.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Phil.Anzel at ftc.usda.gov Wed Jul 6 15:56:43 2011 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - Fort Collins, CO) Date: Wed, 6 Jul 2011 22:56:43 +0000 Subject: [mapserver-users] RE: Random colours for polygon fill? In-Reply-To: <4E158EE0.379F.0037.1@asurequality.com> References: <20110706140156.21275E0210F@lists.osgeo.org> <4E158EE0.379F.0037.1@asurequality.com> Message-ID: Robert, It may be that the SDE plugin does not allow insertion of the Sql fragment from the COLOR to be executed by the provider. In such a case the solution provided under separate cover by B. Heath Robinson might provide guidance. I do not know if the ArcGIS Server lets you use a view as a data source; if so you could add a calculated column to yield the RGB string (either as a hexadecimal valye as suggested by Heath) or as a string with space-delimited R, G and B values. FWIW the approach I had suggested worked in MapServer 5.6.2 against Sql Server 2008; beyond that I've not tried it. - Phil From: Robert Sanson [mailto:Robert.Sanson at asurequality.com] Sent: Wednesday, July 06, 2011 4:48 PM To: Anzel, Phil - Fort Collins, CO; mapserver-users at lists.osgeo.org Subject: RE: Random colours for polygon fill? Looks an interesting approach. I tried it with my layer in ArcGIS Server (stored in MS-SQL v 2005) and couldn't get it to work. I am using Mapserver 5.4.2 Here is my layer: LAYER NAME fbnd GROUP "CRS" TYPE POLYGON STATUS ON CONNECTIONTYPE SDE CONNECTIONTYPE PLUGIN PLUGIN "d:/ms4w/apache/specialplugins/msplugin_sde_93.dll" CONNECTION "db-esri,port:5155,cadastre,user,pass" DATA "CADASTRE.SDEADMIN.VW_FARM_BOUNDARY_SP,SHAPE" DUMP TRUE HEADER ../templates/apiaries_query_header.html TEMPLATE ../templates/apiaries_query_body.html LABELMAXSCALE 100000 LABELCACHE on LABELITEM 'key_decision_maker' MAXSCALE 250000 CLASS NAME "fbnd" DEBUG on STYLE WIDTH 3 #COLOR 135 206 235 COLOR [convert(varchar(3), ((128 + convert(int,env_min_x)) % 253)) + " " + convert(varchar(3), ((200 + convert(int,env_min_x)) % 254)) + " " + convert(varchar(3), ((64 + convert(int,env_min_x)) % 255))] OUTLINECOLOR 0 255 0 END LABEL TYPE truetype FONT "arial" SIZE 9 POSITION auto OUTLINECOLOR 255 255 255 #--Halo COLOR 76 179 145 MINDISTANCE 50 BUFFER 2 END #LABEL END #CLASS Many thanks, Robert >>> "Anzel, Phil - Fort Collins, CO" 7/07/2011 2:11 a.m. >>> Hi, Robert, A simple approach would be to generate a pseudo-random color based upon a value unique to each record in your source data. For example, in the following example the source data, pulled from a Microsoft Sql Server database, has an integer column named "ShapeID": layer name "mupolygon" status on connectiontype plugin plugin "C:/ms4w/Apache/specialplugins/msplugin_mssql2008.dll" processing "CLOSE_CONNECTION=DEFER" connection "server=...;" projection 'init=epsg:4269' END # NAD83 units DD DATA "shapeGeometry from soilmu_a_wy721_nad83 using unique shapeID using SRID=4269" type polygon opacity 40 class name "mupoly" style COLOR [convert(varchar(3), (128 + shapeID) % 253) + ' ' + convert(varchar(3), (200 + shapeID) % 254) + ' ' + convert(varchar(3), (64 + shapeID) % 255)] outlinecolor 0 0 0 outlinewidth 1 end end # of class "mupoly" end # of layer "mupolygon" In the context used above, the content of COLOR's specification (everything between the square brackets) is passed on as part of the SQL statement generated and transmitted to the database engine. Many variations are possible. Note that this approach does not provide any protection against the unlikely case where adjacent polygons display the same color. I cannot speak to using data from other data sources. Best of luck with this. - Phil Anzel Web Soil Survey developer Vistronix Inc for USDA/NRCS/ITC -----Original Message----- ------------------------------ Message: 4 Date: Wed, 06 Jul 2011 09:08:28 +1200 From: "Robert Sanson" Subject: [mapserver-users] Random colours for polygon fill? To: Message-ID: <4E14260B.379F.0037.1 at asurequality.com> Content-Type: text/plain; charset="us-ascii" Dear Mapserver users Just wondering if it is possible to colour a polygon Shape file layer with each distinct polygon having a different colour? Many thanks, Robert Sanson This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system. This message has been scanned for Malware and Viruses by Websense Hosted Security. www.websense.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcreso at pcreso.com Wed Jul 6 17:59:14 2011 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Wed, 6 Jul 2011 17:59:14 -0700 (PDT) Subject: [mapserver-users] RE: Random colours for polygon fill? In-Reply-To: Message-ID: <1310000354.90122.YahooMailClassic@web33204.mail.mud.yahoo.com> Hi Robert, I have resolved a similar issue with mapserver (where mapserver variable substitution couldn't supply the required functionality) by having a cgi script write the mapfile on the fly, using some logic to customise the mapfile as required. Then the script invokes mapserver with the mapfile. Sort of: write mapfile header down to common layer details for class in LIST ; do ? write class with random colour done close mapfile invoke mapserver with new mapfile The issue with this approach is that every invocation will have different colours (unless you always start with the same random seed & use a pseudorandom sequence). Option 2 is similar. I believe mapserver's runtime variable substitution supports the CLASS expression. A cgi could generate the name/value pairs for the required random colours, append them to the URL query string, invoke mapserver & have mapserver carry out the variable substitution as it preprocesses the mapfile. Another similar issue I resolved recently: A WMS polygon layer with various but fixed colours & a WFS layer with a point in each polygon with the metadata in OpenLayers. A table stores the RGB values used in the WMS classes, a query generates a java #hex string from the RGB values, so the WFS layer provides the colour to render each point in, OpenLayers reads the colour for each feature from the WFS fields, so they match the WMS polygons. The query in the data statement generates java #hex from rgb values, which is fine from postgis, I'm not sure if you can do this from a shapefile, but if so, you could? perhaps predefine your colours in the shapefile, with a value per feature: geom from (select r.gid + (100 * p.id) as gid, ??????????????????????????? r.gid as r_id, ??????????????????????????? p.id as p_id, ??????????????????????????? r.regioncode, ??????????????????????????? r.regionname, ??????????????????????????? p.geom, ???????????????????? ('#'||case when (length(to_hex(r_fill))=1) ???????????????????????????????????? then '0'||to_hex(r_fill) ???????????????????????????????????? else to_hex(r_fill) end|| ?????????????????????????? case when (length(to_hex(g_fill))=1) ???????????????????????????????????? then '0'||to_hex(g_fill) ???????????????????????????????????? else to_hex(g_fill) end|| ?????????????????????????? case when (length(to_hex(b_fill))=1) ???????????????????????????????????? then '0'||to_hex(b_fill) ?????????????????????????? else to_hex(b_fill) end) as hex_fill, ???????????????????? ('#'||case when (length(to_hex(r_pen))=1) ???????????????????????????????????? then '0'||to_hex(r_pen) ???????????????????????????????????? else to_hex(r_pen) end|| ?????????????????????????? case when (length(to_hex(g_pen))=1) ???????????????????????????????????? then '0'||to_hex(g_pen) ???????????????????????????????????? else to_hex(g_pen) end|| ?????????????????????????? case when (length(to_hex(b_pen))=1) ???????????????????????????????????? then '0'||to_hex(b_pen) ?????????????????????????? else to_hex(b_pen) end) as hex_pen ????????????????????????????????????????????????????? ... Cheers, ?? Brent ? Dear Mapserver users Just wondering if it is possible to colour a polygon Shape file layer with each distinct polygon having a different colour? Many thanks, Robert Sanson ? This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system. This message has been scanned for Malware and Viruses by Websense Hosted Security. www.websense.com -----Inline Attachment Follows----- _______________________________________________ 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 silasharmeen at gmail.com Wed Jul 6 22:17:50 2011 From: silasharmeen at gmail.com (Sila Khan) Date: Thu, 7 Jul 2011 10:17:50 +0500 Subject: [mapserver-users] s52 format Message-ID: Dear mapserver users Any of you have an idea about s52 format ,as i loaded my s57 chart on mapserver but its not looking fine as i found it in other nautical chart viewer (open CPN) in s52 standard format how could i display s57 in s52 format in mapserver. thanks Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcigar at ulb.ac.be Thu Jul 7 02:44:29 2011 From: jcigar at ulb.ac.be (Julien Cigar) Date: Thu, 07 Jul 2011 11:44:29 +0200 Subject: [mapserver-users] merging shapefiles Message-ID: <4E157FFD.60501@ulb.ac.be> Hello, I have an (OpenLayers) map with two layers: - Country (as a base layer) - EEA You can see the output here: http://home.bebif.be/~jcigar/map.jpg The "Country" layer contains just the borders of the countries, and the "EEA" layer (the colorized areas) contains environmental areas. What I'd like to do is to select a polygon within a country for a specific zone. For example I would like to "select part of Belgium with the Atlantic EEA (in blue)", which is the north of Belgium. I also need to save some information in the database for the polygon (I'm using Mapserver/PostGIS). What would be the best way to do this? Would you "merge" the two layers into one (be creating new polygons)? thanks, Julien -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. -------------- next part -------------- A non-text attachment was scrubbed... Name: jcigar.vcf Type: text/x-vcard Size: 292 bytes Desc: not available URL: From emacgillavry at hotmail.com Thu Jul 7 03:01:57 2011 From: emacgillavry at hotmail.com (Edward Mac Gillavry) Date: Thu, 7 Jul 2011 12:01:57 +0200 Subject: [mapserver-users] merging shapefiles In-Reply-To: <4E157FFD.60501@ulb.ac.be> References: <4E157FFD.60501@ulb.ac.be> Message-ID: You may want to investigate the ST_Intersection functionality in PostGIS. This allows you to create a new geometry from the intersection of the EEA regions and the countries. http://postgis.refractions.net/docs/ST_Intersection.html Regards, Edward Date: Thu, 7 Jul 2011 11:44:29 +0200 From: jcigar at ulb.ac.be To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] merging shapefiles Hello, I have an (OpenLayers) map with two layers: - Country (as a base layer) - EEA You can see the output here: http://home.bebif.be/~jcigar/map.jpg The "Country" layer contains just the borders of the countries, and the "EEA" layer (the colorized areas) contains environmental areas. What I'd like to do is to select a polygon within a country for a specific zone. For example I would like to "select part of Belgium with the Atlantic EEA (in blue)", which is the north of Belgium. I also need to save some information in the database for the polygon (I'm using Mapserver/PostGIS). What would be the best way to do this? Would you "merge" the two layers into one (be creating new polygons)? thanks, Julien -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. _______________________________________________ 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 MarkVolz at co.lyon.mn.us Thu Jul 7 06:57:54 2011 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Thu, 7 Jul 2011 13:57:54 +0000 Subject: [mapserver-users] Re: wms server - raster image quality In-Reply-To: <20110707021923.59654E02281@lists.osgeo.org> References: <20110707021923.59654E02281@lists.osgeo.org> Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA3A986@swmail01.r8nssis.local> Brad, Thank you for your reply. The air photo that I am trying to share is a mr sid FSA Air Photo with a OVERSAMPLE_RATIO set at 1. Since my last e-mail, I found that the quality of the air photos are fine when I am using Mapproxy. However, I am still having issues with other WMS clients such as QGIS and ArcMap. Mark Volz -----Original Message----- Message: 2 Date: Wed, 6 Jul 2011 13:58:28 -0700 (PDT) From: Brad Posthumus Subject: [mapserver-users] Re: wms server - raster image quality To: mapserver-users at lists.osgeo.org Message-ID: <1309985908088-6555988.post at n2.nabble.com> Content-Type: text/plain; charset=us-ascii mark volz-2 wrote: > > I set up a WMS Server using Mapserver. The quality of the map is > terrible. If anyone an example of a mapfile to serve imagery via wms it > would be appreciated. > I found the playing around with the PROCESSING values can make a big difference. http://mapserver.org/input/raster.html#special-processing-directives What type of image is it? Colour or panchromatic? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/wms-server-raster-image-quality-tp6538171p6555988.html Sent from the Mapserver - User mailing list archive at Nabble.com. From stephane.brunner at camptocamp.com Thu Jul 7 07:11:29 2011 From: stephane.brunner at camptocamp.com (=?ISO-8859-1?Q?St=E9phane_Brunner?=) Date: Thu, 7 Jul 2011 16:11:29 +0200 Subject: [mapserver-users] WFS GetFeature with Intersects all results is the same Message-ID: Hello, I'm using a mapserver version 5.6.5 to do this scenario. First I do a simple WFS this request [1] that ruturn 51 result [2] with the same geometry, that perfectly correct. Than I do a second request [3] with an intersects on a point who is in the previously return geometry. It returns [4] 51 result that correct , but not with the same attributes than before why ? Thank-you in advance for any response St?phane Brunner [1] nummer 2120 [2] 663488.649000,244506.687000 663575.087000,244593.655000 663488.649000,244506.687000 663575.087000,244593.655000 663519.558000,244519.561000 663524.395000,244506.687000 663560.161000,244530.308000 663564.616000,244528.134000 663575.087000,244572.566000 663531.859000,244589.916000 663523.952000,244593.655000 663523.182000,244593.575000 663511.622000,244587.452000 663511.316000,244587.984000 663488.649000,244575.660000 663511.325000,244530.838000 663513.944000,244530.420000 663519.558000,244519.561000 2120 Wohlen rechtskraeftig 1/1 ***, 1944 ***, 5610 Wohlen AG .... [3] geom 663521.368,244554.046 [4] 663488.649000,244506.687000 663575.087000,244593.655000 663488.649000,244506.687000 663575.087000,244593.655000 663519.558000,244519.561000 663524.395000,244506.687000 663560.161000,244530.308000 663564.616000,244528.134000 663575.087000,244572.566000 663531.859000,244589.916000 663523.952000,244593.655000 663523.182000,244593.575000 663511.622000,244587.452000 663511.316000,244587.984000 663488.649000,244575.660000 663511.325000,244530.838000 663513.944000,244530.420000 663519.558000,244519.561000 2120 Wohlen rechtskraeftig 4427 1000/1000 Stockwerkeigent?mer Parz. 2120 Rigistrasse, 5610 Wohlen AG -- camptocamp.com mapfish.org From bfraser at geoanalytic.com Thu Jul 7 07:28:54 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 07 Jul 2011 08:28:54 -0600 Subject: [mapserver-users] wms server - raster image quality In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA3A5FC@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA3A5FC@swmail01.r8nssis.local> Message-ID: <4E15C2A6.1030707@geoanalytic.com> Mark, You could try having mapserver render PNG files instead of JPEG. And since there's a re-projection from zone 13 to 14, perhaps mapserver is reading a lower resolution level from the mrsid file; adding PROCESSING "LOAD_FULL_RES_IMAGE=YES" to the layer def might help (or it might not). Best Regards, Brent Fraser On 7/1/2011 9:26 AM, Mark Volz wrote: > Hello > I set up a WMS Server using Mapserver. The quality of the map is > terrible. If anyone an example of a mapfile to serve imagery via wms > it would be appreciated. > Thanks > MAP > NAME "MAP" > EXTENT 699283 4853930 736320 4904147 > PROJECTION > "init=epsg:26914" > END #PROJECTION > OUTPUTFORMAT > NAME 'gd/jpeg' > #DRIVER GD/JPEG > IMAGEMODE RGB > #IMAGEMODE PC256 > FORMATOPTION "TRANSPARENT=FALSE" > FORMATOPTION "QUALITY=90" > DRIVER "AGG/JPEG" > MIMETYPE "image/jpeg" > END #outputformat > MAXSIZE 10000 #limit size of wms > IMAGETYPE gd/jpeg > WEB > IMAGEPATH '/tmp/' > IMAGEURL '/tmp/' > METADATA > 'wms_title' 'MAP' > 'wms_onlineresource' > 'http://localhost/cgi-bin/mapserv.exe?MAP=/ms4w/apps/PipestoneMOOSE/maps_pipestone/Raster/LocalRaster/FSA2010/LocalFSA2010.map' > 'wms_srs' 'EPSG:26914' > END #metadata > END #web > ########################### > LAYER > NAME 'FSA' > TYPE RASTER > DATA './ortho_1-1_1n_s_mn117_2010_1.sid' > METADATA > 'wms_title' 'FSA' > END #metadata > STATUS DEFAULT > PROJECTION > "proj=utm" > "zone=14" > "ellps=GRS80" > "datum=NAD83" > "units=m" > "no_defs" > END #PROJECTION > PROCESSING "OVERSAMPLE_RATIO=1" > END #layer > END ## end Map > Mark Volz > GIS Specialist > > > _______________________________________________ > 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 jcigar at ulb.ac.be Thu Jul 7 08:15:39 2011 From: jcigar at ulb.ac.be (Julien Cigar) Date: Thu, 07 Jul 2011 17:15:39 +0200 Subject: [mapserver-users] in SLD .. ? Message-ID: <4E15CD9B.2090809@ulb.ac.be> Hello, I slowly started to use SLD, and I made one with the following: (...) cntr_id BE biogeo Continental (...) (full stylesheet is available on http://www.pastie.org/2177871) However, it seems that the is ignored by mapserver ..? Does it supports conditional filters () in SLD stylesheets? Thanks, Julien -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. -------------- next part -------------- A non-text attachment was scrubbed... Name: jcigar.vcf Type: text/x-vcard Size: 292 bytes Desc: not available URL: From arnd.wippermann at web.de Thu Jul 7 10:34:13 2011 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Thu, 7 Jul 2011 19:34:13 +0200 Subject: AW: [mapserver-users] in SLD .. ? In-Reply-To: <4E15CD9B.2090809@ulb.ac.be> References: <4E15CD9B.2090809@ulb.ac.be> Message-ID: <607FCE9D650B43C69D913359589C1F23@pcawh2> Hi, It does See your sld on http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_Demo/MapServe r_SLD_Demo.asp?SLDsrcIdx=38 Perhaps your attributs names or values not in the correct writing (upper and lowercase). Arnd -----Urspr?ngliche Nachricht----- Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Julien Cigar Gesendet: Donnerstag, 7. Juli 2011 17:16 An: mapserver-users at lists.osgeo.org Betreff: [mapserver-users] in SLD .. ? Hello, I slowly started to use SLD, and I made one with the following: (...) cntr_id BE biogeo Continental (...) (full stylesheet is available on http://www.pastie.org/2177871) However, it seems that the is ignored by mapserver ..? Does it supports conditional filters () in SLD stylesheets? Thanks, Julien -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. From posthumusb at AGR.GC.CA Thu Jul 7 11:07:25 2011 From: posthumusb at AGR.GC.CA (Brad Posthumus) Date: Thu, 7 Jul 2011 11:07:25 -0700 (PDT) Subject: [mapserver-users] Re: Font rendering in MapServer 6.0 In-Reply-To: <1309988428403-6556130.post@n2.nabble.com> References: <1309984917149-6555935.post@n2.nabble.com> <1309988428403-6556130.post@n2.nabble.com> Message-ID: <1310062045858-6559374.post@n2.nabble.com> I've narrowed it down further to the OUTPUTFORMAT section of the mapfile, which currently is: OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 FORMATOPTION "INTERLACE=OFF" EXTENSION png TRANSPARENT ON END It appears to be a problem with having a combination of GD/PNG, PC256, and transparency. Turning transparency off renders a clean image, changing PC256 to RGBA renders a clean image, changing PNG to GIF (at all locations) renders a clean image.... This setup was working in 5.4 and 5.6 so I'll assume it's a bug I should report for 6.0. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Font-rendering-in-MapServer-6-0-tp6555935p6559374.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Thu Jul 7 11:37:30 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 7 Jul 2011 20:37:30 +0200 Subject: [mapserver-users] Re: Font rendering in MapServer 6.0 In-Reply-To: <1310062045858-6559374.post@n2.nabble.com> References: <1309984917149-6555935.post@n2.nabble.com> <1309988428403-6556130.post@n2.nabble.com> <1310062045858-6559374.post@n2.nabble.com> Message-ID: We've kept the GD renderer in 6.0 for some marginal use cases, but the preferred way is to switch to AGG rendering (which is compiled in by default): you can use the builtin png8 imagetype (mimetype: image/png; mode=8bit) which does a quantization step if you need a 256 color paletted image. The easy solution is to remove all your outputformat blocks from your mapfile, and call your server with FORMAT=image/png or image/png; mode=8bit , and setting your map imagetype to png or png8. As for this GD rendering bug, the easy first step is be to open a bug-report. The harder second step is to get someone motivated to look into it if you cannot provide a patch. regards, thomas On Thu, Jul 7, 2011 at 20:07, Brad Posthumus wrote: > I've narrowed it down further to the OUTPUTFORMAT section of the mapfile, > which currently is: > > ?OUTPUTFORMAT > ? ?NAME png > ? ?DRIVER "GD/PNG" > ? ?MIMETYPE "image/png" > ? ?IMAGEMODE PC256 > ? ?FORMATOPTION "INTERLACE=OFF" > ? ?EXTENSION png > ? ?TRANSPARENT ON > ?END > > It appears to be a problem with having a combination of GD/PNG, PC256, and > transparency. Turning transparency off renders a clean image, changing PC256 > to RGBA renders a clean image, changing PNG to GIF (at all locations) > renders a clean image.... > > This setup was working in 5.4 and 5.6 so I'll assume it's a bug I should > report for 6.0. > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Font-rendering-in-MapServer-6-0-tp6555935p6559374.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 MarkVolz at co.lyon.mn.us Thu Jul 7 13:17:05 2011 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Thu, 7 Jul 2011 20:17:05 +0000 Subject: [mapserver-users] Re: wms server - raster image quality In-Reply-To: <20110707215906.698E4E022BF@lists.osgeo.org> References: <20110707215906.698E4E022BF@lists.osgeo.org> Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA3AA6E@swmail01.r8nssis.local> Hello, I was able to fix the problem that I had with the poor wms raster image quality. I was missing the Mimetype for my png outputs. Using the following outputformat works: OUTPUTFORMAT NAME "png" DRIVER AGG/PNG MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END Mark Volz GIS Specialist Mark, You could try having mapserver render PNG files instead of JPEG. And since there's a re-projection from zone 13 to 14, perhaps mapserver is reading a lower resolution level from the mrsid file; adding PROCESSING "LOAD_FULL_RES_IMAGE=YES" to the layer def might help (or it might not). Best Regards, Brent Fraser On 7/1/2011 9:26 AM, Mark Volz wrote: > Hello > I set up a WMS Server using Mapserver. The quality of the map is > terrible. If anyone an example of a mapfile to serve imagery via wms > it would be appreciated. > Thanks > MAP > NAME "MAP" > EXTENT 699283 4853930 736320 4904147 > PROJECTION > "init=epsg:26914" > END #PROJECTION > OUTPUTFORMAT > NAME 'gd/jpeg' > #DRIVER GD/JPEG > IMAGEMODE RGB > #IMAGEMODE PC256 > FORMATOPTION "TRANSPARENT=FALSE" > FORMATOPTION "QUALITY=90" > DRIVER "AGG/JPEG" > MIMETYPE "image/jpeg" > END #outputformat > MAXSIZE 10000 #limit size of wms > IMAGETYPE gd/jpeg > WEB > IMAGEPATH '/tmp/' > IMAGEURL '/tmp/' > METADATA > 'wms_title' 'MAP' > 'wms_onlineresource' > 'http://localhost/cgi-bin/mapserv.exe?MAP=/ms4w/apps/PipestoneMOOSE/maps_pipestone/Raster/LocalRaster/FSA2010/LocalFSA2010.map' > 'wms_srs' 'EPSG:26914' > END #metadata > END #web > ########################### > LAYER > NAME 'FSA' > TYPE RASTER > DATA './ortho_1-1_1n_s_mn117_2010_1.sid' > METADATA > 'wms_title' 'FSA' > END #metadata > STATUS DEFAULT > PROJECTION > "proj=utm" > "zone=14" > "ellps=GRS80" > "datum=NAD83" > "units=m" > "no_defs" > END #PROJECTION > PROCESSING "OVERSAMPLE_RATIO=1" > END #layer > END ## end Map > Mark Volz > GIS Specialist From leo_dumont at yahoo.fr Fri Jul 8 04:36:38 2011 From: leo_dumont at yahoo.fr (=?UTF-8?Q?L=C3=A9o_D=2E?=) Date: Fri, 8 Jul 2011 04:36:38 -0700 (PDT) Subject: [mapserver-users] Re: Installing PHP MapScript with MapServer 6.0.0-3 and PHP 5.3.6 on Mac OS X 10.6.8 In-Reply-To: <1309973847.32476.YahooMailNeo@web38203.mail.mud.yahoo.com> References: <1309789105155-6546297.post@n2.nabble.com> <75F09D15-3C5C-4913-BD7B-7719B3041FAC@remoteinformation.com.au> <1309882759444-6550486.post@n2.nabble.com> <1309973847.32476.YahooMailNeo@web38203.mail.mud.yahoo.com> Message-ID: <1310124998755-6562178.post@n2.nabble.com> First of all sorry for my late answer and thanks to each of you for your help. I've finally got this thing working! It was actually an error in my paths as you suggested, what a rookie mistake? Thanks again! L?o -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Installing-PHP-MapScript-with-MapServer-6-0-0-3-and-PHP-5-3-6-on-Mac-OS-X-10-6-8-tp6546297p6562178.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jose.Lopes at AGR.GC.CA Fri Jul 8 11:34:41 2011 From: Jose.Lopes at AGR.GC.CA (Lopes, Jose (AAFC-AAC)) Date: Fri, 8 Jul 2011 14:34:41 -0400 Subject: [mapserver-users] Upgrade MapServer from 5.4 to 6.0 Message-ID: <8E5471DB13993145A6D9183ED4DBC2D0012966C0@onottaxms8.AGR.GC.CA> Hi, After upgrading MapServer from 5.4 to 6.0 we get a 500 error in this query: http://localhost/ogc/xxx_wms_en?VERSION=1.1.1&TITLE=title&FORMAT=image%2 Fpng&TRANSPARENT=true&LAYERS=yyy&SERVICE=WMS&REQUEST=getFeatureInfo&STYL ES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&SRS=EPSG%3A2950&INFO_FORMAT= text%2Fxml&QUERY_LAYERS=yyy&BBOX=209601.108032%2C4995145.873053%2C455398 .891968%2C5142254.126947&WIDTH=929&HEIGHT=556&X=428&Y=277 Apache error log: [Fri Jul 08 11:48:15 2011] [error] [client 10.117.21.141] /server/.../httpd/cgi-bin/xxx_wms_en: line 4: 27570 Segmentation fault ${MS_CGIBIN}mapserv [Fri Jul 08 11:48:15 2011] [error] [client 10.117.21.141] Premature end of script headers: xxx_wms_en The map files were updated following the migration guide... Any idea about where this is comming from? Thanks, Jose Lopes -------------- next part -------------- An HTML attachment was scrubbed... URL: From msubedee at yahoo.com Fri Jul 8 12:11:08 2011 From: msubedee at yahoo.com (Mukesh Subedee) Date: Fri, 8 Jul 2011 12:11:08 -0700 (PDT) Subject: [mapserver-users] loadbalancing in MapServers In-Reply-To: <1310124998755-6562178.post@n2.nabble.com> References: <1309789105155-6546297.post@n2.nabble.com> <75F09D15-3C5C-4913-BD7B-7719B3041FAC@remoteinformation.com.au> <1309882759444-6550486.post@n2.nabble.com> <1309973847.32476.YahooMailNeo@web38203.mail.mud.yahoo.com> <1310124998755-6562178.post@n2.nabble.com> Message-ID: <1310152268.99203.YahooMailRC@web37407.mail.mud.yahoo.com> Hi all, I have 3 Ubuntu 10.04 machines with MapServer installed and configured. I need to get load balancing among those 3 machines. I find that there are some third-party applications with different features. I also find a perl script (balance.pl) that uses rup UNIX feature in MapServer mail archive. Based on all these, I am wondering if anyone has specific preference or come across to any documentation that could be good starting point for getting started to load-balancing in MapServer. Thank you in advance! Mukesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From schroeter at netgis.de Sat Jul 9 05:11:47 2011 From: schroeter at netgis.de (schroeter at netgis.de) Date: Sat, 9 Jul 2011 14:11:47 +0200 Subject: [mapserver-users] MapServer Docs in Android Market Message-ID: <53BBB3242731418AB1BFCA33FC0DC33C.MAI@w31952.domainxyz.de> An HTML attachment was scrubbed... URL: From manuel.mancipe at gmail.com Sat Jul 9 10:18:31 2011 From: manuel.mancipe at gmail.com (Manuel Mancipe) Date: Sat, 9 Jul 2011 12:18:31 -0500 Subject: [mapserver-users] WMS getfeatureinfo Message-ID: Thank you Please, get this error: msWMSFeatureInfo(): WMS server error. Unsupported INFO_FORMAT value (text/html). the capabilities of the service is: http://wwww.uptc.edu.co/cgi-bin2/mapserv?map=/mnt/datos2_9teras/DatosUsuariosUPTC-UniValle/ms4w/apps/100/gismap/co.map&service=WMS&version=1.3.0&request=GetCapabilities and the request is: http://10.0.32.22:8080/cgi-bin2/mapserv?map=/mnt/datos2_9teras/DatosUsuariosUPTC-UniValle/ms4w/apps/100/gismap/co.map&service=WMS&version=1.1.0&request=GetFeatureInfo&layers=public.col&WIDTH=5&HEIGHT=5&SRS=EPSG:3116&BBOX=164948,22962,1806820,1985180&QUERY_LAYERS=public.col&INFO_FORMAT=text/html&I=1&J=1 changing: INFO_FORMAT=text/plain, works and my layer is LAYER NAME "public.col" STATUS OFF TYPE POLYGON DATA "the_geom from public.colombia_limites_departamentales using unique gid using srid=3116" CONNECTIONTYPE POSTGIS CONNECTION "user=postgres password=#### host=######## port=####### dbname=######" DUMP TRUE #MFMH MAXSCALE -1.0 MINSCALE -1.0 TRANSPARENCY 50 SIZEUNITS pixels LABELITEM "nombre_dpt" HEADER "getfeatureinfo_header.html" # header html template TEMPLATE "getfeatureinfo_content2.html" # content html template FOOTER "getfeatureinfo_footer.html" # footer html template PROJECTION "init=epsg:3116" END CLASS STYLE COLOR 211 241 99 OUTLINECOLOR 0 0 102 WIDTH 1 END TEMPLATE "getfeatureinfo_content2.html" NAME "default" LABEL FONT "vera" ANGLE FOLLOW COLOR 0 0 0 TYPE truetype SIZE 5.599999904632568 END END METADATA "wms_title" "public.col" "wms_abstract" "generated by gvSIG" "wms_extent" "164948.448508268 22962.0012082234 1806815.88683738 1985175.02869968" "gml_include_items" "all"#MFMH "wms_feature_info_mime_type" "text/html; driver=imagemap"#MFMH "gml_include_items" "all"#MFMH "wms_include_items" "all"#MFMH "ows_feature_info_mime_type" "text/html; driver=imagemap" # "wms_include_items" "text/html" END END this is my table: CREATE TABLE colombia_limites_departamentales ( gid serial NOT NULL, objectid integer, id_espacia text, area_ofici double precision, nombre_dpt text, shape_area double precision, shape_len double precision, the_geom geometry, ..........) the file getfeatureinfo_header.html is: 1: 2: 3: 4: 5: 6: 7: 32: GetFeatureInfo Response 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: the file getfeatureinfo_footer.html is: 1: 2: 3:
layer names: COLOMBIA
Layer NameNAMEIDAREA
4:
5: 6: and my file getfeatureinfo_content2.html is: 1: 2: 3: Colombia 4: [item name=nombre_dpt format=$value escape=none] 5: [item name=id_espacia format=$value escape=none] 6: [item name=shape_area format=$value escape=none] 7: please could help me fix the error. -- Manuel Fernando Mancipe Hu?rfano Ingenier?a de Sistemas y Computaci?n Universidad Pedag?gica y Tecnol?gica de Colombia -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvanascent at gmail.com Sat Jul 9 10:29:34 2011 From: sylvanascent at gmail.com (Roger Bedell) Date: Sat, 9 Jul 2011 19:29:34 +0200 Subject: [mapserver-users] Re: Bug - ScaleBar and Legend when both embedded In-Reply-To: References: Message-ID: > > We are using Mapscript 5.6.6 in a .NET app. If I embed both a Scalebar and > a Legend at the same time, they render fine the first time. If I render the > map again, the Legend shows up normally, but the scalebar is replaced by the > legend. Here is my map file excerpt: > > > LEGEND > STATUS EMBED > KEYSIZE 18 12 > TRANSPARENT OFF > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > END > > SCALEBAR > INTERVALS 5 > UNITS MILES > OUTLINECOLOR 0 0 0 > STYLE 0 > STATUS EMBED > LABEL > SIZE SMALL > COLOR 0 0 0 > END > END > > > > > Thanks, > Roger > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bryanhempen at gmx.de Sat Jul 9 14:21:38 2011 From: bryanhempen at gmx.de (Bryan Hempen) Date: Sat, 09 Jul 2011 23:21:38 +0200 Subject: [mapserver-users] WFS getFeature Filter resulting in Internal Server Error Message-ID: <4E18C662.4070300@gmx.de> Hey! I have set up Mapserver to serve data from my PostGIS database through a WFS. I am using OpenLayers as a client. When I load my test page for the first time OpenLayers sends the following request: the_geom 135.45,-47.425 157.95,-36.175 I get a valid response and the data is properly displayed on the map. When, however, I try to use a spatial filter in the request, like this... the_geom 142.28349609375,-40.5255859375 142.2615234375,-43.49189453125 148.1501953125,-44.15107421875 149.40263671875,-39.44892578125 142.28349609375,-40.5255859375 the_geom 135.45,-47.425 157.95,-36.175 ... one of the two following things will happen: 1. I get a "Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request." The logfile says "Premature end of script headers: mapserv.exe, referer: http://localhost/". 2. This is the response: -1.000000,-1.000000 -1.000000,-1.000000 Which one of the two possibilities happens appears to be random. Any ideas? This is my mapfile : MAP NAME "WFS Server" STATUS ON SIZE 600 400 SYMBOLSET "E:\ms4w\Apache\htdocs\mapservertest\symbols\symbols.sym" EXTENT -180 -90 180 90 UNITS DD SHAPEPATH "E:\ms4w\Apache\htdocs\mapservertest\data\" IMAGECOLOR 255 255 255 FONTSET "E:\ms4w\Apache\htdocs\mapservertest\fonts\fonts.list" MAXSIZE 4096 #IMAGECOLOR 200 200 200 #commented out for WFS PROJECTION 'init=epsg:4326' END WEB TEMPLATE 'E:\ms4w\Apache\htdocs\mapservertest\template.html' IMAGEPATH 'E:\ms4w\Apache\htdocs\tmp\' IMAGEURL '/tmp/' METADATA "wfs_title" "WFS Demo Server for MapServer" ## REQUIRED "wfs_onlineresource" "http://localhost/cgi-bin/mapserv.exe?map=E:/ms4w/Apache/htdocs/mapservertest/wfs.map&" ## Recommended "wfs_srs" "EPSG:4326" ## Recommended "wfs_abstract" "This text describes my WFS service." ## Recommended END END LAYER NAME "omega" STATUS DEFAULT TYPE LINE METADATA "wfs_title" "omega" ##REQUIRED "wfs_srs" "EPSG:4326" ## REQUIRED "gml_include_items" "all" ## Optional (serves all attributes for layer) "gml_featureid" "product_id" ## REQUIRED END PROJECTION "init=epsg:4326" END CONNECTIONTYPE POSTGIS CONNECTION "xxxx" DATA "the_geom from alldata using unique product_id using SRID=4326" CLASS STYLE OUTLINECOLOR 125 0 0 END END DUMP TRUE ## REQUIRED END # layer END Thanks for your help. Cheers, Bryan From dushan888 at gmail.com Sat Jul 9 21:57:22 2011 From: dushan888 at gmail.com (Dushi) Date: Sun, 10 Jul 2011 10:27:22 +0530 Subject: [mapserver-users] Maps are not generating Message-ID: Hi, I'm a newbee for GIS. I have a posgis database on my working environment(template_postgis). i need to retrieve "the_geom" column from a table named "cmb_roads_rda". following is my map file (test.map). *MAP IMAGETYPE PNG EXTENT -97.238976 41.619778 -82.122902 49.385620 SIZE 900 900 IMAGECOLOR 255 255 143 LAYER NAME cmb_roads_rda CONNECTIONTYPE postgis NAME "cmb_roads_rda" CONNECTION "user=postgres password=817888 port=5432 dbname=template_postgis host=localhost" DATA "the_geom from cmb_roads_rda" STATUS ON DEBUG ON TYPE LINE CLASS NAME "cmb_roads_rda" STYLE COLOR 232 232 266 OUTLINECOLOR 32 32 33 END END END END *I call this map file by calling the following link --> http://localhost/cgi-bin/mapserv?map=/var/www/db/test.map&layer=states&mode=map but it *only generates a yellow color layer on *the browser and not displaying "the_geom" data. I'm using mapserver 5.6.6 with apashe2 webserver on linux mint. Please be kind to help on this issue. Thank you so much. * *-- Me on Web http://dushan888.wordpress.com http://www.twitter.com/Dushi http://identi.ca/dushi -------------- next part -------------- An HTML attachment was scrubbed... URL: From micklesh at gmail.com Sun Jul 10 01:06:57 2011 From: micklesh at gmail.com (Michael Shishcu) Date: Sun, 10 Jul 2011 11:06:57 +0300 Subject: [mapserver-users] Maps are not generating In-Reply-To: References: Message-ID: Hi Dushi, in the mapfile the layer has *NAME "cmb_roads_rda",* but you call it from cgi like layer=states. You should rename your layer to "states" or change the layers parameter in url regards, michael On Sun, Jul 10, 2011 at 7:57 AM, Dushi wrote: > Hi, I'm a newbee for GIS. I have a posgis database on my working > environment(template_postgis). i need to retrieve "the_geom" column from a > table named "cmb_roads_rda". following is my map file (test.map). > *MAP > IMAGETYPE PNG > EXTENT -97.238976 41.619778 -82.122902 49.385620 > SIZE 900 900 > IMAGECOLOR 255 255 143 > > > LAYER > NAME cmb_roads_rda > CONNECTIONTYPE postgis > NAME "cmb_roads_rda" > CONNECTION "user=postgres password=817888 port=5432 > dbname=template_postgis host=localhost" > DATA "the_geom from cmb_roads_rda" > STATUS ON > DEBUG ON > TYPE LINE > > CLASS > NAME "cmb_roads_rda" > > STYLE > COLOR 232 232 266 > OUTLINECOLOR 32 32 33 > > END > END > END > > > END > > *I call this map file by calling the following link --> > http://localhost/cgi-bin/mapserv?map=/var/www/db/test.map&layer=states&mode=map > but it *only generates a yellow color layer on *the browser and not > displaying "the_geom" data. > I'm using mapserver 5.6.6 with apashe2 webserver on linux mint. > Please be kind to help on this issue. Thank you so much. > > * > *-- > Me on Web > http://dushan888.wordpress.com > http://www.twitter.com/Dushi > http://identi.ca/dushi > > _______________________________________________ > 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 dushan888 at gmail.com Sun Jul 10 05:12:20 2011 From: dushan888 at gmail.com (Dushi) Date: Sun, 10 Jul 2011 17:42:20 +0530 Subject: [mapserver-users] Mapserver on Tomcat Message-ID: HI, Please be kind to point me out some good tutorials to work with mapserver on apache tomcat. I tried searching for them, but couldn't fine anything helpful. Thank you so much -- Me on Web http://dushan888.wordpress.com http://www.twitter.com/Dushi http://identi.ca/dushi -------------- next part -------------- An HTML attachment was scrubbed... URL: From armaluvly_88 at yahoo.com Sun Jul 10 22:59:18 2011 From: armaluvly_88 at yahoo.com (lovelietha) Date: Sun, 10 Jul 2011 22:59:18 -0700 (PDT) Subject: [mapserver-users] login session php with chameleon framework Message-ID: <1310363958547-6569844.post@n2.nabble.com> Hi all, i used chameleon framework for webgis,,when i made a login session on my page login,,the session doesn't working..the session on standard login has working,,but when i redirect the session it doesn't working. anyone can help me explain what happen or what i have supposed to do?? code is below : *Login.html code :*
./images/banner.png
Home.phtml Home ../Peta.phtml Map Analisis.phtml Analisis ../Login.phtml Login Contact.phtml Contact

ProfilBjm.html Profil Banjarmasin
User Name :

Password :

ProfilDBD.html Profil DBD
*Login.phtml code :* moMapSession = new MapSession_RW; $this ->moMapSession-> setTempDir ( getSessionSavePath()); } } $oApp= new SampleApp(); $oApp-> registerSkin('skins/sample'); $oApp->CWCInitialize($szTemplate,$szMapFile); $oApp->CWCExecute(); ?> *Login1.php code :*
./images/banner.png
Home.phtml Home ../Peta.phtml Map Analisis.phtml Analisis ../Login.phtml Login Contact.phtml Contact

Pilih Masukan Data :
*Login1.phtml code :* moMapSession = new MapSession_RW; $this ->moMapSession-> setTempDir ( getSessionSavePath()); } } $oApp= new SampleApp(); $oApp-> registerSkin('skins/sample'); $oApp->CWCInitialize($szTemplate,$szMapFile); $oApp->CWCExecute(); ?> *LoginCheck.php code :* ExecuteQuery("SELECT \"User_name\" FROM tb_admin WHERE \"User_name\" ='".$_POST["user_name"]."' AND \"Password\" = '".$_POST["user_name"]."'"); $Data = array(); while ($resAray = pg_fetch_array($DataRes, null, PGSQL_ASSOC)) { $Data = $resAray; } if(!empty($Data["User_name"])) { $_SESSION["USER"] = $Data["User_name"]; header("location:../Login1.phtml"); } else { header("location:../Login.phtml"); } } ?> Anyone,,any suggestions would be helpfull Thanks -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/login-session-php-with-chameleon-framework-tp6569844p6569844.html Sent from the Mapserver - User mailing list archive at Nabble.com. From parsecaway at web.de Mon Jul 11 01:54:02 2011 From: parsecaway at web.de (parsecaway at web.de) Date: Mon, 11 Jul 2011 10:54:02 +0200 (CEST) Subject: [mapserver-users] WFS with OpenLayers Message-ID: <2097924851.5110549.1310374442011.JavaMail.fmail@mwmweb012> Hello MapServer users, are there any good tutorials how to set up MapServer 6.0 for WFS? It doesn't work for me with OpenLayers. Thanks for any hint... Regards, Alex ___________________________________________________________ Schon geh?rt? WEB.DE hat einen genialen Phishing-Filter in die Toolbar eingebaut! http://produkte.web.de/go/toolbar From dmorissette at mapgears.com Mon Jul 11 06:54:47 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 11 Jul 2011 09:54:47 -0400 Subject: [mapserver-users] Upgrade MapServer from 5.4 to 6.0 In-Reply-To: <8E5471DB13993145A6D9183ED4DBC2D0012966C0@onottaxms8.AGR.GC.CA> References: <8E5471DB13993145A6D9183ED4DBC2D0012966C0@onottaxms8.AGR.GC.CA> Message-ID: <4E1B00A7.4040207@mapgears.com> Hi Jose, The only way to find out the source of a segmentation fault is with a debugger (e.g. gdb). I presume your GetMap requests run fine and it is just this GetFeatureInfo request that fails? Would you be able to provide a testcase for us to reproduce the error? Perhaps you could also try to run this request at the command line to confirm that you also get the segmentation fault: /path/to/mapserv "QUERY_STRING=map=.......&VERSION=1.1.1&TITLE=title&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=yyy&SERVICE=WMS&REQUEST=getFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&SRS=EPSG%3A2950&INFO_FORMAT=text%2Fxml&QUERY_LAYERS=yyy&BBOX=209601.108032%2C4995145.873053%2C455398.891968%2C5142254.126947&WIDTH=929&HEIGHT=556&X=428&Y=277" (make sure you set the map=.... value in the command above to the value of MS_MAPFILE set by your xxx_wms_en wrapper script) If you also get a seg fault at the command line then you could try to run the same request from inside 'gdb' and get a backtrace (command 'bt') to give us an idea of where the crash happens. Daniel On 11-07-08 02:34 PM, Lopes, Jose (AAFC-AAC) wrote: > Hi, > After upgrading MapServer from 5.4 to 6.0 we get a 500 error in this query: > http://localhost/ogc/xxx_wms_en?VERSION=1.1.1&TITLE=title&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=yyy&SERVICE=WMS&REQUEST=getFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&SRS=EPSG%3A2950&INFO_FORMAT=text%2Fxml&QUERY_LAYERS=yyy&BBOX=209601.108032%2C4995145.873053%2C455398.891968%2C5142254.126947&WIDTH=929&HEIGHT=556&X=428&Y=277 > > > Apache error log: > > [Fri Jul 08 11:48:15 2011] [error] [client 10.117.21.141] > /server/.../httpd/cgi-bin/xxx_wms_en: line 4: 27570 Segmentation fault > ${MS_CGIBIN}mapserv > [Fri Jul 08 11:48:15 2011] [error] [client 10.117.21.141] Premature end of > script headers: xxx_wms_en > The map files were updated following the migration guide... > Any idea about where this is comming from? > Thanks, > JoseLopes > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From Nicolas.Chenier at AGR.GC.CA Mon Jul 11 07:31:02 2011 From: Nicolas.Chenier at AGR.GC.CA (Chenier, Nicolas) Date: Mon, 11 Jul 2011 10:31:02 -0400 Subject: [mapserver-users] Difference in test map behavior from MapServer 5.6.5 to 6.0 In-Reply-To: <4E1B00A7.4040207@mapgears.com> References: <8E5471DB13993145A6D9183ED4DBC2D0012966C0@onottaxms8.AGR.GC.CA> <4E1B00A7.4040207@mapgears.com> Message-ID: Good day all, I am investigating an issue where the background in the PNG generated by the example map that comes with MapServer changes from a normal red-orange color to purple. The font also changes. (See attached) The data, symbols, fonts and map files are not touched, the only thing change is the cgi-bin binary between MS5 (5.6.5) and MS6 (6.0.0). Any help would be greatly appreciated! Thank you, Nic -------------- next part -------------- A non-text attachment was scrubbed... Name: ms5-test.png Type: image/png Size: 29457 bytes Desc: ms5-test.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ms6-test.png Type: image/png Size: 41507 bytes Desc: ms6-test.png URL: From posthumusb at AGR.GC.CA Mon Jul 11 09:08:26 2011 From: posthumusb at AGR.GC.CA (Brad Posthumus) Date: Mon, 11 Jul 2011 09:08:26 -0700 (PDT) Subject: [mapserver-users] Re: Font rendering in MapServer 6.0 In-Reply-To: References: <1309984917149-6555935.post@n2.nabble.com> <1309988428403-6556130.post@n2.nabble.com> <1310062045858-6559374.post@n2.nabble.com> Message-ID: <1310400506883-6571493.post@n2.nabble.com> thomas bonfort wrote: > > We've kept the GD renderer in 6.0 for some marginal use cases, but the > preferred way is to switch to AGG rendering (which is compiled in by > default): you can use the builtin png8 imagetype (mimetype: image/png; > mode=8bit) which does a quantization step if you need a 256 color > paletted image. > Thanks Thomas, your suggestion worked. Here's the updated OUTPUTFORMAT section that fixed the problem: OUTPUTFORMAT NAME png8 DRIVER "AGG/PNG8" MIMETYPE "image/png; mode=8bit" IMAGEMODE RGB FORMATOPTION "INTERLACE=OFF" EXTENSION png TRANSPARENT ON END -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Font-rendering-in-MapServer-6-0-tp6555935p6571493.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sdlime at gmail.com Mon Jul 11 09:50:56 2011 From: sdlime at gmail.com (Steve Lime) Date: Mon, 11 Jul 2011 11:50:56 -0500 Subject: [mapserver-users] Difference in test map behavior from MapServer 5.6.5 to 6.0 In-Reply-To: References: <8E5471DB13993145A6D9183ED4DBC2D0012966C0@onottaxms8.AGR.GC.CA> <4E1B00A7.4040207@mapgears.com> Message-ID: Which mapfile are we talkin'? Steve On Mon, Jul 11, 2011 at 9:31 AM, Chenier, Nicolas wrote: > Good day all, > > I am investigating an issue where the background in the PNG generated by > the example map that comes with MapServer changes from a normal > red-orange color to purple. The font also changes. (See attached) > > The data, symbols, fonts and map files are not touched, the only thing > change is the cgi-bin binary between MS5 (5.6.5) and MS6 (6.0.0). > > Any help would be greatly appreciated! > > Thank you, > > Nic > > > _______________________________________________ > 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 nicolas.chenier at agr.gc.ca Mon Jul 11 10:52:31 2011 From: nicolas.chenier at agr.gc.ca (Nicolas Chenier) Date: Mon, 11 Jul 2011 13:52:31 -0400 Subject: [mapserver-users] Difference in test map behavior from MapServer 5.6.5 to 6.0 In-Reply-To: References: <8E5471DB13993145A6D9183ED4DBC2D0012966C0@onottaxms8.AGR.GC.CA> <4E1B00A7.4040207@mapgears.com> Message-ID: <1310406751.6388.21.camel@onotta624248.agr.gc.ca> test.map (the tests that come with MapServer documentation): MAP NAME "Testing" EXTENT -0.5 50.977222 0.5 51.977222 #IMAGETYPE JPEG #IMAGETYPE PNG24 IMAGETYPE PNG IMAGECOLOR 255 255 255 STATUS ON SIZE 200 200 FONTSET "fonts.txt" SYMBOLSET "symbols.txt" SCALEBAR STATUS EMBED POSTLABELCACHE TRUE STYLE 0 UNITS METERS SIZE 150 3 POSITION LR TRANSPARENT TRUE COLOR 0 0 0 IMAGECOLOR 242 255 195 BACKGROUNDCOLOR 255 255 255 LABEL TYPE BITMAP SIZE TINY COLOR 0 0 0 POSITION UR BUFFER 10 END END LEGEND IMAGECOLOR 255 255 255 END WEB METADATA "key1" "value1" "key2" "value2" "key3" "value3" "key4" "value4" END END PROJECTION "init=epsg:4326" END LAYER NAME "RASTER" TYPE RASTER PROJECTION "init=epsg:4326" END DATA "raster.tif" PROCESSING "BANDS=1" STATUS DEFAULT END LAYER NAME "POLYGON" TYPE POLYGON PROJECTION "init=epsg:4326" END STATUS DEFAULT DATA "polygon" METADATA "key1" "value1" "key2" "value2" "key3" "value3" "key4" "value4" END CLASSITEM "FNAME" CLASS NAME "0" METADATA "key1" "value1" "key2" "value2" "key3" "value3" "key4" "value4" END STYLE COLOR 255 153 102 OUTLINECOLOR 0 0 204 SYMBOL 1 SIZE 2 END END CLASS NAME "1" EXPRESSION "foo" STYLE COLOR 255 153 102 OUTLINECOLOR 0 0 204 SYMBOL 1 SIZE 2 END END END LAYER NAME "LINE" TYPE LINE PROJECTION "init=epsg:4326" END TRANSPARENCY 1 STATUS DEFAULT DATA "line" CLASSITEM "FNAME" CLASS NAME "0" STYLE COLOR 0 153 0 SYMBOL 1 SIZE 3 END END CLASS NAME "1" EXPRESSION "foo" STYLE COLOR 0 153 0 SYMBOL 1 SIZE 3 END END END LAYER NAME "POINT" EXTENT -0.5 51.0 0.5 52.0 TYPE POINT PROJECTION "init=epsg:4326" END STATUS DEFAULT DATA "point" CLASSITEM "FNAME" LABELITEM "FNAME" CLASS NAME "0" STYLE COLOR 0 0 0 SYMBOL 1 SIZE 13 END STYLE COLOR 204 204 204 SYMBOL 1 SIZE 7 END LABEL TYPE TRUETYPE FONT "Vera" SIZE 10 COLOR 0 0 0 END TEMPLATE "point.html" END CLASS NAME "1" EXPRESSION "foo" STYLE COLOR 0 0 0 SYMBOL 1 SIZE 13 END END END LAYER NAME "INLINE" TYPE POINT PROJECTION "init=epsg:4326" END STATUS DEFAULT FEATURE POINTS -0.2 51.5 END END CLASS NAME "0" STYLE COLOR 0 0 0 SYMBOL 1 SIZE 3 END END END LAYER NAME "INLINE-PIXMAP-RGBA" TYPE POINT TRANSPARENCY ALPHA DEBUG ON PROJECTION "init=epsg:4326" END STATUS OFF FEATURE POINTS 0.2 51.7 END END CLASS NAME "0" STYLE SYMBOL 'xmarks-png' END LABEL COLOR 0 0 0 END END END LAYER NAME "INLINE-PIXMAP-PCT" TYPE ANNOTATION DEBUG ON TRANSPARENCY ALPHA PROJECTION "init=epsg:4326" END STATUS DEFAULT FEATURE POINTS 0.2 51.2 END END CLASS NAME "0" STYLE SYMBOL 'home-png' END TEXT "." LABEL COLOR 0 0 0 END END END END symbols.txt: SYMBOLSET SYMBOL NAME 'circle' TYPE ellipse FILLED true POINTS 1 1 END END SYMBOL NAME 'xmarks-png' TYPE PIXMAP IMAGE 'xmarks.png' END SYMBOL NAME 'home-png' TYPE PIXMAP IMAGE 'home.png' END END On Mon, 2011-07-11 at 11:50 -0500, Steve Lime wrote: > Which mapfile are we talkin'? Steve > > On Mon, Jul 11, 2011 at 9:31 AM, Chenier, Nicolas > wrote: > Good day all, > > I am investigating an issue where the background in the PNG > generated by > the example map that comes with MapServer changes from a > normal > red-orange color to purple. The font also changes. (See > attached) > > The data, symbols, fonts and map files are not touched, the > only thing > change is the cgi-bin binary between MS5 (5.6.5) and MS6 > (6.0.0). > > Any help would be greatly appreciated! > > Thank you, > > Nic > > > _______________________________________________ > 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 greenkov at gmail.com Mon Jul 11 11:34:54 2011 From: greenkov at gmail.com (Alexander Petkov) Date: Mon, 11 Jul 2011 12:34:54 -0600 Subject: [mapserver-users] WFS with 6.0.0 Beta RC2 In-Reply-To: References: Message-ID: I am getting the same behaviour with Mapserver 6.0.0. Previous 5.6.* releases work fine with the same request. I am wondering whether I am missing some new required declaration since 6.0.0 was released... Alex On Mon, May 9, 2011 at 2:44 PM, Arnd Wippermann wrote: > Hi, > > I'm trying to get WFS working with 6.0.0 Beta RC2. > > If i use MapServer 5.6.5 a wfs post request returns the features. > If I use MapServer 6.0.0 the same post request responses with > ...missing. > > The BBOX coordinates, the mapfile projection and layer is in EPSG:3763. > In the WEB METADATA Block is set 'wfs_srs' 'EPSG:3763' > There is no reprojection needed. > > Is there something I have to consider, when using MapServer Version 6.0.0 > and WFS. > > Arnd > > POST > > version="1.0.0" maxFeatures="100"> > > > > msgeometry > > -535786.68671593,-509560.89777426 > 559489.72019154,364218.61581997 > > > > > > > RESPONSE MapServer 5.6.5 > > > ? xmlns:ms="http://mapserver.gis.umn.edu/mapserver" > ? xmlns:wfs="http://www.opengis.net/wfs" > ? xmlns:gml="http://www.opengis.net/gml" > ? xmlns:ogc="http://www.opengis.net/ogc" > ? xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > ? xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd > ? ? ? ? ? ? ? ? ? ? ? http://mapserver.gis.umn.edu/mapserver > http://dir/mapserv.exe?map=mapfile&Service=WFS&SERVICE=WFS&VERSI > ON=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=default&OUTPUTFORM > AT=XMLSCHEMA"> > ? ? ? > ? ? ? ? > ? ? ? ? ? ? ? ?-21537.507741,-91486.277029 > 44944.469424,-56235.046915 > ? ? ? ? > ? ? ? > ? ? > ? ? ? > ? ? ? ? > ? ? ? ? ? ? ? ? > ? ? ? ? ? ? ? ? ? ? ? ?-21441.941044,-67958.139907 > -11234.384166,-56235.046915 > ? ? ? ? ? ? ? ? > ? ? ? ? > ? ? ? ? > ? ? ? ? > ? ? ? ? ? > ? ? ? ? ? ? > ? ? ? ? ? ? ?-21441.941044,-56235.046915 > -11234.384166,-56256.314719 -16838.013555,-67958.139907 > -21441.941044,-56235.046915 > ? ? ? ? ? ? > ? ? ? ? ? > ? ? ? ? > ? ? ? ? > ? ? ? ?No 1 > ? ? ? ?AREA > ? ? ? > ? ? > ... > > > RESPONSE MapServer 6.0.0 > > > ? xmlns:ms="http://mapserver.gis.umn.edu/mapserver" > ? xmlns:wfs="http://www.opengis.net/wfs" > ? xmlns:gml="http://www.opengis.net/gml" > ? xmlns:ogc="http://www.opengis.net/ogc" > ? xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > ? xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd > ? ? ? ? ? ? ? ? ? ? ? http://mapserver.gis.umn.edu/mapserver > http://dir/mapserv.exe?map=mapfile&Service=WFS&SERVICE=WFS&VERSI > ON=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=default&OUTPUTFORM > AT=XMLSCHEMA"> > ? > ? ? ?missing > ? > > > LOG Entry > > [Mon May 09 22:11:54 2011].666000 CGI Request 1 on process 3968 > [Mon May 09 22:11:54 2011].666000 msQueryByFilter(): Search returned no > results. No matching record(s) found. > [Mon May 09 22:11:54 2011].713000 msProjectRect(): some points failed to > reproject, doing internal sampling. > [Mon May 09 22:11:54 2011].713000 mapserv request processing time (msLoadMap > not incl.): 0.047s > [Mon May 09 22:11:54 2011].713000 msFreeMap(): freeing map at 0184A9E8. > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From greenkov at gmail.com Mon Jul 11 13:44:42 2011 From: greenkov at gmail.com (Alexander Petkov) Date: Mon, 11 Jul 2011 14:44:42 -0600 Subject: [mapserver-users] WFS with 6.0.0 Beta RC2 In-Reply-To: References: Message-ID: The interesting thing is that when a GET request is issued with the same filter, the GML for the feature is returned as expected. Does anybody have POST GetFeature requests working with Mapserver v6.0.0? Thanks in advance, Alex On Mon, Jul 11, 2011 at 12:34 PM, Alexander Petkov wrote: > I am getting the same behaviour with Mapserver 6.0.0. Previous 5.6.* > releases work fine with the same request. I am wondering whether I am > missing some new required declaration since 6.0.0 was released... > > Alex > > On Mon, May 9, 2011 at 2:44 PM, Arnd Wippermann wrote: >> Hi, >> >> I'm trying to get WFS working with 6.0.0 Beta RC2. >> >> If i use MapServer 5.6.5 a wfs post request returns the features. >> If I use MapServer 6.0.0 the same post request responses with >> ...missing. >> >> The BBOX coordinates, the mapfile projection and layer is in EPSG:3763. >> In the WEB METADATA Block is set 'wfs_srs' 'EPSG:3763' >> There is no reprojection needed. >> >> Is there something I have to consider, when using MapServer Version 6.0.0 >> and WFS. >> >> Arnd >> >> POST >> >> > version="1.0.0" maxFeatures="100"> >> >> >> >> msgeometry >> >> -535786.68671593,-509560.89777426 >> 559489.72019154,364218.61581997 >> >> >> >> >> >> >> RESPONSE MapServer 5.6.5 >> >> >> > ? xmlns:ms="http://mapserver.gis.umn.edu/mapserver" >> ? xmlns:wfs="http://www.opengis.net/wfs" >> ? xmlns:gml="http://www.opengis.net/gml" >> ? xmlns:ogc="http://www.opengis.net/ogc" >> ? xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> ? xsi:schemaLocation="http://www.opengis.net/wfs >> http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd >> ? ? ? ? ? ? ? ? ? ? ? http://mapserver.gis.umn.edu/mapserver >> http://dir/mapserv.exe?map=mapfile&Service=WFS&SERVICE=WFS&VERSI >> ON=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=default&OUTPUTFORM >> AT=XMLSCHEMA"> >> ? ? ? >> ? ? ? ? >> ? ? ? ? ? ? ? ?-21537.507741,-91486.277029 >> 44944.469424,-56235.046915 >> ? ? ? ? >> ? ? ? >> ? ? >> ? ? ? >> ? ? ? ? >> ? ? ? ? ? ? ? ? >> ? ? ? ? ? ? ? ? ? ? ? ?-21441.941044,-67958.139907 >> -11234.384166,-56235.046915 >> ? ? ? ? ? ? ? ? >> ? ? ? ? >> ? ? ? ? >> ? ? ? ? >> ? ? ? ? ? >> ? ? ? ? ? ? >> ? ? ? ? ? ? ?-21441.941044,-56235.046915 >> -11234.384166,-56256.314719 -16838.013555,-67958.139907 >> -21441.941044,-56235.046915 >> ? ? ? ? ? ? >> ? ? ? ? ? >> ? ? ? ? >> ? ? ? ? >> ? ? ? ?No 1 >> ? ? ? ?AREA >> ? ? ? >> ? ? >> ... >> >> >> RESPONSE MapServer 6.0.0 >> >> >> > ? xmlns:ms="http://mapserver.gis.umn.edu/mapserver" >> ? xmlns:wfs="http://www.opengis.net/wfs" >> ? xmlns:gml="http://www.opengis.net/gml" >> ? xmlns:ogc="http://www.opengis.net/ogc" >> ? xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> ? xsi:schemaLocation="http://www.opengis.net/wfs >> http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd >> ? ? ? ? ? ? ? ? ? ? ? http://mapserver.gis.umn.edu/mapserver >> http://dir/mapserv.exe?map=mapfile&Service=WFS&SERVICE=WFS&VERSI >> ON=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=default&OUTPUTFORM >> AT=XMLSCHEMA"> >> ? >> ? ? ?missing >> ? >> >> >> LOG Entry >> >> [Mon May 09 22:11:54 2011].666000 CGI Request 1 on process 3968 >> [Mon May 09 22:11:54 2011].666000 msQueryByFilter(): Search returned no >> results. No matching record(s) found. >> [Mon May 09 22:11:54 2011].713000 msProjectRect(): some points failed to >> reproject, doing internal sampling. >> [Mon May 09 22:11:54 2011].713000 mapserv request processing time (msLoadMap >> not incl.): 0.047s >> [Mon May 09 22:11:54 2011].713000 msFreeMap(): freeing map at 0184A9E8. >> >> >> >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From arnd.wippermann at web.de Mon Jul 11 14:48:22 2011 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Mon, 11 Jul 2011 23:48:22 +0200 Subject: AW: [mapserver-users] WFS with 6.0.0 Beta RC2 In-Reply-To: References: Message-ID: <7A219E0F33B14AEC8A93552AC7188ED4@pcawh2> Hi, I have also problems with post request Version 6.0.0 : with DATA 'shapefile' in the mapfile MapServer found no or not all results, http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_WFS_Demo/MapServe r_WFS_Demo.asp?connectionOGR=false&SLDsrcIdx=8 with CONNECTIONTYE ogr and CONNECTION 'shapefile' MapServer works as expected. http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_WFS_Demo/MapServe r_WFS_Demo.asp?connectionOGR=true&SLDsrcIdx=8 Arnd -----Urspr?ngliche Nachricht----- Von: Alexander Petkov [mailto:greenkov at gmail.com] Gesendet: Montag, 11. Juli 2011 22:45 An: Arnd Wippermann Cc: mapserver-users at lists.osgeo.org Betreff: Re: [mapserver-users] WFS with 6.0.0 Beta RC2 The interesting thing is that when a GET request is issued with the same filter, the GML for the feature is returned as expected. Does anybody have POST GetFeature requests working with Mapserver v6.0.0? Thanks in advance, Alex On Mon, Jul 11, 2011 at 12:34 PM, Alexander Petkov wrote: > I am getting the same behaviour with Mapserver 6.0.0. Previous 5.6.* > releases work fine with the same request. I am wondering whether I am > missing some new required declaration since 6.0.0 was released... > > Alex > > On Mon, May 9, 2011 at 2:44 PM, Arnd Wippermann wrote: >> Hi, >> >> I'm trying to get WFS working with 6.0.0 Beta RC2. >> >> If i use MapServer 5.6.5 a wfs post request returns the features. >> If I use MapServer 6.0.0 the same post request responses with >> ...missing. >> >> The BBOX coordinates, the mapfile projection and layer is in EPSG:3763. >> In the WEB METADATA Block is set 'wfs_srs' 'EPSG:3763' >> There is no reprojection needed. >> >> Is there something I have to consider, when using MapServer Version >> 6.0.0 and WFS. >> >> Arnd >> >> POST >> >> > version="1.0.0" maxFeatures="100"> >> >> >> >> msgeometry >> >> -535786.68671593,-509560.89777426 >> 559489.72019154,364218.61581997 >> >> >> >> >> >> >> RESPONSE MapServer 5.6.5 >> >> > ? xmlns:ms="http://mapserver.gis.umn.edu/mapserver" >> ? xmlns:wfs="http://www.opengis.net/wfs" >> ? xmlns:gml="http://www.opengis.net/gml" >> ? xmlns:ogc="http://www.opengis.net/ogc" >> ? xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> ? xsi:schemaLocation="http://www.opengis.net/wfs >> http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd >> ? ? ? ? ? ? ? ? ? ? ? http://mapserver.gis.umn.edu/mapserver >> http://dir/mapserv.exe?map=mapfile&Service=WFS&SERVICE=WFS&am >> p;VERSI >> ON=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=default&OUT >> PUTFORM >> AT=XMLSCHEMA"> >> ? ? ? >> ? ? ? ? >> ? ? ? ? ? ? ? ?-21537.507741,-91486.277029 >> 44944.469424,-56235.046915 >> ? ? ? ? >> ? ? ? >> ? ? >> ? ? ? >> ? ? ? ? >> ? ? ? ? ? ? ? ? >> ? ? ? ? ? ? ? ? ? ? ? ?-21441.941044,-67958.139907 >> -11234.384166,-56235.046915 >> ? ? ? ? ? ? ? ? >> ? ? ? ? >> ? ? ? ? >> ? ? ? ? >> ? ? ? ? ? >> ? ? ? ? ? ? >> ? ? ? ? ? ? ?-21441.941044,-56235.046915 >> -11234.384166,-56256.314719 -16838.013555,-67958.139907 >> -21441.941044,-56235.046915 >> ? ? ? ? ? ? >> ? ? ? ? ? >> ? ? ? ? >> ? ? ? ? >> ? ? ? ?No 1 >> ? ? ? ?AREA >> ? ? ? >> ? ? >> ... >> >> >> RESPONSE MapServer 6.0.0 >> >> > ? xmlns:ms="http://mapserver.gis.umn.edu/mapserver" >> ? xmlns:wfs="http://www.opengis.net/wfs" >> ? xmlns:gml="http://www.opengis.net/gml" >> ? xmlns:ogc="http://www.opengis.net/ogc" >> ? xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> ? xsi:schemaLocation="http://www.opengis.net/wfs >> http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd >> ? ? ? ? ? ? ? ? ? ? ? http://mapserver.gis.umn.edu/mapserver >> http://dir/mapserv.exe?map=mapfile&Service=WFS&SERVICE=WFS&am >> p;VERSI >> ON=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=default&OUT >> PUTFORM >> AT=XMLSCHEMA"> >> ? >> ? ? ?missing >> ? >> >> >> LOG Entry >> >> [Mon May 09 22:11:54 2011].666000 CGI Request 1 on process 3968 [Mon >> May 09 22:11:54 2011].666000 msQueryByFilter(): Search returned no >> results. No matching record(s) found. >> [Mon May 09 22:11:54 2011].713000 msProjectRect(): some points failed >> to reproject, doing internal sampling. >> [Mon May 09 22:11:54 2011].713000 mapserv request processing time >> (msLoadMap not incl.): 0.047s [Mon May 09 22:11:54 2011].713000 >> msFreeMap(): freeing map at 0184A9E8. >> >> >> >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From greenkov at gmail.com Mon Jul 11 15:05:17 2011 From: greenkov at gmail.com (Alexander Petkov) Date: Mon, 11 Jul 2011 16:05:17 -0600 Subject: [mapserver-users] WFS with 6.0.0 Beta RC2 In-Reply-To: <7A219E0F33B14AEC8A93552AC7188ED4@pcawh2> References: <7A219E0F33B14AEC8A93552AC7188ED4@pcawh2> Message-ID: Using OGR data connection works with my POST GetFeature requests, thanks a lot :) Alex On Mon, Jul 11, 2011 at 3:48 PM, Arnd Wippermann wrote: > Hi, > > I have also problems with post request > > Version 6.0.0 : > with DATA 'shapefile' in the mapfile MapServer found no or not all results, > http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_WFS_Demo/MapServe > r_WFS_Demo.asp?connectionOGR=false&SLDsrcIdx=8 > > with CONNECTIONTYE ogr and CONNECTION 'shapefile' MapServer works as > expected. > http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_WFS_Demo/MapServe > r_WFS_Demo.asp?connectionOGR=true&SLDsrcIdx=8 > > Arnd > > > -----Urspr?ngliche Nachricht----- > Von: Alexander Petkov [mailto:greenkov at gmail.com] > Gesendet: Montag, 11. Juli 2011 22:45 > An: Arnd Wippermann > Cc: mapserver-users at lists.osgeo.org > Betreff: Re: [mapserver-users] WFS with 6.0.0 Beta RC2 > > The interesting thing is that when a GET request is issued with the same > filter, the GML for the feature is returned as expected. > Does anybody have POST GetFeature requests working with Mapserver v6.0.0? > > Thanks in advance, > Alex > On Mon, Jul 11, 2011 at 12:34 PM, Alexander Petkov > wrote: >> I am getting the same behaviour with Mapserver 6.0.0. Previous 5.6.* >> releases work fine with the same request. I am wondering whether I am >> missing some new required declaration since 6.0.0 was released... >> >> Alex >> >> On Mon, May 9, 2011 at 2:44 PM, Arnd Wippermann > wrote: >>> Hi, >>> >>> I'm trying to get WFS working with 6.0.0 Beta RC2. >>> >>> If i use MapServer 5.6.5 a wfs post request returns the features. >>> If I use MapServer 6.0.0 the same post request responses with >>> ...missing. >>> >>> The BBOX coordinates, the mapfile projection and layer is in EPSG:3763. >>> In the WEB METADATA Block is set 'wfs_srs' 'EPSG:3763' >>> There is no reprojection needed. >>> >>> Is there something I have to consider, when using MapServer Version >>> 6.0.0 and WFS. >>> >>> Arnd >>> >>> POST >>> >>> >> version="1.0.0" maxFeatures="100"> >>> >>> >>> >>> msgeometry >>> >>> -535786.68671593,-509560.89777426 >>> 559489.72019154,364218.61581997 >>> >>> >>> >>> >>> >>> >>> RESPONSE MapServer 5.6.5 >>> >>> >> ? xmlns:ms="http://mapserver.gis.umn.edu/mapserver" >>> ? xmlns:wfs="http://www.opengis.net/wfs" >>> ? xmlns:gml="http://www.opengis.net/gml" >>> ? xmlns:ogc="http://www.opengis.net/ogc" >>> ? xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>> ? xsi:schemaLocation="http://www.opengis.net/wfs >>> http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd >>> ? ? ? ? ? ? ? ? ? ? ? http://mapserver.gis.umn.edu/mapserver >>> http://dir/mapserv.exe?map=mapfile&Service=WFS&SERVICE=WFS&am >>> p;VERSI >>> ON=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=default&OUT >>> PUTFORM >>> AT=XMLSCHEMA"> >>> ? ? ? >>> ? ? ? ? >>> ? ? ? ? ? ? ? ?-21537.507741,-91486.277029 >>> 44944.469424,-56235.046915 >>> ? ? ? ? >>> ? ? ? >>> ? ? >>> ? ? ? >>> ? ? ? ? >>> ? ? ? ? ? ? ? ? >>> ? ? ? ? ? ? ? ? ? ? ? ?-21441.941044,-67958.139907 >>> -11234.384166,-56235.046915 >>> ? ? ? ? ? ? ? ? >>> ? ? ? ? >>> ? ? ? ? >>> ? ? ? ? >>> ? ? ? ? ? >>> ? ? ? ? ? ? >>> ? ? ? ? ? ? ?-21441.941044,-56235.046915 >>> -11234.384166,-56256.314719 -16838.013555,-67958.139907 >>> -21441.941044,-56235.046915 >>> ? ? ? ? ? ? >>> ? ? ? ? ? >>> ? ? ? ? >>> ? ? ? ? >>> ? ? ? ?No 1 >>> ? ? ? ?AREA >>> ? ? ? >>> ? ? >>> ... >>> >>> >>> RESPONSE MapServer 6.0.0 >>> >>> >> ? xmlns:ms="http://mapserver.gis.umn.edu/mapserver" >>> ? xmlns:wfs="http://www.opengis.net/wfs" >>> ? xmlns:gml="http://www.opengis.net/gml" >>> ? xmlns:ogc="http://www.opengis.net/ogc" >>> ? xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>> ? xsi:schemaLocation="http://www.opengis.net/wfs >>> http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd >>> ? ? ? ? ? ? ? ? ? ? ? http://mapserver.gis.umn.edu/mapserver >>> http://dir/mapserv.exe?map=mapfile&Service=WFS&SERVICE=WFS&am >>> p;VERSI >>> ON=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=default&OUT >>> PUTFORM >>> AT=XMLSCHEMA"> >>> ? >>> ? ? ?missing >>> ? >>> >>> >>> LOG Entry >>> >>> [Mon May 09 22:11:54 2011].666000 CGI Request 1 on process 3968 [Mon >>> May 09 22:11:54 2011].666000 msQueryByFilter(): Search returned no >>> results. No matching record(s) found. >>> [Mon May 09 22:11:54 2011].713000 msProjectRect(): some points failed >>> to reproject, doing internal sampling. >>> [Mon May 09 22:11:54 2011].713000 mapserv request processing time >>> (msLoadMap not incl.): 0.047s [Mon May 09 22:11:54 2011].713000 >>> msFreeMap(): freeing map at 0184A9E8. >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > > From csdave4u at gmail.com Tue Jul 12 04:10:58 2011 From: csdave4u at gmail.com (Dave Chetan) Date: Tue, 12 Jul 2011 16:40:58 +0530 Subject: [mapserver-users] msShapefileOpen(): Unable to access file Message-ID: Hi, I am publishing DGN data using tile option. I am getting error "msShapefileOpen(): Unable to access file". Following are the details of Input data, steps executed and error log. Please, if anyone can help in resolving the issue. Source files are DGN D:\Tile\DGN\Final\1.dgn D:\Tile\DGN\Final\3.dgn D:\Tile\DGN\Final\5.dgn D:\Tile\DGN\Final\7.dgn D:\Tile\DGN\Final\9.dgn Step1)- Creation of Index tile ogrtindex.exe d:\Tile\DGN\Final\index_dgn.shp d:\Tile\DGN\Final\*.dgn Ogrtindex created "index_dgn.shp" index file Step2)- Map file .... EXTENT 699218.75297987 2251967.57943806 755021.241547886 2291053.54827586 SHAPEPATH "D:\Tile\DGN\Final" ..... LAYER NAME "DGN" STATUS ON TILEINDEX "index_dgn" TILEITEM "location" TYPE LINE UNITS METERS CLASS NAME "DGN" STYLE ANGLE 360 COLOR 240 215 209 SYMBOL "LineDash" WIDTH 1 END END END Error 7/12/2011 4:21:33 PM|msDrawMap(): Image handling error. Failed to draw layer named 'DGN'.;msTiledSHPOpenFile(): Shapefile error. Unable to open a single tile to use as a template in layer DGN.;msShapefileOpen(): Unable to access file. (d:\Tile\DGN\Final\9.dgn,0);msShapefileOpen(): Unable to access file. (d:\Tile\DGN\Final\9.dgn,0);msShapefileOpen(): Unable to access file. (d:\Tile\DGN\Final\9.dgn,0);msShapefileOpen(): Unable to access file. (d:\Tile\DGN\Final\7.dgn,0);msShapefileOpen(): Unable to access file. (d:\Tile\DGN\Final\7.dgn,0);msShapefileOpen(): Unable to access file. (d:\Tile\DGN\Final\7.dgn,0);msShapefileOpen(): Unable to access file. (d:\Tile\DGN\Final\5.dgn,0);msShapefileOpen(): Unable to access file. (d:\Tile\DGN\Final\5.dgn,0);msShapefileOpen(): Unable to access file. (d:\Tile\DGN\Final\5.dgn,0);msShapefileOpen(): Unable to access file. (d:\Tile\DGN\Final\3.dgn,0);msShapefileOpen(): Unable to access file. (d:\Tile\DGN\Final\3.dgn,0);msShapefileOpen(): Unable to access file. (d:\Tile\DGN\Final\3.dgn,0);msShapefileOpen(): Unable to access file. (d:\Tile\DGN\Final\1.dgn,0);msShapefileOpen(): Unable to access file. (d:\Tile\DGN\Final\1.dgn,0);msShapefileOpen(): Unable to access file. (d:\Tile\DGN\Final\1.dgn,0) 7/12/2011 4:21:33 PM| at OSGeo.MapServer.mapObj.draw() at MapCreator.Controls.MapControl.RefreshMap() In the Layer Tag if I add following line CONNECTIONTYPE OGR the error is 7/12/2011 4:29:20 PM|msDrawMap(): Image handling error. Failed to draw layer named 'DGN'.;msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `DGN'. File not found or unsupported format. 7/12/2011 4:29:20 PM| at OSGeo.MapServer.mapObj.draw() at MapCreator.Controls.MapControl.RefreshMap() From Jukka.Rahkonen at mmmtike.fi Tue Jul 12 04:30:10 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 12 Jul 2011 11:30:10 +0000 Subject: [mapserver-users] msShapefileOpen(): Unable to access file In-Reply-To: References: Message-ID: <84446DEF76453C439E9E97E438E13A63012F25@suutari.haapa.mmm.fi> Hi, I guess that Mapserver is seaching for shapefiles as default. Read the document http://mapserver.org/input/vector/ogr.html and have a try with CONNECTIONTYPE=OGR. -Jukka Rahkonen ________________________________________ Dave Chetan wrote: Hi, I am publishing DGN data using tile option. I am getting error "msShapefileOpen(): Unable to access file". Following are the details of Input data, steps executed and error log. Please, if anyone can help in resolving the issue. Source files are DGN D:\Tile\DGN\Final\1.dgn D:\Tile\DGN\Final\3.dgn D:\Tile\DGN\Final\5.dgn D:\Tile\DGN\Final\7.dgn D:\Tile\DGN\Final\9.dgn Step1)- Creation of Index tile ogrtindex.exe d:\Tile\DGN\Final\index_dgn.shp d:\Tile\DGN\Final\*.dgn Ogrtindex created "index_dgn.shp" index file Step2)- Map file .... EXTENT 699218.75297987 2251967.57943806 755021.241547886 2291053.54827586 SHAPEPATH "D:\Tile\DGN\Final" ..... LAYER NAME "DGN" STATUS ON TILEINDEX "index_dgn" TILEITEM "location" TYPE LINE UNITS METERS CLASS NAME "DGN" STYLE ANGLE 360 COLOR 240 215 209 SYMBOL "LineDash" WIDTH 1 END END END Error 7/12/2011 4:21:33 PM|msDrawMap(): Image handling error. Failed to draw layer named 'DGN'.;msTiledSHPOpenFile(): Shapefile error. Unable to open a single tile to use as a template in layer DGN.;msShapefileOpen(): Unable to access file. (d:\Tile\DGN\Final\9.dgn,0);msShapefileOpen(): Unable to access file. (d:\Tile\DGN\Final\9.dgn,0);msShapefileOpen(): Unable to access file. (d:\Tile\DGN\Final\9.dgn,0);msShapefileOpen(): Unable to access file. (d:\Tile\DGN\Final\7.dgn,0);msShapefileOpen(): Unable to access file. (d:\Tile\DGN\Final\7.dgn,0);msShapefileOpen(): Unable to access file. (d:\Tile\DGN\Final\7.dgn,0);msShapefileOpen(): Unable to access file. (d:\Tile\DGN\Final\5.dgn,0);msShapefileOpen(): Unable to access file. (d:\Tile\DGN\Final\5.dgn,0);msShapefileOpen(): Unable to access file. (d:\Tile\DGN\Final\5.dgn,0);msShapefileOpen(): Unable to access file. (d:\Tile\DGN\Final\3.dgn,0);msShapefileOpen(): Unable to access file. (d:\Tile\DGN\Final\3.dgn,0);msShapefileOpen(): Unable to access file. (d:\Tile\DGN\Final\3.dgn,0);msShapefileOpen(): Unable to access file. (d:\Tile\DGN\Final\1.dgn,0);msShapefileOpen(): Unable to access file. (d:\Tile\DGN\Final\1.dgn,0);msShapefileOpen(): Unable to access file. (d:\Tile\DGN\Final\1.dgn,0) 7/12/2011 4:21:33 PM| at OSGeo.MapServer.mapObj.draw() at MapCreator.Controls.MapControl.RefreshMap() In the Layer Tag if I add following line CONNECTIONTYPE OGR the error is 7/12/2011 4:29:20 PM|msDrawMap(): Image handling error. Failed to draw layer named 'DGN'.;msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `DGN'. File not found or unsupported format. 7/12/2011 4:29:20 PM| at OSGeo.MapServer.mapObj.draw() at MapCreator.Controls.MapControl.RefreshMap() _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From csdave4u at gmail.com Tue Jul 12 04:58:42 2011 From: csdave4u at gmail.com (Dave Chetan) Date: Tue, 12 Jul 2011 17:28:42 +0530 Subject: [mapserver-users] msShapefileOpen(): Unable to access file In-Reply-To: <84446DEF76453C439E9E97E438E13A63012F25@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A63012F25@suutari.haapa.mmm.fi> Message-ID: Hi Rahkonen, Thanks for the prompt reply..!! If I add CONNECTIONTYPE OGR in the Layer Tag, then the error is 7/12/2011 4:29:20 PM|msDrawMap(): Image handling error. Failed to draw layer named 'DGN'.;msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `DGN'. File not found or unsupported format. 7/12/2011 4:29:20 PM| at OSGeo.MapServer.mapObj.draw() at MapCreator.Controls.MapControl.RefreshMap() Regards, Dave C. On 7/12/11, Rahkonen Jukka wrote: > Hi, > > I guess that Mapserver is seaching for shapefiles as default. Read the > document http://mapserver.org/input/vector/ogr.html and have a try with > CONNECTIONTYPE=OGR. > > -Jukka Rahkonen > ________________________________________ > Dave Chetan wrote: > > > Hi, > > I am publishing DGN data using tile option. I am getting error > "msShapefileOpen(): Unable to access file". > > Following are the details of Input data, steps executed and error log. > > Please, if anyone can help in resolving the issue. > > Source files are DGN > D:\Tile\DGN\Final\1.dgn > D:\Tile\DGN\Final\3.dgn > D:\Tile\DGN\Final\5.dgn > D:\Tile\DGN\Final\7.dgn > D:\Tile\DGN\Final\9.dgn > > Step1)- > Creation of Index tile > > ogrtindex.exe d:\Tile\DGN\Final\index_dgn.shp d:\Tile\DGN\Final\*.dgn > > Ogrtindex created "index_dgn.shp" index file > > Step2)- > Map file > .... > EXTENT 699218.75297987 2251967.57943806 755021.241547886 2291053.54827586 > SHAPEPATH "D:\Tile\DGN\Final" > ..... > > > LAYER > NAME "DGN" > STATUS ON > TILEINDEX "index_dgn" > TILEITEM "location" > TYPE LINE > UNITS METERS > CLASS > NAME "DGN" > STYLE > ANGLE 360 > COLOR 240 215 209 > SYMBOL "LineDash" > WIDTH 1 > END > END > END > > > > Error > > 7/12/2011 4:21:33 PM|msDrawMap(): Image handling error. Failed to draw > layer named 'DGN'.;msTiledSHPOpenFile(): Shapefile error. Unable to > open a single tile to use as a template in layer > DGN.;msShapefileOpen(): Unable to access file. > (d:\Tile\DGN\Final\9.dgn,0);msShapefileOpen(): Unable to access file. > (d:\Tile\DGN\Final\9.dgn,0);msShapefileOpen(): Unable to access file. > (d:\Tile\DGN\Final\9.dgn,0);msShapefileOpen(): Unable to access file. > (d:\Tile\DGN\Final\7.dgn,0);msShapefileOpen(): Unable to access file. > (d:\Tile\DGN\Final\7.dgn,0);msShapefileOpen(): Unable to access file. > (d:\Tile\DGN\Final\7.dgn,0);msShapefileOpen(): Unable to access file. > (d:\Tile\DGN\Final\5.dgn,0);msShapefileOpen(): Unable to access file. > (d:\Tile\DGN\Final\5.dgn,0);msShapefileOpen(): Unable to access file. > (d:\Tile\DGN\Final\5.dgn,0);msShapefileOpen(): Unable to access file. > (d:\Tile\DGN\Final\3.dgn,0);msShapefileOpen(): Unable to access file. > (d:\Tile\DGN\Final\3.dgn,0);msShapefileOpen(): Unable to access file. > (d:\Tile\DGN\Final\3.dgn,0);msShapefileOpen(): Unable to access file. > (d:\Tile\DGN\Final\1.dgn,0);msShapefileOpen(): Unable to access file. > (d:\Tile\DGN\Final\1.dgn,0);msShapefileOpen(): Unable to access file. > (d:\Tile\DGN\Final\1.dgn,0) > 7/12/2011 4:21:33 PM| at OSGeo.MapServer.mapObj.draw() > at MapCreator.Controls.MapControl.RefreshMap() > > > > In the Layer Tag if I add following line > > CONNECTIONTYPE OGR > > the error is > > 7/12/2011 4:29:20 PM|msDrawMap(): Image handling error. Failed to draw > layer named 'DGN'.;msOGRFileOpen(): OGR error. Open failed for OGR > connection in layer `DGN'. File not found or unsupported format. > 7/12/2011 4:29:20 PM| at OSGeo.MapServer.mapObj.draw() > at MapCreator.Controls.MapControl.RefreshMap() > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Jukka.Rahkonen at mmmtike.fi Tue Jul 12 05:14:50 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 12 Jul 2011 12:14:50 +0000 Subject: [mapserver-users] msShapefileOpen(): Unable to access file In-Reply-To: References: <84446DEF76453C439E9E97E438E13A63012F25@suutari.haapa.mmm.fi>, Message-ID: <84446DEF76453C439E9E97E438E13A63012F3F@suutari.haapa.mmm.fi> Hi, I have never played with DGN files with Mapserver. I would blindly follow the documents and try first with just one DGN file as in http://mapserver.org/input/vector/dgn.html and forward next to ogrtileindex as in http://mapserver.org/input/vector/ogr.html Perhaps there is something important in the syntax of TILEINDEX given in the following example. LAYER NAME "ogr_points" TYPE POINT CONNECTIONTYPE OGR TILEINDEX "PIP_ogr_tiles.shp,0" -Jukka Rahkonen- ________________________________________ L?hett?j?: Dave Chetan [csdave4u at gmail.com] L?hetetty: 12. hein?kuuta 2011 14:58 Vastaanottaja: Rahkonen Jukka Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] msShapefileOpen(): Unable to access file Hi Rahkonen, Thanks for the prompt reply..!! If I add CONNECTIONTYPE OGR in the Layer Tag, then the error is 7/12/2011 4:29:20 PM|msDrawMap(): Image handling error. Failed to draw layer named 'DGN'.;msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `DGN'. File not found or unsupported format. 7/12/2011 4:29:20 PM| at OSGeo.MapServer.mapObj.draw() at MapCreator.Controls.MapControl.RefreshMap() Regards, Dave C. On 7/12/11, Rahkonen Jukka wrote: > Hi, > > I guess that Mapserver is seaching for shapefiles as default. Read the > document http://mapserver.org/input/vector/ogr.html and have a try with > CONNECTIONTYPE=OGR. > > -Jukka Rahkonen > ________________________________________ > Dave Chetan wrote: > > > Hi, > > I am publishing DGN data using tile option. I am getting error > "msShapefileOpen(): Unable to access file". > > Following are the details of Input data, steps executed and error log. > > Please, if anyone can help in resolving the issue. > > Source files are DGN > D:\Tile\DGN\Final\1.dgn > D:\Tile\DGN\Final\3.dgn > D:\Tile\DGN\Final\5.dgn > D:\Tile\DGN\Final\7.dgn > D:\Tile\DGN\Final\9.dgn > > Step1)- > Creation of Index tile > > ogrtindex.exe d:\Tile\DGN\Final\index_dgn.shp d:\Tile\DGN\Final\*.dgn > > Ogrtindex created "index_dgn.shp" index file > > Step2)- > Map file > .... > EXTENT 699218.75297987 2251967.57943806 755021.241547886 2291053.54827586 > SHAPEPATH "D:\Tile\DGN\Final" > ..... > > > LAYER > NAME "DGN" > STATUS ON > TILEINDEX "index_dgn" > TILEITEM "location" > TYPE LINE > UNITS METERS > CLASS > NAME "DGN" > STYLE > ANGLE 360 > COLOR 240 215 209 > SYMBOL "LineDash" > WIDTH 1 > END > END > END > > > > Error > > 7/12/2011 4:21:33 PM|msDrawMap(): Image handling error. Failed to draw > layer named 'DGN'.;msTiledSHPOpenFile(): Shapefile error. Unable to > open a single tile to use as a template in layer > DGN.;msShapefileOpen(): Unable to access file. > (d:\Tile\DGN\Final\9.dgn,0);msShapefileOpen(): Unable to access file. > (d:\Tile\DGN\Final\9.dgn,0);msShapefileOpen(): Unable to access file. > (d:\Tile\DGN\Final\9.dgn,0);msShapefileOpen(): Unable to access file. > (d:\Tile\DGN\Final\7.dgn,0);msShapefileOpen(): Unable to access file. > (d:\Tile\DGN\Final\7.dgn,0);msShapefileOpen(): Unable to access file. > (d:\Tile\DGN\Final\7.dgn,0);msShapefileOpen(): Unable to access file. > (d:\Tile\DGN\Final\5.dgn,0);msShapefileOpen(): Unable to access file. > (d:\Tile\DGN\Final\5.dgn,0);msShapefileOpen(): Unable to access file. > (d:\Tile\DGN\Final\5.dgn,0);msShapefileOpen(): Unable to access file. > (d:\Tile\DGN\Final\3.dgn,0);msShapefileOpen(): Unable to access file. > (d:\Tile\DGN\Final\3.dgn,0);msShapefileOpen(): Unable to access file. > (d:\Tile\DGN\Final\3.dgn,0);msShapefileOpen(): Unable to access file. > (d:\Tile\DGN\Final\1.dgn,0);msShapefileOpen(): Unable to access file. > (d:\Tile\DGN\Final\1.dgn,0);msShapefileOpen(): Unable to access file. > (d:\Tile\DGN\Final\1.dgn,0) > 7/12/2011 4:21:33 PM| at OSGeo.MapServer.mapObj.draw() > at MapCreator.Controls.MapControl.RefreshMap() > > > > In the Layer Tag if I add following line > > CONNECTIONTYPE OGR > > the error is > > 7/12/2011 4:29:20 PM|msDrawMap(): Image handling error. Failed to draw > layer named 'DGN'.;msOGRFileOpen(): OGR error. Open failed for OGR > connection in layer `DGN'. File not found or unsupported format. > 7/12/2011 4:29:20 PM| at OSGeo.MapServer.mapObj.draw() > at MapCreator.Controls.MapControl.RefreshMap() > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From csdave4u at gmail.com Tue Jul 12 05:25:32 2011 From: csdave4u at gmail.com (Dave Chetan) Date: Tue, 12 Jul 2011 17:55:32 +0530 Subject: [mapserver-users] msShapefileOpen(): Unable to access file In-Reply-To: <84446DEF76453C439E9E97E438E13A63012F3F@suutari.haapa.mmm.fi> References: <84446DEF76453C439E9E97E438E13A63012F25@suutari.haapa.mmm.fi> <84446DEF76453C439E9E97E438E13A63012F3F@suutari.haapa.mmm.fi> Message-ID: Dear Jukka, Yes, I am able to publish single DGN. But when I go for tiled dgn, I have error. Regards, Dave C. On 7/12/11, Rahkonen Jukka wrote: > Hi, > > I have never played with DGN files with Mapserver. I would blindly follow > the documents and try first with just one DGN file as in > http://mapserver.org/input/vector/dgn.html > and forward next to ogrtileindex as in > http://mapserver.org/input/vector/ogr.html > Perhaps there is something important in the syntax of TILEINDEX given in the > following example. > > LAYER > NAME "ogr_points" > TYPE POINT > CONNECTIONTYPE OGR > TILEINDEX "PIP_ogr_tiles.shp,0" > > -Jukka Rahkonen- > ________________________________________ > L?hett?j?: Dave Chetan [csdave4u at gmail.com] > L?hetetty: 12. hein?kuuta 2011 14:58 > Vastaanottaja: Rahkonen Jukka > Kopio: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] msShapefileOpen(): Unable to access file > > Hi Rahkonen, > > Thanks for the prompt reply..!! > > If I add > CONNECTIONTYPE OGR > > in the Layer Tag, then the error is > > 7/12/2011 4:29:20 PM|msDrawMap(): Image handling error. Failed to draw > layer named 'DGN'.;msOGRFileOpen(): OGR error. Open failed for OGR > connection in layer `DGN'. File not found or unsupported format. > 7/12/2011 4:29:20 PM| at OSGeo.MapServer.mapObj.draw() > at MapCreator.Controls.MapControl.RefreshMap() > > Regards, > Dave C. > > > On 7/12/11, Rahkonen Jukka wrote: >> Hi, >> >> I guess that Mapserver is seaching for shapefiles as default. Read the >> document http://mapserver.org/input/vector/ogr.html and have a try with >> CONNECTIONTYPE=OGR. >> >> -Jukka Rahkonen >> ________________________________________ >> Dave Chetan wrote: >> >> >> Hi, >> >> I am publishing DGN data using tile option. I am getting error >> "msShapefileOpen(): Unable to access file". >> >> Following are the details of Input data, steps executed and error log. >> >> Please, if anyone can help in resolving the issue. >> >> Source files are DGN >> D:\Tile\DGN\Final\1.dgn >> D:\Tile\DGN\Final\3.dgn >> D:\Tile\DGN\Final\5.dgn >> D:\Tile\DGN\Final\7.dgn >> D:\Tile\DGN\Final\9.dgn >> >> Step1)- >> Creation of Index tile >> >> ogrtindex.exe d:\Tile\DGN\Final\index_dgn.shp d:\Tile\DGN\Final\*.dgn >> >> Ogrtindex created "index_dgn.shp" index file >> >> Step2)- >> Map file >> .... >> EXTENT 699218.75297987 2251967.57943806 755021.241547886 >> 2291053.54827586 >> SHAPEPATH "D:\Tile\DGN\Final" >> ..... >> >> >> LAYER >> NAME "DGN" >> STATUS ON >> TILEINDEX "index_dgn" >> TILEITEM "location" >> TYPE LINE >> UNITS METERS >> CLASS >> NAME "DGN" >> STYLE >> ANGLE 360 >> COLOR 240 215 209 >> SYMBOL "LineDash" >> WIDTH 1 >> END >> END >> END >> >> >> >> Error >> >> 7/12/2011 4:21:33 PM|msDrawMap(): Image handling error. Failed to draw >> layer named 'DGN'.;msTiledSHPOpenFile(): Shapefile error. Unable to >> open a single tile to use as a template in layer >> DGN.;msShapefileOpen(): Unable to access file. >> (d:\Tile\DGN\Final\9.dgn,0);msShapefileOpen(): Unable to access file. >> (d:\Tile\DGN\Final\9.dgn,0);msShapefileOpen(): Unable to access file. >> (d:\Tile\DGN\Final\9.dgn,0);msShapefileOpen(): Unable to access file. >> (d:\Tile\DGN\Final\7.dgn,0);msShapefileOpen(): Unable to access file. >> (d:\Tile\DGN\Final\7.dgn,0);msShapefileOpen(): Unable to access file. >> (d:\Tile\DGN\Final\7.dgn,0);msShapefileOpen(): Unable to access file. >> (d:\Tile\DGN\Final\5.dgn,0);msShapefileOpen(): Unable to access file. >> (d:\Tile\DGN\Final\5.dgn,0);msShapefileOpen(): Unable to access file. >> (d:\Tile\DGN\Final\5.dgn,0);msShapefileOpen(): Unable to access file. >> (d:\Tile\DGN\Final\3.dgn,0);msShapefileOpen(): Unable to access file. >> (d:\Tile\DGN\Final\3.dgn,0);msShapefileOpen(): Unable to access file. >> (d:\Tile\DGN\Final\3.dgn,0);msShapefileOpen(): Unable to access file. >> (d:\Tile\DGN\Final\1.dgn,0);msShapefileOpen(): Unable to access file. >> (d:\Tile\DGN\Final\1.dgn,0);msShapefileOpen(): Unable to access file. >> (d:\Tile\DGN\Final\1.dgn,0) >> 7/12/2011 4:21:33 PM| at OSGeo.MapServer.mapObj.draw() >> at MapCreator.Controls.MapControl.RefreshMap() >> >> >> >> In the Layer Tag if I add following line >> >> CONNECTIONTYPE OGR >> >> the error is >> >> 7/12/2011 4:29:20 PM|msDrawMap(): Image handling error. Failed to draw >> layer named 'DGN'.;msOGRFileOpen(): OGR error. Open failed for OGR >> connection in layer `DGN'. File not found or unsupported format. >> 7/12/2011 4:29:20 PM| at OSGeo.MapServer.mapObj.draw() >> at MapCreator.Controls.MapControl.RefreshMap() >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From richard.greenwood at gmail.com Tue Jul 12 05:35:24 2011 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Tue, 12 Jul 2011 06:35:24 -0600 Subject: [mapserver-users] Re: I need help with mapserver and windows 2003 In-Reply-To: <5564527.13437.1310467699988.JavaMail.nabble@jim.nabble.com> References: <5564527.13437.1310467699988.JavaMail.nabble@jim.nabble.com> Message-ID: On Tue, Jul 12, 2011 at 4:48 AM, wrote: > I have a problem. > Calling the mapserv.exe cgi I get an error message from memory. > The application failed to start properly error (0xc0150002). > > The server operating system is 2003 and service pack 2 > What other requirements necessary to run the CGI mapserver on this server Windows 2003? > > thank you very much > dmoralesnet - It's best to post your question to the MapServer Users mailing list. You can join the list here: http://www.mapserver.org/community/lists.html and I have included the list in my reply. If you can use Apache instead of IIS I recommend that based on personal preference, but if that is not an option, here are my notes on setting up mapserver on Windows 2003. I had particular difficulty where the Windows 2003 server was also a domain server, so there are steps in the notes below that you may omit. Short version: Create a Web Service Extension "mapserver" Add mapserv.exe and all .dll Create Virtual Directory Assign Application Name: "mapserver" Domain Security Policy Domain Controller Security Policy Local Policies User Rights Assignment Adjust Memory Quotas for a process Replace a process level token Reboot! http://www.derkeiler.com/Newsgroups/microsoft.public.inetserver.iis.security/2003-10/0178.html Longer version: Configuring User Rights for Nondefault Identities to Run CGI Processes (IIS 6.0) IIS 6.0 worker processes use the CreateProcessAsUser API to start CGI processes. The CreateProcessAsUser API must have the SE_ASSIGNPRIMARYTOKEN_NAME and SE_INCREASE_QUOTA_NAME user rights to succeed. The Network Service, Local Service, and LocalSystem user accounts have these user rights. If you change the identity of a worker process and want to run CGI processes, ensure that the new identity has these two user rights. To assign user rights to an account on the local computer 1. >From the Start menu, point to Administrative Tools, and then click Local Security Policy. 2. In the Local Security Settings dialog box, double-click Local Policies, and then double-click User Rights Assignment. 3. In the details pane, double-click Adjust memory quotas for a process. This is the SE_INCREASE_QUOTA_NAME user right. 4. Click Add User or Group, and, in the Enter the object names to select box, type the user or group name to which you want to assign the user right, and then click OK. 5. Click OK again, and then, in the details pane, double-click Replace a process level token. This is the SE_ASSIGNPRIMARYTOKEN_NAME user right. 6. Click Add User or Group, and, in the Enter the object names to select box, type the user or group name to which you want to assign the user right, and then click OK. http://www.beamartyr.net/articles/iisperl.html http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/bc0c4729-e892-4871-b8f3-fcbf489f2f09.mspx?mfr=true -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From amrzakaria73 at hotmail.com Tue Jul 12 06:23:16 2011 From: amrzakaria73 at hotmail.com (Amr Zakaria) Date: Tue, 12 Jul 2011 13:23:16 +0000 Subject: [mapserver-users] how to create from xyz file poloygon and display as layer In-Reply-To: <20110712230656.A6600E020CC@lists.osgeo.org> References: <20110712230656.A6600E020CC@lists.osgeo.org> Message-ID: i have xyz file contain lat , lon and height and i want to draw a layer in mapserver Best VB programmer , Azz. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Tue Jul 12 06:40:59 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 12 Jul 2011 10:40:59 -0300 Subject: [mapserver-users] MapWindow and MapServer output Message-ID: <4E1C4EEB.2000309@gatewaygeomatics.com> Hello all, I would like to hear feedback from the MapServer community on the status of the MapWindow project and its support for exporting to MapServer .map files. (aside: I am a long-time QGIS user and lover, but a potential project could involve MapWindow indirectly) I see that a "MapServer Project Generator" plugin does exist (http://www.mapwindow.org/downloads/index.php?show_details=27), created in the year 2007; but I am wondering if it is still actively maintained (such as: is MapServer 6.0 supported?) If anyone has any experience or advice before I travel down this path please share your thoughts :) Thanks! -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From bfraser at geoanalytic.com Tue Jul 12 06:59:05 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 12 Jul 2011 07:59:05 -0600 Subject: [mapserver-users] msShapefileOpen(): Unable to access file In-Reply-To: References: <84446DEF76453C439E9E97E438E13A63012F25@suutari.haapa.mmm.fi> <84446DEF76453C439E9E97E438E13A63012F3F@suutari.haapa.mmm.fi> Message-ID: <4E1C5329.3000201@geoanalytic.com> Dave, I've had good success rendering DGN files referenced in a TILEINDEX (http://lists.osgeo.org/pipermail/mapserver-users/2010-December/067444.html). Try adding ".shp" to the end of your TILEINDEX: TILEINDEX "index_dg.shp" as OGR handles the files differently than Mapserver's native shapefile mechanism. Best Regards, Brent Fraser On 7/12/2011 6:25 AM, Dave Chetan wrote: > Dear Jukka, > > Yes, I am able to publish single DGN. > But when I go for tiled dgn, I have error. > > Regards, > Dave C. > > On 7/12/11, Rahkonen Jukka wrote: >> Hi, >> >> I have never played with DGN files with Mapserver. I would blindly follow >> the documents and try first with just one DGN file as in >> http://mapserver.org/input/vector/dgn.html >> and forward next to ogrtileindex as in >> http://mapserver.org/input/vector/ogr.html >> Perhaps there is something important in the syntax of TILEINDEX given in the >> following example. >> >> LAYER >> NAME "ogr_points" >> TYPE POINT >> CONNECTIONTYPE OGR >> TILEINDEX "PIP_ogr_tiles.shp,0" >> >> -Jukka Rahkonen- >> ________________________________________ >> L?hett?j?: Dave Chetan [csdave4u at gmail.com] >> L?hetetty: 12. hein?kuuta 2011 14:58 >> Vastaanottaja: Rahkonen Jukka >> Kopio: mapserver-users at lists.osgeo.org >> Aihe: Re: [mapserver-users] msShapefileOpen(): Unable to access file >> >> Hi Rahkonen, >> >> Thanks for the prompt reply..!! >> >> If I add >> CONNECTIONTYPE OGR >> >> in the Layer Tag, then the error is >> >> 7/12/2011 4:29:20 PM|msDrawMap(): Image handling error. Failed to draw >> layer named 'DGN'.;msOGRFileOpen(): OGR error. Open failed for OGR >> connection in layer `DGN'. File not found or unsupported format. >> 7/12/2011 4:29:20 PM| at OSGeo.MapServer.mapObj.draw() >> at MapCreator.Controls.MapControl.RefreshMap() >> >> Regards, >> Dave C. >> >> >> On 7/12/11, Rahkonen Jukka wrote: >>> Hi, >>> >>> I guess that Mapserver is seaching for shapefiles as default. Read the >>> document http://mapserver.org/input/vector/ogr.html and have a try with >>> CONNECTIONTYPE=OGR. >>> >>> -Jukka Rahkonen >>> ________________________________________ >>> Dave Chetan wrote: >>> >>> >>> Hi, >>> >>> I am publishing DGN data using tile option. I am getting error >>> "msShapefileOpen(): Unable to access file". >>> >>> Following are the details of Input data, steps executed and error log. >>> >>> Please, if anyone can help in resolving the issue. >>> >>> Source files are DGN >>> D:\Tile\DGN\Final\1.dgn >>> D:\Tile\DGN\Final\3.dgn >>> D:\Tile\DGN\Final\5.dgn >>> D:\Tile\DGN\Final\7.dgn >>> D:\Tile\DGN\Final\9.dgn >>> >>> Step1)- >>> Creation of Index tile >>> >>> ogrtindex.exe d:\Tile\DGN\Final\index_dgn.shp d:\Tile\DGN\Final\*.dgn >>> >>> Ogrtindex created "index_dgn.shp" index file >>> >>> Step2)- >>> Map file >>> .... >>> EXTENT 699218.75297987 2251967.57943806 755021.241547886 >>> 2291053.54827586 >>> SHAPEPATH "D:\Tile\DGN\Final" >>> ..... >>> >>> >>> LAYER >>> NAME "DGN" >>> STATUS ON >>> TILEINDEX "index_dgn" >>> TILEITEM "location" >>> TYPE LINE >>> UNITS METERS >>> CLASS >>> NAME "DGN" >>> STYLE >>> ANGLE 360 >>> COLOR 240 215 209 >>> SYMBOL "LineDash" >>> WIDTH 1 >>> END >>> END >>> END >>> >>> >>> >>> Error >>> >>> 7/12/2011 4:21:33 PM|msDrawMap(): Image handling error. Failed to draw >>> layer named 'DGN'.;msTiledSHPOpenFile(): Shapefile error. Unable to >>> open a single tile to use as a template in layer >>> DGN.;msShapefileOpen(): Unable to access file. >>> (d:\Tile\DGN\Final\9.dgn,0);msShapefileOpen(): Unable to access file. >>> (d:\Tile\DGN\Final\9.dgn,0);msShapefileOpen(): Unable to access file. >>> (d:\Tile\DGN\Final\9.dgn,0);msShapefileOpen(): Unable to access file. >>> (d:\Tile\DGN\Final\7.dgn,0);msShapefileOpen(): Unable to access file. >>> (d:\Tile\DGN\Final\7.dgn,0);msShapefileOpen(): Unable to access file. >>> (d:\Tile\DGN\Final\7.dgn,0);msShapefileOpen(): Unable to access file. >>> (d:\Tile\DGN\Final\5.dgn,0);msShapefileOpen(): Unable to access file. >>> (d:\Tile\DGN\Final\5.dgn,0);msShapefileOpen(): Unable to access file. >>> (d:\Tile\DGN\Final\5.dgn,0);msShapefileOpen(): Unable to access file. >>> (d:\Tile\DGN\Final\3.dgn,0);msShapefileOpen(): Unable to access file. >>> (d:\Tile\DGN\Final\3.dgn,0);msShapefileOpen(): Unable to access file. >>> (d:\Tile\DGN\Final\3.dgn,0);msShapefileOpen(): Unable to access file. >>> (d:\Tile\DGN\Final\1.dgn,0);msShapefileOpen(): Unable to access file. >>> (d:\Tile\DGN\Final\1.dgn,0);msShapefileOpen(): Unable to access file. >>> (d:\Tile\DGN\Final\1.dgn,0) >>> 7/12/2011 4:21:33 PM| at OSGeo.MapServer.mapObj.draw() >>> at MapCreator.Controls.MapControl.RefreshMap() >>> >>> >>> >>> In the Layer Tag if I add following line >>> >>> CONNECTIONTYPE OGR >>> >>> the error is >>> >>> 7/12/2011 4:29:20 PM|msDrawMap(): Image handling error. Failed to draw >>> layer named 'DGN'.;msOGRFileOpen(): OGR error. Open failed for OGR >>> connection in layer `DGN'. File not found or unsupported format. >>> 7/12/2011 4:29:20 PM| at OSGeo.MapServer.mapObj.draw() >>> at MapCreator.Controls.MapControl.RefreshMap() >>> _______________________________________________ >>> 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 boolean10001 at yahoo.com Tue Jul 12 08:40:15 2011 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Tue, 12 Jul 2011 08:40:15 -0700 (PDT) Subject: [mapserver-users] how to create from xyz file poloygon and display as layer In-Reply-To: References: <20110712230656.A6600E020CC@lists.osgeo.org> Message-ID: <1310485215.23032.YahooMailNeo@web38208.mail.mud.yahoo.com> Zakaria, You can do it with a Virtual Data Source. Take a look at http://www.mapserver.org/input/vector/VirtualSpatialData.html Cheers from M?xico IC Carlos Ruiz ________________________________ From: Amr Zakaria To: mapserver Sent: Tuesday, July 12, 2011 8:23 AM Subject: [mapserver-users] how to create from xyz file poloygon and display as layer i have xyz file contain lat , lon and height and i want to draw a layer in mapserver Best VB programmer , Azz. _______________________________________________ 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 greenkov at gmail.com Tue Jul 12 09:36:36 2011 From: greenkov at gmail.com (Alexander Petkov) Date: Tue, 12 Jul 2011 10:36:36 -0600 Subject: [mapserver-users] Unable to load php_mascript.so Message-ID: After upgrading to Mapserver 6.0.0, I am unable to load the new php_mapscript.so extension either from php.ini or my php file where I use mapscript. The attempt produces the following error output: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/php_mapscript.so' - /usr/lib/php/modules/php_mapscript.so: undefined symbol: zval_set_isref_p in Unknown on line 0 Removing the zval_set_isref_p references in php_mapscript_util.c and php_mapscript_util.h helps with loading the extension, but then GetMap requests end up with missing tiles in OpenLayers. The environment is CentOS 4 with PHP Version 5.2.0, and Apache 2.0 Any ideas? Thanks in advance, Alex From ChiefDan at gmail.com Tue Jul 12 12:01:21 2011 From: ChiefDan at gmail.com (ChiefDan) Date: Tue, 12 Jul 2011 12:01:21 -0700 (PDT) Subject: [mapserver-users] Run Time Substitution and Mapscript questions Message-ID: <1310497281506-6576363.post@n2.nabble.com> I am attempting to use python mapscript to generate some maps, however I am running up against some problems. My mapfile layer has a CONNECTION of ""http://127.0.0.1/cgi-bin/wms/rs/seacoos_rs_test?TIME_OFFSET_HOURS=%time_offset_hours%" My mapscript test script has an OWSRequest that has a setParameter("TIME_OFFSET_HOURS", "2") When checking the web logs, I see the request come in, however the substitution is not being made, I see "/cgi-bin/wms/rs/seacoos_rs_test?TIME_OFFSET_HOURS=%time_offset_hours%" Are these types of substitutions still possible? Thanks, Dan -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Run-Time-Substitution-and-Mapscript-questions-tp6576363p6576363.html Sent from the Mapserver - User mailing list archive at Nabble.com. From brfr at metrico.lu Wed Jul 13 02:07:15 2011 From: brfr at metrico.lu (Frank Broniewski) Date: Wed, 13 Jul 2011 11:07:15 +0200 Subject: [mapserver-users] mapscript: read GeoJSON Message-ID: <4E1D6043.6070202@metrico.lu> Hi, what would be the best way to read a geojson feature/featurecollection with mapscript? My goal is to query a map by a feature which comes as geojson. Of course it's not too hard to parse the geojson into a mapserver geometry object (pointObj, lineObj, ...). But if there's already a best practice (with the aid of other libraries, like ogr, shapely maybe?), I'd be happy to apply this one. Many thanks Frank -- Frank BRONIEWSKI METRICO s.? r.l. g?om?tres technologies d'information g?ographique rue des Romains 36 L-5433 NIEDERDONVEN t?l.: +352 26 74 94 - 28 fax.: +352 26 74 94 99 http://www.metrico.lu From csdave4u at gmail.com Wed Jul 13 04:08:01 2011 From: csdave4u at gmail.com (Dave Chetan) Date: Wed, 13 Jul 2011 16:38:01 +0530 Subject: [mapserver-users] msShapefileOpen(): Unable to access file In-Reply-To: <4E1C5329.3000201@geoanalytic.com> References: <84446DEF76453C439E9E97E438E13A63012F25@suutari.haapa.mmm.fi> <84446DEF76453C439E9E97E438E13A63012F3F@suutari.haapa.mmm.fi> <4E1C5329.3000201@geoanalytic.com> Message-ID: Hi Brent, After changes my Layer tag is LAYER NAME "DGN" CONNECTIONTYPE OGR STATUS ON TILEINDEX "index_dgn.shp" TILEITEM "location" TYPE LINE UNITS METERS CLASS NAME "DGN" STYLE ANGLE 360 COLOR 240 215 209 SYMBOL "LineDash" WIDTH 1 END END END and the error message is INPUT=SHAPEFILE Exception executing MapControl::RefreshMap 7/13/2011 4:30:13 PM|msConnPoolRegister(): General error message. Missing CONNECTION on layer DGN.;msConnPoolRegister(): General error message. Missing CONNECTION on layer DGN.;msConnPoolRegister(): General error message. Missing CONNECTION on layer DGN.;msConnPoolRegister(): General error message. Missing CONNECTION on layer DGN.;msConnPoolRegister(): General error message. Missing CONNECTION on layer DGN.;msConnPoolRegister(): General error message. Missing CONNECTION on layer DGN. 7/13/2011 4:30:13 PM| at OSGeo.MapServer.mapObj.draw() at MapCreator.Controls.MapControl.RefreshMap() Regards, Dave C. On 7/12/11, Brent Fraser wrote: > Dave, > > I've had good success rendering DGN files referenced in a TILEINDEX > (http://lists.osgeo.org/pipermail/mapserver-users/2010-December/067444.html). > Try adding ".shp" to the end of your TILEINDEX: > > TILEINDEX "index_dg.shp" > > as OGR handles the files differently than Mapserver's native shapefile > mechanism. > > Best Regards, > Brent Fraser > > > On 7/12/2011 6:25 AM, Dave Chetan wrote: >> Dear Jukka, >> >> Yes, I am able to publish single DGN. >> But when I go for tiled dgn, I have error. >> >> Regards, >> Dave C. >> >> On 7/12/11, Rahkonen Jukka wrote: >>> Hi, >>> >>> I have never played with DGN files with Mapserver. I would blindly follow >>> the documents and try first with just one DGN file as in >>> http://mapserver.org/input/vector/dgn.html >>> and forward next to ogrtileindex as in >>> http://mapserver.org/input/vector/ogr.html >>> Perhaps there is something important in the syntax of TILEINDEX given in >>> the >>> following example. >>> >>> LAYER >>> NAME "ogr_points" >>> TYPE POINT >>> CONNECTIONTYPE OGR >>> TILEINDEX "PIP_ogr_tiles.shp,0" >>> >>> -Jukka Rahkonen- >>> ________________________________________ >>> L?hett?j?: Dave Chetan [csdave4u at gmail.com] >>> L?hetetty: 12. hein?kuuta 2011 14:58 >>> Vastaanottaja: Rahkonen Jukka >>> Kopio: mapserver-users at lists.osgeo.org >>> Aihe: Re: [mapserver-users] msShapefileOpen(): Unable to access file >>> >>> Hi Rahkonen, >>> >>> Thanks for the prompt reply..!! >>> >>> If I add >>> CONNECTIONTYPE OGR >>> >>> in the Layer Tag, then the error is >>> >>> 7/12/2011 4:29:20 PM|msDrawMap(): Image handling error. Failed to draw >>> layer named 'DGN'.;msOGRFileOpen(): OGR error. Open failed for OGR >>> connection in layer `DGN'. File not found or unsupported format. >>> 7/12/2011 4:29:20 PM| at OSGeo.MapServer.mapObj.draw() >>> at MapCreator.Controls.MapControl.RefreshMap() >>> >>> Regards, >>> Dave C. >>> >>> >>> On 7/12/11, Rahkonen Jukka wrote: >>>> Hi, >>>> >>>> I guess that Mapserver is seaching for shapefiles as default. Read the >>>> document http://mapserver.org/input/vector/ogr.html and have a try with >>>> CONNECTIONTYPE=OGR. >>>> >>>> -Jukka Rahkonen >>>> ________________________________________ >>>> Dave Chetan wrote: >>>> >>>> >>>> Hi, >>>> >>>> I am publishing DGN data using tile option. I am getting error >>>> "msShapefileOpen(): Unable to access file". >>>> >>>> Following are the details of Input data, steps executed and error log. >>>> >>>> Please, if anyone can help in resolving the issue. >>>> >>>> Source files are DGN >>>> D:\Tile\DGN\Final\1.dgn >>>> D:\Tile\DGN\Final\3.dgn >>>> D:\Tile\DGN\Final\5.dgn >>>> D:\Tile\DGN\Final\7.dgn >>>> D:\Tile\DGN\Final\9.dgn >>>> >>>> Step1)- >>>> Creation of Index tile >>>> >>>> ogrtindex.exe d:\Tile\DGN\Final\index_dgn.shp d:\Tile\DGN\Final\*.dgn >>>> >>>> Ogrtindex created "index_dgn.shp" index file >>>> >>>> Step2)- >>>> Map file >>>> .... >>>> EXTENT 699218.75297987 2251967.57943806 755021.241547886 >>>> 2291053.54827586 >>>> SHAPEPATH "D:\Tile\DGN\Final" >>>> ..... >>>> >>>> >>>> LAYER >>>> NAME "DGN" >>>> STATUS ON >>>> TILEINDEX "index_dgn" >>>> TILEITEM "location" >>>> TYPE LINE >>>> UNITS METERS >>>> CLASS >>>> NAME "DGN" >>>> STYLE >>>> ANGLE 360 >>>> COLOR 240 215 209 >>>> SYMBOL "LineDash" >>>> WIDTH 1 >>>> END >>>> END >>>> END >>>> >>>> >>>> >>>> Error >>>> >>>> 7/12/2011 4:21:33 PM|msDrawMap(): Image handling error. Failed to draw >>>> layer named 'DGN'.;msTiledSHPOpenFile(): Shapefile error. Unable to >>>> open a single tile to use as a template in layer >>>> DGN.;msShapefileOpen(): Unable to access file. >>>> (d:\Tile\DGN\Final\9.dgn,0);msShapefileOpen(): Unable to access file. >>>> (d:\Tile\DGN\Final\9.dgn,0);msShapefileOpen(): Unable to access file. >>>> (d:\Tile\DGN\Final\9.dgn,0);msShapefileOpen(): Unable to access file. >>>> (d:\Tile\DGN\Final\7.dgn,0);msShapefileOpen(): Unable to access file. >>>> (d:\Tile\DGN\Final\7.dgn,0);msShapefileOpen(): Unable to access file. >>>> (d:\Tile\DGN\Final\7.dgn,0);msShapefileOpen(): Unable to access file. >>>> (d:\Tile\DGN\Final\5.dgn,0);msShapefileOpen(): Unable to access file. >>>> (d:\Tile\DGN\Final\5.dgn,0);msShapefileOpen(): Unable to access file. >>>> (d:\Tile\DGN\Final\5.dgn,0);msShapefileOpen(): Unable to access file. >>>> (d:\Tile\DGN\Final\3.dgn,0);msShapefileOpen(): Unable to access file. >>>> (d:\Tile\DGN\Final\3.dgn,0);msShapefileOpen(): Unable to access file. >>>> (d:\Tile\DGN\Final\3.dgn,0);msShapefileOpen(): Unable to access file. >>>> (d:\Tile\DGN\Final\1.dgn,0);msShapefileOpen(): Unable to access file. >>>> (d:\Tile\DGN\Final\1.dgn,0);msShapefileOpen(): Unable to access file. >>>> (d:\Tile\DGN\Final\1.dgn,0) >>>> 7/12/2011 4:21:33 PM| at OSGeo.MapServer.mapObj.draw() >>>> at MapCreator.Controls.MapControl.RefreshMap() >>>> >>>> >>>> >>>> In the Layer Tag if I add following line >>>> >>>> CONNECTIONTYPE OGR >>>> >>>> the error is >>>> >>>> 7/12/2011 4:29:20 PM|msDrawMap(): Image handling error. Failed to draw >>>> layer named 'DGN'.;msOGRFileOpen(): OGR error. Open failed for OGR >>>> connection in layer `DGN'. File not found or unsupported format. >>>> 7/12/2011 4:29:20 PM| at OSGeo.MapServer.mapObj.draw() >>>> at MapCreator.Controls.MapControl.RefreshMap() >>>> _______________________________________________ >>>> 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 geographika at gmail.com Wed Jul 13 04:18:03 2011 From: geographika at gmail.com (geographika) Date: Wed, 13 Jul 2011 13:18:03 +0200 Subject: [mapserver-users] WFS with OpenLayers In-Reply-To: <2097924851.5110549.1310374442011.JavaMail.fmail@mwmweb012> References: <2097924851.5110549.1310374442011.JavaMail.fmail@mwmweb012> Message-ID: <4E1D7EEB.50909@gmail.com> Hi, I spent awhile configuring MapServer and OpenLayers - the notes here may help. http://geographika.co.uk/mapserver-openlayers-and-the-wfs-maze -- web:http://geographika.co.uk twitter: @geographika On 11/07/2011 10:54, parsecaway at web.de wrote: > Hello MapServer users, > > are there any good tutorials how to set up MapServer 6.0 for WFS? It doesn't work for me with OpenLayers. > > Thanks for any hint... > Regards, > > Alex > ___________________________________________________________ > Schon geh?rt? WEB.DE hat einen genialen Phishing-Filter in die > Toolbar eingebaut! http://produkte.web.de/go/toolbar > _______________________________________________ > 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 jcigar at ulb.ac.be Wed Jul 13 05:29:24 2011 From: jcigar at ulb.ac.be (Julien Cigar) Date: Wed, 13 Jul 2011 14:29:24 +0200 Subject: [mapserver-users] substitution in a PostGIS layer .. ? Message-ID: <4E1D8FA4.4030701@ulb.ac.be> Hello, I have the following mapfile: http://www.pastie.org/2206896 with the following SLD: http://www.pastie.org/2206902 (generated dynamically) I wondered how can I change the WHERE sp.id=%SPID% in the subselect (following a CGI parameter)? I read http://mapserver.org/cgi/runsub.html, and tried with %SPID% (by passwing &SPID=3 in my URL) but it doesn't seems to work ... any idea? Thanks, Julien -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. -------------- next part -------------- A non-text attachment was scrubbed... Name: jcigar.vcf Type: text/x-vcard Size: 292 bytes Desc: not available URL: From jcigar at ulb.ac.be Wed Jul 13 05:41:48 2011 From: jcigar at ulb.ac.be (Julien Cigar) Date: Wed, 13 Jul 2011 14:41:48 +0200 Subject: [mapserver-users] substitution in a PostGIS layer .. ? In-Reply-To: <4E1D8FA4.4030701@ulb.ac.be> References: <4E1D8FA4.4030701@ulb.ac.be> Message-ID: <4E1D928C.6000209@ulb.ac.be> OK.. I missed the "(must validate against DATAPATTERN)" part. I added "SPID_validation_pattern" "^[0-9]+$" in my METADATA and it works ! However, it looks a little "hackish" to me .. I wondered if Mapserver uses PQescapeStringConn() in background? In other words: is _validation_pattern the only way to protect against SQL injection? What it I allow a pattern that may take part in a SQL injection (like ', #, ..) ? Thanks, Julien On 07/13/2011 14:29, Julien Cigar wrote: > Hello, > > I have the following mapfile: http://www.pastie.org/2206896 with the > following SLD: http://www.pastie.org/2206902 (generated dynamically) > > I wondered how can I change the WHERE sp.id=%SPID% in the subselect > (following a CGI parameter)? > > I read http://mapserver.org/cgi/runsub.html, and tried with %SPID% (by > passwing &SPID=3 in my URL) but it doesn't seems to work ... any idea? > > Thanks, > Julien > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. -------------- next part -------------- A non-text attachment was scrubbed... Name: jcigar.vcf Type: text/x-vcard Size: 292 bytes Desc: not available URL: From dmorissette at mapgears.com Wed Jul 13 06:07:00 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 13 Jul 2011 09:07:00 -0400 Subject: [mapserver-users] substitution in a PostGIS layer .. ? In-Reply-To: <4E1D928C.6000209@ulb.ac.be> References: <4E1D8FA4.4030701@ulb.ac.be> <4E1D928C.6000209@ulb.ac.be> Message-ID: <4E1D9874.4020709@mapgears.com> On 11-07-13 08:41 AM, Julien Cigar wrote: > OK.. I missed the "(must validate against DATAPATTERN)" part. > > I added "SPID_validation_pattern" "^[0-9]+$" in my METADATA and it works ! > > However, it looks a little "hackish" to me .. I wondered if Mapserver > uses PQescapeStringConn() in background? In other words: is > _validation_pattern the only way to protect against SQL injection? What > it I allow a pattern that may take part in a SQL injection (like ', #, > ..) ? > The %variable% replacement stuff does not attempt to do any kind of escaping at the moment, so yes you are on your own with your validation pattern. -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From jcigar at ulb.ac.be Wed Jul 13 06:08:58 2011 From: jcigar at ulb.ac.be (Julien Cigar) Date: Wed, 13 Jul 2011 15:08:58 +0200 Subject: [mapserver-users] substitution in a PostGIS layer .. ? In-Reply-To: <4E1D9874.4020709@mapgears.com> References: <4E1D8FA4.4030701@ulb.ac.be> <4E1D928C.6000209@ulb.ac.be> <4E1D9874.4020709@mapgears.com> Message-ID: <4E1D98EA.40205@ulb.ac.be> On 07/13/2011 15:07, Daniel Morissette wrote: > On 11-07-13 08:41 AM, Julien Cigar wrote: >> OK.. I missed the "(must validate against DATAPATTERN)" part. >> >> I added "SPID_validation_pattern" "^[0-9]+$" in my METADATA and it >> works ! >> >> However, it looks a little "hackish" to me .. I wondered if Mapserver >> uses PQescapeStringConn() in background? In other words: is >> _validation_pattern the only way to protect against SQL injection? What >> it I allow a pattern that may take part in a SQL injection (like ', #, >> ..) ? >> > > The %variable% replacement stuff does not attempt to do any kind of > escaping at the moment, so yes you are on your own with your validation > pattern. > This may be a stupid question but: is there a reason why PQescapeStringConn() is not used to do the substitution? Thanks, Julien -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. -------------- next part -------------- A non-text attachment was scrubbed... Name: jcigar.vcf Type: text/x-vcard Size: 292 bytes Desc: not available URL: From Jukka.Rahkonen at mmmtike.fi Wed Jul 13 06:38:25 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 13 Jul 2011 13:38:25 +0000 Subject: [mapserver-users] substitution in a PostGIS layer .. ? In-Reply-To: <4E1D98EA.40205@ulb.ac.be> References: <4E1D8FA4.4030701@ulb.ac.be> <4E1D928C.6000209@ulb.ac.be> <4E1D9874.4020709@mapgears.com>,<4E1D98EA.40205@ulb.ac.be> Message-ID: <84446DEF76453C439E9E97E438E13A630139B3@suutari.haapa.mmm.fi> Julien Cigar wrote: > This may be a stupid question but: is there a reason why > PQescapeStringConn() is not used to do the substitution? Perhaps because Mapserver does not support just PostgreSQL but also Oracle, SQL Server, MySQL, Informix, CouchDB etc. Therefore it is good to have some general purpose validation system. Of cause more sophisticated systems for each datastore would not harm. -Jukka Rahkonen- > Thanks, > Julien From bfraser at geoanalytic.com Wed Jul 13 06:55:51 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 13 Jul 2011 07:55:51 -0600 Subject: [mapserver-users] msShapefileOpen(): Unable to access file In-Reply-To: References: <84446DEF76453C439E9E97E438E13A63012F25@suutari.haapa.mmm.fi> <84446DEF76453C439E9E97E438E13A63012F3F@suutari.haapa.mmm.fi> <4E1C5329.3000201@geoanalytic.com> Message-ID: <4E1DA3E7.4010209@geoanalytic.com> Dave, Strange, it should work. I'm using mapserver v5.6.3, with a layer def of: LAYER # LINE NAME 'LINE' CONNECTIONTYPE OGR STATUS on TILEINDEX "G:\GeoData\1_250k\Alberta\AltaLIS\250k_west.shp" TYPE LINE PROJECTION 'proj=tmerc' 'ellps=GRS80' 'lat_0=0.0' 'lon_0=-117.0' 'x_0=500000.0' 'y_0=-5000000' 'k=0.9996' 'units=m' 'nadgrids=@null' 'no_defs' END INCLUDE "AltaLIS_250k_render_inc.map" END and the content of the "location" attribute reported by ogrinfo is : LOCATION (String) = G:\GeoData\1_250k\Alberta\AltaLIS\82gpos.dgn Try adding a PROJECTION object to your LAYER def. And try using a full path in the TILEINDEX. Best Regards, Brent Fraser On 7/13/2011 5:08 AM, Dave Chetan wrote: > Hi Brent, > > After changes my Layer tag is > > LAYER > NAME "DGN" > CONNECTIONTYPE OGR > STATUS ON > TILEINDEX "index_dgn.shp" > TILEITEM "location" > TYPE LINE > UNITS METERS > CLASS > NAME "DGN" > STYLE > ANGLE 360 > COLOR 240 215 209 > SYMBOL "LineDash" > WIDTH 1 > END > END > END > > and the error message is > > INPUT=SHAPEFILE > Exception executing MapControl::RefreshMap > 7/13/2011 4:30:13 PM|msConnPoolRegister(): General error message. > Missing CONNECTION on layer DGN.;msConnPoolRegister(): General error > message. Missing CONNECTION on layer DGN.;msConnPoolRegister(): > General error message. Missing CONNECTION on layer > DGN.;msConnPoolRegister(): General error message. Missing CONNECTION > on layer DGN.;msConnPoolRegister(): General error message. Missing > CONNECTION on layer DGN.;msConnPoolRegister(): General error message. > Missing CONNECTION on layer DGN. > 7/13/2011 4:30:13 PM| at OSGeo.MapServer.mapObj.draw() > at MapCreator.Controls.MapControl.RefreshMap() > > Regards, > Dave C. > > On 7/12/11, Brent Fraser wrote: >> Dave, >> >> I've had good success rendering DGN files referenced in a TILEINDEX >> (http://lists.osgeo.org/pipermail/mapserver-users/2010-December/067444.html). >> Try adding ".shp" to the end of your TILEINDEX: >> >> TILEINDEX "index_dg.shp" >> >> as OGR handles the files differently than Mapserver's native shapefile >> mechanism. >> >> Best Regards, >> Brent Fraser >> >> >> On 7/12/2011 6:25 AM, Dave Chetan wrote: >>> Dear Jukka, >>> >>> Yes, I am able to publish single DGN. >>> But when I go for tiled dgn, I have error. >>> >>> Regards, >>> Dave C. >>> >>> On 7/12/11, Rahkonen Jukka wrote: >>>> Hi, >>>> >>>> I have never played with DGN files with Mapserver. I would blindly follow >>>> the documents and try first with just one DGN file as in >>>> http://mapserver.org/input/vector/dgn.html >>>> and forward next to ogrtileindex as in >>>> http://mapserver.org/input/vector/ogr.html >>>> Perhaps there is something important in the syntax of TILEINDEX given in >>>> the >>>> following example. >>>> >>>> LAYER >>>> NAME "ogr_points" >>>> TYPE POINT >>>> CONNECTIONTYPE OGR >>>> TILEINDEX "PIP_ogr_tiles.shp,0" >>>> >>>> -Jukka Rahkonen- >>>> ________________________________________ >>>> L?hett?j?: Dave Chetan [csdave4u at gmail.com] >>>> L?hetetty: 12. hein?kuuta 2011 14:58 >>>> Vastaanottaja: Rahkonen Jukka >>>> Kopio: mapserver-users at lists.osgeo.org >>>> Aihe: Re: [mapserver-users] msShapefileOpen(): Unable to access file >>>> >>>> Hi Rahkonen, >>>> >>>> Thanks for the prompt reply..!! >>>> >>>> If I add >>>> CONNECTIONTYPE OGR >>>> >>>> in the Layer Tag, then the error is >>>> >>>> 7/12/2011 4:29:20 PM|msDrawMap(): Image handling error. Failed to draw >>>> layer named 'DGN'.;msOGRFileOpen(): OGR error. Open failed for OGR >>>> connection in layer `DGN'. File not found or unsupported format. >>>> 7/12/2011 4:29:20 PM| at OSGeo.MapServer.mapObj.draw() >>>> at MapCreator.Controls.MapControl.RefreshMap() >>>> >>>> Regards, >>>> Dave C. >>>> >>>> >>>> On 7/12/11, Rahkonen Jukka wrote: >>>>> Hi, >>>>> >>>>> I guess that Mapserver is seaching for shapefiles as default. Read the >>>>> document http://mapserver.org/input/vector/ogr.html and have a try with >>>>> CONNECTIONTYPE=OGR. >>>>> >>>>> -Jukka Rahkonen >>>>> ________________________________________ >>>>> Dave Chetan wrote: >>>>> >>>>> >>>>> Hi, >>>>> >>>>> I am publishing DGN data using tile option. I am getting error >>>>> "msShapefileOpen(): Unable to access file". >>>>> >>>>> Following are the details of Input data, steps executed and error log. >>>>> >>>>> Please, if anyone can help in resolving the issue. >>>>> >>>>> Source files are DGN >>>>> D:\Tile\DGN\Final\1.dgn >>>>> D:\Tile\DGN\Final\3.dgn >>>>> D:\Tile\DGN\Final\5.dgn >>>>> D:\Tile\DGN\Final\7.dgn >>>>> D:\Tile\DGN\Final\9.dgn >>>>> >>>>> Step1)- >>>>> Creation of Index tile >>>>> >>>>> ogrtindex.exe d:\Tile\DGN\Final\index_dgn.shp d:\Tile\DGN\Final\*.dgn >>>>> >>>>> Ogrtindex created "index_dgn.shp" index file >>>>> >>>>> Step2)- >>>>> Map file >>>>> .... >>>>> EXTENT 699218.75297987 2251967.57943806 755021.241547886 >>>>> 2291053.54827586 >>>>> SHAPEPATH "D:\Tile\DGN\Final" >>>>> ..... >>>>> >>>>> >>>>> LAYER >>>>> NAME "DGN" >>>>> STATUS ON >>>>> TILEINDEX "index_dgn" >>>>> TILEITEM "location" >>>>> TYPE LINE >>>>> UNITS METERS >>>>> CLASS >>>>> NAME "DGN" >>>>> STYLE >>>>> ANGLE 360 >>>>> COLOR 240 215 209 >>>>> SYMBOL "LineDash" >>>>> WIDTH 1 >>>>> END >>>>> END >>>>> END >>>>> >>>>> >>>>> >>>>> Error >>>>> >>>>> 7/12/2011 4:21:33 PM|msDrawMap(): Image handling error. Failed to draw >>>>> layer named 'DGN'.;msTiledSHPOpenFile(): Shapefile error. Unable to >>>>> open a single tile to use as a template in layer >>>>> DGN.;msShapefileOpen(): Unable to access file. >>>>> (d:\Tile\DGN\Final\9.dgn,0);msShapefileOpen(): Unable to access file. >>>>> (d:\Tile\DGN\Final\9.dgn,0);msShapefileOpen(): Unable to access file. >>>>> (d:\Tile\DGN\Final\9.dgn,0);msShapefileOpen(): Unable to access file. >>>>> (d:\Tile\DGN\Final\7.dgn,0);msShapefileOpen(): Unable to access file. >>>>> (d:\Tile\DGN\Final\7.dgn,0);msShapefileOpen(): Unable to access file. >>>>> (d:\Tile\DGN\Final\7.dgn,0);msShapefileOpen(): Unable to access file. >>>>> (d:\Tile\DGN\Final\5.dgn,0);msShapefileOpen(): Unable to access file. >>>>> (d:\Tile\DGN\Final\5.dgn,0);msShapefileOpen(): Unable to access file. >>>>> (d:\Tile\DGN\Final\5.dgn,0);msShapefileOpen(): Unable to access file. >>>>> (d:\Tile\DGN\Final\3.dgn,0);msShapefileOpen(): Unable to access file. >>>>> (d:\Tile\DGN\Final\3.dgn,0);msShapefileOpen(): Unable to access file. >>>>> (d:\Tile\DGN\Final\3.dgn,0);msShapefileOpen(): Unable to access file. >>>>> (d:\Tile\DGN\Final\1.dgn,0);msShapefileOpen(): Unable to access file. >>>>> (d:\Tile\DGN\Final\1.dgn,0);msShapefileOpen(): Unable to access file. >>>>> (d:\Tile\DGN\Final\1.dgn,0) >>>>> 7/12/2011 4:21:33 PM| at OSGeo.MapServer.mapObj.draw() >>>>> at MapCreator.Controls.MapControl.RefreshMap() >>>>> >>>>> >>>>> >>>>> In the Layer Tag if I add following line >>>>> >>>>> CONNECTIONTYPE OGR >>>>> >>>>> the error is >>>>> >>>>> 7/12/2011 4:29:20 PM|msDrawMap(): Image handling error. Failed to draw >>>>> layer named 'DGN'.;msOGRFileOpen(): OGR error. Open failed for OGR >>>>> connection in layer `DGN'. File not found or unsupported format. >>>>> 7/12/2011 4:29:20 PM| at OSGeo.MapServer.mapObj.draw() >>>>> at MapCreator.Controls.MapControl.RefreshMap() >>>>> _______________________________________________ >>>>> 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 jcigar at ulb.ac.be Wed Jul 13 06:59:52 2011 From: jcigar at ulb.ac.be (Julien Cigar) Date: Wed, 13 Jul 2011 15:59:52 +0200 Subject: [mapserver-users] substitution in a PostGIS layer .. ? In-Reply-To: <84446DEF76453C439E9E97E438E13A630139B3@suutari.haapa.mmm.fi> References: <4E1D8FA4.4030701@ulb.ac.be> <4E1D928C.6000209@ulb.ac.be> <4E1D9874.4020709@mapgears.com>, <4E1D98EA.40205@ulb.ac.be> <84446DEF76453C439E9E97E438E13A630139B3@suutari.haapa.mmm.fi> Message-ID: <4E1DA4D8.6030500@ulb.ac.be> On 07/13/2011 15:38, Rahkonen Jukka wrote: > Julien Cigar wrote: > >> This may be a stupid question but: is there a reason why >> PQescapeStringConn() is not used to do the substitution? > > Perhaps because Mapserver does not support just PostgreSQL but also Oracle, SQL Server, MySQL, Informix, CouchDB etc. Therefore it is good to have some general purpose validation system. Of cause more sophisticated systems for each datastore would not harm. > > -Jukka Rahkonen- > >> Thanks, >> Julien > I see .. :) Thanks! -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. -------------- next part -------------- A non-text attachment was scrubbed... Name: jcigar.vcf Type: text/x-vcard Size: 292 bytes Desc: not available URL: From Jukka.Rahkonen at mmmtike.fi Wed Jul 13 07:08:14 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 13 Jul 2011 14:08:14 +0000 Subject: [mapserver-users] msShapefileOpen(): Unable to access file In-Reply-To: <4E1DA3E7.4010209@geoanalytic.com> References: <84446DEF76453C439E9E97E438E13A63012F25@suutari.haapa.mmm.fi> <84446DEF76453C439E9E97E438E13A63012F3F@suutari.haapa.mmm.fi> <4E1C5329.3000201@geoanalytic.com> , <4E1DA3E7.4010209@geoanalytic.com> Message-ID: <84446DEF76453C439E9E97E438E13A630139C9@suutari.haapa.mmm.fi> Hi, One remark: the "missing connection" error was a fault alarm (CONNECTION is not needed with TILEINDEX). We got those lines into log file at least with Mapserver 5.2 series but it has been corrected later. Version 6.0 does not produce those. I do not remember what was the situation with 5.4.x and 5.6.x. Add DEBUG 5 into your layer, let's hope it will generate something useful into into Mapserver log. -Jukka Rahkonen- ________________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] käyttäjän Brent Fraser [bfraser at geoanalytic.com] puolesta L?hetetty: 13. hein?kuuta 2011 16:55 Vastaanottaja: Dave Chetan Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] msShapefileOpen(): Unable to access file Dave, Strange, it should work. I'm using mapserver v5.6.3, with a layer def of: LAYER # LINE NAME 'LINE' CONNECTIONTYPE OGR STATUS on TILEINDEX "G:\GeoData\1_250k\Alberta\AltaLIS\250k_west.shp" TYPE LINE PROJECTION 'proj=tmerc' 'ellps=GRS80' 'lat_0=0.0' 'lon_0=-117.0' 'x_0=500000.0' 'y_0=-5000000' 'k=0.9996' 'units=m' 'nadgrids=@null' 'no_defs' END INCLUDE "AltaLIS_250k_render_inc.map" END and the content of the "location" attribute reported by ogrinfo is : LOCATION (String) = G:\GeoData\1_250k\Alberta\AltaLIS\82gpos.dgn Try adding a PROJECTION object to your LAYER def. And try using a full path in the TILEINDEX. Best Regards, Brent Fraser On 7/13/2011 5:08 AM, Dave Chetan wrote: > Hi Brent, > > After changes my Layer tag is > > LAYER > NAME "DGN" > CONNECTIONTYPE OGR > STATUS ON > TILEINDEX "index_dgn.shp" > TILEITEM "location" > TYPE LINE > UNITS METERS > CLASS > NAME "DGN" > STYLE > ANGLE 360 > COLOR 240 215 209 > SYMBOL "LineDash" > WIDTH 1 > END > END > END > > and the error message is > > INPUT=SHAPEFILE > Exception executing MapControl::RefreshMap > 7/13/2011 4:30:13 PM|msConnPoolRegister(): General error message. > Missing CONNECTION on layer DGN.;msConnPoolRegister(): General error > message. Missing CONNECTION on layer DGN.;msConnPoolRegister(): > General error message. Missing CONNECTION on layer > DGN.;msConnPoolRegister(): General error message. Missing CONNECTION > on layer DGN.;msConnPoolRegister(): General error message. Missing > CONNECTION on layer DGN.;msConnPoolRegister(): General error message. > Missing CONNECTION on layer DGN. > 7/13/2011 4:30:13 PM| at OSGeo.MapServer.mapObj.draw() > at MapCreator.Controls.MapControl.RefreshMap() > > Regards, > Dave C. > > On 7/12/11, Brent Fraser wrote: >> Dave, >> >> I've had good success rendering DGN files referenced in a TILEINDEX >> (http://lists.osgeo.org/pipermail/mapserver-users/2010-December/067444.html). >> Try adding ".shp" to the end of your TILEINDEX: >> >> TILEINDEX "index_dg.shp" >> >> as OGR handles the files differently than Mapserver's native shapefile >> mechanism. >> >> Best Regards, >> Brent Fraser >> >> >> On 7/12/2011 6:25 AM, Dave Chetan wrote: >>> Dear Jukka, >>> >>> Yes, I am able to publish single DGN. >>> But when I go for tiled dgn, I have error. >>> >>> Regards, >>> Dave C. >>> >>> On 7/12/11, Rahkonen Jukka wrote: >>>> Hi, >>>> >>>> I have never played with DGN files with Mapserver. I would blindly follow >>>> the documents and try first with just one DGN file as in >>>> http://mapserver.org/input/vector/dgn.html >>>> and forward next to ogrtileindex as in >>>> http://mapserver.org/input/vector/ogr.html >>>> Perhaps there is something important in the syntax of TILEINDEX given in >>>> the >>>> following example. >>>> >>>> LAYER >>>> NAME "ogr_points" >>>> TYPE POINT >>>> CONNECTIONTYPE OGR >>>> TILEINDEX "PIP_ogr_tiles.shp,0" >>>> >>>> -Jukka Rahkonen- >>>> ________________________________________ >>>> L?hett?j?: Dave Chetan [csdave4u at gmail.com] >>>> L?hetetty: 12. hein?kuuta 2011 14:58 >>>> Vastaanottaja: Rahkonen Jukka >>>> Kopio: mapserver-users at lists.osgeo.org >>>> Aihe: Re: [mapserver-users] msShapefileOpen(): Unable to access file >>>> >>>> Hi Rahkonen, >>>> >>>> Thanks for the prompt reply..!! >>>> >>>> If I add >>>> CONNECTIONTYPE OGR >>>> >>>> in the Layer Tag, then the error is >>>> >>>> 7/12/2011 4:29:20 PM|msDrawMap(): Image handling error. Failed to draw >>>> layer named 'DGN'.;msOGRFileOpen(): OGR error. Open failed for OGR >>>> connection in layer `DGN'. File not found or unsupported format. >>>> 7/12/2011 4:29:20 PM| at OSGeo.MapServer.mapObj.draw() >>>> at MapCreator.Controls.MapControl.RefreshMap() >>>> >>>> Regards, >>>> Dave C. >>>> >>>> >>>> On 7/12/11, Rahkonen Jukka wrote: >>>>> Hi, >>>>> >>>>> I guess that Mapserver is seaching for shapefiles as default. Read the >>>>> document http://mapserver.org/input/vector/ogr.html and have a try with >>>>> CONNECTIONTYPE=OGR. >>>>> >>>>> -Jukka Rahkonen >>>>> ________________________________________ >>>>> Dave Chetan wrote: >>>>> >>>>> >>>>> Hi, >>>>> >>>>> I am publishing DGN data using tile option. I am getting error >>>>> "msShapefileOpen(): Unable to access file". >>>>> >>>>> Following are the details of Input data, steps executed and error log. >>>>> >>>>> Please, if anyone can help in resolving the issue. >>>>> >>>>> Source files are DGN >>>>> D:\Tile\DGN\Final\1.dgn >>>>> D:\Tile\DGN\Final\3.dgn >>>>> D:\Tile\DGN\Final\5.dgn >>>>> D:\Tile\DGN\Final\7.dgn >>>>> D:\Tile\DGN\Final\9.dgn >>>>> >>>>> Step1)- >>>>> Creation of Index tile >>>>> >>>>> ogrtindex.exe d:\Tile\DGN\Final\index_dgn.shp d:\Tile\DGN\Final\*.dgn >>>>> >>>>> Ogrtindex created "index_dgn.shp" index file >>>>> >>>>> Step2)- >>>>> Map file >>>>> .... >>>>> EXTENT 699218.75297987 2251967.57943806 755021.241547886 >>>>> 2291053.54827586 >>>>> SHAPEPATH "D:\Tile\DGN\Final" >>>>> ..... >>>>> >>>>> >>>>> LAYER >>>>> NAME "DGN" >>>>> STATUS ON >>>>> TILEINDEX "index_dgn" >>>>> TILEITEM "location" >>>>> TYPE LINE >>>>> UNITS METERS >>>>> CLASS >>>>> NAME "DGN" >>>>> STYLE >>>>> ANGLE 360 >>>>> COLOR 240 215 209 >>>>> SYMBOL "LineDash" >>>>> WIDTH 1 >>>>> END >>>>> END >>>>> END >>>>> >>>>> >>>>> >>>>> Error >>>>> >>>>> 7/12/2011 4:21:33 PM|msDrawMap(): Image handling error. Failed to draw >>>>> layer named 'DGN'.;msTiledSHPOpenFile(): Shapefile error. Unable to >>>>> open a single tile to use as a template in layer >>>>> DGN.;msShapefileOpen(): Unable to access file. >>>>> (d:\Tile\DGN\Final\9.dgn,0);msShapefileOpen(): Unable to access file. >>>>> (d:\Tile\DGN\Final\9.dgn,0);msShapefileOpen(): Unable to access file. >>>>> (d:\Tile\DGN\Final\9.dgn,0);msShapefileOpen(): Unable to access file. >>>>> (d:\Tile\DGN\Final\7.dgn,0);msShapefileOpen(): Unable to access file. >>>>> (d:\Tile\DGN\Final\7.dgn,0);msShapefileOpen(): Unable to access file. >>>>> (d:\Tile\DGN\Final\7.dgn,0);msShapefileOpen(): Unable to access file. >>>>> (d:\Tile\DGN\Final\5.dgn,0);msShapefileOpen(): Unable to access file. >>>>> (d:\Tile\DGN\Final\5.dgn,0);msShapefileOpen(): Unable to access file. >>>>> (d:\Tile\DGN\Final\5.dgn,0);msShapefileOpen(): Unable to access file. >>>>> (d:\Tile\DGN\Final\3.dgn,0);msShapefileOpen(): Unable to access file. >>>>> (d:\Tile\DGN\Final\3.dgn,0);msShapefileOpen(): Unable to access file. >>>>> (d:\Tile\DGN\Final\3.dgn,0);msShapefileOpen(): Unable to access file. >>>>> (d:\Tile\DGN\Final\1.dgn,0);msShapefileOpen(): Unable to access file. >>>>> (d:\Tile\DGN\Final\1.dgn,0);msShapefileOpen(): Unable to access file. >>>>> (d:\Tile\DGN\Final\1.dgn,0) >>>>> 7/12/2011 4:21:33 PM| at OSGeo.MapServer.mapObj.draw() >>>>> at MapCreator.Controls.MapControl.RefreshMap() >>>>> >>>>> >>>>> >>>>> In the Layer Tag if I add following line >>>>> >>>>> CONNECTIONTYPE OGR >>>>> >>>>> the error is >>>>> >>>>> 7/12/2011 4:29:20 PM|msDrawMap(): Image handling error. Failed to draw >>>>> layer named 'DGN'.;msOGRFileOpen(): OGR error. Open failed for OGR >>>>> connection in layer `DGN'. File not found or unsupported format. >>>>> 7/12/2011 4:29:20 PM| at OSGeo.MapServer.mapObj.draw() >>>>> at MapCreator.Controls.MapControl.RefreshMap() >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From dmorissette at mapgears.com Wed Jul 13 07:09:23 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 13 Jul 2011 10:09:23 -0400 Subject: [mapserver-users] MapServer 6.0.1, 5.6.7 and 4.10.7 releases with security fixes Message-ID: <4E1DA713.4070803@mapgears.com> The MapServer team announces the release of MapServer versions 6.0.1, 5.6.7 and 4.10.7. No new functionality has been added. 6.0.1 is a maintence release that fixes a few issues including recently discovered security vulnerabilities. The list of fixes since 6.0.0 is included at the end of this message. Versions 5.6.7 and 4.10.7 include fixes for the security vulnerabilities described below plus a few bug fixes that may have occurred since the last official release. See the respective HISTORY.TXT files for additional information. IMPORTANT SECURITY FIXES: ------------------------- MapServer developers have discovered flaws in the OGC filter support in MapServer. That code is used in support of WFS, WMS-SLD and SOS specifications. All versions may be susceptible to SQL injection under certain circumstances. The extent of the vulnerability depends on the MapServer version, relational database and mapfile configuration being used. All users are ** strongly encouraged ** to upgrade to these latest releases. The 5.6.7 and 4.10.7 releases also address one significant potentially exploitable buffer overflow (6.0 branch is not vulneralble). These fixes do not affect the functionality of MapServer and no changes will be necessary for configurations/applications using the same base branch (e.g. 5.6). Even though we release 6.0.1, 5.6.7 and 4.10.7 today, these security fixes have also been backported to all stable branches (going back to 4.10) in MapServer's Subversion (SVN) source code repository, so if you work from source and would like to patch your local MapServer source tree, the changeset (i.e. patch file) for each stable release can be obtained through the following Trac ticket: - http://trac.osgeo.org/mapserver/ticket/3903 Special thanks to Even Rouault for his work identifying the issues and the subsequent patching and testing he did. Source and binary downloads: ---------------------------- The source code is available at: http://mapserver.org/download.html The binary distributions listed in the download page should be updated with binaries for the new 6.0.1 release (and in some cases 5.6.7) in the next few hours, if not already done. We have also submitted security patches to the Ubuntu and Debian supported distributions that are in the process of being reviewed. The MapServer Team Version 6.0.1 (2011-07-12): --------------------------- IMPORTANT SECURITY FIXES: - Fixes to prevent SQL injections through OGC filter encoding (in WMS, WFS and SOS), as well as a potential SQL injection in WMS time support. Your system may be vulnerable if it has MapServer with OGC protocols enabled, with layers connecting to an SQL RDBMS backend, either natively or via OGR (#3903) - Applied patch for ticket (symbol writing issues) (#3589) - Fix performance issue with Oracle and scrollable cursors (#3905) - Fix attribute binding for layer styles (#3941) - Added missing fclose() when writing query files (#3943) - Fix double-free in msAddImageSymbol() when filename is a http resource (#3939) - Fix rendering of lines with outlinewidth set if not on first style (#3935) - Added writing of cluster object when saving map. Also improved handling of cluster parsing errors (#3934) - Fix for the cluster processing if the shape bounds doesn't overlap with the given extent (#3913) - OGC Filter: fix segfault when a ows_varname_type or wfs_varname_type is defined but not a gml_varname_type (#3902) - Fix regression of MapServer 6.0.0 when specifying a time range in WMS time requests on a Postgis layer (#3909) - Fixed order of metadata lookup for WMS GML GetFeatureInfo. 'ows' should come last, not first (#3636). - Fixed mssql2008 to return correct geometries with chart layer type (#3894) - Write SYMBOLSET/END tags when saving a symbol file (#3885) - Make java threadtests work again (#3887) - Fix segfault on malformed filters (#3888) - Fixed the query handling problem with the Oracle spatial driver (#3878) - Fixed potential crash with AVERAGE resampling and crazy reprojection (#3886) - Fix for the warnings in mapunion.c (#3880) - Fixed the build problem in mapunion.c (#3877) - Union layer: Fixed the crash when styling source layers using attributes (#3870) - Improve rangeset item checking so that Bands=1,2,3 is supported with WCS 1.0 (#3919). - Fix GetMapserverUnitUsingProj() for proj=latlong (#3883) From woodbri at swoodbridge.com Wed Jul 13 07:57:48 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 13 Jul 2011 10:57:48 -0400 Subject: [mapserver-users] substitution in a PostGIS layer .. ? In-Reply-To: <4E1DA4D8.6030500@ulb.ac.be> References: <4E1D8FA4.4030701@ulb.ac.be> <4E1D928C.6000209@ulb.ac.be> <4E1D9874.4020709@mapgears.com>, <4E1D98EA.40205@ulb.ac.be> <84446DEF76453C439E9E97E438E13A630139B3@suutari.haapa.mmm.fi> <4E1DA4D8.6030500@ulb.ac.be> Message-ID: <4E1DB26C.1030106@swoodbridge.com> On 7/13/2011 9:59 AM, Julien Cigar wrote: > On 07/13/2011 15:38, Rahkonen Jukka wrote: >> Julien Cigar wrote: >> >>> This may be a stupid question but: is there a reason why >>> PQescapeStringConn() is not used to do the substitution? >> >> Perhaps because Mapserver does not support just PostgreSQL but also >> Oracle, SQL Server, MySQL, Informix, CouchDB etc. Therefore it is good >> to have some general purpose validation system. Of cause more >> sophisticated systems for each datastore would not harm. >> >> -Jukka Rahkonen- >> >>> Thanks, >>> Julien >> > > I see .. :) > > Thanks! Julien, This is a good question and it has been discussed among the dev's. One thing we discussed was having a generic escape function that would be implemented by each driver that the code could call to deal with the various issues of driver support. But alas it is more complicated than simple variable quoting, because substitution can replace table names, column names, or parts of expressions like "foobar in(%filter%)" So we continue to improve on it and restructure code as needed, but as the above examples suggest it is not a trivial fix and currently the validation patterns work, but require the user to implement them based on their needs. Thanks, -Steve W From sdlime at gmail.com Wed Jul 13 08:49:07 2011 From: sdlime at gmail.com (Steve Lime) Date: Wed, 13 Jul 2011 10:49:07 -0500 Subject: [mapserver-users] mapscript: read GeoJSON In-Reply-To: <4E1D6043.6070202@metrico.lu> References: <4E1D6043.6070202@metrico.lu> Message-ID: OGR would be the most straightforward I'd think. You could write the GeoJSON to a file and then craft a layer to access it directly... Steve On Wed, Jul 13, 2011 at 4:07 AM, Frank Broniewski wrote: > Hi, > > what would be the best way to read a geojson feature/featurecollection with > mapscript? > > My goal is to query a map by a feature which comes as geojson. Of course > it's not too hard to parse the geojson into a mapserver geometry object > (pointObj, lineObj, ...). But if there's already a best practice (with the > aid of other libraries, like ogr, shapely maybe?), I'd be happy to apply > this one. > > Many thanks > > Frank > -- > Frank BRONIEWSKI > > METRICO s.? r.l. > g?om?tres > technologies d'information g?ographique > rue des Romains 36 > L-5433 NIEDERDONVEN > > t?l.: +352 26 74 94 - 28 > fax.: +352 26 74 94 99 > http://www.metrico.lu > ______________________________**_________________ > 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 pcreso at pcreso.com Wed Jul 13 10:53:23 2011 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Wed, 13 Jul 2011 10:53:23 -0700 (PDT) Subject: [mapserver-users] substitution in a PostGIS layer .. ? In-Reply-To: <4E1D8FA4.4030701@ulb.ac.be> Message-ID: <1310579603.80064.YahooMailClassic@web33207.mail.mud.yahoo.com> Hi Julian, That should work, if you look at the species maps at http://www.marinebiodiversity.org.nz I do exactly that to substitute the selected species name into the SQL in the mapserver DATA statement to generate the WFS layer. In this case the client application appends &spp=xxxxx to the query string instead of doing it in the cgi, but I have done the same thing in cgi's as well. Perhaps try it with a lower case variable name & see if that works? Cheers, ? Brent Wood --- On Thu, 7/14/11, Julien Cigar wrote: From: Julien Cigar Subject: [mapserver-users] substitution in a PostGIS layer .. ? To: mapserver-users at lists.osgeo.org Date: Thursday, July 14, 2011, 12:29 AM Hello, I have the following mapfile: http://www.pastie.org/2206896 with the following SLD: http://www.pastie.org/2206902 (generated dynamically) I wondered how can I change the WHERE sp.id=%SPID% in the subselect (following a CGI parameter)? I read http://mapserver.org/cgi/runsub.html, and tried with %SPID% (by passwing &SPID=3 in my URL) but it doesn't seems to work ... any idea? Thanks, Julien -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. -----Inline Attachment Follows----- _______________________________________________ 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 arnd.wippermann at web.de Wed Jul 13 12:34:21 2011 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Wed, 13 Jul 2011 21:34:21 +0200 Subject: AW: [mapserver-users] WFS with OpenLayers In-Reply-To: <4E1D7EEB.50909@gmail.com> References: <2097924851.5110549.1310374442011.JavaMail.fmail@mwmweb012> <4E1D7EEB.50909@gmail.com> Message-ID: <080B5CB10FDE4BBCA27F6C62DBF0AA70@pcawh2> Hi, Good explanation. I like MapServer, but sometimes it is difficult to get it working as one wishes. I haven't tried WFS version 1.1.0 yet. A hint to OpenLayers. If you include proj4.js and the projection files needed for your purpose to your application, and adds the param "projection" to your wfs layer options, you can reproject the wfs response clientside. Best Regards, Arnd _____ Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von geographika Gesendet: Mittwoch, 13. Juli 2011 13:18 An: mapserver-users at lists.osgeo.org Betreff: Re: [mapserver-users] WFS with OpenLayers Hi, I spent awhile configuring MapServer and OpenLayers - the notes here may help. http://geographika.co.uk/mapserver-openlayers-and-the-wfs-maze -- web: http://geographika.co.uk twitter: @geographika On 11/07/2011 10:54, parsecaway at web.de wrote: Hello MapServer users, are there any good tutorials how to set up MapServer 6.0 for WFS? It doesn't work for me with OpenLayers. Thanks for any hint... Regards, Alex ___________________________________________________________ Schon geh?rt? WEB.DE hat einen genialen Phishing-Filter in die Toolbar eingebaut! http://produkte.web.de/go/toolbar _______________________________________________ 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 kupen at wippies.fi Thu Jul 14 00:59:44 2011 From: kupen at wippies.fi (Pena Kupen) Date: Thu, 14 Jul 2011 10:59:44 +0300 (EEST) Subject: [mapserver-users] Using unique Message-ID: <1475947998.4121310630385216.JavaMail.kupen@wippies.fi> Sorry doubleposting! There where little "copy/paste-error". You can ignore prior... -Pena Hello all, I'm just upgrading our system from mapserver 5.4.2 to 5.6.6. In some of our layer queries, I got now error: msPostGISParseData(): Query error. Error parsing PostGIS DATA variable. You must specifiy 'using unique' when supplying a subselect in the data definition. When using 5.4.2, this is not happaning and maps are working ok. On mapserver/postgis manual (http://mapserver.org/input/vector/postgis.html) it says: The DATA parameter is used to specify the data used to draw the map. The form of DATA is ?[geometry_column] from [table_name|sql_subquery] using unique [unique_key] using srid=[spatial_reference_id]?. The ?using unique? and ?using srid=? clauses are optional, but using them improves performance. Is this a bug or why I cannot anymore use queries without "using unique"? -Pena -- Wippies-vallankumous on t??ll?! Varmista paikkasi vallankumouksen eturintamassa ja liity Wippiesiin heti! http://www.wippies.com/ From kupen at wippies.fi Thu Jul 14 00:51:09 2011 From: kupen at wippies.fi (Pena Kupen) Date: Thu, 14 Jul 2011 10:51:09 +0300 (EEST) Subject: [mapserver-users] Using unique Message-ID: <1920539860.3911310629869820.JavaMail.kupen@wippies.fi> Hello all, I'm just upgrading our system from mapserver 5.4.2 to 5.6.6. In some of our layer queries, I got now error: msPostGISParseData(http://mapserver.org/input/vector/postgis.html): Query error. Error parsing PostGIS DATA variable. You must specifiy 'using unique' when supplying a subselect in the data definition. When using 5.4.2, this is not happaning and maps are working ok. On mapserver/postgis manual ()it says: The DATA parameter is used to specify the data used to draw the map. The form of DATA is ?[geometry_column] from [table_name|sql_subquery] using unique [unique_key] using srid=[spatial_reference_id]?. The ?using unique? and ?using srid=? clauses are optional, but using them improves performance. Is this a bug or why I cannot anymore use queries without "using unique"? -Pena -- Wippies-vallankumous on t??ll?! Varmista paikkasi vallankumouksen eturintamassa ja liity Wippiesiin heti! http://www.wippies.com/ From ChiefDan at gmail.com Thu Jul 14 04:53:15 2011 From: ChiefDan at gmail.com (ChiefDan) Date: Thu, 14 Jul 2011 04:53:15 -0700 (PDT) Subject: [mapserver-users] Re: Run Time Substitution and Mapscript questions In-Reply-To: <1310497281506-6576363.post@n2.nabble.com> References: <1310497281506-6576363.post@n2.nabble.com> Message-ID: <1310644395872-6582881.post@n2.nabble.com> I think I sussed out what is going for. An FYI for others, once you call mapscript.mapObj("yourmapfile"), the mapfile is processed, so no run time substitutions can occur. What kept me confused was the fact that calling map.draw() results in a WMS call out through Apache so I kept assuming it works as any other WMS call. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Run-Time-Substitution-and-Mapscript-questions-tp6576363p6582881.html Sent from the Mapserver - User mailing list archive at Nabble.com. From boolean10001 at yahoo.com Thu Jul 14 07:26:05 2011 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Thu, 14 Jul 2011 07:26:05 -0700 (PDT) Subject: [mapserver-users] Using unique In-Reply-To: <1475947998.4121310630385216.JavaMail.kupen@wippies.fi> References: <1475947998.4121310630385216.JavaMail.kupen@wippies.fi> Message-ID: <1310653565.88002.YahooMailNeo@web38204.mail.mud.yahoo.com> Pena, Can you post your query ? You can use: DATA "the_geom FROM "in the traditional way Or, if you're using a query or a view datasource, you can use: DATA "the_geom FROM | AS USING UNIQUE USING SRID= Cheers from M?xico IC Carlos Ruiz ________________________________ From: Pena Kupen To: mapserver-users at lists.osgeo.org Sent: Thursday, July 14, 2011 2:59 AM Subject: [mapserver-users] Using unique Sorry doubleposting! There where little "copy/paste-error". You can ignore prior... -Pena Hello all, I'm just upgrading our system from mapserver 5.4.2 to 5.6.6. In some of our layer queries, I got now error: msPostGISParseData(): Query error. Error parsing PostGIS DATA variable. You must specifiy 'using unique' when supplying a subselect in the data definition. When using 5.4.2, this is not happaning and maps are working ok. On mapserver/postgis manual (http://mapserver.org/input/vector/postgis.html) it says: The DATA parameter is used to specify the data used to draw the map. The form of DATA is ?[geometry_column] from [table_name|sql_subquery] using unique [unique_key] using srid=[spatial_reference_id]?. The ?using unique? and ?using srid=? clauses are optional, but using them improves performance. Is this a bug or why I cannot anymore use queries without "using unique"? -Pena -- Wippies-vallankumous on t??ll?! Varmista paikkasi vallankumouksen eturintamassa ja liity Wippiesiin heti! http://www.wippies.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 nicolas.chenier at agr.gc.ca Thu Jul 14 13:35:55 2011 From: nicolas.chenier at agr.gc.ca (Nicolas Chenier) Date: Thu, 14 Jul 2011 16:35:55 -0400 Subject: [mapserver-users] Difference in test map behavior from MapServer 5.6.5 to 6.0.1 In-Reply-To: <1310406751.6388.21.camel@onotta624248.agr.gc.ca> References: <8E5471DB13993145A6D9183ED4DBC2D0012966C0@onottaxms8.AGR.GC.CA> <4E1B00A7.4040207@mapgears.com> <1310406751.6388.21.camel@onotta624248.agr.gc.ca> Message-ID: <1310675755.18054.22.camel@onotta624248.agr.gc.ca> Good day all, This is a bump as I never received an answer... Quick update - I updated my binary to 6.0.1 but this issue remains: I am investigating an issue where the background in the PNG generated by the example map that comes with MapServer changes from a red-orange color (with MapServer 5.x) to purple (with MapServer 6.x). The font also changes. (See attached) The data, symbols, fonts and map files are not touched, the only thing that changes is the cgi-bin 'mapserv' binary between MS5 (5.6.5) and MS6 (6.0.0). Any help would be greatly appreciated! Thank you, Nic > test.map (the tests that come with MapServer documentation): > > MAP > NAME "Testing" > EXTENT -0.5 50.977222 0.5 51.977222 > #IMAGETYPE JPEG > #IMAGETYPE PNG24 > IMAGETYPE PNG > IMAGECOLOR 255 255 255 > STATUS ON > SIZE 200 200 > FONTSET "fonts.txt" > SYMBOLSET "symbols.txt" > > SCALEBAR > STATUS EMBED > POSTLABELCACHE TRUE > STYLE 0 > UNITS METERS > SIZE 150 3 > POSITION LR > TRANSPARENT TRUE > COLOR 0 0 0 > IMAGECOLOR 242 255 195 > BACKGROUNDCOLOR 255 255 255 > LABEL > TYPE BITMAP > SIZE TINY > COLOR 0 0 0 > POSITION UR > BUFFER 10 > END > END > > LEGEND > IMAGECOLOR 255 255 255 > END > > WEB > METADATA > "key1" "value1" > "key2" "value2" > "key3" "value3" > "key4" "value4" > END > END > > PROJECTION > "init=epsg:4326" > END > > LAYER > NAME "RASTER" > TYPE RASTER > PROJECTION > "init=epsg:4326" > END > DATA "raster.tif" > PROCESSING "BANDS=1" > STATUS DEFAULT > END > > LAYER > NAME "POLYGON" > TYPE POLYGON > PROJECTION > "init=epsg:4326" > END > STATUS DEFAULT > DATA "polygon" > METADATA > "key1" "value1" > "key2" "value2" > "key3" "value3" > "key4" "value4" > END > CLASSITEM "FNAME" > CLASS > NAME "0" > METADATA > "key1" "value1" > "key2" "value2" > "key3" "value3" > "key4" "value4" > END > STYLE > COLOR 255 153 102 > OUTLINECOLOR 0 0 204 > SYMBOL 1 > SIZE 2 > END > END > CLASS > NAME "1" > EXPRESSION "foo" > STYLE > COLOR 255 153 102 > OUTLINECOLOR 0 0 204 > SYMBOL 1 > SIZE 2 > END > END > > END > > LAYER > NAME "LINE" > TYPE LINE > PROJECTION > "init=epsg:4326" > END > TRANSPARENCY 1 > STATUS DEFAULT > DATA "line" > CLASSITEM "FNAME" > CLASS > NAME "0" > STYLE > COLOR 0 153 0 > SYMBOL 1 > SIZE 3 > END > END > CLASS > NAME "1" > EXPRESSION "foo" > STYLE > COLOR 0 153 0 > SYMBOL 1 > SIZE 3 > END > END > END > > LAYER > NAME "POINT" > EXTENT -0.5 51.0 0.5 52.0 > TYPE POINT > PROJECTION > "init=epsg:4326" > END > STATUS DEFAULT > DATA "point" > CLASSITEM "FNAME" > LABELITEM "FNAME" > CLASS > NAME "0" > STYLE > COLOR 0 0 0 > SYMBOL 1 > SIZE 13 > END > STYLE > COLOR 204 204 204 > SYMBOL 1 > SIZE 7 > END > LABEL > TYPE TRUETYPE > FONT "Vera" > SIZE 10 > COLOR 0 0 0 > END > > TEMPLATE "point.html" > END > CLASS > NAME "1" > EXPRESSION "foo" > STYLE > COLOR 0 0 0 > SYMBOL 1 > SIZE 13 > END > END > END > > LAYER > NAME "INLINE" > TYPE POINT > PROJECTION > "init=epsg:4326" > END > STATUS DEFAULT > FEATURE > POINTS -0.2 51.5 END > END > CLASS > NAME "0" > STYLE > COLOR 0 0 0 > SYMBOL 1 > SIZE 3 > END > END > END > > LAYER > NAME "INLINE-PIXMAP-RGBA" > TYPE POINT > TRANSPARENCY ALPHA > DEBUG ON > PROJECTION > "init=epsg:4326" > END > STATUS OFF > FEATURE > POINTS 0.2 51.7 END > END > CLASS > NAME "0" > STYLE > SYMBOL 'xmarks-png' > END > LABEL > COLOR 0 0 0 > END > END > END > > LAYER > NAME "INLINE-PIXMAP-PCT" > TYPE ANNOTATION > DEBUG ON > TRANSPARENCY ALPHA > PROJECTION > "init=epsg:4326" > END > STATUS DEFAULT > FEATURE > POINTS 0.2 51.2 END > END > CLASS > NAME "0" > STYLE > SYMBOL 'home-png' > END > TEXT "." > LABEL > COLOR 0 0 0 > END > END > END > > END > > > > > > > > symbols.txt: > SYMBOLSET > SYMBOL > NAME 'circle' > TYPE ellipse > FILLED true > POINTS > 1 1 > END > END > > SYMBOL > NAME 'xmarks-png' > TYPE PIXMAP > IMAGE 'xmarks.png' > END > > SYMBOL > NAME 'home-png' > TYPE PIXMAP > IMAGE 'home.png' > END > END -------------- next part -------------- A non-text attachment was scrubbed... Name: ms5.png Type: image/png Size: 3776 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ms6.png Type: image/png Size: 4769 bytes Desc: not available URL: From jachym.cepicky at gmail.com Thu Jul 14 15:40:04 2011 From: jachym.cepicky at gmail.com (Jachym Cepicky) Date: Fri, 15 Jul 2011 00:40:04 +0200 Subject: [mapserver-users] wms 1.3, getfeaturelisturl, getdataurl Message-ID: Hi, in WMS 1.3.0, there are following elements for each layer: FeatureListURL A server may use a element to point to a list of the features represented in a Layer. FeatureListURL is not inherited by child layers. The enclosed Format element indicates the file format MIME type of the feature list. DataURL A server may use DataURL to offer a link to the underlying data represented by a particular layer. The enclosed Format element indicates the file format MIME type of the data file. Is there support for getfeaturelisturl and getdataurl elements in MapServer 6x, on the server-side? I could not find anything in the documentation. Thanks Jachym -- Jachym Cepicky e-mail: jachym.cepicky gmail com URL: http://les-ejk.cz GPG: http://les-ejk.cz/pgp/JachymCepicky.pgp From havard.tveite at umb.no Thu Jul 14 15:57:02 2011 From: havard.tveite at umb.no (Havard Tveite) Date: Fri, 15 Jul 2011 00:57:02 +0200 Subject: [mapserver-users] Difference in test map behavior from MapServer 5.6.5 to 6.0.1 In-Reply-To: <1310675755.18054.22.camel@onotta624248.agr.gc.ca> References: <8E5471DB13993145A6D9183ED4DBC2D0012966C0@onottaxms8.AGR.GC.CA> <4E1B00A7.4040207@mapgears.com> <1310406751.6388.21.camel@onotta624248.agr.gc.ca> <1310675755.18054.22.camel@onotta624248.agr.gc.ca> Message-ID: <4E1F743E.8050100@umb.no> On 14/07/11 22:35, Nicolas Chenier wrote: > Good day all, > > This is a bump as I never received an answer... Quick update - I updated > my binary to 6.0.1 but this issue remains: > > I am investigating an issue where the background in the PNG generated by > the example map that comes with MapServer changes from a red-orange > color (with MapServer 5.x) to purple (with MapServer 6.x). The font also > changes. (See attached) OUTLINECOLOR seems to be interpreted differently in the two versions. In 6.0, OUTLINECOLOR is used for the fill symbol (you can see that the polygon outline is missing, but there is a lot of blue in the fill). This behaviour is described in the 6.0 documentation. In 5.6, OUTLINECOLOR seems to be used for the polygon outline. The change may have something to do with the rendering overhaul and/or AGG / GD differences. To get a blue polygon outline in 6.0, you could change from: STYLE COLOR 255 153 102 OUTLINECOLOR 0 0 204 SYMBOL 1 SIZE 2 END to: STYLE COLOR 255 153 102 SYMBOL 1 SIZE 2 END STYLE OUTLINECOLOR 0 0 204 WIDTH 1 END The font looks similar, except for the scalebar. H?vard > The data, symbols, fonts and map files are not touched, the only thing > that changes is the cgi-bin 'mapserv' binary between MS5 (5.6.5) and MS6 > (6.0.0). > > Any help would be greatly appreciated! > > Thank you, > > Nic > > >> test.map (the tests that come with MapServer documentation): >> >> MAP >> NAME "Testing" >> EXTENT -0.5 50.977222 0.5 51.977222 >> #IMAGETYPE JPEG >> #IMAGETYPE PNG24 >> IMAGETYPE PNG >> IMAGECOLOR 255 255 255 >> STATUS ON >> SIZE 200 200 >> FONTSET "fonts.txt" >> SYMBOLSET "symbols.txt" >> >> SCALEBAR >> STATUS EMBED >> POSTLABELCACHE TRUE >> STYLE 0 >> UNITS METERS >> SIZE 150 3 >> POSITION LR >> TRANSPARENT TRUE >> COLOR 0 0 0 >> IMAGECOLOR 242 255 195 >> BACKGROUNDCOLOR 255 255 255 >> LABEL >> TYPE BITMAP >> SIZE TINY >> COLOR 0 0 0 >> POSITION UR >> BUFFER 10 >> END >> END >> >> LEGEND >> IMAGECOLOR 255 255 255 >> END >> >> WEB >> METADATA >> "key1" "value1" >> "key2" "value2" >> "key3" "value3" >> "key4" "value4" >> END >> END >> >> PROJECTION >> "init=epsg:4326" >> END >> >> LAYER >> NAME "RASTER" >> TYPE RASTER >> PROJECTION >> "init=epsg:4326" >> END >> DATA "raster.tif" >> PROCESSING "BANDS=1" >> STATUS DEFAULT >> END >> >> LAYER >> NAME "POLYGON" >> TYPE POLYGON >> PROJECTION >> "init=epsg:4326" >> END >> STATUS DEFAULT >> DATA "polygon" >> METADATA >> "key1" "value1" >> "key2" "value2" >> "key3" "value3" >> "key4" "value4" >> END >> CLASSITEM "FNAME" >> CLASS >> NAME "0" >> METADATA >> "key1" "value1" >> "key2" "value2" >> "key3" "value3" >> "key4" "value4" >> END >> STYLE >> COLOR 255 153 102 >> OUTLINECOLOR 0 0 204 >> SYMBOL 1 >> SIZE 2 >> END >> END >> CLASS >> NAME "1" >> EXPRESSION "foo" >> STYLE >> COLOR 255 153 102 >> OUTLINECOLOR 0 0 204 >> SYMBOL 1 >> SIZE 2 >> END >> END >> >> END >> >> LAYER >> NAME "LINE" >> TYPE LINE >> PROJECTION >> "init=epsg:4326" >> END >> TRANSPARENCY 1 >> STATUS DEFAULT >> DATA "line" >> CLASSITEM "FNAME" >> CLASS >> NAME "0" >> STYLE >> COLOR 0 153 0 >> SYMBOL 1 >> SIZE 3 >> END >> END >> CLASS >> NAME "1" >> EXPRESSION "foo" >> STYLE >> COLOR 0 153 0 >> SYMBOL 1 >> SIZE 3 >> END >> END >> END >> >> LAYER >> NAME "POINT" >> EXTENT -0.5 51.0 0.5 52.0 >> TYPE POINT >> PROJECTION >> "init=epsg:4326" >> END >> STATUS DEFAULT >> DATA "point" >> CLASSITEM "FNAME" >> LABELITEM "FNAME" >> CLASS >> NAME "0" >> STYLE >> COLOR 0 0 0 >> SYMBOL 1 >> SIZE 13 >> END >> STYLE >> COLOR 204 204 204 >> SYMBOL 1 >> SIZE 7 >> END >> LABEL >> TYPE TRUETYPE >> FONT "Vera" >> SIZE 10 >> COLOR 0 0 0 >> END >> >> TEMPLATE "point.html" >> END >> CLASS >> NAME "1" >> EXPRESSION "foo" >> STYLE >> COLOR 0 0 0 >> SYMBOL 1 >> SIZE 13 >> END >> END >> END >> >> LAYER >> NAME "INLINE" >> TYPE POINT >> PROJECTION >> "init=epsg:4326" >> END >> STATUS DEFAULT >> FEATURE >> POINTS -0.2 51.5 END >> END >> CLASS >> NAME "0" >> STYLE >> COLOR 0 0 0 >> SYMBOL 1 >> SIZE 3 >> END >> END >> END >> >> LAYER >> NAME "INLINE-PIXMAP-RGBA" >> TYPE POINT >> TRANSPARENCY ALPHA >> DEBUG ON >> PROJECTION >> "init=epsg:4326" >> END >> STATUS OFF >> FEATURE >> POINTS 0.2 51.7 END >> END >> CLASS >> NAME "0" >> STYLE >> SYMBOL 'xmarks-png' >> END >> LABEL >> COLOR 0 0 0 >> END >> END >> END >> >> LAYER >> NAME "INLINE-PIXMAP-PCT" >> TYPE ANNOTATION >> DEBUG ON >> TRANSPARENCY ALPHA >> PROJECTION >> "init=epsg:4326" >> END >> STATUS DEFAULT >> FEATURE >> POINTS 0.2 51.2 END >> END >> CLASS >> NAME "0" >> STYLE >> SYMBOL 'home-png' >> END >> TEXT "." >> LABEL >> COLOR 0 0 0 >> END >> END >> END >> >> END >> >> >> >> >> >> >> >> symbols.txt: >> SYMBOLSET >> SYMBOL >> NAME 'circle' >> TYPE ellipse >> FILLED true >> POINTS >> 1 1 >> END >> END >> >> SYMBOL >> NAME 'xmarks-png' >> TYPE PIXMAP >> IMAGE 'xmarks.png' >> END >> >> SYMBOL >> NAME 'home-png' >> TYPE PIXMAP >> IMAGE 'home.png' >> END >> END > From kupen at wippies.fi Thu Jul 14 22:26:25 2011 From: kupen at wippies.fi (Pena Kupen) Date: Fri, 15 Jul 2011 08:26:25 +0300 (EEST) Subject: [mapserver-users] Using unique Message-ID: <1061965269.1581310707585761.JavaMail.kupen@wippies.fi> Hello Carlos and all, I'm using query, which is little cryptic. location from ( select h.location, h.oid, k.expla, h.date1, h.expla, h.total, ku.locationname as name from (select pa.location, ha.type_id as oid, ha.date1, pa_n.name, pa_n.location_id, ha.car_id, ha.total from pa join ha on ha.ha_pa_id = pa.pa_id left join pa_n on pa.pa_id = pa_n.pa_id where ha.type_id = 121557 and status='11' and ha.is_valid is NULL ) as h left join ku on h.ku_id=ku.ku_id left join k on h.type_id = k.type_id where k.code='sc' and syno=false and (h.ku_id = 'AAC') ) as foobar This has been used without any problem. -Pena Carlos Ruiz [boolean10001 at yahoo.com] kirjoitti: > Pena, > > Can you post your query ? > > You can use: > > DATA "the_geom FROM
"in the traditional way > > > Or, if you're using a query or a view datasource, you can use: > > DATA "the_geom FROM | AS USING UNIQUE USING SRID= > > Cheers from M?xico > > > IC Carlos Ruiz > > > > ________________________________ > From: Pena Kupen > To: mapserver-users at lists.osgeo.org > Sent: Thursday, July 14, 2011 2:59 AM > Subject: [mapserver-users] Using unique > > Sorry doubleposting! There where little "copy/paste-error". You can ignore prior... > > -Pena > > > Hello all, > > I'm just upgrading our system from mapserver 5.4.2 to 5.6.6. > In some of our layer queries, I got now error: > msPostGISParseData(): Query error. Error parsing PostGIS DATA variable. You must specifiy 'using unique' when supplying a subselect in the data definition. > When using 5.4.2, this is not happaning and maps are working ok. > > On mapserver/postgis manual (http://mapserver.org/input/vector/postgis.html) it says: > The DATA parameter is used to specify the data used to draw the map. The form of DATA is [geometry_column] from [table_name|sql_subquery] using unique [unique_key] using srid=[spatial_reference_id] . The using unique and using srid= clauses are optional, but using them improves performance. > > Is this a bug or why I cannot anymore use queries without "using unique"? > > -Pena > > > -- Wippies-vallankumous on t??ll?! Varmista paikkasi vallankumouksen eturintamassa ja liity Wippiesiin heti! > http://www.wippies.com/ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Wippies-vallankumous on t??ll?! Varmista paikkasi vallankumouksen eturintamassa ja liity Wippiesiin heti! http://www.wippies.com/ From kupen at wippies.fi Fri Jul 15 00:05:42 2011 From: kupen at wippies.fi (Pena Kupen) Date: Fri, 15 Jul 2011 10:05:42 +0300 (EEST) Subject: [mapserver-users] Using unique Message-ID: <939960850.1351310713542939.JavaMail.kupen@wippies.fi> Hi again, I'm answering to my by myself :-) When I add to the end of my query "using unique" as: " as foobar using unique oid " then query is again running ok. I also tried it with older version of Mapserver (5.4.2). Both versions are working ok with it. After some debugging of version 5.6.6, it seems to me , that in query, there is missing last right parenthesis if "using unique" is omitted. Some bug? -Pena Pena Kupen [kupen at wippies.fi] kirjoitti: > Hello Carlos and all, > > I'm using query, which is little cryptic. > > location from ( > select h.location, h.oid, k.expla, h.date1, h.expla, h.total, ku.locationname as name > from > (select pa.location, ha.type_id as oid, ha.date1, pa_n.name, pa_n.location_id, ha.car_id, ha.total > from pa > join ha on ha.ha_pa_id = pa.pa_id > left join pa_n on pa.pa_id = pa_n.pa_id > where > ha.type_id = 121557 and > status='11' and > ha.is_valid is NULL > ) as h > left join ku on h.ku_id=ku.ku_id > left join k on h.type_id = k.type_id > where > k.code='sc' and > syno=false and > (h.ku_id = 'AAC') > ) as foobar > > This has been used without any problem. > > -Pena > > > Carlos Ruiz [boolean10001 at yahoo.com] kirjoitti: > > Pena, > > > > Can you post your query ? > > > > You can use: > > > > DATA "the_geom FROM
"in the traditional way > > > > > > Or, if you're using a query or a view datasource, you can use: > > > > DATA "the_geom FROM | AS USING UNIQUE USING SRID= > > > > Cheers from M?xico > > > > > > IC Carlos Ruiz > > > > > > > > ________________________________ > > From: Pena Kupen > > To: mapserver-users at lists.osgeo.org > > Sent: Thursday, July 14, 2011 2:59 AM > > Subject: [mapserver-users] Using unique > > > > Sorry doubleposting! There where little "copy/paste-error". You can ignore prior... > > > > -Pena > > > > > > Hello all, > > > > I'm just upgrading our system from mapserver 5.4.2 to 5.6.6. > > In some of our layer queries, I got now error: > > msPostGISParseData(): Query error. Error parsing PostGIS DATA variable. You must specifiy 'using unique' when supplying a subselect in the data definition. > > When using 5.4.2, this is not happaning and maps are working ok. > > > > On mapserver/postgis manual (http://mapserver.org/input/vector/postgis.html) it says: > > The DATA parameter is used to specify the data used to draw the map. The form of DATA is [geometry_column] from [table_name|sql_subquery] using unique [unique_key] using srid=[spatial_reference_id] . The using unique and using srid= clauses are optional, but using them improves performance. > > > > Is this a bug or why I cannot anymore use queries without "using unique"? > > > > -Pena > > > > > > -- Wippies-vallankumous on t??ll?! Varmista paikkasi vallankumouksen eturintamassa ja liity Wippiesiin heti! > > http://www.wippies.com/ > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- > Wippies-vallankumous on t??ll?! Varmista paikkasi vallankumouksen eturintamassa ja liity Wippiesiin heti! > http://www.wippies.com/ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Wippies-vallankumous on t??ll?! Varmista paikkasi vallankumouksen eturintamassa ja liity Wippiesiin heti! http://www.wippies.com/ From mario.franco at ydreams.com Fri Jul 15 03:14:08 2011 From: mario.franco at ydreams.com (Mario Franco) Date: Fri, 15 Jul 2011 11:14:08 +0100 Subject: [mapserver-users] Expression and nquery with sde issue Message-ID: <4E2012F0.9050101@ydreams.com> Hi, I having two issues with mapserver if anyone can help me I would be appreciated. The first has to do with an Expression in a class: I have a shape with an attribute with the 172060.0937 but when add to the class: > EXPRESSION ( [AREA] = 172060.0937 ) The problem is that this expression returns false because mapserver is rounding the double value from the database. If I compare with: > EXPRESSION ( [AREA] = 172060) it works. There is any way to turn this off or to increase the precision? The second issue is: I'm using this url (http://localhost:82/cgi-bin/mapserv.exe?map=D%3a\projects\Inag\InterSIG+II\InterSIG+Website\Trunk\InterSIG+ASP.NET\Maps%2fintersig_281.map&qlayer=Concelhos&layers=Concelhos&MAPSIZE=629%20467&MINX=-232614.525612302&MINY=-49761.6088409424&MAXX=676601.080299802&MAXY=625284&mode=NQUERY&MAPSHAPE=POLYGON%28%28-232614%20-49761,%20-232614%20625284,%20676601%20625284,%20676601%20-49761,%20-232614%20-49761%29%29) to execute a nquery but I always get the error "msSDELayerGetShape(): SDE error. SE_stream_fetch_row(): Invalid parameter value passed to function. (-66) " The log doesn't help that much: > [Fri Jul 15 10:47:19 2011].20000 msSDELayerOpen(): Layer Concelhos > opened from scratch. > [Fri Jul 15 10:47:23 2011].35000 > msConnPoolRegister(Concelhos,ydinag2,port:5151,sde,sde,sde,01D6BCC0) > [Fri Jul 15 10:47:23 2011].35000 msSDELayerOpen(): Layer Concelhos > specified version SDE.DEFAULT. > [Fri Jul 15 10:47:23 2011].42000 msSDEGetLayerInfo(): Looking for > layer by SDE.CONCELH_PTCONT_2008_0_596, SHAPE, > ydinag2,port:5151,sde,sde,sde > [Fri Jul 15 10:47:23 2011].42000 msSDEGetLayerInfo(): No cached > layerid found. > [Fri Jul 15 10:47:23 2011].63000 msSDELCacheAdd(): Caching id for > SDE.CONCELH_PTCONT_2008_0_596, SHAPE, ydinag2,port:5151,sde,sde,sde > [Fri Jul 15 10:47:23 2011].72000 Getting all column information in > msSDELayerInitItemInfo > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting > info for DICO > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting > info for CONCELHO > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting > info for DI > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting > info for DISTRITO > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting > info for CCDR > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting > info for NUT3 > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting > info for NUT3_NOME > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting > info for NUT2 > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting > info for NUT2_NOME > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting > info for AREA2008_1 > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting > info for objectid > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting > info for SHAPE > [Fri Jul 15 10:47:23 2011].79000 Column information has already been > gotten... returning from msSDELayerInitItemInfo > [Fri Jul 15 10:47:43 2011].122000 msSDELayerGetShape(): SDE error. > SE_stream_fetch_row(): Invalid parameter value passed to function. (-66) > [Fri Jul 15 10:47:43 2011].126000 msFreeMap(): freeing map at 01D3EFE8. > [Fri Jul 15 10:47:43 2011].126000 msSDELayerCloseConnection(): Closing > connection for layer Concelhos. > [Fri Jul 15 10:47:43 2011].126000 > msConnPoolRelease(Concelhos,ydinag2,port:5151,sde,sde,sde,01D6BCC0) > [Fri Jul 15 10:47:43 2011].126000 > msConnPoolClose(ydinag2,port:5151,sde,sde,sde,01D6BCC0) > [Fri Jul 15 10:47:43 2011].156000 msSDELayerClose(): Closing layer > Concelhos. > [Fri Jul 15 10:47:43 2011].156000 > msConnPoolRelease(Concelhos,ydinag2,port:5151,sde,sde,sde,00000000) > [Fri Jul 15 10:47:43 2011].156000 msConnPoolRelease(): Unable to find > handle for layer 'Concelhos'. > [Fri Jul 15 10:47:43 2011].156000 msConnPoolRelease(): General error > message. Unable to find handle for layer 'Concelhos'. Here part of my configuration: > LAYER > NAME "Concelhos" > METADATA > "wms_title" "Concelhos" # required > "wfs_title" "Concelhos" # required > "gml_featureid" "ID" ## REQUIRED > "gml_geometries" "geom" > "gml_geom_type" "polygon" > "gml_include_items" "all" # Optional (serves all attributes for layer) > "gml_exclude_items" "GEOMETRY,OBJECTID" > "ows_include_items" "all" > "ows_exclude_items" "GEOMETRY,OBJECTID" > END > DUMP true > TOLERANCE 10 > TOLERANCEUNITS meters > > TYPE polygon > > #CONNECTIONTYPE SDE > CONNECTIONTYPE PLUGIN > PLUGIN "D:/ms4w/Apache/specialplugins/msplugin_sde_92.dll" > CONNECTION "ydinag2,port:5151,sde,sde,sde" > > DATA "SDE.CONCELH_PTCONT_2008_0_596,SHAPE,SDE.DEFAULT" > > PROJECTION > "init=EPSG:3763" #--sistema de coordenadas desta layer na origem > END > > STATUS ON > OPACITY 100 > TEMPLATE '../Templates/Identify/t.html' I'm using Mapserver 5.6.3, I know it's not the latest but I didn't updated yet. Any help would be useful and thx in advance. M?rio Franco -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdlime at gmail.com Fri Jul 15 07:23:54 2011 From: sdlime at gmail.com (Steve Lime) Date: Fri, 15 Jul 2011 09:23:54 -0500 Subject: [mapserver-users] Expression and nquery with sde issue In-Reply-To: <4E2012F0.9050101@ydreams.com> References: <4E2012F0.9050101@ydreams.com> Message-ID: <97791A65-53FD-497C-A300-6913D85C2820@gmail.com> On issue one, what version are you using? MapServer shouldn't be rounding the value. The comparison should be being done as a double. It might be helpful to see a sample dataset although if this is SDE I can't test on my end. One thing to try to help diagnose the problem would be to create a sample mapfile that draws your layer and uses the area attribute for labeling. What shows up for labels? Steve Sent from my iPad On Jul 15, 2011, at 5:14 AM, Mario Franco wrote: > Hi, > > I having two issues with mapserver if anyone can help me I would be appreciated. > > The first has to do with an Expression in a class: > > I have a shape with an attribute with the 172060.0937 but when add to the class: > >> EXPRESSION ( [AREA] = 172060.0937 ) > > The problem is that this expression returns false because mapserver is rounding the double value from the database. If I compare with: > >> EXPRESSION ( [AREA] = 172060) > > it works. There is any way to turn this off or to increase the precision? > > > > The second issue is: > > I'm using this url (http://localhost:82/cgi-bin/mapserv.exe?map=D%3a\projects\Inag\InterSIG+II\InterSIG+Website\Trunk\InterSIG+ASP.NET\Maps%2fintersig_281.map&qlayer=Concelhos&layers=Concelhos&MAPSIZE=629%20467&MINX=-232614.525612302&MINY=-49761.6088409424&MAXX=676601.080299802&MAXY=625284&mode=NQUERY&MAPSHAPE=POLYGON%28%28-232614%20-49761,%20-232614%20625284,%20676601%20625284,%20676601%20-49761,%20-232614%20-49761%29%29) to execute a nquery but I always get the error "msSDELayerGetShape(): SDE error. SE_stream_fetch_row(): Invalid parameter value passed to function. (-66) " > > The log doesn't help that much: > >> [Fri Jul 15 10:47:19 2011].20000 msSDELayerOpen(): Layer Concelhos opened from scratch. >> [Fri Jul 15 10:47:23 2011].35000 msConnPoolRegister(Concelhos,ydinag2,port:5151,sde,sde,sde,01D6BCC0) >> [Fri Jul 15 10:47:23 2011].35000 msSDELayerOpen(): Layer Concelhos specified version SDE.DEFAULT. >> [Fri Jul 15 10:47:23 2011].42000 msSDEGetLayerInfo(): Looking for layer by SDE.CONCELH_PTCONT_2008_0_596, SHAPE, ydinag2,port:5151,sde,sde,sde >> [Fri Jul 15 10:47:23 2011].42000 msSDEGetLayerInfo(): No cached layerid found. >> [Fri Jul 15 10:47:23 2011].63000 msSDELCacheAdd(): Caching id for SDE.CONCELH_PTCONT_2008_0_596, SHAPE, ydinag2,port:5151,sde,sde,sde >> [Fri Jul 15 10:47:23 2011].72000 Getting all column information in msSDELayerInitItemInfo >> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for DICO >> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for CONCELHO >> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for DI >> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for DISTRITO >> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for CCDR >> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for NUT3 >> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for NUT3_NOME >> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for NUT2 >> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for NUT2_NOME >> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for AREA2008_1 >> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for objectid >> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for SHAPE >> [Fri Jul 15 10:47:23 2011].79000 Column information has already been gotten... returning from msSDELayerInitItemInfo >> [Fri Jul 15 10:47:43 2011].122000 msSDELayerGetShape(): SDE error. SE_stream_fetch_row(): Invalid parameter value passed to function. (-66) >> [Fri Jul 15 10:47:43 2011].126000 msFreeMap(): freeing map at 01D3EFE8. >> [Fri Jul 15 10:47:43 2011].126000 msSDELayerCloseConnection(): Closing connection for layer Concelhos. >> [Fri Jul 15 10:47:43 2011].126000 msConnPoolRelease(Concelhos,ydinag2,port:5151,sde,sde,sde,01D6BCC0) >> [Fri Jul 15 10:47:43 2011].126000 msConnPoolClose(ydinag2,port:5151,sde,sde,sde,01D6BCC0) >> [Fri Jul 15 10:47:43 2011].156000 msSDELayerClose(): Closing layer Concelhos. >> [Fri Jul 15 10:47:43 2011].156000 msConnPoolRelease(Concelhos,ydinag2,port:5151,sde,sde,sde,00000000) >> [Fri Jul 15 10:47:43 2011].156000 msConnPoolRelease(): Unable to find handle for layer 'Concelhos'. >> [Fri Jul 15 10:47:43 2011].156000 msConnPoolRelease(): General error message. Unable to find handle for layer 'Concelhos'. > > > Here part of my configuration: >> LAYER >> NAME "Concelhos" >> METADATA >> "wms_title" "Concelhos" # required >> "wfs_title" "Concelhos" # required >> "gml_featureid" "ID" ## REQUIRED >> "gml_geometries" "geom" >> "gml_geom_type" "polygon" >> "gml_include_items" "all" # Optional (serves all attributes for layer) >> "gml_exclude_items" "GEOMETRY,OBJECTID" >> "ows_include_items" "all" >> "ows_exclude_items" "GEOMETRY,OBJECTID" >> END >> DUMP true >> TOLERANCE 10 >> TOLERANCEUNITS meters >> >> TYPE polygon >> >> #CONNECTIONTYPE SDE >> CONNECTIONTYPE PLUGIN >> PLUGIN "D:/ms4w/Apache/specialplugins/msplugin_sde_92.dll" >> CONNECTION "ydinag2,port:5151,sde,sde,sde" >> >> DATA "SDE.CONCELH_PTCONT_2008_0_596,SHAPE,SDE.DEFAULT" >> >> PROJECTION >> "init=EPSG:3763" #--sistema de coordenadas desta layer na origem >> END >> >> STATUS ON >> OPACITY 100 >> TEMPLATE '../Templates/Identify/t.html' > > I'm using Mapserver 5.6.3, I know it's not the latest but I didn't updated yet. > > Any help would be useful and thx in advance. > > M?rio Franco > > _______________________________________________ > 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 sdlime at gmail.com Fri Jul 15 07:30:04 2011 From: sdlime at gmail.com (Steve Lime) Date: Fri, 15 Jul 2011 09:30:04 -0500 Subject: [mapserver-users] Using unique In-Reply-To: <939960850.1351310713542939.JavaMail.kupen@wippies.fi> References: <939960850.1351310713542939.JavaMail.kupen@wippies.fi> Message-ID: <748854C4-7530-4359-8CA4-546A590E71CB@gmail.com> I've always used unique with PostGIS so it's not a surprise. The one-pass query stuff added in 5.6 probably the culprit. You might file a ticket just in case and the PostGIS devs can comment. I'm curious if 6.0 also behaves this way? (make sure to upgrade to 5.6.7!) -Steve Sent from my iPad On Jul 15, 2011, at 2:05 AM, Pena Kupen wrote: > Hi again, > > I'm answering to my by myself :-) > > When I add to the end of my query "using unique" as: > " as foobar using unique oid " > then query is again running ok. I also tried it with older version of Mapserver (5.4.2). Both versions are working ok with it. > > After some debugging of version 5.6.6, it seems to me , that in query, there is missing last right parenthesis if "using unique" is omitted. Some bug? > > -Pena > > Pena Kupen [kupen at wippies.fi] kirjoitti: >> Hello Carlos and all, >> I'm using query, which is little cryptic. >> location from ( >> select h.location, h.oid, k.expla, h.date1, h.expla, h.total, ku.locationname as name from (select pa.location, ha.type_id as oid, ha.date1, pa_n.name, pa_n.location_id, ha.car_id, ha.total from pa join ha on ha.ha_pa_id = pa.pa_id left join pa_n on pa.pa_id = pa_n.pa_id where ha.type_id = 121557 and status='11' and ha.is_valid is NULL >> ) as h >> left join ku on h.ku_id=ku.ku_id left join k on h.type_id = k.type_id where k.code='sc' and syno=false and (h.ku_id = 'AAC') >> ) as foobar >> This has been used without any problem. >> -Pena >> Carlos Ruiz [boolean10001 at yahoo.com] kirjoitti: > Pena, >> > > Can you post your query ? >> > > You can use: >> > > DATA "the_geom FROM
"in the traditional way >> > > > Or, if you're using a query or a view datasource, you can use: >> > > DATA "the_geom FROM | AS USING UNIQUE USING SRID= >> > > Cheers from M?xico >> > > > IC Carlos Ruiz >> > > > > ________________________________ >> > From: Pena Kupen >> > To: mapserver-users at lists.osgeo.org >> > Sent: Thursday, July 14, 2011 2:59 AM >> > Subject: [mapserver-users] Using unique >> > > Sorry doubleposting! There where little "copy/paste-error". You can ignore prior... >> > > -Pena >> > > > Hello all, >> > > I'm just upgrading our system from mapserver 5.4.2 to 5.6.6. >> > In some of our layer queries, I got now error: >> > msPostGISParseData(): Query error. Error parsing PostGIS DATA variable. You must specifiy 'using unique' when supplying a subselect in the data definition. >> > When using 5.4.2, this is not happaning and maps are working ok. >> > > On mapserver/postgis manual (http://mapserver.org/input/vector/postgis.html) it says: >> > The DATA parameter is used to specify the data used to draw the map. The form of DATA is [geometry_column] from [table_name|sql_subquery] using unique [unique_key] using srid=[spatial_reference_id] . The using unique and using srid= clauses are optional, but using them improves performance. >> > > Is this a bug or why I cannot anymore use queries without "using unique"? >> > > -Pena >> > > > -- Wippies-vallankumous on t??ll?! Varmista paikkasi vallankumouksen eturintamassa ja liity Wippiesiin heti! >> > http://www.wippies.com/ >> > > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> -- >> Wippies-vallankumous on t??ll?! Varmista paikkasi vallankumouksen eturintamassa ja liity Wippiesiin heti! >> http://www.wippies.com/ >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- > Wippies-vallankumous on t??ll?! Varmista paikkasi vallankumouksen eturintamassa ja liity Wippiesiin heti! > http://www.wippies.com/ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From mario.franco at ydreams.com Fri Jul 15 07:38:55 2011 From: mario.franco at ydreams.com (Mario Franco) Date: Fri, 15 Jul 2011 15:38:55 +0100 Subject: [mapserver-users] Expression and nquery with sde issue In-Reply-To: <97791A65-53FD-497C-A300-6913D85C2820@gmail.com> References: <4E2012F0.9050101@ydreams.com> <97791A65-53FD-497C-A300-6913D85C2820@gmail.com> Message-ID: <4E2050FF.9030307@ydreams.com> The version is Mapserver 5.6.3 and using the attribute as label was how find out the values were being rounded. For example the attribute has values from 1000 to 170000 and if the value is smaller than 100000 rounds the value with one decimal but above 100000 rounds to and integer. I'm using sqlserver with the SDE and the atrribute type is numeric could this have anything to do with it? M?rio On 15-07-2011 15:23, Steve Lime wrote: > On issue one, what version are you using? MapServer shouldn't be > rounding the value. The comparison should be being done as a double. > It might be helpful to see a sample dataset although if this is SDE I > can't test on my end. One thing to try to help diagnose the problem > would be to create a sample mapfile that draws your layer and uses the > area attribute for labeling. What shows up for labels? > > Steve > > Sent from my iPad > > On Jul 15, 2011, at 5:14 AM, Mario Franco > wrote: > >> Hi, >> >> I having two issues with mapserver if anyone can help me I would be >> appreciated. >> >> The first has to do with an Expression in a class: >> >> I have a shape with an attribute with the 172060.0937 but when add to >> the class: >> >>> EXPRESSION ( [AREA] = 172060.0937 ) >> >> The problem is that this expression returns false because mapserver >> is rounding the double value from the database. If I compare with: >> >>> EXPRESSION ( [AREA] = 172060) >> >> it works. There is any way to turn this off or to increase the precision? >> >> >> >> The second issue is: >> >> I'm using this url >> (http://localhost:82/cgi-bin/mapserv.exe?map=D%3a\projects\Inag\InterSIG+II\InterSIG+Website\Trunk\InterSIG+ASP.NET\Maps%2fintersig_281.map&qlayer=Concelhos&layers=Concelhos&MAPSIZE=629%20467&MINX=-232614.525612302&MINY=-49761.6088409424&MAXX=676601.080299802&MAXY=625284&mode=NQUERY&MAPSHAPE=POLYGON%28%28-232614%20-49761,%20-232614%20625284,%20676601%20625284,%20676601%20-49761,%20-232614%20-49761%29%29 >> ) >> to execute a nquery but I always get the error "msSDELayerGetShape(): >> SDE error. SE_stream_fetch_row(): Invalid parameter value passed to >> function. (-66) " >> >> The log doesn't help that much: >> >>> [Fri Jul 15 10:47:19 2011].20000 msSDELayerOpen(): Layer Concelhos >>> opened from scratch. >>> [Fri Jul 15 10:47:23 2011].35000 >>> msConnPoolRegister(Concelhos,ydinag2,port:5151,sde,sde,sde,01D6BCC0) >>> [Fri Jul 15 10:47:23 2011].35000 msSDELayerOpen(): Layer Concelhos >>> specified version SDE.DEFAULT. >>> [Fri Jul 15 10:47:23 2011].42000 msSDEGetLayerInfo(): Looking for >>> layer by SDE.CONCELH_PTCONT_2008_0_596, SHAPE, >>> ydinag2,port:5151,sde,sde,sde >>> [Fri Jul 15 10:47:23 2011].42000 msSDEGetLayerInfo(): No cached >>> layerid found. >>> [Fri Jul 15 10:47:23 2011].63000 msSDELCacheAdd(): Caching id for >>> SDE.CONCELH_PTCONT_2008_0_596, SHAPE, ydinag2,port:5151,sde,sde,sde >>> [Fri Jul 15 10:47:23 2011].72000 Getting all column information in >>> msSDELayerInitItemInfo >>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting >>> info for DICO >>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting >>> info for CONCELHO >>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting >>> info for DI >>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting >>> info for DISTRITO >>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting >>> info for CCDR >>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting >>> info for NUT3 >>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting >>> info for NUT3_NOME >>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting >>> info for NUT2 >>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting >>> info for NUT2_NOME >>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting >>> info for AREA2008_1 >>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting >>> info for objectid >>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting >>> info for SHAPE >>> [Fri Jul 15 10:47:23 2011].79000 Column information has already been >>> gotten... returning from msSDELayerInitItemInfo >>> [Fri Jul 15 10:47:43 2011].122000 msSDELayerGetShape(): SDE error. >>> SE_stream_fetch_row(): Invalid parameter value passed to function. (-66) >>> [Fri Jul 15 10:47:43 2011].126000 msFreeMap(): freeing map at 01D3EFE8. >>> [Fri Jul 15 10:47:43 2011].126000 msSDELayerCloseConnection(): >>> Closing connection for layer Concelhos. >>> [Fri Jul 15 10:47:43 2011].126000 >>> msConnPoolRelease(Concelhos,ydinag2,port:5151,sde,sde,sde,01D6BCC0) >>> [Fri Jul 15 10:47:43 2011].126000 >>> msConnPoolClose(ydinag2,port:5151,sde,sde,sde,01D6BCC0) >>> [Fri Jul 15 10:47:43 2011].156000 msSDELayerClose(): Closing layer >>> Concelhos. >>> [Fri Jul 15 10:47:43 2011].156000 >>> msConnPoolRelease(Concelhos,ydinag2,port:5151,sde,sde,sde,00000000) >>> [Fri Jul 15 10:47:43 2011].156000 msConnPoolRelease(): Unable to >>> find handle for layer 'Concelhos'. >>> [Fri Jul 15 10:47:43 2011].156000 msConnPoolRelease(): General error >>> message. Unable to find handle for layer 'Concelhos'. >> >> >> Here part of my configuration: >>> LAYER >>> NAME "Concelhos" >>> METADATA >>> "wms_title" "Concelhos" # required >>> "wfs_title" "Concelhos" # required >>> "gml_featureid" "ID" ## REQUIRED >>> "gml_geometries" "geom" >>> "gml_geom_type" "polygon" >>> "gml_include_items" "all" # Optional (serves all attributes for layer) >>> "gml_exclude_items" "GEOMETRY,OBJECTID" >>> "ows_include_items" "all" >>> "ows_exclude_items" "GEOMETRY,OBJECTID" >>> END >>> DUMP true >>> TOLERANCE 10 >>> TOLERANCEUNITS meters >>> >>> TYPE polygon >>> >>> #CONNECTIONTYPE SDE >>> CONNECTIONTYPE PLUGIN >>> PLUGIN "D:/ms4w/Apache/specialplugins/msplugin_sde_92.dll" >>> CONNECTION "ydinag2,port:5151,sde,sde,sde" >>> >>> DATA "SDE.CONCELH_PTCONT_2008_0_596,SHAPE,SDE.DEFAULT" >>> >>> PROJECTION >>> "init=EPSG:3763" #--sistema de coordenadas desta layer na origem >>> END >>> >>> STATUS ON >>> OPACITY 100 >>> TEMPLATE '../Templates/Identify/t.html' >> >> I'm using Mapserver 5.6.3, I know it's not the latest but I didn't >> updated yet. >> >> Any help would be useful and thx in advance. >> >> M?rio Franco >> >> _______________________________________________ >> 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 David.Hunter at lpsvcs.com Fri Jul 15 09:39:22 2011 From: David.Hunter at lpsvcs.com (Hunter, David) Date: Fri, 15 Jul 2011 12:39:22 -0400 Subject: [mapserver-users] MapServer CGI problem with tomcat 6/7 Message-ID: <42DC449100A72A4C8BCAADC1DA3709A2C25939585D@JTCLPSMAIL01.lpsvcs.com> I have a custom web application that uses MapServer CGI to display maps. It currently runs under Tomcat 5 ok. However, when trying to migrate to Tomcat 6 or 7, I run into a problem that seems to be specific to mapserv.exe. When I make a call to CATALINA_HOME/cgi-bin/mapserv.exe, the browser displays a blank page and the log shows the response as "200 -" (response="OK, zero byte length"). When I call other executables, they respond as expected (such as CATALINA_HOME/cgi-bin/gifsample.exe), it is just mapserv.exe that returns zero bytes, so the CGI configuration in Tomcat seems to be OK. I tried mapserv.exe at the command line, and it responds as expected, so it seems to be installed correctly At this point, I'm assuming that there is some kind of configuration setting (valve?) in Tomcat 6.0 and 7.0 that needs to set or tweaked, but I've run into a wall trying to figure out what the might be. Anybody out there with any ideas? David S. Hunter Lead Software Engineer LPS Insurance Risk Management Services Lender Processing Services, Inc. 5353 Gamble Drive, Suite 201 Saint Louis Park, MN 55416 Office: 952.542.1440 ext. 256 Fax: 952.542.3859 david.hunter at lpsvcs.com www.lpsvcs.com The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From joanne.mcgraw at SYMPATICO.CA Fri Jul 15 10:22:28 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Fri, 15 Jul 2011 10:22:28 -0700 (PDT) Subject: [mapserver-users] Mapfile layer not displaying in MapServer 6.0.1 (does in 5.4) Message-ID: <1310750548443-6587562.post@n2.nabble.com> I'm having a problem upgrading from MapServer 5.4 to 6.0.1, so thought I'd start from scratch trying to isolate my ultimate problem. To start, all I am trying to do is display a simple Mapfile line layer in my browser. I have (what I believe to be) the simplest Mapfile I can make that allows me to do a mode=map display in 5.4. But, when I try to use the same Mapfile with the 6.0.1 installation, the layer does not display. I have reviewed the "MapServer Migration Guide" and the online 6.0 documentation but can't see anything in this simple Mapfile that would cause the lack of display...although it's probably staring me in the face, I know. Anyway, I don't believe there's an actual "problem" per se (debugging results attached below), I assume there's just a difference between how I'm supposed to define something for 5.4 and how it should be defined for 6.0. The only thing I can think of that might be affecting this is the OUTPUTFORMAT changes but I certainly can't see what the problem might be. I also looked into some of the line styling changes, but don't think any of them apply to this example. I'm hoping another set of eyes (that have more experience with these changes than I) can identify what I am defining incorrectly for 6.0. Cheers, jtm I provide the URL "http:///ogc/joanne?mode=map&layers=Roads25" and when I point to the MapServer 5.4's domain I see the roads layer, but if I point to the MapServer 6.0.1 domain (which is basically the same as the 5.4 environment - essentially a fully complete mirror), the result is an empty image. No errors, no problem; but no roads either. The wrapper file contains: MS_MAPFILE=${MS_APPSPATH}joanne/map/joanne_sub.map export MS_MAPFILE ${MS_CGIBIN}mapserv And the Mapfile "joanne_sub.map" contents are below. It's as simple as I could make it. MAP NAME "mySubMap" FONTSET "../../../mapserv/etc/fonts.txt" SYMBOLSET "../../../mapserv/etc/symbols.sym" SIZE 800 600 IMAGETYPE PNG IMAGECOLOR 255 255 255 EXTENT -2903297.697389 -789911.662978 3431059.382789 3959683.443689 UNITS METERS PROJECTION "init=epsg:42304" END WEB IMAGEPATH "//httpd/htdocs/ogc_tmp/" IMAGEURL "/ogc_tmp/" END #end WEB OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END #end OUTPUTFORMAT LAYER NAME 'Roads25M' TYPE LINE STATUS ON CONNECTION ",,sde,," CONNECTIONTYPE SDE DATA 'XDM_XDATA.TRN_NSF_ROAD_V6_CT25M_R2,SHAPE,SDE.DEFAULT' CLASS STYLE COLOR 0 0 0 END #end STYLE END #end CLASS END #end LAYER END #end MAP 5.4 debug results for "http://<5.4Domain>/ogc/joanne?mode=map&layers=Roads25" request: [Fri Jul 15 12:48:39 2011].722684 msDrawMap(): Layer 0 (Roads25M), 0.742s [Fri Jul 15 12:48:39 2011].722837 msDrawMap(): Drawing Label Cache, 0.000s [Fri Jul 15 12:48:39 2011].722846 msDrawMap() total time: 0.742s [Fri Jul 15 12:48:39 2011].735882 msSaveImage() total time: 0.013s [Fri Jul 15 12:48:39 2011].735953 mapserv request processing time (loadmap not incl.): 0.756s [Fri Jul 15 12:48:39 2011].735960 msFreeMap(): freeing map at 0x8b5f1a0. 6.0.1 debug results for "http://<6.0.1Domain>/ogc/joanne?mode=map&layers=Roads25" request: [Fri Jul 15 12:48:41 2011].658817 msDrawMap(): rendering using outputformat named png (AGG/PNG). [Fri Jul 15 12:48:41 2011].658911 msDrawMap(): WMS/WFS set-up and query, 0.000s [Fri Jul 15 12:48:41 2011].658996 msDrawMap(): Drawing Label Cache, 0.000s [Fri Jul 15 12:48:41 2011].659004 msDrawMap() total time: 0.002s [Fri Jul 15 12:48:41 2011].743425 msSaveImage(stdout) total time: 0.084s [Fri Jul 15 12:48:41 2011].743545 mapserv request processing time (loadmap not incl.): 0.087s [Fri Jul 15 12:48:41 2011].743557 msFreeMap(): freeing map at 0x8261138. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapfile-layer-not-displaying-in-MapServer-6-0-1-does-in-5-4-tp6587562p6587562.html Sent from the Mapserver - User mailing list archive at Nabble.com. From joanne.mcgraw at SYMPATICO.CA Fri Jul 15 10:25:27 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Fri, 15 Jul 2011 10:25:27 -0700 (PDT) Subject: [mapserver-users] Re: Mapfile layer not displaying in MapServer 6.0.1 (does in 5.4) In-Reply-To: <1310750548443-6587562.post@n2.nabble.com> References: <1310750548443-6587562.post@n2.nabble.com> Message-ID: <1310750727931-6587572.post@n2.nabble.com> Oh, I mis-spelled the URL. It's layer=, not layers= "http:///ogc/joanne?mode=map&layer=Roads25" Doesn't matter. Still the same results. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapfile-layer-not-displaying-in-MapServer-6-0-1-does-in-5-4-tp6587562p6587572.html Sent from the Mapserver - User mailing list archive at Nabble.com. From joanne.mcgraw at SYMPATICO.CA Fri Jul 15 14:26:18 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Fri, 15 Jul 2011 14:26:18 -0700 (PDT) Subject: [mapserver-users] Re: Mapfile layer not displaying in MapServer 6.0.1 (does in 5.4) In-Reply-To: <1310750727931-6587572.post@n2.nabble.com> References: <1310750548443-6587562.post@n2.nabble.com> <1310750727931-6587572.post@n2.nabble.com> Message-ID: <1310765178631-6588088.post@n2.nabble.com> I tried making the Mapfile even simpler and removing SDE from the mix. I created a Shapefile of the layer and now the Mapfile is: MAP NAME "mySubMap" FONTSET "../../../mapserv/etc/fonts.txt" SYMBOLSET "../../../mapserv/etc/symbols.sym" SHAPEPATH "//httpd/apps/joanne/data" SIZE 800 600 IMAGETYPE PNG IMAGECOLOR 255 255 255 EXTENT -2903297.697389 -789911.662978 3431059.382789 3959683.443689 UNITS METERS PROJECTION "init=epsg:42304" END WEB IMAGEPATH "//httpd/htdocs/ogc_tmp/" IMAGEURL "/ogc_tmp/" END #end WEB OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END #end OUTPUTFORMAT LAYER NAME 'Roads25M' TYPE LINE STATUS ON DATA "roads" CLASS STYLE COLOR 0 0 0 END #end STYLE END #end CLASS END #end LAYER END #end MAP Still no luck. Works in 5.4; not in 6.0.1. The only other thing I can think of to try next is to actually compile 5.4 and 6.0.1 on the same host and just call them appropriately in the exact same environment. I'll try that next, but if someone sees something glaringly erroneous for a MapServer 6.0 Mapfile I'd appreciate a heads-up. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapfile-layer-not-displaying-in-MapServer-6-0-1-does-in-5-4-tp6587562p6588088.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sdlime at gmail.com Fri Jul 15 20:52:55 2011 From: sdlime at gmail.com (Steve Lime) Date: Fri, 15 Jul 2011 22:52:55 -0500 Subject: [mapserver-users] Re: Mapfile layer not displaying in MapServer 6.0.1 (does in 5.4) In-Reply-To: <1310765178631-6588088.post@n2.nabble.com> References: <1310750548443-6587562.post@n2.nabble.com> <1310750727931-6587572.post@n2.nabble.com> <1310765178631-6588088.post@n2.nabble.com> Message-ID: Couple of things to try... Try removing the output format and just use "IMAGETYPE PNG24". Also, what does the symbol file look like? Steve On Fri, Jul 15, 2011 at 4:26 PM, myOpenLayersUName < joanne.mcgraw at sympatico.ca> wrote: > I tried making the Mapfile even simpler and removing SDE from the mix. I > created a Shapefile of the layer and now the Mapfile is: > > > MAP > NAME "mySubMap" > FONTSET "../../../mapserv/etc/fonts.txt" > SYMBOLSET "../../../mapserv/etc/symbols.sym" > > SHAPEPATH "//httpd/apps/joanne/data" > > SIZE 800 600 > IMAGETYPE PNG > IMAGECOLOR 255 255 255 > > EXTENT -2903297.697389 -789911.662978 3431059.382789 3959683.443689 > > UNITS METERS > PROJECTION > "init=epsg:42304" > END > > WEB > IMAGEPATH "//httpd/htdocs/ogc_tmp/" > IMAGEURL "/ogc_tmp/" > END #end WEB > > OUTPUTFORMAT > NAME 'AGG' > DRIVER AGG/PNG > MIMETYPE "image/png" > IMAGEMODE RGB > EXTENSION "png" > END #end OUTPUTFORMAT > > LAYER > NAME 'Roads25M' > TYPE LINE > STATUS ON > > DATA "roads" > > CLASS > STYLE > COLOR 0 0 0 > END #end STYLE > END #end CLASS > END #end LAYER > END #end MAP > > > Still no luck. Works in 5.4; not in 6.0.1. > > The only other thing I can think of to try next is to actually compile 5.4 > and 6.0.1 on the same host and just call them appropriately in the exact > same environment. I'll try that next, but if someone sees something > glaringly erroneous for a MapServer 6.0 Mapfile I'd appreciate a heads-up. > > > > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Mapfile-layer-not-displaying-in-MapServer-6-0-1-does-in-5-4-tp6587562p6588088.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 amrzakaria73 at hotmail.com Sun Jul 17 10:05:52 2011 From: amrzakaria73 at hotmail.com (Amr Zakaria) Date: Sun, 17 Jul 2011 17:05:52 +0000 Subject: [mapserver-users] RE: mapserver-users Digest, Vol 42, Issue 39 In-Reply-To: <20110717160011.C93D8E01E86@lists.osgeo.org> References: <20110717160011.C93D8E01E86@lists.osgeo.org> Message-ID: 1- How to show and hide layer? 2- Can i create the map file dynamic? 3- Can i use MapServer as tile server? Best VB programmer , Azz. -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at gmail.com Sun Jul 17 12:35:32 2011 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Sun, 17 Jul 2011 13:35:32 -0600 Subject: [mapserver-users] defresolution & resolution in 6.0 Message-ID: When I use defresolution & resolution in MapServer 6.0 on lines with a width of 1 nothing is displayed. Specifically I am using: map.defresolution=96&map.resolution=144 on a polygon layer defined as: CLASS NAME "Lot and Parcel Lines" STYLE OUTLINECOLOR 255 0 0 WIDTH 1 END END Example (works): http://maps.hscounty.com/cgi-bin/mapserv.exe?map=MAP_15_MAIN&layers=ownership&mode=map Example, with defresolution & resolution doesn't work: http://maps.hscounty.com/cgi-bin/mapserv.exe?map=MAP_15_MAIN&layers=ownership&mode=map&map.defresolution=96&map.resolution=144 Any insight would be appreciated. Thanks, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From kupen at wippies.fi Sun Jul 17 22:24:24 2011 From: kupen at wippies.fi (Pena Kupen) Date: Mon, 18 Jul 2011 08:24:24 +0300 (EEST) Subject: [mapserver-users] Using unique Message-ID: <1268641575.1591310966664220.JavaMail.kupen@wippies.fi> Thank's Steve, I have updated to 5.6.7, which working same way! -Pena Steve Lime [sdlime at gmail.com] kirjoitti: > I've always used unique with PostGIS so it's not a surprise. The one-pass query stuff added in 5.6 probably the culprit. You might file a ticket just in case and the PostGIS devs can comment. I'm curious if 6.0 also behaves this way? (make sure to upgrade to 5.6.7!) -Steve > > Sent from my iPad > > On Jul 15, 2011, at 2:05 AM, Pena Kupen wrote: > > > Hi again, > > > > I'm answering to my by myself :-) > > > > When I add to the end of my query "using unique" as: > > " as foobar using unique oid " > > then query is again running ok. I also tried it with older version of Mapserver (5.4.2). Both versions are working ok with it. > > > > After some debugging of version 5.6.6, it seems to me , that in query, there is missing last right parenthesis if "using unique" is omitted. Some bug? > > > > -Pena > > > > Pena Kupen [kupen at wippies.fi] kirjoitti: > >> Hello Carlos and all, > >> I'm using query, which is little cryptic. > >> location from ( > >> select h.location, h.oid, k.expla, h.date1, h.expla, h.total, ku.locationname as name from (select pa.location, ha.type_id as oid, ha.date1, pa_n.name, pa_n.location_id, ha.car_id, ha.total from pa join ha on ha.ha_pa_id = pa.pa_id left join pa_n on pa.pa_id = pa_n.pa_id where ha.type_id = 121557 and status='11' and ha.is_valid is NULL > >> ) as h > >> left join ku on h.ku_id=ku.ku_id left join k on h.type_id = k.type_id where k.code='sc' and syno=false and (h.ku_id = 'AAC') > >> ) as foobar > >> This has been used without any problem. > >> -Pena > >> Carlos Ruiz [boolean10001 at yahoo.com] kirjoitti: > Pena, > >> > > Can you post your query ? > >> > > You can use: > >> > > DATA "the_geom FROM
"in the traditional way > >> > > > Or, if you're using a query or a view datasource, you can use: > >> > > DATA "the_geom FROM | AS USING UNIQUE USING SRID= > >> > > Cheers from M?xico > >> > > > IC Carlos Ruiz > >> > > > > ________________________________ > >> > From: Pena Kupen > >> > To: mapserver-users at lists.osgeo.org > >> > Sent: Thursday, July 14, 2011 2:59 AM > >> > Subject: [mapserver-users] Using unique > >> > > Sorry doubleposting! There where little "copy/paste-error". You can ignore prior... > >> > > -Pena > >> > > > Hello all, > >> > > I'm just upgrading our system from mapserver 5.4.2 to 5.6.6. > >> > In some of our layer queries, I got now error: > >> > msPostGISParseData(): Query error. Error parsing PostGIS DATA variable. You must specifiy 'using unique' when supplying a subselect in the data definition. > >> > When using 5.4.2, this is not happaning and maps are working ok. > >> > > On mapserver/postgis manual (http://mapserver.org/input/vector/postgis.html) it says: > >> > The DATA parameter is used to specify the data used to draw the map. The form of DATA is [geometry_column] from [table_name|sql_subquery] using unique [unique_key] using srid=[spatial_reference_id] . The using unique and using srid= clauses are optional, but using them improves performance. > >> > > Is this a bug or why I cannot anymore use queries without "using unique"? > >> > > -Pena > >> > > > -- Wippies-vallankumous on t??ll?! Varmista paikkasi vallankumouksen eturintamassa ja liity Wippiesiin heti! > >> > http://www.wippies.com/ > >> > > _______________________________________________ > >> > mapserver-users mailing list > >> > mapserver-users at lists.osgeo.org > >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> -- > >> Wippies-vallankumous on t??ll?! Varmista paikkasi vallankumouksen eturintamassa ja liity Wippiesiin heti! > >> http://www.wippies.com/ > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > -- > > Wippies-vallankumous on t??ll?! Varmista paikkasi vallankumouksen eturintamassa ja liity Wippiesiin heti! > > http://www.wippies.com/ > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Wippies-vallankumous on t??ll?! Varmista paikkasi vallankumouksen eturintamassa ja liity Wippiesiin heti! http://www.wippies.com/ From boolean10001 at yahoo.com Mon Jul 18 07:47:09 2011 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Mon, 18 Jul 2011 07:47:09 -0700 (PDT) Subject: [mapserver-users] RE: mapserver-users Digest, Vol 42, Issue 39 In-Reply-To: References: <20110717160011.C93D8E01E86@lists.osgeo.org> Message-ID: <1311000429.70608.YahooMailNeo@web38205.mail.mud.yahoo.com> Amr, 1 - You can show and hide a layer changing its status:oLayer->set("STATUS", MS_ON | MS_OFF) 2 - Yes, you can create and build a map dynamically. The third one I don't know. I never have used Mapserver as tile server. ? IC Carlos Ruiz ________________________________ From: Amr Zakaria To: mapserver Sent: Sunday, July 17, 2011 12:05 PM Subject: [mapserver-users] RE: mapserver-users Digest, Vol 42, Issue 39 1- How to show and hide layer? 2- Can i create the map file dynamic? 3- Can i use MapServer as tile server? Best VB programmer , Azz. _______________________________________________ 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 amrzakaria73 at hotmail.com Sat Jul 16 15:26:54 2011 From: amrzakaria73 at hotmail.com (Amr Zakaria) Date: Sat, 16 Jul 2011 22:26:54 +0000 Subject: [mapserver-users] software for mapscript under windows 32 bit In-Reply-To: <20110716160021.5F328E02461@lists.osgeo.org> References: <20110716160021.5F328E02461@lists.osgeo.org> Message-ID: Hi , I hope you like my work, this software need dotnet frmwork 3.5 to work , i develop it for mapserver script , please test it and give me your commit to fix it. Best VB programmer , Azz. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: MapSever5.6.rar Type: application/octet-stream Size: 45237 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: MapScript.jpg Type: image/jpeg Size: 84533 bytes Desc: not available URL: From Michael.Smith at usace.army.mil Mon Jul 18 07:49:34 2011 From: Michael.Smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Mon, 18 Jul 2011 14:49:34 +0000 Subject: [mapserver-users] defresolution and resolution issues in Mapserver 6 Message-ID: All, I'm seeing symbol scaling and label size/placement issues (see images and pdfs for differences) when trying to scale up for higher resolution output. Font size is scaling properly but the symbols are larger at higher dpi than it should be and labels are not being displayed (perhaps due to label buffer issues) at the higher dpi. Are there additional settings I should be making beyond setting resolution and defresolution? Example URLs http://localgost/cgi-bin/mapserv6?TRANSPARENT=true&map_resolution=72&MAP_IMAGETYPE=png&MAPEXT=-8043793.5+5411335.5+-8041721.0+5413610.5&map_defresolution=72&MAP_SIZE=440+483&LAYERS=watersmap&MODE=map&MAP=cm2_test.map http://localhost/cgi-bin/mapserv6?TRANSPARENT=true&map_resolution=144&MAP_IMAGETYPE=png&MAPEXT=-8043793.5+5411335.5+-8041721.0+5413610.5&map_defresolution=72&MAP_SIZE=880+966&LAYERS=watersmap&MODE=map&MAP=cm2_test.map Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserv6_144dpi.png Type: image/png Size: 39425 bytes Desc: mapserv6_144dpi.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserv6_72dpi.png Type: image/png Size: 16970 bytes Desc: mapserv6_72dpi.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserver6_1244dpi.pdf Type: application/pdf Size: 113898 bytes Desc: mapserver6_1244dpi.pdf URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserver_72dpi.pdf Type: application/pdf Size: 55572 bytes Desc: mapserver_72dpi.pdf URL: From thomas.bonfort at gmail.com Mon Jul 18 09:44:45 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 18 Jul 2011 18:44:45 +0200 Subject: [mapserver-users] defresolution and resolution issues in Mapserver 6 In-Reply-To: References: Message-ID: Mike, I am not able to reproduce with the msautotest tests: These are the steps I have taken, in msautotest/renderers - mapserv -nh QUERY_STRING='map=point_ellipse.map&mode=map&map_resolution=144&map_size=800+600' > result/point_ellipse.png.png - convert -scale 50% result/point_ellipse.png.png result/point_ellipse.png.png - compare visually expected/point_ellipse.png.png result/point_ellipse.png.png which should be nearly identical ps: I've added the labels-anno.map test in case the problem you werre having only affects annotation layers, but that does not seem to be the case. -- thomas On Mon, Jul 18, 2011 at 16:49, Smith, Michael ERDC-CRREL-NH wrote: > All, > I'm seeing symbol scaling and label size/placement issues (see images and > pdfs for differences) when trying to scale up for higher resolution output. > Font size is scaling properly but the symbols are larger at higher dpi than > it should be and labels are not being displayed (perhaps due to label buffer > issues) at the higher dpi. > Are there additional settings I should be making beyond setting resolution > and defresolution? > Example URLs > http://localgost/cgi-bin/mapserv6?TRANSPARENT=true&map_resolution=72&MAP_IMAGETYPE=png&MAPEXT=-8043793.5+5411335.5+-8041721.0+5413610.5&map_defresolution=72&MAP_SIZE=440+483&LAYERS=watersmap&MODE=map&MAP=cm2_test.map > http://localhost/cgi-bin/mapserv6?TRANSPARENT=true&map_resolution=144&MAP_IMAGETYPE=png&MAPEXT=-8043793.5+5411335.5+-8041721.0+5413610.5&map_defresolution=72&MAP_SIZE=880+966&LAYERS=watersmap&MODE=map&MAP=cm2_test.map > Mike > -- > Michael Smith > Remote Sensing/GIS Center > US Army Corps of Engineers > > > > _______________________________________________ > 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 Mon Jul 18 09:49:22 2011 From: Michael.Smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Mon, 18 Jul 2011 16:49:22 +0000 Subject: [mapserver-users] defresolution and resolution issues in Mapserver 6 In-Reply-To: Message-ID: No, they are not annotation layers. I'll pull the latest svn and rebuild and if I still have issues, I'll create a small test case. Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers On 7/18/11 12:44 PM, "thomas bonfort" wrote: >Mike, >I am not able to reproduce with the msautotest tests: > >These are the steps I have taken, in msautotest/renderers >- mapserv -nh >QUERY_STRING='map=point_ellipse.map&mode=map&map_resolution=144&map_size=8 >00+600' >> result/point_ellipse.png.png >- convert -scale 50% result/point_ellipse.png.png >result/point_ellipse.png.png >- compare visually expected/point_ellipse.png.png >result/point_ellipse.png.png which should be nearly identical > >ps: I've added the labels-anno.map test in case the problem you werre >having only affects annotation layers, but that does not seem to be >the case. > >-- >thomas > >On Mon, Jul 18, 2011 at 16:49, Smith, Michael ERDC-CRREL-NH > wrote: >> All, >> I'm seeing symbol scaling and label size/placement issues (see images >>and >> pdfs for differences) when trying to scale up for higher resolution >>output. >> Font size is scaling properly but the symbols are larger at higher dpi >>than >> it should be and labels are not being displayed (perhaps due to label >>buffer >> issues) at the higher dpi. >> Are there additional settings I should be making beyond setting >>resolution >> and defresolution? >> Example URLs >> >>http://localgost/cgi-bin/mapserv6?TRANSPARENT=true&map_resolution=72&MAP_ >>IMAGETYPE=png&MAPEXT=-8043793.5+5411335.5+-8041721.0+5413610.5&map_defres >>olution=72&MAP_SIZE=440+483&LAYERS=watersmap&MODE=map&MAP=cm2_test.map >> >>http://localhost/cgi-bin/mapserv6?TRANSPARENT=true&map_resolution=144&MAP >>_IMAGETYPE=png&MAPEXT=-8043793.5+5411335.5+-8041721.0+5413610.5&map_defre >>solution=72&MAP_SIZE=880+966&LAYERS=watersmap&MODE=map&MAP=cm2_test.map >> Mike >> -- >> Michael Smith >> Remote Sensing/GIS Center >> US Army Corps of Engineers >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> From mrdouville at shaw.ca Mon Jul 18 10:40:34 2011 From: mrdouville at shaw.ca (Michelle Douvil) Date: Mon, 18 Jul 2011 10:40:34 -0700 (PDT) Subject: [mapserver-users] Re: mapscript: read GeoJSON In-Reply-To: References: <4E1D6043.6070202@metrico.lu> Message-ID: <1311010834344-6595651.post@n2.nabble.com> This could be very useful - I wonder if the JSON symbology could be read as well, or if this just reads the features themselves? I am thinking it would be useful to translate JSON symbology to mapfile symbology (or some other processes) for WMS services.. This page doesn't mention anything about symbology http://www.gdal.org/ogr/drv_geojson.html http://www.gdal.org/ogr/drv_geojson.html Any tips on translating JSON symbology to other formats would be greatly appreciated.. Thanks, Michelle -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/mapscript-read-GeoJSON-tp6578460p6595651.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Mon Jul 18 10:52:09 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 18 Jul 2011 19:52:09 +0200 Subject: [mapserver-users] defresolution & resolution in 6.0 In-Reply-To: References: Message-ID: Richard, I was also unable to reproduce your issue (see the similar titled thread initiated by Mike Smith), using the msautotest/renderers/polygon-as-line.map please submit a self-contained test-case where the issue can be reproduced. thanks, thomas On Sun, Jul 17, 2011 at 21:35, Richard Greenwood wrote: > When I use defresolution & resolution in MapServer 6.0 on lines with a > width of 1 nothing is displayed. Specifically I am using: > ? map.defresolution=96&map.resolution=144 > on a polygon layer defined as: > > ?CLASS > ? ?NAME "Lot and Parcel Lines" > ? ?STYLE > ? ? ?OUTLINECOLOR 255 0 0 > ? ? ?WIDTH 1 > ? ?END > ?END > > Example (works): > > http://maps.hscounty.com/cgi-bin/mapserv.exe?map=MAP_15_MAIN&layers=ownership&mode=map > > Example, with defresolution & resolution doesn't work: > > http://maps.hscounty.com/cgi-bin/mapserv.exe?map=MAP_15_MAIN&layers=ownership&mode=map&map.defresolution=96&map.resolution=144 > > Any insight would be appreciated. > > Thanks, > Rich > > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From amrzakaria73 at hotmail.com Mon Jul 18 11:11:08 2011 From: amrzakaria73 at hotmail.com (Amr Zakaria) Date: Mon, 18 Jul 2011 18:11:08 +0000 Subject: [mapserver-users] i make new software for mapscript In-Reply-To: <20110719094022.F0BDAE01F3D@lists.osgeo.org> References: <20110719094022.F0BDAE01F3D@lists.osgeo.org> Message-ID: I make new software to mapsript and i want to be tested . it work's under win 32 and need dotnet farm work 3.5 . Please help me in testing. Best VB programmer , Azz. -------------- next part -------------- An HTML attachment was scrubbed... URL: From joanne.mcgraw at SYMPATICO.CA Mon Jul 18 12:30:05 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Mon, 18 Jul 2011 12:30:05 -0700 (PDT) Subject: [mapserver-users] Re: Mapfile layer not displaying in MapServer 6.0.1 (does in 5.4) In-Reply-To: References: <1310750548443-6587562.post@n2.nabble.com> <1310750727931-6587572.post@n2.nabble.com> <1310765178631-6588088.post@n2.nabble.com> Message-ID: <1311017405401-6596058.post@n2.nabble.com> Steve, Thank you for your suggestions (including the one you sent me directly suggesting "explicitly setting a width in the roads style"). Today, when I went back to this, the request worked without my changing anything in the Mapfile. I have returned the data to be loaded through SDE (not the Shapefile) and it still seems to be working. I hate it when that happens!! The only thing I can think of is that something got cached somewhere along the way on Friday and the requests were never truly being processed as I was changing the Mapfile trying to get it to work. Obviously, somewhere along the way I got the Mapfile contents right, but wasn't seeing it in the browser. Okay, well. I guess I'll continue along the road to try and figure out my real problem now. Sorry for wasting everyone's time but I'll probably be back. Cheers jtm -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapfile-layer-not-displaying-in-MapServer-6-0-1-does-in-5-4-tp6587562p6596058.html Sent from the Mapserver - User mailing list archive at Nabble.com. From richard.greenwood at gmail.com Mon Jul 18 12:31:30 2011 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Mon, 18 Jul 2011 13:31:30 -0600 Subject: [mapserver-users] defresolution & resolution in 6.0 In-Reply-To: References: Message-ID: thomas, Thank you for your reply. This link should produce an image with lines rendered: http://maps.hscounty.com/cgi-bin/mapserv.exe?map=MAP_15_MAIN&layers=ownership&mode=map&map.defresolution=72&map.resolution=144 This is the same except with map.resolution=100 and lines are not rendered, image is blank: http://maps.hscounty.com/cgi-bin/mapserv.exe?map=MAP_15_MAIN&layers=ownership&mode=map&map.defresolution=72&map.resolution=100 When map.defresolution=72, any value for map.resolution between 73 and 143 fails to render lines. Similarly when map.defresolution=10, any value for map.resolution between 11 and 19 fails to render lines. You can easily change defresolution and resolution in the URL yourself to see the behavior. If you consider this a bug I am happy to file a ticket, but I'd like another set of eyes on it before I do so. Thank you, Rich On Mon, Jul 18, 2011 at 11:52 AM, thomas bonfort wrote: > Richard, > I was also unable to reproduce your issue (see the similar titled > thread initiated by Mike Smith), using the > msautotest/renderers/polygon-as-line.map > > please submit a self-contained test-case where the issue can be reproduced. > > thanks, > thomas > > On Sun, Jul 17, 2011 at 21:35, Richard Greenwood > wrote: >> When I use defresolution & resolution in MapServer 6.0 on lines with a >> width of 1 nothing is displayed. Specifically I am using: >> ? map.defresolution=96&map.resolution=144 >> on a polygon layer defined as: >> >> ?CLASS >> ? ?NAME "Lot and Parcel Lines" >> ? ?STYLE >> ? ? ?OUTLINECOLOR 255 0 0 >> ? ? ?WIDTH 1 >> ? ?END >> ?END >> >> Example (works): >> >> http://maps.hscounty.com/cgi-bin/mapserv.exe?map=MAP_15_MAIN&layers=ownership&mode=map >> >> Example, with defresolution & resolution doesn't work: >> >> http://maps.hscounty.com/cgi-bin/mapserv.exe?map=MAP_15_MAIN&layers=ownership&mode=map&map.defresolution=96&map.resolution=144 >> >> Any insight would be appreciated. >> >> Thanks, >> Rich >> >> -- >> Richard Greenwood >> richard.greenwood at gmail.com >> www.greenwoodmap.com >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From sdlime at gmail.com Mon Jul 18 13:42:10 2011 From: sdlime at gmail.com (Steve Lime) Date: Mon, 18 Jul 2011 15:42:10 -0500 Subject: [mapserver-users] Re: Mapfile layer not displaying in MapServer 6.0.1 (does in 5.4) In-Reply-To: <1311017405401-6596058.post@n2.nabble.com> References: <1310750548443-6587562.post@n2.nabble.com> <1310750727931-6587572.post@n2.nabble.com> <1310765178631-6588088.post@n2.nabble.com> <1311017405401-6596058.post@n2.nabble.com> Message-ID: No worries, these are good resolutions from my perspective... Steve Sent from my iPad On Jul 18, 2011, at 2:30 PM, myOpenLayersUName wrote: > Steve, > > Thank you for your suggestions (including the one you sent me directly > suggesting "explicitly setting a width in the roads style"). > > Today, when I went back to this, the request worked without my changing > anything in the Mapfile. I have returned the data to be loaded through SDE > (not the Shapefile) and it still seems to be working. > > I hate it when that happens!! > > The only thing I can think of is that something got cached somewhere along > the way on Friday and the requests were never truly being processed as I was > changing the Mapfile trying to get it to work. Obviously, somewhere along > the way I got the Mapfile contents right, but wasn't seeing it in the > browser. > > Okay, well. I guess I'll continue along the road to try and figure out my > real problem now. Sorry for wasting everyone's time but I'll probably be > back. > > Cheers > jtm > > > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapfile-layer-not-displaying-in-MapServer-6-0-1-does-in-5-4-tp6587562p6596058.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 xiaoshitou1986126 at 126.com Mon Jul 18 22:19:35 2011 From: xiaoshitou1986126 at 126.com (=?GBK?B?utXQ/rvd?=) Date: Tue, 19 Jul 2011 13:19:35 +0800 (CST) Subject: [mapserver-users] mapserver publish road Message-ID: <7da65b4e.4373.13140d5bf08.Coremail.xiaoshitou1986126@126.com> I encounter a question. use one same shape file, when I use it in mapserver it like but in udig it like when two street intersect together, udig can paint map with the black border,but mapserver can't. Anyone know why? my mapfile is this: MAP SIZE 800 450 EXTENT -200 0 200 100 IMAGECOLOR 180 180 250 UNITS DD debug 5 CONFIG "MS_ERRORFILE" "\ms4w\tmp\ms_error.txt" FONTSET "D:\ms4w\apps\fonts\fonts.list" PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME png24#AGG DRIVER "GD/PNG" #AGG/PNG IMAGEMODE RGB MIMETYPE IMAGE/PNG EXTENSION PNG #FORMATOPTION TRANSPARENT=ON #FORMATOPTION INTERLANCE=OFF END IMAGETYPE png24 #AGG WEB IMAGEPATH "\ms4w\Apache\htdocs\tmp\" IMAGEURL "\tmp\" END SYMBOL NAME 'cartoline' TYPE CARTOLINE LINECAP butt LINEJOIN bevel LINEJOINMAXSIZE 3 END LAYER NAME 01 TYPE LINE debug 5 STATUS on TRANSPARENCY alpha CONNECTIONTYPE postgis CONNECTION "user=* dbname=* host=* port=* password=*" DATA "the_geom from *** using unique gid" processing "slose_connection=defer" DUMP TRUE CLASS STYLE COLOR 0 0 0 SYMBOL 'cartoline' ANTIALIAS TRUE SIZE 10 END STYLE COLOR 255 255 0 SYMBOL 'cartoline' ANTIALIAS TRUE SIZE 8 END END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 11.png Type: image/png Size: 688 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 22.png Type: image/png Size: 3831 bytes Desc: not available URL: From thomas.bonfort at gmail.com Mon Jul 18 23:37:04 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 19 Jul 2011 08:37:04 +0200 Subject: [mapserver-users] defresolution & resolution in 6.0 In-Reply-To: References: Message-ID: On Mon, Jul 18, 2011 at 21:31, Richard Greenwood wrote: > thomas, > > Thank you for your reply. This link should produce an image with lines rendered: > > http://maps.hscounty.com/cgi-bin/mapserv.exe?map=MAP_15_MAIN&layers=ownership&mode=map&map.defresolution=72&map.resolution=144 > > This is the same except with map.resolution=100 and lines are not > rendered, image is blank: > > http://maps.hscounty.com/cgi-bin/mapserv.exe?map=MAP_15_MAIN&layers=ownership&mode=map&map.defresolution=72&map.resolution=100 > > When map.defresolution=72, any value for map.resolution between 73 and > 143 fails to render lines. Similarly when map.defresolution=10, any > value for map.resolution between 11 and 19 fails to render lines. > > You can easily change defresolution and resolution in the URL yourself > to see the behavior. > > If you consider this a bug I am happy to file a ticket, but I'd like > another set of eyes on it before I do so. This definitely seems like a bug, go ahead and file a ticket ! thanks, thomas > > Thank you, > Rich > > On Mon, Jul 18, 2011 at 11:52 AM, thomas bonfort > wrote: >> Richard, >> I was also unable to reproduce your issue (see the similar titled >> thread initiated by Mike Smith), using the >> msautotest/renderers/polygon-as-line.map >> >> please submit a self-contained test-case where the issue can be reproduced. >> >> thanks, >> thomas >> >> On Sun, Jul 17, 2011 at 21:35, Richard Greenwood >> wrote: >>> When I use defresolution & resolution in MapServer 6.0 on lines with a >>> width of 1 nothing is displayed. Specifically I am using: >>> ? map.defresolution=96&map.resolution=144 >>> on a polygon layer defined as: >>> >>> ?CLASS >>> ? ?NAME "Lot and Parcel Lines" >>> ? ?STYLE >>> ? ? ?OUTLINECOLOR 255 0 0 >>> ? ? ?WIDTH 1 >>> ? ?END >>> ?END >>> >>> Example (works): >>> >>> http://maps.hscounty.com/cgi-bin/mapserv.exe?map=MAP_15_MAIN&layers=ownership&mode=map >>> >>> Example, with defresolution & resolution doesn't work: >>> >>> http://maps.hscounty.com/cgi-bin/mapserv.exe?map=MAP_15_MAIN&layers=ownership&mode=map&map.defresolution=96&map.resolution=144 >>> >>> Any insight would be appreciated. >>> >>> Thanks, >>> Rich >>> >>> -- >>> Richard Greenwood >>> richard.greenwood at gmail.com >>> www.greenwoodmap.com >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > > > > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > From thomas.bonfort at gmail.com Mon Jul 18 23:56:09 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 19 Jul 2011 08:56:09 +0200 Subject: [mapserver-users] defresolution & resolution in 6.0 In-Reply-To: References: Message-ID: I still haven't been able to reproduce the issue with my simple testcase, so please attach the complete mapfile that triggers this to the bugreport. -- thomas On Tue, Jul 19, 2011 at 08:37, thomas bonfort wrote: > On Mon, Jul 18, 2011 at 21:31, Richard Greenwood > wrote: >> thomas, >> >> Thank you for your reply. This link should produce an image with lines rendered: >> >> http://maps.hscounty.com/cgi-bin/mapserv.exe?map=MAP_15_MAIN&layers=ownership&mode=map&map.defresolution=72&map.resolution=144 >> >> This is the same except with map.resolution=100 and lines are not >> rendered, image is blank: >> >> http://maps.hscounty.com/cgi-bin/mapserv.exe?map=MAP_15_MAIN&layers=ownership&mode=map&map.defresolution=72&map.resolution=100 >> >> When map.defresolution=72, any value for map.resolution between 73 and >> 143 fails to render lines. Similarly when map.defresolution=10, any >> value for map.resolution between 11 and 19 fails to render lines. >> >> You can easily change defresolution and resolution in the URL yourself >> to see the behavior. >> >> If you consider this a bug I am happy to file a ticket, but I'd like >> another set of eyes on it before I do so. > This definitely seems like a bug, go ahead and file a ticket ! > > thanks, > thomas > >> >> Thank you, >> Rich >> >> On Mon, Jul 18, 2011 at 11:52 AM, thomas bonfort >> wrote: >>> Richard, >>> I was also unable to reproduce your issue (see the similar titled >>> thread initiated by Mike Smith), using the >>> msautotest/renderers/polygon-as-line.map >>> >>> please submit a self-contained test-case where the issue can be reproduced. >>> >>> thanks, >>> thomas >>> >>> On Sun, Jul 17, 2011 at 21:35, Richard Greenwood >>> wrote: >>>> When I use defresolution & resolution in MapServer 6.0 on lines with a >>>> width of 1 nothing is displayed. Specifically I am using: >>>> ? map.defresolution=96&map.resolution=144 >>>> on a polygon layer defined as: >>>> >>>> ?CLASS >>>> ? ?NAME "Lot and Parcel Lines" >>>> ? ?STYLE >>>> ? ? ?OUTLINECOLOR 255 0 0 >>>> ? ? ?WIDTH 1 >>>> ? ?END >>>> ?END >>>> >>>> Example (works): >>>> >>>> http://maps.hscounty.com/cgi-bin/mapserv.exe?map=MAP_15_MAIN&layers=ownership&mode=map >>>> >>>> Example, with defresolution & resolution doesn't work: >>>> >>>> http://maps.hscounty.com/cgi-bin/mapserv.exe?map=MAP_15_MAIN&layers=ownership&mode=map&map.defresolution=96&map.resolution=144 >>>> >>>> Any insight would be appreciated. >>>> >>>> Thanks, >>>> Rich >>>> >>>> -- >>>> Richard Greenwood >>>> richard.greenwood at gmail.com >>>> www.greenwoodmap.com >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>> >> >> >> >> -- >> Richard Greenwood >> richard.greenwood at gmail.com >> www.greenwoodmap.com >> > From thomas.bonfort at gmail.com Tue Jul 19 00:14:36 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 19 Jul 2011 09:14:36 +0200 Subject: [mapserver-users] mapserver publish road In-Reply-To: <7da65b4e.4373.13140d5bf08.Coremail.xiaoshitou1986126@126.com> References: <7da65b4e.4373.13140d5bf08.Coremail.xiaoshitou1986126@126.com> Message-ID: I don't think there's a way to do this, as when rendering roads the mapserver method is usually what is desired. You might want to file an enhancement ticket so that this behavior can be configured with a mapfile keyword. On a side note, cartolines in mapserver are deprecated since version 5.0 and completely unsupported sincce 6.0, so you should not be using them for a new project: use the agg outputformat and STYLE->WIDTH for thick lines. -- thomas 2011/7/19 ??? > I encounter a question. use one same shape file, when I use it in > mapserver it like > > but in udig it like > > when two street intersect together, udig can paint map with the black > border,but mapserver can't. Anyone know why? > my mapfile is this: > MAP > SIZE 800 450 > EXTENT -200 0 200 100 > IMAGECOLOR 180 180 250 > UNITS DD > debug 5 > CONFIG "MS_ERRORFILE" "\ms4w\tmp\ms_error.txt" > FONTSET "D:\ms4w\apps\fonts\fonts.list" > PROJECTION > "init=epsg:4326" > END > OUTPUTFORMAT > NAME png24#AGG > DRIVER "GD/PNG" #AGG/PNG* IMAGEMODE RGB > MIMETYPE IMAGE/PNG > EXTENSION PNG > #FORMATOPTION TRANSPARENT=ON > #FORMATOPTION INTERLANCE=OFF > END > IMAGETYPE png24 #AGG > WEB > IMAGEPATH "\ms4w\Apache\htdocs\tmp\" > IMAGEURL "\tmp\" > END > > SYMBOL > NAME 'cartoline' > TYPE CARTOLINE > LINECAP butt > LINEJOIN bevel > LINEJOINMAXSIZE 3 > END > > LAYER > NAME 01 > TYPE LINE > debug 5 > STATUS on > TRANSPARENCY alpha > CONNECTIONTYPE postgis > CONNECTION "user=* dbname=* host=* port=* password=* " > DATA "the_geom from *** using unique gid" > processing "slose_connection=defer" > DUMP TRUE > CLASS > STYLE > COLOR 0 0 0 > SYMBOL 'cartoline' > ANTIALIAS TRUE > SIZE 10 > END > STYLE > COLOR 255 255 0 > SYMBOL 'cartoline' > ANTIALIAS TRUE > &nbs p; SIZE 8 > END > END > END > END > > * > > > > _______________________________________________ > 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: 22.png Type: image/png Size: 3831 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 11.png Type: image/png Size: 688 bytes Desc: not available URL: From ahmettemiz88 at gmail.com Tue Jul 19 01:30:31 2011 From: ahmettemiz88 at gmail.com (ahmet temiz) Date: Tue, 19 Jul 2011 11:30:31 +0300 Subject: [mapserver-users] mapscript - java exception Message-ID: hello I am dealing with mapscript - java. I received this error message. Could you tell me what the reason might be ? regards Caused by: java.io.NotSerializableException: edu.umn.gis.mapscript.mapObj at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330) at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1676) -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Planlama ve Zarar Azaltma Dairesi Ba?kanl??? Bilgi ve CBS grubu Eski?ehir Yolu 10. km. Lodumlu / Ankara Tel : 0 312 2872680 / 1535 ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency From flavio at tydac.ch Tue Jul 19 01:46:22 2011 From: flavio at tydac.ch (Flavio Hendry) Date: Tue, 19 Jul 2011 10:46:22 +0200 Subject: [mapserver-users] ms4w 2.3.1. and ArcSDE In-Reply-To: References: Message-ID: <4E25445E.7080207@tydac.ch> Hi all Anyone successful installing and connecting to ArcSDE (9.0, SQL Server) with ms4w 2.3.1? We followed all instructions, however we get an internal server error ([error] [client 127.0.0.1] Premature end of script headers: php-cgi.exe) when trying to connect (see MapFile extract below). One problem could be that in 2.3.1 ms4w was compiled using GDAL 1.6 and the GDAL/OGR SDE DLLs with GDAL 1.5 ... However, I do not see any dependency problems ... - ArcSDE SDK is installed, added to path - GDAL/OGR plug-ins are copied to "gdalplugins" dir and load the sde90.dll (dependencies), however work with GDAL 1.5 - msplugin_sde_90.dll loads sde90.dll etc. (dependencies), works with GDAL 1.6 - ogrinfo --formats does not show SDE Any hints or ideas? THX! ******* LAYER NAME "Basemap" TYPE POINT CONNECTIONTYPE PLUGIN CONNECTION "xxx.xxx.xx.x,port:5151,sde,uid,password" PLUGIN "C:/ms4w/Apache/specialplugins/msplugin_sde_90.dll" DATA "SDE.Test,SHAPE,SDE.DEFAULT" CLASS STYLE SYMBOL 'continue' SIZE 1 COLOR -255 0 0 END END PROJECTION "init=epsg:23033" END END Mit freundlichem Gruss / Best regards Flavio Hendry ---------------------------------------------------------------- TYDAC Inc. - http://www.tydac.ch Web Mapping - http://www.mapserver.ch Swiss Maps - http://www.mapplus.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ Flavio Hendry, CEO - mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Optingenstrasse 27 -- CH-3013 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- Location: http://www.mapplus.ch/adr/bern/optingenstrasse/27 ---------------------------------------------------------------- From Jukka.Rahkonen at mmmtike.fi Tue Jul 19 05:23:50 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 19 Jul 2011 12:23:50 +0000 Subject: [mapserver-users] mapserver publish road In-Reply-To: <7da65b4e.4373.13140d5bf08.Coremail.xiaoshitou1986126@126.com> References: <7da65b4e.4373.13140d5bf08.Coremail.xiaoshitou1986126@126.com> Message-ID: <84446DEF76453C439E9E97E438E13A63014350@suutari.haapa.mmm.fi> Hi, I believe that most cartographers would say that the uDig way to to draw the outlines is ugly and the Mapserver way looks better but it is partly a matter of taste. However, at least for me the continuous black lines also give a feeling that it is not possible or allowed to drive from one street to another. I would try to draw the streets as two separate layers with own styels instead of a single layer with two styles, perhaps that would lead to continuos black outlines. -Jukka Rahkonen- ??? [xiaoshitou1986126 at 126.com] wrote: > I encounter a question. use one same shape file, when I use it in mapserver it like [cid:752891ff$1$13140d5bf06$Coremail$xiaoshitou1986126 at 126.com] but in udig it like [cid:3a893870$2$13140d5bf06$Coremail$xiaoshitou1986126 at 126.com] when two street intersect together, udig can paint map with the black border,but mapserver can't. Anyone know why? my mapfile is this: MAP SIZE 800 450 EXTENT -200 0 200 100 IMAGECOLOR 180 180 250 UNITS DD debug 5 CONFIG "MS_ERRORFILE" "\ms4w\tmp\ms_error.txt" FONTSET "D:\ms4w\apps\fonts\fonts.list" PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME png24#AGG DRIVER "GD/PNG" #AGG/PNG IMAGEMODE RGB MIMETYPE IMAGE/PNG EXTENSION PNG #FORMATOPTION TRANSPARENT=ON #FORMATOPTION INTERLANCE=OFF END IMAGETYPE png24 #AGG WEB IMAGEPATH "\ms4w\Apache\htdocs\tmp\" IMAGEURL "\tmp\" END SYMBOL NAME 'cartoline' TYPE CARTOLINE LINECAP butt LINEJOIN bevel LINEJOINMAXSIZE 3 END LAYER NAME 01 TYPE LINE debug 5 STATUS on TRANSPARENCY alpha CONNECTIONTYPE postgis CONNECTION "user=* dbname=* host=* port=* password=* " DATA "the_geom from *** using unique gid" processing "slose_connection=defer" DUMP TRUE CLASS STYLE COLOR 0 0 0 SYMBOL 'cartoline' ANTIALIAS TRUE SIZE 10 END STYLE COLOR 255 255 0 SYMBOL 'cartoline' ANTIALIAS TRUE &nbs p; SIZE 8 END END END END From thomas.bonfort at gmail.com Tue Jul 19 05:31:21 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 19 Jul 2011 14:31:21 +0200 Subject: [mapserver-users] mapserver publish road In-Reply-To: <84446DEF76453C439E9E97E438E13A63014350@suutari.haapa.mmm.fi> References: <7da65b4e.4373.13140d5bf08.Coremail.xiaoshitou1986126@126.com> <84446DEF76453C439E9E97E438E13A63014350@suutari.haapa.mmm.fi> Message-ID: 2011/7/19 Rahkonen Jukka : > Hi, > > I believe that most cartographers would say that the uDig way to to draw the outlines is ugly and the Mapserver way looks better but it is partly a matter of taste. ?However, at least for me the continuous black lines also give a feeling that it is not possible or allowed to drive from one street to another. > > I would try to draw the streets as two separate layers with own styels instead of a single layer with two styles, perhaps that would lead to continuos black outlines. Doing so this way would also result in the black lines disappearing. -- thomas > > -Jukka Rahkonen- > > > ???? [xiaoshitou1986126 at 126.com] wrote: > >> I encounter a question. use one ?same shape file, when I use it in mapserver it like > [cid:752891ff$1$13140d5bf06$Coremail$xiaoshitou1986126 at 126.com] > but in udig it like > [cid:3a893870$2$13140d5bf06$Coremail$xiaoshitou1986126 at 126.com] > when two street intersect together, udig can paint map with the black border,but mapserver can't. Anyone know why? > my mapfile is this: > MAP > ?SIZE 800 450 > ?EXTENT -200 0 200 100 > ?IMAGECOLOR 180 180 250 > ?UNITS DD > ?debug 5 > ?CONFIG "MS_ERRORFILE" "\ms4w\tmp\ms_error.txt" > ?FONTSET "D:\ms4w\apps\fonts\fonts.list" > PROJECTION > ? ?"init=epsg:4326" > END > OUTPUTFORMAT > ? ?NAME png24#AGG > ? ?DRIVER "GD/PNG" #AGG/PNG ? ?IMAGEMODE RGB > ? ?MIMETYPE IMAGE/PNG > ? ?EXTENSION PNG > ? ?#FORMATOPTION TRANSPARENT=ON > ? ?#FORMATOPTION INTERLANCE=OFF > END > IMAGETYPE png24 #AGG > WEB > ? ?IMAGEPATH "\ms4w\Apache\htdocs\tmp\" > ? ?IMAGEURL "\tmp\" > END > > SYMBOL > ?NAME 'cartoline' > ?TYPE CARTOLINE > ?LINECAP ?butt > ? LINEJOIN ?bevel > ? LINEJOINMAXSIZE 3 > END > > LAYER > ? ?NAME 01 > ? ?TYPE LINE > ? ?debug 5 > ? ?STATUS on > ? ?TRANSPARENCY alpha > ? ?CONNECTIONTYPE postgis > ? ?CONNECTION "user=* dbname=* host=* port=* password=* " > ? ?DATA "the_geom from *** using unique gid" > ? ?processing "slose_connection=defer" > ? ?DUMP TRUE > ? ?CLASS > ? ? ?STYLE > ? ? ? ? ? COLOR 0 0 0 > ? ? ? ? ? SYMBOL 'cartoline' > ? ? ? ? ? ANTIALIAS TRUE > ? ? ? ?SIZE 10 > ? ? ? ?END > ? ? ? ? STYLE > ? ? ? ? ? COLOR 255 255 0 > ? ? ? ? ? SYMBOL 'cartoline' > ? ? ? ? ? ANTIALIAS TRUE > ?&nbs p; ? ? ?SIZE 8 > ? ? ? ?END > ? ?END > END > END > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From bfraser at geoanalytic.com Tue Jul 19 07:26:32 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 19 Jul 2011 08:26:32 -0600 Subject: [mapserver-users] ms4w 2.3.1. and ArcSDE In-Reply-To: <4E25445E.7080207@tydac.ch> References: <4E25445E.7080207@tydac.ch> Message-ID: <4E259418.5030501@geoanalytic.com> Flavio, Last year I experimented with MS4W and SDE 9.3 (http://lists.maptools.org/pipermail/ms4w-users/2010-January/001402.html). I used a couple of Windows tools: Dependency Walker (to see which DLLs a DLL depends on), and Process Monitor (to see which files, including DLLs, a process is trying to load at run time). Best Regards, Brent Fraser On 7/19/2011 2:46 AM, Flavio Hendry wrote: > Hi all > > Anyone successful installing and connecting to ArcSDE (9.0, SQL > Server) with ms4w 2.3.1? We followed all instructions, however we get > an internal server error ([error] [client 127.0.0.1] Premature end of > script headers: php-cgi.exe) when trying to connect (see MapFile > extract below). One problem could be that in 2.3.1 ms4w was compiled > using GDAL 1.6 and the GDAL/OGR SDE DLLs with GDAL 1.5 ... However, I > do not see any dependency problems ... > > - ArcSDE SDK is installed, added to path > - GDAL/OGR plug-ins are copied to "gdalplugins" dir and load the > sde90.dll (dependencies), however work with GDAL 1.5 > - msplugin_sde_90.dll loads sde90.dll etc. (dependencies), works with > GDAL 1.6 > - ogrinfo --formats does not show SDE > > Any hints or ideas? THX! > > ******* > LAYER > NAME "Basemap" > TYPE POINT > CONNECTIONTYPE PLUGIN > CONNECTION "xxx.xxx.xx.x,port:5151,sde,uid,password" > PLUGIN "C:/ms4w/Apache/specialplugins/msplugin_sde_90.dll" > DATA "SDE.Test,SHAPE,SDE.DEFAULT" > CLASS > STYLE > SYMBOL 'continue' > SIZE 1 > COLOR -255 0 0 > END > END > PROJECTION > "init=epsg:23033" > END > END > > Mit freundlichem Gruss / Best regards > Flavio Hendry > > ---------------------------------------------------------------- > TYDAC Inc. - http://www.tydac.ch > Web Mapping - http://www.mapserver.ch > Swiss Maps - http://www.mapplus.ch > ---------------------------------------------------------------- > ############ Mit freundlichen Gruessen / Kind Regards > ############ Flavio Hendry, CEO - mailto:flavio at tydac.ch > ############ TYDAC AG - http://www.tydac.ch > #### #### Geographic Information Solutions > #### #### Optingenstrasse 27 -- CH-3013 Bern > ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 > ---------------------------------------------------------------- > Location: http://www.mapplus.ch/adr/bern/optingenstrasse/27 > ---------------------------------------------------------------- > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jmckenna at gatewaygeomatics.com Tue Jul 19 07:45:52 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 19 Jul 2011 11:45:52 -0300 Subject: [mapserver-users] ms4w 2.3.1. and ArcSDE In-Reply-To: <4E259418.5030501@geoanalytic.com> References: <4E25445E.7080207@tydac.ch> <4E259418.5030501@geoanalytic.com> Message-ID: <4E2598A0.7070007@gatewaygeomatics.com> Thanks Brent. Indeed to access SDE layers with MS4W 3.0.x please follow your local README (or online at: http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#sde). -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-07-19 11:26 AM, Brent Fraser wrote: > Flavio, > > Last year I experimented with MS4W and SDE 9.3 > (http://lists.maptools.org/pipermail/ms4w-users/2010-January/001402.html). > I used a couple of Windows tools: Dependency Walker (to see which DLLs a > DLL depends on), and Process Monitor (to see which files, including > DLLs, a process is trying to load at run time). > > Best Regards, > Brent Fraser > > > On 7/19/2011 2:46 AM, Flavio Hendry wrote: >> Hi all >> >> Anyone successful installing and connecting to ArcSDE (9.0, SQL >> Server) with ms4w 2.3.1? We followed all instructions, however we get >> an internal server error ([error] [client 127.0.0.1] Premature end of >> script headers: php-cgi.exe) when trying to connect (see MapFile >> extract below). One problem could be that in 2.3.1 ms4w was compiled >> using GDAL 1.6 and the GDAL/OGR SDE DLLs with GDAL 1.5 ... However, I >> do not see any dependency problems ... >> >> - ArcSDE SDK is installed, added to path >> - GDAL/OGR plug-ins are copied to "gdalplugins" dir and load the >> sde90.dll (dependencies), however work with GDAL 1.5 >> - msplugin_sde_90.dll loads sde90.dll etc. (dependencies), works with >> GDAL 1.6 >> - ogrinfo --formats does not show SDE >> >> Any hints or ideas? THX! >> >> ******* >> LAYER >> NAME "Basemap" >> TYPE POINT >> CONNECTIONTYPE PLUGIN >> CONNECTION "xxx.xxx.xx.x,port:5151,sde,uid,password" >> PLUGIN "C:/ms4w/Apache/specialplugins/msplugin_sde_90.dll" >> DATA "SDE.Test,SHAPE,SDE.DEFAULT" >> CLASS >> STYLE >> SYMBOL 'continue' >> SIZE 1 >> COLOR -255 0 0 >> END >> END >> PROJECTION >> "init=epsg:23033" >> END >> END >> >> Mit freundlichem Gruss / Best regards >> Flavio Hendry >> >> ---------------------------------------------------------------- >> TYDAC Inc. - http://www.tydac.ch >> Web Mapping - http://www.mapserver.ch >> Swiss Maps - http://www.mapplus.ch >> ---------------------------------------------------------------- >> ############ Mit freundlichen Gruessen / Kind Regards >> ############ Flavio Hendry, CEO - mailto:flavio at tydac.ch >> ############ TYDAC AG - http://www.tydac.ch >> #### #### Geographic Information Solutions >> #### #### Optingenstrasse 27 -- CH-3013 Bern >> ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 >> ---------------------------------------------------------------- >> Location: http://www.mapplus.ch/adr/bern/optingenstrasse/27 >> ---------------------------------------------------------------- From flavio at tydac.ch Tue Jul 19 07:52:24 2011 From: flavio at tydac.ch (Flavio Hendry) Date: Tue, 19 Jul 2011 16:52:24 +0200 Subject: [mapserver-users] ms4w 2.3.1. and ArcSDE In-Reply-To: <4E2598A0.7070007@gatewaygeomatics.com> References: <4E25445E.7080207@tydac.ch> <4E259418.5030501@geoanalytic.com> <4E2598A0.7070007@gatewaygeomatics.com> Message-ID: <4E259A28.2020305@tydac.ch> Hi Jeff / Brent Thanks for the help. We installed ms4w 2.3.0 ... seems to work (shows SDE with ogrinfo, still fiddling with the connection). I think the problem we had, was related to msw4w 2.3.1 having the gdal/ogr dlls not compiled for gdal 1.6 as all the rest ... as the client has SDE 9.0 we go with very old stuff too :-) ... no fancy ms4w3.0/ms6.0 ... Mit freundlichem Gruss / Best regards Flavio Hendry ---------------------------------------------------------------- TYDAC Inc. - http://www.tydac.ch Web Mapping - http://www.mapserver.ch Swiss Maps - http://www.mapplus.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ Flavio Hendry, CEO - mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Optingenstrasse 27 -- CH-3013 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- Location: http://www.mapplus.ch/adr/bern/optingenstrasse/27 ---------------------------------------------------------------- From bfraser at geoanalytic.com Tue Jul 19 08:01:28 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 19 Jul 2011 09:01:28 -0600 Subject: [mapserver-users] ms4w 2.3.1. and ArcSDE In-Reply-To: <4E2598A0.7070007@gatewaygeomatics.com> References: <4E25445E.7080207@tydac.ch> <4E259418.5030501@geoanalytic.com> <4E2598A0.7070007@gatewaygeomatics.com> Message-ID: <4E259C48.3070106@geoanalytic.com> Jeff, It's been a while, but I seem to recall I had a problem with accessing SDE raster the way it was documented on the MS4W site; I had to use CONNECTIONTYPE PLUGIN... Thanks! Best Regards, Brent Fraser On 7/19/2011 8:45 AM, Jeff McKenna wrote: > Thanks Brent. Indeed to access SDE layers with MS4W 3.0.x please > follow your local README (or online at: > http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#sde). > > -jeff > > From gaston.lucero at sitrack.com Tue Jul 19 08:41:35 2011 From: gaston.lucero at sitrack.com (=?ISO-8859-1?Q?Gast=F3n_Lucero?=) Date: Tue, 19 Jul 2011 12:41:35 -0300 Subject: [mapserver-users] Re : 1. mapscript - java exception Message-ID: <4E25A5AF.5080101@sitrack.com> Sends the source code to see Im using mapscript with java too Gaston Lucero www.sitrack.com Disclaimer: This email and any attachments thereof may contain confidential, privileged, proprietary, or otherwise private information. This email is intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient of the email and its attachments please inform the sender immediately and do not disclose the contents to any other person, use it for any purpose or store or copy the information in any way and delete this e-mail and its attachments from your system. Any views or opinions expressed are solely those of the author. From mario.franco at ydreams.com Tue Jul 19 10:41:33 2011 From: mario.franco at ydreams.com (Mario Franco) Date: Tue, 19 Jul 2011 18:41:33 +0100 Subject: [mapserver-users] Expression and nquery with sde issue In-Reply-To: <4E2050FF.9030307@ydreams.com> References: <4E2012F0.9050101@ydreams.com> <97791A65-53FD-497C-A300-6913D85C2820@gmail.com> <4E2050FF.9030307@ydreams.com> Message-ID: <4E25C1CD.3040209@ydreams.com> Can anyone that uses mapserver with sde reproduce the label and expression issue that I'm having? On 15-07-2011 15:38, Mario Franco wrote: > > The version is Mapserver 5.6.3 and using the attribute as label was > how find out the values were being rounded. > For example the attribute has values from 1000 to 170000 and if the > value is smaller than 100000 rounds the value with one decimal but > above 100000 > rounds to and integer. > I'm using sqlserver with the SDE and the atrribute type is numeric > could this have anything to do with it? > > M?rio > > On 15-07-2011 15:23, Steve Lime wrote: >> On issue one, what version are you using? MapServer shouldn't be >> rounding the value. The comparison should be being done as a double. >> It might be helpful to see a sample dataset although if this is SDE I >> can't test on my end. One thing to try to help diagnose the problem >> would be to create a sample mapfile that draws your layer and uses >> the area attribute for labeling. What shows up for labels? >> >> Steve >> >> Sent from my iPad >> >> On Jul 15, 2011, at 5:14 AM, Mario Franco > > wrote: >> >>> Hi, >>> >>> I having two issues with mapserver if anyone can help me I would be >>> appreciated. >>> >>> The first has to do with an Expression in a class: >>> >>> I have a shape with an attribute with the 172060.0937 but when add >>> to the class: >>> >>>> EXPRESSION ( [AREA] = 172060.0937 ) >>> >>> The problem is that this expression returns false because mapserver >>> is rounding the double value from the database. If I compare with: >>> >>>> EXPRESSION ( [AREA] = 172060) >>> >>> it works. There is any way to turn this off or to increase the >>> precision? >>> >>> >>> >>> The second issue is: >>> >>> I'm using this url >>> (http://localhost:82/cgi-bin/mapserv.exe?map=D%3a\projects\Inag\InterSIG+II\InterSIG+Website\Trunk\InterSIG+ASP.NET\Maps%2fintersig_281.map&qlayer=Concelhos&layers=Concelhos&MAPSIZE=629%20467&MINX=-232614.525612302&MINY=-49761.6088409424&MAXX=676601.080299802&MAXY=625284&mode=NQUERY&MAPSHAPE=POLYGON%28%28-232614%20-49761,%20-232614%20625284,%20676601%20625284,%20676601%20-49761,%20-232614%20-49761%29%29 >>> ) >>> to execute a nquery but I always get the error >>> "msSDELayerGetShape(): SDE error. SE_stream_fetch_row(): Invalid >>> parameter value passed to function. (-66) " >>> >>> The log doesn't help that much: >>> >>>> [Fri Jul 15 10:47:19 2011].20000 msSDELayerOpen(): Layer Concelhos >>>> opened from scratch. >>>> [Fri Jul 15 10:47:23 2011].35000 >>>> msConnPoolRegister(Concelhos,ydinag2,port:5151,sde,sde,sde,01D6BCC0) >>>> [Fri Jul 15 10:47:23 2011].35000 msSDELayerOpen(): Layer Concelhos >>>> specified version SDE.DEFAULT. >>>> [Fri Jul 15 10:47:23 2011].42000 msSDEGetLayerInfo(): Looking for >>>> layer by SDE.CONCELH_PTCONT_2008_0_596, SHAPE, >>>> ydinag2,port:5151,sde,sde,sde >>>> [Fri Jul 15 10:47:23 2011].42000 msSDEGetLayerInfo(): No cached >>>> layerid found. >>>> [Fri Jul 15 10:47:23 2011].63000 msSDELCacheAdd(): Caching id for >>>> SDE.CONCELH_PTCONT_2008_0_596, SHAPE, ydinag2,port:5151,sde,sde,sde >>>> [Fri Jul 15 10:47:23 2011].72000 Getting all column information in >>>> msSDELayerInitItemInfo >>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting >>>> info for DICO >>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting >>>> info for CONCELHO >>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting >>>> info for DI >>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting >>>> info for DISTRITO >>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting >>>> info for CCDR >>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting >>>> info for NUT3 >>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting >>>> info for NUT3_NOME >>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting >>>> info for NUT2 >>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting >>>> info for NUT2_NOME >>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting >>>> info for AREA2008_1 >>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting >>>> info for objectid >>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting >>>> info for SHAPE >>>> [Fri Jul 15 10:47:23 2011].79000 Column information has already >>>> been gotten... returning from msSDELayerInitItemInfo >>>> [Fri Jul 15 10:47:43 2011].122000 msSDELayerGetShape(): SDE error. >>>> SE_stream_fetch_row(): Invalid parameter value passed to function. >>>> (-66) >>>> [Fri Jul 15 10:47:43 2011].126000 msFreeMap(): freeing map at 01D3EFE8. >>>> [Fri Jul 15 10:47:43 2011].126000 msSDELayerCloseConnection(): >>>> Closing connection for layer Concelhos. >>>> [Fri Jul 15 10:47:43 2011].126000 >>>> msConnPoolRelease(Concelhos,ydinag2,port:5151,sde,sde,sde,01D6BCC0) >>>> [Fri Jul 15 10:47:43 2011].126000 >>>> msConnPoolClose(ydinag2,port:5151,sde,sde,sde,01D6BCC0) >>>> [Fri Jul 15 10:47:43 2011].156000 msSDELayerClose(): Closing layer >>>> Concelhos. >>>> [Fri Jul 15 10:47:43 2011].156000 >>>> msConnPoolRelease(Concelhos,ydinag2,port:5151,sde,sde,sde,00000000) >>>> [Fri Jul 15 10:47:43 2011].156000 msConnPoolRelease(): Unable to >>>> find handle for layer 'Concelhos'. >>>> [Fri Jul 15 10:47:43 2011].156000 msConnPoolRelease(): General >>>> error message. Unable to find handle for layer 'Concelhos'. >>> >>> >>> Here part of my configuration: >>>> LAYER >>>> NAME "Concelhos" >>>> METADATA >>>> "wms_title" "Concelhos" # required >>>> "wfs_title" "Concelhos" # required >>>> "gml_featureid" "ID" ## REQUIRED >>>> "gml_geometries" "geom" >>>> "gml_geom_type" "polygon" >>>> "gml_include_items" "all" # Optional (serves all attributes for layer) >>>> "gml_exclude_items" "GEOMETRY,OBJECTID" >>>> "ows_include_items" "all" >>>> "ows_exclude_items" "GEOMETRY,OBJECTID" >>>> END >>>> DUMP true >>>> TOLERANCE 10 >>>> TOLERANCEUNITS meters >>>> >>>> TYPE polygon >>>> >>>> #CONNECTIONTYPE SDE >>>> CONNECTIONTYPE PLUGIN >>>> PLUGIN "D:/ms4w/Apache/specialplugins/msplugin_sde_92.dll" >>>> CONNECTION "ydinag2,port:5151,sde,sde,sde" >>>> >>>> DATA "SDE.CONCELH_PTCONT_2008_0_596,SHAPE,SDE.DEFAULT" >>>> >>>> PROJECTION >>>> "init=EPSG:3763" #--sistema de coordenadas desta layer na origem >>>> END >>>> >>>> STATUS ON >>>> OPACITY 100 >>>> TEMPLATE '../Templates/Identify/t.html' >>> >>> I'm using Mapserver 5.6.3, I know it's not the latest but I didn't >>> updated yet. >>> >>> Any help would be useful and thx in advance. >>> >>> M?rio Franco >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- M?rio Franco | Software Developer | mario.franco at ydreams.com YDreams - Inform?tica S.A. | www.ydreams.com | +351 210 314 000 | Blog | YouTube | Vimeo | Twitter *Disclaimer and Confidentiality Notice:* YDreams accepts no responsibility or liability whatsoever with regard to the information herein contained. This message including any attachment hereof is confidential and may be privileged or otherwise legally protected from disclosure and may only be read, copied and used by the intended recipient. If you are not the intended recipient, please contact the sender immediately (+351 210 314 000) and delete this email and any attachment permanently from your system. You must not copy this email or any attachment or disclose its/their contents to any other person or entity. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at gmail.com Tue Jul 19 10:59:42 2011 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Tue, 19 Jul 2011 11:59:42 -0600 Subject: [mapserver-users] defresolution & resolution in 6.0 In-Reply-To: References: Message-ID: thomas, Thank you for reviewing my issue. I have created new ticket #3962 and attached a simple mapfile and data. I suspect that you are not recreating the issue because you are using the default AGG/PNG driver settings. Setting IMAGEMODE PC256 causes the problem, or DRIVER "GD/PNG" or IMAGETYPE "gif". Thanks, Rich On Tue, Jul 19, 2011 at 12:56 AM, thomas bonfort wrote: > I still haven't been able to reproduce the issue with my simple > testcase, so please attach the complete mapfile that triggers this to > the bugreport. > > -- > thomas > > On Tue, Jul 19, 2011 at 08:37, thomas bonfort wrote: >> On Mon, Jul 18, 2011 at 21:31, Richard Greenwood >> wrote: >>> thomas, >>> >>> Thank you for your reply. This link should produce an image with lines rendered: >>> >>> http://maps.hscounty.com/cgi-bin/mapserv.exe?map=MAP_15_MAIN&layers=ownership&mode=map&map.defresolution=72&map.resolution=144 >>> >>> This is the same except with map.resolution=100 and lines are not >>> rendered, image is blank: >>> >>> http://maps.hscounty.com/cgi-bin/mapserv.exe?map=MAP_15_MAIN&layers=ownership&mode=map&map.defresolution=72&map.resolution=100 >>> >>> When map.defresolution=72, any value for map.resolution between 73 and >>> 143 fails to render lines. Similarly when map.defresolution=10, any >>> value for map.resolution between 11 and 19 fails to render lines. >>> >>> You can easily change defresolution and resolution in the URL yourself >>> to see the behavior. >>> >>> If you consider this a bug I am happy to file a ticket, but I'd like >>> another set of eyes on it before I do so. >> This definitely seems like a bug, go ahead and file a ticket ! >> >> thanks, >> thomas >> >>> >>> Thank you, >>> Rich >>> >>> On Mon, Jul 18, 2011 at 11:52 AM, thomas bonfort >>> wrote: >>>> Richard, >>>> I was also unable to reproduce your issue (see the similar titled >>>> thread initiated by Mike Smith), using the >>>> msautotest/renderers/polygon-as-line.map >>>> >>>> please submit a self-contained test-case where the issue can be reproduced. >>>> >>>> thanks, >>>> thomas >>>> >>>> On Sun, Jul 17, 2011 at 21:35, Richard Greenwood >>>> wrote: >>>>> When I use defresolution & resolution in MapServer 6.0 on lines with a >>>>> width of 1 nothing is displayed. Specifically I am using: >>>>> ? map.defresolution=96&map.resolution=144 >>>>> on a polygon layer defined as: >>>>> >>>>> ?CLASS >>>>> ? ?NAME "Lot and Parcel Lines" >>>>> ? ?STYLE >>>>> ? ? ?OUTLINECOLOR 255 0 0 >>>>> ? ? ?WIDTH 1 >>>>> ? ?END >>>>> ?END >>>>> >>>>> Example (works): >>>>> >>>>> http://maps.hscounty.com/cgi-bin/mapserv.exe?map=MAP_15_MAIN&layers=ownership&mode=map >>>>> >>>>> Example, with defresolution & resolution doesn't work: >>>>> >>>>> http://maps.hscounty.com/cgi-bin/mapserv.exe?map=MAP_15_MAIN&layers=ownership&mode=map&map.defresolution=96&map.resolution=144 >>>>> >>>>> Any insight would be appreciated. >>>>> >>>>> Thanks, >>>>> Rich >>>>> >>>>> -- >>>>> Richard Greenwood >>>>> richard.greenwood at gmail.com >>>>> www.greenwoodmap.com >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>> >>> >>> >>> >>> -- >>> Richard Greenwood >>> richard.greenwood at gmail.com >>> www.greenwoodmap.com >>> >> > -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From john.callahan at udel.edu Tue Jul 19 11:17:33 2011 From: john.callahan at udel.edu (John Callahan) Date: Tue, 19 Jul 2011 14:17:33 -0400 Subject: [mapserver-users] elevation DEM color ramp map file Message-ID: I'm just curious but does anyone know of Mapserver .map files, or color map text files, with classes designed for a elevation DEM? Or possibly a list of color ramps that work well for DEM maps? I read that GRASS had some predefined templates for applying color to DEMs and wondering if Mapserver has a similar thing, perhaps shared on a wiki or other site. The DEM I'm working with now has low relief, from -5 meters to about 150 meters, however a general method or set of map files that can be applied to a range of DEMs could be helpful to many. Does something like this exist? Thanks. - John *********************************** John Callahan, Research Scientist Delaware Geological Survey University of Delaware URL: http://www.dgs.udel.edu ******************************* -------------- next part -------------- An HTML attachment was scrubbed... URL: From mrdouville at shaw.ca Tue Jul 19 11:46:55 2011 From: mrdouville at shaw.ca (Michelle Douvil) Date: Tue, 19 Jul 2011 11:46:55 -0700 (PDT) Subject: [mapserver-users] Re: ms4w 2.3.1. and ArcSDE In-Reply-To: <4E25445E.7080207@tydac.ch> References: <4E25445E.7080207@tydac.ch> Message-ID: <1311101215223-6599882.post@n2.nabble.com> Hi All, I have installed both a custom build for Mapserver 6.0 as well as MS4W 3.0.3.. I can get images back with WMS for SDE 9.3.1 data.. However when I try a GetFeatureINFO request via Apache I was getting a "Premature end of script headers: mapserv.exe" So I removed Apache from the picture and try the CGI.. With mapserver 5.2 *mapserv -nh "QUERY_STRING=map=e:/sw_nt/mapfiles/base2.map&mode=nquerymap&mapxy=1186128 863840" >test.png *(I get a valid png with the feature highlighted..) With ms4w mapserver 6.0.1 and a 6.0.0 build.. I get.. setMode(): Web application error. Invalid mode. Any ideas? Many Thanks, Michelle -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/MapServer-v-GeoServer-tp6356255p6599882.html Sent from the Mapserver - User mailing list archive at Nabble.com. From qazi.iqbal at gmail.com Tue Jul 19 11:51:37 2011 From: qazi.iqbal at gmail.com (qazi iqbal) Date: Tue, 19 Jul 2011 14:51:37 -0400 Subject: [mapserver-users] WMS Service error Message-ID: I need help. I have created a mapfile for creating webservice or a shapefile through WMS according to the documentation. When I add the WMS server in ArcCatalog to see the layer, it show the treeview to the description of layer, but when I click on the layer, it gives me the below error. The selected object failed to draw: Test Web Service: WMS service exceptions:-Service Error Code:InvalidFormat Service Error Description: msWMSLoadGetmapParams(): WMS server error. Invalid format for EXCEPTION paramater. -Service Error Code:InvalidFormat. Does any one know what I am doing wrong. I appreciate any help. Thanks Qazi Iqbal -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.callahan at udel.edu Tue Jul 19 12:08:52 2011 From: john.callahan at udel.edu (John Callahan) Date: Tue, 19 Jul 2011 15:08:52 -0400 Subject: [mapserver-users] WMS Service error In-Reply-To: References: Message-ID: Check the WMS version of the request. When you add the WMS layer in ArcMap, set the WMS version to 1.1.1. Arc 9.3.x runs into trouble if the default request is 1.3.0. I believe this was fixed in Arc 10. - John *********************************** John Callahan, Research Scientist Delaware Geological Survey University of Delaware URL: http://www.dgs.udel.edu ******************************* On Tue, Jul 19, 2011 at 2:51 PM, qazi iqbal wrote: > I need help. I have created a mapfile for creating webservice or a > shapefile through WMS according to the documentation. When I add the WMS > server in ArcCatalog to see the layer, it show the treeview to the > description of layer, but when I click on the layer, it gives me the below > error. > > The selected object failed to draw: > Test Web Service: WMS service exceptions:-Service Error Code:InvalidFormat > Service Error Description: msWMSLoadGetmapParams(): WMS server error. > Invalid format for EXCEPTION paramater. > -Service Error Code:InvalidFormat. > > Does any one know what I am doing wrong. > > I appreciate any help. > Thanks > Qazi Iqbal > > _______________________________________________ > 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 mario.franco at ydreams.com Tue Jul 19 12:17:38 2011 From: mario.franco at ydreams.com (Mario Franco) Date: Tue, 19 Jul 2011 20:17:38 +0100 Subject: [mapserver-users] WMS Service error In-Reply-To: References: Message-ID: <4E25D852.7030209@ydreams.com> It's an ArcCatalog problem check http://forums.esri.com/Thread.asp?c=93&f=1149&t=281244 On 19-07-2011 19:51, qazi iqbal wrote: > I need help. I have created a mapfile for creating webservice or a > shapefile through WMS according to the documentation. When I add the > WMS server in ArcCatalog to see the layer, it show the treeview to the > description of layer, but when I click on the layer, it gives me the > below error. > The selected object failed to draw: > Test Web Service: WMS service exceptions:-Service Error Code:InvalidFormat > Service Error Description: msWMSLoadGetmapParams(): WMS server error. > Invalid format for EXCEPTION paramater. > -Service Error Code:InvalidFormat. > Does any one know what I am doing wrong. > I appreciate any help. > Thanks > Qazi Iqbal > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- M?rio Franco | Software Developer | mario.franco at ydreams.com YDreams - Inform?tica S.A. | www.ydreams.com | +351 210 314 000 | Blog | YouTube | Vimeo | Twitter *Disclaimer and Confidentiality Notice:* YDreams accepts no responsibility or liability whatsoever with regard to the information herein contained. This message including any attachment hereof is confidential and may be privileged or otherwise legally protected from disclosure and may only be read, copied and used by the intended recipient. If you are not the intended recipient, please contact the sender immediately (+351 210 314 000) and delete this email and any attachment permanently from your system. You must not copy this email or any attachment or disclose its/their contents to any other person or entity. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mrdouville at shaw.ca Tue Jul 19 12:56:33 2011 From: mrdouville at shaw.ca (Michelle Douvil) Date: Tue, 19 Jul 2011 12:56:33 -0700 (PDT) Subject: [mapserver-users] ArcSDE 9.3.1 QUERYMAP, QUERY or GETFEATUREINFO not workin (Mapserver 6) Message-ID: <1311105393166-6600091.post@n2.nabble.com> Hi All, I figured I'd start a new thread.. I have installed both a custom build for Mapserver 6.0 as well as MS4W 3.0.3.. I can get images back with GetMAP image request via WMS for SDE 9.3.1 data.. However when I try a GetFeatureINFO request via Apache I was getting a "Premature end of script headers: mapserv.exe" So I removed Apache from the picture and try the CGI.. With mapserver 5.2 mapserv -nh "QUERY_STRING=map=e:/sw_nt/mapfiles/base2.map&mode=nquerymap&mapxy=1186128 863840" >test.png (I get a valid png with the feature highlighted..) With ms4w mapserver 6.0.1 and a 6.0.0 build.. I get.. setMode(): Web application error. Invalid mode. Any ideas? Is almost like it doesn't like anything other than mode=map for SDE? I am using both: CONNECTION TYPE PLUGIN..(For MS4W) PLUGIN "E:/sw_nt/ms4w/Apache/specialplugins/msplugin_sde_93.dll" and CONNECTIONTYPE sde (with sde.dll, pe.dll, sg.dll from 9.3 SDK) Many Thanks, Michelle -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/ArcSDE-9-3-1-QUERYMAP-QUERY-or-GETFEATUREINFO-not-workin-Mapserver-6-tp6600091p6600091.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bfraser at geoanalytic.com Tue Jul 19 13:33:05 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 19 Jul 2011 14:33:05 -0600 Subject: [mapserver-users] ArcSDE 9.3.1 QUERYMAP, QUERY or GETFEATUREINFO not workin (Mapserver 6) In-Reply-To: <1311105393166-6600091.post@n2.nabble.com> References: <1311105393166-6600091.post@n2.nabble.com> Message-ID: <4E25EA01.7040001@geoanalytic.com> Michelle, Strange, v6 dropped the various *MAP modes (they are missing in mapserv.h), but I couldn't locate any RFC , but viewing the revisions in Trac (http://trac.osgeo.org/mapserver/changeset/11078) shows a note: Remove map-oriented query modes (e.g.QUERYMAP). Use qformat parameter instead. (#3712) which lead to the Migration Guide (http://mapserver.org/MIGRATION_GUIDE.html) All of the query map related modes (e.g. NQUERYMAP, ITEMQUERYMAP, etc...) have been removed in favor of using the "qformat" parameter. That parameter takes an output format name or mime/type as a value and uses that to process a set of query results. For example: ...&mode=nquerymap&... would become ...&mode=nquery&qformat=png24&... So it's a doc issue, and the ticket is http://trac.osgeo.org/mapserver/ticket/3712 Best Regards, Brent Fraser On 7/19/2011 1:56 PM, Michelle Douvil wrote: > Hi All, > I figured I'd start a new thread.. > > I have installed both a custom build for Mapserver 6.0 as well as MS4W > 3.0.3.. > I can get images back with GetMAP image request via WMS for SDE 9.3.1 data.. > However when I try a GetFeatureINFO request via Apache I was getting > > a "Premature end of script headers: mapserv.exe" > > So I removed Apache from the picture and try the CGI.. > > With mapserver 5.2 > mapserv -nh > "QUERY_STRING=map=e:/sw_nt/mapfiles/base2.map&mode=nquerymap&mapxy=1186128 > 863840">test.png (I get a valid png with the feature highlighted..) > > With ms4w mapserver 6.0.1 and a 6.0.0 build.. I get.. > setMode(): Web application error. Invalid mode. > > Any ideas? Is almost like it doesn't like anything other than mode=map for > SDE? > > I am using both: > > CONNECTION TYPE PLUGIN..(For MS4W) > PLUGIN "E:/sw_nt/ms4w/Apache/specialplugins/msplugin_sde_93.dll" > > and > > CONNECTIONTYPE sde > (with sde.dll, pe.dll, sg.dll from 9.3 SDK) > > > > Many Thanks, > Michelle > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/ArcSDE-9-3-1-QUERYMAP-QUERY-or-GETFEATUREINFO-not-workin-Mapserver-6-tp6600091p6600091.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 joanne.mcgraw at SYMPATICO.CA Tue Jul 19 13:56:52 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Tue, 19 Jul 2011 13:56:52 -0700 (PDT) Subject: [mapserver-users] Can't WFS getFeature w/MapServer 6.0.1 Message-ID: <1311109012988-6600286.post@n2.nabble.com> I am trying to perform a WFS getFeature request with a newly compiled version of MapServer 6.0.1. It is failing with a segmentation fault and the failure is related to SDE somehow but I'm not sure how to proceed. It's possible the thread http://osgeo-org.1803224.n2.nabble.com/ArcSDE-9-3-1-QUERYMAP-QUERY-or-GETFEATUREINFO-not-workin-Mapserver-6-td6600091.html is describing a similar problem, but the current suggested 'fix' post suggests this is not the case. Since the original reporter has not responded, I can't be sure if his problem is now addressed and is, therefore, a different problem. It could just be a red herring. Ultimately, at this moment, I'm stuck re: how to proceed and any information or pointers to get me moving again would be appreciated. Details of my problem follow. cheers, jtm Background: I have a simple Mapfile that supports WFS requests (the GetCapabilities response provides no warnings or errors): MAP NAME "mySubMap" FONTSET "../../../mapserv/etc/fonts.txt" SYMBOLSET "../../../mapserv/etc/symbols.sym" SIZE 800 600 IMAGETYPE PNG IMAGECOLOR 255 255 255 EXTENT -2903297.697389 -789911.662978 3431059.382789 3959683.443689 UNITS METERS PROJECTION "init=epsg:42304" END WEB IMAGEPATH "//httpd/htdocs/ogc_tmp/" IMAGEURL "/ogc_tmp/" METADATA "ows_title" "joanne_sde.map" "ows_onlineresource" "http:///ogc/joanne_sde" "ows_enable_request" "*" END #end METADATA END #end WEB OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END #end OUTPUTFORMAT LAYER NAME 'Roads25M' TYPE LINE STATUS ON CONNECTION "host,port,sde,username,password" CONNECTIONTYPE SDE DATA 'XDM_XDATA.TRN_NSF_ROAD_V6_CT25M_R2,SHAPE,SDE.DEFAULT' METADATA "ows_title" "Roads Title" "gml_featureid" "OBJECTID" "gml_include_items" "all" END #end METADATA DUMP true CLASS STYLE COLOR 0 0 0 END #end STYLE END #end CLASS END #end LAYER END #end MAP When I try to do a getFeature request, it fails with an Internal Server Error: http:///ogc/joanne_sde?typename=Roads25M&maxfeatures=2&service=wfs&version=1.0.0&request=getfeature Looking at the error log, I see: [Tue Jul 19 16:06:23 2011] [error] [client 10.117.21.141] /server/nl18/httpd/cgi-bin/joanne_sde: line 4: 24316 Segmentation fault ${MS_CGIBIN}mapserv [Tue Jul 19 16:06:23 2011] [error] [client 10.117.21.141] Premature end of script headers: joanne_sde This is similar to that discussed at: http://osgeo-org.1803224.n2.nabble.com/Upgrade-MapServer-from-5-4-to-6-0-td6563752.html. So, taking the suggestion of Daniel Morisette in that post, I have used gdb to try to find the source of the segmentation fault. It tells me the segmentation fault is occurring at: Program received signal SIGSEGV, Segmentation fault. 0x08157116 in msSDELayerFreeItemInfo (layer=0x8218a90) at mapsde.c:2117 2117 mapsde.c: No such file or directory. in mapsde.c (gdb) bt #0 0x08157116 in msSDELayerFreeItemInfo (layer=0x8218a90) at mapsde.c:2117 #1 0x080af586 in msLayerFreeItemInfo (layer=0x8218a90) at maplayer.c:68 #2 0x080af8b4 in msLayerClose (layer=0x8218a90) at maplayer.c:210 #3 0x08096685 in msQueryByRect (map=0x82112e0) at mapquery.c:1024 #4 0x080df889 in msWFSGetFeature (map=0x82112e0, paramsObj=0x821f510, req=0x8210ca8, ows_request=0xbfffe46c) at mapwfs.c:2500 #5 0x080e098f in msWFSDispatch (map=0x82112e0, requestobj=0x8210ca8, ows_request=0xbfffe46c, force_wfs_mode=0) at mapwfs.c:2917 #6 0x080d4622 in msOWSDispatch (map=0x82112e0, request=0x8210ca8, ows_mode=-1) at mapows.c:92 #7 0x0805a2d6 in main (argc=2, argv=0xbfffea94) at mapserv.c:1241 The code in question is "(if (sde->basedefs))" in msSDELayerFreeItemInfo; however, I think the problem is actually because the layer->layerinfo is corrupt or null or something. void msSDELayerFreeItemInfo(layerObj *layer) { #ifdef USE_SDE msSDELayerInfo *sde = NULL; int i; if (!msSDELayerIsOpen(layer)) { msSetError( MS_SDEERR, "SDE layer has not been opened.", "msSDELayerFreeItemInfo()"); } sde = layer->layerinfo; /* this is line 2116 */ if (sde->basedefs) { /* this is line 2117 */ SE_table_free_descriptions(sde->basedefs); : If I change the data in the Mapfile to use a Shapefile instead of SDE, the getFeature request works. So, the problem is quite definately related to working with SDE. However, the SDE log suggests the query took place and returned successfully. The SDE version we are working with is 9.2; and the 9.2 ArcSDE libraries are being used to compile. I have also tried this same thing using a compilation of MapServer 5.4 in this same environment and it works. Any ideas what else I might look at to give me an idea of what I need to fix? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Can-t-WFS-getFeature-w-MapServer-6-0-1-tp6600286p6600286.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mrdouville at shaw.ca Tue Jul 19 15:05:53 2011 From: mrdouville at shaw.ca (Michelle Douvil) Date: Tue, 19 Jul 2011 15:05:53 -0700 (PDT) Subject: [mapserver-users] Re: ArcSDE 9.3.1 QUERYMAP, QUERY or GETFEATUREINFO not workin (Mapserver 6) In-Reply-To: <4E25EA01.7040001@geoanalytic.com> References: <1311105393166-6600091.post@n2.nabble.com> <4E25EA01.7040001@geoanalytic.com> Message-ID: <1311113153388-6600531.post@n2.nabble.com> Thanks for this information Brent.. I tried the following .. mapserv -nh "QUERY_STRING=map=e:/sw_nt/ms4w/mapfiles/3.map&mode=nquery&qformat=png24&&mapxy=1186128 863840" > e:\sw_nt\mapserver\testms4w.png and the result now is a 0 kilobyte png.. and the log file does not report anything .. a getFeatureINFO request does not find any features.. mapserv "QUERY_STRING=map=e:/sw_nt/ms4w/mapfiles/3.map&LAYERS=DBM_7H_MIL_POLITICAL_POLY_BC&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application/vnd.ogc.se_xml&FORMAT=image/jpeg&SRS=EPSG:3005&BBOX=1136822.19419924,815982.719048714,1186128.62547289,863840.736184577&X=250&Y=250&INFO_FORMAT=text/plain&QUERY_LAYERS=DBM_7H_MIL_POLITICAL_POLY_BC&WIDTH=650&HEIGHT=650&FEATURE_COUNT=30" msQueryByPoint(): Search returned no results. No matching record(s) found. Content-type: text/plain GetFeatureInfo results: Search returned no results. for same data Mapserver 5.2 returns this.. E:\sw_nt\mapserver>mapserv "QUERY_STRING=map=e:/sw_nt/mapfiles6/base2.map&LAYER S=DBM_7H_MIL_POLITICAL_POLY_BC&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo& STYLES=&EXCEPTIONS=application/vnd.ogc.se_xml&FORMAT=image/jpeg&SRS=EPSG:3005&BB OX=1136822.19419924,815982.719048714,1186128.62547289,863840.736184577&X=250&Y=2 50&INFO_FORMAT=text/plain&QUERY_LAYERS=DBM_7H_MIL_POLITICAL_POLY_BC&WIDTH=650&HE IGHT=650&FEATURE_COUNT=30" Content-type: text/plain GetFeatureInfo results: Layer 'DBM_7H_MIL_POLITICAL_POLY_BC' Feature 97: STATUS = 'Province' NAME = 'British Columbia' ENGLISH_NAME = 'British Columbia' FRENCH_NAME = 'Colombia-Britannique' REGION_CODE = '59' POLYGON_FEATURE = '0' ISLAND = '' ISLAND_ENGLISH_NAME = '' ISLAND_FRENCH_NAME = '' NATION_ENGLISH_NAME = 'Canada' NATION_FRENCH_NAME = 'Canada' I could give my full mapfile syntax if interested.. Perhaps I am missing a config statement that would make this work for SDE.. Thanks, Michelle -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/ArcSDE-9-3-1-QUERYMAP-QUERY-or-GETFEATUREINFO-not-workin-Mapserver-6-tp6600091p6600531.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bfraser at geoanalytic.com Tue Jul 19 20:40:06 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 19 Jul 2011 21:40:06 -0600 Subject: [mapserver-users] Re: ArcSDE 9.3.1 QUERYMAP, QUERY or GETFEATUREINFO not workin (Mapserver 6) In-Reply-To: <1311113153388-6600531.post@n2.nabble.com> References: <1311105393166-6600091.post@n2.nabble.com> <4E25EA01.7040001@geoanalytic.com> <1311113153388-6600531.post@n2.nabble.com> Message-ID: <4E264E16.8040508@geoanalytic.com> I don't think png24 is defined by default. You either need to define an OUTPUTFORMAT with a NAME of png24, or use a default one (http://mapserver.org/mapfile/outputformat.html#outputformat) like "png" Best Regards, Brent Fraser On 7/19/2011 4:05 PM, Michelle Douvil wrote: > Thanks for this information Brent.. > > I tried the following .. > mapserv -nh > "QUERY_STRING=map=e:/sw_nt/ms4w/mapfiles/3.map&mode=nquery&qformat=png24&&mapxy=1186128 > 863840"> e:\sw_nt\mapserver\testms4w.png > > and the result now is a 0 kilobyte png.. and the log file does not report > anything .. > a getFeatureINFO request does not find any features.. > > > mapserv > "QUERY_STRING=map=e:/sw_nt/ms4w/mapfiles/3.map&LAYERS=DBM_7H_MIL_POLITICAL_POLY_BC&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application/vnd.ogc.se_xml&FORMAT=image/jpeg&SRS=EPSG:3005&BBOX=1136822.19419924,815982.719048714,1186128.62547289,863840.736184577&X=250&Y=250&INFO_FORMAT=text/plain&QUERY_LAYERS=DBM_7H_MIL_POLITICAL_POLY_BC&WIDTH=650&HEIGHT=650&FEATURE_COUNT=30" > > msQueryByPoint(): Search returned no results. No matching record(s) found. > Content-type: text/plain > GetFeatureInfo results: > Search returned no results. > > for same data Mapserver 5.2 returns this.. > > E:\sw_nt\mapserver>mapserv > "QUERY_STRING=map=e:/sw_nt/mapfiles6/base2.map&LAYER > S=DBM_7H_MIL_POLITICAL_POLY_BC&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo& > STYLES=&EXCEPTIONS=application/vnd.ogc.se_xml&FORMAT=image/jpeg&SRS=EPSG:3005&BB > OX=1136822.19419924,815982.719048714,1186128.62547289,863840.736184577&X=250&Y=2 > 50&INFO_FORMAT=text/plain&QUERY_LAYERS=DBM_7H_MIL_POLITICAL_POLY_BC&WIDTH=650&HE > IGHT=650&FEATURE_COUNT=30" > Content-type: text/plain > > GetFeatureInfo results: > > Layer 'DBM_7H_MIL_POLITICAL_POLY_BC' > Feature 97: > STATUS = 'Province' > NAME = 'British Columbia' > ENGLISH_NAME = 'British Columbia' > FRENCH_NAME = 'Colombia-Britannique' > REGION_CODE = '59' > POLYGON_FEATURE = '0' > ISLAND = '' > ISLAND_ENGLISH_NAME = '' > ISLAND_FRENCH_NAME = '' > NATION_ENGLISH_NAME = 'Canada' > NATION_FRENCH_NAME = 'Canada' > > > I could give my full mapfile syntax if interested.. > Perhaps I am missing a config statement that would make this work for SDE.. > > > Thanks, > Michelle > > > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/ArcSDE-9-3-1-QUERYMAP-QUERY-or-GETFEATUREINFO-not-workin-Mapserver-6-tp6600091p6600531.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 mrdouville at shaw.ca Tue Jul 19 22:09:33 2011 From: mrdouville at shaw.ca (Michelle Douvil) Date: Tue, 19 Jul 2011 22:09:33 -0700 (PDT) Subject: [mapserver-users] Re: ArcSDE 9.3.1 QUERYMAP, QUERY or GETFEATUREINFO not workin (Mapserver 6) In-Reply-To: <4E264E16.8040508@geoanalytic.com> References: <1311105393166-6600091.post@n2.nabble.com> <4E25EA01.7040001@geoanalytic.com> <1311113153388-6600531.post@n2.nabble.com> <4E264E16.8040508@geoanalytic.com> Message-ID: <1311138573017-6601369.post@n2.nabble.com> Thanks Brent.. I have tried the following... all with blank response and no errors..it is like the cgi just stops.. &qformat=png24, png, text/plain as well as this.. mapserv -nh "QUERY_STRING=map=e:/sw_nt/ms4w/mapfiles /3.map&mode=ows&LAYERS=DBM_7H_MIL_POLITICAL_POLY_BC&SERVICE=WMS&VERSION=1.1.1&RE QUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application/vnd.ogc.se_xml&FORMAT=image/ jpeg&SRS=EPSG:3005&BBOX=1136822.19419924,815982.719048714,1186128.62547289,86384 0.736184577&X=250&Y=250&INFO_FORMAT=text/plain&QUERY_LAYERS=DBM_7H_MIL_POLITICAL _POLY_BC&WIDTH=650&HEIGHT=650&FEATURE_COUNT=30" > e:\sw_nt\mapserver\testms4w.xm l *I have add a shapefile and get a valid GetFeatureINFO response with ..* E:\sw_nt>mapserv "QUERY_STRING=map=e:/sw_nt/ms4w/mapfiles/3.map&LAYERS=bcmosaic_ yop_index&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=ap plication/vnd.ogc.se_xml&FORMAT=image/jpeg&SRS=EPSG:3005&BBOX=1136822.19419924,8 15982.719048714,1186128.62547289,863840.736184577&X=250&Y=250&INFO_FORMAT=text/p lain&QUERY_LAYERS=bcmosaic_yop_index&WIDTH=650&HEIGHT=650&FEATURE_COUNT=30" Content-type: text/plain GetFeatureInfo results: Layer 'bcmosaic_yop_index' Feature 747: OBJECTID = '748' IMAGE_ID = '8510.000000' PIXEL_SIZE = '1.000000' PHOTO_YEAR = '1998' FILE_NAME = 'bc_093b052_xb1m_utm10_1998.tif' Shape_Leng = '49378.124352' Shape_Area = '150965542.487000' MOSAIC_YEA = '2005' FEATURE_CO = 'RI20040100' *If I set the SDE layer to "STATUS DEFAULT" I get no response at all to...* E:\sw_nt>mapserv "QUERY_STRING=map=e:/sw_nt/ms4w/mapfiles/3.map&mode=nquery&qfor mat=xml&mapxy=1186128 863840" *If I set the SDE layer to "STATUS OFF or ON" I get A response..* E:\sw_nt>mapserv "QUERY_STRING=map=e:/sw_nt/ms4w/mapfiles/3.map&mode=nquery&qfor mat=xml&mapxy=1186128 863840" Content-type: text/html MapServer Message msQueryByPoint(): Search returned no results. No matching record(s) found. Thanks, Michelle -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/ArcSDE-9-3-1-QUERYMAP-QUERY-or-GETFEATUREINFO-not-workin-Mapserver-6-tp6600091p6601369.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sdlime at gmail.com Wed Jul 20 07:34:00 2011 From: sdlime at gmail.com (Steve Lime) Date: Wed, 20 Jul 2011 09:34:00 -0500 Subject: [mapserver-users] ArcSDE 9.3.1 QUERYMAP, QUERY or GETFEATUREINFO not workin (Mapserver 6) In-Reply-To: <1311105393166-6600091.post@n2.nabble.com> References: <1311105393166-6600091.post@n2.nabble.com> Message-ID: The various querymap modes were removed in MapServer 6.0. From the migration guide: "All of the query map related modes (e.g. NQUERYMAP, ITEMQUERYMAP, etc...) have been removed in favor of using the "qformat" parameter. That parameter takes an output format name or mime/type as a value and uses that to process a set of query results. For example: ...&mode=nquerymap&... would become ...&mode=nquery&qformat=png24&..." Steve On Tue, Jul 19, 2011 at 2:56 PM, Michelle Douvil wrote: > Hi All, > I figured I'd start a new thread.. > > I have installed both a custom build for Mapserver 6.0 as well as MS4W > 3.0.3.. > I can get images back with GetMAP image request via WMS for SDE 9.3.1 > data.. > However when I try a GetFeatureINFO request via Apache I was getting > > a "Premature end of script headers: mapserv.exe" > > So I removed Apache from the picture and try the CGI.. > > With mapserver 5.2 > mapserv -nh > "QUERY_STRING=map=e:/sw_nt/mapfiles/base2.map&mode=nquerymap&mapxy=1186128 > 863840" >test.png (I get a valid png with the feature highlighted..) > > With ms4w mapserver 6.0.1 and a 6.0.0 build.. I get.. > setMode(): Web application error. Invalid mode. > > Any ideas? Is almost like it doesn't like anything other than mode=map for > SDE? > > I am using both: > > CONNECTION TYPE PLUGIN..(For MS4W) > PLUGIN "E:/sw_nt/ms4w/Apache/specialplugins/msplugin_sde_93.dll" > > and > > CONNECTIONTYPE sde > (with sde.dll, pe.dll, sg.dll from 9.3 SDK) > > > > Many Thanks, > Michelle > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/ArcSDE-9-3-1-QUERYMAP-QUERY-or-GETFEATUREINFO-not-workin-Mapserver-6-tp6600091p6600091.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 sdlime at gmail.com Wed Jul 20 08:18:52 2011 From: sdlime at gmail.com (Steve Lime) Date: Wed, 20 Jul 2011 10:18:52 -0500 Subject: [mapserver-users] Expression and nquery with sde issue In-Reply-To: <4E25C1CD.3040209@ydreams.com> References: <4E2012F0.9050101@ydreams.com> <97791A65-53FD-497C-A300-6913D85C2820@gmail.com> <4E2050FF.9030307@ydreams.com> <4E25C1CD.3040209@ydreams.com> Message-ID: I don't have access to SDE on my home box but will in a few days when I'm back to work... SDE uses the function msDoubleToString in mapstring.c to convert values (MapServer holds all attribute values as strings). The conversion uses the %g conversion specifier. That must be the problem. If you're building from source you could try changing the calls to msDoubleToString in mapsde.c to pass MS_TRUE instead of MS_FALSE for the last argument. That will trigger the use of %f, perhaps that will make a difference. Could also try changing the conversion specifiers in msDoubleToString to use %Lf and %Lg and see that fixes things. Steve On Tue, Jul 19, 2011 at 12:41 PM, Mario Franco wrote: > Can anyone that uses mapserver with sde reproduce the label and expression > issue that I'm having? > > > > > On 15-07-2011 15:38, Mario Franco wrote: > > > The version is Mapserver 5.6.3 and using the attribute as label was how > find out the values were being rounded. > For example the attribute has values from 1000 to 170000 and if the value > is smaller than 100000 rounds the value with one decimal but above 100000 > rounds to and integer. > I'm using sqlserver with the SDE and the atrribute type is numeric could > this have anything to do with it? > > M?rio > > On 15-07-2011 15:23, Steve Lime wrote: > > On issue one, what version are you using? MapServer shouldn't be rounding > the value. The comparison should be being done as a double. It might be > helpful to see a sample dataset although if this is SDE I can't test on my > end. One thing to try to help diagnose the problem would be to create a > sample mapfile that draws your layer and uses the area attribute for > labeling. What shows up for labels? > > Steve > > Sent from my iPad > > On Jul 15, 2011, at 5:14 AM, Mario Franco > wrote: > > Hi, > > I having two issues with mapserver if anyone can help me I would be > appreciated. > > The first has to do with an Expression in a class: > > I have a shape with an attribute with the 172060.0937 but when add to the > class: > > EXPRESSION ( [AREA] = 172060.0937 ) > > > The problem is that this expression returns false because mapserver is > rounding the double value from the database. If I compare with: > > EXPRESSION ( [AREA] = 172060) > > > it works. There is any way to turn this off or to increase the precision? > > > > The second issue is: > > I'm using this url ( > http://localhost:82/cgi-bin/mapserv.exe?map=D%3a\projects\Inag\InterSIG+II\InterSIG+Website\Trunk\InterSIG+ASP.NET\Maps%2fintersig_281.map&qlayer=Concelhos&layers=Concelhos&MAPSIZE=629%20467&MINX=-232614.525612302&MINY=-49761.6088409424&MAXX=676601.080299802&MAXY=625284&mode=NQUERY&MAPSHAPE=POLYGON%28%28-232614%20-49761,%20-232614%20625284,%20676601%20625284,%20676601%20-49761,%20-232614%20-49761%29%29) > to execute a nquery but I always get the error "msSDELayerGetShape(): SDE > error. SE_stream_fetch_row(): Invalid parameter value passed to function. > (-66) " > > The log doesn't help that much: > > [Fri Jul 15 10:47:19 2011].20000 msSDELayerOpen(): Layer Concelhos opened > from scratch. > [Fri Jul 15 10:47:23 2011].35000 > msConnPoolRegister(Concelhos,ydinag2,port:5151,sde,sde,sde,01D6BCC0) > [Fri Jul 15 10:47:23 2011].35000 msSDELayerOpen(): Layer Concelhos > specified version SDE.DEFAULT. > [Fri Jul 15 10:47:23 2011].42000 msSDEGetLayerInfo(): Looking for layer by > SDE.CONCELH_PTCONT_2008_0_596, SHAPE, ydinag2,port:5151,sde,sde,sde > [Fri Jul 15 10:47:23 2011].42000 msSDEGetLayerInfo(): No cached layerid > found. > [Fri Jul 15 10:47:23 2011].63000 msSDELCacheAdd(): Caching id for > SDE.CONCELH_PTCONT_2008_0_596, SHAPE, ydinag2,port:5151,sde,sde,sde > [Fri Jul 15 10:47:23 2011].72000 Getting all column information in > msSDELayerInitItemInfo > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for > DICO > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for > CONCELHO > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for > DI > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for > DISTRITO > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for > CCDR > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for > NUT3 > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for > NUT3_NOME > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for > NUT2 > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for > NUT2_NOME > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for > AREA2008_1 > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for > objectid > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for > SHAPE > [Fri Jul 15 10:47:23 2011].79000 Column information has already been > gotten... returning from msSDELayerInitItemInfo > [Fri Jul 15 10:47:43 2011].122000 msSDELayerGetShape(): SDE error. > SE_stream_fetch_row(): Invalid parameter value passed to function. (-66) > [Fri Jul 15 10:47:43 2011].126000 msFreeMap(): freeing map at 01D3EFE8. > [Fri Jul 15 10:47:43 2011].126000 msSDELayerCloseConnection(): Closing > connection for layer Concelhos. > [Fri Jul 15 10:47:43 2011].126000 > msConnPoolRelease(Concelhos,ydinag2,port:5151,sde,sde,sde,01D6BCC0) > [Fri Jul 15 10:47:43 2011].126000 > msConnPoolClose(ydinag2,port:5151,sde,sde,sde,01D6BCC0) > [Fri Jul 15 10:47:43 2011].156000 msSDELayerClose(): Closing layer > Concelhos. > [Fri Jul 15 10:47:43 2011].156000 > msConnPoolRelease(Concelhos,ydinag2,port:5151,sde,sde,sde,00000000) > [Fri Jul 15 10:47:43 2011].156000 msConnPoolRelease(): Unable to find > handle for layer 'Concelhos'. > [Fri Jul 15 10:47:43 2011].156000 msConnPoolRelease(): General error > message. Unable to find handle for layer 'Concelhos'. > > > > Here part of my configuration: > > LAYER > NAME "Concelhos" > METADATA > "wms_title" "Concelhos" # required > "wfs_title" "Concelhos" # required > "gml_featureid" "ID" ## REQUIRED > "gml_geometries" "geom" > "gml_geom_type" "polygon" > "gml_include_items" "all" # Optional (serves all attributes for layer) > "gml_exclude_items" "GEOMETRY,OBJECTID" > "ows_include_items" "all" > "ows_exclude_items" "GEOMETRY,OBJECTID" > END > DUMP true > TOLERANCE 10 > TOLERANCEUNITS meters > > TYPE polygon > > #CONNECTIONTYPE SDE > CONNECTIONTYPE PLUGIN > PLUGIN "D:/ms4w/Apache/specialplugins/msplugin_sde_92.dll" > CONNECTION "ydinag2,port:5151,sde,sde,sde" > > DATA "SDE.CONCELH_PTCONT_2008_0_596,SHAPE,SDE.DEFAULT" > > PROJECTION > "init=EPSG:3763" #--sistema de coordenadas desta layer na origem > END > > STATUS ON > OPACITY 100 > TEMPLATE '../Templates/Identify/t.html' > > > I'm using Mapserver 5.6.3, I know it's not the latest but I didn't updated > yet. > > Any help would be useful and thx in advance. > > M?rio Franco > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > > M?rio Franco | Software Developer | mario.franco at ydreams.com > YDreams - Inform?tica S.A. | www.ydreams.com | +351 210 314 000 | Blog| > YouTube | Vimeo| > Twitter > > *Disclaimer and Confidentiality Notice:* YDreams accepts no responsibility > or liability whatsoever with regard to the information herein contained. > This message including any attachment hereof is confidential and may be > privileged or otherwise legally protected from disclosure and may only be > read, copied and used by the intended recipient. If you are not the intended > recipient, please contact the sender immediately (+351 210 314 000) and > delete this email and any attachment permanently from your system. You must > not copy this email or any attachment or disclose its/their contents to any > other person or entity. Thank you. > > _______________________________________________ > 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 mario.franco at ydreams.com Wed Jul 20 08:29:16 2011 From: mario.franco at ydreams.com (Mario Franco) Date: Wed, 20 Jul 2011 16:29:16 +0100 Subject: [mapserver-users] Expression and nquery with sde issue In-Reply-To: References: <4E2012F0.9050101@ydreams.com> <97791A65-53FD-497C-A300-6913D85C2820@gmail.com> <4E2050FF.9030307@ydreams.com> <4E25C1CD.3040209@ydreams.com> Message-ID: <4E26F44C.60303@ydreams.com> I'm not building from source because the environment is windows and I don't have a way (and knowledge ) configure all compile environment. But thank you for the explanation I understand the problem, it's probably that because labels with big numbers are converted to scientific notation. The round values are ok for visualization in the labels but not to use in the class filter expressions. I will waiting ... thx M?rio On 20-07-2011 16:18, Steve Lime wrote: > I don't have access to SDE on my home box but will in a few days when > I'm back to work... SDE uses the function msDoubleToString in > mapstring.c to convert values (MapServer holds all attribute values as > strings). The conversion uses the %g conversion specifier. That must > be the problem. > > If you're building from source you could try changing the calls to > msDoubleToString in mapsde.c to pass MS_TRUE instead of MS_FALSE for > the last argument. That will trigger the use of %f, perhaps that will > make a difference. > > Could also try changing the conversion specifiers in msDoubleToString > to use %Lf and %Lg and see that fixes things. > > Steve > > On Tue, Jul 19, 2011 at 12:41 PM, Mario Franco > > wrote: > > Can anyone that uses mapserver with sde reproduce the label and > expression issue that I'm having? > > > > > On 15-07-2011 15:38, Mario Franco wrote: >> >> The version is Mapserver 5.6.3 and using the attribute as label >> was how find out the values were being rounded. >> For example the attribute has values from 1000 to 170000 and if >> the value is smaller than 100000 rounds the value with one >> decimal but above 100000 >> rounds to and integer. >> I'm using sqlserver with the SDE and the atrribute type is >> numeric could this have anything to do with it? >> >> M?rio >> >> On 15-07-2011 15:23, Steve Lime wrote: >>> On issue one, what version are you using? MapServer shouldn't be >>> rounding the value. The comparison should be being done as a >>> double. It might be helpful to see a sample dataset although if >>> this is SDE I can't test on my end. One thing to try to help >>> diagnose the problem would be to create a sample mapfile that >>> draws your layer and uses the area attribute for labeling. What >>> shows up for labels? >>> >>> Steve >>> >>> Sent from my iPad >>> >>> On Jul 15, 2011, at 5:14 AM, Mario Franco >>> > wrote: >>> >>>> Hi, >>>> >>>> I having two issues with mapserver if anyone can help me I >>>> would be appreciated. >>>> >>>> The first has to do with an Expression in a class: >>>> >>>> I have a shape with an attribute with the 172060.0937 but when >>>> add to the class: >>>> >>>>> EXPRESSION ( [AREA] = 172060.0937 ) >>>> >>>> The problem is that this expression returns false because >>>> mapserver is rounding the double value from the database. If I >>>> compare with: >>>> >>>>> EXPRESSION ( [AREA] = 172060) >>>> >>>> it works. There is any way to turn this off or to increase the >>>> precision? >>>> >>>> >>>> >>>> The second issue is: >>>> >>>> I'm using this url >>>> (http://localhost:82/cgi-bin/mapserv.exe?map=D%3a\projects\Inag\InterSIG+II\InterSIG+Website\Trunk\InterSIG+ASP.NET\Maps%2fintersig_281.map&qlayer=Concelhos&layers=Concelhos&MAPSIZE=629%20467&MINX=-232614.525612302&MINY=-49761.6088409424&MAXX=676601.080299802&MAXY=625284&mode=NQUERY&MAPSHAPE=POLYGON%28%28-232614%20-49761,%20-232614%20625284,%20676601%20625284,%20676601%20-49761,%20-232614%20-49761%29%29 >>>> ) >>>> to execute a nquery but I always get the error >>>> "msSDELayerGetShape(): SDE error. SE_stream_fetch_row(): >>>> Invalid parameter value passed to function. (-66) " >>>> >>>> The log doesn't help that much: >>>> >>>>> [Fri Jul 15 10:47:19 2011].20000 msSDELayerOpen(): Layer >>>>> Concelhos opened from scratch. >>>>> [Fri Jul 15 10:47:23 2011].35000 >>>>> msConnPoolRegister(Concelhos,ydinag2,port:5151,sde,sde,sde,01D6BCC0) >>>>> [Fri Jul 15 10:47:23 2011].35000 msSDELayerOpen(): Layer >>>>> Concelhos specified version SDE.DEFAULT. >>>>> [Fri Jul 15 10:47:23 2011].42000 msSDEGetLayerInfo(): Looking >>>>> for layer by SDE.CONCELH_PTCONT_2008_0_596, SHAPE, >>>>> ydinag2,port:5151,sde,sde,sde >>>>> [Fri Jul 15 10:47:23 2011].42000 msSDEGetLayerInfo(): No >>>>> cached layerid found. >>>>> [Fri Jul 15 10:47:23 2011].63000 msSDELCacheAdd(): Caching id >>>>> for SDE.CONCELH_PTCONT_2008_0_596, SHAPE, >>>>> ydinag2,port:5151,sde,sde,sde >>>>> [Fri Jul 15 10:47:23 2011].72000 Getting all column >>>>> information in msSDELayerInitItemInfo >>>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): >>>>> getting info for DICO >>>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): >>>>> getting info for CONCELHO >>>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): >>>>> getting info for DI >>>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): >>>>> getting info for DISTRITO >>>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): >>>>> getting info for CCDR >>>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): >>>>> getting info for NUT3 >>>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): >>>>> getting info for NUT3_NOME >>>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): >>>>> getting info for NUT2 >>>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): >>>>> getting info for NUT2_NOME >>>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): >>>>> getting info for AREA2008_1 >>>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): >>>>> getting info for objectid >>>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): >>>>> getting info for SHAPE >>>>> [Fri Jul 15 10:47:23 2011].79000 Column information has >>>>> already been gotten... returning from msSDELayerInitItemInfo >>>>> [Fri Jul 15 10:47:43 2011].122000 msSDELayerGetShape(): SDE >>>>> error. SE_stream_fetch_row(): Invalid parameter value passed >>>>> to function. (-66) >>>>> [Fri Jul 15 10:47:43 2011].126000 msFreeMap(): freeing map at >>>>> 01D3EFE8. >>>>> [Fri Jul 15 10:47:43 2011].126000 msSDELayerCloseConnection(): >>>>> Closing connection for layer Concelhos. >>>>> [Fri Jul 15 10:47:43 2011].126000 >>>>> msConnPoolRelease(Concelhos,ydinag2,port:5151,sde,sde,sde,01D6BCC0) >>>>> [Fri Jul 15 10:47:43 2011].126000 >>>>> msConnPoolClose(ydinag2,port:5151,sde,sde,sde,01D6BCC0) >>>>> [Fri Jul 15 10:47:43 2011].156000 msSDELayerClose(): Closing >>>>> layer Concelhos. >>>>> [Fri Jul 15 10:47:43 2011].156000 >>>>> msConnPoolRelease(Concelhos,ydinag2,port:5151,sde,sde,sde,00000000) >>>>> [Fri Jul 15 10:47:43 2011].156000 msConnPoolRelease(): Unable >>>>> to find handle for layer 'Concelhos'. >>>>> [Fri Jul 15 10:47:43 2011].156000 msConnPoolRelease(): General >>>>> error message. Unable to find handle for layer 'Concelhos'. >>>> >>>> >>>> Here part of my configuration: >>>>> LAYER >>>>> NAME "Concelhos" >>>>> METADATA >>>>> "wms_title" "Concelhos" # required >>>>> "wfs_title" "Concelhos" # required >>>>> "gml_featureid" "ID" ## REQUIRED >>>>> "gml_geometries" "geom" >>>>> "gml_geom_type" "polygon" >>>>> "gml_include_items" "all" # Optional (serves all attributes for layer) >>>>> "gml_exclude_items" "GEOMETRY,OBJECTID" >>>>> "ows_include_items" "all" >>>>> "ows_exclude_items" "GEOMETRY,OBJECTID" >>>>> END >>>>> DUMP true >>>>> TOLERANCE 10 >>>>> TOLERANCEUNITS meters >>>>> >>>>> TYPE polygon >>>>> >>>>> #CONNECTIONTYPE SDE >>>>> CONNECTIONTYPE PLUGIN >>>>> PLUGIN "D:/ms4w/Apache/specialplugins/msplugin_sde_92.dll" >>>>> CONNECTION "ydinag2,port:5151,sde,sde,sde" >>>>> >>>>> DATA "SDE.CONCELH_PTCONT_2008_0_596,SHAPE,SDE.DEFAULT" >>>>> >>>>> PROJECTION >>>>> "init=EPSG:3763" #--sistema de coordenadas desta layer na origem >>>>> END >>>>> >>>>> STATUS ON >>>>> OPACITY 100 >>>>> TEMPLATE '../Templates/Identify/t.html' >>>> >>>> I'm using Mapserver 5.6.3, I know it's not the latest but I >>>> didn't updated yet. >>>> >>>> Any help would be useful and thx in advance. >>>> >>>> M?rio Franco >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > -- > > M?rio Franco | Software Developer | mario.franco at ydreams.com > > YDreams - Inform?tica S.A. | www.ydreams.com > | +351 210 314 000 > | Blog > | YouTube > | Vimeo > | Twitter > > > *Disclaimer and Confidentiality Notice:* YDreams accepts no > responsibility or liability whatsoever with regard to the > information herein contained. This message including any > attachment hereof is confidential and may be privileged or > otherwise legally protected from disclosure and may only be read, > copied and used by the intended recipient. If you are not the > intended recipient, please contact the sender immediately (+351 > 210 314 000) and delete this email and any attachment permanently > from your system. You must not copy this email or any attachment > or disclose its/their contents to any other person or entity. > Thank you. > > > _______________________________________________ > 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 stephan.holl at intevation.de Wed Jul 20 08:34:12 2011 From: stephan.holl at intevation.de (Stephan Holl) Date: Wed, 20 Jul 2011 17:34:12 +0200 Subject: [mapserver-users] Expression and nquery with sde issue In-Reply-To: <4E26F44C.60303@ydreams.com> References: <4E2012F0.9050101@ydreams.com> <97791A65-53FD-497C-A300-6913D85C2820@gmail.com> <4E2050FF.9030307@ydreams.com> <4E25C1CD.3040209@ydreams.com> <4E26F44C.60303@ydreams.com> Message-ID: <20110720173412.0fc6a879@thoe.hq.intevation.de> Hello Mario, Mario Franco , [20110720 - 16:29:16] > I'm not building from source because the environment is windows and I > don't have a way (and knowledge ) configure all compile environment. > > But thank you for the explanation I understand the problem, it's > probably that because labels with big numbers are converted to > scientific notation. > > The round values are ok for visualization in the labels but not to > use in the class filter expressions. we use SDE quite a lot, but do not have this issues. in current trunk there is problem (recently fixed)[1] related with the expression and filters. Best Stephan [1] http://trac.osgeo.org/mapserver/ticket/3481 > On 20-07-2011 16:18, Steve Lime wrote: > > I don't have access to SDE on my home box but will in a few days > > when I'm back to work... SDE uses the function msDoubleToString in > > mapstring.c to convert values (MapServer holds all attribute values > > as strings). The conversion uses the %g conversion specifier. That > > must be the problem. > > > > If you're building from source you could try changing the calls to > > msDoubleToString in mapsde.c to pass MS_TRUE instead of MS_FALSE > > for the last argument. That will trigger the use of %f, perhaps > > that will make a difference. > > > > Could also try changing the conversion specifiers in > > msDoubleToString to use %Lf and %Lg and see that fixes things. > > > > Steve > > > > On Tue, Jul 19, 2011 at 12:41 PM, Mario Franco > > > wrote: > > > > Can anyone that uses mapserver with sde reproduce the label and > > expression issue that I'm having? > > > > > > > > > > On 15-07-2011 15:38, Mario Franco wrote: > >> > >> The version is Mapserver 5.6.3 and using the attribute as label > >> was how find out the values were being rounded. > >> For example the attribute has values from 1000 to 170000 and if > >> the value is smaller than 100000 rounds the value with one > >> decimal but above 100000 > >> rounds to and integer. > >> I'm using sqlserver with the SDE and the atrribute type is > >> numeric could this have anything to do with it? > >> > >> M?rio > >> > >> On 15-07-2011 15:23, Steve Lime wrote: > >>> On issue one, what version are you using? MapServer shouldn't > >>> be rounding the value. The comparison should be being done as a > >>> double. It might be helpful to see a sample dataset although > >>> if this is SDE I can't test on my end. One thing to try to help > >>> diagnose the problem would be to create a sample mapfile that > >>> draws your layer and uses the area attribute for labeling. > >>> What shows up for labels? > >>> > >>> Steve > >>> > >>> Sent from my iPad > >>> > >>> On Jul 15, 2011, at 5:14 AM, Mario Franco > >>> > > >>> wrote: > >>> > >>>> Hi, > >>>> > >>>> I having two issues with mapserver if anyone can help me I > >>>> would be appreciated. > >>>> > >>>> The first has to do with an Expression in a class: > >>>> > >>>> I have a shape with an attribute with the 172060.0937 but > >>>> when add to the class: > >>>> > >>>>> EXPRESSION ( [AREA] = 172060.0937 ) > >>>> > >>>> The problem is that this expression returns false because > >>>> mapserver is rounding the double value from the database. If > >>>> I compare with: > >>>> > >>>>> EXPRESSION ( [AREA] = 172060) > >>>> > >>>> it works. There is any way to turn this off or to increase > >>>> the precision? > >>>> > >>>> > >>>> > >>>> The second issue is: > >>>> > >>>> I'm using this url > >>>> (http://localhost:82/cgi-bin/mapserv.exe?map=D%3a\projects\Inag\InterSIG+II\InterSIG+Website\Trunk\InterSIG+ASP.NET\Maps%2fintersig_281.map&qlayer=Concelhos&layers=Concelhos&MAPSIZE=629%20467&MINX=-232614.525612302&MINY=-49761.6088409424&MAXX=676601.080299802&MAXY=625284&mode=NQUERY&MAPSHAPE=POLYGON%28%28-232614%20-49761,%20-232614%20625284,%20676601%20625284,%20676601%20-49761,%20-232614%20-49761%29%29 > >>>> ) > >>>> to execute a nquery but I always get the error > >>>> "msSDELayerGetShape(): SDE error. SE_stream_fetch_row(): > >>>> Invalid parameter value passed to function. (-66) " > >>>> > >>>> The log doesn't help that much: > >>>> > >>>>> [Fri Jul 15 10:47:19 2011].20000 msSDELayerOpen(): Layer > >>>>> Concelhos opened from scratch. > >>>>> [Fri Jul 15 10:47:23 2011].35000 > >>>>> msConnPoolRegister(Concelhos,ydinag2,port:5151,sde,sde,sde,01D6BCC0) > >>>>> [Fri Jul 15 10:47:23 2011].35000 msSDELayerOpen(): Layer > >>>>> Concelhos specified version SDE.DEFAULT. > >>>>> [Fri Jul 15 10:47:23 2011].42000 msSDEGetLayerInfo(): > >>>>> Looking for layer by SDE.CONCELH_PTCONT_2008_0_596, SHAPE, > >>>>> ydinag2,port:5151,sde,sde,sde > >>>>> [Fri Jul 15 10:47:23 2011].42000 msSDEGetLayerInfo(): No > >>>>> cached layerid found. > >>>>> [Fri Jul 15 10:47:23 2011].63000 msSDELCacheAdd(): Caching > >>>>> id for SDE.CONCELH_PTCONT_2008_0_596, SHAPE, > >>>>> ydinag2,port:5151,sde,sde,sde > >>>>> [Fri Jul 15 10:47:23 2011].72000 Getting all column > >>>>> information in msSDELayerInitItemInfo > >>>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): > >>>>> getting info for DICO > >>>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): > >>>>> getting info for CONCELHO > >>>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): > >>>>> getting info for DI > >>>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): > >>>>> getting info for DISTRITO > >>>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): > >>>>> getting info for CCDR > >>>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): > >>>>> getting info for NUT3 > >>>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): > >>>>> getting info for NUT3_NOME > >>>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): > >>>>> getting info for NUT2 > >>>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): > >>>>> getting info for NUT2_NOME > >>>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): > >>>>> getting info for AREA2008_1 > >>>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): > >>>>> getting info for objectid > >>>>> [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): > >>>>> getting info for SHAPE > >>>>> [Fri Jul 15 10:47:23 2011].79000 Column information has > >>>>> already been gotten... returning from msSDELayerInitItemInfo > >>>>> [Fri Jul 15 10:47:43 2011].122000 msSDELayerGetShape(): SDE > >>>>> error. SE_stream_fetch_row(): Invalid parameter value passed > >>>>> to function. (-66) > >>>>> [Fri Jul 15 10:47:43 2011].126000 msFreeMap(): freeing map > >>>>> at 01D3EFE8. > >>>>> [Fri Jul 15 10:47:43 2011].126000 > >>>>> msSDELayerCloseConnection(): Closing connection for layer > >>>>> Concelhos. [Fri Jul 15 10:47:43 2011].126000 > >>>>> msConnPoolRelease(Concelhos,ydinag2,port:5151,sde,sde,sde,01D6BCC0) > >>>>> [Fri Jul 15 10:47:43 2011].126000 > >>>>> msConnPoolClose(ydinag2,port:5151,sde,sde,sde,01D6BCC0) > >>>>> [Fri Jul 15 10:47:43 2011].156000 msSDELayerClose(): Closing > >>>>> layer Concelhos. > >>>>> [Fri Jul 15 10:47:43 2011].156000 > >>>>> msConnPoolRelease(Concelhos,ydinag2,port:5151,sde,sde,sde,00000000) > >>>>> [Fri Jul 15 10:47:43 2011].156000 msConnPoolRelease(): > >>>>> Unable to find handle for layer 'Concelhos'. > >>>>> [Fri Jul 15 10:47:43 2011].156000 msConnPoolRelease(): > >>>>> General error message. Unable to find handle for layer > >>>>> 'Concelhos'. > >>>> > >>>> > >>>> Here part of my configuration: > >>>>> LAYER > >>>>> NAME "Concelhos" > >>>>> METADATA > >>>>> "wms_title" "Concelhos" # required > >>>>> "wfs_title" "Concelhos" # required > >>>>> "gml_featureid" "ID" ## REQUIRED > >>>>> "gml_geometries" "geom" > >>>>> "gml_geom_type" "polygon" > >>>>> "gml_include_items" "all" # > >>>>> Optional (serves all attributes for layer) "gml_exclude_items" > >>>>> "GEOMETRY,OBJECTID" "ows_include_items" "all" > >>>>> "ows_exclude_items" > >>>>> "GEOMETRY,OBJECTID" END > >>>>> DUMP true > >>>>> TOLERANCE 10 > >>>>> TOLERANCEUNITS meters > >>>>> > >>>>> TYPE polygon > >>>>> > >>>>> #CONNECTIONTYPE SDE > >>>>> CONNECTIONTYPE PLUGIN > >>>>> PLUGIN > >>>>> "D:/ms4w/Apache/specialplugins/msplugin_sde_92.dll" CONNECTION > >>>>> "ydinag2,port:5151,sde,sde,sde" > >>>>> DATA > >>>>> "SDE.CONCELH_PTCONT_2008_0_596,SHAPE,SDE.DEFAULT" > >>>>> PROJECTION > >>>>> "init=EPSG:3763" #--sistema de coordenadas > >>>>> desta layer na origem END > >>>>> > >>>>> STATUS ON > >>>>> OPACITY 100 > >>>>> TEMPLATE '../Templates/Identify/t.html' > >>>> > >>>> I'm using Mapserver 5.6.3, I know it's not the latest but I > >>>> didn't updated yet. > >>>> > >>>> Any help would be useful and thx in advance. > >>>> > >>>> M?rio Franco > >>>> > >>>> _______________________________________________ > >>>> mapserver-users mailing list > >>>> mapserver-users at lists.osgeo.org > >>>> > >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > > > > > -- > > > > M?rio Franco | Software Developer | mario.franco at ydreams.com > > > > YDreams - Inform?tica S.A. | www.ydreams.com > > | +351 210 314 000 > > | Blog > > | YouTube > > | Vimeo > > | Twitter > > > > > > *Disclaimer and Confidentiality Notice:* YDreams accepts no > > responsibility or liability whatsoever with regard to the > > information herein contained. This message including any > > attachment hereof is confidential and may be privileged or > > otherwise legally protected from disclosure and may only be > > read, copied and used by the intended recipient. If you are not the > > intended recipient, please contact the sender immediately (+351 > > 210 314 000) and delete this email and any attachment > > permanently from your system. You must not copy this email or any > > attachment or disclose its/their contents to any other person or > > entity. Thank you. > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > -- 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: 198 bytes Desc: not available URL: From sdlime at gmail.com Wed Jul 20 08:57:25 2011 From: sdlime at gmail.com (Steve Lime) Date: Wed, 20 Jul 2011 10:57:25 -0500 Subject: [mapserver-users] MapServer Docs in Android Market In-Reply-To: <53BBB3242731418AB1BFCA33FC0DC33C.MAI@w31952.domainxyz.de> References: <53BBB3242731418AB1BFCA33FC0DC33C.MAI@w31952.domainxyz.de> Message-ID: Looks great! How should we integrate into the main website? Steve On Sat, Jul 9, 2011 at 7:11 AM, wrote: > Hi all, > here's my MapServer docs App for android in the market: > https://market.android.com/details?id=com.netgis.mapserver_doc&hl=en > Or search on your phone in the market for "mapserver". > Greetings > Sven > > > > _______________________________________________ > 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 Bob.Basques at ci.stpaul.mn.us Wed Jul 20 09:12:11 2011 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Wed, 20 Jul 2011 11:12:11 -0500 Subject: [mapserver-users] MapServer Docs in Android Market In-Reply-To: References: <53BBB3242731418AB1BFCA33FC0DC33C.MAI@w31952.domainxyz.de> Message-ID: <4E26B80B020000A80002C4A0@heckle> Should/could this be considered a translation type? bobb >>> Steve Lime wrote: Looks great! How should we integrate into the main website? Steve On Sat, Jul 9, 2011 at 7:11 AM, wrote: Hi all, here's my MapServer docs App for android in the market: https://market.android.com/details?id=com.netgis.mapserver_doc&hl=en Or search on your phone in the market for "mapserver". Greetings Sven _______________________________________________ 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 umberto.nicoletti at gmail.com Wed Jul 20 09:45:12 2011 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Wed, 20 Jul 2011 18:45:12 +0200 Subject: [mapserver-users] mapscript - java exception In-Reply-To: References: Message-ID: The reason is that the servlet container is trying to serialize your session and the mapscript objects are not serializable. Also remember that, although it might work for some use cases, storing mapscript objects in session and reusing them is not the recommended best practice. hth, umberto On Tuesday, July 19, 2011, ahmet temiz wrote: > hello > > I am dealing with mapscript - java. > > I received this error message. > Could you tell me what the reason might be ? > > regards > > > Caused by: java.io.NotSerializableException: edu.umn.gis.mapscript.mapObj > ? ? ? ?at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164) > ? ? ? ?at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518) > ? ? ? ?at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483) > ? ? ? ?at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400) > ? ? ? ?at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158) > ? ? ? ?at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330) > ? ? ? ?at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1676) > > -- > Ahmet Temiz > Jeoloji M?h. > Afet ve Acil Durum Y?netimi Ba?kanl??? > Planlama ve Zarar Azaltma Dairesi Ba?kanl??? > Bilgi ve CBS grubu > Eski?ehir Yolu 10. km. > Lodumlu / Ankara > Tel : 0 312 2872680 / 1535 > ________________________ > > Ahmet Temiz > Geological Eng. > Information Systems - GIS Group > Disaster and Emergency Management > of Presidency > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From mrdouville at shaw.ca Wed Jul 20 09:59:52 2011 From: mrdouville at shaw.ca (Michelle Douvil) Date: Wed, 20 Jul 2011 09:59:52 -0700 (PDT) Subject: [mapserver-users] Re: ArcSDE 9.3.1 QUERYMAP, QUERY or GETFEATUREINFO not workin (Mapserver 6) In-Reply-To: References: <1311105393166-6600091.post@n2.nabble.com> Message-ID: <1311181192850-6603529.post@n2.nabble.com> Hi Steve, Thanks for the information.. I have replaced ...&mode=nquerymap&...with ...&mode=nquery&qformat=png24&..."(among other qformats) mode= map and WMS GETMAP work.. mode=query and WMS GETFEATUREINFO do not.. .. all with blank response and no errors..it is like the cgi just stops.. *If I set the SDE layer to "STATUS DEFAULT or ON" I get no response at all to...* E:\sw_nt>mapserv "QUERY_STRING=map=e:/sw_nt/ms4w/mapfiles/3.map&mode=nquery&qfor mat=text/plain&mapxy=1186128 863840" *If I set the SDE layer to "STATUS OFF" I get A response..* E:\sw_nt>mapserv "QUERY_STRING=map=e:/sw_nt/ms4w/mapfiles/3.map&mode=nquery&qfor mat=text/plain&mapxy=1186128 863840" Content-type: text/html MapServer Message MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPOR TS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FR IBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_C LIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE msQueryByPoint(): Search returned no results. No matching record(s) found. My Mapfile is as follows: MAP EXTENT -140 45 -100 62 SIZE 100 100 UNITS DD SYMBOLSET "total.sym" FONTSET "fonts.lst" NAME "map3" CONFIG "MS_ERRORFILE" "e:/sw_nt/ms4w/mapfiles/logs/3.log" DEBUG 5 SHAPEPATH "E:/apps_data/shape/indexes/" WEB METADATA "wms_title" "British Columbia Base WMS Version 3" "wms_onlineresource" "http://server/cgi-bin/mapserv.exe?map=E:\sw_nt\ms4w\mapfiles\3.map&" "ows_enable_request" "*" "wms_srs" "EPSG:4326 EPSG:3005" END TEMPLATE "foo.html" END PROJECTION "init=epsg:4326" END LAYER DEBUG 5 EXTENT 200000 200000 1900000 1900000 NAME 'DBM_7H_MIL_POLITICAL_POLY_BC' CONNECTIONTYPE PLUGIN PLUGIN "E:/sw_nt/ms4w/Apache/specialplugins/msplugin_sde_93.dll" CONNECTION 'server,port:5152,sde,username,password' DATA 'WHSE_BASEMAPPING.DBM_BC_7H_MIL_POLITICAL_POLY,GEOMETRY' CLASSITEM ENGLISH_NAME CLASS TEMPLATE "foo.html" NAME 'BritishColumbia' EXPRESSION ('[ENGLISH_NAME]' eq 'British Columbia') STYLE COLOR 255 190 190 OUTLINECOLOR 0 0 0 END #end style END #end class TYPE polygon MINSCALEDENOM 2000001 MAXSCALEDENOM 1135000000 STATUS OFF PROJECTION "init=epsg:3005" END METADATA wms_title "British Columbia" wms_metadataurl_format "html" wms_metadataurl_href "http://metadataserver" wms_metadataurl_type "TC211" wfs_title "British Columbia" gml_geometries "geom" gml_geom_type "polygon" ows_include_items "all" ows_exclude_items "GEOMETRY,OBJECTID" gml_include_items "all" gml_exclude_items "GEOMETRY,OBJECTID" END #metadata PROCESSING "CLOSE_CONNECTION=DEFER" DUMP TRUE # Used to enable WFS TEMPLATE "foo.html" END #end layer LAYER STATUS DEFAULT EXTENT 200000 200000 1900000 1900000 NAME 'bcmosaic_yop_index' DATA 'bcmosaic_yop_index.shp' TYPE POLYGON CLASS NAME "BC Mosaic Index" STYLE OUTLINECOLOR 0 0 0 END #end style END #end class PROJECTION "init=epsg:3005" END METADATA "wms_title" "BC Mosaic Index" ## REQUIRED "wfs_title" "BC Mosaic Index" ## REQUIRED "gml_featureid" "OBJECTID" ## REQUIRED "ows_include_items" "all" ## Optional (serves all attributes for layer) "gml_geometries" "shape" "gml_geom_type" "polygon" # "gml_exclude_items" "GEOMETRY,OBJECTID" END #metadata DUMP TRUE TEMPLATE "foo.html" MINSCALEDENOM 0 MAXSCALEDENOM 15000000 END #end layer END #layer END -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/ArcSDE-9-3-1-QUERYMAP-QUERY-or-GETFEATUREINFO-not-workin-Mapserver-6-tp6600091p6603529.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Wed Jul 20 10:12:19 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 20 Jul 2011 17:12:19 +0000 Subject: [mapserver-users] Re: ArcSDE 9.3.1 QUERYMAP, QUERY or GETFEATUREINFO not workin (Mapserver 6) In-Reply-To: <1311181192850-6603529.post@n2.nabble.com> References: <1311105393166-6600091.post@n2.nabble.com> , <1311181192850-6603529.post@n2.nabble.com> Message-ID: <84446DEF76453C439E9E97E438E13A63014E78@suutari.haapa.mmm.fi> Hi, Try to remove all the other include_items and try with wms_include_items. I am slightly remembering that I have had a case then this helped, even I think it shouldn't. -Jukka Rahkonen- ________________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] käyttäjän Michelle Douvil [mrdouville at shaw.ca] puolesta L?hetetty: 20. hein?kuuta 2011 19:59 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Re: ArcSDE 9.3.1 QUERYMAP, QUERY or GETFEATUREINFO not workin (Mapserver 6) Hi Steve, Thanks for the information.. I have replaced ...&mode=nquerymap&...with ...&mode=nquery&qformat=png24&..."(among other qformats) mode= map and WMS GETMAP work.. mode=query and WMS GETFEATUREINFO do not.. .. all with blank response and no errors..it is like the cgi just stops.. *If I set the SDE layer to "STATUS DEFAULT or ON" I get no response at all to...* E:\sw_nt>mapserv "QUERY_STRING=map=e:/sw_nt/ms4w/mapfiles/3.map&mode=nquery&qfor mat=text/plain&mapxy=1186128 863840" *If I set the SDE layer to "STATUS OFF" I get A response..* E:\sw_nt>mapserv "QUERY_STRING=map=e:/sw_nt/ms4w/mapfiles/3.map&mode=nquery&qfor mat=text/plain&mapxy=1186128 863840" Content-type: text/html MapServer Message MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPOR TS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FR IBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_C LIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE msQueryByPoint(): Search returned no results. No matching record(s) found. My Mapfile is as follows: MAP EXTENT -140 45 -100 62 SIZE 100 100 UNITS DD SYMBOLSET "total.sym" FONTSET "fonts.lst" NAME "map3" CONFIG "MS_ERRORFILE" "e:/sw_nt/ms4w/mapfiles/logs/3.log" DEBUG 5 SHAPEPATH "E:/apps_data/shape/indexes/" WEB METADATA "wms_title" "British Columbia Base WMS Version 3" "wms_onlineresource" "http://server/cgi-bin/mapserv.exe?map=E:\sw_nt\ms4w\mapfiles\3.map&" "ows_enable_request" "*" "wms_srs" "EPSG:4326 EPSG:3005" END TEMPLATE "foo.html" END PROJECTION "init=epsg:4326" END LAYER DEBUG 5 EXTENT 200000 200000 1900000 1900000 NAME 'DBM_7H_MIL_POLITICAL_POLY_BC' CONNECTIONTYPE PLUGIN PLUGIN "E:/sw_nt/ms4w/Apache/specialplugins/msplugin_sde_93.dll" CONNECTION 'server,port:5152,sde,username,password' DATA 'WHSE_BASEMAPPING.DBM_BC_7H_MIL_POLITICAL_POLY,GEOMETRY' CLASSITEM ENGLISH_NAME CLASS TEMPLATE "foo.html" NAME 'BritishColumbia' EXPRESSION ('[ENGLISH_NAME]' eq 'British Columbia') STYLE COLOR 255 190 190 OUTLINECOLOR 0 0 0 END #end style END #end class TYPE polygon MINSCALEDENOM 2000001 MAXSCALEDENOM 1135000000 STATUS OFF PROJECTION "init=epsg:3005" END METADATA wms_title "British Columbia" wms_metadataurl_format "html" wms_metadataurl_href "http://metadataserver" wms_metadataurl_type "TC211" wfs_title "British Columbia" gml_geometries "geom" gml_geom_type "polygon" ows_include_items "all" ows_exclude_items "GEOMETRY,OBJECTID" gml_include_items "all" gml_exclude_items "GEOMETRY,OBJECTID" END #metadata PROCESSING "CLOSE_CONNECTION=DEFER" DUMP TRUE # Used to enable WFS TEMPLATE "foo.html" END #end layer LAYER STATUS DEFAULT EXTENT 200000 200000 1900000 1900000 NAME 'bcmosaic_yop_index' DATA 'bcmosaic_yop_index.shp' TYPE POLYGON CLASS NAME "BC Mosaic Index" STYLE OUTLINECOLOR 0 0 0 END #end style END #end class PROJECTION "init=epsg:3005" END METADATA "wms_title" "BC Mosaic Index" ## REQUIRED "wfs_title" "BC Mosaic Index" ## REQUIRED "gml_featureid" "OBJECTID" ## REQUIRED "ows_include_items" "all" ## Optional (serves all attributes for layer) "gml_geometries" "shape" "gml_geom_type" "polygon" # "gml_exclude_items" "GEOMETRY,OBJECTID" END #metadata DUMP TRUE TEMPLATE "foo.html" MINSCALEDENOM 0 MAXSCALEDENOM 15000000 END #end layer END #layer END -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/ArcSDE-9-3-1-QUERYMAP-QUERY-or-GETFEATUREINFO-not-workin-Mapserver-6-tp6600091p6603529.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 boolean10001 at yahoo.com Wed Jul 20 10:36:27 2011 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Wed, 20 Jul 2011 10:36:27 -0700 (PDT) Subject: [mapserver-users] mapscript - java exception In-Reply-To: References: Message-ID: <1311183387.28360.YahooMailNeo@web38204.mail.mud.yahoo.com> Ahmet, What are you trying to do ? Are you trying to store a mapObj into the user's session ? This exception is thrown when an object doesn't implements the serializable interface. IC Carlos Ruiz ________________________________ From: ahmet temiz To: mapserver-users Sent: Tuesday, July 19, 2011 3:30 AM Subject: [mapserver-users] mapscript - java exception hello I am dealing with mapscript - java. I received this error message. Could you tell me what the reason might be ? regards Caused by: java.io.NotSerializableException: edu.umn.gis.mapscript.mapObj ??? at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164) ??? at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518) ??? at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483) ??? at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400) ??? at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158) ??? at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330) ??? at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1676) -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Planlama ve Zarar Azaltma Dairesi Ba?kanl??? Bilgi ve CBS grubu Eski?ehir Yolu 10. km. Lodumlu / Ankara Tel : 0 312 2872680 / 1535 ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency _______________________________________________ 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 mrdouville at shaw.ca Wed Jul 20 11:20:11 2011 From: mrdouville at shaw.ca (Michelle Douvil) Date: Wed, 20 Jul 2011 11:20:11 -0700 (PDT) Subject: [mapserver-users] Re: ArcSDE 9.3.1 QUERYMAP, QUERY or GETFEATUREINFO not workin (Mapserver 6) In-Reply-To: <84446DEF76453C439E9E97E438E13A63014E78@suutari.haapa.mmm.fi> References: <1311105393166-6600091.post@n2.nabble.com> <1311181192850-6603529.post@n2.nabble.com> <84446DEF76453C439E9E97E438E13A63014E78@suutari.haapa.mmm.fi> Message-ID: <1311186011081-6603825.post@n2.nabble.com> Thanks Jukka.. I have updated the metadata section for the SDE layer.. METADATA wms_title "British Columbia" wms_metadataurl_format "html" wms_metadataurl_href "metadataurl" wms_metadataurl_type "TC211" gml_geometries "geom" gml_geom_type "polygon" wms_include_items "all" END #metadata with same result as described in previous email.. Thanks again, Michelle -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/ArcSDE-9-3-1-QUERYMAP-QUERY-or-GETFEATUREINFO-not-workin-Mapserver-6-tp6600091p6603825.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sdlime at gmail.com Wed Jul 20 08:18:26 2011 From: sdlime at gmail.com (Steve Lime) Date: Wed, 20 Jul 2011 10:18:26 -0500 Subject: [mapserver-users] Expression and nquery with sde issue In-Reply-To: <4E25C1CD.3040209@ydreams.com> References: <4E2012F0.9050101@ydreams.com> <97791A65-53FD-497C-A300-6913D85C2820@gmail.com> <4E2050FF.9030307@ydreams.com> <4E25C1CD.3040209@ydreams.com> Message-ID: I don't have access to SDE on my home box but will in a few days when I'm back to work... SDE uses the function msDoubleToString in mapstring.c to convert values (MapServer holds all attribute values as strings). The conversion uses the %g conversion specifier. That must be the problem. If you're building from source you could try changing the calls to msDoubleToString in mapsde.c to pass MS_TRUE instead of MS_FALSE for the last argument. That will trigger the use of %f, perhaps that will make a difference. Could also try changing the conversion specifiers in msDoubleToString to use %Lf and %Lg and see that fixes things. Steve On Tue, Jul 19, 2011 at 12:41 PM, Mario Franco wrote: > Can anyone that uses mapserver with sde reproduce the label and expression > issue that I'm having? > > > > > On 15-07-2011 15:38, Mario Franco wrote: > > > The version is Mapserver 5.6.3 and using the attribute as label was how > find out the values were being rounded. > For example the attribute has values from 1000 to 170000 and if the value > is smaller than 100000 rounds the value with one decimal but above 100000 > rounds to and integer. > I'm using sqlserver with the SDE and the atrribute type is numeric could > this have anything to do with it? > > M?rio > > On 15-07-2011 15:23, Steve Lime wrote: > > On issue one, what version are you using? MapServer shouldn't be rounding > the value. The comparison should be being done as a double. It might be > helpful to see a sample dataset although if this is SDE I can't test on my > end. One thing to try to help diagnose the problem would be to create a > sample mapfile that draws your layer and uses the area attribute for > labeling. What shows up for labels? > > Steve > > Sent from my iPad > > On Jul 15, 2011, at 5:14 AM, Mario Franco > wrote: > > Hi, > > I having two issues with mapserver if anyone can help me I would be > appreciated. > > The first has to do with an Expression in a class: > > I have a shape with an attribute with the 172060.0937 but when add to the > class: > > EXPRESSION ( [AREA] = 172060.0937 ) > > > The problem is that this expression returns false because mapserver is > rounding the double value from the database. If I compare with: > > EXPRESSION ( [AREA] = 172060) > > > it works. There is any way to turn this off or to increase the precision? > > > > The second issue is: > > I'm using this url ( > http://localhost:82/cgi-bin/mapserv.exe?map=D%3a\projects\Inag\InterSIG+II\InterSIG+Website\Trunk\InterSIG+ASP.NET\Maps%2fintersig_281.map&qlayer=Concelhos&layers=Concelhos&MAPSIZE=629%20467&MINX=-232614.525612302&MINY=-49761.6088409424&MAXX=676601.080299802&MAXY=625284&mode=NQUERY&MAPSHAPE=POLYGON%28%28-232614%20-49761,%20-232614%20625284,%20676601%20625284,%20676601%20-49761,%20-232614%20-49761%29%29) > to execute a nquery but I always get the error "msSDELayerGetShape(): SDE > error. SE_stream_fetch_row(): Invalid parameter value passed to function. > (-66) " > > The log doesn't help that much: > > [Fri Jul 15 10:47:19 2011].20000 msSDELayerOpen(): Layer Concelhos opened > from scratch. > [Fri Jul 15 10:47:23 2011].35000 > msConnPoolRegister(Concelhos,ydinag2,port:5151,sde,sde,sde,01D6BCC0) > [Fri Jul 15 10:47:23 2011].35000 msSDELayerOpen(): Layer Concelhos > specified version SDE.DEFAULT. > [Fri Jul 15 10:47:23 2011].42000 msSDEGetLayerInfo(): Looking for layer by > SDE.CONCELH_PTCONT_2008_0_596, SHAPE, ydinag2,port:5151,sde,sde,sde > [Fri Jul 15 10:47:23 2011].42000 msSDEGetLayerInfo(): No cached layerid > found. > [Fri Jul 15 10:47:23 2011].63000 msSDELCacheAdd(): Caching id for > SDE.CONCELH_PTCONT_2008_0_596, SHAPE, ydinag2,port:5151,sde,sde,sde > [Fri Jul 15 10:47:23 2011].72000 Getting all column information in > msSDELayerInitItemInfo > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for > DICO > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for > CONCELHO > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for > DI > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for > DISTRITO > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for > CCDR > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for > NUT3 > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for > NUT3_NOME > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for > NUT2 > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for > NUT2_NOME > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for > AREA2008_1 > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for > objectid > [Fri Jul 15 10:47:23 2011].79000 msSDELayerInitItemInfo(): getting info for > SHAPE > [Fri Jul 15 10:47:23 2011].79000 Column information has already been > gotten... returning from msSDELayerInitItemInfo > [Fri Jul 15 10:47:43 2011].122000 msSDELayerGetShape(): SDE error. > SE_stream_fetch_row(): Invalid parameter value passed to function. (-66) > [Fri Jul 15 10:47:43 2011].126000 msFreeMap(): freeing map at 01D3EFE8. > [Fri Jul 15 10:47:43 2011].126000 msSDELayerCloseConnection(): Closing > connection for layer Concelhos. > [Fri Jul 15 10:47:43 2011].126000 > msConnPoolRelease(Concelhos,ydinag2,port:5151,sde,sde,sde,01D6BCC0) > [Fri Jul 15 10:47:43 2011].126000 > msConnPoolClose(ydinag2,port:5151,sde,sde,sde,01D6BCC0) > [Fri Jul 15 10:47:43 2011].156000 msSDELayerClose(): Closing layer > Concelhos. > [Fri Jul 15 10:47:43 2011].156000 > msConnPoolRelease(Concelhos,ydinag2,port:5151,sde,sde,sde,00000000) > [Fri Jul 15 10:47:43 2011].156000 msConnPoolRelease(): Unable to find > handle for layer 'Concelhos'. > [Fri Jul 15 10:47:43 2011].156000 msConnPoolRelease(): General error > message. Unable to find handle for layer 'Concelhos'. > > > > Here part of my configuration: > > LAYER > NAME "Concelhos" > METADATA > "wms_title" "Concelhos" # required > "wfs_title" "Concelhos" # required > "gml_featureid" "ID" ## REQUIRED > "gml_geometries" "geom" > "gml_geom_type" "polygon" > "gml_include_items" "all" # Optional (serves all attributes for layer) > "gml_exclude_items" "GEOMETRY,OBJECTID" > "ows_include_items" "all" > "ows_exclude_items" "GEOMETRY,OBJECTID" > END > DUMP true > TOLERANCE 10 > TOLERANCEUNITS meters > > TYPE polygon > > #CONNECTIONTYPE SDE > CONNECTIONTYPE PLUGIN > PLUGIN "D:/ms4w/Apache/specialplugins/msplugin_sde_92.dll" > CONNECTION "ydinag2,port:5151,sde,sde,sde" > > DATA "SDE.CONCELH_PTCONT_2008_0_596,SHAPE,SDE.DEFAULT" > > PROJECTION > "init=EPSG:3763" #--sistema de coordenadas desta layer na origem > END > > STATUS ON > OPACITY 100 > TEMPLATE '../Templates/Identify/t.html' > > > I'm using Mapserver 5.6.3, I know it's not the latest but I didn't updated > yet. > > Any help would be useful and thx in advance. > > M?rio Franco > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > > M?rio Franco | Software Developer | mario.franco at ydreams.com > YDreams - Inform?tica S.A. | www.ydreams.com | +351 210 314 000 | Blog| > YouTube | Vimeo| > Twitter > > *Disclaimer and Confidentiality Notice:* YDreams accepts no responsibility > or liability whatsoever with regard to the information herein contained. > This message including any attachment hereof is confidential and may be > privileged or otherwise legally protected from disclosure and may only be > read, copied and used by the intended recipient. If you are not the intended > recipient, please contact the sender immediately (+351 210 314 000) and > delete this email and any attachment permanently from your system. You must > not copy this email or any attachment or disclose its/their contents to any > other person or entity. Thank you. > > _______________________________________________ > 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 joanne.mcgraw at SYMPATICO.CA Wed Jul 20 13:02:31 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Wed, 20 Jul 2011 13:02:31 -0700 (PDT) Subject: [mapserver-users] Re: Can't WFS getFeature w/MapServer 6.0.1 In-Reply-To: <1311109012988-6600286.post@n2.nabble.com> References: <1311109012988-6600286.post@n2.nabble.com> Message-ID: <1311192151393-6604123.post@n2.nabble.com> Is it possible that this post and Michelle Douvil's http://osgeo-org.1803224.n2.nabble.com/ArcSDE-9-3-1-QUERYMAP-QUERY-or-GETFEATUREINFO-not-workin-Mapserver-6-td6600091.html are having the same problem? I ask because a co-worker has tried using MS4W 3.0.3 to do a WMS GetFeatureInfo request and he gets an error ("mapserv.exe has encountered a problem and needs to close.") when the Mapfile is using SDE to access the data, but it works fine when he uses a Shapefile...kind of like what's happening to me with my WFS GetFeature query on Linux. Further to my own problem, I now have a 5.6.3 compiled with debug also and, using Data Display Debugger, find that in 5.6.3 the connection and stream properties of layer->layerinfo are 0x0 just before the point of failure in 6.0.1 but when I break at the same location with 6.0.1, there are addresses still referenced there. Like I said in my previous post, SDE appears to believe the connection has been closed successfully and given the error gdb gave it's almost like the connection has already been closed but the address not cleared from the pointer. I don't know. I'm grasping at straws here and hoping someone who knows more about the SDE connection code can provide some guidance. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Can-t-WFS-getFeature-w-MapServer-6-0-1-tp6600286p6604123.html Sent from the Mapserver - User mailing list archive at Nabble.com. From joanne.mcgraw at SYMPATICO.CA Wed Jul 20 13:38:38 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Wed, 20 Jul 2011 13:38:38 -0700 (PDT) Subject: [mapserver-users] WFS GetFeature w/Spatial Filter Message-ID: <1311194318893-6604244.post@n2.nabble.com> Hello, I am trying to do a getFeature request with a Filter using the WITHIN spatial operator. I have a MapServer with the GEOS library compiled in and I am able to get an example working (or not, as the case may be) that exhibits my problem. I am getting an incorrect response to my getFeature request. The request is against a line layer (Shapefile, not SDE as noted in another of my active posts at the moment...they're all really just trying to get to this point) and includes a spatial filter delineating a polygon. I want to learn what features in the line layer (Roads25M) actually fall within the polygon submitted (I am limiting the response to 2 features just for testing purposes; ultimately I will want to know all the roads that fall within the polygon.) My request is: http:///ogc/joanne?typename=Roads25M&maxfeatures=2&filter=msGeometry-1679350.2423216,1550622.4768356 -1816404.334979,992616.52815892 -1552085.7277111,718508.34284404 -1258398.3863023,845772.85745452 -1385662.9009128,1296093.4476147 -1679350.2423216,1550622.4768356&service=wfs&version=1.0.0&request=getfeature Here's the filter string a little easier to read: &filter= msGeometry -1679350.2423216,1550622.4768356 -1816404.334979,992616.52815892 -1552085.7277111,718508.34284404 -1258398.3863023,845772.85745452 -1385662.9009128,1296093.4476147 -1679350.2423216,1550622.4768356 The response is: <wfs:FeatureCollection xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd http://mapserver.gis.umn.edu/mapserver http://<domain>/ogc/joanne?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=Roads25M&OUTPUTFORMAT=XMLSCHEMA"> missing There are no errors in logs that I can find and as far as MapServer is concerned it appears to have successfully processed the request. I have created a Shapefile out of the Polygon coordinates I provide in the request and when I display it and the Roads Shapefile in ArcMap, there is obviously some overlap. In ArcMap, I can perform a "Select by Location" where I "Select features from" Roads that "intersect" Polygon. It highlights 9 records. I assume there is something wrong with the XML defining my spatial filter that is causing no results to be returned but can't determine what it might be. Does anything jump out at anyone? Cheers, jtm -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WFS-GetFeature-w-Spatial-Filter-tp6604244p6604244.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mrdouville at shaw.ca Wed Jul 20 14:16:55 2011 From: mrdouville at shaw.ca (Michelle Douvil) Date: Wed, 20 Jul 2011 14:16:55 -0700 (PDT) Subject: [mapserver-users] Re: Can't WFS getFeature w/MapServer 6.0.1 In-Reply-To: <1311109012988-6600286.post@n2.nabble.com> References: <1311109012988-6600286.post@n2.nabble.com> Message-ID: <1311196615599-6604394.post@n2.nabble.com> I have had no problems with shapefiles for GetFeatureInfo/GetMap via WMS. My issues are all with SDE (we have SDE 9.3.1 and all the data is in SDEBINARY) There were no issues with this data at Mapserver 5.2 and 5.7 Thanks, Michelle > Michelle, > I'm having problems doing a WFS GetFeature request using > MapServer 6.0.1 (as described in my own post at http://osgeo- > org.1803224.n2.nabble.com/Can-t-WFS-getFeature-w-MapServer-6-0-1- > td6600286.html). > Are you able to make a shapefile out of one of the layers you > are accessing in SDE and point your mapfile layer to it rather > than SDE? Does your query work then? > > If yes, then you may be having the same problems we are and it > may be more related to the SDE connection than anything else. > > Let me know what you find out. > > Sheers > jtm > -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Can-t-WFS-getFeature-w-MapServer-6-0-1-tp6600286p6604394.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jk.chen at sdl.usu.edu Wed Jul 20 14:49:11 2011 From: jk.chen at sdl.usu.edu (jk) Date: Wed, 20 Jul 2011 14:49:11 -0700 (PDT) Subject: [mapserver-users] how to serve base map data (in CADRG) using Map server and WMS Message-ID: <1311198551437-6604521.post@n2.nabble.com> Hi, I'm new to mapserver and map in general. I'm also new to mapfile. I am assigning a task to serve our map data (tons of files, in CADRG and CIB, with a proprietier programming access methods), using the Mapserver and WMS. Can anyone describe ideas how to do it, ie serving our base map via mapserver in WMS. Is this done via mapfiles? or do I need to write a php script to parse WMS parameters and invoke our access methods and serve the tiles directly from the php script, without use of map files.... ? Your ideas and insights are very much appreciate. J -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/how-to-serve-base-map-data-in-CADRG-using-Map-server-and-WMS-tp6604521p6604521.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mrdouville at shaw.ca Wed Jul 20 15:42:50 2011 From: mrdouville at shaw.ca (Michelle Douvil) Date: Wed, 20 Jul 2011 15:42:50 -0700 (PDT) Subject: [mapserver-users] Re: ArcSDE 9.3.1 QUERYMAP, QUERY or GETFEATUREINFO not workin (Mapserver 6) In-Reply-To: References: <1311105393166-6600091.post@n2.nabble.com> Message-ID: <1311201770265-6604735.post@n2.nabble.com> I have set up GDB to trace mapserv.exe (MS4W 3)...and received a Segmentation fault with the plugin.. Starting program: E:\sw_nt\ms4w\Apache\cgi-bin\mapserv.exe "QUERY_STRING=map=e:/sw_nt/ms4w/mapfiles/3.map&mode=query&qformat=text/plain&mapxy=1186128 863840" [New Thread 2148.0x1798] Program received signal SIGSEGV, Segmentation fault. 0x03c43aab in ?? () from E:\sw_nt\ms4w\Apache\specialplugins\msplugin_sde_93.dll FOR SDE DRIVER MAPSERVER build.. (CONNECTION TYPE is SDE) Mapserver 5.2 works... Starting program: E:\sw_nt\mapserver\mapserv.exe "QUERY_STRING=map=e:/sw_nt/mapf iles/base2.map&LAYERS=DBM_7H_MIL_POLITICAL_POLY_BC&SERVICE=WMS&VERSION=1.1.1&REQ UEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application/vnd.ogc.se_xml&FORMAT=image/j peg&SRS=EPSG:3005&BBOX=1136822.19419924,815982.719048714,1186128.62547289,863840 .736184577&X=250&Y=250&INFO_FORMAT=text/plain&QUERY_LAYERS=DBM_7H_MIL_POLITICAL_ POLY_BC&WIDTH=650&HEIGHT=650&FEATURE_COUNT=30" *[New Thread 2168.0x1a60] [New Thread 2168.0x218]* *with Two threads...* Content-type: text/plain GetFeatureInfo results: Layer 'DBM_7H_MIL_POLITICAL_POLY_BC' Feature 97: STATUS = 'Province' NAME = 'British Columbia' ENGLISH_NAME = 'British Columbia' FRENCH_NAME = 'Colombia-Britannique' REGION_CODE = '59' POLYGON_FEATURE = '0' ISLAND = '' ISLAND_ENGLISH_NAME = '' ISLAND_FRENCH_NAME = '' NATION_ENGLISH_NAME = 'Canada' NATION_FRENCH_NAME = 'Canada' GEOMETRY = '' OBJECTID = '97' Program exited normally. With Mapserver 6.. no features are returned for same layer.. (gdb) target exec E:\sw_nt\mapserver6\mapserv.exe <_POLITICAL_POLY_BC&WIDTH=650&HEIGHT=650&FEATURE_COUNT=30" Starting program: E:\sw_nt\mapserver6\mapserv.exe "QUERY_STRING=map=e:/sw_nt/map files6/base2.map&LAYERS=DBM_7H_MIL_POLITICAL_POLY_BC&SERVICE=WMS&VERSION=1.1.1&R EQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application/vnd.ogc.se_xml&FORMAT=image /jpeg&SRS=EPSG:3005&BBOX=1136822.19419924,815982.719048714,1186128.62547289,8638 40.736184577&X=250&Y=250&INFO_FORMAT=text/plain&QUERY_LAYERS=DBM_7H_MIL_POLITICA L_POLY_BC&WIDTH=650&HEIGHT=650&FEATURE_COUNT=30" *[New Thread 6300.0x6b4]* *- with one thread* Content-type: text/plain GetFeatureInfo results: Search returned no results. Program exited normally. This is the mapfile declaration for each the layer..for both Mapserver 5.2 and 6.0 LAYER STATUS DEFAULT NAME 'DBM_7H_MIL_POLITICAL_POLY_BC' CONNECTIONTYPE sde CONNECTION 'server,port:5152,sde,username,password' DATA 'WHSE_BASEMAPPING.DBM_BC_7H_MIL_POLITICAL_POLY,GEOMETRY' LABELITEM 'NAME' CLASSITEM ENGLISH_NAME CLASS NAME 'British Columbia' EXPRESSION ('[ENGLISH_NAME]' eq 'British Columbia') STYLE COLOR 255 190 190 OUTLINECOLOR 0 0 0 END #end style LABEL COLOR 168 0 0 FONT arial TYPE truetype SIZE 8 POSITION cc PARTIALS FALSE BUFFER 1 #BACKGROUNDCOLOR 254 254 254 MINDISTANCE 300 END #end label END #end class TYPE polygon LABELMINSCALEDENOM 5000001 MINSCALEDENOM 2000001 # MAXSCALEDENOM 35000000 # STATUS ON PROJECTION "init=epsg:3005" END METADATA wms_title "British Columbia" wms_metadataurl_format "html" wms_metadataurl_href "http://metadata" wms_metadataurl_type "TC211" wfs_title "British Columbia" gml_geometries "geom" gml_geom_type "polygon" wms_include_items "all" gml_include_items "all" gml_exclude_items "GEOMETRY,OBJECTID" END #metadata PROCESSING "CLOSE_CONNECTION=DEFER" PROCESSING "LABEL_NO_CLIP=on" DUMP TRUE # Used to enable GetFeatureInfo TEMPLATE "foo.html" OPACITY 20 END #end layer -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/ArcSDE-9-3-1-QUERYMAP-QUERY-or-GETFEATUREINFO-not-workin-Mapserver-6-tp6600091p6604735.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pcreso at pcreso.com Wed Jul 20 18:35:18 2011 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Wed, 20 Jul 2011 18:35:18 -0700 (PDT) Subject: [mapserver-users] elevation DEM color ramp map file In-Reply-To: Message-ID: <1311212118.87226.YahooMailClassic@web33203.mail.mud.yahoo.com> Not mapserver specific, but there are several options at CPT city. You'll need to code them into mapserver yourself. It is often easier to generate a georeferenced image (geotiff, PNG with world file, ...) with an appropriate palette with something like GMT & just use this with mapserver. Even have a CGI build the raster map on the fly for mapserver to access. See: http://soliton.vm.bytemark.co.uk/pub/cpt-city/ HTH Brent Wood --- On Wed, 7/20/11, John Callahan wrote: From: John Callahan Subject: [mapserver-users] elevation DEM color ramp map file To: mapserver-users at lists.osgeo.org Date: Wednesday, July 20, 2011, 6:17 AM I'm just curious but does anyone know of Mapserver .map files, or color map text files, with classes designed for a elevation DEM? Or possibly a list of color ramps that work well for DEM maps? I read that GRASS had some predefined templates for applying color to DEMs and wondering if Mapserver has a similar thing, perhaps shared on a wiki or other site. The DEM I'm working with now has low relief, from -5 meters to about 150 meters, however a general method or set of map files that can be applied to a range of DEMs could be helpful to many. Does something like this exist? Thanks. - John *********************************** John Callahan, Research Scientist Delaware Geological Survey University of Delaware URL: http://www.dgs.udel.edu ******************************* -----Inline Attachment Follows----- _______________________________________________ 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 ahmettemiz88 at gmail.com Thu Jul 21 05:12:12 2011 From: ahmettemiz88 at gmail.com (ahmet temiz) Date: Thu, 21 Jul 2011 15:12:12 +0300 Subject: [mapserver-users] to get a layer that resides INCLUDE "*.map" Message-ID: After INCLUDE "jeo.map" how can we get layer in jeo.map. I tried to get a layer that resides in jeo.map. But I couldn't jeolayer = new layerObj(map0); jeolayer = map0.getLayerByName("tr_jeo"); regards -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Planlama ve Zarar Azaltma Dairesi Ba?kanl??? Bilgi ve CBS grubu Eski?ehir Yolu 10. km. Lodumlu / Ankara Tel : 0 312 2872680 / 1535 ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency From ahmettemiz88 at gmail.com Thu Jul 21 05:05:16 2011 From: ahmettemiz88 at gmail.com (ahmet temiz) Date: Thu, 21 Jul 2011 15:05:16 +0300 Subject: [mapserver-users] diffferent map image size for different layer Message-ID: hello I was wondering if I could use different map image size for different layer. Such as : layer1 size 600*400 layer2 size 1200*800 Is it possible ? regards -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Planlama ve Zarar Azaltma Dairesi Ba?kanl??? Bilgi ve CBS grubu Eski?ehir Yolu 10. km. Lodumlu / Ankara Tel : 0 312 2872680 / 1535 ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency From luanavalentini at hotmail.it Thu Jul 21 06:19:40 2011 From: luanavalentini at hotmail.it (Luana Valentini) Date: Thu, 21 Jul 2011 15:19:40 +0200 Subject: [mapserver-users] wms time problem Message-ID: Dear all, I'm using MapServer to serve a building shapefile, in which ? have stored in the attribute table a 'date of construction' and a 'date of demolition'. At the client side we have OpenLayers and some Javascript to let the user chose a certain year and see only those buildings that have a 'date of construction' <= t and 'date of demolition' > t. This cannot be done using only wms with time support because I cannot compare the chosen year with both the 'date of construction' and the 'date of demolition' at the same time. As I can see, it can be easily done with a CQL filter in GeoServer and I'm wondering if it possible to solve this problem also in MapServer... Is it possible to overcome the problem only using wfs filtering? Thank you very much! Luana -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Thu Jul 21 06:36:51 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 21 Jul 2011 15:36:51 +0200 Subject: [mapserver-users] wms time problem In-Reply-To: References: Message-ID: have a look at http://mapserver.org/cgi/runsub.html regards, thomas On Thu, Jul 21, 2011 at 15:19, Luana Valentini wrote: > Dear all, > > I'm using MapServer to serve a building shapefile, in which ? have stored > in the attribute table a 'date of construction' and a 'date of > demolition'. > At the client side we have OpenLayers and some Javascript to let the > user chose a certain year and see only those buildings that have a > 'date of construction' <= t and 'date of demolition' > t. > This cannot be done using only wms with time support because I cannot > compare the chosen year with both the 'date of construction' and the > 'date of demolition' at the same time. > As I can see, it can be easily done with a CQL filter in GeoServer and > I'm wondering if it possible to solve this problem also in > MapServer... > Is it possible to overcome the problem only using wfs filtering? > > Thank you very much! > > Luana > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From joanne.mcgraw at SYMPATICO.CA Thu Jul 21 07:12:22 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Thu, 21 Jul 2011 07:12:22 -0700 (PDT) Subject: [mapserver-users] Re: Can't WFS getFeature w/MapServer 6.0.1 In-Reply-To: <1311192151393-6604123.post@n2.nabble.com> References: <1311109012988-6600286.post@n2.nabble.com> <1311192151393-6604123.post@n2.nabble.com> Message-ID: <1311257542407-6606885.post@n2.nabble.com> This is a correction and additional information to previous post. In my first post, I said "However, the SDE log suggests the query took place and returned successfully." Upon closer inspection, this is not actually the case. Watching the SDE logs while trying to perform my query with 5.6.3, I see the following: Thu Jul 21 09:01:52 2011 - SDE Server Pid 11962 Registered, User: Schema: sde. Thu Jul 21 09:01:52 2011 - SDE Server 11962 exit'd with status 0 Thu Jul 21 09:01:52 2011 - SDE Server Pid 11962 Stopped, User: Schema: sde. Thu Jul 21 09:01:54 2011 - SDE Server Pid 11963 Registered, User: Schema: sde. Thu Jul 21 09:01:58 2011 - SDE Server 11963 exit'd with status 0 Thu Jul 21 09:01:59 2011 - SDE Server Pid 11963 Stopped, User: Schema: sde. When I perform the same query with 6.0.1, only one connection is made: Thu Jul 21 09:00:37 2011 - SDE Server Pid 11224 Registered, User: Schema: sde. Thu Jul 21 09:00:37 2011 - SDE Server 11224 exit'd with status 0 Thu Jul 21 09:00:37 2011 - SDE Server Pid 11224 Stopped, User: Schema: sde. So, while that one connection appears to perform successfully, there is no second connection at all (which according to what happens with 5.6.3, there should be). Somewhere between the "handshaking" (or whatever the heck it is) and the actual query being performed, something is going off the rails. Perhaps the connection value in layer->layerinfo being invalid in some way is stopping the second connection? It's also unable to free it. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Can-t-WFS-getFeature-w-MapServer-6-0-1-tp6600286p6606885.html Sent from the Mapserver - User mailing list archive at Nabble.com. From david.fawcett at state.mn.us Thu Jul 21 07:25:28 2011 From: david.fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Thu, 21 Jul 2011 09:25:28 -0500 Subject: [mapserver-users] diffferent map image size for different layer In-Reply-To: References: Message-ID: I assume that you could handle it on the client side by adjusting your calls to mapserver based on which layers you have selected. e.g. &layer=rivers&imgsize=200+200 or &layer=lakes&imgsize=1000+1000 David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of ahmet temiz Sent: Thursday, July 21, 2011 7:05 AM To: mapserver-users Subject: [mapserver-users] diffferent map image size for different layer hello I was wondering if I could use different map image size for different layer. Such as : layer1 size 600*400 layer2 size 1200*800 Is it possible ? regards -- Ahmet Temiz Jeoloji M?h. Afet ve Acil Durum Y?netimi Ba?kanl??? Planlama ve Zarar Azaltma Dairesi Ba?kanl??? Bilgi ve CBS grubu Eski?ehir Yolu 10. km. Lodumlu / Ankara Tel : 0 312 2872680 / 1535 ________________________ Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and Emergency Management of Presidency _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Weisbend at wapa.gov Thu Jul 21 07:21:01 2011 From: Weisbend at wapa.gov (Eric Weisbender) Date: Thu, 21 Jul 2011 08:21:01 -0600 Subject: [mapserver-users] MapServer GPS Tracking Message-ID: <4E27E16D020000DF0007C56C@a-gwiadomvs-n.hq.wapa.gov> Can anyone point me to documentation / code on GPS Tracking with MapServer. Thanks EW -------------- next part -------------- An HTML attachment was scrubbed... URL: From jk.chen at sdl.usu.edu Thu Jul 21 07:55:43 2011 From: jk.chen at sdl.usu.edu (jk) Date: Thu, 21 Jul 2011 07:55:43 -0700 (PDT) Subject: [mapserver-users] how to create a base map and serve it with WMS Message-ID: <1311260143189-6607099.post@n2.nabble.com> Hi, I'm working on a defense project. I have a collection of world map rasters (in CADRG) of various resolution. I need to WMS-service these CADRG files (as a base map, like that of Google map). I'm wondering how to make these happen? What kind of technologies? Which one is the most straightforward? Ideas are appreciated. (I'm 3-months new into map; implemeneted a client side with OpenLayers.... Installed a WMS... that's all I have so far). Thank you. JK -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/how-to-create-a-base-map-and-serve-it-with-WMS-tp6607099p6607099.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bfraser at geoanalytic.com Thu Jul 21 07:59:47 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 21 Jul 2011 08:59:47 -0600 Subject: [mapserver-users] MapServer GPS Tracking In-Reply-To: <4E27E16D020000DF0007C56C@a-gwiadomvs-n.hq.wapa.gov> References: <4E27E16D020000DF0007C56C@a-gwiadomvs-n.hq.wapa.gov> Message-ID: <4E283EE3.6060908@geoanalytic.com> http://www.osgeo.org/pipermail/mapserver-users/2011-June/069135.html Best Regards, Brent Fraser On 7/21/2011 8:21 AM, Eric Weisbender wrote: > Can anyone point me to documentation / code on GPS Tracking with > MapServer. > Thanks > EW > > > _______________________________________________ > 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 mwkorver at gmail.com Thu Jul 21 08:10:28 2011 From: mwkorver at gmail.com (Mark Korver) Date: Thu, 21 Jul 2011 10:10:28 -0500 Subject: [mapserver-users] how to create a base map and serve it with WMS In-Reply-To: <1311260143189-6607099.post@n2.nabble.com> References: <1311260143189-6607099.post@n2.nabble.com> Message-ID: How you approach this depends on a number of variables. Because rasters tend to stress both your server resources and network bandwidth to client, how far you go in optimizing your system is a function of the expected amount of data access ( # of users X frequency of access ), the expectations of users ( what is fast enough ) and of course how much data do you have to serve. Generally, base raster layers are static and if you are using openlayers and want it to work like Gmaps then you probably want to think of serving and caching tiles. MapServer can do all of that, but there are other projects like MapProxy that may simplify a multi-server load-balanced type setup. On Thu, Jul 21, 2011 at 9:55 AM, jk wrote: > Hi, > > I'm working on a defense project. I have a collection of world map rasters > (in CADRG) of various resolution. I need to WMS-service these CADRG files > (as a base map, like that of Google map). I'm wondering how to make these > happen? What kind of technologies? Which one is the most straightforward? > > Ideas are appreciated. > > (I'm 3-months new into map; implemeneted a client side with OpenLayers.... > Installed a WMS... that's all I have so far). > > Thank you. > > JK > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/how-to-create-a-base-map-and-serve-it-with-WMS-tp6607099p6607099.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 jk.chen at sdl.usu.edu Thu Jul 21 08:23:55 2011 From: jk.chen at sdl.usu.edu (jk) Date: Thu, 21 Jul 2011 08:23:55 -0700 (PDT) Subject: [mapserver-users] Re: how to create a base map and serve it with WMS In-Reply-To: References: <1311260143189-6607099.post@n2.nabble.com> Message-ID: <1311261835714-6607235.post@n2.nabble.com> Hi Mark, Thanks for your reply. As I'm only four-days new to Map Server, I am not even familar with how to create the base map in Map Server. I do have some concept of tile cashe, but that' s in very remote future. Can you shed more lights on how to create base map in Map Server? How to do it? Static, what do you meant by that? I'm also confused, by how the Map server will react when users zoom into differnt levels? Does the map server always step in and react when a new level is zoomed and requested, will the map server step in and make maps one the fly? Does that level (as well as other levels) have to be specified in base map, .... Goosh, I'm so new to the map world..... pardon me for silly questions... So, how to create a base map? Thanks. JK -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/how-to-create-a-base-map-and-serve-it-with-WMS-tp6607099p6607235.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mwkorver at gmail.com Thu Jul 21 09:02:39 2011 From: mwkorver at gmail.com (Mark Korver) Date: Thu, 21 Jul 2011 11:02:39 -0500 Subject: [mapserver-users] Re: how to create a base map and serve it with WMS In-Reply-To: <1311261835714-6607235.post@n2.nabble.com> References: <1311260143189-6607099.post@n2.nabble.com> <1311261835714-6607235.post@n2.nabble.com> Message-ID: Yes, MapServer is all about making appropriately scaled maps on the fly, and lot more. To get started you need to go through a tutorial on MapServer, how to create map files, get base image layer working etc. I am not up to date on what good newbie tutorials are out there. Maybe somebody could chime in. "Static" just refers to the fact that some layers in map change less frequently than do others. For example GPS location of a car will need change constantly while the road the car is on changes only occasionally. On Thu, Jul 21, 2011 at 10:23 AM, jk wrote: > Hi Mark, > > Thanks for your reply. As I'm only four-days new to Map Server, I am not > even familar with how to create the base map in Map Server. I do have some > concept of tile cashe, but that' s in very remote future. Can you shed more > lights on how to create base map in Map Server? How to do it? > > Static, what do you meant by that? I'm also confused, by how the Map server > will react when users zoom into differnt levels? Does the map server always > step in and react when a new level is zoomed and requested, will the map > server step in and make maps one the fly? Does that level (as well as other > levels) ?have to be specified in base map, .... Goosh, I'm so new to the map > world..... pardon me for silly questions... > > So, how to create a base map? > > Thanks. > > JK > > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/how-to-create-a-base-map-and-serve-it-with-WMS-tp6607099p6607235.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 luanavalentini at hotmail.it Thu Jul 21 09:08:32 2011 From: luanavalentini at hotmail.it (Luana Valentini) Date: Thu, 21 Jul 2011 18:08:32 +0200 Subject: [mapserver-users] wms time problem In-Reply-To: References: , Message-ID: Thank you so much!It's working perfectly! Luana > Date: Thu, 21 Jul 2011 15:36:51 +0200 > Subject: Re: [mapserver-users] wms time problem > From: thomas.bonfort at gmail.com > To: luanavalentini at hotmail.it > CC: mapserver-users at lists.osgeo.org > > have a look at http://mapserver.org/cgi/runsub.html > > regards, > thomas > > On Thu, Jul 21, 2011 at 15:19, Luana Valentini > wrote: > > Dear all, > > > > I'm using MapServer to serve a building shapefile, in which ? have stored > > in the attribute table a 'date of construction' and a 'date of > > demolition'. > > At the client side we have OpenLayers and some Javascript to let the > > user chose a certain year and see only those buildings that have a > > 'date of construction' <= t and 'date of demolition' > t. > > This cannot be done using only wms with time support because I cannot > > compare the chosen year with both the 'date of construction' and the > > 'date of demolition' at the same time. > > As I can see, it can be easily done with a CQL filter in GeoServer and > > I'm wondering if it possible to solve this problem also in > > MapServer... > > Is it possible to overcome the problem only using wfs filtering? > > > > Thank you very much! > > > > Luana > > _______________________________________________ > > 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 sdlime at gmail.com Thu Jul 21 09:43:59 2011 From: sdlime at gmail.com (Steve Lime) Date: Thu, 21 Jul 2011 11:43:59 -0500 Subject: [mapserver-users] Re: Can't WFS getFeature w/MapServer 6.0.1 In-Reply-To: <1311257542407-6606885.post@n2.nabble.com> References: <1311109012988-6600286.post@n2.nabble.com> <1311192151393-6604123.post@n2.nabble.com> <1311257542407-6606885.post@n2.nabble.com> Message-ID: Can you take the queries outside of WFS and just do straight CGI queries? I'm curious if the issues persist. This would help determine if this is a WFS-specific issue or something broader... Steve On Thu, Jul 21, 2011 at 9:12 AM, myOpenLayersUName < joanne.mcgraw at sympatico.ca> wrote: > This is a correction and additional information to previous post. > > In my first post, I said "However, the SDE log suggests the query took > place > and returned successfully." Upon closer inspection, this is not actually > the > case. > > Watching the SDE logs while trying to perform my query with 5.6.3, I see > the > following: > > Thu Jul 21 09:01:52 2011 - SDE Server Pid 11962 Registered, User: > Schema: sde. > Thu Jul 21 09:01:52 2011 - SDE Server 11962 exit'd with status 0 > Thu Jul 21 09:01:52 2011 - SDE Server Pid 11962 Stopped, User: > Schema: sde. > Thu Jul 21 09:01:54 2011 - SDE Server Pid 11963 Registered, User: > Schema: sde. > Thu Jul 21 09:01:58 2011 - SDE Server 11963 exit'd with status 0 > Thu Jul 21 09:01:59 2011 - SDE Server Pid 11963 Stopped, User: > Schema: sde. > > > When I perform the same query with 6.0.1, only one connection is made: > > Thu Jul 21 09:00:37 2011 - SDE Server Pid 11224 Registered, User: > Schema: sde. > Thu Jul 21 09:00:37 2011 - SDE Server 11224 exit'd with status 0 > Thu Jul 21 09:00:37 2011 - SDE Server Pid 11224 Stopped, User: > Schema: sde. > > > > So, while that one connection appears to perform successfully, there is no > second connection at all (which according to what happens with 5.6.3, there > should be). Somewhere between the "handshaking" (or whatever the heck it > is) > and the actual query being performed, something is going off the rails. > Perhaps the connection value in layer->layerinfo being invalid in some way > is stopping the second connection? It's also unable to free it. > > > > > > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Can-t-WFS-getFeature-w-MapServer-6-0-1-tp6600286p6606885.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 joanne.mcgraw at SYMPATICO.CA Thu Jul 21 10:00:47 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Thu, 21 Jul 2011 10:00:47 -0700 (PDT) Subject: [mapserver-users] Re: Can't WFS getFeature w/MapServer 6.0.1 In-Reply-To: <1311257542407-6606885.post@n2.nabble.com> References: <1311109012988-6600286.post@n2.nabble.com> <1311192151393-6604123.post@n2.nabble.com> <1311257542407-6606885.post@n2.nabble.com> Message-ID: <1311267647751-6607659.post@n2.nabble.com> I've done some additional debugging and have learned that the mapwfs.c's msWFSGetFeature has changed significantly between 5.6.3 and 6.0.1. In particular, the problem seems to be starting at line 2457 in the 6.0.1 code (1248 in 5.6.3). At that point, a call to msOWSGetLayerExtent is made and part of that process creates and frees a connection to SDE. That is the first connection that is identified in the above posts (and in Michelle Douvil's post discussing her GDB findings). The second SDE connection is not made in 6.0.1 because, at line 2500 (still in mapwfs.c's), there is a call to msQueryByRect(map) which did not happen in 5.6.3. In that function (msQueryByRect), at line 1024, there is a msLayerClose(lp) call that ultimately takes us to the msSDELayerFreeItemInfo where the layer->layerinfo (and therefore the sde variable at line 2116) is already null because of the previous close (in the msOWSGetLayerExtent process) and so the "if (sde->basedefs)" condition gives a segmentation fault because it's trying to access a property in an object that doesn't exist. I really don't know anything about any of this code but know that what I describe is definitely what is happening as far as I can observe. I am hoping that someone who knows more about the code can identify whether there is a problem with the source code related to all this. And, if so, should I be putting something in the DEV forum about this? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Can-t-WFS-getFeature-w-MapServer-6-0-1-tp6600286p6607659.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sdlime at gmail.com Thu Jul 21 11:08:25 2011 From: sdlime at gmail.com (Steve Lime) Date: Thu, 21 Jul 2011 13:08:25 -0500 Subject: [mapserver-users] Re: Can't WFS getFeature w/MapServer 6.0.1 In-Reply-To: <1311267647751-6607659.post@n2.nabble.com> References: <1311109012988-6600286.post@n2.nabble.com> <1311192151393-6604123.post@n2.nabble.com> <1311257542407-6606885.post@n2.nabble.com> <1311267647751-6607659.post@n2.nabble.com> Message-ID: First, thanks for taking the time to dig into this, we appreciate the help. Indeed there were large changes between 5.6 and 6.0 due to some overall changes in the parser and query handling. I wouldn't have thought they would introduce any issues specific to a particular driver though. It may be that the SDE code needs to simply be made more robust. If I supply a patch that does that can you test? Steve On Thu, Jul 21, 2011 at 12:00 PM, myOpenLayersUName < joanne.mcgraw at sympatico.ca> wrote: > I've done some additional debugging and have learned that the mapwfs.c's > msWFSGetFeature has changed significantly between 5.6.3 and 6.0.1. In > particular, the problem seems to be starting at line 2457 in the 6.0.1 code > (1248 in 5.6.3). At that point, a call to msOWSGetLayerExtent is made and > part of that process creates and frees a connection to SDE. That is the > first connection that is identified in the above posts (and in Michelle > Douvil's post discussing her GDB findings). > > The second SDE connection is not made in 6.0.1 because, at line 2500 (still > in mapwfs.c's), there is a call to msQueryByRect(map) which did not happen > in 5.6.3. In that function (msQueryByRect), at line 1024, there is a > msLayerClose(lp) call that ultimately takes us to the > msSDELayerFreeItemInfo > where the layer->layerinfo (and therefore the sde variable at line 2116) is > already null because of the previous close (in the msOWSGetLayerExtent > process) and so the "if (sde->basedefs)" condition gives a segmentation > fault because it's trying to access a property in an object that doesn't > exist. > > I really don't know anything about any of this code but know that what I > describe is definitely what is happening as far as I can observe. I am > hoping that someone who knows more about the code can identify whether > there > is a problem with the source code related to all this. And, if so, should I > be putting something in the DEV forum about this? > > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Can-t-WFS-getFeature-w-MapServer-6-0-1-tp6600286p6607659.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 mrdouville at shaw.ca Thu Jul 21 11:35:42 2011 From: mrdouville at shaw.ca (Michelle Douvil) Date: Thu, 21 Jul 2011 11:35:42 -0700 (PDT) Subject: [mapserver-users] Re: ArcSDE 9.3.1 QUERYMAP, QUERY or GETFEATUREINFO not workin (Mapserver 6) In-Reply-To: <1311201770265-6604735.post@n2.nabble.com> References: <1311105393166-6600091.post@n2.nabble.com> <1311201770265-6604735.post@n2.nabble.com> Message-ID: <1311273342597-6608018.post@n2.nabble.com> Hi All, Using GDB a bit more to look at MS4W calls and I see that the SDE C API dlls are called after the response? I am not sure if that has anything to do with it.. http://osgeo-org.1803224.n2.nabble.com/file/n6608018/ms4w_fails.txt ms4w_fails.txt http://osgeo-org.1803224.n2.nabble.com/file/n6608018/map5_works.txt map5_works.txt http://osgeo-org.1803224.n2.nabble.com/file/n6608018/map6_fails.txt map6_fails.txt .............. ??breakpoints-invalid Content-type: text/plain GetFeatureInfo results: Search returned no results. Reading symbols from E:\sw_nt\ms4w\Apache\specialplugins\msplugin_sde_93.dll...(no debugging symbols found)...done. Loaded symbols for E:\sw_nt\ms4w\Apache\specialplugins\msplugin_sde_93.dll ??breakpoints-invalid ??breakpoints-invalid Reading symbols from E:\sw_nt\mapserver6\sde.dll...(no debugging symbols found)...done. Loaded symbols for E:\sw_nt\mapserver6\sde.dll ??breakpoints-invalid ??breakpoints-invalid Reading symbols from E:\sw_nt\mapserver6\sg.dll...(no debugging symbols found)...done. Loaded symbols for E:\sw_nt\mapserver6\sg.dll ??breakpoints-invalid ??breakpoints-invalid Reading symbols from E:\sw_nt\mapserver6\pe.dll...(no debugging symbols found)...done. Loaded symbols for E:\sw_nt\mapserver6\pe.dll ??breakpoints-invalid............................. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/ArcSDE-9-3-1-QUERYMAP-QUERY-or-GETFEATUREINFO-not-workin-Mapserver-6-tp6600091p6608018.html Sent from the Mapserver - User mailing list archive at Nabble.com. From joanne.mcgraw at SYMPATICO.CA Thu Jul 21 11:36:11 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Thu, 21 Jul 2011 11:36:11 -0700 (PDT) Subject: [mapserver-users] Re: Can't WFS getFeature w/MapServer 6.0.1 In-Reply-To: References: <1311109012988-6600286.post@n2.nabble.com> <1311192151393-6604123.post@n2.nabble.com> <1311257542407-6606885.post@n2.nabble.com> <1311267647751-6607659.post@n2.nabble.com> Message-ID: <1311273371338-6608020.post@n2.nabble.com> Absolutely, we'd be happy to test a patch. I have some additional info (which you probably already know at this point but I'll pass it along just in case). I started looking into the WMS GetFeatureInfo request failure that Michelle was reporting in her post and found that ultimately it was the exact same problem. In that case, mapquery.c's msQueryByPoint makes an msLayerClose call on a layer that is not open (line 1535). Again, it ultimately gets down to the msSDELayerFreeItemInfo function where the layer->layerinfo is null, so sde->basedefs causes a segmentation fault. So, somewhere, there just needs to be a check that stops the attempt to free memory if the memory is not allocated at that time. Anyway, I'll send you an email directly to give you my coordinates and we'll arrange to try the patch. Cheers, jtm -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Can-t-WFS-getFeature-w-MapServer-6-0-1-tp6600286p6608020.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mrdouville at shaw.ca Thu Jul 21 11:43:18 2011 From: mrdouville at shaw.ca (Michelle Douvil) Date: Thu, 21 Jul 2011 11:43:18 -0700 (PDT) Subject: [mapserver-users] Re: Can't WFS getFeature w/MapServer 6.0.1 In-Reply-To: References: <1311109012988-6600286.post@n2.nabble.com> <1311192151393-6604123.post@n2.nabble.com> <1311257542407-6606885.post@n2.nabble.com> <1311267647751-6607659.post@n2.nabble.com> Message-ID: <1311273798470-6608040.post@n2.nabble.com> I would be interested in testing this patch as well! Thanks, Michelle -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Can-t-WFS-getFeature-w-MapServer-6-0-1-tp6600286p6608040.html Sent from the Mapserver - User mailing list archive at Nabble.com. From joanne.mcgraw at SYMPATICO.CA Thu Jul 21 11:55:46 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Thu, 21 Jul 2011 11:55:46 -0700 (PDT) Subject: [mapserver-users] Re: Upgrade MapServer from 5.4 to 6.0 In-Reply-To: <4E1B00A7.4040207@mapgears.com> References: <8E5471DB13993145A6D9183ED4DBC2D0012966C0@onottaxms8.AGR.GC.CA> <4E1B00A7.4040207@mapgears.com> Message-ID: <1311274546032-6608083.post@n2.nabble.com> Just in case someone is looking around for some answers and comes across this thread ... I'll reference another post where the originally posted problem (that is, the segmentation faults that occurs when doing a WMS getFeatureInfo request to SDE data, not the subsequent posts about the PNG background) is discussed in more detail. http://osgeo-org.1803224.n2.nabble.com/Can-t-WFS-getFeature-w-MapServer-6-0-1-td6600286.html#a6608020 -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Upgrade-MapServer-from-5-4-to-6-0-tp6563752p6608083.html Sent from the Mapserver - User mailing list archive at Nabble.com. From msubedee at yahoo.com Thu Jul 21 15:40:47 2011 From: msubedee at yahoo.com (Mukesh Subedee) Date: Thu, 21 Jul 2011 15:40:47 -0700 (PDT) Subject: [mapserver-users] FastCGI implementation on MapServer 6.0 In-Reply-To: <1311257542407-6606885.post@n2.nabble.com> References: <1311109012988-6600286.post@n2.nabble.com> <1311192151393-6604123.post@n2.nabble.com> <1311257542407-6606885.post@n2.nabble.com> Message-ID: <1311288047.51450.YahooMailNeo@web37401.mail.mud.yahoo.com> Hi all, I am trying to install/configure FastCGI on MapServer 6.0 in Ubuntu 10.04 machines. I installed both fcgi-2.4.0 and mod_fastcgi-2.4.6 as mentioned in http://mapserver.org/optimization/fastcgi.html#obtaining-the-necessary-software. I configured MapServer --with-fastcgi=/usr option and could see "FastCGI support: -DUSE_FASTCGI" in Support Libraries. I did make and check ./mapserv -v but could not find SUPPORTS=FASTCGI there. I am wondering if I did anything wrong as I just followed the link and I did not get any errors while compiling any of those softwares/packages. Thanks! Mukesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From raghuyeedullapalli at gmail.com Thu Jul 21 23:07:23 2011 From: raghuyeedullapalli at gmail.com (Raghu Nandan) Date: Fri, 22 Jul 2011 01:07:23 -0500 Subject: [mapserver-users] Zooming to particular area in a map Message-ID: I have a mapfile which contains one line layer and few point layers. The line layer is waterlines of entire state and point layers are well sources, pumpstations, etc.,. My question is how to zoom to particular area based on the owner name which is common for all the layers(shapefiles), it needs to display, the no. of points present in that area and its corresponding information. I am newbie to the mapserver and i am using cgi template program. I did not use any mapscripts. Thank you, Raghu -------------- next part -------------- An HTML attachment was scrubbed... URL: From joanne.mcgraw at SYMPATICO.CA Fri Jul 22 09:38:20 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Fri, 22 Jul 2011 09:38:20 -0700 (PDT) Subject: [mapserver-users] Re: Can't WFS getFeature w/MapServer 6.0.1 In-Reply-To: References: <1311109012988-6600286.post@n2.nabble.com> <1311192151393-6604123.post@n2.nabble.com> <1311257542407-6606885.post@n2.nabble.com> <1311267647751-6607659.post@n2.nabble.com> Message-ID: <1311352700758-6611100.post@n2.nabble.com> While waiting for a patch which will correctly fix the problems described in this thread (OGC queries to SDE failing), we have introduced a change to our version of mapsde.c that is allowing us to move forward. In the msSDELayerFreeItemInfo function, we changed the boolean expressions at lines 2116 and 2121 to check that sde wasn't NULL before checking the basedefs and joindefs as shown below. For the time being, this is allowing us to continue our work with no serious problems encountered so far. If we do come across some, I'll be sure to let you know. Cheers, jtm void msSDELayerFreeItemInfo(layerObj *layer) { #ifdef USE_SDE msSDELayerInfo *sde = NULL; int i; if (!msSDELayerIsOpen(layer)) { msSetError( MS_SDEERR, "SDE layer has not been opened.", "msSDELayerFreeItemInfo()"); } sde = layer->layerinfo; if (sde != NULL && sde->basedefs) { SE_table_free_descriptions(sde->basedefs); sde->basedefs = NULL; } if (sde != NULL && sde->joindefs) { SE_table_free_descriptions(sde->joindefs); sde->joindefs = NULL; } if (layer->iteminfo) { : -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Can-t-WFS-getFeature-w-MapServer-6-0-1-tp6600286p6611100.html Sent from the Mapserver - User mailing list archive at Nabble.com. From joanne.mcgraw at SYMPATICO.CA Fri Jul 22 09:44:54 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Fri, 22 Jul 2011 09:44:54 -0700 (PDT) Subject: [mapserver-users] Re: WFS GetFeature w/Spatial Filter In-Reply-To: <1311194318893-6604244.post@n2.nabble.com> References: <1311194318893-6604244.post@n2.nabble.com> Message-ID: <1311353094868-6611136.post@n2.nabble.com> This problem has turned out to be related to that described in thread http://osgeo-org.1803224.n2.nabble.com/Can-t-WFS-getFeature-w-MapServer-6-0-1-td6600286.html. It's working in our compiled version (with the fix described in that thread). -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/WFS-GetFeature-w-Spatial-Filter-tp6604244p6611136.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sdlime at gmail.com Fri Jul 22 11:34:42 2011 From: sdlime at gmail.com (Steve Lime) Date: Fri, 22 Jul 2011 13:34:42 -0500 Subject: [mapserver-users] Re: Can't WFS getFeature w/MapServer 6.0.1 In-Reply-To: <1311352700758-6611100.post@n2.nabble.com> References: <1311109012988-6600286.post@n2.nabble.com> <1311192151393-6604123.post@n2.nabble.com> <1311257542407-6606885.post@n2.nabble.com> <1311267647751-6607659.post@n2.nabble.com> <1311352700758-6611100.post@n2.nabble.com> Message-ID: We really need to get a ticket created for this issue, can you do that? Steve On Fri, Jul 22, 2011 at 11:38 AM, myOpenLayersUName < joanne.mcgraw at sympatico.ca> wrote: > While waiting for a patch which will correctly fix the problems described > in > this thread (OGC queries to SDE failing), we have introduced a change to > our > version of mapsde.c that is allowing us to move forward. > > In the msSDELayerFreeItemInfo function, we changed the boolean expressions > at lines 2116 and 2121 to check that sde wasn't NULL before checking the > basedefs and joindefs as shown below. For the time being, this is allowing > us to continue our work with no serious problems encountered so far. If we > do come across some, I'll be sure to let you know. > > Cheers, > jtm > > > void msSDELayerFreeItemInfo(layerObj *layer) > { > #ifdef USE_SDE > msSDELayerInfo *sde = NULL; > int i; > if (!msSDELayerIsOpen(layer)) { > msSetError( MS_SDEERR, > "SDE layer has not been opened.", > "msSDELayerFreeItemInfo()"); > } > sde = layer->layerinfo; > if (sde != NULL && sde->basedefs) { > SE_table_free_descriptions(sde->basedefs); > sde->basedefs = NULL; > } > if (sde != NULL && sde->joindefs) { > SE_table_free_descriptions(sde->joindefs); > sde->joindefs = NULL; > } > if (layer->iteminfo) { > : > > > > > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Can-t-WFS-getFeature-w-MapServer-6-0-1-tp6600286p6611100.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 sdlime at gmail.com Fri Jul 22 12:21:57 2011 From: sdlime at gmail.com (Steve Lime) Date: Fri, 22 Jul 2011 14:21:57 -0500 Subject: [mapserver-users] Re: Can't WFS getFeature w/MapServer 6.0.1 In-Reply-To: <1311352700758-6611100.post@n2.nabble.com> References: <1311109012988-6600286.post@n2.nabble.com> <1311192151393-6604123.post@n2.nabble.com> <1311257542407-6606885.post@n2.nabble.com> <1311267647751-6607659.post@n2.nabble.com> <1311352700758-6611100.post@n2.nabble.com> Message-ID: I think this is probably a reasonable fix, although I'll look into it a bit more. I've confirmed the bug exists outside OGC queries too. Just a simple mode=nquery triggers the segfault. I'm not sure why we just don't return if the layer isn't open though. Steve On Fri, Jul 22, 2011 at 11:38 AM, myOpenLayersUName < joanne.mcgraw at sympatico.ca> wrote: > While waiting for a patch which will correctly fix the problems described > in > this thread (OGC queries to SDE failing), we have introduced a change to > our > version of mapsde.c that is allowing us to move forward. > > In the msSDELayerFreeItemInfo function, we changed the boolean expressions > at lines 2116 and 2121 to check that sde wasn't NULL before checking the > basedefs and joindefs as shown below. For the time being, this is allowing > us to continue our work with no serious problems encountered so far. If we > do come across some, I'll be sure to let you know. > > Cheers, > jtm > > > void msSDELayerFreeItemInfo(layerObj *layer) > { > #ifdef USE_SDE > msSDELayerInfo *sde = NULL; > int i; > if (!msSDELayerIsOpen(layer)) { > msSetError( MS_SDEERR, > "SDE layer has not been opened.", > "msSDELayerFreeItemInfo()"); > } > sde = layer->layerinfo; > if (sde != NULL && sde->basedefs) { > SE_table_free_descriptions(sde->basedefs); > sde->basedefs = NULL; > } > if (sde != NULL && sde->joindefs) { > SE_table_free_descriptions(sde->joindefs); > sde->joindefs = NULL; > } > if (layer->iteminfo) { > : > > > > > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Can-t-WFS-getFeature-w-MapServer-6-0-1-tp6600286p6611100.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 kupen at wippies.fi Sun Jul 24 06:55:58 2011 From: kupen at wippies.fi (Pena Kupen) Date: Sun, 24 Jul 2011 16:55:58 +0300 (EEST) Subject: [mapserver-users] How to convert from 2393(Finish YKJ) to 4326 (WGS84) Message-ID: <1563911589.2491311515759051.JavaMail.kupen@wippies.fi> Hello all, Last time I was successfully helped by Ralf - Thank's once more time! http://postgis.refractions.net/pipermail/postgis-users/2011-March/029055.html Now I have same type of problem, but I cannot get correct result. Table is: CREATE TABLE location ( location_id integer NOT NULL, coord geometry ); Data is in coord column as 2393 format. My sql is like: select y(location.coord) as y_ykj, x(location.coord) as x_ykj, y(ST_Transform(location.coord,4326)) as y_wgs84, x(ST_Transform(location.coord,4326)) as x_wgs84 from location where location_id = 'AAA123A' result for y_ykj and x_ykj are ok, but point of x_wgs84 and y_wgs84 are about 180meters too much in east. -Pena -- Wippies-vallankumous on t??ll?! Varmista paikkasi vallankumouksen eturintamassa ja liity Wippiesiin heti! http://www.wippies.com/ From Jukka.Rahkonen at mmmtike.fi Sun Jul 24 10:16:46 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sun, 24 Jul 2011 17:16:46 +0000 Subject: [mapserver-users] How to convert from 2393(Finish YKJ) to 4326 (WGS84) In-Reply-To: <1563911589.2491311515759051.JavaMail.kupen@wippies.fi> References: <1563911589.2491311515759051.JavaMail.kupen@wippies.fi> Message-ID: <84446DEF76453C439E9E97E438E13A63015546@suutari.haapa.mmm.fi> Hi, I suppose that towgs84 parameters are missing. You can check this with psql: select proj4text from spatial_ref_sys where srid=2393; The result should be close to +proj=tmerc +lat_0=0 +lon_0=27 +k=1.000000 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-90.7,-106.1,-119.2,4.09,0.218,-1.05,1.37 +units=m +no_defs If it is not, update the record. A related thing is that Mapserver epsg text file often comes without towgs84 parameters for the Finnish KKJ zones. This is what I seem to have on this computer: KKJ / Finland Uniform Coordinate System <2393> +proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-96.0617,-82.4278,-121.743,4.80107,0.34543,-1.37646,1.4964 +units=m +no_defs <> You can see that the parameters are not the same. There are more parameter sets around and that's actually the reason why Proj4 comes or at least used to come without any parameters because none of the sets was authorized. The results of these transformations are rather close and accurate to about one meter. You can read also http://latuviitta.org/documents/YKJ-TM35FIN_muunnos_ogr2ogr_cs2cs.txt (in Finnish, I suppose it is not a problem for you). -Jukka Rahkonen- Pena Kupen wrote: > Hello all, > Last time I was successfully helped by Ralf - Thank's once more time! http://postgis.refractions.net/pipermail/postgis-users/2011-March/029055.html > Now I have same type of problem, but I cannot get correct result. Table is: CREATE TABLE location ( location_id integer NOT NULL, coord geometry ); Data is in coord column as 2393 format. My sql is like: select y(location.coord) as y_ykj, x(location.coord) as x_ykj, y(ST_Transform(location.coord,4326)) as y_wgs84, x(ST_Transform(location.coord,4326)) as x_wgs84 from location where location_id = 'AAA123A' result for y_ykj and x_ykj are ok, but point of x_wgs84 and y_wgs84 are about 180meters too much in east. -Pena -- Wippies-vallankumous on t??ll?! Varmista paikkasi vallankumouksen eturintamassa ja liity Wippiesiin heti! http://www.wippies.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From mihaela.caluian at gmail.com Sun Jul 24 21:14:20 2011 From: mihaela.caluian at gmail.com (Mihaela Caluian) Date: Mon, 25 Jul 2011 00:14:20 -0400 Subject: [mapserver-users] Question: loadWeb(): Unknown identifier. Parsing error near (ms_tmp):(line 36) Message-ID: Hello everybody, I am very new to MapServer and I have a lots of problem that I cannot find answer. Currently I am having trouble to figure out what is wrong with my .map files. I am getting this error when I try to click the button to load the map file: loadWeb(): Unknown identifier. Parsing error near (ms_tmp):(line 49) msOutputFormatValidate(): General error message. OUTPUTFORMAT png has IMAGEMODE RGB/RGBA, which is not supported for GD drivers. When I installed for the first time MapServer everything works, but I had to reinstall it and I cannot even see my work now. I am using Windows Vista and MapServer MS4W - MapServer 4 Windows - version 3.0.3: (This is my first time when I am working with MapServer, actually I am learning it.) The map file that I tried to open is: MAP NAME "Rail" # Map image size SIZE 600 400 UNITS meters EXTENT -132.193287 28.711430 -50.854471 74.207982 FONTSET 'c:/wwwroot/fonts/fontset.txt' SYMBOLSET 'c:/wwwroot/symbols/symbols.txt' PROJECTION 'proj=longlat' 'ellps=WGS84' 'towgs84=0,0,0,0,0,0,0' 'no_defs' END # Background color for the map canvas -- change as desired IMAGECOLOR 255 255 255 IMAGEQUALITY 95 IMAGETYPE png OUTPUTFORMAT NAME png DRIVER 'GD/PNG' MIMETYPE 'image/png' IMAGEMODE RGBA EXTENSION 'png' END # Legend LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # Web interface definition. Only the template parameter # is required to display a map. See MapServer documentation WEB # Set IMAGEPATH to the path where MapServer should # write its output. IMAGEPATH "\ms4w\tmp\ms_tmp\" # Set IMAGEURL to the url that points to IMAGEPATH # as defined in your web server configuration IMAGEURL "/ms_tmp/" # WMS server settings METADATA 'ows_title' 'Rail' 'ows_onlineresource' ' http://localhost/cgi-bin/mapserv.exe?map=C:/wwwroot/assignment3/rail.map' 'ows_srs' 'EPSG:4326' END #Scale range at which web interface will operate # Template and header/footer settings # Only the template parameter is required to display a map. See MapServer documentation TEMPLATE 'rail.html' END LAYER NAME 'Rails' TYPE LINE DUMP true TEMPLATE fooOnlyForWMSGetFeatureInfo EXTENT -132.193287 28.711430 -50.854471 74.207982 DATA 'C:\wwwroot\assignment3\rails.shp' METADATA 'ows_title' 'Rails' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'towgs84=0,0,0,0,0,0,0' 'no_defs' END CLASS NAME 'Rails' STYLE WIDTH 2 COLOR 146 154 155 END END END END Please, if somebody can help me I will really appreciate. I tried so many times and now I really don't know what to do more. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdlime at gmail.com Sun Jul 24 21:30:04 2011 From: sdlime at gmail.com (Steve Lime) Date: Sun, 24 Jul 2011 23:30:04 -0500 Subject: [mapserver-users] Question: loadWeb(): Unknown identifier. Parsing error near (ms_tmp):(line 36) In-Reply-To: References: Message-ID: In MapServer 6.0, the GD driver can only produce 8-bit output so your output format is invalid. Try commenting it out and see what happens. I believe you can leave "IMAGETYPE png" in place and you'll get AGG-based, 8-bit output. Should look much nicer. Steve On Sun, Jul 24, 2011 at 11:14 PM, Mihaela Caluian wrote: > Hello everybody, > > I am very new to MapServer and I have a lots of problem that I cannot find > answer. > > Currently I am having trouble to figure out what is wrong with my .map > files. I am getting this error when I try to click the button to load the > map file: > > loadWeb(): Unknown identifier. Parsing error near (ms_tmp):(line 49) > msOutputFormatValidate(): General error message. OUTPUTFORMAT png has > IMAGEMODE RGB/RGBA, which is not supported for GD drivers. > > When I installed for the first time MapServer everything works, but I had > to reinstall it and I cannot even see my work now. > > I am using Windows Vista and MapServer MS4W - MapServer 4 Windows - version > 3.0.3: (This is my first time when I am working with MapServer, actually I > am learning it.) > > The map file that I tried to open is: > > MAP > NAME "Rail" > # Map image size > SIZE 600 400 > UNITS meters > EXTENT -132.193287 28.711430 -50.854471 74.207982 > FONTSET 'c:/wwwroot/fonts/fontset.txt' > SYMBOLSET 'c:/wwwroot/symbols/symbols.txt' > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'towgs84=0,0,0,0,0,0,0' > 'no_defs' > END > # Background color for the map canvas -- change as desired > IMAGECOLOR 255 255 255 > IMAGEQUALITY 95 > IMAGETYPE png > OUTPUTFORMAT > NAME png > DRIVER 'GD/PNG' > MIMETYPE 'image/png' > IMAGEMODE RGBA > EXTENSION 'png' > END > # Legend > LEGEND > IMAGECOLOR 255 255 255 > STATUS ON > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > END > # Web interface definition. Only the template parameter > # is required to display a map. See MapServer documentation > WEB > # Set IMAGEPATH to the path where MapServer should > # write its output. > IMAGEPATH "\ms4w\tmp\ms_tmp\" > # Set IMAGEURL to the url that points to IMAGEPATH > # as defined in your web server configuration > IMAGEURL "/ms_tmp/" > # WMS server settings > METADATA > 'ows_title' 'Rail' > 'ows_onlineresource' ' > http://localhost/cgi-bin/mapserv.exe?map=C:/wwwroot/assignment3/rail.map' > 'ows_srs' 'EPSG:4326' > END > #Scale range at which web interface will operate > # Template and header/footer settings > # Only the template parameter is required to display a map. See > MapServer documentation > TEMPLATE 'rail.html' > END > LAYER > NAME 'Rails' > TYPE LINE > DUMP true > TEMPLATE fooOnlyForWMSGetFeatureInfo > EXTENT -132.193287 28.711430 -50.854471 74.207982 > DATA 'C:\wwwroot\assignment3\rails.shp' > METADATA > 'ows_title' 'Rails' > END > STATUS DEFAULT > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'towgs84=0,0,0,0,0,0,0' > 'no_defs' > END > CLASS > NAME 'Rails' > STYLE > WIDTH 2 > COLOR 146 154 155 > END > END > END > END > > Please, if somebody can help me I will really appreciate. I tried so many > times and now I really don't know what to do more. > > Thanks. > > > _______________________________________________ > 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 kupen at wippies.fi Sun Jul 24 22:54:03 2011 From: kupen at wippies.fi (Pena Kupen) Date: Mon, 25 Jul 2011 08:54:03 +0300 (EEST) Subject: Fw: Re: [mapserver-users] How to convert from 2393(Finish YKJ) to 4326 (WGS84) Message-ID: <1134235633.2761311573244115.JavaMail.kupen@wippies.fi> Thank's Jukka, On my spatial_ref_sys-table, there is proj4text like: +proj=tmerc +lat_0=0 +lon_0=27 +k=1.000000 +x_0=3500000 +y_0=0 +ellps=intl +units=m +no_defs So towgs84-parameter is missing. > If it is not, update the record. > It this safe? Can it affect with unwanted result somewhere? >You can read also http://latuviitta.org/documents/YKJ-TM35FIN_muunnos_ogr2ogr_cs2cs.txt (in Finnish, I suppose it is not a problem for you). > Yeps, language not, but understanding is something else ;-) -Pena Rahkonen Jukka [Jukka.Rahkonen at mmmtike.fi] kirjoitti: > Hi, > > I suppose that towgs84 parameters are missing. You can check this with psql: > > select proj4text from spatial_ref_sys where srid=2393; > > The result should be close to > +proj=tmerc +lat_0=0 +lon_0=27 +k=1.000000 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-90.7,-106.1,-119.2,4.09,0.218,-1.05,1.37 +units=m +no_defs > If it is not, update the record. > > A related thing is that Mapserver epsg text file often comes without towgs84 parameters for the Finnish KKJ zones. This is what I seem to have on this computer: > KKJ / Finland Uniform Coordinate System > <2393> +proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-96.0617,-82.4278,-121.743,4.80107,0.34543,-1.37646,1.4964 +units=m +no_defs <> > > You can see that the parameters are not the same. There are more parameter sets around and that's actually the reason why Proj4 comes or at least used to come without any parameters because none of the sets was authorized. The results of these transformations are rather close and accurate to about one meter. You can read also http://latuviitta.org/documents/YKJ-TM35FIN_muunnos_ogr2ogr_cs2cs.txt (in Finnish, I suppose it is not a problem for you). > > -Jukka Rahkonen- > > Pena Kupen wrote: > > > Hello all, > > > Last time I was successfully helped by Ralf - Thank's once more time! > http://postgis.refractions.net/pipermail/postgis-users/2011-March/029055.html > > > Now I have same type of problem, but I cannot get correct result. > > Table is: > CREATE TABLE location ( > location_id integer NOT NULL, > coord geometry > ); > > Data is in coord column as 2393 format. > > My sql is like: > select > y(location.coord) as y_ykj, > x(location.coord) as x_ykj, > y(ST_Transform(location.coord,4326)) as y_wgs84, > x(ST_Transform(location.coord,4326)) as x_wgs84 > from location where location_id = 'AAA123A' > > result for y_ykj and x_ykj are ok, but point of x_wgs84 and y_wgs84 are about 180meters too much in east. > > -Pena > > -- Wippies-vallankumous on t??ll?! Varmista paikkasi vallankumouksen eturintamassa ja liity Wippiesiin heti! http://www.wippies.com/ From Jukka.Rahkonen at mmmtike.fi Mon Jul 25 00:08:35 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 25 Jul 2011 07:08:35 +0000 Subject: [mapserver-users] How to convert from 2393(Finish YKJ) to 4326 (WGS84) In-Reply-To: <1134235633.2761311573244115.JavaMail.kupen@wippies.fi> References: <1134235633.2761311573244115.JavaMail.kupen@wippies.fi> Message-ID: <84446DEF76453C439E9E97E438E13A630155AB@suutari.haapa.mmm.fi> Hi, If you do not need to reproject or you are reprojecting just between KKJ zones you can live without towgs84 parameters. However, reprojecting to/from all the other systems will give an error of 150-200 meters. That is the thing that is not safe. Updating spatial_ref_sys is safe. The most official parameters are in the JHS document http://docs.jhs-suositukset.fi/jhs-suositukset/JHS153/JHS153.pdf, table in page 10. Parameters seem to be the ones I have been using with Mapserver. I do not understand the mathematics myself but luckily it is not necessary. Just use correct parameters. -Jukka Rahkonen- Pena Kupen wrote: > Thank's Jukka, > On my spatial_ref_sys-table, there is proj4text like: +proj=tmerc +lat_0=0 +lon_0=27 +k=1.000000 +x_0=3500000 +y_0=0 +ellps=intl +units=m +no_defs So towgs84-parameter is missing. >> If it is not, update the record. >> > It this safe? Can it affect with unwanted result somewhere? >>You can read also http://latuviitta.org/documents/YKJ-TM35FIN_muunnos_ogr2ogr_cs2cs.txt (in Finnish, I suppose it is not a problem for you). >> > Yeps, language not, but understanding is something else ;-) > -Pena Rahkonen Jukka [Jukka.Rahkonen at mmmtike.fi] kirjoitti: > Hi, > > I suppose that towgs84 parameters are missing. You can check this with psql: > > select proj4text from spatial_ref_sys where srid=2393; > > The result should be close to > +proj=tmerc +lat_0=0 +lon_0=27 +k=1.000000 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-90.7,-106.1,-119.2,4.09,0.218,-1.05,1.37 +units=m +no_defs > If it is not, update the record. > > A related thing is that Mapserver epsg text file often comes without towgs84 parameters for the Finnish KKJ zones. This is what I seem to have on this computer: > KKJ / Finland Uniform Coordinate System > <2393> +proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-96.0617,-82.4278,-121.743,4.80107,0.34543,-1.37646,1.4964 +units=m +no_defs <> > > You can see that the parameters are not the same. There are more parameter sets around and that's actually the reason why Proj4 comes or at least used to come without any parameters because none of the sets was authorized. The results of these transformations are rather close and accurate to about one meter. You can read also http://latuviitta.org/documents/YKJ-TM35FIN_muunnos_ogr2ogr_cs2cs.txt (in Finnish, I suppose it is not a problem for you). > > -Jukka Rahkonen- > > Pena Kupen wrote: > > > Hello all, > > > Last time I was successfully helped by Ralf - Thank's once more time! > http://postgis.refractions.net/pipermail/postgis-users/2011-March/029055.html > > > Now I have same type of problem, but I cannot get correct result. > > Table is: > CREATE TABLE location ( > location_id integer NOT NULL, > coord geometry > ); > > Data is in coord column as 2393 format. > > My sql is like: > select > y(location.coord) as y_ykj, > x(location.coord) as x_ykj, > y(ST_Transform(location.coord,4326)) as y_wgs84, > x(ST_Transform(location.coord,4326)) as x_wgs84 > from location where location_id = 'AAA123A' > > result for y_ykj and x_ykj are ok, but point of x_wgs84 and y_wgs84 are about 180meters too much in east. > > -Pena > > -- Wippies-vallankumous on t??ll?! Varmista paikkasi vallankumouksen eturintamassa ja liity Wippiesiin heti! http://www.wippies.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From kupen at wippies.fi Mon Jul 25 01:37:58 2011 From: kupen at wippies.fi (Pena Kupen) Date: Mon, 25 Jul 2011 11:37:58 +0300 (EEST) Subject: [mapserver-users] How to convert from 2393(Finish YKJ) to 4326 (WGS84) Message-ID: <70041440.2341311583079386.JavaMail.kupen@wippies.fi> Thank's! I tried and it works ok :-) -Pena Rahkonen Jukka [Jukka.Rahkonen at mmmtike.fi] kirjoitti: > Hi, > > If you do not need to reproject or you are reprojecting just between KKJ zones you can live without towgs84 parameters. However, reprojecting to/from all the other systems will give an error of 150-200 meters. That is the thing that is not safe. Updating spatial_ref_sys is safe. > > The most official parameters are in the JHS document http://docs.jhs-suositukset.fi/jhs-suositukset/JHS153/JHS153.pdf, table in page 10. Parameters seem to be the ones I have been using with Mapserver. I do not understand the mathematics myself but luckily it is not necessary. Just use correct parameters. > > -Jukka Rahkonen- > > Pena Kupen wrote: > > > Thank's Jukka, > > > On my spatial_ref_sys-table, there is proj4text like: > +proj=tmerc +lat_0=0 +lon_0=27 +k=1.000000 +x_0=3500000 +y_0=0 +ellps=intl +units=m +no_defs > So towgs84-parameter is missing. > > >> If it is not, update the record. > >> > > It this safe? Can it affect with unwanted result somewhere? > > >>You can read also http://latuviitta.org/documents/YKJ-TM35FIN_muunnos_ogr2ogr_cs2cs.txt (in Finnish, I suppose it is not a problem for you). > >> > > Yeps, language not, but understanding is something else ;-) > > > -Pena > > Rahkonen Jukka [Jukka.Rahkonen at mmmtike.fi] kirjoitti: > > Hi, > > > > I suppose that towgs84 parameters are missing. You can check this with psql: > > > > select proj4text from spatial_ref_sys where srid=2393; > > > > The result should be close to > > +proj=tmerc +lat_0=0 +lon_0=27 +k=1.000000 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-90.7,-106.1,-119.2,4.09,0.218,-1.05,1.37 +units=m +no_defs > > If it is not, update the record. > > > > A related thing is that Mapserver epsg text file often comes without towgs84 parameters for the Finnish KKJ zones. This is what I seem to have on this computer: > > KKJ / Finland Uniform Coordinate System > > <2393> +proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-96.0617,-82.4278,-121.743,4.80107,0.34543,-137646,1.4964 +units=m +no_defs <> > > > > You can see that the parameters are not the same. There are more parameter sets around and that's actually the reason why Proj4 comes or at least used to come without any parameters because none of the sets was authorized. The results of these transformations are rather close and accurate to about one meter. You can read also http://latuviitta.org/documents/YKJ-TM35FIN_muunnos_ogr2ogr_cs2cs.txt (in Finnish, I suppose it is not a problem for you). > > > > -Jukka Rahkonen- > > > > Pena Kupen wrote: > > > > > Hello all, > > > > > Last time I was successfully helped by Ralf - Thank's once more time! > > http://postgis.refractions.net/pipermail/postgis-users/2011-March/029055.html > > > > > Now I have same type of problem, but I cannot get correct result. > > > > Table is: > > CREATE TABLE location ( > > location_id integer NOT NULL, > > coord geometry > > ); > > > > Data is in coord column as 2393 format. > > > > My sql is like: > > select > > y(location.coord) as y_ykj, > > x(location.coord) as x_ykj, > > y(ST_Transform(location.coord,4326)) as y_wgs84, > > x(ST_Transform(location.coord,4326)) as x_wgs84 > > from location where location_id = 'AAA123A' > > > > result for y_ykj and x_ykj are ok, but point of x_wgs84 and y_wgs84 are about 180meters too much in east. > > > > -Pena > > > > > > > -- > Wippies-vallankumous on t??ll?! Varmista paikkasi vallankumouksen eturintamassa ja liity Wippiesiin heti! > http://www.wippies.com/ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Wippies-vallankumous on t??ll?! Varmista paikkasi vallankumouksen eturintamassa ja liity Wippiesiin heti! http://www.wippies.com/ From stephane.brunner at camptocamp.com Mon Jul 25 04:19:49 2011 From: stephane.brunner at camptocamp.com (=?ISO-8859-1?Q?St=E9phane_Brunner?=) Date: Mon, 25 Jul 2011 13:19:49 +0200 Subject: [mapserver-users] Problem GetFeature with geom filter on WFS Message-ID: Hello, I have the mapfile [0]. when I done a GetFeature on the nummer [1] I have 4 results [2] (with duplicate but it's an other issue). When I done a spatial filter [3] I have no results [4] but I should have at least one result ... Thanks in advance for having a look on this issue. Sincerely yours St?phane Brunner Following: specified, GetCapabilities [5], describefeaturetype [6]. mapfile [0]: MAP NAME "map" EXTENT 620000 218000 690000 278000 UNITS METERS IMAGETYPE jpeg RESOLUTION 72 DEFRESOLUTION 72 IMAGECOLOR 255 255 255 STATUS ON FONTSET "fonts.conf" SYMBOLSET "symbole.sym" MAXSIZE 5000 PROJECTION "init=epsg:21781" END #### # Used by overlays #### OUTPUTFORMAT NAME png256 DRIVER AGG/PNG MIMETYPE "image/png256" IMAGEMODE RGBA EXTENSION "png" FORMATOPTION "INTERLACE=OFF" FORMATOPTION "QUANTIZE_FORCE=ON" FORMATOPTION "QUANTIZE_DITHER=OFF" FORMATOPTION "QUANTIZE_COLORS=256" END OUTPUTFORMAT NAME png DRIVER AGG/PNG MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" FORMATOPTION "INTERLACE=OFF" FORMATOPTION "QUANTIZE_DITHER=OFF" END WEB METADATA "ows_title" "map" "ows_srs" "epsg:21781" "ows_encoding" "UTF-8" "wms_feature_info_mime_type" "application/vnd.ogc.gml" "wms_enable_request" "*" "ows_enable_request" "*" "gml_include_items" "all" "gml_featureid" "id" "wfs_title" "map" "wfs_srs" "epsg:21781" END IMAGEPATH '/var/tmp/' END LEGEND IMAGECOLOR 240 240 240 LABEL FONT arial ANTIALIAS true TYPE truetype SIZE 9 COLOR 0 0 0 END END LAYER NAME "Liegenschaft_Query" TYPE POLYGON STATUS ON TEMPLATE fooOnlyForWMSGetFeatureInfo CONNECTIONTYPE postgis PROCESSING "CLOSE_CONNECTION=DEFER" CONNECTION "user=www-data password=www-data dbname=dev host=localhost" DATA "geom from (SELECT oid, t1.geom, t1.nummer FROM av.view_i_liegenschaft_all AS t1) AS foo using unique oid using SRID=-1" # GROUP "TOPIC_Liegenschaften_LN" EXTENT 620000 218000 690000 278000 METADATA "ows_title" "Liegenschaft_Query" "ows_srs" "epsg:21781" "id_attribute_string" "oid" "ows_featureid" "oid" "ows_geometries" "geom" "ows_geom_type" "polygon" "query_returned_attributes" "nummer" "gml_include_items" "oid,nummer,geom" "gml_geometries" "geom" "gml_geom_type" "polygon" "gml_nummer_type" "Character" #"gml_groups" "TOPIC_Liegenschaften_LN" "gml_featureid" "oid" "wfs_title" "Liegenschaft_Query" "wfs_srs" "epsg:21781" END DUMP TRUE PROJECTION "init=epsg:21781" END CLASS NAME "Liegenschaft" STYLE SYMBOL "circle" SIZE 3 OUTLINECOLOR 0 0 0 END END END END query on the nummer [1]: nummer 3634 response on the nummer [2]: 661054.808000,244611.321000 663053.704000,244888.622000 661054.808000,244854.251000 661088.687000,244888.622000 661076.579000,244888.622000 661054.808000,244875.484000 661062.744000,244858.448000 661064.653000,244854.251000 661088.687000,244869.173000 661076.579000,244888.622000 2380997 3634 661054.808000,244854.251000 661088.687000,244888.622000 661076.579000,244888.622000 661054.808000,244875.484000 661062.744000,244858.448000 661064.653000,244854.251000 661088.687000,244869.173000 661076.579000,244888.622000 2380997 3634 663017.565000,244611.321000 663053.704000,244650.084000 663017.565000,244635.722000 663033.235000,244611.321000 663045.949000,244619.485000 663053.704000,244626.417000 663034.337000,244650.084000 663017.565000,244635.722000 2384539 3634 663017.565000,244611.321000 663053.704000,244650.084000 663017.565000,244635.722000 663033.235000,244611.321000 663045.949000,244619.485000 663053.704000,244626.417000 663034.337000,244650.084000 663017.565000,244635.722000 2384539 3634 query with spatial filter [3]: geom 661070.024,244872.084 response with spatial filter [4]: missing GetCapabilities [5]: MapServer WFS Amtliche Vermessung Die amtliche Vermessung nach DM01 Darstellung als WMS Dienst f?r MapFish Projekte http://c2cpc89.camptocamp.com/sbrunner/mapserv? Liegenschaft_Query Liegenschaft_Query epsg:21781 Liegenschaft_Query_ALL Liegenschaft_Query_ALL epsg:21781 describefeaturetype [6]: -- camptocamp.com mapfish.org From amatsaka at yahoo.com Mon Jul 25 06:37:25 2011 From: amatsaka at yahoo.com (VincentHanna) Date: Mon, 25 Jul 2011 06:37:25 -0700 (PDT) Subject: [mapserver-users] Load a map from a remote URL using Mapscript Message-ID: <1311601045881-6618321.post@n2.nabble.com> Hi I am trying to create a desktop application that would load a map from a remote URL. For this I am using the mapscript method with C# according to the following tutorial: http://spatialhorizons.com/2007/05/26/mapscript-demo-1/ mapscript demo . All the mapscript related examples I have seen so far including the above load a map from the local PC using a mapfile located somewhere in the C:drive. How can I load a map that is located in a remote URL? Should I have to modify the map file? Or should I tell mapscript the remote URL where the mapfile is located and if yes, how this is done? AM-- -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Load-a-map-from-a-remote-URL-using-Mapscript-tp6618321p6618321.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sdlime at gmail.com Mon Jul 25 07:40:24 2011 From: sdlime at gmail.com (Steve Lime) Date: Mon, 25 Jul 2011 09:40:24 -0500 Subject: [mapserver-users] Problem GetFeature with geom filter on WFS In-Reply-To: References: Message-ID: Hi St?phane: What MapServer version? Does the filter fail against a shapefile version of the data as well? Steve On Mon, Jul 25, 2011 at 6:19 AM, St?phane Brunner < stephane.brunner at camptocamp.com> wrote: > Hello, > > I have the mapfile [0]. when I done a GetFeature on the nummer [1] I > have 4 results [2] (with duplicate but it's an other issue). > When I done a spatial filter [3] I have no results [4] but I should > have at least one result ... > > Thanks in advance for having a look on this issue. > > Sincerely yours > St?phane Brunner > > Following: specified, GetCapabilities [5], describefeaturetype [6]. > > mapfile [0]: > MAP > NAME "map" > > EXTENT 620000 218000 690000 278000 > > UNITS METERS > IMAGETYPE jpeg > RESOLUTION 72 > DEFRESOLUTION 72 > IMAGECOLOR 255 255 255 > STATUS ON > FONTSET "fonts.conf" > SYMBOLSET "symbole.sym" > MAXSIZE 5000 > > PROJECTION > "init=epsg:21781" > END > > #### > # Used by overlays > #### > OUTPUTFORMAT > NAME png256 > DRIVER AGG/PNG > MIMETYPE "image/png256" > IMAGEMODE RGBA > EXTENSION "png" > FORMATOPTION "INTERLACE=OFF" > FORMATOPTION "QUANTIZE_FORCE=ON" > FORMATOPTION "QUANTIZE_DITHER=OFF" > FORMATOPTION "QUANTIZE_COLORS=256" > END > OUTPUTFORMAT > NAME png > DRIVER AGG/PNG > MIMETYPE "image/png" > IMAGEMODE RGBA > EXTENSION "png" > FORMATOPTION "INTERLACE=OFF" > FORMATOPTION "QUANTIZE_DITHER=OFF" > END > > WEB > METADATA > "ows_title" "map" > "ows_srs" "epsg:21781" > "ows_encoding" "UTF-8" > "wms_feature_info_mime_type" "application/vnd.ogc.gml" > "wms_enable_request" "*" > "ows_enable_request" "*" > "gml_include_items" "all" > "gml_featureid" "id" > "wfs_title" "map" > "wfs_srs" "epsg:21781" > END > IMAGEPATH '/var/tmp/' > END > > LEGEND > IMAGECOLOR 240 240 240 > LABEL > FONT arial > ANTIALIAS true > TYPE truetype > SIZE 9 > COLOR 0 0 0 > END > END > > > LAYER > NAME "Liegenschaft_Query" > TYPE POLYGON > STATUS ON > TEMPLATE fooOnlyForWMSGetFeatureInfo > CONNECTIONTYPE postgis > PROCESSING "CLOSE_CONNECTION=DEFER" > CONNECTION "user=www-data password=www-data dbname=dev host=localhost" > DATA "geom from (SELECT oid, t1.geom, t1.nummer FROM > av.view_i_liegenschaft_all AS t1) AS foo using unique oid using > SRID=-1" > # GROUP "TOPIC_Liegenschaften_LN" > EXTENT 620000 218000 690000 278000 > METADATA > "ows_title" "Liegenschaft_Query" > "ows_srs" "epsg:21781" > "id_attribute_string" "oid" > "ows_featureid" "oid" > "ows_geometries" "geom" > "ows_geom_type" "polygon" > "query_returned_attributes" "nummer" > "gml_include_items" "oid,nummer,geom" > "gml_geometries" "geom" > "gml_geom_type" "polygon" > "gml_nummer_type" "Character" > #"gml_groups" "TOPIC_Liegenschaften_LN" > "gml_featureid" "oid" > "wfs_title" "Liegenschaft_Query" > "wfs_srs" "epsg:21781" > END > DUMP TRUE > PROJECTION > "init=epsg:21781" > END > > CLASS > NAME "Liegenschaft" > STYLE > SYMBOL "circle" > SIZE 3 > OUTLINECOLOR 0 0 0 > END > END > END > END > > query on the nummer [1]: > version="1.0.0" maxFeatures="100" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > xmlns:feature="http://mapserver.gis.umn.edu/mapserver"> > > > nummer > 3634 > > > > > > response on the nummer [2]: > > xmlns:ms="http://mapserver.gis.umn.edu/mapserver" > xmlns:wfs="http://www.opengis.net/wfs" > xmlns:gml="http://www.opengis.net/gml" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd > http://mapserver.gis.umn.edu/mapserver > > http://c2cpc89.camptocamp.com/sbrunner/mapserv?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=feature:Liegenschaft_Query&OUTPUTFORMAT=XMLSCHEMA > "> > > > 661054.808000,244611.321000 > 663053.704000,244888.622000 > > > > > > > 661054.808000,244854.251000 > 661088.687000,244888.622000 > > > > > > > 661076.579000,244888.622000 > 661054.808000,244875.484000 661062.744000,244858.448000 > 661064.653000,244854.251000 661088.687000,244869.173000 > 661076.579000,244888.622000 > > > > > 2380997 > 3634 > > > > > > > 661054.808000,244854.251000 > 661088.687000,244888.622000 > > > > > > > 661076.579000,244888.622000 > 661054.808000,244875.484000 661062.744000,244858.448000 > 661064.653000,244854.251000 661088.687000,244869.173000 > 661076.579000,244888.622000 > > > > > 2380997 > 3634 > > > > > > > 663017.565000,244611.321000 > 663053.704000,244650.084000 > > > > > > > 663017.565000,244635.722000 > 663033.235000,244611.321000 663045.949000,244619.485000 > 663053.704000,244626.417000 663034.337000,244650.084000 > 663017.565000,244635.722000 > > > > > 2384539 > 3634 > > > > > > > 663017.565000,244611.321000 > 663053.704000,244650.084000 > > > > > > > 663017.565000,244635.722000 > 663033.235000,244611.321000 663045.949000,244619.485000 > 663053.704000,244626.417000 663034.337000,244650.084000 > 663017.565000,244635.722000 > > > > > 2384539 > 3634 > > > > > > query with spatial filter [3]: > version="1.0.0" maxFeatures="100" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > xmlns:feature="http://mapserver.gis.umn.edu/mapserver"> > > > geom > > 661070.024,244872.084 > > > > > > > > response with spatial filter [4]: > > xmlns:ms="http://mapserver.gis.umn.edu/mapserver" > xmlns:wfs="http://www.opengis.net/wfs" > xmlns:gml="http://www.opengis.net/gml" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd > http://mapserver.gis.umn.edu/mapserver > > http://c2cpc89.camptocamp.com/sbrunner/mapserv?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=feature:Liegenschaft_Query&OUTPUTFORMAT=XMLSCHEMA > "> > > missing > > > > > GetCapabilities [5]: > > version="1.0.0" > updateSequence="0" > xmlns="http://www.opengis.net/wfs" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.0.0/WFS-capabilities.xsd"> > > > > > MapServer WFS > Amtliche Vermessung > Die amtliche Vermessung nach DM01 Darstellung als WMS > Dienst f?r MapFish Projekte > http://c2cpc89.camptocamp.com/sbrunner/mapserv > ? > > > > > > > > > /> > > > > > > onlineResource="http://c2cpc89.camptocamp.com/sbrunner/mapserv?" /> > > > > > > > > > > > /> > > > > > onlineResource="http://c2cpc89.camptocamp.com/sbrunner/mapserv?" /> > > > > > > > > > > > > /> > > > > > onlineResource="http://c2cpc89.camptocamp.com/sbrunner/mapserv?" /> > > > > > > > > > > > > > Liegenschaft_Query > Liegenschaft_Query > > epsg:21781 > maxy="278000" /> > > > Liegenschaft_Query_ALL > Liegenschaft_Query_ALL > epsg:21781 > > maxy="278000" /> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > describefeaturetype [6]: > > targetNamespace="http://mapserver.gis.umn.edu/mapserver" > xmlns:ms="http://mapserver.gis.umn.edu/mapserver" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns="http://www.w3.org/2001/XMLSchema" > xmlns:gml="http://www.opengis.net/gml" > elementFormDefault="qualified" version="0.1" > > > schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd" > /> > > type="ms:Liegenschaft_QueryType" > substitutionGroup="gml:_Feature" /> > > > > > > > minOccurs="0" maxOccurs="1"/> > > > > > > > > > > > -- > camptocamp.com > mapfish.org > _______________________________________________ > 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 armaluvly_88 at yahoo.com Tue Jul 26 01:40:48 2011 From: armaluvly_88 at yahoo.com (lovelietha) Date: Tue, 26 Jul 2011 01:40:48 -0700 (PDT) Subject: [mapserver-users] LABELS ON THE MAP CAN NOT BE DISPLAYED Message-ID: <1311669648106-6621419.post@n2.nabble.com> Hi everyone, I used a Chameleon framework to make webGIS,i want to add labels on my tematic map,but i'm wondering why my map and the label can't be displayed in the browser when i run it.. Besides,the cursorpos is working,but the map and the label can't be displayed.. What should i do?? Any suggestions? The codes is below : *Mapfile code :* MAP IMAGETYPE PNG EXTENT 114.522156 -3.381501 114.664684 -3.267320 STATUS ON UNITS METERS SIZE 450 350 IMAGECOLOR 255 255 0 # # Mulai pendefinisian layers # LAYER NAME Peta_Kota_region STATUS DEFAULT TYPE POLYGON TEMPLATE "../legend_template.html" CONNECTIONTYPE POSTGIS CONNECTION "user=postgres password=root dbname=DBD host=localhost port=5432" DATA "the_geom FROM tb_dbd USING UNIQUE gid" CLASS NAME "Peta Kota" STYLE COLOR 186 241 152 OUTLINECOLOR 0 0 0 END # style END # class END # layer LAYER NAME "Anotasi" STATUS DEFAULT TYPE annotation TEMPLATE "../legend_template.html" CONNECTIONTYPE POSTGIS CONNECTION "user=postgres password=root dbname=DBD host=localhost port=5432" DATA "the_geom FROM tb_dbd USING UNIQUE gid" LABELITEM "kel" CLASS #TEXT ([kel]) LABEL COLOR 0 0 0 TYPE Truetype FONT arial SIZE 11 MINSIZE 8 ANGLE Auto POSITION UC ANTIALIAS True END # label END # class END # akhir definisi layer END # Akhir mapfile *Peta1.html code :*
../images/banner.png
Home.phtml Home Peta.phtml Map Analisis.phtml Analisis Login.phtml Login Contact.phtml Contact
Peta Spasial dengan indikator Jumlah Penduduk menggunakan perhitungan LISA
* * * * * *
Peta1.phtml Data Tahun 2005 ../images/true_north.png


* Zoom in *
*Recenter*
*Drag*
*Zoom out*
*Query*
*Full extent*
Peta1.phtml Data Tahun 2006
Peta1.phtml Data Tahun 2007
Peta1.phtml Data Tahun 2008
Data Tahun 2009
Peta1.phtml Data I
Peta1.phtml Data II
Peta1.phtml Data III
Peta1.phtml Data IV
Peta1.phtml Data V
Nilai skala
Skala batang
*Peta1.phtml code :* moMapSession = new MapSession_RW; $this ->moMapSession-> setTempDir ( getSessionSavePath()); } } $oApp= new SampleApp(); $oApp-> registerSkin('skins/sample'); $oApp->CWCInitialize($szTemplate,$szMapFile); $oApp->CWCExecute(); ?> Any suggestions would be helpful. Thanks. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/LABELS-ON-THE-MAP-CAN-NOT-BE-DISPLAYED-tp6621419p6621419.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Ralf.Trier at logos-ib.de Tue Jul 26 02:13:33 2011 From: Ralf.Trier at logos-ib.de (Ralf Trier) Date: Tue, 26 Jul 2011 11:13:33 +0200 Subject: [mapserver-users] Possible Bug? use Style with Offset and Color from DB twice in one class section Message-ID: Hello, I want to draw two parallel lines to baselines from a database. The parallel lines should be drawn with the color set in the db. Part of my map file: LAYER NAME "tttt" TYPE LINE PROJECTION "init=epsg:900913" END STATUS DEFAULT CONNECTIONTYPE postgis CONNECTION "host=192.168.1.10 dbname=xxx user=xxx" DATA "way from (select id, color01, color02, way from myTable) as foo using unique id using srid=900913" SIZEUNITS pixels CLASS STYLE OFFSET 5 -99 COLOR [color01] WIDTH 10 LINECAP square END STYLE OFFSET -5 -99 COLOR [color02] WIDTH 10 LINECAP square END END END Strange think happens. The first parallel line is drawn with the expected color. The second line (second style instruction) will be drawn in a random color seems to come from another line. The color (second line) will change depending form the scale. Any ideas? Thanks Ralf From chris.green at ibstv.co.uk Tue Jul 26 03:57:23 2011 From: chris.green at ibstv.co.uk (Chris Green) Date: Tue, 26 Jul 2011 11:57:23 +0100 Subject: [mapserver-users] OGR to MySQL Message-ID: <018a01cc4b82$cc9573c0$65c05b40$@green@ibstv.co.uk> Hi users I'm having some trouble with an OGR connection to a MySQL database. The data I'm trying to access was created using QGIS as a line layer and saved in a MySQL table as a BLOB in a geometry column. I can access and properly display this line data using QGIS, but not so far via Mapserver - nothing is drawn and I can't see any error. I am using Mapserver 6.0 and my mapfile is very similar to the example in theMapserver / MYSQL documentation: LAYER NAME "testLine" TYPE LINE STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "mysql:testDB,user=admin,password=password,port=3306" DATA "SELECT Geometry from testLine" CLASS STYLE COLOR 0 0 0 WIDTH 2 END # style END # class END # layer If I look at the MySQL table using OGRinfo I see the following: Layer name: testLine Geometry: Unknown (any) Feature Count: 0 Layer SRS WKT: (unknown) FID Coumn = id Geometry Column = Geometry The issue seems to be that OGRInfo and therefore MapServer does not recognise any features in the table, but QGIS using access to the same table finds and displays the features. Anyone have any ideas what I am doing wrong? Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From tom at vdputte.nl Tue Jul 26 04:21:29 2011 From: tom at vdputte.nl (Tom van der Putte) Date: Tue, 26 Jul 2011 13:21:29 +0200 Subject: [mapserver-users] Fw: mapserver-users Digest, Vol 42, Issue 60 Message-ID: <4tcuv0n1tijbdseviraoiomp.1311679289403@email.android.com> uur p Verzonden vanaf Samsung Mobile -------- Oorspronkelijk bericht -------- Onderwerp: mapserver-users Digest, Vol 42, Issue 60 Van: mapserver-users-request at lists.osgeo.org Aan: mapserver-users at lists.osgeo.org Cc: Send mapserver-users mailing list submissions to mapserver-users at lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/mapserver-users or, via email, send a message with subject or body 'help' to mapserver-users-request at lists.osgeo.org You can reach the person managing the list at mapserver-users-owner at lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of mapserver-users digest..." Today's Topics: 1. Re: How to convert from 2393(Finish YKJ) to 4326 (WGS84) (Rahkonen Jukka) 2. Question: loadWeb(): Unknown identifier. Parsing error near (ms_tmp):(line 36) (Mihaela Caluian) 3. Re: Question: loadWeb(): Unknown identifier. Parsing error near (ms_tmp):(line 36) (Steve Lime) 4. Fw: Re: [mapserver-users] How to convert from 2393(Finish YKJ) to 4326 (WGS84) (Pena Kupen) ---------------------------------------------------------------------- Message: 1 Date: Sun, 24 Jul 2011 17:16:46 +0000 From: Rahkonen Jukka Subject: Re: [mapserver-users] How to convert from 2393(Finish YKJ) to 4326 (WGS84) To: Pena Kupen , "mapserver-users at lists.osgeo.org" Message-ID: <84446DEF76453C439E9E97E438E13A63015546 at suutari.haapa.mmm.fi> Content-Type: text/plain; charset="iso-8859-1" Hi, I suppose that towgs84 parameters are missing. You can check this with psql: select proj4text from spatial_ref_sys where srid=2393; The result should be close to +proj=tmerc +lat_0=0 +lon_0=27 +k=1.000000 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-90.7,-106.1,-119.2,4.09,0.218,-1.05,1.37 +units=m +no_defs If it is not, update the record. A related thing is that Mapserver epsg text file often comes without towgs84 parameters for the Finnish KKJ zones. This is what I seem to have on this computer: KKJ / Finland Uniform Coordinate System <2393> +proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-96.0617,-82.4278,-121.743,4.80107,0.34543,-1.37646,1.4964 +units=m +no_defs <> You can see that the parameters are not the same. There are more parameter sets around and that's actually the reason why Proj4 comes or at least used to come without any parameters because none of the sets was authorized. The results of these transformations are rather close and accurate to about one meter. You can read also http://latuviitta.org/documents/YKJ-TM35FIN_muunnos_ogr2ogr_cs2cs.txt (in Finnish, I suppose it is not a problem for you). -Jukka Rahkonen- Pena Kupen wrote: > Hello all, > Last time I was successfully helped by Ralf - Thank's once more time! http://postgis.refractions.net/pipermail/postgis-users/2011-March/029055.html > Now I have same type of problem, but I cannot get correct result. Table is: CREATE TABLE location ( location_id integer NOT NULL, coord geometry ); Data is in coord column as 2393 format. My sql is like: select y(location.coord) as y_ykj, x(location.coord) as x_ykj, y(ST_Transform(location.coord,4326)) as y_wgs84, x(ST_Transform(location.coord,4326)) as x_wgs84 from location where location_id = 'AAA123A' result for y_ykj and x_ykj are ok, but point of x_wgs84 and y_wgs84 are about 180meters too much in east. -Pena -- Wippies-vallankumous on t??ll?! Varmista paikkasi vallankumouksen eturintamassa ja liity Wippiesiin heti! http://www.wippies.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------ Message: 2 Date: Mon, 25 Jul 2011 00:14:20 -0400 From: Mihaela Caluian Subject: [mapserver-users] Question: loadWeb(): Unknown identifier. Parsing error near (ms_tmp):(line 36) To: mapserver-users at lists.osgeo.org Message-ID: Content-Type: text/plain; charset="iso-8859-1" Hello everybody, I am very new to MapServer and I have a lots of problem that I cannot find answer. Currently I am having trouble to figure out what is wrong with my .map files. I am getting this error when I try to click the button to load the map file: loadWeb(): Unknown identifier. Parsing error near (ms_tmp):(line 49) msOutputFormatValidate(): General error message. OUTPUTFORMAT png has IMAGEMODE RGB/RGBA, which is not supported for GD drivers. When I installed for the first time MapServer everything works, but I had to reinstall it and I cannot even see my work now. I am using Windows Vista and MapServer MS4W - MapServer 4 Windows - version 3.0.3: (This is my first time when I am working with MapServer, actually I am learning it.) The map file that I tried to open is: MAP NAME "Rail" # Map image size SIZE 600 400 UNITS meters EXTENT -132.193287 28.711430 -50.854471 74.207982 FONTSET 'c:/wwwroot/fonts/fontset.txt' SYMBOLSET 'c:/wwwroot/symbols/symbols.txt' PROJECTION 'proj=longlat' 'ellps=WGS84' 'towgs84=0,0,0,0,0,0,0' 'no_defs' END # Background color for the map canvas -- change as desired IMAGECOLOR 255 255 255 IMAGEQUALITY 95 IMAGETYPE png OUTPUTFORMAT NAME png DRIVER 'GD/PNG' MIMETYPE 'image/png' IMAGEMODE RGBA EXTENSION 'png' END # Legend LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # Web interface definition. Only the template parameter # is required to display a map. See MapServer documentation WEB # Set IMAGEPATH to the path where MapServer should # write its output. IMAGEPATH "\ms4w\tmp\ms_tmp\" # Set IMAGEURL to the url that points to IMAGEPATH # as defined in your web server configuration IMAGEURL "/ms_tmp/" # WMS server settings METADATA 'ows_title' 'Rail' 'ows_onlineresource' ' http://localhost/cgi-bin/mapserv.exe?map=C:/wwwroot/assignment3/rail.map' 'ows_srs' 'EPSG:4326' END #Scale range at which web interface will operate # Template and header/footer settings # Only the template parameter is required to display a map. See MapServer documentation TEMPLATE 'rail.html' END LAYER NAME 'Rails' TYPE LINE DUMP true TEMPLATE fooOnlyForWMSGetFeatureInfo EXTENT -132.193287 28.711430 -50.854471 74.207982 DATA 'C:\wwwroot\assignment3\rails.shp' METADATA 'ows_title' 'Rails' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'towgs84=0,0,0,0,0,0,0' 'no_defs' END CLASS NAME 'Rails' STYLE WIDTH 2 COLOR 146 154 155 END END END END Please, if somebody can help me I will really appreciate. I tried so many times and now I really don't know what to do more. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110725/17503ec1/attachment-0001.html ------------------------------ Message: 3 Date: Sun, 24 Jul 2011 23:30:04 -0500 From: Steve Lime Subject: Re: [mapserver-users] Question: loadWeb(): Unknown identifier. Parsing error near (ms_tmp):(line 36) To: Mihaela Caluian Cc: mapserver-users at lists.osgeo.org Message-ID: Content-Type: text/plain; charset="iso-8859-1" In MapServer 6.0, the GD driver can only produce 8-bit output so your output format is invalid. Try commenting it out and see what happens. I believe you can leave "IMAGETYPE png" in place and you'll get AGG-based, 8-bit output. Should look much nicer. Steve On Sun, Jul 24, 2011 at 11:14 PM, Mihaela Caluian wrote: > Hello everybody, > > I am very new to MapServer and I have a lots of problem that I cannot find > answer. > > Currently I am having trouble to figure out what is wrong with my .map > files. I am getting this error when I try to click the button to load the > map file: > > loadWeb(): Unknown identifier. Parsing error near (ms_tmp):(line 49) > msOutputFormatValidate(): General error message. OUTPUTFORMAT png has > IMAGEMODE RGB/RGBA, which is not supported for GD drivers. > > When I installed for the first time MapServer everything works, but I had > to reinstall it and I cannot even see my work now. > > I am using Windows Vista and MapServer MS4W - MapServer 4 Windows - version > 3.0.3: (This is my first time when I am working with MapServer, actually I > am learning it.) > > The map file that I tried to open is: > > MAP > NAME "Rail" > # Map image size > SIZE 600 400 > UNITS meters > EXTENT -132.193287 28.711430 -50.854471 74.207982 > FONTSET 'c:/wwwroot/fonts/fontset.txt' > SYMBOLSET 'c:/wwwroot/symbols/symbols.txt' > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'towgs84=0,0,0,0,0,0,0' > 'no_defs' > END > # Background color for the map canvas -- change as desired > IMAGECOLOR 255 255 255 > IMAGEQUALITY 95 > IMAGETYPE png > OUTPUTFORMAT > NAME png > DRIVER 'GD/PNG' > MIMETYPE 'image/png' > IMAGEMODE RGBA > EXTENSION 'png' > END > # Legend > LEGEND > IMAGECOLOR 255 255 255 > STATUS ON > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > END > # Web interface definition. Only the template parameter > # is required to display a map. See MapServer documentation > WEB > # Set IMAGEPATH to the path where MapServer should > # write its output. > IMAGEPATH "\ms4w\tmp\ms_tmp\" > # Set IMAGEURL to the url that points to IMAGEPATH > # as defined in your web server configuration > IMAGEURL "/ms_tmp/" > # WMS server settings > METADATA > 'ows_title' 'Rail' > 'ows_onlineresource' ' > http://localhost/cgi-bin/mapserv.exe?map=C:/wwwroot/assignment3/rail.map' > 'ows_srs' 'EPSG:4326' > END > #Scale range at which web interface will operate > # Template and header/footer settings > # Only the template parameter is required to display a map. See > MapServer documentation > TEMPLATE 'rail.html' > END > LAYER > NAME 'Rails' > TYPE LINE > DUMP true > TEMPLATE fooOnlyForWMSGetFeatureInfo > EXTENT -132.193287 28.711430 -50.854471 74.207982 > DATA 'C:\wwwroot\assignment3\rails.shp' > METADATA > 'ows_title' 'Rails' > END > STATUS DEFAULT > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'towgs84=0,0,0,0,0,0,0' > 'no_defs' > END > CLASS > NAME 'Rails' > STYLE > WIDTH 2 > COLOR 146 154 155 > END > END > END > END > > Please, if somebody can help me I will really appreciate. I tried so many > times and now I really don't know what to do more. > > Thanks. > > > _______________________________________________ > 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: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110724/e87a2a06/attachment-0001.html ------------------------------ Message: 4 Date: Mon, 25 Jul 2011 08:54:03 +0300 (EEST) From: Pena Kupen Subject: Fw: Re: [mapserver-users] How to convert from 2393(Finish YKJ) to 4326 (WGS84) To: mapserver-users at lists.osgeo.org Message-ID: <1134235633.2761311573244115.JavaMail.kupen at wippies.fi> Content-Type: text/plain; Charset=iso-8859-1; Format=Flowed Thank's Jukka, On my spatial_ref_sys-table, there is proj4text like: +proj=tmerc +lat_0=0 +lon_0=27 +k=1.000000 +x_0=3500000 +y_0=0 +ellps=intl +units=m +no_defs So towgs84-parameter is missing. > If it is not, update the record. > It this safe? Can it affect with unwanted result somewhere? >You can read also http://latuviitta.org/documents/YKJ-TM35FIN_muunnos_ogr2ogr_cs2cs.txt (in Finnish, I suppose it is not a problem for you). > Yeps, language not, but understanding is something else ;-) -Pena Rahkonen Jukka [Jukka.Rahkonen at mmmtike.fi] kirjoitti: > Hi, > > I suppose that towgs84 parameters are missing. You can check this with psql: > > select proj4text from spatial_ref_sys where srid=2393; > > The result should be close to > +proj=tmerc +lat_0=0 +lon_0=27 +k=1.000000 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-90.7,-106.1,-119.2,4.09,0.218,-1.05,1.37 +units=m +no_defs > If it is not, update the record. > > A related thing is that Mapserver epsg text file often comes without towgs84 parameters for the Finnish KKJ zones. This is what I seem to have on this computer: > KKJ / Finland Uniform Coordinate System > <2393> +proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-96.0617,-82.4278,-121.743,4.80107,0.34543,-1.37646,1.4964 +units=m +no_defs <> > > You can see that the parameters are not the same. There are more parameter sets around and that's actually the reason why Proj4 comes or at least used to come without any parameters because none of the sets was authorized. The results of these transformations are rather close and accurate to about one meter. You can read also http://latuviitta.org/documents/YKJ-TM35FIN_muunnos_ogr2ogr_cs2cs.txt (in Finnish, I suppose it is not a problem for you). > > -Jukka Rahkonen- > > Pena Kupen wrote: > > > Hello all, > > > Last time I was successfully helped by Ralf - Thank's once more time! > http://postgis.refractions.net/pipermail/postgis-users/2011-March/029055.html > > > Now I have same type of problem, but I cannot get correct result. > > Table is: > CREATE TABLE location ( > location_id integer NOT NULL, > coord geometry > ); > > Data is in coord column as 2393 format. > > My sql is like: > select > y(location.coord) as y_ykj, > x(location.coord) as x_ykj, > y(ST_Transform(location.coord,4326)) as y_wgs84, > x(ST_Transform(location.coord,4326)) as x_wgs84 > from location where location_id = 'AAA123A' > > result for y_ykj and x_ykj are ok, but point of x_wgs84 and y_wgs84 are about 180meters too much in east. > > -Pena > > -- Wippies-vallankumous on t??ll?! Varmista paikkasi vallankumouksen eturintamassa ja liity Wippiesiin heti! http://www.wippies.com/ ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 42, Issue 60 *********************************************** From tom at vdputte.nl Tue Jul 26 04:30:33 2011 From: tom at vdputte.nl (Tom van der Putte) Date: Tue, 26 Jul 2011 13:30:33 +0200 Subject: [mapserver-users] Fw: mapserver-users Digest, Vol 42, Issue 60 Message-ID: Verzonden vanaf Samsung Mobile00|pop -------- Oorspronkelijk bericht -------- Onderwerp: mapserver-users Digest, Vol 42, Issue 60 Van: mapserver-users-request at lists.osgeo.org Aan: mapserver-users at lists.osgeo.org Cc: Send mapserver-users mailing list submissions to mapserver-users at lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/mapserver-users or, via email, send a message with subject or body 'help' to mapserver-users-request at lists.osgeo.org You can reach the person managing the list at mapserver-users-owner at lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of mapserver-users digest..." Today's Topics: 1. Re: How to convert from 2393(Finish YKJ) to 4326 (WGS84) (Rahkonen Jukka) 2. Question: loadWeb(): Unknown identifier. Parsing error near (ms_tmp):(line 36) (Mihaela Caluian) 3. Re: Question: loadWeb(): Unknown identifier. Parsing error near (ms_tmp):(line 36) (Steve Lime) 4. Fw: Re: [mapserver-users] How to convert from 2393(Finish YKJ) to 4326 (WGS84) (Pena Kupen) ---------------------------------------------------------------------- Message: 1 Date: Sun, 24 Jul 2011 17:16:46 +0000 From: Rahkonen Jukka Subject: Re: [mapserver-users] How to convert from 2393(Finish YKJ) to 4326 (WGS84) To: Pena Kupen , "mapserver-users at lists.osgeo.org" Message-ID: <84446DEF76453C439E9E97E438E13A63015546 at suutari.haapa.mmm.fi> Content-Type: text/plain; charset="iso-8859-1" Hi, I suppose that towgs84 parameters are missing. You can check this with psql: select proj4text from spatial_ref_sys where srid=2393; The result should be close to +proj=tmerc +lat_0=0 +lon_0=27 +k=1.000000 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-90.7,-106.1,-119.2,4.09,0.218,-1.05,1.37 +units=m +no_defs If it is not, update the record. A related thing is that Mapserver epsg text file often comes without towgs84 parameters for the Finnish KKJ zones. This is what I seem to have on this computer: KKJ / Finland Uniform Coordinate System <2393> +proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-96.0617,-82.4278,-121.743,4.80107,0.34543,-1.37646,1.4964 +units=m +no_defs <> You can see that the parameters are not the same. There are more parameter sets around and that's actually the reason why Proj4 comes or at least used to come without any parameters because none of the sets was authorized. The results of these transformations are rather close and accurate to about one meter. You can read also http://latuviitta.org/documents/YKJ-TM35FIN_muunnos_ogr2ogr_cs2cs.txt (in Finnish, I suppose it is not a problem for you). -Jukka Rahkonen- Pena Kupen wrote: > Hello all, > Last time I was successfully helped by Ralf - Thank's once more time! http://postgis.refractions.net/pipermail/postgis-users/2011-March/029055.html > Now I have same type of problem, but I cannot get correct result. Table is: CREATE TABLE location ( location_id integer NOT NULL, coord geometry ); Data is in coord column as 2393 format. My sql is like: select y(location.coord) as y_ykj, x(location.coord) as x_ykj, y(ST_Transform(location.coord,4326)) as y_wgs84, x(ST_Transform(location.coord,4326)) as x_wgs84 from location where location_id = 'AAA123A' result for y_ykj and x_ykj are ok, but point of x_wgs84 and y_wgs84 are about 180meters too much in east. -Pena -- Wippies-vallankumous on t??ll?! Varmista paikkasi vallankumouksen eturintamassa ja liity Wippiesiin heti! http://www.wippies.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------ Message: 2 Date: Mon, 25 Jul 2011 00:14:20 -0400 From: Mihaela Caluian Subject: [mapserver-users] Question: loadWeb(): Unknown identifier. Parsing error near (ms_tmp):(line 36) To: mapserver-users at lists.osgeo.org Message-ID: Content-Type: text/plain; charset="iso-8859-1" Hello everybody, I am very new to MapServer and I have a lots of problem that I cannot find answer. Currently I am having trouble to figure out what is wrong with my .map files. I am getting this error when I try to click the button to load the map file: loadWeb(): Unknown identifier. Parsing error near (ms_tmp):(line 49) msOutputFormatValidate(): General error message. OUTPUTFORMAT png has IMAGEMODE RGB/RGBA, which is not supported for GD drivers. When I installed for the first time MapServer everything works, but I had to reinstall it and I cannot even see my work now. I am using Windows Vista and MapServer MS4W - MapServer 4 Windows - version 3.0.3: (This is my first time when I am working with MapServer, actually I am learning it.) The map file that I tried to open is: MAP NAME "Rail" # Map image size SIZE 600 400 UNITS meters EXTENT -132.193287 28.711430 -50.854471 74.207982 FONTSET 'c:/wwwroot/fonts/fontset.txt' SYMBOLSET 'c:/wwwroot/symbols/symbols.txt' PROJECTION 'proj=longlat' 'ellps=WGS84' 'towgs84=0,0,0,0,0,0,0' 'no_defs' END # Background color for the map canvas -- change as desired IMAGECOLOR 255 255 255 IMAGEQUALITY 95 IMAGETYPE png OUTPUTFORMAT NAME png DRIVER 'GD/PNG' MIMETYPE 'image/png' IMAGEMODE RGBA EXTENSION 'png' END # Legend LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # Web interface definition. Only the template parameter # is required to display a map. See MapServer documentation WEB # Set IMAGEPATH to the path where MapServer should # write its output. IMAGEPATH "\ms4w\tmp\ms_tmp\" # Set IMAGEURL to the url that points to IMAGEPATH # as defined in your web server configuration IMAGEURL "/ms_tmp/" # WMS server settings METADATA 'ows_title' 'Rail' 'ows_onlineresource' ' http://localhost/cgi-bin/mapserv.exe?map=C:/wwwroot/assignment3/rail.map' 'ows_srs' 'EPSG:4326' END #Scale range at which web interface will operate # Template and header/footer settings # Only the template parameter is required to display a map. See MapServer documentation TEMPLATE 'rail.html' END LAYER NAME 'Rails' TYPE LINE DUMP true TEMPLATE fooOnlyForWMSGetFeatureInfo EXTENT -132.193287 28.711430 -50.854471 74.207982 DATA 'C:\wwwroot\assignment3\rails.shp' METADATA 'ows_title' 'Rails' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION 'proj=longlat' 'ellps=WGS84' 'towgs84=0,0,0,0,0,0,0' 'no_defs' END CLASS NAME 'Rails' STYLE WIDTH 2 COLOR 146 154 155 END END END END Please, if somebody can help me I will really appreciate. I tried so many times and now I really don't know what to do more. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110725/17503ec1/attachment-0001.html ------------------------------ Message: 3 Date: Sun, 24 Jul 2011 23:30:04 -0500 From: Steve Lime Subject: Re: [mapserver-users] Question: loadWeb(): Unknown identifier. Parsing error near (ms_tmp):(line 36) To: Mihaela Caluian Cc: mapserver-users at lists.osgeo.org Message-ID: Content-Type: text/plain; charset="iso-8859-1" In MapServer 6.0, the GD driver can only produce 8-bit output so your output format is invalid. Try commenting it out and see what happens. I believe you can leave "IMAGETYPE png" in place and you'll get AGG-based, 8-bit output. Should look much nicer. Steve On Sun, Jul 24, 2011 at 11:14 PM, Mihaela Caluian wrote: > Hello everybody, > > I am very new to MapServer and I have a lots of problem that I cannot find > answer. > > Currently I am having trouble to figure out what is wrong with my .map > files. I am getting this error when I try to click the button to load the > map file: > > loadWeb(): Unknown identifier. Parsing error near (ms_tmp):(line 49) > msOutputFormatValidate(): General error message. OUTPUTFORMAT png has > IMAGEMODE RGB/RGBA, which is not supported for GD drivers. > > When I installed for the first time MapServer everything works, but I had > to reinstall it and I cannot even see my work now. > > I am using Windows Vista and MapServer MS4W - MapServer 4 Windows - version > 3.0.3: (This is my first time when I am working with MapServer, actually I > am learning it.) > > The map file that I tried to open is: > > MAP > NAME "Rail" > # Map image size > SIZE 600 400 > UNITS meters > EXTENT -132.193287 28.711430 -50.854471 74.207982 > FONTSET 'c:/wwwroot/fonts/fontset.txt' > SYMBOLSET 'c:/wwwroot/symbols/symbols.txt' > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'towgs84=0,0,0,0,0,0,0' > 'no_defs' > END > # Background color for the map canvas -- change as desired > IMAGECOLOR 255 255 255 > IMAGEQUALITY 95 > IMAGETYPE png > OUTPUTFORMAT > NAME png > DRIVER 'GD/PNG' > MIMETYPE 'image/png' > IMAGEMODE RGBA > EXTENSION 'png' > END > # Legend > LEGEND > IMAGECOLOR 255 255 255 > STATUS ON > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > END > # Web interface definition. Only the template parameter > # is required to display a map. See MapServer documentation > WEB > # Set IMAGEPATH to the path where MapServer should > # write its output. > IMAGEPATH "\ms4w\tmp\ms_tmp\" > # Set IMAGEURL to the url that points to IMAGEPATH > # as defined in your web server configuration > IMAGEURL "/ms_tmp/" > # WMS server settings > METADATA > 'ows_title' 'Rail' > 'ows_onlineresource' ' > http://localhost/cgi-bin/mapserv.exe?map=C:/wwwroot/assignment3/rail.map' > 'ows_srs' 'EPSG:4326' > END > #Scale range at which web interface will operate > # Template and header/footer settings > # Only the template parameter is required to display a map. See > MapServer documentation > TEMPLATE 'rail.html' > END > LAYER > NAME 'Rails' > TYPE LINE > DUMP true > TEMPLATE fooOnlyForWMSGetFeatureInfo > EXTENT -132.193287 28.711430 -50.854471 74.207982 > DATA 'C:\wwwroot\assignment3\rails.shp' > METADATA > 'ows_title' 'Rails' > END > STATUS DEFAULT > TRANSPARENCY 100 > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'towgs84=0,0,0,0,0,0,0' > 'no_defs' > END > CLASS > NAME 'Rails' > STYLE > WIDTH 2 > COLOR 146 154 155 > END > END > END > END > > Please, if somebody can help me I will really appreciate. I tried so many > times and now I really don't know what to do more. > > Thanks. > > > _______________________________________________ > 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: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110724/e87a2a06/attachment-0001.html ------------------------------ Message: 4 Date: Mon, 25 Jul 2011 08:54:03 +0300 (EEST) From: Pena Kupen Subject: Fw: Re: [mapserver-users] How to convert from 2393(Finish YKJ) to 4326 (WGS84) To: mapserver-users at lists.osgeo.org Message-ID: <1134235633.2761311573244115.JavaMail.kupen at wippies.fi> Content-Type: text/plain; Charset=iso-8859-1; Format=Flowed Thank's Jukka, On my spatial_ref_sys-table, there is proj4text like: +proj=tmerc +lat_0=0 +lon_0=27 +k=1.000000 +x_0=3500000 +y_0=0 +ellps=intl +units=m +no_defs So towgs84-parameter is missing. > If it is not, update the record. > It this safe? Can it affect with unwanted result somewhere? >You can read also http://latuviitta.org/documents/YKJ-TM35FIN_muunnos_ogr2ogr_cs2cs.txt (in Finnish, I suppose it is not a problem for you). > Yeps, language not, but understanding is something else ;-) -Pena Rahkonen Jukka [Jukka.Rahkonen at mmmtike.fi] kirjoitti: > Hi, > > I suppose that towgs84 parameters are missing. You can check this with psql: > > select proj4text from spatial_ref_sys where srid=2393; > > The result should be close to > +proj=tmerc +lat_0=0 +lon_0=27 +k=1.000000 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-90.7,-106.1,-119.2,4.09,0.218,-1.05,1.37 +units=m +no_defs > If it is not, update the record. > > A related thing is that Mapserver epsg text file often comes without towgs84 parameters for the Finnish KKJ zones. This is what I seem to have on this computer: > KKJ / Finland Uniform Coordinate System > <2393> +proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-96.0617,-82.4278,-121.743,4.80107,0.34543,-1.37646,1.4964 +units=m +no_defs <> > > You can see that the parameters are not the same. There are more parameter sets around and that's actually the reason why Proj4 comes or at least used to come without any parameters because none of the sets was authorized. The results of these transformations are rather close and accurate to about one meter. You can read also http://latuviitta.org/documents/YKJ-TM35FIN_muunnos_ogr2ogr_cs2cs.txt (in Finnish, I suppose it is not a problem for you). > > -Jukka Rahkonen- > > Pena Kupen wrote: > > > Hello all, > > > Last time I was successfully helped by Ralf - Thank's once more time! > http://postgis.refractions.net/pipermail/postgis-users/2011-March/029055.html > > > Now I have same type of problem, but I cannot get correct result. > > Table is: > CREATE TABLE location ( > location_id integer NOT NULL, > coord geometry > ); > > Data is in coord column as 2393 format. > > My sql is like: > select > y(location.coord) as y_ykj, > x(location.coord) as x_ykj, > y(ST_Transform(location.coord,4326)) as y_wgs84, > x(ST_Transform(location.coord,4326)) as x_wgs84 > from location where location_id = 'AAA123A' > > result for y_ykj and x_ykj are ok, but point of x_wgs84 and y_wgs84 are about 180meters too much in east. > > -Pena > > -- Wippies-vallankumous on t??ll?! Varmista paikkasi vallankumouksen eturintamassa ja liity Wippiesiin heti! http://www.wippies.com/ ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 42, Issue 60 *********************************************** From jk.chen at sdl.usu.edu Tue Jul 26 13:15:05 2011 From: jk.chen at sdl.usu.edu (jk) Date: Tue, 26 Jul 2011 13:15:05 -0700 (PDT) Subject: [mapserver-users] map server a tile server Message-ID: <1311711305730-6623555.post@n2.nabble.com> Hi, I'm not very clear about the concept of map server v.s. tile server. Can a map server be used as a mip server? Is that a normal way of doing tile server. Here is what I have, I have a collection of NATIF files that I need to serve them in a map client (in OpenLayers, via WMS), sevring these cadrg files as base map. In other words, these CADRG files together is the base map. Clients will zoom, in and out, pam, and so on. How do I make a base map? Use Map Server? Use gdaltinex commnad? shpe file? And, I need it to serve with WMS commands Anyone please help with your idea. Thanks. JK -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/map-server-a-tile-server-tp6623555p6623555.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Bob.Basques at ci.stpaul.mn.us Tue Jul 26 13:22:51 2011 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Tue, 26 Jul 2011 15:22:51 -0500 Subject: [mapserver-users] map server a tile server In-Reply-To: <1311711305730-6623555.post@n2.nabble.com> References: <1311711305730-6623555.post@n2.nabble.com> Message-ID: <4E2EDBCB020000A80002C895@heckle> JK, Think of MapServer as a Map rendering Engine. Tile services can be consumed by a MapServer instance. MapServer can render a single tile from many smaller one, and/or request tiles from a tile collection or service to fill a Bound Box of interest for the user. MapServer can also reproject data from one coordinate system to another on the fly during the request process. OpenLayers (and other Clients, like GeoMoose, MapFish, etc,) act as a User client to make the requests of Mapserver for display. bobb >>> jk wrote: Hi, I'm not very clear about the concept of map server v.s. tile server. Can a map server be used as a mip server? Is that a normal way of doing tile server. Here is what I have, I have a collection of NATIF files that I need to serve them in a map client (in OpenLayers, via WMS), sevring these cadrg files as base map. In other words, these CADRG files together is the base map. Clients will zoom, in and out, pam, and so on. How do I make a base map? Use Map Server? Use gdaltinex commnad? shpe file? And, I need it to serve with WMS commands Anyone please help with your idea. Thanks. JK -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/map-server-a-tile-server-tp6623555p6623555.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 Bob.Basques at ci.stpaul.mn.us Tue Jul 26 13:25:44 2011 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Tue, 26 Jul 2011 15:25:44 -0500 Subject: [mapserver-users] map server a tile server In-Reply-To: <1311711305730-6623555.post@n2.nabble.com> References: <1311711305730-6623555.post@n2.nabble.com> Message-ID: <4E2EDC78020000A80002C89B@heckle> The latest release of Mapserver can also act as a tile server as well, see here: http://mapserver.org/output/tile_mode.html bobb >>> jk wrote: Hi, I'm not very clear about the concept of map server v.s. tile server. Can a map server be used as a mip server? Is that a normal way of doing tile server. Here is what I have, I have a collection of NATIF files that I need to serve them in a map client (in OpenLayers, via WMS), sevring these cadrg files as base map. In other words, these CADRG files together is the base map. Clients will zoom, in and out, pam, and so on. How do I make a base map? Use Map Server? Use gdaltinex commnad? shpe file? And, I need it to serve with WMS commands Anyone please help with your idea. Thanks. JK -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/map-server-a-tile-server-tp6623555p6623555.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 woodbri at swoodbridge.com Tue Jul 26 13:22:50 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 26 Jul 2011 16:22:50 -0400 Subject: [mapserver-users] map server a tile server In-Reply-To: <1311711305730-6623555.post@n2.nabble.com> References: <1311711305730-6623555.post@n2.nabble.com> Message-ID: <4E2F221A.30306@swoodbridge.com> On 7/26/2011 4:15 PM, jk wrote: > Hi, > > I'm not very clear about the concept of map server v.s. tile server. Can a > map server be used as a mip server? Is that a normal way of doing tile > server. > > Here is what I have, > > I have a collection of NATIF files that I need to serve them in a map client > (in OpenLayers, via WMS), sevring these cadrg files as base map. In other > words, these CADRG files together is the base map. Clients will zoom, in > and out, pam, and so on. > > How do I make a base map? Use Map Server? Use gdaltinex commnad? shpe file? > And, I need it to serve with WMS commands > > Anyone please help with your idea. Here is one basic scenario. part of your confusion might be because tile means different thing s in different contexts. 1. use gdaltindex to create a tileindex that can be used by mapserver. The tile index basically lets mapserver deal with your collection of files a a single virtual layer. 2. create a mapfile to display your base layer using the tileindex and make the mapfile support WMS requests. * at this point you should be able to setup OpenLayers as a WMS layer can display your base layer. This might be enough for you, but is rendering the base layer is too slow, then you can look at ways to optimize the performance and/or you can setup a tile cache server that uses the mapserver WMS to seed the tilecache as needed. This requires a lot more disk space, but once the tiles are in the cache they serve and load very fast like google. 3. look at mod_geocache if you want to setup a tilecache. All you would need to do on Linux is download the source, compile it, install it in apache2 and edit the config file and it has a demo mode if you add it to the config http://yourhost/geocache/demo and it will generate a simple OpenLayers app the displays your tile from the cache as a baselayer. -Steve W From jk.chen at sdl.usu.edu Tue Jul 26 13:38:33 2011 From: jk.chen at sdl.usu.edu (jk) Date: Tue, 26 Jul 2011 13:38:33 -0700 (PDT) Subject: [mapserver-users] Re: map server a tile server In-Reply-To: <4E2F221A.30306@swoodbridge.com> References: <1311711305730-6623555.post@n2.nabble.com> <4E2F221A.30306@swoodbridge.com> Message-ID: <1311712713568-6623638.post@n2.nabble.com> Steve, Thanks. Two more questions, How do servers handle different zoom levels? Do I need to have a different base map for a pariticular zoom level? And, how to make the binding happen? I mean a zoom level binds to a particular shape file? and, when users pam, tiles will be requested; do I need to do anything so that the map server will serve those tiles (and only those tiles)...Is it automatic already? Thanks. JK -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/map-server-a-tile-server-tp6623555p6623638.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jk.chen at sdl.usu.edu Tue Jul 26 14:53:47 2011 From: jk.chen at sdl.usu.edu (jk) Date: Tue, 26 Jul 2011 14:53:47 -0700 (PDT) Subject: [mapserver-users] Re: map server a tile server In-Reply-To: <4E2EDC78020000A80002C89B@heckle> References: <1311711305730-6623555.post@n2.nabble.com> <4E2EDC78020000A80002C89B@heckle> Message-ID: <1311717227017-6623914.post@n2.nabble.com> Does the tile-mode support WMS syntax of addressing scheme? The document mentions Google and Virtual Earth, but not WMS addressing scheme. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/map-server-a-tile-server-tp6623555p6623914.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at swoodbridge.com Tue Jul 26 20:12:12 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 26 Jul 2011 23:12:12 -0400 Subject: [mapserver-users] Re: map server a tile server In-Reply-To: <1311712713568-6623638.post@n2.nabble.com> References: <1311711305730-6623555.post@n2.nabble.com> <4E2F221A.30306@swoodbridge.com> <1311712713568-6623638.post@n2.nabble.com> Message-ID: <4E2F820C.6030905@swoodbridge.com> On 7/26/2011 4:38 PM, jk wrote: > Steve, > > Thanks. Two more questions, > > How do servers handle different zoom levels? Do I need to have a different > base map for a pariticular zoom level? And, how to make the binding happen? > I mean a zoom level binds to a particular shape file? For rasters, mapserver will automatically resample the data to get the appropriate resolution needed for the request. Look in the mapserver Documentation [1] for how to setup and optimize raster data. There is also docs at the same link [1] from Vector optimizations. For vector data you will often see multiple CLASS objects for a single data layer like streets where each class supports styling for some range of scales. This allows you to turn on/off layers, labeling and change styling like line widths, etc based on the requested image scale. > and, when users pam, tiles will be requested; do I need to do anything so > that the map server will serve those tiles (and only those tiles)...Is it > automatic already? OpenLayers handles this automatically. [1] http://mapserver.org/optimization/index.html#optimization From woodbri at swoodbridge.com Tue Jul 26 20:17:13 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 26 Jul 2011 23:17:13 -0400 Subject: [mapserver-users] Re: map server a tile server In-Reply-To: <1311717227017-6623914.post@n2.nabble.com> References: <1311711305730-6623555.post@n2.nabble.com> <4E2EDC78020000A80002C89B@heckle> <1311717227017-6623914.post@n2.nabble.com> Message-ID: <4E2F8339.6090403@swoodbridge.com> On 7/26/2011 5:53 PM, jk wrote: > Does the tile-mode support WMS syntax of addressing scheme? The document > mentions Google and Virtual Earth, but not WMS addressing scheme. I would not use mode=tile as it is very limited and does not do any caching and does not support metatiles so it has a lat of labeling issues. It was originally implemented to allow Google Maps API users to use mapserver to generate overlay tiles, but mod_geocache does a better job of that now and handles translating multiple different tile request protocols to a single cache of tiles. > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/map-server-a-tile-server-tp6623555p6623914.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 richard.greenwood at gmail.com Wed Jul 27 07:47:34 2011 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Wed, 27 Jul 2011 08:47:34 -0600 Subject: [mapserver-users] Re: Use mapserver CGI with Windows 2008 R2 In-Reply-To: <4E3016B9.9030603@simalis.net> References: <4E3016B9.9030603@simalis.net> Message-ID: Pierre, The mapserver users list is generally the best place to get answers to questions like yours. You can join the list here: http://www.mapserver.org/community/lists.html#mapserver-users I am copying the list with this email in the hope that other users may be able to answer your question. My problems with win2008R2 were with CGI mode which does not involve the use of mapscript.dll so I think your problem is unrelated to the issues that I had. I do know that the version of mapscript.dll must match PHP API version, which can be a challenge. If you can use MS4W in your situation I highly recommend it because it will save you a lot of time. Good luck, Rich On Wed, Jul 27, 2011 at 7:46 AM, Pierre MENU wrote: > Hi Richard, > > I've found your old message about a problem using mapserv cgi with win2008R2 > and it seems to be the same problem i va now. > > I ve tried to install VC++ Redist files (2010)? but mapscript.dll? still > crash php > > Any suggestions are appreciated ! > > Thanks a lot > > Kind Regards > > Pierre MENU > _____________________________________________ > Soci?t? SIMALIS > Tel 33 (0)442 543 424 (Std) > Fax 33 (0)442 575 432 > Email : pmenu at simalis.net > > Serveur S.I.G Collaboratif, visitez http://www.dynmap.com > > > > You wrote : > 2008 R2Does anyone have any tips for setting up mapserv CGI on Windows > Server 2008 R2 ? I got it working on Windows Server 2008 and took good > notes, but R2 has me stumped. I seem to be stuck on Handler Mapping - I > can't find it. Any suggestions are appreciated. > Thanks, Rich > -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From posthumusb at AGR.GC.CA Wed Jul 27 10:04:15 2011 From: posthumusb at AGR.GC.CA (Brad Posthumus) Date: Wed, 27 Jul 2011 10:04:15 -0700 (PDT) Subject: [mapserver-users] MapServer 6 WMS output to 8-bit PNG Message-ID: <1311786255310-6626959.post@n2.nabble.com> I'm trying to get MapServer 6.0.1 to generate 8-bit (paletted) PNGs for the WMS output images, with colour 255 set as transparent. However every attempt appears to result in 24-bit PNGs. My mapfile looks something like this: MAP .. IMAGETYPE PNG8 IMAGECOLOR 255 255 255 .. OUTPUTFORMAT NAME png8 DRIVER "AGG/PNG8" MIMETYPE "image/png; mode=8bit" IMAGEMODE RGBA EXTENSION "png" FORMATOPTION "INTERLACE=off" FORMATOPTION "QUANTIZE_FORCE=on" FORMATOPTION "QUANTIZE_COLORS=256" TRANSPARENT ON END .. END Using these settings results in 24-bit images. I've tested this with MapServer in both Linux and Windows and get the same result. Quantizing is working since it's reducing the number of colours to 256 or less, it's just the image bits-per-pixel which seems to be off. Using IMAGEMODE RGB and removing TRANSPARENT ON doesn't fix it. Maybe it's how I'm viewing the image properties (copying from FireFox and pasting into IrfanView) or perhaps I'm not understanding the OUTPUTFORMAT documentation. Can someone explain either (1) what I'm doing wrong or (2) what I'm misinterpreting (or both)? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/MapServer-6-WMS-output-to-8-bit-PNG-tp6626959p6626959.html Sent from the Mapserver - User mailing list archive at Nabble.com. From MarkVolz at co.lyon.mn.us Wed Jul 27 12:25:57 2011 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Wed, 27 Jul 2011 19:25:57 +0000 Subject: [mapserver-users] display labels as an integer instead of scientific notations. Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA3011F42@swmail01.r8nssis.local> Hello, I have a label that displays a number in scientific notation; for example 2.08+e002. I would like the label to display as an integer such as 2.08. In the past I asked a similar question about HTML templates and someone mentioned that I should use "[item name="area" precision=2]" Unfortunately, the statement seems invalid as a label in the .map file. Does anyone know how I can display a number as an integer? Or will I have to convert all my values to Text? I am using mapserver 5.4 Thanks Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Wed Jul 27 12:54:45 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 27 Jul 2011 15:54:45 -0400 Subject: [mapserver-users] display labels as an integer instead of scientific notations. In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA3011F42@swmail01.r8nssis.local> References: <36CA828A36E29F45B7CF0A1766E5DFA3011F42@swmail01.r8nssis.local> Message-ID: <4E306D05.7080309@mapgears.com> On 11-07-27 03:25 PM, Mark Volz wrote: > Hello, > I have a label that displays a number in scientific notation; for > example 2.08+e002. I would like the label to display as an integer such > as 2.08. In the past I asked a similar question about HTML templates and > someone mentioned that I should use ?[item name="area" precision=2]? > Unfortunately, the statement seems invalid as a label in the .map file. > Does anyone know how I can display a number as an integer? Or will I > have to convert all my values to Text? I am using mapserver 5.4 I don't think there was any way to format numeric labels in version 5.x and older. However, MapServer 6.0 (RFC 64) introduced a toString() function that can be used in labels as follows: TEXT ("[area]") TEXT (tostring([area],"%.2f")) TEXT ("Area is: " + tostring([area],"%.2f")) -- Daniel Morissette http://www.mapgears.com/ Provider of Professional MapServer Support since 2000 From posthumusb at AGR.GC.CA Wed Jul 27 14:21:52 2011 From: posthumusb at AGR.GC.CA (Brad Posthumus) Date: Wed, 27 Jul 2011 14:21:52 -0700 (PDT) Subject: [mapserver-users] Re: MapServer 6 WMS output to 8-bit PNG In-Reply-To: <1311786255310-6626959.post@n2.nabble.com> References: <1311786255310-6626959.post@n2.nabble.com> Message-ID: <1311801712965-6627769.post@n2.nabble.com> The GetMap request was using: format=image/png ...instead of format=image/png; mode=8bit Now I'm getting paletted 8-bit images instead of 24-bit RGB's. Thomas Bonfort wrote: > > I suspect it's the copying from Firefox, your outputformat is correct (and > superfluous, the built-in png8 imagetype does the same) > Thanks for the response. You're right about the copying. It seems most image viewers will assume PNGs are RGB when copying an image from a browser. I had to use PIL in Python to show which WMS output images were 8-bit (mode = 'P') and 24-bit (mode='RGB'). Also, I think we still need the OUTPUTFORMAT section in our mapfiles since we're trying to use RGBA instead of RGB, which the built-in png8 output format uses. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/MapServer-6-WMS-output-to-8-bit-PNG-tp6626959p6627769.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Wed Jul 27 14:28:47 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 27 Jul 2011 21:28:47 +0000 Subject: [mapserver-users] Re: MapServer 6 WMS output to 8-bit PNG In-Reply-To: <1311801712965-6627769.post@n2.nabble.com> References: <1311786255310-6626959.post@n2.nabble.com>, <1311801712965-6627769.post@n2.nabble.com> Message-ID: <84446DEF76453C439E9E97E438E13A63015A52@suutari.haapa.mmm.fi> Hi, You can also send WMS requests with wget instead of a browser, save the result image directly into a file and use gdalinfo for checking the properties. -Jukka Rahkonen- Brad Posthumus wrote: > The GetMap request was using: > format=image/png > ...instead of > format=image/png; mode=8bit > Now I'm getting paletted 8-bit images instead of 24-bit RGB's. >> Thomas Bonfort wrote: >> >> I suspect it's the copying from Firefox, your outputformat is correct (and >> superfluous, the built-in png8 imagetype does the same) >> > Thanks for the response. You're right about the copying. It seems most image > viewers will assume PNGs are RGB when copying an image from a browser. I had > to use PIL in Python to show which WMS output images were 8-bit (mode = 'P') > and 24-bit (mode='RGB'). > Also, I think we still need the OUTPUTFORMAT section in our mapfiles since > we're trying to use RGBA instead of RGB, which the built-in png8 output > format uses. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/MapServer-6-WMS-output-to-8-bit-PNG-tp6626959p6627769.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 jk.chen at sdl.usu.edu Wed Jul 27 15:00:12 2011 From: jk.chen at sdl.usu.edu (jk) Date: Wed, 27 Jul 2011 15:00:12 -0700 (PDT) Subject: [mapserver-users] Re: map server a tile server In-Reply-To: <4E2F8339.6090403@swoodbridge.com> References: <1311711305730-6623555.post@n2.nabble.com> <4E2EDC78020000A80002C89B@heckle> <1311717227017-6623914.post@n2.nabble.com> <4E2F8339.6090403@swoodbridge.com> Message-ID: <1311804012044-6627916.post@n2.nabble.com> Thanks Steve, I'm able to use your instructions, use gdatindex, map file, and create a tile index. Also after adding Wms to the map file, map server is now wms-serving . I noticed slowness in some cases. I am able to change the bbox values and map server serves the right image, making ones if the bbox values crossing static tiles. so, that's VERY good. Thanks a lot for your help. JK -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/map-server-a-tile-server-tp6623555p6627916.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jk.chen at sdl.usu.edu Wed Jul 27 15:08:04 2011 From: jk.chen at sdl.usu.edu (jk) Date: Wed, 27 Jul 2011 15:08:04 -0700 (PDT) Subject: [mapserver-users] No image is showing, Does the debug message hint something? help Message-ID: <1311804484918-6627941.post@n2.nabble.com> Hi, I have a bunch of CIB files (miliatry files, 5 meter resolution) that display in OpenEV without any problem. But when my map sever tries to serve those tiles, there is nothing showing. Blank in the display. I was able to serve other files using the same tiling process... Here is the Debug 5 level message. Do you see anything odd? So strange, there is nothing showing. [Wed Jul 27 15:37:34 2011].328000 msWMSLoadGetMapParams(): enabling non-square pixels. [Wed Jul 27 15:37:34 2011].329000 msDrawMap(): kicking into non-square pixel preserving mode. [Wed Jul 27 15:37:34 2011].330000 msDrawMap(): WMS/WFS set-up and query, 0.001s [Wed Jul 27 15:37:34 2011].330000 msDrawMap(): Drawing Label Cache, 0.000s [Wed Jul 27 15:37:34 2011].330000 msDrawMap() total time: 0.002s [Wed Jul 27 15:37:34 2011].365000 msSaveImage() total time: 0.035s [Wed Jul 27 15:37:34 2011].365000 mapserv request processing time (msLoadMap not incl.): 0.037s [Wed Jul 27 15:37:34 2011].365000 msFreeMap(): freeing map at 0176D1E0. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/No-image-is-showing-Does-the-debug-message-hint-something-help-tp6627941p6627941.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jk.chen at sdl.usu.edu Wed Jul 27 15:23:56 2011 From: jk.chen at sdl.usu.edu (jk) Date: Wed, 27 Jul 2011 15:23:56 -0700 (PDT) Subject: [mapserver-users] Re: No image is showing, Does the debug message hint something? help In-Reply-To: <1311804484918-6627941.post@n2.nabble.com> References: <1311804484918-6627941.post@n2.nabble.com> Message-ID: <1311805436244-6627983.post@n2.nabble.com> oops. never mind. I put in EXTENT values into layer defintion and it has been working. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/No-image-is-showing-Does-the-debug-message-hint-something-help-tp6627941p6627983.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jk.chen at sdl.usu.edu Wed Jul 27 16:20:06 2011 From: jk.chen at sdl.usu.edu (jk) Date: Wed, 27 Jul 2011 16:20:06 -0700 (PDT) Subject: [mapserver-users] It takes more than 2 minutes for my map server to generate a world map Message-ID: <1311808806168-6628127.post@n2.nabble.com> Hi, I have a tile system of 4659 tiles, each is a 5 meter resolution raster image a particular spot in the world (as you know it is sparse, the collection of tiles do not cover the enter world). When I asking for a map of the world (ie, high-level view, a bbox with values close to the lonlat boundary of the world), my map server consistently takes long time to finish, (close to 2.5 minutes, yeah, minutes, not seconds). This is very slow. If I submit a bbox that matches a particular tile, the map is returned instantly. How could it take so long to generate the world map? How to fix that? Anything I'm missing? Any idea? I'm not using tile cache yet. But I think 2.5 minutes for world view is way too slow. Something must be wrong. If you know of any clues, let me know. Thanks for your help. JK -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/It-takes-more-than-2-minutes-for-my-map-server-to-generate-a-world-map-tp6628127p6628127.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sdlime at gmail.com Wed Jul 27 19:14:45 2011 From: sdlime at gmail.com (Steve Lime) Date: Wed, 27 Jul 2011 21:14:45 -0500 Subject: [mapserver-users] Possible Bug? use Style with Offset and Color from DB twice in one class section In-Reply-To: References: Message-ID: <59E3A56A-BDB5-4676-BF89-1018DE2129FB@gmail.com> What version? I remember fixing something like this at one point... Steve Sent from my iPad On Jul 26, 2011, at 4:13 AM, "Ralf Trier" wrote: > Hello, > > I want to draw two parallel lines to baselines from a database. The > parallel lines should be drawn with the color set in the db. > > Part of my map file: > > LAYER > NAME "tttt" > TYPE LINE > PROJECTION > "init=epsg:900913" > END > STATUS DEFAULT > CONNECTIONTYPE postgis > CONNECTION "host=192.168.1.10 dbname=xxx user=xxx" > DATA "way from (select id, color01, color02, way from myTable) > as foo using unique id using srid=900913" > SIZEUNITS pixels > CLASS > STYLE > OFFSET 5 -99 > COLOR [color01] > WIDTH 10 > LINECAP square > END > STYLE > OFFSET -5 -99 > COLOR [color02] > WIDTH 10 > LINECAP square > END > END > END > > Strange think happens. The first parallel line is drawn with the > expected color. The second line (second style instruction) will be drawn > in a random color seems to come from another line. The color (second > line) will change depending form the scale. > > Any ideas? > > Thanks > Ralf > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From sdlime at gmail.com Wed Jul 27 19:24:20 2011 From: sdlime at gmail.com (Steve Lime) Date: Wed, 27 Jul 2011 21:24:20 -0500 Subject: [mapserver-users] It takes more than 2 minutes for my map server to generate a world map In-Reply-To: <1311808806168-6628127.post@n2.nabble.com> References: <1311808806168-6628127.post@n2.nabble.com> Message-ID: I may be missing something but it sounds like you're drawing all 4659 images which would take a long time. Sorta defeats the purpose of tiling. Perhaps you could create some derived images at a reduced resolution to use in these cases instead of hitting the tiles. You'd use multiple layers with min/max scale values to control what's used. -Steve Sent from my iPad On Jul 27, 2011, at 6:20 PM, jk wrote: > Hi, > > I have a tile system of 4659 tiles, each is a 5 meter resolution raster > image a particular spot in the world (as you know it is sparse, the > collection of tiles do not cover the enter world). > > When I asking for a map of the world (ie, high-level view, a bbox with > values close to the lonlat boundary of the world), my map server > consistently takes long time to finish, (close to 2.5 minutes, yeah, > minutes, not seconds). This is very slow. > > If I submit a bbox that matches a particular tile, the map is returned > instantly. > > How could it take so long to generate the world map? > > How to fix that? > > Anything I'm missing? Any idea? > > I'm not using tile cache yet. But I think 2.5 minutes for world view is way > too slow. Something must be wrong. > > If you know of any clues, let me know. > > Thanks for your help. > > JK > > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/It-takes-more-than-2-minutes-for-my-map-server-to-generate-a-world-map-tp6628127p6628127.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 woodbri at swoodbridge.com Wed Jul 27 20:35:49 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 27 Jul 2011 23:35:49 -0400 Subject: [mapserver-users] Re: map server a tile server In-Reply-To: <1311804012044-6627916.post@n2.nabble.com> References: <1311711305730-6623555.post@n2.nabble.com> <4E2EDC78020000A80002C89B@heckle> <1311717227017-6623914.post@n2.nabble.com> <4E2F8339.6090403@swoodbridge.com> <1311804012044-6627916.post@n2.nabble.com> Message-ID: <4E30D915.8070905@swoodbridge.com> On 7/27/2011 6:00 PM, jk wrote: > Thanks Steve, I'm able to use your instructions, use gdatindex, map file, and > create a tile index. Also after adding Wms to the map file, map server is > now wms-serving . I noticed slowness in some cases. Oh, I forgot to mention that you should probably build internal overviews to speed up sampling. This is typically done like: gdaladdo average abc.tif 2 4 8 16 32 64 128 256 this should improve performance went you need to resample the images based on scale. It will use more diskspace. -Steve W > I am able to change the bbox values and map server serves the right image, > making ones if the bbox values crossing static tiles. so, that's VERY good. > Thanks a lot for your help. > > > JK > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/map-server-a-tile-server-tp6623555p6627916.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 takeshi at dgtech.co.jp Wed Jul 27 20:19:38 2011 From: takeshi at dgtech.co.jp (MICHIMOTO Takeshi) Date: Thu, 28 Jul 2011 12:19:38 +0900 Subject: [mapserver-users] How do I add some style block to the label block by mapscript? In-Reply-To: References: <1311808806168-6628127.post@n2.nabble.com> Message-ID: <20110728121855.A47D.6BB9D913@dgtech.co.jp> I use MapServer6.0.1 and mapscript6.0.1 for Java. How do I add some style block to the label block by mapscript? as like, for example, in mapfile: LABEL ... STYLE # a shadow GEOMTRANSFORM 'labelpoly' COLOR 222 222 222 OFFSET 2 2 END STYLE # bbox GEOMTRANSFORM 'labelpoly' COLOR 255 255 255 OUTLINECOLOR 0 0 0 END END Sorry, my bad English. Thanks for your help. From Ralf.Trier at logos-ib.de Wed Jul 27 22:57:06 2011 From: Ralf.Trier at logos-ib.de (Ralf Trier) Date: Thu, 28 Jul 2011 07:57:06 +0200 Subject: [mapserver-users] Possible Bug? use Style with Offset and Colorfrom DB twice in one class section In-Reply-To: <13B9A5AAF3B544238B048823C1901F0C@LogosIB.local> References: <13B9A5AAF3B544238B048823C1901F0C@LogosIB.local> Message-ID: Hi Steve, I use Version 6.0.0. Ralf > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] Im Auftrag von Steve Lime > Gesendet: Donnerstag, 28. Juli 2011 06:02 > An: Ralf Trier > Cc: mapserver-users at lists.osgeo.org > Betreff: Re: [mapserver-users] Possible Bug? use Style with Offset and > Colorfrom DB twice in one class section > > What version? I remember fixing something like this at one point... > Steve > > Sent from my iPad > > On Jul 26, 2011, at 4:13 AM, "Ralf Trier" > wrote: > > > Hello, > > > > I want to draw two parallel lines to baselines from a database. The > > parallel lines should be drawn with the color set in the db. > > > > Part of my map file: > > > > LAYER > > NAME "tttt" > > TYPE LINE > > PROJECTION > > "init=epsg:900913" > > END > > STATUS DEFAULT > > CONNECTIONTYPE postgis > > CONNECTION "host=192.168.1.10 dbname=xxx user=xxx" > > DATA "way from (select id, color01, color02, way from myTable) > > as foo using unique id using srid=900913" > > SIZEUNITS pixels > > CLASS > > STYLE > > OFFSET 5 -99 > > COLOR [color01] > > WIDTH 10 > > LINECAP square > > END > > STYLE > > OFFSET -5 -99 > > COLOR [color02] > > WIDTH 10 > > LINECAP square > > END > > END > > END > > > > Strange think happens. The first parallel line is drawn with the > > expected color. The second line (second style instruction) will be > drawn > > in a random color seems to come from another line. The color (second > > line) will change depending form the scale. > > > > Any ideas? > > > > Thanks > > Ralf > > > > _______________________________________________ > > 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 yamaday at affrc.go.jp Wed Jul 27 23:30:31 2011 From: yamaday at affrc.go.jp (YAMADA,Yasuharu) Date: Thu, 28 Jul 2011 15:30:31 +0900 Subject: [mapserver-users] How to browse WMS-C layers Message-ID: <4E310207.3010701@affrc.go.jp> Dear all, Does anyone tell me how to browse or handle WMS-C (web map service tiling cache) layers? Can the combination with MapServer and OpenLayers handle WMS-C layer's data? I cannot find any information inside the MapServer-users mailing list archive. -- ------------------------------------------- Yasuharu Yamada From schroeter at netgis.de Thu Jul 28 01:14:16 2011 From: schroeter at netgis.de (Sven Schroeter) Date: Thu, 28 Jul 2011 10:14:16 +0200 Subject: AW: [mapserver-users] MapServer Docs in Android Market In-Reply-To: References: <53BBB3242731418AB1BFCA33FC0DC33C.MAI@w31952.domainxyz.de> Message-ID: <000001cc4cfe$58057aa0$08106fe0$@de> Hi Steve, her is the eclipse project for compiling the app: http://www.netgis.de/download/MapServerDoc.zip In the folder \assets\www is the webapp. You can use it for integrate it into the main page (maybe with a link to the app in the market) Greetings Sven ? Von: Steve Lime [mailto:sdlime at gmail.com] Gesendet: Mittwoch, 20. Juli 2011 17:57 An: schroeter at netgis.de Cc: mapserver-users at lists.osgeo.org Betreff: Re: [mapserver-users] MapServer Docs in Android Market Looks great! How should we integrate into the main website? Steve On Sat, Jul 9, 2011 at 7:11 AM, wrote: Hi all, here's my MapServer docs App for android in the market: https://market.android.com/details?id=com.netgis.mapserver_doc&hl=en Or search on your phone in the market for "mapserver". Greetings Sven _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From stephan.holl at intevation.de Thu Jul 28 01:15:14 2011 From: stephan.holl at intevation.de (Stephan Holl) Date: Thu, 28 Jul 2011 10:15:14 +0200 Subject: [mapserver-users] ArcSDE, Win32 and truncated GetCapabilities Message-ID: <20110728101514.18c2b013@thoe.hq.intevation.de> Dear list, I have an ArcSDE-Layer-based mapfile. When requesting a GetCapabilities-doc in Version 1.1.1 and 1.3.0, the output gets truncated. In 1.0.0 the GetCapabilities-Document is finished though, strange. I am running MapServer 6.1-dev (r11785) on Windows 7 with Apache 2.2.19 against ArcSDE 9.3.1. I found some quite old issues[1],[2] which seem to have the same problem, but apparently they are fixed. Are there any known issues? TIA Best regards Stephan [1] http://trac.osgeo.org/mapserver/ticket/767 [2] http://trac.osgeo.org/mapserver/ticket/779 -- 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: 198 bytes Desc: not available URL: From thunderlion at yandex.ru Thu Jul 28 05:03:31 2011 From: thunderlion at yandex.ru (Gleb Kosolapov) Date: Thu, 28 Jul 2011 16:03:31 +0400 Subject: [mapserver-users] Multiple styles in STYLEITEM Message-ID: <72341311854611@web34.yandex.ru> Hi, everyone! I try to use variable styles for objects in Oracle DB. To show railroads I have to use styles like that: STYLE COLOR 102 102 102 WIDTH 4.0 END STYLE COLOR 255 255 255 WIDTH 2.0 LINECAP BUTT PATTERN 8 12 END END If I store it in table field MS_STYLE I must define this layer: LAYER NAME 'railroad' STATUS ON TYPE LINE PROJECTION "init=epsg:4326" END CONNECTIONTYPE oraclespatial CONNECTION "***/***@****" DATA "SHAPE FROM FGIS_DATA USING SRID 8307" FILTER "(CATEGORYID = 41 and GTYPE in (2,6))" STYLEITEM "MS_STYLE" CLASS NAME 'railroad' END PROCESSING "CLOSE_CONNECTION=DEFER" END But MapServer reads only the first definition of STYLE (without pattern). Is there another way to make it work? Regards, Gleb From szekerest at gmail.com Thu Jul 28 05:07:20 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 28 Jul 2011 14:07:20 +0200 Subject: [mapserver-users] Multiple styles in STYLEITEM In-Reply-To: <72341311854611@web34.yandex.ru> References: <72341311854611@web34.yandex.ru> Message-ID: Hi Gleb, You may probably encapsulate multiple styles in a CLASS definition. Best regards, Tamas 2011/7/28 Gleb Kosolapov > Hi, everyone! > > I try to use variable styles for objects in Oracle DB. > To show railroads I have to use styles like that: > STYLE > COLOR 102 102 102 > WIDTH 4.0 > END > STYLE > COLOR 255 255 255 > WIDTH 2.0 > LINECAP BUTT > PATTERN 8 12 END > END > > If I store it in table field MS_STYLE I must define this layer: > LAYER > NAME 'railroad' > STATUS ON > TYPE LINE > PROJECTION > "init=epsg:4326" > END > CONNECTIONTYPE oraclespatial > CONNECTION "***/***@****" > DATA "SHAPE FROM FGIS_DATA USING SRID 8307" > FILTER "(CATEGORYID = 41 and GTYPE in (2,6))" > > STYLEITEM "MS_STYLE" > CLASS > NAME 'railroad' > END > > PROCESSING "CLOSE_CONNECTION=DEFER" > END > > But MapServer reads only the first definition of STYLE (without pattern). > Is there another way to make it work? > > Regards, Gleb > _______________________________________________ > 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 thunderlion at yandex.ru Thu Jul 28 05:22:26 2011 From: thunderlion at yandex.ru (Gleb Kosolapov) Date: Thu, 28 Jul 2011 16:22:26 +0400 Subject: [mapserver-users] Multiple styles in STYLEITEM In-Reply-To: References: <72341311854611@web34.yandex.ru> Message-ID: <84091311855746@web120.yandex.ru> An HTML attachment was scrubbed... URL: From listensammler at patzi.de Thu Jul 28 05:26:37 2011 From: listensammler at patzi.de (Fabian Patzke 2) Date: Thu, 28 Jul 2011 05:26:37 -0700 (PDT) Subject: [mapserver-users] Get Map Request with SLD Parameter and local SLD file not via http Message-ID: <1311855997401-6629653.post@n2.nabble.com> Hi List, I tried to make a getMap request and send mapserver (6.0.1) a url (http) to the SLD. This works as expected mapserver fetches the SLD and print the map as defined in the SLD. The SLD is fetched from an application running in tomcat 6.x. The Problem is that every getMap request creates a new session and so I have a huge number of sessions just from every mapserver request. So I tried to make send the SLD as a path to a local file mapserver can reach, just like the mapfile itself. So the SLD parameter looks like this SLD=file:///home/user/tomcat6/temp/sld_4997.xml the hole request: http://localhost/cgi-bin/mapserv?map=/home/user/tomcat6/temp/web.map&LAYERS=flk&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SLD=file:///home/user/tomcat6/temp/sld_4997.xml&SRS=EPSG%3A25832&BBOX=572178.49459,5700398.1267994,577747.883339,5704136.2447176&WIDTH=958&HEIGHT=643 With this mapserver is not returning any map image but an error. In the log file it says: [Thu Jul 28 14:12:15 2011] [error] [client 127.0.0.1] CGI Request 1 on process 8224 [Thu Jul 28 14:12:15 2011] [error] [client 127.0.0.1] msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with curl error code 0 () for file:///home/user/tomcat6/temp/sld_4997.xml [Thu Jul 28 14:12:15 2011] [error] [client 127.0.0.1] msSLDApplySLDURL: WMS server error. Could not open SLD file:///home/user/tomcat6/temp/sld_4997.xml and save it in temporary file /home/user/tomcat6/temp/4e31521f_2020_0.sld.xml. Please make sure that the sld url is valid and that the temporary path is set. The temporary path can be defined for example by setting TMPPATH in the map file. Please check the MapServer documentation on temporary path settings. [Thu Jul 28 14:12:15 2011] [error] [client 127.0.0.1] msFreeMap(): freeing map at 0x8262178. "curl error code 0" means as far as I know everything is OK. Also the file mapserver is complaining about that it can not be written (home/user/tomcat6/temp/4e31521f_2020_0.sld.xml) is created and has the same content as the original SLD file. So mapserver can read the SLD and write its temp one. But somewhere it stops with creating the map image. I hope someone can understand my problem and maybe give me some hint. Thanks in advance. Greetings, Fabian PS: The error says one has to take care of "setting TMPPATH" but this must be "TEMPPATH", mustn't it? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Get-Map-Request-with-SLD-Parameter-and-local-SLD-file-not-via-http-tp6629653p6629653.html Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at gmail.com Thu Jul 28 06:11:42 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 28 Jul 2011 15:11:42 +0200 Subject: [mapserver-users] Multiple styles in STYLEITEM In-Reply-To: <84091311855746@web120.yandex.ru> References: <72341311854611@web34.yandex.ru> <84091311855746@web120.yandex.ru> Message-ID: I mean you can place class definitions to the database as style strings according to: http://mapserver.org/development/rfc/ms-rfc-61.html#supported-style-representations Best regards, Tamas 2011/7/28 Gleb Kosolapov > Yes, I can encapsulate multiple styles in a CLASS definition, but I need > to take it from database. > > 28.07.2011, 16:07, "Tamas Szekeres" : > > Hi Gleb, > > You may probably encapsulate multiple styles in a CLASS definition. > > Best regards, > > Tamas > > > > 2011/7/28 Gleb Kosolapov > > Hi, everyone! > > I try to use variable styles for objects in Oracle DB. > To show railroads I have to use styles like that: > STYLE > COLOR 102 102 102 > WIDTH 4.0 > END > STYLE > COLOR 255 255 255 > WIDTH 2.0 > LINECAP BUTT > PATTERN 8 12 END > END > > If I store it in table field MS_STYLE I must define this layer: > LAYER > NAME 'railroad' > STATUS ON > TYPE LINE > PROJECTION > "init=epsg:4326" > END > CONNECTIONTYPE oraclespatial > CONNECTION "***/***@****" > DATA "SHAPE FROM FGIS_DATA USING SRID 8307" > FILTER "(CATEGORYID = 41 and GTYPE in (2,6))" > > STYLEITEM "MS_STYLE" > CLASS > NAME 'railroad' > END > > PROCESSING "CLOSE_CONNECTION=DEFER" > END > > But MapServer reads only the first definition of STYLE (without pattern). > Is there another way to make it work? > > Regards, Gleb > _______________________________________________ > 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 thunderlion at yandex.ru Thu Jul 28 06:14:47 2011 From: thunderlion at yandex.ru (Gleb Kosolapov) Date: Thu, 28 Jul 2011 17:14:47 +0400 Subject: [mapserver-users] Multiple styles in STYLEITEM In-Reply-To: References: <72341311854611@web34.yandex.ru> <84091311855746@web120.yandex.ru> Message-ID: <82951311858887@web115.yandex.ru> An HTML attachment was scrubbed... URL: From stephane.brunner at camptocamp.com Thu Jul 28 07:18:49 2011 From: stephane.brunner at camptocamp.com (=?ISO-8859-1?Q?St=E9phane_Brunner?=) Date: Thu, 28 Jul 2011 16:18:49 +0200 Subject: [mapserver-users] Problem GetFeature with geom filter on WFS In-Reply-To: References: Message-ID: Hello, I log the sql request on spatial filter and I have this: select "oid","nummer","gemeinde","gueltigkeit","flgrundb","quote","eigentuemer","adresse_lang",encode(ST_AsBinary(ST_Force_2D("geom"),'NDR'),'hex') as geom,"oid" from (SELECT oid, t1.geom, t1.nummer, t2.gemeinde, t1.gueltigkeit1_txt as gueltigkeit, t2.flgrundb, ((t2.zaehler::text || '/'::text) || t2.nenner::text) AS quote, t2.eigentuemer, (((t2.adresse::text || ', '::text) || t2.plz::text) || ' '::text) || t2.ort::text AS adresse_lang FROM av.liegenschaften_liegenschaft_area as t1, av.view_gemlis_geomaste_parzelle as t2 WHERE t1.gdid = t2.gdeid and t1.nummer = t2.parznr::text) AS foo where geom && GeomFromText('POLYGON((620000 218000,620000 278000,690000 278000,690000 218000,620000 218000))',-1) limit 100 I didn't see any postggis filter than I try to do a spatial filter on one of the 100 first results Than I have a correct result ... Than why mapserver doesn't use postgis spatial filter ? Does I miss something ? Thank-you in advance St?phane Brunner 2011/7/26 St?phane Brunner : > Hello, > > I just test it with a shape file, and it's working... > I will investigate a little bit more to know why it's not working with postgres. > > Sincerely > St?phane Brunner > > > 2011/7/25 Steve Lime : >> Never mind on version, I saw 6.0.0 in the response... ;-) Steve >> >> On Mon, Jul 25, 2011 at 6:19 AM, St?phane Brunner >> wrote: >>> >>> Hello, >>> >>> I have the mapfile [0]. when I done a GetFeature on the nummer [1] I >>> have 4 results [2] (with duplicate but it's an other issue). >>> When I done a spatial filter [3] I have no results [4] but I should >>> have at least one result ... >>> >>> Thanks in advance for having a look on this issue. >>> >>> Sincerely yours >>> St?phane Brunner >>> >>> Following: specified, GetCapabilities [5], describefeaturetype [6]. >>> >>> mapfile [0]: >>> MAP >>> ? ?NAME "map" >>> >>> ? ?EXTENT 620000 218000 690000 278000 >>> >>> ? ?UNITS METERS >>> ? ?IMAGETYPE jpeg >>> ? ?RESOLUTION 72 >>> ? ?DEFRESOLUTION 72 >>> ? ?IMAGECOLOR 255 255 255 >>> ? ?STATUS ON >>> ? ?FONTSET "fonts.conf" >>> ? ?SYMBOLSET "symbole.sym" >>> ? ?MAXSIZE 5000 >>> >>> ? ?PROJECTION >>> ? ? ? ?"init=epsg:21781" >>> ? ?END >>> >>> ? ?#### >>> ? ?# Used by overlays >>> ? ?#### >>> ? ?OUTPUTFORMAT >>> ? ? ? ?NAME png256 >>> ? ? ? ?DRIVER AGG/PNG >>> ? ? ? ?MIMETYPE "image/png256" >>> ? ? ? ?IMAGEMODE RGBA >>> ? ? ? ?EXTENSION "png" >>> ? ? ? ?FORMATOPTION "INTERLACE=OFF" >>> ? ? ? ?FORMATOPTION "QUANTIZE_FORCE=ON" >>> ? ? ? ?FORMATOPTION "QUANTIZE_DITHER=OFF" >>> ? ? ? ?FORMATOPTION "QUANTIZE_COLORS=256" >>> ? ?END >>> ? ?OUTPUTFORMAT >>> ? ? ? ?NAME png >>> ? ? ? ?DRIVER AGG/PNG >>> ? ? ? ?MIMETYPE "image/png" >>> ? ? ? ?IMAGEMODE RGBA >>> ? ? ? ?EXTENSION "png" >>> ? ? ? ?FORMATOPTION "INTERLACE=OFF" >>> ? ? ? ?FORMATOPTION "QUANTIZE_DITHER=OFF" >>> ? ?END >>> >>> ? ?WEB >>> ? ? ? ?METADATA >>> ? ? ? ? ? ?"ows_title" "map" >>> ? ? ? ? ? ?"ows_srs" "epsg:21781" >>> ? ? ? ? ? ?"ows_encoding" "UTF-8" >>> ? ? ? ? ? ?"wms_feature_info_mime_type" "application/vnd.ogc.gml" >>> ? ? ? ? ? ?"wms_enable_request" "*" >>> ? ? ? ? ? ?"ows_enable_request" "*" >>> ? ? ? ? ? ?"gml_include_items" "all" >>> ? ? ? ? ? ?"gml_featureid" "id" >>> ? ? ? ? ? ?"wfs_title" "map" >>> ? ? ? ? ? ?"wfs_srs" "epsg:21781" >>> ? ? ? ?END >>> ? ? ? ?IMAGEPATH '/var/tmp/' >>> ? ?END >>> >>> ? ?LEGEND >>> ? ? ? ?IMAGECOLOR 240 240 240 >>> ? ? ? ?LABEL >>> ? ? ? ? ? ?FONT arial >>> ? ? ? ? ? ?ANTIALIAS true >>> ? ? ? ? ? ?TYPE truetype >>> ? ? ? ? ? ?SIZE 9 >>> ? ? ? ? ? ?COLOR 0 0 0 >>> ? ? ? ?END >>> ? ?END >>> >>> >>> LAYER >>> ?NAME "Liegenschaft_Query" >>> ?TYPE POLYGON >>> ?STATUS ON >>> ?TEMPLATE fooOnlyForWMSGetFeatureInfo >>> ?CONNECTIONTYPE postgis >>> ?PROCESSING "CLOSE_CONNECTION=DEFER" >>> ?CONNECTION "user=www-data password=www-data dbname=dev host=localhost" >>> ?DATA "geom from (SELECT oid, t1.geom, t1.nummer FROM >>> av.view_i_liegenschaft_all AS t1) AS foo using unique oid using >>> SRID=-1" >>> # ?GROUP "TOPIC_Liegenschaften_LN" >>> ?EXTENT 620000 218000 690000 278000 >>> ?METADATA >>> ? ?"ows_title" "Liegenschaft_Query" >>> ? ?"ows_srs" "epsg:21781" >>> ? ?"id_attribute_string" "oid" >>> ? ?"ows_featureid" "oid" >>> ? ?"ows_geometries" "geom" >>> ? ?"ows_geom_type" "polygon" >>> ? ?"query_returned_attributes" "nummer" >>> ? ?"gml_include_items" "oid,nummer,geom" >>> ? ?"gml_geometries" "geom" >>> ? ?"gml_geom_type" "polygon" >>> ? ?"gml_nummer_type" "Character" >>> ? ?#"gml_groups" "TOPIC_Liegenschaften_LN" >>> ? ?"gml_featureid" "oid" >>> ? ?"wfs_title" "Liegenschaft_Query" >>> ? ?"wfs_srs" "epsg:21781" >>> ?END >>> ?DUMP TRUE >>> ?PROJECTION >>> ? ? ?"init=epsg:21781" >>> ?END >>> >>> ?CLASS >>> ? ?NAME "Liegenschaft" >>> ? ?STYLE >>> ? ? ?SYMBOL "circle" >>> ? ? ?SIZE 3 >>> ? ? ?OUTLINECOLOR 0 0 0 >>> ? ?END >>> ?END >>> END >>> END >>> >>> query on the nummer [1]: >>> >> version="1.0.0" maxFeatures="100" >>> xsi:schemaLocation="http://www.opengis.net/wfs >>> http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd" >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> >>> >> xmlns:feature="http://mapserver.gis.umn.edu/mapserver"> >>> >>> >>> nummer >>> 3634 >>> >>> >>> >>> >>> >>> response on the nummer [2]: >>> >>> >> ? xmlns:ms="http://mapserver.gis.umn.edu/mapserver" >>> ? xmlns:wfs="http://www.opengis.net/wfs" >>> ? xmlns:gml="http://www.opengis.net/gml" >>> ? xmlns:ogc="http://www.opengis.net/ogc" >>> ? xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>> ? xsi:schemaLocation="http://www.opengis.net/wfs >>> http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd >>> ? ? ? ? ? ? ? ? ? ? ? http://mapserver.gis.umn.edu/mapserver >>> >>> http://c2cpc89.camptocamp.com/sbrunner/mapserv?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=feature:Liegenschaft_Query&OUTPUTFORMAT=XMLSCHEMA"> >>> ? ? ? >>> ? ? ? ? >>> ? ? ? ? ? ? ? ?661054.808000,244611.321000 >>> 663053.704000,244888.622000 >>> ? ? ? ? >>> ? ? ? >>> ? ? >>> ? ? ? >>> ? ? ? ? >>> ? ? ? ? ? ? ? ? >>> ? ? ? ? ? ? ? ? ? ? ? ?661054.808000,244854.251000 >>> 661088.687000,244888.622000 >>> ? ? ? ? ? ? ? ? >>> ? ? ? ? >>> ? ? ? ? >>> ? ? ? ? >>> ? ? ? ? ? >>> ? ? ? ? ? ? >>> ? ? ? ? ? ? ?661076.579000,244888.622000 >>> 661054.808000,244875.484000 661062.744000,244858.448000 >>> 661064.653000,244854.251000 661088.687000,244869.173000 >>> 661076.579000,244888.622000 >>> ? ? ? ? ? ? >>> ? ? ? ? ? >>> ? ? ? ? >>> ? ? ? ? >>> ? ? ? ?2380997 >>> ? ? ? ?3634 >>> ? ? ? >>> ? ? >>> ? ? >>> ? ? ? >>> ? ? ? ? >>> ? ? ? ? ? ? ? ? >>> ? ? ? ? ? ? ? ? ? ? ? ?661054.808000,244854.251000 >>> 661088.687000,244888.622000 >>> ? ? ? ? ? ? ? ? >>> ? ? ? ? >>> ? ? ? ? >>> ? ? ? ? >>> ? ? ? ? ? >>> ? ? ? ? ? ? >>> ? ? ? ? ? ? ?661076.579000,244888.622000 >>> 661054.808000,244875.484000 661062.744000,244858.448000 >>> 661064.653000,244854.251000 661088.687000,244869.173000 >>> 661076.579000,244888.622000 >>> ? ? ? ? ? ? >>> ? ? ? ? ? >>> ? ? ? ? >>> ? ? ? ? >>> ? ? ? ?2380997 >>> ? ? ? ?3634 >>> ? ? ? >>> ? ? >>> ? ? >>> ? ? ? >>> ? ? ? ? >>> ? ? ? ? ? ? ? ? >>> ? ? ? ? ? ? ? ? ? ? ? ?663017.565000,244611.321000 >>> 663053.704000,244650.084000 >>> ? ? ? ? ? ? ? ? >>> ? ? ? ? >>> ? ? ? ? >>> ? ? ? ? >>> ? ? ? ? ? >>> ? ? ? ? ? ? >>> ? ? ? ? ? ? ?663017.565000,244635.722000 >>> 663033.235000,244611.321000 663045.949000,244619.485000 >>> 663053.704000,244626.417000 663034.337000,244650.084000 >>> 663017.565000,244635.722000 >>> ? ? ? ? ? ? >>> ? ? ? ? ? >>> ? ? ? ? >>> ? ? ? ? >>> ? ? ? ?2384539 >>> ? ? ? ?3634 >>> ? ? ? >>> ? ? >>> ? ? >>> ? ? ? >>> ? ? ? ? >>> ? ? ? ? ? ? ? ? >>> ? ? ? ? ? ? ? ? ? ? ? ?663017.565000,244611.321000 >>> 663053.704000,244650.084000 >>> ? ? ? ? ? ? ? ? >>> ? ? ? ? >>> ? ? ? ? >>> ? ? ? ? >>> ? ? ? ? ? >>> ? ? ? ? ? ? >>> ? ? ? ? ? ? ?663017.565000,244635.722000 >>> 663033.235000,244611.321000 663045.949000,244619.485000 >>> 663053.704000,244626.417000 663034.337000,244650.084000 >>> 663017.565000,244635.722000 >>> ? ? ? ? ? ? >>> ? ? ? ? ? >>> ? ? ? ? >>> ? ? ? ? >>> ? ? ? ?2384539 >>> ? ? ? ?3634 >>> ? ? ? >>> ? ? >>> >>> >>> >>> query with spatial filter [3]: >>> >> version="1.0.0" maxFeatures="100" >>> xsi:schemaLocation="http://www.opengis.net/wfs >>> http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd" >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> >>> >> xmlns:feature="http://mapserver.gis.umn.edu/mapserver"> >>> >>> >>> geom >>> >>> 661070.024,244872.084 >>> >>> >>> >>> >>> >>> >>> >>> response with spatial filter [4]: >>> >>> >> ? xmlns:ms="http://mapserver.gis.umn.edu/mapserver" >>> ? xmlns:wfs="http://www.opengis.net/wfs" >>> ? xmlns:gml="http://www.opengis.net/gml" >>> ? xmlns:ogc="http://www.opengis.net/ogc" >>> ? xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>> ? xsi:schemaLocation="http://www.opengis.net/wfs >>> http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd >>> ? ? ? ? ? ? ? ? ? ? ? http://mapserver.gis.umn.edu/mapserver >>> >>> http://c2cpc89.camptocamp.com/sbrunner/mapserv?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=feature:Liegenschaft_Query&OUTPUTFORMAT=XMLSCHEMA"> >>> ? >>> ? ? ?missing >>> ? >>> >>> >>> >>> GetCapabilities [5]: >>> >>> >> ? version="1.0.0" >>> ? updateSequence="0" >>> ? xmlns="http://www.opengis.net/wfs" >>> ? xmlns:ogc="http://www.opengis.net/ogc" >>> ? xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>> ? xsi:schemaLocation="http://www.opengis.net/wfs >>> http://schemas.opengis.net/wfs/1.0.0/WFS-capabilities.xsd"> >>> >>> >>> >>> >>> ?MapServer WFS >>> ?Amtliche Vermessung >>> ?Die amtliche Vermessung nach DM01 Darstellung als WMS >>> Dienst f?r MapFish Projekte >>> >>> ?http://c2cpc89.camptocamp.com/sbrunner/mapserv? >>> >>> >>> >>> >>> ? >>> ? ? >>> ? ? ? >>> ? ? ? ? >>> ? ? ? ? ?>> onlineResource="http://c2cpc89.camptocamp.com/sbrunner/mapserv?" >>> /> >>> ? ? ? ? >>> ? ? ? >>> >>> ? ? ? >>> ? ? ? ? >>> ? ? ? ? ?>> onlineResource="http://c2cpc89.camptocamp.com/sbrunner/mapserv?" /> >>> ? ? ? ? >>> ? ? ? >>> ? ? >>> ? ? >>> ? ? ? >>> ? ? ? ? >>> >>> ? ? ? >>> ? ? ? >>> ? ? ? ? >>> ? ? ? ? ?>> onlineResource="http://c2cpc89.camptocamp.com/sbrunner/mapserv?" >>> /> >>> ? ? ? ? >>> ? ? ? >>> ? ? ? >>> ? ? ? ? >>> ? ? ? ? ?>> onlineResource="http://c2cpc89.camptocamp.com/sbrunner/mapserv?" /> >>> >>> ? ? ? ? >>> ? ? ? >>> ? ? >>> ? ? >>> ? ? ? >>> ? ? ? ? >>> ? ? ? >>> ? ? ? >>> ? ? ? ? >>> >>> ? ? ? ? ?>> onlineResource="http://c2cpc89.camptocamp.com/sbrunner/mapserv?" >>> /> >>> ? ? ? ? >>> ? ? ? >>> ? ? ? >>> ? ? ? ? >>> ? ? ? ? ?>> onlineResource="http://c2cpc89.camptocamp.com/sbrunner/mapserv?" /> >>> ? ? ? ? >>> ? ? ? >>> ? ? >>> >>> ? >>> >>> >>> >>> ? >>> ? ? >>> ? >>> ? ? >>> ? ? ? ?Liegenschaft_Query >>> ? ? ? ?Liegenschaft_Query >>> >>> ? ? ? ?epsg:21781 >>> ? ? ? ?>> maxy="278000" /> >>> ? ? >>> ? ? >>> ? ? ? ?Liegenschaft_Query_ALL >>> ? ? ? ?Liegenschaft_Query_ALL >>> ? ? ? ?epsg:21781 >>> >>> ? ? ? ?>> maxy="278000" /> >>> ? ? >>> >>> >>> >>> ? >>> ? ? >>> ? ? ? >>> ? ? ? >>> ? ? ? >>> >>> ? ? ? >>> ? ? ? >>> ? ? ? >>> ? ? ? >>> ? ? ? >>> ? ? ? >>> ? ? ? >>> ? ? >>> ? >>> >>> ? >>> ? ? >>> ? ? >>> ? ? ? >>> ? ? ? >>> ? ? ? >>> ? ? >>> ? >>> >>> >>> >>> >>> describefeaturetype [6]: >>> >>> >> ? targetNamespace="http://mapserver.gis.umn.edu/mapserver" >>> ? xmlns:ms="http://mapserver.gis.umn.edu/mapserver" >>> ? xmlns:ogc="http://www.opengis.net/ogc" >>> ? xmlns:xsd="http://www.w3.org/2001/XMLSchema" >>> ? xmlns="http://www.w3.org/2001/XMLSchema" >>> ? xmlns:gml="http://www.opengis.net/gml" >>> ? elementFormDefault="qualified" version="0.1" > >>> >>> ?>> ? ? ? ? ?schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd" >>> /> >>> >>> ?>> ? ? ? ? ? type="ms:Liegenschaft_QueryType" >>> ? ? ? ? ? substitutionGroup="gml:_Feature" /> >>> >>> ? >>> ? ? >>> ? ? ? >>> ? ? ? ? >>> >>> ? ? ? ? ?>> minOccurs="0" maxOccurs="1"/> >>> ? ? ? ? ? >>> ? ? ? ? ? >>> ? ? ? ? >>> ? ? ? >>> ? ? >>> ? >>> >>> >>> >>> >>> -- >>> camptocamp.com >>> mapfish.org >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > > -- > camptocamp.com > mapfish.org > -- camptocamp.com mapfish.org From charlie.allgrove at connectionservices.com Thu Jul 28 07:18:43 2011 From: charlie.allgrove at connectionservices.com (Charlie Allgrove) Date: Thu, 28 Jul 2011 15:18:43 +0100 Subject: [mapserver-users] Possible tile_map_edge_buffer issue Message-ID: <006901cc4d31$42e34a70$c8a9df50$@allgrove@connectionservices.com> Hi I have an issue when using tile_map_edge_buffer functionality with mode=tile on a Google map view which displays the whole world at zoom 0,1 or 2. It probably manifests itself at higher zoom levels, but will be less obvious (if at all) since I'm only rendering data over land. In my map file I have (amongst others) WEB METADATA "tile_map_edge_buffer" "32" # 32 pixel rendering buffer "http_max_age" "86400" END END My development code is not on a publicly available server at the moment, so I can't post a link but when I am looking at a Google map at zoom levels 0,1 or 2, the tiles consistently cut off approx half-way across the USA (see attached screenshot). It seems that {tile=0 1 2} does not render with the buffering enabled, since the buffered area extends effectively to a negative tile reference {-1 1 2} which is illegal. Is there any way around this - is it possible only to enable the buffer for zooms >=3? Cheers Charlie -- Charlie Allgrove Senior Developer Connection Services :: Business Mobility for a Wireless World Connection Services Ltd is a company incorporated under the laws of England and Wales with company number 6520674 whose registered office is at Griffins Court, 24-32 London Road, Newbury, Berkshire, RG14 1JX. The information in this e-mail and any attachments is confidential and may be legally privileged. It is intended solely for the addressee or addressees. If you are not an intended recipient, please delete the message and any attachments and notify the sender of misdelivery: any use or disclosure of the contents of either is unauthorised and may be unlawful. All liability for viruses is excluded to the fullest extent permitted by law. Any views expressed in this message are those of the individual sender. In accordance with the provisions of its Terms of Business the Company does not accept instructions or the creation of contractual obligations by unconfirmed electronic transmission. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: map.jpg Type: image/jpeg Size: 63702 bytes Desc: not available URL: From forums at craniumjuice.com Thu Jul 28 07:28:36 2011 From: forums at craniumjuice.com (forums) Date: Thu, 28 Jul 2011 09:28:36 -0500 Subject: [mapserver-users] Possible tile_map_edge_buffer issue In-Reply-To: <4e3170a3.8760340a.5005.63b5SMTPIN_ADDED@mx.google.com> References: <4e3170a3.8760340a.5005.63b5SMTPIN_ADDED@mx.google.com> Message-ID: I was just about to post this EXACT same issue. I have discovered something else though. I can force a feature and git to show up where the other missing data is. It shows up on tile=0+1+2 Also If I view the map as mode=map, it works fine, I see my YellowDot and my actual data from my data source. LAYER NAME "YellowDot" STATUS DEFAULT TYPE POINT FEATURE POINTS -100 20 END END CLASS STYLE SYMBOL "circle" SIZE 30 COLOR 255 255 0 OUTLINECOLOR 255 0 0 END END END On Thu, Jul 28, 2011 at 9:18 AM, Charlie Allgrove wrote: > Hi > > > > I have an issue when using tile_map_edge_buffer functionality with mode=tile > on a Google map view which displays the whole world at zoom 0,1 or 2. It > probably manifests itself at higher zoom levels, but will be less obvious > (if at all) since I'm only rendering data over land. > > > > In my map file I have (amongst others) > WEB > > ??? METADATA > > ?? ?????"tile_map_edge_buffer" "32" # 32 pixel rendering buffer > > ??????? "http_max_age" "86400" > > ??? END > > ? END > > > > My development code is not on a publicly available server at the moment, so > I can't post a link but when I am looking at a Google map at zoom levels 0,1 > or 2, the tiles consistently cut off approx half-way across the USA (see > attached screenshot). > > It seems that {tile=0 1 2} does not render with the buffering enabled, since > the buffered area extends effectively to a negative tile reference {-1 1 2} > which is illegal. > > > > Is there any way around this - is it possible only to enable the buffer for > zooms >=3? > > > > Cheers > > > > Charlie > > > > -- > > Charlie Allgrove > > Senior Developer > > > > Connection Services :: Business Mobility for a Wireless World > > > > Connection Services Ltd is a company incorporated under the laws of England > and Wales with company number 6520674 whose registered office is at Griffins > Court, 24-32 London Road, Newbury, Berkshire, RG14 1JX. The information in > this e-mail and any attachments is confidential and may be legally > privileged. It is intended solely for the addressee or addressees. If you > are not an intended recipient, please delete the message and any attachments > and notify the sender of misdelivery: any use or disclosure of the contents > of either is unauthorised and may be unlawful. All liability for viruses is > excluded to the fullest extent permitted by law. Any views expressed in this > message are those of the individual sender. In accordance with the > provisions of its Terms of Business the Company does not accept instructions > or the creation of contractual obligations by unconfirmed electronic > transmission. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- A computer without Windows is like chocolate cake without mustard. From boolean10001 at yahoo.com Thu Jul 28 08:17:03 2011 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Thu, 28 Jul 2011 08:17:03 -0700 (PDT) Subject: [mapserver-users] It takes more than 2 minutes for my map server to generate a world map In-Reply-To: <1311808806168-6628127.post@n2.nabble.com> References: <1311808806168-6628127.post@n2.nabble.com> Message-ID: <1311866223.36127.YahooMailNeo@web38201.mail.mud.yahoo.com> JK (?), One question: did you use gdaltindex ? IC Carlos Ruiz ________________________________ From: jk To: mapserver-users at lists.osgeo.org Sent: Wednesday, July 27, 2011 6:20 PM Subject: [mapserver-users] It takes more than 2 minutes for my map server to generate a world map Hi, I have a tile system of 4659 tiles, each is a 5 meter resolution raster image a particular spot in the world (as you know it is sparse, the collection of tiles do not cover the enter world). When I asking for a map of the world (ie, high-level view, a bbox with values close to the lonlat boundary of the world), my map server consistently takes long time to finish, (close to 2.5 minutes, yeah, minutes, not seconds). This is very slow. If I submit a bbox that matches a particular tile, the map is returned instantly. How could it take so long to generate the world map? How to fix that? Anything I'm missing? Any idea? I'm not using tile cache yet. But I think 2.5 minutes for world view is way too slow. Something must be wrong. If you know of any clues, let me know. Thanks for your help. JK -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/It-takes-more-than-2-minutes-for-my-map-server-to-generate-a-world-map-tp6628127p6628127.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 woodbri at swoodbridge.com Thu Jul 28 08:39:52 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 28 Jul 2011 11:39:52 -0400 Subject: [mapserver-users] It takes more than 2 minutes for my map server to generate a world map In-Reply-To: <1311866223.36127.YahooMailNeo@web38201.mail.mud.yahoo.com> References: <1311808806168-6628127.post@n2.nabble.com> <1311866223.36127.YahooMailNeo@web38201.mail.mud.yahoo.com> Message-ID: <4E3182C8.8070409@swoodbridge.com> You probably need to run gdaladdo to add reduced resolution overviews of you images which will speed up display when you are zoomed way out. for x in *.tif ; do gdaladdo $x 2 4 8 16 32 64 128 256 done Regardless, to draw the whole world you will need to open all 4659 files and fetch something from each one. You can probably speed this up be creating a super overlay image at reduced resolution and setup you mapfile to use the super overlay when zoomed out and then change to the tiles when zoomed in. Read this might help: http://mapserver.org/optimization/raster.html Also the GDAL list will be able to help you on how to create a super overlay at reduced resolution. -Steve W On 7/28/2011 11:17 AM, Carlos Ruiz wrote: > JK (?), > > One question: did you use gdaltindex ? > > IC Carlos Ruiz > > *From:* jk > *To:* mapserver-users at lists.osgeo.org > *Sent:* Wednesday, July 27, 2011 6:20 PM > *Subject:* [mapserver-users] It takes more than 2 minutes for my map > server to generate a world map > > Hi, > > I have a tile system of 4659 tiles, each is a 5 meter resolution raster > image a particular spot in the world (as you know it is sparse, the > collection of tiles do not cover the enter world). > > When I asking for a map of the world (ie, high-level view, a bbox with > values close to the lonlat boundary of the world), my map server > consistently takes long time to finish, (close to 2.5 minutes, yeah, > minutes, not seconds). This is very slow. > > If I submit a bbox that matches a particular tile, the map is returned > instantly. > > How could it take so long to generate the world map? > > How to fix that? > > Anything I'm missing? Any idea? > > I'm not using tile cache yet. But I think 2.5 minutes for world view is way > too slow. Something must be wrong. > > If you know of any clues, let me know. > > Thanks for your help. > > JK > > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/It-takes-more-than-2-minutes-for-my-map-server-to-generate-a-world-map-tp6628127p6628127.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 Jukka.Rahkonen at mmmtike.fi Thu Jul 28 09:04:22 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 28 Jul 2011 16:04:22 +0000 Subject: [mapserver-users] It takes more than 2 minutes for my map server to generate a world map In-Reply-To: <4E3182C8.8070409@swoodbridge.com> References: <1311808806168-6628127.post@n2.nabble.com> <1311866223.36127.YahooMailNeo@web38201.mail.mud.yahoo.com>, <4E3182C8.8070409@swoodbridge.com> Message-ID: <84446DEF76453C439E9E97E438E13A63015BE5@suutari.haapa.mmm.fi> Hi, It is really essential to avoid opening all the 4659 files. Redused resolution overview images and layer group is the way to go so that there are never more than, let's say, 20-30 images to open for one call. And gdaladdo does help further. And the third step is to have internally tiled image files. When zoomed in so that just a minory part of the image file is needed for generating the output tiling helps in getting the desired part of an image fast. Mapserver itself can be used for creating overview images, just define a geotiff outputformat (http://mapserver.org/mapfile/outputformat.html) and make some requests with well controlled BBOXes. -Jukka Rahkonen- Stephen Woodbridge wrote: > You probably need to run gdaladdo to add reduced resolution overviews of > you images which will speed up display when you are zoomed way out. > for x in *.tif ; do > gdaladdo $x 2 4 8 16 32 64 128 256 > done > Regardless, to draw the whole world you will need to open all 4659 files > and fetch something from each one. You can probably speed this up be > creating a super overlay image at reduced resolution and setup you > mapfile to use the super overlay when zoomed out and then change to the > tiles when zoomed in. > Read this might help: > http://mapserver.org/optimization/raster.html > Also the GDAL list will be able to help you on how to create a super > overlay at reduced resolution. -Steve W On 7/28/2011 11:17 AM, Carlos Ruiz wrote: > JK (?), > > One question: did you use gdaltindex ? > > IC Carlos Ruiz > > *From:* jk > *To:* mapserver-users at lists.osgeo.org > *Sent:* Wednesday, July 27, 2011 6:20 PM > *Subject:* [mapserver-users] It takes more than 2 minutes for my map > server to generate a world map > > Hi, > > I have a tile system of 4659 tiles, each is a 5 meter resolution raster > image a particular spot in the world (as you know it is sparse, the > collection of tiles do not cover the enter world). > > When I asking for a map of the world (ie, high-level view, a bbox with > values close to the lonlat boundary of the world), my map server > consistently takes long time to finish, (close to 2.5 minutes, yeah, > minutes, not seconds). This is very slow. > > If I submit a bbox that matches a particular tile, the map is returned > instantly. > > How could it take so long to generate the world map? > > How to fix that? > > Anything I'm missing? Any idea? > > I'm not using tile cache yet. But I think 2.5 minutes for world view is way > too slow. Something must be wrong. > > If you know of any clues, let me know. > > Thanks for your help. > > JK > > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/It-takes-more-than-2-minutes-for-my-map-server-to-generate-a-world-map-tp6628127p6628127.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 From ian.walberg at airborne.aero Thu Jul 28 10:41:22 2011 From: ian.walberg at airborne.aero (Ian Walberg) Date: Thu, 28 Jul 2011 13:41:22 -0400 Subject: [mapserver-users] Plotting points as a line from sqlite database In-Reply-To: References: <1309372936219-6530222.post@n2.nabble.com><4E0B8C4F.9050402@gatewaygeomatics.com><1309384460012-6530859.post@n2.nabble.com><4E0BCA98.1060309@pobox.com><4E0BF210.8050501@swoodbridge.com> Message-ID: Gents, Thanks for these ideas, however I cannot seem to find a MakeLine function in spatialite 2.4.0. Where should I be looking? Thanks Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Fawcett, David (MPCA) Sent: Thursday, June 30, 2011 6:44 AM To: Stephen Woodbridge; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Plotting points as a line from sqlite database ST_MAKELINE() does exist in recent versions of Spatialite. It doesn't appear to have made it in to the docs, but it can be seen in this example from the cookbook. http://www.gaia-gis.it/spatialite-2.4.0-4/spatialite-cookbook/html/pp-ad jacent.html Another example is in this thread from the Spatialite list: http://groups.google.com/group/spatialite-users/browse_thread/thread/002 0f8e907ae9226 You will likely need recent versions of both Spatialite and OGR to make it work. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Wednesday, June 29, 2011 10:49 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Plotting points as a line from sqlite database On 6/29/2011 10:13 PM, Ian Walberg wrote: > I hope this isn't too stupid a question. > > Would like to display a list of positions in an sqlite database as a > line, to show the flight path of an aircraft. The data is in the db as > Lat, Long and point (lat, long) > > We can display the positions as individual dots but not as a line, I > fear the problem is that the data is a point. > > As the data is being accumulated we would prefer not to create a new > line in the database each time if possible. > > Any suggestions to what options we have would be appreciated. Hi Ian, In postgis there is an aggregrate function makeline() that you can feed points to. I think there may be an equivalent function in SpatiaLite. In sqlite, you might be able to use a group_concat() something like: select 'LINESTRING('|| group_concat(lat||' '||long, ',') ||')' from points; But I think the issue will be that this is not a format that mapserver understands. You might be able to access this via GDAL/OGR but I'm not sure on that. -Steve W _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From david.fawcett at state.mn.us Thu Jul 28 11:39:27 2011 From: david.fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Thu, 28 Jul 2011 13:39:27 -0500 Subject: [mapserver-users] Plotting points as a line from sqlite database In-Reply-To: References: <1309372936219-6530222.post@n2.nabble.com><4E0B8C4F.9050402@gatewaygeomatics.com><1309384460012-6530859.post@n2.nabble.com><4E0BCA98.1060309@pobox.com><4E0BF210.8050501@swoodbridge.com> Message-ID: Ian, Take a look at 2.4.0-RC5 http://www.gaia-gis.it/spatialite-2.4.0-5/spatialite-sql-2.4-5.html#p5 Look under "SQL utility functions [non-standard] for geometric objects" David. -----Original Message----- From: Ian Walberg [mailto:ian.walberg at airborne.aero] Sent: Thursday, July 28, 2011 12:41 PM To: Fawcett, David (MPCA); Stephen Woodbridge; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Plotting points as a line from sqlite database Gents, Thanks for these ideas, however I cannot seem to find a MakeLine function in spatialite 2.4.0. Where should I be looking? Thanks Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Fawcett, David (MPCA) Sent: Thursday, June 30, 2011 6:44 AM To: Stephen Woodbridge; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Plotting points as a line from sqlite database ST_MAKELINE() does exist in recent versions of Spatialite. It doesn't appear to have made it in to the docs, but it can be seen in this example from the cookbook. http://www.gaia-gis.it/spatialite-2.4.0-4/spatialite-cookbook/html/pp-ad jacent.html Another example is in this thread from the Spatialite list: http://groups.google.com/group/spatialite-users/browse_thread/thread/002 0f8e907ae9226 You will likely need recent versions of both Spatialite and OGR to make it work. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Wednesday, June 29, 2011 10:49 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Plotting points as a line from sqlite database On 6/29/2011 10:13 PM, Ian Walberg wrote: > I hope this isn't too stupid a question. > > Would like to display a list of positions in an sqlite database as a > line, to show the flight path of an aircraft. The data is in the db as > Lat, Long and point (lat, long) > > We can display the positions as individual dots but not as a line, I > fear the problem is that the data is a point. > > As the data is being accumulated we would prefer not to create a new > line in the database each time if possible. > > Any suggestions to what options we have would be appreciated. Hi Ian, In postgis there is an aggregrate function makeline() that you can feed points to. I think there may be an equivalent function in SpatiaLite. In sqlite, you might be able to use a group_concat() something like: select 'LINESTRING('|| group_concat(lat||' '||long, ',') ||')' from points; But I think the issue will be that this is not a format that mapserver understands. You might be able to access this via GDAL/OGR but I'm not sure on that. -Steve W _______________________________________________ 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 ian.walberg at airborne.aero Thu Jul 28 11:46:13 2011 From: ian.walberg at airborne.aero (Ian Walberg) Date: Thu, 28 Jul 2011 14:46:13 -0400 Subject: [mapserver-users] Plotting points as a line from sqlite database In-Reply-To: References: <1309372936219-6530222.post@n2.nabble.com><4E0B8C4F.9050402@gatewaygeomatics.com><1309384460012-6530859.post@n2.nabble.com><4E0BCA98.1060309@pobox.com><4E0BF210.8050501@swoodbridge.com> Message-ID: David, That looks better, let me test if we can now do what we need. Many thanks Ian -----Original Message----- From: Fawcett, David (MPCA) [mailto:david.fawcett at state.mn.us] Sent: Thursday, July 28, 2011 11:39 AM To: Ian Walberg; Stephen Woodbridge; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Plotting points as a line from sqlite database Ian, Take a look at 2.4.0-RC5 http://www.gaia-gis.it/spatialite-2.4.0-5/spatialite-sql-2.4-5.html#p5 Look under "SQL utility functions [non-standard] for geometric objects" David. -----Original Message----- From: Ian Walberg [mailto:ian.walberg at airborne.aero] Sent: Thursday, July 28, 2011 12:41 PM To: Fawcett, David (MPCA); Stephen Woodbridge; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Plotting points as a line from sqlite database Gents, Thanks for these ideas, however I cannot seem to find a MakeLine function in spatialite 2.4.0. Where should I be looking? Thanks Ian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Fawcett, David (MPCA) Sent: Thursday, June 30, 2011 6:44 AM To: Stephen Woodbridge; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Plotting points as a line from sqlite database ST_MAKELINE() does exist in recent versions of Spatialite. It doesn't appear to have made it in to the docs, but it can be seen in this example from the cookbook. http://www.gaia-gis.it/spatialite-2.4.0-4/spatialite-cookbook/html/pp-ad jacent.html Another example is in this thread from the Spatialite list: http://groups.google.com/group/spatialite-users/browse_thread/thread/002 0f8e907ae9226 You will likely need recent versions of both Spatialite and OGR to make it work. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Wednesday, June 29, 2011 10:49 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Plotting points as a line from sqlite database On 6/29/2011 10:13 PM, Ian Walberg wrote: > I hope this isn't too stupid a question. > > Would like to display a list of positions in an sqlite database as a > line, to show the flight path of an aircraft. The data is in the db as > Lat, Long and point (lat, long) > > We can display the positions as individual dots but not as a line, I > fear the problem is that the data is a point. > > As the data is being accumulated we would prefer not to create a new > line in the database each time if possible. > > Any suggestions to what options we have would be appreciated. Hi Ian, In postgis there is an aggregrate function makeline() that you can feed points to. I think there may be an equivalent function in SpatiaLite. In sqlite, you might be able to use a group_concat() something like: select 'LINESTRING('|| group_concat(lat||' '||long, ',') ||')' from points; But I think the issue will be that this is not a format that mapserver understands. You might be able to access this via GDAL/OGR but I'm not sure on that. -Steve W _______________________________________________ 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 K.Hirst at bom.gov.au Thu Jul 28 17:56:55 2011 From: K.Hirst at bom.gov.au (Kathleen Hirst) Date: Fri, 29 Jul 2011 10:56:55 +1000 Subject: FW: [mapserver-users] display labels as an integer instead of scientific notations [SEC=UNCLASSIFIED] In-Reply-To: <36CA828A36E29F45B7CF0A1766E5DFA3011F42@swmail01.r8nssis.local> Message-ID: Hi Mark, You can use an OGR connection for formatting of number fields when labelling in MapServer version 5.x. I think you need GDAL 1.6 or later. For example with a shapefile called test.shp with a field, testfld1, you can do the following to show only two decimal places. LAYER .. CONNECTIONTYPE OGR CONNECTION "test.shp" DATA "select CAST(testfld1 AS numeric (4,2)) from test" .. CLASS ... TEXT ([testfld1)] LABEL .. END END END Regards, Kathleen ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz Sent: Thursday, 28 July 2011 5:26 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] display labels as an integer instead of scientific notations. Hello, I have a label that displays a number in scientific notation; for example 2.08+e002. I would like the label to display as an integer such as 2.08. In the past I asked a similar question about HTML templates and someone mentioned that I should use "[item name="area" precision=2]" Unfortunately, the statement seems invalid as a label in the .map file. Does anyone know how I can display a number as an integer? Or will I have to convert all my values to Text? I am using mapserver 5.4 Thanks Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From luca.casagrande at gmail.com Fri Jul 29 00:02:16 2011 From: luca.casagrande at gmail.com (Luca Casagrande) Date: Fri, 29 Jul 2011 00:02:16 -0700 (PDT) Subject: [mapserver-users] KML data coming from HTTP GET Message-ID: <1311922936824-6632565.post@n2.nabble.com> Hello everybody, I am working to create a WMS service starting from Ushahidi [1] incidents. With the API of the second one, I can access all incidents with a simple HTTP GET request which return a KML file. My first idea is to let cron download data every 10 minutes, but I don't know if there is a better solution. Thank you very much Luca -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/KML-data-coming-from-HTTP-GET-tp6632565p6632565.html Sent from the Mapserver - User mailing list archive at Nabble.com. From MarkVolz at co.lyon.mn.us Fri Jul 29 06:27:40 2011 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Fri, 29 Jul 2011 13:27:40 +0000 Subject: [mapserver-users] display labels as an integer instead of scientific notations [SEC=UNCLASSIFIED] In-Reply-To: References: <36CA828A36E29F45B7CF0A1766E5DFA3011F42@swmail01.r8nssis.local> Message-ID: <36CA828A36E29F45B7CF0A1766E5DFA30120F8@swmail01.r8nssis.local> Kathleen, That works quite well Thank you! Mark Volz GIS Specialist Lyon County, MN 507-532-8218 From: Kathleen Hirst [mailto:K.Hirst at bom.gov.au] Sent: Thursday, July 28, 2011 7:57 PM To: Mark Volz Cc: mapserver-users at lists.osgeo.org Subject: FW: [mapserver-users] display labels as an integer instead of scientific notations [SEC=UNCLASSIFIED] Hi Mark, You can use an OGR connection for formatting of number fields when labelling in MapServer version 5.x. I think you need GDAL 1.6 or later. For example with a shapefile called test.shp with a field, testfld1, you can do the following to show only two decimal places. LAYER .. CONNECTIONTYPE OGR CONNECTION "test.shp" DATA "select CAST(testfld1 AS numeric (4,2)) from test" .. CLASS ... TEXT ([testfld1)] LABEL .. END END END Regards, Kathleen ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz Sent: Thursday, 28 July 2011 5:26 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] display labels as an integer instead of scientific notations. Hello, I have a label that displays a number in scientific notation; for example 2.08+e002. I would like the label to display as an integer such as 2.08. In the past I asked a similar question about HTML templates and someone mentioned that I should use "[item name="area" precision=2]" Unfortunately, the statement seems invalid as a label in the .map file. Does anyone know how I can display a number as an integer? Or will I have to convert all my values to Text? I am using mapserver 5.4 Thanks Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcreso at pcreso.com Fri Jul 29 11:23:18 2011 From: pcreso at pcreso.com (Brent Wood) Date: Fri, 29 Jul 2011 11:23:18 -0700 (PDT) Subject: [mapserver-users] Factors Influencing Participant Satisfaction with Free/Libre and Open Source Software Projects Message-ID: <1311963798.98878.YahooMailNeo@web33205.mail.mud.yahoo.com> Apologies for the cross posting, but this thesis may be of interest to a wide array of FOSS related lists. It just went public: Title: ??? Factors Influencing Participant Satisfaction with Free/Libre and Open Source Software Projects Author: ??? Chawner, Brenda Abstract: ??? The purpose of this research was to identify factors that affect participants? satisfaction with their experience of a free/libre open source software (FLOSS) project. ... http://researcharchive.vuw.ac.nz/handle/10063/1710 -------------- next part -------------- An HTML attachment was scrubbed... URL: From lucadeluge at gmail.com Fri Jul 29 11:52:17 2011 From: lucadeluge at gmail.com (Luca Delucchi) Date: Fri, 29 Jul 2011 20:52:17 +0200 Subject: [mapserver-users] KML data coming from HTTP GET In-Reply-To: <1311922936824-6632565.post@n2.nabble.com> References: <1311922936824-6632565.post@n2.nabble.com> Message-ID: 2011/7/29 Luca Casagrande : > Hello everybody, > I am working to create a WMS service starting from Ushahidi [1] incidents. You forgot the link ;-) > With the API of the second one, I can access all incidents with a simple > HTTP GET request which return a KML file. > My first idea is to let cron download data every 10 minutes, but I don't > know if there is a better solution. > I don't know Ushahidi but you could use a WPS, for example ZOO can create a W*S as output (this features should be in the svn version) > Thank you very much > Luca > -- cheers Luca http://gis.cri.fmach.it/delucchi/ www.lucadelu.org From luca.casagrande at gmail.com Sat Jul 30 03:08:17 2011 From: luca.casagrande at gmail.com (luca.casagrande at gmail.com) Date: Sat, 30 Jul 2011 12:08:17 +0200 Subject: [mapserver-users] KML data coming from HTTP GET In-Reply-To: References: <1311922936824-6632565.post@n2.nabble.com> Message-ID: 2011/7/29 Luca Delucchi : > 2011/7/29 Luca Casagrande : >> Hello everybody, >> I am working to create a WMS service starting from Ushahidi [1] incidents. > > You forgot the link ;-) Yep, sorry: http://www.ushahidi.com/ > >> With the API of the second one, I can access all incidents with a simple >> HTTP GET request which return a KML file. >> My first idea is to let cron download data every 10 minutes, but I don't >> know if there is a better solution. >> > > I don't know Ushahidi but you could use a WPS, for example ZOO can > create a W*S as output (this features should be in the svn version) Yes, I thought about using WPS service, but the problem is that the WMS output is inserted in the WPS Execute response document so you need to parse it. Another problem is that for each request the WMS url change (not sure about this, but I'll investigate). Ciao L. -- Luca Casagrande twitter: lucacasagrande From sdlime at gmail.com Sat Jul 30 09:10:16 2011 From: sdlime at gmail.com (Steve Lime) Date: Sat, 30 Jul 2011 11:10:16 -0500 Subject: [mapserver-users] Possible Bug? use Style with Offset and Colorfrom DB twice in one class section In-Reply-To: References: <13B9A5AAF3B544238B048823C1901F0C@LogosIB.local> Message-ID: <27C60A21-0D72-45A4-A7C7-E4C0BBFD1457@gmail.com> Can you file a ticket please? Steve (trac.osgeo.org/mapserver) Sent from my iPad On Jul 28, 2011, at 12:57 AM, "Ralf Trier" wrote: > Hi Steve, > I use Version 6.0.0. > > Ralf > >> -----Urspr?ngliche Nachricht----- >> Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- >> bounces at lists.osgeo.org] Im Auftrag von Steve Lime >> Gesendet: Donnerstag, 28. Juli 2011 06:02 >> An: Ralf Trier >> Cc: mapserver-users at lists.osgeo.org >> Betreff: Re: [mapserver-users] Possible Bug? use Style with Offset and >> Colorfrom DB twice in one class section >> >> What version? I remember fixing something like this at one point... >> Steve >> >> Sent from my iPad >> >> On Jul 26, 2011, at 4:13 AM, "Ralf Trier" >> wrote: >> >>> Hello, >>> >>> I want to draw two parallel lines to baselines from a database. The >>> parallel lines should be drawn with the color set in the db. >>> >>> Part of my map file: >>> >>> LAYER >>> NAME "tttt" >>> TYPE LINE >>> PROJECTION >>> "init=epsg:900913" >>> END >>> STATUS DEFAULT >>> CONNECTIONTYPE postgis >>> CONNECTION "host=192.168.1.10 dbname=xxx user=xxx" >>> DATA "way from (select id, color01, color02, way from myTable) >>> as foo using unique id using srid=900913" >>> SIZEUNITS pixels >>> CLASS >>> STYLE >>> OFFSET 5 -99 >>> COLOR [color01] >>> WIDTH 10 >>> LINECAP square >>> END >>> STYLE >>> OFFSET -5 -99 >>> COLOR [color02] >>> WIDTH 10 >>> LINECAP square >>> END >>> END >>> END >>> >>> Strange think happens. The first parallel line is drawn with the >>> expected color. The second line (second style instruction) will be >> drawn >>> in a random color seems to come from another line. The color (second >>> line) will change depending form the scale. >>> >>> Any ideas? >>> >>> Thanks >>> Ralf >>> >>> _______________________________________________ >>> 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 sdlime at gmail.com Sat Jul 30 09:20:58 2011 From: sdlime at gmail.com (Steve Lime) Date: Sat, 30 Jul 2011 11:20:58 -0500 Subject: [mapserver-users] Problem GetFeature with geom filter on WFS In-Reply-To: References: Message-ID: The filter encoding code only translates certain things into native SQL, the rest is handled in a uniform way within MapServer. Hopefully this will change over time and more processing will be moved to the database but there hasn't been time to do that yet, maybe for 6.2. PostGIS should be returning an appropriate set of candidate features for MapServer to perform additional filtering. Shapefiles work the same way. If you look at the SQL executed by Postgres you should see all of the matching features plus a few more. Steve Sent from my iPad On Jul 28, 2011, at 9:18 AM, St?phane Brunner wrote: > Hello, > > I log the sql request on spatial filter and I have this: > select "oid","nummer","gemeinde","gueltigkeit","flgrundb","quote","eigentuemer","adresse_lang",encode(ST_AsBinary(ST_Force_2D("geom"),'NDR'),'hex') > as geom,"oid" from (SELECT oid, t1.geom, t1.nummer, t2.gemeinde, > t1.gueltigkeit1_txt as gueltigkeit, t2.flgrundb, ((t2.zaehler::text || > '/'::text) || t2.nenner::text) AS quote, t2.eigentuemer, > (((t2.adresse::text || ', '::text) || t2.plz::text) || ' '::text) || > t2.ort::text AS adresse_lang FROM av.liegenschaften_liegenschaft_area > as t1, av.view_gemlis_geomaste_parzelle as t2 WHERE t1.gdid = t2.gdeid > and t1.nummer = t2.parznr::text) AS foo where geom && > GeomFromText('POLYGON((620000 218000,620000 278000,690000 > 278000,690000 218000,620000 218000))',-1) limit 100 > > I didn't see any postggis filter than I try to do a spatial filter on > one of the 100 first results > Than I have a correct result ... > > Than why mapserver doesn't use postgis spatial filter ? Does I miss something ? > > Thank-you in advance > St?phane Brunner > > > > 2011/7/26 St?phane Brunner : >> Hello, >> >> I just test it with a shape file, and it's working... >> I will investigate a little bit more to know why it's not working with postgres. >> >> Sincerely >> St?phane Brunner >> >> >> 2011/7/25 Steve Lime : >>> Never mind on version, I saw 6.0.0 in the response... ;-) Steve >>> >>> On Mon, Jul 25, 2011 at 6:19 AM, St?phane Brunner >>> wrote: >>>> >>>> Hello, >>>> >>>> I have the mapfile [0]. when I done a GetFeature on the nummer [1] I >>>> have 4 results [2] (with duplicate but it's an other issue). >>>> When I done a spatial filter [3] I have no results [4] but I should >>>> have at least one result ... >>>> >>>> Thanks in advance for having a look on this issue. >>>> >>>> Sincerely yours >>>> St?phane Brunner >>>> >>>> Following: specified, GetCapabilities [5], describefeaturetype [6]. >>>> >>>> mapfile [0]: >>>> MAP >>>> NAME "map" >>>> >>>> EXTENT 620000 218000 690000 278000 >>>> >>>> UNITS METERS >>>> IMAGETYPE jpeg >>>> RESOLUTION 72 >>>> DEFRESOLUTION 72 >>>> IMAGECOLOR 255 255 255 >>>> STATUS ON >>>> FONTSET "fonts.conf" >>>> SYMBOLSET "symbole.sym" >>>> MAXSIZE 5000 >>>> >>>> PROJECTION >>>> "init=epsg:21781" >>>> END >>>> >>>> #### >>>> # Used by overlays >>>> #### >>>> OUTPUTFORMAT >>>> NAME png256 >>>> DRIVER AGG/PNG >>>> MIMETYPE "image/png256" >>>> IMAGEMODE RGBA >>>> EXTENSION "png" >>>> FORMATOPTION "INTERLACE=OFF" >>>> FORMATOPTION "QUANTIZE_FORCE=ON" >>>> FORMATOPTION "QUANTIZE_DITHER=OFF" >>>> FORMATOPTION "QUANTIZE_COLORS=256" >>>> END >>>> OUTPUTFORMAT >>>> NAME png >>>> DRIVER AGG/PNG >>>> MIMETYPE "image/png" >>>> IMAGEMODE RGBA >>>> EXTENSION "png" >>>> FORMATOPTION "INTERLACE=OFF" >>>> FORMATOPTION "QUANTIZE_DITHER=OFF" >>>> END >>>> >>>> WEB >>>> METADATA >>>> "ows_title" "map" >>>> "ows_srs" "epsg:21781" >>>> "ows_encoding" "UTF-8" >>>> "wms_feature_info_mime_type" "application/vnd.ogc.gml" >>>> "wms_enable_request" "*" >>>> "ows_enable_request" "*" >>>> "gml_include_items" "all" >>>> "gml_featureid" "id" >>>> "wfs_title" "map" >>>> "wfs_srs" "epsg:21781" >>>> END >>>> IMAGEPATH '/var/tmp/' >>>> END >>>> >>>> LEGEND >>>> IMAGECOLOR 240 240 240 >>>> LABEL >>>> FONT arial >>>> ANTIALIAS true >>>> TYPE truetype >>>> SIZE 9 >>>> COLOR 0 0 0 >>>> END >>>> END >>>> >>>> >>>> LAYER >>>> NAME "Liegenschaft_Query" >>>> TYPE POLYGON >>>> STATUS ON >>>> TEMPLATE fooOnlyForWMSGetFeatureInfo >>>> CONNECTIONTYPE postgis >>>> PROCESSING "CLOSE_CONNECTION=DEFER" >>>> CONNECTION "user=www-data password=www-data dbname=dev host=localhost" >>>> DATA "geom from (SELECT oid, t1.geom, t1.nummer FROM >>>> av.view_i_liegenschaft_all AS t1) AS foo using unique oid using >>>> SRID=-1" >>>> # GROUP "TOPIC_Liegenschaften_LN" >>>> EXTENT 620000 218000 690000 278000 >>>> METADATA >>>> "ows_title" "Liegenschaft_Query" >>>> "ows_srs" "epsg:21781" >>>> "id_attribute_string" "oid" >>>> "ows_featureid" "oid" >>>> "ows_geometries" "geom" >>>> "ows_geom_type" "polygon" >>>> "query_returned_attributes" "nummer" >>>> "gml_include_items" "oid,nummer,geom" >>>> "gml_geometries" "geom" >>>> "gml_geom_type" "polygon" >>>> "gml_nummer_type" "Character" >>>> #"gml_groups" "TOPIC_Liegenschaften_LN" >>>> "gml_featureid" "oid" >>>> "wfs_title" "Liegenschaft_Query" >>>> "wfs_srs" "epsg:21781" >>>> END >>>> DUMP TRUE >>>> PROJECTION >>>> "init=epsg:21781" >>>> END >>>> >>>> CLASS >>>> NAME "Liegenschaft" >>>> STYLE >>>> SYMBOL "circle" >>>> SIZE 3 >>>> OUTLINECOLOR 0 0 0 >>>> END >>>> END >>>> END >>>> END >>>> >>>> query on the nummer [1]: >>>> >>> version="1.0.0" maxFeatures="100" >>>> xsi:schemaLocation="http://www.opengis.net/wfs >>>> http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd" >>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> >>>> >>> xmlns:feature="http://mapserver.gis.umn.edu/mapserver"> >>>> >>>> >>>> nummer >>>> 3634 >>>> >>>> >>>> >>>> >>>> >>>> response on the nummer [2]: >>>> >>>> >>> xmlns:ms="http://mapserver.gis.umn.edu/mapserver" >>>> xmlns:wfs="http://www.opengis.net/wfs" >>>> xmlns:gml="http://www.opengis.net/gml" >>>> xmlns:ogc="http://www.opengis.net/ogc" >>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>> xsi:schemaLocation="http://www.opengis.net/wfs >>>> http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd >>>> http://mapserver.gis.umn.edu/mapserver >>>> >>>> http://c2cpc89.camptocamp.com/sbrunner/mapserv?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=feature:Liegenschaft_Query&OUTPUTFORMAT=XMLSCHEMA"> >>>> >>>> >>>> 661054.808000,244611.321000 >>>> 663053.704000,244888.622000 >>>> >>>> >>>> >>>> >>>> >>>> >>>> 661054.808000,244854.251000 >>>> 661088.687000,244888.622000 >>>> >>>> >>>> >>>> >>>> >>>> >>>> 661076.579000,244888.622000 >>>> 661054.808000,244875.484000 661062.744000,244858.448000 >>>> 661064.653000,244854.251000 661088.687000,244869.173000 >>>> 661076.579000,244888.622000 >>>> >>>> >>>> >>>> >>>> 2380997 >>>> 3634 >>>> >>>> >>>> >>>> >>>> >>>> >>>> 661054.808000,244854.251000 >>>> 661088.687000,244888.622000 >>>> >>>> >>>> >>>> >>>> >>>> >>>> 661076.579000,244888.622000 >>>> 661054.808000,244875.484000 661062.744000,244858.448000 >>>> 661064.653000,244854.251000 661088.687000,244869.173000 >>>> 661076.579000,244888.622000 >>>> >>>> >>>> >>>> >>>> 2380997 >>>> 3634 >>>> >>>> >>>> >>>> >>>> >>>> >>>> 663017.565000,244611.321000 >>>> 663053.704000,244650.084000 >>>> >>>> >>>> >>>> >>>> >>>> >>>> 663017.565000,244635.722000 >>>> 663033.235000,244611.321000 663045.949000,244619.485000 >>>> 663053.704000,244626.417000 663034.337000,244650.084000 >>>> 663017.565000,244635.722000 >>>> >>>> >>>> >>>> >>>> 2384539 >>>> 3634 >>>> >>>> >>>> >>>> >>>> >>>> >>>> 663017.565000,244611.321000 >>>> 663053.704000,244650.084000 >>>> >>>> >>>> >>>> >>>> >>>> >>>> 663017.565000,244635.722000 >>>> 663033.235000,244611.321000 663045.949000,244619.485000 >>>> 663053.704000,244626.417000 663034.337000,244650.084000 >>>> 663017.565000,244635.722000 >>>> >>>> >>>> >>>> >>>> 2384539 >>>> 3634 >>>> >>>> >>>> >>>> >>>> >>>> query with spatial filter [3]: >>>> >>> version="1.0.0" maxFeatures="100" >>>> xsi:schemaLocation="http://www.opengis.net/wfs >>>> http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd" >>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> >>>> >>> xmlns:feature="http://mapserver.gis.umn.edu/mapserver"> >>>> >>>> >>>> geom >>>> >>>> 661070.024,244872.084 >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> response with spatial filter [4]: >>>> >>>> >>> xmlns:ms="http://mapserver.gis.umn.edu/mapserver" >>>> xmlns:wfs="http://www.opengis.net/wfs" >>>> xmlns:gml="http://www.opengis.net/gml" >>>> xmlns:ogc="http://www.opengis.net/ogc" >>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>> xsi:schemaLocation="http://www.opengis.net/wfs >>>> http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd >>>> http://mapserver.gis.umn.edu/mapserver >>>> >>>> http://c2cpc89.camptocamp.com/sbrunner/mapserv?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=feature:Liegenschaft_Query&OUTPUTFORMAT=XMLSCHEMA"> >>>> >>>> missing >>>> >>>> >>>> >>>> >>>> GetCapabilities [5]: >>>> >>>> >>> version="1.0.0" >>>> updateSequence="0" >>>> xmlns="http://www.opengis.net/wfs" >>>> xmlns:ogc="http://www.opengis.net/ogc" >>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>> xsi:schemaLocation="http://www.opengis.net/wfs >>>> http://schemas.opengis.net/wfs/1.0.0/WFS-capabilities.xsd"> >>>> >>>> >>>> >>>> >>>> MapServer WFS >>>> Amtliche Vermessung >>>> Die amtliche Vermessung nach DM01 Darstellung als WMS >>>> Dienst f?r MapFish Projekte >>>> >>>> http://c2cpc89.camptocamp.com/sbrunner/mapserv? >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> onlineResource="http://c2cpc89.camptocamp.com/sbrunner/mapserv?" >>>> /> >>>> >>>> >>>> >>>> >>>> >>>> >>> onlineResource="http://c2cpc89.camptocamp.com/sbrunner/mapserv?" /> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> onlineResource="http://c2cpc89.camptocamp.com/sbrunner/mapserv?" >>>> /> >>>> >>>> >>>> >>>> >>>> >>> onlineResource="http://c2cpc89.camptocamp.com/sbrunner/mapserv?" /> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> onlineResource="http://c2cpc89.camptocamp.com/sbrunner/mapserv?" >>>> /> >>>> >>>> >>>> >>>> >>>> >>> onlineResource="http://c2cpc89.camptocamp.com/sbrunner/mapserv?" /> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> Liegenschaft_Query >>>> Liegenschaft_Query >>>> >>>> epsg:21781 >>>> >>> maxy="278000" /> >>>> >>>> >>>> Liegenschaft_Query_ALL >>>> Liegenschaft_Query_ALL >>>> epsg:21781 >>>> >>>> >>> maxy="278000" /> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> describefeaturetype [6]: >>>> >>>> >>> targetNamespace="http://mapserver.gis.umn.edu/mapserver" >>>> xmlns:ms="http://mapserver.gis.umn.edu/mapserver" >>>> xmlns:ogc="http://www.opengis.net/ogc" >>>> xmlns:xsd="http://www.w3.org/2001/XMLSchema" >>>> xmlns="http://www.w3.org/2001/XMLSchema" >>>> xmlns:gml="http://www.opengis.net/gml" >>>> elementFormDefault="qualified" version="0.1" > >>>> >>>> >>> schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd" >>>> /> >>>> >>>> >>> type="ms:Liegenschaft_QueryType" >>>> substitutionGroup="gml:_Feature" /> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> minOccurs="0" maxOccurs="1"/> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> -- >>>> camptocamp.com >>>> mapfish.org >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> >> >> >> -- >> camptocamp.com >> mapfish.org >> > > > > -- > camptocamp.com > mapfish.org From m.koskowski at hotmail.de Sun Jul 31 11:25:43 2011 From: m.koskowski at hotmail.de (Marek Koskowski) Date: Sun, 31 Jul 2011 20:25:43 +0200 Subject: [mapserver-users] getfeatureinfo lookuptable Message-ID: Hi List, i'm very new to mapserver, so this maybe a stupid question. Is it possible to use some kind of LUT with getfeatureinfo? I want to get the attributes from my shapefile and additional information from a textfile (depending on attributes) as a response. Thanks Marek -------------- next part -------------- An HTML attachment was scrubbed... URL: From forums at craniumjuice.com Thu Jul 28 14:06:53 2011 From: forums at craniumjuice.com (forums) Date: Thu, 28 Jul 2011 21:06:53 -0000 Subject: [mapserver-users] Possible tile_map_edge_buffer issue In-Reply-To: References: <4e3170a3.8760340a.5005.63b5SMTPIN_ADDED@mx.google.com> Message-ID: I would also like to point out that features on the edge of the missing tile, will display on the adjacent tile where the overlap occurs. Bottom right hand corner of the image I have attached shows a little green sliver, that's from my data source. The big yellow dot is the previously mentioned feature I added. On Thu, Jul 28, 2011 at 9:28 AM, forums wrote: > I was just about to post this EXACT same issue. ?I have discovered > something else though. ?I can force a feature and git to show up where > the other missing data is. ?It shows up on tile=0+1+2 ?Also If I view > the map as mode=map, it works fine, I see my YellowDot and my actual > data from my data source. > > LAYER > ? ? ? ?NAME "YellowDot" > ? ? ? ?STATUS DEFAULT > ? ? ? ?TYPE POINT > ? ? ? ?FEATURE POINTS -100 20 END END > ? ? ? ?CLASS > ? ? ? ? ? ?STYLE > ? ? ? ? ? ? ? ?SYMBOL "circle" > ? ? ? ? ? ? ? ?SIZE 30 > ? ? ? ? ? ? ? ?COLOR 255 255 0 > ? ? ? ? ? ? ? ?OUTLINECOLOR 255 0 0 > ? ? ? ? ? ?END > ? ? ? ?END > END > > > > > On Thu, Jul 28, 2011 at 9:18 AM, Charlie Allgrove > wrote: >> Hi >> >> >> >> I have an issue when using tile_map_edge_buffer functionality with mode=tile >> on a Google map view which displays the whole world at zoom 0,1 or 2. It >> probably manifests itself at higher zoom levels, but will be less obvious >> (if at all) since I'm only rendering data over land. >> >> >> >> In my map file I have (amongst others) >> WEB >> >> ??? METADATA >> >> ?? ?????"tile_map_edge_buffer" "32" # 32 pixel rendering buffer >> >> ??????? "http_max_age" "86400" >> >> ??? END >> >> ? END >> >> >> >> My development code is not on a publicly available server at the moment, so >> I can't post a link but when I am looking at a Google map at zoom levels 0,1 >> or 2, the tiles consistently cut off approx half-way across the USA (see >> attached screenshot). >> >> It seems that {tile=0 1 2} does not render with the buffering enabled, since >> the buffered area extends effectively to a negative tile reference {-1 1 2} >> which is illegal. >> >> >> >> Is there any way around this - is it possible only to enable the buffer for >> zooms >=3? >> >> >> >> Cheers >> >> >> >> Charlie >> >> >> >> -- >> >> Charlie Allgrove >> >> Senior Developer >> >> >> >> Connection Services :: Business Mobility for a Wireless World >> >> >> >> Connection Services Ltd is a company incorporated under the laws of England >> and Wales with company number 6520674 whose registered office is at Griffins >> Court, 24-32 London Road, Newbury, Berkshire, RG14 1JX. The information in >> this e-mail and any attachments is confidential and may be legally >> privileged. It is intended solely for the addressee or addressees. If you >> are not an intended recipient, please delete the message and any attachments >> and notify the sender of misdelivery: any use or disclosure of the contents >> of either is unauthorised and may be unlawful. All liability for viruses is >> excluded to the fullest extent permitted by law. Any views expressed in this >> message are those of the individual sender. In accordance with the >> provisions of its Terms of Business the Company does not accept instructions >> or the creation of contractual obligations by unconfirmed electronic >> transmission. >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > > -- > A computer without Windows is like chocolate cake without mustard. > -- A computer without Windows is like chocolate cake without mustard. -------------- next part -------------- A non-text attachment was scrubbed... Name: Map.png Type: image/png Size: 126339 bytes Desc: not available URL: