From qazi.iqbal at gmail.com Sat Jan 1 16:40:38 2011 From: qazi.iqbal at gmail.com (qazi iqbal) Date: Sat, 1 Jan 2011 19:40:38 -0500 Subject: [mapserver-users] Mapserver installation Message-ID: I have been trying to install mapserver on a Fedora core 7 server. I know little bit about it but not much. I installed all the necessary libraries. I run certain issues while configuration of the mapserver, but eventually it went fine. Now after configure, I am trying to run make command, but it is giving me error. I would really appreciate if anyone can help me out of this. Below is the complete error: make g++ -g -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL -DUSE_WCS_SVR -DUSE_WMS_SVR -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION -DUSE_TIFF -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DGEOS_HAS_SIMPLIFY -DUSE_THREAD -DUSE_PROJ -DUSE_EPPL -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/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/local/include/libxml2 shp2img.o -L. -lmapserver -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -lpdf -ltiff -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -L/usr/local/lib -lproj -ljpeg -lpng -L/usr/local/lib -lgdal -lpq -L/usr/lib -lpq -lz -lm -lrt -ldl -L/usr/lib -lpq -lpgport -lxslt -lxml2 -lpam -lssl -lcrypto -lgssapi_krb5 -lz -lreadline -lcrypt -ldl -lm -L/usr/local/lib -lcurl -L/usr/kerberos/lib -L/usr/local/lib -lgeos_c -lpthread -L -liconv -lz -L/usr/local/lib -lxml2 -lz -lm -lm -lstdc++ -o shp2img /usr/bin/ld: cannot find -lxslt collect2: ld returned 1 exit status make: *** [shp2img] Error 1 Thanks and appreciate your help in advance. -- Qazi M. Iqbal -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Sat Jan 1 20:43:51 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sat, 01 Jan 2011 23:43:51 -0500 Subject: [mapserver-users] Mapserver installation In-Reply-To: References: Message-ID: <4D200287.4050901@gatewaygeomatics.com> On 11-01-01 7:40 PM, qazi iqbal wrote: > I have been trying to install mapserver on a Fedora core 7 server. I > know little bit about it but not much. I installed all the necessary > libraries. I run certain issues while configuration of the mapserver, > but eventually it went fine. Now after configure, I am trying to run > make command, but it is giving me error. I would really appreciate if > anyone can help me out of this. Below is the complete error: > make > g++ -g -fPIC -Wall -DHAVE_VSNPRINTF -DNEED_STRLCAT > -DNEED_STRRSTR -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR > -DUSE_LIBXML2 -DUSE_CURL -DUSE_WCS_SVR -DUSE_WMS_SVR -DUSE_POSTGIS > -DPOSTGIS_HAS_SERVER_VERSION -DUSE_TIFF -DUSE_GDAL -DUSE_OGR -DUSE_GEOS > -DGEOS_HAS_SIMPLIFY -DUSE_THREAD -DUSE_PROJ -DUSE_EPPL -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/usr/local/include > -I/usr/local/include/freetype2 -I/usr/local/include > -I/usr/local/include -I/usr/local/include -I/usr/include > -I/usr/local/include -I/usr/local/include > -I/usr/local/include/libxml2 shp2img.o -L. -lmapserver > -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -lpdf > -ltiff -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -L/usr/local/lib -lproj > -ljpeg -lpng -L/usr/local/lib -lgdal -lpq -L/usr/lib -lpq -lz -lm -lrt > -ldl -L/usr/lib -lpq -lpgport -lxslt -lxml2 -lpam -lssl -lcrypto > -lgssapi_krb5 -lz -lreadline -lcrypt -ldl -lm -L/usr/local/lib -lcurl > -L/usr/kerberos/lib -L/usr/local/lib -lgeos_c -lpthread -L -liconv -lz > -L/usr/local/lib -lxml2 -lz -lm -lm -lstdc++ -o shp2img > /usr/bin/ld: cannot find -lxslt > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > Thanks and appreciate your help in advance. I believe it is libxslt that you need. If you do a search of this mailing list you can find answers such as: http://osgeo-org.1803224.n2.nabble.com/make-error-version-5-6-0-rc1-usr-bin-ld-cannot-find-lxslt-td4148052.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From benfell at parts-unknown.org Sat Jan 1 20:43:04 2011 From: benfell at parts-unknown.org (David Benfell) Date: Sat, 1 Jan 2011 20:43:04 -0800 Subject: [mapserver-users] Mapserver installation In-Reply-To: References: Message-ID: <20110102044304.GA3480@parts-unknown.org> On Sat, 01 Jan 2011, qazi iqbal wrote: > I have been trying to install mapserver on a Fedora core 7 server. I > know little bit about it but not much. I installed all the necessary > libraries. I run certain issues while configuration of the mapserver, > but eventually it went fine. Now after configure, I am trying to run > make command, but it is giving me error. I would really appreciate if > anyone can help me out of this. Below is the complete error: > > /usr/bin/ld: cannot find -lxslt > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > You are missing a library, or at least its headers. I don't know what the relevant package names are for Fedora. Under Debian/Ubuntu, I would search the package manager for xslt and the development package (under Debian/Ubuntu, with a -dev suffix on the package name). -- David Benfell http://www.parts-unknown.org/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From pcifuentes at siigsa.cl Mon Jan 3 14:55:09 2011 From: pcifuentes at siigsa.cl (Patricio Cifuentes Ithal) Date: Mon, 3 Jan 2011 19:55:09 -0300 Subject: [mapserver-users] Mapserver installation In-Reply-To: <20110102044304.GA3480@parts-unknown.org> References: <20110102044304.GA3480@parts-unknown.org> Message-ID: <007a01cbab99$47b60bd0$d7222370$@cl> Install libxslt and libxslt-devel (this is more importante) Patricio Cifuentes Ithal Ingeniero en Inform?tica Unidad de Inform?tica Fono : 02 - 334 73 69 www.siigsa.cl -----Mensaje original----- De: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de David Benfell Enviado el: domingo, 02 de enero de 2011 1:43 Para: qazi iqbal CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] Mapserver installation On Sat, 01 Jan 2011, qazi iqbal wrote: > I have been trying to install mapserver on a Fedora core 7 server. I > know little bit about it but not much. I installed all the necessary > libraries. I run certain issues while configuration of the mapserver, > but eventually it went fine. Now after configure, I am trying to run > make command, but it is giving me error. I would really appreciate if > anyone can help me out of this. Below is the complete error: > > /usr/bin/ld: cannot find -lxslt > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > You are missing a library, or at least its headers. I don't know what the relevant package names are for Fedora. Under Debian/Ubuntu, I would search the package manager for xslt and the development package (under Debian/Ubuntu, with a -dev suffix on the package name). -- David Benfell http://www.parts-unknown.org/ From David.Hildebrand at afsc.ca Tue Jan 4 12:14:43 2011 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Tue, 4 Jan 2011 13:14:43 -0700 Subject: [mapserver-users] GDAL input formats In-Reply-To: <007a01cbab99$47b60bd0$d7222370$@cl> References: <20110102044304.GA3480@parts-unknown.org> <007a01cbab99$47b60bd0$d7222370$@cl> Message-ID: <9188AB5935664040805E01E348A2B81D1BF69074@lacex1.afsc.ads> I'm wondering how to specify a particular GDAL format. I have some 3-band floating point images in ENVI format and I would like to retain that format because I have GDAL support. Secondly, would it be better to convert them to GeoTiff files? Would it also be better to scale them to, say 16-bit signed integer files? 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. From ltrevinoh at gmail.com Tue Jan 4 13:54:46 2011 From: ltrevinoh at gmail.com (=?ISO-8859-1?Q?Luis_Trevi=F1o?=) Date: Tue, 4 Jan 2011 15:54:46 -0600 Subject: [mapserver-users] Is it posible to draw variable feature points Message-ID: Hi list. I would like to know if it's posible to draw a point layer with variable coordinates as a feature using run-time variable substitution. I want to use cgi mapserver and privide a lat / lon values as variables and would like mapserver to draw a symbol in that point. is it posible? I know you can't use something like this, but it's the idea. LAYER NAME XX STATUS ON TYPE POINT FEATURE POINTS * * END END CLASS STYLE SYMBOL 2 SIZE 20 COLOR 0 255 0 #verde OUTLINECOLOR 255 255 255 END END END Any idea or suggestion? thanks in advance regards, Luis -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Tue Jan 4 16:33:25 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 04 Jan 2011 19:33:25 -0500 Subject: [mapserver-users] GDAL input formats In-Reply-To: <9188AB5935664040805E01E348A2B81D1BF69074@lacex1.afsc.ads> References: <20110102044304.GA3480@parts-unknown.org> <007a01cbab99$47b60bd0$d7222370$@cl> <9188AB5935664040805E01E348A2B81D1BF69074@lacex1.afsc.ads> Message-ID: <4D23BC55.7040005@pobox.com> On 11-01-04 03:14 PM, David Hildebrand wrote: > I'm wondering how to specify a particular GDAL format. I have some > 3-band floating point images in ENVI format and I would like to retain > that format because I have GDAL support. Secondly, would it be better > to convert them to GeoTiff files? Would it also be better to scale them > to, say 16-bit signed integer files? David, I searched back a bit in the archive, but I couldn't find any leadup discussion to the above. It seems to lack context. So, you have 3band floating point images in ENVI format and you would like to retain that format. Is there something holding you back? You said you don't know "hjow to specify a particular GDAL format". Do you mean when you are generating output via GDAL such as with WCS? Or do you mean how you tell MapServer what format an input file is in? You don't have to tell MapServer (or GDAL) what format a file is in. It figures it out - assuming it is a supported format. Does that help? Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From thomas.bonfort at gmail.com Wed Jan 5 00:20:52 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 5 Jan 2011 09:20:52 +0100 Subject: [mapserver-users] Is it posible to draw variable feature points In-Reply-To: References: Message-ID: Luis, have a look at the mailing list archives and/or the mapserver documentation. http://lists.osgeo.org/pipermail/mapserver-users/2010-November/067350.html http://mapserver.org/cgi/controls.html -- thomas On Tue, Jan 4, 2011 at 22:54, Luis Trevi?o wrote: > Hi list. > I would like to know if it's posible to draw a point layer with variable > coordinates as a feature using run-time variable substitution. > I want to use cgi mapserver and privide a lat / lon values as variables and > would like mapserver to draw a symbol in that point. is it posible? > I know you can't use something like this, but it's the idea. > LAYER > ?? NAME XX > ?? STATUS ON > ?? TYPE POINT > ?? FEATURE > ?? ? POINTS > ? > ?? ? END > ?? END > ?? CLASS > ?? ? STYLE > ?? ? ? SYMBOL 2 > ?? ? ? SIZE 20 > ?? ? ? COLOR 0 255 0 ?#verde > ?? ? ? OUTLINECOLOR 255 255 255 > ?? ? END > ?? END > ?END > Any idea or suggestion? > thanks in advance > regards, > Luis > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From David.Hildebrand at afsc.ca Wed Jan 5 08:00:15 2011 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Wed, 5 Jan 2011 09:00:15 -0700 Subject: [mapserver-users] GDAL input formats In-Reply-To: <4D23BC55.7040005@pobox.com> References: <20110102044304.GA3480@parts-unknown.org> <007a01cbab99$47b60bd0$d7222370$@cl><9188AB5935664040805E01E348A2B81D1BF69074@lacex1.afsc.ads> <4D23BC55.7040005@pobox.com> Message-ID: <9188AB5935664040805E01E348A2B81D1BF69077@lacex1.afsc.ads> Frank: As you are probably aware, ENVI image files are associated with a header file which has a "hdr" extension. The extension of the actual image file can be anything but the root name of the image file and header file must be the same. If I specify the HDR file on the DATA line of my map file there may be more than one file in the same workspace which are candidate image files. If I specify the name of the image file, which can have any or no extension, I don't see how the system can figure out the format. Is there a particular extension which is assumed by GDAL for the image file? 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. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Frank Warmerdam Sent: Tuesday, January 04, 2011 5:33 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] GDAL input formats On 11-01-04 03:14 PM, David Hildebrand wrote: > I'm wondering how to specify a particular GDAL format. I have some > 3-band floating point images in ENVI format and I would like to retain > that format because I have GDAL support. Secondly, would it be better > to convert them to GeoTiff files? Would it also be better to scale them > to, say 16-bit signed integer files? David, I searched back a bit in the archive, but I couldn't find any leadup discussion to the above. It seems to lack context. So, you have 3band floating point images in ENVI format and you would like to retain that format. Is there something holding you back? You said you don't know "hjow to specify a particular GDAL format". Do you mean when you are generating output via GDAL such as with WCS? Or do you mean how you tell MapServer what format an input file is in? You don't have to tell MapServer (or GDAL) what format a file is in. It figures it out - assuming it is a supported format. Does that help? Best regards, -- ---------------------------------------+-------------------------------- ------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jukka.Rahkonen at mmmtike.fi Wed Jan 5 09:07:24 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 5 Jan 2011 19:07:24 +0200 Subject: [mapserver-users] GDAL input formats References: <20110102044304.GA3480@parts-unknown.org> <007a01cbab99$47b60bd0$d7222370$@cl><9188AB5935664040805E01E348A2B81D1BF69074@lacex1.afsc.ads> <4D23BC55.7040005@pobox.com> <9188AB5935664040805E01E348A2B81D1BF69077@lacex1.afsc.ads> Message-ID: Hi, Have you already read the ENVI part of the following document? http://gdal.org/frmt_various.html#ENVI -Jukka Rahkonen- David Hildebrand wrote: > Frank: > As you are probably aware, ENVI image files are associated with a header file which has a "hdr" extension. The extension of the actual image file can be anything but the root name of the image file and header file must be the same. If I specify the HDR file on the DATA line of my map file there may be more than one file in the same workspace which are candidate image files. If I specify the name of the image file, which can have any or no extension, I don't see how the system can figure out the format. Is there a particular extension which is assumed by GDAL for the image file? > 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. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Frank Warmerdam Sent: Tuesday, January 04, 2011 5:33 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] GDAL input formats On 11-01-04 03:14 PM, David Hildebrand wrote: > I'm wondering how to specify a particular GDAL format. I have some > 3-band floating point images in ENVI format and I would like to retain > that format because I have GDAL support. Secondly, would it be better > to convert them to GeoTiff files? Would it also be better to scale them > to, say 16-bit signed integer files? David, I searched back a bit in the archive, but I couldn't find any leadup discussion to the above. It seems to lack context. So, you have 3band floating point images in ENVI format and you would like to retain that format. Is there something holding you back? You said you don't know "hjow to specify a particular GDAL format". Do you mean when you are generating output via GDAL such as with WCS? Or do you mean how you tell MapServer what format an input file is in? You don't have to tell MapServer (or GDAL) what format a file is in. It figures it out - assuming it is a supported format. Does that help? Best regards, -- ---------------------------------------+-------------------------------- ------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From ian.walberg at airborne.aero Wed Jan 5 09:48:09 2011 From: ian.walberg at airborne.aero (Ian Walberg) Date: Wed, 5 Jan 2011 12:48:09 -0500 Subject: [mapserver-users] Arabic text help - some words not rendering correctly In-Reply-To: <9188AB5935664040805E01E348A2B81D1BF69077@lacex1.afsc.ads> References: <20110102044304.GA3480@parts-unknown.org> <007a01cbab99$47b60bd0$d7222370$@cl><9188AB5935664040805E01E348A2B81D1BF69074@lacex1.afsc.ads><4D23BC55.7040005@pobox.com> <9188AB5935664040805E01E348A2B81D1BF69077@lacex1.afsc.ads> Message-ID: Hello list and Happy New Year, We are seeing incorrectly rendered Arabic text, typically a 'square' displayed instead of one of the characters or sometimes one or more characters missing. The data is coming from shape files and most the names appear to be displayed correctly. This is being seen on both ms4w and the target Linux installation. Any idea where to look would be greatly appreciated. Is the 'square' character what Freetype displays if it cannot find a character in the font. Many thanks Ian From dmorissette at mapgears.com Wed Jan 5 09:55:05 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 05 Jan 2011 12:55:05 -0500 Subject: [mapserver-users] Arabic text help - some words not rendering correctly In-Reply-To: References: <20110102044304.GA3480@parts-unknown.org> <007a01cbab99$47b60bd0$d7222370$@cl><9188AB5935664040805E01E348A2B81D1BF69074@lacex1.afsc.ads><4D23BC55.7040005@pobox.com> <9188AB5935664040805E01E348A2B81D1BF69077@lacex1.afsc.ads> Message-ID: <4D24B079.3000107@mapgears.com> Are you setting the LABEL.ENCODING to the right value? http://mapserver.org/mapfile/labelencoding.html On 11-01-05 12:48 PM, Ian Walberg wrote: > Hello list and Happy New Year, > > We are seeing incorrectly rendered Arabic text, typically a 'square' > displayed instead of one of the characters or sometimes one or more > characters missing. > > The data is coming from shape files and most the names appear to be > displayed correctly. > > This is being seen on both ms4w and the target Linux installation. > > Any idea where to look would be greatly appreciated. Is the 'square' > character what Freetype displays if it cannot find a character in the > font. > > Many thanks > > Ian > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ From David.Hildebrand at afsc.ca Wed Jan 5 12:46:23 2011 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Wed, 5 Jan 2011 13:46:23 -0700 Subject: [mapserver-users] GDAL input formats In-Reply-To: References: <20110102044304.GA3480@parts-unknown.org> <007a01cbab99$47b60bd0$d7222370$@cl><9188AB5935664040805E01E348A2B81D1BF69074@lacex1.afsc.ads> <4D23BC55.7040005@pobox.com> <9188AB5935664040805E01E348A2B81D1BF69077@lacex1.afsc.ads> Message-ID: <9188AB5935664040805E01E348A2B81D1BF69078@lacex1.afsc.ads> Thanks, Jukka. The second part of my question relates to floating point images. I don't think that MapServer can handle 3-band floating point images because I can't seem to find anything in the documentation and I have tried a couple of things that don't work. I suppose the best thing would be to convert them to 3-band, 8-bit images. =========================== 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: Wednesday, January 05, 2011 10:07 AM To: David Hildebrand Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] GDAL input formats Hi, Have you already read the ENVI part of the following document? http://gdal.org/frmt_various.html#ENVI -Jukka Rahkonen- David Hildebrand wrote: > Frank: > As you are probably aware, ENVI image files are associated with a header file which has a "hdr" extension. The extension of the actual image file can be anything but the root name of the image file and header file must be the same. If I specify the HDR file on the DATA line of my map file there may be more than one file in the same workspace which are candidate image files. If I specify the name of the image file, which can have any or no extension, I don't see how the system can figure out the format. Is there a particular extension which is assumed by GDAL for the image file? > 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. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Frank Warmerdam Sent: Tuesday, January 04, 2011 5:33 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] GDAL input formats On 11-01-04 03:14 PM, David Hildebrand wrote: > I'm wondering how to specify a particular GDAL format. I have some > 3-band floating point images in ENVI format and I would like to retain > that format because I have GDAL support. Secondly, would it be better > to convert them to GeoTiff files? Would it also be better to scale them > to, say 16-bit signed integer files? David, I searched back a bit in the archive, but I couldn't find any leadup discussion to the above. It seems to lack context. So, you have 3band floating point images in ENVI format and you would like to retain that format. Is there something holding you back? You said you don't know "hjow to specify a particular GDAL format". Do you mean when you are generating output via GDAL such as with WCS? Or do you mean how you tell MapServer what format an input file is in? You don't have to tell MapServer (or GDAL) what format a file is in. It figures it out - assuming it is a supported format. Does that help? Best regards, -- ---------------------------------------+-------------------------------- ------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From greenkov at gmail.com Wed Jan 5 13:06:36 2011 From: greenkov at gmail.com (Alexander Petkov) Date: Wed, 5 Jan 2011 14:06:36 -0700 Subject: [mapserver-users] GDAL input formats In-Reply-To: <9188AB5935664040805E01E348A2B81D1BF69078@lacex1.afsc.ads> References: <20110102044304.GA3480@parts-unknown.org> <007a01cbab99$47b60bd0$d7222370$@cl> <9188AB5935664040805E01E348A2B81D1BF69074@lacex1.afsc.ads> <4D23BC55.7040005@pobox.com> <9188AB5935664040805E01E348A2B81D1BF69077@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF69078@lacex1.afsc.ads> Message-ID: Hi David: If gdal can read your rasters (gdalinfo will work for a quick and easy test), mapserver will too. Alex On Wed, Jan 5, 2011 at 1:46 PM, David Hildebrand wrote: > Thanks, Jukka. ?The second part of my question relates to floating point > images. ?I don't think that MapServer can handle 3-band floating point > images because I can't seem to find anything in the documentation and I > have tried a couple of things that don't work. ?I suppose the best thing > would be to convert them to 3-band, 8-bit images. > > > =========================== > 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: Wednesday, January 05, 2011 10:07 AM > To: David Hildebrand > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] GDAL input formats > > Hi, > > Have you already read the ENVI part of the following document? > http://gdal.org/frmt_various.html#ENVI > > -Jukka Rahkonen- > > > David Hildebrand wrote: > >> Frank: > >> As you are probably aware, ENVI image files are associated with a > header > file which has a "hdr" extension. ?The extension of the actual image > file can be anything but the root name of the image file and header file > must be the same. ?If I specify the HDR file on the DATA line of my map > file there may be more than one file in the same workspace which are > candidate image files. ?If I specify the name of the image file, which > can have any or no extension, I don't see how the system can figure out > the format. ?Is there a particular extension which is assumed by GDAL > for the image file? > >> 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. > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Frank > Warmerdam > Sent: Tuesday, January 04, 2011 5:33 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] GDAL input formats > > On 11-01-04 03:14 PM, David Hildebrand wrote: >> I'm wondering how to specify a particular GDAL format. ?I have some >> 3-band floating point images in ENVI format and I would like to retain >> that format because I have GDAL support. ?Secondly, would it be better >> to convert them to GeoTiff files? ?Would it also be better to scale > them >> to, say 16-bit signed integer files? > > David, > > I searched back a bit in the archive, but I couldn't find any leadup > discussion to the above. ?It seems to lack context. > > So, you have 3band floating point images in ENVI format and you would > like to retain that format. ?Is there something holding you back? > > You said you don't know "hjow to specify a particular GDAL format". ?Do > you mean when you are generating output via GDAL such as with WCS? ?Or > do you mean how you tell MapServer what format an input file is in? > You don't have to tell MapServer (or GDAL) what format a file is in. > It figures it out - assuming it is a supported format. > > Does that help? > > Best regards, > -- > ---------------------------------------+-------------------------------- > ------ > I set the clouds in motion - turn up ? | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush ? ?| Geospatial Programmer for Rent > > _______________________________________________ > 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 woodbri at swoodbridge.com Wed Jan 5 13:34:30 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 05 Jan 2011 16:34:30 -0500 Subject: [mapserver-users] Arabic text help - some words not rendering correctly In-Reply-To: References: <20110102044304.GA3480@parts-unknown.org> <007a01cbab99$47b60bd0$d7222370$@cl><9188AB5935664040805E01E348A2B81D1BF69074@lacex1.afsc.ads><4D23BC55.7040005@pobox.com> <9188AB5935664040805E01E348A2B81D1BF69077@lacex1.afsc.ads> Message-ID: <4D24E3E6.4040109@swoodbridge.com> On 1/5/2011 12:48 PM, Ian Walberg wrote: > Hello list and Happy New Year, > > We are seeing incorrectly rendered Arabic text, typically a 'square' > displayed instead of one of the characters or sometimes one or more > characters missing. > > The data is coming from shape files and most the names appear to be > displayed correctly. > > This is being seen on both ms4w and the target Linux installation. > > Any idea where to look would be greatly appreciated. Is the 'square' > character what Freetype displays if it cannot find a character in the > font. Hi Ian, The square that is displayed is the default character glyph used when a requested character can not be found in the character set being used. I looked at the sample images the your emailed me directly and here are my thoughts on the problem: 1. encoding is ok, because 99.9% of the characters are displayed correctly Possible causes for what you are seeing: 2. you have random characters that are not valid utf8 characters - but this is probably refuted by the fact that in other programs it is display correctly. One way to easily verify this is to do a dbfdump of the dbf file in the shapefile like: dbfdump myshapfile.dbf > myshapfile.txt Then view myshapfile.txt in firefox where you can change the character encoding from the menu: View -> Character Encoding -> ... You can change it until you find the one that looks correct. This is also a good way to determine the ENCODING value for the mapfile if you are unsure. Also if your data is mangled because it has mixed character data within an attribute column or the data was encoded badly it will most likely look like garbage. 3. the font you are using with mapserver is not the same font used by other programs. Hence the other programs have the glyph in their font and mapserver does not 4. typically in utf8 text, only the "content" characters are stored and it is up to the rendering program to determine if it left-right ot right-left rendering and whether or not some adjacent characters need to be joined in some manner. This joining process is typically different in different applications. So while mapserver might be failing in this regard (more on that below), may be your other application is doing a better job. So my pick for the likely issue here is 3 or more likely 4. Mapserver uses fribidi library to convert the utf8 "content" string into a utf8 "display" string, then asks freetype to render the "display" string using you font. The difference between the "content" string and he "display" string is the fact the fribidi is dealing with positioning of the character for both RTL and LTR rendering and it is adding joining characters that must be present in the font that you use to display the string. It is likely that whatever you comparison application is, it is not using fribidi. So the fact that mapserver is rendering most of your data correctly means that you have things built correctly and you data and mapfile are setup correctly. I think you will need to chase down this problem on the fribidi list. If the issue a patch to the library then the MS4W team can pick that up if they know about it and anyone on *NIX can pull the new package and build it. The other fix to this problem, again the fribidi list can probably help, is to identify which glyph is missing and try to find someone that can add a glyph for the missing character to your font. As far as I can tell this is not a mapserver problem per say except that it is annoyingly only showing its ugly square box on the maps we render ;) I hope this helps you solve this problem. -Steve W From David.Hildebrand at afsc.ca Wed Jan 5 13:46:49 2011 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Wed, 5 Jan 2011 14:46:49 -0700 Subject: [mapserver-users] GDAL input formats In-Reply-To: References: <20110102044304.GA3480@parts-unknown.org><007a01cbab99$47b60bd0$d7222370$@cl><9188AB5935664040805E01E348A2B81D1BF69074@lacex1.afsc.ads><4D23BC55.7040005@pobox.com><9188AB5935664040805E01E348A2B81D1BF69077@lacex1.afsc.ads><9188AB5935664040805E01E348A2B81D1BF69078@lacex1.afsc.ads> Message-ID: <9188AB5935664040805E01E348A2B81D1BF69079@lacex1.afsc.ads> My question now relates to output. =========================== 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: Alexander Petkov [mailto:greenkov at gmail.com] Sent: Wednesday, January 05, 2011 2:07 PM To: David Hildebrand Cc: Rahkonen Jukka; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] GDAL input formats Hi David: If gdal can read your rasters (gdalinfo will work for a quick and easy test), mapserver will too. Alex On Wed, Jan 5, 2011 at 1:46 PM, David Hildebrand wrote: > Thanks, Jukka. ?The second part of my question relates to floating point > images. ?I don't think that MapServer can handle 3-band floating point > images because I can't seem to find anything in the documentation and I > have tried a couple of things that don't work. ?I suppose the best thing > would be to convert them to 3-band, 8-bit images. > > > =========================== > 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: Wednesday, January 05, 2011 10:07 AM > To: David Hildebrand > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] GDAL input formats > > Hi, > > Have you already read the ENVI part of the following document? > http://gdal.org/frmt_various.html#ENVI > > -Jukka Rahkonen- > > > David Hildebrand wrote: > >> Frank: > >> As you are probably aware, ENVI image files are associated with a > header > file which has a "hdr" extension. ?The extension of the actual image > file can be anything but the root name of the image file and header file > must be the same. ?If I specify the HDR file on the DATA line of my map > file there may be more than one file in the same workspace which are > candidate image files. ?If I specify the name of the image file, which > can have any or no extension, I don't see how the system can figure out > the format. ?Is there a particular extension which is assumed by GDAL > for the image file? > >> 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. > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Frank > Warmerdam > Sent: Tuesday, January 04, 2011 5:33 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] GDAL input formats > > On 11-01-04 03:14 PM, David Hildebrand wrote: >> I'm wondering how to specify a particular GDAL format. ?I have some >> 3-band floating point images in ENVI format and I would like to retain >> that format because I have GDAL support. ?Secondly, would it be better >> to convert them to GeoTiff files? ?Would it also be better to scale > them >> to, say 16-bit signed integer files? > > David, > > I searched back a bit in the archive, but I couldn't find any leadup > discussion to the above. ?It seems to lack context. > > So, you have 3band floating point images in ENVI format and you would > like to retain that format. ?Is there something holding you back? > > You said you don't know "hjow to specify a particular GDAL format". ?Do > you mean when you are generating output via GDAL such as with WCS? ?Or > do you mean how you tell MapServer what format an input file is in? > You don't have to tell MapServer (or GDAL) what format a file is in. > It figures it out - assuming it is a supported format. > > Does that help? > > Best regards, > -- > ---------------------------------------+-------------------------------- > ------ > I set the clouds in motion - turn up ? | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush ? ?| Geospatial Programmer for Rent > > _______________________________________________ > 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 mitseagrant at gmail.com Wed Jan 5 13:46:27 2011 From: mitseagrant at gmail.com (MIT Sea Grant) Date: Wed, 5 Jan 2011 16:46:27 -0500 Subject: [mapserver-users] make error: /usr/local/lib/libgdal.so: undefined reference to `GEOSFree' In-Reply-To: <00ea01cba2a6$8f61e720$ae25b560$@cl> References: <00ea01cba2a6$8f61e720$ae25b560$@cl> Message-ID: Thank you, and apologies for the delay in response. Unfortunately, gdal is giving the same undefined reference error. Using: ./configure --libdir=/usr/lib64 --with-ogr --with-png=internal --with-jpeg=internal --with-geotiff=internal --with-libtiff=internal --with-gif=internal --with-libz=internal --with-curl=/usr/bin/curl-config --with-geos=/usr/local/bin/geos-config --with-pg=/usr/bin/pg_config --with-expat=/usr/lib64 && make && make install I get: ... libtool: link: g++ .libs/gdalinfo.o -o .libs/gdalinfo /usr/local/src/20101216-builds/gdal-1.7.3/.libs/libgdal.so -Wl,-rpath -Wl,/usr/lib64 /usr/local/src/20101216-builds/gdal-1.7.3/.libs/libgdal.so: undefined reference to `GEOSFree' collect2: ld returned 1 exit status make[1]: *** [gdalinfo] Error 1 make[1]: Leaving directory `/usr/local/src/20101216-builds/gdal-1.7.3/apps' make: *** [apps-target] Error 2 So then I re-configure, excluding --with-libdir and it builds fine, but MapServer still gives the error. Not sure what next. Any further advice appreciated... On Thu, Dec 23, 2010 at 8:37 AM, Patricio Cifuentes Ithal wrote: > Re-compiling gdal... > > ./configure --libdir=/usr/lib64/ > > And all the libraries necesarie recompiling > > Patricio Cifuentes Ithal > Ingeniero en Inform?tica > Unidad de Inform?tica > Fono : 02 - 334 73 69 > www.siigsa.cl > > -----Mensaje original----- > De: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de MIT Sea Grant > Enviado el: mi?rcoles, 22 de diciembre de 2010 17:17 > Para: mapserver-users at lists.osgeo.org > Asunto: [mapserver-users] make error: /usr/local/lib/libgdal.so: undefined > reference to `GEOSFree' > > Hello, > > We are getting the following Make error when trying to build on Red > Hat Enterprise Linux 5 (x86_64): > /usr/local/lib/libgdal.so: undefined reference to `GEOSFree' > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > > We think we have everything linked correctly, but the problem > persists. Any help appreciated. > > Thanks, > > Greg > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- > Este mensaje ha sido analizado por MailScanner > en busca de virus y otros contenidos peligrosos, > y se considera que est? limpio. > > > -- > Este mensaje ha sido analizado por MailScanner > en busca de virus y otros contenidos peligrosos, > y se considera que est? limpio. > > From pcifuentes at siigsa.cl Thu Jan 6 07:40:28 2011 From: pcifuentes at siigsa.cl (Patricio Cifuentes Ithal) Date: Thu, 6 Jan 2011 12:40:28 -0300 Subject: [mapserver-users] make error: /usr/local/lib/libgdal.so: undefined reference to `GEOSFree' In-Reply-To: References: <00ea01cba2a6$8f61e720$ae25b560$@cl> Message-ID: <000601cbadb8$0de54cb0$29afe610$@cl> Hi!, Recompilling gdal and all libraries necesaries for mapserver with ./configure --with-libdir=/usr/lib64 Patricio Cifuentes Ithal Ingeniero en Inform?tica Unidad de Inform?tica Fono : 02 - 334 73 69 www.siigsa.cl -----Mensaje original----- De: MIT Sea Grant [mailto:mitseagrant at gmail.com] Enviado el: mi?rcoles, 05 de enero de 2011 18:46 Para: pcifuentes at siigsa.cl CC: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] make error: /usr/local/lib/libgdal.so: undefined reference to `GEOSFree' Thank you, and apologies for the delay in response. Unfortunately, gdal is giving the same undefined reference error. Using: ./configure --libdir=/usr/lib64 --with-ogr --with-png=internal --with-jpeg=internal --with-geotiff=internal --with-libtiff=internal --with-gif=internal --with-libz=internal --with-curl=/usr/bin/curl-config --with-geos=/usr/local/bin/geos-config --with-pg=/usr/bin/pg_config --with-expat=/usr/lib64 && make && make install I get: ... libtool: link: g++ .libs/gdalinfo.o -o .libs/gdalinfo /usr/local/src/20101216-builds/gdal-1.7.3/.libs/libgdal.so -Wl,-rpath -Wl,/usr/lib64 /usr/local/src/20101216-builds/gdal-1.7.3/.libs/libgdal.so: undefined reference to `GEOSFree' collect2: ld returned 1 exit status make[1]: *** [gdalinfo] Error 1 make[1]: Leaving directory `/usr/local/src/20101216-builds/gdal-1.7.3/apps' make: *** [apps-target] Error 2 So then I re-configure, excluding --with-libdir and it builds fine, but MapServer still gives the error. Not sure what next. Any further advice appreciated... On Thu, Dec 23, 2010 at 8:37 AM, Patricio Cifuentes Ithal wrote: > Re-compiling gdal... > > ./configure --libdir=/usr/lib64/ > > And all the libraries necesarie recompiling > > Patricio Cifuentes Ithal > Ingeniero en Inform?tica > Unidad de Inform?tica > Fono : 02 - 334 73 69 > www.siigsa.cl > > -----Mensaje original----- > De: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de MIT Sea Grant > Enviado el: mi?rcoles, 22 de diciembre de 2010 17:17 > Para: mapserver-users at lists.osgeo.org > Asunto: [mapserver-users] make error: /usr/local/lib/libgdal.so: undefined > reference to `GEOSFree' > > Hello, > > We are getting the following Make error when trying to build on Red > Hat Enterprise Linux 5 (x86_64): > /usr/local/lib/libgdal.so: undefined reference to `GEOSFree' > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > > We think we have everything linked correctly, but the problem > persists. Any help appreciated. > > Thanks, > > Greg > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- > Este mensaje ha sido analizado por MailScanner > en busca de virus y otros contenidos peligrosos, > y se considera que est? limpio. > > > -- > Este mensaje ha sido analizado por MailScanner > en busca de virus y otros contenidos peligrosos, > y se considera que est? limpio. > > From bogdansuvar at gmail.com Thu Jan 6 09:22:26 2011 From: bogdansuvar at gmail.com (bs) Date: Thu, 6 Jan 2011 09:22:26 -0800 (PST) Subject: [mapserver-users] mapscript.pointObj error Message-ID: <1294334546495-5896352.post@n2.nabble.com> Hi, I'm currently using mapscript by the instructions provided in Bill Kropla's book (chapter 7 - http://books.google.com/books?id=EnoD9fQVmOkC&lpg=PR10&vq=mapscript&pg=PA187#v=snippet&q=mapscript&f=false) but it seems that on this line: clkpoint = mapscript.pointObj() the AttributeError,name is raised in mapscript.py in the method show in the image below. http://osgeo-org.1803224.n2.nabble.com/file/n5896352/error.png I've used the debugger to get this far, but don't have a clue of what to do next ? Any hints are appreciated -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/mapscript-pointObj-error-tp5896352p5896352.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bfraser at geoanalytic.com Thu Jan 6 15:42:08 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 06 Jan 2011 16:42:08 -0700 Subject: [mapserver-users] GDAL input formats In-Reply-To: <9188AB5935664040805E01E348A2B81D1BF69079@lacex1.afsc.ads> References: <20110102044304.GA3480@parts-unknown.org><007a01cbab99$47b60bd0$d7222370$@cl><9188AB5935664040805E01E348A2B81D1BF69074@lacex1.afsc.ads><4D23BC55.7040005@pobox.com><9188AB5935664040805E01E348A2B81D1BF69077@lacex1.afsc.ads><9188AB5935664040805E01E348A2B81D1BF69078@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF69079@lacex1.afsc.ads> Message-ID: <4D265350.80709@geoanalytic.com> David, I'd recommend converting your floating point images to 24-bit RGB images (as long as you can afford the disk space). You'd have to configure mapserver (see SCALE in http://mapserver.org/input/raster.html#bit-rgb-rendering) to do this on the fly anyway as browsers don't know what to do with floating point images. You can use gdal_translate to do the conversion (see "-scale" in http://www.gdal.org/gdal_translate.html). Best Regards, Brent Fraser On 1/5/2011 2:46 PM, David Hildebrand wrote: > My question now relates to output. > > =========================== > David V. Hildebrand > Agriculture Financial Services Corporation > (403) 782-8239 > > > -----Original Message----- > From: Alexander Petkov [mailto:greenkov at gmail.com] > Sent: Wednesday, January 05, 2011 2:07 PM > To: David Hildebrand > Cc: Rahkonen Jukka; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] GDAL input formats > > Hi David: > > If gdal can read your rasters (gdalinfo will work for a quick and easy > test), mapserver will too. > > Alex > > On Wed, Jan 5, 2011 at 1:46 PM, David Hildebrand > wrote: >> Thanks, Jukka. The second part of my question relates to floating point >> images. I don't think that MapServer can handle 3-band floating point >> images because I can't seem to find anything in the documentation and I >> have tried a couple of things that don't work. I suppose the best thing >> would be to convert them to 3-band, 8-bit images. >> >> >> =========================== >> David V. Hildebrand >> Agriculture Financial Services Corporation >> (403) 782-8239 >> >> >> -----Original Message----- >> From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] >> Sent: Wednesday, January 05, 2011 10:07 AM >> To: David Hildebrand >> Cc: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] GDAL input formats >> >> Hi, >> >> Have you already read the ENVI part of the following document? >> http://gdal.org/frmt_various.html#ENVI >> >> -Jukka Rahkonen- >> >> >> David Hildebrand wrote: >> >>> Frank: >>> As you are probably aware, ENVI image files are associated with a >> header >> file which has a "hdr" extension. The extension of the actual image >> file can be anything but the root name of the image file and header file >> must be the same. If I specify the HDR file on the DATA line of my map >> file there may be more than one file in the same workspace which are >> candidate image files. If I specify the name of the image file, which >> can have any or no extension, I don't see how the system can figure out >> the format. Is there a particular extension which is assumed by GDAL >> for the image file? >> >>> Thanks. >> >> =========================== >> David V. Hildebrand >> Agriculture Financial Services Corporation >> (403) 782-8239 >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Frank >> Warmerdam >> Sent: Tuesday, January 04, 2011 5:33 PM >> To: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] GDAL input formats >> >> On 11-01-04 03:14 PM, David Hildebrand wrote: >>> I'm wondering how to specify a particular GDAL format. I have some >>> 3-band floating point images in ENVI format and I would like to retain >>> that format because I have GDAL support. Secondly, would it be better >>> to convert them to GeoTiff files? Would it also be better to scale >> them >>> to, say 16-bit signed integer files? >> David, >> >> I searched back a bit in the archive, but I couldn't find any leadup >> discussion to the above. It seems to lack context. >> >> So, you have 3band floating point images in ENVI format and you would >> like to retain that format. Is there something holding you back? >> >> You said you don't know "hjow to specify a particular GDAL format". Do >> you mean when you are generating output via GDAL such as with WCS? Or >> do you mean how you tell MapServer what format an input file is in? >> You don't have to tell MapServer (or GDAL) what format a file is in. >> It figures it out - assuming it is a supported format. >> >> Does that help? >> >> Best regards, >> -- >> ---------------------------------------+-------------------------------- >> ------ >> I set the clouds in motion - turn up | Frank Warmerdam, >> warmerdam at pobox.com >> light and sound - activate the windows | http://pobox.com/~warmerdam >> and watch the world go round - Rush | Geospatial Programmer for Rent >> >> _______________________________________________ >> > From surendravdave at gmail.com Thu Jan 6 22:26:45 2011 From: surendravdave at gmail.com (Surendra Dave) Date: Fri, 7 Jan 2011 11:56:45 +0530 Subject: [mapserver-users] Symbol set for S-57 data. Message-ID: Hi all, Can anyone help me with TTF / symbols file for S-57 data. Kind Regards, SVD. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bas at cipix.nl Fri Jan 7 02:26:01 2011 From: bas at cipix.nl (basvmrs) Date: Fri, 7 Jan 2011 02:26:01 -0800 (PST) Subject: [mapserver-users] Projection problems Message-ID: <1294395961732-5898717.post@n2.nabble.com> Hi, I've created a map server in which I try to output data that was entered using Google Maps V2 (drawing polygons). I used openlayers to display the results over a Bing layer. There seems to be a problem in the projection, which is best described using an image and a link: http://bir.cipixtest.nl/resources/gis/demo.html Demo http://osgeo-org.1803224.n2.nabble.com/file/n5898717/forum.png Notice how the areas seem to 'shift' when zooming in. My mapfile looks like this: # # Start of map file # MAP NAME BIR STATUS ON SIZE 600 600 EXTENT 4.4 51.85 4.6 51.95 UNITS METERS IMAGETYPE PNG PROJECTION "init=epsg:900913" END TRANSPARENT ON LAYER NAME bedrijventerreinen TYPE POLYGON STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "MySQL:bir,host=XXXXX,user=XXXXX,password=XXXXXXX,port=3306" DATA "SELECT * from gis_object" DUMP TRUE CLASS NAME 'Bedrijventerreinen' STYLE OUTLINECOLOR 0 0 0 COLOR 200 200 200 END END TEMPLATE "object.html" METADATA gml_include_items "all" WMS_TITLE "Bedrijventerreinen" WMS_ABSTRACT "Bedrijventerreinen in de Regio Rotterdam; de gebieden zijn een benadering en er kunnen geen rechten aan worden ontleend." WMS_SRS "EPSG:28992 EPSG:900913 EPSG:4326" END END END # Map File I don't have a clue why this is happening. I hope that someone can explain to me why this is happening and how to fix it. Kind regards, Bas -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Projection-problems-tp5898717p5898717.html Sent from the Mapserver - User mailing list archive at Nabble.com. From milo at dogodigi.net Fri Jan 7 06:22:03 2011 From: milo at dogodigi.net (Milo van der Linden) Date: Fri, 7 Jan 2011 15:22:03 +0100 Subject: [mapserver-users] Projection problems In-Reply-To: <1294395961732-5898717.post@n2.nabble.com> References: <1294395961732-5898717.post@n2.nabble.com> Message-ID: Funny, Everytime I read "projection problems" on this list I think: Hey, this might be someone from the Netherlands. You mean you would really like to have your bedrijventerreinen like this? http://www.locatiemonitor.nl/LocationDetails2.aspx?lid=1437 (please wait for the bedrijventerreinen wms to appear) I created the wms service for locatiemonitor and as I can see, we are "fishing in the same vijver" Please read my blog post at http://blog.dogodigi.net/2010/08/19/dutch-coordinate-system-ellipsoid-correction/ And write a small thank you comment if it helped you solve your issue ;-) Kind regards, Milo van der Linden 2011/1/7 basvmrs > > Hi, > > I've created a map server in which I try to output data that was entered > using Google Maps V2 (drawing polygons). I used openlayers to display the > results over a Bing layer. > > There seems to be a problem in the projection, which is best described > using > an image and a link: > > http://bir.cipixtest.nl/resources/gis/demo.html Demo > http://osgeo-org.1803224.n2.nabble.com/file/n5898717/forum.png > > Notice how the areas seem to 'shift' when zooming in. > > My mapfile looks like this: > > > # > # Start of map file > # > MAP > NAME BIR > STATUS ON > SIZE 600 600 > EXTENT 4.4 51.85 4.6 51.95 > UNITS METERS > > IMAGETYPE PNG > > PROJECTION > "init=epsg:900913" > END > > TRANSPARENT ON > > LAYER > NAME bedrijventerreinen > TYPE POLYGON > STATUS DEFAULT > CONNECTIONTYPE OGR > CONNECTION > "MySQL:bir,host=XXXXX,user=XXXXX,password=XXXXXXX,port=3306" > DATA "SELECT * from gis_object" > DUMP TRUE > CLASS > NAME 'Bedrijventerreinen' > STYLE > OUTLINECOLOR 0 0 0 > COLOR 200 200 200 > END > END > TEMPLATE "object.html" > > METADATA > gml_include_items "all" > WMS_TITLE "Bedrijventerreinen" > WMS_ABSTRACT "Bedrijventerreinen in de Regio > Rotterdam; de gebieden zijn > een benadering en er kunnen geen rechten aan worden ontleend." > WMS_SRS "EPSG:28992 EPSG:900913 EPSG:4326" > END > END > > END # Map File > > I don't have a clue why this is happening. I hope that someone can explain > to me why this is happening and how to fix it. > > Kind regards, > Bas > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Projection-problems-tp5898717p5898717.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 bas at cipix.nl Fri Jan 7 06:35:33 2011 From: bas at cipix.nl (basvmrs) Date: Fri, 7 Jan 2011 06:35:33 -0800 (PST) Subject: [mapserver-users] Re: Projection problems In-Reply-To: References: <1294395961732-5898717.post@n2.nabble.com> Message-ID: <1294410933181-5899397.post@n2.nabble.com> Thanks Milo! Looks like a very nice tool you have built. I also found this article (in Dutch): http://web.archiveorange.com/archive/v/J7KtnqcjuwiLWARtBrhN http://web.archiveorange.com/archive/v/J7KtnqcjuwiLWARtBrhN It seems like the proj4 28892-default definition is flawed! I fixed it by changing the definition in the epsg file that my mapserver was using: # Amersfoort / RD New <28992> +proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=1 +x_0=155000 +y_0=463000 +ellps=bessel +towgs84=565.237,50.0087,465.658,-0.406857,0.350733,-1.87035,4.0812 +units=m +no_defs <> #<28992> +proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +units=m +no_defs <> (note the towgs84-command) Regards, Bas -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Projection-problems-tp5898717p5899397.html Sent from the Mapserver - User mailing list archive at Nabble.com. From milo at dogodigi.net Fri Jan 7 06:41:07 2011 From: milo at dogodigi.net (Milo van der Linden) Date: Fri, 7 Jan 2011 15:41:07 +0100 Subject: [mapserver-users] Re: Projection problems In-Reply-To: <1294410933181-5899397.post@n2.nabble.com> References: <1294395961732-5898717.post@n2.nabble.com> <1294410933181-5899397.post@n2.nabble.com> Message-ID: Hello Bas, That is indeed the trick. In my blogpost I specifically target postgis, but changing the epsg file is the way to go for mapserver, the parameters stay the same (of course) The locatiemonitor was for a previous employer of mine. But it is indeed a nice tool Good luck on your implementation! > Thanks Milo! Looks like a very nice tool you have built. > > I also found this article (in Dutch): > http://web.archiveorange.com/archive/v/J7KtnqcjuwiLWARtBrhN > http://web.archiveorange.com/archive/v/J7KtnqcjuwiLWARtBrhN > > It seems like the proj4 28892-default definition is flawed! I fixed it by > changing the definition in the epsg file that my mapserver was using: > # Amersfoort / RD New > <28992> +proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=1 > +x_0=155000 +y_0=463000 +ellps=bessel > +towgs84=565.237,50.0087,465.658,-0.406857,0.350733,-1.87035,4.0812 > +units=m > +no_defs <> > #<28992> +proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 > +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +units=m +no_defs <> > > (note the towgs84-command) > > Regards, > Bas > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Projection-problems-tp5898717p5899397.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 j.l.h.hartmann at uva.nl Fri Jan 7 06:49:52 2011 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Fri, 07 Jan 2011 15:49:52 +0100 Subject: [mapserver-users] Projection problems In-Reply-To: References: <1294395961732-5898717.post@n2.nabble.com> Message-ID: <4D272810.6070901@uva.nl> (Sorry for crossposting to the PROJ list, but this has been a problem for years going) Yes, the transformation to WGS84 for the Dutch coordinate system ("Amersfoort", "Rijksdriehoeksnet) is still *not* part of the latest PROJ4 release (4.7.0, downloaded yesterday). You need to change the formula for epsg:28992 in PROJ's epsg table and in PosGIS's "spatial_ref_sys" table, like Milo describes, else your maps will be about 100 meters off. You can read an extensive discussion about this, including an Excel spreadsheet to compute the towgs84 parameters from the official EPSG database at: http://trac.osgeo.org/geotiff/ticket/22 PROJ gets its parameters from EPSG, but somehow it still doesn't manage to include the WGS84 transform. Vriendelijke groeten, Jan On 01/07/11 15:22, Milo van der Linden wrote: > Funny, > > Everytime I read "projection problems" on this list I think: Hey, this > might be someone from the Netherlands. > > > You mean you would really like to have your bedrijventerreinen like this? > > http://www.locatiemonitor.nl/LocationDetails2.aspx?lid=1437 > > (please wait for the bedrijventerreinen wms to appear) > > I created the wms service for locatiemonitor and as I can see, we are > "fishing in the same vijver" > > Please read my blog post at > http://blog.dogodigi.net/2010/08/19/dutch-coordinate-system-ellipsoid-correction/ > > And write a small thank you comment if it helped you solve your issue > > ;-) > > Kind regards, > > Milo van der Linden > > 2011/1/7 basvmrs > > > > Hi, > > I've created a map server in which I try to output data that was > entered > using Google Maps V2 (drawing polygons). I used openlayers to > display the > results over a Bing layer. > > There seems to be a problem in the projection, which is best > described using > an image and a link: > > http://bir.cipixtest.nl/resources/gis/demo.html Demo > http://osgeo-org.1803224.n2.nabble.com/file/n5898717/forum.png > > Notice how the areas seem to 'shift' when zooming in. > > My mapfile looks like this: > > > # > # Start of map file > # > MAP > NAME BIR > STATUS ON > SIZE 600 600 > EXTENT 4.4 51.85 4.6 51.95 > UNITS METERS > > IMAGETYPE PNG > > PROJECTION > "init=epsg:900913" > END > > TRANSPARENT ON > > LAYER > NAME bedrijventerreinen > TYPE POLYGON > STATUS DEFAULT > CONNECTIONTYPE OGR > CONNECTION > "MySQL:bir,host=XXXXX,user=XXXXX,password=XXXXXXX,port=3306" > DATA "SELECT * from gis_object" > DUMP TRUE > CLASS > NAME 'Bedrijventerreinen' > STYLE > OUTLINECOLOR 0 0 0 > COLOR 200 200 200 > END > END > TEMPLATE "object.html" > > METADATA > gml_include_items "all" > WMS_TITLE "Bedrijventerreinen" > WMS_ABSTRACT "Bedrijventerreinen in de > Regio Rotterdam; de gebieden zijn > een benadering en er kunnen geen rechten aan worden ontleend." > WMS_SRS "EPSG:28992 EPSG:900913 EPSG:4326" > END > END > > END # Map File > > I don't have a clue why this is happening. I hope that someone can > explain > to me why this is happening and how to fix it. > > Kind regards, > Bas > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Projection-problems-tp5898717p5898717.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From bas at cipix.nl Fri Jan 7 07:07:05 2011 From: bas at cipix.nl (basvmrs) Date: Fri, 7 Jan 2011 07:07:05 -0800 (PST) Subject: [mapserver-users] Re: Projection problems In-Reply-To: <4D272810.6070901@uva.nl> References: <1294395961732-5898717.post@n2.nabble.com> <4D272810.6070901@uva.nl> Message-ID: <1294412825223-5899533.post@n2.nabble.com> Perfect! I was able to combine 4326 with Google Maps (which was another problem altogether).. http:// http://bir.cipixtest.nl/resources/gis/demo.html http://bir.cipixtest.nl/resources/gis/demo.html My html: OpenLayers Example
My mapfile: # # Start of map file # MAP CONFIG "MS_ERRORFILE" "/tmp/mapserver.log" CONFIG "CPL_DEBUG" "ON" DEBUG 5 NAME BIR STATUS ON SIZE 600 600 EXTENT 4.4 51.85 4.6 51.95 UNITS METERS IMAGETYPE PNG PROJECTION "init=epsg:4326" END TRANSPARENT ON LAYER NAME bedrijventerreinen TYPE POLYGON STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "MySQL:bir,host=centos,user=XXX,password=XXX,port=3306" DATA "SELECT * from gis_object" DUMP TRUE CLASS NAME 'Bedrijventerreinen' STYLE OUTLINECOLOR 0 0 0 COLOR 200 200 200 END END TEMPLATE "object.html" METADATA gml_include_items "all" WMS_TITLE "Bedrijventerreinen" WMS_ABSTRACT "Bedrijventerreinen in de Regio Rotterdam; de gebieden zijn een benadering en er kunnen geen rechten aan worden ontleend." WMS_SRS "EPSG:28992 EPSG:900913 EPSG:4326" END END END # Map File The source in the gis_object table are MPOLYGONs that have been entered using an editable polygon in Google Maps V2. Using the projection mentioned above I was able to also support 28992 without the '100 meter shift' so that it can be incorporated in another WMS service. I hope it will help someone! Thanks all -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Projection-problems-tp5898717p5899533.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Fri Jan 7 11:40:49 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 07 Jan 2011 15:40:49 -0400 Subject: [mapserver-users] Projection problems In-Reply-To: <4D272810.6070901@uva.nl> References: <1294395961732-5898717.post@n2.nabble.com> <4D272810.6070901@uva.nl> Message-ID: <4D276C41.6030001@gatewaygeomatics.com> On 11-01-07 10:49 AM, Jan Hartmann wrote: > > Yes, the transformation to WGS84 for the Dutch coordinate system > ("Amersfoort", "Rijksdriehoeksnet) is still *not* part of the latest > PROJ4 release (4.7.0, downloaded yesterday). I have requested many changes to the EPSG 'geodetic dataset' throughout the years, so maybe I can give you some advice: - enter your change request through a form on the EPSG site: http://www.epsg.org/Comms/Comment.asp - it may take upto one year for the change to be accepted by the EPSG group and included in the next EPSG geodetic dataset - you will get an email from the EPSG group once that happens - however it will take much longer for software that uses EPSG codes to update their own releases with those new EPSG codes (this includes PROJ, QGIS, MS4W, etc.) Hope that sheds some light on the issue for you. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From warmerdam at pobox.com Fri Jan 7 11:57:45 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 07 Jan 2011 14:57:45 -0500 Subject: [mapserver-users] Projection problems In-Reply-To: <4D276C41.6030001@gatewaygeomatics.com> References: <1294395961732-5898717.post@n2.nabble.com> <4D272810.6070901@uva.nl> <4D276C41.6030001@gatewaygeomatics.com> Message-ID: <4D277039.1080402@pobox.com> On 11-01-07 02:40 PM, Jeff McKenna wrote: > On 11-01-07 10:49 AM, Jan Hartmann wrote: >> >> Yes, the transformation to WGS84 for the Dutch coordinate system >> ("Amersfoort", "Rijksdriehoeksnet) is still *not* part of the latest >> PROJ4 release (4.7.0, downloaded yesterday). > > I have requested many changes to the EPSG 'geodetic dataset' throughout the > years, so maybe I can give you some advice: > > - enter your change request through a form on the EPSG site: > http://www.epsg.org/Comms/Comment.asp > - it may take upto one year for the change to be accepted by the EPSG group and > included in the next EPSG geodetic dataset > - you will get an email from the EPSG group once that happens > - however it will take much longer for software that uses EPSG codes to update > their own releases with those new EPSG codes (this includes PROJ, QGIS, MS4W, > etc.) > > Hope that sheds some light on the issue for you. Jeff, I think Jan's concern is that the transformation does exist in EPSG but is not reflected in the last PROJ.4 release. I believe this is fixed in CVS and I really just need to push out a new PROJ.4 release reasonably soon. Jan - I'd appreciate it if you could confirm that: http://svn.osgeo.org/metacrs/proj/trunk/proj/nad/epsg has the right 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 Phil.Anzel at ftc.usda.gov Fri Jan 7 13:06:55 2011 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - Fort Collins, CO) Date: Fri, 7 Jan 2011 15:06:55 -0600 Subject: [mapserver-users] MapServer distro site down at http://vbkto.dyndns.org/sdk ? Message-ID: <809503517A1B0347AF9A161507E6B29921325E26D4@mokansasc7s304.agent.one.usda.gov> Hi, All, The MapServer distro site at http://vbkto.dyndns.org/sdk may need a bit of attention; all I get is a page with an amber background (full, yet incomplete, HTML shown below). Problem observed 19:00 UTC 7 Jan 2010. Thanks, - Phil Anzel NRCS/USDA/ITC/Vistronix Inc Web Soil Survey Developer ...start of HTML... Advisory Page From szekerest at gmail.com Fri Jan 7 14:53:57 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 7 Jan 2011 23:53:57 +0100 Subject: [mapserver-users] MapServer distro site down at http://vbkto.dyndns.org/sdk ? In-Reply-To: <809503517A1B0347AF9A161507E6B29921325E26D4@mokansasc7s304.agent.one.usda.gov> References: <809503517A1B0347AF9A161507E6B29921325E26D4@mokansasc7s304.agent.one.usda.gov> Message-ID: Works for me... Best regards, Tamas 2011/1/7 Anzel, Phil - Fort Collins, CO > Hi, All, > > The MapServer distro site at http://vbkto.dyndns.org/sdk may need a bit of > attention; all I get is a page with an amber background (full, yet > incomplete, HTML shown below). Problem observed 19:00 UTC 7 Jan 2010. > > Thanks, > > - Phil Anzel > NRCS/USDA/ITC/Vistronix Inc Web Soil Survey Developer > > ...start of HTML... > xmlns:o="urn:schemas-microsoft-com:office:office" > xmlns:w="urn:schemas-microsoft-com:office:word" > xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" > xmlns="http://www.w3.org/TR/REC-html40"> > > > > > > > > > > > Advisory Page > > > > > > > > > > >> PROJ4 release (4.7.0, downloaded yesterday). >> >> I have requested many changes to the EPSG 'geodetic dataset' >> throughout the >> years, so maybe I can give you some advice: >> >> - enter your change request through a form on the EPSG site: >> http://www.epsg.org/Comms/Comment.asp >> - it may take upto one year for the change to be accepted by the EPSG >> group and >> included in the next EPSG geodetic dataset >> - you will get an email from the EPSG group once that happens >> - however it will take much longer for software that uses EPSG codes >> to update >> their own releases with those new EPSG codes (this includes PROJ, >> QGIS, MS4W, >> etc.) >> >> Hope that sheds some light on the issue for you. > > Jeff, > > I think Jan's concern is that the transformation does exist in EPSG but > is not reflected in the last PROJ.4 release. I believe this is fixed > in CVS and I really just need to push out a new PROJ.4 release reasonably > soon. > > Jan - I'd appreciate it if you could confirm that: > > http://svn.osgeo.org/metacrs/proj/trunk/proj/nad/epsg > > has the right value. > > Best regards, Hi Jeff, Frank, Yes that was indeed the issue. The problem is that the EPSG database *does* have the WGS84 transform for EPSG 28992, but gives a whopping six possibilities, without offering a good explanation what they amount to. That's why the automatic retrieval by PROJ of those parameters from the EPSG database doesn't work too well for this EPSG number. The parameters in SVN are not the most recent ones: see http://trac.osgeo.org/geotiff/ticket/22 for the right numbers, and the attached spreadsheet for the way they were computed. Both series result in almost the same ground positions (differences of a few centimeters), so it doesn't matter much in practice whether you adapt SVN by hand or not. Of course it would be better to have just one set of parameters available everywhere. I have always wondered why there is nowhere an official Dutch site were this matter is kept up to date in an easy-to-understand way. To translate Milo's Dutch proverb, everyone seems to fish in his own pond over here. By the way, I have the impression that the method by which the WGS84 shifts are retrieved from the EPSG database and put into PROJ is not 100% robust, so perhaps this could be looked into too. I hadn't realised that PROJ is so stable by now that new releases take so long to appear. Sorry if I sounded a bit grumpy; to quote Milo again, this problem has plagued Open Source GIS people in Holland for years. Thanks, Jan From jmckenna at gatewaygeomatics.com Sat Jan 8 04:01:39 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sat, 08 Jan 2011 08:01:39 -0400 Subject: [mapserver-users] Projection problems In-Reply-To: <4D284D43.7040902@uva.nl> References: <1294395961732-5898717.post@n2.nabble.com> <4D272810.6070901@uva.nl> <4D276C41.6030001@gatewaygeomatics.com> <4D277039.1080402@pobox.com> <4D284D43.7040902@uva.nl> Message-ID: <4D285223.1050200@gatewaygeomatics.com> On 11-01-08 7:40 AM, Jan Hartmann wrote: > this problem has plagued Open Source GIS people in Holland for years. > I still think someone from your country should 'champion' this and contact the EPSG group through that form I provided you. That same 'champion' could take those clarifications and/or changes from the EPSG group's response and help make sure they are included in a future proj.4 release. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From mgebreab at maxgeo.com Sun Jan 9 16:43:58 2011 From: mgebreab at maxgeo.com (Milena) Date: Sun, 9 Jan 2011 16:43:58 -0800 (PST) Subject: [mapserver-users] SQL Server 2008 layer only partially displaying Message-ID: <1294620238956-5905621.post@n2.nabble.com> Hi all, I have been trying to display a WMS layer from a SQL server database. Now, I managed successfully to connect to the database and some part of the layer appeared when Getmap requested but not all the polygons I should be seeing. The strange thing is every time I refresh the request different parts of the layer appear. Does anybody know why this might be? Also if I remove the Class from the Layer, nothing is displayed. Map detail below Thanks! Milen MAP NAME Spatial IMAGECOLOR 0 255 255 SIZE 600 800 IMAGETYPE png PROJECTION "init=epsg:4326" #latlon on WGS84 END EXTENT 100.000000 -35.000000 129.000000 -11.000000 # lon/lat extents of WA tenements WEB IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "map" "C:/ms4w/apps/Spatial/config.map" "ows_schemas_location" "http://schemas.opengeospatial.net" "ows_title" "Sample WMS" "ows_abstract" "Sample WMS of Spatial" "ows_keywordlist" "Spatial,WMS,Maxwell" "ows_onlineresource" "http://localhost:8080//spatial?map=C:/ms4w/apps/Spatial/config.map&" "wms_srs" "EPSG:4326" #latlon "wms_feature_info_mime_type" "text/plain" "wms_feature_info_mime_type" "text/html" "wms_server_version" "1.1.1" "wms_formatlist" "image/png,image/gif,image/jpeg" "wms_format" "image/gif" END #metadata END #web LAYER NAME "tenements" CONNECTIONTYPE PLUGIN PLUGIN "C:/ms4w/Apache/specialplugins/msplugin_mssql2008.dll" CONNECTION "Server=.\SQL_2008;Database=LeaseCDemo2008GIS;Integrated Security=true" DATA "geom from dbo.WA_Tenements USING UNIQUE ID USING SRID=0" TYPE POLYGON STATUS DEFAULT METADATA "ows_title" "tenements" END #metadata PROJECTION "init=epsg:4326" END EXTENT 100.000000 -35.000000 129.0000000 -11.00000000 TOLERANCE 0 MAXSCALE 100000000 CLASS NAME "tenements" STYLE COLOR 255 235 190 OUTLINECOLOR 0 0 0 END #style END #class END #Layer End #Map -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/SQL-Server-2008-layer-only-partially-displaying-tp5905621p5905621.html Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at gmail.com Sun Jan 9 23:06:28 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Mon, 10 Jan 2011 08:06:28 +0100 Subject: [mapserver-users] SQL Server 2008 layer only partially displaying In-Reply-To: <1294620238956-5905621.post@n2.nabble.com> References: <1294620238956-5905621.post@n2.nabble.com> Message-ID: Milena, Could you inspect in the SQL Server Profiler what kind of SQL requests are happening in the subsequent requests? Best regards, Tamas 2011/1/10 Milena > > Hi all, > > I have been trying to display a WMS layer from a SQL server database. Now, > I > managed successfully to connect to the database and some part of the layer > appeared when Getmap requested but not all the polygons I should be seeing. > The strange thing is every time I refresh the request different parts of > the > layer appear. Does anybody know why this might be? Also if I remove the > Class from the Layer, nothing is displayed. Map detail below > > Thanks! > > Milen > > MAP > NAME Spatial > IMAGECOLOR 0 255 255 > SIZE 600 800 > IMAGETYPE png > PROJECTION > "init=epsg:4326" #latlon on WGS84 > END > EXTENT 100.000000 -35.000000 129.000000 -11.000000 > # lon/lat extents of WA tenements > WEB > IMAGEPATH "/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > METADATA > "map" "C:/ms4w/apps/Spatial/config.map" > "ows_schemas_location" "http://schemas.opengeospatial.net" > "ows_title" "Sample WMS" > "ows_abstract" "Sample WMS of Spatial" > "ows_keywordlist" "Spatial,WMS,Maxwell" > "ows_onlineresource" > "http://localhost:8080//spatial?map=C:/ms4w/apps/Spatial/config.map&" > "wms_srs" "EPSG:4326" #latlon > "wms_feature_info_mime_type" "text/plain" > "wms_feature_info_mime_type" "text/html" > "wms_server_version" "1.1.1" > "wms_formatlist" "image/png,image/gif,image/jpeg" > "wms_format" "image/gif" > END #metadata > END #web > LAYER > NAME "tenements" > CONNECTIONTYPE PLUGIN > PLUGIN "C:/ms4w/Apache/specialplugins/msplugin_mssql2008.dll" > > CONNECTION "Server=.\SQL_2008;Database=LeaseCDemo2008GIS;Integrated > Security=true" > > DATA "geom from dbo.WA_Tenements USING UNIQUE ID USING SRID=0" > TYPE POLYGON > > STATUS DEFAULT > > METADATA > "ows_title" "tenements" > END #metadata > PROJECTION > "init=epsg:4326" > END > EXTENT 100.000000 -35.000000 129.0000000 -11.00000000 > TOLERANCE 0 > MAXSCALE 100000000 > CLASS > NAME "tenements" > STYLE > COLOR 255 235 190 > OUTLINECOLOR 0 0 0 > END #style > > END #class > END #Layer > End #Map > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/SQL-Server-2008-layer-only-partially-displaying-tp5905621p5905621.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 Clemens.Rudert at bl.ch Mon Jan 10 04:45:25 2011 From: Clemens.Rudert at bl.ch (Rudert, Clemens VGD) Date: Mon, 10 Jan 2011 13:45:25 +0100 Subject: [mapserver-users] Labels are cut at the borders of the tiles Message-ID: <8C0FAF3CD1C94146A5C6E6BC68C5639027D1D832F8@faimbs01.bl.ch> Hello I have a problem with a annotation. I tried to write some numbers at specified points. I use OpenLayers for rendering. Now when i try to render the map i get the lables but at the border oft the tiles the lables are cut. Below you see the layer definition in my map file: LAYER #Grundst?cksnummer # Connect to a remote spatial database CONNECTIONTYPE X CONNECTION X PROCESSING X DATA X PROJECTION "init=epsg:21781" # EPSG Schweiz! END #projection DEBUG ON NAME 'grundstuecknummer' GROUP 'grundkarte_farbig' TYPE ANNOTATION STATUS ON MAXSCALE 5000 SYMBOLSCALEDENOM 3000 LABELITEM "nummer_m_deko" CLASS NAME "Grundst?cksnummern" LABEL TYPE TRUETYPE FONT CadastraIt COLOR 0 0 0 SIZE [groesse] MAXSIZE 20 ANGLE [ori] FORCE true PARTIALS false POSITION cc END #label END #class END #layer How can i fix the problem of cuting. I dont understand where the problem can be. Because i set the PARTIALS to false. I hope someone can help me. (sorry for my horrible english) kindly regards Clemens Rudert -------------- next part -------------- An HTML attachment was scrubbed... URL: From niccolo at rigacci.org Mon Jan 10 06:00:25 2011 From: niccolo at rigacci.org (Niccolo Rigacci) Date: Mon, 10 Jan 2011 15:00:25 +0100 Subject: [mapserver-users] Labels are cut at the borders of the tiles In-Reply-To: <8C0FAF3CD1C94146A5C6E6BC68C5639027D1D832F8@faimbs01.bl.ch> References: <8C0FAF3CD1C94146A5C6E6BC68C5639027D1D832F8@faimbs01.bl.ch> Message-ID: <20110110140025.GA16006@rigacci.org> On Mon, Jan 10, 2011 at 01:45:25PM +0100, Rudert, Clemens VGD wrote: > > I have a problem with a annotation. I tried to write some > numbers at specified points. I use OpenLayers for rendering. > Now when i try to render the map i get the lables but at the > border oft the tiles the lables are cut. Below you see the > layer definition in my map file: > > ... > FORCE true > PARTIALS false > ... > The setting MAP.LAYER.CLASS.LABEL.FORCE true implies MAP.LAYER.CLASS.LABEL.PARTIALS is set to true too. As far I know there is not a real solution to the label problem when using a tiled map, as with OpenLayers. -- Niccolo Rigacci Firenze - Italy From jmckenna at gatewaygeomatics.com Mon Jan 10 06:43:22 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 10 Jan 2011 10:43:22 -0400 Subject: [mapserver-users] Labels are cut at the borders of the tiles In-Reply-To: <8C0FAF3CD1C94146A5C6E6BC68C5639027D1D832F8@faimbs01.bl.ch> References: <8C0FAF3CD1C94146A5C6E6BC68C5639027D1D832F8@faimbs01.bl.ch> Message-ID: <4D2B1B0A.2040305@gatewaygeomatics.com> Hello, I believe you require a PROCESSING parameter in your LAYER, such as: PROCESSING "LABEL_NO_CLIP=1" As this is a common question you can find lots of responses in the mailing list archives such as: http://osgeo-org.1803224.n2.nabble.com/Point-annotation-labels-and-tiles-td5419368.html You might want to search there also for a better response (search the list at: http://osgeo-org.1803224.n2.nabble.com/MapServer-f1969210.html). -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-01-10 8:45 AM, Rudert, Clemens VGD wrote: > Hello > I have a problem with a annotation. I tried to write some numbers at > specified points. I use OpenLayers for rendering. Now when i try to > render the map i get the lables but at the border oft the tiles the > lables are cut. Below you see the layer definition in my map file: > LAYER #Grundst?cksnummer > # Connect to a remote spatial database > CONNECTIONTYPE X > CONNECTION X > PROCESSING X > DATA X > > PROJECTION > "init=epsg:21781" # EPSG Schweiz! > END #projection > > DEBUG ON > NAME 'grundstuecknummer' > GROUP 'grundkarte_farbig' > TYPE ANNOTATION > STATUS ON > MAXSCALE 5000 > SYMBOLSCALEDENOM 3000 > LABELITEM "nummer_m_deko" > > CLASS > NAME "Grundst?cksnummern" > LABEL > TYPE TRUETYPE > FONT CadastraIt > COLOR 0 0 0 > SIZE [groesse] > MAXSIZE 20 > ANGLE [ori] > FORCE true > PARTIALS false > POSITION cc > END #label > END #class > > END #layer > How can i fix the problem of cuting. I dont understand where the problem > can be. Because i set the PARTIALS to false. > I hope someone can help me. (sorry for my horrible english) > > kindly regards > > Clemens Rudert > From thomas.bonfort at gmail.com Mon Jan 10 07:07:18 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 10 Jan 2011 16:07:18 +0100 Subject: [mapserver-users] Labels are cut at the borders of the tiles In-Reply-To: <4D2B1B0A.2040305@gatewaygeomatics.com> References: <8C0FAF3CD1C94146A5C6E6BC68C5639027D1D832F8@faimbs01.bl.ch> <4D2B1B0A.2040305@gatewaygeomatics.com> Message-ID: PARTIALS FALSE FORCE FALSE is a strict minimum if you use a tiling client. PROCESSING "LABEL_NO_CLIP=1" isn't obligatory, but will prevent labels being repeated on adjacent tiles. if you are using the openlayers 'gutter' parameter, or the tilecache 'metabuffer' option, you MUST also set WEB METADATA labelcache_map_edge_buffer "-10" END END at the layer level, where the "10" in "-10" is the value of your gutter/metabuffer parameter if this setup works for you, why not create an entry in the mapserver wiki [1]? ;) regards, thomas [1] http://trac.osgeo.org/mapserver/wiki/FAQ On Mon, Jan 10, 2011 at 15:43, Jeff McKenna wrote: > Hello, > > I believe you require a PROCESSING parameter in your LAYER, such as: > > ? PROCESSING "LABEL_NO_CLIP=1" > > As this is a common question you can find lots of responses in the mailing > list archives such as: > http://osgeo-org.1803224.n2.nabble.com/Point-annotation-labels-and-tiles-td5419368.html > ?You might want to search there also for a better response (search the list > at: http://osgeo-org.1803224.n2.nabble.com/MapServer-f1969210.html). > > -jeff > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > > On 11-01-10 8:45 AM, Rudert, Clemens VGD wrote: >> >> Hello >> I have a problem with a annotation. I tried to write some numbers at >> specified points. I use OpenLayers for rendering. Now when i try to >> render the map i get the lables but at the border oft the tiles the >> lables are cut. Below you see the layer definition in my map file: >> LAYER #Grundst?cksnummer >> # Connect to a remote spatial database >> CONNECTIONTYPE X >> CONNECTION X >> PROCESSING X >> DATA X >> >> PROJECTION >> "init=epsg:21781" # EPSG Schweiz! >> END #projection >> >> DEBUG ON >> NAME 'grundstuecknummer' >> GROUP 'grundkarte_farbig' >> TYPE ANNOTATION >> STATUS ON >> MAXSCALE 5000 >> SYMBOLSCALEDENOM 3000 >> LABELITEM "nummer_m_deko" >> >> CLASS >> NAME "Grundst?cksnummern" >> LABEL >> TYPE TRUETYPE >> FONT CadastraIt >> COLOR 0 0 0 >> SIZE [groesse] >> MAXSIZE 20 >> ANGLE [ori] >> FORCE true >> PARTIALS false >> POSITION cc >> END #label >> END #class >> >> END #layer >> How can i fix the problem of cuting. I dont understand where the problem >> can be. Because i set the PARTIALS to false. >> I hope someone can help me. (sorry for my horrible english) >> >> kindly regards >> >> Clemens Rudert >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From niccolo at rigacci.org Mon Jan 10 07:34:43 2011 From: niccolo at rigacci.org (Niccolo Rigacci) Date: Mon, 10 Jan 2011 16:34:43 +0100 Subject: [mapserver-users] Labels are cut at the borders of the tiles In-Reply-To: <4D2B1B0A.2040305@gatewaygeomatics.com> References: <8C0FAF3CD1C94146A5C6E6BC68C5639027D1D832F8@faimbs01.bl.ch> <4D2B1B0A.2040305@gatewaygeomatics.com> Message-ID: <20110110153443.GB20807@rigacci.org> On Mon, Jan 10, 2011 at 10:43:22AM -0400, Jeff McKenna wrote: > > PROCESSING "LABEL_NO_CLIP=1" Please, do you know if that directive is documented somewhere? I searched www.mapserver.org (with the Quick search box and with Google), but nothing is found. -- Niccolo Rigacci Firenze - Italy From thomas.bonfort at gmail.com Mon Jan 10 07:46:51 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 10 Jan 2011 16:46:51 +0100 Subject: [mapserver-users] Labels are cut at the borders of the tiles In-Reply-To: <20110110153443.GB20807@rigacci.org> References: <8C0FAF3CD1C94146A5C6E6BC68C5639027D1D832F8@faimbs01.bl.ch> <4D2B1B0A.2040305@gatewaygeomatics.com> <20110110153443.GB20807@rigacci.org> Message-ID: it does not seem to be documented. when set to "ON", what happens is that labels are fixed to a geographical location on the feature, instead of being adjusted to fit in the pixel range of the created map. this is essentially used for tiling, as in that case each feature will be labeled exactly once, instead of once per tile. -- thomas On Mon, Jan 10, 2011 at 16:34, Niccolo Rigacci wrote: > On Mon, Jan 10, 2011 at 10:43:22AM -0400, Jeff McKenna wrote: >> >> ? ?PROCESSING "LABEL_NO_CLIP=1" > > Please, do you know if that directive is documented somewhere? > > I searched www.mapserver.org (with the Quick search box and with > Google), but nothing is found. > > -- > Niccolo Rigacci > Firenze - Italy > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From mitseagrant at gmail.com Mon Jan 10 08:38:09 2011 From: mitseagrant at gmail.com (MIT Sea Grant) Date: Mon, 10 Jan 2011 11:38:09 -0500 Subject: [mapserver-users] make error: /usr/local/lib/libgdal.so: undefined reference to `GEOSFree' In-Reply-To: <000601cbadb8$0de54cb0$29afe610$@cl> References: <00ea01cba2a6$8f61e720$ae25b560$@cl> <000601cbadb8$0de54cb0$29afe610$@cl> Message-ID: Hi, Thanks! I read too quickly: I saw "mapserver" but my mind retained "gdal." In any case, all seems to be good. I re-built geos and gdal, and then built mapserver successfully. Thanks again, Greg P.S. - Apologies to the list if this comes as a separate thread. Gmail seems to not reply-to correctly. On Thu, Jan 6, 2011 at 10:40 AM, Patricio Cifuentes Ithal wrote: > Hi!, > Recompilling gdal and all libraries necesaries for mapserver with > ./configure --with-libdir=/usr/lib64 > > Patricio Cifuentes Ithal > Ingeniero en Inform?tica > Unidad de Inform?tica > Fono : 02 - 334 73 69 > www.siigsa.cl > > -----Mensaje original----- > De: MIT Sea Grant [mailto:mitseagrant at gmail.com] > Enviado el: mi?rcoles, 05 de enero de 2011 18:46 > Para: pcifuentes at siigsa.cl > CC: mapserver-users at lists.osgeo.org > Asunto: Re: [mapserver-users] make error: /usr/local/lib/libgdal.so: > undefined reference to `GEOSFree' > > Thank you, and apologies for the delay in response. > > Unfortunately, gdal is giving the same undefined reference error. Using: > > ./configure --libdir=/usr/lib64 --with-ogr --with-png=internal > --with-jpeg=internal --with-geotiff=internal --with-libtiff=internal > --with-gif=internal --with-libz=internal > --with-curl=/usr/bin/curl-config > --with-geos=/usr/local/bin/geos-config --with-pg=/usr/bin/pg_config > --with-expat=/usr/lib64 && make && make install > > I get: > > ... > libtool: link: g++ .libs/gdalinfo.o -o .libs/gdalinfo > /usr/local/src/20101216-builds/gdal-1.7.3/.libs/libgdal.so ?-Wl,-rpath > -Wl,/usr/lib64 > /usr/local/src/20101216-builds/gdal-1.7.3/.libs/libgdal.so: undefined > reference to `GEOSFree' > collect2: ld returned 1 exit status > make[1]: *** [gdalinfo] Error 1 > make[1]: Leaving directory `/usr/local/src/20101216-builds/gdal-1.7.3/apps' > make: *** [apps-target] Error 2 > > So then I re-configure, excluding --with-libdir and it builds fine, > but MapServer still gives the error. > > Not sure what next. Any further advice appreciated... > > On Thu, Dec 23, 2010 at 8:37 AM, Patricio Cifuentes Ithal > wrote: >> Re-compiling gdal... >> >> ./configure --libdir=/usr/lib64/ >> >> And all the libraries necesarie recompiling >> >> Patricio Cifuentes Ithal >> Ingeniero en Inform?tica >> Unidad de Inform?tica >> Fono : 02 - 334 73 69 >> www.siigsa.cl >> >> -----Mensaje original----- >> De: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de MIT Sea > Grant >> Enviado el: mi?rcoles, 22 de diciembre de 2010 17:17 >> Para: mapserver-users at lists.osgeo.org >> Asunto: [mapserver-users] make error: /usr/local/lib/libgdal.so: undefined >> reference to `GEOSFree' >> >> Hello, >> >> We are getting the following Make error when trying to build on Red >> Hat Enterprise Linux 5 (x86_64): >> /usr/local/lib/libgdal.so: undefined reference to `GEOSFree' >> collect2: ld returned 1 exit status >> make: *** [shp2img] Error 1 >> >> We think we have everything linked correctly, but the problem >> persists. Any help appreciated. >> >> Thanks, >> >> Greg >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> -- >> Este mensaje ha sido analizado por MailScanner >> en busca de virus y otros contenidos peligrosos, >> y se considera que est? limpio. >> >> >> -- >> Este mensaje ha sido analizado por MailScanner >> en busca de virus y otros contenidos peligrosos, >> y se considera que est? limpio. >> >> > > From chris.green at ibstv.co.uk Mon Jan 10 10:34:02 2011 From: chris.green at ibstv.co.uk (Chris Green) Date: Mon, 10 Jan 2011 18:34:02 -0000 Subject: [mapserver-users] FW: FGS Linux - PHP question Message-ID: <015201cbb0f4$f4bd0c10$de372430$@green@ibstv.co.uk> Dear Mapserver users, I sent the following to the foss-gis forum this morning, but got no response. I'm wondering if any of you Mapserver experts can help me out with this problem? Earlier today I tried to re-install PHP, leaving the other FGS components intact. I did this after unzipping PHP 5.2.17 and using the command: # ./configure --with-apxs=/opt/fgs/www/bin/apxs --with-mysql However I get the error message: "sorry I was unable to successfully run APXS. Possible reasons: 1. Perl is not installed; 2. Apache was not compiled with DSO support; 3. 'apxs' is not in your path" So I failed to upgrade PHP (for mysql support), and I can't see why. Nor I can find out if re-installing the whole FGS package gives me the option of enabling mysql on the PHP component. As you may realise I am still learning about Linux! Can anyone help? In the end all I need is what I have already (FGS 5.4.0) but with PHP enabled for mysql. Chris From: Chris Green [mailto:chris.green at ibstv.co.uk] Sent: 10 January 2011 06:38 To: 'foss-gis-suite at lists.maptools.org' Subject: FGS Linux - PHP question Hi list I installed FGS Linux installer version 5.4.0 beta 4 in June 2010. It has been working fine since then but now I am in the process of upgrading my web site to incorporate a MySQL database and I encountered a PHP problem that I am not sure of the best way to fix. The PHP version that came with FGS is 5.2.5 and by using info.php I can see that it is not configured to support MySQL. As I see it my choices are: 1. Upgrade the existing PHP 5.2.5 to incorporate MySQL support 2. Re-install FGS using the current version, which I see incorporates PHP base 5.2.9 (I assume this is configured to support MySQL???) Maybe there are other options, but being fairly inexperienced in Linux I am looking for the easiest method with least disruption to the existing website. Can anyone offer me any advice? Chris Green -------------- next part -------------- An HTML attachment was scrubbed... URL: From wimvanbelle at gmail.com Tue Jan 11 00:29:40 2011 From: wimvanbelle at gmail.com (Wim Vanbelle) Date: Tue, 11 Jan 2011 09:29:40 +0100 Subject: [mapserver-users] Labels are cut at the borders of the tiles In-Reply-To: References: <8C0FAF3CD1C94146A5C6E6BC68C5639027D1D832F8@faimbs01.bl.ch> <4D2B1B0A.2040305@gatewaygeomatics.com> <20110110153443.GB20807@rigacci.org> Message-ID: Thanks for clearing that out Thomas. We were having similar issues here. Is there a similar setting for linestring drawing? Eg when using pixel offset the lines get cut off at the end of the tiles. This is resolved using the gutter parameter in openlayers as you have mentioned, but is still a problem for google and bing maps. thanks. On 10 January 2011 16:46, thomas bonfort wrote: > it does not seem to be documented. > > when set to "ON", what happens is that labels are fixed to a > geographical location on the feature, instead of being adjusted to fit > in the pixel range of the created map. this is essentially used for > tiling, as in that case each feature will be labeled exactly once, > instead of once per tile. > > -- > thomas > > On Mon, Jan 10, 2011 at 16:34, Niccolo Rigacci > wrote: > > On Mon, Jan 10, 2011 at 10:43:22AM -0400, Jeff McKenna wrote: > >> > >> PROCESSING "LABEL_NO_CLIP=1" > > > > Please, do you know if that directive is documented somewhere? > > > > I searched www.mapserver.org (with the Quick search box and with > > Google), but nothing is found. > > > > -- > > Niccolo Rigacci > > Firenze - Italy > > _______________________________________________ > > 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 wimvanbelle at gmail.com Tue Jan 11 07:04:06 2011 From: wimvanbelle at gmail.com (Wim Vanbelle) Date: Tue, 11 Jan 2011 16:04:06 +0100 Subject: [mapserver-users] mapserver defunct Message-ID: Hi all, I'm getting a lot of 27098 x 20 0 0 0 0 Z 1 0.0 0:00.03 mapserv 27104 x 20 0 0 0 0 Z 1 0.0 0:00.03 mapserv while load testing mapserver. Is there any way I can go about checking out why this is happening? Especially when doing concurrency tests it seems to go sideways. Currently i'm using : MapServer version 5.6.5 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 using FastCGI/Lighty. Do note that the mapfile itself seems to be fine, since it does render content when i'm the single user using it. Thanks for your expert insight :D. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mitchelljj98 at gmail.com Tue Jan 11 07:15:37 2011 From: mitchelljj98 at gmail.com (John Mitchell) Date: Tue, 11 Jan 2011 10:15:37 -0500 Subject: [mapserver-users] How would I modify a map file so that when a getcapabilities is run it outputs as tiled layers (wms-t) including listing resolutions listed below: Message-ID: How would I modify a map file so that when a getcapabilities is run it outputs as tiled layers (wms-t) including listing resolutions listed below: 0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.001373291015625,6.866455078125E-4,3.4332275390625E-4,1.71661376953125E-4,8.58306884765625E-5,4.291534423828125E-5,2.1457672119140625E-5,1.0728836059570312E-5,5.364418029785156E-6,2.682209014892578E-6,1.341104507446289E-6,6.705522537231445E-7,3.3527612686157227E-7 Thanks, John -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Tue Jan 11 08:05:52 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 11 Jan 2011 11:05:52 -0500 Subject: [mapserver-users] How would I modify a map file so that when a getcapabilities is run it outputs as tiled layers (wms-t) including listing resolutions listed below: In-Reply-To: References: Message-ID: <4D2C7FE0.6030105@dmsolutions.ca> Hi, Not sure I understand well the question: Mapserver does not support tiled layers by itself. Usually when doing tiles, you will use tilecache servers (tilecache.org, or mode-geocache http://code.google.com/p/mod-geocache/ ) that can be set up to possibly use MapServer as rendering engine . Wehn you mention getcapabilities, are referring to the getcapabilities support in the WMTS (web map tiling service from OGC)? If that is the case, I would recommend again to check the tilecache libraries mentioned above. If this does not reflect what you intend to accomplish, please give more details on what you expect from MapServer. best regards, On 11/01/2011 10:15 AM, John Mitchell wrote: > How would I modify a map file so that when a getcapabilities is run it > outputs as tiled layers (wms-t) including listing resolutions listed > below: > > > > 0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.001373291015625,6.866455078125E-4,3.4332275390625E-4,1.71661376953125E-4,8.58306884765625E-5,4.291534423828125E-5,2.1457672119140625E-5,1.0728836059570312E-5,5.364418029785156E-6,2.682209014892578E-6,1.341104507446289E-6,6.705522537231445E-7,3.3527612686157227E-7 > > > > Thanks, > > John > > -- > John J. Mitchell > > > _______________________________________________ > 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 Jukka.Rahkonen at mmmtike.fi Tue Jan 11 08:42:52 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 11 Jan 2011 18:42:52 +0200 Subject: [mapserver-users] How would I modify a map file so that whena getcapabilities is run it outputs as tiled layers (wms-t) includinglisting resolutions listed below: References: <4D2C7FE0.6030105@dmsolutions.ca> Message-ID: Hi, Just guessing, but sending resolutions with GetCapabilities could make sense for example with a client like uDig which can cache WMS-C tiles locally. The WMS calls uDig sends in this case are just plain WMS requests and Mapserver would handle them nicely. Perhaps John would like to do something similar. One alternatively might be to use a local, edited GetCapabilities document instead of letting Mapserver to create it on-the-fly. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Yewondwossen Assefa L?hetetty: ti 11.1.2011 18:05 Vastaanottaja: John Mitchell Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] How would I modify a map file so that whena getcapabilities is run it outputs as tiled layers (wms-t) includinglisting resolutions listed below: Hi, Not sure I understand well the question: Mapserver does not support tiled layers by itself. Usually when doing tiles, you will use tilecache servers (tilecache.org, or mode-geocache http://code.google.com/p/mod-geocache/ ) that can be set up to possibly use MapServer as rendering engine . Wehn you mention getcapabilities, are referring to the getcapabilities support in the WMTS (web map tiling service from OGC)? If that is the case, I would recommend again to check the tilecache libraries mentioned above. If this does not reflect what you intend to accomplish, please give more details on what you expect from MapServer. best regards, On 11/01/2011 10:15 AM, John Mitchell wrote: > How would I modify a map file so that when a getcapabilities is run it > outputs as tiled layers (wms-t) including listing resolutions listed > below: > > > > 0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.001373291015625,6.866455078125E-4,3.4332275390625E-4,1.71661376953125E-4,8.58306884765625E-5,4.291534423828125E-5,2.1457672119140625E-5,1.0728836059570312E-5,5.364418029785156E-6,2.682209014892578E-6,1.341104507446289E-6,6.705522537231445E-7,3.3527612686157227E-7 > > > > Thanks, > > John > > -- > John J. Mitchell > > > _______________________________________________ > 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 ---------------------------------------------------------------- From Steve.Toutant at inspq.qc.ca Tue Jan 11 09:24:19 2011 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Tue, 11 Jan 2011 12:24:19 -0500 Subject: [mapserver-users] keyimage size and url Message-ID: Hi, In my mapfile I have a layer defined as a external WMS layer (CONNECTIONTYPE WMS, .....) I use KEYIMAGE to set the icon in my geoext legend. For a layer the legend is complex and the icon is very small. is it possible to change the size of a KEYIMAGE? Also, is it possible to use a getLegendGraphic request to get the legend icon instead of using KEYIMAGE (it seems that we cannot provide a url with KEYIMAGE)? Does KEYIMAGE is the appropriate solution? thanks for your help, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Tue Jan 11 10:05:23 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 11 Jan 2011 13:05:23 -0500 Subject: [mapserver-users] mapserver defunct In-Reply-To: References: Message-ID: <4D2C9BE3.1000508@swoodbridge.com> Here is an explanation of defunct processes: http://www.webmasterworld.com/forum40/1032.htm I'm sure there are others. So since you are running fastcgi, it is the responsibility of the fastcgi parent process to clean up dead child processes. It is likely that it is busy because you are doing load testing or there is some subtle issue that is occurring. If you are getting good responses from mapserver, you probably do not need to worry about it unless you are getting tons of them. If you are using apache, I believe there is a parameter that you can set for fastcgi processes which will let them die after N requests. This should clean those up and apache will spawn a new process if needed to replace the that died. -Steve W On 1/11/2011 10:04 AM, Wim Vanbelle wrote: > Hi all, > > I'm getting a lot of > > 27098 x 20 0 0 0 0 Z 1 0.0 0:00.03 mapserv > 27104 x 20 0 0 0 0 Z 1 0.0 0:00.03 mapserv > > while load testing mapserver. Is there any way I can go about checking > out why this is happening? Especially when doing concurrency tests it > seems to go sideways. > > Currently i'm using : > > MapServer version 5.6.5 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 > > using FastCGI/Lighty. > > Do note that the mapfile itself seems to be fine, since it does render > content when i'm the single user using it. > > Thanks for your expert insight :D. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Toutant at inspq.qc.ca Tue Jan 11 10:54:15 2011 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Tue, 11 Jan 2011 13:54:15 -0500 Subject: [mapserver-users] opacity and mode=legend Message-ID: Hi, I'm using mode=legend and in my template I'm trying to get the OPACITY value in the layer definition. I tried this [if name=layer_opacity oper=isset]75[/if]; that returns nothing. is it possible to verify if the OPACITY is set for a layer? If yes, how to get the value? thanks Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From wimvanbelle at gmail.com Tue Jan 11 12:15:21 2011 From: wimvanbelle at gmail.com (Wim Vanbelle) Date: Tue, 11 Jan 2011 21:15:21 +0100 Subject: [mapserver-users] mapserver defunct In-Reply-To: <4D2C9BE3.1000508@swoodbridge.com> References: <4D2C9BE3.1000508@swoodbridge.com> Message-ID: Well, the problem is that the requests are not always served. During load testing, say about 10 concurrent requests I also load the map. But there are randomly tiles that are never loaded. I thought this would be related to the defunct processes, but that is not a certainty. My setup is lighttpd + fastcgi. To be honest I'm in a pretty bad situation now, considering we go live with this in 9 days. Not sure what else I can do honestly. On 11 January 2011 19:05, Stephen Woodbridge wrote: > Here is an explanation of defunct processes: > > http://www.webmasterworld.com/forum40/1032.htm > > I'm sure there are others. So since you are running fastcgi, it is the > responsibility of the fastcgi parent process to clean up dead child > processes. It is likely that it is busy because you are doing load testing > or there is some subtle issue that is occurring. If you are getting good > responses from mapserver, you probably do not need to worry about it unless > you are getting tons of them. > > If you are using apache, I believe there is a parameter that you can set > for fastcgi processes which will let them die after N requests. This should > clean those up and apache will spawn a new process if needed to replace the > that died. > > -Steve W > > > On 1/11/2011 10:04 AM, Wim Vanbelle wrote: > >> Hi all, >> >> I'm getting a lot of >> >> 27098 x 20 0 0 0 0 Z 1 0.0 0:00.03 mapserv >> 27104 x 20 0 0 0 0 Z 1 0.0 0:00.03 mapserv >> >> while load testing mapserver. Is there any way I can go about checking >> out why this is happening? Especially when doing concurrency tests it >> seems to go sideways. >> >> Currently i'm using : >> >> MapServer version 5.6.5 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 >> >> using FastCGI/Lighty. >> >> Do note that the mapfile itself seems to be fine, since it does render >> content when i'm the single user using it. >> >> Thanks for your expert insight :D. >> >> >> >> _______________________________________________ >> 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 qazi.iqbal at gmail.com Tue Jan 11 17:13:08 2011 From: qazi.iqbal at gmail.com (qazi iqbal) Date: Tue, 11 Jan 2011 20:13:08 -0500 Subject: [mapserver-users] ArcGIS Server layer Message-ID: I want to know if there is any way to add ArcGIS server layer to mapserver mapfile? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Robert.Sanson at asurequality.com Tue Jan 11 17:55:38 2011 From: Robert.Sanson at asurequality.com (Robert Sanson) Date: Wed, 12 Jan 2011 14:55:38 +1300 Subject: [mapserver-users] ArcGIS Server layer In-Reply-To: References: Message-ID: <4D2DC0E9.379F.0037.1@asurequality.com> Yes - two ways: 1. Connect to a WMS service on ArcGIS Server: LAYER NAME nz50ktm GROUP "Toposcans" TYPE RASTER STATUS ON CONNECTION "http://myserver/arcgis/services/mapservice_topography_raster/MapServer/WMSServer?" CONNECTIONTYPE WMS MAXSCALE 60000 MINSCALE 10000 METADATA # OGC:WMS specific tags "ows_title" "NZ 1:50k scale NZTM" "ows_abstract" "This layer came from the LINZ Topo50 series maps in NZTM" "WMS_FORMAT" "image/png" "wms_server_version" "1.1.1" "wms_opaque" "1" "wms_group_title" "Toposcans" "wms_resx" "4.233" "wms_resy" "4.233" "ows_extent" "1083997.88 4722000.45 2092003.23 6234002.12" "wms_srs" "EPSG:2193" "WMS_NAME" "3" "wms_exceptions_format" "application/vnd.ogc.se_xml" END END 2. Direct connection to the underlying ArcSDE database: LAYER NAME farm GROUP "CRS" TYPE POLYGON STATUS ON # actual data pointer CONNECTIONTYPE SDE CONNECTIONTYPE PLUGIN CONNECTION "server,port:nnnn,cadastre,user,passwd" DATA "CADASTRE.SDEADMIN.VW_FARM_PARCEL_SP,SHAPE" PLUGIN "c:/ms4w/apache/specialplugins/msplugin_sde_92.dll" CLASS NAME "Farm" STYLE WIDTH 3 OUTLINECOLOR 255 0 0 COLOR 255 140 0 END END #CLASS METADATA "ows_title" "Farm" "ows_abstract" "This shows land parcels linked to a given farm_id in NZTM" "ows_keywordlist" "AgriBase,LINZ,farm_id,PARCELS" "wms_opaque" "1" "wms_group_title" "CRS" "ows_extent" "773500 4615000 2602100 6324500" "wms_srs" "EPSG:2193" "wms_exceptions_format" "application/vnd.ogc.se_xml" END END Regards, Robert S >>> qazi iqbal 12/01/2011 2:13 p.m. >>> I want to know if there is any way to add ArcGIS server layer to mapserver mapfile? Click here ( https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg== ) to report this email as spam. This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system. This message has been scanned for Malware and Viruses by Websense Hosted Security. www.websense.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Tue Jan 11 21:18:20 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 12 Jan 2011 00:18:20 -0500 Subject: [mapserver-users] mapserver defunct In-Reply-To: References: <4D2C9BE3.1000508@swoodbridge.com> Message-ID: <4D2D399C.3070004@swoodbridge.com> Wim, I'm not sure I have any magic bullet for this problem, because I'm not sure what is causing it. If this was my project, I would tackle it like this: 1. alert people we have a problem that might impact the release date if you have not already done that 2. divide the problem to try and localize what is causing it a. do the tiles that fail, always fail? this points at a potential mapserver related issue as opposed to a load issue a.1 have you turned on mapfile DEBUG output? can you identify the layer a.2 you can get some maybe useful output from: strace /path/to/mapserv QUERY_STRING='' gdb /path/to/mapserv run QUERY_STRING='' where quit valgrind /path/to/mapserv QUERY_STRING='' a.3 you can run it with shp2img ... b. is it fastcgi, do you see the same problem if you build it as cgi c. is it lighttpd, do you see the same problem if you run it with apache fastcgi? what about apache cgi? Intermittent problems are the hardest to diagnose because they often are not reproducable in a debuging environment. We might be able to help you with more information. I have done a lot of load testing on various versions of mapserver and tiled all of US and Canada about 4-5 different times using mapserver. I have not used FastCGI/Lighty and lighttpd, so I'm not sure about what influence that might have on the problem. Hope this gives you some ideas. Best regards, -Steve W http://imaptools.com/ On 1/11/2011 3:15 PM, Wim Vanbelle wrote: > Well, the problem is that the requests are not always served. > > During load testing, say about 10 concurrent requests I also load the > map. But there are randomly tiles that are never loaded. I thought this > would be related to the defunct processes, but that is not a certainty. > > My setup is lighttpd + fastcgi. > To be honest I'm in a pretty bad situation now, considering we go live > with this in 9 days. > > Not sure what else I can do honestly. > > > On 11 January 2011 19:05, Stephen Woodbridge > wrote: > > Here is an explanation of defunct processes: > > http://www.webmasterworld.com/forum40/1032.htm > > I'm sure there are others. So since you are running fastcgi, it is > the responsibility of the fastcgi parent process to clean up dead > child processes. It is likely that it is busy because you are doing > load testing or there is some subtle issue that is occurring. If you > are getting good responses from mapserver, you probably do not need > to worry about it unless you are getting tons of them. > > If you are using apache, I believe there is a parameter that you can > set for fastcgi processes which will let them die after N requests. > This should clean those up and apache will spawn a new process if > needed to replace the that died. > > -Steve W > > > On 1/11/2011 10:04 AM, Wim Vanbelle wrote: > > Hi all, > > I'm getting a lot of > > 27098 x 20 0 0 0 0 Z 1 0.0 0:00.03 mapserv > > 27104 x 20 0 0 0 0 Z 1 0.0 0:00.03 mapserv > > > while load testing mapserver. Is there any way I can go about > checking > out why this is happening? Especially when doing concurrency > tests it > seems to go sideways. > > Currently i'm using : > > MapServer version 5.6.5 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 > > using FastCGI/Lighty. > > Do note that the mapfile itself seems to be fine, since it does > render > content when i'm the single user using it. > > Thanks for your expert insight :D. > > > > _______________________________________________ > 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 ralf.eckert at stadt-gummersbach.de Tue Jan 11 23:38:01 2011 From: ralf.eckert at stadt-gummersbach.de (Eckert, Ralf) Date: Wed, 12 Jan 2011 08:38:01 +0100 (CET) Subject: [mapserver-users] WARNING: Mandatory metadata '..._GROUP_TITLE' was missing in this Message-ID: <198052814.6561.1294817881447.JavaMail.open-xchange@ox6.gummersbach.gkd> Hi, The system was created for this website: http://trac.osgeo.org/mapserver/wiki/RenderingOsmData UMN MapServer as Server on Linux 5.6.5 is used incl PROJ4, PostgreSQL / PostGIS As the district map Cologne has been deposited. The self-test with the command: / path/to/mapserver/shp2img-m-o osm.map osm.png led to a usable image, s: http://gis.gummersbach.de/koeln.png The map file was installing itself, and OSM supplemented with the epsg of me: Currently running the following map file: MAP OUTPUTFORMAT ??? NAME agg ??? DRIVER AGG/PNG ??? IMAGEMODE RGB ??? FORMATOPTION "INTERLACE=false" ??? MIMETYPE "image/png" END FONTSET "fonts.lst" IMAGETYPE agg MAXSIZE 4000 SIZE 800 800 EXTENT 5.8668561 50.3353631 7.7911996 51.2502162 UNITS meters IMAGECOLOR "#B3C6D4" WEB ??? METADATA ??????? wms_srs "epsg:900913 epsg:31467 epsg:31493 epsg:4326" ??????? labelcache_map_edge_buffer "-10" ??????? wms_title "osm stadt-gummersbach" ??? END END DEBUG 10 CONFIG "PROJ_LIB" "/home/gkz212/tmp/mapserver-utils" CONFIG "MS_ERRORFILE" "stderr" PROJECTION ? "init=epsg:4326" END LAYER ??? TYPE POLYGON ??? STATUS ON ??? GROUP "default" ??? NAME "land" ??? PROJECTION ??????? "init=epsg:900913" ??? END ??? DATA "coastlines/processed_p" ??? CLASS ??????? STYLE ??????????? COLOR "#EDEBE6" ??????????? OUTLINECOLOR "#EDEBE6" ??????? END ??? END END END Do I get the following error message GetCapabilities: ...... ? ??? MS ??? osm stadt-gummersbach ??? MS ??? epsg:900913 ??? epsg:31467 ??? epsg:31493 ??? epsg:4326 ??? ??? ??? ????? default ????? default ????? default ????? ??????? land ??????? land ??????? EPSG:900913 ??????? ??????? ????? ??? ? ...... Does anyone have an approach as I get this error fixed? The attempt to replace the double quotes with simple, gives the same error. Ralf Eckert ? Stadtverwaltung Gummersbach FB9 - GIS / Vermessung Rathausplatz 1 51463 Gummersbach Tel: 02261 - 872303 http://gis.gummersbach.de -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Jan 12 01:32:50 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 12 Jan 2011 10:32:50 +0100 Subject: [mapserver-users] WARNING: Mandatory metadata '..._GROUP_TITLE' was missing in this In-Reply-To: <198052814.6561.1294817881447.JavaMail.open-xchange@ox6.gummersbach.gkd> References: <198052814.6561.1294817881447.JavaMail.open-xchange@ox6.gummersbach.gkd> Message-ID: Ralf, not really related to your problem at hand, but the image you provided is exhibiting a bug in the mapserv-utils mapfile. You should change it locally, in two places: UNITS meters must be UNITS dd and the wms_srs metadata key should be capitalized. as for your original request, have a look at wms_group_title in http://mapserver.org/ogc/wms_server.html#layer-object-metadata . best regards, thomas On Wed, Jan 12, 2011 at 08:38, Eckert, Ralf wrote: > Hi, > > The system was created for this website: > http://trac.osgeo.org/mapserver/wiki/RenderingOsmData > UMN MapServer as Server on Linux 5.6.5 is used incl PROJ4, PostgreSQL / > PostGIS > > As the district map Cologne has been deposited. > > The self-test with the command: > / path/to/mapserver/shp2img-m-o osm.map osm.png > > led to a usable image, s: http://gis.gummersbach.de/koeln.png > > The map file was installing itself, and OSM > supplemented with the epsg of me: Currently running the following map file: > > MAP > OUTPUTFORMAT > ??? NAME agg > ??? DRIVER AGG/PNG > ??? IMAGEMODE RGB > ??? FORMATOPTION "INTERLACE=false" > ??? MIMETYPE "image/png" > END > FONTSET "fonts.lst" > IMAGETYPE agg > MAXSIZE 4000 > SIZE 800 800 > EXTENT 5.8668561 50.3353631 7.7911996 51.2502162 > UNITS meters > IMAGECOLOR "#B3C6D4" > WEB > ??? METADATA > ??????? wms_srs "epsg:900913 epsg:31467 epsg:31493 epsg:4326" > ??????? labelcache_map_edge_buffer "-10" > ??????? wms_title "osm stadt-gummersbach" > ??? END > END > DEBUG 10 > CONFIG "PROJ_LIB" "/home/gkz212/tmp/mapserver-utils" > CONFIG "MS_ERRORFILE" "stderr" > PROJECTION > ? "init=epsg:4326" > END > LAYER > ??? TYPE POLYGON > ??? STATUS ON > ??? GROUP "default" > ??? NAME "land" > ??? PROJECTION > ??????? "init=epsg:900913" > ??? END > ??? DATA "coastlines/processed_p" > ??? CLASS > ??????? STYLE > ??????????? COLOR "#EDEBE6" > ??????????? OUTLINECOLOR "#EDEBE6" > ??????? END > ??? END > END > END > > Do I get the following error message GetCapabilities: > > ...... > ? > ??? MS > ??? osm stadt-gummersbach > ??? MS > ??? epsg:900913 > ??? epsg:31467 > ??? epsg:31493 > ??? epsg:4326 > ??? maxy="51.2502" /> > ??? ??????????????? minx="5.86686" miny="50.3354" maxx="7.7912" maxy="51.2502" > /> > ??? > ????? default > > ????? default > ????? default > ????? > ??????? land > > ??????? land > ??????? EPSG:900913 > ??????? maxy="83.6693" /> > ??????? ??????????????????? minx="-2.00375e+07" miny="-2.00377e+07" > maxx="2.00375e+07" maxy="1.84644e+07" /> > ????? > ??? > ? > ...... > > Does anyone have an approach as I get this error fixed? > > The attempt to replace the double quotes with simple, gives the same error. > > Ralf Eckert > > > > Stadtverwaltung Gummersbach > FB9 - GIS / Vermessung > Rathausplatz 1 > 51463 Gummersbach > > Tel: 02261 - 872303 > http://gis.gummersbach.de > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From wimvanbelle at gmail.com Wed Jan 12 04:23:42 2011 From: wimvanbelle at gmail.com (Wim Vanbelle) Date: Wed, 12 Jan 2011 13:23:42 +0100 Subject: [mapserver-users] mapserver defunct In-Reply-To: <4D2D399C.3070004@swoodbridge.com> References: <4D2C9BE3.1000508@swoodbridge.com> <4D2D399C.3070004@swoodbridge.com> Message-ID: The problem definately seems related to concurrency. Load benching using 1 concurrent requests: 0 fails. Load benching using 2 concurrent requests: +- 30% fails more concurrent = more fails. The failed seem to return with HTTP 500. Running a shp2img during this time, still returns a good image. I'll post more info about this topic and a resolution, if i find one :). Do note that we're dealing with shapefiles with 3 000 000 linestrings. While they consist only of 2 coordinates (begin end obviously), it's still a big thing to load. On 12 January 2011 06:18, Stephen Woodbridge wrote: > Wim, > > I'm not sure I have any magic bullet for this problem, because I'm not sure > what is causing it. If this was my project, I would tackle it like this: > > 1. alert people we have a problem that might impact the release date if you > have not already done that > 2. divide the problem to try and localize what is causing it > > a. do the tiles that fail, always fail? this points at a potential > mapserver related issue as opposed to a load issue > a.1 have you turned on mapfile DEBUG output? can you identify the layer > a.2 you can get some maybe useful output from: > > strace /path/to/mapserv QUERY_STRING='' > > gdb /path/to/mapserv > run QUERY_STRING='' > where > quit > > valgrind /path/to/mapserv QUERY_STRING='' > > a.3 you can run it with shp2img ... > > b. is it fastcgi, do you see the same problem if you build it as cgi > c. is it lighttpd, do you see the same problem if you run it with apache > fastcgi? what about apache cgi? > > Intermittent problems are the hardest to diagnose because they often are > not reproducable in a debuging environment. We might be able to help you > with more information. > > I have done a lot of load testing on various versions of mapserver and > tiled all of US and Canada about 4-5 different times using mapserver. I have > not used FastCGI/Lighty and lighttpd, so I'm not sure about what influence > that might have on the problem. > > Hope this gives you some ideas. > > Best regards, > -Steve W > http://imaptools.com/ > > > On 1/11/2011 3:15 PM, Wim Vanbelle wrote: > >> Well, the problem is that the requests are not always served. >> >> During load testing, say about 10 concurrent requests I also load the >> map. But there are randomly tiles that are never loaded. I thought this >> would be related to the defunct processes, but that is not a certainty. >> >> My setup is lighttpd + fastcgi. >> To be honest I'm in a pretty bad situation now, considering we go live >> with this in 9 days. >> >> Not sure what else I can do honestly. >> >> >> On 11 January 2011 19:05, Stephen Woodbridge > > wrote: >> >> Here is an explanation of defunct processes: >> >> http://www.webmasterworld.com/forum40/1032.htm >> >> I'm sure there are others. So since you are running fastcgi, it is >> the responsibility of the fastcgi parent process to clean up dead >> child processes. It is likely that it is busy because you are doing >> load testing or there is some subtle issue that is occurring. If you >> are getting good responses from mapserver, you probably do not need >> to worry about it unless you are getting tons of them. >> >> If you are using apache, I believe there is a parameter that you can >> set for fastcgi processes which will let them die after N requests. >> This should clean those up and apache will spawn a new process if >> needed to replace the that died. >> >> -Steve W >> >> >> On 1/11/2011 10:04 AM, Wim Vanbelle wrote: >> >> Hi all, >> >> I'm getting a lot of >> >> 27098 x 20 0 0 0 0 Z 1 0.0 0:00.03 mapserv >> >> 27104 x 20 0 0 0 0 Z 1 0.0 0:00.03 mapserv >> >> >> while load testing mapserver. Is there any way I can go about >> checking >> out why this is happening? Especially when doing concurrency >> tests it >> seems to go sideways. >> >> Currently i'm using : >> >> MapServer version 5.6.5 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 >> >> using FastCGI/Lighty. >> >> Do note that the mapfile itself seems to be fine, since it does >> render >> content when i'm the single user using it. >> >> Thanks for your expert insight :D. >> >> >> >> _______________________________________________ >> 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 > mapserver-users at lists.osgeo.org> >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Jan 12 04:56:43 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 12 Jan 2011 13:56:43 +0100 Subject: [mapserver-users] mapserver defunct In-Reply-To: References: <4D2C9BE3.1000508@swoodbridge.com> <4D2D399C.3070004@swoodbridge.com> Message-ID: http://trac.osgeo.org/mapserver/ticket/3099 might be related. I don't know how fastcgi in lighty works, but mapserver in fastcgi definitely does not play nicely with fastcgi implementations that don't expect child processes to ever exit(). As Stpehen pointed out, I'd try with apache/fastcgi , if not only to confirm that the problem is in the fastcgi rather than pure mapserver side. best regards, thomas On Wed, Jan 12, 2011 at 13:23, Wim Vanbelle wrote: > The problem definately seems related to concurrency. > > Load benching using 1 concurrent requests: 0 fails. > Load benching using 2 concurrent requests: +- 30% fails > more concurrent = more fails. > > The failed seem to return with HTTP 500. > > Running a shp2img during this time, still returns a good image. > > I'll post more info about this topic and a resolution, if i find one :). Do > note that we're dealing with shapefiles with 3 000 000 linestrings. While > they consist only of 2 coordinates (begin end obviously), it's still a big > thing to load. > > > On 12 January 2011 06:18, Stephen Woodbridge > wrote: >> >> Wim, >> >> I'm not sure I have any magic bullet for this problem, because I'm not >> sure what is causing it. If this was my project, I would tackle it like >> this: >> >> 1. alert people we have a problem that might impact the release date if >> you have not already done that >> 2. divide the problem to try and localize what is causing it >> >> a. do the tiles that fail, always fail? this points at a potential >> mapserver related issue as opposed to a load issue >> a.1 have you turned on mapfile DEBUG output? can you identify the layer >> a.2 you can get some maybe useful output from: >> >> strace /path/to/mapserv QUERY_STRING='' >> >> gdb /path/to/mapserv >> run QUERY_STRING='' >> where >> quit >> >> valgrind /path/to/mapserv QUERY_STRING='' >> >> a.3 you can run it with shp2img ... >> >> b. is it fastcgi, do you see the same problem if you build it as cgi >> c. is it lighttpd, do you see the same problem if you run it with apache >> fastcgi? what about apache cgi? >> >> Intermittent problems are the hardest to diagnose because they often are >> not reproducable in a debuging environment. We might be able to help you >> with more information. >> >> I have done a lot of load testing on various versions of mapserver and >> tiled all of US and Canada about 4-5 different times using mapserver. I have >> not used FastCGI/Lighty and lighttpd, so I'm not sure about what influence >> that might have on the problem. >> >> Hope this gives you some ideas. >> >> Best regards, >> ?-Steve W >> ? http://imaptools.com/ >> >> On 1/11/2011 3:15 PM, Wim Vanbelle wrote: >>> >>> Well, the problem is that the requests are not always served. >>> >>> During load testing, say about 10 concurrent requests I also load the >>> map. But there are randomly tiles that are never loaded. I thought this >>> would be related to the defunct processes, but that is not a certainty. >>> >>> My setup is lighttpd + fastcgi. >>> To be honest I'm in a pretty bad situation now, considering we go live >>> with this in 9 days. >>> >>> Not sure what else I can do honestly. >>> >>> >>> On 11 January 2011 19:05, Stephen Woodbridge >> > wrote: >>> >>> ? ?Here is an explanation of defunct processes: >>> >>> ? ?http://www.webmasterworld.com/forum40/1032.htm >>> >>> ? ?I'm sure there are others. So since you are running fastcgi, it is >>> ? ?the responsibility of the fastcgi parent process to clean up dead >>> ? ?child processes. It is likely that it is busy because you are doing >>> ? ?load testing or there is some subtle issue that is occurring. If you >>> ? ?are getting good responses from mapserver, you probably do not need >>> ? ?to worry about it unless you are getting tons of them. >>> >>> ? ?If you are using apache, I believe there is a parameter that you can >>> ? ?set for fastcgi processes which will let them die after N requests. >>> ? ?This should clean those up and apache will spawn a new process if >>> ? ?needed to replace the that died. >>> >>> ? ?-Steve W >>> >>> >>> ? ?On 1/11/2011 10:04 AM, Wim Vanbelle wrote: >>> >>> ? ? ? ?Hi all, >>> >>> ? ? ? ?I'm getting a lot of >>> >>> ? ? ? ?27098 x ?20 ? 0 ? ? 0 ? ?0 ? ?0 Z ? ?1 ?0.0 ? 0:00.03 mapserv >>> ? ? ? ? >>> ? ? ? ?27104 x ?20 ? 0 ? ? 0 ? ?0 ? ?0 Z ? ?1 ?0.0 ? 0:00.03 mapserv >>> ? ? ? ? >>> >>> ? ? ? ?while load testing mapserver. Is there any way I can go about >>> ? ? ? ?checking >>> ? ? ? ?out why this is happening? Especially when doing concurrency >>> ? ? ? ?tests it >>> ? ? ? ?seems to go sideways. >>> >>> ? ? ? ?Currently i'm using : >>> >>> ? ? ? ?MapServer version 5.6.5 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 >>> >>> ? ? ? ?using FastCGI/Lighty. >>> >>> ? ? ? ?Do note that the mapfile itself seems to be fine, since it does >>> ? ? ? ?render >>> ? ? ? ?content when i'm the single user using it. >>> >>> ? ? ? ?Thanks for your expert insight :D. >>> >>> >>> >>> ? ? ? ?_______________________________________________ >>> ? ? ? ?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 Jukka.Rahkonen at mmmtike.fi Wed Jan 12 05:19:35 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 12 Jan 2011 15:19:35 +0200 Subject: [mapserver-users] mapserver defunct In-Reply-To: References: <4D2C9BE3.1000508@swoodbridge.com><4D2D399C.3070004@swoodbridge.com> Message-ID: Hi, Maybe my experience is somehow related. I have just been seeding GeoWebCache from our Mapserver this week and using more than two threads with Apache fast-cgi proved to be very unreliable. Some of the GWC threads were dying soon with message: ERROR [seed.MTSeeder] - Unexpected response code from backend: 500 for http://.... I turned back to normal Mapserver cgi and seeding is progressing much faster for me now because I can keep more GeoWebCache seeder threads up this way. -Jukka Rahkonen- thomas bonfort wrote: > > http://trac.osgeo.org/mapserver/ticket/3099 might be related. I don't > know how fastcgi in lighty works, but mapserver in fastcgi definitely > does not play nicely with fastcgi implementations that don't expect > child processes to ever exit(). > As Stpehen pointed out, I'd try with apache/fastcgi , if not only to > confirm that the problem is in the fastcgi rather than pure mapserver > side. > > best regards, > thomas > > On Wed, Jan 12, 2011 at 13:23, Wim Vanbelle > wrote: > > The problem definately seems related to concurrency. > > > > Load benching using 1 concurrent requests: 0 fails. > > Load benching using 2 concurrent requests: +- 30% fails > > more concurrent = more fails. > > > > The failed seem to return with HTTP 500. > > > > Running a shp2img during this time, still returns a good image. > > > > I'll post more info about this topic and a resolution, if i > find one :). Do > > note that we're dealing with shapefiles with 3 000 000 > linestrings. While > > they consist only of 2 coordinates (begin end obviously), > it's still a big > > thing to load. > > > > > > On 12 January 2011 06:18, Stephen Woodbridge > > > wrote: > >> > >> Wim, > >> > >> I'm not sure I have any magic bullet for this problem, > because I'm not > >> sure what is causing it. If this was my project, I would > tackle it like > >> this: > >> > >> 1. alert people we have a problem that might impact the > release date if > >> you have not already done that > >> 2. divide the problem to try and localize what is causing it > >> > >> a. do the tiles that fail, always fail? this points at a potential > >> mapserver related issue as opposed to a load issue > >> a.1 have you turned on mapfile DEBUG output? can you > identify the layer > >> a.2 you can get some maybe useful output from: > >> > >> strace /path/to/mapserv QUERY_STRING='' > >> > >> gdb /path/to/mapserv > >> run QUERY_STRING='' > >> where > >> quit > >> > >> valgrind /path/to/mapserv QUERY_STRING='' > >> > >> a.3 you can run it with shp2img ... > >> > >> b. is it fastcgi, do you see the same problem if you build > it as cgi > >> c. is it lighttpd, do you see the same problem if you run > it with apache > >> fastcgi? what about apache cgi? > >> > >> Intermittent problems are the hardest to diagnose because > they often are > >> not reproducable in a debuging environment. We might be > able to help you > >> with more information. > >> > >> I have done a lot of load testing on various versions of > mapserver and > >> tiled all of US and Canada about 4-5 different times using > mapserver. I have > >> not used FastCGI/Lighty and lighttpd, so I'm not sure > about what influence > >> that might have on the problem. > >> > >> Hope this gives you some ideas. > >> > >> Best regards, > >> ?-Steve W > >> ? http://imaptools.com/ > >> > >> On 1/11/2011 3:15 PM, Wim Vanbelle wrote: > >>> > >>> Well, the problem is that the requests are not always served. > >>> > >>> During load testing, say about 10 concurrent requests I > also load the > >>> map. But there are randomly tiles that are never loaded. > I thought this > >>> would be related to the defunct processes, but that is > not a certainty. > >>> > >>> My setup is lighttpd + fastcgi. > >>> To be honest I'm in a pretty bad situation now, > considering we go live > >>> with this in 9 days. > >>> > >>> Not sure what else I can do honestly. > >>> > >>> > >>> On 11 January 2011 19:05, Stephen Woodbridge > >>> > wrote: > >>> > >>> ? ?Here is an explanation of defunct processes: > >>> > >>> ? ?http://www.webmasterworld.com/forum40/1032.htm > >>> > >>> ? ?I'm sure there are others. So since you are running > fastcgi, it is > >>> ? ?the responsibility of the fastcgi parent process to > clean up dead > >>> ? ?child processes. It is likely that it is busy because > you are doing > >>> ? ?load testing or there is some subtle issue that is > occurring. If you > >>> ? ?are getting good responses from mapserver, you > probably do not need > >>> ? ?to worry about it unless you are getting tons of them. > >>> > >>> ? ?If you are using apache, I believe there is a > parameter that you can > >>> ? ?set for fastcgi processes which will let them die > after N requests. > >>> ? ?This should clean those up and apache will spawn a new > process if > >>> ? ?needed to replace the that died. > >>> > >>> ? ?-Steve W > >>> > >>> > >>> ? ?On 1/11/2011 10:04 AM, Wim Vanbelle wrote: > >>> > >>> ? ? ? ?Hi all, > >>> > >>> ? ? ? ?I'm getting a lot of > >>> > >>> ? ? ? ?27098 x ?20 ? 0 ? ? 0 ? ?0 ? ?0 Z ? ?1 ?0.0 ? > 0:00.03 mapserv > >>> ? ? ? ? > >>> ? ? ? ?27104 x ?20 ? 0 ? ? 0 ? ?0 ? ?0 Z ? ?1 ?0.0 ? > 0:00.03 mapserv > >>> ? ? ? ? > >>> > >>> ? ? ? ?while load testing mapserver. Is there any way I > can go about > >>> ? ? ? ?checking > >>> ? ? ? ?out why this is happening? Especially when doing > concurrency > >>> ? ? ? ?tests it > >>> ? ? ? ?seems to go sideways. > >>> > >>> ? ? ? ?Currently i'm using : > >>> > >>> ? ? ? ?MapServer version 5.6.5 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 > >>> > >>> ? ? ? ?using FastCGI/Lighty. > >>> > >>> ? ? ? ?Do note that the mapfile itself seems to be fine, > since it does > >>> ? ? ? ?render > >>> ? ? ? ?content when i'm the single user using it. > >>> > >>> ? ? ? ?Thanks for your expert insight :D. > >>> > >>> > >>> > >>> ? ? ? ?_______________________________________________ > >>> ? ? ? ?mapserver-users mailing list > >>> ? ? ? ?mapserver-users at lists.osgeo.org > >>> ? ? ? ? > >>> ? ? ? ?http://lists.osgeo.org/mailman/listinfo/mapserver-users > >>> > >>> > >>> ? ?_______________________________________________ > >>> ? ?mapserver-users mailing list > >>> ? ?mapserver-users at lists.osgeo.org > >>> > >>> ? ?http://lists.osgeo.org/mailman/listinfo/mapserver-users > >>> > >>> > >> > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From David.Fawcett at state.mn.us Wed Jan 12 06:20:12 2011 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Wed, 12 Jan 2011 08:20:12 -0600 Subject: [mapserver-users] ArcGIS Server layer In-Reply-To: <4D2DC0E9.379F.0037.1@asurequality.com> References: <4D2DC0E9.379F.0037.1@asurequality.com> Message-ID: For Option #2, you need to have a MapServer instance that is built with SDE support. SDE support isn't there 'by default', so if you want to make direct SDE connections, you will want to take this into account when you are installing MapServer. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Robert Sanson Sent: Tuesday, January 11, 2011 7:56 PM To: qazi iqbal; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] ArcGIS Server layer Yes - two ways: 1. Connect to a WMS service on ArcGIS Server: LAYER NAME nz50ktm GROUP "Toposcans" TYPE RASTER STATUS ON CONNECTION "http://myserver/arcgis/services/mapservice_topography_raster/MapServer/WMSServer?" CONNECTIONTYPE WMS MAXSCALE 60000 MINSCALE 10000 METADATA # OGC:WMS specific tags "ows_title" "NZ 1:50k scale NZTM" "ows_abstract" "This layer came from the LINZ Topo50 series maps in NZTM" "WMS_FORMAT" "image/png" "wms_server_version" "1.1.1" "wms_opaque" "1" "wms_group_title" "Toposcans" "wms_resx" "4.233" "wms_resy" "4.233" "ows_extent" "1083997.88 4722000.45 2092003.23 6234002.12" "wms_srs" "EPSG:2193" "WMS_NAME" "3" "wms_exceptions_format" "application/vnd.ogc.se_xml" END END 2. Direct connection to the underlying ArcSDE database: LAYER NAME farm GROUP "CRS" TYPE POLYGON STATUS ON # actual data pointer CONNECTIONTYPE SDE CONNECTIONTYPE PLUGIN CONNECTION "server,port:nnnn,cadastre,user,passwd" DATA "CADASTRE.SDEADMIN.VW_FARM_PARCEL_SP,SHAPE" PLUGIN "c:/ms4w/apache/specialplugins/msplugin_sde_92.dll" CLASS NAME "Farm" STYLE WIDTH 3 OUTLINECOLOR 255 0 0 COLOR 255 140 0 END END #CLASS METADATA "ows_title" "Farm" "ows_abstract" "This shows land parcels linked to a given farm_id in NZTM" "ows_keywordlist" "AgriBase,LINZ,farm_id,PARCELS" "wms_opaque" "1" "wms_group_title" "CRS" "ows_extent" "773500 4615000 2602100 6324500" "wms_srs" "EPSG:2193" "wms_exceptions_format" "application/vnd.ogc.se_xml" END END Regards, Robert S >>> qazi iqbal 12/01/2011 2:13 p.m. >>> I want to know if there is any way to add ArcGIS server layer to mapserver mapfile? Click here to report this email as spam. This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system. This message has been scanned for Malware and Viruses by Websense Hosted Security. www.websense.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Wed Jan 12 07:52:01 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 12 Jan 2011 10:52:01 -0500 Subject: [mapserver-users] mapserver defunct In-Reply-To: References: <4D2C9BE3.1000508@swoodbridge.com> <4D2D399C.3070004@swoodbridge.com> Message-ID: <4D2DCE21.6070303@swoodbridge.com> Have you built mapserver with threads? If so disable this and see if the problem goes away. HTTP 500 probably means that your process is getting a SIGV. Also unless you are using a database connection, using fastcgi is not going to give you a huge benefit because of the way mapserver works. And threads will probably not help either. OK, I admit I am somewhat biased against threads :) Tuning for performance in my experience is: 1. start by keep it simple 2. measure where your bottlenecks are 3. fix these bottlenecks 4. repeat Don't throw everything at it because you think think it will help. It just makes a complicated mess and you have no way to know if any given pieces is helping or hurting. Using a tmpfs is good if you manage it, I prefer a ramfs, the difference being the a ramfs is fixed size and you have to explicitly load it, but you have more control over size and behavior for a little more planning and it does not have down side of being able to eat all your memory or forcing linux to do more swapping which can slow down things. Also if you need to squeeze an additional 1-1.5% performance and can live without swap, disable your swap partition. Linux is a swappy OS and swaps to disk before it needs to in anticipation, this is costly if you have a lot of memory and do not NEED to swap. -Steve W On 1/12/2011 7:23 AM, Wim Vanbelle wrote: > The problem definately seems related to concurrency. > > Load benching using 1 concurrent requests: 0 fails. > Load benching using 2 concurrent requests: +- 30% fails > more concurrent = more fails. > > The failed seem to return with HTTP 500. > > Running a shp2img during this time, still returns a good image. > > I'll post more info about this topic and a resolution, if i find one :). > Do note that we're dealing with shapefiles with 3 000 000 linestrings. > While they consist only of 2 coordinates (begin end obviously), it's > still a big thing to load. > > > On 12 January 2011 06:18, Stephen Woodbridge > wrote: > > Wim, > > I'm not sure I have any magic bullet for this problem, because I'm > not sure what is causing it. If this was my project, I would tackle > it like this: > > 1. alert people we have a problem that might impact the release date > if you have not already done that > 2. divide the problem to try and localize what is causing it > > a. do the tiles that fail, always fail? this points at a potential > mapserver related issue as opposed to a load issue > a.1 have you turned on mapfile DEBUG output? can you identify the layer > a.2 you can get some maybe useful output from: > > strace /path/to/mapserv QUERY_STRING='' > > gdb /path/to/mapserv > run QUERY_STRING='' > where > quit > > valgrind /path/to/mapserv QUERY_STRING='' > > a.3 you can run it with shp2img ... > > b. is it fastcgi, do you see the same problem if you build it as cgi > c. is it lighttpd, do you see the same problem if you run it with > apache fastcgi? what about apache cgi? > > Intermittent problems are the hardest to diagnose because they often > are not reproducable in a debuging environment. We might be able to > help you with more information. > > I have done a lot of load testing on various versions of mapserver > and tiled all of US and Canada about 4-5 different times using > mapserver. I have not used FastCGI/Lighty and lighttpd, so I'm not > sure about what influence that might have on the problem. > > Hope this gives you some ideas. > > Best regards, > -Steve W > http://imaptools.com/ > > > On 1/11/2011 3:15 PM, Wim Vanbelle wrote: > > Well, the problem is that the requests are not always served. > > During load testing, say about 10 concurrent requests I also > load the > map. But there are randomly tiles that are never loaded. I > thought this > would be related to the defunct processes, but that is not a > certainty. > > My setup is lighttpd + fastcgi. > To be honest I'm in a pretty bad situation now, considering we > go live > with this in 9 days. > > Not sure what else I can do honestly. > > > On 11 January 2011 19:05, Stephen Woodbridge > > >> wrote: > > Here is an explanation of defunct processes: > > http://www.webmasterworld.com/forum40/1032.htm > > I'm sure there are others. So since you are running fastcgi, > it is > the responsibility of the fastcgi parent process to clean up > dead > child processes. It is likely that it is busy because you > are doing > load testing or there is some subtle issue that is > occurring. If you > are getting good responses from mapserver, you probably do > not need > to worry about it unless you are getting tons of them. > > If you are using apache, I believe there is a parameter that > you can > set for fastcgi processes which will let them die after N > requests. > This should clean those up and apache will spawn a new > process if > needed to replace the that died. > > -Steve W > > > On 1/11/2011 10:04 AM, Wim Vanbelle wrote: > > Hi all, > > I'm getting a lot of > > 27098 x 20 0 0 0 0 Z 1 0.0 0:00.03 > mapserv > > 27104 x 20 0 0 0 0 Z 1 0.0 0:00.03 > mapserv > > > while load testing mapserver. Is there any way I can go > about > checking > out why this is happening? Especially when doing concurrency > tests it > seems to go sideways. > > Currently i'm using : > > MapServer version 5.6.5 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 > > using FastCGI/Lighty. > > Do note that the mapfile itself seems to be fine, since > it does > render > content when i'm the single user using it. > > Thanks for your expert insight :D. > > > > _______________________________________________ > 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 Bob.Bistrais at maine.gov Wed Jan 12 07:34:57 2011 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Wed, 12 Jan 2011 10:34:57 -0500 Subject: [mapserver-users] Reporting lat/long from projected map units Message-ID: <4EFF8BB964547748A07CA32961810C041A036D32@SOM-TEAQASMAIL1.som.w2k.state.me.us> This should be fairly straightforward, but I was wondering what is the easiest and quickest way to convert coordinates on the fly. All my data is in UTM coordinates. I want to report coordinates to the screen in Lat/Long. Changing the projections on the map files to lat/long (EPSG:4326) is not an option, as this will cause problems elsewhere. So what I want to do is take point coordinates, either from a mouse click or from UTM coordinates, project to lat/long, which will be reported in a result window. What is the quickest way to do this? -------------- next part -------------- An HTML attachment was scrubbed... URL: From milo at dogodigi.net Wed Jan 12 08:03:15 2011 From: milo at dogodigi.net (Milo van der Linden) Date: Wed, 12 Jan 2011 17:03:15 +0100 Subject: Fwd: [mapserver-users] Reporting lat/long from projected map units In-Reply-To: References: <4EFF8BB964547748A07CA32961810C041A036D32@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: ---------- Forwarded message ---------- From: Milo van der Linden Date: 2011/1/12 Subject: Re: [mapserver-users] Reporting lat/long from projected map units To: "Bistrais, Bob" Are you talking bout a web-app? Do you use a client like OpenLayers? What programming language(s) do you use? Is your datasource a database? Like postgis? If you can get UTM coordinates from the mouseclick, the next best option (in my opinion) would be to use proj4js: http://proj4js.org/ Simply embed the js-library ad an event for mouse handling and convert: screen->utm->4326. 2011/1/12 Bistrais, Bob > This should be fairly straightforward, but I was wondering what is the > easiest and quickest way to convert coordinates on the fly. All my data is > in UTM coordinates. I want to report coordinates to the screen in > Lat/Long. Changing the projections on the map files to lat/long (* > EPSG:4326)* is not an option, as this will cause problems elsewhere. So > what I want to do is take point coordinates, either from a mouse click or > from UTM coordinates, project to lat/long, which will be reported in a > result window. What is the quickest way to do this? > > _______________________________________________ > 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 Jan 12 09:44:14 2011 From: milo at dogodigi.net (Milo van der Linden) Date: Wed, 12 Jan 2011 18:44:14 +0100 Subject: [mapserver-users] Reporting lat/long from projected map units In-Reply-To: <4EFF8BB964547748A07CA32961810C041A036D34@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C041A036D32@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4EFF8BB964547748A07CA32961810C041A036D33@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4EFF8BB964547748A07CA32961810C041A036D34@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: (Sorry, my last posts went straight to you by accident, I prefer to stay on the list, but gmail for applications not always agrees with me) proj4js has project pages including documentation on the OSGeo wiki. The userguide is here: http://trac.osgeo.org/proj4js/wiki/UserGuide and it immediately explains what you want 2011/1/12 Bistrais, Bob > Yes, I can get UTM coordinates back. Can you elaborate a bit on > proj4js? I?m not familiar with that. > > > ------------------------------ > > *From:* Milo van der Linden [mailto:milo at dogodigi.net] > *Sent:* Wednesday, January 12, 2011 11:10 AM > > *To:* Bistrais, Bob > *Subject:* Re: [mapserver-users] Reporting lat/long from projected map > units > > > > Well then one question remains: > > Are you able to convert screen coords to UTM capturing an onclick event? > Because then all you need to do is enhance it with proj4js > > 2011/1/12 Bistrais, Bob > > Yes, a web mapping application. Not using Open Layers. We are using > PHP-Mapscript/HTML/JavaScript. All queryable data is in shapefiles, again, > all of these are in UTM. > > > ------------------------------ > > *From:* Milo van der Linden [mailto:milo at dogodigi.net] > *Sent:* Wednesday, January 12, 2011 11:03 AM > *To:* Bistrais, Bob > > > *Subject:* Re: [mapserver-users] Reporting lat/long from projected map > units > > > > Are you talking bout a web-app? Do you use a client like OpenLayers? What > programming language(s) do you use? Is your datasource a database? Like > postgis? > > > > If you can get UTM coordinates from the mouseclick, the next best option > (in my opinion) would be to use proj4js: > > http://proj4js.org/ > > Simply embed the js-library ad an event for mouse handling and convert: > screen->utm->4326. > > > 2011/1/12 Bistrais, Bob > > This should be fairly straightforward, but I was wondering what is the > easiest and quickest way to convert coordinates on the fly. All my data is > in UTM coordinates. I want to report coordinates to the screen in > Lat/Long. Changing the projections on the map files to lat/long (EPSG:4326) > is not an option, as this will cause problems elsewhere. So what I want to > do is take point coordinates, either from a mouse click or from UTM > coordinates, project to lat/long, which will be reported in a result > window. What is the quickest way to do this? > > > _______________________________________________ > 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 wimvanbelle at gmail.com Wed Jan 12 10:45:47 2011 From: wimvanbelle at gmail.com (Wim Vanbelle) Date: Wed, 12 Jan 2011 19:45:47 +0100 Subject: [mapserver-users] mapserver defunct In-Reply-To: <4D2DCE21.6070303@swoodbridge.com> References: <4D2C9BE3.1000508@swoodbridge.com> <4D2D399C.3070004@swoodbridge.com> <4D2DCE21.6070303@swoodbridge.com> Message-ID: Thanks for your comments. I'll try switching to CGI. My current config is setup like this: MapServer version 5.6.5 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 tmpfs is used over ramfs, because the latter cannot be exported using nfs. Initially we started using postgres, but switched to shapefiles because that would scale better with higher load. (no need to setup more databases) We have a lot of ram available, so any tips on using that better are appreciated. using iostat/vmstat i can see that disk was no issue though. On 12 January 2011 16:52, Stephen Woodbridge wrote: > Have you built mapserver with threads? If so disable this and see if the > problem goes away. > > HTTP 500 probably means that your process is getting a SIGV. Also unless > you are using a database connection, using fastcgi is not going to give you > a huge benefit because of the way mapserver works. And threads will probably > not help either. OK, I admit I am somewhat biased against threads :) Tuning > for performance in my experience is: > 1. start by keep it simple > 2. measure where your bottlenecks are > 3. fix these bottlenecks > 4. repeat > > Don't throw everything at it because you think think it will help. It just > makes a complicated mess and you have no way to know if any given pieces is > helping or hurting. > > Using a tmpfs is good if you manage it, I prefer a ramfs, the difference > being the a ramfs is fixed size and you have to explicitly load it, but you > have more control over size and behavior for a little more planning and it > does not have down side of being able to eat all your memory or forcing > linux to do more swapping which can slow down things. > > Also if you need to squeeze an additional 1-1.5% performance and can live > without swap, disable your swap partition. Linux is a swappy OS and swaps to > disk before it needs to in anticipation, this is costly if you have a lot of > memory and do not NEED to swap. > > -Steve W > > > On 1/12/2011 7:23 AM, Wim Vanbelle wrote: > >> The problem definately seems related to concurrency. >> >> Load benching using 1 concurrent requests: 0 fails. >> Load benching using 2 concurrent requests: +- 30% fails >> more concurrent = more fails. >> >> The failed seem to return with HTTP 500. >> >> Running a shp2img during this time, still returns a good image. >> >> I'll post more info about this topic and a resolution, if i find one :). >> Do note that we're dealing with shapefiles with 3 000 000 linestrings. >> While they consist only of 2 coordinates (begin end obviously), it's >> still a big thing to load. >> >> >> On 12 January 2011 06:18, Stephen Woodbridge > > wrote: >> >> Wim, >> >> I'm not sure I have any magic bullet for this problem, because I'm >> not sure what is causing it. If this was my project, I would tackle >> it like this: >> >> 1. alert people we have a problem that might impact the release date >> if you have not already done that >> 2. divide the problem to try and localize what is causing it >> >> a. do the tiles that fail, always fail? this points at a potential >> mapserver related issue as opposed to a load issue >> a.1 have you turned on mapfile DEBUG output? can you identify the layer >> a.2 you can get some maybe useful output from: >> >> strace /path/to/mapserv QUERY_STRING='' >> >> gdb /path/to/mapserv >> run QUERY_STRING='' >> where >> quit >> >> valgrind /path/to/mapserv QUERY_STRING='' >> >> a.3 you can run it with shp2img ... >> >> b. is it fastcgi, do you see the same problem if you build it as cgi >> c. is it lighttpd, do you see the same problem if you run it with >> apache fastcgi? what about apache cgi? >> >> Intermittent problems are the hardest to diagnose because they often >> are not reproducable in a debuging environment. We might be able to >> help you with more information. >> >> I have done a lot of load testing on various versions of mapserver >> and tiled all of US and Canada about 4-5 different times using >> mapserver. I have not used FastCGI/Lighty and lighttpd, so I'm not >> sure about what influence that might have on the problem. >> >> Hope this gives you some ideas. >> >> Best regards, >> -Steve W >> http://imaptools.com/ >> >> >> On 1/11/2011 3:15 PM, Wim Vanbelle wrote: >> >> Well, the problem is that the requests are not always served. >> >> During load testing, say about 10 concurrent requests I also >> load the >> map. But there are randomly tiles that are never loaded. I >> thought this >> would be related to the defunct processes, but that is not a >> certainty. >> >> My setup is lighttpd + fastcgi. >> To be honest I'm in a pretty bad situation now, considering we >> go live >> with this in 9 days. >> >> Not sure what else I can do honestly. >> >> >> On 11 January 2011 19:05, Stephen Woodbridge >> >> > >> >> wrote: >> >> Here is an explanation of defunct processes: >> >> http://www.webmasterworld.com/forum40/1032.htm >> >> I'm sure there are others. So since you are running fastcgi, >> it is >> the responsibility of the fastcgi parent process to clean up >> dead >> child processes. It is likely that it is busy because you >> are doing >> load testing or there is some subtle issue that is >> occurring. If you >> are getting good responses from mapserver, you probably do >> not need >> to worry about it unless you are getting tons of them. >> >> If you are using apache, I believe there is a parameter that >> you can >> set for fastcgi processes which will let them die after N >> requests. >> This should clean those up and apache will spawn a new >> process if >> needed to replace the that died. >> >> -Steve W >> >> >> On 1/11/2011 10:04 AM, Wim Vanbelle wrote: >> >> Hi all, >> >> I'm getting a lot of >> >> 27098 x 20 0 0 0 0 Z 1 0.0 0:00.03 >> mapserv >> >> 27104 x 20 0 0 0 0 Z 1 0.0 0:00.03 >> mapserv >> >> >> while load testing mapserver. Is there any way I can go >> about >> checking >> out why this is happening? Especially when doing >> concurrency >> tests it >> seems to go sideways. >> >> Currently i'm using : >> >> MapServer version 5.6.5 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 >> >> using FastCGI/Lighty. >> >> Do note that the mapfile itself seems to be fine, since >> it does >> render >> content when i'm the single user using it. >> >> Thanks for your expert insight :D. >> >> >> >> _______________________________________________ >> 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 Jan 12 12:09:11 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 12 Jan 2011 15:09:11 -0500 Subject: [mapserver-users] keyimage size and url In-Reply-To: References: Message-ID: <4D2E0A67.7090103@dmsolutions.ca> Hi, On 11/01/2011 12:24 PM, Steve.Toutant at inspq.qc.ca wrote: > > Hi, > In my mapfile I have a layer defined as a external WMS layer > (CONNECTIONTYPE WMS, .....) > > I use KEYIMAGE to set the icon in my geoext legend. > For a layer the legend is complex and the icon is very small. is it > possible to change the size of a KEYIMAGE? > assuming you are calling mapserver cgi with mode=legend, you can change the keysize parameter by doing something like: http://.../mapserv?..&map.legend=keysize 100 100 > Also, is it possible to use a getLegendGraphic request to get the > legend icon instead of using KEYIMAGE (it seems that we cannot provide > a url with KEYIMAGE)? > I think it should work from what I can see. It should use your keyimage and respect the width/height parameters sent with the getLegendGraphic request. > Does KEYIMAGE is the appropriate solution? > thanks for your help, > Steve > > > _______________________________________________ > 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 mapserver at geoworld.de Wed Jan 12 13:35:25 2011 From: mapserver at geoworld.de (Nicol Hermann) Date: Wed, 12 Jan 2011 22:35:25 +0100 Subject: [mapserver-users] Stacked bar charts with mapserver? Message-ID: <1294868125.7962.1.camel@mobil.geoworld.de> Hello list, I wonder if MapServer is able to build stacked bar charts? After checking the wiki documentation at: http://mapserver.org/output/dynamic_charting.html#bar-graphs i am afraid the answer is no. But want to double check with the group. Thanks for any pointers Best regards Nicol From thomas.bonfort at gmail.com Wed Jan 12 16:15:42 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 13 Jan 2011 01:15:42 +0100 Subject: [mapserver-users] Stacked bar charts with mapserver? In-Reply-To: <1294868125.7962.1.camel@mobil.geoworld.de> References: <1294868125.7962.1.camel@mobil.geoworld.de> Message-ID: Nicol, you have the *vbar examples in msautotest that show how to obtain stacked vertical bar graphs, I assume that's what your looking for? regards, thomas On Wed, Jan 12, 2011 at 22:35, Nicol Hermann wrote: > Hello list, > > I wonder if MapServer is able to build stacked bar charts? > After checking the wiki documentation at: > http://mapserver.org/output/dynamic_charting.html#bar-graphs > i am afraid the answer is no. But want to double check with the group. > > Thanks for any pointers > Best regards > Nicol > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From mapserver at geoworld.de Wed Jan 12 21:47:41 2011 From: mapserver at geoworld.de (Nicol Hermann) Date: Thu, 13 Jan 2011 06:47:41 +0100 Subject: [mapserver-users] Stacked bar charts with mapserver? In-Reply-To: References: <1294868125.7962.1.camel@mobil.geoworld.de> Message-ID: <1294897661.7962.4.camel@mobil.geoworld.de> Thomas, sound promising, cool. I checked the image misc/expected/chartlayer_vbar.png and this is exactly what I am looking for. Unfortunately the test for this specific usecase ('misc/chartlayer_vbar.map') fails with mapserver 5.6.5 when i run './run_test.py'. .. Processing: chartlayer_vbar.map * results dont match, TEST FAILED. .. A blank image is returned Do you have an idea why? The debug output contains no further information: [Thu Jan 13 06:41:18 2011].786876 msDrawMap(): Layer 0 (charts), 0.129s [Thu Jan 13 06:41:18 2011].786951 msDrawMap(): Drawing Label Cache, 0.000s [Thu Jan 13 06:41:18 2011].786981 msDrawMap() total time: 0.129s [Thu Jan 13 06:41:18 2011].790139 msSaveImage() total time: 0.003s [Thu Jan 13 06:41:18 2011].790207 msFreeMap(): freeing map at 0x272a760. [Thu Jan 13 06:41:18 2011].790254 freeLayer(): freeing layer at 0x2732290. [Thu Jan 13 06:41:18 2011].790298 shp2img total time: 0.150s Thanks! Best regards Nicol Am Donnerstag, den 13.01.2011, 01:15 +0100 schrieb thomas bonfort: > Nicol, > you have the *vbar examples in msautotest that show how to obtain > stacked vertical bar graphs, I assume that's what your looking for? > > regards, > thomas > > On Wed, Jan 12, 2011 at 22:35, Nicol Hermann wrote: > > Hello list, > > > > I wonder if MapServer is able to build stacked bar charts? > > After checking the wiki documentation at: > > http://mapserver.org/output/dynamic_charting.html#bar-graphs > > i am afraid the answer is no. But want to double check with the group. > > > > Thanks for any pointers > > Best regards > > Nicol > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From kristian_frost7 at hotmail.com Thu Jan 13 04:55:13 2011 From: kristian_frost7 at hotmail.com (Frost89) Date: Thu, 13 Jan 2011 04:55:13 -0800 (PST) Subject: [mapserver-users] Problem with ECW files Message-ID: <1294923313264-5918048.post@n2.nabble.com> I'm trying to show a ECW file in my application. I have checked with gdalinfo that GDAL supports the ECW format, and it is able to read the file. When using shp2img I'm able to create a image showing the ECW file. But when I try using my app. which uses MapScript to create a WMS service I get a service exception saying: msDrawMap(): Image handling error. Failed to draw layer named 'Ortofoto'. msDrawRaster(): Image handling error. Unrecognized or unsupported image format drawEPP(): Image handling error. EPPL7 support is not available. I'm using Tamas' SDK from http://vbkto.dyndns.org/sdk/ vbkto.dyndns.org/sdk/ with the ECW plugin. - Kristian Frost -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problem-with-ECW-files-tp5918048p5918048.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Thu Jan 13 07:35:38 2011 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 13 Jan 2011 16:35:38 +0100 Subject: [mapserver-users] Problem with ECW files In-Reply-To: <1294923313264-5918048.post@n2.nabble.com> References: <1294923313264-5918048.post@n2.nabble.com> Message-ID: Kristian, Try setting GDAL_DRIVER_PATH using SetConfigOption to the path of the plugin directory. Best regards, Tamas 2011/1/13 Frost89 > I'm trying to show a ECW file in my application. > I have checked with *gdalinfo* that GDAL supports the ECW format, and it > is able to read the file. > When using *shp2img* I'm able to create a image showing the ECW file. > > But when I try using my app. which uses MapScript to create a WMS service I > get a service exception saying: > msDrawMap(): Image handling error. Failed to draw layer named 'Ortofoto'. > msDrawRaster(): Image handling error. Unrecognized or unsupported image > format > drawEPP(): Image handling error. EPPL7 support is not available. > > I'm using Tamas' SDK from vbkto.dyndns.org/sdk/ with the ECW plugin. > > - Kristian Frost > > ------------------------------ > View this message in context: Problem with ECW files > Sent from the Mapserver - User mailing list archiveat Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Thu Jan 13 07:43:53 2011 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Thu, 13 Jan 2011 10:43:53 -0500 Subject: [mapserver-users] Reporting lat/long from projected map units In-Reply-To: References: <4EFF8BB964547748A07CA32961810C041A036D32@SOM-TEAQASMAIL1.som.w2k.state.me.us><4EFF8BB964547748A07CA32961810C041A036D33@SOM-TEAQASMAIL1.som.w2k.state.me.us><4EFF8BB964547748A07CA32961810C041A036D34@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4EFF8BB964547748A07CA32961810C041A036D36@SOM-TEAQASMAIL1.som.w2k.state.me.us> I downloaded the code and am looking at the Wiki. I don't see anything to input screen or UTM coords. Is it in the code somewhere? ________________________________ From: Milo van der Linden [mailto:milo at dogodigi.net] Sent: Wednesday, January 12, 2011 12:44 PM To: mapserver-users Subject: Re: [mapserver-users] Reporting lat/long from projected map units (Sorry, my last posts went straight to you by accident, I prefer to stay on the list, but gmail for applications not always agrees with me) proj4js has project pages including documentation on the OSGeo wiki. The userguide is here: http://trac.osgeo.org/proj4js/wiki/UserGuide and it immediately explains what you want 2011/1/12 Bistrais, Bob Yes, I can get UTM coordinates back. Can you elaborate a bit on proj4js? I'm not familiar with that. ________________________________ From: Milo van der Linden [mailto:milo at dogodigi.net] Sent: Wednesday, January 12, 2011 11:10 AM To: Bistrais, Bob Subject: Re: [mapserver-users] Reporting lat/long from projected map units Well then one question remains: Are you able to convert screen coords to UTM capturing an onclick event? Because then all you need to do is enhance it with proj4js 2011/1/12 Bistrais, Bob Yes, a web mapping application. Not using Open Layers. We are using PHP-Mapscript/HTML/JavaScript. All queryable data is in shapefiles, again, all of these are in UTM. ________________________________ From: Milo van der Linden [mailto:milo at dogodigi.net] Sent: Wednesday, January 12, 2011 11:03 AM To: Bistrais, Bob Subject: Re: [mapserver-users] Reporting lat/long from projected map units Are you talking bout a web-app? Do you use a client like OpenLayers? What programming language(s) do you use? Is your datasource a database? Like postgis? If you can get UTM coordinates from the mouseclick, the next best option (in my opinion) would be to use proj4js: http://proj4js.org/ Simply embed the js-library ad an event for mouse handling and convert: screen->utm->4326. 2011/1/12 Bistrais, Bob This should be fairly straightforward, but I was wondering what is the easiest and quickest way to convert coordinates on the fly. All my data is in UTM coordinates. I want to report coordinates to the screen in Lat/Long. Changing the projections on the map files to lat/long (EPSG:4326) is not an option, as this will cause problems elsewhere. So what I want to do is take point coordinates, either from a mouse click or from UTM coordinates, project to lat/long, which will be reported in a result window. What is the quickest way to do this? _______________________________________________ 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 Thu Jan 13 08:08:59 2011 From: milo at dogodigi.net (Milo van der Linden) Date: Thu, 13 Jan 2011 17:08:59 +0100 Subject: [mapserver-users] Reporting lat/long from projected map units In-Reply-To: <4EFF8BB964547748A07CA32961810C041A036D36@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C041A036D32@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4EFF8BB964547748A07CA32961810C041A036D33@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4EFF8BB964547748A07CA32961810C041A036D34@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4EFF8BB964547748A07CA32961810C041A036D36@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: Mmm, that shouldn't be to hard. Let me try; var source = new Proj4js.Proj(?EPSG:YOUR_UTM_EPSGCODE?); var dest = new Proj4js.Proj(?EPSG:4326?); . . . // transforming point coordinates var p = new Proj4js.Point(YOUR_UTM_X,YOUR_UTM_Y); Proj4js.transform(source, dest, p); alert(p.x); //WILL ALERT YOUR NEW LON alert(p.y); //WILL ALERT YOUR NEW LAT 2011/1/13 Bistrais, Bob > I downloaded the code and am looking at the Wiki. I don?t see anything > to input screen or UTM coords. Is it in the code somewhere? > > > ------------------------------ > > *From:* Milo van der Linden [mailto:milo at dogodigi.net] > *Sent:* Wednesday, January 12, 2011 12:44 PM > *To:* mapserver-users > > *Subject:* Re: [mapserver-users] Reporting lat/long from projected map > units > > > > (Sorry, my last posts went straight to you by accident, I prefer to stay on > the list, but gmail for applications not always agrees with me) > > proj4js has project pages including documentation on the OSGeo wiki. The > userguide is here: > > http://trac.osgeo.org/proj4js/wiki/UserGuide > > and it immediately explains what you want > > 2011/1/12 Bistrais, Bob > > Yes, I can get UTM coordinates back. Can you elaborate a bit on proj4js? > I?m not familiar with that. > > > ------------------------------ > > *From:* Milo van der Linden [mailto:milo at dogodigi.net] > *Sent:* Wednesday, January 12, 2011 11:10 AM > > > *To:* Bistrais, Bob > *Subject:* Re: [mapserver-users] Reporting lat/long from projected map > units > > > > Well then one question remains: > > Are you able to convert screen coords to UTM capturing an onclick event? > Because then all you need to do is enhance it with proj4js > > 2011/1/12 Bistrais, Bob > > Yes, a web mapping application. Not using Open Layers. We are using > PHP-Mapscript/HTML/JavaScript. All queryable data is in shapefiles, again, > all of these are in UTM. > > > ------------------------------ > > *From:* Milo van der Linden [mailto:milo at dogodigi.net] > *Sent:* Wednesday, January 12, 2011 11:03 AM > *To:* Bistrais, Bob > > > *Subject:* Re: [mapserver-users] Reporting lat/long from projected map > units > > > > Are you talking bout a web-app? Do you use a client like OpenLayers? What > programming language(s) do you use? Is your datasource a database? Like > postgis? > > > > If you can get UTM coordinates from the mouseclick, the next best option > (in my opinion) would be to use proj4js: > > http://proj4js.org/ > > Simply embed the js-library ad an event for mouse handling and convert: > screen->utm->4326. > > 2011/1/12 Bistrais, Bob > > This should be fairly straightforward, but I was wondering what is the > easiest and quickest way to convert coordinates on the fly. All my data is > in UTM coordinates. I want to report coordinates to the screen in > Lat/Long. Changing the projections on the map files to lat/long (EPSG:4326) > is not an option, as this will cause problems elsewhere. So what I want to > do is take point coordinates, either from a mouse click or from UTM > coordinates, project to lat/long, which will be reported in a result > window. What is the quickest way to do this? > > > _______________________________________________ > 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 Jan 13 10:23:11 2011 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Thu, 13 Jan 2011 13:23:11 -0500 Subject: [mapserver-users] Reporting lat/long from projected map units In-Reply-To: References: <4EFF8BB964547748A07CA32961810C041A036D32@SOM-TEAQASMAIL1.som.w2k.state.me.us><4EFF8BB964547748A07CA32961810C041A036D33@SOM-TEAQASMAIL1.som.w2k.state.me.us><4EFF8BB964547748A07CA32961810C041A036D34@SOM-TEAQASMAIL1.som.w2k.state.me.us><4EFF8BB964547748A07CA32961810C041A036D36@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4EFF8BB964547748A07CA32961810C041A036D3A@SOM-TEAQASMAIL1.som.w2k.state.me.us> I have it functioning now, but the input and output values are the same, I'm not seeing any conversion. ________________________________ From: Milo van der Linden [mailto:milo at dogodigi.net] Sent: Thursday, January 13, 2011 11:09 AM To: Bistrais, Bob Cc: mapserver-users Subject: Re: [mapserver-users] Reporting lat/long from projected map units Mmm, that shouldn't be to hard. Let me try; var source = new Proj4js.Proj('EPSG:YOUR_UTM_EPSGCODE'); var dest = new Proj4js.Proj('EPSG:4326'); . . . // transforming point coordinates var p = new Proj4js.Point(YOUR_UTM_X,YOUR_UTM_Y); Proj4js.transform(source, dest, p); alert(p.x); //WILL ALERT YOUR NEW LON alert(p.y); //WILL ALERT YOUR NEW LAT 2011/1/13 Bistrais, Bob I downloaded the code and am looking at the Wiki. I don't see anything to input screen or UTM coords. Is it in the code somewhere? ________________________________ From: Milo van der Linden [mailto:milo at dogodigi.net] Sent: Wednesday, January 12, 2011 12:44 PM To: mapserver-users Subject: Re: [mapserver-users] Reporting lat/long from projected map units (Sorry, my last posts went straight to you by accident, I prefer to stay on the list, but gmail for applications not always agrees with me) proj4js has project pages including documentation on the OSGeo wiki. The userguide is here: http://trac.osgeo.org/proj4js/wiki/UserGuide and it immediately explains what you want 2011/1/12 Bistrais, Bob Yes, I can get UTM coordinates back. Can you elaborate a bit on proj4js? I'm not familiar with that. ________________________________ From: Milo van der Linden [mailto:milo at dogodigi.net] Sent: Wednesday, January 12, 2011 11:10 AM To: Bistrais, Bob Subject: Re: [mapserver-users] Reporting lat/long from projected map units Well then one question remains: Are you able to convert screen coords to UTM capturing an onclick event? Because then all you need to do is enhance it with proj4js 2011/1/12 Bistrais, Bob Yes, a web mapping application. Not using Open Layers. We are using PHP-Mapscript/HTML/JavaScript. All queryable data is in shapefiles, again, all of these are in UTM. ________________________________ From: Milo van der Linden [mailto:milo at dogodigi.net] Sent: Wednesday, January 12, 2011 11:03 AM To: Bistrais, Bob Subject: Re: [mapserver-users] Reporting lat/long from projected map units Are you talking bout a web-app? Do you use a client like OpenLayers? What programming language(s) do you use? Is your datasource a database? Like postgis? If you can get UTM coordinates from the mouseclick, the next best option (in my opinion) would be to use proj4js: http://proj4js.org/ Simply embed the js-library ad an event for mouse handling and convert: screen->utm->4326. 2011/1/12 Bistrais, Bob This should be fairly straightforward, but I was wondering what is the easiest and quickest way to convert coordinates on the fly. All my data is in UTM coordinates. I want to report coordinates to the screen in Lat/Long. Changing the projections on the map files to lat/long (EPSG:4326) is not an option, as this will cause problems elsewhere. So what I want to do is take point coordinates, either from a mouse click or from UTM coordinates, project to lat/long, which will be reported in a result window. What is the quickest way to do this? _______________________________________________ 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 Jan 13 10:47:18 2011 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Thu, 13 Jan 2011 13:47:18 -0500 Subject: [mapserver-users] Reporting lat/long from projected map units In-Reply-To: References: <4EFF8BB964547748A07CA32961810C041A036D32@SOM-TEAQASMAIL1.som.w2k.state.me.us><4EFF8BB964547748A07CA32961810C041A036D33@SOM-TEAQASMAIL1.som.w2k.state.me.us><4EFF8BB964547748A07CA32961810C041A036D34@SOM-TEAQASMAIL1.som.w2k.state.me.us><4EFF8BB964547748A07CA32961810C041A036D36@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4EFF8BB964547748A07CA32961810C041A036D3B@SOM-TEAQASMAIL1.som.w2k.state.me.us> Got it now- I forgot to put in a script tag for the projection definitions. Seems to be working now. Thanks Milo! ________________________________ From: Milo van der Linden [mailto:milo at dogodigi.net] Sent: Thursday, January 13, 2011 11:09 AM To: Bistrais, Bob Cc: mapserver-users Subject: Re: [mapserver-users] Reporting lat/long from projected map units Mmm, that shouldn't be to hard. Let me try; var source = new Proj4js.Proj('EPSG:YOUR_UTM_EPSGCODE'); var dest = new Proj4js.Proj('EPSG:4326'); . . . // transforming point coordinates var p = new Proj4js.Point(YOUR_UTM_X,YOUR_UTM_Y); Proj4js.transform(source, dest, p); alert(p.x); //WILL ALERT YOUR NEW LON alert(p.y); //WILL ALERT YOUR NEW LAT 2011/1/13 Bistrais, Bob I downloaded the code and am looking at the Wiki. I don't see anything to input screen or UTM coords. Is it in the code somewhere? ________________________________ From: Milo van der Linden [mailto:milo at dogodigi.net] Sent: Wednesday, January 12, 2011 12:44 PM To: mapserver-users Subject: Re: [mapserver-users] Reporting lat/long from projected map units (Sorry, my last posts went straight to you by accident, I prefer to stay on the list, but gmail for applications not always agrees with me) proj4js has project pages including documentation on the OSGeo wiki. The userguide is here: http://trac.osgeo.org/proj4js/wiki/UserGuide and it immediately explains what you want 2011/1/12 Bistrais, Bob Yes, I can get UTM coordinates back. Can you elaborate a bit on proj4js? I'm not familiar with that. ________________________________ From: Milo van der Linden [mailto:milo at dogodigi.net] Sent: Wednesday, January 12, 2011 11:10 AM To: Bistrais, Bob Subject: Re: [mapserver-users] Reporting lat/long from projected map units Well then one question remains: Are you able to convert screen coords to UTM capturing an onclick event? Because then all you need to do is enhance it with proj4js 2011/1/12 Bistrais, Bob Yes, a web mapping application. Not using Open Layers. We are using PHP-Mapscript/HTML/JavaScript. All queryable data is in shapefiles, again, all of these are in UTM. ________________________________ From: Milo van der Linden [mailto:milo at dogodigi.net] Sent: Wednesday, January 12, 2011 11:03 AM To: Bistrais, Bob Subject: Re: [mapserver-users] Reporting lat/long from projected map units Are you talking bout a web-app? Do you use a client like OpenLayers? What programming language(s) do you use? Is your datasource a database? Like postgis? If you can get UTM coordinates from the mouseclick, the next best option (in my opinion) would be to use proj4js: http://proj4js.org/ Simply embed the js-library ad an event for mouse handling and convert: screen->utm->4326. 2011/1/12 Bistrais, Bob This should be fairly straightforward, but I was wondering what is the easiest and quickest way to convert coordinates on the fly. All my data is in UTM coordinates. I want to report coordinates to the screen in Lat/Long. Changing the projections on the map files to lat/long (EPSG:4326) is not an option, as this will cause problems elsewhere. So what I want to do is take point coordinates, either from a mouse click or from UTM coordinates, project to lat/long, which will be reported in a result window. What is the quickest way to do this? _______________________________________________ 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 thomas.bonfort at gmail.com Thu Jan 13 11:35:29 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 13 Jan 2011 20:35:29 +0100 Subject: [mapserver-users] Stacked bar charts with mapserver? In-Reply-To: <1294897661.7962.4.camel@mobil.geoworld.de> References: <1294868125.7962.1.camel@mobil.geoworld.de> <1294897661.7962.4.camel@mobil.geoworld.de> Message-ID: Nicol, have a look at http://trac.osgeo.org/mapserver/ticket/3482 for a patch concerning this issue. regards, thomas On Thu, Jan 13, 2011 at 06:47, Nicol Hermann wrote: > Thomas, > > sound promising, cool. > I checked the image > misc/expected/chartlayer_vbar.png > and this is exactly what I am looking for. > Unfortunately the test for this specific usecase > ('misc/chartlayer_vbar.map') fails with mapserver 5.6.5 when i run > './run_test.py'. > .. > ?Processing: chartlayer_vbar.map > * ? ?results dont match, TEST FAILED. > .. > A blank image is returned > Do you have an idea why? > > The debug output contains no further information: > > [Thu Jan 13 06:41:18 2011].786876 msDrawMap(): Layer 0 (charts), 0.129s > [Thu Jan 13 06:41:18 2011].786951 msDrawMap(): Drawing Label Cache, > 0.000s > [Thu Jan 13 06:41:18 2011].786981 msDrawMap() total time: 0.129s > [Thu Jan 13 06:41:18 2011].790139 msSaveImage() total time: 0.003s > [Thu Jan 13 06:41:18 2011].790207 msFreeMap(): freeing map at 0x272a760. > [Thu Jan 13 06:41:18 2011].790254 freeLayer(): freeing layer at > 0x2732290. > [Thu Jan 13 06:41:18 2011].790298 shp2img total time: 0.150s > > > Thanks! > Best regards > Nicol > > > Am Donnerstag, den 13.01.2011, 01:15 +0100 schrieb thomas bonfort: >> Nicol, >> you have the *vbar examples in msautotest that show how to obtain >> stacked vertical bar graphs, I assume that's what your looking for? >> >> regards, >> thomas >> >> On Wed, Jan 12, 2011 at 22:35, Nicol Hermann wrote: >> > Hello list, >> > >> > I wonder if MapServer is able to build stacked bar charts? >> > After checking the wiki documentation at: >> > http://mapserver.org/output/dynamic_charting.html#bar-graphs >> > i am afraid the answer is no. But want to double check with the group. >> > >> > Thanks for any pointers >> > Best regards >> > Nicol >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > > From milo at dogodigi.net Thu Jan 13 12:27:45 2011 From: milo at dogodigi.net (Milo van der Linden) Date: Thu, 13 Jan 2011 21:27:45 +0100 Subject: [mapserver-users] Reporting lat/long from projected map units In-Reply-To: <4EFF8BB964547748A07CA32961810C041A036D3B@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C041A036D32@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4EFF8BB964547748A07CA32961810C041A036D33@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4EFF8BB964547748A07CA32961810C041A036D34@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4EFF8BB964547748A07CA32961810C041A036D36@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4EFF8BB964547748A07CA32961810C041A036D3B@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: You're welcome! 2011/1/13 Bistrais, Bob > Got it now- I forgot to put in a script tag for the projection > definitions. > > Seems to be working now. > > > > Thanks Milo! > > > ------------------------------ > > *From:* Milo van der Linden [mailto:milo at dogodigi.net] > *Sent:* Thursday, January 13, 2011 11:09 AM > *To:* Bistrais, Bob > *Cc:* mapserver-users > > *Subject:* Re: [mapserver-users] Reporting lat/long from projected map > units > > > > Mmm, that shouldn't be to hard. Let me try; > > var source = new Proj4js.Proj(?EPSG:YOUR_UTM_EPSGCODE?); > > var dest = new Proj4js.Proj(?EPSG:4326?); . . . > > > // transforming point coordinates > > var p = new Proj4js.Point(YOUR_UTM_X,YOUR_UTM_Y); > > Proj4js.transform(source, dest, p); > > > alert(p.x); //WILL ALERT YOUR NEW LON > > alert(p.y); //WILL ALERT YOUR NEW LAT > > > > 2011/1/13 Bistrais, Bob > > I downloaded the code and am looking at the Wiki. I don?t see anything to > input screen or UTM coords. Is it in the code somewhere? > > > ------------------------------ > > *From:* Milo van der Linden [mailto:milo at dogodigi.net] > *Sent:* Wednesday, January 12, 2011 12:44 PM > *To:* mapserver-users > > > *Subject:* Re: [mapserver-users] Reporting lat/long from projected map > units > > > > (Sorry, my last posts went straight to you by accident, I prefer to stay on > the list, but gmail for applications not always agrees with me) > > proj4js has project pages including documentation on the OSGeo wiki. The > userguide is here: > > http://trac.osgeo.org/proj4js/wiki/UserGuide > > and it immediately explains what you want > > 2011/1/12 Bistrais, Bob > > Yes, I can get UTM coordinates back. Can you elaborate a bit on proj4js? > I?m not familiar with that. > > > ------------------------------ > > *From:* Milo van der Linden [mailto:milo at dogodigi.net] > *Sent:* Wednesday, January 12, 2011 11:10 AM > > > *To:* Bistrais, Bob > *Subject:* Re: [mapserver-users] Reporting lat/long from projected map > units > > > > Well then one question remains: > > Are you able to convert screen coords to UTM capturing an onclick event? > Because then all you need to do is enhance it with proj4js > > 2011/1/12 Bistrais, Bob > > Yes, a web mapping application. Not using Open Layers. We are using > PHP-Mapscript/HTML/JavaScript. All queryable data is in shapefiles, again, > all of these are in UTM. > > > ------------------------------ > > *From:* Milo van der Linden [mailto:milo at dogodigi.net] > *Sent:* Wednesday, January 12, 2011 11:03 AM > *To:* Bistrais, Bob > > > *Subject:* Re: [mapserver-users] Reporting lat/long from projected map > units > > > > Are you talking bout a web-app? Do you use a client like OpenLayers? What > programming language(s) do you use? Is your datasource a database? Like > postgis? > > > > If you can get UTM coordinates from the mouseclick, the next best option > (in my opinion) would be to use proj4js: > > http://proj4js.org/ > > Simply embed the js-library ad an event for mouse handling and convert: > screen->utm->4326. > > 2011/1/12 Bistrais, Bob > > This should be fairly straightforward, but I was wondering what is the > easiest and quickest way to convert coordinates on the fly. All my data is > in UTM coordinates. I want to report coordinates to the screen in > Lat/Long. Changing the projections on the map files to lat/long (EPSG:4326) > is not an option, as this will cause problems elsewhere. So what I want to > do is take point coordinates, either from a mouse click or from UTM > coordinates, project to lat/long, which will be reported in a result > window. What is the quickest way to do this? > > > _______________________________________________ > 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 kristian_frost7 at hotmail.com Fri Jan 14 01:19:55 2011 From: kristian_frost7 at hotmail.com (Frost89) Date: Fri, 14 Jan 2011 01:19:55 -0800 (PST) Subject: [mapserver-users] Re: Problem with ECW files In-Reply-To: References: <1294923313264-5918048.post@n2.nabble.com> Message-ID: <1294996795169-5921099.post@n2.nabble.com> Tamas Szekeres wrote: > Try setting GDAL_DRIVER_PATH using SetConfigOption to the path of the > plugin directory. Thanks for the quick reply :) I'm not sure where I'm supposed to use SetConfigOption? - Kristian Frost -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problem-with-ECW-files-tp5918048p5921099.html Sent from the Mapserver - User mailing list archive at Nabble.com. From to.tonton at gmail.com Fri Jan 14 04:45:18 2011 From: to.tonton at gmail.com (Tonton) Date: Fri, 14 Jan 2011 13:45:18 +0100 Subject: [mapserver-users] PointSymboliser Message-ID: hello i try to use star for point symboliser like this sld definition ! star #CC0066 #FFCCCC 10.0 but it's not working great WMS server error. Invalid SLD document how to validate sld file for mapserver ? Tonton -------------- next part -------------- An HTML attachment was scrubbed... URL: From simone.frigerio at univie.ac.at Fri Jan 14 05:17:20 2011 From: simone.frigerio at univie.ac.at (Simone Frigerio) Date: Fri, 14 Jan 2011 14:17:20 +0100 Subject: [mapserver-users] Symbol for striped polygons Message-ID: Hi! I need to pubblish a polygon with different styles and classes. Especially I am trying to define a SYMBOL to fill polygon shapes whit stripes and trasparent background color. I am not expert on this issue, can you make me some examples please? Thanks. Simone From thomas.bonfort at gmail.com Fri Jan 14 05:37:46 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 14 Jan 2011 14:37:46 +0100 Subject: [mapserver-users] Symbol for striped polygons In-Reply-To: References: Message-ID: lookup HATCH in docs. regards, thomas On Fri, Jan 14, 2011 at 14:17, Simone Frigerio wrote: > Hi! > I need to pubblish a polygon with different styles and classes. > Especially I am trying to define a SYMBOL to fill polygon shapes whit > stripes and trasparent background color. > I am not expert on this issue, can you make me some examples please? > > Thanks. > Simone > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From thomas.ellett at statkart.no Fri Jan 14 07:28:34 2011 From: thomas.ellett at statkart.no (tellett) Date: Fri, 14 Jan 2011 07:28:34 -0800 (PST) Subject: [mapserver-users] Character Limit for NAME and GROUP Message-ID: <1295018914600-5922135.post@n2.nabble.com> Hi All, I'm currently coming up against a limitation in mapserver with regards character limits for certain elements, namely 'NAME' and 'GROUP'. It seems theres a 54 character limit for these, does anybody know if this is correct and if there's a possibility to fix it ( I appreciate this should be moved to the dev list if a change can be made). Regards Tom -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Character-Limit-for-NAME-and-GROUP-tp5922135p5922135.html Sent from the Mapserver - User mailing list archive at Nabble.com. From yassefa at dmsolutions.ca Fri Jan 14 09:21:19 2011 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Fri, 14 Jan 2011 12:21:19 -0500 Subject: [mapserver-users] PointSymboliser In-Reply-To: References: Message-ID: <4D30860F.1050409@dmsolutions.ca> Hi, You could check in http://www.mapserver.org/ogc/sld.html section *Table 9. PointSymbolizer *for working examples and sld docs. regards, On 14/01/2011 7:45 AM, Tonton wrote: > > hello > i try to use star for point symboliser like this sld definition ! > > > > > > star > > #CC0066 > > > #FFCCCC > > > > 10.0 > > > > > but it's not working great > > WMS server error. Invalid SLD document > how to validate sld file for mapserver ? > > Tonton > > > _______________________________________________ > 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 anumod514 at rediffmail.com Fri Jan 14 19:48:35 2011 From: anumod514 at rediffmail.com (anumod p) Date: 15 Jan 2011 03:48:35 -0000 Subject: [mapserver-users] Re: mapserver-users Digest, Vol 32, Issue 51 Message-ID: <1285175425.S.17113.18307.R.rfs113, rfs113, R, 622, 3955.Z.F.H.Tm1hcHNlcnZlci11c2Vycy1yZXF1ZXN0QGxpc3RzLgBtYXBzZXJ2ZXItdXNlcnMgRGlnZXN0LCBWb2wgMzI_.f5-147-107.old.1295063314.47277@webmail.rediffmail.com> How to write code to calculate distance between two points using pointObject  using PHP Map server. Also how to write code to find shortest path from one point to other using php mapserver. On Wed, 22 Sep 2010 22:40:25 +0530 mapserver-users-request at lists.osgeo.org wrote >Send mapserver-users mailing list submissions to >mapserver-users at lists.osgeo.org > >To subscribe or unsubscribe via the World Wide Web, visit >http://lists.osgeo.org/mailman/listinfo/mapserver-users >or, via email, send a message with subject or body 'help' to >mapserver-users-request at lists.osgeo.org > >You can reach the person managing the list at >mapserver-users-owner at lists.osgeo.org > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of mapserver-users digest..." > > >Today's Topics: > > 1. Re: Coments about the Tickedt 3541 (Alan Boudreault) > > >---------------------------------------------------------------------- > >Message: 1 >Date: Wed, 22 Sep 2010 13:11:19 -0400 >From: Alan Boudreault <aboudreault at mapgears.com> >Subject: Re: [mapserver-users] Coments about the Tickedt 3541 >To: mapserver-users at lists.osgeo.org >Message-ID: <201009221311.20241.aboudreault at mapgears.com> >Content-Type: text/plain; charset="iso-8859-1" > >Hmm... very strange. Although I am not able to reprodude it under Unix.... It >seems to be an Oracle bug. > >On September 22, 2010 03:35:38 am Jorge Bellido Diez wrote: >> We reproduced the same problem doing requets to the OCG Services using >> OpenLayers 2.8 or gvSig 1.1.2 Doing a getfeatureinfo to a Oracle layer of >> an WMS Service or getfeatrue to a Oracle layer of an WFS Service the >> Oracle Server produce a log file and a dump memory. Then I coud see >> duplicates values in my primary key, furthermore primary index still >> points to old data even though the user has no UPDATE-GRANTS. This >> behavior seems to be random >> >> These are our configuration: >> - MS4W 3.0 Beta 10 >> - MapServer 5.6.1 >> - Personal Oracle Database 10g Release 10.2.0.1.0 - 64bit Production >> >> This is the way we declare an Oracle Layer in the map file: >> ---------------- >> LAYER >> STATUS ON >> CONNECTIONTYPE oraclespatial >> CONNECTION "admcarto/admcarto at ORA10GEX" >> NAME "PoligonosSigpac" >> PROJECTION >> "init=epsg:23030" >> END >> >> TYPE POLYGON >> METADATA >> "wms_title" "Poligonos Sigpac 2009" >> "wms_srs" "EPSG:23030" >> "wms_name" "poligonos" >> "wms_server_version" "1.1.1" >> "wms_format" "image/png" >> "wms_transparent" "true" >> "wms_extent" "470000 4700000 610000 4820000" >> END >> >> DATA "GEOMETRY FROM (SELECT * FROM GV_SIGPAC_POL_ED50) USING UNIQUE >gid >> SRID 82337" >> >> CLASS >> NAME "Poligonos" >> STYLE >> OUTLINECOLOR 178 0 255 >> END >> TEMPLATE "ttt_query.html" >> END >> END >> -------------- >> >> This is a little portion of one of this log files with the error code: >> >> Dump file f:\oracle\admin\ora10gex\udump\ora10gex_ora_1408.trc >> Wed Sep 01 12:56:09 2010 >> ORACLE V10.2.0.1.0 - 64bit Production vsnsta=0 >> vsnsql=14 vsnxtr=3 >> Personal Oracle Database 10g Release 10.2.0.1.0 - 64bit Production With the >> Partitioning, OLAP and Data Mining options Windows NT Version V5.2 Service >> Pack 2 CPU :2 - type 8664, 1 Physical Cores >> Process Affinity : 0x0000000000000000 >> Memory (Avail/Total): Ph:1786M/4031M, Ph+PgF:5772M/7808M Instance name: >> ora10gex >> >> Redo thread mounted by this instance: 1 >> >> Oracle process number: 19 >> >> Windows thread id: 1408, image: ORACLE.EXE (SHAD) >> >> >> *** SERVICE NAME:(ORA10GEX) 2010-09-01 12:56:09.919 >> *** SESSION ID:(159.12216) 2010-09-01 12:56:09.919 >> ********** Internal heap ERROR 17182 addr=000007FF985DDC24 ********* >> ***** Dump of memory around addr 000007FF985DDC24: >> 7FF985DCC20 3CC3093F 090E2C10 09474557 [?..<.,..WEG.] >> 7FF985DCC30 535005C4 44511B43 3CC3093F 152B2D10 [..PSC.QD?..<.-+.] >> >> .. >> .. >> .. >> >> Permanent space = 1732608 >> ****************************************************** >> Hla: 255 >> *** 2010-09-01 12:56:10.966 >> ksedmp: internal or fatal error >> ORA-00600: internal error code, arguments: [17182], [0x7FF985DDC24], [], >> [], [], [], [], [] Current SQL statement for this session: SELECT gid, >> TER_HIST, AREA, PERIMETRO, GID, PROVINCIA, GEOMETRY FROM (SELECT * FROM >> GT_PROVINCIAS_ED50) WHERE SDO_FILTER( GEOMETRY, MDSYS.SDO_GEOMETRY(2003, >> :srid, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates >> ),'querytype=window') = 'TRUE' ----- Call Stack Trace ----- >> calling call entry argument values in hex >> location type point (? means dubious value) >> -------------------- -------- -------------------- >> ---------------------------- >> >> .. >> .. >> .. >> >> >> >> Thanks, Jorge. >> >> >> -----Mensaje original----- >> De: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de Sumit Sharma >> Enviado el: mi?rcoles, 15 de septiembre de 2010 17:05 Para: >> mapserver-users at lists.osgeo.org >> Asunto: [mapserver-users] Re: Problems with MapServer and Oracle Spatial >> >> >> Thanks for you response. >> As suggested by you I have created a ticket. >> Ticket number is 3541. >> -Sumit >> -- >> View this message in context: >> http://osgeo-org.1803224.n2.nabble.com/Problems-with-MapServer-and-Oracle- >> Spatial-tp5518303p5534732.html Sent from the Mapserver - User mailing list >> archive at Nabble.com. _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >-- >Alan Boudreault >Mapgears >http://www.mapgears.com >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100922/36653591/attachment.html > >------------------------------ > >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users > > >End of mapserver-users Digest, Vol 32, Issue 51 >*********************************************** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From anumod514 at rediffmail.com Fri Jan 14 19:50:26 2011 From: anumod514 at rediffmail.com (anumod p) Date: 15 Jan 2011 03:50:26 -0000 Subject: [mapserver-users] Re: mapserver-users Digest, Vol 36, Issue 20 Message-ID: <1294953081.S.14844.50759.F.H.Tm1hcHNlcnZlci11c2Vycy1yZXF1ZXN0QGxpc3RzLgBtYXBzZXJ2ZXItdXNlcnMgRGlnZXN0LCBWb2wgMzY_.f5-236-233.old.1295063426.54520@webmail.rediffmail.com> Attention please How to write code calculate distance between two points using php mapserver. How to write code to find shortest path using php mapserver. On Fri, 14 Jan 2011 02:41:21 +0530 mapserver-users-request at lists.osgeo.org wrote >Send mapserver-users mailing list submissions to >mapserver-users at lists.osgeo.org > >To subscribe or unsubscribe via the World Wide Web, visit >http://lists.osgeo.org/mailman/listinfo/mapserver-users >or, via email, send a message with subject or body 'help' to >mapserver-users-request at lists.osgeo.org > >You can reach the person managing the list at >mapserver-users-owner at lists.osgeo.org > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of mapserver-users digest..." > > >Today's Topics: > > 1. Re: Reporting lat/long from projected map units > (Milo van der Linden) > > >---------------------------------------------------------------------- > >Message: 1 >Date: Thu, 13 Jan 2011 17:08:59 +0100 >From: Milo van der Linden <milo at dogodigi.net> >Subject: Re: [mapserver-users] Reporting lat/long from projected map >units >To: "Bistrais, Bob" <Bob.Bistrais at maine.gov> >Cc: mapserver-users <mapserver-users at lists.osgeo.org> >Message-ID: ><AANLkTimnt1n+sfvnXjJQ0Rk65Hf8LmFewb1_MQ5hV37j at mail.gmail.com> >Content-Type: text/plain; charset="utf-8" > >Mmm, that shouldn't be to hard. Let me try; > >var source = new Proj4js.Proj(???EPSG:YOUR_UTM_EPSGCODE???); >var dest = new Proj4js.Proj(???EPSG:4326???); . . . > >// transforming point coordinates >var p = new Proj4js.Point(YOUR_UTM_X,YOUR_UTM_Y); >Proj4js.transform(source, dest, p); > >alert(p.x); //WILL ALERT YOUR NEW LON >alert(p.y); //WILL ALERT YOUR NEW LAT > > >2011/1/13 Bistrais, Bob <Bob.Bistrais at maine.gov> > >> I downloaded the code and am looking at the Wiki. I don???t see anything >> to input screen or UTM coords. Is it in the code somewhere? >> >> >> ------------------------------ >> >> *From:* Milo van der Linden [mailto:milo at dogodigi.net] >> *Sent:* Wednesday, January 12, 2011 12:44 PM >> *To:* mapserver-users >> >> *Subject:* Re: [mapserver-users] Reporting lat/long from projected map >> units >> >> >> >> (Sorry, my last posts went straight to you by accident, I prefer to stay on >> the list, but gmail for applications not always agrees with me) >> >> proj4js has project pages including documentation on the OSGeo wiki. The >> userguide is here: >> >> http://trac.osgeo.org/proj4js/wiki/UserGuide >> >> and it immediately explains what you want >> >> 2011/1/12 Bistrais, Bob <Bob.Bistrais at maine.gov> >> >> Yes, I can get UTM coordinates back. Can you elaborate a bit on proj4js? >> I???m not familiar with that. >> >> >> ------------------------------ >> >> *From:* Milo van der Linden [mailto:milo at dogodigi.net] >> *Sent:* Wednesday, January 12, 2011 11:10 AM >> >> >> *To:* Bistrais, Bob >> *Subject:* Re: [mapserver-users] Reporting lat/long from projected map >> units >> >> >> >> Well then one question remains: >> >> Are you able to convert screen coords to UTM capturing an onclick event? >> Because then all you need to do is enhance it with proj4js >> >> 2011/1/12 Bistrais, Bob <Bob.Bistrais at maine.gov> >> >> Yes, a web mapping application. Not using Open Layers. We are using >> PHP-Mapscript/HTML/JavaScript. All queryable data is in shapefiles, again, >> all of these are in UTM. >> >> >> ------------------------------ >> >> *From:* Milo van der Linden [mailto:milo at dogodigi.net] >> *Sent:* Wednesday, January 12, 2011 11:03 AM >> *To:* Bistrais, Bob >> >> >> *Subject:* Re: [mapserver-users] Reporting lat/long from projected map >> units >> >> >> >> Are you talking bout a web-app? Do you use a client like OpenLayers? What >> programming language(s) do you use? Is your datasource a database? Like >> postgis? >> >> >> >> If you can get UTM coordinates from the mouseclick, the next best option >> (in my opinion) would be to use proj4js: >> >> http://proj4js.org/ >> >> Simply embed the js-library ad an event for mouse handling and convert: >> screen->utm->4326. >> >> 2011/1/12 Bistrais, Bob <Bob.Bistrais at maine.gov> >> >> This should be fairly straightforward, but I was wondering what is the >> easiest and quickest way to convert coordinates on the fly. All my data is >> in UTM coordinates. I want to report coordinates to the screen in >> Lat/Long. Changing the projections on the map files to lat/long (EPSG:4326) >> is not an option, as this will cause problems elsewhere. So what I want to >> do is take point coordinates, either from a mouse click or from UTM >> coordinates, project to lat/long, which will be reported in a result >> window. What is the quickest way to do this? >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> >> >> >> >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110113/bc3cccd9/attachment-0001.html > >------------------------------ > >_______________________________________________ >mapserver-users mailing list >mapserver-users at lists.osgeo.org >http://lists.osgeo.org/mailman/listinfo/mapserver-users > > >End of mapserver-users Digest, Vol 36, Issue 20 >*********************************************** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From forest21000 at yahoo.cn Sun Jan 16 04:55:49 2011 From: forest21000 at yahoo.cn (Forest) Date: Sun, 16 Jan 2011 20:55:49 +0800 (CST) Subject: [mapserver-users] Question about shp2img In-Reply-To: <20110115035906.700C1E01C33@lists.osgeo.org> Message-ID: <51378.3741.qm@web92103.mail.cnh.yahoo.com> Hi everyone, ??? I've used shp2img to generate the tile Image for my WebGIS System which is similary to google map.When I used the shp2img to generate?image base on my shpfiles,I found that the the extent of longitude must be equal to the extent of latitude.It means it must be square,otherwise the previous Image may be have the same map data with the next map. For example,0_0.png's right part will be the same with 0_1.png's left part. ?? Is there anyone can tell me how to solve the problem? Any answer will be appreciated,thank you very much. ?? Hope u everything goes well! -------------- next part -------------- An HTML attachment was scrubbed... URL: From bogdansuvar at gmail.com Sun Jan 16 10:11:05 2011 From: bogdansuvar at gmail.com (bs) Date: Sun, 16 Jan 2011 10:11:05 -0800 (PST) Subject: [mapserver-users] Re: mapscript.pointObj error In-Reply-To: <1294334546495-5896352.post@n2.nabble.com> References: <1294334546495-5896352.post@n2.nabble.com> Message-ID: <1295201465414-5929642.post@n2.nabble.com> The error is also triggered further down the code upon assigning map.Draw() to the image variable. Any clues what might that be triggered? Or any links/sites where I could read more about mapscript python bindings? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/mapscript-pointObj-error-tp5896352p5929642.html Sent from the Mapserver - User mailing list archive at Nabble.com. From simone.frigerio at univie.ac.at Mon Jan 17 01:55:56 2011 From: simone.frigerio at univie.ac.at (Simone Frigerio) Date: Mon, 17 Jan 2011 10:55:56 +0100 Subject: [mapserver-users] CLASS visualization with different attribute value Message-ID: Hello, I need to visualize a POLYGON with one class composed by different values of the same attribute. This is the string I used, but no visualizations occour. LAYER NAME "COMBI_DF_RF_SL" TYPE POLYGON .. CLASSITEM "Combis" CLASS NAME "PROVA2" EXPRESSION ([Combis] = 0_2_0_4_5 AND [Combis] = 1_2_3_4_5) STYLE COLOR 251 25 11 ... END END END The attribute "Combis" has thousands of recordsand different values. Could be possible aggregate in a EXPRESSION string like i did with pixel value for raster? Thanks! Simone From ivan.mincik at gmail.com Mon Jan 17 03:54:35 2011 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Mon, 17 Jan 2011 12:54:35 +0100 Subject: [mapserver-users] Is "--with-experimental-png" still experimental ? Message-ID: Hi, I am using compile option "--with-experimental-png" for some 2 Years on all production machines to produce nice quantized PNG images. I would like to ask, if this option should be still marked as experimental ? My setting: 1. Debian Lenny 2. Mapserver 5.2 - 5.6 3. Mapfile IMAGETYPE 'AGG_PNG' OUTPUTFORMAT NAME 'AGG_PNG' DRIVER 'AGG/PNG' MIMETYPE 'image/png' IMAGEMODE RGBA FORMATOPTION 'QUANTIZE_FORCE=ON' FORMATOPTION 'QUANTIZE_DITHER=OFF' FORMATOPTION 'QUANTIZE_COLORS=256' FORMATOPTION 'INTERLACE=OFF' EXTENSION 'png' END Thanks, Ivan From thomas.bonfort at gmail.com Mon Jan 17 04:09:26 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 17 Jan 2011 13:09:26 +0100 Subject: [mapserver-users] Is "--with-experimental-png" still experimental ? In-Reply-To: References: Message-ID: Ivan, for the 5.x branches, it will stay like that. for the 6.0 and subsequent releases, the flag is removed and the functionality is native. regards, thomas On Mon, Jan 17, 2011 at 12:54, Ivan Mincik wrote: > Hi, > I am using compile option ?"--with-experimental-png" for some 2 Years > on all production machines to produce nice quantized PNG images. I > would like to ask, if this option should be still marked as > experimental ? > > > My setting: > 1. Debian Lenny > 2. Mapserver 5.2 - 5.6 > 3. Mapfile > > ? ? ? IMAGETYPE 'AGG_PNG' > ? ? ? OUTPUTFORMAT > ? ? ? ? ? ? ? NAME 'AGG_PNG' > ? ? ? ? ? ? ? DRIVER 'AGG/PNG' > ? ? ? ? ? ? ? MIMETYPE 'image/png' > ? ? ? ? ? ? ? IMAGEMODE RGBA > ? ? ? ? ? ? ? FORMATOPTION 'QUANTIZE_FORCE=ON' > ? ? ? ? ? ? ? FORMATOPTION 'QUANTIZE_DITHER=OFF' > ? ? ? ? ? ? ? FORMATOPTION 'QUANTIZE_COLORS=256' > ? ? ? ? ? ? ? FORMATOPTION 'INTERLACE=OFF' > ? ? ? ? ? ? ? EXTENSION 'png' > ? ? ? END > > Thanks, > Ivan > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jmckenna at gatewaygeomatics.com Mon Jan 17 06:52:08 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 17 Jan 2011 10:52:08 -0400 Subject: [mapserver-users] MS4W 3.0 released! Message-ID: <4D345798.700@gatewaygeomatics.com> I am very happy to announce that MapServer for Windows (MS4W) version 3.0 is now available, with improvements and bug fixes for many libraries. I also updated the Windows Setup Installer, and made some changes there was well. Here are the download links: Windows Setup Installer: http://www.maptools.org/dl/ms4w/ms4w-3.0-setup.exe Archive: http://www.maptools.org/dl/ms4w/ms4w_3.0.zip As always I encourage feedback, so if you find any problems please file a bug in the the bug tracker, noting the 3.0 version in your summary (login or create an account at: http://bugzilla.maptools.org/query.cgi?GoAheadAndLogIn=1 then search the "MS4W" product to check for existing tickets, and then click "New' to file a ticket). Here is the log of the recent changes for this release: - upgraded MapServer and MapScript to 5.6.5 release (ticket 2246) - upgraded GDAL to 1.7.3 (ticket 2280) - upgraded Apache to 2.2.17 (ticket 2279) - upgraded PHP to 5.3.5 (ticket 2278) - rebuilt PHP with exif support (ticket 2261) - upgraded mod_fcgid to 2.3.6 (ticket 2281) - fixed GIF symbol rendering problem based on size (ticket 2094) - upgraded to PostgreSQL 9.0.2 support for GDAL - upgraded to jpeg 8b support for GDAL and MapServer - upgraded to zlib 1.2.5 support for GDAL and MapServer - upgraded to geotiff 1.3.1-dev support for GDAL - upgraded to xerces 3.1.1 support for GDAL - upgraded to HDF5 5.1.8 support for GDAL - upgraded to OpenSSL 1.0.0c support for GDAL - upgraded to CURL 7.21.3 support for GDAL and MapServer - upgraded to Freetype 2.4.4 support for MapServer - upgraded to Iconv 1.11.1 support for MapServer - upgraded to libxml2 2.7.7 support for MapServer - added shptreetst utility (ticket 2253) And many more improvements through the long Beta release plan! (history: http://www.maptools.org/ms4w/index.phtml?page=HISTORY.txt) Thank you for your continued use and support of the MapServer for Windows product. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From ivan.mincik at gmail.com Mon Jan 17 07:17:46 2011 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Mon, 17 Jan 2011 16:17:46 +0100 Subject: [mapserver-users] Is "--with-experimental-png" still experimental ? In-Reply-To: References: Message-ID: On Mon, Jan 17, 2011 at 1:09 PM, thomas bonfort wrote: > Ivan, > for the 5.x branches, it will stay like that. > for the 6.0 and subsequent releases, the flag is removed and the > functionality is native. Thanks a lot for answer. Ivan From Steve.Lime at state.mn.us Mon Jan 17 08:49:12 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 17 Jan 2011 10:49:12 -0600 Subject: [mapserver-users] CLASS visualization with different attribute value In-Reply-To: References: Message-ID: The expression is invalid since 0_2_0_4_5 isn't quoted and isn't a number. Try: EXPRESSION ("[Combis]" = "0_2_0_4_5" AND "[Combis]" = "1_2_3_4_5") Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Simone Frigerio [simone.frigerio at univie.ac.at] Sent: Monday, January 17, 2011 3:55 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] CLASS visualization with different attribute value Hello, I need to visualize a POLYGON with one class composed by different values of the same attribute. This is the string I used, but no visualizations occour. LAYER NAME "COMBI_DF_RF_SL" TYPE POLYGON .. CLASSITEM "Combis" CLASS NAME "PROVA2" EXPRESSION ([Combis] = 0_2_0_4_5 AND [Combis] = 1_2_3_4_5) STYLE COLOR 251 25 11 ... END END END The attribute "Combis" has thousands of recordsand different values. Could be possible aggregate in a EXPRESSION string like i did with pixel value for raster? Thanks! Simone _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jpass at bgs.ac.uk Mon Jan 17 09:07:17 2011 From: jpass at bgs.ac.uk (Passmore, James H.) Date: Mon, 17 Jan 2011 17:07:17 +0000 Subject: [mapserver-users] Z_BEST_COMPRESSION undeclared Error on MapServer 5.6.5 make. Message-ID: <4DC99887ECFBA1499899FACCDFF7F21A1FA22AA2FE@nerckwmb1.ad.nerc.ac.uk> I'm trying to compile MapServer 5.6.5 on Ubuntu 10.10, the ultimate aim is to add a patch to support the INSPIRE language requirement (otherwise I'd use one of the existing binaries). I can run configure ( ./configure --with-ogr --with-gdal --with-wfsclient --with-wmsclient --with-proj --with-wcs --with-postgis --with-geos --with-sos --with-experimental-png --with-fribidi-config --with-threads --enable-debug --with-wfs ) and this completes with no errors. ZLIB is found: configure: checking where Zlib is installed... checking for zlibVersion in -lz... yes using libz from system libs (-DUSE_ZLIB). and I have reported: MapServer is now configured for -------------- Compiler Info ------------- C compiler: gcc -g -fPIC -Wall C++ compiler: g++ -g -fPIC -Wall Debug: -g Generic NINT: -------------- Renderer Settings --------- OpenGL support: zlib support: -DUSE_ZLIB png support: palette rgba png support: -DUSE_RGBA_PNG jpeg support: iconv support: -DUSE_ICONV AGG support: -DUSE_AGG Cairo (SVG,PDF) support: Ming(flash) support: PDFLib support: -------------- Support Libraries --------- Proj.4 support: -DUSE_PROJ Libxml2 support: -DUSE_LIBXML2 FriBidi support: -DUSE_FRIBIDI Curl support: -DUSE_CURL FastCGI support: Threading support: -DUSE_THREAD GEOS support: -DUSE_GEOS -DGEOS_HAS_SIMPLIFY -------------- Data Format Drivers ------- native tiff support: PostGIS support: -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION EPPL7 support: -DUSE_EPPL ArcSDE support: OGR support: -DUSE_OGR GDAL support: -DUSE_GDAL Oracle Spatial support: -------------- OGC Services -------------- WMS Server: -DUSE_WMS_SVR WMS Client: -DUSE_WMS_LYR WFS Server: -DUSE_WFS_SVR WFS Client: -DUSE_WMS_LYR WCS Server: -DUSE_WCS_SVR SOS Server: -DUSE_SOS_SVR -------------- MapScript ----------------- PHP MapScript: no However when I run make I get the following error: local/include -I/usr/include/libxml2 -I/usr/local/include maprgbapng.c -o maprgbapng.o maprgbapng.c: In function ?ms_png_write_image_init?: maprgbapng.c:146: error: ?Z_BEST_COMPRESSION? undeclared (first use in this function) maprgbapng.c:146: error: (Each undeclared identifier is reported only once maprgbapng.c:146: error: for each function it appears in.) make: *** [maprgbapng.o] Error 1 Can anyone tell me where I might be going wrong? thanks James Passmore GIS and WWW Specialist Information Systems and Infrastructure British Geological Survey -- This message (and any attachments) is for the recipient only NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system. From simone.frigerio at univie.ac.at Mon Jan 17 09:20:29 2011 From: simone.frigerio at univie.ac.at (Simone Frigerio) Date: Mon, 17 Jan 2011 18:20:29 +0100 Subject: [mapserver-users] CLASS visualization with different attribute value In-Reply-To: References: Message-ID: Thanks for support, Steve. In the middle I tried also the expression: CLASS NAME "PROVA7" GROUP "group7" EXPRESSION /0_2_0_4_5|1_2_3_4_5/ STYLE SYMBOL "vertical-DF" SIZE 10 .... It is working. Is it conceptually the same? Thanks. s On Mon, January 17, 2011 17:49, Lime, Steve D (DNR) wrote: > The expression is invalid since 0_2_0_4_5 isn't quoted and isn't a number. > Try: > > EXPRESSION ("[Combis]" = "0_2_0_4_5" AND "[Combis]" = "1_2_3_4_5") > > Steve > ________________________________________ > From: mapserver-users-bounces at lists.osgeo.org > [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Simone Frigerio > [simone.frigerio at univie.ac.at] > Sent: Monday, January 17, 2011 3:55 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] CLASS visualization with different attribute > value > > Hello, > I need to visualize a POLYGON with one class composed by different values > of the same attribute. This is the string I used, but no visualizations > occour. > > LAYER > NAME "COMBI_DF_RF_SL" > TYPE POLYGON > .. > CLASSITEM "Combis" > CLASS > NAME "PROVA2" > EXPRESSION ([Combis] = 0_2_0_4_5 AND [Combis] = 1_2_3_4_5) > STYLE > COLOR 251 25 11 > ... > END > END > END > > The attribute "Combis" has thousands of recordsand different values. Could > be possible aggregate in a EXPRESSION string like i did with pixel value > for raster? > > Thanks! > Simone > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- Simone Frigerio Department of Geography and Regional Research University of Vienna Universitaetsstr. 7 A-1010 Vienna AUSTRIA From arnd.wippermann at web.de Mon Jan 17 09:19:48 2011 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Mon, 17 Jan 2011 18:19:48 +0100 Subject: AW: [mapserver-users] CLASS visualization with different attributevalue In-Reply-To: References: Message-ID: <72E20167F34647B98BC6FA9D5EC57A83@pcawh2> And OR instead of AND I would suggest. Arnd -----Urspr?ngliche Nachricht----- Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Lime, Steve D (DNR) Gesendet: Montag, 17. Januar 2011 17:49 An: Simone Frigerio; mapserver-users at lists.osgeo.org Betreff: RE: [mapserver-users] CLASS visualization with different attributevalue The expression is invalid since 0_2_0_4_5 isn't quoted and isn't a number. Try: EXPRESSION ("[Combis]" = "0_2_0_4_5" AND "[Combis]" = "1_2_3_4_5") Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Simone Frigerio [simone.frigerio at univie.ac.at] Sent: Monday, January 17, 2011 3:55 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] CLASS visualization with different attribute value Hello, I need to visualize a POLYGON with one class composed by different values of the same attribute. This is the string I used, but no visualizations occour. LAYER NAME "COMBI_DF_RF_SL" TYPE POLYGON .. CLASSITEM "Combis" CLASS NAME "PROVA2" EXPRESSION ([Combis] = 0_2_0_4_5 AND [Combis] = 1_2_3_4_5) STYLE COLOR 251 25 11 ... END END END The attribute "Combis" has thousands of recordsand different values. Could be possible aggregate in a EXPRESSION string like i did with pixel value for raster? Thanks! Simone _______________________________________________ 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 thomas.bonfort at gmail.com Mon Jan 17 09:29:02 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 17 Jan 2011 18:29:02 +0100 Subject: [mapserver-users] Z_BEST_COMPRESSION undeclared Error on MapServer 5.6.5 make. In-Reply-To: <4DC99887ECFBA1499899FACCDFF7F21A1FA22AA2FE@nerckwmb1.ad.nerc.ac.uk> References: <4DC99887ECFBA1499899FACCDFF7F21A1FA22AA2FE@nerckwmb1.ad.nerc.ac.uk> Message-ID: add --with-png, and make sure the png development headers are available. regards, thomas On Mon, Jan 17, 2011 at 18:07, Passmore, James H. wrote: > I'm trying to compile MapServer 5.6.5 on Ubuntu 10.10, the ultimate aim is to add a patch to support the INSPIRE language requirement (otherwise I'd use one of the existing binaries). > > I can run configure ( ./configure --with-ogr --with-gdal --with-wfsclient --with-wmsclient --with-proj --with-wcs --with-postgis --with-geos --with-sos --with-experimental-png --with-fribidi-config --with-threads --enable-debug --with-wfs ) and this completes with no errors. > > ZLIB is found: > > configure: checking where Zlib is installed... > checking for zlibVersion in -lz... yes > ? ? ? ?using libz from system libs (-DUSE_ZLIB). > > and I have reported: > > MapServer is now configured for > > ?-------------- Compiler Info ------------- > ?C compiler: ? ? ? ? ? ? ? ?gcc -g ?-fPIC -Wall > ?C++ compiler: ? ? ? ? ? ? ?g++ -g ?-fPIC -Wall > ?Debug: ? ? ? ? ? ? ? ? ? ? -g > ?Generic NINT: > > ?-------------- Renderer Settings --------- > ?OpenGL support: > ?zlib support: ? ? ? ? ? ? ?-DUSE_ZLIB > ?png support: > ?palette rgba png support: ?-DUSE_RGBA_PNG > ?jpeg support: > ?iconv support: ? ? ? ? ? ? -DUSE_ICONV > ?AGG support: ? ? ? ? ? ? ? -DUSE_AGG > ?Cairo (SVG,PDF) support: > ?Ming(flash) support: > ?PDFLib support: > > ?-------------- Support Libraries --------- > ?Proj.4 support: ? ? ? ? ? ?-DUSE_PROJ > ?Libxml2 support: ? ? ? ? ? -DUSE_LIBXML2 > ?FriBidi support: ? ? ? ? ? -DUSE_FRIBIDI > ?Curl support: ? ? ? ? ? ? ?-DUSE_CURL > ?FastCGI support: > ?Threading support: ? ? ? ? -DUSE_THREAD > ?GEOS support: ? ? ? ? ? ? ?-DUSE_GEOS -DGEOS_HAS_SIMPLIFY > > ?-------------- Data Format Drivers ------- > ?native tiff support: > ?PostGIS support: ? ? ? ? ? -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION > ?EPPL7 support: ? ? ? ? ? ? -DUSE_EPPL > ?ArcSDE support: > ?OGR support: ? ? ? ? ? ? ? -DUSE_OGR > ?GDAL support: ? ? ? ? ? ? ?-DUSE_GDAL > ?Oracle Spatial support: > > ?-------------- OGC Services -------------- > ?WMS Server: ? ? ? ? ? ? ? ?-DUSE_WMS_SVR > ?WMS Client: ? ? ? ? ? ? ? ?-DUSE_WMS_LYR > ?WFS Server: ? ? ? ? ? ? ? ?-DUSE_WFS_SVR > ?WFS Client: ? ? ? ? ? ? ? ?-DUSE_WMS_LYR > ?WCS Server: ? ? ? ? ? ? ? ?-DUSE_WCS_SVR > ?SOS Server: ? ? ? ? ? ? ? ?-DUSE_SOS_SVR > > ?-------------- MapScript ----------------- > ?PHP MapScript: ? ? ? ? ? ? no > > > However when I run make I get the following error: > > local/include ? ?-I/usr/include/libxml2 -I/usr/local/include ?maprgbapng.c -o maprgbapng.o > maprgbapng.c: In function ?ms_png_write_image_init?: > maprgbapng.c:146: error: ?Z_BEST_COMPRESSION? undeclared (first use in this function) > maprgbapng.c:146: error: (Each undeclared identifier is reported only once > maprgbapng.c:146: error: for each function it appears in.) > make: *** [maprgbapng.o] Error 1 > > > Can anyone tell me where I might be going wrong? > > thanks > > James Passmore > GIS and WWW Specialist > Information Systems and Infrastructure > British Geological Survey > > > > > > > > -- > This message (and any attachments) is for the recipient only NERC > is subject to the Freedom of Information Act 2000 and the contents > of this email and any reply you make may be disclosed by NERC unless > it is exempt from release under the Act. Any material supplied to > NERC may be stored in an electronic records management system._______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From ivan.mincik at gmail.com Mon Jan 17 14:30:22 2011 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Mon, 17 Jan 2011 23:30:22 +0100 Subject: [mapserver-users] Typo on Mapserver homepage Message-ID: Hi, there is a typo in Announcements paragraph (version 5.6.5). "MapServer 5.6.3 has been released ...." should be "MapServer 5.6.5 has been released ..." Ivan From dmorissette at mapgears.com Mon Jan 17 15:00:44 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 17 Jan 2011 18:00:44 -0500 Subject: [mapserver-users] MapServer 5.6.6 released Message-ID: <4D34CA1C.9090301@mapgears.com> The MapServer team announces the release of MapServer version 5.6.6. No new functionality has been added. 5.6.6 is a maintenance release that fixes some issues that were found since the release of 5.6.5. The list of fixes since 5.6.5 is included at the end of this message. Source and binary downloads: ---------------------------- The source code is available at: http://mapserver.org/download.html The binary distributions listed in the download page should be updated with binaries for the new 5.6.6 release soon. Version 5.6.6 (2011-01-17): --------------------------- - SLD: Fix point symbolizer issue when color is not set (#3658) - Fix WMS EXCEPTIONS parameter issue with fastcgi (#3525) - Fixed missing time in msDrawMap logging (#3651) - Fixed Internal error with Oracle Spatial multi point geometries (#3627) - Fixed double free in shp2img.c (#3497) - Fixed free(): invalid next size in mapfile.c (#3604) - Fix for the memory corruption when mapping the string data type in the Java bindings (3491) - Correct wms 1.3.0 latlong bbox error (#2578) - Fix ProperyIsLike not used efficiently with Oracle (#3557) - Fixed msOGRGetSymbolId according to the changes in gdal 1.8 (#3556) - Fixed crash when drawing a map using UNIQUE fid in the layer data (#3271) - Fixed Oracle Spatial Data gets corrupt (#3541) - Fixed issue with multiple styles and binding (#3538) - Fixed multiple include tags not supported in xml mapfiles (#3530) - Ensure the class is not marked BeforeFieldInit causing memory corruption with C#/CLR4 (#3438) - Fixed MSSQL2008 driver returning invalid extent (#3498) - Fix computation of shape bounds when the first line contains no points (#3119)(fixes #3383) - Fixed error message tiles on zero-sized map cause memory allocation errors in maperror.c. (#3524) From dmorissette at mapgears.com Mon Jan 17 15:10:17 2011 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 17 Jan 2011 18:10:17 -0500 Subject: [mapserver-users] Typo on Mapserver homepage In-Reply-To: References: Message-ID: <4D34CC59.7000308@mapgears.com> On 11-01-17 05:30 PM, Ivan Mincik wrote: > Hi, > there is a typo in Announcements paragraph (version 5.6.5). "MapServer > 5.6.3 has been released ...." should be "MapServer 5.6.5 has been > released ..." > Thanks for pointing it out. Your message came in just in time. I fixed the typo at the same time as I added the 5.6.6 release news item. Daniel -- Daniel Morissette http://www.mapgears.com/ From Steve.Lime at state.mn.us Mon Jan 17 20:49:57 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 17 Jan 2011 22:49:57 -0600 Subject: [mapserver-users] Character Limit for NAME and GROUP In-Reply-To: <1295018914600-5922135.post@n2.nabble.com> References: <1295018914600-5922135.post@n2.nabble.com> Message-ID: How are you arriving at the 54 character limit? There's not a limit beyond maximum token sizes in the flex generated lexer and those are much larger than 54 chars... Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of tellett [thomas.ellett at statkart.no] Sent: Friday, January 14, 2011 9:28 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Character Limit for NAME and GROUP Hi All, I'm currently coming up against a limitation in mapserver with regards character limits for certain elements, namely 'NAME' and 'GROUP'. It seems theres a 54 character limit for these, does anybody know if this is correct and if there's a possibility to fix it ( I appreciate this should be moved to the dev list if a change can be made). Regards Tom -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Character-Limit-for-NAME-and-GROUP-tp5922135p5922135.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 kristian_frost7 at hotmail.com Tue Jan 18 00:27:42 2011 From: kristian_frost7 at hotmail.com (Frost89) Date: Tue, 18 Jan 2011 00:27:42 -0800 (PST) Subject: [mapserver-users] Re: Problem with ECW files In-Reply-To: <1294996795169-5921099.post@n2.nabble.com> References: <1294923313264-5918048.post@n2.nabble.com> <1294996795169-5921099.post@n2.nabble.com> Message-ID: <1295339262983-5934825.post@n2.nabble.com> Problem solved! I had to add a reference to my Visual Studio project to the gdal_csharp.dll. Now, I have the GDAL interface when adding using OSGeo.GDAL to my class. This allows me to use the following code to load the right DLL's: String gdal_bin_path = @"c:\path\to\my\binaries"; String gdal_driver_path = @"c:\path\to\my\binaries\gdalplugins"; String path = Environment.GetEnvironmentVariable("PATH"); if (!path.Contains(gdal_bin_path)) {   Environment.SetEnvironmentVariable("PATH", gdal_bin_path + ";" + path); } Gdal.SetConfigOption("GDAL_DRIVER_PATH", gdal_driver_path); Now the ECW files show up as they are supposed to. - Kristian Frost -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problem-with-ECW-files-tp5918048p5934825.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From robin.pearce at gardline.com Tue Jan 18 01:43:18 2011 From: robin.pearce at gardline.com (Robin Pearce) Date: Tue, 18 Jan 2011 09:43:18 +0000 Subject: [mapserver-users] Can't Get Kropla Fifth Map to work Properly Message-ID: <08FCDE86692DFA4282E59E3936508D9FA6E8243193@MBOX.gardline.co.uk> I am running MapServer 5.4.2 and PHP 5.3. As a PHP/Mapscript novice, I am using Kropla's Beginning MapServer (2005) to learn what I need to create my own mapping application. Chapter 9 describes a simple dataset of five restaurant locations added to a point layer, then queried using an input radius from a previously-clicked point. This is supposed to create a table of all locations(restaurants) within the radius. This is Kropla's function which finds point locations within the radius. The arguments to NearbyStores() are point object, map object and radius value(miles) respectively: function NearbyStores($point,$map,$radius) { // get query layer $qlayer = $map->getLayerByName('poi'); $qlayer->set("tolerance",$radius); // query the query layer - $radius is set in browser // queryByPoint ignores TOLERANCE units using native map units // instead - in this case decimal degrees. The number of miles // per degree is (approximately of course) 69.04 therefore // the correction from degrees to miles. This would have to // change if TOLERANCEUNITS, the map or scale units change. @$qlayer->queryByPoint($point, MS_MULTIPLE, $radius/69.04); $numResults = $qlayer->getNumResults(); // we've got results, store id equals shape index if ($numResults != 0) { for ($i = 0; $i < $numResults; $i++) { $query_result = $qlayer->getResult($i); $StoreList[$i] = $query_result->shapeindex; } } else { $StoreList = ""; // no results } return $StoreList; } The variable $numResults appears to correctly identify the number of locations within your input radius. But $query_result->shapeindex behaves strangely. The array $Storelist[], when populated with all five restaurant store-ids in the database using function NearbyStores(), should contain 1,2,3,4,5 (there is no store id 0). However if only 1 location is found, $Storelist[] contains 0, if 2 locations, it contains 0,1 and if all five are found it contains 0,1,1,1,1. In other words, the first array element of $Storelist becomes zero and any subsequent elements are always 1. Consequently when you proceed to populate the display table for all five, you get details of the first location followed by four duplicates of the second. Is anyone familiar with Kropla's book, or can anyone explain this behaviour by the various PHP/Mapserver functions shown above or suggest a reasonable alternative? Many Thanks, Rob Pearce ________________________________ CONFIDENTIALITY - This e-mail and any attached files contain information that is confidential and/or may be subject of legal privilege, intended only for use by the addressee(s). If you are not the intended recipient or the person responsible for delivering the message to the intended recipient, please be advised that you have received this message in error and that any dissemination, copying or use of this message or attachment is strictly forbidden, as is the disclosure of the information therein. If you have received this message in error please notify the sender immediately and preserve this confidentiality by deleting the message. No binding contract will result from this e-mail until and unless an officer, on behalf of the sender, signs a written document. Sender accepts no responsibility for the completeness or accuracy of this message as it has been transmitted over public networks. Unless otherwise specifically stated any views or opinions are solely those of the author and do not represent those of the sender Company. _____________________________________________________________________________________________________________________ This email has been scanned by the MessageLabs Email Security System, on behalf of the Gardline Group of Companies. For more information please visit http://www.messagelabs.com/email _____________________________________________________________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From guillaume.barthe at c-s.fr Tue Jan 18 02:06:33 2011 From: guillaume.barthe at c-s.fr (Guillaume BARTHE) Date: Tue, 18 Jan 2011 11:06:33 +0100 Subject: [mapserver-users] [Oracle] Geo raster with oracle spatial Message-ID: <4D356629.4050703@c-s.fr> Hi, Is it possible to interface mapserver and geo raster stored in oracle spatial database ? Thank you. Guillaume -- *Guillaume BARTHE* Ing?nieur d'?tude sur KHEPER *CS Syst?mes d'Information - Division Espace & Renseignement* D?partement Information G?ographique & Image Parc de la Grande Plaine - 5, Rue Brindejonc des Moulinais - BP 15872 31506 Toulouse Cedex 05 - FRANCE Tel : +33 561 17 63 70 Email : guillaume.barthe at c-s.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 19066 bytes Desc: not available URL: From ivan.lucena at pmldnet.com Tue Jan 18 03:49:34 2011 From: ivan.lucena at pmldnet.com (=?iso-8859-1?Q?Ivan=20Lucena?=) Date: Tue, 18 Jan 2011 06:49:34 -0500 Subject: =?iso-8859-1?B?UmU6IFttYXBzZXJ2ZXItdXNlcnNdIFtPcmFjbGVdIEdlbyByYXN0ZXIgd2l0aCBvcmFjbGUgc3BhdGlhbA==?= In-Reply-To: <4D356629.4050703@c-s.fr> References: <4D356629.4050703@c-s.fr> Message-ID: <20110118114934.3634.qmail@s466.sureserver.com> Yes, see example at FOSS4GIS 2010 Benchmark: http://wiki.osgeo.org/wiki/Benchmarking_2010#MapServer > -------Original Message------- > From: Guillaume BARTHE > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] [Oracle] Geo raster with oracle spatial > Sent: Jan 18 '11 05:06 > > Hi, > > Is it possible to interface mapserver and geo raster stored in oracle > spatial database ? > > Thank you. > > Guillaume > > -- > > > [LINK: www.c-s.fr] GUILLAUME BARTHE > Ingnieur d'tude sur KHEPER > > CS SYST&EGRAVE;MES D\'INFORMATION - DIVISION ESPACE & RENSEIGNEMENT > Dpartement Information Gographique & Image > Parc de la Grande Plaine - 5, Rue Brindejonc des Moulinais - BP 15872 > 31506 Toulouse Cedex 05 - FRANCE > Tel : +33 561 17 63 70 > Email : [LINK: mailto:guillaume.barthe at c-s.fr] guillaume.barthe at c-s.fr > > -------------------- > _______________________________________________ > mapserver-users mailing list > [LINK: compose.php?to=mapserver-users at lists.osgeo.org] > mapserver-users at lists.osgeo.org > [LINK: http://lists.osgeo.org/mailman/listinfo/mapserver-users] > http://lists.osgeo.org/mailman/listinfo/mapserver-users From guillaume.barthe at c-s.fr Tue Jan 18 04:20:37 2011 From: guillaume.barthe at c-s.fr (Guillaume BARTHE) Date: Tue, 18 Jan 2011 13:20:37 +0100 Subject: [mapserver-users] [Oracle] Geo raster with oracle spatial In-Reply-To: <20110118114934.3634.qmail@s466.sureserver.com> References: <4D356629.4050703@c-s.fr> <20110118114934.3634.qmail@s466.sureserver.com> Message-ID: <4D358595.2030006@c-s.fr> Thank you Guillaume Ivan Lucena a ?crit : > Yes, see example at FOSS4GIS 2010 Benchmark: > > http://wiki.osgeo.org/wiki/Benchmarking_2010#MapServer > > >> -------Original Message------- >> From: Guillaume BARTHE >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] [Oracle] Geo raster with oracle spatial >> Sent: Jan 18 '11 05:06 >> >> Hi, >> >> Is it possible to interface mapserver and geo raster stored in oracle >> spatial database ? >> >> Thank you. >> >> Guillaume >> >> -- >> >> >> [LINK: www.c-s.fr] GUILLAUME BARTHE >> Ingnieur d'tude sur KHEPER >> >> CS SYST&EGRAVE;MES D\'INFORMATION - DIVISION ESPACE & RENSEIGNEMENT >> Dpartement Information Gographique & Image >> Parc de la Grande Plaine - 5, Rue Brindejonc des Moulinais - BP 15872 >> 31506 Toulouse Cedex 05 - FRANCE >> Tel : +33 561 17 63 70 >> Email : [LINK: mailto:guillaume.barthe at c-s.fr] guillaume.barthe at c-s.fr >> >> -------------------- >> _______________________________________________ >> mapserver-users mailing list >> [LINK: compose.php?to=mapserver-users at lists.osgeo.org] >> mapserver-users at lists.osgeo.org >> [LINK: http://lists.osgeo.org/mailman/listinfo/mapserver-users] >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan.lucena at pmldnet.com Tue Jan 18 05:37:01 2011 From: ivan.lucena at pmldnet.com (=?iso-8859-1?Q?Ivan=20Lucena?=) Date: Tue, 18 Jan 2011 08:37:01 -0500 Subject: =?iso-8859-1?B?UmU6IFttYXBzZXJ2ZXItdXNlcnNdIFtPcmFjbGVdIEdlbyByYXN0ZXIgd2l0aCBvcmFjbGUgc3BhdGlhbA==?= In-Reply-To: <4D358595.2030006@c-s.fr> References: <4D356629.4050703@c-s.fr> <20110118114934.3634.qmail@s466.sureserver.com> <4D358595.2030006@c-s.fr> Message-ID: <20110118133701.20693.qmail@s466.sureserver.com> Guilaume, A world of advise. The current georaster driver in GDAL 1.8 is not optimized for random access, so the good performance your see on the benchmark was obtained with a prototype available at: http://trac.osgeo.org/gdal/browser/sandbox/ilucena/georaster If you happens to be dealing with georaster smaller than 1Gb you might not fell the different between the two versions. I hope we can have those version integrated soon. Regards, Ivan > -------Original Message------- > From: Guillaume BARTHE > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] [Oracle] Geo raster with oracle spatial > Sent: Jan 18 '11 07:20 > > Thank you > > Guillaume > > > Ivan Lucena a crit : > > Yes, see example at FOSS4GIS 2010 Benchmark: [LINK: > http://wiki.osgeo.org/wiki/Benchmarking_2010] > http://wiki.osgeo.org/wiki/Benchmarking_2010#MapServer > > -------Original Message------- From: Guillaume BARTHE [LINK: > mailto:guillaume.barthe at c-s.fr] To: [LINK: > mailto:mapserver-users at lists.osgeo.org] mapserver-users at lists.osgeo.org > Subject: [mapserver-users] [Oracle] Geo raster with oracle spatial Sent: > Jan 18 '11 05:06 Hi, Is it possible to interface mapserver and geo > raster stored in oracle spatial database ? Thank you. Guillaume > -- [LINK: [LINK: http://www.c-s.fr] www.c-s.fr] GUILLAUME BARTHE > Ingnieur d'tude sur KHEPER CS SYST&EGRAVE;MES D\'INFORMATION - DIVISION > ESPACE & RENSEIGNEMENT Dpartement Information Gographique & Image Parc de > la Grande Plaine - 5, Rue Brindejonc des Moulinais - BP 15872 31506 > Toulouse Cedex 05 - FRANCE Tel : +33 561 17 63 70 Email : [LINK: [LINK: > mailto:guillaume.barthe at c-s.fr] mailto:guillaume.barthe at c-s.fr] [LINK: > mailto:guillaume.barthe at c-s.fr] guillaume.barthe at c-s.fr > -------------------- _______________________________________________ > mapserver-users mailing list [LINK: [LINK: > mailto:compose.php?to=mapserver-users at lists.osgeo.org] > compose.php?to=mapserver-users at lists.osgeo.org] [LINK: > mailto:mapserver-users at lists.osgeo.org] mapserver-users at lists.osgeo.org > [LINK: [LINK: http://lists.osgeo.org/mailman/listinfo/mapserver-users] > http://lists.osgeo.org/mailman/listinfo/mapserver-users] [LINK: > http://lists.osgeo.org/mailman/listinfo/mapserver-users] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -------------------- > _______________________________________________ > mapserver-users mailing list > [LINK: compose.php?to=mapserver-users at lists.osgeo.org] > mapserver-users at lists.osgeo.org > [LINK: http://lists.osgeo.org/mailman/listinfo/mapserver-users] > http://lists.osgeo.org/mailman/listinfo/mapserver-users From chantal at tmcr.nl Tue Jan 18 06:46:06 2011 From: chantal at tmcr.nl (chantal at tmcr.nl) Date: Tue, 18 Jan 2011 15:46:06 +0100 Subject: [mapserver-users] mapserver and secureows Message-ID: Hi list, I was wondering if it is possible to secure mapserver using secureows, http://www.secureows.org/trac/secureows/wiki/ServerDocumentation I succesfully installed mapserver 5.6.5 and secureows but I'm not sure how to combine them? Thanks From qazi.iqbal at gmail.com Tue Jan 18 16:15:22 2011 From: qazi.iqbal at gmail.com (qazi iqbal) Date: Tue, 18 Jan 2011 19:15:22 -0500 Subject: [mapserver-users] Projection issue Message-ID: I have a mapfile in which I have specified the main output projection as PROJECTION "proj=latlong" "ellps=WGS84" "datum=WGS84" END Below is details of one of the layers that shows perfectly *Layer name: subdiv Geometry: Polygon Feature Count: 7 Extent: (-84.276822, 33.752808) - (-83.799104, 34.167873) Layer SRS WKT: GEOGCS["GCS_North_American_1983", DATUM["North_American_Datum_1983", SPHEROID["GRS_1980",6378137,298.257222101]], PRIMEM["Greenwich",0], UNIT["Degree",0.017453292519943295]] * Here is one more layer which is projected and I was expecting it to change projection on fly. But it does not show. Below is the details. *Geometry: Polygon Feature Count: 703 Extent: (1905254.375111, 1140017.900055) - (2497321.299899, 1670166.374861) Layer SRS WKT: PROJCS["NAD_1983_StatePlane_Georgia_West_FIPS_1002_Feet", GEOGCS["GCS_North_American_1983", DATUM["North_American_Datum_1983", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Transverse_Mercator"], PARAMETER["False_Easting",2296583.333333333], PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",-84.16666666666667], PARAMETER["Scale_Factor",0.9999], PARAMETER["Latitude_Of_Origin",30.0], UNIT["Foot_US",0.3048006096012192]]* ** ** I must be doing some mistake, can anyone help please. Thanks and appreciate. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Wed Jan 19 02:14:32 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 19 Jan 2011 12:14:32 +0200 Subject: [mapserver-users] Projection issue In-Reply-To: References: Message-ID: Hi, Have defined also the input projection inside LAYER? It is necessary to know both the input and output or otherwise it is not possible to reproject. If layer projection is not given Mapserver is using the output projection as default. That's why your first layer shows because it is originally in the output projection or at least close to it. The other dataset is clearly using another projection. It is odd to me, but perhaps it is this one I found from the Mapserver epsg file # NAD83 / Georgia West (ftUS) <2240> +proj=tmerc +lat_0=30 +lon_0=-84.16666666666667 +k=0.9999 +x_0=699999.9998983998 +y_0=0 +ellps=GRS80 +datum=NAD83 +to_meter=0.3048006096012192 +no_defs <> If that's the case you can use "init=epsg:2240" as input projection. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta qazi iqbal L?hetetty: 19. tammikuuta 2011 2:15 Vastaanottaja: mapserver-users Aihe: [mapserver-users] Projection issue I have a mapfile in which I have specified the main output projection as PROJECTION "proj=latlong" "ellps=WGS84" "datum=WGS84" END Below is details of one of the layers that shows perfectly Layer name: subdiv Geometry: Polygon Feature Count: 7 Extent: (-84.276822, 33.752808) - (-83.799104, 34.167873) Layer SRS WKT: GEOGCS["GCS_North_American_1983", DATUM["North_American_Datum_1983", SPHEROID["GRS_1980",6378137,298.257222101]], PRIMEM["Greenwich",0], UNIT["Degree",0.017453292519943295]] Here is one more layer which is projected and I was expecting it to change projection on fly. But it does not show. Below is the details. Geometry: Polygon Feature Count: 703 Extent: (1905254.375111, 1140017.900055) - (2497321.299899, 1670166.374861) Layer SRS WKT: PROJCS["NAD_1983_StatePlane_Georgia_West_FIPS_1002_Feet", GEOGCS["GCS_North_American_1983", DATUM["North_American_Datum_1983", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Transverse_Mercator"], PARAMETER["False_Easting",2296583.333333333], PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",-84.16666666666667], PARAMETER["Scale_Factor",0.9999], PARAMETER["Latitude_Of_Origin",30.0], UNIT["Foot_US",0.3048006096012192]] I must be doing some mistake, can anyone help please. Thanks and appreciate. -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Hildebrand at afsc.ca Thu Jan 20 15:51:02 2011 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Thu, 20 Jan 2011 16:51:02 -0700 Subject: [mapserver-users] Apache installation for ms4w In-Reply-To: References: Message-ID: <9188AB5935664040805E01E348A2B81D1BF690AD@lacex1.afsc.ads> The installation package for ms4w contains a preconfigured version of Apache. This works well for a new installation. In the case of an existing Apache installation what are the requirements which need to be met for ms4w? Are there potential conflicts to be aware of? 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 Phil.Anzel at ftc.usda.gov Thu Jan 20 07:13:34 2011 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - Fort Collins, CO) Date: Thu, 20 Jan 2011 09:13:34 -0600 Subject: [mapserver-users] Raster input file delete access prohibited by MapScript Message-ID: <809503517A1B0347AF9A161507E6B299213266ABFB@mokansasc7s304.agent.one.usda.gov> All, I have an application that uses the MapScript API under C# to create map images. Without exiting the application, I need to delete the input raster (JPEG) files that have been used in the image creation. Deletion of the input files is not possible until the application terminates. Appended below is a stripped-down C# program that reads a mapfile which references a JPEG file for raster input. After the image is drawn, each layer in the mapObj is closed and removed. An attempt is made to delete the input file; an exception results from this attempt. The program was written in C#, compiled in Visual Studio 2010 running under Windows XP 2002 SP3. The problem occurs with both MapServer versions 5.6.3 and 5.7 (libraries as of December 15, 2010). Can you help? I'm guessing that the input JPG file is opened for reading by MapServer and is never explicitly closed, even when the layer is closed. Is there a method defined in the API that will force the closure, if that is even the situation? Thanks in advance, - Phil Anzel Web Soil Survey Developer Vistronix Inc., under contract to USDA/NCS/ITC Attachments: 1. Console output from running the program. 2. The C# source code. 3. The mapfile. 4. The world file for the input JPEG file 5. The input JPEG file (attached as a separate file; note that virtually any JPEG file could be used, such as the sample provided by Microsoft, "C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Water lilies.jpg"). Attachment #1: Console output from running the program. Creating output image file C:\msTest\working\m01.jpg. Closing and removing layer 1: center_point. Closing and removing layer 0: jpg_input. Disposing of map and image objects. Failure: unable to delete working copy of input JPG file. The process cannot access the file 'C:\msTest\working\input.jpg' because it is being used by another process. Attachment #2: The C# source code. using System; using System.IO; // For MapServer 5.6.3 on the test host, a reference is needed to: // C:\ms4w\Apache\cgi-bin\mapscript\csharp\mapscript_csharp.dll using OSGeo.MapServer; namespace TestApp { /// /// Demonstrate that the JPG file that is used as raster input /// for drawing a MapServer image via the SWIG MapScrit API can /// not be deleted while the application is running. /// /// /// In order to run this code, /// 1. Include a reference to the appropriate mapscript_csharp.dll file. /// 2. Change the PATH definition (below) to point to the MapServer /// libraries. /// 3. Create directories C:\msTest\resource and C:\msTest\working. /// 4. Place the input JPEG, World and Map files into C:\msTest\resource. /// class Program { static void Main(string[] args) { // Names of the directories and files string resourceDir = @"C:\msTest\resource\"; string workingDir = @"C:\msTest\working\"; string inputFile = "input"; string mapFile = "m01"; string resourceJpg = Path.Combine(resourceDir, inputFile + ".jpg"); string workingJpg = Path.Combine(workingDir, inputFile + ".jpg"); string resourceWld = Path.Combine(resourceDir, inputFile + ".wld"); string workingWld = Path.Combine(workingDir, inputFile + ".wld"); string resourceMap = Path.Combine(resourceDir, mapFile + ".map"); string outputImage = Path.Combine(workingDir, mapFile + ".jpg"); // Copy input JPG and WLD files to working directory // (allow overwriting if already in working directory). File.Copy(resourceJpg, workingJpg, true); File.Copy(resourceWld, workingWld, true); // We need a good PATH for MapScript library loading. Environment.SetEnvironmentVariable("PATH", @"C:\ms4w\Apache\cgi-bin;C:\ms4w\Apache\cgi-bin\mapscript\csharp;" + Environment.GetEnvironmentVariable("PATH")); // Load the map file into a new mapObj, draw it // and save as output image file. mapObj map = new mapObj(resourceMap); imageObj image = map.draw(); byte[] img = image.getBytes(); using (MemoryStream ms = new MemoryStream(img)) { using (FileStream fs = File.Open(outputImage, FileMode.OpenOrCreate, FileAccess.ReadWrite)) { Console.WriteLine("Creating output image file {0}.", outputImage); fs.Write(img, 0, img.Length); } } // Explicitly close and remove each layer. int iLayer = map.numlayers; while (iLayer > 0) { iLayer--; layerObj layer = map.getLayer(iLayer); Console.WriteLine("Closing and removing layer {0}: {1}.", iLayer, layer.name); layer.close(); map.removeLayer(iLayer); } // Dispose of the image and map objects Console.WriteLine("Disposing of map and image objects."); image.Dispose(); map.Dispose(); // Delete the working JPG file try { File.Delete(@"C:\msTest\working\input.jpg"); Console.WriteLine("Success: working copy of input JPG file deleted."); } catch (Exception ex) { Console.WriteLine("Failure: unable to delete working copy of input JPG file."); Console.WriteLine(ex.Message); } } } } Attachment 3: The mapfile. map imagetype jpeg status on size 256 256 extent -11686915.8766903 4935997.53854354 -11682023.9068801 4940889.50835379 imagecolor 255 255 255 layer name jpg_input data 'C:\msTest\working\input.jpg' type raster status on end symbol name default-marker type ellipse points 1 1 end filled true end layer # a big red dot so we know this is MapServer output name center_point status on type point feature points -11684469.8917852 4938443.52344866 end end class style color 255 0 0 size 25 symbol default-marker end end end end Attachment 4: The world file for the input JPEG file. 19.1092570712941 0.0000000000 0.0000000000 -19.1092570712941 -11686915.8766903 4940889.50835379 Attachment 5: The input JPEG file ...attached as a separate file to this email message. Note that virtually any JPEG file could be used, such as the sample provided by Microsoft, "C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Water lilies.jpg". -------------- next part -------------- A non-text attachment was scrubbed... Name: input.jpg Type: image/jpeg Size: 178954 bytes Desc: input.jpg URL: From jmckenna at gatewaygeomatics.com Fri Jan 21 05:47:42 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 21 Jan 2011 09:47:42 -0400 Subject: [mapserver-users] Apache installation for ms4w In-Reply-To: <9188AB5935664040805E01E348A2B81D1BF690AD@lacex1.afsc.ads> References: <9188AB5935664040805E01E348A2B81D1BF690AD@lacex1.afsc.ads> Message-ID: <4D398E7E.4010008@gatewaygeomatics.com> Hello David, First, all questions related to MS4W should be sent to the MS4W-users mailing list, where hundreds of users and devs can assist you with your issues (subscribe at http://lists.maptools.org/mailman/listinfo/ms4w-users). As you mentioned, MS4W is designed for new installations and contains a ready to use Web server and everything you need to move forward. If you need to use MS4W in an existing environment, there are some options: - follow the existing notes to install in other environments in your local README file (http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#k-installing-the-ms4w-mapserver-binaries-in-other-environments) - search the MS4W mailing list for other users asking this same question and the responses (search at: http://osgeo-org.1803224.n2.nabble.com/ms4w-users-f4995553.html) - contact me directly for assistance Hope that helps. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-01-20 7:51 PM, David Hildebrand wrote: > The installation package for ms4w contains a preconfigured version of > Apache. This works well for a new installation. In the case of an > existing Apache installation what are the requirements which need to be > met for ms4w? Are there potential conflicts to be aware of? From warmerdam at pobox.com Fri Jan 21 06:59:28 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 21 Jan 2011 09:59:28 -0500 Subject: [mapserver-users] Raster input file delete access prohibited by MapScript In-Reply-To: <809503517A1B0347AF9A161507E6B299213266ABFB@mokansasc7s304.agent.one.usda.gov> References: <809503517A1B0347AF9A161507E6B299213266ABFB@mokansasc7s304.agent.one.usda.gov> Message-ID: <4D399F50.3050906@pobox.com> On 11-01-20 10:13 AM, Anzel, Phil - Fort Collins, CO wrote: > All, > > I have an application that uses the MapScript API under C# to create map > images. Without exiting the application, I need to delete the input raster > (JPEG) files that have been used in the image creation. Deletion of the > input files is not possible until the application terminates. ... > Can you help? I'm guessing that the input JPG file is opened for reading by > MapServer and is never explicitly closed, even when the layer is closed. Is > there a method defined in the API that will force the closure, if that is > even the situation? Phil, In recent versions MapServer aggressively keeps single raster files used for raster layers open even after the map is destroyed in order accelerate the next access to it. This can be controlled/disabled by adding the following line in your raster layer: PROCESSING "CLOSE_CONNECTION=NORMAL" The default setting is DEFER for raster files. 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 Phil.Anzel at ftc.usda.gov Fri Jan 21 09:03:08 2011 From: Phil.Anzel at ftc.usda.gov (Anzel, Phil - Fort Collins, CO) Date: Fri, 21 Jan 2011 11:03:08 -0600 Subject: [mapserver-users] RE: mapserver-users Digest, Vol 36, Issue 32 In-Reply-To: <20110121170017.A030DE021EA@lists.osgeo.org> References: <20110121170017.A030DE021EA@lists.osgeo.org> Message-ID: <809503517A1B0347AF9A161507E6B299215A554C35@mokansasc7s304.agent.one.usda.gov> Excellent! Thanks, Frank. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of mapserver-users-request at lists.osgeo.org Sent: Friday, January 21, 2011 10:00 AM To: mapserver-users at lists.osgeo.org Subject: mapserver-users Digest, Vol 36, Issue 32 Send mapserver-users mailing list submissions to mapserver-users at lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/mapserver-users or, via email, send a message with subject or body 'help' to mapserver-users-request at lists.osgeo.org You can reach the person managing the list at mapserver-users-owner at lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of mapserver-users digest..." Today's Topics: 1. Re: Apache installation for ms4w (Jeff McKenna) 2. Re: Raster input file delete access prohibited by MapScript (Frank Warmerdam) ---------------------------------------------------------------------- Message: 1 Date: Fri, 21 Jan 2011 09:47:42 -0400 From: Jeff McKenna Subject: Re: [mapserver-users] Apache installation for ms4w To: mapserver-users Message-ID: <4D398E7E.4010008 at gatewaygeomatics.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hello David, First, all questions related to MS4W should be sent to the MS4W-users mailing list, where hundreds of users and devs can assist you with your issues (subscribe at http://lists.maptools.org/mailman/listinfo/ms4w-users). As you mentioned, MS4W is designed for new installations and contains a ready to use Web server and everything you need to move forward. If you need to use MS4W in an existing environment, there are some options: - follow the existing notes to install in other environments in your local README file (http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#k-installing-the-ms4w-mapserver-binaries-in-other-environments) - search the MS4W mailing list for other users asking this same question and the responses (search at: http://osgeo-org.1803224.n2.nabble.com/ms4w-users-f4995553.html) - contact me directly for assistance Hope that helps. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-01-20 7:51 PM, David Hildebrand wrote: > The installation package for ms4w contains a preconfigured version of > Apache. This works well for a new installation. In the case of an > existing Apache installation what are the requirements which need to be > met for ms4w? Are there potential conflicts to be aware of? ------------------------------ Message: 2 Date: Fri, 21 Jan 2011 09:59:28 -0500 From: Frank Warmerdam Subject: Re: [mapserver-users] Raster input file delete access prohibited by MapScript To: mapserver-users at lists.osgeo.org Message-ID: <4D399F50.3050906 at pobox.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed On 11-01-20 10:13 AM, Anzel, Phil - Fort Collins, CO wrote: > All, > > I have an application that uses the MapScript API under C# to create map > images. Without exiting the application, I need to delete the input raster > (JPEG) files that have been used in the image creation. Deletion of the > input files is not possible until the application terminates. ... > Can you help? I'm guessing that the input JPG file is opened for reading by > MapServer and is never explicitly closed, even when the layer is closed. Is > there a method defined in the API that will force the closure, if that is > even the situation? Phil, In recent versions MapServer aggressively keeps single raster files used for raster layers open even after the map is destroyed in order accelerate the next access to it. This can be controlled/disabled by adding the following line in your raster layer: PROCESSING "CLOSE_CONNECTION=NORMAL" The default setting is DEFER for raster files. 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 ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 36, Issue 32 *********************************************** From David.Hildebrand at afsc.ca Fri Jan 21 09:25:05 2011 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Fri, 21 Jan 2011 10:25:05 -0700 Subject: [mapserver-users] Apache installation for ms4w In-Reply-To: <4D398E7E.4010008@gatewaygeomatics.com> References: <9188AB5935664040805E01E348A2B81D1BF690AD@lacex1.afsc.ads> <4D398E7E.4010008@gatewaygeomatics.com> Message-ID: <9188AB5935664040805E01E348A2B81D1BF690B1@lacex1.afsc.ads> Thanks, Jeff. I didn't realize there was a separate mailing list for MS4W. =========================== 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: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jeff McKenna Sent: Friday, January 21, 2011 6:48 AM To: mapserver-users Subject: Re: [mapserver-users] Apache installation for ms4w Hello David, First, all questions related to MS4W should be sent to the MS4W-users mailing list, where hundreds of users and devs can assist you with your issues (subscribe at http://lists.maptools.org/mailman/listinfo/ms4w-users). As you mentioned, MS4W is designed for new installations and contains a ready to use Web server and everything you need to move forward. If you need to use MS4W in an existing environment, there are some options: - follow the existing notes to install in other environments in your local README file (http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#k-ins talling-the-ms4w-mapserver-binaries-in-other-environments) - search the MS4W mailing list for other users asking this same question and the responses (search at: http://osgeo-org.1803224.n2.nabble.com/ms4w-users-f4995553.html) - contact me directly for assistance Hope that helps. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-01-20 7:51 PM, David Hildebrand wrote: > The installation package for ms4w contains a preconfigured version of > Apache. This works well for a new installation. In the case of an > existing Apache installation what are the requirements which need to be > met for ms4w? Are there potential conflicts to be aware of? _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From mitchelljj98 at gmail.com Fri Jan 21 13:13:16 2011 From: mitchelljj98 at gmail.com (John Mitchell) Date: Fri, 21 Jan 2011 16:13:16 -0500 Subject: [mapserver-users] capability to reproject to 2 different projections within the map object of the map file Message-ID: If I want all the layers within a map file no matter the layers own projection to have the capability to reproject to 2 different projections would I within the map object of the map file replace: PROJECTION "init=epsg:4326" END With: PROJECTION "init=epsg:4326" "init=epsg:102113" END Thanks, John -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Fri Jan 21 13:21:46 2011 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Fri, 21 Jan 2011 15:21:46 -0600 Subject: [mapserver-users] capability to reproject to 2 different projections within the map object of the map file In-Reply-To: References: Message-ID: I believe that in CGI mode, you can only have one output projection, so your approach won't work. You can support multiple SRS/projection in WMS mode. To do this, you put multiple SRS codes in the wms_srs metadata for a layer. You might be able to change the map projection on the fly by changing the parameters via the URL, I assume that you would also need to change the extent values to match the projection. (I can't verify that map.projection is something that you can change via URL). David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of John Mitchell Sent: Friday, January 21, 2011 3:13 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] capability to reproject to 2 different projections within the map object of the map file If I want all the layers within a map file no matter the layers own projection to have the capability to reproject to 2 different projections would I within the map object of the map file replace: PROJECTION "init=epsg:4326" END With: PROJECTION "init=epsg:4326" "init=epsg:102113" END Thanks, John -------------- next part -------------- An HTML attachment was scrubbed... URL: From 7 at ericjarvies.com Fri Jan 21 16:12:47 2011 From: 7 at ericjarvies.com (Eric Jarvies) Date: Fri, 21 Jan 2011 17:12:47 -0700 Subject: [mapserver-users] Connecting to remote MapServer WMS/WMF layers using PHP/OpenLayers Message-ID: <3D892CB0-BFAD-45CA-B428-B4EA9462AFD5@ericjarvies.com> Hello, I am attempting to connect to a remote MapServer( http://www.catastroloscabos.gob.mx/cgi-bin/mapserv.fcgi?map=/home/juribe/webcatastro/catastro.map& ) and retrieve the respective WMS layers. However, I am unable to do so for some reason. http://loscabosproperties.mx/geoserver/wms.png I get the result in XML format, and the map is not displayed. The remote MapServer server is located at: http://www.catastroloscabos.gob.mx/cgi-bin/mapserv.fcgi?map=/home/juribe/webcatastro/catastro.map& In my PHP/OpenLayers doc/code, i have this: var wmsUrl2 = "http://www.catastroloscabos.gob.mx/cgi-bin/mapserv.fcgi"; var wms2 = new OpenLayers.Layer.WMS("WMS2", wmsUrl2, { map: '/home/juribe/webcatastro/catastro.map', //layers: 'p', //map_imagetype: 'jpg' SERVICE: 'WMS', VERSION: '1.1.1', REQUEST: 'GetCapabilities' }, {singleTile: true, isBaseLayer: false}); map.addLayer(wms2); Any help would be appreciated. Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ericsSignature.png Type: image/png Size: 5863 bytes Desc: not available URL: From jean-francois at gigand.fr Sat Jan 22 08:05:47 2011 From: jean-francois at gigand.fr (=?ISO-8859-1?Q?Jean=2DFran=E7ois_Gigand?=) Date: Sat, 22 Jan 2011 17:05:47 +0100 Subject: [mapserver-users] Connecting to remote MapServer WMS/WMF layers using PHP/OpenLayers In-Reply-To: <3D892CB0-BFAD-45CA-B428-B4EA9462AFD5@ericjarvies.com> References: <3D892CB0-BFAD-45CA-B428-B4EA9462AFD5@ericjarvies.com> Message-ID: Hi Eric, The GetCapabilities request would be used to get information about the WMS map, in order to decide what parameters to give to the OpenLayers.Layer.WMS object. In your (static) case, you don't need it in your code. Don't provide SERVICE nor VERSION (they are set by default), nor REQUEST, as it should be "GetMap" but this is managed by OpenLayers.Layer.WMS automatically. Instead, provide FORMAT ("image/png" or whatever is defined in your map file), LAYERS (value "all" or comma-separated list of layers). The GetCapabilities request, however, would help you to check the effective map parameters : http://www.catastroloscabos.gob.mx/cgi-bin/mapserv.fcgi?map=/home/juribe/webcatastro/catastro.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities Seems you forgot to define the PROJECTION in your map file for each layer. If it's the same than map's, just copy-paste them to make it clear for MapServer. Explained here : http://mapserver.org/ogc/wms_server.html Good luck, Jeff 2011/1/22 Eric Jarvies <7 at ericjarvies.com> > > Hello, > I am attempting to connect to a remote MapServer(?http://www.catastroloscabos.gob.mx/cgi-bin/mapserv.fcgi?map=/home/juribe/webcatastro/catastro.map&?) and retrieve the respective WMS layers. ?However, I am unable to do so for some reason. > http://loscabosproperties.mx/geoserver/wms.png > I get the result in XML format, and the map is not displayed. > The remote MapServer server is located at: > http://www.catastroloscabos.gob.mx/cgi-bin/mapserv.fcgi?map=/home/juribe/webcatastro/catastro.map& > In my PHP/OpenLayers doc/code, i have this: > ?? ? ? ?var wmsUrl2 = "http://www.catastroloscabos.gob.mx/cgi-bin/mapserv.fcgi"; > ?? ? ? ?var wms2 = new OpenLayers.Layer.WMS("WMS2", > ?? ? ? ? ? ?wmsUrl2, > ?? ? ? ? ? ?{ map: '/home/juribe/webcatastro/catastro.map', > ?? ? ? ? ? ?//layers: 'p', > ?? ? ? ? ? ?//map_imagetype: 'jpg' > ?? ? ? ? ? ?SERVICE: 'WMS', > ?? ? ? ? ? ?VERSION: '1.1.1', > ?? ? ? ? ? ?REQUEST: 'GetCapabilities' > ?? ? ? ? ? ?}, > ?? ? ? ? ? ?{singleTile: true, isBaseLayer: false}); > ?? ? ? ?map.addLayer(wms2); > Any help would be appreciated. ?Thanks! > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From osgeo.mailinglist at gmail.com Sat Jan 22 08:55:04 2011 From: osgeo.mailinglist at gmail.com (Thomas Gratier) Date: Sat, 22 Jan 2011 17:55:04 +0100 Subject: [mapserver-users] Connecting to remote MapServer WMS/WMF layers using PHP/OpenLayers In-Reply-To: References: <3D892CB0-BFAD-45CA-B428-B4EA9462AFD5@ericjarvies.com> Message-ID: Hello, Look on the code behind this page http://www.catastroloscabos.gob.mx/Catastro/visor/visor.html. It works with Openlayers and connect to the service and the layer you're looking for. Regards ThomasG GIS specialist -------------- next part -------------- An HTML attachment was scrubbed... URL: From 7 at ericjarvies.com Sat Jan 22 11:44:27 2011 From: 7 at ericjarvies.com (Eric Jarvies) Date: Sat, 22 Jan 2011 12:44:27 -0700 Subject: [mapserver-users] Connecting to remote MapServer WMS/WMF layers using PHP/OpenLayers In-Reply-To: References: <3D892CB0-BFAD-45CA-B428-B4EA9462AFD5@ericjarvies.com> Message-ID: <4A90D067-7133-46D3-B13D-1EC32E9DC3C4@ericjarvies.com> Thomas, I have looked at that code, but to no avail. If I re-use that code almost verbatim, changing the js/css/image/etc. paths, it still fails... as seen in the following link: http://loscabosproperties.mx/geoserver/catastro.php Gere is the JavaScript: http://loscabosproperties.mx/geoserver/visor.js On Jan 22, 2011, at 9:55 AM, Thomas Gratier wrote: > Hello, > > Look on the code behind this page http://www.catastroloscabos.gob.mx/Catastro/visor/visor.html. > It works with Openlayers and connect to the service and the layer you're looking for. > > Regards > > ThomasG > GIS specialist > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ericsSignature.png Type: image/png Size: 5863 bytes Desc: not available URL: From osgeo.mailinglist at gmail.com Sat Jan 22 16:14:38 2011 From: osgeo.mailinglist at gmail.com (Thomas Gratier) Date: Sun, 23 Jan 2011 01:14:38 +0100 Subject: [mapserver-users] Connecting to remote MapServer WMS/WMF layers using PHP/OpenLayers In-Reply-To: <4A90D067-7133-46D3-B13D-1EC32E9DC3C4@ericjarvies.com> References: <3D892CB0-BFAD-45CA-B428-B4EA9462AFD5@ericjarvies.com> <4A90D067-7133-46D3-B13D-1EC32E9DC3C4@ericjarvies.com> Message-ID: Hello, Look with firebug the tiles url when hovering. There have wrong url Not sure it will solve everything but server = "http://" + location.host + "/"; must be something like server = "http://www.catastroloscabos.gob.mx/" and because of this change all case like mlayer = new OpenLayers.Layer.MapServer("Manzanas", server + "www.catastroloscabos.gob.mx/cgi-bin/mapserv.fcgi?", { map: '/home/juribe/webcatastro/catastro.map', layers: 'm', map_imagetype: 'png'}, {singleTile: true, isBaseLayer: false}); map.addLayer(mlayer); will look mlayer = new OpenLayers.Layer.MapServer("Manzanas", server + "cgi-bin/mapserv.fcgi", { map: '/home/juribe/webcatastro/catastro.map', layers: 'm', map_imagetype: 'png'}, {singleTile: true, isBaseLayer: false}); map.addLayer(mlayer); If you have others issues, the best is to post now to the users-openlayers list http://lists.osgeo.org/mailman/listinfo/openlayers-users because your questions for the moment seems to be more related to client side and not to mapserver. Regards ThomasG GIS specialist -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Sun Jan 23 05:55:52 2011 From: warmerdam at pobox.com (Frank Warmerdam) Date: Sun, 23 Jan 2011 08:55:52 -0500 Subject: [mapserver-users] capability to reproject to 2 different projections within the map object of the map file In-Reply-To: References: Message-ID: <4D3C3368.70804@pobox.com> On 11-01-21 04:13 PM, John Mitchell wrote: > If I want all the layers within a map file no matter the layers own projection > to have the capability to reproject to 2 different projections would I within > the map object of the map file replace: > PROJECTION > "init=epsg:4326" > END > > With: > PROJECTION > "init=epsg:4326" > "init=epsg:102113" > END John, No, this will not have any useful effect. For WMS service you can list all the coordinate systems you want to be declared as supported in the metadata at the map level. I believe the WMS server howto addresses this. For MapScript you can change the map level projection object at request time to the desired projection. 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 chantal at tmcr.nl Mon Jan 24 01:22:49 2011 From: chantal at tmcr.nl (Chantal Rosmuller) Date: Mon, 24 Jan 2011 10:22:49 +0100 Subject: [mapserver-users] java error when configuring mapserver/secureows Message-ID: <201101241022.49786.chantal@tmcr.nl> Hi, I still have a small problem with mapserver and secure OWS, I followed the steps in http://www.secureows.org/trac/secureows/wiki/ServerDocumentation. I installed mapserver and tested it. I installed securewos server and tested it. I edited services.xml and added: tomcat role1 I created wmsPolicy_mapservertest.xml, with content: The next step is Launch a command to generate the service configuration. This is what I did: java ?-cp /usr/local/owsproxyserver_20081106/apache- tomcat-5.5.20/webapps/owsproxyserver/WEB-INF/classes/ OwsAdmin /usr/local/owsproxyserver_20081106/apache- tomcat-5.5.20/webapps/owsproxyserver/WEB-INF/ Then I get the error: Exception in thread "main" java.lang.NoClassDefFoundError: ?-cp Caused by: java.lang.ClassNotFoundException: ?-cp at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) Could not find the main class: ?-cp. Program will exit. What am I doing wrong here? -- Met vriendelijke groeten, Chantal Rosmuller TMCR Systeembeheer en advies http://www.tmcr.nl Let op, ik heb een nieuw telefoonnummer: 0317769041 From burnsy at northcountrywoods.co.uk Mon Jan 24 01:57:36 2011 From: burnsy at northcountrywoods.co.uk (Carl Burn) Date: Mon, 24 Jan 2011 09:57:36 +0000 Subject: [mapserver-users] Raster layer problem Message-ID: Hello All, I am a newcomer to this list so forgive me if I make any blunders. I am trying to render a map image from mapserver using a tif file which has a georeferencing .tab file in the same folder and I am getting nowhere with it. The tab file content is as follows: ======= TAB File ================== !table !version 300 !charset WindowsLatin1 Definition Table File "MiniScalenogrid.tif" Type "RASTER" (0,0) (0,13000) Label "Pt 1", (700000,0) (7000,13000) Label "Pt 2", (700000,1300000) (7000,0) Label "Pt 3", (0,1300000) (0,0) Label "Pt 4" CoordSys Earth Projection 8, 79, "m", -2, 49, 0.9996012717, 400000, -100000 Units "m" RasterStyle 7 0 ========Tab File ends ======================= The mapfile is below: ========== Map file ========================= MAP NAME "osminiscale" # Map image size SIZE 800 800 UNITS meters EXTENT 41069.1 -1149.02 665378.01 1231178.57 FONTSET './etc/fonts.txt' SYMBOLSET './etc/symbols.sym' PROJECTION 'init=epsg:27700' END # Background color for the map canvas -- change as desired IMAGECOLOR 255 255 255 IMAGEQUALITY 95 IMAGETYPE png OUTPUTFORMAT NAME png DRIVER 'GD/PNG' MIMETYPE 'image/png' IMAGEMODE RGBA EXTENSION 'png' END # Legend LEGEND IMAGECOLOR 255 255 255 STATUS OFF KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # Web interface definition. Only the template parameter # is required to display a map. See MapServer documentation WEB # Set IMAGEPATH to the path where MapServer should # write its output. IMAGEPATH '/tmp/' # Set IMAGEURL to the url that points to IMAGEPATH # as defined in your web server configuration IMAGEURL '/tmp/' # WMS server settings METADATA 'ows_title' 'miniscale' 'ows_onlineresource' ' http://www.foobar.com/cgi-bin/mapserv.exe?map=D:/ms4w/Apache/cgi-bin/osminiscale.map ' 'ows_srs' 'EPSG:27700' END #Scale range at which web interface will operate # Template and header/footer settings # Only the template parameter is required to display a map. See MapServer documentation TEMPLATE 'fooOnlyForWMSGetFeatureInfo' END LAYER NAME 'MiniScalenogrid' TYPE RASTER DUMP true TEMPLATE fooOnlyForWMSGetFeatureInfo EXTENT 41069.1 -1149.02 665378.01 1231178.57 DATA 'D:/opendata/minisc_gb/MiniScale/data/MiniScalenogrid.tif' METADATA 'ows_title' 'MiniScalenogrid' 'ows_srs' 'EPSG:27700' END STATUS OFF TRANSPARENCY 100 PROJECTION 'init=epsg:27700' END END LAYER NAME 'MiniScalewithgrid' TYPE RASTER DUMP true TEMPLATE fooOnlyForWMSGetFeatureInfo EXTENT 41069.1 -1149.02 665378.01 1231178.57 DATA 'D:/opendata/minisc_gb/MiniScale/data/MiniScalewithgrid.tif' METADATA 'ows_title' 'MiniScalewithgrid' 'ows_srs' 'EPSG:27700' END STATUS OFF TRANSPARENCY 100 PROJECTION 'init=epsg:27700' END END END ============ Map File ends ========================== I am not getting an image from the map server and have run shp2img with the following results: msProcessProjection(): Projection library error. unknown elliptical parameter name Any clues or pointers would be great. Thanks Burnsy -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Jan 24 06:29:50 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 24 Jan 2011 10:29:50 -0400 Subject: [mapserver-users] Raster layer problem In-Reply-To: References: Message-ID: <4D3D8CDE.7040106@gatewaygeomatics.com> Hello, Here are my quick thoughts: - remove all projection objects from your mapfile - remove all layers from your mapfile except the one raster/tif layer - use the ogrinfo utility, which is included in MS4W, to get the extents of your tif file (http://www.gdal.org/ogrinfo.html) - use those extents in your mapfile's EXTENT parameter - test your mapfile with the shp2img utility, which is also included in MS4W (http://www.mapserver.org/utilities/shp2img.html) - note that MS4W is already configured for the following IMAGEPATH and IMAGEURL parameters: IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" (the above imagepath value assumes that you have MS4W installed at a root of a drive...if you used the setup.exe installer you might have installed it elsewhere, so that imagepath value might be different) Hope those quick thoughts help. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 11-01-24 5:57 AM, Carl Burn wrote: > Hello All, > > I am a newcomer to this list so forgive me if I make any blunders. > I am trying to render a map image from mapserver using a tif file which > has a georeferencing .tab file in the same folder and I am getting > nowhere with it. The tab file content is as follows: > > ======= TAB File ================== > !table > !version 300 > !charset WindowsLatin1 > > Definition Table > File "MiniScalenogrid.tif" > Type "RASTER" > (0,0) (0,13000) Label "Pt 1", > (700000,0) (7000,13000) Label "Pt 2", > (700000,1300000) (7000,0) Label "Pt 3", > (0,1300000) (0,0) Label "Pt 4" > CoordSys Earth Projection 8, 79, "m", -2, 49, 0.9996012717, 400000, > -100000 > Units "m" > RasterStyle 7 0 > > ========Tab File ends ======================= > > The mapfile is below: > > ========== Map file ========================= > > MAP > NAME "osminiscale" > # Map image size > SIZE 800 800 > UNITS meters > > EXTENT 41069.1 -1149.02 665378.01 1231178.57 > FONTSET './etc/fonts.txt' > SYMBOLSET './etc/symbols.sym' > PROJECTION > 'init=epsg:27700' > END > > # Background color for the map canvas -- change as desired > IMAGECOLOR 255 255 255 > IMAGEQUALITY 95 > IMAGETYPE png > > OUTPUTFORMAT > NAME png > DRIVER 'GD/PNG' > MIMETYPE 'image/png' > IMAGEMODE RGBA > EXTENSION 'png' > END > # Legend > LEGEND > IMAGECOLOR 255 255 255 > STATUS OFF > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > END > > # Web interface definition. Only the template parameter > # is required to display a map. See MapServer documentation > WEB > # Set IMAGEPATH to the path where MapServer should > # write its output. > IMAGEPATH '/tmp/' > > # Set IMAGEURL to the url that points to IMAGEPATH > # as defined in your web server configuration > IMAGEURL '/tmp/' > > # WMS server settings > METADATA > 'ows_title' 'miniscale' > 'ows_onlineresource' > 'http://www.foobar.com/cgi-bin/mapserv.exe?map=D:/ms4w/Apache/cgi-bin/osminiscale.map' > 'ows_srs' 'EPSG:27700' > END > > #Scale range at which web interface will operate > # Template and header/footer settings > # Only the template parameter is required to display a map. See > MapServer documentation > TEMPLATE 'fooOnlyForWMSGetFeatureInfo' > END > > LAYER > NAME 'MiniScalenogrid' > TYPE RASTER > DUMP true > TEMPLATE fooOnlyForWMSGetFeatureInfo > EXTENT 41069.1 -1149.02 665378.01 1231178.57 > DATA 'D:/opendata/minisc_gb/MiniScale/data/MiniScalenogrid.tif' > METADATA > 'ows_title' 'MiniScalenogrid' > 'ows_srs' 'EPSG:27700' > END > STATUS OFF > TRANSPARENCY 100 > PROJECTION > 'init=epsg:27700' > END > END > > LAYER > NAME 'MiniScalewithgrid' > TYPE RASTER > DUMP true > TEMPLATE fooOnlyForWMSGetFeatureInfo > EXTENT 41069.1 -1149.02 665378.01 1231178.57 > DATA 'D:/opendata/minisc_gb/MiniScale/data/MiniScalewithgrid.tif' > METADATA > 'ows_title' 'MiniScalewithgrid' > 'ows_srs' 'EPSG:27700' > END > STATUS OFF > TRANSPARENCY 100 > PROJECTION > 'init=epsg:27700' > END > END > > END > > > ============ Map File ends ========================== > > I am not getting an image from the map server and have run shp2img with > the following results: > > msProcessProjection(): Projection library error. unknown elliptical > parameter name > > Any clues or pointers would be great. > > Thanks > > Burnsy > > From bfraser at geoanalytic.com Mon Jan 24 06:46:51 2011 From: bfraser at geoanalytic.com (Brent Fraser) Date: Mon, 24 Jan 2011 07:46:51 -0700 Subject: [mapserver-users] Raster layer problem In-Reply-To: References: Message-ID: <4D3D90DB.8060703@geoanalytic.com> Carl, Mapserver is likely trying to use it's native tif driver to open the file and not finding the georeferencing information in the .tab file (it doesn't know anything about .tab files). Mapserver can use GDAL to access raster data, and I think GDAL can get the georeferencing info from a .tab file, but I don't know of any way to force Mapserver to use the GDAL driver for tif files. Maybe if you renamed the .tif to .tiff (and change the string in the .tab file). Interesting problem.... One work-around would be to convert the tif/tab to geofiff (see http://www.gisnotes.com/wordpress/2007/06/processing-mapinfo-raster-jpeg-images-using-gdal/) Best Regards, Brent Fraser On 1/24/2011 2:57 AM, Carl Burn wrote: > Hello All, > > I am a newcomer to this list so forgive me if I make any blunders. > I am trying to render a map image from mapserver using a tif file > which has a georeferencing .tab file in the same folder and I am > getting nowhere with it. The tab file content is as follows: > > ======= TAB File ================== > !table > !version 300 > !charset WindowsLatin1 > > Definition Table > File "MiniScalenogrid.tif" > Type "RASTER" > (0,0) (0,13000) Label "Pt 1", > (700000,0) (7000,13000) Label "Pt 2", > (700000,1300000) (7000,0) Label "Pt 3", > (0,1300000) (0,0) Label "Pt 4" > CoordSys Earth Projection 8, 79, "m", -2, 49, 0.9996012717, 400000, > -100000 > Units "m" > RasterStyle 7 0 > > ========Tab File ends ======================= > > The mapfile is below: > > ========== Map file ========================= > > MAP > NAME "osminiscale" > # Map image size > SIZE 800 800 > UNITS meters > > EXTENT 41069.1 -1149.02 665378.01 1231178.57 > FONTSET './etc/fonts.txt' > SYMBOLSET './etc/symbols.sym' > PROJECTION > 'init=epsg:27700' > END > > # Background color for the map canvas -- change as desired > IMAGECOLOR 255 255 255 > IMAGEQUALITY 95 > IMAGETYPE png > > OUTPUTFORMAT > NAME png > DRIVER 'GD/PNG' > MIMETYPE 'image/png' > IMAGEMODE RGBA > EXTENSION 'png' > END > # Legend > LEGEND > IMAGECOLOR 255 255 255 > STATUS OFF > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > END > > # Web interface definition. Only the template parameter > # is required to display a map. See MapServer documentation > WEB > # Set IMAGEPATH to the path where MapServer should > # write its output. > IMAGEPATH '/tmp/' > > # Set IMAGEURL to the url that points to IMAGEPATH > # as defined in your web server configuration > IMAGEURL '/tmp/' > > # WMS server settings > METADATA > 'ows_title' 'miniscale' > 'ows_onlineresource' > 'http://www.foobar.com/cgi-bin/mapserv.exe?map=D:/ms4w/Apache/cgi-bin/osminiscale.map' > 'ows_srs' 'EPSG:27700' > END > > #Scale range at which web interface will operate > # Template and header/footer settings > # Only the template parameter is required to display a map. See > MapServer documentation > TEMPLATE 'fooOnlyForWMSGetFeatureInfo' > END > > LAYER > NAME 'MiniScalenogrid' > TYPE RASTER > DUMP true > TEMPLATE fooOnlyForWMSGetFeatureInfo > EXTENT 41069.1 -1149.02 665378.01 1231178.57 > DATA 'D:/opendata/minisc_gb/MiniScale/data/MiniScalenogrid.tif' > METADATA > 'ows_title' 'MiniScalenogrid' > 'ows_srs' 'EPSG:27700' > END > STATUS OFF > TRANSPARENCY 100 > PROJECTION > 'init=epsg:27700' > END > END > > LAYER > NAME 'MiniScalewithgrid' > TYPE RASTER > DUMP true > TEMPLATE fooOnlyForWMSGetFeatureInfo > EXTENT 41069.1 -1149.02 665378.01 1231178.57 > DATA 'D:/opendata/minisc_gb/MiniScale/data/MiniScalewithgrid.tif' > METADATA > 'ows_title' 'MiniScalewithgrid' > 'ows_srs' 'EPSG:27700' > END > STATUS OFF > TRANSPARENCY 100 > PROJECTION > 'init=epsg:27700' > END > END > > END > > > ============ Map File ends ========================== > > I am not getting an image from the map server and have run shp2img > with the following results: > > msProcessProjection(): Projection library error. unknown elliptical > parameter name > > Any clues or pointers would be great. > > Thanks > > Burnsy > > > _______________________________________________ > 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 burnsy at northcountrywoods.co.uk Mon Jan 24 08:02:27 2011 From: burnsy at northcountrywoods.co.uk (Carl Burn) Date: Mon, 24 Jan 2011 16:02:27 +0000 Subject: [mapserver-users] Raster layer problem In-Reply-To: <4D3D8CDE.7040106@gatewaygeomatics.com> References: <4D3D8CDE.7040106@gatewaygeomatics.com> Message-ID: Hi, thanks for the ideas. Have tried this and here is what I got back from gdalinfo (I couldnt seem to get ogrinfo to run on my tif files): D:\ms4w\tools\gdal-ogr>gdalinfo D:\opendata\minisc_gb\MiniScale\data\miniscaleno grid.tif Warning 1: TIFFFetchNormalTag:Incompatible type for "RichTIFFIPTC"; tag ignored Driver: GTiff/GeoTIFF Files: D:\opendata\minisc_gb\MiniScale\data\miniscalenogrid.tif Size is 7000, 13000 Coordinate System is `' Origin = (0.000000000000000,1300000.000000000000000) Pixel Size = (100.000000000000000,-100.000000000000000) Metadata: TIFFTAG_SOFTWARE=Adobe Photoshop CS4 Macintosh TIFFTAG_DATETIME=2009:12:04 12:52:34 TIFFTAG_XRESOLUTION=254 TIFFTAG_YRESOLUTION=254 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) Image Structure Metadata: COMPRESSION=LZW INTERLEAVE=PIXEL Corner Coordinates: Upper Left ( 0.000, 1300000.000) Lower Left ( 0.0000000, 0.0000000) Upper Right ( 700000.000, 1300000.000) Lower Right ( 700000.000, 0.000) Center ( 350000.000, 650000.000) Band 1 Block=7000x12 Type=Byte, ColorInterp=Red Band 2 Block=7000x12 Type=Byte, ColorInterp=Green Band 3 Block=7000x12 Type=Byte, ColorInterp=Blue I took all of the stuff out of the map file with the exception of the extent and ran shp2img and it runs without any problem, generating a blank png image. I guess I need to add the correct extent information to get the image to display? Cheers Carl On Mon, Jan 24, 2011 at 2:29 PM, Jeff McKenna wrote: > Hello, > > Here are my quick thoughts: > > - remove all projection objects from your mapfile > - remove all layers from your mapfile except the one raster/tif layer > - use the ogrinfo utility, which is included in MS4W, to get the extents of > your tif file (http://www.gdal.org/ogrinfo.html) > - use those extents in your mapfile's EXTENT parameter > - test your mapfile with the shp2img utility, which is also included in > MS4W (http://www.mapserver.org/utilities/shp2img.html) > - note that MS4W is already configured for the following IMAGEPATH and > IMAGEURL parameters: > > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > > (the above imagepath value assumes that you have MS4W installed at a root > of a drive...if you used the setup.exe installer you might have installed it > elsewhere, so that imagepath value might be different) > > Hope those quick thoughts help. > > -jeff > > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > > On 11-01-24 5:57 AM, Carl Burn wrote: > >> Hello All, >> >> I am a newcomer to this list so forgive me if I make any blunders. >> I am trying to render a map image from mapserver using a tif file which >> has a georeferencing .tab file in the same folder and I am getting >> nowhere with it. The tab file content is as follows: >> >> ======= TAB File ================== >> !table >> !version 300 >> !charset WindowsLatin1 >> >> Definition Table >> File "MiniScalenogrid.tif" >> Type "RASTER" >> (0,0) (0,13000) Label "Pt 1", >> (700000,0) (7000,13000) Label "Pt 2", >> (700000,1300000) (7000,0) Label "Pt 3", >> (0,1300000) (0,0) Label "Pt 4" >> CoordSys Earth Projection 8, 79, "m", -2, 49, 0.9996012717, 400000, >> -100000 >> Units "m" >> RasterStyle 7 0 >> >> ========Tab File ends ======================= >> >> The mapfile is below: >> >> ========== Map file ========================= >> >> MAP >> NAME "osminiscale" >> # Map image size >> SIZE 800 800 >> UNITS meters >> >> EXTENT 41069.1 -1149.02 665378.01 1231178.57 >> FONTSET './etc/fonts.txt' >> SYMBOLSET './etc/symbols.sym' >> PROJECTION >> 'init=epsg:27700' >> END >> >> # Background color for the map canvas -- change as desired >> IMAGECOLOR 255 255 255 >> IMAGEQUALITY 95 >> IMAGETYPE png >> >> OUTPUTFORMAT >> NAME png >> DRIVER 'GD/PNG' >> MIMETYPE 'image/png' >> IMAGEMODE RGBA >> EXTENSION 'png' >> END >> # Legend >> LEGEND >> IMAGECOLOR 255 255 255 >> STATUS OFF >> KEYSIZE 18 12 >> LABEL >> TYPE BITMAP >> SIZE MEDIUM >> COLOR 0 0 89 >> END >> END >> >> # Web interface definition. Only the template parameter >> # is required to display a map. See MapServer documentation >> WEB >> # Set IMAGEPATH to the path where MapServer should >> # write its output. >> IMAGEPATH '/tmp/' >> >> # Set IMAGEURL to the url that points to IMAGEPATH >> # as defined in your web server configuration >> IMAGEURL '/tmp/' >> >> # WMS server settings >> METADATA >> 'ows_title' 'miniscale' >> 'ows_onlineresource' >> ' >> http://www.foobar.com/cgi-bin/mapserv.exe?map=D:/ms4w/Apache/cgi-bin/osminiscale.map >> ' >> 'ows_srs' 'EPSG:27700' >> END >> >> #Scale range at which web interface will operate >> # Template and header/footer settings >> # Only the template parameter is required to display a map. See >> MapServer documentation >> TEMPLATE 'fooOnlyForWMSGetFeatureInfo' >> END >> >> LAYER >> NAME 'MiniScalenogrid' >> TYPE RASTER >> DUMP true >> TEMPLATE fooOnlyForWMSGetFeatureInfo >> EXTENT 41069.1 -1149.02 665378.01 1231178.57 >> DATA 'D:/opendata/minisc_gb/MiniScale/data/MiniScalenogrid.tif' >> METADATA >> 'ows_title' 'MiniScalenogrid' >> 'ows_srs' 'EPSG:27700' >> END >> STATUS OFF >> TRANSPARENCY 100 >> PROJECTION >> 'init=epsg:27700' >> END >> END >> >> LAYER >> NAME 'MiniScalewithgrid' >> TYPE RASTER >> DUMP true >> TEMPLATE fooOnlyForWMSGetFeatureInfo >> EXTENT 41069.1 -1149.02 665378.01 1231178.57 >> DATA 'D:/opendata/minisc_gb/MiniScale/data/MiniScalewithgrid.tif' >> METADATA >> 'ows_title' 'MiniScalewithgrid' >> 'ows_srs' 'EPSG:27700' >> END >> STATUS OFF >> TRANSPARENCY 100 >> PROJECTION >> 'init=epsg:27700' >> END >> END >> >> END >> >> >> ============ Map File ends ========================== >> >> I am not getting an image from the map server and have run shp2img with >> the following results: >> >> msProcessProjection(): Projection library error. unknown elliptical >> parameter name >> >> Any clues or pointers would be great. >> >> Thanks >> >> Burnsy >> >> >> > > > > > _______________________________________________ > 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 bchoplin at generale-infographie.fr Mon Jan 24 10:13:19 2011 From: bchoplin at generale-infographie.fr (CHOPLIN Benoit) Date: Mon, 24 Jan 2011 19:13:19 +0100 Subject: [mapserver-users] Serious DGN label rendering issue since MS 5.4.x Message-ID: Hi, Since MapServer 5.4.x (maybe before but 5.0.x was all right and i never tried 5.2.x) i'm facing a very annoying issue concerning DGN annotation layers : when trying to deal with text orientation, both STYLEITEM < AUTO > and manual styling using [OGR :Label...] attributes fails. Debug mode shows that LabelAngle is always read as zero while text string and color are correctly read. Worse : i tried with more recent releases of GDAL and/or MS (home made or MS4W ones) but then it crashes when i'm trying to use [OGR :LabelSize] (other attributes behave fine except - still - the angle). When it happens, the debug file shows that every attributes is read as empty or zero. The last working context was GDAL 1.5.2 with MS 5.0 .3, and only the DGN format seems to be impacted (MITAB stills behaves OK). The OGR style string seems correct, and changing the parameters order (so that it looks like MITAB's) didn't help. The code in mapogr.cpp seems fine and except the conditional compilation settings regarding OGR Style C API which was not used in MS 5.0.x i don't know what could cause this behaviour, except the OGR DGN driver itself. Thanks for any help, Benoit CHOPLIN -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at hostgis.com Mon Jan 24 20:16:31 2011 From: gregor at hostgis.com (Gregor at HostGIS) Date: Mon, 24 Jan 2011 20:16:31 -0800 Subject: [mapserver-users] GD rendering: polygons vs lines Message-ID: <4D3E4E9F.9010006@hostgis.com> Hey guys. I have an interesting rendering issue here. We are using the GD renderer for this project, since it's faster than AGG to the degree that we want to offer it as a speedy option. But the polygon outlines look bad in some cases, especially circles. The center one in black, we render the polygon as a line layer instead. We were surprised to see that the curvature is MUCH smoother and those wedge-cut artifacts are gone. https://www.cartograph.com/~gregor/1.gif Any ideas as to why this is and how we can improve the edges to look like the line version? Is this something in GD or in how MapServer uses GD? Is there perhaps some defines we can change in the source? An obvious approach is to make 2 layers: a polygon with no outlinecolor for the fill, and a line for the border. But this would be two layers instead of one, with the resulting slower rendering anyway. -- 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 jean-francois at gigand.fr Tue Jan 25 02:18:49 2011 From: jean-francois at gigand.fr (=?ISO-8859-1?Q?Jean=2DFran=E7ois_Gigand?=) Date: Tue, 25 Jan 2011 11:18:49 +0100 Subject: [mapserver-users] Raster layer problem In-Reply-To: References: <4D3D8CDE.7040106@gatewaygeomatics.com> Message-ID: Hi, >From your gdalinfo output: Upper Left ( 0.000, 1300000.000) Lower Left ( 0.0000000, 0.0000000) Upper Right ( 700000.000, 1300000.000) Lower Right ( 700000.000, 0.000) Center ( 350000.000, 650000.000) So the extent in the map file would be: EXTENT 0 0 700000, 1300000 Then your TIFF should appear in the output of shp2img. However, these do not seem to be geographical units. Anyway, it does match the extent of your layers seen in your first message. I think your .tab file is not taken into account. Try with a world file (.tfw) which is more "standard", or better, make it a GeoTIFF (use GDAL tools for that). Jeff 2011/1/24 Carl Burn : > Hi, > thanks for the ideas. Have tried this and here is what I got back from > gdalinfo (I couldnt seem to get ogrinfo to run on my tif files): > > D:\ms4w\tools\gdal-ogr>gdalinfo > D:\opendata\minisc_gb\MiniScale\data\miniscaleno > grid.tif > Warning 1: TIFFFetchNormalTag:Incompatible type for "RichTIFFIPTC"; tag > ignored > Driver: GTiff/GeoTIFF > Files: D:\opendata\minisc_gb\MiniScale\data\miniscalenogrid.tif > Size is 7000, 13000 > Coordinate System is `' > Origin = (0.000000000000000,1300000.000000000000000) > Pixel Size = (100.000000000000000,-100.000000000000000) > Metadata: > ??TIFFTAG_SOFTWARE=Adobe Photoshop CS4 Macintosh > ??TIFFTAG_DATETIME=2009:12:04 12:52:34 > ??TIFFTAG_XRESOLUTION=254 > ??TIFFTAG_YRESOLUTION=254 > ??TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) > Image Structure Metadata: > ??COMPRESSION=LZW > ??INTERLEAVE=PIXEL > Corner Coordinates: > Upper Left ?( ? ? ? 0.000, 1300000.000) > Lower Left ?( ? 0.0000000, ? 0.0000000) > Upper Right ( ?700000.000, 1300000.000) > Lower Right ( ?700000.000, ? ? ? 0.000) > Center ? ? ?( ?350000.000, ?650000.000) > Band 1 Block=7000x12 Type=Byte, ColorInterp=Red > Band 2 Block=7000x12 Type=Byte, ColorInterp=Green > Band 3 Block=7000x12 Type=Byte, ColorInterp=Blue > I took all of the stuff out of the map file with the exception of the extent > and ran shp2img and it runs without any problem, generating a blank png > image. I guess I need to add the correct extent information to get the image > to display? > Cheers > Carl > On Mon, Jan 24, 2011 at 2:29 PM, Jeff McKenna > wrote: >> >> Hello, >> >> Here are my quick thoughts: >> >> - remove all projection objects from your mapfile >> - remove all layers from your mapfile except the one raster/tif layer >> - use the ogrinfo utility, which is included in MS4W, to get the extents >> of your tif file (http://www.gdal.org/ogrinfo.html) >> - use those extents in your mapfile's EXTENT parameter >> - test your mapfile with the shp2img utility, which is also included in >> MS4W (http://www.mapserver.org/utilities/shp2img.html) >> - note that MS4W is already configured for the following IMAGEPATH and >> IMAGEURL parameters: >> >> ? ?IMAGEPATH "/ms4w/tmp/ms_tmp/" >> ? ?IMAGEURL "/ms_tmp/" >> >> (the above imagepath value assumes that you have MS4W installed at a root >> of a drive...if you used the setup.exe installer you might have installed it >> elsewhere, so that imagepath value might be different) >> >> Hope those quick thoughts help. >> >> -jeff >> >> >> >> -- >> Jeff McKenna >> MapServer Consulting and Training Services >> http://www.gatewaygeomatics.com/ >> >> >> >> >> On 11-01-24 5:57 AM, Carl Burn wrote: >>> >>> Hello All, >>> >>> I am a newcomer to this list so forgive me if I make any blunders. >>> I am trying to render a map image from mapserver using a tif file which >>> has a georeferencing .tab file ?in the same folder and I am getting >>> nowhere with it. The tab file content is as follows: >>> >>> ======= TAB File ================== >>> !table >>> !version 300 >>> !charset WindowsLatin1 >>> >>> Definition Table >>> ? File "MiniScalenogrid.tif" >>> ? Type "RASTER" >>> ? (0,0) (0,13000) Label "Pt 1", >>> ? (700000,0) (7000,13000) Label "Pt 2", >>> ? (700000,1300000) (7000,0) Label "Pt 3", >>> ? (0,1300000) (0,0) Label "Pt 4" >>> ? CoordSys Earth Projection 8, 79, "m", -2, 49, 0.9996012717, 400000, >>> -100000 >>> ? Units "m" >>> ? RasterStyle 7 0 >>> >>> ========Tab File ends ======================= >>> >>> The mapfile is below: >>> >>> ========== Map file ========================= >>> >>> MAP >>> ? NAME "osminiscale" >>> ? # Map image size >>> ? SIZE 800 800 >>> ? UNITS meters >>> >>> ? EXTENT 41069.1 -1149.02 665378.01 1231178.57 >>> ? FONTSET './etc/fonts.txt' >>> ? SYMBOLSET './etc/symbols.sym' >>> ? PROJECTION >>> 'init=epsg:27700' >>> ? END >>> >>> ? # Background color for the map canvas -- change as desired >>> ? IMAGECOLOR 255 255 255 >>> ? IMAGEQUALITY 95 >>> ? IMAGETYPE png >>> >>> ? OUTPUTFORMAT >>> ? ? NAME png >>> ? ? DRIVER 'GD/PNG' >>> ? ? MIMETYPE 'image/png' >>> ? ? IMAGEMODE RGBA >>> ? ? EXTENSION 'png' >>> ? END >>> ? # Legend >>> ? LEGEND >>> ? ? ? IMAGECOLOR 255 255 255 >>> ? ? STATUS OFF >>> ? ? KEYSIZE 18 12 >>> ? ? LABEL >>> ? ? ? TYPE BITMAP >>> ? ? ? SIZE MEDIUM >>> ? ? ? COLOR 0 0 89 >>> ? ? END >>> ? END >>> >>> ? # Web interface definition. Only the template parameter >>> ? # is required to display a map. See MapServer documentation >>> ? WEB >>> ? ? # Set IMAGEPATH to the path where MapServer should >>> ? ? # write its output. >>> ? ? IMAGEPATH '/tmp/' >>> >>> ? ? # Set IMAGEURL to the url that points to IMAGEPATH >>> ? ? # as defined in your web server configuration >>> ? ? IMAGEURL '/tmp/' >>> >>> ? ? # WMS server settings >>> ? ? METADATA >>> 'ows_title' 'miniscale' >>> 'ows_onlineresource' >>> >>> 'http://www.foobar.com/cgi-bin/mapserv.exe?map=D:/ms4w/Apache/cgi-bin/osminiscale.map' >>> 'ows_srs' 'EPSG:27700' >>> ? ? END >>> >>> ? ? #Scale range at which web interface will operate >>> ? ? # Template and header/footer settings >>> ? ? # Only the template parameter is required to display a map. See >>> MapServer documentation >>> ? ? TEMPLATE 'fooOnlyForWMSGetFeatureInfo' >>> ? END >>> >>> ? LAYER >>> ? ? NAME 'MiniScalenogrid' >>> ? ? TYPE RASTER >>> ? ? DUMP true >>> ? ? TEMPLATE fooOnlyForWMSGetFeatureInfo >>> ? EXTENT 41069.1 -1149.02 665378.01 1231178.57 >>> ? ? DATA 'D:/opendata/minisc_gb/MiniScale/data/MiniScalenogrid.tif' >>> ? ? METADATA >>> 'ows_title' 'MiniScalenogrid' >>> 'ows_srs' 'EPSG:27700' >>> ? ? END >>> ? ? STATUS OFF >>> ? ? TRANSPARENCY 100 >>> ? ? PROJECTION >>> 'init=epsg:27700' >>> ? ? END >>> ? END >>> >>> ? LAYER >>> ? ? NAME 'MiniScalewithgrid' >>> ? ? TYPE RASTER >>> ? ? DUMP true >>> ? ? TEMPLATE fooOnlyForWMSGetFeatureInfo >>> ? EXTENT 41069.1 -1149.02 665378.01 1231178.57 >>> ? ? DATA 'D:/opendata/minisc_gb/MiniScale/data/MiniScalewithgrid.tif' >>> ? ? METADATA >>> 'ows_title' 'MiniScalewithgrid' >>> 'ows_srs' 'EPSG:27700' >>> ? ? END >>> ? ? STATUS OFF >>> ? ? TRANSPARENCY 100 >>> ? ? PROJECTION >>> 'init=epsg:27700' >>> ? ? END >>> ? END >>> >>> END >>> >>> >>> ============ Map File ends ========================== >>> >>> I am not getting an image from the map server and have run shp2img with >>> the following results: >>> >>> msProcessProjection(): Projection library error. unknown elliptical >>> parameter name >>> >>> Any clues or pointers would be great. >>> >>> Thanks >>> >>> Burnsy >>> >>> >> >> >> >> >> >> _______________________________________________ >> 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 SWEYKAM at telefonica.net Tue Jan 25 11:06:16 2011 From: SWEYKAM at telefonica.net (SWEYKAM at telefonica.net) Date: Tue, 25 Jan 2011 20:06:16 +0100 (CET) Subject: [mapserver-users] Protocol version related problems Message-ID: <26682226.421111295982376866.JavaMail.root@wm2> I would highly appreciate some advice on the following problem: WMS layers only display correctly when using HTTP GET requests version 1.1.1 while 1.3.0 causes a distortion of the shape and a spatial displacement. WFS layers only display correctly when using HTTP POST requests version 1.0.0 while with 1.1.0 don?t display (at least not within the view extent). HTTP GET requests version 1.1.0 on the same WFS layer cause -no shape distortion- but an inversion and 90?rotation of the shape plus a spatial displacement. I have also observed that with the WFS protocol version 1.1.0 the ?lowerCorner? and ?upperCorner? coordinates are switched around: lat-long instead of lon-lat. Looks to me as if MapServer messes up the map/layer extents, which are properly defined at MAP, LAYER and Metdadata level. Both MAP and LAYER are in geographic coordinates. When I request a projected WFS layer (POST + any protocol version) the server throws a 500 error. I?m logging what MapServer does (DEBUG level 3 with PROJ_DEBUG and CPL_DEBUG on) but can?t see anything suspicious. As for the server error on POST+reprojected layer, the server logs a ?premature end of script header? in the error.log and ?HTTP/1.1" 500 538 "-" "Python-urllib/2.6" in the access.log According to my hosting service they are using Debian Lenny, and have compiled and installed the Debian packages for MapServer 5.6.5, GDAL 1.5.4 and PROJ 4.7.0. All services work fine on my local MS4W installation (vers. 5.2.1) Does that make any sense????? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Tue Jan 25 11:31:32 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 25 Jan 2011 15:31:32 -0400 Subject: [mapserver-users] Protocol version related problems In-Reply-To: <26682226.421111295982376866.JavaMail.root@wm2> References: <26682226.421111295982376866.JavaMail.root@wm2> Message-ID: <4D3F2514.3060409@gatewaygeomatics.com> On 11-01-25 3:06 PM, SWEYKAM at telefonica.net wrote: > > According to my hosting service they are using Debian Lenny, and have > compiled and installed the Debian packages for MapServer 5.6.5, GDAL > 1.5.4 and PROJ 4.7.0. > > All services work fine on my local MS4W installation (vers. 5.2.1) If you upgrade your local MS4W installation to MS4W version 3.0 (containing MapServer 5.6.5) it will be a better comparison for you I imagine. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From Jukka.Rahkonen at mmmtike.fi Tue Jan 25 13:09:20 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 25 Jan 2011 23:09:20 +0200 Subject: [mapserver-users] Protocol version related problems In-Reply-To: <26682226.421111295982376866.JavaMail.root@wm2> References: <26682226.421111295982376866.JavaMail.root@wm2> Message-ID: Hi, I would suggest to read a bit about WMS 1.1.1 vs. 1.3.0 and axis order of some projections mandated by the standard, and also about WFS 1.0.0 vs. 1.1.0. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta SWEYKAM at telefonica.net L?hetetty: 25. tammikuuta 2011 21:06 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Protocol version related problems I would highly appreciate some advice on the following problem: WMS layers only display correctly when using HTTP GET requests version 1.1.1 while 1.3.0 causes a distortion of the shape and a spatial displacement. WFS layers only display correctly when using HTTP POST requests version 1.0.0 while with 1.1.0 don't display (at least not within the view extent). HTTP GET requests version 1.1.0 on the same WFS layer cause -no shape distortion- but an inversion and 90?rotation of the shape plus a spatial displacement. I have also observed that with the WFS protocol version 1.1.0 the 'lowerCorner' and 'upperCorner' coordinates are switched around: lat-long instead of lon-lat. Looks to me as if MapServer messes up the map/layer extents, which are properly defined at MAP, LAYER and Metdadata level. Both MAP and LAYER are in geographic coordinates. When I request a projected WFS layer (POST + any protocol version) the server throws a 500 error. I'm logging what MapServer does (DEBUG level 3 with PROJ_DEBUG and CPL_DEBUG on) but can't see anything suspicious. As for the server error on POST+reprojected layer, the server logs a 'premature end of script header' in the error.log and 'HTTP/1.1" 500 538 "-" "Python-urllib/2.6" in the access.log According to my hosting service they are using Debian Lenny, and have compiled and installed the Debian packages for MapServer 5.6.5, GDAL 1.5.4 and PROJ 4.7.0. All services work fine on my local MS4W installation (vers. 5.2.1) Does that make any sense????? -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregcorradini at gmail.com Tue Jan 25 19:43:38 2011 From: gregcorradini at gmail.com (Greg Corradini) Date: Tue, 25 Jan 2011 19:43:38 -0800 Subject: [mapserver-users] Mapserver ./config with with httpd executable Message-ID: Hello, I'm trying to build mapserver from source on Ubuntu 10.10 but my apache2 install doesn't have a httpd executable anywhere. I got my apache2 install through aptitude. Is there someway to generate this httpd? Am I missing something obvious? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregcorradini at gmail.com Tue Jan 25 20:48:44 2011 From: gregcorradini at gmail.com (gregcorradini) Date: Tue, 25 Jan 2011 20:48:44 -0800 (PST) Subject: [mapserver-users] Re: Mapserver ./config with with httpd executable In-Reply-To: References: Message-ID: <1296017324712-5961610.post@n2.nabble.com> I did run a find. All that came back was the httpd.config file $ sudo find / -name httpd $ $ sudo find / -name httpd* /etc/apache2/httpd.conf $ -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapserver-config-with-with-httpd-executable-tp5961521p5961610.html Sent from the Mapserver - User mailing list archive at Nabble.com. From gregcorradini at gmail.com Tue Jan 25 21:53:58 2011 From: gregcorradini at gmail.com (gregcorradini) Date: Tue, 25 Jan 2011 21:53:58 -0800 (PST) Subject: [mapserver-users] Re: Mapserver ./config with with httpd executable In-Reply-To: <1296017324712-5961610.post@n2.nabble.com> References: <1296017324712-5961610.post@n2.nabble.com> Message-ID: <1296021238518-5961699.post@n2.nabble.com> Thnx for the replies Puneet. In response to your inquiries. 1) yes, aptitude is a package installer 2) my httpd.conf file is completely empty 3) I reload and restart the server here /etc/init.d/apache2 restart -- this got me thinking So, I tried passing that as the --with-httpd=/etc/init.d/apache2 option. Not sure if it worked, but it didn't give me an error ;) So that means something, but it doesn't mean it's configured right. Here's the output part that's really making me wonder: "configure: checking HTTPD server (Apache) version... using user-supplied httpd (/etc/init.d/apache2) /etc/init.d/apache2 version is (). " And here's my config command and output for anyone who cares: ./configure --with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config --with-wcs --with-wfs --with-wfsclient --with-wmsclient --with-curl-config=/usr/local/bin/curl-config --with-proj=/usr/local --with-tiff --with-gd=/usr/local/ --with-jpeg --with-freetype=/usr/ --with-threads --with-postgis=/usr/bin/pg_config --with-geos=/usr/local/bin/geos-config --with-httpd=/etc/init.d/apache2 > twinkie_config_logs.txt checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for ranlib... ranlib checking for flex... no checking for lex... no checking for yywrap in -lfl... no checking for yywrap in -ll... no checking for bison... no checking for byacc... no checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for exp in -lm... yes checking for __gxx_personality_v0 in -lstdc++... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strdup... yes checking for strrstr... no checking for strcasestr... yes checking for strlcat... no checking for vsnprintf... yes MapServer Version from mapserver.h: '5.6.6' checking if pkg-config path is provided... checking for pkg-config... /usr/bin/pkg-config configure: checking where FreeType 2.x is installed... checking for FT_Init_FreeType in -lfreetype... yes using libfreetype -lfreetype from system libs. configure: checking where Zlib is installed... checking for zlibVersion in -lz... yes using libz from system libs (-DUSE_ZLIB). configure: checking where PNG is installed... checking for png_init_io in -lpng... no PNG (libpng) library cannot be found, possibly needed for GD configure: checking whether we should include JPEG support... checking for jpeg_read_header in -ljpeg... no libjpeg not found. JPEG support not included, possibly needed for GD. configure: checking where libXpm is installed... checking for XpmFreeXpmImage in -lXpm... no XPM (libXpm) library cannot be found, possibly needed for GD configure: checking where libiconv is installed... checking for iconv_open in -lc... yes checking for libiconv_open in -liconv... no checking for iconv_open in -liconv... no using libiconv from system libs. libiconv found. Enabling internationalization (-DUSE_ICONV) configure: checking for GD 2.0.16 or higher... checking for gdFontCacheSetup in -lgd... yes using libgd 2.0.16 (or higher) from -L/usr/local//lib -lgd -lfreetype -lz checking for gdImageGif in -lc... yes checking for gdImagePng in -lc... yes checking for gdImageJpeg in -lc... yes checking for gdImageWBMP in -lc... yes checking for gdImageStringFT in -lc... yes checking for gdImageSetResolution in -lc... no checking for gdImageOpenPolygon in -lc... yes checking for gdImageGifPtr in -lc... yes checking for gdFontGetTiny in -lc... yes using GD ( -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) from /usr/local/. configure: checking whether we should include PDF support... checking for PDF_setlinewidth in -lpdf... no checking for PDF_setrgbcolor in -lpdf... no checking for PDF_moveto in -lpdf... no checking for PDF_curveto in -lpdf... no checking for PDF_show_xy in -lpdf... no checking for PDF_load_font in -lpdf... no libpdf not found or too old... PDF support not included. checking if FTGL support requested... no checking if OGL support requested... no checking if AGG support requested... checking for freetype-config... /usr/local/bin/freetype-config checking if RGBA palette png support requested... no configure: checking whether we should include EPPL7 support... including EPPL7 support. configure: checking whether we should include PROJ.4 support... checking for pj_transform in -lproj... yes using PROJ.4 from /usr/local. configure: checking whether we should include thread safe support... checking for pthread_create in -lpthread... yes using -lpthread from system libs. configure: checking whether we should include ESRI SDE support... ESRI SDE support not requested. checking if GEOS support requested... yes user supplied geos-config (/usr/local/bin/geos-config) checking for GEOS version >= 2.2.2... yes. Found version 3.2.2 GEOS >= 3.0.0 found. Adding -DGEOS_HAS_SIMPLIFY configure: checking whether we should include OGR support... OGR enabled (-DUSE_OGR). checking if GDAL support requested... yes, user supplied gdal-config (/usr/local/bin/gdal-config) configure: checking whether we should include TIFF support... checking for TIFFOpen in -ltiff... no libtiff not found... TIFF support not included. checking if PostGIS support requested... yes, user supplied pg_config (/usr/bin/pg_config) checking for PQserverVersion in -lpq... yes checking if MyGIS support requested... no checking if OracleSpatial support requested... no checking if MING/Flash support requested... no configure: checking whether we should include WMS Server support... OGC WMS compatibility enabled (-DUSE_WMS_SVR). configure: checking whether we should include WFS Server support... OGC WFS Server support enabled (-DUSE_WFS_SVR). configure: checking whether we should include WCS Server support... OGC WCS Server support enabled (-DUSE_WCS_SVR). configure: checking whether we should include WMS Client Connections support... configure: checking whether we should include WFS Client Connections support... configure: checking whether we should include OGC SOS Server support... OGC SOS Server support not requested. checking for curl-config... yes, user supplied curl-config (/usr/local/bin/curl-config) found libcurl version 7.21.3 OGC WMS Client Connections enabled (-DUSE_WMS_LYR). OGC WFS Client Connections enabled (-DUSE_WFS_LYR). checking for libxml2... libxml2 requested for WCS Server. If unavailable disable using --without-xml2-config, but WCS 1.1 support will be disabled. checking for xml2-config... /usr/local/bin/xml2-config found libxml2 version 2.7.8 checking if FriBidi support requested... no checking if Cairo support requested... no checking FastCGI support... not requested. configure: checking HTTPD server (Apache) version... using user-supplied httpd (/etc/init.d/apache2) /etc/init.d/apache2 version is (). Compiling with fast MS_NINT checking compiler warnings... basic configure: checking whether we should enable debug features... configure: checking whether we should enable mapserv CGI command-line debug arguments... configure: checking for PHP/MapScript module options... PHP/MapScript module not configured. checking for g++ -shared ... yes checking if --enable-runpath requested... no checking if --with-java-include-os-name specified... no, autodetected linux configure: creating ./config.status config.status: creating Makefile config.status: creating mapscript/java/Makefile config.status: creating mapscript/csharp/Makefile MapServer is now configured for -------------- Compiler Info ------------- C compiler: gcc -O2 -fPIC -Wall C++ compiler: g++ -O2 -fPIC -Wall Debug: Generic NINT: -------------- Renderer Settings --------- OpenGL support: zlib support: -DUSE_ZLIB png support: palette rgba png support: jpeg support: iconv support: -DUSE_ICONV AGG support: -DUSE_AGG Cairo (SVG,PDF) support: Ming(flash) support: PDFLib support: -------------- Support Libraries --------- Proj.4 support: -DUSE_PROJ Libxml2 support: -DUSE_LIBXML2 FriBidi support: Curl support: -DUSE_CURL FastCGI support: Threading support: -DUSE_THREAD GEOS support: -DUSE_GEOS -DGEOS_HAS_SIMPLIFY -------------- Data Format Drivers ------- native tiff support: PostGIS support: -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION EPPL7 support: -DUSE_EPPL ArcSDE support: OGR support: -DUSE_OGR GDAL support: -DUSE_GDAL Oracle Spatial support: -------------- OGC Services -------------- WMS Server: -DUSE_WMS_SVR WMS Client: -DUSE_WMS_LYR WFS Server: -DUSE_WFS_SVR WFS Client: -DUSE_WMS_LYR WCS Server: -DUSE_WCS_SVR SOS Server: -------------- MapScript ----------------- PHP MapScript: no -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapserver-config-with-with-httpd-executable-tp5961521p5961699.html Sent from the Mapserver - User mailing list archive at Nabble.com. From gregcorradini at gmail.com Tue Jan 25 21:56:50 2011 From: gregcorradini at gmail.com (gregcorradini) Date: Tue, 25 Jan 2011 21:56:50 -0800 (PST) Subject: [mapserver-users] Re: Mapserver ./config with with httpd executable In-Reply-To: <1296021238518-5961699.post@n2.nabble.com> References: <1296017324712-5961610.post@n2.nabble.com> <1296021238518-5961699.post@n2.nabble.com> Message-ID: <1296021410499-5961722.post@n2.nabble.com> whoops, I thougth did something else. sorry about that ;) ./configure --with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config --with-wcs --with-wfs --with-wfsclient --with-wmsclient --with-curl-config=/usr/local/bin/curl-config --with-proj=/usr/local --with-tiff --with-gd=/usr/local/ --with-jpeg --with-freetype=/usr/ --with-threads --with-postgis=/usr/bin/pg_config --with-geos=/usr/local/bin/geos-config --with-httpd=/etc/init.d/apache2 > twinkie_config_logs.txt checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for ranlib... ranlib checking for flex... no checking for lex... no checking for yywrap in -lfl... no checking for yywrap in -ll... no checking for bison... no checking for byacc... no checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for exp in -lm... yes checking for __gxx_personality_v0 in -lstdc++... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strdup... yes checking for strrstr... no checking for strcasestr... yes checking for strlcat... no checking for vsnprintf... yes MapServer Version from mapserver.h: '5.6.6' checking if pkg-config path is provided... checking for pkg-config... /usr/bin/pkg-config configure: checking where FreeType 2.x is installed... checking for FT_Init_FreeType in -lfreetype... yes using libfreetype -lfreetype from system libs. configure: checking where Zlib is installed... checking for zlibVersion in -lz... yes using libz from system libs (-DUSE_ZLIB). configure: checking where PNG is installed... checking for png_init_io in -lpng... no PNG (libpng) library cannot be found, possibly needed for GD configure: checking whether we should include JPEG support... checking for jpeg_read_header in -ljpeg... no libjpeg not found. JPEG support not included, possibly needed for GD. configure: checking where libXpm is installed... checking for XpmFreeXpmImage in -lXpm... no XPM (libXpm) library cannot be found, possibly needed for GD configure: checking where libiconv is installed... checking for iconv_open in -lc... yes checking for libiconv_open in -liconv... no checking for iconv_open in -liconv... no using libiconv from system libs. libiconv found. Enabling internationalization (-DUSE_ICONV) configure: checking for GD 2.0.16 or higher... checking for gdFontCacheSetup in -lgd... yes using libgd 2.0.16 (or higher) from -L/usr/local//lib -lgd -lfreetype -lz checking for gdImageGif in -lc... yes checking for gdImagePng in -lc... yes checking for gdImageJpeg in -lc... yes checking for gdImageWBMP in -lc... yes checking for gdImageStringFT in -lc... yes checking for gdImageSetResolution in -lc... no checking for gdImageOpenPolygon in -lc... yes checking for gdImageGifPtr in -lc... yes checking for gdFontGetTiny in -lc... yes using GD ( -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) from /usr/local/. configure: checking whether we should include PDF support... checking for PDF_setlinewidth in -lpdf... no checking for PDF_setrgbcolor in -lpdf... no checking for PDF_moveto in -lpdf... no checking for PDF_curveto in -lpdf... no checking for PDF_show_xy in -lpdf... no checking for PDF_load_font in -lpdf... no libpdf not found or too old... PDF support not included. checking if FTGL support requested... no checking if OGL support requested... no checking if AGG support requested... checking for freetype-config... /usr/local/bin/freetype-config checking if RGBA palette png support requested... no configure: checking whether we should include EPPL7 support... including EPPL7 support. configure: checking whether we should include PROJ.4 support... checking for pj_transform in -lproj... yes using PROJ.4 from /usr/local. configure: checking whether we should include thread safe support... checking for pthread_create in -lpthread... yes using -lpthread from system libs. configure: checking whether we should include ESRI SDE support... ESRI SDE support not requested. checking if GEOS support requested... yes user supplied geos-config (/usr/local/bin/geos-config) checking for GEOS version >= 2.2.2... yes. Found version 3.2.2 GEOS >= 3.0.0 found. Adding -DGEOS_HAS_SIMPLIFY configure: checking whether we should include OGR support... OGR enabled (-DUSE_OGR). checking if GDAL support requested... yes, user supplied gdal-config (/usr/local/bin/gdal-config) configure: checking whether we should include TIFF support... checking for TIFFOpen in -ltiff... no libtiff not found... TIFF support not included. checking if PostGIS support requested... yes, user supplied pg_config (/usr/bin/pg_config) checking for PQserverVersion in -lpq... yes checking if MyGIS support requested... no checking if OracleSpatial support requested... no checking if MING/Flash support requested... no configure: checking whether we should include WMS Server support... OGC WMS compatibility enabled (-DUSE_WMS_SVR). configure: checking whether we should include WFS Server support... OGC WFS Server support enabled (-DUSE_WFS_SVR). configure: checking whether we should include WCS Server support... OGC WCS Server support enabled (-DUSE_WCS_SVR). configure: checking whether we should include WMS Client Connections support... configure: checking whether we should include WFS Client Connections support... configure: checking whether we should include OGC SOS Server support... OGC SOS Server support not requested. checking for curl-config... yes, user supplied curl-config (/usr/local/bin/curl-config) found libcurl version 7.21.3 OGC WMS Client Connections enabled (-DUSE_WMS_LYR). OGC WFS Client Connections enabled (-DUSE_WFS_LYR). checking for libxml2... libxml2 requested for WCS Server. If unavailable disable using --without-xml2-config, but WCS 1.1 support will be disabled. checking for xml2-config... /usr/local/bin/xml2-config found libxml2 version 2.7.8 checking if FriBidi support requested... no checking if Cairo support requested... no checking FastCGI support... not requested. configure: checking HTTPD server (Apache) version... using user-supplied httpd (/etc/init.d/apache2) /etc/init.d/apache2 version is (). Compiling with fast MS_NINT checking compiler warnings... basic configure: checking whether we should enable debug features... configure: checking whether we should enable mapserv CGI command-line debug arguments... configure: checking for PHP/MapScript module options... PHP/MapScript module not configured. checking for g++ -shared ... yes checking if --enable-runpath requested... no checking if --with-java-include-os-name specified... no, autodetected linux configure: creating ./config.status config.status: creating Makefile config.status: creating mapscript/java/Makefile config.status: creating mapscript/csharp/Makefile MapServer is now configured for -------------- Compiler Info ------------- C compiler: gcc -O2 -fPIC -Wall C++ compiler: g++ -O2 -fPIC -Wall Debug: Generic NINT: -------------- Renderer Settings --------- OpenGL support: zlib support: -DUSE_ZLIB png support: palette rgba png support: jpeg support: iconv support: -DUSE_ICONV AGG support: -DUSE_AGG Cairo (SVG,PDF) support: Ming(flash) support: PDFLib support: -------------- Support Libraries --------- Proj.4 support: -DUSE_PROJ Libxml2 support: -DUSE_LIBXML2 FriBidi support: Curl support: -DUSE_CURL FastCGI support: Threading support: -DUSE_THREAD GEOS support: -DUSE_GEOS -DGEOS_HAS_SIMPLIFY -------------- Data Format Drivers ------- native tiff support: PostGIS support: -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION EPPL7 support: -DUSE_EPPL ArcSDE support: OGR support: -DUSE_OGR GDAL support: -DUSE_GDAL Oracle Spatial support: -------------- OGC Services -------------- WMS Server: -DUSE_WMS_SVR WMS Client: -DUSE_WMS_LYR WFS Server: -DUSE_WFS_SVR WFS Client: -DUSE_WMS_LYR WCS Server: -DUSE_WCS_SVR SOS Server: -------------- MapScript ----------------- PHP MapScript: no -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapserver-config-with-with-httpd-executable-tp5961521p5961722.html Sent from the Mapserver - User mailing list archive at Nabble.com. From gregcorradini at gmail.com Tue Jan 25 21:59:16 2011 From: gregcorradini at gmail.com (gregcorradini) Date: Tue, 25 Jan 2011 21:59:16 -0800 (PST) Subject: [mapserver-users] Re: Mapserver ./config with with httpd executable In-Reply-To: <1296021238518-5961699.post@n2.nabble.com> References: <1296017324712-5961610.post@n2.nabble.com> <1296021238518-5961699.post@n2.nabble.com> Message-ID: <1296021556578-5961725.post@n2.nabble.com> Whoops!!! checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for ranlib... ranlib checking for flex... no checking for lex... no checking for yywrap in -lfl... no checking for yywrap in -ll... no checking for bison... no checking for byacc... no checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for exp in -lm... yes checking for __gxx_personality_v0 in -lstdc++... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strdup... yes checking for strrstr... no checking for strcasestr... yes checking for strlcat... no checking for vsnprintf... yes MapServer Version from mapserver.h: '5.6.6' checking if pkg-config path is provided... checking for pkg-config... /usr/bin/pkg-config configure: checking where FreeType 2.x is installed... checking for FT_Init_FreeType in -lfreetype... yes using libfreetype -lfreetype from system libs. configure: checking where Zlib is installed... checking for zlibVersion in -lz... yes using libz from system libs (-DUSE_ZLIB). configure: checking where PNG is installed... checking for png_init_io in -lpng... no PNG (libpng) library cannot be found, possibly needed for GD configure: checking whether we should include JPEG support... checking for jpeg_read_header in -ljpeg... no libjpeg not found. JPEG support not included, possibly needed for GD. configure: checking where libXpm is installed... checking for XpmFreeXpmImage in -lXpm... no XPM (libXpm) library cannot be found, possibly needed for GD configure: checking where libiconv is installed... checking for iconv_open in -lc... yes checking for libiconv_open in -liconv... no checking for iconv_open in -liconv... no using libiconv from system libs. libiconv found. Enabling internationalization (-DUSE_ICONV) configure: checking for GD 2.0.16 or higher... checking for gdFontCacheSetup in -lgd... yes using libgd 2.0.16 (or higher) from -L/usr/local//lib -lgd -lfreetype -lz checking for gdImageGif in -lc... yes checking for gdImagePng in -lc... yes checking for gdImageJpeg in -lc... yes checking for gdImageWBMP in -lc... yes checking for gdImageStringFT in -lc... yes checking for gdImageSetResolution in -lc... no checking for gdImageOpenPolygon in -lc... yes checking for gdImageGifPtr in -lc... yes checking for gdFontGetTiny in -lc... yes using GD ( -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) from /usr/local/. configure: checking whether we should include PDF support... checking for PDF_setlinewidth in -lpdf... no checking for PDF_setrgbcolor in -lpdf... no checking for PDF_moveto in -lpdf... no checking for PDF_curveto in -lpdf... no checking for PDF_show_xy in -lpdf... no checking for PDF_load_font in -lpdf... no libpdf not found or too old... PDF support not included. checking if FTGL support requested... no checking if OGL support requested... no checking if AGG support requested... checking for freetype-config... /usr/local/bin/freetype-config checking if RGBA palette png support requested... no configure: checking whether we should include EPPL7 support... including EPPL7 support. configure: checking whether we should include PROJ.4 support... checking for pj_transform in -lproj... yes using PROJ.4 from /usr/local. configure: checking whether we should include thread safe support... checking for pthread_create in -lpthread... yes using -lpthread from system libs. configure: checking whether we should include ESRI SDE support... ESRI SDE support not requested. checking if GEOS support requested... yes user supplied geos-config (/usr/local/bin/geos-config) checking for GEOS version >= 2.2.2... yes. Found version 3.2.2 GEOS >= 3.0.0 found. Adding -DGEOS_HAS_SIMPLIFY configure: checking whether we should include OGR support... OGR enabled (-DUSE_OGR). checking if GDAL support requested... yes, user supplied gdal-config (/usr/local/bin/gdal-config) configure: checking whether we should include TIFF support... checking for TIFFOpen in -ltiff... no libtiff not found... TIFF support not included. checking if PostGIS support requested... yes, user supplied pg_config (/usr/bin/pg_config) checking for PQserverVersion in -lpq... yes checking if MyGIS support requested... no checking if OracleSpatial support requested... no checking if MING/Flash support requested... no configure: checking whether we should include WMS Server support... OGC WMS compatibility enabled (-DUSE_WMS_SVR). configure: checking whether we should include WFS Server support... OGC WFS Server support enabled (-DUSE_WFS_SVR). configure: checking whether we should include WCS Server support... OGC WCS Server support enabled (-DUSE_WCS_SVR). configure: checking whether we should include WMS Client Connections support... configure: checking whether we should include WFS Client Connections support... configure: checking whether we should include OGC SOS Server support... OGC SOS Server support not requested. checking for curl-config... yes, user supplied curl-config (/usr/local/bin/curl-config) found libcurl version 7.21.3 OGC WMS Client Connections enabled (-DUSE_WMS_LYR). OGC WFS Client Connections enabled (-DUSE_WFS_LYR). checking for libxml2... libxml2 requested for WCS Server. If unavailable disable using --without-xml2-config, but WCS 1.1 support will be disabled. checking for xml2-config... /usr/local/bin/xml2-config found libxml2 version 2.7.8 checking if FriBidi support requested... no checking if Cairo support requested... no checking FastCGI support... not requested. configure: checking HTTPD server (Apache) version... using user-supplied httpd (/etc/init.d/apache2) /etc/init.d/apache2 version is (). Compiling with fast MS_NINT checking compiler warnings... basic configure: checking whether we should enable debug features... configure: checking whether we should enable mapserv CGI command-line debug arguments... configure: checking for PHP/MapScript module options... PHP/MapScript module not configured. checking for g++ -shared ... yes checking if --enable-runpath requested... no checking if --with-java-include-os-name specified... no, autodetected linux configure: creating ./config.status config.status: creating Makefile config.status: creating mapscript/java/Makefile config.status: creating mapscript/csharp/Makefile MapServer is now configured for -------------- Compiler Info ------------- C compiler: gcc -O2 -fPIC -Wall C++ compiler: g++ -O2 -fPIC -Wall Debug: Generic NINT: -------------- Renderer Settings --------- OpenGL support: zlib support: -DUSE_ZLIB png support: palette rgba png support: jpeg support: iconv support: -DUSE_ICONV AGG support: -DUSE_AGG Cairo (SVG,PDF) support: Ming(flash) support: PDFLib support: -------------- Support Libraries --------- Proj.4 support: -DUSE_PROJ Libxml2 support: -DUSE_LIBXML2 FriBidi support: Curl support: -DUSE_CURL FastCGI support: Threading support: -DUSE_THREAD GEOS support: -DUSE_GEOS -DGEOS_HAS_SIMPLIFY -------------- Data Format Drivers ------- native tiff support: PostGIS support: -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION EPPL7 support: -DUSE_EPPL ArcSDE support: OGR support: -DUSE_OGR GDAL support: -DUSE_GDAL Oracle Spatial support: -------------- OGC Services -------------- WMS Server: -DUSE_WMS_SVR WMS Client: -DUSE_WMS_LYR WFS Server: -DUSE_WFS_SVR WFS Client: -DUSE_WMS_LYR WCS Server: -DUSE_WCS_SVR SOS Server: -------------- MapScript ----------------- PHP MapScript: no -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapserver-config-with-with-httpd-executable-tp5961521p5961725.html Sent from the Mapserver - User mailing list archive at Nabble.com. From punk.kish at gmail.com Tue Jan 25 22:00:06 2011 From: punk.kish at gmail.com (Puneet Kishor) Date: Wed, 26 Jan 2011 00:00:06 -0600 Subject: [mapserver-users] Re: Mapserver ./config with with httpd executable In-Reply-To: <1296021410499-5961722.post@n2.nabble.com> References: <1296017324712-5961610.post@n2.nabble.com> <1296021238518-5961699.post@n2.nabble.com> <1296021410499-5961722.post@n2.nabble.com> Message-ID: <4D3FB866.9080106@gmail.com> gregcorradini wrote: > configure: checking HTTPD server (Apache) version... > using user-supplied httpd (/etc/init.d/apache2) > /etc/init.d/apache2 version is (). That shows that the configure program hasn't found any apache2 binary at that location. Usually init.d contains only init scripts. I know nothing about Ubuntu, but check this https://help.ubuntu.com/8.04/serverguide/C/httpd.html Otherwise, just download Apache source and compile the dang thing yourself. You will know for sure where it is located, because you will tell it where to go. That is why I compile my own software and not use package managers. There are no mysteries. -- Puneet Kishor From gregcorradini at gmail.com Tue Jan 25 22:09:00 2011 From: gregcorradini at gmail.com (gregcorradini) Date: Tue, 25 Jan 2011 22:09:00 -0800 (PST) Subject: [mapserver-users] Re: Mapserver ./config with with httpd executable In-Reply-To: <4D3FB866.9080106@gmail.com> References: <1296017324712-5961610.post@n2.nabble.com> <1296021238518-5961699.post@n2.nabble.com> <4D3FB866.9080106@gmail.com> Message-ID: <1296022140289-5961739.post@n2.nabble.com> gottcha. understood. will update. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapserver-config-with-with-httpd-executable-tp5961521p5961739.html Sent from the Mapserver - User mailing list archive at Nabble.com. From gregcorradini at gmail.com Tue Jan 25 22:49:16 2011 From: gregcorradini at gmail.com (gregcorradini) Date: Tue, 25 Jan 2011 22:49:16 -0800 (PST) Subject: [mapserver-users] Re: Mapserver ./config with with httpd executable In-Reply-To: <1296022140289-5961739.post@n2.nabble.com> References: <1296017324712-5961610.post@n2.nabble.com> <1296021238518-5961699.post@n2.nabble.com> <4D3FB866.9080106@gmail.com> <1296022140289-5961739.post@n2.nabble.com> Message-ID: <1296024556217-5961789.post@n2.nabble.com> thnks Wolfgang --with-httpd=/usr/sbin/apache2 " configure: checking HTTPD server (Apache) version... using user-supplied httpd (/usr/sbin/apache2) /usr/sbin/apache2 version is Apache/2.2.16 (2002016). " -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapserver-config-with-with-httpd-executable-tp5961521p5961789.html Sent from the Mapserver - User mailing list archive at Nabble.com. From toomas.aas at raad.tartu.ee Tue Jan 25 23:49:50 2011 From: toomas.aas at raad.tartu.ee (Toomas Aas) Date: Wed, 26 Jan 2011 09:49:50 +0200 Subject: [mapserver-users] Re: Mapserver ./config with with httpd executable In-Reply-To: <4D3FB866.9080106@gmail.com> References: <1296017324712-5961610.post@n2.nabble.com> <1296021238518-5961699.post@n2.nabble.com> <1296021410499-5961722.post@n2.nabble.com> <4D3FB866.9080106@gmail.com> Message-ID: <20110126094950.72782r2d6nisr12c@webmail.raad.tartu.ee> > gregcorradini wrote: >> configure: checking HTTPD server (Apache) version... >> using user-supplied httpd (/etc/init.d/apache2) >> /etc/init.d/apache2 version is (). I think configure wants to see the actual Apache executable, but you have pointed it to the init script which is used to launch the executable. This doesn't work. Look inside the /etc/init.d/apache2 script with a text viewer to see which executable it launches, and point configure to that. -- Toomas Aas From teplov at geolife.ru Wed Jan 26 02:52:27 2011 From: teplov at geolife.ru (=?koi8-r?B?9MXQzM/XIPPF0sfFyiDnxc7OwcTYxdfJ3g==?=) Date: Wed, 26 Jan 2011 13:52:27 +0300 Subject: [mapserver-users] how to render labels on lines? Message-ID: <5845207ED5CE5B49B1A77CCA11A41EEF9393BA5DFC@mbox.geolife.lan> Hello! I have a problem with using mapserver to render streets and labels to them. I want the labels to be rendered on the streets. If a street has any turn I want to have a curved label to it. So, I read an article about that: http://mapserver.org/development/rfc/ms-rfc-11.html#rfc11 . This idea was passed in 2006, but I haven't found any messages about solution. I am using mapserver-5.6.6.tar.gz release, but keyword "FOLLOW" doesn't work right, see screenshot. I think it is a common task. What is the easiest way to solve this problem? Thanks, Sergey. -------------- next part -------------- A non-text attachment was scrubbed... Name: screen_bad.jpeg Type: image/jpeg Size: 84591 bytes Desc: screen_bad.jpeg URL: From cnieman at dmsolutions.ca Wed Jan 26 04:41:38 2011 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Wed, 26 Jan 2011 07:41:38 -0500 Subject: [mapserver-users] how to render labels on lines? In-Reply-To: <5845207ED5CE5B49B1A77CCA11A41EEF9393BA5DFC@mbox.geolife.lan> References: <5845207ED5CE5B49B1A77CCA11A41EEF9393BA5DFC@mbox.geolife.lan> Message-ID: <4D401682.4030204@dmsolutions.ca> Hello Sergey, Using "ANGLE FOLLOW" in the label block will provide labels that follow the curvature of the line segment that is being labelled. Please note, that if the line segment is shorter than the label, the label will hang off the end of the line unless you use MINFEATURESIZE AUTO in the label block as well. Regards, Christy On 01/26/2011 05:52 AM, ?????? ?????? ??????????? wrote: > Hello! > > I have a problem with using mapserver to render streets and labels to them. > I want the labels to be rendered on the streets. If a street has any turn I want to have a curved label to it. > So, I read an article about that: http://mapserver.org/development/rfc/ms-rfc-11.html#rfc11 . > This idea was passed in 2006, but I haven't found any messages about solution. > I am using mapserver-5.6.6.tar.gz release, but keyword "FOLLOW" doesn't work right, see screenshot. > I think it is a common task. What is the easiest way to solve this problem? > > Thanks, 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 gregcorradini at gmail.com Wed Jan 26 05:20:37 2011 From: gregcorradini at gmail.com (gregcorradini) Date: Wed, 26 Jan 2011 05:20:37 -0800 (PST) Subject: [mapserver-users] [SOLVED] Mapserver ./config with with httpd executable In-Reply-To: <20110126094950.72782r2d6nisr12c@webmail.raad.tartu.ee> References: <1296017324712-5961610.post@n2.nabble.com> <1296021238518-5961699.post@n2.nabble.com> <4D3FB866.9080106@gmail.com> <20110126094950.72782r2d6nisr12c@webmail.raad.tartu.ee> Message-ID: <1296048037622-5962650.post@n2.nabble.com> Thanks everyone for help. I was following the documentation here for Linux compilation: http://mapserver.org/installation/unix.html My apache2 executable is not called httpd but rather apache2 and is located in /usr/sbin. I'm not sure if this is because apache2 is a newer version, or the package installer defaults to this naming, or it's a Ubuntu Linux thing. But i'll figure out the why later. Thanks -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapserver-config-with-with-httpd-executable-tp5961521p5962650.html Sent from the Mapserver - User mailing list archive at Nabble.com. From punk.kish at gmail.com Wed Jan 26 06:00:36 2011 From: punk.kish at gmail.com (Puneet Kishor) Date: Wed, 26 Jan 2011 08:00:36 -0600 Subject: [mapserver-users] [SOLVED] Mapserver ./config with with httpd executable In-Reply-To: <1296048037622-5962650.post@n2.nabble.com> References: <1296017324712-5961610.post@n2.nabble.com> <1296021238518-5961699.post@n2.nabble.com> <4D3FB866.9080106@gmail.com> <20110126094950.72782r2d6nisr12c@webmail.raad.tartu.ee> <1296048037622-5962650.post@n2.nabble.com> Message-ID: <4D402904.9010401@gmail.com> gregcorradini wrote: > My apache2 executable is not called httpd but rather apache2 and is located > in /usr/sbin. I'm not sure if this is because apache2 is a newer version, or > the package installer defaults to this naming, or it's a Ubuntu Linux thing. Probably a package installer or Ubuntu thing. I installed Apache 2 from source code, and my apache executable is called httpd and is in /usr/local/apache2/bin Generally, stuff under /usr/sbin is installed by the system, and generally, we mortals don't touch that stuff lest we feel endless pain. As I said, I stay away from package managers as they can hit us up with unpleasant surprises. -- Puneet Kishor From gregcorradini at gmail.com Wed Jan 26 06:04:45 2011 From: gregcorradini at gmail.com (gregcorradini) Date: Wed, 26 Jan 2011 06:04:45 -0800 (PST) Subject: [mapserver-users] make cannot find -libodbc and -libodbcinst on compilation Message-ID: <1296050685541-5962776.post@n2.nabble.com> Hello, I'm having one more compilation conflict on Ubuntu 10.10 with mapserver 5.6.6 and GDAL support. Here's the error: /usr/bin/ld: cannot find -lodbc /usr/bin/ld: cannot find -lodbcinst collect2: ld returned 1 exit status make: *** [shp2img] Error 1 My ./configure --with-gdal points to the correct gdal_config file. The dependent libs for gdal_config are listed here: CONFIG_DEP_LIBS=" -L/usr/local/lib -lgeos_c -lsqlite3 -lodbc -lodbcinst -lxerces-c -lpthread -ljasper -lhdf5 -lmfhdfalt -ldfalt -lgif -ljpeg -lpng -lnetcdf -L/usr/lib -lpq -lz -lpthread -lm -lrt -ldl -lcurl -Wl,-Bsymbolic-functions " These libraries should be on my system by default. And they are: $ sudo find / -name libodbc.so /usr/lib32/libodbc.so /home/gcorradini/.local/share/Trash/files/usr/lib64/libodbc.so $ sudo find / -name libodbcinst.so /usr/lib32/libodbcinst.so So i have a few questions based on this : 1. How do i tell the compiler where to link to them? 2. Why isn't it able to see them on its own? Thanks -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/make-cannot-find-libodbc-and-libodbcinst-on-compilation-tp5962776p5962776.html Sent from the Mapserver - User mailing list archive at Nabble.com. From yves.jacolin at camptocamp.com Wed Jan 26 06:11:11 2011 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Wed, 26 Jan 2011 15:11:11 +0100 Subject: [mapserver-users] make cannot find -libodbc and -libodbcinst on compilation In-Reply-To: <1296050685541-5962776.post@n2.nabble.com> References: <1296050685541-5962776.post@n2.nabble.com> Message-ID: <201101261511.13565.yves.jacolin@camptocamp.com> Hello, Le mercredi 26 janvier 2011 15:04:45, gregcorradini a ?crit : > Hello, > I'm having one more compilation conflict on Ubuntu 10.10 with mapserver > 5.6.6 and GDAL support. Here's the error: > > /usr/bin/ld: cannot find -lodbc > /usr/bin/ld: cannot find -lodbcinst > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > > > My ./configure --with-gdal points to the correct gdal_config file. The > dependent libs for gdal_config are listed here: > > CONFIG_DEP_LIBS=" -L/usr/local/lib -lgeos_c -lsqlite3 -lodbc -lodbcinst > -lxerces-c -lpthread -ljasper -lhdf5 -lmfhdfalt -ldfalt -lgif -ljpeg -lpng > -lnetcdf -L/usr/lib -lpq -lz -lpthread -lm -lrt -ldl -lcurl > -Wl,-Bsymbolic-functions " > > > These libraries should be on my system by default. And they are: > > $ sudo find / -name libodbc.so > /usr/lib32/libodbc.so > /home/gcorradini/.local/share/Trash/files/usr/lib64/libodbc.so > $ sudo find / -name libodbcinst.so > /usr/lib32/libodbcinst.so > > > So i have a few questions based on this : > > 1. How do i tell the compiler where to link to them? > 2. Why isn't it able to see them on its own? System looking for in its own database which you have to update using ldconfig in root. It possible that this command will correct all of your previous error. So eahc time you finish to install a lib, run this command. When you install from binary package this commande is run by the system. Regards, Y. -- Responsable Formation et Support Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel (France) : +33 4 79 26 57 98 Tel (Suisse) : +41 21 619 1031 Mob. : +33 6 18 75 42 21 Fax : 04 79 70 15 81 Mail : yves.jacolin at camptocamp.com http://www.camptocamp.com From gregcorradini at gmail.com Wed Jan 26 06:31:49 2011 From: gregcorradini at gmail.com (gregcorradini) Date: Wed, 26 Jan 2011 06:31:49 -0800 (PST) Subject: [mapserver-users] Re: make cannot find -libodbc and -libodbcinst on compilation In-Reply-To: <201101261511.13565.yves.jacolin@camptocamp.com> References: <1296050685541-5962776.post@n2.nabble.com> <201101261511.13565.yves.jacolin@camptocamp.com> Message-ID: <1296052309202-5962843.post@n2.nabble.com> Thanks Yves, I tried that --> sudo ldconfig. But I'm still getting the same errors. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/make-cannot-find-libodbc-and-libodbcinst-on-compilation-tp5962776p5962843.html Sent from the Mapserver - User mailing list archive at Nabble.com. From stodge at gmail.com Wed Jan 26 07:14:45 2011 From: stodge at gmail.com (Mike Stoddart) Date: Wed, 26 Jan 2011 10:14:45 -0500 Subject: [mapserver-users] Label text always clipped by tiles Message-ID: I've read many posts and tried several options but my label text is always clipped at the edge of the tile. My mapfile contains: MAP METADATA "LABELCACHE_MAP_EDGE_BUFFER" "-30" END ... LAYER PROCESSING "LABEL_NO_CLIP=ON" .. LABEL PARTIALS TRUE FORCE TRUE Any ideas what else I can try? Thanks From jmckenna at gatewaygeomatics.com Wed Jan 26 07:35:10 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 26 Jan 2011 11:35:10 -0400 Subject: [mapserver-users] Label text always clipped by tiles In-Reply-To: References: Message-ID: <4D403F2E.4040407@gatewaygeomatics.com> On 11-01-26 11:14 AM, Mike Stoddart wrote: > I've read many posts and tried several options but my label text is > always clipped at the edge of the tile. My mapfile contains: > > MAP > METADATA > "LABELCACHE_MAP_EDGE_BUFFER" "-30" > END > ... > LAYER > PROCESSING "LABEL_NO_CLIP=ON" > .. > LABEL > PARTIALS TRUE > FORCE TRUE > > Any ideas what else I can try? > Try: LABEL ... PARTIALS FALSE FORCE FALSE END -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From stodge at gmail.com Wed Jan 26 07:37:32 2011 From: stodge at gmail.com (Mike Stoddart) Date: Wed, 26 Jan 2011 10:37:32 -0500 Subject: [mapserver-users] Label text always clipped by tiles In-Reply-To: <4D403F2E.4040407@gatewaygeomatics.com> References: <4D403F2E.4040407@gatewaygeomatics.com> Message-ID: Thanks Jeff, using this, most of my text labels are missing. My labels always need to be visible. Thanks Mike On Wed, Jan 26, 2011 at 10:35 AM, Jeff McKenna wrote: > On 11-01-26 11:14 AM, Mike Stoddart wrote: >> >> I've read many posts and tried several options but my label text is >> always clipped at the edge of the tile. My mapfile contains: >> >> MAP >> ? ?METADATA >> ? ? ? ?"LABELCACHE_MAP_EDGE_BUFFER" "-30" >> ? ?END >> ... >> LAYER >> ? ? PROCESSING "LABEL_NO_CLIP=ON" >> .. >> LABEL >> ? ? PARTIALS TRUE >> ? ? FORCE TRUE >> >> Any ideas what else I can try? >> > > Try: > > ?LABEL > ? ... > ? PARTIALS FALSE > ? FORCE FALSE > ?END > > -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 gregor at hostgis.com Wed Jan 26 07:41:15 2011 From: gregor at hostgis.com (Gregor at HostGIS) Date: Wed, 26 Jan 2011 07:41:15 -0800 Subject: [mapserver-users] Label text always clipped by tiles In-Reply-To: References: <4D403F2E.4040407@gatewaygeomatics.com> Message-ID: <4D40409B.6080505@hostgis.com> I came into this conversation a bit late, but... So you're tiling, and using MS as your backend. Are you using TileCache or similar in between? If so, TileCache supports "meta-tiling" which may help your label problems significantly. Using meta-tiling, TileCache requests a much larger tile (say a 5x5 tile) and slices it up. Thus, MapServer generates fewer tile edges and truncated/missing labels. That's aside from the obvious benefits of caching your tiles, if your layer isn't subject to change often such that caching is appropriate. -- 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 stodge at gmail.com Wed Jan 26 07:43:20 2011 From: stodge at gmail.com (Mike Stoddart) Date: Wed, 26 Jan 2011 10:43:20 -0500 Subject: [mapserver-users] Label text always clipped by tiles In-Reply-To: <4D40409B.6080505@hostgis.com> References: <4D403F2E.4040407@gatewaygeomatics.com> <4D40409B.6080505@hostgis.com> Message-ID: Thanks Gregor, I was using TileCache, but I switched it off to debug this problem. If TileCache generates larger tiles, will there still be clipped labels? Just fewer clipped labels? I don't think this is a workable solution for me, but if I have the time I'll try it. Thanks Mike On Wed, Jan 26, 2011 at 10:41 AM, Gregor at HostGIS wrote: > I came into this conversation a bit late, but... > > So you're tiling, and using MS as your backend. Are you using TileCache or > similar in between? If so, TileCache supports "meta-tiling" which may help > your label problems significantly. > > Using meta-tiling, TileCache requests a much larger tile (say a 5x5 tile) > and slices it up. Thus, MapServer generates fewer tile edges and > truncated/missing labels. > > That's aside from the obvious benefits of caching your tiles, if your layer > isn't subject to change often such that caching is appropriate. > > -- > 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 Wed Jan 26 07:48:47 2011 From: gregor at hostgis.com (Gregor at HostGIS) Date: Wed, 26 Jan 2011 07:48:47 -0800 Subject: [mapserver-users] Label text always clipped by tiles In-Reply-To: References: <4D403F2E.4040407@gatewaygeomatics.com> <4D40409B.6080505@hostgis.com> Message-ID: <4D40425F.4030000@hostgis.com> > I was using TileCache, but I switched it off to debug this problem. If > TileCache generates larger tiles, will there still be clipped labels? > Just fewer clipped labels? I don't think this is a workable solution > for me, but if I have the time I'll try it. Correct; there would be FEWER labels clipped (if you force them and allow partials) or missing (if you disallow partials). How many fewer, depends on how large you make your meta-tiles. If they're 5x5, that's a significant reduction in the number of tile edges. If you really turn up your MAXSIZE in your mapfile, you could potentially make 10x10 meta-tiles; that's 1% as many tile edges. You could also make your tiles larger. If you have 512x512 tiles, and 10x10 meta-tiles, that's a HUGE reduction in the number of tile edges over single 256x256 tiles. The only method I know that would eliminate ALL tile-edge artifacts, would be to eliminate tiling, e.g. singleTile:true in OpenLayers. Not that that's a great solution either, but it is sometimes the only way. -- 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 stodge at gmail.com Wed Jan 26 07:55:01 2011 From: stodge at gmail.com (Mike Stoddart) Date: Wed, 26 Jan 2011 10:55:01 -0500 Subject: [mapserver-users] Label text always clipped by tiles In-Reply-To: <4D40425F.4030000@hostgis.com> References: <4D403F2E.4040407@gatewaygeomatics.com> <4D40409B.6080505@hostgis.com> <4D40425F.4030000@hostgis.com> Message-ID: Thanks again. I don't think MapServer will work for me, but thanks for your help. On Wed, Jan 26, 2011 at 10:48 AM, Gregor at HostGIS wrote: >> I was using TileCache, but I switched it off to debug this problem. If >> TileCache generates larger tiles, will there still be clipped labels? >> Just fewer clipped labels? I don't think this is a workable solution >> for me, but if I have the time I'll try it. > > Correct; there would be FEWER labels clipped (if you force them and allow > partials) or missing (if you disallow partials). > > How many fewer, depends on how large you make your meta-tiles. If they're > 5x5, that's a significant reduction in the number of tile edges. If you > really turn up your MAXSIZE in your mapfile, you could potentially make > 10x10 meta-tiles; that's 1% as many tile edges. > > You could also make your tiles larger. If you have 512x512 tiles, and 10x10 > meta-tiles, that's a HUGE reduction in the number of tile edges over single > 256x256 tiles. > > The only method I know that would eliminate ALL tile-edge artifacts, would > be to eliminate tiling, e.g. singleTile:true in OpenLayers. Not that that's > a great solution either, but it is sometimes the only way. > > -- > 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 Wed Jan 26 07:56:44 2011 From: gregor at hostgis.com (Gregor at HostGIS) Date: Wed, 26 Jan 2011 07:56:44 -0800 Subject: [mapserver-users] Label text always clipped by tiles In-Reply-To: References: <4D403F2E.4040407@gatewaygeomatics.com> <4D40409B.6080505@hostgis.com> <4D40425F.4030000@hostgis.com> Message-ID: <4D40443C.3090701@hostgis.com> On 1/26/2011 7:55 AM, Mike Stoddart wrote: > Thanks again. I don't think MapServer will work for me, > but thanks for your help. Sure, you're quite welcome. I am curious what else you would use that would eliminate tile-edge artifacts. What map-serving software would you use, for example? I'm always looking to expand my toolkit. -- 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 stodge at gmail.com Wed Jan 26 07:59:04 2011 From: stodge at gmail.com (Mike Stoddart) Date: Wed, 26 Jan 2011 10:59:04 -0500 Subject: [mapserver-users] Label text always clipped by tiles In-Reply-To: <4D40443C.3090701@hostgis.com> References: <4D403F2E.4040407@gatewaygeomatics.com> <4D40409B.6080505@hostgis.com> <4D40425F.4030000@hostgis.com> <4D40443C.3090701@hostgis.com> Message-ID: We currently use a custom generated SVG map - our maps are very small compared to most. I'm exploring alternatives and (shhh) playing with different technologies. Mike On Wed, Jan 26, 2011 at 10:56 AM, Gregor at HostGIS wrote: > On 1/26/2011 7:55 AM, Mike Stoddart wrote: >> >> Thanks again. I don't think MapServer will work for me, >> but thanks for your help. > > Sure, you're quite welcome. > > I am curious what else you would use that would eliminate tile-edge > artifacts. What map-serving software would you use, for example? I'm always > looking to expand my toolkit. > > -- > 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 jean-francois at gigand.fr Wed Jan 26 08:00:07 2011 From: jean-francois at gigand.fr (=?ISO-8859-1?Q?Jean=2DFran=E7ois_Gigand?=) Date: Wed, 26 Jan 2011 17:00:07 +0100 Subject: [mapserver-users] Label text always clipped by tiles In-Reply-To: <4D40425F.4030000@hostgis.com> References: <4D403F2E.4040407@gatewaygeomatics.com> <4D40409B.6080505@hostgis.com> <4D40425F.4030000@hostgis.com> Message-ID: Hi, I met the edge issue when I had to produce statistics maps with proportional symbols. TileCache addressed the issue indeed, with the "metaBuffer" option (see http://tilecache.org/docs/README.html#configuration). It means that MapServer will be called to generate larger tiles which are then cropped by TileCache, which has a time processing cost. The "metaTile" is meant to optimize this by rendering multiple tiles as a single one. Jeff 2011/1/26 Gregor at HostGIS : >> I was using TileCache, but I switched it off to debug this problem. If >> TileCache generates larger tiles, will there still be clipped labels? >> Just fewer clipped labels? I don't think this is a workable solution >> for me, but if I have the time I'll try it. > > Correct; there would be FEWER labels clipped (if you force them and allow > partials) or missing (if you disallow partials). > > How many fewer, depends on how large you make your meta-tiles. If they're > 5x5, that's a significant reduction in the number of tile edges. If you > really turn up your MAXSIZE in your mapfile, you could potentially make > 10x10 meta-tiles; that's 1% as many tile edges. > > You could also make your tiles larger. If you have 512x512 tiles, and 10x10 > meta-tiles, that's a HUGE reduction in the number of tile edges over single > 256x256 tiles. > > The only method I know that would eliminate ALL tile-edge artifacts, would > be to eliminate tiling, e.g. singleTile:true in OpenLayers. Not that that's > a great solution either, but it is sometimes the only way. > > -- > 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 stodge at gmail.com Wed Jan 26 08:02:06 2011 From: stodge at gmail.com (Mike Stoddart) Date: Wed, 26 Jan 2011 11:02:06 -0500 Subject: [mapserver-users] Label text always clipped by tiles In-Reply-To: References: <4D403F2E.4040407@gatewaygeomatics.com> <4D40409B.6080505@hostgis.com> <4D40425F.4030000@hostgis.com> Message-ID: Thanks Jean-Fran?ois, I'll try your solution. Is this clipping issue only a problem in the AGG renderer or does the original GD(?) renderer have the same problem. Thanks Mike On Wed, Jan 26, 2011 at 11:00 AM, Jean-Fran?ois Gigand wrote: > Hi, > > I met the edge issue when I had to produce statistics maps with > proportional symbols. > > TileCache addressed the issue indeed, with the "metaBuffer" option > (see http://tilecache.org/docs/README.html#configuration). > It means that MapServer will be called to generate larger tiles which > are then cropped by TileCache, which has a time processing cost. > > The "metaTile" is meant to optimize this by rendering multiple tiles > as a single one. > > Jeff > > 2011/1/26 Gregor at HostGIS : >>> I was using TileCache, but I switched it off to debug this problem. If >>> TileCache generates larger tiles, will there still be clipped labels? >>> Just fewer clipped labels? I don't think this is a workable solution >>> for me, but if I have the time I'll try it. >> >> Correct; there would be FEWER labels clipped (if you force them and allow >> partials) or missing (if you disallow partials). >> >> How many fewer, depends on how large you make your meta-tiles. If they're >> 5x5, that's a significant reduction in the number of tile edges. If you >> really turn up your MAXSIZE in your mapfile, you could potentially make >> 10x10 meta-tiles; that's 1% as many tile edges. >> >> You could also make your tiles larger. If you have 512x512 tiles, and 10x10 >> meta-tiles, that's a HUGE reduction in the number of tile edges over single >> 256x256 tiles. >> >> The only method I know that would eliminate ALL tile-edge artifacts, would >> be to eliminate tiling, e.g. singleTile:true in OpenLayers. Not that that's >> a great solution either, but it is sometimes the only way. >> >> -- >> 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 jean-francois at gigand.fr Wed Jan 26 08:12:11 2011 From: jean-francois at gigand.fr (=?ISO-8859-1?Q?Jean=2DFran=E7ois_Gigand?=) Date: Wed, 26 Jan 2011 17:12:11 +0100 Subject: [mapserver-users] Label text always clipped by tiles In-Reply-To: References: <4D403F2E.4040407@gatewaygeomatics.com> <4D40409B.6080505@hostgis.com> <4D40425F.4030000@hostgis.com> Message-ID: I'm not sure if the issue is related to the renderer. My issue is met on both AGG and GD, and is perfectly understandable: MapServer requests vector data only within the BBOX. So the rendered image misses symbols which are drawn from outside feature, even though they should be visible on the image because of their size. Same for labels: they are incomplete because missing on the tiles whose BBOX do not contain the geometry they were created from. TileCache is the solution. Set "metaBuffer" to the double of the maximum size in pixels of your symbols. A youger project following TileCache concepts is mod-geocache. It seems to support metaBuffer and metaTiles (haven't tested it yet): http://code.google.com/p/mod-geocache/ Jeff 2011/1/26 Mike Stoddart : > Thanks Jean-Fran?ois, I'll try your solution. > > Is this clipping issue only a problem in the AGG renderer or does the > original GD(?) renderer have the same problem. > > Thanks > Mike > > On Wed, Jan 26, 2011 at 11:00 AM, Jean-Fran?ois Gigand > wrote: >> Hi, >> >> I met the edge issue when I had to produce statistics maps with >> proportional symbols. >> >> TileCache addressed the issue indeed, with the "metaBuffer" option >> (see http://tilecache.org/docs/README.html#configuration). >> It means that MapServer will be called to generate larger tiles which >> are then cropped by TileCache, which has a time processing cost. >> >> The "metaTile" is meant to optimize this by rendering multiple tiles >> as a single one. >> >> Jeff >> >> 2011/1/26 Gregor at HostGIS : >>>> I was using TileCache, but I switched it off to debug this problem. If >>>> TileCache generates larger tiles, will there still be clipped labels? >>>> Just fewer clipped labels? I don't think this is a workable solution >>>> for me, but if I have the time I'll try it. >>> >>> Correct; there would be FEWER labels clipped (if you force them and allow >>> partials) or missing (if you disallow partials). >>> >>> How many fewer, depends on how large you make your meta-tiles. If they're >>> 5x5, that's a significant reduction in the number of tile edges. If you >>> really turn up your MAXSIZE in your mapfile, you could potentially make >>> 10x10 meta-tiles; that's 1% as many tile edges. >>> >>> You could also make your tiles larger. If you have 512x512 tiles, and 10x10 >>> meta-tiles, that's a HUGE reduction in the number of tile edges over single >>> 256x256 tiles. >>> >>> The only method I know that would eliminate ALL tile-edge artifacts, would >>> be to eliminate tiling, e.g. singleTile:true in OpenLayers. Not that that's >>> a great solution either, but it is sometimes the only way. >>> >>> -- >>> 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 >>> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From stodge at gmail.com Wed Jan 26 08:25:24 2011 From: stodge at gmail.com (Mike Stoddart) Date: Wed, 26 Jan 2011 11:25:24 -0500 Subject: [mapserver-users] Label text always clipped by tiles In-Reply-To: References: <4D403F2E.4040407@gatewaygeomatics.com> <4D40409B.6080505@hostgis.com> <4D40425F.4030000@hostgis.com> Message-ID: I set metaBuffer to 20 (I have SIZE=10) and there's no difference. metaTile="yes" metaBuffer=20 Thanks Mike On Wed, Jan 26, 2011 at 11:12 AM, Jean-Fran?ois Gigand wrote: > I'm not sure if the issue is related to the renderer. > My issue is met on both AGG and GD, and is perfectly understandable: > MapServer requests vector data only within the BBOX. So the rendered > image misses symbols which are drawn from outside feature, even though > they should be visible on the image because of their size. > Same for labels: they are incomplete because missing on the tiles > whose BBOX do not contain the geometry they were created from. > > TileCache is the solution. Set "metaBuffer" to the double of the maximum > size in pixels of your symbols. > > A youger project following TileCache concepts is mod-geocache. It > seems to support metaBuffer and metaTiles (haven't tested it yet): > http://code.google.com/p/mod-geocache/ > > Jeff > > 2011/1/26 Mike Stoddart : >> Thanks Jean-Fran?ois, I'll try your solution. >> >> Is this clipping issue only a problem in the AGG renderer or does the >> original GD(?) renderer have the same problem. >> >> Thanks >> Mike >> >> On Wed, Jan 26, 2011 at 11:00 AM, Jean-Fran?ois Gigand >> wrote: >>> Hi, >>> >>> I met the edge issue when I had to produce statistics maps with >>> proportional symbols. >>> >>> TileCache addressed the issue indeed, with the "metaBuffer" option >>> (see http://tilecache.org/docs/README.html#configuration). >>> It means that MapServer will be called to generate larger tiles which >>> are then cropped by TileCache, which has a time processing cost. >>> >>> The "metaTile" is meant to optimize this by rendering multiple tiles >>> as a single one. >>> >>> Jeff >>> >>> 2011/1/26 Gregor at HostGIS : >>>>> I was using TileCache, but I switched it off to debug this problem. If >>>>> TileCache generates larger tiles, will there still be clipped labels? >>>>> Just fewer clipped labels? I don't think this is a workable solution >>>>> for me, but if I have the time I'll try it. >>>> >>>> Correct; there would be FEWER labels clipped (if you force them and allow >>>> partials) or missing (if you disallow partials). >>>> >>>> How many fewer, depends on how large you make your meta-tiles. If they're >>>> 5x5, that's a significant reduction in the number of tile edges. If you >>>> really turn up your MAXSIZE in your mapfile, you could potentially make >>>> 10x10 meta-tiles; that's 1% as many tile edges. >>>> >>>> You could also make your tiles larger. If you have 512x512 tiles, and 10x10 >>>> meta-tiles, that's a HUGE reduction in the number of tile edges over single >>>> 256x256 tiles. >>>> >>>> The only method I know that would eliminate ALL tile-edge artifacts, would >>>> be to eliminate tiling, e.g. singleTile:true in OpenLayers. Not that that's >>>> a great solution either, but it is sometimes the only way. >>>> >>>> -- >>>> 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 >>>> >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From gregor at hostgis.com Wed Jan 26 08:30:45 2011 From: gregor at hostgis.com (Gregor at HostGIS) Date: Wed, 26 Jan 2011 08:30:45 -0800 Subject: [mapserver-users] Label text always clipped by tiles In-Reply-To: References: <4D403F2E.4040407@gatewaygeomatics.com> <4D40409B.6080505@hostgis.com> <4D40425F.4030000@hostgis.com> Message-ID: <4D404C35.5050402@hostgis.com> On 1/26/2011 8:25 AM, Mike Stoddart wrote: > I set metaBuffer to 20 (I have SIZE=10) and there's no difference. > metaTile="yes" > metaBuffer=20 Try metaTile=true, without the " marks. And of course, erase any existing cached tiles, so you're sure to be generating new ones. I hate when I forget that; it's so embarrassing. :) Then, the relevant paragraph and maybe a URL of 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 stodge at gmail.com Wed Jan 26 08:37:43 2011 From: stodge at gmail.com (Mike Stoddart) Date: Wed, 26 Jan 2011 11:37:43 -0500 Subject: [mapserver-users] Label text always clipped by tiles In-Reply-To: <4D404C35.5050402@hostgis.com> References: <4D403F2E.4040407@gatewaygeomatics.com> <4D40409B.6080505@hostgis.com> <4D40425F.4030000@hostgis.com> <4D404C35.5050402@hostgis.com> Message-ID: Sorry, the server is on my laptop and isn't accessible from the outside world. Yeah I've been burned too with a stale cache so I delete it everytime I make a change. I also restart Apache to make sure the new configuration is read. test.map: LAYER NAME "test_text" CONNECTIONTYPE postgis CONNECTION "host=localhost port=5432 dbname=dbname user=username password=password" DATA "the_geom from gis_geometry using unique id" FILTER "dataset='test_text' and etype='text'" STATUS DEFAULT PROCESSING "LABEL_NO_CLIP=ON" TYPE POINT TRANSPARENCY ALPHA LABELITEM "text" PROJECTION "init=epsg:4326" END CLASS NAME "text" STYLE COLOR 0 0 0 END LABEL TYPE TRUETYPE FONT "free-vera" SIZE 10 COLOR 255 0 0 POSITION CC PARTIALS TRUE FORCE TRUE END END END tilecache.cfg: [test_text] type=MapServerLayer layers=test_text mapfile=/opt/test.map bbox=-50000, -50000, 50000, 50000 extension=png srs=epsg:4326 extent_type=loose resolutions=390.625, 195.3125, 97.65625, 48.828125, 24.4140625, 12.20703125, 6.103515625, 3.0517578125, 1.52587890625, 0.762939453125, 0.3814697265625, 0.19073486328125, 0.095367431640625, 0.0476837158203125, 0.02384185791015625, 0.011920928955078125, 0.0059604644775390625, 0.0029802322387695312, 0.0014901161193847656, 0.00074505805969238281 extent_type=loose metaTile=true metaBuffer=20 Thanks Mike On Wed, Jan 26, 2011 at 11:30 AM, Gregor at HostGIS wrote: > On 1/26/2011 8:25 AM, Mike Stoddart wrote: >> >> I set metaBuffer to 20 (I have SIZE=10) and there's no difference. >> metaTile="yes" >> metaBuffer=20 > > Try metaTile=true, without the " marks. > > And of course, erase any existing cached tiles, so you're sure to be > generating new ones. I hate when I forget that; it's so embarrassing. :) > > Then, the relevant paragraph and maybe a URL of 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 gregor at hostgis.com Wed Jan 26 08:53:12 2011 From: gregor at hostgis.com (Gregor at HostGIS) Date: Wed, 26 Jan 2011 08:53:12 -0800 Subject: [mapserver-users] Label text always clipped by tiles In-Reply-To: References: <4D403F2E.4040407@gatewaygeomatics.com> <4D40409B.6080505@hostgis.com> <4D40425F.4030000@hostgis.com> <4D404C35.5050402@hostgis.com> Message-ID: <4D405178.3010103@hostgis.com> Let's see: For starts, set PARTIALS FALSE and FORCE FALSE in the mapfile. That would prevent truncated labels, which would be worse than missing labels. (presumably) You may also want to add MAXSIZE 2048 to the mapfile, an element of the MAP object. This would allow 5x5 (1280) tiles, as opposed to the default which I think is 1024. The tilecache.cfg looks good too. And you say it's showing the very same tiles, truncated labels, etc.? -- 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 stodge at gmail.com Wed Jan 26 08:57:49 2011 From: stodge at gmail.com (Mike Stoddart) Date: Wed, 26 Jan 2011 11:57:49 -0500 Subject: [mapserver-users] Label text always clipped by tiles In-Reply-To: <4D405178.3010103@hostgis.com> References: <4D403F2E.4040407@gatewaygeomatics.com> <4D40409B.6080505@hostgis.com> <4D40425F.4030000@hostgis.com> <4D404C35.5050402@hostgis.com> <4D405178.3010103@hostgis.com> Message-ID: My problem is that I need ALL labels to be complete and visible. I cannot display a partial label. Now I don't see any clipped labels because they aren't displayed. I'm using: tilecache 2.11 mapserver-5.4.2.3.fc12.x86_64 mapserver-python-5.4.2.3.fc12.x86_64 which I should have mentioned earlier. Thanks Mike On Wed, Jan 26, 2011 at 11:53 AM, Gregor at HostGIS wrote: > Let's see: > > For starts, set PARTIALS FALSE and FORCE FALSE in the mapfile. That would > prevent truncated labels, which would be worse than missing labels. > (presumably) > > You may also want to add MAXSIZE 2048 to the mapfile, an element of the MAP > object. This would allow 5x5 (1280) tiles, as opposed to the default which I > think is 1024. > > The tilecache.cfg looks good too. And you say it's showing the very same > tiles, truncated labels, etc.? > > -- > 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 Wed Jan 26 09:03:37 2011 From: gregor at hostgis.com (Gregor at HostGIS) Date: Wed, 26 Jan 2011 09:03:37 -0800 Subject: [mapserver-users] Label text always clipped by tiles In-Reply-To: References: <4D403F2E.4040407@gatewaygeomatics.com> <4D40409B.6080505@hostgis.com> <4D40425F.4030000@hostgis.com> <4D404C35.5050402@hostgis.com> <4D405178.3010103@hostgis.com> Message-ID: <4D4053E9.4080807@hostgis.com> > My problem is that I need ALL labels to be complete and visible. I don't think that's possible if you're using tiles. Somewhere, some label will be close to a tile boundary and be truncated or omitted. If you find a mapping engine that can place labels like that (drawing half of a label on tile A when the point is on tile B) I would be interested to hear about it. -- 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 stodge at gmail.com Wed Jan 26 09:05:28 2011 From: stodge at gmail.com (Mike Stoddart) Date: Wed, 26 Jan 2011 12:05:28 -0500 Subject: [mapserver-users] Label text always clipped by tiles In-Reply-To: <4D4053E9.4080807@hostgis.com> References: <4D403F2E.4040407@gatewaygeomatics.com> <4D40409B.6080505@hostgis.com> <4D40425F.4030000@hostgis.com> <4D404C35.5050402@hostgis.com> <4D405178.3010103@hostgis.com> <4D4053E9.4080807@hostgis.com> Message-ID: I admit I haven't checked but does Google et al suffer the same problem? On Wed, Jan 26, 2011 at 12:03 PM, Gregor at HostGIS wrote: >> My problem is that I need ALL labels to be complete and visible. > > I don't think that's possible if you're using tiles. Somewhere, some label > will be close to a tile boundary and be truncated or omitted. > > If you find a mapping engine that can place labels like that (drawing half > of a label on tile A when the point is on tile B) I would be interested to > hear about it. > > -- > 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 Wed Jan 26 09:13:31 2011 From: gregor at hostgis.com (Gregor at HostGIS) Date: Wed, 26 Jan 2011 09:13:31 -0800 Subject: [mapserver-users] Label text always clipped by tiles In-Reply-To: References: <4D403F2E.4040407@gatewaygeomatics.com> <4D40409B.6080505@hostgis.com> <4D40425F.4030000@hostgis.com> <4D404C35.5050402@hostgis.com> <4D405178.3010103@hostgis.com> <4D4053E9.4080807@hostgis.com> Message-ID: <4D40563B.9010104@hostgis.com> On 1/26/2011 9:05 AM, Mike Stoddart wrote: > I admit I haven't checked but does Google et al suffer the same problem? If you mean overlaying your data atop Google, say a small dataset expressable as KML, that should work A-OK. If it's pure vector data being rendered client-side, tiling wouldn't be an issue at all. But of course, that's where we leave MapServer Land and get into Google Earth, Google Maps, etc. If you mean "how did Google do it?" on their basemap I don't know entirely. They seem to have avoided (or later corrected) a lot of tile-edge artifacts. Their mechanisms probably included a) a mapping engine that positions labels to geographic points; b) large-scale meta-tiling with terabytes of RAM; and c) a large staff of personnel for QC and a few years of correcting reported issues. -- 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 jean-francois at gigand.fr Wed Jan 26 11:46:33 2011 From: jean-francois at gigand.fr (=?ISO-8859-1?Q?Jean=2DFran=E7ois_Gigand?=) Date: Wed, 26 Jan 2011 20:46:33 +0100 Subject: [mapserver-users] Label text always clipped by tiles In-Reply-To: <4D4053E9.4080807@hostgis.com> References: <4D403F2E.4040407@gatewaygeomatics.com> <4D40409B.6080505@hostgis.com> <4D40425F.4030000@hostgis.com> <4D404C35.5050402@hostgis.com> <4D405178.3010103@hostgis.com> <4D4053E9.4080807@hostgis.com> Message-ID: Hi, 2011/1/26 Gregor at HostGIS : >> My problem is that I need ALL labels to be complete and visible. > > I don't think that's possible if you're using tiles. Somewhere, some label > will be close to a tile boundary and be truncated or omitted. I think it is possible! Because setting a "big enough" metaBuffer will make all labels "far enough" from tile boundaries (since the metaBuffer artificially extends tile boundaries). What about the "labelcache_map_edge_buffer" metadata option of MapServer the TileCache doc talks about ? (http://tilecache.org/docs/README.html) I could not find good doc about it. However, it should not be needed. Try setting the metaBuffer quite big (more than 20, say 100 as a test). Disable metaTile to keep things simple for the test. Enable MapServer logging and check the GetMap dimensions requested by TileCache. Requesting TileCache for 256px with metaBuffer=100 should generate MapServer GetMap requests with width and height of 456px. Also, make sure PIL has no problem cropping the image back to 256px. Check the interlaced PNG issue (http://tilecache.org/docs/README.html). From stodge at gmail.com Wed Jan 26 12:23:20 2011 From: stodge at gmail.com (Mike Stoddart) Date: Wed, 26 Jan 2011 15:23:20 -0500 Subject: [mapserver-users] Label text always clipped by tiles In-Reply-To: References: <4D403F2E.4040407@gatewaygeomatics.com> <4D40409B.6080505@hostgis.com> <4D40425F.4030000@hostgis.com> <4D404C35.5050402@hostgis.com> <4D405178.3010103@hostgis.com> <4D4053E9.4080807@hostgis.com> Message-ID: I set metaBuffer to 100 and I'm seeing this in MapServer's log: msDrawLabelCache(): labelcache_map_edge_buffer = -100 But tilecache always passes a width and height of 256 in the URL to mapserver. Thanks Mike On Wed, Jan 26, 2011 at 2:46 PM, Jean-Fran?ois Gigand wrote: > Hi, > > 2011/1/26 Gregor at HostGIS : >>> My problem is that I need ALL labels to be complete and visible. >> >> I don't think that's possible if you're using tiles. Somewhere, some label >> will be close to a tile boundary and be truncated or omitted. > > I think it is possible! Because setting a "big enough" metaBuffer will > make all labels "far enough" from tile boundaries (since the > metaBuffer artificially extends tile boundaries). > > What about the "labelcache_map_edge_buffer" metadata option of > MapServer the TileCache doc talks about ? > (http://tilecache.org/docs/README.html) > I could not find good doc about it. > > However, it should not be needed. Try setting the metaBuffer quite big > (more than 20, say 100 as a test). > Disable metaTile to keep things simple for the test. > > Enable MapServer logging and check the GetMap dimensions requested by TileCache. > Requesting TileCache for 256px with metaBuffer=100 should generate > MapServer GetMap requests with width and height of 456px. > Also, make sure PIL has no problem cropping the image back to 256px. > Check the interlaced PNG issue > (http://tilecache.org/docs/README.html). > From stodge at gmail.com Wed Jan 26 12:30:13 2011 From: stodge at gmail.com (Mike Stoddart) Date: Wed, 26 Jan 2011 15:30:13 -0500 Subject: [mapserver-users] Label text always clipped by tiles In-Reply-To: References: <4D403F2E.4040407@gatewaygeomatics.com> <4D40409B.6080505@hostgis.com> <4D40425F.4030000@hostgis.com> <4D404C35.5050402@hostgis.com> <4D405178.3010103@hostgis.com> <4D4053E9.4080807@hostgis.com> Message-ID: I have three layers; polygon, line and text (point). I get better results when I combine all three layers into one OpenLayer layer than when I move the text layer into its own OpenLayer layer. But I'm seeing fewer partials. Thanks Mike On Wed, Jan 26, 2011 at 2:46 PM, Jean-Fran?ois Gigand wrote: > Hi, > > 2011/1/26 Gregor at HostGIS : >>> My problem is that I need ALL labels to be complete and visible. >> >> I don't think that's possible if you're using tiles. Somewhere, some label >> will be close to a tile boundary and be truncated or omitted. > > I think it is possible! Because setting a "big enough" metaBuffer will > make all labels "far enough" from tile boundaries (since the > metaBuffer artificially extends tile boundaries). > > What about the "labelcache_map_edge_buffer" metadata option of > MapServer the TileCache doc talks about ? > (http://tilecache.org/docs/README.html) > I could not find good doc about it. > > However, it should not be needed. Try setting the metaBuffer quite big > (more than 20, say 100 as a test). > Disable metaTile to keep things simple for the test. > > Enable MapServer logging and check the GetMap dimensions requested by TileCache. > Requesting TileCache for 256px with metaBuffer=100 should generate > MapServer GetMap requests with width and height of 456px. > Also, make sure PIL has no problem cropping the image back to 256px. > Check the interlaced PNG issue > (http://tilecache.org/docs/README.html). > From Jukka.Rahkonen at mmmtike.fi Wed Jan 26 12:43:44 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 26 Jan 2011 22:43:44 +0200 Subject: [mapserver-users] Label text always clipped by tiles In-Reply-To: References: <4D403F2E.4040407@gatewaygeomatics.com><4D40409B.6080505@hostgis.com><4D40425F.4030000@hostgis.com><4D404C35.5050402@hostgis.com><4D405178.3010103@hostgis.com> Message-ID: Hi, I have never done this kind of label stuff myself, but Mapserver documentation seems to say that first the LAYER should have LABELCACHE ON before other advanced features have an effect. You sure have activated labelcache? -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Mike Stoddart L?hetetty: 26. tammikuuta 2011 18:58 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Label text always clipped by tiles My problem is that I need ALL labels to be complete and visible. I cannot display a partial label. Now I don't see any clipped labels because they aren't displayed. I'm using: tilecache 2.11 mapserver-5.4.2.3.fc12.x86_64 mapserver-python-5.4.2.3.fc12.x86_64 which I should have mentioned earlier. Thanks Mike On Wed, Jan 26, 2011 at 11:53 AM, Gregor at HostGIS wrote: > Let's see: > > For starts, set PARTIALS FALSE and FORCE FALSE in the mapfile. That would > prevent truncated labels, which would be worse than missing labels. > (presumably) > > You may also want to add MAXSIZE 2048 to the mapfile, an element of the MAP > object. This would allow 5x5 (1280) tiles, as opposed to the default which I > think is 1024. > > The tilecache.cfg looks good too. And you say it's showing the very same > tiles, truncated labels, etc.? > > -- > 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 thomas.bonfort at gmail.com Wed Jan 26 15:46:52 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 27 Jan 2011 00:46:52 +0100 Subject: [mapserver-users] Label text always clipped by tiles In-Reply-To: References: <4D403F2E.4040407@gatewaygeomatics.com> <4D40409B.6080505@hostgis.com> <4D40425F.4030000@hostgis.com> <4D404C35.5050402@hostgis.com> <4D405178.3010103@hostgis.com> Message-ID: labelcache on is the default setting, and will apply for all layers where you have not set FORCE TRUE on your labels. if you don't want overlapping labels, this should be left as is. when tiling, you should *always* set PARTIALS FALSE on all your labels. - the metabuffer tilecache option should be set, to avoid artifacts on lines due to the the line caps that can be set. it will not have an effect on cut labels. when setting this option, mapserver *must* be configured with its labelcache_map_edge_buffer set to the same value as the tilecache metabuffer, so it will not put labels in the area that will be cut off by the metabuffer. - metatiling has an effect on the number of labels that can be displayed, in the sense that it is easier to display labels in a large image than it is in a 256x256 tile. as for your requirement of having all labels appear, without overlapping, and being continuous across tile boundaries, I'm afraid this is physically impossible to obtain. regards, thomas On Wed, Jan 26, 2011 at 21:43, Rahkonen Jukka wrote: > Hi, > > I have never done this kind of label stuff myself, but Mapserver documentation seems to say that first the LAYER should have LABELCACHE ON before other advanced features have an effect. You sure have activated labelcache? > > -Jukka Rahkonen- > > > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Mike Stoddart > L?hetetty: 26. tammikuuta 2011 18:58 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] Label text always clipped by tiles > > My problem is that I need ALL labels to be complete and visible. I > cannot display a partial label. Now I don't see any clipped labels > because they aren't displayed. I'm using: > > tilecache 2.11 > mapserver-5.4.2.3.fc12.x86_64 > mapserver-python-5.4.2.3.fc12.x86_64 > > which I should have mentioned earlier. > > Thanks > Mike > > On Wed, Jan 26, 2011 at 11:53 AM, Gregor at HostGIS wrote: >> Let's see: >> >> For starts, set PARTIALS FALSE and FORCE FALSE in the mapfile. That would >> prevent truncated labels, which would be worse than missing labels. >> (presumably) >> >> You may also want to add MAXSIZE 2048 to the mapfile, an element of the MAP >> object. This would allow 5x5 (1280) tiles, as opposed to the default which I >> think is 1024. >> >> The tilecache.cfg looks good too. And you say it's showing the very same >> tiles, truncated labels, etc.? >> >> -- >> 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 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From gregcorradini at gmail.com Wed Jan 26 19:43:23 2011 From: gregcorradini at gmail.com (gregcorradini) Date: Wed, 26 Jan 2011 19:43:23 -0800 (PST) Subject: [mapserver-users] Re: make cannot find -libodbc and -libodbcinst on compilation In-Reply-To: <1296052309202-5962843.post@n2.nabble.com> References: <1296050685541-5962776.post@n2.nabble.com> <201101261511.13565.yves.jacolin@camptocamp.com> <1296052309202-5962843.post@n2.nabble.com> Message-ID: <1296099803395-5965117.post@n2.nabble.com> Much thnx to Jeff for his reply. I ran $ ldconfig -v >/tmp/ldconfig.output.txt 2>&1 I found libodbc* in the output to be in exactly the same directories as when I run $ sudo find / -name libodbc* So as far as i can tell this means gdal-config is saying my libodbc* libraries should be one place when they are somewhere else. Makes sense that mapserver is errors out on make. Not sure how that happened. I tried editing the Makefile after configuring it to account for these differences but just got the same error. I then tried compiling mapserver without GDAL support. When i did that postgis started throwing me similar errors about libxslt, libpam and libreadline Not sure. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/make-cannot-find-libodbc-and-libodbcinst-on-compilation-tp5962776p5965117.html Sent from the Mapserver - User mailing list archive at Nabble.com. From gregor at hostgis.com Wed Jan 26 19:57:00 2011 From: gregor at hostgis.com (Gregor at HostGIS) Date: Wed, 26 Jan 2011 19:57:00 -0800 Subject: [mapserver-users] Re: GD rendering: polygons vs lines In-Reply-To: <4D3E4E9F.9010006@hostgis.com> References: <4D3E4E9F.9010006@hostgis.com> Message-ID: <4D40ED0C.8000706@hostgis.com> *bump* Any developers out there care to comment on the visual artifacts? https://www.cartograph.com/~gregor/1.gif Normal polygons with corners aren't a real problem, but circles and curves like this render better as lines than polygons. Any ideas as to how we can smooth these out, still using GD? Or is it a lost cause for GD? Like I said, Plan B would be to render a line layer and then a no-outline fill layer; but the performance hit would obviate the advantage of GD. -- 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 woodbri at swoodbridge.com Wed Jan 26 20:24:53 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 26 Jan 2011 23:24:53 -0500 Subject: [mapserver-users] Re: GD rendering: polygons vs lines In-Reply-To: <4D40ED0C.8000706@hostgis.com> References: <4D3E4E9F.9010006@hostgis.com> <4D40ED0C.8000706@hostgis.com> Message-ID: <4D40F395.2020409@swoodbridge.com> On 1/26/2011 10:57 PM, Gregor at HostGIS wrote: > *bump* Any developers out there care to comment on the visual artifacts? > https://www.cartograph.com/~gregor/1.gif > > Normal polygons with corners aren't a real problem, but circles and > curves like this render better as lines than polygons. > > Any ideas as to how we can smooth these out, still using GD? Or is it a > lost cause for GD? > > Like I said, Plan B would be to render a line layer and then a > no-outline fill layer; but the performance hit would obviate the > advantage of GD. > Hi Gregor, A while back someone, maybe Thomas Bonfort, did some performance tests comparing GD to AGG, and if I recall AGG was only slightly slower and in at least a couple of cases it was faster the GD. That said, I can't find the posts I was think of. And this very limited test of one single image: http://www.perrygeo.net/wordpress/?p=77 Implies the GD is about 2x the speed of AGG. More here if you care to look: http://www.google.com/#q=mapserver+performance+gd+agg Also I should point out that the GD renderer is getting removed in 6.0 as part of the rendering pipeline refactoring, unless that plan has changed. So I'm not sure there is much interest in chasing issue in the gd renderer. Best regards, -Steve W From gregor at hostgis.com Wed Jan 26 20:31:47 2011 From: gregor at hostgis.com (Gregor at HostGIS) Date: Wed, 26 Jan 2011 20:31:47 -0800 Subject: [mapserver-users] Re: GD rendering: polygons vs lines In-Reply-To: <4D40F395.2020409@swoodbridge.com> References: <4D3E4E9F.9010006@hostgis.com> <4D40ED0C.8000706@hostgis.com> <4D40F395.2020409@swoodbridge.com> Message-ID: <4D40F533.7070602@hostgis.com> > A while back someone, maybe Thomas Bonfort, did some performance tests > comparing GD to AGG, and if I recall AGG was only slightly slower and in > at least a couple of cases it was faster the GD. In our case, GD renders in 1 second and AGG in 3 in these few tests cases we're concerned with. We're thus allowing a choice between "fast mode" and "good quality mode" > Also I should point out that the GD renderer is getting removed > So I'm not sure there is much interest in chasing issue Well, that's good to know. Thanks for the heads-up. I'll wait and see if someone comes up with any ideas before I give up entirely. -- 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 Jan 27 00:08:36 2011 From: gregor at hostgis.com (Gregor at HostGIS) Date: Thu, 27 Jan 2011 00:08:36 -0800 Subject: [mapserver-users] Re: GD rendering: polygons vs lines In-Reply-To: References: <4D3E4E9F.9010006@hostgis.com> <4D40ED0C.8000706@hostgis.com> <4D40F395.2020409@swoodbridge.com>, <4D40F533.7070602@hostgis.com> Message-ID: <4D412804.7020801@hostgis.com> > To clarify GD is not being removed. > So, rendering issues with GD are and will be of concern. OK, sounds good. Thanks for clarifying. -- 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 Thu Jan 27 00:01:43 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 27 Jan 2011 02:01:43 -0600 Subject: [mapserver-users] Re: GD rendering: polygons vs lines In-Reply-To: <4D40F533.7070602@hostgis.com> References: <4D3E4E9F.9010006@hostgis.com> <4D40ED0C.8000706@hostgis.com> <4D40F395.2020409@swoodbridge.com>,<4D40F533.7070602@hostgis.com> Message-ID: To clarify GD is not being removed. It's still alive and kicking. It's just more isolated now. That is, AGG doesn't need GD in 6.0 like it has in the past. AGG, GD, Cairo all exist as rendering peers. We have stripped back the GD functionality to be just 8-bit output though. That's what it's good for. So, rendering issues with GD are and will be of concern. You might try a 6.0 build and see if that helps at all. Much of the rendering behavior is much more consistent across renderers thanks to Thomas' work. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Gregor at HostGIS [gregor at hostgis.com] Sent: Wednesday, January 26, 2011 10:31 PM To: Stephen Woodbridge Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Re: GD rendering: polygons vs lines > A while back someone, maybe Thomas Bonfort, did some performance tests > comparing GD to AGG, and if I recall AGG was only slightly slower and in > at least a couple of cases it was faster the GD. In our case, GD renders in 1 second and AGG in 3 in these few tests cases we're concerned with. We're thus allowing a choice between "fast mode" and "good quality mode" > Also I should point out that the GD renderer is getting removed > So I'm not sure there is much interest in chasing issue Well, that's good to know. Thanks for the heads-up. I'll wait and see if someone comes up with any ideas before I give up entirely. -- 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 thomas.ellett at statkart.no Thu Jan 27 02:35:46 2011 From: thomas.ellett at statkart.no (tellett) Date: Thu, 27 Jan 2011 02:35:46 -0800 (PST) Subject: [mapserver-users] RE: Character Limit for NAME and GROUP In-Reply-To: References: <1295018914600-5922135.post@n2.nabble.com> Message-ID: <1296124546470-5965802.post@n2.nabble.com> Hi Steve, I'm now not sure what the problem is, but it seems to be triggered by character length in the NAME attribute. We think its triggering some kind of memory problem. Sorry about the vagueness but its really difficult to narrow it down. The problem just seems to affect the xml returned by the GetCapabilities call, Testing with shp2img we can still get a valid image even when the capabilities doc breaks. With 1 service, the memory problem occurred when the char length of NAME was over 81. The strange thing was that if I tried to name another layer in the same service with a name 81 characters long the service broke again, but worked if I reduced this to 80 characters. Then same again for another layer, I had to reduce the name length to 79. However this was not the case for a different service where the character lengths needed to break the service (return an invalid xml doc) were completely different. So because its not reproduceable I haven't included a mapfile with test data. I do include a txt file with some of the apache error log though (we get nothing from the mapserver error log). Also calls using 1.3.0 and 1.1.1 both return invalid docs. We're going to try 5.6.6 to see if that makes a difference. If we make a breakthrough or manage to make this reproduceable I'll let you know. Sorry I couldn't give more , or more precise info. You may be able to reproduce it with one of your own services, just make one of the layer names very long! Best Regards Tom http://osgeo-org.1803224.n2.nabble.com/file/n5965802/stacktraces.mapserver.zip stacktraces.mapserver.zip -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Character-Limit-for-NAME-and-GROUP-tp5922135p5965802.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jean-francois at gigand.fr Thu Jan 27 03:54:19 2011 From: jean-francois at gigand.fr (=?ISO-8859-1?Q?Jean=2DFran=E7ois_Gigand?=) Date: Thu, 27 Jan 2011 12:54:19 +0100 Subject: [mapserver-users] Re: make cannot find -libodbc and -libodbcinst on compilation In-Reply-To: <1296099803395-5965117.post@n2.nabble.com> References: <1296050685541-5962776.post@n2.nabble.com> <201101261511.13565.yves.jacolin@camptocamp.com> <1296052309202-5962843.post@n2.nabble.com> <1296099803395-5965117.post@n2.nabble.com> Message-ID: It's strange, MapServer does not need to know that GDAL depends on ODBC. Can you give the output of "gdal-config --libs", "gdal-config --deplibs" and "ldd /usr/lib/libgdalX" (X being the latest version) ? Jeff 2011/1/27 gregcorradini : > > Much thnx to Jeff for his reply. > > I ran $ ldconfig -v >/tmp/ldconfig.output.txt 2>&1 > > I found libodbc* in the output to be in exactly the same directories as when > I run $ sudo find / -name libodbc* > > So as far as i can tell this means gdal-config is saying my libodbc* > libraries should be one place when they are somewhere else. Makes sense that > mapserver is errors out on make. Not sure how that happened. > > I tried editing the Makefile after configuring it to account for these > differences but just got the same error. > > I then tried compiling mapserver without GDAL support. When i did that > postgis started throwing me similar errors about libxslt, libpam and > libreadline > > Not sure. > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/make-cannot-find-libodbc-and-libodbcinst-on-compilation-tp5962776p5965117.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 teplov at geolife.ru Thu Jan 27 05:56:34 2011 From: teplov at geolife.ru (=?koi8-r?B?9MXQzM/XIPPF0sfFyiDnxc7OwcTYxdfJ3g==?=) Date: Thu, 27 Jan 2011 16:56:34 +0300 Subject: [mapserver-users] cache with MapServer Message-ID: <5845207ED5CE5B49B1A77CCA11A41EEF9393BA5DFF@mbox.geolife.lan> Hello! I want to optimize my application based on the MapServer. I am using PostGIS with spatial indexes to make effeciency better, results are OK. But I think that cache is necessary in my application and as I read, MapServer has no cache in it. So, can I change tempfiles' names? For example, if I knew how to do it I would filter income requests and return existing files. I know about the "NAME" directive in a mapfile, but this directive just sets prefix of a filename, and I think about something what can help me to change all parts of a name. So, are there any options to have a cache with WebServer or any options to set file names? Thanks, Sergey From geographika at gmail.com Thu Jan 27 06:03:07 2011 From: geographika at gmail.com (geographika) Date: Thu, 27 Jan 2011 15:03:07 +0100 Subject: [mapserver-users] cache with MapServer In-Reply-To: <5845207ED5CE5B49B1A77CCA11A41EEF9393BA5DFF@mbox.geolife.lan> References: <5845207ED5CE5B49B1A77CCA11A41EEF9393BA5DFF@mbox.geolife.lan> Message-ID: <4D417B1B.4090203@gmail.com> Hi Sergey, Take a look at http://tilecache.org/ if your system can use map tiles. You can also use your web server to cache requests (Apache or IIS), and implement caching in the client's browser by setting the correct headers. Regards, Seth On 27/01/2011 14:56, ?????? ?????? ??????????? wrote: > Hello! > > I want to optimize my application based on the MapServer. > I am using PostGIS with spatial indexes to make effeciency better, results are OK. > But I think that cache is necessary in my application and as I read, MapServer has no cache in it. > So, can I change tempfiles' names? For example, if I knew how to do it I would filter income requests and return existing files. > I know about the "NAME" directive in a mapfile, but this directive just sets prefix of a filename, and I think about something what can help me to change all parts of a name. > So, are there any options to have a cache with WebServer or any options to set file names? > > Thanks, Sergey_______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From tommasodb at googlemail.com Thu Jan 27 07:42:58 2011 From: tommasodb at googlemail.com (tommaso) Date: Thu, 27 Jan 2011 16:42:58 +0100 Subject: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR Message-ID: <1296142978.2205.16.camel@tommaso-laptop> Hallo everybody, the background color of labels cannot be changed dynamically via attribute binding or CGI parameters, is right? Is there a workaround for this? Regards, Tommaso -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcigar at ulb.ac.be Thu Jan 27 07:47:58 2011 From: jcigar at ulb.ac.be (Julien Cigar) Date: Thu, 27 Jan 2011 16:47:58 +0100 Subject: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR In-Reply-To: <1296142978.2205.16.camel@tommaso-laptop> References: <1296142978.2205.16.camel@tommaso-laptop> Message-ID: <4D4193AE.4010004@ulb.ac.be> use SLD ? On 01/27/2011 16:42, tommaso wrote: > Hallo everybody, > > the background color of labels cannot be changed dynamically via > attribute binding or CGI parameters, is right? > Is there a workaround for this? > > Regards, > Tommaso > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. -------------- next part -------------- A non-text attachment was scrubbed... Name: jcigar.vcf Type: text/x-vcard Size: 304 bytes Desc: not available URL: From Andreas.Siegel at vorarlberg.at Thu Jan 27 07:52:38 2011 From: Andreas.Siegel at vorarlberg.at (Siegel Andreas) Date: Thu, 27 Jan 2011 16:52:38 +0100 Subject: [mapserver-users] HTML Legends; In sore need of a sample mapfile Message-ID: <5FBE485F93722E4589047FAB5195B63C051B09A7@AVLRBRCL08A.net.vlr.gv.at> Hi Bill. My name is Andy and i am responsible for setting up a WMS-Server for our geodata. Our WMS-Services preform rather well so now the goal has shifted towards details like legends. I found you via the mappserver-uses mailing list where you asked: [mapserver-users] HTML Legends - What Good Are They? 1.) Did you by chance found out what they are good for? I think they offer much more freedom than simple image-legends. 2.) Are you willing to share, or know of, a mapfile where i could find what and where to put in a mapfile in oder to generate a nice, meaningful legend. Thanks a lot Andy PS: I do like mapserver but the documentation is in sore lack of examples. 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 tommasodb at googlemail.com Thu Jan 27 09:55:18 2011 From: tommasodb at googlemail.com (tommaso) Date: Thu, 27 Jan 2011 18:55:18 +0100 Subject: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR In-Reply-To: <4D4193AE.4010004@ulb.ac.be> References: <1296142978.2205.16.camel@tommaso-laptop> <4D4193AE.4010004@ulb.ac.be> Message-ID: <1296150918.2246.6.camel@tommaso-laptop> 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 Jukka.Rahkonen at mmmtike.fi Thu Jan 27 13:51:45 2011 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 27 Jan 2011 23:51:45 +0200 Subject: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR In-Reply-To: <1296150918.2246.6.camel@tommaso-laptop> References: <1296142978.2205.16.camel@tommaso-laptop><4D4193AE.4010004@ulb.ac.be> <1296150918.2246.6.camel@tommaso-laptop> Message-ID: ________________________________ tommaso wrote: 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? use SLD_BODY? -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jean-francois at gigand.fr Thu Jan 27 13:55:14 2011 From: jean-francois at gigand.fr (=?ISO-8859-1?Q?Jean=2DFran=E7ois_Gigand?=) Date: Thu, 27 Jan 2011 22:55:14 +0100 Subject: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR In-Reply-To: <1296150918.2246.6.camel@tommaso-laptop> References: <1296142978.2205.16.camel@tommaso-laptop> <4D4193AE.4010004@ulb.ac.be> <1296150918.2246.6.camel@tommaso-laptop> Message-ID: Use one CLASS for each colour used, set them to depend on your attribute and repeat the LABEL definition for each of them. If you the number of colours is limited, this would probably be a solution. Jeff 2011/1/27 tommaso : > > > 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 > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From woodbri at swoodbridge.com Thu Jan 27 17:01:08 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 27 Jan 2011 20:01:08 -0500 Subject: [mapserver-users] Re: GD rendering: polygons vs lines In-Reply-To: References: <4D3E4E9F.9010006@hostgis.com> <4D40ED0C.8000706@hostgis.com> <4D40F395.2020409@swoodbridge.com>, <4D40F533.7070602@hostgis.com> Message-ID: <4D421554.3040107@swoodbridge.com> Steve, Thanks for clarifying that. Sorry for the mistake on that. I guess I need to go back and reread the RFC on this. -Steve W On 1/27/2011 3:01 AM, Lime, Steve D (DNR) wrote: > To clarify GD is not being removed. It's still alive and kicking. > It's just more isolated now. That is, AGG doesn't need GD in 6.0 like > it has in the past. AGG, GD, Cairo all exist as rendering peers. We > have stripped back the GD functionality to be just 8-bit output > though. That's what it's good for. > > So, rendering issues with GD are and will be of concern. You might > try a 6.0 build and see if that helps at all. Much of the rendering > behavior is much more consistent across renderers thanks to Thomas' > work. > > Steve > > ________________________________________ From: > mapserver-users-bounces at lists.osgeo.org > [mapserver-users-bounces at lists.osgeo.org] On Behalf Of Gregor at > HostGIS [gregor at hostgis.com] Sent: Wednesday, January 26, 2011 10:31 > PM To: Stephen Woodbridge Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Re: GD rendering: polygons vs lines > >> A while back someone, maybe Thomas Bonfort, did some performance >> tests comparing GD to AGG, and if I recall AGG was only slightly >> slower and in at least a couple of cases it was faster the GD. > > In our case, GD renders in 1 second and AGG in 3 in these few tests > cases we're concerned with. We're thus allowing a choice between > "fast mode" and "good quality mode" > > >> Also I should point out that the GD renderer is getting removed So >> I'm not sure there is much interest in chasing issue > > Well, that's good to know. Thanks for the heads-up. I'll wait and see > if someone comes up with any ideas before I give up entirely. > > -- 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 thomas.bonfort at gmail.com Thu Jan 27 23:23:31 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 28 Jan 2011 08:23:31 +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> Message-ID: Before starting to implement something extensive around label BACKGROUNDCOLOR, you should be aware that this keyword will not be supported anymore starting from version 6.0. it is replaced with a STYLE GEOMTRANSFORM LABELPOLY COLOR r g b END which greatly extends the possibilities of styling the label background (e.g. outlinecolor, symbol, offset, opacity, etc...), as all the keywords relating to STYLE are applicable. regards, thomas On Thu, Jan 27, 2011 at 22:55, Jean-Fran?ois Gigand wrote: > Use one CLASS for each colour used, set them to depend on your > attribute and repeat the LABEL definition for each of them. > If you the number of colours is limited, this would probably be a solution. > > Jeff > > 2011/1/27 tommaso : >> >> >> 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 >> >> >> >> >> _______________________________________________ >> 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 stephan.holl at intevation.de Fri Jan 28 00:22:59 2011 From: stephan.holl at intevation.de (Stephan Holl) Date: Fri, 28 Jan 2011 09:22: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> Message-ID: <20110128092259.27624251@thoe.hq.intevation.de> Hello thomas, thomas bonfort , [20110128 - 08:23:31] > Before starting to implement something extensive around label > BACKGROUNDCOLOR, you should be aware that this keyword will not be > supported anymore starting from version 6.0. > > it is replaced with a > > STYLE > GEOMTRANSFORM LABELPOLY > COLOR r g b > END > > which greatly extends the possibilities of styling the label > background (e.g. outlinecolor, symbol, offset, opacity, etc...), as > all the keywords relating to STYLE are applicable. Interesting, could you point me to the documentation of the GEOMTRANSFORM-stuff? I could not find anything on the net. TIA Stephan > On Thu, Jan 27, 2011 at 22:55, Jean-Fran?ois Gigand > wrote: > > Use one CLASS for each colour used, set them to depend on your > > attribute and repeat the LABEL definition for each of them. > > If you the number of colours is limited, this would probably be a > > solution. > > > > Jeff > > > > 2011/1/27 tommaso : > >> > >> > >> 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 > >> > >> > >> > >> > >> _______________________________________________ > >> 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 -- 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 thomas.bonfort at gmail.com Fri Jan 28 00:32:13 2011 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 28 Jan 2011 09:32:13 +0100 Subject: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR In-Reply-To: <20110128092259.27624251@thoe.hq.intevation.de> References: <1296142978.2205.16.camel@tommaso-laptop> <4D4193AE.4010004@ulb.ac.be> <1296150918.2246.6.camel@tommaso-laptop> <20110128092259.27624251@thoe.hq.intevation.de> Message-ID: Stephan, I'm sorry, this isn't documented yet (to my knowledge), but should be rather soon (see http://trac.osgeo.org/mapserver/ticket/3609) the other GEOMTRANSFORM option you can use is LABELPNT, which will apply the current STYLE to a point feature centered on the label point. This should allow to completely remove the need for ANNOTATION layers. regards, thomas On Fri, Jan 28, 2011 at 09:22, Stephan Holl wrote: > Hello thomas, > > thomas bonfort , [20110128 - 08:23:31] > >> Before starting to implement something extensive around label >> BACKGROUNDCOLOR, you should be aware that this keyword will not be >> supported anymore starting from version 6.0. >> >> it is replaced with a >> >> STYLE >> ? GEOMTRANSFORM LABELPOLY >> ? COLOR r g b >> END >> >> which greatly extends the possibilities of styling the label >> background (e.g. outlinecolor, symbol, offset, opacity, etc...), as >> all the keywords relating to STYLE are applicable. > > Interesting, could you point me to the documentation of the > GEOMTRANSFORM-stuff? I could not find anything on the net. > > TIA > > ? ? ? ?Stephan > > >> On Thu, Jan 27, 2011 at 22:55, Jean-Fran?ois Gigand >> wrote: >> > Use one CLASS for each colour used, set them to depend on your >> > attribute and repeat the LABEL definition for each of them. >> > If you the number of colours is limited, this would probably be a >> > solution. >> > >> > Jeff >> > >> > 2011/1/27 tommaso : >> >> >> >> >> >> 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 >> >> >> >> >> >> >> >> >> >> _______________________________________________ >> >> 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 > > > -- > 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 > From tigana.fluens at gmail.com Fri Jan 28 00:41:42 2011 From: tigana.fluens at gmail.com (tigana.fluens at gmail.com) Date: Fri, 28 Jan 2011 16:41:42 +0800 Subject: [mapserver-users] Mapserver Storage In-Reply-To: <20110128083217.9C9E6E02283@lists.osgeo.org> References: <20110128083217.9C9E6E02283@lists.osgeo.org> Message-ID: <4D428146.3090500@gmail.com> Hello guys, we're a startup and new to mapserver. We're expecting large amounts of data to come by (at least on our scale) around 40-60TB of raster images for mapserver to render. My question is for the infrastructure, what is the best way to store this (cost-efficiently)? - Do we just get a dedicated server with a lot of HDDs? I'm looking at a 48TB setup in RAID 1+0 so i get 24TB right what happens now if we need more? Also, how can we scale from the mapserver side? Is access to different storage servers possible? - I've considered SANs but then it's not practical right because only one machine will access the storage? - What about Amazon's S3? or EBS? Anything we can use on that? I wish to get awesome advice on this storage issue, basically what the considered best practice is for the mapserver people :P Thanks From pjbcaeiro at gmail.com Fri Jan 28 02:09:03 2011 From: pjbcaeiro at gmail.com (pcaeiro) Date: Fri, 28 Jan 2011 02:09:03 -0800 (PST) Subject: [mapserver-users] configure: error: Unable to link against -L/usr/lib -lfcgi Message-ID: <1296209343621-5969330.post@n2.nabble.com> Hello, I am trying to configure mapserver with fastcgi with ". / Configure -with-php=/usr/include/php -with-fastcgi=/usr". But i still get the following error message: "Configure: error: Unable to link Against -L/usr/lib-lfcgi" I already have the files libfcgi.so.0, libfcgi.so.0.0.0, libfcgi + +. So.0.0.0 in /usr/lib and the mod_fastcgi.so in the /usr/lib/httpd/modules folder. What can be wrong here. Thanks in advance. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/configure-error-Unable-to-link-against-L-usr-lib-lfcgi-tp5969330p5969330.html Sent from the Mapserver - User mailing list archive at Nabble.com. From stephan.holl at intevation.de Fri Jan 28 02:16:00 2011 From: stephan.holl at intevation.de (Stephan Holl) Date: Fri, 28 Jan 2011 11:16:00 +0100 Subject: [mapserver-users] configure: error: Unable to link against -L/usr/lib -lfcgi In-Reply-To: <1296209343621-5969330.post@n2.nabble.com> References: <1296209343621-5969330.post@n2.nabble.com> Message-ID: <20110128111600.186d1658@thoe.hq.intevation.de> Hello pcaeiro, pcaeiro , [20110128 - 02:09:03] > > Hello, > > I am trying to configure mapserver with fastcgi with ". / Configure > -with-php=/usr/include/php -with-fastcgi=/usr". > > But i still get the following error message: > "Configure: error: Unable to link Against -L/usr/lib-lfcgi" > > I already have the files libfcgi.so.0, libfcgi.so.0.0.0, libfcgi + +. > So.0.0.0 in /usr/lib and the mod_fastcgi.so in > the /usr/lib/httpd/modules folder. you are most probably missing the development-headers for your fcgi-installation. Install *fcgi*-dev *fcgi*-devel packages, depends on your distribution. 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 pjbcaeiro at gmail.com Fri Jan 28 03:46:58 2011 From: pjbcaeiro at gmail.com (pcaeiro) Date: Fri, 28 Jan 2011 03:46:58 -0800 (PST) Subject: [mapserver-users] Re: configure: error: Unable to link against -L/usr/lib -lfcgi In-Reply-To: <20110128111600.186d1658@thoe.hq.intevation.de> References: <1296209343621-5969330.post@n2.nabble.com> <20110128111600.186d1658@thoe.hq.intevation.de> Message-ID: <1296215218370-5969570.post@n2.nabble.com> Hello thanks for the help, I am using Centos. :) You were rigth, i miss the fcgi-devel packadge... I installed and the mapserver configure command ran without problems, such as the make, but the fact is that when I run the command "mapserver -v" the result is this: "MapServer version 5.6.6 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=AGG SUPPORTS=ICONV SUPPORTS=FREETYPE TIFF INPUT=INPUT=JPEG INPUT=INPUT EPPL7=SHAPEFILE" still lacks the support for fcgi, there may be a problem installing the packages? I did a search and found all the packages in the right place so I think that is correct. I am missing something. Tanks, Paulo -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/configure-error-Unable-to-link-against-L-usr-lib-lfcgi-tp5969330p5969570.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pspencer at dmsolutions.ca Fri Jan 28 06:08:02 2011 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Fri, 28 Jan 2011 09:08:02 -0500 Subject: [mapserver-users] Mapserver Storage In-Reply-To: <4D428146.3090500@gmail.com> References: <20110128083217.9C9E6E02283@lists.osgeo.org> <4D428146.3090500@gmail.com> Message-ID: <26ED7DF6-594E-4926-89FF-AF06BEE3C27B@dmsolutions.ca> Hi, I would personally recommend against AWS S3/EBS for anything of this scale as the I/O is pretty pathetic unless you invest in their very high end instances. We've set up a 4TB 'SAN' using glusterfs on AWS EC2 using 1TB EBS volumes and separate instances for each - the performance has been so poor that we have had to redesign our workflow to get copies of data onto EBS attached to each mapserver instance - for scaling that sucks and even then the I/O performance of EBS is not that great on the normal instances. I'm not a hardware guy but I think the purpose of a dedicated SAN box is to provide high bandwidth access to large amounts storage so that the data can effectively be distributed to/from multiple machines over a network - ideal for scaling mapserver onto multiple servers but rendering from the same data. I read an article about a year ago from a company that provides petabyte storage for online storage, it details how they built their storage devices - they say $7867 for 67 terabytes http://blog.backblaze.com/2009/09/01/petabytes-on-a-budget-how-to-build-cheap-cloud-storage/ Seems pretty geeky, but perhaps you are the hardware type or know someone who is :) On 2011-01-28, at 3:41 AM, tigana.fluens at gmail.com wrote: > Hello guys, we're a startup and new to mapserver. We're expecting large amounts of data to come by (at least on our scale) around 40-60TB of raster images for mapserver to render. My question is for the infrastructure, what is the best way to store this (cost-efficiently)? > > - Do we just get a dedicated server with a lot of HDDs? I'm looking at a 48TB setup in RAID 1+0 so i get 24TB right what happens now if we need more? Also, how can we scale from the mapserver side? Is access to different storage servers possible? > - I've considered SANs but then it's not practical right because only one machine will access the storage? > - What about Amazon's S3? or EBS? Anything we can use on that? > > I wish to get awesome advice on this storage issue, basically what the considered best practice is for the mapserver people :P Thanks > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users __________________________________________ Paul Spencer Chief Technology Officer DM Solutions Group Inc http://research.dmsolutions.ca/ From Bob.Basques at ci.stpaul.mn.us Fri Jan 28 07:29:32 2011 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Fri, 28 Jan 2011 09:29:32 -0600 Subject: [mapserver-users] Mapserver Storage In-Reply-To: <26ED7DF6-594E-4926-89FF-AF06BEE3C27B@dmsolutions.ca> References: <20110128083217.9C9E6E02283@lists.osgeo.org> <4D428146.3090500@gmail.com> <26ED7DF6-594E-4926-89FF-AF06BEE3C27B@dmsolutions.ca> Message-ID: <4D428C7C020000A800025AF2@heckle> All, I'm working on a similar project currently. Setting up 50tb of storage, we went the route of multiple CPUs, with large disks. Redundant raid config, so half of physical disk available for storage. We're in the 30+tb of real storage across a 4U setup right now. Cost (with hardware/setup/initial config) is below those numbers below (so far), because we're building from scratch and learning along the way. I would tend to agree on not using the off site stuff, just considering the moving of the data and the idea of co-lo to some other remote location starts to fall apart. The transfer costs, in bandwidth and/or time, really start to eat into things cost wise. Some of this depends on the end uses as well. We're building a data site for distribution of really large files and datasets. bobb >>> Paul Spencer wrote: Hi, I would personally recommend against AWS S3/EBS for anything of this scale as the I/O is pretty pathetic unless you invest in their very high end instances. We've set up a 4TB 'SAN' using glusterfs on AWS EC2 using 1TB EBS volumes and separate instances for each - the performance has been so poor that we have had to redesign our workflow to get copies of data onto EBS attached to each mapserver instance - for scaling that sucks and even then the I/O performance of EBS is not that great on the normal instances. I'm not a hardware guy but I think the purpose of a dedicated SAN box is to provide high bandwidth access to large amounts storage so that the data can effectively be distributed to/from multiple machines over a network - ideal for scaling mapserver onto multiple servers but rendering from the same data. I read an article about a year ago from a company that provides petabyte storage for online storage, it details how they built their storage devices - they say $7867 for 67 terabytes http://blog.backblaze.com/2009/09/01/petabytes-on-a-budget-how-to-build-cheap-cloud-storage/ Seems pretty geeky, but perhaps you are the hardware type or know someone who is :) On 2011-01-28, at 3:41 AM, tigana.fluens at gmail.com wrote: > Hello guys, we're a startup and new to mapserver. We're expecting large amounts of data to come by (at least on our scale) around 40-60TB of raster images for mapserver to render. My question is for the infrastructure, what is the best way to store this (cost-efficiently)? > > - Do we just get a dedicated server with a lot of HDDs? I'm looking at a 48TB setup in RAID 1+0 so i get 24TB right what happens now if we need more? Also, how can we scale from the mapserver side? Is access to different storage servers possible? > - I've considered SANs but then it's not practical right because only one machine will access the storage? > - What about Amazon's S3? or EBS? Anything we can use on that? > > I wish to get awesome advice on this storage issue, basically what the considered best practice is for the mapserver people :P Thanks > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users __________________________________________ Paul Spencer Chief Technology Officer DM Solutions Group Inc http://research.dmsolutions.ca/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From mwkorver at gmail.com Fri Jan 28 07:50:11 2011 From: mwkorver at gmail.com (Mark Korver) Date: Fri, 28 Jan 2011 09:50:11 -0600 Subject: [mapserver-users] Mapserver Storage In-Reply-To: <4D428146.3090500@gmail.com> References: <20110128083217.9C9E6E02283@lists.osgeo.org> <4D428146.3090500@gmail.com> Message-ID: There are ways to use S3 as the store for source images by using tools like s3fs (FUSE-based file system backed by Amazon S3) and writing front end code the intercepts the incoming WMS request, filters using a grid, then routes to the appropriate EC2 MapServer instance. This allows particular instances to do region based caching of source data. First request that "hits" a new source file is slow, but second one is read from EC2's "built-in" storage. This kind of setup allows you to run n-number of mapservers all looking at the same data stored on a S3, but would require some work up front. The smaller the grid, the more mapservers. and if you want to scale more you can use LB and autoscaling. On Fri, Jan 28, 2011 at 2:41 AM, wrote: > Hello guys, we're a startup and new to mapserver. We're expecting large > amounts of data to come by (at least on our scale) around 40-60TB of raster > images for mapserver to render. My question is for the infrastructure, what > is the best way to store this (cost-efficiently)? > > - Do we just get a dedicated server with a lot of HDDs? I'm looking at a > 48TB setup in RAID 1+0 so i get 24TB right what happens now if we need more? > Also, how can we scale from the mapserver side? ?Is access to different > storage servers possible? > - I've considered SANs but then it's not practical right because only one > machine will access the storage? > - What about Amazon's S3? or EBS? Anything we can use on that? > > I wish to get awesome advice on this storage issue, basically what the > considered best practice is for the mapserver people :P Thanks > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From tigana.fluens at gmail.com Fri Jan 28 07:57:25 2011 From: tigana.fluens at gmail.com (tigana.fluens at gmail.com) Date: Fri, 28 Jan 2011 23:57:25 +0800 Subject: [mapserver-users] Mapserver Storage In-Reply-To: <4D428C7C020000A800025AF2@heckle> References: <20110128083217.9C9E6E02283@lists.osgeo.org> <4D428146.3090500@gmail.com> <26ED7DF6-594E-4926-89FF-AF06BEE3C27B@dmsolutions.ca> <4D428C7C020000A800025AF2@heckle> Message-ID: <4D42E765.30901@gmail.com> Thank you for the prompt replies so far! : ) @Mark Great, that's the first time I heard about that method. I'm doing a reality check here haha sadly I dont think we can do that kind of work as of now (skill-wise) and money is an issue as well as EC2 instances cost so much more for small startups although im aware that as the computing needs grow larger the AWS platform increases its value so much. Do you typically use this setup for new projects? @Paul Ok at least we can cross S3/EBS or any similar service out of our "what if" list. Not to mention it's so damn expensive when you get to that amount of data. For the Backblaze solution I think that would work very well for backups or archiving purposes but I'm really concerned about storage that is viable for working with raster images and other files mapserver renders. Unfortunately, im not a hardware guy although trying my best to understand all of these :D What do you exactly mean by pathetic I/O on S3/EBS? @Bobb You said you went through the route of multiple CPUs, meaning you had many mapserver machines? In your opinion is RAID 1+0 a good enough config for something mapserver can work on? @All Does this imply that getting a single dedicated with mass storage (everything is there, mapserver itself and the data) is not a good idea? And lastly, what is the best practice on storing raster images? Im not sure if you can do this with mapserver but assuming you have 1 "raster map" can you divide the images into 10 huge tiles and let mapserver put them together at runtime? If so, what is a good way to go about it? Like do you partition it into 1GB images? On 1/28/2011 11:50 PM, Mark Korver wrote: > There are ways to use S3 as the store for source images by using tools > like s3fs (FUSE-based file system backed by Amazon S3) and writing > front end code the intercepts the incoming WMS request, filters using > a grid, then routes to the appropriate EC2 MapServer instance. This > allows particular instances to do region based caching of source data. > First request that "hits" a new source file is slow, but second one > is read from EC2's "built-in" storage. This kind of setup allows you > to run n-number of mapservers all looking at the same data stored on a > S3, but would require some work up front. The smaller the grid, the > more mapservers. and if you want to scale more you can use LB and > autoscaling. On 1/28/2011 11:29 PM, Bob Basques wrote: > > All, > > > I'm working on a similar project currently. Setting up 50tb of > storage, we went the route of multiple CPUs, with large disks. > Redundant raid config, so half of physical disk available for > storage. We're in the 30+tb of real storage across a 4U setup right > now. Cost (with hardware/setup/initial config) is below those numbers > below (so far), because we're building from scratch and learning along > the way. > > > I would tend to agree on not using the off site stuff, just > considering the moving of the data and the idea of co-lo to some other > remote location starts to fall apart. The transfer costs, in > bandwidth and/or time, really start to eat into things cost wise. > Some of this depends on the end uses as well. We're building a data > site for distribution of really large files and datasets. > > > bobb > > > > >>> Paul Spencer wrote: > > Hi, > > I would personally recommend against AWS S3/EBS for anything of this > scale as the I/O is pretty pathetic unless you invest in their very > high end instances. We've set up a 4TB 'SAN' using glusterfs on AWS > EC2 using 1TB EBS volumes and separate instances for each - the > performance has been so poor that we have had to redesign our workflow > to get copies of data onto EBS attached to each mapserver instance - > for scaling that sucks and even then the I/O performance of EBS is not > that great on the normal instances. > > I'm not a hardware guy but I think the purpose of a dedicated SAN box > is to provide high bandwidth access to large amounts storage so that > the data can effectively be distributed to/from multiple machines over > a network - ideal for scaling mapserver onto multiple servers but > rendering from the same data. I read an article about a year ago > from a company that provides petabyte storage for online storage, it > details how they built their storage devices - they say $7867 for 67 > terabytes > > http://blog.backblaze.com/2009/09/01/petabytes-on-a-budget-how-to-build-cheap-cloud-storage/ > > Seems pretty geeky, but perhaps you are the hardware type or know > someone who is :) > > > On 2011-01-28, at 3:41 AM, tigana.fluens at gmail.com wrote: > > > Hello guys, we're a startup and new to mapserver. We're expecting > large amounts of data to come by (at least on our scale) around > 40-60TB of raster images for mapserver to render. My question is for > the infrastructure, what is the best way to store this (cost-efficiently)? > > > > - Do we just get a dedicated server with a lot of HDDs? I'm looking > at a 48TB setup in RAID 1+0 so i get 24TB right what happens now if we > need more? Also, how can we scale from the mapserver side? Is access > to different storage servers possible? > > - I've considered SANs but then it's not practical right because > only one machine will access the storage? > > - What about Amazon's S3? or EBS? Anything we can use on that? > > > > I wish to get awesome advice on this storage issue, basically what > the considered best practice is for the mapserver people :P Thanks > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > __________________________________________ > > Paul Spencer > Chief Technology Officer > DM Solutions Group Inc > http://research.dmsolutions.ca/ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mwkorver at gmail.com Fri Jan 28 08:14:47 2011 From: mwkorver at gmail.com (Mark Korver) Date: Fri, 28 Jan 2011 10:14:47 -0600 Subject: [mapserver-users] Mapserver Storage In-Reply-To: <4D428C7C020000A800025AF2@heckle> References: <20110128083217.9C9E6E02283@lists.osgeo.org> <4D428146.3090500@gmail.com> <26ED7DF6-594E-4926-89FF-AF06BEE3C27B@dmsolutions.ca> <4D428C7C020000A800025AF2@heckle> Message-ID: I think current S3 pricing for 50TB at 0.125/GB comes to about 6250/month. ?That is for "Designed for 99.999999999% Durability". I can't even count that many 9s. I know you can buy HDs for about $50/TB = $2500 for that 50TB. Assuming you replace them all once a year its still only $5000. But we all know that to even get to 99.99 there are lot more parts to the above equation. Anybody have a ballpark on what it really costs to park that 50TB on your server room rack? On Fri, Jan 28, 2011 at 9:29 AM, Bob Basques wrote: > > All, > > I'm working on a similar project currently. ?Setting up 50tb of storage, we went the route of multiple CPUs, with large disks. ??Redundant raid config, so half of physical disk available for storage. ?We're in the 30+tb of real storage across a 4U setup right now. ?Cost (with hardware/setup/initial config) is below those numbers below (so far), because we're building from scratch and learning along the way. > > I would tend to agree on not using the off site stuff, just considering the moving of the data and the idea of co-lo to some other remote location starts to fall apart. ??The transfer costs, in bandwidth and/or time, really start to eat into things cost wise. ?Some of this depends on the end uses as well. ?We're building a data site for distribution of really large files and datasets. > > bobb > > >>> Paul Spencer wrote: > > Hi, > > I would personally recommend against AWS S3/EBS for anything of this scale as the I/O is pretty pathetic unless you invest in their very high end instances.? We've set up a 4TB 'SAN' using glusterfs on AWS EC2 using 1TB EBS volumes and separate instances for each - the performance has been so poor that we have had to redesign our workflow to get copies of data onto EBS attached to each mapserver instance - for scaling that sucks and even then the I/O performance of EBS is not that great on the normal instances. > > I'm not a hardware guy but I think the purpose of a dedicated SAN box is to provide high bandwidth access to large amounts storage so that the data can effectively be distributed to/from multiple machines over a network - ideal for scaling mapserver onto multiple servers but rendering from the same data.? I? read an article about a year ago from a company that provides petabyte storage for online storage, it details how they built their storage devices - they say $7867 for 67 terabytes > > http://blog.backblaze.com/2009/09/01/petabytes-on-a-budget-how-to-build-cheap-cloud-storage/ > > Seems pretty geeky, but perhaps you are the hardware type or know someone who is :) > > > On 2011-01-28, at 3:41 AM, tigana.fluens at gmail.com wrote: > > > Hello guys, we're a startup and new to mapserver. We're expecting large amounts of data to come by (at least on our scale) around 40-60TB of raster images for mapserver to render. My question is for the infrastructure, what is the best way to store this (cost-efficiently)? > > > > - Do we just get a dedicated server with a lot of HDDs? I'm looking at a 48TB setup in RAID 1+0 so i get 24TB right what happens now if we need more? Also, how can we scale from the mapserver side?? Is access to different storage servers possible? > > - I've considered SANs but then it's not practical right because only one machine will access the storage? > > - What about Amazon's S3? or EBS? Anything we can use on that? > > > > I wish to get awesome advice on this storage issue, basically what the considered best practice is for the mapserver people :P Thanks > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > __________________________________________ > > ?? Paul Spencer > ?? Chief Technology Officer > ?? DM Solutions Group Inc > ?? http://research.dmsolutions.ca/ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From woodbri at swoodbridge.com Fri Jan 28 08:29:26 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 28 Jan 2011 11:29:26 -0500 Subject: [mapserver-users] Mapserver Storage In-Reply-To: References: <20110128083217.9C9E6E02283@lists.osgeo.org> <4D428146.3090500@gmail.com> <26ED7DF6-594E-4926-89FF-AF06BEE3C27B@dmsolutions.ca> <4D428C7C020000A800025AF2@heckle> Message-ID: <4D42EEE6.4000506@swoodbridge.com> On 1/28/2011 11:14 AM, Mark Korver wrote: > I think current S3 pricing for 50TB at 0.125/GB comes to about > 6250/month. That is for "Designed for 99.999999999% Durability". I > can't even count that many 9s. I know you can buy HDs for about > $50/TB = $2500 for that 50TB. Assuming you replace them all once a > year its still only $5000. Yeah, If MTBF for a disk is like 10,000 hours then you need to divide that by the number of disks. and you can expect to replace one disk a month is you have 14 disks. If it is 100,000 hours then you have one a month if you have 140 disks. > But we all know that to even get to 99.99 there are lot more parts to > the above equation. Anybody have a ballpark on what it really costs > to park that 50TB on your server room rack? You need to have redundant systems, power supplies, drive controllers all with failover and and monitoring. All that said, I have a lot of clients that like Dell's EqualLogic iSCSI SAN devices for this application. http://www.equallogic.com/ This is a good compromise for expandability, data security, performance, disk utilization, etc if you want to do this in-house. But if you are going to do this in-house I strongly recommend getting someone the knows this technology and and how to build systems to meet you needs. -Steve W > On Fri, Jan 28, 2011 at 9:29 AM, Bob Basques > wrote: >> >> All, >> >> I'm working on a similar project currently. Setting up 50tb of storage, we went the route of multiple CPUs, with large disks. Redundant raid config, so half of physical disk available for storage. We're in the 30+tb of real storage across a 4U setup right now. Cost (with hardware/setup/initial config) is below those numbers below (so far), because we're building from scratch and learning along the way. >> >> I would tend to agree on not using the off site stuff, just considering the moving of the data and the idea of co-lo to some other remote location starts to fall apart. The transfer costs, in bandwidth and/or time, really start to eat into things cost wise. Some of this depends on the end uses as well. We're building a data site for distribution of really large files and datasets. >> >> bobb >> >>>>> Paul Spencer wrote: >> >> Hi, >> >> I would personally recommend against AWS S3/EBS for anything of this scale as the I/O is pretty pathetic unless you invest in their very high end instances. We've set up a 4TB 'SAN' using glusterfs on AWS EC2 using 1TB EBS volumes and separate instances for each - the performance has been so poor that we have had to redesign our workflow to get copies of data onto EBS attached to each mapserver instance - for scaling that sucks and even then the I/O performance of EBS is not that great on the normal instances. >> >> I'm not a hardware guy but I think the purpose of a dedicated SAN box is to provide high bandwidth access to large amounts storage so that the data can effectively be distributed to/from multiple machines over a network - ideal for scaling mapserver onto multiple servers but rendering from the same data. I read an article about a year ago from a company that provides petabyte storage for online storage, it details how they built their storage devices - they say $7867 for 67 terabytes >> >> http://blog.backblaze.com/2009/09/01/petabytes-on-a-budget-how-to-build-cheap-cloud-storage/ >> >> Seems pretty geeky, but perhaps you are the hardware type or know someone who is :) >> >> >> On 2011-01-28, at 3:41 AM, tigana.fluens at gmail.com wrote: >> >>> Hello guys, we're a startup and new to mapserver. We're expecting large amounts of data to come by (at least on our scale) around 40-60TB of raster images for mapserver to render. My question is for the infrastructure, what is the best way to store this (cost-efficiently)? >>> >>> - Do we just get a dedicated server with a lot of HDDs? I'm looking at a 48TB setup in RAID 1+0 so i get 24TB right what happens now if we need more? Also, how can we scale from the mapserver side? Is access to different storage servers possible? >>> - I've considered SANs but then it's not practical right because only one machine will access the storage? >>> - What about Amazon's S3? or EBS? Anything we can use on that? >>> >>> I wish to get awesome advice on this storage issue, basically what the considered best practice is for the mapserver people :P Thanks >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> __________________________________________ >> >> Paul Spencer >> Chief Technology Officer >> DM Solutions Group Inc >> http://research.dmsolutions.ca/ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From tigana.fluens at gmail.com Fri Jan 28 08:30:15 2011 From: tigana.fluens at gmail.com (tigana.fluens at gmail.com) Date: Sat, 29 Jan 2011 00:30:15 +0800 Subject: [mapserver-users] Mapserver Storage In-Reply-To: References: <20110128083217.9C9E6E02283@lists.osgeo.org> <4D428146.3090500@gmail.com> <26ED7DF6-594E-4926-89FF-AF06BEE3C27B@dmsolutions.ca> <4D428C7C020000A800025AF2@heckle> Message-ID: <4D42EF17.8010105@gmail.com> @Mark Yes, so big of a difference. HDDs dont even fail often : ) What can you say about our current plan: Assuming we need 10TB of storage, We get a dedicated server somewhere on a reputable provider like SoftLayer the max HDDs they can put in a single box is 24 so assuming we get 2TB HDDs that's 24TB in RAID 1+0. I just spoke to their sales team and with the config Xeon 5xxx something, 12GB DDR3 of memory among other things such as the raid card and whatnot, it would cost around $1800/month. Is this a viable solution? I would like to just invest in a local server but unfortunately our internet sucks here in our country so we'll just keep local backups and rely on the RAID in the said machine for the required "redundancy" if you can call it that. On 1/29/2011 12:14 AM, Mark Korver wrote: > I think current S3 pricing for 50TB at 0.125/GB comes to about > 6250/month. That is for "Designed for 99.999999999% Durability". I > can't even count that many 9s. I know you can buy HDs for about > $50/TB = $2500 for that 50TB. Assuming you replace them all once a > year its still only $5000. > > But we all know that to even get to 99.99 there are lot more parts to > the above equation. Anybody have a ballpark on what it really costs > to park that 50TB on your server room rack? > > On Fri, Jan 28, 2011 at 9:29 AM, Bob Basques > wrote: >> All, >> >> I'm working on a similar project currently. Setting up 50tb of storage, we went the route of multiple CPUs, with large disks. Redundant raid config, so half of physical disk available for storage. We're in the 30+tb of real storage across a 4U setup right now. Cost (with hardware/setup/initial config) is below those numbers below (so far), because we're building from scratch and learning along the way. >> >> I would tend to agree on not using the off site stuff, just considering the moving of the data and the idea of co-lo to some other remote location starts to fall apart. The transfer costs, in bandwidth and/or time, really start to eat into things cost wise. Some of this depends on the end uses as well. We're building a data site for distribution of really large files and datasets. >> >> bobb >> >>>>> Paul Spencer wrote: >> Hi, >> >> I would personally recommend against AWS S3/EBS for anything of this scale as the I/O is pretty pathetic unless you invest in their very high end instances. We've set up a 4TB 'SAN' using glusterfs on AWS EC2 using 1TB EBS volumes and separate instances for each - the performance has been so poor that we have had to redesign our workflow to get copies of data onto EBS attached to each mapserver instance - for scaling that sucks and even then the I/O performance of EBS is not that great on the normal instances. >> >> I'm not a hardware guy but I think the purpose of a dedicated SAN box is to provide high bandwidth access to large amounts storage so that the data can effectively be distributed to/from multiple machines over a network - ideal for scaling mapserver onto multiple servers but rendering from the same data. I read an article about a year ago from a company that provides petabyte storage for online storage, it details how they built their storage devices - they say $7867 for 67 terabytes >> >> http://blog.backblaze.com/2009/09/01/petabytes-on-a-budget-how-to-build-cheap-cloud-storage/ >> >> Seems pretty geeky, but perhaps you are the hardware type or know someone who is :) >> >> >> On 2011-01-28, at 3:41 AM, tigana.fluens at gmail.com wrote: >> >>> Hello guys, we're a startup and new to mapserver. We're expecting large amounts of data to come by (at least on our scale) around 40-60TB of raster images for mapserver to render. My question is for the infrastructure, what is the best way to store this (cost-efficiently)? >>> >>> - Do we just get a dedicated server with a lot of HDDs? I'm looking at a 48TB setup in RAID 1+0 so i get 24TB right what happens now if we need more? Also, how can we scale from the mapserver side? Is access to different storage servers possible? >>> - I've considered SANs but then it's not practical right because only one machine will access the storage? >>> - What about Amazon's S3? or EBS? Anything we can use on that? >>> >>> I wish to get awesome advice on this storage issue, basically what the considered best practice is for the mapserver people :P Thanks >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> __________________________________________ >> >> Paul Spencer >> Chief Technology Officer >> DM Solutions Group Inc >> http://research.dmsolutions.ca/ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> From mwkorver at gmail.com Fri Jan 28 09:29:51 2011 From: mwkorver at gmail.com (Mark Korver) Date: Fri, 28 Jan 2011 11:29:51 -0600 Subject: [mapserver-users] Mapserver Storage In-Reply-To: <4D42EF17.8010105@gmail.com> References: <20110128083217.9C9E6E02283@lists.osgeo.org> <4D428146.3090500@gmail.com> <26ED7DF6-594E-4926-89FF-AF06BEE3C27B@dmsolutions.ca> <4D428C7C020000A800025AF2@heckle> <4D42EF17.8010105@gmail.com> Message-ID: now we have some real numbers. reputable provider 10TB/$1800 Amazon S3 10TB/$1250 Amazon EBS 10TB/$1000 its not that simple a comparison. but looking at those numbers and knowing that with AWS you can run everything else as a function of need (EC2,LB,SQS,mail services... etc etc) AWS starts looking cheap. It might be a bit more to park data ( not really ) but that is only a small part of the final equation. On Fri, Jan 28, 2011 at 10:30 AM, wrote: > @Mark Yes, so big of a difference. HDDs dont even fail often : ) What can > you say about our current plan: > > Assuming we need 10TB of storage, > We get a dedicated server somewhere on a reputable provider like SoftLayer > the max HDDs they can put in a single box is 24 so assuming we get 2TB HDDs > that's 24TB in RAID 1+0. I just spoke to their sales team and with the > config Xeon 5xxx something, 12GB DDR3 of memory among other things such as > the raid card and whatnot, it would cost around $1800/month. > > Is this a viable solution? I would like to just invest in a local server but > unfortunately our internet sucks here in our country so we'll just keep > local backups and rely on the RAID in the said machine for the required > "redundancy" if you can call it that. > > On 1/29/2011 12:14 AM, Mark Korver wrote: >> >> I think current S3 pricing for 50TB at 0.125/GB comes to about >> 6250/month. ?That is for "Designed for 99.999999999% Durability". ?I >> can't even count that many 9s. ?I know you can buy HDs for about >> $50/TB = $2500 for that 50TB. Assuming you replace them all once a >> year its still only $5000. >> >> But we all know that to even get to 99.99 there are lot more parts to >> the above equation. ?Anybody have a ballpark on what it really costs >> to park that 50TB on your server room rack? >> >> On Fri, Jan 28, 2011 at 9:29 AM, Bob Basques >> ?wrote: >>> >>> All, >>> >>> I'm working on a similar project currently. ?Setting up 50tb of storage, >>> we went the route of multiple CPUs, with large disks. ? Redundant raid >>> config, so half of physical disk available for storage. ?We're in the 30+tb >>> of real storage across a 4U setup right now. ?Cost (with >>> hardware/setup/initial config) is below those numbers below (so far), >>> because we're building from scratch and learning along the way. >>> >>> I would tend to agree on not using the off site stuff, just considering >>> the moving of the data and the idea of co-lo to some other remote location >>> starts to fall apart. ? The transfer costs, in bandwidth and/or time, really >>> start to eat into things cost wise. ?Some of this depends on the end uses as >>> well. ?We're building a data site for distribution of really large files and >>> datasets. >>> >>> bobb >>> >>>>>> Paul Spencer ?wrote: >>> >>> Hi, >>> >>> I would personally recommend against AWS S3/EBS for anything of this >>> scale as the I/O is pretty pathetic unless you invest in their very high end >>> instances. ?We've set up a 4TB 'SAN' using glusterfs on AWS EC2 using 1TB >>> EBS volumes and separate instances for each - the performance has been so >>> poor that we have had to redesign our workflow to get copies of data onto >>> EBS attached to each mapserver instance - for scaling that sucks and even >>> then the I/O performance of EBS is not that great on the normal instances. >>> >>> I'm not a hardware guy but I think the purpose of a dedicated SAN box is >>> to provide high bandwidth access to large amounts storage so that the data >>> can effectively be distributed to/from multiple machines over a network - >>> ideal for scaling mapserver onto multiple servers but rendering from the >>> same data. ?I ?read an article about a year ago from a company that provides >>> petabyte storage for online storage, it details how they built their storage >>> devices - they say $7867 for 67 terabytes >>> >>> >>> http://blog.backblaze.com/2009/09/01/petabytes-on-a-budget-how-to-build-cheap-cloud-storage/ >>> >>> Seems pretty geeky, but perhaps you are the hardware type or know someone >>> who is :) >>> >>> >>> On 2011-01-28, at 3:41 AM, tigana.fluens at gmail.com wrote: >>> >>>> Hello guys, we're a startup and new to mapserver. We're expecting large >>>> amounts of data to come by (at least on our scale) around 40-60TB of raster >>>> images for mapserver to render. My question is for the infrastructure, what >>>> is the best way to store this (cost-efficiently)? >>>> >>>> - Do we just get a dedicated server with a lot of HDDs? I'm looking at a >>>> 48TB setup in RAID 1+0 so i get 24TB right what happens now if we need more? >>>> Also, how can we scale from the mapserver side? ?Is access to different >>>> storage servers possible? >>>> - I've considered SANs but then it's not practical right because only >>>> one machine will access the storage? >>>> - What about Amazon's S3? or EBS? Anything we can use on that? >>>> >>>> I wish to get awesome advice on this storage issue, basically what the >>>> considered best practice is for the mapserver people :P Thanks >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> __________________________________________ >>> >>> ? ?Paul Spencer >>> ? ?Chief Technology Officer >>> ? ?DM Solutions Group Inc >>> ? ?http://research.dmsolutions.ca/ >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> > > From tigana.fluens at gmail.com Fri Jan 28 09:52:48 2011 From: tigana.fluens at gmail.com (tigana.fluens at gmail.com) Date: Sat, 29 Jan 2011 01:52:48 +0800 Subject: [mapserver-users] Mapserver Storage In-Reply-To: References: <20110128083217.9C9E6E02283@lists.osgeo.org> <4D428146.3090500@gmail.com> <26ED7DF6-594E-4926-89FF-AF06BEE3C27B@dmsolutions.ca> <4D428C7C020000A800025AF2@heckle> <4D42EF17.8010105@gmail.com> Message-ID: <4D430270.5080508@gmail.com> A correction about the dedicated machine price: that's for 48TB = 24HDDs x 2TB each which is the max they can put on one single machine but you dont get any sort of redundancy that way so youd probably do RAID 1+0 for the added I/O speed and safety but you only get 24TB so that's 24TB for $1800 in a server with 12GB memory and a xeon proc. on AWS you pay for an EC2 instance (a 12GB instance is expensive iirc) separately not to mention you pay for bandwidth all the time as well as every request you're right it's not that simple. im sure we can use AWS for other things maybe for the web app server itself ec2 would be nice. the s3fs is really awesome thanks for that i didnt know there was a way to mount s3 buckets :) On 1/29/2011 1:29 AM, Mark Korver wrote: > now we have some real numbers. > > reputable provider > 10TB/$1800 > > Amazon S3 > 10TB/$1250 > > Amazon EBS > 10TB/$1000 > > its not that simple a comparison. but looking at those numbers and > knowing that with AWS you can run everything else as a function of > need (EC2,LB,SQS,mail services... etc etc) AWS starts looking cheap. > It might be a bit more to park data ( not really ) but that is only a > small part of the final equation. > > On Fri, Jan 28, 2011 at 10:30 AM, wrote: >> @Mark Yes, so big of a difference. HDDs dont even fail often : ) What can >> you say about our current plan: >> >> Assuming we need 10TB of storage, >> We get a dedicated server somewhere on a reputable provider like SoftLayer >> the max HDDs they can put in a single box is 24 so assuming we get 2TB HDDs >> that's 24TB in RAID 1+0. I just spoke to their sales team and with the >> config Xeon 5xxx something, 12GB DDR3 of memory among other things such as >> the raid card and whatnot, it would cost around $1800/month. >> >> Is this a viable solution? I would like to just invest in a local server but >> unfortunately our internet sucks here in our country so we'll just keep >> local backups and rely on the RAID in the said machine for the required >> "redundancy" if you can call it that. From pspencer at dmsolutions.ca Fri Jan 28 09:53:10 2011 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Fri, 28 Jan 2011 12:53:10 -0500 Subject: [mapserver-users] Mapserver Storage In-Reply-To: <4D42E765.30901@gmail.com> References: <20110128083217.9C9E6E02283@lists.osgeo.org> <4D428146.3090500@gmail.com> <26ED7DF6-594E-4926-89FF-AF06BEE3C27B@dmsolutions.ca> <4D428C7C020000A800025AF2@heckle> <4D42E765.30901@gmail.com> Message-ID: <1C8E414E-4A7C-4387-A78A-82E7E738572D@dmsolutions.ca> I don't have actual numbers handy to back this up, but a rough comparison from what we observed rendering relatively complex maps was that EBS storage was perhaps 2-4 as slow as a local dell desktop running linux with eSATA 1TB drives (not high end hardware for sure). Using glusterfs was 8+ times as slow. We ended up using EBS as we could fit all our data onto a 1TB disk, it replicates reasonably quickly once snapshotted so to scale we start a new instance and replicate the EBS volume behind a load balancer. Adding more servers and copies of the data makes up for the slower IO speed somewhat but every map draw still takes 2-4 times longer than using dedicated hardware. On the other hand, it is very cost effective for scaling. But for the amount of data that you are talking about, scaling by duplicating the EBS volumes would be very expensive and I really thing shared storage via glusterfs is a non-starter for that kind of volume of data if you want any kind of reasonable render time. On 2011-01-28, at 10:57 AM, tigana.fluens at gmail.com wrote: > What do you exactly mean by pathetic I/O on S3/EBS? __________________________________________ Paul Spencer Chief Technology Officer DM Solutions Group Inc http://research.dmsolutions.ca/ From mwkorver at gmail.com Fri Jan 28 10:19:11 2011 From: mwkorver at gmail.com (Mark Korver) Date: Fri, 28 Jan 2011 12:19:11 -0600 Subject: [mapserver-users] Mapserver Storage In-Reply-To: <1C8E414E-4A7C-4387-A78A-82E7E738572D@dmsolutions.ca> References: <20110128083217.9C9E6E02283@lists.osgeo.org> <4D428146.3090500@gmail.com> <26ED7DF6-594E-4926-89FF-AF06BEE3C27B@dmsolutions.ca> <4D428C7C020000A800025AF2@heckle> <4D42E765.30901@gmail.com> <1C8E414E-4A7C-4387-A78A-82E7E738572D@dmsolutions.ca> Message-ID: there is a lot analysis of EBS IO performance out there. like http://orion.heroku.com/past/2009/7/29/io_performance_on_ebs/ but I think, my earlier question, about the purpose of this mapserver system needs to be addressed to be able to go further. for example, if you are reading a lot of layers/shapefiles to render pngs, thats one thing. If you are only interested in performance on image-based data, maybe just one giant layer of uncompressed GTifs thats another. It doesn't matter if you have the best IO, if you don't have the data optimized. On Fri, Jan 28, 2011 at 11:53 AM, Paul Spencer wrote: > I don't have actual numbers handy to back this up, but a rough comparison from what we observed rendering relatively complex maps was that EBS storage was perhaps 2-4 as slow as a local dell desktop running linux with eSATA 1TB drives (not high end hardware for sure). ?Using glusterfs was 8+ times as slow. ?We ended up using EBS as we could fit all our data onto a 1TB disk, it replicates reasonably quickly once snapshotted so to scale we start a new instance and replicate the EBS volume behind a load balancer. ?Adding more servers and copies of the data makes up for the slower IO speed somewhat but every map draw still takes 2-4 times longer than using dedicated hardware. ?On the other hand, it is very cost effective for scaling. ?But for the amount of data that you are talking about, scaling by duplicating the EBS volumes would be very expensive and I really thing shared storage via glusterfs is a non-starter for that kind of volume of data if you want any kind of reasonable render time. > > > On 2011-01-28, at 10:57 AM, tigana.fluens at gmail.com wrote: > >> What do you exactly mean by pathetic I/O on S3/EBS? > > > __________________________________________ > > ? Paul Spencer > ? Chief Technology Officer > ? DM Solutions Group Inc > ? http://research.dmsolutions.ca/ > > From woodbri at swoodbridge.com Fri Jan 28 12:38:40 2011 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 28 Jan 2011 15:38:40 -0500 Subject: [mapserver-users] Mapserver Storage In-Reply-To: References: <20110128083217.9C9E6E02283@lists.osgeo.org> <4D428146.3090500@gmail.com> <26ED7DF6-594E-4926-89FF-AF06BEE3C27B@dmsolutions.ca> <4D428C7C020000A800025AF2@heckle> <4D42E765.30901@gmail.com> <1C8E414E-4A7C-4387-A78A-82E7E738572D@dmsolutions.ca> Message-ID: <4D432950.9040106@swoodbridge.com> On 1/28/2011 1:19 PM, Mark Korver wrote: > there is a lot analysis of EBS IO performance out there. like > http://orion.heroku.com/past/2009/7/29/io_performance_on_ebs/ > > but I think, my earlier question, about the purpose of this mapserver > system needs to be addressed to be able to go further. > > for example, if you are reading a lot of layers/shapefiles to render > pngs, thats one thing. If you are only interested in performance on > image-based data, maybe just one giant layer of uncompressed GTifs > thats another. It doesn't matter if you have the best IO, if you don't > have the data optimized. I think you will find the best/good(?) performance can be had by using uncompressed gtiff files that are internally tiled. I gdal use the -co "TILED=YES" option. The size of the gtiff is less important because if it is internally tiled the access to the data is extremely efficient. Another option you might want to consider if you data is relatively static is to generate image tiles, like google, and and precache all the tiles. These can be saved as jpeg files so you get some compression and you do not need mapserver to handle each image request. Using tiles I was not able to create a backlog in apache serving them because I always ran into bandwidth limits before I overload a single apache instance. This was based in using an EqualLogic SAN. For another client, I created an mapserver instance on Amazon where we could spatially separate the tiling tasks, to do the tiling and then they cloned the like 10 of them to do the tiling in a couple of days. If I recall they sent/bought USB drives and copied the tiles from the amazon instances and had them mailed to their data center. -steve > On Fri, Jan 28, 2011 at 11:53 AM, Paul Spencer wrote: >> I don't have actual numbers handy to back this up, but a rough comparison from what we observed rendering relatively complex maps was that EBS storage was perhaps 2-4 as slow as a local dell desktop running linux with eSATA 1TB drives (not high end hardware for sure). Using glusterfs was 8+ times as slow. We ended up using EBS as we could fit all our data onto a 1TB disk, it replicates reasonably quickly once snapshotted so to scale we start a new instance and replicate the EBS volume behind a load balancer. Adding more servers and copies of the data makes up for the slower IO speed somewhat but every map draw still takes 2-4 times longer than using dedicated hardware. On the other hand, it is very cost effective for scaling. But for the amount of data that you are talking about, scaling by duplicating the EBS volumes would be very expensive and I really thing shared storage via glusterfs is a non-starter for that kind of volume of data if you want any kind of reason able render time. >> >> >> On 2011-01-28, at 10:57 AM, tigana.fluens at gmail.com wrote: >> >>> What do you exactly mean by pathetic I/O on S3/EBS? >> >> >> __________________________________________ >> >> Paul Spencer >> Chief Technology Officer >> DM Solutions Group Inc >> http://research.dmsolutions.ca/ >> >> > _______________________________________________ > 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 Jan 28 13:59:06 2011 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Fri, 28 Jan 2011 16:59:06 -0500 Subject: [mapserver-users] Change mouse icon from default Message-ID: <4EFF8BB964547748A07CA32961810C041A036D84@SOM-TEAQASMAIL1.som.w2k.state.me.us> Hi everyone. This should be an easy one, but I was wondering how I could change the mouse pointer in a MapServer/PHP Mapscript app? The map image resides in an HTML frame. As it is now, the mouse pointer is a hand pointing the index finger. I'd like to change it back to the standard arrow pointer. Is there an easy way to do this? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bogdansuvar at gmail.com Sat Jan 29 08:10:42 2011 From: bogdansuvar at gmail.com (bs) Date: Sat, 29 Jan 2011 08:10:42 -0800 (PST) Subject: [mapserver-users] python mapscript issue Message-ID: <1296317442447-5972926.post@n2.nabble.com> Hi there, I'm using an example from Ben Kroplas book: Beginning in GIS on how to use Mapscript Python bindings for projecting a map image. For some reason, however, when I attempt to create an image (image = map.draw()) the method does not return anything. It just hangs... see code here: http://codepad.org/jLB7SrFV http://codepad.org/jLB7SrFV -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/python-mapscript-issue-tp5972926p5972926.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at gatewaygeomatics.com Sat Jan 29 08:21:19 2011 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Sat, 29 Jan 2011 12:21:19 -0400 Subject: [mapserver-users] python mapscript issue In-Reply-To: <1296317442447-5972926.post@n2.nabble.com> References: <1296317442447-5972926.post@n2.nabble.com> Message-ID: <4D443E7F.4050505@gatewaygeomatics.com> On 11-01-29 12:10 PM, bs wrote: > > Hi there, > I'm using an example from Ben Kroplas book: Beginning in GIS on how to use > Mapscript Python bindings for projecting a map image. > For some reason, however, when I attempt to create an image (image = > map.draw()) the method does not return anything. It just hangs... > see code here: http://codepad.org/jLB7SrFV http://codepad.org/jLB7SrFV Hi, When I cause MapServer to crash I always enable debugging (http://www.mapserver.org/optimization/debugging.html), usually the cause will be in the MapServer log file. Then if not I check the Apache log file for the exact URL causing the problem, and then I run that CGI query string at the commandline (again that is documented in that link provided). Sunny Saturday here on the east coast of Canada :) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From bogdansuvar at gmail.com Sat Jan 29 10:02:51 2011 From: bogdansuvar at gmail.com (bs) Date: Sat, 29 Jan 2011 10:02:51 -0800 (PST) Subject: [mapserver-users] Re: python mapscript issue In-Reply-To: <4D443E7F.4050505@gatewaygeomatics.com> References: <1296317442447-5972926.post@n2.nabble.com> <4D443E7F.4050505@gatewaygeomatics.com> Message-ID: <1296324171456-5973144.post@n2.nabble.com> thanks Jeff! from the cloudy Eastern England, tried both and found nothing, but went on with the debugging in a Python IDE which interestingly enough does not help in identifying the issue - the IDE still hanging when the map.draw() is called. moreover, the definition of the draw() function is: def draw(*args): return _mapscript.rectObj_draw(*args) and even step-by-step debugging of the script did not yield any errors. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/python-mapscript-issue-tp5972926p5973144.html Sent from the Mapserver - User mailing list archive at Nabble.com. From gregcorradini at gmail.com Sat Jan 29 19:11:32 2011 From: gregcorradini at gmail.com (gregcorradini) Date: Sat, 29 Jan 2011 19:11:32 -0800 (PST) Subject: [mapserver-users] Re: make cannot find -libodbc and -libodbcinst on compilation In-Reply-To: References: <1296050685541-5962776.post@n2.nabble.com> <201101261511.13565.yves.jacolin@camptocamp.com> <1296052309202-5962843.post@n2.nabble.com> <1296099803395-5965117.post@n2.nabble.com> Message-ID: <1296357092351-5973850.post@n2.nabble.com> Jefff, the output you were looking for is below. Sorry, I didn't see your reply until now :) Also of interest is the fact that on the gdal-dev forums Frank said the gdal-config line "-L/usr/local/lib " just tells the linker where to look first, not that the libraries are there. There's always a fallback. His exact words: """ You are misreading the above. The -L/usr/local/lib directive tells the linker to look *first* in /usr/local/lib for libraries and then fallback to the usual locations - normally /usr/lib. It does not mean that all the following libraries are expected to be found in /usr/local/lib. Often the configure logic puts a mismash of -L directives in the link directives which can result in link time problems. """ Well, the libodbc* libraries I need are in /usr/lib among other locations. So it should already be looking there. I've compiled and installed other GDAL dependent software on this computer without this much of a problem --------------OUTPUT----------------------------- $ gdal-config --libs -L/usr/local/lib -lgdal $ $ $ gdal-config --dep-libs -L/usr/local/lib -lgeos_c -lsqlite3 -lodbc -lodbcinst -lxerces-c -lpthread -ljasper -lhdf5 -lmfhdfalt -ldfalt -lgif -ljpeg -lpng -lnetcdf -L/usr/lib -lpq -lz -lpthread -lm -lrt -ldl -lcurl -Wl,-Bsymbolic-functions $ $ $ ls /usr/lib/libgdal* /usr/lib/libgdal1.6.0.so.1 /usr/lib/libgdal1.7.0.so.1 /usr/lib/libgdal1.6.0.so.1.13.3 /usr/lib/libgdal1.7.0.so.1.14.3 $ $ $ ldd /usr/lib/libgdal1.7.0.so.1.14.3 linux-vdso.so.1 => (0x00007fff28bff000) libproj.so.0 => /usr/local/lib/libproj.so.0 (0x00007ff483bba000) libgeos_c.so.1 => /usr/local/lib/libgeos_c.so.1 (0x00007ff48399e000) libodbc.so.1 => /usr/lib/libodbc.so.1 (0x00007ff483737000) libodbcinst.so.1 => /usr/lib/libodbcinst.so.1 (0x00007ff483526000) libexpat.so.1 => /lib/libexpat.so.1 (0x00007ff4832fd000) libxerces-c.so.28 => /usr/lib/libxerces-c.so.28 (0x00007ff482d29000) libjasper.so.1 => /usr/lib/libjasper.so.1 (0x00007ff482ad2000) libhdf5.so.6 => /usr/lib/libhdf5.so.6 (0x00007ff482529000) libmfhdfalt.so.0 => /usr/lib/libmfhdfalt.so.0 (0x00007ff482305000) libdfalt.so.0 => /usr/lib/libdfalt.so.0 (0x00007ff482063000) libogdi.so.3.2 => /usr/lib/libogdi.so.3.2 (0x00007ff481e43000) libgif.so.4 => /usr/lib/libgif.so.4 (0x00007ff481c39000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x00007ff481a15000) libpng12.so.0 => /lib/libpng12.so.0 (0x00007ff4817ee000) libnetcdf.so.6 => /usr/lib/libnetcdf.so.6 (0x00007ff4814b4000) libpq.so.5 => /usr/lib/libpq.so.5 (0x00007ff48128d000) libdl.so.2 => /lib/libdl.so.2 (0x00007ff481089000) libdap.so.10 => /usr/lib/libdap.so.10 (0x00007ff480da8000) libdapserver.so.7 => /usr/lib/libdapserver.so.7 (0x00007ff480b96000) libdapclient.so.3 => /usr/lib/libdapclient.so.3 (0x00007ff48095b000) libidn.so.11 => /usr/lib/libidn.so.11 (0x00007ff480727000) liblber-2.4.so.2 => /usr/lib/liblber-2.4.so.2 (0x00007ff480519000) libldap_r-2.4.so.2 => /usr/lib/libldap_r-2.4.so.2 (0x00007ff4802ce000) librt.so.1 => /lib/librt.so.1 (0x00007ff4800c5000) libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00007ff47fe91000) libgnutls.so.26 => /usr/lib/libgnutls.so.26 (0x00007ff47fbef000) libgcrypt.so.11 => /lib/libgcrypt.so.11 (0x00007ff47f976000) libxml2.so.2 => /usr/local/lib/libxml2.so.2 (0x00007ff47f628000) libz.so.1 => /lib/libz.so.1 (0x00007ff47f410000) libpthread.so.0 => /lib/libpthread.so.0 (0x00007ff47f1f2000) libspatialite.so.2 => /usr/lib/libspatialite.so.2 (0x00007ff47ec30000) libcurl-gnutls.so.4 => /usr/lib/libcurl-gnutls.so.4 (0x00007ff47e9dd000) libmysqlclient.so.16 => /usr/lib/libmysqlclient.so.16 (0x00007ff47e5ce000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007ff47e2c8000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007ff47e0b2000) libm.so.6 => /lib/libm.so.6 (0x00007ff47de2e000) libc.so.6 => /lib/libc.so.6 (0x00007ff47daab000) libgeos-3.2.2.so => /usr/local/lib/libgeos-3.2.2.so (0x00007ff47d737000) libltdl.so.7 => /usr/lib/libltdl.so.7 (0x00007ff47d52c000) libicuuc.so.42 => /usr/lib/libicuuc.so.42 (0x00007ff47d1d1000) libicudata.so.42 => /usr/lib/libicudata.so.42 (0x00007ff47c08c000) libhdf5_hl.so.6 => /usr/lib/libhdf5_hl.so.6 (0x00007ff47be59000) libssl.so.0.9.8 => /lib/libssl.so.0.9.8 (0x00007ff47bc07000) libcrypto.so.0.9.8 => /lib/libcrypto.so.0.9.8 (0x00007ff47b87a000) libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00007ff47b5b8000) libcom_err.so.2 => /lib/libcom_err.so.2 (0x00007ff47b3b4000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x00007ff47b17a000) /lib64/ld-linux-x86-64.so.2 (0x00007ff484862000) libresolv.so.2 => /lib/libresolv.so.2 (0x00007ff47af61000) libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x00007ff47ad46000) libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00007ff47ab20000) libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x00007ff47a918000) libkeyutils.so.1 => /lib/libkeyutils.so.1 (0x00007ff47a714000) libtasn1.so.3 => /usr/lib/libtasn1.so.3 (0x00007ff47a503000) libgpg-error.so.0 => /lib/libgpg-error.so.0 (0x00007ff47a2ff000) libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0x00007ff47a069000) libnsl.so.1 => /lib/libnsl.so.1 (0x00007ff479e4f000) -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/make-cannot-find-libodbc-and-libodbcinst-on-compilation-tp5962776p5973850.html Sent from the Mapserver - User mailing list archive at Nabble.com. From gregcorradini at gmail.com Sat Jan 29 22:51:06 2011 From: gregcorradini at gmail.com (gregcorradini) Date: Sat, 29 Jan 2011 22:51:06 -0800 (PST) Subject: [mapserver-users] Re: make cannot find -libodbc and -libodbcinst on compilation In-Reply-To: <1296357092351-5973850.post@n2.nabble.com> References: <1296050685541-5962776.post@n2.nabble.com> <201101261511.13565.yves.jacolin@camptocamp.com> <1296052309202-5962843.post@n2.nabble.com> <1296099803395-5965117.post@n2.nabble.com> <1296357092351-5973850.post@n2.nabble.com> Message-ID: <1296370266841-5974041.post@n2.nabble.com> I found a way to compile mapserver without errors. I don't know why the workflow below was successful or if I'm just foolish (I'm not a C/C++ whiz and I'm only doing this because mapserver wasn't working through package installer). But the thing compiled and the mapserv executable is working in the apache2 cgi-bin now. So here's what I did. Since the problem was occuring with GDAL and PostGIS support I decided to try and build with only the minimal required libraries to see what happened. Here's that ./configure: # MINIMAL ./configure --with-gd=/usr/local/ --with-freetype=/usr/ > twinkie_config_log.txt I ran 'make' and everything went off without errors. So i decided to add to this configuration the 'recommended' libraries like proj4 and gdal etc. That ./configure: # WITH RECOMMENDED LIBRARIES ./configure --with-gdal --with-ogr --with-curl-config=/usr/local/bin/curl-config --with-proj=/usr/local --with-gd=/usr/local/ --with-freetype=/usr/ > twinkie_config_log.txt I ran 'make' and everything went off without errors. Finally, i added to this configuration what I initially started with in ./configure -- the stuff that produced the libodbc* and libxslt errors: # EVERTHING I WANT CONFIGURED ./configure --with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config --with-wcs --with-wfs --with-wfsclient --with-wmsclient --with-curl-config=/usr/local/bin/curl-config --with-proj=/usr/local --with-tiff --with-gd=/usr/local/ --with-jpeg --with-freetype=/usr/ --with-threads --with-postgis=/usr/bin/pg_config --with-geos=/usr/local/bin/geos-config --with-httpd=/usr/sbin/apache2 > twinkie_config_log.txt I ran 'make' and I'm a happy camper, but a confused one. Ideas? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/make-cannot-find-libodbc-and-libodbcinst-on-compilation-tp5962776p5974041.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pmoen at nd.gov Mon Jan 31 08:08:04 2011 From: pmoen at nd.gov (Moen, Paul T.) Date: Mon, 31 Jan 2011 10:08:04 -0600 Subject: [mapserver-users] Change mouse icon from default In-Reply-To: <4EFF8BB964547748A07CA32961810C041A036D84@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: This is part of html and css rather than mapserver. If you have control over the map image, you cat set the cursor a specific type. See http://www.w3schools.com/CSS/pr_class_cursor.asp for a list of cursors and how to do it. From: "Bistrais, Bob" > Date: Fri, 28 Jan 2011 15:59:06 -0600 To: mapserver-users > Subject: [mapserver-users] Change mouse icon from default Hi everyone. This should be an easy one, but I waswondering how I could change the mouse pointer in a MapServer/PHP Mapscriptapp? The map image resides in an HTML frame. As it is now, the mouse pointer is a hand pointing the index finger. I?d like to change it back to the standard arrow pointer. Is there an easy way to do this? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Mon Jan 31 08:08:46 2011 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 31 Jan 2011 10:08:46 -0600 Subject: [mapserver-users] changing dynamically LABEL BACKGROUNDCOLOR In-Reply-To: <1296150918.2246.6.camel@tommaso-laptop> References: <1296142978.2205.16.camel@tommaso-laptop> <4D4193AE.4010004@ulb.ac.be>,<1296150918.2246.6.camel@tommaso-laptop> Message-ID: 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 Bob.Bistrais at maine.gov Mon Jan 31 09:06:10 2011 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Mon, 31 Jan 2011 12:06:10 -0500 Subject: [mapserver-users] Change mouse icon from default In-Reply-To: References: <4EFF8BB964547748A07CA32961810C041A036D84@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4EFF8BB964547748A07CA32961810C041A036D87@SOM-TEAQASMAIL1.som.w2k.state.me.us> That makes sense, and I've been looking at the references. The problem I still have in particular, is that when the mouse is over the map image (which is an image with a URL), the cursor changes to the pointing finger. I've reset the styles for my anchor tags (cursor:pointer), but am still seeing the pointing finger. ________________________________ From: Moen, Paul T. [mailto:pmoen at nd.gov] Sent: Monday, January 31, 2011 11:08 AM To: mapserver-users Subject: Re: [mapserver-users] Change mouse icon from default This is part of html and css rather than mapserver. If you have control over the map image, you cat set the cursor a specific type. See http://www.w3schools.com/CSS/pr_class_cursor.asp for a list of cursors and how to do it. From: "Bistrais, Bob" Date: Fri, 28 Jan 2011 15:59:06 -0600 To: mapserver-users Subject: [mapserver-users] Change mouse icon from default Hi everyone. This should be an easy one, but I waswondering how I could change the mouse pointer in a MapServer/PHP Mapscriptapp? The map image resides in an HTML frame. As it is now, the mouse pointer is a hand pointing the index finger. I'd like to change it back to the standard arrow pointer. Is there an easy way to do this? -------------- next part -------------- An HTML attachment was scrubbed... URL: From tommasodb at googlemail.com Mon Jan 31 09:36:18 2011 From: tommasodb at googlemail.com (tommaso) Date: Mon, 31 Jan 2011 18:36:18 +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> Message-ID: <1296495379.29349.12.camel@tommaso-laptop> 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 jean-francois at gigand.fr Mon Jan 31 09:54:11 2011 From: jean-francois at gigand.fr (=?ISO-8859-1?Q?Jean=2DFran=E7ois_Gigand?=) Date: Mon, 31 Jan 2011 18:54:11 +0100 Subject: [mapserver-users] Change mouse icon from default In-Reply-To: <4EFF8BB964547748A07CA32961810C041A036D87@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C041A036D84@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4EFF8BB964547748A07CA32961810C041A036D87@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: Try forcing it : a { cursor: pointer !important; } Jeff 2011/1/31 Bistrais, Bob : > That makes sense, and I?ve been looking at the references.? The problem I > still have in particular, is that when the mouse is over the map image > (which is an image with a URL), the cursor changes to the pointing finger. > I?ve reset the styles for my anchor tags (cursor:pointer), but am still > seeing the pointing finger. > > > > ________________________________ > > From: Moen, Paul T. [mailto:pmoen at nd.gov] > Sent: Monday, January 31, 2011 11:08 AM > To: mapserver-users > Subject: Re: [mapserver-users] Change mouse icon from default > > > > This is part of html and css rather than mapserver. > > > > If you have control over the map image, you cat set the cursor a specific > type. > > > > See?http://www.w3schools.com/CSS/pr_class_cursor.asp?for ?a list of cursors > and how to do it. > > > > From: "Bistrais, Bob" > Date: Fri, 28 Jan 2011 15:59:06 -0600 > To: mapserver-users > Subject: [mapserver-users] Change mouse icon from default > > > > Hi everyone.? This should be an easy one, but I waswondering how I could > change the mouse pointer in a MapServer/PHP Mapscriptapp? ?The map image > resides in an HTML frame. As it is now, the mouse pointer is a hand pointing > the index finger.? I?d like to change it back to the standard arrow > pointer.? Is there an easy way to do this? > > _______________________________________________ > 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 Jan 31 10:07:01 2011 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Mon, 31 Jan 2011 13:07:01 -0500 Subject: [mapserver-users] Change mouse icon from default In-Reply-To: References: <4EFF8BB964547748A07CA32961810C041A036D84@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4EFF8BB964547748A07CA32961810C041A036D87@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4EFF8BB964547748A07CA32961810C041A036D8D@SOM-TEAQASMAIL1.som.w2k.state.me.us> I tried that in the CSS and also inline, and cleared the cache, still seeing the pointing finger. -----Original Message----- From: okapi.p at gmail.com [mailto:okapi.p at gmail.com] On Behalf Of Jean-Fran?ois Gigand Sent: Monday, January 31, 2011 12:54 PM To: Bistrais, Bob Cc: mapserver-users Subject: Re: [mapserver-users] Change mouse icon from default Try forcing it : a { cursor: pointer !important; } Jeff 2011/1/31 Bistrais, Bob : > That makes sense, and I've been looking at the references.? The problem I > still have in particular, is that when the mouse is over the map image > (which is an image with a URL), the cursor changes to the pointing finger. > I've reset the styles for my anchor tags (cursor:pointer), but am still > seeing the pointing finger. > > > > ________________________________ > > From: Moen, Paul T. [mailto:pmoen at nd.gov] > Sent: Monday, January 31, 2011 11:08 AM > To: mapserver-users > Subject: Re: [mapserver-users] Change mouse icon from default > > > > This is part of html and css rather than mapserver. > > > > If you have control over the map image, you cat set the cursor a specific > type. > > > > See?http://www.w3schools.com/CSS/pr_class_cursor.asp?for ?a list of cursors > and how to do it. > > > > From: "Bistrais, Bob" > Date: Fri, 28 Jan 2011 15:59:06 -0600 > To: mapserver-users > Subject: [mapserver-users] Change mouse icon from default > > > > Hi everyone.? This should be an easy one, but I waswondering how I could > change the mouse pointer in a MapServer/PHP Mapscriptapp? ?The map image > resides in an HTML frame. As it is now, the mouse pointer is a hand pointing > the index finger.? I'd like to change it back to the standard arrow > pointer.? Is there an easy way to do this? > > _______________________________________________ > 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 Jan 31 10:49:12 2011 From: jean-francois at gigand.fr (=?ISO-8859-1?Q?Jean=2DFran=E7ois_Gigand?=) Date: Mon, 31 Jan 2011 19:49:12 +0100 Subject: [mapserver-users] Change mouse icon from default In-Reply-To: <4EFF8BB964547748A07CA32961810C041A036D8D@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C041A036D84@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4EFF8BB964547748A07CA32961810C041A036D87@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4EFF8BB964547748A07CA32961810C041A036D8D@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: You will find answers searching the web about this pure html/css question. If not, a posting on a forum on the topic along with a code example will bring you the answer. This has just nothing to do with MapServer, sorry. Jeff 2011/1/31 Bistrais, Bob : > I tried that in the CSS and also inline, and cleared the cache, still seeing the pointing finger. > > -----Original Message----- > From: okapi.p at gmail.com [mailto:okapi.p at gmail.com] On Behalf Of Jean-Fran?ois Gigand > Sent: Monday, January 31, 2011 12:54 PM > To: Bistrais, Bob > Cc: mapserver-users > Subject: Re: [mapserver-users] Change mouse icon from default > > Try forcing it : > a { cursor: pointer !important; } > > Jeff > > 2011/1/31 Bistrais, Bob : >> That makes sense, and I've been looking at the references.? The problem I >> still have in particular, is that when the mouse is over the map image >> (which is an image with a URL), the cursor changes to the pointing finger. >> I've reset the styles for my anchor tags (cursor:pointer), but am still >> seeing the pointing finger. >> >> >> >> ________________________________ >> >> From: Moen, Paul T. [mailto:pmoen at nd.gov] >> Sent: Monday, January 31, 2011 11:08 AM >> To: mapserver-users >> Subject: Re: [mapserver-users] Change mouse icon from default >> >> >> >> This is part of html and css rather than mapserver. >> >> >> >> If you have control over the map image, you cat set the cursor a specific >> type. >> >> >> >> See?http://www.w3schools.com/CSS/pr_class_cursor.asp?for ?a list of cursors >> and how to do it. >> >> >> >> From: "Bistrais, Bob" >> Date: Fri, 28 Jan 2011 15:59:06 -0600 >> To: mapserver-users >> Subject: [mapserver-users] Change mouse icon from default >> >> >> >> Hi everyone.? This should be an easy one, but I waswondering how I could >> change the mouse pointer in a MapServer/PHP Mapscriptapp? ?The map image >> resides in an HTML frame. As it is now, the mouse pointer is a hand pointing >> the index finger.? I'd like to change it back to the standard arrow >> pointer.? Is there an easy way to do this? >> >> _______________________________________________ >> 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 Jan 31 10:55:10 2011 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Mon, 31 Jan 2011 13:55:10 -0500 Subject: [mapserver-users] Change mouse icon from default In-Reply-To: References: <4EFF8BB964547748A07CA32961810C041A036D84@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4EFF8BB964547748A07CA32961810C041A036D87@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4EFF8BB964547748A07CA32961810C041A036D8D@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4EFF8BB964547748A07CA32961810C041A036D8E@SOM-TEAQASMAIL1.som.w2k.state.me.us> OK, thanks! -----Original Message----- From: okapi.p at gmail.com [mailto:okapi.p at gmail.com] On Behalf Of Jean-Fran?ois Gigand Sent: Monday, January 31, 2011 1:49 PM To: Bistrais, Bob Cc: mapserver-users Subject: Re: [mapserver-users] Change mouse icon from default You will find answers searching the web about this pure html/css question. If not, a posting on a forum on the topic along with a code example will bring you the answer. This has just nothing to do with MapServer, sorry. Jeff 2011/1/31 Bistrais, Bob : > I tried that in the CSS and also inline, and cleared the cache, still seeing the pointing finger. > > -----Original Message----- > From: okapi.p at gmail.com [mailto:okapi.p at gmail.com] On Behalf Of Jean-Fran?ois Gigand > Sent: Monday, January 31, 2011 12:54 PM > To: Bistrais, Bob > Cc: mapserver-users > Subject: Re: [mapserver-users] Change mouse icon from default > > Try forcing it : > a { cursor: pointer !important; } > > Jeff > > 2011/1/31 Bistrais, Bob : >> That makes sense, and I've been looking at the references.? The problem I >> still have in particular, is that when the mouse is over the map image >> (which is an image with a URL), the cursor changes to the pointing finger. >> I've reset the styles for my anchor tags (cursor:pointer), but am still >> seeing the pointing finger. >> >> >> >> ________________________________ >> >> From: Moen, Paul T. [mailto:pmoen at nd.gov] >> Sent: Monday, January 31, 2011 11:08 AM >> To: mapserver-users >> Subject: Re: [mapserver-users] Change mouse icon from default >> >> >> >> This is part of html and css rather than mapserver. >> >> >> >> If you have control over the map image, you cat set the cursor a specific >> type. >> >> >> >> See?http://www.w3schools.com/CSS/pr_class_cursor.asp?for ?a list of cursors >> and how to do it. >> >> >> >> From: "Bistrais, Bob" >> Date: Fri, 28 Jan 2011 15:59:06 -0600 >> To: mapserver-users >> Subject: [mapserver-users] Change mouse icon from default >> >> >> >> Hi everyone.? This should be an easy one, but I waswondering how I could >> change the mouse pointer in a MapServer/PHP Mapscriptapp? ?The map image >> resides in an HTML frame. As it is now, the mouse pointer is a hand pointing >> the index finger.? I'd like to change it back to the standard arrow >> pointer.? Is there an easy way to do this? >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > From max1000 at gmail.com Mon Jan 31 16:50:37 2011 From: max1000 at gmail.com (rai 8) Date: Tue, 1 Feb 2011 01:50:37 +0100 Subject: [mapserver-users] mapscript with MAX_SIZE shows "WMS server error. Image size out of range"? is a warning? Message-ID: Hi!, I hae been develop with java mapscript, sometimes mapscript.so shows this error, but the image are ok : Content-type: application/vnd.ogc.se_xml > http://schemas.opengis.net/wms/1.1.0/exception_1_1_0.dtd"> msWMSLoadGetMapParams(): WMS server error. Image size out of range, WIDTH > and HEIGHT must be between 1 and 2048 pixels. I set the MAX_SIZE property in map_file and in the code with "mo.setMaxsize(10000);" and still show the error, it's a warning? there are some way hide? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregcorradini at gmail.com Mon Jan 31 20:16:48 2011 From: gregcorradini at gmail.com (gregcorradini) Date: Mon, 31 Jan 2011 20:16:48 -0800 (PST) Subject: [mapserver-users] [SOLVED] make cannot find -libodbc and -libodbcinst on compilation In-Reply-To: <1296370266841-5974041.post@n2.nabble.com> References: <1296050685541-5962776.post@n2.nabble.com> <201101261511.13565.yves.jacolin@camptocamp.com> <1296052309202-5962843.post@n2.nabble.com> <1296099803395-5965117.post@n2.nabble.com> <1296357092351-5973850.post@n2.nabble.com> <1296370266841-5974041.post@n2.nabble.com> Message-ID: <1296533808708-5979801.post@n2.nabble.com> My last post described what I thought was a solution to the mapserver build problem -- well, that was just poppycock. Learning can be so so humbling :<( The mysterious Jeff gave me some advice that really helped me nix the problem though. In his own words and [my additions]: mystery_jeff wrote: > > If you are linking dynamically against libgdal, you use [the libraries > that are listed in the output of the command] "gdal-config > --libs" and you don't need to take care what libraries gdal uses (which > is what [the command] "gdal-config --dep-libs" shows). > The source of the problem seemed to be that when you run the configure (below) it creates a make file that references gdal-config --dep-libs as well as the gdal-config --libs. Then when you run make it throws up and says it can't find the --dep-libs (two posts ago show these outputs). $ ./configure --with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config --with-postgis=/usr/bin/pg_config > twinkie_config_log.txt ---Makefile--- # Optional GDAL Support (provides read access to a variety of raster formats) # See http://www.remotesensing.org/gdal/ GDAL= -DUSE_GDAL GDAL_LIB= -L/usr/local/lib -lgdal -L/usr/local/lib -lgeos_c -lsqlite3 -lodbc -lodbcinst -lxerces-c -lpthread -ljasper -lhdf5 -lmfhdfalt -ldfalt -lgif -ljpeg -lpng -lnetcdf -L/usr/lib -lpq -lz -lpthread -lm -lrt -ldl -lcurl -Wl,-Bsymbolic-functions GDAL_INC= -I/usr/local/include So i removed the libs that were part of the --dep-libs from the makefile: ---Edited Makefile--- # Optional GDAL Support (provides read access to a variety of raster formats) # See http://www.remotesensing.org/gdal/ GDAL= -DUSE_GDAL GDAL_LIB= -L/usr/local/lib -lgdal GDAL_INC= -I/usr/local/include I was also getting similar make errors about unfound libraries like "libpam" and "libxslt" with "pg_config". Although "pg_config" doesn't list any libraries as dependencies, I took a bet that if I just left -lpq in and removed the others it would compile. So i went from: ---Makefile--- # Optional PostGIS Support. See http://postgis.refractions.net/ POSTGIS= -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION POSTGIS_LIB= -L/usr/lib -lpq -lpgport -lxslt -lxml2 -lpam -lssl -lcrypto -lkrb5 -lcom_err -lgssapi_krb5 -lz -lreadline -lcrypt -ldl -lm POSTGIS_INC= -I/usr/include/postgresql To: ---Edited Makefile--- # Optional PostGIS Support. See http://postgis.refractions.net/ POSTGIS= -DUSE_POSTGIS -DPOSTGIS_HAS_SERVER_VERSION POSTGIS_LIB= -L/usr/lib -lpq POSTGIS_INC= -I/usr/include/postgresql Make worked! I thought that maybe my postgis wouldn't work with mapserver correctly because of the above makefile edits. So i tested it, naturally,...and produced a pretty picture of Oregon and Washington national parks and national forests ;) I'm happy, still confused (why hasn't anyone else experienced this?) http://osgeo-org.1803224.n2.nabble.com/file/n5979801/test12965315518188.gif -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/make-cannot-find-libodbc-and-libodbcinst-on-compilation-tp5962776p5979801.html Sent from the Mapserver - User mailing list archive at Nabble.com.