From gautamvs at gmail.com Sun Mar 1 22:19:32 2009 From: gautamvs at gmail.com (gautamvs) Date: Sun, 1 Mar 2009 22:19:32 -0800 (PST) Subject: [mapserver-users] Pyhton mapscript import error In-Reply-To: <20090228120158.GC22639@metacarta.com> References: <1234883796448-2341344.post@n2.nabble.com> <499B63C6.9000507@neogeo-online.net> <1234948665484-2345804.post@n2.nabble.com> <1235653828284-2389536.post@n2.nabble.com> <1235818096783-2400381.post@n2.nabble.com> <20090228120158.GC22639@metacarta.com> Message-ID: <1235974772229-2407737.post@n2.nabble.com> Hi Thomas and Chris Thanks for the feedback. I tried with 'MIMETYPE image/png' in AGG output block. Its working now. I am able to get the png antialiase images using Tilecache. Thanks again. One more thing I would like to ask, is there any issue with AGG + PNG8 + transparent? Because when I set TRANSPARENT ON I get the black image. Enclosed are the both images. Thanks Gautam http://n2.nabble.com/file/n2407737/mapserv_transparent_off.png mapserv_transparent_off.png http://n2.nabble.com/file/n2407737/mapserv_transparent_on.png mapserv_transparent_on.png -- View this message in context: http://n2.nabble.com/Pyhton-mapscript-import-error-tp2341344p2407737.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Sun Mar 1 22:23:45 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 2 Mar 2009 07:23:45 +0100 Subject: [mapserver-users] Pyhton mapscript import error In-Reply-To: <1235974772229-2407737.post@n2.nabble.com> References: <1234883796448-2341344.post@n2.nabble.com> <499B63C6.9000507@neogeo-online.net> <1234948665484-2345804.post@n2.nabble.com> <1235653828284-2389536.post@n2.nabble.com> <1235818096783-2400381.post@n2.nabble.com> <20090228120158.GC22639@metacarta.com> <1235974772229-2407737.post@n2.nabble.com> Message-ID: mapserver version and your outputformat bloc please. -- thomas On Mon, Mar 2, 2009 at 07:19, gautamvs wrote: > > Hi Thomas and Chris > > Thanks for the feedback. I tried with 'MIMETYPE image/png' in AGG output > block. Its working now. I am able to get the png antialiase images using > Tilecache. Thanks again. > > One more thing I would like to ask, is there any issue with AGG + PNG8 + > transparent? Because when I set TRANSPARENT ON I get the black image. > Enclosed are the both images. > > Thanks > Gautam > http://n2.nabble.com/file/n2407737/mapserv_transparent_off.png > mapserv_transparent_off.png > http://n2.nabble.com/file/n2407737/mapserv_transparent_on.png > mapserv_transparent_on.png > -- > View this message in context: http://n2.nabble.com/Pyhton-mapscript-import-error-tp2341344p2407737.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 thomas.bonfort at gmail.com Sun Mar 1 22:28:33 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Mon, 2 Mar 2009 07:28:33 +0100 Subject: [mapserver-users] Pyhton mapscript import error In-Reply-To: References: <1234883796448-2341344.post@n2.nabble.com> <499B63C6.9000507@neogeo-online.net> <1234948665484-2345804.post@n2.nabble.com> <1235653828284-2389536.post@n2.nabble.com> <1235818096783-2400381.post@n2.nabble.com> <20090228120158.GC22639@metacarta.com> <1235974772229-2407737.post@n2.nabble.com> Message-ID: sorry, saw you're using 5.2.1 in the first post. you must configure mapserver with --with-experimental-png for png8 to work with transparency -- thomas On Mon, Mar 2, 2009 at 07:23, thomas bonfort wrote: > mapserver version and your outputformat bloc please. > > -- > thomas > > On Mon, Mar 2, 2009 at 07:19, gautamvs wrote: >> >> Hi Thomas and Chris >> >> Thanks for the feedback. I tried with 'MIMETYPE image/png' in AGG output >> block. Its working now. I am able to get the png antialiase images using >> Tilecache. Thanks again. >> >> One more thing I would like to ask, is there any issue with AGG + PNG8 + >> transparent? Because when I set TRANSPARENT ON I get the black image. >> Enclosed are the both images. >> >> Thanks >> Gautam >> http://n2.nabble.com/file/n2407737/mapserv_transparent_off.png >> mapserv_transparent_off.png >> http://n2.nabble.com/file/n2407737/mapserv_transparent_on.png >> mapserv_transparent_on.png >> -- >> View this message in context: http://n2.nabble.com/Pyhton-mapscript-import-error-tp2341344p2407737.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 mrk.leslie at gmail.com Sun Mar 1 22:21:40 2009 From: mrk.leslie at gmail.com (Mark Leslie) Date: Mon, 2 Mar 2009 17:21:40 +1100 Subject: [mapserver-users] FOSS4G Workshop and Tutorial Submission deadline extended until Mar 9 Message-ID: <49AB7AF4.3080201@gmail.com> Sydney, Australia. 2 March 2009. In response to requests from presenters, the deadline for the FOSS4G 2009 workshop and tutorial abstract submissions has been extended by one week, to Monday 9 March 2009. If you are considering submitting a workshop, please notify your intent by emailing the Workshop/Tutorial coordinator, Mark Leslie m a r k . l e s l i e AT l i s a s o f t . c o m About FOSS4G FOSS4G, held 20-23 October 2009 in Sydney, Australia, is the international "gathering of tribes" for open source geospatial communities. The theme for the FOSS4G 2009 conference will be "User Driven". Users and developers are encouraged present their latest projects and software to demonstrate the power of Open Source for system integration through a series of workshop sessions and tutorial presentations. Session participants should expect to see presentations on both geospatial open source and propriety software integration along with pure open source solutions. Workshops Workshops are expected to be a hands-on experience with participants following along with the instructor, working directly with the application under discussion. All workshop rooms will be equipped with computers (two students sharing one system) to support this vision. Workshop computers will pre-installed with a basic image containing standard packages running in a Windows XP environment. A projector will be provided for each computer room for use within a workshop. Instructors will need to discuss pre-installation requirements with the Conference Organising Committee if required. Workshops are expected to require considerable effort to create, with past experience showing that three days of preparation per hour of presentation are required to produce a high quality workshop. Additionally you will be expected to develop material for attendees to take home with them, such as handouts, workbook, CD-ROMs etc. Due to the effort involved in producing and presenting a workshop, instructors will receive a single complementary registration to the conference for delivering a workshop. All workshop submissions will be considered, but particular interest will be shown in the following topics: * Practical Introduction to ____ * Integrating Open Source * Spatial Data Privacy and Security Tutorials Tutorial rooms will not be equipped with computers, however presenters may optionally make use of delegate laptops and the FOSS4G LiveDVD. At least 80% of delegates are expected to be carrying a laptop and FOSS4G LiveDVDs will be given to all delegates. Preference will be given to hands-on tutorials. Any hands-on aspects to a tutorial will be the responsibility of the presenter and needs to be described in the tutorial description. Presenters making use of the Live DVD or Climate Change Integration Plugfest (CCIP) will be expected to contribute to testing pre-releases to ensure material and software is properly installed. To discuss your requirements for LiveDVD, please contact the organising committee: http://2009.foss4g.org/contacts/. All tutorial submissions will be considered, but particular interest will be shown in the following topics: * Practical introductions * Interoperability * Spatial data accuracy * Spatial data privacy * Spatial data security * System implementation * Data migration ------------------------------------------------------------------------ Submission instructions and templates are available at http://2009.foss4g.org/workshops/and http://2009.foss4g.org/tutorials/. The deadline for workshop / tutorial submissions is March 9, 2009 From kmanoj-pg7 at iiitmk.ac.in Mon Mar 2 02:30:35 2009 From: kmanoj-pg7 at iiitmk.ac.in (kmanoj-pg7 kmanoj-pg7) Date: Mon, 2 Mar 2009 16:00:35 +0530 Subject: [mapserver-users] PHP mapscript - browser showing blank page Message-ID: <9ab9b8cf0903020230n5c7d6d09y576608f2ade3b7b7@mail.gmail.com> Dear users, I am using mapserver 5.0.3 , php 5.2.5 version on fedora 9. I am trying to work out the examples given in the mapserver site, but i am getting the blank page when i call the link through browser http://localhost/mapfiles/sampletest/htdocs/kerala.php Mapscript is working fine without making any problem, but when i trying to import mapfile in PHP and cascade it through the mapserver, it rendering blank page in the browser. i think it could be a problem of extent. Herewith i am attaching my mapfile and php file for your kind perusal can anyone please puzzled out this problem. suggestion will be appreciated. Thanks, kapilmanoj -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: kerala.map Type: application/octet-stream Size: 5477 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: kerala.php Type: application/octet-stream Size: 347 bytes Desc: not available URL: From arjendk at gmx.net Mon Mar 2 02:50:41 2009 From: arjendk at gmx.net (Arjen de Korte) Date: Mon, 02 Mar 2009 11:50:41 +0100 Subject: [mapserver-users] How to use NQUERY to identify features at a point? Message-ID: <1235991041.17015.1303121037@webmail.messagingengine.com> Dear Mapserver users, I would like to use a Mapserver NQUERY to identify features at a point on a map. I am now calling the following url using AJAX (I have defined XML templates in my mapfile to get an XML result): http://localhost/cgi-bin/mapserv.exe?map=my.map&mode=nquery&imgxy=45+246&layers=points&mapext=1.335555+51.285252+5.678991+55.101323&mapsize=594+522 I am getting a result, but Mapserver returns ALL features in the given bounding box (mapext), while I would like to get the features around the point given in imgxy (within the tolerance as defined in the mapfile). I have also tried this with mapxy and map coordinates instead of imgxy, but this gives the same results. My Mapserver version is 5.0.0. Could someone instruct me on the correct usage of NQUERY in this case? Thank you, kind regards, Arjen. From gautamvs at gmail.com Mon Mar 2 03:34:28 2009 From: gautamvs at gmail.com (gautamvs) Date: Mon, 2 Mar 2009 03:34:28 -0800 (PST) Subject: [mapserver-users] Pyhton mapscript import error In-Reply-To: References: <1234883796448-2341344.post@n2.nabble.com> <499B63C6.9000507@neogeo-online.net> <1234948665484-2345804.post@n2.nabble.com> <1235653828284-2389536.post@n2.nabble.com> <1235818096783-2400381.post@n2.nabble.com> <20090228120158.GC22639@metacarta.com> <1235974772229-2407737.post@n2.nabble.com> Message-ID: <1235993668982-2408712.post@n2.nabble.com> Hi Thomas, Thanks, Mapserver is working now with the option you had given. I am able to get 8bit transparent png image. Thanks Gautam -- View this message in context: http://n2.nabble.com/Pyhton-mapscript-import-error-tp2341344p2408712.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pgiannini at bytewise.it Mon Mar 2 05:16:52 2009 From: pgiannini at bytewise.it (Pietro Giannini) Date: Mon, 02 Mar 2009 14:16:52 +0100 Subject: [mapserver-users] PHP mapscript - browser showing blank page In-Reply-To: <9ab9b8cf0903020230n5c7d6d09y576608f2ade3b7b7@mail.gmail.com> References: <9ab9b8cf0903020230n5c7d6d09y576608f2ade3b7b7@mail.gmail.com> Message-ID: <49ABDC44.7000504@bytewise.it> Hi Kapilmanoj, 1) maybe it is an error on IMAGECOLOR 256 255 255 the first integer must be <= 255. if not: 2) try to intercept mapserver errors calling the map image in cgi mode: http://localhost/cgi-bin/mapserv?map=/path/to/kerala.map&mode=map&layer=kerala&layer=modis_jpl&layer=... if it works, 3) see the php_errors log file (set in php.ini, error_log directive). bye .................pg kmanoj-pg7 kmanoj-pg7 ha scritto: > Dear users, > > I am using mapserver 5.0.3 , php 5.2.5 version on fedora 9. I am > trying to work out the examples given in the mapserver site, but i am > getting the blank page when i call the link through browser > > http://localhost/mapfiles/sampletest/htdocs/kerala.php > > > Mapscript is working fine without making any problem, but when i > trying to import mapfile in PHP and cascade it through the mapserver, > it rendering blank page in the browser. > i think it could be a problem of extent. > > Herewith i am attaching my mapfile and php file for your kind perusal > > can anyone please puzzled out this problem. > > suggestion will be appreciated. > > Thanks, > kapilmanoj > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Mon Mar 2 06:41:37 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 02 Mar 2009 08:41:37 -0600 Subject: [mapserver-users] How to use NQUERY to identify features at a point? Message-ID: <49AB9BD20200008F000211CD@co5.dnr.state.mn.us> Arjen: Try using imgext instead of mapext, and imgsize instead of mapsize. Those params are used to convert the mouse click (imgxy) into map coordinates. Steve >>> "Arjen de Korte" 03/02/09 4:57 AM >>> Dear Mapserver users, I would like to use a Mapserver NQUERY to identify features at a point on a map. I am now calling the following url using AJAX (I have defined XML templates in my mapfile to get an XML result): http://localhost/cgi-bin/mapserv.exe?map=my.map&mode=nquery&imgxy=45+246&layers=points&mapext=1.335555+51.285252+5.678991+55.101323&mapsize=594+522 I am getting a result, but Mapserver returns ALL features in the given bounding box (mapext), while I would like to get the features around the point given in imgxy (within the tolerance as defined in the mapfile). I have also tried this with mapxy and map coordinates instead of imgxy, but this gives the same results. My Mapserver version is 5.0.0. Could someone instruct me on the correct usage of NQUERY in this case? Thank you, kind regards, Arjen. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From andrea.ardito at provincia.biella.it Mon Mar 2 09:13:18 2009 From: andrea.ardito at provincia.biella.it (Andrea Ardito) Date: Mon, 02 Mar 2009 18:13:18 +0100 Subject: [mapserver-users] WMS problem In-Reply-To: <49A7ED33.7070601@bytewise.it> References: <49A6B12D.9090308@bytewise.it> <49A7ED33.7070601@bytewise.it> Message-ID: Hi Pietro and Jukka, Jukka says a very wise thing but not very useful to me. Unfortunately this is our client and we are not going to change it, as we are not developers but simply users without any kind of skill to play with. Sad but true. After that we changed our configuration on php.ini in order to generate a php log error (error_log directive: now we have a filename, relative path). Since we have a no more supported or developed configuration (Maplab), as Jukka said, we set the error log file to give only the "warning" level error and not the "notice" one. In this case we get only a warning (due to a forgotten file), but I dont' think this is the problem. Is this correct? On the contrary (with notice too) we had a lot of notice that I suppose not so important to get the problem. Thanks for your advice in any way. Ciao andrea arch. Andrea ARDITO Sistema Informativo Territoriale Ambientale (S.I.T.A.) Settore Pianificazione e Sicurezza del Territorio Provincia di Biella Via Quintino Sella, 12 - 13900 BIELLA tel. 015.8480880 fax. 015.8480740 -----Original Message----- From: Pietro Giannini To: mapserver-users Date: Fri, 27 Feb 2009 14:40:03 +0100 Subject: Re: [mapserver-users] WMS problem Hi Andrea, did you look on the php error log file? pg Andrea Ardito ha scritto: Hi Pietro, 1.I've tried to invoke mapserver in cgi mode and it seems ok. http://webgis.provincia.biella.it/cgi-bin/mapserv?map=/opt/fgs/apps/mapservergeo/map/basewms.map&mode=map&layer=stati [http://webgis.provincia.biella.it/cgi-bin/mapserv?map=/opt/fgs/apps/mapservergeo/map/basewms.map&mode=map&layer=stati] 2. We looked on the apache log file and we fixed some errors we had in a php file. Anyway things are not changed. http://webgis.provincia.biella.it/apps/maplab/projects/gmf_apps/basewms4/wmdmap.php [http://webgis.provincia.biella.it/apps/maplab/projects/gmf_apps/basewms4/wmdmap.php] Please, do you have anything else to suggest? Thank you very much for your help ciao andrea arch. Andrea ARDITO Sistema Informativo Territoriale Ambientale (S.I.T.A.) Settore Pianificazione e Sicurezza del Territorio Provincia di Biella Via Quintino Sella, 12 - 13900 BIELLA tel. 015.8480880 fax. 015.8480740 -----Original Message----- From: Pietro Giannini [mailto:pgiannini at bytewise.it] To: mapserver-users [mailto:mapserver-users at lists.osgeo.org] Date: Thu, 26 Feb 2009 16:11:41 +0100 Subject: Re: [mapserver-users] WMS problem Hi Andrea, 1. no 2. no matters 3. It is difficult to answer... If the problem is EXTENT & PROJECTION, remember that a .map file has the PROJECTION set at map level and PROJECTIONs set at layers level; the map Projection is the projection system of the result of the map (i.e. the map image), the layer Projection is the projection system of the data source of the layer. If a layer datasource projection differs from the map projection, you must to set it, otherwise ms try to project the data according with map projection. Try invoke mapserver in cgi mode to see the results: http://the.host/cgi-bin/mapserv?map=/path/of/the.map&mode=map&layer= [http://the.host/cgi-bin/mapserv?map=/path/of/the.map&mode=map&layer=] ... Imho your problem isn't the map, but occurs in your php script. Take a look on the php error log: it is a text file, its path is set in your php.ini file (error_log directive, can be an absolute or relative path) 4. obviously scale is nonsense when using non-projected reference systems like epsg:4326, but mapserver does not know. hth ciao ....................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E Andrea Ardito ha scritto: Hi, we have this system working with MapServer version 4.8.2, PHP version 4.4.2. I am trying to do a map that shows both layer (WGS84 shapefile) and WMS data togheter. The starting response is ok, but I get the blank image from the first pan or zoom on. This is the example URL: http://webgis.provincia.biella.it/apps/maplab/projects/gmf_apps/basewms4/wmdmap.php [http://webgis.provincia.biella.it/apps/maplab/projects/gmf_apps/basewms4/wmdmap.php] I guess the problem is due to wrong parameters for EXTENT, SIZE and PROJECTION in the mapfile. These are: EXTENT -15 25 40 70 SIZE 470 520 PROJECTION "init=epsg:4326". The question are: 1. the SIZE (in pixel) has to be proportional to the EXTENT? 2. if yes, how to obtain the right values for the EXTENT? 3. if not, where is the problem? 4. in a map with geographic non-projected data like this, is correct to have value for scale of the representation since UNITS are DD? I would be very grateful for any help from you all, thanks! Best regards andrea ardito P.S. If I set no layer in the map file, and I try to represent only WMS layer (adding them from "Servizi WMS" button), it works. arch. Andrea ARDITO Sistema Informativo Territoriale Ambientale (S.I.T.A.) Settore Pianificazione e Sicurezza del Territorio Provincia di Biella Via Quintino Sella, 12 - 13900 BIELLA tel. 015.8480880 fax. 015.8480740 --http://www.provincia.biella.it------------------------------------------------------ Vuoi rimanere sempre aggiornato sulle nostre attivita'? Visita la pagina dei feed RSS sul nostro sito ed iscriviti alla sezione di interesse. --Avviso------------------------------------------------------------------------------ Questo messaggio e i suoi allegati sono riservati esclusivamente alle persone in indirizzo e possono contenere informazioni confidenziali. Se questo messaggio vi e' pervenuto per errore, vi informiamo che ogni suo uso e'proibito. In questo caso rispedite immediatamente il messaggio al mittente e cancellatelo. Per ogni chiarimento contattateci scrivendo a ced at provincia.biella.it [mailto:ced at provincia.biella.it]. Grazie -Il Webmaster. --Warning----------------------------------------------------------------------------- This message and its attachments are addressed solely to the persons above and may contain confidential information. If you have received the message in error, be informed that any use of the content hereof is prohibited. Please return it immediately to the sender and delete the message. Should you have any questions, please contact us by replying to ced at provincia.biella.it [mailto:ced at provincia.biella.it]. The Webmaster. -------------------------------------------------------------------------------------- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org [mailto:mapserver-users at lists.osgeo.org] http://lists.osgeo.org/mailman/listinfo/mapserver-users [http://lists.osgeo.org/mailman/listinfo/mapserver-users] _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org [mailto:mapserver-users at lists.osgeo.org] http://lists.osgeo.org/mailman/listinfo/mapserver-users [http://lists.osgeo.org/mailman/listinfo/mapserver-users] -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Mon Mar 2 11:02:27 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 02 Mar 2009 13:02:27 -0600 Subject: [mapserver-users] nquery template question In-Reply-To: <200902250032.n1P0WocP031639@atom.scu.edu.au> References: <200902250032.n1P0WocP031639@atom.scu.edu.au> Message-ID: <49ABD8E3.5157.008F.0@dnr.state.mn.us> There are two templating options in MapServer 5.2+. The first is the "classic" method that uses a series of small template files to construct a result set. I believe it's like so: 1. web header ... for each layer 2. layer header ... for each feature in the layer 3. layer or class template 4. layer footer 5. web footer In 5.2 there's a new option to use new template tags in combination with a new output format. (see http://mapserver.org/development/rfc/ms-rfc-36.html). Here's an example: The output format block: OUTPUTFORMAT NAME 'county_select_list' DRIVER 'TEMPLATE' MIMETYPE 'text/javascript' FORMATOPTION 'ATTACHMENT=county_select_list.js' FORMATOPTION 'FILE=/templates/county_select_list.js' END The template (county_select_list.js): function updateCountyList(element) { var option; [resultset layer="counties"][feature] option = new Option("[CTY_NAME]", "[shpext format="$minx,$miny,$maxx,$maxy" precision=0 expand="10%"]"); try { element.add(option, null); } catch(e) { element.add(option); } [/feature][/resultset] } The tags to pay attention to are [resultset] and [feature]. The [resultset] tag is used to present a layer, the [feature] tag is used to present 1 feature. So, in the above example if the layer "counties" has results then we'll process the code between the [resultset][/resultset] block. And the for each feature in the layer we process the code between the [feature][/feature] block. Works nice. You can choose which output format to use with the qformat CGI variable. Here's the output generated through this template: function updateCountyList(element) { var option; option = new Option("Clearwater", "304963,5219538,337550,5326697"); try { element.add(option, null); } catch(e) { element.add(option); } option = new Option("Aitkin", "434591,5106383,498803,5213702"); try { element.add(option, null); } catch(e) { element.add(option); } option = new Option("Chisago", "486969,5013450,529584,5066587"); try { element.add(option, null); } catch(e) { element.add(option); } option = new Option("Blue Earth", "387528,4852924,441106,4904495"); try { element.add(option, null); } catch(e) { element.add(option); } } You certainly can have multiple layers in one template of this form. Hope this helps. Steve >>> On 2/24/2009 at 7:30 PM, in message <200902250032.n1P0WocP031639 at atom.scu.edu.au>, Greg Luker wrote: > Hi mapserver-users, > > How does nquery templating work? > I'm trying to modify nquery result contents using javascript (I don't > know much about javascript!). The best I have done so far is (nquery > template): > > > > > > >
> > [site_code] > [site_name] > [featdesc_description] > [feature_comment] > [genderaccess_description] > >
> > > > Which blanks the first [site_code] returned, but I want to blank > repeating [site_code] in the nquery result table. Any ideas > gratefully accepted! > > Thanks, > Greg. > > > Greg Luker > GIS Lab Manager, Southern Cross University > Lismore, AUSTRALIA. > gluker at scu.edu.au > phone 61 2 66203026 > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From one1 at tutopia.com Mon Mar 2 14:31:41 2009 From: one1 at tutopia.com (julian andres montes galvis) Date: Mon, 02 Mar 2009 17:31:41 -0500 Subject: [mapserver-users] installation debian lenny mapscript problem Message-ID: <49AC5E4D.3050302@tutopia.com> Hi , my distro its a debian lenny, php5, apache 2.2.9, server x86, when I install mapserver 5.4.0-beta2(even 5.2) with the option --with-agg -with-php=/usr/include/php5/ i have the error bellow, if erase this option, the installation it's succesfull. php_mapscript_util.c:32:22: error: maperror.h: No such file or directory php_mapscript_util.c: In function ?_phpms_report_mapserver_error?: php_mapscript_util.c:44: error: ?errorObj? undeclared (first use in this function) php_mapscript_util.c:44: error: (Each undeclared identifier is reported only once php_mapscript_util.c:44: error: for each function it appears in.) php_mapscript_util.c:44: error: ?ms_error? undeclared (first use in this function) php_mapscript_util.c:46: warning: implicit declaration of function ?msGetErrorObj? php_mapscript_util.c:48: error: ?MS_NOERR? undeclared (first use in this function) make[1]: *** [php_mapscript_util.o] Error 1 Any Ideas ? thanks in advance Julian Montes pd: sorry but the english From gluker at scu.edu.au Mon Mar 2 15:47:28 2009 From: gluker at scu.edu.au (Greg Luker) Date: Tue, 03 Mar 2009 09:47:28 +1000 Subject: [mapserver-users] nquery template question Message-ID: <200903022248.n22MmjP1019697@atom.scu.edu.au> Hi Steve, Wow! The new template tag and output format looks like exactly what I need! I read through your example and I read http://mapserver.org/development/rfc/ms-rfc-36.html, thank you for providing those. But, I'm not much good with javascript, and I'm not sure how I would apply the new scheme to my case (blank repeating [feature] items in an nquery result). (I checked WEB and OUTPUTFORMAT in the 5.2.1 documentation, but I didn't see any further info there, and I'll make an attempt to discover how it works myself.) Any further pointers? At 05:02 AM 3/03/2009, Steve Lime wrote: >There are two templating options in MapServer 5.2+. The first is the >"classic" method that uses a series >of small template files to construct a result set. I believe it's >like so: Thanks, Greg. Greg Luker GIS Lab Manager, Southern Cross University Lismore, AUSTRALIA. gluker at scu.edu.au phone 61 2 66203026 From georazor at gmail.com Mon Mar 2 18:21:06 2009 From: georazor at gmail.com (Mauricio Herrera) Date: Mon, 2 Mar 2009 18:21:06 -0800 Subject: [mapserver-users] Debug error: getString():Symbol definition error. Message-ID: <583a904e0903021821l3d8e3238i41970c20accd84f1@mail.gmail.com> Hello ! Somebody help me or explain me the next error please: getString (): Symbol definition error. Parsing near (7516.8651488): (line 3)? I don?t understand, what?s the problem!. Because I think is ok my mapfile.. Well, When I try to debug mapserver with a basic mapfile (myfile.map) , always I get this error!!.* printscreen: http://i588.photobucket.com/albums/ss322/georazor/errortestmap2.jpg* In addition I was testing with test.map (this mapfile is into of tests folder /mapserver-5.2.1/tests/test.map ), but it is the same situation. *Printscreen: http://i588.photobucket.com/albums/ss322/georazor/errortestmap.jpg* myfile.map MAP EXTENT 7516.8651488 -1337.1743568 8307.1193224 -950.4111941 IMAGETYPE PNG SIZE 400 400 IMAGECOLOR 255 255 255 LAYER NAME building DATA building STATUS ON TYPE LINE CLASS NAME build STYLE COLOR 192 192 192 OUTLINECOLOR 0 94 138 END END END END --- test.map /mapserver-5.2.1/tests/test.map MAP NAME "Testing" EXTENT -0.5 50.977222 0.5 51.977222 #IMAGETYPE JPEG #IMAGETYPE PNG24 IMAGETYPE PNG IMAGECOLOR 255 255 255 . . More info: 1.- I don?t have any problem when I display the map on the web , only when I am trying to debug! *Printscreen: http://i588.photobucket.com/albums/ss322/georazor/noproblem.jpg* 2.- I have used these query string: ?QUERY_STRING=map=/usr/local/mapserver-5.2.1/tests/test.map&mode=map&layers=all? ?QUERY_STRING=map=/usr/local/mapserver-5.2.1/tests/myfile.map&mode=map? 3.- My IDE is KDbg ,I have installed GDB and I work on linux plataform CENTOS 5 *Am I doing something wrong or is a bug?* Thank you Mauricio Herrera -------------- next part -------------- An HTML attachment was scrubbed... URL: From cheung.jackey at gmail.com Mon Mar 2 18:23:55 2009 From: cheung.jackey at gmail.com (GMail) Date: Tue, 3 Mar 2009 10:23:55 +0800 Subject: [mapserver-users] About font sizes Message-ID: <175F7A5EFAFB4EDCBEC106D6EA292F19@jcdesktop> Greetings! The attached image is generated with the following: LABEL PRIORITY 5 ENCODING "UTF-8" COLOR 32 32 32 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT "arial" SIZE 7 BUFFER 2 POSITION AUTO PARTIALS FALSE MINFEATURESIZE 25 WRAP " " MAXLENGTH 8 ALIGN CENTER END The most obvious issue is the character "t" and "o", which are stuck together. Actually, the "Ria" part of the word are closer together, and the "l" seems a bit separated from parts. I've checked that the AGG engine can render text with sub-pixel precision, and can render down to 6px font size clearly. Just curious, how mapserver does the text rendering? I'm not sure which part of the above label object goes wrong. Any light? -------------- next part -------------- A non-text attachment was scrubbed... Name: text.JPG Type: image/jpeg Size: 935 bytes Desc: not available URL: From one1 at tutopia.com Mon Mar 2 19:32:48 2009 From: one1 at tutopia.com (julian andres montes galvis) Date: Mon, 02 Mar 2009 22:32:48 -0500 Subject: [mapserver-users] installation debian lenny mapscript problem In-Reply-To: <49AC5E4D.3050302@tutopia.com> References: <49AC5E4D.3050302@tutopia.com> Message-ID: <49ACA4E0.4060807@tutopia.com> I found the solution the first command with the parameter --with-php in the end , dont work, the second command with the parameter --with-php in the start works fine ./configure --with-ogr --with-gdal --with-httpd=/usr/sbin/apache2 --enable-debug --with-curl-config=/usr/bin/curl-config --with-proj=/usr/ --with-tiff --with-gd=/usr/local/ --with-jpeg --with-freetype=/usr/ --with-threads --with-wcs --with-postgis --with-libiconv=/usr --with-libiconv=/usr --with-xml2-config=/usr/bin/xml2-config --with-sos --with-wfsclient --with-wmsclient --with-wfs -with-fastcgi=/usr/local/lib/ --with-agg -with-php=/usr/include/php5/ ./configure -with-php=/usr/include/php5/ --with-ogr --with-gdal --with-httpd=/usr/sbin/apache2 --enable-debug --with-curl-config=/usr/bin/curl-config --with-proj=/usr/ --with-tiff --with-gd=/usr/local/ --with-jpeg --with-freetype=/usr/ --with-threads --with-wcs --with-postgis --with-libiconv=/usr --with-libiconv=/usr --with-xml2-config=/usr/bin/xml2-config --with-sos --with-wfsclient --with-wmsclient --with-wfs -with-fastcgi=/usr/local/lib/ --with-agg Julian julian andres montes galvis wrote: > Hi , > > my distro its a debian lenny, php5, apache 2.2.9, server x86, when I > install mapserver 5.4.0-beta2(even 5.2) with the option --with-agg > -with-php=/usr/include/php5/ > i have the error bellow, if erase this option, the installation it's > succesfull. > > php_mapscript_util.c:32:22: error: maperror.h: No such file or directory > php_mapscript_util.c: In function ?_phpms_report_mapserver_error?: > php_mapscript_util.c:44: error: ?errorObj? undeclared (first use in > this function) > php_mapscript_util.c:44: error: (Each undeclared identifier is > reported only once > php_mapscript_util.c:44: error: for each function it appears in.) > php_mapscript_util.c:44: error: ?ms_error? undeclared (first use in > this function) > php_mapscript_util.c:46: warning: implicit declaration of function > ?msGetErrorObj? > php_mapscript_util.c:48: error: ?MS_NOERR? undeclared (first use in > this function) > make[1]: *** [php_mapscript_util.o] Error 1 > > Any Ideas ? > > thanks in advance > Julian Montes > pd: sorry but the english > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From kmanoj-pg7 at iiitmk.ac.in Tue Mar 3 03:06:40 2009 From: kmanoj-pg7 at iiitmk.ac.in (kapilmanoj) Date: Tue, 3 Mar 2009 03:06:40 -0800 (PST) Subject: [mapserver-users] PHP mapscript - browser showing blank page In-Reply-To: <49ABDC44.7000504@bytewise.it> References: <9ab9b8cf0903020230n5c7d6d09y576608f2ade3b7b7@mail.gmail.com> <49ABDC44.7000504@bytewise.it> Message-ID: <1236078400910-2414557.post@n2.nabble.com> Hi pietro, As you suggested me, i checked the error_log file , there is no such error related to php. Actually in my case, its projecting the imagecolor 256 255 255 , the faded green color with the respective width and height in the browser, but it not showing up the map layers . its stumbling. what could be a problem? can you probe this problem? thanks. kapilmanoj Pietro Giannini wrote: > > Hi Kapilmanoj, > > 1) maybe it is an error on > IMAGECOLOR 256 255 255 > the first integer must be <= 255. > if not: > > 2) try to intercept mapserver errors calling the map image in cgi mode: > > http://localhost/cgi-bin/mapserv?map=/path/to/kerala.map&mode=map&layer=kerala&layer=modis_jpl&layer=... > if it works, > > 3) see the php_errors log file (set in php.ini, error_log directive). > > bye > .................pg > > kmanoj-pg7 kmanoj-pg7 ha scritto: >> Dear users, >> >> I am using mapserver 5.0.3 , php 5.2.5 version on fedora 9. I am >> trying to work out the examples given in the mapserver site, but i am >> getting the blank page when i call the link through browser >> >> http://localhost/mapfiles/sampletest/htdocs/kerala.php >> >> >> Mapscript is working fine without making any problem, but when i >> trying to import mapfile in PHP and cascade it through the mapserver, >> it rendering blank page in the browser. >> i think it could be a problem of extent. >> >> Herewith i am attaching my mapfile and php file for your kind perusal >> >> can anyone please puzzled out this problem. >> >> suggestion will be appreciated. >> >> Thanks, >> kapilmanoj >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > -- > Pietro Giannini > Bytewise srl - Area GIS > 41?50'38.58"N 12?29'13.39"E > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/PHP-mapscript---browser-showing-blank-page-tp2408448p2414557.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pgiannini at bytewise.it Tue Mar 3 03:13:35 2009 From: pgiannini at bytewise.it (Pietro Giannini) Date: Tue, 03 Mar 2009 12:13:35 +0100 Subject: [mapserver-users] PHP mapscript - browser showing blank page In-Reply-To: <1236078400910-2414557.post@n2.nabble.com> References: <9ab9b8cf0903020230n5c7d6d09y576608f2ade3b7b7@mail.gmail.com> <49ABDC44.7000504@bytewise.it> <1236078400910-2414557.post@n2.nabble.com> Message-ID: <49AD10DF.9060004@bytewise.it> Kapilmanoj, check the extent of your data sources. Maybe you set wrong extent in map file, so the layers are visible but no data overlays the defined "window". bye .......pg kapilmanoj ha scritto: > Hi pietro, > > As you suggested me, i checked the error_log file , there is no such error > related to php. Actually in my case, its projecting the imagecolor 256 255 > 255 , the faded green color with the respective width and height in the > browser, but it not showing up the map layers . its stumbling. > > what could be a problem? > can you probe this problem? > > thanks. > kapilmanoj > > Pietro Giannini wrote: > >> Hi Kapilmanoj, >> >> 1) maybe it is an error on >> IMAGECOLOR 256 255 255 >> the first integer must be <= 255. >> if not: >> >> 2) try to intercept mapserver errors calling the map image in cgi mode: >> >> http://localhost/cgi-bin/mapserv?map=/path/to/kerala.map&mode=map&layer=kerala&layer=modis_jpl&layer=... >> if it works, >> >> 3) see the php_errors log file (set in php.ini, error_log directive). >> >> bye >> .................pg >> >> kmanoj-pg7 kmanoj-pg7 ha scritto: >> >>> Dear users, >>> >>> I am using mapserver 5.0.3 , php 5.2.5 version on fedora 9. I am >>> trying to work out the examples given in the mapserver site, but i am >>> getting the blank page when i call the link through browser >>> >>> http://localhost/mapfiles/sampletest/htdocs/kerala.php >>> >>> >>> Mapscript is working fine without making any problem, but when i >>> trying to import mapfile in PHP and cascade it through the mapserver, >>> it rendering blank page in the browser. >>> i think it could be a problem of extent. >>> >>> Herewith i am attaching my mapfile and php file for your kind perusal >>> >>> can anyone please puzzled out this problem. >>> >>> suggestion will be appreciated. >>> >>> Thanks, >>> kapilmanoj >>> >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> -- >> Pietro Giannini >> Bytewise srl - Area GIS >> 41?50'38.58"N 12?29'13.39"E >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> > > -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E -------------- next part -------------- An HTML attachment was scrubbed... URL: From nelsonwc7 at hotmail.com Tue Mar 3 04:17:10 2009 From: nelsonwc7 at hotmail.com (Nelson Correia) Date: Tue, 3 Mar 2009 12:17:10 +0000 Subject: [mapserver-users] (no subject) Message-ID: Hi, We are using Mapserver to produce tiles for a web application, using Tilecache as the caching mechanism. When we were building the system, we figured out that tiles requested does not fit well side by side (the roads of one tile does not fit the prolongation of the same road in the next tile). To eliminate this issue, we had to issue an extra 10 pixels (around the whole tile) request to Mapserver and then cut them. Then another problem arose: we could not make this with the labels because they appeared cut in one tile and there was no prolongation of it on the next tile. The solution was to divide it into different layers: one for the roads with the 10 pixels buffer and another for the labels without buffer. This has the impact of duplicating the total number of images. Anyone known an alternate solution for this problem? Isn't Mapserver capable of serving images that fit well side by side? Thanks in advance! _________________________________________________________________ More than messages?check out the rest of the Windows Live?. http://www.microsoft.com/windows/windowslive/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue Mar 3 04:59:14 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 3 Mar 2009 14:59:14 +0200 Subject: [mapserver-users] Mapserver WMS seem not to read +towgs84 parameters In-Reply-To: Message-ID: Hi, I am using Mapserver version 5.2.0 from MS4W delivery through WMS 1.1.1. and I was now trying to add the missing +towgs84 parameters for the Finnish epsg:2393 projection. I located the epsg file from MS4W\proj\nad directory and edited it from this: # KKJ / Finland Uniform Coordinate System <2393> +proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=3500000 +y_0=0 +ellps=intl +units=m +no_defs <> to this: # KKJ / Finland Uniform Coordinate System <2393> +proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-96.0617,-82.4278,-121.743,4.80107,0.34543,-1.37646,1.4964 +units=m +no_defs <> However, adding +towgs84 parameters do not have any effect on the Mapserver output. I am sure that this certain epsg file is read, because commenting out the <2393> line makes Mapserver to stop working with my mapfile. In addition, I can make map to shift by editing +x_0 and +y_0 parameters. I had even another try by skipping the whole epsg file by giving the projection directly in the layer definitions of my mapfile as PROJECTION "proj=tmerc" "lat_0=0" "lon_0=27" "k=1" "x_0=3500000" "y_0=0" "ellps=intl" "towgs84=-96.0617,-82.4278,-121.743,4.80107,0.34543,-1.37646,1.4964" "units=m" "no_defs" END Here I can see exactly the same behaviour. Editing other parameters, like lon_0, x_0 and y_0 are really changing the output, while editing towgs84 parameters or leaving them out totally has no effect. It looks to me that towgs84 parameters are not read at all, or all the parameters are interpreted as zeros. However, I can't believe that this error wouldn't have been noticed by others so far. So I am just giving the parameters in a wrong way? The ESRI projection file at MS4W\proj\nad\ doest have <2393> definitions with a bit different towgs84 values. Giving my layer definition as "init=esri:2393" does not change anything, Mapserver does not use towgs84 parameters. -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From arjendk at gmx.net Tue Mar 3 05:27:02 2009 From: arjendk at gmx.net (Arjen de Korte) Date: Tue, 03 Mar 2009 14:27:02 +0100 Subject: [mapserver-users] How to use NQUERY to identify features at a point? In-Reply-To: <49AB9BD20200008F000211CD@co5.dnr.state.mn.us> References: <49AB9BD20200008F000211CD@co5.dnr.state.mn.us> Message-ID: <1236086822.14130.1303362605@webmail.messagingengine.com> Steve, Dan, Thank you for your answers. Using imgext and imgsize was the solution! In this case query instead of nquery was not an option, since query only returns one result. In case I would like to query by bounding box (instead of point), would the correct query be something like http://localhost/cgi-bin/mapserv.exe?map=my.map&mode=nquery&mapext=minx+miny+maxx+maxy&layers=points&imgext=1.335555+51.285252+5.678991+55.101323&imgsize=594+522 ? I.e. imgxy for a point query becomes mapext for a bbox query? Thanks again for your help, kind regards, Arjen. On Mon, 02 Mar 2009 08:41 -0600, "Steve Lime" wrote: > Arjen: Try using imgext instead of mapext, and imgsize instead of > mapsize. Those params are used > to convert the mouse click (imgxy) into map coordinates. > > Steve > > >>> "Arjen de Korte" 03/02/09 4:57 AM >>> > Dear Mapserver users, > > I would like to use a Mapserver NQUERY to identify features at a point > on a map. I am now calling the following url using AJAX (I have defined > XML templates in my mapfile to get an XML result): > > http://localhost/cgi-bin/mapserv.exe?map=my.map&mode=nquery&imgxy=45+246&layers=points&mapext=1.335555+51.285252+5.678991+55.101323&mapsize=594+522 > > I am getting a result, but Mapserver returns ALL features in the given > bounding box (mapext), while I would like to get the features around the > point given in imgxy (within the tolerance as defined in the mapfile). I > have also tried this with mapxy and map coordinates instead of imgxy, > but this gives the same results. > > My Mapserver version is 5.0.0. > > Could someone instruct me on the correct usage of NQUERY in this case? > > Thank you, kind regards, > > Arjen. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From rpha88 at gmail.com Tue Mar 3 05:38:41 2009 From: rpha88 at gmail.com (rohan phatak) Date: Tue, 3 Mar 2009 18:08:41 +0430 Subject: [mapserver-users] Database connection in postgresql Message-ID: Hello friends, I am using map server application in which i am displaying my map in web browser. I am creating button in that browser and on that button i want to attach my database connection means if i click this button the database/tables should be open so how to proceed that? And my next question how to connect shape file to the postgresql in mapserver?? THANKS IN ADVANCE. -------------- next part -------------- An HTML attachment was scrubbed... URL: From danlittle at yahoo.com Tue Mar 3 05:44:05 2009 From: danlittle at yahoo.com (Dan Little) Date: Tue, 3 Mar 2009 05:44:05 -0800 (PST) Subject: [mapserver-users] (no subject) In-Reply-To: References: Message-ID: <797086.32742.qm@web51403.mail.re2.yahoo.com> Check the documentation on the "metaTile" it requires having PIL installed but that is not really a big hassle. ________________________________ From: Nelson Correia To: mapserver-users at lists.osgeo.org Sent: Tuesday, March 3, 2009 6:17:10 AM Subject: [mapserver-users] (no subject) Hi, We are using Mapserver to produce tiles for a web application, using Tilecache as the caching mechanism. When we were building the system, we figured out that tiles requested does not fit well side by side (the roads of one tile does not fit the prolongation of the same road in the next tile). To eliminate this issue, we had to issue an extra 10 pixels (around the whole tile) request to Mapserver and then cut them. Then another problem arose: we could not make this with the labels because they appeared cut in one tile and there was no prolongation of it on the next tile. The solution was to divide it into different layers: one for the roads with the 10 pixels buffer and another for the labels without buffer. This has the impact of duplicating the total number of images. Anyone known an alternate solution for this problem? Isn't Mapserver capable of serving images that fit well side by side? Thanks in advance! ________________________________ check out the rest of the Windows Live?. More than mail?Windows Live? goes way beyond your inbox. More than messages -------------- next part -------------- An HTML attachment was scrubbed... URL: From adube at mapgears.com Tue Mar 3 05:58:41 2009 From: adube at mapgears.com (Alexandre Dube) Date: Tue, 03 Mar 2009 08:58:41 -0500 Subject: [mapserver-users] Database connection in postgresql In-Reply-To: References: Message-ID: <49AD3791.8070305@mapgears.com> rohan phatak wrote: > Hello friends, > I am using map server application in which i am displaying my > map in web browser. I am creating button in that browser and on > that button i want to attach my database connection means if i click > this button the database/tables should be open so how to proceed that? I'm not sure what/why you're trying to accomplish that, but you could take a look at this (1). You might be interested. > And my next question how to connect shape file to the > postgresql in mapserver?? If you mean : "how do I connect mapserver to a postgis table" : http://mapserver.org/input/vector/postgis.html If you mean : "how do I transform my shapfile to a postgis table" : use the shp2pgsql tool. http://www.postgis.org/documentation/manual-1.3/ch04.html#id2743056 > THANKS IN ADVANCE. Regards, Alexandre (1) http://geo.openplans.org/geoext/drake/tags/v0.1/apps/drake/drake1.html > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alexandre Dub? Mapgears www.mapgears.com From nelsonwc7 at hotmail.com Tue Mar 3 06:11:16 2009 From: nelsonwc7 at hotmail.com (Nelson Correia) Date: Tue, 3 Mar 2009 14:11:16 +0000 Subject: =?windows-1256?Q?RE:_[mapse?= =?windows-1256?Q?rver-users?= =?windows-1256?Q?]_Mapserve?= =?windows-1256?Q?r_images_d?= =?windows-1256?Q?oesn't_fit?= =?windows-1256?Q?_well_on_a?= =?windows-1256?Q?_tiling_sc?= =?windows-1256?Q?heme=FE?= In-Reply-To: <797086.32742.qm@web51403.mail.re2.yahoo.com> References: <797086.32742.qm@web51403.mail.re2.yahoo.com> Message-ID: With metaTile I can issue a pre-defined number of tiles that fit well. But this is per-request (if I'm right). For instance, if I make two consecutive requests of 4 tiles each from consecutive map zones, I get two sets of tiles that does not fit with each other (the first 4 do not fit side by side with the second 4). The problem with that approach is that tiles from the same request fit well, but in order to construct a map like VE or Google Maps I need that tiles from different requests to always fit well. Please tell me If I am wrong. Date: Tue, 3 Mar 2009 05:44:05 -0800 From: danlittle at yahoo.com Subject: Re: [mapserver-users] (no subject) To: nelsonwc7 at hotmail.com; mapserver-users at lists.osgeo.org Check the documentation on the "metaTile" it requires having PIL installed but that is not really a big hassle. From: Nelson Correia To: mapserver-users at lists.osgeo.org Sent: Tuesday, March 3, 2009 6:17:10 AM Subject: [mapserver-users] (no subject) Hi, We are using Mapserver to produce tiles for a web application, using Tilecache as the caching mechanism. When we were building the system, we figured out that tiles requested does not fit well side by side (the roads of one tile does not fit the prolongation of the same road in the next tile). To eliminate this issue, we had to issue an extra 10 pixels (around the whole tile) request to Mapserver and then cut them. Then another problem arose: we could not make this with the labels because they appeared cut in one tile and there was no prolongation of it on the next tile. The solution was to divide it into different layers: one for the roads with the 10 pixels buffer and another for the labels without buffer. This has the impact of duplicating the total number of images. Anyone known an alternate solution for this problem? Isn't Mapserver capable of serving images that fit well side by side? Thanks in advance! check out the rest of the Windows Live?. More than mail?Windows Live? goes way beyond your inbox. More than messages _________________________________________________________________ More than messages?check out the rest of the Windows Live?. http://www.microsoft.com/windows/windowslive/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From danlittle at yahoo.com Tue Mar 3 06:46:58 2009 From: danlittle at yahoo.com (Dan Little) Date: Tue, 3 Mar 2009 06:46:58 -0800 (PST) Subject: =?utf-8?B?UmU6IFttYXBzZXJ2ZXItdXNlcnNdIE1hcHNlcnZlciBpbWFnZXMgZG9lc24n?= =?utf-8?B?dCBmaXQgd2VsbCBvbiBhIHRpbGluZyBzY2hlbWXigI8=?= In-Reply-To: References: <797086.32742.qm@web51403.mail.re2.yahoo.com> Message-ID: <277332.88277.qm@web51410.mail.re2.yahoo.com> I think you're a bit wrong there. If you build the Cache using tilecache, when you use the "metaTiles" it will take a larger sample than the image being generated, for example if you have a 3x3 meta tile grid, the "center" tile of the nine-tile grid will be used. I had the exact same problem you are describing, but then setup the tilecache generator to use metatiles and things started to work beautifully -- including labels. ________________________________ From: Nelson Correia To: mapserver-users at lists.osgeo.org Sent: Tuesday, March 3, 2009 8:11:16 AM Subject: RE: [mapserver-users] Mapserver images doesn't fit well on a tiling scheme? With metaTile I can issue a pre-defined number of tiles that fit well. But this is per-request (if I'm right). For instance, if I make two consecutive requests of 4 tiles each from consecutive map zones, I get two sets of tiles that does not fit with each other (the first 4 do not fit side by side with the second 4). The problem with that approach is that tiles from the same request fit well, but in order to construct a map like VE or Google Maps I need that tiles from different requests to always fit well. Please tell me If I am wrong. ________________________________ Date: Tue, 3 Mar 2009 05:44:05 -0800 From: danlittle at yahoo.com Subject: Re: [mapserver-users] (no subject) To: nelsonwc7 at hotmail.com; mapserver-users at lists.osgeo.org Check the documentation on the "metaTile" it requires having PIL installed but that is not really a big hassle. ________________________________ From: Nelson Correia To: mapserver-users at lists.osgeo.org Sent: Tuesday, March 3, 2009 6:17:10 AM Subject: [mapserver-users] (no subject) Hi, We are using Mapserver to produce tiles for a web application, using Tilecache as the caching mechanism. When we were building the system, we figured out that tiles requested does not fit well side by side (the roads of one tile does not fit the prolongation of the same road in the next tile). To eliminate this issue, we had to issue an extra 10 pixels (around the whole tile) request to Mapserver and then cut them. Then another problem arose: we could not make this with the labels because they appeared cut in one tile and there was no prolongati on of it on the next tile. The solution was to divide it into different layers: one for the roads with the 10 pixels buffer and another for the labels without buffer. This has the impact of duplicating the total number of images. Anyone known an alternate solution for this problem? Isn't Mapserver capable of serving images that fit well side by side? Thanks in advance! ________________________________ check out the rest of the Windows Live?. More than mail?Windows Live? goes way beyond your inbox. More than messages ________________________________ check out the rest of the Windows Live?. More than mail?Windows Live? goes way beyond your inbox. More than messages -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue Mar 3 07:00:39 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 3 Mar 2009 17:00:39 +0200 Subject: [mapserver-users] Re: Mapserver WMS seem not to read +towgs84 parameters In-Reply-To: Message-ID: I forget to mention that I am using epsg:3067 in my WMS requests while image data is in epsg:2393 so Mapserver for sure is reprojecting. -Jukka- ________________________________ L?hett?j?: Rahkonen Jukka L?hetetty: 3. maaliskuuta 2009 14:59 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: Mapserver WMS seem not to read +towgs84 parameters Hi, I am using Mapserver version 5.2.0 from MS4W delivery through WMS 1.1.1. and I was now trying to add the missing +towgs84 parameters for the Finnish epsg:2393 projection. I located the epsg file from MS4W\proj\nad directory and edited it from this: # KKJ / Finland Uniform Coordinate System <2393> +proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=3500000 +y_0=0 +ellps=intl +units=m +no_defs <> to this: # KKJ / Finland Uniform Coordinate System <2393> +proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=3500000 +y_0=0 +ellps=intl +towgs84=-96.0617,-82.4278,-121.743,4.80107,0.34543,-1.37646,1.4964 +units=m +no_defs <> However, adding +towgs84 parameters do not have any effect on the Mapserver output. I am sure that this certain epsg file is read, because commenting out the <2393> line makes Mapserver to stop working with my mapfile. In addition, I can make map to shift by editing +x_0 and +y_0 parameters. I had even another try by skipping the whole epsg file by giving the projection directly in the layer definitions of my mapfile as PROJECTION "proj=tmerc" "lat_0=0" "lon_0=27" "k=1" "x_0=3500000" "y_0=0" "ellps=intl" "towgs84=-96.0617,-82.4278,-121.743,4.80107,0.34543,-1.37646,1.4964" "units=m" "no_defs" END Here I can see exactly the same behaviour. Editing other parameters, like lon_0, x_0 and y_0 are really changing the output, while editing towgs84 parameters or leaving them out totally has no effect. It looks to me that towgs84 parameters are not read at all, or all the parameters are interpreted as zeros. However, I can't believe that this error wouldn't have been noticed by others so far. So I am just giving the parameters in a wrong way? The ESRI projection file at MS4W\proj\nad\ doest have <2393> definitions with a bit different towgs84 values. Giving my layer definition as "init=esri:2393" does not change anything, Mapserver does not use towgs84 parameters. -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Tue Mar 3 07:44:50 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 03 Mar 2009 09:44:50 -0600 Subject: [mapserver-users] How to use NQUERY to identify features at apoint? Message-ID: <49ACFC120200008F00021268@co5.dnr.state.mn.us> You have two choices: 1) just use mapext or 2) use imgbox in conjunction with imgext and imgsize Option 1 is used when you're operating independent of a map interface (usually) and option 2 is common when your bbox is given in pixels (i.e. drawing a box on a map). Steve >>> "Arjen de Korte" 03/03/09 7:28 AM >>> Steve, Dan, Thank you for your answers. Using imgext and imgsize was the solution! In this case query instead of nquery was not an option, since query only returns one result. In case I would like to query by bounding box (instead of point), would the correct query be something like http://localhost/cgi-bin/mapserv.exe?map=my.map&mode=nquery&mapext=minx+miny+maxx+maxy&layers=points&imgext=1.335555+51.285252+5.678991+55.101323&imgsize=594+522 ? I.e. imgxy for a point query becomes mapext for a bbox query? Thanks again for your help, kind regards, Arjen. On Mon, 02 Mar 2009 08:41 -0600, "Steve Lime" wrote: > Arjen: Try using imgext instead of mapext, and imgsize instead of > mapsize. Those params are used > to convert the mouse click (imgxy) into map coordinates. > > Steve > > >>> "Arjen de Korte" 03/02/09 4:57 AM >>> > Dear Mapserver users, > > I would like to use a Mapserver NQUERY to identify features at a point > on a map. I am now calling the following url using AJAX (I have defined > XML templates in my mapfile to get an XML result): > > http://localhost/cgi-bin/mapserv.exe?map=my.map&mode=nquery&imgxy=45+246&layers=points&mapext=1.335555+51.285252+5.678991+55.101323&mapsize=594+522 > > I am getting a result, but Mapserver returns ALL features in the given > bounding box (mapext), while I would like to get the features around the > point given in imgxy (within the tolerance as defined in the mapfile). I > have also tried this with mapxy and map coordinates instead of imgxy, > but this gives the same results. > > My Mapserver version is 5.0.0. > > Could someone instruct me on the correct usage of NQUERY in this case? > > Thank you, kind regards, > > Arjen. > _______________________________________________ > 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 nelsonwc7 at hotmail.com Tue Mar 3 08:17:08 2009 From: nelsonwc7 at hotmail.com (Nelson Correia) Date: Tue, 3 Mar 2009 16:17:08 +0000 Subject: =?windows-1256?Q?RE:_[mapse?= =?windows-1256?Q?rver-users?= =?windows-1256?Q?]_Mapserve?= =?windows-1256?Q?r_images_d?= =?windows-1256?Q?oesn't_fit?= =?windows-1256?Q?_well_on_a?= =?windows-1256?Q?_tiling_sc?= =?windows-1256?Q?heme=FE?= In-Reply-To: <277332.88277.qm@web51410.mail.re2.yahoo.com> References: <797086.32742.qm@web51403.mail.re2.yahoo.com> <277332.88277.qm@web51410.mail.re2.yahoo.com> Message-ID: I'm not sure if I got it right... When I request a 3x3 meta tile grid, tilecache only caches the center image? What if I request the image on the right of it and again another image to the right? Tilecache will issue new and overlapped requests to Mapserver? Or for the second request it will reuse a tile from the previous 3x3 request? Date: Tue, 3 Mar 2009 06:46:58 -0800 From: danlittle at yahoo.com Subject: Re: [mapserver-users] Mapserver images doesn't fit well on a tiling scheme? To: nelsonwc7 at hotmail.com; mapserver-users at lists.osgeo.org I think you're a bit wrong there. If you build the Cache using tilecache, when you use the "metaTiles" it will take a larger sample than the image being generated, for example if you have a 3x3 meta tile grid, the "center" tile of the nine-tile grid will be used. I had the exact same problem you are describing, but then setup the tilecache generator to use metatiles and things started to work beautifully -- including labels. From: Nelson Correia To: mapserver-users at lists.osgeo.org Sent: Tuesday, March 3, 2009 8:11:16 AM Subject: RE: [mapserver-users] Mapserver images doesn't fit well on a tiling scheme? With metaTile I can issue a pre-defined number of tiles that fit well. But this is per-request (if I'm right). For instance, if I make two consecutive requests of 4 tiles each from consecutive map zones, I get two sets of tiles that does not fit with each other (the first 4 do not fit side by side with the second 4). The problem with that approach is that tiles from the same request fit well, but in order to construct a map like VE or Google Maps I need that tiles from different requests to always fit well. Please tell me If I am wrong. Date: Tue, 3 Mar 2009 05:44:05 -0800 From: danlittle at yahoo.com Subject: Re: [mapserver-users] (no subject) To: nelsonwc7 at hotmail.com; mapserver-users at lists.osgeo.org Check the documentation on the "metaTile" it requires having PIL installed but that is not really a big hassle. From: Nelson Correia To: mapserver-users at lists.osgeo.org Sent: Tuesday, March 3, 2009 6:17:10 AM Subject: [mapserver-users] (no subject) Hi, We are using Mapserver to produce tiles for a web application, using Tilecache as the caching mechanism. When we were building the system, we figured out that tiles requested does not fit well side by side (the roads of one tile does not fit the prolongation of the same road in the next tile). To eliminate this issue, we had to issue an extra 10 pixels (around the whole tile) request to Mapserver and then cut them. Then another problem arose: we could not make this with the labels because they appeared cut in one tile and there was no prolongati on of it on the next tile. The solution was to divide it into different layers: one for the roads with the 10 pixels buffer and another for the labels without buffer. This has the impact of duplicating the total number of images. Anyone known an alternate solution for this problem? Isn't Mapserver capable of serving images that fit well side by side? Thanks in advance! _________________________________________________________________ Drag n? drop?Get easy photo sharing with Windows Live? Photos. http://www.microsoft.com/windows/windowslive/products/photos.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From danlittle at yahoo.com Tue Mar 3 08:31:05 2009 From: danlittle at yahoo.com (Dan Little) Date: Tue, 3 Mar 2009 08:31:05 -0800 (PST) Subject: =?utf-8?B?UmU6IFttYXBzZXJ2ZXItdXNlcnNdIE1hcHNlcnZlciBpbWFnZXMgZG9lc24n?= =?utf-8?B?dCBmaXQgd2VsbCBvbiBhIHRpbGluZyBzY2hlbWXigI8=?= In-Reply-To: References: <797086.32742.qm@web51403.mail.re2.yahoo.com> <277332.88277.qm@web51410.mail.re2.yahoo.com> Message-ID: <451210.5504.qm@web51412.mail.re2.yahoo.com> There are two steps to a tilecache... Step 1: Seeding it. Step 2: Querying from it. Metatile usefulness is best seen while seeding the tile cache. If you look at the attached graphic (a rough estimation of a 3x3 meta-tile setup) then you'll see as the tilecache seed iterates through the map, it "oversamples" the map and uses the "center" image to represent the tile ("A"). When moving onto the next tile ("B"), it performs the same over-sampling. Since the map is then never at the "edge" of the generation you do not see errors with off-map lines and labelling at the edges. Now, there two ways to query the tilecache: 1) As a WMS service. IMO, this is slow you can do as you wish but I've always thought this to be quite a bit slower than taking the oppurunity to fully seed a tilecache. In this scenario if you have a "cache hit" there is no additional generation costs. If you have a "cache miss" the generation cost is greater, but mapserver, PIL, etc., are very efficient at generating images. The actual cost of generating a 256x256 image and the cost of geneerating a 768x768 image is not terribly significant. Plus, once it has been done for a tile, it never needs to be done again. 2) As a tilecache, this is where you just serve up the directory as a TileCache. This is a lot faster but assumes you have fully seeded your cache. In this scenario you have no additional generation costs, all of that work has been done up front. ________________________________ From: Nelson Correia To: mapserver-users at lists.osgeo.org Sent: Tuesday, March 3, 2009 10:17:08 AM Subject: RE: [mapserver-users] Mapserver images doesn't fit well on a tiling scheme? I'm not sure if I got it right... When I request a 3x3 meta tile grid, tilecache only caches the center image? What if I request the image on the right of it and again another image to the right? Tilecache will issue new and overlapped requests to Mapserver? Or for the second request it will reuse a tile from the previous 3x3 request? ________________________________ Date: Tue, 3 Mar 2009 06:46:58 -0800 From: danlittle at yahoo.com Subject: Re: [mapserver-users] Mapserver images doesn't fit well on a tiling scheme? To: nelsonwc7 at hotmail.com; mapserver-users at lists.osgeo.org I think you're a bit wrong there. If you build the Cache using tilecache, when you use the "metaTiles" it will take a larger sample than the image being generated, for example if you have a 3x3 meta tile grid, the "center" tile of the nine-tile grid will be used. I had the exact same problem you are describing, but then setup the tilecache generator to use metatiles and things started to work beautifully -- including labels. ________________________________ From: Nelson Correia To: mapserver-users at lists.osgeo.org Sent: Tuesday, March 3, 2009 8:11:16 AM Subject: RE: [mapserver-users] Mapserver images doesn't fit well on a tiling scheme? With metaTile I can issue a pre-defined number of tiles that fit well. But this is per-request (if I'm right). For instance, if I make two consecutive requests of 4 tiles each from consecutive map zones, I get two sets of tiles that does not fit with each other (the first 4 do not fit side by side with the second 4). The problem with that approach is that tiles from the same request fit well, but in order to construct a map like VE or Google Maps I need that tiles from different requests to always fit well. Please tell me If I am wrong. ________________________________ Date: Tue, 3 Mar 2009 05:44:05 -0800 From: danlittle at yahoo.com Subject: Re: [mapserver-users] (no subject) To: nelsonwc7 at hotmail.com; mapserver-users at lists.osgeo.org Check the documentation on the "metaTile" it requires having PIL installed but that is not really a big hassle. ________________________________ From: Nelson Correia To: mapserver-users at lists.osgeo.org Sent: Tuesday, March 3, 2009 6:17:10 AM Subject: [mapserver-users] (no subject) Hi, We are using Mapserver to produce tiles for a web application, using Tilecache as the caching mechanism. When we were building the system, we figured out that tiles requested does not fit well side by side (the roads of one tile does not fit the prolongation of the same road in the next tile). To eliminate this issue, we had to issue an extra 10 pixels (around the whole tile) request to Mapserver and then cut them. Then another problem arose: we could not make this with the labels because they appeared cut in one tile and there was no prolongati on of it on the next tile. The solution was to divide it into different layers: one for the roads with the 10 pixels buffer and another for the labels without buffer. This has the impact of duplicating the total number of images. Anyone known an alternate solution for this problem? Isn't Mapserver capable of serving images that fit well side by side? Thanks in advance! ________________________________ What can you do with the new Windows Live? Find out -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: tilecache.png Type: image/png Size: 8063 bytes Desc: not available URL: From crschmidt at metacarta.com Tue Mar 3 08:41:56 2009 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Tue, 3 Mar 2009 11:41:56 -0500 Subject: [mapserver-users] Mapserver images doesn't fit well on a tiling scheme??? In-Reply-To: <451210.5504.qm@web51412.mail.re2.yahoo.com> References: <797086.32742.qm@web51403.mail.re2.yahoo.com> <277332.88277.qm@web51410.mail.re2.yahoo.com> <451210.5504.qm@web51412.mail.re2.yahoo.com> Message-ID: <20090303164156.GW385@metacarta.com> On Tue, Mar 03, 2009 at 08:31:05AM -0800, Dan Little wrote: > There are two steps to a tilecache... > Step 1: Seeding it. > Step 2: Querying from it. > > Metatile usefulness is best seen while seeding the tile cache. If you look at the attached graphic (a rough estimation of a 3x3 meta-tile setup) then you'll see as the tilecache seed iterates through the map, it "oversamples" the map and uses the "center" image to represent the tile ("A"). When moving onto the next tile ("B"), it performs the same over-sampling. Since the map is then never at the "edge" of the generation you do not see errors with off-map lines and labelling at the edges. This is incorrect. Instead, what happens, is that when you request, A, B, or C, the 3x3 grid centered around B is rendered. when you request tile D, E, or F, the 3x3 grid around E is rendered. In each case, a metaBuffer sized pixel boundary on all sides is created. So, a 3x3 metaTile is actually 768 (3*256) + 20 (2 * 10) -> 788 pixels big. This way, things near the edges of tiles are still included, and you get fewer missed labels becasue the labels that san across the edges of A and B are included, where they wouldn't have been before. Regards, -- Christopher Schmidt MetaCarta From hschiebold at codematix.de Tue Mar 3 09:07:09 2009 From: hschiebold at codematix.de (Holger Schiebold) Date: Tue, 03 Mar 2009 18:07:09 +0100 Subject: [mapserver-users] DGN V8 mapserver Message-ID: <49AD63BD.2090307@codematix.de> Hi, is it possible to use Microstation DGN V8 files in Mapserver? I know it works for V7 files using OGR but I need this functionality for V8 files also. Could this work using the dgndirect library and (if so) can it be integrated in GDAL? Has anyone of you some experience with that? Would there be differences to V7 files in handling them, especially the use of autostyling? Thanks in advance, Holger From thomas.bonfort at gmail.com Tue Mar 3 10:01:45 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Tue, 3 Mar 2009 19:01:45 +0100 Subject: [mapserver-users] Mapserver images doesn't fit well on a tiling scheme??? In-Reply-To: <20090303164156.GW385@metacarta.com> References: <797086.32742.qm@web51403.mail.re2.yahoo.com> <277332.88277.qm@web51410.mail.re2.yahoo.com> <451210.5504.qm@web51412.mail.re2.yahoo.com> <20090303164156.GW385@metacarta.com> Message-ID: To summarize, here is the way to *completely* avoid truncated labels and edge artifacts: * use a 10 pixel metabuffer in your tilecache config (the number of metatiles is irrelevant, but as Chris points out, there'll be more labels included if you use a 3x3 (or more) metatiling scheme than a 1x1 one : metaTile=true metaSize=3,3 metaBuffer=10 * set a 10 pixel edge buffer in mapserver (so no labels are rendered in the 10 pixels on the edges of the image) : WEB METADATA labelcache_map_edge_buffer "-10" END END * use PARTIALS FALSE in all your label blocks -- Thomas Bonfort CampToCamp From warmerdam at pobox.com Tue Mar 3 11:44:02 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 03 Mar 2009 14:44:02 -0500 Subject: [mapserver-users] Re: Mapserver WMS seem not to read +towgs84 parameters In-Reply-To: References: Message-ID: <49AD8882.6000804@pobox.com> Rahkonen Jukka wrote: > I forget to mention that I am using epsg:3067 in my WMS requests while > image data is in epsg:2393 so Mapserver for sure is reprojecting. Jukka, I believe the problem is that EPSG:3067 expands as: +proj=utm +zone=35 +ellps=GRS80 +units=m +no_defs with no +towgs84 value. From PROJ 4.6.0 on datum shifts are only applied if we know datum information for the source and destination coordinate system. If you want ETRS89 treated as equivelent to WGS84 you might want to add a +towgs84=0,0,0 in the EPSG 3067 entry in the epsg file too. 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 danlittle at yahoo.com Tue Mar 3 12:08:59 2009 From: danlittle at yahoo.com (Dan Little) Date: Tue, 3 Mar 2009 12:08:59 -0800 (PST) Subject: [mapserver-users] Mapserver images doesn't fit well on a tiling scheme??? In-Reply-To: References: <797086.32742.qm@web51403.mail.re2.yahoo.com> <277332.88277.qm@web51410.mail.re2.yahoo.com> <451210.5504.qm@web51412.mail.re2.yahoo.com> <20090303164156.GW385@metacarta.com> Message-ID: <477079.68380.qm@web51407.mail.re2.yahoo.com> Thanks Chris and Thomas for clarifying... I think my thoughts were correct and my descriptions were not... go figure. MfG ----- Original Message ---- > From: thomas bonfort > To: Christopher Schmidt > Cc: Dan Little ; mapserver-users at lists.osgeo.org > Sent: Tuesday, March 3, 2009 12:01:45 PM > Subject: Re: [mapserver-users] Mapserver images doesn't fit well on a tiling scheme??? > > To summarize, here is the way to *completely* avoid truncated labels > and edge artifacts: > > * use a 10 pixel metabuffer in your tilecache config (the number of > metatiles is irrelevant, but as Chris points out, there'll be more > labels included if you use a 3x3 (or more) metatiling scheme than a > 1x1 one : > > metaTile=true > metaSize=3,3 > metaBuffer=10 > > * set a 10 pixel edge buffer in mapserver (so no labels are rendered > in the 10 pixels on the edges of the image) : > WEB > METADATA > labelcache_map_edge_buffer "-10" > END > END > > * use PARTIALS FALSE in all your label blocks > > -- > Thomas Bonfort > CampToCamp From pramsey at opengeo.org Tue Mar 3 15:52:19 2009 From: pramsey at opengeo.org (Paul Ramsey) Date: Tue, 3 Mar 2009 15:52:19 -0800 Subject: [mapserver-users] Oracle database problem In-Reply-To: References: Message-ID: <30fe546d0903031552y5e67ad6esb3c7b43e6020e467@mail.gmail.com> You say the query runs OK from SQL/Plus, but are you logging into SQL/Plus as the "sde" user? On Wed, Feb 25, 2009 at 12:33 PM, Bal?zs B?mer wrote: > Hi All, > > I have a MapServer 5.2.1 compiled with > ./configure --with-oci > --with-oraclespatial=/usr/local/instantclient_11_1 --with-proj > --with-threads --with-gdal --with-ogr --with-jpeg --with-png=/usr/lib > --with-php=/usr/include/php5 > on Ubuntu 8.10 > > I tried to maka a layer with > > LAYER > ?NAME lejto > ?METADATA > ? ?"DESCRIPTION" "lejto" > ? ?"wms_title" "lejto" > ? ?"ows_include_items" "all" > ?END > ?PROJECTION > ? ?"init=epsg:23700" > ?END > ?TYPE POLYGON > ?STATUS ON > ?CONNECTIONTYPE oraclespatial > ?CONNECTION "sde/asdfgh at 10.0.8.51:1521" > ?DATA "geom from LEJTO_2008_070814 using SRID 23700" > ?CLASS > ? ?NAME "lejto" > ? ?STYLE > ? ? ?OUTLINECOLOR 127 127 127 > ? ?END > ?END > ?DUMP TRUE > ?TEMPLATE "template.html" > END # layer > > GetCapabilities query works. If I try to draw the map with (you can try): > http://att-it.homelinux.net:22080/cgi-bin/sokfolt?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=lejto&STYLES=&SRS=epsg:23700&BBOX=420000,40000,950000,370000&WIDTH=938&HEIGHT=591&FORMAT=image/png > > > the response is msDrawMap(): Image handling error. Failed to draw > layer named 'lejto'. > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: > ORA-00942: table or view does not exist > ?. Query statement: SELECT rownum, geom FROM LEJTO_2008_070814 WHERE > SDO_FILTER( geom, MDSYS.SDO_GEOMETRY(2003, 23700, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(420000,40000,950000,370000) > ),'querytype=window') = 'TRUE' . Check your data statement. > > while in sqlplus the query quite similar to the above (just modified > to write row count instead of the 2 columns) > > SELECT count(1) FROM LEJTO_2008_070814 WHERE SDO_FILTER( geom, > MDSYS.SDO_GEOMETRY(2003, 23700, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(420000,40000,950000,370000) > ),'querytype=window') = 'TRUE' > > runs. > > SRID information and table user_sdo_geom_metadata is actualized: > > Insert into USER_SDO_GEOM_METADATA > (TABLE_NAME,COLUMN_NAME,DIMINFO,SRID) values > ('lejto_2008_070814','GEOM',MDSYS.SDO_DIM_ARRAY(MDSYS.SDO_DIM_ELEMENT('X',437534.249899998,935741,5E-8),MDSYS.SDO_DIM_ELEMENT('Y',47058.0469,355027,5E-8)),23700); > drop index IDX_LEJTO_2008_070814_GEOM; > UPDATE lejto_2008_070814 c SET c.geom.SDO_SRID=23700; > CREATE INDEX idx_lejto_2008_070814_GEOM ON lejto_2008_070814 (GEOM) > INDEXTYPE IS MDSYS.SPATIAL_INDEX PARAMETERS ('layer_gtype=POLYGON'); > > What can be the problem? > > Thank you in advance. > Best regards: Bal?zs B?mer > > What can be the problem? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From pramsey at opengeo.org Tue Mar 3 15:53:47 2009 From: pramsey at opengeo.org (Paul Ramsey) Date: Tue, 3 Mar 2009 15:53:47 -0800 Subject: [mapserver-users] About font sizes In-Reply-To: <175F7A5EFAFB4EDCBEC106D6EA292F19@jcdesktop> References: <175F7A5EFAFB4EDCBEC106D6EA292F19@jcdesktop> Message-ID: <30fe546d0903031553t69a5e95fi414254cfff3de36e@mail.gmail.com> You have to both compile Mapserver with AGG support and ensure that your outputformat is using the AGG driver to get AGG rendering. If you're not doing both those, you're getting GD rendering, which is the (faster/less attractive) default. P On Mon, Mar 2, 2009 at 6:23 PM, GMail wrote: > Greetings! > > The attached image is generated with the following: > > LABEL > ? ? ? ?PRIORITY ? ? ? ?5 > ? ? ? ?ENCODING ? ? ? ?"UTF-8" > ? ? ? ?COLOR ? ? ? ? ? 32 32 32 > ? ? ? ?OUTLINECOLOR ? ?255 255 255 > ? ? ? ?TYPE ? ? ? ? ? ?TRUETYPE > ? ? ? ?FONT ? ? ? ? ? ?"arial" > ? ? ? ?SIZE ? ? ? ? ? ?7 > ? ? ? ?BUFFER ? ? ? ? ?2 > ? ? ? ?POSITION ? ? ? ?AUTO > ? ? ? ?PARTIALS ? ? ? ?FALSE > ? ? ? ?MINFEATURESIZE ?25 > ? ? ? ?WRAP ? ? ? ? ? ?" " > ? ? ? ?MAXLENGTH ? ? ? 8 > ? ? ? ?ALIGN ? ? ? ? ? CENTER > END > > > The most obvious issue is the character "t" and "o", which are stuck > together. Actually, the "Ria" part of the word are closer together, and the > "l" seems a bit separated from parts. > > I've checked that the AGG engine can render text with sub-pixel precision, > and can render down to 6px font size clearly. Just curious, how mapserver > does the text rendering? > > I'm not sure which part of the above label object goes wrong. Any light? > > _______________________________________________ > 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 Mar 4 03:17:24 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 4 Mar 2009 13:17:24 +0200 Subject: [mapserver-users] Re: Mapserver WMS seem not to read +towgs84 parameters In-Reply-To: <49AD8882.6000804@pobox.com> Message-ID: Thanks Frank, Adding +towgs84=0,0,0 made it. Was it something that I should have been known? Does more fresh epsg file contain towgs84 parameters for epsg:3067 and other comparable projections? -Jukka- > -----Alkuper?inen viesti----- > L?hett?j?: Frank Warmerdam [mailto:warmerdam at pobox.com] > L?hetetty: 3. maaliskuuta 2009 21:44 > Vastaanottaja: Rahkonen Jukka > Kopio: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] Re: Mapserver WMS seem not to > read +towgs84 parameters > > Rahkonen Jukka wrote: > > I forget to mention that I am using epsg:3067 in my WMS > requests while > > image data is in epsg:2393 so Mapserver for sure is reprojecting. > > Jukka, > > I believe the problem is that EPSG:3067 expands as: > > +proj=utm +zone=35 +ellps=GRS80 +units=m +no_defs > > with no +towgs84 value. From PROJ 4.6.0 on datum shifts are > only applied if we know datum information for the source and > destination coordinate system. > > If you want ETRS89 treated as equivelent to WGS84 you might > want to add a +towgs84=0,0,0 in the EPSG 3067 entry in the > epsg file too. > > 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 julien.trolet at ifremer.fr Wed Mar 4 03:26:03 2009 From: julien.trolet at ifremer.fr (julien) Date: Wed, 04 Mar 2009 12:26:03 +0100 Subject: [mapserver-users] JAVA Mapscript LayerObj issues Message-ID: <49AE654B.9080908@ifremer.fr> Hi, I am using the latest mapscript version 5.4.0beta2 for JAVA to build on-demand mapfiles through a website. My goal here is to put a symbol and an associated text on a specific location on the maps. I was successful with a static mapfile and the shp2img command with the following code : LAYER NAME Test TYPE POINT STATUS DEFAULT FEATURE POINTS 10 10 END TEXT "Blablabla" END CLASS STYLE SYMBOL "kreis" SIZE 50 COLOR 0 0 0 END LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 0 POSITION UC END END END However, when I tried to translated this mapfile into JAVA, I did not found any function or any object for the feature part (in red): FEATURE POINTS 10 10 END TEXT "Blablabla" END The remaining code can be coded with layerObj, classObj, styleObj and LabelObj. But there is no featureObj. Did I missed something or this is not possible to do it with JAVA? Thanks in advance Trolet Julien PS : If someone knows another way to put a symbol and an associated text on a specific (and dynamic) location on a map, he is welcome to let me know. ;) -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtammineni at roulacglobal.com Wed Mar 4 04:05:02 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Wed, 4 Mar 2009 17:35:02 +0530 Subject: [mapserver-users] JAVA Mapscript LayerObj issues In-Reply-To: <49AE654B.9080908@ifremer.fr> References: <49AE654B.9080908@ifremer.fr> Message-ID: <007801c99cc1$793caad0$6bb60070$@com> HI, According to knowledge there is no feature class or object. You have to use PointObj to get points Like PointObj point = new pointObj(retuns some x, y dosomething herer); Point.x=10; or setX() Point.y=10; oe setY(); Something like this ... Think in this way. I hope this helps you . Thanks Venkat. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of julien Sent: Wednesday, March 04, 2009 4:56 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] JAVA Mapscript LayerObj issues Hi, I am using the latest mapscript version 5.4.0beta2 for JAVA to build on-demand mapfiles through a website. My goal here is to put a symbol and an associated text on a specific location on the maps. I was successful with a static mapfile and the shp2img command with the following code : LAYER NAME Test TYPE POINT STATUS DEFAULT FEATURE POINTS 10 10 END TEXT "Blablabla" END CLASS STYLE SYMBOL "kreis" SIZE 50 COLOR 0 0 0 END LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 0 POSITION UC END END END However, when I tried to translated this mapfile into JAVA, I did not found any function or any object for the feature part (in red): FEATURE POINTS 10 10 END TEXT "Blablabla" END The remaining code can be coded with layerObj, classObj, styleObj and LabelObj. But there is no featureObj. Did I missed something or this is not possible to do it with JAVA? Thanks in advance Trolet Julien PS : If someone knows another way to put a symbol and an associated text on a specific (and dynamic) location on a map, he is welcome to let me know. ;) -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Wed Mar 4 04:11:07 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 4 Mar 2009 13:11:07 +0100 Subject: [mapserver-users] JAVA Mapscript LayerObj issues In-Reply-To: <49AE654B.9080908@ifremer.fr> References: <49AE654B.9080908@ifremer.fr> Message-ID: Hi, There should be a layerObj.addFeature( shapeObjshape ) to accomplish this task. Best regards, Tamas 2009/3/4 julien > Hi, > > I am using the latest mapscript version 5.4.0beta2 for JAVA to build > on-demand mapfiles through a website. > My goal here is to put a symbol and an associated text on a specific > location on the maps. > > I was successful with a static mapfile and the shp2img command with the > following code : > > LAYER > NAME Test > TYPE POINT > STATUS DEFAULT > FEATURE > POINTS > 10 10 > END > TEXT "Blablabla" > END > CLASS > STYLE > SYMBOL "kreis" > SIZE 50 > COLOR 0 0 0 > END > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 0 > POSITION UC > END > END > END > > However, when I tried to translated this mapfile into JAVA, I did not found > any function or any object for the feature part (in red): > FEATURE > POINTS > 10 10 > END > TEXT "Blablabla" > END > The remaining code can be coded with layerObj, classObj, styleObj and > LabelObj. But there is no featureObj. > > Did I missed something or this is not possible to do it with JAVA? > > Thanks in advance > > Trolet Julien > > PS : If someone knows another way to put a symbol and an associated text on > a specific (and dynamic) location on a map, he is welcome to let me know. ;) > > _______________________________________________ > 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 rpha88 at gmail.com Wed Mar 4 05:18:24 2009 From: rpha88 at gmail.com (rohan phatak) Date: Wed, 4 Mar 2009 17:48:24 +0430 Subject: [mapserver-users] Print the X,Y co-ordinate in GMAP Message-ID: hello friends, I am using mapserver application gmap. But in gmap there is no facility to see the latitude ,longitude .So any one has idea how see those values?? Thanks in Advance : ) -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Wed Mar 4 06:09:04 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 04 Mar 2009 09:09:04 -0500 Subject: [mapserver-users] Re: Mapserver WMS seem not to read +towgs84 parameters In-Reply-To: References: Message-ID: <49AE8B80.7000908@pobox.com> Rahkonen Jukka wrote: > Thanks Frank, > > Adding +towgs84=0,0,0 made it. Was it something that I should have been > known? Jukka, It does get mentioned in a variety of contexts but it is not surprising that you wouldn't realize it. > Does more fresh epsg file contain towgs84 parameters for epsg:3067 > and other comparable projections? No. There are lots and lots of EPSG coordinate systems for which GDAL and PROJ do *not* know what to use for a datum shift and so effectively datum shifting is not supported for them without manual intervention of some kind. In some cases there is no datum shift mechanism recorded in the original EPSG database, while in others there are multiple ways of doing the datum shift and there is no way of identifying the most appropriate way for any particular requirement. 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 traviskirstine at gmail.com Wed Mar 4 06:54:14 2009 From: traviskirstine at gmail.com (Travis Kirstine) Date: Wed, 4 Mar 2009 09:54:14 -0500 Subject: [mapserver-users] Image Quality - Image Preprocessing Message-ID: <681116190903040654r4d378ec7x89fc906c1112914d@mail.gmail.com> We are running mapserver connected to a tilecache delivering high resolution orthophoto to a google maps. The problem I am having is that we preprocess all our imagery using reduced resolutions at higher scales and full resolution at lower scales. In the past we have used gdal_merge with - ps 10 10 to merge tile into larger overalls and downsampling the resolution but we have found that the image quality was not adequate. I have been experimenting with gdalwarp using the different resampling methods with varied results. Is there any consensus on which resampling method provided with gdal provide the optimal results (from a viewing perspective) when downsampling imagery data? -- Travis K. Toronto, Canada ------------------------------------------------------------ "She knows there's no success like failure And that failure's no success at all." -Bob Dylan- ------------------------------------------------------------ From jmckenna at gatewaygeomatics.com Wed Mar 4 08:20:52 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 04 Mar 2009 11:20:52 -0500 Subject: [mapserver-users] Map server build kit In-Reply-To: <499F3141.2090301@gatewaygeomatics.com> References: <499F3141.2090301@gatewaygeomatics.com> Message-ID: <49AEAA64.8030800@gatewaygeomatics.com> Jeff McKenna wrote: > >> Where can I download latest build kit for map server? Also, will I be >> able to use nmake of VS 2008 to compile it? > > http://www.gatewaygeomatics.com/dl/buildkit/ > The Visual Studio 2008 buildkit is now available: http://www.gatewaygeomatics.com/dl/buildkit/ (please see the README.txt in that download directory). -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From Jim.Klassen at ci.stpaul.mn.us Wed Mar 4 08:44:45 2009 From: Jim.Klassen at ci.stpaul.mn.us (Jim Klassen) Date: Wed, 04 Mar 2009 10:44:45 -0600 Subject: [mapserver-users] Oracle database problem Message-ID: <49AE5B9E0200004F0000F511@jeckle> I am probably missing something here, but your connection string looks incomplete to me. I have only seen the following forms: user/password at tns_name user/password at database_host:port/global_database_service_name (note the global service name needs to match exactly what the TNS listener on the database host, in particular this is usually not equal to the SID.) Now my confusion is to get the ORA-00942: table or view does not exist error, you must have connected to a database, right? So the next question is did you connect to the right database and as the right user? >>> Paul Ramsey 03/03/09 5:52 PM >>> You say the query runs OK from SQL/Plus, but are you logging into SQL/Plus as the "sde" user? On Wed, Feb 25, 2009 at 12:33 PM, Bal?zs B?mer wrote: > Hi All, > > I have a MapServer 5.2.1 compiled with > ./configure --with-oci > --with-oraclespatial=/usr/local/instantclient_11_1 --with-proj > --with-threads --with-gdal --with-ogr --with-jpeg --with-png=/usr/lib > --with-php=/usr/include/php5 > on Ubuntu 8.10 > > I tried to maka a layer with > > LAYER > NAME lejto > METADATA > "DESCRIPTION" "lejto" > "wms_title" "lejto" > "ows_include_items" "all" > END > PROJECTION > "init=epsg:23700" > END > TYPE POLYGON > STATUS ON > CONNECTIONTYPE oraclespatial > CONNECTION "sde/asdfgh at 10.0.8.51:1521" > DATA "geom from LEJTO_2008_070814 using SRID 23700" > CLASS > NAME "lejto" > STYLE > OUTLINECOLOR 127 127 127 > END > END > DUMP TRUE > TEMPLATE "template.html" > END # layer > > GetCapabilities query works. If I try to draw the map with (you can try): > http://att-it.homelinux.net:22080/cgi-bin/sokfolt?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=lejto&STYLES=&SRS=epsg:23700&BBOX=420000,40000,950000,370000&WIDTH=938&HEIGHT=591&FORMAT=image/png > > > the response is msDrawMap(): Image handling error. Failed to draw > layer named 'lejto'. > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: > ORA-00942: table or view does not exist > . Query statement: SELECT rownum, geom FROM LEJTO_2008_070814 WHERE > SDO_FILTER( geom, MDSYS.SDO_GEOMETRY(2003, 23700, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(420000,40000,950000,370000) > ),'querytype=window') = 'TRUE' . Check your data statement. > > while in sqlplus the query quite similar to the above (just modified > to write row count instead of the 2 columns) > > SELECT count(1) FROM LEJTO_2008_070814 WHERE SDO_FILTER( geom, > MDSYS.SDO_GEOMETRY(2003, 23700, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(420000,40000,950000,370000) > ),'querytype=window') = 'TRUE' > > runs. > > SRID information and table user_sdo_geom_metadata is actualized: > > Insert into USER_SDO_GEOM_METADATA > (TABLE_NAME,COLUMN_NAME,DIMINFO,SRID) values > ('lejto_2008_070814','GEOM',MDSYS.SDO_DIM_ARRAY(MDSYS.SDO_DIM_ELEMENT('X',437534.249899998,935741,5E-8),MDSYS.SDO_DIM_ELEMENT('Y',47058.0469,355027,5E-8)),23700); > drop index IDX_LEJTO_2008_070814_GEOM; > UPDATE lejto_2008_070814 c SET c.geom.SDO_SRID=23700; > CREATE INDEX idx_lejto_2008_070814_GEOM ON lejto_2008_070814 (GEOM) > INDEXTYPE IS MDSYS.SPATIAL_INDEX PARAMETERS ('layer_gtype=POLYGON'); > > What can be the problem? > > Thank you in advance. > Best regards: Bal?zs B?mer > > What can be the problem? > _______________________________________________ > 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 mitchelljj98 at gmail.com Wed Mar 4 09:26:22 2009 From: mitchelljj98 at gmail.com (John Mitchell) Date: Wed, 4 Mar 2009 12:26:22 -0500 Subject: [mapserver-users] Is using ECW format allowed or not? In-Reply-To: <48FCBCC8.9080504@hostgis.com> References: <48FCBCC8.9080504@hostgis.com> Message-ID: If instead of using compressed ECW images as input for MapServer WMS you had GeoWebCache in front of MapServer which means that the WMS input is cached tiled png's instead of ECW images from MapServer.Then I think that you get around the ECW SDK license agreement, Correct??? Thanks, John On Mon, Oct 20, 2008 at 12:15 PM, Gregor Mosheh wrote: > 1. Can we use our compressed ECW images as input for MapServer WMS? >> 2. Can we use ECW as an output format for MapServer WCS? >> > > The license agreement says that the ECW SDK cannot be used "on a server" > then goes on to define that as a computer connected to the Internet which > provides images. I'd say that clearly rules out MapServer consuming ECW. > Very unfortunate, but in my opinion very clear. > > In my tests, I have found that JPEG2000 and ECW are really too slow for > production use anyway. Maybe that's some "sour grapes" consolation? :) > > -- > Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ > System Administrator, Lead Programmer > HostGIS development & hosting services, http://www.HostGIS.com/ > > "Remember that no one cares if you can back up, > only if you can restore." - AMANDA > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From bamerbalazs at gmail.com Wed Mar 4 09:27:24 2009 From: bamerbalazs at gmail.com (=?UTF-8?B?QmFsw6F6cyBCw6FtZXI=?=) Date: Wed, 4 Mar 2009 18:27:24 +0100 Subject: [mapserver-users] Oracle database problem In-Reply-To: <49AE5B9E0200004F0000F511@jeckle> References: <49AE5B9E0200004F0000F511@jeckle> Message-ID: Hi Jim, > user/password at tns_name > user/password at database_host:port/global_database_service_name I figured out the following as a solution: CONNECTIONTYPE oraclespatial CONNECTION "user/password@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST= IPaddress)(PORT= port)))(CONNECT_DATA=(SID=sid)))" > have connected to a database, right? So the next question is did you connect to the right > database and as the right user? This was the problem, wrong database. best regards: Bal?zs B?mer From MMaganti at oriongis.com Wed Mar 4 10:01:06 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Wed, 4 Mar 2009 13:01:06 -0500 Subject: [mapserver-users] WMS and map script Message-ID: Hi I am getting junk extent values after calling layerObj.getExtent() on a WMS layer. This is the WMS server url http://www2.demis.nl/wms/wms.asp I have used a layer called Countries from that server and this is the capability xml for that layer Countries Countries This is the entry in map file LAYER CONNECTION "http://www2.demis.nl/wms/wms.asp?wms=SAMPLE&" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:4326" "wms_name" "Countries" "wms_format" "image/png" "wms_server_version" "1.1.0" END NAME "Countries" PROJECTION "init=epsg:4326" END STATUS ON TYPE RASTER UNITS DD END I get extents values (minx, miny, maxx and maxy) as -4.8366978272229995E-26 (which is not same as above in the capabilities xml) Appreciate any help. Thanks Murty -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at hostgis.com Wed Mar 4 10:21:54 2009 From: gregor at hostgis.com (Gregor at HostGIS) Date: Wed, 04 Mar 2009 10:21:54 -0800 Subject: [mapserver-users] Is using ECW format allowed or not? In-Reply-To: References: <48FCBCC8.9080504@hostgis.com> Message-ID: <49AEC6C2.5030708@hostgis.com> John Mitchell wrote: > If instead of using compressed ECW images as input for MapServer WMS you > had GeoWebCache in front of MapServer which means that the WMS input is > cached tiled png's instead of ECW images from MapServer. > Then I think that you get around the ECW SDK license agreement, Correct??? If one wanted to be technical about the ECW consumer being "on the Internet" then it would have to be connected, well, not to the Internet. A cross-over cable and a private IP should fill that requirement nicely. But don't take my word for it; you'd probably want to consult with them or a lawyer on it. Reading the license is one thing, trying to circumvent it in good faith is a lawyer's job. ;) -- Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ System Administrator, Lead Programmer HostGIS development & hosting services, http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From MMaganti at oriongis.com Wed Mar 4 08:27:08 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Wed, 4 Mar 2009 11:27:08 -0500 Subject: [mapserver-users] Encoding issues In-Reply-To: References: Message-ID: Hi Tamas This is still not working for some of the Asian languages. I suspect the issue could be in this line of your sample code below s.Append(Convert.ToChar(bytes[i])); Here, one single byte is used to convert to a character. But my understanding is that UTF-8 can consume from 1 to 4 bytes to represent one character code point. It worked fine for Arabic may be because all Arabic characters can be represented using a single byte. When I tried the same code below with Hindi, an Indian language, some of the characters are shown junk (but not all characters). I guess those characters which occupy more than a byte turned out to be junk. I am also trying the opposite of the sample code below i.e. read a field value from map server (shapeObj.values), which is in Hindi, and show on a web page, again it turns out to be junk. I tried to look at the byte values of the string in VS by using Byte[] bites = Encoding.Unicode.GetBytes(shapeObj.values[0]) I notice that they are actually code point of UTF-8 but interpreted as UTF-16 and may be the reason I see junk characters on web page. But I don?t know how to extract those UTF-8 byte values from UTF-16. I am just giving sample code here to explain byte[] utf16 = Encoding.Unicode.GetBytes("?????"); //The text is in Hindi, an Indian language byte[] utf8 = Encoding.UTF8.GetBytes("?????"); shapeObj shape = layer.getFeature(result.shapeindex, result.tileindex); string value = shape.values[1]; //This contains the same text (in Hindi) as above in the shape file. byte[] bytes = Encoding.Unicode.GetBytes(value); //There are byte values of characters decoded from UTF-16. .Net internally stores all strings in UTF-16 Now if I examine the values of ?utf8? and ?bytes? arrays utf8 ? 224,164,149,224,165,128,224,164,154,224,164,168,224,164,176 bytes ? 224,0,164,0,34,32,224,0,165,0,172,32,224,0,164,0,97,1,224,0,164,0,168,0,224,0,164,0,176,0 utf16 ? 21,9,64,9,26,9,40,9,48,9 The first byte value is same as UTF-8. Second byte value is 0 as UTF-16 takes atleast 2 bytes for a character. This gives me impression that the byte values are in UTF-8 and are not converted to UTF-16 to by .Net. Appreciate if you see any solution for this and let me know. Thanks Murty From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Friday, February 06, 2009 6:59 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Encoding issues You might have to make explicit conversion maually something like: string value = "???????????????"; //I actually get this (in arabic) through user input byte[] bytes = Encoding.Convert(Encoding.Unicode, Encoding.GetEncoding(1256), Encoding.Unicode.GetBytes(value)); StringBuilder s = new StringBuilder(); for (int i = 0; i < bytes.Length; i++) s.Append(Convert.ToChar(bytes[i])); shpObj.text = s.ToString(); Best regards, Tamas 2009/2/6 Murty Maganti HI I am doing a simple thing. I have a map file and trying to show some static text in Arabic on map. You can try this with any map file as it is nothing to do with layers from map. At run time (like on a button click), please add this layerObj lyr = new layerObj(mapObj); lyr.name = "TextAcetate"; lyr.status = mapscript.MS_ON; lyr.type = MS_LAYER_TYPE.MS_LAYER_ANNOTATION; lyr.labelcache = mapscript.MS_TRUE; double locationX = 50; double locationY = 50; lyr.transform = (int)mapscript.MS_FALSE; classObj layerClass = new classObj(lyr); //All label properties layerClass.label.size = 15; layerClass.label.type = MS_FONT_TYPE.MS_TRUETYPE; ? ? layerClass.label.encoding = "CP1256"; shapeObj shpObj = new shapeObj((int)MS_SHAPE_TYPE.MS_SHAPE_POINT); lineObj lnObj = new lineObj(); pointObj pt = new pointObj(locationX, locationY, 0, 0); lnObj.add(pt); shpObj.add(lnObj); shpObj.text = "???????????????"; //I actually get this (in arabic) through user input lyr.addFeature(shpObj); mapObj.draw(); //Onto a picture box or save as file (In the map file, my output format is set to GD/PNG) Please let me know if you need more information. Thanks Murty From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Tamas Szekeres Sent: Friday, February 06, 2009 4:12 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Encoding issues Please send me your example so that I could examine what's going on. Best regards, Tamas 2009/2/6 Murty Maganti Hi I tried with the suggested encoding but still no success. From the output below, I guess ICONV support is included. E:\Utils\MapServer\Map Server 5.2 RC\ms4w\Apache\cgi-bin>mapserv -v MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICO NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUP PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Where can get some details on how to build the C# mapscript (Managed assembly only) from Visual Studio, keeping all unmanaged dlls from binaries from ms4w. I just want to give a try using MarshalAsAttribute. Thanks Murty From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Friday, February 06, 2009 3:02 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Encoding issues Hi, You might want to try with encoding="ISO-8859-6" assuming you have libiconv compiled in. The c# mapscript doesn't specify explicit conversion during the marshaling. In this case I assume an unicode to Charset.Ansi conversion will automatically takes place by default. Best regards, Tamas 2009/2/6 Murty Maganti Hello I am having some issues using Arabic text as labels. I am using C# map script. I am setting the following at runtime labelObj label = classObj.label; label.encoding = "CP1256"; label.text = "some text in Arabic"; (At rune time in VS, I can see the text is actually in Arabic) But labels are displayed as '?????'. Is there any conversion I need to do before setting the text value. How are the string represented in the underlying mapscript dll (ASCII or Unicode?). As I was reading in the MSDN, the default marshalling uses LPStr which is a single byte of ASCII. Does it mean that first I need to convert from Unicode to ASCII in C# before setting the value. Appreciate any help. Thanks Murty _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at ec.gc.ca Wed Mar 4 11:01:32 2009 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Wed, 4 Mar 2009 14:01:32 -0500 Subject: [mapserver-users] WMS and map script In-Reply-To: References: Message-ID: > > I am getting junk extent values after calling > layerObj.getExtent() on a WMS layer. > > > > This is the WMS server url > > http://www2.demis.nl/wms/wms.asp > > > > I have used a layer called Countries from that server and > this is the capability xml for that layer > > queryable="1" opaque="0"> > > > Countries > > > Countries > > > maxx="180" maxy="83.6333923339844"/> > > > > > > This is the entry in map file > > LAYER > > CONNECTION "http://www2.demis.nl/wms/wms.asp?wms=SAMPLE&" > > CONNECTIONTYPE WMS > > METADATA > > "wms_srs" "EPSG:4326" > > "wms_name" "Countries" > > "wms_format" "image/png" > > "wms_server_version" "1.1.0" > > END > > NAME "Countries" > > PROJECTION > > "init=epsg:4326" > > END > > STATUS ON > > TYPE RASTER > > UNITS DD > > END > > > > I get extents values (minx, miny, maxx and maxy) as > -4.8366978272229995E-26 (which is not same as above in the > capabilities xml) > > > > Appreciate any help. > MapServer won't do a GetCapabiilties to get the extent for remote WMS layers. If you set LAYER.EXTENT accordingly, layer.getExtent() will work accordingly. ..Tom From MMaganti at oriongis.com Wed Mar 4 11:13:04 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Wed, 4 Mar 2009 14:13:04 -0500 Subject: [mapserver-users] WMS and map script In-Reply-To: References: Message-ID: That won't help me. I add the wms layer dynamically to map using C# mapscript (and then save the map object to map file). I can get the extents from capabilities but layer.extent is readonly and can't be set. Thanks Murty -----Original Message----- From: Kralidis,Tom [Ontario] [mailto:Tom.Kralidis at ec.gc.ca] Sent: Wednesday, March 04, 2009 2:02 PM To: Murty Maganti; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] WMS and map script > > I am getting junk extent values after calling > layerObj.getExtent() on a WMS layer. > > > > This is the WMS server url > > http://www2.demis.nl/wms/wms.asp > > > > I have used a layer called Countries from that server and > this is the capability xml for that layer > > queryable="1" opaque="0"> > > > Countries > > > Countries > > > maxx="180" maxy="83.6333923339844"/> > > > > > > This is the entry in map file > > LAYER > > CONNECTION "http://www2.demis.nl/wms/wms.asp?wms=SAMPLE&" > > CONNECTIONTYPE WMS > > METADATA > > "wms_srs" "EPSG:4326" > > "wms_name" "Countries" > > "wms_format" "image/png" > > "wms_server_version" "1.1.0" > > END > > NAME "Countries" > > PROJECTION > > "init=epsg:4326" > > END > > STATUS ON > > TYPE RASTER > > UNITS DD > > END > > > > I get extents values (minx, miny, maxx and maxy) as > -4.8366978272229995E-26 (which is not same as above in the > capabilities xml) > > > > Appreciate any help. > MapServer won't do a GetCapabiilties to get the extent for remote WMS layers. If you set LAYER.EXTENT accordingly, layer.getExtent() will work accordingly. ..Tom From robhyx at gmail.com Wed Mar 4 11:52:14 2009 From: robhyx at gmail.com (Robert Hicks) Date: Wed, 4 Mar 2009 14:52:14 -0500 Subject: [mapserver-users] Trying to pass parameters to a map file Message-ID: Hello all, I am trying to pass a parameter to a GetMap call, that way I can 'on the fly' determine the CONNECTION and WMS_LAYER attributes. So for instance, I am going to generate a list of several available online services and depending on which is selected, the GetMap request will also have additional information such as the CONNECTION string and the LAYER name, that way I can use the same map file for multiple layers. Is this possible to do? I know you can do something similar with the FILTER option in the map file. Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From MMaganti at oriongis.com Wed Mar 4 11:55:13 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Wed, 4 Mar 2009 14:55:13 -0500 Subject: [mapserver-users] WMS and map script In-Reply-To: References: Message-ID: Tom, Also, I don't see EXTENT attribute at layer level, from below reference http://www.mapserver.org/mapfile/layer.html There is layerObj.setExtent() but the extents are not saved to map file. Thanks Murty -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Murty Maganti Sent: Wednesday, March 04, 2009 2:13 PM To: Kralidis,Tom [Ontario]; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] WMS and map script That won't help me. I add the wms layer dynamically to map using C# mapscript (and then save the map object to map file). I can get the extents from capabilities but layer.extent is readonly and can't be set. Thanks Murty -----Original Message----- From: Kralidis,Tom [Ontario] [mailto:Tom.Kralidis at ec.gc.ca] Sent: Wednesday, March 04, 2009 2:02 PM To: Murty Maganti; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] WMS and map script > > I am getting junk extent values after calling > layerObj.getExtent() on a WMS layer. > > > > This is the WMS server url > > http://www2.demis.nl/wms/wms.asp > > > > I have used a layer called Countries from that server and > this is the capability xml for that layer > > queryable="1" opaque="0"> > > > Countries > > > Countries > > > maxx="180" maxy="83.6333923339844"/> > > > > > > This is the entry in map file > > LAYER > > CONNECTION "http://www2.demis.nl/wms/wms.asp?wms=SAMPLE&" > > CONNECTIONTYPE WMS > > METADATA > > "wms_srs" "EPSG:4326" > > "wms_name" "Countries" > > "wms_format" "image/png" > > "wms_server_version" "1.1.0" > > END > > NAME "Countries" > > PROJECTION > > "init=epsg:4326" > > END > > STATUS ON > > TYPE RASTER > > UNITS DD > > END > > > > I get extents values (minx, miny, maxx and maxy) as > -4.8366978272229995E-26 (which is not same as above in the > capabilities xml) > > > > Appreciate any help. > MapServer won't do a GetCapabiilties to get the extent for remote WMS layers. If you set LAYER.EXTENT accordingly, layer.getExtent() will work accordingly. ..Tom _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From MMaganti at oriongis.com Wed Mar 4 13:32:13 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Wed, 4 Mar 2009 16:32:13 -0500 Subject: [mapserver-users] WMS question Message-ID: Hi When I specify WEB.IMAGEPATH to "." and use a WMS layer, I am able to render the layer on map i.e. map server is able to save the temporary files. I want to know which folder it is getting resolved to either relative to map file path or any other path. I need to verify if the temp files are cleaned up or any files are left in the folder. I can find them in map file folder or any parent or child folders. Thanks Murty -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at ec.gc.ca Wed Mar 4 13:46:59 2009 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Wed, 4 Mar 2009 16:46:59 -0500 Subject: [mapserver-users] WMS and map script References: Message-ID: FYI there's a ticket now opened on this item at http://trac.osgeo.org/mapserver/ticket/2914 -----Original Message----- From: Murty Maganti [mailto:MMaganti at oriongis.com] Sent: Wed 04-Mar-09 14:55 To: Kralidis,Tom [Ontario]; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] WMS and map script Tom, Also, I don't see EXTENT attribute at layer level, from below reference http://www.mapserver.org/mapfile/layer.html There is layerObj.setExtent() but the extents are not saved to map file. Thanks Murty -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Murty Maganti Sent: Wednesday, March 04, 2009 2:13 PM To: Kralidis,Tom [Ontario]; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] WMS and map script That won't help me. I add the wms layer dynamically to map using C# mapscript (and then save the map object to map file). I can get the extents from capabilities but layer.extent is readonly and can't be set. Thanks Murty -----Original Message----- From: Kralidis,Tom [Ontario] [mailto:Tom.Kralidis at ec.gc.ca] Sent: Wednesday, March 04, 2009 2:02 PM To: Murty Maganti; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] WMS and map script > > I am getting junk extent values after calling > layerObj.getExtent() on a WMS layer. > > > > This is the WMS server url > > http://www2.demis.nl/wms/wms.asp > > > > I have used a layer called Countries from that server and > this is the capability xml for that layer > > queryable="1" opaque="0"> > > > Countries > > > Countries > > > maxx="180" maxy="83.6333923339844"/> > > > > > > This is the entry in map file > > LAYER > > CONNECTION "http://www2.demis.nl/wms/wms.asp?wms=SAMPLE&" > > CONNECTIONTYPE WMS > > METADATA > > "wms_srs" "EPSG:4326" > > "wms_name" "Countries" > > "wms_format" "image/png" > > "wms_server_version" "1.1.0" > > END > > NAME "Countries" > > PROJECTION > > "init=epsg:4326" > > END > > STATUS ON > > TYPE RASTER > > UNITS DD > > END > > > > I get extents values (minx, miny, maxx and maxy) as > -4.8366978272229995E-26 (which is not same as above in the > capabilities xml) > > > > Appreciate any help. > MapServer won't do a GetCapabiilties to get the extent for remote WMS layers. If you set LAYER.EXTENT accordingly, layer.getExtent() will work accordingly. ..Tom _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From szekerest at gmail.com Wed Mar 4 14:24:42 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 4 Mar 2009 23:24:42 +0100 Subject: [mapserver-users] Encoding issues In-Reply-To: References: Message-ID: Hi, I don't know much about the hindi character sets. I guess you could extent that byte array to string copy function with arbitrary character sizes, like for double bytes something like: for (int i = 0; i < bytes.Length; i=i+2) s.Append(Convert.ToChar(bytes[i] + 256*bytes[i+1])); Best regards, Tamas 2009/3/4 Murty Maganti > Hi Tamas > > > > This is still not working for some of the Asian languages. > > > > I suspect the issue could be in this line of your sample code below > > s.Append(Convert.ToChar(bytes[i])); > > > > Here, one single byte is used to convert to a character. But my > understanding is that UTF-8 can consume from 1 to 4 bytes to represent one > character code point. It worked fine for Arabic may be because all Arabic > characters can be represented using a single byte. > > > > When I tried the same code below with Hindi, an Indian language, some of > the characters are shown junk (but not all characters). I guess those > characters which occupy more than a byte turned out to be junk. > > > > I am also trying the opposite of the sample code below i.e. read a field > value from map server (shapeObj.values), which is in Hindi, and show on a > web page, again it turns out to be junk. I tried to look at the byte values > of the string in VS by using > > > > Byte[] bites = Encoding.Unicode.GetBytes(shapeObj.values[0]) > > > > I notice that they are actually code point of UTF-8 but interpreted as > UTF-16 and may be the reason I see junk characters on web page. But I don?t > know how to extract those UTF-8 byte values from UTF-16. > > > > I am just giving sample code here to explain > > > > byte[] utf16 = Encoding.Unicode.GetBytes("?????"); //The > text is in Hindi, an Indian language > > byte[] utf8 = Encoding.UTF8.GetBytes("?????"); > > > > shapeObj shape = layer.getFeature(result.shapeindex, > result.tileindex); > > string value = shape.values[1]; //This contains the same > text (in Hindi) as above in the shape file. > > > > byte[] bytes = Encoding.Unicode.GetBytes(value); //There > are byte values of characters decoded from UTF-16. .Net internally stores > all strings in UTF-16 > > > > Now if I examine the values of ?utf8? and ?bytes? arrays > > > > utf8 ? 224,164,149,224,165,128,224,164,154,224,164,168,224,164,176 > > bytes ? *224*,0,*164*,0,34,32,*224*,0,*165*,0,172,32,*224*,0,*164*,0,97,1, > *224*,0,*164*,0,*168*,0,*224*,0,*164*,0,*176*,0 > > utf16 ? 21,9,64,9,26,9,40,9,48,9 > > > > The first byte value is same as UTF-8. Second byte value is 0 as UTF-16 > takes atleast 2 bytes for a character. This gives me impression that the > byte values are in UTF-8 and are not converted to UTF-16 to by .Net. > > > > Appreciate if you see any solution for this and let me know. > > > > Thanks > > Murty > > *From:* Tamas Szekeres [mailto:szekerest at gmail.com] > *Sent:* Friday, February 06, 2009 6:59 PM > > *To:* Murty Maganti > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Encoding issues > > > > You might have to make explicit conversion maually something like: > > string value = "???????????????"; //I actually get this (in > arabic) through user input > byte[] bytes = Encoding.Convert(Encoding.Unicode, > Encoding.GetEncoding(1256), Encoding.Unicode.GetBytes(value)); > StringBuilder s = new StringBuilder(); > for (int i = 0; i < bytes.Length; i++) > s.Append(Convert.ToChar(bytes[i])); > shpObj.text = s.ToString(); > > Best regards, > > Tamas > > > 2009/2/6 Murty Maganti > > HI > > > > I am doing a simple thing. I have a map file and trying to show some static > text in Arabic on map. You can try this with any map file as it is nothing > to do with layers from map. > > > > At run time (like on a button click), please add this > > > > layerObj lyr = new layerObj(mapObj); > > lyr.name = "TextAcetate"; > > lyr.status = mapscript.MS_ON; > > lyr.type = MS_LAYER_TYPE.MS_LAYER_ANNOTATION; > > lyr.labelcache = mapscript.MS_TRUE; > > > > double locationX = 50; > > double locationY = 50; > > > > lyr.transform = (int)mapscript.MS_FALSE; > > > > classObj layerClass = new classObj(lyr); > > > > //All label properties > > layerClass.label.size = 15; > > layerClass.label.type = MS_FONT_TYPE.MS_TRUETYPE; > > ? > > ? > > layerClass.label.encoding = "CP1256"; > > > > > > shapeObj shpObj = new shapeObj((int)MS_SHAPE_TYPE > .MS_SHAPE_POINT); > > lineObj lnObj = new lineObj(); > > > > pointObj pt = new pointObj(locationX, locationY, 0, 0); > > lnObj.add(pt); > > > > shpObj.add(lnObj); > > > > shpObj.text = "???????????????"; //I actually get this (in > arabic) through user input > > > > lyr.addFeature(shpObj); > > > > mapObj.draw(); //Onto a picture box or save as file > > > > (In the map file, my output format is set to GD/PNG) > > > > Please let me know if you need more information. > > > > Thanks > > Murty > > > > > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Tamas Szekeres > *Sent:* Friday, February 06, 2009 4:12 PM > > > *To:* Murty Maganti > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Encoding issues > > > > Please send me your example so that I could examine what's going on. > > Best regards, > > Tamas > > 2009/2/6 Murty Maganti > > Hi > > > > I tried with the suggested encoding but still no success. > > From the output below, I guess ICONV support is included. > > > > E:\Utils\MapServer\Map Server 5.2 RC\ms4w\Apache\cgi-bin>mapserv -v > > MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF > > OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE * > SUPPORTS=ICO* > > *NV* SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER > > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER > SUPPORTS=FASTCGI SUP > > PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS > INPUT=OGR > > INPUT=GDAL INPUT=SHAPEFILE > > > > Where can get some details on how to build the C# mapscript (Managed > assembly only) from Visual Studio, keeping all unmanaged dlls from binaries > from ms4w. I just want to give a try using MarshalAsAttribute. > > > > Thanks > > Murty > > *From:* Tamas Szekeres [mailto:szekerest at gmail.com] > *Sent:* Friday, February 06, 2009 3:02 PM > *To:* Murty Maganti > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Encoding issues > > > > Hi, > > You might want to try with encoding="ISO-8859-6" assuming you have libiconv > compiled in. > The c# mapscript doesn't specify explicit conversion during the marshaling. > In this case I assume an unicode to Charset.Ansi conversion will > automatically takes place by default. > > Best regards, > > Tamas > > > 2009/2/6 Murty Maganti > > Hello > > > > I am having some issues using Arabic text as labels. I am using C# map > script. I am setting the following at runtime > > > > labelObj label = classObj.label; > > label.encoding = "CP1256"; > > label.text = "some text in Arabic"; (At rune time in VS, I can see the text > is actually in Arabic) > > > > But labels are displayed as '?????'. > > > > Is there any conversion I need to do before setting the text value. How > are the string represented in the underlying mapscript dll (ASCII or > Unicode?). As I was reading in the MSDN, the default marshalling uses LPStr > which is a single byte of ASCII. Does it mean that first I need to convert > from Unicode to ASCII in C# before setting the value. > > > > Appreciate any help. > > > > Thanks > > Murty > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ruijgomes at gmail.com Wed Mar 4 15:10:53 2009 From: ruijgomes at gmail.com (Rui Gomes) Date: Wed, 4 Mar 2009 23:10:53 +0000 Subject: [mapserver-users] 500 Internal Server Error Message-ID: <31e2f7000903041510w17f25ac8s12424ae33e9dbe80@mail.gmail.com> Greetings... I developed a websig in mapserver using ubuntu and a virtual host in Ubuntu OS. Now i try to build it in a real server. I expect recived the follow error Message: msLoadMap(): Unable to access file. (/testing_error/hello.map) But all i recived was: 500 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 testing_error.hostserver.net 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. What is wrong. Something is missing? -- Rui Gomes From gregor at hostgis.com Wed Mar 4 15:21:17 2009 From: gregor at hostgis.com (Gregor at HostGIS) Date: Wed, 04 Mar 2009 15:21:17 -0800 Subject: [mapserver-users] 500 Internal Server Error In-Reply-To: <31e2f7000903041510w17f25ac8s12424ae33e9dbe80@mail.gmail.com> References: <31e2f7000903041510w17f25ac8s12424ae33e9dbe80@mail.gmail.com> Message-ID: <49AF0CED.1080707@hostgis.com> Rui Gomes wrote: > I expect recived the follow error Message: > msLoadMap(): Unable to access file. (/testing_error/hello.map) I would expect that from the command line. From a webserver, I would expect a 500 response and to find that above message in the error_log -- Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ System Administrator, Lead Programmer HostGIS development & hosting services, http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From Steve.Lime at dnr.state.mn.us Wed Mar 4 15:24:53 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 04 Mar 2009 17:24:53 -0600 Subject: [mapserver-users] 500 Internal Server Error Message-ID: <49AEB9650200008F000213E7@co5.dnr.state.mn.us> What's in the server log? Sometimes you'll see this if the right libraries can't be loaded by the mapserver cgi binary. Steve >>> Rui Gomes 03/04/09 5:11 PM >>> Greetings... I developed a websig in mapserver using ubuntu and a virtual host in Ubuntu OS. Now i try to build it in a real server. I expect recived the follow error Message: msLoadMap(): Unable to access file. (/testing_error/hello.map) But all i recived was: 500 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 testing_error.hostserver.net 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. What is wrong. Something is missing? -- Rui Gomes _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From ruijgomes at gmail.com Wed Mar 4 16:52:22 2009 From: ruijgomes at gmail.com (Rui Gomes) Date: Thu, 5 Mar 2009 00:52:22 +0000 Subject: [mapserver-users] 500 Internal Server Error In-Reply-To: <49AEB9650200008F000213E7@co5.dnr.state.mn.us> References: <49AEB9650200008F000213E7@co5.dnr.state.mn.us> Message-ID: <31e2f7000903041652w45bc5c48j5c45748ae78bc936@mail.gmail.com> The server log only have this: [Wed Mar 04 17:30:54 2009] [error] [client 89.181.105.88] File does not exist: /home2/ruigomes/public_html/404.shtml [Wed Mar 04 17:30:54 2009] [error] [client 89.181.105.88] File does not exist: /home2/ruigomes/public_html/favicon.ico And a few more question: what libraries i need to put in the server? Where i can find some documentation about the libraries mapserver need? 2009/3/4 Steve Lime : > What's in the server log? Sometimes you'll see this if the right libraries can't be loaded > by the mapserver cgi binary. > > Steve > >>>> Rui Gomes 03/04/09 5:11 PM >>> > Greetings... > > I developed a websig in mapserver using ubuntu and a virtual host in Ubuntu OS. > Now i try to build it in a real server. > > I expect recived the follow error Message: > > msLoadMap(): Unable to access file. (/testing_error/hello.map) > > > But all i recived was: > > 500 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 testing_error.hostserver.net 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. > > > What is wrong. Something is missing? > > > -- > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Rui Gomes > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Rui Gomes From gregor at hostgis.com Wed Mar 4 16:55:50 2009 From: gregor at hostgis.com (Gregor at HostGIS) Date: Wed, 04 Mar 2009 16:55:50 -0800 Subject: [mapserver-users] 500 Internal Server Error In-Reply-To: <31e2f7000903041652w45bc5c48j5c45748ae78bc936@mail.gmail.com> References: <49AEB9650200008F000213E7@co5.dnr.state.mn.us> <31e2f7000903041652w45bc5c48j5c45748ae78bc936@mail.gmail.com> Message-ID: <49AF2316.6060602@hostgis.com> > And a few more question: what libraries i need to put in the server? > Where i can find some documentation about the libraries mapserver > need? A technique I find handy for debugging mapserver problems, a bit more useful than "Internal server error", is to go into the Unix shell and use shp2img. Are you able to get into a shell? I'd use something similar to one of these: shp2img -o test.png -m mapfile.map shp2img -o test.png -m mapfile.map -d 999 shp2img -o test.png -m mapfile.map -l lakes,streets When that fails, it'll give you more information as to what went wrong. For example, it will give hints as to shapefiles being transferred in ASCII mode, or the TEMPDIR not being writable. -- Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ System Administrator, Lead Programmer HostGIS development & hosting services, http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From gluker at scu.edu.au Wed Mar 4 19:25:32 2009 From: gluker at scu.edu.au (Greg Luker) Date: Thu, 05 Mar 2009 13:25:32 +1000 Subject: [mapserver-users] $_SESSION variable substitution Message-ID: <200903050225.n252PGB1026879@atom.scu.edu.au> Hi mapserver-users, I would like to use a $_SESSION variable in a mapfile FILTER statement. I have tried variations of: (in calling HTML template): (in mapfile): FILTER "WHERE site_last_survey_who = '%myvar%'" but I can't get it to work - in this case the browser displays the WEB ERROR "errors.html" webpage and mapserver puts the following error in mapserver.log: msDrawMap(): Image handling error. Failed to draw layer named 'pts'. msOGRFileNextShape(): OGR error. Syntax error, 2 extra tokens Is it possible to do what I want? (BTW CGI mapserver v5.2) Thanks, Greg. Greg Luker GIS Lab Manager, Southern Cross University Lismore, AUSTRALIA. gluker at scu.edu.au phone 61 2 66203026 From woodbri at swoodbridge.com Wed Mar 4 19:17:44 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 04 Mar 2009 22:17:44 -0500 Subject: [mapserver-users] $_SESSION variable substitution In-Reply-To: <200903050225.n252PGB1026879@atom.scu.edu.au> References: <200903050225.n252PGB1026879@atom.scu.edu.au> Message-ID: <49AF4458.6040202@swoodbridge.com> The short answer is no. The longer answer is $_SESSION is a php variable and it only exist while php is executing. When you call mapserver cgi, it is not running in the php environment. and if you use it in a template, there is not for mapserver to tell the webserver that it needs to run php processor over the results of the out of mapserver, ie. the processed template. If you really need to do this you might be able convert the info you need into cookie or change you mapserver request to include the info you need on its url than then use url substitution. Or you might develop you application in php/mapscript where it will run in the php environment. It might help more to explain why you think you need to do this, and people might be able to offer other ways to do something similar. -Steve W Greg Luker wrote: > Hi mapserver-users, > > I would like to use a $_SESSION variable in a mapfile FILTER statement. > I have tried variations of: > > (in calling HTML template): > > > > (in mapfile): > > FILTER "WHERE site_last_survey_who = '%myvar%'" > > but I can't get it to work - in this case the browser displays the WEB > ERROR "errors.html" webpage and mapserver puts the following error in > mapserver.log: > > msDrawMap(): Image handling error. Failed to draw layer named 'pts'. > msOGRFileNextShape(): OGR error. Syntax error, 2 extra tokens > > Is it possible to do what I want? (BTW CGI mapserver v5.2) > > Thanks, > Greg. > > > > > Greg Luker > GIS Lab Manager, Southern Cross University > Lismore, AUSTRALIA. > gluker at scu.edu.au > phone 61 2 66203026 > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From gluker at scu.edu.au Wed Mar 4 20:38:07 2009 From: gluker at scu.edu.au (Greg Luker) Date: Thu, 05 Mar 2009 14:38:07 +1000 Subject: [mapserver-users] $_SESSION variable substitution In-Reply-To: <49AF4458.6040202@swoodbridge.com> References: <200903050225.n252PGB1026879@atom.scu.edu.au> <49AF4458.6040202@swoodbridge.com> Message-ID: <200903050338.n253ccZj014049@atom.scu.edu.au> Hi Steve, Thanks very much for your answer. At 01:17 PM 5/03/2009, Steve W wrote: >It might help more to explain why you think you need to do this, and >people might be able to offer other ways to do something similar. The application I'm building involves access to culturally sensitive information, that only logged in users should have access to - so url substitution is not an option. I am not a php programmer, so php/mapscript is not an (easy) option. (nor are any other mapscript flavours) The user account management part is already written (by someone else) in php, so I have access to $_SESSION, and cookies if that is a viable alternative. I'm absolutely open to any suggestions to achieve my goal of username/password restricted access to a mapserver map showing culturally sensitive points derived from a MySQL database. Thanks, Greg. Greg Luker GIS Lab Manager, Southern Cross University Lismore, AUSTRALIA. gluker at scu.edu.au phone 61 2 66203026 From binay.shrestha at nepasoft.com.np Wed Mar 4 20:16:33 2009 From: binay.shrestha at nepasoft.com.np (Binay Raja. Shrestha) Date: Thu, 5 Mar 2009 10:01:33 +0545 Subject: [mapserver-users] mapscript + openlayers Message-ID: <325521DDB16A1F4B90085DCCE3FFD12B318A04@mailsrv.nepasoft.com.np> Dear sir, I am using mapserver and C#mapscript. Can I use openlayers javascript with c#mapscript. If it is possible can u provide me any tutorials or links useful for development. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtammineni at roulacglobal.com Wed Mar 4 20:24:38 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Thu, 5 Mar 2009 09:54:38 +0530 Subject: [mapserver-users] mapscript + openlayers In-Reply-To: <325521DDB16A1F4B90085DCCE3FFD12B318A04@mailsrv.nepasoft.com.np> References: <325521DDB16A1F4B90085DCCE3FFD12B318A04@mailsrv.nepasoft.com.np> Message-ID: <004301c99d4a$4dc2e9d0$e948bd70$@com> Hi, Please refer url http://openlayers.org/dev/examples/ Thanks Venkat. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Binay Raja. Shrestha Sent: Thursday, March 05, 2009 9:47 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] mapscript + openlayers Dear sir, I am using mapserver and C#mapscript. Can I use openlayers javascript with c#mapscript. If it is possible can u provide me any tutorials or links useful for development. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From crschmidt at metacarta.com Wed Mar 4 20:23:19 2009 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed, 4 Mar 2009 23:23:19 -0500 Subject: [mapserver-users] mapscript + openlayers In-Reply-To: <325521DDB16A1F4B90085DCCE3FFD12B318A04@mailsrv.nepasoft.com.np> References: <325521DDB16A1F4B90085DCCE3FFD12B318A04@mailsrv.nepasoft.com.np> Message-ID: <20090305042318.GD385@metacarta.com> On Thu, Mar 05, 2009 at 10:01:33AM +0545, Binay Raja. Shrestha wrote: > Dear sir, > > I am using mapserver and C#mapscript. Can I use openlayers javascript > with c#mapscript. > > If it is possible can u provide me any tutorials or links useful for > development. Binay, Generally speaking, OpenLayers talks to a URL to fetch 'tiles': images with data. This data can be provided by anything, so, for example, you can use PHP mapscript to accept image parameters and deliver this data. However, generally speaking, there isn't need to use MapScript for this type of application. Instead, you can use the MapServer CGI directly to serve requests, via WMS or some other mechanism. Whether you can use OpenLayers with your particular usage of MapScript depends entirely on how you're using it. Are you building an application in C# and want to use MapScript? Do you want to integrate OpenLayers in something that requests a dynamic image generated? Something else? All these possibilities have different sorts of answers. For a more detailed response than "Yes, but I don't know if you can", you'd need to share more details. Best Regards, -- Christopher Schmidt MetaCarta From crschmidt at metacarta.com Wed Mar 4 20:24:33 2009 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed, 4 Mar 2009 23:24:33 -0500 Subject: [mapserver-users] mapscript + openlayers In-Reply-To: <004301c99d4a$4dc2e9d0$e948bd70$@com> References: <325521DDB16A1F4B90085DCCE3FFD12B318A04@mailsrv.nepasoft.com.np> <004301c99d4a$4dc2e9d0$e948bd70$@com> Message-ID: <20090305042432.GE385@metacarta.com> On Thu, Mar 05, 2009 at 09:54:38AM +0530, Venkat Rao Tammineni wrote: > Hi, > > Please refer url http://openlayers.org/dev/examples/ Note that none of these examples in any way take advantage of MapScript, but almost all of them do take advantage of MapServer, and could be easily integrated into an ASP solution of some sort. -- Chris > > > Thanks > > Venkat. > > > > > > > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Binay Raja. > Shrestha > Sent: Thursday, March 05, 2009 9:47 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] mapscript + openlayers > > > > Dear sir, > > I am using mapserver and C#mapscript. Can I use openlayers javascript with > c#mapscript. > > If it is possible can u provide me any tutorials or links useful for > development. > > > > Thank you. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Christopher Schmidt MetaCarta From randre at gmail.com Wed Mar 4 21:27:34 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Wed, 4 Mar 2009 21:27:34 -0800 Subject: [mapserver-users] Image Quality - Image Preprocessing In-Reply-To: <681116190903040654r4d378ec7x89fc906c1112914d@mail.gmail.com> References: <681116190903040654r4d378ec7x89fc906c1112914d@mail.gmail.com> Message-ID: <9c2015090903042127o6743d49ci9ea1e3e48372230f@mail.gmail.com> Hi Travis, >From a purely subjective standpoint, I feel that the bilinear resampling method works the best with aerial photo data. You can test this using gdalwarp: gdalwarp -ts -r But before you resample all your data, you might try adding the following processing directive to your imagery layer: PROCESSING "RESAMPLE=BILINEAR" You might find that this improves things enough. Roger -- On Wed, Mar 4, 2009 at 6:54 AM, Travis Kirstine wrote: > We are running mapserver connected to a tilecache delivering high > resolution orthophoto to a google maps. ?The problem I am having is > that we preprocess all our imagery using reduced resolutions at higher > scales and full resolution at lower scales. ?In the past we have used > gdal_merge with - ps 10 10 ?to merge tile into larger overalls and > downsampling ?the resolution but we have found that the image quality > was not adequate. ?I have been experimenting with gdalwarp using the > different resampling methods with varied results. ?Is there any > consensus on which resampling method provided with gdal provide the > optimal results (from a viewing perspective) when downsampling imagery > data? > > -- > Travis K. > > Toronto, Canada > ------------------------------------------------------------ > "She knows there's no success like failure > And that failure's no success at all." > -Bob Dylan- > ------------------------------------------------------------ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From kmanoj-pg7 at iiitmk.ac.in Wed Mar 4 23:05:37 2009 From: kmanoj-pg7 at iiitmk.ac.in (kapilmanoj) Date: Wed, 4 Mar 2009 23:05:37 -0800 (PST) Subject: [mapserver-users] 'errno: 2' on projection In-Reply-To: <20080519233731.GA21782@q.rho.net> References: <20080519223216.GA20461@q.rho.net> <20080519233731.GA21782@q.rho.net> Message-ID: <1236236737284-2427848.post@n2.nabble.com> Hello wendall, I too facing the same problem. have you got solution for this problem? could you please help me out? Thanks, kapilmanoj Wendell Turner wrote: > > On Mon, May 19, 2008 at 03:32:16PM -0700, Wendell Turner wrote: >> I'm trying to use the 'projection' tag in a map file, but it >> is not working, and would like help. >> >> I'm using Fedora 7, and there is a mapserver 4.10 in a yum >> repository, which pulls in proj as a dependency. However, >> when using the 'projection' tag, it gets >> msProcessProjection(): Projection library error. no system list, errno: >> 2 >> (which seems to mean 'file not found') > > As it turns out, other projections work. > > I'm just trying to get the v4 tutorial working, which is > where the problem occurs. Any example that contains > PROJECTION > "init=epsg:4326" > END > > gets the error msg. However, the file > /usr/local/share/proj/epsg contains an entry for 4326. > > Q: why doe the example in the tutorial not work? > Q: how can it be fixed? > > Thanks, > > Wendell > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/%27errno%3A-2%27-on-projection-tp1970528p2427848.html Sent from the Mapserver - User mailing list archive at Nabble.com. From kmanoj-pg7 at iiitmk.ac.in Thu Mar 5 00:59:45 2009 From: kmanoj-pg7 at iiitmk.ac.in (kmanoj-pg7 kmanoj-pg7) Date: Thu, 5 Mar 2009 14:29:45 +0530 Subject: [mapserver-users] msProcessProjection(): Projection library error. no system list, errno: 2 Message-ID: <9ab9b8cf0903050059v7b048e84vd0a192a773fd738a@mail.gmail.com> Dear users, I am using fedora 9 with mapserver 5.0.3 , i installed mapserver by using YUM install command through command prompt. Now I am trying to use the 'projection' tag in a map file, but it is not working. I installed proj-4.6.0 also as like the above same way. However, when using the 'projection' tag, it gets * msProcessProjection(): Projection library error. no system list, errno: 2 * This is my map file for your perusal, Map IMAGETYPE PNG NAME "Gods own country" SIZE 800 500 IMAGECOLOR 256 255 255 EXTENT 74.906173 8.249055 77.434938 12.791817 #geographic SHAPEPATH "/var/www/html/mapfiles/sampletest/data" FONTSET "/var/www/html/mapfiles/sampletest/fonts/fonts.list" SYMBOLSET "/var/www/html/mapfiles/sampletest/symbols/symbols35.sym" PROJECTION "init=espg:4326" END LAYER NAME kerala TYPE POLYGON STATUS OFF DATA parl_04 PROJECTION "init=epsg:4326" END CLASSITEM "PARTY" CLASS NAME "Greenary Land" EXPRESSION 'CPM' STYLE COLOR 256 256 255 OUTLINECOLOR 256 256 256 END END #second class starts CLASS NAME 'CPI' EXPRESSION 'CPI' STYLE COLOR 198 198 255 OUTLINECOLOR 256 256 256 END END END #end of first layer LAYER # States label layer begins here NAME states_label DATA parl_04 STATUS OFF TYPE ANNOTATION PROJECTION "init=epsg:4326" END CLASSITEM "PARTY" LABELITEM "NAME" CLASS EXPRESSION 'CPM' STYLE COLOR -1 -1 -1 END LABEL COLOR 132 31 31 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 TYPE TRUETYPE FONT arial-bold SIZE 12 ANTIALIAS TRUE POSITION AUTO PARTIALS FALSE MINDISTANCE 300 BUFFER 4 END # end of label END # end of class CLASS EXPRESSION 'CPI' STYLE COLOR -1 -1 -1 END LABEL COLOR 132 31 31 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 TYPE TRUETYPE FONT arial-bold SIZE 12 ANTIALIAS TRUE POSITION AUTO PARTIALS FALSE MINDISTANCE 300 BUFFER 4 END # end of label END # end of class END # States label layer ends here # End of LAYER DEFINITIONS ------------------------------- END #map ends here ---------------------------------------------+----------------------------------------- The interesting thing to look out about this projection is when i add the projection tag both in the map object and layer object , its showing the above error * mProcessProjection(): Projection library error. no system list, errno: 2 * but when i remove the projection tag from the map object leaving the project tag as it is in the layer object (not remove) its working fine, projecting the map without making any problem in the browser The apache error logs don't show anything interesting, but it still returns this: msProcessProjection(): Projection library error. no system list, errno: 2 when i add the projection tag in the map object. what could be a problem? somebody please help me out... help/tips will be appreciated. Thanks, kapilmanoj. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan.mincik at gmail.com Thu Mar 5 01:29:33 2009 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Thu, 5 Mar 2009 10:29:33 +0100 Subject: [mapserver-users] AGG FORMATOPTION "PALETTE_FORCE=TRUE" - transparent background Message-ID: <200903051029.33398.ivan.mincik@gista.sk> I am not sure if is it possible to reduce AGG PNG image to 8bit by "PALETTE_FORCE=TRUE" option and keep transparent background. I went through all posts about this issue and it is not clear for me if I still need to compile mapserver with "--with-experimental-png" switch or it is currently not possible. I have tested all possible parameters and combinations of RGB or RGBA in OUTPUTFORMAT and palette file with BLACK BACKGROUND as result. /usr/lib/cgi-bin/mapserv -v MapServer version 5.2.1 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 SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I use mapserver as WMS server. Currently I have this in mapfile: NTERLACE OFF TRANSPARENT TRUE IMAGETYPE AGG8 OUTPUTFORMAT NAME "AGG8" DRIVER "AGG/PNG" MIMETYPE "image/png" EXTENSION "png" IMAGEMODE "RGBA" - #(IMAGEMODE "RGB" is working, nice result without transparent background) FORMATOPTION INTERLACE=OFF FORMATOPTION "PALETTE_FORCE=TRUE" FORMATOPTION "PALETTE=/s/agg_8bit_pal.txt" END And palette file: 0,0,0 255,255,255,255 230,230,230,0 174,17,52,255 174,17,52,255 242,221,190,255 Please, can anybody clarify this? Thanks Ivan From julien.trolet at ifremer.fr Thu Mar 5 01:49:37 2009 From: julien.trolet at ifremer.fr (julien) Date: Thu, 05 Mar 2009 10:49:37 +0100 Subject: [mapserver-users] JAVA Mapscript LayerObj issues In-Reply-To: <007801c99cc1$793caad0$6bb60070$@com> References: <49AE654B.9080908@ifremer.fr> <007801c99cc1$793caad0$6bb60070$@com> Message-ID: <49AFA031.9040105@ifremer.fr> Hi again, Thanks for the help, I think I am close to the solution but it is still not working as I get the following error : java.lang.UnknownError: msGetBitmapFont(): GD library error. Invalid bitmap font. Must be one of tiny, small, medium, large or giant. edu.umn.gis.mapscript.mapscriptJNI.mapObj_drawLabelCache(Native Method) edu.umn.gis.mapscript.mapObj.drawLabelCache(mapObj.java:403) I thougth I have to use the setSize funtction of the labelObj class to set the BitmapFont as MS_BITMAP_FONT_SIZES.MS_LARGE. But it is not working. Here is what I have done in my layerObj : my_layer_item.setType(MS_LAYER_TYPE.MS_LAYER_POINT); pointObj legendpoint = new pointObj(10,10,0,0); lineObj legendline = new lineObj(); legendline.add(legendpoint); shapeObj legendfeat = new shapeObj(MS_SHAPE_TYPE.MS_SHAPE_POINT.swigValue()); legendfeat.add(legendline); legendfeat.setText("Blablabla"); my_layer_item.addFeature(legendfeat); classObj my_class = new classObj(my_layer_item.layer_object); styleObj my_style = new styleObj(my_class); my_style.setColor(new colorObj(0, 0, 0, -4)); my_style.setSize(50); my_style.setSymbolname("kreis"); labelObj my_label = my_class.getLabel(); my_label.setType(MS_FONT_TYPE.MS_BITMAP); my_label.setColor(new colorObj(0, 0, 0, -4)); my_class.getLabel().setPosition(MS_POSITIONS_ENUM.MS_UC.swigValue()); my_label.setSize(MS_BITMAP_FONT_SIZES.MS_LARGE.swigValue()); my_label.setForce(mapscriptConstants.MS_TRUE); my_layer_item.setStyleName("Test"); my_layer_item.setProjection(4030); my_layer_item.setStatus(true); The corresponding mapfile is : LAYER NAME Test TYPE POINT STATUS DEFAULT FEATURE POINTS 10 10 END TEXT "Blablabla" END CLASS STYLE SYMBOL "kreis" SIZE 50 COLOR 0 0 0 END LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 0 POSITION UC END END END Any helps is welcome. Thanks in advance Trolet Julien -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Thu Mar 5 02:00:32 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 5 Mar 2009 11:00:32 +0100 Subject: [mapserver-users] AGG FORMATOPTION "PALETTE_FORCE=TRUE" - transparent background In-Reply-To: <200903051029.33398.ivan.mincik@gista.sk> References: <200903051029.33398.ivan.mincik@gista.sk> Message-ID: for this to work, you'll *have* to compile mapserver with "--with-experimental-png". (i.e. mapserv -v should ouput SUPPORTS=RGBA_PNG) once this is done, you should supply a palette file with rgba quadruplets. In your example, your palette entries are incorrect: 0,0,0 is a triplet instead of a quadruplet (should be 0,0,0,0) On a side note, your 230,230,230,0 isn't usefull, as it corresponds to 0,0,0,0 , thus eating up a entry in your generated palette (and palette entries in rgba mode are very expensive :) ) -- Thomas Bonfort CampToCamp On Thu, Mar 5, 2009 at 10:29, Ivan Mincik wrote: > I am not sure if is it possible to reduce AGG PNG image to 8bit by "PALETTE_FORCE=TRUE" option and keep transparent background. > I went through all posts about this issue and it is not clear for me if I still need to compile mapserver with "--with-experimental-png" switch or it is currently not possible. > > I have tested all possible parameters and combinations of RGB or RGBA in ?OUTPUTFORMAT and palette file with BLACK BACKGROUND as result. > > /usr/lib/cgi-bin/mapserv -v > MapServer version 5.2.1 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 SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > I use mapserver as WMS server. > > Currently I have this in mapfile: > > ? ? ? ?NTERLACE OFF > ? ? ? ?TRANSPARENT TRUE > ? ? ? ?IMAGETYPE AGG8 > ? ? ? ? OUTPUTFORMAT > ? ? ? ? ? ? ? ?NAME "AGG8" > ? ? ? ? ? ? ? ?DRIVER "AGG/PNG" > ? ? ? ? ? ? ? ?MIMETYPE "image/png" > ? ? ? ? ? ? ? ?EXTENSION "png" > ? ? ? ? ? ? ? ?IMAGEMODE "RGBA" - #(IMAGEMODE "RGB" is working, nice result without transparent background) > ? ? ? ? ? ? ? ?FORMATOPTION ?INTERLACE=OFF > ? ? ? ? ? ? ? ?FORMATOPTION "PALETTE_FORCE=TRUE" > ? ? ? ? ? ? ? ?FORMATOPTION "PALETTE=/s/agg_8bit_pal.txt" > ? ? ? ?END > > And palette file: > > ? ? ? ?0,0,0 > ? ? ? ?255,255,255,255 > ? ? ? ?230,230,230,0 > ? ? ? ?174,17,52,255 > ? ? ? ?174,17,52,255 > ? ? ? ?242,221,190,255 > > Please, can anybody clarify this? > Thanks > Ivan > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From schroeter at netgis.de Thu Mar 5 04:33:27 2009 From: schroeter at netgis.de (Sven Schroeter) Date: Thu, 5 Mar 2009 13:33:27 +0100 Subject: [mapserver-users] get connectiontyp via mapscript Message-ID: Hi all, I try to get the connectiontyp via mapscript, this works: $layer = $map->getLayerByName($qlayer); $contyp = $layer->connectiontype; I get back a "1" for shapefiles and a "6" for Postgis-layers. Where can I find the other types? Thanks Sven From MMaganti at oriongis.com Wed Mar 4 17:53:19 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Wed, 4 Mar 2009 20:53:19 -0500 Subject: [mapserver-users] Encoding issues In-Reply-To: References: Message-ID: Thanks. I will try out that. From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Wednesday, March 04, 2009 5:25 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Encoding issues Hi, I don't know much about the hindi character sets. I guess you could extent that byte array to string copy function with arbitrary character sizes, like for double bytes something like: for (int i = 0; i < bytes.Length; i=i+2) s.Append(Convert.ToChar(bytes[i] + 256*bytes[i+1])); Best regards, Tamas 2009/3/4 Murty Maganti Hi Tamas This is still not working for some of the Asian languages. I suspect the issue could be in this line of your sample code below s.Append(Convert.ToChar(bytes[i])); Here, one single byte is used to convert to a character. But my understanding is that UTF-8 can consume from 1 to 4 bytes to represent one character code point. It worked fine for Arabic may be because all Arabic characters can be represented using a single byte. When I tried the same code below with Hindi, an Indian language, some of the characters are shown junk (but not all characters). I guess those characters which occupy more than a byte turned out to be junk. I am also trying the opposite of the sample code below i.e. read a field value from map server (shapeObj.values), which is in Hindi, and show on a web page, again it turns out to be junk. I tried to look at the byte values of the string in VS by using Byte[] bites = Encoding.Unicode.GetBytes(shapeObj.values[0]) I notice that they are actually code point of UTF-8 but interpreted as UTF-16 and may be the reason I see junk characters on web page. But I don?t know how to extract those UTF-8 byte values from UTF-16. I am just giving sample code here to explain byte[] utf16 = Encoding.Unicode.GetBytes("?????"); //The text is in Hindi, an Indian language byte[] utf8 = Encoding.UTF8.GetBytes("?????"); shapeObj shape = layer.getFeature(result.shapeindex, result.tileindex); string value = shape.values[1]; //This contains the same text (in Hindi) as above in the shape file. byte[] bytes = Encoding.Unicode.GetBytes(value); //There are byte values of characters decoded from UTF-16. .Net internally stores all strings in UTF-16 Now if I examine the values of ?utf8? and ?bytes? arrays utf8 ? 224,164,149,224,165,128,224,164,154,224,164,168,224,164,176 bytes ? 224,0,164,0,34,32,224,0,165,0,172,32,224,0,164,0,97,1,224,0,164,0,168,0,224,0,164,0,176,0 utf16 ? 21,9,64,9,26,9,40,9,48,9 The first byte value is same as UTF-8. Second byte value is 0 as UTF-16 takes atleast 2 bytes for a character. This gives me impression that the byte values are in UTF-8 and are not converted to UTF-16 to by .Net. Appreciate if you see any solution for this and let me know. Thanks Murty From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Friday, February 06, 2009 6:59 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Encoding issues You might have to make explicit conversion maually something like: string value = "???????????????"; //I actually get this (in arabic) through user input byte[] bytes = Encoding.Convert(Encoding.Unicode, Encoding.GetEncoding(1256), Encoding.Unicode.GetBytes(value)); StringBuilder s = new StringBuilder(); for (int i = 0; i < bytes.Length; i++) s.Append(Convert.ToChar(bytes[i])); shpObj.text = s.ToString(); Best regards, Tamas 2009/2/6 Murty Maganti HI I am doing a simple thing. I have a map file and trying to show some static text in Arabic on map. You can try this with any map file as it is nothing to do with layers from map. At run time (like on a button click), please add this layerObj lyr = new layerObj(mapObj); lyr.name = "TextAcetate"; lyr.status = mapscript.MS_ON; lyr.type = MS_LAYER_TYPE.MS_LAYER_ANNOTATION; lyr.labelcache = mapscript.MS_TRUE; double locationX = 50; double locationY = 50; lyr.transform = (int)mapscript.MS_FALSE; classObj layerClass = new classObj(lyr); //All label properties layerClass.label.size = 15; layerClass.label.type = MS_FONT_TYPE.MS_TRUETYPE; ? ? layerClass.label.encoding = "CP1256"; shapeObj shpObj = new shapeObj((int)MS_SHAPE_TYPE.MS_SHAPE_POINT); lineObj lnObj = new lineObj(); pointObj pt = new pointObj(locationX, locationY, 0, 0); lnObj.add(pt); shpObj.add(lnObj); shpObj.text = "???????????????"; //I actually get this (in arabic) through user input lyr.addFeature(shpObj); mapObj.draw(); //Onto a picture box or save as file (In the map file, my output format is set to GD/PNG) Please let me know if you need more information. Thanks Murty From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Tamas Szekeres Sent: Friday, February 06, 2009 4:12 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Encoding issues Please send me your example so that I could examine what's going on. Best regards, Tamas 2009/2/6 Murty Maganti Hi I tried with the suggested encoding but still no success. From the output below, I guess ICONV support is included. E:\Utils\MapServer\Map Server 5.2 RC\ms4w\Apache\cgi-bin>mapserv -v MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICO NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUP PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Where can get some details on how to build the C# mapscript (Managed assembly only) from Visual Studio, keeping all unmanaged dlls from binaries from ms4w. I just want to give a try using MarshalAsAttribute. Thanks Murty From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Friday, February 06, 2009 3:02 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Encoding issues Hi, You might want to try with encoding="ISO-8859-6" assuming you have libiconv compiled in. The c# mapscript doesn't specify explicit conversion during the marshaling. In this case I assume an unicode to Charset.Ansi conversion will automatically takes place by default. Best regards, Tamas 2009/2/6 Murty Maganti Hello I am having some issues using Arabic text as labels. I am using C# map script. I am setting the following at runtime labelObj label = classObj.label; label.encoding = "CP1256"; label.text = "some text in Arabic"; (At rune time in VS, I can see the text is actually in Arabic) But labels are displayed as '?????'. Is there any conversion I need to do before setting the text value. How are the string represented in the underlying mapscript dll (ASCII or Unicode?). As I was reading in the MSDN, the default marshalling uses LPStr which is a single byte of ASCII. Does it mean that first I need to convert from Unicode to ASCII in C# before setting the value. Appreciate any help. Thanks Murty _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From one1 at tutopia.com Thu Mar 5 05:07:23 2009 From: one1 at tutopia.com (julian andres montes galvis) Date: Thu, 05 Mar 2009 08:07:23 -0500 Subject: [mapserver-users] 'errno: 2' on projection In-Reply-To: <1236236737284-2427848.post@n2.nabble.com> References: <20080519223216.GA20461@q.rho.net> <20080519233731.GA21782@q.rho.net> <1236236737284-2427848.post@n2.nabble.com> Message-ID: <49AFCE8B.90704@tutopia.com> try add CONFIG "PROJ_LIB" "/usr/share/proj/" kapilmanoj wrote: > Hello wendall, > > I too facing the same problem. have you got solution for this problem? > could you please help me out? > > Thanks, > kapilmanoj > > Wendell Turner wrote: > >> On Mon, May 19, 2008 at 03:32:16PM -0700, Wendell Turner wrote: >> >>> I'm trying to use the 'projection' tag in a map file, but it >>> is not working, and would like help. >>> >>> I'm using Fedora 7, and there is a mapserver 4.10 in a yum >>> repository, which pulls in proj as a dependency. However, >>> when using the 'projection' tag, it gets >>> msProcessProjection(): Projection library error. no system list, errno: >>> 2 >>> (which seems to mean 'file not found') >>> >> As it turns out, other projections work. >> >> I'm just trying to get the v4 tutorial working, which is >> where the problem occurs. Any example that contains >> PROJECTION >> "init=epsg:4326" >> END >> >> gets the error msg. However, the file >> /usr/local/share/proj/epsg contains an entry for 4326. >> >> Q: why doe the example in the tutorial not work? >> Q: how can it be fixed? >> >> Thanks, >> >> Wendell >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> > > From yassefa at dmsolutions.ca Thu Mar 5 05:12:19 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Thu, 05 Mar 2009 08:12:19 -0500 Subject: [mapserver-users] get connectiontyp via mapscript In-Reply-To: References: Message-ID: <49AFCFB3.4020101@dmsolutions.ca> http://mapserver.org/mapscript/php/index.html (check Connection Types). When using mapscript you should do your tests using the defined constants (MS_SHAPEFILE, MS_POSTGIS ...). Note that the php defined constants reflect what is defined in mapserver.h (MS_CONNECTION_TYPE enumeration) Best Regards, Sven Schroeter wrote: > Hi all, > > I try to get the connectiontyp via mapscript, this works: > > $layer = $map->getLayerByName($qlayer); > $contyp = $layer->connectiontype; > > I get back a "1" for shapefiles and a "6" for Postgis-layers. > > Where can I find the other types? > > Thanks > Sven > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From ruijgomes at gmail.com Thu Mar 5 07:18:57 2009 From: ruijgomes at gmail.com (Rui Gomes) Date: Thu, 5 Mar 2009 15:18:57 +0000 Subject: [mapserver-users] 500 Internal Server Error In-Reply-To: <49AF2316.6060602@hostgis.com> References: <49AEB9650200008F000213E7@co5.dnr.state.mn.us> <31e2f7000903041652w45bc5c48j5c45748ae78bc936@mail.gmail.com> <49AF2316.6060602@hostgis.com> Message-ID: <31e2f7000903050718r381395b1h6223ce9fd447da79@mail.gmail.com> " Are you able to get into a shell?" I do not think i can do that (or know how do that). Thanks anyway 2009/3/5 Gregor at HostGIS : >> And a few more question: what libraries i need to put in the server? >> Where i can find some documentation about the libraries mapserver >> need? > > A technique I find handy for debugging mapserver problems, a bit more useful > than "Internal server error", is to go into the Unix shell and use shp2img. > Are you able to get into a shell? > > I'd use something similar to one of these: > ?shp2img -o test.png -m mapfile.map > ?shp2img -o test.png -m mapfile.map -d 999 > ?shp2img -o test.png -m mapfile.map -l lakes,streets > > When that fails, it'll give you more information as to what went wrong. For > example, it will give hints as to shapefiles being transferred in ASCII > mode, or the TEMPDIR not being writable. > > -- > Gregor Mosheh / Greg Allensworth ? ?BS, A+, Network+, Security+, Server+ > System Administrator, Lead Programmer > HostGIS development & hosting services, http://www.HostGIS.com/ > > "Remember that no one cares if you can back up, > ?only if you can restore." - AMANDA > -- Rui Gomes From ivan.mincik at gmail.com Thu Mar 5 07:38:20 2009 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Thu, 5 Mar 2009 16:38:20 +0100 Subject: [mapserver-users] AGG FORMATOPTION "PALETTE_FORCE=TRUE" - transparent background In-Reply-To: References: <200903051029.33398.ivan.mincik@gista.sk> Message-ID: <200903051638.20959.ivan.mincik@gista.sk> On Thursday 05 March 2009, you wrote: > for this to work, you'll *have* to compile mapserver with > "--with-experimental-png". > (i.e. mapserv -v should ouput SUPPORTS=RGBA_PNG) I confirm, that after recompiling with "--with-experimental-png" 8bit transparency is working. Thank You Thomas. > > once this is done, you should supply a palette file with rgba > quadruplets. In your example, your palette entries are incorrect: > 0,0,0 is a triplet instead of a quadruplet (should be 0,0,0,0) > > On a side note, your 230,230,230,0 isn't usefull, as it corresponds > to 0,0,0,0 , thus eating up a entry in your generated palette (and > palette entries in rgba mode are very expensive :) ) > > -- > Thomas Bonfort > CampToCamp > > On Thu, Mar 5, 2009 at 10:29, Ivan Mincik wrote: > > I am not sure if is it possible to reduce AGG PNG image to 8bit by "PALETTE_FORCE=TRUE" option and keep transparent background. > > I went through all posts about this issue and it is not clear for me if I still need to compile mapserver with "--with-experimental-png" switch or it is currently not possible. > > > > I have tested all possible parameters and combinations of RGB or RGBA in ?OUTPUTFORMAT and palette file with BLACK BACKGROUND as result. > > > > /usr/lib/cgi-bin/mapserv -v > > MapServer version 5.2.1 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 SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > > I use mapserver as WMS server. > > > > Currently I have this in mapfile: > > > > ? ? ? ?NTERLACE OFF > > ? ? ? ?TRANSPARENT TRUE > > ? ? ? ?IMAGETYPE AGG8 > > ? ? ? ? OUTPUTFORMAT > > ? ? ? ? ? ? ? ?NAME "AGG8" > > ? ? ? ? ? ? ? ?DRIVER "AGG/PNG" > > ? ? ? ? ? ? ? ?MIMETYPE "image/png" > > ? ? ? ? ? ? ? ?EXTENSION "png" > > ? ? ? ? ? ? ? ?IMAGEMODE "RGBA" - #(IMAGEMODE "RGB" is working, nice result without transparent background) > > ? ? ? ? ? ? ? ?FORMATOPTION ?INTERLACE=OFF > > ? ? ? ? ? ? ? ?FORMATOPTION "PALETTE_FORCE=TRUE" > > ? ? ? ? ? ? ? ?FORMATOPTION "PALETTE=/s/agg_8bit_pal.txt" > > ? ? ? ?END > > > > And palette file: > > > > ? ? ? ?0,0,0 > > ? ? ? ?255,255,255,255 > > ? ? ? ?230,230,230,0 > > ? ? ? ?174,17,52,255 > > ? ? ? ?174,17,52,255 > > ? ? ? ?242,221,190,255 > > > > Please, can anybody clarify this? > > Thanks > > Ivan > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > From bamerbalazs at gmail.com Thu Mar 5 07:54:59 2009 From: bamerbalazs at gmail.com (=?UTF-8?B?QmFsw6F6cyBCw6FtZXI=?=) Date: Thu, 5 Mar 2009 16:54:59 +0100 Subject: [mapserver-users] use SLD to dynamic label switching Message-ID: Hi All, I have a WMS service http://att-it.homelinux.net:22080/cgi-bin/spatial?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=szerkesztheto,csakolv,pont&STYLES=&SRS=epsg:23700&BBOX=420000,40000,950000,370000&WIDTH=938&HEIGHT=591&FORMAT=image/png&SLD=http://att-it.homelinux.net:22080/sld/spatialszerkeszthetoproba.xml Mapfile is here, the layer in question is "szerkesztheto" http://att-it.homelinux.net:22080/spatial.map which works without the SLD request part and does what I want. I want to use the SLD to alter rendering colors and add labels, because I beleive that this would be more efficient than having a geometry layer and a separate annotation one. Moreover, I want to try SLD. So with SLD the layer in question disappears. Inspecting the transformed layer (written in /tmp) http://att-it.homelinux.net:22080/spatialsld3.map the layer "szerkesztheto" is turned into annotation type which I didn't want. But even being this type, no labels are shown. Can this SLD trick be done, and if yes, where am I wrong? Thank you in advance! best regards: Bal?zs From medvezs84 at gmail.com Thu Mar 5 08:04:10 2009 From: medvezs84 at gmail.com (Medve Zsolt) Date: Thu, 05 Mar 2009 17:04:10 +0100 Subject: [mapserver-users] ka-map problem Message-ID: <49AFF7FA.7000804@gmail.com> Hy all! I have a problem with ka-map. I configured written as on these pages. http://ka-map.ominiverdi.org/wiki/index.php/Preparing_ka-Map http://www.xml.com/pub/a/2005/08/10/ka-map.html I do everything a think.. I use ms4w with apache, and when i go to localhost/kamap, the ka-map frame appears but the doesnt load..nothing happens! If anyone runs to the same problem pls write to me privat or here the list! thx bye http://ka-map.ominiverdi.org/wiki/index.php/Preparing_ka-Map http://www.xml.com/pub/a/2005/08/10/ka-map.html From Steve.Lime at dnr.state.mn.us Thu Mar 5 09:38:54 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 05 Mar 2009 11:38:54 -0600 Subject: [mapserver-users] 500 Internal Server Error Message-ID: <49AFB9CE0200008F000214B2@co5.dnr.state.mn.us> Rui, what platform etc.. are you on? >>> Rui Gomes 03/05/09 9:20 AM >>> " Are you able to get into a shell?" I do not think i can do that (or know how do that). Thanks anyway 2009/3/5 Gregor at HostGIS : >> And a few more question: what libraries i need to put in the server? >> Where i can find some documentation about the libraries mapserver >> need? > > A technique I find handy for debugging mapserver problems, a bit more useful > than "Internal server error", is to go into the Unix shell and use shp2img. > Are you able to get into a shell? > > I'd use something similar to one of these: > shp2img -o test.png -m mapfile.map > shp2img -o test.png -m mapfile.map -d 999 > shp2img -o test.png -m mapfile.map -l lakes,streets > > When that fails, it'll give you more information as to what went wrong. For > example, it will give hints as to shapefiles being transferred in ASCII > mode, or the TEMPDIR not being writable. > > -- > Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ > System Administrator, Lead Programmer > HostGIS development & hosting services, http://www.HostGIS.com/ > > "Remember that no one cares if you can back up, > only if you can restore." - AMANDA > -- Rui Gomes _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Thu Mar 5 09:45:07 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 05 Mar 2009 12:45:07 -0500 Subject: [mapserver-users] ka-map problem In-Reply-To: <49AFF7FA.7000804@gmail.com> References: <49AFF7FA.7000804@gmail.com> Message-ID: <49B00FA3.3040505@gatewaygeomatics.com> Medve Zsolt wrote: > Hy all! > > I have a problem with ka-map. I configured written as on these pages. > > http://ka-map.ominiverdi.org/wiki/index.php/Preparing_ka-Map > http://www.xml.com/pub/a/2005/08/10/ka-map.html > > I do everything a think.. I use ms4w with apache, and when i go to > localhost/kamap, the ka-map frame appears but the doesnt load..nothing > happens! > If anyone runs to the same problem pls write to me privat or here the list! > > thx bye There is a ka-Map package available for download for MS4W, which means that it will be already configured for use with MS4W (see http://www.maptools.org/ms4w/index.phtml?page=downloads.html). If you have a newer ka-Map version maybe you could follow how that package is configured. If you have problems with the MS4W ka-Map package feel free to inquire on the ms4w-users mailing list. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From medvezs84 at gmail.com Thu Mar 5 09:58:41 2009 From: medvezs84 at gmail.com (Medve Zsolt) Date: Thu, 05 Mar 2009 18:58:41 +0100 Subject: [mapserver-users] ka-map problem In-Reply-To: <49B00FA3.3040505@gatewaygeomatics.com> References: <49AFF7FA.7000804@gmail.com> <49B00FA3.3040505@gatewaygeomatics.com> Message-ID: <49B012D1.8000602@gmail.com> yes i download this one from that link. and follow the "prepare ka-map" wiki steps and the problem is still there? any idea? thanks bye Jeff McKenna ?rta: > Medve Zsolt wrote: >> Hy all! >> >> I have a problem with ka-map. I configured written as on these pages. >> >> http://ka-map.ominiverdi.org/wiki/index.php/Preparing_ka-Map >> http://www.xml.com/pub/a/2005/08/10/ka-map.html >> >> I do everything a think.. I use ms4w with apache, and when i go to >> localhost/kamap, the ka-map frame appears but the doesnt >> load..nothing happens! >> If anyone runs to the same problem pls write to me privat or here the >> list! >> >> thx bye > > There is a ka-Map package available for download for MS4W, which means > that it will be already configured for use with MS4W (see > http://www.maptools.org/ms4w/index.phtml?page=downloads.html). If you > have a newer ka-Map version maybe you could follow how that package is > configured. > > If you have problems with the MS4W ka-Map package feel free to inquire > on the ms4w-users mailing list. > > -jeff > > > From temiz at deprem.gov.tr Thu Mar 5 10:30:56 2009 From: temiz at deprem.gov.tr (Ahmet Temiz) Date: Thu, 5 Mar 2009 20:30:56 +0200 Subject: [mapserver-users] java-mapscript-zoomrectangle problem Message-ID: <20090305181636.M29340@deprem.gov.tr> hello I am using java-mapscript. Upon using zoomrectangle, I encounter an exception. I followed this procedure: ~~~~~~~~~~ rectObj imgrect =new rectObj( // to guarantee minx and miny (minxx= miny ~~~~~~~~~~~~~~~~~~ Although I had checked maxy >= miny condition I don't understand why this exception occurs. regards Ahmet Temiz -- Open WebMail Project (http://openwebmail.org) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From asle at benoni.no Thu Mar 5 09:40:42 2009 From: asle at benoni.no (Asle Benoni) Date: Thu, 5 Mar 2009 18:40:42 +0100 Subject: [mapserver-users] Newbie - installed Mapserver - where next? Message-ID: Hi, I am a newbie and have installed Mapserver 5.2.1 on OS X Server 10.5. I have been able to display maps that I exported from QGIS and though some problems are displaying the maps. Now the next step is to get a framework around the maps and I have tried MapScript but I don?t have PHP CGI on the server :-( I also have tried GeoServer which I really don?t understand because I have downloaded the GeoServer.app and when I run it I have no idea how to configure it since all the docs talk about using the "war" file but I can?t find anything about using the GeoServer.app. I also am trying OpenLayers with a little success. I would be glad for any tips as to where I should go from here. I have installed postgreSQL and POSTGIS and my goal is to write mapdata to postgreSQL and display maps for that source. I also want to be able to enter data into the maps i.ex. click a point in the map and enter location data for that coordinate that is written to database so it is displayed later. I am glad for any ideas for a newbie :-) /asle -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Thu Mar 5 10:44:00 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Thu, 5 Mar 2009 12:44:00 -0600 Subject: [mapserver-users] Newbie - installed Mapserver - where next? In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA261@s-sp22.pca.state.mn.us> Asle, You have laid out a good list of tools. What is the problem that you are trying to solve? The answer to your 'what next' really depends on what you are trying to do. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Asle Benoni Sent: Thursday, March 05, 2009 11:41 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Newbie - installed Mapserver - where next? Hi, I am a newbie and have installed Mapserver 5.2.1 on OS X Server 10.5. I have been able to display maps that I exported from QGIS and though some problems are displaying the maps. Now the next step is to get a framework around the maps and I have tried MapScript but I don?t have PHP CGI on the server :-( I also have tried GeoServer which I really don?t understand because I have downloaded the GeoServer.app and when I run it I have no idea how to configure it since all the docs talk about using the "war" file but I can?t find anything about using the GeoServer.app. I also am trying OpenLayers with a little success. I would be glad for any tips as to where I should go from here. I have installed postgreSQL and POSTGIS and my goal is to write mapdata to postgreSQL and display maps for that source. I also want to be able to enter data into the maps i.ex. click a point in the map and enter location data for that coordinate that is written to database so it is displayed later. I am glad for any ideas for a newbie :-) /asle -------------- next part -------------- An HTML attachment was scrubbed... URL: From pmoen at nd.gov Thu Mar 5 10:55:46 2009 From: pmoen at nd.gov (Moen, Paul T.) Date: Thu, 5 Mar 2009 12:55:46 -0600 Subject: [mapserver-users] Projection or Data Problem? Message-ID: Can anyone get this WMS layer to reproject to a projected coordinate system like epsg:2266? I found this service at. http://www.geocommunicator.gov/blmMap/Map.jsp?MAP=Energy http://206.16.47.174/wmsconnector/com.esri.wms.Esrimap/BLM_SURFACE_MGT_AGY?version=1.1.1&service=WMS&request=GetCapabilities LAYER GROUP "Political Boundaries" NAME "Public Lands" TYPE RASTER PROJECTION "init=epsg:4326" END STATUS ON CONNECTION "http://206.16.47.174:80/wmsconnector/com.esri.wms.Esrimap/BLM_SURFACE_MGT_AGY?" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:4326" "wms_name" "SMA_ALL" "wms_server_version" "1.1.1" "wms_format" "image/gif" END END The layer matches fine when I reproject it to epsg:4269, but when I project it on the fly to epsg:2266 or epsg:26914 it doesn't line up. My full mapfile is below. The other WMS layer matches perfectly no matter what I set the main projection to in the mapfile. MAP NAME Mapfile # when using 2266 #EXTENT 869020 45625 3206883 1281490 #when using 4269 #EXTENT -125 18 -65 57 #when using 26914 EXTENT -439406 4470523 1330419 5622143 SIZE 978 517 MAXSIZE 3072 UNITS FEET SHAPEPATH "../mapdata" IMAGECOLOR 191 255 255 DEBUG OFF SYMBOLSET "symbols.dat" FONTSET "../mapfiles/fonts/fonts.list" #********************************************************************** # Start of web interface definition (including WMS enabling metadata) * #********************************************************************** WEB MINSCALEDENOM 1000 MAXSCALEDENOM 10000000 #IMAGEPATH "/Volumes/swcsan/DataManagement/WebServices/html/tmp/" IMAGEPATH "/Library/WebServer/newswc/tmp/" IMAGEURL "/tmp/" END QUERYMAP COLOR 255 255 0 #OUTLINE COLOR 0 0 0 STYLE hilite END OUTPUTFORMAT NAME 'AGG_JPEG' DRIVER AGG/JPEG IMAGEMODE RGB END PROJECTION "init=epsg:26914" END LAYER GROUP "Political Boundaries" NAME "US Forest Service Regions" TYPE RASTER PROJECTION "init=epsg:4326" END STATUS ON CONNECTION "http://206.16.47.174:80/wmsconnector/com.esri.wms.Esrimap/BLM_SURFACE_MGT_AGY?" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:4326" "wms_name" "Forest Service Regions" "wms_server_version" "1.1.1" "wms_format" "image/gif" END END LAYER NAME "Flood Data Availability" TYPE RASTER STATUS ON CONNECTION "http://hazards.fema.gov/wmsconnector/wmsconnector/Servlet/NFHL?" CONNECTIONTYPE WMS PROJECTION "proj=longlat" "ellps=GRS80" "datum=NAD83" "no_defs" END METADATA "wms_srs" "EPSG:4269" "wms_name" "HDM:Q3_COUNTYMAP" "wms_server_version" "1.1.1" "wms_format" "image/gif" END GROUP "Flood Plain" END LAYER NAME "Midwest States" PROJECTION "init=epsg:2266" END DATA states_upmidwest TYPE POLYGON STATUS ON CLASS NAME "All States" STYLE OUTLINECOLOR 255 0 0 END END END END This works in Arcmap but who knows what extra talking goes on behind the scenes to ArcIMS. Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at hostgis.com Thu Mar 5 11:06:49 2009 From: gregor at hostgis.com (Gregor at HostGIS) Date: Thu, 05 Mar 2009 11:06:49 -0800 Subject: [mapserver-users] Projection or Data Problem? In-Reply-To: References: Message-ID: <49B022C9.3010800@hostgis.com> Moen, Paul T. wrote: > Can anyone get this WMS layer to reproject to a projected coordinate > system like epsg:2266? Add to your WEB block, this. You can then make requests to your mapfile-as-WMS in the given SRS. METADATA "wms_srs" "EPSG:2266" END This does mean fetching the raster from them as 4326, then reprojecting it to 2266, so it may not look so great. But if they're not offering it in 2266, that's what you hafta do. -- Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ System Administrator, Lead Programmer HostGIS development & hosting services, http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From pmoen at nd.gov Thu Mar 5 11:24:57 2009 From: pmoen at nd.gov (Moen, Paul T.) Date: Thu, 5 Mar 2009 13:24:57 -0600 Subject: [mapserver-users] Projection or Data Problem? In-Reply-To: <49B022C9.3010800@hostgis.com> Message-ID: If I get what you are saying, I should set up another Mapserver as a WMS server that accesses the WMS from BLM, then, connect to my WMS server with the original mapfile? Doesn?t Mapserver already take the temporary image from the WMS that was delivered in epsg:4326 and reproject it to my mapfiles projection, epsg:2266, then add the other layers of my mapfile before delivering the final image? This certainly works for the other WMS layer, OFlood Data Availability? that is in my mapfile. That layer is delivered by the WMS in epsg:4269 and lines up perfect when the mapfile?s main projection is set to ?init=epsg:2266?. Thanks for helping, Paul On 3/5/09 1:06 PM, "Gregor at HostGIS" wrote: > Moen, Paul T. wrote: >> Can anyone get this WMS layer to reproject to a projected coordinate >> system like epsg:2266? > > Add to your WEB block, this. You can then make requests to your > mapfile-as-WMS in the given SRS. > > METADATA > "wms_srs" "EPSG:2266" > END > > This does mean fetching the raster from them as 4326, then reprojecting > it to 2266, so it may not look so great. But if they're not offering it > in 2266, that's what you hafta do. > > -- > Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ > System Administrator, Lead Programmer > HostGIS development & hosting services, http://www.HostGIS.com/ > > "Remember that no one cares if you can back up, > only if you can restore." - AMANDA > From randre at gmail.com Thu Mar 5 11:30:44 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Thu, 5 Mar 2009 11:30:44 -0800 Subject: [mapserver-users] Problems mapping regions that span Dateline Message-ID: <9c2015090903051130o35725b2ctbbb09885c8292f72@mail.gmail.com> Hi All, I'm having some problems mapping some regions of the world that span the Dateline. I have several examples of this, but using one, the UN subregion defined as being "South Pacific", as an example illustrates the problem nicely. This region has the following extents: Corner Coordinates: Upper Left (-180.0000000, 28.2333333) Lower Left (-180.0000000, -29.0666667) Upper Right ( 180.0000000, 28.2333333) Lower Right ( 180.0000000, -29.0666667) The map that is generated using these extents with EPSG 4326 spans the entire globe, and I'd like to find a way to show the are in a more concise fashion. I have the same problem with New Zealand, and with the full extents of the USA. Hoping for some suggestions. Thanks, Roger From pmoen at nd.gov Thu Mar 5 11:37:36 2009 From: pmoen at nd.gov (Moen, Paul T.) Date: Thu, 5 Mar 2009 13:37:36 -0600 Subject: [mapserver-users] Projection or Data Problem? In-Reply-To: Message-ID: I found the solution. http://www.mapserver.org/faq.html#why-does-my-requested-wms-layer-not-align-correctly Adding reaspect=false to the connection string fixed the problem. LAYER GROUP "Political Boundaries" NAME "US Forest Service Regions" TYPE RASTER PROJECTION "init=epsg:4269" END STATUS ON CONNECTION "http://206.16.47.174:80/wmsconnector/com.esri.wms.Esrimap/BLM_SURFACE_MGT_AGY?reaspect=false" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:4269" "wms_name" "SMA_ALL" "wms_server_version" "1.1.1" "wms_format" "image/gif" END END On 3/5/09 1:24 PM, "Paul Moen" wrote: If I get what you are saying, I should set up another Mapserver as a WMS server that accesses the WMS from BLM, then, connect to my WMS server with the original mapfile? Doesn't Mapserver already take the temporary image from the WMS that was delivered in epsg:4326 and reproject it to my mapfiles projection, epsg:2266, then add the other layers of my mapfile before delivering the final image? This certainly works for the other WMS layer, OFlood Data Availability' that is in my mapfile. That layer is delivered by the WMS in epsg:4269 and lines up perfect when the mapfile's main projection is set to "init=epsg:2266". Thanks for helping, Paul On 3/5/09 1:06 PM, "Gregor at HostGIS" wrote: > Moen, Paul T. wrote: >> Can anyone get this WMS layer to reproject to a projected coordinate >> system like epsg:2266? > > Add to your WEB block, this. You can then make requests to your > mapfile-as-WMS in the given SRS. > > METADATA > "wms_srs" "EPSG:2266" > END > > This does mean fetching the raster from them as 4326, then reprojecting > it to 2266, so it may not look so great. But if they're not offering it > in 2266, that's what you hafta do. > > -- > Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ > System Administrator, Lead Programmer > HostGIS development & hosting services, http://www.HostGIS.com/ > > "Remember that no one cares if you can back up, > only if you can restore." - AMANDA > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users Paul T. Moen pmoen at nd.gov 701-328-2434 701-328-3696 (fax) ND State Water Commission -------------- next part -------------- An HTML attachment was scrubbed... URL: From ruijgomes at gmail.com Thu Mar 5 11:40:35 2009 From: ruijgomes at gmail.com (Rui Gomes) Date: Thu, 5 Mar 2009 19:40:35 +0000 Subject: [mapserver-users] 500 Internal Server Error In-Reply-To: <49AFB9CE0200008F000214B2@co5.dnr.state.mn.us> References: <49AFB9CE0200008F000214B2@co5.dnr.state.mn.us> Message-ID: <31e2f7000903051140y1d7b44f2reff62c0341e58236@mail.gmail.com> " Rui, what platform etc.. are you on?" That is my problem...i try to use a free web host to make a simple demo of my work. The server is linux, use apache and permit CGI. Because i try to build a hello map whithout render any image, i don?t expect problem whith the libraries so soon. And i have no ideia if i will can put it working. 2009/3/5 Steve Lime : > Rui, what platform etc.. are you on? > >>>> Rui Gomes 03/05/09 9:20 AM >>> > " Are you able to get into a shell?" > > I do not think i can do that (or know how do that). > > Thanks anyway > > > > 2009/3/5 Gregor at HostGIS : >>> And a few more question: what libraries i need to put in the server? >>> Where i can find some documentation about the libraries mapserver >>> need? >> >> A technique I find handy for debugging mapserver problems, a bit more useful >> than "Internal server error", is to go into the Unix shell and use shp2img. >> Are you able to get into a shell? >> >> I'd use something similar to one of these: >> ?shp2img -o test.png -m mapfile.map >> ?shp2img -o test.png -m mapfile.map -d 999 >> ?shp2img -o test.png -m mapfile.map -l lakes,streets >> >> When that fails, it'll give you more information as to what went wrong. For >> example, it will give hints as to shapefiles being transferred in ASCII >> mode, or the TEMPDIR not being writable. >> >> -- >> Gregor Mosheh / Greg Allensworth ? ?BS, A+, Network+, Security+, Server+ >> System Administrator, Lead Programmer >> HostGIS development & hosting services, http://www.HostGIS.com/ >> >> "Remember that no one cares if you can back up, >> ?only if you can restore." - AMANDA >> > > > > -- > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Rui Gomes > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Rui Gomes From MMaganti at oriongis.com Thu Mar 5 12:03:55 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Thu, 5 Mar 2009 15:03:55 -0500 Subject: [mapserver-users] Vista + map script question Message-ID: Hi Running my (desktop) application on some of the Vista or windows 2008 machines, gdla15.dll is not getting loaded. When I run dependency walker on gdal15.dll, it reports one of its dependency, GPSVC.dll, is not found. Did anyone encounter similar issue and if so, what is the resolution. Works fine on XP machines. Thanks Murty -------------- next part -------------- An HTML attachment was scrubbed... URL: From aboudreault at mapgears.com Thu Mar 5 12:11:04 2009 From: aboudreault at mapgears.com (Alan Boudreault) Date: Thu, 5 Mar 2009 15:11:04 -0500 Subject: [mapserver-users] Vista + map script question In-Reply-To: References: Message-ID: <200903051511.04967.aboudreault@mapgears.com> This is a DLL from MS. I never experienced this issue...(i'm on unix) but i think you can fix this error easily just by downloading the DLL and placing it in the right directory. What is GPSVC.DLL: http://www.processlibrary.com/directory/files/gpsvc/ Solution: http://forums.guru3d.com/showthread.php?t=212244 Hope that's help. Alan On March 5, 2009 03:03:55 pm Murty Maganti wrote: > Hi > > > > Running my (desktop) application on some of the Vista or windows 2008 > machines, gdla15.dll is not getting loaded. When I run dependency walker > on gdal15.dll, it reports one of its dependency, GPSVC.dll, is not > found. Did anyone encounter similar issue and if so, what is the > resolution. Works fine on XP machines. > > > > Thanks > > Murty From Steve.Lime at dnr.state.mn.us Thu Mar 5 12:09:08 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 05 Mar 2009 14:09:08 -0600 Subject: [mapserver-users] 500 Internal Server Error Message-ID: <49AFDD050200008F0002150E@co5.dnr.state.mn.us> Who installed MapServer then? Depending how it was compiled the cgi executable may be looking for loadable libraries (.so or .dll). That's one of the only ways you'll get a 500 error without trying to do something. On linux you often need to set an environment variable within apache's config, something like: LD_LIBRARY_PATH=/path/to/shared/libs;/path/to/more/shared/libs Steve >>> Rui Gomes 03/05/09 1:41 PM >>> " Rui, what platform etc.. are you on?" That is my problem...i try to use a free web host to make a simple demo of my work. The server is linux, use apache and permit CGI. Because i try to build a hello map whithout render any image, i don?t expect problem whith the libraries so soon. And i have no ideia if i will can put it working. 2009/3/5 Steve Lime : > Rui, what platform etc.. are you on? > >>>> Rui Gomes 03/05/09 9:20 AM >>> > " Are you able to get into a shell?" > > I do not think i can do that (or know how do that). > > Thanks anyway > > > > 2009/3/5 Gregor at HostGIS : >>> And a few more question: what libraries i need to put in the server? >>> Where i can find some documentation about the libraries mapserver >>> need? >> >> A technique I find handy for debugging mapserver problems, a bit more useful >> than "Internal server error", is to go into the Unix shell and use shp2img. >> Are you able to get into a shell? >> >> I'd use something similar to one of these: >> shp2img -o test.png -m mapfile.map >> shp2img -o test.png -m mapfile.map -d 999 >> shp2img -o test.png -m mapfile.map -l lakes,streets >> >> When that fails, it'll give you more information as to what went wrong. For >> example, it will give hints as to shapefiles being transferred in ASCII >> mode, or the TEMPDIR not being writable. >> >> -- >> Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ >> System Administrator, Lead Programmer >> HostGIS development & hosting services, http://www.HostGIS.com/ >> >> "Remember that no one cares if you can back up, >> only if you can restore." - AMANDA >> > > > > -- > Rui Gomes > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Rui Gomes From szekerest at gmail.com Thu Mar 5 14:18:45 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 5 Mar 2009 23:18:45 +0100 Subject: [mapserver-users] Vista + map script question In-Reply-To: References: Message-ID: Where did you obtain the binaries? You could also grab any of my latest builds available at: http://vbkto.dyndns.org:1280/sdk/index.html Best regards, Tamas 2009/3/5 Murty Maganti > Hi > > > > Running my (desktop) application on some of the Vista or windows 2008 > machines, gdla15.dll is not getting loaded. When I run dependency walker on > gdal15.dll, it reports one of its dependency, GPSVC.dll, is not found. Did > anyone encounter similar issue and if so, what is the resolution. Works fine > on XP machines. > > > > Thanks > > Murty > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From MMaganti at oriongis.com Thu Mar 5 15:08:27 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Thu, 5 Mar 2009 18:08:27 -0500 Subject: [mapserver-users] Vista + map script question In-Reply-To: References: Message-ID: Hi I took from ms4w binaries (version 2.2.7). I can try latest from URL below. Just a quick one. How can I compile only the mapscript_csharp assembly. Is there any VS project file available. Thanks Murty From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Tamas Szekeres Sent: Thursday, March 05, 2009 5:19 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Vista + map script question Where did you obtain the binaries? You could also grab any of my latest builds available at: http://vbkto.dyndns.org:1280/sdk/index.html Best regards, Tamas 2009/3/5 Murty Maganti Hi Running my (desktop) application on some of the Vista or windows 2008 machines, gdla15.dll is not getting loaded. When I run dependency walker on gdal15.dll, it reports one of its dependency, GPSVC.dll, is not found. Did anyone encounter similar issue and if so, what is the resolution. Works fine on XP machines. Thanks Murty _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Thu Mar 5 14:49:31 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Thu, 05 Mar 2009 17:49:31 -0500 Subject: [mapserver-users] use SLD to dynamic label switching In-Reply-To: References: Message-ID: <49B056FB.9000702@dmsolutions.ca> Bal?zs, I think what you need to do is have your 2 symbolizers inside the same Rule. This should display your polygons with labels. Something like this: http://att-it.homelinux.net:22080/cgi-bin/spatial?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=szerkesztheto,csakolv,pont&STYLES=&SRS=epsg:23700&BBOX=420000,40000,950000,370000&WIDTH=938&HEIGHT=591&FORMAT=image/png&SLD=http://www2.dmsolutions.ca/tmp/assefa/sld_polygon_with_text.xml Best Regards, Bal?zs B?mer wrote: > Hi All, > > I have a WMS service > > http://att-it.homelinux.net:22080/cgi-bin/spatial?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=szerkesztheto,csakolv,pont&STYLES=&SRS=epsg:23700&BBOX=420000,40000,950000,370000&WIDTH=938&HEIGHT=591&FORMAT=image/png&SLD=http://att-it.homelinux.net:22080/sld/spatialszerkeszthetoproba.xml > > Mapfile is here, the layer in question is "szerkesztheto" > http://att-it.homelinux.net:22080/spatial.map > > which works without the SLD request part and does what I want. I want > to use the SLD to alter rendering colors and add labels, because I > beleive that this would be more efficient than having a geometry layer > and a separate annotation one. Moreover, I want to try SLD. > > So with SLD the layer in question disappears. Inspecting the > transformed layer (written in /tmp) > http://att-it.homelinux.net:22080/spatialsld3.map > the layer "szerkesztheto" is turned into annotation type which I > didn't want. But even being this type, no labels are shown. > > Can this SLD trick be done, and if yes, where am I wrong? > > Thank you in advance! > best regards: Bal?zs > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From szekerest at gmail.com Thu Mar 5 16:09:42 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 6 Mar 2009 01:09:42 +0100 Subject: [mapserver-users] Vista + map script question In-Reply-To: References: Message-ID: 2009/3/6 Murty Maganti > > Just a quick one. How can I compile only the mapscript_csharp assembly. Is > there any VS project file available. > > Hi, Just download the most sufficient -dev package ( http://vbkto.dyndns.org:1280/sdk/index.html) for your compiler version and issue: nmake ms nmake ms-csharp in the Visual Studio Command Prompt. Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Thu Mar 5 20:05:34 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 05 Mar 2009 22:05:34 -0600 Subject: [mapserver-users] MapServer 5.4 Beta 3 is now available... Message-ID: <49B04CAE0200008F00021585@co5.dnr.state.mn.us> Greetings all: MapServer 5.4 Beta 3 is now available for download at http://mapserver.org/download. A small number of bugs uncovered during testing of the second beta have been fixed. The next release should be a release candidate and will be available mid-next week. As always any help in testing the software is greatly appreciated. Findings should be sent to the mapserver-dev (or even just mapserver-users) mailing list. The updated 5.4 release plan can be found at: http://trac.osgeo.org/mapserver/wiki/54ReleasePlan Steve From skiper at infojawa.org Thu Mar 5 21:59:07 2009 From: skiper at infojawa.org (Juni Adi) Date: Fri, 06 Mar 2009 12:59:07 +0700 Subject: [mapserver-users] OGR connection failure Message-ID: <49B0BBAB.3030208@infojawa.org> Hi all, I've just installed mapserver with php_mapscript enabled on my centos5 : mapserver-5.2.1 gdal-1.6.0 (configured with mysql) mysql 5.0.45 PHP 5.2.6 I've been trying to connect to mysql virtual data using mapscript (gmap) and failed with following error: [MapServer Error]: msOGRFileOpen(): Open failed for OGR connection in layer `base'. Failed to open datasource `MySQL:mapserver,user=xxxx,password=xxxx,tables=base'. in /home/infojawa/maps/jawa.inc.php on line 552 The error log in error.log (i've set DEBUG 5 in my mapfile) is: [Fri Mar 6 03:13:38 2009].513694 msOGRFileOpen(base.ovf)... [Fri Mar 6 03:13:38 2009].513755 OGROPen(/home/infojawa/maps_data/jawa/base.ovf) [Fri Mar 6 03:13:38 2009].514373 msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `base'. Failed to open datasource `MySQL:mapserver,user=xxxx,password=xxxx,tables=base'. my ovr file base.ovr: MySQL:mapserver,user=xxxx,password=xxxx,tables=base WGS84 I get sucsessfull connection from shell: # /usr/bin/ogrinfo base.ovf ERROR 4: Update access not supported for VRT datasources. Had to open data source read-only. INFO: Open of `/home/infojawa/maps_data/jawa/base.ovf' using driver `VRT' successful. 1: base my mapfile: LAYER NAME base CONNECTIONTYPE ogr CONNECTION "base.ovf" TYPE POLYGON STATUS ON TRANSPARENCY 100 DEBUG 5 CLASS NAME "base" STYLE COLOR 221 221 221 END END END # layer from phpinfo(): MapServer version 5.2.1 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_CLIENT SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I've been searching arround, and found some similar failure cases, but didn't find how these problems solved. I've even add 'SetEnv LD_LIBRARY_PATH /usr/local/lib' in httpd.conf and "CONFIG GDAL_DATA /usr/local/share/gdal" in the mapfile, but didn't help. Thanks Junek ps: In my other box, using ms4w 2.3.1 the same script is running well. From temiz at deprem.gov.tr Fri Mar 6 00:12:53 2009 From: temiz at deprem.gov.tr (Ahmet Temiz) Date: Fri, 6 Mar 2009 10:12:53 +0200 Subject: [mapserver-users] confused about using zoomRectangle Message-ID: <20090306080725.M53786@deprem.gov.tr> hello I am using mapserver-java-mapscript. I am very confused about using zoomRectangle. I tried zoomRectangle in two ways. But I still have exception. here is the java code I tried and related exception results: 1.. rectObj imgrect =new rectObj(10,10,100,100,0); map0.zoomRectangle(imgrect, 500, 500, map0.getExtent(), null); SEVERE: java.lang.UnknownError: mapscript::mapObj::zoomRectangle(): General error message. image rectangle maxy >= miny javax.faces.el.EvaluationException: java.lang.UnknownError: mapscript::mapObj::zoomRectangle(): General error message. image rectangle maxy >= miny ~~~~~~~~~~~~~~~~ 2.. rectObj imgrect =new rectObj(10,100,100,10,0); map0.zoomRectangle(imgrect, 500, 500, map0.getExtent(), null); SEVERE: java.lang.UnknownError: rectObj(): Invalid rectangle. { 'minx': 10.000000 , 'miny': 100.000000 , 'maxx': 100.000000 , 'maxy': 10.000000 } javax.faces.el.EvaluationException: java.lang.UnknownError: rectObj(): Invalid rectangle. { 'minx': 10.000000 , 'miny': 100.000000 , 'maxx': 100.000000 , 'maxy': 10.000000 } ~~~~~~~~~~~~~~~~ I will appreciate, if you give your sense. regards -- Open WebMail Project (http://openwebmail.org) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From julien.trolet at ifremer.fr Fri Mar 6 02:25:19 2009 From: julien.trolet at ifremer.fr (julien) Date: Fri, 06 Mar 2009 11:25:19 +0100 Subject: [mapserver-users] JAVA Mapscript LayerObj issues In-Reply-To: <49AFA031.9040105@ifremer.fr> References: <49AE654B.9080908@ifremer.fr> <007801c99cc1$793caad0$6bb60070$@com> <49AFA031.9040105@ifremer.fr> Message-ID: <49B0FA0F.6010004@ifremer.fr> Just to let people know, I found the solution. I changed : classObj my_class = new classObj(my_layer_item.layer_object); styleObj my_style = new styleObj(my_class); By : classObj my_class = my_layer_item.layer_object.getClass(0); styleObj my_style = my_layer_item.layer_object.getClass(0).getStyle(0); julien wrote: > Hi again, > > Thanks for the help, I think I am close to the solution but it is > still not working as I get the following error : > java.lang.UnknownError: msGetBitmapFont(): GD library error. Invalid bitmap font. Must be one of tiny, small, medium, large or giant. > edu.umn.gis.mapscript.mapscriptJNI.mapObj_drawLabelCache(Native Method) > edu.umn.gis.mapscript.mapObj.drawLabelCache(mapObj.java:403) > > > I thougth I have to use the setSize funtction of the labelObj class to > set the BitmapFont as MS_BITMAP_FONT_SIZES.MS_LARGE. But it is not > working. > Here is what I have done in my layerObj : > > my_layer_item.setType(MS_LAYER_TYPE.MS_LAYER_POINT); > > pointObj legendpoint = new pointObj(10,10,0,0); > > lineObj legendline = new lineObj(); > legendline.add(legendpoint); > > shapeObj legendfeat = new > shapeObj(MS_SHAPE_TYPE.MS_SHAPE_POINT.swigValue()); > legendfeat.add(legendline); > legendfeat.setText("Blablabla"); > > my_layer_item.addFeature(legendfeat); > > classObj my_class = new classObj(my_layer_item.layer_object); > styleObj my_style = new styleObj(my_class); > my_style.setColor(new colorObj(0, 0, 0, -4)); > my_style.setSize(50); > my_style.setSymbolname("kreis"); > > labelObj my_label = my_class.getLabel(); > my_label.setType(MS_FONT_TYPE.MS_BITMAP); > my_label.setColor(new colorObj(0, 0, 0, -4)); > > my_class.getLabel().setPosition(MS_POSITIONS_ENUM.MS_UC.swigValue()); > my_label.setSize(MS_BITMAP_FONT_SIZES.MS_LARGE.swigValue()); > my_label.setForce(mapscriptConstants.MS_TRUE); > > my_layer_item.setStyleName("Test"); > my_layer_item.setProjection(4030); > my_layer_item.setStatus(true); > > The corresponding mapfile is : > > LAYER > NAME Test > TYPE POINT > STATUS DEFAULT > FEATURE > POINTS > 10 10 > END > TEXT "Blablabla" > END > CLASS > STYLE > SYMBOL "kreis" > SIZE 50 > COLOR 0 0 0 > END > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 0 > POSITION UC > END > END > END > > Any helps is welcome. > Thanks in advance > > Trolet Julien > ------------------------------------------------------------------------ > > _______________________________________________ > 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 kmanoj-pg7 at iiitmk.ac.in Fri Mar 6 02:28:10 2009 From: kmanoj-pg7 at iiitmk.ac.in (kmanoj-pg7 kmanoj-pg7) Date: Fri, 6 Mar 2009 15:58:10 +0530 Subject: [mapserver-users] AGG/PNG driver problem Message-ID: <9ab9b8cf0903060228r74bd4d57if5fe2087f8db0ec4@mail.gmail.com> Dear users, I need some help with mapserver and AGG support. I am trying to use AGG/PNG outformat in the mapfile as well as i added precisely. When i call the link through browser i recieved the following error *loadOutputFormat(): General error message. OUTPUTFORMAT clause references driver AGG/PNG, but this driver isn't configured. * It is clearly evident that from the error, the driver is not configured. since all the mapserver version 5 suppotrs AGG rendering backend, so i checked whether mapserver supports AGG or not. [kapil at localhost cgi-bin]$ mapserv -v MapServer version 5.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=TIFF INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=MYGIS INPUT=SHAPEFILE [kapil at localhost cgi-bin]$ I found that my mapserver doesn't support AGG means SUPPORTS = AGG is missing in the above output. But i have already installed AGG in my system. In order to clear this issue i gone through many threads in our mapserver forum, but i was not satisfied with the answers. Atlast i came to know that, i have to recompile the mapserver with AGG. But the problem now i am facing is i have installed both the mapserver and AGG through YUM INSTALL command so *i* *dont know how to recompile mapserver with AGG support. *Currently i am using mapserver 5.0.3 , AGG 2.5-6 on fedora 9 please somebody help me out ..... its little urgent guys.... Thanks, kapilmanoj * * -------------- next part -------------- An HTML attachment was scrubbed... URL: From kmanoj-pg7 at iiitmk.ac.in Fri Mar 6 02:38:33 2009 From: kmanoj-pg7 at iiitmk.ac.in (kapilmanoj) Date: Fri, 6 Mar 2009 02:38:33 -0800 (PST) Subject: [mapserver-users] msProcessProjection(): Projection library error. no system list, errno: 2 In-Reply-To: <9ab9b8cf0903050059v7b048e84vd0a192a773fd738a@mail.gmail.com> References: <9ab9b8cf0903050059v7b048e84vd0a192a773fd738a@mail.gmail.com> Message-ID: <1236335913647-2434929.post@n2.nabble.com> hi all, i have done a blunder mistake in the Projection tag of the above mapfile, i have written espg instead of epsg , that was the root cause of the above error has been thrown. just forgive me....... Thanks kapilmanoj kapilmanoj wrote: > > Dear users, > > I am using fedora 9 with mapserver 5.0.3 , i installed mapserver by using > YUM install command through command prompt. Now I am trying to use the > 'projection' tag in a map file, but it is not working. I installed > proj-4.6.0 also as like the above same way. However, when using the > 'projection' tag, it gets > > * msProcessProjection(): Projection library error. no system list, errno: > 2 > * > > > This is my map file for your perusal, > > Map > IMAGETYPE PNG > NAME "Gods own country" > SIZE 800 500 > IMAGECOLOR 256 255 255 > EXTENT 74.906173 8.249055 77.434938 12.791817 #geographic > SHAPEPATH "/var/www/html/mapfiles/sampletest/data" > FONTSET "/var/www/html/mapfiles/sampletest/fonts/fonts.list" > SYMBOLSET "/var/www/html/mapfiles/sampletest/symbols/symbols35.sym" > > PROJECTION > "init=espg:4326" > END > > LAYER > NAME kerala > TYPE POLYGON > STATUS OFF > DATA parl_04 > > PROJECTION > "init=epsg:4326" > END > > CLASSITEM "PARTY" > > CLASS > NAME "Greenary Land" > EXPRESSION 'CPM' > STYLE > COLOR 256 256 255 > OUTLINECOLOR 256 256 256 > END > > END > > #second class starts > CLASS > NAME 'CPI' > EXPRESSION 'CPI' > > STYLE > COLOR 198 198 255 > OUTLINECOLOR 256 256 256 > END > > END > > END #end of first layer > > LAYER # States label layer begins here > NAME states_label > DATA parl_04 > STATUS OFF > TYPE ANNOTATION > > PROJECTION > "init=epsg:4326" > END > > CLASSITEM "PARTY" > > LABELITEM "NAME" > > CLASS > EXPRESSION 'CPM' > STYLE > COLOR -1 -1 -1 > END > LABEL > COLOR 132 31 31 > SHADOWCOLOR 218 218 218 > SHADOWSIZE 2 2 > TYPE TRUETYPE > FONT arial-bold > SIZE 12 > ANTIALIAS TRUE > POSITION AUTO > PARTIALS FALSE > MINDISTANCE 300 > BUFFER 4 > END # end of label > END # end of class > CLASS > EXPRESSION 'CPI' > STYLE > COLOR -1 -1 -1 > END > LABEL > COLOR 132 31 31 > SHADOWCOLOR 218 218 218 > SHADOWSIZE 2 2 > TYPE TRUETYPE > FONT arial-bold > SIZE 12 > ANTIALIAS TRUE > POSITION AUTO > PARTIALS FALSE > MINDISTANCE 300 > BUFFER 4 > END # end of label > END # end of class > > > END # States label layer ends here > # End of LAYER DEFINITIONS ------------------------------- > > END #map ends here > ---------------------------------------------+----------------------------------------- > > The interesting thing to look out about this projection is when i add the > projection tag both in the map object and layer object , its showing the > above error > > * mProcessProjection(): Projection library error. no system list, errno: 2 > * > > but when i remove the projection tag from the map object leaving the > project > tag as it is in the layer object (not remove) its working fine, projecting > the map without making any problem in the browser > > The apache error logs don't show anything interesting, but it still > returns > this: > > msProcessProjection(): Projection library error. no system list, errno: > 2 > when i add the projection tag in the map object. > > what could be a problem? somebody please help me out... > > help/tips will be appreciated. > > Thanks, > kapilmanoj. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/msProcessProjection%28%29%3A-Projection-library-error.-no-system-list%2C-errno%3A-2-tp2428209p2434929.html Sent from the Mapserver - User mailing list archive at Nabble.com. From raffaele.morelli at gmail.com Fri Mar 6 05:56:23 2009 From: raffaele.morelli at gmail.com (Cassiel) Date: Fri, 6 Mar 2009 14:56:23 +0100 Subject: [mapserver-users] msWMSDispatch(): WMS server error. Incomplete WMS request: VERSION parameter missing Message-ID: Hi you all, I am getting this error using Mapserver 5.0.3 on debian lenny when querying for WMS available layers on Qgis. Querying with iceweasel on debian works , i.e. the proper xml file is returned, while it does not on Mac OS X. Any hints? Regards Raffaele -------------- next part -------------- An HTML attachment was scrubbed... URL: From pal.kristensen at statkart.no Fri Mar 6 06:43:35 2009 From: pal.kristensen at statkart.no (paalkr) Date: Fri, 6 Mar 2009 06:43:35 -0800 (PST) Subject: [mapserver-users] msWMSDispatch(): WMS server error. Incomplete WMS request: VERSION parameter missing In-Reply-To: References: Message-ID: <1236350615296-2436095.post@n2.nabble.com> Hi! This is fixed in ticket #2528, and applied in MapServer 5.2.0. Version is a optional parameter in the GetCapabilities request, as described in the WMS 1.1.1 specification, chapter 7.1.2, table 4. In earlier version of MapServer the version parameter was treated as mandatory. You can resolve your issue in to different ways: 1) Add a &version=1.1.1 to your service URL in Qgis 2) Upgrade to MapServer 5.2.0 or later. Regards, P?l Kristensen Cassiel wrote: > > Hi you all, > > I am getting this error using Mapserver 5.0.3 on debian lenny when > querying > for WMS available layers on Qgis. > > Querying with iceweasel on debian works , i.e. the proper xml file is > returned, while it does not on Mac OS X. > > Any hints? > > Regards > Raffaele > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/msWMSDispatch%28%29%3A-WMS-server-error.-Incomplete-WMS-request%3A-VERSION-parameter-missing-tp2435750p2436095.html Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at gmail.com Fri Mar 6 07:42:45 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 6 Mar 2009 16:42:45 +0100 Subject: [mapserver-users] confused about using zoomRectangle In-Reply-To: <20090306080725.M53786@deprem.gov.tr> References: <20090306080725.M53786@deprem.gov.tr> Message-ID: Hi, I guess you've run into the problem reported in http://trac.osgeo.org/mapserver/ticket/1988 http://trac.osgeo.org/mapserver/ticket/1817 and some other related tickets. I'm not sure why this issue haven't been addressed yet, seem you have to swap the miny and maxy values in the rectangle before passing to zoomRectangle right now. Best regards, Tamas 2009/3/6 Ahmet Temiz > hello > > I am using mapserver-java-mapscript. > > I am very confused about using zoomRectangle. > > I tried zoomRectangle in two ways. But I still have exception. > > here is the java code I tried and related exception results: > > 1.. > > rectObj imgrect =new rectObj(10,10,100,100,0); > map0.zoomRectangle(imgrect, 500, 500, map0.getExtent(), > null); > > SEVERE: java.lang.UnknownError: mapscript::mapObj::zoomRectangle(): > General error message. image rectangle maxy >= miny > javax.faces.el.EvaluationException: java.lang.UnknownError: > mapscript::mapObj::zoomRectangle(): > General error message. image rectangle maxy >= miny > > ~~~~~~~~~~~~~~~~ > 2.. > > rectObj imgrect =new rectObj(10,100,100,10,0); > map0.zoomRectangle(imgrect, 500, 500, map0.getExtent(), null); > > SEVERE: java.lang.UnknownError: rectObj(): > Invalid rectangle. { 'minx': 10.000000 , 'miny': 100.000000 , 'maxx': > 100.000000 , 'maxy': 10.000000 } > javax.faces.el.EvaluationException: java.lang.UnknownError: rectObj(): > Invalid rectangle. { 'minx': 10.000000 , 'miny': 100.000000 , 'maxx': > 100.000000 , 'maxy': 10.000000 } > ~~~~~~~~~~~~~~~~ > > I will appreciate, if you give your sense. > > regards > -- > Open WebMail Project (http://openwebmail.org) > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From MMaganti at oriongis.com Fri Mar 6 08:19:42 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Fri, 6 Mar 2009 11:19:42 -0500 Subject: [mapserver-users] Vista + map script question In-Reply-To: References: Message-ID: Hi I could compile from the SDK but have a small issue using the compiled binaries. Getting the following error while loading SDE layer First-chance exception at 0x7855b66c (msvcr90.dll) in WindowsFormsApplication1.exe: 0xC0000005: Access violation reading location 0x00000001. A first chance exception of type 'System.AccessViolationException' occurred in mapscript_csharp.dll An unhandled exception of type 'System.AccessViolationException' occurred in mapscript_csharp.dll Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. And it is happening on this line below char *msDecryptStringTokens(mapObj *map, const char *in) { char *outbuf, *out; if (map == NULL) { msSetError(MS_MISCERR, "NULL MapObj.", "msLoadEncryptionKey()"); return NULL; } /* Start with a copy of the string. Decryption can only result in * a string with the same or shorter length */ => if ((outbuf = (char *)malloc((strlen(in)+1)*sizeof(char))) == NULL) { Any clue on what I could be doing wrong here. Thanks Murty From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Thursday, March 05, 2009 7:10 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Vista + map script question 2009/3/6 Murty Maganti Just a quick one. How can I compile only the mapscript_csharp assembly. Is there any VS project file available. Hi, Just download the most sufficient -dev package (http://vbkto.dyndns.org:1280/sdk/index.html) for your compiler version and issue: nmake ms nmake ms-csharp in the Visual Studio Command Prompt. Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From kobben at itc.nl Fri Mar 6 08:12:18 2009 From: kobben at itc.nl (Barend Kobben) Date: Fri, 6 Mar 2009 17:12:18 +0100 Subject: [mapserver-users] use SLD to dynamic label switching In-Reply-To: <48CE974C.5157.008F.0@dnr.state.mn.us> Message-ID: One thing to care care of if you use SLD is having not much to do with the SLDs themselves, but with TMP file settings. Using SLDs is dependent on the correct setting of the two settings IMAGEPATH -- where the mapserver software puts the SLD and other temporary files IMAGEURL -- where the web browser and other http services pick them up. Setting these incorrectly, and more importantly their security setting incorrrectly, will normally give no problems, but when using SLDs (and also in other cases, eg. when chaining Mapserver to external WMS and WFS services), they will make MS malfunction, but SILENTLY (ie. No error messages). Eg. in our set ups of a WMS with external SLD they are set as follows: For a *nix setup ( MacOSX) with Mapserver CGI 'behind' Apache: WEB IMAGEPATH "/Users/kobben/Sites/ms_tmp/" IMAGEURL "http://localhost/~kobben/ms_tmp/" #--------------------------------------------# METADATA [all your web metadata...] END #metadata END #web For a Win box with Mapserver CGI 'behind' IIS: IMAGEPATH "C:/tmp/ms_tmp/" IMAGEURL "http://geoserver.itc.nl/ms_tmp/" The IMAGEPATh is a directory that is reacheable by Mapserver at this real location (in this case expressed as Unix BSD path on my MacOSX or as UNC path on Win) and that has read & write access set for the Mapserver process. Eg. on the Winbox it should have write access for the anonymous system service account under which Mapserver runs (usually something like SERVERNAME\IWAM_SERVERNAME). You can test this by seeing if files with names like) are being created when you request the WMS with external SLD. If they are the IMAGEPATH celarly works. Then test if you can point a browser to the IMAGEURL and pick up the tmp file. If that worsk the IMAGEURL is also OK. Now it should work... Hope this helps. -- Barend K?bben International Institute for Geo-Information Sciences and Earth Observation (ITC) PO Box 6, 7500AA Enschede, The Netherlands +31 (0)53 4874253 On 05-03-09 16:54, "Bal?zs B?mer" wrote: > Hi All, > > I have a WMS service > > http://att-it.homelinux.net:22080/cgi-bin/spatial?SERVICE=WMS&VERSION=1.1.1&RE > QUEST=GetMap&LAYERS=szerkesztheto,csakolv,pont&STYLES=&SRS=epsg:23700&BBOX=420 > 000,40000,950000,370000&WIDTH=938&HEIGHT=591&FORMAT=image/png&SLD=http://att-i > t.homelinux.net:22080/sld/spatialszerkeszthetoproba.xml > > Mapfile is here, the layer in question is "szerkesztheto" > http://att-it.homelinux.net:22080/spatial.map > > which works without the SLD request part and does what I want. I want > to use the SLD to alter rendering colors and add labels, because I > beleive that this would be more efficient than having a geometry layer > and a separate annotation one. Moreover, I want to try SLD. > > So with SLD the layer in question disappears. Inspecting the > transformed layer (written in /tmp) > http://att-it.homelinux.net:22080/spatialsld3.map > the layer "szerkesztheto" is turned into annotation type which I > didn't want. But even being this type, no labels are shown. > > Can this SLD trick be done, and if yes, where am I wrong? > > Thank you in advance! > best regards: Bal?zs > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users International Institute for Geo-Information Science and Earth Observation (ITC) Chamber of Commerce: 410 27 560 E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. From yassefa at dmsolutions.ca Fri Mar 6 08:36:25 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Fri, 06 Mar 2009 11:36:25 -0500 Subject: [mapserver-users] use SLD to dynamic label switching In-Reply-To: References: <49B056FB.9000702@dmsolutions.ca> Message-ID: <49B15109.7000302@dmsolutions.ca> Forwarding to the list so others don't spend additional time helping. Bal?zs B?mer wrote: > Hi Assefa, > >> I think what you need to do is have your 2 symbolizers inside the same >> Rule. This should display your polygons with labels. Something like this: > > This is great! Thank you very much! > > Best regards: Bal?zs > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From szekerest at gmail.com Fri Mar 6 08:44:30 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 6 Mar 2009 17:44:30 +0100 Subject: [mapserver-users] Vista + map script question In-Reply-To: References: Message-ID: Hi, Are you sure you've set the connection of the layer to a proper value? Seems like the SDE driver doesn't check for the NULL values before passing that to msDecryptStringTokens. Best regards, Tamas 2009/3/6 Murty Maganti > Hi > > > > I could compile from the SDK but have a small issue using the compiled > binaries. Getting the following error while loading SDE layer > > > > First-chance exception at 0x7855b66c (msvcr90.dll) in > WindowsFormsApplication1.exe: 0xC0000005: Access violation reading location > 0x00000001. > > A first chance exception of type 'System.AccessViolationException' occurred > in mapscript_csharp.dll > > An unhandled exception of type 'System.AccessViolationException' occurred > in mapscript_csharp.dll > > > > Additional information: Attempted to read or write protected memory. This > is often an indication that other memory is corrupt. > > > > And it is happening on this line below > > > > char *msDecryptStringTokens(mapObj *map, const char *in) > > { > > char *outbuf, *out; > > > > if (map == NULL) > > { > > msSetError(MS_MISCERR, "NULL MapObj.", "msLoadEncryptionKey()"); > > return NULL; > > } > > > > /* Start with a copy of the string. Decryption can only result in > > * a string with the same or shorter length */ > > *=>* if ((outbuf = (char *)malloc((strlen(in)+1)*sizeof(char))) == > NULL) > > { > > > > Any clue on what I could be doing wrong here. > > > > Thanks > > Murty > > > > *From:* Tamas Szekeres [mailto:szekerest at gmail.com] > *Sent:* Thursday, March 05, 2009 7:10 PM > *To:* Murty Maganti > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Vista + map script question > > > > > > > 2009/3/6 Murty Maganti > > > > Just a quick one. How can I compile only the mapscript_csharp assembly. Is > there any VS project file available. > > > Hi, > > Just download the most sufficient -dev package ( > http://vbkto.dyndns.org:1280/sdk/index.html) for your compiler version and > issue: > > nmake ms > nmake ms-csharp > > in the Visual Studio Command Prompt. > > > Best regards, > > Tamas > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From temiz at deprem.gov.tr Fri Mar 6 11:02:38 2009 From: temiz at deprem.gov.tr (Ahmet Temiz) Date: Fri, 6 Mar 2009 21:02:38 +0200 Subject: [mapserver-users] confused about using zoomRectangle In-Reply-To: References: <20090306080725.M53786@deprem.gov.tr> Message-ID: <20090306185211.M26823@deprem.gov.tr> hi, thank you I had tried two ways you mentioned as 1 and 2 "1" is rectObj(10,10,100,100,0) "2" is rectObj(10,100,100,10,0) both resulted exception. what I want to know is that if I can create any image box providing keeping the same size. I mean rectOb(11,11,101,101) and rectOb(12,12,102,102) and so on have same effect on zoomRectangle. regards On Fri, 6 Mar 2009 16:42:45 +0100, Tamas Szekeres wrote > Hi, > > I guess you've run into the problem reported in > http://trac.osgeo.org/mapserver/ticket/1988 > http://trac.osgeo.org/mapserver/ticket/1817 > > and some other related tickets. > > I'm not sure why this issue haven't been addressed yet, seem you have to swap the miny and maxy values in the rectangle before passing to zoomRectangle right now. > > Best regards, > > Tamas > > 2009/3/6 Ahmet Temiz > hello > > I am using mapserver-java-mapscript. > > I am very confused about using zoomRectangle. > > I tried zoomRectangle in two ways. But I still have exception. > > here is the java code I tried and related exception results: > > 1.. > > rectObj imgrect =new rectObj(10,10,100,100,0); > map0.zoomRectangle(imgrect, 500, 500, map0.getExtent(), null); > > SEVERE: java.lang.UnknownError: mapscript::mapObj::zoomRectangle(): > General error message. image rectangle maxy >= miny > javax.faces.el.EvaluationException: java.lang.UnknownError: > mapscript::mapObj::zoomRectangle(): > General error message. image rectangle maxy >= miny > > ~~~~~~~~~~~~~~~~ > 2.. > > rectObj imgrect =new rectObj(10,100,100,10,0); > map0.zoomRectangle(imgrect, 500, 500, map0.getExtent(), null); > > SEVERE: java.lang.UnknownError: rectObj(): > Invalid rectangle. { 'minx': 10.000000 , 'miny': 100.000000 , 'maxx': > 100.000000 , 'maxy': 10.000000 } > javax.faces.el.EvaluationException: java.lang.UnknownError: rectObj(): > Invalid rectangle. { 'minx': 10.000000 , 'miny': 100.000000 , 'maxx': > 100.000000 , 'maxy': 10.000000 } > ~~~~~~~~~~~~~~~~ > > I will appreciate, if you give your sense. > > regards > -- > Open WebMail Project (http://openwebmail.org) > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- > This message has been scanned for viruses and > dangerous content byMailScanner, and is > believed to be clean. -- Open WebMail Project (http://openwebmail.org) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Fri Mar 6 11:11:28 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 6 Mar 2009 20:11:28 +0100 Subject: [mapserver-users] confused about using zoomRectangle In-Reply-To: <20090306185211.M26823@deprem.gov.tr> References: <20090306080725.M53786@deprem.gov.tr> <20090306185211.M26823@deprem.gov.tr> Message-ID: I'm using this one for C# which is working fairly well. public void ZoomRectangle(double minx, double miny, double maxx, double maxy) { if (map != null && (maxx - minx) > 2 && (maxy-miny) > 2) { using (rectObj imgrect = new rectObj(minx, miny, maxx, maxy, 0)) { // mapscript requires this hack imgrect.miny = maxy; imgrect.maxy = miny; map.zoomRectangle(imgrect, map.width, map.height, map.extent, null); this.RefreshView(); return; } } } I guess the same would work for java as well. Best regards, Tamas 2009/3/6 Ahmet Temiz > *hi, > thank you > > I had tried two ways you mentioned as 1 and 2 > > "1" is *rectObj(10,10,100,100,0) > *"2" is *rectObj(10,100,100,10,0) > > both resulted exception. > > what I want to know is that if I can create any image box providing > keeping the same size. > > I mean rectOb(11,11,101,101) and rectOb(12,12,102,102) and so on have same > effect > on zoomRectangle. > > regards > * > On Fri, 6 Mar 2009 16:42:45 +0100, Tamas Szekeres wrote* > > Hi, > > > > I guess you've run into the problem reported in > > http://trac.osgeo.org/mapserver/ticket/1988 > > http://trac.osgeo.org/mapserver/ticket/1817 > > > > and some other related tickets. > > > > I'm not sure why this issue haven't been addressed yet, seem you have to > swap the miny and maxy values in the rectangle before passing to > zoomRectangle right now. > > > > Best regards, > > > > Tamas > > > > 2009/3/6 Ahmet Temiz > > >> >> hello >> > >> > I am using mapserver-java-mapscript. >> > >> > I am very confused about using zoomRectangle. >> > >> > I tried zoomRectangle in two ways. But I still have exception. >> > >> > here is the java code I tried and related exception results: >> > >> > 1.. >> > >> > rectObj imgrect =new rectObj(10,10,100,100,0); >> > map0.zoomRectangle(imgrect, 500, 500, map0.getExtent(), null); >> > >> > SEVERE: java.lang.UnknownError: mapscript::mapObj::zoomRectangle(): >> > General error message. image rectangle maxy >= miny >> > javax.faces.el.EvaluationException: java.lang.UnknownError: >> > mapscript::mapObj::zoomRectangle(): >> > General error message. image rectangle maxy >= miny >> > >> > ~~~~~~~~~~~~~~~~ >> > 2.. >> > >> > rectObj imgrect =new rectObj(10,100,100,10,0); >> > map0.zoomRectangle(imgrect, 500, 500, map0.getExtent(), null); >> > >> > SEVERE: java.lang.UnknownError: rectObj(): >> > Invalid rectangle. { 'minx': 10.000000 , 'miny': 100.000000 , 'maxx': >> > 100.000000 , 'maxy': 10.000000 } >> > javax.faces.el.EvaluationException: java.lang.UnknownError: rectObj(): >> > Invalid rectangle. { 'minx': 10.000000 , 'miny': 100.000000 , 'maxx': >> > 100.000000 , 'maxy': 10.000000 } >> > ~~~~~~~~~~~~~~~~ >> > >> > I will appreciate, if you give your sense. >> > >> > regards >> > -- >> > Open WebMail Project (http://openwebmail.org) >> > >> > -- >> > This message has been scanned for viruses and >> > dangerous content by MailScanner, and is >> > believed to be clean. >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > > > > > -- > > This message has been scanned for viruses and > > dangerous content by *MailScanner* , and > is > > believed to be clean. > > > -- > Open WebMail Project (http://openwebmail.org) > > > -- > This message has been scanned for viruses and > dangerous content by *MailScanner* , and is > believed to be clean. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From skiper at infojawa.org Fri Mar 6 11:17:46 2009 From: skiper at infojawa.org (Juni Adi) Date: Sat, 07 Mar 2009 02:17:46 +0700 Subject: [mapserver-users] OGR connection failure In-Reply-To: <49B14B49.4030501@pobox.com> References: <49B0BBAB.3030208@infojawa.org> <49B14B49.4030501@pobox.com> Message-ID: <49B176DA.7030304@infojawa.org> Thanks for the prompt reply, Frank. Yes, apache has access to mysql: [root at xxxxxxx.org maps]# su -fm apache bash: /root/.bashrc: Permission denied [apache at xxxxx.org maps]$ mysql mapserver -u xxxxx -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 7914 Server version: 5.0.45 Source distribution Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> Many thanks Junek Frank Warmerdam wrote: > Juni Adi wrote: >> Hi all, >> >> I've just installed mapserver with php_mapscript enabled on my centos5 : >> mapserver-5.2.1 > > Judi, > > I don't know how mysql permissions work, but I'd suggest reviewing > whether > the apache account has permissions to access mysql. I don't see any > other > obvious reason things wouldn't work assuming the same libraries are being > used in both configurations. > > Best regards, From thomas.bonfort at gmail.com Fri Mar 6 13:42:21 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 6 Mar 2009 22:42:21 +0100 Subject: [mapserver-users] Re: [mapserver-dev] LABEL OUTLINEWIDTH - works or not? In-Reply-To: <1236351517127-2436167.post@n2.nabble.com> References: <1236351517127-2436167.post@n2.nabble.com> Message-ID: On Fri, Mar 6, 2009 at 15:58, S. Constantinescu wrote: > > Hi everybody, I need to find out if LABEL OUTLINEWIDTH is implemented or NOT, > and if it is, how can I test if it's working. Source files show it is, but > using the AGG renderer doesn't appear to modify the 1px width of the halo > around the label. Versions used: 5.2.1, ?5.4.0b2. System, OS X 10.5.2. Also, > if it's supposed to work, can it be set just via the *.map file or it works > just via mapscript. 5.2 docs say it should work. 5.4 says it's supposed to > be implemented in 5.4. It is supposed to work from the mapfile > > OUTPUTFORMAT > ?DRIVER AGG/PNG > ?... > END > > > LAYER > TYPE ANNOTATION > ... > ?CLASS > ?EXPRESSION "1" > ?LABEL > ? COLOR 0 0 0 > ? OUTLINECOLOR 255 119 51 > ? OUTLINEWIDTH 5 > ? TYPE TRUETYPE > ? FONT myFont > ? SIZE 8 > ? ANTIALIAS True > END # label > END # class > ... All seems file from the mapfile syntx point of view. Are you sure the images you are seeing have been generated with the AGG driver? Can you post a sample image of what you're getting (preferably with more than just the labels to see if it's GD or AGG kicking in) regards, thomas From randre at gmail.com Fri Mar 6 14:53:31 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Fri, 6 Mar 2009 14:53:31 -0800 Subject: [mapserver-users] Problems mapping regions that span Dateline In-Reply-To: <807843.39997.qm@web33207.mail.mud.yahoo.com> References: <9c2015090903051130o35725b2ctbbb09885c8292f72@mail.gmail.com> <807843.39997.qm@web33207.mail.mud.yahoo.com> Message-ID: <9c2015090903061453w56681f96ma0b5a1d51886abd1@mail.gmail.com> Hi Brent, Thanks for your reply. Converting to a 0 - 360 longitude span seems like it would work, but as part of my map contains imagery data, I think it would probably be best if I could define a new projection in my epsg file that contained the required parameters. Is that possible? I have implemented the DateLine wrap in OpenLayers, and it works well there. Unfortunately, I also need to generate some map images dynamically via mapscript, and this is where I have the most problems. Thanks again, Roger -- On Thu, Mar 5, 2009 at 1:54 PM, Brent Wood wrote: > > > Welcome to my world... > > > The simplest way is, if you can, convert your longitutes to a 0-360 instead of +-180 space. If you use PostGIS the shift_longitude function works, Proj.4 can also be told which space to use for western hemisphere longitudes and generate longs in the 0-360 space. > > Alternatively, if you stick to +-180, you can use OpenLayers at the client end, as this has a switch available to work across 180. > > > HTH, > > ?Brent Wood > > > --- On Fri, 3/6/09, Roger Andr? wrote: > >> From: Roger Andr? >> Subject: [mapserver-users] Problems mapping regions that span Dateline >> To: "mapserver-users at lists.osgeo.org" >> Date: Friday, March 6, 2009, 8:30 AM >> Hi All, >> >> I'm having some problems mapping some regions of the >> world that span >> the Dateline. ?I have several examples of this, but using >> one, the UN >> subregion defined as being "South Pacific", as an >> example illustrates >> the problem nicely. ?This region has the following extents: >> >> Corner Coordinates: >> Upper Left ?(-180.0000000, ?28.2333333) >> Lower Left ?(-180.0000000, -29.0666667) >> Upper Right ( 180.0000000, ?28.2333333) >> Lower Right ( 180.0000000, -29.0666667) >> >> The map that is generated using these extents with EPSG >> 4326 spans the >> entire globe, and I'd like to find a way to show the >> are in a more >> concise fashion. ?I have the same problem with New Zealand, >> and with >> the full extents of the USA. >> >> Hoping for some suggestions. >> >> Thanks, >> >> Roger >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > From MMaganti at oriongis.com Fri Mar 6 15:25:48 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Fri, 6 Mar 2009 18:25:48 -0500 Subject: [mapserver-users] C# mapscript question Message-ID: Hi I am setting font property at runtime using clsObj.label.font="Times-New-Roman" This font alias is there in my fonts file. When I save the map file (mapObj.save()), the font name is not saved. It saves the font name if the type is set to truetype. If the type is set to bitmap, then it is not saving the font name. Does it not support using a font if the type is bitmap. Thanks Murty -------------- next part -------------- An HTML attachment was scrubbed... URL: From MMaganti at oriongis.com Fri Mar 6 12:11:58 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Fri, 6 Mar 2009 15:11:58 -0500 Subject: [mapserver-users] mapscript question Message-ID: Hi What is the best way to retrieve all records of a layer. Some options I see is 1. calling queryByRect(mapObj.extents) - But this will not get all records if map extents are smaller than layer extents 2. layer.whichShapes() - But this will apply filter set on the layer. I want to get all records. 3. call queryByAttribute() and pass some expression that will select everything Or, is there any more straight forward API to get all records. Thanks Murty -------------- next part -------------- An HTML attachment was scrubbed... URL: From jaframe at net-yan.com Sat Mar 7 04:59:25 2009 From: jaframe at net-yan.com (Tony Frame) Date: Sat, 7 Mar 2009 20:59:25 +0800 Subject: [mapserver-users] MapServer 5.4 Beta 3 is now available... References: <49B04CAE0200008F00021585@co5.dnr.state.mn.us> Message-ID: Steve, 5.4 Beta 3 works fine for me in cgi mode on Fedora 7 & 10 but the latest svn version (IDs itself as 5.5.0) generates the legend differently. In particular the key image sizes have changed and the vertical spacing between images is very small / zero - I'm pretty sure it worked ok yesterday with 5.4 Beta 3. My compile options : --with-agg --with-freetype --with-gdal --with-ogr --with-proj --with-wfs Regards Tony ----- Original Message ----- From: "Steve Lime" To: ; Sent: Friday, 06 March, 2009 12:05 PM Subject: [mapserver-users] MapServer 5.4 Beta 3 is now available... Greetings all: MapServer 5.4 Beta 3 is now available for download at http://mapserver.org/download. A small number of bugs uncovered during testing of the second beta have been fixed. The next release should be a release candidate and will be available mid-next week. As always any help in testing the software is greatly appreciated. Findings should be sent to the mapserver-dev (or even just mapserver-users) mailing list. The updated 5.4 release plan can be found at: http://trac.osgeo.org/mapserver/wiki/54ReleasePlan Steve _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From raffaele.morelli at gmail.com Sat Mar 7 05:56:37 2009 From: raffaele.morelli at gmail.com (Cassiel) Date: Sat, 7 Mar 2009 14:56:37 +0100 Subject: [mapserver-users] msWMSDispatch(): WMS server error. Incomplete WMS request: VERSION parameter missing In-Reply-To: <1236350615296-2436095.post@n2.nabble.com> References: <1236350615296-2436095.post@n2.nabble.com> Message-ID: I must say that this issue arised when I moved the website to another webserver... same OS, debian lenny, but different arch 32bit -> amd64. The 32 bit machine was hosting only one website. Te new amd64 webserver hosts two sites (name based virtual host) so the wms request is served by a virtual host (Apache 2.2), same ip address for two dns. Could it be a dns related issue? does mapserv bin complains about virtual hosts? Since I switched from the old machine to the new I can't get no wms layer with QGis even with the version request variable (it was there from the start). This is my WMS link: http://193.206.192.55/cgi-bin/rf_mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities www.catastocen.apat.it is the dns name. If you substitute the numeric address with the dns one mapserver returns a binary file... thanks for responding regards raffaele 2009/3/6 paalkr > > Hi! > > This is fixed in ticket #2528, and applied in MapServer 5.2.0. Version is a > optional parameter in the GetCapabilities request, as described in the WMS > 1.1.1 specification, chapter 7.1.2, table 4. In earlier version of > MapServer > the version parameter was treated as mandatory. > > You can resolve your issue in to different ways: > 1) Add a &version=1.1.1 to your service URL in Qgis > 2) Upgrade to MapServer 5.2.0 or later. > > Regards, > P?l Kristensen > > > Cassiel wrote: > > > > Hi you all, > > > > I am getting this error using Mapserver 5.0.3 on debian lenny when > > querying > > for WMS available layers on Qgis. > > > > Querying with iceweasel on debian works , i.e. the proper xml file is > > returned, while it does not on Mac OS X. > > > > Any hints? > > > > Regards > > Raffaele > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > -- > View this message in context: > http://n2.nabble.com/msWMSDispatch%28%29%3A-WMS-server-error.-Incomplete-WMS-request%3A-VERSION-parameter-missing-tp2435750p2436095.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 raffaele.morelli at gmail.com Sat Mar 7 06:17:02 2009 From: raffaele.morelli at gmail.com (Cassiel) Date: Sat, 7 Mar 2009 15:17:02 +0100 Subject: [mapserver-users] msWMSDispatch(): WMS server error. Incomplete WMS request: VERSION parameter missing In-Reply-To: <1236350615296-2436095.post@n2.nabble.com> References: <1236350615296-2436095.post@n2.nabble.com> Message-ID: just switched to 5.2.0... the problem still remains. I guess mapserver does not like my virtual host config. Could it be? r 2009/3/6 paalkr > > Hi! > > This is fixed in ticket #2528, and applied in MapServer 5.2.0. Version is a > optional parameter in the GetCapabilities request, as described in the WMS > 1.1.1 specification, chapter 7.1.2, table 4. In earlier version of > MapServer > the version parameter was treated as mandatory. > > You can resolve your issue in to different ways: > 1) Add a &version=1.1.1 to your service URL in Qgis > 2) Upgrade to MapServer 5.2.0 or later. > > Regards, > P?l Kristensen > > > Cassiel wrote: > > > > Hi you all, > > > > I am getting this error using Mapserver 5.0.3 on debian lenny when > > querying > > for WMS available layers on Qgis. > > > > Querying with iceweasel on debian works , i.e. the proper xml file is > > returned, while it does not on Mac OS X. > > > > Any hints? > > > > Regards > > Raffaele > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > -- > View this message in context: > http://n2.nabble.com/msWMSDispatch%28%29%3A-WMS-server-error.-Incomplete-WMS-request%3A-VERSION-parameter-missing-tp2435750p2436095.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 skiper at infojawa.org Sat Mar 7 06:31:20 2009 From: skiper at infojawa.org (Juni Adi) Date: Sat, 07 Mar 2009 21:31:20 +0700 Subject: [mapserver-users] OGR connection failure In-Reply-To: <49B176DA.7030304@infojawa.org> References: <49B0BBAB.3030208@infojawa.org> <49B14B49.4030501@pobox.com> <49B176DA.7030304@infojawa.org> Message-ID: <49B28538.9010203@infojawa.org> Hello, Are there any way to set DEBUG within GDAL/OGR? maybe during GDAL building proccess? I've only set --with-mysql and --with-xerces option. I've done ./configure -h but I think none of the options has anything to do with debugging. I'd like to have more detail error messsages from inside GDAL/OGR in addition to error message from mapserver/mapfile (DEBUG 5). Thanks Junek Juni Adi wrote: > Thanks for the prompt reply, Frank. Yes, apache has access to mysql: > > [root at xxxxxxx.org maps]# su -fm apache > bash: /root/.bashrc: Permission denied > [apache at xxxxx.org maps]$ mysql mapserver -u xxxxx -p > Enter password: > Welcome to the MySQL monitor. Commands end with ; or \g. > Your MySQL connection id is 7914 > Server version: 5.0.45 Source distribution > > Type 'help;' or '\h' for help. Type '\c' to clear the buffer. > > mysql> > > Many thanks > Junek > > Frank Warmerdam wrote: >> Juni Adi wrote: >>> Hi all, >>> >>> I've just installed mapserver with php_mapscript enabled on my >>> centos5 : >>> mapserver-5.2.1 >> >> Judi, >> >> I don't know how mysql permissions work, but I'd suggest reviewing >> whether >> the apache account has permissions to access mysql. I don't see any >> other >> obvious reason things wouldn't work assuming the same libraries are >> being >> used in both configurations. >> >> Best regards, > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From skiper at infojawa.org Sat Mar 7 06:58:29 2009 From: skiper at infojawa.org (Juni Adi) Date: Sat, 07 Mar 2009 21:58:29 +0700 Subject: [mapserver-users] OGR connection failure In-Reply-To: <49B28538.9010203@infojawa.org> References: <49B0BBAB.3030208@infojawa.org> <49B14B49.4030501@pobox.com> <49B176DA.7030304@infojawa.org> <49B28538.9010203@infojawa.org> Message-ID: <49B28B95.9070002@infojawa.org> My mistake, there is --enable-debug option. Please ignore my last post.. Junek Juni Adi wrote: > Hello, > Are there any way to set DEBUG within GDAL/OGR? maybe during GDAL > building proccess? I've only set --with-mysql and --with-xerces > option. I've done ./configure -h but I think none of the options has > anything to do with debugging. I'd like to have more detail error > messsages from inside GDAL/OGR in addition to error message from > mapserver/mapfile (DEBUG 5). > > Thanks > Junek > > Juni Adi wrote: >> Thanks for the prompt reply, Frank. Yes, apache has access to mysql: >> >> [root at xxxxxxx.org maps]# su -fm apache >> bash: /root/.bashrc: Permission denied >> [apache at xxxxx.org maps]$ mysql mapserver -u xxxxx -p >> Enter password: >> Welcome to the MySQL monitor. Commands end with ; or \g. >> Your MySQL connection id is 7914 >> Server version: 5.0.45 Source distribution >> >> Type 'help;' or '\h' for help. Type '\c' to clear the buffer. >> >> mysql> >> >> Many thanks >> Junek >> >> Frank Warmerdam wrote: >>> Juni Adi wrote: >>>> Hi all, >>>> >>>> I've just installed mapserver with php_mapscript enabled on my >>>> centos5 : >>>> mapserver-5.2.1 >>> >>> Judi, >>> >>> I don't know how mysql permissions work, but I'd suggest reviewing >>> whether >>> the apache account has permissions to access mysql. I don't see any >>> other >>> obvious reason things wouldn't work assuming the same libraries are >>> being >>> used in both configurations. >>> >>> Best regards, >> >> _______________________________________________ >> 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 szekerest at gmail.com Sat Mar 7 07:05:20 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Sat, 7 Mar 2009 16:05:20 +0100 Subject: [mapserver-users] C# mapscript question In-Reply-To: References: Message-ID: Hi, The font setting applies only to the truetype fonts as far as I know. Best regards, Tamas 2009/3/7 Murty Maganti > Hi > > > > I am setting font property at runtime using > > > > clsObj.label.font=?Times-New-Roman? > > > > This font alias is there in my fonts file. When I save the map file > (mapObj.save()), the font name is not saved. It saves the font name if the > type is set to truetype. If the type is set to bitmap, then it is not saving > the font name. > > > > Does it not support using a font if the type is bitmap. > > > > Thanks > > Murty > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Sat Mar 7 07:11:00 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Sat, 7 Mar 2009 16:11:00 +0100 Subject: [mapserver-users] mapscript question In-Reply-To: References: Message-ID: Hi, I think you'd better to use the OGR C# API (ogr_csharp.dll) to get all the features of the layer, see the ogrinfo example for the details: http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/csharp/apps/ogrinfo.cs Best regards, Tamas 2009/3/6 Murty Maganti > Hi > > > > What is the best way to retrieve all records of a layer. Some options I see > is > > > > 1. calling queryByRect(mapObj.extents) ? But this will not get all > records if map extents are smaller than layer extents > > 2. layer.whichShapes() ? But this will apply filter set on the > layer. I want to get all records. > > 3. call queryByAttribute() and pass some expression that will select > everything > > > > Or, is there any more straight forward API to get all records. > > > > Thanks > > Murty > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pal.kristensen at statkart.no Sat Mar 7 13:43:29 2009 From: pal.kristensen at statkart.no (paalkr) Date: Sat, 7 Mar 2009 13:43:29 -0800 (PST) Subject: [mapserver-users] msWMSDispatch(): WMS server error. Incomplete WMS request: VERSION parameter missing In-Reply-To: References: <1236350615296-2436095.post@n2.nabble.com> Message-ID: <1236462209682-2442129.post@n2.nabble.com> Hi! Have you set the ows_onlineresource parameter in the WEB element in the mapfile? Regards, P?l Kristensen Cassiel wrote: > > I must say that this issue arised when I moved the website to another > webserver... same OS, debian lenny, but different arch 32bit -> amd64. > The 32 bit machine was hosting only one website. > > Te new amd64 webserver hosts two sites (name based virtual host) so the > wms > request is served by a virtual host (Apache 2.2), same ip address for two > dns. Could it be a dns related issue? does mapserv bin complains about > virtual hosts? > > Since I switched from the old machine to the new I can't get no wms layer > with QGis even with the version request variable (it was there from the > start). > > This is my WMS link: > > http://193.206.192.55/cgi-bin/rf_mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > > www.catastocen.apat.it is the dns name. > > If you substitute the numeric address with the dns one mapserver returns a > binary file... > > thanks for responding > regards > > raffaele > > > > 2009/3/6 paalkr > >> >> Hi! >> >> This is fixed in ticket #2528, and applied in MapServer 5.2.0. Version is >> a >> optional parameter in the GetCapabilities request, as described in the >> WMS >> 1.1.1 specification, chapter 7.1.2, table 4. In earlier version of >> MapServer >> the version parameter was treated as mandatory. >> >> You can resolve your issue in to different ways: >> 1) Add a &version=1.1.1 to your service URL in Qgis >> 2) Upgrade to MapServer 5.2.0 or later. >> >> Regards, >> P?l Kristensen >> >> >> Cassiel wrote: >> > >> > Hi you all, >> > >> > I am getting this error using Mapserver 5.0.3 on debian lenny when >> > querying >> > for WMS available layers on Qgis. >> > >> > Querying with iceweasel on debian works , i.e. the proper xml file is >> > returned, while it does not on Mac OS X. >> > >> > Any hints? >> > >> > Regards >> > Raffaele >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > >> >> -- >> View this message in context: >> http://n2.nabble.com/msWMSDispatch%28%29%3A-WMS-server-error.-Incomplete-WMS-request%3A-VERSION-parameter-missing-tp2435750p2436095.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/msWMSDispatch%28%29%3A-WMS-server-error.-Incomplete-WMS-request%3A-VERSION-parameter-missing-tp2435750p2442129.html Sent from the Mapserver - User mailing list archive at Nabble.com. From raffaele.morelli at gmail.com Sun Mar 8 05:03:30 2009 From: raffaele.morelli at gmail.com (Cassiel) Date: Sun, 8 Mar 2009 13:03:30 +0100 Subject: [mapserver-users] msWMSDispatch(): WMS server error. Incomplete WMS request: VERSION parameter missing In-Reply-To: <1236462209682-2442129.post@n2.nabble.com> References: <1236350615296-2436095.post@n2.nabble.com> <1236462209682-2442129.post@n2.nabble.com> Message-ID: WEB TEMPLATE "map.html" IMAGEPATH "/var/www/cem/tmp/ms_tmp/" IMAGEURL "/tmp/ms_tmp/" LOG "/var/www/cem/tmp/mapserver.log" METADATA #"MAPFILE_ENCODING" "ISO-8859-1" "wms_title" "WMS CEN-RF" "wms_onlineresource" " http://193.206.192.55/cgi-bin/rf_mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities " "wms_srs" "EPSG:32632 EPSG:4269 EPSG:4326" END # Metadata END # Web Here it is one of the two wms_onlineresource links I am using two apache environment variable to point to rf_mapserv or elf_mapserv (they are symlinks to mapserv..) in order to return two different mapfile as explained in the mapserver doc. regards raffaele 2009/3/7 paalkr > > Hi! > > Have you set the ows_onlineresource parameter in the WEB element in the > mapfile? > > Regards, > P?l Kristensen > > > > Cassiel wrote: > > > > I must say that this issue arised when I moved the website to another > > webserver... same OS, debian lenny, but different arch 32bit -> amd64. > > The 32 bit machine was hosting only one website. > > > > Te new amd64 webserver hosts two sites (name based virtual host) so the > > wms > > request is served by a virtual host (Apache 2.2), same ip address for two > > dns. Could it be a dns related issue? does mapserv bin complains about > > virtual hosts? > > > > Since I switched from the old machine to the new I can't get no wms layer > > with QGis even with the version request variable (it was there from the > > start). > > > > This is my WMS link: > > > > > http://193.206.192.55/cgi-bin/rf_mapserv?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > > > > www.catastocen.apat.it is the dns name. > > > > If you substitute the numeric address with the dns one mapserver returns > a > > binary file... > > > > thanks for responding > > regards > > > > raffaele > > > > > > > > 2009/3/6 paalkr > > > >> > >> Hi! > >> > >> This is fixed in ticket #2528, and applied in MapServer 5.2.0. Version > is > >> a > >> optional parameter in the GetCapabilities request, as described in the > >> WMS > >> 1.1.1 specification, chapter 7.1.2, table 4. In earlier version of > >> MapServer > >> the version parameter was treated as mandatory. > >> > >> You can resolve your issue in to different ways: > >> 1) Add a &version=1.1.1 to your service URL in Qgis > >> 2) Upgrade to MapServer 5.2.0 or later. > >> > >> Regards, > >> P?l Kristensen > >> > >> > >> Cassiel wrote: > >> > > >> > Hi you all, > >> > > >> > I am getting this error using Mapserver 5.0.3 on debian lenny when > >> > querying > >> > for WMS available layers on Qgis. > >> > > >> > Querying with iceweasel on debian works , i.e. the proper xml file is > >> > returned, while it does not on Mac OS X. > >> > > >> > Any hints? > >> > > >> > Regards > >> > Raffaele > >> > > >> > _______________________________________________ > >> > mapserver-users mailing list > >> > mapserver-users at lists.osgeo.org > >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > >> > > >> > >> -- > >> View this message in context: > >> > http://n2.nabble.com/msWMSDispatch%28%29%3A-WMS-server-error.-Incomplete-WMS-request%3A-VERSION-parameter-missing-tp2435750p2436095.html > >> Sent from the Mapserver - User mailing list archive at Nabble.com. > >> > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > -- > View this message in context: > http://n2.nabble.com/msWMSDispatch%28%29%3A-WMS-server-error.-Incomplete-WMS-request%3A-VERSION-parameter-missing-tp2435750p2442129.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Eichner at sid.sachsen.de Mon Mar 9 00:53:58 2009 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLKM) Date: Mon, 9 Mar 2009 08:53:58 +0100 Subject: AW: [mapserver-users] msWMSDispatch(): WMS server error. Incomplete WMS request: VERSION parameter missing References: <1236350615296-2436095.post@n2.nabble.com> Message-ID: <4FBC13C3CB49244088DD095B32B5D4CD0ABE2F@KS-EVS1.smi.sachsen.de> Hi, the binary file you get using the hostname instead of the IP looks like your MapServer binary. So you have to configure Apache to serve CGI scripts for the virtual host. Maybe you have to put a "ScriptAlias" within the virtual server config... -----Urspr?ngliche Nachricht----- Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Cassiel Gesendet: Samstag, 7. M?rz 2009 15:17 An: mapserver-users at lists.osgeo.org Betreff: Re: [mapserver-users] msWMSDispatch(): WMS server error. Incomplete WMS request: VERSION parameter missing just switched to 5.2.0... the problem still remains. I guess mapserver does not like my virtual host config. Could it be? r From raffaele.morelli at gmail.com Mon Mar 9 01:42:35 2009 From: raffaele.morelli at gmail.com (Cassiel) Date: Mon, 9 Mar 2009 09:42:35 +0100 Subject: [mapserver-users] msWMSDispatch(): WMS server error. Incomplete WMS request: VERSION parameter missing In-Reply-To: <4FBC13C3CB49244088DD095B32B5D4CD0ABE2F@KS-EVS1.smi.sachsen.de> References: <1236350615296-2436095.post@n2.nabble.com> <4FBC13C3CB49244088DD095B32B5D4CD0ABE2F@KS-EVS1.smi.sachsen.de> Message-ID: That was!!!... when configuring apache I only added an "Alias" instead of "ScriptAlias" for the cgi-bin directory. Thank you so much for helping! Regards raffaele 2009/3/9 Eichner, Andreas - SID-NLKM > > Hi, > > the binary file you get using the hostname instead of the IP looks like > your MapServer binary. So you have to configure Apache to serve CGI scripts > for the virtual host. Maybe you have to put a "ScriptAlias" within the > virtual server config... > > > -----Urspr?ngliche Nachricht----- > Von: mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Cassiel > Gesendet: Samstag, 7. M?rz 2009 15:17 > An: mapserver-users at lists.osgeo.org > Betreff: Re: [mapserver-users] msWMSDispatch(): WMS server error. > Incomplete WMS request: VERSION parameter missing > > just switched to 5.2.0... the problem still remains. > > I guess mapserver does not like my virtual host config. Could it be? > > r > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mrk.leslie at gmail.com Mon Mar 9 04:39:42 2009 From: mrk.leslie at gmail.com (Mark Leslie) Date: Mon, 9 Mar 2009 22:39:42 +1100 Subject: [mapserver-users] FOSS4G 2009 Call for Abstracts Message-ID: <49B4FFFE.3060008@gmail.com> The Organising Committee would like to welcome all interested participants to submit abstracts for presentations for the Free and Open Source Software for Geospatial conference (FOSS4G), being held in Sydney, Australia October 20-23. FOSS4G offers participants an opportunity to learn from and share your knowledge, experience and ideas with a group of like minded individuals representing a wide array of industries, governments, technologies and nationalities. Presentations are open to all those interested and will comprise a 30 minute slot which includes hand-over, introductions and 5 minutes for questions. Presentations will be selected which have a strong "Open Geospatial" theme to them. The committee is looking for a mixture of technical and non-technical presentations. In deference to the conference theme of ?User Driven,? topics of particular interest are: * Case Studies: Share your experiences implementing and using open source geospatial. What problems were you attempting to solve? How successful were you and at what cost? What can others learn from your experience? * Business Case: Have you had to sell the Open Source concept within your organisation? How did you present the concept to management? How did you present the cost/benefit scenarios and build the business case? What hurdles did you encounter and how did you surmount them? * Collaboration: Have you faced the trials of collaboration between organisations, remote offices or team members scattered to the far corners of the globe? What steps have you taken to improve the efficiency of your collaboration: open or de facto standards, decentralised data collection, or the myriad of solutions that only you could describe? * Security: Securing you data while ensuring ease of access to those select few within your inner circle can be a daunting task. Share you successes, and your failures, with others facing their own security issues. * Developments: Have you created a shiny new widget that is about to change the world? Or has your time-honoured project finally completed a much requested feature or two? Bring us up to date with the new developments in your open source geospatial software products with all the latest buzz: what does it do, how are people using it and what is in store for the next year. For more information, visit the FOSS4G site at http://2009.foss4g.org/presentations/ The deadline for presentation submissions is June 1st 2009. See you in Sydney. [edit] FOSS4G 2009 Highlights The Climate Challenge Integration Plugfest (CCIP): FOSS4G will launch the OGC's Climate Challenge Integration Plugfest (CCIP), which demonstrates standards based interoperability between Open Source and Proprietary geospatial applications. It consists of a server with multiple virtual machines, each installed with geospatial applications offering standards based web services. All web services will demonstrate a common dataset, and will be accessed by a range of geospatial client applications installed on client computers. http://external.opengis.org/twiki_public/bin/view/ClimateChallenge2009/WebHome Presenters are encouraged (but not mandated) to make use of scenarios and on-site data from the Climate Challenge Integration Plugfest (CCIP). This is especially important as demand for access to data over the internet is expected to be high, and Australia has notoriously slow connections to the outside world. FOSS4G Live DVD: LiveDVDs, based on the Xubuntu operating system and including Geospatial Open Source Software, will be given to all delegates. Users can boot a Live DVD on their computer and trial the software without installing or effecting the existing system. http://wiki.osgeo.org/wiki/Live_GIS_Disc Installfest: The Installfest will give delegates the opportunity to meet in a common area and install a wide variety of FOSS software on their laptops, EE PC or any other system they care to bring in. Community members will be around to assist with any troubles and provide help and insight into the software. The install fest will take place after workshops on the first day. Workshops and Tutorials: Workshops and Tutorials allow presenters to lead attendees through applications, integration solutions, or other topics in an interactive environment. Half-day workshops (3 hours) will be held in computer rooms on the first day. Tutorials (90 minutes) will be held in standard presentation rooms, run concurrently with presentations during the third and fourth days. Presentations: The meat of the conference are it's presentations. Drawing on a huge community of local, regional and international experts we will discuss some of the most current and poignant topics in the industry today. Demo Theatre: During lunch and coffee breaks the demonstration theatre will be showcasing live software. These short demonstrations from sponsors, open source projects and the user community show what is possible with open source today. Birds of a Feather: Rooms have been set aside for semi-organised meetings between like minded groups. Some prominant community initiatives started in prior FOSS4G Birds of a Feather sessions. Code Sprint: The weekend after FOSS4G is reserved for the Hackers' Code Sprint. Hackers will be locked in a basement with lots of bandwidth, pizzas and coke. (Well, maybe something better than that, but we don't want to spoil the mystical hacker image by describing it any differently.) [edit] Upcoming milestones * 9 Mar 2009, Call for Abstracts opens * 30 Mar 2009, Notification of acceptance for workshops/tutorials * 13 Apr 2009, Registration for conference and workshops opens * 1 Jun 2009, Abstract submission deadline * 13 Jul 2009, Presenters notified of acceptance for talks * 31 Jul 2009, Author/Early registration deadline * 14 Sep 2009, Completed program available on the wiki * 20 Oct 2009, FOSS4G Workshop * 21-23 Oct 2009, FOSS4G Presentations and Tutorials * 24-25 Oct 2009, FOSS4G Code Sprint [edit] Media Sponsors * Position Magazine: http://www.positionmag.com.au * Geoconnexions Magazine: http://www.geoconnexion.com/ For information about this announcement, contact: FOSS4G Organising Committee: http://wiki.osgeo.org/wiki/FOSS4G_2009#Contact_Us or, Cameron Shorter, Chair of the FOSS4G Organising Committee and Geospatial Systems Architect at LISAsoft tel +61-8570-5050 From bthoen at gisnet.com Mon Mar 9 07:12:21 2009 From: bthoen at gisnet.com (Bill Thoen) Date: Mon, 09 Mar 2009 07:12:21 -0700 Subject: [mapserver-users] Change Background Image Color Dynamically Message-ID: <49B523C5.6090707@gisnet.com> I've got a layer of USGS DRG's where I set the OFFSITE parameter to black to hide the excess bitmap at the edges of the DRGs. But this also makes black lines , text and other black graphic elements IN the map as transparent, washing them out. So I set IMAGECOLOR to black to sharpen them up. However, at scales beyond those appropriate for the DRGs I want to set the background color back to white. So is there some way that I can either use a black background only when the DRG layer is visible, or dynamically change the background color as the map scale changes? TIA, - Bill Thoen -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Mon Mar 9 06:33:43 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Mon, 9 Mar 2009 08:33:43 -0500 Subject: [mapserver-users] Change Background Image Color Dynamically In-Reply-To: <49B523C5.6090707@gisnet.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA27B@s-sp22.pca.state.mn.us> BIll, By adding '&map.imagecolor=255+255+255' to your URL string, you will change the background color to white. At least for MapServer versions of 5.2 or greater. The trick will just be to keep track of the map scale in your client and add the imagecolor substitution at the appropriate scales. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bill Thoen Sent: Monday, March 09, 2009 9:12 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Change Background Image Color Dynamically I've got a layer of USGS DRG's where I set the OFFSITE parameter to black to hide the excess bitmap at the edges of the DRGs. But this also makes black lines , text and other black graphic elements IN the map as transparent, washing them out. So I set IMAGECOLOR to black to sharpen them up. However, at scales beyond those appropriate for the DRGs I want to set the background color back to white. So is there some way that I can either use a black background only when the DRG layer is visible, or dynamically change the background color as the map scale changes? TIA, - Bill Thoen -------------- next part -------------- An HTML attachment was scrubbed... URL: From pauljame at gmail.com Mon Mar 9 10:41:51 2009 From: pauljame at gmail.com (Paul james) Date: Mon, 9 Mar 2009 14:41:51 -0300 Subject: [mapserver-users] WMS Google Layer ! Message-ID: <33fad6880903091041m7ce048cfr193a698cf1fc03e0@mail.gmail.com> Hello guys... I?m trying to add a Google Maps WMS layer on mapserver... Without sucess ... If someone could help me on that, It will be great ! Thanks... -------------- next part -------------- An HTML attachment was scrubbed... URL: From g.zambotti at gmail.com Mon Mar 9 11:20:33 2009 From: g.zambotti at gmail.com (Giovanni Zambotti) Date: Mon, 9 Mar 2009 14:20:33 -0400 Subject: [mapserver-users] WMS Google Layer ! In-Reply-To: <33fad6880903091041m7ce048cfr193a698cf1fc03e0@mail.gmail.com> References: <33fad6880903091041m7ce048cfr193a698cf1fc03e0@mail.gmail.com> Message-ID: <1fc4236e0903091120o67aa2af9tbad7228b79e51e06@mail.gmail.com> check this out http://roadlessland.org/notes/wms-shapefile-example.html best, Giovanni On Mon, Mar 9, 2009 at 1:41 PM, Paul james wrote: > Hello guys... > I?m trying to add a Google Maps WMS layer on mapserver... Without sucess > ... > If someone could help me on that, It will be great ! > > Thanks... > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Giovanni Zambotti 34 Prince st, Cambridge MA 02139 USA Phone: (617) 492 - 0359 -------------- next part -------------- An HTML attachment was scrubbed... URL: From skgstyle at yahoo.com Mon Mar 9 11:15:15 2009 From: skgstyle at yahoo.com (Sean Grimland) Date: Mon, 9 Mar 2009 11:15:15 -0700 (PDT) Subject: [mapserver-users] WMS Google Layer ! Message-ID: <629675.13171.qm@web31007.mail.mud.yahoo.com> I don' t think Google offers WMS. Sean --- On Mon, 3/9/09, Paul james wrote: From: Paul james Subject: [mapserver-users] WMS Google Layer ! To: mapserver-users at lists.osgeo.org Date: Monday, March 9, 2009, 1:41 PM Hello guys... I?m trying to add a Google Maps WMS layer on mapserver... Without sucess ... If someone could help me on that, It will be great ! Thanks... -----Inline Attachment Follows----- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlacroix at mapgears.com Mon Mar 9 11:13:48 2009 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Mon, 09 Mar 2009 14:13:48 -0400 Subject: [mapserver-users] WMS Google Layer ! In-Reply-To: <33fad6880903091041m7ce048cfr193a698cf1fc03e0@mail.gmail.com> References: <33fad6880903091041m7ce048cfr193a698cf1fc03e0@mail.gmail.com> Message-ID: <49B55C5C.2050308@mapgears.com> Hi, Someone correct me if I'm wrong. Google Maps licence doesn't allow you to use it outside the Google Maps API. So you are not allowed to use it as a WMS server in MapServer. You have to use an application that use the API like OpenLayers. Julien Paul james wrote: > Hello guys... > I?m trying to add a Google Maps WMS layer on mapserver... Without sucess ... > If someone could help me on that, It will be great ! > > Thanks... > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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 bartvde at osgis.nl Mon Mar 9 11:49:08 2009 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Mon, 09 Mar 2009 19:49:08 +0100 Subject: [mapserver-users] out of scale layers and WMS GetFeatureInfo Message-ID: <49B564A4.7020604@osgis.nl> Hi list, currently, if a layer is out of scale and someone issues a WMS GetFeatureInfo request, Mapserver will return feature info anyway. To me this seemed like a bug (unwanted behaviour), but I just wanted to check whether anyone is using this as a feature. Is anyone using this behaviour of Mapserver in ways that I can't think of right now? If so, please speak up. TIA. See also [1] for more info. Best regards, Bart [1] http://trac.osgeo.org/mapserver/ticket/842 -- Bart van den Eijnden OSGIS, Open Source GIS bartvde at osgis.nl http://www.osgis.nl From temiz at deprem.gov.tr Tue Mar 10 02:54:25 2009 From: temiz at deprem.gov.tr (Ahmet Temiz) Date: Tue, 10 Mar 2009 11:54:25 +0200 Subject: [mapserver-users] couldn't overcome a problem about rectObj & zoomRectangle Message-ID: <20090310095350.M48227@deprem.gov.tr> hello I couldn't overcome a problem about rectObj & zoomRectangle in java-mapscript here is the code and results concerning the problem: #width :46.0 height: 48.0 //dimensions of rubberband rectObj imgrect= new rectObj(minx,maxy-h,minx+w,maxy, mapscript.MS_FALSE); #System.out.println("imgrect.toString() "+imgrect.toString()); # imgrect.toString() { 'minx': 440 , 'miny': 123 , 'maxx': 486 , 'maxy': 171 } map0.zoomRectangle(imgrect,map0.getWidth(),map0.getHeight(),map0.getExtent(), null); ... java.lang.UnknownError: mapscript::mapObj::zoomRectangle(): General error message. image rectangle maxy >= miny When I change the places of miny and maxy, it gives invalid rectangle error. I will appreciate if you tell me the possible reasons of this error regards -- Open WebMail Project (http://openwebmail.org) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From manojkapil06 at gmail.com Tue Mar 10 03:30:20 2009 From: manojkapil06 at gmail.com (kapil manoj) Date: Tue, 10 Mar 2009 16:00:20 +0530 Subject: [mapserver-users] PHP - configuring error with mapserver- 5.0.3 Message-ID: <7afcc95f0903100330q392e6182t344c00cece8bf081@mail.gmail.com> hi all, i am a new user , i am using mapserver 5.0.3 on fedora 9... i am struggling in installation as well as configuration part of mapserver in my box. well, come to the point i am trying to configure php with mapserver , but configuration error occured while configuring. I have installed php-5.2.6 through *yum install* in my system. The following is the configuration error ug 458 or Apache bug 22030). Compiling with fast MS_NINT checking compiler warnings... basic configure: checking whether we should enable debug features... Enabling debug features: -g in CFLAGS. *configure: checking for PHP/MapScript module options...* *configure: error: Missing or invalid PHP source directory in --with-php=DIR.* >From the error message it is clearly evident that i gave invalid source directory, but the following are the php source directories found in my system /etc/php.d /etc/php.ini /etc/httpd/conf.d/php.conf /etc/php.d/dbase.ini /etc/php.d/error_log /etc/php.d/gd.ini /etc/php.d/json.ini /etc/php.d/mapserver.ini /etc/php.d/mysql.ini /etc/php.d/mysqli.ini /etc/php.d/pdo.ini /etc/php.d/pdo_mysql.ini /etc/php.d/pdo_pgsql.ini /etc/php.d/pdo_sqlite.ini /etc/php.d/pgsql.ini /etc/php.d/zip.ini */usr/bin/php* /usr/bin/php-cgi */usr/lib/php* /usr/lib/httpd/modules/libphp5.so /usr/lib/php/modules /usr/lib/php/pear /usr/lib/php/modules/dbase.so /usr/lib/php/modules/gd.so /usr/lib/php/modules/json.so /usr/lib/php/modules/mysql.so /usr/lib/php/modules/mysqli.so /usr/lib/php/modules/pdo.so /usr/lib/php/modules/pdo_mysql.so /usr/lib/php/modules/pdo_pgsql.so /usr/lib/php/modules/pdo_sqlite.so /usr/lib/php/modules/pgsql.so /usr/lib/php/modules/php_mapscript.so /usr/lib/php/modules/phpcups.so /usr/lib/php/modules/zip.so */usr/share/php* /usr/share/doc/php-cli-5.2.6 /usr/share/doc/php-common-5.2.6 /usr/share/doc/php-mapserver-5.0.3 /usr/share/doc/php-cli-5.2.6/README /usr/share/doc/php-cli-5.2.6/README.FastCGI /usr/share/doc/php-common-5.2.6/CODING_STANDARDS /usr/share/doc/php-common-5.2.6/CREDITS /usr/share/doc/php-common-5.2.6/EXTENSIONS /usr/share/doc/php-common-5.2.6/INSTALL /usr/share/doc/php-common-5.2.6/LICENSE /usr/share/doc/php-common-5.2.6/NEWS /usr/share/doc/php-common-5.2.6/README.EXTENSIONS /usr/share/doc/php-common-5.2.6/README.EXT_SKEL /usr/share/doc/php-common-5.2.6/README.PARAMETER_PARSING_API /usr/share/doc/php-common-5.2.6/README.PHP4-TO-PHP5-THIN-CHANGES /usr/share/doc/php-common-5.2.6/README.SELF-CONTAINED-EXTENSIONS /usr/share/doc/php-common-5.2.6/README.STREAMS /usr/share/doc/php-common-5.2.6/README.SUBMITTING_PATCH /usr/share/doc/php-common-5.2.6/README.TESTING /usr/share/doc/php-common-5.2.6/README.TESTING2 /usr/share/doc/php-common-5.2.6/README.UNIX-BUILD-SYSTEM /usr/share/doc/php-common-5.2.6/README.UPDATE_5_2 /usr/share/doc/php-common-5.2.6/README.WIN32-BUILD-SYSTEM /usr/share/doc/php-common-5.2.6/README.input_filter /usr/share/doc/php-common-5.2.6/TSRM_LICENSE /usr/share/doc/php-common-5.2.6/ZEND_CHANGES /usr/share/doc/php-common-5.2.6/ZEND_LICENSE /usr/share/doc/php-common-5.2.6/gd_README /usr/share/doc/php-common-5.2.6/regex_COPYRIGHT */var/lib/php* /var/lib/php/session I tested with all the source directories that i have in my system, but the error still remains. i have installed php through YUM INSTALL way , that is a precompiled binaries not an source package.. May be that could be a reason to cause this error.. i am not sure.... so what could be a problem .... please somebody help me... regards zizu -------------- next part -------------- An HTML attachment was scrubbed... URL: From no-reply at neogeo-online.net Tue Mar 10 03:35:44 2009 From: no-reply at neogeo-online.net (Guillaume Sueur) Date: Tue, 10 Mar 2009 11:35:44 +0100 Subject: [mapserver-users] PHP - configuring error with mapserver- 5.0.3 In-Reply-To: <7afcc95f0903100330q392e6182t344c00cece8bf081@mail.gmail.com> References: <7afcc95f0903100330q392e6182t344c00cece8bf081@mail.gmail.com> Message-ID: <49B64280.70007@neogeo-online.net> Hi You probably need the packages which will include the php headers needed by mapserver compilation. Sorry, I don't know this package name for Fedora. Regards, Guillaume kapil manoj a ?crit : > hi all, > > i am a new user , i am using mapserver 5.0.3 on fedora 9... i am > struggling in installation as well as configuration part of mapserver > in my box. well, come to the point i am trying to configure php with > mapserver , but configuration error occured while configuring. I have > installed php-5.2.6 through *yum install* in my system. > > The following is the configuration error > > ug 458 or Apache bug 22030). > Compiling with fast MS_NINT > checking compiler warnings... basic > configure: checking whether we should enable debug features... > Enabling debug features: -g in CFLAGS. > *configure: checking for PHP/MapScript module options...* > *configure: error: Missing or invalid PHP source directory in > --with-php=DIR.* > > From the error message it is clearly evident that i gave invalid source > directory, but the following are the php source directories found in my > system > > /etc/php.d > /etc/php.ini > /etc/httpd/conf.d/php.conf > /etc/php.d/dbase.ini > /etc/php.d/error_log > /etc/php.d/gd.ini > /etc/php.d/json.ini > /etc/php.d/mapserver.ini > /etc/php.d/mysql.ini > /etc/php.d/mysqli.ini > /etc/php.d/pdo.ini > /etc/php.d/pdo_mysql.ini > /etc/php.d/pdo_pgsql.ini > /etc/php.d/pdo_sqlite.ini > /etc/php.d/pgsql.ini > /etc/php.d/zip.ini > */usr/bin/php* > /usr/bin/php-cgi > */usr/lib/php* > /usr/lib/httpd/modules/ > libphp5.so > /usr/lib/php/modules > /usr/lib/php/pear > /usr/lib/php/modules/dbase.so > /usr/lib/php/modules/gd.so > /usr/lib/php/modules/json.so > /usr/lib/php/modules/mysql.so > /usr/lib/php/modules/mysqli.so > /usr/lib/php/modules/pdo.so > /usr/lib/php/modules/pdo_mysql.so > /usr/lib/php/modules/pdo_pgsql.so > /usr/lib/php/modules/pdo_sqlite.so > /usr/lib/php/modules/pgsql.so > /usr/lib/php/modules/php_mapscript.so > /usr/lib/php/modules/phpcups.so > /usr/lib/php/modules/zip.so > */usr/share/php* > /usr/share/doc/php-cli-5.2.6 > /usr/share/doc/php-common-5.2.6 > /usr/share/doc/php-mapserver-5.0.3 > /usr/share/doc/php-cli-5.2.6/README > /usr/share/doc/php-cli-5.2.6/README.FastCGI > /usr/share/doc/php-common-5.2.6/CODING_STANDARDS > /usr/share/doc/php-common-5.2.6/CREDITS > /usr/share/doc/php-common-5.2.6/EXTENSIONS > /usr/share/doc/php-common-5.2.6/INSTALL > /usr/share/doc/php-common-5.2.6/LICENSE > /usr/share/doc/php-common-5.2.6/NEWS > /usr/share/doc/php-common-5.2.6/README.EXTENSIONS > /usr/share/doc/php-common-5.2.6/README.EXT_SKEL > /usr/share/doc/php-common-5.2.6/README.PARAMETER_PARSING_API > /usr/share/doc/php-common-5.2.6/README.PHP4-TO-PHP5-THIN-CHANGES > /usr/share/doc/php-common-5.2.6/README.SELF-CONTAINED-EXTENSIONS > /usr/share/doc/php-common-5.2.6/README.STREAMS > /usr/share/doc/php-common-5.2.6/README.SUBMITTING_PATCH > /usr/share/doc/php-common-5.2.6/README.TESTING > /usr/share/doc/php-common-5.2.6/README.TESTING2 > /usr/share/doc/php-common-5.2.6/README.UNIX-BUILD-SYSTEM > /usr/share/doc/php-common-5.2.6/README.UPDATE_5_2 > /usr/share/doc/php-common-5.2.6/README.WIN32-BUILD-SYSTEM > /usr/share/doc/php-common-5.2.6/README.input_filter > /usr/share/doc/php-common-5.2.6/TSRM_LICENSE > /usr/share/doc/php-common-5.2.6/ZEND_CHANGES > /usr/share/doc/php-common-5.2.6/ZEND_LICENSE > /usr/share/doc/php-common-5.2.6/gd_README > /usr/share/doc/php-common-5.2.6/regex_COPYRIGHT > */var/lib/php* > /var/lib/php/session > > > I tested with all the source directories that i have in my system, but > the error still remains. i have installed php through YUM INSTALL way , > that is a precompiled binaries not an source package.. May be that > could be a reason to cause this error.. i am not sure.... > > so what could be a problem .... please somebody help me... > > regards > zizu > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From damarmo at gmail.com Tue Mar 10 05:21:09 2009 From: damarmo at gmail.com (David Martinez Morata) Date: Tue, 10 Mar 2009 13:21:09 +0100 Subject: [mapserver-users] [Expresion] Problem with expresion Message-ID: <9771eb540903100521r44a4d6e4ne7ddb75c51f29e05@mail.gmail.com> Hello I define in my map file one layer like: LAYER NAME "POP Neuf Telecom" TYPE POINT DATA "ldnc_w84_05keu_sites_heberge.shp" METADATA "wms_title" "POP Neuf Telecom" "wms_srs" "EPSG:4326" "wms_feature_info_mime_type""text/html" "wms_include_items" "all" END STATUS ON MAXSCALE 1000000 # TRANSPARENCY 100 PROJECTION "init=epsg:4326" END CLASSITEM "LEGENDE" CLASS NAME "POP Neuf Telecom" EXPRESSION ("NetCenter" OR "POP LDCom") STYLE SYMBOL "CIRCLE" SIZE 10 OUTLINECOLOR 255 255 255 COLOR 0 197 255 END END END But I don't find my Points! I have a string value in my CLASSITEM "LEGENDE" And the values I try to see are: "NetCCenter" and "POP LDCom" Can anyone help me? -- Martinez Morata David Thinking GIS -------------- next part -------------- An HTML attachment was scrubbed... URL: From pgiannini at bytewise.it Tue Mar 10 09:27:05 2009 From: pgiannini at bytewise.it (Pietro Giannini) Date: Tue, 10 Mar 2009 17:27:05 +0100 Subject: [mapserver-users] [Expresion] Problem with expresion In-Reply-To: <9771eb540903100521r44a4d6e4ne7ddb75c51f29e05@mail.gmail.com> References: <9771eb540903100521r44a4d6e4ne7ddb75c51f29e05@mail.gmail.com> Message-ID: <49B694D9.3030309@bytewise.it> Hi David, the EXPRESSION should be : EXPRESSION ("[LEGENDE]" = "NetCenter" OR "[LEGENDE]" = "POP LDCom") ciao ...........pg David Martinez Morata ha scritto: > Hello > > I define in my map file one layer like: > > LAYER > NAME "POP Neuf Telecom" > TYPE POINT > DATA "ldnc_w84_05keu_sites_heberge.shp" > METADATA > "wms_title" "POP Neuf Telecom" > "wms_srs" "EPSG:4326" > "wms_feature_info_mime_type""text/html" > "wms_include_items" "all" > END > STATUS ON > MAXSCALE 1000000 > # TRANSPARENCY 100 > PROJECTION > "init=epsg:4326" > END > CLASSITEM "LEGENDE" > CLASS > NAME "POP Neuf Telecom" > EXPRESSION ("NetCenter" OR "POP LDCom") > > STYLE > SYMBOL "CIRCLE" > SIZE 10 > OUTLINECOLOR 255 255 255 > COLOR 0 197 255 > END > END > END > > But I don't find my Points! > I have a string value in my CLASSITEM "LEGENDE" > > And the values I try to see are: > > "NetCCenter" and "POP LDCom" > Can anyone help me? > -- > Martinez Morata David > Thinking GIS > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E -------------- next part -------------- An HTML attachment was scrubbed... URL: From MMaganti at oriongis.com Tue Mar 10 09:51:58 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Tue, 10 Mar 2009 12:51:58 -0400 Subject: [mapserver-users] Encoding issues In-Reply-To: References: Message-ID: Hi As per the code documentation in the method msGetEncodedString (as shown below), the characters are assumed to be UTF-8 by default. char *msGetEncodedString(const char *string, const char *encoding) { --- if (len == 0 || (encoding && strcasecmp(encoding, "UTF-8")==0)) return strdup(string); /* Nothing to do: string already in UTF-8 */ Where as in the ?values? property of shapeObj.cs in C#, it is using System.Runtime.InteropServices.Marshal.PtrToStringAnsi (to marshal characters from c to c#). Shoudn?t it be using System.Runtime.InteropServices.Marshal.PtrToStringUni method since as the charcters are by default held in UTF-8 encoding? Thanks Murty From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Wednesday, March 04, 2009 5:25 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Encoding issues Hi, I don't know much about the hindi character sets. I guess you could extent that byte array to string copy function with arbitrary character sizes, like for double bytes something like: for (int i = 0; i < bytes.Length; i=i+2) s.Append(Convert.ToChar(bytes[i] + 256*bytes[i+1])); Best regards, Tamas 2009/3/4 Murty Maganti Hi Tamas This is still not working for some of the Asian languages. I suspect the issue could be in this line of your sample code below s.Append(Convert.ToChar(bytes[i])); Here, one single byte is used to convert to a character. But my understanding is that UTF-8 can consume from 1 to 4 bytes to represent one character code point. It worked fine for Arabic may be because all Arabic characters can be represented using a single byte. When I tried the same code below with Hindi, an Indian language, some of the characters are shown junk (but not all characters). I guess those characters which occupy more than a byte turned out to be junk. I am also trying the opposite of the sample code below i.e. read a field value from map server (shapeObj.values), which is in Hindi, and show on a web page, again it turns out to be junk. I tried to look at the byte values of the string in VS by using Byte[] bites = Encoding.Unicode.GetBytes(shapeObj.values[0]) I notice that they are actually code point of UTF-8 but interpreted as UTF-16 and may be the reason I see junk characters on web page. But I don?t know how to extract those UTF-8 byte values from UTF-16. I am just giving sample code here to explain byte[] utf16 = Encoding.Unicode.GetBytes("?????"); //The text is in Hindi, an Indian language byte[] utf8 = Encoding.UTF8.GetBytes("?????"); shapeObj shape = layer.getFeature(result.shapeindex, result.tileindex); string value = shape.values[1]; //This contains the same text (in Hindi) as above in the shape file. byte[] bytes = Encoding.Unicode.GetBytes(value); //There are byte values of characters decoded from UTF-16. .Net internally stores all strings in UTF-16 Now if I examine the values of ?utf8? and ?bytes? arrays utf8 ? 224,164,149,224,165,128,224,164,154,224,164,168,224,164,176 bytes ? 224,0,164,0,34,32,224,0,165,0,172,32,224,0,164,0,97,1,224,0,164,0,168,0,224,0,164,0,176,0 utf16 ? 21,9,64,9,26,9,40,9,48,9 The first byte value is same as UTF-8. Second byte value is 0 as UTF-16 takes atleast 2 bytes for a character. This gives me impression that the byte values are in UTF-8 and are not converted to UTF-16 to by .Net. Appreciate if you see any solution for this and let me know. Thanks Murty From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Friday, February 06, 2009 6:59 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Encoding issues You might have to make explicit conversion maually something like: string value = "???????????????"; //I actually get this (in arabic) through user input byte[] bytes = Encoding.Convert(Encoding.Unicode, Encoding.GetEncoding(1256), Encoding.Unicode.GetBytes(value)); StringBuilder s = new StringBuilder(); for (int i = 0; i < bytes.Length; i++) s.Append(Convert.ToChar(bytes[i])); shpObj.text = s.ToString(); Best regards, Tamas 2009/2/6 Murty Maganti HI I am doing a simple thing. I have a map file and trying to show some static text in Arabic on map. You can try this with any map file as it is nothing to do with layers from map. At run time (like on a button click), please add this layerObj lyr = new layerObj(mapObj); lyr.name = "TextAcetate"; lyr.status = mapscript.MS_ON; lyr.type = MS_LAYER_TYPE.MS_LAYER_ANNOTATION; lyr.labelcache = mapscript.MS_TRUE; double locationX = 50; double locationY = 50; lyr.transform = (int)mapscript.MS_FALSE; classObj layerClass = new classObj(lyr); //All label properties layerClass.label.size = 15; layerClass.label.type = MS_FONT_TYPE.MS_TRUETYPE; ? ? layerClass.label.encoding = "CP1256"; shapeObj shpObj = new shapeObj((int)MS_SHAPE_TYPE.MS_SHAPE_POINT); lineObj lnObj = new lineObj(); pointObj pt = new pointObj(locationX, locationY, 0, 0); lnObj.add(pt); shpObj.add(lnObj); shpObj.text = "???????????????"; //I actually get this (in arabic) through user input lyr.addFeature(shpObj); mapObj.draw(); //Onto a picture box or save as file (In the map file, my output format is set to GD/PNG) Please let me know if you need more information. Thanks Murty From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Tamas Szekeres Sent: Friday, February 06, 2009 4:12 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Encoding issues Please send me your example so that I could examine what's going on. Best regards, Tamas 2009/2/6 Murty Maganti Hi I tried with the suggested encoding but still no success. From the output below, I guess ICONV support is included. E:\Utils\MapServer\Map Server 5.2 RC\ms4w\Apache\cgi-bin>mapserv -v MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICO NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUP PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Where can get some details on how to build the C# mapscript (Managed assembly only) from Visual Studio, keeping all unmanaged dlls from binaries from ms4w. I just want to give a try using MarshalAsAttribute. Thanks Murty From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Friday, February 06, 2009 3:02 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Encoding issues Hi, You might want to try with encoding="ISO-8859-6" assuming you have libiconv compiled in. The c# mapscript doesn't specify explicit conversion during the marshaling. In this case I assume an unicode to Charset.Ansi conversion will automatically takes place by default. Best regards, Tamas 2009/2/6 Murty Maganti Hello I am having some issues using Arabic text as labels. I am using C# map script. I am setting the following at runtime labelObj label = classObj.label; label.encoding = "CP1256"; label.text = "some text in Arabic"; (At rune time in VS, I can see the text is actually in Arabic) But labels are displayed as '?????'. Is there any conversion I need to do before setting the text value. How are the string represented in the underlying mapscript dll (ASCII or Unicode?). As I was reading in the MSDN, the default marshalling uses LPStr which is a single byte of ASCII. Does it mean that first I need to convert from Unicode to ASCII in C# before setting the value. Appreciate any help. Thanks Murty _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From ruijgomes at gmail.com Tue Mar 10 18:11:29 2009 From: ruijgomes at gmail.com (Rui Gomes) Date: Wed, 11 Mar 2009 01:11:29 +0000 Subject: [mapserver-users] Using a mapserv wrapper script to handle libraries Message-ID: <31e2f7000903101811g2a521e57v99c9e1341834eb6f@mail.gmail.com> Hi... I have a problem with the libraries to use mapserver in a real server. And i find this in the web: > - upload mapserv executable and all the shared libraries somewhere. > - upload proj.4 support files (like epsg init file) somewhere > - create a mapserv wrapper script in the cgi-bin directory which sets > environment variables pointing to various things and then executes > the real mapserv binary. Environment variables would include: > LD_LIBRARY_PATH: needs to point to directory with all the .so files. > PROJ_LIB: needs to point to directory with the proj support files. > > You should not need to alter the Apache configuration. The key is getting > the required files uploaded, and the wrapper script pointing to them. Is this real possible? Where i can find a list of all the lib needed? Thanks -- Rui Gomes From ryan.terpstra at gmail.com Tue Mar 10 19:25:05 2009 From: ryan.terpstra at gmail.com (indieaz) Date: Tue, 10 Mar 2009 19:25:05 -0700 (PDT) Subject: [mapserver-users] Drawing a simple filled polygon with PHP/mapscript Message-ID: <1236738305833-2459355.post@n2.nabble.com> Been doing a lot of tinkering, have been plotting points on maps with variety of shapes from database sources etc. However, I'm now against what I believe should be an extremely simple problem. I have a set of coordinates (max lat/long and min lat/long) that make up a rectangle I need to plot onto my map. I'm pulling my hair out...I get a .png image out, but it's empty. Here's an example of the code I'm trying to use: $map = ms_newMapObj(); $layer = ms_newLayerObj($map); $polygon= ms_newShapeObj(MS_SHAPE_POLYGON); $polyLine = ms_newLineObj(); $polyLine->addXY(60,60); $polyLine->addXY(75,60); $polyLine->addXY(75,75); $polyLine->addXY(60,75); $polyLine->addXY(60,60); $polygon->add($polyLine); $Class = ms_newClassObj($layer); $Class->set( "name","MyClass"); // Create a style object defining how to draw features $lineStyle = ms_newStyleObj($Class); $lineStyle->color->setRGB(255,255,0); and my .map file: MAP STATUS ON SIZE 600 400 IMAGECOLOR 255 255 255 IMAGETYPE PNG extent -180 -90 180 90 PROJECTION "init=epsg:4326" END END -- View this message in context: http://n2.nabble.com/Drawing-a-simple-filled-polygon-with-PHP-mapscript-tp2459355p2459355.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nagal005 at umn.edu Tue Mar 10 22:11:06 2009 From: nagal005 at umn.edu (new2ms4w) Date: Tue, 10 Mar 2009 22:11:06 -0700 (PDT) Subject: [mapserver-users] display road data properly Message-ID: <1236748266666-2459780.post@n2.nabble.com> Hi All, I'm using road data from the US census bureau website to display the maps and keep the moving objects on them. It basically shows up as follows. http://n2.nabble.com/file/n2459780/badroad1.jpg What should I do to display the road data in a professional way like this: http://n2.nabble.com/file/n2459780/agg_test2.png Can someone give me some advice. I want the road data to be shown more realistically like in google maps/yahoo maps. Thank you for your time. -pn P.S. I found the second image in an old post here. http://n2.nabble.com/Google-ish-cartography.-td1994879.html -- View this message in context: http://n2.nabble.com/display-road-data-properly-tp2459780p2459780.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bob.b at gritechnologies.com Tue Mar 10 22:30:36 2009 From: bob.b at gritechnologies.com (Bob Basques) Date: Wed, 11 Mar 2009 00:30:36 -0500 Subject: [mapserver-users] display road data properly In-Reply-To: <1236748266666-2459780.post@n2.nabble.com> References: <1236748266666-2459780.post@n2.nabble.com> Message-ID: <49B74C7C.3060907@gritechnologies.com> pn, I'm the poster of the image you found. It uses a fairly complex mapfile that I put together last year.. There is a copy of the mapfile that produced that output included in this PDF: http://download.osgeo.org/mapserver/docs/mapserver-users-manual.pdf The Mapfile wasn't built against the Census dataset however, so you'll need to map the correct Census attributes to each of the Mapfile layers. The Mapfile is documented fairly well, but could use some additional commenting. I would be interested in a version that uses the Census datasets if/when you get something working. Also not, that the Mapfile above was set up for a metro area, not a state or national level of zoom, so the longer range scales are not included in it. There are also some tricks at the end of the file for generating the Legends. Have fun. bobb new2ms4w wrote: > Hi All, > > I'm using road data from the US census bureau website to display the maps > and keep the moving objects on them. It basically shows up as follows. > > http://n2.nabble.com/file/n2459780/badroad1.jpg > > > What should I do to display the road data in a professional way like this: > > http://n2.nabble.com/file/n2459780/agg_test2.png > > > Can someone give me some advice. I want the road data to be shown more > realistically like in google maps/yahoo maps. > > Thank you for your time. > -pn > > > P.S. I found the second image in an old post here. > http://n2.nabble.com/Google-ish-cartography.-td1994879.html > From manojkapil06 at gmail.com Wed Mar 11 01:09:03 2009 From: manojkapil06 at gmail.com (kapil manoj) Date: Wed, 11 Mar 2009 13:39:03 +0530 Subject: [mapserver-users] mapserver compiling error - newuser Message-ID: <7afcc95f0903110109v6e47e6ebq2c213227bb199a79@mail.gmail.com> Hi everyone, I am a newuser , i wish to stick to open source. i have problem compiling mapserver 5. 0.3 on fedora 9. i used the following configure statements: [kapil at localhost mapserver-5.0.3]$ ./configure --with-ogr=/usr/bin/gdal-config \--with-gdal=/usr/bin/gdal-config \--with-httpd=/usr/sbin/httpd \--with-wfsclient \--with-wmsclient \--with-wfs \--with-wms \--with-wcs \--enable-debug \--with-curl-config=/usr/bin/curl-config \--with-proj \--with-tiff \--with-geotiff \--with-png \--with-jpeg \--with-gd \--with-freetype=/usr/ \--with-threads \--with-libiconv=/usr/ \--with-geos=/usr/bin/geos-config \--with-xml2-config=/usr/bin/xml2-config \--with-sos \--with-agg \--with-postgis=/usr/bin/pg_config \--with-php=/usr/include/php \--with-postgresql \--with-mysql After the succesful completion of configuration i got the output: MapServer is now configured for -------------- Compiler Info ------------- C compiler: gcc -g -O2 -fPIC -Wall C++ compiler: g++ -g -O2 -fPIC -Wall Debug: -g -DNEED_NONBLOCKING_STDERR Generic NINT: Threading support: -DUSE_THREAD -------------- Renderer Settings --------- zlib support: -DUSE_ZLIB png support: jpeg support: iconv support: -DUSE_ICONV AGG support: -DUSE_AGG AGG Freetype support: -laggfontfreetype Ming(flash) support: PDFLib support: -DUSE_PDF -------------- Data Format Drivers ------- native tiff support: -DUSE_TIFF PostGIS support: -DUSE_POSTGIS Proj.4 support: -DUSE_PROJ EPPL7 support: -DUSE_EPPL ArcSDE support: OGR support: -DUSE_OGR GDAL support: -DUSE_GDAL GEOS support: -DUSE_GEOS Oracle Spatial support: FastCGI support: -------------- OGC Services -------------- WMS Server: -DUSE_WMS_SVR WMS Client: -DUSE_WMS_LYR WFS Server: -DUSE_WFS_SVR WFS Client: -DUSE_WMS_LYR WCS Server: -DUSE_WCS_SVR SOS Server: -DUSE_SOS_SVR -------------- MapScript ----------------- PHP MapScript: yes Then i procceded to the next step called make process. Here come the real problem arose , during the make process i got the error below: g++ -g -O2 -fPIC -Wall -DNEED_NONBLOCKING_STDERR -DHAVE_VSNPRINTF -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_SOS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_AGG -DUSE_PDF -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_POSTGIS -DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/include/agg2 -I/usr/include/freetype2 -I/usr/include/gdal/ -I/usr/include -I/usr/include -I/usr//include -I/usr/include/libxml2 shp2img.o -L. -lmapserver -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -L/usr/lib -lagg -laggfontfreetype -lpdf -ltiff -ljpeg -lfreetype -lpng -lz -lXpm -lX11 -lproj -ljpeg -lgdal -L/usr/lib -lgeos_c -I/usr/include -lsqlite3 -lodbc -lodbcinst -L/usr/lib -lexpat -L/usr/lib -lxerces-c -lpthread -ljasper -lhdf5 -L/usr/lib/hdf -lmfhdf -ldf -logdi -lgif -ljpeg -lgeotiff -ltiff -lpng -lnetcdf -lcfitsio -lgrass_vect -lgrass_dig2 -lgrass_dgl -lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase -lgrass_I -lgrass_gproj -lgrass_vask -lgrass_gmath -lgrass_gis -lgrass_datetime -lpq -L/usr/lib -lpq -lz -lpthread -lm -lrt -ldl -ldap -ldapclient -ldapserver -lpthread -lrx -lcurl -lxml2 -lz -lm -lcurl -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -lssl -lcrypto -L/usr/lib -lpq -lcurl -L/usr/lib -lgeos_c -lpthread -L/usr//lib -lc -lz -lxml2 -lz -lm -lm -lstdc++ -o shp2img */usr/bin/ld: cannot find -lexpat collect2: ld returned 1 exit status make: *** [shp2img] Error 1* I gone through many threads having similar error which are have been posted in mapserver forum, but i was not satisfied with the solution given in threads. Any idea how to fix this? please someone help me out.... gcc/g++ --version -4.3.0 many thanks zizu -------------- next part -------------- An HTML attachment was scrubbed... URL: From raffaele.morelli at gmail.com Wed Mar 11 01:52:27 2009 From: raffaele.morelli at gmail.com (Cassiel) Date: Wed, 11 Mar 2009 09:52:27 +0100 Subject: [mapserver-users] Using a mapserv wrapper script to handle libraries In-Reply-To: <31e2f7000903101811g2a521e57v99c9e1341834eb6f@mail.gmail.com> References: <31e2f7000903101811g2a521e57v99c9e1341834eb6f@mail.gmail.com> Message-ID: Hi, if you are on debian or derivative you can use dpkg -s mapserver-bin and/or dpkg -s cgi-mapserver to obtain dependencies. I used apache environment variables to hide the mapfile path and serve two different wms services with the same mapserver executable, they should do the job in your case too... but what's the need to do this with LD_LIBRARY_PATH & PROJ_LIB? Am I missing some thread? regards r 2009/3/11 Rui Gomes > Hi... > > I have a problem with the libraries to use mapserver in a real server. > And i find this in the web: > > > > - upload mapserv executable and all the shared libraries somewhere. > > - upload proj.4 support files (like epsg init file) somewhere > > - create a mapserv wrapper script in the cgi-bin directory which sets > > environment variables pointing to various things and then executes > > the real mapserv binary. Environment variables would include: > > LD_LIBRARY_PATH: needs to point to directory with all the .so files. > > PROJ_LIB: needs to point to directory with the proj support files. > > > > You should not need to alter the Apache configuration. The key is > getting > > the required files uploaded, and the wrapper script pointing to them. > > > Is this real possible? > Where i can find a list of all the lib needed? > > Thanks > > -- > Rui Gomes > _______________________________________________ > 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 bysid at hotmail.fr Wed Mar 11 02:06:54 2009 From: bysid at hotmail.fr (Sindy RAOUT) Date: Wed, 11 Mar 2009 10:06:54 +0100 Subject: [mapserver-users] cartographic symbol construction with mapserver Message-ID: Good morning, I would like to create with mapserver 5 symbols of type polygons composed of a line on which rest orientated inwards triangles. I wish the orientation of triangles take into account the topology of the polygon. I would wish that triangles are always orientated inwards. I have a database and I cannot use the symbols of the files of mapfiles and shapefiles.In the same way, I would like to create symbols lines with the same requirements. I would like that the symbols which compose the line are oriented by the topology of the line. Thank you for helping me. Sindy RAOUT - BRGM (France) _________________________________________________________________ D?couvrez toutes les possibilit?s de communication avec vos proches http://www.microsoft.com/windows/windowslive/default.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From bysid at hotmail.fr Wed Mar 11 02:54:24 2009 From: bysid at hotmail.fr (Sindy RAOUT) Date: Wed, 11 Mar 2009 10:54:24 +0100 Subject: [mapserver-users] FW: cartographic symbol construction with mapserver Message-ID: Bonjour, Aujourd'hui, si je r?alise un ligne de triangle, la pointe du triangle n'est pas toujours vers l'int?rieur. La construction de symboles du site ne me r?pond pas ? ce que je cherchais. Je souhaitais cr?er un contour de polygone compos? de triangles. Cependant, la pointe des triangles doit toujours ?tre orient?e vers l'int?rieur. De plus, je souhaitais cr?er cette fois ci des lignes compos?s de triangles o? l'orientation des pointes peut ?tre d?termin?e. Je souhaite que l'orientation des symboles composant les lignes puissent ?tre d?termin?s dans les Mapfiles ou les les fichiers de symboles. L'orientation doit pouvoir ?tre d?finie par la topologie, par des crit?res ext?rieurs, int?rieurs, amont, aval. C'est exigeant, cependant il s'agit de donn?es g?ographiques. Ce type de repr?sentation est souvent n?cessaire. Si vous avez une piste, je suis preneuse. Merci d'avance. Sindy RAOUT - BRGM (France) D?couvrez toutes les possibilit?s de communication avec vos proches _________________________________________________________________ In?dit ! Des Emotic?nes D?jant?es! Installez les dans votre Messenger ! http://www.ilovemessenger.fr/Emoticones/EmoticonesDejantees.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From pgiannini at bytewise.it Wed Mar 11 02:55:33 2009 From: pgiannini at bytewise.it (Pietro Giannini) Date: Wed, 11 Mar 2009 10:55:33 +0100 Subject: [mapserver-users] Drawing a simple filled polygon with PHP/mapscript In-Reply-To: <1236738305833-2459355.post@n2.nabble.com> References: <1236738305833-2459355.post@n2.nabble.com> Message-ID: <49B78A95.70809@bytewise.it> Hi indieaz, add: $layer->set("type",MS_LAYER_POLYGON); $layer->set("status",MS_DEFAULT); indieaz ha scritto: > Been doing a lot of tinkering, have been plotting points on maps with variety > of shapes from database sources etc. However, I'm now against what I > believe should be an extremely simple problem. > > I have a set of coordinates (max lat/long and min lat/long) that make up a > rectangle I need to plot onto my map. I'm pulling my hair out...I get a > .png image out, but it's empty. Here's an example of the code I'm trying to > use: > > $map = ms_newMapObj(); > $layer = ms_newLayerObj($map); > $polygon= ms_newShapeObj(MS_SHAPE_POLYGON); > $polyLine = ms_newLineObj(); > $polyLine->addXY(60,60); > $polyLine->addXY(75,60); > $polyLine->addXY(75,75); > $polyLine->addXY(60,75); > $polyLine->addXY(60,60); > $polygon->add($polyLine); > > $Class = ms_newClassObj($layer); > $Class->set( "name","MyClass"); > // Create a style object defining how to draw features > $lineStyle = ms_newStyleObj($Class); > $lineStyle->color->setRGB(255,255,0); > > > and my .map file: > > MAP > > STATUS ON > SIZE 600 400 > IMAGECOLOR 255 255 255 > IMAGETYPE PNG > extent -180 -90 180 90 > PROJECTION > "init=epsg:4326" > END > > END > -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E From jlacroix at mapgears.com Wed Mar 11 08:04:55 2009 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Wed, 11 Mar 2009 11:04:55 -0400 Subject: [mapserver-users] cartographic symbol construction with mapserver In-Reply-To: References: Message-ID: <49B7D317.3050502@mapgears.com> Hi, You need to specify an ANGLE in your STYLE definition to rotate the symbols around your polygons. http://www.mapserver.org/mapfile/style.html Julien Sindy RAOUT wrote: > Good morning, > I would like to create with mapserver 5 symbols of type polygons > composed of a line on which rest orientated inwards triangles. I > wish the orientation of triangles take into account the topology of the > polygon. I would wish that triangles are always orientated inwards. > I have a database and I cannot use the symbols of the files of > mapfiles and shapefiles.In the same way, I would like to create symbols > lines with the same requirements. I would like that the symbols > which compose the line are oriented by the topology of the line. > Thank you for helping me. > Sindy RAOUT - BRGM (France) > > ------------------------------------------------------------------------ > D?couvrez toutes les possibilit?s de communication avec vos proches > > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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 arjendk at gmx.net Wed Mar 11 09:07:26 2009 From: arjendk at gmx.net (Arjen de Korte) Date: Wed, 11 Mar 2009 17:07:26 +0100 Subject: [mapserver-users] Truetype font character (Wingding) as point symbology Message-ID: <1236787646.24730.1304855967@webmail.messagingengine.com> Dear Mapserver users, I would like to use a character from the "Wingding" font as a symbol for points on my map. In my file with symbology definitions, I have defined this: SYMBOL NAME 'plane' TYPE TRUETYPE FONT wingding CHARACTER "" END I have used 61440 + 33 as the character code as described in http://www.mapserver.org/mapfile/symbology/construction.html. My list of font definitions contains: arial c:\WINDOWS\Fonts\arial.ttf wingding c:\WINDOWS\Fonts\wingding.ttf The class of my layer looks like: CLASS COLOR 255 200 0 symbol "plane" END However, Mapserver displays the "square" (the typical "unknown character" character). When I change the font to arial the character is always "&" regardless of the character code! (I have also tried "!" etc.) It seems only the first character "&" is taken from my symbol definition instead of the whole definition "". When I use e.g. CHARACTER "X" then it works, but only for arial. What am I doing wrong? Thank you in advance for any suggestions. Greetings, Arjen. From MMaganti at oriongis.com Wed Mar 11 11:44:45 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Wed, 11 Mar 2009 14:44:45 -0400 Subject: [mapserver-users] Label encoding Message-ID: Hi Where can I get the list of valid encodings that can be used in encoding of LABEL section. Thanks Murty -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Wed Mar 11 11:53:11 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 11 Mar 2009 14:53:11 -0400 Subject: [mapserver-users] Label encoding In-Reply-To: References: Message-ID: <49B80897.4080905@mapgears.com> Murty Maganti wrote: > > Where can I get the list of valid encodings that can be used in encoding > of LABEL section. > MapServer uses the libiconv library to deal with encodings. There is a list of encodings that the lib supports here: http://www.gnu.org/software/libiconv/ ... and one can also use the "iconv -l" command on a system with libiconv installed to get the complete list of supported encodings on that specific system. Daniel -- Daniel Morissette http://www.mapgears.com/ From MMaganti at oriongis.com Wed Mar 11 12:47:58 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Wed, 11 Mar 2009 15:47:58 -0400 Subject: [mapserver-users] Label encoding In-Reply-To: <49B80897.4080905@mapgears.com> References: <49B80897.4080905@mapgears.com> Message-ID: Hi Is that list same if map server is compiled with Fribidi or is it different? Also, have another issue. I have a map file that loads perfectly fine on XP and vista. The moment I add encoding attribute, it does not load in vista (no matter what the coding value). It just hangs in mapObj.draw() and need to restart IIS. Works fine on XP. Is there any clue where I can look to resolve the issue. Do I need to install any additional libraries for Iconv or Fribidi on Vista? Thanks Murty -----Original Message----- From: Daniel Morissette [mailto:dmorissette at mapgears.com] Sent: Wednesday, March 11, 2009 2:53 PM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Label encoding Murty Maganti wrote: > > Where can I get the list of valid encodings that can be used in encoding > of LABEL section. > MapServer uses the libiconv library to deal with encodings. There is a list of encodings that the lib supports here: http://www.gnu.org/software/libiconv/ ... and one can also use the "iconv -l" command on a system with libiconv installed to get the complete list of supported encodings on that specific system. Daniel -- Daniel Morissette http://www.mapgears.com/ From gregor at hostgis.com Wed Mar 11 12:48:00 2009 From: gregor at hostgis.com (Gregor at HostGIS) Date: Wed, 11 Mar 2009 12:48:00 -0700 Subject: [mapserver-users] 5.4 RC1? Message-ID: <49B81570.3090900@hostgis.com> Is RC1 still expected today or tomorrow? We're willing to try out the beta, but if the RC1 is coming out in the next several hours we'll just wait. -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ From Steve.Lime at dnr.state.mn.us Wed Mar 11 13:24:01 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 11 Mar 2009 15:24:01 -0500 Subject: [mapserver-users] 5.4 RC1? In-Reply-To: <49B81570.3090900@hostgis.com> References: <49B81570.3090900@hostgis.com> Message-ID: <49B7D792.5157.008F.0@dnr.state.mn.us> Will probably be late in the week... >>> On 3/11/2009 at 2:48 PM, in message <49B81570.3090900 at hostgis.com>, Gregor at HostGIS wrote: > Is RC1 still expected today or tomorrow? We're willing to try out the > beta, but if the RC1 is coming out in the next several hours we'll just > wait. From gregor at hostgis.com Wed Mar 11 13:28:02 2009 From: gregor at hostgis.com (Gregor at HostGIS) Date: Wed, 11 Mar 2009 13:28:02 -0700 Subject: [mapserver-users] 5.4 RC1? In-Reply-To: <49B7D792.5157.008F.0@dnr.state.mn.us> References: <49B81570.3090900@hostgis.com> <49B7D792.5157.008F.0@dnr.state.mn.us> Message-ID: <49B81ED2.2060104@hostgis.com> Steve Lime wrote: > Will probably be late in the week... Okay. Thanks for the update. -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ From szekerest at gmail.com Wed Mar 11 14:54:16 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 11 Mar 2009 22:54:16 +0100 Subject: [mapserver-users] Encoding issues In-Reply-To: References: Message-ID: 2009/3/10 Murty Maganti > Hi > > > > As per the code documentation in the method msGetEncodedString (as shown > below), the characters are assumed to be UTF-8 by default. > > > > char *msGetEncodedString(const char *string, const char *encoding) > > { > > --- > > if (len == 0 || (encoding && strcasecmp(encoding, "UTF-8")==0)) > > return strdup(string); /* Nothing to do: string already in UTF-8 > */ > > > > Where as in the ?values? property of shapeObj.cs in C#, it is using > System.Runtime.InteropServices.Marshal.PtrToStringAnsi (to marshal > characters from c to c#). Shoudn?t it be using > System.Runtime.InteropServices.Marshal.PtrToStringUni method since as the > charcters are by default held in UTF-8 encoding? > > I don't think so. These 2 representations are quite different. UTF-8 use 8 bit representation with varying character length (1-4) , while unicode use 16 bit / character by default. msGetEncodedString is used to transform the labels during the drawing in case if the encoding parameter is specified, but this function haven't been utilized when retieving the shape values. Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Wed Mar 11 15:28:08 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 11 Mar 2009 23:28:08 +0100 Subject: [mapserver-users] Label encoding In-Reply-To: References: <49B80897.4080905@mapgears.com> Message-ID: 2009/3/11 Murty Maganti > Hi > > Is that list same if map server is compiled with Fribidi or is it > different? > Hi, I can see the followings added in fribidi (according to fribidi-char-sets-list.h) #ifdef _FRIBIDI_ADD_CHAR_SET_OTHERS _FRIBIDI_ADD_CHAR_SET_OTHERS (UTF8, utf8) /* UTF-8 (Unicode) */ _FRIBIDI_ADD_CHAR_SET_OTHERS (CAP_RTL, cap_rtl) /* CapRTL (Test) */ #endif /* _FRIBIDI_ADD_CHAR_SET_OTHERS */ #ifdef _FRIBIDI_ADD_CHAR_SET_ONE2ONE _FRIBIDI_ADD_CHAR_SET_ONE2ONE (ISO8859_6, iso8859_6) /* ISO8859-6 (Arabic) */ _FRIBIDI_ADD_CHAR_SET_ONE2ONE (ISO8859_8, iso8859_8) /* ISO8859-8 (Hebrew) */ _FRIBIDI_ADD_CHAR_SET_ONE2ONE (CP1255, cp1255) /* CP1255 (MS Hebrew/Yiddish) */ _FRIBIDI_ADD_CHAR_SET_ONE2ONE (CP1256, cp1256) /* CP1256 (MS Arabic) */ #endif /* _FRIBIDI_ADD_CHAR_SET_ONE2ONE */ As far as I can see this takes precedence over iconv when fribidi is compiled in, unless you specify FRIBIDI_NO_CHARSETS when compiling mapserver. In the latter case iconv is used to when doing the encoding. > Also, have another issue. I have a map file that loads perfectly fine on > XP and vista. The moment I add encoding attribute, it does not load in > vista (no matter what the coding value). It just hangs in mapObj.draw() > and need to restart IIS. Works fine on XP. Is there any clue where I can > look to resolve the issue. Do I need to install any additional libraries > for Iconv or Fribidi on Vista? The iconv.dll and fribidi.dll should be available to load by the application by default. Does this issue exists only when fribidi is compiled in? I can see a couple of non-const static variables used by the fribidi library and I wonder if we should protect the access to these functions with locks inside the mapserver code in a multi-threaded environment. Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From ofarcis at gmail.com Wed Mar 11 21:54:41 2009 From: ofarcis at gmail.com (Oscar Fdez.) Date: Thu, 12 Mar 2009 05:54:41 +0100 Subject: [mapserver-users] Calculate Bounding Box... Message-ID: <005e01c9a2ce$a8eee140$facca3c0$@com> Hi to all, Any people know how to calculate the bounding box from lon/lat coordinates. An example: I have a point in -8.0572,42.4702 (lon/lan). I like a bounding box arround 1 mile of this site. Can use any SRS like EPSG:4230 or another. Any solution is accepted independent of language. I translate to my need. I hope develop in php mapscript, but the solution can made in any language. Thanks for all, Oscar. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at hostgis.com Thu Mar 12 00:04:57 2009 From: gregor at hostgis.com (Gregor at HostGIS) Date: Thu, 12 Mar 2009 00:04:57 -0700 Subject: [mapserver-users] Calculate Bounding Box... In-Reply-To: <005e01c9a2ce$a8eee140$facca3c0$@com> References: <005e01c9a2ce$a8eee140$facca3c0$@com> Message-ID: <49B8B419.5020309@hostgis.com> > I have a point in -8.0572,42.4702 (lon/lan). I like a bounding box > arround 1 mile of this site. Can use any SRS like EPSG:4230 or another. Hit up spatialreference.org You can look up a SRS, then move a point over a map to get conversions. Very handy. -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ From skiper at infojawa.org Thu Mar 12 01:36:34 2009 From: skiper at infojawa.org (Juni Adi) Date: Thu, 12 Mar 2009 15:36:34 +0700 Subject: [mapserver-users] OGR connection failure (with mysql log) In-Reply-To: <49B14B49.4030501@pobox.com> References: <49B0BBAB.3030208@infojawa.org> <49B14B49.4030501@pobox.com> Message-ID: <49B8C992.2060307@infojawa.org> Hello, I'm still struggling to connect mapscript to MySQL using OGR direct connection here. I've been logging mysql query to myslLOG.log. The ogrinfo successfull connection from commandline: [root at server]# su -fm apache bash: /root/.bashrc: Permission denied [apache at server]$ /usr/bin/ogrinfo base.ovf ERROR 4: Update access not supported for VRT datasources. Had to open data source read-only. INFO: Open of `/home/infojawa/maps_data/jawa/base.ovf' using driver `VRT' successful. 1: base mysqlLOG.log says: 26 Connect root at localhost on mapserver 26 Query SHOW KEYS FROM `base` 26 Field List base now when I access the web, *Warning*: [MapServer Error]: msOGRFileOpen(): Open failed for OGR connection in layer `base'. Failed to open datasource `MySQL:mapserver,user=xxxx,password=xxxx,tables=base'. in */home/infojawa/maps/jawa.inc.php* on line *552* mysqlLOG.log doesn't say anytihing at all. Seems like mapscript/OGR never did any connection to mysql server. Does anyone ever find similar problem?Any idea will be highly appreciated Thanks in advance Junek PS: I have rebuilt gdal/ogr again, --with-mysql=/usr/bin/mysql_config --with-unixODBC-includes --with-unixODBC-libs Frank Warmerdam wrote: > Juni Adi wrote: >> Hi all, >> >> I've just installed mapserver with php_mapscript enabled on my centos5 : >> mapserver-5.2.1 > > Judi, > > I don't know how mysql permissions work, but I'd suggest reviewing > whether > the apache account has permissions to access mysql. I don't see any > other > obvious reason things wouldn't work assuming the same libraries are being > used in both configurations. > > Best regards, From ofarcis at gmail.com Thu Mar 12 02:02:15 2009 From: ofarcis at gmail.com (Oscar Fdez.) Date: Thu, 12 Mar 2009 10:02:15 +0100 Subject: [mapserver-users] Calculate Bounding Box... In-Reply-To: <49B8B419.5020309@hostgis.com> References: <005e01c9a2ce$a8eee140$facca3c0$@com> <49B8B419.5020309@hostgis.com> Message-ID: <7b2807360903120202j4c8a9d41x6a2d50a7b601c811@mail.gmail.com> Thanks for your answer. ?Exist any formule to calculate the left/top lon/lan corner and the right/bottom corner of Bounding Box dinamic from a lon/lan point? Regards, Oscar. 2009/3/12 Gregor at HostGIS > I have a point in -8.0572,42.4702 (lon/lan). I like a bounding box arround >> 1 mile of this site. Can use any SRS like EPSG:4230 or another. >> > > Hit up spatialreference.org > You can look up a SRS, then move a point over a map to get conversions. > Very handy. > > > > -- > HostGIS, Open Source solutions for the global GIS community > Greg Allensworth - SysAdmin, Programmer, GIS Person, Security > Network+ Server+ A+ Security+ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdg at geosphere.fr Thu Mar 12 02:16:12 2009 From: jdg at geosphere.fr (Jean-Daniel JDG. GONON) Date: Thu, 12 Mar 2009 10:16:12 +0100 Subject: [mapserver-users] Test shape files with shp2img Message-ID: Hi all I want to test my map file (including .ecw and shape files) with shp2img. I have added "C:\ms4w\Apache\cgi-bin" in environment path (in Windows XP SP2). But the cmd shp2img -m map.map -o test.png returns this error : "msProcessProjection(): Projection library error. No such file or directory
" I see on this page (http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg04811.html ) I have to set environment PATH and PROJ_LIB. I already add "C:\ms4w\Apache\cgi-bin" in environment path, what and how do I add another ?? Thank you for answers. JDG -------------- next part -------------- An HTML attachment was scrubbed... URL: From subha at gslab.com Thu Mar 12 02:49:02 2009 From: subha at gslab.com (Subha Ramakrishnan) Date: Thu, 12 Mar 2009 15:19:02 +0530 Subject: [mapserver-users] Point layers through mapserver Message-ID: <49B8DA8E.5080206@gslab.com> Hi All, I'm working on showing point layers through mapserver and have a couple of queries here. 1. Is it possible for me to show a group of over-lappping points as one point? (Something like a virtual point in google) 2. If I've multiple points around the same lat long, and have query mode enabled for that layer, is it possible to return multiple features by clicking on/around that lat long? Currently, wherever there are lots of points cluttered, I get the top most feature's details on clicking. I'm using Mapserver 5.0.2 with Openlayers 2.7. Please help if any one has a solution for this. Thanks a lot. Subha From medvezs84 at gmail.com Thu Mar 12 04:46:02 2009 From: medvezs84 at gmail.com (Medve Zsolt) Date: Thu, 12 Mar 2009 12:46:02 +0100 Subject: [mapserver-users] ka-map with mapserver problems..PLS help me Message-ID: <49B8F5FA.8070607@gmail.com> Hy! Sorry for disturb but i have a problem and i see you on ka-map mailing list. So, I installed ms4w, then copy ka-map 1.0 to ms4w. I find web pages how to config and prepare my ka-map. ( in the config.php file.. mapfile path., phpscript and GD path,.apache alias and so on..) i found a sample Shape file and a mapfile to test ka-map with them. But when i see it in the browser, only the ka-map frame aapears but the content,the map don't. Can you help me ..maybe i dont config something well or i dont know.. If you use same ms4w and ka-map 1.0..you may send it to me in a zip for example. I aprisiate your help Thanks, From subha at gslab.com Thu Mar 12 06:24:32 2009 From: subha at gslab.com (Subha Ramakrishnan) Date: Thu, 12 Mar 2009 18:54:32 +0530 Subject: [mapserver-users] No result from nquery Message-ID: <49B90D10.9080201@gslab.com> Hi, I am using nquery mode to fetch features lying within an area on the map. The url looks like this : "http://localhost/cgi-bin/mapserv?MAP=abc.map&MODE=nquery&LAYERS=abc&imgext=8920506.9477+3496535.4213+8954750.736418456+3530779.2100573704&imgbox=657+209+686+239&imgxy=670+230" Am i doing something wrong or missing any parameter in the url because this is not returning any result. But there are features within this area. I tried giving the imgext in lat lon also but doesn't work. The values for "imgext" correspond to bounding box (bottom left and top right) and "imgbox" corresponds to pixel values from top left to bottom right. Is this correct? Please help. Thanks a lot. Regards, Subha From David.Fawcett at state.mn.us Thu Mar 12 06:18:43 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Thu, 12 Mar 2009 08:18:43 -0500 Subject: [mapserver-users] Test shape files with shp2img In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA2A1@s-sp22.pca.state.mn.us> You can also try adding another line to your map file. In the MAP object, add a line like the one below to tell MapServer where the epsg database is: CONFIG "PROJ_LIB" "C:/somedir/proj/nad/" David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jean-Daniel JDG. GONON Sent: Thursday, March 12, 2009 4:16 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Test shape files with shp2img Hi all I want to test my map file (including .ecw and shape files) with shp2img. I have added "C:\ms4w\Apache\cgi-bin" in environment path (in Windows XP SP2). But the cmd shp2img -m map.map -o test.png returns this error : "msProcessProjection(): Projection library error. No such file or directory
" I see on this page (http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg04811.html ) I have to set environment PATH and PROJ_LIB. I already add "C:\ms4w\Apache\cgi-bin" in environment path, what and how do I add another ?? Thank you for answers. JDG -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu Mar 12 06:32:07 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 12 Mar 2009 09:32:07 -0400 Subject: [mapserver-users] Test shape files with shp2img In-Reply-To: References: Message-ID: <49B90ED7.1070007@gatewaygeomatics.com> Jean-Daniel JDG. GONON wrote: > Hi all > > > > I want to test my map file (including .ecw and shape files) with shp2img. > > I have added ?C:\ms4w\Apache\cgi-bin? in environment path (in Windows XP > SP2). > > > > But the cmd shp2img ?m map.map ?o test.png returns this error : > ?msProcessProjection(): Projection library error. No such file or > directory
? > > > > I see on this page > (http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg04811.html) > I have to set environment PATH and PROJ_LIB. > > > > I already add ?C:\ms4w\Apache\cgi-bin? in environment path, what and how > do I add another ?? > > > You must execute the file /ms4w/setenv.bat to set the necessary paths for the MS4W commandline tools. If you have any questions, feel free to inquire on the ms4w-users mailing list. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From jmckenna at gatewaygeomatics.com Thu Mar 12 06:35:57 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 12 Mar 2009 09:35:57 -0400 Subject: [mapserver-users] ka-map with mapserver problems..PLS help me In-Reply-To: <49B8F5FA.8070607@gmail.com> References: <49B8F5FA.8070607@gmail.com> Message-ID: <49B90FBD.5000406@gatewaygeomatics.com> Medve Zsolt wrote: > Hy! > > Sorry for disturb but i have a problem and i see you on ka-map mailing > list. > > So, I installed ms4w, then copy ka-map 1.0 to ms4w. I find web pages > how to config and prepare my ka-map. ( in the config.php file.. mapfile > path., phpscript and GD path,.apache alias and so on..) i found a sample > Shape file and a mapfile to test ka-map with them. But when i see it in > the browser, only the ka-map frame aapears but the content,the map don't. > > Can you help me ..maybe i dont config something well or i dont know.. > > If you use same ms4w and ka-map 1.0..you may send it to me in a zip for > example. I aprisiate your help > See my response to your same question on the ka-Map mailing list: http://lists.maptools.org/pipermail/ka-map-users/2009-March/003817.html -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From subha at gslab.com Thu Mar 12 06:54:48 2009 From: subha at gslab.com (Subha Ramakrishnan) Date: Thu, 12 Mar 2009 19:24:48 +0530 Subject: [mapserver-users] howto draw amount of points features of one layer depending on scale In-Reply-To: <48BD1FDE.4010902@uni-bonn.de> References: <48B4251F.6050905@uni-bonn.de> <48B42F47.9060601@pdx.edu> <48B559DC.8060603@uni-bonn.de> <48B5642A.2040306@dmsolutions.ca> <48BD1FDE.4010902@uni-bonn.de> Message-ID: <49B91428.4010100@gslab.com> Hi All, Can someone tell me what the solution was? I tried using the link but it seems to be in-active now. Please help. Thanks a lot. Subha Nils Zierath wrote: > Yewondwossen, > thanks for the link. I had to switch off the "FORCE true" option of > the sample map file and it now works perfectly. > > Nils > > > Yewondwossen Assefa schrieb: >> Nils, >> >> look at this thread: it gives details of what you want to accomplish >> with an example of a working layer: >> >> http://www.mail-archive.com/mapserver-users at lists.osgeo.org/msg00164.html >> >> >> Best Regards, >> >> Nils Zierath wrote: >>> Hi David, >>> your suggestion is similar to Jeff's? >>> How would I treat a point as lable? I haven't had any luck in >>> displaying the points with "TYPE ANNOTATION". >>> >>> What would the syntax in the mapfile would look like to either treat >>> a point as lable or with "TYPE ANNOTATION"? >>> >>> My mapfile currently looks like: >>> >>> LAYER >>> NAME 'Field research locations' >>> DATA '../vector/gps/fieldresearch_complete' >>> STATUS default >>> TYPE point >>> #TYPE annotation >>> TRANSPARENCY 100 >>> TOLERANCE 7 >>> TOLERANCEUNITS pixels >>> UNITS kilometers >>> >>> METADATA >>> ... >>> END #METADATA >>> >>> PROJECTION >>> ... >>> END #PROJECTION >>> >>> CLASSITEM 'StudyFocus' >>> #LABELITEM 'LableAnnot' >>> >>> CLASS >>> NAME 'Research locations (all)' >>> #MINSCALEDENOM 1000000 >>> >>> STYLE >>> SYMBOL 'ttf_pin-sm' >>> SIZE 10 >>> COLOR 255 180 0 >>> ANGLE 345 >>> END #STYLE >>> END #CLASS >>> END #LAYER >>> >>> >>> >>> David Percy schrieb: >>>> If you treated them as labels when zoomed out (maxscale 50000 for >>>> example), then you could take advantage of the label colission >>>> features of mapserver to avoid overlaps. >>>> >>>> when zoomed in further you could have another layer (minscale 50000 >>>> for example) that shows all the detail... >>>> >>>> so you would have two layer definitions in this case... >>>> Cheers, >>>> Percy >>>> >>>> >>>> Nils Zierath wrote: >>>>> Dear list, >>>>> I got a layer with gps points. On the largest scale of my map the >>>>> symbols for points overlap and are not distinguishable from one >>>>> another since they are too close together. >>>>> >>>>> Is it possible to tell mapserver to draw only that many of the >>>>> points/symbols that do not overlap, so that more points will be >>>>> shown the more I zoom into the map? >>>>> >>>>> Thank you, >>>>> Nils >>>>> >>>>> _______________________________________________ >>>>> 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 MMaganti at oriongis.com Thu Mar 12 07:15:12 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Thu, 12 Mar 2009 10:15:12 -0400 Subject: [mapserver-users] Label encoding In-Reply-To: References: <49B80897.4080905@mapgears.com> Message-ID: Hi >The iconv.dll and fribidi.dll should be available to load by the application by default. >Does this issue exists only when fribidi is compiled in? I can see a couple of non-const static variables used by the fribidi library and I wonder if we should >protect the access to these functions with locks inside the mapserver code in a multi-threaded environment. I have the both DLLs present in PATH/binary folders. Though I see SUPPORT=FRIBIDI output from map server, but I guess it is going through iconv. When a specify wrong encoding like 'abc' it throws exception that the encoding is not supported by iconv, which means it is using iconv. Forgot to mention this previously. There is no problem loading the map file (with encoding) in a desktop application on Vista. It hangs when I load in ASP.Net environment. But same map file loads fine in ASP.Net on XP machine. Appreciate all the help. Thanks Murty From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Wednesday, March 11, 2009 6:28 PM To: Murty Maganti Cc: Daniel Morissette; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Label encoding 2009/3/11 Murty Maganti Hi Is that list same if map server is compiled with Fribidi or is it different? Hi, I can see the followings added in fribidi (according to fribidi-char-sets-list.h) #ifdef _FRIBIDI_ADD_CHAR_SET_OTHERS _FRIBIDI_ADD_CHAR_SET_OTHERS (UTF8, utf8) /* UTF-8 (Unicode) */ _FRIBIDI_ADD_CHAR_SET_OTHERS (CAP_RTL, cap_rtl) /* CapRTL (Test) */ #endif /* _FRIBIDI_ADD_CHAR_SET_OTHERS */ #ifdef _FRIBIDI_ADD_CHAR_SET_ONE2ONE _FRIBIDI_ADD_CHAR_SET_ONE2ONE (ISO8859_6, iso8859_6) /* ISO8859-6 (Arabic) */ _FRIBIDI_ADD_CHAR_SET_ONE2ONE (ISO8859_8, iso8859_8) /* ISO8859-8 (Hebrew) */ _FRIBIDI_ADD_CHAR_SET_ONE2ONE (CP1255, cp1255) /* CP1255 (MS Hebrew/Yiddish) */ _FRIBIDI_ADD_CHAR_SET_ONE2ONE (CP1256, cp1256) /* CP1256 (MS Arabic) */ #endif /* _FRIBIDI_ADD_CHAR_SET_ONE2ONE */ As far as I can see this takes precedence over iconv when fribidi is compiled in, unless you specify FRIBIDI_NO_CHARSETS when compiling mapserver. In the latter case iconv is used to when doing the encoding. Also, have another issue. I have a map file that loads perfectly fine on XP and vista. The moment I add encoding attribute, it does not load in vista (no matter what the coding value). It just hangs in mapObj.draw() and need to restart IIS. Works fine on XP. Is there any clue where I can look to resolve the issue. Do I need to install any additional libraries for Iconv or Fribidi on Vista? The iconv.dll and fribidi.dll should be available to load by the application by default. Does this issue exists only when fribidi is compiled in? I can see a couple of non-const static variables used by the fribidi library and I wonder if we should protect the access to these functions with locks inside the mapserver code in a multi-threaded environment. Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Thu Mar 12 07:27:34 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Thu, 12 Mar 2009 10:27:34 -0400 Subject: [mapserver-users] howto draw amount of points features of one layer depending on scale In-Reply-To: <49B91428.4010100@gslab.com> References: <48B4251F.6050905@uni-bonn.de> <48B42F47.9060601@pdx.edu> <48B559DC.8060603@uni-bonn.de> <48B5642A.2040306@dmsolutions.ca> <48BD1FDE.4010902@uni-bonn.de> <49B91428.4010100@gslab.com> Message-ID: <49B91BD6.50505@dmsolutions.ca> google links to the thread: http://209.85.173.132/search?q=cache:I4K8vXBlJuoJ:www.mail-archive.com/mapserver-users%40lists.osgeo.org/msg00164.html+mapserver+msg00164.html&cd=2&hl=en&ct=clnk&gl=ca&client=firefox-a Is that what tou are looking for? Assefa Subha Ramakrishnan wrote: > Hi All, > > Can someone tell me what the solution was? > I tried using the link but it seems to be in-active now. > > Please help. > Thanks a lot. > > Subha > > Nils Zierath wrote: >> Yewondwossen, >> thanks for the link. I had to switch off the "FORCE true" option of >> the sample map file and it now works perfectly. >> >> Nils >> >> >> Yewondwossen Assefa schrieb: >>> Nils, >>> >>> look at this thread: it gives details of what you want to accomplish >>> with an example of a working layer: >>> >>> http://www.mail-archive.com/mapserver-users at lists.osgeo.org/msg00164.html >>> >>> >>> Best Regards, >>> >>> Nils Zierath wrote: >>>> Hi David, >>>> your suggestion is similar to Jeff's? >>>> How would I treat a point as lable? I haven't had any luck in >>>> displaying the points with "TYPE ANNOTATION". >>>> >>>> What would the syntax in the mapfile would look like to either treat >>>> a point as lable or with "TYPE ANNOTATION"? >>>> >>>> My mapfile currently looks like: >>>> >>>> LAYER >>>> NAME 'Field research locations' >>>> DATA '../vector/gps/fieldresearch_complete' >>>> STATUS default >>>> TYPE point >>>> #TYPE annotation >>>> TRANSPARENCY 100 >>>> TOLERANCE 7 >>>> TOLERANCEUNITS pixels >>>> UNITS kilometers >>>> >>>> METADATA >>>> ... >>>> END #METADATA >>>> >>>> PROJECTION >>>> ... >>>> END #PROJECTION >>>> >>>> CLASSITEM 'StudyFocus' >>>> #LABELITEM 'LableAnnot' >>>> >>>> CLASS >>>> NAME 'Research locations (all)' >>>> #MINSCALEDENOM 1000000 >>>> >>>> STYLE >>>> SYMBOL 'ttf_pin-sm' >>>> SIZE 10 >>>> COLOR 255 180 0 >>>> ANGLE 345 >>>> END #STYLE >>>> END #CLASS >>>> END #LAYER >>>> >>>> >>>> >>>> David Percy schrieb: >>>>> If you treated them as labels when zoomed out (maxscale 50000 for >>>>> example), then you could take advantage of the label colission >>>>> features of mapserver to avoid overlaps. >>>>> >>>>> when zoomed in further you could have another layer (minscale 50000 >>>>> for example) that shows all the detail... >>>>> >>>>> so you would have two layer definitions in this case... >>>>> Cheers, >>>>> Percy >>>>> >>>>> >>>>> Nils Zierath wrote: >>>>>> Dear list, >>>>>> I got a layer with gps points. On the largest scale of my map the >>>>>> symbols for points overlap and are not distinguishable from one >>>>>> another since they are too close together. >>>>>> >>>>>> Is it possible to tell mapserver to draw only that many of the >>>>>> points/symbols that do not overlap, so that more points will be >>>>>> shown the more I zoom into the map? >>>>>> >>>>>> Thank you, >>>>>> Nils >>>>>> >>>>>> _______________________________________________ >>>>>> 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 >> > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From richard.greenwood at gmail.com Thu Mar 12 07:32:27 2009 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Thu, 12 Mar 2009 08:32:27 -0600 Subject: [mapserver-users] No result from nquery In-Reply-To: <49B90D10.9080201@gslab.com> References: <49B90D10.9080201@gslab.com> Message-ID: On Thu, Mar 12, 2009 at 7:24 AM, Subha Ramakrishnan wrote: > Hi, > > I am using nquery mode to fetch features lying within an area on the map. > The url looks like this : > > "http://localhost/cgi-bin/mapserv?MAP=abc.map&MODE=nquery&LAYERS=abc&imgext=8920506.9477+3496535.4213+8954750.736418456+3530779.2100573704&imgbox=657+209+686+239&imgxy=670+230" > > Am i doing something wrong or missing any parameter in the url because this > is not returning any result. But there are features within this area. > I tried giving the imgext in lat lon also but doesn't work. > The values for "imgext" correspond to bounding box (bottom left and top > right) and "imgbox" corresponds to pixel values from top left to bottom > right. Is this correct? Check the EXTENT in your map file. MapServer will not return query results outside of the defined extent. -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From jlacroix at mapgears.com Thu Mar 12 07:57:21 2009 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Thu, 12 Mar 2009 10:57:21 -0400 Subject: [mapserver-users] Calculate Bounding Box... In-Reply-To: <7b2807360903120202j4c8a9d41x6a2d50a7b601c811@mail.gmail.com> References: <005e01c9a2ce$a8eee140$facca3c0$@com> <49B8B419.5020309@hostgis.com> <7b2807360903120202j4c8a9d41x6a2d50a7b601c811@mail.gmail.com> Message-ID: <49B922D1.6010203@mapgears.com> Hi, Probably not totally exact, but enough for most people: Miles per degree (latitude): 69 Miles per degree (Longitude): 69 * (cos(LATITUDE * PI / 180)) Julien PS: Set of PHP functions from Chameleon http://chameleon.maptools.org/ /** * Number of KM in a MILE * there are 5280 feet in a mile : start with 5280 * there are 12 inches in a foot : multiple by 12 * there are 0.0254 meters in an inch : multiple by 0.0254 * there are 1000 meters in a kilometer : divide by 1000 */ define( "KM_PER_MILE", (5280 * 12 * 0.0254 / 1000) ); /** * Constant returns miles per degree of latitude which is 69. */ define( "MilesPerDegreeLat", 69 ); define( "DegreesLatPerMile", (1 / 69.0) ); /** * function LonToLatRatio * * Given a latitude in decimal degrees, it will return the ratio of * longitude degress to latitude degrees. */ function LonToLatRatio ($latitude) { return cos($latitude * M_PI / 180); } /** * MilesPerDegreeLon($latitude) * * Given a latitude in decimal degrees, it will return the * miles per degree of longitude. */ function MilesPerDegreeLon ($latitude) { return 69 * LonToLatRatio($latitude); } /** * DegreesLonPerMile($latitude) * * Given a latitude in decimal degrees, it will return the * degrees of longitude per mile. */ function DegreesLonPerMile ($latitude) { return 1 / MilesPerDegreeLon( $latitude ); } Oscar Fdez. wrote: > Thanks for your answer. > > ?Exist any formule to calculate the left/top lon/lan corner and the > right/bottom corner of Bounding Box dinamic from a lon/lan point? > > Regards, Oscar. > > 2009/3/12 Gregor at HostGIS > > > I have a point in -8.0572,42.4702 (lon/lan). I like a bounding > box arround 1 mile of this site. Can use any SRS like EPSG:4230 > or another. > > > Hit up spatialreference.org > You can look up a SRS, then move a point over a map to get > conversions. Very handy. > > > > -- > HostGIS, Open Source solutions for the global GIS community > Greg Allensworth - SysAdmin, Programmer, GIS Person, Security > Network+ Server+ A+ Security+ > > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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 thomas.bonfort at gmail.com Thu Mar 12 08:07:13 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 12 Mar 2009 16:07:13 +0100 Subject: [mapserver-users] cartographic symbol construction with mapserver In-Reply-To: References: Message-ID: hi. the orientation of the symbol depends on the orientation of the underlying line, so to have all your triangles oriented inwards, you have to ensure that all your polygons are digitized with same orientation (i.e. clockwise or anticlockwise). hope this helps, -- thomas bonfort camptocamp On Wed, Mar 11, 2009 at 10:06, Sindy RAOUT wrote: > Good morning, > I would like to create with mapserver 5 symbols of type polygons composed of > a line on which rest orientated inwards triangles. I wish??the orientation > of triangles take into account the topology of the polygon. I would wish > that triangles are always orientated inwards. I?have a database and I cannot > use the symbols of the files of mapfiles?and shapefiles.In the same way, I > would like to create symbols lines?with the same requirements. I would like > that the symbols which?compose the line are oriented by the topology of the > line. > ?Thank you for helping me. > ?Sindy RAOUT - BRGM (France) > > ________________________________ > D?couvrez toutes les possibilit?s de communication avec vos proches > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From szekerest at gmail.com Thu Mar 12 08:44:06 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 12 Mar 2009 16:44:06 +0100 Subject: [mapserver-users] Label encoding In-Reply-To: References: <49B80897.4080905@mapgears.com> Message-ID: Hi Murty, Could you provide a sample application along with the data so that I could check out this issue in my Vista machine? Best regards, Tamas 2009/3/12 Murty Maganti > Hi > > > > >The iconv.dll and fribidi.dll should be available to load by the > application by default. > >Does this issue exists only when fribidi is compiled in? I can see a > couple of non-const static variables used by the fribidi library and I > wonder if we should >protect the access to these functions with locks inside > the mapserver code in a multi-threaded environment. > > > > I have the both DLLs present in PATH/binary folders. Though I see > SUPPORT=FRIBIDI output from map server, but I guess it is going through > iconv. When a specify wrong encoding like ?abc? it throws exception that the > encoding is not supported by iconv, which means it is using iconv. > > > > Forgot to mention this previously. There is no problem loading the map file > (with encoding) in a desktop application on Vista. It hangs when I load in > ASP.Net environment. But same map file loads fine in ASP.Net on XP machine. > > > > Appreciate all the help. > > > > Thanks > > Murty > > > > *From:* Tamas Szekeres [mailto:szekerest at gmail.com] > *Sent:* Wednesday, March 11, 2009 6:28 PM > *To:* Murty Maganti > *Cc:* Daniel Morissette; mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Label encoding > > > > > > 2009/3/11 Murty Maganti > > Hi > > Is that list same if map server is compiled with Fribidi or is it > different? > > > > > Hi, > > > I can see the followings added in fribidi (according to > fribidi-char-sets-list.h) > > #ifdef _FRIBIDI_ADD_CHAR_SET_OTHERS > _FRIBIDI_ADD_CHAR_SET_OTHERS (UTF8, utf8) /* UTF-8 (Unicode) */ > _FRIBIDI_ADD_CHAR_SET_OTHERS (CAP_RTL, cap_rtl) /* CapRTL (Test) */ > #endif /* _FRIBIDI_ADD_CHAR_SET_OTHERS */ > #ifdef _FRIBIDI_ADD_CHAR_SET_ONE2ONE > _FRIBIDI_ADD_CHAR_SET_ONE2ONE (ISO8859_6, iso8859_6) /* ISO8859-6 > (Arabic) */ > _FRIBIDI_ADD_CHAR_SET_ONE2ONE (ISO8859_8, iso8859_8) /* ISO8859-8 > (Hebrew) */ > _FRIBIDI_ADD_CHAR_SET_ONE2ONE (CP1255, cp1255) /* CP1255 (MS > Hebrew/Yiddish) */ > _FRIBIDI_ADD_CHAR_SET_ONE2ONE (CP1256, cp1256) /* CP1256 (MS Arabic) > */ > #endif /* _FRIBIDI_ADD_CHAR_SET_ONE2ONE */ > > > As far as I can see this takes precedence over iconv when fribidi is > compiled in, unless you specify FRIBIDI_NO_CHARSETS when compiling > mapserver. In the latter case iconv is used to when doing the encoding. > > > Also, have another issue. I have a map file that loads perfectly fine on > XP and vista. The moment I add encoding attribute, it does not load in > vista (no matter what the coding value). It just hangs in mapObj.draw() > and need to restart IIS. Works fine on XP. Is there any clue where I can > look to resolve the issue. Do I need to install any additional libraries > for Iconv or Fribidi on Vista? > > > The iconv.dll and fribidi.dll should be available to load by the > application by default. > Does this issue exists only when fribidi is compiled in? I can see a couple > of non-const static variables used by the fribidi library and I wonder if we > should protect the access to these functions with locks inside the mapserver > code in a multi-threaded environment. > > Best regards, > > Tamas > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From randre at gmail.com Thu Mar 12 09:15:32 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Thu, 12 Mar 2009 09:15:32 -0700 Subject: [mapserver-users] WMS Google Layer ! In-Reply-To: <49B55C5C.2050308@mapgears.com> References: <33fad6880903091041m7ce048cfr193a698cf1fc03e0@mail.gmail.com> <49B55C5C.2050308@mapgears.com> Message-ID: <9c2015090903120915y183375a3ke97b837c8ed21601@mail.gmail.com> Would it not be simpler for you to add the WMS layer to Google Maps instead? There are several javascript solutions for doing this, and the performance seems to be quite good. -- On Mon, Mar 9, 2009 at 11:13 AM, Julien-Samuel Lacroix wrote: > Hi, > > Someone correct me if I'm wrong. > Google Maps licence doesn't allow you to use it outside the Google Maps API. > So you are not allowed to use it as a WMS server in MapServer. You have to > use an application that use the API like OpenLayers. > > Julien > > Paul james wrote: >> >> Hello guys... >> I?m trying to add a Google Maps WMS layer on mapserver... Without sucess >> ... >> If someone could help me on that, It will be great ! >> >> Thanks... >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> 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/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From randre at gmail.com Thu Mar 12 09:42:27 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Thu, 12 Mar 2009 09:42:27 -0700 Subject: [mapserver-users] WMS Google Layer ! In-Reply-To: References: <33fad6880903091041m7ce048cfr193a698cf1fc03e0@mail.gmail.com> <49B55C5C.2050308@mapgears.com> <9c2015090903120915y183375a3ke97b837c8ed21601@mail.gmail.com> Message-ID: <9c2015090903120942r61c16d63xdfc66616315651@mail.gmail.com> Here's one. It's based on code that John Deck at Berkeley developed. His original code can be found here - http://chignik.berkeley.edu/google/wmstest236.html. I've modified it to suit my needs. I've included my modified .js, as well as a gmap html page that shows how to use it. Good luck. -- On Thu, Mar 12, 2009 at 9:17 AM, John Ruffing wrote: > I like that idea.. ?Where are these JavaScript solutions located? > > John > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Roger Andr? > Sent: Thursday, March 12, 2009 9:16 AM > To: Julien-Samuel Lacroix > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] WMS Google Layer ! > > Would it not be simpler for you to add the WMS layer to Google Maps instead? ?There are several javascript solutions for doing this, and the performance seems to be quite good. > -- > > > > On Mon, Mar 9, 2009 at 11:13 AM, Julien-Samuel Lacroix wrote: >> Hi, >> >> Someone correct me if I'm wrong. >> Google Maps licence doesn't allow you to use it outside the Google Maps API. >> So you are not allowed to use it as a WMS server in MapServer. You >> have to use an application that use the API like OpenLayers. >> >> Julien >> >> Paul james wrote: >>> >>> Hello guys... >>> I?m trying to add a Google Maps WMS layer on mapserver... Without >>> sucess ... >>> If someone could help me on that, It will be great ! >>> >>> Thanks... >>> >>> >>> --------------------------------------------------------------------- >>> --- >>> >>> _______________________________________________ >>> 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/ >> _______________________________________________ >> 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: wms_randre.js Type: application/x-javascript Size: 1463 bytes Desc: not available URL: From enri at 163.com Thu Mar 12 10:05:03 2009 From: enri at 163.com (enri) Date: Fri, 13 Mar 2009 01:05:03 +0800 (CST) Subject: [mapserver-users] MSCompanion version 1.0 beta1 available - change a lot since alpha3 Message-ID: <21656980.401236877503533.JavaMail.coremail@bj163app62.163.com> Hi, guys, The WYSIWYG GUI based mapfile editor MSCompanion version 1.0 beta1 is available, please check http://code.google.com/p/mscompanion/ to get it. A lot enhancements has happened since the last version 1.0 alpha3, featres of this version including: WYSIWYG Mapfile Edit Instant Mapfile Visualize Symbol Library displaying and visually selecting support read of mapfiles containing INCLUDEs, and write back with INCLUDE untouched Metadata Editor Projection detect and Edit Mapfile line number displaying Symbol overlay edit support data source type detect and CONNECTION string building Layer: Support Inline Feature, Grid and Data Suppoert Raster data layer export mapfile strictly complying to the version specified get the default version according to the specified shp2img.exe full support relative or obsolute path in all path related element Legend view .. wish you like it, any problem please answer this message or send to mscompanion at googlegroups.com to get support or make it better. Regards, Enri -------------- next part -------------- An HTML attachment was scrubbed... URL: From shanksje at yahoo.com Thu Mar 12 11:55:07 2009 From: shanksje at yahoo.com (Jennifer Shanks) Date: Thu, 12 Mar 2009 11:55:07 -0700 (PDT) Subject: [mapserver-users] 5.4 beta 3 - GetFeatureInfo /FILTER problems Message-ID: <912084.27291.qm@web83405.mail.sp1.yahoo.com> Hello, We installed 5.4 beta 3 last night to take advantage of the new labeling options. The new labels are great! I've noticed a problem with my GetFeatureInfo requests. If there is a data FILTER on the layer, the request returns the wrong feature (always the same feature, no matter which location I select in CA. If I comment out the FILTER, the request returns the correct result. Below is an example of my layer. And a request looks like this: http://www.parkinfo.org/cgi-bin/mapserv?map=wms_parkinfo_4326.map&SERVICE=WMS&SRS=EPSG:4326&VERSION=1.1.1&REQUEST=GetFeatureInfo&X=596&Y=636&QUERY_LAYERS=Parks_GetInfo&LAYERS=Parks_GetInfo&INFO_FORMAT=text/html&BBOX=-128.4521484375,36.13787471840729,-116.65283203124999,44.68427737181224&WIDTH=1060&HEIGHT=768&FORMAT=image/png&STYLES= If I use this same request, I get different results depending on whether the filter is turned on or off. Any suggestions as to how I can fix this would be much appreciated. Thanks, Jennifer LAYER NAME "Parks_GetInfo" STATUS OFF METADATA "wms_title" "Parks_GetInfo" "GROUP" "Polygon" "LAYER" "Parks_GetInfo" END #metadata TYPE POLYGON TEMPLATE "parkinfo_template.html" TRANSPARENCY 100 CONNECTION "user=mapserver password=******* dbname=parkinfo_current host=localhost" CONNECTIONTYPE POSTGIS DATA "the_geom_gcs from statewide_osdb_notsvector as foo using unique gid using srid=4326" #FILTER "access_cod = 'Restricted Access' or access_cod = 'Open Access'" CLASS OUTLINECOLOR 255 0 0 END #class TOLERANCE 5 PROJECTION "init=epsg:4326" END END # Layer From MMaganti at oriongis.com Thu Mar 12 13:04:14 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Thu, 12 Mar 2009 16:04:14 -0400 Subject: [mapserver-users] WFS-WMS question Message-ID: Hi What are the supported versions of WFS client (i.e. to consume WFS layer inside mapfile). Online document says 1.0.0. Same way, I want to know for WMS. Currently I am using map server 5.2 (If the support is extended after that). Thanks Murty -------------- next part -------------- An HTML attachment was scrubbed... URL: From shanksje at yahoo.com Thu Mar 12 13:33:17 2009 From: shanksje at yahoo.com (Jennifer Shanks) Date: Thu, 12 Mar 2009 13:33:17 -0700 (PDT) Subject: [mapserver-users] RE: 5.4 beta 3 - GetFeatureInfo /FILTER problems Message-ID: <353957.33236.qm@web83401.mail.sp1.yahoo.com> Hello Everyone, Gregor at HostGIS came to the rescue on this one. He did some testing and suggested adding parenthesis to my filter statement. So if I do the following my request returns the correct response: FILTER "(access_cod = 'Restricted Access' or access_cod = 'Open Access')" Thanks, Jennifer ----- Forwarded Message ---- From: Jennifer Shanks To: mapserver-users at lists.osgeo.org Sent: Thursday, March 12, 2009 1:55:07 PM Subject: 5.4 beta 3 - GetFeatureInfo /FILTER problems Hello, We installed 5.4 beta 3 last night to take advantage of the new labeling options. The new labels are great! I've noticed a problem with my GetFeatureInfo requests. If there is a data FILTER on the layer, the request returns the wrong feature (always the same feature, no matter which location I select in CA. If I comment out the FILTER, the request returns the correct result. Below is an example of my layer. And a request looks like this: http://www.parkinfo.org/cgi-bin/mapserv?map=wms_parkinfo_4326.map&SERVICE=WMS&SRS=EPSG:4326&VERSION=1.1.1&REQUEST=GetFeatureInfo&X=596&Y=636&QUERY_LAYERS=Parks_GetInfo&LAYERS=Parks_GetInfo&INFO_FORMAT=text/html&BBOX=-128.4521484375,36.13787471840729,-116.65283203124999,44.68427737181224&WIDTH=1060&HEIGHT=768&FORMAT=image/png&STYLES= If I use this same request, I get different results depending on whether the filter is turned on or off. Any suggestions as to how I can fix this would be much appreciated. Thanks, Jennifer LAYER NAME "Parks_GetInfo" STATUS OFF METADATA "wms_title" "Parks_GetInfo" "GROUP" "Polygon" "LAYER" "Parks_GetInfo" END #metadata TYPE POLYGON TEMPLATE "parkinfo_template.html" TRANSPARENCY 100 CONNECTION "user=mapserver password=******* dbname=parkinfo_current host=localhost" CONNECTIONTYPE POSTGIS DATA "the_geom_gcs from statewide_osdb_notsvector as foo using unique gid using srid=4326" #FILTER "access_cod = 'Restricted Access' or access_cod = 'Open Access'" CLASS OUTLINECOLOR 255 0 0 END #class TOLERANCE 5 PROJECTION "init=epsg:4326" END END # Layer From gregor at hostgis.com Thu Mar 12 14:00:34 2009 From: gregor at hostgis.com (Gregor at HostGIS) Date: Thu, 12 Mar 2009 14:00:34 -0700 Subject: [mapserver-users] RE: 5.4 beta 3 - GetFeatureInfo /FILTER problems In-Reply-To: <353957.33236.qm@web83401.mail.sp1.yahoo.com> References: <353957.33236.qm@web83401.mail.sp1.yahoo.com> Message-ID: <49B977F2.1010301@hostgis.com> Jennifer Shanks wrote: > FILTER "(access_cod = 'Restricted Access' or access_cod = 'Open Access')" I suggested the parens as disambiguation, when I saw this in PostgreSQL's query log. WHERE code = 'Restricted' or code = 'Open' and gid = 12345 As such, her own FILTER clause seems just fine but when combined with MapServer's behind-the-work an ambiguous clause was generated. Would it be appropriate to open a ticket on this, to have the PostGIS driver automatically place the statement in parens in order to prevent such "MapServer-induced ambiguity" ? -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ From Steve.Lime at dnr.state.mn.us Thu Mar 12 14:41:15 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 12 Mar 2009 16:41:15 -0500 Subject: [mapserver-users] RE: 5.4 beta 3 - GetFeatureInfo /FILTER problems In-Reply-To: <49B977F2.1010301@hostgis.com> References: <353957.33236.qm@web83401.mail.sp1.yahoo.com> <49B977F2.1010301@hostgis.com> Message-ID: <49B93B2D.5157.008F.0@dnr.state.mn.us> Probably a result of some of the PostGIS driver work that was done for 5.4. A bug would be wise I think. Make sure to assign to the PostGIS component. Steve >>> On 3/12/2009 at 4:00 PM, in message <49B977F2.1010301 at hostgis.com>, Gregor at HostGIS wrote: > Jennifer Shanks wrote: >> FILTER "(access_cod = 'Restricted Access' or access_cod = 'Open Access')" > > I suggested the parens as disambiguation, when I saw this in > PostgreSQL's query log. > > WHERE code = 'Restricted' or code = 'Open' and gid = 12345 > > As such, her own FILTER clause seems just fine but when combined with > MapServer's behind-the-work an ambiguous clause was generated. Would it > be appropriate to open a ticket on this, to have the PostGIS driver > automatically place the statement in parens in order to prevent such > "MapServer-induced ambiguity" ? From gregor at hostgis.com Thu Mar 12 15:08:16 2009 From: gregor at hostgis.com (Gregor at HostGIS) Date: Thu, 12 Mar 2009 15:08:16 -0700 Subject: [mapserver-users] RE: 5.4 beta 3 - GetFeatureInfo /FILTER problems In-Reply-To: <49B93B2D.5157.008F.0@dnr.state.mn.us> References: <353957.33236.qm@web83401.mail.sp1.yahoo.com> <49B977F2.1010301@hostgis.com> <49B93B2D.5157.008F.0@dnr.state.mn.us> Message-ID: <49B987D0.5050605@hostgis.com> Steve Lime wrote: > Probably a result of some of the PostGIS driver work that was done for 5.4. A bug would be > wise I think. Make sure to assign to the PostGIS component. Done http://trac.osgeo.org/mapserver/ticket/2937 -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ From ruijgomes at gmail.com Thu Mar 12 19:41:44 2009 From: ruijgomes at gmail.com (Rui Gomes) Date: Fri, 13 Mar 2009 02:41:44 +0000 Subject: [mapserver-users] NQuery problem Message-ID: <31e2f7000903121941t35e48f0dgd1a0264be36f2475@mail.gmail.com> I try to use the nquery function and i recived the follow error message: mapserv(): Web application error. Metadata qstring_validation_pattern is not set. To avoid this i insert in the mapfile the follow lines inr the layer i want to query: METADATA qstring_validation_pattern '.' END What this lines means. Why i have to put it? Thanks -- Rui Gomes From ruijgomes at gmail.com Thu Mar 12 19:46:23 2009 From: ruijgomes at gmail.com (Rui Gomes) Date: Fri, 13 Mar 2009 02:46:23 +0000 Subject: [mapserver-users] Another itemquery problem Message-ID: <31e2f7000903121946xe347aaan8e3968ba63e52486@mail.gmail.com> How i do to query all my layers in itemquery. If i don't put the qlayer i recived the follow error: mapserv(): Web application error. Query layer not set or references an invalid layer. And to extend the seach to all the attributes? Thanks -- Rui Gomes From Steve.Lime at dnr.state.mn.us Thu Mar 12 22:04:02 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 13 Mar 2009 00:04:02 -0500 Subject: [mapserver-users] Prevalence of the use of queryfiles... Message-ID: <49B9A2F20200008F0002189A@co5.dnr.state.mn.us> Hi all: Consider this a survey of sorts. I'm wondering how many of you make use of saving queries, either via the CGI or MapScript. It's an old feature that isn't terribly useful and I'm trying to understand the pain the community might incur if they go away in 6.0. If you didn't know they existed or how you might use them then it's safe to say you don't need 'em. Steve From Steve.Lime at dnr.state.mn.us Thu Mar 12 22:06:29 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 13 Mar 2009 00:06:29 -0500 Subject: [mapserver-users] NQuery problem Message-ID: <49B9A3850200008F0002189E@co5.dnr.state.mn.us> Nquery doesn't require qstring validation. What does your URL look like? Steve >>> Rui Gomes 03/12/09 9:42 PM >>> I try to use the nquery function and i recived the follow error message: mapserv(): Web application error. Metadata qstring_validation_pattern is not set. To avoid this i insert in the mapfile the follow lines inr the layer i want to query: METADATA qstring_validation_pattern '.' END What this lines means. Why i have to put it? Thanks -- Rui Gomes _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Thu Mar 12 22:08:34 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 13 Mar 2009 00:08:34 -0500 Subject: [mapserver-users] Another itemquery problem Message-ID: <49B9A4020200008F000218A3@co5.dnr.state.mn.us> Sorry, you don't. Attribute queries search only a single layer. You'd need to use MapScript to get around this limitation (or hack mapquery.c to get around the problem). Steve >>> Rui Gomes 03/12/09 9:54 PM >>> How i do to query all my layers in itemquery. If i don't put the qlayer i recived the follow error: mapserv(): Web application error. Query layer not set or references an invalid layer. And to extend the seach to all the attributes? Thanks -- Rui Gomes _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From subha at gslab.com Thu Mar 12 22:33:34 2009 From: subha at gslab.com (Subha Ramakrishnan) Date: Fri, 13 Mar 2009 11:03:34 +0530 Subject: [mapserver-users] No result from nquery In-Reply-To: References: <49B90D10.9080201@gslab.com> Message-ID: <49B9F02E.3000909@gslab.com> Hi, Thanks for the reply. I did check the EXTENT and the one that i give is withing the map extent. Still it doesn't work. Any idea?? Thanks. Subha Richard Greenwood wrote: > On Thu, Mar 12, 2009 at 7:24 AM, Subha Ramakrishnan wrote: > >> Hi, >> >> I am using nquery mode to fetch features lying within an area on the map. >> The url looks like this : >> >> "http://localhost/cgi-bin/mapserv?MAP=abc.map&MODE=nquery&LAYERS=abc&imgext=8920506.9477+3496535.4213+8954750.736418456+3530779.2100573704&imgbox=657+209+686+239&imgxy=670+230" >> >> Am i doing something wrong or missing any parameter in the url because this >> is not returning any result. But there are features within this area. >> I tried giving the imgext in lat lon also but doesn't work. >> The values for "imgext" correspond to bounding box (bottom left and top >> right) and "imgbox" corresponds to pixel values from top left to bottom >> right. Is this correct? >> > > Check the EXTENT in your map file. MapServer will not return query > results outside of the defined extent. > > From deanm75 at hotmail.com Thu Mar 12 22:33:11 2009 From: deanm75 at hotmail.com (Dean) Date: Fri, 13 Mar 2009 15:33:11 +1000 Subject: [mapserver-users] Getting information out of shapefile Message-ID: Hi, I have a requirement to use PHP to get information from a shapefile. I was hoping MapServer/MapScript might be able to do this as Im already using it to serve custom mapping laid on top of the Google API. I have a custom shape file (flat file) and I need to be able to query somehow and have the server tell me what polygons/attributes a certain point is contained in. Eg, I send a lat/long to the map server and it returns a list of polygons/attributes that the lat/long pair is surrounded by. Is this possible with MapServer/Map0Script? If not, where should I be looking to get this kind of query information? Regards Dean -------------- next part -------------- An HTML attachment was scrubbed... URL: From subha at gslab.com Thu Mar 12 22:43:54 2009 From: subha at gslab.com (Subha Ramakrishnan) Date: Fri, 13 Mar 2009 11:13:54 +0530 Subject: [mapserver-users] NQuery problem In-Reply-To: <49B9A3850200008F0002189E@co5.dnr.state.mn.us> References: <49B9A3850200008F0002189E@co5.dnr.state.mn.us> Message-ID: <49B9F29A.9050607@gslab.com> Hi, I am also facing a similar problem. It doesn't throw an error but it doesn't give me a result either. My url looks like this : http://localhost/cgi-bin/mapserv?MAP=abc.map&MODE=nquery&LAYERS=abc&imgext=8920506.9477+3496535.4213+8954750.736418456+3530779.2100573704&imgbox=657+209+686+239&imgxy=670+230 The extent given here is within the map extent. Can you please tell me if there's some mistake here? Thanks a lot. Subha Steve Lime wrote: > Nquery doesn't require qstring validation. What does your URL look like? > > Steve > > >>>> Rui Gomes 03/12/09 9:42 PM >>> >>>> > I try to use the nquery function and i recived the follow error message: > > mapserv(): Web application error. Metadata qstring_validation_pattern > is not set. > > To avoid this i insert in the mapfile the follow lines inr the layer i > want to query: > > > METADATA > qstring_validation_pattern '.' > END > > > What this lines means. Why i have to put it? > > Thanks > From Steve.Lime at dnr.state.mn.us Thu Mar 12 22:46:55 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 13 Mar 2009 00:46:55 -0500 Subject: [mapserver-users] NQuery problem Message-ID: <49B9ACFF0200008F000218BB@co5.dnr.state.mn.us> For a layer to be queryable you have to: 1 - either set Status DEFAULT, or explicitly turn it on (e.g. layer=abc) 2 - define the layer TEMPLATE property Are those true? Steve >>> Subha Ramakrishnan 03/13/09 12:38 AM >>> Hi, I am also facing a similar problem. It doesn't throw an error but it doesn't give me a result either. My url looks like this : http://localhost/cgi-bin/mapserv?MAP=abc.map&MODE=nquery&LAYERS=abc&imgext=8920506.9477+3496535.4213+8954750.736418456+3530779.2100573704&imgbox=657+209+686+239&imgxy=670+230 The extent given here is within the map extent. Can you please tell me if there's some mistake here? Thanks a lot. Subha Steve Lime wrote: > Nquery doesn't require qstring validation. What does your URL look like? > > Steve > > >>>> Rui Gomes 03/12/09 9:42 PM >>> >>>> > I try to use the nquery function and i recived the follow error message: > > mapserv(): Web application error. Metadata qstring_validation_pattern > is not set. > > To avoid this i insert in the mapfile the follow lines inr the layer i > want to query: > > > METADATA > qstring_validation_pattern '.' > END > > > What this lines means. Why i have to put it? > > Thanks > From subha at gslab.com Thu Mar 12 23:44:03 2009 From: subha at gslab.com (Subha Ramakrishnan) Date: Fri, 13 Mar 2009 12:14:03 +0530 Subject: [mapserver-users] NQuery problem In-Reply-To: <49B9ACFF0200008F000218BB@co5.dnr.state.mn.us> References: <49B9ACFF0200008F000218BB@co5.dnr.state.mn.us> Message-ID: <49BA00B3.6060606@gslab.com> Hi Here's how the layer looks in my mapfile: layer name abc connectiontype postgis connection "user= user dbname=xyz host=localhost" type point tolerance 20 group world dump true METADATA "wfs_title" "Factbook Metadata" "gml_include_items" "all" "wms_feature_info_mime_type" "text/html" END template "template.html" projection "init=epsg:4326" end transparency 65 status on data "topology from tablename using unique id using SRID = -1" classitem "veg_class" class name "AGRICULTURE" expression "AGRICULTURE" style symbol 'custom_icon' size 20 color 179 189 209 outlinecolor 000 000 000 end end end Status is on and template is defined. Am i missing something else? Thanks a lot for the help. Subha Steve Lime wrote: > For a layer to be queryable you have to: > > 1 - either set Status DEFAULT, or explicitly turn it on (e.g. layer=abc) > 2 - define the layer TEMPLATE property > > Are those true? > > Steve > > >>>> Subha Ramakrishnan 03/13/09 12:38 AM >>> >>>> > Hi, > > I am also facing a similar problem. It doesn't throw an error but it > doesn't give me a result either. > > My url looks like this : > http://localhost/cgi-bin/mapserv?MAP=abc.map&MODE=nquery&LAYERS=abc&imgext=8920506.9477+3496535.4213+8954750.736418456+3530779.2100573704&imgbox=657+209+686+239&imgxy=670+230 > > The extent given here is within the map extent. > Can you please tell me if there's some mistake here? > > Thanks a lot. > > Subha > > Steve Lime wrote: > >> Nquery doesn't require qstring validation. What does your URL look like? >> >> Steve >> >> >> >>>>> Rui Gomes 03/12/09 9:42 PM >>> >>>>> >>>>> >> I try to use the nquery function and i recived the follow error message: >> >> mapserv(): Web application error. Metadata qstring_validation_pattern >> is not set. >> >> To avoid this i insert in the mapfile the follow lines inr the layer i >> want to query: >> >> >> METADATA >> qstring_validation_pattern '.' >> END >> >> >> What this lines means. Why i have to put it? >> >> Thanks >> >> > > > > From ruijgomes at gmail.com Fri Mar 13 02:07:24 2009 From: ruijgomes at gmail.com (Rui Gomes) Date: Fri, 13 Mar 2009 09:07:24 +0000 Subject: [mapserver-users] NQuery problem In-Reply-To: <49B9A3850200008F0002189E@co5.dnr.state.mn.us> References: <49B9A3850200008F0002189E@co5.dnr.state.mn.us> Message-ID: <31e2f7000903130207x139e8fccgd537d0640b1a57c8@mail.gmail.com> I sorry to all and to you. Is not Nquery but Itemnquery. I see my error but i can't "deleted" it. 2009/3/13 Steve Lime : > Nquery doesn't require qstring validation. What does your URL look like? > > Steve > >>>> Rui Gomes 03/12/09 9:42 PM >>> > I try to use the nquery function and i recived the follow error message: > > mapserv(): Web application error. Metadata qstring_validation_pattern > is not set. > > To avoid this i insert in the mapfile the follow lines inr the layer i > want to query: > > > METADATA > ? ? ? ? ?qstring_validation_pattern '.' > END > > > What this lines means. Why i have to put it? > > Thanks > -- > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Rui Gomes > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Rui Gomes From M.Kofahl at gmx.net Fri Mar 13 02:16:30 2009 From: M.Kofahl at gmx.net (Martin Kofahl) Date: Fri, 13 Mar 2009 10:16:30 +0100 Subject: [mapserver-users] Status on ticket 2582? In-Reply-To: <1235428850752-2374868.post@n2.nabble.com> References: <1234821290361-2337548.post@n2.nabble.com> <4999E16F.30502@mapgears.com> <1235137197915-2358883.post@n2.nabble.com> <200902200907.55282.aboudreault@mapgears.com> <499EBA5E.4010004@gatewaygeomatics.com> <200902200931.38323.aboudreault@mapgears.com> <499EC67F.2060409@gatewaygeomatics.com> <1235168205544-2361593.post@n2.nabble.com> <499FB3EB.9050400@gmx.net> <1235211218284-2363221.post@n2.nabble.com> <49A15AFF.8060107@gmx.net> <1235312329092-2367635.post@n2.nabble.com> <1235312823870-2367659.post@n2.nabble.com> <49A1863F.2070809@mapgears.com> <49A1A2A4.1010809@gmx.net> <1235343099022-2369505.post@n2.nabble.com> <49A291FF.5157.008F.0@dnr.state.mn.us> <200902231337.16424.aboudreault@mapgears.com> <1235428850752-2374868.post@n2.nabble.com> Message-ID: <20090313091630.214120@gmx.net> Is there still interest in discussing http://trac.osgeo.org/mapserver/wiki/HidingLayersInOGCWebServices ? -------- Original-Nachricht -------- > Datum: Mon, 23 Feb 2009 14:40:50 -0800 (PST) > Von: paalkr > An: mapserver-users at lists.osgeo.org > Betreff: Re: [mapserver-users] Status on ticket 2582? > > Great! > > Regards, > P?l Kristensen > > > Alan Boudreault wrote: > > > > I'll make the RFC in the next days. > > > > Alan > > > > On February 23, 2009 01:09:36 pm Steve Lime wrote: > >> Hi guys: I think we need a small RFC on this issue. The impacts are too > >> broad to handle > >> without a formal plan. Anyone care to take the lead? > >> > >> Steve > >> > >> >>> On 2/22/2009 at 4:51 PM, in message > >> > >> <1235343099022-2369505.post at n2.nabble.com>, > >> > >> paalkr wrote: > >> > Hi! > >> > > >> > Good idea, this could even make the dump == false / true for OWS > >> > >> redundant. > >> > >> > Adding wfs_disable_request 'all' would effectively prevent wfs > >> > >> support. > >> > >> > Adding wms_disable_request 'GetFeatureinfo' would be the same as dump > >> > >> == > >> > >> > false on a WMS layer. > >> > > >> > I think the following situations are the most common where this > >> > >> "hiding" > >> > >> > functionality would be needed: > >> > > >> > 1) Adding a "copyright" statement to a map. Hiding the layer and > >> > >> setting > >> > >> > status to default will insure that the label is rendered regardless > >> > >> of > >> > >> > requested layers. > >> > 2) Exposing different raster resolution layers as one "logical" > >> > >> layer. This > >> > >> > can be achieved in two different ways > >> > a) adding all the raster layers (status == default) to a group as > >> > >> hidden > >> > >> > layers (the group will (should) then become hidden as well), then add > >> > >> a > >> > >> > "dummy" layer (which don't draws anything) with the same name as the > >> > >> group. > >> > >> > Requesting the dummy layer would actually also request the group > >> > >> because the > >> > >> > name is identical. > >> > b) adding all the layers as hidden single layers (status == default) > >> > >> and use > >> > >> > the requires mechanism to set dependencies to a "dummy" layer. > >> > 3) Hiding tileindex layers. Setting up the tileindex as a separate > >> > >> layer is > >> > >> > the only way of adding a tileindex to e.g PostgreSQL atm. > >> > 4) Enable / expose some layers only for certain service types (wms, > >> > >> wfs, > >> > >> > sos, wcs) > >> > 5) Limit the "users" ability to interact and change the map > >> > >> appearance. > >> > >> > Anyway. I hope that either Martins patch is added to 5.4 or that we > >> > >> agree on > >> > >> > something similar, in time to reach the 5.4 release. > >> > > >> > Regards, > >> > P?l Kristensen > >> > > >> > Martin Kofahl wrote: > >> >> Hi, > >> >> it becomes apparent that we try to solve different issues with > >> > >> hiding, > >> > >> >> ignoring and so on. We should try to find an implementation which > >> > >> also > >> > >> >> solves related tickets but is open for future requirements. > >> >> > >> >> So couldn't we use a metadata like [service]_disable_request which > >> > >> lists > >> > >> >> all request type (per service) MapServer shouldn't support for a > >> > >> layer? > >> > >> >> Maybe expanded with the request type 'all'. Possible examples: > >> >> > >> >> wms_disable_request 'all' > >> >> wms_disable_request 'getcapabilities getfeatureinfo' > >> >> > >> >> This should solve tickets 337, 1952, 2582. > >> >> What do you think? > >> >> > >> >> Martin > >> > > >> > -- > >> > View this message in context: > >> > http://n2.nabble.com/Status-on-ticket-2582--tp2337548p2369505.html > >> > Sent from the Mapserver - User mailing list archive at Nabble.com. > >> > > >> > _______________________________________________ > >> > mapserver-users mailing list > >> > mapserver-users at lists.osgeo.org > >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > -- > View this message in context: > http://n2.nabble.com/Status-on-ticket-2582--tp2337548p2374868.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From ruijgomes at gmail.com Fri Mar 13 02:19:21 2009 From: ruijgomes at gmail.com (Rui Gomes) Date: Fri, 13 Mar 2009 09:19:21 +0000 Subject: [mapserver-users] Another itemquery problem In-Reply-To: <49B9A4020200008F000218A3@co5.dnr.state.mn.us> References: <49B9A4020200008F000218A3@co5.dnr.state.mn.us> Message-ID: <31e2f7000903130219w30cd19a6r7d7715c5ecd1b435@mail.gmail.com> Ok. And a search like all citys with name equal to Philadelphia and poplation less than 10.000 is possible but only using mapscript. I correct? 2009/3/13 Steve Lime : > Sorry, you don't. Attribute queries search only a single layer. You'd need to > use MapScript to get around this limitation (or hack mapquery.c to get > around the problem). > > Steve > >>>> Rui Gomes 03/12/09 9:54 PM >>> > How i do to query all my layers in itemquery. If i don't put the > qlayer i recived the follow error: > > mapserv(): Web application error. Query layer not set or references an > invalid layer. > > > And to extend the seach to all the attributes? > > > Thanks > -- > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Rui Gomes > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Rui Gomes From Jukka.Rahkonen at mmmtike.fi Fri Mar 13 03:05:44 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 13 Mar 2009 12:05:44 +0200 Subject: [mapserver-users] Status on ticket 2582? In-Reply-To: <20090313091630.214120@gmx.net> Message-ID: Hi, Don't know about discussions, but it would be nice to be able to hide the scale depended members of a group (use case 2). -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > Martin Kofahl > L?hetetty: 13. maaliskuuta 2009 11:17 > Vastaanottaja: paalkr; mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] Status on ticket 2582? > > Is there still interest in discussing > http://trac.osgeo.org/mapserver/wiki/HidingLayersInOGCWebServices ? > > -------- Original-Nachricht -------- > > Datum: Mon, 23 Feb 2009 14:40:50 -0800 (PST) > > Von: paalkr > > An: mapserver-users at lists.osgeo.org > > Betreff: Re: [mapserver-users] Status on ticket 2582? > > > > > Great! > > > > Regards, > > P?l Kristensen > > > > > > Alan Boudreault wrote: > > > > > > I'll make the RFC in the next days. > > > > > > Alan > > > > > > On February 23, 2009 01:09:36 pm Steve Lime wrote: > > >> Hi guys: I think we need a small RFC on this issue. The > impacts are > > >> too broad to handle without a formal plan. Anyone care > to take the > > >> lead? > > >> > > >> Steve > > >> > > >> >>> On 2/22/2009 at 4:51 PM, in message > > >> > > >> <1235343099022-2369505.post at n2.nabble.com>, > > >> > > >> paalkr wrote: > > >> > Hi! > > >> > > > >> > Good idea, this could even make the dump == false / > true for OWS > > >> > > >> redundant. > > >> > > >> > Adding wfs_disable_request 'all' would effectively prevent wfs > > >> > > >> support. > > >> > > >> > Adding wms_disable_request 'GetFeatureinfo' would be > the same as > > >> > dump > > >> > > >> == > > >> > > >> > false on a WMS layer. > > >> > > > >> > I think the following situations are the most common where this > > >> > > >> "hiding" > > >> > > >> > functionality would be needed: > > >> > > > >> > 1) Adding a "copyright" statement to a map. Hiding the > layer and > > >> > > >> setting > > >> > > >> > status to default will insure that the label is rendered > > >> > regardless > > >> > > >> of > > >> > > >> > requested layers. > > >> > 2) Exposing different raster resolution layers as one "logical" > > >> > > >> layer. This > > >> > > >> > can be achieved in two different ways > > >> > a) adding all the raster layers (status == default) to > a group as > > >> > > >> hidden > > >> > > >> > layers (the group will (should) then become hidden as > well), then > > >> > add > > >> > > >> a > > >> > > >> > "dummy" layer (which don't draws anything) with the > same name as > > >> > the > > >> > > >> group. > > >> > > >> > Requesting the dummy layer would actually also request > the group > > >> > > >> because the > > >> > > >> > name is identical. > > >> > b) adding all the layers as hidden single layers (status == > > >> > default) > > >> > > >> and use > > >> > > >> > the requires mechanism to set dependencies to a "dummy" layer. > > >> > 3) Hiding tileindex layers. Setting up the tileindex as a > > >> > separate > > >> > > >> layer is > > >> > > >> > the only way of adding a tileindex to e.g PostgreSQL atm. > > >> > 4) Enable / expose some layers only for certain service types > > >> > (wms, > > >> > > >> wfs, > > >> > > >> > sos, wcs) > > >> > 5) Limit the "users" ability to interact and change the map > > >> > > >> appearance. > > >> > > >> > Anyway. I hope that either Martins patch is added to > 5.4 or that > > >> > we > > >> > > >> agree on > > >> > > >> > something similar, in time to reach the 5.4 release. > > >> > > > >> > Regards, > > >> > P?l Kristensen > > >> > > > >> > Martin Kofahl wrote: > > >> >> Hi, > > >> >> it becomes apparent that we try to solve different issues with > > >> > > >> hiding, > > >> > > >> >> ignoring and so on. We should try to find an implementation > > >> >> which > > >> > > >> also > > >> > > >> >> solves related tickets but is open for future requirements. > > >> >> > > >> >> So couldn't we use a metadata like [service]_disable_request > > >> >> which > > >> > > >> lists > > >> > > >> >> all request type (per service) MapServer shouldn't > support for a > > >> > > >> layer? > > >> > > >> >> Maybe expanded with the request type 'all'. Possible examples: > > >> >> > > >> >> wms_disable_request 'all' > > >> >> wms_disable_request 'getcapabilities getfeatureinfo' > > >> >> > > >> >> This should solve tickets 337, 1952, 2582. > > >> >> What do you think? > > >> >> > > >> >> Martin > > >> > > > >> > -- > > >> > View this message in context: > > >> > > http://n2.nabble.com/Status-on-ticket-2582--tp2337548p2369505.htm > > >> > l Sent from the Mapserver - User mailing list archive at > > >> > Nabble.com. > > >> > > > >> > _______________________________________________ > > >> > mapserver-users mailing list > > >> > mapserver-users at lists.osgeo.org > > >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > >> > > >> _______________________________________________ > > >> mapserver-users mailing list > > >> mapserver-users at lists.osgeo.org > > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > -- > > View this message in context: > > http://n2.nabble.com/Status-on-ticket-2582--tp2337548p2374868.html > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > > _______________________________________________ > > 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 nikos at maich.gr Fri Mar 13 03:54:49 2009 From: nikos at maich.gr (nikos at maich.gr) Date: Fri, 13 Mar 2009 12:54:49 +0200 (EET) Subject: [mapserver-users] Re: Prevalence of the use of queryfiles... In-Reply-To: <20090313053419.F1A8EE016D9@lists.osgeo.org> References: <20090313053419.F1A8EE016D9@lists.osgeo.org> Message-ID: <2333.193.218.36.79.1236941689.squirrel@193.218.36.79> Hi Steve, I for one am saving queries for subsequent map operations... If there's a better alternative, I'm all ears... regards, nick > > Message: 6 > Date: Fri, 13 Mar 2009 00:04:02 -0500 > From: "Steve Lime" > Subject: [mapserver-users] Prevalence of the use of queryfiles... > To: > Message-ID: <49B9A2F20200008F0002189A at co5.dnr.state.mn.us> > Content-Type: text/plain; charset=US-ASCII > > Hi all: Consider this a survey of sorts. I'm wondering how many of you > make use of saving queries, either via the CGI or MapScript. It's an old > feature that isn't terribly useful and I'm trying to understand the pain > the community might incur if they go away in 6.0. If you didn't know they > existed or how you might use them then it's safe to say you don't need > 'em. > > Steve > From Steve.Lime at dnr.state.mn.us Fri Mar 13 06:18:41 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 13 Mar 2009 08:18:41 -0500 Subject: [mapserver-users] Another itemquery problem Message-ID: <49BA16E20200008F000218C8@co5.dnr.state.mn.us> If you need to search multiple layers sequentially then yes. Steve >>> Rui Gomes 03/13/09 4:20 AM >>> Ok. And a search like all citys with name equal to Philadelphia and poplation less than 10.000 is possible but only using mapscript. I correct? 2009/3/13 Steve Lime : > Sorry, you don't. Attribute queries search only a single layer. You'd need to > use MapScript to get around this limitation (or hack mapquery.c to get > around the problem). > > Steve > >>>> Rui Gomes 03/12/09 9:54 PM >>> > How i do to query all my layers in itemquery. If i don't put the > qlayer i recived the follow error: > > mapserv(): Web application error. Query layer not set or references an > invalid layer. > > > And to extend the seach to all the attributes? > > > Thanks > -- > Rui Gomes > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Rui Gomes _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From David.Fawcett at state.mn.us Fri Mar 13 06:24:26 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Fri, 13 Mar 2009 08:24:26 -0500 Subject: [mapserver-users] NQuery problem In-Reply-To: <49BA00B3.6060606@gslab.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA2AE@s-sp22.pca.state.mn.us> Subha, In taking a quick look at your layer, I think that you have a problem with your data statement. I am quite sure that if you want to use an attribute(column) from your data layer for classification or query results, you need to explicitly include the name of that column in the select query that is in your data statement. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Subha Ramakrishnan Sent: Friday, March 13, 2009 1:44 AM To: Steve Lime Cc: ruijgomes at gmail.com; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] NQuery problem Hi Here's how the layer looks in my mapfile: layer name abc connectiontype postgis connection "user= user dbname=xyz host=localhost" type point tolerance 20 group world dump true METADATA "wfs_title" "Factbook Metadata" "gml_include_items" "all" "wms_feature_info_mime_type" "text/html" END template "template.html" projection "init=epsg:4326" end transparency 65 status on data "topology from tablename using unique id using SRID = -1" classitem "veg_class" class name "AGRICULTURE" expression "AGRICULTURE" style symbol 'custom_icon' size 20 color 179 189 209 outlinecolor 000 000 000 end end end Status is on and template is defined. Am i missing something else? Thanks a lot for the help. Subha Steve Lime wrote: > For a layer to be queryable you have to: > > 1 - either set Status DEFAULT, or explicitly turn it on (e.g. layer=abc) > 2 - define the layer TEMPLATE property > > Are those true? > > Steve > > >>>> Subha Ramakrishnan 03/13/09 12:38 AM >>> >>>> > Hi, > > I am also facing a similar problem. It doesn't throw an error but it > doesn't give me a result either. > > My url looks like this : > http://localhost/cgi-bin/mapserv?MAP=abc.map&MODE=nquery&LAYERS=abc&im > gext=8920506.9477+3496535.4213+8954750.736418456+3530779.2100573704&im > gbox=657+209+686+239&imgxy=670+230 > > The extent given here is within the map extent. > Can you please tell me if there's some mistake here? > > Thanks a lot. > > Subha > > Steve Lime wrote: > >> Nquery doesn't require qstring validation. What does your URL look >> like? >> >> Steve >> >> >> >>>>> Rui Gomes 03/12/09 9:42 PM >>> >>>>> >>>>> >> I try to use the nquery function and i recived the follow error >> message: >> >> mapserv(): Web application error. Metadata qstring_validation_pattern >> is not set. >> >> To avoid this i insert in the mapfile the follow lines inr the layer >> i want to query: >> >> >> METADATA >> qstring_validation_pattern '.' >> END >> >> >> What this lines means. Why i have to put it? >> >> Thanks >> >> > > > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jjschlafley at yahoo.com Fri Mar 13 06:28:46 2009 From: jjschlafley at yahoo.com (J.J. Schlafley) Date: Fri, 13 Mar 2009 06:28:46 -0700 (PDT) Subject: [mapserver-users] Getting information out of shapefile References: Message-ID: <687464.67946.qm@web52305.mail.re2.yahoo.com> Yes, you can use PHP mapscript to do a point spatial query.?http://mapserver.org documentation explains how to use it. ________________________________ From: Dean To: mapserver-users at lists.osgeo.org Sent: Friday, March 13, 2009 1:33:11 AM Subject: [mapserver-users] Getting information out of shapefile Hi, ? I have a requirement to use PHP to get information from a shapefile.? I was hoping MapServer/MapScript might be able to do this as Im already using it to serve custom mapping laid on top of the Google API. I have a custom shape file (flat file) and I need to be able to query somehow and have the server tell me what polygons/attributes a certain point is contained in. Eg, I send a lat/long to the map server and it returns a list of polygons/attributes that the lat/long pair is surrounded by. Is this possible with MapServer/Map0Script?? If not, where should I be looking to get this kind of query information? ? Regards Dean -------------- next part -------------- An HTML attachment was scrubbed... URL: From raffaele.morelli at gmail.com Fri Mar 13 07:39:02 2009 From: raffaele.morelli at gmail.com (Cassiel) Date: Fri, 13 Mar 2009 15:39:02 +0100 Subject: [mapserver-users] Tile indexes Message-ID: Hi you all, I can't get tile indexes working with my raster files with pmapper I am using gdaltindex as exlained in ms doc but the layer I am trying to index is not showed... no error is generated in php error log file nor in the pmapper one. index.shp & mapfile are in the same directory, the index.dbf file is showing a relative path as the DATA path in the mapfile (which is commented according to ms docu). mapserver version in 5.0.3 on debian testing Any ideas? Regards r -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Fri Mar 13 08:56:36 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 13 Mar 2009 10:56:36 -0500 Subject: [mapserver-users] Tile indexes In-Reply-To: References: Message-ID: <49BA8234.2050501@swoodbridge.com> Cassiel wrote: > Hi you all, > > I can't get tile indexes working with my raster files with pmapper > > I am using gdaltindex as exlained in ms doc but the layer I am trying to > index is not showed... no error is generated in php error log file nor > in the pmapper one. > > index.shp & mapfile are in the same directory, the index.dbf file is > showing a relative path as the DATA path in the mapfile (which is > commented according to ms docu). > > mapserver version in 5.0.3 on debian testing > > Any ideas? Show us your LAYER block from your mapfile would probably be helpful. From subha at gslab.com Fri Mar 13 08:12:36 2009 From: subha at gslab.com (Subha Ramakrishnan) Date: Fri, 13 Mar 2009 20:42:36 +0530 Subject: [mapserver-users] NQuery problem In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA2AE@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA2AE@s-sp22.pca.state.mn.us> Message-ID: <49BA77E4.2000806@gslab.com> Hi David, Thanks a lot for the reply. It would be great if you can give me an example url. Thanks & regards, Subha Fawcett, David wrote: > Subha, > > In taking a quick look at your layer, I think that you have a problem > with your data statement. I am quite sure that if you want to use an > attribute(column) from your data layer for classification or query > results, you need to explicitly include the name of that column in the > select query that is in your data statement. > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Subha > Ramakrishnan > Sent: Friday, March 13, 2009 1:44 AM > To: Steve Lime > Cc: ruijgomes at gmail.com; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] NQuery problem > > > Hi > > Here's how the layer looks in my mapfile: > layer > name abc > connectiontype postgis > connection "user= user dbname=xyz host=localhost" > type point > tolerance 20 > group world > dump true > METADATA > "wfs_title" "Factbook Metadata" > "gml_include_items" "all" > "wms_feature_info_mime_type" "text/html" > END > template "template.html" > projection > "init=epsg:4326" > end > transparency 65 > status on > data "topology from tablename using unique id using SRID = -1" > classitem "veg_class" > class > name "AGRICULTURE" > expression "AGRICULTURE" > style > symbol 'custom_icon' > size 20 > color 179 189 209 > outlinecolor 000 000 000 > end > end > end > > Status is on and template is defined. > Am i missing something else? > > Thanks a lot for the help. > > Subha > Steve Lime wrote: > >> For a layer to be queryable you have to: >> >> 1 - either set Status DEFAULT, or explicitly turn it on (e.g. >> > layer=abc) > >> 2 - define the layer TEMPLATE property >> >> Are those true? >> >> Steve >> >> >> >>>>> Subha Ramakrishnan 03/13/09 12:38 AM >>> >>>>> >>>>> >> Hi, >> >> I am also facing a similar problem. It doesn't throw an error but it >> doesn't give me a result either. >> >> My url looks like this : >> http://localhost/cgi-bin/mapserv?MAP=abc.map&MODE=nquery&LAYERS=abc&im >> gext=8920506.9477+3496535.4213+8954750.736418456+3530779.2100573704&im >> gbox=657+209+686+239&imgxy=670+230 >> >> The extent given here is within the map extent. >> Can you please tell me if there's some mistake here? >> >> Thanks a lot. >> >> Subha >> >> Steve Lime wrote: >> >> >>> Nquery doesn't require qstring validation. What does your URL look >>> like? >>> >>> Steve >>> >>> >>> >>> >>>>>> Rui Gomes 03/12/09 9:42 PM >>> >>>>>> >>>>>> >>>>>> >>> I try to use the nquery function and i recived the follow error >>> message: >>> >>> mapserv(): Web application error. Metadata qstring_validation_pattern >>> > > >>> is not set. >>> >>> To avoid this i insert in the mapfile the follow lines inr the layer >>> i want to query: >>> >>> >>> METADATA >>> qstring_validation_pattern '.' >>> END >>> >>> >>> What this lines means. Why i have to put it? >>> >>> Thanks >>> >>> >>> >> >> >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From raffaele.morelli at gmail.com Fri Mar 13 08:08:27 2009 From: raffaele.morelli at gmail.com (Cassiel) Date: Fri, 13 Mar 2009 16:08:27 +0100 Subject: [mapserver-users] Tile indexes In-Reply-To: <49BA8234.2050501@swoodbridge.com> References: <49BA8234.2050501@swoodbridge.com> Message-ID: 2009/3/13 Stephen Woodbridge > Cassiel wrote: > >> Hi you all, >> >> I can't get tile indexes working with my raster files with pmapper >> >> I am using gdaltindex as exlained in ms doc but the layer I am trying to >> index is not showed... no error is generated in php error log file nor in >> the pmapper one. >> >> index.shp & mapfile are in the same directory, the index.dbf file is >> showing a relative path as the DATA path in the mapfile (which is commented >> according to ms docu). >> >> mapserver version in 5.0.3 on debian testing >> >> Any ideas? >> > > Show us your LAYER block from your mapfile would probably be helpful. Here it is, tiled gtiffs are in /var/www/cem/cem_webgis/images/raster/ and the index.dbf paths are "../../images/raster/ita_dem40.tif" LAYER NAME 'dem40' STATUS ON TYPE RASTER TILEINDEX "/var/www/cem/cem_webgis/config/common/dem_index.shp" TILEITEM "location" #DATA '../../images/raster/ita_dem40.tif' OFFSITE 0 255 255 PROJECTION 'proj=utm' 'zone=32' 'ellps=WGS84' 'datum=WGS84' 'units=m' 'no_defs' END METADATA 'DESCRIPTION' 'DEM' "wms_title" "DEM 40m" "wms_srs" "EPSG:32632" END MINSCALE 0 MAXSCALE 200000 END -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Fri Mar 13 08:18:58 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 13 Mar 2009 11:18:58 -0400 Subject: [mapserver-users] Tile indexes In-Reply-To: References: Message-ID: <49BA7962.8080203@gatewaygeomatics.com> Cassiel wrote: > Hi you all, > > I can't get tile indexes working with my raster files with pmapper > > I am using gdaltindex as exlained in ms doc but the layer I am trying to > index is not showed... no error is generated in php error log file nor > in the pmapper one. > > index.shp & mapfile are in the same directory, the index.dbf file is > showing a relative path as the DATA path in the mapfile (which is > commented according to ms docu). > > mapserver version in 5.0.3 on debian testing > > Any ideas? > > Regards > r > Always use the MapServer commandline utility "shp2img" to see errors from your MapServer mapfile (http://www.mapserver.org/utilities/shp2img.html). -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From ruijgomes at gmail.com Fri Mar 13 08:30:14 2009 From: ruijgomes at gmail.com (Rui Gomes) Date: Fri, 13 Mar 2009 15:30:14 +0000 Subject: [mapserver-users] Another itemquery problem In-Reply-To: <49BA16E20200008F000218C8@co5.dnr.state.mn.us> References: <49BA16E20200008F000218C8@co5.dnr.state.mn.us> Message-ID: <31e2f7000903130830w1ff1edc2h8664f44235c5cc78@mail.gmail.com> Ok. Thanks for your time 2009/3/13 Steve Lime : > If you need to search multiple layers sequentially then yes. > > Steve > >>>> Rui Gomes 03/13/09 4:20 AM >>> > Ok. > And a ?search like all citys with name equal to Philadelphia and > poplation less than 10.000 ?is possible but only using ?mapscript. > I correct? > > > 2009/3/13 Steve Lime : >> Sorry, you don't. Attribute queries search only a single layer. You'd need to >> use MapScript to get around this limitation (or hack mapquery.c to get >> around the problem). >> >> Steve >> >>>>> Rui Gomes 03/12/09 9:54 PM >>> >> How i do to query all my layers in itemquery. If i don't put the >> qlayer i recived the follow error: >> >> mapserv(): Web application error. Query layer not set or references an >> invalid layer. >> >> >> And to extend the seach to all the attributes? >> >> >> Thanks >> -- >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Rui Gomes >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > > -- > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Rui Gomes > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Rui Gomes From woodbri at swoodbridge.com Fri Mar 13 09:38:24 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 13 Mar 2009 11:38:24 -0500 Subject: [mapserver-users] Tile indexes In-Reply-To: References: <49BA8234.2050501@swoodbridge.com> Message-ID: <49BA8C00.3020604@swoodbridge.com> Cassiel, Hopefully you will get some additional suggestions from people that use rasters more than I :) The SHAPEPATH, TILEINDEX, and location values all interact in often mysterious ways for me. What I typically do to get things to work is: SHAPEPATH "/path/to/data/project/" TILEINDEX "images" location values: "./path/to/image.tif" Where images.shp is located in "/path/to/data/project/" and "./path/to/image.tif" is relative and down from SHAPEPATH I often use symlinks to separate physical locations from logical locations. Hope this helps, -Steve W Cassiel wrote: > > 2009/3/13 Stephen Woodbridge > > > Cassiel wrote: > > Hi you all, > > I can't get tile indexes working with my raster files with pmapper > > I am using gdaltindex as exlained in ms doc but the layer I am > trying to index is not showed... no error is generated in php > error log file nor in the pmapper one. > > index.shp & mapfile are in the same directory, the index.dbf > file is showing a relative path as the DATA path in the mapfile > (which is commented according to ms docu). > > mapserver version in 5.0.3 on debian testing > > Any ideas? > > > Show us your LAYER block from your mapfile would probably be helpful. > > > Here it is, tiled gtiffs are in /var/www/cem/cem_webgis/images/raster/ > and the index.dbf paths are "../../images/raster/ita_dem40.tif" > > > LAYER > NAME 'dem40' > STATUS ON > TYPE RASTER > > TILEINDEX "/var/www/cem/cem_webgis/config/common/dem_index.shp" > TILEITEM "location" > > #DATA '../../images/raster/ita_dem40.tif' > OFFSITE 0 255 255 > PROJECTION > 'proj=utm' > 'zone=32' > 'ellps=WGS84' > 'datum=WGS84' > 'units=m' > 'no_defs' > END > METADATA > 'DESCRIPTION' 'DEM' > "wms_title" "DEM 40m" > "wms_srs" "EPSG:32632" > END > MINSCALE 0 > MAXSCALE 200000 > END > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From raffaele.morelli at gmail.com Fri Mar 13 08:43:23 2009 From: raffaele.morelli at gmail.com (Cassiel) Date: Fri, 13 Mar 2009 16:43:23 +0100 Subject: [mapserver-users] Tile indexes In-Reply-To: <49BA7962.8080203@gatewaygeomatics.com> References: <49BA7962.8080203@gatewaygeomatics.com> Message-ID: 2009/3/13 Jeff McKenna > Cassiel wrote: > >> Hi you all, >> >> I can't get tile indexes working with my raster files with pmapper >> >> I am using gdaltindex as exlained in ms doc but the layer I am trying to >> index is not showed... no error is generated in php error log file nor in >> the pmapper one. >> >> index.shp & mapfile are in the same directory, the index.dbf file is >> showing a relative path as the DATA path in the mapfile (which is commented >> according to ms docu). >> >> mapserver version in 5.0.3 on debian testing >> >> Any ideas? >> >> Regards >> r >> >> > Always use the MapServer commandline utility "shp2img" to see errors from > your MapServer mapfile (http://www.mapserver.org/utilities/shp2img.html). > > -jeff Unfortunately shp2img does not help me, mapfile is parsed and resulting image is created for all layers but the one I am trying to index. There's a strange behaviour about this layer. It's composed by a DEM (the one I posted) plus another one consisting in shade raster. When I ask shp2img to draw the dem the resulting image shows only the shade instead... even if I never asked for. regards r -------------- next part -------------- An HTML attachment was scrubbed... URL: From raffaele.morelli at gmail.com Fri Mar 13 08:47:02 2009 From: raffaele.morelli at gmail.com (Cassiel) Date: Fri, 13 Mar 2009 16:47:02 +0100 Subject: [mapserver-users] Tile indexes In-Reply-To: <49BA8C00.3020604@swoodbridge.com> References: <49BA8234.2050501@swoodbridge.com> <49BA8C00.3020604@swoodbridge.com> Message-ID: 2009/3/13 Stephen Woodbridge > Cassiel, > > Hopefully you will get some additional suggestions from people that use > rasters more than I :) > > The SHAPEPATH, TILEINDEX, and location values all interact in often > mysterious ways for me. What I typically do to get things to work is: > > SHAPEPATH "/path/to/data/project/" > > TILEINDEX "images" > > location values: > "./path/to/image.tif" > > Where images.shp is located in "/path/to/data/project/" and > "./path/to/image.tif" is relative and down from SHAPEPATH > > I often use symlinks to separate physical locations from logical locations. > > Hope this helps, > -Steve W I am going to test once again with paths... regards r -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Fri Mar 13 09:35:58 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Fri, 13 Mar 2009 11:35:58 -0500 Subject: [mapserver-users] NQuery problem In-Reply-To: <49BA77E4.2000806@gslab.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA2B2@s-sp22.pca.state.mn.us> I was thinking of something like this for your data statement: DATA "the_geom from (select w.majwsh_geom as the_geom, w.oid as oid, w.name from watershed as w) using unique oid using srid=26915" A more basic question for you: Is your geometry column really named 'topology' and your table name really 'tablename'? Before you try to query this layer or get it to be served in a WMS, can you just get the geometry to draw on the map? David. -----Original Message----- From: Subha Ramakrishnan [mailto:subha at gslab.com] Sent: Friday, March 13, 2009 10:13 AM To: Fawcett, David Cc: Steve Lime; ruijgomes at gmail.com; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] NQuery problem Hi David, Thanks a lot for the reply. It would be great if you can give me an example url. Thanks & regards, Subha Fawcett, David wrote: > Subha, > > In taking a quick look at your layer, I think that you have a problem > with your data statement. I am quite sure that if you want to use an > attribute(column) from your data layer for classification or query > results, you need to explicitly include the name of that column in the > select query that is in your data statement. > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Subha > Ramakrishnan > Sent: Friday, March 13, 2009 1:44 AM > To: Steve Lime > Cc: ruijgomes at gmail.com; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] NQuery problem > > > Hi > > Here's how the layer looks in my mapfile: > layer > name abc > connectiontype postgis > connection "user= user dbname=xyz host=localhost" > type point > tolerance 20 > group world > dump true > METADATA > "wfs_title" "Factbook Metadata" > "gml_include_items" "all" > "wms_feature_info_mime_type" "text/html" > END > template "template.html" > projection > "init=epsg:4326" > end > transparency 65 > status on > data "topology from tablename using unique id using SRID = -1" > classitem "veg_class" > class > name "AGRICULTURE" > expression "AGRICULTURE" > style > symbol 'custom_icon' > size 20 > color 179 189 209 > outlinecolor 000 000 000 > end > end > end > > Status is on and template is defined. > Am i missing something else? > > Thanks a lot for the help. > > Subha > Steve Lime wrote: > >> For a layer to be queryable you have to: >> >> 1 - either set Status DEFAULT, or explicitly turn it on (e.g. >> > layer=abc) > >> 2 - define the layer TEMPLATE property >> >> Are those true? >> >> Steve >> >> >> >>>>> Subha Ramakrishnan 03/13/09 12:38 AM >>> >>>>> >>>>> >> Hi, >> >> I am also facing a similar problem. It doesn't throw an error but it >> doesn't give me a result either. >> >> My url looks like this : >> http://localhost/cgi-bin/mapserv?MAP=abc.map&MODE=nquery&LAYERS=abc&im >> gext=8920506.9477+3496535.4213+8954750.736418456+3530779.2100573704&im >> gbox=657+209+686+239&imgxy=670+230 >> >> The extent given here is within the map extent. >> Can you please tell me if there's some mistake here? >> >> Thanks a lot. >> >> Subha >> >> Steve Lime wrote: >> >> >>> Nquery doesn't require qstring validation. What does your URL look >>> like? >>> >>> Steve >>> >>> >>> >>> >>>>>> Rui Gomes 03/12/09 9:42 PM >>> >>>>>> >>>>>> >>>>>> >>> I try to use the nquery function and i recived the follow error >>> message: >>> >>> mapserv(): Web application error. Metadata >>> qstring_validation_pattern >>> > > >>> is not set. >>> >>> To avoid this i insert in the mapfile the follow lines inr the layer >>> i want to query: >>> >>> >>> METADATA >>> qstring_validation_pattern '.' >>> END >>> >>> >>> What this lines means. Why i have to put it? >>> >>> Thanks >>> >>> >>> >> >> >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From verusadomethildes at hotmail.com Fri Mar 13 13:53:27 2009 From: verusadomethildes at hotmail.com (Verusa Domethildes) Date: Fri, 13 Mar 2009 20:53:27 +0000 Subject: [mapserver-users] RE: mapserver-users Digest, Vol 14, Issue 35 In-Reply-To: <20090311160015.A7548E01409@lists.osgeo.org> References: <20090311160015.A7548E01409@lists.osgeo.org> Message-ID: Hi! I'm working in a GIS project and I have to implement a web portal. I know MapLab, but I'd like to user another site for this application. Do you know another suites of web-based tools to create and manage MapServer web mapping applications and map files, like MapLab? Thanks in advance! Verusa _________________________________________________________________ Conhe?a o Windows Live Spaces, a rede de relacionamentos do Messenger! http://www.amigosdomessenger.com.br/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From subha at gslab.com Sat Mar 14 00:20:45 2009 From: subha at gslab.com (subha at gslab.com) Date: Sat, 14 Mar 2009 12:50:45 +0530 (IST) Subject: [mapserver-users] NQuery problem In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA2B2@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA2B2@s-sp22.pca.state.mn.us> Message-ID: <48183.123.201.115.166.1237015245.squirrel@padma.gslab.com> Hi, I do get the WMS layer alone giving me the points on the map. My tablename is not really "tablename".Changed it for privacy reasons.That's all. So, if my statement looks like what you have mentioned,how would the nquery request be? Thanks a lot for your help. Subha > I was thinking of something like this for your data statement: > > DATA "the_geom from (select w.majwsh_geom as the_geom, w.oid as oid, > w.name from watershed as w) using unique oid using srid=26915" > > A more basic question for you: > > Is your geometry column really named 'topology' and your table name > really 'tablename'? > > Before you try to query this layer or get it to be served in a WMS, can > you just get the geometry to draw on the map? > > David. > > -----Original Message----- > From: Subha Ramakrishnan [mailto:subha at gslab.com] > Sent: Friday, March 13, 2009 10:13 AM > To: Fawcett, David > Cc: Steve Lime; ruijgomes at gmail.com; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] NQuery problem > > > Hi David, > > Thanks a lot for the reply. > It would be great if you can give me an example url. > > Thanks & regards, > Subha > > Fawcett, David wrote: >> Subha, >> >> In taking a quick look at your layer, I think that you have a problem >> with your data statement. I am quite sure that if you want to use an >> attribute(column) from your data layer for classification or query >> results, you need to explicitly include the name of that column in the > >> select query that is in your data statement. >> >> David. >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Subha >> Ramakrishnan >> Sent: Friday, March 13, 2009 1:44 AM >> To: Steve Lime >> Cc: ruijgomes at gmail.com; mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] NQuery problem >> >> >> Hi >> >> Here's how the layer looks in my mapfile: >> layer >> name abc >> connectiontype postgis >> connection "user= user dbname=xyz host=localhost" >> type point >> tolerance 20 >> group world >> dump true >> METADATA >> "wfs_title" "Factbook Metadata" >> "gml_include_items" "all" >> "wms_feature_info_mime_type" "text/html" >> END >> template "template.html" >> projection >> "init=epsg:4326" >> end >> transparency 65 >> status on >> data "topology from tablename using unique id using SRID = -1" >> classitem "veg_class" >> class >> name "AGRICULTURE" >> expression "AGRICULTURE" >> style >> symbol 'custom_icon' >> size 20 >> color 179 189 209 >> outlinecolor 000 000 000 >> end >> end >> end >> >> Status is on and template is defined. >> Am i missing something else? >> >> Thanks a lot for the help. >> >> Subha >> Steve Lime wrote: >> >>> For a layer to be queryable you have to: >>> >>> 1 - either set Status DEFAULT, or explicitly turn it on (e.g. >>> >> layer=abc) >> >>> 2 - define the layer TEMPLATE property >>> >>> Are those true? >>> >>> Steve >>> >>> >>> >>>>>> Subha Ramakrishnan 03/13/09 12:38 AM >>> >>>>>> >>>>>> >>> Hi, >>> >>> I am also facing a similar problem. It doesn't throw an error but it >>> doesn't give me a result either. >>> >>> My url looks like this : >>> > http://localhost/cgi-bin/mapserv?MAP=abc.map&MODEquery&LAYERS=abc&im >>> > gext=8920506.9477+3496535.4213+8954750.736418456+3530779.2100573704&im >>> gbox=657+209+686+239&imgxy=670+230 >>> >>> The extent given here is within the map extent. >>> Can you please tell me if there's some mistake here? >>> >>> Thanks a lot. >>> >>> Subha >>> >>> Steve Lime wrote: >>> >>> >>>> Nquery doesn't require qstring validation. What does your URL look >>>> like? >>>> >>>> Steve >>>> >>>> >>>> >>>> >>>>>>> Rui Gomes 03/12/09 9:42 PM >>> >>>>>>> >>>>>>> >>>>>>> >>>> I try to use the nquery function and i recived the follow error >>>> message: >>>> >>>> mapserv(): Web application error. Metadata >>>> qstring_validation_pattern >>>> >> >> >>>> is not set. >>>> >>>> To avoid this i insert in the mapfile the follow lines inr the layer >>>> i want to query: >>>> >>>> >>>> METADATA >>>> qstring_validation_pattern '.' >>>> END >>>> >>>> >>>> What this lines means. Why i have to put it? >>>> >>>> Thanks >>>> >>>> >>>> >>> >>> >>> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > From manojkapil06 at gmail.com Sat Mar 14 05:25:26 2009 From: manojkapil06 at gmail.com (kapil manoj) Date: Sat, 14 Mar 2009 17:55:26 +0530 Subject: [mapserver-users] Internal Server Error - newbie Message-ID: <7afcc95f0903140525o31d06d0dya8208c28de82df34@mail.gmail.com> Hi all, I am using mapserver 5.0.3 on fedora 9. i installed it very recently in my box , to acknowledge my installation of mapserver in my box , i got the message when i call the browser http://localhost/cgi-bin/mapserv No query information to decode. QUERY_STRING is set, but empty. Then i played with the mapserver demo gmap.. its works fine... Thenafter i tried to play with the examples given in the mapserver tutorial , with the very first example i get error.... when i call the link http://localhost/cgi-bin/mapserv?map=/ms4w/apps/tutorial/htdocs/example1-1.map&layer=states&mode=map i get the following errorInternal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, root at localhost 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. Apache/2.2.9 (Fedora) Server at localhost Port 80 >From the above error i understand that something wrong with apache , i checked the error log file , ita abig one page error. i couldn't probe that error, i have attached the error log file for your perusal could anybody please help me out? help will be appreciated... many thanks, zizu -------------- next part -------------- An HTML attachment was scrubbed... URL: From no-reply at neogeo-online.net Sat Mar 14 05:28:54 2009 From: no-reply at neogeo-online.net (Guillaume Sueur) Date: Sat, 14 Mar 2009 13:28:54 +0100 Subject: [mapserver-users] Internal Server Error - newbie In-Reply-To: <7afcc95f0903140525o31d06d0dya8208c28de82df34@mail.gmail.com> References: <7afcc95f0903140525o31d06d0dya8208c28de82df34@mail.gmail.com> Message-ID: <49BBA306.8020003@neogeo-online.net> Hi Actually your attachement has not been included, but I may have an idea : in your url, you must supply the full path to your map file. So if ms4w is located at the system root it is fine, instead you must correct that. Regards, Guillaume kapil manoj a ?crit : > Hi all, > > I am using mapserver 5.0.3 on fedora 9. i installed it very recently > in my box , to acknowledge my installation of mapserver in my box , i > got the message when i call the browser > > http://localhost/cgi-bin/mapserv > > No query information to decode. QUERY_STRING is set, but empty. > > Then i played with the mapserver demo gmap.. its works fine... > Thenafter i tried to play with the examples given in the mapserver > tutorial , with the very first example i get error.... when i call the > link > > http://localhost/cgi-bin/mapserv?map=/ms4w/apps/tutorial/htdocs/example1-1.map&layer=states&mode=map > > > i get the following error > > > Internal Server Error > > The server encountered an internal error or misconfiguration and was > unable to complete your request.Please contact the server administrator, > root at localhost 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. > > Apache/2.2.9 (Fedora) Server at localhost Port 80 > > > From the above error i understand that something wrong with apache , i > checked the error log file , ita abig one page error. i couldn't probe > that error, i have attached the error log file for your perusal > > > could anybody please help me out? > > help will be appreciated... > > many thanks, > zizu > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From manojkapil06 at gmail.com Sat Mar 14 05:44:14 2009 From: manojkapil06 at gmail.com (zizu) Date: Sat, 14 Mar 2009 05:44:14 -0700 (PDT) Subject: [mapserver-users] Internal Server Error - newbie Message-ID: <1237034654842-2477896.post@n2.nabble.com> Hi all, I am using mapserver 5.0.3 on fedora 9. i installed it very recently in my box , to acknowledge my installation of mapserver in my box , i got the message when i call the browser http://localhost/cgi-bin/mapserv No query information to decode. QUERY_STRING is set, but empty. Then i played with the mapserver demo gmap.. its works fine... Thenafter i tried to play with the examples given in the mapserver tutorial , with the very first example i get error.... when i call the link http://localhost/cgi-bin/mapserv?map=/ms4w/apps/tutorial/htdocs/example1-1.map&layer=states&mode=map i get the following error Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, root at localhost 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. Apache/2.2.9 (Fedora) Server at localhost Port 80 >From the above error i understand that something wrong with apache , i checked the error log file , ita abig one page error. i couldn't probe that error, i have attached the error log file for your perusal http://n2.nabble.com/file/n2477896/error-log error-log could anybody please help me out? help will be appreciated... many thanks, zizu -- View this message in context: http://n2.nabble.com/Internal-Server-Error---newbie-tp2477896p2477896.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Sun Mar 15 02:56:45 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sun, 15 Mar 2009 10:56:45 +0100 Subject: [mapserver-users] MapServer 5.4 Beta 3 is now available... In-Reply-To: References: <49B04CAE0200008F00021585@co5.dnr.state.mn.us> Message-ID: Tony, the 5.4 codebase has been branched, and the code in trunk is now milestoned for the 6.0 version, so these kind of changes aren't unexpected given the rendering changes that will come with the new version. as for the the legend issue you raised, could you please show your mapfile legend block, tell what renderer you're using, and ideally show a before/after screenshot of the changes? thanks, thomas On Sat, Mar 7, 2009 at 13:59, Tony Frame wrote: > Steve, > > 5.4 Beta 3 works fine for me in cgi mode on Fedora 7 & 10 but the latest svn > version (IDs itself as 5.5.0) generates the legend differently. In > particular the key image sizes have changed and the vertical spacing between > images is very small / zero - I'm pretty sure it worked ok yesterday with > 5.4 Beta 3. > > My compile options : --with-agg --with-freetype --with-gdal --with-ogr > --with-proj --with-wfs > > Regards > Tony > ----- Original Message ----- From: "Steve Lime" > To: ; > Sent: Friday, 06 March, 2009 12:05 PM > Subject: [mapserver-users] MapServer 5.4 Beta 3 is now available... > > > Greetings all: MapServer 5.4 Beta 3 is now available for download at > http://mapserver.org/download. A small number of bugs uncovered during > testing of the second beta have been fixed. The next release should be a > release candidate and will be available mid-next week. ?As always any help > in testing the software is greatly appreciated. Findings should be sent to > the mapserver-dev (or even just mapserver-users) mailing list. > > The updated 5.4 release plan can be found at: > > ?http://trac.osgeo.org/mapserver/wiki/54ReleasePlan > > Steve > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From manojkapil06 at gmail.com Sat Mar 14 05:14:18 2009 From: manojkapil06 at gmail.com (kapil manoj) Date: Sat, 14 Mar 2009 17:44:18 +0530 Subject: [mapserver-users] Internal Server Error - newbie Message-ID: <7afcc95f0903140514k4ffa8c5ds68942043f7972585@mail.gmail.com> Hi all, I am using mapserver 5.0.3 on fedora 9. i installed it very recently in my box , to acknowledge my installation of mapserver in my box , i got the message when i call the browser http://localhost/cgi-bin/mapserv No query information to decode. QUERY_STRING is set, but empty. Then i played with the mapserver demo gmap.. its works fine... Thenafter i tried to play with the examples given in the mapserver tutorial , with the very first example i get error.... when i call the link http://localhost/cgi-bin/mapserv?map=/ms4w/apps/tutorial/htdocs/example1-1.map&layer=states&mode=map i get the following errorInternal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, root at localhost 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. Apache/2.2.9 (Fedora) Server at localhost Port 80 >From the above error i understand that something wrong with apache , i checked the error log file , ita abig one page error. i couldn't probe that error, i have attached the error log file for your perusal could anybody please help me out? help will be appreciated... many thanks, zizu -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: error-log Type: application/octet-stream Size: 30876 bytes Desc: not available URL: From manojkapil06 at gmail.com Sat Mar 14 05:35:14 2009 From: manojkapil06 at gmail.com (kapil manoj) Date: Sat, 14 Mar 2009 18:05:14 +0530 Subject: [mapserver-users] Internal Server Error - newbie Message-ID: <7afcc95f0903140535v16fc9abdqbf8ad774ede6141c@mail.gmail.com> Hi all, I am using mapserver 5.0.3 on fedora 9. i installed it very recently in my box , to acknowledge my installation of mapserver in my box , i got the message when i call the browser http://localhost/cgi-bin/mapserv No query information to decode. QUERY_STRING is set, but empty. Then i played with the mapserver demo gmap.. its works fine... Thenafter i tried to play with the examples given in the mapserver tutorial , with the very first example i get error.... when i call the link http://localhost/cgi-bin/mapserv?map=/ms4w/apps/tutorial/htdocs/example1-1.map&layer=states&mode=map i get the following errorInternal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, root at localhost 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. Apache/2.2.9 (Fedora) Server at localhost Port 80 >From the above error i understand that something wrong with apache , i checked the error log file , ita abig one page error. i couldn't probe that error, i have attached the error log file for your perusal could anybody please help me out? help will be appreciated... many thanks, zizu -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: error-log Type: application/octet-stream Size: 30876 bytes Desc: not available URL: From m.kofahl at gmx.net Sun Mar 15 12:33:49 2009 From: m.kofahl at gmx.net (Martin Kofahl) Date: Sun, 15 Mar 2009 20:33:49 +0100 Subject: [mapserver-users] Prevalence of the use of queryfiles... In-Reply-To: <49B9A2F20200008F0002189A@co5.dnr.state.mn.us> References: <49B9A2F20200008F0002189A@co5.dnr.state.mn.us> Message-ID: <49BD581D.3060807@gmx.net> We use them with MapScript. Maybe it's possibile to activate saved queries only with with a compiler option? Steve Lime wrote: > Hi all: Consider this a survey of sorts. I'm wondering how many of > you make use of saving queries, either via the CGI or MapScript. It's > an old feature that isn't terribly useful and I'm trying to > understand the pain the community might incur if they go away in 6.0. > If you didn't know they existed or how you might use them then it's > safe to say you don't need 'em. > > Steve From chris123 at magma.ca Sun Mar 15 15:09:53 2009 From: chris123 at magma.ca (Chris h) Date: Sun, 15 Mar 2009 18:09:53 -0400 Subject: [mapserver-users] demo map set Message-ID: <200903151809.54604.chris123@magma.ca> Greets: With the migration of the site to sphinx which is really nice btw, I cant seem to find the demo data set to work through the tutorial. Anyone have the correct URL.?? -- /ch From naci0002 at umn.edu Sun Mar 15 18:30:38 2009 From: naci0002 at umn.edu (Perry Nacionales) Date: Sun, 15 Mar 2009 20:30:38 -0500 Subject: [mapserver-users] demo map set In-Reply-To: <200903151809.54604.chris123@magma.ca> References: <200903151809.54604.chris123@magma.ca> Message-ID: <49BDABBE.7070504@umn.edu> Is this what you're looking for? http://www.maptools.org/dl/ms4w/mapserv_demo_ms4w.zip If you are looking for the MapServer tutorial data, it should be available sometime early this week. -Perry Chris h wrote: > Greets: > > With the migration of the site to sphinx which is really nice btw, I cant seem > to find the demo data set to work through the tutorial. Anyone have the > correct URL.?? > > From syedmohseen56 at gmail.com Sun Mar 15 22:31:15 2009 From: syedmohseen56 at gmail.com (syed mohseen) Date: Mon, 16 Mar 2009 11:01:15 +0530 Subject: [mapserver-users] cannot able to test the mapfile-database eror Message-ID: <8fd0eae0903152231g352ef189vf64b642a89032534@mail.gmail.com> hi all, i am a new bie to fgs and i want to test one of my mapfile with connecting to my database. here is my mapfile NAME "test" SIZE 800 600 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 LAYER CONNECTIONTYPE postgis NAME "test" CONNECTION "user=postgres password=hellopostgres dbname=postgres host=localhost" DATA "geom FROM test" STATUS ON TYPE POINT END END whenever i test the file as *shp2img** *i get the following error msDrawMap(): Image handling error. Failed to draw layer named 'test'.
prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(geom)),'NDR'),OID::text from test WHERE geom && setSRID('BOX3D(-1.3338898163606 -1,1.3338898163606 1)'::BOX3D, find_srid('','test','geom') )' Postgresql reports the error as 'ERROR: find_srid() - couldnt find the corresponding SRID - is the geometry registered in the GEOMETRY_COLUMNS table? Is there an uppercase/lowercase missmatch? ' More Help: Error with POSTGIS data variable. You specified 'check your .map file'. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from (sub query) as foo using unique column name using SRID=srid#' Make sure you put in the 'using unique column name' and 'using SRID=#' clauses in. For more help, please see http://postgis.refractions.net/documentation/ Mappostgis.c - version of Jan 23/2004.
any solutions will be appreciated regards SyedMohseen -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtammineni at roulacglobal.com Mon Mar 16 00:06:45 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Mon, 16 Mar 2009 12:36:45 +0530 Subject: [mapserver-users] cannot able to test the mapfile-database eror In-Reply-To: <8fd0eae0903152231g352ef189vf64b642a89032534@mail.gmail.com> References: <8fd0eae0903152231g352ef189vf64b642a89032534@mail.gmail.com> Message-ID: <009601c9a605$c6513d70$52f3b850$@com> Hi, The Problem may be either u don't have geom. Or find out whether geom. Field is existed or not ? or you have to use SRID.Please check my map file below I have given MAP NAME Test STATUS ON SIZE 650 400 UNITS dd IMAGECOLOR 102 153 153 EXTENT 64.881 5.469 97.898 37.762 PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' '' END SYMBOL NAME "border" TYPE VECTOR POINTS 0 0 1 0 1 0.8 0 0.8 0 0 END STYLE 10 6 1 6 END FILLED TRUE END # Background color for the map canvas -- change as desired # IMAGECOLOR 192 192 192 IMAGEQUALITY 95 IMAGETYPE png OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" END SCALEBAR INTERVALS 2 UNITS kilometers STYLE 1 POSITION lc STATUS embed LABEL SIZE small COLOR 0 0 0 END END LAYER NAME "India" TYPE POLYGON CONNECTIONTYPE POSTGIS CONNECTION "host=localhost dbname=GIS password=administrator user=postgres port=5432" Data "the_geom from (select gid,name,pincode,district,address,website,phnumber,areaname,category,longitu de,latitude,metroname,the_geom from indiaparks) as Foo USING UNIQUE gid USING 'srid=24047'" STATUS ON TRANSPARENCY 40 MinScale 7054330 LABELITEM "cntry_name" #label Item CLASSITEM "cntry_name" TEMPLATE "query.html" CLASS NAME 'India' STYLE SYMBOL "border" SIZE 6 OUTLINECOLOR 0 0 0 COLOR 251 252 179 END LABEL #label class start POSITION auto #label Position FONT sans SIZE SMALL #lable size COLOR 0 38 237 # label color END # label end END END END END Thanks Venkat. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of syed mohseen Sent: Monday, March 16, 2009 11:01 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] cannot able to test the mapfile-database eror hi all, i am a new bie to fgs and i want to test one of my mapfile with connecting to my database. here is my mapfile NAME "test" SIZE 800 600 IMAGECOLOR 249 245 186 IMAGETYPE png EXTENT -1.00 -1.00 1.00 1.00 LAYER CONNECTIONTYPE postgis NAME "test" CONNECTION "user=postgres password=hellopostgres dbname=postgres host=localhost" DATA "geom FROM test" STATUS ON TYPE POINT END END whenever i test the file as shp2img i get the following error msDrawMap(): Image handling error. Failed to draw layer named 'test'.
prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(geom)),'NDR'),OID::text from test WHERE geom && setSRID('BOX3D(-1.3338898163606 -1,1.3338898163606 1)'::BOX3D, find_srid('','test','geom') )' Postgresql reports the error as 'ERROR: find_srid() - couldnt find the corresponding SRID - is the geometry registered in the GEOMETRY_COLUMNS table? Is there an uppercase/lowercase missmatch? ' More Help: Error with POSTGIS data variable. You specified 'check your .map file'. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from (sub query) as foo using unique column name using SRID=srid#' Make sure you put in the 'using unique column name' and 'using SRID=#' clauses in. For more help, please see http://postgis.refractions.net/documentation/ Mappostgis.c - version of Jan 23/2004.
any solutions will be appreciated regards SyedMohseen -------------- next part -------------- An HTML attachment was scrubbed... URL: From paulborodaev at gmail.com Mon Mar 16 00:59:23 2009 From: paulborodaev at gmail.com (BrainDrain) Date: Mon, 16 Mar 2009 00:59:23 -0700 (PDT) Subject: [mapserver-users] Need advice to support caching mechanism Message-ID: <1237190363473-2484552.post@n2.nabble.com> Hi. I need to debate web map images caching technique. I'm using OpenLayers with tiled mapserver layer. But now I dissatisfied mapserver image request url scheme because it has variable map config file name (path) as a part (parameter), and some may be some other variable parts (for ex. OL use random '_olSalt' parameter to force HTTPRequest layer map redraw, time stamps, session id's etc.). I decide to change this scheme to have constant url for map image tile of the same bbox (extent), config & data 'stamps' to support browser caching. Map file can be constant but not in 'true' multiuser environment where they are customized for each user needs, according their rights (privileges). So map file name vary often by session (id) indirectly. We can exclude other url variables painlessly. Final tasks: - overwraiting some OL code to build correct url - create http handler to wrap mapserver cgi (and may be support intranet clusterization) - but how to provide some hash key for mapserver (all layers/styles...) config and data 'stamps'. Currently (for test purpose) I use CRC32 of map SLD as this hash. I can support versioning with some 'seed' metadata in map file for config and/or in (spatial-) database for data (for each layer in service table 'data_version'). Seed (version info) will be changed (by some way) after each 'publishing operation'. May be another way exists (other comprehensive map object string serialization/dumping to calculate checksum from it, some wms/wfs command)? -- View this message in context: http://n2.nabble.com/Need-advice-to-support-caching-mechanism-tp2484552p2484552.html Sent from the Mapserver - User mailing list archive at Nabble.com. From schroeter at netgis.de Mon Mar 16 02:12:52 2009 From: schroeter at netgis.de (Sven Schroeter) Date: Mon, 16 Mar 2009 10:12:52 +0100 Subject: [mapserver-users] apache warning TIFFReadDirectory Message-ID: <32E52BB967444366AC684D841D7E78B0@SVEN> Hi, I'm working with MapServer version 5.0.2 (php mapscript) on a Apache 2.2.4 webserver. Everything works fine but Apache logs following warning: Warning 1: TIFFReadDirectory:Unknown field with tag 37522 (0x9292) encountered I'm using raster-data (.tif with .tfw) in an image catalogue. Any idea? Thanks Sven From paulborodaev at gmail.com Mon Mar 16 02:38:51 2009 From: paulborodaev at gmail.com (BrainDrain) Date: Mon, 16 Mar 2009 02:38:51 -0700 (PDT) Subject: [mapserver-users] Prevalence of the use of queryfiles... In-Reply-To: <49B9A2F20200008F0002189A@co5.dnr.state.mn.us> References: <49B9A2F20200008F0002189A@co5.dnr.state.mn.us> Message-ID: <1237196331088-2484926.post@n2.nabble.com> I need queryfiles to persist query results (serialize to string/binary method wanted!) as a part of whole map 'state'. But I need more convenient, handy way to configure style of queried (selected) features. Style section to setup {border (color, line pattern, transparency), filling (color, fill pattern, transparency), maybe some symbolization} instead of just highlight color. It will be very useful (currently I need to dump query results into some temp table in spatial db - which has a spec. layer section (sections - for each feature type) in map file). For. ex. if my 'selection' is small - I can highlight it with vector features (good looking and fast, flexible styling!, no raster (all tiles! - can't decide which tile to redraw for general queries) data requests and redrawing - in OpenLayers), but when selection is big - I need to highlight it on server and re-request map tiles. Steve Lime wrote: > > Hi all: Consider this a survey of sorts. I'm wondering how many of you > make use of saving queries, either via the CGI or MapScript. It's an old > feature that isn't terribly useful and I'm trying to understand the pain > the community might incur if they go away in 6.0. If you didn't know they > existed or how you might use them then it's safe to say you don't need > 'em. > > Steve > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/Prevalence-of-the-use-of-queryfiles...-tp2471795p2484926.html Sent from the Mapserver - User mailing list archive at Nabble.com. From paulborodaev at gmail.com Mon Mar 16 02:52:18 2009 From: paulborodaev at gmail.com (BrainDrain) Date: Mon, 16 Mar 2009 02:52:18 -0700 (PDT) Subject: [mapserver-users] mapserver-users Digest, Vol 14, Issue 35 In-Reply-To: References: Message-ID: <1237197138813-2484968.post@n2.nabble.com> I'd recomend you to learn map file reference and create map files from scratch - it's the Mapserver's holy of holies - you just need to know it. No tool support's all flexibility and features. Mapserver publishers - QGis tool and arcgis (arcmap) plugin - can help you with first steps. Verusa Domethildes wrote: > > > > Hi! > > I'm working in a GIS project and I have to implement a web portal. I know > MapLab, but I'd like to user another site for this application. Do you > know another suites of web-based tools to create and manage MapServer web > mapping applications and map files, like MapLab? > > Thanks in advance! > > Verusa > > > > > > > _________________________________________________________________ > Conhe?a o Windows Live Spaces, a rede de relacionamentos do Messenger! > http://www.amigosdomessenger.com.br/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/RE%3A-mapserver-users-Digest%2C-Vol-14%2C-Issue-35-tp2475712p2484968.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Mon Mar 16 02:56:58 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 16 Mar 2009 11:56:58 +0200 Subject: [mapserver-users] Two questions about WMS and outputformats In-Reply-To: <1237190363473-2484552.post@n2.nabble.com> Message-ID: Hi, By default, without having any OUTPUTFORMAT sections in the mapfile, Mapserver is advertising following imageformats in WMS GetCapabilities document: image/gif image/png image/png; mode=24bit image/jpeg image/vnd.wap.wbmp image/tiff image/svg+xml Some users have been confused because WMS client builds menu items according to that list, but at least "image/png; mode 24bit" and "image/tiff" do not give any output. What is the reason to include these formats in getCapabilities by default, if they do not work without creating OUTPUTFORMATs in the mapfile first? Second question is about JPEG outputformat. It works through GD with these settings OUTPUTFORMAT NAME "jpeg" MIMETYPE "image/jpeg" DRIVER "GD/JPEG" EXTENSION "jpg" IMAGEMODE RGB END If I change driver to "GDAL/JPEG" I get this error on ms errorlog [Mon Mar 16 11:16:05 2009].825000 msSaveImageGDAL(): General error message. Failed to create output JPEG file. JPEG driver doesn't support 4 bands. Must be 1 (grey) or 3 (RGB) bands. What makes GDAL/JPEG driver to believe that I want 4 bands? Or is it just best to use DG/JPEG always? -Jukka Rahkonen- From Jukka.Rahkonen at mmmtike.fi Mon Mar 16 03:01:37 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 16 Mar 2009 12:01:37 +0200 Subject: [mapserver-users] apache warning TIFFReadDirectory In-Reply-To: <32E52BB967444366AC684D841D7E78B0@SVEN> Message-ID: Hi, I means only what is says. There is some non-GeoTIFF tag in the image and that is not recognised, but if everything works there is no need to worry. -Jukka Rahkonen- Sven Schroeter wrote: > [mapserver-users] apache warning TIFFReadDirectory > > Hi, > I'm working with MapServer version 5.0.2 (php mapscript) on a > Apache 2.2.4 webserver. > Everything works fine but Apache logs following warning: > > Warning 1: > TIFFReadDirectory:Unknown field with tag 37522 (0x9292) encountered > > I'm using raster-data (.tif with .tfw) in an image catalogue. > Any idea? > Thanks > Sven From Jukka.Rahkonen at mmmtike.fi Mon Mar 16 03:16:03 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 16 Mar 2009 12:16:03 +0200 Subject: [mapserver-users] mapserver-users Digest, Vol 14, Issue 35 In-Reply-To: <1237197138813-2484968.post@n2.nabble.com> Message-ID: Hi, Most valuable part of MapLab was that it was able to create an interactive internet map application for total newbies. Mapfile creation was more like a side effect. I think there is no other such easy to use application builder than MapLab, but you can have a look at http://maptools.org/ms4w/index.phtml?page=downloads.html for some alternatives. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta BrainDrain > L?hetetty: 16. maaliskuuta 2009 11:52 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: RE: [mapserver-users] mapserver-users Digest, Vol 14, Issue 35 > > > I'd recomend you to learn map file reference and create map > files from scratch - it's the Mapserver's holy of holies - > you just need to know it. No tool support's all flexibility > and features. Mapserver publishers - QGis tool and arcgis > (arcmap) plugin - can help you with first steps. > > Verusa Domethildes wrote: > > > > > > > > Hi! > > > > I'm working in a GIS project and I have to implement a web > portal. I > > know MapLab, but I'd like to user another site for this > application. > > Do you know another suites of web-based tools to create and manage > > MapServer web mapping applications and map files, like MapLab? > > > > Thanks in advance! > > > > Verusa > > > > > > > > From paulborodaev at gmail.com Mon Mar 16 03:30:11 2009 From: paulborodaev at gmail.com (BrainDrain) Date: Mon, 16 Mar 2009 03:30:11 -0700 (PDT) Subject: [mapserver-users] mapserver-users Digest, Vol 14, Issue 35 In-Reply-To: References: Message-ID: <1237199411382-2485144.post@n2.nabble.com> + http://code.google.com/p/mscompanion/ Verusa Domethildes wrote: > > > > Hi! > > I'm working in a GIS project and I have to implement a web portal. I know > MapLab, but I'd like to user another site for this application. Do you > know another suites of web-based tools to create and manage MapServer web > mapping applications and map files, like MapLab? > > Thanks in advance! > > Verusa > > > > > > > _________________________________________________________________ > Conhe?a o Windows Live Spaces, a rede de relacionamentos do Messenger! > http://www.amigosdomessenger.com.br/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/RE%3A-mapserver-users-Digest%2C-Vol-14%2C-Issue-35-tp2475712p2485144.html Sent from the Mapserver - User mailing list archive at Nabble.com. From kmanoj-pg7 at iiitmk.ac.in Mon Mar 16 04:06:21 2009 From: kmanoj-pg7 at iiitmk.ac.in (kmanoj-pg7 kmanoj-pg7) Date: Mon, 16 Mar 2009 16:36:21 +0530 Subject: [mapserver-users] php-mpascript -- map not displaying Message-ID: <9ab9b8cf0903160406h2bd4b416p9f7b1f27042d374e@mail.gmail.com> Dear users, I am using mapserver-5.0.3 (php-mapscript) on fedora 9. I am trying with the example given in the mapserver site for php-mapscript. when i call the link http://localhost/mapfiles/sampletest/htdocs/kerala.php Fortunately the imagecolor of the map is showing but unfortunately the layers of the map is not displaying. then i checked the apache error_log file. I got the following error [Mon Mar 16 16:01:06 2009] [notice] caught SIGTERM, shutting down [Mon Mar 16 16:01:17 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Mon Mar 16 16:01:17 2009] [notice] Digest: generating secret for digest authentication ... [Mon Mar 16 16:01:17 2009] [notice] Digest: done PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/php_mapscript.so' - /usr/lib/php/modules/php_mapscript.so: undefined symbol: php_gd_gdImageCopy in Unknown on line 0 PHP Warning: Module 'dbase' already loaded in Unknown on line 0 [Mon Mar 16 16:01:19 2009] [notice] Apache/2.2.9 (Unix) DAV/2 PHP/5.2.8 configured -- resuming normal operations what could be a problem? someone please help me out tips will be appreciated Thanks, kapil -------------- next part -------------- An HTML attachment was scrubbed... URL: From subha at gslab.com Mon Mar 16 05:29:15 2009 From: subha at gslab.com (Subha Ramakrishnan) Date: Mon, 16 Mar 2009 17:59:15 +0530 Subject: [mapserver-users] Flash support Message-ID: <49BE461B.7020900@gslab.com> Hi All, I wanted to know if MS supports ming library version 0.3? I am trying to generate swf output from MS and installed ming library (0.3) and ran configure to support swf output. This was the output of configure: MapServer is now configured for /usr/local/php-5.2.6/ext/gd -------------- Compiler Info ------------- C compiler: gcc -g -O2 -fPIC -Wall C++ compiler: g++ -g -O2 -fPIC -Wall Debug: -g -DNEED_NONBLOCKING_STDERR Generic NINT: Threading support: -DUSE_THREAD -------------- Renderer Settings --------- zlib support: -DUSE_ZLIB png support: jpeg support: iconv support: -DUSE_ICONV AGG support: AGG Freetype support: Ming(flash) support: -DUSE_MING_FLASH PDFLib support: -------------- Data Format Drivers ------- native tiff support: -DUSE_TIFF PostGIS support: -DUSE_POSTGIS Proj.4 support: -DUSE_PROJ EPPL7 support: -DUSE_EPPL ArcSDE support: OGR support: -DUSE_OGR GDAL support: -DUSE_GDAL GEOS support: -DUSE_GEOS Oracle Spatial support: FastCGI support: -------------- OGC Services -------------- WMS Server: -DUSE_WMS_SVR WMS Client: -DUSE_WMS_LYR WFS Server: WFS Client: -DUSE_WMS_LYR WCS Server: -DUSE_WCS_SVR SOS Server: -DUSE_SOS_SVR -------------- MapScript ----------------- PHP MapScript: yes But ./mapserv -v doesn't show output=swf. Any idea as to what could be wrong? Thanks a lot. Subha From jaframe at net-yan.com Mon Mar 16 06:26:17 2009 From: jaframe at net-yan.com (Tony Frame) Date: Mon, 16 Mar 2009 21:26:17 +0800 Subject: [mapserver-users] MapServer 5.4 Beta 3 is now available... References: <49B04CAE0200008F00021585@co5.dnr.state.mn.us> Message-ID: <98B436C0EAB24FDEBBCF30212DC18BF9@TINY2GHZ> Thomas, Extracts from map file are : OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END and LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE SMALL COLOR 0 0 137 END STATUS ON END Before and after legend images attached. Thanks Tony ----- Original Message ----- From: "thomas bonfort" To: "Tony Frame" Cc: Sent: Sunday, 15 March, 2009 5:56 PM Subject: Re: [mapserver-users] MapServer 5.4 Beta 3 is now available... Tony, the 5.4 codebase has been branched, and the code in trunk is now milestoned for the 6.0 version, so these kind of changes aren't unexpected given the rendering changes that will come with the new version. as for the the legend issue you raised, could you please show your mapfile legend block, tell what renderer you're using, and ideally show a before/after screenshot of the changes? thanks, thomas On Sat, Mar 7, 2009 at 13:59, Tony Frame wrote: > Steve, > > 5.4 Beta 3 works fine for me in cgi mode on Fedora 7 & 10 but the latest > svn > version (IDs itself as 5.5.0) generates the legend differently. In > particular the key image sizes have changed and the vertical spacing > between > images is very small / zero - I'm pretty sure it worked ok yesterday with > 5.4 Beta 3. > > My compile options : --with-agg --with-freetype --with-gdal --with-ogr > --with-proj --with-wfs > > Regards > Tony > ----- Original Message ----- From: "Steve Lime" > > To: ; > Sent: Friday, 06 March, 2009 12:05 PM > Subject: [mapserver-users] MapServer 5.4 Beta 3 is now available... > > > Greetings all: MapServer 5.4 Beta 3 is now available for download at > http://mapserver.org/download. A small number of bugs uncovered during > testing of the second beta have been fixed. The next release should be a > release candidate and will be available mid-next week. As always any help > in testing the software is greatly appreciated. Findings should be sent to > the mapserver-dev (or even just mapserver-users) mailing list. > > The updated 5.4 release plan can be found at: > > http://trac.osgeo.org/mapserver/wiki/54ReleasePlan > > Steve > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- A non-text attachment was scrubbed... Name: before.png Type: image/png Size: 6043 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: after.png Type: image/png Size: 8879 bytes Desc: not available URL: From ritesh.linux at gmail.com Mon Mar 16 06:43:31 2009 From: ritesh.linux at gmail.com (ritesh ambastha) Date: Mon, 16 Mar 2009 06:43:31 -0700 (PDT) Subject: [mapserver-users] cannot able to test the mapfile-database eror In-Reply-To: <8fd0eae0903152231g352ef189vf64b642a89032534@mail.gmail.com> References: <8fd0eae0903152231g352ef189vf64b642a89032534@mail.gmail.com> Message-ID: <1237211011730-2486081.post@n2.nabble.com> Hey Syed, You should also check whether geometry functions are available with your installed postgres. Its the most common error. Check whether this function exists or not - force_2d(geom) Cheers, Ritesh syed mohseen wrote: > > hi all, > i am a new bie to fgs and i want to test one of my mapfile with > connecting to my database. > here is my mapfile > > > NAME "test" > SIZE 800 600 > IMAGECOLOR 249 245 186 > IMAGETYPE png > EXTENT -1.00 -1.00 1.00 1.00 > LAYER > CONNECTIONTYPE postgis > NAME "test" > CONNECTION "user=postgres password=hellopostgres dbname=postgres > host=localhost" > DATA "geom FROM test" > STATUS ON > TYPE POINT > END > END > > > > whenever i test the file as *shp2img** *i get the following error > > > msDrawMap(): Image handling error. Failed to draw layer named 'test'.
> prepare_database(): Query error. Error executing POSTGIS DECLARE (the > actual > query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT > asbinary(force_collection(force_2d(geom)),'NDR'),OID::text from test WHERE > geom && setSRID('BOX3D(-1.3338898163606 -1,1.3338898163606 1)'::BOX3D, > find_srid('','test','geom') )' > > Postgresql reports the error as 'ERROR: find_srid() - couldnt find the > corresponding SRID - is the geometry registered in the GEOMETRY_COLUMNS > table? Is there an uppercase/lowercase missmatch? > ' > > More Help: > > Error with POSTGIS data variable. You specified 'check your .map file'. > Standard ways of specifiying are : > (1) 'geometry_column from geometry_table' > (2) 'geometry_column from (sub query) as foo using unique column name > using > SRID=srid#' > > Make sure you put in the 'using unique column name' and 'using SRID=#' > clauses in. > > For more help, please see http://postgis.refractions.net/documentation/ > > Mappostgis.c - version of Jan 23/2004. >
> > > > > any solutions will be appreciated > > > regards > SyedMohseen > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/cannot-able-to-test-the-mapfile-database-eror-tp2484211p2486081.html Sent from the Mapserver - User mailing list archive at Nabble.com. From warmerdam at pobox.com Mon Mar 16 09:08:55 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 16 Mar 2009 12:08:55 -0400 Subject: [mapserver-users] Two questions about WMS and outputformats In-Reply-To: References: Message-ID: <49BE7997.60606@pobox.com> Rahkonen Jukka wrote: > Hi, > > By default, without having any OUTPUTFORMAT sections in the mapfile, > Mapserver is advertising following imageformats in WMS GetCapabilities > document: > > > image/gif > image/png > image/png; mode=24bit > image/jpeg > image/vnd.wap.wbmp > image/tiff > image/svg+xml > > Some users have been confused because WMS client builds menu items > according to that list, but at least "image/png; mode 24bit" and > "image/tiff" do not give any output. What is the reason to include these > formats in getCapabilities by default, if they do not work without > creating OUTPUTFORMATs in the mapfile first? Jukka, I don't know why image/tiff and image/png; mode=24bit would not work. Perhaps you could file a ticket with minimal details to reproduce this problem. Please include the mapserv -v string in the ticket so I can try to reproduce a similar scenario. Assign the ticket directly to me. > Second question is about JPEG outputformat. It works through GD with > these settings > OUTPUTFORMAT > NAME "jpeg" > MIMETYPE "image/jpeg" > DRIVER "GD/JPEG" > EXTENSION "jpg" > IMAGEMODE RGB > END > > If I change driver to "GDAL/JPEG" I get this error on ms errorlog > [Mon Mar 16 11:16:05 2009].825000 msSaveImageGDAL(): General error > message. Failed to create output JPEG file. > JPEG driver doesn't support 4 bands. Must be 1 (grey) or 3 (RGB) bands. > > What makes GDAL/JPEG driver to believe that I want 4 bands? Or is it > just best to use DG/JPEG always? I'm surprised. This should not occur with IMAGEMODE RGB. I would appreciate your also filing a ticket on this issue and assigning it to me. 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 MMaganti at oriongis.com Mon Mar 16 12:06:25 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Mon, 16 Mar 2009 15:06:25 -0400 Subject: [mapserver-users] Scalebar align issue Message-ID: Hi Setting the scalebar align property to 'left' or 'right' is truncating some text towards that edge. Works fine for 'center' align. For example, I have scalebar with units as miles and align set to right, scalebar label is displaying only 'm' instead of displaying 'mi' for miles. If I change the align to left, part of the 0 is sliced. Is there any property that I can use so that full text is displayed. I have tried buffer and offset properties of label but both did not work. Thanks Murty -------------- next part -------------- An HTML attachment was scrubbed... URL: From mapserver at gismap.ch Mon Mar 16 14:50:58 2009 From: mapserver at gismap.ch (mapserver at gismap.ch) Date: Mon, 16 Mar 2009 22:50:58 +0100 (CET) Subject: [mapserver-users] msQueryByAttributes - regex problem Message-ID: <4235.196.201.34.165.1237240258.squirrel@limited.webmail.hostpoint.ch> Hi list I'm facing a problem using msQueryByAttributes. I'm still using php/mapscript v4.0.2. If I search for a string ending with ?UF? or ?uf?, f.e. ?525UF?, I get the following message: Warning: [MapServer Error]: msQueryByAttributes(): No matching record(s) found. in [...]. The entry ?525UF? is definitely there! I did some debugging and it seams that this problem has to do with php. I'm still using php 4.3.10. At the time I compiled php, we were forced to compile php with regex=system. If I remember well, this was due to some unresolved problems in the code of mapserver. I would like to avoid an upgrade of php and mapserver right now. Is there a way to solve this problem? Kind regards, Roman From Steve.Lime at dnr.state.mn.us Mon Mar 16 22:14:40 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 17 Mar 2009 00:14:40 -0500 Subject: [mapserver-users] Prevalence of the use of queryfiles... Message-ID: <49BEEB700200008F00021A89@co5.dnr.state.mn.us> The problem we have is that to efficiently process result sets from database-based drivers we need to reference rows in the result set rather than rows in the dataset. That means the results (with those types of DATA/CONNECTIONs) can't be cached using the current mechanism. Shapefiles would still work ok. The faster query processing is much faster, as much as 24x faster with DB-based data that it's not practical to do things the old way. Steve >>> Martin Kofahl 03/15/09 2:35 PM >>> We use them with MapScript. Maybe it's possibile to activate saved queries only with with a compiler option? Steve Lime wrote: > Hi all: Consider this a survey of sorts. I'm wondering how many of > you make use of saving queries, either via the CGI or MapScript. It's > an old feature that isn't terribly useful and I'm trying to > understand the pain the community might incur if they go away in 6.0. > If you didn't know they existed or how you might use them then it's > safe to say you don't need 'em. > > Steve _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Mon Mar 16 22:20:21 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 17 Mar 2009 00:20:21 -0500 Subject: [mapserver-users] Prevalence of the use of queryfiles... Message-ID: <49BEECC50200008F00021A8E@co5.dnr.state.mn.us> We may need to consider caching to a shapefile or something like that. You'd be free then to reference that file as a layer. Slinging ids around is another idea I've used with OpenLayers. You pass the id into a "selection layer" by changing an expression on-the-fly and in that case you'd have full symbology control. A shapefile cache would work similarly but you'd swap the DATA... Steve >>> BrainDrain 03/16/09 4:39 AM >>> I need queryfiles to persist query results (serialize to string/binary method wanted!) as a part of whole map 'state'. But I need more convenient, handy way to configure style of queried (selected) features. Style section to setup {border (color, line pattern, transparency), filling (color, fill pattern, transparency), maybe some symbolization} instead of just highlight color. It will be very useful (currently I need to dump query results into some temp table in spatial db - which has a spec. layer section (sections - for each feature type) in map file). For. ex. if my 'selection' is small - I can highlight it with vector features (good looking and fast, flexible styling!, no raster (all tiles! - can't decide which tile to redraw for general queries) data requests and redrawing - in OpenLayers), but when selection is big - I need to highlight it on server and re-request map tiles. Steve Lime wrote: > > Hi all: Consider this a survey of sorts. I'm wondering how many of you > make use of saving queries, either via the CGI or MapScript. It's an old > feature that isn't terribly useful and I'm trying to understand the pain > the community might incur if they go away in 6.0. If you didn't know they > existed or how you might use them then it's safe to say you don't need > 'em. > > Steve > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/Prevalence-of-the-use-of-queryfiles...-tp2471795p2484926.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 bokhorst at argoss.nl Tue Mar 17 00:25:35 2009 From: bokhorst at argoss.nl (Reinoud Bokhorst) Date: Tue, 17 Mar 2009 08:25:35 +0100 Subject: [mapserver-users] Using a 16-bit per band PNG image Message-ID: <20090317082535.bvtnj28js48kwsgs@sputnik.argoss.nl> Hi, I am trying to use a PNG image with 16-bits per color band (TYPE=UInt16 according to GDAL) as a raster layer in mapserver. But what comes out is reduced to a 8-bit per color band PNG (TYPE=BYTE) resulting in a loss of colors. I tried various imagetype options like aggpng24, png24 and my own outputformat definitions with imagemode RGB, RGBA and INT16 but all gave the same result. It seems that I should be using INT16 but mapserv crashes on it. Apache log file only shows "Premature end of script headers: mapserv". Also the documentation mentions "No presentation" for the INT16 option: what does that mean? This is the mapserver I am using: Reinoud Bokhorst ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From schroeter at netgis.de Tue Mar 17 01:41:59 2009 From: schroeter at netgis.de (Sven Schroeter) Date: Tue, 17 Mar 2009 09:41:59 +0100 Subject: [mapserver-users] ArcSDE-Support for php mapscript Message-ID: <3D4FEF0A279345E7B6D21481A58C0905@SVEN> Hi all, My customers System: Windows 2003 Server with IIS 6, PHP 5.2.5 MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I use mapserver only via php-mapscript and want to get an ArcSDE-Layer (Version 9.1). How can I get ArcSDE-Support for php mapscript? Thanks Sven From Jukka.Rahkonen at mmmtike.fi Tue Mar 17 04:32:20 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 17 Mar 2009 13:32:20 +0200 Subject: [mapserver-users] Two questions about WMS and outputformats In-Reply-To: <49BE7997.60606@pobox.com> Message-ID: Frank Warmerdam wrote: > Aihe: Re: [mapserver-users] Two questions about WMS and outputformats > > Rahkonen Jukka wrote: > > Hi, > > > > By default, without having any OUTPUTFORMAT sections in the > mapfile, > > Mapserver is advertising following imageformats in WMS > GetCapabilities > > document: > > > > > > image/gif > > image/png > > image/png; mode=24bit > > image/jpeg > > image/vnd.wap.wbmp > > image/tiff > > image/svg+xml > > > > Some users have been confused because WMS client builds menu items > > according to that list, but at least "image/png; mode 24bit" and > > "image/tiff" do not give any output. What is the reason to include > > these formats in getCapabilities by default, if they do not work > > without creating OUTPUTFORMATs in the mapfile first? > > Jukka, > > I don't know why image/tiff and image/png; mode=24bit would not work. > Perhaps you could file a ticket with minimal details to > reproduce this problem. Please include the mapserv -v string > in the ticket so I can try to reproduce a similar scenario. > Assign the ticket directly to me. I repeated the test in a more controlled way. Image/tiff works, but image/png; mode=24bit does not work. The other advertised format that does not work is image/svg xml. > > Second question is about JPEG outputformat. It works > through GD with > > these settings OUTPUTFORMAT > > NAME "jpeg" > > MIMETYPE "image/jpeg" > > DRIVER "GD/JPEG" > > EXTENSION "jpg" > > IMAGEMODE RGB > > END > > > > If I change driver to "GDAL/JPEG" I get this error on ms > errorlog [Mon > > Mar 16 11:16:05 2009].825000 msSaveImageGDAL(): General > error message. > > Failed to create output JPEG file. > > JPEG driver doesn't support 4 bands. Must be 1 (grey) or 3 > (RGB) bands. > > > > What makes GDAL/JPEG driver to believe that I want 4 bands? > Or is it > > just best to use DG/JPEG always? > > I'm surprised. This should not occur with IMAGEMODE RGB. I > would appreciate your also filing a ticket on this issue and > assigning it to me. It does occur with the Mapserver versions I was testing (5.2.0, 5.2.1 and 5.3-dev). I am filing two tickets. -Jukka- From warmerdam at pobox.com Tue Mar 17 06:52:01 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 17 Mar 2009 09:52:01 -0400 Subject: [mapserver-users] Using a 16-bit per band PNG image In-Reply-To: <20090317082535.bvtnj28js48kwsgs@sputnik.argoss.nl> References: <20090317082535.bvtnj28js48kwsgs@sputnik.argoss.nl> Message-ID: <49BFAB01.3020706@pobox.com> Reinoud Bokhorst wrote: > Hi, > I am trying to use a PNG image with 16-bits per color band (TYPE=UInt16 > according to GDAL) as a raster layer in mapserver. But what comes out is > reduced to a 8-bit per color band PNG (TYPE=BYTE) resulting in a loss of > colors. Reinoud, MapServer does not normally support more than 8bit per band output. If you need 16bit color resolution per color band you are pretty much out of luck. > I tried various imagetype options like aggpng24, png24 and my own > outputformat definitions with imagemode RGB, RGBA and INT16 but all gave > the same result. > > It seems that I should be using INT16 but mapserv crashes on it. Apache > log file only shows "Premature end of script headers: mapserv". Also the > documentation mentions "No presentation" for the INT16 option: what does > that mean? INT16 is primarily meant for pure-raster rendering for things like WCS that need to preserve the original raster pixel values exactly rather than producing a presentation oriented result. I am concerned about the crash. I would appreciate your filing a ticket with details on reproducing this problem. In theory you should be able to achieve 16bit per color band output if you use INT16, an output format that is based on GDAL with a 16bit supporting format like PNG or GeoTIFF. But keep in mind you cannot render any non-raster results into such an output format. The BYTE, INT16, and FLOAT32 output formats are only supported by the raster layer renderer (as noted - primarily aimed at WCS). 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 jmckenna at gatewaygeomatics.com Tue Mar 17 07:23:19 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 17 Mar 2009 10:23:19 -0400 Subject: [mapserver-users] ArcSDE-Support for php mapscript In-Reply-To: <3D4FEF0A279345E7B6D21481A58C0905@SVEN> References: <3D4FEF0A279345E7B6D21481A58C0905@SVEN> Message-ID: <49BFB257.1050700@gatewaygeomatics.com> Sven Schroeter wrote: > Hi all, > My customers System: > Windows 2003 Server with IIS 6, PHP 5.2.5 > MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER > SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS > INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > I use mapserver only via php-mapscript and want to get an ArcSDE-Layer > (Version 9.1). > How can I get ArcSDE-Support for php mapscript? > Sven, Have you tried the MS4W binaries? If the existing MS4W version does not meet your needs, you can contact me directly and we can discuss a custom build. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From pal.kristensen at statkart.no Tue Mar 17 11:54:20 2009 From: pal.kristensen at statkart.no (paalkr) Date: Tue, 17 Mar 2009 11:54:20 -0700 (PDT) Subject: [mapserver-users] Two questions about WMS and outputformats In-Reply-To: <49BE7997.60606@pobox.com> References: <49BE7997.60606@pobox.com> Message-ID: <1237316060184-2493151.post@n2.nabble.com> Hi! Is there a way to prevent the default outputformats to be exposed in the capabilities document? I have a map service where I have used AGG specific rendering capabilities, and requesting e.g a GIF image then makes a bad looking map and does not make sense. I would like the opportunity to only expose explicit defined formats specified with one or more OUTPUTFORMAT blocks. I don't want to disable the different drivers though, only control the outputformat list in the GetCapabilities response. If the only way to achieve this is to patch the source code, I would be glade if any of the devs could point me in the right direction. Regards, P?l Kristensen Frank Warmerdam wrote: > > Rahkonen Jukka wrote: >> Hi, >> >> By default, without having any OUTPUTFORMAT sections in the mapfile, >> Mapserver is advertising following imageformats in WMS GetCapabilities >> document: >> >> >> image/gif >> image/png >> image/png; mode=24bit >> image/jpeg >> image/vnd.wap.wbmp >> image/tiff >> image/svg+xml >> > -- View this message in context: http://n2.nabble.com/Re%3A-Two-questions-about-WMS-and-outputformats-tp2486969p2493151.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bthoen at gisnet.com Tue Mar 17 14:47:05 2009 From: bthoen at gisnet.com (Bill Thoen) Date: Tue, 17 Mar 2009 15:47:05 -0600 Subject: [mapserver-users] Problems with Google 900913 Projection and WMS Layers Message-ID: <49C01A59.1000001@gisnet.com> I'm trying to get my WMS server to produce WMS layers for an OpenLayers application I'm building that uses some Google map layers. But I'm getting no results. DEBUG set to ON in my mapfile produces the following errors (this is the last three lines of the log file: [Tue Mar 17 15:16:28 2009].567265 msProcessProjection(): Projection library error. no options found in 'init' file [Tue Mar 17 15:16:28 2009].578247 msProcessProjection(): Projection library error. no options found in 'init' file [Tue Mar 17 15:16:28 2009].603064 msProcessProjection(): Projection library error. no options found in 'init' file I did put the definition for the Google CRS in /usr/share/proj/defs as: # Google's spherical mercator projection <900913> +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 +no_defs <> So could someone here clue me in to what's wrong? What's the 'init' file and what do I need to put in it? I'm on a Linux system with mapserver set up like so: MapServer version 5.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Below is my mapfile if you want to see it. TIA, - Bill Thoen --- MAP CONFIG MS_ERRORFILE "/var/www/html/tmp/ms_errors.txt" DEBUG ON # EXTENT -102.39 36.81 -94.44 40.13 EXTENT -20037508.34 -20037508.34 20037508.34 20037508.34 IMAGECOLOR 255 255 255 SHAPEPATH /var/www/vfm/ FONTSET /var/www/maps/fonts/fonts.txt SYMBOLSET /var/www/maps/symbols/symbols.txt OUTPUTFORMAT NAME 'AGG' DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END WEB IMAGEPATH "/var/www/html/tmp/" IMAGEURL "/tmp/" METADATA "wms_title" "VFM Data Layers" "wms_onlineresource" "http://xxx.xxx.xxx.xxx/cgi-bin/mapserv?map=/var/www/html/vfm/ms.map&" "wms_srs" "EPSG:4326 EPSG:900913" END END PROJECTION "init=epsg:900913" END UNITS METERS LAYER NAME "states" METADATA "wms_title" "US State boundaries" "wms_srs" "EPSG:32614 EPSG:4326 EPSG:900913" END TYPE POLYGON STATUS ON DATA ../maps/data/states CLASS NAME "US States" STYLE OUTLINECOLOR 0 0 0 WIDTH 2 END END PROJECTION "init=epsg:32614" END END LAYER NAME "counties" METADATA "wms_title" "County Boundaries" "wms_srs" "EPSG:4269 EPSG:4326 EPSG:900913" END TYPE POLYGON STATUS ON DATA ../maps/data/County_tiger_2007_region CLASS NAME "County Boundaries" STYLE OUTLINECOLOR 128 128 128 COLOR 255 255 192 WIDTH 1 END END PROJECTION "init=epsg:4269" END END END From pal.kristensen at statkart.no Tue Mar 17 14:56:18 2009 From: pal.kristensen at statkart.no (paalkr) Date: Tue, 17 Mar 2009 14:56:18 -0700 (PDT) Subject: [mapserver-users] Problems with Google 900913 Projection and WMS Layers In-Reply-To: <49C01A59.1000001@gisnet.com> References: <49C01A59.1000001@gisnet.com> Message-ID: <1237326978710-2494106.post@n2.nabble.com> Hi! Which file did you add the 900913 coordinate system block to? You have to add it to the epsg file, I have done that my self and has no trouble (regarding coordinate system support) when adding a WMS service from MapServer in Google Maps. Regards, P?l Kristensen Bill Thoen wrote: > > .. > I did put the definition for the Google CRS in /usr/share/proj/defs as: > > # Google's spherical mercator projection > <900913> +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 +no_defs <> > ... > -- View this message in context: http://n2.nabble.com/Problems-with-Google-900913-Projection-and-WMS-Layers-tp2494052p2494106.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Tue Mar 17 15:02:17 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 18 Mar 2009 00:02:17 +0200 Subject: [mapserver-users] Two questions about WMS and outputformats References: <49BE7997.60606@pobox.com> Message-ID: Hi, Reason for both of my problems was found. The first, two image formats that seemed not to work, is caused by not-so-common MIME types "image/png; mode=24bit" and "image/svg+xml" (not "image/tiff" as I wrote in my original mail). My GIS client does not use url encoding for Space and Plus characters, and therefore GetMap requests are failing. Another problem comes also from GIS client that is always adding &TRANSPARENT=TRUE to WMS GetMap requests. GDAL/JPEG driver fails in this case because jpeg really does not support transparency. GD/JPEG driver does not care but it just cretes a jpeg image for the client. For WMS users this is more convenient. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: Frank Warmerdam [mailto:warmerdam at pobox.com] L?hetetty: ma 16.3.2009 18:08 Vastaanottaja: Rahkonen Jukka Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Two questions about WMS and outputformats Rahkonen Jukka wrote: > Hi, > > By default, without having any OUTPUTFORMAT sections in the mapfile, > Mapserver is advertising following imageformats in WMS GetCapabilities > document: > > > image/gif > image/png > image/png; mode=24bit > image/jpeg > image/vnd.wap.wbmp > image/tiff > image/svg+xml > > Some users have been confused because WMS client builds menu items > according to that list, but at least "image/png; mode 24bit" and > "image/tiff" do not give any output. What is the reason to include these > formats in getCapabilities by default, if they do not work without > creating OUTPUTFORMATs in the mapfile first? Jukka, I don't know why image/tiff and image/png; mode=24bit would not work. Perhaps you could file a ticket with minimal details to reproduce this problem. Please include the mapserv -v string in the ticket so I can try to reproduce a similar scenario. Assign the ticket directly to me. > Second question is about JPEG outputformat. It works through GD with > these settings > OUTPUTFORMAT > NAME "jpeg" > MIMETYPE "image/jpeg" > DRIVER "GD/JPEG" > EXTENSION "jpg" > IMAGEMODE RGB > END > > If I change driver to "GDAL/JPEG" I get this error on ms errorlog > [Mon Mar 16 11:16:05 2009].825000 msSaveImageGDAL(): General error > message. Failed to create output JPEG file. > JPEG driver doesn't support 4 bands. Must be 1 (grey) or 3 (RGB) bands. > > What makes GDAL/JPEG driver to believe that I want 4 bands? Or is it > just best to use DG/JPEG always? I'm surprised. This should not occur with IMAGEMODE RGB. I would appreciate your also filing a ticket on this issue and assigning it to me. 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 pal.kristensen at statkart.no Tue Mar 17 15:05:12 2009 From: pal.kristensen at statkart.no (paalkr) Date: Tue, 17 Mar 2009 15:05:12 -0700 (PDT) Subject: [mapserver-users] WFS and PostGIS newbie question In-Reply-To: <1237318815585-2493398.post@n2.nabble.com> References: <1237318815585-2493398.post@n2.nabble.com> Message-ID: <1237327512959-2494148.post@n2.nabble.com> Hi! CONNECTIONTYPE WFS is used when MapServer acts as a WFS client, i.e consuming a WFS service. If I understood you correctly, you are trying to serve out a WFS service with data stored in PostgreSQL/PostGIS. I think the following documents should be of great help to you: WFS server howto: http://mapserver.org/ogc/wfs_server.html Data input/PostGIS: http://mapserver.org/input/vector/postgis.html Regards, P?l Kristensen SeeJay wrote: > > I'm trying to learn Mapserver/OpenLayers/PostGIS and have made slow but > steady progress so far. But I'm pretty stuck now. > > I'm trying to create my first WFS using point data stored in PostGIS. > From the examples I have seen on the web it seems that CONNECTIONTYPE has > to be WFS, but I can't figure out where I specifiy the PostGIS connection > parameters? Can someone post an example of what this should look like? > > Thanks, > CJ > -- View this message in context: http://n2.nabble.com/WFS-and-PostGIS-newbie-question-tp2493398p2494148.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bthoen at gisnet.com Tue Mar 17 15:33:35 2009 From: bthoen at gisnet.com (Bill Thoen) Date: Tue, 17 Mar 2009 16:33:35 -0600 Subject: [mapserver-users] Problems with Google 900913 Projection and WMS Layers Message-ID: <49C0253F.5060508@gisnet.com> I added it to the epsg file. paalkr wrote: > Hi! > > Which file did you add the 900913 coordinate system block to? You have to > add it to the epsg file, I have done that my self and has no trouble > (regarding coordinate system support) when adding a WMS service from > MapServer in Google Maps. > > Regards, > P?l Kristensen > > > > Bill Thoen wrote: > >> .. >> I did put the definition for the Google CRS in /usr/share/proj/defs as: >> >> # Google's spherical mercator projection >> <900913> +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 +no_defs <> >> ... >> >> > > From dmail at digitalics.com Tue Mar 17 17:12:58 2009 From: dmail at digitalics.com (mapgeek) Date: Tue, 17 Mar 2009 17:12:58 -0700 (PDT) Subject: [mapserver-users] SDE connection problem from Solaris Mapserver Message-ID: <1237335178805-2494645.post@n2.nabble.com> Environment: Mapserver 5.2.1 // Solaris 9 // Apache 2.2.8 // SDE 9.2 I am trying to serve SDE data via WFS requests. It works great on a development machine running MS4W, but now we're trying to get it working on our Solaris web server, and the SDE connection is not working there. To move my map file from Windows to Solaris: 1) Changed paths in CONFIG PROJ_LIB and CONFIG MS_ERRORFILE 2) Replaced 2 lines of connection info for Windows ("CONNECTIONTYPE PLUGIN" and "PLUGIN c:/path/msplugin_sde_92.dll") with one line "CONNECTIONTYPE SDE". In the SDE logs, requests from MS4W show the sort of select statement that I would expect. The Solaris Mapserver requests do add to the SDE logs, but I don't see anything that looks like a select statement. The error returned is: SE_layer_get_info(): Layer not found. (-20) Question: Am I doing something wrong in my connection info? Perhaps something to do with our install? Additional files: testhazunix.map: map file mapserver_solaris_errors.txt: Mapserver error log and WFS ServiceException mapserver_sde_logs.txt: SDE logs showing a successful request from MS4W and failed Mapserver/Solaris thanks! http://n2.nabble.com/file/n2494645/testhazunix.map testhazunix.map http://n2.nabble.com/file/n2494645/mapserver_solaris_errors.txt mapserver_solaris_errors.txt http://n2.nabble.com/file/n2494645/mapserver_sde_logs.txt mapserver_sde_logs.txt -- View this message in context: http://n2.nabble.com/SDE-connection-problem-from-Solaris-Mapserver-tp2494645p2494645.html Sent from the Mapserver - User mailing list archive at Nabble.com. From djabex at hotmail.com Wed Mar 18 02:49:21 2009 From: djabex at hotmail.com (=?iso-8859-1?Q?Alberto_Fern=E1ndez_S=E1nchez?=) Date: Wed, 18 Mar 2009 10:49:21 +0100 Subject: [mapserver-users] Hide legend of some layers Message-ID: Hello friends, I need help because I have a doubt in the redaction of mapfile. How I can hide the legend of some layers or classes of layers? Thank you. _________________________________________________________________ Nuevo Windows Live, un mundo lleno de posibilidades. Desc?brelo. http://www.microsoft.com/windows/windowslive/default.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtammineni at roulacglobal.com Wed Mar 18 03:16:17 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Wed, 18 Mar 2009 15:46:17 +0530 Subject: [mapserver-users] Hide legend of some layers In-Reply-To: References: Message-ID: <001201c9a7b2$94be0c30$be3a2490$@com> Hi, I have code for layers on and off public static void layersTurnOn(mapObj map,layerObj layer) { layer = map.getLayerByName("Continents"); layer.status=(int)mapscript.MS_ON; layer = map.getLayerByName("Countries"); layer.status=(int)mapscript.MS_ON; } public static void LayersTurnOff(mapObj map,layerObj layer) { layer = map.getLayerByName("Continents"); layer.status=(int)mapscript.MS_OFF; layer = map.getLayerByName("Countries"); layer.status=(int)mapscript.MS_OFF; } These two methods you have to call LayersTurnOff() before creating legend and you can layersTurnOn() Layers Thanks Venkat. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Alberto Fern?ndez S?nchez Sent: Wednesday, March 18, 2009 3:19 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Hide legend of some layers Hello friends, I need help because I have a doubt in the redaction of mapfile. How I can hide the legend of some layers or classes of layers? Thank you. _____ Nuevo Windows Live, un mundo lleno de posibilidades Desc?brelo. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at osgis.nl Wed Mar 18 02:57:40 2009 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Wed, 18 Mar 2009 10:57:40 +0100 (CET) Subject: [mapserver-users] Hide legend of some layers In-Reply-To: References: Message-ID: <36530.145.50.39.11.1237370260.squirrel@webmail.hostingdiscounter.nl> Leave out the NAME of the CLASS(es). Best regards, Bart > > Hello friends, > > I need help because I have a doubt in the redaction of mapfile. How I can > hide the legend of some layers or classes of layers? > Thank you. > > > _________________________________________________________________ > Nuevo Windows Live, un mundo lleno de posibilidades. Desc?brelo. > http://www.microsoft.com/windows/windowslive/default.aspx_______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From pgiannini at bytewise.it Wed Mar 18 03:32:12 2009 From: pgiannini at bytewise.it (Pietro Giannini) Date: Wed, 18 Mar 2009 11:32:12 +0100 Subject: [mapserver-users] Problems with Google 900913 Projection and WMS Layers In-Reply-To: <49C01A59.1000001@gisnet.com> References: <49C01A59.1000001@gisnet.com> Message-ID: <49C0CDAC.6080001@bytewise.it> Put the epsg definition directly on .map file: MAP ... 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 +no_defs" END ... END bye ...................pg Bill Thoen ha scritto: > I'm trying to get my WMS server to produce WMS layers for an > OpenLayers application I'm building that uses some Google map layers. > But I'm getting no results. DEBUG set to ON in my mapfile produces the > following errors (this is the last three lines of the log file: > [Tue Mar 17 15:16:28 2009].567265 msProcessProjection(): Projection > library error. no options found in 'init' file > [Tue Mar 17 15:16:28 2009].578247 msProcessProjection(): Projection > library error. no options found in 'init' file > [Tue Mar 17 15:16:28 2009].603064 msProcessProjection(): Projection > library error. no options found in 'init' file > > I did put the definition for the Google CRS in /usr/share/proj/defs as: > > # Google's spherical mercator projection > <900913> +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 +no_defs <> > > So could someone here clue me in to what's wrong? What's the 'init' > file and what do I need to put in it? I'm on a Linux system with > mapserver set up like so: > MapServer version 5.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=GEOS INPUT=EPPL7 > INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > Below is my mapfile if you want to see it. > TIA, > - Bill Thoen > > --- > MAP > CONFIG MS_ERRORFILE "/var/www/html/tmp/ms_errors.txt" > DEBUG ON > # EXTENT -102.39 36.81 -94.44 40.13 > EXTENT -20037508.34 -20037508.34 20037508.34 20037508.34 > IMAGECOLOR 255 255 255 > SHAPEPATH /var/www/vfm/ > FONTSET /var/www/maps/fonts/fonts.txt > SYMBOLSET /var/www/maps/symbols/symbols.txt > > OUTPUTFORMAT > NAME 'AGG' > DRIVER "AGG/PNG" > MIMETYPE "image/png" > IMAGEMODE RGB > EXTENSION "png" > END > > WEB > IMAGEPATH "/var/www/html/tmp/" > IMAGEURL "/tmp/" > METADATA > "wms_title" "VFM Data Layers" > "wms_onlineresource" > "http://xxx.xxx.xxx.xxx/cgi-bin/mapserv?map=/var/www/html/vfm/ms.map&" > "wms_srs" "EPSG:4326 EPSG:900913" > END > END > > PROJECTION > "init=epsg:900913" > END > UNITS METERS > > LAYER > NAME "states" > METADATA > "wms_title" "US State boundaries" > "wms_srs" "EPSG:32614 EPSG:4326 EPSG:900913" > END > TYPE POLYGON > STATUS ON > DATA ../maps/data/states > CLASS > NAME "US States" > STYLE > OUTLINECOLOR 0 0 0 > WIDTH 2 > END > END > PROJECTION > "init=epsg:32614" > END > END > > LAYER > NAME "counties" > METADATA > "wms_title" "County Boundaries" > "wms_srs" "EPSG:4269 EPSG:4326 EPSG:900913" > END > TYPE POLYGON > STATUS ON > DATA ../maps/data/County_tiger_2007_region > CLASS > NAME "County Boundaries" > STYLE > OUTLINECOLOR 128 128 128 > COLOR 255 255 192 > WIDTH 1 > END > END > PROJECTION > "init=epsg:4269" > END > END > END > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E From djabex at hotmail.com Wed Mar 18 03:31:49 2009 From: djabex at hotmail.com (=?iso-8859-1?Q?Alberto_Fern=E1ndez_S=E1nchez?=) Date: Wed, 18 Mar 2009 11:31:49 +0100 Subject: [mapserver-users] Hide legend of some layers In-Reply-To: References: Message-ID: Both options work to the perfection. You have been very fast! Thanks to all. Alberto Nuevo Windows Live, un mundo lleno de posibilidades Desc?brelo. _________________________________________________________________ Nuevo Windows Live, un mundo lleno de posibilidades. Desc?brelo. http://www.microsoft.com/windows/windowslive/default.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Wed Mar 18 03:30:27 2009 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 18 Mar 2009 11:30:27 +0100 Subject: [mapserver-users] Hide legend of some layers In-Reply-To: References: Message-ID: only the classes that have a NAME or TITLE will show up in the legend. If you don't put one, they don't show up regards, -- thomas bonfort camptocamp 2009/3/18 Alberto Fern?ndez S?nchez : > Hello friends, > > I need help because I have a doubt in the redaction of mapfile. How I can > hide the legend of some layers or classes of layers? > Thank you. > > > ________________________________ > Nuevo Windows Live, un mundo lleno de posibilidades Desc?brelo. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From aberenyi at burken.hu Wed Mar 18 04:41:56 2009 From: aberenyi at burken.hu (=?ISO-8859-2?Q?Ber=E9nyi_Attila?=) Date: Wed, 18 Mar 2009 12:41:56 +0100 Subject: [mapserver-users] color data from MySQL DB Message-ID: <49C0DE04.3060304@burken.hu> Dear All, Is it possible to use the colorindex attribute from a MyGIS DB (what was created from a shape file using ogr2ogr) to colorize the displayed items in mapserver? Thanks in advance, Attila -------------- next part -------------- An HTML attachment was scrubbed... URL: From aberenyi at burken.hu Wed Mar 18 05:16:08 2009 From: aberenyi at burken.hu (=?ISO-8859-1?Q?Ber=E9nyi_Attila?=) Date: Wed, 18 Mar 2009 13:16:08 +0100 Subject: [mapserver-users] color data from MySQL DB In-Reply-To: <002c01c9a7c1$e454a8d0$acfdfa70$@com> References: <49C0DE04.3060304@burken.hu> <002c01c9a7c1$e454a8d0$acfdfa70$@com> Message-ID: <49C0E608.6070505@burken.hu> Hi, It's a single column containing color index numbers, e.g. 84. What you wrote is right, but I'd like to achieve something like this: COLOR [colorindex] or something. Thanks anyway, Best regards, Attila Venkat Rao Tammineni ?rta: > > Hi, > > > > What Is colorindex you mean.. that you have one colum called color > intedex ? is it ? if it is you can not use the same column in mapfile > .Because classObj has color property which you use directly. > > > > Like below ... > > Class > > Name "test" > > Expression 'test' > > color 45 45 12 > > > > > > Or if not please explain what you want exactly... > > > > Thanks, > > Venkat > > > > *From:* mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of > *Ber?nyi Attila > *Sent:* Wednesday, March 18, 2009 5:12 PM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] color data from MySQL DB > > > > Dear All, > > Is it possible to use the colorindex attribute from a MyGIS DB (what > was created from a shape file using ogr2ogr) to colorize the displayed > items in mapserver? > > Thanks in advance, > > Attila > -- Ber?nyi Attila / Attila Ber?nyi okl. t?rinformatikus m?rn?k / MSc. GIS engineer Burken Kft. / Burken Ltd. H-1155 Budapest, Obsitos t?r 2. Tel1: +36-1-415-0219 Tel2: +36-1-415-0220 Fax: +36-1-410-1314 E-mail: aberenyi at burken.hu Web: http://www.laservision.hu -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Wed Mar 18 05:09:24 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 18 Mar 2009 08:09:24 -0400 Subject: [mapserver-users] Two questions about WMS and outputformats In-Reply-To: <1237316060184-2493151.post@n2.nabble.com> References: <49BE7997.60606@pobox.com> <1237316060184-2493151.post@n2.nabble.com> Message-ID: <49C0E474.3010401@dmsolutions.ca> Hi, There was a ticket opened for that years ago with a path to implement it, but was never addressed: (http://trac.osgeo.org/mapserver/ticket/455) It seems to be less controversial in functionality than the recent "Hiding/Enabling/Ignoring Layers in OGC Web Services" thread, but introduces another new metadata and that by it self may be controversial. I am willing to provide a patch for now following what is discussed in the bug and depending on how the OGC metadata organization evolves in the coming months, we would adapt that patch. Please add yourself in cc to this bug. Best Regards paalkr wrote: > Hi! > > Is there a way to prevent the default outputformats to be exposed in the > capabilities document? I have a map service where I have used AGG specific > rendering capabilities, and requesting e.g a GIF image then makes a bad > looking map and does not make sense. I would like the opportunity to only > expose explicit defined formats specified with one or more OUTPUTFORMAT > blocks. > > I don't want to disable the different drivers though, only control the > outputformat list in the GetCapabilities response. If the only way to > achieve this is to patch the source code, I would be glade if any of the > devs could point me in the right direction. > > Regards, > P?l Kristensen > > > > Frank Warmerdam wrote: >> Rahkonen Jukka wrote: >>> Hi, >>> >>> By default, without having any OUTPUTFORMAT sections in the mapfile, >>> Mapserver is advertising following imageformats in WMS GetCapabilities >>> document: >>> >>> >>> image/gif >>> image/png >>> image/png; mode=24bit >>> image/jpeg >>> image/vnd.wap.wbmp >>> image/tiff >>> image/svg+xml >>> > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From pal.kristensen at statkart.no Wed Mar 18 05:54:01 2009 From: pal.kristensen at statkart.no (paalkr) Date: Wed, 18 Mar 2009 05:54:01 -0700 (PDT) Subject: [mapserver-users] Two questions about WMS and outputformats In-Reply-To: <49C0E474.3010401@dmsolutions.ca> References: <49BE7997.60606@pobox.com> <1237316060184-2493151.post@n2.nabble.com> <49C0E474.3010401@dmsolutions.ca> Message-ID: <1237380841936-2497002.post@n2.nabble.com> Hi Thanks, looking forward to the patch! Regards, P?l Kristensen Yewondwossen Assefa wrote: > > Hi, > > There was a ticket opened for that years ago with a path to implement > it, but was never addressed: > (http://trac.osgeo.org/mapserver/ticket/455) > It seems to be less controversial in functionality than the recent > "Hiding/Enabling/Ignoring Layers in OGC Web Services" thread, but > introduces another new metadata and that by it self may be > controversial. I am willing to provide a patch for now following what > is discussed in the bug and depending on how the OGC metadata > organization evolves in the coming months, we would adapt that patch. > Please add yourself in cc to this bug. > > Best Regards > > > paalkr wrote: >> Hi! >> >> Is there a way to prevent the default outputformats to be exposed in the >> capabilities document? I have a map service where I have used AGG >> specific >> rendering capabilities, and requesting e.g a GIF image then makes a bad >> looking map and does not make sense. I would like the opportunity to only >> expose explicit defined formats specified with one or more OUTPUTFORMAT >> blocks. >> >> I don't want to disable the different drivers though, only control the >> outputformat list in the GetCapabilities response. If the only way to >> achieve this is to patch the source code, I would be glade if any of the >> devs could point me in the right direction. >> >> Regards, >> P?l Kristensen >> >> >> >> Frank Warmerdam wrote: >>> Rahkonen Jukka wrote: >>>> Hi, >>>> >>>> By default, without having any OUTPUTFORMAT sections in the mapfile, >>>> Mapserver is advertising following imageformats in WMS GetCapabilities >>>> document: >>>> >>>> >>>> image/gif >>>> image/png >>>> image/png; mode=24bit >>>> image/jpeg >>>> image/vnd.wap.wbmp >>>> image/tiff >>>> image/svg+xml >>>> >> > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/Re%3A-Two-questions-about-WMS-and-outputformats-tp2486969p2497002.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bthoen at gisnet.com Wed Mar 18 07:35:40 2009 From: bthoen at gisnet.com (Bill Thoen) Date: Wed, 18 Mar 2009 08:35:40 -0600 Subject: [mapserver-users] Problems with Google 900913 Projection and WMS Layers In-Reply-To: <49C0CDAC.6080001@bytewise.it> References: <49C01A59.1000001@gisnet.com> <49C0CDAC.6080001@bytewise.it> Message-ID: <49C106BC.2000505@gisnet.com> No, that didn't makemuch difference. That produces a pile of these errors: [Wed Mar 18 07:52:12 2009].814433 msProcessProjection(): Projection library error. no options found in 'init' file [Wed Mar 18 07:52:12 2009].814829 msSaveImageGDCtx(): General error message. Unknown output image type driver: AGG/PNG. [Wed Mar 18 07:52:12 2009].839008 msProcessProjection(): Projection library error. no options found in 'init' file [Wed Mar 18 07:52:12 2009].839383 msSaveImageGDCtx(): General error message. Unknown output image type driver: AGG/PNG. I imagine that the "unknown output" is a text error message, but I don't know how to capture it to read it. There was nothing in the normal /var/loghttpd/error_log. This problem is driving me crazy. I've spent hours on it, and I still can't get it to work. I've googled, RTFM'ed, tried all kinds of "Hail Mary" code changes, and it still won't convert my WMS layers to fit on the Google projection. I don't know what this 'init' file is that MapServer is complaining about, but if it's /usr/share/proj/epsg, then I have checked that one and the projection for google maps is there, and AFAIK, all the parameters are correct. So I've written two mini versions of the code and attached the source to this message. Hopefully a fresh pair of eyes can spot the thing that I can't. What this code in g.html / g.map is supposed to do is just display a WMS of orange county boundaries as a layer on top of a google layer, but all I get is pink as far as the eye can see (but the google layer appears below the pink. The other one, g2.html / g2.map, just displays the counties in a Lat/long projection, and that one works (I included this one as a reality check to make sure there wasn't something wrong with my county file. Except for the bits that must be changed to accommodate the different projections the code is as identical as I could make it. You can run them on my server too. They are at http://206.168.217.244/gallery/g.html and http://206.168.217.244/gallery/g2.html. If anyone could give some help with this, I'd really appreciate it. It's got to be something simple; I just can't see it. TIA, - Bill Thoen Pietro Giannini wrote: > Put the epsg definition directly on .map file: > > MAP > ... > 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 +no_defs" > END > ... > END > > bye > ...................pg > > Bill Thoen ha scritto: >> I'm trying to get my WMS server to produce WMS layers for an >> OpenLayers application I'm building that uses some Google map layers. >> But I'm getting no results. DEBUG set to ON in my mapfile produces >> the following errors (this is the last three lines of the log file: >> [Tue Mar 17 15:16:28 2009].567265 msProcessProjection(): Projection >> library error. no options found in 'init' file >> [Tue Mar 17 15:16:28 2009].578247 msProcessProjection(): Projection >> library error. no options found in 'init' file >> [Tue Mar 17 15:16:28 2009].603064 msProcessProjection(): Projection >> library error. no options found in 'init' file >> >> I did put the definition for the Google CRS in /usr/share/proj/defs as: >> >> # Google's spherical mercator projection >> <900913> +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 +no_defs <> >> >> So could someone here clue me in to what's wrong? What's the 'init' >> file and what do I need to put in it? I'm on a Linux system with >> mapserver set up like so: >> MapServer version 5.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE >> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER >> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=GEOS INPUT=EPPL7 >> INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >> >> Below is my mapfile if you want to see it. >> TIA, >> - Bill Thoen >> >> --- >> MAP >> CONFIG MS_ERRORFILE "/var/www/html/tmp/ms_errors.txt" >> DEBUG ON >> # EXTENT -102.39 36.81 -94.44 40.13 >> EXTENT -20037508.34 -20037508.34 20037508.34 20037508.34 >> IMAGECOLOR 255 255 255 >> SHAPEPATH /var/www/vfm/ >> FONTSET /var/www/maps/fonts/fonts.txt >> SYMBOLSET /var/www/maps/symbols/symbols.txt >> >> OUTPUTFORMAT >> NAME 'AGG' >> DRIVER "AGG/PNG" >> MIMETYPE "image/png" >> IMAGEMODE RGB >> EXTENSION "png" >> END >> >> WEB >> IMAGEPATH "/var/www/html/tmp/" >> IMAGEURL "/tmp/" >> METADATA >> "wms_title" "VFM Data Layers" >> "wms_onlineresource" >> "http://xxx.xxx.xxx.xxx/cgi-bin/mapserv?map=/var/www/html/vfm/ms.map&" >> "wms_srs" "EPSG:4326 EPSG:900913" >> END >> END >> >> PROJECTION >> "init=epsg:900913" >> END >> UNITS METERS >> >> LAYER >> NAME "states" >> METADATA >> "wms_title" "US State boundaries" >> "wms_srs" "EPSG:32614 EPSG:4326 EPSG:900913" >> END >> TYPE POLYGON >> STATUS ON >> DATA ../maps/data/states >> CLASS >> NAME "US States" >> STYLE >> OUTLINECOLOR 0 0 0 >> WIDTH 2 >> END >> END >> PROJECTION >> "init=epsg:32614" >> END >> END >> >> LAYER >> NAME "counties" >> METADATA >> "wms_title" "County Boundaries" >> "wms_srs" "EPSG:4269 EPSG:4326 EPSG:900913" >> END >> TYPE POLYGON >> STATUS ON >> DATA ../maps/data/County_tiger_2007_region >> CLASS >> NAME "County Boundaries" >> STYLE >> OUTLINECOLOR 128 128 128 >> COLOR 255 255 192 >> WIDTH 1 >> END >> END >> PROJECTION >> "init=epsg:4269" >> END >> END >> END >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- A non-text attachment was scrubbed... Name: google_proj_problem.zip Type: application/zip Size: 3174 bytes Desc: not available URL: From bthoen at gisnet.com Wed Mar 18 10:12:33 2009 From: bthoen at gisnet.com (Bill Thoen) Date: Wed, 18 Mar 2009 11:12:33 -0600 Subject: [mapserver-users] Problems with Google 900913 Projection and WMS Layers In-Reply-To: <49C106BC.2000505@gisnet.com> References: <49C01A59.1000001@gisnet.com> <49C0CDAC.6080001@bytewise.it> <49C106BC.2000505@gisnet.com> Message-ID: <49C12B81.4030903@gisnet.com> It's looking more like this is an OpenLayers problem in interacting with the MapServer mapfile. I created a web template and ran it using just MapServer, and my WMS layer of county boundaries finally came up in the google projection! This works only if I put the raw Proj4 projection parameters in the PROJECTION object group, as Pietro Giannini suggested: 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 +no_defs" END However, this doesn't work with my MapServer: PROJECTION "init=epsg:900913" END and throws the error: "Projection library error. no options found in 'init' file " I've put the google projection record in /usr/share/proj/epsg, but MapServer doesn't seem to find it (although it has no trouble finding other projections.) Is there some sort of indexing or registering I've got to do on this file? I'm still looking for suggestions on this, and any help would be greatly appreciated. - Bill Thoen Bill Thoen wrote: > No, that didn't makemuch difference. That produces a pile of these > errors: > [Wed Mar 18 07:52:12 2009].814433 msProcessProjection(): Projection > library error. no options found in 'init' file > [Wed Mar 18 07:52:12 2009].814829 msSaveImageGDCtx(): General error > message. Unknown output image type driver: AGG/PNG. > [Wed Mar 18 07:52:12 2009].839008 msProcessProjection(): Projection > library error. no options found in 'init' file > [Wed Mar 18 07:52:12 2009].839383 msSaveImageGDCtx(): General error > message. Unknown output image type driver: AGG/PNG. > > I imagine that the "unknown output" is a text error message, but I > don't know how to capture it to read it. There was nothing in the > normal /var/loghttpd/error_log. > > This problem is driving me crazy. I've spent hours on it, and I still > can't get it to work. I've googled, RTFM'ed, tried all kinds of "Hail > Mary" code changes, and it still won't convert my WMS layers to fit on > the Google projection. I don't know what this 'init' file is that > MapServer is complaining about, but if it's /usr/share/proj/epsg, then > I have checked that one and the projection for google maps is there, > and AFAIK, all the parameters are correct. > > So I've written two mini versions of the code and attached the source > to this message. Hopefully a fresh pair of eyes can spot the thing > that I can't. What this code in g.html / g.map is supposed to do is > just display a WMS of orange county boundaries as a layer on top of a > google layer, but all I get is pink as far as the eye can see (but the > google layer appears below the pink. The other one, g2.html / g2.map, > just displays the counties in a Lat/long projection, and that one > works (I included this one as a reality check to make sure there > wasn't something wrong with my county file. Except for the bits that > must be changed to accommodate the different projections the code is > as identical as I could make it. You can run them on my server too. > They are at http://206.168.217.244/gallery/g.html and > http://206.168.217.244/gallery/g2.html. > > If anyone could give some help with this, I'd really appreciate it. > It's got to be something simple; I just can't see it. > > TIA, > - Bill Thoen > > > Pietro Giannini wrote: >> Put the epsg definition directly on .map file: >> >> MAP >> ... >> 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 +no_defs" >> END >> ... >> END >> >> bye >> ...................pg >> >> Bill Thoen ha scritto: >>> I'm trying to get my WMS server to produce WMS layers for an >>> OpenLayers application I'm building that uses some Google map >>> layers. But I'm getting no results. DEBUG set to ON in my mapfile >>> produces the following errors (this is the last three lines of the >>> log file: >>> [Tue Mar 17 15:16:28 2009].567265 msProcessProjection(): Projection >>> library error. no options found in 'init' file >>> [Tue Mar 17 15:16:28 2009].578247 msProcessProjection(): Projection >>> library error. no options found in 'init' file >>> [Tue Mar 17 15:16:28 2009].603064 msProcessProjection(): Projection >>> library error. no options found in 'init' file >>> >>> I did put the definition for the Google CRS in /usr/share/proj/defs as: >>> >>> # Google's spherical mercator projection >>> <900913> +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 +no_defs <> >>> >>> So could someone here clue me in to what's wrong? What's the 'init' >>> file and what do I need to put in it? I'm on a Linux system with >>> mapserver set up like so: >>> MapServer version 5.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG >>> OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE >>> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER >>> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=GEOS INPUT=EPPL7 >>> INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >>> >>> Below is my mapfile if you want to see it. >>> TIA, >>> - Bill Thoen >>> >>> --- >>> MAP >>> CONFIG MS_ERRORFILE "/var/www/html/tmp/ms_errors.txt" >>> DEBUG ON >>> # EXTENT -102.39 36.81 -94.44 40.13 >>> EXTENT -20037508.34 -20037508.34 20037508.34 20037508.34 >>> IMAGECOLOR 255 255 255 >>> SHAPEPATH /var/www/vfm/ >>> FONTSET /var/www/maps/fonts/fonts.txt >>> SYMBOLSET /var/www/maps/symbols/symbols.txt >>> >>> OUTPUTFORMAT >>> NAME 'AGG' >>> DRIVER "AGG/PNG" >>> MIMETYPE "image/png" >>> IMAGEMODE RGB >>> EXTENSION "png" >>> END >>> >>> WEB >>> IMAGEPATH "/var/www/html/tmp/" >>> IMAGEURL "/tmp/" >>> METADATA >>> "wms_title" "VFM Data Layers" >>> "wms_onlineresource" >>> "http://xxx.xxx.xxx.xxx/cgi-bin/mapserv?map=/var/www/html/vfm/ms.map&" >>> "wms_srs" "EPSG:4326 EPSG:900913" >>> END >>> END >>> >>> PROJECTION >>> "init=epsg:900913" >>> END >>> UNITS METERS >>> >>> LAYER >>> NAME "states" >>> METADATA >>> "wms_title" "US State boundaries" >>> "wms_srs" "EPSG:32614 EPSG:4326 EPSG:900913" >>> END >>> TYPE POLYGON >>> STATUS ON >>> DATA ../maps/data/states >>> CLASS >>> NAME "US States" >>> STYLE >>> OUTLINECOLOR 0 0 0 >>> WIDTH 2 >>> END >>> END >>> PROJECTION >>> "init=epsg:32614" >>> END >>> END >>> >>> LAYER >>> NAME "counties" >>> METADATA >>> "wms_title" "County Boundaries" >>> "wms_srs" "EPSG:4269 EPSG:4326 EPSG:900913" >>> END >>> TYPE POLYGON >>> STATUS ON >>> DATA ../maps/data/County_tiger_2007_region >>> CLASS >>> NAME "County Boundaries" >>> STYLE >>> OUTLINECOLOR 128 128 128 >>> COLOR 255 255 192 >>> WIDTH 1 >>> END >>> END >>> PROJECTION >>> "init=epsg:4269" >>> END >>> END >>> END >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From dmorissette at mapgears.com Wed Mar 18 10:26:21 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 18 Mar 2009 13:26:21 -0400 Subject: [mapserver-users] Problems with Google 900913 Projection and WMS Layers In-Reply-To: <49C12B81.4030903@gisnet.com> References: <49C01A59.1000001@gisnet.com> <49C0CDAC.6080001@bytewise.it> <49C106BC.2000505@gisnet.com> <49C12B81.4030903@gisnet.com> Message-ID: <49C12EBD.9040305@mapgears.com> Bill Thoen wrote: > > However, this doesn't work with my MapServer: > PROJECTION > "init=epsg:900913" > END > and throws the error: > "Projection library error. no options found in 'init' file " > I've put the google projection record in /usr/share/proj/epsg, but > MapServer doesn't seem to find it (although it has no trouble finding > other projections.) Is there some sort of indexing or registering I've > got to do on this file? > The message "no options found in 'init' file" relates to the "init=epsg:900913" directive. It means that an init file (called "epsg" in this case) was found in PROJ4's data directory, but the definition for code 900913 was not found in it. There is no indexing required for init files. You just need to follow the right syntax when adding new codes. If you verified that the code for 900913 is present in your /usr/share/proj/epsg file then the only explanation I can think of would be that your MapServer/PROJ installation looks for and finds the epsg file somewhere else on the system. For instance, if you compiled PROJ4 yourself without specifying an explicit prefix (--with-prefix), then by default the local build will look in /usr/local/share/proj and not /usr/share/proj. Also, see of the variable PROJ_LIB is set in your web server environment or in a CONFIG directive in the mapfile. If it is set then it points to the directory where PRPJ4 will look for the epsg init file. Finally, you could try renaming the /usr/share/proj/epsg file to something else and see if the error message changes. If the init file is not found then the error should turn to "Projection library error. no system list" ... if you don't get that error after renaming the epsg file then your mapserver is definitely not using the epsg file that you thought. Daniel -- Daniel Morissette http://www.mapgears.com/ From iansgis at gmail.com Wed Mar 18 10:58:17 2009 From: iansgis at gmail.com (Ian) Date: Wed, 18 Mar 2009 10:58:17 -0700 Subject: [mapserver-users] Run-time substitution Message-ID: <5b61c6c50903181058t1e90456gf70858e15eb57801@mail.gmail.com> Hello, I have ~50 layers/shapefiles that are the same datasets scaled to various values, used in OpenLayers. My map file for this data is quickly growing (3000+ lines) and I was hoping to use run-time substitution to reduce this, changing the LAYER NAME and DATA. I've read the documentation on run-time substitution which didn't mention LAYER NAME as being supported (other posts made it sound like it specifically was not supported), and which I would need to change for OpenLayers. I want to confirm that LAYER NAME is not supported in run-time substitution before I re-work everything. Thank you. Ian -------------- next part -------------- An HTML attachment was scrubbed... URL: From bthoen at gisnet.com Wed Mar 18 11:12:42 2009 From: bthoen at gisnet.com (Bill Thoen) Date: Wed, 18 Mar 2009 12:12:42 -0600 Subject: [mapserver-users] Problems with Google 900913 Projection and WMS Layers SOLVED! In-Reply-To: <49C12EBD.9040305@mapgears.com> References: <49C01A59.1000001@gisnet.com> <49C0CDAC.6080001@bytewise.it> <49C106BC.2000505@gisnet.com> <49C12B81.4030903@gisnet.com> <49C12EBD.9040305@mapgears.com> Message-ID: <49C1399A.8040106@gisnet.com> YES!!! You put your finger on the problem. I was fighting with the wrong epsg file. I did compile the program from source and the correct file was in /usr/local/share/proj. I've also found out that on unix systems at least that the 'epsg' in "init=epsg:900913" is case-sensitive and refers to the actual file. And finally, the mapfile directive CONFIG "PROJ_LIB" "/usr/share/proj" really needs those quotes. Just a wee deviation like CONFIG PROJ_LIB "/usr/share/proj" (no quotes around the PROJ_LIB) and your beer goes flat. Thanks a million! - Bill Daniel Morissette wrote: > Bill Thoen wrote: >> >> However, this doesn't work with my MapServer: >> PROJECTION >> "init=epsg:900913" >> END >> and throws the error: >> "Projection library error. no options found in 'init' file " >> I've put the google projection record in /usr/share/proj/epsg, but >> MapServer doesn't seem to find it (although it has no trouble finding >> other projections.) Is there some sort of indexing or registering >> I've got to do on this file? >> > > The message "no options found in 'init' file" relates to the > "init=epsg:900913" directive. It means that an init file (called > "epsg" in this case) was found in PROJ4's data directory, but the > definition for code 900913 was not found in it. There is no indexing > required for init files. You just need to follow the right syntax when > adding new codes. > > If you verified that the code for 900913 is present in your > /usr/share/proj/epsg file then the only explanation I can think of > would be that your MapServer/PROJ installation looks for and finds the > epsg file somewhere else on the system. For instance, if you compiled > PROJ4 yourself without specifying an explicit prefix (--with-prefix), > then by default the local build will look in /usr/local/share/proj and > not /usr/share/proj. > > Also, see of the variable PROJ_LIB is set in your web server > environment or in a CONFIG directive in the mapfile. If it is set then > it points to the directory where PRPJ4 will look for the epsg init file. > > Finally, you could try renaming the /usr/share/proj/epsg file to > something else and see if the error message changes. If the init file > is not found then the error should turn to "Projection library error. > no system list" ... if you don't get that error after renaming the > epsg file then your mapserver is definitely not using the epsg file > that you thought. > > Daniel > From gregor at hostgis.com Wed Mar 18 11:20:49 2009 From: gregor at hostgis.com (Gregor at HostGIS) Date: Wed, 18 Mar 2009 11:20:49 -0700 Subject: [mapserver-users] Run-time substitution In-Reply-To: <5b61c6c50903181058t1e90456gf70858e15eb57801@mail.gmail.com> References: <5b61c6c50903181058t1e90456gf70858e15eb57801@mail.gmail.com> Message-ID: <49C13B81.2080204@hostgis.com> > I want > to confirm that LAYER NAME is not supported in run-time substitution > before I re-work everything. It sure isn't, confirmed. A recompile, though, should be able to enable it. If you have elementary C skills and are used to compiling MapServer from source, that may present little difficulty. -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ From Steve.Lime at dnr.state.mn.us Wed Mar 18 11:01:52 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 18 Mar 2009 13:01:52 -0500 Subject: [mapserver-users] Run-time substitution In-Reply-To: <5b61c6c50903181058t1e90456gf70858e15eb57801@mail.gmail.com> References: <5b61c6c50903181058t1e90456gf70858e15eb57801@mail.gmail.com> Message-ID: <49C0F0C0.5157.008F.0@dnr.state.mn.us> It's not (and won't be) supported. There may be other ways to structure things but you'd need to tell the list a bit more about your setup. Steve >>> On 3/18/2009 at 12:58 PM, in message <5b61c6c50903181058t1e90456gf70858e15eb57801 at mail.gmail.com>, Ian wrote: > Hello, > > I have ~50 layers/shapefiles that are the same datasets scaled to various > values, used in OpenLayers. My map file for this data is quickly growing > (3000+ lines) and I was hoping to use run-time substitution to reduce this, > changing the LAYER NAME and DATA. I've read the documentation on run-time > substitution which didn't mention LAYER NAME as being supported (other posts > made it sound like it specifically was not supported), and which I would > need to change for OpenLayers. I want to confirm that LAYER NAME is not > supported in run-time substitution before I re-work everything. Thank you. > > Ian From iansgis at gmail.com Wed Mar 18 12:27:45 2009 From: iansgis at gmail.com (Ian) Date: Wed, 18 Mar 2009 12:27:45 -0700 Subject: [mapserver-users] Run-time substitution In-Reply-To: <49C13B81.2080204@hostgis.com> References: <5b61c6c50903181058t1e90456gf70858e15eb57801@mail.gmail.com> <49C13B81.2080204@hostgis.com> Message-ID: <5b61c6c50903181227n2fbb0d01t9a9655a4f71e23c1@mail.gmail.com> Alright, thank you for confirming run-time substitution's lack of LAYER NAME support. My setup involves MapServer 5.0, OpenLayers 2.7, and TileCache 2.1. Maps are WMS and not all layers (including the ~50 in my first post) are cached. I've written a small javascript library that handles feature queries, loads custom tools, and does the communication between client interaction and MS/OL/TC. Most maps are in html pages for partner and sponsor projects. Mapscript intrigues me and I should understand it better, but I'm still not clear on the topic in general (even after going through the documentation). It sounds like instead of OL doing direct MS requests it would hit a (Python, etc) CGI that handled MS requests and generated the relevant images? An OL mailing list search for mapscript just returned a bunch of results, I'll research some more. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From MMaganti at oriongis.com Wed Mar 18 13:13:33 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Wed, 18 Mar 2009 16:13:33 -0400 Subject: [mapserver-users] Oracle spatial question Message-ID: Hello Is oracle 11g (oracle spatial layers) supported by map server. Online documentation (http://www.mapserver.org/input/vector/oracle.html) says 10gas latest. if supported, is there any libmap.dll available that is compiled against 11g client? Thanks Murty -------------- next part -------------- An HTML attachment was scrubbed... URL: From randre at gmail.com Wed Mar 18 14:02:41 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Wed, 18 Mar 2009 14:02:41 -0700 Subject: [mapserver-users] Mapserver WCS - how to return native pixel resolution data? Message-ID: <9c2015090903181402p763d9914ufafdf1c433330335@mail.gmail.com> Hi All, I have a question which I'm not sure relates to the structure of a WCS request, or the setup of my WCS server. I have a tileset of SRTM tiles that I would like to query by geographic region via WCS. I have basic functionality working, but I can't figure out how to make a request via BBOX that only returns the actual pixels that are present in the source data. Is this possible? I would think that as long as I specified the matching SRS, I should be able to, but I've gotten stuck. Thanks in advance for any help you can give. Roger -- From hendrix.cj at gmail.com Wed Mar 18 14:21:01 2009 From: hendrix.cj at gmail.com (SeeJay) Date: Wed, 18 Mar 2009 14:21:01 -0700 (PDT) Subject: [mapserver-users] WFS and PostGIS newbie question In-Reply-To: <1237327512959-2494148.post@n2.nabble.com> References: <1237318815585-2493398.post@n2.nabble.com> <1237327512959-2494148.post@n2.nabble.com> Message-ID: <1237411261893-2499747.post@n2.nabble.com> Pal, Thanks for pointing me to these documents. Let me summarize what I learned in case it may help others just getting started with Mapserver WFS. The fact that Mapserver can be used both as a WFS server and a WFS client had confused some of the entries in my mapfile. To use Mapserver as WFS SERVER (with PostGIS data), the mapfile needs to include the WFS metadata entries for the MAP object as well as some WFS metadata entries for the LAYER object. These entries are well demonstrated in the documents you forwarded. CONNECTIONTYPE and the DATA statements will be the same as for WMS layers that connect to PostGIS. It is possible to mix WMS and WFS layers in the same map file, but when using those layers with OpenLayers, the WMS and WFS OpenLayers.Layers must be created and added to the OpenLayers.Map object separately. Thanks for the speedy and helpful response. --CJ paalkr wrote: > > Hi! > > CONNECTIONTYPE WFS is used when MapServer acts as a WFS client, i.e > consuming a WFS service. If I understood you correctly, you are trying to > serve out a WFS service with data stored in PostgreSQL/PostGIS. I think > the following documents should be of great help to you: > > WFS server howto: http://mapserver.org/ogc/wfs_server.html > Data input/PostGIS: http://mapserver.org/input/vector/postgis.html > > Regards, > P?l Kristensen > > > SeeJay wrote: >> >> I'm trying to learn Mapserver/OpenLayers/PostGIS and have made slow but >> steady progress so far. But I'm pretty stuck now. >> >> I'm trying to create my first WFS using point data stored in PostGIS. >> From the examples I have seen on the web it seems that CONNECTIONTYPE has >> to be WFS, but I can't figure out where I specifiy the PostGIS connection >> parameters? Can someone post an example of what this should look like? >> >> Thanks, >> CJ >> > > -- View this message in context: http://n2.nabble.com/WFS-and-PostGIS-newbie-question-tp2493398p2499747.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From raffaele.morelli at gmail.com Thu Mar 19 04:11:03 2009 From: raffaele.morelli at gmail.com (Cassiel) Date: Thu, 19 Mar 2009 12:11:03 +0100 Subject: [mapserver-users] Accessing ecwp Message-ID: Hi you all, I am trying to add an ecw layer to my webgis, the ecwp "service" is hosted on a public machine (193.xx.xxx.xxx) and everything works fine on my develop linux box which is a private one (10.xxx.xxx.xxx), ie the ecw layer is correctly rendered by mapserver. The problem arises when I move my code on my webgis (another 193.xxx.xxx.xx) where nothing is showed. shp2img output is: msDrawRasterLayerLow(lazio.ecw): entering. msDrawRaster(): Unable to access file. (ecwp://193.xxx.xx.xxx/centro/lazio.ecw) Unable to open file ecwp://193.xxx.xx.xxx/centro/lazio.ecw for layer lazio.ecw ... fatal error. msDrawMap(): Image handling error. Failed to draw layer named 'lazio.ecw'. msDrawMap(): Image handling error. Failed to draw layer named 'lazio.ecw'.
msDrawRaster(): Unable to access file. (ecwp://193.xxx.xx.xxx/centro/lazio.ecw)
The ecwp service is provided by ArcSDE. gdalinfo --formats shows: ECW (rw): ERMapper Compressed Wavelets JP2ECW (rw+): ERMapper JPEG2000 ... ... Any ideas? Regards Raffaele -------------- next part -------------- An HTML attachment was scrubbed... URL: From gispik at gmail.com Thu Mar 19 08:01:05 2009 From: gispik at gmail.com (pietrus00) Date: Thu, 19 Mar 2009 08:01:05 -0700 (PDT) Subject: [mapserver-users] CLASSITEM changing in request Message-ID: <1237474865542-2503372.post@n2.nabble.com> Hello, I am trying to pass CLASSITEM parameter in Google type request: http://pietrus00/cgi-bin/mapserv.exe?map=/ms4w/apps/test/test.map&map.layer[landuse]=CLASSITEM+theme1&layers=lu1&mode=tile&tilemode=gmap&tile={X}+{Y}+{Z} but I am getting error: loadLayer(): Unknown identifier. Parsing error near (CLASSITEM):(line 1) Is it going to work in such way ? Regards Pietrus00 -- View this message in context: http://n2.nabble.com/CLASSITEM-changing-in-request-tp2503372p2503372.html Sent from the Mapserver - User mailing list archive at Nabble.com. From yassefa at dmsolutions.ca Thu Mar 19 08:20:31 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Thu, 19 Mar 2009 11:20:31 -0400 Subject: [mapserver-users] Two questions about WMS and outputformats In-Reply-To: <1237380841936-2497002.post@n2.nabble.com> References: <49BE7997.60606@pobox.com> <1237316060184-2493151.post@n2.nabble.com> <49C0E474.3010401@dmsolutions.ca> <1237380841936-2497002.post@n2.nabble.com> Message-ID: <49C262BF.4040906@dmsolutions.ca> paalkr wrote: > Hi > > Thanks, looking forward to the patch! > ticket is updated with a possible patch. best regarads > Regards, > P?l Kristensen > > > Yewondwossen Assefa wrote: >> Hi, >> >> There was a ticket opened for that years ago with a path to implement >> it, but was never addressed: >> (http://trac.osgeo.org/mapserver/ticket/455) >> It seems to be less controversial in functionality than the recent >> "Hiding/Enabling/Ignoring Layers in OGC Web Services" thread, but >> introduces another new metadata and that by it self may be >> controversial. I am willing to provide a patch for now following what >> is discussed in the bug and depending on how the OGC metadata >> organization evolves in the coming months, we would adapt that patch. >> Please add yourself in cc to this bug. >> >> Best Regards >> >> >> paalkr wrote: >>> Hi! >>> >>> Is there a way to prevent the default outputformats to be exposed in the >>> capabilities document? I have a map service where I have used AGG >>> specific >>> rendering capabilities, and requesting e.g a GIF image then makes a bad >>> looking map and does not make sense. I would like the opportunity to only >>> expose explicit defined formats specified with one or more OUTPUTFORMAT >>> blocks. >>> >>> I don't want to disable the different drivers though, only control the >>> outputformat list in the GetCapabilities response. If the only way to >>> achieve this is to patch the source code, I would be glade if any of the >>> devs could point me in the right direction. >>> >>> Regards, >>> P?l Kristensen >>> >>> >>> >>> Frank Warmerdam wrote: >>>> Rahkonen Jukka wrote: >>>>> Hi, >>>>> >>>>> By default, without having any OUTPUTFORMAT sections in the mapfile, >>>>> Mapserver is advertising following imageformats in WMS GetCapabilities >>>>> document: >>>>> >>>>> >>>>> image/gif >>>>> image/png >>>>> image/png; mode=24bit >>>>> image/jpeg >>>>> image/vnd.wap.wbmp >>>>> image/tiff >>>>> image/svg+xml >>>>> >> >> -- >> ---------------------------------------------------------------- >> Assefa Yewondwossen >> Software Analyst >> >> Email: assefa at dmsolutions.ca >> http://www.dmsolutions.ca/ >> >> Phone: (613) 565-5056 (ext 14) >> Fax: (613) 565-0925 >> ---------------------------------------------------------------- >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Bob.Bistrais at maine.gov Thu Mar 19 09:05:00 2009 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Thu, 19 Mar 2009 12:05:00 -0400 Subject: [mapserver-users] queryByAttributes and projection Message-ID: <4EFF8BB964547748A07CA32961810C0412C484F0@SOM-TEAQASMAIL1.som.w2k.state.me.us> I have a modified ka-map application with some customized search tools. One of these tools allows the user to pick a town from a dropdown and zoom to it. This uses a queryByAttributes process and it was working well. The data for the project is projected in UTM in its native format. The customer asked if we could display the data in lat/long (EPSG:4326). If I change the projection and extent in the .Map files, the map displays properly, but the search tools no longer function, I get a "no matching results" error. This seems pretty strange, as I am only querying by attributes, not spatially. So I wouldn't think projection would be an issue. But apparently it is. Does anyone have some insight as to how I can correct this (other than reprojecting the data)? -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex.lagache at gmail.com Thu Mar 19 09:11:22 2009 From: alex.lagache at gmail.com (Alexandre LAGACHE) Date: Thu, 19 Mar 2009 12:11:22 -0400 Subject: [mapserver-users] Php/MapScript and MediaWiki Message-ID: <76a916120903190911te47a879pd3db9091c1d846cd@mail.gmail.com> Hi all, I've done a small extension to include results from MapScript into MediaWiki, the page describing it is there : http://www.biketrip.org/wiki/biketrip.org:Mapserver That has probably been done before, if not, well you know it exists now. I'll be happy to explain how it works to anyone interested. Alexandre Lagache -------------- next part -------------- An HTML attachment was scrubbed... URL: From randre at gmail.com Thu Mar 19 11:36:01 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Thu, 19 Mar 2009 11:36:01 -0700 Subject: [mapserver-users] Mapserver WCS - how to return native pixel resolution data? In-Reply-To: References: <9c2015090903181402p763d9914ufafdf1c433330335@mail.gmail.com> Message-ID: <9c2015090903191136w24828e2ewfc56baf79e284ba3@mail.gmail.com> Hi Alexander, Thanks for the response. Yes, I am using a GetCoverage request that looks like this: http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/netCDF/netcdf.map &SERVICE=wcs &VERSION=1.0.0 &REQUEST=GetCoverage &COVERAGE=elev &CRS=EPSG:4326 &BBOX=125,50,130,55 &WIDTH=600 &HEIGHT=600 &FORMAT=image/grid The source is a single-band image, and the data is correctly returned as either a single-band GeoTIFF, or an ASCII Grid, depending on which FORMAT I specify in the WCS string. What I would like to do is eliminate the WIDTH and HEIGHT parameters from the request, and just return whatever is available in the BBOX area. When I remove them from the request, I get an error that says I either need HEIGHT and WIDTH, or RESX and RESY. When I restructure the command to include RESX and RESY (see below), I get an "Out of memory" error. http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/netCDF/netcdf.map &SERVICE=wcs &VERSION=1.0.0 &REQUEST=GetCoverage &COVERAGE=elev &CRS=EPSG:4326 &BBOX=125,50,130,55 &FORMAT=image/grid &RESX=.033&RESY=-.033 I believe I should be able to use the pixel dimensions that are reported back to me in a DescribeCoverage request, which show them to be: 0.033333333333333 0 0 -0.033333333333333 Thanks for the help, Roger -- On Wed, Mar 18, 2009 at 6:51 PM, Alexander Petkov wrote: > On 3/18/09, Roger Andr? wrote: >> Hi All, >> >> ?I have a question which I'm not sure relates to the structure of a WCS >> ?request, or the setup of my WCS server. ?I have a tileset of SRTM >> ?tiles that I would like to query by geographic region via WCS. ?I have >> ?basic functionality working, but I can't figure out how to make a >> ?request via BBOX that only returns the actual pixels that are present >> ?in the source data. ?Is this possible? ?I would think that as long as >> ?I specified the matching SRS, I should be able to, but I've gotten >> ?stuck. > > Are you using a WCS getcoverage request to get the data? Is the source > file a 1 band image? Is the returned data contaiining 3 bands? A > little more information will be of help to give a good answer. > > You are working in the right direction by configuring your WCS to > serve the actual data. > > In my case, I have 1 band palletted images, and with a getcoverage > request ?for a bounding box I got the values, but as a grayscale > image. With some help from another user I managed to add the colormap > info from the class directives in my map file. > > The following output format is what worked to add a pallette to the > returned image: > OUTPUTFORMAT > ? NAME "GTIFF" > ? MIMETYPE "image/tiff" > ? DRIVER "GDAL/GTiff" > ? EXTENSION "tif" > ? IMAGEMODE "PC256" > ? TRANSPARENT TRUE > ? FORMATOPTION "COMPRESS=DEFLATE" > ? FORMATOPTION "ZLEVEL=9" > ?END > From randre at gmail.com Thu Mar 19 11:48:03 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Thu, 19 Mar 2009 11:48:03 -0700 Subject: [mapserver-users] Mapserver WCS - how to return native pixel resolution data? In-Reply-To: <9c2015090903191136w24828e2ewfc56baf79e284ba3@mail.gmail.com> References: <9c2015090903181402p763d9914ufafdf1c433330335@mail.gmail.com> <9c2015090903191136w24828e2ewfc56baf79e284ba3@mail.gmail.com> Message-ID: <9c2015090903191148s316eb3fewc8c0e70e0b132708@mail.gmail.com> Sorry for the spam, I think I found the answer. Both RESX and RESY need to be positive values. Using that, I am able to get back data that matches the original data. Thanks, Roger -- On Thu, Mar 19, 2009 at 11:36 AM, Roger Andr? wrote: > Hi Alexander, > > Thanks for the response. ?Yes, I am using a GetCoverage request that > looks like this: > > http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/netCDF/netcdf.map > &SERVICE=wcs > &VERSION=1.0.0 > &REQUEST=GetCoverage > &COVERAGE=elev > &CRS=EPSG:4326 > &BBOX=125,50,130,55 > &WIDTH=600 > &HEIGHT=600 > &FORMAT=image/grid > > The source is a single-band image, and the data is correctly returned > as either a single-band GeoTIFF, or an ASCII Grid, depending on which > FORMAT I specify in the WCS string. > > What I would like to do is eliminate the WIDTH and HEIGHT parameters > from the request, and just return whatever is available in the BBOX > area. ?When I remove them from the request, I get an error that says I > either need HEIGHT and WIDTH, or RESX and RESY. ?When I restructure > the command to include RESX and RESY (see below), I get an "Out of > memory" error. > > http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/netCDF/netcdf.map > &SERVICE=wcs > &VERSION=1.0.0 > &REQUEST=GetCoverage > &COVERAGE=elev > &CRS=EPSG:4326 > &BBOX=125,50,130,55 > &FORMAT=image/grid > &RESX=.033&RESY=-.033 > > I believe I should be able to use the pixel dimensions that are > reported back to me in a DescribeCoverage request, which show them to > be: > > 0.033333333333333 0 > 0 -0.033333333333333 > > Thanks for the help, > > Roger > -- > > On Wed, Mar 18, 2009 at 6:51 PM, Alexander Petkov wrote: >> On 3/18/09, Roger Andr? wrote: >>> Hi All, >>> >>> ?I have a question which I'm not sure relates to the structure of a WCS >>> ?request, or the setup of my WCS server. ?I have a tileset of SRTM >>> ?tiles that I would like to query by geographic region via WCS. ?I have >>> ?basic functionality working, but I can't figure out how to make a >>> ?request via BBOX that only returns the actual pixels that are present >>> ?in the source data. ?Is this possible? ?I would think that as long as >>> ?I specified the matching SRS, I should be able to, but I've gotten >>> ?stuck. >> >> Are you using a WCS getcoverage request to get the data? Is the source >> file a 1 band image? Is the returned data contaiining 3 bands? A >> little more information will be of help to give a good answer. >> >> You are working in the right direction by configuring your WCS to >> serve the actual data. >> >> In my case, I have 1 band palletted images, and with a getcoverage >> request ?for a bounding box I got the values, but as a grayscale >> image. With some help from another user I managed to add the colormap >> info from the class directives in my map file. >> >> The following output format is what worked to add a pallette to the >> returned image: >> OUTPUTFORMAT >> ? NAME "GTIFF" >> ? MIMETYPE "image/tiff" >> ? DRIVER "GDAL/GTiff" >> ? EXTENSION "tif" >> ? IMAGEMODE "PC256" >> ? TRANSPARENT TRUE >> ? FORMATOPTION "COMPRESS=DEFLATE" >> ? FORMATOPTION "ZLEVEL=9" >> ?END >> > From greenkov at gmail.com Thu Mar 19 12:14:40 2009 From: greenkov at gmail.com (Alexander Petkov) Date: Thu, 19 Mar 2009 13:14:40 -0600 Subject: [mapserver-users] Mapserver WCS - how to return native pixel resolution data? In-Reply-To: <9c2015090903191148s316eb3fewc8c0e70e0b132708@mail.gmail.com> References: <9c2015090903181402p763d9914ufafdf1c433330335@mail.gmail.com> <9c2015090903191136w24828e2ewfc56baf79e284ba3@mail.gmail.com> <9c2015090903191148s316eb3fewc8c0e70e0b132708@mail.gmail.com> Message-ID: On Thu, Mar 19, 2009 at 12:48 PM, Roger Andr? wrote: > Sorry for the spam, I think I found the answer. ?Both RESX and RESY > need to be positive values. ?Using that, I am able to get back data > that matches the original data. > > Thanks, > > Roger > -- > > On Thu, Mar 19, 2009 at 11:36 AM, Roger Andr? wrote: >> Hi Alexander, >> >> Thanks for the response. ?Yes, I am using a GetCoverage request that >> looks like this: >> >> http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/netCDF/netcdf.map >> &SERVICE=wcs >> &VERSION=1.0.0 >> &REQUEST=GetCoverage >> &COVERAGE=elev >> &CRS=EPSG:4326 >> &BBOX=125,50,130,55 >> &WIDTH=600 >> &HEIGHT=600 >> &FORMAT=image/grid >> >> The source is a single-band image, and the data is correctly returned >> as either a single-band GeoTIFF, or an ASCII Grid, depending on which >> FORMAT I specify in the WCS string. >> >> What I would like to do is eliminate the WIDTH and HEIGHT parameters >> from the request, and just return whatever is available in the BBOX >> area. ?When I remove them from the request, I get an error that says I >> either need HEIGHT and WIDTH, or RESX and RESY. ?When I restructure >> the command to include RESX and RESY (see below), I get an "Out of >> memory" error. >> >> http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/netCDF/netcdf.map >> &SERVICE=wcs >> &VERSION=1.0.0 >> &REQUEST=GetCoverage >> &COVERAGE=elev >> &CRS=EPSG:4326 >> &BBOX=125,50,130,55 >> &FORMAT=image/grid >> &RESX=.033&RESY=-.033 >> >> I believe I should be able to use the pixel dimensions that are >> reported back to me in a DescribeCoverage request, which show them to >> be: >> >> 0.033333333333333 0 >> 0 -0.033333333333333 >> >> Thanks for the help, >> >> Roger Hi Roger: Glad to know that you got the problem solved. Do you mind sharing your OUTPUTFORMAT configurations in your mapfile if you have them configured, particularly for the ASCII grid format. Also, are you using a mapserver release older than any of the 5.4 betas? I am using 5.2.1 and I see the result of the GetCoverage request being offset by a half pixel (the pixel size of my data). Bug reports indicate that this offset will be fixed for the 5.4 release. Thanks in advance, Alex From romero619 at hotmail.com Thu Mar 19 12:26:40 2009 From: romero619 at hotmail.com (Pablo Romero) Date: Thu, 19 Mar 2009 12:26:40 -0700 Subject: [mapserver-users] web development project with mapserver- questions In-Reply-To: <9c2015090903191148s316eb3fewc8c0e70e0b132708@mail.gmail.com> References: <9c2015090903181402p763d9914ufafdf1c433330335@mail.gmail.com> <9c2015090903191136w24828e2ewfc56baf79e284ba3@mail.gmail.com> <9c2015090903191148s316eb3fewc8c0e70e0b132708@mail.gmail.com> Message-ID: Hi, I need help figuring out a method to do the following: 1) use mapserver to create a basic, static image of a given region, say,for example the following area: lat1=0.00 lat2=40.00 lng1=-120.00 lng2=-40.00 (in decimal degrees) 2) use css divs or javascript (or both) to create clickable, hyperlink "markers" over the map image at specific lat/lon points (similiar to google map markers, except over a static map image). The problem Im having is figuring out a way to create the "marker" divs using absolute (pixel) coordinates over the map image. My marker locations are in lat/lon, and I would need to translate them to the map's image coordinates. I thought about just scaling the points based on the maps's bounds and the map image size, but this would only provide "linear scaling" which might be fairly inaccurate, and I also want a method that will work with most map projections. Does this make sense? Does mapserver provide any automated means of creating such "markers"? Or, is there an existing method of translating Perhaps this question might not be very mapserver-related, but I was hoping someone might have experience with this type of setup. Here's an example of what Im basically trying to emulate: http://magicseaweed.com/METARStationHome.php?region=9 I dont know if this map image was created with mapserver, but the general concept stil applies to mapserver: generate a map projection image, and place geo-referenced objects over the map image... Please help, Thanks, P.Romero _________________________________________________________________ Windows Live?: Life without walls. http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1a_explore_032009 From David.Fawcett at state.mn.us Thu Mar 19 12:35:20 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Thu, 19 Mar 2009 14:35:20 -0500 Subject: [mapserver-users] web development project with mapserver- questions In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA2D0@s-sp22.pca.state.mn.us> Do you really need to create divs? You could use MapServer to put the marker on the map in the correct location (as part of the map image) and have MapServer output it as an imagemap if all that you need is mouse-over text. http://mapserver.org/output/imagemaps.html If you want to do anything much fancier with putting vector markers on a map, you might look at something like OpenLayers. http://www.openlayers.org/ Probably overkill for what you need, but worth a look. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Pablo Romero Sent: Thursday, March 19, 2009 2:27 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] web development project with mapserver- questions Hi, I need help figuring out a method to do the following: 1) use mapserver to create a basic, static image of a given region, say,for example the following area: lat1=0.00 lat2=40.00 lng1=-120.00 lng2=-40.00 (in decimal degrees) 2) use css divs or javascript (or both) to create clickable, hyperlink "markers" over the map image at specific lat/lon points (similiar to google map markers, except over a static map image). The problem Im having is figuring out a way to create the "marker" divs using absolute (pixel) coordinates over the map image. My marker locations are in lat/lon, and I would need to translate them to the map's image coordinates. I thought about just scaling the points based on the maps's bounds and the map image size, but this would only provide "linear scaling" which might be fairly inaccurate, and I also want a method that will work with most map projections. Does this make sense? Does mapserver provide any automated means of creating such "markers"? Or, is there an existing method of translating Perhaps this question might not be very mapserver-related, but I was hoping someone might have experience with this type of setup. Here's an example of what Im basically trying to emulate: http://magicseaweed.com/METARStationHome.php?region=9 I dont know if this map image was created with mapserver, but the general concept stil applies to mapserver: generate a map projection image, and place geo-referenced objects over the map image... Please help, Thanks, P.Romero _________________________________________________________________ Windows Live(tm): Life without walls. http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1a_explore_032009 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From romero619 at hotmail.com Thu Mar 19 13:07:36 2009 From: romero619 at hotmail.com (Pablo Romero) Date: Thu, 19 Mar 2009 13:07:36 -0700 Subject: [mapserver-users] web development project with mapserver- questions In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA2D0@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA2D0@s-sp22.pca.state.mn.us> Message-ID: David Thanks for the response. Divs arent a requirement; I just mentioned them because the example site that I posted was using divs, so I suggested them more as a point of reference. Id be willing to use whatever works, but Id obviously like to avoid using any hefty solution that could be considered as being 'overkill'. something simple & lightweight is prefered. Im not very experienced with mapserver, but would the use of symbols to add the vector drawings be a feasible solution? can symbols show up on the image map as clickable regions with mouse-over text? i.e., something like: 1) use my backend code (php/perl) to generate the markers & select the appropriate symbol image file & "alt" text 2) pass this info to mapserver prior to drawing the map, & include the symbols into the map image. 3) create the image map with symbols does this method sound reasonable/right? IF so, how would I go about this (creating these custom symbols)? Is there an existing tutorial that might help me accomplish this? Thanks again, P.Romero ---------------------------------------- > Subject: RE: [mapserver-users] web development project with mapserver- questions > Date: Thu, 19 Mar 2009 14:35:20 -0500 > From: David.Fawcett at state.mn.us > To: romero619 at hotmail.com; mapserver-users at lists.osgeo.org > > Do you really need to create divs? > > You could use MapServer to put the marker on the map in the correct > location (as part of the map image) and have MapServer output it as an > imagemap if all that you need is mouse-over text. > > http://mapserver.org/output/imagemaps.html > > If you want to do anything much fancier with putting vector markers on a > map, you might look at something like OpenLayers. > http://www.openlayers.org/ Probably overkill for what you need, but > worth a look. > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Pablo > Romero > Sent: Thursday, March 19, 2009 2:27 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] web development project with mapserver- > questions > > > > Hi, > I need help figuring out a method to do the following: > > 1) use mapserver to create a basic, static image of a given region, > say,for example the following area: lat1=0.00 lat2=40.00 lng1=-120.00 > lng2=-40.00 (in decimal degrees) > > 2) use css divs or javascript (or both) to create clickable, hyperlink > "markers" over the map image at specific lat/lon points (similiar to > google map markers, except over a static map image). > > The problem Im having is figuring out a way to create the "marker" divs > using absolute (pixel) coordinates over the map image. My marker > locations are in lat/lon, and I would need to translate them to the > map's image coordinates. I thought about just scaling the points based > on the maps's bounds and the map image size, but this would only provide > "linear scaling" which might be fairly inaccurate, and I also want a > method that will work with most map projections. Does this make sense? > > Does mapserver provide any automated means of creating such "markers"? > Or, is there an existing method of translating > > Perhaps this question might not be very mapserver-related, but I was > hoping someone might have experience with this type of setup. > > Here's an example of what Im basically trying to emulate: > > http://magicseaweed.com/METARStationHome.php?region=9 > > I dont know if this map image was created with mapserver, but the > general concept stil applies to mapserver: generate a map projection > image, and place geo-referenced objects over the map image... > > Please help, > Thanks, > P.Romero > _________________________________________________________________ > Windows Live(tm): Life without walls. > http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1a_explore_032009 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _________________________________________________________________ Hotmail? is up to 70% faster. Now good news travels really fast. http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_70faster_032009 From David.Fawcett at state.mn.us Thu Mar 19 13:27:44 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Thu, 19 Mar 2009 15:27:44 -0500 Subject: [mapserver-users] web development project with mapserver- questions In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA2D3@s-sp22.pca.state.mn.us> I don't have an example handy, but here is one way to do it conceptually. You have a script that goes out and gathers the current wind data and writes it to a MySQL Database or a shapefile. Using CGI MapServer, your map file uses the database table or shape file as the data source for your wind stations layer. With MapServer version >=5.2, you can base the rotation of the symbol on the value in a column of your data source. See 'attribute binding' in the documentation. You use MapServer to output an image map using a query template. The image map can contain data from different columns in your data source. I know that I put together an example on this somewhat recently. I will dig around. David. -----Original Message----- From: Pablo Romero [mailto:romero619 at hotmail.com] Sent: Thursday, March 19, 2009 3:08 PM To: David.Fawcett at state.mn.us; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] web development project with mapserver- questions David Thanks for the response. Divs arent a requirement; I just mentioned them because the example site that I posted was using divs, so I suggested them more as a point of reference. Id be willing to use whatever works, but Id obviously like to avoid using any hefty solution that could be considered as being 'overkill'. something simple & lightweight is prefered. Im not very experienced with mapserver, but would the use of symbols to add the vector drawings be a feasible solution? can symbols show up on the image map as clickable regions with mouse-over text? i.e., something like: 1) use my backend code (php/perl) to generate the markers & select the appropriate symbol image file & "alt" text 2) pass this info to mapserver prior to drawing the map, & include the symbols into the map image. 3) create the image map with symbols does this method sound reasonable/right? IF so, how would I go about this (creating these custom symbols)? Is there an existing tutorial that might help me accomplish this? Thanks again, P.Romero ---------------------------------------- > Subject: RE: [mapserver-users] web development project with mapserver- > questions > Date: Thu, 19 Mar 2009 14:35:20 -0500 > From: David.Fawcett at state.mn.us > To: romero619 at hotmail.com; mapserver-users at lists.osgeo.org > > Do you really need to create divs? > > You could use MapServer to put the marker on the map in the correct > location (as part of the map image) and have MapServer output it as an > imagemap if all that you need is mouse-over text. > > http://mapserver.org/output/imagemaps.html > > If you want to do anything much fancier with putting vector markers on > a map, you might look at something like OpenLayers. > http://www.openlayers.org/ Probably overkill for what you need, but > worth a look. > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Pablo > Romero > Sent: Thursday, March 19, 2009 2:27 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] web development project with mapserver- > questions > > > > Hi, > I need help figuring out a method to do the following: > > 1) use mapserver to create a basic, static image of a given region, > say,for example the following area: lat1=0.00 lat2=40.00 lng1=-120.00 > lng2=-40.00 (in decimal degrees) > > 2) use css divs or javascript (or both) to create clickable, hyperlink > "markers" over the map image at specific lat/lon points (similiar to > google map markers, except over a static map image). > > The problem Im having is figuring out a way to create the "marker" > divs using absolute (pixel) coordinates over the map image. My marker > locations are in lat/lon, and I would need to translate them to the > map's image coordinates. I thought about just scaling the points based > on the maps's bounds and the map image size, but this would only > provide "linear scaling" which might be fairly inaccurate, and I also > want a method that will work with most map projections. Does this make > sense? > > Does mapserver provide any automated means of creating such "markers"? > Or, is there an existing method of translating > > Perhaps this question might not be very mapserver-related, but I was > hoping someone might have experience with this type of setup. > > Here's an example of what Im basically trying to emulate: > > http://magicseaweed.com/METARStationHome.php?region=9 > > I dont know if this map image was created with mapserver, but the > general concept stil applies to mapserver: generate a map projection > image, and place geo-referenced objects over the map image... > > Please help, > Thanks, > P.Romero > _________________________________________________________________ > Windows Live(tm): Life without walls. > http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1a_explore_0320 > 09 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _________________________________________________________________ Hotmail(r) is up to 70% faster. Now good news travels really fast. http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_70faster_0320 09 From randre at gmail.com Thu Mar 19 13:55:12 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Thu, 19 Mar 2009 13:55:12 -0700 Subject: [mapserver-users] Mapserver WCS - how to return native pixel resolution data? In-Reply-To: References: <9c2015090903181402p763d9914ufafdf1c433330335@mail.gmail.com> <9c2015090903191136w24828e2ewfc56baf79e284ba3@mail.gmail.com> <9c2015090903191148s316eb3fewc8c0e70e0b132708@mail.gmail.com> Message-ID: <9c2015090903191355t4b239221i2cf1ea32e64007b8@mail.gmail.com> Sure thing. Here are the OUTPUTFORMAT declarations I have: OUTPUTFORMAT NAME "GEOTIFF_FLOAT" DRIVER 'GDAL/GTiff' MIMETYPE 'image/tiff' IMAGEMODE FLOAT32 EXTENSION 'tif' END OUTPUTFORMAT NAME "ASCII_GRID" DRIVER 'GDAL/AAIGrid' MIMETYPE 'image/grid' IMAGEMODE FLOAT32 EXTENSION 'asc' END I'll have to check my output data more closely to see if the 1/2 pixel offset exists. I've only looked at it in a cursory way so far. The version of MapServer I'm using is 5.2.0 -- On Thu, Mar 19, 2009 at 12:14 PM, Alexander Petkov wrote: > On Thu, Mar 19, 2009 at 12:48 PM, Roger Andr? wrote: >> Sorry for the spam, I think I found the answer. ?Both RESX and RESY >> need to be positive values. ?Using that, I am able to get back data >> that matches the original data. >> >> Thanks, >> >> Roger >> -- >> >> On Thu, Mar 19, 2009 at 11:36 AM, Roger Andr? wrote: >>> Hi Alexander, >>> >>> Thanks for the response. ?Yes, I am using a GetCoverage request that >>> looks like this: >>> >>> http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/netCDF/netcdf.map >>> &SERVICE=wcs >>> &VERSION=1.0.0 >>> &REQUEST=GetCoverage >>> &COVERAGE=elev >>> &CRS=EPSG:4326 >>> &BBOX=125,50,130,55 >>> &WIDTH=600 >>> &HEIGHT=600 >>> &FORMAT=image/grid >>> >>> The source is a single-band image, and the data is correctly returned >>> as either a single-band GeoTIFF, or an ASCII Grid, depending on which >>> FORMAT I specify in the WCS string. >>> >>> What I would like to do is eliminate the WIDTH and HEIGHT parameters >>> from the request, and just return whatever is available in the BBOX >>> area. ?When I remove them from the request, I get an error that says I >>> either need HEIGHT and WIDTH, or RESX and RESY. ?When I restructure >>> the command to include RESX and RESY (see below), I get an "Out of >>> memory" error. >>> >>> http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/netCDF/netcdf.map >>> &SERVICE=wcs >>> &VERSION=1.0.0 >>> &REQUEST=GetCoverage >>> &COVERAGE=elev >>> &CRS=EPSG:4326 >>> &BBOX=125,50,130,55 >>> &FORMAT=image/grid >>> &RESX=.033&RESY=-.033 >>> >>> I believe I should be able to use the pixel dimensions that are >>> reported back to me in a DescribeCoverage request, which show them to >>> be: >>> >>> 0.033333333333333 0 >>> 0 -0.033333333333333 >>> >>> Thanks for the help, >>> >>> Roger > > Hi Roger: > > Glad to know that you got the problem solved. Do you mind sharing your > OUTPUTFORMAT configurations in your mapfile if you have them > configured, particularly for the ASCII grid format. > > Also, are you using a mapserver release older than any of the 5.4 > betas? I am using 5.2.1 and I see the result of the GetCoverage > request being offset by a half pixel (the pixel size of my data). Bug > reports indicate that this offset will be fixed for the 5.4 release. > > > Thanks in advance, > Alex > From randre at gmail.com Thu Mar 19 13:59:02 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Thu, 19 Mar 2009 13:59:02 -0700 Subject: [mapserver-users] Mapserver WCS - how to return native pixel resolution data? In-Reply-To: <9c2015090903191355t4b239221i2cf1ea32e64007b8@mail.gmail.com> References: <9c2015090903181402p763d9914ufafdf1c433330335@mail.gmail.com> <9c2015090903191136w24828e2ewfc56baf79e284ba3@mail.gmail.com> <9c2015090903191148s316eb3fewc8c0e70e0b132708@mail.gmail.com> <9c2015090903191355t4b239221i2cf1ea32e64007b8@mail.gmail.com> Message-ID: <9c2015090903191359y4c54cb4dne65f87645d79617@mail.gmail.com> You're right, 1/2 pixel offset is definitely present. What a pain. Any idea when the 5.4 stable release is expected? I see that a beta release is available currently. -- On Thu, Mar 19, 2009 at 1:55 PM, Roger Andr? wrote: > Sure thing. ?Here are the OUTPUTFORMAT declarations I have: > > OUTPUTFORMAT > ?NAME "GEOTIFF_FLOAT" > ?DRIVER 'GDAL/GTiff' > ?MIMETYPE 'image/tiff' > ?IMAGEMODE FLOAT32 > ?EXTENSION 'tif' > END > > OUTPUTFORMAT > ?NAME "ASCII_GRID" > ?DRIVER 'GDAL/AAIGrid' > ?MIMETYPE 'image/grid' > ?IMAGEMODE FLOAT32 > ?EXTENSION 'asc' > END > > I'll have to check my output data more closely to see if the 1/2 pixel > offset exists. ?I've only looked at it in a cursory way so far. ?The > version of MapServer I'm using is 5.2.0 > -- > > On Thu, Mar 19, 2009 at 12:14 PM, Alexander Petkov wrote: >> On Thu, Mar 19, 2009 at 12:48 PM, Roger Andr? wrote: >>> Sorry for the spam, I think I found the answer. ?Both RESX and RESY >>> need to be positive values. ?Using that, I am able to get back data >>> that matches the original data. >>> >>> Thanks, >>> >>> Roger >>> -- >>> >>> On Thu, Mar 19, 2009 at 11:36 AM, Roger Andr? wrote: >>>> Hi Alexander, >>>> >>>> Thanks for the response. ?Yes, I am using a GetCoverage request that >>>> looks like this: >>>> >>>> http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/netCDF/netcdf.map >>>> &SERVICE=wcs >>>> &VERSION=1.0.0 >>>> &REQUEST=GetCoverage >>>> &COVERAGE=elev >>>> &CRS=EPSG:4326 >>>> &BBOX=125,50,130,55 >>>> &WIDTH=600 >>>> &HEIGHT=600 >>>> &FORMAT=image/grid >>>> >>>> The source is a single-band image, and the data is correctly returned >>>> as either a single-band GeoTIFF, or an ASCII Grid, depending on which >>>> FORMAT I specify in the WCS string. >>>> >>>> What I would like to do is eliminate the WIDTH and HEIGHT parameters >>>> from the request, and just return whatever is available in the BBOX >>>> area. ?When I remove them from the request, I get an error that says I >>>> either need HEIGHT and WIDTH, or RESX and RESY. ?When I restructure >>>> the command to include RESX and RESY (see below), I get an "Out of >>>> memory" error. >>>> >>>> http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/netCDF/netcdf.map >>>> &SERVICE=wcs >>>> &VERSION=1.0.0 >>>> &REQUEST=GetCoverage >>>> &COVERAGE=elev >>>> &CRS=EPSG:4326 >>>> &BBOX=125,50,130,55 >>>> &FORMAT=image/grid >>>> &RESX=.033&RESY=-.033 >>>> >>>> I believe I should be able to use the pixel dimensions that are >>>> reported back to me in a DescribeCoverage request, which show them to >>>> be: >>>> >>>> 0.033333333333333 0 >>>> 0 -0.033333333333333 >>>> >>>> Thanks for the help, >>>> >>>> Roger >> >> Hi Roger: >> >> Glad to know that you got the problem solved. Do you mind sharing your >> OUTPUTFORMAT configurations in your mapfile if you have them >> configured, particularly for the ASCII grid format. >> >> Also, are you using a mapserver release older than any of the 5.4 >> betas? I am using 5.2.1 and I see the result of the GetCoverage >> request being offset by a half pixel (the pixel size of my data). Bug >> reports indicate that this offset will be fixed for the 5.4 release. >> >> >> Thanks in advance, >> Alex >> > From Jim.Haug at state.sd.us Thu Mar 19 14:00:43 2009 From: Jim.Haug at state.sd.us (Jim.Haug at state.sd.us) Date: Thu, 19 Mar 2009 16:00:43 -0500 Subject: [mapserver-users] extent modification in templates Message-ID: The manual indicates that it's possible to modify the attributes of an extent in a query, e.g. [shpext expand=1000] to produce a 1000-meter buffer around the query target. This isn't working for me. My template includes the following: That fails, but this works: Anybody have an idea what's wrong? The Mapserver manual gives this very example for modifying [shpext]. Thanks -Jim Haug From greenkov at gmail.com Thu Mar 19 14:51:36 2009 From: greenkov at gmail.com (Alexander Petkov) Date: Thu, 19 Mar 2009 15:51:36 -0600 Subject: [mapserver-users] Mapserver WCS - how to return native pixel resolution data? In-Reply-To: <9c2015090903191359y4c54cb4dne65f87645d79617@mail.gmail.com> References: <9c2015090903181402p763d9914ufafdf1c433330335@mail.gmail.com> <9c2015090903191136w24828e2ewfc56baf79e284ba3@mail.gmail.com> <9c2015090903191148s316eb3fewc8c0e70e0b132708@mail.gmail.com> <9c2015090903191355t4b239221i2cf1ea32e64007b8@mail.gmail.com> <9c2015090903191359y4c54cb4dne65f87645d79617@mail.gmail.com> Message-ID: On Thu, Mar 19, 2009 at 2:59 PM, Roger Andr? wrote: > You're right, 1/2 pixel offset is definitely present. What a pain. > Any idea when the 5.4 stable release is expected? ?I see that a beta > release is available currently. > -- This is the ticket I found relevant to the issue: http://trac.osgeo.org/mapserver/ticket/2843 However, I see that only the WMS component is addressed in the patch, and not WCS, so the GetCoverage half pixel offset may exist even with the 5.4 release. Alex From Steve.Lime at dnr.state.mn.us Thu Mar 19 15:04:14 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 19 Mar 2009 17:04:14 -0500 Subject: [mapserver-users] Mapserver WCS - how to return native pixel resolution data? In-Reply-To: <9c2015090903191359y4c54cb4dne65f87645d79617@mail.gmail.com> References: <9c2015090903181402p763d9914ufafdf1c433330335@mail.gmail.com> <9c2015090903191136w24828e2ewfc56baf79e284ba3@mail.gmail.com> <9c2015090903191148s316eb3fewc8c0e70e0b132708@mail.gmail.com> <9c2015090903191355t4b239221i2cf1ea32e64007b8@mail.gmail.com> <9c2015090903191359y4c54cb4dne65f87645d79617@mail.gmail.com> Message-ID: <49C27B0E.5157.008F.0@dnr.state.mn.us> Are you seeing the issue with both WCS 1.0 and WCS 1.1? I could have sworn I fixed WCS 1.0 back at the 5.0 but perhaps the merge of the WCS 1.1 support broke that. There is code in mapwcs.c to account for the differences in various pixel models (MapServer, WCS 1.0 and WCS 1.1). Steve >>> On 3/19/2009 at 3:59 PM, in message <9c2015090903191359y4c54cb4dne65f87645d79617 at mail.gmail.com>, Roger Andr? wrote: > You're right, 1/2 pixel offset is definitely present. What a pain. > Any idea when the 5.4 stable release is expected? I see that a beta > release is available currently. > -- > > On Thu, Mar 19, 2009 at 1:55 PM, Roger Andr? wrote: >> Sure thing. Here are the OUTPUTFORMAT declarations I have: >> >> OUTPUTFORMAT >> NAME "GEOTIFF_FLOAT" >> DRIVER 'GDAL/GTiff' >> MIMETYPE 'image/tiff' >> IMAGEMODE FLOAT32 >> EXTENSION 'tif' >> END >> >> OUTPUTFORMAT >> NAME "ASCII_GRID" >> DRIVER 'GDAL/AAIGrid' >> MIMETYPE 'image/grid' >> IMAGEMODE FLOAT32 >> EXTENSION 'asc' >> END >> >> I'll have to check my output data more closely to see if the 1/2 pixel >> offset exists. I've only looked at it in a cursory way so far. The >> version of MapServer I'm using is 5.2.0 >> -- >> >> On Thu, Mar 19, 2009 at 12:14 PM, Alexander Petkov wrote: >>> On Thu, Mar 19, 2009 at 12:48 PM, Roger Andr? wrote: >>>> Sorry for the spam, I think I found the answer. Both RESX and RESY >>>> need to be positive values. Using that, I am able to get back data >>>> that matches the original data. >>>> >>>> Thanks, >>>> >>>> Roger >>>> -- >>>> >>>> On Thu, Mar 19, 2009 at 11:36 AM, Roger Andr? wrote: >>>>> Hi Alexander, >>>>> >>>>> Thanks for the response. Yes, I am using a GetCoverage request that >>>>> looks like this: >>>>> >>>>> http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/netCDF/netcdf.map >>>>> &SERVICE=wcs >>>>> &VERSION=1.0.0 >>>>> &REQUEST=GetCoverage >>>>> &COVERAGE=elev >>>>> &CRS=EPSG:4326 >>>>> &BBOX=125,50,130,55 >>>>> &WIDTH=600 >>>>> &HEIGHT=600 >>>>> &FORMAT=image/grid >>>>> >>>>> The source is a single-band image, and the data is correctly returned >>>>> as either a single-band GeoTIFF, or an ASCII Grid, depending on which >>>>> FORMAT I specify in the WCS string. >>>>> >>>>> What I would like to do is eliminate the WIDTH and HEIGHT parameters >>>>> from the request, and just return whatever is available in the BBOX >>>>> area. When I remove them from the request, I get an error that says I >>>>> either need HEIGHT and WIDTH, or RESX and RESY. When I restructure >>>>> the command to include RESX and RESY (see below), I get an "Out of >>>>> memory" error. >>>>> >>>>> http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/netCDF/netcdf.map >>>>> &SERVICE=wcs >>>>> &VERSION=1.0.0 >>>>> &REQUEST=GetCoverage >>>>> &COVERAGE=elev >>>>> &CRS=EPSG:4326 >>>>> &BBOX=125,50,130,55 >>>>> &FORMAT=image/grid >>>>> &RESX=.033&RESY=-.033 >>>>> >>>>> I believe I should be able to use the pixel dimensions that are >>>>> reported back to me in a DescribeCoverage request, which show them to >>>>> be: >>>>> >>>>> 0.033333333333333 0 >>>>> 0 -0.033333333333333 >>>>> >>>>> Thanks for the help, >>>>> >>>>> Roger >>> >>> Hi Roger: >>> >>> Glad to know that you got the problem solved. Do you mind sharing your >>> OUTPUTFORMAT configurations in your mapfile if you have them >>> configured, particularly for the ASCII grid format. >>> >>> Also, are you using a mapserver release older than any of the 5.4 >>> betas? I am using 5.2.1 and I see the result of the GetCoverage >>> request being offset by a half pixel (the pixel size of my data). Bug >>> reports indicate that this offset will be fixed for the 5.4 release. >>> >>> >>> Thanks in advance, >>> Alex >>> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From zachc1980 at gmail.com Thu Mar 19 15:21:39 2009 From: zachc1980 at gmail.com (zach cruise) Date: Thu, 19 Mar 2009 18:21:39 -0400 Subject: [mapserver-users] Php/MapScript and MediaWiki In-Reply-To: <76a916120903190911te47a879pd3db9091c1d846cd@mail.gmail.com> References: <76a916120903190911te47a879pd3db9091c1d846cd@mail.gmail.com> Message-ID: great alexandre! how did you add hyperlinks such that clicking on brazil's map takes you to brazil's page? From randre at gmail.com Thu Mar 19 16:00:16 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Thu, 19 Mar 2009 16:00:16 -0700 Subject: [mapserver-users] Custom XML output via WCS, maybe via gdal VRT? Message-ID: <9c2015090903191600w17877d15y9d430c7b2da3d931@mail.gmail.com> Hi All, I'm curious if it's possible to get XML output from a WCS request? It seems that I can get the server to output any gdal-supported format, but I don't think GML or XML is one of them. I currently have ASCII grid output coming out, but I would like to display the data values directly in the browser. Anyone tried this? Roger -- From randre at gmail.com Thu Mar 19 16:54:07 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Thu, 19 Mar 2009 16:54:07 -0700 Subject: [mapserver-users] Mapserver WCS - how to return native pixel resolution data? In-Reply-To: <49C27B0E.5157.008F.0@dnr.state.mn.us> References: <9c2015090903181402p763d9914ufafdf1c433330335@mail.gmail.com> <9c2015090903191136w24828e2ewfc56baf79e284ba3@mail.gmail.com> <9c2015090903191148s316eb3fewc8c0e70e0b132708@mail.gmail.com> <9c2015090903191355t4b239221i2cf1ea32e64007b8@mail.gmail.com> <9c2015090903191359y4c54cb4dne65f87645d79617@mail.gmail.com> <49C27B0E.5157.008F.0@dnr.state.mn.us> Message-ID: <9c2015090903191654n79a0bd85hc41c02c3727e9a9@mail.gmail.com> Hi Steve, You're right. Version 1.0.0 requests don't show a 1/2 pixel offset when overlaid on a static data image, version 1.1.0 does. However, once they're overlaid, I do see a difference in data values. I'm going to have to figure that one out next. Roger -- On Thu, Mar 19, 2009 at 3:04 PM, Steve Lime wrote: > Are you seeing the issue with both WCS 1.0 and WCS 1.1? I could have > sworn I fixed WCS 1.0 back at the 5.0 but > perhaps the merge of the WCS 1.1 support broke that. There is code in > mapwcs.c to account for the differences in > various pixel models (MapServer, WCS 1.0 and WCS 1.1). > > Steve > >>>> On 3/19/2009 at 3:59 PM, in message > <9c2015090903191359y4c54cb4dne65f87645d79617 at mail.gmail.com>, Roger > Andr? > wrote: >> You're right, 1/2 pixel offset is definitely present. What a pain. >> Any idea when the 5.4 stable release is expected? ?I see that a beta >> release is available currently. >> -- >> >> On Thu, Mar 19, 2009 at 1:55 PM, Roger Andr? > wrote: >>> Sure thing. ?Here are the OUTPUTFORMAT declarations I have: >>> >>> OUTPUTFORMAT >>> ?NAME "GEOTIFF_FLOAT" >>> ?DRIVER 'GDAL/GTiff' >>> ?MIMETYPE 'image/tiff' >>> ?IMAGEMODE FLOAT32 >>> ?EXTENSION 'tif' >>> END >>> >>> OUTPUTFORMAT >>> ?NAME "ASCII_GRID" >>> ?DRIVER 'GDAL/AAIGrid' >>> ?MIMETYPE 'image/grid' >>> ?IMAGEMODE FLOAT32 >>> ?EXTENSION 'asc' >>> END >>> >>> I'll have to check my output data more closely to see if the 1/2 > pixel >>> offset exists. ?I've only looked at it in a cursory way so far. > The >>> version of MapServer I'm using is 5.2.0 >>> -- >>> >>> On Thu, Mar 19, 2009 at 12:14 PM, Alexander Petkov > wrote: >>>> On Thu, Mar 19, 2009 at 12:48 PM, Roger Andr? > wrote: >>>>> Sorry for the spam, I think I found the answer. ?Both RESX and > RESY >>>>> need to be positive values. ?Using that, I am able to get back > data >>>>> that matches the original data. >>>>> >>>>> Thanks, >>>>> >>>>> Roger >>>>> -- >>>>> >>>>> On Thu, Mar 19, 2009 at 11:36 AM, Roger Andr? > wrote: >>>>>> Hi Alexander, >>>>>> >>>>>> Thanks for the response. ?Yes, I am using a GetCoverage request > that >>>>>> looks like this: >>>>>> >>>>>> > http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/netCDF/netcdf.map > >>>>>> &SERVICE=wcs >>>>>> &VERSION=1.0.0 >>>>>> &REQUEST=GetCoverage >>>>>> &COVERAGE=elev >>>>>> &CRS=EPSG:4326 >>>>>> &BBOX=125,50,130,55 >>>>>> &WIDTH=600 >>>>>> &HEIGHT=600 >>>>>> &FORMAT=image/grid >>>>>> >>>>>> The source is a single-band image, and the data is correctly > returned >>>>>> as either a single-band GeoTIFF, or an ASCII Grid, depending on > which >>>>>> FORMAT I specify in the WCS string. >>>>>> >>>>>> What I would like to do is eliminate the WIDTH and HEIGHT > parameters >>>>>> from the request, and just return whatever is available in the > BBOX >>>>>> area. ?When I remove them from the request, I get an error that > says I >>>>>> either need HEIGHT and WIDTH, or RESX and RESY. ?When I > restructure >>>>>> the command to include RESX and RESY (see below), I get an "Out > of >>>>>> memory" error. >>>>>> >>>>>> > http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/netCDF/netcdf.map > >>>>>> &SERVICE=wcs >>>>>> &VERSION=1.0.0 >>>>>> &REQUEST=GetCoverage >>>>>> &COVERAGE=elev >>>>>> &CRS=EPSG:4326 >>>>>> &BBOX=125,50,130,55 >>>>>> &FORMAT=image/grid >>>>>> &RESX=.033&RESY=-.033 >>>>>> >>>>>> I believe I should be able to use the pixel dimensions that are >>>>>> reported back to me in a DescribeCoverage request, which show > them to >>>>>> be: >>>>>> >>>>>> 0.033333333333333 0 >>>>>> 0 -0.033333333333333 >>>>>> >>>>>> Thanks for the help, >>>>>> >>>>>> Roger >>>> >>>> Hi Roger: >>>> >>>> Glad to know that you got the problem solved. Do you mind sharing > your >>>> OUTPUTFORMAT configurations in your mapfile if you have them >>>> configured, particularly for the ASCII grid format. >>>> >>>> Also, are you using a mapserver release older than any of the 5.4 >>>> betas? I am using 5.2.1 and I see the result of the GetCoverage >>>> request being offset by a half pixel (the pixel size of my data). > Bug >>>> reports indicate that this offset will be fixed for the 5.4 > release. >>>> >>>> >>>> Thanks in advance, >>>> Alex >>>> >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > From alex.lagache at gmail.com Thu Mar 19 17:57:25 2009 From: alex.lagache at gmail.com (Alexandre LAGACHE) Date: Thu, 19 Mar 2009 20:57:25 -0400 Subject: [mapserver-users] Php/MapScript and MediaWiki In-Reply-To: References: <76a916120903190911te47a879pd3db9091c1d846cd@mail.gmail.com> Message-ID: <76a916120903191757wdb7a776v2d8d6ac558067bd0@mail.gmail.com> Hi Zach A click on the map send the coordinates to a Special page on Mediawiki, a querybypoint is then performed, returns the country name and a redirect sends to the country page... On Thu, Mar 19, 2009 at 18:21, zach cruise wrote: > great alexandre! how did you add hyperlinks such that clicking on > brazil's map takes you to brazil's page? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Thu Mar 19 19:13:41 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 19 Mar 2009 21:13:41 -0500 Subject: [mapserver-users] Mapserver WCS - how to return native pixel resolution data? Message-ID: <49C2B5850200008F00021DCB@co5.dnr.state.mn.us> Sorry for the hassles. Changing the pixel model between versions is a pain. Now MapServer matches WCS 1.0 and GDAL matches WCS 1.1 I believe. Steve >>> Roger Andr? 03/19/09 6:55 PM >>> Hi Steve, You're right. Version 1.0.0 requests don't show a 1/2 pixel offset when overlaid on a static data image, version 1.1.0 does. However, once they're overlaid, I do see a difference in data values. I'm going to have to figure that one out next. Roger -- On Thu, Mar 19, 2009 at 3:04 PM, Steve Lime wrote: > Are you seeing the issue with both WCS 1.0 and WCS 1.1? I could have > sworn I fixed WCS 1.0 back at the 5.0 but > perhaps the merge of the WCS 1.1 support broke that. There is code in > mapwcs.c to account for the differences in > various pixel models (MapServer, WCS 1.0 and WCS 1.1). > > Steve > >>>> On 3/19/2009 at 3:59 PM, in message > <9c2015090903191359y4c54cb4dne65f87645d79617 at mail.gmail.com>, Roger > Andr? > wrote: >> You're right, 1/2 pixel offset is definitely present. What a pain. >> Any idea when the 5.4 stable release is expected? I see that a beta >> release is available currently. >> -- >> >> On Thu, Mar 19, 2009 at 1:55 PM, Roger Andr? > wrote: >>> Sure thing. Here are the OUTPUTFORMAT declarations I have: >>> >>> OUTPUTFORMAT >>> NAME "GEOTIFF_FLOAT" >>> DRIVER 'GDAL/GTiff' >>> MIMETYPE 'image/tiff' >>> IMAGEMODE FLOAT32 >>> EXTENSION 'tif' >>> END >>> >>> OUTPUTFORMAT >>> NAME "ASCII_GRID" >>> DRIVER 'GDAL/AAIGrid' >>> MIMETYPE 'image/grid' >>> IMAGEMODE FLOAT32 >>> EXTENSION 'asc' >>> END >>> >>> I'll have to check my output data more closely to see if the 1/2 > pixel >>> offset exists. I've only looked at it in a cursory way so far. > The >>> version of MapServer I'm using is 5.2.0 >>> -- >>> >>> On Thu, Mar 19, 2009 at 12:14 PM, Alexander Petkov > wrote: >>>> On Thu, Mar 19, 2009 at 12:48 PM, Roger Andr? > wrote: >>>>> Sorry for the spam, I think I found the answer. Both RESX and > RESY >>>>> need to be positive values. Using that, I am able to get back > data >>>>> that matches the original data. >>>>> >>>>> Thanks, >>>>> >>>>> Roger >>>>> -- >>>>> >>>>> On Thu, Mar 19, 2009 at 11:36 AM, Roger Andr? > wrote: >>>>>> Hi Alexander, >>>>>> >>>>>> Thanks for the response. Yes, I am using a GetCoverage request > that >>>>>> looks like this: >>>>>> >>>>>> > http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/netCDF/netcdf.map > >>>>>> &SERVICE=wcs >>>>>> &VERSION=1.0.0 >>>>>> &REQUEST=GetCoverage >>>>>> &COVERAGE=elev >>>>>> &CRS=EPSG:4326 >>>>>> &BBOX=125,50,130,55 >>>>>> &WIDTH=600 >>>>>> &HEIGHT=600 >>>>>> &FORMAT=image/grid >>>>>> >>>>>> The source is a single-band image, and the data is correctly > returned >>>>>> as either a single-band GeoTIFF, or an ASCII Grid, depending on > which >>>>>> FORMAT I specify in the WCS string. >>>>>> >>>>>> What I would like to do is eliminate the WIDTH and HEIGHT > parameters >>>>>> from the request, and just return whatever is available in the > BBOX >>>>>> area. When I remove them from the request, I get an error that > says I >>>>>> either need HEIGHT and WIDTH, or RESX and RESY. When I > restructure >>>>>> the command to include RESX and RESY (see below), I get an "Out > of >>>>>> memory" error. >>>>>> >>>>>> > http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/netCDF/netcdf.map > >>>>>> &SERVICE=wcs >>>>>> &VERSION=1.0.0 >>>>>> &REQUEST=GetCoverage >>>>>> &COVERAGE=elev >>>>>> &CRS=EPSG:4326 >>>>>> &BBOX=125,50,130,55 >>>>>> &FORMAT=image/grid >>>>>> &RESX=.033&RESY=-.033 >>>>>> >>>>>> I believe I should be able to use the pixel dimensions that are >>>>>> reported back to me in a DescribeCoverage request, which show > them to >>>>>> be: >>>>>> >>>>>> 0.033333333333333 0 >>>>>> 0 -0.033333333333333>>> Glad to know that you got the problem solved. Do you mind sharing > your >>>> OUTPUTFORMAT configurations in your mapfile if you have them >>>> configured, particularly for the ASCII grid format. >>>> >>>> Also, are you using a mapserver release older than any of the 5.4 >>>> betas? I am using 5.2.1 and I see the result of the GetCoverage >>>> request being offset by a half pixel (the pixel size of my data). > Bug >>>> reports indicate that this offset will be fixed for the 5.4 > release. >>>> >>>> >>>> Thanks in advance, >>>> Alex >>>> >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > From no-reply at neogeo-online.net Fri Mar 20 02:05:52 2009 From: no-reply at neogeo-online.net (Guillaume Sueur) Date: Fri, 20 Mar 2009 10:05:52 +0100 Subject: [mapserver-users] MapServer, SLD and PointSymbolizer : Fill AND Stroke ? Message-ID: <49C35C70.5000407@neogeo-online.net> Hi, I prefer to ask before going crazy... I'm trying to use SLD to display a point layer with a PointSymbolizer using a WellKnownName graphic. I can have it filled with a fill color I can have it outlined with a stroke color but I can't have both fill and outline at the same time. Changing their order in the sld file doesn't change anything (i first thought the outline was under the fill color) Is it due to sld specification which would imply to draw 2 graphics (1 for fill and a bigger one for outline), or is it a mapserver limitation/bug ? Thanks, Guillaume From no-reply at neogeo-online.net Fri Mar 20 02:35:26 2009 From: no-reply at neogeo-online.net (Guillaume Sueur) Date: Fri, 20 Mar 2009 10:35:26 +0100 Subject: [mapserver-users] MapServer, SLD and PointSymbolizer : Fill AND Stroke ? In-Reply-To: <49C35C70.5000407@neogeo-online.net> References: <49C35C70.5000407@neogeo-online.net> Message-ID: <49C3635E.8090700@neogeo-online.net> forget it, typo :-(, the # was missing in front of stroke color definition sorry Guillaume Guillaume Sueur a ?crit : > Hi, > > I prefer to ask before going crazy... I'm trying to use SLD to display > a point layer with a PointSymbolizer using a WellKnownName graphic. > I can have it filled with a fill color > I can have it outlined with a stroke color > but I can't have both fill and outline at the same time. > Changing their order in the sld file doesn't change anything (i first > thought the outline was under the fill color) > > Is it due to sld specification which would imply to draw 2 graphics (1 > for fill and a bigger one for outline), or is it a mapserver > limitation/bug ? > > Thanks, > > Guillaume > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From pspencer at dmsolutions.ca Fri Mar 20 04:28:03 2009 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Fri, 20 Mar 2009 07:28:03 -0400 Subject: [mapserver-users] Prevalence of the use of queryfiles... In-Reply-To: <49B9A2F20200008F0002189A@co5.dnr.state.mn.us> References: <49B9A2F20200008F0002189A@co5.dnr.state.mn.us> Message-ID: <7AA6393A-4A93-48DB-B9B9-774921E15D2C@dmsolutions.ca> Steve, we use this feature in Fusion via mapscript to save the result of a spatial or attribute query and then via the CGI (via OpenLayers by merging new params queryfile=) to draw the query when rendering the map. It is a *very* convenient and seemingly lightweight (at least in coding terms) mechanism to draw query results. We don't need to modify the map file as a result of a query and we don't need to use mapscript to draw the map (since everything else is on the client for requesting the map). We could change this to use another mechanism - when a fusion app starts, the requested mapfile is copied to a session so we can modify if necessary (add/remove layers, reorder etc). This means that as a result of a query, we could add layers that point to temporary shape files that contain copies of selected features. While this might give us a bit more control over presentation of the query results, it might also be problematic for selecting features like points with specific symbols coming from different layers etc ... I guess we would copy every layer that had a query result to new layer and modify the styles but that could get very complex to manage. One of the requested features for Fusion (MapServer) is to modify the selection (add features, remove features). We can do this in MapGuide. Managing things in shapefiles would at least give us an option to implement this kind of thing, but it would be quite heavy handed I think. Overall I would argue to keep it unless you know of a reasonably simple way to replicate this functionality with mapscript and not requiring mapscript to draw the map every time (which was what we did in Chameleon!). Cheers Paul On 13-Mar-09, at 1:04 AM, Steve Lime wrote: > Hi all: Consider this a survey of sorts. I'm wondering how many of > you make use of saving queries, either via the CGI or MapScript. > It's an old feature that isn't terribly useful and I'm trying to > understand the pain the community might incur if they go away in > 6.0. If you didn't know they existed or how you might use them then > it's safe to say you don't need 'em. > > Steve > _______________________________________________ > 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 pal.kristensen at statkart.no Fri Mar 20 06:00:20 2009 From: pal.kristensen at statkart.no (paalkr) Date: Fri, 20 Mar 2009 06:00:20 -0700 (PDT) Subject: [mapserver-users] Two questions about WMS and outputformats In-Reply-To: <49C262BF.4040906@dmsolutions.ca> References: <49BE7997.60606@pobox.com> <1237316060184-2493151.post@n2.nabble.com> <49C0E474.3010401@dmsolutions.ca> <1237380841936-2497002.post@n2.nabble.com> <49C262BF.4040906@dmsolutions.ca> Message-ID: <1237554020434-2508701.post@n2.nabble.com> Hi! Thanks! The patch works great, just the way I expected. I guess that the same logic has to be implemented on GetLegendGraphics as well. Regards, P?l Kristensen Yewondwossen Assefa wrote: > > ticket is updated with a possible patch. > > best regarads > >> Yewondwossen Assefa wrote: >>> Hi, >>> >>> There was a ticket opened for that years ago with a path to implement >>> it, but was never addressed: >>> (http://trac.osgeo.org/mapserver/ticket/455) >>> It seems to be less controversial in functionality than the recent >>> "Hiding/Enabling/Ignoring Layers in OGC Web Services" thread, but >>> introduces another new metadata and that by it self may be >>> controversial. I am willing to provide a patch for now following what >>> is discussed in the bug and depending on how the OGC metadata >>> organization evolves in the coming months, we would adapt that patch. >>> Please add yourself in cc to this bug. >>> >>> Best Regards >>> >>> >>> paalkr wrote: >>>> Hi! >>>> >>>> Is there a way to prevent the default outputformats to be exposed in >>>> the >>>> capabilities document? I have a map service where I have used AGG >>>> specific >>>> rendering capabilities, and requesting e.g a GIF image then makes a bad >>>> looking map and does not make sense. I would like the opportunity to >>>> only >>>> expose explicit defined formats specified with one or more OUTPUTFORMAT >>>> blocks. >>>> >>>> I don't want to disable the different drivers though, only control the >>>> outputformat list in the GetCapabilities response. If the only way to >>>> achieve this is to patch the source code, I would be glade if any of >>>> the >>>> devs could point me in the right direction. >>>> >>>> Regards, >>>> P?l Kristensen >>>> >>>> >>>> >>>> Frank Warmerdam wrote: >>>>> Rahkonen Jukka wrote: >>>>>> Hi, >>>>>> >>>>>> By default, without having any OUTPUTFORMAT sections in the mapfile, >>>>>> Mapserver is advertising following imageformats in WMS >>>>>> GetCapabilities >>>>>> document: >>>>>> >>>>>> >>>>>> image/gif >>>>>> image/png >>>>>> image/png; mode=24bit >>>>>> image/jpeg >>>>>> image/vnd.wap.wbmp >>>>>> image/tiff >>>>>> image/svg+xml >>>>>> >>> >>> -- >>> ---------------------------------------------------------------- >>> Assefa Yewondwossen >>> Software Analyst >>> >>> Email: assefa at dmsolutions.ca >>> http://www.dmsolutions.ca/ >>> >>> Phone: (613) 565-5056 (ext 14) >>> Fax: (613) 565-0925 >>> ---------------------------------------------------------------- >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/Re%3A-Two-questions-about-WMS-and-outputformats-tp2486969p2508701.html Sent from the Mapserver - User mailing list archive at Nabble.com. From stefan.schwarzer at grid.unep.ch Fri Mar 20 05:44:30 2009 From: stefan.schwarzer at grid.unep.ch (Stefan Schwarzer) Date: Fri, 20 Mar 2009 13:44:30 +0100 Subject: [mapserver-users] Strange Postgis/Mapserver SQL behaviour Message-ID: <6DBBD360-C84E-4339-AC36-AC623A3FA7CD@grid.unep.ch> Hi there, I have a unfortunately rather complex query for my postgis layers. But if I take the SQL and insert it into PgAdmin, I get what I want: a table with the_geom, name, value, uid. But when using this query in the map file, I suddenly get an error message: Warning: [MapServer Error]: prepare_database(): Error declaring cursor: ERROR: syntax error at end of input LINE 2: ...D(-180.200445434298 -90,180.200445434298 90)'::BOX3D, 4326 ) ^ With query string: DECLARE mycursor BINARY CURSOR FOR SELECT "value "::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),uid::text from ( SELECT * FROM (SELECT sub1.* FROM ( SELECT r.the_geom, r.name, COALESCE(SUM(d.value), -9999) AS value, r.id AS uid FROM cereals_yield AS d RIGHT JOIN countries_view AS c ON c.id = d.id_country RIGHT JOIN subregions AS r ON r.id = c.sreg_id WHERE d.year_start = 2006 GROUP BY r.name, r.the_geom, r.id ) AS sub1 LEFT JOIN ( SELECT * FROM crosstab( 'SELECT r.name AS name, d.year_start AS year, SUM(d.value * d_nom.value) / SUM(d_nom.value) AS value FROM in_cereals_yield AS d RIGHT JOIN countries_view AS c ON c.id = d.id_country RIGHT JOIN rice_harvested AS d_nom ON d_nom.id_country = d.id_country RIGHT JOIN subregions AS r ON r. in /www/geodataportal/htdocs/mod_map/map.php on line 1331 Here is the query: SELECT * FROM (SELECT sub1.* FROM ( SELECT r.the_geom, r.name, COALESCE(SUM(d.value), -9999) AS value, r.id AS uid FROM cereals_yield AS d RIGHT JOIN countries_view AS c ON c.id = d.id_country RIGHT JOIN subregions AS r ON r.id = c.sreg_id WHERE d.year_start = 2006 GROUP BY r.name, r.the_geom, r.id ) AS sub1 LEFT JOIN ( SELECT * FROM crosstab( 'SELECT r.name AS name, d.year_start AS year, SUM(d.value * d_nom.value) / SUM(d_nom.value) AS value FROM in_cereals_yield AS d RIGHT JOIN countries_view AS c ON c.id = d.id_country RIGHT JOIN rice_harvested AS d_nom ON d_nom.id_country = d.id_country RIGHT JOIN subregions AS r ON r.id = c.sreg_id WHERE (d.year_start = 2003 ) AND (d_nom.year_start = 2003 ) AND d_nom.value <> 0 GROUP BY r.name, d.year_start ORDER BY 1,2;', 3) AS ct(name varchar, y_2003 numeric) ORDER BY 2 NULLS LAST ) AS sub2 ON sub2.name = sub1.name) AS foo And within the mapfile I attach a "USING UNIQUE uid USING srid=4326" to the query. Can anyone give me a hint what the problem might be? Thanks for any adive! Stef From yassefa at dmsolutions.ca Fri Mar 20 06:55:17 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Fri, 20 Mar 2009 09:55:17 -0400 Subject: [mapserver-users] Two questions about WMS and outputformats In-Reply-To: <1237554020434-2508701.post@n2.nabble.com> References: <49BE7997.60606@pobox.com> <1237316060184-2493151.post@n2.nabble.com> <49C0E474.3010401@dmsolutions.ca> <1237380841936-2497002.post@n2.nabble.com> <49C262BF.4040906@dmsolutions.ca> <1237554020434-2508701.post@n2.nabble.com> Message-ID: <49C3A045.4040705@dmsolutions.ca> paalkr wrote: > Hi! > > Thanks! The patch works great, just the way I expected. I guess that the > same logic has to be implemented on GetLegendGraphics as well. > Yes for the GetLegendGraphics. I will update it to use the same logic. Thanks for testing. > Regards, > P?l Kristensen > > > Yewondwossen Assefa wrote: >> ticket is updated with a possible patch. >> >> best regarads >> >>> Yewondwossen Assefa wrote: >>>> Hi, >>>> >>>> There was a ticket opened for that years ago with a path to implement >>>> it, but was never addressed: >>>> (http://trac.osgeo.org/mapserver/ticket/455) >>>> It seems to be less controversial in functionality than the recent >>>> "Hiding/Enabling/Ignoring Layers in OGC Web Services" thread, but >>>> introduces another new metadata and that by it self may be >>>> controversial. I am willing to provide a patch for now following what >>>> is discussed in the bug and depending on how the OGC metadata >>>> organization evolves in the coming months, we would adapt that patch. >>>> Please add yourself in cc to this bug. >>>> >>>> Best Regards >>>> >>>> >>>> paalkr wrote: >>>>> Hi! >>>>> >>>>> Is there a way to prevent the default outputformats to be exposed in >>>>> the >>>>> capabilities document? I have a map service where I have used AGG >>>>> specific >>>>> rendering capabilities, and requesting e.g a GIF image then makes a bad >>>>> looking map and does not make sense. I would like the opportunity to >>>>> only >>>>> expose explicit defined formats specified with one or more OUTPUTFORMAT >>>>> blocks. >>>>> >>>>> I don't want to disable the different drivers though, only control the >>>>> outputformat list in the GetCapabilities response. If the only way to >>>>> achieve this is to patch the source code, I would be glade if any of >>>>> the >>>>> devs could point me in the right direction. >>>>> >>>>> Regards, >>>>> P?l Kristensen >>>>> >>>>> >>>>> >>>>> Frank Warmerdam wrote: >>>>>> Rahkonen Jukka wrote: >>>>>>> Hi, >>>>>>> >>>>>>> By default, without having any OUTPUTFORMAT sections in the mapfile, >>>>>>> Mapserver is advertising following imageformats in WMS >>>>>>> GetCapabilities >>>>>>> document: >>>>>>> >>>>>>> >>>>>>> image/gif >>>>>>> image/png >>>>>>> image/png; mode=24bit >>>>>>> image/jpeg >>>>>>> image/vnd.wap.wbmp >>>>>>> image/tiff >>>>>>> image/svg+xml >>>>>>> >>>> -- >>>> ---------------------------------------------------------------- >>>> Assefa Yewondwossen >>>> Software Analyst >>>> >>>> Email: assefa at dmsolutions.ca >>>> http://www.dmsolutions.ca/ >>>> >>>> Phone: (613) 565-5056 (ext 14) >>>> Fax: (613) 565-0925 >>>> ---------------------------------------------------------------- >>>> >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >> >> -- >> ---------------------------------------------------------------- >> Assefa Yewondwossen >> Software Analyst >> >> Email: assefa at dmsolutions.ca >> http://www.dmsolutions.ca/ >> >> Phone: (613) 565-5056 (ext 14) >> Fax: (613) 565-0925 >> ---------------------------------------------------------------- >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From djabex at hotmail.com Fri Mar 20 07:59:51 2009 From: djabex at hotmail.com (=?iso-8859-1?Q?Alberto_Fern=E1ndez_S=E1nchez?=) Date: Fri, 20 Mar 2009 15:59:51 +0100 Subject: [mapserver-users] Limit of decimals number in cells of table Message-ID: Hi friends, It is possible to limit the decimals that appear in the cells of the tables of my query template (Data of a map .shp)? For example: "93.120000" to "93.12". Thank to all Alberto. _________________________________________________________________ Ll?vate Messenger en el m?vil a todas partes ?Con?ctate! http://www.microsoft.com/spain/windowsmobile/messenger/default.mspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Fri Mar 20 08:03:22 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 20 Mar 2009 10:03:22 -0500 Subject: [mapserver-users] Limit of decimals number in cells of table In-Reply-To: References: Message-ID: <49C369EA.5157.008F.0@dnr.state.mn.us> You can use the [item ...] tag. For example, [item precision=2 name="someitemname"] Steve >>> On 3/20/2009 at 9:59 AM, in message , Alberto Fern?ndez S?nchez wrote: > Hi friends, > It is possible to limit the decimals that appear in > the cells of the tables of my query template (Data of a map .shp)? For > example: "93.120000" to "93.12". > > Thank to all > > Alberto. > > _________________________________________________________________ > Ll?vate Messenger en el m?vil a todas partes ?Con?ctate! > http://www.microsoft.com/spain/windowsmobile/messenger/default.mspx From no-reply at neogeo-online.net Fri Mar 20 08:14:52 2009 From: no-reply at neogeo-online.net (Guillaume Sueur) Date: Fri, 20 Mar 2009 16:14:52 +0100 Subject: [mapserver-users] Strange Postgis/Mapserver SQL behaviour In-Reply-To: <6DBBD360-C84E-4339-AC36-AC623A3FA7CD@grid.unep.ch> References: <6DBBD360-C84E-4339-AC36-AC623A3FA7CD@grid.unep.ch> Message-ID: <49C3B2EC.8000304@neogeo-online.net> My idea is that in mapfile context your main query should only be SELECT the_geom from (select...) as DATA is expecting a single geom object Hope it helps Guillaume Stefan Schwarzer a ?crit : > Hi there, > > I have a unfortunately rather complex query for my postgis layers. > > But if I take the SQL and insert it into PgAdmin, I get what I want: a > table with the_geom, name, value, uid. > > But when using this query in the map file, I suddenly get an error message: > > Warning: [MapServer Error]: prepare_database(): Error declaring cursor: > ERROR: syntax error at end of input LINE 2: ...D(-180.200445434298 > -90,180.200445434298 90)'::BOX3D, 4326 ) ^ With query string: DECLARE > mycursor BINARY CURSOR FOR SELECT > "value"::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),uid::text > from ( SELECT * FROM (SELECT sub1.* FROM ( SELECT r.the_geom, r.name, > COALESCE(SUM(d.value), -9999) AS value, r.id AS uid FROM cereals_yield > AS d RIGHT JOIN countries_view AS c ON c.id = d.id_country RIGHT JOIN > subregions AS r ON r.id = c.sreg_id WHERE d.year_start = 2006 GROUP BY > r.name, r.the_geom, r.id ) AS sub1 LEFT JOIN ( SELECT * FROM crosstab( > 'SELECT r.name AS name, d.year_start AS year, SUM(d.value * > d_nom.value) / SUM(d_nom.value) AS value FROM in_cereals_yield AS d > RIGHT JOIN countries_view AS c ON c.id = d.id_country RIGHT JOIN > rice_harvested AS d_nom ON d_nom.id_country = d.id_country RIGHT JOIN > subregions AS r ON r. in /www/geodataportal/htdocs/mod_map/map.php on > line 1331 > > > Here is the query: > > SELECT * FROM (SELECT sub1.* FROM ( SELECT r.the_geom, r.name, > COALESCE(SUM(d.value), -9999) AS value, r.id AS uid FROM cereals_yield > AS d RIGHT JOIN countries_view AS c ON c.id = d.id_country RIGHT JOIN > subregions AS r ON r.id = c.sreg_id WHERE d.year_start = 2006 GROUP BY > r.name, r.the_geom, r.id ) AS sub1 LEFT JOIN ( SELECT * FROM crosstab( > 'SELECT r.name AS name, d.year_start AS year, SUM(d.value * > d_nom.value) / SUM(d_nom.value) AS value FROM in_cereals_yield AS d > RIGHT JOIN countries_view AS c ON c.id = d.id_country RIGHT JOIN > rice_harvested AS d_nom ON d_nom.id_country = d.id_country RIGHT JOIN > subregions AS r ON r.id = c.sreg_id WHERE (d.year_start = 2003 ) AND > (d_nom.year_start = 2003 ) AND d_nom.value <> 0 GROUP BY r.name, > d.year_start ORDER BY 1,2;', 3) AS ct(name varchar, y_2003 numeric) > ORDER BY 2 NULLS LAST ) AS sub2 ON sub2.name = sub1.name) AS foo > > > And within the mapfile I attach a "USING UNIQUE uid USING srid=4326" to > the query. > > > Can anyone give me a hint what the problem might be? > > Thanks for any adive! > > Stef > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Steve.Lime at dnr.state.mn.us Fri Mar 20 08:23:52 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 20 Mar 2009 10:23:52 -0500 Subject: [mapserver-users] CLASSITEM changing in request In-Reply-To: <1237474865542-2503372.post@n2.nabble.com> References: <1237474865542-2503372.post@n2.nabble.com> Message-ID: <49C36EB8.5157.008F.0@dnr.state.mn.us> This is not possible... yet. 5.4 opens this up but you will have to provide validation (see RFC 44) to enable this type of configuration. Steve >>> On 3/19/2009 at 10:01 AM, in message <1237474865542-2503372.post at n2.nabble.com>, pietrus00 wrote: > Hello, > I am trying to pass CLASSITEM parameter in Google type request: > > http://pietrus00/cgi-bin/mapserv.exe?map=/ms4w/apps/test/test.map&map.layer[la > nduse]=CLASSITEM+theme1&layers=lu1&mode=tile&tilemode=gmap&tile={X}+{Y}+{Z} > > but I am getting error: > > loadLayer(): Unknown identifier. Parsing error near (CLASSITEM):(line 1) > > Is it going to work in such way ? > > Regards > Pietrus00 From bfraser at geoanalytic.com Fri Mar 20 08:47:37 2009 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 20 Mar 2009 09:47:37 -0600 Subject: [mapserver-users] Limit of decimals number in cells of table In-Reply-To: <49C369EA.5157.008F.0@dnr.state.mn.us> References: <49C369EA.5157.008F.0@dnr.state.mn.us> Message-ID: <49C3BA99.6030609@geoanalytic.com> I have a similar need. I want to label my contours from a Float attribute in my shapefile dbf (actually 13,000 contour shapefiles). Is there any way to do that (other than loading them into PostGIS)? Thanks! Brent Fraser GeoAnalytic Inc. Steve Lime wrote: > You can use the [item ...] tag. For example, > > [item precision=2 name="someitemname"] > > Steve > >>>> On 3/20/2009 at 9:59 AM, in message > , Alberto Fern?ndez > S?nchez > wrote: > >> Hi friends, >> It is possible to limit the decimals that appear in >> the cells of the tables of my query template (Data of a map .shp)? > For >> example: "93.120000" to "93.12". >> >> Thank to all >> >> Alberto. >> >> _________________________________________________________________ >> Ll?vate Messenger en el m?vil a todas partes ?Con?ctate! >> http://www.microsoft.com/spain/windowsmobile/messenger/default.mspx > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Steve.Lime at dnr.state.mn.us Fri Mar 20 09:22:29 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 20 Mar 2009 11:22:29 -0500 Subject: [mapserver-users] Limit of decimals number in cells of table In-Reply-To: <49C3BA99.6030609@geoanalytic.com> References: <49C369EA.5157.008F.0@dnr.state.mn.us> <49C3BA99.6030609@geoanalytic.com> Message-ID: <49C37C75.5157.008F.0@dnr.state.mn.us> Not yet, sorry. Steve >>> On 3/20/2009 at 10:47 AM, in message <49C3BA99.6030609 at geoanalytic.com>, Brent Fraser wrote: > I have a similar need. I want to label my contours from a Float attribute in > my shapefile dbf (actually 13,000 contour shapefiles). Is there any way to > do that (other than loading them into PostGIS)? > > Thanks! > Brent Fraser > GeoAnalytic Inc. > > Steve Lime wrote: >> You can use the [item ...] tag. For example, >> >> [item precision=2 name="someitemname"] >> >> Steve >> >>>>> On 3/20/2009 at 9:59 AM, in message >> , Alberto Fern?ndez >> S?nchez >> wrote: >> >>> Hi friends, >>> It is possible to limit the decimals that appear in >>> the cells of the tables of my query template (Data of a map .shp)? >> For >>> example: "93.120000" to "93.12". >>> >>> Thank to all >>> >>> Alberto. >>> >>> _________________________________________________________________ >>> Ll?vate Messenger en el m?vil a todas partes ?Con?ctate! >>> http://www.microsoft.com/spain/windowsmobile/messenger/default.mspx >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> From djabex at hotmail.com Fri Mar 20 10:10:37 2009 From: djabex at hotmail.com (=?iso-8859-1?Q?Alberto_Fern=E1ndez_S=E1nchez?=) Date: Fri, 20 Mar 2009 18:10:37 +0100 Subject: [mapserver-users] Limit of decimals number in cells of table In-Reply-To: <49C369EA.5157.008F.0@dnr.state.mn.us> References: <49C369EA.5157.008F.0@dnr.state.mn.us> Message-ID: Thank you Steve, but where I have to put the line "item precision" in my html template? > Date: Fri, 20 Mar 2009 10:03:22 -0500 > From: Steve.Lime at dnr.state.mn.us > To: djabex at hotmail.com; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Limit of decimals number in cells of table > > You can use the [item ...] tag. For example, > > [item precision=2 name="someitemname"] > > Steve > > >>> On 3/20/2009 at 9:59 AM, in message > , Alberto Fern?ndez > S?nchez > wrote: > > > Hi friends, > > It is possible to limit the decimals that appear in > > the cells of the tables of my query template (Data of a map .shp)? > For > > example: "93.120000" to "93.12". > > > > Thank to all > > > > Alberto. > > > > _________________________________________________________________ > > Ll?vate Messenger en el m?vil a todas partes ?Con?ctate! > > http://www.microsoft.com/spain/windowsmobile/messenger/default.mspx _________________________________________________________________ ?Quieres ver los mejores videos de MSN? Enciende Messenger TV http://messengertv.msn.com/mkt/es-es/default.htm -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at opengeo.org Fri Mar 20 10:23:19 2009 From: pramsey at opengeo.org (Paul Ramsey) Date: Fri, 20 Mar 2009 10:23:19 -0700 Subject: [mapserver-users] Strange Postgis/Mapserver SQL behaviour In-Reply-To: <6DBBD360-C84E-4339-AC36-AC623A3FA7CD@grid.unep.ch> References: <6DBBD360-C84E-4339-AC36-AC623A3FA7CD@grid.unep.ch> Message-ID: <30fe546d0903201023t39464f68id1ec84e4af86e8cc@mail.gmail.com> DATA "the_geom from (SELECT sub1.* FROM ( SELECT r.the_geom, r.name, COALESCE(SUM(d.value), -9999) AS value, r.id AS uid FROM cereals_yield AS d RIGHT JOIN countries_view AS c ON c.id = d.id_country RIGHT JOIN subregions AS r ON r.id = c.sreg_id WHERE d.year_start = 2006 GROUP BY r.name, r.the_geom, r.id ) AS sub1 LEFT JOIN ( SELECT * FROM crosstab( 'SELECT r.name AS name, d.year_start AS year, SUM(d.value * d_nom.value) / SUM(d_nom.value) AS value FROM in_cereals_yield AS d RIGHT JOIN countries_view AS c ON c.id = d.id_country RIGHT JOIN rice_harvested AS d_nom ON d_nom.id_country = d.id_country RIGHT JOIN subregions AS r ON r.id = c.sreg_id WHERE (d.year_start = 2003 ) AND (d_nom.year_start = 2003 ) AND d_nom.value <> 0 GROUP BY r.name, d.year_start ORDER BY 1,2;', 3) AS ct(name varchar, y_2003 numeric) ORDER BY 2 NULLS LAST ) AS sub2 ON sub2.name = sub1.name) AS foo USING UNIQUE uid USING SRID= 4326 On Fri, Mar 20, 2009 at 5:44 AM, Stefan Schwarzer wrote: > Hi there, > > I have a unfortunately rather complex query for my postgis layers. > > But if I take the SQL and insert it into PgAdmin, I get what I want: a table > with the_geom, name, value, uid. > > But when using this query in the map file, I suddenly get an error message: > > Warning: [MapServer Error]: prepare_database(): Error declaring cursor: > ERROR: syntax error at end of input LINE 2: ...D(-180.200445434298 > -90,180.200445434298 90)'::BOX3D, 4326 ) ^ With query string: DECLARE > mycursor BINARY CURSOR FOR SELECT > "value"::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),uid::text > from ( SELECT * FROM (SELECT sub1.* FROM ( SELECT r.the_geom, r.name, > COALESCE(SUM(d.value), -9999) AS value, r.id AS uid FROM cereals_yield AS d > RIGHT JOIN countries_view AS c ON c.id = d.id_country RIGHT JOIN subregions > AS r ON r.id = c.sreg_id WHERE d.year_start = 2006 GROUP BY r.name, > r.the_geom, r.id ) AS sub1 LEFT JOIN ( SELECT * FROM crosstab( 'SELECT > r.name AS name, ? ? ? ?d.year_start AS year, SUM(d.value * d_nom.value) / > SUM(d_nom.value) AS value ? ? ? ? FROM in_cereals_yield AS d RIGHT JOIN > countries_view AS c ON c.id = d.id_country RIGHT JOIN rice_harvested AS > d_nom ON d_nom.id_country = d.id_country RIGHT JOIN subregions AS r ON r. in > /www/geodataportal/htdocs/mod_map/map.php on line 1331 > > > Here is the query: > > SELECT * FROM (SELECT sub1.* FROM ( SELECT r.the_geom, r.name, > COALESCE(SUM(d.value), -9999) AS value, r.id AS uid FROM cereals_yield AS d > RIGHT JOIN countries_view AS c ON c.id = d.id_country RIGHT JOIN subregions > AS r ON r.id = c.sreg_id WHERE d.year_start = 2006 GROUP BY r.name, > r.the_geom, r.id ) AS sub1 LEFT JOIN ( SELECT * FROM crosstab( 'SELECT > r.name AS name, ? ? ? ?d.year_start AS year, SUM(d.value * d_nom.value) / > SUM(d_nom.value) AS value ? ? ? ? FROM in_cereals_yield AS d RIGHT JOIN > countries_view AS c ON c.id = d.id_country RIGHT JOIN rice_harvested AS > d_nom ON d_nom.id_country = d.id_country RIGHT JOIN subregions AS r ON r.id > = c.sreg_id WHERE (d.year_start = 2003 ) AND (d_nom.year_start = 2003 ) AND > d_nom.value <> 0 GROUP BY r.name, d.year_start ORDER BY 1,2;', 3) AS ct(name > varchar, y_2003 numeric) ? ? ?ORDER BY 2 NULLS LAST ) AS sub2 ON sub2.name = > sub1.name) AS foo > > > And within the mapfile I attach a "USING UNIQUE uid USING srid=4326" to the > query. > > > Can anyone give me a hint what the problem might be? > > Thanks for any adive! > > Stef > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From woodbri at swoodbridge.com Fri Mar 20 11:25:45 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 20 Mar 2009 13:25:45 -0500 Subject: [mapserver-users] Limit of decimals number in cells of table In-Reply-To: <49C37C75.5157.008F.0@dnr.state.mn.us> References: <49C369EA.5157.008F.0@dnr.state.mn.us> <49C3BA99.6030609@geoanalytic.com> <49C37C75.5157.008F.0@dnr.state.mn.us> Message-ID: <49C3DFA9.7090609@swoodbridge.com> Brent, If you don't have a ticket open for this, please open one so it gets tracked and post the ticket number. I also have a need for that. -Steve W Steve Lime wrote: > Not yet, sorry. > > Steve > >>>> On 3/20/2009 at 10:47 AM, in message > <49C3BA99.6030609 at geoanalytic.com>, Brent > Fraser wrote: >> I have a similar need. I want to label my contours from a Float > attribute in >> my shapefile dbf (actually 13,000 contour shapefiles). Is there any > way to >> do that (other than loading them into PostGIS)? >> >> Thanks! >> Brent Fraser >> GeoAnalytic Inc. >> >> Steve Lime wrote: >>> You can use the [item ...] tag. For example, >>> >>> [item precision=2 name="someitemname"] >>> >>> Steve >>> >>>>>> On 3/20/2009 at 9:59 AM, in message >>> , Alberto Fern?ndez >>> S?nchez >>> wrote: >>> >>>> Hi friends, >>>> It is possible to limit the decimals that appear in >>>> the cells of the tables of my query template (Data of a map .shp)? >>> For >>>> example: "93.120000" to "93.12". >>>> >>>> Thank to all >>>> >>>> Alberto. >>>> >>>> _________________________________________________________________ >>>> Ll?vate Messenger en el m?vil a todas partes ?Con?ctate! >>>> http://www.microsoft.com/spain/windowsmobile/messenger/default.mspx > >>> _______________________________________________ >>> 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 romero619 at hotmail.com Fri Mar 20 10:52:02 2009 From: romero619 at hotmail.com (Pablo Romero) Date: Fri, 20 Mar 2009 10:52:02 -0700 Subject: [mapserver-users] web development project with mapserver- questions In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA2D3@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA2D3@s-sp22.pca.state.mn.us> Message-ID: David, did you manage to find the example that you mentioned previously? any help would be greatly appreciated. Thanks again, P.Romero ---------------------------------------- > Subject: RE: [mapserver-users] web development project with mapserver- questions > Date: Thu, 19 Mar 2009 15:27:44 -0500 > From: David.Fawcett at state.mn.us > To: romero619 at hotmail.com; mapserver-users at lists.osgeo.org > > I don't have an example handy, but here is one way to do it > conceptually. > > You have a script that goes out and gathers the current wind data and > writes it to a MySQL Database or a shapefile. > > Using CGI MapServer, your map file uses the database table or shape file > as the data source for your wind stations layer. > > With MapServer version>=5.2, you can base the rotation of the symbol on > the value in a column of your data source. See 'attribute binding' in > the documentation. > > You use MapServer to output an image map using a query template. The > image map can contain data from different columns in your data source. > > I know that I put together an example on this somewhat recently. I will > dig around. > > David. > > -----Original Message----- > From: Pablo Romero [mailto:romero619 at hotmail.com] > Sent: Thursday, March 19, 2009 3:08 PM > To: David.Fawcett at state.mn.us; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] web development project with mapserver- > questions > > > > David > Thanks for the response. > > Divs arent a requirement; I just mentioned them because the example site > that I posted was using divs, so I suggested them more as a point of > reference. > > Id be willing to use whatever works, but Id obviously like to avoid > using any hefty solution that could be considered as being 'overkill'. > something simple & lightweight is prefered. > > Im not very experienced with mapserver, but would the use of symbols to > add the vector drawings be a feasible solution? can symbols show up on > the image map as clickable regions with mouse-over text? > > i.e., something like: > 1) use my backend code (php/perl) to generate the markers & select the > appropriate symbol image file & "alt" text > 2) pass this info to mapserver prior to drawing the map, & include the > symbols into the map image. > 3) create the image map with symbols > > does this method sound reasonable/right? > > IF so, how would I go about this (creating these custom symbols)? Is > there an existing tutorial that might help me accomplish this? > > Thanks again, > P.Romero > > > > ---------------------------------------- >> Subject: RE: [mapserver-users] web development project with mapserver- > >> questions >> Date: Thu, 19 Mar 2009 14:35:20 -0500 >> From: David.Fawcett at state.mn.us >> To: romero619 at hotmail.com; mapserver-users at lists.osgeo.org >> >> Do you really need to create divs? >> >> You could use MapServer to put the marker on the map in the correct >> location (as part of the map image) and have MapServer output it as an > >> imagemap if all that you need is mouse-over text. >> >> http://mapserver.org/output/imagemaps.html >> >> If you want to do anything much fancier with putting vector markers on > >> a map, you might look at something like OpenLayers. >> http://www.openlayers.org/ Probably overkill for what you need, but >> worth a look. >> >> David. >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Pablo >> Romero >> Sent: Thursday, March 19, 2009 2:27 PM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] web development project with mapserver- >> questions >> >> >> >> Hi, >> I need help figuring out a method to do the following: >> >> 1) use mapserver to create a basic, static image of a given region, >> say,for example the following area: lat1=0.00 lat2=40.00 lng1=-120.00 >> lng2=-40.00 (in decimal degrees) >> >> 2) use css divs or javascript (or both) to create clickable, hyperlink > >> "markers" over the map image at specific lat/lon points (similiar to >> google map markers, except over a static map image). >> >> The problem Im having is figuring out a way to create the "marker" >> divs using absolute (pixel) coordinates over the map image. My marker >> locations are in lat/lon, and I would need to translate them to the >> map's image coordinates. I thought about just scaling the points based > >> on the maps's bounds and the map image size, but this would only >> provide "linear scaling" which might be fairly inaccurate, and I also >> want a method that will work with most map projections. Does this make > >> sense? >> >> Does mapserver provide any automated means of creating such "markers"? > >> Or, is there an existing method of translating >> >> Perhaps this question might not be very mapserver-related, but I was >> hoping someone might have experience with this type of setup. >> >> Here's an example of what Im basically trying to emulate: >> >> http://magicseaweed.com/METARStationHome.php?region=9 >> >> I dont know if this map image was created with mapserver, but the >> general concept stil applies to mapserver: generate a map projection >> image, and place geo-referenced objects over the map image... >> >> Please help, >> Thanks, >> P.Romero >> _________________________________________________________________ >> Windows Live(tm): Life without walls. >> http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1a_explore_0320 >> 09 >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > _________________________________________________________________ > Hotmail(r) is up to 70% faster. Now good news travels really fast. > http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_70faster_0320 > 09 _________________________________________________________________ Windows Live? SkyDrive: Get 25 GB of free online storage. http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_skydrive_032009 From bfraser at geoanalytic.com Fri Mar 20 11:35:56 2009 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 20 Mar 2009 12:35:56 -0600 Subject: [mapserver-users] Limit of decimals number in cells of table In-Reply-To: <49C3DFA9.7090609@swoodbridge.com> References: <49C369EA.5157.008F.0@dnr.state.mn.us> <49C3BA99.6030609@geoanalytic.com> <49C37C75.5157.008F.0@dnr.state.mn.us> <49C3DFA9.7090609@swoodbridge.com> Message-ID: <49C3E20C.4060904@geoanalytic.com> Done. http://trac.osgeo.org/mapserver/ticket/2950 Brent Stephen Woodbridge wrote: > Brent, > > If you don't have a ticket open for this, please open one so it gets > tracked and post the ticket number. I also have a need for that. > > -Steve W > > Steve Lime wrote: >> Not yet, sorry. >> >> Steve >> >>>>> On 3/20/2009 at 10:47 AM, in message >> <49C3BA99.6030609 at geoanalytic.com>, Brent >> Fraser wrote: >>> I have a similar need. I want to label my contours from a Float >> attribute in >>> my shapefile dbf (actually 13,000 contour shapefiles). Is there any >> way to >>> do that (other than loading them into PostGIS)? >>> >>> Thanks! >>> Brent Fraser >>> GeoAnalytic Inc. >>> >>> Steve Lime wrote: >>>> You can use the [item ...] tag. For example, >>>> >>>> [item precision=2 name="someitemname"] >>>> >>>> Steve >>>> >>>>>>> On 3/20/2009 at 9:59 AM, in message >>>> , Alberto Fern?ndez >>>> S?nchez >>>> wrote: >>>> >>>>> Hi friends, >>>>> It is possible to limit the decimals that appear in >>>>> the cells of the tables of my query template (Data of a map .shp)? >>>> For >>>>> example: "93.120000" to "93.12". >>>>> >>>>> Thank to all >>>>> >>>>> Alberto. >>>>> >>>>> _________________________________________________________________ >>>>> Ll?vate Messenger en el m?vil a todas partes ?Con?ctate! >>>>> http://www.microsoft.com/spain/windowsmobile/messenger/default.mspx >> >>>> _______________________________________________ >>>> 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 traviskirstine at gmail.com Fri Mar 20 12:05:57 2009 From: traviskirstine at gmail.com (Travis Kirstine) Date: Fri, 20 Mar 2009 15:05:57 -0400 Subject: [mapserver-users] WMS Server - arcgis 9.3 Service Error Code:service Message-ID: <681116190903201205t25e79ab4n859030cccb781825@mail.gmail.com> I have been attempting to test a wms service with arcgis and am having difficulties. ArcGIS keeps generating the following error: "One or more layers failed to draw: test_wms: WMS service exceptions:-Service Error Code:service Service Error Description: msWFSDispatch(): WFS server error. Incomplete WFS request: SERVICE parameter missing -Service Error Code:service" I looked at my log file and there is no service parameter specified in the getmap request GET /cgi-bin/test_wms?VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&BBOX=-124.450428062007,47.8643742706868,-122.17631873153,49.8854889381483&WIDTH=799&HEIGHT=711&LAYERS=ORTHOPHOTO&STYLES=&EXCEPTIONS=application/vnd.ogc.se_xml&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE HTTP/1.0" 200 479 "http://www.esri.com/7B099B36-70DF-4D0C-9803-12574249D3CE" "ArcGIS Client Using WinInet" I added the &SERVICE=WMS to the request and tested it in the browser and it returned the image. Is there a parameter that I am missing in my mapfile or is this just a bad request from arcgis?. -- Travis K. Toronto, Canada ------------------------------------------------------------ "She knows there's no success like failure And that failure's no success at all." -Bob Dylan- ------------------------------------------------------------ From bartvde at osgis.nl Fri Mar 20 13:21:12 2009 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Fri, 20 Mar 2009 21:21:12 +0100 Subject: [mapserver-users] WMS Server - arcgis 9.3 Service Error Code:service In-Reply-To: <681116190903201205t25e79ab4n859030cccb781825@mail.gmail.com> References: <681116190903201205t25e79ab4n859030cccb781825@mail.gmail.com> Message-ID: <49C3FAB8.4070400@osgis.nl> Which version of Mapserver are you running? This was fixed in 5.2.1. Best regards, Bart Travis Kirstine wrote: > I have been attempting to test a wms service with arcgis and am having > difficulties. ArcGIS keeps generating the following error: > > "One or more layers failed to draw: > > test_wms: WMS service exceptions:-Service Error Code:service > Service Error Description: msWFSDispatch(): WFS server error. > Incomplete WFS request: SERVICE parameter missing > -Service Error Code:service" > > > I looked at my log file and there is no service parameter specified in > the getmap request > > GET /cgi-bin/test_wms?VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&BBOX=-124.450428062007,47.8643742706868,-122.17631873153,49.8854889381483&WIDTH=799&HEIGHT=711&LAYERS=ORTHOPHOTO&STYLES=&EXCEPTIONS=application/vnd.ogc.se_xml&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE > HTTP/1.0" 200 479 > "http://www.esri.com/7B099B36-70DF-4D0C-9803-12574249D3CE" "ArcGIS > Client Using WinInet" > > > I added the &SERVICE=WMS to the request and tested it in the browser > and it returned the image. Is there a parameter that I am missing in > my mapfile or is this just a bad request from arcgis?. > > -- Bart van den Eijnden OSGIS, Open Source GIS bartvde at osgis.nl http://www.osgis.nl From richard.greenwood at gmail.com Sat Mar 21 05:56:48 2009 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Sat, 21 Mar 2009 06:56:48 -0600 Subject: [mapserver-users] Prevalence of the use of queryfiles... In-Reply-To: <49B9A2F20200008F0002189A@co5.dnr.state.mn.us> References: <49B9A2F20200008F0002189A@co5.dnr.state.mn.us> Message-ID: On Thu, Mar 12, 2009 at 11:04 PM, Steve Lime wrote: > Hi all: Consider this a survey of sorts. I'm wondering how many of you make use of saving queries, either via the CGI or MapScript. It's an old feature that isn't terribly useful and I'm trying to understand the pain the community might incur if they go away in 6.0. If you didn't know they existed or how you might use them then it's safe to say you don't need 'em. > > Steve This is more of a vote in support of the elimination of queryfiles and my comments more for people who do use queryfiles. I used to use queryfiles alot but I no longer do. The main reason that I stopped using them is because of their limited persistence. If a user highlights a result set and bookmarks it, and then I delete all temporary files from my server in a nightly cron job, their link is broken. I have found that persisting the original query in the filter parameter is just as easy as using queryfiles. Maybe this is slower because the query gets executed each time the map is refreshed. And maybe there are other benefits of queryfiles that I have never taken advantage of. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From ruijgomes at gmail.com Sat Mar 21 17:44:12 2009 From: ruijgomes at gmail.com (Rui Gomes) Date: Sun, 22 Mar 2009 00:44:12 +0000 Subject: [mapserver-users] Drawing a line with a arrow Message-ID: <31e2f7000903211744s32067e81g65bb74d88326d96a@mail.gmail.com> Greetings to all... I'm need to draw a line with the indication of the direction. Is any way to do this? Thanks -- Rui Gomes From meenu.monu at gmail.com Sun Mar 22 05:48:50 2009 From: meenu.monu at gmail.com (meenu) Date: Sun, 22 Mar 2009 05:48:50 -0700 (PDT) Subject: [mapserver-users] mapserver Message-ID: <1237726130985-2516822.post@n2.nabble.com> -- View this message in context: http://n2.nabble.com/mapserver-tp2516822p2516822.html Sent from the Mapserver - User mailing list archive at Nabble.com. From meenu.monu at gmail.com Sun Mar 22 05:52:42 2009 From: meenu.monu at gmail.com (meenu) Date: Sun, 22 Mar 2009 05:52:42 -0700 (PDT) Subject: [mapserver-users] how can i create mapserver website in VS 2005 (VB) Message-ID: <1237726362116-2516841.post@n2.nabble.com> dears..i planned to make a website using mapserver platform...for that i installed osgeo4w-setup.exe in to my machine...now i want to know,how can i start my work??any sample application is available for this???i am using VS2005(VB) for creating website.... regards -- View this message in context: http://n2.nabble.com/how-can-i-create-mapserver-website-in-VS-2005-%28VB%29-tp2516841p2516841.html Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at gmail.com Sun Mar 22 07:52:39 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Sun, 22 Mar 2009 15:52:39 +0100 Subject: [mapserver-users] how can i create mapserver website in VS 2005 (VB) In-Reply-To: <1237726362116-2516841.post@n2.nabble.com> References: <1237726362116-2516841.post@n2.nabble.com> Message-ID: Hi, You can refer to the ASP.NET MapScript C# tutorial in this location: http://www.paolocorti.net/2006/09/20/mapserver-tutorial-for-c-mapscript-asp-net/ which can also be used from VB.NET as well. Best regards, Tamas 2009/3/22 meenu > > dears..i planned to make a website using mapserver platform...for that i > installed osgeo4w-setup.exe in to my machine...now i want to know,how can > i > start my work??any sample application is available for this???i am using > VS2005(VB) for creating website.... > > regards > > -- > View this message in context: > http://n2.nabble.com/how-can-i-create-mapserver-website-in-VS-2005-%28VB%29-tp2516841p2516841.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 mitchelljj98 at gmail.com Sun Mar 22 11:49:33 2009 From: mitchelljj98 at gmail.com (John Mitchell) Date: Sun, 22 Mar 2009 14:49:33 -0400 Subject: [mapserver-users] advantages of having the map file header extent the actual bounding box instead of EXTENT -180 -90 180 90 # World Message-ID: Hi, What are the advantages or disadvantages of having the map file header extent the actual bounding box of the raster data that is displayed instead of the world wide extent (i.e. -180 -90 180 90 ). I have listed the top of a map file below as an example with the world wide extent. Thanks, John MAP # all temp files get prefixed with this string NAME All_Raster_Layers_ignore # always returns a map STATUS ON # image format options OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END # projection of the INTERFACE that this mapfile supports PROJECTION "init=epsg:4326" END # minx miny maxx maxy EXTENT -180 -90 180 90 # World # units of map/app UNITS DD -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Sun Mar 22 13:13:59 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 22 Mar 2009 15:13:59 -0500 Subject: [mapserver-users] advantages of having the map file header extent the actual bounding box instead of EXTENT -180 -90 180 90 # World In-Reply-To: References: Message-ID: <49C69C07.7010902@swoodbridge.com> John, I believe that the EXTENT in the MAP object is used as the default extents if non is explicitly or implicitly defined by other parameters. For example if you use: http://server/cgi-bin/mapserv?map=/path/to/my.map&mode=map Then you would get the EXTENTs and the SIZE for the image corrected for aspect ratio mis-matches. Similarly, shp2img -m /path/to/my.map -o junk.png would like-wise generate the same image. -Steve John Mitchell wrote: > Hi, > > What are the advantages or disadvantages of having the map file header > extent the actual bounding box of the raster data that is displayed > instead of the world wide extent > (i.e. -180 -90 180 90 ). I have listed the top of a map file below as an > example with the world wide extent. > > Thanks, > > John > > MAP > > # all temp files get prefixed with this string > NAME All_Raster_Layers_ignore > > # always returns a map > STATUS ON > > # image format options > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE RGB > EXTENSION "png" > END > > # projection of the INTERFACE that this mapfile supports > PROJECTION > "init=epsg:4326" > END > > # minx miny maxx maxy > EXTENT -180 -90 180 90 # World > > # units of map/app > UNITS DD > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From enri at 163.com Sun Mar 22 18:45:34 2009 From: enri at 163.com (enri) Date: Mon, 23 Mar 2009 09:45:34 +0800 Subject: [mapserver-users] Request for Comments about MSCompanion, the mapfile editor Message-ID: <200903230945272022762@163.com> Hi, guys, I am trying to fix bugs of the latest version and release the version 1.0 ASAP, If you use MSCompanion(http://code.google.com/p/mscompanion/) to edit mapfile, would you please give me some comments about this tool, or tell me bugs you find, or request for new features? So I could make it better and plan the future versions as you wish. Through my work, I wish the learning difficulty of MapServer could be much less, and more and more users of MapServer find it's easy to use MapServer. So that we can enlarge the community of MapServer and MapServer can benifit more users. Thanks. Best regards, Enri From phyu108 at gmail.com Sun Mar 22 21:42:53 2009 From: phyu108 at gmail.com (Pwint Phyu Aung) Date: Mon, 23 Mar 2009 11:42:53 +0700 Subject: [mapserver-users] mapserver install on solaris Message-ID: <446aa160903222142j5af6ab5dh9d3e92a25f6e1e4c@mail.gmail.com> Hi there! I'm installing Map server version 5.0.x in my Unix (solaris Intel) server. I installed apache built-in and mysql and php 4.4.7 Then download and install map server by compiling: >./configure --with-gd=/usr/local --with-freetype=/usr/local --with-zlib=/usr/local --with-png=/usr/local --with-jpeg=/usr/local --with-tiff=/usr/local --enable-perlv-ld-detect --with-proj --with-ogr=/usr/local --with-tiff=/usr/local --with-libiconv=/usr --with-xml2-config=/usr/bin/xml2-config --with-php=/usr/local/include/php --with-gdal=/usr/local/bin/gdal-config and >make and then, to load the php_mapscript.so, copy that file into my web folder cp mapscript/php3/php_mapscript.so /webfolder and runt he script to test. But the map script information is not showing in php info file. How to fix the problem? Please help me. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aditi.kolstudygroup at gmail.com Mon Mar 23 00:51:31 2009 From: aditi.kolstudygroup at gmail.com (aditigroup project) Date: Mon, 23 Mar 2009 13:21:31 +0530 Subject: [mapserver-users] (no subject) Message-ID: How to draw map on user request using database?We are using PostgreSQL database & PHP language. From Tim.Nolte at ipcswirelessinc.com Mon Mar 23 05:16:11 2009 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Mon, 23 Mar 2009 08:16:11 -0400 Subject: [mapserver-users] mapserver install on solaris In-Reply-To: <446aa160903222142j5af6ab5dh9d3e92a25f6e1e4c@mail.gmail.com> References: <446aa160903222142j5af6ab5dh9d3e92a25f6e1e4c@mail.gmail.com> Message-ID: In general you don't copy your php extension to your web root. You need to copy it to your PHP extensions directory. You'll find what this is set to in your php.ini file. When you try to dynamically load the module it's looking to load it from the php default extensions path and not the web root path. In my case I actually added right to my php.ini to have it load the extension. - Tim ---- Timothy J Nolte - tnolte at ilpcs.com Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Pwint Phyu Aung Sent: Monday, March 23, 2009 12:43 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] mapserver install on solaris Hi there! I'm installing Map server version 5.0.x in my Unix (solaris Intel) server. I installed apache built-in and mysql and php 4.4.7 Then download and install map server by compiling: >./configure --with-gd=/usr/local --with-freetype=/usr/local --with-zlib=/usr/local --with-png=/usr/local --with-jpeg=/usr/local --with-tiff=/usr/local --enable-perlv-ld-detect --with-proj --with-ogr=/usr/local --with-tiff=/usr/local --with-libiconv=/usr --with-xml2-config=/usr/bin/xml2-config --with-php=/usr/local/include/php --with-gdal=/usr/local/bin/gdal-config and >make and then, to load the php_mapscript.so, copy that file into my web folder cp mapscript/php3/php_mapscript.so /webfolder and runt he script to test. But the map script information is not showing in php info file. How to fix the problem? Please help me. From atul.dravid at iworktech.com Mon Mar 23 07:40:48 2009 From: atul.dravid at iworktech.com (Atul Dravid) Date: Mon, 23 Mar 2009 20:10:48 +0530 Subject: [mapserver-users] (no subject) In-Reply-To: References: Message-ID: <5ba141650903230740n59140ceepc84301a64e44da45@mail.gmail.com> Please use the documentation provided along with Mapserver... There are plenty of examples to query and draw the map... Basically you need to provide queries in .map file... Thanks, --AD On Mon, Mar 23, 2009 at 1:21 PM, aditigroup project < aditi.kolstudygroup at gmail.com> wrote: > How to draw map on user request using database?We are using PostgreSQL > database & PHP language. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon Mar 23 07:46:11 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 23 Mar 2009 10:46:11 -0400 Subject: [mapserver-users] (no subject) In-Reply-To: <5ba141650903230740n59140ceepc84301a64e44da45@mail.gmail.com> References: <5ba141650903230740n59140ceepc84301a64e44da45@mail.gmail.com> Message-ID: <49C7A0B3.4020703@gatewaygeomatics.com> Atul Dravid wrote: > Please use the documentation provided along with Mapserver... There are > plenty of examples to query and draw the map... Basically you need to > provide queries in .map file... > > Thanks, > > --AD > > On Mon, Mar 23, 2009 at 1:21 PM, aditigroup project > > > wrote: > > How to draw map on user request using database?We are using PostgreSQL > database & PHP language. You might also check the PHPMapScript wiki pages for a code snippet to get you started: http://trac.osgeo.org/mapserver/wiki/PHPMapScript You can also add your code there to help others in your situation down the road. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From valemunoz at gmail.com Mon Mar 23 09:15:56 2009 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Mon, 23 Mar 2009 12:15:56 -0400 Subject: [mapserver-users] Label Question Message-ID: <4b56aefe0903230915x4b1fbfa9lfd27d1ef94c621a8@mail.gmail.com> Hi exist some thing like "like clause of mysql "%String%"" in mapserver?. I need to filter labels RG -------------- next part -------------- An HTML attachment was scrubbed... URL: From kmanoj-pg7 at iiitmk.ac.in Mon Mar 23 10:15:56 2009 From: kmanoj-pg7 at iiitmk.ac.in (kapilmanoj) Date: Mon, 23 Mar 2009 10:15:56 -0700 (PDT) Subject: [mapserver-users] php-mapscript - displaying blank page Message-ID: <1237828556278-2522300.post@n2.nabble.com> Dear users,

I am using FGS-mapserver -5.2.1 0n fedora 9. Now i am trying to check the examples of the php-mapscript given in the mapserver site. so as a part of that when i call the browser

http://localhost:8080/mapfiles/sampletest/htdocs/kerala.php


i got the blank page with a small undisplayed image kind of thing at the left top corner of the page, first i thought it would be a some connection problem, i refreshed the page many times but it doesn't work.

i think its not a big error but, my naked eye couldn't find that out. herewith i am attaching my map file and the screenshot of the page.

somebody please help me out..

help will be appreciated..

many thanks,
kapilmanojtest.mapScreenshot.pngkerala.php -- View this message in context: http://n2.nabble.com/php-mapscript---displaying-blank-page-tp2522300p2522300.html Sent from the Mapserver - User mailing list archive at Nabble.com. From David.Fawcett at state.mn.us Mon Mar 23 13:10:31 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Mon, 23 Mar 2009 15:10:31 -0500 Subject: [mapserver-users] nquery against postgis layer Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA2EF@s-sp22.pca.state.mn.us> I am banging my head against an nquery request to a postgis based layer. This is on MS 5.2.1 on OSX using William's binaries. I can draw the layer in mode=map, but when I use mode=nquery, the query doesn't return any results and my templates aren't populated properly. I am not passing a point or extent in the query request URL. I have a similar nquery request against a shapefile based layer and it works fine. Can anyone think of anything PostGIS specific that might cause this? I did a quick search of bug tickets in Trac and the listserv and didn't see anything. David. From randre at gmail.com Mon Mar 23 13:18:16 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Mon, 23 Mar 2009 13:18:16 -0700 Subject: [mapserver-users] MapServer using GDAL_WMS to access TileCache layer Message-ID: <9c2015090903231318s2b770064rb4bdf5411baa33a5@mail.gmail.com> Hi All, I've created a TileCache layer that's being used to overlay tiles in a Google Maps page. That's working just fine, but I would also like to access this layer via a MapServer WMS call as well. I have tried to setup a GDAL_WMS file that can read the TileCache layer, but am getting "IReadBlock failed" errors when I try to run gdal_translate on it, or try to view the layer in a MapServer map. Below are the pertinent details of my configuration. TileCache layer: ----------------------- [20m_global] type=MapServerLayer mapfile=/var/www/mapfiles/20m_global/20m_global.map #url=http://10.10.40.152/cgi-bin/mapserv?map=/var/www/mapfiles/20m_global/20m_global.map metaTile=true metaSize=2,2 metaBuffer=0,500 layers=imagery spherical_mercator=true srs=EPSG:900913 GDAL_WMS xml file: ------------------------------ http://10.10.10.143/cgi-bin/tilecache-2.04/tilecache.cgi/1.0.0/v2_80m_global/{Z}/{X}/{Y}.png -20037508.34 20037508.34 20037508.34 -20037508.34 11 1 1 top EPSG:900913 256 256 3 gdalinfo output: --------------------- $ gdalinfo tilecache.xml Driver: WMS/OGC Web Map Service Files: tilecache.xml Size is 524288, 524288 Coordinate System is: PROJCS["Google Maps Global Mercator", GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0, AUTHORITY["EPSG","8901"]], UNIT["degree",0.01745329251994328, AUTHORITY["EPSG","9122"]], AUTHORITY["EPSG","4326"]], PROJECTION["Mercator_2SP"], PARAMETER["standard_parallel_1",0], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",0], PARAMETER["false_easting",0], PARAMETER["false_northing",0], UNIT["Meter",1], EXTENSION["PROJ4","+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"], AUTHORITY["EPSG","900913"]] Origin = (-20037508.339999999850988,20037508.339999999850988) Pixel Size = (76.437028274536132,-76.437028274536132) Corner Coordinates: Upper Left (-20037508.340,20037508.340) (180d 0'0.00"W, 85d 3'4.06"N) Lower Left (-20037508.340,-20037508.340) (180d 0'0.00"W, 85d 3'4.06"S) Upper Right (20037508.340,20037508.340) (180d 0'0.00"E, 85d 3'4.06"N) Lower Right (20037508.340,-20037508.340) (180d 0'0.00"E, 85d 3'4.06"S) Center ( 0.0000000, 0.0000000) ( 0d 0'0.01"E, 0d 0'0.00"S) Band 1 Block=256x256 Type=Byte, ColorInterp=Undefined Overviews: 262144x262144, 131072x131072, 65536x65536, 32768x32768, 16384x16384, 8192x8192, 4096x4096, 2048x2048, 1024x1024, 512x512, 256x256 Band 2 Block=256x256 Type=Byte, ColorInterp=Undefined Overviews: 262144x262144, 131072x131072, 65536x65536, 32768x32768, 16384x16384, 8192x8192, 4096x4096, 2048x2048, 1024x1024, 512x512, 256x256 Band 3 Block=256x256 Type=Byte, ColorInterp=Undefined Overviews: 262144x262144, 131072x131072, 65536x65536, 32768x32768, 16384x16384, 8192x8192, 4096x4096, 2048x2048, 1024x1024, 512x512, 256x256 gdal_translate error: ---------------------------- $ gdal_translate -outsize 1% 1% tilecache.xml test.tif Input file size is 524288, 524288 0ERROR 4: `/vsimem/wms/0x8503470/wmsresult.dat' not recognised as a supported file format. ERROR 1: GDALWMS: Unable to open downloaded block. ERROR 1: GDALWMS: ReadBlockFromFile failed. ERROR 1: IReadBlock failed at X offset 0, Y offset 0 ERROR 4: `/vsimem/wms/0x809dc08/wmsresult.dat' not recognised as a supported file format. ERROR 1: GDALWMS: Unable to open downloaded block. ERROR 1: GDALWMS: ReadBlockFromFile failed. ERROR 1: IReadBlock failed at X offset 0, Y offset 0 MapServer error: ----------------------- msDrawMap(): Image handling error. Failed to draw layer named 'imagery'. IReadBlock failed at X offset 1442, Y offset 607: Unable to access file. GDALRasterIO() failed: drawGDAL() If you see anything that jumps out at you as being incorrect, I'd love to hear from you. Thanks, Roger From even.rouault at mines-paris.org Mon Mar 23 13:35:19 2009 From: even.rouault at mines-paris.org (Even Rouault) Date: Mon, 23 Mar 2009 21:35:19 +0100 Subject: [mapserver-users] Re: [gdal-dev] MapServer using GDAL_WMS to access TileCache layer In-Reply-To: <9c2015090903231318s2b770064rb4bdf5411baa33a5@mail.gmail.com> References: <9c2015090903231318s2b770064rb4bdf5411baa33a5@mail.gmail.com> Message-ID: <200903232135.20537.even.rouault@mines-paris.org> Roger, your GDAL_WMS xml file is not correct. The format of the URL you use is not consistant with the one expected by the "TileService" service. You've used the example of "TMS" service (which really new in GDAL 1.7.0dev SVN only) but the correct format would be exactly what you have commented out (${x} in lowercase, and not {X}). Best regards, Even Le Monday 23 March 2009 21:18:16 Roger Andr?, vous avez ?crit?: > Hi All, > > I've created a TileCache layer that's being used to overlay tiles in a > Google Maps page. That's working just fine, but I would also like to > access this layer via a MapServer WMS call as well. I have tried to > setup a GDAL_WMS file that can read the TileCache layer, but am > getting "IReadBlock failed" errors when I try to run gdal_translate on > it, or try to view the layer in a MapServer map. > > Below are the pertinent details of my configuration. > > TileCache layer: > ----------------------- > [20m_global] > type=MapServerLayer > mapfile=/var/www/mapfiles/20m_global/20m_global.map > #url=http://10.10.40.152/cgi-bin/mapserv?map=/var/www/mapfiles/20m_global/2 >0m_global.map metaTile=true > metaSize=2,2 > metaBuffer=0,500 > layers=imagery > spherical_mercator=true > srs=EPSG:900913 > > GDAL_WMS xml file: > ------------------------------ > > > > http://10.10.10.143/cgi-bin/tilecache-2.04/tilecache.cgi/1.0.0/v >2_80m_global/{Z}/{X}/{Y}.png > > -20037508.34 > 20037508.34 > 20037508.34 > -20037508.34 > 11 > 1 > 1 > top > > EPSG:900913 > 256 > 256 > 3 > > > > gdalinfo output: > --------------------- > $ gdalinfo tilecache.xml > Driver: WMS/OGC Web Map Service > Files: tilecache.xml > Size is 524288, 524288 > Coordinate System is: > PROJCS["Google Maps Global Mercator", > GEOGCS["WGS 84", > DATUM["WGS_1984", > SPHEROID["WGS 84",6378137,298.257223563, > AUTHORITY["EPSG","7030"]], > AUTHORITY["EPSG","6326"]], > PRIMEM["Greenwich",0, > AUTHORITY["EPSG","8901"]], > UNIT["degree",0.01745329251994328, > AUTHORITY["EPSG","9122"]], > AUTHORITY["EPSG","4326"]], > PROJECTION["Mercator_2SP"], > PARAMETER["standard_parallel_1",0], > PARAMETER["latitude_of_origin",0], > PARAMETER["central_meridian",0], > PARAMETER["false_easting",0], > PARAMETER["false_northing",0], > UNIT["Meter",1], > EXTENSION["PROJ4","+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"], > AUTHORITY["EPSG","900913"]] > Origin = (-20037508.339999999850988,20037508.339999999850988) > Pixel Size = (76.437028274536132,-76.437028274536132) > Corner Coordinates: > Upper Left (-20037508.340,20037508.340) (180d 0'0.00"W, 85d 3'4.06"N) > Lower Left (-20037508.340,-20037508.340) (180d 0'0.00"W, 85d 3'4.06"S) > Upper Right (20037508.340,20037508.340) (180d 0'0.00"E, 85d 3'4.06"N) > Lower Right (20037508.340,-20037508.340) (180d 0'0.00"E, 85d 3'4.06"S) > Center ( 0.0000000, 0.0000000) ( 0d 0'0.01"E, 0d 0'0.00"S) > Band 1 Block=256x256 Type=Byte, ColorInterp=Undefined > Overviews: 262144x262144, 131072x131072, 65536x65536, 32768x32768, > 16384x16384, 8192x8192, 4096x4096, 2048x2048, 1024x1024, 512x512, > 256x256 > Band 2 Block=256x256 Type=Byte, ColorInterp=Undefined > Overviews: 262144x262144, 131072x131072, 65536x65536, 32768x32768, > 16384x16384, 8192x8192, 4096x4096, 2048x2048, 1024x1024, 512x512, > 256x256 > Band 3 Block=256x256 Type=Byte, ColorInterp=Undefined > Overviews: 262144x262144, 131072x131072, 65536x65536, 32768x32768, > 16384x16384, 8192x8192, 4096x4096, 2048x2048, 1024x1024, 512x512, > 256x256 > > gdal_translate error: > ---------------------------- > $ gdal_translate -outsize 1% 1% tilecache.xml test.tif > Input file size is 524288, 524288 > 0ERROR 4: `/vsimem/wms/0x8503470/wmsresult.dat' not recognised as a > supported file format. > > ERROR 1: GDALWMS: Unable to open downloaded block. > ERROR 1: GDALWMS: ReadBlockFromFile failed. > ERROR 1: IReadBlock failed at X offset 0, Y offset 0 > ERROR 4: `/vsimem/wms/0x809dc08/wmsresult.dat' not recognised as a > supported file format. > > ERROR 1: GDALWMS: Unable to open downloaded block. > ERROR 1: GDALWMS: ReadBlockFromFile failed. > ERROR 1: IReadBlock failed at X offset 0, Y offset 0 > > MapServer error: > ----------------------- > msDrawMap(): Image handling error. Failed to draw layer named > 'imagery'. IReadBlock failed at X offset 1442, Y offset 607: Unable to > access file. GDALRasterIO() failed: drawGDAL() > > If you see anything that jumps out at you as being incorrect, I'd love > to hear from you. > > Thanks, > > Roger > _______________________________________________ > gdal-dev mailing list > gdal-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/gdal-dev From randre at gmail.com Mon Mar 23 13:48:08 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Mon, 23 Mar 2009 13:48:08 -0700 Subject: [mapserver-users] Re: [gdal-dev] MapServer using GDAL_WMS to access TileCache layer In-Reply-To: <200903232135.20537.even.rouault@mines-paris.org> References: <9c2015090903231318s2b770064rb4bdf5411baa33a5@mail.gmail.com> <200903232135.20537.even.rouault@mines-paris.org> Message-ID: <9c2015090903231348s7ea7d469l139aaf4faed80e70@mail.gmail.com> Hi Even, Thanks for the info. I have updated my GDAL_WMS file to now show: http://10.10.10.143/cgi-bin/tilecache-2.04/tilecache.cgi/1.0.0/v2_80m_global/${z}/${x}/${y}.png Still doesn't work though. gdal_translate -outsize 1% 1% tilecache.xml test.tif Input file size is 524288, 524288 0ERROR 4: `/vsimem/wms/0x8503480/wmsresult.dat' not recognised as a supported file format. ERROR 1: GDALWMS: Unable to open downloaded block. ERROR 1: GDALWMS: ReadBlockFromFile failed. ERROR 1: IReadBlock failed at X offset 0, Y offset 0 ERROR 4: `/vsimem/wms/0x809dc28/wmsresult.dat' not recognised as a supported file format. ERROR 1: GDALWMS: Unable to open downloaded block. ERROR 1: GDALWMS: ReadBlockFromFile failed. ERROR 1: IReadBlock failed at X offset 0, Y offset 0 On Mon, Mar 23, 2009 at 1:35 PM, Even Rouault wrote: > Roger, > > your GDAL_WMS xml file is not correct. The format of the URL you use is not > consistant with the one expected by the "TileService" service. You've used > the example of "TMS" service (which really new in GDAL 1.7.0dev SVN only) but > the correct format would be exactly what you have commented out (${x} in > lowercase, and not {X}). > > Best regards, > Even > > Le Monday 23 March 2009 21:18:16 Roger Andr?, vous avez ?crit?: >> Hi All, >> >> I've created a TileCache layer that's being used to overlay tiles in a >> Google Maps page. ?That's working just fine, but I would also like to >> access this layer via a MapServer WMS call as well. ?I have tried to >> setup a GDAL_WMS file that can read the TileCache layer, but am >> getting "IReadBlock failed" errors when I try to run gdal_translate on >> it, or try to view the layer in a MapServer map. >> >> Below are the pertinent details of my configuration. >> >> TileCache layer: >> ----------------------- >> [20m_global] >> type=MapServerLayer >> mapfile=/var/www/mapfiles/20m_global/20m_global.map >> #url=http://10.10.40.152/cgi-bin/mapserv?map=/var/www/mapfiles/20m_global/2 >>0m_global.map metaTile=true >> metaSize=2,2 >> metaBuffer=0,500 >> layers=imagery >> spherical_mercator=true >> srs=EPSG:900913 >> >> GDAL_WMS xml file: >> ------------------------------ >> >> >> >> http://10.10.10.143/cgi-bin/tilecache-2.04/tilecache.cgi/1.0.0/v >>2_80m_global/{Z}/{X}/{Y}.png >> >> -20037508.34 >> 20037508.34 >> 20037508.34 >> -20037508.34 >> 11 >> 1 >> 1 >> top >> >> EPSG:900913 >> 256 >> 256 >> 3 >> >> >> >> gdalinfo output: >> --------------------- >> $ gdalinfo tilecache.xml >> Driver: WMS/OGC Web Map Service >> Files: tilecache.xml >> Size is 524288, 524288 >> Coordinate System is: >> PROJCS["Google Maps Global Mercator", >> ? ? GEOGCS["WGS 84", >> ? ? ? ? DATUM["WGS_1984", >> ? ? ? ? ? ? SPHEROID["WGS 84",6378137,298.257223563, >> ? ? ? ? ? ? ? ? AUTHORITY["EPSG","7030"]], >> ? ? ? ? ? ? AUTHORITY["EPSG","6326"]], >> ? ? ? ? PRIMEM["Greenwich",0, >> ? ? ? ? ? ? AUTHORITY["EPSG","8901"]], >> ? ? ? ? UNIT["degree",0.01745329251994328, >> ? ? ? ? ? ? AUTHORITY["EPSG","9122"]], >> ? ? ? ? AUTHORITY["EPSG","4326"]], >> ? ? PROJECTION["Mercator_2SP"], >> ? ? PARAMETER["standard_parallel_1",0], >> ? ? PARAMETER["latitude_of_origin",0], >> ? ? PARAMETER["central_meridian",0], >> ? ? PARAMETER["false_easting",0], >> ? ? PARAMETER["false_northing",0], >> ? ? UNIT["Meter",1], >> ? ? EXTENSION["PROJ4","+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"], >> ? ? AUTHORITY["EPSG","900913"]] >> Origin = (-20037508.339999999850988,20037508.339999999850988) >> Pixel Size = (76.437028274536132,-76.437028274536132) >> Corner Coordinates: >> Upper Left ?(-20037508.340,20037508.340) (180d 0'0.00"W, 85d 3'4.06"N) >> Lower Left ?(-20037508.340,-20037508.340) (180d 0'0.00"W, 85d 3'4.06"S) >> Upper Right (20037508.340,20037508.340) (180d 0'0.00"E, 85d 3'4.06"N) >> Lower Right (20037508.340,-20037508.340) (180d 0'0.00"E, 85d 3'4.06"S) >> Center ? ? ?( ? 0.0000000, ? 0.0000000) ( ?0d 0'0.01"E, ?0d 0'0.00"S) >> Band 1 Block=256x256 Type=Byte, ColorInterp=Undefined >> ? Overviews: 262144x262144, 131072x131072, 65536x65536, 32768x32768, >> 16384x16384, 8192x8192, 4096x4096, 2048x2048, 1024x1024, 512x512, >> 256x256 >> Band 2 Block=256x256 Type=Byte, ColorInterp=Undefined >> ? Overviews: 262144x262144, 131072x131072, 65536x65536, 32768x32768, >> 16384x16384, 8192x8192, 4096x4096, 2048x2048, 1024x1024, 512x512, >> 256x256 >> Band 3 Block=256x256 Type=Byte, ColorInterp=Undefined >> ? Overviews: 262144x262144, 131072x131072, 65536x65536, 32768x32768, >> 16384x16384, 8192x8192, 4096x4096, 2048x2048, 1024x1024, 512x512, >> 256x256 >> >> gdal_translate error: >> ---------------------------- >> $ gdal_translate -outsize 1% 1% tilecache.xml test.tif >> Input file size is 524288, 524288 >> 0ERROR 4: `/vsimem/wms/0x8503470/wmsresult.dat' not recognised as a >> supported file format. >> >> ERROR 1: GDALWMS: Unable to open downloaded block. >> ERROR 1: GDALWMS: ReadBlockFromFile failed. >> ERROR 1: IReadBlock failed at X offset 0, Y offset 0 >> ERROR 4: `/vsimem/wms/0x809dc08/wmsresult.dat' not recognised as a >> supported file format. >> >> ERROR 1: GDALWMS: Unable to open downloaded block. >> ERROR 1: GDALWMS: ReadBlockFromFile failed. >> ERROR 1: IReadBlock failed at X offset 0, Y offset 0 >> >> MapServer error: >> ----------------------- >> msDrawMap(): Image handling error. Failed to draw layer named >> 'imagery'. IReadBlock failed at X offset 1442, Y offset 607: Unable to >> access file. GDALRasterIO() failed: drawGDAL() >> >> If you see anything that jumps out at you as being incorrect, I'd love >> to hear from you. >> >> Thanks, >> >> Roger >> _______________________________________________ >> gdal-dev mailing list >> gdal-dev at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/gdal-dev > > > From David.Fawcett at state.mn.us Mon Mar 23 13:58:39 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Mon, 23 Mar 2009 15:58:39 -0500 Subject: [mapserver-users] web development project with mapserver- questions In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA2F2@s-sp22.pca.state.mn.us> I sent a simple example to Pablo. When I get a chance, I will put the code up on the MapServer site. David. -----Original Message----- From: Pablo Romero [mailto:romero619 at hotmail.com] Sent: Friday, March 20, 2009 12:52 PM To: David.Fawcett at state.mn.us; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] web development project with mapserver- questions David, did you manage to find the example that you mentioned previously? any help would be greatly appreciated. Thanks again, P.Romero ---------------------------------------- > Subject: RE: [mapserver-users] web development project with mapserver- > questions > Date: Thu, 19 Mar 2009 15:27:44 -0500 > From: David.Fawcett at state.mn.us > To: romero619 at hotmail.com; mapserver-users at lists.osgeo.org > > I don't have an example handy, but here is one way to do it > conceptually. > > You have a script that goes out and gathers the current wind data and > writes it to a MySQL Database or a shapefile. > > Using CGI MapServer, your map file uses the database table or shape > file as the data source for your wind stations layer. > > With MapServer version>=5.2, you can base the rotation of the symbol > on the value in a column of your data source. See 'attribute binding' > in the documentation. > > You use MapServer to output an image map using a query template. The > image map can contain data from different columns in your data source. > > I know that I put together an example on this somewhat recently. I > will dig around. > > David. > > -----Original Message----- > From: Pablo Romero [mailto:romero619 at hotmail.com] > Sent: Thursday, March 19, 2009 3:08 PM > To: David.Fawcett at state.mn.us; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] web development project with mapserver- > questions > > > > David > Thanks for the response. > > Divs arent a requirement; I just mentioned them because the example > site that I posted was using divs, so I suggested them more as a point > of reference. > > Id be willing to use whatever works, but Id obviously like to avoid > using any hefty solution that could be considered as being 'overkill'. > something simple & lightweight is prefered. > > Im not very experienced with mapserver, but would the use of symbols > to add the vector drawings be a feasible solution? can symbols show up > on the image map as clickable regions with mouse-over text? > > i.e., something like: > 1) use my backend code (php/perl) to generate the markers & select the > appropriate symbol image file & "alt" text > 2) pass this info to mapserver prior to drawing the map, & include the > symbols into the map image. > 3) create the image map with symbols > > does this method sound reasonable/right? > > IF so, how would I go about this (creating these custom symbols)? Is > there an existing tutorial that might help me accomplish this? > > Thanks again, > P.Romero > > > > ---------------------------------------- >> Subject: RE: [mapserver-users] web development project with >> mapserver- > >> questions >> Date: Thu, 19 Mar 2009 14:35:20 -0500 >> From: David.Fawcett at state.mn.us >> To: romero619 at hotmail.com; mapserver-users at lists.osgeo.org >> >> Do you really need to create divs? >> >> You could use MapServer to put the marker on the map in the correct >> location (as part of the map image) and have MapServer output it as >> an > >> imagemap if all that you need is mouse-over text. >> >> http://mapserver.org/output/imagemaps.html >> >> If you want to do anything much fancier with putting vector markers >> on > >> a map, you might look at something like OpenLayers. >> http://www.openlayers.org/ Probably overkill for what you need, but >> worth a look. >> >> David. >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Pablo >> Romero >> Sent: Thursday, March 19, 2009 2:27 PM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] web development project with mapserver- >> questions >> >> >> >> Hi, >> I need help figuring out a method to do the following: >> >> 1) use mapserver to create a basic, static image of a given region, >> say,for example the following area: lat1=0.00 lat2=40.00 lng1=-120.00 >> lng2=-40.00 (in decimal degrees) >> >> 2) use css divs or javascript (or both) to create clickable, >> hyperlink > >> "markers" over the map image at specific lat/lon points (similiar to >> google map markers, except over a static map image). >> >> The problem Im having is figuring out a way to create the "marker" >> divs using absolute (pixel) coordinates over the map image. My marker >> locations are in lat/lon, and I would need to translate them to the >> map's image coordinates. I thought about just scaling the points >> based > >> on the maps's bounds and the map image size, but this would only >> provide "linear scaling" which might be fairly inaccurate, and I also >> want a method that will work with most map projections. Does this >> make > >> sense? >> >> Does mapserver provide any automated means of creating such >> "markers"? > >> Or, is there an existing method of translating >> >> Perhaps this question might not be very mapserver-related, but I was >> hoping someone might have experience with this type of setup. >> >> Here's an example of what Im basically trying to emulate: >> >> http://magicseaweed.com/METARStationHome.php?region=9 >> >> I dont know if this map image was created with mapserver, but the >> general concept stil applies to mapserver: generate a map projection >> image, and place geo-referenced objects over the map image... >> >> Please help, >> Thanks, >> P.Romero >> _________________________________________________________________ >> Windows Live(tm): Life without walls. >> http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1a_explore_032 >> 0 >> 09 >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > _________________________________________________________________ > Hotmail(r) is up to 70% faster. Now good news travels really fast. > http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_70faster_03 > 20 > 09 _________________________________________________________________ Windows Live(tm) SkyDrive: Get 25 GB of free online storage. http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_skydrive_032009 From Bob.Bistrais at maine.gov Mon Mar 23 14:41:02 2009 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Mon, 23 Mar 2009 17:41:02 -0400 Subject: [mapserver-users] Projection object parameters for UTM to lat-long Message-ID: <4EFF8BB964547748A07CA32961810C0412C48522@SOM-TEAQASMAIL1.som.w2k.state.me.us> I am trying to project an object from UTM to lat-long. I cannot get the projection to work, and I suspect it's the parameters for the UTM projection object. I am trying to project from UTM Zone 19N, NAD 1983 to lat-long. Here is my code: $projInObj = ms_newprojectionobj("proj=utm,ellps-GRS80,datum=NAD83,zone=19,units=m,no rth,no_defs"); $projOutObj = ms_newprojectionobj("proj=latlong"); $poPoint = ms_newpointobj(); $poPoint->setXY($xmin, $ymin); echo "

Coords: " . $poPoint->x . ",".$poPoint->y; $poPoint = $poPoint->project($projInObj, $projOutObj); echo "

x = " . $poPoint->x; echo "

y = " . $poPoint->y; $poPoint->free(); I can see the output using the echo lines. The coordinates going into the point show up and are correct, but there are no x/y values after doing the project. Can anyone see what I'm doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ag at ads.aero Mon Mar 23 15:46:53 2009 From: ag at ads.aero (adsaero) Date: Mon, 23 Mar 2009 15:46:53 -0700 (PDT) Subject: [mapserver-users] Set RASTER layer's black background to transparent Message-ID: <1237848413799-2523838.post@n2.nabble.com> Hi!  I've been searching for a while and can't seem to find an easy answer;  I have a .PNG image that I use as a raster layer to a map.  The .PNG has a black background, and I'd like the black background to actually be transparent on the map, as it sits on top of other layers.

I don't have control over the image generation, so I can't set the background to transparent at build time.

Anyone have any suggestions as to how I can accomplish this?

-- View this message in context: http://n2.nabble.com/Set-RASTER-layer%27s-black-background-to-transparent-tp2523838p2523838.html Sent from the Mapserver - User mailing list archive at Nabble.com. From manojkapil06 at gmail.com Mon Mar 23 16:53:10 2009 From: manojkapil06 at gmail.com (zizu) Date: Mon, 23 Mar 2009 16:53:10 -0700 (PDT) Subject: [mapserver-users] gmap demo - map is not displaying Message-ID: <1237852390734-2524064.post@n2.nabble.com> hello users...

I am a newbie  to mapserver. i am trying to get the gamp demo to run in my
machine fedora 9. i have installed FGS- mapserver 5.2.1 a Stand alone environment.
I have done all the steps given in the Gmap demo Installation file.
i have added the AddTypes in the httpd.cong. Perhaps i have made the edits
in the php.ini file. now when i call  the

http://localhost/gmap/gmap75.phtml

i stunned to see everything is projecting except the map is not rendering.
at the beginning i thought it might be a problem of the java mode is enabled
then i tried to disabled that but i failed it was also not working....  Then i looked into the httpd error log file ...
i got this following error............

[Tue Mar 24 05:13:02 2009] [error] [client 127.0.0.1] File does not exist: /home/kapil/FGS-MAPSERVER/tmp/ms_tmp/49c81e86_ba0_ffffffff.gif, referer: http://localhost:8080/gmap-ms46/htdocs/gmap75.phtml?drainage=Y&drain_fn=Y&bathymetry=Y&popplace=Y&prov_bound=Y&fedlimit=Y&land_fn=Y&ViewRegion=Quick+View&minx=-2601225.031773&miny=-712631.000000&maxx=3474025.031773&maxy=3840000.000000&imagewidth=400&imageheight=300&CMD=&INPUT_TYPE=&INPUT_COORD=&KEYMAPXSIZE=100&KEYMAPYSIZE=75&MapSize=400%2C300&JavaOff.x=14&JavaOff.y=21&PREVIOUS_MODE=0
[Tue Mar 24 05:13:02 2009] [error] [client 127.0.0.1] File does not exist: /home/kapil/FGS-MAPSERVER/tmp/ms_tmp/49c81e86_ba0_0.gif, referer: http://localhost:8080/gmap-ms46/htdocs/gmap75.phtml?drainage=Y&drain_fn=Y&bathymetry=Y&popplace=Y&prov_bound=Y&fedlimit=Y&land_fn=Y&ViewRegion=Quick+View&minx=-2601225.031773&miny=-712631.000000&maxx=3474025.031773&maxy=3840000.000000&imagewidth=400&imageheight=300&CMD=&INPUT_TYPE=&INPUT_COORD=&KEYMAPXSIZE=100&KEYMAPYSIZE=75&MapSize=400%2C300&JavaOff.x=14&JavaOff.y=21&PREVIOUS_MODE=0
[Tue Mar 24 05:13:02 2009] [error] [client 127.0.0.1] File does not exist: /home/kapil/FGS-MAPSERVER/tmp/ms_tmp/49c81e86_ba0_1.png, referer: http://localhost:8080/gmap-ms46/htdocs/gmap75.phtml?drainage=Y&drain_fn=Y&bathymetry=Y&popplace=Y&prov_bound=Y&fedlimit=Y&land_fn=Y&ViewRegion=Quick+View&minx=-2601225.031773&miny=-712631.000000&maxx=3474025.031773&maxy=3840000.000000&imagewidth=400&imageheight=300&CMD=&INPUT_TYPE=&INPUT_COORD=&KEYMAPXSIZE=100&KEYMAPYSIZE=75&MapSize=400%2C300&JavaOff.x=14&JavaOff.y=21&PREVIOUS_MODE=0


Herewith i am attaching the screen shot of the page for your view
 
i am struggling to solve this problem for the past two days......  someone
please help me out.....

any help/tips will be appreciated....

Thanks,
zizu                      

Screenshot-1.png -- View this message in context: http://n2.nabble.com/gmap-demo---map-is-not-displaying-tp2524064p2524064.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pmoen at offroadsoftware.com Mon Mar 23 18:57:39 2009 From: pmoen at offroadsoftware.com (Paul Moen) Date: Mon, 23 Mar 2009 20:57:39 -0500 Subject: [mapserver-users] Include directive and mapscript Message-ID: I have found that the method getLayersIndexByGroup(string groupname) does not find layers that are included from a different file. $llist=$map->getLayersIndexByGroup("Political Boundaries"); $llist does not contain the indexes of any layers that are in the include file. Once, I copied the layer into the mapfile the layer was listed in the array. Is this a bug? Thanks, Paul From Jukka.Rahkonen at mmmtike.fi Mon Mar 23 22:25:49 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 24 Mar 2009 07:25:49 +0200 Subject: [mapserver-users] Set RASTER layer's black background to transparent References: <1237848413799-2523838.post@n2.nabble.com> Message-ID: Hi, You need to set OFFSITE into your raster layer definitions, for example if the background colour is black OFFSITE 0 0 0 -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: adsaero L?hetetty: ti 24.3.2009 0:46 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Set RASTER layer's black background to transparent Hi!  I've been searching for a while and can't seem to find an easy answer;  I have a .PNG image that I use as a raster layer to a map.  The .PNG has a black background, and I'd like the black background to actually be transparent on the map, as it sits on top of other layers.

I don't have control over the image generation, so I can't set the background to transparent at build time.

Anyone have any suggestions as to how I can accomplish this?

-- View this message in context: http://n2.nabble.com/Set-RASTER-layer%27s-black-background-to-transparent-tp2523838p2523838.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 pgiannini at bytewise.it Tue Mar 24 03:12:04 2009 From: pgiannini at bytewise.it (Pietro Giannini) Date: Tue, 24 Mar 2009 11:12:04 +0100 Subject: [mapserver-users] Projection object parameters for UTM to lat-long In-Reply-To: <4EFF8BB964547748A07CA32961810C0412C48522@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C0412C48522@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: <49C8B1F4.4040901@bytewise.it> Bob, maybe error is in first line: "ellps-GRS80" is wrong, "ellps=GRS80" is correct. bye ................pg Bistrais, Bob ha scritto: > > I am trying to project an object from UTM to lat-long. I cannot get > the projection to work, and I suspect it's the parameters for the UTM > projection object. I am trying to project from UTM Zone 19N, NAD 1983 > to lat-long. Here is my code: > > $projInObj = > ms_newprojectionobj("proj=utm,ellps-GRS80,datum=NAD83,zone=19,units=m,north,no_defs"); > > $projOutObj = ms_newprojectionobj("proj=latlong"); > $poPoint = ms_newpointobj(); > $poPoint->setXY($xmin, $ymin); > echo "

Coords: " . $poPoint->x . ",".$poPoint->y; > $poPoint = $poPoint->project($projInObj, $projOutObj); > echo "

x = " . $poPoint->x; > echo "

y = " . $poPoint->y; > $poPoint->free(); > > I can see the output using the echo lines. The coordinates going into > the point show up and are correct, but there are no x/y values after > doing the project. Can anyone see what I'm doing wrong? > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E -------------- next part -------------- An HTML attachment was scrubbed... URL: From pgiannini at bytewise.it Tue Mar 24 03:16:17 2009 From: pgiannini at bytewise.it (Pietro Giannini) Date: Tue, 24 Mar 2009 11:16:17 +0100 Subject: [mapserver-users] Set RASTER layer's black background to transparent In-Reply-To: <1237848413799-2523838.post@n2.nabble.com> References: <1237848413799-2523838.post@n2.nabble.com> Message-ID: <49C8B2F1.3010306@bytewise.it> Try layer OFFSITE [r][g][b] (http://mapserver.org/mapfile/layer.html?highlight=offsite%20raster) bye ..........................pg adsaero ha scritto: > Hi!  I've been searching for a while and can't seem to find an easy answer;  I have a .PNG image that I use as a raster layer to a map.  The .PNG has a black background, and I'd like the black background to actually be transparent on the map, as it sits on top of other layers. >

I don't have control over the image generation, so I can't set the background to transparent at build time. >

Anyone have any suggestions as to how I can accomplish this? >

> -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E From pgiannini at bytewise.it Tue Mar 24 03:26:43 2009 From: pgiannini at bytewise.it (Pietro Giannini) Date: Tue, 24 Mar 2009 11:26:43 +0100 Subject: [mapserver-users] gmap demo - map is not displaying In-Reply-To: <1237852390734-2524064.post@n2.nabble.com> References: <1237852390734-2524064.post@n2.nabble.com> Message-ID: <49C8B563.2070105@bytewise.it> Zizu, I don't know the configration of FGS, but it seems a misconfiguration of the IMAGEPATH and/or IMAGEURL in the .map file. Look in the WEB section of .map file. http://mapserver.org/mapfile/web.html?highlight=IMAGEPATH%20IMAGEURL bye .................pg zizu ha scritto: > hello users... >

I am a newbie  to mapserver. i am trying to get the gamp demo to run in my >
machine fedora 9. i have installed FGS- mapserver 5.2.1 a Stand alone environment. >
I have done all the steps given in the Gmap demo Installation file. >
i have added the AddTypes in the httpd.cong. Perhaps i have made the edits >
in the php.ini file. now when i call  the >

http://localhost/gmap/gmap75.phtml

i stunned to see everything is projecting except the map is not rendering. >
at the beginning i thought it might be a problem of the java mode is enabled >
then i tried to disabled that but i failed it was also not working....  Then i looked into the httpd error log file ... >
i got this following error............ >

[Tue Mar 24 05:13:02 2009] [error] [client 127.0.0.1] File does not exist: /home/kapil/FGS-MAPSERVER/tmp/ms_tmp/49c81e86_ba0_ffffffff.gif, referer: http://localhost:8080/gmap-ms46/htdocs/gmap75.phtml?drainage=Y&drain_fn=Y&bathymetry=Y&popplace=Y&prov_bound=Y&fedlimit=Y&land_fn=Y&ViewRegion=Quick+View&minx=-2601225.031773&miny=-712631.000000&maxx=3474025.031773&maxy=3840000.000000&imagewidth=400&imageheight=300&CMD=&INPUT_TYPE=&INPUT_COORD=&KEYMAPXSIZE=100&KEYMAPYSIZE=75&MapSize=400%2C300&JavaOff.x=14&JavaOff.y=21&PREVIOUS_MODE=0
[Tue Mar 24 05:13:02 2009] [error] [client 127.0.0.1] File does not exist: /home/kapil/FGS-MAPSERVER/tmp/ms_tmp/49c81e86_ba0_0.gif, referer: http://localhost:8080/gmap-ms46/htdocs/gmap75.phtml?drainage=Y&drain_fn=Y&bathymetry=Y&popplace=Y&prov_bound=Y&fedlimit=Y&land_fn=Y&ViewRegion=Quick+View&minx=-2601225.031773&miny=-712631.000000&maxx=3474025.031773&maxy=3840000.000000&imagewidth=400&imageheight=300&CMD=&INPUT_TYPE=&INPUT_COORD=&KEYMAPXSIZE=100&KEYMAPYSIZE=75&MapSize=400%2C300&JavaOff.x=14&JavaOff.y=21&PREVIOUS_MODE=0
[Tue Mar 24 05:13:02 2009] [error] [client 127.0.0.1] File does not exist: /home/kapil/FGS-MAPSERVER/tmp/ms_tmp/49c81e86_ba0_1.png, referer: http://localhost:8080/gmap-ms46/htdocs/gmap75.phtml?drainage=Y&drain_fn=Y&bathymetry=Y&popplace=Y&prov_bound=Y&fedlimit=Y&land_fn=Y&ViewRegion=Quick+View&minx=-2601225.031773&miny=-712631.000000&maxx=3474025.031773&maxy=3840000.000000&imagewidth=400&imageheight=300&CMD=&INPUT_TYPE=&INPUT_COORD=&KEYMAPXSIZE=100&KEYMAPYSIZE=75&MapSize=400%2C300&JavaOff.x=14&JavaOff.y=21&PREVIOUS_MODE=0


Herewith i am attaching the screen shot of the page for your view >
  >
i am struggling to solve this problem for the past two days......  someone >
please help me out..... >

any help/tips will be appreciated.... >

Thanks, >
zizu                       >

Screenshot-1.png > -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E From kmanoj-pg7 at iiitmk.ac.in Mon Mar 23 10:06:25 2009 From: kmanoj-pg7 at iiitmk.ac.in (kmanoj-pg7 kmanoj-pg7) Date: Mon, 23 Mar 2009 22:36:25 +0530 Subject: [mapserver-users] php-mapscript - displaying blank page Message-ID: <9ab9b8cf0903231006y1d751e96g8196e30561793a9f@mail.gmail.com> Dear users, I am using FGS-mapserver -5.2.1 0n fedora 9. Now i am trying to check the examples of the php-mapscript given in the mapserver site. so as a part of that when i call the browser http://localhost:8080/mapfiles/sampletest/htdocs/kerala.php i got the blank page with a small undisplayed image kind of thing at the left top corner of the page, first i thought it would be a some connection problem, i refreshed the page many times but it doesn't work. i think its not a big error but, my naked eye couldn't find that out. herewith i am attaching my map file and the screenshot of the page. somebody please help me out.. help will be appreciated.. many thanks, kapilmanoj -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test.map Type: application/octet-stream Size: 5171 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot.png Type: image/png Size: 76332 bytes Desc: not available URL: From enri at 163.com Mon Mar 23 22:25:20 2009 From: enri at 163.com (enri) Date: Tue, 24 Mar 2009 13:25:20 +0800 Subject: [mapserver-users] Request for Comments about MSCompanion, the mapfile editor References: Message-ID: <200903241325075201803@163.com> Rahkonen Jukka, For your reference, My installation of MS4W is at D:\ms4w, the paths look like this: Wish it helps. Enri. ======= 2009-03-23 23:10:46 you wrote??======= >Hi, > >I installed your utility but I have not yet succeeded to run it correctly. >It may be due to wrong paths to the utilities. I have both MS4W and FWTools installed, and guess-button made a mixture of paths. It would be useful to have a screen capture of the correct paths for the most typical MS4W installation. > >Does this error message tell anything for you? >"2936357.909 is not a valid floating point value" > >That is what I get when I open an existing mapfile with MSCompanion. > >Regards, > >-Jukka Rahkonen- > >> -----Alkuper?inen viesti----- >> L?hett?j? mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta enri >> L?hetetty: 23. maaliskuuta 2009 3:46 >> Vastaanottaja: mapserver-users >> Aihe: [mapserver-users] Request for Comments about >> MSCompanion,the mapfile editor >> >> Hi, guys, >> >> I am trying to fix bugs of the latest version and release >> the version 1.0 ASAP, If you use >> MSCompanion(http://code.google.com/p/mscompanion/) to edit >> mapfile, would you please give me some comments about this >> tool, or tell me bugs you find, or request for new features? >> So I could make it better and plan the future versions as you wish. >> >> Through my work, I wish the learning difficulty of MapServer >> could be much less, and more and more users of MapServer find >> it's easy to use MapServer. So that we can enlarge the >> community of MapServer and MapServer can benifit more users. >> >> Thanks. >> >> Best regards, >> Enri >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> = = = = = = = = = = = = = = = = = = = = -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Catch8.jpg Type: image/jpeg Size: 178858 bytes Desc: not available URL: From yassefa at dmsolutions.ca Tue Mar 24 05:23:04 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 24 Mar 2009 08:23:04 -0400 Subject: [mapserver-users] Include directive and mapscript In-Reply-To: References: Message-ID: <49C8D0A8.9090002@dmsolutions.ca> Paul, I could not reproduce this behavior locally. The fact that a layer comes from an include file or is in a map file should not make any difference since they all end up as part of the map object internally (no distinction where the layer comes from). Not sure what to suggest if your include was done successfully. Maybe doing a map->save and making sure that all expected layers are there. If the map file seems fine and you still have a problem with that function, I am willing to test it if you provide me with the map file. Best Regards, Paul Moen wrote: > I have found that the method getLayersIndexByGroup(string groupname) > does not find layers that are included from a different file. > > $llist=$map->getLayersIndexByGroup("Political Boundaries"); > > $llist does not contain the indexes of any layers that are in the > include file. Once, I copied the layer into the mapfile the layer was > listed in the array. > > Is this a bug? > > Thanks, > > Paul > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From jmckenna at gatewaygeomatics.com Tue Mar 24 05:43:14 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 24 Mar 2009 08:43:14 -0400 Subject: [mapserver-users] gmap demo - map is not displaying In-Reply-To: <1237852390734-2524064.post@n2.nabble.com> References: <1237852390734-2524064.post@n2.nabble.com> Message-ID: <49C8D562.4090303@gatewaygeomatics.com> zizu wrote: > hello users... >

I am a newbie  to mapserver. i am trying to get the gamp demo to run in my >
machine fedora 9. i have installed FGS- mapserver 5.2.1 a Stand alone environment. >
I have done all the steps given in the Gmap demo Installation file. >
i have added the AddTypes in the httpd.cong. Perhaps i have made the edits >
in the php.ini file. now when i call  the >

http://localhost/gmap/gmap75.phtml

i stunned to see everything is projecting except the map is not rendering. >
at the beginning i thought it might be a problem of the java mode is enabled >
then i tried to disabled that but i failed it was also not working....  Then i looked into the httpd error log file ... >
i got this following error............ >

[Tue Mar 24 05:13:02 2009] [error] [client 127.0.0.1] File does not exist: /home/kapil/FGS-MAPSERVER/tmp/ms_tmp/49c81e86_ba0_ffffffff.gif, referer: http://localhost:8080/gmap-ms46/htdocs/gmap75.phtml?drainage=Y&drain_fn=Y&bathymetry=Y&popplace=Y&prov_bound=Y&fedlimit=Y&land_fn=Y&ViewRegion=Quick+View&minx=-2601225.031773&miny=-712631.000000&maxx=3474025.031773&maxy=3840000.000000&imagewidth=400&imageheight=300&CMD=&INPUT_TYPE=&INPUT_COORD=&KEYMAPXSIZE=100&KEYMAPYSIZE=75&MapSize=400%2C300&JavaOff.x=14&JavaOff.y=21&PREVIOUS_MODE=0
[Tue Mar 24 05:13:02 2009] [error] [client 127.0.0.1] File does not exist: /home/kapil/FGS-MAPSERVER/tmp/ms_tmp/49c81e86_ba0_0.gif, referer: http://localhost:8080/gmap-ms46/htdocs/gmap75.phtml?drainage=Y&drain_fn=Y&bathymetry=Y&popplace=Y&prov_bound=Y&fedlimit=Y&land_fn=Y&ViewRegion=Quick+View&minx=-2601225.031773&miny=-712631.000000&maxx=3474025.031773&maxy=3840000.000000&imagewidth=400&imageheight=300&CMD=&INPUT_TYPE=&INPUT_COORD=&KEYMAPXSIZE=100&KEYMAPYSIZE=75&MapSize=400%2C300&JavaOff.x=14&JavaOff.y=21&PREVIOUS_MODE=0
[Tue Mar 24 05:13:02 2009] [error] [clien t 127.0.0.1] File does not exist: /home/kapil/FGS-MAPSERVER/tmp/ms_tmp/49c81e86_ba0_1.png, referer: http://localhost:8080/gmap-ms46/htdocs/gmap75.phtml?drainage=Y&drain_fn=Y&bathymetry=Y&popplace=Y&prov_bound=Y&fedlimit=Y&land_fn=Y&ViewRegion=Quick+View&minx=-2601225.031773&miny=-712631.000000&maxx=3474025.031773&maxy=3840000.000000&imagewidth=400&imageheight=300&CMD=&INPUT_TYPE=&INPUT_COORD=&KEYMAPXSIZE=100&KEYMAPYSIZE=75&MapSize=400%2C300&JavaOff.x=14&JavaOff.y=21&PREVIOUS_MODE=0


Herewith i am attaching the screen shot of the page for your v iew >
  >
i am struggling to solve this problem for the past two days......  someone >
please help me out..... >

any help/tips will be appreciated.... >

Thanks, >
zizu                       >

Screenshot-1.png FGS actually has a downloadable module for gmap (listed at http://dl.maptools.org/dl/fgs/releases/1.0/1.0.0/modules/) that you should be using with FGS (no configuring necessary). If you have more FGS questions I would use the FGS mailing list. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From manojkapil06 at gmail.com Tue Mar 24 07:46:17 2009 From: manojkapil06 at gmail.com (zizu) Date: Tue, 24 Mar 2009 07:46:17 -0700 (PDT) Subject: [mapserver-users] gmap demo - map is not displaying In-Reply-To: <49C8D562.4090303@gatewaygeomatics.com> References: <1237852390734-2524064.post@n2.nabble.com> <49C8D562.4090303@gatewaygeomatics.com> Message-ID: <1237905977678-2526962.post@n2.nabble.com> hi, Thanks jeff..... zizu zizu wrote: > hello users... >

I am a newbie  to mapserver. i am trying to get the gamp demo to run in my >
machine fedora 9. i have installed FGS- mapserver 5.2.1 a Stand alone environment. >
I have done all the steps given in the Gmap demo Installation file. >
i have added the AddTypes in the httpd.cong. Perhaps i have made the edits >
in the php.ini file. now when i call  the >

http://localhost/gmap/gmap75.phtml

i stunned to see everything is projecting except the map is not rendering. >
at the beginning i thought it might be a problem of the java mode is enabled >
then i tried to disabled that but i failed it was also not working....  Then i looked into the httpd error log file ... >
i got this following error............ >

[Tue Mar 24 05:13:02 2009] [error] [client 127.0.0.1] File does not exist: /home/kapil/FGS-MAPSERVER/tmp/ms_tmp/49c81e86_ba0_ffffffff.gif, referer: http://localhost:8080/gmap-ms46/htdocs/gmap75.phtml?drainage=Y&drain_fn=Y&bathymetry=Y&popplace=Y&prov_bound=Y&fedlimit=Y&land_fn=Y&ViewRegion=Quick+View&minx=-2601225.031773&miny=-712631.000000&maxx=3474025.031773&maxy=3840000.000000&imagewidth=400&imageheight=300&CMD=&INPUT_TYPE=&INPUT_COORD=&KEYMAPXSIZE=100&KEYMAPYSIZE=75&MapSize=400%2C300&JavaOff.x=14&JavaOff.y=21&PREVIOUS_MODE=0
[Tue Mar 24 05:13:02 2009] [error] [client 127.0.0.1] File does not exist: /home/kapil/FGS-MAPSERVER/tmp/ms_tmp/49c81e86_ba0_0.gif, referer: http://localhost:8080/gmap-ms46/htdocs/gmap75.phtml?drainage=Y&drain_fn=Y&bathymetry=Y&popplace=Y&prov_bound=Y&fedlimit=Y&land_fn=Y&ViewRegion=Quick+View&minx=-2601225.031773&miny=-712631.000000&maxx=3474025.031773&maxy=3840000.000000&imagewidth=400&imageheight=300&CMD=&INPUT_TYPE=&INPUT_COORD=&KEYMAPXSIZE=100&KEYMAPYSIZE=75&MapSize=400%2C300&JavaOff.x=14&JavaOff.y=21&PREVIOUS_MODE=0
[Tue Mar 24 05:13:02 2009] [error] [clien t 127.0.0.1] File does not exist: /home/kapil/FGS-MAPSERVER/tmp/ms_tmp/49c81e86_ba0_1.png, referer: http://localhost:8080/gmap-ms46/htdocs/gmap75.phtml?drainage=Y&drain_fn=Y&bathymetry=Y&popplace=Y&prov_bound=Y&fedlimit=Y&land_fn=Y&ViewRegion=Quick+View&minx=-2601225.031773&miny=-712631.000000&maxx=3474025.031773&maxy=3840000.000000&imagewidth=400&imageheight=300&CMD=&INPUT_TYPE=&INPUT_COORD=&KEYMAPXSIZE=100&KEYMAPYSIZE=75&MapSize=400%2C300&JavaOff.x=14&JavaOff.y=21&PREVIOUS_MODE=0


Herewith i am attaching the screen shot of the page for your v iew >
  >
i am struggling to solve this problem for the past two days......  someone >
please help me out..... >

any help/tips will be appreciated.... >

Thanks, >
zizu                       >

Screenshot-1.png FGS actually has a downloadable module for gmap (listed at http://dl.maptools.org/dl/fgs/releases/1.0/1.0.0/modules/) that you should be using with FGS (no configuring necessary). If you have more FGS questions I would use the FGS mailing list. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- View this message in context: http://n2.nabble.com/gmap-demo---map-is-not-displaying-tp2524064p2526962.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pmoen at offroadsoftware.com Tue Mar 24 08:01:49 2009 From: pmoen at offroadsoftware.com (Paul Moen) Date: Tue, 24 Mar 2009 10:01:49 -0500 Subject: [mapserver-users] Include directive and mapscript Message-ID: <54D079E7-3CB6-45E7-B045-E7515561BB92@offroadsoftware.com> Here is the fedlands.map that I am including. LAYER PROJECTION "init=epsg:4326" END GROUP "Political Boundaries" NAME "Public Land Management Agencies" TYPE RASTER STATUS ON CONNECTION "http://206.16.47.174:80/wmsconnector/com.esri.wms.Esrimap/BLM_SURFACE_MGT_AGY?reaspect=false " CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:4326" "wms_name" "SMA_ALL" "wms_server_version" "1.1.1" "wms_format" "image/gif" END END This is the section of the mapfile that the include is located. INCLUDE 'fedlands.map' The output of the map->save function gives the layer below, which no longer has the GROUP. Somewhere along the line the GROUP directive is disappearing from my layer when it is included. LAYER CONNECTION "http://206.16.47.174:80/wmsconnector/com.esri.wms.Esrimap/BLM_SURFACE_MGT_AGY?reaspect=false " CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:4326" "wms_name" "SMA_ALL" "wms_format" "image/gif" "wms_server_version" "1.1.1" END NAME "All Public Land Management Agencies" PROJECTION "init=epsg:4326" END STATUS ON TYPE RASTER UNITS METERS END Any Ideas? Paul From MMaganti at oriongis.com Tue Mar 24 08:07:31 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Tue, 24 Mar 2009 11:07:31 -0400 Subject: [mapserver-users] queryByAttribute in C# mapscript Message-ID: Hi I am using queryByAttribute on a SDE layer with a simple expression, 'OBJECTID = 750'. The method returns MS_FAILURE, though it is valid expression. I can run same query in ArcCatalog and get the result back. What do I need to verify here. I usually I check that there is template name defined and maxscaledenom is set to -1. What else I am missing. This is what is logged by map server [Mon Mar 23 18:02:25 2009].834000 msConnPoolRequest(Canlur,vmonp03,port:5154,dmtigdb,dmtigdb,password) -> got 1D49DFF8 [Mon Mar 23 18:02:25 2009].834000 msSDELayerOpen(): Layer Canlur specified version SDE.DEFAULT. [Mon Mar 23 18:02:25 2009].834000 msSDEGetLayerInfo(): Looking for layer by TESTGDB.CANLUR, SHAPE, vmonp03,port:5154,dmtigdb,dmtigdb,password [Mon Mar 23 18:02:25 2009].834000 msSDEGetLayerId(): Matched layer to id 112. [Mon Mar 23 18:02:25 2009].834000 Getting all column information in msSDELayerInitItemInfo [Mon Mar 23 18:02:25 2009].834000 msSDELayerInitItemInfo(): getting info for OBJECTID [Mon Mar 23 18:02:25 2009].834000 msSDELayerInitItemInfo(): getting info for CATEGORY [Mon Mar 23 18:02:25 2009].834000 msSDELayerInitItemInfo(): getting info for SHAPE [Mon Mar 23 18:02:25 2009].834000 msSDELayerInitItemInfo(): getting info for OID [Mon Mar 23 18:02:35 2009].338000 getSymbol(): Symbol definition error. Parsing error near (OBJECTID):(line 831) [Mon Mar 23 18:02:35 2009].370000 msQueryByAttributes(): Search returned no results. No matching record(s) found. I used another field PARCELID, which is also numeric but still does not work. Thanks Murty -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Tue Mar 24 08:16:51 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 24 Mar 2009 16:16:51 +0100 Subject: [mapserver-users] queryByAttribute in C# mapscript In-Reply-To: References: Message-ID: How is your mapfile looking like. Parsing error near (OBJECTID) seems a bit strange here.... Best regards, Tamas 2009/3/24 Murty Maganti > Hi > > > > I am using queryByAttribute on a SDE layer with a simple expression, > ?OBJECTID = 750?. The method returns MS_FAILURE, though it is valid > expression. I can run same query in ArcCatalog and get the result back. > > > > What do I need to verify here. I usually I check that there is template > name defined and maxscaledenom is set to -1. What else I am missing. > > > > This is what is logged by map server > > > > [Mon Mar 23 18:02:25 2009].834000 > msConnPoolRequest(Canlur,vmonp03,port:5154,dmtigdb,dmtigdb,password) -> got > 1D49DFF8 > > [Mon Mar 23 18:02:25 2009].834000 msSDELayerOpen(): Layer Canlur specified > version SDE.DEFAULT. > > [Mon Mar 23 18:02:25 2009].834000 msSDEGetLayerInfo(): Looking for layer by > TESTGDB.CANLUR, SHAPE, vmonp03,port:5154,dmtigdb,dmtigdb,password > > [Mon Mar 23 18:02:25 2009].834000 msSDEGetLayerId(): Matched layer to id > 112. > > [Mon Mar 23 18:02:25 2009].834000 Getting all column information in > msSDELayerInitItemInfo > > [Mon Mar 23 18:02:25 2009].834000 msSDELayerInitItemInfo(): getting info > for OBJECTID > > [Mon Mar 23 18:02:25 2009].834000 msSDELayerInitItemInfo(): getting info > for CATEGORY > > [Mon Mar 23 18:02:25 2009].834000 msSDELayerInitItemInfo(): getting info > for SHAPE > > [Mon Mar 23 18:02:25 2009].834000 msSDELayerInitItemInfo(): getting info > for OID > > [Mon Mar 23 18:02:35 2009].338000 getSymbol(): Symbol definition error. > Parsing error near (OBJECTID):(line 831) > > [Mon Mar 23 18:02:35 2009].370000 msQueryByAttributes(): Search returned no > results. No matching record(s) found. > > > > I used another field PARCELID, which is also numeric but still does not > work. > > > > Thanks > > Murty > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From MMaganti at oriongis.com Tue Mar 24 08:24:39 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Tue, 24 Mar 2009 11:24:39 -0400 Subject: [mapserver-users] queryByAttribute in C# mapscript In-Reply-To: References: Message-ID: Hi Here is the entry in map file (removed CLASS portion) LAYER CONNECTION "vmonp03,port:5154,dmtigdb,dmtigdb,password" CONNECTIONTYPE PLUGIN PLUGIN "msplugin_sde_92.dll" DATA "DMTIGDB.CANLUR,SHAPE,SDE.DEFAULT" NAME "Canlur" PROCESSING "CLOSE_CONNECTION=DEFER" CLASS ---------- END END I think the parsing error is coming from query expression. If I use PARCELD=123, then it writes 'Parsing error near(PARCELID)' to log. Thanks Murty From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: Tuesday, March 24, 2009 11:17 AM To: Murty Maganti Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] queryByAttribute in C# mapscript How is your mapfile looking like. Parsing error near (OBJECTID) seems a bit strange here.... Best regards, Tamas 2009/3/24 Murty Maganti Hi I am using queryByAttribute on a SDE layer with a simple expression, 'OBJECTID = 750'. The method returns MS_FAILURE, though it is valid expression. I can run same query in ArcCatalog and get the result back. What do I need to verify here. I usually I check that there is template name defined and maxscaledenom is set to -1. What else I am missing. This is what is logged by map server [Mon Mar 23 18:02:25 2009].834000 msConnPoolRequest(Canlur,vmonp03,port:5154,dmtigdb,dmtigdb,password) -> got 1D49DFF8 [Mon Mar 23 18:02:25 2009].834000 msSDELayerOpen(): Layer Canlur specified version SDE.DEFAULT. [Mon Mar 23 18:02:25 2009].834000 msSDEGetLayerInfo(): Looking for layer by TESTGDB.CANLUR, SHAPE, vmonp03,port:5154,dmtigdb,dmtigdb,password [Mon Mar 23 18:02:25 2009].834000 msSDEGetLayerId(): Matched layer to id 112. [Mon Mar 23 18:02:25 2009].834000 Getting all column information in msSDELayerInitItemInfo [Mon Mar 23 18:02:25 2009].834000 msSDELayerInitItemInfo(): getting info for OBJECTID [Mon Mar 23 18:02:25 2009].834000 msSDELayerInitItemInfo(): getting info for CATEGORY [Mon Mar 23 18:02:25 2009].834000 msSDELayerInitItemInfo(): getting info for SHAPE [Mon Mar 23 18:02:25 2009].834000 msSDELayerInitItemInfo(): getting info for OID [Mon Mar 23 18:02:35 2009].338000 getSymbol(): Symbol definition error. Parsing error near (OBJECTID):(line 831) [Mon Mar 23 18:02:35 2009].370000 msQueryByAttributes(): Search returned no results. No matching record(s) found. I used another field PARCELID, which is also numeric but still does not work. Thanks Murty _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From robhyx at gmail.com Tue Mar 24 08:32:00 2009 From: robhyx at gmail.com (Robert Hicks) Date: Tue, 24 Mar 2009 11:32:00 -0400 Subject: [mapserver-users] Truncating access.log file Message-ID: Hello all, is there a way to truncate the access.log for Mapserver once it gets to a certain size? My log file get extremely large and I know webapps that use log4j have a properties file you can just set the limit in there. Is there anything similar for Mapserver? Thanks! -- myspace http://www.myspace.com/diemtvdie aim hyx1138 -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Tue Mar 24 08:41:34 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 24 Mar 2009 16:41:34 +0100 Subject: [mapserver-users] queryByAttribute in C# mapscript In-Reply-To: References: Message-ID: You might want to test with the: "('[Name]'='value')" expression syntax. Best regards, Tamas 2009/3/24 Murty Maganti > Hi > > > > Here is the entry in map file (removed CLASS portion) > > > > LAYER > > CONNECTION "vmonp03,port:5154,dmtigdb,dmtigdb,password" > > CONNECTIONTYPE PLUGIN > > PLUGIN "msplugin_sde_92.dll" > > DATA "DMTIGDB.CANLUR,SHAPE,SDE.DEFAULT" > > NAME "Canlur" > > PROCESSING "CLOSE_CONNECTION=DEFER" > > > > CLASS > > ---------- > > END > > > > END > > > > I think the parsing error is coming from query expression. If I use > PARCELD=123, then it writes ?Parsing error near(PARCELID)? to log. > > > > Thanks > > Murty > > *From:* Tamas Szekeres [mailto:szekerest at gmail.com] > *Sent:* Tuesday, March 24, 2009 11:17 AM > *To:* Murty Maganti > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] queryByAttribute in C# mapscript > > > > How is your mapfile looking like. Parsing error near (OBJECTID) seems a bit > strange here.... > > Best regards, > > Tamas > > > > 2009/3/24 Murty Maganti > > Hi > > > > I am using queryByAttribute on a SDE layer with a simple expression, > ?OBJECTID = 750?. The method returns MS_FAILURE, though it is valid > expression. I can run same query in ArcCatalog and get the result back. > > > > What do I need to verify here. I usually I check that there is template > name defined and maxscaledenom is set to -1. What else I am missing. > > > > This is what is logged by map server > > > > [Mon Mar 23 18:02:25 2009].834000 > msConnPoolRequest(Canlur,vmonp03,port:5154,dmtigdb,dmtigdb,password) -> got > 1D49DFF8 > > [Mon Mar 23 18:02:25 2009].834000 msSDELayerOpen(): Layer Canlur specified > version SDE.DEFAULT. > > [Mon Mar 23 18:02:25 2009].834000 msSDEGetLayerInfo(): Looking for layer by > TESTGDB.CANLUR, SHAPE, vmonp03,port:5154,dmtigdb,dmtigdb,password > > [Mon Mar 23 18:02:25 2009].834000 msSDEGetLayerId(): Matched layer to id > 112. > > [Mon Mar 23 18:02:25 2009].834000 Getting all column information in > msSDELayerInitItemInfo > > [Mon Mar 23 18:02:25 2009].834000 msSDELayerInitItemInfo(): getting info > for OBJECTID > > [Mon Mar 23 18:02:25 2009].834000 msSDELayerInitItemInfo(): getting info > for CATEGORY > > [Mon Mar 23 18:02:25 2009].834000 msSDELayerInitItemInfo(): getting info > for SHAPE > > [Mon Mar 23 18:02:25 2009].834000 msSDELayerInitItemInfo(): getting info > for OID > > [Mon Mar 23 18:02:35 2009].338000 getSymbol(): Symbol definition error. > Parsing error near (OBJECTID):(line 831) > > [Mon Mar 23 18:02:35 2009].370000 msQueryByAttributes(): Search returned no > results. No matching record(s) found. > > > > I used another field PARCELID, which is also numeric but still does not > work. > > > > Thanks > > Murty > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Tue Mar 24 09:08:23 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 24 Mar 2009 12:08:23 -0400 Subject: [mapserver-users] Include directive and mapscript In-Reply-To: <54D079E7-3CB6-45E7-B045-E7515561BB92@offroadsoftware.com> References: <54D079E7-3CB6-45E7-B045-E7515561BB92@offroadsoftware.com> Message-ID: <49C90577.5050606@dmsolutions.ca> Not sure why would that happen. Just as a note, the 2 layers you sent in this e-mail have a different values for the NAME parameter. Is it possible that you do not include the correct layer? Paul Moen wrote: > Here is the fedlands.map that I am including. > > LAYER > PROJECTION > "init=epsg:4326" > END > GROUP "Political Boundaries" > NAME "Public Land Management Agencies" > TYPE RASTER > STATUS ON > CONNECTION > "http://206.16.47.174:80/wmsconnector/com.esri.wms.Esrimap/BLM_SURFACE_MGT_AGY?reaspect=false" > > CONNECTIONTYPE WMS > METADATA > "wms_srs" "EPSG:4326" > "wms_name" "SMA_ALL" > "wms_server_version" "1.1.1" > "wms_format" "image/gif" > END > END > > This is the section of the mapfile that the include is located. > > > INCLUDE 'fedlands.map' > > > The output of the map->save function gives the layer below, which no > longer has the GROUP. Somewhere along the line the GROUP directive is > disappearing from my layer when it is included. > > LAYER > CONNECTION > "http://206.16.47.174:80/wmsconnector/com.esri.wms.Esrimap/BLM_SURFACE_MGT_AGY?reaspect=false" > > CONNECTIONTYPE WMS > METADATA > "wms_srs" "EPSG:4326" > "wms_name" "SMA_ALL" > "wms_format" "image/gif" > "wms_server_version" "1.1.1" > END > NAME "All Public Land Management Agencies" > PROJECTION > "init=epsg:4326" > END > STATUS ON > TYPE RASTER > UNITS METERS > END > > > Any Ideas? > > Paul > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Bob.Bistrais at maine.gov Tue Mar 24 11:08:50 2009 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Tue, 24 Mar 2009 14:08:50 -0400 Subject: [mapserver-users] Projection object parameters for UTM to lat-long In-Reply-To: <49C8B1F4.4040901@bytewise.it> References: <4EFF8BB964547748A07CA32961810C0412C48522@SOM-TEAQASMAIL1.som.w2k.state.me.us> <49C8B1F4.4040901@bytewise.it> Message-ID: <4EFF8BB964547748A07CA32961810C0412C48532@SOM-TEAQASMAIL1.som.w2k.state.me.us> Hi Pietro, That was it! After making this correction, it works! Thank you, Bob ________________________________ From: Pietro Giannini [mailto:pgiannini at bytewise.it] Sent: Tuesday, March 24, 2009 6:12 AM To: mapserver-users Subject: Re: [mapserver-users] Projection object parameters for UTM to lat-long Bob, maybe error is in first line: "ellps-GRS80" is wrong, "ellps=GRS80" is correct. bye ................pg Bistrais, Bob ha scritto: I am trying to project an object from UTM to lat-long. I cannot get the projection to work, and I suspect it's the parameters for the UTM projection object. I am trying to project from UTM Zone 19N, NAD 1983 to lat-long. Here is my code: $projInObj = ms_newprojectionobj("proj=utm,ellps-GRS80,datum=NAD83,zone=19,units=m,north,no_defs"); $projOutObj = ms_newprojectionobj("proj=latlong"); $poPoint = ms_newpointobj(); $poPoint->setXY($xmin, $ymin); echo "

Coords: " . $poPoint->x . ",".$poPoint->y; $poPoint = $poPoint->project($projInObj, $projOutObj); echo "

x = " . $poPoint->x; echo "

y = " . $poPoint->y; $poPoint->free(); I can see the output using the echo lines. The coordinates going into the point show up and are correct, but there are no x/y values after doing the project. Can anyone see what I'm doing wrong? ________________________________ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E -------------- next part -------------- An HTML attachment was scrubbed... URL: From MMaganti at oriongis.com Tue Mar 24 14:25:47 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Tue, 24 Mar 2009 17:25:47 -0400 Subject: [mapserver-users] WMS question Message-ID: Hello I have an issue using a WMS layer from http://njwebmap.state.nj.us/njorthos in map file. mapObj.draw() throws an exception. This is the URL constructed by map server http://njwebmap.state.nj.us/njorthos?LAYERS=Infrared2007,Natural2007&REQ UEST=GetMap&SERVICE=WMS&FORMAT=image/jpeg&STYLES=,&HEIGHT=415&VERSION=1. 1.1&SRS=EPSG:4326&WIDTH=578&BBOX=-76.4510022342995,38.91088,-73.01986476 57005,41.372736&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inima ge If I run this URL in a browser, it still gives error. But if I remove EXCEPTIONS=application/vnd.ogc.se_inimage, then it works fine. Is there a way to suppress the exceptions tag appended by map server Thanks Murty -------------- next part -------------- An HTML attachment was scrubbed... URL: From MMaganti at oriongis.com Tue Mar 24 14:57:15 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Tue, 24 Mar 2009 17:57:15 -0400 Subject: [mapserver-users] WMS question In-Reply-To: References: Message-ID: OK, I see that we can set the exceptions format as metadata using 'wms_exceptions_format'. That should solve the issue. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Murty Maganti Sent: Tuesday, March 24, 2009 5:26 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] WMS question Hello I have an issue using a WMS layer from http://njwebmap.state.nj.us/njorthos in map file. mapObj.draw() throws an exception. This is the URL constructed by map server http://njwebmap.state.nj.us/njorthos?LAYERS=Infrared2007,Natural2007&REQ UEST=GetMap&SERVICE=WMS&FORMAT=image/jpeg&STYLES=,&HEIGHT=415&VERSION=1. 1.1&SRS=EPSG:4326&WIDTH=578&BBOX=-76.4510022342995,38.91088,-73.01986476 57005,41.372736&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inima ge If I run this URL in a browser, it still gives error. But if I remove EXCEPTIONS=application/vnd.ogc.se_inimage, then it works fine. Is there a way to suppress the exceptions tag appended by map server Thanks Murty -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Tue Mar 24 20:30:55 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Tue, 24 Mar 2009 22:30:55 -0500 Subject: [mapserver-users] RE: nquery against postgis layer In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA2EF@s-sp22.pca.state.mn.us> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA301@s-sp22.pca.state.mn.us> To answer my own question... It turns out that in the query for my data statement, I was using a character column that didn't have a unique constraint on it. When I changed the statement to reference the gid column (e.g. 'using unique gid'), it worked. David. To paraphrase Dr. Dre, 'nothing but a gid thang...' -----Original Message----- From: Fawcett, David Sent: Monday, March 23, 2009 3:11 PM To: mapserver-users at lists.osgeo.org Subject: nquery against postgis layer I am banging my head against an nquery request to a postgis based layer. This is on MS 5.2.1 on OSX using William's binaries. I can draw the layer in mode=map, but when I use mode=nquery, the query doesn't return any results and my templates aren't populated properly. I am not passing a point or extent in the query request URL. I have a similar nquery request against a shapefile based layer and it works fine. Can anyone think of anything PostGIS specific that might cause this? I did a quick search of bug tickets in Trac and the listserv and didn't see anything. David. From syedmohseen56 at gmail.com Wed Mar 25 00:12:04 2009 From: syedmohseen56 at gmail.com (syed mohseen) Date: Wed, 25 Mar 2009 12:42:04 +0530 Subject: [mapserver-users] how to display datas selected from the combobox in map Message-ID: <8fd0eae0903250012o14b3d6c1wd00342c520d678e9@mail.gmail.com> hi, ia m newbie to fgs and i have created amap all i have to do is i want to display the name in my map when i selct the name from my combobox as it is already saved in the database will any help me out to overcome this problem any help appreciated thanks in advance syedmohseen -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Wed Mar 25 05:20:17 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 25 Mar 2009 14:20:17 +0200 Subject: [mapserver-users] Problems in making AGG outputformat for WMS In-Reply-To: References: Message-ID: Hi, This MapServer version is 5.2.1 from MS4W, and it tells me for examle: MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG .... So it should support AGG rendering. Now I have created agg OUTPUTFORMAT about as adviced in http://www.mapserver.org/output/agg.html OUTPUTFORMAT NAME "AGG" MIMETYPE "image/pngagg" DRIVER "AGG/PNG" EXTENSION "png" IMAGEMODE RGB END However, this mimetype is not included in the WMS 1.1.1 GetCapabilities document image/gif image/png image/png; mode=24bit If I edit OUTPUTFORMAT to have DRIVER "GD/PNG" then my own outputformat is included in GetCapabilies. image/pngagg image/gif image/png image/png; mode=24bit The problem is that AGG outputformat does not appear on the GetCapabilities and thus WMS clients can not show it on menu. If I edit WMS getMap request manually to use &FORMAT=image/pngagg it works. For me this looks like a small bug. Is it perhaps reported already, or even corrected? -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From aboudreault at mapgears.com Wed Mar 25 05:41:04 2009 From: aboudreault at mapgears.com (Alan Boudreault) Date: Wed, 25 Mar 2009 08:41:04 -0400 Subject: [mapserver-users] Perl mapscript installation problem Message-ID: <200903250841.04148.aboudreault@mapgears.com> Hi, I've tried to install Perl Mapscript... i'm not familiar with perl in general. I've followed the instructions in the readme file and now i got this error when i try a script: Can't locate auto/mapscript/mapObj/swig_scale_.al in @INC (@INC contains: . /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread- multi /usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl) at /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi/mapscript.pm line 38 I'm using an OpenSuse. Thanks, Alan From Steve.Lime at dnr.state.mn.us Wed Mar 25 06:54:30 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 25 Mar 2009 08:54:30 -0500 Subject: [mapserver-users] Perl mapscript installation problem Message-ID: <49C9F1470200008F00022106@co5.dnr.state.mn.us> What's the script look like? >>> Alan Boudreault 03/25/09 7:39 AM >>> Hi, I've tried to install Perl Mapscript... i'm not familiar with perl in general. I've followed the instructions in the readme file and now i got this error when i try a script: Can't locate auto/mapscript/mapObj/swig_scale_.al in @INC (@INC contains: . /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread- multi /usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl) at /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi/mapscript.pm line 38 I'm using an OpenSuse. Thanks, Alan _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From traviskirstine at gmail.com Wed Mar 25 06:57:04 2009 From: traviskirstine at gmail.com (Travis Kirstine) Date: Wed, 25 Mar 2009 09:57:04 -0400 Subject: [mapserver-users] ogr connection to postgis problems Message-ID: <681116190903250657y2bcc3604qb1df71e0b83e81d8@mail.gmail.com> I am trying to test a connection to a postgis db using ogrinfo and am having difficulties. I am running the command on the same server that hosts the postgis db. I checked the pg_hba.config file to see if it allows local connections and everything looks OK but I still get "Failure" when connecting with ogr. Am I missing something? command ogrinfo -ro PG:'host=server34 dbname=earth user=bob password=suruncle' pg_hba.conf # TYPE DATABASE USER CIDR-ADDRESS METHOD # "local" is for Unix domain socket connections only local all all trust # IPv4 local connections: host all all 127.0.0.1/32 trust # IPv6 local connections: host all all ::1/128 trust host all all 192.168.18.0/24 password -- Travis K. Toronto, Canada ------------------------------------------------------------ "She knows there's no success like failure and that failure's no success at all." -Bob Dylan- ------------------------------------------------------------ From aboudreault at mapgears.com Wed Mar 25 07:04:57 2009 From: aboudreault at mapgears.com (Alan Boudreault) Date: Wed, 25 Mar 2009 10:04:57 -0400 Subject: [mapserver-users] Perl mapscript installation problem In-Reply-To: <49C9F1470200008F00022106@co5.dnr.state.mn.us> References: <49C9F1470200008F00022106@co5.dnr.state.mn.us> Message-ID: <200903251004.57375.aboudreault@mapgears.com> I think i've found the problem, the script was simply made for mapserver 4.x. After a review, there was some call to deprecated properties. Thanks, Alan On March 25, 2009 09:54:30 am Steve Lime wrote: > What's the script look like? > > >>> Alan Boudreault 03/25/09 7:39 AM >>> > > Hi, > > I've tried to install Perl Mapscript... i'm not familiar with perl in > general. I've followed the instructions in the readme file and now i got > this error when i try a script: Can't locate > auto/mapscript/mapObj/swig_scale_.al in @INC (@INC contains: . > /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi > /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread- > multi /usr/lib/perl5/site_perl/5.10.0 > /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi > /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl) at > /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi/mapscript.pm line > 38 > > I'm using an OpenSuse. > > Thanks, > Alan > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Wed Mar 25 07:24:46 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 25 Mar 2009 10:24:46 -0400 Subject: [mapserver-users] ogr connection to postgis problems In-Reply-To: <681116190903250657y2bcc3604qb1df71e0b83e81d8@mail.gmail.com> References: <681116190903250657y2bcc3604qb1df71e0b83e81d8@mail.gmail.com> Message-ID: <49CA3EAE.3070800@gatewaygeomatics.com> Travis Kirstine wrote: > I am trying to test a connection to a postgis db using ogrinfo and am > having difficulties. I am running the command on the same server that > hosts the postgis db. I checked the pg_hba.config file to see if it > allows local connections and everything looks OK but I still get > "Failure" when connecting with ogr. > > Am I missing something? > > > command > ogrinfo -ro PG:'host=server34 dbname=earth user=bob password=suruncle' > > My thoughts: - since you are on the same server, use host=127.0.0.1 - include the port parameter (usually port=5432) -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From woodbri at swoodbridge.com Wed Mar 25 08:40:17 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 25 Mar 2009 10:40:17 -0500 Subject: [mapserver-users] ogr connection to postgis problems In-Reply-To: <49CA3EAE.3070800@gatewaygeomatics.com> References: <681116190903250657y2bcc3604qb1df71e0b83e81d8@mail.gmail.com> <49CA3EAE.3070800@gatewaygeomatics.com> Message-ID: <49CA5061.7060509@swoodbridge.com> Jeff McKenna wrote: > Travis Kirstine wrote: >> I am trying to test a connection to a postgis db using ogrinfo and am >> having difficulties. I am running the command on the same server that >> hosts the postgis db. I checked the pg_hba.config file to see if it >> allows local connections and everything looks OK but I still get >> "Failure" when connecting with ogr. >> >> Am I missing something? >> >> >> command >> ogrinfo -ro PG:'host=server34 dbname=earth user=bob password=suruncle' >> >> > > My thoughts: > > - since you are on the same server, use host=127.0.0.1 > - include the port parameter (usually port=5432) Have you try from the command line: psql -h server34 -U bob earth psql -h localhost -U bob earth psql -U bob earth Should prompt you for the password. Only the last on will use the local socket or named pipe. If the last one works the try: ogrinfo -ro PG:'host= dbname=earth user=bob password=suruncle' ogrinfo -ro PG:'dbname=earth user=bob password=suruncle' and see if either of these work. -Steve W From yassefa at dmsolutions.ca Wed Mar 25 07:42:11 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 25 Mar 2009 10:42:11 -0400 Subject: [mapserver-users] Problems in making AGG outputformat for WMS In-Reply-To: References: Message-ID: <49CA42C3.5000800@dmsolutions.ca> Hi There, It is a bug. ticket related to it is http://trac.osgeo.org/mapserver/ticket/2957 and should be available for the next MapServer release. Best Regards, Rahkonen Jukka wrote: > Hi, > > This MapServer version is 5.2.1 from MS4W, and it tells me for examle: > > MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG .... > > So it should support AGG rendering. Now I have created agg OUTPUTFORMAT > about as adviced in > http://www.mapserver.org/output/agg.html > > OUTPUTFORMAT > NAME "AGG" > MIMETYPE "image/pngagg" > DRIVER "AGG/PNG" > EXTENSION "png" > IMAGEMODE RGB > END > > However, this mimetype is not included in the WMS 1.1.1 GetCapabilities > document > > image/gif > image/png > image/png; mode=24bit > > If I edit OUTPUTFORMAT to have DRIVER "GD/PNG" then my own outputformat > is included in GetCapabilies. > > > image/pngagg > image/gif > image/png > image/png; mode=24bit > > The problem is that AGG outputformat does not appear on the > GetCapabilities and thus WMS clients can not show it on menu. If I edit > WMS getMap request manually to use &FORMAT=image/pngagg it works. For > me this looks like a small bug. Is it perhaps reported already, or even > corrected? > > -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: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From bfischer at houstoneng.com Wed Mar 25 07:44:34 2009 From: bfischer at houstoneng.com (Fischer, Brian) Date: Wed, 25 Mar 2009 09:44:34 -0500 Subject: [mapserver-users] WMS and transparent In-Reply-To: <2EF6E1058C047344B4DE0FD141119167DEF86A@hex01.houstonengineeringinc.com> References: <2EF6E1058C047344B4DE0FD141119167DEF86A@hex01.houstonengineeringinc.com> Message-ID: <2EF6E1058C047344B4DE0FD141119167DEF89A@hex01.houstonengineeringinc.com> I am trying to consume this WMS service with MapServer 5.0.2 as a client and would like to make the background transparent instead of white. Is this possible mapserver? I tried the "wms_transparent" "true", but that didn't seem to work. Thanks for any suggestions. NAME '2003orthos' STATUS ON EXTENT 366751.468 5034450.028 882880.091 5434570.553 UNITS Meters SIZE 600 400 FONTSET '../fonts/fontset.list' SYMBOLSET '../symbols/symbol.sym' IMAGETYPE PNG24 TRANSPARENT TRUE WEB IMAGEURL "E:\ms4w\tmp\ms_tmp" IMAGEPATH "E:\ms4w\tmp\ms_tmp" END LAYER NAME ND03 TYPE RASTER OFFSITE 0 0 0 STATUS DEFAULT CONNECTIONTYPE WMS CONNECTION "http://web.apps.state.nd.us/wmsconnector/com.esri.wms.Esrimap/NDWMS_aer ialimages?" #MINSCALE 1000 # only display down to this scale #MAXSCALE 24000 METADATA "wms_srs" "EPSG:26914" "wms_name" "ND03" "wms_server_version" "1.1.1" "wms_format" "image/jpeg" "wms_styles" "" "wms_exceptions" "application/vnd.ogc.se_inimage" END END END End #Map Thanks, Brian -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at osgis.nl Wed Mar 25 07:47:11 2009 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Wed, 25 Mar 2009 15:47:11 +0100 (CET) Subject: [mapserver-users] WMS and transparent In-Reply-To: <2EF6E1058C047344B4DE0FD141119167DEF89A@hex01.houstonengineeringinc.co m> References: <2EF6E1058C047344B4DE0FD141119167DEF86A@hex01.houstonengineeringinc.com> <2EF6E1058C047344B4DE0FD141119167DEF89A@hex01.houstonengineeringinc.com> Message-ID: <48051.145.50.39.11.1237992431.squirrel@webmail.hostingdiscounter.nl> Hi, jpegs can not be transparent. Only if you switch to another image format like image/png. Best regards, Bart > > > I am trying to consume this WMS service with MapServer 5.0.2 as a > client and would like to make the background transparent instead of > white. Is this possible mapserver? I tried the "wms_transparent" > "true", but that didn't seem to work. Thanks for any suggestions. > > > > NAME '2003orthos' > > STATUS ON > > EXTENT 366751.468 5034450.028 882880.091 5434570.553 > > UNITS Meters > > SIZE 600 400 > > FONTSET '../fonts/fontset.list' > > SYMBOLSET '../symbols/symbol.sym' > > IMAGETYPE PNG24 > > TRANSPARENT TRUE > > > > WEB > > IMAGEURL "E:\ms4w\tmp\ms_tmp" > > IMAGEPATH "E:\ms4w\tmp\ms_tmp" > > END > > > > > > LAYER > > NAME ND03 > > TYPE RASTER > > OFFSITE 0 0 0 > > STATUS DEFAULT > > CONNECTIONTYPE WMS > > CONNECTION > "http://web.apps.state.nd.us/wmsconnector/com.esri.wms.Esrimap/NDWMS_aer > ialimages?" > > > > #MINSCALE 1000 # only display down to this scale > > #MAXSCALE 24000 > > > > METADATA > > "wms_srs" "EPSG:26914" > > "wms_name" "ND03" > > "wms_server_version" "1.1.1" > > "wms_format" "image/jpeg" > > "wms_styles" "" > > "wms_exceptions" "application/vnd.ogc.se_inimage" > > END > > > > END > > END > > > > > > End #Map > > > > Thanks, > > Brian > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From bfischer at houstoneng.com Wed Mar 25 07:50:19 2009 From: bfischer at houstoneng.com (Fischer, Brian) Date: Wed, 25 Mar 2009 09:50:19 -0500 Subject: [mapserver-users] WMS and transparent In-Reply-To: <48051.145.50.39.11.1237992431.squirrel@webmail.hostingdiscounter.nl> References: <2EF6E1058C047344B4DE0FD141119167DEF86A@hex01.houstonengineeringinc.com> <2EF6E1058C047344B4DE0FD141119167DEF89A@hex01.houstonengineeringinc.com> <48051.145.50.39.11.1237992431.squirrel@webmail.hostingdiscounter.nl> Message-ID: <2EF6E1058C047344B4DE0FD141119167DEF89B@hex01.houstonengineeringinc.com> Thanks for the reply. I was hoping maybe MapServer could consume that jpeg and set the white color to transparent, then mapserver would output a PNG that has transparency to the web client. Does the offsite parameter do this by chance or is there another trick that could be used? -----Original Message----- From: bartvde at osgis.nl [mailto:bartvde at osgis.nl] Sent: Wednesday, March 25, 2009 9:47 AM To: Fischer, Brian Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WMS and transparent Hi, jpegs can not be transparent. Only if you switch to another image format like image/png. Best regards, Bart > > > I am trying to consume this WMS service with MapServer 5.0.2 as a > client and would like to make the background transparent instead of > white. Is this possible mapserver? I tried the "wms_transparent" > "true", but that didn't seem to work. Thanks for any suggestions. > > > > NAME '2003orthos' > > STATUS ON > > EXTENT 366751.468 5034450.028 882880.091 5434570.553 > > UNITS Meters > > SIZE 600 400 > > FONTSET '../fonts/fontset.list' > > SYMBOLSET '../symbols/symbol.sym' > > IMAGETYPE PNG24 > > TRANSPARENT TRUE > > > > WEB > > IMAGEURL "E:\ms4w\tmp\ms_tmp" > > IMAGEPATH "E:\ms4w\tmp\ms_tmp" > > END > > > > > > LAYER > > NAME ND03 > > TYPE RASTER > > OFFSITE 0 0 0 > > STATUS DEFAULT > > CONNECTIONTYPE WMS > > CONNECTION > "http://web.apps.state.nd.us/wmsconnector/com.esri.wms.Esrimap/NDWMS_aer > ialimages?" > > > > #MINSCALE 1000 # only display down to this scale > > #MAXSCALE 24000 > > > > METADATA > > "wms_srs" "EPSG:26914" > > "wms_name" "ND03" > > "wms_server_version" "1.1.1" > > "wms_format" "image/jpeg" > > "wms_styles" "" > > "wms_exceptions" "application/vnd.ogc.se_inimage" > > END > > > > END > > END > > > > > > End #Map > > > > Thanks, > > Brian > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From bartvde at osgis.nl Wed Mar 25 07:52:14 2009 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Wed, 25 Mar 2009 15:52:14 +0100 (CET) Subject: [mapserver-users] WMS and transparent In-Reply-To: <2EF6E1058C047344B4DE0FD141119167DEF89B@hex01.houstonengineeringinc.co m> References: <2EF6E1058C047344B4DE0FD141119167DEF86A@hex01.houstonengineeringinc.com> <2EF6E1058C047344B4DE0FD141119167DEF89A@hex01.houstonengineeringinc.com> <48051.145.50.39.11.1237992431.squirrel@webmail.hostingdiscounter.nl> <2EF6E1058C047344B4DE0FD141119167DEF89B@hex01.houstonengineeringinc.com> Message-ID: <62670.145.50.39.11.1237992734.squirrel@webmail.hostingdiscounter.nl> Yeah maybe OFFSITE can do this for you, give it a try, it works for normal rasters so why not for a WMS client layer (haven't tried though). Best regards, Bart > Thanks for the reply. I was hoping maybe MapServer could consume that > jpeg and set the white color to transparent, then mapserver would output > a PNG that has transparency to the web client. Does the offsite > parameter do this by chance or is there another trick that could be > used? > > -----Original Message----- > From: bartvde at osgis.nl [mailto:bartvde at osgis.nl] > Sent: Wednesday, March 25, 2009 9:47 AM > To: Fischer, Brian > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] WMS and transparent > > Hi, > > jpegs can not be transparent. Only if you switch to another image format > like image/png. > > Best regards, > Bart > >> >> >> I am trying to consume this WMS service with MapServer 5.0.2 as a >> client and would like to make the background transparent instead of >> white. Is this possible mapserver? I tried the "wms_transparent" >> "true", but that didn't seem to work. Thanks for any suggestions. >> >> >> >> NAME '2003orthos' >> >> STATUS ON >> >> EXTENT 366751.468 5034450.028 882880.091 5434570.553 >> >> UNITS Meters >> >> SIZE 600 400 >> >> FONTSET '../fonts/fontset.list' >> >> SYMBOLSET '../symbols/symbol.sym' >> >> IMAGETYPE PNG24 >> >> TRANSPARENT TRUE >> >> >> >> WEB >> >> IMAGEURL "E:\ms4w\tmp\ms_tmp" >> >> IMAGEPATH "E:\ms4w\tmp\ms_tmp" >> >> END >> >> >> >> >> >> LAYER >> >> NAME ND03 >> >> TYPE RASTER >> >> OFFSITE 0 0 0 >> >> STATUS DEFAULT >> >> CONNECTIONTYPE WMS >> >> CONNECTION >> > "http://web.apps.state.nd.us/wmsconnector/com.esri.wms.Esrimap/NDWMS_aer >> ialimages?" >> >> >> >> #MINSCALE 1000 # only display down to this scale >> >> #MAXSCALE 24000 >> >> >> >> METADATA >> >> "wms_srs" "EPSG:26914" >> >> "wms_name" "ND03" >> >> "wms_server_version" "1.1.1" >> >> "wms_format" "image/jpeg" >> >> "wms_styles" "" >> >> "wms_exceptions" "application/vnd.ogc.se_inimage" >> >> END >> >> >> >> END >> >> END >> >> >> >> >> >> End #Map >> >> >> >> Thanks, >> >> Brian >> >> _______________________________________________ >> 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 Mar 25 08:02:16 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 25 Mar 2009 17:02:16 +0200 Subject: [mapserver-users] WMS and transparent In-Reply-To: <62670.145.50.39.11.1237992734.squirrel@webmail.hostingdiscounter.nl> References: <2EF6E1058C047344B4DE0FD141119167DEF86A@hex01.houstonengineeringinc.com><2EF6E1058C047344B4DE0FD141119167DEF89A@hex01.houstonengineeringinc.com><48051.145.50.39.11.1237992431.squirrel@webmail.hostingdiscounter.nl><2EF6E1058C047344B4DE0FD141119167DEF89B@hex01.houstonengineeringinc.com> <62670.145.50.39.11.1237992734.squirrel@webmail.hostingdiscounter.nl> Message-ID: Hi, Or perhaps OFFSITE will have difficulties because jpeg compression makes totally black to almost black. If it works the result could still be only partially transparent image with some non-transparent pixels here and there. -Jukka Rahkonen- Bart wrote: > Yeah maybe OFFSITE can do this for you, give it a try, it > works for normal rasters so why not for a WMS client layer > (haven't tried though). > > Best regards, > Bart > > > Thanks for the reply. I was hoping maybe MapServer could > consume that > > jpeg and set the white color to transparent, then mapserver would > > output a PNG that has transparency to the web client. Does the > > offsite parameter do this by chance or is there another trick that > > could be used? > > > > -----Original Message----- > > From: bartvde at osgis.nl [mailto:bartvde at osgis.nl] > > Sent: Wednesday, March 25, 2009 9:47 AM > > To: Fischer, Brian > > Cc: mapserver-users at lists.osgeo.org > > Subject: Re: [mapserver-users] WMS and transparent > > > > Hi, > > > > jpegs can not be transparent. Only if you switch to another image > > format like image/png. > > > > Best regards, > > Bart > > > >> > >> > >> I am trying to consume this WMS service with MapServer 5.0.2 as a > >> client and would like to make the background transparent > instead of > >> white. Is this possible mapserver? I tried the "wms_transparent" > >> "true", but that didn't seem to work. Thanks for any suggestions. > >> > >> > >> > >> NAME '2003orthos' > >> > >> STATUS ON > >> > >> EXTENT 366751.468 5034450.028 882880.091 5434570.553 > >> > >> UNITS Meters > >> > >> SIZE 600 400 > >> > >> FONTSET '../fonts/fontset.list' > >> > >> SYMBOLSET '../symbols/symbol.sym' > >> > >> IMAGETYPE PNG24 > >> > >> TRANSPARENT TRUE > >> > >> > >> > >> WEB > >> > >> IMAGEURL "E:\ms4w\tmp\ms_tmp" > >> > >> IMAGEPATH "E:\ms4w\tmp\ms_tmp" > >> > >> END > >> > >> > >> > >> > >> > >> LAYER > >> > >> NAME ND03 > >> > >> TYPE RASTER > >> > >> OFFSITE 0 0 0 > >> > >> STATUS DEFAULT > >> > >> CONNECTIONTYPE WMS > >> > >> CONNECTION > >> > > > "http://web.apps.state.nd.us/wmsconnector/com.esri.wms.Esrimap/NDWMS_a > > er > >> ialimages?" > >> > >> > >> > >> #MINSCALE 1000 # only display down to this scale > >> > >> #MAXSCALE 24000 > >> > >> > >> > >> METADATA > >> > >> "wms_srs" "EPSG:26914" > >> > >> "wms_name" "ND03" > >> > >> "wms_server_version" "1.1.1" > >> > >> "wms_format" "image/jpeg" > >> > >> "wms_styles" "" > >> > >> "wms_exceptions" "application/vnd.ogc.se_inimage" > >> > >> END > >> > >> > >> > >> END > >> > >> END > >> > >> > >> > >> > >> > >> End #Map > >> > >> > >> > >> Thanks, > >> > >> Brian > >> > >> _______________________________________________ > >> 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 MMaganti at oriongis.com Wed Mar 25 08:58:08 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Wed, 25 Mar 2009 11:58:08 -0400 Subject: [mapserver-users] Oracle Spatial Layer + C# map script Message-ID: Hi I am using a oracle spatial layer which has roughly 100,000 features. When I call layerObj.getExtents() function, it takes a long time to return. This is the query sent to oracle by map server SELECT SDO_AGGR_MBR(GEOM) AS GEOM from (SELECT GEOM FROM ORSPTL.PARCELS) If I run the query in database, it takes long time to execute. Is there way to optimize this query to execute fast? Also, I see that layer extents are stored in USER_SDO_GEOM_METADATA table. Why is map server not querying against that. Thanks Murty -------------- next part -------------- An HTML attachment was scrubbed... URL: From Z1568080 at students.niu.edu Wed Mar 25 11:19:37 2009 From: Z1568080 at students.niu.edu (Praveen Kumar Koppula) Date: Wed, 25 Mar 2009 13:19:37 -0500 Subject: [mapserver-users] Installation Problems Message-ID: <1238005177.d8fabf4Z1568080@students.niu.edu> Hello, I am having problem installing mapserver which is as follows. I have already installed png,freetype and pthreads libraries. configuration with libpng,zlib and freetype was successfull. when i am trying to configure GD the error occured which is listed below for your reference. ** Configuration summary for gd 2.0.35: Support for PNG library: yes Support for JPEG library: no Support for Freetype 2.x library: yes Support for Fontconfig library: no Support for Xpm library: no Support for pthreads: yes configure: creating ./config.status config.status: creating Makefile config.status: creating config/Makefile config.status: creating config/gdlib-config config.status: creating test/Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands I have also tried installing the rpm library and it says cannot create transaction lock control and also when i am trying to query the installed rpm libraries with rpm -qa, in that list i can find all the required libraries installed. Kindly help me in this regard. Regards Praveen From traviskirstine at gmail.com Wed Mar 25 11:51:39 2009 From: traviskirstine at gmail.com (Travis Kirstine) Date: Wed, 25 Mar 2009 14:51:39 -0400 Subject: [mapserver-users] ogr connection to postgis problems In-Reply-To: <49CA5061.7060509@swoodbridge.com> References: <681116190903250657y2bcc3604qb1df71e0b83e81d8@mail.gmail.com> <49CA3EAE.3070800@gatewaygeomatics.com> <49CA5061.7060509@swoodbridge.com> Message-ID: <681116190903251151i5fb79069t811ca727dc225753@mail.gmail.com> 2009/3/25 Stephen Woodbridge : > Jeff McKenna wrote: >> >> Travis Kirstine wrote: >>> >>> I am trying to test a connection to a postgis db ?using ogrinfo and am >>> having difficulties. ?I am running the command on the same server that >>> hosts the postgis db. ?I checked the pg_hba.config file to see if it >>> allows local connections and everything looks OK but I still get >>> "Failure" when connecting with ogr. >>> >>> Am I missing something? >>> >>> >>> command >>> ogrinfo -ro PG:'host=server34 dbname=earth user=bob password=suruncle' >>> >>> >> >> My thoughts: >> >> - since you are on the same server, use host=127.0.0.1 >> - include the port parameter (usually port=5432) > > Have you try from the command line: > > psql -h server34 -U bob earth > psql -h localhost -U bob earth > psql -U bob earth > > Should prompt you for the password. > > Only the last on will use the local socket or named pipe. If the last one > works the try: > > ogrinfo -ro PG:'host= dbname=earth user=bob password=suruncle' > ogrinfo -ro PG:'dbname=earth user=bob password=suruncle' > > and see if either of these work. > I got the query / connection to work, it seems that the -ro flag was causing the problem which is strange. this works ogrinfo -sql 'SELECT * FROM counties' PG:'host= dbname=earth user=bob password=suruncle' this dosen't ogrinfo -ro -sql 'SELECT * FROM counties' PG:'host= dbname=earth user=bob password=suruncle' I'm not sure what the problem is as the user bob has su privileges List of roles Role name | Superuser | Create role | Create DB | Connections | Member of -----------+-----------+-------------+-----------+-------------+----------- postgres | yes | yes | yes | no limit | bob | yes | no | yes | no limit | -- Travis K. Toronto, Canada ------------------------------------------------------------ "She knows there's no success like failure and that failure's no success at all." -Bob Dylan- ------------------------------------------------------------ From even.rouault at mines-paris.org Wed Mar 25 13:05:49 2009 From: even.rouault at mines-paris.org (Even Rouault) Date: Wed, 25 Mar 2009 21:05:49 +0100 Subject: [mapserver-users] ogr connection to postgis problems In-Reply-To: <681116190903251151i5fb79069t811ca727dc225753@mail.gmail.com> References: <681116190903250657y2bcc3604qb1df71e0b83e81d8@mail.gmail.com> <49CA5061.7060509@swoodbridge.com> <681116190903251151i5fb79069t811ca727dc225753@mail.gmail.com> Message-ID: <200903252105.52589.even.rouault@mines-paris.org> Travis, this is really weird. I've reviewed a bit the source of the PG driver and the influence of the read-only mode vs update mode is very thin. The only behavioural differences are : 1) the result of TestCapabilities() method depend on it, but ogrinfo doesn't request layer TestCapabilities(). 2) if the PG database has no valid tables (for OGR), its opening will fail in read-only mode, whereas it would succeed in update mode. So in your use case, provided that there's at least one table reported by ogrinfo in update mode, I don't understand why it fails. What's the version of GDAL/OGR you're using ? Le Wednesday 25 March 2009 19:51:39 Travis Kirstine, vous avez ?crit?: > 2009/3/25 Stephen Woodbridge : > > Jeff McKenna wrote: > >> Travis Kirstine wrote: > >>> I am trying to test a connection to a postgis db ?using ogrinfo and am > >>> having difficulties. ?I am running the command on the same server that > >>> hosts the postgis db. ?I checked the pg_hba.config file to see if it > >>> allows local connections and everything looks OK but I still get > >>> "Failure" when connecting with ogr. > >>> > >>> Am I missing something? > >>> > >>> > >>> command > >>> ogrinfo -ro PG:'host=server34 dbname=earth user=bob password=suruncle' > >> > >> My thoughts: > >> > >> - since you are on the same server, use host=127.0.0.1 > >> - include the port parameter (usually port=5432) > > > > Have you try from the command line: > > > > psql -h server34 -U bob earth > > psql -h localhost -U bob earth > > psql -U bob earth > > > > Should prompt you for the password. > > > > Only the last on will use the local socket or named pipe. If the last one > > works the try: > > > > ogrinfo -ro PG:'host= dbname=earth user=bob password=suruncle' > > ogrinfo -ro PG:'dbname=earth user=bob password=suruncle' > > > > and see if either of these work. > > I got the query / connection to work, it seems that the -ro flag was > causing the problem > which is strange. > > this works > ogrinfo -sql 'SELECT * FROM counties' PG:'host= dbname=earth user=bob > password=suruncle' > > this dosen't > ogrinfo -ro -sql 'SELECT * FROM counties' PG:'host= dbname=earth > user=bob password=suruncle' > > I'm not sure what the problem is as the user bob has su privileges > > > List of roles > Role name | Superuser | Create role | Create DB | Connections | Member of > -----------+-----------+-------------+-----------+-------------+----------- > postgres | yes | yes | yes | no limit | > bob | yes | no | yes | no limit | From Jim.Klassen at ci.stpaul.mn.us Wed Mar 25 13:07:42 2009 From: Jim.Klassen at ci.stpaul.mn.us (Jim Klassen) Date: Wed, 25 Mar 2009 15:07:42 -0500 Subject: [mapserver-users] WMS and transparent Message-ID: <49CA48BE0200004F0000FC1A@jeckle> This get's close... add OFFSITE 255 255 255 to the layer. (The problem is the border is not all 255 255 255 because JPEG mangles the colors a little) >>> "Fischer, Brian" 03/25/09 9:50 AM >>> Thanks for the reply. I was hoping maybe MapServer could consume that jpeg and set the white color to transparent, then mapserver would output a PNG that has transparency to the web client. Does the offsite parameter do this by chance or is there another trick that could be used? -----Original Message----- From: bartvde at osgis.nl [mailto:bartvde at osgis.nl] Sent: Wednesday, March 25, 2009 9:47 AM To: Fischer, Brian Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] WMS and transparent Hi, jpegs can not be transparent. Only if you switch to another image format like image/png. Best regards, Bart > > > I am trying to consume this WMS service with MapServer 5.0.2 as a > client and would like to make the background transparent instead of > white. Is this possible mapserver? I tried the "wms_transparent" > "true", but that didn't seem to work. Thanks for any suggestions. > > > > NAME '2003orthos' > > STATUS ON > > EXTENT 366751.468 5034450.028 882880.091 5434570.553 > > UNITS Meters > > SIZE 600 400 > > FONTSET '../fonts/fontset.list' > > SYMBOLSET '../symbols/symbol.sym' > > IMAGETYPE PNG24 > > TRANSPARENT TRUE > > > > WEB > > IMAGEURL "E:\ms4w\tmp\ms_tmp" > > IMAGEPATH "E:\ms4w\tmp\ms_tmp" > > END > > > > > > LAYER > > NAME ND03 > > TYPE RASTER > > OFFSITE 0 0 0 > > STATUS DEFAULT > > CONNECTIONTYPE WMS > > CONNECTION > "http://web.apps.state.nd.us/wmsconnector/com.esri.wms.Esrimap/NDWMS_aer > ialimages?" > > > > #MINSCALE 1000 # only display down to this scale > > #MAXSCALE 24000 > > > > METADATA > > "wms_srs" "EPSG:26914" > > "wms_name" "ND03" > > "wms_server_version" "1.1.1" > > "wms_format" "image/jpeg" > > "wms_styles" "" > > "wms_exceptions" "application/vnd.ogc.se_inimage" > > END > > > > END > > END > > > > > > End #Map > > > > Thanks, > > Brian > > _______________________________________________ > 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 szekerest at gmail.com Wed Mar 25 14:37:34 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 25 Mar 2009 22:37:34 +0100 Subject: [mapserver-users] msOGRFileNextShape(): OGR error. TopologyException: side location conflict Message-ID: Hi All, I've found this issue when drawing a map with MapServer in a certain view. By setting the center to a slightly different position the problem disappears and the map is drawn correctly. msDrawMap(): Image handling error. Failed to draw layer named 'MainStreet'.;msOGRFileNextShape(): OGR error. TopologyException: side location conflict 19.0499 47.5334 1.7e-308 Does anyone know where this error is coming from? I've seached for these strings in the MapServer and OGR code but didn't find any hit. Best regards, Tamas -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Wed Mar 25 16:36:46 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 25 Mar 2009 19:36:46 -0400 Subject: [mapserver-users] msOGRFileNextShape(): OGR error. TopologyException: side location conflict In-Reply-To: References: Message-ID: <49CAC00E.8060406@mapgears.com> Tamas Szekeres wrote: > > msDrawMap(): Image handling error. Failed to draw layer named > 'MainStreet'.;msOGRFileNextShape(): OGR error. TopologyException: side > location conflict 19.0499 47.5334 1.7e-308 > > Does anyone know where this error is coming from? I've seached for these > strings in the MapServer and OGR code but didn't find any hit. > In which format is the data? I suspect the error may come from the OGR driver or a lib used by the OGR code. Daniel -- Daniel Morissette http://www.mapgears.com/ From boesiii at yahoo.com Wed Mar 25 18:40:46 2009 From: boesiii at yahoo.com (boesiii) Date: Wed, 25 Mar 2009 18:40:46 -0700 (PDT) Subject: [mapserver-users] Move point symbols (water valves) along a line (waterline) depending on scale Message-ID: <1238031646205-2536075.post@n2.nabble.com> I have a point shapefile representing gate valves for waterlines and some of the gate valves are very close to each other and you may or may not be able to view them depending on scale. Is there a way to have MapServer automatically adjust point symbols (water valves) along a line (waterline) so the points are displayed at any scale? ArcGIS does this with a tool called cartographic representation. -- View this message in context: http://n2.nabble.com/Move-point-symbols-%28water-valves%29-along-a-line-%28waterline%29-depending-on-scale-tp2536075p2536075.html Sent from the Mapserver - User mailing list archive at Nabble.com. From romero619 at hotmail.com Wed Mar 25 21:46:21 2009 From: romero619 at hotmail.com (P. R.M.) Date: Wed, 25 Mar 2009 21:46:21 -0700 Subject: [mapserver-users] nquery against mysql is ignoring 1 row from resultset Message-ID: I need help figuring out why mapserver is ignoring one row from my resultset. Ive attached all of the necessary files. testdata.sql - sql commands to setup a simple mysql table with some test data test.map - my mapfile test.ovf - the ogr/mysql file testmap.html - the html template file out.html - the resulting html output my output, out.html, should be an html imagemap with 4 'areas'that match the 4 rows in my db table, but only three areas are being created. mapserver is correctly drawing 4 symbols for the 4 rows in my database table, but it misses the 2nd row in the output when parsing the [featureset][/featureset] sections of the html template file. Can anyone reproduce this problem? Im running the latest version of mapserver on linux, built from source. Please help, Thanks P.Romero _________________________________________________________________ Internet Explorer 8 ? Now Available. Faster, safer, easier. http://clk.atdmt.com/MRT/go/141323790/direct/01/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: test.map URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: test.ovf URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: testdata.sql URL: From francesco.pirotti at unipd.it Wed Mar 25 23:18:13 2009 From: francesco.pirotti at unipd.it (francesco) Date: Thu, 26 Mar 2009 07:18:13 +0100 Subject: [mapserver-users] Installation Problems In-Reply-To: <1238005177.d8fabf4Z1568080@students.niu.edu> References: <1238005177.d8fabf4Z1568080@students.niu.edu> Message-ID: <49CB1E25.3000100@unipd.it> Praveen, I do not see an error listed in the configuration summary, please include a full log of installation problem. Francesco Pirotti Praveen Kumar Koppula ha scritto: > Hello, > I am having problem installing mapserver which is as follows. > I have already installed png,freetype and pthreads libraries. > configuration with libpng,zlib and freetype was successfull. > when i am trying to configure GD the error occured which is listed below for your reference. > ** Configuration summary for gd 2.0.35: > > Support for PNG library: yes > Support for JPEG library: no > Support for Freetype 2.x library: yes > Support for Fontconfig library: no > Support for Xpm library: no > Support for pthreads: yes > > configure: creating ./config.status > config.status: creating Makefile > config.status: creating config/Makefile > config.status: creating config/gdlib-config > config.status: creating test/Makefile > config.status: creating config.h > config.status: config.h is unchanged > config.status: executing depfiles commands > > > I have also tried installing the rpm library and it says cannot create transaction lock control and also when i am trying to query the installed rpm libraries with rpm -qa, in that list i can find all the required libraries installed. > > Kindly help me in this regard. > > Regards > Praveen > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > From rpha88 at gmail.com Thu Mar 26 00:35:19 2009 From: rpha88 at gmail.com (rohan phatak) Date: Thu, 26 Mar 2009 13:05:19 +0530 Subject: [mapserver-users] WMS/WFS layer in GMap Message-ID: Hello friends, I am using GMap application of map server .I have map file and i want to publish on the web so that i can access using pda/mobile so my question is how to add wms /wfs client in mapfile and how to publish map file on web? thanks in advance : ) -------------- next part -------------- An HTML attachment was scrubbed... URL: From syedmohseen56 at gmail.com Thu Mar 26 04:16:29 2009 From: syedmohseen56 at gmail.com (syed mohseen) Date: Thu, 26 Mar 2009 16:46:29 +0530 Subject: [mapserver-users] problem using php header() in fgs Message-ID: <8fd0eae0903260416j392140ej77a159b2d679572b@mail.gmail.com> hi all, i am using fgs mapserver5.0.2 i just want to load postdata when i hit the back button of my browser. when i add header(location="http://localhost:8080/search.php) i shows the warning, the uotput has already been sent. any suggestions regarding this will be appreciated thanks in advance syedmohseen -------------- next part -------------- An HTML attachment was scrubbed... URL: From adube at mapgears.com Thu Mar 26 05:52:54 2009 From: adube at mapgears.com (Alexandre Dube) Date: Thu, 26 Mar 2009 08:52:54 -0400 Subject: [mapserver-users] WMS/WFS layer in GMap In-Reply-To: References: Message-ID: <49CB7AA6.7080201@mapgears.com> Hi, For client : http://mapserver.org/ogc/wms_client.html http://mapserver.org/ogc/wfs_client.html For server : http://mapserver.org/ogc/wms_server.html http://mapserver.org/ogc/wfs_server.html Regards, Alexandre rohan phatak wrote: > Hello friends, > I am using GMap application of map server .I have map file and i want > to publish on the web so that i can access using pda/mobile so my > question is how to add wms /wfs client in mapfile and how to publish > map file on web? > thanks in advance : ) > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alexandre Dub? Mapgears www.mapgears.com From jmckenna at gatewaygeomatics.com Thu Mar 26 06:00:47 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 26 Mar 2009 09:00:47 -0400 Subject: [mapserver-users] WMS/WFS layer in GMap In-Reply-To: References: Message-ID: <49CB7C7F.3070401@gatewaygeomatics.com> rohan phatak wrote: > Hello friends, > I am using GMap application of map server .I have map file and i want to > publish on the web so that i can access using pda/mobile so my question > is how to add wms /wfs client in mapfile and how to publish map file on web? > thanks in advance : ) > Also, besides using the documents that Alexandre referred to, the GMap package available for download for MS4W comes with mapfiles that are already configured for WMS and WFS...so even if you are using Unix you can download that package and take a look at the mapfiles. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From George.McCown at jjg.com Thu Mar 26 06:44:07 2009 From: George.McCown at jjg.com (McCown, George) Date: Thu, 26 Mar 2009 09:44:07 -0400 Subject: [mapserver-users] search and zoom Message-ID: Hello Everyone! I have my mapserver application working fine. Now I'd like to implement a search and zoom-to tool. Can someone point me some documentation that shows you how to do this? Thanks! George McCown GIS Analyst 1 george.mccown&jjg.com 678.333.0228 (Direct) 678-333-0826 (Fax) Jordan, Jones & Goulding 6801 Governors Lake Parkway, Building 200 Norcross, Ga 30071 www.jjg.com This email and any files transmitted with it are intended solely for the use of the individual and/or entity to whom it is addressed. Unless noted otherwise above, any distribution or copying of this email is strictly prohibited. This email IS NOT a binding agreement on behalf of JJG. If you have received this message in error, please immediately notify the sender and delete this message from your computer. Jordan, Jones and Goulding, Inc., 6801 Governors Lake Pkwy, Norcross, Ga. 30071 www.jjg.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jkapalczynski at ci.maple-grove.mn.us Thu Mar 26 07:13:56 2009 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Thu, 26 Mar 2009 09:13:56 -0500 Subject: [mapserver-users] Labeling Message-ID: Is there any way to eliminate the decimal places here...I looked online but was unable to find anything. Thanks The fields I am labeling are numeric...so I get this 3434.000000000000 1232222.000000000000 I am looking to drop all the extra decimal places... Or maybe set it to keep two 3434.00 THANKS LAYER # Maple Grove Parcels NAME Parcel_Labels DATA './parcels.shp' STATUS DEFAULT TYPE annotation MAXSCALE 2000 MINSCALE 100 LABELITEM 'EMV_LAND' LABELCACHE ON CLASS COLOR -1 -1 -1 LABEL POSITION UC TYPE TRUETYPE FONT vera_sans MAXSIZE 7 SIZE 7 OFFSET 0 10 MINSIZE 4 #ANTIALIAS TRUE COLOR 0 0 0 OUTLINECOLOR 255 255 128 BUFFER 2 END END END # Maple Grove Parcels -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Thu Mar 26 07:35:31 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Thu, 26 Mar 2009 09:35:31 -0500 Subject: [mapserver-users] search and zoom In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA312@s-sp22.pca.state.mn.us> I would start with a look at the examples at OpenLayers http://www.openlayers.org/ or Mapfish http://trac.mapfish.org/trac/mapfish/wiki David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of McCown, George Sent: Thursday, March 26, 2009 8:44 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] search and zoom Hello Everyone! I have my mapserver application working fine. Now I'd like to implement a search and zoom-to tool. Can someone point me some documentation that shows you how to do this? Thanks! George McCown GIS Analyst 1 george.mccown&jjg.com 678.333.0228 (Direct) 678-333-0826 (Fax) Jordan, Jones & Goulding 6801 Governors Lake Parkway, Building 200 Norcross, Ga 30071 www.jjg.com This email and any files transmitted with it are intended solely for the use of the individual and/or entity to whom it is addressed. Unless noted otherwise above, any distribution or copying of this email is strictly prohibited. This email IS NOT a binding agreement on behalf of JJG. If you have received this message in error, please immediately notify the sender and delete this message from your computer. Jordan, Jones and Goulding, Inc., 6801 Governors Lake Pkwy, Norcross, Ga. 30071 www.jjg.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Thu Mar 26 07:37:45 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Thu, 26 Mar 2009 09:37:45 -0500 Subject: [mapserver-users] Labeling In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA313@s-sp22.pca.state.mn.us> It is always an option to create a string column and then populate it with your numbers formatted the way that you want them to appear. I am sure that you realize this, but it is something that I have done in the past. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay Kapalczynski Sent: Thursday, March 26, 2009 9:14 AM To: 'mapserver-users at lists.osgeo.org' Subject: [mapserver-users] Labeling Is there any way to eliminate the decimal places here...I looked online but was unable to find anything. Thanks The fields I am labeling are numeric...so I get this 3434.000000000000 1232222.000000000000 I am looking to drop all the extra decimal places... Or maybe set it to keep two 3434.00 THANKS LAYER # Maple Grove Parcels NAME Parcel_Labels DATA './parcels.shp' STATUS DEFAULT TYPE annotation MAXSCALE 2000 MINSCALE 100 LABELITEM 'EMV_LAND' LABELCACHE ON CLASS COLOR -1 -1 -1 LABEL POSITION UC TYPE TRUETYPE FONT vera_sans MAXSIZE 7 SIZE 7 OFFSET 0 10 MINSIZE 4 #ANTIALIAS TRUE COLOR 0 0 0 OUTLINECOLOR 255 255 128 BUFFER 2 END END END # Maple Grove Parcels -------------- next part -------------- An HTML attachment was scrubbed... URL: From pmoen at offroadsoftware.com Thu Mar 26 07:41:22 2009 From: pmoen at offroadsoftware.com (Paul Moen) Date: Thu, 26 Mar 2009 09:41:22 -0500 Subject: [mapserver-users] Include directive and mapscript Message-ID: One was copied and pasted and one was incorrectly typed by me in the email. The fedlands.map Name should have been typed "All Public Land Management Agencies". The only difference is the mysterious disappearance of the GROUP directive. I will post more when I have a chance to dig into this deeper. For now, I just put the layer directly in the main map file, instead of using the INCLUDE. Thanks, Paul On 3/24/09 11:08 AM, "Yewondwossen Assefa" wrote: > Not sure why would that happen. > Just as a note, the 2 layers you sent in this e-mail have a different > values for the NAME parameter. Is it possible that you do not include > the correct layer? > > Paul Moen wrote: > > Here is the fedlands.map that I am including. > > > > LAYER > > PROJECTION > > "init=epsg:4326" > > END > > GROUP "Political Boundaries" I typed wrong, the following line should be: NAME "All Public Land Management Agencies" > > NAME "Public Land Management Agencies" > > TYPE RASTER > > STATUS ON > > CONNECTION > > "http://206.16.47.174:80/wmsconnector/com.esri.wms.Esrimap/BLM_SURFACE_MGT_AGY?reaspect=false > " > > > > CONNECTIONTYPE WMS > > METADATA > > "wms_srs" "EPSG:4326" > > "wms_name" "SMA_ALL" > > "wms_server_version" "1.1.1" > > "wms_format" "image/gif" > > END > > END > > > > This is the section of the mapfile that the include is located. > > > > > > INCLUDE 'fedlands.map' > > > > > > The output of the map->save function gives the layer below, which no > > longer has the GROUP. Somewhere along the line the GROUP > directive is > > disappearing from my layer when it is included. > > > > LAYER > > CONNECTION > > "http://206.16.47.174:80/wmsconnector/com.esri.wms.Esrimap/BLM_SURFACE_MGT_AGY?reaspect=false > " > > > > CONNECTIONTYPE WMS > > METADATA > > "wms_srs" "EPSG:4326" > > "wms_name" "SMA_ALL" > > "wms_format" "image/gif" > > "wms_server_version" "1.1.1" > > END > > NAME "All Public Land Management Agencies" > > PROJECTION > > "init=epsg:4326" > > END > > STATUS ON > > TYPE RASTER > > UNITS METERS > > END > > > > > > Any Ideas? > > > > Paul > > > > > > > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > _______________________________________________ > 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 jkapalczynski at ci.maple-grove.mn.us Thu Mar 26 08:57:39 2009 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Thu, 26 Mar 2009 10:57:39 -0500 Subject: [mapserver-users] Labeling In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA313@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA313@s-sp22.pca.state.mn.us> Message-ID: Yea I can do that but then I have to build processes to do all the converting... I want to read this data live. Anyone else have any ideas? Thanks One Last thought, don't know if I should enter a new topic... I have three labels I want to label. Right now I am using an Offset to push one above, and one below (UC, CC, LC) with offsets. And as such these are three separate layers in my app I tried to combine all three into one map file but it only labels the first one (I copied the original code in the original email and simply changed the label field)(no matter what I do it just labels the first one it reads) Can I combine these into one and still have them label on three different rows Value 1 Value 2 Value 3 Can I concatenate like this? LABELITEM 'Value 1' & 'VALUE 2' & 'VALUE 3' But how would I specify they are supposed to create 3 lines??? THANKS From: Fawcett, David [mailto:David.Fawcett at state.mn.us] Sent: Thursday, March 26, 2009 9:38 AM To: Jay Kapalczynski; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Labeling It is always an option to create a string column and then populate it with your numbers formatted the way that you want them to appear. I am sure that you realize this, but it is something that I have done in the past. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay Kapalczynski Sent: Thursday, March 26, 2009 9:14 AM To: 'mapserver-users at lists.osgeo.org' Subject: [mapserver-users] Labeling Is there any way to eliminate the decimal places here...I looked online but was unable to find anything. Thanks The fields I am labeling are numeric...so I get this 3434.000000000000 1232222.000000000000 I am looking to drop all the extra decimal places... Or maybe set it to keep two 3434.00 THANKS LAYER # Maple Grove Parcels NAME Parcel_Labels DATA './parcels.shp' STATUS DEFAULT TYPE annotation MAXSCALE 2000 MINSCALE 100 LABELITEM 'EMV_LAND' LABELCACHE ON CLASS COLOR -1 -1 -1 LABEL POSITION UC TYPE TRUETYPE FONT vera_sans MAXSIZE 7 SIZE 7 OFFSET 0 10 MINSIZE 4 #ANTIALIAS TRUE COLOR 0 0 0 OUTLINECOLOR 255 255 128 BUFFER 2 END END END # Maple Grove Parcels -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Thu Mar 26 09:46:05 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 26 Mar 2009 11:46:05 -0500 Subject: [mapserver-users] Labeling In-Reply-To: References: <6246727221874A4FB8D3F9BBC37D9BD5056DA313@s-sp22.pca.state.mn.us> Message-ID: <49CB6B2B.5157.008F.0@dnr.state.mn.us> The decimal truncation simply can't be done with a shapefile at the moment. There's a ticket in place to add this functionality but it will be a 6.0 improvement. Wish I have better news. One the other question you can use the class TEXT property along with a wrap character to achieve the multiline labels. E.g.: CLASS ... TEXT "[col1]|[col2]|[col3]" LABEL ... WRAP "|" END END and that should get you a multi-line label based on 3 attributes. Steve >>> On 3/26/2009 at 10:57 AM, in message , Jay Kapalczynski wrote: > Yea I can do that but then I have to build processes to do all the > converting... > I want to read this data live. > > Anyone else have any ideas? > > Thanks > > One Last thought, don't know if I should enter a new topic... > > I have three labels I want to label. Right now I am using an Offset to push > one above, and one below (UC, CC, LC) with offsets. > And as such these are three separate layers in my app > I tried to combine all three into one map file but it only labels the first > one (I copied the original code in the original email and simply changed the > label field)(no matter what I do it just labels the first one it reads) > > Can I combine these into one and still have them label on three different > rows > > Value 1 > Value 2 > Value 3 > > Can I concatenate like this? > > LABELITEM 'Value 1' & 'VALUE 2' & 'VALUE 3' > > But how would I specify they are supposed to create 3 lines??? > > THANKS > > > From: Fawcett, David [mailto:David.Fawcett at state.mn.us] > Sent: Thursday, March 26, 2009 9:38 AM > To: Jay Kapalczynski; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Labeling > > It is always an option to create a string column and then populate it with > your numbers formatted the way that you want them to appear. I am sure that > you realize this, but it is something that I have done in the past. > > David. > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay > Kapalczynski > Sent: Thursday, March 26, 2009 9:14 AM > To: 'mapserver-users at lists.osgeo.org' > Subject: [mapserver-users] Labeling > > Is there any way to eliminate the decimal places here...I looked online but > was unable to find anything. > > Thanks > > The fields I am labeling are numeric...so I get this > > 3434.000000000000 > 1232222.000000000000 > > I am looking to drop all the extra decimal places... > > Or maybe set it to keep two > > 3434.00 > > THANKS > > > > LAYER # Maple Grove Parcels > NAME Parcel_Labels > DATA './parcels.shp' > STATUS DEFAULT > TYPE annotation > MAXSCALE 2000 > MINSCALE 100 > LABELITEM 'EMV_LAND' > > > LABELCACHE ON > CLASS > COLOR -1 -1 -1 > LABEL > POSITION UC > TYPE TRUETYPE > FONT vera_sans > MAXSIZE 7 > SIZE 7 > OFFSET 0 10 > MINSIZE 4 > #ANTIALIAS TRUE > COLOR 0 0 0 > OUTLINECOLOR 255 255 128 > BUFFER 2 > END > END > END # Maple Grove Parcels From Steve.Lime at dnr.state.mn.us Thu Mar 26 09:57:23 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 26 Mar 2009 11:57:23 -0500 Subject: [mapserver-users] Truncating access.log file In-Reply-To: References: Message-ID: <49CB6DD1.5157.008F.0@dnr.state.mn.us> That's a general webserver question more than something specific to MapServer. If you Google "rotate apache logs" you'll find tons of information. Steve >>> On 3/24/2009 at 10:32 AM, in message , Robert Hicks wrote: > Hello all, is there a way to truncate the access.log for Mapserver once it > gets to a certain size? My log file get extremely large and I know webapps > that use log4j have a properties file you can just set the limit in there. > Is there anything similar for Mapserver? > Thanks! From traviskirstine at gmail.com Thu Mar 26 11:11:59 2009 From: traviskirstine at gmail.com (Travis Kirstine) Date: Thu, 26 Mar 2009 14:11:59 -0400 Subject: [mapserver-users] ogr connection to postgis problems In-Reply-To: <200903252105.52589.even.rouault@mines-paris.org> References: <681116190903250657y2bcc3604qb1df71e0b83e81d8@mail.gmail.com> <49CA5061.7060509@swoodbridge.com> <681116190903251151i5fb79069t811ca727dc225753@mail.gmail.com> <200903252105.52589.even.rouault@mines-paris.org> Message-ID: <681116190903261111s10ec5cdcmffac37c59b9768a7@mail.gmail.com> Even I'm using GDAL 1.5.1, released 2008/03/14 This is strange, I can get the -sql to return result but as soon as I attempt to convert the result to a shp I get a failure [root at server34 support]# ogrinfo PG:'dbname=fbs user=webserver password=topsecre t' -sql "select * from canadian_municipalities WHERE name = 'OTTAWA'" | more INFO: Open of `PG:dbname=fbs user=webserver password=topsecret' using driver `PostgreSQL' successful. Layer name: sql_statement Geometry: Unknown (any) Feature Count: 1 Extent: (-75.818115, 45.319733) - (-75.590118, 45.468719) Layer SRS WKT: (unknown) Geometry Column = the_geom gid: Integer (0.0) prov: String (0.0) name: String (0.0) name_1: String (0.0) OGRFeature(sql_statement):0 gid (Integer) = 390 prov (String) = ON name (String) = OTTAWA name_1 (String) = OTTAWA-CARLETON REGIONAL MUNICIPALITY MULTIPOLYGON (((-75.747100987514116 45.357929043660768,-75.747139025748226 45. 357913967904082,-75.748404955984952 45.357349002525353,-75.749320978319517 45.35 6940963375777,-75.750800938009831 45.356312037549................... ##################### ogr2ogr ottawa.shp PG:'dbname=fbs user=webserver password=topsecret' -sql "select * from canadian_municipalities WHERE name = 'OTTAWA'" FAILURE: Unable to open datasource `PG:dbname=fbs user=webserver password=topsecret' with the following drivers. 2009/3/25 Even Rouault : > Travis, > > this is really weird. I've reviewed a bit the source of the PG driver and the > influence of the read-only mode vs update mode is very thin. The only > behavioural differences are : > 1) the result of TestCapabilities() method depend on it, but ogrinfo doesn't > request layer TestCapabilities(). > 2) if the PG database has no valid tables (for OGR), its opening will fail in > read-only mode, whereas it would succeed in update mode. > > So in your use case, provided that there's at least one table reported by > ogrinfo in update mode, I don't understand why it fails. What's the version > of GDAL/OGR you're using ? > > Le Wednesday 25 March 2009 19:51:39 Travis Kirstine, vous avez ?crit?: >> 2009/3/25 Stephen Woodbridge : >> > Jeff McKenna wrote: >> >> Travis Kirstine wrote: >> >>> I am trying to test a connection to a postgis db ?using ogrinfo and am >> >>> having difficulties. ?I am running the command on the same server that >> >>> hosts the postgis db. ?I checked the pg_hba.config file to see if it >> >>> allows local connections and everything looks OK but I still get >> >>> "Failure" when connecting with ogr. >> >>> >> >>> Am I missing something? >> >>> >> >>> >> >>> command >> >>> ogrinfo -ro PG:'host=server34 dbname=earth user=bob password=suruncle' >> >> >> >> My thoughts: >> >> >> >> - since you are on the same server, use host=127.0.0.1 >> >> - include the port parameter (usually port=5432) >> > >> > Have you try from the command line: >> > >> > psql -h server34 -U bob earth >> > psql -h localhost -U bob earth >> > psql -U bob earth >> > >> > Should prompt you for the password. >> > >> > Only the last on will use the local socket or named pipe. If the last one >> > works the try: >> > >> > ogrinfo -ro PG:'host= dbname=earth user=bob password=suruncle' >> > ogrinfo -ro PG:'dbname=earth user=bob password=suruncle' >> > >> > and see if either of these work. >> >> I got the query / connection to work, it seems that the -ro flag was >> causing the problem >> which is strange. >> >> this works >> ogrinfo -sql 'SELECT * FROM counties' PG:'host= dbname=earth user=bob >> password=suruncle' >> >> this dosen't >> ogrinfo -ro -sql 'SELECT * FROM counties' PG:'host= dbname=earth >> user=bob password=suruncle' >> >> I'm not sure what the problem is as the user bob has su privileges >> >> >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?List of roles >> ?Role name | Superuser | Create role | Create DB | Connections | Member of >> -----------+-----------+-------------+-----------+-------------+----------- >> ?postgres ?| yes ? ? ? | yes ? ? ? ? | yes ? ? ? | no limit ? ?| >> ?bob ? ? ? ? ?| yes ? ? ? | no ? ? ? ? ?| yes ? ? ? | no limit ? ?| > > > -- Travis K. Toronto, Canada ------------------------------------------------------------ "She knows there's no success like failure and that failure's no success at all." -Bob Dylan- ------------------------------------------------------------ From traviskirstine at gmail.com Thu Mar 26 11:12:22 2009 From: traviskirstine at gmail.com (Travis Kirstine) Date: Thu, 26 Mar 2009 14:12:22 -0400 Subject: [mapserver-users] ogr connection to postgis problems In-Reply-To: <200903252105.52589.even.rouault@mines-paris.org> References: <681116190903250657y2bcc3604qb1df71e0b83e81d8@mail.gmail.com> <49CA5061.7060509@swoodbridge.com> <681116190903251151i5fb79069t811ca727dc225753@mail.gmail.com> <200903252105.52589.even.rouault@mines-paris.org> Message-ID: <681116190903261112y13200f78l87a05f70e73f91f3@mail.gmail.com> Even I'm using GDAL 1.5.1, released 2008/03/14 This is strange, I can get the -sql to return result but as soon as I attempt to convert the result to a shp I get a failure [root at server34 support]# ogrinfo PG:'dbname=fbs user=webserver password=topsecre t' -sql "select * from canadian_municipalities WHERE name = 'OTTAWA'" | more INFO: Open of `PG:dbname=fbs user=webserver password=topsecret' using driver `PostgreSQL' successful. Layer name: sql_statement Geometry: Unknown (any) Feature Count: 1 Extent: (-75.818115, 45.319733) - (-75.590118, 45.468719) Layer SRS WKT: (unknown) Geometry Column = the_geom gid: Integer (0.0) prov: String (0.0) name: String (0.0) name_1: String (0.0) OGRFeature(sql_statement):0 gid (Integer) = 390 prov (String) = ON name (String) = OTTAWA name_1 (String) = OTTAWA-CARLETON REGIONAL MUNICIPALITY MULTIPOLYGON (((-75.747100987514116 45.357929043660768,-75.747139025748226 45. 357913967904082,-75.748404955984952 45.357349002525353,-75.749320978319517 45.35 6940963375777,-75.750800938009831 45.356312037549................... ##################### ogr2ogr ottawa.shp PG:'dbname=fbs user=webserver password=topsecret' -sql "select * from canadian_municipalities WHERE name = 'OTTAWA'" FAILURE: Unable to open datasource `PG:dbname=fbs user=webserver password=topsecret' with the following drivers. 2009/3/25 Even Rouault : > Travis, > > this is really weird. I've reviewed a bit the source of the PG driver and the > influence of the read-only mode vs update mode is very thin. The only > behavioural differences are : > 1) the result of TestCapabilities() method depend on it, but ogrinfo doesn't > request layer TestCapabilities(). > 2) if the PG database has no valid tables (for OGR), its opening will fail in > read-only mode, whereas it would succeed in update mode. > > So in your use case, provided that there's at least one table reported by > ogrinfo in update mode, I don't understand why it fails. What's the version > of GDAL/OGR you're using ? > > Le Wednesday 25 March 2009 19:51:39 Travis Kirstine, vous avez ?crit?: >> 2009/3/25 Stephen Woodbridge : >> > Jeff McKenna wrote: >> >> Travis Kirstine wrote: >> >>> I am trying to test a connection to a postgis db ?using ogrinfo and am >> >>> having difficulties. ?I am running the command on the same server that >> >>> hosts the postgis db. ?I checked the pg_hba.config file to see if it >> >>> allows local connections and everything looks OK but I still get >> >>> "Failure" when connecting with ogr. >> >>> >> >>> Am I missing something? >> >>> >> >>> >> >>> command >> >>> ogrinfo -ro PG:'host=server34 dbname=earth user=bob password=suruncle' >> >> >> >> My thoughts: >> >> >> >> - since you are on the same server, use host=127.0.0.1 >> >> - include the port parameter (usually port=5432) >> > >> > Have you try from the command line: >> > >> > psql -h server34 -U bob earth >> > psql -h localhost -U bob earth >> > psql -U bob earth >> > >> > Should prompt you for the password. >> > >> > Only the last on will use the local socket or named pipe. If the last one >> > works the try: >> > >> > ogrinfo -ro PG:'host= dbname=earth user=bob password=suruncle' >> > ogrinfo -ro PG:'dbname=earth user=bob password=suruncle' >> > >> > and see if either of these work. >> >> I got the query / connection to work, it seems that the -ro flag was >> causing the problem >> which is strange. >> >> this works >> ogrinfo -sql 'SELECT * FROM counties' PG:'host= dbname=earth user=bob >> password=suruncle' >> >> this dosen't >> ogrinfo -ro -sql 'SELECT * FROM counties' PG:'host= dbname=earth >> user=bob password=suruncle' >> >> I'm not sure what the problem is as the user bob has su privileges >> >> >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?List of roles >> ?Role name | Superuser | Create role | Create DB | Connections | Member of >> -----------+-----------+-------------+-----------+-------------+----------- >> ?postgres ?| yes ? ? ? | yes ? ? ? ? | yes ? ? ? | no limit ? ?| >> ?bob ? ? ? ? ?| yes ? ? ? | no ? ? ? ? ?| yes ? ? ? | no limit ? ?| > > > -- Travis K. Toronto, Canada ------------------------------------------------------------ "She knows there's no success like failure and that failure's no success at all." -Bob Dylan- ------------------------------------------------------------ From MarkVolz at co.lyon.mn.us Thu Mar 26 11:29:45 2009 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Thu, 26 Mar 2009 13:29:45 -0500 Subject: [mapserver-users] RE: Labeling issue mutli lines and precision In-Reply-To: <20090326160156.4B9B1E0181B@lists.osgeo.org> References: <20090326160156.4B9B1E0181B@lists.osgeo.org> Message-ID: <3D56274B4A7874468F58FADDBFD098010708480F@llmhs02.r8nssis.local> In response to Jay's Labeling question: I have multi line / field labels working: In this example I am stringing together both the name and the parcel id as a label, then splitting the label into two lines CLASS NAME 'Parcels' TEXT ([TXLname] * [PARCEL_ID]) #label LABEL WRAP "*" #select character to wrap on END #label END #class I tried using precision in the query results, I have not tried it as part of a label [item name="NORTHING" precision=2] Mark Volz GIS Specialist Lyon County, MN (507) 532-8218 -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of mapserver-users-request at lists.osgeo.org Sent: Thursday, March 26, 2009 11:02 AM To: mapserver-users at lists.osgeo.org Subject: mapserver-users Digest, Vol 14, Issue 80 Send mapserver-users mailing list submissions to mapserver-users at lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/mapserver-users or, via email, send a message with subject or body 'help' to mapserver-users-request at lists.osgeo.org You can reach the person managing the list at mapserver-users-owner at lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of mapserver-users digest..." Today's Topics: 1. RE: Labeling (Jay Kapalczynski) ---------------------------------------------------------------------- Message: 1 Date: Thu, 26 Mar 2009 10:57:39 -0500 From: Jay Kapalczynski Subject: RE: [mapserver-users] Labeling To: "'Fawcett, David'" , "mapserver-users at lists.osgeo.org" Message-ID: Content-Type: text/plain; charset="us-ascii" Yea I can do that but then I have to build processes to do all the converting... I want to read this data live. Anyone else have any ideas? Thanks One Last thought, don't know if I should enter a new topic... I have three labels I want to label. Right now I am using an Offset to push one above, and one below (UC, CC, LC) with offsets. And as such these are three separate layers in my app I tried to combine all three into one map file but it only labels the first one (I copied the original code in the original email and simply changed the label field)(no matter what I do it just labels the first one it reads) Can I combine these into one and still have them label on three different rows Value 1 Value 2 Value 3 Can I concatenate like this? LABELITEM 'Value 1' & 'VALUE 2' & 'VALUE 3' But how would I specify they are supposed to create 3 lines??? THANKS From: Fawcett, David [mailto:David.Fawcett at state.mn.us] Sent: Thursday, March 26, 2009 9:38 AM To: Jay Kapalczynski; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Labeling It is always an option to create a string column and then populate it with your numbers formatted the way that you want them to appear. I am sure that you realize this, but it is something that I have done in the past. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay Kapalczynski Sent: Thursday, March 26, 2009 9:14 AM To: 'mapserver-users at lists.osgeo.org' Subject: [mapserver-users] Labeling Is there any way to eliminate the decimal places here...I looked online but was unable to find anything. Thanks The fields I am labeling are numeric...so I get this 3434.000000000000 1232222.000000000000 I am looking to drop all the extra decimal places... Or maybe set it to keep two 3434.00 THANKS LAYER # Maple Grove Parcels NAME Parcel_Labels DATA './parcels.shp' STATUS DEFAULT TYPE annotation MAXSCALE 2000 MINSCALE 100 LABELITEM 'EMV_LAND' LABELCACHE ON CLASS COLOR -1 -1 -1 LABEL POSITION UC TYPE TRUETYPE FONT vera_sans MAXSIZE 7 SIZE 7 OFFSET 0 10 MINSIZE 4 #ANTIALIAS TRUE COLOR 0 0 0 OUTLINECOLOR 255 255 128 BUFFER 2 END END END # Maple Grove Parcels -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090326/6199f92 b/attachment-0001.html ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 14, Issue 80 *********************************************** From jkapalczynski at ci.maple-grove.mn.us Thu Mar 26 12:00:33 2009 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Thu, 26 Mar 2009 14:00:33 -0500 Subject: [mapserver-users] RE: Labeling issue mutli lines and precision In-Reply-To: <3D56274B4A7874468F58FADDBFD098010708480F@llmhs02.r8nssis.local> References: <20090326160156.4B9B1E0181B@lists.osgeo.org> <3D56274B4A7874468F58FADDBFD098010708480F@llmhs02.r8nssis.local> Message-ID: This works ..... BUT???.... For some reason the 2nd and 3rd line seem indented a bit Result: 1982 19961001 $ 250854 Do you know what could be causing this indent? This is my Code: LAYER # Maple Grove Parcels NAME Parcel_Labels DATA './parcels.shp' STATUS DEFAULT TYPE annotation MAXSCALE 2000 MINSCALE 100 LABELCACHE ON CLASS TEXT ([YEAR_BUI_1] * [SALE_DATE] * [SALE_VAL_1]) #label LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 128 WRAP "*" #select character to wrap on END #label END #class END # Maple Grove Parcels PRECISION: As for the Precision I have also done that on the query results....dont really know if or how I can use that in the Labeling....for now I just converted the test data. But in a real world setting I am not going to be able to do that. I will be reading live... If I have to I can created another database that has links and convert it there....but would rather bypass all that additional work... THANKS EVERYONE FOR YOUR HELP IT IS GREATLY APPRECIATED.... THANKS MARK -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz Sent: Thursday, March 26, 2009 1:30 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] RE: Labeling issue mutli lines and precision In response to Jay's Labeling question: I have multi line / field labels working: In this example I am stringing together both the name and the parcel id as a label, then splitting the label into two lines CLASS NAME 'Parcels' TEXT ([TXLname] * [PARCEL_ID]) #label LABEL WRAP "*" #select character to wrap on END #label END #class I tried using precision in the query results, I have not tried it as part of a label [item name="NORTHING" precision=2] Mark Volz GIS Specialist Lyon County, MN (507) 532-8218 -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of mapserver-users-request at lists.osgeo.org Sent: Thursday, March 26, 2009 11:02 AM To: mapserver-users at lists.osgeo.org Subject: mapserver-users Digest, Vol 14, Issue 80 Send mapserver-users mailing list submissions to mapserver-users at lists.osgeo.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/mapserver-users or, via email, send a message with subject or body 'help' to mapserver-users-request at lists.osgeo.org You can reach the person managing the list at mapserver-users-owner at lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of mapserver-users digest..." Today's Topics: 1. RE: Labeling (Jay Kapalczynski) ---------------------------------------------------------------------- Message: 1 Date: Thu, 26 Mar 2009 10:57:39 -0500 From: Jay Kapalczynski Subject: RE: [mapserver-users] Labeling To: "'Fawcett, David'" , "mapserver-users at lists.osgeo.org" Message-ID: Content-Type: text/plain; charset="us-ascii" Yea I can do that but then I have to build processes to do all the converting... I want to read this data live. Anyone else have any ideas? Thanks One Last thought, don't know if I should enter a new topic... I have three labels I want to label. Right now I am using an Offset to push one above, and one below (UC, CC, LC) with offsets. And as such these are three separate layers in my app I tried to combine all three into one map file but it only labels the first one (I copied the original code in the original email and simply changed the label field)(no matter what I do it just labels the first one it reads) Can I combine these into one and still have them label on three different rows Value 1 Value 2 Value 3 Can I concatenate like this? LABELITEM 'Value 1' & 'VALUE 2' & 'VALUE 3' But how would I specify they are supposed to create 3 lines??? THANKS From: Fawcett, David [mailto:David.Fawcett at state.mn.us] Sent: Thursday, March 26, 2009 9:38 AM To: Jay Kapalczynski; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Labeling It is always an option to create a string column and then populate it with your numbers formatted the way that you want them to appear. I am sure that you realize this, but it is something that I have done in the past. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay Kapalczynski Sent: Thursday, March 26, 2009 9:14 AM To: 'mapserver-users at lists.osgeo.org' Subject: [mapserver-users] Labeling Is there any way to eliminate the decimal places here...I looked online but was unable to find anything. Thanks The fields I am labeling are numeric...so I get this 3434.000000000000 1232222.000000000000 I am looking to drop all the extra decimal places... Or maybe set it to keep two 3434.00 THANKS LAYER # Maple Grove Parcels NAME Parcel_Labels DATA './parcels.shp' STATUS DEFAULT TYPE annotation MAXSCALE 2000 MINSCALE 100 LABELITEM 'EMV_LAND' LABELCACHE ON CLASS COLOR -1 -1 -1 LABEL POSITION UC TYPE TRUETYPE FONT vera_sans MAXSIZE 7 SIZE 7 OFFSET 0 10 MINSIZE 4 #ANTIALIAS TRUE COLOR 0 0 0 OUTLINECOLOR 255 255 128 BUFFER 2 END END END # Maple Grove Parcels -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090326/6199f92 b/attachment-0001.html ------------------------------ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users End of mapserver-users Digest, Vol 14, Issue 80 *********************************************** _______________________________________________ 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 jkapalczynski at ci.maple-grove.mn.us Thu Mar 26 12:14:30 2009 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Thu, 26 Mar 2009 14:14:30 -0500 Subject: [mapserver-users] Labeling In-Reply-To: <49CB6B2B.5157.008F.0@dnr.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5056DA313@s-sp22.pca.state.mn.us> <49CB6B2B.5157.008F.0@dnr.state.mn.us> Message-ID: Thank you all for your help... No worries on the decimal truncation....will patiently wait for the 6.0 release....in the mean time I have just updated the test data to a string (text) As for the multi-line....Thank you Steve and Mark Volz for your thoughts... They are working although it seems to indent the 2nd and 3rd line...I posted this on the other email sent by Mark Volz.... Any thoughts.... -----Original Message----- From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] Sent: Thursday, March 26, 2009 11:46 AM To: Jay Kapalczynski; mapserver-users at lists.osgeo.org; David' 'Fawcett Subject: RE: [mapserver-users] Labeling The decimal truncation simply can't be done with a shapefile at the moment. There's a ticket in place to add this functionality but it will be a 6.0 improvement. Wish I have better news. One the other question you can use the class TEXT property along with a wrap character to achieve the multiline labels. E.g.: CLASS ... TEXT "[col1]|[col2]|[col3]" LABEL ... WRAP "|" END END and that should get you a multi-line label based on 3 attributes. Steve >>> On 3/26/2009 at 10:57 AM, in message , Jay Kapalczynski wrote: > Yea I can do that but then I have to build processes to do all the > converting... > I want to read this data live. > > Anyone else have any ideas? > > Thanks > > One Last thought, don't know if I should enter a new topic... > > I have three labels I want to label. Right now I am using an Offset to push > one above, and one below (UC, CC, LC) with offsets. > And as such these are three separate layers in my app > I tried to combine all three into one map file but it only labels the first > one (I copied the original code in the original email and simply changed the > label field)(no matter what I do it just labels the first one it reads) > > Can I combine these into one and still have them label on three different > rows > > Value 1 > Value 2 > Value 3 > > Can I concatenate like this? > > LABELITEM 'Value 1' & 'VALUE 2' & 'VALUE 3' > > But how would I specify they are supposed to create 3 lines??? > > THANKS > > > From: Fawcett, David [mailto:David.Fawcett at state.mn.us] > Sent: Thursday, March 26, 2009 9:38 AM > To: Jay Kapalczynski; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Labeling > > It is always an option to create a string column and then populate it with > your numbers formatted the way that you want them to appear. I am sure that > you realize this, but it is something that I have done in the past. > > David. > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay > Kapalczynski > Sent: Thursday, March 26, 2009 9:14 AM > To: 'mapserver-users at lists.osgeo.org' > Subject: [mapserver-users] Labeling > > Is there any way to eliminate the decimal places here...I looked online but > was unable to find anything. > > Thanks > > The fields I am labeling are numeric...so I get this > > 3434.000000000000 > 1232222.000000000000 > > I am looking to drop all the extra decimal places... > > Or maybe set it to keep two > > 3434.00 > > THANKS > > > > LAYER # Maple Grove Parcels > NAME Parcel_Labels > DATA './parcels.shp' > STATUS DEFAULT > TYPE annotation > MAXSCALE 2000 > MINSCALE 100 > LABELITEM 'EMV_LAND' > > > LABELCACHE ON > CLASS > COLOR -1 -1 -1 > LABEL > POSITION UC > TYPE TRUETYPE > FONT vera_sans > MAXSIZE 7 > SIZE 7 > OFFSET 0 10 > MINSIZE 4 > #ANTIALIAS TRUE > COLOR 0 0 0 > OUTLINECOLOR 255 255 128 > BUFFER 2 > END > END > END # Maple Grove Parcels From Steve.Lime at dnr.state.mn.us Thu Mar 26 12:25:33 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 26 Mar 2009 14:25:33 -0500 Subject: [mapserver-users] RE: Labeling issue mutli lines and precision In-Reply-To: References: <20090326160156.4B9B1E0181B@lists.osgeo.org> <3D56274B4A7874468F58FADDBFD098010708480F@llmhs02.r8nssis.local> Message-ID: <49CB908C.5157.008F.0@dnr.state.mn.us> Jay, the spaces in your TEXT expression are preserved, try removing them. Steve >>> On 3/26/2009 at 2:00 PM, in message , Jay Kapalczynski wrote: > This works ..... BUT???.... > > > > For some reason the 2nd and 3rd line seem indented a bit > > > > Result: > > 1982 > > 19961001 > > $ 250854 > > > > Do you know what could be causing this indent? > > > > This is my Code: > > > > LAYER # Maple Grove Parcels > > NAME Parcel_Labels > > DATA './parcels.shp' > > STATUS DEFAULT > > TYPE annotation > > MAXSCALE 2000 > > MINSCALE 100 > > > > LABELCACHE ON > > > > CLASS > > TEXT ([YEAR_BUI_1] * [SALE_DATE] * [SALE_VAL_1]) > #label > > LABEL > > COLOR 0 0 0 > > OUTLINECOLOR 255 255 128 > > WRAP "*" #select character to wrap on > > END #label > > END #class > > END # Maple Grove Parcels > > > > > > > > PRECISION: > > As for the Precision I have also done that on the query results....dont > really know if or how I can use that in the Labeling....for now I just > converted the test data. But in a real world setting I am not going to be > able to do that. I will be reading live... > > If I have to I can created another database that has links and convert it > there....but would rather bypass all that additional work... > > > > THANKS EVERYONE FOR YOUR HELP IT IS GREATLY APPRECIATED.... > > THANKS MARK > > > > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz > Sent: Thursday, March 26, 2009 1:30 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] RE: Labeling issue mutli lines and precision > > > > In response to Jay's Labeling question: > > > > > > I have multi line / field labels working: > > > > In this example I am stringing together both the name and the parcel id as a > > label, then splitting the label into two lines > > > > CLASS > > NAME 'Parcels' > > TEXT ([TXLname] * [PARCEL_ID]) #label > > LABEL > > WRAP "*" #select character to wrap on > > END #label > > END #class > > > > I tried using precision in the query results, I have not tried it as part of > > a label > > > > [item name="NORTHING" precision=2] > > > > > > > > > > > > > > > > > > Mark Volz > > GIS Specialist > > Lyon County, MN > > (507) 532-8218 > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > > mapserver-users-request at lists.osgeo.org > > Sent: Thursday, March 26, 2009 11:02 AM > > To: mapserver-users at lists.osgeo.org > > Subject: mapserver-users Digest, Vol 14, Issue 80 > > > > Send mapserver-users mailing list submissions to > > mapserver-users at lists.osgeo.org > > > > To subscribe or unsubscribe via the World Wide Web, visit > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > or, via email, send a message with subject or body 'help' to > > mapserver-users-request at lists.osgeo.org > > > > You can reach the person managing the list at > > mapserver-users-owner at lists.osgeo.org > > > > When replying, please edit your Subject line so it is more specific > > than "Re: Contents of mapserver-users digest..." > > > > > > Today's Topics: > > > > 1. RE: Labeling (Jay Kapalczynski) > > > > > > ---------------------------------------------------------------------- > > > > Message: 1 > > Date: Thu, 26 Mar 2009 10:57:39 -0500 > > From: Jay Kapalczynski > > Subject: RE: [mapserver-users] Labeling > > To: "'Fawcett, David'" , > > "mapserver-users at lists.osgeo.org" > > Message-ID: > > > > > > > > Content-Type: text/plain; charset="us-ascii" > > > > Yea I can do that but then I have to build processes to do all the > > converting... > > I want to read this data live. > > > > Anyone else have any ideas? > > > > Thanks > > > > One Last thought, don't know if I should enter a new topic... > > > > I have three labels I want to label. Right now I am using an Offset to push > > one above, and one below (UC, CC, LC) with offsets. > > And as such these are three separate layers in my app > > I tried to combine all three into one map file but it only labels the first > > one (I copied the original code in the original email and simply changed the > > label field)(no matter what I do it just labels the first one it reads) > > > > Can I combine these into one and still have them label on three different > > rows > > > > Value 1 > > Value 2 > > Value 3 > > > > Can I concatenate like this? > > > > LABELITEM 'Value 1' & 'VALUE 2' & 'VALUE 3' > > > > But how would I specify they are supposed to create 3 lines??? > > > > THANKS > > > > > > From: Fawcett, David [mailto:David.Fawcett at state.mn.us] > > Sent: Thursday, March 26, 2009 9:38 AM > > To: Jay Kapalczynski; mapserver-users at lists.osgeo.org > > Subject: RE: [mapserver-users] Labeling > > > > It is always an option to create a string column and then populate it with > > your numbers formatted the way that you want them to appear. I am sure that > > you realize this, but it is something that I have done in the past. > > > > David. > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay > > Kapalczynski > > Sent: Thursday, March 26, 2009 9:14 AM > > To: 'mapserver-users at lists.osgeo.org' > > Subject: [mapserver-users] Labeling > > > > Is there any way to eliminate the decimal places here...I looked online but > > was unable to find anything. > > > > Thanks > > > > The fields I am labeling are numeric...so I get this > > > > 3434.000000000000 > > 1232222.000000000000 > > > > I am looking to drop all the extra decimal places... > > > > Or maybe set it to keep two > > > > 3434.00 > > > > THANKS > > > > > > > > LAYER # Maple Grove Parcels > > NAME Parcel_Labels > > DATA './parcels.shp' > > STATUS DEFAULT > > TYPE annotation > > MAXSCALE 2000 > > MINSCALE 100 > > LABELITEM 'EMV_LAND' > > > > > > LABELCACHE ON > > CLASS > > COLOR -1 -1 -1 > > LABEL > > POSITION UC > > TYPE TRUETYPE > > FONT vera_sans > > MAXSIZE 7 > > SIZE 7 > > OFFSET 0 10 > > MINSIZE 4 > > #ANTIALIAS TRUE > > COLOR 0 0 0 > > OUTLINECOLOR 255 255 128 > > BUFFER 2 > > END > > END > > END # Maple Grove Parcels > > -------------- next part -------------- > > An HTML attachment was scrubbed... > > URL: > > http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090326/6199f92 > > b/attachment-0001.html > > > > ------------------------------ > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > End of mapserver-users Digest, Vol 14, Issue 80 > > *********************************************** > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jkapalczynski at ci.maple-grove.mn.us Thu Mar 26 06:45:59 2009 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Thu, 26 Mar 2009 08:45:59 -0500 Subject: [mapserver-users] Labeling Message-ID: Is there any way to eliminate the decimal places here...I looked online but was unable to find anything. Thanks [cid:image001.png at 01C9ADEF.4497AE30] LAYER # Maple Grove Parcels NAME Parcel_Labels DATA './parcels.shp' STATUS DEFAULT TYPE annotation MAXSCALE 2000 MINSCALE 100 LABELITEM 'EMV_LAND' LABELCACHE ON CLASS COLOR -1 -1 -1 LABEL POSITION UC TYPE TRUETYPE FONT vera_sans MAXSIZE 7 SIZE 7 OFFSET 0 10 MINSIZE 4 #ANTIALIAS TRUE COLOR 0 0 0 OUTLINECOLOR 255 255 128 BUFFER 2 END END END # Maple Grove Parcels -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 114703 bytes Desc: image001.png URL: From jkapalczynski at ci.maple-grove.mn.us Thu Mar 26 12:33:28 2009 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Thu, 26 Mar 2009 14:33:28 -0500 Subject: [mapserver-users] RE: Labeling issue mutli lines and precision In-Reply-To: <49CB908C.5157.008F.0@dnr.state.mn.us> References: <20090326160156.4B9B1E0181B@lists.osgeo.org> <3D56274B4A7874468F58FADDBFD098010708480F@llmhs02.r8nssis.local> <49CB908C.5157.008F.0@dnr.state.mn.us> Message-ID: Fantastic....works... one last quick question.. Can I add actual text... THANKS A MILLION....VERY APPRECIATED... CODE: TEXT (['Land Value:' EMV_LAND_]*[ 'Building Value:' EMV_BLDG_]*['Total Value:'EMV_TOTAL_]) #label RESULT: Land Value: $45000 Building Value: $250000 Total Value: $295000 -----Original Message----- From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] Sent: Thursday, March 26, 2009 2:26 PM To: Jay Kapalczynski; 'Mark Volz'; mapserver-users at lists.osgeo.org Subject: [mapserver-users] RE: Labeling issue mutli lines and precision Jay, the spaces in your TEXT expression are preserved, try removing them. Steve >>> On 3/26/2009 at 2:00 PM, in message , Jay Kapalczynski wrote: > This works ..... BUT???.... > > > > For some reason the 2nd and 3rd line seem indented a bit > > > > Result: > > 1982 > > 19961001 > > $ 250854 > > > > Do you know what could be causing this indent? > > > > This is my Code: > > > > LAYER # Maple Grove Parcels > > NAME Parcel_Labels > > DATA './parcels.shp' > > STATUS DEFAULT > > TYPE annotation > > MAXSCALE 2000 > > MINSCALE 100 > > > > LABELCACHE ON > > > > CLASS > > TEXT ([YEAR_BUI_1] * [SALE_DATE] * [SALE_VAL_1]) > #label > > LABEL > > COLOR 0 0 0 > > OUTLINECOLOR 255 255 128 > > WRAP "*" #select character to wrap on > > END #label > > END #class > > END # Maple Grove Parcels > > > > > > > > PRECISION: > > As for the Precision I have also done that on the query results....dont > really know if or how I can use that in the Labeling....for now I just > converted the test data. But in a real world setting I am not going to be > able to do that. I will be reading live... > > If I have to I can created another database that has links and convert it > there....but would rather bypass all that additional work... > > > > THANKS EVERYONE FOR YOUR HELP IT IS GREATLY APPRECIATED.... > > THANKS MARK > > > > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz > Sent: Thursday, March 26, 2009 1:30 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] RE: Labeling issue mutli lines and precision > > > > In response to Jay's Labeling question: > > > > > > I have multi line / field labels working: > > > > In this example I am stringing together both the name and the parcel id as a > > label, then splitting the label into two lines > > > > CLASS > > NAME 'Parcels' > > TEXT ([TXLname] * [PARCEL_ID]) #label > > LABEL > > WRAP "*" #select character to wrap on > > END #label > > END #class > > > > I tried using precision in the query results, I have not tried it as part of > > a label > > > > [item name="NORTHING" precision=2] > > > > > > > > > > > > > > > > > > Mark Volz > > GIS Specialist > > Lyon County, MN > > (507) 532-8218 > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > > mapserver-users-request at lists.osgeo.org > > Sent: Thursday, March 26, 2009 11:02 AM > > To: mapserver-users at lists.osgeo.org > > Subject: mapserver-users Digest, Vol 14, Issue 80 > > > > Send mapserver-users mailing list submissions to > > mapserver-users at lists.osgeo.org > > > > To subscribe or unsubscribe via the World Wide Web, visit > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > or, via email, send a message with subject or body 'help' to > > mapserver-users-request at lists.osgeo.org > > > > You can reach the person managing the list at > > mapserver-users-owner at lists.osgeo.org > > > > When replying, please edit your Subject line so it is more specific > > than "Re: Contents of mapserver-users digest..." > > > > > > Today's Topics: > > > > 1. RE: Labeling (Jay Kapalczynski) > > > > > > ---------------------------------------------------------------------- > > > > Message: 1 > > Date: Thu, 26 Mar 2009 10:57:39 -0500 > > From: Jay Kapalczynski > > Subject: RE: [mapserver-users] Labeling > > To: "'Fawcett, David'" , > > "mapserver-users at lists.osgeo.org" > > Message-ID: > > > > > > > > Content-Type: text/plain; charset="us-ascii" > > > > Yea I can do that but then I have to build processes to do all the > > converting... > > I want to read this data live. > > > > Anyone else have any ideas? > > > > Thanks > > > > One Last thought, don't know if I should enter a new topic... > > > > I have three labels I want to label. Right now I am using an Offset to push > > one above, and one below (UC, CC, LC) with offsets. > > And as such these are three separate layers in my app > > I tried to combine all three into one map file but it only labels the first > > one (I copied the original code in the original email and simply changed the > > label field)(no matter what I do it just labels the first one it reads) > > > > Can I combine these into one and still have them label on three different > > rows > > > > Value 1 > > Value 2 > > Value 3 > > > > Can I concatenate like this? > > > > LABELITEM 'Value 1' & 'VALUE 2' & 'VALUE 3' > > > > But how would I specify they are supposed to create 3 lines??? > > > > THANKS > > > > > > From: Fawcett, David [mailto:David.Fawcett at state.mn.us] > > Sent: Thursday, March 26, 2009 9:38 AM > > To: Jay Kapalczynski; mapserver-users at lists.osgeo.org > > Subject: RE: [mapserver-users] Labeling > > > > It is always an option to create a string column and then populate it with > > your numbers formatted the way that you want them to appear. I am sure that > > you realize this, but it is something that I have done in the past. > > > > David. > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay > > Kapalczynski > > Sent: Thursday, March 26, 2009 9:14 AM > > To: 'mapserver-users at lists.osgeo.org' > > Subject: [mapserver-users] Labeling > > > > Is there any way to eliminate the decimal places here...I looked online but > > was unable to find anything. > > > > Thanks > > > > The fields I am labeling are numeric...so I get this > > > > 3434.000000000000 > > 1232222.000000000000 > > > > I am looking to drop all the extra decimal places... > > > > Or maybe set it to keep two > > > > 3434.00 > > > > THANKS > > > > > > > > LAYER # Maple Grove Parcels > > NAME Parcel_Labels > > DATA './parcels.shp' > > STATUS DEFAULT > > TYPE annotation > > MAXSCALE 2000 > > MINSCALE 100 > > LABELITEM 'EMV_LAND' > > > > > > LABELCACHE ON > > CLASS > > COLOR -1 -1 -1 > > LABEL > > POSITION UC > > TYPE TRUETYPE > > FONT vera_sans > > MAXSIZE 7 > > SIZE 7 > > OFFSET 0 10 > > MINSIZE 4 > > #ANTIALIAS TRUE > > COLOR 0 0 0 > > OUTLINECOLOR 255 255 128 > > BUFFER 2 > > END > > END > > END # Maple Grove Parcels > > -------------- next part -------------- > > An HTML attachment was scrubbed... > > URL: > > http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090326/6199f92 > > b/attachment-0001.html > > > > ------------------------------ > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > End of mapserver-users Digest, Vol 14, Issue 80 > > *********************************************** > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Thu Mar 26 12:38:27 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 26 Mar 2009 14:38:27 -0500 Subject: [mapserver-users] RE: Labeling issue mutli lines and precision In-Reply-To: References: <20090326160156.4B9B1E0181B@lists.osgeo.org> <3D56274B4A7874468F58FADDBFD098010708480F@llmhs02.r8nssis.local> <49CB908C.5157.008F.0@dnr.state.mn.us> Message-ID: <49CB9391.5157.008F.0@dnr.state.mn.us> Yup, but the text goes outside the column references, e.g. Land Value: [EMV_LAND_]. Steve >>> On 3/26/2009 at 2:33 PM, in message , Jay Kapalczynski wrote: > Fantastic....works... > > one last quick question.. > > > > Can I add actual text... > > > > THANKS A MILLION....VERY APPRECIATED... > > > > > > CODE: > > TEXT (['Land Value:' EMV_LAND_]*[ 'Building Value:' EMV_BLDG_]*['Total > Value:'EMV_TOTAL_]) #label > > > > RESULT: > > Land Value: $45000 > > Building Value: $250000 > > Total Value: $295000 > > > > > > > > -----Original Message----- > From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] > Sent: Thursday, March 26, 2009 2:26 PM > To: Jay Kapalczynski; 'Mark Volz'; mapserver-users at lists.osgeo.org > Subject: [mapserver-users] RE: Labeling issue mutli lines and precision > > > > Jay, the spaces in your TEXT expression are preserved, try removing them. > > > > Steve > > > >>>> On 3/26/2009 at 2:00 PM, in message > > , Jay > > Kapalczynski wrote: > >> This works ..... BUT???.... > >> > >> > >> > >> For some reason the 2nd and 3rd line seem indented a bit > >> > >> > >> > >> Result: > >> > >> 1982 > >> > >> 19961001 > >> > >> $ 250854 > >> > >> > >> > >> Do you know what could be causing this indent? > >> > >> > >> > >> This is my Code: > >> > >> > >> > >> LAYER # Maple Grove Parcels > >> > >> NAME Parcel_Labels > >> > >> DATA './parcels.shp' > >> > >> STATUS DEFAULT > >> > >> TYPE annotation > >> > >> MAXSCALE 2000 > >> > >> MINSCALE 100 > >> > >> > >> > >> LABELCACHE ON > >> > >> > >> > >> CLASS > >> > >> TEXT ([YEAR_BUI_1] * [SALE_DATE] * [SALE_VAL_1]) > >> #label > >> > >> LABEL > >> > >> COLOR 0 0 0 > >> > >> OUTLINECOLOR 255 255 128 > >> > >> WRAP "*" #select character to wrap on > >> > >> END #label > >> > >> END #class > >> > >> END # Maple Grove Parcels > >> > >> > >> > >> > >> > >> > >> > >> PRECISION: > >> > >> As for the Precision I have also done that on the query results....dont > >> really know if or how I can use that in the Labeling....for now I just > >> converted the test data. But in a real world setting I am not going to be > >> able to do that. I will be reading live... > >> > >> If I have to I can created another database that has links and convert it > >> there....but would rather bypass all that additional work... > >> > >> > >> > >> THANKS EVERYONE FOR YOUR HELP IT IS GREATLY APPRECIATED.... > >> > >> THANKS MARK > >> > >> > >> > >> > >> > >> -----Original Message----- > >> From: mapserver-users-bounces at lists.osgeo.org > >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz > >> Sent: Thursday, March 26, 2009 1:30 PM > >> To: mapserver-users at lists.osgeo.org > >> Subject: [mapserver-users] RE: Labeling issue mutli lines and precision > >> > >> > >> > >> In response to Jay's Labeling question: > >> > >> > >> > >> > >> > >> I have multi line / field labels working: > >> > >> > >> > >> In this example I am stringing together both the name and the parcel id as a > >> > >> label, then splitting the label into two lines > >> > >> > >> > >> CLASS > >> > >> NAME 'Parcels' > >> > >> TEXT ([TXLname] * [PARCEL_ID]) #label > >> > >> LABEL > >> > >> WRAP "*" #select character to wrap on > >> > >> END #label > >> > >> END #class > >> > >> > >> > >> I tried using precision in the query results, I have not tried it as part of > >> > >> a label > >> > >> > >> > >> [item name="NORTHING" precision=2] > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> Mark Volz > >> > >> GIS Specialist > >> > >> Lyon County, MN > >> > >> (507) 532-8218 > >> > >> -----Original Message----- > >> > >> From: mapserver-users-bounces at lists.osgeo.org > >> > >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > >> > >> mapserver-users-request at lists.osgeo.org > >> > >> Sent: Thursday, March 26, 2009 11:02 AM > >> > >> To: mapserver-users at lists.osgeo.org > >> > >> Subject: mapserver-users Digest, Vol 14, Issue 80 > >> > >> > >> > >> Send mapserver-users mailing list submissions to > >> > >> mapserver-users at lists.osgeo.org > >> > >> > >> > >> To subscribe or unsubscribe via the World Wide Web, visit > >> > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > >> or, via email, send a message with subject or body 'help' to > >> > >> mapserver-users-request at lists.osgeo.org > >> > >> > >> > >> You can reach the person managing the list at > >> > >> mapserver-users-owner at lists.osgeo.org > >> > >> > >> > >> When replying, please edit your Subject line so it is more specific > >> > >> than "Re: Contents of mapserver-users digest..." > >> > >> > >> > >> > >> > >> Today's Topics: > >> > >> > >> > >> 1. RE: Labeling (Jay Kapalczynski) > >> > >> > >> > >> > >> > >> ---------------------------------------------------------------------- > >> > >> > >> > >> Message: 1 > >> > >> Date: Thu, 26 Mar 2009 10:57:39 -0500 > >> > >> From: Jay Kapalczynski > >> > >> Subject: RE: [mapserver-users] Labeling > >> > >> To: "'Fawcett, David'" , > >> > >> "mapserver-users at lists.osgeo.org" > >> > >> Message-ID: > >> > >> > >> > >> > >> > >> > >> > >> Content-Type: text/plain; charset="us-ascii" > >> > >> > >> > >> Yea I can do that but then I have to build processes to do all the > >> > >> converting... > >> > >> I want to read this data live. > >> > >> > >> > >> Anyone else have any ideas? > >> > >> > >> > >> Thanks > >> > >> > >> > >> One Last thought, don't know if I should enter a new topic... > >> > >> > >> > >> I have three labels I want to label. Right now I am using an Offset to push > >> > >> one above, and one below (UC, CC, LC) with offsets. > >> > >> And as such these are three separate layers in my app > >> > >> I tried to combine all three into one map file but it only labels the first > >> > >> one (I copied the original code in the original email and simply changed the > >> > >> label field)(no matter what I do it just labels the first one it reads) > >> > >> > >> > >> Can I combine these into one and still have them label on three different > >> > >> rows > >> > >> > >> > >> Value 1 > >> > >> Value 2 > >> > >> Value 3 > >> > >> > >> > >> Can I concatenate like this? > >> > >> > >> > >> LABELITEM 'Value 1' & 'VALUE 2' & 'VALUE 3' > >> > >> > >> > >> But how would I specify they are supposed to create 3 lines??? > >> > >> > >> > >> THANKS > >> > >> > >> > >> > >> > >> From: Fawcett, David [mailto:David.Fawcett at state.mn.us] > >> > >> Sent: Thursday, March 26, 2009 9:38 AM > >> > >> To: Jay Kapalczynski; mapserver-users at lists.osgeo.org > >> > >> Subject: RE: [mapserver-users] Labeling > >> > >> > >> > >> It is always an option to create a string column and then populate it with > >> > >> your numbers formatted the way that you want them to appear. I am sure that > >> > >> you realize this, but it is something that I have done in the past. > >> > >> > >> > >> David. > >> > >> -----Original Message----- > >> > >> From: mapserver-users-bounces at lists.osgeo.org > >> > >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay > >> > >> Kapalczynski > >> > >> Sent: Thursday, March 26, 2009 9:14 AM > >> > >> To: 'mapserver-users at lists.osgeo.org' > >> > >> Subject: [mapserver-users] Labeling > >> > >> > >> > >> Is there any way to eliminate the decimal places here...I looked online but > >> > >> was unable to find anything. > >> > >> > >> > >> Thanks > >> > >> > >> > >> The fields I am labeling are numeric...so I get this > >> > >> > >> > >> 3434.000000000000 > >> > >> 1232222.000000000000 > >> > >> > >> > >> I am looking to drop all the extra decimal places... > >> > >> > >> > >> Or maybe set it to keep two > >> > >> > >> > >> 3434.00 > >> > >> > >> > >> THANKS > >> > >> > >> > >> > >> > >> > >> > >> LAYER # Maple Grove Parcels > >> > >> NAME Parcel_Labels > >> > >> DATA './parcels.shp' > >> > >> STATUS DEFAULT > >> > >> TYPE annotation > >> > >> MAXSCALE 2000 > >> > >> MINSCALE 100 > >> > >> LABELITEM 'EMV_LAND' > >> > >> > >> > >> > >> > >> LABELCACHE ON > >> > >> CLASS > >> > >> COLOR -1 -1 -1 > >> > >> LABEL > >> > >> POSITION UC > >> > >> TYPE TRUETYPE > >> > >> FONT vera_sans > >> > >> MAXSIZE 7 > >> > >> SIZE 7 > >> > >> OFFSET 0 10 > >> > >> MINSIZE 4 > >> > >> #ANTIALIAS TRUE > >> > >> COLOR 0 0 0 > >> > >> OUTLINECOLOR 255 255 128 > >> > >> BUFFER 2 > >> > >> END > >> > >> END > >> > >> END # Maple Grove Parcels > >> > >> -------------- next part -------------- > >> > >> An HTML attachment was scrubbed... > >> > >> URL: > >> > >> http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090326/6199f92 > >> > >> b/attachment-0001.html > >> > >> > >> > >> ------------------------------ > >> > >> > >> > >> _______________________________________________ > >> > >> mapserver-users mailing list > >> > >> mapserver-users at lists.osgeo.org > >> > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > >> > >> > >> > >> > >> End of mapserver-users Digest, Vol 14, Issue 80 > >> > >> *********************************************** > >> > >> _______________________________________________ > >> > >> mapserver-users mailing list > >> > >> mapserver-users at lists.osgeo.org > >> > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users From jkapalczynski at ci.maple-grove.mn.us Thu Mar 26 12:36:16 2009 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Thu, 26 Mar 2009 14:36:16 -0500 Subject: [mapserver-users] RE: Labeling issue mutli lines and precision In-Reply-To: References: <20090326160156.4B9B1E0181B@lists.osgeo.org> <3D56274B4A7874468F58FADDBFD098010708480F@llmhs02.r8nssis.local> <49CB908C.5157.008F.0@dnr.state.mn.us> Message-ID: GOT IT!!!! TEXT (HI [EMV_LAND_]*[EMV_BLDG_]*[EMV_TOTAL_]) #label THANKS FOR ALL YOU HELP From: Jay Kapalczynski Sent: Thursday, March 26, 2009 2:33 PM To: 'Steve Lime'; 'Mark Volz'; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] RE: Labeling issue mutli lines and precision Fantastic....works... one last quick question.. Can I add actual text... THANKS A MILLION....VERY APPRECIATED... CODE: TEXT (['Land Value:' EMV_LAND_]*[ 'Building Value:' EMV_BLDG_]*['Total Value:'EMV_TOTAL_]) #label RESULT: Land Value: $45000 Building Value: $250000 Total Value: $295000 -----Original Message----- From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] Sent: Thursday, March 26, 2009 2:26 PM To: Jay Kapalczynski; 'Mark Volz'; mapserver-users at lists.osgeo.org Subject: [mapserver-users] RE: Labeling issue mutli lines and precision Jay, the spaces in your TEXT expression are preserved, try removing them. Steve >>> On 3/26/2009 at 2:00 PM, in message , Jay Kapalczynski wrote: > This works ..... BUT???.... > > > > For some reason the 2nd and 3rd line seem indented a bit > > > > Result: > > 1982 > > 19961001 > > $ 250854 > > > > Do you know what could be causing this indent? > > > > This is my Code: > > > > LAYER # Maple Grove Parcels > > NAME Parcel_Labels > > DATA './parcels.shp' > > STATUS DEFAULT > > TYPE annotation > > MAXSCALE 2000 > > MINSCALE 100 > > > > LABELCACHE ON > > > > CLASS > > TEXT ([YEAR_BUI_1] * [SALE_DATE] * [SALE_VAL_1]) > #label > > LABEL > > COLOR 0 0 0 > > OUTLINECOLOR 255 255 128 > > WRAP "*" #select character to wrap on > > END #label > > END #class > > END # Maple Grove Parcels > > > > > > > > PRECISION: > > As for the Precision I have also done that on the query results....dont > really know if or how I can use that in the Labeling....for now I just > converted the test data. But in a real world setting I am not going to be > able to do that. I will be reading live... > > If I have to I can created another database that has links and convert it > there....but would rather bypass all that additional work... > > > > THANKS EVERYONE FOR YOUR HELP IT IS GREATLY APPRECIATED.... > > THANKS MARK > > > > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Mark Volz > Sent: Thursday, March 26, 2009 1:30 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] RE: Labeling issue mutli lines and precision > > > > In response to Jay's Labeling question: > > > > > > I have multi line / field labels working: > > > > In this example I am stringing together both the name and the parcel id as a > > label, then splitting the label into two lines > > > > CLASS > > NAME 'Parcels' > > TEXT ([TXLname] * [PARCEL_ID]) #label > > LABEL > > WRAP "*" #select character to wrap on > > END #label > > END #class > > > > I tried using precision in the query results, I have not tried it as part of > > a label > > > > [item name="NORTHING" precision=2] > > > > > > > > > > > > > > > > > > Mark Volz > > GIS Specialist > > Lyon County, MN > > (507) 532-8218 > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > > mapserver-users-request at lists.osgeo.org > > Sent: Thursday, March 26, 2009 11:02 AM > > To: mapserver-users at lists.osgeo.org > > Subject: mapserver-users Digest, Vol 14, Issue 80 > > > > Send mapserver-users mailing list submissions to > > mapserver-users at lists.osgeo.org > > > > To subscribe or unsubscribe via the World Wide Web, visit > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > or, via email, send a message with subject or body 'help' to > > mapserver-users-request at lists.osgeo.org > > > > You can reach the person managing the list at > > mapserver-users-owner at lists.osgeo.org > > > > When replying, please edit your Subject line so it is more specific > > than "Re: Contents of mapserver-users digest..." > > > > > > Today's Topics: > > > > 1. RE: Labeling (Jay Kapalczynski) > > > > > > ---------------------------------------------------------------------- > > > > Message: 1 > > Date: Thu, 26 Mar 2009 10:57:39 -0500 > > From: Jay Kapalczynski > > Subject: RE: [mapserver-users] Labeling > > To: "'Fawcett, David'" , > > "mapserver-users at lists.osgeo.org" > > Message-ID: > > > > > > > > Content-Type: text/plain; charset="us-ascii" > > > > Yea I can do that but then I have to build processes to do all the > > converting... > > I want to read this data live. > > > > Anyone else have any ideas? > > > > Thanks > > > > One Last thought, don't know if I should enter a new topic... > > > > I have three labels I want to label. Right now I am using an Offset to push > > one above, and one below (UC, CC, LC) with offsets. > > And as such these are three separate layers in my app > > I tried to combine all three into one map file but it only labels the first > > one (I copied the original code in the original email and simply changed the > > label field)(no matter what I do it just labels the first one it reads) > > > > Can I combine these into one and still have them label on three different > > rows > > > > Value 1 > > Value 2 > > Value 3 > > > > Can I concatenate like this? > > > > LABELITEM 'Value 1' & 'VALUE 2' & 'VALUE 3' > > > > But how would I specify they are supposed to create 3 lines??? > > > > THANKS > > > > > > From: Fawcett, David [mailto:David.Fawcett at state.mn.us] > > Sent: Thursday, March 26, 2009 9:38 AM > > To: Jay Kapalczynski; mapserver-users at lists.osgeo.org > > Subject: RE: [mapserver-users] Labeling > > > > It is always an option to create a string column and then populate it with > > your numbers formatted the way that you want them to appear. I am sure that > > you realize this, but it is something that I have done in the past. > > > > David. > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Jay > > Kapalczynski > > Sent: Thursday, March 26, 2009 9:14 AM > > To: 'mapserver-users at lists.osgeo.org' > > Subject: [mapserver-users] Labeling > > > > Is there any way to eliminate the decimal places here...I looked online but > > was unable to find anything. > > > > Thanks > > > > The fields I am labeling are numeric...so I get this > > > > 3434.000000000000 > > 1232222.000000000000 > > > > I am looking to drop all the extra decimal places... > > > > Or maybe set it to keep two > > > > 3434.00 > > > > THANKS > > > > > > > > LAYER # Maple Grove Parcels > > NAME Parcel_Labels > > DATA './parcels.shp' > > STATUS DEFAULT > > TYPE annotation > > MAXSCALE 2000 > > MINSCALE 100 > > LABELITEM 'EMV_LAND' > > > > > > LABELCACHE ON > > CLASS > > COLOR -1 -1 -1 > > LABEL > > POSITION UC > > TYPE TRUETYPE > > FONT vera_sans > > MAXSIZE 7 > > SIZE 7 > > OFFSET 0 10 > > MINSIZE 4 > > #ANTIALIAS TRUE > > COLOR 0 0 0 > > OUTLINECOLOR 255 255 128 > > BUFFER 2 > > END > > END > > END # Maple Grove Parcels > > -------------- next part -------------- > > An HTML attachment was scrubbed... > > URL: > > http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090326/6199f92 > > b/attachment-0001.html > > > > ------------------------------ > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > End of mapserver-users Digest, Vol 14, Issue 80 > > *********************************************** > > _______________________________________________ > > 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 ruijgomes at gmail.com Thu Mar 26 17:49:54 2009 From: ruijgomes at gmail.com (Rui Gomes) Date: Fri, 27 Mar 2009 00:49:54 +0000 Subject: [mapserver-users] Changing class EXPRESSION by URL Message-ID: <31e2f7000903261749r748a0bd3ufefd8bc6688f02c0@mail.gmail.com> Hi... I'm trying to do this: Using checkbox i build a expression like: (('[field1]' eq 'something1' or '[field2]' eq 'something2')) and then use only the records that match using the class EXPRESSION I read in the web that is not possible in mapserver 5. Is that true? Or exist another way to do this? Thanks -- Rui Gomes From Steve.Lime at dnr.state.mn.us Thu Mar 26 19:05:10 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 26 Mar 2009 21:05:10 -0500 Subject: [mapserver-users] Changing class EXPRESSION by URL Message-ID: <49CBEE060200008F000223C1@co5.dnr.state.mn.us> Replacing the entire expression is going to be possible in 5.4 but is not recommended for what you're trying to do. It's just too hard to secure depending on what type of data source you're dealing with. A better option if you know the basic structure of your expression is fixed is to just pass portions of it. E.g.: (('[field1]' eq '%something1%' or '[field2]' eq '%something2%')) This way you can apply validation patterns against each variable (in this case something1 and something2. In the layer metadata you'd do something like this: something1_validation_pattern '^[0-9]{1,3}$' something2_validation_pattern '^[a-z]{5}$' This would restrict the value domain for something1 to 3-digit numbers and the value domain for something2 to a 5 character string, all lower case. Any deviation would throw an error. Steve >>> Rui Gomes 03/26/09 7:50 PM >>> Hi... I'm trying to do this: Using checkbox i build a expression like: (('[field1]' eq 'something1' or '[field2]' eq 'something2')) and then use only the records that match using the class EXPRESSION I read in the web that is not possible in mapserver 5. Is that true? Or exist another way to do this? Thanks -- Rui Gomes _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Thu Mar 26 19:40:02 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 26 Mar 2009 21:40:02 -0500 Subject: [mapserver-users] MapServer 5.2.2 and 4.10.4 released with security fixes Message-ID: <49CBF6320200008F000223CE@co5.dnr.state.mn.us> MapServer 5.2.2 and 4.10.4 have been released. (Version 5.4 will contain all of these fixes at the start and a beta 4 release will be available in a day or so.) The releases contain fixes for issues discovered in an audit of the CGI by a 3rd party (tickets #2939, #2941, #2942, #2943 and #2944). The issues are detailed at: http://trac.osgeo.org/mapserver/ticket/2939 http://trac.osgeo.org/mapserver/ticket/2941 http://trac.osgeo.org/mapserver/ticket/2942 http://trac.osgeo.org/mapserver/ticket/2943 http://trac.osgeo.org/mapserver/ticket/2944 Also provided is support for RFC-56 that addresses tightening up the control of access to mapfiles and templates: http://mapserver.org/development/rfc/ms-rfc-56.html Most of these defects have been present for a number of releases and the potential impact depends on your individual setup. Users of the mapserv CGI are strongly advised to upgrade to the latest release. The changes do not directly affect MapScript however as a result of the changes all users may have to modify their applications to upgrade. To upgrade you must: 1 - make sure map files are well-formed, that is, the first token is MAP. Comments can come before the MAP token. 2 - make sure symbol files are well-formed, that is, the first token is SYMBOLSET. Like mapfiles, comments can come before the SYMBOLSET token. 3 - MapServer templates, browse and query, now must include the magic string - "MapServer Template". The string is not case sensitive but must be present in the first line of the template or MapServer will reject it. The first line is not output with the template. Finally, please consider using the new environment variables detailed in the RFC to further secure your installation. Upgrade tips: In many cases items 1-3 above can be completed prior to updating your software. For templates, you can enclose the magic string in comments appropriate to the template type (see the RFC above for examples). The magic string will be output until you complete the upgrade but the browser will ignore them as comments. The source packages are available in the MapServer downloads page: http://mapserver.org/download/ and can be downloaded directly at: http://download.osgeo.org/mapserver/mapserver-5.2.2.tar.gz http://download.osgeo.org/mapserver/mapserver-4.10.4.tar.gz Precompiled binaries should be available shortly at the usual locations (also linked from the download page above). Existing MS4W users can go to the MS4W downloads page and use the "MapServer version 5.2.2 Upgrade" package. If you have questions, comments or concerns please contact me directly or send a message to the -dev list. Thanks to the folks at Positron Security for their assistance. Steve From woklist at kyngchaos.com Thu Mar 26 21:37:50 2009 From: woklist at kyngchaos.com (William Kyngesburye) Date: Thu, 26 Mar 2009 23:37:50 -0500 Subject: [mapserver-users] MapServer 5.2.2 and 4.10.4 released with security fixes In-Reply-To: <49CBF6320200008F000223CE@co5.dnr.state.mn.us> References: <49CBF6320200008F000223CE@co5.dnr.state.mn.us> Message-ID: <3FD57F4C-378C-40F0-837A-974F99662FC8@kyngchaos.com> I have my OSX Mapserver 5.2.2 binaries online. I noticed that the mapserver site hasn't been updated yet. Then I noticed that the HTML title for the whole site (mapserver.org pages) is "MapServer 5.2.1 Documentation". Odd (the 'documentation' part, not the version). Also, your downloads page link below should be: http://mapserver.org/download.html On Mar 26, 2009, at 9:40 PM, Steve Lime wrote: > MapServer 5.2.2 and 4.10.4 have been released. (Version 5.4 will > contain all of these > fixes at the start and a beta 4 release will be available in a day > or so.) > > The source packages are available in the MapServer downloads page: > > http://mapserver.org/download/ > ----- William Kyngesburye http://www.kyngchaos.com/ "The beast is actively interested only in now, and, as it is always now and always shall be, there is an eternity of time for the accomplishment of objects." - the wisdom of Tarzan From phyu108 at gmail.com Fri Mar 27 01:43:19 2009 From: phyu108 at gmail.com (Pwint Phyu Aung) Date: Fri, 27 Mar 2009 15:43:19 +0700 Subject: [mapserver-users] Map server version 5.0.x not working Message-ID: <446aa160903270143o19dd84f9r6dfbcb666164348@mail.gmail.com> Hi there! I installed the map server in my solaris server together with apache, mysql and php. I downloaded mapserver php script version 5.0.x and compiled it there with the option: >./configure --with-gd=/usr/local --with-freetype=/usr/local --with-zlib=/usr/local --with-png=/usr/local --with-jpeg=/usr/local --with-tiff=/usr/local --enable-perlv-ld-detect --with-proj --with-ogr=/usr/local --with-tiff=/usr/local --with-libiconv=/usr --with-xml2-config=/usr/bin/xml2-config --with-php=/usr/local/include/php --with-gdal=/usr/local/bin/gdal-config >make Before installed, I already downloaded all the necessary packages and installed. After that copied php_mapscript.so to web folder folder as we do 'nt want to use cgi . But when we check the map.php file it soean't showing anything. I loaded the script like this: But still doesn't work. Then I changed my configure option like this: ./configure --with-php=/usr/local/include/php --with-gd=/usr/local --with-freetype=/usr/local --with-zlib=/usr/local --with-png=/usr/local --with-jpeg=/usr/local --with-tiff=/usr/local --enable-perlv-ld-detect --with-proj --with-ogr=/usr/local --with-tiff=/usr/local and did the same way that I did in the above stage but it doesn't work either. Please give me an advice. I'm not expert in using map server. Please help me. Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From damarmo at gmail.com Fri Mar 27 05:22:43 2009 From: damarmo at gmail.com (David Martinez Morata) Date: Fri, 27 Mar 2009 13:22:43 +0100 Subject: [mapserver-users] Trnasparen WMS service. Message-ID: <9771eb540903270522p53e32b74vc97dc12a44c91137@mail.gmail.com> Hello I make a WMS service for poligons, and I try to show in a Mapfish interface. My server are a Mapserver 2.3.0 version and I read about the OPACITY parameter for Style, but when I define this parameter in my Stylke directive the server dont recognice the mlap file. I wouyld like to show my polygons in whit a tra,nsparenci color in a WMS service, Can enyone Help me? Thanks -- Martinez Morata David Thinking GIS -------------- next part -------------- An HTML attachment was scrubbed... URL: From ag at ads.aero Fri Mar 27 05:26:25 2009 From: ag at ads.aero (adsaero) Date: Fri, 27 Mar 2009 05:26:25 -0700 (PDT) Subject: [mapserver-users] Mapserver/Windows x64 binaries Message-ID: <1238156785203-2544032.post@n2.nabble.com> I'm wondering if anyone could help; I've been Googled 'till my fingers bled, and I haven't had much success in finding anyone else who has managed to get the Mapserver to run in native x64 mode on an x64 Windows (2008) box. I saw this post; http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg15162.html And even downloaded the binaries from there, but I still get errors when trying to run my mapscript app. First, I was getting "SideBySide" errors: Activation context generation failed for "C:\inetpub\map\wms3\bin\libpng13d.dll". Dependent Assembly Microsoft.VC80.DebugCRT,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50608.0" could not be found. Please use sxstrace.exe for detailed diagnosis. Then after checking out some posts, I tried copying some Visual Studio binaries into the app's bin directory. That produced some different yet less helpful results: Exception information: Exception type: HttpException Exception message: The specified module could not be found. (Exception from HRESULT: 0x8007007E) With no clues as to what the specified module was. We need to run the Mapserver with x64 native code because code that works with the mapscript (which we need to reside on the same machine) runs in native x64 to take advantage of the larger memory. Can anyone offer some good pointers or suggestions for getting Mapscript to run in native x64 mode? -- View this message in context: http://n2.nabble.com/Mapserver-Windows-x64-binaries-tp2544032p2544032.html Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at gmail.com Fri Mar 27 05:55:39 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 27 Mar 2009 13:55:39 +0100 Subject: [mapserver-users] Mapserver/Windows x64 binaries In-Reply-To: <1238156785203-2544032.post@n2.nabble.com> References: <1238156785203-2544032.post@n2.nabble.com> Message-ID: Hi, I think you should try with my latest binaries, download the package which suits best to your compiler/plaform. http://vbkto.dyndns.org:1280/sdk/index.html You could also download the latest SDKs from here in case if you'd create your own compilation. Best regards, Tamas 2009/3/27 adsaero > > I'm wondering if anyone could help; I've been Googled 'till my fingers > bled, and I haven't had much success in finding anyone else who has managed > to get the Mapserver to run in native x64 mode on an x64 Windows (2008) box. > > I saw this post; > http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg15162.html > > And even downloaded the binaries from there, but I still get errors when > trying to run my mapscript app. First, I was getting "SideBySide" errors: > Activation context generation failed for > "C:\inetpub\map\wms3\bin\libpng13d.dll". Dependent Assembly > Microsoft.VC80.DebugCRT,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50608.0" > could not be found. Please use sxstrace.exe for detailed diagnosis. > > Then after checking out some posts, I tried copying some Visual Studio > binaries into the app's bin directory. That produced some different yet > less helpful results: > Exception information: > Exception type: HttpException > Exception message: The specified module could not be found. (Exception > from HRESULT: 0x8007007E) > > With no clues as to what the specified module was. > > We need to run the Mapserver with x64 native code because code that works > with the mapscript (which we need to reside on the same machine) runs in > native x64 to take advantage of the larger memory. > > Can anyone offer some good pointers or suggestions for getting Mapscript to > run in native x64 mode? > -- > View this message in context: > http://n2.nabble.com/Mapserver-Windows-x64-binaries-tp2544032p2544032.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 Steve.Lime at dnr.state.mn.us Fri Mar 27 05:56:36 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 27 Mar 2009 07:56:36 -0500 Subject: [mapserver-users] MapServer 5.2.2 and 4.10.4 released withsecurity fixes Message-ID: <49CC86B40200008F000223E3@co5.dnr.state.mn.us> Don't know what's up with the website, folks are working on it. The direct links to the source do work, thanks for link correction AND thanks for building the new binary so quickly. Steve >>> William Kyngesburye 03/26/09 11:39 PM >>> I have my OSX Mapserver 5.2.2 binaries online. I noticed that the mapserver site hasn't been updated yet. Then I noticed that the HTML title for the whole site (mapserver.org pages) is "MapServer 5.2.1 Documentation". Odd (the 'documentation' part, not the version). Also, your downloads page link below should be: http://mapserver.org/download.html On Mar 26, 2009, at 9:40 PM, Steve Lime wrote: > MapServer 5.2.2 and 4.10.4 have been released. (Version 5.4 will > contain all of these > fixes at the start and a beta 4 release will be available in a day > or so.) > > The source packages are available in the MapServer downloads page: > > http://mapserver.org/download/ > ----- William Kyngesburye http://www.kyngchaos.com/ "The beast is actively interested only in now, and, as it is always now and always shall be, there is an eternity of time for the accomplishment of objects." - the wisdom of Tarzan _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From yassefa at dmsolutions.ca Fri Mar 27 06:47:01 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Fri, 27 Mar 2009 09:47:01 -0400 Subject: [mapserver-users] Trnasparen WMS service. In-Reply-To: <9771eb540903270522p53e32b74vc97dc12a44c91137@mail.gmail.com> References: <9771eb540903270522p53e32b74vc97dc12a44c91137@mail.gmail.com> Message-ID: <49CCD8D5.1080008@dmsolutions.ca> David, You probably meant MS4W 2.3.0 (?) which contains a Mapserver version 5.2.0. It should be possible to specify the opacity parameter on the style and it should honor it if you draw your map file using the AGG driver (this is true since MapServer 5.2.0) Maybe giving the error message would help here? Make sure also of the mapserver version (mapserv.exe -v) Best regards David Martinez Morata wrote: > Hello > I make a WMS service for poligons, and I try to show in a Mapfish interface. > > My server are a Mapserver 2.3.0 version and I read about the OPACITY > parameter for Style, but when I define this parameter in my Stylke > directive the server dont recognice the mlap file. > > > > > I wouyld like to show my polygons in whit a tra,nsparenci color in a WMS > service, Can enyone Help me? > Thanks > > -- > Martinez Morata David > Thinking GIS > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From aditi.kolstudygroup at gmail.com Fri Mar 27 07:13:01 2009 From: aditi.kolstudygroup at gmail.com (aditigroup project) Date: Fri, 27 Mar 2009 19:43:01 +0530 Subject: [mapserver-users] querying map to database and displaying the requested map using php mapscript Message-ID: Hello, I am trying to query map in the datatbase(postgres)and display the map as requested by the user.For e.g.If user gives an area say "goa" to search then we have to display the map of "goa". I can retrieve "goa" from the database.But we are not getting how to generate the map of goa and display it dynamically.How to do this? Please help. In our map file: QUERYMAP SIZE 200 150 STATUS ON STYLE HILITE # SELECTED | NORMAL COLOR 255 0 0 END our php file contains the following code: getLayerByName('INDIA_DIS'); $status = $layerobj->open(); $projInObj = ms_newprojectionobj("proj=latlong"); $projOutObj = ms_newprojectionobj("init=epsg:4326"); //$projOutObj = ms_newprojectionobj("init=epsg:4326"); $poPoint = ms_newpointobj(); $poPoint->setXY(-92.0, 62.0); $poPoint->project($projInObj, $projOutObj); $layerobj->set("status",MS_ON); *$result = pg_query($con, "select state from india_st where state='$src'");* if (!$result) { echo "An error occured.\n"; exit; } * $row = pg_fetch_row($result); echo $row[0]; * function setExtent($map) { $mapext = $_GET['mapext']; $mapext = explode(' ', $mapext); $extent['min']['x'] = floatval($mapext[0]); $extent['min']['y'] = floatval($mapext[1]); $extent['max']['x'] = floatval($mapext[2]); $extent['max']['y'] = floatval($mapext[3]); $map->setExtent($extent['min']['x'] ,$extent['min']['y'] ,$extent['max']['x'] ,$extent['max']['y'] ); } if ( isset($HTTP_POST_VARS["mapa_x"]) && isset($HTTP_POST_VARS["mapa_y"]) && !isset($HTTP_POST_VARS["full"]) ) { $extent_to_set = explode(" ",$HTTP_POST_VARS["extent"]); $map->setextent($extent_to_set[0],$extent_to_set[1], $extent_to_set[2],$extent_to_set[3]); $my_point = ms_newpointObj(); $my_point->setXY($HTTP_POST_VARS["mapa_x"],$HTTP_POST_VARS["mapa_y"]); $my_extent = ms_newrectObj(); $my_extent->setextent($extent_to_set[0],$extent_to_set[1],$extent_to_set[2],$extent_to_set[3]); $zoom_factor = $HTTP_POST_VARS["zoom"]*$HTTP_POST_VARS["zsize"]; if ($zoom_factor == 0) { $zoom_factor = 1; $check_pan = "CHECKED"; $check_zout = ""; $check_zin = ""; } else if ($zoom_factor < 0) { $check_pan = ""; $check_zout = "CHECKED"; $check_zin = ""; } else { $check_pan = ""; $check_zout = ""; $check_zin = "CHECKED"; } $val_zsize = abs($zoom_factor); $map->zoompoint($zoom_factor,$my_point,$map->width,$map->height, $my_extent); *if($src) { $image=$map->drawQuery(); } else { $image=$map->draw(); }* $image_url=$image->saveWebImage(); $extent_to_html = $map->extent->minx." ".$map->extent->miny." " .$map->extent->maxx." ".$map->extent->maxy; $layerobj->draw($image); ?> Map 2

>
Pan >
Zoom In >
Zoom Out >
Zoom Size
Full Extent
LAYER INDIA
search * *
-------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Toutant at inspq.qc.ca Fri Mar 27 07:05:49 2009 From: Steve.Toutant at inspq.qc.ca (Steve.Toutant at inspq.qc.ca) Date: Fri, 27 Mar 2009 10:05:49 -0400 Subject: [mapserver-users] large shapefile In-Reply-To: Message-ID: Hi, I read a lot on how to optimized mapserver for large shapefile but I get confused. I read on shp2tile, ogrtindex, shptree, ... What is the link between those tools? What is the recipe? thanks, Steve Steve Toutant, M. Sc. Analyste en g?omatique Secteur environnement Direction des risques biologiques, environnementaux et occupationnels Institut national de sant? publique du Qu?bec 945, avenue Wolfe Qu?bec, Qc G1V 5B3 T?l.: (418) 650-5115 #5281 Fax.: (418) 654-3144 steve.toutant at inspq.qc.ca http://www.inspq.qc.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Fri Mar 27 07:24:23 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 27 Mar 2009 10:24:23 -0400 Subject: [mapserver-users] MapServer 5.2.2 and 4.10.4 released with security fixes In-Reply-To: <3FD57F4C-378C-40F0-837A-974F99662FC8@kyngchaos.com> References: <49CBF6320200008F000223CE@co5.dnr.state.mn.us> <3FD57F4C-378C-40F0-837A-974F99662FC8@kyngchaos.com> Message-ID: <49CCE197.6050707@gatewaygeomatics.com> William Kyngesburye wrote: > I noticed that the mapserver site hasn't been updated yet. Then I > noticed that the HTML title for the whole site (mapserver.org pages) is > "MapServer 5.2.1 Documentation". Odd (the 'documentation' part, not the > version). > The main site has been updated. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From woodbri at swoodbridge.com Fri Mar 27 08:50:04 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 27 Mar 2009 10:50:04 -0500 Subject: [mapserver-users] large shapefile In-Reply-To: References: Message-ID: <49CCF5AC.1040502@swoodbridge.com> Steve.Toutant at inspq.qc.ca wrote: > > Hi, > I read a lot on how to optimized mapserver for large shapefile but I get > confused. I read on shp2tile, ogrtindex, shptree, ... > What is the link between those tools? What is the recipe? > thanks, > Steve shp2tile takes a shapefile and splits in into a lot of smaller shapefiles each with only a fragment of the original. ogrtindex or tile4ms then creates a tileindex of all the fragments so you have a virtual reconstruction of the original shapefile. shptree build a spatial index for a shapefile so mapserver can access it faster. 1) build a spatial index for you large file and retest your performance. $ shptree mybigfile.shp if the performance is still bad you should probably turn on debug output in the mapfile which requires adding the following to the MAP object in the mapfile: DEBUG 5 CONFIG MS_ERRORFILE "stderr" Then render an image and look in in the apache error log file. It will tell how long it took to display each layer so you can fix only the slow layers. 2) to use shp2tile I would create a directory and put the output of shp2tile in that directory: mybigshape.shp mybigshape/ $ shp2tile --quadtree 8000 mybigshape/mybigshape $ find mybigshape/ -name \*.shp -print > mybigshape-tidx.in $ tile4ms mybigshape-tidx.in mybigshape-tidx $ shptree mybigshape-tidx $ find mybigshape/ -name \*.shp -exec shptree {} \; And change you LAYER in the mapfile: From: DATA "mybigshape" To: TILEINDEX "mybigshape-tidx" And rerun you timing test to see how the numbers changed. -Steve W. From no-reply at neogeo-online.net Fri Mar 27 08:24:26 2009 From: no-reply at neogeo-online.net (Guillaume Sueur) Date: Fri, 27 Mar 2009 16:24:26 +0100 Subject: [mapserver-users] TrueType Legend causes TimeOut Message-ID: <49CCEFAA.8090002@neogeo-online.net> Hi list, I have a mapfile with a LEGEND defined in it, and I use it throught WMS with getLegendGraphics. When I use TYPE BITMAP, everything is fine When I use TYPE TRUETYPE, with the proper settings of size and FONT, if hangs until cgi timeout, without explicit error reported. I've checked that my FONTSET and associated FONTS are ok. Has anyone got an idea of what can cause mapserv to hang like that without explicit crash on anything during legend production ? I'm using MapServer 5.2.1 Regards, Guillaume From jjschlafley at yahoo.com Fri Mar 27 09:05:56 2009 From: jjschlafley at yahoo.com (J.J. Schlafley) Date: Fri, 27 Mar 2009 09:05:56 -0700 (PDT) Subject: [mapserver-users] Bobs Googlish road symbolization help Message-ID: <848500.65634.qm@web52309.mail.re2.yahoo.com> HI, I am using Bob's Googlish road symbolization example, but cant get road shields to "line up" with road labels.??GAP property for my symbol doesnt seem to work.? Symbol and Layer def below.? Mapserver version 5.2. Thanks for the input SYMBOL ? NAME "highway" ? TYPE ellipse ? FILLED true ? POINTS ??? 1.5 1 ? END ? GAP 10 END LAYER NAME 'road_sym' GROUP 'interstate_poly' DATA "Roads" STATUS OFF TYPE ANNOTATION CLASSITEM 'FCC' LABELITEM 'RDNUMBER' TOLERANCE 1000 CLASS EXPRESSION (("[FCC]" = "A11") OR ("[FCC]" = "A12")) # interstates STYLE SYMBOL 'highway' SIZE 18 COLOR 115 113 206 OUTLINECOLOR 254 254 254 END LABEL TYPE TRUETYPE FONT arial SIZE 12 COLOR 254 254 254 MINDISTANCE 200 MINFEATURESIZE 10 OFFSET 0 0 PARTIALS FALSE END END CLASS EXPRESSION 'A21' # US Highway STYLE SYMBOL 'highway' SIZE 18 COLOR 255 255 255 OUTLINECOLOR 0 0 0 END LABEL TYPE TRUETYPE FONT arial SIZE 11 COLOR 0 0 0 MINDISTANCE 250 MINFEATURESIZE 15 OFFSET 0 -1 PARTIALS FALSE END MAXSCALE 400000 END -------------- next part -------------- An HTML attachment was scrubbed... URL: From jncoign at Knology.net Fri Mar 27 09:16:49 2009 From: jncoign at Knology.net (joncoign) Date: Fri, 27 Mar 2009 09:16:49 -0700 (PDT) Subject: [mapserver-users] WFS Server Request w/Reprojection to Database Message-ID: <1238170609107-2545150.post@n2.nabble.com> I have a WFS Server layer defined and have recently needed to provide this service in an alternate projection. The Data is in EPSG:4326 and I need the WFS Service to provide it in Spherical Mercator (SM / EPSG:900913). I have this working properly with the layers projection definition and wfs_srs. The problem I have is that previously I was passing the %BBOX% parameter to the database stored procedure using an referencing an ODBC connection. When reprojecting the WFS layer the %BBOX% does not get reprojected so it gets sent to the database in meters as defined in SM. I could reproject this in the Stored Procedure, but my client would prefer I treat their DB as a black box and not make changes. Am I correct in assuming that %BBOX% comes unaltered from the querystring? Is there another variable I can use with Variable substitution to get the BBOX in the data's projection? Or is there a way to reproject %BBOX% variable? It is critical that I can filter the data coming out of the spatial DB before it gets to MapServer for performance reasons. Any help is greatly appreciated. Jon -- View this message in context: http://n2.nabble.com/WFS-Server-Request-w-Reprojection-to-Database-tp2545150p2545150.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jncoign at Knology.net Fri Mar 27 09:25:29 2009 From: jncoign at Knology.net (joncoign) Date: Fri, 27 Mar 2009 09:25:29 -0700 (PDT) Subject: [mapserver-users] FastCGI and trouble writing to the MS_ERRORFILE In-Reply-To: References: <48C80084.4070604@mapgears.com> Message-ID: <1238171129226-2545214.post@n2.nabble.com> I just wanted to confirm that we are also having this issue on the Windows Platform (Server 2003 and Server 2008) using the current ms4w binary. We don't make our own mapserver builds so it would not be easy for us to test the fix, but it definately looks like a missing flush call. One pseudo workaround I have found to force the flush is to put a syntax error in the map file (running in CGI mode) and to issue a request. The parsing error forces the flush. I usually selectively enable debugging so it has not been too bad to add a space in the middle of the word debug and then remove it to continue testing. Jon Hi! Thanks for helping out. Your suggested solution looks reasonable, but I uses the ms4w binary distribution to perform the tests and I haven't set up any compiling environment at the moment. A colleague of mine is doing the compiling on our Linux systems, but he is on vacation for another week. I'll have to wait for him to return to work before doing any compiling. Regards, P?l Kristensen -- View this message in context: http://n2.nabble.com/FastCGI-and-trouble-writing-to-the-MS_ERRORFILE-tp1972712p2545214.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nsavard at mapgears.com Fri Mar 27 10:35:41 2009 From: nsavard at mapgears.com (Normand Savard) Date: Fri, 27 Mar 2009 13:35:41 -0400 Subject: [mapserver-users] Re: [mapserver-dev] MapServer 5.2.2 and 4.10.4 released with security fixes In-Reply-To: <49CBF6320200008F000223CE@co5.dnr.state.mn.us> References: <49CBF6320200008F000223CE@co5.dnr.state.mn.us> Message-ID: <49CD0E6D.0@mapgears.com> Steve Lime wrote: > MapServer 5.2.2 and 4.10.4 have been released. (Version 5.4 will contain all of these > fixes at the start and a beta 4 release will be available in a day or so.) > > All, I prepared a FGS package for these versions and they are available here: http://dl.maptools.org/dl/fgs/releases/1.0/1.0.0/self-installers/ MapServer modules can be downloaded from here: http://dl.maptools.org/dl/fgs/releases/1.0/1.0.0/modules/ Norm From Steve.Lime at dnr.state.mn.us Fri Mar 27 14:16:32 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 27 Mar 2009 16:16:32 -0500 Subject: [mapserver-users] Bobs Googlish road symbolization help In-Reply-To: <848500.65634.qm@web52309.mail.re2.yahoo.com> References: <848500.65634.qm@web52309.mail.re2.yahoo.com> Message-ID: <49CCFBE0.5157.008F.0@dnr.state.mn.us> Do you have a visual sample of the problem? Steve >>> On 3/27/2009 at 11:05 AM, in message <848500.65634.qm at web52309.mail.re2.yahoo.com>, "J.J. Schlafley" wrote: > HI, > I am using Bob's Googlish road symbolization example, but cant get road > shields to "line up" with road labels. GAP property for my symbol doesnt > seem to work. Symbol and Layer def below. Mapserver version 5.2. > > Thanks for the input > > SYMBOL > NAME "highway" > TYPE ellipse > FILLED true > POINTS > 1.5 1 > END > GAP 10 > END > > LAYER > NAME 'road_sym' > GROUP 'interstate_poly' > DATA "Roads" > STATUS OFF > TYPE ANNOTATION > CLASSITEM 'FCC' > LABELITEM 'RDNUMBER' > TOLERANCE 1000 > CLASS > EXPRESSION (("[FCC]" = "A11") OR ("[FCC]" = "A12")) # interstates > STYLE > SYMBOL 'highway' > SIZE 18 > COLOR 115 113 206 > OUTLINECOLOR 254 254 254 > END > LABEL > TYPE TRUETYPE > FONT arial > SIZE 12 > COLOR 254 254 254 > MINDISTANCE 200 > MINFEATURESIZE 10 > OFFSET 0 0 > PARTIALS FALSE > END > END > CLASS > EXPRESSION 'A21' # US Highway > STYLE > SYMBOL 'highway' > SIZE 18 > COLOR 255 255 255 > OUTLINECOLOR 0 0 0 > END > LABEL > TYPE TRUETYPE > FONT arial > SIZE 11 > COLOR 0 0 0 > MINDISTANCE 250 > MINFEATURESIZE 15 > OFFSET 0 -1 > PARTIALS FALSE > END > MAXSCALE 400000 > END > > > From woodbri at swoodbridge.com Fri Mar 27 15:36:10 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 27 Mar 2009 17:36:10 -0500 Subject: [mapserver-users] Bobs Googlish road symbolization help In-Reply-To: <49CCFBE0.5157.008F.0@dnr.state.mn.us> References: <848500.65634.qm@web52309.mail.re2.yahoo.com> <49CCFBE0.5157.008F.0@dnr.state.mn.us> Message-ID: <49CD54DA.1090007@swoodbridge.com> JJ, You need to use "OFFSET x y" to shift the shield to lineup with the label text. I also recommend using POSITION CC. x and y are numbers of pixel and can be negative values to shift in the opposite direction. -Steve W Steve Lime wrote: > Do you have a visual sample of the problem? > > Steve > >>>> On 3/27/2009 at 11:05 AM, in message > <848500.65634.qm at web52309.mail.re2.yahoo.com>, "J.J. Schlafley" > wrote: >> HI, >> I am using Bob's Googlish road symbolization example, but cant get road >> shields to "line up" with road labels. GAP property for my symbol doesnt >> seem to work. Symbol and Layer def below. Mapserver version 5.2. >> >> Thanks for the input >> >> SYMBOL >> NAME "highway" >> TYPE ellipse >> FILLED true >> POINTS >> 1.5 1 >> END >> GAP 10 >> END >> >> LAYER >> NAME 'road_sym' >> GROUP 'interstate_poly' >> DATA "Roads" >> STATUS OFF >> TYPE ANNOTATION >> CLASSITEM 'FCC' >> LABELITEM 'RDNUMBER' >> TOLERANCE 1000 >> CLASS >> EXPRESSION (("[FCC]" = "A11") OR ("[FCC]" = "A12")) # interstates >> STYLE >> SYMBOL 'highway' >> SIZE 18 >> COLOR 115 113 206 >> OUTLINECOLOR 254 254 254 >> END >> LABEL >> TYPE TRUETYPE >> FONT arial >> SIZE 12 >> COLOR 254 254 254 >> MINDISTANCE 200 >> MINFEATURESIZE 10 >> OFFSET 0 0 >> PARTIALS FALSE >> END >> END >> CLASS >> EXPRESSION 'A21' # US Highway >> STYLE >> SYMBOL 'highway' >> SIZE 18 >> COLOR 255 255 255 >> OUTLINECOLOR 0 0 0 >> END >> LABEL >> TYPE TRUETYPE >> FONT arial >> SIZE 11 >> COLOR 0 0 0 >> MINDISTANCE 250 >> MINFEATURESIZE 15 >> OFFSET 0 -1 >> PARTIALS FALSE >> END >> MAXSCALE 400000 >> END >> >> >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Bob.Basques at ci.stpaul.mn.us Fri Mar 27 15:12:25 2009 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Fri, 27 Mar 2009 17:12:25 -0500 Subject: [mapserver-users] Bobs Googlish road symbolization help Message-ID: <49CD08F9020000A80001221B@jeckle> All, It ended up being a problem with an invisible (as in missing) "END" tag. :c) bobb >>> Stephen Woodbridge 03/27/09 4:35 PM >>> JJ, You need to use "OFFSET x y" to shift the shield to lineup with the label text. I also recommend using POSITION CC. x and y are numbers of pixel and can be negative values to shift in the opposite direction. -Steve W Steve Lime wrote: > Do you have a visual sample of the problem? > > Steve > >>>> On 3/27/2009 at 11:05 AM, in message > <848500.65634.qm at web52309.mail.re2.yahoo.com>, "J.J. Schlafley" > wrote: >> HI, >> I am using Bob's Googlish road symbolization example, but cant get road >> shields to "line up" with road labels. GAP property for my symbol doesnt >> seem to work. Symbol and Layer def below. Mapserver version 5.2. >> >> Thanks for the input >> >> SYMBOL >> NAME "highway" >> TYPE ellipse >> FILLED true >> POINTS >> 1.5 1 >> END >> GAP 10 >> END >> >> LAYER >> NAME 'road_sym' >> GROUP 'interstate_poly' >> DATA "Roads" >> STATUS OFF >> TYPE ANNOTATION >> CLASSITEM 'FCC' >> LABELITEM 'RDNUMBER' >> TOLERANCE 1000 >> CLASS >> EXPRESSION (("[FCC]" = "A11") OR ("[FCC]" = "A12")) # interstates >> STYLE >> SYMBOL 'highway' >> SIZE 18 >> COLOR 115 113 206 >> OUTLINECOLOR 254 254 254 >> END >> LABEL >> TYPE TRUETYPE >> FONT arial >> SIZE 12 >> COLOR 254 254 254 >> MINDISTANCE 200 >> MINFEATURESIZE 10 >> OFFSET 0 0 >> PARTIALS FALSE >> END >> END >> CLASS >> EXPRESSION 'A21' # US Highway >> STYLE >> SYMBOL 'highway' >> SIZE 18 >> COLOR 255 255 255 >> OUTLINECOLOR 0 0 0 >> END >> LABEL >> TYPE TRUETYPE >> FONT arial >> SIZE 11 >> COLOR 0 0 0 >> MINDISTANCE 250 >> MINFEATURESIZE 15 >> OFFSET 0 -1 >> PARTIALS FALSE >> END >> MAXSCALE 400000 >> END >> >> >> > > _______________________________________________ > 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 dnr.state.mn.us Fri Mar 27 15:14:27 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 27 Mar 2009 17:14:27 -0500 Subject: [mapserver-users] Bobs Googlish road symbolization help In-Reply-To: <49CD08F9020000A80001221B@jeckle> References: <49CD08F9020000A80001221B@jeckle> Message-ID: <49CD0973.5157.008F.0@dnr.state.mn.us> Good news is that will be flagged as an error in 5.4... Steve >>> On 3/27/2009 at 5:12 PM, in message <49CD08F9020000A80001221B at jeckle>, "Bob Basques" wrote: > All, > > > It ended up being a problem with an invisible (as in missing) "END" tag. > > :c) > > bobb > > >>>> Stephen Woodbridge 03/27/09 4:35 PM >>> > JJ, > > You need to use "OFFSET x y" to shift the shield to lineup with the > label text. I also recommend using POSITION CC. x and y are numbers of > pixel and can be negative values to shift in the opposite direction. > > -Steve W > > Steve Lime wrote: >> Do you have a visual sample of the problem? >> >> Steve >> >>>>> On 3/27/2009 at 11:05 AM, in message >> <848500.65634.qm at web52309.mail.re2.yahoo.com>, "J.J. Schlafley" >> wrote: >>> HI, >>> I am using Bob's Googlish road symbolization example, but cant get road >>> shields to "line up" with road labels. GAP property for my symbol doesnt >>> seem to work. Symbol and Layer def below. Mapserver version 5.2. >>> >>> Thanks for the input >>> >>> SYMBOL >>> NAME "highway" >>> TYPE ellipse >>> FILLED true >>> POINTS >>> 1.5 1 >>> END >>> GAP 10 >>> END >>> >>> LAYER >>> NAME 'road_sym' >>> GROUP 'interstate_poly' >>> DATA "Roads" >>> STATUS OFF >>> TYPE ANNOTATION >>> CLASSITEM 'FCC' >>> LABELITEM 'RDNUMBER' >>> TOLERANCE 1000 >>> CLASS >>> EXPRESSION (("[FCC]" = "A11") OR ("[FCC]" = "A12")) # interstates >>> STYLE >>> SYMBOL 'highway' >>> SIZE 18 >>> COLOR 115 113 206 >>> OUTLINECOLOR 254 254 254 >>> END >>> LABEL >>> TYPE TRUETYPE >>> FONT arial >>> SIZE 12 >>> COLOR 254 254 254 >>> MINDISTANCE 200 >>> MINFEATURESIZE 10 >>> OFFSET 0 0 >>> PARTIALS FALSE >>> END >>> END >>> CLASS >>> EXPRESSION 'A21' # US Highway >>> STYLE >>> SYMBOL 'highway' >>> SIZE 18 >>> COLOR 255 255 255 >>> OUTLINECOLOR 0 0 0 >>> END >>> LABEL >>> TYPE TRUETYPE >>> FONT arial >>> SIZE 11 >>> COLOR 0 0 0 >>> MINDISTANCE 250 >>> MINFEATURESIZE 15 >>> OFFSET 0 -1 >>> PARTIALS FALSE >>> END >>> MAXSCALE 400000 >>> END >>> >>> >>> >> >> _______________________________________________ >> 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 aditi.kolstudygroup at gmail.com Sat Mar 28 07:06:27 2009 From: aditi.kolstudygroup at gmail.com (aditigroup project) Date: Sat, 28 Mar 2009 19:36:27 +0530 Subject: [mapserver-users] Fwd: querying map to database and displaying the requested map using php mapscript In-Reply-To: References: Message-ID: ---------- Forwarded message ---------- From: aditigroup project Date: Fri, Mar 27, 2009 at 7:43 PM Subject: querying map to database and displaying the requested map using php mapscript To: mapserver-users at lists.osgeo.org Hello, I am trying to query map in the datatbase(postgres)and display the map as requested by the user.For e.g.If user gives an area say "goa" to search then we have to display the map of "goa". I can retrieve "goa" from the database.But we are not getting how to generate the map of goa and display it dynamically.How to do this? Please help. In our map file: QUERYMAP SIZE 200 150 STATUS ON STYLE HILITE # SELECTED | NORMAL COLOR 255 0 0 END our php file contains the following code: getLayerByName('INDIA_DIS'); $status = $layerobj->open(); $projInObj = ms_newprojectionobj("proj=latlong"); $projOutObj = ms_newprojectionobj("init=epsg:4326"); //$projOutObj = ms_newprojectionobj("init=epsg:4326"); $poPoint = ms_newpointobj(); $poPoint->setXY(-92.0, 62.0); $poPoint->project($projInObj, $projOutObj); $layerobj->set("status",MS_ON); *$result = pg_query($con, "select state from india_st where state='$src'");* if (!$result) { echo "An error occured.\n"; exit; } * $row = pg_fetch_row($result); echo $row[0]; * function setExtent($map) { $mapext = $_GET['mapext']; $mapext = explode(' ', $mapext); $extent['min']['x'] = floatval($mapext[0]); $extent['min']['y'] = floatval($mapext[1]); $extent['max']['x'] = floatval($mapext[2]); $extent['max']['y'] = floatval($mapext[3]); $map->setExtent($extent['min']['x'] ,$extent['min']['y'] ,$extent['max']['x'] ,$extent['max']['y'] ); } if ( isset($HTTP_POST_VARS["mapa_x"]) && isset($HTTP_POST_VARS["mapa_y"]) && !isset($HTTP_POST_VARS["full"]) ) { $extent_to_set = explode(" ",$HTTP_POST_VARS["extent"]); $map->setextent($extent_to_set[0],$extent_to_set[1], $extent_to_set[2],$extent_to_set[3]); $my_point = ms_newpointObj(); $my_point->setXY($HTTP_POST_VARS["mapa_x"],$HTTP_POST_VARS["mapa_y"]); $my_extent = ms_newrectObj(); $my_extent->setextent($extent_to_set[0],$extent_to_set[1],$extent_to_set[2],$extent_to_set[3]); $zoom_factor = $HTTP_POST_VARS["zoom"]*$HTTP_POST_VARS["zsize"]; if ($zoom_factor == 0) { $zoom_factor = 1; $check_pan = "CHECKED"; $check_zout = ""; $check_zin = ""; } else if ($zoom_factor < 0) { $check_pan = ""; $check_zout = "CHECKED"; $check_zin = ""; } else { $check_pan = ""; $check_zout = ""; $check_zin = "CHECKED"; } $val_zsize = abs($zoom_factor); $map->zoompoint($zoom_factor,$my_point,$map->width,$map->height, $my_extent); *if($src) { $image=$map->drawQuery(); } else { $image=$map->draw(); }* $image_url=$image->saveWebImage(); $extent_to_html = $map->extent->minx." ".$map->extent->miny." " .$map->extent->maxx." ".$map->extent->maxy; $layerobj->draw($image); ?> Map 2
>
Pan >
Zoom In >
Zoom Out >
Zoom Size
Full Extent
LAYER INDIA
search * *
-------------- next part -------------- An HTML attachment was scrubbed... URL: From romero619 at hotmail.com Sat Mar 28 10:39:13 2009 From: romero619 at hotmail.com (P.Romero) Date: Sat, 28 Mar 2009 11:39:13 -0600 Subject: [mapserver-users] ogr/mysql: trim spaces/padding for numeric fields? Message-ID: Im trying to use ogr's mysql driver to create a points layer that will be converted to an imagemap. Im using the following template to create the imagemap: [resultset layer=mypoints] [feature] [buoyName]-[lat],[lon] [/feature] [/resultset] the problem is that ogr pads numeric mysql fields with a very large amount of whitespace. Here is some of my output: 42055:                      2@                   160 the (double) numeric fields [lat] and [lon] are being left-padded with a lot of whitespace (each field is 22 spaces long in total). running my ovf file from the command line with ogrinfo produces the same result; a lot of unecessary left-padding. OGRFeature(mypoints):88 max(recTS) (Integer) = 1238258520 buoyName (String) = 41114 lat (Real) = 28 lon (Real) = -80 MAG (Real) = -371 WDIR (Real) = -99 WSPD (Real) = -99 ADIR (Real) = 81 ts (DateTime) = 2009/03/13 11:42:00 POINT (-80.219999999999999 27.55 0) Ogr's output also shows the 20+space left-padding for the double&int fields. Im trying to access my imagemap using a url in this format: http://localhost/cgi-bin/mapserv?map=/data/www/html/test/test.map &mode=nquery&searchmap=true I also tried embedding php code to try to preprocess the variables: [resultset layer=mypoints] [feature] [buoyName]-[lat],[lon] [/feature] [/resultset] but this obviously didn't work, Im assuming since cgi was processing & returning the results, so php was never even called upon. Questions: How can I remove this padding? Is this padding by design, or a bug in ogrinfo? Is there any other way that I can pre-process these variables prior to sending them to the browser, (using php or some other means) so that I can process&format them based on my needs? Please help, Thanks, P.Romero -------------- next part -------------- An HTML attachment was scrubbed... URL: From romero619 at hotmail.com Sat Mar 28 11:55:40 2009 From: romero619 at hotmail.com (P.Romero) Date: Sat, 28 Mar 2009 12:55:40 -0600 Subject: [mapserver-users] imagemaps using php mapscript? Message-ID: How can this example: http://mapserver.org/output/imagemaps.html?highlight=imagemap be implemented using php mapscript? More specifically, how can the html output for the imagemap be separated from the imageobject, and stored into a php variable? Im hoping for something like.. $map = ms_newMapObj("mymapfile.map"); $map_img=$img=$map->draw(); $imagemap_html=$map->get_html_output(); ...and then I can separately handle the image & html output. Is this possible? Please help, Thanks, P.Romero -------------- next part -------------- An HTML attachment was scrubbed... URL: From romero619 at hotmail.com Sat Mar 28 13:08:27 2009 From: romero619 at hotmail.com (P. R.M.) Date: Sat, 28 Mar 2009 13:08:27 -0700 Subject: [mapserver-users] imagemaps using php mapscript? In-Reply-To: <2a37f67a0903281229i8946f8fr8c782275d2d16e30@mail.gmail.com> References: <2a37f67a0903281229i8946f8fr8c782275d2d16e30@mail.gmail.com> Message-ID: thanks, but that didnt help much. I have this: $map = ms_newMapObj("/data/www/html/test/test.map"); $img=$map->draw(); $tmparray["img_url"] = $img->saveWebImage(); # remove '/data/www/html' directory prefix # from the resulting url string $tmparray["img_url"] = substr($tmparray["img_url"],14,strlen($tmparray["img_url"])); $html=$map->processquerytemplate($tmparray); echo $html; However, the processquerytemplate() function is not processing the data in my points layer. the imagemap html tags are empty, even though the points from my points layer are correctly being drawn on the map image. Here's the relevant sections of my mapfile, including my points layer: OUTPUTFORMAT NAME 'html' DRIVER 'TEMPLATE' MIMETYPE 'text/html' FORMATOPTION 'FILE=/data/www/html/test/testmap.html' END QUERYMAP STATUS ON STYLE NORMAL END WEB QUERYFORMAT 'html' LOG "/data/www/html/test/mslog" IMAGEPATH "/data/www/html/images/mapserver/tmp/" IMAGEURL "/data/www/html/images/mapserver/tmp/" MAXSCALE 15500000 END LAYER NAME "mypoints" STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "test.ovf" DATA "mypoints" TYPE POINT TEMPLATE "/data/www/html/test/testmap.html" CLASS NAME "None" STYLE SYMBOL 'arrow' ANGLE [ADIR] SIZE [MAG] END END END the documentation says that the processquerytemplate() function apparently only processes at the mapobject layer, so it doesnt seem to process each layer. Is this correct? How can I process the html template file using the points in my points layer? Please help, Thanks, P.Romero ________________________________ > Date: Sat, 28 Mar 2009 21:29:35 +0200 > Subject: Re: [mapserver-users] imagemaps using php mapscript? > From: iacovlev.pavel at gmail.com > To: romero619 at hotmail.com > > $image = $map->draw(); > > ob_start(); > $image->saveimage(''); > $image = imagecreatefromstring(ob_get_contents()); > $contents = ob_get_contents(); > ob_end_clean(); > > imagepng($image); > > > 2009/3/28 P.Romero> > > > > > > > > > > > > > > > > How can this example: > > > > http://mapserver.org/output/imagemaps.html?highlight=imagemap > > > > > > > > > be implemented using php mapscript? > > > > > > > > More specifically, how can the html output for the imagemap > be separated from the imageobject, and stored into a php variable? > > > > > > > > Im hoping for something like?. > > > > > > > > $map = ms_newMapObj("mymapfile.map"); > > > > $map_img=$img=$map->draw(); > > > > $imagemap_html=$map->get_html_output(); > > > > > > > > ...and then I can separately handle the image & html > output. > > > > > > > > Is this possible? > > > > > > > > Please help, > > > > > > > > Thanks, > > > > P.Romero > > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > -- > http://iap.md, The future is open _________________________________________________________________ Express your personality in color! Preview and select themes for Hotmail?. http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_WL_HM_express_032009#colortheme From kreshna_iceheart at yahoo.com Sat Mar 28 21:19:37 2009 From: kreshna_iceheart at yahoo.com (kreshna_iceheart at yahoo.com) Date: Sat, 28 Mar 2009 21:19:37 -0700 (PDT) Subject: [mapserver-users] Installing MapServer on existing Apache/PHP/MySQL on Linux? Message-ID: <144797.43155.qm@web110606.mail.gq1.yahoo.com> So I'm going to install MapServer and PostGIS/PostgreSQL on a Linux server. The Linux server is a production server, and it already has an existing Apache/PHP/MySQL installed. The problem is: I'm totally inexperienced in installing MapServer on existing Apache installation. I usually installed all the underlying components myself (Apache, PHP, postgreSQL, etc), following the steps described here: http://72.14.235.132/search?q=cache:4PJQPLdKVrMJ:ms.gis.umn.edu:8081/ms_plone/docs/howto/verboselinuxinstall+installing+MapServer+on+linux&cd=1&hl=en&ct=clnk Theoritically, all I need to do is recompile the existing Apache installation, using the switches described in the Verbose Linux Installation above, am I correct? Anyone experienced in installing MapServer over existing Apache before? What are the caveats? Any tips to share? Many thanks, -Kresh From gregor at hostgis.com Sat Mar 28 21:52:59 2009 From: gregor at hostgis.com (Gregor at HostGIS) Date: Sat, 28 Mar 2009 21:52:59 -0700 Subject: [mapserver-users] Installing MapServer on existing Apache/PHP/MySQL on Linux? In-Reply-To: <144797.43155.qm@web110606.mail.gq1.yahoo.com> References: <144797.43155.qm@web110606.mail.gq1.yahoo.com> Message-ID: <49CEFEAB.3070607@hostgis.com> > all I need to do is recompile the existing Apache installation No, no; no need for that. MapServer is a simple CGI program, so if your Apache has support for CGI programs you're good to go. And while support for CGI can be disabled, it's probably enabled. > Anyone experienced in installing MapServer over existing Apache before? I've done it a few hundred times (literally) and am glad to share tips. Feel free to email me directly with questions, but change the subject so it doesn't get caught by my filters. Step 1: Have you installed the prerequisites? GDAL/OGR and PROJ4 are not strictly required, but if you want to do anything about reprojecting data or using something other than shapefiles and TIFFs, they're strongly recommended. Step 2: Download and build the source. Download the tar.gz file from mapserver.org, extract it, run ./configure with flags for whatever features you want, and then "make" Then copy the files into place. Step 3: Point a browser at /cgi/bin/mapserv and expect an error message from having not supplied enough query params. At that point, you're ready. -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ From SansonR at asurequality.com Sun Mar 29 12:52:12 2009 From: SansonR at asurequality.com (Robert Sanson) Date: Mon, 30 Mar 2009 08:52:12 +1300 Subject: [mapserver-users] large shapefile - oops Message-ID: <49D0883C.379F.0037.0@asurequality.com> Hi Steve I was a bit hasty and hadn't read Stephen Woodgridge's response. His answer is more complete and correct than mine. I was thinking of gdaltindex for rasters. Kind regards, Robert Sanson >>> 28/03/2009 3:05 a.m. >>> Hi, I read a lot on how to optimized mapserver for large shapefile but I get confused. I read on shp2tile, ogrtindex, shptree, ... What is the link between those tools? What is the recipe? thanks, Steve Steve Toutant, M. Sc. Analyste en g?omatique Secteur environnement Direction des risques biologiques, environnementaux et occupationnels Institut national de sant? publique du Qu?bec 945, avenue Wolfe Qu?bec, Qc G1V 5B3 T?l.: (418) 650-5115 #5281 Fax.: (418) 654-3144 steve.toutant at inspq.qc.ca http://www.inspq.qc.ca ( http://www.inspq.qc.ca/ ) Click here ( https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg== ) to report this email as spam. ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From SansonR at asurequality.com Sun Mar 29 12:46:30 2009 From: SansonR at asurequality.com (Robert Sanson) Date: Mon, 30 Mar 2009 08:46:30 +1300 Subject: [mapserver-users] large shapefile In-Reply-To: References: Message-ID: <49D086E5.379F.0037.0@asurequality.com> Hi Steve For Shapefiles, the only one you need is shptree. It creates a .qix spatial index file of your features. Usage: shptree yourshapefile.shp The other tools are for rasters. Kind regards, Robert Sanson Robert Sanson, BVSc, MACVSc, PhD Geospatial Services AsureQuality Limited PO Box 585, Palmerston North NEW ZEALAND Phone: +64 6 351-7990 Fax: +64 6 351-7919 Mobile: 021 448-472 E-mail: sansonr at asurequality.com >>> 28/03/2009 3:05 a.m. >>> Hi, I read a lot on how to optimized mapserver for large shapefile but I get confused. I read on shp2tile, ogrtindex, shptree, ... What is the link between those tools? What is the recipe? thanks, Steve Steve Toutant, M. Sc. Analyste en g?omatique Secteur environnement Direction des risques biologiques, environnementaux et occupationnels Institut national de sant? publique du Qu?bec 945, avenue Wolfe Qu?bec, Qc G1V 5B3 T?l.: (418) 650-5115 #5281 Fax.: (418) 654-3144 steve.toutant at inspq.qc.ca http://www.inspq.qc.ca ( http://www.inspq.qc.ca/ ) Click here ( https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg== ) to report this email as spam. ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.sirin07 at googlemail.com Sun Mar 29 14:51:09 2009 From: m.sirin07 at googlemail.com (Mehmet) Date: Sun, 29 Mar 2009 23:51:09 +0200 Subject: [mapserver-users] WFS Filter with CGI Controls ? Message-ID: <55744b1c0903291451i63f43af3iaeddadffffe39ff6@mail.gmail.com> Hi, using the wfs_filter in a wms/wfs client works without problems. But I wonder If can use "wfs_filter" via URL (not for getting a XML File by GetFeature..that is I'm not meaning &Filter=AREA100 ). It's for showing a dropdown menu in which users can choose what type of roads they want to display (the geodata comes from openstreetmap). Is it possible? By the way: I just have the Mapserver 4.10 running. Thank you M.Sirin -------------- next part -------------- An HTML attachment was scrubbed... URL: From kreshna_iceheart at yahoo.com Sun Mar 29 22:04:08 2009 From: kreshna_iceheart at yahoo.com (kreshna_iceheart at yahoo.com) Date: Sun, 29 Mar 2009 22:04:08 -0700 (PDT) Subject: [mapserver-users] Installing MapServer on existing Apache/PHP/MySQL on Linux? Message-ID: <37438.21042.qm@web110615.mail.gq1.yahoo.com> > No, no; no need for that. MapServer is a simple CGI > program, so if your Apache has support for CGI programs > you're good to go. And while support for CGI can be > disabled, it's probably enabled. I see! Thanks! Duh. > I've done it a few hundred times (literally) and am glad to > share tips. Feel free to email me directly with questions, > but change the subject so it doesn't get caught by my > filters. Thanks. > Step 1: Have you installed the prerequisites? GDAL/OGR and > PROJ4 are not strictly required, but if you want to do > anything about reprojecting data or using something other > than shapefiles and TIFFs, they're strongly recommended. No. This is a simple web map application, but I think I'll install the prerequisite just in case. > Step 2: Download and build the source. Download the tar.gz > file from mapserver.org, extract it, run ./configure with > flags for whatever features you want, and then "make" Then > copy the files into place. > > Step 3: Point a browser at /cgi/bin/mapserv and expect an > error message from having not supplied enough query params. > At that point, you're ready. Thanks for the tips, Greg. :-) Kind regards, -Kresh From juanma.mr at gmail.com Mon Mar 30 03:25:05 2009 From: juanma.mr at gmail.com (Juanma M. R.) Date: Mon, 30 Mar 2009 12:25:05 +0200 Subject: [mapserver-users] Phpmapscript doesn't work with Postgis Message-ID: <7cf5c5b80903300325k230e4a96h44ae2afc499267f3@mail.gmail.com> Hi list, We are migrating our servers to a new server based on Centos and we are suffering problems with the use of phpmapscript. Postgis is working correctly when accessing from php but it fails when executing the code bellow (our script is more complicated but I have removed the other issues just to check what is failling and aboid side effect from our code). The problem is that mapserver as cgi works correctly with the same map file and the same layer and mapscript is compiled at the same time than mapserver with postgis support (--with-php in the mapserver configure options). The apache logs shows an Unexpected process ending with Segmentation fault (11) error. The PostGIS log just sais that the connection was broken unexpected by the client but doesn't give more details. If anyone have any sugestion to follow up the testing and debugging, any other way to try to find the problem or at least more details about what could be failling, because we have no more ideas to get any clue about what is happening. Our configuration: Mapserver 4.10.2 Postgres 8.3.5 PHP 5.2.6 Centos 5.2 Here is the layer declaration of the map file: LAYER NAME "postgislayer" CONNECTIONTYPE postgis CONNECTION "host=localhost user=**** password=***** dbname=*****" DATA "wkb_geometry from postgislayer using unique ogc_fid using SRID=32629" STATUS ON TYPE polygon CLASS COLOR 0 0 255 OUTLINECOLOR 0 0 255 END PROJECTION "init=epsg:32629" END METADATA "wms_title" "Test Layer" "wms_srs" "epsg:32629" END END My php code is as follows (just the wms wrapper from mapserver documentation): $value) { $req_cgi->setparameter($key, $value); } } else { foreach ($_GET as $key => $value) { $req_cgi->setparameter($key, $value); } } ms_ioinstallstdouttobuffer(); $oMap = ms_newMapobj($req_cgi->getvaluebyname("map")); $oMap->owsdispatch($req_cgi); //$contenttype = ms_iostripstdoutbuffercontenttype(); if ($contenttype == '') header('Content-type: image/png'); else { $header = 'Content-type: '.$contenttype; header($header); } ms_iogetStdoutBufferBytes(); ms_ioresethandlers(); ?> -------------- next part -------------- An HTML attachment was scrubbed... URL: From adams at terrestris.de Mon Mar 30 03:32:52 2009 From: adams at terrestris.de (Till Adams) Date: Mon, 30 Mar 2009 12:32:52 +0200 Subject: [mapserver-users] maybe off-topic: gdal question size of tiff Message-ID: <49D09FD4.8030809@terrestris.de> Dear list, may be off topic here, butI'm sure all the gdal experts are also wqatching this list: I try to downscale (gdal_translate) tiff images to lower resolution. I got several which have more than 30000 px in one direction - and these are the ones causing problems, all others made with the same software (uncompressed) work fine. Gdalinfo works fine on all images, this is the output: Size is 32500, 23317 Coordinate System is `' Metadata: TIFFTAG_SOFTWARE=Adobe Photoshop CS3 Macintosh TIFFTAG_DATETIME=2009:02:20 09:17:28 TIFFTAG_XRESOLUTION=400 TIFFTAG_YRESOLUTION=400 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) Image Structure Metadata: INTERLEAVE=PIXEL Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0,23317.0) Upper Right (32500.0, 0.0) Lower Right (32500.0,23317.0) Center (16250.0,11658.5) Band 1 Block=32500x1 Type=Byte, ColorInterp=Red Band 2 Block=32500x1 Type=Byte, ColorInterp=Green Band 3 Block=32500x1 Type=Byte, ColorInterp=Blue When trying to convert (gdal_translate) or cut (gdalwarp) them, I get this error on images > 30000px in x OR y: Input file size is 32500, 23317 0ERROR 1: berlin.tif:2273407500: Invalid strip byte count, strip 0 ERROR 1: TIFFReadEncodedStrip() failed. ERROR 1: IReadBlock failed at X offset 0, Y offset 0 ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0 The images are NOT bigger than 4GB!! Is there anyone who has any clue, what is going wrong? Thanks a lot! Till ---------------------------------------------------------- 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 meenu.monu at gmail.com Mon Mar 30 05:55:00 2009 From: meenu.monu at gmail.com (meenu) Date: Mon, 30 Mar 2009 05:55:00 -0700 (PDT) Subject: [mapserver-users] some doubts about mapserver... Message-ID: <1238417700922-2557057.post@n2.nabble.com> hi friends...i installed ms4w successfully....mapserver version is 5.2.1....now when i type localhost in browser ms4w homepage is coming and installed applications is working fine....now my requirement is 1.i want to edit gmap module in visual studio 2005 based on my requirements.is it possible??? 2.in gmap module i want to pass mapinfo tables instead of the default gisdata.how it is possible? 3.is it possible to run mapserver without PHP ? 4.any sample application available for map server coded using c# or vb.net for mapping? 5.mapserver is working fine using apache...i did all the steps in the "http://mapserver.org/installation/iis.html" link for setting up mapserver with iis....but it is giving me the error like as follows... how can i solve this issue??? The webpage cannot be found HTTP 400 Most likely causes: There might be a typing error in the address. If you clicked on a link, it may be out of date. all mapserver help available is based on php....so am troubling lot for doing mapserver in vs2005 (vb.net)... am using windows server 2003 and iis v6....can anybody help me for solving my issues...am new in this mapserver work...so please help me... -- View this message in context: http://n2.nabble.com/some-doubts-about-mapserver...-tp2557057p2557057.html Sent from the Mapserver - User mailing list archive at Nabble.com. From meenu.monu at gmail.com Mon Mar 30 05:58:33 2009 From: meenu.monu at gmail.com (meenu) Date: Mon, 30 Mar 2009 05:58:33 -0700 (PDT) Subject: [mapserver-users] how can i create mapserver website in VS 2005 (VB) In-Reply-To: References: <1237726362116-2516841.post@n2.nabble.com> Message-ID: <1238417913592-2557078.post@n2.nabble.com> dear friend suggested link is not working regards -- View this message in context: http://n2.nabble.com/how-can-i-create-mapserver-website-in-VS-2005-%28VB%29-tp2516841p2557078.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ssteve52 at yahoo.com Mon Mar 30 11:09:34 2009 From: ssteve52 at yahoo.com (Steve Smith) Date: Mon, 30 Mar 2009 11:09:34 -0700 (PDT) Subject: [mapserver-users] read GRASS raster files Message-ID: <801460.20459.qm@web45603.mail.sp1.yahoo.com> I'm trying to read a GRASS raster file, from MapServer, but am getting pink tiles. The layer in my .map file is set up as follows: LAYER NAME "JordanMask" DATA "/var/www/html/mapdata/grassdata/NCFeet/PERMANENT/cellhd/JordanMask" STATUS on TYPE raster CLASS NAME "JordanLakeMask" END END I have gdal-grass-1.4.3 install, and mapserver in installed with gdal support: $ /var/www/cgi-bin/mapserv -v MapServer version 5.4.0-beta3 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 SUPPORTS=SOS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I also have gdal installed with GRASS support: $ gdal_translate --formats | grep -i grass GRASS (ro): GRASS Database Rasters (5.7+) If I comment DATA out, in my .map file I do not get the pink tiles, but of course I can not access the data. However, this makes me think it is a syntax error, but the text in LAYER looks correct. Any ideas on what may be the problem? Thanks Steve From MarkVolz at co.lyon.mn.us Mon Mar 30 11:14:19 2009 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Mon, 30 Mar 2009 13:14:19 -0500 Subject: [mapserver-users] problem with specific queries while upgrading to 5.2.2 Message-ID: <3D56274B4A7874468F58FADDBFD0980107084FBC@llmhs02.r8nssis.local> Hello, I have recently upgraded from Mapserver 5.2.1 to 5.2.2. Apparently there are some new security features, one being that you need to add to all of the web pages that report identify, query, and select results. I now have most of my site running. The problem I have now is some of my searches no longer work. I receive the following error when I include a dash "-" as part of my search string e.g. "01-001001-0" loadMap(): Web application error. Parameter 'id' value fails to validate. msEvalRegex(): Regular expression error. String (01-001) failed expression test. I can get the searches to work if I omit the portion of the search sting e.g. "001001" Any thoughts on how I can get the search to work? Last working system: Geomoose 1.6.1 on MS4W 5.2.1 Current system with problems: Geomoose 1.6.1 on MS4W 5.2.2 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Mon Mar 30 11:23:48 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 30 Mar 2009 13:23:48 -0500 Subject: [mapserver-users] problem with specific queries while upgrading to5.2.2 In-Reply-To: <3D56274B4A7874468F58FADDBFD0980107084FBC@llmhs02.r8nssis.local> References: <3D56274B4A7874468F58FADDBFD0980107084FBC@llmhs02.r8nssis.local> Message-ID: <49D0C7E3.5157.008F.0@dnr.state.mn.us> Ah, you're experiencing a problem because you're using a parameter "id" that is reserved CGI variable and therefore subject to it's own validation, much like mapext or map. Those variable names should be avoided. It worked in the past because there was no validation (hence the security fix). If you use a variable name like "parcel_id" instead of "id" you can work around this. The id CGI variable is used for quasi session handling. Steve >>> On 3/30/2009 at 1:14 PM, in message <3D56274B4A7874468F58FADDBFD0980107084FBC at llmhs02.r8nssis.local>, "Mark Volz" wrote: > Hello, > > > > I have recently upgraded from Mapserver 5.2.1 to 5.2.2. Apparently there > are > some new security features, one being that you need to add to all of the web pages that report identify, query, and select > results. I now have most of my site running. The problem I have now is > some > of my searches no longer work. I receive the following error when I include > a dash "-" as part of my search string e.g. "01-001001-0" > > > > loadMap(): Web application error. Parameter 'id' value fails to validate. > msEvalRegex(): Regular expression error. String (01-001) failed expression > test. > > > > I can get the searches to work if I omit the portion of the search sting > e.g. > "001001" > > > > Any thoughts on how I can get the search to work? > > > > Last working system: > > Geomoose 1.6.1 on MS4W 5.2.1 > > Current system with problems: > > Geomoose 1.6.1 on MS4W 5.2.2 > > From Steve.Lime at dnr.state.mn.us Mon Mar 30 13:07:50 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 30 Mar 2009 15:07:50 -0500 Subject: [mapserver-users] imagemaps using php mapscript? In-Reply-To: References: <2a37f67a0903281229i8946f8fr8c782275d2d16e30@mail.gmail.com> Message-ID: <49D0E046.5157.008F.0@dnr.state.mn.us> Templates will operate on all layers that have results. You have to do a query of some sort before running the results through the template though. I don't see that in your script. Steve >>> On 3/28/2009 at 3:08 PM, in message , "P. R.M." wrote: > thanks, but that didnt help much. > I have this: > > $map = ms_newMapObj("/data/www/html/test/test.map"); > $img=$map->draw(); > > $tmparray["img_url"] = $img->saveWebImage(); > > # remove '/data/www/html' directory prefix > # from the resulting url string > > $tmparray["img_url"] = > substr($tmparray["img_url"],14,strlen($tmparray["img_url"])); > > $html=$map->processquerytemplate($tmparray); > echo $html; > > However, the processquerytemplate() function is not processing the data in > my points layer. > the imagemap html tags are empty, even though the points from my points > layer are correctly being drawn on the map image. > > Here's the relevant sections of my mapfile, including my points layer: > > OUTPUTFORMAT > NAME 'html' > DRIVER 'TEMPLATE' > MIMETYPE 'text/html' > FORMATOPTION 'FILE=/data/www/html/test/testmap.html' > END > QUERYMAP > STATUS ON > STYLE NORMAL > END > WEB > QUERYFORMAT 'html' > LOG "/data/www/html/test/mslog" > IMAGEPATH "/data/www/html/images/mapserver/tmp/" > IMAGEURL "/data/www/html/images/mapserver/tmp/" > MAXSCALE 15500000 > END > LAYER > NAME "mypoints" > STATUS DEFAULT > CONNECTIONTYPE OGR > CONNECTION "test.ovf" > DATA "mypoints" > TYPE POINT > TEMPLATE "/data/www/html/test/testmap.html" > CLASS > NAME "None" > STYLE > SYMBOL 'arrow' > ANGLE [ADIR] > SIZE [MAG] > END > END > END > > the documentation says that the processquerytemplate() function apparently > only processes at the mapobject layer, so it doesnt seem to process each > layer. Is this correct? > > How can I process the html template file using the points in my points > layer? > > Please help, > Thanks, > P.Romero > ________________________________ >> Date: Sat, 28 Mar 2009 21:29:35 +0200 >> Subject: Re: [mapserver-users] imagemaps using php mapscript? >> From: iacovlev.pavel at gmail.com >> To: romero619 at hotmail.com >> >> $image = $map->draw(); >> >> ob_start(); >> $image->saveimage(''); >> $image = imagecreatefromstring(ob_get_contents()); >> $contents = ob_get_contents(); >> ob_end_clean(); >> >> imagepng($image); >> >> >> 2009/3/28 P.Romero> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> How can this example: >> >> >> >> http://mapserver.org/output/imagemaps.html?highlight=imagemap >> >> >> >> >> >> >> >> >> be implemented using php mapscript? >> >> >> >> >> >> >> >> More specifically, how can the html output for the imagemap >> be separated from the imageobject, and stored into a php variable? >> >> >> >> >> >> >> >> Im hoping for something like?. >> >> >> >> >> >> >> >> $map = ms_newMapObj("mymapfile.map"); >> >> >> >> $map_img=$img=$map->draw(); >> >> >> >> $imagemap_html=$map->get_html_output(); >> >> >> >> >> >> >> >> ...and then I can separately handle the image & html >> output. >> >> >> >> >> >> >> >> Is this possible? >> >> >> >> >> >> >> >> Please help, >> >> >> >> >> >> >> >> Thanks, >> >> >> >> P.Romero >> >> >> >> >> >> >> >> >> _______________________________________________ >> >> mapserver-users mailing list >> >> mapserver-users at lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> >> >> -- >> http://iap.md, The future is open > _________________________________________________________________ > Express your personality in color! Preview and select themes for Hotmail?. > http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_ > WL_HM_express_032009#colortheme______________________________________________ > _ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From naci0002 at umn.edu Mon Mar 30 14:28:57 2009 From: naci0002 at umn.edu (Perry Nacionales) Date: Mon, 30 Mar 2009 16:28:57 -0500 Subject: [mapserver-users] read GRASS raster files In-Reply-To: <801460.20459.qm@web45603.mail.sp1.yahoo.com> References: <801460.20459.qm@web45603.mail.sp1.yahoo.com> Message-ID: <49D13999.5000001@umn.edu> What does "gdalinfo" say about your dataset? You probably need to define a symbol (with color) in your class. Or you need to define an expression (cell values, for example) in your class. Good luck! -Perry Steve Smith wrote: > I'm trying to read a GRASS raster file, from MapServer, but am getting pink tiles. > > The layer in my .map file is set up as follows: > > LAYER > NAME "JordanMask" > DATA "/var/www/html/mapdata/grassdata/NCFeet/PERMANENT/cellhd/JordanMask" > STATUS on > TYPE raster > CLASS > NAME "JordanLakeMask" > END > END > > I have gdal-grass-1.4.3 install, and mapserver in installed with gdal support: > > $ /var/www/cgi-bin/mapserv -v > MapServer version 5.4.0-beta3 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 SUPPORTS=SOS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > I also have gdal installed with GRASS support: > > $ gdal_translate --formats | grep -i grass > GRASS (ro): GRASS Database Rasters (5.7+) > > If I comment DATA out, in my .map file I do not get the pink tiles, but of course I can not access the data. However, this makes me think it is a syntax error, but the text in LAYER looks correct. Any ideas on what may be the problem? > > Thanks > Steve > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From pcorti at gmail.com Mon Mar 30 15:38:12 2009 From: pcorti at gmail.com (Paolo Corti) Date: Mon, 30 Mar 2009 15:38:12 -0700 (PDT) Subject: [mapserver-users] how can i create mapserver website in VS 2005 (VB) In-Reply-To: <1238417913592-2557078.post@n2.nabble.com> References: <1237726362116-2516841.post@n2.nabble.com> <1238417913592-2557078.post@n2.nabble.com> Message-ID: <1238452692319-2560080.post@n2.nabble.com> dear friend suggested link is not working Meenu, you are right my website was offline for somedays, i changed my host and had to wait that the server name was updated. Now is online again, the url Tamas gave you is the right one ;-) best regards Paolo -- View this message in context: http://n2.nabble.com/how-can-i-create-mapserver-website-in-VS-2005-%28VB%29-tp2516841p2560080.html Sent from the Mapserver - User mailing list archive at Nabble.com. From romero619 at hotmail.com Mon Mar 30 19:19:10 2009 From: romero619 at hotmail.com (P. R.M.) Date: Mon, 30 Mar 2009 19:19:10 -0700 Subject: [mapserver-users] imagemaps using php mapscript? In-Reply-To: References: <2a37f67a0903281229i8946f8fr8c782275d2d16e30@mail.gmail.com> Message-ID: Im bumping this message, hoping for some help/feedback (see below). is there a problem with the mapserver mailing list? - several questions have gone by in the past few days (from both myself and other users) without any responses... Please help, Thanks, P.Romero ---------------------------------------- > From: romero619 at hotmail.com > To: iacovlev.pavel at gmail.com; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] imagemaps using php mapscript? > Date: Sat, 28 Mar 2009 13:08:27 -0700 > CC: > > > thanks, but that didnt help much. > I have this: > > $map = ms_newMapObj("/data/www/html/test/test.map"); > $img=$map->draw(); > > $tmparray["img_url"] = $img->saveWebImage(); > > # remove '/data/www/html' directory prefix > # from the resulting url string > > $tmparray["img_url"] = substr($tmparray["img_url"],14,strlen($tmparray["img_url"])); > > $html=$map->processquerytemplate($tmparray); > echo $html; > > However, the processquerytemplate() function is not processing the data in my points layer. > the imagemap html tags are empty, even though the points from my points layer are correctly being drawn on the map image. > > Here's the relevant sections of my mapfile, including my points layer: > > OUTPUTFORMAT > NAME 'html' > DRIVER 'TEMPLATE' > MIMETYPE 'text/html' > FORMATOPTION 'FILE=/data/www/html/test/testmap.html' > END > QUERYMAP > STATUS ON > STYLE NORMAL > END > WEB > QUERYFORMAT 'html' > LOG "/data/www/html/test/mslog" > IMAGEPATH "/data/www/html/images/mapserver/tmp/" > IMAGEURL "/data/www/html/images/mapserver/tmp/" > MAXSCALE 15500000 > END > LAYER > NAME "mypoints" > STATUS DEFAULT > CONNECTIONTYPE OGR > CONNECTION "test.ovf" > DATA "mypoints" > TYPE POINT > TEMPLATE "/data/www/html/test/testmap.html" > CLASS > NAME "None" > STYLE > SYMBOL 'arrow' > ANGLE [ADIR] > SIZE [MAG] > END > END > END > > the documentation says that the processquerytemplate() function apparently only processes at the mapobject layer, so it doesnt seem to process each layer. Is this correct? > > How can I process the html template file using the points in my points layer? > > Please help, > Thanks, > P.Romero > ________________________________ >> Date: Sat, 28 Mar 2009 21:29:35 +0200 >> Subject: Re: [mapserver-users] imagemaps using php mapscript? >> From: iacovlev.pavel at gmail.com >> To: romero619 at hotmail.com >> >> $image = $map->draw(); >> >> ob_start(); >> $image->saveimage(''); >> $image = imagecreatefromstring(ob_get_contents()); >> $contents = ob_get_contents(); >> ob_end_clean(); >> >> imagepng($image); >> >> >> 2009/3/28 P.Romero> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> How can this example: >> >> >> >> http://mapserver.org/output/imagemaps.html?highlight=imagemap >> >> >> >> >> >> >> >> >> be implemented using php mapscript? >> >> >> >> >> >> >> >> More specifically, how can the html output for the imagemap >> be separated from the imageobject, and stored into a php variable? >> >> >> >> >> >> >> >> Im hoping for something like?. >> >> >> >> >> >> >> >> $map = ms_newMapObj("mymapfile.map"); >> >> >> >> $map_img=$img=$map->draw(); >> >> >> >> $imagemap_html=$map->get_html_output(); >> >> >> >> >> >> >> >> ...and then I can separately handle the image & html >> output. >> >> >> >> >> >> >> >> Is this possible? >> >> >> >> >> >> >> >> Please help, >> >> >> >> >> >> >> >> Thanks, >> >> >> >> P.Romero >> >> >> >> >> >> >> >> >> _______________________________________________ >> >> mapserver-users mailing list >> >> mapserver-users at lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> >> >> -- >> http://iap.md, The future is open > _________________________________________________________________ > Express your personality in color! Preview and select themes for Hotmail?. > http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_WL_HM_express_032009#colortheme_______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _________________________________________________________________ Express your personality in color! Preview and select themes for Hotmail?. http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_WL_HM_express_032009#colortheme From meenu.monu at gmail.com Mon Mar 30 22:44:51 2009 From: meenu.monu at gmail.com (meenu) Date: Mon, 30 Mar 2009 22:44:51 -0700 (PDT) Subject: [mapserver-users] how can i create mapserver website in VS 2005 (VB) In-Reply-To: <1238452692319-2560080.post@n2.nabble.com> References: <1237726362116-2516841.post@n2.nabble.com> <1238417913592-2557078.post@n2.nabble.com> <1238452692319-2560080.post@n2.nabble.com> Message-ID: <1238478291247-2561308.post@n2.nabble.com> still suggested link is not getting http://www.paolocorti.net/2006/09/20/mapserver-tutorial-for-c-mapscript-asp-net/ -- View this message in context: http://n2.nabble.com/how-can-i-create-mapserver-website-in-VS-2005-%28VB%29-tp2516841p2561308.html Sent from the Mapserver - User mailing list archive at Nabble.com. From peter_rose at hotmail.com Tue Mar 31 02:00:33 2009 From: peter_rose at hotmail.com (Peter Rose) Date: Tue, 31 Mar 2009 02:00:33 -0700 (PDT) Subject: [mapserver-users] Using EXPRESSION to display various data from MySQL database Message-ID: <1238490033436-2561898.post@n2.nabble.com> Hi I have a MapServer set up connected to a MySQL server via PHP/MapScript based on the example in Bill Kropla?s book ?Beginning MapServer Open Source GIS Develpment?, chapter 9. My data is therefore stored on the MySQL server and displayed as points in MapServer based on the queries I give it. The data also have fiscal values which I would like to display with differently sized coloured points depending on their value. I know how to do this with an EXPRESSION in the mapfile if the data is stored as an attribute in a shapefile but I can?t get it to work with my data in the MySQL database. Here is my mapfile: ##################################### # POI layer - points of interest # LAYER NAME "poi" STATUS default TYPE point LABELCACHE on CLASS NAME "Large fiscal" EXPRESSION ([fiscal] < 1) STYLE SYMBOL "Circle" SIZE 8 COLOR 255 0 0 BACKGROUNDCOLOR 255 0 0 END END # class CLASS NAME "Small fiscal" EXPRESSION ([fiscal] > 1) STYLE SYMBOL "Circle" SIZE 8 COLOR 0 255 0 BACKGROUNDCOLOR 0 255 0 END END # class END # layer poi ##################################### The database connection and all querying takes place in the php-file as I want to allow the users to change their search criteria. I therefore don?t want to include any database connection in the mapfile if possible. Thanks in advance for your help. -- View this message in context: http://n2.nabble.com/Using-EXPRESSION-to-display-various-data-from-MySQL-database-tp2561898p2561898.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pcorti at gmail.com Tue Mar 31 03:33:41 2009 From: pcorti at gmail.com (Paolo Corti) Date: Tue, 31 Mar 2009 03:33:41 -0700 (PDT) Subject: [mapserver-users] how can i create mapserver website in VS 2005 (VB) In-Reply-To: <1238478291247-2561308.post@n2.nabble.com> References: <1237726362116-2516841.post@n2.nabble.com> <1238417913592-2557078.post@n2.nabble.com> <1238452692319-2560080.post@n2.nabble.com> <1238478291247-2561308.post@n2.nabble.com> Message-ID: <1238495621680-2562254.post@n2.nabble.com> still suggested link is not getting http://www.paolocorti.net/2006/09/20/mapserver-tutorial-for-c-mapscript-asp-net/ I think you need to update the cache, for me it is working since yesterday (when i answered you) best regards Paolo -- View this message in context: http://n2.nabble.com/how-can-i-create-mapserver-website-in-VS-2005-%28VB%29-tp2516841p2562254.html Sent from the Mapserver - User mailing list archive at Nabble.com. From meenu.monu at gmail.com Tue Mar 31 04:02:12 2009 From: meenu.monu at gmail.com (meenu) Date: Tue, 31 Mar 2009 04:02:12 -0700 (PDT) Subject: [mapserver-users] how can i create mapserver website in VS 2005 (VB) In-Reply-To: <1238495621680-2562254.post@n2.nabble.com> References: <1237726362116-2516841.post@n2.nabble.com> <1238417913592-2557078.post@n2.nabble.com> <1238452692319-2560080.post@n2.nabble.com> <1238478291247-2561308.post@n2.nabble.com> <1238495621680-2562254.post@n2.nabble.com> Message-ID: <1238497332017-2562350.post@n2.nabble.com> without update cache now specified link is working perfect....i did all steps specified in the link...am getting 4 errors like as follows...am using vs 2005...can u help me to solve this issue... the type or namespace name 'mapObj' could not be found (are you missing a using directive or an assembly reference?) The type or namespace name 'rectObj' could not be found (are you missing a using directive or an assembly reference?) The type or namespace name 'mapObj' could not be found (are you missing a using directive or an assembly reference?) The type or namespace name 'pointObj' could not be found (are you missing a using directive or an assembly reference?) The type or namespace name 'pointObj' could not be found (are you missing a using directive or an assembly reference?) -- View this message in context: http://n2.nabble.com/how-can-i-create-mapserver-website-in-VS-2005-%28VB%29-tp2516841p2562350.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pcorti at gmail.com Tue Mar 31 07:04:56 2009 From: pcorti at gmail.com (Paolo Corti) Date: Tue, 31 Mar 2009 07:04:56 -0700 (PDT) Subject: [mapserver-users] how can i create mapserver website in VS 2005 (VB) In-Reply-To: <1238497332017-2562350.post@n2.nabble.com> References: <1237726362116-2516841.post@n2.nabble.com> <1238417913592-2557078.post@n2.nabble.com> <1238452692319-2560080.post@n2.nabble.com> <1238478291247-2561308.post@n2.nabble.com> <1238495621680-2562254.post@n2.nabble.com> <1238497332017-2562350.post@n2.nabble.com> Message-ID: <1238508296019-2563124.post@n2.nabble.com> ....i did all steps specified in the link...am getting 4 errors like as follows...am using vs 2005...can u help me to solve this issue... The type or namespace name 'pointObj' could not be found (are you missing a using directive or an assembly reference?) .......... looks like you are missing something obvious here, like adding the mapscript dll or your environoment is not well configured. Try if this basic steps are working: 1) create an asp.net project from VS 2) add a reference (must be .NET, not COM!) to the mapscript_csharp.dll 3) create a new form and put this code in the load event: protected void Page_Load(object sender, EventArgs e) { mapObj map = new mapObj(@"C:\whereverisyourmapfile\mapfile.map"); for (int i = 0; i < map.numlayers; i++) { layerObj layer = map.getLayer(i); System.Diagnostics.Debug.WriteLine(layer.name); } } Run your project with the new form as a startup object, if in the output window you will see a list with the name of each layer then your environment is correctly configured. Let me know! Paolo -- View this message in context: http://n2.nabble.com/how-can-i-create-mapserver-website-in-VS-2005-%28VB%29-tp2516841p2563124.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at dnr.state.mn.us Tue Mar 31 09:10:39 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 31 Mar 2009 11:10:39 -0500 Subject: [mapserver-users] imagemaps using php mapscript? In-Reply-To: References: <2a37f67a0903281229i8946f8fr8c782275d2d16e30@mail.gmail.com> Message-ID: <49D1FA2F.5157.008F.0@dnr.state.mn.us> I sent a reply about having to query before processing through a template. Did you not get that? Steve >>> On 3/30/2009 at 9:19 PM, in message , "P. R.M." wrote: > Im bumping this message, hoping for some help/feedback (see below). > > is there a problem with the mapserver mailing list? > - several questions have gone by in the past few days (from both myself and > other users) without any responses... > > Please help, > > Thanks, > P.Romero > > ---------------------------------------- >> From: romero619 at hotmail.com >> To: iacovlev.pavel at gmail.com; mapserver-users at lists.osgeo.org >> Subject: RE: [mapserver-users] imagemaps using php mapscript? >> Date: Sat, 28 Mar 2009 13:08:27 -0700 >> CC: >> >> >> thanks, but that didnt help much. >> I have this: >> >> $map = ms_newMapObj("/data/www/html/test/test.map"); >> $img=$map->draw(); >> >> $tmparray["img_url"] = $img->saveWebImage(); >> >> # remove '/data/www/html' directory prefix >> # from the resulting url string >> >> $tmparray["img_url"] = > substr($tmparray["img_url"],14,strlen($tmparray["img_url"])); >> >> $html=$map->processquerytemplate($tmparray); >> echo $html; >> >> However, the processquerytemplate() function is not processing the data in > my points layer. >> the imagemap html tags are empty, even though the points from my points > layer are correctly being drawn on the map image. >> >> Here's the relevant sections of my mapfile, including my points layer: >> >> OUTPUTFORMAT >> NAME 'html' >> DRIVER 'TEMPLATE' >> MIMETYPE 'text/html' >> FORMATOPTION 'FILE=/data/www/html/test/testmap.html' >> END >> QUERYMAP >> STATUS ON >> STYLE NORMAL >> END >> WEB >> QUERYFORMAT 'html' >> LOG "/data/www/html/test/mslog" >> IMAGEPATH "/data/www/html/images/mapserver/tmp/" >> IMAGEURL "/data/www/html/images/mapserver/tmp/" >> MAXSCALE 15500000 >> END >> LAYER >> NAME "mypoints" >> STATUS DEFAULT >> CONNECTIONTYPE OGR >> CONNECTION "test.ovf" >> DATA "mypoints" >> TYPE POINT >> TEMPLATE "/data/www/html/test/testmap.html" >> CLASS >> NAME "None" >> STYLE >> SYMBOL 'arrow' >> ANGLE [ADIR] >> SIZE [MAG] >> END >> END >> END >> >> the documentation says that the processquerytemplate() function apparently > only processes at the mapobject layer, so it doesnt seem to process each > layer. Is this correct? >> >> How can I process the html template file using the points in my points > layer? >> >> Please help, >> Thanks, >> P.Romero >> ________________________________ >>> Date: Sat, 28 Mar 2009 21:29:35 +0200 >>> Subject: Re: [mapserver-users] imagemaps using php mapscript? >>> From: iacovlev.pavel at gmail.com >>> To: romero619 at hotmail.com >>> >>> $image = $map->draw(); >>> >>> ob_start(); >>> $image->saveimage(''); >>> $image = imagecreatefromstring(ob_get_contents()); >>> $contents = ob_get_contents(); >>> ob_end_clean(); >>> >>> imagepng($image); >>> >>> >>> 2009/3/28 P.Romero> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> How can this example: >>> >>> >>> >>> http://mapserver.org/output/imagemaps.html?highlight=imagemap >>> >>> >>> >>> >>> >>> >>> >>> >>> be implemented using php mapscript? >>> >>> >>> >>> >>> >>> >>> >>> More specifically, how can the html output for the imagemap >>> be separated from the imageobject, and stored into a php variable? >>> >>> >>> >>> >>> >>> >>> >>> Im hoping for something like?. >>> >>> >>> >>> >>> >>> >>> >>> $map = ms_newMapObj("mymapfile.map"); >>> >>> >>> >>> $map_img=$img=$map->draw(); >>> >>> >>> >>> $imagemap_html=$map->get_html_output(); >>> >>> >>> >>> >>> >>> >>> >>> ...and then I can separately handle the image & html >>> output. >>> >>> >>> >>> >>> >>> >>> >>> Is this possible? >>> >>> >>> >>> >>> >>> >>> >>> Please help, >>> >>> >>> >>> >>> >>> >>> >>> Thanks, >>> >>> >>> >>> P.Romero >>> >>> >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> >>> mapserver-users mailing list >>> >>> mapserver-users at lists.osgeo.org >>> >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >>> >>> >>> >>> -- >>> http://iap.md, The future is open >> _________________________________________________________________ >> Express your personality in color! Preview and select themes for Hotmail?. >> > http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_W > L_HM_express_032009#colortheme_______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > _________________________________________________________________ > Express your personality in color! Preview and select themes for Hotmail?. > http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_ > WL_HM_express_032009#colortheme______________________________________________ > _ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From plieger at knmi.nl Tue Mar 31 09:10:35 2009 From: plieger at knmi.nl (Maarten Plieger) Date: Tue, 31 Mar 2009 16:10:35 +0000 Subject: [mapserver-users] UMN MapServer - WMS GetCapabilities: Hide element in top layer to prevent loading all layers at once Message-ID: <49D2407B.9090508@knmi.nl> Dear MapServer users, We have a WMS service running with UMN MapServer containing many layers, 365 to be exact. These layers represent data for each day, they are grouped in months, which are grouped in a year. The structure is Year/Month/Day: "Year" and "Month" are grouping layers while Day is a layer which contains the image. We would like that only the "Day" layer can be requested with GetMap and GetFeatureInfo, this should be disabled for Year and Month. The problem is that it is possible to request the name of the top layer (first layer in getcapabilities files) in a GetMap request, resulting that all layers in the service are loaded and displayed in one image. This causes a high load on our service, which we would like to reduce. We would like to allow a GetMap request of one or multiple layers, but not of a complete group at once. The OGC WMS specification tells that when a and element are given for a layer, the layer can be used in the GetMap and GetFeatureInfo requests, eg it contains information. When just a title is provided without a name, the layer is a grouping layer. This can be partly accomplished by using "WMS_LAYER_GROUP", which tells UMN MapServer that this is a grouping layer. The <Name> element is hidden for this type of layer. The problem is that I can not figure out how to do this for the first layer, the "Year". So it is still possible to query and to view all layers in one request by using the name of the toplayer. Can I disable the <Name> element in the GetCapabilities document for the first layer? Best regards, Maarten Plieger -- Maarten Plieger KNMI, R&D Information and Observation Technology, De Bilt (t) +31 30 2206330 From romero619 at hotmail.com Tue Mar 31 10:23:40 2009 From: romero619 at hotmail.com (P. R.M.) Date: Tue, 31 Mar 2009 10:23:40 -0700 Subject: [mapserver-users] imagemaps using php mapscript? In-Reply-To: <49D1FA2F.5157.008F.0@dnr.state.mn.us> References: <BAY117-DS6601DF366CED933440B8DF98F0@phx.gbl> <2a37f67a0903281229i8946f8fr8c782275d2d16e30@mail.gmail.com> <BAY117-W55B4DA5351F121A30B3AB3F98F0@phx.gbl> <BAY117-W321FFEAABC9ACB209C7172F98A0@phx.gbl> <49D1FA2F.5157.008F.0@dnr.state.mn.us> Message-ID: <BAY117-W28789309040BD0942AF1A6F98A0@phx.gbl> Steve, sorry I never saw your reply go by. did you respond to the list or personally? could you please repost your response? P.ROmero ---------------------------------------- > Date: Tue, 31 Mar 2009 11:10:39 -0500 > From: Steve.Lime at dnr.state.mn.us > To: romero619 at hotmail.com; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] imagemaps using php mapscript? > > I sent a reply about having to query before processing through a > template. Did you > not get that? > > Steve > >>>> On 3/30/2009 at 9:19 PM, in message > , "P. R.M." > wrote: > >> Im bumping this message, hoping for some help/feedback (see below). >> >> is there a problem with the mapserver mailing list? >> - several questions have gone by in the past few days (from both > myself and >> other users) without any responses... >> >> Please help, >> >> Thanks, >> P.Romero >> >> ---------------------------------------- >>> From: romero619 at hotmail.com >>> To: iacovlev.pavel at gmail.com; mapserver-users at lists.osgeo.org >>> Subject: RE: [mapserver-users] imagemaps using php mapscript? >>> Date: Sat, 28 Mar 2009 13:08:27 -0700 >>> CC: >>> >>> >>> thanks, but that didnt help much. >>> I have this: >>> >>> $map = ms_newMapObj("/data/www/html/test/test.map"); >>> $img=$map->draw(); >>> >>> $tmparray["img_url"] = $img->saveWebImage(); >>> >>> # remove '/data/www/html' directory prefix >>> # from the resulting url string >>> >>> $tmparray["img_url"] = >> substr($tmparray["img_url"],14,strlen($tmparray["img_url"])); >>> >>> $html=$map->processquerytemplate($tmparray); >>> echo $html; >>> >>> However, the processquerytemplate() function is not processing the > data in >> my points layer. >>> the imagemap html tags are empty, even though the points from my > points >> layer are correctly being drawn on the map image. >>> >>> Here's the relevant sections of my mapfile, including my points > layer: >>> >>> OUTPUTFORMAT >>> NAME 'html' >>> DRIVER 'TEMPLATE' >>> MIMETYPE 'text/html' >>> FORMATOPTION 'FILE=/data/www/html/test/testmap.html' >>> END >>> QUERYMAP >>> STATUS ON >>> STYLE NORMAL >>> END >>> WEB >>> QUERYFORMAT 'html' >>> LOG "/data/www/html/test/mslog" >>> IMAGEPATH "/data/www/html/images/mapserver/tmp/" >>> IMAGEURL "/data/www/html/images/mapserver/tmp/" >>> MAXSCALE 15500000 >>> END >>> LAYER >>> NAME "mypoints" >>> STATUS DEFAULT >>> CONNECTIONTYPE OGR >>> CONNECTION "test.ovf" >>> DATA "mypoints" >>> TYPE POINT >>> TEMPLATE "/data/www/html/test/testmap.html" >>> CLASS >>> NAME "None" >>> STYLE >>> SYMBOL 'arrow' >>> ANGLE [ADIR] >>> SIZE [MAG] >>> END >>> END >>> END >>> >>> the documentation says that the processquerytemplate() function > apparently >> only processes at the mapobject layer, so it doesnt seem to process > each >> layer. Is this correct? >>> >>> How can I process the html template file using the points in my > points >> layer? >>> >>> Please help, >>> Thanks, >>> P.Romero >>> ________________________________ >>>> Date: Sat, 28 Mar 2009 21:29:35 +0200 >>>> Subject: Re: [mapserver-users] imagemaps using php mapscript? >>>> From: iacovlev.pavel at gmail.com >>>> To: romero619 at hotmail.com >>>> >>>> $image = $map->draw(); >>>> >>>> ob_start(); >>>> $image->saveimage(''); >>>> $image = imagecreatefromstring(ob_get_contents()); >>>> $contents = ob_get_contents(); >>>> ob_end_clean(); >>>> >>>> imagepng($image); >>>> >>>> >>>> 2009/3/28 P.Romero> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> How can this example: >>>> >>>> >>>> >>>> http://mapserver.org/output/imagemaps.html?highlight=imagemap >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> be implemented using php mapscript? >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> More specifically, how can the html output for the imagemap >>>> be separated from the imageobject, and stored into a php variable? >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> Im hoping for something like?. >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> $map = ms_newMapObj("mymapfile.map"); >>>> >>>> >>>> >>>> $map_img=$img=$map->draw(); >>>> >>>> >>>> >>>> $imagemap_html=$map->get_html_output(); >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> ...and then I can separately handle the image & html >>>> output. >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> Is this possible? >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> Please help, >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> Thanks, >>>> >>>> >>>> >>>> P.Romero >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> >>>> mapserver-users mailing list >>>> >>>> mapserver-users at lists.osgeo.org >>>> >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>>> >>>> >>>> >>>> -- >>>> http://iap.md, The future is open >>> _________________________________________________________________ >>> Express your personality in color! Preview and select themes for > Hotmail?. >>> >> > http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_W > >> > L_HM_express_032009#colortheme_______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _________________________________________________________________ >> Express your personality in color! Preview and select themes for > Hotmail?. >> > http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_ > >> > WL_HM_express_032009#colortheme______________________________________________ >> _ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users _________________________________________________________________ Hotmail? is up to 70% faster. Now good news travels really fast. http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_70faster_032009 From Steve.Lime at dnr.state.mn.us Tue Mar 31 11:28:48 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 31 Mar 2009 13:28:48 -0500 Subject: [mapserver-users] imagemaps using php mapscript? In-Reply-To: <BAY117-W28789309040BD0942AF1A6F98A0@phx.gbl> References: <BAY117-DS6601DF366CED933440B8DF98F0@phx.gbl> <2a37f67a0903281229i8946f8fr8c782275d2d16e30@mail.gmail.com> <BAY117-W55B4DA5351F121A30B3AB3F98F0@phx.gbl> <BAY117-W321FFEAABC9ACB209C7172F98A0@phx.gbl> <49D1FA2F.5157.008F.0@dnr.state.mn.us> <BAY117-W28789309040BD0942AF1A6F98A0@phx.gbl> Message-ID: <49D21A91.5157.008F.0@dnr.state.mn.us> It was to the list. Basically it said you have to do a query before processing the results through a template. I didn't see a query in your code. I don't think browse templates work through that mechanism. Steve >>> On 3/31/2009 at 12:23 PM, in message <BAY117-W28789309040BD0942AF1A6F98A0 at phx.gbl>, "P. R.M." <romero619 at hotmail.com> wrote: > Steve, > sorry I never saw your reply go by. > did you respond to the list or personally? > could you please repost your response? > > P.ROmero > > ---------------------------------------- >> Date: Tue, 31 Mar 2009 11:10:39 -0500 >> From: Steve.Lime at dnr.state.mn.us >> To: romero619 at hotmail.com; mapserver-users at lists.osgeo.org >> Subject: RE: [mapserver-users] imagemaps using php mapscript? >> >> I sent a reply about having to query before processing through a >> template. Did you >> not get that? >> >> Steve >> >>>>> On 3/30/2009 at 9:19 PM, in message >> , "P. R.M." >> wrote: >> >>> Im bumping this message, hoping for some help/feedback (see below). >>> >>> is there a problem with the mapserver mailing list? >>> - several questions have gone by in the past few days (from both >> myself and >>> other users) without any responses... >>> >>> Please help, >>> >>> Thanks, >>> P.Romero >>> >>> ---------------------------------------- >>>> From: romero619 at hotmail.com >>>> To: iacovlev.pavel at gmail.com; mapserver-users at lists.osgeo.org >>>> Subject: RE: [mapserver-users] imagemaps using php mapscript? >>>> Date: Sat, 28 Mar 2009 13:08:27 -0700 >>>> CC: >>>> >>>> >>>> thanks, but that didnt help much. >>>> I have this: >>>> >>>> $map = ms_newMapObj("/data/www/html/test/test.map"); >>>> $img=$map->draw(); >>>> >>>> $tmparray["img_url"] = $img->saveWebImage(); >>>> >>>> # remove '/data/www/html' directory prefix >>>> # from the resulting url string >>>> >>>> $tmparray["img_url"] = >>> substr($tmparray["img_url"],14,strlen($tmparray["img_url"])); >>>> >>>> $html=$map->processquerytemplate($tmparray); >>>> echo $html; >>>> >>>> However, the processquerytemplate() function is not processing the >> data in >>> my points layer. >>>> the imagemap html tags are empty, even though the points from my >> points >>> layer are correctly being drawn on the map image. >>>> >>>> Here's the relevant sections of my mapfile, including my points >> layer: >>>> >>>> OUTPUTFORMAT >>>> NAME 'html' >>>> DRIVER 'TEMPLATE' >>>> MIMETYPE 'text/html' >>>> FORMATOPTION 'FILE=/data/www/html/test/testmap.html' >>>> END >>>> QUERYMAP >>>> STATUS ON >>>> STYLE NORMAL >>>> END >>>> WEB >>>> QUERYFORMAT 'html' >>>> LOG "/data/www/html/test/mslog" >>>> IMAGEPATH "/data/www/html/images/mapserver/tmp/" >>>> IMAGEURL "/data/www/html/images/mapserver/tmp/" >>>> MAXSCALE 15500000 >>>> END >>>> LAYER >>>> NAME "mypoints" >>>> STATUS DEFAULT >>>> CONNECTIONTYPE OGR >>>> CONNECTION "test.ovf" >>>> DATA "mypoints" >>>> TYPE POINT >>>> TEMPLATE "/data/www/html/test/testmap.html" >>>> CLASS >>>> NAME "None" >>>> STYLE >>>> SYMBOL 'arrow' >>>> ANGLE [ADIR] >>>> SIZE [MAG] >>>> END >>>> END >>>> END >>>> >>>> the documentation says that the processquerytemplate() function >> apparently >>> only processes at the mapobject layer, so it doesnt seem to process >> each >>> layer. Is this correct? >>>> >>>> How can I process the html template file using the points in my >> points >>> layer? >>>> >>>> Please help, >>>> Thanks, >>>> P.Romero >>>> ________________________________ >>>>> Date: Sat, 28 Mar 2009 21:29:35 +0200 >>>>> Subject: Re: [mapserver-users] imagemaps using php mapscript? >>>>> From: iacovlev.pavel at gmail.com >>>>> To: romero619 at hotmail.com >>>>> >>>>> $image = $map->draw(); >>>>> >>>>> ob_start(); >>>>> $image->saveimage(''); >>>>> $image = imagecreatefromstring(ob_get_contents()); >>>>> $contents = ob_get_contents(); >>>>> ob_end_clean(); >>>>> >>>>> imagepng($image); >>>>> >>>>> >>>>> 2009/3/28 P.Romero> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> How can this example: >>>>> >>>>> >>>>> >>>>> http://mapserver.org/output/imagemaps.html?highlight=imagemap >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> be implemented using php mapscript? >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> More specifically, how can the html output for the imagemap >>>>> be separated from the imageobject, and stored into a php variable? >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Im hoping for something like?. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> $map = ms_newMapObj("mymapfile.map"); >>>>> >>>>> >>>>> >>>>> $map_img=$img=$map->draw(); >>>>> >>>>> >>>>> >>>>> $imagemap_html=$map->get_html_output(); >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> ...and then I can separately handle the image & html >>>>> output. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Is this possible? >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Please help, >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Thanks, >>>>> >>>>> >>>>> >>>>> P.Romero >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> >>>>> mapserver-users mailing list >>>>> >>>>> mapserver-users at lists.osgeo.org >>>>> >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> http://iap.md, The future is open >>>> _________________________________________________________________ >>>> Express your personality in color! Preview and select themes for >> Hotmail?. >>>> >>> >> > http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_W > >> >>> >> > L_HM_express_032009#colortheme_______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> _________________________________________________________________ >>> Express your personality in color! Preview and select themes for >> Hotmail?. >>> >> http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_ >> >>> >> > WL_HM_express_032009#colortheme______________________________________________ >>> _ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > _________________________________________________________________ > Hotmail? is up to 70% faster. Now good news travels really fast. > http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_70faster_032009 From fsalas at geocuba.cu Tue Mar 31 08:12:23 2009 From: fsalas at geocuba.cu (fsalas) Date: Tue, 31 Mar 2009 17:12:23 +0200 Subject: [mapserver-users] About SLD in Mapserver References: <OF30605930.E83EE9ED-ONC125754A.0037599F-C125754A.003AD60F@hydrotec.de><6246727221874A4FB8D3F9BBC37D9BD5056DA174@s-sp22.pca.state.mn.us> <497DC8E0.5157.008F.0@dnr.state.mn.us> Message-ID: <09d301c9b213$2a060490$3698a8c0@mapificacion03> Hi, I have a problems about use the SLD style in mapserver , I need some example or documentation about this. thanks Francisco Salas ___________________________________ Direcci?n de Comunicaciones Grupo Empresarial GEOCUBA Este mensaje esta libre de virus. Revisado por Kaspersky Antivirus ---------------------------------------------------------------------- Engine version: 4.0.1.14 Engine date: 2002/06/25 Definition count: 1796584 Definition date: 2009/03/31 MDAV version: 2.2.8 From yassefa at dmsolutions.ca Tue Mar 31 14:44:29 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 31 Mar 2009 17:44:29 -0400 Subject: [mapserver-users] About SLD in Mapserver In-Reply-To: <09d301c9b213$2a060490$3698a8c0@mapificacion03> References: <OF30605930.E83EE9ED-ONC125754A.0037599F-C125754A.003AD60F@hydrotec.de><6246727221874A4FB8D3F9BBC37D9BD5056DA174@s-sp22.pca.state.mn.us> <497DC8E0.5157.008F.0@dnr.state.mn.us> <09d301c9b213$2a060490$3698a8c0@mapificacion03> Message-ID: <49D28EBD.4080400@dmsolutions.ca> doc with few examples can be find here: http://mapserver.org/ogc/sld.html fsalas wrote: > Hi, > > I have a problems about use the SLD style in mapserver , I need some > example or documentation about this. > > thanks > > Francisco Salas > > ___________________________________ > Direcci?n de Comunicaciones > Grupo Empresarial GEOCUBA > Este mensaje esta libre de virus. Revisado por Kaspersky Antivirus > ---------------------------------------------------------------------- > Engine version: 4.0.1.14 > Engine date: 2002/06/25 > Definition count: 1796584 > Definition date: 2009/03/31 > MDAV version: 2.2.8 > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From jncoign at Knology.net Tue Mar 31 15:35:28 2009 From: jncoign at Knology.net (joncoign) Date: Tue, 31 Mar 2009 15:35:28 -0700 (PDT) Subject: [mapserver-users] Using the SQL Server 2008 Plugin with a Geography column Message-ID: <1238538928048-2565867.post@n2.nabble.com> Has anyone been able to get the SQL Server 2008 plugin to work against a geography column. I have been using the following DATA Statement DATA "the_geom FROM Types USING UNIQUE ID USING SRID=4326" and get the response, "sys.geometry is incompatible with sys.geography" due to the spatial filter being written by the plugin using geometry. Is there an option to change this? I have been unable to locate any detailed documetation on SQL Server 2008 plugin so if this exists that might help. -- View this message in context: http://n2.nabble.com/Using-the-SQL-Server-2008-Plugin-with-a-Geography-column-tp2565867p2565867.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jncoign at Knology.net Tue Mar 31 17:25:21 2009 From: jncoign at Knology.net (joncoign) Date: Tue, 31 Mar 2009 17:25:21 -0700 (PDT) Subject: [mapserver-users] WFS Layer running OGR Query Multiple times per request Message-ID: <1238545521202-2566330.post@n2.nabble.com> I have a WFS layer that is querying the database via an OGR ODBC connection once per point included in the result set plus one additional query. I was under the impression that this should only execute once. Am I misunderstanding or do I have something misconfigured? Map file and SQL Profiler output below. Map File -------------------------------------------------- NAME "DevWFS" CONFIG "PROJ_LIB" "F:\MapServer\Maps\Proj" #CONFIG "MS_ERRORFILE" "F:\MapServer\Logs\MapServerLog.txt" #DEBUG 5 PROJECTION "init=EPSG:4326" END WEB METADATA wfs_title "UAI WFS Server" wfs_onlineresource "http://localhost/cgi-bin/mapserv.exe?" wfs_srs "EPSG:4326" END END LAYER NAME "SQL" CONNECTIONTYPE OGR CONNECTION "<OGRVRTDataSource> <OGRVRTLayer name='SQL'> <SrcDataSource>ODBC:Maps,JNCTest</SrcDataSource> <SrcSQL> EXEC dbo.MappingGetJNCTest %BBOX% </SrcSQL> <FID>ID</FID> <GeometryType>wkbPoint</GeometryType> <GeometryField encoding='WKB' field='the_geom' /> </OGRVRTLayer> </OGRVRTDataSource>" DATA "SQL" DUMP TRUE STATUS ON #PROCESSING "CLOSE_CONNECTION=DEFER" TYPE point METADATA wfs_extent "-180 -90 180 90" gml_featureid "ID" gml_include_items "all" gml_exclude_items "the_geom" END END -------------------------------------------------- SQL Profiler Output (3 Points match query) -------------------------------------------------- exec [sys].sp_pkeys N'JNCTest',N'',N'' go exec [sys].sp_pkeys N' ',N'',NULL go exec [sys].sp_columns_100 N'JNCTest',NULL,NULL,NULL, at fUsePattern=1 go EXEC dbo.MappingGetJNCTest -67.64596191401315,17.434709503474547,-65.17403808598685,18.99999999999999 go exec [sys].sp_pkeys N'JNCTest',N'',N'' go exec [sys].sp_pkeys N' ',N'',NULL go exec [sys].sp_columns_100 N'JNCTest',NULL,NULL,NULL, at fUsePattern=1 go EXEC dbo.MappingGetJNCTest -67.64596191401315,17.434709503474547,-65.17403808598685,18.99999999999999 go EXEC dbo.MappingGetJNCTest -67.64596191401315,17.434709503474547,-65.17403808598685,18.99999999999999 go EXEC dbo.MappingGetJNCTest -67.64596191401315,17.434709503474547,-65.17403808598685,18.99999999999999 go -------------------------------------------------- -- View this message in context: http://n2.nabble.com/WFS-Layer-running-OGR-Query-Multiple-times-per-request-tp2566330p2566330.html Sent from the Mapserver - User mailing list archive at Nabble.com. From warmerdam at pobox.com Tue Mar 31 18:07:59 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 31 Mar 2009 21:07:59 -0400 Subject: [mapserver-users] WFS Layer running OGR Query Multiple times per request In-Reply-To: <1238545521202-2566330.post@n2.nabble.com> References: <1238545521202-2566330.post@n2.nabble.com> Message-ID: <49D2BE6F.1070308@pobox.com> joncoign wrote: > I have a WFS layer that is querying the database via an OGR ODBC connection > once per point included in the result set plus one additional query. I was > under the impression that this should only execute once. Am I > misunderstanding or do I have something misconfigured? Map file and SQL > Profiler output below. Jon, Your profiling is correct. The MapServer query mechanism as it exists in 5.4 (and since the beginning of time) results in many small queries against OGR, and other database backends. It is for exactly this reason that Steve is re-engineering the query mechanism for 6.0 to do "single pass query". The situation should improve substantially in 6.0. I would note this problem with many small queries applies only to the query mechanism, not map drawing which just does one query per layer draw. 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 SansonR at asurequality.com Tue Mar 31 18:14:02 2009 From: SansonR at asurequality.com (Robert Sanson) Date: Wed, 01 Apr 2009 14:14:02 +1300 Subject: [mapserver-users] WFS Layer running OGR Query Multiple times perrequest In-Reply-To: <49D2BE6F.1070308@pobox.com> References: <1238545521202-2566330.post@n2.nabble.com> <49D2BE6F.1070308@pobox.com> Message-ID: <49D376A9.379F.0037.0@asurequality.com> Sounds like quite an impediment. Any idea when v6.0 is likely to be released? Robert >>> Frank Warmerdam <warmerdam at pobox.com> 1/04/2009 2:07 p.m. >>> joncoign wrote: > I have a WFS layer that is querying the database via an OGR ODBC connection > once per point included in the result set plus one additional query. I was > under the impression that this should only execute once. Am I > misunderstanding or do I have something misconfigured? Map file and SQL > Profiler output below. Jon, Your profiling is correct. The MapServer query mechanism as it exists in 5.4 (and since the beginning of time) results in many small queries against OGR, and other database backends. It is for exactly this reason that Steve is re-engineering the query mechanism for 6.0 to do "single pass query". The situation should improve substantially in 6.0. I would note this problem with many small queries applies only to the query mechanism, not map drawing which just does one query per layer draw. 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 ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090401/a608b28b/attachment.htm> From warmerdam at pobox.com Tue Mar 31 18:31:32 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 31 Mar 2009 21:31:32 -0400 Subject: [mapserver-users] WFS Layer running OGR Query Multiple times perrequest In-Reply-To: <49D376A9.379F.0037.0@asurequality.com> References: <1238545521202-2566330.post@n2.nabble.com> <49D2BE6F.1070308@pobox.com> <49D376A9.379F.0037.0@asurequality.com> Message-ID: <49D2C3F4.4050601@pobox.com> Robert Sanson wrote: > Sounds like quite an impediment. Any idea when v6.0 is likely to be > released? Robert, I would say late summer or early fall. However, I would also encourage you to try out the single-pass-query in the development version before then. I don't think this is available yet though. 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 dnr.state.mn.us Tue Mar 31 19:18:29 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 31 Mar 2009 21:18:29 -0500 Subject: [mapserver-users] WFS Layer running OGR Query Multiple timesperrequest Message-ID: <49D288A50200008F0002269A@co5.dnr.state.mn.us> It's particularly hard on the database backends because of the overhead of running so many small queries. I should note that a true single pass query is not easy to achieve. Many presentation methods, for example WFS/GML require a result set size at the start of a file which all but requires two passes over the data. The most recent strategy involves two-passes but on the same statement handle. At the recent code sprint we tested with Oracle Spatial and PostGIS, both with significant improvements in performance. I'll probably also add a small feature cache to avoid resetting the statement handle in a majority of cases. I'm not sure how the OGR driver will need to be updated though. The sprint modifications are implemented in the MapServer sandbox: http://svn.osgeo.org/mapserver/sandbox/single-pass/mapserver/ Steve >>> Frank Warmerdam <warmerdam at pobox.com> 03/31/09 8:32 PM >>> Robert Sanson wrote: > Sounds like quite an impediment. Any idea when v6.0 is likely to be > released? Robert, I would say late summer or early fall. However, I would also encourage you to try out the single-pass-query in the development version before then. I don't think this is available yet though. 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 meenu.monu at gmail.com Tue Mar 31 22:50:26 2009 From: meenu.monu at gmail.com (meenu) Date: Tue, 31 Mar 2009 22:50:26 -0700 (PDT) Subject: [mapserver-users] how can i create mapserver website in VS 2005 (VB) In-Reply-To: <1238508296019-2563124.post@n2.nabble.com> References: <1237726362116-2516841.post@n2.nabble.com> <f3b73b7d0903220752j1cf7e0f3vfc2f30f02f1293da@mail.gmail.com> <1238417913592-2557078.post@n2.nabble.com> <1238452692319-2560080.post@n2.nabble.com> <1238478291247-2561308.post@n2.nabble.com> <1238495621680-2562254.post@n2.nabble.com> <1238497332017-2562350.post@n2.nabble.com> <1238508296019-2563124.post@n2.nabble.com> Message-ID: <1238565026803-2567297.post@n2.nabble.com> hi friened.thanks for ur response... i added mapscript_csharp.dll in to tutorialmapserver website folder...i added like as follows... rightclick project...addrefernce->browse->select "C:\ms4w\Apache\cgi-bin\mapscript\csharp"->double click mapscript_csharp.dll...now this dll is added to bin folder of tutorial webfolder.... this dlltype is a "file" not ".net" or ".com"... i tried the way u last gave....thre also am getting error in "mapobj" and "layerobj" regference regards meenu -- View this message in context: http://n2.nabble.com/how-can-i-create-mapserver-website-in-VS-2005-%28VB%29-tp2516841p2567297.html Sent from the Mapserver - User mailing list archive at Nabble.com.