From Steve.Lime at state.mn.us Tue Feb 1 07:07:07 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 1 Feb 2011 09:07:07 -0600 Subject: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR In-Reply-To: <1296495379.29349.12.camel@tommaso-laptop> References: <1296142978.2205.16.camel@tommaso-laptop> <4D4193AE.4010004@ulb.ac.be>,<1296150918.2246.6.camel@tommaso-laptop> , <1296495379.29349.12.camel@tommaso-laptop> Message-ID: Actually I just ran a test against 5.6 and found I could change a labels background color via URL. Syntax is: map.layer[some_layer].class[0]=LABEL+BACKGROUNDCOLOR+255+0+0+END Steve ________________________________________ From: tommaso [tommasodb at googlemail.com] Sent: Monday, January 31, 2011 11:36 AM To: Lime, Steve D (DNR) Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR Hallo Steve, I can try to hack the source (or rather I'll ask a workmate). More details were welcome, thanks. Regards, Tommaso On Mon, 2011-01-31 at 10:08 -0600, Lime, Steve D (DNR) wrote: Been on a short holiday, where did this get left? If you can hack the source it's a very simple change (I think) to maplexer.l to allow the updates you need. I can provide more direction if necessary. - Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of tommaso [tommasodb at googlemail.com] Sent: Thursday, January 27, 2011 11:55 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR On Thu, 2011-01-27 at 16:47 +0100, Julien Cigar wrote: use SLD ? Thanks, this were a solution but I should radically change my project. I will try it if there is not other ways. Other ideas? Tommaso From David.Hildebrand at afsc.ca Tue Feb 1 15:46:01 2011 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Tue, 1 Feb 2011 16:46:01 -0700 Subject: [mapserver-users] WCS In-Reply-To: References: <1296142978.2205.16.camel@tommaso-laptop><4D4193AE.4010004@ulb.ac.be>, <1296150918.2246.6.camel@tommaso-laptop>, <1296495379.29349.12.camel@tommaso-laptop> Message-ID: <9188AB5935664040805E01E348A2B81D1BF690D7@lacex1.afsc.ads> I am trying to develop a WCS layer (1.0.0) and I can successfully issue the GetCapabilities and DescribeCoverage requests. However, when I issue a GetCoverage request I get a bounding box error due to bad coordinates. The layer is also set up as a WMS layer (1.1.1) and a GetMap request works fine. The metadata ows_srs and ows_resolution parameters are being used in the map file and these work fine for WMS requests. Should I be using version 1.1.0? Any ideas? =========================== David V. Hildebrand Agriculture Financial Services Corporation (403) 782-8239 www.afsc.ca This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at hostgis.com Tue Feb 1 18:10:31 2011 From: gregor at hostgis.com (Gregor at HostGIS) Date: Tue, 01 Feb 2011 18:10:31 -0800 Subject: [mapserver-users] PHP MapScript: undefined symbol: php_regcomp Message-ID: <4D48BD17.3010805@hostgis.com> Hey all. I am hitting upon a weird problem with PHP MapScript: it will load without issue, but crashes when trying to open a mapfile. /var/www/cgi-bin/php: symbol lookup error: /usr/lib/php/extensions/php_mapscript.so: undefined symbol: php_regcomp Premature end of script headers: php I've hit up Google, but only find a few references and none of them solved. I tried compiling MapServer and MapScript in 5.0.0, 5.6.4, and 5.4.2 and I get this same result in every case. So it's not something very version related. Given the name of the error, I was wondering if it's something in how PHP was compiled. Last I heard, the advice was to use --with-regex=system which I have. PHP 5.2.14 ./configure --prefix=/usr --with-libdir=lib64 --with-config-file-path=/etc/apache --sysconfdir=/etc --enable-force-cgi-redirect --with-regex=system --with-freetype-dir=/usr --with-openssl --with-zlib --with-curl --enable-ftp --with-pgsql --with-mysql --with-mysqli --enable-dbase --enable-soap --with-gettext --enable-mbstring=all --enable-mbregex --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr Any thoughts on this? -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX "No one cares if you can back up ? only if you can recover." From Jukka.Rahkonen at mmmtike.fi Tue Feb 1 21:14:49 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 2 Feb 2011 07:14:49 +0200 Subject: [mapserver-users] WCS References: <1296142978.2205.16.camel@tommaso-laptop><4D4193AE.4010004@ulb.ac.be>, <1296150918.2246.6.camel@tommaso-laptop>, <1296495379.29349.12.camel@tommaso-laptop> <9188AB5935664040805E01E348A2B81D1BF690D7@lacex1.afsc.ads> Message-ID: Hi, Your layer definitions and the GetCoverare request you were using would help pretty much. -Jukka Rahkonen- David Hildebrand wrote: > I am trying to develop a WCS layer (1.0.0) and I can successfully issue the GetCapabilities and DescribeCoverage requests. However, when I issue a GetCoverage request I get a bounding box error due to bad coordinates. The layer is also set up as a WMS layer (1.1.1) and a GetMap request works fine. The metadata ows_srs and ows_resolution parameters are being used in the map file and these work fine for WMS requests. Should I be using version 1.1.0? > Any ideas? =========================== David V. Hildebrand Agriculture Financial Services Corporation (403) 782-8239 www.afsc.ca This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email. From jmckenna at gatewaygeomatics.com Wed Feb 2 04:44:26 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 02 Feb 2011 08:44:26 -0400 Subject: [mapserver-users] WCS In-Reply-To: <9188AB5935664040805E01E348A2B81D1BF690D7@lacex1.afsc.ads> References: <1296142978.2205.16.camel@tommaso-laptop><4D4193AE.4010004@ulb.ac.be>, <1296150918.2246.6.camel@tommaso-laptop>, <1296495379.29349.12.camel@tommaso-laptop> <9188AB5935664040805E01E348A2B81D1BF690D7@lacex1.afsc.ads> Message-ID: <4D4951AA.7000602@gatewaygeomatics.com> On 11-02-01 7:46 PM, David Hildebrand wrote: > I am trying to develop a WCS layer (1.0.0) and I can successfully issue > the GetCapabilities and DescribeCoverage requests. However, when I issue > a GetCoverage request I get a bounding box error due to bad coordinates. > The layer is also set up as a WMS layer (1.1.1) and a GetMap request > works fine. The metadata ows_srs and ows_resolution parameters are being > used in the map file and these work fine for WMS requests. Should I be > using version 1.1.0? You can also see http://demo.mapserver.org/ for working MapServer WCS requests. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From boolean10001 at yahoo.com Wed Feb 2 07:37:27 2011 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Wed, 2 Feb 2011 07:37:27 -0800 (PST) Subject: [mapserver-users] WCS In-Reply-To: <9188AB5935664040805E01E348A2B81D1BF690D7@lacex1.afsc.ads> References: <1296142978.2205.16.camel@tommaso-laptop><4D4193AE.4010004@ulb.ac.be>, <1296150918.2246.6.camel@tommaso-laptop>, <1296495379.29349.12.camel@tommaso-laptop> <9188AB5935664040805E01E348A2B81D1BF690D7@lacex1.afsc.ads> Message-ID: <784921.11830.qm@web38207.mail.mud.yahoo.com> David, I got several WCS working. Remember that EXTENT must be specified as: MinX MinY MaxX MaxY Like this: EXTENT 667850.414115 2160714.942368 672400.414115 2165844.942368 Cheers IC Carlos Ruiz ________________________________ From: David Hildebrand To: mapserver-users at lists.osgeo.org Sent: Tue, February 1, 2011 5:46:01 PM Subject: [mapserver-users] WCS I am trying to develop a WCS layer (1.0.0) and I can successfully issue the GetCapabilities and DescribeCoverage requests. However, when I issue a GetCoverage request I get a bounding box error due to bad coordinates. The layer is also set up as a WMS layer (1.1.1) and a GetMap request works fine. The metadata ows_srs and ows_resolution parameters are being used in the map file and these work fine for WMS requests. Should I be using version 1.1.0? Any ideas? =========================== David V. Hildebrand Agriculture Financial Services Corporation (403) 782-8239 www.afsc.ca This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Hildebrand at afsc.ca Wed Feb 2 11:11:06 2011 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Wed, 2 Feb 2011 12:11:06 -0700 Subject: [mapserver-users] WCS In-Reply-To: References: <1296142978.2205.16.camel@tommaso-laptop><4D4193AE.4010004@ulb.ac.be>, <1296150918.2246.6.camel@tommaso-laptop>, <1296495379.29349.12.camel@tommaso-laptop> <9188AB5935664040805E01E348A2B81D1BF690D7@lacex1.afsc.ads> Message-ID: <9188AB5935664040805E01E348A2B81D1BF690DB@lacex1.afsc.ads> Jukka: If I issue the request in the same units as the coverage (as shown below) the request works fine. REQUEST=GetCoverage COVERAGE=landsat_test CRS=EPSG:2956 BBOX=410000,5726000,411000,5727000 RESX=30 RESY=30 FORMAT=GTiff RESPONSE_CRS=EPSG:2956 If I issue the request in another projection (as shown below) the request has issues with reprojection. REQUEST=GetCoverage COVERAGE=landsat_test CRS=EPSG:4269 BBOX=-113.179,51.761,-113.177,51.763 RESX=30 RESY=30 FORMAT=GTiff RESPONSE_CRS=EPSG:3400 The service exception I get is msWCSGetCoverage(): WCS server error. Requested BBOX (-98.179,66.761,-98.179,66.761) is outside requested coverage BBOX (281685,5612685,538515,5840415) As you can see, the requested BBOX the server picks up is nowhere near the BBOX I provide in the URL. The basic content of my map file is shown below. As you can see the layer is WMS as well as WCS and the WMS call works fine. MAP NAME "mapserv" OUTPUTFORMAT NAME 'AGG_JPEG' DRIVER AGG/JPEG IMAGEMODE RGB END WEB METADATA "ows_title" "OGC mapserv" "ows_contactorganization" "Agriculture Financial Services Corporation" "ows_srs" "EPSG:3400 EPSG:2955 EPSG:2956 EPSG:3401 EPSG:3402 EPSG:3403 EPSG:4267 EPSG:4269 EPSG:4326" "ows_http_max_age" "3" "wcs_label" "WCS mapserv" "wcs_onlineresource" "http://172.16.12.76/cgi-bin/mapserv.wcs.100.exe?" "wms_feature_info_mime_type" "text/html" "wms_title" "WMS mapserv" "wms_onlineresource" "http://172.16.12.76/cgi-bin/mapserv.wms.111.exe?" END IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END SIZE 1200 1000 #arbitrary... PROJECTION "init=epsg:3400" END EXTENT 133000 5365600 905200 6721100 UNITS meters LAYER NAME "Landsat_test" METADATA "ows_srs" "EPSG:2956" #UTM12... "ows_resolution" "30 30" "wcs_name" "Landsat_test" "wcs_label" "Landsat_test 30m" "wcs_bandcount" "3" "wcs_rangeset_name" "TheRangesetName" "wcs_rangeset_label" "TheRangesetLabel" "wms_title" "Landsat_test" "wms_opaque" "1" END STATUS off TYPE raster DATA "//Plcoressatsb01/G$/Landsat/2010/processed/4124_708.tif" PROJECTION "init=epsg:2956" END DUMP TRUE END END Any help would be appreciated. =========================== David V. Hildebrand Agriculture Financial Services Corporation (403) 782-8239 www.afsc.ca This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email. -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: Tuesday, February 01, 2011 10:15 PM To: David Hildebrand; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WCS Hi, Your layer definitions and the GetCoverare request you were using would help pretty much. -Jukka Rahkonen- David Hildebrand wrote: > I am trying to develop a WCS layer (1.0.0) and I can successfully issue the GetCapabilities and DescribeCoverage requests. However, when I issue a GetCoverage request I get a bounding box error due to bad coordinates. The layer is also set up as a WMS layer (1.1.1) and a GetMap request works fine. The metadata ows_srs and ows_resolution parameters are being used in the map file and these work fine for WMS requests. Should I be using version 1.1.0? > Any ideas? =========================== David V. Hildebrand Agriculture Financial Services Corporation (403) 782-8239 www.afsc.ca This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregcorradini at gmail.com Wed Feb 2 13:45:20 2011 From: gregcorradini at gmail.com (gregcorradini) Date: Wed, 2 Feb 2011 13:45:20 -0800 (PST) Subject: [mapserver-users] TMS cache with Mapserver through GDAL_WMS and TileCache? Message-ID: <1296683120609-5986661.post@n2.nabble.com> Hello, I have a TMS cache that I want to use with Mapserver, but it doesn't seem possible to do directly. I want check my understanding of the situation. I'm also looking for any advice from those who've implemented this before. It sounds like I can use GDAL_WMS (example here http://www.gdal.org/frmt_wms_openstreetmap_tms.xml) to talk to a TMS cache or TileCache directly and get back stitched images. Do I have this right? Are there other options? How is this configured or how does this work within Mapserver? much thanks -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/TMS-cache-with-Mapserver-through-GDAL-WMS-and-TileCache-tp5986661p5986661.html Sent from the Mapserver - User mailing list archive at Nabble.com. From olt at omniscale.de Wed Feb 2 23:06:36 2011 From: olt at omniscale.de (Oliver Tonnhofer) Date: Thu, 3 Feb 2011 08:06:36 +0100 Subject: [mapserver-users] TMS cache with Mapserver through GDAL_WMS and TileCache? In-Reply-To: <1296683120609-5986661.post@n2.nabble.com> References: <1296683120609-5986661.post@n2.nabble.com> Message-ID: <1AFA875B-44C6-4F9F-AA7C-CBB447497CF6@omniscale.de> Hi Greg, On 02.02.2011, at 22:45, gregcorradini wrote: > It sounds like I can use GDAL_WMS (example here > http://www.gdal.org/frmt_wms_openstreetmap_tms.xml) to talk to a TMS cache > or TileCache directly and get back stitched images. Do I have this right? > Are there other options? How is this configured or how does this work within > Mapserver? You should have a look at MapProxy (http://mapproxy.org). It's a tile cache that supports full WMS requests (i.e. it stitches tiles together and even reprojects them). Regards, Oliver Disclaimer: I'm the core developer of MapProxy. From mwkorver at gmail.com Thu Feb 3 00:12:03 2011 From: mwkorver at gmail.com (Mark Korver) Date: Thu, 3 Feb 2011 02:12:03 -0600 Subject: [mapserver-users] TMS cache with Mapserver through GDAL_WMS and TileCache? In-Reply-To: <1AFA875B-44C6-4F9F-AA7C-CBB447497CF6@omniscale.de> References: <1296683120609-5986661.post@n2.nabble.com> <1AFA875B-44C6-4F9F-AA7C-CBB447497CF6@omniscale.de> Message-ID: On Thu, Feb 3, 2011 at 1:06 AM, Oliver Tonnhofer wrote: > Hi Greg, > > On 02.02.2011, at 22:45, gregcorradini wrote: >> It sounds like I can use GDAL_WMS (example here >> http://www.gdal.org/frmt_wms_openstreetmap_tms.xml) to talk to a TMS cache >> or TileCache directly and get back stitched images. Do I have this right? >> Are there other options? How is this configured or how does this work within >> Mapserver? > > You should have a look at MapProxy (http://mapproxy.org). It's a tile cache that supports full WMS requests (i.e. it stitches tiles together and even reprojects them). > > > Regards, > Oliver > > Disclaimer: I'm the core developer of MapProxy._______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From laurent.baey at free.fr Thu Feb 3 07:36:16 2011 From: laurent.baey at free.fr (Laurent BAEY) Date: Thu, 03 Feb 2011 16:36:16 +0100 Subject: [mapserver-users] srid dropped at postgis request Message-ID: <1ccdc4795576107a50415034b6928676@localhost> Hello I've srid issues since mapserver 5.6.6 and postgis version : "POSTGIS="1.4.2" GEOS="3.2.2-CAPI-1.6.2" PROJ="Rel. 4.6.1, 21 August 2008" USE_STATS" this is an extract of my mapscript generated mapfile layer section : LAYER CONNECTION "user=username password=passwd dbname=database host=localhost port=5432" CONNECTIONTYPE POSTGIS DATA "the_geom FROM zones" DEBUG 5 NAME "126378_55" PROJECTION "init=epsg:27572" END STATUS ON TYPE POLYGON UNITS METERS CLASS NAME "CLASSNAME" STYLE ANGLE 360 COLOR 221 136 187 SYMBOL 0 END END END The MAP has PROJECTION "init=epsg:27572" END But I get : [Thu Feb 3 16:11:46 2011].488534 msPostGISLayerWhichShapes query: select encode(AsBinary(force_collection(force_2d("the_geom")),'NDR'),'hex') as geom,"id_zc" from zones where the_geom && GeomFromText('POLYGON((-148184.01937046 1431436.44655493,-148184.01937046 3564931.59218599,1351815.98062954 3564931.59218599,1351815.98062954 1431436.44655493,-148184.01937046 1431436.44655493))',find_srid('','zones','the_geom')) [Thu Feb 3 16:11:46 2011].747437 msPostGISLayerWhichShapes(): Query error. Error (ERROR: Operation on two geometries with different SRIDs I see that the postgis function AsBinary drops the geom srid, then "encode(AsBinary(force_collection(force_2d("the_geom")),'NDR'),'hex')" has srid=-1. Is there something new that I've missed concerning srids since 5.2 mapserver version ? Thank you for your help. Laurent From osgeo.mailinglist at gmail.com Thu Feb 3 09:17:57 2011 From: osgeo.mailinglist at gmail.com (Thomas Gratier) Date: Thu, 3 Feb 2011 18:17:57 +0100 Subject: [mapserver-users] srid dropped at postgis request In-Reply-To: <1ccdc4795576107a50415034b6928676@localhost> References: <1ccdc4795576107a50415034b6928676@localhost> Message-ID: Hello, Why your bbox cover an area outside the Lambert II projected bounds (e.g. http://spatialreference.org/ref/epsg/27572/ )? Maybe your using the wrong projection because your POLYGON coordinates look like this one http://spatialreference.org/ref/epsg/2154/ If you're sure your data are in the right projection, do your data in PostGIS with an srid 27572 et not -1? Regards ThomasG GIS specialist -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at hostgis.com Thu Feb 3 12:45:33 2011 From: gregor at hostgis.com (Gregor at HostGIS) Date: Thu, 03 Feb 2011 12:45:33 -0800 Subject: [mapserver-users] Building MapScript 5.4: linker errors Message-ID: <4D4B13ED.1000900@hostgis.com> I am unable to compile PHP MapScript 5.4 The build of mapserv and other binaries works A-OK, but not PHP MapScript. It bails with a bunch of linker errors, as if PHP couldn't be found or couldn't be loaded... I can compile PHP MapScript on 5.2 and 5.0 and 5.6 just fine, if that's a clue. Just not 5.4 And for compatibility with GeoMoose and p.Mapper we would prefer to use 5.4 The OS is Slamd64 aka 64-bit Slackware Linux. MapServer configure line: ./configure --with-php=/usr/include/php --with-threads \ --with-geos --with-proj \ --with-pdf=/usr --with-gd=/usr --with-ogr --with-gdal \ --without-tiff --with-postgis --with-mygis \ --with-agg --with-freetype --with-experimental-png \ --with-wms --with-wmsclient --with-wfs --with-wfsclient \ --with-wcs --with-sos The error is rather lengthy, but starts off with this: gcc -fPIC -O2 -fPIC -Wall -DCOMPILE_DL=1 -DPHP4 -DNEED_NONBLOCKING_STDERR -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_MYGIS -DUSE_POSTGIS -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DUSE_THREAD -DUSE_PROJ -DUSE_EPPL -DUSE_RGBA_PNG -DUSE_AGG -DUSE_PDF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB -I/tmp/mapserver-5.4.2 -I/usr/include/libxml2 -I/usr/include/mysql -I/usr/include -I/usr/include -I/usr/include -I/usr/include/agg2 -I/usr/include/freetype2 -I/usr/include -I/usr/include -I/usr/include/php -I/usr/include/php/dl -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/include -I/usr/include/php/TSRM -I -c -o php_mapscript_util.o php_mapscript_util.c /usr/lib64/gcc/x86_64-slamd64-linux/4.1.2/../../../../lib64/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' /tmp/cc7Nlz8C.o: In function `_phpms_object_init': php_mapscript_util.c:(.text+0x17): undefined reference to `_object_init_ex' php_mapscript_util.c:(.text+0x2e): undefined reference to `add_property_resource_ex' /tmp/cc7Nlz8C.o: In function `_phpms_add_property_object': php_mapscript_util.c:(.text+0x89): undefined reference to `add_property_zval_ex' php_mapscript_util.c:(.text+0xc7): undefined reference to `zend_error' /tmp/cc7Nlz8C.o: In function `_phpms_fetch_property_resource': php_mapscript_util.c:(.text+0x108): undefined reference to `zend_error' php_mapscript_util.c:(.text+0x156): undefined reference to `zend_hash_find' php_mapscript_util.c:(.text+0x185): undefined reference to `zend_error' php_mapscript_util.c:(.text+0x1aa): undefined reference to `zend_error' -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX "No one cares if you can back up ? only if you can recover." From gregor at hostgis.com Thu Feb 3 12:45:39 2011 From: gregor at hostgis.com (Gregor at HostGIS) Date: Thu, 03 Feb 2011 12:45:39 -0800 Subject: [mapserver-users] PHP MapScript: undefined symbol: php_regcomp In-Reply-To: <4D48BD17.3010805@hostgis.com> References: <4D48BD17.3010805@hostgis.com> Message-ID: <4D4B13F3.5020008@hostgis.com> > /var/www/cgi-bin/php: symbol lookup error: > /usr/lib/php/extensions/php_mapscript.so: undefined symbol: php_regcomp > Premature end of script headers: php Any thoughts on this? I was poking around today, and noticed that the PHP being used was erroneously compiled as a module, and was thus forcing the use of its bundled regex. Oops! I backtracked. Compiled as CGI, verified that "#define REGEX 0" is present in php_config.h, and verified that it is now using regex=system via phpinfo(): Regex Library => System library enabled Would anyone else concur that this was likely the issue here? -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX "No one cares if you can back up ? only if you can recover." From dmorissette at mapgears.com Thu Feb 3 12:55:05 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 03 Feb 2011 15:55:05 -0500 Subject: [mapserver-dev] Re: [mapserver-users] PHP MapScript: undefined symbol: php_regcomp In-Reply-To: <4D4B13F3.5020008@hostgis.com> References: <4D48BD17.3010805@hostgis.com> <4D4B13F3.5020008@hostgis.com> Message-ID: <4D4B1629.4030703@mapgears.com> On 11-02-03 03:45 PM, Gregor at HostGIS wrote: >> /var/www/cgi-bin/php: symbol lookup error: >> /usr/lib/php/extensions/php_mapscript.so: undefined symbol: php_regcomp >> Premature end of script headers: php > > Any thoughts on this? > > I was poking around today, and noticed that the PHP being used was > erroneously compiled as a module, and was thus forcing the use of its > bundled regex. Oops! > > I backtracked. Compiled as CGI, verified that "#define REGEX 0" is > present in php_config.h, and verified that it is now using regex=system > via phpinfo(): > Regex Library => System library enabled > > Would anyone else concur that this was likely the issue here? > Hi Greg, Yes, that explanation makes complete sense. I had not replied because I didn't have much advice to provide other than "make sure the --with-regex=system switch really kicks in, sometimes it doesn't"... but maybe I should have given you at least that pointer. Daniel -- Daniel Morissette http://www.mapgears.com/ From gregor at hostgis.com Thu Feb 3 12:58:14 2011 From: gregor at hostgis.com (Gregor at HostGIS) Date: Thu, 03 Feb 2011 12:58:14 -0800 Subject: [mapserver-users] Re: [mapserver-dev] PHP MapScript: undefined symbol: php_regcomp In-Reply-To: <4D4B1629.4030703@mapgears.com> References: <4D48BD17.3010805@hostgis.com> <4D4B13F3.5020008@hostgis.com> <4D4B1629.4030703@mapgears.com> Message-ID: <4D4B16E6.9050205@hostgis.com> On 2/3/2011 12:55 PM, Daniel Morissette wrote: > I had not replied because I > didn't have much advice to provide other than "make sure the > --with-regex=system switch really kicks in, sometimes it doesn't"... > but maybe I should have given you at least that pointer. Thanks to the long memory of the Internet, it actually was you who pointed me that direction. I got onto that train of thought thanks to a posting of yours from 2005 or 2003, I forget which. -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX "No one cares if you can back up ? only if you can recover." From dmorissette at mapgears.com Thu Feb 3 12:59:18 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 03 Feb 2011 15:59:18 -0500 Subject: [mapserver-users] Building MapScript 5.4: linker errors In-Reply-To: <4D4B13ED.1000900@hostgis.com> References: <4D4B13ED.1000900@hostgis.com> Message-ID: <4D4B1726.6080100@mapgears.com> No good advice to provide other than start looking at the errors from the top. The command that you quote is a .c -> .o compilation (gcc -c ...) but the errors look like linker errors... are you sure there you didn't trim any warning/errors in-between the two that could provide a hint? On 11-02-03 03:45 PM, Gregor at HostGIS wrote: > I am unable to compile PHP MapScript 5.4 The build of mapserv and other > binaries works A-OK, but not PHP MapScript. It bails with a bunch of > linker errors, as if PHP couldn't be found or couldn't be loaded... > > I can compile PHP MapScript on 5.2 and 5.0 and 5.6 just fine, if that's > a clue. Just not 5.4 And for compatibility with GeoMoose and p.Mapper we > would prefer to use 5.4 > > The OS is Slamd64 aka 64-bit Slackware Linux. > > MapServer configure line: > > ./configure --with-php=/usr/include/php --with-threads \ > --with-geos --with-proj \ > --with-pdf=/usr --with-gd=/usr --with-ogr --with-gdal \ > --without-tiff --with-postgis --with-mygis \ > --with-agg --with-freetype --with-experimental-png \ > --with-wms --with-wmsclient --with-wfs --with-wfsclient \ > --with-wcs --with-sos > > The error is rather lengthy, but starts off with this: > > gcc -fPIC -O2 -fPIC -Wall -DCOMPILE_DL=1 -DPHP4 > -DNEED_NONBLOCKING_STDERR -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR > -DUSE_LIBXML2 -DUSE_CURL -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR > -DUSE_MYGIS -DUSE_POSTGIS -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DUSE_THREAD > -DUSE_PROJ -DUSE_EPPL -DUSE_RGBA_PNG -DUSE_AGG -DUSE_PDF -DUSE_GD_GIF > -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW > -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB > -I/tmp/mapserver-5.4.2 -I/usr/include/libxml2 -I/usr/include/mysql > -I/usr/include -I/usr/include -I/usr/include -I/usr/include/agg2 > -I/usr/include/freetype2 -I/usr/include -I/usr/include > -I/usr/include/php -I/usr/include/php/dl -I/usr/include/php/main > -I/usr/include/php/Zend -I/usr/include/php/include > -I/usr/include/php/TSRM -I -c -o php_mapscript_util.o > > php_mapscript_util.c > /usr/lib64/gcc/x86_64-slamd64-linux/4.1.2/../../../../lib64/crt1.o: In > function `_start': > (.text+0x20): undefined reference to `main' > /tmp/cc7Nlz8C.o: In function `_phpms_object_init': > php_mapscript_util.c:(.text+0x17): undefined reference to `_object_init_ex' > php_mapscript_util.c:(.text+0x2e): undefined reference to > `add_property_resource_ex' > /tmp/cc7Nlz8C.o: In function `_phpms_add_property_object': > php_mapscript_util.c:(.text+0x89): undefined reference to > `add_property_zval_ex' > php_mapscript_util.c:(.text+0xc7): undefined reference to `zend_error' > /tmp/cc7Nlz8C.o: In function `_phpms_fetch_property_resource': > php_mapscript_util.c:(.text+0x108): undefined reference to `zend_error' > php_mapscript_util.c:(.text+0x156): undefined reference to `zend_hash_find' > php_mapscript_util.c:(.text+0x185): undefined reference to `zend_error' > php_mapscript_util.c:(.text+0x1aa): undefined reference to `zend_error' > > -- Daniel Morissette http://www.mapgears.com/ From gregor at hostgis.com Thu Feb 3 13:03:50 2011 From: gregor at hostgis.com (Gregor at HostGIS) Date: Thu, 03 Feb 2011 13:03:50 -0800 Subject: [mapserver-users] Building MapScript 5.4: linker errors In-Reply-To: <4D4B1726.6080100@mapgears.com> References: <4D4B13ED.1000900@hostgis.com> <4D4B1726.6080100@mapgears.com> Message-ID: <4D4B1836.6090706@hostgis.com> On 2/3/2011 12:59 PM, Daniel Morissette wrote: > are you sure there you didn't trim any warning/errors in-between > the two that could provide a hint? Positive. Following, instead of my signature, is the whole output from "cd mapscript/php3 ; make" gcc -fPIC -O2 -fPIC -Wall -DCOMPILE_DL=1 -DPHP4 -DNEED_NONBLOCKING_STDERR -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_MYGIS -DUSE_POSTGIS -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DUSE_THREAD -DUSE_PROJ -DUSE_EPPL -DUSE_RGBA_PNG -DUSE_AGG -DUSE_PDF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB -I/tmp/mapserver-5.4.2 -I/usr/include/libxml2 -I/usr/include/mysql -I/usr/include -I/usr/include -I/usr/include -I/usr/include/agg2 -I/usr/include/freetype2 -I/usr/include -I/usr/include -I/usr/include/php -I/usr/include/php/dl -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/include -I/usr/include/php/TSRM -I -c -o php_mapscript_util.o php_mapscript_util.c /usr/lib64/gcc/x86_64-slamd64-linux/4.1.2/../../../../lib64/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' /tmp/ccd1i9xn.o: In function `_phpms_object_init': php_mapscript_util.c:(.text+0x17): undefined reference to `_object_init_ex' php_mapscript_util.c:(.text+0x2e): undefined reference to `add_property_resource_ex' /tmp/ccd1i9xn.o: In function `_phpms_add_property_object': php_mapscript_util.c:(.text+0x89): undefined reference to `add_property_zval_ex' php_mapscript_util.c:(.text+0xc7): undefined reference to `zend_error' /tmp/ccd1i9xn.o: In function `_phpms_fetch_property_resource': php_mapscript_util.c:(.text+0x108): undefined reference to `zend_error' php_mapscript_util.c:(.text+0x156): undefined reference to `zend_hash_find' php_mapscript_util.c:(.text+0x185): undefined reference to `zend_error' php_mapscript_util.c:(.text+0x1aa): undefined reference to `zend_error' /tmp/ccd1i9xn.o: In function `_phpms_fetch_property_string': php_mapscript_util.c:(.text+0x1f8): undefined reference to `zend_error' php_mapscript_util.c:(.text+0x247): undefined reference to `zend_hash_find' php_mapscript_util.c:(.text+0x25e): undefined reference to `_convert_to_string' php_mapscript_util.c:(.text+0x28b): undefined reference to `zend_error' /tmp/ccd1i9xn.o: In function `_phpms_set_property_null': php_mapscript_util.c:(.text+0x2f6): undefined reference to `zend_hash_find' php_mapscript_util.c:(.text+0x320): undefined reference to `_emalloc' php_mapscript_util.c:(.text+0x398): undefined reference to `_zval_dtor_func' php_mapscript_util.c:(.text+0x3a4): undefined reference to `_zval_copy_ctor_func' php_mapscript_util.c:(.text+0x3b6): undefined reference to `zend_error' php_mapscript_util.c:(.text+0x3d6): undefined reference to `zend_error' /tmp/ccd1i9xn.o: In function `_phpms_fetch_property_double': php_mapscript_util.c:(.text+0x418): undefined reference to `zend_error' php_mapscript_util.c:(.text+0x46d): undefined reference to `zend_hash_find' php_mapscript_util.c:(.text+0x47e): undefined reference to `convert_to_double' php_mapscript_util.c:(.text+0x4a9): undefined reference to `zend_error' /tmp/ccd1i9xn.o: In function `_phpms_fetch_property_long': php_mapscript_util.c:(.text+0x4f8): undefined reference to `zend_error' php_mapscript_util.c:(.text+0x546): undefined reference to `zend_hash_find' php_mapscript_util.c:(.text+0x55d): undefined reference to `convert_to_long' php_mapscript_util.c:(.text+0x57e): undefined reference to `zend_error' php_mapscript_util.c:(.text+0x5a2): undefined reference to `zend_error' /tmp/ccd1i9xn.o: In function `_phpms_fetch_property_handle2': php_mapscript_util.c:(.text+0x612): undefined reference to `zend_hash_find' php_mapscript_util.c:(.text+0x670): undefined reference to `zend_error' php_mapscript_util.c:(.text+0x685): undefined reference to `zend_error' php_mapscript_util.c:(.text+0x699): undefined reference to `_zend_list_find' php_mapscript_util.c:(.text+0x6d8): undefined reference to `zend_error' /tmp/ccd1i9xn.o: In function `_phpms_fetch_handle2': php_mapscript_util.c:(.text+0x738): undefined reference to `zend_hash_find' php_mapscript_util.c:(.text+0x750): undefined reference to `_zend_list_find' php_mapscript_util.c:(.text+0x775): undefined reference to `zend_error' php_mapscript_util.c:(.text+0x79f): undefined reference to `zend_error' php_mapscript_util.c:(.text+0x7b6): undefined reference to `zend_error' /tmp/ccd1i9xn.o: In function `_phpms_report_mapserver_error': php_mapscript_util.c:(.text+0x7d9): undefined reference to `msGetErrorObj' php_mapscript_util.c:(.text+0x7fb): undefined reference to `zend_error' /tmp/ccd1i9xn.o: In function `_phpms_set_property_string': php_mapscript_util.c:(.text+0x87e): undefined reference to `zend_hash_find' php_mapscript_util.c:(.text+0x8a9): undefined reference to `_emalloc' php_mapscript_util.c:(.text+0x918): undefined reference to `_estrndup' php_mapscript_util.c:(.text+0x951): undefined reference to `_zval_dtor_func' php_mapscript_util.c:(.text+0x961): undefined reference to `_zval_copy_ctor_func' php_mapscript_util.c:(.text+0x976): undefined reference to `zend_error' php_mapscript_util.c:(.text+0x996): undefined reference to `zend_error' /tmp/ccd1i9xn.o: In function `_php_extract_associative_array': php_mapscript_util.c:(.text+0x9c8): undefined reference to `zend_hash_internal_pointer_reset_ex' php_mapscript_util.c:(.text+0x9e8): undefined reference to `zend_hash_move_forward_ex' php_mapscript_util.c:(.text+0x9f5): undefined reference to `zend_hash_get_current_data_ex' php_mapscript_util.c:(.text+0xa1d): undefined reference to `_emalloc' php_mapscript_util.c:(.text+0xa8b): undefined reference to `_emalloc' php_mapscript_util.c:(.text+0xae4): undefined reference to `_convert_to_string' php_mapscript_util.c:(.text+0xb01): undefined reference to `zend_hash_get_current_key_ex' php_mapscript_util.c:(.text+0xb41): undefined reference to `_zval_copy_ctor_func' php_mapscript_util.c:(.text+0xb6b): undefined reference to `_zval_copy_ctor_func' /tmp/ccd1i9xn.o: In function `_phpms_set_property_double': php_mapscript_util.c:(.text+0xbe4): undefined reference to `zend_hash_find' php_mapscript_util.c:(.text+0xc0e): undefined reference to `_emalloc' php_mapscript_util.c:(.text+0xc91): undefined reference to `_zval_dtor_func' php_mapscript_util.c:(.text+0xca1): undefined reference to `_zval_copy_ctor_func' php_mapscript_util.c:(.text+0xcb3): undefined reference to `zend_error' php_mapscript_util.c:(.text+0xcd3): undefined reference to `zend_error' /tmp/ccd1i9xn.o: In function `_phpms_set_property_long': php_mapscript_util.c:(.text+0xd3e): undefined reference to `zend_hash_find' php_mapscript_util.c:(.text+0xd68): undefined reference to `_emalloc' php_mapscript_util.c:(.text+0xdf1): undefined reference to `_zval_dtor_func' php_mapscript_util.c:(.text+0xe01): undefined reference to `_zval_copy_ctor_func' php_mapscript_util.c:(.text+0xe13): undefined reference to `zend_error' php_mapscript_util.c:(.text+0xe33): undefined reference to `zend_error' collect2: ld returned 1 exit status make[1]: *** [php_mapscript_util.o] Error 1 make[1]: Leaving directory `/tmp/mapserver-5.4.2/mapscript/php3' From dmorissette at mapgears.com Thu Feb 3 13:08:53 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 03 Feb 2011 16:08:53 -0500 Subject: [mapserver-users] Building MapScript 5.4: linker errors In-Reply-To: <4D4B1836.6090706@hostgis.com> References: <4D4B13ED.1000900@hostgis.com> <4D4B1726.6080100@mapgears.com> <4D4B1836.6090706@hostgis.com> Message-ID: <4D4B1965.8010700@mapgears.com> On 11-02-03 04:03 PM, Gregor at HostGIS wrote: > On 2/3/2011 12:59 PM, Daniel Morissette wrote: >> are you sure there you didn't trim any warning/errors in-between > > the two that could provide a hint? > > Positive. I think I found it, see below: > > gcc -fPIC -O2 -fPIC -Wall -DCOMPILE_DL=1 -DPHP4 > -DNEED_NONBLOCKING_STDERR -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR > -DUSE_LIBXML2 -DUSE_CURL -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR > -DUSE_MYGIS -DUSE_POSTGIS -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DUSE_THREAD > -DUSE_PROJ -DUSE_EPPL -DUSE_RGBA_PNG -DUSE_AGG -DUSE_PDF -DUSE_GD_GIF > -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW > -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB > -I/tmp/mapserver-5.4.2 -I/usr/include/libxml2 -I/usr/include/mysql > -I/usr/include -I/usr/include -I/usr/include -I/usr/include/agg2 > -I/usr/include/freetype2 -I/usr/include -I/usr/include > -I/usr/include/php -I/usr/include/php/dl -I/usr/include/php/main > -I/usr/include/php/Zend -I/usr/include/php/include > -I/usr/include/php/TSRM -I -c -o php_mapscript_util.o php_mapscript_util.c Notice the "-I -c -o ..." sequence "-I" expects an argument which is an include directory, in this case it's missing and the "-c" is eaten by the -I so gcc ends up interpreting this as a compile+link command (default behavior). Since the required dependencies to link php_mapscript.c are not provided you get those linker errors. You need to identify which configure option ended up inserting "-I" without the required arg ... look in your configure output, or in the main Makefile... Daniel -- Daniel Morissette http://www.mapgears.com/ From gregor at hostgis.com Thu Feb 3 13:12:47 2011 From: gregor at hostgis.com (Gregor at HostGIS) Date: Thu, 03 Feb 2011 13:12:47 -0800 Subject: [mapserver-users] Building MapScript 5.4: linker errors In-Reply-To: <4D4B1965.8010700@mapgears.com> References: <4D4B13ED.1000900@hostgis.com> <4D4B1726.6080100@mapgears.com> <4D4B1836.6090706@hostgis.com> <4D4B1965.8010700@mapgears.com> Message-ID: <4D4B1A4F.9000506@hostgis.com> On 2/3/2011 1:08 PM, Daniel Morissette wrote: > Notice the "-I -c -o ..." sequence > "-I" expects an argument which is an include directory Sure, of course. And a blank one would be some sort of bug in the Makefile construction process. I'll get back to you in a little bit, after I've tracked down what this is. -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX "No one cares if you can back up ? only if you can recover." From gregor at hostgis.com Thu Feb 3 14:12:25 2011 From: gregor at hostgis.com (Gregor at HostGIS) Date: Thu, 03 Feb 2011 14:12:25 -0800 Subject: [mapserver-users] Building MapScript 5.4: linker errors In-Reply-To: <4D4B1965.8010700@mapgears.com> References: <4D4B13ED.1000900@hostgis.com> <4D4B1726.6080100@mapgears.com> <4D4B1836.6090706@hostgis.com> <4D4B1965.8010700@mapgears.com> Message-ID: <4D4B2849.6040501@hostgis.com> > I think I found it, see below: >> -I/usr/include/php/TSRM -I -c -o php_mapscript_util.o >> php_mapscript_util.c > Notice the "-I -c -o ..." sequence > "-I" expects an argument which is an include directory This seems to correspond to $(PHP_REGEX_INC) This is defined in mapscript/php3/Makefile as PHP_REGEX_INC=-I Definitely true that we're NOT using PHP's bundled library, but this should be blank instead of -I If I correct this, MapScript compiles successfully. And it loads a mapfile too. Yay! I am going to track this down and find out what went wrong, and if it seems appropriate I'll file a bug report via the website as usual. Thanks for the second pair of eyes, Daniel! -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX "No one cares if you can back up ? only if you can recover." From gregor at hostgis.com Thu Feb 3 14:17:36 2011 From: gregor at hostgis.com (Gregor at HostGIS) Date: Thu, 03 Feb 2011 14:17:36 -0800 Subject: [mapserver-users] Building MapScript 5.4: linker errors In-Reply-To: <4D4B1965.8010700@mapgears.com> References: <4D4B13ED.1000900@hostgis.com> <4D4B1726.6080100@mapgears.com> <4D4B1836.6090706@hostgis.com> <4D4B1965.8010700@mapgears.com> Message-ID: <4D4B2980.1080908@hostgis.com> Looks like this very bug has already been reported, and fixed in 5.6 and in the upcoming 5.4.3 http://trac.osgeo.org/mapserver/ticket/3078 Good eye, Daniel; you're 2 for 2 so far! -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX "No one cares if you can back up ? only if you can recover." From HeuerT at landcareresearch.co.nz Thu Feb 3 17:35:19 2011 From: HeuerT at landcareresearch.co.nz (Tim Heuer) Date: Fri, 4 Feb 2011 14:35:19 +1300 Subject: [mapserver-users] SVG-Legend Message-ID: Hi, http://www.osgeo.org/pipermail/mapserver-users/2006-November/020549.html We have been trying to get WMS legend requests to work with SVG as well to no avail. Since this issue is now quite a few years old now, I was wondering if any plans are being made whether to include SVG Legends in the output for a GetLegendGraphic request. We need this for the print function in conjunction with the MapFish print module. Is there maybe a way to do this with PHP map script or otherwise? Any help would be greatly appreciated. Thanks, Tim ________________________________ Please consider the environment before printing this email Warning: This electronic message together with any attachments is confidential. If you receive it in error: (i) you must not read, use, disclose, copy or retain it; (ii) please contact the sender immediately by reply email and then delete the emails. The views expressed in this email may not be those of Landcare Research New Zealand Limited. http://www.landcareresearch.co.nz -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Thu Feb 3 20:55:52 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 03 Feb 2011 23:55:52 -0500 Subject: [mapserver-users] Bug or User error? MINSIZE not working Message-ID: <4D4B86D8.3080906@swoodbridge.com> Hi All, Thomas maybe you know this? I have a layer: SYMBOL NAME "dots" TYPE SIMPLE STYLE 1 3 END END LAYER NAME "World Admin-1 Z1" GROUP "cb" STATUS DEFAULT TYPE LINE DATA "not-nt2/10m-admin-1-states-provinces-lines-shp" PROJECTION "init=epsg:4326" END MAXSCALEDENOM 50000000 MINSCALEDENOM 5000000 CLASS STYLE COLOR "#aaaaaa" SYMBOL "dots" WIDTH 1 MINSIZE 8000.0 END END END MapServer version 5.6.6 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I can not get any of these lines to turn off. I have tried, variations of large MINSIZE values, commenting out the SYMBOL, using SIZE or WIDTH. No value of MINSIZE seems to have any impact. A large number of the lines are under 5 pixels at the scale I'm using 28M. The lines display fine I just need to turn off the short ones to declutter the image. I spent all night on this with no success so I guess its time to ask. -Steve W From Jukka.Rahkonen at mmmtike.fi Thu Feb 3 21:19:19 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 4 Feb 2011 07:19:19 +0200 Subject: [mapserver-users] Bug or User error? MINSIZE not working In-Reply-To: <4D4B86D8.3080906@swoodbridge.com> References: <4D4B86D8.3080906@swoodbridge.com> Message-ID: Hi, Documentation shows that MINSIZE under CLASS definitions, not STYLE. Have you tried to place it there? -Jukka Rahkonen- Stephen Woodbridge wrote: > Hi All, > Thomas maybe you know this? > I have a layer: SYMBOL NAME "dots" TYPE SIMPLE STYLE 1 3 END END LAYER NAME "World Admin-1 Z1" GROUP "cb" STATUS DEFAULT TYPE LINE DATA "not-nt2/10m-admin-1-states-provinces-lines-shp" PROJECTION "init=epsg:4326" END MAXSCALEDENOM 50000000 MINSCALEDENOM 5000000 CLASS STYLE COLOR "#aaaaaa" SYMBOL "dots" WIDTH 1 MINSIZE 8000.0 END END END > MapServer version 5.6.6 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > I can not get any of these lines to turn off. I have tried, variations of large MINSIZE values, commenting out the SYMBOL, using SIZE or WIDTH. No value of MINSIZE seems to have any impact. A large number of the lines are under 5 pixels at the scale I'm using 28M. The lines display fine I just need to turn off the short ones to declutter the image. > I spent all night on this with no success so I guess its time to ask. -Steve W _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Thu Feb 3 22:11:34 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 04 Feb 2011 01:11:34 -0500 Subject: [mapserver-users] Bug or User error? MINSIZE not working In-Reply-To: References: <4D4B86D8.3080906@swoodbridge.com> Message-ID: <4D4B9896.7030005@swoodbridge.com> On 2/4/2011 12:19 AM, Rahkonen Jukka wrote: > Hi, > > Documentation shows that MINSIZE under CLASS definitions, not STYLE. > Have you tried to place it there? Thanks, I did notice that after I posted. Sadly it does not work there either. It seems to be documented under both STYLE and CLASS as things have been getting reworked in this area of the code. I player with setting MAXSIZE and that seems to work as expected, but I think MINSIZE is broken. I check it on both 5.6.5 and 5.6.6. I can write it up as a bug tomorrow. -Steve W > -Jukka Rahkonen- > > Stephen Woodbridge wrote: > > >> Hi All, > >> Thomas maybe you know this? > >> I have a layer: > > SYMBOL > NAME "dots" > TYPE SIMPLE > STYLE 1 3 END > END > LAYER > NAME "World Admin-1 Z1" > GROUP "cb" > STATUS DEFAULT > TYPE LINE > DATA "not-nt2/10m-admin-1-states-provinces-lines-shp" > PROJECTION "init=epsg:4326" END > MAXSCALEDENOM 50000000 > MINSCALEDENOM 5000000 > CLASS > STYLE > COLOR "#aaaaaa" > SYMBOL "dots" > WIDTH 1 > MINSIZE 8000.0 > END > END > END > > >> MapServer version 5.6.6 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV > SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > >> I can not get any of these lines to turn off. I have tried, variations > > of large MINSIZE values, commenting out the SYMBOL, using SIZE or WIDTH. > > No value of MINSIZE seems to have any impact. A large number of the > lines are under 5 pixels at the scale I'm using 28M. The lines display > fine I just need to turn off the short ones to declutter the image. > >> I spent all night on this with no success so I guess its time to ask. > > -Steve W > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Thu Feb 3 23:14:53 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 4 Feb 2011 08:14:53 +0100 Subject: [mapserver-users] Bug or User error? MINSIZE not working In-Reply-To: <4D4B9896.7030005@swoodbridge.com> References: <4D4B86D8.3080906@swoodbridge.com> <4D4B9896.7030005@swoodbridge.com> Message-ID: what are you trying to obtain? * minsize/maxsize and minwidth/maxwidth are only used when doing scale-dependent scaling of symbols (either by using sizeunits different than pixels, or by having the symbolscaledenom activated) * symbol STYLE is deprecated, and dots and caps are now set at the style level: style width 1 pattern 1 3 end color "#aaaaaa" end -- thomas On Fri, Feb 4, 2011 at 07:11, Stephen Woodbridge wrote: > On 2/4/2011 12:19 AM, Rahkonen Jukka wrote: >> >> Hi, >> >> Documentation shows that MINSIZE under CLASS definitions, not STYLE. >> Have you tried to place it there? > > Thanks, I did notice that after I posted. Sadly it does not work there > either. It seems to be documented under both STYLE and CLASS as things have > been getting reworked in this area of the code. I player with setting > MAXSIZE and that seems to work as expected, but I think MINSIZE is broken. I > check it on both 5.6.5 and 5.6.6. > > I can write it up as a bug tomorrow. > > -Steve W > >> -Jukka Rahkonen- >> >> Stephen Woodbridge wrote: >> >> >>> Hi All, >> >>> Thomas maybe you know this? >> >>> I have a layer: >> >> ? ?SYMBOL >> ? ? ?NAME "dots" >> ? ? ?TYPE SIMPLE >> ? ? ?STYLE 1 3 END >> ? ?END >> ? ?LAYER >> ? ? ?NAME "World Admin-1 Z1" >> ? ? ?GROUP "cb" >> ? ? ?STATUS DEFAULT >> ? ? ?TYPE LINE >> ? ? ?DATA "not-nt2/10m-admin-1-states-provinces-lines-shp" >> ? ? ?PROJECTION "init=epsg:4326" END >> ? ? ?MAXSCALEDENOM ?50000000 >> ? ? ?MINSCALEDENOM ? 5000000 >> ? ? ?CLASS >> ? ? ? ?STYLE >> ? ? ? ? ?COLOR "#aaaaaa" >> ? ? ? ? ?SYMBOL "dots" >> ? ? ? ? ?WIDTH 1 >> ? ? ? ? ?MINSIZE 8000.0 >> ? ? ? ?END >> ? ? ?END >> ? ?END >> >> >>> MapServer version 5.6.6 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> >> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV >> SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >> SUPPORTS=WFS_SERVER SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS >> INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >> >> >>> I can not get any of these lines to turn off. I have tried, variations >> >> of large MINSIZE values, commenting out the SYMBOL, using SIZE or WIDTH. >> >> No value of MINSIZE seems to have any impact. A large number of the >> lines are under 5 pixels at the scale I'm using 28M. The lines display >> fine I just need to turn off the short ones to declutter the image. >> >>> I spent all night on this with no success so I guess its time to ask. >> >> -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 laurent.baey at free.fr Fri Feb 4 01:08:01 2011 From: laurent.baey at free.fr (Laurent BAEY) Date: Fri, 04 Feb 2011 10:08:01 +0100 Subject: [mapserver-users] srid dropped at postgis request In-Reply-To: References: <1ccdc4795576107a50415034b6928676@localhost> Message-ID: <2cc1be38459ee90cd7f51a3c0717009c@localhost> Hello I was playing with the viewer to try to get out of the shape extent, to see if it was drawing related. The bbox wasn't the good one, sorry. I've the same result with the original one : [MapServer Error]: msPostGISLayerWhichShapes(): Error (ERROR: Operation on two geometries with different SRIDs ) executing query: select encode(AsBinary(force_collection(force_2d("the_geom")),'NDR'),'hex') as geom,"id_zc" from zones where the_geom && GeomFromText('POLYGON((259333.658097445 1733700,259333.658097445 2015600.125,682466.310652555 2015600.125,682466.310652555 1733700,259333.658097445 1733700))',27572) I also have : SELECT srid(the_geom) FROM zones WHERE "it's the one i want to draw", returns 27572. I also found that when the AsBinary function comes, the srid is lost and becomes -1. SELECT sr_id(AsBinary(force_collection(force_2d("the_geom")),'NDR')) FROM zones WHERE "it's the one i want to draw", returns -1 and postgis doesn't want to execute the request. Any idea ? Regards Laurent From laurent.baey at free.fr Fri Feb 4 06:18:07 2011 From: laurent.baey at free.fr (Laurent BAEY) Date: Fri, 04 Feb 2011 15:18:07 +0100 Subject: [mapserver-users] srid dropped at postgis request In-Reply-To: <2cc1be38459ee90cd7f51a3c0717009c@localhost> References: <1ccdc4795576107a50415034b6928676@localhost> <2cc1be38459ee90cd7f51a3c0717009c@localhost> Message-ID: <452a17bc94853cf44a7bdb87dbb42a59@localhost> Hello I found the problem causing the error : There was another condition in the request, from a layer filter I thought was irrelevent to my problem. select encode(AsBinary(force_collection(force_2d("the_geom")),'NDR'),'hex') as geom,"id_zc" from zones where the_geom && GeomFromText('POLYGON((259333.658097445 1733700,259333.658097445 2015600.125,682466.310652555 2015600.125,682466.310652555 1733700,259333.658097445 1733700))',27572) and (id_psl = get_psl_zone(126378) AND level=55) everything was back to normal when I changed it to select encode(AsBinary(force_collection(force_2d("the_geom")),'NDR'),'hex') as geom,"id_zc" from zones where the_geom && GeomFromText('POLYGON((259333.658097445 1733700,259333.658097445 2015600.125,682466.310652555 2015600.125,682466.310652555 1733700,259333.658097445 1733700))',27572) and id_zc=16686 I believe the problem is now postgis related : if there's a function in the where clause, postgis seems to be lost with srids. Regards. Laurent On Fri, 04 Feb 2011 10:08:01 +0100, Laurent BAEY wrote: > Hello > > I was playing with the viewer to try to get out of the shape extent, to > see if it was drawing related. The bbox wasn't the good one, sorry. > I've the same result with the original one : > > [MapServer Error]: msPostGISLayerWhichShapes(): Error (ERROR: Operation on > two geometries with different SRIDs ) executing query: select > encode(AsBinary(force_collection(force_2d("the_geom")),'NDR'),'hex') as > geom,"id_zc" from zones where the_geom && > GeomFromText('POLYGON((259333.658097445 1733700,259333.658097445 > 2015600.125,682466.310652555 2015600.125,682466.310652555 > 1733700,259333.658097445 1733700))',27572) > > I also have : > SELECT srid(the_geom) FROM zones WHERE "it's the one i want to draw", > returns 27572. > > I also found that when the AsBinary function comes, the srid is lost and > becomes -1. > > SELECT sr_id(AsBinary(force_collection(force_2d("the_geom")),'NDR')) FROM > zones WHERE "it's the one i want to draw", returns -1 > > and postgis doesn't want to execute the request. > > Any idea ? > > Regards > > Laurent > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Fri Feb 4 07:13:02 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 04 Feb 2011 10:13:02 -0500 Subject: [mapserver-users] Bug or User error? MINSIZE not working In-Reply-To: References: <4D4B86D8.3080906@swoodbridge.com> <4D4B9896.7030005@swoodbridge.com> Message-ID: <4D4C177E.7020201@swoodbridge.com> On 2/4/2011 2:14 AM, thomas bonfort wrote: > what are you trying to obtain? > Ah, good question. I am trying to filter out objects the are very small from rendering. At some zoom levels these objects are just to small to be meaningful to render and end up looking like dirt on the image. > * minsize/maxsize and minwidth/maxwidth are only used when doing > scale-dependent scaling of symbols (either by using sizeunits > different than pixels, or by having the symbolscaledenom activated) * Hmmm, I guess I need to rethink. I suppose I could add a length attribute and filter on that, but I was hoping I could do it based on the rendered size. Can you think of a better way to do this? > symbol STYLE is deprecated, and dots and caps are now set at the > style level: style width 1 pattern 1 3 end color "#aaaaaa" end Thanks, I can update the mapfile for the patterns. -Steve W > -- thomas > > On Fri, Feb 4, 2011 at 07:11, Stephen Woodbridge > wrote: >> On 2/4/2011 12:19 AM, Rahkonen Jukka wrote: >>> >>> Hi, >>> >>> Documentation shows that MINSIZE under CLASS definitions, not >>> STYLE. Have you tried to place it there? >> >> Thanks, I did notice that after I posted. Sadly it does not work >> there either. It seems to be documented under both STYLE and CLASS >> as things have been getting reworked in this area of the code. I >> player with setting MAXSIZE and that seems to work as expected, but >> I think MINSIZE is broken. I check it on both 5.6.5 and 5.6.6. >> >> I can write it up as a bug tomorrow. >> >> -Steve W >> >>> -Jukka Rahkonen- >>> >>> Stephen Woodbridge wrote: >>> >>> >>>> Hi All, >>> >>>> Thomas maybe you know this? >>> >>>> I have a layer: >>> >>> SYMBOL NAME "dots" TYPE SIMPLE STYLE 1 3 END END LAYER NAME >>> "World Admin-1 Z1" GROUP "cb" STATUS DEFAULT TYPE LINE DATA >>> "not-nt2/10m-admin-1-states-provinces-lines-shp" PROJECTION >>> "init=epsg:4326" END MAXSCALEDENOM 50000000 MINSCALEDENOM >>> 5000000 CLASS STYLE COLOR "#aaaaaa" SYMBOL "dots" WIDTH 1 MINSIZE >>> 8000.0 END END END >>> >>> >>>> MapServer version 5.6.6 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG >>>> OUTPUT=WBMP >>> >>> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE >>> SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER >>> SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=RGBA_PNG >>> INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >>> >>> >>>> I can not get any of these lines to turn off. I have tried, >>>> variations >>> >>> of large MINSIZE values, commenting out the SYMBOL, using SIZE or >>> WIDTH. >>> >>> No value of MINSIZE seems to have any impact. A large number of >>> the lines are under 5 pixels at the scale I'm using 28M. The >>> lines display fine I just need to turn off the short ones to >>> declutter the image. >>> >>>> I spent all night on this with no success so I guess its time >>>> to ask. >>> >>> -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 dmorissette at mapgears.com Fri Feb 4 07:34:19 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 04 Feb 2011 10:34:19 -0500 Subject: [mapserver-users] Bug or User error? MINSIZE not working In-Reply-To: <4D4C177E.7020201@swoodbridge.com> References: <4D4B86D8.3080906@swoodbridge.com> <4D4B9896.7030005@swoodbridge.com> <4D4C177E.7020201@swoodbridge.com> Message-ID: <4D4C1C7B.6080207@mapgears.com> On 11-02-04 10:13 AM, Stephen Woodbridge wrote: > On 2/4/2011 2:14 AM, thomas bonfort wrote: >> what are you trying to obtain? >> > Ah, good question. I am trying to filter out objects the are very small > from rendering. At some zoom levels these objects are just to small to > be meaningful to render and end up looking like dirt on the image. > Ah, maybe what you're looking for is MINFEATURESIZE at the layer/class level? http://trac.osgeo.org/mapserver/ticket/1340 -- Daniel Morissette http://www.mapgears.com/ From woodbri at swoodbridge.com Fri Feb 4 08:25:14 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 04 Feb 2011 11:25:14 -0500 Subject: [mapserver-users] Bug or User error? MINSIZE not working In-Reply-To: <4D4C1C7B.6080207@mapgears.com> References: <4D4B86D8.3080906@swoodbridge.com> <4D4B9896.7030005@swoodbridge.com> <4D4C177E.7020201@swoodbridge.com> <4D4C1C7B.6080207@mapgears.com> Message-ID: <4D4C286A.2030501@swoodbridge.com> On 2/4/2011 10:34 AM, Daniel Morissette wrote: > On 11-02-04 10:13 AM, Stephen Woodbridge wrote: >> On 2/4/2011 2:14 AM, thomas bonfort wrote: >>> what are you trying to obtain? >>> >> Ah, good question. I am trying to filter out objects the are very small >> from rendering. At some zoom levels these objects are just to small to >> be meaningful to render and end up looking like dirt on the image. >> > > Ah, maybe what you're looking for is MINFEATURESIZE at the layer/class > level? > > http://trac.osgeo.org/mapserver/ticket/1340 > > Sigh - at least I'm consistent, needed this 6 years ago, and still need it! Looks like it might go in 6.0 if some can tackle it. It looks like we already have code to do this as part of the labeling code, it just needs to get added in the rendering chain. OK, back to the old way of doing this, add length attribute and filter on length at different scales. -Steve From osgeo.mailinglist at gmail.com Fri Feb 4 11:23:14 2011 From: osgeo.mailinglist at gmail.com (Thomas Gratier) Date: Fri, 4 Feb 2011 20:23:14 +0100 Subject: [mapserver-users] srid dropped at postgis request In-Reply-To: <452a17bc94853cf44a7bdb87dbb42a59@localhost> References: <1ccdc4795576107a50415034b6928676@localhost> <2cc1be38459ee90cd7f51a3c0717009c@localhost> <452a17bc94853cf44a7bdb87dbb42a59@localhost> Message-ID: Hello, Have you done settings like in the docs e.g. http://mapserver.org/input/vector/postgis.html The DATA block will look something like below DATA "the_geom from (select * from your_database where ... ) as foo using unique gid using srid=27572" Maybe it can help you solve your particular problem with srid lost in your query. Regards ThomasG GIS specialist -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Sat Feb 5 13:03:07 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sat, 5 Feb 2011 22:03:07 +0100 Subject: [mapserver-users] Bug or User error? MINSIZE not working In-Reply-To: <4D4C286A.2030501@swoodbridge.com> References: <4D4B86D8.3080906@swoodbridge.com> <4D4B9896.7030005@swoodbridge.com> <4D4C177E.7020201@swoodbridge.com> <4D4C1C7B.6080207@mapgears.com> <4D4C286A.2030501@swoodbridge.com> Message-ID: Steve, compared to the use-case referred to in the bug, I think things have changed if you use the cairo or agg renderer as in those cases you don't end up with a pixel being fully highlighted as gd does. I wouldn't be against a configurable option to skip small geometries, but would label this as a performance enhancement rather than a quality one. regards, thomas On Fri, Feb 4, 2011 at 17:25, Stephen Woodbridge wrote: > On 2/4/2011 10:34 AM, Daniel Morissette wrote: >> >> On 11-02-04 10:13 AM, Stephen Woodbridge wrote: >>> >>> On 2/4/2011 2:14 AM, thomas bonfort wrote: >>>> >>>> what are you trying to obtain? >>>> >>> Ah, good question. I am trying to filter out objects the are very small >>> from rendering. At some zoom levels these objects are just to small to >>> be meaningful to render and end up looking like dirt on the image. >>> >> >> Ah, maybe what you're looking for is MINFEATURESIZE at the layer/class >> level? >> >> http://trac.osgeo.org/mapserver/ticket/1340 >> >> > > Sigh - at least I'm consistent, needed this 6 years ago, and still need it! > > Looks like it might go in 6.0 if some can tackle it. It looks like we > already have code to do this as part of the labeling code, it just needs to > get added in the rendering chain. > > OK, back to the old way of doing this, add length attribute and filter on > length at different scales. > > -Steve > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From gregcorradini at gmail.com Sat Feb 5 17:27:33 2011 From: gregcorradini at gmail.com (gregcorradini) Date: Sat, 5 Feb 2011 17:27:33 -0800 (PST) Subject: [mapserver-users] Re: TMS cache with Mapserver through GDAL_WMS and TileCache? In-Reply-To: References: <1296683120609-5986661.post@n2.nabble.com> <1AFA875B-44C6-4F9F-AA7C-CBB447497CF6@omniscale.de> Message-ID: <1296955653303-5996839.post@n2.nabble.com> Thnx for you help Oliver and Mark, I will try to get examples running with MapProxy and GDAL_WMS. I'll put them up here when I'm done. ;) -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/TMS-cache-with-Mapserver-through-GDAL-WMS-and-TileCache-tp5986661p5996839.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at swoodbridge.com Sat Feb 5 18:07:04 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sat, 05 Feb 2011 21:07:04 -0500 Subject: [mapserver-users] Bug or User error? MINSIZE not working In-Reply-To: References: <4D4B86D8.3080906@swoodbridge.com> <4D4B9896.7030005@swoodbridge.com> <4D4C177E.7020201@swoodbridge.com> <4D4C1C7B.6080207@mapgears.com> <4D4C286A.2030501@swoodbridge.com> Message-ID: <4D4E0248.1040707@swoodbridge.com> Hi Thomas, I'm using the AGG renderer which is really great by the way. Thank you for all the work you did on this and all the graphics drivers. The data I'm dealing with is country sub-divisions, like provinces or regions in a country for all of the world. The problem is that in some small countries in that have lots of regions, the lines obliterate or fill the country at some zoom levels. The way I have resorted to deal with this is to compute the lengths of the cartographic boundary lines, and then FILTER ([LENGTH] >= nnnnn) where I adjust the value of nnnnn to a value that looks good on the map at the scale I'm working with. This does require setting up multiple LAYERs if you need to set up different filters for different scales. Or you need to move FILTER into the CLASS when the class is scale dependent, which you can't do now. This is probably best anyway for performance because the length is precomputed so the shape can be avoided totally based on the attribute. Thanks, -Steve W On 2/5/2011 4:03 PM, thomas bonfort wrote: > Steve, > compared to the use-case referred to in the bug, I think things have > changed if you use the cairo or agg renderer as in those cases you > don't end up with a pixel being fully highlighted as gd does. > I wouldn't be against a configurable option to skip small geometries, > but would label this as a performance enhancement rather than a > quality one. > > regards, > thomas > > On Fri, Feb 4, 2011 at 17:25, Stephen Woodbridge > wrote: >> On 2/4/2011 10:34 AM, Daniel Morissette wrote: >>> >>> On 11-02-04 10:13 AM, Stephen Woodbridge wrote: >>>> >>>> On 2/4/2011 2:14 AM, thomas bonfort wrote: >>>>> >>>>> what are you trying to obtain? >>>>> >>>> Ah, good question. I am trying to filter out objects the are very small >>>> from rendering. At some zoom levels these objects are just to small to >>>> be meaningful to render and end up looking like dirt on the image. >>>> >>> >>> Ah, maybe what you're looking for is MINFEATURESIZE at the layer/class >>> level? >>> >>> http://trac.osgeo.org/mapserver/ticket/1340 >>> >>> >> >> Sigh - at least I'm consistent, needed this 6 years ago, and still need it! >> >> Looks like it might go in 6.0 if some can tackle it. It looks like we >> already have code to do this as part of the labeling code, it just needs to >> get added in the rendering chain. >> >> OK, back to the old way of doing this, add length attribute and filter on >> length at different scales. >> >> -Steve >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> From HeuerT at landcareresearch.co.nz Sun Feb 6 17:05:42 2011 From: HeuerT at landcareresearch.co.nz (Tim Heuer) Date: Mon, 7 Feb 2011 14:05:42 +1300 Subject: [mapserver-users] Legend in vector - SVG Message-ID: Hi List, Just a solution that came up: We want to display our legends in print as vectors (svg) and found the following configuration for a .map file: METADATA "wms_getlegendgraphic_formatlist" "image/svg+xml,image/gif" If you then request GetLegendGraphic with parameter &FORMAT=image%2Fsvg%2Bxml you can get it to work. This however only works in the svn version that we compiled. Hope this helps someone with the same problem. Kind regards, Tim ________________________________ Please consider the environment before printing this email Warning: This electronic message together with any attachments is confidential. If you receive it in error: (i) you must not read, use, disclose, copy or retain it; (ii) please contact the sender immediately by reply email and then delete the emails. The views expressed in this email may not be those of Landcare Research New Zealand Limited. http://www.landcareresearch.co.nz -------------- next part -------------- An HTML attachment was scrubbed... URL: From brfr at metrico.lu Mon Feb 7 01:58:13 2011 From: brfr at metrico.lu (Frank Broniewski) Date: Mon, 07 Feb 2011 10:58:13 +0100 Subject: [mapserver-users] WMS SLD Troubles Message-ID: <4D4FC235.1050803@metrico.lu> Hello, We're using a OpenStreetMap Postgis database as a source for our geo-servers. We want to provide WMS and WFS services on the data. In order to do the styling only once, we are using SLDs, which works mostly fine. One of our layers does not render as a WMS, it throws a "msEvalRegex(): Regular expression error. String failed expression test." Error during execution. We identified the layer, and it's the one rendering post boxes. The corresponding SLD definition is using a filter: amenity post_office Using debug-level 5, the mapfile after SLD application looks like # ... # more definitions # ... CLASSITEM "amenity" DATA "nway FROM (SELECT way as nway, osm_id, amenity, name FROM planet_osm_point WHERE amenity='post_box' OR amenity='post_office' ) as foo using unique osm_id using SRID=900913" # ... # more definitions # ... CLASS NAME "Unknown" EXPRESSION ("[amenity]" = "post_box") STYLE ANGLE 360 COLOR 0 0 0 SIZE 40 SYMBOL "http://192.168.0.111:8502/sld/img/briefkasten.png" WIDTH 1 END END We simply can't figure out, what might be the problem here. The whole issue seem to be related to the filter element, removing it makes the layer render. Using the generated map layer, rendering fails with the same error. So I would be happy if someone with more experience with SLDs can give me a hint about whats going wrong here. 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 ahmettemiz88 at gmail.com Mon Feb 7 04:33:00 2011 From: ahmettemiz88 at gmail.com (ahmettemiz88 at gmail.com) Date: Mon, 07 Feb 2011 12:33:00 +0000 Subject: [mapserver-users] change outline color programmatically Message-ID: <20cf3054a8c7b3745a049bb06efd@google.com> hello I tried to change outline color of the polygons programmatically. But nothing happens. here is my map file's fragment. ~~~~~~~~ NAME "DAIRESEL-AKMA" EXPRESSION "Dairesel+Akma" SIZE 1 OUTLINECOLOR 0 0 0 SYMBOL 'CIRCLE' COLOR 123 0 255 LABEL MINFEATURESIZE 30 MINDISTANCE 150 POSITION CC #SIZE TINY SIZE MEDIUM OUTLINECOLOR 247 234 168 COLOR 1 1 1 END ~~~~~~~~ and my java code fragment concerned: ~~~~~~~~~ layerObj heyLayer = new layerObj(map0); heyLayer = map0.getLayerByName("hey_layer"); String upstring = "LAYER CLASS NAME \"DAIRESEL-AKMA\" OUTLINECOLOR 255 255 255 END END"; heyLayer.updateFromString(upstring); heyLayer.setStatus(1); ~~~~~~~~~ what do I have to do ? regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniel.degasperi at r3-gis.com Mon Feb 7 06:04:46 2011 From: daniel.degasperi at r3-gis.com (Daniel Degasperi) Date: Mon, 07 Feb 2011 15:04:46 +0100 Subject: [mapserver-users] PHP Mapscript: generateSLD Message-ID: <4D4FFBFE.4090201@r3-gis.com> Hi, I've used the function generateSLD from the layerObj class to create a sld snippet, but the output was a empty sld file: I'm using following mapfile with mapserver 5.6.5: MAP NAME "test.map" SIZE 256 256 RESOLUTION 72 OUTPUTFORMAT NAME "aggpng24" DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" FORMATOPTION "INTERLACE=OFF" TRANSPARENT ON FORMATOPTION "INTERLACE=OFF" END WEB METADATA "ows_onlineresource" "http://dev/public/services/ows.php?map=test.map" "ows_title" "test" "ows_abstract" "" "wms_feature_info_mime_type" "text/html" "ows_service_onlineresource" "" "wms_srs" "EPSG:32632 EPSG:4326 EPSG:900913" END IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/tmp/" END LAYER GROUP "test" NAME "test" TYPE LINE STATUS OFF METADATA "ows_title" "test" "ows_extent" "482003.57067363 5006503.5706736 537996.42932637 5062496.4293264" "ows_srs" "EPSG:32632" "gml_geometries" "the_geom" END PROJECTION "+proj=utm +zone=32 +ellps=WGS84 +datum=WGS84 +units=m +no_defs " END EXTENT 482003.57067363 5006503.5706736 537996.42932637 5062496.4293264 CONNECTIONTYPE POSTGIS CONNECTION "user=test password=test dbname=test host=localhost port=5432" DATA "the_geom FROM test USING UNIQUE gid USING SRID 32632" PROCESSING "CLOSE_CONNECTION=DEFER" SIZEUNITS pixels CLASS NAME "l103106" EXPRESSION ('[code]' eq 'L103106') STYLE COLOR 76 230 0 SYMBOL "CIRCLE" SIZE 3 MINSIZE 3 MAXSIZE 3 WIDTH 3 MINWIDTH 3 END END CLASS NAME "l103107" EXPRESSION ('[code]' eq 'L103107') STYLE COLOR 56 168 1 SYMBOL "CIRCLE" SIZE 2 MINSIZE 2 MAXSIZE 2 WIDTH 2 MINWIDTH 2 END END END ###### SYMBOLS ####### SYMBOL NAME "CIRCLE" TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END END #MAP Can somebody help me? Best regards, Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Mon Feb 7 06:13:34 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 7 Feb 2011 08:13:34 -0600 Subject: [mapserver-users] change outline color programmatically In-Reply-To: <20cf3054a8c7b3745a049bb06efd@google.com> References: <20cf3054a8c7b3745a049bb06efd@google.com> Message-ID: Try updating the class from string, not the layer, e.g.: getLayer => getClass => class.updateFromString Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of ahmettemiz88 at gmail.com [ahmettemiz88 at gmail.com] Sent: Monday, February 07, 2011 6:33 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] change outline color programmatically hello I tried to change outline color of the polygons programmatically. But nothing happens. here is my map file's fragment. ~~~~~~~~ NAME "DAIRESEL-AKMA" EXPRESSION "Dairesel+Akma" SIZE 1 OUTLINECOLOR 0 0 0 SYMBOL 'CIRCLE' COLOR 123 0 255 LABEL MINFEATURESIZE 30 MINDISTANCE 150 POSITION CC #SIZE TINY SIZE MEDIUM OUTLINECOLOR 247 234 168 COLOR 1 1 1 END ~~~~~~~~ and my java code fragment concerned: ~~~~~~~~~ layerObj heyLayer = new layerObj(map0); heyLayer = map0.getLayerByName("hey_layer"); String upstring = "LAYER CLASS NAME \"DAIRESEL-AKMA\" OUTLINECOLOR 255 255 255 END END"; heyLayer.updateFromString(upstring); heyLayer.setStatus(1); ~~~~~~~~~ what do I have to do ? regards From jean-francois at gigand.fr Mon Feb 7 08:06:49 2011 From: jean-francois at gigand.fr (=?ISO-8859-1?Q?Jean=2DFran=E7ois_Gigand?=) Date: Mon, 7 Feb 2011 17:06:49 +0100 Subject: [mapserver-users] change outline color programmatically In-Reply-To: <20cf3054a8c7b3745a049bb06efd@google.com> References: <20cf3054a8c7b3745a049bb06efd@google.com> Message-ID: Hi, If you don't use a symbol and set the layer type to MS_LAYER_POLYGON, it should work... The "width" property specifies the outline width. Jeff 2011/2/7 : > hello > > I tried to change outline color of the polygons programmatically. > But nothing happens. > > here is my map file's fragment. > ~~~~~~~~ > NAME "DAIRESEL-AKMA" > EXPRESSION "Dairesel+Akma" > SIZE 1 > OUTLINECOLOR 0 0 0 > SYMBOL 'CIRCLE' > COLOR 123 0 255 > LABEL > MINFEATURESIZE 30 > MINDISTANCE 150 > POSITION CC > #SIZE TINY > SIZE MEDIUM > OUTLINECOLOR 247 234 168 > COLOR 1 1 1 > END > ~~~~~~~~ > > and > > my java code fragment concerned: > > ~~~~~~~~~ > layerObj heyLayer = new layerObj(map0); > heyLayer = map0.getLayerByName("hey_layer"); > String upstring = "LAYER CLASS NAME \"DAIRESEL-AKMA\" OUTLINECOLOR 255 255 > 255 END END"; > heyLayer.updateFromString(upstring); > heyLayer.setStatus(1); > ~~~~~~~~~ > > what do I have to do ? > > regards > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From jean-francois at gigand.fr Mon Feb 7 08:14:18 2011 From: jean-francois at gigand.fr (=?ISO-8859-1?Q?Jean=2DFran=E7ois_Gigand?=) Date: Mon, 7 Feb 2011 17:14:18 +0100 Subject: [mapserver-users] PHP Mapscript: generateSLD In-Reply-To: <4D4FFBFE.4090201@r3-gis.com> References: <4D4FFBFE.4090201@r3-gis.com> Message-ID: Hi, Maybe the layer has to be enabled (STATUS property) to appear in the SLD? If you want to keep it disabled in your mapFile, you can enable it programmatically just before calling generateSLD() by setting "status" to MS_ON. Jeff 2011/2/7 Daniel Degasperi : > Hi, > I've used the function generateSLD from the layerObj class to create a sld > snippet, but the output was a empty sld file: > > xmlns:gml="http://www.opengis.net/gml" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/sld > http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> > > > I'm using following mapfile with mapserver 5.6.5: > > MAP > NAME "test.map" > SIZE 256 256 > RESOLUTION 72 > > > OUTPUTFORMAT > ??? NAME "aggpng24" > ??? DRIVER "AGG/PNG" > ??? MIMETYPE "image/png" > ??? IMAGEMODE RGB > ??? EXTENSION "png" > ??? FORMATOPTION "INTERLACE=OFF" > ??? TRANSPARENT ON > ??? FORMATOPTION "INTERLACE=OFF" > END > WEB > ??? METADATA > ??? ??? "ows_onlineresource" > "http://dev/public/services/ows.php?map=test.map" > ??? ??? "ows_title"??? "test" > ??? ??? "ows_abstract"??? "" > ??? ??? "wms_feature_info_mime_type"??? "text/html" > ??? ??? "ows_service_onlineresource"??? "" > ??? ??? "wms_srs"??? "EPSG:32632 EPSG:4326 EPSG:900913" > > ??? END > ??? IMAGEPATH "/tmp/ms_tmp/" > ??? IMAGEURL "/tmp/" > END > > LAYER > ??? GROUP "test" > ??? NAME "test" > ??? TYPE LINE > ??? STATUS OFF > ??? METADATA > ??? ??? "ows_title"??? "test" > ??? ??? "ows_extent"??? "482003.57067363 5006503.5706736 537996.42932637 > 5062496.4293264" > ??? ??? "ows_srs"??? "EPSG:32632" > ??? ??? "gml_geometries"??? "the_geom" > > ??? END > ??? PROJECTION > ??? ??? "+proj=utm +zone=32 +ellps=WGS84 +datum=WGS84 +units=m +no_defs " > ??? END > ??? EXTENT 482003.57067363 5006503.5706736 537996.42932637 5062496.4293264 > ??? CONNECTIONTYPE POSTGIS > ??? CONNECTION "user=test password=test dbname=test host=localhost > port=5432" > ??? DATA "the_geom FROM test USING UNIQUE gid USING SRID 32632" > ??? PROCESSING "CLOSE_CONNECTION=DEFER" > ??? SIZEUNITS pixels > ??? CLASS > ??? ??? NAME "l103106" > ??? ??? EXPRESSION ('[code]' eq 'L103106') > ??? ??? STYLE > ??? ??? ??? COLOR 76 230 0 > ??? ??? ??? SYMBOL "CIRCLE" > ??? ??? ??? SIZE 3 > ??? ??? ??? MINSIZE 3 > ??? ??? ??? MAXSIZE 3 > ??? ??? ??? WIDTH 3 > ??? ??? ??? MINWIDTH 3 > ??? ??? END > ??? END > ??? CLASS > ??? ??? NAME "l103107" > ??? ??? EXPRESSION ('[code]' eq 'L103107') > ??? ??? STYLE > ??? ??? ??? COLOR 56 168 1 > ??? ??? ??? SYMBOL "CIRCLE" > ??? ??? ??? SIZE 2 > ??? ??? ??? MINSIZE 2 > ??? ??? ??? MAXSIZE 2 > ??? ??? ??? WIDTH 2 > ??? ??? ??? MINWIDTH 2 > ??? ??? END > ??? END > END > > ###### SYMBOLS ####### > > SYMBOL > NAME "CIRCLE" > TYPE ELLIPSE > FILLED TRUE > POINTS > 1 1 > END > END > > > END #MAP > > Can somebody help me? > > Best regards, > Daniel > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From daniel.degasperi at r3-gis.com Mon Feb 7 08:27:48 2011 From: daniel.degasperi at r3-gis.com (Daniel Degasperi) Date: Mon, 07 Feb 2011 17:27:48 +0100 Subject: [mapserver-users] PHP Mapscript: generateSLD In-Reply-To: References: <4D4FFBFE.4090201@r3-gis.com> Message-ID: <4D501D84.50403@r3-gis.com> Hi Jeff, thank you very much, now it works. Should this information be included in the documentation? Daniel Am 07/02/2011 17:14, schrieb Jean-Fran?ois Gigand: > Hi, > > Maybe the layer has to be enabled (STATUS property) to appear in the SLD? > If you want to keep it disabled in your mapFile, you can enable it > programmatically just before calling generateSLD() by setting "status" > to MS_ON. > > Jeff > > > 2011/2/7 Daniel Degasperi: >> Hi, >> I've used the function generateSLD from the layerObj class to create a sld >> snippet, but the output was a empty sld file: >> >> > xmlns:gml="http://www.opengis.net/gml" >> xmlns:ogc="http://www.opengis.net/ogc" >> xmlns:xlink="http://www.w3.org/1999/xlink" >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xsi:schemaLocation="http://www.opengis.net/sld >> http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> >> >> >> I'm using following mapfile with mapserver 5.6.5: >> >> MAP >> NAME "test.map" >> SIZE 256 256 >> RESOLUTION 72 >> >> >> OUTPUTFORMAT >> NAME "aggpng24" >> DRIVER "AGG/PNG" >> MIMETYPE "image/png" >> IMAGEMODE RGB >> EXTENSION "png" >> FORMATOPTION "INTERLACE=OFF" >> TRANSPARENT ON >> FORMATOPTION "INTERLACE=OFF" >> END >> WEB >> METADATA >> "ows_onlineresource" >> "http://dev/public/services/ows.php?map=test.map" >> "ows_title" "test" >> "ows_abstract" "" >> "wms_feature_info_mime_type" "text/html" >> "ows_service_onlineresource" "" >> "wms_srs" "EPSG:32632 EPSG:4326 EPSG:900913" >> >> END >> IMAGEPATH "/tmp/ms_tmp/" >> IMAGEURL "/tmp/" >> END >> >> LAYER >> GROUP "test" >> NAME "test" >> TYPE LINE >> STATUS OFF >> METADATA >> "ows_title" "test" >> "ows_extent" "482003.57067363 5006503.5706736 537996.42932637 >> 5062496.4293264" >> "ows_srs" "EPSG:32632" >> "gml_geometries" "the_geom" >> >> END >> PROJECTION >> "+proj=utm +zone=32 +ellps=WGS84 +datum=WGS84 +units=m +no_defs " >> END >> EXTENT 482003.57067363 5006503.5706736 537996.42932637 5062496.4293264 >> CONNECTIONTYPE POSTGIS >> CONNECTION "user=test password=test dbname=test host=localhost >> port=5432" >> DATA "the_geom FROM test USING UNIQUE gid USING SRID 32632" >> PROCESSING "CLOSE_CONNECTION=DEFER" >> SIZEUNITS pixels >> CLASS >> NAME "l103106" >> EXPRESSION ('[code]' eq 'L103106') >> STYLE >> COLOR 76 230 0 >> SYMBOL "CIRCLE" >> SIZE 3 >> MINSIZE 3 >> MAXSIZE 3 >> WIDTH 3 >> MINWIDTH 3 >> END >> END >> CLASS >> NAME "l103107" >> EXPRESSION ('[code]' eq 'L103107') >> STYLE >> COLOR 56 168 1 >> SYMBOL "CIRCLE" >> SIZE 2 >> MINSIZE 2 >> MAXSIZE 2 >> WIDTH 2 >> MINWIDTH 2 >> END >> END >> END >> >> ###### SYMBOLS ####### >> >> SYMBOL >> NAME "CIRCLE" >> TYPE ELLIPSE >> FILLED TRUE >> POINTS >> 1 1 >> END >> END >> >> >> END #MAP >> >> Can somebody help me? >> >> Best regards, >> Daniel >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> -- *Daniel Degasperi* *R3 GIS* Srl - GmbH Via Johann Kravogl-Str. 2 I-39012 Meran/Merano (BZ) web: www.r3-gis.com Email: daniel.degasperi at r3-gis.com Tel. : +39 0473 494949 Fax : +39 0473 069902 *ATTENZIONE!* Le informazioni contenute nella presente e-mail e nei documenti eventualmente allegati sono confidenziali. La loro diffusione, distribuzione e/o riproduzione da parte di terzi, senza autorizzazione del mittente ? vietata e pu? violare il D. Lgs. 196/2003. In caso di ricezione per errore, Vogliate immediatamente informare il mittente del messaggio e distruggere la e-mail. *ACHTUNG!* Die in dieser Nachricht oder in den beigelegten Dokumenten beinhalteten Informationen sind streng vertraulich. Ihre Verbreitung und/oder ihre Wiedergabe durch Dritte ist ohne Erlaubnis des Absenders verboten und verst??t gegen das Legislativdekret 196/2003. Sollten Sie diese Mitteilung irrt?mlicherweise erhalten haben, bitten wir Sie uns umgehend zu informieren und anschlie?end die Mitteilung zu vernichten. *WARNING!* This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclousure or distribution of the material in this e-mail is strictly forbidden and could be against the law (D. Lgs. 196/2003) -------------- next part -------------- An HTML attachment was scrubbed... URL: From jean-francois at gigand.fr Mon Feb 7 09:23:02 2011 From: jean-francois at gigand.fr (=?ISO-8859-1?Q?Jean=2DFran=E7ois_Gigand?=) Date: Mon, 7 Feb 2011 18:23:02 +0100 Subject: [mapserver-users] PHP Mapscript: generateSLD In-Reply-To: <4D501D84.50403@r3-gis.com> References: <4D4FFBFE.4090201@r3-gis.com> <4D501D84.50403@r3-gis.com> Message-ID: You're welcome. I think this precision would be useful in the documentation. Am not in the MapServer team however, and don't know the process for suggesting modifications in the doc. It seems logical that msMapObj.generateSLD() only includes enabled layers, but it's not that clear that it's the same for explicit calls to msLayerObj.generateSLD(). It might also be considered as a program issue... Don't know. Jeff 2011/2/7 Daniel Degasperi > > Hi Jeff, > thank you very much, now it works. > > Should this information be included in the documentation? > > Daniel > > Am 07/02/2011 17:14, schrieb Jean-Fran?ois Gigand: > > Hi, > > Maybe the layer has to be enabled (STATUS property) to appear in the SLD? > If you want to keep it disabled in your mapFile, you can enable it > programmatically just before calling generateSLD() by setting "status" > to MS_ON. > > Jeff > > > 2011/2/7 Daniel Degasperi : > > Hi, > I've used the function generateSLD from the layerObj class to create a sld > snippet, but the output was a empty sld file: > > xmlns:gml="http://www.opengis.net/gml" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/sld > http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> > > > I'm using following mapfile with mapserver 5.6.5: > > MAP > NAME "test.map" > SIZE 256 256 > RESOLUTION 72 > > > OUTPUTFORMAT > ??? NAME "aggpng24" > ??? DRIVER "AGG/PNG" > ??? MIMETYPE "image/png" > ??? IMAGEMODE RGB > ??? EXTENSION "png" > ??? FORMATOPTION "INTERLACE=OFF" > ??? TRANSPARENT ON > ??? FORMATOPTION "INTERLACE=OFF" > END > WEB > ??? METADATA > ??? ??? "ows_onlineresource" > "http://dev/public/services/ows.php?map=test.map" > ??? ??? "ows_title"??? "test" > ??? ??? "ows_abstract"??? "" > ??? ??? "wms_feature_info_mime_type"??? "text/html" > ??? ??? "ows_service_onlineresource"??? "" > ??? ??? "wms_srs"??? "EPSG:32632 EPSG:4326 EPSG:900913" > > ??? END > ??? IMAGEPATH "/tmp/ms_tmp/" > ??? IMAGEURL "/tmp/" > END > > LAYER > ??? GROUP "test" > ??? NAME "test" > ??? TYPE LINE > ??? STATUS OFF > ??? METADATA > ??? ??? "ows_title"??? "test" > ??? ??? "ows_extent"??? "482003.57067363 5006503.5706736 537996.42932637 > 5062496.4293264" > ??? ??? "ows_srs"??? "EPSG:32632" > ??? ??? "gml_geometries"??? "the_geom" > > ??? END > ??? PROJECTION > ??? ??? "+proj=utm +zone=32 +ellps=WGS84 +datum=WGS84 +units=m +no_defs " > ??? END > ??? EXTENT 482003.57067363 5006503.5706736 537996.42932637 5062496.4293264 > ??? CONNECTIONTYPE POSTGIS > ??? CONNECTION "user=test password=test dbname=test host=localhost > port=5432" > ??? DATA "the_geom FROM test USING UNIQUE gid USING SRID 32632" > ??? PROCESSING "CLOSE_CONNECTION=DEFER" > ??? SIZEUNITS pixels > ??? CLASS > ??? ??? NAME "l103106" > ??? ??? EXPRESSION ('[code]' eq 'L103106') > ??? ??? STYLE > ??? ??? ??? COLOR 76 230 0 > ??? ??? ??? SYMBOL "CIRCLE" > ??? ??? ??? SIZE 3 > ??? ??? ??? MINSIZE 3 > ??? ??? ??? MAXSIZE 3 > ??? ??? ??? WIDTH 3 > ??? ??? ??? MINWIDTH 3 > ??? ??? END > ??? END > ??? CLASS > ??? ??? NAME "l103107" > ??? ??? EXPRESSION ('[code]' eq 'L103107') > ??? ??? STYLE > ??? ??? ??? COLOR 56 168 1 > ??? ??? ??? SYMBOL "CIRCLE" > ??? ??? ??? SIZE 2 > ??? ??? ??? MINSIZE 2 > ??? ??? ??? MAXSIZE 2 > ??? ??? ??? WIDTH 2 > ??? ??? ??? MINWIDTH 2 > ??? ??? END > ??? END > END > > ###### SYMBOLS ####### > > SYMBOL > NAME "CIRCLE" > TYPE ELLIPSE > FILLED TRUE > POINTS > 1 1 > END > END > > > END #MAP > > Can somebody help me? > > Best regards, > Daniel > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > Daniel Degasperi > R3 GIS Srl - GmbH > Via Johann Kravogl-Str. 2 > I-39012 Meran/Merano (BZ) > web: www.r3-gis.com > Email: daniel.degasperi at r3-gis.com > Tel. : +39 0473 494949 > Fax : +39 0473 069902 > > ATTENZIONE! Le informazioni contenute nella presente e-mail e nei documenti eventualmente allegati sono confidenziali. La loro diffusione, distribuzione e/o riproduzione da parte di terzi, senza autorizzazione del mittente ? vietata e pu? violare il D. Lgs. 196/2003. In caso di ricezione per errore, Vogliate immediatamente informare il mittente del messaggio e distruggere la e-mail. > > ACHTUNG! Die in dieser Nachricht oder in den beigelegten Dokumenten beinhalteten Informationen sind streng vertraulich. Ihre Verbreitung und/oder ihre Wiedergabe durch Dritte ist ohne Erlaubnis des Absenders verboten und verst??t gegen das Legislativdekret 196/2003. Sollten Sie diese Mitteilung irrt?mlicherweise erhalten haben, bitten wir Sie uns umgehend zu informieren und anschlie?end die Mitteilung zu vernichten. > > WARNING! This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclousure or distribution of the material in this e-mail is strictly forbidden and could be against the law (D. Lgs. 196/2003) > > > > > From Steve.Lime at state.mn.us Mon Feb 7 09:25:49 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 7 Feb 2011 11:25:49 -0600 Subject: [mapserver-users] PHP Mapscript: generateSLD In-Reply-To: References: <4D4FFBFE.4090201@r3-gis.com> <4D501D84.50403@r3-gis.com> Message-ID: Documentation mod suggestions can be filed as tickets at http://trac.osgeo.org/mapserver. Just assign it to the "MapServer Documentation" component and we'll handle it like any other defect... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jean-Fran?ois Gigand Sent: Monday, February 07, 2011 11:23 AM To: Daniel Degasperi Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] PHP Mapscript: generateSLD You're welcome. I think this precision would be useful in the documentation. Am not in the MapServer team however, and don't know the process for suggesting modifications in the doc. It seems logical that msMapObj.generateSLD() only includes enabled layers, but it's not that clear that it's the same for explicit calls to msLayerObj.generateSLD(). It might also be considered as a program issue... Don't know. Jeff 2011/2/7 Daniel Degasperi > > Hi Jeff, > thank you very much, now it works. > > Should this information be included in the documentation? > > Daniel > > Am 07/02/2011 17:14, schrieb Jean-Fran?ois Gigand: > > Hi, > > Maybe the layer has to be enabled (STATUS property) to appear in the SLD? > If you want to keep it disabled in your mapFile, you can enable it > programmatically just before calling generateSLD() by setting "status" > to MS_ON. > > Jeff > > > 2011/2/7 Daniel Degasperi : > > Hi, > I've used the function generateSLD from the layerObj class to create a sld > snippet, but the output was a empty sld file: > > xmlns:gml="http://www.opengis.net/gml" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/sld > http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> > > > I'm using following mapfile with mapserver 5.6.5: > > MAP > NAME "test.map" > SIZE 256 256 > RESOLUTION 72 > > > OUTPUTFORMAT > ??? NAME "aggpng24" > ??? DRIVER "AGG/PNG" > ??? MIMETYPE "image/png" > ??? IMAGEMODE RGB > ??? EXTENSION "png" > ??? FORMATOPTION "INTERLACE=OFF" > ??? TRANSPARENT ON > ??? FORMATOPTION "INTERLACE=OFF" > END > WEB > ??? METADATA > ??? ??? "ows_onlineresource" > "http://dev/public/services/ows.php?map=test.map" > ??? ??? "ows_title"??? "test" > ??? ??? "ows_abstract"??? "" > ??? ??? "wms_feature_info_mime_type"??? "text/html" > ??? ??? "ows_service_onlineresource"??? "" > ??? ??? "wms_srs"??? "EPSG:32632 EPSG:4326 EPSG:900913" > > ??? END > ??? IMAGEPATH "/tmp/ms_tmp/" > ??? IMAGEURL "/tmp/" > END > > LAYER > ??? GROUP "test" > ??? NAME "test" > ??? TYPE LINE > ??? STATUS OFF > ??? METADATA > ??? ??? "ows_title"??? "test" > ??? ??? "ows_extent"??? "482003.57067363 5006503.5706736 537996.42932637 > 5062496.4293264" > ??? ??? "ows_srs"??? "EPSG:32632" > ??? ??? "gml_geometries"??? "the_geom" > > ??? END > ??? PROJECTION > ??? ??? "+proj=utm +zone=32 +ellps=WGS84 +datum=WGS84 +units=m +no_defs " > ??? END > ??? EXTENT 482003.57067363 5006503.5706736 537996.42932637 5062496.4293264 > ??? CONNECTIONTYPE POSTGIS > ??? CONNECTION "user=test password=test dbname=test host=localhost > port=5432" > ??? DATA "the_geom FROM test USING UNIQUE gid USING SRID 32632" > ??? PROCESSING "CLOSE_CONNECTION=DEFER" > ??? SIZEUNITS pixels > ??? CLASS > ??? ??? NAME "l103106" > ??? ??? EXPRESSION ('[code]' eq 'L103106') > ??? ??? STYLE > ??? ??? ??? COLOR 76 230 0 > ??? ??? ??? SYMBOL "CIRCLE" > ??? ??? ??? SIZE 3 > ??? ??? ??? MINSIZE 3 > ??? ??? ??? MAXSIZE 3 > ??? ??? ??? WIDTH 3 > ??? ??? ??? MINWIDTH 3 > ??? ??? END > ??? END > ??? CLASS > ??? ??? NAME "l103107" > ??? ??? EXPRESSION ('[code]' eq 'L103107') > ??? ??? STYLE > ??? ??? ??? COLOR 56 168 1 > ??? ??? ??? SYMBOL "CIRCLE" > ??? ??? ??? SIZE 2 > ??? ??? ??? MINSIZE 2 > ??? ??? ??? MAXSIZE 2 > ??? ??? ??? WIDTH 2 > ??? ??? ??? MINWIDTH 2 > ??? ??? END > ??? END > END > > ###### SYMBOLS ####### > > SYMBOL > NAME "CIRCLE" > TYPE ELLIPSE > FILLED TRUE > POINTS > 1 1 > END > END > > > END #MAP > > Can somebody help me? > > Best regards, > Daniel > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > Daniel Degasperi > R3 GIS Srl - GmbH > Via Johann Kravogl-Str. 2 > I-39012 Meran/Merano (BZ) > web: www.r3-gis.com > Email: daniel.degasperi at r3-gis.com > Tel. : +39 0473 494949 > Fax : +39 0473 069902 > > ATTENZIONE! Le informazioni contenute nella presente e-mail e nei documenti eventualmente allegati sono confidenziali. La loro diffusione, distribuzione e/o riproduzione da parte di terzi, senza autorizzazione del mittente ? vietata e pu? violare il D. Lgs. 196/2003. In caso di ricezione per errore, Vogliate immediatamente informare il mittente del messaggio e distruggere la e-mail. > > ACHTUNG! Die in dieser Nachricht oder in den beigelegten Dokumenten beinhalteten Informationen sind streng vertraulich. Ihre Verbreitung und/oder ihre Wiedergabe durch Dritte ist ohne Erlaubnis des Absenders verboten und verst??t gegen das Legislativdekret 196/2003. Sollten Sie diese Mitteilung irrt?mlicherweise erhalten haben, bitten wir Sie uns umgehend zu informieren und anschlie?end die Mitteilung zu vernichten. > > WARNING! This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclousure or distribution of the material in this e-mail is strictly forbidden and could be against the law (D. Lgs. 196/2003) > > > > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From daniel.degasperi at r3-gis.com Tue Feb 8 00:16:49 2011 From: daniel.degasperi at r3-gis.com (Daniel Degasperi) Date: Tue, 08 Feb 2011 09:16:49 +0100 Subject: [mapserver-users] PHP Mapscript: generateSLD In-Reply-To: References: <4D4FFBFE.4090201@r3-gis.com> <4D501D84.50403@r3-gis.com> Message-ID: <4D50FBF1.3020700@r3-gis.com> Ok, ticket created at: http://trac.osgeo.org/mapserver/ticket/3668 Daniel Am 07/02/2011 18:25, schrieb Lime, Steve D (DNR): > Documentation mod suggestions can be filed as tickets at http://trac.osgeo.org/mapserver. Just assign it to the "MapServer Documentation" component and we'll handle it like any other defect... > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jean-Fran?ois Gigand > Sent: Monday, February 07, 2011 11:23 AM > To: Daniel Degasperi > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] PHP Mapscript: generateSLD > > You're welcome. > > I think this precision would be useful in the documentation. Am not in > the MapServer team however, and don't know the process for suggesting > modifications in the doc. > > It seems logical that msMapObj.generateSLD() only includes enabled > layers, but it's not that clear that it's the same for explicit calls > to msLayerObj.generateSLD(). > It might also be considered as a program issue... Don't know. > > Jeff > > 2011/2/7 Daniel Degasperi >> Hi Jeff, >> thank you very much, now it works. >> >> Should this information be included in the documentation? >> >> Daniel >> >> Am 07/02/2011 17:14, schrieb Jean-Fran?ois Gigand: >> >> Hi, >> >> Maybe the layer has to be enabled (STATUS property) to appear in the SLD? >> If you want to keep it disabled in your mapFile, you can enable it >> programmatically just before calling generateSLD() by setting "status" >> to MS_ON. >> >> Jeff >> >> >> 2011/2/7 Daniel Degasperi: >> >> Hi, >> I've used the function generateSLD from the layerObj class to create a sld >> snippet, but the output was a empty sld file: >> >> > xmlns:gml="http://www.opengis.net/gml" >> xmlns:ogc="http://www.opengis.net/ogc" >> xmlns:xlink="http://www.w3.org/1999/xlink" >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xsi:schemaLocation="http://www.opengis.net/sld >> http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"> >> >> >> I'm using following mapfile with mapserver 5.6.5: >> >> MAP >> NAME "test.map" >> SIZE 256 256 >> RESOLUTION 72 >> >> >> OUTPUTFORMAT >> NAME "aggpng24" >> DRIVER "AGG/PNG" >> MIMETYPE "image/png" >> IMAGEMODE RGB >> EXTENSION "png" >> FORMATOPTION "INTERLACE=OFF" >> TRANSPARENT ON >> FORMATOPTION "INTERLACE=OFF" >> END >> WEB >> METADATA >> "ows_onlineresource" >> "http://dev/public/services/ows.php?map=test.map" >> "ows_title" "test" >> "ows_abstract" "" >> "wms_feature_info_mime_type" "text/html" >> "ows_service_onlineresource" "" >> "wms_srs" "EPSG:32632 EPSG:4326 EPSG:900913" >> >> END >> IMAGEPATH "/tmp/ms_tmp/" >> IMAGEURL "/tmp/" >> END >> >> LAYER >> GROUP "test" >> NAME "test" >> TYPE LINE >> STATUS OFF >> METADATA >> "ows_title" "test" >> "ows_extent" "482003.57067363 5006503.5706736 537996.42932637 >> 5062496.4293264" >> "ows_srs" "EPSG:32632" >> "gml_geometries" "the_geom" >> >> END >> PROJECTION >> "+proj=utm +zone=32 +ellps=WGS84 +datum=WGS84 +units=m +no_defs " >> END >> EXTENT 482003.57067363 5006503.5706736 537996.42932637 5062496.4293264 >> CONNECTIONTYPE POSTGIS >> CONNECTION "user=test password=test dbname=test host=localhost >> port=5432" >> DATA "the_geom FROM test USING UNIQUE gid USING SRID 32632" >> PROCESSING "CLOSE_CONNECTION=DEFER" >> SIZEUNITS pixels >> CLASS >> NAME "l103106" >> EXPRESSION ('[code]' eq 'L103106') >> STYLE >> COLOR 76 230 0 >> SYMBOL "CIRCLE" >> SIZE 3 >> MINSIZE 3 >> MAXSIZE 3 >> WIDTH 3 >> MINWIDTH 3 >> END >> END >> CLASS >> NAME "l103107" >> EXPRESSION ('[code]' eq 'L103107') >> STYLE >> COLOR 56 168 1 >> SYMBOL "CIRCLE" >> SIZE 2 >> MINSIZE 2 >> MAXSIZE 2 >> WIDTH 2 >> MINWIDTH 2 >> END >> END >> END >> >> ###### SYMBOLS ####### >> >> SYMBOL >> NAME "CIRCLE" >> TYPE ELLIPSE >> FILLED TRUE >> POINTS >> 1 1 >> END >> END >> >> >> END #MAP >> >> Can somebody help me? >> >> Best regards, >> Daniel >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> >> -- >> Daniel Degasperi >> R3 GIS Srl - GmbH >> Via Johann Kravogl-Str. 2 >> I-39012 Meran/Merano (BZ) >> web: www.r3-gis.com >> Email: daniel.degasperi at r3-gis.com >> Tel. : +39 0473 494949 >> Fax : +39 0473 069902 >> >> ATTENZIONE! Le informazioni contenute nella presente e-mail e nei documenti eventualmente allegati sono confidenziali. La loro diffusione, distribuzione e/o riproduzione da parte di terzi, senza autorizzazione del mittente ? vietata e pu? violare il D. Lgs. 196/2003. In caso di ricezione per errore, Vogliate immediatamente informare il mittente del messaggio e distruggere la e-mail. >> >> ACHTUNG! Die in dieser Nachricht oder in den beigelegten Dokumenten beinhalteten Informationen sind streng vertraulich. Ihre Verbreitung und/oder ihre Wiedergabe durch Dritte ist ohne Erlaubnis des Absenders verboten und verst??t gegen das Legislativdekret 196/2003. Sollten Sie diese Mitteilung irrt?mlicherweise erhalten haben, bitten wir Sie uns umgehend zu informieren und anschlie?end die Mitteilung zu vernichten. >> >> WARNING! This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclousure or distribution of the material in this e-mail is strictly forbidden and could be against the law (D. Lgs. 196/2003) >> >> >> >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- *Daniel Degasperi* *R3 GIS* Srl - GmbH Via Johann Kravogl-Str. 2 I-39012 Meran/Merano (BZ) web: www.r3-gis.com Email: daniel.degasperi at r3-gis.com Tel. : +39 0473 494949 Fax : +39 0473 069902 *ATTENZIONE!* Le informazioni contenute nella presente e-mail e nei documenti eventualmente allegati sono confidenziali. La loro diffusione, distribuzione e/o riproduzione da parte di terzi, senza autorizzazione del mittente ? vietata e pu? violare il D. Lgs. 196/2003. In caso di ricezione per errore, Vogliate immediatamente informare il mittente del messaggio e distruggere la e-mail. *ACHTUNG!* Die in dieser Nachricht oder in den beigelegten Dokumenten beinhalteten Informationen sind streng vertraulich. Ihre Verbreitung und/oder ihre Wiedergabe durch Dritte ist ohne Erlaubnis des Absenders verboten und verst??t gegen das Legislativdekret 196/2003. Sollten Sie diese Mitteilung irrt?mlicherweise erhalten haben, bitten wir Sie uns umgehend zu informieren und anschlie?end die Mitteilung zu vernichten. *WARNING!* This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclousure or distribution of the material in this e-mail is strictly forbidden and could be against the law (D. Lgs. 196/2003) -------------- next part -------------- An HTML attachment was scrubbed... URL: From isao.nasuno at ctc-g.co.jp Tue Feb 8 00:42:23 2011 From: isao.nasuno at ctc-g.co.jp (NASUNO Isao) Date: Tue, 08 Feb 2011 17:42:23 +0900 Subject: [mapserver-users] size of legend icon for pixmap-type classes Message-ID: <4D5101EF.9000802@ctc-g.co.jp> Hello all, I'm trying to make mapfile which includes polygon layer with pixmap-type symbol classes. The symbols are defined like ... --------------------- SYMBOL NAME "symbol1" TYPE pixmap image /somewhere/symbol1.gif transparent 1 END --------------------- The polygon layer with pixmap is drawn perfectly by map mode, however in legend mode (mode=legend), the icons drawn like line layer. How do I say... it seems that mapserver draws icon for line ( /\/ ) like ArcMap's line layer using "brush" of the gif image. I defined the layer certainly as "type polygon". --------------------- layer name "jimon" connectiontype postgis connection "user=db password=xxxxxxx dbname=DB host=localhost port=5432" data "the_geom from polygon" status on type polygon classitem "id" projection "init=epsg:4326" end class name "pattern1 " expression "1" style symbol "symbol1" end end end --------------------- What I want is normal rectangle-shaped icons filled up with the gif. Could anyone help me ? Thanks, Isao NASUNO From Andreas.Siegel at vorarlberg.at Tue Feb 8 06:37:35 2011 From: Andreas.Siegel at vorarlberg.at (Siegel Andreas) Date: Tue, 8 Feb 2011 15:37:35 +0100 Subject: [mapserver-users] GetfeatureInfo-Request in an UTF-8 environment with shapfile in cp-1252 Message-ID: <5FBE485F93722E4589047FAB5195B63C051B09B8@AVLRBRCL08A.net.vlr.gv.at> Hi. Our mapserver-eniromnent entirely works in utf-8 (mapfiles, webserver, postgres, ..) with one exception, that is, all of our shapefiles. The shapfiles are created/updated in an Windows-environment by several, external contributors. Hence they are encoded in Wiindows-ANSI (cp: 1252). If i do an GetFeatureInfo-Request on the attibutes of the shapefiles all special characters ("umlauts") are garbled. This is no wonder since the content of the shapefile-attributes must be recoded to utf-8 prior to insertion in the template.html. How can this be acomplished? I could not find anything useful in the documentation or with google. Mag Andreas Siegel Landesvermessungsamt Feldkirch Johannitergasse 6, A-6800 Feldkirch Tel: +43(0) 5522 / 75482 - 60227 Fax: +43(0) 5522 / 75482 - 6 E-Mail: andreas.siegel at vorarlberg.at http://www.vorarlberg.at/lva Rechtsverbindlichen Schriftverkehr (zB Antr?ge, Rechtsmittel) richten Sie an: E-Mail: landesvermessungsamt at vorarlberg.at Fax: +43(0)5522/75482-6 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Tue Feb 8 06:48:49 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 08 Feb 2011 10:48:49 -0400 Subject: [mapserver-users] GetfeatureInfo-Request in an UTF-8 environment with shapfile in cp-1252 In-Reply-To: <5FBE485F93722E4589047FAB5195B63C051B09B8@AVLRBRCL08A.net.vlr.gv.at> References: <5FBE485F93722E4589047FAB5195B63C051B09B8@AVLRBRCL08A.net.vlr.gv.at> Message-ID: <4D5157D1.3050508@gatewaygeomatics.com> Hello, A quick thought that I had when I read your issue, is that I recently came across a similar issue when I was working with Japanese data. In that case for MapServer to display query results in my template properly, I had to change the character set in the HTML template file, otherwise the characters would be garbled: ?? ... I'm not sure if that is related to your exact issue, but those are my quick thoughts. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-02-08 10:37 AM, Siegel Andreas wrote: > Hi. > Our mapserver-eniromnent entirely works in utf-8 (mapfiles, webserver, > postgres, ..) with one exception, that is, all of our shapefiles. > The shapfiles are created/updated in an Windows-environment by several, > external contributors. > Hence they are encoded in Wiindows-ANSI (cp: 1252). > If i do an GetFeatureInfo-Request on the attibutes of the shapefiles all > special characters ("umlauts") are garbled. > This is no wonder since the content of the shapefile-attributes must be > recoded to utf-8 prior to insertion in the template.html. > How can this be acomplished? I could not find anything useful in the > documentation or with google. > *Mag Andreas Siegel* From Steve.Lime at state.mn.us Tue Feb 8 08:23:59 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 8 Feb 2011 10:23:59 -0600 Subject: [mapserver-users] size of legend icon for pixmap-type classes In-Reply-To: <4D5101EF.9000802@ctc-g.co.jp> References: <4D5101EF.9000802@ctc-g.co.jp> Message-ID: What version are we talkin'? Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of NASUNO Isao Sent: Tuesday, February 08, 2011 2:42 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] size of legend icon for pixmap-type classes Hello all, I'm trying to make mapfile which includes polygon layer with pixmap-type symbol classes. The symbols are defined like ... --------------------- SYMBOL NAME "symbol1" TYPE pixmap image /somewhere/symbol1.gif transparent 1 END --------------------- The polygon layer with pixmap is drawn perfectly by map mode, however in legend mode (mode=legend), the icons drawn like line layer. How do I say... it seems that mapserver draws icon for line ( /\/ ) like ArcMap's line layer using "brush" of the gif image. I defined the layer certainly as "type polygon". --------------------- layer name "jimon" connectiontype postgis connection "user=db password=xxxxxxx dbname=DB host=localhost port=5432" data "the_geom from polygon" status on type polygon classitem "id" projection "init=epsg:4326" end class name "pattern1 " expression "1" style symbol "symbol1" end end end --------------------- What I want is normal rectangle-shaped icons filled up with the gif. Could anyone help me ? Thanks, Isao NASUNO _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From joanne.mcgraw at SYMPATICO.CA Tue Feb 8 09:54:49 2011 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Tue, 8 Feb 2011 09:54:49 -0800 (PST) Subject: [mapserver-users] Dynamic WMS Service - Projections problem? Message-ID: <1297187689330-6004893.post@n2.nabble.com> First, the background... I have a WMS Service that has an "empty" point layer in it. I use it to display labels at dynamically generated coordinates by passing x,y within the request. For example: http:///ogc/mapserv?map=/path/fenceLabelWms_en.map&map.layer[fencelabel]=FEATURE POINTS -105.5620661354989 51.14394472618872 END TEXT "Fence 1" END&map.layer[fencelabel].class[0]=COLOR 255 0 0 END&map.layer[fencelabel].class[0]=LABEL COLOR 255 0 0 SIZE 10 POSITION UR END&LAYERS=fencelabel&mode=map The entire map file is as follows: MAP NAME "fenceLabelWms_en" FONTSET "../../../mapserv/etc/fonts.txt" SYMBOLSET "../../../mapserv/etc/symbols.sym" SIZE 400 300 IMAGETYPE PNG IMAGECOLOR 255 255 255 RESOLUTION 96 EXTENT -141.5 41.5 -51.5 83.5 # all of Canada UNITS METERS PROJECTION "init=epsg:4269" # lat/long END WEB METADATA "wms_srs" "EPSG:42304" END END OUTPUTFORMAT NAME png DRIVER 'GD/PNG' MIMETYPE 'image/png' IMAGEMODE PC256 #RGB FORMATOPTION "INTERLACE=OFF" EXTENSION 'png' TRANSPARENT ON END LAYER NAME "fencelabel" STATUS ON TYPE point CLASS SIZE 0 COLOR 0 0 0 LABEL TYPE truetype FONT verdana ANTIALIAS false END END END END A number of applications use this WMS and each has its own projection but, as in the request above, all pass the x,y as lat/long (EPSG:4269). The MAP METADATA's "wms_srs" lists the supported projections (for the purposes of this example, I'm simplifying by only including EPSG:42304). So, this allows me to provide the point coordinates in lat/long, but display them using the projection from the application itself. For example: http:///ogc/mapserv?map=/path/fenceLabelWms_en.map&map.layer[fencelabel]=FEATURE POINTS -105.5620661354989 51.14394472618872 END TEXT 'Fence 1' END&map.layer[fencelabel].class[0]=COLOR 255 0 0 END&map.layer[fencelabel].class[0]=LABEL COLOR 255 0 0 SIZE 10 POSITION UR END&LAYERS=fencelabel&FORMAT=image/png&SRS=EPSG:42304&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&BBOX=-2903297.000,-789911.0000,3431059.000,3959683.000&WIDTH=1219&HEIGHT=601 Knowing this, I can define this "dynamic" layer within a WMC tag and load it into an OpenLayers Map (whose projection is set to EPSG:42304 and extents encompass all of Canada). The WMC definition for the above layer is as follows (we use a batch script to set the path to the MapServer executable and MAP file, "fenceLabelWms_en"): Okay, everything works fine up to this point. The fence label WMS is displayed in the OpenLayers Map correctly in relation to the other layers it contains, all of which have projections of EPSG:42304. Now, the problem ... I?d like to print the image displayed to the user. To do this, I have another "empty" MAP file that I use to print the WMC; the same WMC I loaded into OpenLayers. The entire contents of this MAP file are: MAP NAME "wmsContextServer" FONTSET "../../../mapserv/etc/fonts.txt" SYMBOLSET "../../../mapserv/etc/symbols.sym" SIZE 400 300 STATUS ON IMAGETYPE PNG IMAGECOLOR 255 255 255 EXTENT -2338951 -800000 3008692 3900000 UNITS METERS CONFIG "CGI_CONTEXT_URL" "1" PROJECTION "init=epsg:42304" END RESOLUTION 96 REFERENCE # Parameter settings NOT to change STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 # Parameter settings that will change if you replace the default 'refmap.png' IMAGE "../htdocs/images/refmap.png" SIZE 100 74 EXTENT -2.2e+006 -712631 3.0728e+006 3.84e+006 END # REFERENCE SCALEBAR STATUS EMBED INTERVALS 1 POSITION LL TRANSPARENT true UNITS kilometers STYLE 1 SIZE 100 7 LABEL SIZE small END END WEB INCLUDE "../../../mapserv/conf/imagepath.inc.map" METADATA # Used for App Page Title "wms_title" "WMC Context Client" "wms_connectiontimeout" "60" END END OUTPUTFORMAT NAME png DRIVER 'GD/PNG' MIMETYPE 'image/png' IMAGEMODE RGB FORMATOPTION "INTERLACE=OFF" EXTENSION 'png' #TRANSPARENT ON END OUTPUTFORMAT NAME gif DRIVER 'GD/GIF' MIMETYPE 'image/gif' IMAGEMODE RGB FORMATOPTION "INTERLACE=OFF" EXTENSION 'gif' END END Unfortunately, the "dynamic" WMS layer doesn't appear in the output image. I can use the following URL to get an image of all the other layers in the WMC successfully, but the fence label is not shown and there is no error message: http:///ogc/mapserv?map=/path/wmsContextServer.map&mode=map&context=http:///contexts/WMCwFenceLabels.xml&layers=all I'm guessing MapServer is getting a blank image when it's assembling the layers for the output image and I'm further guessing that this is the result of the projections somehow getting out of whack somewhere along the line. I'm thinking that the point is being evaluated as not actually existing within the extents of the output image being generated, perhaps? But, I can't guess why this would be the case. There is no question that it does fall within the extents (as witnessed by loading the same WMC in OpenLayers). As it is now, I am completely stuck as to what the problem might be. Can anyone suggest anything that might help me narrow down exactly what the problem is or a direction I can investigate further? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Dynamic-WMS-Service-Projections-problem-tp6004893p6004893.html Sent from the Mapserver - User mailing list archive at Nabble.com. From tom at vdputte.nl Tue Feb 8 09:12:50 2011 From: tom at vdputte.nl (Tom van der Putte) Date: Tue, 08 Feb 2011 18:12:50 +0100 Subject: [mapserver-users] Re: GetFeatureInfo request in UTF8-environment Message-ID: Hi, I had a similar issue, and the solution I used works but is labour intensive. I'm working mobile right now so I can't send you the link, but the solution is on the Esri forum somewhere. It concerns setting a registry key to a certain value. After this, restart ArcGIS (assuming you have this) add the shapefile, and then export it by rightclicking it in the table of contents-> export data. Save it as a different file, and the attribute data will be in UTF8. I'll see if I have the link somewhere tonight. Cheers, Tom mapserver-users-request at lists.osgeo.orgschreef: >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. size of legend icon for pixmap-type classes (NASUNO Isao) > 2. GetfeatureInfo-Request in an UTF-8 environment with shapfile > in cp-1252 (Siegel Andreas) > 3. Re: GetfeatureInfo-Request in an UTF-8 environment with > shapfile in cp-1252 (Jeff McKenna) > 4. RE: size of legend icon for pixmap-type classes > (Lime, Steve D (DNR)) > > >---------------------------------------------------------------------- > >Message: 1 >Date: Tue, 08 Feb 2011 17:42:23 +0900 >From: NASUNO Isao >Subject: [mapserver-users] size of legend icon for pixmap-type classes >To: mapserver-users at lists.osgeo.org >Message-ID: <4D5101EF.9000802 at ctc-g.co.jp> >Content-Type: text/plain; charset=ISO-2022-JP > >Hello all, > >I'm trying to make mapfile which includes polygon layer >with pixmap-type symbol classes. > >The symbols are defined like ... >--------------------- >SYMBOL > NAME "symbol1" > TYPE pixmap > image /somewhere/symbol1.gif > transparent 1 >END >--------------------- > >The polygon layer with pixmap is drawn perfectly by map mode, >however in legend mode (mode=legend), the icons drawn like line layer. >How do I say... it seems that mapserver draws icon for line ( /\/ ) >like ArcMap's line layer using "brush" of the gif image. > >I defined the layer certainly as "type polygon". > > >--------------------- > layer > name "jimon" > connectiontype postgis > connection "user=db password=xxxxxxx dbname=DB host=localhost port=5432" > data "the_geom from polygon" > status on > type polygon > classitem "id" > projection > "init=epsg:4326" > end > > class > name "pattern1 " > expression "1" > style > symbol "symbol1" > end > end > end >--------------------- > >What I want is normal rectangle-shaped icons filled up with the gif. > >Could anyone help me ? > >Thanks, > >Isao NASUNO > > >------------------------------ > >Message: 2 >Date: Tue, 8 Feb 2011 15:37:35 +0100 >From: "Siegel Andreas" >Subject: [mapserver-users] GetfeatureInfo-Request in an UTF-8 > environment with shapfile in cp-1252 >To: >Message-ID: > <5FBE485F93722E4589047FAB5195B63C051B09B8 at AVLRBRCL08A.net.vlr.gv.at> >Content-Type: text/plain; charset="iso-8859-1" > >Hi. > >Our mapserver-eniromnent entirely works in utf-8 (mapfiles, webserver, postgres, ..) with one exception, that is, all of our shapefiles. >The shapfiles are created/updated in an Windows-environment by several, external contributors. >Hence they are encoded in Wiindows-ANSI (cp: 1252). > >If i do an GetFeatureInfo-Request on the attibutes of the shapefiles all special characters ("umlauts") are garbled. >This is no wonder since the content of the shapefile-attributes must be recoded to utf-8 prior to insertion in the template.html. > >How can this be acomplished? I could not find anything useful in the documentation or with google. > > >Mag Andreas Siegel >Landesvermessungsamt Feldkirch >Johannitergasse 6, A-6800 Feldkirch >Tel: +43(0) 5522 / 75482 - 60227 >Fax: +43(0) 5522 / 75482 - 6 >E-Mail: andreas.siegel at vorarlberg.at >http://www.vorarlberg.at/lva > >Rechtsverbindlichen Schriftverkehr >(zB Antr?ge, Rechtsmittel) richten Sie an: >E-Mail: landesvermessungsamt at vorarlberg.at >Fax: +43(0)5522/75482-6 > >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110208/b94ad66d/attachment-0001.html > >------------------------------ > >Message: 3 >Date: Tue, 08 Feb 2011 10:48:49 -0400 >From: Jeff McKenna >Subject: Re: [mapserver-users] GetfeatureInfo-Request in an UTF-8 > environment with shapfile in cp-1252 >To: mapserver-users at lists.osgeo.org >Message-ID: <4D5157D1.3050508 at gatewaygeomatics.com> >Content-Type: text/plain; charset=UTF-8; format=flowed > >Hello, > >A quick thought that I had when I read your issue, is that I recently >came across a similar issue when I was working with Japanese data. In >that case for MapServer to display query results in my template >properly, I had to change the character set in the HTML template file, >otherwise the characters would be garbled: > > > > > >?????? >... > >I'm not sure if that is related to your exact issue, but those are my >quick thoughts. > >-jeff > > >-- >Jeff McKenna >MapServer Consulting and Training Services >http://www.gatewaygeomatics.com/ > > > > >On 11-02-08 10:37 AM, Siegel Andreas wrote: >> Hi. >> Our mapserver-eniromnent entirely works in utf-8 (mapfiles, webserver, >> postgres, ..) with one exception, that is, all of our shapefiles. >> The shapfiles are created/updated in an Windows-environment by several, >> external contributors. >> Hence they are encoded in Wiindows-ANSI (cp: 1252). >> If i do an GetFeatureInfo-Request on the attibutes of the shapefiles all >> special characters ("umlauts") are garbled. >> This is no wonder since the content of the shapefile-attributes must be >> recoded to utf-8 prior to insertion in the template.html. >> How can this be acomplished? I could not find anything useful in the >> documentation or with google. >> *Mag Andreas Siegel* > > >------------------------------ > >Message: 4 >Date: Tue, 8 Feb 2011 10:23:59 -0600 >From: "Lime, Steve D (DNR)" >Subject: RE: [mapserver-users] size of legend icon for pixmap-type > classes >To: NASUNO Isao , > "mapserver-users at lists.osgeo.org" >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >What version are we talkin'? > >Steve > >-----Original Message----- >From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of NASUNO Isao >Sent: Tuesday, February 08, 2011 2:42 AM >To: mapserver-users at lists.osgeo.org >Subject: [mapserver-users] size of legend icon for pixmap-type classes > >Hello all, > >I'm trying to make mapfile which includes polygon layer >with pixmap-type symbol classes. > >The symbols are defined like ... >--------------------- >SYMBOL > NAME "symbol1" > TYPE pixmap > image /somewhere/symbol1.gif > transparent 1 >END >--------------------- > >The polygon layer with pixmap is drawn perfectly by map mode, >however in legend mode (mode=legend), the icons drawn like line layer. >How do I say... it seems that mapserver draws icon for line ( /\/ ) >like ArcMap's line layer using "brush" of the gif image. > >I defined the layer certainly as "type polygon". > > >--------------------- > layer > name "jimon" > connectiontype postgis > connection "user=db password=xxxxxxx dbname=DB host=localhost port=5432" > data "the_geom from polygon" > status on > type polygon > classitem "id" > projection > "init=epsg:4326" > end > > class > name "pattern1 " > expression "1" > style > symbol "symbol1" > end > end > end >--------------------- > >What I want is normal rectangle-shaped icons filled up with the gif. > >Could anyone help me ? > >Thanks, > >Isao NASUNO >_______________________________________________ >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 > > >End of mapserver-users Digest, Vol 37, Issue 13 >*********************************************** From emontana at igosoftware.es Tue Feb 8 10:09:14 2011 From: emontana at igosoftware.es (=?ISO-8859-1?Q?Eduardo_de_la_Monta=F1a?=) Date: Tue, 08 Feb 2011 19:09:14 +0100 Subject: [mapserver-users] Multiple styles definition on the same layer Message-ID: <4D5186CA.6030403@igosoftware.es> Hi, I am trying to define multiple styles on mapserver 5.0.3. I have tried with the following configuration on my layer: CLASS NAME "2D" GROUP "2D" STYLE SYMBOL "2D" MINSIZE 8 MAXSIZE 16 END END CLASS NAME "3D" GROUP "3D" STYLE SYMBOL "3D" MINSIZE 8 MAXSIZE 16 END END .... METADATA ... "wms_style" "2D,3D" END This configuration works on mapserver 5.6.1 but it does not on 5.0.3. When I call by getMap request with the same configuration, mapserver 5.0.3 does not recognize the GROUP label, and it return/*loadClass(): Unknown identifier. Parsing error near (GROUP)*./ However if I comment the GROUP line,on a getMap request I obtain the following tile : *msWMSLoadGetMapParams(): WMS server error. Invalid style (3D). Mapserver supports only default styles and is expecting an empty strings for the STYLES : STYLES= or STYLES=,,, or using keyword default STYKES=default,default* / /I must say that I have tried to use CLASSGROUP object before the CLASS definition but neither of the mapserver versions recognized it. One more thing. I do not know if it can be relevant but there are a little bit difference on the capabilities responses for both versions of mapserver. These are the following: *Mapserver 5.6.1* *Mapserver 5.0.3 * / Somebody happen to know where can be the problem? How can I configure my mapfile to allow differents styles to the same layer? Thanks in advance, / -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: emontana.vcf Type: text/x-vcard Size: 433 bytes Desc: not available URL: From jean-francois at gigand.fr Tue Feb 8 12:06:23 2011 From: jean-francois at gigand.fr (=?ISO-8859-1?Q?Jean=2DFran=E7ois_Gigand?=) Date: Tue, 8 Feb 2011 21:06:23 +0100 Subject: [mapserver-users] Multiple styles definition on the same layer In-Reply-To: <4D5186CA.6030403@igosoftware.es> References: <4D5186CA.6030403@igosoftware.es> Message-ID: Hi, What if you rename "2D" to "style_2d" and "3D" to "style_3d" ? It would not surprise me that identifiers be expected to start with a letter or underscore, rather than a digit which is confusing. Jeff 2011/2/8 Eduardo de la Monta?a : > Hi, I am trying to define multiple styles on mapserver 5.0.3. I have tried > with the following configuration on my layer: > > ??? ??? CLASS > ??? ??? ? NAME "2D" > ??? ??? ? GROUP "2D" > ??? ??? ? STYLE > ??? ??? ????? SYMBOL "2D" > ??? ??? ????? MINSIZE 8 > ??? ??? ????? MAXSIZE 16 > ??? ??? ??? END > ??? ??? END > ??? ??? CLASS > ??? ??? ? NAME "3D" > ??? ??? ? GROUP "3D" > ??? ??? ? STYLE > ??? ??? ??? SYMBOL "3D" > ??? ??? ??? MINSIZE 8 > ??? ??? ??? MAXSIZE 16 > ??? ??? ? END > ??? ??? END > > ??? .... > ??? METADATA > ??? ... > ??? ??? ??? "wms_style" "2D,3D" > ??? END > > This configuration works on mapserver 5.6.1 but it does not on 5.0.3. When I > call by getMap request with the same configuration, mapserver 5.0.3 does not > recognize the GROUP label, and it return loadClass(): Unknown identifier. > Parsing error near (GROUP). > However if I comment the GROUP line,on a getMap request I obtain the > following tile : msWMSLoadGetMapParams(): WMS server error. Invalid style > (3D). Mapserver supports only default styles and is expecting an empty > strings for the STYLES : STYLES= or STYLES=,,, or using keyword default > STYKES=default,default > > I must say that I have tried to use CLASSGROUP object before the CLASS > definition but neither of the mapserver versions recognized it. > > One more thing. I do not know if it can be relevant but there are a little > bit difference on the capabilities responses for both versions of mapserver. > These are the following: > > Mapserver 5.6.1 > > > > > Mapserver 5.0.3 > > > > > Somebody happen to know where can be the problem? How can I configure my > mapfile to allow differents styles to the same layer? > > Thanks in advance, > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From tom at vdputte.nl Tue Feb 8 13:09:35 2011 From: tom at vdputte.nl (Tom van der Putte) Date: Tue, 08 Feb 2011 22:09:35 +0100 Subject: [mapserver-users] GetfeatureInfo-Request in an UTF-8 environment with shapfile in cp-1252 Message-ID: <3681.1297199375@vdputte.nl> Hi Andreas, i looked it up, you can find it here: http://resources.arcgis.com/content/kbase?fa=articleShow&d=21106 Unfortunately I'm not aware of any means to automate the process of exporting the shapefiles, so you'd have to do it by hand. Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From qazi.iqbal at gmail.com Tue Feb 8 13:09:47 2011 From: qazi.iqbal at gmail.com (qazi iqbal) Date: Tue, 8 Feb 2011 16:09:47 -0500 Subject: [mapserver-users] Pixely image Message-ID: In my mapserver setup, I am testing the layers, I get the layers starting pixelated and then keeps on refreshing till it clears out. Below is a similar example from the mapserver tutorial. It also behaves same. http://mapserver.org/tutorial/example1-6.html#example1-6 Does anyone know how to deal with this issue. Thanks Qazi -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at ci.stpaul.mn.us Tue Feb 8 13:19:17 2011 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Tue, 08 Feb 2011 15:19:17 -0600 Subject: [mapserver-users] Pixely image In-Reply-To: References: Message-ID: <4D515EF5020000A8000263F7@heckle> I think the server has interlacing turned on for the image. It transports a little of the image at a time, and the resolution increases until the image is completely downloaded. Anyone know how to check for sure? bobb >>> qazi iqbal wrote: In my mapserver setup, I am testing the layers, I get the layers starting pixelated and then keeps on refreshing till it clears out. Below is a similar example from the mapserver tutorial. It also behaves same. http://mapserver.org/tutorial/example1-6.html#example1-6 Does anyone know how to deal with this issue. Thanks Qazi -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at ci.stpaul.mn.us Tue Feb 8 13:20:46 2011 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Tue, 08 Feb 2011 15:20:46 -0600 Subject: [mapserver-users] Pixely image In-Reply-To: References: Message-ID: <4D515F4E020000A8000263FD@heckle> In FireBUG it describeds the transfer mode as "Chunked" (Does that equal Interlaced?) thanks bobb >>> qazi iqbal wrote: In my mapserver setup, I am testing the layers, I get the layers starting pixelated and then keeps on refreshing till it clears out. Below is a similar example from the mapserver tutorial. It also behaves same. http://mapserver.org/tutorial/example1-6.html#example1-6 Does anyone know how to deal with this issue. Thanks Qazi -------------- next part -------------- An HTML attachment was scrubbed... URL: From jean-francois at gigand.fr Tue Feb 8 13:32:59 2011 From: jean-francois at gigand.fr (=?ISO-8859-1?Q?Jean=2DFran=E7ois_Gigand?=) Date: Tue, 8 Feb 2011 22:32:59 +0100 Subject: [mapserver-users] Dynamic WMS Service - Projections problem? In-Reply-To: <1297187689330-6004893.post@n2.nabble.com> References: <1297187689330-6004893.post@n2.nabble.com> Message-ID: Hi, Have you checked the MapServer logs? To enable it, set the env variable MS_ERRORFILE to the log file path and MS_DEBUGLEVEL to "5". It will detail interesting details about how your layers are built. Jeff 2011/2/8 myOpenLayersUName : > > First, the background... > > I have a WMS Service that has an "empty" point layer in it. I use it to > display labels at dynamically generated coordinates by passing x,y within > the request. For example: > > http:///ogc/mapserv?map=/path/fenceLabelWms_en.map&map.layer[fencelabel]=FEATURE > POINTS -105.5620661354989 51.14394472618872 END TEXT "Fence 1" > END&map.layer[fencelabel].class[0]=COLOR 255 0 0 > END&map.layer[fencelabel].class[0]=LABEL COLOR 255 0 0 SIZE 10 POSITION UR > END&LAYERS=fencelabel&mode=map > > > The entire map file is as follows: > > MAP > ?NAME "fenceLabelWms_en" > ?FONTSET "../../../mapserv/etc/fonts.txt" > ?SYMBOLSET "../../../mapserv/etc/symbols.sym" > ?SIZE 400 300 > ?IMAGETYPE PNG > ?IMAGECOLOR 255 255 255 > ?RESOLUTION 96 > ?EXTENT -141.5 41.5 -51.5 83.5 # all of Canada > ?UNITS METERS > ?PROJECTION > ? ?"init=epsg:4269" # lat/long > ?END > ?WEB > ? ?METADATA > ? ? ?"wms_srs" "EPSG:42304" > ? ?END > ?END > > ?OUTPUTFORMAT > ? ?NAME png > ? ?DRIVER 'GD/PNG' > ? ?MIMETYPE 'image/png' > ? ?IMAGEMODE PC256 #RGB > ? ?FORMATOPTION "INTERLACE=OFF" > ? ?EXTENSION 'png' > ? ?TRANSPARENT ON > ?END > > ?LAYER > ? ?NAME "fencelabel" > ? ?STATUS ON > ? ?TYPE point > ? ?CLASS > ? ? ?SIZE 0 > ? ? ?COLOR 0 0 0 > ? ? ?LABEL > ? ? ? ?TYPE truetype > ? ? ? ?FONT verdana > ? ? ? ?ANTIALIAS false > ? ? ?END > ? ?END > ?END > END > > > A number of ?applications use this WMS and each has its own projection but, > as in the request above, all pass the x,y as lat/long (EPSG:4269). The MAP > METADATA's "wms_srs" lists the supported projections (for the purposes of > this example, I'm simplifying by only including EPSG:42304). > > > So, this allows me to provide the point coordinates in lat/long, but display > them using the projection from the application itself. For example: > > http:///ogc/mapserv?map=/path/fenceLabelWms_en.map&map.layer[fencelabel]=FEATURE > POINTS -105.5620661354989 51.14394472618872 END TEXT 'Fence 1' > END&map.layer[fencelabel].class[0]=COLOR 255 0 0 > END&map.layer[fencelabel].class[0]=LABEL COLOR 255 0 0 SIZE 10 POSITION UR > END&LAYERS=fencelabel&FORMAT=image/png&SRS=EPSG:42304&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&BBOX=-2903297.000,-789911.0000,3431059.000,3959683.000&WIDTH=1219&HEIGHT=601 > > > Knowing this, I can define this "dynamic" layer within a WMC tag and > load it into an OpenLayers Map (whose projection is set to EPSG:42304 and > extents encompass all of Canada). The WMC definition for the above layer is > as follows (we use a batch script to set the path to the MapServer > executable and MAP file, "fenceLabelWms_en"): > > > > > Okay, everything works fine up to this point. The fence label WMS is > displayed in the OpenLayers Map correctly in relation to the other layers it > contains, all of which have projections of EPSG:42304. > > > Now, the problem ... > > I?d like to print the image displayed to the user. To do this, I have > another "empty" MAP file that I use to print the WMC; the same WMC I loaded > into OpenLayers. The entire contents of this MAP file are: > > MAP > ?NAME "wmsContextServer" > ?FONTSET "../../../mapserv/etc/fonts.txt" > ?SYMBOLSET "../../../mapserv/etc/symbols.sym" > ?SIZE 400 300 > ?STATUS ON > ?IMAGETYPE PNG > ?IMAGECOLOR 255 255 255 > ?EXTENT -2338951 -800000 3008692 3900000 > ?UNITS METERS > ?CONFIG "CGI_CONTEXT_URL" "1" > ?PROJECTION > ? ?"init=epsg:42304" > ?END > > ?RESOLUTION 96 > > ?REFERENCE > ? ?# Parameter settings NOT to change > ? ?STATUS ? ? ? ? ?ON > ? ?COLOR ? ? ? ? ? -1 -1 -1 > ? ?OUTLINECOLOR ? ?255 0 0 > ? ?# Parameter settings that will change if you replace the default > 'refmap.png' > ? ?IMAGE ? ? ? ? ? "../htdocs/images/refmap.png" > ? ?SIZE ? ? ? ? ? ?100 74 > ? ?EXTENT ? ? ? ? ?-2.2e+006 -712631 3.0728e+006 3.84e+006 > ?END # REFERENCE > > ?SCALEBAR > ? ?STATUS EMBED > ? ?INTERVALS 1 > ? ?POSITION LL > ? ?TRANSPARENT true > ? ?UNITS kilometers > ? ?STYLE 1 > ? ?SIZE 100 7 > ? ?LABEL > ? ? ?SIZE small > ? ?END > ?END > > ?WEB > ? ?INCLUDE "../../../mapserv/conf/imagepath.inc.map" > ? ?METADATA > ? ? ?# Used for App Page Title > ? ? ?"wms_title" "WMC Context Client" > ? ? ?"wms_connectiontimeout" "60" > ? ?END > ?END > ?OUTPUTFORMAT > ? ?NAME png > ? ?DRIVER 'GD/PNG' > ? ?MIMETYPE 'image/png' > ? ?IMAGEMODE RGB > ? ?FORMATOPTION "INTERLACE=OFF" > ? ?EXTENSION 'png' > ? ?#TRANSPARENT ON > ?END > > ?OUTPUTFORMAT > ? ?NAME gif > ? ?DRIVER 'GD/GIF' > ? ?MIMETYPE 'image/gif' > ? ?IMAGEMODE RGB > ? ?FORMATOPTION "INTERLACE=OFF" > ? ?EXTENSION 'gif' > ?END > > END > > > Unfortunately, the "dynamic" WMS layer doesn't appear in the output image. I > can use the following URL to get an image of all the other layers in the WMC > successfully, but the fence label is not shown and there is no error > message: > > http:///ogc/mapserv?map=/path/wmsContextServer.map&mode=map&context=http:///contexts/WMCwFenceLabels.xml&layers=all > > > > I'm guessing MapServer is getting a blank image when it's assembling the > layers for the output image and I'm further guessing that this is the result > of the projections somehow getting out of whack somewhere along the line. > I'm thinking that the point is being evaluated as not actually existing > within the extents of the output image being generated, perhaps? But, I > can't guess why this would be the case. There is no question that it does > fall within the extents (as witnessed by loading the same WMC in > OpenLayers). > > > As it is now, I am completely stuck as to what the problem might be. Can > anyone suggest anything that might help me narrow down exactly what the > problem is or a direction I can investigate further? > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Dynamic-WMS-Service-Projections-problem-tp6004893p6004893.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 joanne.mcgraw at sympatico.ca Tue Feb 8 14:23:32 2011 From: joanne.mcgraw at sympatico.ca (joanne.mcgraw at sympatico.ca) Date: Tue, 8 Feb 2011 22:23:32 +0000 Subject: [mapserver-users] Dynamic WMS Service - Projections problem? In-Reply-To: References: <1297187689330-6004893.post@n2.nabble.com>, Message-ID: Beautiful, yes. After a bit of fudging and adjusting (because I don't actually have access to the actual server I'm really trying to use), I managed to get it "not" working on my localhost as it was "not" working on that server. On localhost I was able to put the DEBUG in the map file and see the results. It told me that it couldn't resolve the host (Host not found). There is an extra '/' in the path being put in the WMC. Instead of http:///... in the OnlineResource, it is getting http:////... during the process. Now I just have to figure out why that's happening but I'm sure it won't be difficult. Thank you for reminding me of the DEBUG. Cheers, jtm > From: jean-francois at gigand.fr > Date: Tue, 8 Feb 2011 22:32:59 +0100 > Subject: Re: [mapserver-users] Dynamic WMS Service - Projections problem? > To: joanne.mcgraw at sympatico.ca > CC: mapserver-users at lists.osgeo.org > > Hi, > > Have you checked the MapServer logs? > > To enable it, set the env variable MS_ERRORFILE to the log file path > and MS_DEBUGLEVEL to "5". > It will detail interesting details about how your layers are built. > > Jeff > > > 2011/2/8 myOpenLayersUName : > > > > First, the background... > > > > I have a WMS Service that has an "empty" point layer in it. I use it to > > display labels at dynamically generated coordinates by passing x,y within > > the request. For example: > > > > http:///ogc/mapserv?map=/path/fenceLabelWms_en.map&map.layer[fencelabel]=FEATURE > > POINTS -105.5620661354989 51.14394472618872 END TEXT "Fence 1" > > END&map.layer[fencelabel].class[0]=COLOR 255 0 0 > > END&map.layer[fencelabel].class[0]=LABEL COLOR 255 0 0 SIZE 10 POSITION UR > > END&LAYERS=fencelabel&mode=map > > > > > > The entire map file is as follows: > > > > MAP > > NAME "fenceLabelWms_en" > > FONTSET "../../../mapserv/etc/fonts.txt" > > SYMBOLSET "../../../mapserv/etc/symbols.sym" > > SIZE 400 300 > > IMAGETYPE PNG > > IMAGECOLOR 255 255 255 > > RESOLUTION 96 > > EXTENT -141.5 41.5 -51.5 83.5 # all of Canada > > UNITS METERS > > PROJECTION > > "init=epsg:4269" # lat/long > > END > > WEB > > METADATA > > "wms_srs" "EPSG:42304" > > END > > END > > > > OUTPUTFORMAT > > NAME png > > DRIVER 'GD/PNG' > > MIMETYPE 'image/png' > > IMAGEMODE PC256 #RGB > > FORMATOPTION "INTERLACE=OFF" > > EXTENSION 'png' > > TRANSPARENT ON > > END > > > > LAYER > > NAME "fencelabel" > > STATUS ON > > TYPE point > > CLASS > > SIZE 0 > > COLOR 0 0 0 > > LABEL > > TYPE truetype > > FONT verdana > > ANTIALIAS false > > END > > END > > END > > END > > > > > > A number of applications use this WMS and each has its own projection but, > > as in the request above, all pass the x,y as lat/long (EPSG:4269). The MAP > > METADATA's "wms_srs" lists the supported projections (for the purposes of > > this example, I'm simplifying by only including EPSG:42304). > > > > > > So, this allows me to provide the point coordinates in lat/long, but display > > them using the projection from the application itself. For example: > > > > http:///ogc/mapserv?map=/path/fenceLabelWms_en.map&map.layer[fencelabel]=FEATURE > > POINTS -105.5620661354989 51.14394472618872 END TEXT 'Fence 1' > > END&map.layer[fencelabel].class[0]=COLOR 255 0 0 > > END&map.layer[fencelabel].class[0]=LABEL COLOR 255 0 0 SIZE 10 POSITION UR > > END&LAYERS=fencelabel&FORMAT=image/png&SRS=EPSG:42304&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&BBOX=-2903297.000,-789911.0000,3431059.000,3959683.000&WIDTH=1219&HEIGHT=601 > > > > > > Knowing this, I can define this "dynamic" layer within a WMC tag and > > load it into an OpenLayers Map (whose projection is set to EPSG:42304 and > > extents encompass all of Canada). The WMC definition for the above layer is > > as follows (we use a batch script to set the path to the MapServer > > executable and MAP file, "fenceLabelWms_en"): > > > > > > > > > > Okay, everything works fine up to this point. The fence label WMS is > > displayed in the OpenLayers Map correctly in relation to the other layers it > > contains, all of which have projections of EPSG:42304. > > > > > > Now, the problem ... > > > > I?d like to print the image displayed to the user. To do this, I have > > another "empty" MAP file that I use to print the WMC; the same WMC I loaded > > into OpenLayers. The entire contents of this MAP file are: > > > > MAP > > NAME "wmsContextServer" > > FONTSET "../../../mapserv/etc/fonts.txt" > > SYMBOLSET "../../../mapserv/etc/symbols.sym" > > SIZE 400 300 > > STATUS ON > > IMAGETYPE PNG > > IMAGECOLOR 255 255 255 > > EXTENT -2338951 -800000 3008692 3900000 > > UNITS METERS > > CONFIG "CGI_CONTEXT_URL" "1" > > PROJECTION > > "init=epsg:42304" > > END > > > > RESOLUTION 96 > > > > REFERENCE > > # Parameter settings NOT to change > > STATUS ON > > COLOR -1 -1 -1 > > OUTLINECOLOR 255 0 0 > > # Parameter settings that will change if you replace the default > > 'refmap.png' > > IMAGE "../htdocs/images/refmap.png" > > SIZE 100 74 > > EXTENT -2.2e+006 -712631 3.0728e+006 3.84e+006 > > END # REFERENCE > > > > SCALEBAR > > STATUS EMBED > > INTERVALS 1 > > POSITION LL > > TRANSPARENT true > > UNITS kilometers > > STYLE 1 > > SIZE 100 7 > > LABEL > > SIZE small > > END > > END > > > > WEB > > INCLUDE "../../../mapserv/conf/imagepath.inc.map" > > METADATA > > # Used for App Page Title > > "wms_title" "WMC Context Client" > > "wms_connectiontimeout" "60" > > END > > END > > OUTPUTFORMAT > > NAME png > > DRIVER 'GD/PNG' > > MIMETYPE 'image/png' > > IMAGEMODE RGB > > FORMATOPTION "INTERLACE=OFF" > > EXTENSION 'png' > > #TRANSPARENT ON > > END > > > > OUTPUTFORMAT > > NAME gif > > DRIVER 'GD/GIF' > > MIMETYPE 'image/gif' > > IMAGEMODE RGB > > FORMATOPTION "INTERLACE=OFF" > > EXTENSION 'gif' > > END > > > > END > > > > > > Unfortunately, the "dynamic" WMS layer doesn't appear in the output image. I > > can use the following URL to get an image of all the other layers in the WMC > > successfully, but the fence label is not shown and there is no error > > message: > > > > http:///ogc/mapserv?map=/path/wmsContextServer.map&mode=map&context=http:///contexts/WMCwFenceLabels.xml&layers=all > > > > > > > > I'm guessing MapServer is getting a blank image when it's assembling the > > layers for the output image and I'm further guessing that this is the result > > of the projections somehow getting out of whack somewhere along the line. > > I'm thinking that the point is being evaluated as not actually existing > > within the extents of the output image being generated, perhaps? But, I > > can't guess why this would be the case. There is no question that it does > > fall within the extents (as witnessed by loading the same WMC in > > OpenLayers). > > > > > > As it is now, I am completely stuck as to what the problem might be. Can > > anyone suggest anything that might help me narrow down exactly what the > > problem is or a direction I can investigate further? > > > > -- > > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Dynamic-WMS-Service-Projections-problem-tp6004893p6004893.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 christopher.schmidt at nokia.com Tue Feb 8 13:16:50 2011 From: christopher.schmidt at nokia.com (christopher.schmidt at nokia.com) Date: Tue, 8 Feb 2011 21:16:50 +0000 Subject: [mapserver-users] Pixely image In-Reply-To: References: Message-ID: On Feb 8, 2011, at 4:09 PM, ext qazi iqbal wrote: > In my mapserver setup, I am testing the layers, I get the layers starting pixelated and then keeps on refreshing till it clears out. Below is a similar example from the mapserver tutorial. It also behaves same. > http://mapserver.org/tutorial/example1-6.html#example1-6 This is called 'interlacing', and it is a common technique to speed the amount of time before something is displayed to the user (delivering a lower quality copy first, then updating as more data is delivered). >From the MapServer docs: FORMATOPTION [option] Provides a driver or format specific option. Zero or more FORMATOPTION statement may be present within a OUTPUTFORMAT declaration. (optional) ? GD/JPEG: The ?QUALITY=n? option may be used to set the quality of jpeg produced (value from 0-100). ? GD/PNG: The ?INTERLACE=[ON/OFF]? option may be used to turn interlacing on or off. ? GD/GIF: The ?INTERLACE=[ON/OFF]? option may be used to turn interlacing on or off. -- http://mapserver.org/mapfile/outputformat.html > Does anyone know how to deal with this issue. > Thanks > Qazi > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From isao.nasuno at ctc-g.co.jp Tue Feb 8 15:59:33 2011 From: isao.nasuno at ctc-g.co.jp (Isao NASUNO) Date: Wed, 09 Feb 2011 08:59:33 +0900 Subject: [mapserver-users] size of legend icon for pixmap-type classes In-Reply-To: References: <4D5101EF.9000802@ctc-g.co.jp> Message-ID: <4D51D8E5.5010307@ctc-g.co.jp> Sorry, I am using MapServer 5.0.2 on CentOS 5.2, and talking about only mapserver's cgi. Isao (2011/02/09 1:23), Lime, Steve D (DNR) wrote: > What version are we talkin'? > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of NASUNO Isao > Sent: Tuesday, February 08, 2011 2:42 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] size of legend icon for pixmap-type classes > > Hello all, > > I'm trying to make mapfile which includes polygon layer > with pixmap-type symbol classes. > > The symbols are defined like ... > --------------------- > SYMBOL > NAME "symbol1" > TYPE pixmap > image /somewhere/symbol1.gif > transparent 1 > END > --------------------- > > The polygon layer with pixmap is drawn perfectly by map mode, > however in legend mode (mode=legend), the icons drawn like line layer. > How do I say... it seems that mapserver draws icon for line ( /\/ ) > like ArcMap's line layer using "brush" of the gif image. > > I defined the layer certainly as "type polygon". > > > --------------------- > layer > name "jimon" > connectiontype postgis > connection "user=db password=xxxxxxx dbname=DB host=localhost port=5432" > data "the_geom from polygon" > status on > type polygon > classitem "id" > projection > "init=epsg:4326" > end > > class > name "pattern1 " > expression "1" > style > symbol "symbol1" > end > end > end > --------------------- > > What I want is normal rectangle-shaped icons filled up with the gif. > > Could anyone help me ? > > Thanks, > > Isao NASUNO > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jean-francois at gigand.fr Tue Feb 8 17:02:39 2011 From: jean-francois at gigand.fr (=?ISO-8859-1?Q?Jean=2DFran=E7ois_Gigand?=) Date: Wed, 9 Feb 2011 02:02:39 +0100 Subject: [mapserver-users] Dynamic WMS Service - Projections problem? In-Reply-To: References: <1297187689330-6004893.post@n2.nabble.com> Message-ID: Great! Good luck for your issue, and to get it working again on your server! Jeff 2011/2/8 : > Beautiful, yes. After a bit of fudging and adjusting (because I don't > actually have access to the actual server I'm really trying to use), I > managed to get it "not" working on my localhost as it was "not" working on > that server. On localhost I was able to put the DEBUG in the map file and > see the results. It told me that it couldn't resolve the host (Host not > found). > > There is an extra '/' in the path being put in the WMC. Instead of > http:///... in the OnlineResource, it is getting > http:////... during the process. Now I just have to figure out why > that's happening but I'm sure it won't be difficult. > > Thank you for reminding me of the DEBUG. > > Cheers, > jtm > >> From: jean-francois at gigand.fr >> Date: Tue, 8 Feb 2011 22:32:59 +0100 >> Subject: Re: [mapserver-users] Dynamic WMS Service - Projections problem? >> To: joanne.mcgraw at sympatico.ca >> CC: mapserver-users at lists.osgeo.org >> >> Hi, >> >> Have you checked the MapServer logs? >> >> To enable it, set the env variable MS_ERRORFILE to the log file path >> and MS_DEBUGLEVEL to "5". >> It will detail interesting details about how your layers are built. >> >> Jeff >> >> >> 2011/2/8 myOpenLayersUName : >> > >> > First, the background... >> > >> > I have a WMS Service that has an "empty" point layer in it. I use it to >> > display labels at dynamically generated coordinates by passing x,y >> > within >> > the request. For example: >> > >> > >> > http:///ogc/mapserv?map=/path/fenceLabelWms_en.map&map.layer[fencelabel]=FEATURE >> > POINTS -105.5620661354989 51.14394472618872 END TEXT "Fence 1" >> > END&map.layer[fencelabel].class[0]=COLOR 255 0 0 >> > END&map.layer[fencelabel].class[0]=LABEL COLOR 255 0 0 SIZE 10 POSITION >> > UR >> > END&LAYERS=fencelabel&mode=map >> > >> > >> > The entire map file is as follows: >> > >> > MAP >> > ?NAME "fenceLabelWms_en" >> > ?FONTSET "../../../mapserv/etc/fonts.txt" >> > ?SYMBOLSET "../../../mapserv/etc/symbols.sym" >> > ?SIZE 400 300 >> > ?IMAGETYPE PNG >> > ?IMAGECOLOR 255 255 255 >> > ?RESOLUTION 96 >> > ?EXTENT -141.5 41.5 -51.5 83.5 # all of Canada >> > ?UNITS METERS >> > ?PROJECTION >> > ? ?"init=epsg:4269" # lat/long >> > ?END >> > ?WEB >> > ? ?METADATA >> > ? ? ?"wms_srs" "EPSG:42304" >> > ? ?END >> > ?END >> > >> > ?OUTPUTFORMAT >> > ? ?NAME png >> > ? ?DRIVER 'GD/PNG' >> > ? ?MIMETYPE 'image/png' >> > ? ?IMAGEMODE PC256 #RGB >> > ? ?FORMATOPTION "INTERLACE=OFF" >> > ? ?EXTENSION 'png' >> > ? ?TRANSPARENT ON >> > ?END >> > >> > ?LAYER >> > ? ?NAME "fencelabel" >> > ? ?STATUS ON >> > ? ?TYPE point >> > ? ?CLASS >> > ? ? ?SIZE 0 >> > ? ? ?COLOR 0 0 0 >> > ? ? ?LABEL >> > ? ? ? ?TYPE truetype >> > ? ? ? ?FONT verdana >> > ? ? ? ?ANTIALIAS false >> > ? ? ?END >> > ? ?END >> > ?END >> > END >> > >> > >> > A number of ?applications use this WMS and each has its own projection >> > but, >> > as in the request above, all pass the x,y as lat/long (EPSG:4269). The >> > MAP >> > METADATA's "wms_srs" lists the supported projections (for the purposes >> > of >> > this example, I'm simplifying by only including EPSG:42304). >> > >> > >> > So, this allows me to provide the point coordinates in lat/long, but >> > display >> > them using the projection from the application itself. For example: >> > >> > >> > http:///ogc/mapserv?map=/path/fenceLabelWms_en.map&map.layer[fencelabel]=FEATURE >> > POINTS -105.5620661354989 51.14394472618872 END TEXT 'Fence 1' >> > END&map.layer[fencelabel].class[0]=COLOR 255 0 0 >> > END&map.layer[fencelabel].class[0]=LABEL COLOR 255 0 0 SIZE 10 POSITION >> > UR >> > >> > END&LAYERS=fencelabel&FORMAT=image/png&SRS=EPSG:42304&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&BBOX=-2903297.000,-789911.0000,3431059.000,3959683.000&WIDTH=1219&HEIGHT=601 >> > >> > >> > Knowing this, I can define this "dynamic" layer within a WMC tag >> > and >> > load it into an OpenLayers Map (whose projection is set to EPSG:42304 >> > and >> > extents encompass all of Canada). The WMC definition for the above layer >> > is >> > as follows (we use a batch script to set the path to the MapServer >> > executable and MAP file, "fenceLabelWms_en"): >> > >> > >> > >> > >> > Okay, everything works fine up to this point. The fence label WMS is >> > displayed in the OpenLayers Map correctly in relation to the other >> > layers it >> > contains, all of which have projections of EPSG:42304. >> > >> > >> > Now, the problem ... >> > >> > I?d like to print the image displayed to the user. To do this, I have >> > another "empty" MAP file that I use to print the WMC; the same WMC I >> > loaded >> > into OpenLayers. The entire contents of this MAP file are: >> > >> > MAP >> > ?NAME "wmsContextServer" >> > ?FONTSET "../../../mapserv/etc/fonts.txt" >> > ?SYMBOLSET "../../../mapserv/etc/symbols.sym" >> > ?SIZE 400 300 >> > ?STATUS ON >> > ?IMAGETYPE PNG >> > ?IMAGECOLOR 255 255 255 >> > ?EXTENT -2338951 -800000 3008692 3900000 >> > ?UNITS METERS >> > ?CONFIG "CGI_CONTEXT_URL" "1" >> > ?PROJECTION >> > ? ?"init=epsg:42304" >> > ?END >> > >> > ?RESOLUTION 96 >> > >> > ?REFERENCE >> > ? ?# Parameter settings NOT to change >> > ? ?STATUS ? ? ? ? ?ON >> > ? ?COLOR ? ? ? ? ? -1 -1 -1 >> > ? ?OUTLINECOLOR ? ?255 0 0 >> > ? ?# Parameter settings that will change if you replace the default >> > 'refmap.png' >> > ? ?IMAGE ? ? ? ? ? "../htdocs/images/refmap.png" >> > ? ?SIZE ? ? ? ? ? ?100 74 >> > ? ?EXTENT ? ? ? ? ?-2.2e+006 -712631 3.0728e+006 3.84e+006 >> > ?END # REFERENCE >> > >> > ?SCALEBAR >> > ? ?STATUS EMBED >> > ? ?INTERVALS 1 >> > ? ?POSITION LL >> > ? ?TRANSPARENT true >> > ? ?UNITS kilometers >> > ? ?STYLE 1 >> > ? ?SIZE 100 7 >> > ? ?LABEL >> > ? ? ?SIZE small >> > ? ?END >> > ?END >> > >> > ?WEB >> > ? ?INCLUDE "../../../mapserv/conf/imagepath.inc.map" >> > ? ?METADATA >> > ? ? ?# Used for App Page Title >> > ? ? ?"wms_title" "WMC Context Client" >> > ? ? ?"wms_connectiontimeout" "60" >> > ? ?END >> > ?END >> > ?OUTPUTFORMAT >> > ? ?NAME png >> > ? ?DRIVER 'GD/PNG' >> > ? ?MIMETYPE 'image/png' >> > ? ?IMAGEMODE RGB >> > ? ?FORMATOPTION "INTERLACE=OFF" >> > ? ?EXTENSION 'png' >> > ? ?#TRANSPARENT ON >> > ?END >> > >> > ?OUTPUTFORMAT >> > ? ?NAME gif >> > ? ?DRIVER 'GD/GIF' >> > ? ?MIMETYPE 'image/gif' >> > ? ?IMAGEMODE RGB >> > ? ?FORMATOPTION "INTERLACE=OFF" >> > ? ?EXTENSION 'gif' >> > ?END >> > >> > END >> > >> > >> > Unfortunately, the "dynamic" WMS layer doesn't appear in the output >> > image. I >> > can use the following URL to get an image of all the other layers in the >> > WMC >> > successfully, but the fence label is not shown and there is no error >> > message: >> > >> > >> > http:///ogc/mapserv?map=/path/wmsContextServer.map&mode=map&context=http:///contexts/WMCwFenceLabels.xml&layers=all >> > >> > >> > >> > I'm guessing MapServer is getting a blank image when it's assembling the >> > layers for the output image and I'm further guessing that this is the >> > result >> > of the projections somehow getting out of whack somewhere along the >> > line. >> > I'm thinking that the point is being evaluated as not actually existing >> > within the extents of the output image being generated, perhaps? But, I >> > can't guess why this would be the case. There is no question that it >> > does >> > fall within the extents (as witnessed by loading the same WMC in >> > OpenLayers). >> > >> > >> > As it is now, I am completely stuck as to what the problem might be. Can >> > anyone suggest anything that might help me narrow down exactly what the >> > problem is or a direction I can investigate further? >> > >> > -- >> > View this message in context: >> > http://osgeo-org.1803224.n2.nabble.com/Dynamic-WMS-Service-Projections-problem-tp6004893p6004893.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 brfr at metrico.lu Wed Feb 9 00:18:38 2011 From: brfr at metrico.lu (Frank Broniewski) Date: Wed, 09 Feb 2011 09:18:38 +0100 Subject: [mapserver-users] WMS SLD Troubles In-Reply-To: <4D5159D5.7010508@dmsolutions.ca> References: <4D4FC235.1050803@metrico.lu> <4D5159D5.7010508@dmsolutions.ca> Message-ID: <4D524DDE.30801@metrico.lu> Hello, thank you for your kind help :-) I've put the requested informations below. Frank INFO: we're using /usr/lib/cgi-bin/mapserv -v MapServer version 5.6.6 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG 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 SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE on Ubuntu 8.04 with the ubuntu-gis ppa. Original layer definition: LAYER NAME "post" STATUS Off CONNECTIONTYPE Postgis CONNECTION "host=localhost dbname=osm user= password= port=5432" DATA "nway FROM (SELECT way as nway, osm_id, amenity, name FROM planet_osm_point WHERE amenity='post_box' OR amenity='post_office' ) as foo using unique osm_id using SRID=900913" TYPE Point PROCESSING "CLOSE_CONNECTION=DEFER" CLASSITEM "amenity" DUMP true # --------------------------------------------------------------- # Projection configuration # --------------------------------------------------------------- INCLUDE "/usr/local/mapconf/share/projections/google.map" METADATA # lots of metadata .... END END the SLD: post Post amenity post_box image/png 40 amenity post_office image/png 40 the generated map file: LAYER CLASSITEM "amenity" CONNECTION "host=localhost dbname=osm user= password= port=5432" CONNECTIONTYPE POSTGIS DATA "nway FROM (SELECT way as nway, osm_id, amenity, name FROM planet_osm_point WHERE amenity='post_box' OR amenity='post_office' ) as foo using unique osm_id using SRID=900913" DUMP TRUE METADATA # metadata END NAME "post" PROCESSING "CLOSE_CONNECTION=DEFER" PROJECTION "proj=merc" "a=6378137" "b=6378137" "lat_ts=0" "lon_0=0" "x_0=0" "y_0=0" "k=1" "nadgrids=@null" "units=m" "no_defs" END STATUS ON TYPE POINT UNITS METERS CLASS NAME "Unknown" EXPRESSION ("[amenity]" = "post_box") STYLE ANGLE 360 COLOR 0 0 0 SIZE 40 SYMBOL "http://192.168.0.111:8502/sld/img/briefkasten.png" WIDTH 1 END END END Am 08.02.2011 15:57, schrieb Yewondwossen Assefa: > What version of MapServer? > > Also, what is the part in the map file that is causing the problem: > * if you remove the EXPRESSION ("[amenity]" = "post_box") from the > generated map, will that work > * Is the layer's FILTER element set (on the generated map)? If so what > is the value? > > A full layer definition in the generated map would be useful. A full sld > might also help. > > regards, > > > On 07/02/2011 4:58 AM, Frank Broniewski wrote: >> Hello, >> >> We're using a OpenStreetMap Postgis database as a source for our >> geo-servers. We want to provide WMS and WFS services on the data. In >> order to do the styling only once, we are using SLDs, which works >> mostly fine. >> >> One of our layers does not render as a WMS, it throws a >> "msEvalRegex(): Regular expression error. String failed expression >> test." Error during execution. >> >> We identified the layer, and it's the one rendering post boxes. The >> corresponding SLD definition is using a filter: >> >> >> >> >> amenity >> post_office >> >> >> >> >> Using debug-level 5, the mapfile after SLD application looks like >> >> # ... >> # more definitions >> # ... >> CLASSITEM "amenity" >> DATA "nway FROM >> (SELECT way as nway, osm_id, amenity, name >> FROM planet_osm_point >> WHERE amenity='post_box' >> OR amenity='post_office' >> ) >> as foo using unique osm_id using SRID=900913" >> # ... >> # more definitions >> # ... >> CLASS >> NAME "Unknown" >> EXPRESSION ("[amenity]" = "post_box") >> STYLE >> ANGLE 360 >> COLOR 0 0 0 >> SIZE 40 >> SYMBOL "http://192.168.0.111:8502/sld/img/briefkasten.png" >> WIDTH 1 >> END >> END >> >> >> We simply can't figure out, what might be the problem here. The whole >> issue seem to be related to the filter element, removing it makes the >> layer render. Using the generated map layer, rendering fails with the >> same error. >> So I would be happy if someone with more experience with SLDs can give >> me a hint about whats going wrong here. >> >> >> 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 milo at dogodigi.net Wed Feb 9 00:41:31 2011 From: milo at dogodigi.net (Milo van der Linden) Date: Wed, 9 Feb 2011 09:41:31 +0100 Subject: [mapserver-users] GetfeatureInfo-Request in an UTF-8 environment with shapfile in cp-1252 In-Reply-To: <3681.1297199375@vdputte.nl> References: <3681.1297199375@vdputte.nl> Message-ID: Hello Andreas; What return type of getfeatureinfo are you using? There are three possibilities: http://mapserver.org/ogc/wms_server.html 1. text/plain 2. text/html 3. gml If you use text/html; you can set the character encoding to windows ansi: http://www.w3.org/International/questions/qa-html-encoding-declarations#quicklookup If you use GML, because it is a "flavour" of XML, mapserver MUST serve UNICODE:(UTF-8 or UTF-16);http://www.w3.org/TR/REC-xml/#sec-well-formed So if the gml output is not converted to unicode; please file a ticket for this matter in the osgeo trac database. 2011/2/8 Tom van der Putte > Hi Andreas, > > i looked it up, you can find it here: > > http://resources.arcgis.com/content/kbase?fa=articleShow&d=21106 > > Unfortunately I'm not aware of any means to automate the process of > exporting the shapefiles, so you'd have to do it by hand. > > Tom > > _______________________________________________ > 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 milo at dogodigi.net Wed Feb 9 00:46:37 2011 From: milo at dogodigi.net (Milo van der Linden) Date: Wed, 9 Feb 2011 09:46:37 +0100 Subject: [mapserver-users] GetfeatureInfo-Request in an UTF-8 environment with shapfile in cp-1252 In-Reply-To: References: <3681.1297199375@vdputte.nl> Message-ID: I found a ticket that is related to this issue: http://trac.osgeo.org/gdal/wiki/rfc23_ogr_unicode 2011/2/9 Milo van der Linden > Hello Andreas; > > What return type of getfeatureinfo are you using? > There are three possibilities: http://mapserver.org/ogc/wms_server.html > > 1. text/plain > 2. text/html > 3. gml > > If you use text/html; you can set the character encoding to windows ansi: > > > http://www.w3.org/International/questions/qa-html-encoding-declarations#quicklookup > > If you use GML, because it is a "flavour" of XML, mapserver MUST serve > UNICODE:(UTF-8 or UTF-16);http://www.w3.org/TR/REC-xml/#sec-well-formed > So if the gml output is not converted to unicode; please file a ticket for > this matter in the osgeo trac database. > > > 2011/2/8 Tom van der Putte > >> Hi Andreas, >> >> i looked it up, you can find it here: >> >> http://resources.arcgis.com/content/kbase?fa=articleShow&d=21106 >> >> Unfortunately I'm not aware of any means to automate the process of >> exporting the shapefiles, so you'd have to do it by hand. >> >> Tom >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Siegel at vorarlberg.at Wed Feb 9 01:19:31 2011 From: Andreas.Siegel at vorarlberg.at (Siegel Andreas) Date: Wed, 9 Feb 2011 10:19:31 +0100 Subject: [mapserver-users] GetfeatureInfo-Request in an UTF-8 environment with shapfile in cp-1252 Message-ID: <5FBE485F93722E4589047FAB5195B63C051B09BB@AVLRBRCL08A.net.vlr.gv.at> Hi Tom. Thanks for your reply. But no, it is not an issue with ArcGIS. The link you sent me may prove useful anyway since we rely heavy on shapefiles and ArcGIS ist used by several of our colleges and contributors. My issue is this line of code: Please note the charset MacThai. This charset should render my results illegible but it has no effect at all. I test it by using a browser: http://vogis.cnv.at/mapserver/mapserv?map=a.map&LAYERS=umlauttest&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application/vnd.ogc.se_xml&FORMAT=image/jpeg&SRS=EPSG:31254&BBOX=-49500,246750,-49000,247250&X=250&Y=250&INFO_FORMAT=text/html&QUERY_LAYERS=umlauttest&WIDTH=650&HEIGHT=650&FEATURE_COUNT=30 and the commandline. ./mapserv -nh "QUERY_STRING=map=a.map&LAYERS=umlauttest&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application/vnd.ogc.se_xml&FORMAT=image/jpeg&SRS=EPSG:31254&BBOX=-49500,246750,-49000,247250&X=250&Y=250&INFO_FORMAT=text/html&QUERY_LAYERS=umlauttest&WIDTH=650&HEIGHT=650&FEATURE_COUNT=30" The commandline output can be inspected by hexdump -C ./mapserv -nh "QUERY_STRING=map=a.map&LAYERS=umlauttest&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application/vnd.ogc.se_xml&FORMAT=image/jpeg&SRS=EPSG:31254&BBOX=-49500,246750,-49000,247250&X=250&Y=250&INFO_FORMAT=text/html&QUERY_LAYERS=umlauttest&WIDTH=650&HEIGHT=650&FEATURE_COUNT=30" | hexdump -c This allows to inspect the result without some unwanted/unnoticed code translations when using an editor or the browser, This are the HTML-Templates: Header: "> GetFeatureInfo Response TEMPLATE: FOOTER:
Widmungsart Zeichensatztest ae ? oe ? ue ? AE ? OE ? UE ? scharfes s ? Ende
Kuerzel Widmungsart Flaeche Text
[item name=WI_EM_KN format=$value escape=none] [item name=WI_EM_TXT format=$value escape=none] [item name=Flaeche format=$value escape=none] [item name=FS_TXT format=$value escape=none]

Mag Andreas Siegel Landesvermessungsamt Feldkirch Johannitergasse 6, A-6800 Feldkirch Tel: +43(0) 5522 / 75482 - 60227 Fax: +43(0) 5522 / 75482 - 6 E-Mail: andreas.siegel at vorarlberg.at http://www.vorarlberg.at/lva Rechtsverbindlichen Schriftverkehr (zB Antr?ge, Rechtsmittel) richten Sie an: E-Mail: landesvermessungsamt at vorarlberg.at Fax: +43(0)5522/75482-6 -------------- next part -------------- An HTML attachment was scrubbed... URL: From milo at dogodigi.net Wed Feb 9 02:00:25 2011 From: milo at dogodigi.net (Milo van der Linden) Date: Wed, 9 Feb 2011 11:00:25 +0100 Subject: [mapserver-users] GetfeatureInfo-Request in an UTF-8 environment with shapfile in cp-1252 In-Reply-To: <5FBE485F93722E4589047FAB5195B63C051B09BB@AVLRBRCL08A.net.vlr.gv.at> References: <5FBE485F93722E4589047FAB5195B63C051B09BB@AVLRBRCL08A.net.vlr.gv.at> Message-ID: There are errors in the usage of " I think that: is the correct one. http://www.w3.org/International/O-HTTP-charset 2011/2/9 Siegel Andreas > Hi Tom. > > Thanks for your reply. But no, it is not an issue with ArcGIS. > The link you sent me may prove useful anyway since we rely heavy on > shapefiles and ArcGIS ist used by several of our colleges and contributors. > > My issue is this line of code: > charset=MacThai"> > Please note the charset MacThai. > This charset should render my results illegible but it has no effect at > all. > > I test it by using a browser: > > http://vogis.cnv.at/mapserver/mapserv?map=a.map&LAYERS=umlauttest&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application/vnd.ogc.se_xml&FORMAT=image/jpeg&SRS=EPSG:31254&BBOX=-49500,246750,-49000,247250&X=250&Y=250&INFO_FORMAT=text/html&QUERY_LAYERS=umlauttest&WIDTH=650&HEIGHT=650&FEATURE_COUNT=30 > > and the commandline. > ./mapserv -nh > "QUERY_STRING=map=a.map&LAYERS=umlauttest&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application/vnd.ogc.se_xml&FORMAT=image/jpeg&SRS=EPSG:31254&BBOX=-49500,246750,-49000,247250&X=250&Y=250&INFO_FORMAT=text/html&QUERY_LAYERS=umlauttest&WIDTH=650&HEIGHT=650&FEATURE_COUNT=30" > The commandline output can be inspected by hexdump -C > > ./mapserv -nh > "QUERY_STRING=map=a.map&LAYERS=umlauttest&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application/vnd.ogc.se_xml&FORMAT=image/jpeg&SRS=EPSG:31254&BBOX=-49500,246750,-49000,247250&X=250&Y=250&INFO_FORMAT=text/html&QUERY_LAYERS=umlauttest&WIDTH=650&HEIGHT=650&FEATURE_COUNT=30" > | hexdump -c > > This allows to inspect the result without some unwanted/unnoticed code > translations when using an editor or the browser, > > This are the HTML-Templates: > Header: > > > http://www.w3.org/TR/html4/transitional.dtd"> > > > > > > > charset=MacThai"> > > > GetFeatureInfo Response > > > > > > > > > > > > > > > TEMPLATE: > > > > > > > > > > FOOTER: > > >
Widmungsart Zeichensatztest ae ? oe ? ue ? AE ? OE ? UE ? > scharfes s ? Ende
KuerzelWidmungsartFlaecheText
[item name=WI_EM_KN format=$value escape=none][item name=WI_EM_TXT format=$value escape=none][item name=Flaeche format=$value escape=none][item name=FS_TXT format=$value escape=none]
>
> > > > > > > > > > > > > > > > > *Mag Andreas Siegel* > Landesvermessungsamt Feldkirch > Johannitergasse 6, A-6800 Feldkirch > Tel: +43(0) 5522 / 75482 - 60227 > Fax: +43(0) 5522 / 75482 - 6 > E-Mail: andreas.siegel at vorarlberg.at > http://www.vorarlberg.at/lva > > Rechtsverbindlichen Schriftverkehr > (zB Antr?ge, Rechtsmittel) richten Sie an: > E-Mail: landesvermessungsamt at vorarlberg.at > Fax: +43(0)5522/75482-6 > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Wed Feb 9 02:09:00 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 9 Feb 2011 12:09:00 +0200 Subject: [mapserver-users] GetfeatureInfo-Request in an UTF-8 environmentwith shapfile in cp-1252 In-Reply-To: <5FBE485F93722E4589047FAB5195B63C051B09BB@AVLRBRCL08A.net.vlr.gv.at> References: <5FBE485F93722E4589047FAB5195B63C051B09BB@AVLRBRCL08A.net.vlr.gv.at> Message-ID: Hi, For those willing to change shapefile character encoding physically, OpenJUMP (www.openjump.org) is nowadays a handy tool for changing the codepages. Just select the codepage to use when opening the shapefile, and similarly codepage to use when saving shapefile through "Save Dataset As...". Version 1.4.x of OpenJUMP is needed and codepage query must be activated first from the "Customize - Options" menu item. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Siegel Andreas L?hetetty: 9. helmikuuta 2011 11:20 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: RE: [mapserver-users] GetfeatureInfo-Request in an UTF-8 environmentwith shapfile in cp-1252 Hi Tom. Thanks for your reply. But no, it is not an issue with ArcGIS. The link you sent me may prove useful anyway since we rely heavy on shapefiles and ArcGIS ist used by several of our colleges and contributors. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tommasodb at googlemail.com Wed Feb 9 03:54:59 2011 From: tommasodb at googlemail.com (tommaso) Date: Wed, 09 Feb 2011 12:54:59 +0100 Subject: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR In-Reply-To: References: <1296142978.2205.16.camel@tommaso-laptop> <4D4193AE.4010004@ulb.ac.be>,<1296150918.2246.6.camel@tommaso-laptop> ,<1296495379.29349.12.camel@tommaso-laptop> Message-ID: <1297252499.27019.2.camel@tommaso-laptop> thanks Steven this was the right solution. greetings, Tommaso On Tue, 2011-02-01 at 09:07 -0600, Lime, Steve D (DNR) wrote: > Actually I just ran a test against 5.6 and found I could change a labels background color via URL. Syntax is: > > map.layer[some_layer].class[0]=LABEL+BACKGROUNDCOLOR+255+0+0+END > > Steve > ________________________________________ > From: tommaso [tommasodb at googlemail.com] > Sent: Monday, January 31, 2011 11:36 AM > To: Lime, Steve D (DNR) > Cc: mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR > > Hallo Steve, > > I can try to hack the source (or rather I'll ask a workmate). More details were welcome, thanks. > > Regards, > Tommaso > > > On Mon, 2011-01-31 at 10:08 -0600, Lime, Steve D (DNR) wrote: > > > Been on a short holiday, where did this get left? If you can hack the source it's a very simple change (I think) to maplexer.l to allow the updates you need. I can provide more direction if necessary. - Steve > > ________________________________________ > From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of tommaso [tommasodb at googlemail.com] > Sent: Thursday, January 27, 2011 11:55 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR > > On Thu, 2011-01-27 at 16:47 +0100, Julien Cigar wrote: > > > use SLD ? > > > Thanks, this were a solution but I should radically change my project. I will try it if there is not other ways. > Other ideas? > > Tommaso > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Wed Feb 9 04:34:36 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 09 Feb 2011 07:34:36 -0500 Subject: [mapserver-users] GetfeatureInfo-Request in an UTF-8 environment with shapfile in cp-1252 In-Reply-To: <5FBE485F93722E4589047FAB5195B63C051B09B8@AVLRBRCL08A.net.vlr.gv.at> References: <5FBE485F93722E4589047FAB5195B63C051B09B8@AVLRBRCL08A.net.vlr.gv.at> Message-ID: <4D5289DC.5050105@mapgears.com> On 11-02-08 09:37 AM, Siegel Andreas wrote: > Hi. > Our mapserver-eniromnent entirely works in utf-8 (mapfiles, webserver, > postgres, ..) with one exception, that is, all of our shapefiles. > The shapfiles are created/updated in an Windows-environment by several, > external contributors. > Hence they are encoded in Wiindows-ANSI (cp: 1252). > If i do an GetFeatureInfo-Request on the attibutes of the shapefiles all > special characters ("umlauts") are garbled. > This is no wonder since the content of the shapefile-attributes must be > recoded to utf-8 prior to insertion in the template.html. > How can this be acomplished? I could not find anything useful in the > documentation or with google. The short answer is that there is no mechanism in MapServer at the moment to convert encoding of attributes displayed in a query template, so your only options are to either change the encoding of the data files to UTF-8, or change the template.html and its header to match the encoding of the data. (The only place where MapServer supports encoding conversion at the moment is in map labels, see the ENCODING keyword in the LABEL docs.) Of course this could be a nice enhancement to MapServer if there was a group interested in funding it. Daniel -- Daniel Morissette http://www.mapgears.com/ From yassefa at dmsolutions.ca Wed Feb 9 05:25:26 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 09 Feb 2011 08:25:26 -0500 Subject: [mapserver-users] GetfeatureInfo-Request in an UTF-8 environment with shapfile in cp-1252 In-Reply-To: <4D5289DC.5050105@mapgears.com> References: <5FBE485F93722E4589047FAB5195B63C051B09B8@AVLRBRCL08A.net.vlr.gv.at> <4D5289DC.5050105@mapgears.com> Message-ID: <4D5295C6.8050806@dmsolutions.ca> On 09/02/2011 7:34 AM, Daniel Morissette wrote: > On 11-02-08 09:37 AM, Siegel Andreas wrote: >> Hi. >> Our mapserver-eniromnent entirely works in utf-8 (mapfiles, webserver, >> postgres, ..) with one exception, that is, all of our shapefiles. >> The shapfiles are created/updated in an Windows-environment by several, >> external contributors. >> Hence they are encoded in Wiindows-ANSI (cp: 1252). >> If i do an GetFeatureInfo-Request on the attibutes of the shapefiles all >> special characters ("umlauts") are garbled. >> This is no wonder since the content of the shapefile-attributes must be >> recoded to utf-8 prior to insertion in the template.html. >> How can this be acomplished? I could not find anything useful in the >> documentation or with google. > > The short answer is that there is no mechanism in MapServer at the > moment to convert encoding of attributes displayed in a query > template, so your only options are to either change the encoding of > the data files to UTF-8, or change the template.html and its header to > match the encoding of the data. (The only place where MapServer > supports encoding conversion at the moment is in map labels, see the > ENCODING keyword in the LABEL docs.) > > Of course this could be a nice enhancement to MapServer if there was a > group interested in funding it. > > Daniel Sorry to jump late on this. This issue I believe was identified and described in the trac bug [1]. An incomplete solutions was proposed in there but It definitely need more thinking. [1] http://trac.osgeo.org/mapserver/ticket/3297 Assefa -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From phil7g at gmx.net Wed Feb 9 05:56:26 2011 From: phil7g at gmx.net (phil7g) Date: Wed, 9 Feb 2011 05:56:26 -0800 (PST) Subject: [mapserver-users] Projection library error - EPSG Issue Message-ID: <1297259786770-6007730.post@n2.nabble.com> Hi! Im experiencing a problem when trying to set up a GIS with mapserver and mepbender. First of all, this link leads to a working version of my data in the "map-mode" of mapserver http://gis-test.geomatik.rub.de/cgi-bin/mapserv?map=/srv/www/htdocs/GIS2/Studieren_in_Bochum.map&mode=map . As soon as I want to move the data to mapbender by using a wms/wfs in order to add a gui etc., I'm getting an error message (msProcessProjection(): Projection library error. no system list, errno: 2). I've no idea what's wrong here and would be very thankful for any suggestion. Could it be a problem with the EPSG-file or the EPSG-path in the mapfile? In mapbender, the only given choice when trying to change the EPSG-Code for my WMS is "4326"... but it should be 31466 (as you can see in the mapfile below)... If you need more data to analyse the problem, just tell me and I'll provide it. Eagerly awaiting your answers, best regards, Phil So long! Here is the mapfile (as you can see, I've already tried to fix the problem. "init=epsg:31466" produced the error - msProcessProjection(): Projection library error. no system list, errno: 2, as well): MAP NAME "Studieren_in_Bochum" # Map image size STATUS on SIZE 800 600 UNITS meters EXTENT 2579969.569440 5698881.998161 2594471.381955 5705864.352335 FONTSET "./Fonts/Fonts.txt" SYMBOLSET "./Symbols/Symbols.txt" SHAPEPATH "./Shapes/" CONFIG "PROJ_LIB" "./EPSG/" PROJECTION #"init=epsg:31466" "proj=tmerc" "ellps=bessel" "datum=potsdam" "no_defs" END # Background color for the map canvas -- change as desired IMAGECOLOR 255 255 140 IMAGEQUALITY 95 IMAGETYPE png # Legend LEGEND IMAGECOLOR 255 255 255 OUTLINECOLOR 0 0 0 KEYSIZE 30 20 STATUS embed POSITIon UR TRANSPARENT off END # SCALEBAR SCALEBAR STATUS embed STYLE 0 UNITS kilometers INTERVALS 3 TRANSPARENT true OUTLINECOLOR 0 0 0 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 "./srv/www/htdocs/maptemp/" # Set IMAGEURL to the url that points to IMAGEPATH # as defined in your web server configuration IMAGEURL "./maptemp/" #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 template.html METADATA #WMS "wms_TITLE" "WMS Studieren in Bochum" "wms_ABSTRACT" "WMS Studieren in Bochum" "wms_FEATURE_INFO_MIME_TYPE" "text/html" "wms_onLINESOURCE" "http://gis-test.geomatik.rub.de/cgi-bin/mapserv?map=/srv/www/htdocs/GIS2/Studieren_in_Bochum.map" "wms_SRS" "EPSG:31466" #WFS "wfs_TITLE" "WFS Studieren in Bochum" "wfs_ABSTRACT" "WFS Studieren in Bochum" "wfs_onLINESOURCE" "http://gis-test.geomatik.rub.de/cgi-bin/mapserv?map=/srv/www/htdocs/GIS2/Studieren_in_Bochum.map" "wfs_SRS" "EPSG:31466" END END LAYER NAME "OePNVLinien" TYPE LINE DUMP true EXTENT 2579969.569440 5698881.998161 2594471.381955 5705864.352335 DATA "OePNVLinien.shp" METADATA "wms_title" "OePNVLinien" "wfs_title" "OePNVLinien" "wfs_featureid" "Linie" "gml_include_items" "all" END #MINSCALEDENOM 1 #MAXSCALEDENOM 100000 STATUS default TRANSPARENCY 100 #PROJECTION #"proj=longlat" #"ellps=WGS84" #"datum=WGS84" #"no_defs" #END CLASS NAME "OePNV-Linien" STYLE WIDTH 2 COLOR 255 0 0 END END END LAYER NAME "Studentenwohnheime" TYPE POINT DUMP true EXTENT 2579969.569440 5698881.998161 2594471.381955 5705864.352335 DATA "Studentenwohnheime.shp" METADATA "wms_title" "Studentenwohnheime" "wfs_title" "Studentenwohnheime" "wfs_featureid" "Point_ID" "gml_include_items" "all" END #MINSCALEDENOM 1 #MAXSCALEDENOM 100000 STATUS default TRANSPARENCY 100 #PROJECTION #"proj=longlat" #"ellps=WGS84" #"datum=WGS84" #"no_defs" #END CLASS NAME "Studentenwohnheime" STYLE SYMBOL "Studentenwohnheime" MAXSIZE 10 END END END LAYER NAME "Sport_und_Freizeit" TYPE POINT DUMP true EXTENT 2579969.569440 5698881.998161 2594471.381955 5705864.352335 DATA "Sport_und_Freizeit.shp" METADATA "wms_title" "Sport_und_Freizeit" "wfs_title" "Sport_und_Freizeit" "wfs_featureid" "Linie" "gml_include_items" "all" END #MINSCALEDENOM 1 #MAXSCALEDENOM 100000 STATUS default TRANSPARENCY 100 #PROJECTION #"proj=longlat" #"ellps=WGS84" #"datum=WGS84" #"no_defs" #END CLASS NAME "Sport und Freizeit" STYLE SYMBOL "Sport_und_Freizeit" MAXSIZE 10 END END END LAYER NAME "OePNVHaltestellen" TYPE POINT DUMP true EXTENT 2579969.569440 5698881.998161 2594471.381955 5705864.352335 DATA "OePNVHaltestellen.shp" METADATA "wms_title" "OePNVHaltestellen" "wfs_title" "OePNVHaltestellen" "wfs_featureid" "Name" "gml_include_items" "all" END #MINSCALEDENOM 1 #MAXSCALEDENOM 100000 STATUS default TRANSPARENCY 100 #PROJECTION #"proj=longlat" #"ellps=WGS84" #"datum=WGS84" #"no_defs" #END CLASS NAME "OePNV-Haltestellen" STYLE SYMBOL "OePNVHaltestellen" MAXSIZE 10 END END END LAYER NAME "Medizinische_Einrichtungen" TYPE POINT DUMP true EXTENT 2579969.569440 5698881.998161 2594471.381955 5705864.352335 DATA "Medizinische_Einrichtungen.shp" METADATA "wms_title" "Medizinische_Einrichtungen" "wfs_title" "Medizinische_Einrichtungen" "wfs_featureid" "Point_ID" "gml_include_items" "all" END #MINSCALEDENOM 1 #MAXSCALEDENOM 100000 STATUS default TRANSPARENCY 100 #PROJECTION #"proj=longlat" #"ellps=WGS84" #"datum=WGS84" #"no_defs" #END CLASS NAME "Medizinische Einrichtungen" STYLE SYMBOL "Medizinische_Einrichtungen" MAXSIZE 10 END END END LAYER NAME "Kirchliche_Einrichtungen" TYPE POINT DUMP true EXTENT 2579969.569440 5698881.998161 2594471.381955 5705864.352335 DATA "Kirchliche_Einrichtungen.shp" METADATA "wms_title" "Kirchliche_Einrichtungen" "wfs_title" "Kirchliche_Einrichtungen" "wfs_featureid" "Point_ID" "gml_include_items" "all" END #MINSCALEDENOM 1 #MAXSCALEDENOM 100000 STATUS default TRANSPARENCY 100 #PROJECTION #"proj=longlat" #"ellps=WGS84" #"datum=WGS84" #"no_defs" #END CLASS NAME "Kirchliche Einrichtungen" STYLE SYMBOL "Kirchliche_Einrichtungen" MAXSIZE 10 END END END LAYER NAME "Gemischtes_Studentenleben" TYPE POINT DUMP true EXTENT 2579969.569440 5698881.998161 2594471.381955 5705864.352335 DATA "Gemischtes_Studentenleben.shp" METADATA "wms_title" "Gemischtes_Studentenleben" "wfs_title" "Gemischtes_Studentenleben" "wfs_featureid" "Point_ID" "gml_include_items" "all" END #MINSCALEDENOM 1 #MAXSCALEDENOM 100000 STATUS default TRANSPARENCY 100 #PROJECTION #"proj=longlat" #"ellps=WGS84" #"datum=WGS84" #"no_defs" #END CLASS NAME "Gemischtes Studentenleben" STYLE SYMBOL "Gemischtes_Studentenleben" MAXSIZE 10 END END END LAYER NAME "Gastronomie" TYPE POINT DUMP true EXTENT 2579969.569440 5698881.998161 2594471.381955 5705864.352335 DATA "Gastronomie.shp" METADATA "wms_title" "Gastronomie" "wfs_title" "Gastronomie" "wfs_featureid" "Point_ID" "gml_include_items" "all" END #MINSCALEDENOM 1 #MAXSCALEDENOM 100000 STATUS default TRANSPARENCY 100 #PROJECTION #"proj=longlat" #"ellps=WGS84" #"datum=WGS84" #"no_defs" #END CLASS NAME "Gastronomie" STYLE SYMBOL "Gastronomie" MAXSIZE 10 END END END END -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Projection-library-error-EPSG-Issue-tp6007730p6007730.html Sent from the Mapserver - User mailing list archive at Nabble.com. From warmerdam at pobox.com Wed Feb 9 08:00:21 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 09 Feb 2011 11:00:21 -0500 Subject: [mapserver-users] Projection library error - EPSG Issue In-Reply-To: <1297259786770-6007730.post@n2.nabble.com> References: <1297259786770-6007730.post@n2.nabble.com> Message-ID: <4D52BA15.8060407@pobox.com> On 11-02-09 08:56 AM, phil7g wrote: > > Hi! > > Im experiencing a problem when trying to set up a GIS with mapserver and > mepbender. First of all, this link leads to a working version of my data in > the "map-mode" of mapserver > http://gis-test.geomatik.rub.de/cgi-bin/mapserv?map=/srv/www/htdocs/GIS2/Studieren_in_Bochum.map&mode=map > . As soon as I want to move the data to mapbender by using a wms/wfs in > order to add a gui etc., I'm getting an error message > (msProcessProjection(): Projection library error. no system list, errno: 2). > I've no idea what's wrong here and would be very thankful for any > suggestion. Could it be a problem with the EPSG-file or the EPSG-path in the > mapfile? In mapbender, the only given choice when trying to change the > EPSG-Code for my WMS is "4326"... but it should be 31466 (as you can see in > the mapfile below)... If you need more data to analyse the problem, just > tell me and I'll provide it. > > Eagerly awaiting your answers, > > best regards, > > Phil > > So long! > > Here is the mapfile (as you can see, I've already tried to fix the problem. > "init=epsg:31466" produced the error - msProcessProjection(): Projection > library error. no system list, errno: 2, as well): Phil, First, could you confirm that /usr/share/proj/epsg (or possibly /usr/local/share/proj/epsg) has a definition for 31466? Second, if you enable PROJ.4 level debugging you can get output on where the epsg init file is being searched for. I would normally try this by setting the PROJ_DEBUG environment variable to any value (ie. "on") and then running the request at the commandline. PROJ.4 will write some debug output to stderr. If you can't easily do things at the commandline set the environment variable in your mapserv wrapper script or in the apache config file, and then inspect the apache error log. eg. warmerda at gdal65[214]% setenv PROJ_DEBUG ON warmerda at gdal65[215]% proj +init=epsg:31466 pj_open_lib(epsg): call fopen(/home/warmerda/bld/share/proj/epsg) - succeeded If the epsg init file is not properly being found, consider setting the global PROJ_LIB environment variable to point to the directory where it is, or move it to the directory PROJ.4 is looking in. If you lack the definition add this to your epsg init file: # DHDN / 3-degree Gauss-Kruger zone 2 <31466> +proj=tmerc +lat_0=0 +lon_0=6 +k=1 +x_0=2500000 +y_0=0 +ellps=bessel +towgs84=582,105,414,1.04,0.35,-3.08,8.3 +units=m +no_defs <> (note from <31466> to <> is all one line) Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From brfr at metrico.lu Thu Feb 10 06:00:16 2011 From: brfr at metrico.lu (Frank Broniewski) Date: Thu, 10 Feb 2011 15:00:16 +0100 Subject: [mapserver-users] WMS SLD Troubles In-Reply-To: <4D524DDE.30801@metrico.lu> References: <4D4FC235.1050803@metrico.lu> <4D5159D5.7010508@dmsolutions.ca> <4D524DDE.30801@metrico.lu> Message-ID: <4D53EF70.5080409@metrico.lu> Ok, we've narrowed it down a bit. When we use the cgi-mapserver the SLD styling works, so the issue seems to be with (python) mapscript ... I will investigate further Frank Am 09.02.2011 09:18, schrieb Frank Broniewski: > Hello, > > thank you for your kind help :-) I've put the requested informations below. > > > Frank > > > INFO: > > we're using > /usr/lib/cgi-bin/mapserv -v > MapServer version 5.6.6 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG 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 > SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE > on Ubuntu 8.04 with the ubuntu-gis ppa. > > > > > Original layer definition: > > LAYER > NAME "post" > STATUS Off > CONNECTIONTYPE Postgis > CONNECTION "host=localhost dbname=osm user= password= port=5432" > DATA "nway FROM > (SELECT way as nway, osm_id, amenity, name > FROM planet_osm_point > WHERE amenity='post_box' OR amenity='post_office' > ) > as foo using unique osm_id using SRID=900913" > TYPE Point > PROCESSING "CLOSE_CONNECTION=DEFER" > CLASSITEM "amenity" > DUMP true > > # --------------------------------------------------------------- > # Projection configuration > # --------------------------------------------------------------- > INCLUDE "/usr/local/mapconf/share/projections/google.map" > > METADATA > # lots of metadata .... > END > END > > > > > > > the SLD: > > post > > Post > > > > > amenity > post_box > > > > > > xlink:type="simple" > > xlink:href="http://192.168.0.111:8502/sld/img/briefkasten.png" /> > image/png > > 40 > > > > > > > amenity > post_office > > > > > > xlink:type="simple" > > xlink:href="http://192.168.0.111:8502/sld/img/posthorn.png" /> > image/png > > 40 > > > > > > > > > > > > > > the generated map file: > LAYER > CLASSITEM "amenity" > CONNECTION "host=localhost dbname=osm user= password= port=5432" > CONNECTIONTYPE POSTGIS > DATA "nway FROM > (SELECT way as nway, osm_id, amenity, name > FROM planet_osm_point > WHERE amenity='post_box' > OR amenity='post_office' > ) > as foo using unique osm_id using SRID=900913" > DUMP TRUE > METADATA > # metadata > END > NAME "post" > PROCESSING "CLOSE_CONNECTION=DEFER" > PROJECTION > "proj=merc" > "a=6378137" > "b=6378137" > "lat_ts=0" > "lon_0=0" > "x_0=0" > "y_0=0" > "k=1" > "nadgrids=@null" > "units=m" > "no_defs" > END > STATUS ON > TYPE POINT > UNITS METERS > CLASS > NAME "Unknown" > EXPRESSION ("[amenity]" = "post_box") > STYLE > ANGLE 360 > COLOR 0 0 0 > SIZE 40 > SYMBOL "http://192.168.0.111:8502/sld/img/briefkasten.png" > WIDTH 1 > END > END > END > > > > > Am 08.02.2011 15:57, schrieb Yewondwossen Assefa: >> What version of MapServer? >> >> Also, what is the part in the map file that is causing the problem: >> * if you remove the EXPRESSION ("[amenity]" = "post_box") from the >> generated map, will that work >> * Is the layer's FILTER element set (on the generated map)? If so what >> is the value? >> >> A full layer definition in the generated map would be useful. A full sld >> might also help. >> >> regards, >> >> >> On 07/02/2011 4:58 AM, Frank Broniewski wrote: >>> Hello, >>> >>> We're using a OpenStreetMap Postgis database as a source for our >>> geo-servers. We want to provide WMS and WFS services on the data. In >>> order to do the styling only once, we are using SLDs, which works >>> mostly fine. >>> >>> One of our layers does not render as a WMS, it throws a >>> "msEvalRegex(): Regular expression error. String failed expression >>> test." Error during execution. >>> >>> We identified the layer, and it's the one rendering post boxes. The >>> corresponding SLD definition is using a filter: >>> >>> >>> >>> >>> amenity >>> post_office >>> >>> >>> >>> >>> Using debug-level 5, the mapfile after SLD application looks like >>> >>> # ... >>> # more definitions >>> # ... >>> CLASSITEM "amenity" >>> DATA "nway FROM >>> (SELECT way as nway, osm_id, amenity, name >>> FROM planet_osm_point >>> WHERE amenity='post_box' >>> OR amenity='post_office' >>> ) >>> as foo using unique osm_id using SRID=900913" >>> # ... >>> # more definitions >>> # ... >>> CLASS >>> NAME "Unknown" >>> EXPRESSION ("[amenity]" = "post_box") >>> STYLE >>> ANGLE 360 >>> COLOR 0 0 0 >>> SIZE 40 >>> SYMBOL "http://192.168.0.111:8502/sld/img/briefkasten.png" >>> WIDTH 1 >>> END >>> END >>> >>> >>> We simply can't figure out, what might be the problem here. The whole >>> issue seem to be related to the filter element, removing it makes the >>> layer render. Using the generated map layer, rendering fails with the >>> same error. >>> So I would be happy if someone with more experience with SLDs can give >>> me a hint about whats going wrong here. >>> >>> >>> 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 brfr at metrico.lu Fri Feb 11 01:30:26 2011 From: brfr at metrico.lu (Frank Broniewski) Date: Fri, 11 Feb 2011 10:30:26 +0100 Subject: [mapserver-users] WMS SLD Troubles In-Reply-To: <4D53EF70.5080409@metrico.lu> References: <4D4FC235.1050803@metrico.lu> <4D5159D5.7010508@dmsolutions.ca> <4D524DDE.30801@metrico.lu> <4D53EF70.5080409@metrico.lu> Message-ID: <4D5501B2.9040704@metrico.lu> Ok, I've found a problem with the parsing of OWSRequest.setParameter() My code: ... elif request.method == 'GET': logging.debug("%s: Request method is GET" % datetime.datetime.now()) for key, value in request.args.items(): if key.lower() == 'sld': logging.debug("%s: Escaping %s" % (datetime.datetime.now(), key)) logging.debug("%s: Value is %s" % (datetime.datetime.now(), value)) value = urllib.quote_plus(value) g.ows_request.setParameter(key, value) if key.lower() == 'sld': value = g.ows_request.getValueByName(key) logging.debug("%s: Loaded Param %s" % (datetime.datetime.now(), value)) mapscript.msIO_installStdoutToBuffer() success = g.ows_map.OWSDispatch(g.ows_request) ... What I'm basically doing here is setting the request parameters with setParameter on the ows_reqeuest object. When there is _no_ sld parameter in the request, escaping is not necessary. Once there is a sld request parameter, mapscript crashes when doing setParameter('SLD', 'http://192.168.0.111:8502/sld/style.sld') [Fri Feb 11 11:10:32 2011] [error] [client 192.168.0.2] success = g.ows_map.OWSDispatch(g.ows_request) [Fri Feb 11 11:10:32 2011] [error] [client 192.168.0.2] File "/usr/lib/python2.5/site-packages/mapscript.py", line 1515, in OWSDispatch [Fri Feb 11 11:10:32 2011] [error] [client 192.168.0.2] def OWSDispatch(*args): return _mapscript.mapObj_OWSDispatch(*args) [Fri Feb 11 11:10:32 2011] [error] [client 192.168.0.2] MapServerError: msEvalRegex(): Regular expression error. String failed expression test. [Fri Feb 11 11:10:32 2011] [error] [client 192.168.0.2] msEvalRegex(): Regular expression error. String failed expression test. Using urllib.quote_plus I escaped the SLD URL back to a web representation and set it with setParameter. SLD=http%3A%2F%2F192.168.0.111%3A8502%2Fsld%2Fstyle.sld request.args: Key: SLD Value: http://192.168.0.111:8502/sld/style.sld Quoted Value: http%3A%2F%2F192.168.0.111%3A8502%2Fsld%2Fstyle.sld Loaded Param http%3A%2F%2F192.168.0.111%3A8502%2Fsld%2Fstyle.sld Unfortunately quoting does not help, but the error this time is less clear than the one before: [Fri Feb 11 11:11:51 2011] [error] [client 192.168.0.2] Premature end of script headers: gishosting.wsgi the mapserver error log (debug 5) shows also no entry, so I am completely clueless what's going wrong here. Does someone have a clue whats going on there? Datasource is a Postgis database (OpenStreetMap data) which works without the SLD parameter. System is a Ubuntu Hardy 8.04 with the deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu hardy main deb-src http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu hardy main sources /usr/lib/cgi-bin/mapserv -v MapServer version 5.6.6 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG 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 SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE dpkg -l ||/ Name Version Description +++-==============-==============-============================================ ii apache2 2.2.8-1ubuntu0 Next generation, scalable, extendable web se ii python-mapscri 5.6.6-2~hardy1 Python library for MapServer ii mapserver-bin 5.6.6-2~hardy1 MapServer utilities ii cgi-mapserver 5.6.6-2~hardy1 CGI executable for MapServer Python 2.5.2 (r252:60911, Jan 20 2010, 23:14:04) And self compiled libapache2-mod-wsgi Frank Am 10.02.2011 15:00, schrieb Frank Broniewski: > Ok, we've narrowed it down a bit. When we use the cgi-mapserver the SLD > styling works, so the issue seems to be with (python) mapscript ... > I will investigate further > > Frank > > > Am 09.02.2011 09:18, schrieb Frank Broniewski: >> Hello, >> >> thank you for your kind help :-) I've put the requested informations >> below. >> >> >> Frank >> >> >> INFO: >> >> we're using >> /usr/lib/cgi-bin/mapserv -v >> MapServer version 5.6.6 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG 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 >> SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL >> INPUT=SHAPEFILE >> on Ubuntu 8.04 with the ubuntu-gis ppa. >> >> >> >> >> Original layer definition: >> >> LAYER >> NAME "post" >> STATUS Off >> CONNECTIONTYPE Postgis >> CONNECTION "host=localhost dbname=osm user= password= port=5432" >> DATA "nway FROM >> (SELECT way as nway, osm_id, amenity, name >> FROM planet_osm_point >> WHERE amenity='post_box' OR amenity='post_office' >> ) >> as foo using unique osm_id using SRID=900913" >> TYPE Point >> PROCESSING "CLOSE_CONNECTION=DEFER" >> CLASSITEM "amenity" >> DUMP true >> >> # --------------------------------------------------------------- >> # Projection configuration >> # --------------------------------------------------------------- >> INCLUDE "/usr/local/mapconf/share/projections/google.map" >> >> METADATA >> # lots of metadata .... >> END >> END >> >> >> >> >> >> >> the SLD: >> >> post >> >> Post >> >> >> >> >> amenity >> post_box >> >> >> >> >> >> > xlink:type="simple" >> >> xlink:href="http://192.168.0.111:8502/sld/img/briefkasten.png" /> >> image/png >> >> 40 >> >> >> >> >> >> >> amenity >> post_office >> >> >> >> >> >> > xlink:type="simple" >> >> xlink:href="http://192.168.0.111:8502/sld/img/posthorn.png" /> >> image/png >> >> 40 >> >> >> >> >> >> >> >> >> >> >> >> >> >> the generated map file: >> LAYER >> CLASSITEM "amenity" >> CONNECTION "host=localhost dbname=osm user= password= port=5432" >> CONNECTIONTYPE POSTGIS >> DATA "nway FROM >> (SELECT way as nway, osm_id, amenity, name >> FROM planet_osm_point >> WHERE amenity='post_box' >> OR amenity='post_office' >> ) >> as foo using unique osm_id using SRID=900913" >> DUMP TRUE >> METADATA >> # metadata >> END >> NAME "post" >> PROCESSING "CLOSE_CONNECTION=DEFER" >> PROJECTION >> "proj=merc" >> "a=6378137" >> "b=6378137" >> "lat_ts=0" >> "lon_0=0" >> "x_0=0" >> "y_0=0" >> "k=1" >> "nadgrids=@null" >> "units=m" >> "no_defs" >> END >> STATUS ON >> TYPE POINT >> UNITS METERS >> CLASS >> NAME "Unknown" >> EXPRESSION ("[amenity]" = "post_box") >> STYLE >> ANGLE 360 >> COLOR 0 0 0 >> SIZE 40 >> SYMBOL "http://192.168.0.111:8502/sld/img/briefkasten.png" >> WIDTH 1 >> END >> END >> END >> >> >> >> >> Am 08.02.2011 15:57, schrieb Yewondwossen Assefa: >>> What version of MapServer? >>> >>> Also, what is the part in the map file that is causing the problem: >>> * if you remove the EXPRESSION ("[amenity]" = "post_box") from the >>> generated map, will that work >>> * Is the layer's FILTER element set (on the generated map)? If so what >>> is the value? >>> >>> A full layer definition in the generated map would be useful. A full sld >>> might also help. >>> >>> regards, >>> >>> >>> On 07/02/2011 4:58 AM, Frank Broniewski wrote: >>>> Hello, >>>> >>>> We're using a OpenStreetMap Postgis database as a source for our >>>> geo-servers. We want to provide WMS and WFS services on the data. In >>>> order to do the styling only once, we are using SLDs, which works >>>> mostly fine. >>>> >>>> One of our layers does not render as a WMS, it throws a >>>> "msEvalRegex(): Regular expression error. String failed expression >>>> test." Error during execution. >>>> >>>> We identified the layer, and it's the one rendering post boxes. The >>>> corresponding SLD definition is using a filter: >>>> >>>> >>>> >>>> >>>> amenity >>>> post_office >>>> >>>> >>>> >>>> >>>> Using debug-level 5, the mapfile after SLD application looks like >>>> >>>> # ... >>>> # more definitions >>>> # ... >>>> CLASSITEM "amenity" >>>> DATA "nway FROM >>>> (SELECT way as nway, osm_id, amenity, name >>>> FROM planet_osm_point >>>> WHERE amenity='post_box' >>>> OR amenity='post_office' >>>> ) >>>> as foo using unique osm_id using SRID=900913" >>>> # ... >>>> # more definitions >>>> # ... >>>> CLASS >>>> NAME "Unknown" >>>> EXPRESSION ("[amenity]" = "post_box") >>>> STYLE >>>> ANGLE 360 >>>> COLOR 0 0 0 >>>> SIZE 40 >>>> SYMBOL "http://192.168.0.111:8502/sld/img/briefkasten.png" >>>> WIDTH 1 >>>> END >>>> END >>>> >>>> >>>> We simply can't figure out, what might be the problem here. The whole >>>> issue seem to be related to the filter element, removing it makes the >>>> layer render. Using the generated map layer, rendering fails with the >>>> same error. >>>> So I would be happy if someone with more experience with SLDs can give >>>> me a hint about whats going wrong here. >>>> >>>> >>>> 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 andreas.siegel at vorarlberg.at Fri Feb 11 06:26:42 2011 From: andreas.siegel at vorarlberg.at (sulu) Date: Fri, 11 Feb 2011 06:26:42 -0800 (PST) Subject: [mapserver-users] RE: GetfeatureInfo-Request in an UTF-8 environment with shapfile in cp-1252 In-Reply-To: <3681.1297199375@vdputte.nl> References: <5FBE485F93722E4589047FAB5195B63C051B09B8@AVLRBRCL08A.net.vlr.gv.at> <3681.1297199375@vdputte.nl> Message-ID: <1297434402858-6015899.post@n2.nabble.com> Hi Tom. Just got out of my sick bed. Sorry for my late reply. Interesting information. Thanks. We intend to use open-source-source-software as much as possible. The issue refers to UMN-Mapserver. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/GetfeatureInfo-Request-in-an-UTF-8-environment-with-shapfile-in-cp-1252-tp6004140p6015899.html Sent from the Mapserver - User mailing list archive at Nabble.com. From andreas.siegel at vorarlberg.at Fri Feb 11 06:31:44 2011 From: andreas.siegel at vorarlberg.at (sulu) Date: Fri, 11 Feb 2011 06:31:44 -0800 (PST) Subject: [mapserver-users] Re: GetfeatureInfo-Request in an UTF-8 environment with shapfile in cp-1252 In-Reply-To: <4D5289DC.5050105@mapgears.com> References: <5FBE485F93722E4589047FAB5195B63C051B09B8@AVLRBRCL08A.net.vlr.gv.at> <4D5289DC.5050105@mapgears.com> Message-ID: <1297434704522-6015915.post@n2.nabble.com> Hi Daniel. Daniel Morissette wrote: > > The short answer is that there is no mechanism in MapServer at the > moment to convert encoding of attributes displayed in a query template, > so your only options are to either change the encoding of the data files > to UTF-8, or change the template.html and its header to match the > encoding of the data. (The only place where MapServer supports encoding > conversion at the moment is in map labels, see the ENCODING keyword in > the LABEL docs.) > > Of course this could be a nice enhancement to MapServer if there was a > group interested in funding it. > Yeah. I thought so myself. It would be a nice enhancement. One just have to think of some heterogeneous data-source, with different encodings, which feed a single map. Can you give some crude guess what amount of funding this feature would require? Cheers Andy -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/GetfeatureInfo-Request-in-an-UTF-8-environment-with-shapfile-in-cp-1252-tp6004140p6015915.html Sent from the Mapserver - User mailing list archive at Nabble.com. From andreas.siegel at vorarlberg.at Fri Feb 11 06:37:36 2011 From: andreas.siegel at vorarlberg.at (sulu) Date: Fri, 11 Feb 2011 06:37:36 -0800 (PST) Subject: [mapserver-users] Re: GetfeatureInfo-Request in an UTF-8 environment with shapfile in cp-1252 In-Reply-To: References: <5FBE485F93722E4589047FAB5195B63C051B09B8@AVLRBRCL08A.net.vlr.gv.at> <5FBE485F93722E4589047FAB5195B63C051B09BB@AVLRBRCL08A.net.vlr.gv.at> Message-ID: <1297435056810-6015930.post@n2.nabble.com> Hi Milo. Thanks fo the hint. Unfortunately it has noc effect. Whatever i put in the Template file, e. g. , mozzilla tells me it uses utf-8 (right-click on the displayed html-page). I have no clue. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/GetfeatureInfo-Request-in-an-UTF-8-environment-with-shapfile-in-cp-1252-tp6004140p6015930.html Sent from the Mapserver - User mailing list archive at Nabble.com. From andreas.siegel at vorarlberg.at Fri Feb 11 06:42:41 2011 From: andreas.siegel at vorarlberg.at (sulu) Date: Fri, 11 Feb 2011 06:42:41 -0800 (PST) Subject: [mapserver-users] Re: GetfeatureInfo-Request in an UTF-8 environment with shapfile in cp-1252 In-Reply-To: <4D5295C6.8050806@dmsolutions.ca> References: <5FBE485F93722E4589047FAB5195B63C051B09B8@AVLRBRCL08A.net.vlr.gv.at> <4D5289DC.5050105@mapgears.com> <4D5295C6.8050806@dmsolutions.ca> Message-ID: <1297435361825-6015965.post@n2.nabble.com> Hi Assefa. Yewondwossen Assefa wrote: > > [1] http://trac.osgeo.org/mapserver/ticket/3297 > So, is there a patch for Mapserver 6.0 (we use 5.6.5 currently) which allows to apply custom encoding on a layer basis? That would be rather convenient. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/GetfeatureInfo-Request-in-an-UTF-8-environment-with-shapfile-in-cp-1252-tp6004140p6015965.html Sent from the Mapserver - User mailing list archive at Nabble.com. From toni.pignataro at wheregroup.com Fri Feb 11 06:51:10 2011 From: toni.pignataro at wheregroup.com (Toni Pignataro) Date: Fri, 11 Feb 2011 15:51:10 +0100 Subject: [mapserver-users] visualisation of image with overviews Message-ID: <4D554CDE.8090005@wheregroup.com> Hi list, I have a nonsatisfying visualisation of an geotiff image with overviews in mapserver. The different overviews look really poor zooming in the map. What i tried until now is, resampling the original image with gdal_addo (gdaladdo -r nearest , gdaladdo -r average_mp, gdaladdo -r average_magphase, gdaladdo -r mode) and i also made an gdal_translate (gdal_translate -of GTiff -co "TILLED=YES"), but the results did not look even better. Any one an suggestion how to handle the orginalimage? Thanks, Toni From yassefa at dmsolutions.ca Fri Feb 11 06:55:24 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Fri, 11 Feb 2011 09:55:24 -0500 Subject: [mapserver-users] Re: GetfeatureInfo-Request in an UTF-8 environment with shapfile in cp-1252 In-Reply-To: <1297435361825-6015965.post@n2.nabble.com> References: <5FBE485F93722E4589047FAB5195B63C051B09B8@AVLRBRCL08A.net.vlr.gv.at> <4D5289DC.5050105@mapgears.com> <4D5295C6.8050806@dmsolutions.ca> <1297435361825-6015965.post@n2.nabble.com> Message-ID: <4D554DDC.6040803@dmsolutions.ca> On 11/02/2011 9:42 AM, sulu wrote: > Hi Assefa. > > > Yewondwossen Assefa wrote: >> [1] http://trac.osgeo.org/mapserver/ticket/3297 >> > So, is there a patch for Mapserver 6.0 (we use 5.6.5 currently) which allows > to apply custom encoding on a layer basis? That would be rather convenient. Hi, No there is no patch to address the problem you specified. http://trac.osgeo.org/mapserver/ticket/3297#comment:4 and http://trac.osgeo.org/mapserver/ticket/3297#comment:5 show that there is some work to define the solution and to implement it. Assefa -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Andreas.Fischer at kreis-unna.de Fri Feb 11 07:36:59 2011 From: Andreas.Fischer at kreis-unna.de (Fischer, Andreas) Date: Fri, 11 Feb 2011 16:36:59 +0100 Subject: AW: [mapserver-users] visualisation of image with overviews In-Reply-To: <4D554CDE.8090005@wheregroup.com> References: <4D554CDE.8090005@wheregroup.com> Message-ID: <34A305EE27F6F245A9D0E92FEB03640E018E62D1@kum1.kreis-unna.int> Hi Toni, I think gdal_translate is not able to save overviews once you produced them with gdaladdo before. Therefore you do have to use gdaladdo after you are done with all the other stuff. But as far as I know you can't do both: Use Internal Tiling and overviews, because gdaladdo does not support the creation option for internal tiling. I don't know what gdal_translate does with the internal overviews once they are created, maybe the one with the lowest resolution is saved. ;-) I did a lot of downsampling aerial images using gdalwarp with -rc. for creating 'external overviews'. This way I did always get very good results and I can use internal tiling too. For the mapfile I calculate proper scales depending on input image resolution and the resolution of the presentation (e.g. max scale = 20cm/dot input image x 28 dpc (72dpi) /or 38 dpc (96dpi). For sure in any case of resampling arial images you do need 24bit images. This might cause more effort, but in my opinion the results are good and fast. Best regards Andreas Mit freundlichen Gr??en Im Auftrag Andreas Fischer Kreis Unna - Der Landrat Zentrale Datenverarbeitung Friedrich-Ebert-Stra?e 17 59425 Unna Fon 02 3 03 27-44 16 Fax 0 23 03 27-28 96 andreas.fischer at kreis-unna.de www.kreis-unna.de -----Urspr?ngliche Nachricht----- Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Toni Pignataro Gesendet: Freitag, 11. Februar 2011 15:51 An: mapserver-users at lists.osgeo.org Betreff: [mapserver-users] visualisation of image with overviews Hi list, I have a nonsatisfying visualisation of an geotiff image with overviews in mapserver. The different overviews look really poor zooming in the map. What i tried until now is, resampling the original image with gdal_addo (gdaladdo -r nearest , gdaladdo -r average_mp, gdaladdo -r average_magphase, gdaladdo -r mode) and i also made an gdal_translate (gdal_translate -of GTiff -co "TILLED=YES"), but the results did not look even better. Any one an suggestion how to handle the orginalimage? Thanks, Toni _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users Diese E-Mail wurde beim Ausgang auf Viren geprueft. Wegen der potentiellen Gefahr auf den Uebertragungswegen wird zu einer Vireneingangskontrolle geraten. Eine Haftung f?r Virenfreiheit wird ausgeschlossen. From stephan.holl at intevation.de Mon Feb 14 03:13:24 2011 From: stephan.holl at intevation.de (Stephan Holl) Date: Mon, 14 Feb 2011 12:13:24 +0100 Subject: [mapserver-users] visualisation of image with overviews In-Reply-To: <4D554CDE.8090005@wheregroup.com> References: <4D554CDE.8090005@wheregroup.com> Message-ID: <20110214121324.00210b98@thoe.hq.intevation.de> Hello Toni, Toni Pignataro , [20110211 - 15:51:10] > Hi list, > > I have a nonsatisfying visualisation of an geotiff image with > overviews in mapserver. The different overviews look really poor > zooming in the map. > > What i tried until now is, resampling the original image with > gdal_addo (gdaladdo -r nearest , gdaladdo -r average_mp, gdaladdo -r > average_magphase, gdaladdo -r mode) and i also made an gdal_translate > (gdal_translate -of GTiff -co "TILLED=YES"), but the results did not > look even better. > > Any one an suggestion how to handle the orginalimage? Perhaps you can play with the different resampling algorithms. Good visual results can be made with the Average method, with a little performance hit. And of course Andreas' hints are worth! HTH Stephan -- Stephan Holl | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: From Andreas.Eichner at sid.sachsen.de Mon Feb 14 02:58:41 2011 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Mon, 14 Feb 2011 11:58:41 +0100 Subject: AW: [mapserver-users] WMS SLD Troubles References: <4D4FC235.1050803@metrico.lu><4D5159D5.7010508@dmsolutions.ca> <4D524DDE.30801@metrico.lu><4D53EF70.5080409@metrico.lu> <4D5501B2.9040704@metrico.lu> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF0E4@KS-EVS1.smi.sachsen.de> Hi, it looks like the Python MapScript module is compiled against a different regex libary than the Python interpreter uses. The "premature end of script headers" is usually caused by a SIGSEGV where the script gets killed before being able to send any headers. I would suggest to build python-mapscript on your own. HTH -----Urspr?ngliche Nachricht----- Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Frank Broniewski Gesendet: Freitag, 11. Februar 2011 10:30 An: mapserver-users at lists.osgeo.org Betreff: Re: [mapserver-users] WMS SLD Troubles Ok, I've found a problem with the parsing of OWSRequest.setParameter() My code: ... elif request.method == 'GET': logging.debug("%s: Request method is GET" % datetime.datetime.now()) for key, value in request.args.items(): if key.lower() == 'sld': logging.debug("%s: Escaping %s" % (datetime.datetime.now(), key)) logging.debug("%s: Value is %s" % (datetime.datetime.now(), value)) value = urllib.quote_plus(value) g.ows_request.setParameter(key, value) if key.lower() == 'sld': value = g.ows_request.getValueByName(key) logging.debug("%s: Loaded Param %s" % (datetime.datetime.now(), value)) mapscript.msIO_installStdoutToBuffer() success = g.ows_map.OWSDispatch(g.ows_request) ... What I'm basically doing here is setting the request parameters with setParameter on the ows_reqeuest object. When there is _no_ sld parameter in the request, escaping is not necessary. Once there is a sld request parameter, mapscript crashes when doing setParameter('SLD', 'http://192.168.0.111:8502/sld/style.sld') [Fri Feb 11 11:10:32 2011] [error] [client 192.168.0.2] success = g.ows_map.OWSDispatch(g.ows_request) [Fri Feb 11 11:10:32 2011] [error] [client 192.168.0.2] File "/usr/lib/python2.5/site-packages/mapscript.py", line 1515, in OWSDispatch [Fri Feb 11 11:10:32 2011] [error] [client 192.168.0.2] def OWSDispatch(*args): return _mapscript.mapObj_OWSDispatch(*args) [Fri Feb 11 11:10:32 2011] [error] [client 192.168.0.2] MapServerError: msEvalRegex(): Regular expression error. String failed expression test. [Fri Feb 11 11:10:32 2011] [error] [client 192.168.0.2] msEvalRegex(): Regular expression error. String failed expression test. Using urllib.quote_plus I escaped the SLD URL back to a web representation and set it with setParameter. SLD=http%3A%2F%2F192.168.0.111%3A8502%2Fsld%2Fstyle.sld request.args: Key: SLD Value: http://192.168.0.111:8502/sld/style.sld Quoted Value: http%3A%2F%2F192.168.0.111%3A8502%2Fsld%2Fstyle.sld Loaded Param http%3A%2F%2F192.168.0.111%3A8502%2Fsld%2Fstyle.sld Unfortunately quoting does not help, but the error this time is less clear than the one before: [Fri Feb 11 11:11:51 2011] [error] [client 192.168.0.2] Premature end of script headers: gishosting.wsgi the mapserver error log (debug 5) shows also no entry, so I am completely clueless what's going wrong here. Does someone have a clue whats going on there? Datasource is a Postgis database (OpenStreetMap data) which works without the SLD parameter. System is a Ubuntu Hardy 8.04 with the deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu hardy main deb-src http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu hardy main sources /usr/lib/cgi-bin/mapserv -v MapServer version 5.6.6 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG 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 SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE dpkg -l ||/ Name Version Description +++-==============-==============-============================================ ii apache2 2.2.8-1ubuntu0 Next generation, scalable, extendable web se ii python-mapscri 5.6.6-2~hardy1 Python library for MapServer ii mapserver-bin 5.6.6-2~hardy1 MapServer utilities ii cgi-mapserver 5.6.6-2~hardy1 CGI executable for MapServer Python 2.5.2 (r252:60911, Jan 20 2010, 23:14:04) And self compiled libapache2-mod-wsgi Frank Am 10.02.2011 15:00, schrieb Frank Broniewski: > Ok, we've narrowed it down a bit. When we use the cgi-mapserver the SLD > styling works, so the issue seems to be with (python) mapscript ... > I will investigate further > > Frank > > > Am 09.02.2011 09:18, schrieb Frank Broniewski: >> Hello, >> >> thank you for your kind help :-) I've put the requested informations >> below. >> >> >> Frank >> >> >> INFO: >> >> we're using >> /usr/lib/cgi-bin/mapserv -v >> MapServer version 5.6.6 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG 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 >> SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL >> INPUT=SHAPEFILE >> on Ubuntu 8.04 with the ubuntu-gis ppa. >> >> >> >> >> Original layer definition: >> >> LAYER >> NAME "post" >> STATUS Off >> CONNECTIONTYPE Postgis >> CONNECTION "host=localhost dbname=osm user= password= port=5432" >> DATA "nway FROM >> (SELECT way as nway, osm_id, amenity, name >> FROM planet_osm_point >> WHERE amenity='post_box' OR amenity='post_office' >> ) >> as foo using unique osm_id using SRID=900913" >> TYPE Point >> PROCESSING "CLOSE_CONNECTION=DEFER" >> CLASSITEM "amenity" >> DUMP true >> >> # --------------------------------------------------------------- >> # Projection configuration >> # --------------------------------------------------------------- >> INCLUDE "/usr/local/mapconf/share/projections/google.map" >> >> METADATA >> # lots of metadata .... >> END >> END >> >> >> >> >> >> >> the SLD: >> >> post >> >> Post >> >> >> >> >> amenity >> post_box >> >> >> >> >> >> > xlink:type="simple" >> >> xlink:href="http://192.168.0.111:8502/sld/img/briefkasten.png" /> >> image/png >> >> 40 >> >> >> >> >> >> >> amenity >> post_office >> >> >> >> >> >> > xlink:type="simple" >> >> xlink:href="http://192.168.0.111:8502/sld/img/posthorn.png" /> >> image/png >> >> 40 >> >> >> >> >> >> >> >> >> >> >> >> >> >> the generated map file: >> LAYER >> CLASSITEM "amenity" >> CONNECTION "host=localhost dbname=osm user= password= port=5432" >> CONNECTIONTYPE POSTGIS >> DATA "nway FROM >> (SELECT way as nway, osm_id, amenity, name >> FROM planet_osm_point >> WHERE amenity='post_box' >> OR amenity='post_office' >> ) >> as foo using unique osm_id using SRID=900913" >> DUMP TRUE >> METADATA >> # metadata >> END >> NAME "post" >> PROCESSING "CLOSE_CONNECTION=DEFER" >> PROJECTION >> "proj=merc" >> "a=6378137" >> "b=6378137" >> "lat_ts=0" >> "lon_0=0" >> "x_0=0" >> "y_0=0" >> "k=1" >> "nadgrids=@null" >> "units=m" >> "no_defs" >> END >> STATUS ON >> TYPE POINT >> UNITS METERS >> CLASS >> NAME "Unknown" >> EXPRESSION ("[amenity]" = "post_box") >> STYLE >> ANGLE 360 >> COLOR 0 0 0 >> SIZE 40 >> SYMBOL "http://192.168.0.111:8502/sld/img/briefkasten.png" >> WIDTH 1 >> END >> END >> END >> >> >> >> >> Am 08.02.2011 15:57, schrieb Yewondwossen Assefa: >>> What version of MapServer? >>> >>> Also, what is the part in the map file that is causing the problem: >>> * if you remove the EXPRESSION ("[amenity]" = "post_box") from the >>> generated map, will that work >>> * Is the layer's FILTER element set (on the generated map)? If so what >>> is the value? >>> >>> A full layer definition in the generated map would be useful. A full sld >>> might also help. >>> >>> regards, >>> >>> >>> On 07/02/2011 4:58 AM, Frank Broniewski wrote: >>>> Hello, >>>> >>>> We're using a OpenStreetMap Postgis database as a source for our >>>> geo-servers. We want to provide WMS and WFS services on the data. In >>>> order to do the styling only once, we are using SLDs, which works >>>> mostly fine. >>>> >>>> One of our layers does not render as a WMS, it throws a >>>> "msEvalRegex(): Regular expression error. String failed expression >>>> test." Error during execution. >>>> >>>> We identified the layer, and it's the one rendering post boxes. The >>>> corresponding SLD definition is using a filter: >>>> >>>> >>>> >>>> >>>> amenity >>>> post_office >>>> >>>> >>>> >>>> >>>> Using debug-level 5, the mapfile after SLD application looks like >>>> >>>> # ... >>>> # more definitions >>>> # ... >>>> CLASSITEM "amenity" >>>> DATA "nway FROM >>>> (SELECT way as nway, osm_id, amenity, name >>>> FROM planet_osm_point >>>> WHERE amenity='post_box' >>>> OR amenity='post_office' >>>> ) >>>> as foo using unique osm_id using SRID=900913" >>>> # ... >>>> # more definitions >>>> # ... >>>> CLASS >>>> NAME "Unknown" >>>> EXPRESSION ("[amenity]" = "post_box") >>>> STYLE >>>> ANGLE 360 >>>> COLOR 0 0 0 >>>> SIZE 40 >>>> SYMBOL "http://192.168.0.111:8502/sld/img/briefkasten.png" >>>> WIDTH 1 >>>> END >>>> END >>>> >>>> >>>> We simply can't figure out, what might be the problem here. The whole >>>> issue seem to be related to the filter element, removing it makes the >>>> layer render. Using the generated map layer, rendering fails with the >>>> same error. >>>> So I would be happy if someone with more experience with SLDs can give >>>> me a hint about whats going wrong here. >>>> >>>> >>>> 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 From Bob.Bistrais at maine.gov Mon Feb 14 06:30:56 2011 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Mon, 14 Feb 2011 09:30:56 -0500 Subject: [mapserver-users] Buffer features? Message-ID: <4EFF8BB964547748A07CA32961810C041A036DD9@SOM-TEAQASMAIL1.som.w2k.state.me.us> This question may have come up before, but I haven't found it in the archives. I would like to take a selected feature and buffer it to a specified distance. I know it's possible to do a queryByPoint with a buffer distance, but I need to create an actual buffer shape to display on the map. Has anyone done something like this before? Does MapServer have this capability? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Mon Feb 14 06:32:05 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 14 Feb 2011 08:32:05 -0600 Subject: [mapserver-users] RE: Buffer features? In-Reply-To: <4EFF8BB964547748A07CA32961810C041A036DD9@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C041A036DD9@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: Unless you're working in MapScript you'll have to wait for the 6.0 release (maybe). 6.0 contains some support for buffering (in pixels) using the GEOMTRANSFORM style attribute although this is mainly a cartographic tool. In MapScript you can do this now though. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Monday, February 14, 2011 8:30 AM To: mapserver-users Subject: [mapserver-users] Buffer features? This question may have come up before, but I haven?t found it in the archives. I would like to take a selected feature and buffer it to a specified distance. I know it?s possible to do a queryByPoint with a buffer distance, but I need to create an actual buffer shape to display on the map. Has anyone done something like this before? Does MapServer have this capability? From Bob.Bistrais at maine.gov Mon Feb 14 06:36:22 2011 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Mon, 14 Feb 2011 09:36:22 -0500 Subject: [mapserver-users] RE: Buffer features? In-Reply-To: References: <4EFF8BB964547748A07CA32961810C041A036DD9@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4EFF8BB964547748A07CA32961810C041A036DDA@SOM-TEAQASMAIL1.som.w2k.state.me.us> I am working in MapScript. I've got some ideas but haven't quite figured it out. Are there any code examples available? -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Monday, February 14, 2011 9:32 AM To: Bistrais, Bob; mapserver-users Subject: RE: Buffer features? Unless you're working in MapScript you'll have to wait for the 6.0 release (maybe). 6.0 contains some support for buffering (in pixels) using the GEOMTRANSFORM style attribute although this is mainly a cartographic tool. In MapScript you can do this now though. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Monday, February 14, 2011 8:30 AM To: mapserver-users Subject: [mapserver-users] Buffer features? This question may have come up before, but I haven't found it in the archives. I would like to take a selected feature and buffer it to a specified distance. I know it's possible to do a queryByPoint with a buffer distance, but I need to create an actual buffer shape to display on the map. Has anyone done something like this before? Does MapServer have this capability? From Steve.Lime at state.mn.us Mon Feb 14 06:40:26 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 14 Feb 2011 08:40:26 -0600 Subject: [mapserver-users] RE: Buffer features? In-Reply-To: <4EFF8BB964547748A07CA32961810C041A036DDA@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C041A036DD9@SOM-TEAQASMAIL1.som.w2k.state.me.us> , <4EFF8BB964547748A07CA32961810C041A036DDA@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: It should be as simple as: # do the query and get the selected shape $bDistance = 5; # in layer units $bShape = $shape->buffer($bDistance); # now draw the buffered shape Does that help or is the before/after parts that is confusing. Steve ________________________________________ From: Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Monday, February 14, 2011 8:36 AM To: Lime, Steve D (DNR); mapserver-users Subject: RE: Buffer features? I am working in MapScript. I've got some ideas but haven't quite figured it out. Are there any code examples available? -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Monday, February 14, 2011 9:32 AM To: Bistrais, Bob; mapserver-users Subject: RE: Buffer features? Unless you're working in MapScript you'll have to wait for the 6.0 release (maybe). 6.0 contains some support for buffering (in pixels) using the GEOMTRANSFORM style attribute although this is mainly a cartographic tool. In MapScript you can do this now though. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Monday, February 14, 2011 8:30 AM To: mapserver-users Subject: [mapserver-users] Buffer features? This question may have come up before, but I haven't found it in the archives. I would like to take a selected feature and buffer it to a specified distance. I know it's possible to do a queryByPoint with a buffer distance, but I need to create an actual buffer shape to display on the map. Has anyone done something like this before? Does MapServer have this capability? From jmckenna at gatewaygeomatics.com Mon Feb 14 06:49:43 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 14 Feb 2011 10:49:43 -0400 Subject: [mapserver-users] RE: Buffer features? In-Reply-To: References: <4EFF8BB964547748A07CA32961810C041A036DD9@SOM-TEAQASMAIL1.som.w2k.state.me.us> , <4EFF8BB964547748A07CA32961810C041A036DDA@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4D594107.9050505@gatewaygeomatics.com> Also note that you'll need to build MapServer with GEOS support (and verify this with a 'mapserv -v' call). -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-02-14 10:40 AM, Lime, Steve D (DNR) wrote: > It should be as simple as: > > # do the query and get the selected shape > > $bDistance = 5; # in layer units > $bShape = $shape->buffer($bDistance); > > # now draw the buffered shape > > Does that help or is the before/after parts that is confusing. > > Steve > > ________________________________________ > From: Bistrais, Bob [Bob.Bistrais at maine.gov] > Sent: Monday, February 14, 2011 8:36 AM > To: Lime, Steve D (DNR); mapserver-users > Subject: RE: Buffer features? > > I am working in MapScript. I've got some ideas but haven't quite > figured it out. Are there any code examples available? > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: Monday, February 14, 2011 9:32 AM > To: Bistrais, Bob; mapserver-users > Subject: RE: Buffer features? > > Unless you're working in MapScript you'll have to wait for the 6.0 > release (maybe). 6.0 contains some support for buffering (in pixels) > using the GEOMTRANSFORM style attribute although this is mainly a > cartographic tool. In MapScript you can do this now though. > > Steve > ________________________________________ > From: mapserver-users-bounces at lists.osgeo.org > [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob > [Bob.Bistrais at maine.gov] > Sent: Monday, February 14, 2011 8:30 AM > To: mapserver-users > Subject: [mapserver-users] Buffer features? > > This question may have come up before, but I haven't found it in the > archives. I would like to take a selected feature and buffer it to a > specified distance. I know it's possible to do a queryByPoint with a > buffer distance, but I need to create an actual buffer shape to display > on the map. Has anyone done something like this before? Does MapServer > have this capability? > From Bob.Bistrais at maine.gov Mon Feb 14 11:36:40 2011 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Mon, 14 Feb 2011 14:36:40 -0500 Subject: [mapserver-users] RE: Buffer features? In-Reply-To: <4D594107.9050505@gatewaygeomatics.com> References: <4EFF8BB964547748A07CA32961810C041A036DD9@SOM-TEAQASMAIL1.som.w2k.state.me.us> , <4EFF8BB964547748A07CA32961810C041A036DDA@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4D594107.9050505@gatewaygeomatics.com> Message-ID: <4EFF8BB964547748A07CA32961810C041A036DDE@SOM-TEAQASMAIL1.som.w2k.state.me.us> What's the procedure to do that? -----Original Message----- From: Jeff McKenna [mailto:jmckenna at gatewaygeomatics.com] Sent: Monday, February 14, 2011 9:50 AM To: mapserver-users Subject: Re: [mapserver-users] RE: Buffer features? Also note that you'll need to build MapServer with GEOS support (and verify this with a 'mapserv -v' call). -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-02-14 10:40 AM, Lime, Steve D (DNR) wrote: > It should be as simple as: > > # do the query and get the selected shape > > $bDistance = 5; # in layer units > $bShape = $shape->buffer($bDistance); > > # now draw the buffered shape > > Does that help or is the before/after parts that is confusing. > > Steve > > ________________________________________ > From: Bistrais, Bob [Bob.Bistrais at maine.gov] > Sent: Monday, February 14, 2011 8:36 AM > To: Lime, Steve D (DNR); mapserver-users > Subject: RE: Buffer features? > > I am working in MapScript. I've got some ideas but haven't quite > figured it out. Are there any code examples available? > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: Monday, February 14, 2011 9:32 AM > To: Bistrais, Bob; mapserver-users > Subject: RE: Buffer features? > > Unless you're working in MapScript you'll have to wait for the 6.0 > release (maybe). 6.0 contains some support for buffering (in pixels) > using the GEOMTRANSFORM style attribute although this is mainly a > cartographic tool. In MapScript you can do this now though. > > Steve > ________________________________________ > From: mapserver-users-bounces at lists.osgeo.org > [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob > [Bob.Bistrais at maine.gov] > Sent: Monday, February 14, 2011 8:30 AM > To: mapserver-users > Subject: [mapserver-users] Buffer features? > > This question may have come up before, but I haven't found it in the > archives. I would like to take a selected feature and buffer it to a > specified distance. I know it's possible to do a queryByPoint with a > buffer distance, but I need to create an actual buffer shape to display > on the map. Has anyone done something like this before? Does MapServer > have this capability? > From Bob.Bistrais at maine.gov Mon Feb 14 12:09:32 2011 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Mon, 14 Feb 2011 15:09:32 -0500 Subject: [mapserver-users] RE: Buffer features? In-Reply-To: References: <4EFF8BB964547748A07CA32961810C041A036DD9@SOM-TEAQASMAIL1.som.w2k.state.me.us> , <4EFF8BB964547748A07CA32961810C041A036DDA@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4EFF8BB964547748A07CA32961810C041A036DDF@SOM-TEAQASMAIL1.som.w2k.state.me.us> OK, I can select the shape through query, put in the distance, not sure what to do next (drawing the buffered shape) -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Monday, February 14, 2011 9:40 AM To: Bistrais, Bob; mapserver-users Subject: RE: Buffer features? It should be as simple as: # do the query and get the selected shape $bDistance = 5; # in layer units $bShape = $shape->buffer($bDistance); # now draw the buffered shape Does that help or is the before/after parts that is confusing. Steve ________________________________________ From: Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Monday, February 14, 2011 8:36 AM To: Lime, Steve D (DNR); mapserver-users Subject: RE: Buffer features? I am working in MapScript. I've got some ideas but haven't quite figured it out. Are there any code examples available? -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Monday, February 14, 2011 9:32 AM To: Bistrais, Bob; mapserver-users Subject: RE: Buffer features? Unless you're working in MapScript you'll have to wait for the 6.0 release (maybe). 6.0 contains some support for buffering (in pixels) using the GEOMTRANSFORM style attribute although this is mainly a cartographic tool. In MapScript you can do this now though. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Monday, February 14, 2011 8:30 AM To: mapserver-users Subject: [mapserver-users] Buffer features? This question may have come up before, but I haven't found it in the archives. I would like to take a selected feature and buffer it to a specified distance. I know it's possible to do a queryByPoint with a buffer distance, but I need to create an actual buffer shape to display on the map. Has anyone done something like this before? Does MapServer have this capability? From aeskreis at gmail.com Mon Feb 14 12:24:45 2011 From: aeskreis at gmail.com (Adam Eskreis) Date: Mon, 14 Feb 2011 15:24:45 -0500 Subject: [mapserver-users] Image Symbol Rendering Quality Message-ID: Hey All, I am having a strang problem with my map. I am creating a layer composed entirely of PNG symbols. However, there is a very strang problem I am experiencing: Not all of the symbols are rendering iwth the same quality. This is best seen with the following image: http://img708.imageshack.us/i/symbolquality.png/ As you can see, the circled image is far more "crisp" than the rest of the images, which appear blurry. I've checked the image quality of the original images for all these images that appear blurry, and they are all good quality images that appear as crisp and clear as the circled image, but when mapserver renders them, they are losing significant quality. Why would this image appear more clear than the others? I am using AGG as my renderer, using pngs for input and output. This is my outputformat directive in the mapfile: OUTPUTFORMAT NAME "AGGA" MIMETYPE "image/png; mode=24bit" DRIVER "AGG/PNG" IMAGEMODE "RGBA" TRANSPARENT TRUE EXTENSION "PNG" FORMATOPTION "INTERLACE=FALSE" END Any ideas or help would be great. Thanks. -Adam -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Feb 14 12:26:10 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 14 Feb 2011 16:26:10 -0400 Subject: [mapserver-users] RE: Buffer features? In-Reply-To: <4EFF8BB964547748A07CA32961810C041A036DDF@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C041A036DD9@SOM-TEAQASMAIL1.som.w2k.state.me.us> , <4EFF8BB964547748A07CA32961810C041A036DDA@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4EFF8BB964547748A07CA32961810C041A036DDF@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4D598FE2.8060008@gatewaygeomatics.com> Hi Bob, After you make it through this battle I wonder if you could add your steps and scripts and instructions to the "Tips, Tricks, and How-tos" section of the MapServer wiki? http://trac.osgeo.org/mapserver/ Thanks. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-02-14 4:09 PM, Bistrais, Bob wrote: > OK, I can select the shape through query, put in the distance, not sure > what to do next (drawing the buffered shape) > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: Monday, February 14, 2011 9:40 AM > To: Bistrais, Bob; mapserver-users > Subject: RE: Buffer features? > > It should be as simple as: > > # do the query and get the selected shape > > $bDistance = 5; # in layer units > $bShape = $shape->buffer($bDistance); > > # now draw the buffered shape > > Does that help or is the before/after parts that is confusing. > > Steve > > ________________________________________ > From: Bistrais, Bob [Bob.Bistrais at maine.gov] > Sent: Monday, February 14, 2011 8:36 AM > To: Lime, Steve D (DNR); mapserver-users > Subject: RE: Buffer features? > > I am working in MapScript. I've got some ideas but haven't quite > figured it out. Are there any code examples available? > > -----Original Message----- > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: Monday, February 14, 2011 9:32 AM > To: Bistrais, Bob; mapserver-users > Subject: RE: Buffer features? > > Unless you're working in MapScript you'll have to wait for the 6.0 > release (maybe). 6.0 contains some support for buffering (in pixels) > using the GEOMTRANSFORM style attribute although this is mainly a > cartographic tool. In MapScript you can do this now though. > > Steve > ________________________________________ > From: mapserver-users-bounces at lists.osgeo.org > [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob > [Bob.Bistrais at maine.gov] > Sent: Monday, February 14, 2011 8:30 AM > To: mapserver-users > Subject: [mapserver-users] Buffer features? > > This question may have come up before, but I haven't found it in the > archives. I would like to take a selected feature and buffer it to a > specified distance. I know it's possible to do a queryByPoint with a > buffer distance, but I need to create an actual buffer shape to display > on the map. Has anyone done something like this before? Does MapServer > have this capability? > > From woodbri at swoodbridge.com Mon Feb 14 15:11:37 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 14 Feb 2011 18:11:37 -0500 Subject: [mapserver-users] 3D Building Howto? Message-ID: <4D59B6A9.4050107@swoodbridge.com> Hi all, Has anyone been able to render 3D building with mapserver? I have a polygon layer with the building outlines and a height attribute. Any thoughts on how to render nice buildings like Google does? I can preprocess the data and extrude it into 3D shapes, but I'm not sure that gets me anywhere. My one thought was to draw the polygon, then draw it again with an xy offset based on a function of the height. But this does not generate the vertical edges of the building. I suppose I could generate all the vertical faces and the top of the build and then sort them all based on the z value of the centroid. I could event remove all the back facing polygons faces. It would be cool if mapserver had: LAYER TYPE POLYGON3D HEIGHT [height] ... END Thoughts? -Steve W From Steve.Lime at state.mn.us Mon Feb 14 15:17:48 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 14 Feb 2011 17:17:48 -0600 Subject: [mapserver-users] RE: Buffer features? In-Reply-To: <4EFF8BB964547748A07CA32961810C041A036DDF@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C041A036DD9@SOM-TEAQASMAIL1.som.w2k.state.me.us> , <4EFF8BB964547748A07CA32961810C041A036DDA@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4EFF8BB964547748A07CA32961810C041A036DDF@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: You have a couple of options. Shapes (and points) have a draw method but I think it's kind hard to use in the context of a full map draw. I think it's easier to add the shape as an inline feature to an existing layer. So, in your mapfile you'd define a layer used to present the buffered feature. It wouldn't have a DATA value nor any inline features defined. Something like: # Layer to draw a buffered feature using a big, red outline. LAYER NAME 'buffered_feature' TYPE POLYGON STATUS OFF CLASS STYLE OUTLINECOLOR 255 0 0 WIDTH 5 END END END Then (off the top of my head) in your code (e.g. Perl) you'd have: # Ok, you have a selected, buffered feature... # Now, add the feature to an existing layer... $layer = $map->getLayerByName('buffered_feature'); $layer->{status} = $mapscript::MS_ON; $layer->addFeature($bShape); # And finally draw the map $img = $map->draw(); The nice thing about this approach is that the map draw is one step and the buffered feature can be handled just like any layer. Steve -----Original Message----- From: Bistrais, Bob [mailto:Bob.Bistrais at maine.gov] Sent: Monday, February 14, 2011 2:10 PM To: Lime, Steve D (DNR); mapserver-users Subject: RE: Buffer features? OK, I can select the shape through query, put in the distance, not sure what to do next (drawing the buffered shape) -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Monday, February 14, 2011 9:40 AM To: Bistrais, Bob; mapserver-users Subject: RE: Buffer features? It should be as simple as: # do the query and get the selected shape $bDistance = 5; # in layer units $bShape = $shape->buffer($bDistance); # now draw the buffered shape Does that help or is the before/after parts that is confusing. Steve ________________________________________ From: Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Monday, February 14, 2011 8:36 AM To: Lime, Steve D (DNR); mapserver-users Subject: RE: Buffer features? I am working in MapScript. I've got some ideas but haven't quite figured it out. Are there any code examples available? -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Monday, February 14, 2011 9:32 AM To: Bistrais, Bob; mapserver-users Subject: RE: Buffer features? Unless you're working in MapScript you'll have to wait for the 6.0 release (maybe). 6.0 contains some support for buffering (in pixels) using the GEOMTRANSFORM style attribute although this is mainly a cartographic tool. In MapScript you can do this now though. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob [Bob.Bistrais at maine.gov] Sent: Monday, February 14, 2011 8:30 AM To: mapserver-users Subject: [mapserver-users] Buffer features? This question may have come up before, but I haven't found it in the archives. I would like to take a selected feature and buffer it to a specified distance. I know it's possible to do a queryByPoint with a buffer distance, but I need to create an actual buffer shape to display on the map. Has anyone done something like this before? Does MapServer have this capability? From bfraser at geoanalytic.com Mon Feb 14 15:34:00 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Mon, 14 Feb 2011 16:34:00 -0700 Subject: [mapserver-users] 3D Building Howto? In-Reply-To: <4D59B6A9.4050107@swoodbridge.com> References: <4D59B6A9.4050107@swoodbridge.com> Message-ID: <4D59BBE8.608@geoanalytic.com> Steve, A few months back there was a similar question in the Mapnik mailing list (http://www.mail-archive.com/mapnik-users at lists.berlios.de/msg03000.html). A couple of links (but no solution) given in response: http://trac.mapnik.org/wiki/BuildingSymbolizer http://wiki.openstreetmap.org/wiki/OSM-3D Best Regards, Brent Fraser On 2/14/2011 4:11 PM, Stephen Woodbridge wrote: > Hi all, > > Has anyone been able to render 3D building with mapserver? > > I have a polygon layer with the building outlines and a height attribute. > > Any thoughts on how to render nice buildings like Google does? > > I can preprocess the data and extrude it into 3D shapes, but I'm not > sure that gets me anywhere. > > My one thought was to draw the polygon, then draw it again with an xy > offset based on a function of the height. But this does not generate > the vertical edges of the building. > > I suppose I could generate all the vertical faces and the top of the > build and then sort them all based on the z value of the centroid. I > could event remove all the back facing polygons faces. > > It would be cool if mapserver had: > > LAYER > TYPE POLYGON3D > HEIGHT [height] > ... > END > > Thoughts? > -Steve W > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Steve.Lime at state.mn.us Mon Feb 14 15:34:57 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 14 Feb 2011 17:34:57 -0600 Subject: [mapserver-users] 3D Building Howto? In-Reply-To: <4D59B6A9.4050107@swoodbridge.com> References: <4D59B6A9.4050107@swoodbridge.com> Message-ID: Maybe this is a GEOMTRANSFORM function in 6.0 speak? You could do something like: GEOMTRANSFORM (extrude(some view parameters, [height])) Where the first few arguments define a view position and the last argument is height. Neat thing about this approach that height could be a constant or a bound to an attribute. The extrude function would generate the sides, top and bottom based on view parameters and a height. It could even (perhaps) create multiple features mirrored on the outline but with extended attributes that would define things like top vs. side vs. bottom, or whether a facet side is visible or not. If done outside of STYLEs (e.g. a layer-level GEOMTRANSFORM) then one could draw things differently based on these pseudo attributes (e.g. if a side and visible do this). Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen Woodbridge Sent: Monday, February 14, 2011 5:12 PM To: mapserver-users Subject: [mapserver-users] 3D Building Howto? Hi all, Has anyone been able to render 3D building with mapserver? I have a polygon layer with the building outlines and a height attribute. Any thoughts on how to render nice buildings like Google does? I can preprocess the data and extrude it into 3D shapes, but I'm not sure that gets me anywhere. My one thought was to draw the polygon, then draw it again with an xy offset based on a function of the height. But this does not generate the vertical edges of the building. I suppose I could generate all the vertical faces and the top of the build and then sort them all based on the z value of the centroid. I could event remove all the back facing polygons faces. It would be cool if mapserver had: LAYER TYPE POLYGON3D HEIGHT [height] ... END Thoughts? -Steve W _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Mon Feb 14 16:38:41 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 14 Feb 2011 19:38:41 -0500 Subject: [mapserver-users] 3D Building Howto? In-Reply-To: References: <4D59B6A9.4050107@swoodbridge.com> Message-ID: <4D59CB11.6070705@swoodbridge.com> Steve, I like this idea. I opened an enhancement request against 6.0, I realize it probably will not make the freze, so push it to future or whatever. http://trac.osgeo.org/mapserver/ticket/3678 -Steve W On 2/14/2011 6:34 PM, Lime, Steve D (DNR) wrote: > Maybe this is a GEOMTRANSFORM function in 6.0 speak? You could do > something like: > > GEOMTRANSFORM (extrude(some view parameters, [height])) > > Where the first few arguments define a view position and the last > argument is height. Neat thing about this approach that height could > be a constant or a bound to an attribute. The extrude function would > generate the sides, top and bottom based on view parameters and a > height. It could even (perhaps) create multiple features mirrored on > the outline but with extended attributes that would define things > like top vs. side vs. bottom, or whether a facet side is visible or > not. > > If done outside of STYLEs (e.g. a layer-level GEOMTRANSFORM) then one > could draw things differently based on these pseudo attributes (e.g. > if a side and visible do this). > > Steve > > -----Original Message----- From: > mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen > Woodbridge Sent: Monday, February 14, 2011 5:12 PM To: > mapserver-users Subject: [mapserver-users] 3D Building Howto? > > Hi all, > > Has anyone been able to render 3D building with mapserver? > > I have a polygon layer with the building outlines and a height > attribute. > > Any thoughts on how to render nice buildings like Google does? > > I can preprocess the data and extrude it into 3D shapes, but I'm not > sure that gets me anywhere. > > My one thought was to draw the polygon, then draw it again with an > xy offset based on a function of the height. But this does not > generate the vertical edges of the building. > > I suppose I could generate all the vertical faces and the top of the > build and then sort them all based on the z value of the centroid. I > could event remove all the back facing polygons faces. > > It would be cool if mapserver had: > > LAYER TYPE POLYGON3D HEIGHT [height] ... END > > Thoughts? -Steve W _______________________________________________ > mapserver-users mailing list mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Andreas.Eichner at sid.sachsen.de Mon Feb 14 23:43:26 2011 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Tue, 15 Feb 2011 08:43:26 +0100 Subject: AW: [mapserver-users] Image Symbol Rendering Quality References: Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF0E5@KS-EVS1.smi.sachsen.de> Just an idea: You are using PNG images as labels which get transformed (rotated) and the AGG renderer draws them using anti-aliasing. But MapServer tends to cut short some code paths and so it probably does for simple transforms like rotation by 90/180/270? and which might ommit anti-aliasing... Since code says more than thousand words, what version are you using? BTW: What's the reason to use pre-rendered labels? -----Urspr?ngliche Nachricht----- Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Adam Eskreis Gesendet: Montag, 14. Februar 2011 21:25 An: mapserver-users at lists.osgeo.org Betreff: [mapserver-users] Image Symbol Rendering Quality Hey All, I am having a strang problem with my map. I am creating a layer composed entirely of PNG symbols. However, there is a very strang problem I am experiencing: Not all of the symbols are rendering iwth the same quality. This is best seen with the following image: http://img708.imageshack.us/i/symbolquality.png/ As you can see, the circled image is far more "crisp" than the rest of the images, which appear blurry. I've checked the image quality of the original images for all these images that appear blurry, and they are all good quality images that appear as crisp and clear as the circled image, but when mapserver renders them, they are losing significant quality. Why would this image appear more clear than the others? I am using AGG as my renderer, using pngs for input and output. This is my outputformat directive in the mapfile: OUTPUTFORMAT NAME "AGGA" MIMETYPE "image/png; mode=24bit" DRIVER "AGG/PNG" IMAGEMODE "RGBA" TRANSPARENT TRUE EXTENSION "PNG" FORMATOPTION "INTERLACE=FALSE" END Any ideas or help would be great. Thanks. -Adam From szekerest at gmail.com Tue Feb 15 01:06:21 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 15 Feb 2011 10:06:21 +0100 Subject: [mapserver-users] Buffer features? In-Reply-To: <4EFF8BB964547748A07CA32961810C041A036DD9@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C041A036DD9@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: In accordance with the problem mentioned, I recall a resonable enhancement as described in RFC22awhich would provide an option to configure all the stuff in the mapfile (not requiring MapScript) and would make it easier to customize the query maps as well. With this enhancement 2 new layer data providers could be implemented, like: 1. CONNECTIONTYPE=QUERYRESULT would provide to represent the result sets of one layer in a new layer. 2. CONNECTIONTYPE=TRANSFORM would provide simple geometry transformations on a source layer and then provide the modified features as a new layer. By chaining these layers together in a map configuration we could get such results as included in the RFC document. I consider this kind of enhancement could be implemented within the scope of 1-2 days of work (comparable with a fully elaborated MapScript solution providing the same) Best regards, Tamas 2011/2/14 Bistrais, Bob > This question may have come up before, but I haven?t found it in the > archives. I would like to take a selected feature and buffer it to a > specified distance. I know it?s possible to do a queryByPoint with a buffer > distance, but I need to create an actual buffer shape to display on the > map. Has anyone done something like this before? Does MapServer have this > capability? > > _______________________________________________ > 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 mandschulz at googlemail.com Tue Feb 15 03:37:37 2011 From: mandschulz at googlemail.com (Michael Schulz) Date: Tue, 15 Feb 2011 12:37:37 +0100 Subject: [mapserver-users] mapscript php with agg rendering? Message-ID: Hi mapservers, I have a question regarding the AGG rendering when creating a map completly from php-mapscript. In the script I (think I) am setting all the required parameters for the map to be rendered with AGG using 24bit: $oMap=ms_newMapObjFromString("MAP END"); ... $oMap->outputformat->set('name','png'); $oMap->outputformat->set('driver','AGG/PNG'); $oMap->outputformat->set('mimetype','image/png'); $oMap->outputformat->set('imagemode',MS_IMAGEMODE_RGBA); $oMap->outputformat->set('extension','png'); $oMap->outputformat->set('transparent',MS_TRUE); I've experienced for some time with the following directive, trying to actually invoke the correct outputformat $oMap->selectoutputformat("png"); But to no avail. The maps that derive from this script clearly use the GD driver. When I saved the generated map-file to the filesystem I found the following line in the map section: IMAGETYPE gif I am using MapServer, Mapscript 5.6.6., PHP 5.3.3 on OpenSuse 11.3 Maybe someone could share some mapscript code or has some hints how to actually return AGG rendered maps. Thanks, Michael -- ----------------------------------------------------------- Michael Schulz From iacovlev.pavel at gmail.com Tue Feb 15 03:53:24 2011 From: iacovlev.pavel at gmail.com (Pavel Iacovlev) Date: Tue, 15 Feb 2011 13:53:24 +0200 Subject: [mapserver-users] mapscript php with agg rendering? In-Reply-To: References: Message-ID: Use the predefined one: $map->selectOutputFormat('AGGPNG24'); On Tue, Feb 15, 2011 at 1:37 PM, Michael Schulz wrote: > Hi mapservers, > > I have a question regarding the AGG rendering when creating a map > completly from php-mapscript. In the script I (think I) am setting all > the required parameters for the map to be rendered with AGG using > 24bit: > > $oMap=ms_newMapObjFromString("MAP END"); > ... > > $oMap->outputformat->set('name','png'); > $oMap->outputformat->set('driver','AGG/PNG'); > $oMap->outputformat->set('mimetype','image/png'); > $oMap->outputformat->set('imagemode',MS_IMAGEMODE_RGBA); > $oMap->outputformat->set('extension','png'); > $oMap->outputformat->set('transparent',MS_TRUE); > > I've experienced for some time with the following directive, trying to > actually invoke the correct outputformat > $oMap->selectoutputformat("png"); > > But to no avail. The maps that derive from this script clearly use the > GD driver. When I saved the generated map-file to the filesystem I > found the following line in the map section: > > IMAGETYPE gif > > I am using MapServer, Mapscript 5.6.6., PHP 5.3.3 on OpenSuse 11.3 > > Maybe someone could share some mapscript code or has some hints how to > actually return AGG rendered maps. > > Thanks, Michael > > -- > ----------------------------------------------------------- > Michael Schulz > _______________________________________________ > 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 mandschulz at googlemail.com Tue Feb 15 05:56:07 2011 From: mandschulz at googlemail.com (Michael Schulz) Date: Tue, 15 Feb 2011 14:56:07 +0100 Subject: [mapserver-users] mapscript php with agg rendering? In-Reply-To: References: Message-ID: Hi, yeah, unfortunately I tried that one already, but it didn't work either. Although "IMAGETYPE aggpng24" now shows up in the saved mapfile, but the rendered output is still definitely GD and not AGG. I found this in trac http://trac.osgeo.org/mapserver/ticket/2813, it's a bit old but that seems exactly my problem, only the solution doesn't workforme. Thx, Michael 2011/2/15 Pavel Iacovlev : > Use the predefined one: > $map->selectOutputFormat('AGGPNG24'); > > On Tue, Feb 15, 2011 at 1:37 PM, Michael Schulz > wrote: >> >> Hi mapservers, >> >> I have a question regarding the AGG rendering when creating a map >> completly from php-mapscript. In the script I (think I) am setting all >> the required parameters for the map to be rendered with AGG using >> 24bit: >> >> $oMap=ms_newMapObjFromString("MAP END"); >> ... >> >> $oMap->outputformat->set('name','png'); >> $oMap->outputformat->set('driver','AGG/PNG'); >> $oMap->outputformat->set('mimetype','image/png'); >> $oMap->outputformat->set('imagemode',MS_IMAGEMODE_RGBA); >> $oMap->outputformat->set('extension','png'); >> $oMap->outputformat->set('transparent',MS_TRUE); >> >> I've experienced for some time with the following directive, trying to >> actually invoke the correct outputformat >> $oMap->selectoutputformat("png"); >> >> But to no avail. The maps that derive from this script clearly use the >> GD driver. When I saved the generated map-file to the filesystem I >> found the following line in the map section: >> >> IMAGETYPE gif >> >> I am using MapServer, Mapscript 5.6.6., PHP 5.3.3 on OpenSuse 11.3 >> >> Maybe someone could share some mapscript code or has some hints how to >> actually return AGG rendered maps. >> >> Thanks, Michael >> >> -- >> ----------------------------------------------------------- >> Michael Schulz >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- ----------------------------------------------------------- Michael Schulz Christoph-Mang-Str. 5 D-79100 Freiburg From iacovlev.pavel at gmail.com Tue Feb 15 06:16:00 2011 From: iacovlev.pavel at gmail.com (Pavel Iacovlev) Date: Tue, 15 Feb 2011 16:16:00 +0200 Subject: [mapserver-users] mapscript php with agg rendering? In-Reply-To: References: Message-ID: Can you post your .php file ? On Tue, Feb 15, 2011 at 3:56 PM, Michael Schulz wrote: > Hi, > > yeah, unfortunately I tried that one already, but it didn't work > either. Although "IMAGETYPE aggpng24" now shows up in the saved > mapfile, but the rendered output is still definitely GD and not AGG. > > I found this in trac http://trac.osgeo.org/mapserver/ticket/2813, it's > a bit old but that seems exactly my problem, only the solution doesn't > workforme. > > Thx, Michael > > 2011/2/15 Pavel Iacovlev : > > Use the predefined one: > > $map->selectOutputFormat('AGGPNG24'); > > > > On Tue, Feb 15, 2011 at 1:37 PM, Michael Schulz < > mandschulz at googlemail.com> > > wrote: > >> > >> Hi mapservers, > >> > >> I have a question regarding the AGG rendering when creating a map > >> completly from php-mapscript. In the script I (think I) am setting all > >> the required parameters for the map to be rendered with AGG using > >> 24bit: > >> > >> $oMap=ms_newMapObjFromString("MAP END"); > >> ... > >> > >> $oMap->outputformat->set('name','png'); > >> $oMap->outputformat->set('driver','AGG/PNG'); > >> $oMap->outputformat->set('mimetype','image/png'); > >> $oMap->outputformat->set('imagemode',MS_IMAGEMODE_RGBA); > >> $oMap->outputformat->set('extension','png'); > >> $oMap->outputformat->set('transparent',MS_TRUE); > >> > >> I've experienced for some time with the following directive, trying to > >> actually invoke the correct outputformat > >> $oMap->selectoutputformat("png"); > >> > >> But to no avail. The maps that derive from this script clearly use the > >> GD driver. When I saved the generated map-file to the filesystem I > >> found the following line in the map section: > >> > >> IMAGETYPE gif > >> > >> I am using MapServer, Mapscript 5.6.6., PHP 5.3.3 on OpenSuse 11.3 > >> > >> Maybe someone could share some mapscript code or has some hints how to > >> actually return AGG rendered maps. > >> > >> Thanks, Michael > >> > >> -- > >> ----------------------------------------------------------- > >> Michael Schulz > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > -- > ----------------------------------------------------------- > Michael Schulz > > Christoph-Mang-Str. 5 > D-79100 Freiburg > _______________________________________________ > 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 brfr at metrico.lu Tue Feb 15 06:35:09 2011 From: brfr at metrico.lu (Frank Broniewski) Date: Tue, 15 Feb 2011 15:35:09 +0100 Subject: [mapserver-users] WMS SLD Troubles In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D037AF0E4@KS-EVS1.smi.sachsen.de> References: <4D4FC235.1050803@metrico.lu><4D5159D5.7010508@dmsolutions.ca> <4D524DDE.30801@metrico.lu><4D53EF70.5080409@metrico.lu> <4D5501B2.9040704@metrico.lu> <56B587E7C40D2F43B54FDC1BA897AC6D037AF0E4@KS-EVS1.smi.sachsen.de> Message-ID: <4D5A8F1D.8040003@metrico.lu> Thank you for the information. I will have a look and see what I can find out. I hesitate to compile mapscript by myself, I like my package manager ;-) Frank Am 14.02.2011 11:58, schrieb Eichner, Andreas - SID-NLKM: > > > Hi, > > it looks like the Python MapScript module is compiled against a different regex libary than the Python interpreter uses. The "premature end of script headers" is usually caused by a SIGSEGV where the script gets killed before being able to send any headers. I would suggest to build python-mapscript on your own. > > HTH > > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Frank Broniewski > Gesendet: Freitag, 11. Februar 2011 10:30 > An: mapserver-users at lists.osgeo.org > Betreff: Re: [mapserver-users] WMS SLD Troubles > > Ok, I've found a problem with the parsing of OWSRequest.setParameter() > > > My code: > > ... > > elif request.method == 'GET': > logging.debug("%s: Request method is GET" % > datetime.datetime.now()) > for key, value in request.args.items(): > if key.lower() == 'sld': > logging.debug("%s: Escaping %s" % > (datetime.datetime.now(), key)) > logging.debug("%s: Value is %s" % > (datetime.datetime.now(), value)) > value = urllib.quote_plus(value) > g.ows_request.setParameter(key, value) > > if key.lower() == 'sld': > value = g.ows_request.getValueByName(key) > logging.debug("%s: Loaded Param %s" % > (datetime.datetime.now(), value)) > > mapscript.msIO_installStdoutToBuffer() > > success = g.ows_map.OWSDispatch(g.ows_request) > > ... > > > What I'm basically doing here is setting the request parameters with > setParameter on the ows_reqeuest object. When there is _no_ sld > parameter in the request, escaping is not necessary. Once there is a sld > request parameter, mapscript crashes when doing setParameter('SLD', > 'http://192.168.0.111:8502/sld/style.sld') > > > [Fri Feb 11 11:10:32 2011] [error] [client 192.168.0.2] success = > g.ows_map.OWSDispatch(g.ows_request) > [Fri Feb 11 11:10:32 2011] [error] [client 192.168.0.2] File > "/usr/lib/python2.5/site-packages/mapscript.py", line 1515, in OWSDispatch > [Fri Feb 11 11:10:32 2011] [error] [client 192.168.0.2] def > OWSDispatch(*args): return _mapscript.mapObj_OWSDispatch(*args) > [Fri Feb 11 11:10:32 2011] [error] [client 192.168.0.2] MapServerError: > msEvalRegex(): Regular expression error. String failed expression test. > [Fri Feb 11 11:10:32 2011] [error] [client 192.168.0.2] msEvalRegex(): > Regular expression error. String failed expression test. > > > Using urllib.quote_plus I escaped the SLD URL back to a web > representation and set it with setParameter. > > SLD=http%3A%2F%2F192.168.0.111%3A8502%2Fsld%2Fstyle.sld > request.args: > Key: SLD > Value: http://192.168.0.111:8502/sld/style.sld > Quoted Value: http%3A%2F%2F192.168.0.111%3A8502%2Fsld%2Fstyle.sld > Loaded Param http%3A%2F%2F192.168.0.111%3A8502%2Fsld%2Fstyle.sld > > > > Unfortunately quoting does not help, but the error this time is less > clear than the one before: > > [Fri Feb 11 11:11:51 2011] [error] [client 192.168.0.2] Premature end of > script headers: gishosting.wsgi > > > the mapserver error log (debug 5) shows also no entry, so I am > completely clueless what's going wrong here. > > > Does someone have a clue whats going on there? Datasource is a Postgis > database (OpenStreetMap data) which works without the SLD parameter. > > System is a Ubuntu Hardy 8.04 with the > deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu hardy main > deb-src http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu > hardy main sources > > /usr/lib/cgi-bin/mapserv -v > MapServer version 5.6.6 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG 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 > SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE > > dpkg -l > ||/ Name Version Description > +++-==============-==============-============================================ > ii apache2 2.2.8-1ubuntu0 Next generation, scalable, extendable > web se > ii python-mapscri 5.6.6-2~hardy1 Python library for MapServer > ii mapserver-bin 5.6.6-2~hardy1 MapServer utilities > ii cgi-mapserver 5.6.6-2~hardy1 CGI executable for MapServer > > Python 2.5.2 (r252:60911, Jan 20 2010, 23:14:04) > And self compiled libapache2-mod-wsgi > > > Frank > > > > > Am 10.02.2011 15:00, schrieb Frank Broniewski: >> Ok, we've narrowed it down a bit. When we use the cgi-mapserver the SLD >> styling works, so the issue seems to be with (python) mapscript ... >> I will investigate further >> >> Frank >> >> >> Am 09.02.2011 09:18, schrieb Frank Broniewski: >>> Hello, >>> >>> thank you for your kind help :-) I've put the requested informations >>> below. >>> >>> >>> Frank >>> >>> >>> INFO: >>> >>> we're using >>> /usr/lib/cgi-bin/mapserv -v >>> MapServer version 5.6.6 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >>> OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG 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 >>> SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL >>> INPUT=SHAPEFILE >>> on Ubuntu 8.04 with the ubuntu-gis ppa. >>> >>> >>> >>> >>> Original layer definition: >>> >>> LAYER >>> NAME "post" >>> STATUS Off >>> CONNECTIONTYPE Postgis >>> CONNECTION "host=localhost dbname=osm user= password= port=5432" >>> DATA "nway FROM >>> (SELECT way as nway, osm_id, amenity, name >>> FROM planet_osm_point >>> WHERE amenity='post_box' OR amenity='post_office' >>> ) >>> as foo using unique osm_id using SRID=900913" >>> TYPE Point >>> PROCESSING "CLOSE_CONNECTION=DEFER" >>> CLASSITEM "amenity" >>> DUMP true >>> >>> # --------------------------------------------------------------- >>> # Projection configuration >>> # --------------------------------------------------------------- >>> INCLUDE "/usr/local/mapconf/share/projections/google.map" >>> >>> METADATA >>> # lots of metadata .... >>> END >>> END >>> >>> >>> >>> >>> >>> >>> the SLD: >>> >>> post >>> >>> Post >>> >>> >>> >>> >>> amenity >>> post_box >>> >>> >>> >>> >>> >>> >> xlink:type="simple" >>> >>> xlink:href="http://192.168.0.111:8502/sld/img/briefkasten.png" /> >>> image/png >>> >>> 40 >>> >>> >>> >>> >>> >>> >>> amenity >>> post_office >>> >>> >>> >>> >>> >>> >> xlink:type="simple" >>> >>> xlink:href="http://192.168.0.111:8502/sld/img/posthorn.png" /> >>> image/png >>> >>> 40 >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> the generated map file: >>> LAYER >>> CLASSITEM "amenity" >>> CONNECTION "host=localhost dbname=osm user= password= port=5432" >>> CONNECTIONTYPE POSTGIS >>> DATA "nway FROM >>> (SELECT way as nway, osm_id, amenity, name >>> FROM planet_osm_point >>> WHERE amenity='post_box' >>> OR amenity='post_office' >>> ) >>> as foo using unique osm_id using SRID=900913" >>> DUMP TRUE >>> METADATA >>> # metadata >>> END >>> NAME "post" >>> PROCESSING "CLOSE_CONNECTION=DEFER" >>> PROJECTION >>> "proj=merc" >>> "a=6378137" >>> "b=6378137" >>> "lat_ts=0" >>> "lon_0=0" >>> "x_0=0" >>> "y_0=0" >>> "k=1" >>> "nadgrids=@null" >>> "units=m" >>> "no_defs" >>> END >>> STATUS ON >>> TYPE POINT >>> UNITS METERS >>> CLASS >>> NAME "Unknown" >>> EXPRESSION ("[amenity]" = "post_box") >>> STYLE >>> ANGLE 360 >>> COLOR 0 0 0 >>> SIZE 40 >>> SYMBOL "http://192.168.0.111:8502/sld/img/briefkasten.png" >>> WIDTH 1 >>> END >>> END >>> END >>> >>> >>> >>> >>> Am 08.02.2011 15:57, schrieb Yewondwossen Assefa: >>>> What version of MapServer? >>>> >>>> Also, what is the part in the map file that is causing the problem: >>>> * if you remove the EXPRESSION ("[amenity]" = "post_box") from the >>>> generated map, will that work >>>> * Is the layer's FILTER element set (on the generated map)? If so what >>>> is the value? >>>> >>>> A full layer definition in the generated map would be useful. A full sld >>>> might also help. >>>> >>>> regards, >>>> >>>> >>>> On 07/02/2011 4:58 AM, Frank Broniewski wrote: >>>>> Hello, >>>>> >>>>> We're using a OpenStreetMap Postgis database as a source for our >>>>> geo-servers. We want to provide WMS and WFS services on the data. In >>>>> order to do the styling only once, we are using SLDs, which works >>>>> mostly fine. >>>>> >>>>> One of our layers does not render as a WMS, it throws a >>>>> "msEvalRegex(): Regular expression error. String failed expression >>>>> test." Error during execution. >>>>> >>>>> We identified the layer, and it's the one rendering post boxes. The >>>>> corresponding SLD definition is using a filter: >>>>> >>>>> >>>>> >>>>> >>>>> amenity >>>>> post_office >>>>> >>>>> >>>>> >>>>> >>>>> Using debug-level 5, the mapfile after SLD application looks like >>>>> >>>>> # ... >>>>> # more definitions >>>>> # ... >>>>> CLASSITEM "amenity" >>>>> DATA "nway FROM >>>>> (SELECT way as nway, osm_id, amenity, name >>>>> FROM planet_osm_point >>>>> WHERE amenity='post_box' >>>>> OR amenity='post_office' >>>>> ) >>>>> as foo using unique osm_id using SRID=900913" >>>>> # ... >>>>> # more definitions >>>>> # ... >>>>> CLASS >>>>> NAME "Unknown" >>>>> EXPRESSION ("[amenity]" = "post_box") >>>>> STYLE >>>>> ANGLE 360 >>>>> COLOR 0 0 0 >>>>> SIZE 40 >>>>> SYMBOL "http://192.168.0.111:8502/sld/img/briefkasten.png" >>>>> WIDTH 1 >>>>> END >>>>> END >>>>> >>>>> >>>>> We simply can't figure out, what might be the problem here. The whole >>>>> issue seem to be related to the filter element, removing it makes the >>>>> layer render. Using the generated map layer, rendering fails with the >>>>> same error. >>>>> So I would be happy if someone with more experience with SLDs can give >>>>> me a hint about whats going wrong here. >>>>> >>>>> >>>>> 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 mandschulz at googlemail.com Tue Feb 15 06:52:14 2011 From: mandschulz at googlemail.com (Michael Schulz) Date: Tue, 15 Feb 2011 15:52:14 +0100 Subject: [mapserver-users] mapscript php with agg rendering? In-Reply-To: References: Message-ID: Hi, I am working on a stripped-down version, to rule out other interferences and then to post it... Cheers, Michael 2011/2/15 Pavel Iacovlev : > Can you post your .php file ? > > On Tue, Feb 15, 2011 at 3:56 PM, Michael Schulz > wrote: >> >> Hi, >> >> yeah, unfortunately I tried that one already, but it didn't work >> either. Although "IMAGETYPE aggpng24" now shows up in the saved >> mapfile, but the rendered output is still definitely GD and not AGG. >> >> I found this in trac http://trac.osgeo.org/mapserver/ticket/2813, it's >> a bit old but that seems exactly my problem, only the solution doesn't >> workforme. >> >> Thx, Michael >> >> 2011/2/15 Pavel Iacovlev : >> > Use the predefined one: >> > $map->selectOutputFormat('AGGPNG24'); >> > >> > On Tue, Feb 15, 2011 at 1:37 PM, Michael Schulz >> > >> > wrote: >> >> >> >> Hi mapservers, >> >> >> >> I have a question regarding the AGG rendering when creating a map >> >> completly from php-mapscript. In the script I (think I) am setting all >> >> the required parameters for the map to be rendered with AGG using >> >> 24bit: >> >> >> >> $oMap=ms_newMapObjFromString("MAP END"); >> >> ... >> >> >> >> $oMap->outputformat->set('name','png'); >> >> $oMap->outputformat->set('driver','AGG/PNG'); >> >> $oMap->outputformat->set('mimetype','image/png'); >> >> $oMap->outputformat->set('imagemode',MS_IMAGEMODE_RGBA); >> >> $oMap->outputformat->set('extension','png'); >> >> $oMap->outputformat->set('transparent',MS_TRUE); >> >> >> >> I've experienced for some time with the following directive, trying to >> >> actually invoke the correct outputformat >> >> $oMap->selectoutputformat("png"); >> >> >> >> But to no avail. The maps that derive from this script clearly use the >> >> GD driver. When I saved the generated map-file to the filesystem I >> >> found the following line in the map section: >> >> >> >> IMAGETYPE gif >> >> >> >> I am using MapServer, Mapscript 5.6.6., PHP 5.3.3 on OpenSuse 11.3 >> >> >> >> Maybe someone could share some mapscript code or has some hints how to >> >> actually return AGG rendered maps. >> >> >> >> Thanks, Michael >> >> >> >> -- >> >> ----------------------------------------------------------- >> >> Michael Schulz >> >> _______________________________________________ >> >> mapserver-users mailing list >> >> mapserver-users at lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > >> >> >> >> -- >> ----------------------------------------------------------- >> Michael Schulz >> >> Christoph-Mang-Str. 5 >> D-79100 Freiburg >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- ----------------------------------------------------------- Michael Schulz Christoph-Mang-Str. 5 D-79100 Freiburg From gregor at hostgis.com Tue Feb 15 08:09:04 2011 From: gregor at hostgis.com (Gregor at HostGIS) Date: Tue, 15 Feb 2011 08:09:04 -0800 Subject: [mapserver-users] mapscript php with agg rendering? In-Reply-To: References: Message-ID: <4D5AA520.6030603@hostgis.com> Hey there. I had some issues with the imagetype settings using PHP MapScript, but we do use PNG24. For what it's worth, here's the outputformat section of our PHP: $map->imagecolor->setRGB(255,255,255); $map->outputformat->set('name','gif'); $map->outputformat->set('mimetype','image/png; mode=24bit'); $map->outputformat->set('driver','AGG/PNG'); $map->outputformat->set('imagemode',MS_IMAGEMODE_RGBA); $map->outputformat->set('transparent',MS_OFF); $map->outputformat->set('extension','png'); $map->outputformat->setOption('INTERLACE','OFF'); //$map->outputformat->setOption('QUANTIZE_FORCE','ON'); //$map->outputformat->setOption('QUANTIZE_COLORS',256); For reasons which now elude my memory (this was written some 3 years ago) we had to use 'gif' as the output format, then simply reconfigure what 'gif' means. This may have been a bug specific to our own version of MapServer back in the day, but if it helps, I'm glad. -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX "No one cares if you can back up ? only if you can recover." From Steve.Lime at state.mn.us Tue Feb 15 08:00:07 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 15 Feb 2011 10:00:07 -0600 Subject: [mapserver-users] Buffer features? In-Reply-To: References: <4EFF8BB964547748A07CA32961810C041A036DD9@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: I?d approach RFC 22, especially the transform piece, differently now with the parser changes implemented in 6.0. We now have (with GEOS enabled) an expression syntax available to support things like buffering, convex hull, differences, etc? or combinations thereof. I?d implement layer-level GEOMTRANSFORMs in that case using these expressions. On the query result side of things I?d consider adding a layer template as a layer option. This would kinda work like the approach outlined for Bob. You?d define a presentation template layer (no DATA value) and run the query results through it instead of the regular layer (for certain querymap types, e.g. highlight). Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Tamas Szekeres Sent: Tuesday, February 15, 2011 3:06 AM To: Bistrais, Bob Cc: mapserver-users Subject: Re: [mapserver-users] Buffer features? In accordance with the problem mentioned, I recall a resonable enhancement as described in RFC22a which would provide an option to configure all the stuff in the mapfile (not requiring MapScript) and would make it easier to customize the query maps as well. With this enhancement 2 new layer data providers could be implemented, like: 1. CONNECTIONTYPE=QUERYRESULT would provide to represent the result sets of one layer in a new layer. 2. CONNECTIONTYPE=TRANSFORM would provide simple geometry transformations on a source layer and then provide the modified features as a new layer. By chaining these layers together in a map configuration we could get such results as included in the RFC document. I consider this kind of enhancement could be implemented within the scope of 1-2 days of work (comparable with a fully elaborated MapScript solution providing the same) Best regards, Tamas 2011/2/14 Bistrais, Bob > This question may have come up before, but I haven?t found it in the archives. I would like to take a selected feature and buffer it to a specified distance. I know it?s possible to do a queryByPoint with a buffer distance, but I need to create an actual buffer shape to display on the map. Has anyone done something like this before? Does MapServer have this capability? _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at osgis.nl Tue Feb 15 08:25:33 2011 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Tue, 15 Feb 2011 17:25:33 +0100 (CET) Subject: [mapserver-users] strange raster problem Message-ID: <62804.145.50.39.11.1297787133.squirrel@webmail.hostingdiscounter.nl> Hi list, we have a strange problem with an ArcSDE raster layer. At certain zoom levels the pixels are very coarse. Zooming out one level the pixels are okay, however the colour is not. You can see this in the following images, the first one is zoomed out and everything is okay (except the colours since the image should be mostly black): http://www.osgis.nl/download/mapserver/rws1.png However when zooming in one level, we obtain the following situation: http://www.osgis.nl/download/mapserver/rws2.png Does anyone have an explanation for this? Using Mapserver trunk from about 3 months back and GDAL 1.7.2. This is the info from ArcCatalog about the raster layer: BODEM.DNZ_GRINDPERCENTAGE_TOT_15CMSDE Rastergeodatabase.ad.rws.nlRWS_LEZEN5151\tcpSDE.DEFAULT1161, 20211250.00000000000011, 2508.95 MBSDRcontinuousfloating point32 Bit-3.402823E+38absentlevel: 4, resampling: Nearest NeighborLZ776199911.5560208503459782.82782689098750032.827826891095694661.5560208503ETRS_1989_UTM_Zone_31NMeter (1.000000)Degree (0.017453292519943299)500000030.99960D_ETRS_1989skipped columns:1, rows:1, ignored value: 0.559.808799743652340.8319692929200052.8258454488402290 The LAYER definition is: LAYER CONNECTIONTYPE SDE DATA "SDE:xxxxx.ad.rws.nl,port:5151,5151,RWS_LEZEN,XXXXXX,BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM,RASTER" DUMP TRUE EXTENT 459782.827826891 5694661.55602085 750032.827826891 6199911.55602085 NAME "BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM_5925" PROCESSING 'CLOSE_CONNECTION=DEFER' PROCESSING 'DITHER=NO' PROCESSING 'NODATA=NODATA' PROCESSING 'SCALE_1=0.5,59.8087997436523' PROCESSING 'BANDS=1' PROCESSING 'LOAD_FULL_RES_IMAGE=NO' PROCESSING 'LOAD_WHOLE_IMAGE=NO' SIZEUNITS PIXELS UNITS METERS STATUS ON TEMPLATE 'blank.html' TOLERANCE 5 TOLERANCEUNITS PIXELS TYPE RASTER PROJECTION 'init=epsg:25831' END METADATA 'wms_title' 'Grindpercentage, stretched' 'wms_layer_group' '/Grindpercentage_ NCP' 'wms_metadataurl_format' 'text/xml' 'wms_metadataurl_href' 'http://test.intranet.rijkswaterstaat.nl/services/geoservices-update/metadata/BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM' 'wms_metadataurl_type' 'TC211' 'wcs_abstract' 'noordzee grind en zand raster' 'wcs_bandcount' '1' # 'wcs_description' 'noordzee grind en zand raster' # Optional 'wcs_extent' '459782.827826891,5694661.55602085,750032.827826891,6199911.55602085' 'wcs_formats' 'GTiff,MrSID,ECW' 'wcs_keywords' 'RWS,Rijkswaterstaat,noordzee grind en zand raster,BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM_5925' 'wcs_label' 'Grindpercentage, stretched' # Required 'wcs_metadatalink_format' 'text/xml' 'wcs_metadatalink_href' 'http://test.intranet.rijkswaterstaat.nl/services/geoservices-update/metadata/BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM' 'wcs_metadatalink_type' 'TC211' 'wcs_name' 'BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM_5925' # 'wcs_nativeformat' 'Raster' # Optional 'wcs_rangeset_label' 'Grindpercentage, stretched' 'wcs_rangeset_name' 'BODEM.DNZ_GRINDPERCENTAGE_TOT_15CM_5925' END PROCESSING 'SCALE_BUCKETS=256' CLASS STYLE COLORRANGE 0 0 0 255 255 255 DATARANGE -4.81972160476045 6.48366019060046 RANGEITEM "pixel" END END END TIA. Best regards, Bart From jean-francois at gigand.fr Tue Feb 15 08:29:18 2011 From: jean-francois at gigand.fr (=?ISO-8859-1?Q?Jean=2DFran=E7ois_Gigand?=) Date: Tue, 15 Feb 2011 17:29:18 +0100 Subject: [mapserver-users] mapscript php with agg rendering? In-Reply-To: <4D5AA520.6030603@hostgis.com> References: <4D5AA520.6030603@hostgis.com> Message-ID: I had the same problem, with PHP MapScript. In my case, I needed to let MapServer handle the WMS request (msMap->owsDispatch() or CGI with generated MapFile), so I would have no control over the output format selection (which depends of the WMS request). It seemed that MapScript does not give control over the list of output formats. Eventually, as a workaround, I define my output formats as a map string and create the map object with ms_newMapObjFromString() rather than ms_newMapObj(). Here is my code : -------------------- $formats = array ('aggpng24' => array('driver' => 'AGG/PNG', 'imagemode' => 'RGB', 'mimetype' => 'image/png', 'extension' => 'png'), 'aggjpeg' => array('driver' => 'AGG/JPEG', 'imagemode' => 'RGB', 'mimetype' => 'image/jpeg', 'extension' => 'jpg'), 'gdtiff' => array('driver' => 'GDAL/GTiff', 'imagemode' => 'RGB', 'mimetype' => 'image/tiff', 'extension' => 'tif'), 'gdgif' => array('driver' => 'GD/GIF', 'imagemode' => 'PC256', 'mimetype' => 'image/gif', 'extension' => 'gif'), ); $mapStrContent = array('MAP'); foreach ($formats as $name => $format) { $mapStrContent[] = 'OUTPUTFORMAT'; $mapStrContent[] = 'NAME '.$name; foreach ($format as $prop => $val) { $mapStrContent[] = strtoupper($prop).' "'.$val.'"'; } $mapStrContent[] = 'END'; } $mapStrContent[] = 'END'; $msMap = ms_newMapObjFromString(implode("\n", $mapStrContent)); -------------------- To me, this is a bug, as I thought that anything definable in a map file should be definable thought MapScript as well. If there is a full MapScript solution for this need, I'm interested too. Jeff Gigand 2011/2/15 Gregor at HostGIS : > Hey there. I had some issues with the imagetype settings using PHP > MapScript, but we do use PNG24. For what it's worth, here's the outputformat > section of our PHP: > > $map->imagecolor->setRGB(255,255,255); > $map->outputformat->set('name','gif'); > $map->outputformat->set('mimetype','image/png; mode=24bit'); > $map->outputformat->set('driver','AGG/PNG'); > $map->outputformat->set('imagemode',MS_IMAGEMODE_RGBA); > $map->outputformat->set('transparent',MS_OFF); > $map->outputformat->set('extension','png'); > $map->outputformat->setOption('INTERLACE','OFF'); > //$map->outputformat->setOption('QUANTIZE_FORCE','ON'); > //$map->outputformat->setOption('QUANTIZE_COLORS',256); > > For reasons which now elude my memory (this was written some 3 years ago) we > had to use 'gif' as the output format, then simply reconfigure what 'gif' > means. This may have been a bug specific to our own version of MapServer > back in the day, but if it helps, I'm glad. > > -- > HostGIS, Open Source solutions for the global GIS community > Greg Allensworth - SysAdmin, Programmer, GIS Person, Security > ? Network+ ? Server+ ? A+ ? Security+ ? Linux+ > ? PHP ? PostgreSQL ? MySQL ? DHTML/JavaScript/AJAX > > "No one cares if you can back up ? only if you can recover." > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From mandschulz at googlemail.com Tue Feb 15 08:50:39 2011 From: mandschulz at googlemail.com (Michael Schulz) Date: Tue, 15 Feb 2011 17:50:39 +0100 Subject: [mapserver-users] mapscript php with agg rendering? In-Reply-To: References: <4D5AA520.6030603@hostgis.com> Message-ID: Jean-Francois, you saved my day :-) That got it working... I definitely think there is something wrong when trying to create an outputformat with php/mapscript from scratch. I'll try to narrow this down a bit and maybe open the mentioned ticket again. Thanks, Michael 2011/2/15 Jean-Fran?ois Gigand : > I had the same problem, with PHP MapScript. > > In my case, I needed to let MapServer handle the WMS request > (msMap->owsDispatch() or CGI with generated MapFile), so I would have > no control over the output format selection (which depends of the WMS > request). > > It seemed that MapScript does not give control over the list of output formats. > > Eventually, as a workaround, I define my output formats as a map > string and create the map object with ms_newMapObjFromString() rather > than ms_newMapObj(). > > Here is my code : > -------------------- > ? ?$formats = array > ? ? ?('aggpng24' => array('driver' => 'AGG/PNG', > ? ? ? ? ? ? ? ? ? ? ? ? ? 'imagemode' => 'RGB', > ? ? ? ? ? ? ? ? ? ? ? ? ? 'mimetype' => 'image/png', > ? ? ? ? ? ? ? ? ? ? ? ? ? 'extension' => 'png'), > ? ? ? 'aggjpeg' => array('driver' => 'AGG/JPEG', > ? ? ? ? ? ? ? ? ? ? ? ? ?'imagemode' => 'RGB', > ? ? ? ? ? ? ? ? ? ? ? ? ?'mimetype' => 'image/jpeg', > ? ? ? ? ? ? ? ? ? ? ? ? ?'extension' => 'jpg'), > ? ? ? 'gdtiff' => array('driver' => 'GDAL/GTiff', > ? ? ? ? ? ? ? ? ? ? ? ? 'imagemode' => 'RGB', > ? ? ? ? ? ? ? ? ? ? ? ? 'mimetype' => 'image/tiff', > ? ? ? ? ? ? ? ? ? ? ? ? 'extension' => 'tif'), > ? ? ? 'gdgif' => array('driver' => 'GD/GIF', > ? ? ? ? ? ? ? ? ? ? ? ?'imagemode' => 'PC256', > ? ? ? ? ? ? ? ? ? ? ? ?'mimetype' => 'image/gif', > ? ? ? ? ? ? ? ? ? ? ? ?'extension' => 'gif'), > ? ? ? ); > ? ?$mapStrContent = array('MAP'); > ? ?foreach ($formats as $name => $format) { > ? ? ?$mapStrContent[] = 'OUTPUTFORMAT'; > ? ? ?$mapStrContent[] = 'NAME '.$name; > ? ? ?foreach ($format as $prop => $val) { > ? ? ? ?$mapStrContent[] = strtoupper($prop).' "'.$val.'"'; > ? ? ?} > ? ? ?$mapStrContent[] = 'END'; > ? ?} > ? ?$mapStrContent[] = 'END'; > ? ?$msMap = ms_newMapObjFromString(implode("\n", $mapStrContent)); > -------------------- > > To me, this is a bug, as I thought that anything definable in a map > file should be definable thought MapScript as well. > If there is a full MapScript solution for this need, I'm interested too. > > > Jeff Gigand > > > 2011/2/15 Gregor at HostGIS : >> Hey there. I had some issues with the imagetype settings using PHP >> MapScript, but we do use PNG24. For what it's worth, here's the outputformat >> section of our PHP: >> >> $map->imagecolor->setRGB(255,255,255); >> $map->outputformat->set('name','gif'); >> $map->outputformat->set('mimetype','image/png; mode=24bit'); >> $map->outputformat->set('driver','AGG/PNG'); >> $map->outputformat->set('imagemode',MS_IMAGEMODE_RGBA); >> $map->outputformat->set('transparent',MS_OFF); >> $map->outputformat->set('extension','png'); >> $map->outputformat->setOption('INTERLACE','OFF'); >> //$map->outputformat->setOption('QUANTIZE_FORCE','ON'); >> //$map->outputformat->setOption('QUANTIZE_COLORS',256); >> >> For reasons which now elude my memory (this was written some 3 years ago) we >> had to use 'gif' as the output format, then simply reconfigure what 'gif' >> means. This may have been a bug specific to our own version of MapServer >> back in the day, but if it helps, I'm glad. >> >> -- >> HostGIS, Open Source solutions for the global GIS community >> Greg Allensworth - SysAdmin, Programmer, GIS Person, Security >> ? Network+ ? Server+ ? A+ ? Security+ ? Linux+ >> ? PHP ? PostgreSQL ? MySQL ? DHTML/JavaScript/AJAX >> >> "No one cares if you can back up ? only if you can recover." >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > -- ----------------------------------------------------------- Michael Schulz Christoph-Mang-Str. 5 D-79100 Freiburg From szekerest at gmail.com Tue Feb 15 09:11:42 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 15 Feb 2011 18:11:42 +0100 Subject: [mapserver-users] Buffer features? In-Reply-To: References: <4EFF8BB964547748A07CA32961810C041A036DD9@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: Steve, Did you mean to achieve something like?: LAYER CONNECTIONTYPE TRANSFORM CONNECTION sourcelayer # reference to another layer NAME transformlayer PROCESSING "TRANSFORM=(buffer([shape]))" TEMPLATE query.html .... END LAYER CONNECTIONTYPE SHAPE DATA myfile.shp NAME sourcelayer .... END Which is simple and easy to implement. Best regards, Tamas 2011/2/15 Lime, Steve D (DNR) > I?d approach RFC 22, especially the transform piece, differently now with > the parser changes implemented in 6.0. We now have (with GEOS enabled) an > expression syntax available to support things like buffering, convex hull, > differences, etc? or combinations thereof. I?d implement layer-level > GEOMTRANSFORMs in that case using these expressions. > > > > On the query result side of things I?d consider adding a layer template as > a layer option. This would kinda work like the approach outlined for Bob. > You?d define a presentation template layer (no DATA value) and run the query > results through it instead of the regular layer (for certain querymap types, > e.g. highlight). > > > > Steve > > > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Tamas Szekeres > *Sent:* Tuesday, February 15, 2011 3:06 AM > *To:* Bistrais, Bob > *Cc:* mapserver-users > *Subject:* Re: [mapserver-users] Buffer features? > > > > In accordance with the problem mentioned, I recall a resonable enhancement > as described in RFC22awhich would provide an option to configure all the stuff in the mapfile (not > requiring MapScript) and would make it easier to customize the query maps as > well. > > With this enhancement 2 new layer data providers could be implemented, > like: > > 1. CONNECTIONTYPE=QUERYRESULT would provide to represent the result sets of > one layer in a new layer. > 2. CONNECTIONTYPE=TRANSFORM would provide simple geometry transformations > on a source layer and then provide the modified features as a new layer. > > By chaining these layers together in a map configuration we could get such > resultsas included in the RFC document. > > I consider this kind of enhancement could be implemented within the scope > of 1-2 days of work (comparable with a fully elaborated MapScript solution > providing the same) > > Best regards, > > Tamas > > > > 2011/2/14 Bistrais, Bob > > This question may have come up before, but I haven?t found it in the > archives. I would like to take a selected feature and buffer it to a > specified distance. I know it?s possible to do a queryByPoint with a buffer > distance, but I need to create an actual buffer shape to display on the > map. Has anyone done something like this before? Does MapServer have this > capability? > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue Feb 15 09:21:55 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 15 Feb 2011 11:21:55 -0600 Subject: [mapserver-users] Buffer features? In-Reply-To: References: <4EFF8BB964547748A07CA32961810C041A036DD9@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: Not quite, I?m thinking of a single layer setup: LAYER DATA myfile.shp # or whatever connection information is necessary TYPE POLYGON STATUS DEFAULT NAME ?buffered_shapes? GEOMTRANSFORM (buffer([shape], 500)) # buffer each shape by 500 map units # classes and styles follow TEMPLATE ?void? END The GEOMTRANSFORM would be applied as shapes are pulled from a data source so you would draw or, potentially, query the transformed shapes. The difference between a layer-level GEOMTRANSFORM and a style-level one is the coordinates they operate on. Layer-level work would be done on a raw feature in map coordinates and style-level works on pixels. We do layer-level stuff already, conceptually, in the form of projections and clipping. The GEOMTRANSFORM just provides a way of extending that work? Note this type of GEOMTRANSFORM expression is working for buffers in STYLEs in trunk (but using pixels for the moment). Steve From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Tuesday, February 15, 2011 11:12 AM To: Lime, Steve D (DNR) Cc: mapserver-users Subject: Re: [mapserver-users] Buffer features? Steve, Did you mean to achieve something like?: LAYER CONNECTIONTYPE TRANSFORM CONNECTION sourcelayer # reference to another layer NAME transformlayer PROCESSING "TRANSFORM=(buffer([shape]))" TEMPLATE query.html .... END LAYER CONNECTIONTYPE SHAPE DATA myfile.shp NAME sourcelayer .... END Which is simple and easy to implement. Best regards, Tamas 2011/2/15 Lime, Steve D (DNR) > I?d approach RFC 22, especially the transform piece, differently now with the parser changes implemented in 6.0. We now have (with GEOS enabled) an expression syntax available to support things like buffering, convex hull, differences, etc? or combinations thereof. I?d implement layer-level GEOMTRANSFORMs in that case using these expressions. On the query result side of things I?d consider adding a layer template as a layer option. This would kinda work like the approach outlined for Bob. You?d define a presentation template layer (no DATA value) and run the query results through it instead of the regular layer (for certain querymap types, e.g. highlight). Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Tamas Szekeres Sent: Tuesday, February 15, 2011 3:06 AM To: Bistrais, Bob Cc: mapserver-users Subject: Re: [mapserver-users] Buffer features? In accordance with the problem mentioned, I recall a resonable enhancement as described in RFC22a which would provide an option to configure all the stuff in the mapfile (not requiring MapScript) and would make it easier to customize the query maps as well. With this enhancement 2 new layer data providers could be implemented, like: 1. CONNECTIONTYPE=QUERYRESULT would provide to represent the result sets of one layer in a new layer. 2. CONNECTIONTYPE=TRANSFORM would provide simple geometry transformations on a source layer and then provide the modified features as a new layer. By chaining these layers together in a map configuration we could get such results as included in the RFC document. I consider this kind of enhancement could be implemented within the scope of 1-2 days of work (comparable with a fully elaborated MapScript solution providing the same) Best regards, Tamas 2011/2/14 Bistrais, Bob > This question may have come up before, but I haven?t found it in the archives. I would like to take a selected feature and buffer it to a specified distance. I know it?s possible to do a queryByPoint with a buffer distance, but I need to create an actual buffer shape to display on the map. Has anyone done something like this before? Does MapServer have this capability? _______________________________________________ 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.Bistrais at maine.gov Tue Feb 15 09:26:01 2011 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Tue, 15 Feb 2011 12:26:01 -0500 Subject: [mapserver-users] Buffer features? In-Reply-To: References: <4EFF8BB964547748A07CA32961810C041A036DD9@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4EFF8BB964547748A07CA32961810C041A036DEC@SOM-TEAQASMAIL1.som.w2k.state.me.us> Thanks everyone! I'm trying to keep up! ________________________________ From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Tuesday, February 15, 2011 12:22 PM To: Tamas Szekeres Cc: mapserver-users Subject: RE: [mapserver-users] Buffer features? Not quite, I'm thinking of a single layer setup: LAYER DATA myfile.shp # or whatever connection information is necessary TYPE POLYGON STATUS DEFAULT NAME 'buffered_shapes' GEOMTRANSFORM (buffer([shape], 500)) # buffer each shape by 500 map units # classes and styles follow TEMPLATE 'void' END The GEOMTRANSFORM would be applied as shapes are pulled from a data source so you would draw or, potentially, query the transformed shapes. The difference between a layer-level GEOMTRANSFORM and a style-level one is the coordinates they operate on. Layer-level work would be done on a raw feature in map coordinates and style-level works on pixels. We do layer-level stuff already, conceptually, in the form of projections and clipping. The GEOMTRANSFORM just provides a way of extending that work... Note this type of GEOMTRANSFORM expression is working for buffers in STYLEs in trunk (but using pixels for the moment). Steve From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Tuesday, February 15, 2011 11:12 AM To: Lime, Steve D (DNR) Cc: mapserver-users Subject: Re: [mapserver-users] Buffer features? Steve, Did you mean to achieve something like?: LAYER CONNECTIONTYPE TRANSFORM CONNECTION sourcelayer # reference to another layer NAME transformlayer PROCESSING "TRANSFORM=(buffer([shape]))" TEMPLATE query.html .... END LAYER CONNECTIONTYPE SHAPE DATA myfile.shp NAME sourcelayer .... END Which is simple and easy to implement. Best regards, Tamas 2011/2/15 Lime, Steve D (DNR) I'd approach RFC 22, especially the transform piece, differently now with the parser changes implemented in 6.0. We now have (with GEOS enabled) an expression syntax available to support things like buffering, convex hull, differences, etc... or combinations thereof. I'd implement layer-level GEOMTRANSFORMs in that case using these expressions. On the query result side of things I'd consider adding a layer template as a layer option. This would kinda work like the approach outlined for Bob. You'd define a presentation template layer (no DATA value) and run the query results through it instead of the regular layer (for certain querymap types, e.g. highlight). Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Tamas Szekeres Sent: Tuesday, February 15, 2011 3:06 AM To: Bistrais, Bob Cc: mapserver-users Subject: Re: [mapserver-users] Buffer features? In accordance with the problem mentioned, I recall a resonable enhancement as described in RFC22a which would provide an option to configure all the stuff in the mapfile (not requiring MapScript) and would make it easier to customize the query maps as well. With this enhancement 2 new layer data providers could be implemented, like: 1. CONNECTIONTYPE=QUERYRESULT would provide to represent the result sets of one layer in a new layer. 2. CONNECTIONTYPE=TRANSFORM would provide simple geometry transformations on a source layer and then provide the modified features as a new layer. By chaining these layers together in a map configuration we could get such results as included in the RFC document. I consider this kind of enhancement could be implemented within the scope of 1-2 days of work (comparable with a fully elaborated MapScript solution providing the same) Best regards, Tamas 2011/2/14 Bistrais, Bob This question may have come up before, but I haven't found it in the archives. I would like to take a selected feature and buffer it to a specified distance. I know it's possible to do a queryByPoint with a buffer distance, but I need to create an actual buffer shape to display on the map. Has anyone done something like this before? Does MapServer have this capability? _______________________________________________ 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 jean-francois at gigand.fr Tue Feb 15 09:54:21 2011 From: jean-francois at gigand.fr (=?ISO-8859-1?Q?Jean=2DFran=E7ois_Gigand?=) Date: Tue, 15 Feb 2011 18:54:21 +0100 Subject: [mapserver-users] mapscript php with agg rendering? In-Reply-To: References: <4D5AA520.6030603@hostgis.com> Message-ID: Great! Thanks for the ticket. I will also prefer to manage output formats programmatically. I will follow that. Jeff 2011/2/15 Michael Schulz : > Jean-Francois, > > you saved my day :-) That got it working... > > I definitely think there is something wrong when trying to create an > outputformat with php/mapscript from scratch. I'll try to narrow this > down a bit and maybe open the mentioned ticket again. > > Thanks, Michael > > > 2011/2/15 Jean-Fran?ois Gigand : >> I had the same problem, with PHP MapScript. >> >> In my case, I needed to let MapServer handle the WMS request >> (msMap->owsDispatch() or CGI with generated MapFile), so I would have >> no control over the output format selection (which depends of the WMS >> request). >> >> It seemed that MapScript does not give control over the list of output formats. >> >> Eventually, as a workaround, I define my output formats as a map >> string and create the map object with ms_newMapObjFromString() rather >> than ms_newMapObj(). >> >> Here is my code : >> -------------------- >> ? ?$formats = array >> ? ? ?('aggpng24' => array('driver' => 'AGG/PNG', >> ? ? ? ? ? ? ? ? ? ? ? ? ? 'imagemode' => 'RGB', >> ? ? ? ? ? ? ? ? ? ? ? ? ? 'mimetype' => 'image/png', >> ? ? ? ? ? ? ? ? ? ? ? ? ? 'extension' => 'png'), >> ? ? ? 'aggjpeg' => array('driver' => 'AGG/JPEG', >> ? ? ? ? ? ? ? ? ? ? ? ? ?'imagemode' => 'RGB', >> ? ? ? ? ? ? ? ? ? ? ? ? ?'mimetype' => 'image/jpeg', >> ? ? ? ? ? ? ? ? ? ? ? ? ?'extension' => 'jpg'), >> ? ? ? 'gdtiff' => array('driver' => 'GDAL/GTiff', >> ? ? ? ? ? ? ? ? ? ? ? ? 'imagemode' => 'RGB', >> ? ? ? ? ? ? ? ? ? ? ? ? 'mimetype' => 'image/tiff', >> ? ? ? ? ? ? ? ? ? ? ? ? 'extension' => 'tif'), >> ? ? ? 'gdgif' => array('driver' => 'GD/GIF', >> ? ? ? ? ? ? ? ? ? ? ? ?'imagemode' => 'PC256', >> ? ? ? ? ? ? ? ? ? ? ? ?'mimetype' => 'image/gif', >> ? ? ? ? ? ? ? ? ? ? ? ?'extension' => 'gif'), >> ? ? ? ); >> ? ?$mapStrContent = array('MAP'); >> ? ?foreach ($formats as $name => $format) { >> ? ? ?$mapStrContent[] = 'OUTPUTFORMAT'; >> ? ? ?$mapStrContent[] = 'NAME '.$name; >> ? ? ?foreach ($format as $prop => $val) { >> ? ? ? ?$mapStrContent[] = strtoupper($prop).' "'.$val.'"'; >> ? ? ?} >> ? ? ?$mapStrContent[] = 'END'; >> ? ?} >> ? ?$mapStrContent[] = 'END'; >> ? ?$msMap = ms_newMapObjFromString(implode("\n", $mapStrContent)); >> -------------------- >> >> To me, this is a bug, as I thought that anything definable in a map >> file should be definable thought MapScript as well. >> If there is a full MapScript solution for this need, I'm interested too. >> >> >> Jeff Gigand >> >> >> 2011/2/15 Gregor at HostGIS : >>> Hey there. I had some issues with the imagetype settings using PHP >>> MapScript, but we do use PNG24. For what it's worth, here's the outputformat >>> section of our PHP: >>> >>> $map->imagecolor->setRGB(255,255,255); >>> $map->outputformat->set('name','gif'); >>> $map->outputformat->set('mimetype','image/png; mode=24bit'); >>> $map->outputformat->set('driver','AGG/PNG'); >>> $map->outputformat->set('imagemode',MS_IMAGEMODE_RGBA); >>> $map->outputformat->set('transparent',MS_OFF); >>> $map->outputformat->set('extension','png'); >>> $map->outputformat->setOption('INTERLACE','OFF'); >>> //$map->outputformat->setOption('QUANTIZE_FORCE','ON'); >>> //$map->outputformat->setOption('QUANTIZE_COLORS',256); >>> >>> For reasons which now elude my memory (this was written some 3 years ago) we >>> had to use 'gif' as the output format, then simply reconfigure what 'gif' >>> means. This may have been a bug specific to our own version of MapServer >>> back in the day, but if it helps, I'm glad. >>> >>> -- >>> HostGIS, Open Source solutions for the global GIS community >>> Greg Allensworth - SysAdmin, Programmer, GIS Person, Security >>> ? Network+ ? Server+ ? A+ ? Security+ ? Linux+ >>> ? PHP ? PostgreSQL ? MySQL ? DHTML/JavaScript/AJAX >>> >>> "No one cares if you can back up ? only if you can recover." >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > > > > -- > ----------------------------------------------------------- > Michael Schulz > > Christoph-Mang-Str. 5 > D-79100 Freiburg > From Bob.Bistrais at maine.gov Tue Feb 15 10:29:42 2011 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Tue, 15 Feb 2011 13:29:42 -0500 Subject: [mapserver-users] Buffer features? In-Reply-To: References: <4EFF8BB964547748A07CA32961810C041A036DD9@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4EFF8BB964547748A07CA32961810C041A036DED@SOM-TEAQASMAIL1.som.w2k.state.me.us> Not to make life more difficult, but is it possible to create a multi-ring buffer, basically 3 polygons at 3 different distances from a selected feature? ________________________________ From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Tuesday, February 15, 2011 12:22 PM To: Tamas Szekeres Cc: mapserver-users Subject: RE: [mapserver-users] Buffer features? Not quite, I'm thinking of a single layer setup: LAYER DATA myfile.shp # or whatever connection information is necessary TYPE POLYGON STATUS DEFAULT NAME 'buffered_shapes' GEOMTRANSFORM (buffer([shape], 500)) # buffer each shape by 500 map units # classes and styles follow TEMPLATE 'void' END The GEOMTRANSFORM would be applied as shapes are pulled from a data source so you would draw or, potentially, query the transformed shapes. The difference between a layer-level GEOMTRANSFORM and a style-level one is the coordinates they operate on. Layer-level work would be done on a raw feature in map coordinates and style-level works on pixels. We do layer-level stuff already, conceptually, in the form of projections and clipping. The GEOMTRANSFORM just provides a way of extending that work... Note this type of GEOMTRANSFORM expression is working for buffers in STYLEs in trunk (but using pixels for the moment). Steve From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Tuesday, February 15, 2011 11:12 AM To: Lime, Steve D (DNR) Cc: mapserver-users Subject: Re: [mapserver-users] Buffer features? Steve, Did you mean to achieve something like?: LAYER CONNECTIONTYPE TRANSFORM CONNECTION sourcelayer # reference to another layer NAME transformlayer PROCESSING "TRANSFORM=(buffer([shape]))" TEMPLATE query.html .... END LAYER CONNECTIONTYPE SHAPE DATA myfile.shp NAME sourcelayer .... END Which is simple and easy to implement. Best regards, Tamas 2011/2/15 Lime, Steve D (DNR) I'd approach RFC 22, especially the transform piece, differently now with the parser changes implemented in 6.0. We now have (with GEOS enabled) an expression syntax available to support things like buffering, convex hull, differences, etc... or combinations thereof. I'd implement layer-level GEOMTRANSFORMs in that case using these expressions. On the query result side of things I'd consider adding a layer template as a layer option. This would kinda work like the approach outlined for Bob. You'd define a presentation template layer (no DATA value) and run the query results through it instead of the regular layer (for certain querymap types, e.g. highlight). Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Tamas Szekeres Sent: Tuesday, February 15, 2011 3:06 AM To: Bistrais, Bob Cc: mapserver-users Subject: Re: [mapserver-users] Buffer features? In accordance with the problem mentioned, I recall a resonable enhancement as described in RFC22a which would provide an option to configure all the stuff in the mapfile (not requiring MapScript) and would make it easier to customize the query maps as well. With this enhancement 2 new layer data providers could be implemented, like: 1. CONNECTIONTYPE=QUERYRESULT would provide to represent the result sets of one layer in a new layer. 2. CONNECTIONTYPE=TRANSFORM would provide simple geometry transformations on a source layer and then provide the modified features as a new layer. By chaining these layers together in a map configuration we could get such results as included in the RFC document. I consider this kind of enhancement could be implemented within the scope of 1-2 days of work (comparable with a fully elaborated MapScript solution providing the same) Best regards, Tamas 2011/2/14 Bistrais, Bob This question may have come up before, but I haven't found it in the archives. I would like to take a selected feature and buffer it to a specified distance. I know it's possible to do a queryByPoint with a buffer distance, but I need to create an actual buffer shape to display on the map. Has anyone done something like this before? Does MapServer have this capability? _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue Feb 15 10:42:31 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 15 Feb 2011 12:42:31 -0600 Subject: [mapserver-users] Buffer features? In-Reply-To: <4EFF8BB964547748A07CA32961810C041A036DED@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C041A036DD9@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4EFF8BB964547748A07CA32961810C041A036DED@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: You'd need to use 3 different layers and change your code to create 3 different buffered shapes accordingly. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: Tuesday, February 15, 2011 12:30 PM To: Lime, Steve D (DNR) Cc: mapserver-users Subject: RE: [mapserver-users] Buffer features? Not to make life more difficult, but is it possible to create a multi-ring buffer, basically 3 polygons at 3 different distances from a selected feature? ________________________________ From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Tuesday, February 15, 2011 12:22 PM To: Tamas Szekeres Cc: mapserver-users Subject: RE: [mapserver-users] Buffer features? Not quite, I'm thinking of a single layer setup: LAYER DATA myfile.shp # or whatever connection information is necessary TYPE POLYGON STATUS DEFAULT NAME 'buffered_shapes' GEOMTRANSFORM (buffer([shape], 500)) # buffer each shape by 500 map units # classes and styles follow TEMPLATE 'void' END The GEOMTRANSFORM would be applied as shapes are pulled from a data source so you would draw or, potentially, query the transformed shapes. The difference between a layer-level GEOMTRANSFORM and a style-level one is the coordinates they operate on. Layer-level work would be done on a raw feature in map coordinates and style-level works on pixels. We do layer-level stuff already, conceptually, in the form of projections and clipping. The GEOMTRANSFORM just provides a way of extending that work... Note this type of GEOMTRANSFORM expression is working for buffers in STYLEs in trunk (but using pixels for the moment). Steve From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Tuesday, February 15, 2011 11:12 AM To: Lime, Steve D (DNR) Cc: mapserver-users Subject: Re: [mapserver-users] Buffer features? Steve, Did you mean to achieve something like?: LAYER CONNECTIONTYPE TRANSFORM CONNECTION sourcelayer # reference to another layer NAME transformlayer PROCESSING "TRANSFORM=(buffer([shape]))" TEMPLATE query.html .... END LAYER CONNECTIONTYPE SHAPE DATA myfile.shp NAME sourcelayer .... END Which is simple and easy to implement. Best regards, Tamas 2011/2/15 Lime, Steve D (DNR) > I'd approach RFC 22, especially the transform piece, differently now with the parser changes implemented in 6.0. We now have (with GEOS enabled) an expression syntax available to support things like buffering, convex hull, differences, etc... or combinations thereof. I'd implement layer-level GEOMTRANSFORMs in that case using these expressions. On the query result side of things I'd consider adding a layer template as a layer option. This would kinda work like the approach outlined for Bob. You'd define a presentation template layer (no DATA value) and run the query results through it instead of the regular layer (for certain querymap types, e.g. highlight). Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Tamas Szekeres Sent: Tuesday, February 15, 2011 3:06 AM To: Bistrais, Bob Cc: mapserver-users Subject: Re: [mapserver-users] Buffer features? In accordance with the problem mentioned, I recall a resonable enhancement as described in RFC22a which would provide an option to configure all the stuff in the mapfile (not requiring MapScript) and would make it easier to customize the query maps as well. With this enhancement 2 new layer data providers could be implemented, like: 1. CONNECTIONTYPE=QUERYRESULT would provide to represent the result sets of one layer in a new layer. 2. CONNECTIONTYPE=TRANSFORM would provide simple geometry transformations on a source layer and then provide the modified features as a new layer. By chaining these layers together in a map configuration we could get such results as included in the RFC document. I consider this kind of enhancement could be implemented within the scope of 1-2 days of work (comparable with a fully elaborated MapScript solution providing the same) Best regards, Tamas 2011/2/14 Bistrais, Bob > This question may have come up before, but I haven't found it in the archives. I would like to take a selected feature and buffer it to a specified distance. I know it's possible to do a queryByPoint with a buffer distance, but I need to create an actual buffer shape to display on the map. Has anyone done something like this before? Does MapServer have this capability? _______________________________________________ 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.Hildebrand at afsc.ca Tue Feb 15 11:41:01 2011 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Tue, 15 Feb 2011 12:41:01 -0700 Subject: [mapserver-users] formatting in HTML templates In-Reply-To: References: <4EFF8BB964547748A07CA32961810C041A036DD9@SOM-TEAQASMAIL1.som.w2k.state.me.us><4EFF8BB964547748A07CA32961810C041A036DED@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <9188AB5935664040805E01E348A2B81D1BF690F9@lacex1.afsc.ads> This may be slightly off the MapServer topic but my problem is related to a MapServer implementation. I am retrieving the date and time from the shapefile DBF of my layer in the following format (yymmddhhmmss). The string represents the UTC time of satellite image acquisition. I want to convert that to local time and express it as a normal date string (e.g.: July 8, 2009 10:45:25 AM). I'm thinking I can do that with PHP code embedded in the template. I know my server has PHP support but when I try to embed a simple 'Hello world' in the template it seems to be ignored. Would it be better define a URL to the PHP code (in stead of a template) and then build the entire HTML page dynamically? Thanks. =========================== David V. Hildebrand Agriculture Financial Services Corporation (403) 782-8239 www.afsc.ca > This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Tue Feb 15 11:54:05 2011 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Tue, 15 Feb 2011 14:54:05 -0500 Subject: [mapserver-users] Buffer features? In-Reply-To: References: <4EFF8BB964547748A07CA32961810C041A036DD9@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4EFF8BB964547748A07CA32961810C041A036DED@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4EFF8BB964547748A07CA32961810C041A036DF1@SOM-TEAQASMAIL1.som.w2k.state.me.us> OK, that makes sense. One more thing I'm not clear on- I can draw my buffer around the selected feature. How can this buffer now be used to query another layer? I guess it's similar to other queries, but how to select this buffer feature and use it as the input to the query? ________________________________ From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Tuesday, February 15, 2011 1:43 PM To: Bistrais, Bob Cc: mapserver-users Subject: RE: [mapserver-users] Buffer features? You'd need to use 3 different layers and change your code to create 3 different buffered shapes accordingly. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: Tuesday, February 15, 2011 12:30 PM To: Lime, Steve D (DNR) Cc: mapserver-users Subject: RE: [mapserver-users] Buffer features? Not to make life more difficult, but is it possible to create a multi-ring buffer, basically 3 polygons at 3 different distances from a selected feature? ________________________________ From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Tuesday, February 15, 2011 12:22 PM To: Tamas Szekeres Cc: mapserver-users Subject: RE: [mapserver-users] Buffer features? Not quite, I'm thinking of a single layer setup: LAYER DATA myfile.shp # or whatever connection information is necessary TYPE POLYGON STATUS DEFAULT NAME 'buffered_shapes' GEOMTRANSFORM (buffer([shape], 500)) # buffer each shape by 500 map units # classes and styles follow TEMPLATE 'void' END The GEOMTRANSFORM would be applied as shapes are pulled from a data source so you would draw or, potentially, query the transformed shapes. The difference between a layer-level GEOMTRANSFORM and a style-level one is the coordinates they operate on. Layer-level work would be done on a raw feature in map coordinates and style-level works on pixels. We do layer-level stuff already, conceptually, in the form of projections and clipping. The GEOMTRANSFORM just provides a way of extending that work... Note this type of GEOMTRANSFORM expression is working for buffers in STYLEs in trunk (but using pixels for the moment). Steve From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Tuesday, February 15, 2011 11:12 AM To: Lime, Steve D (DNR) Cc: mapserver-users Subject: Re: [mapserver-users] Buffer features? Steve, Did you mean to achieve something like?: LAYER CONNECTIONTYPE TRANSFORM CONNECTION sourcelayer # reference to another layer NAME transformlayer PROCESSING "TRANSFORM=(buffer([shape]))" TEMPLATE query.html .... END LAYER CONNECTIONTYPE SHAPE DATA myfile.shp NAME sourcelayer .... END Which is simple and easy to implement. Best regards, Tamas 2011/2/15 Lime, Steve D (DNR) I'd approach RFC 22, especially the transform piece, differently now with the parser changes implemented in 6.0. We now have (with GEOS enabled) an expression syntax available to support things like buffering, convex hull, differences, etc... or combinations thereof. I'd implement layer-level GEOMTRANSFORMs in that case using these expressions. On the query result side of things I'd consider adding a layer template as a layer option. This would kinda work like the approach outlined for Bob. You'd define a presentation template layer (no DATA value) and run the query results through it instead of the regular layer (for certain querymap types, e.g. highlight). Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Tamas Szekeres Sent: Tuesday, February 15, 2011 3:06 AM To: Bistrais, Bob Cc: mapserver-users Subject: Re: [mapserver-users] Buffer features? In accordance with the problem mentioned, I recall a resonable enhancement as described in RFC22a which would provide an option to configure all the stuff in the mapfile (not requiring MapScript) and would make it easier to customize the query maps as well. With this enhancement 2 new layer data providers could be implemented, like: 1. CONNECTIONTYPE=QUERYRESULT would provide to represent the result sets of one layer in a new layer. 2. CONNECTIONTYPE=TRANSFORM would provide simple geometry transformations on a source layer and then provide the modified features as a new layer. By chaining these layers together in a map configuration we could get such results as included in the RFC document. I consider this kind of enhancement could be implemented within the scope of 1-2 days of work (comparable with a fully elaborated MapScript solution providing the same) Best regards, Tamas 2011/2/14 Bistrais, Bob This question may have come up before, but I haven't found it in the archives. I would like to take a selected feature and buffer it to a specified distance. I know it's possible to do a queryByPoint with a buffer distance, but I need to create an actual buffer shape to display on the map. Has anyone done something like this before? Does MapServer have this capability? _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue Feb 15 13:10:57 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 15 Feb 2011 15:10:57 -0600 Subject: [mapserver-users] RE: formatting in HTML templates In-Reply-To: <9188AB5935664040805E01E348A2B81D1BF690F9@lacex1.afsc.ads> References: <4EFF8BB964547748A07CA32961810C041A036DD9@SOM-TEAQASMAIL1.som.w2k.state.me.us><4EFF8BB964547748A07CA32961810C041A036DED@SOM-TEAQASMAIL1.som.w2k.state.me.us> <9188AB5935664040805E01E348A2B81D1BF690F9@lacex1.afsc.ads> Message-ID: I don't think it's possible to pass the MapServer processed template back through a PHP interpreter. Easiest thing IMHO would be to do this using javascript embedded in the template. I think it has pretty good date/time support. Just an idea. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of David Hildebrand Sent: Tuesday, February 15, 2011 1:41 PM To: mapserver-users Subject: [mapserver-users] formatting in HTML templates This may be slightly off the MapServer topic but my problem is related to a MapServer implementation. I am retrieving the date and time from the shapefile DBF of my layer in the following format (yymmddhhmmss). The string represents the UTC time of satellite image acquisition. I want to convert that to local time and express it as a normal date string (e.g.: July 8, 2009 10:45:25 AM). I'm thinking I can do that with PHP code embedded in the template. I know my server has PHP support but when I try to embed a simple 'Hello world' in the template it seems to be ignored. Would it be better define a URL to the PHP code (in stead of a template) and then build the entire HTML page dynamically? Thanks. =========================== David V. Hildebrand Agriculture Financial Services Corporation (403) 782-8239 www.afsc.ca > This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue Feb 15 12:59:25 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 15 Feb 2011 14:59:25 -0600 Subject: [mapserver-users] Buffer features? In-Reply-To: <4EFF8BB964547748A07CA32961810C041A036DF1@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C041A036DD9@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4EFF8BB964547748A07CA32961810C041A036DED@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4EFF8BB964547748A07CA32961810C041A036DF1@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: MapServer queries, at least some of them, respect layer tolerances which effectively acts like a buffer. You can also take the result of your buffering operation and use it in a queryByShape() operation. Make sure you set your layer tolerances appropriately (probably to 0) so that you get features that intersect with the shape. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: Tuesday, February 15, 2011 1:54 PM To: Lime, Steve D (DNR) Cc: mapserver-users Subject: RE: [mapserver-users] Buffer features? OK, that makes sense. One more thing I'm not clear on- I can draw my buffer around the selected feature. How can this buffer now be used to query another layer? I guess it's similar to other queries, but how to select this buffer feature and use it as the input to the query? ________________________________ From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Tuesday, February 15, 2011 1:43 PM To: Bistrais, Bob Cc: mapserver-users Subject: RE: [mapserver-users] Buffer features? You'd need to use 3 different layers and change your code to create 3 different buffered shapes accordingly. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: Tuesday, February 15, 2011 12:30 PM To: Lime, Steve D (DNR) Cc: mapserver-users Subject: RE: [mapserver-users] Buffer features? Not to make life more difficult, but is it possible to create a multi-ring buffer, basically 3 polygons at 3 different distances from a selected feature? ________________________________ From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Tuesday, February 15, 2011 12:22 PM To: Tamas Szekeres Cc: mapserver-users Subject: RE: [mapserver-users] Buffer features? Not quite, I'm thinking of a single layer setup: LAYER DATA myfile.shp # or whatever connection information is necessary TYPE POLYGON STATUS DEFAULT NAME 'buffered_shapes' GEOMTRANSFORM (buffer([shape], 500)) # buffer each shape by 500 map units # classes and styles follow TEMPLATE 'void' END The GEOMTRANSFORM would be applied as shapes are pulled from a data source so you would draw or, potentially, query the transformed shapes. The difference between a layer-level GEOMTRANSFORM and a style-level one is the coordinates they operate on. Layer-level work would be done on a raw feature in map coordinates and style-level works on pixels. We do layer-level stuff already, conceptually, in the form of projections and clipping. The GEOMTRANSFORM just provides a way of extending that work... Note this type of GEOMTRANSFORM expression is working for buffers in STYLEs in trunk (but using pixels for the moment). Steve From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Tuesday, February 15, 2011 11:12 AM To: Lime, Steve D (DNR) Cc: mapserver-users Subject: Re: [mapserver-users] Buffer features? Steve, Did you mean to achieve something like?: LAYER CONNECTIONTYPE TRANSFORM CONNECTION sourcelayer # reference to another layer NAME transformlayer PROCESSING "TRANSFORM=(buffer([shape]))" TEMPLATE query.html .... END LAYER CONNECTIONTYPE SHAPE DATA myfile.shp NAME sourcelayer .... END Which is simple and easy to implement. Best regards, Tamas 2011/2/15 Lime, Steve D (DNR) > I'd approach RFC 22, especially the transform piece, differently now with the parser changes implemented in 6.0. We now have (with GEOS enabled) an expression syntax available to support things like buffering, convex hull, differences, etc... or combinations thereof. I'd implement layer-level GEOMTRANSFORMs in that case using these expressions. On the query result side of things I'd consider adding a layer template as a layer option. This would kinda work like the approach outlined for Bob. You'd define a presentation template layer (no DATA value) and run the query results through it instead of the regular layer (for certain querymap types, e.g. highlight). Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Tamas Szekeres Sent: Tuesday, February 15, 2011 3:06 AM To: Bistrais, Bob Cc: mapserver-users Subject: Re: [mapserver-users] Buffer features? In accordance with the problem mentioned, I recall a resonable enhancement as described in RFC22a which would provide an option to configure all the stuff in the mapfile (not requiring MapScript) and would make it easier to customize the query maps as well. With this enhancement 2 new layer data providers could be implemented, like: 1. CONNECTIONTYPE=QUERYRESULT would provide to represent the result sets of one layer in a new layer. 2. CONNECTIONTYPE=TRANSFORM would provide simple geometry transformations on a source layer and then provide the modified features as a new layer. By chaining these layers together in a map configuration we could get such results as included in the RFC document. I consider this kind of enhancement could be implemented within the scope of 1-2 days of work (comparable with a fully elaborated MapScript solution providing the same) Best regards, Tamas 2011/2/14 Bistrais, Bob > This question may have come up before, but I haven't found it in the archives. I would like to take a selected feature and buffer it to a specified distance. I know it's possible to do a queryByPoint with a buffer distance, but I need to create an actual buffer shape to display on the map. Has anyone done something like this before? Does MapServer have this capability? _______________________________________________ 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 Tue Feb 15 15:36:05 2011 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Tue, 15 Feb 2011 15:36:05 -0800 (PST) Subject: [mapserver-users] Help with runtime variable substitution in inline ODBC virtual data sources In-Reply-To: <1292490303858-5841309.post@n2.nabble.com> Message-ID: <123542.78049.qm@web33202.mail.mud.yahoo.com> Hi, I'm looking to set up a mapfile with an inline ovf data source as described in part 2 of section 5 at http://mapserver.org/input/vector/VirtualSpatialData.html I'm also looking to embed an SQL in the ovf with a where clause, using runtime variable substitution as described at http://mapserver.org/cgi/runsub.html?highlight=variable The latter says that such runtime substitution is supported in the CONNECTION & DATA fields within the LAYER object. I'm unclear as to how a where clause can be inserted in the ovf definition, and am hoping that this will be in the CONNECTION or DATA fields, and is amenable to runtime variable substitution. Basically with the URL including:???????????????????????????????????????? &job_id=23 have an ovf where clause specified like: ???? ...??????????????????? where job=%job_id% ?thus from this have an ovf ODBC connection pass a where clause like: ? and job_id=23 ..." This is connecting to an aspatial Oracle database returning up to 100 point features from a table with X Y columns.. Can anyone provide some hints on: 1. Is this possible? 2. How best to implement it? Thanks, ?? Brent Wood -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Tue Feb 15 15:55:33 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 15 Feb 2011 16:55:33 -0700 Subject: [mapserver-users] Help with runtime variable substitution in inline ODBC virtual data sources In-Reply-To: <123542.78049.qm@web33202.mail.mud.yahoo.com> References: <123542.78049.qm@web33202.mail.mud.yahoo.com> Message-ID: <4D5B1275.1060701@geoanalytic.com> Brent, I did something similar a while ago. I connected to an aspatial SQL Server instance using an OGR VRT definition pointing to an ODBC datasource: TYPE POINT CONNECTIONTYPE OGR CONNECTION " ODBC:myuser/mypass at MyODBC,view_of_points SELECT * FROM view_of_points WHERE StatusID=%StatusID% PointID wkbPoint NAD83 " PROCESSING "CLOSE_CONNECTION=DEFER" DATA "view_of_points" PROJECTION 'proj=longlat' 'ellps=GRS80' 'datum=NAD83' 'no_defs' END Note that StatusId was passed as a CGI variable. Best Regards, Brent Fraser On 2/15/2011 4:36 PM, pcreso at pcreso.com wrote: > Hi, > > I'm looking to set up a mapfile with an inline ovf data source as > described in part 2 of section 5 at > http://mapserver.org/input/vector/VirtualSpatialData.html > > I'm also looking to embed an SQL in the ovf with a where clause, using > runtime variable substitution as described at > http://mapserver.org/cgi/runsub.html?highlight=variable > > The latter says that such runtime substitution is supported in the > CONNECTION & DATA fields within the LAYER object. > > I'm unclear as to how a where clause can be inserted in the ovf > definition, and am hoping that this will be in the CONNECTION or DATA > fields, and is amenable to runtime variable substitution. > > Basically with the URL including: &job_id=23 > have an ovf where clause specified like: ... > where job=%job_id% > > thus from this > > have an ovf ODBC connection pass a where clause like: and job_id=23 > ..." > > This is connecting to an aspatial Oracle database returning up to 100 > point features from a table with X Y columns.. > > Can anyone provide some hints on: > > 1. Is this possible? > 2. How best to implement it? > > > Thanks, > > Brent Wood > > > > _______________________________________________ > 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 jean-francois at gigand.fr Tue Feb 15 15:59:14 2011 From: jean-francois at gigand.fr (=?ISO-8859-1?Q?Jean=2DFran=E7ois_Gigand?=) Date: Wed, 16 Feb 2011 00:59:14 +0100 Subject: [mapserver-users] Help with runtime variable substitution in inline ODBC virtual data sources In-Reply-To: <123542.78049.qm@web33202.mail.mud.yahoo.com> References: <1292490303858-5841309.post@n2.nabble.com> <123542.78049.qm@web33202.mail.mud.yahoo.com> Message-ID: Hi Brent, I never worked with virtual data source but have some experience of OGR. The original documentation of the format of OGR virtual data source is here: http://www.gdal.org/ogr/drv_vrt.html To my understanding, the way to specify a WHERE condition is by writing the full ODBC query using the element in (instead of ). This way (OGR-level), the SQL is forwarded by OGR to the ODBC driver, so quite low-level. Jean-Fran?ois Gigand 2011/2/16 > > Hi, > > I'm looking to set up a mapfile with an inline ovf data source as described in part 2 of section 5 at http://mapserver.org/input/vector/VirtualSpatialData.html > > I'm also looking to embed an SQL in the ovf with a where clause, using runtime variable substitution as described at http://mapserver.org/cgi/runsub.html?highlight=variable > > The latter says that such runtime substitution is supported in the CONNECTION & DATA fields within the LAYER object. > > I'm unclear as to how a where clause can be inserted in the ovf definition, and am hoping that this will be in the CONNECTION or DATA fields, and is amenable to runtime variable substitution. > > Basically with the URL including:???????????????????????????????????????? &job_id=23 > have an ovf where clause specified like: ???? ...??????????????????? where job=%job_id% > > ?thus from this > > have an ovf ODBC connection pass a where clause like: ? and job_id=23 ..." > > This is connecting to an aspatial Oracle database returning up to 100 point features from a table with X Y columns.. > > Can anyone provide some hints on: > > 1. Is this possible? > 2. How best to implement it? > > > Thanks, > > ?? Brent Wood > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From ivanc at kestrel-tech.com Tue Feb 15 18:12:54 2011 From: ivanc at kestrel-tech.com (Ivan Cardenas) Date: Tue, 15 Feb 2011 20:12:54 -0600 Subject: [mapserver-users] Need to replace Google Maps API on webservice - Help! In-Reply-To: <2E77D5AC-1C06-4741-9E30-61D0D5B1135E@mimectl> References: <012C9D0B-F53D-45DD-B5C2-2A59E1C23FB6@mimectl>, <2E77D5AC-1C06-4741-9E30-61D0D5B1135E@mimectl> Message-ID: Hello All, If anyone can provide a dedicated effort over the next week, to create a mapserver that can serve opensource or purchased imagery via a Google Maps API or anothe viewer that can take KML feeds, on a standalone, no network system, please let me know right away please. Email or mobile below is best. Many Thanks, Sincerely, Ivan Cardenas Technical Director Kestrel Technology Group ivanc at kestrel-tech.com 281 242 6349 main 713 899 1415 mobile 281 491 0379 fax CONFIDENTIALITY NOTICE This electronic mail transmission is confidential, may be privileged and should be read or retained only by the intended recipient. If you have received this transmission in error, please immediately notify the sender and delete it from your system. -------------- next part -------------- An HTML attachment was scrubbed... URL: From christopher.schmidt at nokia.com Tue Feb 15 18:28:35 2011 From: christopher.schmidt at nokia.com (christopher.schmidt at nokia.com) Date: Wed, 16 Feb 2011 02:28:35 +0000 Subject: [mapserver-users] Need to replace Google Maps API on webservice - Help! In-Reply-To: References: <012C9D0B-F53D-45DD-B5C2-2A59E1C23FB6@mimectl>, <2E77D5AC-1C06-4741-9E30-61D0D5B1135E@mimectl> Message-ID: <29957BB3-44C2-4EDE-9180-855B48D8CC94@nokia.com> On Feb 15, 2011, at 9:12 PM, ext Ivan Cardenas wrote: > Hello All, > > If anyone can provide a dedicated effort over the next week, to create a mapserver that can serve opensource or purchased imagery via a Google Maps API or anothe viewer that can take KML feeds, on a standalone, no network system, please let me know right away please. Email or mobile below is best. OpenLayers can do that, at least for most browsers. (Chrome is troublesome on a machine with no network unless you're also shipping a web browser, but that's possible if you really need to.) Large/complex KML files, you're probably best just going with Google Earth and some sort of map pack to include the data you want in the cache. -- Chris > Many Thanks, > > Sincerely, > > Ivan Cardenas > Technical Director > Kestrel Technology Group > ivanc at kestrel-tech.com > 281 242 6349 main > 713 899 1415 mobile > 281 491 0379 fax > > CONFIDENTIALITY NOTICE > This electronic mail transmission is confidential, may be privileged and should be read or retained only by the intended recipient. If you have received this transmission in error, please immediately notify the sender and delete it from your system. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From ivanc at kestrel-tech.com Tue Feb 15 18:33:15 2011 From: ivanc at kestrel-tech.com (Ivan Cardenas) Date: Tue, 15 Feb 2011 20:33:15 -0600 Subject: [mapserver-users] Need to replace Google Maps API on webservice - Help! In-Reply-To: <29957BB3-44C2-4EDE-9180-855B48D8CC94@nokia.com> References: <012C9D0B-F53D-45DD-B5C2-2A59E1C23FB6@mimectl>, <2E77D5AC-1C06-4741-9E30-61D0D5B1135E@mimectl> , <29957BB3-44C2-4EDE-9180-855B48D8CC94@nokia.com> Message-ID: Hi Chris, would be very grateful for a process to set this up. We can use Open Source Data for a region in Asia. If it helps, you can submit a simple report on letterhead for an hourly fee rate. Would really appreciate your help if possible, or someone you can recommend. Thanks, Ivan Ivan Cardenas Technical Director Kestrel Technology Group ivanc at kestrel-tech.com 281 242 6349 main 713 899 1415 mobile 281 491 0379 fax CONFIDENTIALITY NOTICE This electronic mail transmission is confidential, may be privileged and should be read or retained only by the intended recipient. If you have received this transmission in error, please immediately notify the sender and delete it from your system. ________________________________ From: christopher.schmidt at nokia.com [christopher.schmidt at nokia.com] Sent: Tuesday, February 15, 2011 8:28 PM To: Ivan Cardenas Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Need to replace Google Maps API on webservice - Help! On Feb 15, 2011, at 9:12 PM, ext Ivan Cardenas wrote: > Hello All, > > If anyone can provide a dedicated effort over the next week, to create a mapserver that can serve opensource or purchased imagery via a Google Maps API or anothe viewer that can take KML feeds, on a standalone, no network system, please let me know right away please. Email or mobile below is best. OpenLayers can do that, at least for most browsers. (Chrome is troublesome on a machine with no network unless you're also shipping a web browser, but that's possible if you really need to.) Large/complex KML files, you're probably best just going with Google Earth and some sort of map pack to include the data you want in the cache. -- Chris > Many Thanks, > > Sincerely, > > Ivan Cardenas > Technical Director > Kestrel Technology Group > ivanc at kestrel-tech.com > 281 242 6349 main > 713 899 1415 mobile > 281 491 0379 fax > > CONFIDENTIALITY NOTICE > This electronic mail transmission is confidential, may be privileged and should be read or retained only by the intended recipient. If you have received this transmission in error, please immediately notify the sender and delete it from your system. > _______________________________________________ > 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 cstock at skm.com.au Tue Feb 15 21:32:13 2011 From: cstock at skm.com.au (christian) Date: Tue, 15 Feb 2011 21:32:13 -0800 (PST) Subject: [mapserver-users] trouble migrating from ms4w to IIS5.1 - ecw blank image Message-ID: <1297834333802-6030606.post@n2.nabble.com> I've setup MapServer via MS4W which works fine. I'm trying to migrate MapServer from Apache to IIS 5.1 which is working mostly, however, I can't get a map file including an ECW to work, all I get is a blank page. 1) I'm running Apache on port 85 (and IIS on default port 80), ie: http://localhost:85/cgi-bin/mapserv.exe?map=c:/ms4w/spot_vic.map&layer=SPOT_Vic&mode=map This works fine. 2) I copied all files in Apache/cgi-bin to Inetpub/Server and created a virtual dir with executable permissions. I tried all examples from 1-1 to 1-9 and they all run just fine, ie http://localhost/Scripts/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-5.map&layer=states&layer=states_line&layer=states_label&layer=modis&mode=map works just fine If I try http://localhost/Scripts/mapserv.exe?map=c:/ms4w/spot_vic.map&layer=SPOT_Vic&mode=map I get a blank map. This has me stumped as it's using exactly the same map file as I'm using on Apache and both solutions are set up on the same computer (IIS port 80, Apache port 85) Obviously I need to set up something else in IIS, but I don't know what as I'm not getting an error message and the example map files from the tutorial work just fine. Here's the map file, but it should be fine as it works using Apache: # # Start of map file # MAP CONFIG "PROJ_LIB" "C:/ms4w/proj/nad/" NAME "SPOT_Victoria" STATUS ON SIZE 948 598 IMAGETYPE PNG24 EXTENT 140.9999817 -39.4999999 150.4999952 -33.4999853 UNITS METERS SHAPEPATH "D:/Documents and Settings/cstock/My Documents/- Web Data/SPOTMaps VIC" IMAGECOLOR 255 255 255 WEB METADATA "wms_title" "SPOT Victoria" "wms_onlineresource" "http://localhost/Scripts/mapserv.exe?" "wms_srs" "EPSG:4326" END END PROJECTION "init=epsg:4326" END # # Start of layer definitions # LAYER NAME "SPOT_Vic" TYPE RASTER #PROCESSING "BANDS=1,2,3" STATUS ON DATA "AUK_25x.ecw" METADATA "wms_title" "SPOT_Vic" "wms_srs" "EPSG:4326" END PROJECTION "init=epsg:4326" END END # Layer END # Map File -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/trouble-migrating-from-ms4w-to-IIS5-1-ecw-blank-image-tp6030606p6030606.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pcreso at pcreso.com Tue Feb 15 23:53:03 2011 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Tue, 15 Feb 2011 23:53:03 -0800 (PST) Subject: [mapserver-users] Need to replace Google Maps API on webservice - Help! In-Reply-To: Message-ID: <312790.1030.qm@web33201.mail.mud.yahoo.com> If you are displaying purchased data, it is most unlikely the licence for these will let you legally display these via Google Earth. The Google Terms of Service state: 11.1 "... By submitting, posting or displaying the content you give Google a perpetual, irrevocable, worldwide, royalty-free, and non-exclusive license to reproduce, adapt, modify, translate, publish, publicly perform, publicly display and distribute any Content which you submit, post or display on or through, the Services." 11.4 "You confirm and warrant to Google that you have all the rights, power and authority necessary to grant the above license." OpenLayers does not have such issues. Brent Wood --- On Wed, 2/16/11, Ivan Cardenas wrote: From: Ivan Cardenas Subject: RE: [mapserver-users] Need to replace Google Maps API on webservice - Help! To: "christopher.schmidt at nokia.com" Cc: "mapserver-users at lists.osgeo.org" Date: Wednesday, February 16, 2011, 3:33 PM #yiv1523442464 SPAN.yiv1523442464skype_pnh_container SPAN.yiv1523442464skype_pnh_mark {} _filtered #yiv1523442464 {}#yiv1523442464 SPAN.yiv1523442464skype_pnh_container {LIST-STYLE:disc none outside;BORDER-BOTTOM:#000000 0px;TEXT-ALIGN:left;BORDER-LEFT:#000000 0px;PADDING-BOTTOM:0px !important;LINE-HEIGHT:14px !important;TEXT-TRANSFORM:none;FONT-STYLE:normal;TEXT-INDENT:0px !important;MARGIN:0px;PADDING-LEFT:0px !important;WIDTH:auto !important;PADDING-RIGHT:0px !important;DISPLAY:inline;BORDER-COLLAPSE:separate;FONT-FAMILY:Tahoma, Arial, Helvetica, sans-serif !important;DIRECTION:ltr;WHITE-SPACE:nowrap;BACKGROUND:no-repeat 0px 0px;FLOAT:none;TABLE-LAYOUT:auto;LETTER-SPACING:0px !important;HEIGHT:14px !important;COLOR:#49535a;CLEAR:none;FONT-SIZE:11px !important;VERTICAL-ALIGN:baseline !important;OVERFLOW:hidden;BORDER-TOP:#000000 0px;CURSOR:pointer;FONT-WEIGHT:bold;BORDER-RIGHT:#000000 0px;WORD-SPACING:normal !important;TEXT-DECORATION:none;PADDING-TOP:0px !important;}#yiv1523442464 SPAN.yiv1523442464skype_pnh_container * {LIST-STYLE:disc none outside;BORDER-BOTTOM:#000000 0px;TEXT-ALIGN:left;BORDER-LEFT:#000000 0px;PADDING-BOTTOM:0px !important;LINE-HEIGHT:14px !important;TEXT-TRANSFORM:none;FONT-STYLE:normal;TEXT-INDENT:0px !important;MARGIN:0px;PADDING-LEFT:0px !important;WIDTH:auto !important;PADDING-RIGHT:0px !important;DISPLAY:inline;BORDER-COLLAPSE:separate;FONT-FAMILY:Tahoma, Arial, Helvetica, sans-serif !important;DIRECTION:ltr;WHITE-SPACE:nowrap;BACKGROUND:no-repeat 0px 0px;FLOAT:none;TABLE-LAYOUT:auto;LETTER-SPACING:0px !important;HEIGHT:14px !important;COLOR:#49535a;CLEAR:none;FONT-SIZE:11px !important;VERTICAL-ALIGN:baseline !important;OVERFLOW:hidden;BORDER-TOP:#000000 0px;CURSOR:pointer;FONT-WEIGHT:bold;BORDER-RIGHT:#000000 0px;WORD-SPACING:normal !important;TEXT-DECORATION:none;PADDING-TOP:0px !important;}#yiv1523442464 SPAN.yiv1523442464skype_pnh_container SPAN.yiv1523442464skype_pnh_highlighting_active_fax SPAN.yiv1523442464skype_pnh_right_span {BACKGROUND-POSITION:-92px 0px;}#yiv1523442464 SPAN.yiv1523442464skype_pnh_container SPAN.yiv1523442464skype_pnh_highlighting_inactive_fax SPAN.yiv1523442464skype_pnh_right_span {BACKGROUND-POSITION:-92px 0px;}#yiv1523442464 SPAN.yiv1523442464skype_pnh_container SPAN.yiv1523442464skype_pnh_highlighting_inactive_free SPAN.yiv1523442464skype_pnh_dropart_flag_span {BACKGROUND-POSITION:0px 1px;}#yiv1523442464 SPAN.yiv1523442464skype_pnh_container SPAN.yiv1523442464skype_pnh_highlighting_inactive_free SPAN.yiv1523442464skype_pnh_textarea_span {BACKGROUND-POSITION:-90px 0px;}#yiv1523442464 SPAN.yiv1523442464skype_pnh_container SPAN.yiv1523442464skype_pnh_highlighting_inactive_free SPAN.yiv1523442464skype_pnh_text_span {VISIBILITY:hidden;}#yiv1523442464 SPAN.yiv1523442464skype_pnh_container SPAN.yiv1523442464skype_pnh_highlighting_active_free SPAN.yiv1523442464skype_pnh_dropart_flag_span {BACKGROUND-POSITION:0px 1px;}#yiv1523442464 SPAN.yiv1523442464skype_pnh_container SPAN.yiv1523442464skype_pnh_highlighting_active_free SPAN.yiv1523442464skype_pnh_textarea_span {BACKGROUND-POSITION:-160px 0px;}#yiv1523442464 SPAN.yiv1523442464skype_pnh_container SPAN.yiv1523442464skype_pnh_highlighting_active_free SPAN.yiv1523442464skype_pnh_text_span {BACKGROUND-POSITION:-160px 0px;COLOR:#ffffff;}#yiv1523442464 SPAN.yiv1523442464skype_pnh_container SPAN.yiv1523442464skype_pnh_left_span {WIDTH:6px !important;BACKGROUND-POSITION:0px 0px;}#yiv1523442464 SPAN.yiv1523442464skype_pnh_container SPAN.yiv1523442464skype_pnh_dropart_span {WIDTH:27px !important;BACKGROUND-POSITION:-11px 0px;}#yiv1523442464 SPAN.yiv1523442464skype_pnh_container SPAN.yiv1523442464skype_pnh_dropart_wo_arrow_span {WIDTH:18px !important;BACKGROUND-POSITION:-130px 0px;}#yiv1523442464 SPAN.yiv1523442464skype_pnh_container SPAN.yiv1523442464skype_pnh_dropart_flag_span {WIDTH:18px !important;BACKGROUND-POSITION:1px 1px;}#yiv1523442464 SPAN.yiv1523442464skype_pnh_container SPAN.yiv1523442464skype_pnh_textarea_span {BACKGROUND-POSITION:-125px 0px;}#yiv1523442464 SPAN.yiv1523442464skype_pnh_container SPAN.yiv1523442464skype_pnh_text_span {PADDING-LEFT:5px !important;BACKGROUND-POSITION:-125px 0px;}#yiv1523442464 SPAN.yiv1523442464skype_pnh_container SPAN.yiv1523442464skype_pnh_right_span {WIDTH:15px !important;BACKGROUND-POSITION:-62px 0px;}#yiv1523442464 _filtered #yiv1523442464 {}#yiv1523442464 SPAN.yiv1523442464skype_pnh_container {}#yiv1523442464 _filtered #yiv1523442464 {}#yiv1523442464 SPAN.yiv1523442464skype_pnh_container * {ZOOM:!important;}#yiv1523442464 SPAN.yiv1523442464skype_pnh_container SPAN.yiv1523442464skype_pnh_highlighting_inactive_common * {}#yiv1523442464 SPAN.yiv1523442464skype_pnh_container SPAN.yiv1523442464skype_pnh_highlighting_active_common * {}#yiv1523442464 SPAN.yiv1523442464skype_pnh_container SPAN.yiv1523442464skype_pnh_highlighting_inactive_fax * {}#yiv1523442464 SPAN.yiv1523442464skype_pnh_container SPAN.yiv1523442464skype_pnh_highlighting_active_fax * {}#yiv1523442464 SPAN.yiv1523442464skype_pnh_container SPAN.yiv1523442464skype_pnh_highlighting_inactive_free * {}#yiv1523442464 SPAN.yiv1523442464skype_pnh_container SPAN.yiv1523442464skype_pnh_highlighting_active_free * {}#yiv1523442464 SPAN.yiv1523442464skype_pnh_container SPAN.yiv1523442464skype_pnh_dropart_flag_span {}#yiv1523442464 #yiv1523442464 .yiv1523442464EmailQuote { BORDER-LEFT:#800000 2px solid;PADDING-LEFT:4pt;MARGIN-LEFT:1pt;} Hi Chris, ? would?be very grateful for a process to set this up.? We can use Open Source Data for a?region in Asia. ? If it helps, you can submit a simple report on letterhead for an hourly fee rate.? Would really appreciate your help if possible, or someone you can recommend.? ? Thanks, ? Ivan ? Ivan Cardenas Technical Director Kestrel Technology Group ivanc at kestrel-tech.com 281 242 6349 main 713 899 1415 mobile 281 491 0379 fax ? CONFIDENTIALITY NOTICE This electronic mail transmission is confidential, may be privileged and should be read or retained only by the intended recipient. If you have received this transmission in error, please immediately notify the sender and delete it from your system. From: christopher.schmidt at nokia.com [christopher.schmidt at nokia.com] Sent: Tuesday, February 15, 2011 8:28 PM To: Ivan Cardenas Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Need to replace Google Maps API on webservice - Help! On Feb 15, 2011, at 9:12 PM, ext Ivan Cardenas wrote: > Hello All, >? > If anyone can provide a dedicated effort over the next week, to create a mapserver that can serve opensource or purchased imagery via a Google Maps API or anothe viewer that can take KML feeds, on a standalone, no network system, please let me know right away please.? Email or mobile below is best. OpenLayers can do that, at least for most browsers. (Chrome is troublesome on a machine with no network unless you're also shipping a web browser, but that's possible if you really need to.) Large/complex KML files, you're probably best just going with Google Earth and some sort of map pack to include the data you want in the cache. -- Chris > Many Thanks, >? > Sincerely, >? > Ivan Cardenas > Technical Director > Kestrel Technology Group > ivanc at kestrel-tech.com > 281 242 6349 main > 713 899 1415 mobile > 281 491 0379 fax >? > CONFIDENTIALITY NOTICE > This electronic mail transmission is confidential, may be privileged and should be read or retained only by the intended recipient. If you have received this transmission in error, please immediately notify the sender and delete it from your system. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -----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 ian.walberg at airborne.aero Tue Feb 15 23:57:33 2011 From: ian.walberg at airborne.aero (Ian Walberg) Date: Wed, 16 Feb 2011 02:57:33 -0500 Subject: [mapserver-users] Day/Night terminator layer In-Reply-To: <312790.1030.qm@web33201.mail.mud.yahoo.com> References: <312790.1030.qm@web33201.mail.mud.yahoo.com> Message-ID: Hello, Does anyone out there have an easy way of creating a day/night terminator layer? We are using mapscrpt so php is good but any help is appreciated. Many thanks Ian -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at gmail.com Wed Feb 16 05:48:14 2011 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Wed, 16 Feb 2011 06:48:14 -0700 Subject: [mapserver-users] change header template via CGI Message-ID: Hello All - I need to change my HEADER and FOOTER templates in the CGI request so I have added the following to the end of my URL: &map.web.header=templates/headerfull.html and to my map file I have added: TEMPLATEPATTERN "." but I get the error: loadWeb(): Unknown identifier. Parsing error near (templates/headerfull.html):(line 1) Can anuone tell me what I'm doing wrong? Thanks, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From jmckenna at gatewaygeomatics.com Wed Feb 16 06:15:29 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 16 Feb 2011 10:15:29 -0400 Subject: [mapserver-users] change header template via CGI In-Reply-To: References: Message-ID: <4D5BDC01.8010204@gatewaygeomatics.com> Hi Rich, With MapServer >=5, try something like $map.web=header+templates/headerfull.html (I got this from: http://www.mapserver.org/cgi/controls.html#using-mapserver-version-5) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-02-16 9:48 AM, Richard Greenwood wrote: > Hello All - > > I need to change my HEADER and FOOTER templates in the CGI request so > I have added the following to the end of my URL: > &map.web.header=templates/headerfull.html > and to my map file I have added: > TEMPLATEPATTERN "." > but I get the error: > loadWeb(): Unknown identifier. Parsing error near > (templates/headerfull.html):(line 1) > > Can anuone tell me what I'm doing wrong? > > Thanks, > Rich > From richard.greenwood at gmail.com Wed Feb 16 06:25:51 2011 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Wed, 16 Feb 2011 07:25:51 -0700 Subject: [mapserver-users] change header template via CGI In-Reply-To: <4D5BDC01.8010204@gatewaygeomatics.com> References: <4D5BDC01.8010204@gatewaygeomatics.com> Message-ID: Awesome, thanks! Rich On Wed, Feb 16, 2011 at 7:15 AM, Jeff McKenna wrote: > Hi Rich, > > With MapServer >=5, try something like > $map.web=header+templates/headerfull.html > > (I got this from: > http://www.mapserver.org/cgi/controls.html#using-mapserver-version-5) > > -jeff > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > > On 11-02-16 9:48 AM, Richard Greenwood wrote: >> >> Hello All - >> >> I need to change my HEADER and FOOTER templates in the CGI request so >> I have added the following to the end of my URL: >> ? ? &map.web.header=templates/headerfull.html >> and to my map file I have added: >> ? ? TEMPLATEPATTERN "." >> but I get the error: >> ? ? loadWeb(): Unknown identifier. Parsing error near >> (templates/headerfull.html):(line 1) >> >> Can anuone tell me what I'm doing wrong? >> >> Thanks, >> Rich >> > > _______________________________________________ > 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 isao.nasuno at ctc-g.co.jp Wed Feb 16 21:20:13 2011 From: isao.nasuno at ctc-g.co.jp (Isao NASUNO) Date: Thu, 17 Feb 2011 14:20:13 +0900 Subject: [mapserver-users] problem of legend icon for pixmap-filling type polygon layer In-Reply-To: <4D5101EF.9000802@ctc-g.co.jp> References: <4D5101EF.9000802@ctc-g.co.jp> Message-ID: <4D5CB00D.1010906@ctc-g.co.jp> Hello all, I had send same question 2 weeks ago but I have no response, so I try again with more detail of the problem. ** situation ** I'm trying to make pixmap-filled polygon maps and I did it without problem, however a problem in getting legend. I want legend icons by mapserver cgi with request "mode=legend" like following. (base pattern) (what I want) oxoxoxoxoxox xoxoxoxoxoxo oxox oxoxoxoxoxox xoxo ------> xoxoxoxoxoxo However I get following. It is like a legend icon of line layer. oxox oxox oxoxox oxoxo oxoxoxoxoxoxo oxoxo oxoxoxo oxoxo oxoxo xoxo xoxo ** version ** I'm using MapServer 5.0.2 on CentOS 5.2. I also try MapServer 5.6.x (forgot for detail), but the situation is same. ** what I did ** The symbol is defined like ... --------------------- SYMBOL NAME "symbol1" TYPE pixmap image /somewhere/symbol1.gif transparent 1 END --------------------- The layer is as following... --------------------- layer name "jimon" connectiontype postgis connection "user=db password=xxxxxxx dbname=DB host=localhost port=5432" data "the_geom from polygon" status on type polygon classitem "id" projection "init=epsg:4326" end class name "pattern1 " expression "1" style symbol "symbol1" end end : end --------------------- Could anyone please help me !? Isao From toni.pignataro at wheregroup.com Thu Feb 17 00:37:44 2011 From: toni.pignataro at wheregroup.com (Toni Pignataro) Date: Thu, 17 Feb 2011 09:37:44 +0100 Subject: [mapserver-users] visualisation of image with overviews In-Reply-To: <20110214121324.00210b98@thoe.hq.intevation.de> References: <4D554CDE.8090005@wheregroup.com> <20110214121324.00210b98@thoe.hq.intevation.de> Message-ID: <4D5CDE58.8000909@wheregroup.com> Thanks a lot to Andreas and Stephan! That have been the right suggestions. The solution for me was putting the resampling algorithm to average and using the AGG-driver for rendering the images. Best regards Toni Am 14.02.2011 12:13, schrieb Stephan Holl: > Hello Toni, > > Toni Pignataro, [20110211 - 15:51:10] > >> Hi list, >> >> I have a nonsatisfying visualisation of an geotiff image with >> overviews in mapserver. The different overviews look really poor >> zooming in the map. >> >> What i tried until now is, resampling the original image with >> gdal_addo (gdaladdo -r nearest , gdaladdo -r average_mp, gdaladdo -r >> average_magphase, gdaladdo -r mode) and i also made an gdal_translate >> (gdal_translate -of GTiff -co "TILLED=YES"), but the results did not >> look even better. >> >> Any one an suggestion how to handle the orginalimage? > > Perhaps you can play with the different resampling algorithms. > Good visual results can be made with the Average method, with a little > performance hit. > > And of course Andreas' hints are worth! > > HTH > > Stephan > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From phil7g at gmx.net Thu Feb 17 02:11:34 2011 From: phil7g at gmx.net (phil7g) Date: Thu, 17 Feb 2011 02:11:34 -0800 (PST) Subject: [mapserver-users] Re: Projection library error - EPSG Issue In-Reply-To: <4D52BA15.8060407@pobox.com> References: <1297259786770-6007730.post@n2.nabble.com> <4D52BA15.8060407@pobox.com> Message-ID: <1297937494011-6035311.post@n2.nabble.com> Hi there! Everything I get back when adding debugging is this http://gis-test.geomatik.rub.de/cgi-bin/mapserv?map=/srv/www/htdocs/GIS2/Studieren_in_Bochum.map&mode=map , which isn't very helpful... Does the error-logfile contain more information? Unfortunately, I'm not the admin of the server and I had some problems with using the mode that produces an error-logfile. I've just addes these lines: CONFIG "MS_ERRORFILE" stdout DEBUG 5 CONFIG "PROJ_DEBUG" "ON" CONFIG "CPL_DEBUG" "ON" best regards! Phil -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Projection-library-error-EPSG-Issue-tp6007730p6035311.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Bob.Bistrais at maine.gov Thu Feb 17 06:08:20 2011 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Thu, 17 Feb 2011 09:08:20 -0500 Subject: [mapserver-users] Buffer features? In-Reply-To: References: <4EFF8BB964547748A07CA32961810C041A036DD9@SOM-TEAQASMAIL1.som.w2k.state.me.us><4EFF8BB964547748A07CA32961810C041A036DED@SOM-TEAQASMAIL1.som.w2k.state.me.us><4EFF8BB964547748A07CA32961810C041A036DF1@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4EFF8BB964547748A07CA32961810C041A036DFB@SOM-TEAQASMAIL1.som.w2k.state.me.us> Thank you everyone! I've got something that basically is working now. One other thing I was curious about, with regard to a multi-ring buffer, is isolating results within one buffer range (for example, 0-50 meters, then 50-100 meters). Using a simple buffer shape will give me results for all rings, 0 to (d). I have some ideas on addressing this, basically comparing results from one range to another and eliminating duplicates. But if somebody has a better idea, I'd love to hear it. ________________________________ From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Tuesday, February 15, 2011 3:59 PM To: Bistrais, Bob Cc: mapserver-users Subject: RE: [mapserver-users] Buffer features? MapServer queries, at least some of them, respect layer tolerances which effectively acts like a buffer. You can also take the result of your buffering operation and use it in a queryByShape() operation. Make sure you set your layer tolerances appropriately (probably to 0) so that you get features that intersect with the shape. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: Tuesday, February 15, 2011 1:54 PM To: Lime, Steve D (DNR) Cc: mapserver-users Subject: RE: [mapserver-users] Buffer features? OK, that makes sense. One more thing I'm not clear on- I can draw my buffer around the selected feature. How can this buffer now be used to query another layer? I guess it's similar to other queries, but how to select this buffer feature and use it as the input to the query? ________________________________ From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Tuesday, February 15, 2011 1:43 PM To: Bistrais, Bob Cc: mapserver-users Subject: RE: [mapserver-users] Buffer features? You'd need to use 3 different layers and change your code to create 3 different buffered shapes accordingly. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: Tuesday, February 15, 2011 12:30 PM To: Lime, Steve D (DNR) Cc: mapserver-users Subject: RE: [mapserver-users] Buffer features? Not to make life more difficult, but is it possible to create a multi-ring buffer, basically 3 polygons at 3 different distances from a selected feature? ________________________________ From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Tuesday, February 15, 2011 12:22 PM To: Tamas Szekeres Cc: mapserver-users Subject: RE: [mapserver-users] Buffer features? Not quite, I'm thinking of a single layer setup: LAYER DATA myfile.shp # or whatever connection information is necessary TYPE POLYGON STATUS DEFAULT NAME 'buffered_shapes' GEOMTRANSFORM (buffer([shape], 500)) # buffer each shape by 500 map units # classes and styles follow TEMPLATE 'void' END The GEOMTRANSFORM would be applied as shapes are pulled from a data source so you would draw or, potentially, query the transformed shapes. The difference between a layer-level GEOMTRANSFORM and a style-level one is the coordinates they operate on. Layer-level work would be done on a raw feature in map coordinates and style-level works on pixels. We do layer-level stuff already, conceptually, in the form of projections and clipping. The GEOMTRANSFORM just provides a way of extending that work... Note this type of GEOMTRANSFORM expression is working for buffers in STYLEs in trunk (but using pixels for the moment). Steve From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Tuesday, February 15, 2011 11:12 AM To: Lime, Steve D (DNR) Cc: mapserver-users Subject: Re: [mapserver-users] Buffer features? Steve, Did you mean to achieve something like?: LAYER CONNECTIONTYPE TRANSFORM CONNECTION sourcelayer # reference to another layer NAME transformlayer PROCESSING "TRANSFORM=(buffer([shape]))" TEMPLATE query.html .... END LAYER CONNECTIONTYPE SHAPE DATA myfile.shp NAME sourcelayer .... END Which is simple and easy to implement. Best regards, Tamas 2011/2/15 Lime, Steve D (DNR) I'd approach RFC 22, especially the transform piece, differently now with the parser changes implemented in 6.0. We now have (with GEOS enabled) an expression syntax available to support things like buffering, convex hull, differences, etc... or combinations thereof. I'd implement layer-level GEOMTRANSFORMs in that case using these expressions. On the query result side of things I'd consider adding a layer template as a layer option. This would kinda work like the approach outlined for Bob. You'd define a presentation template layer (no DATA value) and run the query results through it instead of the regular layer (for certain querymap types, e.g. highlight). Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Tamas Szekeres Sent: Tuesday, February 15, 2011 3:06 AM To: Bistrais, Bob Cc: mapserver-users Subject: Re: [mapserver-users] Buffer features? In accordance with the problem mentioned, I recall a resonable enhancement as described in RFC22a which would provide an option to configure all the stuff in the mapfile (not requiring MapScript) and would make it easier to customize the query maps as well. With this enhancement 2 new layer data providers could be implemented, like: 1. CONNECTIONTYPE=QUERYRESULT would provide to represent the result sets of one layer in a new layer. 2. CONNECTIONTYPE=TRANSFORM would provide simple geometry transformations on a source layer and then provide the modified features as a new layer. By chaining these layers together in a map configuration we could get such results as included in the RFC document. I consider this kind of enhancement could be implemented within the scope of 1-2 days of work (comparable with a fully elaborated MapScript solution providing the same) Best regards, Tamas 2011/2/14 Bistrais, Bob This question may have come up before, but I haven't found it in the archives. I would like to take a selected feature and buffer it to a specified distance. I know it's possible to do a queryByPoint with a buffer distance, but I need to create an actual buffer shape to display on the map. Has anyone done something like this before? Does MapServer have this capability? _______________________________________________ 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.Bistrais at maine.gov Thu Feb 17 06:18:06 2011 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Thu, 17 Feb 2011 09:18:06 -0500 Subject: [mapserver-users] polygon tool Message-ID: <4EFF8BB964547748A07CA32961810C041A036DFC@SOM-TEAQASMAIL1.som.w2k.state.me.us> I am trying to create a polygon tool with PHP MapScript and JavaScript. I'd like to allow the user to draw a polygon which will eventually be used to select map features. This kind of thing probably has been done before. Can anyone direct me to some code samples? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Kai-Behncke at gmx.de Thu Feb 17 06:21:30 2011 From: Kai-Behncke at gmx.de (Kai Behncke) Date: Thu, 17 Feb 2011 15:21:30 +0100 Subject: [mapserver-users] Looking for mobile WebMapping-Applications Message-ID: <20110217142130.18380@gmx.net> Dear users, for a dissertation and an article I?m looking for mobile WebMapping-applications (means: WebMapping/WebGIS-Applications that work ob mobile handheld devices (e.g. PDAs, Smartphones)). Does anyone know such an application and send me the link please? Thank you very much, Kai -- Schon geh?rt? GMX hat einen genialen Phishing-Filter in die Toolbar eingebaut! http://www.gmx.net/de/go/toolbar From David.Fawcett at state.mn.us Thu Feb 17 06:40:56 2011 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Thu, 17 Feb 2011 08:40:56 -0600 Subject: [mapserver-users] RE: polygon tool In-Reply-To: <4EFF8BB964547748A07CA32961810C041A036DFC@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C041A036DFC@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: You might want to look at OpenLayers. www.openlayers.org Here is a basic example that allows you to draw some vector features and then select them by drawing a box. http://dev.openlayers.org/releases/OpenLayers-2.10/examples/select-feature.html David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: Thursday, February 17, 2011 8:18 AM To: mapserver-users Subject: [mapserver-users] polygon tool I am trying to create a polygon tool with PHP MapScript and JavaScript. I'd like to allow the user to draw a polygon which will eventually be used to select map features. This kind of thing probably has been done before. Can anyone direct me to some code samples? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Thu Feb 17 06:57:38 2011 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Thu, 17 Feb 2011 09:57:38 -0500 Subject: [mapserver-users] RE: polygon tool In-Reply-To: References: <4EFF8BB964547748A07CA32961810C041A036DFC@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4EFF8BB964547748A07CA32961810C041A036DFF@SOM-TEAQASMAIL1.som.w2k.state.me.us> That looks like what I'm after. But at this time we're not using Open Layers. Can this be adapted to a PHP/MapScript app? ________________________________ From: Fawcett, David (MPCA) [mailto:David.Fawcett at state.mn.us] Sent: Thursday, February 17, 2011 9:41 AM To: Bistrais, Bob; mapserver-users Subject: RE: polygon tool You might want to look at OpenLayers. www.openlayers.org Here is a basic example that allows you to draw some vector features and then select them by drawing a box. http://dev.openlayers.org/releases/OpenLayers-2.10/examples/select-featu re.html David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: Thursday, February 17, 2011 8:18 AM To: mapserver-users Subject: [mapserver-users] polygon tool I am trying to create a polygon tool with PHP MapScript and JavaScript. I'd like to allow the user to draw a polygon which will eventually be used to select map features. This kind of thing probably has been done before. Can anyone direct me to some code samples? -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Thu Feb 17 06:44:03 2011 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Thu, 17 Feb 2011 08:44:03 -0600 Subject: [mapserver-users] Looking for mobile WebMapping-Applications In-Reply-To: <20110217142130.18380@gmx.net> References: <20110217142130.18380@gmx.net> Message-ID: Kai, Take a look at this page. http://wiki.osgeo.org/wiki/Mobile_Solutions Near the bottom of the page is list of current projects. I don't know how current it is, but it is a pretty good start. David -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kai Behncke Sent: Thursday, February 17, 2011 8:22 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Looking for mobile WebMapping-Applications Dear users, for a dissertation and an article I?m looking for mobile WebMapping-applications (means: WebMapping/WebGIS-Applications that work ob mobile handheld devices (e.g. PDAs, Smartphones)). Does anyone know such an application and send me the link please? Thank you very much, Kai -- Schon geh?rt? GMX hat einen genialen Phishing-Filter in die Toolbar eingebaut! http://www.gmx.net/de/go/toolbar _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From warmerdam at pobox.com Thu Feb 17 07:00:10 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 17 Feb 2011 10:00:10 -0500 Subject: [mapserver-users] Re: Projection library error - EPSG Issue In-Reply-To: <1297937494011-6035311.post@n2.nabble.com> References: <1297259786770-6007730.post@n2.nabble.com> <4D52BA15.8060407@pobox.com> <1297937494011-6035311.post@n2.nabble.com> Message-ID: <4D5D37FA.6050107@pobox.com> On 11-02-17 05:11 AM, phil7g wrote: > > Hi there! > > Everything I get back when adding debugging is this > http://gis-test.geomatik.rub.de/cgi-bin/mapserv?map=/srv/www/htdocs/GIS2/Studieren_in_Bochum.map&mode=map > , which isn't very helpful... Does the error-logfile contain more > information? Unfortunately, I'm not the admin of the server and I had some > problems with using the mode that produces an error-logfile. I've just addes > these lines: > > CONFIG "MS_ERRORFILE" stdout > DEBUG 5 > CONFIG "PROJ_DEBUG" "ON" > CONFIG "CPL_DEBUG" "ON" > > best regards! > > Phil Phil, I suspect the problem is not finding the epsg init file. CPL_DEBUG output will go to stderr which would go into the Apache error logfile. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From David.Fawcett at state.mn.us Thu Feb 17 07:05:48 2011 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Thu, 17 Feb 2011 09:05:48 -0600 Subject: [mapserver-users] RE: polygon tool In-Reply-To: <4EFF8BB964547748A07CA32961810C041A036DFF@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C041A036DFC@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4EFF8BB964547748A07CA32961810C041A036DFF@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: I assume that with php and MapScript you still need to have some client-side code (javascript or flash/Silverlight) for the draw and select tool. David. From: Bistrais, Bob [mailto:Bob.Bistrais at maine.gov] Sent: Thursday, February 17, 2011 8:58 AM To: Fawcett, David (MPCA); mapserver-users Subject: RE: polygon tool That looks like what I'm after. But at this time we're not using Open Layers. Can this be adapted to a PHP/MapScript app? ________________________________ From: Fawcett, David (MPCA) [mailto:David.Fawcett at state.mn.us] Sent: Thursday, February 17, 2011 9:41 AM To: Bistrais, Bob; mapserver-users Subject: RE: polygon tool You might want to look at OpenLayers. www.openlayers.org Here is a basic example that allows you to draw some vector features and then select them by drawing a box. http://dev.openlayers.org/releases/OpenLayers-2.10/examples/select-feature.html David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: Thursday, February 17, 2011 8:18 AM To: mapserver-users Subject: [mapserver-users] polygon tool I am trying to create a polygon tool with PHP MapScript and JavaScript. I'd like to allow the user to draw a polygon which will eventually be used to select map features. This kind of thing probably has been done before. Can anyone direct me to some code samples? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at ci.stpaul.mn.us Thu Feb 17 10:37:40 2011 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Thu, 17 Feb 2011 12:37:40 -0600 Subject: [mapserver-users] RE: polygon tool In-Reply-To: References: <4EFF8BB964547748A07CA32961810C041A036DFC@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4D5D1694020000A80002695E@heckle> Geomoose (http://www.geomoose.org/) which is built on top of the OpenLayers LIBs, can also handle the drawing functions. This demo :http://www.geomoose.org/demo/geomoose2-webmercator/geomoose.html Look in the "Sketch Tools" pulldown list. bobb >>> "Fawcett, David (MPCA)" wrote: You might want to look at OpenLayers. www.openlayers.org Here is a basic example that allows you to draw some vector features and then select them by drawing a box. http://dev.openlayers.org/releases/OpenLayers-2.10/examples/select-feature.html David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: Thursday, February 17, 2011 8:18 AM To: mapserver-users Subject: [mapserver-users] polygon tool I am trying to create a polygon tool with PHP MapScript and JavaScript. I?d like to allow the user to draw a polygon which will eventually be used to select map features. This kind of thing probably has been done before. Can anyone direct me to some code samples? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan.mincik at gmail.com Thu Feb 17 13:23:02 2011 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Thu, 17 Feb 2011 22:23:02 +0100 Subject: [mapserver-users] Looking for mobile WebMapping-Applications In-Reply-To: <20110217142130.18380@gmx.net> References: <20110217142130.18380@gmx.net> Message-ID: On Thu, Feb 17, 2011 at 3:21 PM, Kai Behncke wrote: > Dear users, > > for a dissertation and an article I?m looking for mobile WebMapping-applications > (means: WebMapping/WebGIS-Applications that work ob mobile handheld devices (e.g. PDAs, Smartphones)). > > Does anyone know such an application and send me the link please? > We are doing some GIS software for Android. See [1]. It is GNU GPL with source code here [2] [1] - http://gista.sk/index.php/ukazky-a-navody/obrazky [2] - https://github.com/gista/GisplanDroid Ivan Ivan From Steve.Lime at state.mn.us Thu Feb 17 13:54:05 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 17 Feb 2011 15:54:05 -0600 Subject: [mapserver-users] problem of legend icon for pixmap-filling type polygon layer In-Reply-To: <4D5CB00D.1010906@ctc-g.co.jp> References: <4D5101EF.9000802@ctc-g.co.jp> <4D5CB00D.1010906@ctc-g.co.jp> Message-ID: Which driver are you using (AGG or GD)? I'll run some tests here and report back... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Isao NASUNO Sent: Wednesday, February 16, 2011 11:20 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] problem of legend icon for pixmap-filling type polygon layer Hello all, I had send same question 2 weeks ago but I have no response, so I try again with more detail of the problem. ** situation ** I'm trying to make pixmap-filled polygon maps and I did it without problem, however a problem in getting legend. I want legend icons by mapserver cgi with request "mode=legend" like following. (base pattern) (what I want) oxoxoxoxoxox xoxoxoxoxoxo oxox oxoxoxoxoxox xoxo ------> xoxoxoxoxoxo However I get following. It is like a legend icon of line layer. oxox oxox oxoxox oxoxo oxoxoxoxoxoxo oxoxo oxoxoxo oxoxo oxoxo xoxo xoxo ** version ** I'm using MapServer 5.0.2 on CentOS 5.2. I also try MapServer 5.6.x (forgot for detail), but the situation is same. ** what I did ** The symbol is defined like ... --------------------- SYMBOL NAME "symbol1" TYPE pixmap image /somewhere/symbol1.gif transparent 1 END --------------------- The layer is as following... --------------------- layer name "jimon" connectiontype postgis connection "user=db password=xxxxxxx dbname=DB host=localhost port=5432" data "the_geom from polygon" status on type polygon classitem "id" projection "init=epsg:4326" end class name "pattern1 " expression "1" style symbol "symbol1" end end : end --------------------- Could anyone please help me !? Isao _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From isao.nasuno at ctc-g.co.jp Thu Feb 17 16:29:02 2011 From: isao.nasuno at ctc-g.co.jp (Isao NASUNO) Date: Fri, 18 Feb 2011 09:29:02 +0900 Subject: [mapserver-users] problem of legend icon for pixmap-filling type polygon layer In-Reply-To: References: <4D5101EF.9000802@ctc-g.co.jp> <4D5CB00D.1010906@ctc-g.co.jp> Message-ID: <4D5DBD4E.1060009@ctc-g.co.jp> Hello Steve, I am using gd-2.0.33, with MapServer 5.0.2. Thank you, Isao (2011/02/18 6:54), Lime, Steve D (DNR) wrote: > Which driver are you using (AGG or GD)? I'll run some tests here and report back... Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Isao NASUNO > Sent: Wednesday, February 16, 2011 11:20 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] problem of legend icon for pixmap-filling type polygon layer > > Hello all, > > I had send same question 2 weeks ago but I have no response, > so I try again with more detail of the problem. > > ** situation ** > > I'm trying to make pixmap-filled polygon maps and I did it without problem, > however a problem in getting legend. > I want legend icons by mapserver cgi with request "mode=legend" like following. > > (base pattern) (what I want) > > oxoxoxoxoxox > xoxoxoxoxoxo > oxox oxoxoxoxoxox > xoxo ------> xoxoxoxoxoxo > > However I get following. It is like a legend icon of line layer. > > oxox oxox > oxoxox oxoxo > oxoxoxoxoxoxo > oxoxo oxoxoxo > oxoxo oxoxo > xoxo xoxo > > ** version ** > > I'm using MapServer 5.0.2 on CentOS 5.2. > I also try MapServer 5.6.x (forgot for detail), but the situation is same. > > > ** what I did ** > > The symbol is defined like ... > --------------------- > SYMBOL > NAME "symbol1" > TYPE pixmap > image /somewhere/symbol1.gif > transparent 1 > END > --------------------- > > The layer is as following... > --------------------- > layer > name "jimon" > connectiontype postgis > connection "user=db password=xxxxxxx dbname=DB host=localhost port=5432" > data "the_geom from polygon" > status on > type polygon > classitem "id" > projection > "init=epsg:4326" > end > > class > name "pattern1 " > expression "1" > style > symbol "symbol1" > end > end > : > end > --------------------- > > Could anyone please help me !? > > Isao > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > From Gabe at Agtrix.com Thu Feb 17 21:04:51 2011 From: Gabe at Agtrix.com (Gabe Codina) Date: Fri, 18 Feb 2011 16:04:51 +1100 Subject: [mapserver-users] Clip Raster with a Polygon Message-ID: <00bb01cbcf29$600d1530$20273f90$@com> Hi I would like to serve a raster layer that is spatially filtered - ie the raster should show through where it overlaps with 1 or more polygons. Is mapserver capable of doing this ? Gabe Codina -------------- next part -------------- An HTML attachment was scrubbed... URL: From tom at vdputte.nl Thu Feb 17 23:37:39 2011 From: tom at vdputte.nl (Tom van der Putte) Date: Fri, 18 Feb 2011 08:37:39 +0100 Subject: [mapserver-users] RE: polygon tool Message-ID: <3650.1298014659@vdputte.nl> Hi Bob, You could also try using Fusion, it also has a polygon tool in there, but again its based on Open Layers. I gues you can make your own, but you'd need some sort of framework that converts the drawn polygon to the location, projection and units that your basemap is in, for which openLayers is the perfect framework I think. Tom van der Putte From: mapserver-users-bounces at lists.osgeo.org [1] [mapserver-users-bounces at lists.osgeo.org [2]] On Behalf Of Bistrais, Bob Sent: Thursday, February 17, 2011 8:18 AM To: mapserver-users Subject: [mapserver-users] polygon tool I am trying to create a polygon tool with PHP MapScript and JavaScript. I used to select map features. This kind of thing probably has been done before. Can anyone direct me to some code samples? Links: ------ [1] mailto:mapserver-users-bounces at lists.osgeo.org [2] mailto:mapserver-users-bounces at lists.osgeo.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From noorcs22 at gmail.com Fri Feb 18 01:47:16 2011 From: noorcs22 at gmail.com (Mustafa Noor) Date: Fri, 18 Feb 2011 10:47:16 +0100 Subject: [mapserver-users] MY email address Message-ID: this is my email address. noorcs22 at gmail.com From noorcs22 at gmail.com Fri Feb 18 02:26:55 2011 From: noorcs22 at gmail.com (Mustafa646) Date: Fri, 18 Feb 2011 02:26:55 -0800 (PST) Subject: [mapserver-users] How i check Mapserver is installed or not ? Message-ID: <1298024815956-6039430.post@n2.nabble.com> I have installed MS4W (full) and choose port 8080 because on port 80 i have already installed IIS7. Now installation of MS4W is successful , but how i check ? I put http://localhost:8080/ in my browser, but i could not see the page. any idea how to fix it ? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-i-check-Mapserver-is-installed-or-not-tp6039430p6039430.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Fri Feb 18 03:50:17 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 18 Feb 2011 07:50:17 -0400 Subject: [mapserver-users] How i check Mapserver is installed or not ? In-Reply-To: <1298024815956-6039430.post@n2.nabble.com> References: <1298024815956-6039430.post@n2.nabble.com> Message-ID: <4D5E5CF9.9090602@gatewaygeomatics.com> On 11-02-18 6:26 AM, Mustafa646 wrote: > > I have installed MS4W (full) and choose port 8080 because on port 80 i have > already installed IIS7. Now installation of MS4W is successful , but how i > check ? I put http://localhost:8080/ in my browser, but i could not see the > page. > > any idea how to fix it ? > Hello, Please send your question to the MS4W mailing list and we can assist you there (subscribe at http://lists.maptools.org/mailman/listinfo/ms4w-users). -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From Jukka.Rahkonen at mmmtike.fi Fri Feb 18 03:53:59 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 18 Feb 2011 13:53:59 +0200 Subject: [mapserver-users] How i check Mapserver is installed or not ? In-Reply-To: <1298024815956-6039430.post@n2.nabble.com> References: <1298024815956-6039430.post@n2.nabble.com> Message-ID: Hi, In MS4W case your test is valid and http://localhost:8080/ should show you the MS4W main web page. Moreover, a better test to see if Mapserver CGI is found is to send http://localhost:8080/cgi-bin/mapserv.exe It should return "No query information to decode. QUERY_STRING is set, but empty. " Obviously your Apache is not running. Two suggestions: - Open a command window and run ms4w\apache-install.bat from there. You may see some messages on the screen. - If Apache does not start that way it can be because something prevents Windows to install Apache as a service. Try then to run is executable by opening a command window, going to ms4w\apache\bin and running httpd.exe. Look at the screen for error messages. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Mustafa646 > L?hetetty: 18. helmikuuta 2011 12:27 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] How i check Mapserver is installed or not ? > > > I have installed MS4W (full) and choose port 8080 because on > port 80 i have > already installed IIS7. Now installation of MS4W is > successful , but how i > check ? I put http://localhost:8080/ in my browser, but i > could not see the > page. > > any idea how to fix it ? > > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/How-i-check-Mapserver-i > s-installed-or-not-tp6039430p6039430.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Jukka.Rahkonen at mmmtike.fi Fri Feb 18 04:02:28 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 18 Feb 2011 14:02:28 +0200 Subject: [mapserver-users] Clip Raster with a Polygon In-Reply-To: <00bb01cbcf29$600d1530$20273f90$@com> References: <00bb01cbcf29$600d1530$20273f90$@com> Message-ID: Hi, I have been thinking sometimes that there could be a huge polygon that is always drawn on top of the raster layer. 'Area of interest' polygons should be converted into holes in the mask polygon. I have never tried it in practice, though. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Gabe Codina L?hetetty: 18. helmikuuta 2011 7:05 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Clip Raster with a Polygon Hi I would like to serve a raster layer that is spatially filtered - ie the raster should show through where it overlaps with 1 or more polygons. Is mapserver capable of doing this ? Gabe Codina -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Fri Feb 18 06:32:30 2011 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Fri, 18 Feb 2011 08:32:30 -0600 Subject: [mapserver-users] Clip Raster with a Polygon In-Reply-To: References: <00bb01cbcf29$600d1530$20273f90$@com> Message-ID: I have done this with static mask images. It wouldn't be hard to pass the ID of the feature that you want to be the 'hole' in the URL and then use that url variable in an expression for that layer/class . David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: Friday, February 18, 2011 6:02 AM To: Gabe Codina; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Clip Raster with a Polygon Hi, I have been thinking sometimes that there could be a huge polygon that is always drawn on top of the raster layer. 'Area of interest' polygons should be converted into holes in the mask polygon. I have never tried it in practice, though. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Gabe Codina L?hetetty: 18. helmikuuta 2011 7:05 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Clip Raster with a Polygon Hi I would like to serve a raster layer that is spatially filtered - ie the raster should show through where it overlaps with 1 or more polygons. Is mapserver capable of doing this ? Gabe Codina -------------- next part -------------- An HTML attachment was scrubbed... URL: From lelentzisapostolos at gmail.com Fri Feb 18 06:35:23 2011 From: lelentzisapostolos at gmail.com (=?ISO-8859-7?B?wdDP09TPy8/TIMvFy8XN1MbH0w==?=) Date: Fri, 18 Feb 2011 16:35:23 +0200 Subject: [mapserver-users] Client-side applications for visualizing mapfiles Message-ID: Hello everybody I am a new mapserver user and i need your knowledge and your experience. I know that the heart of mapserver is the mapfile. Also, i can use html files and templates fro visualizing the layers of mapfile in a web-browser. But, i want a more interactive, flexible and quickly solution. Could you suggest me anything?? I know that there are many client-side applications to rend WMS and WFS servers like OpenLayers, Fusion, dbox, Chameleon, GMap, CartoWeb. However, i would like a good explanation, regarding which is the best choice! Moreover, i am grateful, if you send me some tutorial!! Thanks in advance Apostolos -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at ci.stpaul.mn.us Fri Feb 18 07:04:37 2011 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Fri, 18 Feb 2011 09:04:37 -0600 Subject: [mapserver-users] Clip Raster with a Polygon In-Reply-To: References: <00bb01cbcf29$600d1530$20273f90$@com> Message-ID: <4D5E3625020000A800026A17@heckle> I've done some interesting things by setting a background color, and then removing features (NOT these) by coloring them WHITE, which is then converted to transparent, which then works like a mask. bobb >>> "Rahkonen Jukka" wrote: Hi, I have been thinking sometimes that there could be a huge polygon that is always drawn on top of the raster layer. 'Area of interest' polygons should be converted into holes in the mask polygon. I have never tried it in practice, though. -Jukka Rahkonen- L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Gabe Codina L?hetetty: 18. helmikuuta 2011 7:05 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Clip Raster with a Polygon Hi I would like to serve a raster layer that is spatially filtered ? ie the raster should show through where it overlaps with 1 or more polygons. Is mapserver capable of doing this ? Gabe Codina -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at ci.stpaul.mn.us Fri Feb 18 07:27:02 2011 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Fri, 18 Feb 2011 09:27:02 -0600 Subject: [mapserver-users] TEMPLATE generation completion (NOT!) Message-ID: <4D5E3B66020000A800026A29@heckle> All, I've been chasing this one around for a day now. For some reason (might be a part of our funky configuration too, but ) a TEMPLATE "FOOTER" will not get pasted to the bottom of the output. The HEADER and RECORD values populate just fine, I have many (MANY) other layers in the same configuration that work just fine as well. My question, anyone got and ideas about why a FOOTER template chunk will not populate on a MapServer request? I've looked at: * Permissions on the file (same as all others) * Content of TEMPLATE chunk (it only contains "" ), I even recreated it a couple of times manually. * I checked the mapfile (but everything else works, the legend, the image output, the HEADER and RECORD output . . . * The data is even popping out in the IMAGEMAP correcrtly. * Moved around the map with different areas of interest, different numbers of returned records. Thanks (from bewildered!!) bobb Here is the MAPFILE and TEMPLATES: MAP NAME 'RSVP' EXTENT 573387 162092 574211 162555 STATUS ON SYMBOLSET inventory.symbols FONTSET RESOURCES/inventory.fonts TRANSPARENT TRUE IMAGETYPE PNG LAYER METADATA "ows_title" "Surface Class" "gml_include_items" "all" "qstring_validation_pattern" "." "fido_search_items" "" "fido_search_titles" "" END NAME 'SURFACE CLASS' GROUP 'SURFACE CLASS' DATA 'DATA/Surface_Class' STATUS DEFAULT TYPE POLYGON CLASSITEM 'GRIDCODE' CLASS NAME 'Tree Canopy' EXPRESSION /1/ COLOR 38 94 0 OUTLINECOLOR 100 100 100 END CLASS NAME 'Turf/Grass' EXPRESSION /2/ COLOR 203 214 139 OUTLINECOLOR 100 100 100 END CLASS NAME 'Bare Soil' EXPRESSION /3/ COLOR 168 112 0 OUTLINECOLOR 100 100 100 END CLASS NAME 'Water' EXPRESSION /4/ COLOR 151 219 242 OUTLINECOLOR 100 100 100 END CLASS NAME 'Buildings' EXPRESSION /5/ COLOR 92 43 0 OUTLINECOLOR 100 100 100 END CLASS NAME 'Impervious Surface' EXPRESSION /6/ COLOR 78 78 78 OUTLINECOLOR 100 100 100 END TEMPLATE './TEMPLATES/surface_class_record.xml' HEADER './TEMPLATES/surface_class_header.xml' FOOTER './TEMPLATES/surface_class_footer.xml' END END ---------------- Header ---------------- ---------------- Record ---------------- Surface Classification [GRIDCODE] ---------------- Footer -- (OUTPUT BREAKS HERE!!!) ---------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri Feb 18 07:32:28 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 18 Feb 2011 09:32:28 -0600 Subject: [mapserver-users] TEMPLATE generation completion (NOT!) In-Reply-To: <4D5E3B66020000A800026A29@heckle> References: <4D5E3B66020000A800026A29@heckle> Message-ID: I would assume it's barfing before it even gets to the footer. Are you absolutely sure the surface class record is being processed completely for all search results? If you break the footer name intentionally in the mapfile does MapServer complain? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bob Basques Sent: Friday, February 18, 2011 9:27 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] TEMPLATE generation completion (NOT!) All, I've been chasing this one around for a day now. For some reason (might be a part of our funky configuration too, but ) a TEMPLATE "FOOTER" will not get pasted to the bottom of the output. The HEADER and RECORD values populate just fine, I have many (MANY) other layers in the same configuration that work just fine as well. My question, anyone got and ideas about why a FOOTER template chunk will not populate on a MapServer request? I've looked at: * Permissions on the file (same as all others) * Content of TEMPLATE chunk (it only contains "" ), I even recreated it a couple of times manually. * I checked the mapfile (but everything else works, the legend, the image output, the HEADER and RECORD output . . . * The data is even popping out in the IMAGEMAP correcrtly. * Moved around the map with different areas of interest, different numbers of returned records. Thanks (from bewildered!!) bobb Here is the MAPFILE and TEMPLATES: MAP NAME 'RSVP' EXTENT 573387 162092 574211 162555 STATUS ON SYMBOLSET inventory.symbols FONTSET RESOURCES/inventory.fonts TRANSPARENT TRUE IMAGETYPE PNG LAYER METADATA "ows_title" "Surface Class" "gml_include_items" "all" "qstring_validation_pattern" "." "fido_search_items" "" "fido_search_titles" "" END NAME 'SURFACE CLASS' GROUP 'SURFACE CLASS' DATA 'DATA/Surface_Class' STATUS DEFAULT TYPE POLYGON CLASSITEM 'GRIDCODE' CLASS NAME 'Tree Canopy' EXPRESSION /1/ COLOR 38 94 0 OUTLINECOLOR 100 100 100 END CLASS NAME 'Turf/Grass' EXPRESSION /2/ COLOR 203 214 139 OUTLINECOLOR 100 100 100 END CLASS NAME 'Bare Soil' EXPRESSION /3/ COLOR 168 112 0 OUTLINECOLOR 100 100 100 END CLASS NAME 'Water' EXPRESSION /4/ COLOR 151 219 242 OUTLINECOLOR 100 100 100 END CLASS NAME 'Buildings' EXPRESSION /5/ COLOR 92 43 0 OUTLINECOLOR 100 100 100 END CLASS NAME 'Impervious Surface' EXPRESSION /6/ COLOR 78 78 78 OUTLINECOLOR 100 100 100 END TEMPLATE './TEMPLATES/surface_class_record.xml' HEADER './TEMPLATES/surface_class_header.xml' FOOTER './TEMPLATES/surface_class_footer.xml' END END ---------------- Header ---------------- ---------------- Record ---------------- Surface Classification [GRIDCODE] ---------------- Footer -- (OUTPUT BREAKS HERE!!!) ---------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Fri Feb 18 07:39:28 2011 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Fri, 18 Feb 2011 10:39:28 -0500 Subject: [mapserver-users] QueryByAttribute sometimes not working Message-ID: <4EFF8BB964547748A07CA32961810C041A036E0F@SOM-TEAQASMAIL1.som.w2k.state.me.us> I'm having a strange problem with a queryByAttributes operation in a MapServer application. Most of the time it works correctly, but sometimes it returns 0 results. It is querying a shapefile, if that gives a clue. My first suspicion was the data wasn't matching the query expression. But I checked and it appears to be correct. To add to the confusion, the application will sometimes select the queried feature, but not always. Here is the query expression: $query = "( ('[GEOCODE]' == '".$_SESSION['geocode']."') && ('[PLAN]' == '".$_SESSION['plan']."') && ('[LOT]' == '".$_SESSION['lot']."') )"; And here is the execution of the query: $oLayer _parcels->queryByAttributes("GEOCODE", $query, MS_SINGLE); I echoed back the query statement, and it looks correct. This one is pretty confusing. Has anyone seen anything like this? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri Feb 18 07:55:21 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 18 Feb 2011 09:55:21 -0600 Subject: [mapserver-users] problem of legend icon for pixmap-filling type polygon layer In-Reply-To: <4D5DBD4E.1060009@ctc-g.co.jp> References: <4D5101EF.9000802@ctc-g.co.jp> <4D5CB00D.1010906@ctc-g.co.jp> <4D5DBD4E.1060009@ctc-g.co.jp> Message-ID: I can confirm the issue. Not sure what's going on but something's broken in the legend generation. I'll try and sum things up and file a ticket against 5.6. We won't patch back to 5.0 for something like this. As a workaround you might consider setting a KEYIMAGE in your class definition. Make it the same size as your legend "chips" (usually something like 25x15) and that image will be used instead of creating one dynamically. I tried that here and it seems to work. You should be able to clip a section of a MapServer-created map out for this purpose. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Isao NASUNO Sent: Thursday, February 17, 2011 6:29 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] problem of legend icon for pixmap-filling type polygon layer Hello Steve, I am using gd-2.0.33, with MapServer 5.0.2. Thank you, Isao (2011/02/18 6:54), Lime, Steve D (DNR) wrote: > Which driver are you using (AGG or GD)? I'll run some tests here and report back... Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Isao NASUNO > Sent: Wednesday, February 16, 2011 11:20 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] problem of legend icon for pixmap-filling type polygon layer > > Hello all, > > I had send same question 2 weeks ago but I have no response, > so I try again with more detail of the problem. > > ** situation ** > > I'm trying to make pixmap-filled polygon maps and I did it without problem, > however a problem in getting legend. > I want legend icons by mapserver cgi with request "mode=legend" like following. > > (base pattern) (what I want) > > oxoxoxoxoxox > xoxoxoxoxoxo > oxox oxoxoxoxoxox > xoxo ------> xoxoxoxoxoxo > > However I get following. It is like a legend icon of line layer. > > oxox oxox > oxoxox oxoxo > oxoxoxoxoxoxo > oxoxo oxoxoxo > oxoxo oxoxo > xoxo xoxo > > ** version ** > > I'm using MapServer 5.0.2 on CentOS 5.2. > I also try MapServer 5.6.x (forgot for detail), but the situation is same. > > > ** what I did ** > > The symbol is defined like ... > --------------------- > SYMBOL > NAME "symbol1" > TYPE pixmap > image /somewhere/symbol1.gif > transparent 1 > END > --------------------- > > The layer is as following... > --------------------- > layer > name "jimon" > connectiontype postgis > connection "user=db password=xxxxxxx dbname=DB host=localhost port=5432" > data "the_geom from polygon" > status on > type polygon > classitem "id" > projection > "init=epsg:4326" > end > > class > name "pattern1 " > expression "1" > style > symbol "symbol1" > end > end > : > end > --------------------- > > Could anyone please help me !? > > Isao > _______________________________________________ > 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.Hildebrand at afsc.ca Fri Feb 18 09:07:59 2011 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Fri, 18 Feb 2011 10:07:59 -0700 Subject: [mapserver-users] PHP version In-Reply-To: <4D52C872.3030803@dmsolutions.ca> References: <4D52C872.3030803@dmsolutions.ca> Message-ID: <9188AB5935664040805E01E348A2B81D1BF69106@lacex1.afsc.ads> I am running MapServer 5.3-dev (ms4w) and I'm wondering what version of PHP is being shipped with that. I'm trying to use PHP date functions and they don't seem to work as documented so I'm wondering if I need to look at different PHP documentation. How can I find out the PHP version? Thanks. =========================== David V. Hildebrand Agriculture Financial Services Corporation (403) 782-8239 www.afsc.ca > This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Fri Feb 18 09:25:50 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 18 Feb 2011 13:25:50 -0400 Subject: [mapserver-users] PHP version In-Reply-To: <9188AB5935664040805E01E348A2B81D1BF69106@lacex1.afsc.ads> References: <4D52C872.3030803@dmsolutions.ca> <9188AB5935664040805E01E348A2B81D1BF69106@lacex1.afsc.ads> Message-ID: <4D5EAB9E.6010801@gatewaygeomatics.com> For the record this person cross-posted this to multiple mailing lists, and responses were provided to the MS4W mailing list (http://osgeo-org.1803224.n2.nabble.com/Re-gdal-dev-libKML-driver-missing-tt6008579.html#a6040742) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-02-18 1:07 PM, David Hildebrand wrote: > I am running MapServer 5.3-dev (ms4w) and I?m wondering what version of > PHP is being shipped with that. I?m trying to use PHP date functions and > they don?t seem to work as documented so I?m wondering if I need to look > at different PHP documentation. How can I find out the PHP version? > > Thanks. > > =========================== > David V. Hildebrand > Agriculture Financial Services Corporation > (403) 782-8239 > > www.afsc.ca _<_http://www.afsc.ca _> > _This communication is intended for the use of the recipient to which it > is addressed, and may contain confidential, personal and/or privileged > information. Please contact Agriculture Financial Services Corporation > immediately if you are not the intended recipient of this communication, > and do not copy, distribute, or take action relying on it. Any > communication received in error, or subsequent reply, should be deleted > or destroyed. Please consider the environment before printing this email. > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Bob.Bistrais at maine.gov Fri Feb 18 09:54:22 2011 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Fri, 18 Feb 2011 12:54:22 -0500 Subject: [mapserver-users] QueryByAttribute sometimes not working In-Reply-To: <4EFF8BB964547748A07CA32961810C041A036E0F@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C041A036E0F@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4EFF8BB964547748A07CA32961810C041A036E12@SOM-TEAQASMAIL1.som.w2k.state.me.us> After working with this a little more, I found another symptom- Queries on the layer work just fine when the application is loaded or refreshed. But when I attempt a subsequent query on the layer, I get 0 results. That suggests to me that the query, or layer, somehow needs to be cleared. Does anyone know how this can be done? I don't see something like a clearquery method. ________________________________ From: Bistrais, Bob Sent: Friday, February 18, 2011 10:39 AM To: mapserver-users Subject: [mapserver-users] QueryByAttribute sometimes not working I'm having a strange problem with a queryByAttributes operation in a MapServer application. Most of the time it works correctly, but sometimes it returns 0 results. It is querying a shapefile, if that gives a clue. My first suspicion was the data wasn't matching the query expression. But I checked and it appears to be correct. To add to the confusion, the application will sometimes select the queried feature, but not always. Here is the query expression: $query = "( ('[GEOCODE]' == '".$_SESSION['geocode']."') && ('[PLAN]' == '".$_SESSION['plan']."') && ('[LOT]' == '".$_SESSION['lot']."') )"; And here is the execution of the query: $oLayer _parcels->queryByAttributes("GEOCODE", $query, MS_SINGLE); I echoed back the query statement, and it looks correct. This one is pretty confusing. Has anyone seen anything like this? -------------- next part -------------- An HTML attachment was scrubbed... URL: From dshorthouse at eol.org Fri Feb 18 10:12:08 2011 From: dshorthouse at eol.org (Shorthouse, David) Date: Fri, 18 Feb 2011 13:12:08 -0500 Subject: [mapserver-users] RE: polygon tool In-Reply-To: <3650.1298014659@vdputte.nl> References: <3650.1298014659@vdputte.nl> Message-ID: Bob, This may not be what you have in mind, but you're welcome to take a peek at: http://bsc-localities.webhop.org/. Please note however that this is a very interim service under development and the URL will most certainly change. This was build in pure PHP MapScript and if you would like the code, drop me a line; I haven't yet deposited it anywhere. Cheers, David P. Shorthouse On Fri, Feb 18, 2011 at 2:37 AM, Tom van der Putte wrote: > Hi Bob, > > You could also try using Fusion, it also has a polygon tool in there, but > again its based on Open Layers. I gues you can make your own, but you'd need > some sort of framework that converts the drawn polygon to the location, > projection and units that your basemap is in, for which openLayers is the > perfect framework I think. > > Tom van der Putte > > > From: mapserver-users-bounces at lists.osgeo.org > [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, > Bob > Sent: Thursday, February 17, 2011 8:18 AM > To: mapserver-users > Subject: [mapserver-users] polygon tool > > > I am trying to create a polygon tool with PHP MapScript and JavaScript. > I > used to select map features. This kind of thing probably has been done > before. Can anyone direct me to some code samples? > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From mike at gisrangers.com Fri Feb 18 10:50:27 2011 From: mike at gisrangers.com (Michael Neimeyer) Date: Fri, 18 Feb 2011 12:50:27 -0600 Subject: [mapserver-users] MySQL Join Message-ID: Hello all - I am trying to do a Join from a shapefile to a MySQL table but I am getting an internal error. I am not interested in any spatial reference, I just want to link up the shapefile to the MySQL table to reference data for the identify service. One thing I noticed is the templates for the JOIN are not being recognized so that might be causing an issue. I don't need to use the JOIN templates as I plan on defining the columns in the Metadata reference. Any idea why the JOIN might not be working for MySQL? Is there a certain version of MySQL that is needed for MapServer? Thanks for your help! Mike * ----------------------------------------------------------------------------------- * *Mike Neimeyer GIS Project Manager* *GIS Rangers, LLC. 2434 Virginia Circle Roseville, MN. 55113 (M) 612.695.7325 **mike at gisrangers.com* -------------- next part -------------- An HTML attachment was scrubbed... URL: From boolean10001 at yahoo.com Fri Feb 18 11:05:29 2011 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Fri, 18 Feb 2011 11:05:29 -0800 (PST) Subject: [mapserver-users] Client-side applications for visualizing mapfiles Message-ID: <470681.65176.qm@web38204.mail.mud.yahoo.com> Apostlolos, If you just want to render mapfiles to learn how to configure a map file, there's an utility program called shp2img which takes a map file as input and produces the GIF/JPG/PNG output file. Cheers from M?xico IC Carlos Ruiz ________________________________ From: ????????? ????????? To: mapserver-users at lists.osgeo.org Sent: Friday, February 18, 2011 8:35 AM Subject: [mapserver-users] Client-side applications for visualizing mapfiles Hello everybody I am a new mapserver user and i need your knowledge and your experience. I know that the heart of mapserver is the mapfile. Also, i can use html files and templates fro visualizing the layers of mapfile in a web-browser. But, i want a more interactive, flexible and quickly solution. Could you suggest me anything?? I know that there are many client-side applications to rend WMS and WFS servers like OpenLayers, Fusion, dbox, Chameleon, GMap, CartoWeb. However, i would like a good explanation, regarding which is the best choice! Moreover, i am grateful, if you send me some tutorial!! Thanks in advance Apostolos _______________________________________________ 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 Fri Feb 18 11:22:48 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 18 Feb 2011 15:22:48 -0400 Subject: [mapserver-users] MySQL Join In-Reply-To: References: Message-ID: <4D5EC708.1050201@gatewaygeomatics.com> Hello Mike, This news won't help you, but when I was testing and documenting MapServer joins I ran into the same mapserv crash with MySQL 5.1.49 on Windows (see the bottom of http://www.mapserver.org/mapfile/join.html); but at the time I assumed I was doing something wrong with MySQL. Or it is possible that there is a problem here. Do others have this same problem? If yes, then we should file a MapServer ticket with a small test case. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-02-18 2:50 PM, Michael Neimeyer wrote: > Hello all - > > I am trying to do a Join from a shapefile to a MySQL table but I am > getting an internal error. I am not interested in any spatial > reference, I just want to link up the shapefile to the MySQL table to > reference data for the identify service. One thing I noticed is the > templates for the JOIN are not being recognized so that might be causing > an issue. I don't need to use the JOIN templates as I plan on defining > the columns in the Metadata reference. > > Any idea why the JOIN might not be working for MySQL? Is there a > certain version of MySQL that is needed for MapServer? > > Thanks for your help! > > > Mike > From xiaodong.zhang2 at und.edu Fri Feb 18 14:25:44 2011 From: xiaodong.zhang2 at und.edu (Xiaodong Zhang) Date: Fri, 18 Feb 2011 16:25:44 -0600 Subject: [mapserver-users] township/range/section to boundary polygon Message-ID: <4D5EF1E8.3080306@und.edu> Hi, We need to develop an MapServer application requiring translating township/range/section into the boundary. Just wondering if any of you would like share how to use web service provided by NILS (National Integrated Land System, http://www.geocommunicator.gov)? Thanks Xiaodong -- Xiaodong Zhang, Ph. D Associate Professor Department of Earth System Science and Policy University of North Dakota Tel: (701) 777-6087 http://www.und.edu/instruct/zhang From bfraser at geoanalytic.com Fri Feb 18 20:47:53 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 18 Feb 2011 21:47:53 -0700 Subject: [mapserver-users] township/range/section to boundary polygon In-Reply-To: <4D5EF1E8.3080306@und.edu> References: <4D5EF1E8.3080306@und.edu> Message-ID: <4D5F4B79.8000208@geoanalytic.com> Why not just download the shapefiles, or is it a specific requirement to use the service? Best Regards, Brent Fraser On 2/18/2011 3:25 PM, Xiaodong Zhang wrote: > Hi, > > We need to develop an MapServer application requiring translating > township/range/section into the boundary. Just wondering if any of you > would like share how to use web service provided by NILS (National > Integrated Land System, http://www.geocommunicator.gov)? > > Thanks > Xiaodong > From fruitwerks at gmail.com Sat Feb 19 10:10:07 2011 From: fruitwerks at gmail.com (fruitwerks) Date: Sat, 19 Feb 2011 10:10:07 -0800 Subject: [mapserver-users] mapscript - unable to draw map (new server) Message-ID: Hi everyone, I'm a bit stuck and I'm not sure what is going on, I moved to a newer server - but I can't find any information that is of any use. I am unable to draw my map - permissions and the mapfile is fine. here is a link: http://www.timbermap.com/view_forest_uk.php?id=57 This includes a var_dump of the map object I am passing to draw() Here is the code that fails: $image=$map->draw(); $image_url=$image->saveWebImage(); What is different on the serer is newer GD (1.? to 2.0), mapscript (5.0.3 to 5.6.1) Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From xiaodong.zhang2 at und.edu Sat Feb 19 11:12:48 2011 From: xiaodong.zhang2 at und.edu (Xiaodong Zhang) Date: Sat, 19 Feb 2011 13:12:48 -0600 Subject: [mapserver-users] township/range/section to boundary polygon In-Reply-To: <4D5F4B79.8000208@geoanalytic.com> References: <4D5EF1E8.3080306@und.edu> <4D5F4B79.8000208@geoanalytic.com> Message-ID: <4D601630.20801@und.edu> Hi Brent, The reason is that we need to do this for entire US and I had thought there might be too much data. If it is not too much work, I may just try to download the shapefile and put them into PostGIS. Thanks Xiaodong On 2/18/2011 10:47 PM, Brent Fraser wrote: > Why not just download the shapefiles, or is it a specific requirement > to use the service? > > Best Regards, > Brent Fraser > > > On 2/18/2011 3:25 PM, Xiaodong Zhang wrote: >> Hi, >> >> We need to develop an MapServer application requiring translating >> township/range/section into the boundary. Just wondering if any of >> you would like share how to use web service provided by NILS >> (National Integrated Land System, http://www.geocommunicator.gov)? >> >> Thanks >> Xiaodong >> > From glp at xplornet.com Sat Feb 19 11:30:59 2011 From: glp at xplornet.com (Gregory) Date: Sat, 19 Feb 2011 14:30:59 -0500 Subject: [mapserver-users] Troubleshooting a cascading mapserver install. Message-ID: <4D601A73.50006@xplornet.com> Hi all, I've recently setup a mapserver install on a linux machine. So far the mapfile is written to pull other images from other servers. But unfortunately I get a blank return image and using google earth to display shows a big red "X"! Here's the mapfile: # # Start of map file # MAP NAME BLACKBERRY STATUS ON SIZE 1000 1000 EXTENT -180 -90 180 90 IMAGECOLOR 139 137 137 IMAGETYPE PNG24 UNITS DD WEB IMAGEPATH "/home/greg/public_html/mapserverdemo/tmp" IMAGEURL "/tmp/" METADATA WMS_TITLE "Blackberry WMS Server" WMS_ABSTRACT "This is a WMS application for display on a blackberry." WMS_ACCESSCONSTRAINTS "none" WMS_SRS "EPSG:4326" END END LAYER NAME "CONUS NEXRAD Base Reflectivity (n0r)" STATUS ON TYPE RASTER CONNECTION "http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi?" CONNECTIONTYPE WMS METADATA "wms_format" "image/png" "wms_srs" "EPSG:4326" "wms_name" "nexrad-n0r-m05m" "wms_server_version" "1.1.1" END END LAYER NAME "CONUS NEXRAD Storm Total Precipitation (ntp)" STATUS ON TYPE RASTER CONNECTION "http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/ntp.cgi?" CONNECTIONTYPE WMS METADATA "wms_format" "image/png" "wms_srs" "EPSG:4326" "wms_name" "nexrad-ntp" "wms_server_version" "1.1.1" END END LAYER NAME "NWS Current Polygon Warnings" STATUS ON TYPE RASTER CONNECTION "http://mesonet.agron.iastate.edu/cgi-bin/wms/us/wwa.cgi?" CONNECTIONTYPE WMS METADATA "wms_format" "image/png" "wms_srs" "EPSG:4326" "wms_name" "warnings_p" "wms_server_version" "1.1.1" END END END # Map File Testing with shp2img works and I get some nice outputs from my mapfile. But once I pop it into a wms client, nothing seems to show. Is it my extents boundaries? From noorcs22 at gmail.com Sun Feb 20 05:05:53 2011 From: noorcs22 at gmail.com (Mustafa646) Date: Sun, 20 Feb 2011 05:05:53 -0800 (PST) Subject: [mapserver-users] How I solve This Exception Message-ID: <1298207153109-6045646.post@n2.nabble.com> I am using C# MapScript in ASP.Net Application. I am getting an exception at this line: mapObj map = new mapObj(System.Configuration.ConfigurationManager.AppSettings["mapFilePath"].ToString()); Exception: The type initializer for 'OSGeo.MapServer.mapscriptPINVOKE' threw an exception. Can anybody have an idea about this, what is wrong ? this is code of a sample application from: http://www.paolocorti.net/2006/07/26/implementing-the-c-mapscript-code/ -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-I-solve-This-Exception-tp6045646p6045646.html Sent from the Mapserver - User mailing list archive at Nabble.com. From noorcs22 at gmail.com Sun Feb 20 08:56:18 2011 From: noorcs22 at gmail.com (Mustafa646) Date: Sun, 20 Feb 2011 08:56:18 -0800 (PST) Subject: [mapserver-users] can we import google map in C# Mapscript Asp.net Application Message-ID: <1298220978179-6046129.post@n2.nabble.com> i want to import google map in my C# MapScript application. is it possible ? i also want to draw shapefile over Google Map, is it possible ? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/can-we-import-google-map-in-C-Mapscript-Asp-net-Application-tp6046129p6046129.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at swoodbridge.com Sun Feb 20 10:42:15 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 20 Feb 2011 13:42:15 -0500 Subject: [mapserver-users] can we import google map in C# Mapscript Asp.net Application In-Reply-To: <1298220978179-6046129.post@n2.nabble.com> References: <1298220978179-6046129.post@n2.nabble.com> Message-ID: <4D616087.4090607@swoodbridge.com> On 2/20/2011 11:56 AM, Mustafa646 wrote: > > i want to import google map in my C# MapScript application. is it possible ? This is in violation of Google's Terms of Use. > i also want to draw shapefile over Google Map, is it possible ? I think you should look at something like OpenLayers which does allow you to use Google as a Base Map and allows you to then overlay other data layers over that. So you could for example setup mapserver to render you shapefile and have OpenLayers display this as an overlay on top of a Google map base layer. But you do not need C# to do any of this. -Steve W From szekerest at gmail.com Sun Feb 20 11:33:42 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Sun, 20 Feb 2011 20:33:42 +0100 Subject: [mapserver-users] How I solve This Exception In-Reply-To: <1298207153109-6045646.post@n2.nabble.com> References: <1298207153109-6045646.post@n2.nabble.com> Message-ID: Do you have more details about this error message? I suspect it might be a DllNotFoundException which would indicate that one or more dll-s (mostly the unmanaged part) are not available to load at run-time. Best regards, Tamas 2011/2/20 Mustafa646 > > I am using C# MapScript in ASP.Net Application. > I am getting an exception at this line: > > mapObj map = new > > mapObj(System.Configuration.ConfigurationManager.AppSettings["mapFilePath"].ToString()); > > Exception: > > The type initializer for 'OSGeo.MapServer.mapscriptPINVOKE' threw an > exception. > > Can anybody have an idea about this, what is wrong ? > > this is code of a sample application from: > > http://www.paolocorti.net/2006/07/26/implementing-the-c-mapscript-code/ > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/How-I-solve-This-Exception-tp6045646p6045646.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 pcreso at pcreso.com Sun Feb 20 16:12:21 2011 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Sun, 20 Feb 2011 16:12:21 -0800 (PST) Subject: [mapserver-users] OGR VRT ODBC connection problem In-Reply-To: Message-ID: <695255.17583.qm@web33201.mail.mud.yahoo.com> Hi, Apologies for the cross posting, but I figure there are experts on both lists. I'm trying to get a ogr virtual connection working from a Linux host to a remote Oracle DB to use mapserver for a WFS service providing the required data.. ODBC is working, eg: sqlplus user/user at metp select count(*) from land_station; 8338 etc... However, when testing with ogr2ogr, I get: ogrinfo ODBC:user/user at metp land_station libnuma: Warning: /sys not mounted or no numa system. Assuming one node: No such file or directory and the terminal window hangs, I'm unable to get any response, & have to kill the connection to continue. Any suggestions? Thanks, ? Brent Wood -------------- next part -------------- An HTML attachment was scrubbed... URL: From isao.nasuno at ctc-g.co.jp Sun Feb 20 16:43:40 2011 From: isao.nasuno at ctc-g.co.jp (Isao NASUNO) Date: Mon, 21 Feb 2011 09:43:40 +0900 Subject: [mapserver-users] problem of legend icon for pixmap-filling type polygon layer In-Reply-To: References: <4D5101EF.9000802@ctc-g.co.jp> <4D5CB00D.1010906@ctc-g.co.jp> <4D5DBD4E.1060009@ctc-g.co.jp> Message-ID: <4D61B53C.5000600@ctc-g.co.jp> Hello Steve, Thank you for your advice, I had not used the KEYIMAGE option. It works fine. No problem to make same-sized chips. It closed. thank you again, Isao (2011/02/19 0:55), Lime, Steve D (DNR) wrote: > I can confirm the issue. Not sure what's going on but something's broken in the legend generation. I'll try and sum > things up and file a ticket against 5.6. We won't patch back to 5.0 for something like this. > > As a workaround you might consider setting a KEYIMAGE in your class definition. Make it the same size as your legend > "chips" (usually something like 25x15) and that image will be used instead of creating one dynamically. I tried that > here and it seems to work. You should be able to clip a section of a MapServer-created map out for this purpose. > > Steve > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Isao NASUNO > Sent: Thursday, February 17, 2011 6:29 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] problem of legend icon for pixmap-filling type polygon layer > > Hello Steve, > > I am using gd-2.0.33, with MapServer 5.0.2. > > Thank you, > > Isao > > (2011/02/18 6:54), Lime, Steve D (DNR) wrote: >> Which driver are you using (AGG or GD)? I'll run some tests here and report back... Steve >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Isao NASUNO >> Sent: Wednesday, February 16, 2011 11:20 PM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] problem of legend icon for pixmap-filling type polygon layer >> >> Hello all, >> >> I had send same question 2 weeks ago but I have no response, >> so I try again with more detail of the problem. >> >> ** situation ** >> >> I'm trying to make pixmap-filled polygon maps and I did it without problem, >> however a problem in getting legend. >> I want legend icons by mapserver cgi with request "mode=legend" like following. >> >> (base pattern) (what I want) >> >> oxoxoxoxoxox >> xoxoxoxoxoxo >> oxox oxoxoxoxoxox >> xoxo ------> xoxoxoxoxoxo >> >> However I get following. It is like a legend icon of line layer. >> >> oxox oxox >> oxoxox oxoxo >> oxoxoxoxoxoxo >> oxoxo oxoxoxo >> oxoxo oxoxo >> xoxo xoxo >> >> ** version ** >> >> I'm using MapServer 5.0.2 on CentOS 5.2. >> I also try MapServer 5.6.x (forgot for detail), but the situation is same. >> >> >> ** what I did ** >> >> The symbol is defined like ... >> --------------------- >> SYMBOL >> NAME "symbol1" >> TYPE pixmap >> image /somewhere/symbol1.gif >> transparent 1 >> END >> --------------------- >> >> The layer is as following... >> --------------------- >> layer >> name "jimon" >> connectiontype postgis >> connection "user=db password=xxxxxxx dbname=DB host=localhost port=5432" >> data "the_geom from polygon" >> status on >> type polygon >> classitem "id" >> projection >> "init=epsg:4326" >> end >> >> class >> name "pattern1 " >> expression "1" >> style >> symbol "symbol1" >> end >> end >> : >> end >> --------------------- >> >> Could anyone please help me !? >> >> Isao >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Sun Feb 20 17:12:27 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 20 Feb 2011 20:12:27 -0500 Subject: [mapserver-users] OGR VRT ODBC connection problem In-Reply-To: <695255.17583.qm@web33201.mail.mud.yahoo.com> References: <695255.17583.qm@web33201.mail.mud.yahoo.com> Message-ID: <4D61BBFB.5060702@swoodbridge.com> Hi Brent, I'm certainly not an expert on this, but I think the issue might be that sqlplus does not use an ODBC connection it uses some proprietary Oracle socket protocol to connect. Do you have ODBC services setup, configured and running on the Linux host? How have you verified this? If not then this is likely the issue. Sorry I don't use ODBC, so I can't help much more then this. -Steve W On 2/20/2011 7:12 PM, pcreso at pcreso.com wrote: > > Hi, > > Apologies for the cross posting, but I figure there are experts on both > lists. > > I'm trying to get a ogr virtual connection working from a Linux host to > a remote Oracle DB to use mapserver for a WFS service providing the > required data.. > > ODBC is working, eg: > > sqlplus user/user at metp > select count(*) from land_station; > 8338 > > etc... > > However, when testing with ogr2ogr, I get: > > ogrinfo ODBC:user/user at metp land_station > > libnuma: Warning: /sys not mounted or no numa system. Assuming one node: > No such file or directory > > and the terminal window hangs, I'm unable to get any response, & have to > kill the connection to continue. > > > Any suggestions? > > > Thanks, > > Brent Wood > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From pcreso at pcreso.com Sun Feb 20 19:08:08 2011 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Sun, 20 Feb 2011 19:08:08 -0800 (PST) Subject: [mapserver-users] OGR VRT ODBC connection problem In-Reply-To: <4D61BBFB.5060702@swoodbridge.com> Message-ID: <197199.5874.qm@web33201.mail.mud.yahoo.com> Thanks Stephen, I should have included this in my first msg, apologies, but thanks for the reply. I'm running GDAL v1.6.1, from ogrinfo --version GDAL 1.6.1, released 2009/05/11 ? And, running isql (from unixodbc) also works. isql --help unixODBC 2.2.12 isql -v metp niwatest niwatest libnuma: Warning: /sys not mounted or no numa system. Assuming one node: No such file or directory +---------------------------------------+ | Connected!??????????????????????????? | |?????????????????????????????????????? | | sql-statement???????????????????????? | | help [tablename]????????????????????? | | quit????????????????????????????????? | |?????????????????????????????????????? | +---------------------------------------+ SQL> select count(*) from land_station; +-----------------------------------------+ | COUNT(*)??????????????????????????????? | +-----------------------------------------+ | 8338??????????????????????????????????? | +-----------------------------------------+??? So isql succeeds, and is definately using ODBC. ogrinfo just hangs. Both have the /sys warning msg, which I am ignoring. I'm still lost with respect to this.... Thanks, ?? Brent --- On Mon, 2/21/11, Stephen Woodbridge wrote: From: Stephen Woodbridge Subject: Re: [mapserver-users] OGR VRT ODBC connection problem To: pcreso at pcreso.com Cc: mapserver-users at lists.osgeo.org, gdal-dev at lists.osgeo.org Date: Monday, February 21, 2011, 2:12 PM Hi Brent, I'm certainly not an expert on this, but I think the issue might be that sqlplus does not use an ODBC connection it uses some proprietary Oracle socket protocol to connect. Do you have ODBC services setup, configured and running on the Linux host? How have you verified this? If not then this is likely the issue. Sorry I don't use ODBC, so I can't help much more then this. -Steve W On 2/20/2011 7:12 PM, pcreso at pcreso.com wrote: > > Hi, > > Apologies for the cross posting, but I figure there are experts on both > lists. > > I'm trying to get a ogr virtual connection working from a Linux host to > a remote Oracle DB to use mapserver for a WFS service providing the > required data.. > > ODBC is working, eg: > > sqlplus user/user at metp > select count(*) from land_station; > 8338 > > etc... > > However, when testing with ogr2ogr, I get: > > ogrinfo ODBC:user/user at metp land_station > > libnuma: Warning: /sys not mounted or no numa system. Assuming one node: > No such file or directory > > and the terminal window hangs, I'm unable to get any response, & have to > kill the connection to continue. > > > Any suggestions? > > > Thanks, > > Brent Wood > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From andreas.siegel at vorarlberg.at Mon Feb 21 01:26:35 2011 From: andreas.siegel at vorarlberg.at (sulu) Date: Mon, 21 Feb 2011 01:26:35 -0800 (PST) Subject: [mapserver-users] MAXSCALEDENOM does not work as expected. Message-ID: <1298280395756-6048023.post@n2.nabble.com> Hi. Maybe there is an explanation for this phenomenon but if so, i don't know of any. If i want want to set an upper Scale limit of e. g. 1:5000 i have to multiply 5000 by 0.75 (MAXSCALEDENOM 3750). Thanks in advance. Andy -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/MAXSCALEDENOM-does-not-work-as-expected-tp6048023p6048023.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Andreas.Eichner at sid.sachsen.de Mon Feb 21 03:26:11 2011 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Mon, 21 Feb 2011 12:26:11 +0100 Subject: AW: [mapserver-users] Troubleshooting a cascading mapserver install. References: <4D601A73.50006@xplornet.com> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF0EA@KS-EVS1.smi.sachsen.de> Just tried a simple request on a WMS server you're cascading: http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi?layers=nexrad-n0r-m05m&STYLES=&FORMAT=image/png&width=512&height=512&bbox=-180,-90,+180,+90 resulted in the following error: msSaveImageGD(): Unable to access file. Unable to open file /mesonet/www/html/tmp/nexrad_base_reflect129828395630777.gif for writing Looks like the cascaded ones already have a problem. Check that first. HTH -----Urspr?ngliche Nachricht----- Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Gregory Gesendet: Samstag, 19. Februar 2011 20:31 An: mapserver-users at lists.osgeo.org Betreff: [mapserver-users] Troubleshooting a cascading mapserver install. Hi all, I've recently setup a mapserver install on a linux machine. So far the mapfile is written to pull other images from other servers. But unfortunately I get a blank return image and using google earth to display shows a big red "X"! Here's the mapfile: # # Start of map file # MAP NAME BLACKBERRY STATUS ON SIZE 1000 1000 EXTENT -180 -90 180 90 IMAGECOLOR 139 137 137 IMAGETYPE PNG24 UNITS DD WEB IMAGEPATH "/home/greg/public_html/mapserverdemo/tmp" IMAGEURL "/tmp/" METADATA WMS_TITLE "Blackberry WMS Server" WMS_ABSTRACT "This is a WMS application for display on a blackberry." WMS_ACCESSCONSTRAINTS "none" WMS_SRS "EPSG:4326" END END LAYER NAME "CONUS NEXRAD Base Reflectivity (n0r)" STATUS ON TYPE RASTER CONNECTION "http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r.cgi?" CONNECTIONTYPE WMS METADATA "wms_format" "image/png" "wms_srs" "EPSG:4326" "wms_name" "nexrad-n0r-m05m" "wms_server_version" "1.1.1" END END LAYER NAME "CONUS NEXRAD Storm Total Precipitation (ntp)" STATUS ON TYPE RASTER CONNECTION "http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/ntp.cgi?" CONNECTIONTYPE WMS METADATA "wms_format" "image/png" "wms_srs" "EPSG:4326" "wms_name" "nexrad-ntp" "wms_server_version" "1.1.1" END END LAYER NAME "NWS Current Polygon Warnings" STATUS ON TYPE RASTER CONNECTION "http://mesonet.agron.iastate.edu/cgi-bin/wms/us/wwa.cgi?" CONNECTIONTYPE WMS METADATA "wms_format" "image/png" "wms_srs" "EPSG:4326" "wms_name" "warnings_p" "wms_server_version" "1.1.1" END END END # Map File Testing with shp2img works and I get some nice outputs from my mapfile. But once I pop it into a wms client, nothing seems to show. Is it my extents boundaries? _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Andreas.Eichner at sid.sachsen.de Mon Feb 21 03:42:48 2011 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Mon, 21 Feb 2011 12:42:48 +0100 Subject: AW: [mapserver-users] MAXSCALEDENOM does not work as expected. References: <1298280395756-6048023.post@n2.nabble.com> Message-ID: <56B587E7C40D2F43B54FDC1BA897AC6D037AF0EB@KS-EVS1.smi.sachsen.de> Display resolution problem: 72 dpi versus 96 dpi. 72 / 96 * 100% = 75% So play with MAP.RESOLUTION directive... -----Urspr?ngliche Nachricht----- Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von sulu Gesendet: Montag, 21. Februar 2011 10:27 An: mapserver-users at lists.osgeo.org Betreff: [mapserver-users] MAXSCALEDENOM does not work as expected. Hi. Maybe there is an explanation for this phenomenon but if so, i don't know of any. If i want want to set an upper Scale limit of e. g. 1:5000 i have to multiply 5000 by 0.75 (MAXSCALEDENOM 3750). Thanks in advance. Andy -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/MAXSCALEDENOM-does-not-work-as-expected-tp6048023p6048023.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 andreas.siegel at vorarlberg.at Mon Feb 21 03:49:55 2011 From: andreas.siegel at vorarlberg.at (sulu) Date: Mon, 21 Feb 2011 03:49:55 -0800 (PST) Subject: AW: [mapserver-users] MAXSCALEDENOM does not work as expected. In-Reply-To: <56B587E7C40D2F43B54FDC1BA897AC6D037AF0EB@KS-EVS1.smi.sachsen.de> References: <1298280395756-6048023.post@n2.nabble.com> <56B587E7C40D2F43B54FDC1BA897AC6D037AF0EB@KS-EVS1.smi.sachsen.de> Message-ID: <1298288995795-6048401.post@n2.nabble.com> Hi Andreas. Thanks a lot. Works perfectly! I didn't notice this parameter in the MAP-Section. My bad. Cheers Andy -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/MAXSCALEDENOM-does-not-work-as-expected-tp6048023p6048401.html Sent from the Mapserver - User mailing list archive at Nabble.com. From varunesh.mishra at gmail.com Tue Feb 22 00:20:47 2011 From: varunesh.mishra at gmail.com (Varunesh Mishra) Date: Tue, 22 Feb 2011 13:50:47 +0530 Subject: [mapserver-users] Output Image Name Message-ID: hey Currently my mapserver is creating image name randomly, what changes do I have to do in my mapscript so that it uses output image name given by me. Please help as soon as possible Varunesh *My map script is given below* MAP NAME "img" SIZE 400 300 CONFIG "PROJ_LIB" "/usr/share/proj/" PROJECTION "proj=longlat" "ellps=WGS84" "datum=WGS84" "no_defs" END SYMBOLSET "/var/www/ganga/symbol.sym" IMAGECOLOR 249 245 200 IMAGETYPE png WEB TEMPLATE "/var/www/ganga/test.html" IMAGEPATH "/var/www/ganga/output/" IMAGEURL "output/" METADATA "wms_srs" "EPSG:4326" END END EXTENT 78.050000 26.610000 80.270000 29.040000 LAYER NAME my_shapefile TYPE POINT DATA "/var/www/ganga/dolphin.shp" STATUS default CLASS STYLE SYMBOL "circle" SIZE 7 END NAME "dolphin" COLOR 0 0 0 OUTLINECOLOR 0 0 0 END PROJECTION "init=epsg:4326" END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephan.holl at intevation.de Tue Feb 22 00:44:28 2011 From: stephan.holl at intevation.de (Stephan Holl) Date: Tue, 22 Feb 2011 09:44:28 +0100 Subject: [mapserver-users] WFS Filter Encoding and resulting DB-queries Message-ID: <20110222094428.5b7c7e3c@thoe.hq.intevation.de> Hello list, while playing with MapServer WFS Filter Encoding capabilities I found some strange things when it comes to form the DB-queries (the requested layer is PostGIS-driven). It seems that there will always be a full table-scan and later on the FE will be applied. Is this done by design? Using URL-substitutions of the Search-keyword and apply it to a FILTER-element the resulting SQL-query has the given WHERE-filter set. But this opens the door for SQL-injections AFAIK. Setting the validation pattern is a little prevention. Are there any other ways to realize a keyword-driven search with MapServer beside FE IsLike or FILTER-substitution? I am using MS 5.6.5 on debian stable. TIA Stephan -- Stephan Holl | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: From stephan.holl at intevation.de Tue Feb 22 00:51:30 2011 From: stephan.holl at intevation.de (Stephan Holl) Date: Tue, 22 Feb 2011 09:51:30 +0100 Subject: [mapserver-users] Status of Java MapScript? Message-ID: <20110222095130.5a33f227@thoe.hq.intevation.de> Hello list, is anybody able to share the current status of Java Mapscript? Browsing the net mostly brings up PHP mapscript, C# or python mapscript status. I would love to hear some user-feedback from happy (and of course unhappy) Java mapscript-users. :-) TIA Stephan -- Stephan Holl | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: From falcacibar at gmail.com Tue Feb 22 07:38:51 2011 From: falcacibar at gmail.com (Felipe Alcacibar) Date: Tue, 22 Feb 2011 12:38:51 -0300 Subject: [mapserver-users] Compiling with opengl support Message-ID: Hi, i am trying to compile mapserver with the experimental opengl support for experimental proposes too, but i cannot do it, i am using mesa opengl, gentoo 64bits linux system and mapserver 5.6.6 but it seems like this little problems that i cannot figure =/. are a solution to this, i need another library, another implementation of opengl? mapogl.cpp: In function ?int msPopulateRendererVTableOGL(rendererVTableObj*)?: mapogl.cpp:225: error: invalid conversion from ?void (*)(imageObj*, shapeObj*, colorObj*, double, int, double*)? to ?void (*)(imageObj*, shapeObj*, strokeStyleObj*)? mapogl.cpp:242: error: invalid conversion from ?void (*)(imageObj*, shapeObj*, void*)? to ?void (*)(imageObj*, shapeObj*, imageObj*)? mapogl.cpp:243: error: invalid conversion from ?void (*)(void*)? to ?void (*)(imageObj*)? wait for your ansewers, thanks in advice. Felipe Alcacibar Buccioni From thomas.bonfort at gmail.com Tue Feb 22 09:26:10 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 22 Feb 2011 18:26:10 +0100 Subject: [mapserver-users] Compiling with opengl support In-Reply-To: References: Message-ID: Felipe, opengl support should compile and run in the trunk version of mapserver, you'll have to do a checkout if you want to try it out. please report back the bugs you see ;) -- thomas On Tue, Feb 22, 2011 at 16:38, Felipe Alcacibar wrote: > Hi, i am trying to compile mapserver with the experimental opengl > support for experimental proposes too, but i cannot do it, i am using > mesa opengl, gentoo 64bits linux system and mapserver 5.6.6 but it > seems like this little problems that i cannot figure =/. > are a solution to this, i need another library, another implementation > of opengl? > > mapogl.cpp: In function ?int msPopulateRendererVTableOGL(rendererVTableObj*)?: > mapogl.cpp:225: error: invalid conversion from ?void (*)(imageObj*, > shapeObj*, colorObj*, double, int, double*)? to ?void (*)(imageObj*, > shapeObj*, strokeStyleObj*)? > mapogl.cpp:242: error: invalid conversion from ?void (*)(imageObj*, > shapeObj*, void*)? to ?void (*)(imageObj*, shapeObj*, imageObj*)? > mapogl.cpp:243: error: invalid conversion from ?void (*)(void*)? to > ?void (*)(imageObj*)? > > wait for your ansewers, thanks in advice. > > Felipe Alcacibar Buccioni > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From umberto.nicoletti at gmail.com Tue Feb 22 11:22:59 2011 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Tue, 22 Feb 2011 20:22:59 +0100 Subject: [mapserver-users] Status of Java MapScript? In-Reply-To: <20110222095130.5a33f227@thoe.hq.intevation.de> References: <20110222095130.5a33f227@thoe.hq.intevation.de> Message-ID: Hi Stephan, I'm the mantainer of java mapscript and while I have not been working on it for quite some time, I am stil successfully using it in a couple of projects (one is a fairly complex webgis). Best regards, Umberto On Tue, Feb 22, 2011 at 9:51 AM, Stephan Holl wrote: > Hello list, > > is anybody able to share the current status of Java Mapscript? Browsing > the net mostly brings up PHP mapscript, C# or python mapscript status. > > I would love to hear some user-feedback from happy (and of course > unhappy) Java mapscript-users. :-) > > TIA > > Stephan > > -- > Stephan Holl | Tel.: +49 (0)541-33 508 3663 > Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabr?ck - HR B 18998 > Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner > > _______________________________________________ > 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 outerspaceman81 at yahoo.com Tue Feb 22 18:16:10 2011 From: outerspaceman81 at yahoo.com (Josh Jordan) Date: Tue, 22 Feb 2011 18:16:10 -0800 (PST) Subject: [mapserver-users] problem with PointFromColumns Message-ID: <719388.50956.qm@web111303.mail.gq1.yahoo.com> I am using a VRT layer to show labels from a csv file. ?I can get encoding='WKT' to work but encoding='PointFromColumns' does not draw anything. ?In both cases, I can use ogrinfo -al on the vrt section and it works. When I replace this line- With this line-Mapserver can no longer render it. csv file:"NAME","CLON","CLAT","WKT""Vernon","-5922308","3647303","POINT(-5922308 3647303)""Rapides","-5847278","3659270","POINT(-5847278 3659270)""Grant","-5853735","3710003","POINT(-5853735 3710003)""Avoyelles","-5786275","3645222","POINT(-5786275 3645222)" layer section in mapfile: LAYER?CONNECTION "??county.csv?wkbPoint?+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=-40 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_d???"?CONNECTIONTYPE OGR?NAME "Counties_Labels"?STATUS DEFAULT?TYPE ANNOTATION?PROJECTION"+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=-40 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_d"?END?LABELITEM "NAME"?CLASS??LABEL?? OUTLINECOLOR -1 -1 -1?? FONT FreeSans?? SIZE 10?? TYPE truetype?? COLOR 0 0 0?? FORCE TRUE??END?ENDEND -------------- next part -------------- An HTML attachment was scrubbed... URL: From daniel at southernsolutionsms.com Tue Feb 22 19:06:33 2011 From: daniel at southernsolutionsms.com (Daniel Cole) Date: Tue, 22 Feb 2011 21:06:33 -0600 Subject: [mapserver-users] Heatmap / choropleth from points attributes Message-ID: I am a new mapserver user and have spent countless hours over the last month reading, trying code, etc. before posting here for help. I am trying to generate an image (non-interactive) on a webpage based off of attribute data in a points file. For example, 20 different points equally distributed in a field contain data about the moister level of the soil. I want to make the lowest levels blue and the highest levels yellow, or something like that with some gradients in between. If possible I want it to have interpolated data between them to show the gradual change, but that isn't a must. I also want to wrap it in a polygon that trims the edges. I found some python code that I thought might do the trick , but it seems lots of heat maps are based off of how many points exist in a certain area, and thats now what I am doing. My points contain numbers in the attributes, 5, 25, 92, 71, etc. I feel like I am missing some easy way to do this right in front of me with gdal or something. If someone has any direction or even demo code that would be greatly appreciated. Thanks, Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: From thexray at gmail.com Wed Feb 23 03:01:05 2011 From: thexray at gmail.com (Sergey Kraev) Date: Wed, 23 Feb 2011 13:01:05 +0200 Subject: [mapserver-users] Spherical Mercator Projection Problem Message-ID: Hi, I?m running MS4W v3.0 (including MapServer 5.6.5) on Windows. My data source are PostGIS multipolygon countries? borders. I have successfully got MapServer to render the world map in WGS84 projection using these settings: Request: http://127.0.0.1:8080/cgi-bin/mapserv.exe?map=world.map&mode=map&mapsize=256+256&mapext=-180+-90+180+90 world.map: MAP EXTENT -180 -90 180 90 #EXTENT -20037508 -20037508 20037508 20037508 SIZE 256 256 IMAGECOLOR 153 179 204 FONTSET "c:\MS4W\fonts\fonts.list" RESOLUTION 96 MAXSIZE 5000 PROJECTION "init=epsg:4326" #"init=epsg:3785" END ? I would like MapServer to render the same data into a ?Web (spherical) Mercator? projected map (epsg:3785), but I don't know how to modify my request and mapfile in order to get the correct map. With the following settings I just receive a picture without any polygons. \ms4w\proj\nad\epsg: ? <3785> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs <> ? Request (only mapext is different): http://127.0.0.1:8080/cgi-bin/mapserv.exe?map=world.map&mode=map&mapsize=256+256&mapext=-20037508+-20037508+20037508+20037508 world.map (only EXTENT and PROJECTION are different): MAP #EXTENT -180 -90 180 90 EXTENT -20037508 -20037508 20037508 20037508 SIZE 256 256 IMAGECOLOR 153 179 204 FONTSET "c:\MS4W\fonts\fonts.list" RESOLUTION 96 MAXSIZE 5000 PROJECTION #"init=epsg:4326" "init=epsg:3785" END ? I?m assuming that -20037508 -20037508 20037508 20037508 is correct extent for the whole world map, since Google uses that and they also have Mercator projection. Thanks for your help. Sergey -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Wed Feb 23 04:26:34 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 23 Feb 2011 07:26:34 -0500 Subject: [mapserver-users] WFS Filter Encoding and resulting DB-queries In-Reply-To: <20110222094428.5b7c7e3c@thoe.hq.intevation.de> References: <20110222094428.5b7c7e3c@thoe.hq.intevation.de> Message-ID: <4D64FCFA.5070505@dmsolutions.ca> Hi Stephan, On 22/02/2011 3:44 AM, Stephan Holl wrote: > Hello list, > > while playing with MapServer WFS Filter Encoding capabilities I found > some strange things when it comes to form the DB-queries (the > requested layer is PostGIS-driven). > > It seems that there will always be a full table-scan and later on the FE > will be applied. Is this done by design? > Filters that do include spatial filters end up using the mapserver experssions. 'Simple' filters should end be using traslated into the layer's filter expression and end up being used by postgis as part of the data selection. What does the filter encoding looks like? > Using URL-substitutions of the Search-keyword and apply it to a > FILTER-element the resulting SQL-query has the given WHERE-filter set. > But this opens the door for SQL-injections AFAIK. Setting the > validation pattern is a little prevention. > > Are there any other ways to realize a keyword-driven search with > MapServer beside FE IsLike or FILTER-substitution? > > I am using MS 5.6.5 on debian stable. > > TIA > > Stephan > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From outerspaceman81 at yahoo.com Wed Feb 23 04:56:43 2011 From: outerspaceman81 at yahoo.com (Josh Jordan) Date: Wed, 23 Feb 2011 04:56:43 -0800 (PST) Subject: [mapserver-users] Heatmap / choropleth from points attributes In-Reply-To: Message-ID: <428818.75172.qm@web111314.mail.gq1.yahoo.com> First, you have to turn your points into shapes, theres some algorithm that will turn points into polygons with borders midway between each point. ?Then, you have to add classes to the mapfile. ?Add one class per color. ?You have to calculate the bounds and color for each class like this: CLASS?? ?EXPRESSION(([POPULATION] gt 90457) AND ([POPULATION] le 108397))?? ?STYLE?? ? ?COLOR 10 20 50?? ?ENDEND If your CSV data isnt joined to the mapserver data, you have to calculate what shapes are in each bucket like this- CLASS?? ?EXPRESSION(([NAME] = "Shape1") OR ([NAME] = "Shape2"))?? ?STYLE?? ? ?COLOR 10 20 50?? ?ENDEND --- On Tue, 2/22/11, Daniel Cole wrote: From: Daniel Cole Subject: [mapserver-users] Heatmap / choropleth from points attributes To: mapserver-users at lists.osgeo.org Date: Tuesday, February 22, 2011, 10:06 PM I am a new mapserver user and have spent countless hours over the last month reading, trying code, etc. before posting here for help. ?I am trying to generate an image?(non-interactive)?on a webpage based off of attribute data in a points file. ?For example, 20 different points equally distributed in a field contain data about the moister level of the soil. ?I want to make the lowest levels blue and the highest levels yellow, or something like that with some gradients in between. ?If possible I want it to have interpolated data between them to show the gradual change, but that isn't a must. ? I also want to wrap it in a polygon that trims the edges. ? I found some python code that I thought might do the trick , but it seems lots of heat maps are based off of how many points exist in a certain area, and thats now what I am doing. ? My points contain numbers in the attributes, 5, 25, 92, 71, etc. ? I feel like I am missing some easy way to do this right in front of me with gdal or something. ?If someone has any direction or even demo code that would be greatly appreciated. ? Thanks, Daniel -----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 stephan.holl at intevation.de Wed Feb 23 05:06:56 2011 From: stephan.holl at intevation.de (Stephan Holl) Date: Wed, 23 Feb 2011 14:06:56 +0100 Subject: [mapserver-users] WFS Filter Encoding and resulting DB-queries In-Reply-To: <4D64FCFA.5070505@dmsolutions.ca> References: <20110222094428.5b7c7e3c@thoe.hq.intevation.de> <4D64FCFA.5070505@dmsolutions.ca> Message-ID: <20110223140656.60fafb86@thoe.hq.intevation.de> Hello Assefa, Yewondwossen Assefa , [20110223 - 07:26:34] > Hi Stephan, > > On 22/02/2011 3:44 AM, Stephan Holl wrote: > > Hello list, > > > > while playing with MapServer WFS Filter Encoding capabilities I > > found some strange things when it comes to form the DB-queries (the > > requested layer is PostGIS-driven). > > > > It seems that there will always be a full table-scan and later on > > the FE will be applied. Is this done by design? > > > Filters that do include spatial filters end up using the mapserver > experssions. 'Simple' filters should end be using traslated into the > layer's filter expression and end up being used by postgis as part of > the data selection. What does the filter encoding looks like? It is not a spatial-filter we use currently. It is an attribute-based IsLike-Filter like seen here[1], but we use it with POST. So adding a BBOX-related filter as another AND-filter will result in optimized SQL-Query with only the subset fetched from the database? If so, this seems worth to document though. > > Using URL-substitutions of the Search-keyword and apply it to a > > FILTER-element the resulting SQL-query has the given WHERE-filter > > set. But this opens the door for SQL-injections AFAIK. Setting the > > validation pattern is a little prevention. > > > > Are there any other ways to realize a keyword-driven search with > > MapServer beside FE IsLike or FILTER-substitution? > > Best Stephan [1] http://demo.mapserver.org/cgi-bin/wfs?&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=cities&Filter=%3CFilter%3E%3CPropertyIsLike%20wildcard=%27*%27%20singleChar=%27.%27%20escape=%27!%27%3E%3CPropertyName%3ENAME%3C/PropertyName%3E%3CLiteral%3ESyd*%3C/Literal%3E%3C/PropertyIsLike%3E%3C/Filter%3E -- 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 stephan.holl at intevation.de Wed Feb 23 05:09:04 2011 From: stephan.holl at intevation.de (Stephan Holl) Date: Wed, 23 Feb 2011 14:09:04 +0100 Subject: [mapserver-users] Status of Java MapScript? In-Reply-To: References: <20110222095130.5a33f227@thoe.hq.intevation.de> Message-ID: <20110223140904.08baffab@thoe.hq.intevation.de> Hello Umberto, Umberto Nicoletti , [20110222 - 20:22:59] > Hi Stephan, > I'm the mantainer of java mapscript and while I have not been working > on it for quite some time, I am stil successfully using it in a > couple of projects (one is a fairly complex webgis). OK, thanks for your input. It seems I have to play a little bit with it and see how I can live with that. Thanks anyway Stephan > On Tue, Feb 22, 2011 at 9:51 AM, Stephan Holl > wrote: > > > Hello list, > > > > is anybody able to share the current status of Java Mapscript? > > Browsing the net mostly brings up PHP mapscript, C# or python > > mapscript status. > > > > I would love to hear some user-feedback from happy (and of course > > unhappy) Java mapscript-users. :-) > > > > TIA > > > > Stephan > > > > -- > > Stephan Holl | Tel.: +49 (0)541-33 508 > > 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabr?ck - > > HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. > > Jan-Oliver Wagner > > > > _______________________________________________ > > 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 outerspaceman81 at yahoo.com Wed Feb 23 06:08:16 2011 From: outerspaceman81 at yahoo.com (Josh Jordan) Date: Wed, 23 Feb 2011 06:08:16 -0800 (PST) Subject: [mapserver-users] ogr connection trouble Message-ID: <30081.98473.qm@web111302.mail.gq1.yahoo.com> I am trying to get mapserver to draw an OGR layer, was wondering what this means in the OGRINFO readout, I get a series of fields with String (0.0), was wondering what (0.0) means or if its the problem? POPULATION: String (0.0)MALE: String (0.0)FEMALE: String (0.0) -------------- next part -------------- An HTML attachment was scrubbed... URL: From georg at muenster.de Wed Feb 23 06:48:39 2011 From: georg at muenster.de (Georg Kaspar) Date: Wed, 23 Feb 2011 15:48:39 +0100 Subject: [mapserver-users] colored legend for raster data Message-ID: <4D651E47.4080304@muenster.de> Dear mapserver users, i'm using mapserver to display scanned maps along with their respective legends. When using the KEYIMAGE tag within the mapfile to assign a layer's legend, the graphic returned by a GetLegendGraphic-Request will be converted from color to a reduced color table (similar to greyscale though not fully desaturated). Is this problem known to any of you? Is there any mistake in the way i'm using this function? Thank's for your help & best regards, Georg -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 490 bytes Desc: OpenPGP digital signature URL: From milo at dogodigi.net Wed Feb 23 07:19:04 2011 From: milo at dogodigi.net (Milo van der Linden) Date: Wed, 23 Feb 2011 16:19:04 +0100 Subject: [mapserver-users] PHP Mapscript, label with self created text Message-ID: Hello people, I have created a piece of mapscript that takes a key/value pair and creates class-coloring according to this. This works perfectly well except for one tiny little thing: I want to add $v as a label to my classes. My question is: Is it possible to assign static text to a label? Because if it is not; I would have to query the underlying layer for it's centroid and create a text label on top of that layer. For instance something like: $theme_label[$i]->set("labeltext", $v); foreach ($mycollection as $k=>$v) { $theme_class[$i]=ms_newClassObj($theme_layer); $theme_class[$i]->setExpression($k); $theme_class[$i]->set("name", $theme_class[$i]->getExpressionString()); $theme_style[$i]=ms_newStyleObj($theme_class[$i]); $tc = $theme->getColourValue($v); $theme_style[$i]->color->setRGB($tc[0],$tc[1],$tc[2]); $theme_style[$i]->outlinecolor->setRGB(255,255,255); //$theme_label[$i]=ms_newLabelObj($theme_class[$i]); //$theme_label[$i]->set("font", "sans"); //$theme_label[$i]->set("type", "truetype"); //$theme_label[$i]->set("size", 10); //$theme_label[$i]->set("labeltext", $v); $i++; } -------------- next part -------------- An HTML attachment was scrubbed... URL: From milo at dogodigi.net Wed Feb 23 07:28:31 2011 From: milo at dogodigi.net (Milo van der Linden) Date: Wed, 23 Feb 2011 16:28:31 +0100 Subject: [mapserver-users] Heatmap / choropleth from points attributes In-Reply-To: <428818.75172.qm@web111314.mail.gq1.yahoo.com> References: <428818.75172.qm@web111314.mail.gq1.yahoo.com> Message-ID: Turning points into polygons (or voronois) is the "thinking like a GIS professional" approach. This is valid, but not as good as it can get. Basically, using imaging techniques would be a better approach. Perhaps you can take this: http://www.sethoscope.net/heatmap/ as a starting point? The author has created a nice python script to generate a heatmap. 2011/2/23 Josh Jordan > First, you have to turn your points into shapes, theres some algorithm that > will turn points into polygons with borders midway between each point. > Then, you have to add classes to the mapfile. Add one class per color. > You have to calculate the bounds and color for each class like this: > > CLASS > EXPRESSION(([POPULATION] gt 90457) AND ([POPULATION] le 108397)) > STYLE > COLOR 10 20 50 > END > END > > If your CSV data isnt joined to the mapserver data, you have to calculate > what shapes are in each bucket like this- > > CLASS > EXPRESSION(([NAME] = "Shape1") OR ([NAME] = "Shape2")) > STYLE > COLOR 10 20 50 > END > END > > --- On *Tue, 2/22/11, Daniel Cole * wrote: > > > From: Daniel Cole > Subject: [mapserver-users] Heatmap / choropleth from points attributes > To: mapserver-users at lists.osgeo.org > Date: Tuesday, February 22, 2011, 10:06 PM > > I am a new mapserver user and have spent countless hours over the last > month reading, trying code, etc. before posting here for help. I am trying > to generate an image (non-interactive) on a webpage based off of attribute > data in a points file. For example, 20 different points equally distributed > in a field contain data about the moister level of the soil. I want to make > the lowest levels blue and the highest levels yellow, or something like that > with some gradients in between. If possible I want it to have interpolated > data between them to show the gradual change, but that isn't a must. I > also want to wrap it in a polygon that trims the edges. > > I found some python code that I thought might do the trick , but it seems > lots of heat maps are based off of how many points exist in a certain area, > and thats now what I am doing. > > My points contain numbers in the attributes, 5, 25, 92, 71, etc. I feel > like I am missing some easy way to do this right in front of me with gdal or > something. If someone has any direction or even demo code that would be > greatly appreciated. > > Thanks, > > Daniel > > -----Inline Attachment Follows----- > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tom at vdputte.nl Wed Feb 23 08:08:41 2011 From: tom at vdputte.nl (Tom van der Putte) Date: Wed, 23 Feb 2011 17:08:41 +0100 Subject: [mapserver-users] Heatmap / choropleth from points Message-ID: <1485.1298477321@vdputte.nl> Hi Daniel, So if I undestand correctly you want to display you points and the colour the areas around them according to the nearest point (1), or if possible make a continous interpolated map that shows the gradients (2)? OK, this is not in the MapServer-topic, because MapServer has no way to do this. So I suggest we move this conversation private, but I'll try to give you an answer for future reference. If you have any questions, mail me directly. If this is indeed as you say non-dynamic, things are easy; with any respectable GIS package, you can create option (1) by making a Voronoi diagram. This makes polygons around yout points in which every location in its interior of the polygon is closer to its center point than it is to other points. The result is a vector image (shapefile). To create option (2) you have to interpolate these points into a (continuous) raster through any interpolation method. Simplest is nearest neighbour which in essence creates a Voronoi Diagram in raster format. If you want to go more pro, there is Inverse Distance Weighted (which I do not encourage people using because the options have huge influence on the outcome and are note really exact). Then there is Kriging, but you need to be into statistics quite a bit to be able to get a good outcome -- if not, leave it alone. Then there is also Natural Neighbour interpolation, which uses a Voronoi Diagram as its basis, and is thus quite well suited for using points that are anisotropically distributed, and when kriging is not an option. If you do want these things programatically, there are a couple of python scripts I have that you could use for create Nearest Neighbour and Natural Neighbour interpolations. You will need to adjust those quite a bit. Tom ----------------------------------------------------------------------- Date: Wed, 23 Feb 2011 04:56:43 -0800 (PST) From: Josh Jordan Subject: Re: [mapserver-users] Heatmap / choropleth from points attributes To: Daniel Cole Cc: mapserver-users at lists.osgeo.org [3] Message-ID: Content-Type: text/plain; charset="iso-8859-1" First, you have to turn your points into shapes, theres some algorithm that will turn points into polygons with borders midway between each point. CLASS If your CSV data isnt joined to the mapserver data, you have to calculate what shapes are in each bucket like this- CLASS --- On Tue, 2/22/11, Daniel Cole wrote: From: Daniel Cole Subject: [mapserver-users] Heatmap / choropleth from points attributes To: mapserver-users at lists.osgeo.org [7] Date: Tuesday, February 22, 2011, 10:06 PM I am a new mapserver user and have spent countless hours over the last month reading, trying code, etc. before posting here for help. I found some python code that I thought might do the trick , but it seems lots of heat maps are based off of how many points exist in a certain area, and thats now what I am doing. My points contain numbers in the attributes, 5, 25, 92, 71, etc. Thanks, Daniel -----Inline Attachment Follows----- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org [8] http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110223/fe139556/attachment-0001.html ------------------------------ Links: ------ [1] mailto:outerspaceman81 at yahoo.com [2] mailto:daniel at southernsolutionsms.com [3] mailto:mapserver-users at lists.osgeo.org [4] mailto:428818.75172.qm at web111314.mail.gq1.yahoo.com [5] mailto:daniel at southernsolutionsms.com [6] mailto:daniel at southernsolutionsms.com [7] mailto:mapserver-users at lists.osgeo.org [8] mailto:mapserver-users at lists.osgeo.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From punk.kish at gmail.com Wed Feb 23 09:23:59 2011 From: punk.kish at gmail.com (Puneet Kishor) Date: Wed, 23 Feb 2011 11:23:59 -0600 Subject: [mapserver-users] Heatmap / choropleth from points attributes In-Reply-To: References: <428818.75172.qm@web111314.mail.gq1.yahoo.com> Message-ID: <20110223172322.GA51071@Lucknow.local> On Wed, Feb 23, 2011 at 04:28:31PM +0100, Milo van der Linden wrote: > Turning points into polygons (or voronois) is the "thinking like a GIS > professional" approach. This is valid, but not as good as it can get. > Basically, using imaging techniques would be a better approach. Very well put. > > Perhaps you can take this: http://www.sethoscope.net/heatmap/ as a starting > point? The author has created a nice python script to generate a heatmap. And here is a Perl-based approach [http://blog.imtrevor.com/2009/07/16/generating-heat-maps-using-perl/] > > 2011/2/23 Josh Jordan > > > First, you have to turn your points into shapes, theres some algorithm that > > will turn points into polygons with borders midway between each point. > > Then, you have to add classes to the mapfile. Add one class per color. > > You have to calculate the bounds and color for each class like this: > > > > CLASS > > EXPRESSION(([POPULATION] gt 90457) AND ([POPULATION] le 108397)) > > STYLE > > COLOR 10 20 50 > > END > > END > > > > If your CSV data isnt joined to the mapserver data, you have to calculate > > what shapes are in each bucket like this- > > > > CLASS > > EXPRESSION(([NAME] = "Shape1") OR ([NAME] = "Shape2")) > > STYLE > > COLOR 10 20 50 > > END > > END > > > > --- On *Tue, 2/22/11, Daniel Cole * wrote: > > > > > > From: Daniel Cole > > Subject: [mapserver-users] Heatmap / choropleth from points attributes > > To: mapserver-users at lists.osgeo.org > > Date: Tuesday, February 22, 2011, 10:06 PM > > > > I am a new mapserver user and have spent countless hours over the last > > month reading, trying code, etc. before posting here for help. I am trying > > to generate an image (non-interactive) on a webpage based off of attribute > > data in a points file. For example, 20 different points equally distributed > > in a field contain data about the moister level of the soil. I want to make > > the lowest levels blue and the highest levels yellow, or something like that > > with some gradients in between. If possible I want it to have interpolated > > data between them to show the gradual change, but that isn't a must. I > > also want to wrap it in a polygon that trims the edges. > > > > I found some python code that I thought might do the trick , but it seems > > lots of heat maps are based off of how many points exist in a certain area, > > and thats now what I am doing. > > > > My points contain numbers in the attributes, 5, 25, 92, 71, etc. I feel > > like I am missing some easy way to do this right in front of me with gdal or > > something. If someone has any direction or even demo code that would be > > greatly appreciated. > > > > Thanks, > > > > Daniel > > > > -----Inline Attachment Follows----- > > > > _______________________________________________ > > 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 warmerdam at pobox.com Wed Feb 23 10:31:13 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 23 Feb 2011 13:31:13 -0500 Subject: [mapserver-users] ogr connection trouble In-Reply-To: <30081.98473.qm@web111302.mail.gq1.yahoo.com> References: <30081.98473.qm@web111302.mail.gq1.yahoo.com> Message-ID: <4D655271.6000107@pobox.com> On 11-02-23 09:08 AM, Josh Jordan wrote: > I am trying to get mapserver to draw an OGR layer, was wondering what this > means in the OGRINFO readout, I get a series of fields with String (0.0), was > wondering what (0.0) means or if its the problem? > > POPULATION: String (0.0) > MALE: String (0.0) > FEMALE: String (0.0) Josh, It indicates that the field width is variable. If it used "(8.0)" that would indicate a field width of at most 8 characters. For floating point fields the part following the decimal will be the number of decimal places in the value. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From pcreso at pcreso.com Wed Feb 23 10:41:13 2011 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Wed, 23 Feb 2011 10:41:13 -0800 (PST) Subject: [mapserver-users] Heatmap / choropleth from points attributes In-Reply-To: <20110223172322.GA51071@Lucknow.local> Message-ID: <507887.57405.qm@web33204.mail.mud.yahoo.com> Hi Daniel, Points to voronoi for mapping is surely a chloropleth more than a heatmap? Colouring polygons by value? A heat map is generally done by rendering a surface generated from point data. >From the original question I'm not sure if simply plotting coloured points on the map is required, or some sort of aggregation of the point data by polygon. I _think_ the intent is to take sets of points, each within a polygon (field), generate a surface within each polygon based on the point values, then render each surface to form a heatmap (the rendered map thus comprising a set of polygons, each of which is represented by its own heat map) ??? For a more elegant GIS based approach, I'd use GMT to render a static map for a web page, which was the intent behind original question. Mapserver is more for dynamic/interactive web mapping. See: http://gmt.soest.hawaii.edu/gmt/doc/gmt/pdf/GMT_Docs.pdf For different ways of showing the values of points on a map see the examples on pages 120, 121, 138, 141, 144, etc. And there are many others with a tool this powerful (& complex) including generating & plotting surfaces derived from point data (for heat maps) You write a script to build the map, much as in the p141 example, which shows how GMT can create a complex legend automatically as well, and run the script whenever a new or updated map is required. The GMT list (IMHO) is a helpful & supportive as any mailing list I've encountered, even this one!! A script which iterates through each field (set of points) generating each constrained surface and inserting it to a grid, then rendering the entire grid for your map output would do this pretty easily. See the GMT docs for the commands surface for one way to generate each field of points as a grid, grdmath for how to merge these into one grid, & grdimage for how to generate the map from these gridded data. Or you could just render each field separately with grid points outside the field polygon set to NAN & rendered transparent. Or throw all the points into a surface, render this as a single heat map & overlay the fields as transparent polygons (optionally labelled) with perhaps the regions between polygons masked if appropriate? Lots of ways of generating such maps :-) If you'd like some help going down this path, contact me off list. Cheers, ? Brent Wood --- On Thu, 2/24/11, Puneet Kishor wrote: From: Puneet Kishor Subject: Re: [mapserver-users] Heatmap / choropleth from points attributes To: "Milo van der Linden" Cc: mapserver-users at lists.osgeo.org Date: Thursday, February 24, 2011, 6:23 AM On Wed, Feb 23, 2011 at 04:28:31PM +0100, Milo van der Linden wrote: > Turning points into polygons (or voronois) is the "thinking like a GIS > professional" approach. This is valid, but not as good as it can get. > Basically, using imaging techniques would be a better approach. Very well put. > > Perhaps you can take this: http://www.sethoscope.net/heatmap/ as a starting > point? The author has created a nice python script to generate a heatmap. And here is a Perl-based approach [http://blog.imtrevor.com/2009/07/16/generating-heat-maps-using-perl/] > > 2011/2/23 Josh Jordan > > > First, you have to turn your points into shapes, theres some algorithm that > > will turn points into polygons with borders midway between each point. > >? Then, you have to add classes to the mapfile.? Add one class per color. > >? You have to calculate the bounds and color for each class like this: > > > > CLASS > >? ???EXPRESSION(([POPULATION] gt 90457) AND ([POPULATION] le 108397)) > >? ???STYLE > >? ? ???COLOR 10 20 50 > >? ???END > > END > > > > If your CSV data isnt joined to the mapserver data, you have to calculate > > what shapes are in each bucket like this- > > > > CLASS > >? ???EXPRESSION(([NAME] = "Shape1") OR ([NAME] = "Shape2")) > >? ???STYLE > >? ? ???COLOR 10 20 50 > >? ???END > > END > > > > --- On *Tue, 2/22/11, Daniel Cole * wrote: > > > > > > From: Daniel Cole > > Subject: [mapserver-users] Heatmap / choropleth from points attributes > > To: mapserver-users at lists.osgeo.org > > Date: Tuesday, February 22, 2011, 10:06 PM > > > > I am a new mapserver user and have spent countless hours over the last > > month reading, trying code, etc. before posting here for help.? I am trying > > to generate an image (non-interactive) on a webpage based off of attribute > > data in a points file.? For example, 20 different points equally distributed > > in a field contain data about the moister level of the soil.? I want to make > > the lowest levels blue and the highest levels yellow, or something like that > > with some gradients in between.? If possible I want it to have interpolated > > data between them to show the gradual change, but that isn't a must.???I > > also want to wrap it in a polygon that trims the edges. > > > > I found some python code that I thought might do the trick , but it seems > > lots of heat maps are based off of how many points exist in a certain area, > > and thats now what I am doing. > > > > My points contain numbers in the attributes, 5, 25, 92, 71, etc.???I feel > > like I am missing some easy way to do this right in front of me with gdal or > > something.? If someone has any direction or even demo code that would be > > greatly appreciated. > > > > Thanks, > > > > Daniel > > > > -----Inline Attachment Follows----- > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahmettemiz88 at gmail.com Wed Feb 23 11:07:39 2011 From: ahmettemiz88 at gmail.com (ahmet temiz) Date: Wed, 23 Feb 2011 21:07:39 +0200 Subject: [mapserver-users] webgis application is not opening Message-ID: hello I used java-mapscript, tomcat, jsf. In production stage, my webgis application is going to localhost and finding nothing do I have to change something in my map file? such as do I have to change : ~~~ CONNECTIONTYPE postgis CONNECTION "dbname='bzk2' host=localhost ~~~ in first try it goes to localhost. only in second try it opens the page if you want to look at the page: "http://www.deprem.gov.tr:8080/pro1/bir.jsf" -- 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 From milo at dogodigi.net Wed Feb 23 13:25:21 2011 From: milo at dogodigi.net (Milo van der Linden) Date: Wed, 23 Feb 2011 22:25:21 +0100 Subject: [mapserver-users] PHP Mapscript, label with self created text In-Reply-To: <1298493171.3600.55.camel@mobil.geoworld.de> References: <1298493171.3600.55.camel@mobil.geoworld.de> Message-ID: Hi Nicol, Excellent! It works! Now I only have one more issue: http://www.dogomaps.net/bikkels/index.html?zoom=9&lat=385827.82031&lon=174867.38281&layers=B The label is duplicated due to the fact that I am retrieving tiles. Any experience with that? 2011/2/23 Nicol Hermann > Hi Milo, > > Try: > $theme_class[$i]->settext($v); > > http://mapserver.org/mapscript/php/index.html#classobj > > HTH > Nicol > > > Am Mittwoch, den 23.02.2011, 16:19 +0100 schrieb Milo van der Linden: > > Hello people, > > > > I have created a piece of mapscript that takes a key/value pair and > > creates class-coloring according to this. This works perfectly well > > except for one tiny little thing: > > > > I want to add $v as a label to my classes. > > > > My question is: Is it possible to assign static text to a label? > > Because if it is not; I would have to query the underlying layer for > > it's centroid and create a text label on top of that layer. > > > > For instance something like: > > $theme_label[$i]->set("labeltext", $v); > > > > > > > > foreach ($mycollection as $k=>$v) { > > $theme_class[$i]=ms_newClassObj($theme_layer); > > $theme_class[$i]->setExpression($k); > > $theme_class[$i]->set("name", > > $theme_class[$i]->getExpressionString()); > > $theme_style[$i]=ms_newStyleObj($theme_class[$i]); > > $tc = $theme->getColourValue($v); > > $theme_style[$i]->color->setRGB($tc[0],$tc[1],$tc[2]); > > $theme_style[$i]->outlinecolor->setRGB(255,255,255); > > //$theme_label[$i]=ms_newLabelObj($theme_class[$i]); > > //$theme_label[$i]->set("font", "sans"); > > //$theme_label[$i]->set("type", "truetype"); > > //$theme_label[$i]->set("size", 10); > > //$theme_label[$i]->set("labeltext", $v); > > $i++; > > } > > > > _______________________________________________ > > 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 milo at dogodigi.net Wed Feb 23 13:28:45 2011 From: milo at dogodigi.net (Milo van der Linden) Date: Wed, 23 Feb 2011 22:28:45 +0100 Subject: [mapserver-users] PHP Mapscript, label with self created text In-Reply-To: References: <1298493171.3600.55.camel@mobil.geoworld.de> Message-ID: Sorry! Found it by scroogling a bit: Set PROCESSING "LABEL_NO_CLIP=ON" per layer. Everything works now! 2011/2/23 Milo van der Linden > Hi Nicol, > > Excellent! It works! Now I only have one more issue: > > > http://www.dogomaps.net/bikkels/index.html?zoom=9&lat=385827.82031&lon=174867.38281&layers=B > > The label is duplicated due to the fact that I am retrieving tiles. Any > experience with that? > > 2011/2/23 Nicol Hermann > > Hi Milo, >> >> Try: >> $theme_class[$i]->settext($v); >> >> http://mapserver.org/mapscript/php/index.html#classobj >> >> HTH >> Nicol >> >> >> Am Mittwoch, den 23.02.2011, 16:19 +0100 schrieb Milo van der Linden: >> > Hello people, >> > >> > I have created a piece of mapscript that takes a key/value pair and >> > creates class-coloring according to this. This works perfectly well >> > except for one tiny little thing: >> > >> > I want to add $v as a label to my classes. >> > >> > My question is: Is it possible to assign static text to a label? >> > Because if it is not; I would have to query the underlying layer for >> > it's centroid and create a text label on top of that layer. >> > >> > For instance something like: >> > $theme_label[$i]->set("labeltext", $v); >> > >> > >> > >> > foreach ($mycollection as $k=>$v) { >> > $theme_class[$i]=ms_newClassObj($theme_layer); >> > $theme_class[$i]->setExpression($k); >> > $theme_class[$i]->set("name", >> > $theme_class[$i]->getExpressionString()); >> > $theme_style[$i]=ms_newStyleObj($theme_class[$i]); >> > $tc = $theme->getColourValue($v); >> > $theme_style[$i]->color->setRGB($tc[0],$tc[1],$tc[2]); >> > $theme_style[$i]->outlinecolor->setRGB(255,255,255); >> > //$theme_label[$i]=ms_newLabelObj($theme_class[$i]); >> > //$theme_label[$i]->set("font", "sans"); >> > //$theme_label[$i]->set("type", "truetype"); >> > //$theme_label[$i]->set("size", 10); >> > //$theme_label[$i]->set("labeltext", $v); >> > $i++; >> > } >> > >> > _______________________________________________ >> > 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 daniel at southernsolutionsms.com Wed Feb 23 19:37:25 2011 From: daniel at southernsolutionsms.com (Daniel Cole) Date: Wed, 23 Feb 2011 21:37:25 -0600 Subject: [mapserver-users] Heatmap / choropleth from points attributes In-Reply-To: <507887.57405.qm@web33204.mail.mud.yahoo.com> References: <20110223172322.GA51071@Lucknow.local> <507887.57405.qm@web33204.mail.mud.yahoo.com> Message-ID: So much good information. Thank you all so much for these responses. I will take the later part of this week digging through all of the suggestions and trying the methods. I guess what I am trying to do seems to be more choropleth than heatmap, due to the fact that I don't want any areas without color, I want it to be interpolated off of the nearest point. I am sure I will be back on here asking more about this, but for the time being I have been given some great code and directions. Thanks again Tamas, Brent, and all of the others. What a great bunch of help. Thanks, Daniel On Wed, Feb 23, 2011 at 12:41 PM, wrote: > Hi Daniel, > > Points to voronoi for mapping is surely a chloropleth more than a heatmap? > Colouring polygons by value? A heat map is generally done by rendering a > surface generated from point data. > > From the original question I'm not sure if simply plotting coloured points > on the map is required, or some sort of aggregation of the point data by > polygon. > > I _think_ the intent is to take sets of points, each within a polygon > (field), generate a surface within each polygon based on the point values, > then render each surface to form a heatmap (the rendered map thus comprising > a set of polygons, each of which is represented by its own heat map) ??? > > > For a more elegant GIS based approach, I'd use GMT to render a static map > for a web page, which was the intent behind original question. Mapserver is > more for dynamic/interactive web mapping. > > See: http://gmt.soest.hawaii.edu/gmt/doc/gmt/pdf/GMT_Docs.pdf > > For different ways of showing the values of points on a map see the > examples on pages 120, 121, 138, 141, 144, etc. And there are many others > with a tool this powerful (& complex) including generating & plotting > surfaces derived from point data (for heat maps) > > You write a script to build the map, much as in the p141 example, which > shows how GMT can create a complex legend automatically as well, and run the > script whenever a new or updated map is required. > > The GMT list (IMHO) is a helpful & supportive as any mailing list I've > encountered, even this one!! > > A script which iterates through each field (set of points) generating each > constrained surface and inserting it to a grid, then rendering the entire > grid for your map output would do this pretty easily. > > See the GMT docs for the commands surface for one way to generate each > field of points as a grid, grdmath for how to merge these into one grid, & > grdimage for how to generate the map from these gridded data. Or you could > just render each field separately with grid points outside the field polygon > set to NAN & rendered transparent. > > Or throw all the points into a surface, render this as a single heat map & > overlay the fields as transparent polygons (optionally labelled) with > perhaps the regions between polygons masked if appropriate? > > Lots of ways of generating such maps :-) > > If you'd like some help going down this path, contact me off list. > > Cheers, > > Brent Wood > > > > > --- On *Thu, 2/24/11, Puneet Kishor * wrote: > > > From: Puneet Kishor > Subject: Re: [mapserver-users] Heatmap / choropleth from points attributes > To: "Milo van der Linden" > Cc: mapserver-users at lists.osgeo.org > Date: Thursday, February 24, 2011, 6:23 AM > > > On Wed, Feb 23, 2011 at 04:28:31PM +0100, Milo van der Linden wrote: > > Turning points into polygons (or voronois) is the "thinking like a GIS > > professional" approach. This is valid, but not as good as it can get. > > Basically, using imaging techniques would be a better approach. > > Very well put. > > > > > Perhaps you can take this: http://www.sethoscope.net/heatmap/ as a > starting > > point? The author has created a nice python script to generate a heatmap. > > And here is a Perl-based approach > [http://blog.imtrevor.com/2009/07/16/generating-heat-maps-using-perl/] > > > > > > 2011/2/23 Josh Jordan > > > > > > > First, you have to turn your points into shapes, theres some algorithm > that > > > will turn points into polygons with borders midway between each point. > > > Then, you have to add classes to the mapfile. Add one class per > color. > > > You have to calculate the bounds and color for each class like this: > > > > > > CLASS > > > EXPRESSION(([POPULATION] gt 90457) AND ([POPULATION] le 108397)) > > > STYLE > > > COLOR 10 20 50 > > > END > > > END > > > > > > If your CSV data isnt joined to the mapserver data, you have to > calculate > > > what shapes are in each bucket like this- > > > > > > CLASS > > > EXPRESSION(([NAME] = "Shape1") OR ([NAME] = "Shape2")) > > > STYLE > > > COLOR 10 20 50 > > > END > > > END > > > > > > --- On *Tue, 2/22/11, Daniel Cole >* > wrote: > > > > > > > > > From: Daniel Cole > > > > > Subject: [mapserver-users] Heatmap / choropleth from points attributes > > > To: mapserver-users at lists.osgeo.org > > > Date: Tuesday, February 22, 2011, 10:06 PM > > > > > > I am a new mapserver user and have spent countless hours over the last > > > month reading, trying code, etc. before posting here for help. I am > trying > > > to generate an image (non-interactive) on a webpage based off of > attribute > > > data in a points file. For example, 20 different points equally > distributed > > > in a field contain data about the moister level of the soil. I want to > make > > > the lowest levels blue and the highest levels yellow, or something like > that > > > with some gradients in between. If possible I want it to have > interpolated > > > data between them to show the gradual change, but that isn't a > must. I > > > also want to wrap it in a polygon that trims the edges. > > > > > > I found some python code that I thought might do the trick , but it > seems > > > lots of heat maps are based off of how many points exist in a certain > area, > > > and thats now what I am doing. > > > > > > My points contain numbers in the attributes, 5, 25, 92, 71, etc. I > feel > > > like I am missing some easy way to do this right in front of me with > gdal or > > > something. If someone has any direction or even demo code that would > be > > > greatly appreciated. > > > > > > Thanks, > > > > > > Daniel > > > > > > -----Inline Attachment Follows----- > > > > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Wed Feb 23 19:52:33 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 23 Feb 2011 22:52:33 -0500 Subject: [mapserver-users] WFS Filter Encoding and resulting DB-queries In-Reply-To: <20110223140656.60fafb86@thoe.hq.intevation.de> References: <20110222094428.5b7c7e3c@thoe.hq.intevation.de> <4D64FCFA.5070505@dmsolutions.ca> <20110223140656.60fafb86@thoe.hq.intevation.de> Message-ID: <4D65D601.3030601@dmsolutions.ca> On 23/02/2011 8:06 AM, Stephan Holl wrote: > Hello Assefa, > > Yewondwossen Assefa, [20110223 - 07:26:34] > >> Hi Stephan, >> >> On 22/02/2011 3:44 AM, Stephan Holl wrote: >>> Hello list, >>> >>> while playing with MapServer WFS Filter Encoding capabilities I >>> found some strange things when it comes to form the DB-queries (the >>> requested layer is PostGIS-driven). >>> >>> It seems that there will always be a full table-scan and later on >>> the FE will be applied. Is this done by design? >>> >> Filters that do include spatial filters end up using the mapserver >> experssions. 'Simple' filters should end be using traslated into the >> layer's filter expression and end up being used by postgis as part of >> the data selection. What does the filter encoding looks like? > It is not a spatial-filter we use currently. It is an attribute-based > IsLike-Filter like seen here[1], but we use it with POST. So adding a > BBOX-related filter as another AND-filter will result in optimized > SQL-Query with only the subset fetched from the database? If so, this > seems worth to document though. > The filter you sent as example should use the layer's filter element and that should be used when retrieving the data at the postgis level. When the layer is in debug mode, MapServer 5.6.x logs in this case shows something like (which indicates that the filter is used at the postgis level) ... msPostGISLayerWhichShapes query: select .... and ( (NAME like 'Syd%' escape '!') ) ... Don't you get similar logs? > > Best > > Stephan > > [1] > http://demo.mapserver.org/cgi-bin/wfs?&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=cities&Filter=%3CFilter%3E%3CPropertyIsLike%20wildcard=%27*%27%20singleChar=%27.%27%20escape=%27!%27%3E%3CPropertyName%3ENAME%3C/PropertyName%3E%3CLiteral%3ESyd*%3C/Literal%3E%3C/PropertyIsLike%3E%3C/Filter%3E > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From stephan.holl at intevation.de Thu Feb 24 01:50:24 2011 From: stephan.holl at intevation.de (Stephan Holl) Date: Thu, 24 Feb 2011 10:50:24 +0100 Subject: [mapserver-users] WFS Filter Encoding and resulting DB-queries In-Reply-To: <4D65D601.3030601@dmsolutions.ca> References: <20110222094428.5b7c7e3c@thoe.hq.intevation.de> <4D64FCFA.5070505@dmsolutions.ca> <20110223140656.60fafb86@thoe.hq.intevation.de> <4D65D601.3030601@dmsolutions.ca> Message-ID: <20110224105024.03b216e4@thoe.hq.intevation.de> Hello Assefa, Yewondwossen Assefa , [20110223 - 22:52:33] > On 23/02/2011 8:06 AM, Stephan Holl wrote: > > Hello Assefa, > > > > Yewondwossen Assefa, [20110223 - 07:26:34] > > > >> Hi Stephan, > >> > >> On 22/02/2011 3:44 AM, Stephan Holl wrote: > >>> Hello list, > >>> > >>> while playing with MapServer WFS Filter Encoding capabilities I > >>> found some strange things when it comes to form the DB-queries > >>> (the requested layer is PostGIS-driven). > >>> > >>> It seems that there will always be a full table-scan and later on > >>> the FE will be applied. Is this done by design? > >>> > >> Filters that do include spatial filters end up using the > >> mapserver experssions. 'Simple' filters should end be using > >> traslated into the layer's filter expression and end up being used > >> by postgis as part of the data selection. What does the filter > >> encoding looks like? > > It is not a spatial-filter we use currently. It is an > > attribute-based IsLike-Filter like seen here[1], but we use it with > > POST. So adding a BBOX-related filter as another AND-filter will > > result in optimized SQL-Query with only the subset fetched from the > > database? If so, this seems worth to document though. > > > The filter you sent as example should use the layer's filter > element and that should be used when retrieving the data at the > postgis level. When the layer is in debug mode, MapServer 5.6.x logs > in this case shows something like (which indicates that the filter is > used at the postgis level) > ... > msPostGISLayerWhichShapes query: select .... and ( (NAME like 'Syd%' > escape '!') ) > ... > > Don't you get similar logs? Wait, I have to recheck with my collegue if he can provide more Information and probably logfiles. I do not have them handy right now. Thanks for your clarification though. Best Stephan -- Stephan Holl | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: From stephan.holl at intevation.de Thu Feb 24 01:57:27 2011 From: stephan.holl at intevation.de (Stephan Holl) Date: Thu, 24 Feb 2011 10:57:27 +0100 Subject: [mapserver-users] Status of Java MapScript? In-Reply-To: <20110223140904.08baffab@thoe.hq.intevation.de> References: <20110222095130.5a33f227@thoe.hq.intevation.de> <20110223140904.08baffab@thoe.hq.intevation.de> Message-ID: <20110224105727.2bed71c1@thoe.hq.intevation.de> Hello Umberto, Stephan Holl , [20110223 - 14:09:04] > Hello Umberto, > > Umberto Nicoletti , [20110222 - 20:22:59] > > > Hi Stephan, > > I'm the mantainer of java mapscript and while I have not been > > working on it for quite some time, I am stil successfully using it > > in a couple of projects (one is a fairly complex webgis). > > OK, thanks for your input. It seems I have to play a little bit with > it and see how I can live with that. I am pariculary intersting in saving a mapfile with the save()-method. How is the status with this? Are there any mapfile-keywords accessable (and writeable) to a mapfile using mapscript? Are there known limitations? TIA Stephan > > > On Tue, Feb 22, 2011 at 9:51 AM, Stephan Holl > > wrote: > > > > > Hello list, > > > > > > is anybody able to share the current status of Java Mapscript? > > > Browsing the net mostly brings up PHP mapscript, C# or python > > > mapscript status. > > > > > > I would love to hear some user-feedback from happy (and of course > > > unhappy) Java mapscript-users. :-) > > > > > > TIA > > > > > > Stephan > > > > > > -- > > > Stephan Holl | Tel.: +49 (0)541-33 > > > 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG > > > Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard > > > Reiter, Dr. Jan-Oliver Wagner > > > > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > Viele Gr??e Stephan -- Stephan Holl | Tel.: +49 (0)541-33 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: not available URL: From umberto.nicoletti at gmail.com Thu Feb 24 02:16:54 2011 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Thu, 24 Feb 2011 11:16:54 +0100 Subject: [mapserver-users] Status of Java MapScript? In-Reply-To: <20110224105727.2bed71c1@thoe.hq.intevation.de> References: <20110222095130.5a33f227@thoe.hq.intevation.de> <20110223140904.08baffab@thoe.hq.intevation.de> <20110224105727.2bed71c1@thoe.hq.intevation.de> Message-ID: On Thu, Feb 24, 2011 at 10:57 AM, Stephan Holl wrote: > Hello Umberto, > > Stephan Holl , [20110223 - 14:09:04] > > > Hello Umberto, > > > > Umberto Nicoletti , [20110222 - 20:22:59] > > > > > Hi Stephan, > > > I'm the mantainer of java mapscript and while I have not been > > > working on it for quite some time, I am stil successfully using it > > > in a couple of projects (one is a fairly complex webgis). > > > > OK, thanks for your input. It seems I have to play a little bit with > > it and see how I can live with that. > > I am pariculary intersting in saving a mapfile with the save()-method. > How is the status with this? Are there any mapfile-keywords accessable > (and writeable) to a mapfile using mapscript? Are there known > limitations? > Sorry, can't help you, that is a specific area that I have never used. Umberto > TIA > > Stephan > > > > > > On Tue, Feb 22, 2011 at 9:51 AM, Stephan Holl > > > wrote: > > > > > > > Hello list, > > > > > > > > is anybody able to share the current status of Java Mapscript? > > > > Browsing the net mostly brings up PHP mapscript, C# or python > > > > mapscript status. > > > > > > > > I would love to hear some user-feedback from happy (and of course > > > > unhappy) Java mapscript-users. :-) > > > > > > > > TIA > > > > > > > > Stephan > > > > > > > > -- > > > > Stephan Holl | Tel.: +49 (0)541-33 > > > > 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG > > > > Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard > > > > Reiter, Dr. Jan-Oliver Wagner > > > > > > > > _______________________________________________ > > > > mapserver-users mailing list > > > > mapserver-users at lists.osgeo.org > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > > > > > > Viele Gr??e > > Stephan > > -- > Stephan Holl | Tel.: +49 (0)541-33 508 3663 > Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabr?ck - HR B 18998 > Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner > -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Thu Feb 24 02:44:18 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 24 Feb 2011 11:44:18 +0100 Subject: [mapserver-users] Status of Java MapScript? In-Reply-To: <20110224105727.2bed71c1@thoe.hq.intevation.de> References: <20110222095130.5a33f227@thoe.hq.intevation.de> <20110223140904.08baffab@thoe.hq.intevation.de> <20110224105727.2bed71c1@thoe.hq.intevation.de> Message-ID: Stephan, I consider the save option is working equally well for all bindings. The bulk of the code is implemented in the common mapserver code (mapfile.c) which is not language specific. Best regards, Tamas 2011/2/24 Stephan Holl > Hello Umberto, > > Stephan Holl , [20110223 - 14:09:04] > > > Hello Umberto, > > > > Umberto Nicoletti , [20110222 - 20:22:59] > > > > > Hi Stephan, > > > I'm the mantainer of java mapscript and while I have not been > > > working on it for quite some time, I am stil successfully using it > > > in a couple of projects (one is a fairly complex webgis). > > > > OK, thanks for your input. It seems I have to play a little bit with > > it and see how I can live with that. > > I am pariculary intersting in saving a mapfile with the save()-method. > How is the status with this? Are there any mapfile-keywords accessable > (and writeable) to a mapfile using mapscript? Are there known > limitations? > > TIA > > Stephan > > > > > > On Tue, Feb 22, 2011 at 9:51 AM, Stephan Holl > > > wrote: > > > > > > > Hello list, > > > > > > > > is anybody able to share the current status of Java Mapscript? > > > > Browsing the net mostly brings up PHP mapscript, C# or python > > > > mapscript status. > > > > > > > > I would love to hear some user-feedback from happy (and of course > > > > unhappy) Java mapscript-users. :-) > > > > > > > > TIA > > > > > > > > Stephan > > > > > > > > -- > > > > Stephan Holl | Tel.: +49 (0)541-33 > > > > 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG > > > > Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard > > > > Reiter, Dr. Jan-Oliver Wagner > > > > > > > > _______________________________________________ > > > > mapserver-users mailing list > > > > mapserver-users at lists.osgeo.org > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > > > > > > Viele Gr??e > > Stephan > > -- > Stephan Holl | Tel.: +49 (0)541-33 508 3663 > Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabr?ck - HR B 18998 > Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner > > _______________________________________________ > 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.Fawcett at state.mn.us Thu Feb 24 11:14:39 2011 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Thu, 24 Feb 2011 13:14:39 -0600 Subject: [mapserver-users] Spherical Mercator Projection Problem In-Reply-To: References: Message-ID: Sergey, If your data is in epsg:4326 and you want to publish the data as epsg:3785, you will need to projection blocks to your layers. Something like: PROJECTION "init=epsg:4326" END The Projection block in the MAP section defines your output projection. Because your data is not in the same projection, you will need to define a projection block in each layer section. Those projection blocks define the 'input' projection. They tell MapServer what projection the data exists in. This allows MapServer (with proj4 support) to re-project your data to the output projection. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Sergey Kraev Sent: Wednesday, February 23, 2011 5:01 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Spherical Mercator Projection Problem Hi, I'm running MS4W v3.0 (including MapServer 5.6.5) on Windows. My data source are PostGIS multipolygon countries' borders. I have successfully got MapServer to render the world map in WGS84 projection using these settings: Request: http://127.0.0.1:8080/cgi-bin/mapserv.exe?map=world.map&mode=map&mapsize=256+256&mapext=-180+-90+180+90 world.map: MAP EXTENT -180 -90 180 90 #EXTENT -20037508 -20037508 20037508 20037508 SIZE 256 256 IMAGECOLOR 153 179 204 FONTSET "c:\MS4W\fonts\fonts.list" RESOLUTION 96 MAXSIZE 5000 PROJECTION "init=epsg:4326" #"init=epsg:3785" END ... I would like MapServer to render the same data into a "Web (spherical) Mercator" projected map (epsg:3785), but I don't know how to modify my request and mapfile in order to get the correct map. With the following settings I just receive a picture without any polygons. \ms4w\proj\nad\epsg: ... <3785> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs <> ... Request (only mapext is different): http://127.0.0.1:8080/cgi-bin/mapserv.exe?map=world.map&mode=map&mapsize=256+256&mapext=-20037508+-20037508+20037508+20037508 world.map (only EXTENT and PROJECTION are different): MAP #EXTENT -180 -90 180 90 EXTENT -20037508 -20037508 20037508 20037508 SIZE 256 256 IMAGECOLOR 153 179 204 FONTSET "c:\MS4W\fonts\fonts.list" RESOLUTION 96 MAXSIZE 5000 PROJECTION #"init=epsg:4326" "init=epsg:3785" END ... I'm assuming that -20037508 -20037508 20037508 20037508 is correct extent for the whole world map, since Google uses that and they also have Mercator projection. Thanks for your help. Sergey -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at ci.stpaul.mn.us Thu Feb 24 11:44:40 2011 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Thu, 24 Feb 2011 13:44:40 -0600 Subject: [mapserver-users] TEMPLATE generation completion (NOT!) Message-ID: <4D6660C8020000A800026DA9@heckle> All, More info: Is there possibly a limit to how large a point list can be in POLYGON imagemap, either in MapServer output, or as a standard for imagemaps? This dataset that I'm working with has some really intricate polygons with lot's of vertices. I just zoomed in on a couple of areas very tight, only displaying three features. and even at this scale, the number of vertices is huge for two of the polygons. I only see maybe 10-15 vertices on screen, but there are many other offscreen as well. As far as I understand how the imagemaping process works (and is bared out by the output I'm seeing), is that the imagemap grabs the vertices of the polygons, even those off screen and displays the feature in it's entirety even though it's not displayed completely inside of the current query BBOX. Is there a way to clip the imagemap output to the current BBOX request size, this would essentially truncate the polygons at the edges of the view, which would reduce the number of overall vertices dramatically. Thanks bobb ----------- All, Ok, this problem has returned, and on the same layer. I've traced everything around even through our weird file repository, I've made sure everything is synced on the backend file servers and the files are all replicated as they should be, with the proper permissions. I cannot get this particular layer to output the closing tag in the imagemap. any other ideas on what to check? bobb -------------- Steve, Ok, I have no idea what happened, but fixing the name of the footer file (back to what it was) fixed the call, it now pops out with the FOOTER content. Must have been some weird permission error, but wouldn't that throw an error just like breaking the name? Looks like it fixed itself as a result of editing the name . . . . Thanks, I think, (I'm going to leave it alone for a while while it's working . . . . ;c) I still wonder what went on there though. I should mention too that this is updating via WEBDAV, I always forget this part because I use it day in and day out and it's always there as a folder. Also, all the configuration files reside inside of SVN. Anyway, those are the funky configuration elements I was talking about earlier. Thanks again, though really, this one was driving me over the edge . . . . bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at ci.stpaul.mn.us Thu Feb 24 12:10:36 2011 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Thu, 24 Feb 2011 14:10:36 -0600 Subject: [mapserver-users] TEMPLATE generation completion (NOT!) Message-ID: <4D6666DC020000A800026DAF@heckle> All, Still more info . . . I think I may have found the problem. Some of these polygons have holes in them. I know I've seen threads before about polygons with holes in them and such. Could this be where the problems are originating? Thanks bobb ------- All, More info: Is there possibly a limit to how large a point list can be in POLYGON imagemap, either in MapServer output, or as a standard for imagemaps? This dataset that I'm working with has some really intricate polygons with lot's of vertices. I just zoomed in on a couple of areas very tight, only displaying three features. and even at this scale, the number of vertices is huge for two of the polygons. I only see maybe 10-15 vertices on screen, but there are many other offscreen as well. As far as I understand how the imagemaping process works (and is bared out by the output I'm seeing), is that the imagemap grabs the vertices of the polygons, even those off screen and displays the feature in it's entirety even though it's not displayed completely inside of the current query BBOX. Is there a way to clip the imagemap output to the current BBOX request size, this would essentially truncate the polygons at the edges of the view, which would reduce the number of overall vertices dramatically. Thanks bobb ----------- All, Ok, this problem has returned, and on the same layer. I've traced everything around even through our weird file repository, I've made sure everything is synced on the backend file servers and the files are all replicated as they should be, with the proper permissions. I cannot get this particular layer to output the closing tag in the imagemap. any other ideas on what to check? bobb -------------- Steve, Ok, I have no idea what happened, but fixing the name of the footer file (back to what it was) fixed the call, it now pops out with the FOOTER content. Must have been some weird permission error, but wouldn't that throw an error just like breaking the name? Looks like it fixed itself as a result of editing the name . . . . Thanks, I think, (I'm going to leave it alone for a while while it's working . . . . ;c) I still wonder what went on there though. I should mention too that this is updating via WEBDAV, I always forget this part because I use it day in and day out and it's always there as a folder. Also, all the configuration files reside inside of SVN. Anyway, those are the funky configuration elements I was talking about earlier. Thanks again, though really, this one was driving me over the edge . . . . bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From jean-francois at gigand.fr Thu Feb 24 12:33:00 2011 From: jean-francois at gigand.fr (=?ISO-8859-1?Q?Jean=2DFran=E7ois_Gigand?=) Date: Thu, 24 Feb 2011 21:33:00 +0100 Subject: [mapserver-users] Spherical Mercator Projection Problem In-Reply-To: References: Message-ID: Hi, Indeed. Also note that EPSG:900913 is the same as EPSG:3785 and EPSG:3857. These three are the Spherical Mercator projection, which is the right one to use for overlays on Google Maps. Jean-Fran?ois Gigand 2011/2/24 Fawcett, David (MPCA) : > Sergey, > > > > If your data is in epsg:4326 and you want to publish the data as epsg:3785, > you will need to projection blocks to your layers. > > > > Something like: > > > > ? PROJECTION > > ??????????? "init=epsg:4326" > > ? END > > The Projection block in the MAP section defines your output projection. > Because your data is not in the same projection, you will need to define a > projection block in each layer section.? Those projection blocks define the > ?input? projection.? They tell MapServer what projection the data exists > in.? This allows MapServer (with proj4 support) to re-project your data to > the output projection. > > > > David. > > > > > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Sergey Kraev > Sent: Wednesday, February 23, 2011 5:01 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Spherical Mercator Projection Problem > > > > Hi, > > > > I?m running MS4W v3.0 (including MapServer 5.6.5) on Windows. > > > > My data source are PostGIS multipolygon countries? borders. > > > > I have successfully got MapServer to render the world map in WGS84 > projection using these settings: > > > > Request: > > > > http://127.0.0.1:8080/cgi-bin/mapserv.exe?map=world.map&mode=map&mapsize=256+256&mapext=-180+-90+180+90 > > > > world.map: > > > > MAP > > EXTENT??????? ?????????? -180 -90 180 90 > > ? #EXTENT???????? -20037508 -20037508 20037508 20037508 > > ? SIZE?????????? 256 256 > > ? IMAGECOLOR???? 153 179 204 > > ? FONTSET??????? "c:\MS4W\fonts\fonts.list" > > ? RESOLUTION??????? 96 > > ? MAXSIZE??????? 5000 > > > > ? PROJECTION > > ??????????? "init=epsg:4326" > > ??????????? #"init=epsg:3785" > > ? END > > ? > > > > > > I would like MapServer to render the same data into a ?Web (spherical) > Mercator? projected map (epsg:3785), but I don't know how to modify my > request and mapfile in order to get the correct map. > > > > With the following settings I just receive a picture without any polygons. > > > > \ms4w\proj\nad\epsg: > > > > ??????????? ???? ? > > <3785> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 > +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext? +no_defs <> > > ? > > > > Request (only mapext is different): > > > > http://127.0.0.1:8080/cgi-bin/mapserv.exe?map=world.map&mode=map&mapsize=256+256&mapext=-20037508+-20037508+20037508+20037508 > > > > world.map (only EXTENT and PROJECTION are different): > > > > MAP > > ? #EXTENT???? ?????????? -180 -90 180 90 > > ? EXTENT???????? -20037508 -20037508 20037508 20037508 > > ? SIZE?????????? 256 256 > > ? IMAGECOLOR???? 153 179 204 > > ? FONTSET??????? "c:\MS4W\fonts\fonts.list" > > ? RESOLUTION??????? 96 > > ? MAXSIZE??????? 5000 > > > > ? PROJECTION > > ??????????? #"init=epsg:4326" > > ??????????? "init=epsg:3785" > > ? END > > ? > > > > > > I?m assuming that -20037508 -20037508 20037508 20037508 is correct extent > for the whole world map, since Google uses that and they also have Mercator > projection. > > > > Thanks for your help. > > > > Sergey > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From ChiefDan at gmail.com Thu Feb 24 12:49:22 2011 From: ChiefDan at gmail.com (ChiefDan) Date: Thu, 24 Feb 2011 12:49:22 -0800 (PST) Subject: [mapserver-users] Font sizing question Message-ID: <1298580562970-6061930.post@n2.nabble.com> I'm migrating a layer from an older mapserver(v4.8.1) to my v4.10 installation. The layer uses an ESRI font set for wind barbs. On the older installation, the symbols are much darker. I've tried tweaking a couple of settings in the new mapfile but nothing really seems to make a difference. The color config is 0 0 0, however on the map they look grey. I tried applying an OUTLINECOLOR of 0 0 0, however that was too extreme making the barb almost block like. Here is a snippet of a CLASS: CLASS EXPRESSION ((([m_value] * 2.2369362921) >= 5) AND (([m_value] * 2.2369362921) < 10)) TEXT '?' LABEL ANGLE [d_label_theta] FORCE TRUE TYPE TRUETYPE FONT 'weather' ANTIALIAS TRUE COLOR 0 0 0 #OUTLINECOLOR 0 0 0 POSITION CC OFFSET 2 -6 BUFFER 0 PARTIALS TRUE SIZE 25 END STYLE END END I appreciate any help/hints Dan -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Font-sizing-question-tp6061930p6061930.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dmorissette at mapgears.com Thu Feb 24 13:23:17 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 24 Feb 2011 16:23:17 -0500 Subject: [mapserver-users] Sponsorship for OSGeo Montreal Code Sprint 2011 Message-ID: <4D66CC45.4020205@mapgears.com> Dear MapServer users, OSGeo's Montreal Code Sprint 2011 is going to take place on March 14-18, 2011. A group of over 20 OSGeo project developers and contributors will meet in Montreal for 4 days of work on their respective projects... for the advancement of the software that you use everyday. So far, 22 devs/contributors have signed up to participate, including 12 who plan to work on MapServer. If your organization uses MapServer then you might want to let your boss know (or take note if you're the boss) that we are looking for sponsors ($750 each) to support food and fun for the sprinters as they work hard and play hard for four productive days. Each $750 sponsorship will be put towards lunch and dinner costs for the sprinters, and potentially bringing in sprinters who might otherwise be unable to attend. Ideally we'd need another 2 or 3 sponsors to meet our current budget objectives, and if we have a surplus then it will either be returned to OSGeo, or used for a future code sprint. All the details about the sprint, including our current budget are available in the wiki at http://wiki.osgeo.org/wiki/Montreal_Code_Sprint_2011 If you are interested in sponsoring then please contact me directly off-list. Finally, I'd like to thank our first round of sponsors: - LizardTech - http://www.lizardtech.com/ - Azavea - http://www.azavea.com/ - qPublic - http://qpublic.net/ - Farallon Geographics - http://fargeo.com/ And also big thanks to the "Communaut? M?tropolitaine de Montr?al (CMM)" for hosting us in their wonderful conference room. I hope to be able to announce a few more sponsors in the next couple of days. :-) Daniel P.S. There is also still a bit of room for more sprinters. The only requirement is that you be knowledgeable and willing to get your hands dirty doing some work for one of the projects that is represented. If you are interested in participating then to help us with planning please list your name in the wiki, join the "tosprint" list to receive the latest updates, and book your hotel ASAP since our room block is about to expire. All that info is in the wiki. -- Daniel Morissette http://www.mapgears.com/ From rainer at silverstripe.com Thu Feb 24 16:33:18 2011 From: rainer at silverstripe.com (Rainer Spittel) Date: Fri, 25 Feb 2011 13:33:18 +1300 Subject: [mapserver-users] Trouble with WFS GetFeature: get same feature returned multiple times Message-ID: Hi, I didn't had problems with UMN Mapserver for a very long time. I really love the product, and now I really need help. I set up a WFS Server, accessing a PostGIS point table. I use OpenLayers to visualise the WFS layer, and use the cluster strategy to group close points to a large cluster point. Now to the problem: I want to retrieve the feature data from a cluster point. I already have the IDs of the features of the cluster. Now I send a GetFeature request to the Mapserver to get all attribute information for the features, i.e. ID=231 and ID=273: http://[...]/cgi-bin/stations?request=getfeature&service=WFS&version=1.0.0&typename=DTIS&OUTPUTFORMAT=gml3&featureid=DTIS.231,DTIS.273 The response of this request contains the feature 231 twice in the response. If I add another ID to the request, I get the feature 231 three times returned: [...] [...] 174.081500 -34.949500 231 [...] As soon as I export the table from PostgreSQL into a shapefile, update the mapfile to use the shapefile and run the same query, I get the correct response. I also tracked the SQL query, which is sent to Postgres, and the query is correct. PostgreSQL returns the correct rows. I use MapServer V5.4.1, which is not a very newer version, but I am constraint by the Debian packages. Is this an user error (I am not smart enough)? Or a bug? If so, has this bug been resolved in a later version? Any help is really appreciated. Thanks, Rainer Rainer Spittel | Head of Development SilverStripe http://silverstripe.com Phone: +64 4 978 7330 Mobile: +64 21 1390370 Skype: fb3rasp -------------- next part -------------- An HTML attachment was scrubbed... URL: From thexray at gmail.com Fri Feb 25 02:55:04 2011 From: thexray at gmail.com (Sergey Kraev) Date: Fri, 25 Feb 2011 12:55:04 +0200 Subject: [mapserver-users] Spherical Mercator Projection Problem In-Reply-To: References: Message-ID: Thanks! I wasn't aware of that. Additionally I had to increase layer class maxscale parameter. Sergey On Thu, Feb 24, 2011 at 10:33 PM, Jean-Fran?ois Gigand < jean-francois at gigand.fr> wrote: > Hi, > > Indeed. > > Also note that EPSG:900913 is the same as EPSG:3785 and EPSG:3857. > These three are the Spherical Mercator projection, which is the right > one to use for overlays on Google Maps. > > > Jean-Fran?ois Gigand > > > > > 2011/2/24 Fawcett, David (MPCA) : > > Sergey, > > > > > > > > If your data is in epsg:4326 and you want to publish the data as > epsg:3785, > > you will need to projection blocks to your layers. > > > > > > > > Something like: > > > > > > > > PROJECTION > > > > "init=epsg:4326" > > > > END > > > > The Projection block in the MAP section defines your output projection. > > Because your data is not in the same projection, you will need to define > a > > projection block in each layer section. Those projection blocks define > the > > ?input? projection. They tell MapServer what projection the data exists > > in. This allows MapServer (with proj4 support) to re-project your data > to > > the output projection. > > > > > > > > David. > > > > > > > > > > > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Sergey > Kraev > > Sent: Wednesday, February 23, 2011 5:01 AM > > To: mapserver-users at lists.osgeo.org > > Subject: [mapserver-users] Spherical Mercator Projection Problem > > > > > > > > Hi, > > > > > > > > I?m running MS4W v3.0 (including MapServer 5.6.5) on Windows. > > > > > > > > My data source are PostGIS multipolygon countries? borders. > > > > > > > > I have successfully got MapServer to render the world map in WGS84 > > projection using these settings: > > > > > > > > Request: > > > > > > > > > http://127.0.0.1:8080/cgi-bin/mapserv.exe?map=world.map&mode=map&mapsize=256+256&mapext=-180+-90+180+90 > > > > > > > > world.map: > > > > > > > > MAP > > > > EXTENT -180 -90 180 90 > > > > #EXTENT -20037508 -20037508 20037508 20037508 > > > > SIZE 256 256 > > > > IMAGECOLOR 153 179 204 > > > > FONTSET "c:\MS4W\fonts\fonts.list" > > > > RESOLUTION 96 > > > > MAXSIZE 5000 > > > > > > > > PROJECTION > > > > "init=epsg:4326" > > > > #"init=epsg:3785" > > > > END > > > > ? > > > > > > > > > > > > I would like MapServer to render the same data into a ?Web (spherical) > > Mercator? projected map (epsg:3785), but I don't know how to modify my > > request and mapfile in order to get the correct map. > > > > > > > > With the following settings I just receive a picture without any > polygons. > > > > > > > > \ms4w\proj\nad\epsg: > > > > > > > > ? > > > > <3785> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 > > +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs <> > > > > ? > > > > > > > > Request (only mapext is different): > > > > > > > > > http://127.0.0.1:8080/cgi-bin/mapserv.exe?map=world.map&mode=map&mapsize=256+256&mapext=-20037508+-20037508+20037508+20037508 > > > > > > > > world.map (only EXTENT and PROJECTION are different): > > > > > > > > MAP > > > > #EXTENT -180 -90 180 90 > > > > EXTENT -20037508 -20037508 20037508 20037508 > > > > SIZE 256 256 > > > > IMAGECOLOR 153 179 204 > > > > FONTSET "c:\MS4W\fonts\fonts.list" > > > > RESOLUTION 96 > > > > MAXSIZE 5000 > > > > > > > > PROJECTION > > > > #"init=epsg:4326" > > > > "init=epsg:3785" > > > > END > > > > ? > > > > > > > > > > > > I?m assuming that -20037508 -20037508 20037508 20037508 is correct extent > > for the whole world map, since Google uses that and they also have > Mercator > > projection. > > > > > > > > Thanks for your help. > > > > > > > > Sergey > > > > > > > > _______________________________________________ > > 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 yassefa at dmsolutions.ca Fri Feb 25 04:59:19 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Fri, 25 Feb 2011 07:59:19 -0500 Subject: [mapserver-users] Trouble with WFS GetFeature: get same feature returned multiple times In-Reply-To: References: Message-ID: <4D67A7A7.1020504@dmsolutions.ca> Hi, I just tried this with my test data and url similar you yours [1] and was not able to reproduce it locally using 5.4 and 5.6. If your data/map are not sensitive, would it be possible to send it to me directly and I will give it a try again (It would be easier for me to see the problem)? best regards [1]; http://127.0.0.1/cgi-bin/mapserv.exe?map=f:/projects/mapserver-buildkit-2008/mapserver/msautotest/wxs/wfs_filter_mine2.map&&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=popplace_postgis&featureid=popplace_postgis.Tignish,popplace_postgis.Cheticamp,popplace_postgis.Halifax On 24/02/2011 7:33 PM, Rainer Spittel wrote: > Hi, > > I didn't had problems with UMN Mapserver for a very long time. I > really love the product, and now I really need help. > I set up a WFS Server, accessing a PostGIS point table. I use > OpenLayers to visualise the WFS layer, and use the cluster strategy to > group close points to a large cluster point. > > Now to the problem: > > I want to retrieve the feature data from a cluster point. I already > have the IDs of the features of the cluster. > Now I send a GetFeature request to the Mapserver to get all attribute > information for the features, i.e. ID=231 and ID=273: > > http://[...]/cgi-bin/stations?request=getfeature&service=WFS&version=1.0.0&typename=DTIS&OUTPUTFORMAT=gml3&featureid=DTIS.231,DTIS.273 > > > The response of this request contains the feature 231 twice in the > response. If I add another ID to the request, I get the feature 231 > three times returned: > [...] > > > [...] > > > 174.081500 -34.949500 > > > 231 > > > > > [...] > > > As soon as I export the table from PostgreSQL into a shapefile, update the mapfile to use the shapefile and run the same query, I get the correct response.I also tracked the SQL query, which is sent to Postgres, and the query is correct. PostgreSQL returns the correct rows. > I use MapServer V5.4.1, which is not a very newer version,but I am constraint by the Debian packages. > Is this an user error (I am not smart enough)? Or a bug? If so, has this bug been resolved in a later version? > Any help is really appreciated. > Thanks, > Rainer > Rainer Spittel | Head of Development > SilverStripe > http://silverstripe.com > > Phone: +64 4 978 7330 > Mobile: +64 21 1390370 > Skype: fb3rasp > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: yassefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From webturtles at gmail.com Fri Feb 25 05:41:20 2011 From: webturtles at gmail.com (Chris Jackson) Date: Fri, 25 Feb 2011 13:41:20 +0000 Subject: [mapserver-users] Raster dataset recommendations Message-ID: Hi all I have a largish raster dataset (2 GB) of hi resolution data points with a small geographical footprint. What would people recommend as the best way to prepare and then call data in the map file (with rendering performance in mind). It isn't going to be a basemap and the output legend will be based on the pixel value (e.g. wave height). Any thoughts would be much appreciated. Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From edikaradumi at gmail.com Fri Feb 25 07:08:48 2011 From: edikaradumi at gmail.com (Edi.Karadumi) Date: Fri, 25 Feb 2011 07:08:48 -0800 (PST) Subject: [mapserver-users] Re: Raster dataset recommendations In-Reply-To: References: Message-ID: <1298646528109-6064777.post@n2.nabble.com> Since it as less than 4gb, if you have the image in different tiles just merge them together. The image format should be tif. 1- Fisrt enable internal tiling with the command gdal_translate -co "TILED=YES" original.tif tiled.tif 2-than add overviews gdaladdo -r average 2 4 8 16 32 64 128 3-create a tileindex gdaltindex myindex.shp *.tif 4-than create a spatial index shptree myindex.shp and finally add the layer to the map LAYER NAME myorthos TYPE RASTER DUMP TRUE STATUS ON TILEINDEX ../data/myindex TILEITEM Location -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Raster-dataset-recommendations-tp6064491p6064777.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mwkorver at gmail.com Fri Feb 25 07:31:12 2011 From: mwkorver at gmail.com (Mark Korver) Date: Fri, 25 Feb 2011 09:31:12 -0600 Subject: [mapserver-users] Re: Raster dataset recommendations In-Reply-To: <1298646528109-6064777.post@n2.nabble.com> References: <1298646528109-6064777.post@n2.nabble.com> Message-ID: If you are merging tiles together to create 1 large tif, why would you need to create an index to it? I would think you would just directly reference the tif. so, rather than TILEINDEX ../data/myindex skip the index building steps just DATA ../data/big.tif On Fri, Feb 25, 2011 at 9:08 AM, Edi.Karadumi wrote: > > Since it as less than 4gb, if you have the image in different tiles just > merge them together. The image format should be tif. > > 1- Fisrt enable internal tiling with the command > > gdal_translate -co "TILED=YES" original.tif tiled.tif > > 2-than add overviews > > gdaladdo -r average 2 4 8 16 32 64 128 > > 3-create a tileindex > > gdaltindex myindex.shp *.tif > > 4-than create a spatial index > > shptree myindex.shp > > and finally add the layer to the map > > LAYER > ?NAME myorthos > ?TYPE RASTER > ?DUMP TRUE > ?STATUS ON > ?TILEINDEX ../data/myindex > ?TILEITEM Location > > > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Raster-dataset-recommendations-tp6064491p6064777.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 gregor at hostgis.com Fri Feb 25 07:54:03 2011 From: gregor at hostgis.com (Gregor at HostGIS) Date: Fri, 25 Feb 2011 07:54:03 -0800 Subject: [mapserver-users] Re: Raster dataset recommendations In-Reply-To: <1298646528109-6064777.post@n2.nabble.com> References: <1298646528109-6064777.post@n2.nabble.com> Message-ID: <4D67D09B.8080402@hostgis.com> I would agree with Edi and recommend TIFF. It's easy to move around and deal with, and is the fastest of the raster formats. (unless something new has come up?) I would also agree with Mark: a tileindex is for mosaicing many TIFFs, and if your result is 1 single TIFF the tileindex is unnecessary. Edi's recommendation about a "internal tile" is VERY important. It costs slightly more disk space, but makes a tremendous improvement in the random access within the TIFF's extent. The overviews accomplish a similar performance gain, but for views in which the TIFF's extent is only a subset of what's showing on the map. -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ Linux+ PHP PostgreSQL MySQL DHTML/JavaScript/AJAX "No one cares if you can back up ? only if you can recover." From christianhelring at gmail.com Fri Feb 25 08:03:23 2011 From: christianhelring at gmail.com (Chrishelring) Date: Fri, 25 Feb 2011 08:03:23 -0800 (PST) Subject: [mapserver-users] Problems with showing attributes Message-ID: <1298649803600-6064968.post@n2.nabble.com> Hi all, I?m having problems showing some attributes. The idea is that the user uses the info tool, click on the polygon and retrieve the information from the dataset. The data itself is shown, but the different names on the columns are not! I would really like that information to show as well. Below is an example on what I mean. http://osgeo-org.1803224.n2.nabble.com/file/n6064968/info.jpg I?ve used an old template that I?ve modified: Distrikt[Distrikt] Omr?denavn[Omr?denavn] Stednr[Stednr] Beskrivelse[Beskrivelse] Gr?stype[Gr?s_1] Blomster[Blomster_2] Buske[Buske_3] Tr?er[Tr?er_4] H?kke[H?kke_5] Bel?gning[Bel?gning_6] Inventar[Inventar_7] Renholdelse[Renholdelse_8] Niveau_1[Niveau_1] Niveau_2[Niveau_2] Niveau_3[Niveau_3] Serviceydelser[Serviceydelser_9] Evt. bem?rkning til serviceydelser[serviceydelse_bem?rkning] Vandomr?der[Vandomr?der_10] Evt. bem?rkninger[Bem?rkninger] Opdateringsdato[Opdateringsdato] the data in the different colums (shown in the html as []) is okay, the problem is the name of the columns. What am I doing wrong? Sincerly, Christian -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problems-with-showing-attributes-tp6064968p6064968.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Weisbend at wapa.gov Fri Feb 25 07:50:26 2011 From: Weisbend at wapa.gov (Eric Weisbender) Date: Fri, 25 Feb 2011 08:50:26 -0700 Subject: [mapserver-users] REST and SOAP in Mapserver Message-ID: <4D676D52020000DF00070251@10.1.50.131> Is it possible to consume REST and/or SOAP services in Mapserver somewhat like WMS and how? -------------- next part -------------- An HTML attachment was scrubbed... URL: From reh2 at prodigy.net Fri Feb 25 10:48:27 2011 From: reh2 at prodigy.net (Robert Hollingsworth) Date: Fri, 25 Feb 2011 10:48:27 -0800 (PST) Subject: [mapserver-users] Re:REST and SOAP in Mapserver Message-ID: <79169.15504.qm@web80501.mail.mud.yahoo.com> Eric, Several years ago I did some experimental work with SOAP and REST inside the mapserv engine.? The archives may contain a few old messages about the details, but what I was doing was to consume (now defunct) ESRI ArcWeb Services map images as raster backdrops for added mapserver vector layers.? I created ?CONNECTIONTYPE ARCWEB and associated mapserver mapfile constructs to ArcWeb params.? The communication part was fairly easy to deal with: I refit the existing OWS cURL code to access the ESRI server.? The construction of the SOAP xml was cumbersome.? The image that came back was slipped into the existing raster output mechanism. When I revisited the project a year or so later, I decided it was best to stay OUT of mapserv cgi and opt instead for doing the work in php-mapscript, where the SOAP processing is more advanced. Also, as I see it, the main problem of trying to consume SOAP and REST services in mapserver is simply that it is difficult to anticipate what kinds of functions you are going to be using to access the SOAP/REST server, so there's no generic way to associate mapfile constructs to the foreign parameters, and there's no way to make the construction of SOAP/REST requests generic either. If someone REALLY needed to do this within mapserv cgi, there might be some way to have? WSDL-processing to make things more generic, but I'd be skeptical about the success of such a venture. Robert H. original message: From: "Eric Weisbender" To: mapserver-users at lists.osgeo.org Is it possible to consume REST and/or SOAP services in Mapserver somewhat like WMS and how? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Fri Feb 25 11:23:33 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 25 Feb 2011 15:23:33 -0400 Subject: [mapserver-users] Raster dataset recommendations In-Reply-To: References: Message-ID: <4D6801B5.1030909@gatewaygeomatics.com> On 11-02-25 9:41 AM, Chris Jackson wrote: > Hi all > > I have a largish raster dataset (2 GB) of hi resolution data points with > a small geographical footprint. What would people recommend as the best > way to prepare and then call data in the map file (with rendering > performance in mind). It isn't going to be a basemap and the output > legend will be based on the pixel value (e.g. wave height). > > Any thoughts would be much appreciated. > Hi Chris, The guys have responded already with great recommendations (geotiff is indeed still the best way to rock with rasters); I'd like to add, regarding performance, that you'll see similar results with MapServer on both Unix and Windows, as shown by the results in the recent WMS Benchmarking exercise (http://www.slideshare.net/gatewaygeomatics.com/wms-performance-shootout-2010). -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From flormrocha at geobis.com Fri Feb 25 11:58:51 2011 From: flormrocha at geobis.com (Flor Marina Rocha) Date: Fri, 25 Feb 2011 14:58:51 -0500 Subject: [mapserver-users] problem wfs Message-ID: I set up a WFS Server, accessing a PostGIS poligon table. I use OpenLayers to visualise the WFS layer, but But not shown on the map I use MapServer V54.10.6 and Tomcat 6 Any help is really appreciated.Thanks,Flor Marina Rocha--------------------------------------------------------------------------------------------------------------------------------------------------- wfs = new OpenLayers.Layer.Vector("prueba", { strategies: [new OpenLayers.Strategy.BBOX()], protocol: new OpenLayers.Protocol.WFS({ version: "1.0.0", srsName: "EPSG:4326", url: "http://localhost:8081/cgi-bin/mapserv.exe?map=/ms4w/apps/geobis/htdocs/colombia/departamentos_colombiawfs.map&SERVICE=WFS", featureType: "departamentos_wfs", featureNS: "http://mapserver.gis.umn.edu/mapserver", geometryName: "the_geom", extractAttributes: true }) }); map.addLayer(wfs); ______________________________________________________________________________________________________ MAP NAME "WFS_server" EXTENT -81.735857 -4.223438 -66.851802 13.389054 SIZE 800 800 UNITS meters SHAPEPATH "../mapaInternet/00000_Colombia/SH" CONFIG "MS_ERRORFILE" "/ms4w/tmp/ms_depto_error.txt" WEB TEMPLATE 'geobis.html' IMAGEPATH "/ms4w/tmp/" IMAGEURL "/tmp/" METADATA "wfs_title" "WMS Server Departamentos" "wfs_onlineresource" "http://localhost:8081/cgi-bin//mapserv.exe?map=/ms4w/apps/geobis/htdocs/colombia/departamentos_colombiawfs.map&SERVICE=WFS" "wfs_srs" "epsg:4326" "wfs_abstract" "my service wms" END END PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME png32 DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" END LAYER NAME "departamentos_wfs" METADATA "wfs_title" "departamentos_wfs" "gml_featureid" "gid" "wfs_featureid" "gid" "gml_include_items" "all" "wfs_include_items" "all" "wfs_maxfeatures" "1000" "wfs_namespace_uri" "http://mapserver.gis.umn.edu/mapserver" "wfs_namespace_prefix" "ms" END STATUS ON TYPE POLYGON CONNECTIONTYPE POSTGIS CONNECTION "user=geobis password=geobis2010 host=192.168.1.39 port=5432 dbname=geobis" DATA "the_geom from cartografia.col_departamentos_pol using unique gid using srid=4326" PROCESSING "CLOSE_CONNECTION=DEFER" PROJECTION "init=epsg:4326" END DUMP TRUE CLASS STYLE COLOR 128 128 128 OUTLINECOLOR 128 128 128 WIDTH 2 END NAME "NAME" END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From webturtles at gmail.com Fri Feb 25 13:45:31 2011 From: webturtles at gmail.com (Chris Jackson) Date: Fri, 25 Feb 2011 21:45:31 +0000 Subject: [mapserver-users] Re: Raster dataset recommendations Message-ID: Hi folks Thanks for all the suggestions about raster preparation - v.useful tips. I had guessed tiffs were probably the format to go for, the dataset is currently in an ESRI grid format after being recently exported from some modelling results. Many thanks Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From jean-francois at gigand.fr Fri Feb 25 14:02:36 2011 From: jean-francois at gigand.fr (=?ISO-8859-1?Q?Jean=2DFran=E7ois_Gigand?=) Date: Fri, 25 Feb 2011 23:02:36 +0100 Subject: [mapserver-users] Raster dataset recommendations In-Reply-To: <4D6801B5.1030909@gatewaygeomatics.com> References: <4D6801B5.1030909@gatewaygeomatics.com> Message-ID: Hi, Thanks for these advises! I take the opportunity of this topic to ask a similar question. I have a larger data set (400 Go) in about 24000 GeoTIFFs files, using the method described by Edi (tiled, internal overviews, index shape). It works pretty well (older version of MapServer), with on-the-fly reprojection, quick enough when the resolution is small-enough. My first question is about the right tile size. What should I take into account to seek the right balance between many small files and fewer bigger files? With too many files, I guess I should build external overviews as well. Also, do the 24000 files make a performance penalty for file access (stat() call)? Are TFW files checked even with geocoded tiffs? Second question: what about WKT raster, or the new raster support within PostGIS? I would love to use it, for the power of SQL queries. Is it really slower than GeoTIFF? Is it well suited for very large datasets? Any advise on this would be very helpful. Thanks! JF 2011/2/25 Jeff McKenna : > On 11-02-25 9:41 AM, Chris Jackson wrote: >> >> Hi all >> >> I have a largish raster dataset (2 GB) of hi resolution data points with >> a small geographical footprint. ?What would people recommend as the best >> way to prepare and then call data in the map file (with rendering >> performance in mind). ?It isn't going to be a basemap and the output >> legend will be based on the pixel value (e.g. wave height). >> >> Any thoughts would be much appreciated. >> > > Hi Chris, > > The guys have responded already with great recommendations (geotiff is > indeed still the best way to rock with rasters); I'd like to add, regarding > performance, that you'll see similar results with MapServer on both Unix and > Windows, as shown by the results in the recent WMS Benchmarking exercise > (http://www.slideshare.net/gatewaygeomatics.com/wms-performance-shootout-2010). > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jean-francois at gigand.fr Fri Feb 25 14:07:29 2011 From: jean-francois at gigand.fr (=?ISO-8859-1?Q?Jean=2DFran=E7ois_Gigand?=) Date: Fri, 25 Feb 2011 23:07:29 +0100 Subject: [mapserver-users] problem wfs In-Reply-To: References: Message-ID: Hi, Do you have Firebug or any browser extension letting you see the WFS HTTP request? It would help to know the request and response. JF 2011/2/25 Flor Marina Rocha : > I set up a WFS Server, accessing a PostGIS?poligon table. I use OpenLayers > to visualise the WFS layer, but But not shown on the map > ?I use MapServer V54.10.6 and Tomcat 6 > > > Any help is really appreciated. > > Thanks, > > Flor Marina Rocha > > --------------------------------------------------------------------------------------------------------------------------------------------------- > > ?? ? wfs = new OpenLayers.Layer.Vector("prueba", { > ??? strategies: [new OpenLayers.Strategy.BBOX()], > ??????? protocol: new OpenLayers.Protocol.WFS({ > ??????? ?version: "1.0.0", > ??????? ?srsName: "EPSG:4326", > ??????????? url: > "http://localhost:8081/cgi-bin/mapserv.exe?map=/ms4w/apps/geobis/htdocs/colombia/departamentos_colombiawfs.map&SERVICE=WFS", > ??????????? featureType: "departamentos_wfs", > ??????????? featureNS: "http://mapserver.gis.umn.edu/mapserver", > ??????????? geometryName: "the_geom", > ??????????? extractAttributes: true > ???????????? }) > ??? }); > > ?? map.addLayer(wfs); > ______________________________________________________________________________________________________ > MAP > ?? NAME "WFS_server" > ?? EXTENT -81.735857 -4.223438 -66.851802 13.389054 > ?? SIZE 800 800 > ?? UNITS meters > ?? SHAPEPATH "../mapaInternet/00000_Colombia/SH" > ?? CONFIG "MS_ERRORFILE" "/ms4w/tmp/ms_depto_error.txt" > ?? WEB > ?TEMPLATE? 'geobis.html' > ??? IMAGEPATH "/ms4w/tmp/" > ??? IMAGEURL? "/tmp/" > ?METADATA > ??"wfs_title"?????????? "WMS Server Departamentos" > ??"wfs_onlineresource" > "http://localhost:8081/cgi-bin//mapserv.exe?map=/ms4w/apps/geobis/htdocs/colombia/departamentos_colombiawfs.map&SERVICE=WFS" > ??? "wfs_srs" "epsg:4326" > ????? "wfs_abstract" "my service wms" > > ?END > ?? END > ?? PROJECTION > ??? "init=epsg:4326" > ?END > ?OUTPUTFORMAT > ? NAME png32 > ? DRIVER "GD/PNG" > ? MIMETYPE "image/png" > ? IMAGEMODE RGBA > ? EXTENSION "png" > END > > ?? LAYER > ????? NAME "departamentos_wfs" > ??????? METADATA > ???????? "wfs_title" "departamentos_wfs" > ???????? "gml_featureid" "gid" > ???????? "wfs_featureid" "gid" > ???????? "gml_include_items" "all" > ???????? "wfs_include_items" "all" > ????????? "wfs_maxfeatures" "1000" > ???????? "wfs_namespace_uri" "http://mapserver.gis.umn.edu/mapserver" > ???????? "wfs_namespace_prefix" "ms" > ????? END > ????? STATUS ON > ????? TYPE POLYGON > ????? CONNECTIONTYPE POSTGIS > ????? CONNECTION "user=geobis password=geobis2010 host=192.168.1.39 > port=5432 dbname=geobis" > ????? DATA "the_geom from cartografia.col_departamentos_pol using unique gid > using srid=4326" > > ?? PROCESSING "CLOSE_CONNECTION=DEFER" > ????? PROJECTION > ???????? "init=epsg:4326" > ????? END > DUMP TRUE > ????? CLASS > ???????? STYLE > ??????????? COLOR 128 128 128 > ??????????? OUTLINECOLOR 128 128 128 > ??????????? WIDTH 2 > ???????? END > ???????? NAME "NAME" > ????? END > ?? END > > ?? END > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From edikaradumi at gmail.com Fri Feb 25 14:36:09 2011 From: edikaradumi at gmail.com (Edi.Karadumi) Date: Fri, 25 Feb 2011 14:36:09 -0800 (PST) Subject: [mapserver-users] Re: Raster dataset recommendations In-Reply-To: References: <4D6801B5.1030909@gatewaygeomatics.com> Message-ID: <1298673369922-6066256.post@n2.nabble.com> Jean, thats my problem too. I haven't resolved it yet the perfect way, but i have created mosaics of the data with lowered resolution, and a lower number of tiles . The number of tiles that are requested to see the map increases when you zoom out, so it needs to seek and read the tiles. Having them in different HD will make the displaying of the map faster because you will have more than one hd that does the seek/read process. The idea is that in your zoom levels you dont need more than four tiles to display the image. So youll have to calculate the mapserver resolution, image resolution and map control size. I have more than 3 terabytes of data in 15000 tiles and i created another mosaic with 1.5 terabytes and ~ 4000 tiles. And so on. My main problem is determining the scale when to switch from one mosaic to the other and i resolved it with testing the speed of the response. Maybe this time someone will have an idea to this post. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Raster-dataset-recommendations-tp6064491p6066256.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Sat Feb 26 04:36:31 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sat, 26 Feb 2011 08:36:31 -0400 Subject: [mapserver-users] Raster dataset recommendations In-Reply-To: References: <4D6801B5.1030909@gatewaygeomatics.com> Message-ID: <4D68F3CF.9010300@gatewaygeomatics.com> On 11-02-25 6:02 PM, Jean-Fran?ois Gigand wrote: > > I take the opportunity of this topic to ask a similar question. > I have a larger data set (400 Go) in about 24000 GeoTIFFs files, using > the method described by Edi (tiled, internal overviews, index shape). > It works pretty well (older version of MapServer), with on-the-fly > reprojection, quick enough when the resolution is small-enough. Hi JF, You mentioned reprojecting...why would you force MapServer to reproject all those files on-the-fly? I would never recommend that, for speed considerations. I would invest some time in a gdalwarp script. That was my thought when reading your message :) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From Steve.Lime at state.mn.us Sat Feb 26 05:41:08 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Sat, 26 Feb 2011 07:41:08 -0600 Subject: [mapserver-users] Problems with showing attributes In-Reply-To: <1298649803600-6064968.post@n2.nabble.com> References: <1298649803600-6064968.post@n2.nabble.com> Message-ID: So the template substitutions in the second table cell are showing fine but not the column names in the first? I'm assuming a template has errors but it's impossible to tell from a screen shot. What would be helpful are before (raw template) and after (processed template) HTML snippets. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Chrishelring [christianhelring at gmail.com] Sent: Friday, February 25, 2011 10:03 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Problems with showing attributes Hi all, I?m having problems showing some attributes. The idea is that the user uses the info tool, click on the polygon and retrieve the information from the dataset. The data itself is shown, but the different names on the columns are not! I would really like that information to show as well. Below is an example on what I mean. http://osgeo-org.1803224.n2.nabble.com/file/n6064968/info.jpg I?ve used an old template that I?ve modified: Distrikt[Distrikt] Omr?denavn[Omr?denavn] Stednr[Stednr] Beskrivelse[Beskrivelse] Gr?stype[Gr?s_1] Blomster[Blomster_2] Buske[Buske_3] Tr?er[Tr?er_4] H?kke[H?kke_5] Bel?gning[Bel?gning_6] Inventar[Inventar_7] Renholdelse[Renholdelse_8] Niveau_1[Niveau_1] Niveau_2[Niveau_2] Niveau_3[Niveau_3] Serviceydelser[Serviceydelser_9] Evt. bem?rkning til serviceydelser[serviceydelse_bem?rkning] Vandomr?der[Vandomr?der_10] Evt. bem?rkninger[Bem?rkninger] Opdateringsdato[Opdateringsdato] the data in the different colums (shown in the html as []) is okay, the problem is the name of the columns. What am I doing wrong? Sincerly, Christian -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problems-with-showing-attributes-tp6064968p6064968.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 Bob.Basques at ci.stpaul.mn.us Fri Feb 18 08:21:45 2011 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Fri, 18 Feb 2011 10:21:45 -0600 Subject: [mapserver-users] TEMPLATE generation completion (NOT!) Message-ID: <4D5E4839020000A800026A58@heckle> Steve, Ok, I have no idea what happened, but fixing the name of the footer file (back to what it was) fixed the call, it now pops out with the FOOTER content. Must have been some weird permission error, but wouldn't that throw an error just like breaking the name? Looks like it fixed itself as a result of editing the name . . . . Thanks, I think, (I'm going to leave it alone for a while while it's working . . . . ;c) I still wonder what went on there though. I should mention too that this is updating via WEBDAV, I always forget this part because I use it day in and day out and it's always there as a folder. Also, all the configuration files reside inside of SVN. Anyway, those are the funky configuration elements I was talking about earlier. Thanks again, though really, this one was driving me over the edge . . . . bobb >>> "Lime, Steve D (DNR)" wrote: I would assume it?s barfing before it even gets to the footer. Are you absolutely sure the surface class record is being processed completely for all search results? If you break the footer name intentionally in the mapfile does MapServer complain? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bob Basques Sent: Friday, February 18, 2011 9:27 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] TEMPLATE generation completion (NOT!) All, I've been chasing this one around for a day now. For some reason (might be a part of our funky configuration too, but ) a TEMPLATE "FOOTER" will not get pasted to the bottom of the output. The HEADER and RECORD values populate just fine, I have many (MANY) other layers in the same configuration that work just fine as well. My question, anyone got and ideas about why a FOOTER template chunk will not populate on a MapServer request? I've looked at: * Permissions on the file (same as all others) * Content of TEMPLATE chunk (it only contains "" ), I even recreated it a couple of times manually. * I checked the mapfile (but everything else works, the legend, the image output, the HEADER and RECORD output . . . * The data is even popping out in the IMAGEMAP correcrtly. * Moved around the map with different areas of interest, different numbers of returned records. Thanks (from bewildered!!) bobb Here is the MAPFILE and TEMPLATES: MAP NAME 'RSVP' EXTENT 573387 162092 574211 162555 STATUS ON SYMBOLSET inventory.symbols FONTSET RESOURCES/inventory.fonts TRANSPARENT TRUE IMAGETYPE PNG LAYER METADATA "ows_title" "Surface Class" "gml_include_items" "all" "qstring_validation_pattern" "." "fido_search_items" "" "fido_search_titles" "" END NAME 'SURFACE CLASS' GROUP 'SURFACE CLASS' DATA 'DATA/Surface_Class' STATUS DEFAULT TYPE POLYGON CLASSITEM 'GRIDCODE' CLASS NAME 'Tree Canopy' EXPRESSION /1/ COLOR 38 94 0 OUTLINECOLOR 100 100 100 END CLASS NAME 'Turf/Grass' EXPRESSION /2/ COLOR 203 214 139 OUTLINECOLOR 100 100 100 END CLASS NAME 'Bare Soil' EXPRESSION /3/ COLOR 168 112 0 OUTLINECOLOR 100 100 100 END CLASS NAME 'Water' EXPRESSION /4/ COLOR 151 219 242 OUTLINECOLOR 100 100 100 END CLASS NAME 'Buildings' EXPRESSION /5/ COLOR 92 43 0 OUTLINECOLOR 100 100 100 END CLASS NAME 'Impervious Sur face' EXPRESSION /6/ COLOR 78 78 78 OUTLINECOLOR 100 100 100 END TEMPLATE './TEMPLATES/surface_class_record.xml' HEADER './TEMPLATES/surface_class_header.xml' FOOTER './TEMPLATES/surface_class_footer.xml' END END ---------------- Header ---------------- ---------------- Record ---------------- Surface Classification [GRIDCODE] ---------------- Footer -- (OUTPUT BREAKS HERE!!!) ---------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Wed Feb 23 02:01:36 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 23 Feb 2011 11:01:36 +0100 Subject: [mapserver-users] Heatmap / choropleth from points attributes In-Reply-To: References: Message-ID: Daniel, Not sure if that fully satisfy with your requirements but I've already done a similar task with the following steps: 1. Create a point data source (with attributes) from your points for example by using ogr_vrt , something like: ponts.csv wkbPoint25D 2. Use gdal_grid to create an interpolated grayscale image from the point data dource. 3. To colorize the raster create (or compute) a LUT for each color band by containing the following information: [src value 1]:[dest value 1],[src value 2]:[dest value 2],... A template of this vrt should look like this: Red {LUT_RED} {SOURCEFILE} 1 Green {LUT_GREEN} {SOURCEFILE} 1 Blue {LUT_BLUE} {SOURCEFILE} 1 Alpha {LUT_ALPHA} {SOURCEFILE} 1 4. Use the gdal vrt driver (and gdal_translate ) to create the final image (see an example attached). Best regards, Tamas 2011/2/23 Daniel Cole > I am a new mapserver user and have spent countless hours over the last > month reading, trying code, etc. before posting here for help. I am trying > to generate an image (non-interactive) on a webpage based off of attribute > data in a points file. For example, 20 different points equally distributed > in a field contain data about the moister level of the soil. I want to make > the lowest levels blue and the highest levels yellow, or something like that > with some gradients in between. If possible I want it to have interpolated > data between them to show the gradual change, but that isn't a must. I > also want to wrap it in a polygon that trims the edges. > > I found some python code that I thought might do the trick , but it seems > lots of heat maps are based off of how many points exist in a certain area, > and thats now what I am doing. > > My points contain numbers in the attributes, 5, 25, 92, 71, etc. I feel > like I am missing some easy way to do this right in front of me with gdal or > something. If someone has any direction or even demo code that would be > greatly appreciated. > > Thanks, > > Daniel > > _______________________________________________ > 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: tile.png Type: image/png Size: 145497 bytes Desc: not available URL: From Bob.Basques at ci.stpaul.mn.us Thu Feb 24 11:29:57 2011 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Thu, 24 Feb 2011 13:29:57 -0600 Subject: [mapserver-users] TEMPLATE generation completion (NOT!) Message-ID: <4D665D55020000A800026D9D@heckle> All, Ok, this problem has returned, and on the same layer. I've traced everything around even through our weird file repository, I've made sure everything is synced on the backend file servers and the files are all replicated as they should be, with the proper permissions. I cannot get this particular layer to output the closing tag in the imagemap. any other ideas on what to check? bobb -------------- Steve, Ok, I have no idea what happened, but fixing the name of the footer file (back to what it was) fixed the call, it now pops out with the FOOTER content. Must have been some weird permission error, but wouldn't that throw an error just like breaking the name? Looks like it fixed itself as a result of editing the name . . . . Thanks, I think, (I'm going to leave it alone for a while while it's working . . . . ;c) I still wonder what went on there though. I should mention too that this is updating via WEBDAV, I always forget this part because I use it day in and day out and it's always there as a folder. Also, all the configuration files reside inside of SVN. Anyway, those are the funky configuration elements I was talking about earlier. Thanks again, though really, this one was driving me over the edge . . . . bobb >>> "Lime, Steve D (DNR)" wrote: I would assume it?s barfing before it even gets to the footer. Are you absolutely sure the surface class record is being processed completely for all search results? If you break the footer name intentionally in the mapfile does MapServer complain? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bob Basques Sent: Friday, February 18, 2011 9:27 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] TEMPLATE generation completion (NOT!) All, I've been chasing this one around for a day now. For some reason (might be a part of our funky configuration too, but ) a TEMPLATE "FOOTER" will not get pasted to the bottom of the output. The HEADER and RECORD values populate just fine, I have many (MANY) other layers in the same configuration that work just fine as well. My question, anyone got and ideas about why a FOOTER template chunk will not populate on a MapServer request? I've looked at: * Permissions on the file (same as all others) * Content of TEMPLATE chunk (it only contains "" ), I even recreated it a couple of times manually. * I checked the mapfile (but everything else works, the legend, the image output, the HEADER and RECORD output . . . * The data is even popping out in the IMAGEMAP correcrtly. * Moved around the map with different areas of interest, different numbers of returned records. Thanks (from bewildered!!) bobb Here is the MAPFILE and TEMPLATES: MAP NAME 'RSVP' EXTENT 573387 162092 574211 162555 STATUS ON SYMBOLSET inventory.symbols FONTSET RESOURCES/inventory.fonts TRANSPARENT TRUE IMAGETYPE PNG LAYER METADATA "ows_title" "Surface Class" "gml_include_items" "all" "qstring_validation_pattern" "." "fido_search_items" "" "fido_search_titles" "" END NAME 'SURFACE CLASS' GROUP 'SURFACE CLASS' DATA 'DATA/Surface_Class' STATUS DEFAULT TYPE POLYGON CLASSITEM 'GRIDCODE' CLASS NAME 'Tree Canopy' EXPRESSION /1/ COLOR 38 94 0 OUTLINECOLOR 100 100 100 END CLASS NAME 'Turf/Grass' EXPRESSION /2/ COLOR 203 214 139 OUTLINECOLOR 100 100 100 END CLASS NAME 'Bare Soil' EXPRESSION /3/ COLOR 168 112 0 OUTLINECOLOR 100 100 100 END CLASS NAME 'Water' EXPRESSION /4/ COLOR 151 219 242 OUTLINECOLOR 100 100 100 END CLASS NAME 'Buildings' EXPRESSION /5/ COLOR 92 43 0 OUTLINECOLOR 100 100 100 END CLASS NAME 'Impervious Surface' EXPRESSION /6/ COLOR 78 78 78 OUTLINECOLOR 100 100 100 END TEMPLATE './TEMPLATES/surface_class_record.xml' HEADER './TEMPLATES/surface_class_header.xml' FOOTER './TEMPLATES/surface_class_footer.xml' END END ---------------- Header ---------------- ---------------- Record ---------------- Surface Classification [GRIDCODE] ---------------- Footer -- (OUTPUT BREAKS HERE!!!) ---------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From milo at dogodigi.net Sat Feb 26 08:15:28 2011 From: milo at dogodigi.net (Milo van der Linden) Date: Sat, 26 Feb 2011 17:15:28 +0100 Subject: [mapserver-users] Heatmap / choropleth from points attributes In-Reply-To: References: Message-ID: Very nice example Tamas! In my opinion there is only one extra step needed; a no-color transparent section in the final image. Do you think this would also be possible? 2011/2/23 Tamas Szekeres : > Daniel, > > Not sure if that fully satisfy with your requirements but I've already done > a similar task with the following steps: > > 1. Create a point data source (with attributes) from your points for example > by using ogr_vrt, something like: > > > ??? > ??????? ponts.csv > ??? wkbPoint25D > ??? x="lon83" y="lat83" z="attribute"/> > ??? > > > 2. Use gdal_grid to create an interpolated grayscale image from the point > data dource. > > 3. To colorize the raster create (or compute) a LUT for each color band by > containing the following information: > > [src value 1]:[dest value 1],[src value 2]:[dest value 2],... > > A template of this vrt should look like this: > > > ? > ??? Red > ??? > ????? {LUT_RED} > ????? {SOURCEFILE} > ????? 1 > ????? ySize="{SRCYSIZE}"/> > ????? ySize="{RASTERYSIZE}"/> > ??? > ? > ? > ??? Green > ??? > ????? {LUT_GREEN} > ????? {SOURCEFILE} > ????? 1 > ????? ySize="{SRCYSIZE}"/> > ????? ySize="{RASTERYSIZE}"/> > ??? > ? > ? > ??? Blue > ??? > ????? {LUT_BLUE} > ????? {SOURCEFILE} > ????? 1 > ????? ySize="{SRCYSIZE}"/> > ????? ySize="{RASTERYSIZE}"/> > ??? > ? > ? > ??? Alpha > ??? > ????? {LUT_ALPHA} > ????? {SOURCEFILE} > ????? 1 > ????? ySize="{SRCYSIZE}"/> > ????? ySize="{RASTERYSIZE}"/> > ???? > ? > > > 4. Use the gdal vrt driver (and gdal_translate) to create the final image > (see an example attached). > > > Best regards, > > Tamas > > > > 2011/2/23 Daniel Cole >> >> I am a new mapserver user and have spent countless hours over the last >> month reading, trying code, etc. before posting here for help. ?I am trying >> to generate an image?(non-interactive)?on a webpage based off of attribute >> data in a points file. ?For example, 20 different points equally distributed >> in a field contain data about the moister level of the soil. ?I want to make >> the lowest levels blue and the highest levels yellow, or something like that >> with some gradients in between. ?If possible I want it to have interpolated >> data between them to show the gradual change, but that isn't a must. ? I >> also want to wrap it in a polygon that trims the edges. >> I found some python code that I thought might do the trick , but it seems >> lots of heat maps are based off of how many points exist in a certain area, >> and thats now what I am doing. >> My points contain numbers in the attributes, 5, 25, 92, 71, etc. ? I feel >> like I am missing some easy way to do this right in front of me with gdal or >> something. ?If someone has any direction or even demo code that would be >> greatly appreciated. >> Thanks, >> >> Daniel >> _______________________________________________ >> 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 christianhelring at gmail.com Sat Feb 26 08:33:38 2011 From: christianhelring at gmail.com (Chrishelring) Date: Sat, 26 Feb 2011 08:33:38 -0800 (PST) Subject: [mapserver-users] RE: Problems with showing attributes In-Reply-To: References: <1298649803600-6064968.post@n2.nabble.com> Message-ID: <1298738018666-6067930.post@n2.nabble.com> Hi Steve, thanks for pointing that out! I found out (using firebug) that someone had altered the css file styling our infobox, so problem solved. :) Christian -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problems-with-showing-attributes-tp6064968p6067930.html Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at gmail.com Sat Feb 26 08:47:15 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Sat, 26 Feb 2011 17:47:15 +0100 Subject: [mapserver-users] Heatmap / choropleth from points attributes In-Reply-To: References: Message-ID: 2011/2/26 Milo van der Linden > Very nice example Tamas! > > In my opinion there is only one extra step needed; a no-color > transparent section in the final image. Do you think this would also > be possible? > Yes, it should work by applying a LUT for the alpha channel. Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahmettemiz88 at gmail.com Sat Feb 26 09:58:05 2011 From: ahmettemiz88 at gmail.com (ahmet temiz) Date: Sat, 26 Feb 2011 19:58:05 +0200 Subject: [mapserver-users] need an urgent help about changing localhost Message-ID: hello I need an urgent help. I am confused. Do I have to change localhost to a another host during production stage in map file ? CONNECTIONTYPE postgis CONNECTION "dbname='bzk2' host=localhost port=5432 user='orkun' password='222222'" I will appreciate if you supply an explanation kind 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 From woodbri at swoodbridge.com Sat Feb 26 11:08:41 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sat, 26 Feb 2011 14:08:41 -0500 Subject: [mapserver-users] need an urgent help about changing localhost In-Reply-To: References: Message-ID: <4D694FB9.9020102@swoodbridge.com> On 2/26/2011 12:58 PM, ahmet temiz wrote: > hello > > I need an urgent help. > I am confused. > Do I have to change localhost to a another host during production > stage in map file ? > > CONNECTIONTYPE postgis > CONNECTION "dbname='bzk2' host=localhost port=5432 user='orkun' > password='222222'" > > > I will appreciate if you supply an explanation > > kind regards > localhost is a generic name the refers to the 127.0.0.1 which is the host that the process is running on. So if in production you server is on the same system as mapserver and postgresql is setup to answer connections from localhost then you do not need to change anything. If you have a separate host that the database is running on then tiy will need to change "localhost" to point to the host that the database is running on. And the database must be configured to accept connection from the mapserver host. -Steve W From simone.frigerio at univie.ac.at Mon Feb 28 01:38:05 2011 From: simone.frigerio at univie.ac.at (simone.frigerio at univie.ac.at) Date: Mon, 28 Feb 2011 10:38:05 +0100 Subject: [mapserver-users] pass layers number limit Message-ID: <4D6B6CFD.5090405@univie.ac.at> Hello, in my project I need to manage a quite huge db (especially raster image). The numbers of layers with classification and all layers created dynamically to generate the class image (I use cartoweb based on mapserver) is larger than 200, which is the default max layers per mapfile/mapObject for mapserver. There is solution that suggested me to compile mapserver with a layer limit greater than 200, though that may require some technical knowledge in software compilation. I am not expert in mapserver compilation, on win environment, especially on this task. I know the link: http://mapserver.org/installation/unix.html Can you give me suggestion and example of similar experience? Regards, Simone -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Feb 28 04:59:26 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 28 Feb 2011 08:59:26 -0400 Subject: [mapserver-users] pass layers number limit In-Reply-To: <4D6B6CFD.5090405@univie.ac.at> References: <4D6B6CFD.5090405@univie.ac.at> Message-ID: <4D6B9C2E.7050003@gatewaygeomatics.com> On 11-02-28 5:38 AM, simone.frigerio at univie.ac.at wrote: > Hello, > in my project I need to manage a quite huge db (especially raster > image). The numbers of layers with classification and all layers created > dynamically to generate the class image (I use cartoweb based on > mapserver) is larger than 200, which is the default max layers per > mapfile/mapObject for mapserver. > There is solution that suggested me to compile mapserver with a layer > limit greater than 200, though that may require some technical knowledge > in software compilation. > I am not expert in mapserver compilation, on win environment, especially > on this task. > I know the link: > http://mapserver.org/installation/unix.html > Can you give me suggestion and example of similar experience? The layer limit that you mention only applies to MapServer versions <5 (see the note at the bottom of this page for more details): http://mapserver.org/mapfile/index.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From marco.jem at gmail.com Mon Feb 28 06:14:42 2011 From: marco.jem at gmail.com (Marco Tosato) Date: Mon, 28 Feb 2011 15:14:42 +0100 Subject: [mapserver-users] Mapfile keywords list and block keywords Message-ID: Good day all, I'm writing a little mapfile parser, I found a list of kerywords and reserved words in the file "maplexer.l" but now I need to know which words marks the begin of a block (for example the keyword LAYER begins a block which needs to be terminated with the END keyword), anyone has some suggestion? I found the VIM syntax page ( http://mapserver.org/development/editing/vim.html) where there is a VIM configuration file which lists the mapfile keywords to be highlightied in VIM and another file which lists keywords that can be folded ....can I trust these lists and use the code folding configuration file to obtain the block keywords or should I search somewhere else? Thanks a lot!!!! -------------- next part -------------- An HTML attachment was scrubbed... URL: From oscarblo at gmail.com Mon Feb 28 07:33:06 2011 From: oscarblo at gmail.com (=?ISO-8859-1?Q?=D2scar_Vidal_Calbet?=) Date: Mon, 28 Feb 2011 15:33:06 +0000 Subject: [mapserver-users] TileCache + MapServer + Openalyers + WMS (Google Mercator) In-Reply-To: References: Message-ID: Hi everyone! I'm using TileCache + MapServer + OpenLayers and trying to publish a WMS from Geotiff in Mercator (EPSG:900913). ?I'm having difficulties and the result is not that I expect. Below are the different parts of my problems. Bathymetry.tif ================================ Geotiff file in ?EPSG:900913 Corner Coordinates: Upper Left ?(-5038852, 5970000) Lower Left ?(-5038852, 3420000) Upper Right (-1412452, 5970000) Lower Right (-1412452, 3420000) WMS.map ================================ MAP ? ? ? ?NAME "WMS-test" ? ? ? ?STATUS ON ? ? ? ?SIZE 600 400 ? ? ? ?# its The same extend that the file Bathymetry.tif in projected coordinates. ?Have to be in geographic? ? ? ? ?EXTENT -5038852 3420000 -1412356 5970000 ? ? ? ?# Bathymetry.tif extend in geographic coordinates ? ? ? ?# EXTENT -45.26477766016219 29.347893202612525 -12.687409814179109 47.1708141841107 ? ? ? ?UNITS METERS ? ? ? ?SHAPEPATH "/data/coverages/zoomazores/" ? ? ? ?IMAGECOLOR 255 255 255 ? ? ? ?OUTPUTFORMAT ? ? ? ? ? ? ? ?NAME png24 ? ? ? ? ? ? ? ?DRIVER "GD/PNG24" ? ? ? ? ? ? ? ?MIMETYPE "image/png" ? ? ? ? ? ? ? ?IMAGEMODE RGB ? ? ? ? ? ? ? ?EXTENSION "png" ? ? ? ?END ? ? ? ?WEB ? ? ? ? ? ? ? ?METADATA ? ? ? ? ? ? ? ?"wms_title" ? ? ? ? ? ? ? ? ? ? "WMSDemo" ? ? ? ? ? ? ? ?"wms_onlineresource" ? ? ? ?"http://localhost/cgi-bin/mapserv?map=/var/www/mapserver/WMS.map" ? ? ? ? ? ? ? ?"wms_srs" ? ? ? ? ? ? ? ? ? ? ? "EPSG:900913" ? ? ? ? ? ? ? ?"wms_format" ? ? ? ? ? ?"image/png" ? ? ? ? ? ? ? ?END ? ? ? ?END ? ? ? ?PROJECTION ? ? ? ? ? ? ? ?"init=epsg:900913" ? ? ? ?END ? ? ? ?LAYER ? ? ? ? ? ? ? ?NAME "bathymetry" ? ? ? ? ? ? ? ?# The same extend that the file Bathymetry.tif in projected coordinates. ? ? ? ? ? ? ? ?EXTENT -5038852 3420000 -1412356 5970000 ? ? ? ? ? ? ? ?# Bathymetry.tif extend in geographic coordinates ? ? ? ? ? ? ? ?# EXTENT -45.26477766016219 29.347893202612525 -12.687409814179109 47.1708141841107 ? ? ? ? ? ? ? ?# Mercator full extend in projected coordinates. ? ? ? ? ? ? ? ?# EXTENT -20037508.34 -20037508.34 20035017.34 20035017.34 ? ? ? ? ? ? ? ?METADATA ? ? ? ? ? ? ? ? ? ? ? ?"wms_title" ? ?"bathymetryshaded" ? ? ? ? ? ? ? ? END ? ? ? ? ? ? ? ? TYPE RASTER ? ? ? ? ? ? ? ? STATUS ON ? ? ? ? ? ? ? ?DATA "Bathymetry.tif" ? ? ? ? ? ? ? ?PROJECTION ? ? ? ? ? ? ? ? ? ? ? ? "init=epsg:900913" ? ? ? ? ? ? ? ?END ? ? ? ?END END Tilecache.cfg ================================ [bathymetryshaded] size = 256,256 srs = EPSG:900913 type = WMS url = http://localhost/cgi-bin/mapserv?map=/var/www/mapserver/WMS.map layers = bathymetryshaded mapfile = /var/www/mapserver/WMS.map # bbox = -20037508.34, -20037508.34, 20035017.34, 20035017.34 # bbox = -45.26477766016219,29.347893202612525,-12.687409814179109,47.1708141841107 bbox = -5038852, 3420000, -1412356, 5970000 extension = png # extent_type = loose levels = 11 maxresolution = 7083 ## maxResolution = (max-X ? min-X) / 512 # maxresolution = 1222.992452344 # google metaTile=true tms_type=google spherical_mercator=true 1 Request URL ================================ http://localhost/cgi-bin/tilecache.cgi?LAYERS=bathymetryshaded&SERVICE=WMS&SRS=EPSG:900913&BBOX=-5038852, 3420000, -1412356, 5970000 # PROBLEM (1) An error occurred: can't find resolution index for 14166.000000. Available resolutions are: [156543.03390000001, 78271.516950000005, 39135.758475000002, 19567.879237500001, 9783.9396187500006, 4891.9698093750003, 2445.9849046875001, 1222.9924523437501, 2 Request URL ================================ http://localhost/cgi-bin/tilecache.cgi?LAYERS=bathymetryshaded&SERVICE=WMS&SRS=EPSG:900913&BBOX=-20037508.34, -20037508.34, 20035017.34, 20035017.34 # PROBLEM (2) # The image (SIZE 600 400) that I can visualize in the browser is white having inside my data in a small really part. OpenLayers ================================ function init(){ ? ? ? ?var maxbounds = new OpenLayers.Bounds(-20037508.34,-20037508.34, 20037508.34, 20037508.34); ? ? ? ?zoomBbox = new OpenLayers.Bounds(-5038852, 3420000, -1412356, 5970000); ? ? ? ?var options = { ? ? ? ? ? ? ? ?controls: [], ? ? ? ? ? ? ? ?maxExtent: maxbounds, ? ? ? ? ? ? ? ?restrictedExtent: zoombounds, ? ? ? ? ? ? ? ?projection: new OpenLayers.Projection('EPSG:900913'), ? ? ? ? ? ? ? ?units: 'metres', ? ? ? ? ? ? ? ?minZoomLevel:7, ? ? ? ? ? ? ? ?maxZoomLevel:17, ? ? ? ? ? ? ? ?numZoomLevels:10, ? ? ? ? ? ? ? ?maxResolution: 1222.992452344 ? ? ? ?}; ? ? ? ?map = new OpenLayers.Map('map', options); ? ? ? ?var tiled = new OpenLayers.Layer.TileCache( ? ? ? ? ? ? ? ?"teste", ? ? ? ? ? ? ? ?"http://localhost/cgi-bin/tilecache.cgi?", ? ? ? ? ? ? ? ?{ ? ? ? ? ? ? ? ? ? ? ? ?layers: 'bathymetryshaded', ? ? ? ? ? ? ? ? ? ? ? ?format: 'image/png', ? ? ? ? ? ? ? ? ? ? ? ?srs: 'EPSG:900913', ? ? ? ? ? ? ? ? ? ? ? ?serverResolutions: [1222.992452344, 611.496226172, 305.748113086, 152.874056543, 76.437028271, 38.218514136, 19.109257068, 9.554628534, 4.777314267, 2.388657133, 1.194328567], ? ? ? ? ? ? ? ? ? ? ? ?tileSize: new OpenLayers.Size(512,512) ? ? ? ? ? ? ? ?}, ? ? ? ? ? ? ? ?{ ? ? ? ? ? ? ? ? ? ? ? ?isBaseLayer: true ? ? ? ? ? ? ? ?} ? ? ? ?); ? ? ? ?map.addLayers([tiled]); ? ? ? ?map.zoomToExtent(zoomBbox); } # PROBLEM (3) # I only can see transparent tiles, there is not map. Questions ================================ Is it possible to specify the bbox on projected coordinates in tilecache.cfg file? Am I missing something? It's a good approach? I think until the MapServer side it's right because it can show the image on the browser with the following request: http://localhost/cgi-bin/mapserv?map=/var/www/mapserver/WMS.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=bathymetryshaded&STYLES=&SRS=EPSG:900913&BBOX=-3586380.0348868947,4286595.390705814,-2690369.4534918354,4996719.237946053&WIDTH=600&HEIGHT=400&FORMAT=image/png I tried creating the tiles with the tilecache_seed, specifying the -bbx option, but I only get withe/transparent tiles. ? Its related with the problem (2) our (3) Right now I have no ideas on how to solve it and so I feel lost. I will really appreciate some help. Thanks in advance! Oscar From Steve.Lime at state.mn.us Mon Feb 28 12:24:05 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 28 Feb 2011 14:24:05 -0600 Subject: [mapserver-users] Mapfile keywords list and block keywords In-Reply-To: References: Message-ID: Check out mapfile.c and walk through the various load? functions. Each object that has a block basically has a load function (e.g. loadLayer, loadClass, loadLabel)? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Marco Tosato Sent: Monday, February 28, 2011 8:15 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapfile keywords list and block keywords Good day all, I'm writing a little mapfile parser, I found a list of kerywords and reserved words in the file "maplexer.l" but now I need to know which words marks the begin of a block (for example the keyword LAYER begins a block which needs to be terminated with the END keyword), anyone has some suggestion? I found the VIM syntax page (http://mapserver.org/development/editing/vim.html) where there is a VIM configuration file which lists the mapfile keywords to be highlightied in VIM and another file which lists keywords that can be folded ....can I trust these lists and use the code folding configuration file to obtain the block keywords or should I search somewhere else? Thanks a lot!!!! -------------- next part -------------- An HTML attachment was scrubbed... URL: