From sebastian.ovide at gmail.com Tue Nov 2 10:40:22 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Tue, 2 Nov 2010 17:40:22 +0000 Subject: [mapserver-users] conf of MapServ+Apache.Lighttpd for better usability Message-ID: Hi Guys, I am using MapServer as a FastCgi (with lighttpd and Apache) connected to Oracle, PG, ESRI shapes, ESRI binary grids and MapInfo TAB files. There is a situation that makes the use of MapServer not very user friendly: An user A opens a map, activates a slow layer and drags the map around. This would add a lot of calls to the webserver that would launch many MapServer processes reaching the maximum number of processes. At the same time, there is another user B displaying another layer... this time a fast layer.... As the maximum number of processes has been reached, the webserver cannot create new processes until those alive finish their work, it cannot serve the other user... that is very annoying as The other user would have to wait a long time until the queue is processed and his map is displayed. Another similar situation is when the user A get annoyed as the map is not displaying and therefore decides to turn off the layer and turn on a different layer... say a fast layer... he still need to wait that all the MapServer processes finish the processing... That annoys the users that doesn't understand what is going on... and thinks that the server has crashed... Is there anyway to configure Apache/Lighttpd to give higher priority to the new calls ? (that means to conver the queue from FIFO to LIFO....) I have configured Apache FastCgi to kill the old processes once a minute... but the process wont die... actually they would not die with a simple kill... they would die with only kill -9 !!! Any other solutions ? Thanks -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Hildebrand at afsc.ca Tue Nov 2 11:16:56 2010 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Tue, 2 Nov 2010 12:16:56 -0600 Subject: [mapserver-users] mapfile Message-ID: <9188AB5935664040805E01E348A2B81D1BF68FC5@lacex1.afsc.ads> I have installed ms4w on XP and am trying to display a simple map with the following map file. MAP IMAGETYPE png SIZE 600 400 EXTENT -120 49 -110 60 UNITS dd SHAPEPATH "R:/GIS/" LAYER NAME "Elevation" TYPE raster DATA "srtm/elevation.tif" END END I am testing mapserv from the command line with the following command mapserv -nh "QUERY_STRING=map=R:/Program_Dev/DHildebrand/geoprocessing_server/MapServer/sample.map&mode=map" The following output is returned, which, I presume, is a PNG stream but there are no errors generated. ?PNG ? IHDR ?X ???? ????M ?PLTE ???? 5IDATx???? ???S_? U? |?y? ????? IEND?B`? When but when I redirect the output to a *.png file, though, I simply get a blank white image. Any clues? 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 David.Fawcett at state.mn.us Tue Nov 2 11:17:55 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Tue, 2 Nov 2010 13:17:55 -0500 Subject: [mapserver-users] RE: mapfile In-Reply-To: <9188AB5935664040805E01E348A2B81D1BF68FC5@lacex1.afsc.ads> References: <9188AB5935664040805E01E348A2B81D1BF68FC5@lacex1.afsc.ads> Message-ID: David, Either add STATUS DEFAULT to your layer or add &layer=Elevation to your URL string. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of David Hildebrand Sent: Tuesday, November 02, 2010 1:17 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] mapfile I have installed ms4w on XP and am trying to display a simple map with the following map file. MAP IMAGETYPE png SIZE 600 400 EXTENT -120 49 -110 60 UNITS dd SHAPEPATH "R:/GIS/" LAYER NAME "Elevation" TYPE raster DATA "srtm/elevation.tif" END END I am testing mapserv from the command line with the following command mapserv -nh "QUERY_STRING=map=R:/Program_Dev/DHildebrand/geoprocessing_server/MapServer/sample.map&mode=map" The following output is returned, which, I presume, is a PNG stream but there are no errors generated. ?PNG ? IHDR ?X ???? ????M ?PLTE ???? 5IDATx???? ???S_? U? |?y? ????? IEND?B`? When but when I redirect the output to a *.png file, though, I simply get a blank white image. Any clues? 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 David.Hildebrand at afsc.ca Tue Nov 2 12:11:03 2010 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Tue, 2 Nov 2010 13:11:03 -0600 Subject: [mapserver-users] ms4w installation References: <9188AB5935664040805E01E348A2B81D1BF68FC5@lacex1.afsc.ads> Message-ID: <9188AB5935664040805E01E348A2B81D1BF68FC6@lacex1.afsc.ads> I have a problem with IMSEmu. When I test after installation of ms4w I get the following XML string XMLParser: Fatal parsing error: 'Undefined variable: post' I also have a couple of general questions. Firstly, why would I want to run IMSEmu over a WMS service when ArcGIS will consume either one? Secondly, what is the relationship between Chameleon and CWC2? Does Chameleon require CWC2? =========================== David V. Hildebrand Agriculture Financial Services Corporation (403) 782-8239 www.afsc.ca > This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Hildebrand at afsc.ca Tue Nov 2 12:50:15 2010 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Tue, 2 Nov 2010 13:50:15 -0600 Subject: [mapserver-users] paths in the mapfile References: <9188AB5935664040805E01E348A2B81D1BF68FC5@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF68FC6@lacex1.afsc.ads> Message-ID: <9188AB5935664040805E01E348A2B81D1BF68FC7@lacex1.afsc.ads> I have a map file which produces valid output from the command line but not as a URL. The map file is located in the htdocs directory but the data source paths in the map file reference a different drive altogether. I don't want to make that drive accessible to the world but I want the web server to be able to find it. What parameter would I change in the Apache configuration file to accomplish that? 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 nikos at maich.gr Tue Nov 2 13:00:37 2010 From: nikos at maich.gr (nikos at maich.gr) Date: Tue, 2 Nov 2010 22:00:37 +0200 (EET) Subject: [mapserver-users] conf of MapServ+Apache.Lighttpd for better usability Message-ID: <10079.94.71.68.121.1288728037.squirrel@94.71.68.121> Hi, Just a thought here, but have you considered using a threaded server? e.g. aolserver? Are you able to run "in-process"? Also, IIRC, thgere's a switch in the mapfile to keep the postgres, maybe the oracle connection open to save the connection overhead... PROCESSING "CLOSE_CONNECTION=DEFER" regards, nikos From jlacroix at mapgears.com Tue Nov 2 14:01:12 2010 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Tue, 02 Nov 2010 17:01:12 -0400 Subject: [mapserver-users] paths in the mapfile In-Reply-To: <9188AB5935664040805E01E348A2B81D1BF68FC7@lacex1.afsc.ads> References: <9188AB5935664040805E01E348A2B81D1BF68FC5@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF68FC6@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF68FC7@lacex1.afsc.ads> Message-ID: <4CD07C18.9000105@mapgears.com> Hi, I think the only thing to configure is to make sure the Apache user has read access to your data file. Note that they don't need to be accessible from the web, only readable by the Apache user. Also note that it is not recommended to put your mapfile in a web-accessible folder. It should not be web visible, but again readable by the Apache user. Julien On 10-11-02 03:50 PM, David Hildebrand wrote: > I have a map file which produces valid output from the command line but > not as a URL. The map file is located in the htdocs directory but the > data source paths in the map file reference a different drive > altogether. I don?t want to make that drive accessible to the world but > I want the web server to be able to find it. What parameter would I > change in the Apache configuration file to accomplish that? > > Thanks. > > =========================== > David V. Hildebrand > Agriculture Financial Services Corporation > (403) 782-8239 > > www.afsc.ca _ <_http://www.afsc.ca > _> > _This communication is intended for the use of the recipient to which it > is addressed, and may contain confidential, personal and/or privileged > information. Please contact Agriculture Financial Services Corporation > immediately if you are not the intended recipient of this communication, > and do not copy, distribute, or take action relying on it. Any > communication received in error, or subsequent reply, should be deleted > or destroyed. Please consider the environment before printing this email. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From szekerest at gmail.com Tue Nov 2 15:25:26 2010 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 2 Nov 2010 23:25:26 +0100 Subject: [mapserver-users] OpenGL support, how do we stand with this? Message-ID: Hi All, I just wanted to know what's the current state of the OpenGL support with mapserver? I can see the related files in trunk and branch-5-6 but the renderer doesn't even compile on Windows. Will it ever be implemented by someone in the future or it should be backed out? Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From jw at hbt.de Wed Nov 3 00:26:25 2010 From: jw at hbt.de (Julian Wiersbitzki) Date: Wed, 3 Nov 2010 08:26:25 +0100 Subject: [mapserver-users] Tool for configure mapfile Message-ID: <21A18B8C89289B4FB93CB02ED54D9D1201CA5840@msg01.corp.hbt.de> Hi! Is there a good tool (besides Emacs, vi, etc.pp.) for configuring a mapfile? Our mapfile gets bigger and bigger and it's getting very "unhandlich". ;-) Perhaps there is already a faq for this? TIA, Julian ______________________________________________________________ Hamburger Berater Team GmbH Handelsregister: HRB 31629 Stadthausbr?cke 3 (Fleethof) Amtsgericht Hamburg 20355 Hamburg Gesch?ftsf?hrer: Fon: 040/369779-43 Ilse Habermann Fax: 040/369779-99 Hans-Joachim Habermann Mail: mailto:jw at hbt.de Daniel Hoffmann ______________________________________________________________ Internet: http://www.hbt.de http://www.geofox.de http://www.geonetwatch.de ______________________________________________________________ DIN EN ISO 9001:2000: DQS-Zertifikat Nr.5206 QM Diese Email wurde mit st?ndig aktualisierten Virenscannern gepr?ft ______________________________________________________________ Diese Email einschlie?lich eventuell angeh?ngter Dateien enth?lt vertrauliche Informationen und ist ausschlie?lich f?r den bezeichneten Adressaten bestimmt. Wenn Sie nicht der richtige Adressat oder dessen Vertreter sind, verst?ndigen Sie bitte sofort den Absender und l?schen Sie dann diese Email und eventuell angeh?ngte Dateien. Vielen Dank! Beachten Sie: Jede Form der Nutzung, Vervielf?ltigung oder Weitergabe des Inhalts fehlgeleiteter Emails ist unzul?ssig. ______________________________________________________________ This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. ______________________________________________________________ From thomas.bonfort at gmail.com Wed Nov 3 00:53:59 2010 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 3 Nov 2010 08:53:59 +0100 Subject: [mapserver-users] OpenGL support, how do we stand with this? In-Reply-To: References: Message-ID: Tamas, the openGL support is clearly on hold for now. I'd be interested in pursuing the development, but this is rather low priority for me right now. In the mean time, I suggest we remove the --with-opengl configure option so as not to create confusion. regards, thomas On Tue, Nov 2, 2010 at 23:25, Tamas Szekeres wrote: > Hi All, > > I just wanted to know what's the current state of the OpenGL support with > mapserver? I can see the related files in trunk and branch-5-6 but the > renderer doesn't even compile on Windows. > Will it ever be implemented by someone in the future or it should be backed > out? > > Best regards, > > Tamas > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From frodewj at gmail.com Wed Nov 3 00:58:17 2010 From: frodewj at gmail.com (=?ISO-8859-1?Q?Frode_Wiseth_J=F8rgensen?=) Date: Wed, 3 Nov 2010 08:58:17 +0100 Subject: [mapserver-users] Tool for configure mapfile In-Reply-To: <21A18B8C89289B4FB93CB02ED54D9D1201CA5840@msg01.corp.hbt.de> References: <21A18B8C89289B4FB93CB02ED54D9D1201CA5840@msg01.corp.hbt.de> Message-ID: I use Textpad for editing mapfiles. It has some syntax highlighting. INCLUDE's could be used to avoid very big files but debugging could be a bit harder. Frode 3. nov.. 2010 08.26 "Julian Wiersbitzki" : Hi! Is there a good tool (besides Emacs, vi, etc.pp.) for configuring a mapfile? Our mapfile gets bigger and bigger and it's getting very "unhandlich". ;-) Perhaps there is already a faq for this? TIA, Julian ______________________________________________________________ Hamburger Berater Team GmbH Handelsregister: HRB 31629 Stadthausbr?cke 3 (Fleethof) Amtsgericht Hamburg 20355 Hamburg Gesch?ftsf?hrer: Fon: 040/369779-43 Ilse Habermann Fax: 040/369779-99 Hans-Joachim Habermann Mail: mailto:jw at hbt.de Daniel Hoffmann ______________________________________________________________ Internet: http://www.hbt.de http://www.geofox.de http://www.geonetwatch.de ______________________________________________________________ DIN EN ISO 9001:2000: DQS-Zertifikat Nr.5206 QM Diese Email wurde mit st?ndig aktualisierten Virenscannern gepr?ft ______________________________________________________________ Diese Email einschlie?lich eventuell angeh?ngter Dateien enth?lt vertrauliche Informationen und ist ausschlie?lich f?r den bezeichneten Adressaten bestimmt. Wenn Sie nicht der richtige Adressat oder dessen Vertreter sind, verst?ndigen Sie bitte sofort den Absender und l?schen Sie dann diese Email und eventuell angeh?ngte Dateien. Vielen Dank! Beachten Sie: Jede Form der Nutzung, Vervielf?ltigung oder Weitergabe des Inhalts fehlgeleiteter Emails ist unzul?ssig. ______________________________________________________________ This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. ______________________________________________________________ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From pelin.01 at gmail.com Wed Nov 3 03:41:07 2010 From: pelin.01 at gmail.com (pelin) Date: Wed, 3 Nov 2010 07:41:07 -0300 Subject: [mapserver-users] Tool for configure mapfile In-Reply-To: <21A18B8C89289B4FB93CB02ED54D9D1201CA5840@msg01.corp.hbt.de> References: <21A18B8C89289B4FB93CB02ED54D9D1201CA5840@msg01.corp.hbt.de> Message-ID: hi, you can use vim, it has syntax highlighting http://mapserver.org/development/editing/vim.html Saludos! 2010/11/3 Julian Wiersbitzki > Hi! > > Is there a good tool (besides Emacs, vi, etc.pp.) for configuring a > mapfile? Our mapfile gets bigger and bigger and it's getting very > "unhandlich". ;-) Perhaps there is already a faq for this? > > TIA, Julian > > ______________________________________________________________ > > Hamburger Berater Team GmbH Handelsregister: HRB 31629 > Stadthausbr?cke 3 (Fleethof) Amtsgericht Hamburg > 20355 Hamburg Gesch?ftsf?hrer: > Fon: 040/369779-43 Ilse Habermann > Fax: 040/369779-99 Hans-Joachim Habermann > Mail: mailto:jw at hbt.de Daniel Hoffmann > ______________________________________________________________ > > Internet: http://www.hbt.de > http://www.geofox.de http://www.geonetwatch.de > ______________________________________________________________ > > DIN EN ISO 9001:2000: DQS-Zertifikat Nr.5206 QM > Diese Email wurde mit st?ndig aktualisierten Virenscannern gepr?ft > ______________________________________________________________ > > Diese Email einschlie?lich eventuell angeh?ngter Dateien > enth?lt vertrauliche Informationen und ist ausschlie?lich > f?r den bezeichneten Adressaten bestimmt. Wenn Sie nicht > der richtige Adressat oder dessen Vertreter sind, verst?ndigen > Sie bitte sofort den Absender und l?schen Sie dann diese Email > und eventuell angeh?ngte Dateien. Vielen Dank! > Beachten Sie: Jede Form der Nutzung, Vervielf?ltigung oder > Weitergabe des Inhalts fehlgeleiteter Emails ist unzul?ssig. > ______________________________________________________________ > > This e-mail is intended only for the above addressee. > It may contain privileged information. If you are not the > addressee you must not copy, distribute, disclose or use any > of the information in it. If you have received it in error > please delete it and immediately notify the sender. > ______________________________________________________________ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- -------------------------------------------------------- http://blogs.hydras.com.ar/srodriguez/ -------------------------------------------------------- Atentamente Rolando Sergio Rodriguez -------------- next part -------------- An HTML attachment was scrubbed... URL: From wimvanbelle at gmail.com Wed Nov 3 04:07:15 2010 From: wimvanbelle at gmail.com (Wim Vanbelle) Date: Wed, 3 Nov 2010 12:07:15 +0100 Subject: [mapserver-users] conf of MapServ+Apache.Lighttpd for better usability In-Reply-To: References: Message-ID: This would be a good thing. That way, if you would zoom in to a location very quickly, you would also not have to wait for mapserver to render the outer zooms first (where you clicked through quite fast), but you would get your data first and the data you don't need anymore later. But i suppose this is not easy to realize. On 2 November 2010 18:40, Sebastian E. Ovide wrote: > Hi Guys, > > I am using MapServer as a FastCgi (with lighttpd and Apache) connected to > Oracle, PG, ESRI shapes, ESRI binary grids and MapInfo TAB files. > > There is a situation that makes the use of MapServer not very user > friendly: > > An user A opens a map, activates a slow layer and drags the map around. > This would add a lot of calls to the webserver that would launch many > MapServer processes reaching the maximum number of processes. At the same > time, there is another user B displaying another layer... this time a fast > layer.... As the maximum number of processes has been reached, the webserver > cannot create new processes until those alive finish their work, it cannot > serve the other user... that is very annoying as The other user would have > to wait a long time until the queue is processed and his map is displayed. > > Another similar situation is when the user A get annoyed as the map is not > displaying and therefore decides to turn off the layer and turn on a > different layer... say a fast layer... he still need to wait that all the > MapServer processes finish the processing... That annoys the users that > doesn't understand what is going on... and thinks that the server has > crashed... > > Is there anyway to configure Apache/Lighttpd to give higher priority to the > new calls ? (that means to conver the queue from FIFO to LIFO....) > > I have configured Apache FastCgi to kill the old processes once a minute... > but the process wont die... actually they would not die with a simple > kill... they would die with only kill -9 !!! > > Any other solutions ? > > Thanks > -- > Sebastian E. Ovide > > > > > > _______________________________________________ > 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.b at gritechnologies.com Wed Nov 3 06:00:55 2010 From: bob.b at gritechnologies.com (Bob Basques) Date: Wed, 03 Nov 2010 08:00:55 -0500 Subject: [mapserver-users] Tool for configure mapfile In-Reply-To: <21A18B8C89289B4FB93CB02ED54D9D1201CA5840@msg01.corp.hbt.de> References: <21A18B8C89289B4FB93CB02ED54D9D1201CA5840@msg01.corp.hbt.de> Message-ID: <4CD15D07.3030604@gritechnologies.com> All, One of the design features of GeoMoose was to allow for abstracting out each layer to it's own MapFile. Each layer has it's own Mapfile. This was done primarily to allow owners of data to stylize their respective datasets on their own with out affecting each other work. A side benefit has been that the MapFiles are all separate. Also, in separating the mapfiles out, it has allowed for some fairly large single layer mapfiles with some fairly comprehensive cartography (Long mapfiles of their own) It's something to thing about anyway. bobb On 11/3/2010 2:26 AM, Julian Wiersbitzki wrote: > Hi! > > Is there a good tool (besides Emacs, vi, etc.pp.) for configuring a mapfile? Our mapfile gets bigger and bigger and it's getting very "unhandlich". ;-) Perhaps there is already a faq for this? > > TIA, Julian > > ______________________________________________________________ > > Hamburger Berater Team GmbH Handelsregister: HRB 31629 > Stadthausbr?cke 3 (Fleethof) Amtsgericht Hamburg > 20355 Hamburg Gesch?ftsf?hrer: > Fon: 040/369779-43 Ilse Habermann > Fax: 040/369779-99 Hans-Joachim Habermann > Mail: mailto:jw at hbt.de Daniel Hoffmann > ______________________________________________________________ > > Internet: http://www.hbt.de > http://www.geofox.de http://www.geonetwatch.de > ______________________________________________________________ > > DIN EN ISO 9001:2000: DQS-Zertifikat Nr.5206 QM > Diese Email wurde mit st?ndig aktualisierten Virenscannern gepr?ft > ______________________________________________________________ > > Diese Email einschlie?lich eventuell angeh?ngter Dateien > enth?lt vertrauliche Informationen und ist ausschlie?lich > f?r den bezeichneten Adressaten bestimmt. Wenn Sie nicht > der richtige Adressat oder dessen Vertreter sind, verst?ndigen > Sie bitte sofort den Absender und l?schen Sie dann diese Email > und eventuell angeh?ngte Dateien. Vielen Dank! > Beachten Sie: Jede Form der Nutzung, Vervielf?ltigung oder > Weitergabe des Inhalts fehlgeleiteter Emails ist unzul?ssig. > ______________________________________________________________ > > This e-mail is intended only for the above addressee. > It may contain privileged information. If you are not the > addressee you must not copy, distribute, disclose or use any > of the information in it. If you have received it in error > please delete it and immediately notify the sender. > ______________________________________________________________ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From aeskreis at gmail.com Wed Nov 3 06:23:04 2010 From: aeskreis at gmail.com (Adam Eskreis) Date: Wed, 3 Nov 2010 09:23:04 -0400 Subject: [mapserver-users] Amazon EC2 vs. Collocation/Dedicated servers Message-ID: Hey All, I just wanted to get an idea of what the general consessus is about what the best platform for running mapserver in a live environment for many users (in the tens of thousands). My company is trying to decide the best way to spend money on servers is for our mapserver application. We have just 2 layers in our map, but one of them is heavily data intensive and is too dynamic to be cached (to put it simply, it is a dynamic layer that uses a different png symbols for each feature), the other is a cached baselayer. The biggest concern is, what type of environment will allow us to quickly serve up not only cached tiles, but dynamic tiles as well, while still being able to handle tens of thousands of users. The two choices we are deciding between are Amazon EC2, or purchased servers in a collocation facility. I have put together a list of pros and cons of each, but I still wanted to get the opinion of the mapserver pros out there. So, if anyone has any thoughts, please write back. Thanks, -Adam P.S. We are also looking for a developer who knows the mapserver code like the back of their hand who may be able to modify mapserver to be optimized for our project. Any mapserver developer that is interested in a part-time contracted position, please reply to aeskreis at gmail.com with your resume as well as your hourly rate. -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Wed Nov 3 06:26:44 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Wed, 3 Nov 2010 08:26:44 -0500 Subject: [mapserver-users] RE: Tool for configure mapfile In-Reply-To: <21A18B8C89289B4FB93CB02ED54D9D1201CA5840@msg01.corp.hbt.de> References: <21A18B8C89289B4FB93CB02ED54D9D1201CA5840@msg01.corp.hbt.de> Message-ID: One approach is to create files for each layer or chunk of code and then use includes to pull them into a master map file. http://mapserver.org/mapfile/Include.html David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Julian Wiersbitzki Sent: Wednesday, November 03, 2010 2:26 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Tool for configure mapfile Hi! Is there a good tool (besides Emacs, vi, etc.pp.) for configuring a mapfile? Our mapfile gets bigger and bigger and it's getting very "unhandlich". ;-) Perhaps there is already a faq for this? TIA, Julian ______________________________________________________________ Hamburger Berater Team GmbH Handelsregister: HRB 31629 Stadthausbr?cke 3 (Fleethof) Amtsgericht Hamburg 20355 Hamburg Gesch?ftsf?hrer: Fon: 040/369779-43 Ilse Habermann Fax: 040/369779-99 Hans-Joachim Habermann Mail: mailto:jw at hbt.de Daniel Hoffmann ______________________________________________________________ Internet: http://www.hbt.de http://www.geofox.de http://www.geonetwatch.de ______________________________________________________________ DIN EN ISO 9001:2000: DQS-Zertifikat Nr.5206 QM Diese Email wurde mit st?ndig aktualisierten Virenscannern gepr?ft ______________________________________________________________ Diese Email einschlie?lich eventuell angeh?ngter Dateien enth?lt vertrauliche Informationen und ist ausschlie?lich f?r den bezeichneten Adressaten bestimmt. Wenn Sie nicht der richtige Adressat oder dessen Vertreter sind, verst?ndigen Sie bitte sofort den Absender und l?schen Sie dann diese Email und eventuell angeh?ngte Dateien. Vielen Dank! Beachten Sie: Jede Form der Nutzung, Vervielf?ltigung oder Weitergabe des Inhalts fehlgeleiteter Emails ist unzul?ssig. ______________________________________________________________ This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. ______________________________________________________________ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From pspencer at dmsolutions.ca Wed Nov 3 06:57:20 2010 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Wed, 3 Nov 2010 09:57:20 -0400 Subject: [mapserver-users] Amazon EC2 vs. Collocation/Dedicated servers In-Reply-To: References: Message-ID: Hi Adam, we use mapserver on Amazon EC2 instances with some success. The instances themselves seem decently spec'd for mapserver usage, although we have found that the medium high-cpu instances do seem to be more cost effective than normal instances. The biggest detractor with the cloud is storage. Basically you get a limited amount of ephemeral storage (it disappears when the machine is terminated) with each instance. You can attach EBS volumes of up to 1 TB. The I/O on local and EBS storage is not great but its okay. The problems start when you want to use multiple machines sharing some form of storage. For us, we have several TB of tiles cached and we want to be able to serve up tiles and dynamic map draws. The tile cache is also not complete so it needs to generate tiles on demand. Finally, we have a lot of data that is used in the maps, more than will fit on the ephemeral storage of a medium instance. We used to use several 1TB EBS volumes mounted on a single instance, shared via NFS to all the map servers but we ran into periodic locking problems that brought the whole thing down. We recently switched to use glusterfs which is an excellent open source product and allows us to essentially have a SAN where all our data can appear seamlessly to all our machines as a single volume even though it spans several EBS volumes. The problem with this is that map draws accessing data via gluster are several times slower than using locally stored data. Longer individual map draws were not acceptable so now we are working on co-locating the data with the map servers and using the shared storage for tiles and a master copy of the data. One of the advantages of EC2 is that you can bring up extra computing power on demand (either manually or programmatically). Unfortunately, having to copy the data locally to the machines negates this advantage as it takes several hours to copy and extract the data - not exactly real-time response to changing load on the system :( Of course, its also hard to be responsive if you have colocated hardware. Overall, despite the problems with I/O bandwidth and managing our large datasets I think EC2 has done well for us and we could not have provided the same from dedicated hardware within the same budget. Cheers Paul On 2010-11-03, at 9:23 AM, Adam Eskreis wrote: > Hey All, > > I just wanted to get an idea of what the general consessus is about what the best platform for running mapserver in a live environment for many users (in the tens of thousands). My company is trying to decide the best way to spend money on servers is for our mapserver application. We have just 2 layers in our map, but one of them is heavily data intensive and is too dynamic to be cached (to put it simply, it is a dynamic layer that uses a different png symbols for each feature), the other is a cached baselayer. The biggest concern is, what type of environment will allow us to quickly serve up not only cached tiles, but dynamic tiles as well, while still being able to handle tens of thousands of users. The two choices we are deciding between are Amazon EC2, or purchased servers in a collocation facility. I have put together a list of pros and cons of each, but I still wanted to get the opinion of the mapserver pros out there. So, if anyone has any thoughts, please write back. > > Thanks, > -Adam > > P.S. We are also looking for a developer who knows the mapserver code like the back of their hand who may be able to modify mapserver to be optimized for our project. Any mapserver developer that is interested in a part-time contracted position, please reply to aeskreis at gmail.com with your resume as well as your hourly rate. > _______________________________________________ > 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 leene_85 at yahoo.de Wed Nov 3 07:44:30 2010 From: leene_85 at yahoo.de (leene) Date: Wed, 3 Nov 2010 14:44:30 +0000 (GMT) Subject: [mapserver-users] Filter elements on multiple layers Message-ID: <550816.69629.qm@web29718.mail.ird.yahoo.com> Hey, I have a problem with filtering elements of multiple layers. My mapserver (version 5.2.1) is configured with two layers - layer1 and layer2. For better understanding see attachment: layer1 has black crosses and layer2 has red points. Now I try to get features by id - but I don't know the corresponding layer. Therefore I send the following request: http://my-server/fcgi-bin/mapserv?map=mymap.map&service=WFS&version=1.1.0&request=GetFeature&typename=layer1,layer2&filter= IDidAofLayer1 IDidBofLayer1 IDidCofLayer2 In the response are some features missing but they exist in the shapefile. I found out following rules: 1. All features of layer2 (red points in attachment) are returned correctly. 2. Features of layer1 (black crosses) which are inside the blue frame are also returned correctly. 3. Features of layer1 which are outside the blue frame (bounds of layer2) are missing - if I filter the missing elements only on layer1 I get the features. Is this a bug or where is my mistake? Regards, Cathleen By the way: Is there a date of mapserver 6 release? http://trac.osgeo.org/mapserver/wiki/60ReleasePlan doesn't seem to be up to date. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: example.JPG Type: image/jpeg Size: 7529 bytes Desc: not available URL: From dmorissette at mapgears.com Wed Nov 3 08:01:32 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 03 Nov 2010 11:01:32 -0400 Subject: [mapserver-users] Filter elements on multiple layers In-Reply-To: <550816.69629.qm@web29718.mail.ird.yahoo.com> References: <550816.69629.qm@web29718.mail.ird.yahoo.com> Message-ID: <4CD1794C.5090306@mapgears.com> leene wrote: > > By the way: Is there a date of mapserver 6 release? > http://trac.osgeo.org/mapserver/wiki/60ReleasePlan doesn't seem to be up > to date. > At the FOSS4G Code Sprint in September [1] we talked about aiming for a feature freeze around Nov 15th and a final release around end of January. However, some development is still taking place at the moment so these dates are likely going to slip a bit. [1] http://lists.osgeo.org/pipermail/mapserver-dev/2010-September/010236.html -- Daniel Morissette http://www.mapgears.com/ From sf at pegase-systems.com Wed Nov 3 08:36:50 2010 From: sf at pegase-systems.com (SF) Date: Wed, 3 Nov 2010 08:36:50 -0700 (PDT) Subject: [mapserver-users] Filter duplicate elements Message-ID: <1288798610776-5701822.post@n2.nabble.com> Hi, I try to render simplified S57 files using MapServer with flash output. But there are maps at various scales for the same area, which overlap. It is not a problem for land or sea area, but I want to filter features to avoid duplicates entries. In the S57 files, there is a worldwide identifier for each feature. I wonder if it would be possible to use this ID to filter duplicates, or if you must use mapscript or home made algorithm to do this. Thank you in advance. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Filter-duplicate-elements-tp5701822p5701822.html Sent from the Mapserver - User mailing list archive at Nabble.com. From greenkov at gmail.com Wed Nov 3 10:37:15 2010 From: greenkov at gmail.com (Alexander Petkov) Date: Wed, 3 Nov 2010 11:37:15 -0600 Subject: [mapserver-users] Filter elements on multiple layers In-Reply-To: <550816.69629.qm@web29718.mail.ird.yahoo.com> References: <550816.69629.qm@web29718.mail.ird.yahoo.com> Message-ID: You might have to specify your filter for each typename, as in: http://my-server/fcgi-bin/mapserv&map=mymap.map&service=WFS&version=1.1.0&request=GetFeature&typename=layer1,layer2&FILTER=(...)(...) See this thread: http://www.mail-archive.com/mapserver-users at lists.osgeo.org/msg10695.html Alex On Wed, Nov 3, 2010 at 8:44 AM, leene wrote: > Hey, > I have a problem with filtering elements of multiple layers. > My mapserver (version 5.2.1) is configured with two layers - layer1 and > layer2. For better understanding see attachment: layer1 has black crosses > and layer2 has red points. Now I try to get features by id - but I don't > know the corresponding layer. Therefore I send the following request: > > http://my-server/fcgi-bin/mapserv?map=mymap.map&service=WFS&version=1.1.0&request=GetFeature&typename=layer1,layer2&filter= > > IDidAofLayer1 > IDidBofLayer1 > IDidCofLayer2 > > > In the response are some features missing but they exist in the shapefile. I > found out following rules: > 1. All features of layer2 (red points in attachment) are returned correctly. > 2. Features of layer1 (black crosses) which are inside the blue frame are > also returned correctly. > 3. Features of layer1 which are outside the blue frame (bounds of layer2) > are missing - if I filter the missing elements only on layer1 I get the > features. > > Is this a bug or where is my mistake? > > Regards, > Cathleen > > By the way: Is there a date of mapserver 6 release? > http://trac.osgeo.org/mapserver/wiki/60ReleasePlan doesn't seem to be up to > date. > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From greenkov at gmail.com Wed Nov 3 12:30:39 2010 From: greenkov at gmail.com (Alexander Petkov) Date: Wed, 3 Nov 2010 13:30:39 -0600 Subject: [mapserver-users] Filter elements on multiple layers In-Reply-To: References: <550816.69629.qm@web29718.mail.ird.yahoo.com> Message-ID: Hmm, I just tested this--it seems that you'd always get features where the envelopes for the results from each layer spatially intersect, (i.e. anything within the blue rectangle of your image). Alex On Wed, Nov 3, 2010 at 11:37 AM, Alexander Petkov wrote: > You might have to specify your filter for each typename, as in: > http://my-server/fcgi-bin/mapserv&map=mymap.map&service=WFS&version=1.1.0&request=GetFeature&typename=layer1,layer2&FILTER=(...)(...) > > > See this thread: > http://www.mail-archive.com/mapserver-users at lists.osgeo.org/msg10695.html > > > Alex > > On Wed, Nov 3, 2010 at 8:44 AM, leene wrote: >> Hey, >> I have a problem with filtering elements of multiple layers. >> My mapserver (version 5.2.1) is configured with two layers - layer1 and >> layer2. For better understanding see attachment: layer1 has black crosses >> and layer2 has red points. Now I try to get features by id - but I don't >> know the corresponding layer. Therefore I send the following request: >> >> http://my-server/fcgi-bin/mapserv?map=mymap.map&service=WFS&version=1.1.0&request=GetFeature&typename=layer1,layer2&filter= >> >> IDidAofLayer1 >> IDidBofLayer1 >> IDidCofLayer2 >> >> >> In the response are some features missing but they exist in the shapefile. I >> found out following rules: >> 1. All features of layer2 (red points in attachment) are returned correctly. >> 2. Features of layer1 (black crosses) which are inside the blue frame are >> also returned correctly. >> 3. Features of layer1 which are outside the blue frame (bounds of layer2) >> are missing - if I filter the missing elements only on layer1 I get the >> features. >> >> Is this a bug or where is my mistake? >> >> Regards, >> Cathleen >> >> By the way: Is there a date of mapserver 6 release? >> http://trac.osgeo.org/mapserver/wiki/60ReleasePlan doesn't seem to be up to >> date. >> >> >> _______________________________________________ >> 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 Nov 3 13:42:45 2010 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Wed, 3 Nov 2010 14:42:45 -0600 Subject: [mapserver-users] map file paths References: <9188AB5935664040805E01E348A2B81D1BF68FC5@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF68FC6@lacex1.afsc.ads> Message-ID: <9188AB5935664040805E01E348A2B81D1BF68FCE@lacex1.afsc.ads> Is there a way of abbreviating pathnames to the map file? For instance, my URL to produce a map is http://localhost/cgi-bin/mapserv.exe?map=//fileserver/PDP/Program_Dev/DH ildebrand/geoprocessing_server/MapServer/sample.map&mode=map In my apache configuration file I have //fileserver/PDP/Program_Dev/DHildebrand/geoprocessing_server/ aliased to /test/ but the alias does not seem to work with CGI. I'm just wondering if there is a workaround so that I don't need to specify the whole file path in my URL. 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 Jukka.Rahkonen at mmmtike.fi Wed Nov 3 14:19:39 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 3 Nov 2010 23:19:39 +0200 Subject: [mapserver-users] map file paths References: <9188AB5935664040805E01E348A2B81D1BF68FC5@lacex1.afsc.ads><9188AB5935664040805E01E348A2B81D1BF68FC6@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF68FCE@lacex1.afsc.ads> Message-ID: Hi, See http://mapserver.org/ogc/wms_server.html#reference-section and there about wrapper shell script. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: David Hildebrand L?hetetty: ke 3.11.2010 22:42 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] map file paths Is there a way of abbreviating pathnames to the map file? For instance, my URL to produce a map is http://localhost/cgi-bin/mapserv.exe?map=//fileserver/PDP/Program_Dev/DH ildebrand/geoprocessing_server/MapServer/sample.map&mode=map In my apache configuration file I have //fileserver/PDP/Program_Dev/DHildebrand/geoprocessing_server/ aliased to /test/ but the alias does not seem to work with CGI. I'm just wondering if there is a workaround so that I don't need to specify the whole file path in my URL. 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 David.Hildebrand at afsc.ca Wed Nov 3 16:25:00 2010 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Wed, 3 Nov 2010 17:25:00 -0600 Subject: [mapserver-users] DEM display References: <9188AB5935664040805E01E348A2B81D1BF68FC5@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF68FC6@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF68FCE@lacex1.afsc.ads> Message-ID: <9188AB5935664040805E01E348A2B81D1BF68FD0@lacex1.afsc.ads> I have an SRTM file in TIF format which I want to display in a shaded relief but I'm not sure of the approach I should take. Do I need to define classes and symbols for the layer (that would not help for the hillshade) or should I execute a script (PERL) on the server to create the image I need on the fly? Thanks for the tips. =========================== 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 dbee_kawai at yahoo.com Wed Nov 3 16:41:18 2010 From: dbee_kawai at yahoo.com (dbee_kawai) Date: Thu, 4 Nov 2010 07:41:18 +0800 Subject: [mapserver-users] RE:hif Message-ID: <301850.14629.qm@smtp105.mail.cnb.yahoo.com> An HTML attachment was scrubbed... URL: From richard.greenwood at gmail.com Wed Nov 3 17:41:52 2010 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Wed, 3 Nov 2010 18:41:52 -0600 Subject: [mapserver-users] map file paths In-Reply-To: <9188AB5935664040805E01E348A2B81D1BF68FCE@lacex1.afsc.ads> References: <9188AB5935664040805E01E348A2B81D1BF68FC5@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF68FC6@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF68FCE@lacex1.afsc.ads> Message-ID: On Wed, Nov 3, 2010 at 2:42 PM, David Hildebrand wrote: > Is there a way of abbreviating pathnames to the map file?? For instance, my > URL to produce a map is > > > > http://localhost/cgi-bin/mapserv.exe?map=//fileserver/PDP/Program_Dev/DHildebrand/geoprocessing_server/MapServer/sample.map&mode=map > > > > In my apache configuration file I have > //fileserver/PDP/Program_Dev/DHildebrand/geoprocessing_server/ aliased to > /test/ but the alias does not seem to work with CGI.? I?m just wondering if > there is a workaround so that I don?t need to specify the whole file path in > my URL. > > > > Thanks. > > =========================== > David V. Hildebrand > Agriculture Financial Services Corporation > (403) 782-8239 In your Apache httpd.conf add: SetEnv MY_MAP "C:/path/to/my/mapfile.map" and then your URL can be: http://localhost/cgi-bin/mapserv.exe?map=MYMAP&mode=map Shorter URL, better security. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From john.callahan at udel.edu Wed Nov 3 18:20:54 2010 From: john.callahan at udel.edu (John Callahan) Date: Wed, 3 Nov 2010 21:20:54 -0400 Subject: [mapserver-users] map file paths In-Reply-To: References: <9188AB5935664040805E01E348A2B81D1BF68FC5@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF68FC6@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF68FCE@lacex1.afsc.ads> Message-ID: Basically what I do is copy and rename mapserv.exe to some name I want in the URL. Then, if a request goes to that file, set the MS_MAPFILE variable to the relevant map file. This has worked well for me so far. For example, my organization recently published our 15th geologic map of out state. I want people to refer to it as geomap15. Therefore, I copied and renamed mapserv.exe to geomap15 (no exe extension, file still in cgi-bin directory). Then, I have the following in my httpd.conf file: SetEnvIf Request_URI "/cgi-bin/geomap15" MS_MAPFILE=C:/pathtomapfile/geomap15.map My URLs then look something like: http://maps.dgs.udel.edu/cgi-bin/geomap15? (This map file in action here: http://www.dgs.udel.edu/datasets/dgs-geologic-map-no-15-georgetown-quadrangle-dataset ) - John ************************************************** John Callahan, Research Scientist Delaware Geological Survey, University of Delaware URL: http://www.dgs.udel.edu ************************************************** On Wed, Nov 3, 2010 at 8:41 PM, Richard Greenwood < richard.greenwood at gmail.com> wrote: > On Wed, Nov 3, 2010 at 2:42 PM, David Hildebrand > wrote: > > Is there a way of abbreviating pathnames to the map file? For instance, > my > > URL to produce a map is > > > > > > > > > http://localhost/cgi-bin/mapserv.exe?map=//fileserver/PDP/Program_Dev/DHildebrand/geoprocessing_server/MapServer/sample.map&mode=map > > > > > > > > In my apache configuration file I have > > //fileserver/PDP/Program_Dev/DHildebrand/geoprocessing_server/ aliased to > > /test/ but the alias does not seem to work with CGI. I?m just wondering > if > > there is a workaround so that I don?t need to specify the whole file path > in > > my URL. > > > > > > > > Thanks. > > > > =========================== > > David V. Hildebrand > > Agriculture Financial Services Corporation > > (403) 782-8239 > > In your Apache httpd.conf add: > SetEnv MY_MAP "C:/path/to/my/mapfile.map" > > and then your URL can be: > http://localhost/cgi-bin/mapserv.exe?map=MYMAP&mode=map > > Shorter URL, better security. > > Rich > > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From punk.kish at gmail.com Wed Nov 3 18:26:23 2010 From: punk.kish at gmail.com (P Kishor) Date: Wed, 3 Nov 2010 20:26:23 -0500 Subject: [mapserver-users] map file paths In-Reply-To: References: <9188AB5935664040805E01E348A2B81D1BF68FC5@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF68FC6@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF68FCE@lacex1.afsc.ads> Message-ID: On Wed, Nov 3, 2010 at 8:20 PM, John Callahan wrote: > Basically what I do is copy and rename mapserv.exe to some name I want in > the URL.? Then, if a request goes to that file, set the MS_MAPFILE variable > to the relevant map file.? This has worked well for me so far. > > For example, my organization recently published our 15th geologic map of out > state.? I want people to refer to it as geomap15.? Therefore, I copied and > renamed mapserv.exe to geomap15 (no exe extension, file still in cgi-bin > directory). So you have 15 copies of the binary floating around on your computer. What a nightmare. If you upgrade, you have to make 15 copies of the new version and replace the old version. What would happen when you publish the 150th geologic map? Use a single binary, and use a wrapper (or the env variable) to get the right query. > Then, I have the following in my httpd.conf file: > > SetEnvIf Request_URI "/cgi-bin/geomap15" > MS_MAPFILE=C:/pathtomapfile/geomap15.map > > My URLs then look something like: http://maps.dgs.udel.edu/cgi-bin/geomap15? > > (This map file in action here: > http://www.dgs.udel.edu/datasets/dgs-geologic-map-no-15-georgetown-quadrangle-dataset) > > - John > > ************************************************** > John Callahan, Research Scientist > Delaware Geological Survey, University of Delaware > URL: http://www.dgs.udel.edu > ************************************************** > > > On Wed, Nov 3, 2010 at 8:41 PM, Richard Greenwood > wrote: >> >> On Wed, Nov 3, 2010 at 2:42 PM, David Hildebrand >> wrote: >> > Is there a way of abbreviating pathnames to the map file?? For instance, >> > my >> > URL to produce a map is >> > >> > >> > >> > >> > http://localhost/cgi-bin/mapserv.exe?map=//fileserver/PDP/Program_Dev/DHildebrand/geoprocessing_server/MapServer/sample.map&mode=map >> > >> > >> > >> > In my apache configuration file I have >> > //fileserver/PDP/Program_Dev/DHildebrand/geoprocessing_server/ aliased >> > to >> > /test/ but the alias does not seem to work with CGI.? I?m just wondering >> > if >> > there is a workaround so that I don?t need to specify the whole file >> > path in >> > my URL. >> > >> > >> > >> > Thanks. >> > >> > =========================== >> > David V. Hildebrand >> > Agriculture Financial Services Corporation >> > (403) 782-8239 >> >> In your Apache httpd.conf add: >> ? SetEnv MY_MAP ?"C:/path/to/my/mapfile.map" >> >> and then your URL can be: >> ? http://localhost/cgi-bin/mapserv.exe?map=MYMAP&mode=map >> >> Shorter URL, better security. >> >> Rich >> >> -- >> Richard Greenwood >> richard.greenwood at gmail.com >> www.greenwoodmap.com >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu ----------------------------------------------------------------------- Assertions are politics; backing up assertions with evidence is science ======================================================================= From edmar.moretti at terra.com.br Wed Nov 3 18:10:29 2010 From: edmar.moretti at terra.com.br (Edmar Moretti) Date: Wed, 03 Nov 2010 23:10:29 -0200 Subject: [mapserver-users] Tool for configure mapfile In-Reply-To: <4CD15D07.3030604@gritechnologies.com> References: <21A18B8C89289B4FB93CB02ED54D9D1201CA5840@msg01.corp.hbt.de> <4CD15D07.3030604@gritechnologies.com> Message-ID: <4CD20805.50508@terra.com.br> The software i3geo (http://softwarepublico.gov.br) contains an editor of "mapfiles" with forms for editing the layers and their characteristics. The system can be seen at http://mapas.mma.gov.br/i3geo44/admin/html/editormapfile.html _________________________________ Edmar Moretti http://www.meadiciona.com/edmarmoretti Poliedro Inform?tica, Consultoria e Servi?os http://www.poliedro.com.br/ Chat Skype: edmar.moretti MSN: edmar.moretti Blogger Facebook Picasa Twitter --- @ WiseStamp Signature . Get it now Bob Basques escreveu: > All, > > One of the design features of GeoMoose was to allow for abstracting > out each layer to it's own MapFile. Each layer has it's own Mapfile. > This was done primarily to allow owners of data to stylize their > respective datasets on their own with out affecting each other work. > A side benefit has been that the MapFiles are all separate. > > Also, in separating the mapfiles out, it has allowed for some fairly > large single layer mapfiles with some fairly comprehensive cartography > (Long mapfiles of their own) > > It's something to thing about anyway. > > bobb > > > > On 11/3/2010 2:26 AM, Julian Wiersbitzki wrote: >> Hi! >> >> Is there a good tool (besides Emacs, vi, etc.pp.) for configuring a >> mapfile? Our mapfile gets bigger and bigger and it's getting very >> "unhandlich". ;-) Perhaps there is already a faq for this? >> >> TIA, Julian >> >> ______________________________________________________________ >> >> Hamburger Berater Team GmbH Handelsregister: HRB 31629 >> Stadthausbr?cke 3 (Fleethof) Amtsgericht Hamburg >> 20355 Hamburg Gesch?ftsf?hrer: >> Fon: 040/369779-43 Ilse Habermann >> Fax: 040/369779-99 Hans-Joachim Habermann >> Mail: mailto:jw at hbt.de Daniel Hoffmann >> ______________________________________________________________ >> >> Internet: http://www.hbt.de >> http://www.geofox.de http://www.geonetwatch.de >> ______________________________________________________________ >> >> DIN EN ISO 9001:2000: DQS-Zertifikat Nr.5206 QM >> Diese Email wurde mit st?ndig aktualisierten Virenscannern gepr?ft >> ______________________________________________________________ >> >> Diese Email einschlie?lich eventuell angeh?ngter Dateien >> enth?lt vertrauliche Informationen und ist ausschlie?lich >> f?r den bezeichneten Adressaten bestimmt. Wenn Sie nicht >> der richtige Adressat oder dessen Vertreter sind, verst?ndigen >> Sie bitte sofort den Absender und l?schen Sie dann diese Email >> und eventuell angeh?ngte Dateien. Vielen Dank! >> Beachten Sie: Jede Form der Nutzung, Vervielf?ltigung oder >> Weitergabe des Inhalts fehlgeleiteter Emails ist unzul?ssig. >> ______________________________________________________________ >> >> This e-mail is intended only for the above addressee. >> It may contain privileged information. If you are not the >> addressee you must not copy, distribute, disclose or use any >> of the information in it. If you have received it in error >> please delete it and immediately notify the sender. >> ______________________________________________________________ >> _______________________________________________ >> 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 richard.greenwood at gmail.com Wed Nov 3 20:37:30 2010 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Wed, 3 Nov 2010 21:37:30 -0600 Subject: [mapserver-users] map file paths In-Reply-To: References: <9188AB5935664040805E01E348A2B81D1BF68FC5@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF68FC6@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF68FCE@lacex1.afsc.ads> Message-ID: John, Puneet, Being able to leave the .exe extension off in Windows is new to me and medium cool. Based on some rather foggy recollection, I think that it is limited to Apache. I don't think it works under IIS. But it's handy if you're developing on Windows and serving on *NIX. I'm kind of with Puneet in that I don't think multiple copies of binaries is generally good advise. However, under Windows (Apache or IIS) there is far less flexibility in wrapper scripts[1] than under *NIX, so I can see the appeal. Regards, Rich [1] The most common wrapper under Windows in an ASP script, which not only restricts you to IIS, but ASP has been superseded by ASPX, and I haven't seen an ASPX wrapper yet. You can install Perl (I know Puneet doesn't think a computer is worth booting if it doesn't have Perl) but that's just one more dependency for most Windows users. And it seems like there should be an option to wrap a CGI in PHP, but I have yet to find it. On Wed, Nov 3, 2010 at 7:20 PM, John Callahan wrote: > Basically what I do is copy and rename mapserv.exe to some name I want in > the URL.? Then, if a request goes to that file, set the MS_MAPFILE variable > to the relevant map file.? This has worked well for me so far. > > For example, my organization recently published our 15th geologic map of out > state.? I want people to refer to it as geomap15.? Therefore, I copied and > renamed mapserv.exe to geomap15 (no exe extension, file still in cgi-bin > directory).? Then, I have the following in my httpd.conf file: > > SetEnvIf Request_URI "/cgi-bin/geomap15" > MS_MAPFILE=C:/pathtomapfile/geomap15.map > > My URLs then look something like: http://maps.dgs.udel.edu/cgi-bin/geomap15? > > (This map file in action here: > http://www.dgs.udel.edu/datasets/dgs-geologic-map-no-15-georgetown-quadrangle-dataset) > > - John > > ************************************************** > John Callahan, Research Scientist > Delaware Geological Survey, University of Delaware > URL: http://www.dgs.udel.edu > ************************************************** > > > On Wed, Nov 3, 2010 at 8:41 PM, Richard Greenwood > wrote: >> >> On Wed, Nov 3, 2010 at 2:42 PM, David Hildebrand >> wrote: >> > Is there a way of abbreviating pathnames to the map file?? For instance, >> > my >> > URL to produce a map is >> > >> > >> > >> > >> > http://localhost/cgi-bin/mapserv.exe?map=//fileserver/PDP/Program_Dev/DHildebrand/geoprocessing_server/MapServer/sample.map&mode=map >> > >> > >> > >> > In my apache configuration file I have >> > //fileserver/PDP/Program_Dev/DHildebrand/geoprocessing_server/ aliased >> > to >> > /test/ but the alias does not seem to work with CGI.? I?m just wondering >> > if >> > there is a workaround so that I don?t need to specify the whole file >> > path in >> > my URL. >> > >> > >> > >> > Thanks. >> > >> > =========================== >> > David V. Hildebrand >> > Agriculture Financial Services Corporation >> > (403) 782-8239 >> >> In your Apache httpd.conf add: >> ? SetEnv MY_MAP ?"C:/path/to/my/mapfile.map" >> >> and then your URL can be: >> ? http://localhost/cgi-bin/mapserv.exe?map=MYMAP&mode=map >> >> Shorter URL, better security. >> >> Rich >> >> -- >> Richard Greenwood >> richard.greenwood at gmail.com >> www.greenwoodmap.com >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From Jukka.Rahkonen at mmmtike.fi Wed Nov 3 22:36:18 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 4 Nov 2010 07:36:18 +0200 Subject: [mapserver-users] map file paths References: <9188AB5935664040805E01E348A2B81D1BF68FC5@lacex1.afsc.ads><9188AB5935664040805E01E348A2B81D1BF68FC6@lacex1.afsc.ads><9188AB5935664040805E01E348A2B81D1BF68FCE@lacex1.afsc.ads> Message-ID: P Kishor wrote: > So you have 15 copies of the binary floating around on your computer. > What a nightmare. If you upgrade, you have to make 15 copies of the > new version and replace the old version. > What would happen when you publish the 150th geologic map? > Use a single binary, and use a wrapper (or the env variable) to get > the right query. I do not believe there are handy wrappers for Windows and the only way I have been able to get SetEnvIf to work is to make copies of mapserv.exe with different names. I maintain a batch file about our services with lines like "COPY mapserv.exe WMS_service1" etc. and then I only need to run the batch after update and publishing the 150th service does not change anything. -Jukka Rahkonen- From Thomas.Waberzeck at liag-hannover.de Wed Nov 3 23:53:06 2010 From: Thomas.Waberzeck at liag-hannover.de (Waberzeck, Thomas) Date: Thu, 4 Nov 2010 07:53:06 +0100 Subject: [mapserver-users] map file paths In-Reply-To: References: <9188AB5935664040805E01E348A2B81D1BF68FC5@lacex1.afsc.ads><9188AB5935664040805E01E348A2B81D1BF68FC6@lacex1.afsc.ads><9188AB5935664040805E01E348A2B81D1BF68FCE@lacex1.afsc.ads> Message-ID: <08F447350F7FA0408F7BE55D99D3E86110D16457E7@ZVMBX01.bgr.local> Jukka Rahkonen wrote: > P Kishor wrote: > > > So you have 15 copies of the binary floating around on your computer. > > What a nightmare. If you upgrade, you have to make 15 copies of the > > new version and replace the old version. > > > What would happen when you publish the 150th geologic map? > > > Use a single binary, and use a wrapper (or the env variable) to get > > the right query. > > I do not believe there are handy wrappers for Windows and the only way > I have been able to get SetEnvIf to work is to make copies of > mapserv.exe with different names. I maintain a batch file about our > services with lines like "COPY mapserv.exe WMS_service1" etc. and then > I only need to run the batch after update and publishing the 150th > service does not change anything. If you have php it's quite easy to write a small wrapper for it. See http://www.mapserver.org/ogc/mapscript.html#php-example so the only thing to do is to write the wrappers once and you have a single setup of Mapserver. Thomas BTW: The Example should be updated - I think php_mapscript_4.10.0.dll is out of date. The name of the .dll is just php_mapscript.dll. From oanacristina22 at gmail.com Thu Nov 4 00:18:19 2010 From: oanacristina22 at gmail.com (cris) Date: Thu, 4 Nov 2010 00:18:19 -0700 (PDT) Subject: [mapserver-users] multiline label and two problems(different font sizes, avoid overlapping) Message-ID: <1288855099668-5704351.post@n2.nabble.com> Hi there! I am trying to obtain a multi-line label , by concatenating two fields ([name 1],[name2]) from a point shapefile . This was obtained by using TEXT ([name 1]=[name2]), "=" being my wrapping character and using FORCE OFF and POSITION set to AUTO to avoid overlapping. The beauty comes when I try to get different font sizes for the two lines. I stopped concatenating fields with TEXT and just labeled the same point twice with an OFFSET to get my 2-line label with different font sizes. The problem this time is that these labels are set to FORCE OFF to avoid massive cramming (POSITION was set to CC). Therefore, sometimes just [name1] is displayed and sometimes just [name2], rarely the two together. If I change them to FORCE ON, the labels are badly overlapping So how could I solve this problem of having a 2-line label from a point shapefile, lines with different font sizes and avoid overlapping, having the same items displayed? Any ideas are much appreciated! Thanks a lot! Cris -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/multiline-label-and-two-problems-different-font-sizes-avoid-overlapping-tp5704351p5704351.html Sent from the Mapserver - User mailing list archive at Nabble.com. From wimvanbelle at gmail.com Thu Nov 4 00:41:09 2010 From: wimvanbelle at gmail.com (Wim Vanbelle) Date: Thu, 4 Nov 2010 08:41:09 +0100 Subject: [mapserver-users] map file paths In-Reply-To: <08F447350F7FA0408F7BE55D99D3E86110D16457E7@ZVMBX01.bgr.local> References: <9188AB5935664040805E01E348A2B81D1BF68FC5@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF68FC6@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF68FCE@lacex1.afsc.ads> <08F447350F7FA0408F7BE55D99D3E86110D16457E7@ZVMBX01.bgr.local> Message-ID: I'm pretty sure you can use the rewrite module in IIS to achieve what you need. I use it myself for a couple of REST webservices. Do note that I am using IIS 7. Take a look here : http://learn.iis.net/page.aspx/460/using-the-url-rewrite-module/ On 4 November 2010 07:53, Waberzeck, Thomas < Thomas.Waberzeck at liag-hannover.de> wrote: > Jukka Rahkonen wrote: > > P Kishor wrote: > > > > > So you have 15 copies of the binary floating around on your computer. > > > What a nightmare. If you upgrade, you have to make 15 copies of the > > > new version and replace the old version. > > > > > What would happen when you publish the 150th geologic map? > > > > > Use a single binary, and use a wrapper (or the env variable) to get > > > the right query. > > > > I do not believe there are handy wrappers for Windows and the only way > > I have been able to get SetEnvIf to work is to make copies of > > mapserv.exe with different names. I maintain a batch file about our > > services with lines like "COPY mapserv.exe WMS_service1" etc. and then > > I only need to run the batch after update and publishing the 150th > > service does not change anything. > > > If you have php it's quite easy to write a small wrapper for it. See > http://www.mapserver.org/ogc/mapscript.html#php-example so the only thing > to do is to write the wrappers once and you have a single setup of > Mapserver. > > Thomas > BTW: The Example should be updated - I think php_mapscript_4.10.0.dll is > out of date. The name of the .dll is just php_mapscript.dll. > _______________________________________________ > 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 leene_85 at yahoo.de Thu Nov 4 00:48:26 2010 From: leene_85 at yahoo.de (leene) Date: Thu, 4 Nov 2010 07:48:26 +0000 (GMT) Subject: AW: [mapserver-users] Filter elements on multiple layers In-Reply-To: References: <550816.69629.qm@web29718.mail.ird.yahoo.com> Message-ID: <886898.23936.qm@web29703.mail.ird.yahoo.com> Hi, thank you Alex. I found the solution in the same thread, you've posted: http://www.mail-archive.com/mapserver-users at lists.osgeo.org/msg10704.html I must add the of the whole map to the filter and I'll get all matches. Regards, Cathleen ________________________________ Von: Alexander Petkov An: leene CC: mapserver-users at lists.osgeo.org Gesendet: Mittwoch, den 3. November 2010, 20:30:39 Uhr Betreff: Re: [mapserver-users] Filter elements on multiple layers Hmm, I just tested this--it seems that you'd always get features where the envelopes for the results from each layer spatially intersect, (i.e. anything within the blue rectangle of your image). Alex On Wed, Nov 3, 2010 at 11:37 AM, Alexander Petkov wrote: > You might have to specify your filter for each typename, as in: >http://my-server/fcgi-bin/mapserv&map=mymap.map&service=WFS&version=1.1.0&request=GetFeature&typename=layer1,layer2&FILTER=(...)(...) >) > > > See this thread: > http://www.mail-archive.com/mapserver-users at lists.osgeo.org/msg10695.html > > > Alex > > On Wed, Nov 3, 2010 at 8:44 AM, leene wrote: >> Hey, >> I have a problem with filtering elements of multiple layers. >> My mapserver (version 5.2.1) is configured with two layers - layer1 and >> layer2. For better understanding see attachment: layer1 has black crosses >> and layer2 has red points. Now I try to get features by id - but I don't >> know the corresponding layer. Therefore I send the following request: >> >>http://my-server/fcgi-bin/mapserv?map=mymap.map&service=WFS&version=1.1.0&request=GetFeature&typename=layer1,layer2&filter= >>= >> >>IDidAofLayer1 >>> >>IDidBofLayer1 >>> >>IDidCofLayer2 >>> >> >> >> In the response are some features missing but they exist in the shapefile. I >> found out following rules: >> 1. All features of layer2 (red points in attachment) are returned correctly. >> 2. Features of layer1 (black crosses) which are inside the blue frame are >> also returned correctly. >> 3. Features of layer1 which are outside the blue frame (bounds of layer2) >> are missing - if I filter the missing elements only on layer1 I get the >> features. >> >> Is this a bug or where is my mistake? >> >> Regards, >> Cathleen >> >> By the way: Is there a date of mapserver 6 release? >> http://trac.osgeo.org/mapserver/wiki/60ReleasePlan doesn't seem to be up to >> date. >> >> >> _______________________________________________ >> 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 richard.lehaut at gmail.com Thu Nov 4 01:33:32 2010 From: richard.lehaut at gmail.com (Richard LEHAUT) Date: Thu, 4 Nov 2010 09:33:32 +0100 Subject: [mapserver-users] Problem with wfs.php In-Reply-To: References: <1763291379.36.1286963498334.JavaMail.root@linux12> <1005782596.38.1286963709739.JavaMail.root@linux12> Message-ID: Hi, I've a new problem. The script is correct for a simple geometry. The file is a script with a geometry complex. I got a result when I query my mapserver. But, with this server, i got a error :"msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature : Geometry ". Can you test my script? do you get the same error? Thank's for you help Richard LEHAUT / Tiolebucheron -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test_curl.php Type: application/octet-stream Size: 16862 bytes Desc: not available URL: From yves.jacolin at camptocamp.com Thu Nov 4 01:43:05 2010 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Thu, 4 Nov 2010 09:43:05 +0100 Subject: [mapserver-users] Problem with wfs.php In-Reply-To: References: <1763291379.36.1286963498334.JavaMail.root@linux12> Message-ID: <201011040943.05407.yves.jacolin@camptocamp.com> Richard, Are you sure you are using php5-curl correctly? See http://www.php.net/manual/fr/function.curl-setopt.php what is the parameter name for the $layer variable? >curl_setopt($curl_init[$i], CURLOPT_POSTFIELDS, $layer); which is shown in the documentation of php5-curl: >$data = array('name' => 'Foo', 'file' => '@/home/user/test.png'); >curl_setopt($ch, CURLOPT_POSTFIELDS, $data); something like this seems better to me: >$data = array('filter'=>$layer); >curl_setopt($ch, CURLOPT_POSTFIELDS, $data); regards, Y. Le jeudi 04 novembre 2010 09:33:32, Richard LEHAUT a ?crit : > Hi, > I've a new problem. > The script is correct for a simple geometry. The file is a script with a > geometry complex. > > I got a result when I query my mapserver. But, with this server, i got a > error :"msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER > in GetFeature : Geometry PropertyName> > ". > > Can you test my script? do you get the same error? > > Thank's for you help > > Richard LEHAUT / Tiolebucheron -- 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 sebastian.ovide at gmail.com Thu Nov 4 04:55:38 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Thu, 4 Nov 2010 11:55:38 +0000 Subject: [mapserver-users] layers sharing the same class ? Message-ID: Hi All, I have a lot of layers that are displayed using the same colors. If I need to change a color for, I have to go trough all the layers, one by one, and change all the colors.. Is there any way to define a CLASS (or a THEME ??) and just use it within all the layers that share that class ? This is what I have: LAYER ... ... CLASSITEM "CLASS" CLASS EXPRESSION "A" COLOR "#FF0000" END ... ... ... CLASS EXPRESSION "Z" COLOR "#000000" END END Thanks -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Thu Nov 4 05:04:45 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 4 Nov 2010 14:04:45 +0200 Subject: [mapserver-users] layers sharing the same class ? In-Reply-To: References: Message-ID: Hi, I believe that INCLUDE works everywhere. Store your class on a disk as a text file and point to it with INCLUDE. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Sebastian E. Ovide L?hetetty: 4. marraskuuta 2010 13:56 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] layers sharing the same class ? Hi All, I have a lot of layers that are displayed using the same colors. If I need to change a color for, I have to go trough all the layers, one by one, and change all the colors.. Is there any way to define a CLASS (or a THEME ??) and just use it within all the layers that share that class ? This is what I have: LAYER ... ... CLASSITEM "CLASS" CLASS EXPRESSION "A" COLOR "#FF0000" END ... ... ... CLASS EXPRESSION "Z" COLOR "#000000" END END Thanks -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From cnieman at dmsolutions.ca Thu Nov 4 05:06:51 2010 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Thu, 04 Nov 2010 08:06:51 -0400 Subject: [mapserver-users] layers sharing the same class ? In-Reply-To: References: Message-ID: <4CD2A1DB.6060003@dmsolutions.ca> Hi, You should be able to use an INCLUDE (see http://mapserver.org/mapfile/Include.html) that contains the classes. E.g.: LAYER ... CLASSITEM "CLASS" INCLUDE "path/to/include/file.txt" END Where file.txt would be: CLASS EXPRESSION "A" COLOR "#FF0000" END ... CLASS EXPRESSION "Z" COLOR "#000000" END Hah, I just saw that I was beaten to this. Sent anyway to provide the example. Christy On 11/04/2010 07:55 AM, Sebastian E. Ovide wrote: > Hi All, > > I have a lot of layers that are displayed using the same colors. If I > need to change a color for, I have to go trough all the layers, one by > one, and change all the colors.. > > Is there any way to define a CLASS (or a THEME ??) and just use it > within all the layers that share that class ? > > This is what I have: > > LAYER > ... > ... > CLASSITEM "CLASS" > CLASS > EXPRESSION "A" > COLOR "#FF0000" > END > ... > ... > ... > CLASS > EXPRESSION "Z" > COLOR "#000000" > END > END > > Thanks > -- > Sebastian E. Ovide > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Thu Nov 4 06:31:59 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Thu, 4 Nov 2010 08:31:59 -0500 Subject: [mapserver-users] RE: DEM display In-Reply-To: <9188AB5935664040805E01E348A2B81D1BF68FD0@lacex1.afsc.ads> References: <9188AB5935664040805E01E348A2B81D1BF68FC5@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF68FC6@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF68FCE@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF68FD0@lacex1.afsc.ads> Message-ID: I would pre-render all of my hillshades and then add them as simple raster layers. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of David Hildebrand Sent: Wednesday, November 03, 2010 6:25 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] DEM display I have an SRTM file in TIF format which I want to display in a shaded relief but I'm not sure of the approach I should take. Do I need to define classes and symbols for the layer (that would not help for the hillshade) or should I execute a script (PERL) on the server to create the image I need on the fly? Thanks for the tips. =========================== 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 Thomas.Waberzeck at liag-hannover.de Thu Nov 4 06:47:58 2010 From: Thomas.Waberzeck at liag-hannover.de (Waberzeck, Thomas) Date: Thu, 4 Nov 2010 14:47:58 +0100 Subject: [mapserver-users] wms with Elevation Parameter Message-ID: <08F447350F7FA0408F7BE55D99D3E86110D164587D@ZVMBX01.bgr.local> Hi, at first, I know that mapserver doesn't support wms with Elevation parameters. But maybe some could give me some Hints. What I'm going to do is set up a wms which should deliver maps for a given Depth. So I wrote a script which generates an referenced jpg of the demanded Dimensions (x/y and Depth) and modifies the Datasource of my Rasterlayer. Then Mapserver works as an normal wms. So by now, I'm able to call my wms like this: http://localhost/geotis_wms.php?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=epsg:31467&bbox=3704120,5915103,3737294,5944356&layers=Horizontalschnitt_farbige_Isolininen&format=image/png&width=600&height=600&elevation=2500styles The Layerdefinition from the getCababilities is like: Horizontalschnitt_farbige_Isolininen Horizontalschnitt_farbige_Isolininen Darstellung der Temperatur einer gebenen Tiefe durch farbige Isolininen epsg:4326 epsg:31467 0/5000/100 My Questions are: 1. Is my Layerdefinition ok? 2. If yes, which clients support wms in this way? I tried to use QuantumGIS and ArcMap10 without any success - but maybe my Layerdefintion is wrong. Thomas Waberzeck Leibniz-Institut f?r Angewandte Geophysik (LIAG) im GEOZENTRUM HANNOVER Stilleweg 2 30655 Hannover Telefon +49 (0)511 643 3352 Telefax +49 (0)511 643 3665 Thomas.Waberzeck at liag-hannover.de -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Thu Nov 4 06:59:42 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 4 Nov 2010 15:59:42 +0200 Subject: [mapserver-users] Tool for configure mapfile In-Reply-To: References: <21A18B8C89289B4FB93CB02ED54D9D1201CA5840@msg01.corp.hbt.de> Message-ID: Hi, MSCompanion is a good try but I do not know if it is developed any more. http://code.google.com/p/mscompanion/ -Jukka Rahkonen ________________________________ pelin wrote: hi, you can use vim, it has syntax highlighting http://mapserver.org/development/editing/vim.html Saludos! 2010/11/3 Julian Wiersbitzki Hi! Is there a good tool (besides Emacs, vi, etc.pp.) for configuring a mapfile? Our mapfile gets bigger and bigger and it's getting very "unhandlich". ;-) Perhaps there is already a faq for this? TIA, Julian ______________________________________________________________ Hamburger Berater Team GmbH Handelsregister: HRB 31629 Stadthausbr?cke 3 (Fleethof) Amtsgericht Hamburg 20355 Hamburg Gesch?ftsf?hrer: Fon: 040/369779-43 Ilse Habermann Fax: 040/369779-99 Hans-Joachim Habermann Mail: mailto:jw at hbt.de Daniel Hoffmann ______________________________________________________________ Internet: http://www.hbt.de http://www.geofox.de http://www.geonetwatch.de ______________________________________________________________ DIN EN ISO 9001:2000: DQS-Zertifikat Nr.5206 QM Diese Email wurde mit st?ndig aktualisierten Virenscannern gepr?ft ______________________________________________________________ Diese Email einschlie?lich eventuell angeh?ngter Dateien enth?lt vertrauliche Informationen und ist ausschlie?lich f?r den bezeichneten Adressaten bestimmt. Wenn Sie nicht der richtige Adressat oder dessen Vertreter sind, verst?ndigen Sie bitte sofort den Absender und l?schen Sie dann diese Email und eventuell angeh?ngte Dateien. Vielen Dank! Beachten Sie: Jede Form der Nutzung, Vervielf?ltigung oder Weitergabe des Inhalts fehlgeleiteter Emails ist unzul?ssig. ______________________________________________________________ This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. ______________________________________________________________ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- -------------------------------------------------------- http://blogs.hydras.com.ar/srodriguez/ -------------------------------------------------------- Atentamente Rolando Sergio Rodriguez -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.callahan at udel.edu Thu Nov 4 07:18:01 2010 From: john.callahan at udel.edu (John Callahan) Date: Thu, 4 Nov 2010 10:18:01 -0400 Subject: [mapserver-users] map file paths In-Reply-To: <08F447350F7FA0408F7BE55D99D3E86110D16457E7@ZVMBX01.bgr.local> References: <9188AB5935664040805E01E348A2B81D1BF68FC5@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF68FC6@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF68FCE@lacex1.afsc.ads> <08F447350F7FA0408F7BE55D99D3E86110D16457E7@ZVMBX01.bgr.local> Message-ID: The PHP mapscript wrapper looks promising. Thanks. The examples would need to be combined into one php file to handle both GetMap and GetCapabilities requests. Seems doable. I'm not a programmer and didn't want to get into mapscript, however, modifying this script template doesn't seem too difficult (if you already have PHP, which my server does.) I'm not a big fan of copying and renaming the mapserv.exe file but it does work well. We only publish a handful of services and do not expect to significantly increase in the future. If we do, scripting a batch file would work just as well. This is relatively easy and without the need to install (re: maintenance, security) or learn additional programming languages. For me, it's also important to have short, easily readable URLs to send out to people that use our WMS services. I do not want the extra "?map=mymap" parameters at the end of the URLs. For one reason or another, things always get screwed up when people start pasting these URLs into their desktop GIS or other apps. Simpler the better, even if it's not elegant or involves slightly more work on my part. - John ************************************************** John Callahan, Research Scientist Delaware Geological Survey, University of Delaware URL: http://www.dgs.udel.edu ************************************************** On Thu, Nov 4, 2010 at 2:53 AM, Waberzeck, Thomas < Thomas.Waberzeck at liag-hannover.de> wrote: > Jukka Rahkonen wrote: > > P Kishor wrote: > > > > > So you have 15 copies of the binary floating around on your computer. > > > What a nightmare. If you upgrade, you have to make 15 copies of the > > > new version and replace the old version. > > > > > What would happen when you publish the 150th geologic map? > > > > > Use a single binary, and use a wrapper (or the env variable) to get > > > the right query. > > > > I do not believe there are handy wrappers for Windows and the only way > > I have been able to get SetEnvIf to work is to make copies of > > mapserv.exe with different names. I maintain a batch file about our > > services with lines like "COPY mapserv.exe WMS_service1" etc. and then > > I only need to run the batch after update and publishing the 150th > > service does not change anything. > > > If you have php it's quite easy to write a small wrapper for it. See > http://www.mapserver.org/ogc/mapscript.html#php-example so the only thing > to do is to write the wrappers once and you have a single setup of > Mapserver. > > Thomas > BTW: The Example should be updated - I think php_mapscript_4.10.0.dll is > out of date. The name of the .dll is just php_mapscript.dll. > _______________________________________________ > 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 pschweitzer at usgs.gov Thu Nov 4 07:15:34 2010 From: pschweitzer at usgs.gov (Peter N. Schweitzer) Date: Thu, 04 Nov 2010 10:15:34 -0400 Subject: [mapserver-users] XSL for WMS capabilities Message-ID: <4CD2C006.2000802@usgs.gov> Recognizing that this is only marginally on topic, but I use mapserver for WMS and so the experiences of mapserver users would bemost helpful. Does anyone have an XSL for WMS capabilities response that generates a reasonably readable HTML presentation of the information? Peter -- Peter N. Schweitzer (MS 954, U.S. Geological Survey, Reston, VA 20192) (703) 648-6533 FAX: (703) 648-6252 email: pschweitzer at usgs.gov From Tom.Kralidis at ec.gc.ca Thu Nov 4 07:39:03 2010 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Thu, 4 Nov 2010 10:39:03 -0400 Subject: [mapserver-users] XSL for WMS capabilities In-Reply-To: <4CD2C006.2000802@usgs.gov> References: <4CD2C006.2000802@usgs.gov> Message-ID: > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Peter N. Schweitzer > Sent: Thursday, 04 November 2010 10:16 > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] XSL for WMS capabilities > > Recognizing that this is only marginally on topic, but I use > mapserver for WMS and so the experiences of mapserver users > would bemost helpful. > > Does anyone have an XSL for WMS capabilities response that > generates a reasonably readable HTML presentation of the information? > I haven't seen anything defacto. You could always XSLT WMS Capabilities to ISO 19139 and output from there. ..Tom From Tom.Kralidis at ec.gc.ca Thu Nov 4 07:50:02 2010 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Thu, 4 Nov 2010 10:50:02 -0400 Subject: [mapserver-users] wms with Elevation Parameter In-Reply-To: <08F447350F7FA0408F7BE55D99D3E86110D164587D@ZVMBX01.bgr.local> References: <08F447350F7FA0408F7BE55D99D3E86110D164587D@ZVMBX01.bgr.local> Message-ID: 1./ The dimension and extent elements are in the right place; there are slight changes needed based on the 1.1.1 DTD [1]. Here is a snippet from http://schemas.opengis.net/wms/1.1.1/capabilities_1_1_1.xml: 1999-01-01/2000-08-22/P1D 0,1000,3000,5000,10000 2./ I don't know of any WMS client that supports the elevation parameter. You _could_ always do a GetMap request with an SLD as a workaround. ..Tom [1] http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Waberzeck, Thomas Sent: Thursday, 04 November 2010 09:48 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] wms with Elevation Parameter Hi, at first, I know that mapserver doesn't support wms with Elevation parameters. But maybe some could give me some Hints. What I'm going to do is set up a wms which should deliver maps for a given Depth. So I wrote a script which generates an referenced jpg of the demanded Dimensions (x/y and Depth) and modifies the Datasource of my Rasterlayer. Then Mapserver works as an normal wms. So by now, I'm able to call my wms like this: http://localhost/geotis_wms.php?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=epsg:31467&bbox=3704120,5915103,3737294,5944356&layers=Horizontalschnitt_farbige_Isolininen&format=image/png&width=600&height=600&elevation=2500styles The Layerdefinition from the getCababilities is like: Horizontalschnitt_farbige_Isolininen Horizontalschnitt_farbige_Isolininen Darstellung der Temperatur einer gebenen Tiefe durch farbige Isolininen epsg:4326 epsg:31467 0/5000/100 My Questions are: 1. Is my Layerdefinition ok? 2. If yes, which clients support wms in this way? I tried to use QuantumGIS and ArcMap10 without any success - but maybe my Layerdefintion is wrong. Thomas Waberzeck Leibniz-Institut f?r Angewandte Geophysik (LIAG) im GEOZENTRUM HANNOVER Stilleweg 2 30655 Hannover Telefon +49 (0)511 643 3352 Telefax +49 (0)511 643 3665 Thomas.Waberzeck at liag-hannover.de From Thomas.Waberzeck at liag-hannover.de Thu Nov 4 08:46:51 2010 From: Thomas.Waberzeck at liag-hannover.de (Waberzeck, Thomas) Date: Thu, 4 Nov 2010 16:46:51 +0100 Subject: AW: [mapserver-users] map file paths In-Reply-To: References: <9188AB5935664040805E01E348A2B81D1BF68FC5@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF68FC6@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF68FCE@lacex1.afsc.ads> <08F447350F7FA0408F7BE55D99D3E86110D16457E7@ZVMBX01.bgr.local> Message-ID: <08F447350F7FA0408F7BE55D99D3E86110D164589C@ZVMBX01.bgr.local> Ok, but as I wrote - we use a php wrapper to hide our mapfiles. The main code is just as follows: loadparams(); ms_ioinstallstdouttobuffer(); $oMap = ms_newMapobj("path/to/my.map"); $oMap->owsdispatch($request); $contenttype = ms_iostripstdoutbuffercontenttype(); if ($contenttype == 'image/png') header('Content-type: image/png'); ms_iogetStdoutBufferBytes(); ms_ioresethandlers(); ?> Using this file works at least in QuantumGIS and should do so in others. Thomas Von: John Callahan [mailto:john.callahan at udel.edu] Gesendet: Donnerstag, 4. November 2010 15:18 An: Waberzeck, Thomas Cc: Rahkonen Jukka; mapserver-users at lists.osgeo.org Betreff: Re: [mapserver-users] map file paths The PHP mapscript wrapper looks promising. Thanks. The examples would need to be combined into one php file to handle both GetMap and GetCapabilities requests. Seems doable. I'm not a programmer and didn't want to get into mapscript, however, modifying this script template doesn't seem too difficult (if you already have PHP, which my server does.) I'm not a big fan of copying and renaming the mapserv.exe file but it does work well. We only publish a handful of services and do not expect to significantly increase in the future. If we do, scripting a batch file would work just as well. This is relatively easy and without the need to install (re: maintenance, security) or learn additional programming languages. For me, it's also important to have short, easily readable URLs to send out to people that use our WMS services. I do not want the extra "?map=mymap" parameters at the end of the URLs. For one reason or another, things always get screwed up when people start pasting these URLs into their desktop GIS or other apps. Simpler the better, even if it's not elegant or involves slightly more work on my part. - John ************************************************** John Callahan, Research Scientist Delaware Geological Survey, University of Delaware URL: http://www.dgs.udel.edu ************************************************** On Thu, Nov 4, 2010 at 2:53 AM, Waberzeck, Thomas > wrote: Jukka Rahkonen wrote: > P Kishor wrote: > > > So you have 15 copies of the binary floating around on your computer. > > What a nightmare. If you upgrade, you have to make 15 copies of the > > new version and replace the old version. > > > What would happen when you publish the 150th geologic map? > > > Use a single binary, and use a wrapper (or the env variable) to get > > the right query. > > I do not believe there are handy wrappers for Windows and the only way > I have been able to get SetEnvIf to work is to make copies of > mapserv.exe with different names. I maintain a batch file about our > services with lines like "COPY mapserv.exe WMS_service1" etc. and then > I only need to run the batch after update and publishing the 150th > service does not change anything. If you have php it's quite easy to write a small wrapper for it. See http://www.mapserver.org/ogc/mapscript.html#php-example so the only thing to do is to write the wrappers once and you have a single setup of Mapserver. Thomas BTW: The Example should be updated - I think php_mapscript_4.10.0.dll is out of date. The name of the .dll is just php_mapscript.dll. _______________________________________________ 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 osgeo.mailinglist at gmail.com Thu Nov 4 11:09:24 2010 From: osgeo.mailinglist at gmail.com (Thomas Gratier) Date: Thu, 4 Nov 2010 19:09:24 +0100 Subject: [mapserver-users] Tool for configure mapfile In-Reply-To: References: <21A18B8C89289B4FB93CB02ED54D9D1201CA5840@msg01.corp.hbt.de> Message-ID: Hello, Not only for this but look on GeoAdminSuite, there is a mapfile editor included http://www.geojava.org/index.html and the demo website http://sd-11986.dedibox.fr:8080/gas/ Regards ThomasG GIS specialist -------------- next part -------------- An HTML attachment was scrubbed... URL: From osgeo.mailinglist at gmail.com Thu Nov 4 11:14:17 2010 From: osgeo.mailinglist at gmail.com (Thomas Gratier) Date: Thu, 4 Nov 2010 19:14:17 +0100 Subject: [mapserver-users] XSL for WMS capabilities In-Reply-To: References: <4CD2C006.2000802@usgs.gov> Message-ID: Hello, See WMS Inspector Firefox plugin code. It renders directly wms into html so I suppose there is behind an XSLT process for WMS. Regards ThomasG GIS specialist -------------- next part -------------- An HTML attachment was scrubbed... URL: From msubedee at yahoo.com Thu Nov 4 14:21:20 2010 From: msubedee at yahoo.com (Mukesh Subedee) Date: Thu, 4 Nov 2010 14:21:20 -0700 (PDT) Subject: [mapserver-users] dynamic coloring in mapserver? In-Reply-To: References: Message-ID: <467891.39115.qm@web37403.mail.mud.yahoo.com> Hi, ? I am new to map server. I have been playing with it and finding it interesting. I have a shape file with database containing different area (polygon) codes. Let's say I have x.dbf file for a x.shp file and it contains a row with polygon code (I don't worry about layers). ? I want to color one or more area as desired by the user. e.g. If a user desires to color area number 12 that corresponds to a region (polygon) in the map, the desired area should be colored with specific color. ? Is it possible to do such thing with MapServer? Is it possible to dynamically assign specific color to the polygon area with it? ? Thanks a lot! Mukesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Hildebrand at afsc.ca Thu Nov 4 14:26:03 2010 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Thu, 4 Nov 2010 15:26:03 -0600 Subject: [mapserver-users] RE: DEM display References: <9188AB5935664040805E01E348A2B81D1BF68FC5@lacex1.afsc.ads><9188AB5935664040805E01E348A2B81D1BF68FC6@lacex1.afsc.ads><9188AB5935664040805E01E348A2B81D1BF68FCE@lacex1.afsc.ads><9188AB5935664040805E01E348A2B81D1BF68FD0@lacex1.afsc.ads> Message-ID: <9188AB5935664040805E01E348A2B81D1BF68FD3@lacex1.afsc.ads> How can I combine a pre-rendered hillshade model with an elevation layer? Can I set the transparency of a layer? Is there a GDAL utility for rendering a combined hillshade/elevation model which will still retain the original elevation values for query? =========================== 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: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Fawcett, David (MPCA) Sent: Thursday, November 04, 2010 7:32 AM To: David Hildebrand; mapserver-users at lists.osgeo.org Subject: [mapserver-users] RE: DEM display I would pre-render all of my hillshades and then add them as simple raster layers. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of David Hildebrand Sent: Wednesday, November 03, 2010 6:25 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] DEM display I have an SRTM file in TIF format which I want to display in a shaded relief but I'm not sure of the approach I should take. Do I need to define classes and symbols for the layer (that would not help for the hillshade) or should I execute a script (PERL) on the server to create the image I need on the fly? Thanks for the tips. =========================== David V. Hildebrand Agriculture Financial Services Corporation (403) 782-8239 www.afsc.ca > This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at ci.stpaul.mn.us Thu Nov 4 14:25:37 2010 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Thu, 04 Nov 2010 16:25:37 -0500 Subject: [mapserver-users] dynamic coloring in mapserver? In-Reply-To: <467891.39115.qm@web37403.mail.mud.yahoo.com> References: <467891.39115.qm@web37403.mail.mud.yahoo.com> Message-ID: <4CD2DE80.163B.00A8.0@ci.stpaul.mn.us> You can change the majority of MapFile variable via the URL with Mapserver in CGI mode. See here for more info: http://mapserver.org/cgi/runsub.html bobb >>> Mukesh Subedee wrote: Hi, I am new to map server. I have been playing with it and finding it interesting. I have a shape file with database containing different area (polygon) codes. Let's say I have x.dbf file for a x.shp file and it contains a row with polygon code (I don't worry about layers). I want to color one or more area as desired by the user. e.g. If a user desires to color area number 12 that corresponds to a region (polygon) in the map, the desired area should be colored with specific color. Is it possible to do such thing with MapServer? Is it possible to dynamically assign specific color to the polygon area with it? Thanks a lot! Mukesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Thu Nov 4 14:33:58 2010 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 04 Nov 2010 15:33:58 -0600 Subject: [mapserver-users] dynamic coloring in mapserver? In-Reply-To: <467891.39115.qm@web37403.mail.mud.yahoo.com> References: <467891.39115.qm@web37403.mail.mud.yahoo.com> Message-ID: <4CD326C6.8040708@geoanalytic.com> Mukesh As Bob pointed out you can "over-ride" the color in mapserver's map configuration file with a CGI variable. You can also have the STYLE object in the map configuration file reference a color value stored as an attribute value in the DBF. See http://mapserver.org/mapfile/style.html: COLOR [r] [g] [b] | [attribute] * Color to use for drawing features. * [/Attribute/] was introduced in version 5.0, to specify the item name in the attribute table to use for color values. The hard brackets [] are required. For example, if your /shapefile/'s DBF has a field named "MYCOLOR" that holds color values for each record, your STYLE object for might contain: STYLE COLOR [MYCOLOR] OUTLINECOLOR 150 150 150 END Or better yet store the geometry and attributes in a PostGIS database to avoid any file/record locking problems if you want the user to be able to persistently change the value. Best Regards, Brent Fraser On 11/4/2010 3:21 PM, Mukesh Subedee wrote: > > Hi, > > I am new to map server. I have been playing with it and finding it > interesting. I have a shape file with database containing different > area (polygon) codes. Let's say I have x.dbf file for a x.shp file and > it contains a row with polygon code (I don't worry about layers). > > I want to color one or more area as desired by the user. e.g. If a > user desires to color area number 12 that corresponds to a region > (polygon) in the map, the desired area should be colored with specific > color. > > Is it possible to do such thing with MapServer? Is it possible to > dynamically assign specific color to the polygon area with it? > > Thanks a lot! > > Mukesh > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From greenkov at gmail.com Thu Nov 4 18:05:39 2010 From: greenkov at gmail.com (Alexander Petkov) Date: Thu, 4 Nov 2010 19:05:39 -0600 Subject: [mapserver-users] Filter elements on multiple layers In-Reply-To: <886898.23936.qm@web29703.mail.ird.yahoo.com> References: <550816.69629.qm@web29718.mail.ird.yahoo.com> <886898.23936.qm@web29703.mail.ird.yahoo.com> Message-ID: That is good to know that you solved it, thank you for posting the solution. Alex On Thu, Nov 4, 2010 at 1:48 AM, leene wrote: > Hi, > thank you Alex. I found the solution in the same thread, you've posted: > http://www.mail-archive.com/mapserver-users at lists.osgeo.org/msg10704.html > > I must add the of the whole map to the filter and I'll get all > matches. > > Regards, > Cathleen > > > ________________________________ > Von: Alexander Petkov > An: leene > CC: mapserver-users at lists.osgeo.org > Gesendet: Mittwoch, den 3. November 2010, 20:30:39 Uhr > Betreff: Re: [mapserver-users] Filter elements on multiple layers > > Hmm, I just tested this--it seems that you'd always get features where > the envelopes for the results from each layer spatially intersect, > (i.e. anything within the blue rectangle of your image). > > Alex > > On Wed, Nov 3, 2010 at 11:37 AM, Alexander Petkov > wrote: >> You might have to specify your filter for each typename, as in: >> >> http://my-server/fcgi-bin/mapserv&map=mymap.map&service=WFS&version=1.1.0&request=GetFeature&typename=layer1,layer2&FILTER=(...)(...) >> >> >> See this thread: >> http://www.mail-archive.com/mapserver-users at lists.osgeo.org/msg10695.html >> >> >> Alex >> >> On Wed, Nov 3, 2010 at 8:44 AM, leene wrote: >>> Hey, >>> I have a problem with filtering elements of multiple layers. >>> My mapserver (version 5.2.1) is configured with two layers - layer1 and >>> layer2. For better understanding see attachment: layer1 has black crosses >>> and layer2 has red points. Now I try to get features by id - but I don't >>> know the corresponding layer. Therefore I send the following request: >>> >>> >>> http://my-server/fcgi-bin/mapserv?map=mymap.map&service=WFS&version=1.1.0&request=GetFeature&typename=layer1,layer2&filter= >>> >>> >>> IDidAofLayer1 >>> >>> IDidBofLayer1 >>> >>> IDidCofLayer2 >>> >>> >>> In the response are some features missing but they exist in the >>> shapefile. I >>> found out following rules: >>> 1. All features of layer2 (red points in attachment) are returned >>> correctly. >>> 2. Features of layer1 (black crosses) which are inside the blue frame are >>> also returned correctly. >>> 3. Features of layer1 which are outside the blue frame (bounds of layer2) >>> are missing - if I filter the missing elements only on layer1 I get the >>> features. >>> >>> Is this a bug or where is my mistake? >>> >>> Regards, >>> Cathleen >>> >>> By the way: Is there a date of mapserver 6 release? >>> http://trac.osgeo.org/mapserver/wiki/60ReleasePlan doesn't seem to be up >>> to >>> date. >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> > > From trood3 at comcast.net Thu Nov 4 21:00:14 2010 From: trood3 at comcast.net (Tim Rood) Date: Thu, 4 Nov 2010 21:00:14 -0700 Subject: [mapserver-users] Server Downtime? Message-ID: <007701cb7c9d$f40d1980$dc274c80$@net> Hello, I get the message below when I attempt to run this tutorial that hits the mapserver.org server. It can't be Temporarily Unavailable all the time. Does anyone see a problem here? Thanks . Tim Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. _____ Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch proxy_html/3.0.0 mod_wsgi/2.5 Python/2.5.2 Server at demo.mapserver.org Port 80 http://demo.mapserver.org/cgi-bin/mapserv?map=/osgeo/mapserver/tutorial/htdo cs/example2.map&layer=states&zoom=0&mode=browse&root=/tutorial&program=/cgi- bin/mapserv&map_web=template+example2-2.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Thu Nov 4 21:43:45 2010 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 5 Nov 2010 00:43:45 -0400 Subject: [mapserver-users] Server Downtime? In-Reply-To: <007701cb7c9d$f40d1980$dc274c80$@net> References: <007701cb7c9d$f40d1980$dc274c80$@net> Message-ID: On Fri, Nov 5, 2010 at 12:00 AM, Tim Rood wrote: > Hello, > > I get the message below when I attempt to run this tutorial that hits the > mapserver.org server. It can?t be Temporarily Unavailable all the time. > Does anyone see a problem here? Tim, I have restarted fgs apache on that server and now it is ok. -- ---------------------------------------+-------------------------------------- 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 oliver.wesp at gmail.com Fri Nov 5 01:34:03 2010 From: oliver.wesp at gmail.com (Oliver Wesp) Date: Fri, 5 Nov 2010 09:34:03 +0100 Subject: [mapserver-users] WMS GetFeatureInfo returning no results with 5.6 Message-ID: Dear List, I'm trying to execute a GetFeatureInfo Request to an S57-File via OGR. The Request works fine in 5.2.0 returning all the attributes. Trying the same request and the same mapfile with Mapserver 5.6.1 or 5.6.5 I just get "Search returned no results.". Did I miss some configuration changes from 5.2 to 5.6 or is something else going wrong? All this happens on a Windows Server 2003 Box. Below is the mapfile. Any help ist appreciated. best regards, Oliver MAP NAME WMS STATUS ON UNITS DD EXTENT 5.3120 49.577 31 67 TRANSPARENT ON IMAGETYPE PNG DEBUG 5 CONFIG "MS_ERRORFILE" "c:\wms\logs\mapserver.log" CONFIG "CPL_DEBUG" "ON" #turns on gdal debugging CONFIG "PROJ_DEBUG" "ON" #turns on proj debugging #config options fuer gdal CONFIG OGR_S57_OPTIONS "RETURN_PRIMITIVES=ON,RETURN_LINKAGES=ON,LNAM_REFS=ON,SPLIT_MULTIPOINT=ON,ADD_SOUNDG_DEPTH=ON" CONFIG GDAL_DATA "c:\Programme (x86)\FWTools2.4.7\data" RESOLUTION 96 OUTPUTFORMAT NAME 'PNG' DRIVER AGG/PNG #Ausgabe von GD auf AGG gewechselt, das GD Probleme mit Transparenzen hat IMAGEMODE RGB MIMETYPE 'image/png' EXTENSION 'png' END PROJECTION "init=epsg:4326" #Standardprojektion. Alle moeglichen Projektionen werden in WEB.METADATA.WMS_SRS gesetzt END WEB METADATA "wms_name" "WMS" "wms_title" "WMS" "wms_onlineresource" "http://192.168.1.230/cgi-bin/mapserver/mapserv.exe?map=c:\wms\Mapfiles\master.map&" "wms_srs" "EPSG:4326 EPSG:31466 EPSG:31467 EPSG:31468 EPSG:31469 EPSG:2397 EPSG:2398 EPSG:2399 EPSG:25832 EPSG:25833 EPSG:4258" END END LAYER NAME COVR GROUP "OVERVIEW" TYPE POLYGON STATUS ON CONNECTIONTYPE OGR PROCESSING "CLOSE_CONNECTION=DEFER" CONNECTION "c:\s57\ENC\DE110000.000" DATA "36" FILTERITEM 'PRIM' FILTER '3' CLASS NAME "Coverage" STYLE COLOR 203 205 127 OUTLINECOLOR 0 0 0 END END PROJECTION "init=epsg:4326" END DUMP TRUE TEMPLATE dummy.html METADATA "wms_abstract" "Coverage" "wms_title" "Coverage (COVR)" "wms_include_items" "all" "wms_srs" "EPSG:4326" END END END From oliver.wesp at gmail.com Fri Nov 5 01:46:40 2010 From: oliver.wesp at gmail.com (Oliver Wesp) Date: Fri, 5 Nov 2010 09:46:40 +0100 Subject: [mapserver-users] Re: WMS GetFeatureInfo returning no results with 5.6 In-Reply-To: References: Message-ID: Found out that it works as soon as I define a TOLERANCE of at least 1 Pixel for the Layer. Thats fine for me also I don't know if that is intended. Oliver 2010/11/5 Oliver Wesp : > Dear List, > > I'm trying to execute a GetFeatureInfo Request to an S57-File via OGR. > The Request works fine in 5.2.0 returning all the attributes. > Trying the same request and the same mapfile with Mapserver 5.6.1 or > 5.6.5 I just get "Search returned no results.". > > Did I miss some configuration changes from 5.2 to 5.6 or is something > else going wrong? > > All this happens on a Windows Server 2003 Box. > > Below is the mapfile. > > Any help ist appreciated. > > best regards, > Oliver > > MAP > ?NAME WMS > ?STATUS ON > ?UNITS DD > ?EXTENT 5.3120 49.577 31 67 > ?TRANSPARENT ON > ?IMAGETYPE PNG > ?DEBUG 5 > ?CONFIG "MS_ERRORFILE" "c:\wms\logs\mapserver.log" > ?CONFIG "CPL_DEBUG" "ON" #turns on gdal debugging > ?CONFIG "PROJ_DEBUG" "ON" #turns on proj debugging > ?#config options fuer gdal > ?CONFIG OGR_S57_OPTIONS > "RETURN_PRIMITIVES=ON,RETURN_LINKAGES=ON,LNAM_REFS=ON,SPLIT_MULTIPOINT=ON,ADD_SOUNDG_DEPTH=ON" > ?CONFIG GDAL_DATA "c:\Programme (x86)\FWTools2.4.7\data" > ?RESOLUTION 96 > > ?OUTPUTFORMAT > ? ?NAME 'PNG' > ? ?DRIVER AGG/PNG #Ausgabe von GD auf AGG gewechselt, das GD Probleme > mit Transparenzen hat > ? ?IMAGEMODE RGB > ? ? ? ?MIMETYPE 'image/png' > ? ? ? ?EXTENSION 'png' > END > > PROJECTION > ? ? ? ?"init=epsg:4326" #Standardprojektion. Alle moeglichen Projektionen > werden in WEB.METADATA.WMS_SRS gesetzt > END > > WEB > ? ? ? ?METADATA > ? ? ? ? ? ? ? ?"wms_name" "WMS" > ? ? ? ? ? ? ? ?"wms_title" "WMS" > ? ? ? ? ? ? ? ?"wms_onlineresource" > "http://192.168.1.230/cgi-bin/mapserver/mapserv.exe?map=c:\wms\Mapfiles\master.map&" > ? ? ? ? ? ? ? ?"wms_srs" "EPSG:4326 EPSG:31466 EPSG:31467 EPSG:31468 EPSG:31469 > EPSG:2397 EPSG:2398 EPSG:2399 EPSG:25832 EPSG:25833 EPSG:4258" > ? ? ? ?END > ?END > > ?LAYER > ? ? ? ?NAME COVR > ? ? ? ?GROUP "OVERVIEW" > ? ? ? ?TYPE POLYGON > ? ? ? ?STATUS ON > ? ? ? ?CONNECTIONTYPE OGR > ? ? ? ?PROCESSING "CLOSE_CONNECTION=DEFER" > ? ? ? ?CONNECTION "c:\s57\ENC\DE110000.000" > ? ? ? ?DATA "36" > ? ? ? ?FILTERITEM 'PRIM' > ? ? ? ?FILTER '3' > ? ? ? ?CLASS > ? ? ? ? ? ? ? ?NAME "Coverage" > ? ? ? ? ? ? ? ?STYLE > ? ? ? ? ? ? ? ? ? ? ? ?COLOR 203 205 127 > ? ? ? ? ? ? ? ? ? ? ? ?OUTLINECOLOR 0 0 0 > ? ? ? ? ? ? ? ?END > ? ? ? ?END > ? ? ? ?PROJECTION > ? ? ? ? ? ? ? ?"init=epsg:4326" > ? ? ? ?END > ? ? ? ?DUMP TRUE > ? ? ? ?TEMPLATE dummy.html > ? ? ? ?METADATA > ? ? ? ? ? ? ? ?"wms_abstract" "Coverage" > ? ? ? ? ? ? ? ?"wms_title" "Coverage (COVR)" > ? ? ? ? ? ? ? ?"wms_include_items" "all" > ? ? ? ? ? ? ? ?"wms_srs" "EPSG:4326" > ? ? ? ?END > ?END > ?END > From dmorissette at mapgears.com Fri Nov 5 05:36:07 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 05 Nov 2010 08:36:07 -0400 Subject: [mapserver-users] Server Downtime? In-Reply-To: References: <007701cb7c9d$f40d1980$dc274c80$@net> Message-ID: <4CD3FA37.8060702@mapgears.com> Frank Warmerdam wrote: > On Fri, Nov 5, 2010 at 12:00 AM, Tim Rood wrote: >> Hello, >> >> I get the message below when I attempt to run this tutorial that hits the >> mapserver.org server. It can?t be Temporarily Unavailable all the time. >> Does anyone see a problem here? > > Tim, > > I have restarted fgs apache on that server and now it > is ok. > > It seems that the VM was rebooted 8 days ago and there was apparently nothing to automatically start it on boot, that would explain why it was down. I just added the 'fgs start' command to the /etc/init.d/bootmisc.sh script so that it starts automatically on future reboots. Daniel -- Daniel Morissette http://www.mapgears.com/ From David.Fawcett at state.mn.us Fri Nov 5 06:42:50 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Fri, 5 Nov 2010 08:42:50 -0500 Subject: [mapserver-users] RE: DEM display In-Reply-To: <9188AB5935664040805E01E348A2B81D1BF68FD3@lacex1.afsc.ads> References: <9188AB5935664040805E01E348A2B81D1BF68FC5@lacex1.afsc.ads><9188AB5935664040805E01E348A2B81D1BF68FC6@lacex1.afsc.ads><9188AB5935664040805E01E348A2B81D1BF68FCE@lacex1.afsc.ads><9188AB5935664040805E01E348A2B81D1BF68FD0@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF68FD3@lacex1.afsc.ads> Message-ID: David, You can easily set up your hillshade image as one layer and turn it on for display. In addition to that, you can have your DEM as a second layer that is not displayed, but is available for query. I don't think that I have ever used the raster query functionality, but you can find some info here: http://trac.osgeo.org/mapserver/wiki/RasterQuery http://mapserver.org/input/raster.html#raster-query Is this what you were thinking? David. From: David Hildebrand [mailto:David.Hildebrand at afsc.ca] Sent: Thursday, November 04, 2010 4:26 PM To: mapserver-users at lists.osgeo.org Cc: Fawcett, David (MPCA) Subject: RE: [mapserver-users] RE: DEM display How can I combine a pre-rendered hillshade model with an elevation layer? Can I set the transparency of a layer? Is there a GDAL utility for rendering a combined hillshade/elevation model which will still retain the original elevation values for query? =========================== 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: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Fawcett, David (MPCA) Sent: Thursday, November 04, 2010 7:32 AM To: David Hildebrand; mapserver-users at lists.osgeo.org Subject: [mapserver-users] RE: DEM display I would pre-render all of my hillshades and then add them as simple raster layers. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of David Hildebrand Sent: Wednesday, November 03, 2010 6:25 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] DEM display I have an SRTM file in TIF format which I want to display in a shaded relief but I'm not sure of the approach I should take. Do I need to define classes and symbols for the layer (that would not help for the hillshade) or should I execute a script (PERL) on the server to create the image I need on the fly? Thanks for the tips. =========================== 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 aeskreis at gmail.com Fri Nov 5 09:54:22 2010 From: aeskreis at gmail.com (Adam Eskreis) Date: Fri, 5 Nov 2010 12:54:22 -0400 Subject: [mapserver-users] Tiger line file and mapserver Message-ID: Hello everyone. I'm having a problem with the Tiger line file in mapserver that I can't seem to work out. I am using mapserver as my backend and openlayers as my frontend. I'm not sure if my configuration is off, but I put on the layer in openlayers, and the angle of the lines seems to be a bit off. If you look at, for instance, openstreetmaps.org (who also uses the tiger file) in the area of new york city, all the blocks are perfect rectangles. However, in my map, these same boxes seem to represent more of a shape similar to a parallelogram with acute and obtuse angles at the corners. I inspected the code of openstreetmaps.org, and looked at their openlayers code. They have something similar to this for their map declaration: map = new OpenLayers.Map('map', { controls: [ new OpenLayers.Control.PanZoomBar() ], units: "m", maxResolution: "156543.0339", numZoomLevels: 20, displayProjection: new OpenLayers.Projection("EPSG:4326") }); I tried using this on my map (which also uses the tiger file), but I cannot get it to scale properly. On the most zoomed in level, new york city is just a tiny dot, and if I zoom out I can't see anything. Here is my mapfile code: MAP NAME "basemap" STATUS on SIZE 800 600 EXTENT -180 -90 180 90 IMAGECOLOR 250 250 250 IMAGETYPE 'AGGA' CONFIG "MS_ERRORFILE" "/var/tmp/ms.log" DEBUG 5 WEB METADATA "wms_srs" "EPSG:4326" "wms_onlineresource" " http://mydomain.com/cgi-bin/mapserv?map=/var/www/htdocs/dev/modules/maps/basemap.map " END END PROJECTION "init=epsg:4326" END FONTSET "fonts.txt" OUTPUTFORMAT NAME "AGGA" MIMETYPE "image/png" DRIVER "AGG/PNG" IMAGEMODE "RGBA" TRANSPARENT TRUE EXTENSION "PNG" FORMATOPTION "INTERLACE=FALSE" END LAYER name lines GROUP basemap TYPE LINE PROJECTION "init=epsg:4326" END STATUS on CONNECTIONTYPE postgis CONNECTION "[removed]" DATA "the_geom from tiger_lines" CLASS style color 131 139 131 width 24 antialias true end style color 200 200 200 width 22 antialias true end END END END Does anyone see anything that might be the reason why I cannot get my map to scale properly using the same exact file and openlayers code as openstreetmap.org? Thanks, -Adam -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Fri Nov 5 10:08:00 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Fri, 5 Nov 2010 12:08:00 -0500 Subject: [mapserver-users] Tiger line file and mapserver In-Reply-To: References: Message-ID: It could be that your data is in a geographic spatial reference system and that the OSM tiles are in a World Mercator spatial reference system (epsg:900913). David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Adam Eskreis Sent: Friday, November 05, 2010 11:54 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Tiger line file and mapserver Hello everyone. I'm having a problem with the Tiger line file in mapserver that I can't seem to work out. I am using mapserver as my backend and openlayers as my frontend. I'm not sure if my configuration is off, but I put on the layer in openlayers, and the angle of the lines seems to be a bit off. If you look at, for instance, openstreetmaps.org (who also uses the tiger file) in the area of new york city, all the blocks are perfect rectangles. However, in my map, these same boxes seem to represent more of a shape similar to a parallelogram with acute and obtuse angles at the corners. I inspected the code of openstreetmaps.org, and looked at their openlayers code. They have something similar to this for their map declaration: map = new OpenLayers.Map('map', { controls: [ new OpenLayers.Control.PanZoomBar() ], units: "m", maxResolution: "156543.0339", numZoomLevels: 20, displayProjection: new OpenLayers.Projection("EPSG:4326") }); I tried using this on my map (which also uses the tiger file), but I cannot get it to scale properly. On the most zoomed in level, new york city is just a tiny dot, and if I zoom out I can't see anything. Here is my mapfile code: MAP NAME "basemap" STATUS on SIZE 800 600 EXTENT -180 -90 180 90 IMAGECOLOR 250 250 250 IMAGETYPE 'AGGA' CONFIG "MS_ERRORFILE" "/var/tmp/ms.log" DEBUG 5 WEB METADATA "wms_srs" "EPSG:4326" "wms_onlineresource" "http://mydomain.com/cgi-bin/mapserv?map=/var/www/htdocs/dev/modules/maps/basemap.map" END END PROJECTION "init=epsg:4326" END FONTSET "fonts.txt" OUTPUTFORMAT NAME "AGGA" MIMETYPE "image/png" DRIVER "AGG/PNG" IMAGEMODE "RGBA" TRANSPARENT TRUE EXTENSION "PNG" FORMATOPTION "INTERLACE=FALSE" END LAYER name lines GROUP basemap TYPE LINE PROJECTION "init=epsg:4326" END STATUS on CONNECTIONTYPE postgis CONNECTION "[removed]" DATA "the_geom from tiger_lines" CLASS style color 131 139 131 width 24 antialias true end style color 200 200 200 width 22 antialias true end END END END Does anyone see anything that might be the reason why I cannot get my map to scale properly using the same exact file and openlayers code as openstreetmap.org? Thanks, -Adam -------------- next part -------------- An HTML attachment was scrubbed... URL: From aeskreis at gmail.com Fri Nov 5 10:12:22 2010 From: aeskreis at gmail.com (Adam Eskreis) Date: Fri, 5 Nov 2010 13:12:22 -0400 Subject: [mapserver-users] Tiger line file and mapserver In-Reply-To: References: Message-ID: So would that mean that they converted the entire tiger line file to a different projection? I will give that a try. Thank you for the suggestion. On Fri, Nov 5, 2010 at 1:08 PM, Fawcett, David (MPCA) < David.Fawcett at state.mn.us> wrote: > It could be that your data is in a geographic spatial reference system > and that the OSM tiles are in a World Mercator spatial reference system > (epsg:900913). > > > > David. > > > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Adam Eskreis > *Sent:* Friday, November 05, 2010 11:54 AM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] Tiger line file and mapserver > > > > Hello everyone. > > I'm having a problem with the Tiger line file in mapserver that I can't > seem to work out. I am using mapserver as my backend and openlayers as my > frontend. I'm not sure if my configuration is off, but I put on the layer > in openlayers, and the angle of the lines seems to be a bit off. If you > look at, for instance, openstreetmaps.org (who also uses the tiger file) > in the area of new york city, all the blocks are perfect rectangles. > However, in my map, these same boxes seem to represent more of a shape > similar to a parallelogram with acute and obtuse angles at the corners. > > I inspected the code of openstreetmaps.org, and looked at their openlayers > code. They have something similar to this for their map declaration: > > map = new OpenLayers.Map('map', { > controls: [ > new OpenLayers.Control.PanZoomBar() > ], > units: "m", > maxResolution: "156543.0339", > numZoomLevels: 20, > displayProjection: new OpenLayers.Projection("EPSG:4326") > }); > > I tried using this on my map (which also uses the tiger file), but I cannot > get it to scale properly. On the most zoomed in level, new york city is > just a tiny dot, and if I zoom out I can't see anything. Here is my mapfile > code: > > MAP > NAME "basemap" > STATUS on > SIZE 800 600 > EXTENT -180 -90 180 90 > IMAGECOLOR 250 250 250 > IMAGETYPE 'AGGA' > CONFIG "MS_ERRORFILE" "/var/tmp/ms.log" > DEBUG 5 > WEB > METADATA > "wms_srs" "EPSG:4326" > "wms_onlineresource" " > http://mydomain.com/cgi-bin/mapserv?map=/var/www/htdocs/dev/modules/maps/basemap.map > " > END > END > PROJECTION > "init=epsg:4326" > END > > FONTSET "fonts.txt" > > OUTPUTFORMAT > NAME "AGGA" > MIMETYPE "image/png" > DRIVER "AGG/PNG" > IMAGEMODE "RGBA" > TRANSPARENT TRUE > EXTENSION "PNG" > FORMATOPTION "INTERLACE=FALSE" > END > LAYER > name lines > GROUP basemap > TYPE LINE > PROJECTION > "init=epsg:4326" > END > STATUS on > CONNECTIONTYPE postgis > CONNECTION "[removed]" > DATA "the_geom from tiger_lines" > CLASS > style > color 131 139 131 > width 24 > antialias true > end > style > color 200 200 200 > width 22 > antialias true > end > END > END > END > > Does anyone see anything that might be the reason why I cannot get my map > to scale properly using the same exact file and openlayers code as > openstreetmap.org? > > Thanks, > > -Adam > -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Fri Nov 5 11:23:03 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Fri, 5 Nov 2010 13:23:03 -0500 Subject: [mapserver-users] Tiger line file and mapserver In-Reply-To: References: Message-ID: Adam, There was a TIGER import into OSM, but many of the ways have been edited since the original import. >From the display standpoint, the spatial reference system (SRS) of the input data set is not very important. It is the output SRS that is important. I think that you will want to set your output projection to world Mercator (epsg:900913 or epsg:3785) http://spatialreference.org/ref/epsg/3785/ If you use 900913, make sure that there is an entry in your epsg database for it, you may need to add it. With MapServer, you can re-project on the fly, so your data doesn't need to be in the output SRS, but you can make your map rendering more efficient by pre-projecting the data to the output SRS. David. From: Adam Eskreis [mailto:aeskreis at gmail.com] Sent: Friday, November 05, 2010 12:12 PM To: Fawcett, David (MPCA) Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Tiger line file and mapserver So would that mean that they converted the entire tiger line file to a different projection? I will give that a try. Thank you for the suggestion. On Fri, Nov 5, 2010 at 1:08 PM, Fawcett, David (MPCA) > wrote: It could be that your data is in a geographic spatial reference system and that the OSM tiles are in a World Mercator spatial reference system (epsg:900913). David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Adam Eskreis Sent: Friday, November 05, 2010 11:54 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Tiger line file and mapserver Hello everyone. I'm having a problem with the Tiger line file in mapserver that I can't seem to work out. I am using mapserver as my backend and openlayers as my frontend. I'm not sure if my configuration is off, but I put on the layer in openlayers, and the angle of the lines seems to be a bit off. If you look at, for instance, openstreetmaps.org (who also uses the tiger file) in the area of new york city, all the blocks are perfect rectangles. However, in my map, these same boxes seem to represent more of a shape similar to a parallelogram with acute and obtuse angles at the corners. I inspected the code of openstreetmaps.org, and looked at their openlayers code. They have something similar to this for their map declaration: map = new OpenLayers.Map('map', { controls: [ new OpenLayers.Control.PanZoomBar() ], units: "m", maxResolution: "156543.0339", numZoomLevels: 20, displayProjection: new OpenLayers.Projection("EPSG:4326") }); I tried using this on my map (which also uses the tiger file), but I cannot get it to scale properly. On the most zoomed in level, new york city is just a tiny dot, and if I zoom out I can't see anything. Here is my mapfile code: MAP NAME "basemap" STATUS on SIZE 800 600 EXTENT -180 -90 180 90 IMAGECOLOR 250 250 250 IMAGETYPE 'AGGA' CONFIG "MS_ERRORFILE" "/var/tmp/ms.log" DEBUG 5 WEB METADATA "wms_srs" "EPSG:4326" "wms_onlineresource" "http://mydomain.com/cgi-bin/mapserv?map=/var/www/htdocs/dev/modules/maps/basemap.map" END END PROJECTION "init=epsg:4326" END FONTSET "fonts.txt" OUTPUTFORMAT NAME "AGGA" MIMETYPE "image/png" DRIVER "AGG/PNG" IMAGEMODE "RGBA" TRANSPARENT TRUE EXTENSION "PNG" FORMATOPTION "INTERLACE=FALSE" END LAYER name lines GROUP basemap TYPE LINE PROJECTION "init=epsg:4326" END STATUS on CONNECTIONTYPE postgis CONNECTION "[removed]" DATA "the_geom from tiger_lines" CLASS style color 131 139 131 width 24 antialias true end style color 200 200 200 width 22 antialias true end END END END Does anyone see anything that might be the reason why I cannot get my map to scale properly using the same exact file and openlayers code as openstreetmap.org? Thanks, -Adam -------------- next part -------------- An HTML attachment was scrubbed... URL: From aeskreis at gmail.com Fri Nov 5 13:43:12 2010 From: aeskreis at gmail.com (Adam Eskreis) Date: Fri, 5 Nov 2010 16:43:12 -0400 Subject: [mapserver-users] Tiger line file and mapserver In-Reply-To: References: Message-ID: David, thank you so much for your help, you solved my problem 100%. I had no idea mapserver could reproject on the fly! that is so cool. Anyway, thanks a lot. -Adam On Fri, Nov 5, 2010 at 2:23 PM, Fawcett, David (MPCA) < David.Fawcett at state.mn.us> wrote: > Adam, > > > > There was a TIGER import into OSM, but many of the ways have been edited > since the original import. > > > > From the display standpoint, the spatial reference system (SRS) of the > input data set is not very important. It is the output SRS that is > important. I think that you will want to set your output projection to > world Mercator (epsg:900913 or epsg:3785) > http://spatialreference.org/ref/epsg/3785/ > > > > If you use 900913, make sure that there is an entry in your epsg database > for it, you may need to add it. > > > > With MapServer, you can re-project on the fly, so your data doesn?t need to > be in the output SRS, but you can make your map rendering more efficient by > pre-projecting the data to the output SRS. > > > > David. > > > > *From:* Adam Eskreis [mailto:aeskreis at gmail.com] > *Sent:* Friday, November 05, 2010 12:12 PM > *To:* Fawcett, David (MPCA) > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Tiger line file and mapserver > > > > So would that mean that they converted the entire tiger line file to a > different projection? I will give that a try. Thank you for the > suggestion. > > On Fri, Nov 5, 2010 at 1:08 PM, Fawcett, David (MPCA) < > David.Fawcett at state.mn.us> wrote: > > It could be that your data is in a geographic spatial reference system and > that the OSM tiles are in a World Mercator spatial reference system > (epsg:900913). > > > > David. > > > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Adam Eskreis > *Sent:* Friday, November 05, 2010 11:54 AM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] Tiger line file and mapserver > > > > Hello everyone. > > I'm having a problem with the Tiger line file in mapserver that I can't > seem to work out. I am using mapserver as my backend and openlayers as my > frontend. I'm not sure if my configuration is off, but I put on the layer > in openlayers, and the angle of the lines seems to be a bit off. If you > look at, for instance, openstreetmaps.org (who also uses the tiger file) > in the area of new york city, all the blocks are perfect rectangles. > However, in my map, these same boxes seem to represent more of a shape > similar to a parallelogram with acute and obtuse angles at the corners. > > I inspected the code of openstreetmaps.org, and looked at their openlayers > code. They have something similar to this for their map declaration: > > map = new OpenLayers.Map('map', { > controls: [ > new OpenLayers.Control.PanZoomBar() > ], > units: "m", > maxResolution: "156543.0339", > numZoomLevels: 20, > displayProjection: new OpenLayers.Projection("EPSG:4326") > }); > > I tried using this on my map (which also uses the tiger file), but I cannot > get it to scale properly. On the most zoomed in level, new york city is > just a tiny dot, and if I zoom out I can't see anything. Here is my mapfile > code: > > MAP > NAME "basemap" > STATUS on > SIZE 800 600 > EXTENT -180 -90 180 90 > IMAGECOLOR 250 250 250 > IMAGETYPE 'AGGA' > CONFIG "MS_ERRORFILE" "/var/tmp/ms.log" > DEBUG 5 > WEB > METADATA > "wms_srs" "EPSG:4326" > "wms_onlineresource" " > http://mydomain.com/cgi-bin/mapserv?map=/var/www/htdocs/dev/modules/maps/basemap.map > " > END > END > PROJECTION > "init=epsg:4326" > END > > FONTSET "fonts.txt" > > OUTPUTFORMAT > NAME "AGGA" > MIMETYPE "image/png" > DRIVER "AGG/PNG" > IMAGEMODE "RGBA" > TRANSPARENT TRUE > EXTENSION "PNG" > FORMATOPTION "INTERLACE=FALSE" > END > LAYER > name lines > GROUP basemap > TYPE LINE > PROJECTION > "init=epsg:4326" > END > STATUS on > CONNECTIONTYPE postgis > CONNECTION "[removed]" > DATA "the_geom from tiger_lines" > CLASS > style > color 131 139 131 > width 24 > antialias true > end > style > color 200 200 200 > width 22 > antialias true > end > END > END > END > > Does anyone see anything that might be the reason why I cannot get my map > to scale properly using the same exact file and openlayers code as > openstreetmap.org? > > Thanks, > > -Adam > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Hildebrand at afsc.ca Fri Nov 5 15:15:16 2010 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Fri, 5 Nov 2010 16:15:16 -0600 Subject: [mapserver-users] RE: DEM display References: <9188AB5935664040805E01E348A2B81D1BF68FC5@lacex1.afsc.ads><9188AB5935664040805E01E348A2B81D1BF68FC6@lacex1.afsc.ads><9188AB5935664040805E01E348A2B81D1BF68FCE@lacex1.afsc.ads><9188AB5935664040805E01E348A2B81D1BF68FD0@lacex1.afsc.ads><9188AB5935664040805E01E348A2B81D1BF68FD3@lacex1.afsc.ads> Message-ID: <9188AB5935664040805E01E348A2B81D1BF68FD7@lacex1.afsc.ads> Actually, I want to show the DEM as a colour-coded elevation raster. However, I also want to incorporate the hillshade model. I think I can do that by setting the OPACITY of the hillshade. =========================== 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: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Fawcett, David (MPCA) Sent: Friday, November 05, 2010 7:43 AM To: David Hildebrand; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: DEM display David, You can easily set up your hillshade image as one layer and turn it on for display. In addition to that, you can have your DEM as a second layer that is not displayed, but is available for query. I don't think that I have ever used the raster query functionality, but you can find some info here: http://trac.osgeo.org/mapserver/wiki/RasterQuery http://mapserver.org/input/raster.html#raster-query Is this what you were thinking? David. From: David Hildebrand [mailto:David.Hildebrand at afsc.ca] Sent: Thursday, November 04, 2010 4:26 PM To: mapserver-users at lists.osgeo.org Cc: Fawcett, David (MPCA) Subject: RE: [mapserver-users] RE: DEM display How can I combine a pre-rendered hillshade model with an elevation layer? Can I set the transparency of a layer? Is there a GDAL utility for rendering a combined hillshade/elevation model which will still retain the original elevation values for query? =========================== 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: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Fawcett, David (MPCA) Sent: Thursday, November 04, 2010 7:32 AM To: David Hildebrand; mapserver-users at lists.osgeo.org Subject: [mapserver-users] RE: DEM display I would pre-render all of my hillshades and then add them as simple raster layers. David. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of David Hildebrand Sent: Wednesday, November 03, 2010 6:25 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] DEM display I have an SRTM file in TIF format which I want to display in a shaded relief but I'm not sure of the approach I should take. Do I need to define classes and symbols for the layer (that would not help for the hillshade) or should I execute a script (PERL) on the server to create the image I need on the fly? Thanks for the tips. =========================== David V. Hildebrand Agriculture Financial Services Corporation (403) 782-8239 www.afsc.ca > This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and/or privileged information. Please contact Agriculture Financial Services Corporation immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. Please consider the environment before printing this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Sat Nov 6 07:34:26 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Sat, 6 Nov 2010 09:34:26 -0500 Subject: [mapserver-users] multiline label and two problems(different font sizes, avoid overlapping) In-Reply-To: <1288855099668-5704351.post@n2.nabble.com> References: <1288855099668-5704351.post@n2.nabble.com> Message-ID: Hi Cris: This is a tough nut to crack. You can't do within text formatting which leaves your current approach. There's no way to really do this absolutely reliably I'm afraid. Drawing twice is your only option. Here are some ideas to make it more robust: - With FORCE TRUE you should be able to tweak the offsets based on a set POSITION (e.g. CC) so that both labels will display - With FORCE FALSE (the default) you can then play with the BUFFER value to reserve space around the labels. The trick is to use a negative value, that allows labels to get really close to one another, you can even allow a little overlap. The value is given in pixels. - Use label PRIORITY to get the labels for these features in the same "batch". This means the two sets of labels will be processed at the same time. If given the highest priority you can avoid collisions with other labels and maximize the chance of seeing both. One last idea would be to create a special labeling version of your data. You'd store each point in the dataset twice, one right after the other and add an attribute to say which point should be labeled with label scheme 1 vs. label scheme 2. Then you'd use different CLASSes based on that new attribute. The data would have to be sorted so the features would draw one right after the other. The idea is to get the two labels right next to one another in the label cache. That would greatly increase the chances of being drawn together. All that said, if there's a lot of potential overlap between the features/labels you're trying to do this for then I think you're still going to be dealing the partials a lot. If the features are scattered then you have a chance. Steve ________________________________________ From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] On Behalf Of cris [oanacristina22 at gmail.com] Sent: Thursday, November 04, 2010 2:18 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] multiline label and two problems(different font sizes, avoid overlapping) Hi there! I am trying to obtain a multi-line label , by concatenating two fields ([name 1],[name2]) from a point shapefile . This was obtained by using TEXT ([name 1]=[name2]), "=" being my wrapping character and using FORCE OFF and POSITION set to AUTO to avoid overlapping. The beauty comes when I try to get different font sizes for the two lines. I stopped concatenating fields with TEXT and just labeled the same point twice with an OFFSET to get my 2-line label with different font sizes. The problem this time is that these labels are set to FORCE OFF to avoid massive cramming (POSITION was set to CC). Therefore, sometimes just [name1] is displayed and sometimes just [name2], rarely the two together. If I change them to FORCE ON, the labels are badly overlapping So how could I solve this problem of having a 2-line label from a point shapefile, lines with different font sizes and avoid overlapping, having the same items displayed? Any ideas are much appreciated! Thanks a lot! Cris -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/multiline-label-and-two-problems-different-font-sizes-avoid-overlapping-tp5704351p5704351.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 amercader.dev at gmail.com Sat Nov 6 09:54:56 2010 From: amercader.dev at gmail.com (=?ISO-8859-1?Q?Adri=E0_Mercader?=) Date: Sat, 6 Nov 2010 16:54:56 +0000 Subject: [mapserver-users] XSL for WMS capabilities In-Reply-To: References: <4CD2C006.2000802@usgs.gov> Message-ID: Yes, the WMS Inspector uses XSLT to generate HTML reports from GetCapabilities response. Here are the XSL files for WMS versions 1.1.1 and 1.3.0: https://github.com/amercader/WMS-Inspector/blob/master/src/chrome/content/wmsinspector/xsl/wms_1.1.1.xsl https://github.com/amercader/WMS-Inspector/blob/master/src/chrome/content/wmsinspector/xsl/wms_1.3.0.xsl They use some entities defined here; https://github.com/amercader/WMS-Inspector/blob/master/src/chrome/locale/en-US/wmsinspector/strings.dtd Hope it helps, Adri? On 4 November 2010 18:14, Thomas Gratier wrote: > Hello, > > See WMS Inspector Firefox plugin code. It renders directly wms into html so > I suppose there is behind an XSLT process for WMS. > > Regards > > ThomasG > GIS specialist > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Adri? Mercader ----------------------------- http://amercader.net From o.bedel at alkante.com Mon Nov 8 01:39:10 2010 From: o.bedel at alkante.com (Olivier Bedel) Date: Mon, 08 Nov 2010 10:39:10 +0100 Subject: [mapserver-users] Problem with wfs.php In-Reply-To: References: <1763291379.36.1286963498334.JavaMail.root@linux12> <1005782596.38.1286963709739.JavaMail.root@linux12> Message-ID: <4CD7C53E.9060503@alkante.com> Richard, I get the same error with your request. Your geometry filter is quite complex. Have you tried using polygons with no holes ? Another thing to try is to split your multipolygon filter into multiple single polygon filters. It could look like : polygon1 polygon2 polygon3 ..... Regards, Olivier. Le 04/11/2010 09:33, Richard LEHAUT a ?crit : > Hi, > I've a new problem. > The script is correct for a simple geometry. The file is a script with > a geometry complex. > > I got a result when I query my mapserver. But, with this server, i got > a error :"msWFSGetFeature(): WFS server error. Invalid or Unsupported > FILTER in GetFeature : Geometry PropertyName> > ". > > Can you test my script? do you get the same error? > > Thank's for you help > > Richard LEHAUT / Tiolebucheron > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Olivier BEDEL ALKANTE SAS Ing?nieur R&D SIG 1, rue du Ch?ne Morand 35 510 Cesson-S?vign? Bur: + 33 (0) 2 99 22 25 70 fax : + 33 (0) 2 99 32 12 76 -------------- next part -------------- An HTML attachment was scrubbed... URL: From nikos at maich.gr Mon Nov 8 03:00:21 2010 From: nikos at maich.gr (nikos at maich.gr) Date: Mon, 8 Nov 2010 13:00:21 +0200 (EET) Subject: [mapserver-users] Usage of queryfile, savequery and searchmap. In-Reply-To: <20101107170010.7EB24E01E9E@lists.osgeo.org> References: <20101107170010.7EB24E01E9E@lists.osgeo.org> Message-ID: <2280.193.218.36.79.1289214021.squirrel@193.218.36.79> Hello, I would like a bit of advice and clarification on ms querymaps, queryfiles, savequery and the like... In my current application I call cgi mapserver as ... mapserv -nh > filename.html This in turn generates my images as well as my main template in where I then parse the main template only to extract a jason array (embedded in html comments) and return it back to the ajax call I use this array to update my calling main template, so user is able to pan/zoom I believe this approach is a kludge, and I see that MS has facilities for creating persistent maps generated from a query, which would then be used further for pan/zoom operations, using savequery, queryfile searchmap and the likes.. Could someone clarify the flow and usage of the above controls to be able to create and use persistent maps from querying? IIRC, one problem I had with my approach, when using .&queryfile=blah..." was that I could not generate both a queryfile (to pass back) and a normal, (main) template for parsing back by calling mapserv as above. The html file created was huge, incorporating all the query templates into it also... regards nikos From tommasodb at googlemail.com Mon Nov 8 05:08:11 2010 From: tommasodb at googlemail.com (tommaso) Date: Mon, 8 Nov 2010 14:08:11 +0100 Subject: [mapserver-users] Labels within balloons Message-ID: Hallo List, Has someone already realized labels within balloons like google map? just labels, without links, pictures and so on. I have to produce statics maps - only images - so I cannot use openlayer or similar client-side technologies. Cheers, Tommaso -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastian.ovide at gmail.com Mon Nov 8 09:30:36 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Mon, 8 Nov 2010 17:30:36 +0000 Subject: [mapserver-users] Ubuntu or Redhat 5 ? Message-ID: Hi Guys, I have been using MapServer + TileCache with Ubuntu 10.04 and now with 10.10 for the last few months and it works very well.... build it is a matter of a couple of command lines and its administration is really stratigh forward. My department is considering what OS should we use for production and the alternatives are RedHat 5 or Ubuntu. What are your preferences and why ? Thanks all ! -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt at wildcolour.com Mon Nov 8 13:38:17 2010 From: matt at wildcolour.com (wildcolour) Date: Mon, 8 Nov 2010 13:38:17 -0800 (PST) Subject: [mapserver-users] Real life sample of a Mapfile for shp files on WMS Message-ID: <1289252297997-5718787.post@n2.nabble.com> Hi All I am a newbie, so sorry if it seems like I have no idea (it is probably because I really do have no idea). We have got mapserver up and running, and the WMS is working fine. I have read through the documentation, but I am lost without an more detailed example of a mapfile. I have about 6 shp files. Each file has different features that I want to make into different WMS layers. The data is for a topographical map. For example a file contains roads, power-lines and walking tracks. Each type of road, power-line etc have different tags (some also have the name of the road after a comma). I am assuming this is fairly normal so far. What I want to be able to do is apply a different class (not sure this is the right term) to the roads, the power-lines and the walking tracks. Looks like I need to do some kind of query in the map file. At this stage we have only each file acting as layer. Does anyone have an example mapfile (that splits a SHP file into different layers) that they would be happy to send? I am fairly confident the penny will drop for me if I can see a working example. Thanks Matt :) -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Real-life-sample-of-a-Mapfile-for-shp-files-on-WMS-tp5718787p5718787.html Sent from the Mapserver - User mailing list archive at Nabble.com. From David.Fawcett at state.mn.us Mon Nov 8 14:00:16 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Mon, 8 Nov 2010 16:00:16 -0600 Subject: [mapserver-users] Real life sample of a Mapfile for shp files on WMS In-Reply-To: <1289252297997-5718787.post@n2.nabble.com> References: <1289252297997-5718787.post@n2.nabble.com> Message-ID: Matt, It sounds like you have several different line layers and they are all currently being displayed in the default style (and that looks kind of crappy)... To make your data look better, you can use classes and styles within your layers. If you want all of the features within a layer to look the same, you just define one class within that layer. If you want to use different symbology based on an attribute of the data, you use multiple classes in the same layer. Individual classes have expressions that determine which features 'fall into' that class. Here is an example of a line layer with only one class. If you uncomment the first style, you 'stack' the styles and you get a colored line with an outline of a different color: LAYER NAME "simple line" TYPE LINE STATUS DEFAULT DATA 'rail_linesln3' CLASS #STYLE #WIDTH 6 #COLOR 120 120 120 #END STYLE WIDTH 4 COLOR 242 191 36 END END END In this case, if you had a column in your shapefile called ROAD_TYPE, you will get different symbology depending on the value of that column for that feature: LAYER NAME "my roads" TYPE LINE STATUS DEFAULT DATA 'roads' CLASSITEM "ROAD_TYPE" CLASS NAME 'Asphalt' EXPRESSION 'asphalt' STYLE WIDTH 6 COLOR 212 212 212 END END CLASS NAME 'Gravel' EXPRESSION 'gravel' STYLE WIDTH 4 COLOR 242 191 34 END END CLASS NAME 'Other' #any feature that doesn't match the above expressions gets caught by this class STYLE COLOR 255 51 51 WIDTH 3 END END Does this get you started? David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of wildcolour Sent: Monday, November 08, 2010 3:38 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Real life sample of a Mapfile for shp files on WMS Hi All I am a newbie, so sorry if it seems like I have no idea (it is probably because I really do have no idea). We have got mapserver up and running, and the WMS is working fine. I have read through the documentation, but I am lost without an more detailed example of a mapfile. I have about 6 shp files. Each file has different features that I want to make into different WMS layers. The data is for a topographical map. For example a file contains roads, power-lines and walking tracks. Each type of road, power-line etc have different tags (some also have the name of the road after a comma). I am assuming this is fairly normal so far. What I want to be able to do is apply a different class (not sure this is the right term) to the roads, the power-lines and the walking tracks. Looks like I need to do some kind of query in the map file. At this stage we have only each file acting as layer. Does anyone have an example mapfile (that splits a SHP file into different layers) that they would be happy to send? I am fairly confident the penny will drop for me if I can see a working example. Thanks Matt :) -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Real-life-sample-of-a-Mapfile-for-shp-files-on-WMS-tp5718787p5718787.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 David.Hildebrand at afsc.ca Mon Nov 8 14:41:24 2010 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Mon, 8 Nov 2010 15:41:24 -0700 Subject: [mapserver-users] testing WMS GetMap References: Message-ID: <9188AB5935664040805E01E348A2B81D1BF68FDE@lacex1.afsc.ads> I am trying to test my MapServer WMS configuration. I can successfully test the GetCapabilities. However, when I test GetMap I get the typical "HTTP 404: URL not found" error. The native mapserv CGI is functioning because I can serve maps. However, I may need a couple of pointers on WMS URL syntax. Do I need an SRS parameter if this is set in the map file? Do I need the BBOX parameter if I want the full extent as defined in the map file? What about WIDTH, HEIGHT and FORMAT? 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 matt at wildcolour.com Mon Nov 8 15:29:22 2010 From: matt at wildcolour.com (wildcolour) Date: Mon, 8 Nov 2010 15:29:22 -0800 (PST) Subject: [mapserver-users] RE: Real life sample of a Mapfile for shp files on WMS In-Reply-To: References: <1289252297997-5718787.post@n2.nabble.com> Message-ID: <1289258962828-5719102.post@n2.nabble.com> Thanks, this looks great. I will try it tonight, but I think is looking just right. One more related question. The column we are using is called 'Tag' and the seemed to have grouped the 'class' and the 'title' in the one column. For example all secondary roads have the tag "TVOP2" but roads with the name 'smith st' will look like this "TVOP2,SMITH ST" So my question is in the expression can I do a 'is like' query?? I am guessing somthing like this EXPRESSION 'TVOP2%' Thanks for the great support Matt :) -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Real-life-sample-of-a-Mapfile-for-shp-files-on-WMS-tp5718787p5719102.html Sent from the Mapserver - User mailing list archive at Nabble.com. From msubedee at yahoo.com Mon Nov 8 17:04:50 2010 From: msubedee at yahoo.com (Mukesh Subedee) Date: Mon, 8 Nov 2010 17:04:50 -0800 (PST) Subject: [mapserver-users] overriding the color in mapfile In-Reply-To: <4CD2DE80.163B.00A8.0@ci.stpaul.mn.us> Message-ID: <24592.66163.qm@web37406.mail.mud.yahoo.com> I have a simple mapfile with a layer and I want to override its color setting based on the different regions (polygons) in the shp file. e.g. my countries.shp is the shape file of the world with column 'name' as list of countries in dbf file. i want to change the color of the country polygon based on user's input (country name) as CGI request variable. I am confused how can I pass the CGI request in mapfile. It would be great if anyone wants to share a portion of mapfile where I have to pass the form element as the user option. Thanks in advance. Mukesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Mon Nov 8 21:17:19 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 9 Nov 2010 07:17:19 +0200 Subject: [mapserver-users] testing WMS GetMap References: <9188AB5935664040805E01E348A2B81D1BF68FDE@lacex1.afsc.ads> Message-ID: Hi, Mapserver documentation lists the compulsory parameters in section Test With a GetMap Request http://mapserver.org/ogc/wms_server.html -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: David Hildebrand L?hetetty: ti 9.11.2010 0:41 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] testing WMS GetMap I am trying to test my MapServer WMS configuration. I can successfully test the GetCapabilities. However, when I test GetMap I get the typical "HTTP 404: URL not found" error. The native mapserv CGI is functioning because I can serve maps. However, I may need a couple of pointers on WMS URL syntax. Do I need an SRS parameter if this is set in the map file? Do I need the BBOX parameter if I want the full extent as defined in the map file? What about WIDTH, HEIGHT and FORMAT? 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 jmckenna at gatewaygeomatics.com Mon Nov 8 21:41:07 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 09 Nov 2010 14:41:07 +0900 Subject: [mapserver-users] overriding the color in mapfile In-Reply-To: <24592.66163.qm@web37406.mail.mud.yahoo.com> References: <24592.66163.qm@web37406.mail.mud.yahoo.com> Message-ID: <4CD8DEF3.9030607@gatewaygeomatics.com> On 10-11-09 10:04 AM, Mukesh Subedee wrote: > I have a simple mapfile with a layer and I want to override its color > setting based on the different regions (polygons) in the shp file. e.g. > my countries.shp is the shape file of the world with column 'name' as > list of countries in dbf file. i want to change the color of the country > polygon based on user's input (country name) as CGI request variable. I > am confused how can I pass the CGI request in mapfile. It would be great > if anyone wants to share a portion of mapfile where I have to pass the > form element as the user option. > > Hello, You should be able to modify the mapfile parameters through the CGI interface, as documented at: http://www.mapserver.org/cgi/controls.html#changing-map-file-parameters-via-a-form-or-a-url Hopefully those notes help you a little. For more help you can also do a quick search in the email list's archives for your issue (such as: http://osgeo-org.1803224.n2.nabble.com/mapfile-text-modification-via-URL-td5456853.html#a5456853) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From graciafdez at gmail.com Tue Nov 9 01:22:14 2010 From: graciafdez at gmail.com (=?ISO-8859-1?Q?Gracia_Fern=E1ndez_L=F3pez?=) Date: Tue, 9 Nov 2010 10:22:14 +0100 Subject: [mapserver-users] WMS layer swapping according to scale Message-ID: Hello, I want to replace the polygon representations in a layer by markers when the zoom is out of a scale level. To do that, I have defined two layers in Mapserver to represent the same objects: one of them is a Polygon, and the other one is a Point (centroid), and I want to swap one for the other depending on the scale. With the Mapserver queries, I had defined the same name for both layers and it worked well. Now I need to do the same with WMS queries, but neither I can assign the same name to the layers (if I do that they are changed automatically), nor use the GROUP option (I obtain a warning with GetCapabilities). I also tried using the parameter wms_group_layer, but it puts a common title but not a common name, so I can not query the group in the LAYERS param. Do anyone knows how to solve this issue in Mapserver? Or do I have to do that in the viewer side? Thanks in advance for any help. -- Regards Gracia From Jukka.Rahkonen at mmmtike.fi Tue Nov 9 01:39:33 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 9 Nov 2010 11:39:33 +0200 Subject: [mapserver-users] WMS layer swapping according to scale In-Reply-To: References: Message-ID: Hi, Layers cannot have a same name in WMS. Use different names for layers and put them under the same GROUP. Use GROUP in WMS requests. Layers could look like LAYER GROUP "group" NAME "close" STATUS ON DATA "close.shp" TYPE POLYGON MAXSCALEDENOM 60000 METADATA "wms_title" "close" END END LAYER GROUP "group" NAME "far" STATUS ON DATA "far.shp" TYPE POINT MINSCALEDENOM 60000 METADATA "wms_title" "far" END END -Jukka Rahkonen- Gracia Fern?ndez L?pez wrote: > > Hello, > > I want to replace the polygon representations in a layer by markers > when the zoom is out of a scale level. > > To do that, I have defined two layers in Mapserver to represent the > same objects: one of them is a Polygon, and the other one is a Point > (centroid), and I want to swap one for the other depending on the > scale. > > With the Mapserver queries, I had defined the same name for both > layers and it worked well. Now I need to do the same with WMS queries, > but neither I can assign the same name to the layers (if I do that > they are changed automatically), nor use the GROUP option (I obtain a > warning with GetCapabilities). I also tried using the parameter > wms_group_layer, but it puts a common title but not a common name, so > I can not query the group in the LAYERS param. > > Do anyone knows how to solve this issue in Mapserver? Or do I have to > do that in the viewer side? > > Thanks in advance for any help. > > -- > Regards > Gracia > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From graciafdez at gmail.com Tue Nov 9 03:28:10 2010 From: graciafdez at gmail.com (=?ISO-8859-1?Q?Gracia_Fern=E1ndez_L=F3pez?=) Date: Tue, 9 Nov 2010 12:28:10 +0100 Subject: [mapserver-users] WMS layer swapping according to scale In-Reply-To: References: Message-ID: Hello Rahkonen, Thanks for answering so quickly. I had already proved that, but I had obtained a warning in the GetCapabilities request and I didn't have realized that it was working. Do you know how I can solve the warning?: group ... layer1 ... layer2 .... Also, I have read in http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg02321.html that there can be problems with the GetFeatureInfo query. ?Does anyone know what these problems are? Thank you again for your help. -- Regards Gracia El d?a 9 de noviembre de 2010 10:39, Rahkonen Jukka escribi?: > Hi, > > Layers cannot have a same name in WMS. Use different names for layers and put them under the same GROUP. Use GROUP in WMS requests. Layers could look like > > LAYER > ? ? ? ?GROUP "group" > ? ? ? ?NAME "close" > ? ? ? ?STATUS ON > ? ? ? ?DATA "close.shp" > ? ? ? ?TYPE POLYGON > ? ? ? ?MAXSCALEDENOM ?60000 > ? ? ? ?METADATA > ? ? ? ? ? ? ?"wms_title" ? ?"close" > ? ? ? ? ?END > END > LAYER > ? ? ? ? GROUP "group" > ? ? ? ? NAME "far" > ? ? ? ? STATUS ON > ? ? ? ? DATA "far.shp" > ? ? ? ? TYPE POINT > ? ? ? ? MINSCALEDENOM 60000 > ? ? ? ? METADATA > ? ? ? ? ? ? ?"wms_title" ? ?"far" > ? ? ? ? END > END > > -Jukka Rahkonen- > > Gracia Fern?ndez L?pez wrote: >> >> Hello, >> >> I want to replace the polygon representations in a layer by markers >> when the zoom is out of a scale level. >> >> To do that, I have defined two layers in Mapserver to represent the >> same objects: one of them is a Polygon, and the other one is a Point >> (centroid), and I want to swap one for the other depending on the >> scale. >> >> With the Mapserver queries, I had defined the same name for both >> layers and it worked well. Now I need to do the same with WMS queries, >> but neither I can assign the same name to the layers (if I do that >> they are changed automatically), nor use the GROUP option (I obtain a >> warning with GetCapabilities). I also tried using the parameter >> wms_group_layer, but it puts a common title but not a common name, so >> I can not query the group in the LAYERS param. >> >> Do anyone knows how to solve this issue in Mapserver? Or do I have to >> do that in the viewer side? >> >> Thanks in advance for any help. >> >> -- >> Regards >> Gracia >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From tommasodb at googlemail.com Tue Nov 9 03:28:47 2010 From: tommasodb at googlemail.com (tommaso) Date: Tue, 09 Nov 2010 12:28:47 +0100 Subject: [mapserver-users] RE: Real life sample of a Mapfile for shp files on WMS In-Reply-To: <1289258962828-5719102.post@n2.nabble.com> References: <1289252297997-5718787.post@n2.nabble.com> <1289258962828-5719102.post@n2.nabble.com> Message-ID: <1289302127.2273.5.camel@tommaso-laptop> Hi, for regular expression you need to set the parameters FILTERITEM and FILTER. >From the documentation (http://mapserver.org/mapfile/expressions.html#regular-expression-comparison) LAYER NAME "regexp-example" FILTERITEM "placename" FILTER /hotel/ ... END I think, the parameter EXPRESSION does not allow regular expression comparison. Cheers, Tommaso On Mon, 2010-11-08 at 15:29 -0800, wildcolour wrote: > Thanks, this looks great. > I will try it tonight, but I think is looking just right. > One more related question. The column we are using is called 'Tag' > and the seemed to have grouped the 'class' and the 'title' in the one > column. For example all secondary roads have the tag > "TVOP2" > but roads with the name 'smith st' will look like this > "TVOP2,SMITH ST" > So my question is in the expression can I do a 'is like' query?? I am > guessing somthing like this > EXPRESSION 'TVOP2%' > > Thanks for the great support > > Matt :) > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue Nov 9 04:25:45 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 9 Nov 2010 14:25:45 +0200 Subject: [mapserver-users] WMS layer swapping according to scale In-Reply-To: References: Message-ID: Hi, I am not sure but it looks like the warning could be wiped away by adding "wms_group_title" "group" into LAYER - METADATA of one of the layers belonging to that group. I have seldomly used GetFeatureInfo. However, if you can control the application I would probably make it to send GetFeatureInfos always against the polygon layer because polygons can be hitted without using tolerance and information should always come from the correct feature. -Jukka Rahkonen- Gracia Fern?ndez L?pez wrote: > Hello Rahkonen, > > Thanks for answering so quickly. I had already proved that, but I had > obtained a warning in the GetCapabilities request and I didn't have > realized that it was working. > > Do you know how I can solve the warning?: > > > group > > ... > > layer1 > ... > > > layer2 > .... > > > > Also, I have read in > http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg0 2321.html > that there can be problems with the GetFeatureInfo query. ?Does anyone > know what these problems are? > > Thank you again for your help. > > -- > Regards > Gracia > > El d?a 9 de noviembre de 2010 10:39, Rahkonen Jukka > escribi?: > > Hi, > > > > Layers cannot have a same name in WMS. Use different names > for layers and put them under the same GROUP. Use GROUP in > WMS requests. Layers could look like > > > > LAYER > > ? ? ? ?GROUP "group" > > ? ? ? ?NAME "close" > > ? ? ? ?STATUS ON > > ? ? ? ?DATA "close.shp" > > ? ? ? ?TYPE POLYGON > > ? ? ? ?MAXSCALEDENOM ?60000 > > ? ? ? ?METADATA > > ? ? ? ? ? ? ?"wms_title" ? ?"close" > > ? ? ? ? ?END > > END > > LAYER > > ? ? ? ? GROUP "group" > > ? ? ? ? NAME "far" > > ? ? ? ? STATUS ON > > ? ? ? ? DATA "far.shp" > > ? ? ? ? TYPE POINT > > ? ? ? ? MINSCALEDENOM 60000 > > ? ? ? ? METADATA > > ? ? ? ? ? ? ?"wms_title" ? ?"far" > > ? ? ? ? END > > END > > > > -Jukka Rahkonen- > > > > Gracia Fern?ndez L?pez wrote: > >> > >> Hello, > >> > >> I want to replace the polygon representations in a layer by markers > >> when the zoom is out of a scale level. > >> > >> To do that, I have defined two layers in Mapserver to represent the > >> same objects: one of them is a Polygon, and the other one > is a Point > >> (centroid), and I want to swap one for the other depending on the > >> scale. > >> > >> With the Mapserver queries, I had defined the same name for both > >> layers and it worked well. Now I need to do the same with > WMS queries, > >> but neither I can assign the same name to the layers (if I do that > >> they are changed automatically), nor use the GROUP option > (I obtain a > >> warning with GetCapabilities). I also tried using the parameter > >> wms_group_layer, but it puts a common title but not a > common name, so > >> I can not query the group in the LAYERS param. > >> > >> Do anyone knows how to solve this issue in Mapserver? Or > do I have to > >> do that in the viewer side? > >> > >> Thanks in advance for any help. > >> > >> -- > >> Regards > >> Gracia > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > > From graciafdez at gmail.com Tue Nov 9 04:45:57 2010 From: graciafdez at gmail.com (=?ISO-8859-1?Q?Gracia_Fern=E1ndez_L=F3pez?=) Date: Tue, 9 Nov 2010 13:45:57 +0100 Subject: [mapserver-users] WMS layer swapping according to scale In-Reply-To: References: Message-ID: Thanks a lot, putting the "wms_group_title" attribute in the metadata of each layer solved the warning. -- Regards Gracia El d?a 9 de noviembre de 2010 13:25, Rahkonen Jukka escribi?: > Hi, > > I am not sure but it looks like the warning could be wiped away by adding > > "wms_group_title" ? ?"group" > into LAYER - METADATA of one of the layers belonging to that group. > > I have seldomly used GetFeatureInfo. However, if you can control the application I would probably make it to send GetFeatureInfos always against the polygon layer because polygons can be hitted without using tolerance and information should always come from the correct feature. > > -Jukka Rahkonen- > > Gracia Fern?ndez L?pez wrote: > > >> Hello Rahkonen, >> >> Thanks for answering so quickly. I had already proved that, but I had >> obtained a warning in the GetCapabilities request and I didn't have >> realized that it was working. >> >> Do you know how I can solve the warning?: >> >> >> ? ? ? group >> >> ? ? ? ... >> ? ? ? >> ? ? ? ? layer1 >> ? ? ? ? ... >> ? ? ? >> ? ? ? >> ? ? ? ? layer2 >> ? ? ? ? .... >> ? ? ? >> ? >> >> Also, I have read in >> http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg0 > 2321.html >> that there can be problems with the GetFeatureInfo query. ?Does anyone >> know what these problems are? >> >> Thank you again for your help. >> >> -- >> Regards >> Gracia >> >> El d?a 9 de noviembre de 2010 10:39, Rahkonen Jukka >> escribi?: >> > Hi, >> > >> > Layers cannot have a same name in WMS. Use different names >> for layers and put them under the same GROUP. Use GROUP in >> WMS requests. Layers could look like >> > >> > LAYER >> > ? ? ? ?GROUP "group" >> > ? ? ? ?NAME "close" >> > ? ? ? ?STATUS ON >> > ? ? ? ?DATA "close.shp" >> > ? ? ? ?TYPE POLYGON >> > ? ? ? ?MAXSCALEDENOM ?60000 >> > ? ? ? ?METADATA >> > ? ? ? ? ? ? ?"wms_title" ? ?"close" >> > ? ? ? ? ?END >> > END >> > LAYER >> > ? ? ? ? GROUP "group" >> > ? ? ? ? NAME "far" >> > ? ? ? ? STATUS ON >> > ? ? ? ? DATA "far.shp" >> > ? ? ? ? TYPE POINT >> > ? ? ? ? MINSCALEDENOM 60000 >> > ? ? ? ? METADATA >> > ? ? ? ? ? ? ?"wms_title" ? ?"far" >> > ? ? ? ? END >> > END >> > >> > -Jukka Rahkonen- >> > >> > Gracia Fern?ndez L?pez wrote: >> >> >> >> Hello, >> >> >> >> I want to replace the polygon representations in a layer by markers >> >> when the zoom is out of a scale level. >> >> >> >> To do that, I have defined two layers in Mapserver to represent the >> >> same objects: one of them is a Polygon, and the other one >> is a Point >> >> (centroid), and I want to swap one for the other depending on the >> >> scale. >> >> >> >> With the Mapserver queries, I had defined the same name for both >> >> layers and it worked well. Now I need to do the same with >> WMS queries, >> >> but neither I can assign the same name to the layers (if I do that >> >> they are changed automatically), nor use the GROUP option >> (I obtain a >> >> warning with GetCapabilities). I also tried using the parameter >> >> wms_group_layer, but it puts a common title but not a >> common name, so >> >> I can not query the group in the LAYERS param. >> >> >> >> Do anyone knows how to solve this issue in Mapserver? Or >> do I have to >> >> do that in the viewer side? >> >> >> >> Thanks in advance for any help. >> >> >> >> -- >> >> Regards >> >> Gracia >> >> _______________________________________________ >> >> mapserver-users mailing list >> >> mapserver-users at lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> > >> > From sebastian.ovide at gmail.com Tue Nov 9 05:25:30 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Tue, 9 Nov 2010 13:25:30 +0000 Subject: [mapserver-users] draw polygons ordered by field ? (from File System) Message-ID: Hi All, Reading a shapefile (ESRI/MapInfo) from FS with polygons overlapping. Each polygon is drawn with a different color based on a field called RISK. Is it possible define an order on how the polygons are drawn ? Say for example to draw the polygons with field "RISK" 0 first, then with "RISK" =1 and so on... I know that using PG we can use "Select * from XXX order by RISK" Is there any way to do that using ESRI/MapInfo files ? Thanks -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Tue Nov 9 05:32:13 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 09 Nov 2010 08:32:13 -0500 Subject: [mapserver-users] draw polygons ordered by field ? (from File System) In-Reply-To: References: Message-ID: <4CD94D5D.8080109@mapgears.com> Sebastian E. Ovide wrote: > > Is it possible define an order on how the polygons are drawn ? Say for > example to draw the polygons with field "RISK" 0 first, then with "RISK" > =1 and so on... > > I know that using PG we can use "Select * from XXX order by RISK" > > Is there any way to do that using ESRI/MapInfo files ? > Have a look at the sortshp utility: http://mapserver.org/utilities/sortshp.html Daniel -- Daniel Morissette http://www.mapgears.com/ From bartvde at osgis.nl Tue Nov 9 05:27:20 2010 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Tue, 9 Nov 2010 14:27:20 +0100 (CET) Subject: [mapserver-users] draw polygons ordered by field ? (from File System) In-Reply-To: References: Message-ID: <11405.145.50.39.15.1289309240.squirrel@webmail.hostingdiscounter.nl> The only way I know of is to use the sortshp utility. http://mapserver.org/utilities/sortshp.html Best regards, Bart > Hi All, > > Reading a shapefile (ESRI/MapInfo) from FS with polygons overlapping. Each > polygon is drawn with a different color based on a field called RISK. > > Is it possible define an order on how the polygons are drawn ? Say for > example to draw the polygons with field "RISK" 0 first, then with "RISK" > =1 > and so on... > > I know that using PG we can use "Select * from XXX order by RISK" > > Is there any way to do that using ESRI/MapInfo files ? > > Thanks > > -- > Sebastian E. Ovide > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Jukka.Rahkonen at mmmtike.fi Tue Nov 9 05:53:15 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 9 Nov 2010 15:53:15 +0200 Subject: [mapserver-users] draw polygons ordered by field ? (from File System) In-Reply-To: <11405.145.50.39.15.1289309240.squirrel@webmail.hostingdiscounter.nl> References: <11405.145.50.39.15.1289309240.squirrel@webmail.hostingdiscounter.nl> Message-ID: Hi, Sortshp can order data only by one attribute. If that is not enough you can sort shapefile by two or more attributes with ogr2ogr by giving ORDER BY inside the -sql parameter. Of course it is possible to split the shapefile into several layers by using FILTER. In that case the drawing order can be controlled by ordering the layers in the mapfile but perhaps you do not want many layers. However, if the result is to be used through WMS the layers can be combined back with GROUP. -Jukka Rahkonen- Bart van den Eijnden wrote: > > The only way I know of is to use the sortshp utility. > > http://mapserver.org/utilities/sortshp.html > > Best regards, > Bart > > > Hi All, > > > > Reading a shapefile (ESRI/MapInfo) from FS with polygons > overlapping. Each > > polygon is drawn with a different color based on a field > called RISK. > > > > Is it possible define an order on how the polygons are > drawn ? Say for > > example to draw the polygons with field "RISK" 0 first, > then with "RISK" > > =1 > > and so on... > > > > I know that using PG we can use "Select * from XXX order by RISK" > > > > Is there any way to do that using ESRI/MapInfo files ? > > > > Thanks > > > > -- > > Sebastian E. Ovide > > _______________________________________________ > > 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 Steve.Lime at state.mn.us Tue Nov 9 06:35:07 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 9 Nov 2010 08:35:07 -0600 Subject: [mapserver-users] RE: Real life sample of a Mapfile for shp files on WMS In-Reply-To: <1289302127.2273.5.camel@tommaso-laptop> References: <1289252297997-5718787.post@n2.nabble.com> <1289258962828-5719102.post@n2.nabble.com> <1289302127.2273.5.camel@tommaso-laptop> Message-ID: Actually EXPRESSIONs can handle regex too: CLASSITEM ?tag? CLASS EXPRESSION /^TVOP2/ ? END This catches all tag?s that begin with the pattern TVOP2. You might want to do a FILTER instead if this is the ONLY filter you need to apply. You?d see a small performance boost if that were the case. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of tommaso Sent: Tuesday, November 09, 2010 5:29 AM To: wildcolour Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Real life sample of a Mapfile for shp files on WMS Hi, for regular expression you need to set the parameters FILTERITEM and FILTER. >From the documentation (http://mapserver.org/mapfile/expressions.html#regular-expression-comparison) LAYER NAME "regexp-example" FILTERITEM "placename" FILTER /hotel/ ... END I think, the parameter EXPRESSION does not allow regular expression comparison. Cheers, Tommaso On Mon, 2010-11-08 at 15:29 -0800, wildcolour wrote: Thanks, this looks great. I will try it tonight, but I think is looking just right. One more related question. The column we are using is called 'Tag' and the seemed to have grouped the 'class' and the 'title' in the one column. For example all secondary roads have the tag "TVOP2" but roads with the name 'smith st' will look like this "TVOP2,SMITH ST" So my question is in the expression can I do a 'is like' query?? I am guessing somthing like this EXPRESSION 'TVOP2%' Thanks for the great support Matt :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Tue Nov 9 07:04:15 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Tue, 9 Nov 2010 09:04:15 -0600 Subject: [mapserver-users] RE: Real life sample of a Mapfile for shp files on WMS In-Reply-To: <1289258962828-5719102.post@n2.nabble.com> References: <1289252297997-5718787.post@n2.nabble.com> <1289258962828-5719102.post@n2.nabble.com> Message-ID: Matt, It looks like Steve Lime's regular expression example will get you what you are looking for. One strategy to think about with MapServer (and any other Web map server) is that when you are looking for the best performance, you want to pre-process your data as much as possible. This means pre-classifying your data if complicated expressions are necessary, projecting your data to get it all in the same spatial reference system, etc. MapServer can do on-the-fly projection, complicated expressions, etc. pretty efficiently. But, if you can do these tasks once in pre-processing, they won't have to be done every time someone makes a map request. In your case, if performance matters, I would consider creating a new column in your data source and splitting out the two 'tags'. An expression that is an exact string match will be faster than a more complicated expression. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of wildcolour Sent: Monday, November 08, 2010 5:29 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] RE: Real life sample of a Mapfile for shp files on WMS Thanks, this looks great. I will try it tonight, but I think is looking just right. One more related question. The column we are using is called 'Tag' and the seemed to have grouped the 'class' and the 'title' in the one column. For example all secondary roads have the tag "TVOP2" but roads with the name 'smith st' will look like this "TVOP2,SMITH ST" So my question is in the expression can I do a 'is like' query?? I am guessing somthing like this EXPRESSION 'TVOP2%' Thanks for the great support Matt :) -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Real-life-sample-of-a-Mapfile-for-shp-files-on-WMS-tp5718787p5719102.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 David.Hildebrand at afsc.ca Tue Nov 9 10:08:46 2010 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Tue, 9 Nov 2010 11:08:46 -0700 Subject: [mapserver-users] MapServer as WMS Message-ID: <9188AB5935664040805E01E348A2B81D1BF68FE4@lacex1.afsc.ads> I am trying to configure MapServer as a WMS service and would like some clarity on projection information. I have several layers in differing projections but would like the final output to be in Transverse Mercator. For each layer I have defined the "wms_srs" and "wms_extent" tags. In the top-level map file do I now define the "wms_srs" tag as a list of projections which are defined in the layers or is there a wildcard specification I can use? Furthermore, I want to be able to specify the bounding box in lat/lon rather than Transverse Mercator coordinates, the desired output projection. I suppose I need to have a CGI script call a projection utility to return the bounding box coordinates projected to Transverse Mercator and then pass those to mapserv. On a related note, how do I set the output WIDTH and HEIGHT to be proportional to the BBOX? 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 matt at wildcolour.com Tue Nov 9 12:25:47 2010 From: matt at wildcolour.com (wildcolour) Date: Tue, 9 Nov 2010 12:25:47 -0800 (PST) Subject: [mapserver-users] RE: Real life sample of a Mapfile for shp files on WMS In-Reply-To: References: <1289252297997-5718787.post@n2.nabble.com> <1289258962828-5719102.post@n2.nabble.com> Message-ID: <1289334347269-5722388.post@n2.nabble.com> Wow Thanks guys, these where great examples, I got there straight away. Thanks for the advice on performance. This may become an issue, and sounds like it is better to deal with it early. This is a very powerful tool, with a great community base, I am very impressed Now of the fun part, making the maps look pretty :) Thanks again Matt :) -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Real-life-sample-of-a-Mapfile-for-shp-files-on-WMS-tp5718787p5722388.html Sent from the Mapserver - User mailing list archive at Nabble.com. From yves.moisan at boreal-is.com Tue Nov 9 13:58:35 2010 From: yves.moisan at boreal-is.com (Yves Moisan) Date: Tue, 09 Nov 2010 16:58:35 -0500 Subject: [mapserver-users] WMS 1.3.0 questions Message-ID: <4CD9C40B.4090707@boreal-is.com> Hi All, I tried to look for an answer to the question "what do I have to do to get MapServer to serve a 1.3.0 WMS by default" and I haven't found yet. Is there anything to do in the mapfile per se or is it just by the virtue of having a version >= 5.4 ? I thought the latter but then I tried things like : http://toMapserv.cgi?...REQUEST=GetMap&VERSION=1.3.0&CRS=EPSG%3A42304&BBOX=-5175875.27581...&WIDTH=1605&HEIGHT=316 and http://toMapserv.cgi?...REQUEST=GetMap&VERSION=1.1.1&CRS=EPSG%3A42304&BBOX=-5175875.27581...&WIDTH=1605&HEIGHT=316 and wondered if I'm getting back the response from a 1.3.0 in the first case and a 1.1.1 in the second case. Both images were the same, so I thought everything was fine until I tried an unexisting version number (e.g. 1.1.122) and still got back an image ! The only error message that made me think MS was indeed looking at the version number is when I submitted VERSION=abc. then MS complained it wanted "x.y" or "x.y.z". So how can I tell I get a real WMS with my specified version number instead of what appears to be a default one ? Doc pointers appreciated. Yves From Jukka.Rahkonen at mmmtike.fi Tue Nov 9 14:17:26 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 10 Nov 2010 00:17:26 +0200 Subject: [mapserver-users] WMS 1.3.0 questions References: <4CD9C40B.4090707@boreal-is.com> Message-ID: Hi, Have a try with EPSG:4326 and you should see a difference. Despite of axes flipping with some projections there should really not be any difference in the GetMap output - image is an image. Do GetCapabilities and you should see difference. I am remembering also that VERSION is a compulsory parameter in WMS GetMap so there is no need to play with the defaults, just give the version and you will get what you want. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Yves Moisan L?hetetty: ti 9.11.2010 23:58 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] WMS 1.3.0 questions Hi All, I tried to look for an answer to the question "what do I have to do to get MapServer to serve a 1.3.0 WMS by default" and I haven't found yet. Is there anything to do in the mapfile per se or is it just by the virtue of having a version >= 5.4 ? I thought the latter but then I tried things like : http://toMapserv.cgi?...REQUEST=GetMap&VERSION=1.3.0&CRS=EPSG%3A42304&BBOX=-5175875.27581...&WIDTH=1605&HEIGHT=316 and http://toMapserv.cgi?...REQUEST=GetMap&VERSION=1.1.1&CRS=EPSG%3A42304&BBOX=-5175875.27581...&WIDTH=1605&HEIGHT=316 and wondered if I'm getting back the response from a 1.3.0 in the first case and a 1.1.1 in the second case. Both images were the same, so I thought everything was fine until I tried an unexisting version number (e.g. 1.1.122) and still got back an image ! The only error message that made me think MS was indeed looking at the version number is when I submitted VERSION=abc. then MS complained it wanted "x.y" or "x.y.z". So how can I tell I get a real WMS with my specified version number instead of what appears to be a default one ? Doc pointers appreciated. Yves _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Tue Nov 9 18:48:56 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 10 Nov 2010 11:48:56 +0900 Subject: [mapserver-users] WMS 1.3.0 questions In-Reply-To: <4CD9C40B.4090707@boreal-is.com> References: <4CD9C40B.4090707@boreal-is.com> Message-ID: <4CDA0818.7000801@gatewaygeomatics.com> Hello Yves, Some related thoughts: - related ticket for configuring default WMS version: http://trac.osgeo.org/mapserver/ticket/3444 ...please add yourself to the CC list of that ticket and join in the discussions and testing and feedback, thanks - doc pointers: http://www.mapserver.org/ogc/wms_server.html#wms-1-3-0-support ...specifically see the 2 working 1.3.0 example requests there -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 10-11-10 6:58 AM, Yves Moisan wrote: > Hi All, > > I tried to look for an answer to the question "what do I have to do to > get MapServer to serve a 1.3.0 WMS by default" and I haven't found yet. > Is there anything to do in the mapfile per se or is it just by the > virtue of having a version >= 5.4 ? I thought the latter but then I > tried things like : > > http://toMapserv.cgi?...REQUEST=GetMap&VERSION=1.3.0&CRS=EPSG%3A42304&BBOX=-5175875.27581...&WIDTH=1605&HEIGHT=316 > > > and > > http://toMapserv.cgi?...REQUEST=GetMap&VERSION=1.1.1&CRS=EPSG%3A42304&BBOX=-5175875.27581...&WIDTH=1605&HEIGHT=316 > > > and wondered if I'm getting back the response from a 1.3.0 in the first > case and a 1.1.1 in the second case. Both images were the same, so I > thought everything was fine until I tried an unexisting version number > (e.g. 1.1.122) and still got back an image ! > > The only error message that made me think MS was indeed looking at the > version number is when I submitted VERSION=abc. then MS complained it > wanted "x.y" or "x.y.z". So how can I tell I get a real WMS with my > specified version number instead of what appears to be a default one ? > > Doc pointers appreciated. From venkat.shesu at gmail.com Tue Nov 9 19:55:26 2010 From: venkat.shesu at gmail.com (Reddem) Date: Tue, 9 Nov 2010 19:55:26 -0800 (PST) Subject: [mapserver-users] Seeking suggestions on WebGIS Message-ID: <1289361326877-5723484.post@n2.nabble.com> Dear Friends, I am newbie to UMN MapServer and with the knowledge gained through the forum, I designed WebGIS for Ocean Data and Information System. I am herewith providing the link for the same. Please go through and suggest your valuable opinions, for improvement if any. http://115.113.76.8/cgi-bin/mapserv54?map=INSITU_RECENTMAPFILE&layer=ocean&layer=copyright&layer=moored&layer=drifting&layer=aws&layer=currentmeter&layer=tide&layer=xbt&layer=waverider&zoom=0&program=%2Fcgi-bin%2Fmapserv54&root=%2Finsitu&graphicsroot=%2Finsitu%2Fgraphics&map_web=template+insitu.html Ocean Data & Information System with regards Venkat -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Seeking-suggestions-on-WebGIS-tp5723484p5723484.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mgebreab at maxgeo.com Wed Nov 10 00:00:58 2010 From: mgebreab at maxgeo.com (Milena) Date: Wed, 10 Nov 2010 00:00:58 -0800 (PST) Subject: [mapserver-users] Mapserver SQL Server 2008 R2 connection Message-ID: <1289376058268-5723789.post@n2.nabble.com> Hi All, I really appricate any help on this. I am trying to create a WMS using mapserver and data from SQL 2008 R2. This is what my map file looks like. SIZE 600 800 PROJECTION "init=epsg:4326" #latlon on WGS84 END EXTENT 113 -34 129 -14 # lon/lat extents of Spatial WEB IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "map" "C:/OSGeo4W/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:/OSGeo4W/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:/OSGeo4W/specialplugins/msplugin_mssql2008.dll" CONNECTION "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=SpatialDB;Data Source=AU-FRE-L0217//SQL_2008R2" DATA "SP_GEOMETRY from dbo.tenements" TYPE POLYGON STATUS ON METADATA "ows_title" "tenements" END #metadata PROJECTION "init=epsg:4326" END END #Layer End #Map I am using msplugin_mssql2008.dll plugin. But I keep getting 500 internal error: I checked the even view and the error there says: Faulting application name: mapserv.exe, version: 0.0.0.0, time stamp: 0x4ab3c473 Faulting module name: libmap.dll, version: 0.0.0.0, time stamp: 0x4ab3c46e Exception code: 0xc0000005 Fault offset: 0x000a7815 Faulting process id: 0x178c Faulting application start time: 0x01cb80a63078252e Faulting application path: C:\OSGeo4W\bin\mapserv.exe Faulting module path: C:\OSGeo4W\bin\libmap.dll Report Id: 6f925ed2-ec99-11df-a20d-b8ac6f7484b2 Appache error log error message is: [Wed Nov 10 13:56:35 2010] [error] [client 127.0.0.1] Premature end of script headers: mapserv.exe [Wed Nov 10 13:59:04 2010] [error] [client 127.0.0.1] Premature end of script headers: mapserv.exe [Wed Nov 10 15:09:21 2010] [error] [client 127.0.0.1] Premature end of script headers: mapserv.exe Please help!! Thank you Milen -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Mapserver-SQL-Server-2008-R2-connection-tp5723789p5723789.html Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at gmail.com Wed Nov 10 01:27:30 2010 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 10 Nov 2010 10:27:30 +0100 Subject: [mapserver-users] Mapserver SQL Server 2008 R2 connection In-Reply-To: <1289376058268-5723789.post@n2.nabble.com> References: <1289376058268-5723789.post@n2.nabble.com> Message-ID: Milen, According to the timestamps this compilation seems to be outdated and there have been lost of changes in the mssql2008 driver afterwards. I suggest to do a test with the daily build packages from http://vbkto.dyndns.org/sdk/ by replacing .exe and .dll files to the newer versions. Best regards, Tamas 2010/11/10 Milena > > Hi All, > > I really appricate any help on this. > > I am trying to create a WMS using mapserver and data from SQL 2008 R2. This > is what my map file looks like. > SIZE 600 800 > PROJECTION > "init=epsg:4326" #latlon on WGS84 > END > EXTENT 113 -34 129 -14 > # lon/lat extents of Spatial > WEB > IMAGEPATH "/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > METADATA > "map" "C:/OSGeo4W/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:/OSGeo4W/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:/OSGeo4W/specialplugins/msplugin_mssql2008.dll" > CONNECTION "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security > Info=False;Initial > > Catalog=SpatialDB;Data Source=AU-FRE-L0217//SQL_2008R2" > DATA "SP_GEOMETRY from dbo.tenements" > TYPE POLYGON > STATUS ON > METADATA > "ows_title" "tenements" > END #metadata > PROJECTION > "init=epsg:4326" > END > END #Layer > End #Map > > I am using msplugin_mssql2008.dll plugin. But I keep getting 500 internal > error: > I checked the even view and the error there says: > Faulting application name: mapserv.exe, version: 0.0.0.0, time stamp: > 0x4ab3c473 > Faulting module name: libmap.dll, version: 0.0.0.0, time stamp: 0x4ab3c46e > Exception code: 0xc0000005 > Fault offset: 0x000a7815 > Faulting process id: 0x178c > Faulting application start time: 0x01cb80a63078252e > Faulting application path: C:\OSGeo4W\bin\mapserv.exe > Faulting module path: C:\OSGeo4W\bin\libmap.dll > Report Id: 6f925ed2-ec99-11df-a20d-b8ac6f7484b2 > > Appache error log error message is: > [Wed Nov 10 13:56:35 2010] [error] [client 127.0.0.1] Premature end of > script headers: mapserv.exe > [Wed Nov 10 13:59:04 2010] [error] [client 127.0.0.1] Premature end of > script headers: mapserv.exe > [Wed Nov 10 15:09:21 2010] [error] [client 127.0.0.1] Premature end of > script headers: mapserv.exe > > Please help!! > > Thank you > > Milen > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Mapserver-SQL-Server-2008-R2-connection-tp5723789p5723789.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 yves.jacolin at camptocamp.com Wed Nov 10 06:23:42 2010 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Wed, 10 Nov 2010 15:23:42 +0100 Subject: [mapserver-users] WMS 1.3.0 questions In-Reply-To: <4CDA0818.7000801@gatewaygeomatics.com> References: <4CD9C40B.4090707@boreal-is.com> <4CDA0818.7000801@gatewaygeomatics.com> Message-ID: <201011101523.42965.yves.jacolin@camptocamp.com> Yves, About the version parameter value: it only says which version you want to, not the one the WMS serveur **should** use. If WMS server can't serve this version, it will try the higher it can if client version > server version or the lower it can if client version < server version. The client version is the version value in the url, asked by the client. Regards, Y. Le mercredi 10 novembre 2010 03:48:56, Jeff McKenna a ?crit : > Hello Yves, > > Some related thoughts: > > - related ticket for configuring default WMS version: > http://trac.osgeo.org/mapserver/ticket/3444 ...please add yourself to > the CC list of that ticket and join in the discussions and testing and > feedback, thanks > - doc pointers: > http://www.mapserver.org/ogc/wms_server.html#wms-1-3-0-support > ...specifically see the 2 working 1.3.0 example requests there > > -jeff > > > Hi All, > > > > I tried to look for an answer to the question "what do I have to do to > > get MapServer to serve a 1.3.0 WMS by default" and I haven't found yet. > > Is there anything to do in the mapfile per se or is it just by the > > virtue of having a version >= 5.4 ? I thought the latter but then I > > tried things like : > > > > http://toMapserv.cgi?...REQUEST=GetMap&VERSION=1.3.0&CRS=EPSG%3A42304&BBO > > X=-5175875.27581...&WIDTH=1605&HEIGHT=316 > > > > > > and > > > > http://toMapserv.cgi?...REQUEST=GetMap&VERSION=1.1.1&CRS=EPSG%3A42304&BBO > > X=-5175875.27581...&WIDTH=1605&HEIGHT=316 > > > > > > and wondered if I'm getting back the response from a 1.3.0 in the first > > case and a 1.1.1 in the second case. Both images were the same, so I > > thought everything was fine until I tried an unexisting version number > > (e.g. 1.1.122) and still got back an image ! > > > > The only error message that made me think MS was indeed looking at the > > version number is when I submitted VERSION=abc. then MS complained it > > wanted "x.y" or "x.y.z". So how can I tell I get a real WMS with my > > specified version number instead of what appears to be a default one ? > > > > Doc pointers appreciated. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- 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 bartvde at osgis.nl Wed Nov 10 06:32:50 2010 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Wed, 10 Nov 2010 15:32:50 +0100 (CET) Subject: [mapserver-users] WMS 1.3.0 questions In-Reply-To: <201011101523.42965.yves.jacolin@camptocamp.com> References: <4CD9C40B.4090707@boreal-is.com> <4CDA0818.7000801@gatewaygeomatics.com> <201011101523.42965.yves.jacolin@camptocamp.com> Message-ID: <20715.145.50.39.15.1289399570.squirrel@webmail.hostingdiscounter.nl> Yves, this is only true for the GetCapabilities operation. Not for operations such as GetMap. Best regards, Bart > Yves, > > About the version parameter value: it only says which version you want to, > not > the one the WMS serveur **should** use. If WMS server can't serve this > version, it will try the higher it can if client version > server version > or > the lower it can if client version < server version. The client version is > the > version value in the url, asked by the client. > > Regards, > > Y. > Le mercredi 10 novembre 2010 03:48:56, Jeff McKenna a ?crit : >> Hello Yves, >> >> Some related thoughts: >> >> - related ticket for configuring default WMS version: >> http://trac.osgeo.org/mapserver/ticket/3444 ...please add yourself to >> the CC list of that ticket and join in the discussions and testing and >> feedback, thanks >> - doc pointers: >> http://www.mapserver.org/ogc/wms_server.html#wms-1-3-0-support >> ...specifically see the 2 working 1.3.0 example requests there >> >> -jeff >> >> > Hi All, >> > >> > I tried to look for an answer to the question "what do I have to do to >> > get MapServer to serve a 1.3.0 WMS by default" and I haven't found >> yet. >> > Is there anything to do in the mapfile per se or is it just by the >> > virtue of having a version >= 5.4 ? I thought the latter but then I >> > tried things like : >> > >> > http://toMapserv.cgi?...REQUEST=GetMap&VERSION=1.3.0&CRS=EPSG%3A42304&BBO >> > X=-5175875.27581...&WIDTH=1605&HEIGHT=316 >> > >> > >> > and >> > >> > http://toMapserv.cgi?...REQUEST=GetMap&VERSION=1.1.1&CRS=EPSG%3A42304&BBO >> > X=-5175875.27581...&WIDTH=1605&HEIGHT=316 >> > >> > >> > and wondered if I'm getting back the response from a 1.3.0 in the >> first >> > case and a 1.1.1 in the second case. Both images were the same, so I >> > thought everything was fine until I tried an unexisting version number >> > (e.g. 1.1.122) and still got back an image ! >> > >> > The only error message that made me think MS was indeed looking at the >> > version number is when I submitted VERSION=abc. then MS complained it >> > wanted "x.y" or "x.y.z". So how can I tell I get a real WMS with my >> > specified version number instead of what appears to be a default one ? >> > >> > Doc pointers appreciated. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- > 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 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From yves.jacolin at camptocamp.com Wed Nov 10 07:01:39 2010 From: yves.jacolin at camptocamp.com (Yves Jacolin) Date: Wed, 10 Nov 2010 16:01:39 +0100 Subject: [mapserver-users] WMS 1.3.0 questions In-Reply-To: <20715.145.50.39.15.1289399570.squirrel@webmail.hostingdiscounter.nl> References: <4CD9C40B.4090707@boreal-is.com> <201011101523.42965.yves.jacolin@camptocamp.com> <20715.145.50.39.15.1289399570.squirrel@webmail.hostingdiscounter.nl> Message-ID: <201011101601.39919.yves.jacolin@camptocamp.com> Hum ok. Thanks Bart ! Y. Le mercredi 10 novembre 2010 15:32:50, Bart van den Eijnden (OSGIS) a ?crit : > Yves, > > this is only true for the GetCapabilities operation. Not for operations > such as GetMap. > > Best regards, > Bart > > > Yves, > > > > About the version parameter value: it only says which version you want > > to, not > > the one the WMS serveur **should** use. If WMS server can't serve this > > version, it will try the higher it can if client version > server version > > or > > the lower it can if client version < server version. The client version > > is the > > version value in the url, asked by the client. > > > > Regards, > > > > Y. > > > > Le mercredi 10 novembre 2010 03:48:56, Jeff McKenna a ?crit : > >> Hello Yves, > >> > >> Some related thoughts: > >> > >> - related ticket for configuring default WMS version: > >> http://trac.osgeo.org/mapserver/ticket/3444 ...please add yourself to > >> the CC list of that ticket and join in the discussions and testing and > >> feedback, thanks > >> - doc pointers: > >> http://www.mapserver.org/ogc/wms_server.html#wms-1-3-0-support > >> ...specifically see the 2 working 1.3.0 example requests there > >> > >> -jeff > >> > >> > Hi All, > >> > > >> > I tried to look for an answer to the question "what do I have to do to > >> > get MapServer to serve a 1.3.0 WMS by default" and I haven't found > >> > >> yet. > >> > >> > Is there anything to do in the mapfile per se or is it just by the > >> > virtue of having a version >= 5.4 ? I thought the latter but then I > >> > tried things like : > >> > > >> > http://toMapserv.cgi?...REQUEST=GetMap&VERSION=1.3.0&CRS=EPSG%3A42304& > >> > BBO X=-5175875.27581...&WIDTH=1605&HEIGHT=316 > >> > > >> > > >> > and > >> > > >> > http://toMapserv.cgi?...REQUEST=GetMap&VERSION=1.1.1&CRS=EPSG%3A42304& > >> > BBO X=-5175875.27581...&WIDTH=1605&HEIGHT=316 > >> > > >> > > >> > and wondered if I'm getting back the response from a 1.3.0 in the > >> > >> first > >> > >> > case and a 1.1.1 in the second case. Both images were the same, so I > >> > thought everything was fine until I tried an unexisting version number > >> > (e.g. 1.1.122) and still got back an image ! > >> > > >> > The only error message that made me think MS was indeed looking at the > >> > version number is when I submitted VERSION=abc. then MS complained it > >> > wanted "x.y" or "x.y.z". So how can I tell I get a real WMS with my > >> > specified version number instead of what appears to be a default one ? > >> > > >> > Doc pointers appreciated. > >> > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > > 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 > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- 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 yves.moisan at boreal-is.com Wed Nov 10 07:18:49 2010 From: yves.moisan at boreal-is.com (Yves Moisan) Date: Wed, 10 Nov 2010 10:18:49 -0500 Subject: [mapserver-users] WMS 1.3.0 questions In-Reply-To: <4CDA0818.7000801@gatewaygeomatics.com> References: <4CD9C40B.4090707@boreal-is.com> <4CDA0818.7000801@gatewaygeomatics.com> Message-ID: <4CDAB7D9.7090308@boreal-is.com> Le 2010-11-09 21:48, Jeff McKenna a ?crit : > Hello Yves, Hi Jeff, > > Some related thoughts: > > - related ticket for configuring default WMS version: > http://trac.osgeo.org/mapserver/ticket/3444 ...please add yourself to > the CC list of that ticket and join in the discussions and testing and > feedback, thanks I added myself in the cc list. The description of that ticket says "For example in WMS if the version parameter is not set, MapServer usually defaults to the latest supported version (1.3.0)." If I read this correctly, if I change MapServer from 5.2.x to 5.6 and I happen to be working with EPSG codes that have their axes flipped between 1.1.1 and 1.3.0, my WMS requests won't work anymore IF i didn't specify a version number. Ouch. Also, what happens if I specify a non existent, but valid, number like 1.2222 ? I know an image is an image as Jukka mentioned, but how do I know how MapServer interpreted my faulty version number ? Does it default to the latest supported version too ? > - doc pointers: > http://www.mapserver.org/ogc/wms_server.html#wms-1-3-0-support > ...specifically see the 2 working 1.3.0 example requests there I've seen those. I can see the request parameters all right, it's just that I'm not sure how MapServer reacts. I know it chokes if I send VERSION=abc, but it will send me an image whatever I use for a version number as long as it is of the forms x.y or x.y.z. VERSION=1234.4567.890 will work ! Because I get only an image back, how do I know how MS handled the request ? Is there a response header I'm missing somewhere ? Thanx. Yves -------------- next part -------------- An HTML attachment was scrubbed... URL: From nelson.guda at gmail.com Wed Nov 10 10:14:03 2010 From: nelson.guda at gmail.com (nelson guda) Date: Wed, 10 Nov 2010 11:14:03 -0700 Subject: [mapserver-users] mapserver stopped working - help needed Message-ID: <60FD8A43-866F-40B9-9C3C-CBCD59B0E3FE@gmail.com> Hello all, Several years ago I built a mapping site called Roadlessland.org, which uses mapserver and google maps to map national forest roadless areas. I taught myself a lot of programming and built the site from the ground up. Suddenly this fall mapserver stopped functioning completely. All I get is the error below. The address for the mapserver http://thewildwoodstudios.com/cgi-bin/mapserv? Until now there have been few maintenance issues, and I have no idea what might have happened. As far as I know there haven't been any changes in the server. Does anybody have any idea what might have gone wrong? Thank you, Nelson Guda This is the returned error: > Internal Server Error > > The server encountered an internal error or misconfiguration and was unable to complete your request. > > Please contact the server administrator, webmaster at thewildwoodstudios.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. > > More information about this error may be available in the server error log. > > Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at osgis.nl Wed Nov 10 12:11:00 2010 From: bartvde at osgis.nl (Bart van den Eijnden) Date: Wed, 10 Nov 2010 21:11:00 +0100 Subject: [mapserver-users] WMS 1.3.0 questions In-Reply-To: <4CDAB7D9.7090308@boreal-is.com> References: <4CD9C40B.4090707@boreal-is.com> <4CDA0818.7000801@gatewaygeomatics.com> <4CDAB7D9.7090308@boreal-is.com> Message-ID: I think it is a bad idea to default to a certain version in GetMap. Version is a required parameter and an exception should be thrown if a version is not known. Also to avoid issues that Yves M has raised. Bart Sent from my iPhone On Nov 10, 2010, at 4:18 PM, Yves Moisan wrote: > Le 2010-11-09 21:48, Jeff McKenna a ?crit : >> >> Hello Yves, > Hi Jeff, >> >> Some related thoughts: >> >> - related ticket for configuring default WMS version: http://trac.osgeo.org/mapserver/ticket/3444 ...please add yourself to the CC list of that ticket and join in the discussions and testing and feedback, thanks > I added myself in the cc list. The description of that ticket says "For example in WMS if the version parameter is not set, MapServer usually defaults to the latest supported version (1.3.0)." If I read this correctly, if I change MapServer from 5.2.x to 5.6 and I happen to be working with EPSG codes that have their axes flipped between 1.1.1 and 1.3.0, my WMS requests won't work anymore IF i didn't specify a version number. Ouch. > > Also, what happens if I specify a non existent, but valid, number like 1.2222 ? I know an image is an image as Jukka mentioned, but how do I know how MapServer interpreted my faulty version number ? Does it default to the latest supported version too ? > >> - doc pointers: http://www.mapserver.org/ogc/wms_server.html#wms-1-3-0-support ...specifically see the 2 working 1.3.0 example requests there > > I've seen those. I can see the request parameters all right, it's just that I'm not sure how MapServer reacts. I know it chokes if I send VERSION=abc, but it will send me an image whatever I use for a version number as long as it is of the forms x.y or x.y.z. VERSION=1234.4567.890 will work ! Because I get only an image back, how do I know how MS handled the request ? Is there a response header I'm missing somewhere ? > > Thanx. > > Yves > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Wed Nov 10 12:47:15 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 10 Nov 2010 15:47:15 -0500 Subject: [mapserver-users] WMS 1.3.0 questions In-Reply-To: References: <4CD9C40B.4090707@boreal-is.com> <4CDA0818.7000801@gatewaygeomatics.com> <4CDAB7D9.7090308@boreal-is.com> Message-ID: <4CDB04D3.7000605@mapgears.com> Let me try to clarify a few things: 1- The default version that is mentioned in ticekt 3444 would be only for GetCapabilities and would essentially be a hint for MapServer to give preference to that version in a GetCapabilities response if no version is specified. 2- There CANNOT be a default version applied to GetMap as this would be contrary to the spec. (And MapServer does not apply a default version in GetMap's case) 3- That may not be obvious, but MapServer honors the VERSION that you set in a GetMap request... it's just that it works with ranges of versions for each version-specific difference in the spec instead of discrete version numbers in an attempt to be forgiving of clients that support only intermediate versions that MapServer may not be explicitly built for. More specifically: (0.0.0 < VERSION < 1.0.7) is treated as 1.0.0 (1.0.7 <= VERSION < 1.1.0) is treated as 1.0.7 (1.1.0 <= VERSION < 1.1.1) is treated as 1.1.0 (1.1.1 <= VERSION < 1.3.0) is treated as 1.1.1 (VERSION >= 1.3.0) is treated as 1.3.0 Now, while double-checking this I found that the GetCapabilities code that handles version negociation may not follow exactly this logic for the 1.3.0 case and this will need a review and fix, but other than that, that's how most of the logic works for the GetMap and other differences between WMS spec versions. That also explains why 1.2222 works, your request should have been treated as 1.1.1 according to the rules above. 4- After seeing this thread, I would tend to lean towards producing an exception if version is not one of the explicitly supported values to prevent any confusion (i.e. anything not in the following list would produce an exception: 1.0.0, 1.0.6, 1.0.7, 1.1.0, 1.1.1 and 1.3.0) Daniel Bart van den Eijnden wrote: > I think it is a bad idea to default to a certain version in GetMap. > Version is a required parameter and an exception should be thrown if a > version is not known. Also to avoid issues that Yves M has raised. > > Bart > > Sent from my iPhone > > On Nov 10, 2010, at 4:18 PM, Yves Moisan > wrote: > >> Le 2010-11-09 21:48, Jeff McKenna a ?crit : >>> Hello Yves, >> Hi Jeff, >>> >>> Some related thoughts: >>> >>> - related ticket for configuring default WMS version: >>> http://trac.osgeo.org/mapserver/ticket/3444 ...please add yourself to >>> the CC list of that ticket and join in the discussions and testing >>> and feedback, thanks >> I added myself in the cc list. The description of that ticket says >> "For example in WMS if the version parameter is not set, MapServer >> usually defaults to >> the latest supported version (1.3.0)." If I read this correctly, if I >> change MapServer from 5.2.x to 5.6 and I happen to be working with >> EPSG codes that have their axes flipped between 1.1.1 and 1.3.0, my >> WMS requests won't work anymore IF i didn't specify a version number. >> Ouch. >> >> Also, what happens if I specify a non existent, but valid, number like >> 1.2222 ? I know an image is an image as Jukka mentioned, but how do I >> know how MapServer interpreted my faulty version number ? Does it >> default to the latest supported version too ? >> >>> - doc pointers: >>> http://www.mapserver.org/ogc/wms_server.html#wms-1-3-0-support >>> ...specifically see the 2 working 1.3.0 example requests there >> >> I've seen those. I can see the request parameters all right, it's >> just that I'm not sure how MapServer reacts. I know it chokes if I >> send VERSION=abc, but it will send me an image whatever I use for a >> version number as long as it is of the forms x.y or x.y.z. >> VERSION=1234.4567.890 will work ! Because I get only an image back, >> how do I know how MS handled the request ? Is there a response header >> I'm missing somewhere ? >> >> Thanx. >> >> Yves >> >> _______________________________________________ >> 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 -- Daniel Morissette http://www.mapgears.com/ From dmorissette at mapgears.com Wed Nov 10 12:57:59 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 10 Nov 2010 15:57:59 -0500 Subject: [mapserver-users] WMS 1.3.0 questions In-Reply-To: <4CDB04D3.7000605@mapgears.com> References: <4CD9C40B.4090707@boreal-is.com> <4CDA0818.7000801@gatewaygeomatics.com> <4CDAB7D9.7090308@boreal-is.com> <4CDB04D3.7000605@mapgears.com> Message-ID: <4CDB0757.5060701@mapgears.com> Daniel Morissette wrote: > That also explains why 1.2222 works, your > request should have been treated as 1.1.1 according to the rules above. > Er... 1.2222 should probably end up being treated as 1.3.0, but a value larger than 256 for any of the three digits of the WMS version string would overflow in the other digit in our implementation, so keep that in mind if you decide to play that game. -- Daniel Morissette http://www.mapgears.com/ From andy at squeakycode.net Wed Nov 10 13:31:19 2010 From: andy at squeakycode.net (Andy Colson) Date: Wed, 10 Nov 2010 15:31:19 -0600 Subject: [mapserver-users] mapserver stopped working - help needed In-Reply-To: <60FD8A43-866F-40B9-9C3C-CBCD59B0E3FE@gmail.com> References: <60FD8A43-866F-40B9-9C3C-CBCD59B0E3FE@gmail.com> Message-ID: <4CDB0F27.4070202@squeakycode.net> On 11/10/2010 12:14 PM, nelson guda wrote: > Hello all, > > Several years ago I built a mapping site called Roadlessland.org > , which uses mapserver and google maps to map > national forest roadless areas. I taught myself a lot of programming and > built the site from the ground up. > > Suddenly this fall mapserver stopped functioning completely. All I get > is the error below. The address for the mapserver > http://thewildwoodstudios.com/cgi-bin/mapserv? > > Until now there have been few maintenance issues, and I have no idea > what might have happened. As far as I know there haven't been any > changes in the server. Does anybody have any idea what might have gone > wrong? > > Thank you, > Nelson Guda > Can you check the Apache error log? More info about the problem should be in there, -Andy From yves.moisan at boreal-is.com Wed Nov 10 13:50:37 2010 From: yves.moisan at boreal-is.com (Yves Moisan) Date: Wed, 10 Nov 2010 16:50:37 -0500 Subject: [mapserver-users] WMS 1.3.0 questions In-Reply-To: <4CDB04D3.7000605@mapgears.com> References: <4CD9C40B.4090707@boreal-is.com> <4CDA0818.7000801@gatewaygeomatics.com> <4CDAB7D9.7090308@boreal-is.com> <4CDB04D3.7000605@mapgears.com> Message-ID: <4CDB13AD.5080802@boreal-is.com> > 3- That may not be obvious, but MapServer honors the VERSION that you > set in a GetMap request... Hi Daniel, I would say it's confusing to see VERSION=1.2222 going through ... > it's just that it works with ranges of > versions for each version-specific difference in the spec instead of > discrete version numbers in an attempt to be forgiving of clients that > support only intermediate versions that MapServer may not be explicitly > built for. More specifically: > > (0.0.0< VERSION< 1.0.7) is treated as 1.0.0 > > (1.0.7<= VERSION< 1.1.0) is treated as 1.0.7 > > (1.1.0<= VERSION< 1.1.1) is treated as 1.1.0 > > (1.1.1<= VERSION< 1.3.0) is treated as 1.1.1 > > (VERSION>= 1.3.0) is treated as 1.3.0 A word from a coder is worth a thousand [GetMap] images ;-). That's really clear. But misleading for the client/map integrator IMO. > 4- After seeing this thread, I would tend to lean towards producing an > exception if version is not one of the explicitly supported values to > prevent any confusion (i.e. anything not in the following list would > produce an exception: 1.0.0, 1.0.6, 1.0.7, 1.1.0, 1.1.1 and 1.3.0) > I think that's a very sensible solution. Especially since the VERSION parameter is required. Trying to push a GetMap request without a VERSION url parameter already generates an error : "msWMSDispatch(): WMS server error. Incomplete WMS request: VERSION parameter missing". I think failing to find an explicit VERSION number in a set of allowed values should trigger a similar exception, something along the lines of "msWMSDispatch(): WMS server error. Offending (or misformed or something) WMS request: VERSION parameter not in {1.0.0, 1.0.6, 1.0.7, 1.1.0, 1.1.1, 1.3.0}". That behaviour would at least comfort me as a user that the VERSION number I'm passing in is the one used, short of having a response header confirming that (which appears to be an impossible task anyways). Thanx, Yves From MarkVolz at co.lyon.mn.us Wed Nov 10 13:57:59 2010 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Wed, 10 Nov 2010 15:57:59 -0600 Subject: [mapserver-users] WMS identify within ArcGIS Message-ID: <3D56274B4A7874468F58FADDBFD0980109F05BE0@llmhs02.r8nssis.local> Hello, I am trying to set up Mapserver as a WMS server. Currently I can draw maps. However, I am having trouble getting the server to support Identify, specifically within ArcGIS. Does anyone have an example map file and template that allows WMS Identify in ArcGIS. Thank You Mark Volz GIS Specialist Lyon County, MN -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Hildebrand at afsc.ca Wed Nov 10 16:02:27 2010 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Wed, 10 Nov 2010 17:02:27 -0700 Subject: [mapserver-users] WMS identify within ArcGIS References: <3D56274B4A7874468F58FADDBFD0980109F05BE0@llmhs02.r8nssis.local> Message-ID: <9188AB5935664040805E01E348A2B81D1BF68FEA@lacex1.afsc.ads> It seems that ArcMap only supports text/plain output for WMS info_format even when requested otherwise. To my knowledge this format does not return attribute values but simply feature numbers (someone correct me if I am wrong). I have a support call into ESRI even as we speak so I will pass that information along when I get it. Till later, =========================== 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: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz Sent: Wednesday, November 10, 2010 2:58 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] WMS identify within ArcGIS Hello, I am trying to set up Mapserver as a WMS server. Currently I can draw maps. However, I am having trouble getting the server to support Identify, specifically within ArcGIS. Does anyone have an example map file and template that allows WMS Identify in ArcGIS. Thank You Mark Volz GIS Specialist Lyon County, MN -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Wed Nov 10 21:24:28 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 11 Nov 2010 07:24:28 +0200 Subject: [mapserver-users] WMS identify within ArcGIS References: <3D56274B4A7874468F58FADDBFD0980109F05BE0@llmhs02.r8nssis.local> <9188AB5935664040805E01E348A2B81D1BF68FEA@lacex1.afsc.ads> Message-ID: Hi, Info_format does not have (much) to do with the information Mapserver sends. It is true that if mapfile is configured to send no attributes with GetFeatureInfo responses it is still sending the feature number if user makes a request with text/plain but not with other formats (someone correct me if I am wrong). Configuring GetFeatureInfo is a bit tricky in Mapserver because all the formats text/plain, text/html, and gml need a bit different manouvres. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: David Hildebrand L?hetetty: to 11.11.2010 2:02 Vastaanottaja: mapserver-users at lists.osgeo.org Kopio: Mark Volz Aihe: RE: [mapserver-users] WMS identify within ArcGIS It seems that ArcMap only supports text/plain output for WMS info_format even when requested otherwise. To my knowledge this format does not return attribute values but simply feature numbers (someone correct me if I am wrong). I have a support call into ESRI even as we speak so I will pass that information along when I get it. Till later, =========================== 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: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz Sent: Wednesday, November 10, 2010 2:58 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] WMS identify within ArcGIS Hello, I am trying to set up Mapserver as a WMS server. Currently I can draw maps. However, I am having trouble getting the server to support Identify, specifically within ArcGIS. Does anyone have an example map file and template that allows WMS Identify in ArcGIS. Thank You Mark Volz GIS Specialist Lyon County, MN From jmckenna at gatewaygeomatics.com Wed Nov 10 21:47:55 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 11 Nov 2010 14:47:55 +0900 Subject: [mapserver-users] WMS identify within ArcGIS In-Reply-To: <3D56274B4A7874468F58FADDBFD0980109F05BE0@llmhs02.r8nssis.local> References: <3D56274B4A7874468F58FADDBFD0980109F05BE0@llmhs02.r8nssis.local> Message-ID: <4CDB838B.2000207@gatewaygeomatics.com> On 10-11-11 6:57 AM, Mark Volz wrote: > Hello, > > I am trying to set up Mapserver as a WMS server. Currently I can draw > maps. However, I am having trouble getting the server to support > Identify, specifically within ArcGIS. > > Does anyone have an example map file and template that allows WMS > Identify in ArcGIS. > One of the demo examples in the MapServer documentation (http://demo.mapserver.org/cgi-bin/wms?) has a "cities" layer that is configured for GetFeatureInfo text/plain and text/html requests (meaning that layer has "DUMP TRUE" set). Does that demo service work for you in your GIS ? -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From Bonnie.James at landgate.wa.gov.au Wed Nov 10 21:46:16 2010 From: Bonnie.James at landgate.wa.gov.au (Bonnie James) Date: Thu, 11 Nov 2010 13:46:16 +0800 Subject: [mapserver-users] WMS identify within ArcGIS References: <3D56274B4A7874468F58FADDBFD0980109F05BE0@llmhs02.r8nssis.local> Message-ID: <3F8F4F5195AF16468E8760F8068F089E015A6614@MAIL.dli.wa.gov.au> Hi Mark, A few years ago we did have a problem getting GetFeatureInfo queries to work with ArcGIS. Have you had a look through your server logs to analyse the request that ArcGIS is sending? In our case, ArcMap would send a request with the QUERY_LAYERS parameter present and correct, but the LAYERS parameters would be missing from the request. We use an ASP wrapper script for our services so we were able to add some code to parse the request, grab the list of layers from QUERY_LAYERS value, and use this to append the correct LAYERS parameter onto the request. Hope that helps - feel free to email me if you want some more information on the wrapper script. Cheers, Bonnie __________________________________ Bonnie James Research Officer Satellite Remote Sensing Services Operations Landgate 65 Brockway Road, FLOREAT WA 6014 Ph. (08) 9387 0342 | Fx. (08) 9383 7142 bonnie.james at landgate.wa.gov.au www.landgate.wa.gov.au ________________________________ From: mapserver-users-bounces at lists.osgeo.org on behalf of Mark Volz Sent: Thu 11/11/2010 5:57 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] WMS identify within ArcGIS Hello, I am trying to set up Mapserver as a WMS server. Currently I can draw maps. However, I am having trouble getting the server to support Identify, specifically within ArcGIS. Does anyone have an example map file and template that allows WMS Identify in ArcGIS. Thank You Mark Volz GIS Specialist Lyon County, MN This e-mail and any files transmitted with it are intended only for the use of the addressee(s). It may contain information that is confidential and privileged, in which case neither is intended to be waived or lost by mistaken delivery to you. If you are not an intended recipient, any use, interference with, disclosure, distribution or copying of this material is unauthorised and prohibited. If you receive this e-mail in error, please notify the sender by return e-mail and delete the message and any attachments from your system. Unless specifically indicated, this e-mail does not constitute formal advice or commitment by the sender or the Western Australian Land Information Authority (Landgate). Information in this message not relating to the official business of Landgate shall be understood as neither given nor endorsed by it. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. Landgate?s liability is limited to re-supplying affected attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: From radar at netpalantir.it Thu Nov 11 05:13:00 2010 From: radar at netpalantir.it (MM) Date: Thu, 11 Nov 2010 14:13:00 +0100 Subject: [mapserver-users] Another newbie needing help with a mapfile (projections)... Message-ID: <4CDBEBDC.1050704@netpalantir.it> Hello! I have a problem with Mapserver which I am apparently unable to solve. I have a mapserver installation which is queried by a web component, that uses virtual earth tile addressing. It works really great. My web component queries it like this: http://localhost/MapServ/mapserv.exe?map=mymap.map&mode=tile&tilemode=ve&tile=1202213133323032212&layers=aaa Until now it worked with ECW files only, and I had no problems. But now I need to add a shape file, and I just can't get it to work! I googled extensively the whole morning but I was unable to find any solution. Ogrinfo says this: ************************************************************** INFO: Open of ... using driver `ESRI Shapefile' successful. Layer name: mattarello Geometry: Polygon Feature Count: 8270 Extent: (662941.920131, 5093593.286658) - (667764.802144, 5099438.607073) Layer SRS WKT: PROJCS["UTM Zone 32, Northern Hemisphere", GEOGCS["GRS 1980(IUGG, 1980)", DATUM["unknown", SPHEROID["GRS80",6378137,298.257222101]], PRIMEM["Greenwich",0], UNIT["Degree",0.017453292519943295]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",9], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",0], UNIT["Meter",1]] ogc_fid: Integer (10.0) ... ************************************************************** This map has the same extent as the ecw I am using and it was provided by the same person, so I just thought to use the same projection as the ECW. I also thought that the output projection should be the same as the one I am using with the ECW, to work with the web component. Unfortunately, all tiles I get are just blank, and calling mapserver in map mode also renders a blank map. If I comment out the projection inside the layer, calling mapserver in map mode, it displays the map. But the tile is still blank. I am probably using the wrong projection, but I really can't figure out how to find the correct one, or how to translate the ogrinfo information to the mapfile! Here is the mapfile I am using. ************************************************************** MAP IMAGETYPE PNG EXTENT 662941.920131 5093593.286658 667764.802144 5099438.607073 SIZE 400 400 SHAPEPATH "." IMAGECOLOR 255 255 255 CONFIG "MS_ERRORFILE" "mapserverlog.txt" CONFIG "PROJ_DEBUG" "ON" DEBUG 5 OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END LAYER NAME aaa TYPE POLYGON DATA mattarello.shp STATUS DEFAULT CLASS NAME aaa OUTLINECOLOR 255 0 0 END PROJECTION "proj=utm" "zone=32" "ellps=GRS80" "units=m" "no_defs" END END PROJECTION "proj=merc" "a=6378137" "b=6378137" "lat_ts=0.0" "lon_0=0.0" "x_0=0.0" "y_0=0" "k=1.0" "units=m" "nadgrids=@null" "wktext" "no_defs" END END ************************************************************** Is there a way to display this shape on the tile? Thanks for any help!!! Palantir From Jukka.Rahkonen at mmmtike.fi Thu Nov 11 05:36:41 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 11 Nov 2010 15:36:41 +0200 Subject: [mapserver-users] MapServer as WMS In-Reply-To: <9188AB5935664040805E01E348A2B81D1BF68FE4@lacex1.afsc.ads> References: <9188AB5935664040805E01E348A2B81D1BF68FE4@lacex1.afsc.ads> Message-ID: Hi, Let's hope this is correct information. MAP-WEB-METADATA-"wms_srs" is listing the projections which are supported for the whole service. Individual layers may give more projections if they are given in LAYER-METADATA. If there is not wms_extent set on LAYER metadata Mapserver is trying to calculate it for you on-the-fly. At least older versions did not do that for tileindex layers, and with some database sources querying the extents may be slow and especially with Oracle very slow, so giving extents in the metadata may be a good idea. BBOX in the WMS GetMap is always in the output projection so yes, you need to have some conversion in your planned system. Finally, you will need some code of your own ot to use a ready made client for making WIDTH and HEIGHT proportional to BBOX. WMS is accepting anything and projects the output to fit the request. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta David Hildebrand L?hetetty: 9. marraskuuta 2010 20:09 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] MapServer as WMS I am trying to configure MapServer as a WMS service and would like some clarity on projection information. I have several layers in differing projections but would like the final output to be in Transverse Mercator. For each layer I have defined the "wms_srs" and "wms_extent" tags. In the top-level map file do I now define the "wms_srs" tag as a list of projections which are defined in the layers or is there a wildcard specification I can use? Furthermore, I want to be able to specify the bounding box in lat/lon rather than Transverse Mercator coordinates, the desired output projection. I suppose I need to have a CGI script call a projection utility to return the bounding box coordinates projected to Transverse Mercator and then pass those to mapserv. On a related note, how do I set the output WIDTH and HEIGHT to be proportional to the BBOX? 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 adams at terrestris.de Thu Nov 11 05:43:22 2010 From: adams at terrestris.de (adams) Date: Thu, 11 Nov 2010 14:43:22 +0100 Subject: [mapserver-users] Another newbie needing help with a mapfile (projections)... In-Reply-To: <4CDBEBDC.1050704@netpalantir.it> References: <4CDBEBDC.1050704@netpalantir.it> Message-ID: <4CDBF2FA.4080605@terrestris.de> Dear MM, I guess your problem is the SHAPEPATH "." Try first to add the full OR relative (from where your *.map is) datapath in your data-statement of the layer, e.g. : DATA /this/is/the/path/to/mattarello.shp If that works, add that path to your shapepath Till MM wrote: > Hello! > > I have a problem with Mapserver which I am apparently unable to solve. > I have a mapserver installation which is queried by a web component, > that uses virtual earth tile addressing. It works really great. My web > component queries it like this: > > http://localhost/MapServ/mapserv.exe?map=mymap.map&mode=tile&tilemode=ve&tile=1202213133323032212&layers=aaa > > > Until now it worked with ECW files only, and I had no problems. But > now I need to add a shape file, and I just can't get it to work! I > googled extensively the whole morning but I was unable to find any > solution. > > Ogrinfo says this: > > ************************************************************** > INFO: Open of ... using driver `ESRI Shapefile' successful. > Layer name: mattarello > Geometry: Polygon > Feature Count: 8270 > Extent: (662941.920131, 5093593.286658) - (667764.802144, 5099438.607073) > Layer SRS WKT: > PROJCS["UTM Zone 32, Northern Hemisphere", > GEOGCS["GRS 1980(IUGG, 1980)", > DATUM["unknown", > SPHEROID["GRS80",6378137,298.257222101]], > PRIMEM["Greenwich",0], > UNIT["Degree",0.017453292519943295]], > PROJECTION["Transverse_Mercator"], > PARAMETER["latitude_of_origin",0], > PARAMETER["central_meridian",9], > PARAMETER["scale_factor",0.9996], > PARAMETER["false_easting",500000], > PARAMETER["false_northing",0], > UNIT["Meter",1]] > ogc_fid: Integer (10.0) > ... > ************************************************************** > > This map has the same extent as the ecw I am using and it was provided > by the same person, so I just thought to use the same projection as > the ECW. I also thought that the output projection should be the same > as the one I am using with the ECW, to work with the web component. > > Unfortunately, all tiles I get are just blank, and calling mapserver > in map mode also renders a blank map. > > If I comment out the projection inside the layer, calling mapserver in > map mode, it displays the map. But the tile is still blank. > > I am probably using the wrong projection, but I really can't figure > out how to find the correct one, or how to translate the ogrinfo > information to the mapfile! > > Here is the mapfile I am using. > > ************************************************************** > MAP > IMAGETYPE PNG > EXTENT 662941.920131 5093593.286658 667764.802144 > 5099438.607073 > SIZE 400 400 > SHAPEPATH "." > IMAGECOLOR 255 255 255 > CONFIG "MS_ERRORFILE" "mapserverlog.txt" > CONFIG "PROJ_DEBUG" "ON" > DEBUG 5 > > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE RGB > EXTENSION "png" > END > > LAYER > NAME aaa > TYPE POLYGON > DATA mattarello.shp > STATUS DEFAULT > CLASS > NAME aaa > OUTLINECOLOR 255 0 0 > END > > PROJECTION > "proj=utm" > "zone=32" > "ellps=GRS80" > "units=m" > "no_defs" > END > END > > PROJECTION > "proj=merc" > "a=6378137" > "b=6378137" > "lat_ts=0.0" > "lon_0=0.0" > "x_0=0.0" > "y_0=0" > "k=1.0" > "units=m" > "nadgrids=@null" > "wktext" > "no_defs" > END > END > ************************************************************** > > Is there a way to display this shape on the tile? > > Thanks for any help!!! > Palantir > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- --------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Gesch?ftsf?hrung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 adams at terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplement?rin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From oanacristina22 at gmail.com Thu Nov 11 06:29:11 2010 From: oanacristina22 at gmail.com (cris) Date: Thu, 11 Nov 2010 06:29:11 -0800 (PST) Subject: [mapserver-users] RE: multiline label and two problems(different font sizes, avoid overlapping) In-Reply-To: References: <1288855099668-5704351.post@n2.nabble.com> Message-ID: <1289485751244-5728804.post@n2.nabble.com> Thanks a lot Steve! Indeed a hard one. Highly appreciated! I used priority in the end. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/multiline-label-and-two-problems-different-font-sizes-avoid-overlapping-tp5704351p5728804.html Sent from the Mapserver - User mailing list archive at Nabble.com. From strunck at bicc.de Thu Nov 11 06:37:23 2010 From: strunck at bicc.de (Strunck, Alexander) Date: Thu, 11 Nov 2010 15:37:23 +0100 Subject: [mapserver-users] BBOX Problem In-Reply-To: <1289485751244-5728804.post@n2.nabble.com> References: <1288855099668-5704351.post@n2.nabble.com> <1289485751244-5728804.post@n2.nabble.com> Message-ID: Hello List i have a problem with the bbox in openlayers. I use EPSG 4326 for my Layers and use the openlayers options var options = { restrictedExtent: new OpenLayers.Bounds(-180, -60, 180, 90), numZoomLevels: 5, minResolution: "auto", minExtent: new OpenLayers.Bounds(-5, -5, 5, 5), maxResolution: "auto", maxExtent: new OpenLayers.Bounds(-180, -60, 180, 90) But everytime i load the website the request got the BBOX -270,-120,270,150 http://***********************?LAYERS=bpb_milex&TRANSPARENT=true&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A4326&BBOX=-270,-120,270,150&WIDTH=930&HEIGHT=465 Has anybody an idea? Thank you Alex -- Internationales Konversionszentrum Bonn Bonn International Center for Conversion (BICC) GmbH Pfarrer- Byns-Stra?e 1, 53121 Bonn, GERMANY Tel. / Phone: +49-228-911 96 0, Fax: +49-228-911 96 - 22 Internet: www.bicc.de, E-mail: bicc at bicc.de Firmensitz/ Office: Bonn Registergericht/ Registered at: Amtsgericht Bonn, HRB 6717 Gesch?ftsf?hrer/ Director: Peter Johannes Croll Prokurist/ Authorized Signatory: Michael Dedek Vorsitzender des Aufsichtsrates/ Chairman of the Supervisory Board: Staatssekret?r/ Deputy Minister Helmut Dockter From bartvde at osgis.nl Thu Nov 11 06:42:37 2010 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Thu, 11 Nov 2010 15:42:37 +0100 (CET) Subject: [mapserver-users] BBOX Problem In-Reply-To: References: <1288855099668-5704351.post@n2.nabble.com> <1289485751244-5728804.post@n2.nabble.com> Message-ID: <10837.145.50.39.15.1289486557.squirrel@webmail.hostingdiscounter.nl> Hi, please ask this question on the openlayers-users mailing list. Best regards, Bart > Hello List > > i have a problem with the bbox in openlayers. I use EPSG 4326 for my > Layers and use the openlayers options > var options = { > restrictedExtent: new OpenLayers.Bounds(-180, -60, 180, > 90), > numZoomLevels: 5, > minResolution: "auto", > minExtent: new OpenLayers.Bounds(-5, -5, 5, 5), > maxResolution: "auto", > maxExtent: new OpenLayers.Bounds(-180, -60, 180, 90) > > But everytime i load the website the request got the BBOX > -270,-120,270,150 > http://***********************?LAYERS=bpb_milex&TRANSPARENT=true&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A4326&BBOX=-270,-120,270,150&WIDTH=930&HEIGHT=465 > > Has anybody an idea? > > Thank you > > Alex > > -- > Internationales Konversionszentrum Bonn > Bonn International Center for Conversion (BICC) GmbH > Pfarrer- Byns-Stra?e 1, 53121 Bonn, GERMANY > Tel. / Phone: +49-228-911 96 0, Fax: +49-228-911 96 - 22 > Internet: www.bicc.de, E-mail: bicc at bicc.de > > Firmensitz/ Office: Bonn > Registergericht/ Registered at: Amtsgericht Bonn, HRB 6717 > Gesch?ftsf?hrer/ Director: Peter Johannes Croll > Prokurist/ Authorized Signatory: Michael Dedek > Vorsitzender des Aufsichtsrates/ Chairman of the Supervisory Board: > Staatssekret?r/ Deputy Minister Helmut Dockter > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From niccolo at rigacci.org Thu Nov 11 07:36:27 2010 From: niccolo at rigacci.org (Niccolo Rigacci) Date: Thu, 11 Nov 2010 16:36:27 +0100 Subject: [mapserver-users] Bug? MapServer does not find .ige files into SHAPEPATH Message-ID: <20101111153627.GA4504@rigacci.org> I have a very large GeoTIFF created with gdal_merge.py, the .tif file was created along an .ige file, each of them are about 2.5 Gb: 892618510 /home/gisdata/ortofoto/2007_med.aux 2661367213 /home/gisdata/ortofoto/2007_med.ige 91 /home/gisdata/ortofoto/2007_med.tfw 2667686154 /home/gisdata/ortofoto/2007_med.tif I have a problem serving that file as a WMS using MapServer, I get a MapServer error: Unable to access file. 2007_med.tif using full path 2007_med.tif This is an extract of the mapfile: MAP SHAPEPATH "/home/gisdata/ortofoto" ... LAYER TYPE RASTER DATA "2007_med.tif" ... If I use the absolute path into the DATA tag, the problem is solved. If the .tif file does not have an .ige companion, I don't need to use the absolute path. Is this a MapServer or a GDAL bug? -- Niccolo Rigacci Firenze - Italy From geomartino at gmail.com Thu Nov 11 11:12:42 2010 From: geomartino at gmail.com (Martin Ouellet) Date: Thu, 11 Nov 2010 14:12:42 -0500 Subject: [mapserver-users] Mapserver consuming SLD coming from Udig and Styler (OpenGeo Suite) Message-ID: Hi all, I'a, trying to use SLD files with Mapserver. I've started from an example of this web site ( http://mapserver.org/ogc/sld.html) is working well but if I use a SLD generated by Udig or the Styler (OpenGeo suite), it does not. working SLD: INDEX_20K xxx center-line #008040 0.5 #008040 2 The one generated from the Styler raise an error (WMS server error. Invalid SLD document) INDEX_20K Default polygon style A sample style name default Index20K #008040 0.5 #008040 2 The one from Udig is simply ignored by mapserver (without raising any error) Default Styler 1 simple Feature generic:geometry simple #008040 0.5 #008000 2 Is there any chance that you had similar issues? thanks! MartinO -------------- next part -------------- An HTML attachment was scrubbed... URL: From donald.kerr at dkerr.co.uk Thu Nov 11 12:14:51 2010 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Thu, 11 Nov 2010 20:14:51 -0000 Subject: [mapserver-users] Rotated TrueType Font Symbols in PDFs Message-ID: <65051A8803524F6995C632042E857918@DELLM4500> Hi List, Is there a problem with rotated TrueType font symbols using IMAGETYPE=PDF? They all appear as unrotated symbols using that format. If I change to IMAGETYPE=AGGA, there is no problem. Is this a bug or just that the PDF output hasn't yet been written to do TrueType font symbol rotation? See attached examples. Notice also that symbol fills isn't showing in the pdf output but I think I read somewhere that that wasn't implemented. Many thanks. Regards, Donald -------------- next part -------------- A non-text attachment was scrubbed... Name: PngOutputArrowCorrect.png Type: image/png Size: 13580 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PngOutputArrowNOTCorrect.png Type: image/png Size: 8481 bytes Desc: not available URL: From donald.kerr at dkerr.co.uk Thu Nov 11 13:46:23 2010 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Thu, 11 Nov 2010 21:46:23 -0000 Subject: [mapserver-users] Changing Map File Parameters from a URL Message-ID: <55832C64386B4A338D2F227C368E68C8@DELLM4500> Hi List, I am trying the change the MAXGEOWIDTH from a url but am getting the error "getSymbol(): Symbol definition error. Parsing error near (C):(line 1)". I'm trying to user "...&MAP.LAYER.CartographicText.MAXGEOWIDTH=5000&..." and have tried using various combinations. CartographicText is a Layer that's included in the main map file INCLUDE "CartographicSymbol.map". The included file is as follows: ------------------------------------ LAYER CONNECTIONTYPE postgis NAME "CartographicText" CONNECTION "......" PROCESSING "CLOSE_CONNECTION=DEFER" DATA "geom FROM ...... USING UNIQUE toid" METADATA "IMAGEFORMAT" "AGGA" END STATUS ON MINGEOWIDTH 1 MAXGEOWIDTH 1300 etc., etc ------------------------------------ Con someone please advise me as to how I can do this? I've spent a good couple of hours hunting to no avail. Many thanks. Regards, Donald From jmckenna at gatewaygeomatics.com Thu Nov 11 17:56:56 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 12 Nov 2010 10:56:56 +0900 Subject: [mapserver-users] Changing Map File Parameters from a URL In-Reply-To: <55832C64386B4A338D2F227C368E68C8@DELLM4500> References: <55832C64386B4A338D2F227C368E68C8@DELLM4500> Message-ID: <4CDC9EE8.6000904@gatewaygeomatics.com> Hi, I gave some thoughts on a similar issue a few day ago on this same mailing list (http://lists.osgeo.org/pipermail/mapserver-users/2010-November/067157.html). Maybe the documentation needs to improve on this, my fault. -jeff On 10-11-12 6:46 AM, Donald Kerr wrote: > Hi List, > > I am trying the change the MAXGEOWIDTH from a url but am getting the error > "getSymbol(): Symbol definition error. Parsing error near (C):(line 1)". > > I'm trying to user "...&MAP.LAYER.CartographicText.MAXGEOWIDTH=5000&..." and > have tried using various combinations. > > CartographicText is a Layer that's included in the main map file > INCLUDE "CartographicSymbol.map". > > The included file is as follows: > > ------------------------------------ > LAYER CONNECTIONTYPE postgis > NAME "CartographicText" > CONNECTION "......" > PROCESSING "CLOSE_CONNECTION=DEFER" > DATA "geom FROM ...... USING UNIQUE toid" > > METADATA > "IMAGEFORMAT" "AGGA" > END > > STATUS ON > > MINGEOWIDTH 1 > MAXGEOWIDTH 1300 > > etc., etc > ------------------------------------ > > Con someone please advise me as to how I can do this? I've spent a good > couple of hours hunting to no avail. > > From maymerich at argongra.es Fri Nov 12 01:08:27 2010 From: maymerich at argongra.es (Manuel Aymerich) Date: Fri, 12 Nov 2010 10:08:27 +0100 Subject: [mapserver-users] PNG symbol transparency supported in map MODE? Message-ID: <000001cb8249$2bcc1690$836443b0$@es> Hi, I am working with mapserver to provide a wms service in which users can select a map area and get a pdf print as an output. On one my vector layers, I've inserted some new png symbols with an alpha channel. Everything works great in the WMS mode, transparency for those symbols is supported. However, when the users wants to get the pdf of an area, I make a mapserver CGI call in MODE=MAP to retrieve the map area as a single image an construct the pdf output on the fly. In this MODE=MAP case, transparency for those symbols is not supported. Here is a visual example of the problem I am facing, so that you can all judge it yourselves: + WMS mode (transparency for symbols supported). + Map mode (symbols transparency). It seems that when mapserver merges all layers into one in map mode to obtain a single output image, symbol features are rendered without transparency support. At the layer level I've set << OPACITY alpha >>, but the problem persists. Any clue of want I might be missing? Is this a mapserver bug? Any help or hint will be appreciated. Thanks in advanced, regards, Manuel Aymerich -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.spring at gmx.de Fri Nov 12 05:51:55 2010 From: m.spring at gmx.de (Markus Spring) Date: Fri, 12 Nov 2010 14:51:55 +0100 Subject: [mapserver-users] Problem: HTML-Entities in query templates Message-ID: <4CDD467B.4090303@denkbrett> Hi list, I ran into a problem when trying to use HTML-Entities like   inside my mapserver query templates: They always get printed as strings because mapserver escapes them. A quick googling for this problem unfortunately brought no results. Does anybody have a solution for this? best - Markus From daiane.a.fraga at gmail.com Fri Nov 12 07:02:52 2010 From: daiane.a.fraga at gmail.com (Daiane Fraga) Date: Fri, 12 Nov 2010 12:02:52 -0300 Subject: [mapserver-users] =?iso-8859-1?q?Gauss-Kr=FCger?= Message-ID: Hello, Did someone have any problems using Mapserver with Gauss-Kr?ger? I know that Mapserver is compatible with proj.4 library and the proj.4 library supports Gauss-Kr?ger. But I dont know how to use it. Somebody could help me? Thanks. Daiane -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Fri Nov 12 07:18:41 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 12 Nov 2010 17:18:41 +0200 Subject: =?iso-8859-1?Q?Re=3A_=5Bmapserver-users=5D_Gauss-Kr=FCger?= In-Reply-To: References: Message-ID: Hi, See examples of, for example, the Finnish KKJ which is a Gauss-Kr?ger projection. http://spatialreference.org/ref/epsg/2393/mapfile/ http://spatialreference.org/ref/epsg/2392/mapfile/ #another zone These settings work always but if the projection string is included in the "epsg" file in the "proj" directory it is possible to make it shorter and have just "init=epsg:2393" as a projection in the mapfile. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Daiane Fraga L?hetetty: 12. marraskuuta 2010 17:03 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Gauss-Kr?ger Hello, Did someone have any problems using Mapserver with Gauss-Kr?ger? I know that Mapserver is compatible with proj.4 library and the proj.4 library supports Gauss-Kr?ger. But I dont know how to use it. Somebody could help me? Thanks. Daiane -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri Nov 12 07:27:33 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 12 Nov 2010 09:27:33 -0600 Subject: [mapserver-users] Problem: HTML-Entities in query templates In-Reply-To: <4CDD467B.4090303@denkbrett> References: <4CDD467B.4090303@denkbrett> Message-ID: MapServer only escapes tag content so I assume you mean you have attribute data that contains HTML? If so you can use the item tag: Instead of [foo] try [item name="foo" escape="none"]... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Markus Spring Sent: Friday, November 12, 2010 7:52 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Problem: HTML-Entities in query templates Hi list, I ran into a problem when trying to use HTML-Entities like   inside my mapserver query templates: They always get printed as strings because mapserver escapes them. A quick googling for this problem unfortunately brought no results. Does anybody have a solution for this? best - Markus _______________________________________________ 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 Nov 12 07:33:22 2010 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Fri, 12 Nov 2010 10:33:22 -0500 Subject: [mapserver-users] Measure tool? Message-ID: <4EFF8BB964547748A07CA32961810C0415F33576@SOM-TEAQASMAIL1.som.w2k.state.me.us> Does anyone have code for a simple measure tool for MapServer applications that they are willing to share? I'm looking for something that can measure a simple line (click beginning and end point), and also something that could measure an area (draw polygon with the mouse). Thanks, Bob -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri Nov 12 07:40:30 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 12 Nov 2010 09:40:30 -0600 Subject: [mapserver-users] RE: Measure tool? In-Reply-To: <4EFF8BB964547748A07CA32961810C0415F33576@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C0415F33576@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: OpenLayers? From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: Friday, November 12, 2010 9:33 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Measure tool? Does anyone have code for a simple measure tool for MapServer applications that they are willing to share? I'm looking for something that can measure a simple line (click beginning and end point), and also something that could measure an area (draw polygon with the mouse). Thanks, Bob -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Fri Nov 12 07:43:19 2010 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Fri, 12 Nov 2010 10:43:19 -0500 Subject: [mapserver-users] RE: Measure tool? In-Reply-To: References: <4EFF8BB964547748A07CA32961810C0415F33576@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <4EFF8BB964547748A07CA32961810C041A036C3A@SOM-TEAQASMAIL1.som.w2k.state.me.us> No, I'm building an app using MapServer with PHPMapscript. Is there something in the OpenLayers code that can be used here? ________________________________ From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Friday, November 12, 2010 10:41 AM To: Bistrais, Bob; mapserver-users at lists.osgeo.org Subject: RE: Measure tool? OpenLayers? From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: Friday, November 12, 2010 9:33 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Measure tool? Does anyone have code for a simple measure tool for MapServer applications that they are willing to share? I'm looking for something that can measure a simple line (click beginning and end point), and also something that could measure an area (draw polygon with the mouse). Thanks, Bob -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Fri Nov 12 07:28:51 2010 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Fri, 12 Nov 2010 10:28:51 -0500 Subject: [mapserver-users] Can MapServer use RSS feeds? Message-ID: <4EFF8BB964547748A07CA32961810C0415F33575@SOM-TEAQASMAIL1.som.w2k.state.me.us> Has anyone successfully configured MapServer to use GeoRSS feeds and display that data? If so, do you have any sample code? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri Nov 12 07:49:29 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 12 Nov 2010 09:49:29 -0600 Subject: [mapserver-users] RE: Measure tool? In-Reply-To: <4EFF8BB964547748A07CA32961810C041A036C3A@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C0415F33576@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4EFF8BB964547748A07CA32961810C041A036C3A@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: MapServer and PHP/MapScript are server-side. There's no reason you can't use just about any client-side technology with that, OpenLayers being one option and there are others. Most others are higher level frameworks built atop OpenLayers. Steve From: Bistrais, Bob [mailto:Bob.Bistrais at maine.gov] Sent: Friday, November 12, 2010 9:43 AM To: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org Subject: RE: Measure tool? No, I'm building an app using MapServer with PHPMapscript. Is there something in the OpenLayers code that can be used here? ________________________________ From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Friday, November 12, 2010 10:41 AM To: Bistrais, Bob; mapserver-users at lists.osgeo.org Subject: RE: Measure tool? OpenLayers? From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: Friday, November 12, 2010 9:33 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Measure tool? Does anyone have code for a simple measure tool for MapServer applications that they are willing to share? I'm looking for something that can measure a simple line (click beginning and end point), and also something that could measure an area (draw polygon with the mouse). Thanks, Bob -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri Nov 12 08:00:38 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 12 Nov 2010 10:00:38 -0600 Subject: [mapserver-users] RE: Can MapServer use RSS feeds? In-Reply-To: <4EFF8BB964547748A07CA32961810C0415F33575@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C0415F33575@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: OGR/GDAL has a GeoRSS driver so that's where I'd start. If that software supports it then so does MapServer... ;-) From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob Sent: Friday, November 12, 2010 9:29 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Can MapServer use RSS feeds? Has anyone successfully configured MapServer to use GeoRSS feeds and display that data? If so, do you have any sample code? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Fri Nov 12 08:39:46 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 12 Nov 2010 10:39:46 -0600 Subject: [mapserver-users] mapserver stopped working - help needed In-Reply-To: <4CDB0F27.4070202@squeakycode.net> References: <60FD8A43-866F-40B9-9C3C-CBCD59B0E3FE@gmail.com> <4CDB0F27.4070202@squeakycode.net> Message-ID: Out of curiosity has this been resolved? Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andy Colson Sent: Wednesday, November 10, 2010 3:31 PM To: nelson guda Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] mapserver stopped working - help needed On 11/10/2010 12:14 PM, nelson guda wrote: > Hello all, > > Several years ago I built a mapping site called Roadlessland.org > , which uses mapserver and google maps to map > national forest roadless areas. I taught myself a lot of programming and > built the site from the ground up. > > Suddenly this fall mapserver stopped functioning completely. All I get > is the error below. The address for the mapserver > http://thewildwoodstudios.com/cgi-bin/mapserv? > > Until now there have been few maintenance issues, and I have no idea > what might have happened. As far as I know there haven't been any > changes in the server. Does anybody have any idea what might have gone > wrong? > > Thank you, > Nelson Guda > Can you check the Apache error log? More info about the problem should be in there, -Andy _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From greenkov at gmail.com Fri Nov 12 09:53:13 2010 From: greenkov at gmail.com (Alexander Petkov) Date: Fri, 12 Nov 2010 10:53:13 -0700 Subject: [mapserver-users] RE: Measure tool? In-Reply-To: References: <4EFF8BB964547748A07CA32961810C0415F33576@SOM-TEAQASMAIL1.som.w2k.state.me.us> <4EFF8BB964547748A07CA32961810C041A036C3A@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: Hey Bob, Do you already have the client-side code for user-drawn polygons? If so, what are you using? Like Steve mentioned, OpenLayers will do what you want, drawing of geometries included. Alex On Fri, Nov 12, 2010 at 8:49 AM, Lime, Steve D (DNR) wrote: > MapServer and PHP/MapScript are server-side. There?s no reason you can?t use > just about any client-side technology with that, OpenLayers being one option > and there are others. Most others are higher level frameworks built atop > OpenLayers. > > > > Steve > > > > From: Bistrais, Bob [mailto:Bob.Bistrais at maine.gov] > Sent: Friday, November 12, 2010 9:43 AM > To: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org > Subject: RE: Measure tool? > > > > No, I?m building an app using MapServer with PHPMapscript.? Is there > something in the OpenLayers code that can be used here? > > > > ________________________________ > > From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] > Sent: Friday, November 12, 2010 10:41 AM > To: Bistrais, Bob; mapserver-users at lists.osgeo.org > Subject: RE: Measure tool? > > > > OpenLayers? > > > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais, Bob > Sent: Friday, November 12, 2010 9:33 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Measure tool? > > > > Does anyone have code for a simple measure tool for MapServer applications > that they are willing to share? ?I?m looking for something that can measure > a simple line (click beginning and end point), and also something that could > measure an area (draw polygon with the mouse). > > > > Thanks, > > Bob > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From simone.frigerio at univie.ac.at Fri Nov 12 10:08:34 2010 From: simone.frigerio at univie.ac.at (Simone Frigerio) Date: Fri, 12 Nov 2010 19:08:34 +0100 Subject: [mapserver-users] multi criteria visualization on vector Message-ID: <4CDD82A2.2050908@univie.ac.at> Hi folk, one question on visualization based on logic criteria. I have a huge vectorial shp file (thousand of records). An example of attributes as following: __ Shape A B C D COMBI Polygon 0 0 3 4 0_0_3_4 Polygon 0 0 3 0 0_0_3_0 .... .... .... .... .... .... There are 25 combination of the 4 fields A-B-C-D visualized by unique code in COMBI field. I managed a mapfile like: ... LAYER NAME "MH" TYPE POLYGON DATA "melanie/topo" TRANSPARENCY 35 GROUP "MASCHERA" STATUS ON TEMPLATE "ttt" CLASSITEM "COMBI" CLASS EXPRESSION "0_0_3_0" STYLE COLOR 25 255 255 OUTLINECOLOR 0 0 0 END END END .... I visualize in this way only the polygons with the value in COMBI field. I can obviously add same class expressions for every value I want. My doubt is: if I need to visualize all the "n" combination available like differently "n" layers in a same view how can I do? I have to separate the original file in 25 shp layers (quite boring) or can I provide using only the original complete shp file? Example on the layer tree: Thanks. Simone -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From greenkov at gmail.com Fri Nov 12 10:42:21 2010 From: greenkov at gmail.com (Alexander Petkov) Date: Fri, 12 Nov 2010 11:42:21 -0700 Subject: [mapserver-users] multi criteria visualization on vector In-Reply-To: <4CDD82A2.2050908@univie.ac.at> References: <4CDD82A2.2050908@univie.ac.at> Message-ID: The classes are fine for defining your 25 combinations to make them look the way you want to. To the question about your shapefile--you could keep as one shapefile and define you connection to the data as shown here: http://mapserver.org/input/vector/ogr.html Define a static filter at first to test. Then, when that works, you can use variable substitution: http://mapserver.org/mapfile/variable_sub.html At least that's what I'd try. Alex On Fri, Nov 12, 2010 at 11:08 AM, Simone Frigerio wrote: > > Hi folk, > one question on visualization based on logic criteria. > I have a huge vectorial shp file (thousand of records). An example of attributes as following: > ShapeABCDCOMBI > Polygon00340_0_3_4 > Polygon00300_0_3_0 > ........................ > There are 25 combination of the 4 fields A-B-C-D visualized by unique code in COMBI field. > I managed a mapfile like: > ... > ?LAYER > ??? NAME "MH" > ??? TYPE POLYGON > ??? DATA "melanie/topo" > ??? TRANSPARENCY 35 > ??? GROUP "MASCHERA" > ??? STATUS ON > ??? TEMPLATE "ttt" > ??? CLASSITEM "COMBI" > ??? CLASS > ????? EXPRESSION "0_0_3_0" > ????? STYLE > ??????? COLOR 25 255 255 > ??? ??? OUTLINECOLOR 0 0 0 > ????? END > ??? END > ? END > .... > I visualize in this way only the polygons with the value in COMBI field. I can obviously add same class expressions for every value I want. My doubt is: > if I need to visualize all the "n" combination available? like differently "n" layers in a same view how can I do? I have to separate the original file in 25 shp layers (quite boring) or can I provide using only the original complete shp file? > Example on the layer tree: > > Thanks. > > Simone > > -- > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From David.Hildebrand at afsc.ca Fri Nov 12 11:02:01 2010 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Fri, 12 Nov 2010 12:02:01 -0700 Subject: [mapserver-users] WMS identify within ArcGIS References: <3D56274B4A7874468F58FADDBFD0980109F05BE0@llmhs02.r8nssis.local> <9188AB5935664040805E01E348A2B81D1BF68FEA@lacex1.afsc.ads> Message-ID: <9188AB5935664040805E01E348A2B81D1BF68FEE@lacex1.afsc.ads> Mark: Apparently I was in error. I restarted apache this morning and when I loaded the layer in question into ArcMap and did an "Identify" I got the results I wanted. I am not an apache guru so I'm not exactly sure what I did right. In the WEB>METADATA section of my map file I have the line "wms_feature_info_mime_type" "text/html". For each layer have the lines TEMPLATE "layer.html" DUMP TRUE The html template as well as the relevant map files are attached. This configuration works for text/html output but I'm not sure if ESRI supports GML. Hope this helps. =========================== 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: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of David Hildebrand Sent: Wednesday, November 10, 2010 5:02 PM To: mapserver-users at lists.osgeo.org Cc: Mark Volz Subject: RE: [mapserver-users] WMS identify within ArcGIS It seems that ArcMap only supports text/plain output for WMS info_format even when requested otherwise. To my knowledge this format does not return attribute values but simply feature numbers (someone correct me if I am wrong). I have a support call into ESRI even as we speak so I will pass that information along when I get it. Till later, =========================== 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: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz Sent: Wednesday, November 10, 2010 2:58 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] WMS identify within ArcGIS Hello, I am trying to set up Mapserver as a WMS server. Currently I can draw maps. However, I am having trouble getting the server to support Identify, specifically within ArcGIS. Does anyone have an example map file and template that allows WMS Identify in ArcGIS. Thank You Mark Volz GIS Specialist Lyon County, MN -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: townships.lyr Type: application/octet-stream Size: 590 bytes Desc: townships.lyr URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mstest.map Type: application/octet-stream Size: 537 bytes Desc: mstest.map URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From ludwig at kni-online.de Fri Nov 12 11:14:32 2010 From: ludwig at kni-online.de (Ludwig Kniprath) Date: Fri, 12 Nov 2010 20:14:32 +0100 Subject: [mapserver-users] RE: Measure tool? In-Reply-To: <20101112170021.D74ABE0220D@lists.osgeo.org> References: <20101112170021.D74ABE0220D@lists.osgeo.org> Message-ID: <4CDD9218.8010801@kni-online.de> Hi Bob, we use clientside javascript-functions. They both need an array of points ("digi_points") with real-world-coordiantes (properties "pointX" and "pointY") as input-parameter. This array is filled by clicks on the map, the click-coordiantes (pixel-distance from the click-point to the upper left corner of the map-grafic) ar calculated to real-wolrd coordinates with the upper left corner-coordinates and the cellsize of the map, these two parameters are returned to the browser together with the grafic by php-mapscript. function get_digi_points_length(digi_points) { var calculated_length = 0; for ( var i = 0; i < (digi_points.length - 1); i++) { var from_point = digi_points[i]; var to_point = digi_points[i + 1]; var delta_x = to_point.pointX - from_point.pointX; var delta_y = to_point.pointY - from_point.pointY; var delta_length = Math.sqrt(Math.pow(delta_x, 2) + Math.pow(delta_y, 2)); calculated_length += delta_length; } return calculated_length; } //precheck the digi_points for closed ring: digi_points[0] == digi_points[digi_points.length - 1] function get_digi_points_area(digi_points) { var calculated_area = 0; for ( var i = 0; i < (digi_points.length - 1); i++) { var from_point = digi_points[i]; var to_point = digi_points[i + 1]; var delta_area = from_point.pointX * to_point.pointY - to_point.pointX * from_point.pointY; calculated_area += delta_area; } calculated_area *= 0.5; // if digitized counter-clockwise the result is negative! calculated_area = Math.abs(calculated_area); return calculated_area; } Ludwig From geomartino at gmail.com Fri Nov 12 12:51:50 2010 From: geomartino at gmail.com (Martin Ouellet) Date: Fri, 12 Nov 2010 15:51:50 -0500 Subject: [mapserver-users] using a SLD for a non-WMS layer. Message-ID: Hi all, I would like a confirmation to be sure that I understand the process: Considering that I can't use a sld directly inside a layer definition (in my case BDTQ_HYDRO_L_ARC), I have to define another WMS layer (BDTQ_HYDRO_L_ARC_SLD in my example below) that will be redirected to the BDTQ_HYDRO_L_ARC layer WITH the style definition file ("wms_sld_url") to use for the rendering? Currently, this process works very well but: Q1: Is there a better way (or faster way for mapserver) for doing that ?(apply a sld to a non-WMS layer)? Q2: What kind of degradation of performance can I expect with this cascading workflow (2 time slower?) regards MartinO Example: LAYER NAME "BDTQ_HYDRO_L_ARC" DATA "geom from bdtq_hydro_l_arc using srid=4269" TYPE LINE MAXSCALEDENOM 150000 MINSCALEDENOM 0 METADATA "wms_name" "BDTQ_HYDRO_L_ARC" "wms_title" "Hydrographie Lin?aire" "wms_keywordlist" "TODO" "wms_abstract" "TODO" END PROJECTION "init=epsg:4269" END CLASS STYLE COLOR 0 0 0 END END END #-- Hydrographie WMS LAYER NAME "BDTQ_HYDRO_L_ARC_SLD" TYPE RASTER CONNECTION "http:///mapserv?map=bdtq" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:4269" "wms_name" "BDTQ_HYDRO_L_ARC" "wms_server_version" "1.1.1" "wms_format" "png" "wms_extent" "-80 45 -54 60" "wms_sld_url" "http:///sld/bdtq_hydro_l_arc.sld" END END regards MartinO -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Hildebrand at afsc.ca Fri Nov 12 15:45:11 2010 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Fri, 12 Nov 2010 16:45:11 -0700 Subject: [mapserver-users] WMS identify within ArcGIS References: <3D56274B4A7874468F58FADDBFD0980109F05BE0@llmhs02.r8nssis.local><9188AB5935664040805E01E348A2B81D1BF68FEA@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF68FEE@lacex1.afsc.ads> Message-ID: <9188AB5935664040805E01E348A2B81D1BF68FF0@lacex1.afsc.ads> Mark: I did a bit of digging and discovered a couple of things with respect to GML encoding. The ESRI documentation states that GML is supported and, in fact, encouraged with WFS services (http://webhelp.esri.com/arcgisserver/9.3/dotNet/index.htm#wfs_service.h tm). However, because WMS services are not designed to deliver geographic data but simply map images GML is not supported from WMS services. ArcGIS desktop does, indeed, support GML from WFS services and the Data Interoperability extension extends that support to a number of different schemas (http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=An_overvi ew_of_GML_support_in_ArcGIS). I'm not sure, however, if the Data Interoperability extension would be required. I suspect not but I may be wrong. In short, if you want to use GML for attribute encoding in ArcMap, set up your service as WFS and try it. Otherwise, text/html might just have to suffice. Hope this helps. =========================== 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: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of David Hildebrand Sent: Friday, November 12, 2010 12:02 PM To: Mark Volz Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] WMS identify within ArcGIS Mark: Apparently I was in error. I restarted apache this morning and when I loaded the layer in question into ArcMap and did an "Identify" I got the results I wanted. I am not an apache guru so I'm not exactly sure what I did right. In the WEB>METADATA section of my map file I have the line "wms_feature_info_mime_type" "text/html". For each layer have the lines TEMPLATE "layer.html" DUMP TRUE The html template as well as the relevant map files are attached. This configuration works for text/html output but I'm not sure if ESRI supports GML. Hope this helps. =========================== 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: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of David Hildebrand Sent: Wednesday, November 10, 2010 5:02 PM To: mapserver-users at lists.osgeo.org Cc: Mark Volz Subject: RE: [mapserver-users] WMS identify within ArcGIS It seems that ArcMap only supports text/plain output for WMS info_format even when requested otherwise. To my knowledge this format does not return attribute values but simply feature numbers (someone correct me if I am wrong). I have a support call into ESRI even as we speak so I will pass that information along when I get it. Till later, =========================== 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: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz Sent: Wednesday, November 10, 2010 2:58 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] WMS identify within ArcGIS Hello, I am trying to set up Mapserver as a WMS server. Currently I can draw maps. However, I am having trouble getting the server to support Identify, specifically within ArcGIS. Does anyone have an example map file and template that allows WMS Identify in ArcGIS. Thank You Mark Volz GIS Specialist Lyon County, MN -------------- next part -------------- An HTML attachment was scrubbed... URL: From toomas.aas at raad.tartu.ee Sat Nov 13 04:38:58 2010 From: toomas.aas at raad.tartu.ee (Toomas Aas) Date: Sat, 13 Nov 2010 14:38:58 +0200 Subject: [mapserver-users] GD and PHP 5.3 Message-ID: <20101113143858.18282wlzpujhsbms@webmail.raad.tartu.ee> Hello! I have compiled Mapserver and PHP/MapScript on FreeBSD many times over many years, but now is the first time I'm trying this with PHP 5.3. In the past, when compiling the GD extension for PHP, I have always compiled it with external GD library. It is my understanding that since Mapserver is also compiled with the GD library support, this approach is necessary since otherwise I'd end up with symbol conflicts between gd.so and php_mapscript.so. I tried the same with PHP 5.3, but loading the gd extension results in error: /libexec/ld-elf.so.1: /usr/local/lib/php/20090626/gd.so: Undefined symbol "gdJpegGetVersionString" If I compile the GD extension with PHP's bundled GD library, this error does not happen. How are other people handling this these days? Is using external GD library in PHP still a requirement, or is this no longer a problem? -- Toomas Aas From donald.kerr at dkerr.co.uk Sat Nov 13 12:11:18 2010 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Sat, 13 Nov 2010 20:11:18 -0000 Subject: [mapserver-users] Mapserver ODBC Access Database Field Concatenation In-Reply-To: <4CDC9EE8.6000904@gatewaygeomatics.com> Message-ID: <21E086C2CAFC4CC3AA37684223E21202@DELLM4500> Hi List, I want to create a multi line label based on a combination of text and fields from an Access database. I can connect to the database and return the required fields but I do not seem to be able to concatenate fields to produce the required results. Here's the contents of the ovf file: ODBC:@MyDSN SELECT ('Status: ',[Status],'|','Dia: ',[Diameter]) AS MyLabel FROM MyTable wkbPoint There is not a problem if I simply request the fields alone (substitute the line below for the one in the code above): SELECT Status, Diameter FROM MyTable The problem seems to be with concatenating fields. I have also tried concatenation using the word CONCAT with the same results. Can anyone advise please? Alternatively is there a better way to produce the multi line label in the LAYER definition i.e. can I do the concatenation in there? Many thanks. Regards, Donald Kerr From donald.kerr at dkerr.co.uk Sat Nov 13 12:13:38 2010 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Sat, 13 Nov 2010 20:13:38 -0000 Subject: [mapserver-users] Mapserver ODBC Access Database Field Concatenation In-Reply-To: <21E086C2CAFC4CC3AA37684223E21202@DELLM4500> Message-ID: <1AB50ABE57A945EF916310B3C7E31597@DELLM4500> The error I am getting is as follows: msDrawMap(): Image handling error. Failed to draw layer named 'MyLayer'. msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `MyLayer'. SQL statement failed, or returned no layer result: SELECT ('Status: ',[Status],'|','Dia: ',[Diameter]) AS MyLabel FROM MyTable Regards, Donald From correoderafa at hotmail.com Sun Nov 14 23:55:20 2010 From: correoderafa at hotmail.com (rafacabanas) Date: Sun, 14 Nov 2010 23:55:20 -0800 (PST) Subject: [mapserver-users] code ascii in a .map file Message-ID: <1289807720244-5739164.post@n2.nabble.com> Hello, I have a .map file which access to a postgres data base. The select query contains an ascii code character representing the " symbol. For example: SELECT * FROM & # 3 4 ; table_name & # 3 4 ; instead of SELECT * FROM "table_name" Mapserver doesn't show the layer and when checking the log file of the data base I've seen that there's and syntaxis error in that position. If I change myself the file .map, it works. However, that's not a solution because the .map has to be automatically generate by another app. How can I solve that problem? Is there any way to change the mapserver encoding? I there any way to make that mapserver replace the ascii code? Note: I write the ascii code whith spaces becaus the post editor replaces the code Thanks in advance -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/code-ascii-in-a-map-file-tp5739164p5739164.html Sent from the Mapserver - User mailing list archive at Nabble.com. From graciafdez at gmail.com Mon Nov 15 00:55:56 2010 From: graciafdez at gmail.com (=?ISO-8859-1?Q?Gracia_Fern=E1ndez_L=F3pez?=) Date: Mon, 15 Nov 2010 09:55:56 +0100 Subject: [mapserver-users] PNG symbol transparency supported in map MODE? In-Reply-To: <000001cb8249$2bcc1690$836443b0$@es> References: <000001cb8249$2bcc1690$836443b0$@es> Message-ID: Hello Manuel, I am not an expert with MapServer, but I can suggest you to do all the queries in WMS mode (or other OGC query), because it is a standard and it already works to you. Taking a look to my MapServer configuration, I have the following: OUTPUTFORMAT NAME gif ... *TRANSPARENT ON* END I hope this can help you. -- Regards Gracia 2010/11/12 Manuel Aymerich > Hi, > > > > I am working with mapserver to provide a wms service in which users can > select a map area and get a pdf print as an output. On one my vector layers, > I?ve inserted some new png symbols with an alpha channel. Everything works > great in the WMS mode, transparency for those symbols is supported. > However, when the users wants to get the pdf of an area, I make a > mapserver CGI call in MODE=MAP to retrieve the map area as a single image an > construct the pdf output on the fly. In this MODE=MAP case, transparency for > those symbols is not supported. > > > > Here is a visual example of the problem I am facing, so that you can all > judge it yourselves: > > + WMS mode (transparency for symbols supported) > . > > + Map mode (symbols transparency) > . > > > > It seems that when mapserver merges all layers into one in map mode to > obtain a single output image, symbol features are rendered without > transparency support. > > > > At the layer level I?ve set << OPACITY alpha >>, but the problem > persists. Any clue of want I might be missing? Is this a mapserver bug? > > > > Any help or hint will be appreciated. Thanks in advanced, regards, > > > > Manuel Aymerich > > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.walberg at airborne.aero Mon Nov 15 16:51:29 2010 From: ian.walberg at airborne.aero (Ian Walberg) Date: Mon, 15 Nov 2010 19:51:29 -0500 Subject: [mapserver-users] Mapscript vs fastcgi In-Reply-To: References: <000001cb8249$2bcc1690$836443b0$@es> Message-ID: We are testing an application which currently uses curl to call lighttpd (with fastcgi) and simple map files. When we do the same via the command line using the same map files but mapscript to render the image the difference is speed is huge, 4-5 time longer using php/mapscript. >From a first look the Drawing Label Cache is one of the main areas which is taking much longer, say 40-50 seconds instead of 2-4 seconds! Just about to start looking in more detail but hoping someone out there knows why the huge difference. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Nov 15 17:12:43 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 15 Nov 2010 20:12:43 -0500 Subject: [mapserver-users] Mapscript vs fastcgi In-Reply-To: References: <000001cb8249$2bcc1690$836443b0$@es> Message-ID: <4CE1DA8B.6000904@swoodbridge.com> On 11/15/2010 7:51 PM, Ian Walberg wrote: > We are testing an application which currently uses curl to call lighttpd > (with fastcgi) and simple map files. > > When we do the same via the command line using the same map files but > mapscript to render the image the difference is speed is huge, 4-5 time > longer using php/mapscript. > > From a first look the Drawing Label Cache is one of the main areas > which is taking much longer, say 40-50 seconds instead of 2-4 seconds! > > Just about to start looking in more detail but hoping someone out there > knows why the huge difference. One of the first things I would check is make sure you are drawing both images at the same scale. And that you are rendering the same layers. Inclusion of an additional layer or a small scale change could potentially throw a lot more objects into the label cache. -Steve W From jmckenna at gatewaygeomatics.com Mon Nov 15 18:08:16 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 16 Nov 2010 11:08:16 +0900 Subject: [mapserver-users] Mapscript vs fastcgi In-Reply-To: References: <000001cb8249$2bcc1690$836443b0$@es> Message-ID: <4CE1E790.7060101@gatewaygeomatics.com> On 10-11-16 9:51 AM, Ian Walberg wrote: > We are testing an application which currently uses curl to call lighttpd > (with fastcgi) and simple map files. > > When we do the same via the command line using the same map files but > mapscript to render the image the difference is speed is huge, 4-5 time > longer using php/mapscript. > > From a first look the Drawing Label Cache is one of the main areas > which is taking much longer, say 40-50 seconds instead of 2-4 seconds! > > Just about to start looking in more detail but hoping someone out there > knows why the huge difference. > Hi Ian, I'd say if you have a mapfile that is taking a minute to draw that you have a problem. If I were you I would use shp2img with the debug option to see layer draw times, and focus on the layer that is causing the trouble at that scale. If I was stuck on the cause of the problem, I might email this mailing list the layer text from the mapfile and a description of the data source, and maybe someone can find the issue. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From sebastian.ovide at gmail.com Tue Nov 16 02:13:53 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Tue, 16 Nov 2010 10:13:53 +0000 Subject: [mapserver-users] POINT layer from simple x, y table: Segmentation fault Message-ID: Hi All, I've created a POINT layer: LAYER NAME POLICY TYPE POINT EXTENT 54225.000000 5800.000000 655625.000000 1220325.000000 STATUS ON CONNECTIONTYPE OGR CONNECTION "OCI:la001/la001 at 192.168.60.70/MFUATDB" DATA "Select match_level, x_coord, y_coord, SDO_GEOMETRY(2001,27700,SDO_POINT_TYPE(x_coord, y_coord, NULL), NULL, NULL) as point From policy" PROJECTION "init=epsg:27700" END CLASS STYLE SYMBOL "star" COLOR 255 0 0 SIZE 10 END END END and this is what I'm getting in apache logs: OGR: OGROpen(OCI:la001/la001 at 192.168.60.70/MFUATDB/0xa194160) succeeded as OCI. OCI: ExecuteSQL(Select match_level, x_coord, y_coord, SDO_GEOMETRY(2001,27700,SDO_POINT_TYPE(x_coord, y_coord, NULL), NULL, NULL) as point From policy) OCI: Prepare(Select match_level, x_coord, y_coord, SDO_GEOMETRY(2001,27700,SDO_POINT_TYPE(x_coord, y_coord, NULL), NULL, NULL) as point From policy) [Tue Nov 16 10:06:31 2010] [error] [client 10.0.1.50] FastCGI: incomplete headers (0 bytes) received from server "/home/gis/bin/mapserv" [Tue Nov 16 10:06:31 2010] [warn] FastCGI: (dynamic) server "/home/gis/bin/mapserv" (pid 1086) terminated due to uncaught signal '11' (Segmentation fault) any ideas ? -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue Nov 16 02:37:21 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 16 Nov 2010 12:37:21 +0200 Subject: [mapserver-users] POINT layer from simple x, y table: Segmentation fault In-Reply-To: References: Message-ID: Hi, No idea exactly about this, but if you manage to get further I fear you will be banging your head to the next wall because Mapserver won't get a spatial index from Oracle for such a query. Adding "USING NONE" to the end of DATA should help then, see http://mapserver.org/input/vector/oracle.html I suppose you have some good reason for playing with x_coord and y_coord columns instead of massaging them into a real physical SDO_GEOMETRY column that could also be indexed with a spatial filter, for example going through a materialized view way. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Sebastian E. Ovide L?hetetty: 16. marraskuuta 2010 12:14 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] POINT layer from simple x,y table: Segmentation fault Hi All, I've created a POINT layer: LAYER NAME POLICY TYPE POINT EXTENT 54225.000000 5800.000000 655625.000000 1220325.000000 STATUS ON CONNECTIONTYPE OGR CONNECTION "OCI:la001/la001 at 192.168.60.70/MFUATDB" DATA "Select match_level, x_coord, y_coord, SDO_GEOMETRY(2001,27700,SDO_POINT_TYPE(x_coord, y_coord, NULL), NULL, NULL) as point From policy" PROJECTION "init=epsg:27700" END CLASS STYLE SYMBOL "star" COLOR 255 0 0 SIZE 10 END END END and this is what I'm getting in apache logs: OGR: OGROpen(OCI:la001/la001 at 192.168.60.70/MFUATDB/0xa194160) succeeded as OCI. OCI: ExecuteSQL(Select match_level, x_coord, y_coord, SDO_GEOMETRY(2001,27700,SDO_POINT_TYPE(x_coord, y_coord, NULL), NULL, NULL) as point From policy) OCI: Prepare(Select match_level, x_coord, y_coord, SDO_GEOMETRY(2001,27700,SDO_POINT_TYPE(x_coord, y_coord, NULL), NULL, NULL) as point From policy) [Tue Nov 16 10:06:31 2010] [error] [client 10.0.1.50] FastCGI: incomplete headers (0 bytes) received from server "/home/gis/bin/mapserv" [Tue Nov 16 10:06:31 2010] [warn] FastCGI: (dynamic) server "/home/gis/bin/mapserv" (pid 1086) terminated due to uncaught signal '11' (Segmentation fault) any ideas ? -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From daiane.a.fraga at gmail.com Tue Nov 16 03:02:10 2010 From: daiane.a.fraga at gmail.com (Daiane Fraga) Date: Tue, 16 Nov 2010 08:02:10 -0300 Subject: =?ISO-8859-1?B?UkU6IFJFOiBbbWFwc2VydmVyLXVzZXJzXSBHYXVzcy1LcvxnZXI=?= In-Reply-To: References: Message-ID: Hi, I understand what you say. But this is not my question. I'm with a map in a coordinate system outdated (the maps are dated from 1908). And I'm using an application that interacts with Google Maps, which has caused problems. Did you know how to do some kind of conversion from the Mapserver? We can do a conversion to the WGS 1984, but it has to be done manually for each map. I'm not sure that may maps have a known Mapserver projection. I'm using this: PROJECTION "init=epsg:26915" "proj=latlong" "ellps=WGS84" "datum=WGS84" END Thanks! Daiane Fraga ---------- Forwarded message ---------- From: Fuchs Juan Carlos Date: 2010/11/12 Subject: RE: [mapserver-users] Gauss-Kr?ger To: Daiane Fraga Hi Daiane You have to find in Prij.4 the right EPSG code for your maps in wich country / region are you interested? yust to sart with ... in the .map you have to insert two groups of code in the header (first zone) goes the poyection of the map you are producing PROJECTION "init=epsg:heregoesyourcode" END for each Layer you call to build the map Layer .... PROJECTION "init=epsg:heregoesyourcodeof thesourcelayer" END .... end hope it help someway Cheers JC -----Mensaje original----- *De:* Daiane Fraga [mailto:daiane.a.fraga at gmail.com] *Enviado el:* Viernes, 12 de Noviembre de 2010 12:03 p.m. *Para:* mapserver-users at lists.osgeo.org *Asunto:* [mapserver-users] Gauss-Kr?ger Hello, Did someone have any problems using Mapserver with Gauss-Kr?ger? I know that Mapserver is compatible with proj.4 library and the proj.4 library supports Gauss-Kr?ger. But I dont know how to use it. Somebody could help me? Thanks. Daiane -------------- next part -------------- An HTML attachment was scrubbed... URL: From daiane.a.fraga at gmail.com Tue Nov 16 03:15:57 2010 From: daiane.a.fraga at gmail.com (Daiane Fraga) Date: Tue, 16 Nov 2010 08:15:57 -0300 Subject: =?ISO-8859-1?B?UkU6IFJFOiBbbWFwc2VydmVyLXVzZXJzXSBHYXVzcy1LcvxnZXI=?= In-Reply-To: References: Message-ID: Hi, I'm sorry, but did not understand what you mean. My problem is that I'm with the map in the coordinate system outdated (the maps are dated from 1908). I'm not sure that I have known maps in a Mapserver projection. And I'm using an application that interacts with Google Maps, which has caused problems. We can do the conversion to the WGS 1984, but it has to be done manually for each map. I would like to automatically convert the Gauss-Kr?ger projection to a knownMapserver projection, as the coordinate system WGS. I'm actually using this: PROJECTION "Init = EPSG: 26915" "Proj = latlong" "Ellps = WGS84" "Datum = WGS84" END Thanks! Daiane Fraga ---------- Forwarded message ---------- From: Rahkonen Jukka Date: 2010/11/12 Subject: Re: [mapserver-users] Gauss-Kr?ger To: Daiane Fraga , mapserver-users at lists.osgeo.org Hi, See examples of, for example, the Finnish KKJ which is a Gauss-Kr?ger projection. http://spatialreference.org/ref/epsg/2393/mapfile/ http://spatialreference.org/ref/epsg/2392/mapfile/ #another zone These settings work always but if the projection string is included in the "epsg" file in the "proj" directory it is possible to make it shorter and have just "init=epsg:2393" as a projection in the mapfile. -Jukka Rahkonen- ------------------------------ *L?hett?j?:* mapserver-users-bounces at lists.osgeo.org [mailto: mapserver-users-bounces at lists.osgeo.org] *Puolesta *Daiane Fraga *L?hetetty:* 12. marraskuuta 2010 17:03 *Vastaanottaja:* mapserver-users at lists.osgeo.org *Aihe:* [mapserver-users] Gauss-Kr?ger Hello, Did someone have any problems using Mapserver with Gauss-Kr?ger? I know that Mapserver is compatible with proj.4 library and the proj.4 library supports Gauss-Kr?ger. But I dont know how to use it. Somebody could help me? Thanks. Daiane -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.l.h.hartmann at uva.nl Tue Nov 16 03:21:07 2010 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Tue, 16 Nov 2010 12:21:07 +0100 Subject: [mapserver-users] =?ISO-8859-1?Q?Gauss-Kr=FCger?= In-Reply-To: References: Message-ID: <4CE26923.5030603@uva.nl> If your map is from 1908, there is a change that its projection is not in the official modern EPSG table. In that case you need to derive the whole PROJ4 definition from the legend of the map. As a rule, this is not difficult, as the theoretical definitions of the common projection have been known for a long time, it's just a matter of discovering which particular set of parameters has been chosen for this map. In my experience with old Dutch maps the main difficulty is finding out which ellipsoid has been used. In your case, a map of 1908 can in no way have had a WGS84 datum. You probably have to project it to a modern projection with the original ellipsoid, and from that to WGS84. Can you give any details of the maps you are working with and whether their legends say something said about the projection? Are they part of a larger map series? Jan On 11/16/10 12:02, Daiane Fraga wrote: > Hi, > > I understand what you say. But this is not my question. I'm with a map > in a coordinate system outdated (the maps are dated from 1908). And > I'm using an application that interacts with Google Maps, which has > caused problems. Did you know how to do some kind of conversion from > the Mapserver? > We can do a conversion to the WGS 1984, but it has to be done manually > for each map. > I'm not sure that may maps have a known Mapserver projection. > > I'm using this: > PROJECTION > "init=epsg:26915" > "proj=latlong" > "ellps=WGS84" > "datum=WGS84" > END > > > Thanks! > > Daiane Fraga > > > > > ---------- Forwarded message ---------- > From: *Fuchs Juan Carlos* > > Date: 2010/11/12 > Subject: RE: [mapserver-users] Gauss-Kr?ger > To: Daiane Fraga > > > > Hi Daiane > You have to find in Prij.4 the right EPSG code for your maps > in wich country / region are you interested? > yust to sart with ... > in the .map you have to insert two groups of code > in the header (first zone) goes the poyection of the map you are producing > PROJECTION > "init=epsg:heregoesyourcode" > END > for each Layer you call to build the map > Layer > .... > PROJECTION > "init=epsg:heregoesyourcodeof thesourcelayer" > END > .... > end > hope it help someway > Cheers > JC > > -----Mensaje original----- > *De:* Daiane Fraga [mailto:daiane.a.fraga at gmail.com > ] > *Enviado el:* Viernes, 12 de Noviembre de 2010 12:03 p.m. > *Para:* mapserver-users at lists.osgeo.org > > *Asunto:* [mapserver-users] Gauss-Kr?ger > > Hello, > > Did someone have any problems using Mapserver with Gauss-Kr?ger? > I know that Mapserver is compatible with proj.4 library and the > proj.4 library supports Gauss-Kr?ger. But I dont know how to use it. > Somebody could help me? > > Thanks. > > Daiane > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue Nov 16 03:35:36 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 16 Nov 2010 13:35:36 +0200 Subject: =?iso-8859-1?Q?Re=3A_RE=3A_=5Bmapserver-users=5D_Gauss-Kr=FCger?= In-Reply-To: References: Message-ID: Hi, Your projectin setting is likely to give you unpredictable results, because init:epsg:26915 means <26915> +proj=utm +zone=15 +ellps=GRS80 +datum=NAD83 +units=m +no_defs <> and now you are giving additional, different definitions for the type of projection, ellipsoid and datum. What do you know about your old maps? Obviously they were not originally in digital format but they have been scanned later, oriented to North-South and georeferenced with world file or something? It is quite possible that you can find out the exact projection that was used for producing the map but it is a good start that you know it is Gauss-Kr?ger. Below are two proj4 strings for Gauss-Kr?ger projections # DHDN / 3-degree Gauss zone 2 (deprecated) German +proj=tmerc +lat_0=0 +lon_0=6 +k=1 +x_0=2500000 +y_0=0 +ellps=bessel +datum=potsdam +units=m +no_defs <> #Finnish KKJ tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-96.0617,-82.4278,-121.743,4.80107,0.34543,-1.37646,1.4964 +units=m +no_defs <> What you need to chase up are proj=tmerc #this is clear, Gauss-Kr?ger is a transverse Mercator projection lat_0 #origin of latitude lon_0 #origin of longitude, the central meridian of the projection zone k #scale factor, I suppose it is usually 1 in European Gauss-Kruger projections x_0 #false easting in meters y_0 #false northing in meters ellps #name of the ellipsoid; may be hard to find an accurate equivalent to 1908 situation datum #name of the datum; same as above towgs84 #affine transformation parameters, usually either datum or towgs84 are needed -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Daiane Fraga L?hetetty: 16. marraskuuta 2010 13:02 Vastaanottaja: Fuchs Juan Carlos; mapserver-users at lists.osgeo.org Aihe: RE: RE: [mapserver-users] Gauss-Kr?ger Hi, I understand what you say. But this is not my question. I'm with a map in a coordinate system outdated (the maps are dated from 1908). And I'm using an application that interacts with Google Maps, which has caused problems. Did you know how to do some kind of conversion from the Mapserver? We can do a conversion to the WGS 1984, but it has to be done manually for each map. I'm not sure that may maps have a known Mapserver projection. I'm using this: PROJECTION "init=epsg:26915" "proj=latlong" "ellps=WGS84" "datum=WGS84" END Thanks! Daiane Fraga ---------- Forwarded message ---------- From: Fuchs Juan Carlos Date: 2010/11/12 Subject: RE: [mapserver-users] Gauss-Kr?ger To: Daiane Fraga Hi Daiane You have to find in Prij.4 the right EPSG code for your maps in wich country / region are you interested? yust to sart with ... in the .map you have to insert two groups of code in the header (first zone) goes the poyection of the map you are producing PROJECTION "init=epsg:heregoesyourcode" END for each Layer you call to build the map Layer .... PROJECTION "init=epsg:heregoesyourcodeof thesourcelayer" END .... end hope it help someway Cheers JC -----Mensaje original----- De: Daiane Fraga [mailto:daiane.a.fraga at gmail.com] Enviado el: Viernes, 12 de Noviembre de 2010 12:03 p.m. Para: mapserver-users at lists.osgeo.org Asunto: [mapserver-users] Gauss-Kr?ger Hello, Did someone have any problems using Mapserver with Gauss-Kr?ger? I know that Mapserver is compatible with proj.4 library and the proj.4 library supports Gauss-Kr?ger. But I dont know how to use it. Somebody could help me? Thanks. Daiane -------------- next part -------------- An HTML attachment was scrubbed... URL: From correoderafa at hotmail.com Tue Nov 16 09:20:48 2010 From: correoderafa at hotmail.com (rafacabanas) Date: Tue, 16 Nov 2010 09:20:48 -0800 (PST) Subject: [mapserver-users] ascii code in a .map file Message-ID: <1289928048071-5744626.post@n2.nabble.com> Hello, I have a .map file which access to a postgres data base. The select query contains an ascii code character representing the " symbol. For example: SELECT * FROM & # 3 4 ; table_name & # 3 4 ; instead of SELECT * FROM "table_name" Mapserver doesn't show the layer and when checking the log file of the data base I've seen that there's and syntaxis error in that position. If I change myself the file .map, it works. However, that's not a solution because the .map has to be automatically generate by another app. How can I solve that problem? Is there any way to change the mapserver encoding? I there any way to make that mapserver replace the ascii code? Note: I write the ascii code whith spaces becaus the post editor replaces the code Thanks in advance -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/ascii-code-in-a-map-file-tp5744626p5744626.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pramsey at opengeo.org Tue Nov 16 09:30:54 2010 From: pramsey at opengeo.org (Paul Ramsey) Date: Tue, 16 Nov 2010 09:30:54 -0800 Subject: [mapserver-users] ascii code in a .map file In-Reply-To: <1289928048071-5744626.post@n2.nabble.com> References: <1289928048071-5744626.post@n2.nabble.com> Message-ID: You have to not put the HTML entities in your data statement. P. On Tue, Nov 16, 2010 at 9:20 AM, rafacabanas wrote: > > Hello, > I have a .map file which access to a postgres data base. The select query > contains an ascii code character representing the " symbol. For example: > > SELECT * FROM ? ?& # 3 4 ; ? table_name ? & # 3 4 ?; > > instead of > > SELECT * FROM "table_name" > > Mapserver doesn't show the layer and when checking the log file of the data > base I've seen that there's and syntaxis error in that position. > > If I change myself the file .map, it works. However, that's not a solution > because the .map has to be automatically generate by another app. How can I > solve that problem? Is there any way to change the mapserver encoding? I > there any way to make that mapserver replace the ascii code? > > Note: I write the ascii code whith spaces becaus the post editor replaces > the code > > Thanks in advance > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/ascii-code-in-a-map-file-tp5744626p5744626.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 correoderafa at hotmail.com Tue Nov 16 09:48:16 2010 From: correoderafa at hotmail.com (rafacabanas) Date: Tue, 16 Nov 2010 09:48:16 -0800 (PST) Subject: [mapserver-users] Re: ascii code in a .map file In-Reply-To: References: <1289928048071-5744626.post@n2.nabble.com> Message-ID: <1289929696626-5744737.post@n2.nabble.com> The thing is that the .map is generated by an application, and another one uses the result of the first one to show the images. Then I cannot open the .map files and modify them by myself. It have to be done automatically. I guess if there is any way to do it. I know that mapserver can do it because in another intallation it works properly. The map file and the data base are the same. The only thing that changes is MapServer. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/ascii-code-in-a-map-file-tp5744626p5744737.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Clement.MONIER at v-trafic.com Tue Nov 16 09:54:37 2010 From: Clement.MONIER at v-trafic.com (=?iso-8859-1?Q?Cl=E9ment_MONIER?=) Date: Tue, 16 Nov 2010 18:54:37 +0100 Subject: [mapserver-users] opacity Message-ID: <0B6D7F516315594DBEFE58178D91BD320184C64BD934@exchangemm.mm.fr> Hi, Is it possible to set layer's opacity dynamically ? with runtime substitution ? is there a way to set opacity for all layers of a mapfile ? Thank you for your help Clem -------------- next part -------------- An HTML attachment was scrubbed... URL: From o.bedel at alkante.com Tue Nov 16 10:18:01 2010 From: o.bedel at alkante.com (Olivier Bedel) Date: Tue, 16 Nov 2010 19:18:01 +0100 Subject: [mapserver-users] opacity In-Reply-To: <0B6D7F516315594DBEFE58178D91BD320184C64BD934@exchangemm.mm.fr> References: <0B6D7F516315594DBEFE58178D91BD320184C64BD934@exchangemm.mm.fr> Message-ID: <4CE2CAD9.9020000@alkante.com> Hi Cl?ment, To change layers opacity in cgi call, something like that should work : http://yourServer/cgi-bin/mapserv?map=yourMapfile&map.layer[yourLayerName1]=OPACITY%20yourOpacityValue1&map.layer[yourLayerName2]=OPACITY%20yourOpacityValue2 I don't know if it is possible at the map level... Regards, Olivier. Le 16/11/2010 18:54, Cl?ment MONIER a ?crit : > > Hi, > > Is it possible to set layer's opacity dynamically ? with runtime > substitution ? > > is there a way to set opacity for all layers of a mapfile ? > > Thank you for your help > > Clem > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Olivier BEDEL ALKANTE SAS Ing?nieur R&D SIG 1, rue du Ch?ne Morand 35 510 Cesson-S?vign? Bur: + 33 (0) 2 99 22 25 70 fax : + 33 (0) 2 99 32 12 76 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Tue Nov 16 10:07:00 2010 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Tue, 16 Nov 2010 13:07:00 -0500 Subject: [mapserver-users] connection to a non spatial datasource Message-ID: Hi, I need to connect to a MS SQL SERVER table, read the lat/long fields and render a map of points. I read this wiki http://trac.osgeo.org/mapserver/wiki/VirtualSpatialData Is this still the best approach to do that? Thanks! Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Tue Nov 16 10:26:13 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 16 Nov 2010 12:26:13 -0600 Subject: [mapserver-users] opacity In-Reply-To: <4CE2CAD9.9020000@alkante.com> References: <0B6D7F516315594DBEFE58178D91BD320184C64BD934@exchangemm.mm.fr> <4CE2CAD9.9020000@alkante.com> Message-ID: "I don't know if it is possible at the map level..." - It's not, opacity is a layer or style-level parameter. For opaque maps many of the client environments (e.g. OpenLayers) provide controls for such things. In that case I would think it's better to use the client support than produce RGBA output via MapServer... Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Olivier Bedel Sent: Tuesday, November 16, 2010 12:18 PM To: Cl?ment MONIER Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] opacity Hi Cl?ment, To change layers opacity in cgi call, something like that should work : http://yourServer/cgi-bin/mapserv?map=yourMapfile&map.layer[yourLayerName1]=OPACITY%20yourOpacityValue1&map.layer[yourLayerName2]=OPACITY%20yourOpacityValue2 I don't know if it is possible at the map level... Regards, Olivier. Le 16/11/2010 18:54, Cl?ment MONIER a ?crit : Hi, Is it possible to set layer's opacity dynamically ? with runtime substitution ? is there a way to set opacity for all layers of a mapfile ? Thank you for your help Clem _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Olivier BEDEL ALKANTE SAS Ing?nieur R&D SIG 1, rue du Ch?ne Morand 35 510 Cesson-S?vign? Bur: + 33 (0) 2 99 22 25 70 fax : + 33 (0) 2 99 32 12 76 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Clement.MONIER at v-trafic.com Tue Nov 16 10:39:50 2010 From: Clement.MONIER at v-trafic.com (=?iso-8859-1?Q?Cl=E9ment_MONIER?=) Date: Tue, 16 Nov 2010 19:39:50 +0100 Subject: [mapserver-users] opacity In-Reply-To: <4CE2CAD9.9020000@alkante.com> References: <0B6D7F516315594DBEFE58178D91BD320184C64BD934@exchangemm.mm.fr> <4CE2CAD9.9020000@alkante.com> Message-ID: <0B6D7F516315594DBEFE58178D91BD320184C64BD93F@exchangemm.mm.fr> It works really nice. Thanks a lot Olivier ! De : Olivier Bedel [mailto:o.bedel at alkante.com] Envoy? : mardi 16 novembre 2010 19:18 ? : Cl?ment MONIER Cc : mapserver-users at lists.osgeo.org Objet : Re: [mapserver-users] opacity Hi Cl?ment, To change layers opacity in cgi call, something like that should work : http://yourServer/cgi-bin/mapserv?map=yourMapfile&map.layer[yourLayerName1]=OPACITY%20yourOpacityValue1&map.layer[yourLayerName2]=OPACITY%20yourOpacityValue2 I don't know if it is possible at the map level... Regards, Olivier. Le 16/11/2010 18:54, Cl?ment MONIER a ?crit : Hi, Is it possible to set layer's opacity dynamically ? with runtime substitution ? is there a way to set opacity for all layers of a mapfile ? Thank you for your help Clem _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Olivier BEDEL ALKANTE SAS Ing?nieur R&D SIG 1, rue du Ch?ne Morand 35 510 Cesson-S?vign? Bur: + 33 (0) 2 99 22 25 70 fax : + 33 (0) 2 99 32 12 76 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Tue Nov 16 12:00:09 2010 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 16 Nov 2010 13:00:09 -0700 Subject: [mapserver-users] connection to a non spatial datasource In-Reply-To: References: Message-ID: <4CE2E2C9.60205@geoanalytic.com> I used the method last year to render points from (and lines) from SQL Server. The biggest problem is that Mapserver/OGR does not implicitly use any spatial index when using a VRT entry of SrcSQL (carefully read http://www.gdal.org/ogr/drv_vrt.html). Best Regards, Brent Fraser On 11/16/2010 11:07 AM, Steve.Toutant at inspq.qc.ca wrote: > > Hi, > I need to connect to a MS SQL SERVER table, read the lat/long fields > and render a map of points. > I read this wiki > http://trac.osgeo.org/mapserver/wiki/VirtualSpatialData > > Is this still the best approach to do that? > Thanks! > Steve > > > _______________________________________________ > 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 sebastian.ovide at gmail.com Tue Nov 16 14:29:12 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Tue, 16 Nov 2010 22:29:12 +0000 Subject: [mapserver-users] POINT layer from simple x, y table: Segmentation fault In-Reply-To: References: Message-ID: On Tue, Nov 16, 2010 at 10:37 AM, Rahkonen Jukka wrote: > Hi, > > No idea exactly about this, but if you manage to get further I fear you > will be banging your head to the next wall because Mapserver won't get a > spatial index from Oracle for such a query. Adding "USING NONE" to the end > of DATA should help then, see > http://mapserver.org/input/vector/oracle.html > > I suppose you have some good reason for playing with x_coord and y_coord > columns instead of massaging them into a real physical SDO_GEOMETRY column > that could also be indexed with a spatial filter, for example going > through a materialized view way. > > -Jukka Rahkonen- > Actually I have just convinced the DBA to add a column... ;) > > > ------------------------------ > *L?hett?j?:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *Puolesta *Sebastian E. Ovide > *L?hetetty:* 16. marraskuuta 2010 12:14 > *Vastaanottaja:* mapserver-users at lists.osgeo.org > *Aihe:* [mapserver-users] POINT layer from simple x,y table: Segmentation > fault > > Hi All, > > I've created a POINT layer: > > LAYER > NAME POLICY > TYPE POINT > EXTENT 54225.000000 5800.000000 655625.000000 1220325.000000 > STATUS ON > CONNECTIONTYPE OGR > CONNECTION "OCI:la001/la001 at 192.168.60.70/MFUATDB" > DATA "Select match_level, x_coord, y_coord, > SDO_GEOMETRY(2001,27700,SDO_POINT_TYPE(x_coord, y_coord, NULL), NULL, NULL) > as point From policy" > PROJECTION > "init=epsg:27700" > END > CLASS > STYLE > SYMBOL "star" > COLOR 255 0 0 > SIZE 10 > END > END > END > > and this is what I'm getting in apache logs: > > OGR: OGROpen(OCI:la001/la001 at 192.168.60.70/MFUATDB/0xa194160) succeeded as > OCI. > OCI: ExecuteSQL(Select match_level, x_coord, y_coord, > SDO_GEOMETRY(2001,27700,SDO_POINT_TYPE(x_coord, y_coord, NULL), NULL, NULL) > as point From policy) > OCI: Prepare(Select match_level, x_coord, y_coord, > SDO_GEOMETRY(2001,27700,SDO_POINT_TYPE(x_coord, y_coord, NULL), NULL, NULL) > as point From policy) > [Tue Nov 16 10:06:31 2010] [error] [client 10.0.1.50] FastCGI: incomplete > headers (0 bytes) received from server "/home/gis/bin/mapserv" > [Tue Nov 16 10:06:31 2010] [warn] FastCGI: (dynamic) server > "/home/gis/bin/mapserv" (pid 1086) terminated due to uncaught signal '11' > (Segmentation fault) > > > any ideas ? > -- > Sebastian E. Ovide > > > -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Tue Nov 16 17:43:54 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 17 Nov 2010 10:43:54 +0900 Subject: [mapserver-users] connection to a non spatial datasource In-Reply-To: References: Message-ID: <4CE3335A.8090506@gatewaygeomatics.com> On 10-11-17 3:07 AM, Steve.Toutant at inspq.qc.ca wrote: > > Hi, > I need to connect to a MS SQL SERVER table, read the lat/long fields and > render a map of points. > I read this wiki > http://trac.osgeo.org/mapserver/wiki/VirtualSpatialData > > Is this still the best approach to do that? Hi Steve, Yes that is the correct method. Another page describing the same process can be found at: http://www.mapserver.org/input/vector/VirtualSpatialData.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ From daiane.a.fraga at gmail.com Wed Nov 17 02:58:34 2010 From: daiane.a.fraga at gmail.com (Daiane Fraga) Date: Wed, 17 Nov 2010 07:58:34 -0300 Subject: =?ISO-8859-1?B?UkU6IFJFOiBSRTogW21hcHNlcnZlci11c2Vyc10gR2F1c3MtS3L8Z2Vy?= In-Reply-To: <4CE26923.5030603@uva.nl> References: <4CE26923.5030603@uva.nl> Message-ID: Hi, Thanks for the answers! I'll gather all the information and I'll try to adapt to my problem. I'll post more information about the problem when I get some results or when I get more information. Thank you very much for the help! Daiane Fraga --------------------------------------------- From: Jan Hartmann Date: 2010/11/16 Subject: Re: [mapserver-users] Gauss-Kr?ger To: Daiane Fraga Cc: Fuchs Juan Carlos , mapserver-users at lists.osgeo.org If your map is from 1908, there is a change that its projection is not in the official modern EPSG table. In that case you need to derive the whole PROJ4 definition from the legend of the map. As a rule, this is not difficult, as the theoretical definitions of the common projection have been known for a long time, it's just a matter of discovering which particular set of parameters has been chosen for this map. In my experience with old Dutch maps the main difficulty is finding out which ellipsoid has been used. In your case, a map of 1908 can in no way have had a WGS84 datum. You probably have to project it to a modern projection with the original ellipsoid, and from that to WGS84. Can you give any details of the maps you are working with and whether their legends say something said about the projection? Are they part of a larger map series? Jan On 11/16/10 12:02, Daiane Fraga wrote: Hi, I understand what you say. But this is not my question. I'm with a map in a coordinate system outdated (the maps are dated from 1908). And I'm using an application that interacts with Google Maps, which has caused problems. Did you know how to do some kind of conversion from the Mapserver? We can do a conversion to the WGS 1984, but it has to be done manually for each map. I'm not sure that may maps have a known Mapserver projection. I'm using this: PROJECTION "init=epsg:26915" "proj=latlong" "ellps=WGS84" "datum=WGS84" END Thanks! Daiane Fraga ---------- Forwarded message ---------- From: Fuchs Juan Carlos Date: 2010/11/12 Subject: RE: [mapserver-users] Gauss-Kr?ger To: Daiane Fraga Hi Daiane You have to find in Prij.4 the right EPSG code for your maps in wich country / region are you interested? yust to sart with ... in the .map you have to insert two groups of code in the header (first zone) goes the poyection of the map you are producing PROJECTION "init=epsg:heregoesyourcode" END for each Layer you call to build the map Layer .... PROJECTION "init=epsg:heregoesyourcodeof thesourcelayer" END .... end hope it help someway Cheers JC -----Mensaje original----- *De:* Daiane Fraga [mailto:daiane.a.fraga at gmail.com] *Enviado el:* Viernes, 12 de Noviembre de 2010 12:03 p.m. *Para:* mapserver-users at lists.osgeo.org *Asunto:* [mapserver-users] Gauss-Kr?ger Hello, Did someone have any problems using Mapserver with Gauss-Kr?ger? I know that Mapserver is compatible with proj.4 library and the proj.4 library supports Gauss-Kr?ger. But I dont know how to use it. Somebody could help me? Thanks. Daiane _______________________________________________ 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.ellett at statkart.no Wed Nov 17 04:24:17 2010 From: thomas.ellett at statkart.no (tellett) Date: Wed, 17 Nov 2010 04:24:17 -0800 (PST) Subject: [mapserver-users] Re: mapserver and i18n In-Reply-To: <4CB46BB9.3000601@boreal-is.com> References: <1286438803290-5610385.post@n2.nabble.com> <4CADC7A7.7020908@swoodbridge.com> <4CADCA9C.8050806@swoodbridge.com> <1286467497319-5611955.post@n2.nabble.com> <1286889349846-5626622.post@n2.nabble.com> <4CB4614B.3090802@swoodbridge.com> <1286890601807-5626700.post@n2.nabble.com> <4CB46BB9.3000601@boreal-is.com> Message-ID: <1289996657427-5747491.post@n2.nabble.com> Hi all, just wanted to update you on this and the mapserver INSPIRE work in general. The latest version of the 'Technical Guidance to implement INSPIRE View Services' has been out for a while. whether its the final doc or not I can't say, but they have at least focused in on which attributes and service calls should support multilingualism. The document now says that the metadata elements 'title', 'abstract' and 'description' are mandatory to be translated if other languages are offered and that multilingual service level error messages and multilingual getfeature and getmap operations are optional. To implement the optional elements, the document suggests replacing the operation-online-resources in each language specific GetCapabilities-Response by a specific operation-online-resource for that language. I presume this is so the getmap and getfeatureinfo specifications don't have to be extended with the 'language' parameter in requests. Because only titles, abstracts and descriptions are mandatory to be translated if multiple languages are supported, I'm guessing (loosely) that we could implement any one of a number of solutions to solve this. However, multilingualism seems to be something that a greater number of the community is interested in so perhaps a slightly more overreaching, permanent solution should be found, one that deals with 3 areas of multilingualism; Back end data translation, service and dataset metadata translation and service operation translation. Theres now a trac on the developer list looking at INSPIRE support for Mapserver: http://trac.osgeo.org/mapserver/ticket/3608 so I'll add a link there to this discussion and hopefully the developers will have they're say. Cheers Tom -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/mapserver-and-i18n-tp5607348p5747491.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sebastian.ovide at gmail.com Wed Nov 17 07:49:32 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Wed, 17 Nov 2010 15:49:32 +0000 Subject: [mapserver-users] fedora 14 cannot find -lpgport Message-ID: Hi Guys, I'm building mapserver in Fedora 14 and getting /usr/bin/ld: cannot find -lpgport collect2: ld returned 1 exit status doing yum list | grep pgport and yum provides "*pgport*" I cannot see any package with pgport... any ideas ? -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From correoderafa at hotmail.com Wed Nov 17 08:49:52 2010 From: correoderafa at hotmail.com (rafacabanas) Date: Wed, 17 Nov 2010 08:49:52 -0800 (PST) Subject: [mapserver-users] RE: Problem: HTML-Entities in query templates In-Reply-To: References: <4CDD467B.4090303@denkbrett> Message-ID: <1290012592559-5748492.post@n2.nabble.com> I think we are having the same problem. In my case the attribute data contains a SELECT query and it doesn't works because it contains html entity corresponding to the quotes ". Therefore, the query fails and mapserver doesn't return any image. I know that it is possible to have HTML Entities in a file .map because I have installed another instance of Mapserver which works properly. This is the link to my post: http://osgeo-org.1803224.n2.nabble.com/ascii-code-in-a-map-file-td5744626.html#a5744626 -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problem-HTML-Entities-in-query-templates-tp5732384p5748492.html Sent from the Mapserver - User mailing list archive at Nabble.com. From David.Hildebrand at afsc.ca Wed Nov 17 09:20:29 2010 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Wed, 17 Nov 2010 10:20:29 -0700 Subject: [mapserver-users] CGI wrapper scripts References: <4CDD467B.4090303@denkbrett> <1290012592559-5748492.post@n2.nabble.com> Message-ID: <9188AB5935664040805E01E348A2B81D1BF6900A@lacex1.afsc.ads> The MapServer documentation has an example of CGI wrapper scripts for a UNIX environment. Would there be an equivalent Windows form I could use? I was thinking of using PERL. =========================== 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 punk.kish at gmail.com Wed Nov 17 09:47:12 2010 From: punk.kish at gmail.com (P Kishor) Date: Wed, 17 Nov 2010 11:47:12 -0600 Subject: [mapserver-users] CGI wrapper scripts In-Reply-To: <9188AB5935664040805E01E348A2B81D1BF6900A@lacex1.afsc.ads> References: <4CDD467B.4090303@denkbrett> <1290012592559-5748492.post@n2.nabble.com> <9188AB5935664040805E01E348A2B81D1BF6900A@lacex1.afsc.ads> Message-ID: On Wed, Nov 17, 2010 at 11:20 AM, David Hildebrand wrote: > The MapServer documentation has an example of CGI wrapper scripts for a > UNIX environment. ?Would there be an equivalent Windows form I could > use? ?I was thinking of using PERL. > You could just write one based on the shell wrapper script. Something like (untested) $mapserv = "/path/to/mapserv.exe"; $mapfile = "/path/to/mapfile.map"; if ($ENV{'REQUEST_METHOD'} eq 'GET') { $ENV{'QUERY_STRING'} .= "map=$mapfile"; exec($mapserv); } else { die "Sorry, I only understand GET requests\n"; } -- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu ----------------------------------------------------------------------- Assertions are politics; backing up assertions with evidence is science ======================================================================= From pspencer at dmsolutions.ca Wed Nov 17 12:15:57 2010 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Wed, 17 Nov 2010 15:15:57 -0500 Subject: [mapserver-users] CGI wrapper scripts In-Reply-To: <9188AB5935664040805E01E348A2B81D1BF6900A@lacex1.afsc.ads> References: <4CDD467B.4090303@denkbrett> <1290012592559-5748492.post@n2.nabble.com> <9188AB5935664040805E01E348A2B81D1BF6900A@lacex1.afsc.ads> Message-ID: <24C57386-182B-4160-89F6-C6932665E5C7@dmsolutions.ca> David, if you are using Apache then you might be able to use mod_rewrite to do a similar thing. For instance, I put the following into a .htaccess file in my cgi-bin directory to obscure map paths in fusion - basically you use map=&session= and it will internally redirect to map=/tmp/sess_/.map. There are two rules in case the order of map and session changes. RewriteEngine on RewriteCond %{QUERY_STRING} !redirected RewriteCond %{QUERY_STRING} session=([a-z0-9]+)&.*map=([a-z0-9-_]+)& RewriteRule ^.*$ %{REQUEST_URI}?redirected=true&map=/tmp/sess_%1/%2.map&%{QUERY_STRING} [L] RewriteCond %{QUERY_STRING} !redirected RewriteCond %{QUERY_STRING} map=([a-z0-9-_]+)&.*session=([a-z0-9]+)& RewriteRule ^.*$ %{REQUEST_URI}?redirected=true&map=/tmp/sess_%2/%1.map&%{QUERY_STRING} [L] You could do something similar for just obscuring the map= part RewriteEngine on # if not redirected and contains map= then fire a 403 error RewriteCond %{QUERY_STRING} !redirected RewriteCond %{QUERY_STRING} map= RewriteRule mapserv %{REQUEST_URI} [F] # if not redirected and no map= redirect to mapserv with map= RewriteCond %{QUERY_STRING} !redirected RewriteCond %{QUERY_STRING} !map= RewriteRule gmap /cgi-bin/mapserv.exe?redirected=true&map=/ms4w/apps/gmap/htdocs/gmap75.map&%{QUERY_STRING} then any requests with map= in them will be forbidden unless they also contain 'redirected' http://server/cgi-bin/mapserv?map= <- will be forbidden and requests for gmap will be redirected to mapserv.exe with map=/ in them http://server/cgi-bin/gmap? <- redirected In a production environment you would change 'redirected' to some random, unguessable string in the 3 places it occurs Cheers Paul On 2010-11-17, at 12:20 PM, David Hildebrand wrote: > The MapServer documentation has an example of CGI wrapper scripts for a > UNIX environment. Would there be an equivalent Windows form I could > use? I was thinking of using PERL. > > > =========================== > 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. > > > _______________________________________________ > 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 David.Hildebrand at afsc.ca Wed Nov 17 16:35:05 2010 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Wed, 17 Nov 2010 17:35:05 -0700 Subject: [mapserver-users] CGI wrapper scripts References: <4CDD467B.4090303@denkbrett><1290012592559-5748492.post@n2.nabble.com> <9188AB5935664040805E01E348A2B81D1BF6900A@lacex1.afsc.ads> Message-ID: <9188AB5935664040805E01E348A2B81D1BF6900B@lacex1.afsc.ads> Thanks to those that helped. I now have a wrapper which not only hides the 'map' parameter but also hides 'service' and 'version' (for OGC-compliant queries). The PERL source is listed below. Feel free to use it and send me feedback. # A CGI wrapper for mapserv.exe to hide constant URL parameters for OGC-compliant queries. # The mapname, service and version are obtained from the name of this file. # # mapenv - name of environment variable holding the full path name of the MapServer map file # defined in the http server configuration # service - type of service (WMS, WFS or WCS) # version - OGC version number with dots omitted (eg., 1.1.1 is shown as 111) # # Original coding: David Hildebrand November, 2010 use CGI; use File::Spec; my $query = CGI->new; if ($query->request_method() !~ /GET/i) {die "Not a GET request\n";} # Parse file name. my (undef,undef,$fn) = File::Spec->splitpath($0); my ($mapenv,$service,$version,undef) = split(/\./,$fn); if (!exists($ENV{"\U$mapenv\E"})) {die "\U$mapenv\E environment variable not set\n";} if ($service !~ /\AWMS\Z|\AWFS\Z|\AWCS\Z/i) {die "\U$service\E not supported\n";} $version = substr($version,0,1) . '.' . substr($version,1,1) . '.' . substr($version,2,1); # Reset MAP, SERVICE and VERSION. $query->delete('map','service','version'); $query->param(-name=>'map',-value=>$ENV{"\U$mapenv\E"}); $query->param(-name=>'service',-value=>"\U$service\E"); $query->param(-name=>'version',-value=>$version); # Reconstruct CGI query. my @elements = (); foreach my $pname ($query->param()) { my @values = $query->param($pname); if (scalar(@values) > 1) {push @elements, "\U$pname=\E" . join(',', at values);} if (scalar(@values) == 1) {push @elements, "\U$pname=\E" . $values[0];} if (scalar(@values) == 0) {push @elements, "\U$pname=\E"} } # Invoke mapserv.exe and never return. $ENV{QUERY_STRING} = join('&', at elements); exec 'mapserv.exe'; exit; =========================== 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 David Hildebrand Sent: Wednesday, November 17, 2010 10:20 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] CGI wrapper scripts The MapServer documentation has an example of CGI wrapper scripts for a UNIX environment. Would there be an equivalent Windows form I could use? I was thinking of using PERL. =========================== 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. _______________________________________________ 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 sebastian.ovide at gmail.com Thu Nov 18 01:35:16 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Thu, 18 Nov 2010 09:35:16 +0000 Subject: [mapserver-users] Re: fedora 14 cannot find -lpgport In-Reply-To: References: Message-ID: from http://forums.fedoraforum.org/showthread.php?p=1417824#post1417824 it looks like libpgport isn't supported by fedora... Is there any other way to build MapServer without that library ? On Wed, Nov 17, 2010 at 3:49 PM, Sebastian E. Ovide < sebastian.ovide at gmail.com> wrote: > Hi Guys, > > I'm building mapserver in Fedora 14 and getting > > /usr/bin/ld: cannot find -lpgport > collect2: ld returned 1 exit status > > doing > > yum list | grep pgport > and > yum provides "*pgport*" > > I cannot see any package with pgport... > > any ideas ? > > > -- > Sebastian E. Ovide > > > > > -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcigar at ulb.ac.be Thu Nov 18 02:22:40 2010 From: jcigar at ulb.ac.be (Julien Cigar) Date: Thu, 18 Nov 2010 11:22:40 +0100 Subject: [mapserver-users] Re: fedora 14 cannot find -lpgport In-Reply-To: References: Message-ID: <4CE4FE70.50304@ulb.ac.be> On 11/18/2010 10:35, Sebastian E. Ovide wrote: > from > http://forums.fedoraforum.org/showthread.php?p=1417824#post1417824 it > looks like libpgport isn't supported by fedora... > > Is there any other way to build MapServer without that library ? disable Postgis support ? I don't use Fedora, but I reported a similar problem with the FreeBSD port, which looks like yours: http://www.freebsd.org/cgi/query-pr.cgi?pr=145002 > > On Wed, Nov 17, 2010 at 3:49 PM, Sebastian E. Ovide > > wrote: > > Hi Guys, > > I'm building mapserver in Fedora 14 and getting > > /usr/bin/ld: cannot find -lpgport > collect2: ld returned 1 exit status > > doing > > yum list | grep pgport > and > yum provides "*pgport*" > > I cannot see any package with pgport... > > any ideas ? > > > -- > Sebastian E. Ovide > > > > > > > > -- > Sebastian E. Ovide > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced. -------------- next part -------------- A non-text attachment was scrubbed... Name: jcigar.vcf Type: text/x-vcard Size: 292 bytes Desc: not available URL: From sebastian.ovide at gmail.com Thu Nov 18 03:03:03 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Thu, 18 Nov 2010 11:03:03 +0000 Subject: [mapserver-users] Re: fedora 14 cannot find -lpgport In-Reply-To: <4CE4FE70.50304@ulb.ac.be> References: <4CE4FE70.50304@ulb.ac.be> Message-ID: >From the Fedora mailing list: For some (reasonable) reason, usually Fedora strongly discourages to ship static archives in binary rpms: https://fedoraproject.org/wiki/Packaging/Guidelines#Packaging_Static_Libraries You can see this also happened on postgresql: http://pkgs.fedoraproject.org/gitweb/?p=postgresql.git;a=commitdiff;h=a6a1e9bfab6192bbdaea41e88368ae7d242316d7 You should really check if libpgport.a is really needed, i.e. check it the package you are trying to build supports dynamic linkage (against libpgport.so). On Thu, Nov 18, 2010 at 10:22 AM, Julien Cigar wrote: > On 11/18/2010 10:35, Sebastian E. Ovide wrote: > >> from >> http://forums.fedoraforum.org/showthread.php?p=1417824#post1417824 it >> looks like libpgport isn't supported by fedora... >> >> Is there any other way to build MapServer without that library ? >> > > disable Postgis support ? > > I don't use Fedora, but I reported a similar problem with the FreeBSD port, > which looks like yours: http://www.freebsd.org/cgi/query-pr.cgi?pr=145002 > > >> On Wed, Nov 17, 2010 at 3:49 PM, Sebastian E. Ovide >> > wrote: >> >> Hi Guys, >> >> I'm building mapserver in Fedora 14 and getting >> >> /usr/bin/ld: cannot find -lpgport >> collect2: ld returned 1 exit status >> >> doing >> >> yum list | grep pgport >> and >> yum provides "*pgport*" >> >> I cannot see any package with pgport... >> >> any ideas ? >> >> >> -- >> Sebastian E. Ovide >> >> >> >> >> >> >> >> -- >> Sebastian E. Ovide >> >> >> >> >> >> >> _______________________________________________ >> 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. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From trottier.marcandre at gmail.com Thu Nov 18 07:06:32 2010 From: trottier.marcandre at gmail.com (=?ISO-8859-1?Q?Marc=2DAndr=E9_Trottier?=) Date: Thu, 18 Nov 2010 10:06:32 -0500 Subject: [mapserver-users] vertical alignment of symbols along a line 2 Message-ID: http://osgeo-org.1803224.n2.nabble.com/vertical-alignment-of-symbols-along-a-line-td4617860.html i got the same problem. OFFSET -99 do nothing someone got new tips ? Marc-Andr? Trottier -------------- next part -------------- An HTML attachment was scrubbed... URL: From simone.frigerio at univie.ac.at Thu Nov 18 08:10:07 2010 From: simone.frigerio at univie.ac.at (Simone Frigerio) Date: Thu, 18 Nov 2010 17:10:07 +0100 Subject: [mapserver-users] Auto- classify by attribute value Message-ID: <4CE54FDF.501@univie.ac.at> Hi, I have a vector shp with almost 8000 records. Example of table: Column1 - Column2 - Column3 - Combi - 0 0 0 0_0_0 1 0 0 1_0_1 0 0 1 0_1_0 .... There are 260 combination in attribute value Combi. If I fix a CLASS for one like: ... CLASS EXPRESSION "0_0_0" STYLE COLOR 25 255 255 OUTLINECOLOR 0 0 0 END END .... can I generate an automatic classification for all the 259 other classes? Thanks. Simone -- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature-1.gif Type: image/gif Size: 566 bytes Desc: not available URL: From sebastian.ovide at gmail.com Thu Nov 18 08:54:35 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Thu, 18 Nov 2010 16:54:35 +0000 Subject: [mapserver-users] Mapserver + OCI error while loading shared libraries from Apache ? Message-ID: Hi All, everything is working find from shell. I register the Oracle libraries with ldconfig, I have even created a cgi that set the LD_LIBRARY_PATH [gis at mapserver-fc14 cgi-bin]$ cat test.sh #!/bin/sh export ORACLE_HOME=/home/gis/libs/instantclient_11_2/ export LD_LIBRARY_PATH=/home/gis/libs/instantclient_11_2/ /var/www/cgi-bin/mapserv $* and still getting [Thu Nov 18 16:50:06 2010] [error] [client 10.0.1.50] /var/www/cgi-bin/mapserv: error while loading shared libraries: libclntsh.so.11.1: cannot open shared object file: No such file or directory [Thu Nov 18 16:50:06 2010] [error] [client 10.0.1.50] Premature end of script headers: test.sh any ideas ? note: this problem is on a Fedora 14 -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Thu Nov 18 09:00:39 2010 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 18 Nov 2010 12:00:39 -0500 Subject: [mapserver-users] Mapserver + OCI error while loading shared libraries from Apache ? In-Reply-To: References: Message-ID: <4CE55BB7.10004@mapgears.com> Does the file /home/gis/libs/instantclient_11_2/libclntsh.so.11.1 exist and is the full path to its location reachable by the user running the Apache server? i.e. check the permissions on all subdirs, especially /home/gis which is likely to have access restrictions by default. Sebastian E. Ovide wrote: > Hi All, > > everything is working find from shell. I register the Oracle libraries > with ldconfig, I have even created a cgi that set the LD_LIBRARY_PATH > > [gis at mapserver-fc14 cgi-bin]$ cat test.sh > #!/bin/sh > export ORACLE_HOME=/home/gis/libs/instantclient_11_2/ > export LD_LIBRARY_PATH=/home/gis/libs/instantclient_11_2/ > /var/www/cgi-bin/mapserv $* > > and still getting > > [Thu Nov 18 16:50:06 2010] [error] [client 10.0.1.50] > /var/www/cgi-bin/mapserv: error while loading shared libraries: > libclntsh.so.11.1: cannot open shared object file: No such file or directory > [Thu Nov 18 16:50:06 2010] [error] [client 10.0.1.50] Premature end of > script headers: test.sh > > any ideas ? > > note: this problem is on a Fedora 14 > -- > Sebastian E. Ovide > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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 ivan.lucena at pmldnet.com Thu Nov 18 09:01:18 2010 From: ivan.lucena at pmldnet.com (=?iso-8859-1?Q?Ivan=20Lucena?=) Date: Thu, 18 Nov 2010 12:01:18 -0500 Subject: =?iso-8859-1?B?UmU6IFttYXBzZXJ2ZXItdXNlcnNdIE1hcHNlcnZlciArIE9DSSBlcnJvciB3aGlsZSBsb2FkaW5nIHNoYXJlZCBsaWJyYXJpZXMgZnJvbSBBcGFjaGUgPw==?= Message-ID: <20101118170118.19835.qmail@s466.sureserver.com> Sebastian, > -------Original Message------- > From: Sebastian E. Ovide > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Mapserver + OCI error while loading shared libraries from Apache ? > Sent: Nov 18 '10 11:54 > > Hi All, > > > everything is working find from shell. I register the Oracle libraries with > ldconfig, I have even created a cgi that set the LD_LIBRARY_PATH > > > [gis at mapserver-fc14 cgi-bin]$ cat test.sh > #!/bin/sh > export ORACLE_HOME=/home/gis/libs/instantclient_11_2/ > export LD_LIBRARY_PATH=/home/gis/libs/instantclient_11_2/ > /var/www/cgi-bin/mapserv $* > > > and still getting? > > > [Thu Nov 18 16:50:06 2010] [error] [client 10.0.1.50] > /var/www/cgi-bin/mapserv: error while loading shared libraries: > libclntsh.so.11.1: cannot open shared object file: No such file or > directory Does that message means that the error occurs during the process of loading libclntsh.so.11.1 and therefor that library was found but that library is trying to load another one that is not on the path? > [Thu Nov 18 16:50:06 2010] [error] [client 10.0.1.50] Premature end of > script headers: test.sh > > > any ideas ? > > > note: this problem is on a Fedora 14-- > Sebastian E. Ovide > > > -------------------- > _______________________________________________ > 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 michael.smith at usace.army.mil Thu Nov 18 09:10:53 2010 From: michael.smith at usace.army.mil (Smith, Michael D ERDC-CRREL-NH) Date: Thu, 18 Nov 2010 12:10:53 -0500 Subject: [mapserver-users] Mapserver + OCI error while loading shared libraries from Apache ? In-Reply-To: <20101118170118.19835.qmail@s466.sureserver.com> Message-ID: You may have to set those values inside your httpd.conf Eg SetEnv ORACLE_HOME "/home/gis/libs/instantclient_11_2/" SetEnv LD_LIBRARY_PATH "/home/gis/libs/instantclient_11_2/" On 11/18/10 12:01 PM, "Ivan Lucena" wrote: > Sebastian, > >> -------Original Message------- >> From: Sebastian E. Ovide >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] Mapserver + OCI error while loading shared >> libraries from Apache ? >> Sent: Nov 18 '10 11:54 >> >> Hi All, >> >> >> everything is working find from shell. I register the Oracle libraries with >> ldconfig, I have even created a cgi that set the LD_LIBRARY_PATH >> >> >> [gis at mapserver-fc14 cgi-bin]$ cat test.sh >> #!/bin/sh >> export ORACLE_HOME=/home/gis/libs/instantclient_11_2/ >> export LD_LIBRARY_PATH=/home/gis/libs/instantclient_11_2/ >> /var/www/cgi-bin/mapserv $* >> >> >> and still getting? >> >> >> [Thu Nov 18 16:50:06 2010] [error] [client 10.0.1.50] >> /var/www/cgi-bin/mapserv: error while loading shared libraries: >> libclntsh.so.11.1: cannot open shared object file: No such file or >> directory > > Does that message means that the error occurs during the process of loading > libclntsh.so.11.1 and therefor that library was found but that library is > trying to load another one that is not on the path? > >> [Thu Nov 18 16:50:06 2010] [error] [client 10.0.1.50] Premature end of >> script headers: test.sh >> >> >> any ideas ? >> >> >> note: this problem is on a Fedora 14-- >> Sebastian E. Ovide >> >> >> -------------------- >> _______________________________________________ >> 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 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From sebastian.ovide at gmail.com Thu Nov 18 09:14:40 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Thu, 18 Nov 2010 17:14:40 +0000 Subject: [mapserver-users] Mapserver + OCI error while loading shared libraries from Apache ? In-Reply-To: <4CE55BB7.10004@mapgears.com> References: <4CE55BB7.10004@mapgears.com> Message-ID: you are right... the problem was that in Fedora the homes have access restrictions by default ... thanks On Thu, Nov 18, 2010 at 5:00 PM, Daniel Morissette wrote: > Does the file /home/gis/libs/instantclient_11_2/libclntsh.so.11.1 exist > and is the full path to its location reachable by the user running the > Apache server? i.e. check the permissions on all subdirs, especially > /home/gis which is likely to have access restrictions by default. > > > > Sebastian E. Ovide wrote: > > Hi All, > > > > everything is working find from shell. I register the Oracle libraries > > with ldconfig, I have even created a cgi that set the LD_LIBRARY_PATH > > > > [gis at mapserver-fc14 cgi-bin]$ cat test.sh > > #!/bin/sh > > export ORACLE_HOME=/home/gis/libs/instantclient_11_2/ > > export LD_LIBRARY_PATH=/home/gis/libs/instantclient_11_2/ > > /var/www/cgi-bin/mapserv $* > > > > and still getting > > > > [Thu Nov 18 16:50:06 2010] [error] [client 10.0.1.50] > > /var/www/cgi-bin/mapserv: error while loading shared libraries: > > libclntsh.so.11.1: cannot open shared object file: No such file or > directory > > [Thu Nov 18 16:50:06 2010] [error] [client 10.0.1.50] Premature end of > > script headers: test.sh > > > > any ideas ? > > > > note: this problem is on a Fedora 14 > > -- > > Sebastian E. Ovide > > > > > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- > Daniel Morissette > http://www.mapgears.com/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at squeakycode.net Thu Nov 18 09:16:42 2010 From: andy at squeakycode.net (Andy Colson) Date: Thu, 18 Nov 2010 11:16:42 -0600 Subject: [mapserver-users] Auto- classify by attribute value In-Reply-To: <4CE54FDF.501@univie.ac.at> References: <4CE54FDF.501@univie.ac.at> Message-ID: <4CE55F7A.30308@squeakycode.net> On 11/18/2010 10:10 AM, Simone Frigerio wrote: > Hi, > I have a vector shp with almost 8000 records. > Example of table: > Column1 - Column2 - Column3 - Combi - > 0 0 0 0_0_0 > 1 0 0 1_0_1 > 0 0 1 0_1_0 > .... > > There are 260 combination in attribute value Combi. If I fix a CLASS for > one like: > ... > CLASS > EXPRESSION "0_0_0" > STYLE > COLOR 25 255 255 > OUTLINECOLOR 0 0 0 > END > END > .... > > can I generate an automatic classification for all the 259 other classes? > Thanks. > > Simone > -- > Yes. With a little perl. I do the same thing with my land survey layers. -Andy From sebastian.ovide at gmail.com Thu Nov 18 09:26:43 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Thu, 18 Nov 2010 17:26:43 +0000 Subject: [mapserver-users] msProcessProjection(): Projection library error. no system list, errno: 2 Message-ID: Hi All, I'm using an map file that works fine on one server, but for some reason on another server (just installed: Fedora) it is giving this error: [Thu Nov 18 17:23:03 2010].578122 msProcessProjection(): Projection library error. no system list, errno: 2 I've already set DEBUG 5 and CONFIG "CPL_DEBUG" "ON" bat I cannot find any extra information that could help to understand what the problem is.. (I've built mapserver with debug flag) any ideas ? -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From mschulz at webgis.de Thu Nov 18 09:31:05 2010 From: mschulz at webgis.de (Michael Schulz) Date: Thu, 18 Nov 2010 18:31:05 +0100 Subject: [mapserver-users] msProcessProjection(): Projection library error. no system list, errno: 2 In-Reply-To: References: Message-ID: Hi, the projection-lib cannot find the epsg file, where all the projections are defined. Add CONFIG "PROJ_LIB" "/usr/local/share/proj/nad" your mapfile (you may have to adjust the path). Cheers, Michael 2010/11/18 Sebastian E. Ovide : > Hi All, > I'm using an map file that works fine on one server, but for some reason on > another server (just installed: Fedora) it is giving this error: > [Thu Nov 18 17:23:03 2010].578122 msProcessProjection(): Projection library > error. no system list, errno: 2 > I've already set?DEBUG 5 and?CONFIG "CPL_DEBUG" "ON" bat I cannot find any > extra information that could help to understand what the problem is.. (I've > built mapserver with debug flag) > any ideas ? > -- > Sebastian E. Ovide > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH Schwimmbadstra?e 2 D-79100? Freiburg i. Br. Tel:? +49 (0)761 705798-102 Tel:? +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 http://www.webgis.de / http://www.zopecms.de -------------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg From sebastian.ovide at gmail.com Thu Nov 18 09:55:05 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Thu, 18 Nov 2010 17:55:05 +0000 Subject: [mapserver-users] msProcessProjection(): Projection library error. no system list, errno: 2 In-Reply-To: References: Message-ID: solved with yum install proj-epsg On Thu, Nov 18, 2010 at 5:31 PM, Michael Schulz wrote: > Hi, > > the projection-lib cannot find the epsg file, where all the > projections are defined. Add > > CONFIG "PROJ_LIB" "/usr/local/share/proj/nad" > > your mapfile (you may have to adjust the path). > > Cheers, Michael > > > 2010/11/18 Sebastian E. Ovide : > > Hi All, > > I'm using an map file that works fine on one server, but for some reason > on > > another server (just installed: Fedora) it is giving this error: > > [Thu Nov 18 17:23:03 2010].578122 msProcessProjection(): Projection > library > > error. no system list, errno: 2 > > I've already set DEBUG 5 and CONFIG "CPL_DEBUG" "ON" bat I cannot find > any > > extra information that could help to understand what the problem is.. > (I've > > built mapserver with debug flag) > > any ideas ? > > -- > > Sebastian E. Ovide > > > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > -- > ----------------------------------------------------------- > Michael Schulz > mschulz at webgis.de > > in medias res > Gesellschaft f?r Informationstechnologie mbH > > Schwimmbadstra?e 2 > D-79100 Freiburg i. Br. > > Tel: +49 (0)761 705798-102 > Tel: +49 (0)761 705798-0 > Fax: +49 (0)761 705798-09 > > http://www.webgis.de / http://www.zopecms.de > -------------------------------------------------------------- > Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck > Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From dolson at glifwc.org Thu Nov 18 09:54:29 2010 From: dolson at glifwc.org (Dara Olson) Date: Thu, 18 Nov 2010 11:54:29 -0600 Subject: [mapserver-users] joining SQL Server data to PostGIS data Message-ID: <49F64928D3CC47C3B20DE386531DD714@GISWKSTN2> Good afternoon. I am trying to find out if it is possible to link data from a Microsoft SQL Server ODBC connection to PostGIS data in a MapServer layer definition. I have found information on Virtual Spatial Data (http://mapserver.org/input/vector/VirtualSpatialData.html), but not how to connect the two databases together. Is this a possible? If so, is there an example somewhere? Any help would be greatly appreciated. Thanks! Dara -------------------------------------------------------------------------------- Dara Olson ANA GIS Specialist Great Lakes Indian Fish & Wildlife Commission P.O. Box 9, 72682 Maple Street Odanah, WI 54861 Phone: (715) 682-6619 ext.129 Email: dolson at glifwc.org http://maps.glifwc.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Thu Nov 18 10:33:54 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Thu, 18 Nov 2010 12:33:54 -0600 Subject: [mapserver-users] Auto- classify by attribute value In-Reply-To: <4CE54FDF.501@univie.ac.at> References: <4CE54FDF.501@univie.ac.at> Message-ID: You could use attribute binding so you could attach another column like so: Column1 - Column2 - Column3 - Combi - Color 0 0 0 0_0_0 #ff0000 1 0 0 1_0_1 #00ff00 0 0 1 0_1_0 #00ffff Basically you'd assign color ahead of time based on the values of columns 1-3. Wouldn't need the Combi attribute then. Your class would look like: CLASS STYLE COLOR [Color] OUTLINECOLOR 0 0 0 END END Downside is that you can't generate a legend since everything is dynamic, but if you can live without that this approach would work. Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Simone Frigerio Sent: Thursday, November 18, 2010 10:10 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Auto- classify by attribute value Hi, I have a vector shp with almost 8000 records. Example of table: Column1 - Column2 - Column3 - Combi - 0 0 0 0_0_0 1 0 0 1_0_1 0 0 1 0_1_0 .... There are 260 combination in attribute value Combi. If I fix a CLASS for one like: ... CLASS EXPRESSION "0_0_0" STYLE COLOR 25 255 255 OUTLINECOLOR 0 0 0 END END .... can I generate an automatic classification for all the 259 other classes? Thanks. Simone -- [cid:image001.gif at 01CB871C.B58B9950] -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 566 bytes Desc: image001.gif URL: From David.Fawcett at state.mn.us Thu Nov 18 14:29:56 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Thu, 18 Nov 2010 16:29:56 -0600 Subject: [mapserver-users] Label backgroundcolor Message-ID: I know that you can set a shadow for the backgroundcolor (billboard). Can you increase the size of the billboard? E.g. 5 pixels all of the way around? Thanks, David. From mschulz at webgis.de Fri Nov 19 02:34:47 2010 From: mschulz at webgis.de (Michael Schulz) Date: Fri, 19 Nov 2010 11:34:47 +0100 Subject: [mapserver-users] Label backgroundcolor In-Reply-To: References: Message-ID: Hi David, not sure, but have you tried using/increasing the BUFFER value of the label? Cheers, Michael 2010/11/18 Fawcett, David (MPCA) : > I know that you can set a shadow for the backgroundcolor (billboard). > > Can you increase the size of the billboard? E.g. 5 pixels all of the way around? > > Thanks, > > David. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH Schwimmbadstra?e 2 D-79100? Freiburg i. Br. Tel:? +49 (0)761 705798-102 Tel:? +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 http://www.webgis.de / http://www.zopecms.de -------------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg From David.Fawcett at state.mn.us Fri Nov 19 06:52:27 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Fri, 19 Nov 2010 08:52:27 -0600 Subject: [mapserver-users] Label backgroundcolor In-Reply-To: References: Message-ID: Thanks Michael. BUFFER just does what I expected it to do. The labels are farther apart and one of them doesn't get drawn because there isn't room for it. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Michael Schulz Sent: Friday, November 19, 2010 4:35 AM To: Fawcett, David (MPCA) Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Label backgroundcolor Hi David, not sure, but have you tried using/increasing the BUFFER value of the label? Cheers, Michael 2010/11/18 Fawcett, David (MPCA) : > I know that you can set a shadow for the backgroundcolor (billboard). > > Can you increase the size of the billboard? E.g. 5 pixels all of the way around? > > Thanks, > > David. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH Schwimmbadstra?e 2 D-79100? Freiburg i. Br. Tel:? +49 (0)761 705798-102 Tel:? +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 http://www.webgis.de / http://www.zopecms.de -------------------------------------------------------------- Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From thomas.bonfort at gmail.com Fri Nov 19 07:01:27 2010 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 19 Nov 2010 16:01:27 +0100 Subject: [mapserver-users] Label backgroundcolor In-Reply-To: References: Message-ID: BUFFER used to also expand the size of the billboard, but that's not the case anymore. I don't think it's currently possible to expand the billboard, although it should soon be possible to do so in the near future (we can also imagine rounded rectangle billboards to). (the following is slightly off-topic, bu at least it will be written down somewhere to integrate in the migration guide) we'll probably be removing backgroundcolor and backgroundshadowcolor, and replace them with something like LABEL xxx STYLE GEOMTRANSFORM LABELPOLY #this is were other keywords would be used for expanding the billboard COLOR xxx #ex bgcolor OUTLINECOLOR xxx OFFSET 1 1 #use an offset for obtaining the same result as backgroundshadowcolor SYMBOL 'hatch' #let your imagination play END END regards, thomas On Fri, Nov 19, 2010 at 15:52, Fawcett, David (MPCA) wrote: > Thanks Michael. > > BUFFER just does what I expected it to do. ?The labels are farther apart and one of them doesn't get drawn because there isn't room for it. > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Michael Schulz > Sent: Friday, November 19, 2010 4:35 AM > To: Fawcett, David (MPCA) > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Label backgroundcolor > > Hi David, > > not sure, but have you tried using/increasing the BUFFER value of the label? > > Cheers, Michael > > > 2010/11/18 Fawcett, David (MPCA) : >> I know that you can set a shadow for the backgroundcolor (billboard). >> >> Can you increase the size of the billboard? E.g. 5 pixels all of the way around? >> >> Thanks, >> >> David. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > > -- > ----------------------------------------------------------- > Michael Schulz > mschulz at webgis.de > > in medias res > Gesellschaft f?r Informationstechnologie mbH > > Schwimmbadstra?e 2 > D-79100? Freiburg i. Br. > > Tel:? +49 (0)761 705798-102 > Tel:? +49 (0)761 705798-0 > Fax: +49 (0)761 705798-09 > > http://www.webgis.de / http://www.zopecms.de > -------------------------------------------------------------- > Gesch?ftsf?hrer: Stefan Giese, Dr. Christof Lindenbeck > Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg > _______________________________________________ > 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 olivier.terral at geomatys.com Fri Nov 19 08:51:16 2010 From: olivier.terral at geomatys.com (Olivier Terral) Date: Fri, 19 Nov 2010 17:51:16 +0100 Subject: [mapserver-users] EPSG:4326 with WMS 1.3.0 Message-ID: <4CE6AB04.7020904@geomatys.com> Hello, I've a doubt about how MapServer handles the EPSG:4326 CRS in WMS 1.3.0. With the CRS EPSG:4326, longitude/latitude are reverted so the map should be rotated by 90? on the right, with latitude on X axis and longitude on y axis . But on the example below the map has longitude on X axis and latitude on Y axis : http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-90,-180,90,180&CRS=EPSG:4326&WIDTH=953&HEIGHT=480&LAYERS=bluemarble,cities&STYLES=,&FORMAT=image/png&DPI=96&TRANSPARENT=true See extract of the WMS 1.3.0 spec below: ################################################################################ 6.7.3.1 Introduction .... The Layer CRS has two axes, denoted x and y. The x axis is the first axis in the CRS definition, the y axis is the second axis. Depending on the particular CRS, the x axis may or may not be oriented West-to-East, and the y axis may or may not be oriented South-to-North. The WMS portrayal operation shall account for axis order, origin and direction in the Layer CRS when projecting geographic information from a Layer CRS to the Map CS. Coordinates shall be listed in the order defined by the CRS and shall be mapped appropriately to the Map CS i and j axes, swapping axis order as needed during the projection operation. Many projected coordinate reference systems have an axis and coordinate order other than easting, northing. For example, the Uniform Coordinate System used in Finland (EPSG:2393) orders northing before easting. EPSG geographic coordinate reference systems follow ISO 6709 and always list latitude before longitude. .... EXAMPLE: EPSG:4326 refers to WGS 84 geographic latitude, then longitude. That is, in this CRS the X axis corresponds to latitude, and the Y axis to longitude. ################################################################################ So, what is the right image to obtain, rotated or not? Thanks in advance. Bye Olivier Terral From sebastian.ovide at gmail.com Fri Nov 19 09:23:33 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Fri, 19 Nov 2010 17:23:33 +0000 Subject: [mapserver-users] gdaltindex: It appears no georeferencing is available for Message-ID: Hi All, sebas at SeansPC:~/data/other$ gdaltindex sean.shp /media/Data/sean/GIS/OSUK/licensed/colour_raster_25k/cd9/data/ny/ny25.tif It appears no georeferencing is available for `/media/Data/sean/GIS/OSUK/licensed/colour_raster_25k/cd9/data/ny/ny25.tif', skipping. sebas at SeansPC:~/data/other$ gdalinfo /media/Data/sean/GIS/OSUK/licensed/colour_raster_25k/cd9/data/ny/ny25.tif Driver: GTiff/GeoTIFF Files: /media/Data/sean/GIS/OSUK/licensed/colour_raster_25k/cd9/data/ny/ny25.tif Size is 4000, 4000 Coordinate System is `' Metadata: TIFFTAG_IMAGEDESCRIPTION=1:25000 TILE NY25 TIFFTAG_DATETIME=2010:11:05 03:15:25 TIFFTAG_COPYRIGHT=ORDNANCE SURVEY CROWN COPYRIGHT 2010 TIFFTAG_XRESOLUTION=254 TIFFTAG_YRESOLUTION=254 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) Image Structure Metadata: COMPRESSION=PACKBITS INTERLEAVE=BAND Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 4000.0) Upper Right ( 4000.0, 0.0) Lower Right ( 4000.0, 4000.0) Center ( 2000.0, 2000.0) Band 1 Block=4000x2 Type=Byte, ColorInterp=Palette Color Table (RGB with 256 entries) 0: 89,72,73,255 1: 122,104,105,255 ... ... 255: 255,255,255,255 any ideas? -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From punk.kish at gmail.com Fri Nov 19 09:30:55 2010 From: punk.kish at gmail.com (P Kishor) Date: Fri, 19 Nov 2010 11:30:55 -0600 Subject: [mapserver-users] MapServer CGI and nginx Message-ID: I am considering moving from Apache (2.2.x) to nginx. Are there any issues with MapServer CGI + nginx that I should be aware of? Looking forward -- while I am using only MapServer via CGI, I might consider Perl MapScript in the future. Again, would that pose any problem with nginx? -- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu ----------------------------------------------------------------------- Assertions are politics; backing up assertions with evidence is science ======================================================================= From punk.kish at gmail.com Fri Nov 19 09:38:11 2010 From: punk.kish at gmail.com (P Kishor) Date: Fri, 19 Nov 2010 11:38:11 -0600 Subject: [mapserver-users] MapServer output Message-ID: I have been using MapServer for sometime now, but doing really simple things with it... read in mostly Pg, Shapefile and raster data, and output mostly images via regular CGI or WMS. One thing that GeoServer seems to do very well is provide easy output to a variety of formats -- GeoJSON, images, features, KML, a whole lot more. What are MapServer's capabilities in this regard? Ideally, my application would return the requested format based on the URI. So, given http://server/mapserv/wms/ would return WMS. If I replace "wms" with "kml" I would get back KML, or replace it with "geojson" and get back GeoJSON, etc. Is there a tutorial or documentation on this that someone can point me to? -- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu ----------------------------------------------------------------------- Assertions are politics; backing up assertions with evidence is science ======================================================================= From warmerdam at pobox.com Fri Nov 19 09:41:07 2010 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 19 Nov 2010 12:41:07 -0500 Subject: [mapserver-users] gdaltindex: It appears no georeferencing is available for In-Reply-To: References: Message-ID: <4CE6B6B3.8080807@pobox.com> Sebastian E. Ovide wrote: > Hi All, > > sebas at SeansPC:~/data/other$ gdaltindex sean.shp > /media/Data/sean/GIS/OSUK/licensed/colour_raster_25k/cd9/data/ny/ny25.tif > It appears no georeferencing is available for > `/media/Data/sean/GIS/OSUK/licensed/colour_raster_25k/cd9/data/ny/ny25.tif', > skipping. > > > sebas at SeansPC:~/data/other$ gdalinfo > /media/Data/sean/GIS/OSUK/licensed/colour_raster_25k/cd9/data/ny/ny25.tif > Driver: GTiff/GeoTIFF > Files: > /media/Data/sean/GIS/OSUK/licensed/colour_raster_25k/cd9/data/ny/ny25.tif > Size is 4000, 4000 > Coordinate System is `' > Metadata: > TIFFTAG_IMAGEDESCRIPTION=1:25000 TILE NY25 > TIFFTAG_DATETIME=2010:11:05 03:15:25 > TIFFTAG_COPYRIGHT=ORDNANCE SURVEY CROWN COPYRIGHT 2010 > any ideas? Sebastian, I have the idea that the image may be somewhere in the United Kingdom. Seriously, it seems like there is no georeferencing associated with this file in any form that gdal recognises. You are going to need to figure out where it is and attach a world file, or assign the bounds using the -a_ullr switch of gdal_translate. 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 sebastian.ovide at gmail.com Fri Nov 19 09:51:47 2010 From: sebastian.ovide at gmail.com (Sebastian E. Ovide) Date: Fri, 19 Nov 2010 17:51:47 +0000 Subject: [mapserver-users] gdaltindex: It appears no georeferencing is available for In-Reply-To: <4CE6B6B3.8080807@pobox.com> References: <4CE6B6B3.8080807@pobox.com> Message-ID: :D... ok... the files come without world file.... the geo ref is in the file name and folder that contains the file... as I have 3k files... I'll create some script usi9ng the -a_ullr switch of gdal_translate to geo reference them... On Fri, Nov 19, 2010 at 5:41 PM, Frank Warmerdam wrote: > Sebastian E. Ovide wrote: > >> Hi All, >> >> sebas at SeansPC:~/data/other$ gdaltindex sean.shp >> /media/Data/sean/GIS/OSUK/licensed/colour_raster_25k/cd9/data/ny/ny25.tif >> It appears no georeferencing is available for >> `/media/Data/sean/GIS/OSUK/licensed/colour_raster_25k/cd9/data/ny/ny25.tif', >> skipping. >> >> >> sebas at SeansPC:~/data/other$ gdalinfo >> /media/Data/sean/GIS/OSUK/licensed/colour_raster_25k/cd9/data/ny/ny25.tif >> Driver: GTiff/GeoTIFF >> Files: >> /media/Data/sean/GIS/OSUK/licensed/colour_raster_25k/cd9/data/ny/ny25.tif >> Size is 4000, 4000 >> Coordinate System is `' >> Metadata: >> TIFFTAG_IMAGEDESCRIPTION=1:25000 TILE NY25 >> TIFFTAG_DATETIME=2010:11:05 03:15:25 >> TIFFTAG_COPYRIGHT=ORDNANCE SURVEY CROWN COPYRIGHT 2010 >> > > any ideas? >> > > Sebastian, > > I have the idea that the image may be somewhere in the United Kingdom. > > Seriously, it seems like there is no georeferencing associated with this > file in any form that gdal recognises. You are going to need to figure out > where it is and attach a world file, or assign the bounds using the > -a_ullr switch of gdal_translate. > > 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 > > -- Sebastian E. Ovide -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Fri Nov 19 09:55:39 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 19 Nov 2010 12:55:39 -0500 Subject: [mapserver-users] MapServer output In-Reply-To: References: Message-ID: <4CE6BA1B.6030402@swoodbridge.com> On 11/19/2010 12:38 PM, P Kishor wrote: > I have been using MapServer for sometime now, but doing really simple > things with it... read in mostly Pg, Shapefile and raster data, and > output mostly images via regular CGI or WMS. > > One thing that GeoServer seems to do very well is provide easy output > to a variety of formats -- GeoJSON, images, features, KML, a whole lot > more. > > What are MapServer's capabilities in this regard? Ideally, my > application would return the requested format based on the URI. So, > given http://server/mapserv/wms/ would return WMS. If I replace "wms" > with "kml" I would get back KML, or replace it with "geojson" and get > back GeoJSON, etc. > > Is there a tutorial or documentation on this that someone can point me to? > FYI, there are a lot of changes coming in the rendering code as part of 6.0. I don't have the RFC's handy, but you might want to start looking at that. Also, mapserver support OGC WFS and I think there may be options to configure the output as XML or JSON, but I'm not sure. Anyway this would be another place to look. Also I would google for: mapserver ouput or something like that and see what turns up. Other might have more direct help. -Steve W From warmerdam at pobox.com Fri Nov 19 09:57:56 2010 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 19 Nov 2010 12:57:56 -0500 Subject: [mapserver-users] MapServer output In-Reply-To: References: Message-ID: <4CE6BAA4.8030204@pobox.com> P Kishor wrote: > I have been using MapServer for sometime now, but doing really simple > things with it... read in mostly Pg, Shapefile and raster data, and > output mostly images via regular CGI or WMS. > > One thing that GeoServer seems to do very well is provide easy output > to a variety of formats -- GeoJSON, images, features, KML, a whole lot > more. > > What are MapServer's capabilities in this regard? Ideally, my > application would return the requested format based on the URI. So, > given http://server/mapserv/wms/ would return WMS. If I replace "wms" > with "kml" I would get back KML, or replace it with "geojson" and get > back GeoJSON, etc. > > Is there a tutorial or documentation on this that someone can point me to? Puneet, This fall, in trunk, I have extended MapServer's WFS GetFeature request to support returning formats supported by OGR. It requires some setup in the mapfile to enable it. To the extent that helps you might want to review: http://mapserver.org/trunk/output/ogr_output.html Note that this is only in trunk. 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 punk.kish at gmail.com Fri Nov 19 09:58:09 2010 From: punk.kish at gmail.com (P Kishor) Date: Fri, 19 Nov 2010 11:58:09 -0600 Subject: [mapserver-users] MapServer output In-Reply-To: <4CE6BA1B.6030402@swoodbridge.com> References: <4CE6BA1B.6030402@swoodbridge.com> Message-ID: On Fri, Nov 19, 2010 at 11:55 AM, Stephen Woodbridge wrote: > On 11/19/2010 12:38 PM, P Kishor wrote: >> >> I have been using MapServer for sometime now, but doing really simple >> things with it... read in mostly Pg, Shapefile and raster data, and >> output mostly images via regular CGI or WMS. >> >> One thing that GeoServer seems to do very well is provide easy output >> to a variety of formats -- GeoJSON, images, features, KML, a whole lot >> more. >> >> What are MapServer's capabilities in this regard? Ideally, my >> application would return the requested format based on the URI. So, >> given http://server/mapserv/wms/ would return WMS. If I replace "wms" >> with "kml" I would get back KML, or replace it with "geojson" and get >> back GeoJSON, etc. >> >> Is there a tutorial or documentation on this that someone can point me to? >> > > FYI, there are a lot of changes coming in the rendering code as part of 6.0. > I don't have the RFC's handy, but you might want to start looking at that. > Thanks. I saw some of the RFCs (58 deals with KML). The ones I saw, as you note above, reference MS 6.0. Other than OGC stuff (WMS, WFS), does this imply that as is, MapServer can't "render" data into GeoJSON, KML, etc.? > Also, mapserver support OGC WFS and I think there may be options to > configure the output as XML or JSON, but I'm not sure. Anyway this would be > another place to look. Also I would google for: > > mapserver ouput > > or something like that and see what turns up. > > Other might have more direct ?help. > > -Steve W -- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu ----------------------------------------------------------------------- Assertions are politics; backing up assertions with evidence is science ======================================================================= From Jukka.Rahkonen at mmmtike.fi Fri Nov 19 10:01:45 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 19 Nov 2010 20:01:45 +0200 Subject: [mapserver-users] MapServer output References: Message-ID: Hi, Geoserver can generate GeoJSON, KML and zipped shapefiles as alternative WFS outputformats in addition to gml that is mandatory according to standard. Mapserver generates gml if configured to work as WFS server, and KML support seems to be available by defining it as an outputformat in the mapfile, see http://mapserver.org/development/rfc/ms-rfc-58.html And see the vector outputformat in Mapserver 6.0 http://mapserver.org/trunk/output/ogr.html So you can already get some of the extra formats which are supported by Geoserver, and most/all/even more in the future. However, configuring will be more complicated than with Geoserver which has a nice GUI tool for configuring all the WMS, WFS and WCS services at the same time. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: P Kishor L?hetetty: pe 19.11.2010 19:38 Vastaanottaja: Mapserver-users Aihe: [mapserver-users] MapServer output I have been using MapServer for sometime now, but doing really simple things with it... read in mostly Pg, Shapefile and raster data, and output mostly images via regular CGI or WMS. One thing that GeoServer seems to do very well is provide easy output to a variety of formats -- GeoJSON, images, features, KML, a whole lot more. What are MapServer's capabilities in this regard? Ideally, my application would return the requested format based on the URI. So, given http://server/mapserv/wms/ would return WMS. If I replace "wms" with "kml" I would get back KML, or replace it with "geojson" and get back GeoJSON, etc. Is there a tutorial or documentation on this that someone can point me to? -- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu ----------------------------------------------------------------------- Assertions are politics; backing up assertions with evidence is science ======================================================================= _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From punk.kish at gmail.com Fri Nov 19 10:03:46 2010 From: punk.kish at gmail.com (P Kishor) Date: Fri, 19 Nov 2010 12:03:46 -0600 Subject: [mapserver-users] MapServer output In-Reply-To: <4CE6BAA4.8030204@pobox.com> References: <4CE6BAA4.8030204@pobox.com> Message-ID: On Fri, Nov 19, 2010 at 11:57 AM, Frank Warmerdam wrote: > P Kishor wrote: >> >> I have been using MapServer for sometime now, but doing really simple >> things with it... read in mostly Pg, Shapefile and raster data, and >> output mostly images via regular CGI or WMS. >> >> One thing that GeoServer seems to do very well is provide easy output >> to a variety of formats -- GeoJSON, images, features, KML, a whole lot >> more. >> >> What are MapServer's capabilities in this regard? Ideally, my >> application would return the requested format based on the URI. So, >> given http://server/mapserv/wms/ would return WMS. If I replace "wms" >> with "kml" I would get back KML, or replace it with "geojson" and get >> back GeoJSON, etc. >> >> Is there a tutorial or documentation on this that someone can point me to? > > Puneet, > > This fall, in trunk, I have extended MapServer's WFS GetFeature request > to support returning formats supported by OGR. ?It requires some setup > in the mapfile to enable it. ?To the extent that helps you might want > to review: > > ?http://mapserver.org/trunk/output/ogr_output.html Thanks! I didn't even think OGR. This is great news. Now, OGR is mostly for reading data, and not usually, as I understand, for writing data. I am assuming that when the above is implemented, MS will support writing out to all the formats that OGR support writing out to, no? Is there a list of formats that OGR can write out to? The formats I see at http://www.gdal.org/ogr/ogr_formats.html seem to be for reading only, no? > > Note that this is only in trunk. > Is this scheduled for version 6 of MS? > 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 > > -- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu ----------------------------------------------------------------------- Assertions are politics; backing up assertions with evidence is science ======================================================================= From punk.kish at gmail.com Fri Nov 19 10:07:59 2010 From: punk.kish at gmail.com (P Kishor) Date: Fri, 19 Nov 2010 12:07:59 -0600 Subject: [mapserver-users] MapServer output In-Reply-To: References: Message-ID: On Fri, Nov 19, 2010 at 12:01 PM, Rahkonen Jukka wrote: > Hi, > > Geoserver can generate GeoJSON, KML and zipped shapefiles as alternative WFS outputformats in addition to gml that is mandatory according to standard. Mapserver generates gml if configured to work as WFS server, and KML support seems to be available by defining it as an outputformat in the mapfile, see http://mapserver.org/development/rfc/ms-rfc-58.html > And see the vector outputformat in Mapserver 6.0 > http://mapserver.org/trunk/output/ogr.html > > So you can already get some of the extra formats which are supported by Geoserver, and most/all/even more in the future. However, configuring will be more complicated than with Geoserver which has a nice GUI tool for configuring all the WMS, WFS and WCS services at the same time. Yeah, I played with GeoServer a while back. Then I saw it again yesterday and its output capabilities were just wonderful. However, I am allergic to Java, so I want to stay away from Tomcat and Jetty and such nonsense unless MapServer is absolutely unable to deliver. Hence, my queries. > > -Jukka Rahkonen- > > > > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: P Kishor > L?hetetty: pe 19.11.2010 19:38 > Vastaanottaja: Mapserver-users > Aihe: [mapserver-users] MapServer output > > I have been using MapServer for sometime now, but doing really simple > things with it... read in mostly Pg, Shapefile and raster data, and > output mostly images via regular CGI or WMS. > > One thing that GeoServer seems to do very well is provide easy output > to a variety of formats -- GeoJSON, images, features, KML, a whole lot > more. > > What are MapServer's capabilities in this regard? Ideally, my > application would return the requested format based on the URI. So, > given http://server/mapserv/wms/ would return WMS. If I replace "wms" > with "kml" I would get back KML, or replace it with "geojson" and get > back GeoJSON, etc. > > Is there a tutorial or documentation on this that someone can point me to? > > -- > Puneet Kishor http://www.punkish.org > Carbon Model http://carbonmodel.org > Charter Member, Open Source Geospatial Foundation http://www.osgeo.org > Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor > Nelson Institute, UW-Madison http://www.nelson.wisc.edu > ----------------------------------------------------------------------- > Assertions are politics; backing up assertions with evidence is science > ======================================================================= > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu ----------------------------------------------------------------------- Assertions are politics; backing up assertions with evidence is science ======================================================================= From jxjackso at franklincountyohio.gov Fri Nov 19 09:58:34 2010 From: jxjackso at franklincountyohio.gov (Jackson, John) Date: Fri, 19 Nov 2010 12:58:34 -0500 Subject: [mapserver-users] querying multiple features in a layer Message-ID: Hello all. I have a layer of school district polygons that I am trying to query. I can successfully do an itemquery on a single value and get a map with the chosen district highlighted. What I'm stumped on is how to query for multiple districts... I saw the documentation for "Mapserver expressions", but I don't see how to use them to do this. I tried embedding an OR expression into the qstring, but mapserver wouldn't take it. From what I gather, qstring must be a regular expression. Thanks in advance for your help. --John Jackson --Deputy Auditor --Franklin County Ohio From warmerdam at pobox.com Fri Nov 19 10:19:15 2010 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 19 Nov 2010 13:19:15 -0500 Subject: [mapserver-users] MapServer output In-Reply-To: References: <4CE6BAA4.8030204@pobox.com> Message-ID: <4CE6BFA3.1060205@pobox.com> P Kishor wrote: >> http://mapserver.org/trunk/output/ogr_output.html > > Thanks! I didn't even think OGR. This is great news. Now, OGR is > mostly for reading data, and not usually, as I understand, for writing > data. I am assuming that when the above is implemented, MS will > support writing out to all the formats that OGR support writing out > to, no? Puneet, Well, there are likely some exceptions that aren't useful for this purpose. For instance, OGR can write to PostGIS but it is hard to stream the resulting dataset back over http. > Is there a list of formats that OGR can write out to? The formats I > see at http://www.gdal.org/ogr/ogr_formats.html seem to be for reading > only, no? If that list says "Creation - Yes" then you have a good chance of being able to use it with WFS - GetFeature. >> Note that this is only in trunk. >> > > Is this scheduled for version 6 of MS? Yes, it will be in MapServer 6. Is is already completely implemented and available for use from trunk nightly snapshots or svn. 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 Steve.Lime at state.mn.us Fri Nov 19 10:31:45 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 19 Nov 2010 12:31:45 -0600 Subject: [mapserver-users] MapServer output In-Reply-To: <4CE6BFA3.1060205@pobox.com> References: <4CE6BAA4.8030204@pobox.com> <4CE6BFA3.1060205@pobox.com> Message-ID: I believe Frank's work extends beyond WFS as well to standard MapServer queries, or if that's not possible yet it can be. Remember also that you have query templates at your disposal which can be used to generate any number of text-based formats. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Frank Warmerdam Sent: Friday, November 19, 2010 12:19 PM To: P Kishor Cc: Mapserver-users Subject: Re: [mapserver-users] MapServer output P Kishor wrote: >> http://mapserver.org/trunk/output/ogr_output.html > > Thanks! I didn't even think OGR. This is great news. Now, OGR is > mostly for reading data, and not usually, as I understand, for writing > data. I am assuming that when the above is implemented, MS will > support writing out to all the formats that OGR support writing out > to, no? Puneet, Well, there are likely some exceptions that aren't useful for this purpose. For instance, OGR can write to PostGIS but it is hard to stream the resulting dataset back over http. > Is there a list of formats that OGR can write out to? The formats I > see at http://www.gdal.org/ogr/ogr_formats.html seem to be for reading > only, no? If that list says "Creation - Yes" then you have a good chance of being able to use it with WFS - GetFeature. >> Note that this is only in trunk. >> > > Is this scheduled for version 6 of MS? Yes, it will be in MapServer 6. Is is already completely implemented and available for use from trunk nightly snapshots or svn. 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 Steve.Lime at state.mn.us Fri Nov 19 10:36:48 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 19 Nov 2010 12:36:48 -0600 Subject: [mapserver-users] RE: querying multiple features in a layer In-Reply-To: References: Message-ID: You'd do something like: ...&mode=itemnquery&qlayer=schools&qitem=id&qstring=/id1|id2|id3/&... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jackson, John Sent: Friday, November 19, 2010 11:59 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] querying multiple features in a layer Hello all. I have a layer of school district polygons that I am trying to query. I can successfully do an itemquery on a single value and get a map with the chosen district highlighted. What I'm stumped on is how to query for multiple districts... I saw the documentation for "Mapserver expressions", but I don't see how to use them to do this. I tried embedding an OR expression into the qstring, but mapserver wouldn't take it. From what I gather, qstring must be a regular expression. Thanks in advance for your help. --John Jackson --Deputy Auditor --Franklin County Ohio_______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jxjackso at franklincountyohio.gov Fri Nov 19 10:40:58 2010 From: jxjackso at franklincountyohio.gov (Jackson, John) Date: Fri, 19 Nov 2010 13:40:58 -0500 Subject: [mapserver-users] RE: querying multiple features in a layer In-Reply-To: References: , Message-ID: That works, but is there a way to get the map one time only? ________________________________________ From: Lime, Steve D (DNR) [Steve.Lime at state.mn.us] Sent: Friday, November 19, 2010 1:36 PM To: Jackson, John; mapserver-users at lists.osgeo.org Subject: RE: querying multiple features in a layer You'd do something like: ...&mode=itemnquery&qlayer=schools&qitem=id&qstring=/id1|id2|id3/&... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jackson, John Sent: Friday, November 19, 2010 11:59 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] querying multiple features in a layer Hello all. I have a layer of school district polygons that I am trying to query. I can successfully do an itemquery on a single value and get a map with the chosen district highlighted. What I'm stumped on is how to query for multiple districts... I saw the documentation for "Mapserver expressions", but I don't see how to use them to do this. I tried embedding an OR expression into the qstring, but mapserver wouldn't take it. From what I gather, qstring must be a regular expression. Thanks in advance for your help. --John Jackson --Deputy Auditor --Franklin County Ohio_______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Fri Nov 19 10:50:26 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 19 Nov 2010 12:50:26 -0600 Subject: [mapserver-users] RE: querying multiple features in a layer In-Reply-To: References: , Message-ID: I don't understand what you mean by "get the map one time only"... Steve -----Original Message----- From: Jackson, John [mailto:jxjackso at franklincountyohio.gov] Sent: Friday, November 19, 2010 12:41 PM To: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org Subject: RE: querying multiple features in a layer That works, but is there a way to get the map one time only? ________________________________________ From: Lime, Steve D (DNR) [Steve.Lime at state.mn.us] Sent: Friday, November 19, 2010 1:36 PM To: Jackson, John; mapserver-users at lists.osgeo.org Subject: RE: querying multiple features in a layer You'd do something like: ...&mode=itemnquery&qlayer=schools&qitem=id&qstring=/id1|id2|id3/&... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jackson, John Sent: Friday, November 19, 2010 11:59 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] querying multiple features in a layer Hello all. I have a layer of school district polygons that I am trying to query. I can successfully do an itemquery on a single value and get a map with the chosen district highlighted. What I'm stumped on is how to query for multiple districts... I saw the documentation for "Mapserver expressions", but I don't see how to use them to do this. I tried embedding an OR expression into the qstring, but mapserver wouldn't take it. From what I gather, qstring must be a regular expression. Thanks in advance for your help. --John Jackson --Deputy Auditor --Franklin County Ohio_______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From warmerdam at pobox.com Fri Nov 19 10:51:25 2010 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 19 Nov 2010 13:51:25 -0500 Subject: [mapserver-users] MapServer output In-Reply-To: References: <4CE6BAA4.8030204@pobox.com> <4CE6BFA3.1060205@pobox.com> Message-ID: <4CE6C72D.4090705@pobox.com> Lime, Steve D (DNR) wrote: > I believe Frank's work extends beyond WFS as well to standard MapServer > queries, or if that's not possible yet it can be. Steve, Yes, I an confirm that it is tied into the standard query mechansism. It also can work for WMS GetFeatureInfo requests. I have actually tested WMS GetFeatureInfo and WFS GetFeature, but I have not tested it in the context of other sorts of queries. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From David.Fawcett at state.mn.us Fri Nov 19 10:51:46 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Fri, 19 Nov 2010 12:51:46 -0600 Subject: [mapserver-users] RE: querying multiple features in a layer In-Reply-To: References: , Message-ID: If you are saying that you are getting multiple querymaps back, try moving the querymap to the query header or footer template. (Or maybe outside of the [feature] block if you are using a modern MapServer query template) David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jackson, John Sent: Friday, November 19, 2010 12:41 PM To: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org Subject: [mapserver-users] RE: querying multiple features in a layer That works, but is there a way to get the map one time only? ________________________________________ From: Lime, Steve D (DNR) [Steve.Lime at state.mn.us] Sent: Friday, November 19, 2010 1:36 PM To: Jackson, John; mapserver-users at lists.osgeo.org Subject: RE: querying multiple features in a layer You'd do something like: ...&mode=itemnquery&qlayer=schools&qitem=id&qstring=/id1|id2|id3/&... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jackson, John Sent: Friday, November 19, 2010 11:59 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] querying multiple features in a layer Hello all. I have a layer of school district polygons that I am trying to query. I can successfully do an itemquery on a single value and get a map with the chosen district highlighted. What I'm stumped on is how to query for multiple districts... I saw the documentation for "Mapserver expressions", but I don't see how to use them to do this. I tried embedding an OR expression into the qstring, but mapserver wouldn't take it. From what I gather, qstring must be a regular expression. Thanks in advance for your help. --John Jackson --Deputy Auditor --Franklin County Ohio_______________________________________________ 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 jxjackso at franklincountyohio.gov Fri Nov 19 10:55:54 2010 From: jxjackso at franklincountyohio.gov (Jackson, John) Date: Fri, 19 Nov 2010 13:55:54 -0500 Subject: [mapserver-users] RE: querying multiple features in a layer In-Reply-To: References: , , Message-ID: Yes, that's what I meant. Sorry for being unclear. Thanks for the help. This is the start of what's going to be an awesome project for me. ________________________________________ From: Fawcett, David (MPCA) [David.Fawcett at state.mn.us] Sent: Friday, November 19, 2010 1:51 PM To: Jackson, John; Lime, Steve D (DNR); mapserver-users at lists.osgeo.org Subject: RE: querying multiple features in a layer If you are saying that you are getting multiple querymaps back, try moving the querymap to the query header or footer template. (Or maybe outside of the [feature] block if you are using a modern MapServer query template) David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jackson, John Sent: Friday, November 19, 2010 12:41 PM To: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org Subject: [mapserver-users] RE: querying multiple features in a layer That works, but is there a way to get the map one time only? ________________________________________ From: Lime, Steve D (DNR) [Steve.Lime at state.mn.us] Sent: Friday, November 19, 2010 1:36 PM To: Jackson, John; mapserver-users at lists.osgeo.org Subject: RE: querying multiple features in a layer You'd do something like: ...&mode=itemnquery&qlayer=schools&qitem=id&qstring=/id1|id2|id3/&... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jackson, John Sent: Friday, November 19, 2010 11:59 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] querying multiple features in a layer Hello all. I have a layer of school district polygons that I am trying to query. I can successfully do an itemquery on a single value and get a map with the chosen district highlighted. What I'm stumped on is how to query for multiple districts... I saw the documentation for "Mapserver expressions", but I don't see how to use them to do this. I tried embedding an OR expression into the qstring, but mapserver wouldn't take it. From what I gather, qstring must be a regular expression. Thanks in advance for your help. --John Jackson --Deputy Auditor --Franklin County Ohio_______________________________________________ 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 Fri Nov 19 11:03:19 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 19 Nov 2010 21:03:19 +0200 Subject: [mapserver-users] EPSG:4326 with WMS 1.3.0 References: <4CE6AB04.7020904@geomatys.com> Message-ID: Hi, WMS 1.3.0 standard does not say that maps must not be North-up any more. You may see rotated maps if you open gml vector data returned by WFS 1.1.0 service with a client than can't handle axis flipping but that is a client error, the map should be North up also in that case. By looking at the map image you cannot say which axis is x and which y because 'x' and 'y' are just axis names and it is another story which one means East-West and which one North-South. Look at your BBOX=-90,-180,90,180 and the image and you'll see that the second pair -180,180 is drawn in East-West axis. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Olivier Terral L?hetetty: pe 19.11.2010 18:51 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] EPSG:4326 with WMS 1.3.0 Hello, I've a doubt about how MapServer handles the EPSG:4326 CRS in WMS 1.3.0. With the CRS EPSG:4326, longitude/latitude are reverted so the map should be rotated by 90? on the right, with latitude on X axis and longitude on y axis . But on the example below the map has longitude on X axis and latitude on Y axis : http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-90,-180,90,180&CRS=EPSG:4326&WIDTH=953&HEIGHT=480&LAYERS=bluemarble,cities&STYLES=,&FORMAT=image/png&DPI=96&TRANSPARENT=true See extract of the WMS 1.3.0 spec below: ################################################################################ 6.7.3.1 Introduction .... The Layer CRS has two axes, denoted x and y. The x axis is the first axis in the CRS definition, the y axis is the second axis. Depending on the particular CRS, the x axis may or may not be oriented West-to-East, and the y axis may or may not be oriented South-to-North. The WMS portrayal operation shall account for axis order, origin and direction in the Layer CRS when projecting geographic information from a Layer CRS to the Map CS. Coordinates shall be listed in the order defined by the CRS and shall be mapped appropriately to the Map CS i and j axes, swapping axis order as needed during the projection operation. Many projected coordinate reference systems have an axis and coordinate order other than easting, northing. For example, the Uniform Coordinate System used in Finland (EPSG:2393) orders northing before easting. EPSG geographic coordinate reference systems follow ISO 6709 and always list latitude before longitude. .... EXAMPLE: EPSG:4326 refers to WGS 84 geographic latitude, then longitude. That is, in this CRS the X axis corresponds to latitude, and the Y axis to longitude. ################################################################################ So, what is the right image to obtain, rotated or not? Thanks in advance. Bye Olivier Terral _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Fri Nov 19 11:11:30 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 19 Nov 2010 14:11:30 -0500 Subject: [mapserver-users] MapServer output In-Reply-To: References: <4CE6BA1B.6030402@swoodbridge.com> Message-ID: <4CE6CBE2.8010505@swoodbridge.com> On 11/19/2010 12:58 PM, P Kishor wrote: > On Fri, Nov 19, 2010 at 11:55 AM, Stephen Woodbridge > wrote: >> On 11/19/2010 12:38 PM, P Kishor wrote: >>> >>> I have been using MapServer for sometime now, but doing really simple >>> things with it... read in mostly Pg, Shapefile and raster data, and >>> output mostly images via regular CGI or WMS. >>> >>> One thing that GeoServer seems to do very well is provide easy output >>> to a variety of formats -- GeoJSON, images, features, KML, a whole lot >>> more. >>> >>> What are MapServer's capabilities in this regard? Ideally, my >>> application would return the requested format based on the URI. So, >>> given http://server/mapserv/wms/ would return WMS. If I replace "wms" >>> with "kml" I would get back KML, or replace it with "geojson" and get >>> back GeoJSON, etc. >>> >>> Is there a tutorial or documentation on this that someone can point me to? >>> >> >> FYI, there are a lot of changes coming in the rendering code as part of 6.0. >> I don't have the RFC's handy, but you might want to start looking at that. >> > > Thanks. I saw some of the RFCs (58 deals with KML). The ones I saw, as > you note above, reference MS 6.0. Other than OGC stuff (WMS, WFS), > does this imply that as is, MapServer can't "render" data into > GeoJSON, KML, etc.? In 6.0 all the renders are now in a plugin format which will make it easier to add new renderers and make it easier to maintain existing renderers to keep them more consistent. I think it also improves the query output to some extent because that is based on how renders work. In one sense "rendering" is what mapserver does. in some cases it renders as an image, in other cases it renders as text or other formats. I think the other responses to this thread pretty much covered the details of what you can do now and the additional query responses based on 6.0 code. -Steve W >> Also, mapserver support OGC WFS and I think there may be options to >> configure the output as XML or JSON, but I'm not sure. Anyway this would be >> another place to look. Also I would google for: >> >> mapserver ouput >> >> or something like that and see what turns up. >> >> Other might have more direct help. >> >> -Steve W > From punk.kish at gmail.com Fri Nov 19 12:30:50 2010 From: punk.kish at gmail.com (P Kishor) Date: Fri, 19 Nov 2010 14:30:50 -0600 Subject: [mapserver-users] MapServer output In-Reply-To: References: <4CE6BAA4.8030204@pobox.com> <4CE6BFA3.1060205@pobox.com> Message-ID: On Fri, Nov 19, 2010 at 1:01 PM, Fawcett, David (MPCA) wrote: > Puneet, > > Attached is a template file that I use to generate KML files. ?This one was used to create KML points for some oblique air photos that someone in our agency shot. This is great! Thanks. Is there a public facing URL where I can test your implementation of the above? Which version of MapServer are you using to do this? > > The format was gratuitously stolen from an example that Steve Lime gave me... > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lime, Steve D (DNR) > Sent: Friday, November 19, 2010 12:32 PM > To: Frank Warmerdam; P Kishor > Cc: Mapserver-users > Subject: RE: [mapserver-users] MapServer output > > I believe Frank's work extends beyond WFS as well to standard MapServer queries, or if that's not possible yet it can be. > > Remember also that you have query templates at your disposal which can be used to generate any number of text-based formats. > > Steve > > -- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu ----------------------------------------------------------------------- Assertions are politics; backing up assertions with evidence is science ======================================================================= From David.Fawcett at state.mn.us Fri Nov 19 12:40:32 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Fri, 19 Nov 2010 14:40:32 -0600 Subject: [mapserver-users] Label Position Binding? Message-ID: I am just wishing here, but I don't suppose that attribute binding is supported for label position is it? (and the docs just haven't been updated...) David. From Steve.Lime at state.mn.us Fri Nov 19 12:41:07 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 19 Nov 2010 14:41:07 -0600 Subject: [mapserver-users] MapServer output In-Reply-To: References: <4CE6BAA4.8030204@pobox.com> <4CE6BFA3.1060205@pobox.com> Message-ID: Here's a public facing app with KML output via template: http://www.dnr.state.mn.us/watertrails/interactive_map/index.html?mapext=461232.421875%205056798.828125%20509056.640625%205085802.734375 If you click on a water trail line you'll see a KML option. It does a query and generates multiple layer/feature KML file via a template... The output is compressed across the wire (thanks to mod-deflate) but appears uncompressed to the user when the file arrives. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of P Kishor Sent: Friday, November 19, 2010 2:31 PM To: Fawcett, David (MPCA) Cc: Mapserver-users Subject: Re: [mapserver-users] MapServer output On Fri, Nov 19, 2010 at 1:01 PM, Fawcett, David (MPCA) wrote: > Puneet, > > Attached is a template file that I use to generate KML files. ?This one was used to create KML points for some oblique air photos that someone in our agency shot. This is great! Thanks. Is there a public facing URL where I can test your implementation of the above? Which version of MapServer are you using to do this? > > The format was gratuitously stolen from an example that Steve Lime gave me... > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lime, Steve D (DNR) > Sent: Friday, November 19, 2010 12:32 PM > To: Frank Warmerdam; P Kishor > Cc: Mapserver-users > Subject: RE: [mapserver-users] MapServer output > > I believe Frank's work extends beyond WFS as well to standard MapServer queries, or if that's not possible yet it can be. > > Remember also that you have query templates at your disposal which can be used to generate any number of text-based formats. > > Steve > > -- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu ----------------------------------------------------------------------- Assertions are politics; backing up assertions with evidence is science ======================================================================= _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Fri Nov 19 12:44:12 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Fri, 19 Nov 2010 14:44:12 -0600 Subject: [mapserver-users] RE: Label Position Binding? In-Reply-To: References: Message-ID: Sorry, nope that's not supported. Patches gladly accepted though. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Fawcett, David (MPCA) Sent: Friday, November 19, 2010 2:41 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Label Position Binding? I am just wishing here, but I don't suppose that attribute binding is supported for label position is it? (and the docs just haven't been updated...) David. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From vincent.heurteaux at geomatys.com Sat Nov 20 03:09:49 2010 From: vincent.heurteaux at geomatys.com (vheurteaux) Date: Sat, 20 Nov 2010 03:09:49 -0800 (PST) Subject: [mapserver-users] Re: EPSG:4326 with WMS 1.3.0 In-Reply-To: References: <4CE6AB04.7020904@geomatys.com> Message-ID: <1290251389456-5757819.post@n2.nabble.com> Hello Jukka, You said "You may see rotated maps if you open gml vector data returned by WFS 1.1.0 service with a client than can't handle axis flipping but that is a client error". Do we agree that the server is expected to return a rotated map, and that the client is expected to put it back in the right orientation? Do we agree that on a client with no such capability (for example when viewing the image directly in the internet browser), the image in EPSG:4326 shall appear rotated? Cheers Vincent -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/EPSG-4326-with-WMS-1-3-0-tp5756000p5757819.html Sent from the Mapserver - User mailing list archive at Nabble.com. From olt at omniscale.de Sat Nov 20 06:48:49 2010 From: olt at omniscale.de (Oliver Tonnhofer) Date: Sat, 20 Nov 2010 15:48:49 +0100 Subject: [mapserver-users] MapServer CGI and nginx In-Reply-To: References: Message-ID: <4F73ED2B-DF5D-467E-9AE7-FFFDE415D6EC@omniscale.de> On 19.11.2010, at 18:30, P Kishor wrote: > I am considering moving from Apache (2.2.x) to nginx. Are there any > issues with MapServer CGI + nginx that I should be aware of? Looking > forward -- while I am using only MapServer via CGI, I might consider > Perl MapScript in the future. Again, would that pose any problem with > nginx? Nginx is a good choice, but it doesn't support CGI. So you have to switch to FastCGI. Regards, Oliver From donald.kerr at dkerr.co.uk Sat Nov 20 10:30:42 2010 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Sat, 20 Nov 2010 18:30:42 -0000 Subject: [mapserver-users] Annotation Layer Always on Top Despite Not Being Declared Last In-Reply-To: <4CE1E790.7060101@gatewaygeomatics.com> Message-ID: <9D22423717C7468EBFDB15B3FA347C4F@DELLM4500> Hi List, I have a map file made up from multiple layers one of which is an Annotation layer. I have a number of layers declared after that layer but the annotation layer always appears to show on top. I want the layers that are declared later in the map file to show on top. I can't see anything that could be causing this and would appreciated it if someone could advise. See attached image where the text "McL" part of "McLellan Galleries" shows through the label. The text from this Annotation layer also shows through png symbols declared in other layers so it is not just labels where the underlying text appears on top. Many thanks. Regards, Donald Kerr -------------- next part -------------- A non-text attachment was scrubbed... Name: TextShowingThroughLabel.gif Type: image/gif Size: 2483 bytes Desc: not available URL: From donald.kerr at dkerr.co.uk Sat Nov 20 10:39:19 2010 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Sat, 20 Nov 2010 18:39:19 -0000 Subject: [mapserver-users] RE: Mapserver ODBC Access Database Field Concatenation Message-ID: <344463B807B84C50954865DF948FFC03@DELLM4500> I have solved this by doing the concatenation in the TEXT part of the LAYER CLASS as follows: TEXT (Status: [Status]||Dia: [Diameter]) LABEL FONT Arial SIZE 10 TYPE truetype ANTIALIAS TRUE COLOR 0 0 0 BACKGROUNDCOLOR 255 255 192 BACKGROUNDSHADOWCOLOR 192 192 192 POSITION lr FORCE TRUE OFFSET -19 0 WRAP "|" END # LABEL Regards, Donald -----Original Message----- From: Donald Kerr [mailto:donald.kerr at dkerr.co.uk] Sent: 13 November 2010 20:11 To: 'mapserver-users at lists.osgeo.org' Subject: Mapserver ODBC Access Database Field Concatenation Hi List, I want to create a multi line label based on a combination of text and fields from an Access database. I can connect to the database and return the required fields but I do not seem to be able to concatenate fields to produce the required results. Here's the contents of the ovf file: ODBC:@MyDSN SELECT ('Status: ',[Status],'|','Dia: ',[Diameter]) AS MyLabel FROM MyTable wkbPoint There is not a problem if I simply request the fields alone (substitute the line below for the one in the code above): SELECT Status, Diameter FROM MyTable The problem seems to be with concatenating fields. I have also tried concatenation using the word CONCAT with the same results. Can anyone advise please? Alternatively is there a better way to produce the multi line label in the LAYER definition i.e. can I do the concatenation in there? Many thanks. Regards, Donald Kerr From donald.kerr at dkerr.co.uk Sun Nov 21 02:21:36 2010 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Sun, 21 Nov 2010 10:21:36 -0000 Subject: [mapserver-users] LABEL POSITION - Numeric or String from a database Message-ID: <09B769AA50734E70BEA45790F4BC332E@DELLM4500> Hi List, I am trying to change a LABEL's POSITION by using an integer without success. As far as I can see, the LABEL's POSITION can be any one of the following constants: enum MS_POSITIONS_ENUM {MS_UL=101, MS_LR, MS_UR, MS_LL, MS_CR, MS_CL, MS_UC, MS_LC, MS_CC, MS_AUTO, MS_XY , MS_FOLLOW}; I was assuming that I can replace UL with "101" i.e. instead of "POSITION UL" I use "POSITION 101" but that doesn't work. I have also tried replacing "POSITION UL" with text values from a database i.e. "POSITION [AnchorPositionTxt]" where "AnchorPositionTxt" is a string 'UL' but, again, that doesn't work. Is there a way to set this value dynamically from the database with either numbers or strings ('UL', LR, etc...)? Many thanks. Regards, Donald Kerr From tommasodb at googlemail.com Sun Nov 21 05:58:39 2010 From: tommasodb at googlemail.com (tommaso) Date: Sun, 21 Nov 2010 14:58:39 +0100 Subject: [mapserver-users] LABEL POSITION - Numeric or String from a database In-Reply-To: <09B769AA50734E70BEA45790F4BC332E@DELLM4500> References: <09B769AA50734E70BEA45790F4BC332E@DELLM4500> Message-ID: <1290347919.2220.12.camel@tommaso-laptop> Hallo Donald, you can define a layer with so many classes how are your possible label positions and filter each class with the value of the attribute "AnchorPositionTxt" i.e: LAYER NAME "layer" ... ... CLASSITEM "AnchorPositionTxt" LABELITEM "name" CLASS EXPRESSION "ul" LABEL POSITION ul ... END END CLASS EXPRESSION "lr" LABEL POSITION lr ... END END END Cheers, Tommaso On Sun, 2010-11-21 at 10:21 +0000, Donald Kerr wrote: > Hi List, > > I am trying to change a LABEL's POSITION by using an integer without > success. > > As far as I can see, the LABEL's POSITION can be any one of the following > constants: enum MS_POSITIONS_ENUM {MS_UL=101, MS_LR, MS_UR, MS_LL, MS_CR, > MS_CL, > MS_UC, MS_LC, MS_CC, MS_AUTO, MS_XY , MS_FOLLOW}; > > I was assuming that I can replace UL with "101" i.e. instead of "POSITION > UL" I use "POSITION 101" but that doesn't work. > > I have also tried replacing "POSITION UL" with text values from a database > i.e. "POSITION [AnchorPositionTxt]" where "AnchorPositionTxt" is a string > 'UL' but, again, that doesn't work. > > Is there a way to set this value dynamically from the database with either > numbers or strings ('UL', LR, etc...)? > > Many thanks. > > Regards, > > Donald Kerr > > _______________________________________________ > 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 donald.kerr at dkerr.co.uk Sun Nov 21 06:33:59 2010 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Sun, 21 Nov 2010 14:33:59 -0000 Subject: [mapserver-users] LABEL POSITION - Numeric or String from a database In-Reply-To: <1290347919.2220.12.camel@tommaso-laptop> Message-ID: <56C13AEE60B6439AAD3A62FA9A029420@DELLM4500> Tommaso, There are already 30 classes, each with their own attributes, some of which also come from the database (see example below). I don't think I can also use CLASSITEM and two EXPRESSIONs. ======================================================= LABELITEM textstring CLASS # Building EXPRESSION ([featurecode] = 10020) LABEL TYPE truetype FONT arial SIZE [height] POSITION cc #POSITION [AnchorPositionTxt] COLOR [oscolor] ANTIALIAS TRUE ANGLE [orientation] FORCE TRUE END # LABEL END # CLASS ======================================================= Regards, Donald -----Original Message----- From: tommaso [mailto:tommasodb at googlemail.com] Sent: 21 November 2010 13:59 To: Donald Kerr Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] LABEL POSITION - Numeric or String from a database Hallo Donald, you can define a layer with so many classes how are your possible label positions and filter each class with the value of the attribute "AnchorPositionTxt" i.e: LAYER NAME "layer" ... ... CLASSITEM "AnchorPositionTxt" LABELITEM "name" CLASS EXPRESSION "ul" LABEL POSITION ul ... END END CLASS EXPRESSION "lr" LABEL POSITION lr ... END END END Cheers, Tommaso On Sun, 2010-11-21 at 10:21 +0000, Donald Kerr wrote: Hi List, I am trying to change a LABEL's POSITION by using an integer without success. As far as I can see, the LABEL's POSITION can be any one of the following constants: enum MS_POSITIONS_ENUM {MS_UL=101, MS_LR, MS_UR, MS_LL, MS_CR, MS_CL, MS_UC, MS_LC, MS_CC, MS_AUTO, MS_XY , MS_FOLLOW}; I was assuming that I can replace UL with "101" i.e. instead of "POSITION UL" I use "POSITION 101" but that doesn't work. I have also tried replacing "POSITION UL" with text values from a database i.e. "POSITION [AnchorPositionTxt]" where "AnchorPositionTxt" is a string 'UL' but, again, that doesn't work. Is there a way to set this value dynamically from the database with either numbers or strings ('UL', LR, etc...)? Many thanks. Regards, Donald Kerr _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From donald.kerr at dkerr.co.uk Sun Nov 21 07:20:15 2010 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Sun, 21 Nov 2010 15:20:15 -0000 Subject: [mapserver-users] LABEL POSITION - Numeric or String from adatabase In-Reply-To: <56C13AEE60B6439AAD3A62FA9A029420@DELLM4500> Message-ID: <29B1445832184DB8857B032E55259B9D@DELLM4500> This works (see code below) but would require 30 x 9 classes where, previously there were 30. LABELITEM removed TEXT added EXPRESSION changed - added anchorpositiontxt - I would need 9 x classes for each feature code (30). I am guessing that there must be a way to achieve this without having to move from 30 to 270 classes. ======================================================= #LABELITEM textstring CLASS # Building EXPRESSION (([featurecode] = 10020) And ("[anchorpositiontxt]"="cc")) TEXT ([textstring]) LABEL TYPE truetype FONT arial SIZE [height] POSITION cc COLOR [oscolor] ANTIALIAS TRUE ANGLE [orientation] FORCE TRUE END # LABEL END # CLASS ======================================================= Regards, Donald -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Donald Kerr Sent: 21 November 2010 14:34 To: 'tommaso' Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] LABEL POSITION - Numeric or String from adatabase Tommaso, There are already 30 classes, each with their own attributes, some of which also come from the database (see example below). I don't think I can also use CLASSITEM and two EXPRESSIONs. ======================================================= LABELITEM textstring CLASS # Building EXPRESSION ([featurecode] = 10020) LABEL TYPE truetype FONT arial SIZE [height] POSITION cc #POSITION [AnchorPositionTxt] COLOR [oscolor] ANTIALIAS TRUE ANGLE [orientation] FORCE TRUE END # LABEL END # CLASS ======================================================= Regards, Donald -----Original Message----- From: tommaso [mailto:tommasodb at googlemail.com] Sent: 21 November 2010 13:59 To: Donald Kerr Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] LABEL POSITION - Numeric or String from a database Hallo Donald, you can define a layer with so many classes how are your possible label positions and filter each class with the value of the attribute "AnchorPositionTxt" i.e: LAYER NAME "layer" ... ... CLASSITEM "AnchorPositionTxt" LABELITEM "name" CLASS EXPRESSION "ul" LABEL POSITION ul ... END END CLASS EXPRESSION "lr" LABEL POSITION lr ... END END END Cheers, Tommaso On Sun, 2010-11-21 at 10:21 +0000, Donald Kerr wrote: Hi List, I am trying to change a LABEL's POSITION by using an integer without success. As far as I can see, the LABEL's POSITION can be any one of the following constants: enum MS_POSITIONS_ENUM {MS_UL=101, MS_LR, MS_UR, MS_LL, MS_CR, MS_CL, MS_UC, MS_LC, MS_CC, MS_AUTO, MS_XY , MS_FOLLOW}; I was assuming that I can replace UL with "101" i.e. instead of "POSITION UL" I use "POSITION 101" but that doesn't work. I have also tried replacing "POSITION UL" with text values from a database i.e. "POSITION [AnchorPositionTxt]" where "AnchorPositionTxt" is a string 'UL' but, again, that doesn't work. Is there a way to set this value dynamically from the database with either numbers or strings ('UL', LR, etc...)? Many thanks. Regards, Donald Kerr _______________________________________________ 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 Sun Nov 21 07:38:29 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sun, 21 Nov 2010 17:38:29 +0200 Subject: [mapserver-users] Re: EPSG:4326 with WMS 1.3.0 References: <4CE6AB04.7020904@geomatys.com> <1290251389456-5757819.post@n2.nabble.com> Message-ID: vheurteaux wrote: > Hello Jukka, > You said "You may see rotated maps if you open gml vector data returned by WFS 1.1.0 service with a client than can't handle axis flipping but that is a client error". > Do we agree that the server is expected to return a rotated map, and that the client is expected to put it back in the right orientation? Not really, I fear. Even WFS server does not send rotated maps, it is sending normally oriented vector maps with coordinates in order northing-easting with some projections. The vector map client is expected to parse the coordinates correctly by following the projection definitions. For example UTM zones are always easting-northing and WFS output from versions 1.0.0 and 1.1.0 have the same axis order. > Do we agree that on a client with no such capability (for example when viewing the image directly in the internet browser), the image in EPSG:4326 shall appear rotated? WMS is sending images as they should appear on the screen and client is not supposed to do any pixel-by-pixel warping. Only thing that a proper WMS 1.3.0 client need to do is to build BBOX with correct axis order, either easting-northing or northing-easting. A not-proper WMS 1.3.0 client will build BBOX with wrong axis order (again, with some projections) and get back a north-up image from some other place of the world, not a rotated image. -Jukka Rahkonen- Cheers Vincent -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/EPSG-4326-with-WMS-1-3-0-tp5756000p5757819.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 vincent.heurteaux at geomatys.com Sun Nov 21 10:11:18 2010 From: vincent.heurteaux at geomatys.com (Vincent Heurteaux) Date: Sun, 21 Nov 2010 19:11:18 +0100 Subject: [mapserver-users] Re: EPSG:4326 with WMS 1.3.0 In-Reply-To: References: <4CE6AB04.7020904@geomatys.com> <1290251389456-5757819.post@n2.nabble.com> Message-ID: Hello Jukka, Thank's for your feedback. After a closer look to WMS 1.3.0 specification (OGC 06-042, section 6.7.2 page 15), it appears that you are totally right. Thank's again, Vincent Le 21 nov. 2010 ? 16:38, Rahkonen Jukka a ?crit : > vheurteaux wrote: > >> Hello Jukka, > >> You said "You may see rotated maps if you open gml vector data returned by > WFS 1.1.0 service with a client than can't handle axis flipping but that is > a client error". > >> Do we agree that the server is expected to return a rotated map, and that > the client is expected to put it back in the right orientation? > > Not really, I fear. Even WFS server does not send rotated maps, it is sending normally oriented vector maps with coordinates in order northing-easting with some projections. The vector map client is expected to parse the coordinates correctly by following the projection definitions. For example UTM zones are always easting-northing and WFS output from versions 1.0.0 and 1.1.0 have the same axis order. > >> Do we agree that on a client with no such capability (for example when > viewing the image directly in the internet browser), the image in EPSG:4326 > shall appear rotated? > > WMS is sending images as they should appear on the screen and client is not supposed to do any pixel-by-pixel warping. Only thing that a proper WMS 1.3.0 client need to do is to build BBOX with correct axis order, either easting-northing or northing-easting. A not-proper WMS 1.3.0 client will build BBOX with wrong axis order (again, with some projections) and get back a north-up image from some other place of the world, not a rotated image. > > -Jukka Rahkonen- > > > > Cheers > Vincent > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/EPSG-4326-with-WMS-1-3-0-tp5756000p5757819.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 olivier.terral at geomatys.com Mon Nov 22 00:37:02 2010 From: olivier.terral at geomatys.com (Olivier Terral) Date: Mon, 22 Nov 2010 09:37:02 +0100 Subject: [mapserver-users] Re: EPSG:4326 with WMS 1.3.0 In-Reply-To: References: <4CE6AB04.7020904@geomatys.com> <1290251389456-5757819.post@n2.nabble.com> Message-ID: <4CEA2BAE.4010807@geomatys.com> Hi Jukka, Thanks for your feedback, Jukka. Your explanations are usefull. Bye Olivier On 21/11/2010 19:11, Vincent Heurteaux wrote: > Hello Jukka, > Thank's for your feedback. After a closer look to WMS 1.3.0 specification (OGC 06-042, section 6.7.2 page 15), it appears that you are totally right. > > Thank's again, > > Vincent > > Le 21 nov. 2010 ? 16:38, Rahkonen Jukka a ?crit : > >> vheurteaux wrote: >> >>> Hello Jukka, >>> You said "You may see rotated maps if you open gml vector data returned by >> WFS 1.1.0 service with a client than can't handle axis flipping but that is >> a client error". >> >>> Do we agree that the server is expected to return a rotated map, and that >> the client is expected to put it back in the right orientation? >> >> Not really, I fear. Even WFS server does not send rotated maps, it is sending normally oriented vector maps with coordinates in order northing-easting with some projections. The vector map client is expected to parse the coordinates correctly by following the projection definitions. For example UTM zones are always easting-northing and WFS output from versions 1.0.0 and 1.1.0 have the same axis order. >> >>> Do we agree that on a client with no such capability (for example when >> viewing the image directly in the internet browser), the image in EPSG:4326 >> shall appear rotated? >> >> WMS is sending images as they should appear on the screen and client is not supposed to do any pixel-by-pixel warping. Only thing that a proper WMS 1.3.0 client need to do is to build BBOX with correct axis order, either easting-northing or northing-easting. A not-proper WMS 1.3.0 client will build BBOX with wrong axis order (again, with some projections) and get back a north-up image from some other place of the world, not a rotated image. >> >> -Jukka Rahkonen- >> >> >> >> Cheers >> Vincent >> -- >> View this message in context: http://osgeo-org.1803224.n2.nabble.com/EPSG-4326-with-WMS-1-3-0-tp5756000p5757819.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Steve.Lime at state.mn.us Mon Nov 22 08:46:08 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 22 Nov 2010 10:46:08 -0600 Subject: [mapserver-users] Annotation Layer Always on Top Despite Not Being Declared Last In-Reply-To: <9D22423717C7468EBFDB15B3FA347C4F@DELLM4500> References: <4CE1E790.7060101@gatewaygeomatics.com> <9D22423717C7468EBFDB15B3FA347C4F@DELLM4500> Message-ID: Annotation layers basically just add labels to the label cache and labels are drawn after everything else. If you want labels drawn before other features then you can try the "LABELCACHE OFF" layer parameter. Note this by-passes any label overlap checking. You can control the order of label drawing by 1) the order of layers in the mapfile (last labels into the cache are drawn first) or 2) through the use of the label PRIORITY parameter. Typically annotation layers are defined very late in a mapfile... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Donald Kerr Sent: Saturday, November 20, 2010 12:31 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Annotation Layer Always on Top Despite Not Being Declared Last Hi List, I have a map file made up from multiple layers one of which is an Annotation layer. I have a number of layers declared after that layer but the annotation layer always appears to show on top. I want the layers that are declared later in the map file to show on top. I can't see anything that could be causing this and would appreciated it if someone could advise. See attached image where the text "McL" part of "McLellan Galleries" shows through the label. The text from this Annotation layer also shows through png symbols declared in other layers so it is not just labels where the underlying text appears on top. Many thanks. Regards, Donald Kerr From Andreas.Fischer at kreis-unna.de Mon Nov 22 09:44:58 2010 From: Andreas.Fischer at kreis-unna.de (Fischer, Andreas) Date: Mon, 22 Nov 2010 18:44:58 +0100 Subject: [mapserver-users] Filter Encoding with Spatial Filter within WFS-Request Message-ID: <34A305EE27F6F245A9D0E92FEB03640E018E622F@kum1.kreis-unna.int> Dear MapServer-User, I configured MapServer version 5.6.5 as WMS- and WFS-Server to offer information about land and properties. I use PostgreSQL/PostGIS (8.4.4/1.5.1) as datastore in this case. The spatial reference system is EPSG:25832 und the type of the geometry is MULTIPOLYGON. OS is Suse Linux Enterprise Server 11, Servicepack1. WMS and WFS work fine until I use a spatial filter within the getFeature-Request of the WFS. In this case the response doesn't deliver any features. Nevertheless the number of features (e.g. numberOf Features='4') is correct. I tried this out with a couple of different boundingboxes and the known number of features that intersect these boundigboxes. In all cases I do not get any features back, but always the right number. So it seems that at least the intersection of the boundingbox and my data works correctly. Please take a look at the following request and response that illustrate that problem: Request: http://myserver/cgi-bin/mapserv?map=/mapserver/mapfiles/u218768/ku_testwfs.map&REQUEST=getFeature&typename=folie001&SERVICE=WFS&VERSION=1.1.0& Filter= msGeometry 409350,5709890 409350,5709910 409370,5709910 409370,5709890 409350,5709890 Response ? -1.000000 -1.000000 ? -1.000000 -1.000000 ? ? Indeed of this behavior the WFS returns features when I do not use a spatial filter. Therefore in my opinion the WFS should be configured right in general. To me the spatial filter seems to be the problem. Unfortunately I do not have any ideas what is going wrong. For more information you can take a look at my MapFile and a part of the capabilities document returned from the WFS below: MAP NAME "ku_testwfs" STATUS ON SIZE 400 520 EXTENT 389965 5693582 420177 5732815 UNITS METERS PROJECTION "init=epsg:25832" END SYMBOLSET "/mapserver/symbols/symbols_alk.sym" FONTSET "/mapserver/fonts/fonts.fnt" IMAGECOLOR 255 255 255 WEB IMAGEPATH "/mapbender/mb262/http/tmp/" IMAGEURL "http://myserver/mapbender/tmp/" METADATA "ows_onlineresource" "http://myserver/cgi-bin/mapserv?map=/mapserver/mapfiles/u218768/ku_testwfs.map" "ows_title" "Liegenschaftskarte, Kreis Unna" "ows_accessconstraints" "Nutzung nur f?r den Dienstgebrauch." "ows_abstract" "Flurst?cksfolie der Liegenschaftskarte." "ows_contactperson" "Andreas Fischer" "ows_contactorganization" "Kreis Unna" "ows_contactposition" "Zentrale Datenverarbeitung, Geodatenmanagement" "wms_srs" "EPSG:25832 EPSG:31462 EPSG:31463 EPSG:31466 EPSG:31467 EPSG:4326" "wms_feature_info_mime_type" "text/html" "wfs_srs" "EPSG:25832" END #METADATA END #WEB LAYER NAME "folie001" STATUS ON TYPE POLYGON DUMP TRUE CONNECTIONTYPE postgis CONNECTION "user=dbuser password=dbpassword dbname=dbname host=dbhost port=dbport" DATA "the_geom from ku_view_folie001 USING UNIQUE objnr USING SRID=25832" METADATA "ows_title" "Flurst?cke" "wms_srs" "EPSG:25832 EPSG:31462 EPSG:31463 EPSG:31466 EPSG:31467 EPSG:4326" "wms_feature_info_mime_type" "text/html" "wfs_srs" "EPSG:25832" "wfs_extent" "389965 5693582 420177 5732815" "gml_include_items" "all" "gml_featureid" "objnr" END #METADATA CLASS NAME "Flurst?cke" STYLE OUTLINECOLOR 0 0 0 WIDTH 1 END # STYLE END # CLASS END #LAYER END #MAPFILE [...] - < FeatureTypeList> - < Operations> ? ? - ? folie001 ? Flurst?cke ? EPSG:25832 ? ? ? - - - ? ? ? ? ? ? ? ? ? ? ? ? - ? - ? ? ? ? ? ? ? (The LatLongBoundingBox in this case is obviously not in units of LatLon but represent the boundingbox in the offered SRS 25832. This seems to be strange since thes doesn' t occur in the WMS-capabilities document. In this document the LatLongBoundingBox und the BoundingBox in the source SRS are both all right.) I even tried different versions of MapServer and I discovered a slight difference with other versions. If I change my datasource from PostGIS to OGR/MapInfo Tab former versions of MapServer (5.4.2/5.2.3) provide features as well. But just in case of OGR/MapInfo Tab - not with PostGIS in use! As I have to use PostGIS I'm interested in any hints to solve this problem. Therefore I would be glad to hear from you! Thanks so far and best regards! Andreas Mit freundlichen Gr??en Im Auftrag Andreas Fischer Kreis Unna - Der Landrat Zentrale Datenverarbeitung Friedrich-Ebert-Stra?e 17 59425 Unna Fon 02 3 03 27-44 16 Fax 0 23 03 27-28 96 andreas.fischer at kreis-unna.de www.kreis-unna.de Diese E-Mail wurde beim Ausgang auf Viren geprueft. Wegen der potentiellen Gefahr auf den Uebertragungswegen wird zu einer Vireneingangskontrolle geraten. Eine Haftung f?r Virenfreiheit wird ausgeschlossen. From Jukka.Rahkonen at mmmtike.fi Mon Nov 22 10:44:32 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 22 Nov 2010 20:44:32 +0200 Subject: [mapserver-users] Filter Encoding with Spatial Filter withinWFS-Request References: <34A305EE27F6F245A9D0E92FEB03640E018E622F@kum1.kreis-unna.int> Message-ID: Hi, Your spatial filter is not WFS 1.1.0 filter because 1.1.0 is using gml3."coordinates" belong to gml2. Have a try with WFS 1.0.0. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Fischer, Andreas L?hetetty: ma 22.11.2010 19:44 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Filter Encoding with Spatial Filter withinWFS-Request Dear MapServer-User, I configured MapServer version 5.6.5 as WMS- and WFS-Server to offer information about land and properties. I use PostgreSQL/PostGIS (8.4.4/1.5.1) as datastore in this case. The spatial reference system is EPSG:25832 und the type of the geometry is MULTIPOLYGON. OS is Suse Linux Enterprise Server 11, Servicepack1. WMS and WFS work fine until I use a spatial filter within the getFeature-Request of the WFS. In this case the response doesn't deliver any features. Nevertheless the number of features (e.g. numberOf Features='4') is correct. I tried this out with a couple of different boundingboxes and the known number of features that intersect these boundigboxes. In all cases I do not get any features back, but always the right number. So it seems that at least the intersection of the boundingbox and my data works correctly. Please take a look at the following request and response that illustrate that problem: Request: http://myserver/cgi-bin/mapserv?map=/mapserver/mapfiles/u218768/ku_testwfs.map&REQUEST=getFeature&typename=folie001&SERVICE=WFS&VERSION=1.1.0& Filter= msGeometry 409350,5709890 409350,5709910 409370,5709910 409370,5709890 409350,5709890 Response ? -1.000000 -1.000000 ? -1.000000 -1.000000 ? ? Indeed of this behavior the WFS returns features when I do not use a spatial filter. Therefore in my opinion the WFS should be configured right in general. To me the spatial filter seems to be the problem. Unfortunately I do not have any ideas what is going wrong. For more information you can take a look at my MapFile and a part of the capabilities document returned from the WFS below: MAP NAME "ku_testwfs" STATUS ON SIZE 400 520 EXTENT 389965 5693582 420177 5732815 UNITS METERS PROJECTION "init=epsg:25832" END SYMBOLSET "/mapserver/symbols/symbols_alk.sym" FONTSET "/mapserver/fonts/fonts.fnt" IMAGECOLOR 255 255 255 WEB IMAGEPATH "/mapbender/mb262/http/tmp/" IMAGEURL "http://myserver/mapbender/tmp/" METADATA "ows_onlineresource" "http://myserver/cgi-bin/mapserv?map=/mapserver/mapfiles/u218768/ku_testwfs.map" "ows_title" "Liegenschaftskarte, Kreis Unna" "ows_accessconstraints" "Nutzung nur f?r den Dienstgebrauch." "ows_abstract" "Flurst?cksfolie der Liegenschaftskarte." "ows_contactperson" "Andreas Fischer" "ows_contactorganization" "Kreis Unna" "ows_contactposition" "Zentrale Datenverarbeitung, Geodatenmanagement" "wms_srs" "EPSG:25832 EPSG:31462 EPSG:31463 EPSG:31466 EPSG:31467 EPSG:4326" "wms_feature_info_mime_type" "text/html" "wfs_srs" "EPSG:25832" END #METADATA END #WEB LAYER NAME "folie001" STATUS ON TYPE POLYGON DUMP TRUE CONNECTIONTYPE postgis CONNECTION "user=dbuser password=dbpassword dbname=dbname host=dbhost port=dbport" DATA "the_geom from ku_view_folie001 USING UNIQUE objnr USING SRID=25832" METADATA "ows_title" "Flurst?cke" "wms_srs" "EPSG:25832 EPSG:31462 EPSG:31463 EPSG:31466 EPSG:31467 EPSG:4326" "wms_feature_info_mime_type" "text/html" "wfs_srs" "EPSG:25832" "wfs_extent" "389965 5693582 420177 5732815" "gml_include_items" "all" "gml_featureid" "objnr" END #METADATA CLASS NAME "Flurst?cke" STYLE OUTLINECOLOR 0 0 0 WIDTH 1 END # STYLE END # CLASS END #LAYER END #MAPFILE [...] - < FeatureTypeList> - < Operations> ? ? - ? folie001 ? Flurst?cke ? EPSG:25832 ? ? ? - - - ? ? ? ? ? ? ? ? ? ? ? ? - ? - ? ? ? ? ? ? ? (The LatLongBoundingBox in this case is obviously not in units of LatLon but represent the boundingbox in the offered SRS 25832. This seems to be strange since thes doesn' t occur in the WMS-capabilities document. In this document the LatLongBoundingBox und the BoundingBox in the source SRS are both all right.) I even tried different versions of MapServer and I discovered a slight difference with other versions. If I change my datasource from PostGIS to OGR/MapInfo Tab former versions of MapServer (5.4.2/5.2.3) provide features as well. But just in case of OGR/MapInfo Tab - not with PostGIS in use! As I have to use PostGIS I'm interested in any hints to solve this problem. Therefore I would be glad to hear from you! Thanks so far and best regards! Andreas Mit freundlichen Gr??en Im Auftrag Andreas Fischer Kreis Unna - Der Landrat Zentrale Datenverarbeitung Friedrich-Ebert-Stra?e 17 59425 Unna Fon 02 3 03 27-44 16 Fax 0 23 03 27-28 96 andreas.fischer at kreis-unna.de www.kreis-unna.de Diese E-Mail wurde beim Ausgang auf Viren geprueft. Wegen der potentiellen Gefahr auf den Uebertragungswegen wird zu einer Vireneingangskontrolle geraten. Eine Haftung f?r Virenfreiheit wird ausgeschlossen. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From donald.kerr at dkerr.co.uk Mon Nov 22 11:08:26 2010 From: donald.kerr at dkerr.co.uk (Donald Kerr) Date: Mon, 22 Nov 2010 19:08:26 -0000 Subject: [mapserver-users] Annotation Layer Always on Top Despite Not Being Declared Last In-Reply-To: Message-ID: <5B9013C882194E02A791ED80407FA947@DELLM4500> Steve, Thanks for your advice ... obvious now that you point it out to me! The problem was that the annotation layer did not have "LABELCACHE" set so it defaulted to "ON". I have now added "LABELCACHE OFF" and the labels on that layer are drawn first before the labels and icons on the layers that are rendered after that. There is no issue with label positioning on this layer as the angle, size and anchor position of the labels are set from information in a database and therefore there is no label clashing. Many thanks. Regards, Donald -----Original Message----- From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: 22 November 2010 16:46 To: Donald Kerr; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Annotation Layer Always on Top Despite Not Being Declared Last Annotation layers basically just add labels to the label cache and labels are drawn after everything else. If you want labels drawn before other features then you can try the "LABELCACHE OFF" layer parameter. Note this by-passes any label overlap checking. You can control the order of label drawing by 1) the order of layers in the mapfile (last labels into the cache are drawn first) or 2) through the use of the label PRIORITY parameter. Typically annotation layers are defined very late in a mapfile... Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Donald Kerr Sent: Saturday, November 20, 2010 12:31 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Annotation Layer Always on Top Despite Not Being Declared Last Hi List, I have a map file made up from multiple layers one of which is an Annotation layer. I have a number of layers declared after that layer but the annotation layer always appears to show on top. I want the layers that are declared later in the map file to show on top. I can't see anything that could be causing this and would appreciated it if someone could advise. See attached image where the text "McL" part of "McLellan Galleries" shows through the label. The text from this Annotation layer also shows through png symbols declared in other layers so it is not just labels where the underlying text appears on top. Many thanks. Regards, Donald Kerr From pcreso at pcreso.com Mon Nov 22 18:32:35 2010 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Mon, 22 Nov 2010 18:32:35 -0800 (PST) Subject: [mapserver-users] WFS element datatypes are all strings - how to set as integer? In-Reply-To: Message-ID: <981724.54094.qm@web33204.mail.mud.yahoo.com> Hi, I'm looking to use mapserver to provide WFS data layers to QGIS clients. I need to display the layer using a data field to control symbology (symbol size), but QGIS can only use an integer field for this. As below, mapserver identifies all the elements as strings, which is a problem. The data source is a Postgis table, the data statement generates an integer field to use to scale the layer, but mapserver seems to cast it as a string. Is there any way to have mapserver specify a WFS integer element from a Postgis layer? Thanks, ? Brent Wood http://boi.wms.niwa.co.nz/cgi-bin/cc_scaled_spp?SERVICE=WFS&VERSION=1.0.0&REQUEST=DESCRIBEFEATURETYPE&TYPENAME=Scaled_species ? ? ??? ? ??? ? ??? ? ??? --- On Sat, 10/16/10, thomas bonfort wrote: From: thomas bonfort Subject: [mapserver-users] FW: announcing mod_geocache: an apache tiling module To: "MapserverList OSGEO" Date: Saturday, October 16, 2010, 5:35 AM Hi mapserver users, (reposting here as I messed up the mapserver-users email address, you should imagine I should know it has changed by now :) - please respond to tiling at lists.osgeo.org so as not to pollute this list) Having followed the tiling sessions at Barcelona, it seemed to me like a good idea to explore having a tiling backend directly as an apache module (i.e directly implemented in C). I have a preliminary implementation hosted at http://code.google.com/p/mod-geocache/, that currently supports WMS requests (as a client and server), metatiling and dynamic tile merging. The architecture is very much inspired by the tilecache code. the aims of the project are: * keep performance in mind at all times * simplify server deployment, not having to install and configure python/mod_python/... * support wms backends, and offer frontends for wms, wmts and tms * enable (by configuration) the proxying or rescaling of requests that cannot be directly served from cache * various image optimisations (watermarking, quantization, ...) a preliminary benchmark againt tilecache can be found here: http://code.google.com/p/mod-geocache/wiki/PreliminaryBenchmark I would be happy to discuss on the subject with any folks or organisations willing to contribute or ready to fund ongoing development. Best regards, Thomas Bonfort Terriscope EURL, Toulouse, France _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Fischer at kreis-unna.de Mon Nov 22 09:35:59 2010 From: Andreas.Fischer at kreis-unna.de (Fischer, Andreas) Date: Mon, 22 Nov 2010 18:35:59 +0100 Subject: [mapserver-users] Spatial Filter with WFS Message-ID: <34A305EE27F6F245A9D0E92FEB03640E018E622E@kum1.kreis-unna.int> Dear MapServer-User, I configured MapServer version 5.6.5 as WMS- and WFS-Server to offer information about land and properties. I use PostgreSQL/PostGIS (8.4.4/1.5.1) as datastore in this case. The spatial reference system is EPSG:25832 und the type of the geometry is MULTIPOLYGON. OS is Suse Linux Enterprise Server 11, Servicepack1. WMS and WFS work fine until I use a spatial filter within the getFeature-Request of the WFS. In this case the response doesn't deliver any features. Nevertheless the number of features (e.g. numberOf Features='4') is correct. I tried this out with a couple of different boundingboxes and the known number of features that intersect these boundigboxes. In all cases I do not get any features back, but always the right number. So it seems that at least the intersection of the boundingbox and my data works correctly. Please take a look at the following request and response that illustrate that problem: Request: http://myserver/cgi-bin/mapserv?map=/mapserver/mapfiles/u218768/ku_testwfs.map&REQUEST=getFeature&typename=folie001&SERVICE=WFS&VERSION=1.1.0& Filter= msGeometry 409350,5709890 409350,5709910 409370,5709910 409370,5709890 409350,5709890 Response -1.000000 -1.000000 -1.000000 -1.000000 Indeed of this behavior the WFS returns features when I do not use a spatial filter. Therefore in my opinion the WFS should be configured right in general. To me the spatial filter seems to be the problem. Unfortunately I do not have any ideas what is going wrong. For more information you can take a look at my MapFile and a part of the capabilities document returned from the WFS below: MAP NAME "ku_testwfs" STATUS ON SIZE 400 520 EXTENT 389965 5693582 420177 5732815 UNITS METERS PROJECTION "init=epsg:25832" END SYMBOLSET "/mapserver/symbols/symbols_alk.sym" FONTSET "/mapserver/fonts/fonts.fnt" IMAGECOLOR 255 255 255 WEB IMAGEPATH "/mapbender/mb262/http/tmp/" IMAGEURL "http://myserver/mapbender/tmp/" METADATA "ows_onlineresource" "http://myserver/cgi-bin/mapserv?map=/mapserver/mapfiles/u218768/ku_testwfs.map" "ows_title" "Liegenschaftskarte, Kreis Unna" "ows_accessconstraints" "Nutzung nur f?r den Dienstgebrauch." "ows_abstract" "Flurst?cksfolie der Liegenschaftskarte." "ows_contactperson" "Andreas Fischer" "ows_contactorganization" "Kreis Unna" "ows_contactposition" "Zentrale Datenverarbeitung, Geodatenmanagement" "wms_srs" "EPSG:25832 EPSG:31462 EPSG:31463 EPSG:31466 EPSG:31467 EPSG:4326" "wms_feature_info_mime_type" "text/html" "wfs_srs" "EPSG:25832" END #METADATA END #WEB LAYER NAME "folie001" STATUS ON TYPE POLYGON DUMP TRUE CONNECTIONTYPE postgis CONNECTION "user=dbuser password=dbpassword dbname=dbname host=dbhost port=dbport" DATA "the_geom from ku_view_folie001 USING UNIQUE objnr USING SRID=25832" METADATA "ows_title" "Flurst?cke" "wms_srs" "EPSG:25832 EPSG:31462 EPSG:31463 EPSG:31466 EPSG:31467 EPSG:4326" "wms_feature_info_mime_type" "text/html" "wfs_srs" "EPSG:25832" "wfs_extent" "389965 5693582 420177 5732815" "gml_include_items" "all" "gml_featureid" "objnr" END #METADATA CLASS NAME "Flurst?cke" STYLE OUTLINECOLOR 0 0 0 WIDTH 1 END # STYLE END # CLASS END #LAYER END #MAPFILE [...] - < FeatureTypeList> - < Operations> - folie001 Flurst?cke EPSG:25832 - - - - - (The LatLongBoundingBox in this case is obviously not in units of LatLon but represent the boundingbox in the offered SRS 25832. This seems to be strange since thes doesn' t occur in the WMS-capabilities document. In this document the LatLongBoundingBox und the BoundingBox in the source SRS are both all right.) I even tried different versions of MapServer and I discovered a slight difference with other versions. If I change my datasource from PostGIS to OGR/MapInfo Tab former versions of MapServer (5.4.2/5.2.3) provide features as well. But just in case of OGR/MapInfo Tab - not with PostGIS in use! As I have to use PostGIS I'm interested in any hints to solve this problem. Therefore I would be glad to hear from you! Thanks so far and best regards! Andreas Mit freundlichen Gr??en Im Auftrag Andreas Fischer Kreis Unna - Der Landrat Zentrale Datenverarbeitung Friedrich-Ebert-Stra?e 17 59425 Unna Fon 02 3 03 27-44 16 Fax 0 23 03 27-28 96 andreas.fischer at kreis-unna.de www.kreis-unna.de Diese E-Mail wurde beim Ausgang auf Viren geprueft. Wegen der potentiellen Gefahr auf den Uebertragungswegen wird zu einer Vireneingangskontrolle geraten. Eine Haftung f?r Virenfreiheit wird ausgeschlossen. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue Nov 23 05:26:19 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 23 Nov 2010 15:26:19 +0200 Subject: [mapserver-users] Spatial Filter with WFS In-Reply-To: <34A305EE27F6F245A9D0E92FEB03640E018E622E@kum1.kreis-unna.int> References: <34A305EE27F6F245A9D0E92FEB03640E018E622E@kum1.kreis-unna.int> Message-ID: Hi, This one may not be the only problem, but I would start by creating a valid WFS 1.1.0 request by giving a filter as gml3 or alternatively go on with using gml2 filter but changing version to WFS 1.0.0. Here below is a WFS 1.1.0 request that works against deegree. It does not necessarily work against Mapserver because it can well be that Mapserver does not support gml:Surface, even if the surface is a plain polygon as in this case. However, you see that gml3 does not use app:position 87.0 198.0 149.0 239.0 261.0 202.0 263.0 89.0 161.0 80.0 87.0 198.0 -Jukka Rahkonen- -------------------------------------------------------------------------------- L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Fischer, Andreas L?hetetty: 22. marraskuuta 2010 19:36 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Spatial Filter with WFS Dear MapServer-User, I configured MapServer version 5.6.5 as WMS- and WFS-Server to offer information about land and properties. I use PostgreSQL/PostGIS (8.4.4/1.5.1) as datastore in this case. The spatial reference system is EPSG:25832 und the type of the geometry is MULTIPOLYGON. OS is Suse Linux Enterprise Server 11, Servicepack1. WMS and WFS work fine until I use a spatial filter within the getFeature-Request of the WFS. In this case the response doesn't deliver any features. Nevertheless the number of features (e.g. numberOf Features='4') is correct. I tried this out with a couple of different boundingboxes and the known number of features that intersect these boundigboxes. In all cases I do not get any features back, but always the right number. So it seems that at least the intersection of the boundingbox and my data works correctly. Please take a look at the following request and response that illustrate that problem: Request: http://myserver/cgi-bin/mapserv?map=/mapserver/mapfiles/u218768/ku_testwfs.map&REQUEST=getFeature&typename=folie001&SERVICE=WFS&VERSION=1.1.0& Filter= msGeometry 409350,5709890 409350,5709910 409370,5709910 409370,5709890 409350,5709890 Response -1.000000 -1.000000 -1.000000 -1.000000 Indeed of this behavior the WFS returns features when I do not use a spatial filter. Therefore in my opinion the WFS should be configured right in general. To me the spatial filter seems to be the problem. Unfortunately I do not have any ideas what is going wrong. For more information you can take a look at my MapFile and a part of the capabilities document returned from the WFS below: MAP NAME "ku_testwfs" STATUS ON SIZE 400 520 EXTENT 389965 5693582 420177 5732815 UNITS METERS PROJECTION "init=epsg:25832" END SYMBOLSET "/mapserver/symbols/symbols_alk.sym" FONTSET "/mapserver/fonts/fonts.fnt" IMAGECOLOR 255 255 255 WEB IMAGEPATH "/mapbender/mb262/http/tmp/" IMAGEURL "http://myserver/mapbender/tmp/" METADATA "ows_onlineresource" "http://myserver/cgi-bin/mapserv?map=/mapserver/mapfiles/u218768/ku_testwfs.map" "ows_title" "Liegenschaftskarte, Kreis Unna" "ows_accessconstraints" "Nutzung nur f?r den Dienstgebrauch." "ows_abstract" "Flurst?cksfolie der Liegenschaftskarte." "ows_contactperson" "Andreas Fischer" "ows_contactorganization" "Kreis Unna" "ows_contactposition" "Zentrale Datenverarbeitung, Geodatenmanagement" "wms_srs" "EPSG:25832 EPSG:31462 EPSG:31463 EPSG:31466 EPSG:31467 EPSG:4326" "wms_feature_info_mime_type" "text/html" "wfs_srs" "EPSG:25832" END #METADATA END #WEB LAYER NAME "folie001" STATUS ON TYPE POLYGON DUMP TRUE CONNECTIONTYPE postgis CONNECTION "user=dbuser password=dbpassword dbname=dbname host=dbhost port=dbport" DATA "the_geom from ku_view_folie001 USING UNIQUE objnr USING SRID=25832" METADATA "ows_title" "Flurst?cke" "wms_srs" "EPSG:25832 EPSG:31462 EPSG:31463 EPSG:31466 EPSG:31467 EPSG:4326" "wms_feature_info_mime_type" "text/html" "wfs_srs" "EPSG:25832" "wfs_extent" "389965 5693582 420177 5732815" "gml_include_items" "all" "gml_featureid" "objnr" END #METADATA CLASS NAME "Flurst?cke" STYLE OUTLINECOLOR 0 0 0 WIDTH 1 END # STYLE END # CLASS END #LAYER END #MAPFILE [...] - < FeatureTypeList> - < Operations> - folie001 Flurst?cke EPSG:25832 - - - - - (The LatLongBoundingBox in this case is obviously not in units of LatLon but represent the boundingbox in the offered SRS 25832. This seems to be strange since thes doesn' t occur in the WMS-capabilities document. In this document the LatLongBoundingBox und the BoundingBox in the source SRS are both all right.) I even tried different versions of MapServer and I discovered a slight difference with other versions. If I change my datasource from PostGIS to OGR/MapInfo Tab former versions of MapServer (5.4.2/5.2.3) provide features as well. But just in case of OGR/MapInfo Tab - not with PostGIS in use! As I have to use PostGIS I'm interested in any hints to solve this problem. Therefore I would be glad to hear from you! Thanks so far and best regards! Andreas Mit freundlichen Gr??en Im Auftrag Andreas Fischer Kreis Unna - Der Landrat Zentrale Datenverarbeitung Friedrich-Ebert-Stra?e 17 59425 Unna Fon 02 3 03 27-44 16 Fax 0 23 03 27-28 96 andreas.fischer at kreis-unna.de www.kreis-unna.de Diese E-Mail wurde beim Ausgang auf Viren geprueft. Wegen der potentiellen Gefahr auf den Uebertragungswegen wird zu einer Vireneingangskontrolle geraten. Eine Haftung f?r Virenfreiheitwird ausgeschlossen. -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Tue Nov 23 05:42:46 2010 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 23 Nov 2010 08:42:46 -0500 Subject: [mapserver-users] Spatial Filter with WFS In-Reply-To: References: <34A305EE27F6F245A9D0E92FEB03640E018E622E@kum1.kreis-unna.int> Message-ID: <4CEBC4D6.9050806@dmsolutions.ca> Hi all, As noted MapServer does not support gml:Surface. The original request with gml:Polygon seems to be correct. Andreas, is it possible to package it and send it to me off list. I can quickly check what the issue is. regards, as noted Mapserver does not support gml:Surface. On 23/11/2010 8:26 AM, Rahkonen Jukka wrote: > Hi, > > This one may not be the only problem, but I would start by creating a > valid WFS 1.1.0 request by giving a filter as gml3 or alternatively go > on with using gml2 filter but changing version to WFS 1.0.0. Here > below is a WFS 1.1.0 request that works against deegree. It does not > necessarily work against Mapserver because it can well be that > Mapserver does not support gml:Surface, even if the surface is a plain > polygon as in this case. However, you see that gml3 does not use > or Mapserver bug or both if your request works. > > > xmlns:gml="http://www.opengis.net/gml" > xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0" > maxFeatures="1000" outputFormat="text/xml; subtype=gml/3.1.1"> > typeName="app:Counties"> > > > > app:position > > > > > > > 87.0 198.0 149.0 239.0 261.0 202.0 263.0 89.0 161.0 80.0 87.0 > 198.0 > > > > > > > > > > -Jukka Rahkonen- > -------------------------------------------------------------------------------- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Fischer, Andreas > L?hetetty: 22. marraskuuta 2010 19:36 > Vastaanottaja: mapserver-users at lists.osgeo.org > > Aihe: [mapserver-users] Spatial Filter with WFS > > Dear MapServer-User, > I configured MapServer version 5.6.5 as WMS- and WFS-Server to offer > information about land and properties. I use PostgreSQL/PostGIS > (8.4.4/1.5.1) as datastore in this case. The spatial reference system > is EPSG:25832 und the type of the geometry is MULTIPOLYGON. OS is Suse > Linux Enterprise Server 11, Servicepack1. > > WMS and WFS work fine until I use a spatial filter within the > getFeature-Request of the WFS. In this case the response doesn't > deliver any features. Nevertheless the number of features (e.g. > numberOf Features='4') is correct. I tried this out with a couple of > different boundingboxes and the known number of features that > intersect these boundigboxes. In all cases I do not get any features > back, but always the right number. So it seems that at least the > intersection of the boundingbox and my data works correctly. > Please take a look at the following request and response that > illustrate that problem: > Request: > http://myserver/cgi-bin/mapserv?map=/mapserver/mapfiles/u218768/ku_testwfs.map&REQUEST=getFeature&typename=folie001&SERVICE=WFS&VERSION=1.1.0 > & > Filter= > > msGeometry > > > > 409350,5709890 409350,5709910 409370,5709910 > 409370,5709890 409350,5709890 > > > > > > > Response > > > xmlns:ms="http://mapserver.gis.umn.edu/mapserver" > xmlns:gml="http://www.opengis.net/gml" > xmlns:wfs=http://www.opengis.net/wfs > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://mapserver.gis.umn.edu/mapserver > http://myserver/cgi-bin/mapserv?map=/mapserver/mapfiles/u218768/ku_testwfs.map&SERVICE=WFS&VERSION=1.1.0&REQUEST=DescribeFeatureType&TYPENAME=folie001&OUTPUTFORMAT=text/xml > ; > subtype=gml/3.1.1 http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" numberOfFeatures="4"> > > > -1.000000 -1.000000 > -1.000000 -1.000000 > > > > Indeed of this behavior the WFS returns features when I do not use a > spatial filter. Therefore in my opinion the WFS should be configured > right in general. To me the spatial filter seems to be the problem. > Unfortunately I do not have any ideas what is going wrong. > > For more information you can take a look at my MapFile and a part of > the capabilities document returned from the WFS below: > > MAP > NAME "ku_testwfs" > STATUS ON > SIZE 400 520 > EXTENT 389965 5693582 420177 5732815 > UNITS METERS > PROJECTION > "init=epsg:25832" > END > SYMBOLSET "/mapserver/symbols/symbols_alk.sym" > FONTSET "/mapserver/fonts/fonts.fnt" > IMAGECOLOR 255 255 255 > WEB > IMAGEPATH "/mapbender/mb262/http/tmp/" > IMAGEURL "http://myserver/mapbender/tmp/" > METADATA > "ows_onlineresource" > "http://myserver/cgi-bin/mapserv?map=/mapserver/mapfiles/u218768/ku_testwfs.map" > "ows_title" "Liegenschaftskarte, Kreis Unna" > "ows_accessconstraints" "Nutzung nur f?r den > Dienstgebrauch." > "ows_abstract" "Flurst?cksfolie der > Liegenschaftskarte." > "ows_contactperson" "Andreas Fischer" > "ows_contactorganization" "Kreis Unna" > "ows_contactposition" "Zentrale > Datenverarbeitung, Geodatenmanagement" > "wms_srs" "EPSG:25832 EPSG:31462 EPSG:31463 > EPSG:31466 EPSG:31467 EPSG:4326" > "wms_feature_info_mime_type" "text/html" > "wfs_srs" "EPSG:25832" > END #METADATA > END #WEB > LAYER > NAME "folie001" > STATUS ON > TYPE POLYGON > DUMP TRUE > CONNECTIONTYPE postgis > CONNECTION "user=dbuser password=dbpassword > dbname=dbname host=dbhost port=dbport" > DATA "the_geom from ku_view_folie001 USING UNIQUE > objnr USING SRID=25832" > METADATA > "ows_title" "Flurst?cke" > "wms_srs" "EPSG:25832 EPSG:31462 EPSG:31463 > EPSG:31466 EPSG:31467 EPSG:4326" > "wms_feature_info_mime_type" "text/html" > "wfs_srs" "EPSG:25832" > "wfs_extent" "389965 5693582 420177 5732815" > "gml_include_items" "all" > "gml_featureid" "objnr" > END #METADATA > CLASS > NAME "Flurst?cke" > STYLE > OUTLINECOLOR 0 0 0 > WIDTH 1 > END # STYLE > END # CLASS > END #LAYER > END #MAPFILE > [...] > - < FeatureTypeList> > - < Operations> > > > - > folie001 > Flurst?cke > EPSG:25832 > maxy="5.73282e+06" /> > > > - > - > - > > > > > > > > > > > > > - > > - > > > > > > > > > (The LatLongBoundingBox in this case is obviously not in units of > LatLon but represent the boundingbox in the offered SRS 25832. This > seems to be strange since thes doesn' t occur in the WMS-capabilities > document. In this document the LatLongBoundingBox und the BoundingBox > in the source SRS are both all right.) > I even tried different versions of MapServer and I discovered a slight > difference with other versions. If I change my datasource from PostGIS > to OGR/MapInfo Tab former versions of MapServer (5.4.2/5.2.3) provide > features as well. But just in case of OGR/MapInfo Tab -- not with > PostGIS in use! As I have to use PostGIS I'm interested in any hints > to solve this problem. > Therefore I would be glad to hear from you! > > Thanks so far and best regards! > Andreas > > Mit freundlichen Gr??en > Im Auftrag > Andreas Fischer > Kreis Unna - Der Landrat > Zentrale Datenverarbeitung > Friedrich-Ebert-Stra?e 17 > 59425 Unna > Fon 02 3 03 27-44 16 > Fax 0 23 03 27-28 96 > andreas.fischer at kreis-unna.de > www.kreis-unna.de > > Diese E-Mail wurde beim Ausgang auf Viren geprueft. Wegen der > potentiellen Gefahr auf den Uebertragungswegen wird zu einer > Vireneingangskontrolle geraten. Eine Haftung f?r Virenfreiheitwird > ausgeschlossen. > > > _______________________________________________ > 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 Nov 23 06:00:34 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 23 Nov 2010 16:00:34 +0200 Subject: [mapserver-users] Spatial Filter with WFS In-Reply-To: <4CEBC4D6.9050806@dmsolutions.ca> References: <34A305EE27F6F245A9D0E92FEB03640E018E622E@kum1.kreis-unna.int> <4CEBC4D6.9050806@dmsolutions.ca> Message-ID: Hi, Andreas, you may be without a wsf:Query element. Here is a WFS 1.0.0 request that works with Geoserver. topp:the_geom 409350.0,5709890.0 409350.0,5709910.0 409370.0,5709910.0 409370.0,5709890.0 409350.0,5709890.0 Y.A, a question for you: I have thought that also the filters should be presented as gml3 with WFS 1.1.0 and thus posList should be used instead of coordinates. Am I wrong with this belief? By the way, this is how Geoserver 2.1 beta 1 writes out on multipolygon as gml3 37.51099000000001 -88.071564 37.476273000000006 -88.087883 37.442852 -88.311707 37.40930899999999 -88.359177 -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Yewondwossen Assefa L?hetetty: 23. marraskuuta 2010 15:43 Vastaanottaja: Rahkonen Jukka; Fischer, Andreas Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Spatial Filter with WFS Hi all, As noted MapServer does not support gml:Surface. The original request with gml:Polygon seems to be correct. Andreas, is it possible to package it and send it to me off list. I can quickly check what the issue is. regards, as noted Mapserver does not support gml:Surface. On 23/11/2010 8:26 AM, Rahkonen Jukka wrote: Hi, This one may not be the only problem, but I would start by creating a valid WFS 1.1.0 request by giving a filter as gml3 or alternatively go on with using gml2 filter but changing version to WFS 1.0.0. Here below is a WFS 1.1.0 request that works against deegree. It does not necessarily work against Mapserver because it can well be that Mapserver does not support gml:Surface, even if the surface is a plain polygon as in this case. However, you see that gml3 does not use app:position 87.0 198.0 149.0 239.0 261.0 202.0 263.0 89.0 161.0 80.0 87.0 198.0 -Jukka Rahkonen- -------------------------------------------------------------------------------- L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Fischer, Andreas L?hetetty: 22. marraskuuta 2010 19:36 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Spatial Filter with WFS Dear MapServer-User, I configured MapServer version 5.6.5 as WMS- and WFS-Server to offer information about land and properties. I use PostgreSQL/PostGIS (8.4.4/1.5.1) as datastore in this case. The spatial reference system is EPSG:25832 und the type of the geometry is MULTIPOLYGON. OS is Suse Linux Enterprise Server 11, Servicepack1. WMS and WFS work fine until I use a spatial filter within the getFeature-Request of the WFS. In this case the response doesn't deliver any features. Nevertheless the number of features (e.g. numberOf Features='4') is correct. I tried this out with a couple of different boundingboxes and the known number of features that intersect these boundigboxes. In all cases I do not get any features back, but always the right number. So it seems that at least the intersection of the boundingbox and my data works correctly. Please take a look at the following request and response that illustrate that problem: Request: http://myserver/cgi-bin/mapserv?map=/mapserver/mapfiles/u218768/ku_testwfs.map&REQUEST=getFeature&typename=folie001&SERVICE=WFS&VERSION=1.1.0& Filter= msGeometry 409350,5709890 409350,5709910 409370,5709910 409370,5709890 409350,5709890 Response -1.000000 -1.000000 -1.000000 -1.000000 Indeed of this behavior the WFS returns features when I do not use a spatial filter. Therefore in my opinion the WFS should be configured right in general. To me the spatial filter seems to be the problem. Unfortunately I do not have any ideas what is going wrong. For more information you can take a look at my MapFile and a part of the capabilities document returned from the WFS below: MAP NAME "ku_testwfs" STATUS ON SIZE 400 520 EXTENT 389965 5693582 420177 5732815 UNITS METERS PROJECTION "init=epsg:25832" END SYMBOLSET "/mapserver/symbols/symbols_alk.sym" FONTSET "/mapserver/fonts/fonts.fnt" IMAGECOLOR 255 255 255 WEB IMAGEPATH "/mapbender/mb262/http/tmp/" IMAGEURL "http://myserver/mapbender/tmp/" METADATA "ows_onlineresource" "http://myserver/cgi-bin/mapserv?map=/mapserver/mapfiles/u218768/ku_testwfs.map" "ows_title" "Liegenschaftskarte, Kreis Unna" "ows_accessconstraints" "Nutzung nur f?r den Dienstgebrauch." "ows_abstract" "Flurst?cksfolie der Liegenschaftskarte." "ows_contactperson" "Andreas Fischer" "ows_contactorganization" "Kreis Unna" "ows_contactposition" "Zentrale Datenverarbeitung, Geodatenmanagement" "wms_srs" "EPSG:25832 EPSG:31462 EPSG:31463 EPSG:31466 EPSG:31467 EPSG:4326" "wms_feature_info_mime_type" "text/html" "wfs_srs" "EPSG:25832" END #METADATA END #WEB LAYER NAME "folie001" STATUS ON TYPE POLYGON DUMP TRUE CONNECTIONTYPE postgis CONNECTION "user=dbuser password=dbpassword dbname=dbname host=dbhost port=dbport" DATA "the_geom from ku_view_folie001 USING UNIQUE objnr USING SRID=25832" METADATA "ows_title" "Flurst?cke" "wms_srs" "EPSG:25832 EPSG:31462 EPSG:31463 EPSG:31466 EPSG:31467 EPSG:4326" "wms_feature_info_mime_type" "text/html" "wfs_srs" "EPSG:25832" "wfs_extent" "389965 5693582 420177 5732815" "gml_include_items" "all" "gml_featureid" "objnr" END #METADATA CLASS NAME "Flurst?cke" STYLE OUTLINECOLOR 0 0 0 WIDTH 1 END # STYLE END # CLASS END #LAYER END #MAPFILE [...] - < FeatureTypeList> - < Operations> - folie001 Flurst?cke EPSG:25832 - - - - - (The LatLongBoundingBox in this case is obviously not in units of LatLon but represent the boundingbox in the offered SRS 25832. This seems to be strange since thes doesn' t occur in the WMS-capabilities document. In this document the LatLongBoundingBox und the BoundingBox in the source SRS are both all right.) I even tried different versions of MapServer and I discovered a slight difference with other versions. If I change my datasource from PostGIS to OGR/MapInfo Tab former versions of MapServer (5.4.2/5.2.3) provide features as well. But just in case of OGR/MapInfo Tab - not with PostGIS in use! As I have to use PostGIS I'm interested in any hints to solve this problem. Therefore I would be glad to hear from you! Thanks so far and best regards! Andreas Mit freundlichen Gr??en Im Auftrag Andreas Fischer Kreis Unna - Der Landrat Zentrale Datenverarbeitung Friedrich-Ebert-Stra?e 17 59425 Unna Fon 02 3 03 27-44 16 Fax 0 23 03 27-28 96 andreas.fischer at kreis-unna.de www.kreis-unna.de Diese E-Mail wurde beim Ausgang auf Viren geprueft. Wegen der potentiellen Gefahr auf den Uebertragungswegen wird zu einer Vireneingangskontrolle geraten. Eine Haftung f?r Virenfreiheitwird ausgeschlossen. _______________________________________________ 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 geomartino at gmail.com Tue Nov 23 06:15:12 2010 From: geomartino at gmail.com (Martin Ouellet) Date: Tue, 23 Nov 2010 09:15:12 -0500 Subject: [mapserver-users] SLD and OUTPUTFORMAT compatibility? Message-ID: Hi all, I have 2 two differents settings for symbolize my lines (refer to SLD settings below): 1) a dashed line which is working *only when I specify the outputformat: *DRIVER "*GD*/PNG" **Note that with the driver GD/PNG, the external graphic below is not working but the symbol (ico-ulaval-flag.gif) is copied locally in the /ms_tmp directory. It seem to be ignored by mapserver (but raising no error)... 2) a external graphic which is working *only when I specify the outputformat: *DRIVER "*AGG*/PNG" Q: Is there a way/config to support both at the same time? any advice? Thanks you in advance! MartinOuellet SLD settings: ______________________________________________________________________________________ [resultset layer="testy"] [feature] [shpext expand="20%"] [/feature] [/resultset] (Note that in 5.6 you can set a few attributes in most extent-related tags to project and expand the output. This is very handy when getting extents to create other maps so you leave some space around a feature.) 3) and finally a URL... http://.../cgi-bin/mapserv?map=your.map&mode=itemquery&qitem=parcel_id&qstring=12345678&qlayer=testy&qformat=bbox You could create templates more conducive to use with AJAX, perhaps JSON or XML. You have lots of control... Steve ________________________________________ From: David Hildebrand [David.Hildebrand at afsc.ca] Sent: Tuesday, November 23, 2010 5:58 PM To: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: querying to getting bounding box coordinates I wanted to retain WMS compatibility but the WMS protocol does not seem to support attribute queries. I know I can use GetFeatureInfo to get attributes including the bounding box of the feature because these are CGI variables. However, GetFeatureInfo uses a spatial query (an image point). If I use MapServer's mode=itemquery what would be the URL syntax and the requirements on the server side? Would I be able to specify or determine the projection? Thanks for your help. =========================== 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 Lime, Steve D (DNR) Sent: Tuesday, November 23, 2010 3:52 PM To: David Hildebrand; mapserver-users at lists.osgeo.org Subject: [mapserver-users] RE: querying to getting bounding box coordinates Are you limited to WMS/WFS or can you use stock MapServer queries? Passing in a parcel id and returning it's bounding box is trivial using mode=itemquery and a template. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of David Hildebrand Sent: Tuesday, November 23, 2010 2:49 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] querying to getting bounding box coordinates I am running a WMS service with Mapserver in a Windows environment. I want to be able to run a non-spatial query on a parcel layer to return the bounding box (in re-projected coordinates) for a particular parcel. The bounding box and projection will then be used in a WMS query to return a map image. I've never coded server-side functionality with Mapserver so any suggestions would be welcome. Thanks to all. =========================== 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. _______________________________________________ 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 Nov 24 05:04:28 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 24 Nov 2010 15:04:28 +0200 Subject: [mapserver-users] What to do with WMS 1.3.0 and axis order of EPSG:2393? Message-ID: Hi, The Finnish KKJ projection EPSG:2393 belongs to those with axis order Northing-Easting http://www.epsg-registry.org/report.htm?type=selection&entity=urn:ogc:de f:crs:EPSG::2393&reportDetail=short&style=urn:uuid:report-style:default- with-code&style_name=OGP%20Default%20With%20Code&title=EPSG:2393 However, Mapserver WMS 1.3.0 from MS version 5.6.5 does not honour the official axis order but it is assuming the Easting-Northing BBOX also with WMS 1.3.0. Any suggestions about how to solve this? In addition to the two I have, to stay with WMS 1.1.1 or to start using UTM projection with a real Easting-Northing axis order. Problem is not only with Mapserver, GDAL based clients like QGis are creating WMS 1.3.0 request with Easting-Northing BBOX for EPSG:2393. Good is that QGIS and Mapserver play nicely together with WMS 1.3.0. Bad is that it is not a fair play because they both are fooling with the rules. I was wondering if this could be handled somehow in a similar way than Geoserver and deegree are doing it. They are following the traditional Easting-Northing axis order if CRS is given as EPSG:2393. But if CRS is given as urn:ogc:def:crs:EPSG::2393 they are using the axis order that is defined in the EPSG database. This is a little bit fiddling with the standard, but the urn-format is the official one and the alternative short format gives better possibilities for success for the end user of ready made WMS/WFS clients. -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Wed Nov 24 05:58:05 2010 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 24 Nov 2010 08:58:05 -0500 Subject: [mapserver-users] What to do with WMS 1.3.0 and axis order of EPSG:2393? In-Reply-To: References: Message-ID: <4CED19ED.5030709@dmsolutions.ca> Hi Jukka, Issues that you raise here are discussed in the following bugs (as a reference): http://trac.osgeo.org/mapserver/ticket/3582 http://trac.osgeo.org/mapserver/ticket/3576 I think the idea of using ogr/gdal to reliably get the axis order is for may the best option. In that case when we use wms1.3.0 and up, wfs 1.1 and up we always know that the axis order are the same regardless of the format in which the epsg is given. regards, On 24/11/2010 8:04 AM, Rahkonen Jukka wrote: > Hi, > The Finnish KKJ projection EPSG:2393 belongs to those with axis order > Northing-Easting > http://www.epsg-registry.org/report.htm?type=selection&entity=urn:ogc:def:crs:EPSG::2393&reportDetail=short&style=urn:uuid:report-style:default-with-code&style_name=OGP%20Default%20With%20Code&title=EPSG:2393 > > However, Mapserver WMS 1.3.0 from MS version 5.6.5 does not honour the > official axis order but it is assuming the Easting-Northing BBOX also > with WMS 1.3.0. Any suggestions about how to solve this? In addition > to the two I have, to stay with WMS 1.1.1 or to start using UTM > projection with a real Easting-Northing axis order. > Problem is not only with Mapserver, GDAL based clients like QGis are > creating WMS 1.3.0 request with Easting-Northing BBOX for EPSG:2393. > Good is that QGIS and Mapserver play nicely together with WMS 1.3.0. > Bad is that it is not a fair play because they both are fooling with > the rules. > I was wondering if this could be handled somehow in a similar way than > Geoserver and deegree are doing it. They are following the > traditional Easting-Northing axis order if CRS is given as EPSG:2393. > But if CRS is given as > urn:ogc:def:crs:EPSG::2393 they are using the axis order that is > defined in the EPSG database. This is a little bit fiddling with the > standard, but the urn-format is the official one and the alternative > short format gives better possibilities for success for the end user > of ready made WMS/WFS clients. > -Jukka Rahkonen- > > > _______________________________________________ > 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 alexandre.saunier at camptocamp.com Wed Nov 24 07:26:44 2010 From: alexandre.saunier at camptocamp.com (Alexandre Saunier) Date: Wed, 24 Nov 2010 16:26:44 +0100 Subject: [mapserver-users] Memory allocation error In-Reply-To: References: Message-ID: Hello, when trying to generate a map via WMS, MapServer returns the following error above some width/height: msDrawMap(): Image handling error. Failed to draw layer named 'csraster_50k_192'. msDrawRasterLayerGDAL(): Memory allocation error. Allocating work image of size 1093x930x3 failed. It looks like a memory problem but the requested map size is not so huge. csraster_50k_192 data are composed of about 50 1-to-4MB ECW tiles. MapServer version is 5.6.5. GDAL version is 1.7.2. OS is Debian Lenny. Has anyone a hint about what may cause the problem? Is there some memory setting that could be increased? Thanks for your help! Alexandre From Jukka.Rahkonen at mmmtike.fi Wed Nov 24 08:12:06 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 24 Nov 2010 18:12:06 +0200 Subject: [mapserver-users] What to do with WMS 1.3.0 and axis order of EPSG:2393? References: <4CED19ED.5030709@dmsolutions.ca> Message-ID: Hi, Thank you for the information. The situation now is that ArcMap as a WMS client is making valid 1.3.0 GetMap EPSG:2393 requests but Mapserver gives wrong response. Nice to know that the correction is planned already to 5.6.6. release. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: Yewondwossen Assefa [mailto:yassefa at dmsolutions.ca] L?hetetty: ke 24.11.2010 15:58 Vastaanottaja: Rahkonen Jukka Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] What to do with WMS 1.3.0 and axis order of EPSG:2393? Hi Jukka, Issues that you raise here are discussed in the following bugs (as a reference): http://trac.osgeo.org/mapserver/ticket/3582 http://trac.osgeo.org/mapserver/ticket/3576 I think the idea of using ogr/gdal to reliably get the axis order is for may the best option. In that case when we use wms1.3.0 and up, wfs 1.1 and up we always know that the axis order are the same regardless of the format in which the epsg is given. regards, On 24/11/2010 8:04 AM, Rahkonen Jukka wrote: > Hi, > The Finnish KKJ projection EPSG:2393 belongs to those with axis order > Northing-Easting > http://www.epsg-registry.org/report.htm?type=selection&entity=urn:ogc:def:crs:EPSG::2393&reportDetail=short&style=urn:uuid:report-style:default-with-code&style_name=OGP%20Default%20With%20Code&title=EPSG:2393 > > However, Mapserver WMS 1.3.0 from MS version 5.6.5 does not honour the > official axis order but it is assuming the Easting-Northing BBOX also > with WMS 1.3.0. Any suggestions about how to solve this? In addition > to the two I have, to stay with WMS 1.1.1 or to start using UTM > projection with a real Easting-Northing axis order. > Problem is not only with Mapserver, GDAL based clients like QGis are > creating WMS 1.3.0 request with Easting-Northing BBOX for EPSG:2393. > Good is that QGIS and Mapserver play nicely together with WMS 1.3.0. > Bad is that it is not a fair play because they both are fooling with > the rules. > I was wondering if this could be handled somehow in a similar way than > Geoserver and deegree are doing it. They are following the > traditional Easting-Northing axis order if CRS is given as EPSG:2393. > But if CRS is given as > urn:ogc:def:crs:EPSG::2393 they are using the axis order that is > defined in the EPSG database. This is a little bit fiddling with the > standard, but the urn-format is the official one and the alternative > short format gives better possibilities for success for the end user > of ready made WMS/WFS clients. > -Jukka Rahkonen- > > > _______________________________________________ > 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 David.Hildebrand at afsc.ca Wed Nov 24 08:48:31 2010 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Wed, 24 Nov 2010 09:48:31 -0700 Subject: [mapserver-users] querying to getting bounding box coordinates References: <34A305EE27F6F245A9D0E92FEB03640E018E622E@kum1.kreis-unna.int><4CEBC4D6.9050806@dmsolutions.ca><34A305EE27F6F245A9D0E92FEB03640E018E6235@kum1.kreis-unna.int><9188AB5935664040805E01E348A2B81D1BF69021@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF69022@lacex1.afsc.ads> Message-ID: <9188AB5935664040805E01E348A2B81D1BF69025@lacex1.afsc.ads> Thanks for the tip, Jukka. I, too, know very little about mapscript and the documentation is sparse in terms of learning it. I'm curious about WFS queries on a WMS instance. I believe I have my mapfile set up correctly because the layer in question comes up as ows_type="WFS" when I do a WMS DescribeLayer. What else do I need? Will WFS calls work with a WMS instance? 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: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: Tuesday, November 23, 2010 3:12 PM To: David Hildebrand Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] querying to getting bounding box coordinates Hi, Yes, they are WFS queries but you can send them to the same Mapserver service if you configure the mapfile properly. If you do not want to use WFS then I suppose you can do whatever you want with mapscript but that is something I do not know anything about. With some imagination it could be possible to do queries and get vectors out from WMS service and search the bounding box on client side (by using attribute filters inside SLD, or variable substitution inside DATA or FILTER, and by having KML as outputformat). Does not feel like a right way to do even it might be fun to experiment with. I suggest to read about mapscript http://mapserver.org/mapscript/index.html -Jukka- -----Alkuper?inen viesti----- L?hett?j?: David Hildebrand [mailto:David.Hildebrand at afsc.ca] L?hetetty: ti 23.11.2010 23:31 Vastaanottaja: Rahkonen Jukka Kopio: mapserver-users at lists.osgeo.org Aihe: RE: [mapserver-users] querying to getting bounding box coordinates Jukka: The examples you used were WFS queries. I wasn't aware that WMS queries also supported filters? =========================== 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 Rahkonen Jukka Sent: Tuesday, November 23, 2010 2:12 PM To: David Hildebrand; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] querying to getting bounding box coordinates Hi, One alternative is to make first a WFS request with attribute filter for finding the feature and let the client to catch the bounding box from the result. These examples should work, first is Geoserver and another Mapserver. The latter is pointing to a point layer and therefore I queried two features for getting a reasonable bounding box. http://sigma.openplans.org:8080/geoserver/wfs?service=wfs&version=1.1.0&request=getfeature&typename=states&maxfeatures=1 http://188.64.1.61/cgi-bin/osm-mapserver_i?service=wfs&version=1.1.0&request=getfeature&typename=POI_pub_restaurant&maxfeatures=2 These are just crude examples without the property filter. Queries can be build also so that they do not return attributes. I hope you'll see the idea and think if it could make sense for your use case. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: David Hildebrand L?hetetty: ti 23.11.2010 22:48 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] querying to getting bounding box coordinates I am running a WMS service with Mapserver in a Windows environment. I want to be able to run a non-spatial query on a parcel layer to return the bounding box (in re-projected coordinates) for a particular parcel. The bounding box and projection will then be used in a WMS query to return a map image. I've never coded server-side functionality with Mapserver so any suggestions would be welcome. Thanks to all. =========================== 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. _______________________________________________ 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 joanne.mcgraw at SYMPATICO.CA Wed Nov 24 09:04:18 2010 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Wed, 24 Nov 2010 09:04:18 -0800 (PST) Subject: [mapserver-users] Changing map file parameter (Label Color) via URL Message-ID: <1290618258281-5771138.post@n2.nabble.com> Hello, Can someone help me out with the proper syntax for the following? Or, tell me outright that it is not possible? I've been trying to apply the documentation found on the MapServer CGI Controls page (http://www.mapserver.org/cgi/controls.html#changing-map-file-parameters-via-a-form-or-a-url) under the "Changing map file parameters via a form or a URL" section but have not had any luck applying it to change the colour of the label text. I have a basic URL in which I pass the coordinates for a point and provide the label text as follows: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/wms/dynamicWms/map/dynamicWms.map&map.layer[resultlabel]=FEATURE POINTS -749340.32786036 180081.55026124 END TEXT 'Fence 1' END&LAYERS=resultlabel&FORMAT=image/png&SRS=EPSG:42304&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&BBOX=-910537.6366469,102726.53880899,-587878.43588336,261873.32786947&WIDTH=1219&HEIGHT=601 I would further like to set the colour of the point symbol and its label text within the URL. At this point, I am able to set the point symbol's colour by adding "&map.layer[resultlabel].class[0]=COLOR 255 0 0"; but I can't seem to change the label text's colour. It is always black. I've tried adding "&map.layer[resultlabel].class[0].label[0]=COLOR 255 0 0" and "&map.layer[resultlabel].class[0].label=COLOR 255 0 0" to no avail. If it matters, my map layer is defined as follows: LAYER NAME "resultlabel" STATUS ON TYPE point PROJECTION "init=epsg:42304" END METADATA "wms_title" "Result Label" END CLASS SYMBOL "thickcrosshair" SIZE 9 COLOR 0 0 0 LABEL TYPE truetype FONT arial-bold SIZE 10 COLOR 0 0 0 OUTLINECOLOR 255 255 255 POSITION ur FORCE ON END END END Does anyone know if this is this just a syntax problem that I am having or if changing the label text's colour is just not supported? Cheers, jtm -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Changing-map-file-parameter-Label-Color-via-URL-tp5771138p5771138.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at state.mn.us Wed Nov 24 10:25:49 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Wed, 24 Nov 2010 12:25:49 -0600 Subject: [mapserver-users] Changing map file parameter (Label Color) via URL In-Reply-To: <1290618258281-5771138.post@n2.nabble.com> References: <1290618258281-5771138.post@n2.nabble.com> Message-ID: Try map.layer[resultlabel].class[0]=LABEL+COLOR+255+0+0+END instead... -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of myOpenLayersUName Sent: Wednesday, November 24, 2010 11:04 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Changing map file parameter (Label Color) via URL Hello, Can someone help me out with the proper syntax for the following? Or, tell me outright that it is not possible? I've been trying to apply the documentation found on the MapServer CGI Controls page (http://www.mapserver.org/cgi/controls.html#changing-map-file-parameters-via-a-form-or-a-url) under the "Changing map file parameters via a form or a URL" section but have not had any luck applying it to change the colour of the label text. I have a basic URL in which I pass the coordinates for a point and provide the label text as follows: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/wms/dynamicWms/map/dynamicWms.map&map.layer[resultlabel]=FEATURE POINTS -749340.32786036 180081.55026124 END TEXT 'Fence 1' END&LAYERS=resultlabel&FORMAT=image/png&SRS=EPSG:42304&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&BBOX=-910537.6366469,102726.53880899,-587878.43588336,261873.32786947&WIDTH=1219&HEIGHT=601 I would further like to set the colour of the point symbol and its label text within the URL. At this point, I am able to set the point symbol's colour by adding "&map.layer[resultlabel].class[0]=COLOR 255 0 0"; but I can't seem to change the label text's colour. It is always black. I've tried adding "&map.layer[resultlabel].class[0].label[0]=COLOR 255 0 0" and "&map.layer[resultlabel].class[0].label=COLOR 255 0 0" to no avail. If it matters, my map layer is defined as follows: LAYER NAME "resultlabel" STATUS ON TYPE point PROJECTION "init=epsg:42304" END METADATA "wms_title" "Result Label" END CLASS SYMBOL "thickcrosshair" SIZE 9 COLOR 0 0 0 LABEL TYPE truetype FONT arial-bold SIZE 10 COLOR 0 0 0 OUTLINECOLOR 255 255 255 POSITION ur FORCE ON END END END Does anyone know if this is this just a syntax problem that I am having or if changing the label text's colour is just not supported? Cheers, jtm -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Changing-map-file-parameter-Label-Color-via-URL-tp5771138p5771138.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From joanne.mcgraw at SYMPATICO.CA Wed Nov 24 10:45:39 2010 From: joanne.mcgraw at SYMPATICO.CA (myOpenLayersUName) Date: Wed, 24 Nov 2010 10:45:39 -0800 (PST) Subject: [mapserver-users] RE: Changing map file parameter (Label Color) via URL In-Reply-To: References: <1290618258281-5771138.post@n2.nabble.com> Message-ID: <1290624339860-5771578.post@n2.nabble.com> Steve, Thank you for your response. I have tried your suggestion and while it does indeed change the colour of the label text, it seems to also change the size of the label font used...to the point that it can barely be read (I think it's setting it to a font size of 1). Any idea why that might be happening? If not, no worries. It's not really an issue. Given your help with the syntax, I am able to get around it by including the SIZE parameter for the font as well (such as, &map.layer[resultlabel].class[0]=LABEL COLOR 0 0 255 SIZE 10 END). Thanks again, jtm -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Changing-map-file-parameter-Label-Color-via-URL-tp5771138p5771578.html Sent from the Mapserver - User mailing list archive at Nabble.com. From David.Hildebrand at afsc.ca Wed Nov 24 11:14:03 2010 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Wed, 24 Nov 2010 12:14:03 -0700 Subject: [mapserver-users] querying to getting bounding box coordinates References: <34A305EE27F6F245A9D0E92FEB03640E018E622E@kum1.kreis-unna.int><4CEBC4D6.9050806@dmsolutions.ca><34A305EE27F6F245A9D0E92FEB03640E018E6235@kum1.kreis-unna.int><9188AB5935664040805E01E348A2B81D1BF69021@lacex1.afsc.ads><9188AB5935664040805E01E348A2B81D1BF69022@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF69025@lacex1.afsc.ads> Message-ID: <9188AB5935664040805E01E348A2B81D1BF69029@lacex1.afsc.ads> Jukka: I have my MapServer mapfile configured for a WFS service and I can perform GetCapabilities and GetFeature queries. Is there a URL syntax to specify filter criteria? 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 David Hildebrand Sent: Wednesday, November 24, 2010 9:49 AM To: Rahkonen Jukka Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] querying to getting bounding box coordinates Thanks for the tip, Jukka. I, too, know very little about mapscript and the documentation is sparse in terms of learning it. I'm curious about WFS queries on a WMS instance. I believe I have my mapfile set up correctly because the layer in question comes up as ows_type="WFS" when I do a WMS DescribeLayer. What else do I need? Will WFS calls work with a WMS instance? 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: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: Tuesday, November 23, 2010 3:12 PM To: David Hildebrand Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] querying to getting bounding box coordinates Hi, Yes, they are WFS queries but you can send them to the same Mapserver service if you configure the mapfile properly. If you do not want to use WFS then I suppose you can do whatever you want with mapscript but that is something I do not know anything about. With some imagination it could be possible to do queries and get vectors out from WMS service and search the bounding box on client side (by using attribute filters inside SLD, or variable substitution inside DATA or FILTER, and by having KML as outputformat). Does not feel like a right way to do even it might be fun to experiment with. I suggest to read about mapscript http://mapserver.org/mapscript/index.html -Jukka- -----Alkuper?inen viesti----- L?hett?j?: David Hildebrand [mailto:David.Hildebrand at afsc.ca] L?hetetty: ti 23.11.2010 23:31 Vastaanottaja: Rahkonen Jukka Kopio: mapserver-users at lists.osgeo.org Aihe: RE: [mapserver-users] querying to getting bounding box coordinates Jukka: The examples you used were WFS queries. I wasn't aware that WMS queries also supported filters? =========================== 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 Rahkonen Jukka Sent: Tuesday, November 23, 2010 2:12 PM To: David Hildebrand; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] querying to getting bounding box coordinates Hi, One alternative is to make first a WFS request with attribute filter for finding the feature and let the client to catch the bounding box from the result. These examples should work, first is Geoserver and another Mapserver. The latter is pointing to a point layer and therefore I queried two features for getting a reasonable bounding box. http://sigma.openplans.org:8080/geoserver/wfs?service=wfs&version=1.1.0&request=getfeature&typename=states&maxfeatures=1 http://188.64.1.61/cgi-bin/osm-mapserver_i?service=wfs&version=1.1.0&request=getfeature&typename=POI_pub_restaurant&maxfeatures=2 These are just crude examples without the property filter. Queries can be build also so that they do not return attributes. I hope you'll see the idea and think if it could make sense for your use case. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: David Hildebrand L?hetetty: ti 23.11.2010 22:48 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] querying to getting bounding box coordinates I am running a WMS service with Mapserver in a Windows environment. I want to be able to run a non-spatial query on a parcel layer to return the bounding box (in re-projected coordinates) for a particular parcel. The bounding box and projection will then be used in a WMS query to return a map image. I've never coded server-side functionality with Mapserver so any suggestions would be welcome. Thanks to all. =========================== 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. _______________________________________________ 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.Hildebrand at afsc.ca Wed Nov 24 12:36:02 2010 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Wed, 24 Nov 2010 13:36:02 -0700 Subject: [mapserver-users] querying to getting bounding box coordinates References: <34A305EE27F6F245A9D0E92FEB03640E018E622E@kum1.kreis-unna.int><4CEBC4D6.9050806@dmsolutions.ca><34A305EE27F6F245A9D0E92FEB03640E018E6235@kum1.kreis-unna.int><9188AB5935664040805E01E348A2B81D1BF69021@lacex1.afsc.ads><9188AB5935664040805E01E348A2B81D1BF69022@lacex1.afsc.ads><9188AB5935664040805E01E348A2B81D1BF69025@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF69029@lacex1.afsc.ads> Message-ID: <9188AB5935664040805E01E348A2B81D1BF6902A@lacex1.afsc.ads> It's a bit clumsy but the OGC Filter Encoding protocol forks fine (but I wouldn't want to key it into a browser by hand). The output is gml which needs to parsed. =========================== 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 David Hildebrand Sent: Wednesday, November 24, 2010 12:14 PM To: Rahkonen Jukka Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] querying to getting bounding box coordinates Jukka: I have my MapServer mapfile configured for a WFS service and I can perform GetCapabilities and GetFeature queries. Is there a URL syntax to specify filter criteria? 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 David Hildebrand Sent: Wednesday, November 24, 2010 9:49 AM To: Rahkonen Jukka Cc: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] querying to getting bounding box coordinates Thanks for the tip, Jukka. I, too, know very little about mapscript and the documentation is sparse in terms of learning it. I'm curious about WFS queries on a WMS instance. I believe I have my mapfile set up correctly because the layer in question comes up as ows_type="WFS" when I do a WMS DescribeLayer. What else do I need? Will WFS calls work with a WMS instance? 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: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: Tuesday, November 23, 2010 3:12 PM To: David Hildebrand Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] querying to getting bounding box coordinates Hi, Yes, they are WFS queries but you can send them to the same Mapserver service if you configure the mapfile properly. If you do not want to use WFS then I suppose you can do whatever you want with mapscript but that is something I do not know anything about. With some imagination it could be possible to do queries and get vectors out from WMS service and search the bounding box on client side (by using attribute filters inside SLD, or variable substitution inside DATA or FILTER, and by having KML as outputformat). Does not feel like a right way to do even it might be fun to experiment with. I suggest to read about mapscript http://mapserver.org/mapscript/index.html -Jukka- -----Alkuper?inen viesti----- L?hett?j?: David Hildebrand [mailto:David.Hildebrand at afsc.ca] L?hetetty: ti 23.11.2010 23:31 Vastaanottaja: Rahkonen Jukka Kopio: mapserver-users at lists.osgeo.org Aihe: RE: [mapserver-users] querying to getting bounding box coordinates Jukka: The examples you used were WFS queries. I wasn't aware that WMS queries also supported filters? =========================== 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 Rahkonen Jukka Sent: Tuesday, November 23, 2010 2:12 PM To: David Hildebrand; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] querying to getting bounding box coordinates Hi, One alternative is to make first a WFS request with attribute filter for finding the feature and let the client to catch the bounding box from the result. These examples should work, first is Geoserver and another Mapserver. The latter is pointing to a point layer and therefore I queried two features for getting a reasonable bounding box. http://sigma.openplans.org:8080/geoserver/wfs?service=wfs&version=1.1.0&request=getfeature&typename=states&maxfeatures=1 http://188.64.1.61/cgi-bin/osm-mapserver_i?service=wfs&version=1.1.0&request=getfeature&typename=POI_pub_restaurant&maxfeatures=2 These are just crude examples without the property filter. Queries can be build also so that they do not return attributes. I hope you'll see the idea and think if it could make sense for your use case. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: David Hildebrand L?hetetty: ti 23.11.2010 22:48 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] querying to getting bounding box coordinates I am running a WMS service with Mapserver in a Windows environment. I want to be able to run a non-spatial query on a parcel layer to return the bounding box (in re-projected coordinates) for a particular parcel. The bounding box and projection will then be used in a WMS query to return a map image. I've never coded server-side functionality with Mapserver so any suggestions would be welcome. Thanks to all. =========================== 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. _______________________________________________ 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.Hildebrand at afsc.ca Wed Nov 24 13:15:53 2010 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Wed, 24 Nov 2010 14:15:53 -0700 Subject: [mapserver-users] configuring WCS References: <34A305EE27F6F245A9D0E92FEB03640E018E622E@kum1.kreis-unna.int><4CEBC4D6.9050806@dmsolutions.ca><34A305EE27F6F245A9D0E92FEB03640E018E6235@kum1.kreis-unna.int><9188AB5935664040805E01E348A2B81D1BF69021@lacex1.afsc.ads><9188AB5935664040805E01E348A2B81D1BF69022@lacex1.afsc.ads><9188AB5935664040805E01E348A2B81D1BF69025@lacex1.afsc.ads><9188AB5935664040805E01E348A2B81D1BF69029@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF6902A@lacex1.afsc.ads> Message-ID: <9188AB5935664040805E01E348A2B81D1BF6902B@lacex1.afsc.ads> I am trying to configure a WCS service but when I do a GetCapabilities I get the following error. msOWSGetLayerExtent(): WMS server error. Wrong number of arguments for EXTENT metadata. I have wcs_extent defined for all the layers but nowhere in the MapServer documentation can I find that the WEB>METADATA tag requires extent to be defined. I have WMS and WFS services running and there seems to be no problem with the configuration. Any clues? =========================== 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 warmerdam at pobox.com Wed Nov 24 13:59:01 2010 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 24 Nov 2010 16:59:01 -0500 Subject: [mapserver-users] configuring WCS In-Reply-To: <9188AB5935664040805E01E348A2B81D1BF6902B@lacex1.afsc.ads> References: <34A305EE27F6F245A9D0E92FEB03640E018E622E@kum1.kreis-unna.int><4CEBC4D6.9050806@dmsolutions.ca><34A305EE27F6F245A9D0E92FEB03640E018E6235@kum1.kreis-unna.int><9188AB5935664040805E01E348A2B81D1BF69021@lacex1.afsc.ads><9188AB5935664040805E01E348A2B81D1BF69022@lacex1.afsc.ads><9188AB5935664040805E01E348A2B81D1BF69025@lacex1.afsc.ads><9188AB5935664040805E01E348A2B81D1BF69029@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF6902A@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF6902B@lacex1.afsc.ads> Message-ID: <4CED8AA5.9050002@pobox.com> David Hildebrand wrote: > I am trying to configure a WCS service but when I do a GetCapabilities I > get the following error. > > msOWSGetLayerExtent(): WMS server error. Wrong number of arguments for > EXTENT metadata. > > I have wcs_extent defined for all the layers but nowhere in the > MapServer documentation can I find that the WEB>METADATA tag requires > extent to be defined. I have WMS and WFS services running and there > seems to be no problem with the configuration. David, The *_extent metadata item needs four space separated values in the value string - minx miny maxx maxy. I presume you don't have it setup properly. It may well be that the WMS and WFS services don't actually use the extent so the WCS service is the first thing to error out. It is unfortunate about it being reported as a WMS error, but at that level of the code it is hard to know the context of the request. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From David.Hildebrand at afsc.ca Wed Nov 24 15:27:09 2010 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Wed, 24 Nov 2010 16:27:09 -0700 Subject: [mapserver-users] configuring WCS References: <34A305EE27F6F245A9D0E92FEB03640E018E622E@kum1.kreis-unna.int><4CEBC4D6.9050806@dmsolutions.ca><34A305EE27F6F245A9D0E92FEB03640E018E6235@kum1.kreis-unna.int><9188AB5935664040805E01E348A2B81D1BF69021@lacex1.afsc.ads><9188AB5935664040805E01E348A2B81D1BF69022@lacex1.afsc.ads><9188AB5935664040805E01E348A2B81D1BF69025@lacex1.afsc.ads><9188AB5935664040805E01E348A2B81D1BF69029@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF6902A@lacex1.afsc.ads> <9188AB5935664040805E01E348A2B81D1BF6902B@lacex1.afsc.ads> <4CED8AA5.9050002@pobox.com> Message-ID: <9188AB5935664040805E01E348A2B81D1BF6902D@lacex1.afsc.ads> Thanks, Frank. The documentation states that they values are comma-separated but for WMS and WFS they are space-delimited. The documentation needs to be changed. =========================== 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: Frank Warmerdam [mailto:warmerdam at pobox.com] Sent: Wednesday, November 24, 2010 2:59 PM To: David Hildebrand Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] configuring WCS David Hildebrand wrote: > I am trying to configure a WCS service but when I do a GetCapabilities I > get the following error. > > msOWSGetLayerExtent(): WMS server error. Wrong number of arguments for > EXTENT metadata. > > I have wcs_extent defined for all the layers but nowhere in the > MapServer documentation can I find that the WEB>METADATA tag requires > extent to be defined. I have WMS and WFS services running and there > seems to be no problem with the configuration. David, The *_extent metadata item needs four space separated values in the value string - minx miny maxx maxy. I presume you don't have it setup properly. It may well be that the WMS and WFS services don't actually use the extent so the WCS service is the first thing to error out. It is unfortunate about it being reported as a WMS error, but at that level of the code it is hard to know the context of the request. 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 Andreas.Fischer at kreis-unna.de Thu Nov 25 08:08:37 2010 From: Andreas.Fischer at kreis-unna.de (Fischer, Andreas) Date: Thu, 25 Nov 2010 17:08:37 +0100 Subject: [mapserver-users] Spatial Filter with WFS Message-ID: <34A305EE27F6F245A9D0E92FEB03640E018E6238@kum1.kreis-unna.int> Dear MapServer User, I want to let you know about the problem I had using filter encoding with a spatial filter requesting features via WFS: 1. Yewondwossen Assefa could confirm that this is an issue with OGR type layers. He was able to reproduce the problem and added a bug on it [1]. Converting the ogr layer to shape and using the shape file directly in mapserver is working properly. As I experienced the problem with the OGR layer (MapInfo Tab) does only occur with MapServer version 5.6.5. I tested 5.4.2 and 5.2.3 and I did not run in the same problem with the same layer type. So it seems to be a matter of the MapServer version as well. [1]: http://trac.osgeo.org/mapserver/ticket/3617 2. A work around for postgis layers is to avoid using "USING UNIQUE [column name different than oid]". Yewondwossen described this bug as well. [2]:http://trac.osgeo.org/mapserver/ticket/3618 Note that this work around will only work if the table in the DATA clause was created with OIDS. Otherwise an error will occur. The error message shows that some piece of a program is looking for the column oid. msWFSGetFeature(): WFS server error. FLTApplyFilterToLayer() failed msPostGISLayerWhichShapes(): Query error. Error (ERROR: column "oid" does not exist LINE 1: ...on(force_2d("the_geom")),'NDR'),'base64') as geom,"oid" from... ^ ) executing query: select encode(AsBinary(force_collection(force_2d("the_geom")),'NDR'),'base64') as geom,"oid" from ku_test_nooid where the_geom && GeomFromText('POLYGON((389965 5693582,389965 5732815,420177 5732815,420177 5693582,389965 5693582))',find_srid('','ku_test_nooid','the_geom')) In case of a subquery where USING UNIQUE is required, it is possible to use "USING UNIQUE OID". Otherwise another error occurs. So right now OIDS are needed in any case and in my opinion it would be worth thinking about to change this requirement to be able to use any other column with unique values. Thanks to all who joined the discussion and helped solving this problem! Best regards Andreas Mit freundlichen Gr??en Im Auftrag Andreas Fischer Kreis Unna - Der Landrat Zentrale Datenverarbeitung Friedrich-Ebert-Stra?e 17 59425 Unna Fon 02 3 03 27-44 16 Fax 0 23 03 27-28 96 andreas.fischer at kreis-unna.de www.kreis-unna.de Diese E-Mail wurde beim Ausgang auf Viren geprueft. Wegen der potentiellen Gefahr auf den Uebertragungswegen wird zu einer Vireneingangskontrolle geraten. Eine Haftung f?r Virenfreiheit wird ausgeschlossen. -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Hildebrand at afsc.ca Thu Nov 25 10:04:36 2010 From: David.Hildebrand at afsc.ca (David Hildebrand) Date: Thu, 25 Nov 2010 11:04:36 -0700 Subject: [mapserver-users] MapScript Wrappers for WxS Services References: <34A305EE27F6F245A9D0E92FEB03640E018E6238@kum1.kreis-unna.int> Message-ID: <9188AB5935664040805E01E348A2B81D1BF69030@lacex1.afsc.ads> I'm wondering how much work has been done out there with integrating WFS calls into client-side applications? I have an application which displays WMS layers and I need to zoom to the extent of a particular parcel of one of the layers. That particular layer is also defined as a WFS layer so I can use filter encoding to return the GML string with respect to the particular parcel of interest. I also have some PHP code with MapScript calls on a client which collects parameters from a form. What I would like to do is to construct a URL to query the particular parcel specified in the form and then retrieve the extents of the parcel to set the zoom parameters. Any suggestions? =========================== 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 gustafson.erik at gmail.com Thu Nov 25 13:20:46 2010 From: gustafson.erik at gmail.com (Erik Gustafson) Date: Thu, 25 Nov 2010 22:20:46 +0100 Subject: [mapserver-users] LABEL POSITION - Numeric or String from a database In-Reply-To: <09B769AA50734E70BEA45790F4BC332E@DELLM4500> References: <09B769AA50734E70BEA45790F4BC332E@DELLM4500> Message-ID: On Sun, Nov 21, 2010 at 11:21 AM, Donald Kerr wrote: > Hi List, > > I am trying to change a LABEL's POSITION by using an integer without > success. > > As far as I can see, the LABEL's POSITION can be any one of the following > constants: enum MS_POSITIONS_ENUM {MS_UL=101, MS_LR, MS_UR, MS_LL, MS_CR, > MS_CL, > MS_UC, MS_LC, MS_CC, MS_AUTO, MS_XY , MS_FOLLOW}; > > I was assuming that I can replace UL with "101" i.e. instead of "POSITION > UL" I use "POSITION 101" but that doesn't work. > > I have also tried replacing "POSITION UL" with text values from a database > i.e. "POSITION [AnchorPositionTxt]" where "AnchorPositionTxt" is a string > 'UL' but, again, that doesn't work. > > Is there a way to set this value dynamically from the database with either > numbers or strings ('UL', LR, etc...)? > > Many thanks. > > Regards, > > Donald Kerr Hello, I have an experimental patch on revision 10568: http://pastebin.com/GNu4Eeyt Should be enough to allow for binding text position from feature attribute. Both constants 101,102 etc and strings ul, uc, ul etc should work. I've used this patch on data from PostGIS. /Erik From lasmasi at gmail.com Fri Nov 26 04:23:58 2010 From: lasmasi at gmail.com (Lasma Sietinsone) Date: Fri, 26 Nov 2010 12:23:58 +0000 Subject: [mapserver-users] How to set feature-level opacity? Message-ID: Hi, Is there a way to have feature-level opacity? I have large amount of polygon data that has to be coloured RGB values straight from attribute table. I also need to set custom transparency on these polygons (alpha value). I am trying to use COLOR [rgba] or COLOR [rgb] and OPACITY [alphavals] but, unfortunately, neither approach would work. Example from my mapfile: ... CLASS STYLE COLOR [rgba] # or have use two parameters instead # COLOR [rgb] # OPACITY [alphavals] END STYLE OUTLINECOLOR 0 0 0 WIDTH 1 END END .... I understand that this has not been implemented, I am just demonstrating my intentions. Any workarounds or advice would be appreciated. Thank you, Lasma From jxjackso at franklincountyohio.gov Fri Nov 26 05:53:54 2010 From: jxjackso at franklincountyohio.gov (Jackson, John) Date: Fri, 26 Nov 2010 08:53:54 -0500 Subject: [mapserver-users] shpxy example Message-ID: HI again all, I'm working on a project where I'm trying to do the same thing as the shapexy example linked from http://mapserver.org/output/imagemaps.html I've got an html imagemap working, and enough javascript together that it correctly concatenates a link, but the link doesn't end up working... The part I don't understand how to get the map working in map mode. I'm not understanding the "ids" variable that is getting passed to mapserver. Are the id's a field in the data set? I don't see any documentation for it anywhere, and when I pass it, I just get my map back without anything selected. Again, thanks in advance for your help. Hope everyone had a wonderful thanksgiving. --John Jackson --Deputy Auditor --Franklin County Ohio -------------- next part -------------- An HTML attachment was scrubbed... URL: From yves.moisan at boreal-is.com Fri Nov 26 12:13:48 2010 From: yves.moisan at boreal-is.com (Yves Moisan) Date: Fri, 26 Nov 2010 15:13:48 -0500 Subject: [mapserver-users] Connection pooling Message-ID: <4CF014FC.4000408@boreal-is.com> Hi All, Noticing that postgres.exe processes pop and die quite a bit (Win 2003 Server), I started looking for tricks to avoid that and came across an old post from Paul : http://postgis.refractions.net/pipermail/postgis-users/2003-July/002729.html. Is this still applicable ? I suspect yes, but just to be sure. I don't like ProcessExplorer to show all those connections popping up and die ... Cheers, Yves From idnael at gmail.com Sun Nov 28 07:14:03 2010 From: idnael at gmail.com (Daniel Carvalho) Date: Sun, 28 Nov 2010 15:14:03 +0000 Subject: [mapserver-users] wfs different level of detail Message-ID: <4CF271BB.1080909@gmail.com> hi When I'm using WFS with OpenLayers, is it possible to make mapserver produce different detail level (simplifying geometries) according to the zoom level I'm using? That would be convenient to display maps with a lot of detail.. Or I should define different layers, with different details, and activate one of then according to the zoom level? thks! -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 554 bytes Desc: OpenPGP digital signature URL: From David.Fawcett at state.mn.us Sun Nov 28 10:10:40 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Sun, 28 Nov 2010 12:10:40 -0600 Subject: [mapserver-users] Compiling Trunk - problems with gifs Message-ID: I am working on compiling a pretty stripped down mapserv binary based on trunk (11/25) on CentOS 5. I successfully compiled GD with jpeg, png, and freetype support. Gdlib-config --features returns GD_JPEG, GD_FREETYPE, GD_PNG, GD_GIF, GD_GIFANIM, GD_OPENPOLYGON. When I try to compile MapServer using the basic ./configure --with-gd=/usr/, I get a bunch of messages saying that MapServer can't find the gif stuff configure: checking where GIF is installed... checking for DGifOpenFileHandle in -lgif... no checking gif_lib.h usability... no checking gif_lib.h presence... no checking for gif_lib.h... no configure: error: cannot find gif headers in system path I noticed a recent post on mapserver-dev about adding an additional flag to configure for gifs. But, when I try ./configure --with-gd=/usr/ --with-gif=/usr/ or (./configure --with-gd=/usr/ --with-gif=/usr) I get an error message telling me that MapServer can't find the gif stuff. configure: checking where GIF is installed... configure: error: cannot find gif lib in /usr/ I didn't compile gif_lib and don't see it anywhere in /usr. Do I need to compile a gif lib before or after compiling GD, or can MapServer just use the gif support in GD? Any help is greatly appreciated. David. From thomas.bonfort at gmail.com Sun Nov 28 10:23:53 2010 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sun, 28 Nov 2010 19:23:53 +0100 Subject: [mapserver-users] Compiling Trunk - problems with gifs In-Reply-To: References: Message-ID: you have to install the gif header files, ie the giflib-dev package of your system. the configure script is looking for gif_lib.h. regards, thomas On Sun, Nov 28, 2010 at 19:10, Fawcett, David (MPCA) wrote: > I am working on compiling a pretty stripped down mapserv binary based on trunk (11/25) on CentOS 5. ?I successfully compiled GD with jpeg, png, and freetype support. ?Gdlib-config --features returns GD_JPEG, GD_FREETYPE, GD_PNG, GD_GIF, GD_GIFANIM, GD_OPENPOLYGON. > > When I try to compile MapServer using the basic ./configure --with-gd=/usr/, I get a bunch of messages saying that MapServer can't find the gif stuff > configure: checking where GIF is installed... > checking for DGifOpenFileHandle in -lgif... no > checking gif_lib.h usability... no > checking gif_lib.h presence... no > checking for gif_lib.h... no > configure: error: cannot find gif headers in system path > > I noticed a recent post on mapserver-dev about adding an additional flag to configure for gifs. ?But, when I try ./configure --with-gd=/usr/ --with-gif=/usr/ ?or (./configure --with-gd=/usr/ --with-gif=/usr) ?I get an error message telling me that MapServer can't find the gif stuff. > configure: checking where GIF is installed... > configure: error: cannot find gif lib in /usr/ > > I didn't compile gif_lib and don't see it anywhere in /usr. ?Do I need to compile a gif lib before or after compiling GD, or can MapServer just use the gif support in GD? > > Any help is greatly appreciated. > > David. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From tom at vdputte.nl Sun Nov 28 23:37:28 2010 From: tom at vdputte.nl (Tom van der Putte) Date: Mon, 29 Nov 2010 08:37:28 +0100 Subject: [mapserver-users] Re: mapserver-users Digest, Vol 34, Issue 73 Message-ID: <3913.1291016248@vdputte.nl> Hi Daniel, I'm not sure if mapserver can do this for you; how I did it was to create two different shapes, and use the minscaledenom and maxscaledenom to display one of the two in different scale levels. Cheers, Tom On Sun 28/11/10 18:00 , mapserver-users-request at lists.osgeo.org sent: Send mapserver-users mailing list submissions to mapserver-users at lists.osgeo.org [1] 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 [2] You can reach the person managing the list at mapserver-users-owner at lists.osgeo.org [3] When replying, please edit your Subject line so it is more specific than "Re: Contents of mapserver-users digest..." Today's Topics: 1. wfs different level of detail (Daniel Carvalho) ---------------------------------------------------------------------- Message: 1 Date: Sun, 28 Nov 2010 15:14:03 +0000 From: Daniel Carvalho Subject: [mapserver-users] wfs different level of detail To: mapserver-users at lists.osgeo.org [5] Message-ID: Content-Type: text/plain; charset="iso-8859-1" hi When I'm using WFS with OpenLayers, is it possible to make mapserver produce different detail level (simplifying geometries) according to the zoom level I'm using? That would be convenient to display maps with a lot of detail.. Or I should define different layers, with different details, and activate one of then according to the zoom level? thks! -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 554 bytes Desc: OpenPGP digital signature Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20101128/13c6ca70/signature-0001.bin ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org [7] http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 34, Issue 73 *********************************************** Links: ------ [1] mailto:mapserver-users at lists.osgeo.org [2] mailto:mapserver-users-request at lists.osgeo.org [3] mailto:mapserver-users-owner at lists.osgeo.org [4] mailto:idnael at gmail.com [5] mailto:mapserver-users at lists.osgeo.org [6] mailto:4CF271BB.1080909 at gmail.com [7] mailto:mapserver-users at lists.osgeo.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Mon Nov 29 00:54:06 2010 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 29 Nov 2010 10:54:06 +0200 Subject: [mapserver-users] wfs different level of detail In-Reply-To: <4CF271BB.1080909@gmail.com> References: <4CF271BB.1080909@gmail.com> Message-ID: Hi, If you data are in a database it should be possible to take them out through simplify function. For PostGIS see http://postgis.refractions.net/docs/ST_Simplify.html You should define the layer DATA in the mapfile with simplifying factor as a variable and then make OpenLayers to send the value as an extra parameter with GetFeature requests. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > Daniel Carvalho > L?hetetty: 28. marraskuuta 2010 17:14 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] wfs different level of detail > > hi > > When I'm using WFS with OpenLayers, is it possible to make mapserver > produce different detail level (simplifying geometries) > according to the > zoom level I'm using? > > That would be convenient to display maps with a lot of detail.. > > Or I should define different layers, with different details, and > activate one of then according to the zoom level? > > thks! > > > From florita026 at gmail.com Mon Nov 29 05:46:56 2010 From: florita026 at gmail.com (florencia.bujan) Date: Mon, 29 Nov 2010 05:46:56 -0800 (PST) Subject: [mapserver-users] Raster Data from PostGIS Message-ID: <1291038416747-5784362.post@n2.nabble.com> Hi, I have my data rasters (tif files) into my PostGIS database such as file. Any file into database is in "bytea" format. I want to show this raster layer from PostGIS with mapserver. My "Raster Table" structure and my .map code are: TABLE rasters ( id serial NOT NULL, nombre character varying(100), archivo_bytea bytea, mime character varying(100), size double precision ) LAYER NAME 'Raster' TYPE RASTER CONNECTIONTYPE postgis CONNECTION "user=postgres password=... dbname=... host=..." DATA "bytea FROM rasters" STATUS OFF OFFSITE 0 0 0 TRANSPARENCY 100 END Thanks a lot. Regards. Florencia -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Raster-Data-from-PostGIS-tp5784362p5784362.html Sent from the Mapserver - User mailing list archive at Nabble.com. From flavio.o.carmo at gmail.com Mon Nov 29 06:43:44 2010 From: flavio.o.carmo at gmail.com (flaviocarmo) Date: Mon, 29 Nov 2010 06:43:44 -0800 (PST) Subject: [mapserver-users] Join from SHP file to PostgreSQL table Message-ID: <1291041824838-5784531.post@n2.nabble.com> Hi, I need to make a layer with a join between a shapefile and a non-spatial table, stored on PostgreSQL. I've found this documentation (http://mapserver.org/mapfile/join.html) but i could make it work, so, can u guys help me looking at this configuration and tell me whats wrong? LAYER NAME "join_shape" TYPE POLYGON STATUS DEFAULT DATA "join_shapefile.shp" CLASS NAME "Joined Shapes" STYLE OUTLINECOLOR 120 120 120 COLOR 0 30 255 END END TOLERANCE 20 JOIN NAME "teste" CONNECTION "dbname='testdb' host=GSERVER1 port=5432 user='test' password='test' sslmode=disable" CONNECTIONTYPE ogr TABLE '"test"."nonspatial"' FROM "code" TO "code" TYPE ONE-TO-ONE END END # layer In this layer, i want to show only the geometrys in the shapefile "join_shapefile.shp" that have a CODE column that is the same the CODE column in the test.nonspatial table, stored on Postgre. That is possible? Thanks again Regards, Flavio Carmo -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Join-from-SHP-file-to-PostgreSQL-table-tp5784531p5784531.html Sent from the Mapserver - User mailing list archive at Nabble.com. From David.Fawcett at state.mn.us Mon Nov 29 07:13:33 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Mon, 29 Nov 2010 09:13:33 -0600 Subject: [mapserver-users] Join from SHP file to PostgreSQL table In-Reply-To: <1291041824838-5784531.post@n2.nabble.com> References: <1291041824838-5784531.post@n2.nabble.com> Message-ID: Flavio, Take a look at this page if you haven't: http://mapserver.org/mapfile/join.html Under 'Description', it mentions that you can't use joined data to 'affect the look of a map'. I am pretty sure that this rules out your case. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of flaviocarmo Sent: Monday, November 29, 2010 8:44 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Join from SHP file to PostgreSQL table Hi, I need to make a layer with a join between a shapefile and a non-spatial table, stored on PostgreSQL. I've found this documentation (http://mapserver.org/mapfile/join.html) but i could make it work, so, can u guys help me looking at this configuration and tell me whats wrong? LAYER NAME "join_shape" TYPE POLYGON STATUS DEFAULT DATA "join_shapefile.shp" CLASS NAME "Joined Shapes" STYLE OUTLINECOLOR 120 120 120 COLOR 0 30 255 END END TOLERANCE 20 JOIN NAME "teste" CONNECTION "dbname='testdb' host=GSERVER1 port=5432 user='test' password='test' sslmode=disable" CONNECTIONTYPE ogr TABLE '"test"."nonspatial"' FROM "code" TO "code" TYPE ONE-TO-ONE END END # layer In this layer, i want to show only the geometrys in the shapefile "join_shapefile.shp" that have a CODE column that is the same the CODE column in the test.nonspatial table, stored on Postgre. That is possible? Thanks again Regards, Flavio Carmo -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Join-from-SHP-file-to-PostgreSQL-table-tp5784531p5784531.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Mon Nov 29 07:14:40 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 29 Nov 2010 11:14:40 -0400 Subject: [mapserver-users] Join from SHP file to PostgreSQL table In-Reply-To: <1291041824838-5784531.post@n2.nabble.com> References: <1291041824838-5784531.post@n2.nabble.com> Message-ID: <4CF3C360.20207@gatewaygeomatics.com> Hello Flavio, As noted on the page you referred to, this JOIN only works for executed queries...and I do not see a TEMPLATE in your layer. Are you aware that this join only works for queries? (see the examples in that documentation) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 10-11-29 10:43 AM, flaviocarmo wrote: > > Hi, > > I need to make a layer with a join between a shapefile and a non-spatial > table, stored on PostgreSQL. I've found this documentation > (http://mapserver.org/mapfile/join.html) but i could make it work, so, can u > guys help me looking at this configuration and tell me whats wrong? > > LAYER > NAME "join_shape" > TYPE POLYGON > STATUS DEFAULT > DATA "join_shapefile.shp" > CLASS > NAME "Joined Shapes" > STYLE > OUTLINECOLOR 120 120 120 > COLOR 0 30 255 > END > END > TOLERANCE 20 > JOIN > NAME "teste" > CONNECTION "dbname='testdb' host=GSERVER1 port=5432 > user='test' > password='test' sslmode=disable" > CONNECTIONTYPE ogr > TABLE '"test"."nonspatial"' > FROM "code" > TO "code" > TYPE ONE-TO-ONE > END > END # layer > > In this layer, i want to show only the geometrys in the shapefile > "join_shapefile.shp" that have a CODE column that is the same the CODE > column in the test.nonspatial table, stored on Postgre. > > That is possible? From boolean10001 at yahoo.com Mon Nov 29 07:38:11 2010 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Mon, 29 Nov 2010 07:38:11 -0800 (PST) Subject: [mapserver-users] Join from SHP file to PostgreSQL table In-Reply-To: <1291041824838-5784531.post@n2.nabble.com> References: <1291041824838-5784531.post@n2.nabble.com> Message-ID: <103599.69706.qm@web38206.mail.mud.yahoo.com> Flavio, Column names are case sensitive, have you checked this ? Cheers from M?xico IC Carlos Ruiz ________________________________ From: flaviocarmo To: mapserver-users at lists.osgeo.org Sent: Mon, November 29, 2010 8:43:44 AM Subject: [mapserver-users] Join from SHP file to PostgreSQL table Hi, I need to make a layer with a join between a shapefile and a non-spatial table, stored on PostgreSQL. I've found this documentation (http://mapserver.org/mapfile/join.html) but i could make it work, so, can u guys help me looking at this configuration and tell me whats wrong? LAYER NAME "join_shape" TYPE POLYGON STATUS DEFAULT DATA "join_shapefile.shp" CLASS NAME "Joined Shapes" STYLE OUTLINECOLOR 120 120 120 COLOR 0 30 255 END END TOLERANCE 20 JOIN NAME "teste" CONNECTION "dbname='testdb' host=GSERVER1 port=5432 user='test' password='test' sslmode=disable" CONNECTIONTYPE ogr TABLE '"test"."nonspatial"' FROM "code" TO "code" TYPE ONE-TO-ONE END END # layer In this layer, i want to show only the geometrys in the shapefile "join_shapefile.shp" that have a CODE column that is the same the CODE column in the test.nonspatial table, stored on Postgre. That is possible? Thanks again Regards, Flavio Carmo -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Join-from-SHP-file-to-PostgreSQL-table-tp5784531p5784531.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 boolean10001 at yahoo.com Mon Nov 29 07:34:40 2010 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Mon, 29 Nov 2010 07:34:40 -0800 (PST) Subject: [mapserver-users] Raster Data from PostGIS In-Reply-To: <1291038416747-5784362.post@n2.nabble.com> References: <1291038416747-5784362.post@n2.nabble.com> Message-ID: <281132.69958.qm@web38201.mail.mud.yahoo.com> Florencia, As far as I know, Mapserver only works with vectorial data on PostGIS. So having a kind of BLOB (bytea) column doesn't work. I guess you will have to had those TIF files as a file to be able to load it using a RASTER layer. Cheers from M?xico IC Carlos Ruiz From: florencia.bujan To: mapserver-users at lists.osgeo.org Sent: Mon, November 29, 2010 7:46:56 AM Subject: [mapserver-users] Raster Data from PostGIS Hi, I have my data rasters (tif files) into my PostGIS database such as file. Any file into database is in "bytea" format. I want to show this raster layer from PostGIS with mapserver. My "Raster Table" structure and my .map code are: TABLE rasters ( id serial NOT NULL, nombre character varying(100), archivo_bytea bytea, mime character varying(100), size double precision ) LAYER NAME 'Raster' TYPE RASTER CONNECTIONTYPE postgis CONNECTION "user=postgres password=... dbname=... host=..." DATA "bytea FROM rasters" STATUS OFF OFFSITE 0 0 0 TRANSPARENCY 100 END Thanks a lot. Regards. Florencia -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Raster-Data-from-PostGIS-tp5784362p5784362.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Nov 29 07:45:32 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 29 Nov 2010 10:45:32 -0500 Subject: [mapserver-users] Raster Data from PostGIS In-Reply-To: <281132.69958.qm@web38201.mail.mud.yahoo.com> References: <1291038416747-5784362.post@n2.nabble.com> <281132.69958.qm@web38201.mail.mud.yahoo.com> Message-ID: <4CF3CA9C.7070606@swoodbridge.com> Florencia, I have not tried to do this and I'm not sure it is even possible, but you might have some luck using a GDAL connection to pull your postgres raster data into mapserver. If you get this to work post a "how to" to the list. Thanks, -Steve W On 11/29/2010 10:34 AM, Carlos Ruiz wrote: > Florencia, > > As far as I know, Mapserver only works with vectorial data on PostGIS. > So having a kind of BLOB (bytea) > column doesn't work. > > I guess you will have to had those TIF files as a file to be able to > load it using a RASTER layer. > > Cheers from M?xico > > IC Carlos Ruiz > > *From:* florencia.bujan > *To:* mapserver-users at lists.osgeo.org > *Sent:* Mon, November 29, 2010 7:46:56 AM > *Subject:* [mapserver-users] Raster Data from PostGIS > > > Hi, > > I have my data rasters (tif files) into my PostGIS database such as file. > Any file into database is in "bytea" format. > I want to show this raster layer from PostGIS with mapserver. My "Raster > Table" structure and my .map code are: > > TABLE rasters ( > id serial NOT NULL, > nombre character varying(100), > archivo_bytea bytea, > mime character varying(100), > size double precision > ) > > LAYER > NAME 'Raster' > TYPE RASTER > CONNECTIONTYPE postgis > CONNECTION "user=postgres password=... dbname=... host=..." > DATA "bytea FROM rasters" > STATUS OFF > OFFSITE 0 0 0 > TRANSPARENCY 100 > END > > Thanks a lot. > Regards. > Florencia > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Raster-Data-from-PostGIS-tp5784362p5784362.html > Sent from the Mapserver - User mailing list archive at Nabble.com > . > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From bfraser at geoanalytic.com Mon Nov 29 07:46:16 2010 From: bfraser at geoanalytic.com (Brent Fraser) Date: Mon, 29 Nov 2010 08:46:16 -0700 Subject: [mapserver-users] Join from SHP file to PostgreSQL table In-Reply-To: <1291041824838-5784531.post@n2.nabble.com> References: <1291041824838-5784531.post@n2.nabble.com> Message-ID: <4CF3CAC8.1010605@geoanalytic.com> Flavio, I think that if you have CONNECTIONTYPE OGR, the connection string must have "PG:" (unlike the native mapserver Postgres connections?): CONNECTIONTYPE ogr CONNECTION "PG:dbname='testdb' host=GSERVER1 port=5432 user='test' password='test' sslmode=disable" If this works let me know, and I'll change the join documentation Best Regards, Brent Fraser On 11/29/2010 7:43 AM, flaviocarmo wrote: > Hi, > > I need to make a layer with a join between a shapefile and a non-spatial > table, stored on PostgreSQL. I've found this documentation > (http://mapserver.org/mapfile/join.html) but i could make it work, so, can u > guys help me looking at this configuration and tell me whats wrong? > > LAYER > NAME "join_shape" > TYPE POLYGON > STATUS DEFAULT > DATA "join_shapefile.shp" > CLASS > NAME "Joined Shapes" > STYLE > OUTLINECOLOR 120 120 120 > COLOR 0 30 255 > END > END > TOLERANCE 20 > JOIN > NAME "teste" > CONNECTION "dbname='testdb' host=GSERVER1 port=5432 > user='test' > password='test' sslmode=disable" > CONNECTIONTYPE ogr > TABLE '"test"."nonspatial"' > FROM "code" > TO "code" > TYPE ONE-TO-ONE > END > END # layer > > In this layer, i want to show only the geometrys in the shapefile > "join_shapefile.shp" that have a CODE column that is the same the CODE > column in the test.nonspatial table, stored on Postgre. > > That is possible? > > Thanks again > > Regards, > > Flavio Carmo From florita026 at gmail.com Mon Nov 29 07:50:35 2010 From: florita026 at gmail.com (florencia.bujan) Date: Mon, 29 Nov 2010 07:50:35 -0800 (PST) Subject: [mapserver-users] Re: Raster Data from PostGIS In-Reply-To: <281132.69958.qm@web38201.mail.mud.yahoo.com> References: <1291038416747-5784362.post@n2.nabble.com> <281132.69958.qm@web38201.mail.mud.yahoo.com> Message-ID: <1291045835952-5784801.post@n2.nabble.com> Hi Carlos, Thanks for your response. Ok, but I want to show only one layer with some rasters (more than one). I can save tif files into my system (directory into my hard disc instead of PostGIS), but I am thinking about can show a layer with more than one tif raster. Any ideas? Thanks a lot! Florencia from Uruguay -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Raster-Data-from-PostGIS-tp5784362p5784801.html Sent from the Mapserver - User mailing list archive at Nabble.com. From boolean10001 at yahoo.com Mon Nov 29 07:58:35 2010 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Mon, 29 Nov 2010 07:58:35 -0800 (PST) Subject: [mapserver-users] Re: Raster Data from PostGIS In-Reply-To: <1291045835952-5784801.post@n2.nabble.com> References: <1291038416747-5784362.post@n2.nabble.com> <281132.69958.qm@web38201.mail.mud.yahoo.com> <1291045835952-5784801.post@n2.nabble.com> Message-ID: <230370.32025.qm@web38203.mail.mud.yahoo.com> Hi Florencia, You just can show a layer per LAYER section at a time. However, you can use the GROUP label within each LAYER section of each raster you want to show, to turn on/off all those layers. Solo puedes mostrar una capa por cada secci?n LAYER a la vez. Sin embargo, puedes hacer uso de la etiqueta GROUP dentro de cada secci?n LAYER a cada uno de los archivos raster que quieras mostrar para encenderlos o apagarlos en grupo. IC Carlos Ruiz ________________________________ From: florencia.bujan To: mapserver-users at lists.osgeo.org Sent: Mon, November 29, 2010 9:50:35 AM Subject: [mapserver-users] Re: Raster Data from PostGIS Hi Carlos, Thanks for your response. Ok, but I want to show only one layer with some rasters (more than one). I can save tif files into my system (directory into my hard disc instead of PostGIS), but I am thinking about can show a layer with more than one tif raster. Any ideas? Thanks a lot! Florencia from Uruguay -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Raster-Data-from-PostGIS-tp5784362p5784801.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Nov 29 08:00:35 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 29 Nov 2010 11:00:35 -0500 Subject: [mapserver-users] Re: Raster Data from PostGIS In-Reply-To: <1291045835952-5784801.post@n2.nabble.com> References: <1291038416747-5784362.post@n2.nabble.com> <281132.69958.qm@web38201.mail.mud.yahoo.com> <1291045835952-5784801.post@n2.nabble.com> Message-ID: <4CF3CE23.3090401@swoodbridge.com> On 11/29/2010 10:50 AM, florencia.bujan wrote: > > Hi Carlos, > > Thanks for your response. > Ok, but I want to show only one layer with some rasters (more than one). I > can save tif files into my system (directory into my hard disc instead of > PostGIS), but I am thinking about can show a layer with more than one tif > raster. > > Any ideas? > Thanks a lot! > Florencia from Uruguay Florencia, If you have a lot of tiff files on the disk, there are two ways to work with them if you want them to appear as a single layer: 1. create a tileindex for rasters use gdaltindex command then in mapserver reference this with the TILEINDEX in the LAYER 2. create a vrt file the includes all your rasters with gdalbuildvrt This you can reference in the DATA "myvrtfile.vrt" -Steve W From florita026 at gmail.com Mon Nov 29 08:12:07 2010 From: florita026 at gmail.com (florencia.bujan) Date: Mon, 29 Nov 2010 08:12:07 -0800 (PST) Subject: [mapserver-users] Re: Raster Data from PostGIS In-Reply-To: <1291045835952-5784801.post@n2.nabble.com> References: <1291038416747-5784362.post@n2.nabble.com> <281132.69958.qm@web38201.mail.mud.yahoo.com> <1291045835952-5784801.post@n2.nabble.com> Message-ID: <1291047127999-5784894.post@n2.nabble.com> Stephen, Carlos Thanks for your response again. My problem is that the group of rasters not always the same (dinamic). For example, rasters show according to the user logged (some users can see some rasters but no all), everything depends on the user. With the other types of layers (polygon, line, point, etc) I can do that using the param (%param%) on the data layer. Then, I will investigate the TILEINDEX in the LAYER and the solution with GROUP (but should be dynamic). If anyone finds an example please let me know. Thank you very much for your cooperation! and sorry for my poor english Florencia from Uruguay -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Raster-Data-from-PostGIS-tp5784362p5784894.html Sent from the Mapserver - User mailing list archive at Nabble.com. From David.Fawcett at state.mn.us Mon Nov 29 08:26:39 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Mon, 29 Nov 2010 10:26:39 -0600 Subject: [mapserver-users] Re: Raster Data from PostGIS In-Reply-To: <1291047127999-5784894.post@n2.nabble.com> References: <1291038416747-5784362.post@n2.nabble.com> <281132.69958.qm@web38201.mail.mud.yahoo.com> <1291045835952-5784801.post@n2.nabble.com> <1291047127999-5784894.post@n2.nabble.com> Message-ID: If I remember correctly, you can use a PostGIS data set as a tileindex. Perhaps it would be possible to have a PostGIS polygon layer that serves as the tileindex with a where clause that only includes the footprint polygons for the rasters that a particular user should be able to see. Has anyone done this? David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of florencia.bujan Sent: Monday, November 29, 2010 10:12 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Re: Raster Data from PostGIS Stephen, Carlos Thanks for your response again. My problem is that the group of rasters not always the same (dinamic). For example, rasters show according to the user logged (some users can see some rasters but no all), everything depends on the user. With the other types of layers (polygon, line, point, etc) I can do that using the param (%param%) on the data layer. Then, I will investigate the TILEINDEX in the LAYER and the solution with GROUP (but should be dynamic). If anyone finds an example please let me know. Thank you very much for your cooperation! and sorry for my poor english Florencia from Uruguay -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Raster-Data-from-PostGIS-tp5784362p5784894.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 florita026 at gmail.com Mon Nov 29 08:39:13 2010 From: florita026 at gmail.com (florencia.bujan) Date: Mon, 29 Nov 2010 08:39:13 -0800 (PST) Subject: [mapserver-users] Re: Raster Data from PostGIS In-Reply-To: References: <1291038416747-5784362.post@n2.nabble.com> <281132.69958.qm@web38201.mail.mud.yahoo.com> <1291045835952-5784801.post@n2.nabble.com> <1291047127999-5784894.post@n2.nabble.com> Message-ID: <1291048753486-5785003.post@n2.nabble.com> David, Exactly. I done this with a dynamic parameter, like this: DATA "the_geom from (SELECT l.* from lotes l, campos c WHERE c.id=l.idcampo AND l.idcampo=%param%) as lotes using unique gid using SRID=-1" but I want to do that with raster layer. Perhaps another solution is in the passage of parameters. Thanks! Florencia from Uruguay -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Raster-Data-from-PostGIS-tp5784362p5785003.html Sent from the Mapserver - User mailing list archive at Nabble.com. From matt.mendick at pictometry.com Mon Nov 29 10:13:59 2010 From: matt.mendick at pictometry.com (mattmendick) Date: Mon, 29 Nov 2010 10:13:59 -0800 (PST) Subject: [mapserver-users] Re: Clipping returned WFS data to the requesting bounding box In-Reply-To: <1290551237770-5768616.post@n2.nabble.com> References: <1290551237770-5768616.post@n2.nabble.com> Message-ID: <1291054439316-5785372.post@n2.nabble.com> Any takers? I was just thinking, is there a native way using filters to clip the returned data inside mapserver? I couldn't find any, but perhaps I was not looking in the right place. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Clipping-returned-WFS-data-to-the-requesting-bounding-box-tp5768616p5785372.html Sent from the Mapserver - User mailing list archive at Nabble.com. From David.Fawcett at state.mn.us Mon Nov 29 10:37:00 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Mon, 29 Nov 2010 12:37:00 -0600 Subject: [mapserver-users] Re: Raster Data from PostGIS In-Reply-To: <1291048753486-5785003.post@n2.nabble.com> References: <1291038416747-5784362.post@n2.nabble.com> <281132.69958.qm@web38201.mail.mud.yahoo.com> <1291045835952-5784801.post@n2.nabble.com> <1291047127999-5784894.post@n2.nabble.com> <1291048753486-5785003.post@n2.nabble.com> Message-ID: Florencia, Since you are using this strategy for vector layers, I think that it could work for rasters. You would use gdaltindex or something else to create a polygon data set that represented the 'footprints' of your raster files. http://mapserver.org/optimization/tileindex.html One of the attribute columns in a tile index is the path to the location of each individual raster file. The raster files are stored in the file system, not in the database. The database just stores the paths to the images. I don't know if you can create a tileindex directly in PostGIS, but you could import the output shapefile. I am guessing that you would then create a related table in PostGIS that stored records containing the allowed tileid and username combinations. For the tileindex, you would use pretty much the same query that you use for your vector layers. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of florencia.bujan Sent: Monday, November 29, 2010 10:39 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Re: Raster Data from PostGIS David, Exactly. I done this with a dynamic parameter, like this: DATA "the_geom from (SELECT l.* from lotes l, campos c WHERE c.id=l.idcampo AND l.idcampo=%param%) as lotes using unique gid using SRID=-1" but I want to do that with raster layer. Perhaps another solution is in the passage of parameters. Thanks! Florencia from Uruguay -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Raster-Data-from-PostGIS-tp5784362p5785003.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 flavio.o.carmo at gmail.com Mon Nov 29 11:21:57 2010 From: flavio.o.carmo at gmail.com (flaviocarmo) Date: Mon, 29 Nov 2010 11:21:57 -0800 (PST) Subject: [mapserver-users] Re: Join from SHP file to PostgreSQL table In-Reply-To: <4CF3CAC8.1010605@geoanalytic.com> References: <1291041824838-5784531.post@n2.nabble.com> <4CF3CAC8.1010605@geoanalytic.com> Message-ID: <1291058517091-5785616.post@n2.nabble.com> Hi, Thanks all for your responses. Im a novice in Mapserver so, after reading, now i know that: - I cant use a JOIN to shown only geometrys with the CODE field stored on Postgres (or another Database) because joins cannot modify the look of a map; - I need to use a template always to show the queries results; - Case-sensitive fields can be a problem in a query with mapserver; - The "PG:" string for was my mistake. I missed in the mail, but was in my MAP file. Sorry. Now what? There isnt a way to solve my issue? My client needs a opensource solution to deliver his data. His current solution (ESRI ArcGIS Server) is too expensive to buy another license, so he asked for a solution with the same quality, but opensource. There is a way to workaround this? Thanks again. Regards, Flavio Carmo -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Join-from-SHP-file-to-PostgreSQL-table-tp5784531p5785616.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at swoodbridge.com Mon Nov 29 11:35:58 2010 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 29 Nov 2010 14:35:58 -0500 Subject: [mapserver-users] Re: Join from SHP file to PostgreSQL table In-Reply-To: <1291058517091-5785616.post@n2.nabble.com> References: <1291041824838-5784531.post@n2.nabble.com> <4CF3CAC8.1010605@geoanalytic.com> <1291058517091-5785616.post@n2.nabble.com> Message-ID: <4CF4009E.6070700@swoodbridge.com> On 11/29/2010 2:21 PM, flaviocarmo wrote: > > Hi, > > Thanks all for your responses. Im a novice in Mapserver so, after reading, > now i know that: > > - I cant use a JOIN to shown only geometrys with the CODE field stored on > Postgres (or another Database) because joins cannot modify the look of a > map; > > - I need to use a template always to show the queries results; > > - Case-sensitive fields can be a problem in a query with mapserver; > > - The "PG:" string for was my mistake. I missed in the mail, but was in my > MAP file. Sorry. > > Now what? There isnt a way to solve my issue? My client needs a opensource > solution to deliver his data. His current solution (ESRI ArcGIS Server) is > too expensive to buy another license, so he asked for a solution with the > same quality, but opensource. > > There is a way to workaround this? Favlio, I would put all the data in a postgres/postgis database and display it from there. There is a simple shapefile loader: shp2pgsql. In this setup you can easily join tables, create inherited tables if you are working with data like streets.shp for multiple countries so the parent table can be used to seamlessly display the multiple streets tables as a single layer in mapserver. He may have to rethink his work flow a little because the tools are different, but this would be the case regardless if he is changing the software that he is using. -Steve W From flavio.carmo at tecnomapas.com.br Mon Nov 29 11:49:09 2010 From: flavio.carmo at tecnomapas.com.br (Flavio Carmo) Date: Mon, 29 Nov 2010 16:49:09 -0300 Subject: [mapserver-users] Re: Join from SHP file to PostgreSQL table In-Reply-To: <4CF4009E.6070700@swoodbridge.com> References: <1291041824838-5784531.post@n2.nabble.com> <4CF3CAC8.1010605@geoanalytic.com> <1291058517091-5785616.post@n2.nabble.com> <4CF4009E.6070700@swoodbridge.com> Message-ID: Hi, Sorry, but i cant upload the shapes to postgres. The shapefiles are modified using arcview and the data in the postgres is modified using a custom desktop software that my client uses for about 5 years. The software open the shapefiles, then using a ODBC connection with postgres, make the join in memory and shows the information for each geometry. I cant undo this situation, so, my client propose to me to uses a opensource solution to also make this join in a WMS service. He knows Geoserver and Mapserver. Geoserver cant do this too, so i've hoped that mapserver could be a solution. Regards, Fl?vio Carmo On Mon, Nov 29, 2010 at 16:35, Stephen Woodbridge wrote: > On 11/29/2010 2:21 PM, flaviocarmo wrote: > >> >> Hi, >> >> Thanks all for your responses. Im a novice in Mapserver so, after reading, >> now i know that: >> >> - I cant use a JOIN to shown only geometrys with the CODE field stored on >> Postgres (or another Database) because joins cannot modify the look of a >> map; >> >> - I need to use a template always to show the queries results; >> >> - Case-sensitive fields can be a problem in a query with mapserver; >> >> - The "PG:" string for was my mistake. I missed in the mail, but was in my >> MAP file. Sorry. >> >> Now what? There isnt a way to solve my issue? My client needs a opensource >> solution to deliver his data. His current solution (ESRI ArcGIS Server) is >> too expensive to buy another license, so he asked for a solution with the >> same quality, but opensource. >> >> There is a way to workaround this? >> > > Favlio, > > I would put all the data in a postgres/postgis database and display it from > there. There is a simple shapefile loader: shp2pgsql. In this setup you can > easily join tables, create inherited tables if you are working with data > like streets.shp for multiple countries so the parent table can be used to > seamlessly display the multiple streets tables as a single layer in > mapserver. > > He may have to rethink his work flow a little because the tools are > different, but this would be the case regardless if he is changing the > software that he is using. > > -Steve W > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Mon Nov 29 12:00:50 2010 From: David.Fawcett at state.mn.us (Fawcett, David (MPCA)) Date: Mon, 29 Nov 2010 14:00:50 -0600 Subject: [mapserver-users] Re: Join from SHP file to PostgreSQL table In-Reply-To: References: <1291041824838-5784531.post@n2.nabble.com> <4CF3CAC8.1010605@geoanalytic.com> <1291058517091-5785616.post@n2.nabble.com> <4CF4009E.6070700@swoodbridge.com> Message-ID: Your client has some pretty custom requirements. How current does the data published by the Web server need to be? Could it be refreshed nightly or hourly, or do changes to the data have to be immediately reflected in on the Web? From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Flavio Carmo Sent: Monday, November 29, 2010 1:49 PM To: Stephen Woodbridge Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Re: Join from SHP file to PostgreSQL table Hi, Sorry, but i cant upload the shapes to postgres. The shapefiles are modified using arcview and the data in the postgres is modified using a custom desktop software that my client uses for about 5 years. The software open the shapefiles, then using a ODBC connection with postgres, make the join in memory and shows the information for each geometry. I cant undo this situation, so, my client propose to me to uses a opensource solution to also make this join in a WMS service. He knows Geoserver and Mapserver. Geoserver cant do this too, so i've hoped that mapserver could be a solution. Regards, Fl?vio Carmo On Mon, Nov 29, 2010 at 16:35, Stephen Woodbridge > wrote: On 11/29/2010 2:21 PM, flaviocarmo wrote: Hi, Thanks all for your responses. Im a novice in Mapserver so, after reading, now i know that: - I cant use a JOIN to shown only geometrys with the CODE field stored on Postgres (or another Database) because joins cannot modify the look of a map; - I need to use a template always to show the queries results; - Case-sensitive fields can be a problem in a query with mapserver; - The "PG:" string for was my mistake. I missed in the mail, but was in my MAP file. Sorry. Now what? There isnt a way to solve my issue? My client needs a opensource solution to deliver his data. His current solution (ESRI ArcGIS Server) is too expensive to buy another license, so he asked for a solution with the same quality, but opensource. There is a way to workaround this? Favlio, I would put all the data in a postgres/postgis database and display it from there. There is a simple shapefile loader: shp2pgsql. In this setup you can easily join tables, create inherited tables if you are working with data like streets.shp for multiple countries so the parent table can be used to seamlessly display the multiple streets tables as a single layer in mapserver. He may have to rethink his work flow a little because the tools are different, but this would be the case regardless if he is changing the software that he is using. -Steve W _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at ci.stpaul.mn.us Mon Nov 29 12:04:03 2010 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Mon, 29 Nov 2010 14:04:03 -0600 Subject: [mapserver-users] Re: Join from SHP file to PostgreSQL table In-Reply-To: References: <1291041824838-5784531.post@n2.nabble.com> <4CF3CAC8.1010605@geoanalytic.com> <1291058517091-5785616.post@n2.nabble.com> <4CF4009E.6070700@swoodbridge.com> Message-ID: <4CF3B2D3.163B.00A8.0@ci.stpaul.mn.us> All, How about incrementally loading the SHAPE files at some predetermined interval into POSTGIS is this feasible, are the data files to large, etc? bobb >>> "Fawcett, David (MPCA)" wrote: Your client has some pretty custom requirements. How current does the data published by the Web server need to be? Could it be refreshed nightly or hourly, or do changes to the data have to be immediately reflected in on the Web? From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Flavio Carmo Sent: Monday, November 29, 2010 1:49 PM To: Stephen Woodbridge Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Re: Join from SHP file to PostgreSQL table Hi, Sorry, but i cant upload the shapes to postgres. The shapefiles are modified using arcview and the data in the postgres is modified using a custom desktop software that my client uses for about 5 years. The software open the shapefiles, then using a ODBC connection with postgres, make the join in memory and shows the information for each geometry. I cant undo this situation, so, my client propose to me to uses a opensource solution to also make this join in a WMS service. He knows Geoserver and Mapserver. Geoserver cant do this too, so i've hoped that mapserver could be a solution. Regards, Fl?vio Carmo On Mon, Nov 29, 2010 at 16:35, Stephen Woodbridge wrote: On 11/29/2010 2:21 PM, flaviocarmo wrote: Hi, Thanks all for your responses. Im a novice in Mapserver so, after reading, now i know that: - I cant use a JOIN to shown only geometrys with the CODE field stored on Postgres (or another Database) because joins cannot modify the look of a map; - I need to use a template always to show the queries results; - Case-sensitive fields can be a problem in a query with mapserver; - The "PG:" string for was my mistake. I missed in the mail, but was in my MAP file. Sorry. Now what? There isnt a way to solve my issue? My client needs a opensource solution to deliver his data. His current solution (ESRI ArcGIS Server) is too expensive to buy another license, so he asked for a solution with the same quality, but opensource. There is a way to workaround this? Favlio, I would put all the data in a postgres/postgis database and display it from there. There is a simple shapefile loader: shp2pgsql. In this setup you can easily join tables, create inherited tables if you are working with data like streets.shp for multiple countries so the parent table can be used to seamlessly display the multiple streets tables as a single layer in mapserver. He may have to rethink his work flow a little because the tools are different, but this would be the case regardless if he is changing the software that he is using. -Steve W _______________________________________________ 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 bfraser at geoanalytic.com Mon Nov 29 12:18:34 2010 From: bfraser at geoanalytic.com (Brent Fraser) Date: Mon, 29 Nov 2010 13:18:34 -0700 Subject: [mapserver-users] Re: Join from SHP file to PostgreSQL table In-Reply-To: References: <1291041824838-5784531.post@n2.nabble.com> <4CF3CAC8.1010605@geoanalytic.com> <1291058517091-5785616.post@n2.nabble.com> <4CF4009E.6070700@swoodbridge.com> Message-ID: <4CF40A9A.9080301@geoanalytic.com> Flavio, I'm currently experimenting with joining a shapefile to a MS Access file using OGR and ODBC (and stock mapserver v 5.2.1 from MS4W). Works ok: CONNECTIONTYPE OGR CONNECTION 'G:/GeoData/Parcels/Alberta/t_505033.shp' DATA "SELECT * FROM t_505033 LEFT JOIN 'ODBC:Parcels_Rural'.basic ON t_505033.PID=basic.PID" I'm able to use a column in the ODBC datasource as the CLASSITEM for rendering. You should be able to do the same with an ODBC datasource pointing to a PostGIS database... Best Regards, Brent Fraser On 11/29/2010 12:49 PM, Flavio Carmo wrote: > Hi, > > Sorry, but i cant upload the shapes to postgres. The shapefiles are > modified using arcview and the data in the postgres is modified using > a custom desktop software that my client uses for about 5 years. The > software open the shapefiles, then using a ODBC connection with > postgres, make the join in memory and shows the information for each > geometry. > > I cant undo this situation, so, my client propose to me to uses a > opensource solution to also make this join in a WMS service. He knows > Geoserver and Mapserver. Geoserver cant do this too, so i've hoped > that mapserver could be a solution. > > Regards, > > Fl?vio Carmo > > > On Mon, Nov 29, 2010 at 16:35, Stephen Woodbridge > > wrote: > > On 11/29/2010 2:21 PM, flaviocarmo wrote: > > > Hi, > > Thanks all for your responses. Im a novice in Mapserver so, > after reading, > now i know that: > > - I cant use a JOIN to shown only geometrys with the CODE > field stored on > Postgres (or another Database) because joins cannot modify the > look of a > map; > > - I need to use a template always to show the queries results; > > - Case-sensitive fields can be a problem in a query with > mapserver; > > - The "PG:" string for was my mistake. I missed in the mail, > but was in my > MAP file. Sorry. > > Now what? There isnt a way to solve my issue? My client needs > a opensource > solution to deliver his data. His current solution (ESRI > ArcGIS Server) is > too expensive to buy another license, so he asked for a > solution with the > same quality, but opensource. > > There is a way to workaround this? > > > Favlio, > > I would put all the data in a postgres/postgis database and > display it from there. There is a simple shapefile loader: > shp2pgsql. In this setup you can easily join tables, create > inherited tables if you are working with data like streets.shp for > multiple countries so the parent table can be used to seamlessly > display the multiple streets tables as a single layer in mapserver. > > He may have to rethink his work flow a little because the tools > are different, but this would be the case regardless if he is > changing the software that he is using. > > -Steve W > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Mon Nov 29 13:02:13 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 29 Nov 2010 15:02:13 -0600 Subject: [mapserver-users] RE: shpxy example In-Reply-To: References: Message-ID: Hi John: The ids variable is used to perform a runtime substitution. It's not a MapServer specific variable, just something I used in that particular example. In the mapfile here's the county layer: LAYER NAME county STATUS OFF DATA "data/bdry_counpy2_gen500" TYPE POLYGON CLASS EXPRESSION ('[COUN]' in '%ids%') STYLE COLOR "#BD9E5D" # "#A27528" OUTLINECOLOR 50 50 50 END END CLASS COLOR 255 255 255 OUTLINECOLOR 50 50 50 END TEMPLATE "templates/county_example.html" END The value for the CGI variable ids is substituted into the first class expression at runtime. So, if ids=1,2,3,4,5 then the class expression becomes ('[COUN]' in '1,2,3,4,5'). Ideally one should set a validation pattern for the ids variable to limit it's possible values. So, once the expression is changed if the attribute COUN is in the list of ids then we draw with the pukey brown, if not, then draw white. Does this help? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jackson, John Sent: Friday, November 26, 2010 7:54 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] shpxy example HI again all, I'm working on a project where I'm trying to do the same thing as the shapexy example linked from http://mapserver.org/output/imagemaps.html I've got an html imagemap working, and enough javascript together that it correctly concatenates a link, but the link doesn't end up working... The part I don't understand how to get the map working in map mode. I'm not understanding the "ids" variable that is getting passed to mapserver. Are the id's a field in the data set? I don't see any documentation for it anywhere, and when I pass it, I just get my map back without anything selected. Again, thanks in advance for your help. Hope everyone had a wonderful thanksgiving. --John Jackson --Deputy Auditor --Franklin County Ohio -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at state.mn.us Mon Nov 29 13:04:22 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 29 Nov 2010 15:04:22 -0600 Subject: [mapserver-users] How to set feature-level opacity? In-Reply-To: References: Message-ID: Colors are always RGB for the moment, and unfortunately OPACITY isn't bindable at the moment. It would be a relatively easy hack though (patches gladly accepted). Feel free to create a ticket and assign it to me. Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lasma Sietinsone Sent: Friday, November 26, 2010 6:24 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] How to set feature-level opacity? Hi, Is there a way to have feature-level opacity? I have large amount of polygon data that has to be coloured RGB values straight from attribute table. I also need to set custom transparency on these polygons (alpha value). I am trying to use COLOR [rgba] or COLOR [rgb] and OPACITY [alphavals] but, unfortunately, neither approach would work. Example from my mapfile: ... CLASS STYLE COLOR [rgba] # or have use two parameters instead # COLOR [rgb] # OPACITY [alphavals] END STYLE OUTLINECOLOR 0 0 0 WIDTH 1 END END .... I understand that this has not been implemented, I am just demonstrating my intentions. Any workarounds or advice would be appreciated. Thank you, Lasma _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at state.mn.us Mon Nov 29 13:11:10 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Mon, 29 Nov 2010 15:11:10 -0600 Subject: [mapserver-users] Re: Clipping returned WFS data to the requesting bounding box In-Reply-To: <1291054439316-5785372.post@n2.nabble.com> References: <1290551237770-5768616.post@n2.nabble.com> <1291054439316-5785372.post@n2.nabble.com> Message-ID: I'm not aware of any means to do this. If you're using PostGIS perhaps there's a way to use the !BOX! hack in conjunction with some of the analytical functions but it's a long shot... (see http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg03006.html) Steve -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of mattmendick Sent: Monday, November 29, 2010 12:14 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Re: Clipping returned WFS data to the requesting bounding box Any takers? I was just thinking, is there a native way using filters to clip the returned data inside mapserver? I couldn't find any, but perhaps I was not looking in the right place. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Clipping-returned-WFS-data-to-the-requesting-bounding-box-tp5768616p5785372.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 jxjackso at franklincountyohio.gov Mon Nov 29 13:11:52 2010 From: jxjackso at franklincountyohio.gov (Jackson, John) Date: Mon, 29 Nov 2010 16:11:52 -0500 Subject: [mapserver-users] RE: shpxy example In-Reply-To: References: Message-ID: That makes perfect sense. One thing I would like work on is improving mapserver's documentation... (which I may try to write once I understand it more)... Not so much on specific pieces of syntax, but more on the thinking and theory of how to put use and combine multiple features together to put applications together. Thanks again. --John Jackson --Deputy Auditor --Franklin County Ohio From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Monday, November 29, 2010 4:02 PM To: Jackson, John; mapserver-users at lists.osgeo.org Subject: RE: shpxy example Hi John: The ids variable is used to perform a runtime substitution. It's not a MapServer specific variable, just something I used in that particular example. In the mapfile here's the county layer: LAYER NAME county STATUS OFF DATA "data/bdry_counpy2_gen500" TYPE POLYGON CLASS EXPRESSION ('[COUN]' in '%ids%') STYLE COLOR "#BD9E5D" # "#A27528" OUTLINECOLOR 50 50 50 END END CLASS COLOR 255 255 255 OUTLINECOLOR 50 50 50 END TEMPLATE "templates/county_example.html" END The value for the CGI variable ids is substituted into the first class expression at runtime. So, if ids=1,2,3,4,5 then the class expression becomes ('[COUN]' in '1,2,3,4,5'). Ideally one should set a validation pattern for the ids variable to limit it's possible values. So, once the expression is changed if the attribute COUN is in the list of ids then we draw with the pukey brown, if not, then draw white. Does this help? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jackson, John Sent: Friday, November 26, 2010 7:54 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] shpxy example HI again all, I'm working on a project where I'm trying to do the same thing as the shapexy example linked from http://mapserver.org/output/imagemaps.html I've got an html imagemap working, and enough javascript together that it correctly concatenates a link, but the link doesn't end up working... The part I don't understand how to get the map working in map mode. I'm not understanding the "ids" variable that is getting passed to mapserver. Are the id's a field in the data set? I don't see any documentation for it anywhere, and when I pass it, I just get my map back without anything selected. Again, thanks in advance for your help. Hope everyone had a wonderful thanksgiving. --John Jackson --Deputy Auditor --Franklin County Ohio -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt.mendick at pictometry.com Mon Nov 29 14:50:47 2010 From: matt.mendick at pictometry.com (mattmendick) Date: Mon, 29 Nov 2010 14:50:47 -0800 (PST) Subject: [mapserver-users] Re: Clipping returned WFS data to the requesting bounding box In-Reply-To: References: <1290551237770-5768616.post@n2.nabble.com> <1291054439316-5785372.post@n2.nabble.com> Message-ID: <1291071047266-5786297.post@n2.nabble.com> I've actually now just discovered a way that works for me. I did forget to mention that we are using PostGIS. We now use the aforementioned: DATA "wkb_geometry FROM (SELECT ST_Intersection(f.wkb_geometry, !BOX!) AS wkb_geometry, column1, column2, column3 FROM flood as f) AS subquery USING UNIQUE ogc_fid USING SRID = 4326" And as I mentioned, this works to clip the features, but does not return any attributes. The way I've now found to include the exact columns I want is to add this line to the mapfile: PROCESSING "ITEMS=column1,column2,column3" This forces mapserver to request the comma separated columns as attributes on the final query. Now the columns return, and everything is wonderful. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Clipping-returned-WFS-data-to-the-requesting-bounding-box-tp5768616p5786297.html Sent from the Mapserver - User mailing list archive at Nabble.com. From j.l.h.hartmann at uva.nl Mon Nov 29 23:30:46 2010 From: j.l.h.hartmann at uva.nl (Jan Hartmann) Date: Tue, 30 Nov 2010 08:30:46 +0100 Subject: [mapserver-users] Re: Clipping returned WFS data to the requesting bounding box In-Reply-To: References: <1290551237770-5768616.post@n2.nabble.com> <1291054439316-5785372.post@n2.nabble.com> Message-ID: <4CF4A826.8060700@uva.nl> On 2010-11-29 22:11, Lime, Steve D (DNR) wrote: > I'm not aware of any means to do this. If you're using PostGIS perhaps there's a way to use the !BOX! hack in conjunction with some of the analytical functions but it's a long shot... (see http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg03006.html) > > Quoting Paul Ramsey in the link above: " the evil "!BOX!" hack: In your data statement, if you compose it thusly: DATA "the_geom from (select gid,the_geom from thetable where the_geom && !BOX!) using unique gid" When the postgis driver encounters the evil !BOX! it will replace it with the current mapserver bounding box. " What exactly is the status of this demonic !BOX! hack? Is it described somewhere? Is the "current mapserver bounding box" queryable within MapServer itself? Jan From fjricca at gmail.com Tue Nov 30 05:03:49 2010 From: fjricca at gmail.com (=?ISO-8859-1?Q?Fco=2E_Javier_Garc=EDa_Ricca?=) Date: Tue, 30 Nov 2010 14:03:49 +0100 Subject: [mapserver-users] problems generating image Message-ID: *Hello, I'll tried to run my application with apache+php+mapserver+pmapper in RHEL. I'm getting the next errors when I run my application.* [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'sombras'.\n in /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php on line 326, referer: http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning: [MapServer Error]: msDrawRaster(): Unrecognized or unsupported image format\n in /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php on line 326, referer: http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning: [MapServer Error]: drawEPP(): /var/www/html/cultura/museos/CAC/sicac/datos_necropolis/sombras.tif is not an EPPL file.\n in /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php on line 326, referer: http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Fatal error: Call to a member function saveImage() on a non-object in /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/common.php on line 257, referer: http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis *I check this:* *./mapserv -v MapServer version 5.6.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE **gdalinfo --formats Supported Formats: VRT (rw+): Virtual Raster GTiff (rw+): GeoTIFF . . . *Everything seems ok and then I tried with: *./shp2img -m /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/config/necropolis/necropolis.map -o /var/www/html/cultura/museos/CAC/sicac/ms_tmp/prueba.jpg msDrawMap(): Image handling error. Failed to draw layer named 'sombras'.
msDrawRaster(): Image handling error. Unrecognized or unsupported image format
drawEPP(): Image handling error. /var/www/html/cultura/museos/CAC/sicac/datos_necropolis/sombras.tif is not an EPPL file.
* *I don't know what else can I try. Any idea to solve this problem. Thanks in advance ** * -- FJRicca -------------- next part -------------- An HTML attachment was scrubbed... URL: From micklesh at gmail.com Tue Nov 30 05:13:21 2010 From: micklesh at gmail.com (Michael Shishcu) Date: Tue, 30 Nov 2010 15:13:21 +0200 Subject: [mapserver-users] problems generating image In-Reply-To: References: Message-ID: Please, your map file regards 2010/11/30 Fco. Javier Garc?a Ricca > *Hello, > > I'll tried to run my application with apache+php+mapserver+pmapper in RHEL. > I'm getting the next errors when I run my application.* > > [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning: > [MapServer Error]: msDrawMap(): Failed to draw layer named 'sombras'.\n in > /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php on > line 326, referer: > http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis > [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning: > [MapServer Error]: msDrawRaster(): Unrecognized or unsupported image > format\n in > /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php on > line 326, referer: > http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis > [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning: > [MapServer Error]: drawEPP(): > /var/www/html/cultura/museos/CAC/sicac/datos_necropolis/sombras.tif is not > an EPPL file.\n in > /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php on > line 326, referer: > http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis > [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Fatal error: > Call to a member function saveImage() on a non-object in > /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/common.php on > line 257, referer: > http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis > > *I check this:* > > *./mapserv -v > MapServer version 5.6.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > > **gdalinfo --formats > Supported Formats: > VRT (rw+): Virtual Raster > GTiff (rw+): GeoTIFF > . > . > . > > *Everything seems ok and then I tried with: > > *./shp2img -m > /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/config/necropolis/necropolis.map > -o /var/www/html/cultura/museos/CAC/sicac/ms_tmp/prueba.jpg > msDrawMap(): Image handling error. Failed to draw layer named 'sombras'. >
> msDrawRaster(): Image handling error. Unrecognized or unsupported image > format
> drawEPP(): Image handling error. > /var/www/html/cultura/museos/CAC/sicac/datos_necropolis/sombras.tif is not > an EPPL file.
> * > *I don't know what else can I try. Any idea to solve this problem. > > Thanks in advance > ** > * > -- > FJRicca > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.hopfgartner at r3-gis.com Tue Nov 30 06:03:07 2010 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Tue, 30 Nov 2010 15:03:07 +0100 (CET) Subject: [mapserver-users] OWSRequest->postrequest in PHP MapScript Message-ID: <20101130140307.967021678223@mail.r3-gis.com> Is OWSRequest->postrequest implemented in the current PHP MapScript? Is it available only for CGI? We would like to use a wrapper for handling WFS request and we would like to pass the POST data to MapServer without the need to slice the XML into single setParameters() calls. Regards, Peter Hopfgartner R3 GIS Srl - GmbH http://www.r3-gis.com From Steve.Lime at state.mn.us Tue Nov 30 06:24:34 2010 From: Steve.Lime at state.mn.us (Lime, Steve D (DNR)) Date: Tue, 30 Nov 2010 08:24:34 -0600 Subject: [mapserver-users] RE: shpxy example In-Reply-To: References: , Message-ID: Glad it worked! Documentation volunteers always are welcome. MapServer is big with lots of nooks and crannies so feel free to contribute, everybody... Steve ________________________________________ From: Jackson, John [jxjackso at franklincountyohio.gov] Sent: Monday, November 29, 2010 3:11 PM To: Lime, Steve D (DNR); mapserver-users at lists.osgeo.org Subject: RE: shpxy example That makes perfect sense. One thing I would like work on is improving mapserver?s documentation? (which I may try to write once I understand it more)? Not so much on specific pieces of syntax, but more on the thinking and theory of how to put use and combine multiple features together to put applications together. Thanks again. --John Jackson --Deputy Auditor --Franklin County Ohio From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us] Sent: Monday, November 29, 2010 4:02 PM To: Jackson, John; mapserver-users at lists.osgeo.org Subject: RE: shpxy example Hi John: The ids variable is used to perform a runtime substitution. It?s not a MapServer specific variable, just something I used in that particular example. In the mapfile here?s the county layer: LAYER NAME county STATUS OFF DATA "data/bdry_counpy2_gen500" TYPE POLYGON CLASS EXPRESSION ('[COUN]' in '%ids%') STYLE COLOR "#BD9E5D" # "#A27528" OUTLINECOLOR 50 50 50 END END CLASS COLOR 255 255 255 OUTLINECOLOR 50 50 50 END TEMPLATE "templates/county_example.html" END The value for the CGI variable ids is substituted into the first class expression at runtime. So, if ids=1,2,3,4,5 then the class expression becomes (?[COUN]? in ?1,2,3,4,5?). Ideally one should set a validation pattern for the ids variable to limit it?s possible values. So, once the expression is changed if the attribute COUN is in the list of ids then we draw with the pukey brown, if not, then draw white. Does this help? Steve From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jackson, John Sent: Friday, November 26, 2010 7:54 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] shpxy example HI again all, I?m working on a project where I?m trying to do the same thing as the shapexy example linked from http://mapserver.org/output/imagemaps.html I?ve got an html imagemap working, and enough javascript together that it correctly concatenates a link, but the link doesn?t end up working? The part I don?t understand how to get the map working in map mode. I?m not understanding the ?ids? variable that is getting passed to mapserver. Are the id?s a field in the data set? I don?t see any documentation for it anywhere, and when I pass it, I just get my map back without anything selected. Again, thanks in advance for your help. Hope everyone had a wonderful thanksgiving. --John Jackson --Deputy Auditor --Franklin County Ohio From jmckenna at gatewaygeomatics.com Tue Nov 30 06:31:12 2010 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 30 Nov 2010 10:31:12 -0400 Subject: [mapserver-users] problems generating image In-Reply-To: References: Message-ID: <4CF50AB0.1070807@gatewaygeomatics.com> Hello, Can GDAL read your sombras.tif file? (what does 'gdalinfo sombras.tif' return?) -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 10-11-30 9:03 AM, Fco. Javier Garc?a Ricca wrote: > *Hello, > > I'll tried to run my application with apache+php+mapserver+pmapper in > RHEL. I'm getting the next errors when I run my application.* > > [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning: > [MapServer Error]: msDrawMap(): Failed to draw layer named 'sombras'.\n > in > /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php > on line 326, referer: > http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis > [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning: > [MapServer Error]: msDrawRaster(): Unrecognized or unsupported image > format\n in > /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php > on line 326, referer: > http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis > [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning: > [MapServer Error]: drawEPP(): > /var/www/html/cultura/museos/CAC/sicac/datos_necropolis/sombras.tif is > not an EPPL file.\n in > /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php > on line 326, referer: > http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis > [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Fatal > error: Call to a member function saveImage() on a non-object in > /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/common.php > on line 257, referer: > http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis > > *I check this:* > > *./mapserv -v > MapServer version 5.6.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > > **gdalinfo --formats > Supported Formats: > VRT (rw+): Virtual Raster > GTiff (rw+): GeoTIFF > . > . > . > > *Everything seems ok and then I tried with: > > *./shp2img -m > /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/config/necropolis/necropolis.map > -o /var/www/html/cultura/museos/CAC/sicac/ms_tmp/prueba.jpg > msDrawMap(): Image handling error. Failed to draw layer named 'sombras'. >
> msDrawRaster(): Image handling error. Unrecognized or unsupported image > format
> drawEPP(): Image handling error. > /var/www/html/cultura/museos/CAC/sicac/datos_necropolis/sombras.tif is > not an EPPL file.
> * > *I don't know what else can I try. Any idea to solve this problem. > > Thanks in advance > From idnael at gmail.com Tue Nov 30 06:59:33 2010 From: idnael at gmail.com (Daniel Carvalho) Date: Tue, 30 Nov 2010 14:59:33 +0000 Subject: [mapserver-users] mapscript for WFS Message-ID: <4CF51155.50207@gmail.com> Hi can someone show a mapscript example that produces WFS and can be called as a service? The python and php examples included in MapServer only produce html output. (I want to produce a layer where the number of attributes vary according to the client request, and have to perform many sql statements to get the data. I think I cannot describe that in a simple mapfile... so have to use mapscript) thks PS And I take this opportunity to thank all the good responses I got from my previous posts! -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 554 bytes Desc: OpenPGP digital signature URL: From aboudreault at mapgears.com Tue Nov 30 07:01:30 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Tue, 30 Nov 2010 10:01:30 -0500 Subject: [mapserver-users] OWSRequest->postrequest in PHP MapScript In-Reply-To: <20101130140307.967021678223@mail.r3-gis.com> References: <20101130140307.967021678223@mail.r3-gis.com> Message-ID: <201011301001.31220.aboudreault@mapgears.com> Peter, By the current PHP MapScript, I assume you mean MapServer 5.6.5. Unfortunately, I doubt it will work in that version. However, the OWSRequest- >loadParams method supports post parameters in MS-dev. It will be available in MS 6.0. Alan On November 30, 2010 09:03:07 am Peter Hopfgartner wrote: > Is OWSRequest->postrequest implemented in the current PHP MapScript? Is it > available only for CGI? We would like to use a wrapper for handling WFS > request and we would like to pass the POST data to MapServer without the > need to slice the XML into single setParameters() calls. > > Regards, > > Peter Hopfgartner > > R3 GIS Srl - GmbH > http://www.r3-gis.com > > > _______________________________________________ > 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 From aboudreault at mapgears.com Tue Nov 30 07:10:52 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Tue, 30 Nov 2010 10:10:52 -0500 Subject: [mapserver-users] OWSRequest->postrequest in PHP MapScript In-Reply-To: <201011301001.31220.aboudreault@mapgears.com> References: <20101130140307.967021678223@mail.r3-gis.com> <201011301001.31220.aboudreault@mapgears.com> Message-ID: <201011301010.52915.aboudreault@mapgears.com> Well, I may be wrong... the php code and the cgiutil code have been modified.. let me give it a try today and will get back to you. Alan On November 30, 2010 10:01:30 am Alan Boudreault wrote: > Peter, > > By the current PHP MapScript, I assume you mean MapServer 5.6.5. > Unfortunately, I doubt it will work in that version. However, the > OWSRequest- > > >loadParams method supports post parameters in MS-dev. It will be available > >in > > MS 6.0. > > Alan > > On November 30, 2010 09:03:07 am Peter Hopfgartner wrote: > > Is OWSRequest->postrequest implemented in the current PHP MapScript? Is > > it available only for CGI? We would like to use a wrapper for handling > > WFS request and we would like to pass the POST data to MapServer without > > the need to slice the XML into single setParameters() calls. > > > > Regards, > > > > Peter Hopfgartner > > > > R3 GIS Srl - GmbH > > http://www.r3-gis.com > > > > > > _______________________________________________ > > 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 From fjricca at gmail.com Tue Nov 30 07:31:32 2010 From: fjricca at gmail.com (=?ISO-8859-1?Q?Fco=2E_Javier_Garc=EDa_Ricca?=) Date: Tue, 30 Nov 2010 16:31:32 +0100 Subject: [mapserver-users] problems generating image In-Reply-To: <4CF50AB0.1070807@gatewaygeomatics.com> References: <4CF50AB0.1070807@gatewaygeomatics.com> Message-ID: Hello Jeff, Yes, I use gdalinfo and gdal_translate and I have not problems. 2010/11/30 Jeff McKenna > Hello, > > Can GDAL read your sombras.tif file? (what does 'gdalinfo sombras.tif' > return?) > > -jeff > > > -- > Jeff McKenna > MapServer Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > On 10-11-30 9:03 AM, Fco. Javier Garc?a Ricca wrote: > >> *Hello, >> >> >> I'll tried to run my application with apache+php+mapserver+pmapper in >> RHEL. I'm getting the next errors when I run my application.* >> >> [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning: >> [MapServer Error]: msDrawMap(): Failed to draw layer named 'sombras'.\n >> in >> /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php >> on line 326, referer: >> >> http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis >> [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning: >> [MapServer Error]: msDrawRaster(): Unrecognized or unsupported image >> format\n in >> /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php >> on line 326, referer: >> >> http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis >> [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning: >> [MapServer Error]: drawEPP(): >> /var/www/html/cultura/museos/CAC/sicac/datos_necropolis/sombras.tif is >> not an EPPL file.\n in >> /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php >> on line 326, referer: >> >> http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis >> [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Fatal >> error: Call to a member function saveImage() on a non-object in >> /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/common.php >> on line 257, referer: >> >> http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis >> >> *I check this:* >> >> *./mapserv -v >> MapServer version 5.6.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV >> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER >> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=OGR >> INPUT=GDAL INPUT=SHAPEFILE >> >> **gdalinfo --formats >> Supported Formats: >> VRT (rw+): Virtual Raster >> GTiff (rw+): GeoTIFF >> . >> . >> . >> >> *Everything seems ok and then I tried with: >> >> *./shp2img -m >> >> /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/config/necropolis/necropolis.map >> -o /var/www/html/cultura/museos/CAC/sicac/ms_tmp/prueba.jpg >> msDrawMap(): Image handling error. Failed to draw layer named 'sombras'. >>
>> msDrawRaster(): Image handling error. Unrecognized or unsupported image >> format
>> drawEPP(): Image handling error. >> /var/www/html/cultura/museos/CAC/sicac/datos_necropolis/sombras.tif is >> not an EPPL file.
>> * >> *I don't know what else can I try. Any idea to solve this problem. >> >> Thanks in advance >> >> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- FJRicca -------------- next part -------------- An HTML attachment was scrubbed... URL: From fjricca at gmail.com Tue Nov 30 07:35:32 2010 From: fjricca at gmail.com (=?ISO-8859-1?Q?Fco=2E_Javier_Garc=EDa_Ricca?=) Date: Tue, 30 Nov 2010 16:35:32 +0100 Subject: [mapserver-users] problems generating image In-Reply-To: References: <4CF50AB0.1070807@gatewaygeomatics.com> Message-ID: *I forgot it: gdalinfo /var/www/html/cultura/museos/CAC/sicac/datos_necropolis/sombras.tif Driver: GTiff/GeoTIFF Files: /var/www/html/cultura/museos/CAC/sicac/datos_necropolis/sombras.tif Size is 5970, 2639 Coordinate System is `' Origin = (217379.206235651305178,4164649.866302459035069) Pixel Size = (15.000000000000000,-15.000000000000000) Metadata: EXIF_Orientation=1 EXIF_XResolution=(72) EXIF_YResolution=(72) EXIF_ResolutionUnit=2 EXIF_Software=Adobe Photoshop CS4 Windows EXIF_DateTime=2010:03:16 14:34:05 EXIF_ColorSpace=1 EXIF_PixelXDimension=5970 EXIF_PixelYDimension=2639 Image Structure Metadata: INTERLEAVE=PIXEL Corner Coordinates: Upper Left ( 217379.206, 4164649.866) Lower Left ( 217379.206, 4125064.866) Upper Right ( 306929.206, 4164649.866) Lower Right ( 306929.206, 4125064.866) Center ( 262154.206, 4144857.366) Band 1 Block=5970x1 Type=Byte, ColorInterp=Red Band 2 Block=5970x1 Type=Byte, ColorInterp=Green Band 3 Block=5970x1 Type=Byte, ColorInterp=Blue* 2010/11/30 Fco. Javier Garc?a Ricca > Hello Jeff, > > Yes, I use gdalinfo and gdal_translate and I have not problems. > > > > > > 2010/11/30 Jeff McKenna > > Hello, >> >> Can GDAL read your sombras.tif file? (what does 'gdalinfo sombras.tif' >> return?) >> >> -jeff >> >> >> -- >> Jeff McKenna >> MapServer Consulting and Training Services >> http://www.gatewaygeomatics.com/ >> >> >> >> On 10-11-30 9:03 AM, Fco. Javier Garc?a Ricca wrote: >> >>> *Hello, >>> >>> >>> I'll tried to run my application with apache+php+mapserver+pmapper in >>> RHEL. I'm getting the next errors when I run my application.* >>> >>> [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning: >>> [MapServer Error]: msDrawMap(): Failed to draw layer named 'sombras'.\n >>> in >>> /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php >>> on line 326, referer: >>> >>> http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis >>> [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning: >>> [MapServer Error]: msDrawRaster(): Unrecognized or unsupported image >>> format\n in >>> /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php >>> on line 326, referer: >>> >>> http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis >>> [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning: >>> [MapServer Error]: drawEPP(): >>> /var/www/html/cultura/museos/CAC/sicac/datos_necropolis/sombras.tif is >>> not an EPPL file.\n in >>> /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php >>> on line 326, referer: >>> >>> http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis >>> [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Fatal >>> error: Call to a member function saveImage() on a non-object in >>> /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/common.php >>> on line 257, referer: >>> >>> http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis >>> >>> *I check this:* >>> >>> *./mapserv -v >>> MapServer version 5.6.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >>> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV >>> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER >>> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=OGR >>> INPUT=GDAL INPUT=SHAPEFILE >>> >>> **gdalinfo --formats >>> Supported Formats: >>> VRT (rw+): Virtual Raster >>> GTiff (rw+): GeoTIFF >>> . >>> . >>> . >>> >>> *Everything seems ok and then I tried with: >>> >>> *./shp2img -m >>> >>> /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/config/necropolis/necropolis.map >>> -o /var/www/html/cultura/museos/CAC/sicac/ms_tmp/prueba.jpg >>> msDrawMap(): Image handling error. Failed to draw layer named 'sombras'. >>>
>>> msDrawRaster(): Image handling error. Unrecognized or unsupported image >>> format
>>> drawEPP(): Image handling error. >>> /var/www/html/cultura/museos/CAC/sicac/datos_necropolis/sombras.tif is >>> not an EPPL file.
>>> * >>> *I don't know what else can I try. Any idea to solve this problem. >>> >>> Thanks in advance >>> >>> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > > -- > FJRicca > -- FJRicca http://picasaweb.google.es/fjricca http://perdonaqueseasoez.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.hopfgartner at r3-gis.com Tue Nov 30 08:02:00 2010 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Tue, 30 Nov 2010 17:02:00 +0100 (CET) Subject: [mapserver-users] OWSRequest->postrequest in PHP MapScript Message-ID: <20101130160200.8C9B91678223@mail.r3-gis.com> Thanks! Peter Hopfgartner R3 GIS Srl - GmbH http://www.r3-gis.com --------Alan Boudreault wrote-------- Subject: Re: [mapserver-users] OWSRequest->postrequest in PHP MapScript Date: 30.11.2010 16:10 >Well, I may be wrong... the php code and the cgiutil code have been >modified.. >let me give it a try today and will get back to you. > >Alan > >On November 30, 2010 10:01:30 am Alan Boudreault wrote: >> Peter, >> >> By the current PHP MapScript, I assume you mean MapServer 5.6.5. >> Unfortunately, I doubt it will work in that version. However, the >> OWSRequest- >> >> >loadParams method supports post parameters in MS-dev. It will be >available >> >in >> >> MS 6.0. >> >> Alan >> >> On November 30, 2010 09:03:07 am Peter Hopfgartner wrote: >> > Is OWSRequest->postrequest implemented in the current PHP MapScript? >Is >> > it available only for CGI? We would like to use a wrapper for >handling >> > WFS request and we would like to pass the POST data to MapServer >without >> > the need to slice the XML into single setParameters() calls. >> > >> > Regards, >> > >> > Peter Hopfgartner >> > >> > R3 GIS Srl - GmbH >> > http://www.r3-gis.com >> > >> > >> > _______________________________________________ >> > 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 > From aboudreault at mapgears.com Tue Nov 30 08:44:49 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Tue, 30 Nov 2010 11:44:49 -0500 Subject: [mapserver-users] OWSRequest->postrequest in PHP MapScript In-Reply-To: <20101130160200.8C9B91678223@mail.r3-gis.com> References: <20101130160200.8C9B91678223@mail.r3-gis.com> Message-ID: <201011301144.50202.aboudreault@mapgears.com> Well, not sure what's wrong with my test case... but I'm just unable to get the loadparams() method working in MapServer 5.4.2/5.6.5. It seems to crash without any exception. I see nothing in my debug file neither. The http request returns no data. Everything works like a charm using MapServer-dev, GET params and POST params. Alan On November 30, 2010 11:02:00 am Peter Hopfgartner wrote: > Thanks! > > Peter Hopfgartner > > R3 GIS Srl - GmbH > http://www.r3-gis.com > > > --------Alan Boudreault wrote-------- > Subject: Re: [mapserver-users] OWSRequest->postrequest in PHP MapScript > Date: 30.11.2010 16:10 > > >Well, I may be wrong... the php code and the cgiutil code have been > >modified.. > >let me give it a try today and will get back to you. > > > >Alan > > > >On November 30, 2010 10:01:30 am Alan Boudreault wrote: > >> Peter, > >> > >> By the current PHP MapScript, I assume you mean MapServer 5.6.5. > >> Unfortunately, I doubt it will work in that version. However, the > >> OWSRequest- > >> > >> >loadParams method supports post parameters in MS-dev. It will be > > > >available > > > >> >in > >> > >> MS 6.0. > >> > >> Alan > >> > >> On November 30, 2010 09:03:07 am Peter Hopfgartner wrote: > >> > Is OWSRequest->postrequest implemented in the current PHP MapScript? > > > >Is > > > >> > it available only for CGI? We would like to use a wrapper for > > > >handling > > > >> > WFS request and we would like to pass the POST data to MapServer > > > >without > > > >> > the need to slice the XML into single setParameters() calls. > >> > > >> > Regards, > >> > > >> > Peter Hopfgartner > >> > > >> > R3 GIS Srl - GmbH > >> > http://www.r3-gis.com > >> > > >> > > >> > _______________________________________________ > >> > 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 From peter.hopfgartner at r3-gis.com Tue Nov 30 09:01:15 2010 From: peter.hopfgartner at r3-gis.com (Peter Hopfgartner) Date: Tue, 30 Nov 2010 18:01:15 +0100 (CET) Subject: [mapserver-users] OWSRequest->postrequest in PHP MapScript Message-ID: <20101130170115.B6BFC1678222@mail.r3-gis.com> Are you using PHP in CGI mode? loadparams() might not work with 5.6 when PHP is used as an Apache module. Peter Hopfgartner R3 GIS Srl - GmbH http://www.r3-gis.com --------Alan Boudreault wrote-------- Subject: Re: [mapserver-users] OWSRequest->postrequest in PHP MapScript Date: 30.11.2010 17:44 >Well, not sure what's wrong with my test case... but I'm just unable to >get >the loadparams() method working in MapServer 5.4.2/5.6.5. It seems to >crash >without any exception. I see nothing in my debug file neither. The http >request returns no data. > >Everything works like a charm using MapServer-dev, GET params and POST >params. > >Alan > >On November 30, 2010 11:02:00 am Peter Hopfgartner wrote: >> Thanks! >> >> Peter Hopfgartner >> >> R3 GIS Srl - GmbH >> http://www.r3-gis.com >> >> >> --------Alan Boudreault wrote-------- >> Subject: Re: [mapserver-users] OWSRequest->postrequest in PHP MapScript >> Date: 30.11.2010 16:10 >> >> >Well, I may be wrong... the php code and the cgiutil code have been >> >modified.. >> >let me give it a try today and will get back to you. >> > >> >Alan >> > >> >On November 30, 2010 10:01:30 am Alan Boudreault wrote: >> >> Peter, >> >> >> >> By the current PHP MapScript, I assume you mean MapServer 5.6.5. >> >> Unfortunately, I doubt it will work in that version. However, the >> >> OWSRequest- >> >> >> >> >loadParams method supports post parameters in MS-dev. It will be >> > >> >available >> > >> >> >in >> >> >> >> MS 6.0. >> >> >> >> Alan >> >> >> >> On November 30, 2010 09:03:07 am Peter Hopfgartner wrote: >> >> > Is OWSRequest->postrequest implemented in the current PHP >MapScript? >> > >> >Is >> > >> >> > it available only for CGI? We would like to use a wrapper for >> > >> >handling >> > >> >> > WFS request and we would like to pass the POST data to MapServer >> > >> >without >> > >> >> > the need to slice the XML into single setParameters() calls. >> >> > >> >> > Regards, >> >> > >> >> > Peter Hopfgartner >> >> > >> >> > R3 GIS Srl - GmbH >> >> > http://www.r3-gis.com >> >> > >> >> > >> >> > _______________________________________________ >> >> > 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 > From aboudreault at mapgears.com Tue Nov 30 09:08:18 2010 From: aboudreault at mapgears.com (Alan Boudreault) Date: Tue, 30 Nov 2010 12:08:18 -0500 Subject: [mapserver-users] OWSRequest->postrequest in PHP MapScript In-Reply-To: <20101130170115.B6BFC1678222@mail.r3-gis.com> References: <20101130170115.B6BFC1678222@mail.r3-gis.com> Message-ID: <201011301208.18270.aboudreault@mapgears.com> Yes I'm using the php cgi mode. On November 30, 2010 12:01:15 pm Peter Hopfgartner wrote: > Are you using PHP in CGI mode? loadparams() might not work with 5.6 when > PHP is used as an Apache module. > > Peter Hopfgartner > > R3 GIS Srl - GmbH > http://www.r3-gis.com > > > --------Alan Boudreault wrote-------- > Subject: Re: [mapserver-users] OWSRequest->postrequest in PHP MapScript > Date: 30.11.2010 17:44 > > >Well, not sure what's wrong with my test case... but I'm just unable to > >get > >the loadparams() method working in MapServer 5.4.2/5.6.5. It seems to > >crash > >without any exception. I see nothing in my debug file neither. The http > >request returns no data. > > > >Everything works like a charm using MapServer-dev, GET params and POST > >params. > > > >Alan > > > >On November 30, 2010 11:02:00 am Peter Hopfgartner wrote: > >> Thanks! > >> > >> Peter Hopfgartner > >> > >> R3 GIS Srl - GmbH > >> http://www.r3-gis.com > >> > >> > >> --------Alan Boudreault wrote-------- > >> Subject: Re: [mapserver-users] OWSRequest->postrequest in PHP MapScript > >> Date: 30.11.2010 16:10 > >> > >> >Well, I may be wrong... the php code and the cgiutil code have been > >> >modified.. > >> >let me give it a try today and will get back to you. > >> > > >> >Alan > >> > > >> >On November 30, 2010 10:01:30 am Alan Boudreault wrote: > >> >> Peter, > >> >> > >> >> By the current PHP MapScript, I assume you mean MapServer 5.6.5. > >> >> Unfortunately, I doubt it will work in that version. However, the > >> >> OWSRequest- > >> >> > >> >> >loadParams method supports post parameters in MS-dev. It will be > >> > > >> >available > >> > > >> >> >in > >> >> > >> >> MS 6.0. > >> >> > >> >> Alan > >> >> > >> >> On November 30, 2010 09:03:07 am Peter Hopfgartner wrote: > >> >> > Is OWSRequest->postrequest implemented in the current PHP > > > >MapScript? > > > >> >Is > >> > > >> >> > it available only for CGI? We would like to use a wrapper for > >> > > >> >handling > >> > > >> >> > WFS request and we would like to pass the POST data to MapServer > >> > > >> >without > >> > > >> >> > the need to slice the XML into single setParameters() calls. > >> >> > > >> >> > Regards, > >> >> > > >> >> > Peter Hopfgartner > >> >> > > >> >> > R3 GIS Srl - GmbH > >> >> > http://www.r3-gis.com > >> >> > > >> >> > > >> >> > _______________________________________________ > >> >> > 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 From vsaraf.gmu at gmail.com Tue Nov 30 10:05:43 2010 From: vsaraf.gmu at gmail.com (Varun saraf) Date: Tue, 30 Nov 2010 13:05:43 -0500 Subject: [mapserver-users] Google Maps Tile overlay shift Message-ID: Hi, For some time now, I have been using Mapserver with Tilecache and Google maps to display census tract overlays to users. However, the users complain that the overlay is not accurate if they zoom into the map (say level 13 onwards). Is this a problem with the projection scheme being used? I think my data is in epsg 4326 format and google uses 900913 I think. I insrted this into the Proj 4 epsg file but still the overlays are shifted by a bit. If anyone who has solved this problem can direct me, it would be a great help. BTW, I use ms4w for windows and the GtileOverlay method with tilecache. Thanks, Varun From geomartino at gmail.com Tue Nov 30 14:01:49 2010 From: geomartino at gmail.com (Martin Ouellet) Date: Tue, 30 Nov 2010 17:01:49 -0500 Subject: [mapserver-users] external graphic symbol don't follow the GetStyles method Message-ID: Hi, When I used a external graphic element in a SLD like this: test indicatif1030050000 40000.000000 GIF Then I used the temporary mapfile generated by the call to define the same symbology but in my mapfile. SYMBOL NAME " http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif" TYPE PIXMAP IMAGE "/srv/mapfile/ms_tmp/4cf56a54_49f8_1.gif" GAP -11 TRANSPARENT 0 END CLASS NAME "test" EXPRESSION ([indicatif] = 1030050000) MAXSCALEDENOM 40000 STYLE ANGLE 360 COLOR 0 0 0 SIZE 5.5 SYMBOL " http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif" WIDTH 1 END END Question: Finally, I would like to expose this symbology through the GetStyles() method but it seem to be completely ignored? test indicatif1030050000 40000.000000 Is it normal? Thank you in advance! MartinO -------------- next part -------------- An HTML attachment was scrubbed... URL: From ciesaremedina at hotmail.com Tue Nov 30 15:35:15 2010 From: ciesaremedina at hotmail.com (=?Windows-1252?B?Q+lzYXIgTWVkaW5h?=) Date: Tue, 30 Nov 2010 20:35:15 -0300 Subject: [mapserver-users] Foss4g in CHILE Message-ID: Hi all, how are you?As some already know, I'm in the early organization of the 1st FOSS4G event in Chile, in conjunction with a university here in Santiago of Chile, that will be held in march 2011 For this, I need some cooperation in particular issues, at least for those who are here in Chile, need use cases or workshops for: ? gvsig? geoserver? mapserver? postgresql/postgis Within the next few weeks we should be launching the program, the Web and more.For those who dare to cooperate on any issue, please contact me either on the list or my personal email ciesaremedina (at) gmail (dot) com best regards C?sarhttp://www.openmaps.cl http://www.openmaps.cl/cv http://www.openmaps.cl/blog mail: ciesareMedina (at) gmail (dot) com msn: ciesareMedina (at) hotmail (dot) com skype: ciesare_medina twitter: @ciesaremedina -------------- next part -------------- An HTML attachment was scrubbed... URL: From fjricca at gmail.com Tue Nov 30 23:49:50 2010 From: fjricca at gmail.com (=?ISO-8859-1?Q?Fco=2E_Javier_Garc=EDa_Ricca?=) Date: Wed, 1 Dec 2010 08:49:50 +0100 Subject: [mapserver-users] problems generating image In-Reply-To: <615184.5367.qm@web38201.mail.mud.yahoo.com> References: <4CF50AB0.1070807@gatewaygeomatics.com> <615184.5367.qm@web38201.mail.mud.yahoo.com> Message-ID: Hello Carlos, I think that it isn't the problem because I have the same data in another configuration in Centos and I don't get this problem. I don?t make any warping with the data, only show it. I try more things but I am very lost and I don't find the solution. Please, anybody have any idea? Thanks 2010/11/30 Carlos Ruiz > Javier, > > Lo que pasa es que el archivo no tiene definida un sistema de coordenadas: > > *Coordinate System is `'* > > Debes de abrirlo con algun software para asignarle un sistema de > coordenadas geogr?ficas o una proyecci?n. > > Saludos desde Guadalajara, M?xico > > IC Carlos Ruiz > > ------------------------------ > > -------------- next part -------------- An HTML attachment was scrubbed... URL: