From Andreas.Eichner at sid.sachsen.de Tue Apr 1 00:01:10 2008 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLK) Date: Tue, 1 Apr 2008 09:01:10 +0200 Subject: [mapserver-users] MapServer Apache module References: <47E3F93B.7080001@gmx.net> <47E941E6.9030607@mapgears.com> <47F10B06.4010102@mapgears.com> Message-ID: Hi again, > The thread was titled "ModMapServer?" and started on March 13: Jupp, found it - quickly searched for "Apache" first :) > I don't know what Apache expects exactly, but I think it would be > reasonable to create a new msReturnHTTPHeaders() function that would > replace all those printf's for the headers For a first try we could even set a macro in mapio.h which defines something like msIO_setContentType(type) to msIO_fprintf or request_rec->content_type=type depending whether we build for CGI or Apache module. > The FastCGI code should already handle that kind of stuff > With respect to keeping database connections opened, the PROCESSING > "CLOSE_CONNECTION=DEFER" directive already does that Well, that are good news since it saves a lot of expensive modifications. I used that option already but was not sure if they are only kept open for a single request (just to handle multiple layers from one datasource) or would stay open till shutdown... > Well, your patch doesn't have to be final before you share it publicly. > I'm already swamped with stuff ... > there are a few people who > expressed interest in this feature on the list and that would work out > the issues with you much quicker than myself OK, too late - already sent it to you yesterday, sorry :) I will register myself and open a ticket with that patch appended as you suggested. I didn't want to blow too much dust in the wind and fool those people. I propably should put a big fat warning in the ticket. Since this is the users-list the only remaining question is: should be something posted to the devel list or is issueing the ticket enough? From Janosch.Skrobek at trier.de Tue Apr 1 00:45:35 2008 From: Janosch.Skrobek at trier.de (Janosch.Skrobek at trier.de) Date: Tue, 1 Apr 2008 09:45:35 +0200 Subject: AW: [mapserver-users] javascript & mapserver In-Reply-To: <200803311308.m2VD88D01002@panix1.panix.com> References: <16369480.post@talk.nabble.com> <59CDEE83AFA9B944A7FB96B032E7537D380184@rh-ex-02.rathaus.trier> <200803311308.m2VD88D01002@panix1.panix.com> Message-ID: <59CDEE83AFA9B944A7FB96B032E7537D3801ED@rh-ex-02.rathaus.trier> Good Morning, first of all thanks for your help! Now the script works and I don't get any error messages anymore. The image is being created (I can see it in the temp-folder) but there is still one problem: it doesn't show up in the website. Is there anything else I'm missing here? This is the current js-file: document.write(''); document.write(''); document.writeln(''); And this is how I implement it in the site: Thank you Janosch -----Urspr?ngliche Nachricht----- Von: John Daly [mailto:jdaly at panix.com] Gesendet: Montag, 31. M?rz 2008 15:08 An: Skrobek, Janosch Cc: mapserver-users at lists.osgeo.org Betreff: Re: [mapserver-users] javascript & mapserver Not sure what your replacement url looked like, but I'd check out an interpolation problem first. Maybe something like: document.write(''); JD > > In the js-file: > document.write(' archive="jBoxPNG.jar,png.jar" code="jBoxPNG.class" width="450" > height="450" name="jBox"'); > document.write(''); > document.writeln(''); > > In the template: > > > The script is being loaded but I get the following error: > > "Applet error. Malformed image url" > > I tried replacing the image url with a direct image url to an existing > image but still the same error. > > Unfortunately I'm completely new to javascript and can't seem to solve > this. > Any help would be appreciated. > -------------------------------------------------------------------------------- Diese E-Mail kann vertrauliche und/oder rechtlich gesch?tzte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt?mlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. Der rechtsverbindliche elektronische Schriftverkehr mit der Stadt Trier ist ?ber diese E-Mail-Adresse derzeit noch nicht m?glich. -------------------------------------------------------------------------------- From Janosch.Skrobek at trier.de Tue Apr 1 01:19:05 2008 From: Janosch.Skrobek at trier.de (Janosch.Skrobek at trier.de) Date: Tue, 1 Apr 2008 10:19:05 +0200 Subject: AW: [mapserver-users] javascript & mapserver In-Reply-To: <200803311308.m2VD88D01002@panix1.panix.com> References: <16369480.post@talk.nabble.com> <59CDEE83AFA9B944A7FB96B032E7537D380184@rh-ex-02.rathaus.trier> <200803311308.m2VD88D01002@panix1.panix.com> Message-ID: <59CDEE83AFA9B944A7FB96B032E7537D3801F8@rh-ex-02.rathaus.trier> Sorry for the second post. I seem to have gotten one step further, I think maybe my path was wrong? When using the same path as all the other files in my template ("/tutorial/js/") there is a new output error: 'host' is undefined, 'img' is undefined. How can I get the js to work with the mapserver variables? Or am I on the wrong way here? Thanks Janosch -----Urspr?ngliche Nachricht----- Von: Skrobek, Janosch Gesendet: Dienstag, 1. April 2008 09:46 An: 'John Daly' Cc: 'mapserver-users at lists.osgeo.org' Betreff: AW: [mapserver-users] javascript & mapserver Good Morning, first of all thanks for your help! Now the script works and I don't get any error messages anymore. The image is being created (I can see it in the temp-folder) but there is still one problem: it doesn't show up in the website. Is there anything else I'm missing here? This is the current js-file: document.write(''); document.write(''); document.writeln(''); And this is how I implement it in the site: Thank you Janosch -----Urspr?ngliche Nachricht----- Von: John Daly [mailto:jdaly at panix.com] Gesendet: Montag, 31. M?rz 2008 15:08 An: Skrobek, Janosch Cc: mapserver-users at lists.osgeo.org Betreff: Re: [mapserver-users] javascript & mapserver Not sure what your replacement url looked like, but I'd check out an interpolation problem first. Maybe something like: document.write(''); JD -------------------------------------------------------------------------------- Diese E-Mail kann vertrauliche und/oder rechtlich gesch?tzte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt?mlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. Der rechtsverbindliche elektronische Schriftverkehr mit der Stadt Trier ist ?ber diese E-Mail-Adresse derzeit noch nicht m?glich. -------------------------------------------------------------------------------- From helpwithdeegree at gmail.com Tue Apr 1 01:50:28 2008 From: helpwithdeegree at gmail.com (deegree deegree) Date: Tue, 1 Apr 2008 10:50:28 +0200 Subject: [mapserver-users] First Steps in mapserver Message-ID: Hi!!! I'm starting to work with mapserver in Windows. And I find the next error: loadWeb(): Unknown identifier. Parsing error near (C):(line 1) I don't find the answer for this mistake. I enclose below the code, that I think it doesn't work WEB HEADER ms4w/apps/siglibre/templates/header.html TEMPLATE ms4w/apps/siglibre/index.html FOOTER 'ms4w/apps/siglibre/templates/footer_querymap.html' MINSCALE 1000 MAXSCALE 4000000 IMAGEPATH "/ms4w/apache/htdocs/tmp/" IMAGEURL "/tmp/" END Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Eichner at sid.sachsen.de Tue Apr 1 01:54:39 2008 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLK) Date: Tue, 1 Apr 2008 10:54:39 +0200 Subject: AW: [mapserver-users] MapServer Apache module References: <47E3F93B.7080001@gmx.net> <47E941E6.9030607@mapgears.com><47F10B06.4010102@mapgears.com> Message-ID: OK, filed a ticket and appended the patch. You can find it in TRAC under ticket #2565, or directly via that link: http://trac.osgeo.org/mapserver/ticket/2565 From diegoguidi at gmail.com Tue Apr 1 02:01:50 2008 From: diegoguidi at gmail.com (Diego Guidi) Date: Tue, 1 Apr 2008 11:01:50 +0200 Subject: [mapserver-users] First Steps in mapserver In-Reply-To: References: Message-ID: > I'm starting to work with mapserver in Windows. And I find the next error: > loadWeb(): Unknown identifier. Parsing error near (C):(line 1) > I don't find the answer for this mistake. http://www.google.com/search?client=safari&rls=en&q=%2Bmapserver%20%2Bmapfile&ie=UTF-8&oe=UTF-8 Enjoy the readings ;) From bartvde at osgis.nl Tue Apr 1 01:53:36 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Tue, 1 Apr 2008 10:53:36 +0200 Subject: [mapserver-users] First Steps in mapserver Message-ID: Use (double) quotes around your HEADER and TEMPLATES values. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: deegree deegree Naar: mapserver-users at lists.osgeo.org Onderwerp: [mapserver-users] First Steps in mapserver Datum: 01/04/08 06:51 > Hi!!! > > I'm starting to work with mapserver in Windows. And I find the next error: > > > loadWeb(): Unknown identifier. Parsing error near (C):(line 1) > > I don't find  the answer for this mistake. > > I enclose below the code, that I think it doesn't work > >  WEB >     HEADER ms4w/apps/siglibre/templates/header.html >     TEMPLATE ms4w/apps/siglibre/index.html >     FOOTER 'ms4w/apps/siglibre/templates/footer_querymap.html' >     MINSCALE 1000 >     MAXSCALE 4000000 >     IMAGEPATH "/ms4w/apache/htdocs/tmp/" >     IMAGEURL "/tmp/" >   END > > > Thanks > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From gregoavila at gmail.com Tue Apr 1 02:30:47 2008 From: gregoavila at gmail.com (=?ISO-8859-1?Q?Gregorio_Mu=F1oz?=) Date: Tue, 1 Apr 2008 11:30:47 +0200 Subject: [mapserver-users] First Steps in mapserver In-Reply-To: References: Message-ID: Try using double quotes: WEB HEADER "ms4w/apps/siglibre/templates/header.html" TEMPLATE "ms4w/apps/siglibre/index.html" FOOTER "ms4w/apps/siglibre/templates/footer_querymap.html" MINSCALE 1000 MAXSCALE 4000000 IMAGEPATH "/ms4w/apache/htdocs/tmp/" IMAGEURL "/tmp/" END 2008/4/1, deegree deegree : > > Hi!!! > > I'm starting to work with mapserver in Windows. And I find the next error: > > loadWeb(): Unknown identifier. Parsing error near (C):(line 1) > > I don't find the answer for this mistake. > > I enclose below the code, that I think it doesn't work > > WEB > HEADER ms4w/apps/siglibre/templates/header.html > TEMPLATE ms4w/apps/siglibre/index.html > FOOTER 'ms4w/apps/siglibre/templates/footer_querymap.html' > MINSCALE 1000 > MAXSCALE 4000000 > IMAGEPATH "/ms4w/apache/htdocs/tmp/" > IMAGEURL "/tmp/" > END > > > Thanks > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mapserver at geoworld.de Tue Apr 1 02:52:09 2008 From: mapserver at geoworld.de (Nicol Hermann) Date: Tue, 01 Apr 2008 11:52:09 +0200 Subject: [mapserver-users] AGG Compile error with PHP Mapscript In-Reply-To: <47F1E91E.5090802@territoriumonline.com> References: <1206999070.4038.10.camel@mobil.geoworld.de> <47F1E91E.5090802@territoriumonline.com> Message-ID: <1207043529.5242.21.camel@localhost> Hi Andreas, many thanks for your hint. I manage to compile PHP Mapscript with AGG support! Do you know a way to compile the AGG lib with the standard debian way (dpkg-buildpackage)? I had to compile the library with ./configure && make & make install Using 'dpkg-buildpackage' did not work. In both cases i added -fPIC to Makefile.in.Linux. Thanks again Nicol On Di, 2008-04-01 at 09:49 +0200, Andreas Albarello wrote: > Nicol Hermann wrote: > > Whenever i include PHP Mapscript support (--with-php=/usr/local/php5) i > > get the following error message: (PHP 5.2.2) > > > > /usr/bin/ld: /usr/lib64/libagg.a(agg_arc.o): relocation R_X86_64_32 > > against `__gxx_personality_v0' can not be used when making a shared > > object; recompile with -fPIC > > /usr/lib64/libagg.a: could not read symbols: Bad value > > collect2: ld returned 1 exit status > > make[1]: *** [php_mapscript.so] Fehler 1 > > make[1]: Leaving directory > > `/usr/local/src/mapserver/mapserver-5.0.2/mapscript/php3' > > You have to compile AGG by hand with -fPIC for position independent code > as the error message itself suggests. Just add -fPIC to the AGGCXXFLAGS > in Makefile.in.Linux. Using the debian binaries is probably not going to > work. > > Best regards, From andreas.albarello at territoriumonline.com Tue Apr 1 00:49:50 2008 From: andreas.albarello at territoriumonline.com (Andreas Albarello) Date: Tue, 01 Apr 2008 09:49:50 +0200 Subject: [mapserver-users] AGG Compile error with PHP Mapscript In-Reply-To: <1206999070.4038.10.camel@mobil.geoworld.de> References: <1206999070.4038.10.camel@mobil.geoworld.de> Message-ID: <47F1E91E.5090802@territoriumonline.com> Nicol Hermann wrote: > Whenever i include PHP Mapscript support (--with-php=/usr/local/php5) i > get the following error message: (PHP 5.2.2) > > /usr/bin/ld: /usr/lib64/libagg.a(agg_arc.o): relocation R_X86_64_32 > against `__gxx_personality_v0' can not be used when making a shared > object; recompile with -fPIC > /usr/lib64/libagg.a: could not read symbols: Bad value > collect2: ld returned 1 exit status > make[1]: *** [php_mapscript.so] Fehler 1 > make[1]: Leaving directory > `/usr/local/src/mapserver/mapserver-5.0.2/mapscript/php3' You have to compile AGG by hand with -fPIC for position independent code as the error message itself suggests. Just add -fPIC to the AGGCXXFLAGS in Makefile.in.Linux. Using the debian binaries is probably not going to work. Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- From schwarzr at grid.unep.ch Tue Apr 1 03:48:20 2008 From: schwarzr at grid.unep.ch (schwarzr at grid.unep.ch) Date: Tue, 1 Apr 2008 10:48:20 GMT Subject: [mapserver-users] Dynamic Mapserver Technology Message-ID: <20080401104820.6D37037B13@webnail.grid.unep.ch> Hi there, one is seeing more and more flash-map sites on the web. It seems almost as if these are some kind of competition for the "real" IMS sites. Surely no real GIS application; but in many cases some basic information display is sufficient. So I wonder how far one can go with mapserver. Probably one has to use as well the flash-output option? And then, is there the possibility to dynamically highlight a country when the mouse is over that country? Display additional information - something like a country profile etc.... Everything within one single application, without the need to reload a page, another window etc.? Thanks for any hints, Stef From schwarzr at grid.unep.ch Tue Apr 1 03:48:46 2008 From: schwarzr at grid.unep.ch (schwarzr at grid.unep.ch) Date: Tue, 1 Apr 2008 10:48:46 GMT Subject: [mapserver-users] Mapserver & Cartograms Message-ID: <20080401104846.725A437B13@webnail.grid.unep.ch> Hi there, do you know of anybody or any mechanism to implement some cartogram functionality into mapserver? You'll perhaps know the worldmapper site - nice examples. We've developed a couple of other ones for a specific project; and I thought about using an exisiting mapserver site to draw these kind of cartograms dynamically. That would be really cool... Thanks for any ideas, Stef From KMR at orbicon.dk Tue Apr 1 03:52:13 2008 From: KMR at orbicon.dk (=?iso-8859-1?Q?KMR_-_K=E5re_M=F8lg=E5rd_Rasmussen?=) Date: Tue, 1 Apr 2008 12:52:13 +0200 Subject: [mapserver-users] symbology rotation Message-ID: Hi list (sorry if it is reposted - I?m not sure, if the first mail got around) Currently I?m using mapserver 4.10 to display tab-files. Due to the fact, that I?m unable to get mapserver to display the right symbol (I use my own true type font) I?ve mapped the neseccary symbols like this SYMBOL NAME "mysymbL" TYPE TRUETYPE FONT mytruetype FILLED true ANTIALIAS true CHARACTER "L" END Then in the different layer definitions I do like this: LAYER NAME Water TYPE POINT STATUS OFF CONNECTIONTYPE OGR CONNECTION "/.../water.tab" METADATA "themename" "Water" END TOLERANCEUNITS meters TOLERANCE 4 TEMPLATE "dummy.html" CLASSITEM "W_TYPE" CLASS EXPRESSION "waterL" COLOR 0 0 255 SYMBOL "mysymbL" SIZE 1 END END My problem is that MapServer ignores the symbology angle used in the tab file. Does anyone have any suggestion to this problem TIA Kaare -------------- next part -------------- An HTML attachment was scrubbed... URL: From schwarzr at grid.unep.ch Tue Apr 1 03:34:49 2008 From: schwarzr at grid.unep.ch (schwarzr at grid.unep.ch) Date: Tue, 1 Apr 2008 10:34:49 GMT Subject: [mapserver-users] Mapserver & Cartograms Message-ID: <20080401103449.BD12537B13@webnail.grid.unep.ch> Hi there, do you know of anybody or any mechanism to implement some cartogram functionality into mapserver? You'll perhaps know the worldmapper site - nice examples. We've developed a couple of other ones for a specific project; and I thought about using an exisiting mapserver site to draw these kind of cartograms dynamically. That would be really cool... Thanks for any ideas, Stef From dlowther at coordinatesolutions.com Tue Apr 1 04:13:30 2008 From: dlowther at coordinatesolutions.com (David Lowther) Date: Tue, 1 Apr 2008 07:13:30 -0400 Subject: [mapserver-users] Dynamic Mapserver Technology In-Reply-To: <20080401104820.6D37037B13@webnail.grid.unep.ch> References: <20080401104820.6D37037B13@webnail.grid.unep.ch> Message-ID: <8531D9510BCB49A9A0F0A8B7129E15E3@DLQ6600> Stef, Or, if you drink the Microsoft Kool-Aid, you could just go Silverlight 2.0 using mapscript csharp... David Lowther Coordinate Solutions, Inc. -----Original Message----- From: schwarzr at grid.unep.ch [mailto:schwarzr at grid.unep.ch] Sent: Tuesday, April 01, 2008 6:48 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Dynamic Mapserver Technology Hi there, one is seeing more and more flash-map sites on the web. It seems almost as if these are some kind of competition for the "real" IMS sites. Surely no real GIS application; but in many cases some basic information display is sufficient. So I wonder how far one can go with mapserver. Probably one has to use as well the flash-output option? And then, is there the possibility to dynamically highlight a country when the mouse is over that country? Display additional information - something like a country profile etc.... Everything within one single application, without the need to reload a page, another window etc.? Thanks for any hints, Stef From schwarzr at grid.unep.ch Tue Apr 1 04:17:52 2008 From: schwarzr at grid.unep.ch (schwarzr at grid.unep.ch) Date: Tue, 1 Apr 2008 11:17:52 GMT Subject: [mapserver-users] Dynamic Mapserver Technology Message-ID: <20080401111752.794AB37B13@webnail.grid.unep.ch> > Or, if you drink the Microsoft Kool-Aid, you could just go Silverlight 2.0 > using mapscript csharp... No, thanks. Very kind of you... :-) But as we are working almost 100% with opensource software (with the exception of Flash, I guess... but there is hardly any alternative...), this would go into the wrong direction. From mlinden at zeelandnet.nl Tue Apr 1 04:41:04 2008 From: mlinden at zeelandnet.nl (Milo van der Linden) Date: Tue, 01 Apr 2008 13:41:04 +0200 Subject: [mapserver-users] Dynamic Mapserver Technology In-Reply-To: <20080401104820.6D37037B13@webnail.grid.unep.ch> References: <20080401104820.6D37037B13@webnail.grid.unep.ch> Message-ID: <47F21F50.9050403@zeelandnet.nl> schwarzr at grid.unep.ch schreef: > Hi there, > > one is seeing more and more flash-map sites on the web. It seems almost as if > these are some kind of competition for the "real" IMS sites. Surely no real > GIS application; but in many cases some basic information display is > sufficient. > In my opinion: Commercially, the "real" GIS market is not at all as atractive as the "basic, more practical solutions" you see evolving all around us. GIS itself is often more an "in crowd" at local governments and large spatial companies, whereas businesses that need a map to enhance their business are often better of NOT having a real GIS and thus offer far better opportunities for openGIS companies and independent consultants. But this is my personal opinion. > So I wonder how far one can go with mapserver. Probably one has to use as > well the flash-output option? And then, is there the possibility to > dynamically highlight a country when the mouse is over that country? Display > additional information - something like a country profile etc.... Everything > within one single application, without the need to reload a page, another > window etc.? > There is an excelent opensource Flash webclient available: www.flamingo-mc.org it's development was supported by the dutch government and I have had the opportunity to use flamingo-mc to push a GIS-like solution to a market currently unfamiliar with GIS and this offers promising commercial opportunities. Basically, you configure Flamingo-mc to connect to WMS-servers. You can even enhance it by setting up mapserver as WFS to return feature info. For me this all operates with mapserver in the background, not returning SWF, but just "basic" png images. If you want more details on the solution I set up, contact me directly and I can let you have a peek at what I created. Kind regards, Milo van der Linden > Thanks for any hints, > > Stef > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From giohappy at gmail.com Tue Apr 1 05:28:27 2008 From: giohappy at gmail.com (G. Allegri) Date: Tue, 1 Apr 2008 14:28:27 +0200 Subject: [mapserver-users] Mapserver & Cartograms In-Reply-To: <20080401104846.725A437B13@webnail.grid.unep.ch> References: <20080401104846.725A437B13@webnail.grid.unep.ch> Message-ID: Cartograms are a very communicative tool... I like them a lot. I think the major problem of using them inside a GIS system is the Reference System. It depends on the choosen algorithm, but in general (bounded displacement) maybe the original map projection could be used. In that case the cartogram could be treated as a normal georeferenced map... Could it be a way? Giovanni 2008/4/1, schwarzr at grid.unep.ch : > > Hi there, > > do you know of anybody or any mechanism to implement some cartogram > functionality into mapserver? You'll perhaps know the worldmapper site - > nice > examples. We've developed a couple of other ones for a specific project; > and > I thought about using an exisiting mapserver site to draw these kind of > cartograms dynamically. That would be really cool... > > Thanks for any ideas, > > Stef > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Tue Apr 1 06:17:00 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Tue, 1 Apr 2008 08:17:00 -0500 Subject: [mapserver-users] symbology rotation In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBC05@s-sp22.pca.state.mn.us> You are using a very old version of MapSever. Are you sure that 4.1 supports symbology rotation? I can't remember when that feature was added. I suggest upgrading to a more recent version of MapServer. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of KMR - K?re M?lg?rd Rasmussen Sent: Tuesday, April 01, 2008 5:52 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] symbology rotation Hi list (sorry if it is reposted - I?m not sure, if the first mail got around) Currently I?m using mapserver 4.10 to display tab-files. Due to the fact, that I?m unable to get mapserver to display the right symbol (I use my own true type font) I?ve mapped the neseccary symbols like this SYMBOL NAME "mysymbL" TYPE TRUETYPE FONT mytruetype FILLED true ANTIALIAS true CHARACTER "L" END Then in the different layer definitions I do like this: LAYER NAME Water TYPE POINT STATUS OFF CONNECTIONTYPE OGR CONNECTION "/.../water.tab" METADATA "themename" "Water" END TOLERANCEUNITS meters TOLERANCE 4 TEMPLATE "dummy.html" CLASSITEM "W_TYPE" CLASS EXPRESSION "waterL" COLOR 0 0 255 SYMBOL "mysymbL" SIZE 1 END END My problem is that MapServer ignores the symbology angle used in the tab file. Does anyone have any suggestion to this problem TIA Kaare -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at dmsolutions.ca Tue Apr 1 08:10:14 2008 From: jmckenna at dmsolutions.ca (Jeff McKenna) Date: Tue, 01 Apr 2008 11:10:14 -0400 Subject: [mapserver-users] First Steps in mapserver In-Reply-To: References: Message-ID: <47F25056.3000502@dmsolutions.ca> There were changes in MapServer 5.0 for CGI mode in the way you declare variables in the URL, causing your "parse error line 1" problems. See the "URL Configuration Changes" in: http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT For example, in your CGI template you might have a variable that looks like: -jeff deegree deegree wrote: > Hi!!! > > I'm starting to work with mapserver in Windows. And I find the next error: > > loadWeb(): Unknown identifier. Parsing error near (C):(line 1) > > I don't find the answer for this mistake. > > I enclose below the code, that I think it doesn't work > > WEB > HEADER ms4w/apps/siglibre/templates/header.html > TEMPLATE ms4w/apps/siglibre/index.html > FOOTER 'ms4w/apps/siglibre/templates/footer_querymap.html' > MINSCALE 1000 > MAXSCALE 4000000 > IMAGEPATH "/ms4w/apache/htdocs/tmp/" > IMAGEURL "/tmp/" > END > > > Thanks > From correosig at gmail.com Tue Apr 1 09:05:05 2008 From: correosig at gmail.com (Ruben Pardo) Date: Tue, 1 Apr 2008 18:05:05 +0200 Subject: [mapserver-users] Access to a raster via http Message-ID: <736d33ec0804010905v10a851d6re5909b417780c4f5@mail.gmail.com> I wanted to know if it is possible to access a raster file via http, something similar to LAYER NAME "capaRasterVirtual" DATA "http://localhost/archivo.tiff" TYPE RASTER DEBUG ON STATUS ON END it gave me an unable to access error! thanks, Ruben P. -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Tue Apr 1 09:19:05 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 01 Apr 2008 12:19:05 -0400 Subject: [mapserver-users] Access to a raster via http In-Reply-To: <736d33ec0804010905v10a851d6re5909b417780c4f5@mail.gmail.com> References: <736d33ec0804010905v10a851d6re5909b417780c4f5@mail.gmail.com> Message-ID: <47F26079.9010507@pobox.com> Ruben Pardo wrote: > I wanted to know if it is possible to access a raster file via http, > something similar to > > LAYER > NAME "capaRasterVirtual" > DATA "http://localhost/archivo.tiff" > TYPE RASTER > DEBUG ON > > STATUS ON > END Ruben, I haven't tried it, but I think this should work *if* your GDAL is built against curl ("gdalinfo --format http" should report info). But, keep in mind that archivo.tiff will be fetched for every map request whether it falls within the bounds of the request or not. And the whole file is fetched even if only a small subset or decimated view is needed. So I don't think of this as a generally prudent thing to be doing. 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 | President OSGeo, http://osgeo.org From brian.hulbert at linquest.com Tue Apr 1 09:21:56 2008 From: brian.hulbert at linquest.com (Hulbert, Brian) Date: Tue, 1 Apr 2008 12:21:56 -0400 Subject: [mapserver-users] Unable to access Grid Object (GridObject) via C# MapScript interface (related to bug 1980) Message-ID: <002a01c89414$8248e050$86daa0f0$@hulbert@linquest.com> I have a MAP file that contains a layer for displaying graticule (see below). However, after the first refresh, the labelformat for my grid object is lost. This was noted in bug 1980 . I cannot find a workaround for this bug by traversing the layer->class object hierarchy and trying to set a labelformat for the GridObject. Can the label format be reset via the mapscript_csharp dll interface? If not, is drawing the graticule lines better accomplished via a shape file? Even if I need to do both a equirectangular and orthographic projections? Ref: I am using MapScript 5.0.2 and calling it from C# using MS VS 2005 LAYER NAME "grid" METADATA "DESCRIPTION" "Grid" END TYPE LINE STATUS ON PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END CLASS NAME "Graticule" COLOR 192 192 192 LABEL COLOR 255 255 0 FONT arial TYPE truetype SIZE 8 POSITION AUTO #ur PARTIALS FALSE BUFFER 5 END END GRID LABELFORMAT "%g?" # dec degrees with symbol MAXARCS 10 MAXINTERVAL 10 MAXSUBDIVIDE 64 END END # Layer -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at ci.stpaul.mn.us Tue Apr 1 10:23:43 2008 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Tue, 01 Apr 2008 12:23:43 -0500 Subject: [mapserver-users] What's the correct reference to MapServer now for Info linking? Message-ID: <47F21B3F.163B.00A8.0@ci.stpaul.mn.us> All, What from below is most correct? OSGeo's MapServer UofM's MapServer OSGeo's, UofM MapServer. I'm using the last example right now, but . . . . Thanks bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at hostgis.com Tue Apr 1 10:28:19 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Tue, 01 Apr 2008 13:28:19 -0400 Subject: [mapserver-users] What's the correct reference to MapServer now for Info linking? In-Reply-To: <47F21B3F.163B.00A8.0@ci.stpaul.mn.us> References: <47F21B3F.163B.00A8.0@ci.stpaul.mn.us> Message-ID: <47F270B3.7080307@hostgis.com> Bob Basques wrote: > What from below is most correct? UMN Mapserver -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From warmerdam at pobox.com Tue Apr 1 11:01:03 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 01 Apr 2008 14:01:03 -0400 Subject: [mapserver-users] What's the correct reference to MapServer now for Info linking? In-Reply-To: <47F270B3.7080307@hostgis.com> References: <47F21B3F.163B.00A8.0@ci.stpaul.mn.us> <47F270B3.7080307@hostgis.com> Message-ID: <47F2785F.1050305@pobox.com> Gregor Mosheh wrote: > Bob Basques wrote: >> What from below is most correct? > > UMN Mapserver Gregor, I wonder how you establish that? I will concede that used to be how I referred to it, but with our adoption as a formal OSGeo project I wonder if it is really the most appropriate. It expresses an affiliation with the university that is now rather thin. On the other hand, I don't refer to GDAL as "OSGeo GDAL" so it certainly isn't required that OSGeo be included in the name. The MapServer web page does not seem to try and refer to it as anything except "MapServer". I would think that this is the project name, and if in some case you wanted to clarify it could be OSGeo's MapServer. But, I don't feel strongly about this one way or the other. 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 | President OSGeo, http://osgeo.org From gregor at hostgis.com Tue Apr 1 11:13:00 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Tue, 01 Apr 2008 12:13:00 -0600 Subject: [mapserver-users] What's the correct reference to MapServer now for Info linking? In-Reply-To: <47F2785F.1050305@pobox.com> References: <47F21B3F.163B.00A8.0@ci.stpaul.mn.us> <47F270B3.7080307@hostgis.com> <47F2785F.1050305@pobox.com> Message-ID: <47F27B2C.2070102@hostgis.com> Frank Warmerdam wrote: >> UMN Mapserver > Gregor, > I wonder how you establish that? Off the lanyard I got at the conference :) and the tag of the website. I did typo it, though, and didn't capitalize the S. -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From dmorissette at mapgears.com Tue Apr 1 12:27:00 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 01 Apr 2008 15:27:00 -0400 Subject: [mapserver-users] MapServer Apache module In-Reply-To: <DB439C1846E26C46B3CCF22306653937B06638@KS-EVS1.smi.sachsen.de> References: <CC197224AC75CE4DB23F739B16891B866E7647@tikka.haapa.mmm.fi> <47E3F93B.7080001@gmx.net> <DB439C1846E26C46B3CCF22306653937B06632@KS-EVS1.smi.sachsen.de> <47E941E6.9030607@mapgears.com><DB439C1846E26C46B3CCF22306653937B06636@KS-EVS1.smi.sachsen.de> <47F10B06.4010102@mapgears.com> <DB439C1846E26C46B3CCF22306653937B06638@KS-EVS1.smi.sachsen.de> Message-ID: <47F28C84.3020307@mapgears.com> Eichner, Andreas - SID-NLK wrote: > > Since this is the users-list the only remaining question is: should be > something posted to the devel list or is issueing the ticket enough? Thanks for creating the ticket. I have sent a note to the mapserver-dev list with a ref to this thread (in case you were not subscribed to the -dev list). Daniel -- Daniel Morissette http://www.mapgears.com/ From crschmidt at metacarta.com Tue Apr 1 12:54:14 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Tue, 1 Apr 2008 15:54:14 -0400 Subject: [mapserver-users] What's the correct reference to MapServer now for Info linking? In-Reply-To: <47F21B3F.163B.00A8.0@ci.stpaul.mn.us> References: <47F21B3F.163B.00A8.0@ci.stpaul.mn.us> Message-ID: <20080401195413.GA29246@metacarta.com> On Tue, Apr 01, 2008 at 12:23:43PM -0500, Bob Basques wrote: > All, > > What from below is most correct? > > OSGeo's MapServer > > UofM's MapServer > > OSGeo's, UofM MapServer. > > I'm using the last example right now, but . . . . I would say that the answer to this is "MapServer", in the same way tha the answer would similarly be "GDAL/OGR", "OpenLayers", and "KaMap" for those projects. (The last is the one in which I'd be most tempted to refer to it as "DM Solutions' KaMap", but I'd probably avoid it given the number of non-DM contributors.) Regards, -- Christopher Schmidt MetaCarta From szekerest at gmail.com Tue Apr 1 13:48:29 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 1 Apr 2008 22:48:29 +0200 Subject: [mapserver-users] Unable to access Grid Object (GridObject) via C# MapScript interface (related to bug 1980) In-Reply-To: <4114190589591220362@unknownmsgid> References: <4114190589591220362@unknownmsgid> Message-ID: <f3b73b7d0804011348v6cdc6fa8ued0170f9d0ae5f34@mail.gmail.com> You can probably use layerObj.UpdateFromString with the string you have in your mapfile. However I'm not sure how you loose your settings after the first refresh? Do you recreate your map by using Clone() or something? We should also fix msCopyLayer to copy the layerinfo with the graticule layers. Best regards, Tamas 2008/4/1, Hulbert, Brian <brian.hulbert at linquest.com>: > > > > > I have a MAP file that contains a layer for displaying graticule (see > below). However, after the first refresh, the labelformat for my grid > object is lost. This was noted in bug 1980. I cannot find a workaround for > this bug by traversing the layer->class object hierarchy and trying to set a > labelformat for the GridObject. > > > > Can the label format be reset via the mapscript_csharp dll interface? If > not, is drawing the graticule lines better accomplished via a shape file? > Even if I need to do both a equirectangular and orthographic projections? > > > > Ref: I am using MapScript 5.0.2 and calling it from C# using MS VS 2005 > > > > LAYER > > NAME "grid" > > METADATA > > "DESCRIPTION" "Grid" > > END > > TYPE LINE > > STATUS ON > > > > PROJECTION > > 'proj=longlat' > > 'ellps=WGS84' > > 'datum=WGS84' > > 'no_defs' > > END > > > > CLASS > > NAME "Graticule" > > COLOR 192 192 192 > > LABEL > > COLOR 255 255 0 > > FONT arial > > TYPE truetype > > SIZE 8 > > POSITION AUTO #ur > > PARTIALS FALSE > > BUFFER 5 > > END > > END > > > > GRID > > LABELFORMAT "%g?" # dec degrees with symbol > > MAXARCS 10 > > MAXINTERVAL 10 > > MAXSUBDIVIDE 64 > > END > > END # Layer > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From szekerest at gmail.com Tue Apr 1 15:39:23 2008 From: szekerest at gmail.com (szekerest at gmail.com) Date: Wed, 02 Apr 2008 09:39:23 +1100 Subject: [mapserver-users] Unable to access Grid Object (GridObject) viaC# MapScript interface (related to bug 1980) Message-ID: <CHILKAT-MID-8f9acd00-4bb2-4f4d-a6f7-790bc56984d2@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/3d7c35c1/attachment.txt> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/3d7c35c1/attachment.ksh> From crschmidt at metacarta.com Tue Apr 1 15:39:48 2008 From: crschmidt at metacarta.com (crschmidt at metacarta.com) Date: Wed, 02 Apr 2008 09:39:48 +1100 Subject: [mapserver-users] What's the correct reference to MapServer nowfor Info linking? Message-ID: <CHILKAT-MID-d80c190f-6e7a-4be4-8709-4fd7a2e9815d@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/d3d3daab/attachment.txt> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/d3d3daab/attachment.ksh> From dmorissette at mapgears.com Tue Apr 1 15:39:54 2008 From: dmorissette at mapgears.com (dmorissette at mapgears.com) Date: Wed, 02 Apr 2008 09:39:54 +1100 Subject: [mapserver-users] MapServer Apache module Message-ID: <CHILKAT-MID-66d13ddc-8ceb-4fb2-9f5b-19d90f6df6fd@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/35164d6b/attachment.txt> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/35164d6b/attachment.ksh> From gregor at hostgis.com Tue Apr 1 15:40:21 2008 From: gregor at hostgis.com (gregor at hostgis.com) Date: Wed, 02 Apr 2008 09:40:21 +1100 Subject: [mapserver-users] What's the correct reference to MapServer nowforInfo linking? Message-ID: <CHILKAT-MID-ec408ca4-6b35-44ff-91b5-3897eae678f3@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/181704a9/attachment.txt> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/181704a9/attachment.ksh> From Bob.Basques at ci.stpaul.mn.us Tue Apr 1 15:40:33 2008 From: Bob.Basques at ci.stpaul.mn.us (Bob.Basques at ci.stpaul.mn.us) Date: Wed, 02 Apr 2008 09:40:33 +1100 Subject: [mapserver-users] What's the correct reference to MapServer now forInfo linking? Message-ID: <CHILKAT-MID-a4926cc8-f47e-49b1-a9dc-989e0cd8f7b6@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/9234a1cd/attachment.txt> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/9234a1cd/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: 3#Part.002 Type: application/octet-stream Size: 169 bytes Desc: not available URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/9234a1cd/attachment.obj> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/9234a1cd/attachment.ksh> From brian.hulbert at linquest.com Tue Apr 1 15:40:35 2008 From: brian.hulbert at linquest.com (brian.hulbert at linquest.com) Date: Wed, 02 Apr 2008 09:40:35 +1100 Subject: [mapserver-users] Unable to access Grid Object (GridObject) via C#MapScript interface (related to bug 1980) Message-ID: <CHILKAT-MID-a2af4275-b99f-4ea9-af50-61b5d5030b56@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/219fae9a/attachment.txt> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/219fae9a/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: 3#Part.002 Type: application/octet-stream Size: 169 bytes Desc: not available URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/219fae9a/attachment.obj> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/219fae9a/attachment.ksh> From warmerdam at pobox.com Tue Apr 1 15:40:49 2008 From: warmerdam at pobox.com (warmerdam at pobox.com) Date: Wed, 02 Apr 2008 09:40:49 +1100 Subject: [mapserver-users] Access to a raster via http Message-ID: <CHILKAT-MID-e70cc206-b72b-49ac-a661-f4d90b60b340@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/1c7b8bfd/attachment.txt> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/1c7b8bfd/attachment.ksh> From correosig at gmail.com Tue Apr 1 15:40:54 2008 From: correosig at gmail.com (correosig at gmail.com) Date: Wed, 02 Apr 2008 09:40:54 +1100 Subject: [mapserver-users] Access to a raster via http Message-ID: <CHILKAT-MID-65c30c75-a443-4f18-9ae9-fdf28ce5569b@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/f8ef8c81/attachment.txt> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/f8ef8c81/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: 3#Part.002 Type: application/octet-stream Size: 169 bytes Desc: not available URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/f8ef8c81/attachment.obj> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/f8ef8c81/attachment.ksh> From jmckenna at dmsolutions.ca Tue Apr 1 15:41:30 2008 From: jmckenna at dmsolutions.ca (jmckenna at dmsolutions.ca) Date: Wed, 02 Apr 2008 09:41:30 +1100 Subject: [mapserver-users] First Steps in mapserver Message-ID: <CHILKAT-MID-4edc4a75-c618-44fb-a634-d963d0729354@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/f2b64163/attachment.txt> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/f2b64163/attachment.ksh> From David.Fawcett at state.mn.us Tue Apr 1 15:42:13 2008 From: David.Fawcett at state.mn.us (David.Fawcett at state.mn.us) Date: Wed, 02 Apr 2008 09:42:13 +1100 Subject: [mapserver-users] symbology rotation Message-ID: <CHILKAT-MID-74de8b6f-7ca9-4982-967c-f3228b3214b0@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/8447edc9/attachment.txt> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/8447edc9/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: 3#Part.002 Type: application/octet-stream Size: 169 bytes Desc: not available URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/8447edc9/attachment.obj> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/8447edc9/attachment.ksh> From szekerest at gmail.com Tue Apr 1 15:47:01 2008 From: szekerest at gmail.com (szekerest at gmail.com) Date: Wed, 02 Apr 2008 09:47:01 +1100 Subject: [mapserver-users] Unable to access Grid Object (GridObject) viaC# MapScript interface (related to bug 1980) Message-ID: <CHILKAT-MID-22f83d7c-5692-4e79-9146-c7806d3afe1d@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/e2738a79/attachment.txt> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/e2738a79/attachment.ksh> From crschmidt at metacarta.com Tue Apr 1 15:47:27 2008 From: crschmidt at metacarta.com (crschmidt at metacarta.com) Date: Wed, 02 Apr 2008 09:47:27 +1100 Subject: [mapserver-users] What's the correct reference to MapServer nowfor Info linking? Message-ID: <CHILKAT-MID-4dacd000-fac1-440a-ad7e-1afda86db0c6@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/dbbd7bb3/attachment.txt> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/dbbd7bb3/attachment.ksh> From dmorissette at mapgears.com Tue Apr 1 15:47:33 2008 From: dmorissette at mapgears.com (dmorissette at mapgears.com) Date: Wed, 02 Apr 2008 09:47:33 +1100 Subject: [mapserver-users] MapServer Apache module Message-ID: <CHILKAT-MID-fb877683-4d00-40a8-96d9-271a4c0deefc@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/af491036/attachment.txt> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/af491036/attachment.ksh> From gregor at hostgis.com Tue Apr 1 15:48:00 2008 From: gregor at hostgis.com (gregor at hostgis.com) Date: Wed, 02 Apr 2008 09:48:00 +1100 Subject: [mapserver-users] What's the correct reference to MapServer nowforInfo linking? Message-ID: <CHILKAT-MID-00f786e1-76a9-4e67-b002-ac0b5418e28b@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/838a35f7/attachment.txt> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/838a35f7/attachment.ksh> From Bob.Basques at ci.stpaul.mn.us Tue Apr 1 15:48:15 2008 From: Bob.Basques at ci.stpaul.mn.us (Bob.Basques at ci.stpaul.mn.us) Date: Wed, 02 Apr 2008 09:48:15 +1100 Subject: [mapserver-users] What's the correct reference to MapServer now forInfo linking? Message-ID: <CHILKAT-MID-5cd94541-0d24-4a7b-9d5c-811fb3b78377@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/f8ac6849/attachment.txt> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/f8ac6849/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: 3#Part.002 Type: application/octet-stream Size: 169 bytes Desc: not available URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/f8ac6849/attachment.obj> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/f8ac6849/attachment.ksh> From brian.hulbert at linquest.com Tue Apr 1 15:48:18 2008 From: brian.hulbert at linquest.com (brian.hulbert at linquest.com) Date: Wed, 02 Apr 2008 09:48:18 +1100 Subject: [mapserver-users] Unable to access Grid Object (GridObject) via C#MapScript interface (related to bug 1980) Message-ID: <CHILKAT-MID-8f362c17-70a0-446d-b169-4a7c7fe57c08@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/733605f1/attachment.txt> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/733605f1/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: 3#Part.002 Type: application/octet-stream Size: 169 bytes Desc: not available URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/733605f1/attachment.obj> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/733605f1/attachment.ksh> From warmerdam at pobox.com Tue Apr 1 15:48:32 2008 From: warmerdam at pobox.com (warmerdam at pobox.com) Date: Wed, 02 Apr 2008 09:48:32 +1100 Subject: [mapserver-users] Access to a raster via http Message-ID: <CHILKAT-MID-d1198234-93fb-4829-b311-5082380758cf@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/ea0c159c/attachment.txt> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/ea0c159c/attachment.ksh> From correosig at gmail.com Tue Apr 1 15:48:38 2008 From: correosig at gmail.com (correosig at gmail.com) Date: Wed, 02 Apr 2008 09:48:38 +1100 Subject: [mapserver-users] Access to a raster via http Message-ID: <CHILKAT-MID-407e6027-341d-43e6-acbc-57a5ace3c765@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/919ca3a2/attachment.txt> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/919ca3a2/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: 3#Part.002 Type: application/octet-stream Size: 169 bytes Desc: not available URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/919ca3a2/attachment.obj> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/919ca3a2/attachment.ksh> From szekerest at gmail.com Tue Apr 1 15:51:29 2008 From: szekerest at gmail.com (szekerest at gmail.com) Date: Wed, 02 Apr 2008 09:51:29 +1100 Subject: [mapserver-users] Unable to access Grid Object (GridObject) viaC# MapScript interface (related to bug 1980) Message-ID: <CHILKAT-MID-9c4bebef-2fcb-477b-9b75-ce3aeb04fd2e@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/04cd46b3/attachment.txt> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/04cd46b3/attachment.ksh> From szekerest at gmail.com Tue Apr 1 15:51:29 2008 From: szekerest at gmail.com (szekerest at gmail.com) Date: Wed, 02 Apr 2008 09:51:29 +1100 Subject: [mapserver-users] Unable to access Grid Object (GridObject) viaC# MapScript interface (related to bug 1980) Message-ID: <CHILKAT-MID-62f3a0a6-3db4-42c8-9a03-dd9aee3f31b2@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/225b6950/attachment.txt> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/225b6950/attachment.ksh> From crschmidt at metacarta.com Tue Apr 1 15:51:42 2008 From: crschmidt at metacarta.com (crschmidt at metacarta.com) Date: Wed, 02 Apr 2008 09:51:42 +1100 Subject: [mapserver-users] What's the correct reference to MapServer nowfor Info linking? Message-ID: <CHILKAT-MID-23a164e8-b82a-4195-b702-768d62e1b272@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/10b9a64b/attachment.txt> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/10b9a64b/attachment.ksh> From dmorissette at mapgears.com Tue Apr 1 15:51:44 2008 From: dmorissette at mapgears.com (dmorissette at mapgears.com) Date: Wed, 02 Apr 2008 09:51:44 +1100 Subject: [mapserver-users] MapServer Apache module Message-ID: <CHILKAT-MID-3ad6ee79-d59a-4c7d-93f6-e8c56ec3e4c1@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/d56a2ff5/attachment.txt> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/d56a2ff5/attachment.ksh> From gregor at hostgis.com Tue Apr 1 15:52:06 2008 From: gregor at hostgis.com (gregor at hostgis.com) Date: Wed, 02 Apr 2008 09:52:06 +1100 Subject: [mapserver-users] What's the correct reference to MapServer nowforInfo linking? Message-ID: <CHILKAT-MID-b2c8bff5-a2a2-49cc-bea0-8285db3de23a@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/bb706185/attachment.txt> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/bb706185/attachment.ksh> From Bob.Basques at ci.stpaul.mn.us Tue Apr 1 15:52:13 2008 From: Bob.Basques at ci.stpaul.mn.us (Bob.Basques at ci.stpaul.mn.us) Date: Wed, 02 Apr 2008 09:52:13 +1100 Subject: [mapserver-users] What's the correct reference to MapServer now forInfo linking? Message-ID: <CHILKAT-MID-b31a9b81-9aff-4603-9c42-ba1464d09a0f@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/4cb2d103/attachment.txt> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/4cb2d103/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: 3#Part.002 Type: application/octet-stream Size: 169 bytes Desc: not available URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/4cb2d103/attachment.obj> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/4cb2d103/attachment.ksh> From brian.hulbert at linquest.com Tue Apr 1 15:52:15 2008 From: brian.hulbert at linquest.com (brian.hulbert at linquest.com) Date: Wed, 02 Apr 2008 09:52:15 +1100 Subject: [mapserver-users] Unable to access Grid Object (GridObject) via C#MapScript interface (related to bug 1980) Message-ID: <CHILKAT-MID-4a599c85-c837-499e-b75e-d0727306455a@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/01627ed2/attachment.txt> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/01627ed2/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: 3#Part.002 Type: application/octet-stream Size: 169 bytes Desc: not available URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/01627ed2/attachment.obj> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/01627ed2/attachment.ksh> From brian.hulbert at linquest.com Tue Apr 1 15:52:15 2008 From: brian.hulbert at linquest.com (brian.hulbert at linquest.com) Date: Wed, 02 Apr 2008 09:52:15 +1100 Subject: [mapserver-users] Unable to access Grid Object (GridObject) via C#MapScript interface (related to bug 1980) Message-ID: <CHILKAT-MID-5709da10-c4e1-4893-99be-f546a6faee0f@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/282e73a3/attachment.txt> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/282e73a3/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: 3#Part.002 Type: application/octet-stream Size: 169 bytes Desc: not available URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/282e73a3/attachment.obj> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/282e73a3/attachment.ksh> From brian.hulbert at linquest.com Tue Apr 1 15:52:15 2008 From: brian.hulbert at linquest.com (brian.hulbert at linquest.com) Date: Wed, 02 Apr 2008 09:52:15 +1100 Subject: [mapserver-users] Unable to access Grid Object (GridObject) via C#MapScript interface (related to bug 1980) Message-ID: <CHILKAT-MID-079518ef-66d4-4a52-b889-4df5dc65341e@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/91866ea7/attachment.txt> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/91866ea7/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: 3#Part.002 Type: application/octet-stream Size: 169 bytes Desc: not available URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/91866ea7/attachment.obj> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/91866ea7/attachment.ksh> From brian.hulbert at linquest.com Tue Apr 1 15:52:15 2008 From: brian.hulbert at linquest.com (brian.hulbert at linquest.com) Date: Wed, 02 Apr 2008 09:52:15 +1100 Subject: [mapserver-users] Unable to access Grid Object (GridObject) via C#MapScript interface (related to bug 1980) Message-ID: <CHILKAT-MID-b1241d24-c9d6-4633-aa17-275e7b0c9f7d@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/efaae383/attachment.txt> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/efaae383/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: 3#Part.002 Type: application/octet-stream Size: 169 bytes Desc: not available URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/efaae383/attachment.obj> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/efaae383/attachment.ksh> From brian.hulbert at linquest.com Tue Apr 1 15:52:15 2008 From: brian.hulbert at linquest.com (brian.hulbert at linquest.com) Date: Wed, 02 Apr 2008 09:52:15 +1100 Subject: [mapserver-users] Unable to access Grid Object (GridObject) via C#MapScript interface (related to bug 1980) Message-ID: <CHILKAT-MID-98278b17-1fd2-4509-9aab-71a70a7d709a@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/d88e40a5/attachment.txt> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/d88e40a5/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: 3#Part.002 Type: application/octet-stream Size: 169 bytes Desc: not available URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/d88e40a5/attachment.obj> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/d88e40a5/attachment.ksh> From warmerdam at pobox.com Tue Apr 1 15:52:32 2008 From: warmerdam at pobox.com (warmerdam at pobox.com) Date: Wed, 02 Apr 2008 09:52:32 +1100 Subject: [mapserver-users] Access to a raster via http Message-ID: <CHILKAT-MID-5179ce7c-96ea-4e7b-a1c3-3f0a14c54548@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/a6ef3068/attachment.txt> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/a6ef3068/attachment.ksh> From warmerdam at pobox.com Tue Apr 1 15:52:32 2008 From: warmerdam at pobox.com (warmerdam at pobox.com) Date: Wed, 02 Apr 2008 09:52:32 +1100 Subject: [mapserver-users] Access to a raster via http Message-ID: <CHILKAT-MID-dfbc73ae-3d60-4df9-bb8d-7cd7dccaa5fd@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/9b5431c5/attachment.txt> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/9b5431c5/attachment.ksh> From correosig at gmail.com Tue Apr 1 15:52:36 2008 From: correosig at gmail.com (correosig at gmail.com) Date: Wed, 02 Apr 2008 09:52:36 +1100 Subject: [mapserver-users] Access to a raster via http Message-ID: <CHILKAT-MID-93755f0c-26e7-4fe5-8e2e-6322a2d4ec16@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/6cfbfc3b/attachment.txt> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/6cfbfc3b/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: 3#Part.002 Type: application/octet-stream Size: 169 bytes Desc: not available URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/6cfbfc3b/attachment.obj> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/6cfbfc3b/attachment.ksh> From warmerdam at pobox.com Tue Apr 1 16:18:44 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 01 Apr 2008 19:18:44 -0400 Subject: [mapserver-users] Nabble Feedback Loop? Message-ID: <47F2C2D4.6070207@pobox.com> Bart / Milo, I think we are suffering from a nabble feedback loop. Lots of repeat email late this afternoon. I have temporarily set the "mod" flag on the lists at nabble.com subscription to the mapserver-users list. Hopefully this will bring things back under control till you can work out the issue. Cc:ing mapserver-users so folks will know they don't need to speculate on the problem. 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 | President OSGeo, http://osgeo.org From szekerest at gmail.com Tue Apr 1 15:34:06 2008 From: szekerest at gmail.com (szekerest at gmail.com) Date: Wed, 02 Apr 2008 09:34:06 +1100 Subject: [mapserver-users] Unable to access Grid Object (GridObject) viaC# MapScript interface (related to bug 1980) Message-ID: <CHILKAT-MID-29dadfe2-756f-4f8f-933d-1b1888711183@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/8b81a39d/attachment.txt> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/8b81a39d/attachment.ksh> From crschmidt at metacarta.com Tue Apr 1 15:34:40 2008 From: crschmidt at metacarta.com (crschmidt at metacarta.com) Date: Wed, 02 Apr 2008 09:34:40 +1100 Subject: [mapserver-users] What's the correct reference to MapServer nowfor Info linking? Message-ID: <CHILKAT-MID-ef51ede7-8715-401c-81f5-0828ba7f98ec@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/1e18c946/attachment.txt> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/1e18c946/attachment.ksh> From dmorissette at mapgears.com Tue Apr 1 15:34:48 2008 From: dmorissette at mapgears.com (dmorissette at mapgears.com) Date: Wed, 02 Apr 2008 09:34:48 +1100 Subject: [mapserver-users] MapServer Apache module Message-ID: <CHILKAT-MID-60af276a-de72-46b2-afb2-58f86831a34c@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/51539df8/attachment.txt> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/51539df8/attachment.ksh> From gregor at hostgis.com Tue Apr 1 15:35:15 2008 From: gregor at hostgis.com (gregor at hostgis.com) Date: Wed, 02 Apr 2008 09:35:15 +1100 Subject: [mapserver-users] What's the correct reference to MapServer nowforInfo linking? Message-ID: <CHILKAT-MID-7390f2cc-21a9-4e05-963c-45d4ee268df8@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/4b3599fc/attachment.txt> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/4b3599fc/attachment.ksh> From Bob.Basques at ci.stpaul.mn.us Tue Apr 1 15:35:25 2008 From: Bob.Basques at ci.stpaul.mn.us (Bob.Basques at ci.stpaul.mn.us) Date: Wed, 02 Apr 2008 09:35:25 +1100 Subject: [mapserver-users] What's the correct reference to MapServer now forInfo linking? Message-ID: <CHILKAT-MID-9173a3c1-bbb9-418e-b569-fcaa5f1368b5@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/11575ee8/attachment.txt> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/11575ee8/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: 3#Part.002 Type: application/octet-stream Size: 169 bytes Desc: not available URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/11575ee8/attachment.obj> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/11575ee8/attachment.ksh> From brian.hulbert at linquest.com Tue Apr 1 15:35:27 2008 From: brian.hulbert at linquest.com (brian.hulbert at linquest.com) Date: Wed, 02 Apr 2008 09:35:27 +1100 Subject: [mapserver-users] Unable to access Grid Object (GridObject) via C#MapScript interface (related to bug 1980) Message-ID: <CHILKAT-MID-4a0237fe-536c-4a61-b700-e638f7c27d4f@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/dbd62e25/attachment.txt> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/dbd62e25/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: 3#Part.002 Type: application/octet-stream Size: 169 bytes Desc: not available URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/dbd62e25/attachment.obj> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/dbd62e25/attachment.ksh> From warmerdam at pobox.com Tue Apr 1 15:35:39 2008 From: warmerdam at pobox.com (warmerdam at pobox.com) Date: Wed, 02 Apr 2008 09:35:39 +1100 Subject: [mapserver-users] Access to a raster via http Message-ID: <CHILKAT-MID-2ac08b21-e9f6-47bf-a80f-043665c6fc14@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/81afe252/attachment.txt> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/81afe252/attachment.ksh> From correosig at gmail.com Tue Apr 1 15:35:43 2008 From: correosig at gmail.com (correosig at gmail.com) Date: Wed, 02 Apr 2008 09:35:43 +1100 Subject: [mapserver-users] Access to a raster via http Message-ID: <CHILKAT-MID-163f1b5c-15ed-4752-91f7-5fea16c14d9c@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/eea95c5e/attachment.txt> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/eea95c5e/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: 3#Part.002 Type: application/octet-stream Size: 169 bytes Desc: not available URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/eea95c5e/attachment.obj> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/eea95c5e/attachment.ksh> From jmckenna at dmsolutions.ca Tue Apr 1 15:36:12 2008 From: jmckenna at dmsolutions.ca (jmckenna at dmsolutions.ca) Date: Wed, 02 Apr 2008 09:36:12 +1100 Subject: [mapserver-users] First Steps in mapserver Message-ID: <CHILKAT-MID-db75d485-4616-42e5-8257-3cc587d7a621@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/fda226b8/attachment.txt> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/fda226b8/attachment.ksh> From David.Fawcett at state.mn.us Tue Apr 1 15:36:44 2008 From: David.Fawcett at state.mn.us (David.Fawcett at state.mn.us) Date: Wed, 02 Apr 2008 09:36:44 +1100 Subject: [mapserver-users] symbology rotation Message-ID: <CHILKAT-MID-35a6a881-4c62-4584-9f53-fa762f84ad01@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/e10a3961/attachment.txt> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/e10a3961/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: 3#Part.002 Type: application/octet-stream Size: 169 bytes Desc: not available URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/e10a3961/attachment.obj> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/e10a3961/attachment.ksh> From williams at websawyer.com Tue Apr 1 16:03:16 2008 From: williams at websawyer.com (Doug Williams) Date: Tue, 1 Apr 2008 17:03:16 -0600 Subject: [mapserver-users] Dynamic Mapserver Technology In-Reply-To: <20080401104820.6D37037B13@webnail.grid.unep.ch> References: <20080401104820.6D37037B13@webnail.grid.unep.ch> Message-ID: <7C5CFB4A-F72F-4D18-B258-9662F56029B1@websawyer.com> Hi Stef, One good solution is imagemaps. Mapserver makes fair imagemaps for polygons, so should do for creating imagemaps that with a bit of typical html wizardry could be incorporated into a page to display information about polygons without clicking on the map, just mousing over. I found that mapserver was not giving specific enough information about points to the imagemap, so I modified my source just a bit and now get imagemaps for point layers that can provide information about every point on the map on one web page ... not a need to click and wait for a new page for each point anymore. Just mouse over the point and the info is displayed. Doug On Apr 1, 2008, at 10:48 AM, schwarzr at grid.unep.ch wrote: > Hi there, > > one is seeing more and more flash-map sites on the web. It seems > almost as if > these are some kind of competition for the "real" IMS sites. Surely > no real > GIS application; but in many cases some basic information display is > sufficient. > > So I wonder how far one can go with mapserver. Probably one has to > use as > well the flash-output option? And then, is there the possibility to > dynamically highlight a country when the mouse is over that > country? Display > additional information - something like a country profile etc.... > Everything > within one single application, without the need to reload a page, > another > window etc.? > > Thanks for any hints, > > Stef > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at dmsolutions.ca Tue Apr 1 15:55:14 2008 From: jmckenna at dmsolutions.ca (jmckenna at dmsolutions.ca) Date: Wed, 02 Apr 2008 09:55:14 +1100 Subject: [mapserver-users] First Steps in mapserver Message-ID: <CHILKAT-MID-005332a5-ddc0-48d8-aea8-4c7b307a63ad@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/515bf004/attachment.txt> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/515bf004/attachment.ksh> From David.Fawcett at state.mn.us Tue Apr 1 15:55:43 2008 From: David.Fawcett at state.mn.us (David.Fawcett at state.mn.us) Date: Wed, 02 Apr 2008 09:55:43 +1100 Subject: [mapserver-users] symbology rotation Message-ID: <CHILKAT-MID-aedbac23-edb4-410f-80b5-85242fc097c5@mrdong.forestrytas.com.au> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVA_1#message.txt URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/977d1c4e/attachment.txt> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/977d1c4e/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: 3#Part.002 Type: application/octet-stream Size: 169 bytes Desc: not available URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/977d1c4e/attachment.obj> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: GWAVADAT.TXT URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/977d1c4e/attachment.ksh> From group.ritesh at gmail.com Tue Apr 1 23:19:28 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Tue, 1 Apr 2008 23:19:28 -0700 (PDT) Subject: [MAPSERVER-USERS] Route Layer - Transparency Message-ID: <16442995.post@talk.nabble.com> Hello Ka-mappers, I am successfully showing routing on my map using ka-map routing. I am unable to set TRANSPARENCY to this route layer. I have two map files, a) main.map (consists of many layers) b) route.map (consists of only one route layer) In main.map, I am able to play with transparency. But, I am unable to set transparency to route.map. I am using GD/PNG driver, and png24 as outputformat. Your suggestions will be highly appreciated. Regards, Ambastha -- View this message in context: http://www.nabble.com/Route-Layer---Transparency-tp16442995p16442995.html Sent from the Mapserver - User mailing list archive at Nabble.com. From imoratiel at tecnosylva.com Tue Apr 1 23:52:50 2008 From: imoratiel at tecnosylva.com (Ignacio J. Moratiel) Date: Wed, 02 Apr 2008 08:52:50 +0200 Subject: [mapserver-users] 500 Internal server error Message-ID: <47F32D42.1050702@tecnosylva.com> I've compiled and installed mapserver on Suse 10.0 and mapserv file is on cgi-bin directory. When I try to run the scripts I get a 500 internal error message. I can read on this page http://mapserver.gis.umn.edu/docs/howto/compiling_on_unix /500 Internal server error: This is a fairly generic error message. All it basically tells you is that the web server was unsuccessful in running the program. You will have to consult the web server's error log to find out more, and may need to enlist the help of your webmaster/system administrator/ Mapserver creates a 0 bytes image in temp directory, and returns 500 error, so I think Apache is running program but mapserver fails. mapserv -v returns: MapServer version 4.8.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Is there any way to check mapserv script is compiled ok? Should I check other things? Thanks for your help -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/395aaddf/attachment.htm> From punk.kish at gmail.com Wed Apr 2 00:07:03 2008 From: punk.kish at gmail.com (P Kishor) Date: Wed, 2 Apr 2008 02:07:03 -0500 Subject: [mapserver-users] 500 Internal server error In-Reply-To: <47F32D42.1050702@tecnosylva.com> References: <47F32D42.1050702@tecnosylva.com> Message-ID: <cdf6db500804020007j46f82aceuf87c104f4876a126@mail.gmail.com> On 4/2/08, Ignacio J. Moratiel <imoratiel at tecnosylva.com> wrote: > > I've compiled and installed mapserver on Suse 10.0 and mapserv file is on > cgi-bin directory. When I try to run the scripts I get a 500 internal error > message. > > I can read on this page > http://mapserver.gis.umn.edu/docs/howto/compiling_on_unix > > 500 Internal server error: This is a fairly generic error message. All it > basically tells you is that the web server was unsuccessful in running the > program. You will have to consult the web server's error log to find out > more, and may need to enlist the help of your webmaster/system administrator well, what does your Apache error_log say? Did you check the logfile? > > Mapserver creates a 0 bytes image in temp directory, and returns 500 error, > so I think Apache is running program but mapserver fails. > > mapserv -v returns: > MapServer version 4.8.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > Is there any way to check mapserv script is compiled ok? Should I check > other things? > > Thanks for your help > > > From imoratiel at tecnosylva.com Wed Apr 2 02:49:04 2008 From: imoratiel at tecnosylva.com (Ignacio J. Moratiel) Date: Wed, 02 Apr 2008 09:49:04 -0000 Subject: [mapserver-users] 500 Internal server error In-Reply-To: <cdf6db500804020007j46f82aceuf87c104f4876a126@mail.gmail.com> References: <47F32D42.1050702@tecnosylva.com> <cdf6db500804020007j46f82aceuf87c104f4876a126@mail.gmail.com> Message-ID: <472B01E1.6060901@tecnosylva.com> Apache error log : [Tue Apr 01 14:12:30 2008] [error] [client 80.59.*.*] /srv/www/cgi-bin/mapserv: symbol lookup error: /srv/www/cgi-bin/mapserv: undefined symbol: gdImageJpegCtx, referer: http://www.dipuleon.es/atica/portada_turcia.html [Tue Apr 01 14:12:30 2008] [error] [client 80.59.*.*] Premature end of script headers: mapserv, referer: http://www.dipuleon.es/atica/portada_turcia.html I tried PNG, it works fine, but JPEG returns 500 error P Kishor escribi?: > On 4/2/08, Ignacio J. Moratiel <imoratiel at tecnosylva.com> wrote: > >> I've compiled and installed mapserver on Suse 10.0 and mapserv file is on >> cgi-bin directory. When I try to run the scripts I get a 500 internal error >> message. >> >> I can read on this page >> http://mapserver.gis.umn.edu/docs/howto/compiling_on_unix >> >> 500 Internal server error: This is a fairly generic error message. All it >> basically tells you is that the web server was unsuccessful in running the >> program. You will have to consult the web server's error log to find out >> more, and may need to enlist the help of your webmaster/system administrator >> > > well, what does your Apache error_log say? Did you check the logfile? > > > >> Mapserver creates a 0 bytes image in temp directory, and returns 500 error, >> so I think Apache is running program but mapserver fails. >> >> mapserv -v returns: >> MapServer version 4.8.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER >> SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >> >> Is there any way to check mapserv script is compiled ok? Should I check >> other things? >> >> Thanks for your help >> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/4d576f21/attachment.htm> From punk.kish at gmail.com Wed Apr 2 05:11:35 2008 From: punk.kish at gmail.com (P Kishor) Date: Wed, 2 Apr 2008 07:11:35 -0500 Subject: [mapserver-users] 500 Internal server error In-Reply-To: <472B01E1.6060901@tecnosylva.com> References: <47F32D42.1050702@tecnosylva.com> <cdf6db500804020007j46f82aceuf87c104f4876a126@mail.gmail.com> <472B01E1.6060901@tecnosylva.com> Message-ID: <cdf6db500804020511l6415930bi19afce77e6819e0d@mail.gmail.com> On 11/2/07, Ignacio J. Moratiel <imoratiel at tecnosylva.com> wrote: > > Apache error log : > > [Tue Apr 01 14:12:30 2008] [error] [client 80.59.*.*] > /srv/www/cgi-bin/mapserv: symbol lookup error: /srv/www/cgi-bin/mapserv: > undefined symbol: gdImageJpegCtx, referer: > http://www.dipuleon.es/atica/portada_turcia.html > [Tue Apr 01 14:12:30 2008] [error] [client 80.59.*.*] Premature end of > script headers: mapserv, referer: > http://www.dipuleon.es/atica/portada_turcia.html > > I tried PNG, it works fine, but JPEG returns 500 error there you go. You solved it yourself (with a little nudge from me and a big nudge from your error log). If you insist on using Jpeg, recompile the program correctly (it seems that your mapserv does claim that it supports jpeg, but I don't know what is going on there), else use PNGs or GIFs. Should keep you busy for a while. Good luck. > > > > P Kishor escribi?: > On 4/2/08, Ignacio J. Moratiel <imoratiel at tecnosylva.com> wrote: > > > I've compiled and installed mapserver on Suse 10.0 and mapserv file is on > cgi-bin directory. When I try to run the scripts I get a 500 internal error > message. > > I can read on this page > http://mapserver.gis.umn.edu/docs/howto/compiling_on_unix > > 500 Internal server error: This is a fairly generic error message. All it > basically tells you is that the web server was unsuccessful in running the > program. You will have to consult the web server's error log to find out > more, and may need to enlist the help of your webmaster/system administrator > > well, what does your Apache error_log say? Did you check the logfile? > > > > > Mapserver creates a 0 bytes image in temp directory, and returns 500 error, > so I think Apache is running program but mapserver fails. > > mapserv -v returns: > MapServer version 4.8.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > Is there any way to check mapserv script is compiled ok? Should I check > other things? > > Thanks for your help > > > From imoratiel at tecnosylva.com Wed Apr 2 05:34:48 2008 From: imoratiel at tecnosylva.com (Ignacio J. Moratiel) Date: Wed, 02 Apr 2008 12:34:48 -0000 Subject: [mapserver-users] 500 Internal server error In-Reply-To: <cdf6db500804020511l6415930bi19afce77e6819e0d@mail.gmail.com> References: <47F32D42.1050702@tecnosylva.com> <cdf6db500804020007j46f82aceuf87c104f4876a126@mail.gmail.com> <472B01E1.6060901@tecnosylva.com> <cdf6db500804020511l6415930bi19afce77e6819e0d@mail.gmail.com> Message-ID: <472B28B8.108@tecnosylva.com> Thanks for your help! ;) JPEG format weighs less than PNG or GIF, I use some high-quality orthos Thanks for your answers, again ;) P Kishor escribi?: > On 11/2/07, Ignacio J. Moratiel <imoratiel at tecnosylva.com> wrote: > >> Apache error log : >> >> [Tue Apr 01 14:12:30 2008] [error] [client 80.59.*.*] >> /srv/www/cgi-bin/mapserv: symbol lookup error: /srv/www/cgi-bin/mapserv: >> undefined symbol: gdImageJpegCtx, referer: >> http://www.dipuleon.es/atica/portada_turcia.html >> [Tue Apr 01 14:12:30 2008] [error] [client 80.59.*.*] Premature end of >> script headers: mapserv, referer: >> http://www.dipuleon.es/atica/portada_turcia.html >> >> I tried PNG, it works fine, but JPEG returns 500 error >> > > there you go. You solved it yourself (with a little nudge from me and > a big nudge from your error log). > > If you insist on using Jpeg, recompile the program correctly (it seems > that your mapserv does claim that it supports jpeg, but I don't know > what is going on there), else use PNGs or GIFs. Should keep you busy > for a while. > > Good luck. > > > >> >> P Kishor escribi?: >> On 4/2/08, Ignacio J. Moratiel <imoratiel at tecnosylva.com> wrote: >> >> >> I've compiled and installed mapserver on Suse 10.0 and mapserv file is on >> cgi-bin directory. When I try to run the scripts I get a 500 internal error >> message. >> >> I can read on this page >> http://mapserver.gis.umn.edu/docs/howto/compiling_on_unix >> >> 500 Internal server error: This is a fairly generic error message. All it >> basically tells you is that the web server was unsuccessful in running the >> program. You will have to consult the web server's error log to find out >> more, and may need to enlist the help of your webmaster/system administrator >> >> well, what does your Apache error_log say? Did you check the logfile? >> >> >> >> >> Mapserver creates a 0 bytes image in temp directory, and returns 500 error, >> so I think Apache is running program but mapserver fails. >> >> mapserv -v returns: >> MapServer version 4.8.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER >> SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >> >> Is there any way to check mapserv script is compiled ok? Should I check >> other things? >> >> Thanks for your help >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/8552ba31/attachment.htm> From simon_greig at uk.ibm.com Wed Apr 2 08:16:37 2008 From: simon_greig at uk.ibm.com (Simon Greig) Date: Wed, 2 Apr 2008 16:16:37 +0100 Subject: [mapserver-users] MapServer 4.8.3: MapScript setProjection In-Reply-To: <47EBFFB5.1070203@pobox.com> References: <OF1A6B0E52.385D92EE-ON80257419.006311B7-80257419.00642089@uk.ibm.com> <47EBFFB5.1070203@pobox.com> Message-ID: <OFF24D76FA.26F5670D-ON8025741E.00598FAC-8025741F.0053EB5D@uk.ibm.com> Hi, We have made the changes to remove the explicit layer setProjection and allow each layer to inherit the projection from its map. However for some vector layers we consistently get: "Layer must have an EPSG or AUTO projection code (in its PROJECTION object or wms_srs metadata)" A layer either works or does not work, but 30% of our layers fail with this error. Also layers that work or fail differ between environments. We don't use a map file for layer data (just for mapObj config) as all of our layer configurations are stored in a database. Our WMS_LAYERS table stores all of the data that you would normally see within the LAYERS section of a mapfile. I have checked the PROJECTION setting and for all layers it is set to "init='epsg:27700'". Our code manually constructs mapObj and layerObj objects taking the configuration from our config database. When our code constructs the layerObj JNI objects it checks the PROJECTION value from the database and if the DB value is the same as the mapObj projection then the code skips the layerObj.setProjection because it assumes that the layer will inherit the projection from the mapObj used in the constructor of the layerObj. None of the layers in the list are WMS layers and the layers that fail are all going to our Oracle Spatial database. I have asked the database team to investigate the differences between layers that work and fail in the same environment and layers that work in one environment and fail in another. I have inspected the development database and a I cannot see anything different between a layer that works and one that does not. e.g. If I simulate the mapfile syntax for our layers for the benefit of the email, if we had defined our layers in the mapfile they would look like this: LAYER NAME "2001UrbanAreas(Census)" CONNECTION "<usr>/<pwd>@SPR01" STATUS ON TYPE POLYGON DATA "GEOMETRY FROM OTHERAGENCIES.DCLG00000001 USING SRID 81989" MAXSCALE 99999999 MINSCALE 0 TRANSPARENCY 60 PROJECTION "init=epsg:27700" END LAYER NAME "EnglishHeritageRegions" CONNECTION "<usr>/<pwd>@SPR01" STATUS ON TYPE POLYGON DATA "GEOMETRY FROM OTHERAGENCIES.ENGH00000001 USING SRID 81989" MAXSCALE 99999999 MINSCALE 0 TRANSPARENCY 60 PROJECTION "init=epsg:27700" END 2001Urban layer fails with the projection error, the EnglishHeritageRegions works for the exact same bounding box/scale. We have not applied the METADATA change as the layers are not external WMS layers and presumably setting the METADATA wms_srs would provide the same effect as calling layerObj.setProjection? If we restore the code to setProjection for every layer then the errors go away - but our performance goes down. Does any of this description allow anyone to suggest areas that I should get the database team to focus on? Any advice appreciated :-) Simon Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080402/5296521a/attachment.htm> From dmorissette at mapgears.com Wed Apr 2 08:44:29 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 02 Apr 2008 11:44:29 -0400 Subject: [mapserver-users] MapServer 4.8.3: MapScript setProjection In-Reply-To: <OFF24D76FA.26F5670D-ON8025741E.00598FAC-8025741F.0053EB5D@uk.ibm.com> References: <OF1A6B0E52.385D92EE-ON80257419.006311B7-80257419.00642089@uk.ibm.com> <47EBFFB5.1070203@pobox.com> <OFF24D76FA.26F5670D-ON8025741E.00598FAC-8025741F.0053EB5D@uk.ibm.com> Message-ID: <47F3A9DD.5070006@mapgears.com> Simon, Are you also setting the "wms_srs" metadata in the map's web object? If not then perhaps try setting the "wms_srs" metadata in the web object to "EPSG:27700" and see if that helps. Daniel Simon Greig wrote: > > Hi, > > We have made the changes to remove the explicit layer setProjection and > allow each layer to inherit the projection from its map. > > However for some vector layers we consistently get: > "Layer must have an EPSG or AUTO projection code (in its PROJECTION > object or wms_srs metadata)" > > A layer either works or does not work, but 30% of our layers fail with > this error. Also layers that work or fail differ between environments. > > We don't use a map file for layer data (just for mapObj config) as all > of our layer configurations are stored in a database. Our WMS_LAYERS > table stores all of the data that you would normally see within the > LAYERS section of a mapfile. > > I have checked the PROJECTION setting and for all layers it is set to > "init='epsg:27700'". > > Our code manually constructs mapObj and layerObj objects taking the > configuration from our config database. > > When our code constructs the layerObj JNI objects it checks the > PROJECTION value from the database and if the DB value is the same as > the mapObj projection then the code skips the layerObj.setProjection > because it assumes that the layer will inherit the projection from the > mapObj used in the constructor of the layerObj. > > None of the layers in the list are WMS layers and the layers that fail > are all going to our Oracle Spatial database. > > I have asked the database team to investigate the differences between > layers that work and fail in the same environment and layers that work > in one environment and fail in another. I have inspected the > development database and a I cannot see anything different between a > layer that works and one that does not. > > e.g. If I simulate the mapfile syntax for our layers for the benefit of > the email, if we had defined our layers in the mapfile they would look > like this: > > LAYER > NAME "2001UrbanAreas(Census)" > CONNECTION "<usr>/<pwd>@SPR01" > STATUS ON > TYPE POLYGON > DATA "GEOMETRY FROM OTHERAGENCIES.DCLG00000001 USING SRID 81989" > MAXSCALE 99999999 > MINSCALE 0 > TRANSPARENCY 60 > PROJECTION "init=epsg:27700" > END > > LAYER > NAME "EnglishHeritageRegions" > CONNECTION "<usr>/<pwd>@SPR01" > STATUS ON > TYPE POLYGON > DATA "GEOMETRY FROM OTHERAGENCIES.ENGH00000001 USING SRID 81989" > MAXSCALE 99999999 > MINSCALE 0 > TRANSPARENCY 60 > PROJECTION "init=epsg:27700" > END > > > 2001Urban layer fails with the projection error, the > EnglishHeritageRegions works for the exact same bounding box/scale. > > > > We have not applied the METADATA change as the layers are not external > WMS layers and presumably setting the METADATA wms_srs would provide the > same effect as calling layerObj.setProjection? > > If we restore the code to setProjection for every layer then the errors > go away - but our performance goes down. > > > Does any of this description allow anyone to suggest areas that I should > get the database team to focus on? > > Any advice appreciated :-) > > Simon > > > ------------------------------------------------------------------------ > > / > / > > /Unless stated otherwise above: > IBM United Kingdom Limited - Registered in England and Wales with number > 741598. > Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU/ > > > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ From brian.hulbert at linquest.com Wed Apr 2 09:42:14 2008 From: brian.hulbert at linquest.com (Hulbert, Brian) Date: Wed, 2 Apr 2008 12:42:14 -0400 Subject: [mapserver-users] Unable to access Grid Object (GridObject) via C# MapScript interface (related to bug 1980) In-Reply-To: <f3b73b7d0804011348v6cdc6fa8ued0170f9d0ae5f34@mail.gmail.com> References: <4114190589591220362@unknownmsgid> <f3b73b7d0804011348v6cdc6fa8ued0170f9d0ae5f34@mail.gmail.com> Message-ID: <001801c894e0$81d2a530$8577ef90$@hulbert@linquest.com> Tamas, Thanks for the suggestion but the layerObj does not contain and UpdateFromString property or method (when viewed from Visual Studio's object browser nor when viewing the API reference online). Thoughts? Brian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Tamas Szekeres Sent: Tuesday, April 01, 2008 4:48 PM To: Hulbert, Brian Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Unable to access Grid Object (GridObject) via C# MapScript interface (related to bug 1980) You can probably use layerObj.UpdateFromString with the string you have in your mapfile. However I'm not sure how you loose your settings after the first refresh? Do you recreate your map by using Clone() or something? We should also fix msCopyLayer to copy the layerinfo with the graticule layers. Best regards, Tamas 2008/4/1, Hulbert, Brian <brian.hulbert at linquest.com>: > > > > > I have a MAP file that contains a layer for displaying graticule (see > below). However, after the first refresh, the labelformat for my grid > object is lost. This was noted in bug 1980. I cannot find a workaround for > this bug by traversing the layer->class object hierarchy and trying to set a > labelformat for the GridObject. > > > > Can the label format be reset via the mapscript_csharp dll interface? If > not, is drawing the graticule lines better accomplished via a shape file? > Even if I need to do both a equirectangular and orthographic projections? > > > > Ref: I am using MapScript 5.0.2 and calling it from C# using MS VS 2005 > > > > LAYER > > NAME "grid" > > METADATA > > "DESCRIPTION" "Grid" > > END > > TYPE LINE > > STATUS ON > > > > PROJECTION > > 'proj=longlat' > > 'ellps=WGS84' > > 'datum=WGS84' > > 'no_defs' > > END > > > > CLASS > > NAME "Graticule" > > COLOR 192 192 192 > > LABEL > > COLOR 255 255 0 > > FONT arial > > TYPE truetype > > SIZE 8 > > POSITION AUTO #ur > > PARTIALS FALSE > > BUFFER 5 > > END > > END > > > > GRID > > LABELFORMAT "%g?" # dec degrees with symbol > > MAXARCS 10 > > MAXINTERVAL 10 > > MAXSUBDIVIDE 64 > > END > > END # Layer > > > _______________________________________________ > 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 Apr 2 09:52:40 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 2 Apr 2008 18:52:40 +0200 Subject: [mapserver-users] Unable to access Grid Object (GridObject) via C# MapScript interface (related to bug 1980) In-Reply-To: <436960955202356812@unknownmsgid> References: <4114190589591220362@unknownmsgid> <f3b73b7d0804011348v6cdc6fa8ued0170f9d0ae5f34@mail.gmail.com> <436960955202356812@unknownmsgid> Message-ID: <f3b73b7d0804020952y21e848e6m42af5f16b0142202@mail.gmail.com> Brian, Which version are you using? I guess the mapserver 5.0 should contain this option. Here's the related change, which is pretty old. http://trac.osgeo.org/mapserver/changeset/6362 Best regards, Tamas 2008/4/2, Hulbert, Brian <brian.hulbert at linquest.com>: > Tamas, > Thanks for the suggestion but the layerObj does not contain and > UpdateFromString property or method (when viewed from Visual Studio's object > browser nor when viewing the API reference online). Thoughts? > > > Brian > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Tamas Szekeres > Sent: Tuesday, April 01, 2008 4:48 PM > To: Hulbert, Brian > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Unable to access Grid Object (GridObject) via > C# MapScript interface (related to bug 1980) > > You can probably use layerObj.UpdateFromString with the string you > have in your mapfile. However I'm not sure how you loose your settings > after the first refresh? Do you recreate your map by using Clone() or > something? > We should also fix msCopyLayer to copy the layerinfo with the graticule > layers. > > > Best regards, > > Tamas > > > > 2008/4/1, Hulbert, Brian <brian.hulbert at linquest.com>: > > > > > > > > > > I have a MAP file that contains a layer for displaying graticule (see > > below). However, after the first refresh, the labelformat for my grid > > object is lost. This was noted in bug 1980. I cannot find a workaround > for > > this bug by traversing the layer->class object hierarchy and trying to set > a > > labelformat for the GridObject. > > > > > > > > Can the label format be reset via the mapscript_csharp dll interface? If > > not, is drawing the graticule lines better accomplished via a shape file? > > Even if I need to do both a equirectangular and orthographic projections? > > > > > > > > Ref: I am using MapScript 5.0.2 and calling it from C# using MS VS 2005 > > > > > > > > LAYER > > > > NAME "grid" > > > > METADATA > > > > "DESCRIPTION" "Grid" > > > > END > > > > TYPE LINE > > > > STATUS ON > > > > > > > > PROJECTION > > > > 'proj=longlat' > > > > 'ellps=WGS84' > > > > 'datum=WGS84' > > > > 'no_defs' > > > > END > > > > > > > > CLASS > > > > NAME "Graticule" > > > > COLOR 192 192 192 > > > > LABEL > > > > COLOR 255 255 0 > > > > FONT arial > > > > TYPE truetype > > > > SIZE 8 > > > > POSITION AUTO #ur > > > > PARTIALS FALSE > > > > BUFFER 5 > > > > END > > > > END > > > > > > > > GRID > > > > LABELFORMAT "%g?" # dec degrees with symbol > > > > MAXARCS 10 > > > > MAXINTERVAL 10 > > > > MAXSUBDIVIDE 64 > > > > END > > > > END # Layer > > > > > > _______________________________________________ > > 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 pianosnake at gmail.com Wed Apr 2 10:57:26 2008 From: pianosnake at gmail.com (Florin A.) Date: Wed, 2 Apr 2008 11:57:26 -0600 Subject: [mapserver-users] flash swf output Message-ID: <1d674ec80804021057j4e79a9a7o3fda999d13ec86a0@mail.gmail.com> Hello, I have a couple of suggestions for the SWF output which would really help with making more interesting applications: -THE most important: name the objects in the swf so they can be accessed by ActionScript -define the rollover, rollout, press and release actions in one prototype in the root. this will not break any existing applications and will reduce file size a bit. -allow the user to set the amount by which the resolution can be reduced. how much is lost with FULL_RESOLUTION=FALSE ? -line thickness for vector lines I'd like to help work on some of these things, but I need some guidance. Maybe a google summer of code thing? I am a student .... Also, the page at http://www2.dmsolutions.ca/mapserver/dl/FlashMapserverUserDoc.html should be updated to indicate that the new version of XAMPP contains a compiled version of Ming 0.4 for Windows. Florin From dncarreira at gmail.com Wed Apr 2 12:51:28 2008 From: dncarreira at gmail.com (DNC) Date: Wed, 2 Apr 2008 12:51:28 -0700 (PDT) Subject: [MAPSERVER-USERS] agg and line widths In-Reply-To: <d2b988930803310049g683b1297p40660225e2a5e030@mail.gmail.com> References: <16369480.post@talk.nabble.com> <d2b988930803310049g683b1297p40660225e2a5e030@mail.gmail.com> Message-ID: <16450017.post@talk.nabble.com> Thomas, I'm drawing administrative boundaries like counties. The data came from a polygon shapefile and converted to PostGIS. The boundaries are topologically correct in that shared boundaries are completely coincident and not adjacent. I have never seen these polygons being drawn like you describe. It didn't even occurred to me that MapServer would have any difficulties drawing this kind of data... How do you publish for instance the US states? Thanks, Duarte tbonfort wrote: > > hi, > you're probably drawing polygons with adjacent borders right? > in this case, each line except the outer ones is drawn twice, and thus > its final width is larger than what is requested. > I don't think there's much you can do about it except preprocess your > data to transform it into a line layer with no duplicates. > > cheers, > -- > Thomas Bonfort > > Camptocamp France SAS > Tel : +33 (0)4 79 26 57 97 > thomas dot bonfort at camptocamp dot com > http://www.camptocamp.com > > On Sat, Mar 29, 2008 at 1:22 PM, DNC <dncarreira at gmail.com> wrote: >> >> Hi. >> >> I'm having trouble getting thin lines to draw. The thinnest line I get >> seems >> to be 2 pixels wide at least. Using GD the lines are indeed 1 pixel. >> Anyone >> can point out why this happens? >> >> Some sections from the map file: >> OUTPUTFORMAT >> NAME 'AGG_Q' >> DRIVER AGG/PNG >> MIMETYPE "image/png" >> IMAGEMODE RGB >> FORMATOPTION "QUANTIZE_FORCE=ON" >> FORMATOPTION "QUANTIZE_DITHER=OFF" >> FORMATOPTION "QUANTIZE_COLORS=256" >> END >> LAYER >> NAME 'test' >> GROUP "test group" >> TYPE POLYGON >> #MINSCALE 250000 >> CONNECTIONTYPE postgis >> CONNECTION 'bla' >> PROCESSING "CLOSE_CONNECTION=DEFER" >> DATA 'the_geom from table using unique gid' >> #FILTER '' >> METADATA >> 'wms_title' 'some layer' >> "ows_abstract" "some text" >> 'wms_srs' 'EPSG:27492' >> "wms_opaque" "0" >> "wms_group_title" "group title" >> "wms_group_abstract" "group text" >> END >> STATUS ON >> TRANSPARENCY 100 >> PROJECTION >> 'init=epsg:27492' >> END >> EXTENT -23893.143277 -173568.018533 62541.864515 -70038.622014 >> MINSCALE 1 >> # MAXSCALE 100000 >> # data is queryable >> DUMP TRUE >> HEADER /ms_ogc_workshop/templates/rivers_query_header.html >> TEMPLATE /ms_ogc_workshop/templates/rivers_query_body.html >> # fuzziness for querying >> TOLERANCE 5 >> CLASS >> NAME 'outlines' >> STYLE >> WIDTH 1 >> OUTLINECOLOR 232 232 232 >> END >> END >> END >> >> Regards, >> Duarte >> -- >> View this message in context: >> http://www.nabble.com/agg-and-line-widths-tp16369480p16369480.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://www.nabble.com/agg-and-line-widths-tp16369480p16450017.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at gmail.com Wed Apr 2 14:03:32 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 2 Apr 2008 23:03:32 +0200 Subject: [MAPSERVER-USERS] agg and line widths In-Reply-To: <16450017.post@talk.nabble.com> References: <16369480.post@talk.nabble.com> <d2b988930803310049g683b1297p40660225e2a5e030@mail.gmail.com> <16450017.post@talk.nabble.com> Message-ID: <d2b988930804021403r32b1d97aj4d8fa991ed3a1610@mail.gmail.com> hi, it's one of the drawbacks of antialiasing in general, not a mapserver specific issue. an analogy could be found when drawing on paper with a felt-tip pen: if you pass twice on the same line the resulting effect is that the paper is twice as saturated in ink and the line appears thicker. this doesn't happen when drawing aliased bresenham lines as with the gd renderer, as multiple passes on a given line produces the same result as a single pass. hth, thomas On Wed, Apr 2, 2008 at 9:51 PM, DNC <dncarreira at gmail.com> wrote: > > Thomas, > > I'm drawing administrative boundaries like counties. The data came from a > polygon shapefile and converted to PostGIS. The boundaries are topologically > correct in that shared boundaries are completely coincident and not > adjacent. I have never seen these polygons being drawn like you describe. It > didn't even occurred to me that MapServer would have any difficulties > drawing this kind of data... How do you publish for instance the US states? > > Thanks, > Duarte > > > > > tbonfort wrote: > > > > hi, > > you're probably drawing polygons with adjacent borders right? > > in this case, each line except the outer ones is drawn twice, and thus > > its final width is larger than what is requested. > > I don't think there's much you can do about it except preprocess your > > data to transform it into a line layer with no duplicates. > > > > cheers, > > -- > > Thomas Bonfort > > > > Camptocamp France SAS > > Tel : +33 (0)4 79 26 57 97 > > thomas dot bonfort at camptocamp dot com > > http://www.camptocamp.com > > > > On Sat, Mar 29, 2008 at 1:22 PM, DNC <dncarreira at gmail.com> wrote: > >> > >> Hi. > >> > >> I'm having trouble getting thin lines to draw. The thinnest line I get > >> seems > >> to be 2 pixels wide at least. Using GD the lines are indeed 1 pixel. > >> Anyone > >> can point out why this happens? > >> > >> Some sections from the map file: > >> OUTPUTFORMAT > >> NAME 'AGG_Q' > >> DRIVER AGG/PNG > >> MIMETYPE "image/png" > >> IMAGEMODE RGB > >> FORMATOPTION "QUANTIZE_FORCE=ON" > >> FORMATOPTION "QUANTIZE_DITHER=OFF" > >> FORMATOPTION "QUANTIZE_COLORS=256" > >> END > >> LAYER > >> NAME 'test' > >> GROUP "test group" > >> TYPE POLYGON > >> #MINSCALE 250000 > >> CONNECTIONTYPE postgis > >> CONNECTION 'bla' > >> PROCESSING "CLOSE_CONNECTION=DEFER" > >> DATA 'the_geom from table using unique gid' > >> #FILTER '' > >> METADATA > >> 'wms_title' 'some layer' > >> "ows_abstract" "some text" > >> 'wms_srs' 'EPSG:27492' > >> "wms_opaque" "0" > >> "wms_group_title" "group title" > >> "wms_group_abstract" "group text" > >> END > >> STATUS ON > >> TRANSPARENCY 100 > >> PROJECTION > >> 'init=epsg:27492' > >> END > >> EXTENT -23893.143277 -173568.018533 62541.864515 -70038.622014 > >> MINSCALE 1 > >> # MAXSCALE 100000 > >> # data is queryable > >> DUMP TRUE > >> HEADER /ms_ogc_workshop/templates/rivers_query_header.html > >> TEMPLATE /ms_ogc_workshop/templates/rivers_query_body.html > >> # fuzziness for querying > >> TOLERANCE 5 > >> CLASS > >> NAME 'outlines' > >> STYLE > >> WIDTH 1 > >> OUTLINECOLOR 232 232 232 > >> END > >> END > >> END > >> > >> Regards, > >> Duarte > >> -- > >> View this message in context: > >> http://www.nabble.com/agg-and-line-widths-tp16369480p16369480.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://www.nabble.com/agg-and-line-widths-tp16369480p16450017.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 Wed Apr 2 23:45:36 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 3 Apr 2008 08:45:36 +0200 Subject: [MAPSERVER-USERS] agg and line widths In-Reply-To: <25de2c7c0804021433j5e12adfocb8685abb972184d@mail.gmail.com> References: <16369480.post@talk.nabble.com> <d2b988930803310049g683b1297p40660225e2a5e030@mail.gmail.com> <16450017.post@talk.nabble.com> <d2b988930804021403r32b1d97aj4d8fa991ed3a1610@mail.gmail.com> <25de2c7c0804021433j5e12adfocb8685abb972184d@mail.gmail.com> Message-ID: <d2b988930804022345t143394c6n633e74fa8bdbb63c@mail.gmail.com> tanya, different symptoms but same "problem" here. even if your mapserver layer is of type "LINE", your counties data is polygonal data and therefore has duplicate edges, and mapserver will happilly draw these edges twice. depending on how the linestrings of the polygon are stored, the pattern of your dashes, the scale of your drawing, and a small dose of black magic, dashes will show up well or not ;) note that this isn't agg specific, the gd renderer has the same limitations when using dashes. -- Thomas Bonfort Camptocamp France SAS Tel : +33 (0)4 79 26 57 97 thomas dot bonfort at camptocamp dot com http://www.camptocamp.com On undefined, TC Haddad <tchaddad at gmail.com> wrote: > hi thomas > > my situation might be similar to Duarte: i'm also drawing counties, but in > my case I am drawing a line layer, not a polygon layer. > > my preference was for drawing the lines with a dashed symbol, but at certain > scales (usually more zoomed out) the dashed lines will occasionally fail - > and would draw as solid. the pattern of failure seems really hard to predict > .... see the red circled area in the attached image. > > this effect remained the same no matter how large the gap between my dashes > were, or how short my dash lengths (in this example basically 1 pixel dots, > and there is still a failure to solid line). any ideas on a work around? - > perhaps if I generalized the layer ? > > tanya > > > > > On Wed, Apr 2, 2008 at 2:03 PM, thomas bonfort <thomas.bonfort at gmail.com> > wrote: > > > hi, > > it's one of the drawbacks of antialiasing in general, not a mapserver > > specific issue. an analogy could be found when drawing on paper with a > > felt-tip pen: if you pass twice on the same line the resulting effect > > is that the paper is twice as saturated in ink and the line appears > > thicker. this doesn't happen when drawing aliased bresenham lines as > > with the gd renderer, as multiple passes on a given line produces the > > same result as a single pass. > > hth, > > thomas > > > > > > > > > > On Wed, Apr 2, 2008 at 9:51 PM, DNC <dncarreira at gmail.com> wrote: > > > > > > Thomas, > > > > > > I'm drawing administrative boundaries like counties. The data came from > a > > > polygon shapefile and converted to PostGIS. The boundaries are > topologically > > > correct in that shared boundaries are completely coincident and not > > > adjacent. I have never seen these polygons being drawn like you > describe. It > > > didn't even occurred to me that MapServer would have any difficulties > > > drawing this kind of data... How do you publish for instance the US > states? > > > > > > Thanks, > > > Duarte > > > > > > > > > > > > > > > tbonfort wrote: > > > > > > > > hi, > > > > you're probably drawing polygons with adjacent borders right? > > > > in this case, each line except the outer ones is drawn twice, and > thus > > > > its final width is larger than what is requested. > > > > I don't think there's much you can do about it except preprocess your > > > > data to transform it into a line layer with no duplicates. > > > > > > > > cheers, > > > > -- > > > > Thomas Bonfort > > > > > > > > Camptocamp France SAS > > > > Tel : +33 (0)4 79 26 57 97 > > > > thomas dot bonfort at camptocamp dot com > > > > http://www.camptocamp.com > > > > > > > > On Sat, Mar 29, 2008 at 1:22 PM, DNC <dncarreira at gmail.com> wrote: > > > >> > > > >> Hi. > > > >> > > > >> I'm having trouble getting thin lines to draw. The thinnest line I > get > > > >> seems > > > >> to be 2 pixels wide at least. Using GD the lines are indeed 1 > pixel. > > > >> Anyone > > > >> can point out why this happens? > > > >> > > > >> Some sections from the map file: > > > >> OUTPUTFORMAT > > > >> NAME 'AGG_Q' > > > >> DRIVER AGG/PNG > > > >> MIMETYPE "image/png" > > > >> IMAGEMODE RGB > > > >> FORMATOPTION "QUANTIZE_FORCE=ON" > > > >> FORMATOPTION "QUANTIZE_DITHER=OFF" > > > >> FORMATOPTION "QUANTIZE_COLORS=256" > > > >> END > > > >> LAYER > > > >> NAME 'test' > > > >> GROUP "test group" > > > >> TYPE POLYGON > > > >> #MINSCALE 250000 > > > >> CONNECTIONTYPE postgis > > > >> CONNECTION 'bla' > > > >> PROCESSING "CLOSE_CONNECTION=DEFER" > > > >> DATA 'the_geom from table using unique gid' > > > >> #FILTER '' > > > >> METADATA > > > >> 'wms_title' 'some layer' > > > >> "ows_abstract" "some text" > > > >> 'wms_srs' 'EPSG:27492' > > > >> "wms_opaque" "0" > > > >> "wms_group_title" "group title" > > > >> "wms_group_abstract" "group text" > > > >> END > > > >> STATUS ON > > > >> TRANSPARENCY 100 > > > >> PROJECTION > > > >> 'init=epsg:27492' > > > >> END > > > >> EXTENT -23893.143277 -173568.018533 62541.864515 -70038.622014 > > > >> MINSCALE 1 > > > >> # MAXSCALE 100000 > > > >> # data is queryable > > > >> DUMP TRUE > > > >> HEADER /ms_ogc_workshop/templates/rivers_query_header.html > > > >> TEMPLATE /ms_ogc_workshop/templates/rivers_query_body.html > > > >> # fuzziness for querying > > > >> TOLERANCE 5 > > > >> CLASS > > > >> NAME 'outlines' > > > >> STYLE > > > >> WIDTH 1 > > > >> OUTLINECOLOR 232 232 232 > > > >> END > > > >> END > > > >> END > > > >> > > > >> Regards, > > > >> Duarte > > > >> -- > > > >> View this message in context: > > > >> http://www.nabble.com/agg-and-line-widths-tp16369480p16369480.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://www.nabble.com/agg-and-line-widths-tp16369480p16450017.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 ibontama at gmail.com Thu Apr 3 03:51:45 2008 From: ibontama at gmail.com (Ibon Tamayo) Date: Thu, 3 Apr 2008 12:51:45 +0200 Subject: [mapserver-users] png problems Message-ID: <e0a3c2a0804030351y254ec4efn4213114599543444@mail.gmail.com> Hi all, I'm having troubles with drawing png shapes. I dont have any problem to visualize the jpg but it has white areas out of the image, so I can't see what is under this shape. I decided to convert to png but now I can't see the image in the mapserver. what is the problem? LAYER #Foto.png TRANSPARENCY 100 NAME 'Foto' TOLERANCE 3 TOLERANCEUNITS pixels DATA 'Foto.png' LABELCACHE on STATUS on DEBUG false TRANSFORM true TYPE raster MINSCALE 100000 PROCESSING "DITHER=NO" PROCESSING "BANDS=1,2,3" PROCESSING "SCALE_1=auto" PROCESSING "SCALE_2=auto" PROCESSING "SCALE_3=auto" END #LAYER Regards, Ibon -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080403/67cd0e15/attachment.htm> From Jukka.Rahkonen at mmmtike.fi Thu Apr 3 04:05:16 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 3 Apr 2008 14:05:16 +0300 Subject: [mapserver-users] png problems In-Reply-To: <e0a3c2a0804030351y254ec4efn4213114599543444@mail.gmail.com> Message-ID: <CC197224AC75CE4DB23F739B16891B86F72D58@tikka.haapa.mmm.fi> How do you georeference your jpeg and png images? If it goes wrong with png then Mapserver believes that image origo is at coordinates (0,0) and that probably does not suit the bounding box of your request. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Ibon Tamayo L?hetetty: 3. huhtikuuta 2008 13:52 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] png problems Hi all, I'm having troubles with drawing png shapes. I dont have any problem to visualize the jpg but it has white areas out of the image, so I can't see what is under this shape. I decided to convert to png but now I can't see the image in the mapserver. what is the problem? LAYER #Foto.png TRANSPARENCY 100 NAME 'Foto' TOLERANCE 3 TOLERANCEUNITS pixels DATA 'Foto.png' LABELCACHE on STATUS on DEBUG false TRANSFORM true TYPE raster MINSCALE 100000 PROCESSING "DITHER=NO" PROCESSING "BANDS=1,2,3" PROCESSING "SCALE_1=auto" PROCESSING "SCALE_2=auto" PROCESSING "SCALE_3=auto" END #LAYER Regards, Ibon -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080403/52c74698/attachment.htm> From yosoycore at gmail.com Thu Apr 3 07:28:41 2008 From: yosoycore at gmail.com (Emilio Ponce) Date: Thu, 3 Apr 2008 16:28:41 +0200 Subject: [mapserver-users] Characters codification problem in mapserver/postgis Message-ID: <9c2e09570804030728o2636f920yee361ca266983b1b@mail.gmail.com> Hi everyone! Recently I've done a simple mapfile (mapserver) that gets a postgis table and represents it. The problem is about the codification: The Postgis database is coded as UTF8 and when I represent a varchar column with mapserver the accents and especial characters are wrong. What can I do? Can I easily change the mapserver codification? Thanks guys! -- Emilio -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080403/7ae2da85/attachment.htm> From group.ritesh at gmail.com Thu Apr 3 08:37:38 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Thu, 3 Apr 2008 08:37:38 -0700 (PDT) Subject: [MAPSERVER-USERS] Route Layer - Transparency In-Reply-To: <16442995.post@talk.nabble.com> References: <16442995.post@talk.nabble.com> Message-ID: <16467762.post@talk.nabble.com> I have solved this issue. People with similar kind of problem can reach me for help. Regards, Ambastha Ritesh Ambastha wrote: > > Hello Ka-mappers, > > I am successfully showing routing on my map using ka-map routing. > I am unable to set TRANSPARENCY to this route layer. > > I have two map files, > a) main.map (consists of many layers) > b) route.map (consists of only one route layer) > > In main.map, I am able to play with transparency. But, I am unable to set > transparency to route.map. > > I am using GD/PNG driver, and png24 as outputformat. > > Your suggestions will be highly appreciated. > > Regards, > Ambastha > -- View this message in context: http://www.nabble.com/Route-Layer---Transparency-tp16442995p16467762.html Sent from the Mapserver - User mailing list archive at Nabble.com. From punk.kish at gmail.com Thu Apr 3 08:55:20 2008 From: punk.kish at gmail.com (P Kishor) Date: Thu, 3 Apr 2008 10:55:20 -0500 Subject: [MAPSERVER-USERS] Route Layer - Transparency In-Reply-To: <16467762.post@talk.nabble.com> References: <16442995.post@talk.nabble.com> <16467762.post@talk.nabble.com> Message-ID: <cdf6db500804030855s3b614eb6q405bde50c65b7631@mail.gmail.com> On 4/3/08, Ritesh Ambastha <group.ritesh at gmail.com> wrote: > > I have solved this issue. People with similar kind of problem can reach me > for help. that is very kind, but a more effective way is to post a reply in the same thread with the solution. That way it will get archived, indexed, and available to those who might really search the archives before asking the same question all over again. You can also write a phrase like so in your solution -- *SOLVED* or *SOLUTION*, or something like that. it might marginally increase the chances of it being discovered in a later search. > Regards, > Ambastha > > > Ritesh Ambastha wrote: > > > > Hello Ka-mappers, > > > > I am successfully showing routing on my map using ka-map routing. > > I am unable to set TRANSPARENCY to this route layer. > > > > I have two map files, > > a) main.map (consists of many layers) > > b) route.map (consists of only one route layer) > > > > In main.map, I am able to play with transparency. But, I am unable to set > > transparency to route.map. > > > > I am using GD/PNG driver, and png24 as outputformat. > > > > Your suggestions will be highly appreciated. > > > > Regards, > > Ambastha > > > > -- > > View this message in context: http://www.nabble.com/Route-Layer---Transparency-tp16442995p16467762.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 > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Institute for Environmental Studies http://www.nelson.wisc.edu/ Open Source Geospatial Foundation (OSGeo) http://www.osgeo.org/ From alim.karim at gmail.com Thu Apr 3 08:57:26 2008 From: alim.karim at gmail.com (alim karim) Date: Thu, 3 Apr 2008 08:57:26 -0700 Subject: [mapserver-users] PHP Mapscript question Message-ID: <a91dec920804030857y69282964o35dfa2232940809f@mail.gmail.com> this is my first time posting to this list - i hope my question falls under a topic that is discussed here. i am building a user interface which will allow users to change basic layer appearance such as color and symbols. this is done by reading an existing mapfile and applying the changes mentioned earlier. the layer definitions within the mapfile are not complex at all, each one only has one default class. modifying the color was not a big deal using $style->color->setRGB() once the style is found within the class. i would also like the user to be presented with a list of all the symbols defined in the mapfile that i am working with. i have gone through the API but haven't come across any functions that will allow me to accomplish this. does such functionality exist in the API? any help would be appreciated. thanks in advance. ak -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080403/9353fd0e/attachment.htm> From yassefa at dmsolutions.ca Thu Apr 3 08:56:20 2008 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Thu, 03 Apr 2008 11:56:20 -0400 Subject: [mapserver-users] Re: flash swf output In-Reply-To: <1d674ec80804021057j4e79a9a7o3fda999d13ec86a0@mail.gmail.com> References: <1d674ec80804021057j4e79a9a7o3fda999d13ec86a0@mail.gmail.com> Message-ID: <47F4FE24.2000109@dmsolutions.ca> Florin, > Hello, > > I have a couple of suggestions for the SWF output which would really > help with making more interesting applications: > > -THE most important: name the objects in the swf so they can be > accessed by ActionScript There is a bug on this specific issue http://trac.osgeo.org/mapserver/ticket/2336. What was done here was to name every instance with a unique name. Please look at it and update/comment in that bug. > -define the rollover, rollout, press and release actions in one > prototype in the root. this will not break any existing applications > and will reduce file size a bit. > -allow the user to set the amount by which the resolution can be > reduced. how much is lost with FULL_RESOLUTION=FALSE ? > -line thickness for vector lines > > I'd like to help work on some of these things, but I need some > guidance. Maybe a google summer of code thing? I am a student .... > I certainly would appreciate any contributions to this module. Usually the approach would be to open a trac ticket in Mapserver, discuss the issue there and hopefully provide a patch to solve the issue. I would think these changes would be more appropriate to be dealt directly instead of through the google summer code initiative. If we were to completely rewrite the swf support, that could make sense for a summer code. I also believe that It is a bit late for this year to submit. > Also, the page at > http://www2.dmsolutions.ca/mapserver/dl/FlashMapserverUserDoc.html > should be updated to indicate that the new version of XAMPP contains a > compiled version of Ming 0.4 for Windows. > I have added a documentation bug to move this document to the MapServer site (http://trac.osgeo.org/mapserver/ticket/2567). We can review/change it when this is done. Best Regards, > > Florin > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From tchaddad at gmail.com Thu Apr 3 09:10:54 2008 From: tchaddad at gmail.com (TC Haddad) Date: Thu, 3 Apr 2008 09:10:54 -0700 Subject: [MAPSERVER-USERS] agg and line widths In-Reply-To: <d2b988930804022345t143394c6n633e74fa8bdbb63c@mail.gmail.com> References: <16369480.post@talk.nabble.com> <d2b988930803310049g683b1297p40660225e2a5e030@mail.gmail.com> <16450017.post@talk.nabble.com> <d2b988930804021403r32b1d97aj4d8fa991ed3a1610@mail.gmail.com> <25de2c7c0804021433j5e12adfocb8685abb972184d@mail.gmail.com> <d2b988930804022345t143394c6n633e74fa8bdbb63c@mail.gmail.com> Message-ID: <25de2c7c0804030910l69f03751k90ad2609d81dbe59@mail.gmail.com> thanks Thomas, well, actually, in my case this particular layer was created as line data, purely for cartographic purposes (it's not a polygon dataset being drawn as type LINE) so I thought the "duplicate edges" issue would not apply. but I'll go back to the dashed symbol experiments to see if there are other ways to minimize the effect. Tanya On Wed, Apr 2, 2008 at 11:45 PM, thomas bonfort <thomas.bonfort at gmail.com> wrote: > tanya, > different symptoms but same "problem" here. even if your mapserver > layer is of type "LINE", your counties data is polygonal data and > therefore has duplicate edges, and mapserver will happilly draw these > edges twice. depending on how the linestrings of the polygon are > stored, the pattern of your dashes, the scale of your drawing, and a > small dose of black magic, dashes will show up well or not ;) > note that this isn't agg specific, the gd renderer has the same > limitations when using dashes. > > -- > Thomas Bonfort > > Camptocamp France SAS > Tel : +33 (0)4 79 26 57 97 > thomas dot bonfort at camptocamp dot com > http://www.camptocamp.com > > On undefined, TC Haddad <tchaddad at gmail.com> wrote: > > hi thomas > > > > my situation might be similar to Duarte: i'm also drawing counties, but > in > > my case I am drawing a line layer, not a polygon layer. > > > > my preference was for drawing the lines with a dashed symbol, but at > certain > > scales (usually more zoomed out) the dashed lines will occasionally fail > - > > and would draw as solid. the pattern of failure seems really hard to > predict > > .... see the red circled area in the attached image. > > > > this effect remained the same no matter how large the gap between my > dashes > > were, or how short my dash lengths (in this example basically 1 pixel > dots, > > and there is still a failure to solid line). any ideas on a work around? > - > > perhaps if I generalized the layer ? > > > > tanya > > > > > > > > > > On Wed, Apr 2, 2008 at 2:03 PM, thomas bonfort <thomas.bonfort at gmail.com > > > > wrote: > > > > > hi, > > > it's one of the drawbacks of antialiasing in general, not a mapserver > > > specific issue. an analogy could be found when drawing on paper with a > > > felt-tip pen: if you pass twice on the same line the resulting effect > > > is that the paper is twice as saturated in ink and the line appears > > > thicker. this doesn't happen when drawing aliased bresenham lines as > > > with the gd renderer, as multiple passes on a given line produces the > > > same result as a single pass. > > > hth, > > > thomas > > > > > > > > > > > > > > > On Wed, Apr 2, 2008 at 9:51 PM, DNC <dncarreira at gmail.com> wrote: > > > > > > > > Thomas, > > > > > > > > I'm drawing administrative boundaries like counties. The data came > from > > a > > > > polygon shapefile and converted to PostGIS. The boundaries are > > topologically > > > > correct in that shared boundaries are completely coincident and not > > > > adjacent. I have never seen these polygons being drawn like you > > describe. It > > > > didn't even occurred to me that MapServer would have any > difficulties > > > > drawing this kind of data... How do you publish for instance the US > > states? > > > > > > > > Thanks, > > > > Duarte > > > > > > > > > > > > > > > > > > > > tbonfort wrote: > > > > > > > > > > hi, > > > > > you're probably drawing polygons with adjacent borders right? > > > > > in this case, each line except the outer ones is drawn twice, and > > thus > > > > > its final width is larger than what is requested. > > > > > I don't think there's much you can do about it except preprocess > your > > > > > data to transform it into a line layer with no duplicates. > > > > > > > > > > cheers, > > > > > -- > > > > > Thomas Bonfort > > > > > > > > > > Camptocamp France SAS > > > > > Tel : +33 (0)4 79 26 57 97 > > > > > thomas dot bonfort at camptocamp dot com > > > > > http://www.camptocamp.com > > > > > > > > > > On Sat, Mar 29, 2008 at 1:22 PM, DNC <dncarreira at gmail.com> > wrote: > > > > >> > > > > >> Hi. > > > > >> > > > > >> I'm having trouble getting thin lines to draw. The thinnest > line I > > get > > > > >> seems > > > > >> to be 2 pixels wide at least. Using GD the lines are indeed 1 > > pixel. > > > > >> Anyone > > > > >> can point out why this happens? > > > > >> > > > > >> Some sections from the map file: > > > > >> OUTPUTFORMAT > > > > >> NAME 'AGG_Q' > > > > >> DRIVER AGG/PNG > > > > >> MIMETYPE "image/png" > > > > >> IMAGEMODE RGB > > > > >> FORMATOPTION "QUANTIZE_FORCE=ON" > > > > >> FORMATOPTION "QUANTIZE_DITHER=OFF" > > > > >> FORMATOPTION "QUANTIZE_COLORS=256" > > > > >> END > > > > >> LAYER > > > > >> NAME 'test' > > > > >> GROUP "test group" > > > > >> TYPE POLYGON > > > > >> #MINSCALE 250000 > > > > >> CONNECTIONTYPE postgis > > > > >> CONNECTION 'bla' > > > > >> PROCESSING "CLOSE_CONNECTION=DEFER" > > > > >> DATA 'the_geom from table using unique gid' > > > > >> #FILTER '' > > > > >> METADATA > > > > >> 'wms_title' 'some layer' > > > > >> "ows_abstract" "some text" > > > > >> 'wms_srs' 'EPSG:27492' > > > > >> "wms_opaque" "0" > > > > >> "wms_group_title" "group title" > > > > >> "wms_group_abstract" "group text" > > > > >> END > > > > >> STATUS ON > > > > >> TRANSPARENCY 100 > > > > >> PROJECTION > > > > >> 'init=epsg:27492' > > > > >> END > > > > >> EXTENT -23893.143277 -173568.018533 62541.864515 > -70038.622014 > > > > >> MINSCALE 1 > > > > >> # MAXSCALE 100000 > > > > >> # data is queryable > > > > >> DUMP TRUE > > > > >> HEADER /ms_ogc_workshop/templates/rivers_query_header.html > > > > >> TEMPLATE /ms_ogc_workshop/templates/rivers_query_body.html > > > > >> # fuzziness for querying > > > > >> TOLERANCE 5 > > > > >> CLASS > > > > >> NAME 'outlines' > > > > >> STYLE > > > > >> WIDTH 1 > > > > >> OUTLINECOLOR 232 232 232 > > > > >> END > > > > >> END > > > > >> END > > > > >> > > > > >> Regards, > > > > >> Duarte > > > > >> -- > > > > >> View this message in context: > > > > >> > http://www.nabble.com/agg-and-line-widths-tp16369480p16369480.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://www.nabble.com/agg-and-line-widths-tp16369480p16450017.html > > > > > > > > > > > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > > > > > > _______________________________________________ > > > > mapserver-users mailing list > > > > mapserver-users at lists.osgeo.org > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080403/2efee8e9/attachment.htm> From dmorissette at mapgears.com Thu Apr 3 12:00:40 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 03 Apr 2008 15:00:40 -0400 Subject: [mapserver-users] PHP Mapscript question In-Reply-To: <a91dec920804030857y69282964o35dfa2232940809f@mail.gmail.com> References: <a91dec920804030857y69282964o35dfa2232940809f@mail.gmail.com> Message-ID: <47F52958.6000004@mapgears.com> alim karim wrote: > > i would also like the user to be presented with a list of all the > symbols defined in the mapfile that i am working with. i have gone > through the API but haven't come across any functions that will allow me > to accomplish this. does such functionality exist in the API? > The mapObj's getNumSymbols() and getSymbolObjectById() methods should allow you to do something like this (untested): $numsymbols = $map->getNumSymbols(); # Start looping at 1 since symbol 0 is the default symbol for ($id=1; $id < $numsymbols; $id++) { $symbol = $map->getSymbolObjectById($id); # Do something with $symbol here... see the symbolObj class docs... } Daniel -- Daniel Morissette http://www.mapgears.com/ From jimmy.nimo at pranical.com Thu Apr 3 11:57:31 2008 From: jimmy.nimo at pranical.com (Jimmy Nimo) Date: Thu, 03 Apr 2008 14:57:31 -0400 Subject: [mapserver-users] problem map server 5.0.2 installation Message-ID: <20080403145731.3d44bvh9z44c0cws@webmail.pranical.com> hello to all. I have a problem trying to install mapserver 5.0.2 in a IA64 architecture, i'm using Red Hat Enterprise Linux ES release 4 (Nahant Update 3) in a HP rx2620. first, I'm making every package from scratch, I try with apache 2.2.8 and php 5.2.5, let me show the configure parameters for each package. Apache 2.2.8 ./configure --prefix=/usr/local/apache2 --enable-deflate --enable-info --enable-mime-magic --enable-rewrite --enable-so --enable-speling --enable-ssl --enable-unique_id --enable-usertrack --with-mpm=prefork --with-apxs2 --with-apr=/usr/local/apr-httpd --with-apr-util=/usr/local/apr-util-httpd php 5.2.5 ./configure --prefix=/usr/local/apache2/php --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/usr/local/apache2/php --with-openssl --with-kerberos --with-zlib --with-bz2 --with-curl --with-gd=/usr/local/ --with-pgsql --with-xsl --with-gettext --with-regex=system --with-unixODBC=/usr/ --without-pear and then i put mapserver 5.0.2 from scratch, this are the parameters: ./configure --with-proj=/usr/local --with-geos=/usr/local/bin/geos-config --with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config --with-postgis=/usr/local/pgsql/bin/pg_config --with-curl-config=/usr/bin/curl-config --with-httpd=/usr/local/apache2/bin/httpd --with-php=/usr/local/apache2/php/ --with-wfs --with-wfsclient --with-wmsclient --enable-debug --with-curl-config=/usr/bin/curl-config --with-threads --with-wcs --with-wcsclient --with-sos --with-gd=/usr/local/ --with-freetype --with-jpeg=/usr/include --with-png=/usr/include i put the mapserv in the cgi-bin carpet and it work, my problem start with the mapscript library for php, when i try to load the library it put a segmentation fault in the error.log [Thu Apr 03 18:44:38 2008] [notice] child pid 14983 exit signal Segmentation fault (11) but when i try to use the cgi it work, i don't know what can be the problem, if anyone could help me it will help me a lot thanks for reading this -- Jimmy Nimo Especialista TI Pranical Technologies Cel.: +58.412.922.2505 Ofic.:+58.212.263.8275 Ofic.:+58.212.264.0710 GMail: jimmy.nimo at gmail.com www.pranical.com ** USO DEL CORREO ELECTRONICO DE PRANICAL TECHNOLOGIES HACIA INTERNET ** Este mensaje es privado y confidencial, y est? dirigido exclusivamente a sus destinatarios. Si usted recibi? este mensaje por error, debe abstenerse de usarlo en cualquier sentido. Asimismo, le agradecemos comunicarlo al remitente o a soporte at pranical.com y borrarlo, as? como cualquier documento adjunto. Cualquier opini?n contenida en este mensaje pertenece ?nicamente al autor remitente y no representa necesariamente la opini?n de Pranical Technologies. Eventualmente, los correos electr?nicos pueden ser alterados o llegar incompletos. Al respecto, Pranical Technologies no se hace responsable por los defectos u omisiones que pudieran afectar al mensaje original, con motivo de su env?o por correo electr?nico. From dmorissette at mapgears.com Thu Apr 3 12:04:18 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 03 Apr 2008 15:04:18 -0400 Subject: [mapserver-users] Characters codification problem in mapserver/postgis In-Reply-To: <9c2e09570804030728o2636f920yee361ca266983b1b@mail.gmail.com> References: <9c2e09570804030728o2636f920yee361ca266983b1b@mail.gmail.com> Message-ID: <47F52A32.1060200@mapgears.com> Emilio Ponce wrote: > Hi everyone! > > Recently I've done a simple mapfile (mapserver) that gets a postgis > table and represents it. The problem is about the codification: The > Postgis database is coded as UTF8 and when I represent a varchar column > with mapserver the accents and especial characters are wrong. What can I > do? Can I easily change the mapserver codification? > Is the problem with rendering labels on the map, or with displaying attribute fields in HTML? If the problem is with rendering labels on the map, have you tried setting ENCODING "UTF-8" in your label definition in the mapfile? If the problem is with displaying attribute values in HTML output then you may need to make sure your HTML page contains the right encoding specification in the HTML header. Daniel -- Daniel Morissette http://www.mapgears.com/ From alim.karim at gmail.com Thu Apr 3 13:40:37 2008 From: alim.karim at gmail.com (alim karim) Date: Thu, 3 Apr 2008 13:40:37 -0700 Subject: [mapserver-users] PHP Mapscript question In-Reply-To: <47F52958.6000004@mapgears.com> References: <a91dec920804030857y69282964o35dfa2232940809f@mail.gmail.com> <47F52958.6000004@mapgears.com> Message-ID: <a91dec920804031340gd5f8ec0u8073823fc4348431@mail.gmail.com> thanks for the response daniel. i figured this out shortly after i posted the question. getting the symbols by id [1 ... numSymbols] does indeed work. ak On Thu, Apr 3, 2008 at 12:00 PM, Daniel Morissette <dmorissette at mapgears.com> wrote: > alim karim wrote: > > > > > i would also like the user to be presented with a list of all the > > symbols defined in the mapfile that i am working with. i have gone through > > the API but haven't come across any functions that will allow me to > > accomplish this. does such functionality exist in the API? > > > > > The mapObj's getNumSymbols() and getSymbolObjectById() methods should > allow you to do something like this (untested): > > > $numsymbols = $map->getNumSymbols(); > > # Start looping at 1 since symbol 0 is the default symbol > for ($id=1; $id < $numsymbols; $id++) > { > $symbol = $map->getSymbolObjectById($id); > # Do something with $symbol here... see the symbolObj class docs... > } > > Daniel > -- > Daniel Morissette > http://www.mapgears.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: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080403/d83d7516/attachment.htm> From kreshna_iceheart at yahoo.com Thu Apr 3 21:28:08 2008 From: kreshna_iceheart at yahoo.com (kreshna_iceheart at yahoo.com) Date: Thu, 3 Apr 2008 21:28:08 -0700 (PDT) Subject: [mapserver-users] Cannot display postGIS layers on ms4w 4.6.1 Message-ID: <541985.91407.qm@web56109.mail.re3.yahoo.com> I'm trying to display postGIS layers on MapServer. I am using the following components: 1) MapServer 4.6.1 for Windows (ms4w) 2) postgreSQL 8.2 3) shp2pgsql release 1.1.6 4) QuantumGIS 0.9.2 to automatically generate my mapfile My mapfile is attached with this email. It only has a single layer (for testing purpose), and it does not contain any complex query at all. The layer definition is as follows: ======================================================= LAYER NAME 'batas_administrasi_line2_utm' TYPE LINE CONNECTIONTYPE postgis CONNECTION 'host=localhost user=rtrw dbname=rtrw-pacitan-trenggalek' DATA 'the_geom FROM batas-admin.batas_administrasi_line2_utm' ======================================================= Yet, when I tried to display the mapfile, I got the following error message: ======================================================= msDrawMap(): Image handling error. Failed to draw layer named 'batas_administrasi_line2_utm'. prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from batas-admin.batas_administrasi_line2_utm WHERE () and (the_geom && setSRID( 'BOX3D(528656.510416667 9074209,609071.177083333 9134520)'::BOX3D,find_srid('','batas-admin.batas_administrasi_line2_utm','the_geom') ))' Postgresql reports the error as 'ERROR: syntax error at or near "-" at character 116 ' 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.php Mappostgis.c - version of Jan 23/2004. ======================================================= I have tried the following solution: (1) changing "FROM" to "from" (uppercase to lowercase) (2) enabling oid in my database: - uncommenting the line "default_with_oids" in my postgresql.on - changing the value to "on" - restarting posgresql - re-creating all my postGIS tables Yet none of the solution above work. MapServer just keeps giving me the error message. What happens? Anyone know a working solution? Thanks, -Kresh ____________________________________________________________________________________ You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. http://tc.deals.yahoo.com/tc/blockbuster/text5.com -------------- next part -------------- A non-text attachment was scrubbed... Name: rtrw-pacitan-trenggalek1.map Type: application/octet-stream Size: 3011 bytes Desc: 165038048-rtrw-pacitan-trenggalek1.map URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080403/1c06677f/attachment.obj> From Jukka.Rahkonen at mmmtike.fi Thu Apr 3 23:24:59 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 4 Apr 2008 09:24:59 +0300 Subject: [mapserver-users] Cannot display postGIS layers on ms4w 4.6.1 In-Reply-To: <541985.91407.qm@web56109.mail.re3.yahoo.com> Message-ID: <CC197224AC75CE4DB23F739B16891B86F72D5C@tikka.haapa.mmm.fi> Perhaps a typo in your mapfile? There reads: DATA 'the_geom from batas-admin.batas_administrasi_line2_utm using unique oid' -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > kreshna_iceheart at yahoo.com > L?hetetty: 4. huhtikuuta 2008 7:28 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Cannot display postGIS layers on ms4w 4.6.1 > > I'm trying to display postGIS layers on MapServer. I am using > the following components: > 1) MapServer 4.6.1 for Windows (ms4w) > 2) postgreSQL 8.2 > 3) shp2pgsql release 1.1.6 > 4) QuantumGIS 0.9.2 to automatically generate my mapfile > > My mapfile is attached with this email. It only has a single > layer (for testing purpose), and it does not contain any > complex query at all. The layer definition is as follows: > ======================================================= > LAYER > NAME 'batas_administrasi_line2_utm' > TYPE LINE > CONNECTIONTYPE postgis > CONNECTION 'host=localhost user=rtrw > dbname=rtrw-pacitan-trenggalek' > DATA 'the_geom FROM > batas-admin.batas_administrasi_line2_utm' > ======================================================= > > > Yet, when I tried to display the mapfile, I got the following > error message: > ======================================================= > msDrawMap(): Image handling error. Failed to draw layer named > 'batas_administrasi_line2_utm'. > prepare_database(): Query error. Error executing POSTGIS > DECLARE (the actual query) statement: 'DECLARE mycursor > BINARY CURSOR FOR SELECT > asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text > from batas-admin.batas_administrasi_line2_utm WHERE () and > (the_geom && setSRID( 'BOX3D(528656.510416667 > 9074209,609071.177083333 > 9134520)'::BOX3D,find_srid('','batas-admin.batas_administrasi_ > line2_utm','the_geom') > ))' > > Postgresql reports the error as 'ERROR: syntax error at or > near "-" at character 116 ' > > 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.php > > Mappostgis.c - version of Jan 23/2004. > ======================================================= > > I have tried the following solution: > > (1) changing "FROM" to "from" (uppercase to lowercase) > > (2) enabling oid in my database: > - uncommenting the line "default_with_oids" in my postgresql.on > - changing the value to "on" > - restarting posgresql > - re-creating all my postGIS tables > > > Yet none of the solution above work. MapServer just keeps > giving me the error message. > > What happens? Anyone know a working solution? > > Thanks, > -Kresh > > > > > ______________________________________________________________ > ______________________ > You rock. That's why Blockbuster's offering you one month of > Blockbuster Total Access, No Cost. > http://tc.deals.yahoo.com/tc/blockbuster/text5.com > From kreshna_iceheart at yahoo.com Thu Apr 3 23:57:33 2008 From: kreshna_iceheart at yahoo.com (kreshna_iceheart at yahoo.com) Date: Thu, 3 Apr 2008 23:57:33 -0700 (PDT) Subject: [mapserver-users] Cannot display postGIS layers on ms4w 4.6.1 In-Reply-To: <CC197224AC75CE4DB23F739B16891B86F72D5C@tikka.haapa.mmm.fi> Message-ID: <471154.87416.qm@web56109.mail.re3.yahoo.com> Actually, the "using unique oid" part is my own addition in an attempt to remove the error (although it was futile). The original line is: DATA 'the_geom FROM batas-admin.batas_administrasi_line2_utm' Yet the error already showed up with the original line above. I don't know what's wrong. Thanks & Regards, -Kresh ____________________________________________________________________________________ You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. http://tc.deals.yahoo.com/tc/blockbuster/text5.com From Jukka.Rahkonen at mmmtike.fi Fri Apr 4 00:01:06 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 4 Apr 2008 10:01:06 +0300 Subject: [mapserver-users] Cannot display postGIS layers on ms4w 4.6.1 In-Reply-To: <334036.1605.qm@web56111.mail.re3.yahoo.com> Message-ID: <CC197224AC75CE4DB23F739B16891B86F72D5E@tikka.haapa.mmm.fi> Sorry, I noticed already that there was no typo. But doesn't the error message suggest that character "-" is illegal? Have another try by renaming your table to have underscore instead. -Jukka- > -----Alkuper?inen viesti----- > L?hett?j?: kreshna_iceheart at yahoo.com > [mailto:kreshna_iceheart at yahoo.com] > L?hetetty: 4. huhtikuuta 2008 9:55 > Vastaanottaja: Rahkonen Jukka > Aihe: Re: [mapserver-users] Cannot display postGIS layers on > ms4w 4.6.1 > > Actually, the "using unique oid" part is my own addition in > an attempt to remove the error (although it was futile). > > The original line is: > > DATA 'the_geom FROM > batas-admin.batas_administrasi_line2_utm' > > Yet the error already showed up with the original line above. > I don't know what's wrong. > > Thanks & Regards, > -Kresh > > > > > > ______________________________________________________________ > ______________________ > You rock. That's why Blockbuster's offering you one month of > Blockbuster Total Access, No Cost. > http://tc.deals.yahoo.com/tc/blockbuster/text5.com > From kreshna_iceheart at yahoo.com Fri Apr 4 00:29:34 2008 From: kreshna_iceheart at yahoo.com (kreshna_iceheart at yahoo.com) Date: Fri, 4 Apr 2008 00:29:34 -0700 (PDT) Subject: [mapserver-users] Cannot display postGIS layers on ms4w 4.6.1 In-Reply-To: <CC197224AC75CE4DB23F739B16891B86F72D5E@tikka.haapa.mmm.fi> Message-ID: <827790.86303.qm@web56112.mail.re3.yahoo.com> All my tables already use underscore, it is the schema that use dash ("-"). Is that the cause of the error? Thanks, by the way. I'll try renaming my schemas tonight. -Kresh --- Rahkonen Jukka <Jukka.Rahkonen at mmmtike.fi> wrote: > Sorry, I noticed already that there was no typo. > But doesn't the error message suggest that character > "-" is illegal? Have another try by renaming your > table to have underscore instead. > > -Jukka- > > > -----Alkuper?inen viesti----- > > L?hett?j?: kreshna_iceheart at yahoo.com > > [mailto:kreshna_iceheart at yahoo.com] > > L?hetetty: 4. huhtikuuta 2008 9:55 > > Vastaanottaja: Rahkonen Jukka > > Aihe: Re: [mapserver-users] Cannot display postGIS > layers on > > ms4w 4.6.1 > > > > Actually, the "using unique oid" part is my own > addition in > > an attempt to remove the error (although it was > futile). > > > > The original line is: > > > > DATA 'the_geom FROM > > batas-admin.batas_administrasi_line2_utm' > > > > Yet the error already showed up with the original > line above. > > I don't know what's wrong. > > > > Thanks & Regards, > > -Kresh > > > > > > > > > > > > > ______________________________________________________________ > > ______________________ > > You rock. That's why Blockbuster's offering you > one month of > > Blockbuster Total Access, No Cost. > > http://tc.deals.yahoo.com/tc/blockbuster/text5.com > > > __________________________________________________________________ So be it. If saying "NO" means being alone, then to hell with love, with women, with marriage, with God, religions, bars, nightclubs, computer games, and all the shit life keeps pumping at me. I'll walk alone, but with freedom and a healed pride. ____________________________________________________________________________________ You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. http://tc.deals.yahoo.com/tc/blockbuster/text5.com From dedikintoro at yahoo.com Fri Apr 4 01:27:36 2008 From: dedikintoro at yahoo.com (dedi kintoro) Date: Fri, 4 Apr 2008 01:27:36 -0700 (PDT) Subject: [mapserver-users] how to configure Message-ID: <887176.66131.qm@web58510.mail.re3.yahoo.com> hello i'm new mapserver-user. i've installed webserver with apache2triad 1.5.2. at winxp. i want to make gis with php and shape file (tematic map arcview). how to configure mapserver and locate dlls file. regards dekin ____________________________________________________________________________________ You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. http://tc.deals.yahoo.com/tc/blockbuster/text5.com From KMR at orbicon.dk Fri Apr 4 02:13:32 2008 From: KMR at orbicon.dk (=?iso-8859-1?Q?KMR_-_K=E5re_M=F8lg=E5rd_Rasmussen?=) Date: Fri, 4 Apr 2008 11:13:32 +0200 Subject: [mapserver-users] Symbology rotation (again) Message-ID: <B2B6165481DE374C9F97BF671112E24001DD4468@groa.Hedeselskabet.dk> Hi list I?ve recently posted a question regarding symbology rotation. I?ve got two great replies suggesting 1) Upgrade mapserver (I was running 4.10) 2) Implement angleitem in a STYLE definition I?ve done both, and when I run mapserv.exe with -v as argument, version 5.0.2 is returned. But when I try to display the map, mapserver fails with the following error: Error: loadStyle(): Unknown identifier. Parsing error near (ANGLEITEM):(line 3328) java.lang.UnknownError: loadStyle(): Unknown identifier. Parsing error near (ANGLEITEM):(line 3328) The CLASS/STYLE looks like this CLASSITEM " TYPE" CLASS EXPRESSION "LOCK" STYLE COLOR 192 192 192 SYMBOL "WATER_L" SIZE 10 ANGLEITEM "LCK_ANGLE" #column contains float values END END Any suggestions to this error? TIA /Kaare -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080404/9fed0424/attachment.htm> From pal.kristensen at statkart.no Fri Apr 4 02:27:33 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Fri, 4 Apr 2008 02:27:33 -0700 (PDT) Subject: [MAPSERVER-USERS] WMS GetMap BUG Message-ID: <16489881.post@talk.nabble.com> Hi! In trunk there is now a bug concerning WMS GetMap requests. Now MapServer requires SERVICE=WMS for not to throw an exception when receiving a GetMap request, but in chapter 7.2.2 in the OGC WMS specification (1.1.1 spec - 01-068r3) SERVICE is note mentioned in the GetMap request. A GetCapabilities request requires SERVICE=WMS though. Regards P?l Kristensen -- View this message in context: http://www.nabble.com/WMS-GetMap-BUG-tp16489881p16489881.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pal.kristensen at statkart.no Fri Apr 4 02:32:13 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Fri, 4 Apr 2008 02:32:13 -0700 (PDT) Subject: [MAPSERVER-USERS] WMS GetMap BUG Message-ID: <16489881.post@talk.nabble.com> Hi! In trunk there is now a bug concerning WMS GetMap requests. Now MapServer requires SERVICE=WMS for not to throw an exception when receiving a GetMap request, but in chapter 7.2.2 in the OGC WMS specification (1.1.1 spec - 01-068r3) SERVICE is not mentioned in the GetMap request. A GetCapabilities request requires SERVICE=WMS though. Regards P?l Kristensen -- View this message in context: http://www.nabble.com/WMS-GetMap-BUG-tp16489881p16489881.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dmorissette at mapgears.com Fri Apr 4 05:02:49 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 04 Apr 2008 08:02:49 -0400 Subject: [MAPSERVER-USERS] WMS GetMap BUG In-Reply-To: <16489881.post@talk.nabble.com> References: <16489881.post@talk.nabble.com> Message-ID: <47F618E9.7040604@mapgears.com> P?l Kristensen wrote: > Hi! > > In trunk there is now a bug concerning WMS GetMap requests. Now MapServer > requires SERVICE=WMS for not to throw an exception when receiving a GetMap > request, but in chapter 7.2.2 in the OGC WMS specification (1.1.1 spec - > 01-068r3) SERVICE is not mentioned in the GetMap request. A GetCapabilities > request requires SERVICE=WMS though. > You're right. Can you please file a ticket about this? BTW I had noticed the issue for WMS 1.0.0 already: SERVICE does not exist at all in that revision so we cannot require it for 1.0.0 at all. Daniel -- Daniel Morissette http://www.mapgears.com/ From simon_greig at uk.ibm.com Fri Apr 4 07:50:21 2008 From: simon_greig at uk.ibm.com (Simon Greig) Date: Fri, 4 Apr 2008 15:50:21 +0100 Subject: [mapserver-users] MapServer 4.8.3: MapScript setProjection In-Reply-To: <47F3A9DD.5070006@mapgears.com> References: <OF1A6B0E52.385D92EE-ON80257419.006311B7-80257419.00642089@uk.ibm.com> <47EBFFB5.1070203@pobox.com> <OFF24D76FA.26F5670D-ON8025741E.00598FAC-8025741F.0053EB5D@uk.ibm.com> <47F3A9DD.5070006@mapgears.com> Message-ID: <OF134E3796.78EFBD40-ON80257420.0058D73F-80257421.005184D1@uk.ibm.com> Daniel, I think I owe you an apology! In your email last week you said: > Sounds like you may have a layer which uses CONNECTIONTYPE WMS. This is > a layer that is actually a connection to a remote WMS service, and one > of the things MapServer needs to know in order to build a succesful > GetMap request to that remote server is the SRS supported by that server. I had said that this was not possible. The database team reported that they suspected that we get the projection error for layers that have been pre-rendered into rasters. We inspected the code and found that if the layer is pre-rendered then our custom WMS servlet replaces the layer definition supplied by our data catalogue database with a hardcoded raster layer. In order to serve up the raster, the code replaces the DB loaded layer with a new layer with a connection type of "WMS" - it supplies the URL of our WMS server (i.e. it calls itself) So my plan to fix this was to update the code that currently says: FOR EACH layer IF inputdata.projection <> epsg:27700 // It always is 27700 in our reference data so the setProjection is never called layer.setProjection ("init=epsg:27700") END IF etc etc END FOR Change the above to say: FOR EACH layer IF inputdata.projection <> epsg:27700 OR inputdata.connectionType = WMS layer.setProjection ("init=epsg:27700") END IF etc etc END FOR As you say, if it is mandatory for WMS connections to have a projection then this makes sense. It means we can't get our performance savings for raster layers but that is a constraint and we can make savings elsewhere. Thank you for the advice. Regards Simon Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080404/947accde/attachment.htm> From pramsey at cleverelephant.ca Fri Apr 4 08:29:42 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Fri, 4 Apr 2008 08:29:42 -0700 Subject: [mapserver-users] FOSS4G 2008 Call for Workshops / Papers Message-ID: <30fe546d0804040829s72ab8809u226e2042203a56b8@mail.gmail.com> Strap on your thinking caps, boys and girls, it is abstract submission time for FOSS4G 2008! http://wiki.osgeo.org/wiki/FOSS4G2008_Announcements Note that the closing dates are not far away, so start the wheels turning: Workshops close: 30 April 2008 Papers close: 12 May 2008 From nickthegreek_ at hotmail.com Fri Apr 4 09:00:32 2008 From: nickthegreek_ at hotmail.com (nickthegreek-) Date: Fri, 4 Apr 2008 09:00:32 -0700 (PDT) Subject: [MAPSERVER-USERS] projection world Message-ID: <16492562.post@talk.nabble.com> hello there.. can any one tell me which is the ideal projection of a shapefile that contains all the world ? what i wanna to give me is an example like this PROJECTION "proj=lcc" "lat_1=32" "lat_2=44" "lat_0=38" "lon_0=-100" "x_0=0" "y_0=0" "ellps=GRS80" "datum=NAD83" END many thanks -- View this message in context: http://www.nabble.com/projection-world-tp16492562p16492562.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nickthegreek_ at hotmail.com Fri Apr 4 09:01:29 2008 From: nickthegreek_ at hotmail.com (nickthegreek-) Date: Fri, 4 Apr 2008 09:01:29 -0700 (PDT) Subject: [MAPSERVER-USERS] projection world Message-ID: <16492562.post@talk.nabble.com> hello there.. can any one tell me which is the ideal projection of a shapefile that contains all the world ? what i wanna to give me is an example like this PROJECTION "proj=lcc" "lat_1=32" "lat_2=44" "lat_0=38" "lon_0=-100" "x_0=0" "y_0=0" "ellps=GRS80" "datum=NAD83" END i wanna also to tell me how i can use the projection in the mapfile.. the shapefile contains a file.. country.prj how i can use it in the mapfile? many thanks -- View this message in context: http://www.nabble.com/projection-world-tp16492562p16492562.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Tom.Kralidis at ec.gc.ca Fri Apr 4 10:21:58 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Fri, 4 Apr 2008 13:21:58 -0400 Subject: [MAPSERVER-USERS] projection world In-Reply-To: <16492562.post@talk.nabble.com> Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF1C2@ecburexch1.ontario.int.ec.gc.ca> Yiasou Nick, > > hello there.. can any one tell me which is the ideal > projection of a shapefile that contains all the world ? > what i wanna to give me is an example like this > > PROJECTION > "proj=lcc" "lat_1=32" "lat_2=44" "lat_0=38" > "lon_0=-100" "x_0=0" "y_0=0" > "ellps=GRS80" "datum=NAD83" > END > Something like: "proj=longlat" "+ellps=WGS84" "+datum=WGS84" "+no_defs" ...is applicable to data which is global in nature. You can use the EPSG code shorthand as well: PROJECTION "init=epsg:4326" END > i wanna also to tell me how i can use the projection in the > mapfile.. the shapefile contains a file.. country.prj how i > can use it in the mapfile? You would use this info to define the _native_ projection of the data. See http://mapserver.gis.umn.edu/docs/reference/mapfile/projection for more info on projections in MapServer. Hope this helps. ..Tom From kamenriderichigo at gmail.com Fri Apr 4 12:02:45 2008 From: kamenriderichigo at gmail.com (Kamen Rider) Date: Fri, 4 Apr 2008 15:02:45 -0400 Subject: [mapserver-users] Problem with polygons Message-ID: <e4734dae0804041202udba58d4o71d7854b7c61face@mail.gmail.com> Sorry, but I must insist. I hope someone could help me. ---------- Forwarded message ---------- From: Kamen Rider <kamenriderichigo at gmail.com> Date: 26-mar-2008 9:51 Subject: To: mapserver-users at lists.osgeo.org Hello, I need something specific: To draw polygons (parcels) over a SHP map, and none of the examples I found on the web worked. Also I have no problems displaying points and I'm using UTM coordinates. This is what I did: 1.- Compiled MS on Linux (CentOS) and Install. MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=SOS_SERVER INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=MYGIS INPUT=SHAPEFILE 2.- Installed MySql. 3.- Created a table on MySql to store polygons. Here is the description. This table is called "prueba" +----------+---------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +----------+---------+------+-----+---------+-------+ | NUM | int(11) | YES | | NULL | | | ID | int(11) | YES | | NULL | | | poligono | text | YES | | NULL | | +----------+---------+------+-----+---------+-------+ This is what inserted on field poligono: POLYGON((350000 6270000,350000 6275000,360000 6275000,360000 6270000,350000 6270000)) ** 4.- Then created a OVF file, according to this example. (aqidata.ovf) http://www.dottedeyes.com/web_mapping/blog/2008/02/06/how-to-display-polygons-from-non-spatial-databases/ This is my OVF file : <OGRVRTDataSource> <OGRVRTLayer name="aqidata"> <SrcDataSource>MYSQL:test,user=root,password=xxxxx,host=localhost,port=3306,tables=prueba</SrcDataSource> <SrcSQL>select NUM, ID, poligono from prueba</SrcSQL> <FID>ID</FID> <GeometryType>wkbPolygon</GeometryType> <GeometryField encoding="WKT" field="poligono"/> </OGRVRTLayer> </OGRVRTDataSource> Using OGRINFO I Tested the connection, this is the result: INFO: Open of `/var/www/cgi-bin/tests/aqidata.ovf' using driver `VRT' successful. Layer name: aqidata Geometry: Polygon Feature Count: 1 Layer SRS WKT: (unknown) NUM: Integer (11.0) ID: Integer (11.0) poligono: Binary (0.0) OGRFeature(aqidata):1 NUM (Integer) = 1 ID (Integer) = 1 poligono (Binary) = 504F4C59474F4E282833353030303020363237303030302C333530303030203632373530... 5.- Then a created a MAP file: MAP NAME "Testing" EXTENT -177773.12 6409691.13 525065 6511086 #IMAGETYPE JPEG #IMAGETYPE PNG24 IMAGETYPE PNG IMAGECOLOR 255 255 255 STATUS ON SIZE 400 400 FONTSET "fonts.txt" SYMBOLSET "symbols.txt" WEB METADATA "key1" "value1" "key2" "value2" "key3" "value3" "key4" "value4" END END PROJECTION "init=epsg:4326" END LAYER NAME "POLIGONO" DEBUG ON STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:4326" END CONNECTIONTYPE OGR CONNECTION "aqidata.ovf" DATA "aqidata" CLASS NAME "MyClass" STYLE COLOR 0 0 0 OUTLINECOLOR 255 0 0 SIZE 8 END END END END It doesn't show anything, just a white rectangle. Not even an error. But when I display just points it works fine (using "PointsFromColumns"). I hope you could help me. Thanks, Pablo Molina S. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080404/bd359450/attachment.htm> From David.Fawcett at state.mn.us Fri Apr 4 12:14:31 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Fri, 4 Apr 2008 14:14:31 -0500 Subject: [mapserver-users] Problem with polygons In-Reply-To: <e4734dae0804041202udba58d4o71d7854b7c61face@mail.gmail.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBC25@s-sp22.pca.state.mn.us> There may be greater issues, but your extent line looks wrong. It should be: minx miny maxx maxy Yours looks like miny maxy minx maxx? David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kamen Rider Sent: Friday, April 04, 2008 2:03 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Problem with polygons Sorry, but I must insist. I hope someone could help me. ---------- Forwarded message ---------- From: Kamen Rider <kamenriderichigo at gmail.com> Date: 26-mar-2008 9:51 Subject: To: mapserver-users at lists.osgeo.org Hello, I need something specific: To draw polygons (parcels) over a SHP map, and none of the examples I found on the web worked. Also I have no problems displaying points and I'm using UTM coordinates. This is what I did: 1.- Compiled MS on Linux (CentOS) and Install. MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=SOS_SERVER INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=MYGIS INPUT=SHAPEFILE 2.- Installed MySql. 3.- Created a table on MySql to store polygons. Here is the description. This table is called "prueba" +----------+---------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +----------+---------+------+-----+---------+-------+ | NUM | int(11) | YES | | NULL | | | ID | int(11) | YES | | NULL | | | poligono | text | YES | | NULL | | +----------+---------+------+-----+---------+-------+ This is what inserted on field poligono: POLYGON((350000 6270000,350000 6275000,360000 6275000,360000 6270000,350000 6270000)) 4.- Then created a OVF file, according to this example. (aqidata.ovf) http://www.dottedeyes.com/web_mapping/blog/2008/02/06/how-to-display-pol ygons-from-non-spatial-databases/ This is my OVF file : <OGRVRTDataSource> <OGRVRTLayer name="aqidata"> <SrcDataSource>MYSQL:test,user=root,password=xxxxx,host=localhost,port=3 306,tables=prueba</SrcDataSource> <SrcSQL>select NUM, ID, poligono from prueba</SrcSQL> <FID>ID</FID> <GeometryType>wkbPolygon</GeometryType> <GeometryField encoding="WKT" field="poligono"/> </OGRVRTLayer> </OGRVRTDataSource> Using OGRINFO I Tested the connection, this is the result: INFO: Open of `/var/www/cgi-bin/tests/aqidata.ovf' using driver `VRT' successful. Layer name: aqidata Geometry: Polygon Feature Count: 1 Layer SRS WKT: (unknown) NUM: Integer (11.0) ID: Integer (11.0) poligono: Binary (0.0) OGRFeature(aqidata):1 NUM (Integer) = 1 ID (Integer) = 1 poligono (Binary) = 504F4C59474F4E282833353030303020363237303030302C333530303030203632373530 ... 5.- Then a created a MAP file: MAP NAME "Testing" EXTENT -177773.12 6409691.13 525065 6511086 #IMAGETYPE JPEG #IMAGETYPE PNG24 IMAGETYPE PNG IMAGECOLOR 255 255 255 STATUS ON SIZE 400 400 FONTSET "fonts.txt" SYMBOLSET "symbols.txt" WEB METADATA "key1" "value1" "key2" "value2" "key3" "value3" "key4" "value4" END END PROJECTION "init=epsg:4326" END LAYER NAME "POLIGONO" DEBUG ON STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:4326" END CONNECTIONTYPE OGR CONNECTION "aqidata.ovf" DATA "aqidata" CLASS NAME "MyClass" STYLE COLOR 0 0 0 OUTLINECOLOR 255 0 0 SIZE 8 END END END END It doesn't show anything, just a white rectangle. Not even an error. But when I display just points it works fine (using "PointsFromColumns"). I hope you could help me. Thanks, Pablo Molina S. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080404/fab41092/attachment.htm> From pcreso at pcreso.com Fri Apr 4 13:00:11 2008 From: pcreso at pcreso.com (Brent Wood) Date: Fri, 4 Apr 2008 13:00:11 -0700 (PDT) Subject: [mapserver-users] Problem with polygons In-Reply-To: <e4734dae0804041202udba58d4o71d7854b7c61face@mail.gmail.com> Message-ID: <606032.56802.qm@web33201.mail.mud.yahoo.com> Hi Kamen, If you are using UTM projected coordinate values, defining your layer SRID as WGS84 (EPSG:4326) in the map file doesn't seem correct. You might also try specifying your LayerSRS tag in the OVF file to keep this explicit. If this is the problem, then I'm not sure why your points data would work & polygons don't. Brent Wood > From: Kamen Rider <kamenriderichigo at gmail.com> > Date: 26-mar-2008 9:51 > Subject: > To: mapserver-users at lists.osgeo.org > > Hello, > I need something specific: To draw polygons (parcels) over a SHP map, and > none of the examples I found on the web worked. > Also I have no problems displaying points and I'm using UTM coordinates. > > This is what I did: > > 1.- Compiled MS on Linux (CentOS) and Install. > MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=WBMP OUTPUT=SVG > SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=SOS_SERVER > INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=MYGIS INPUT=SHAPEFILE > > 2.- Installed MySql. > > 3.- Created a table on MySql to store polygons. Here is the description. > This table is called "prueba" > +----------+---------+------+-----+---------+-------+ > | Field | Type | Null | Key | Default | Extra | > +----------+---------+------+-----+---------+-------+ > | NUM | int(11) | YES | | NULL | | > | ID | int(11) | YES | | NULL | | > | poligono | text | YES | | NULL | | > +----------+---------+------+-----+---------+-------+ > This is what inserted on field poligono: > POLYGON((350000 6270000,350000 6275000,360000 6275000,360000 6270000,350000 > 6270000)) > ** > 4.- Then created a OVF file, according to this example. (aqidata.ovf) > http://www.dottedeyes.com/web_mapping/blog/2008/02/06/how-to-display-polygons-from-non-spatial-databases/ > > This is my OVF file : > > <OGRVRTDataSource> > <OGRVRTLayer name="aqidata"> > > <SrcDataSource>MYSQL:test,user=root,password=xxxxx,host=localhost,port=3306,tables=prueba</SrcDataSource> > <SrcSQL>select NUM, ID, poligono from prueba</SrcSQL> > <FID>ID</FID> > <GeometryType>wkbPolygon</GeometryType> > <GeometryField encoding="WKT" field="poligono"/> > </OGRVRTLayer> > </OGRVRTDataSource> > Using OGRINFO I Tested the connection, this is the result: > > INFO: Open of `/var/www/cgi-bin/tests/aqidata.ovf' > using driver `VRT' successful. > > Layer name: aqidata > Geometry: Polygon > Feature Count: 1 > Layer SRS WKT: > (unknown) > NUM: Integer (11.0) > ID: Integer (11.0) > poligono: Binary (0.0) > OGRFeature(aqidata):1 > NUM (Integer) = 1 > ID (Integer) = 1 > poligono (Binary) = > 504F4C59474F4E282833353030303020363237303030302C333530303030203632373530... > > > 5.- Then a created a MAP file: > > MAP > NAME "Testing" > EXTENT -177773.12 6409691.13 525065 6511086 > #IMAGETYPE JPEG > #IMAGETYPE PNG24 > IMAGETYPE PNG > IMAGECOLOR 255 255 255 > STATUS ON > SIZE 400 400 > FONTSET "fonts.txt" > SYMBOLSET "symbols.txt" > > > WEB > METADATA > "key1" "value1" > "key2" "value2" > "key3" "value3" > "key4" "value4" > END > END > > > PROJECTION > "init=epsg:4326" > END > > LAYER > NAME "POLIGONO" > DEBUG ON > STATUS DEFAULT > TYPE POLYGON > PROJECTION > "init=epsg:4326" > END > CONNECTIONTYPE OGR > CONNECTION "aqidata.ovf" > DATA "aqidata" > CLASS > NAME "MyClass" > STYLE > COLOR 0 0 0 > OUTLINECOLOR 255 0 0 > SIZE 8 > END > END > END > END > > > It doesn't show anything, just a white rectangle. Not even an error. > But when I display just points it works fine (using "PointsFromColumns"). > > I hope you could help me. > > Thanks, > > Pablo Molina S. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From brian.hulbert at linquest.com Fri Apr 4 13:10:42 2008 From: brian.hulbert at linquest.com (Hulbert, Brian) Date: Fri, 4 Apr 2008 16:10:42 -0400 Subject: [mapserver-users] Unable to access Grid Object (GridObject) via C# MapScript interface (related to bug 1980) In-Reply-To: <f3b73b7d0804020952y21e848e6m42af5f16b0142202@mail.gmail.com> References: <4114190589591220362@unknownmsgid> <f3b73b7d0804011348v6cdc6fa8ued0170f9d0ae5f34@mail.gmail.com> <436960955202356812@unknownmsgid> <f3b73b7d0804020952y21e848e6m42af5f16b0142202@mail.gmail.com> Message-ID: <001201c8968f$f64b9f60$e2e2de20$@hulbert@linquest.com> I was using 4.10.1 [per a call to mapscript.msGetVersion()]. I now switched to 5.0.2 (once I got the complete list of DLLs) and it does in fact have the updateFromString() method. Can you point to a document which talks about the syntax to use in the string to supply? Specifically, I will be trying to change the LABELFORMAT of the grid object within my grid layer. Tx, Brian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Tamas Szekeres Sent: Wednesday, April 02, 2008 12:53 PM To: Hulbert, Brian Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Unable to access Grid Object (GridObject) via C# MapScript interface (related to bug 1980) Brian, Which version are you using? I guess the mapserver 5.0 should contain this option. Here's the related change, which is pretty old. http://trac.osgeo.org/mapserver/changeset/6362 Best regards, Tamas 2008/4/2, Hulbert, Brian <brian.hulbert at linquest.com>: > Tamas, > Thanks for the suggestion but the layerObj does not contain and > UpdateFromString property or method (when viewed from Visual Studio's object > browser nor when viewing the API reference online). Thoughts? > > > Brian > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Tamas Szekeres > Sent: Tuesday, April 01, 2008 4:48 PM > To: Hulbert, Brian > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Unable to access Grid Object (GridObject) via > C# MapScript interface (related to bug 1980) > > You can probably use layerObj.UpdateFromString with the string you > have in your mapfile. However I'm not sure how you loose your settings > after the first refresh? Do you recreate your map by using Clone() or > something? > We should also fix msCopyLayer to copy the layerinfo with the graticule > layers. > > > Best regards, > > Tamas > > > > 2008/4/1, Hulbert, Brian <brian.hulbert at linquest.com>: > > > > > > > > > > I have a MAP file that contains a layer for displaying graticule (see > > below). However, after the first refresh, the labelformat for my grid > > object is lost. This was noted in bug 1980. I cannot find a workaround > for > > this bug by traversing the layer->class object hierarchy and trying to set > a > > labelformat for the GridObject. > > > > > > > > Can the label format be reset via the mapscript_csharp dll interface? If > > not, is drawing the graticule lines better accomplished via a shape file? > > Even if I need to do both a equirectangular and orthographic projections? > > > > > > > > Ref: I am using MapScript 5.0.2 and calling it from C# using MS VS 2005 > > > > > > > > LAYER > > > > NAME "grid" > > > > METADATA > > > > "DESCRIPTION" "Grid" > > > > END > > > > TYPE LINE > > > > STATUS ON > > > > > > > > PROJECTION > > > > 'proj=longlat' > > > > 'ellps=WGS84' > > > > 'datum=WGS84' > > > > 'no_defs' > > > > END > > > > > > > > CLASS > > > > NAME "Graticule" > > > > COLOR 192 192 192 > > > > LABEL > > > > COLOR 255 255 0 > > > > FONT arial > > > > TYPE truetype > > > > SIZE 8 > > > > POSITION AUTO #ur > > > > PARTIALS FALSE > > > > BUFFER 5 > > > > END > > > > END > > > > > > > > GRID > > > > LABELFORMAT "%g?" # dec degrees with symbol > > > > MAXARCS 10 > > > > MAXINTERVAL 10 > > > > MAXSUBDIVIDE 64 > > > > END > > > > END # Layer > > > > > > _______________________________________________ > > 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 pal.kristensen at statkart.no Fri Apr 4 13:35:40 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Fri, 4 Apr 2008 13:35:40 -0700 (PDT) Subject: AW: [MAPSERVER-USERS] Hiding overviews In-Reply-To: <47EAB84D.4040304@mapgears.com> References: <DB439C1846E26C46B3CCF22306653937B06621@KS-EVS1.smi.sachsen.de> <CC197224AC75CE4DB23F739B16891B866E7640@tikka.haapa.mmm.fi> <DB439C1846E26C46B3CCF22306653937B06624@KS-EVS1.smi.sachsen.de> <15873132.post@talk.nabble.com> <DB439C1846E26C46B3CCF22306653937B0662A@KS-EVS1.smi.sachsen.de> <16274328.post@talk.nabble.com> <47E90F58.80804@mapgears.com> <47E91C7E.8040305@mapgears.com> <16296685.post@talk.nabble.com> <47EAB84D.4040304@mapgears.com> Message-ID: <16498566.post@talk.nabble.com> Hi Daniel! Thanks for creating the ticket! I don't mean to rush you, but have you had the time to commit the changes to SVN yet? Anyway, thanks again for the quick response. dmorissette wrote: > > > FYI I have created a ticket for this: > http://trac.osgeo.org/mapserver/ticket/2562 > > I can't commit this to SVN right now (I'm in the middle of other changes > in my source tree) but will try to get back at it ASAP. > > Daniel > -- > Daniel Morissette > http://www.mapgears.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://www.nabble.com/Hiding-overviews-tp15845320p16498566.html Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at gmail.com Fri Apr 4 14:42:16 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 4 Apr 2008 23:42:16 +0200 Subject: [mapserver-users] Unable to access Grid Object (GridObject) via C# MapScript interface (related to bug 1980) In-Reply-To: <-8420578115838916603@unknownmsgid> References: <4114190589591220362@unknownmsgid> <f3b73b7d0804011348v6cdc6fa8ued0170f9d0ae5f34@mail.gmail.com> <436960955202356812@unknownmsgid> <f3b73b7d0804020952y21e848e6m42af5f16b0142202@mail.gmail.com> <-8420578115838916603@unknownmsgid> Message-ID: <f3b73b7d0804041442k6a98e4d2ied64004b333faad5@mail.gmail.com> 2008/4/4, Hulbert, Brian <brian.hulbert at linquest.com>: > I was using 4.10.1 [per a call to mapscript.msGetVersion()]. > > I now switched to 5.0.2 (once I got the complete list of DLLs) and it does > in fact have the updateFromString() method. Can you point to a document > which talks about the syntax to use in the string to supply? Specifically, > I will be trying to change the LABELFORMAT of the grid object within my grid > layer. > It should be the same as you write it in your mapfile, like for example: "GRID\nLABELFORMAT \"%g?\"\nEND\nEND" or something like this. Best regards, Tamas From pcreso at pcreso.com Sat Apr 5 01:23:45 2008 From: pcreso at pcreso.com (Brent Wood) Date: Sat, 5 Apr 2008 01:23:45 -0700 (PDT) Subject: [mapserver-users] Mapserver & PHP scripting In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FBC25@s-sp22.pca.state.mn.us> Message-ID: <125273.31887.qm@web33204.mail.mud.yahoo.com> Hi, Quick question, I'd like to add some php functionality to a simple CGI mapserver application with an html template file. I'd much prefer not to rewrite it in mapscript, everything else works perfectly & the PHP I want to use is not for the mapping side of things, but to provide database driven pick lists & data extract tables etc. The mapserver CGI output recieved by a browser, & viewed with "view source", includes the PHP code in the html template, but it is not parsed as php. So my question is, is there a way to have the html output generated by CGI mapserver passed through php & properly invoked? Presumeably by apache prior to sending it on to the client. Thanks, Brent Wood From atul.dravid at iworktech.com Sat Apr 5 02:24:32 2008 From: atul.dravid at iworktech.com (Atul Dravid) Date: Sat, 5 Apr 2008 01:24:32 -0800 Subject: [mapserver-users] Making border thick on selecting shape... Message-ID: <ebd91ef20804050224n3d4b2fb1g9ab4e0a838858f46@mail.gmail.com> Dear All, I am developing mapserver based application on Windows platform. The map is rendered properly as per the tutorial. Also I can also capture the shape in the layer on which user is clicking the mouse. I would like the border of this shape to be converted to Red color and with more thickness. Anyone has done this ? Thanks in advance, -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080405/09528b8f/attachment.htm> From dncarreira at gmail.com Sat Apr 5 13:17:59 2008 From: dncarreira at gmail.com (DNC) Date: Sat, 5 Apr 2008 13:17:59 -0700 (PDT) Subject: [MAPSERVER-USERS] agg and line widths In-Reply-To: <16369480.post@talk.nabble.com> References: <16369480.post@talk.nabble.com> Message-ID: <16517471.post@talk.nabble.com> It seems the problem lies with both viewers I was using, that for some reason seem to scale the image up somehow... so lines appear thicker than in other viewers. I'm still trying to figure this out though. Thanks everyone for helping. Duarte DNC wrote: > > Hi. > > I'm having trouble getting thin lines to draw. The thinnest line I get > seems to be 2 pixels wide at least. Using GD the lines are indeed 1 pixel. > Anyone can point out why this happens? > > Some sections from the map file: > OUTPUTFORMAT > NAME 'AGG_Q' > DRIVER AGG/PNG > MIMETYPE "image/png" > IMAGEMODE RGB > FORMATOPTION "QUANTIZE_FORCE=ON" > FORMATOPTION "QUANTIZE_DITHER=OFF" > FORMATOPTION "QUANTIZE_COLORS=256" > END > LAYER > NAME 'test' > GROUP "test group" > TYPE POLYGON > #MINSCALE 250000 > CONNECTIONTYPE postgis > CONNECTION 'bla' > PROCESSING "CLOSE_CONNECTION=DEFER" > DATA 'the_geom from table using unique gid' > #FILTER '' > METADATA > 'wms_title' 'some layer' > "ows_abstract" "some text" > 'wms_srs' 'EPSG:27492' > "wms_opaque" "0" > "wms_group_title" "group title" > "wms_group_abstract" "group text" > END > STATUS ON > TRANSPARENCY 100 > PROJECTION > 'init=epsg:27492' > END > EXTENT -23893.143277 -173568.018533 62541.864515 -70038.622014 > MINSCALE 1 > # MAXSCALE 100000 > # data is queryable > DUMP TRUE > HEADER /ms_ogc_workshop/templates/rivers_query_header.html > TEMPLATE /ms_ogc_workshop/templates/rivers_query_body.html > # fuzziness for querying > TOLERANCE 5 > CLASS > NAME 'outlines' > STYLE > WIDTH 1 > OUTLINECOLOR 232 232 232 > END > END > END > > Regards, > Duarte > -- View this message in context: http://www.nabble.com/agg-and-line-widths-tp16369480p16517471.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dncarreira at gmail.com Sat Apr 5 13:26:48 2008 From: dncarreira at gmail.com (DNC) Date: Sat, 5 Apr 2008 13:26:48 -0700 (PDT) Subject: [MAPSERVER-USERS] how mapserver handles different datum projections Message-ID: <16517601.post@talk.nabble.com> Hi all. Can anyone clarify how mapserver handles different datum in the map projection and in the layers projection when serving a wms service? Does MS apply datum transformations? If not, can it be done somehow without converting the layers? In my case I'm working with vector data, and have defined a map projection using "init=epsg:code" syntax. Then at the layer level I use the same syntax to declare the projection the data is in. And finally I want my WMS service to be published in 3 different datum and for that I advertise several epsg codes in the "wms_srs" metadata entry. I'm noticing a shift in images produced by MS that indicate a datum shift is not being applied. What can be done? Thanks, Duarte -- View this message in context: http://www.nabble.com/how-mapserver-handles-different-datum-projections-tp16517601p16517601.html Sent from the Mapserver - User mailing list archive at Nabble.com. From warmerdam at pobox.com Sat Apr 5 13:36:24 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Sat, 05 Apr 2008 16:36:24 -0400 Subject: [MAPSERVER-USERS] how mapserver handles different datum projections In-Reply-To: <16517601.post@talk.nabble.com> References: <16517601.post@talk.nabble.com> Message-ID: <47F7E2C8.8070809@pobox.com> DNC wrote: > Hi all. > > Can anyone clarify how mapserver handles different datum in the map > projection and in the layers projection when serving a wms service? > Does MS apply datum transformations? If not, can it be done somehow without > converting the layers? > > In my case I'm working with vector data, and have defined a map projection > using "init=epsg:code" syntax. Then at the layer level I use the same syntax > to declare the projection the data is in. > And finally I want my WMS service to be published in 3 different datum and > for that I advertise several epsg codes in the "wms_srs" metadata entry. > > I'm noticing a shift in images produced by MS that indicate a datum shift is > not being applied. What can be done? Duarte, In general MapServer will apply a datum shift if you have datum definitions for the source and destination coordinate system. But often the definitions in the EPSG init file lack datum shift info and so nothing is done. So, start by examining the PROJ.4 definitions in the "epsg" init file and see if they have +towgs84= or +nadgrids directives. You might also want to skim the material in the PROJ.4 FAQ about datums. 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 | President OSGeo, http://osgeo.org From dncarreira at gmail.com Sat Apr 5 14:55:39 2008 From: dncarreira at gmail.com (DNC) Date: Sat, 5 Apr 2008 14:55:39 -0700 (PDT) Subject: [MAPSERVER-USERS] how mapserver handles different datum projections In-Reply-To: <47F7E2C8.8070809@pobox.com> References: <16517601.post@talk.nabble.com> <47F7E2C8.8070809@pobox.com> Message-ID: <16518435.post@talk.nabble.com> Frank, Is there a way to add the towgs84 definition in the map file? When I try that MS gives an error: msProcessProjection(): Projection library error. no options found in 'init' file The projection definition is this: 'init=epsg:27492 towgs84=-223.237,110.193,36.649' Thanks, Duarte Frank Warmerdam-2 wrote: > > DNC wrote: >> Hi all. >> >> Can anyone clarify how mapserver handles different datum in the map >> projection and in the layers projection when serving a wms service? >> Does MS apply datum transformations? If not, can it be done somehow >> without >> converting the layers? >> >> In my case I'm working with vector data, and have defined a map >> projection >> using "init=epsg:code" syntax. Then at the layer level I use the same >> syntax >> to declare the projection the data is in. >> And finally I want my WMS service to be published in 3 different datum >> and >> for that I advertise several epsg codes in the "wms_srs" metadata entry. >> >> I'm noticing a shift in images produced by MS that indicate a datum shift >> is >> not being applied. What can be done? > > Duarte, > > In general MapServer will apply a datum shift if you have datum > definitions > for the source and destination coordinate system. But often the > definitions > in the EPSG init file lack datum shift info and so nothing is done. > > So, start by examining the PROJ.4 definitions in the "epsg" init file and > see if they have +towgs84= or +nadgrids directives. You might also want > to > skim the material in the PROJ.4 FAQ about datums. > > 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 | President OSGeo, http://osgeo.org > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/how-mapserver-handles-different-datum-projections-tp16517601p16518435.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thy at 42.dk Sat Apr 5 15:02:00 2008 From: thy at 42.dk (Kristian Thy) Date: Sun, 6 Apr 2008 00:02:00 +0200 Subject: [MAPSERVER-USERS] how mapserver handles different datum projections In-Reply-To: <16518435.post@talk.nabble.com> References: <16517601.post@talk.nabble.com> <47F7E2C8.8070809@pobox.com> <16518435.post@talk.nabble.com> Message-ID: <20080405220200.GK18018@42.dk> On Sat, Apr 05, DNC wrote: > The projection definition is this: > 'init=epsg:27492 towgs84=-223.237,110.193,36.649' You can either specify the EPSG shorthand or the entire definition. So you could do something like this: '+proj=tmerc +lat_0=39.66666666666666 +lon_0=-8.131906111111112 +k=1.000000 +x_0=180.598 +y_0=-86.98999999999999 +ellps=intl +units=m +towgs84=-223.237,110.193,36.649 +no_defs no_defs <>' (All on one line, probably.) \\kristian -- ... et nemo ex vobis interrogat me: ?Quo vadis?? From dncarreira at gmail.com Sat Apr 5 15:35:41 2008 From: dncarreira at gmail.com (DNC) Date: Sat, 5 Apr 2008 15:35:41 -0700 (PDT) Subject: [MAPSERVER-USERS] how mapserver handles different datum projections In-Reply-To: <20080405220200.GK18018@42.dk> References: <16517601.post@talk.nabble.com> <47F7E2C8.8070809@pobox.com> <16518435.post@talk.nabble.com> <20080405220200.GK18018@42.dk> Message-ID: <16518936.post@talk.nabble.com> Kristian, That did the trick! I only wish we could use 'init=epsg' and add to it what we need in the map file... I ended up changing the epsg file adding the +towgs84 parameters. Thanks. Duarte Kristian Thy wrote: > > On Sat, Apr 05, DNC wrote: >> The projection definition is this: >> 'init=epsg:27492 towgs84=-223.237,110.193,36.649' > > You can either specify the EPSG shorthand or the entire definition. So > you could do something like this: > > '+proj=tmerc +lat_0=39.66666666666666 +lon_0=-8.131906111111112 > +k=1.000000 +x_0=180.598 +y_0=-86.98999999999999 +ellps=intl +units=m > +towgs84=-223.237,110.193,36.649 +no_defs no_defs <>' > > (All on one line, probably.) > > \\kristian > -- > ... et nemo ex vobis interrogat me: ?Quo vadis?? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/how-mapserver-handles-different-datum-projections-tp16517601p16518936.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nickthegreek_ at hotmail.com Sat Apr 5 16:38:13 2008 From: nickthegreek_ at hotmail.com (nickthegreek-) Date: Sat, 5 Apr 2008 16:38:13 -0700 (PDT) Subject: [MAPSERVER-USERS] php database mapfile Message-ID: <16519414.post@talk.nabble.com> hello.. what i wanna know is.. i have in my application a box checked box which say e,g rivers.. when someone ticks it.. then in the map apperas the rives..what i mean is ..in php code.. the status in the rivers layer is converting in ON and display..from the code below if (preg_match("/cities/", $layers)){ $cities = "CHECKED"; $this_layer = $map->getLayerByName('europe cities'); $this_layer->set('status', MS_ON); } else { $cities = ""; $this_layer = $map->getLayerByName('europe cities'); $this_layer->set('status', MS_OFF); } what i wanna know is..i have down drop list.. i do a click and i have manu with all countries..if i made a select and i the menu a country ..how could i change the data in the mafile? i mean data "the_geom from table where name=greece" in a way like the above i wrote ...?? thanks -- View this message in context: http://www.nabble.com/php-database-mapfile-tp16519414p16519414.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pcreso at pcreso.com Sat Apr 5 17:38:09 2008 From: pcreso at pcreso.com (Brent Wood) Date: Sat, 5 Apr 2008 17:38:09 -0700 (PDT) Subject: [MAPSERVER-USERS] php database mapfile In-Reply-To: <16519414.post@talk.nabble.com> Message-ID: <434814.63790.qm@web33201.mail.mud.yahoo.com> --- nickthegreek- <nickthegreek_ at hotmail.com> wrote: You can use variables & classes as one way, I've done that with variables in a PostGIS SQL string. Your mapfile would have someyhing like: LAYER countries STATUS ON ... CLASS EXPRESSION country='%country%' ... You need to pass the value called country & set it to the value returned from your map query. As long as no country values are null in your data, nothing gets plotted in that class unless there is a match. If there is, this class gets added to the map, using whatever symbology you defined for that class. This enables similar functionality without mapscript. For info on using variables like this, see http://mapserver.gis.umn.edu/docs/reference/mapfile/variable_sub > > hello.. what i wanna know is.. i have in my application a box checked box > which say e,g rivers.. > > when someone ticks it.. then in the map apperas the rives..what i mean is > ..in php code.. the status in the rivers layer is converting in ON and > display..from the code below > > > if (preg_match("/cities/", $layers)){ > > $cities = "CHECKED"; > $this_layer = $map->getLayerByName('europe cities'); > $this_layer->set('status', MS_ON); > > > } > > else { > $cities = ""; > $this_layer = $map->getLayerByName('europe cities'); > $this_layer->set('status', MS_OFF); > } > > what i wanna know is..i have down drop list.. i do a click and i have manu > with all countries..if i made a select and i the menu a country ..how could > i change the data in the mafile? i mean > data "the_geom from table where name=greece" in a way like the above i wrote > ...?? > > > thanks > > -- > View this message in context: > http://www.nabble.com/php-database-mapfile-tp16519414p16519414.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From richard.greenwood at gmail.com Sun Apr 6 08:46:33 2008 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Sun, 6 Apr 2008 09:46:33 -0600 Subject: [mapserver-users] Labels at the layer level Message-ID: <ae9185aa0804060846r438b08frd3f16b556a06a39c@mail.gmail.com> I have many layers that have multiple classes. I frequently want to label all the classes in the same way. Being lazy, and not wanting to paste a lengthy label definition into each class, I usually create a second layer with a single class for the labels. However this forces MapServer to open and read the layer twice, which I think is a bit of a performance hit over reading only once to render and label it. Is this generally correct? In my mind it would be ideal to have labels available at both the layer level and the class level. Any thoughts? Does anybody have a more elegant solution? Thanks, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From hobu.inc at gmail.com Sun Apr 6 11:11:27 2008 From: hobu.inc at gmail.com (Howard Butler) Date: Sun, 6 Apr 2008 13:11:27 -0500 Subject: [mapserver-users] Labels at the layer level In-Reply-To: <ae9185aa0804060846r438b08frd3f16b556a06a39c@mail.gmail.com> References: <ae9185aa0804060846r438b08frd3f16b556a06a39c@mail.gmail.com> Message-ID: <7E62DF5A-BB90-4C4A-A2F3-23A6F57D7175@gmail.com> On Apr 6, 2008, at 10:46 AM, Richard Greenwood wrote: > I have many layers that have multiple classes. I frequently want to > label all the classes in the same way. Being lazy, and not wanting to > paste a lengthy label definition into each class, I usually create a > second layer with a single class for the labels. However this forces > MapServer to open and read the layer twice, which I think is a bit of > a performance hit over reading only once to render and label it. Is > this generally correct? > > In my mind it would be ideal to have labels available at both the > layer level and the class level. Any thoughts? Does anybody have a > more elegant solution? I don't have an elegant solution, but one thing I've been wishing for is a way to serialize the label cache entirely - out to a shapefile or some other data source - and provide a way for MapServer to use the serialized label cache. There would be some obvious downsides to that approach like it getting out of sync and being highly sensitive to certain layers being on and off, but even if the serialized cache were used for pre-computed label positions and you let MapServer then go handle the collisions, I think it could be faster and certainly more repeatable. On more than a few occasions, I've generated centroids of things and used them for labeling county polygons, for example. For line work, it's difficult to do something like that without a lot of hand editing of data. I think serialized label cache would be a more repeatable way to do it and allow us to take advantage of MapServer's label positioning engine. So, it doesn't really help, but maybe throws another idea out there :) Howard From nickthegreek_ at hotmail.com Sun Apr 6 14:24:54 2008 From: nickthegreek_ at hotmail.com (nickthegreek-) Date: Sun, 6 Apr 2008 14:24:54 -0700 (PDT) Subject: [MAPSERVER-USERS] php database mapfile In-Reply-To: <16519414.post@talk.nabble.com> References: <16519414.post@talk.nabble.com> Message-ID: <16529988.post@talk.nabble.com> didn't help me too much that :/ what i mean is i have map who takes the data from a database in the database there is a column "name" my data are be shown with LAYER NAME "country" TYPE POLYGON STATUS ON CONNECTIONTYPE postgis CONNECTION "host=localhost dbname=postgis user=postgres password=d3klw7 port=5432" DATA "the_geom from europe_country using unique gid using srid=-1" LABELITEM "name" what i wanna is.. i have a menu who takes all the countries from the column name... if i select a country eg.greece how i could change the statement in the mapfile DATA "the_geom from europe_country using unique gid using srid=-1" with the statement DATA "the_geom from europe_country where name=greece using unique gid using srid=-1" so to be shown only greece??? pls help me..i need to finish my diploma with taht eg..i knnow if we wanna to change the status of a layer we use that $this_layer = $map->getLayerByName('europe cities'); $this_layer->set('status', MS_ON); sth similar like the above to change the statement of data? many thanks again -- View this message in context: http://www.nabble.com/php-database-mapfile-tp16519414p16529988.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Kyle.Wilcox at noaa.gov Sun Apr 6 14:38:11 2008 From: Kyle.Wilcox at noaa.gov (Kyle Wilcox) Date: Sun, 06 Apr 2008 17:38:11 -0400 Subject: [MAPSERVER-USERS] php database mapfile In-Reply-To: <16529988.post@talk.nabble.com> References: <16519414.post@talk.nabble.com> <16529988.post@talk.nabble.com> Message-ID: <47F942C3.7050406@Noaa.gov> http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/layerobj I believe you are looking for the 'setFilter' function. $layer_object->setFilter("name='greece'"); Anything you put in the filter is like specifying it in a SQL WHERE. This is the same as doing: SELECT the_geom FROM europe_country WHERE name='greece'; You can specify more than one constraint in the filter, such as: $layer_object->setFilter("name='greece' AND i_should_have_searched_google=TRUE"); nickthegreek- wrote: > didn't help me too much that :/ what i mean is > > i have map who takes the data from a database > > in the database there is a column "name" > > my data are be shown with > > LAYER > NAME "country" > TYPE POLYGON > STATUS ON > CONNECTIONTYPE postgis > CONNECTION "host=localhost dbname=postgis user=postgres > password=d3klw7 port=5432" > DATA "the_geom from europe_country using unique gid using > srid=-1" > LABELITEM "name" > > what i wanna is.. i have a menu who takes all the countries from the column > name... > if i select a country > > eg.greece > > how i could change the statement in the mapfile > DATA "the_geom from europe_country using unique gid using srid=-1" > with the statement > DATA "the_geom from europe_country where name=greece using unique gid using > srid=-1" so to be shown only greece??? pls help me..i need to finish my > diploma with taht > > > eg..i knnow if we wanna to change the status of a layer we use that > $this_layer = $map->getLayerByName('europe cities'); > $this_layer->set('status', MS_ON); > > sth similar like the above to change the statement of data? > many thanks again > -- Kyle Wilcox NOAA Chesapeake Bay Office 410 Severn Avenue Suite 107A Annapolis, MD 21403 office: (410) 295-3151 Kyle.Wilcox at noaa.gov A: It takes over twice as long to understand the conversation. Q: What's wrong with top-posting? A: Top-posting. Q: What's the worst thing about plain text email discussions? From nickthegreek_ at hotmail.com Sun Apr 6 18:13:03 2008 From: nickthegreek_ at hotmail.com (nickthegreek-) Date: Sun, 6 Apr 2008 18:13:03 -0700 (PDT) Subject: [MAPSERVER-USERS] php database mapfile In-Reply-To: <47F942C3.7050406@Noaa.gov> References: <16519414.post@talk.nabble.com> <16529988.post@talk.nabble.com> <47F942C3.7050406@Noaa.gov> Message-ID: <16532024.post@talk.nabble.com> kyle i tried this $this_layer1->setFilter("name='England''"); $this_layer1->set("data","the_geom from ( select gid, the_geom from europe_country where name=".getFilter(name).") as foo using unique gid using srid=-1"); how would i take the parameter whick is int the filter? name? -- View this message in context: http://www.nabble.com/php-database-mapfile-tp16519414p16532024.html Sent from the Mapserver - User mailing list archive at Nabble.com. From group.ritesh at gmail.com Sun Apr 6 23:44:30 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Sun, 6 Apr 2008 23:44:30 -0700 (PDT) Subject: [MAPSERVER-USERS] Browser Issue : Route Layer Transparency Message-ID: <16534574.post@talk.nabble.com> Dear Developers, I use ka-map routing to show directions over a map. I made the route layer transparent by setting transparency in the map file. Now, I can see the route layer transparent in Firefox and IE 7. But, IE 6 is not showing route layer on the map when I set transparency. Keeping transparency opaque, IE 6 renders it beautifully. Is there any info on web where I can understand browser-independent mapserver dev code? Your advices/suggestions will be really appreciated. Warm Regards, Ambastha -- View this message in context: http://www.nabble.com/Browser-Issue-%3A-Route-Layer-Transparency-tp16534574p16534574.html Sent from the Mapserver - User mailing list archive at Nabble.com. From gma.sigis at gmail.com Mon Apr 7 03:08:33 2008 From: gma.sigis at gmail.com (=?ISO-8859-1?Q?Gregorio_Mu=F1oz_Avila?=) Date: Mon, 7 Apr 2008 12:08:33 +0200 Subject: [mapserver-users] MapServer + Fusion Message-ID: <464d72390804070308m4628a27av5abdb6ea35690c49@mail.gmail.com> Does anyone know how to integrate Fusion in Mapserver? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080407/7e0e73da/attachment.htm> From yosoycore at gmail.com Mon Apr 7 03:26:19 2008 From: yosoycore at gmail.com (Emilio Ponce) Date: Mon, 7 Apr 2008 12:26:19 +0200 Subject: [mapserver-users] MapServer + Fusion In-Reply-To: <464d72390804070308m4628a27av5abdb6ea35690c49@mail.gmail.com> References: <464d72390804070308m4628a27av5abdb6ea35690c49@mail.gmail.com> Message-ID: <9c2e09570804070326x7dc98049l24e953cdc77cd1df@mail.gmail.com> Hi Gregorio, I don't know anything about Fusion, but recently i've read this article, maybe it can help you (en espa?ol, no creo que sea un problema): http://www.hablandodesigs.com/2008/03/25/probando-fusion-con-mapserver/ 2008/4/7 Gregorio Mu?oz Avila <gma.sigis at gmail.com>: > Does anyone know how to integrate Fusion in Mapserver? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Emilio -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080407/ef0b2fef/attachment.htm> From simos at geo.aegean.gr Mon Apr 7 04:17:42 2008 From: simos at geo.aegean.gr (Simos Dimitrios) Date: Mon, 7 Apr 2008 14:17:42 +0300 Subject: [mapserver-users] Imagemap problem: <map> tag is empty with php mapscript Message-ID: <BB69AE4E250770499BF0218C82A2749B39EB8A381A@hermes.aegean.gr> Hello list. I'm trying to insert an imagemap into one map image I'm creating. The header, body, and footer templates are written as described in various mails. Although the cgi call returns the html file with the <map><...></map> stuff inside, the same does not work with php/mapscript, as the <area...> tags are not there. The php/mapscript code is as follows: $imagemap = $GLOBALS["imagemap"]; $img = $imagemap->draw(); $img->saveImage("c:/ms4w/Apache/htdocs/naseismic/eq_imagemap.html", $imagemap); ... echo "<IMG ID = \"MAINMAP\" SRC = '" .$GLOBALS['url']. "' BORDER = 0 WIDTH = $nWidth HEIGHT = $nHeight NAME = 'MAINMAP' usemap = '#eq_imagemap'>"; It seems that I'm doing sth wrong, or there is a bug in the Mapserver 5 version that I have. Has someone any idea, please? I have read many mails sent to the mapserver list, and have tried lots of things, but nothing happens. Dimitrios -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080407/139e84b0/attachment.htm> From helpwithdeegree at gmail.com Mon Apr 7 04:55:49 2008 From: helpwithdeegree at gmail.com (deegree deegree) Date: Mon, 7 Apr 2008 13:55:49 +0200 Subject: [mapserver-users] Problems Creating the mapping application Message-ID: <bc32cb590804070455t49d14325ve677ee6ff4d3c060@mail.gmail.com> Hi, I have this mistake when I trying toexecute my application: getNumeric(): Incorrect data type. This is my code: HTML http://pastebin.com/m15932250 http://pastebin.com/m2f0935c7 MAP http://pastebin.com/m300eabda Thanks!!! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080407/3ef694bc/attachment.htm> From Tim.Nolte at ipcswirelessinc.com Mon Apr 7 05:35:55 2008 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Mon, 7 Apr 2008 08:35:55 -0400 Subject: [mapserver-users] MapServer + Fusion In-Reply-To: <464d72390804070308m4628a27av5abdb6ea35690c49@mail.gmail.com> References: <464d72390804070308m4628a27av5abdb6ea35690c49@mail.gmail.com> Message-ID: <1532456BD081F146A176FB6929E6B0D1C691DA@KTWMAIL.ilpcs.com> Greg, I'm assuming you're talking about MapGuide Fusion. I'm also looking to move to Fusion from Chameleon. Here is the info I got when I posed this question to the MapGuide list. Hope this gets you started in the right direction. -----Original Message----- From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Paul Spencer Sent: Wednesday, March 05, 2008 10:04 AM To: MapGuide Users Mail List Subject: Re: [mapguide-users] Fusion Framework & UMN MapServer Hi Tim, it can be but there is currently no official open source version of fusion that works with mapserver. We are currently in the process of moving fusion to osgeo servers at which time a community can grow around both mapguide and mapserver back-ends. That being said, you can edit config.json in fusion to set the appropriate values for your mapserver install and set up a map in the application definition using MapServer as the type and give a MapFile path in the extension ... something like: <MapSet xsi:type="MapSetType"> <MapGroup id="gmap" xsi:type="MapType"> <Map xsi:type="MapLayerType"> <Type>MapServer</Type> <SingleTile>true</SingleTile> <Extension> <MapFile>/ms4w/apps/gmap/htdocs/gmap75.map</MapFile> </Extension> </Map> </MapGroup> </MapSet> and then change the MapWidget tag to point to the id of the map group (gmap in the above example) and it should all just work. Note that mapserver support requires that you have php_mapscript and a valid session.save_path set up in php.ini Also, the name of the php_mapscript module is hardcoded in fusion/ MapServer/php/Common.php so if you want something other than: $szPHPMapScriptModule = 'php_mapscript.'.PHP_SHLIB_SUFFIX; you will need to manually change it there for now. Cheers Paul ---- 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 Gregorio Mu?oz Avila Sent: Monday, April 07, 2008 6:09 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] MapServer + Fusion Does anyone know how to integrate Fusion in Mapserver? From pspencer at dmsolutions.ca Mon Apr 7 05:23:40 2008 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Mon, 7 Apr 2008 08:23:40 -0400 Subject: [mapserver-users] MapServer + Fusion In-Reply-To: <464d72390804070308m4628a27av5abdb6ea35690c49@mail.gmail.com> References: <464d72390804070308m4628a27av5abdb6ea35690c49@mail.gmail.com> Message-ID: <20E26E52-F8E6-4015-8D86-26FAD49AE348@dmsolutions.ca> Hi, there is a simple tutorial at: http://trac.osgeo.org/fusion/wiki/MapServerTutorial Cheers Paul On 7-Apr-08, at 6:08 AM, Gregorio Mu?oz Avila wrote: > Does anyone know how to integrate Fusion in Mapserver? > _______________________________________________ > 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://www.dmsolutions.ca/ From stefan.schwarzer at grid.unep.ch Mon Apr 7 05:29:59 2008 From: stefan.schwarzer at grid.unep.ch (Stefan Schwarzer) Date: Mon, 7 Apr 2008 14:29:59 +0200 Subject: [mapserver-users] Mapserver & MacPorts - Installation Instructions Message-ID: <13B19065-8FF9-4970-906D-B82D177762F8@grid.unep.ch> Hi there, is anybody using mapserver with installed macports libs? I would like to know what libs I have to install to run correctly mapserver? I have these so far, but I don't really know if this is correct and exhaustive: sudo port install jpeg sudo port install libpng sudo port install flex sudo port install bison sudo port install readline sudo port install lib sudo port install curl sudo port install proj sudo port install geos sudo port install antigraingeometry Thanks for any advice, Stef ____________________________________________________________________ Stefan Schwarzer Lean Back and Relax - Enjoy some Nature Photography http://photoblog.la-famille-schwarzer.de Appetite for Global Data? UNEP GEO Data Portal: http://geodata.grid.unep.ch ____________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080407/e154a71d/attachment.htm> From Kyle.Wilcox at noaa.gov Mon Apr 7 06:56:35 2008 From: Kyle.Wilcox at noaa.gov (Kyle Wilcox) Date: Mon, 07 Apr 2008 09:56:35 -0400 Subject: [MAPSERVER-USERS] php database mapfile In-Reply-To: <16532024.post@talk.nabble.com> References: <16519414.post@talk.nabble.com> <16529988.post@talk.nabble.com> <47F942C3.7050406@Noaa.gov> <16532024.post@talk.nabble.com> Message-ID: <47FA2813.1080003@Noaa.gov> You misunderstand what the FILTER tag in mapserver does for PostGIS queries. Read up about it and you will figure it out. But if you are already using set("data",...), why not just specify the entire query? $this_layer->set("data","the_geom from ( SELECT gid, the_geom FROM europe_country WHERE name='England') AS foo USING UNIQUE gid USING srid=-1"); nickthegreek- wrote: > kyle i tried this > > $this_layer1->setFilter("name='England''"); > > $this_layer1->set("data","the_geom from ( select gid, the_geom from > europe_country where name=".getFilter(name).") as foo using unique gid using > srid=-1"); > > > how would i take the parameter whick is int the filter? name? -- Kyle Wilcox NOAA Chesapeake Bay Office 410 Severn Avenue Suite 107A Annapolis, MD 21403 office: (410) 295-3151 Kyle.Wilcox at noaa.gov A: It takes over twice as long to understand the conversation. Q: What's wrong with top-posting? A: Top-posting. Q: What's the worst thing about plain text email discussions? From jlacroix at mapgears.com Mon Apr 7 07:27:18 2008 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Mon, 07 Apr 2008 10:27:18 -0400 Subject: [mapserver-users] Mapserver & PHP scripting In-Reply-To: <125273.31887.qm@web33204.mail.mud.yahoo.com> References: <125273.31887.qm@web33204.mail.mud.yahoo.com> Message-ID: <47FA2F46.1050102@mapgears.com> Hi, You will have to load the PHP parser to execute your PHP code. This cannot be done by MapServer CGI. I don't think you could redirect your output to the PHP parser directly via Apache either. What you could do is hit a PHP page that would act as a proxy for your CGI application. Your PHP code would then be executed without any problem. Here's an example that include your MapServer CGI output and execute it. You can access it directly with the exact same arguments that you use with your CGI request: <?php // You need // allow_url_include On // in your php.ini // Re-Build your CGI URL from the PHP URL foreach($_REQUEST as $szKey => $szValue) { $szCGIParams .= "$szKey=$szValue&"; } include("http://localhost/cgi-bin/mapserv.exe?".$szCGIParams); ?> Julien Brent Wood wrote: > Hi, > > Quick question, I'd like to add some php functionality to a simple CGI > mapserver application with an html template file. > > I'd much prefer not to rewrite it in mapscript, everything else works perfectly > & the PHP I want to use is not for the mapping side of things, but to provide > database driven pick lists & data extract tables etc. > > The mapserver CGI output recieved by a browser, & viewed with "view source", > includes the PHP code in the html template, but it is not parsed as php. > > So my question is, is there a way to have the html output generated by CGI > mapserver passed through php & properly invoked? Presumeably by apache prior to > sending it on to the client. > > > Thanks, > > Brent Wood > _______________________________________________ > 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 jcleary at email.unc.edu Mon Apr 7 08:15:53 2008 From: jcleary at email.unc.edu (Jesse Cleary) Date: Mon, 07 Apr 2008 11:15:53 -0400 Subject: [mapserver-users] Version problems with overviews Message-ID: <47FA3AA9.6020100@email.unc.edu> Hi folks Apologies for the re-post. This went out initially prior to our feedback loop last week and I thought it might have gotten lost in the flood. Or maybe I just can't take a hint... --- I'm dealing with a server with several versions of MapServer on it. We are serving PNGs from the filesystem via CGI and working to speed up performance. I've been trying gdaladdo (-r nearest) to create overviews for each image. Mainly this works great and does give us the speed increase I'm after. However, some of the MS versions on this box balk once I create an OVR file on any given PNG. Upon calling the PNG in question, I get a 500 "Internal Server error" error from Apache (2.0.46). So the exact same CGI call works without an OVR file and gives me the 500 error with an OVR file present. The Apache error logs don't contain a record of the 500 error. This is an issue because several existing web service hit the problematic (and newer) version of MapServer and I don't want to roll back to an older version which might have its own performance costs. I'm a bit baffled - anyone else seen this kind of error with overview files? I'd like some possibilities before I go back to the sys admin of the machine in question. Sorry I can't provide more details, but it is not my box. Thanks so much folks - apologies for the sketchy details... Jesse This version of MapServer always works, *.OVR present or not: MapServer version 4.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE This version of MapServer only works with no *.OVR file present: MapServer version 4.4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -- Jesse A. Cleary Department of Marine Sciences UNC Chapel Hill 334 Chapman Hall (919) 962-4987 jcleary at email.unc.edu From yosoycore at gmail.com Mon Apr 7 08:46:20 2008 From: yosoycore at gmail.com (Emilio Ponce) Date: Mon, 7 Apr 2008 17:46:20 +0200 Subject: [mapserver-users] Coding/Charset problem in mapfile definition Message-ID: <9c2e09570804070846h16d4bfdah899a58ad394f7fab@mail.gmail.com> Hi Everyone, I have a coding problem rendering a label with my mapfile (it extracts the information from a PostGIS database coded as UTF-8). The text is in catalan so has special characters as: ? ? ? ? ... I asked here and some users gave me very useful information, and now this is the situation: I've set ENCODING "UTF-8" in my label definition, and "options='-c client_encoding=LATIN1'" in my CONNECTION object. Now most coding issues are solved, but not the '?' -open accent-, that's wrong. Does anyone know what can I do? Thanks a lot! -- Emilio -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080407/12d4b0ec/attachment.htm> From jcleary at email.unc.edu Mon Apr 7 08:51:56 2008 From: jcleary at email.unc.edu (Jesse Cleary) Date: Mon, 07 Apr 2008 11:51:56 -0400 Subject: [mapserver-users] Version problems with overviews In-Reply-To: <47FA3AA9.6020100@email.unc.edu> References: <47FA3AA9.6020100@email.unc.edu> Message-ID: <47FA431C.6070708@email.unc.edu> Hi folks Just chatted with Frank W on IRC and he suggested that the issue is likely one with GDAL. Turns out our GDAL version is "antique" so that will be a first place to upgrade. Will try to reproduce the issue outside of MapServer to confirm... Jesse Jesse Cleary wrote: > Hi folks > > Apologies for the re-post. This went out initially prior to our > feedback loop last week and I thought it might have gotten lost in the > flood. Or maybe I just can't take a hint... > > --- > > I'm dealing with a server with several versions of MapServer on it. > We are serving PNGs from the filesystem via CGI and working to speed > up performance. I've been trying gdaladdo (-r nearest) to create > overviews for each image. Mainly this works great and does give us > the speed increase I'm after. > > However, some of the MS versions on this box balk once I create an OVR > file on any given PNG. Upon calling the PNG in question, I get a 500 > "Internal Server error" error from Apache (2.0.46). So the exact same > CGI call works without an OVR file and gives me the 500 error with an > OVR file present. The Apache error logs don't contain a record of the > 500 error. This is an issue because several existing web service hit > the problematic (and newer) version of MapServer and I don't want to > roll back to an older version which might have its own performance costs. > > I'm a bit baffled - anyone else seen this kind of error with overview > files? I'd like some possibilities before I go back to the sys admin > of the machine in question. Sorry I can't provide more details, but > it is not my box. Thanks so much folks - apologies for the sketchy > details... > > Jesse > > > This version of MapServer always works, *.OVR present or not: > MapServer version 4.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE > > > This version of MapServer only works with no *.OVR file present: > MapServer version 4.4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF > SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT > INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > -- Jesse A. Cleary Department of Marine Sciences UNC Chapel Hill 334 Chapman Hall (919) 962-4987 jcleary at email.unc.edu From ltrevinoh at gmail.com Mon Apr 7 10:16:39 2008 From: ltrevinoh at gmail.com (=?ISO-8859-1?Q?Luis_Trevi=F1o?=) Date: Mon, 7 Apr 2008 12:16:39 -0500 Subject: [mapserver-users] Making border thick on selecting shape... In-Reply-To: <ebd91ef20804050224n3d4b2fb1g9ab4e0a838858f46@mail.gmail.com> References: <ebd91ef20804050224n3d4b2fb1g9ab4e0a838858f46@mail.gmail.com> Message-ID: <d7ba910a0804071016n2c91835aned3448540f63bb57@mail.gmail.com> you can try something like this: LAYER NAME "layername" TYPE polygon ... CLASS STYLE COLOR 255 255 0 OUTLINECOLOR 255 0 0 WIDTH 4 END END END regards, Luis 2008/4/5, Atul Dravid <atul.dravid at iworktech.com>: > Dear All, > > I am developing mapserver based application on Windows platform. The map is > rendered properly as per the tutorial. Also I can also capture the shape in > the layer on which user is clicking the mouse. I would like the border of > this shape to be converted to Red color and with more thickness. > > Anyone has done this ? > > Thanks in advance, > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From pianosnake at gmail.com Mon Apr 7 12:57:57 2008 From: pianosnake at gmail.com (Florin A.) Date: Mon, 7 Apr 2008 13:57:57 -0600 Subject: [mapserver-users] compiling on windows Message-ID: <1d674ec80804071257x1e0bc217na5f54b039a4d79df@mail.gmail.com> Hello, I'm trying to compile MapServer on Windows Server 2003. I followed all the instructions on http://mapserver.gis.umn.edu/docs/howto/win32_compiling and I'm stuck with regex errors. The errors are the same as this post http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg15996.html <http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg15996.html> I'm compiling with nmake from Microsoft Visual Studio 8 I also tried compiling with the buildkit from http://download.osgeo.org/buildkit/ and got the same errors. regex.c C:\projects\regex-0.12\regex.c(768) : warning C4018: '<' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(774) : warning C4018: '<' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1123) : warning C4018: '<' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1189) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1204) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1297) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1322) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1336) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1346) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1358) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1364) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1372) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1608) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1638) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1683) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1698) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1726) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1813) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1926) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1932) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1937) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1941) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1945) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1949) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1953) : warning C4018: '>' : signed/unsigned mismatch I tried the correction mentioned for the regex.c file: //extern void printchar (); void printchar( int i ) {} This made no difference. I also tried with the win32 regex distribution from http://people.delphiforums.com/gjc/gnu_regex.exe and again, exactly the same errors. Has anybody else encountered this regex error? Shouldn't nmake work with no problems on the buildkit ? Thanks, Florin -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080407/168b1779/attachment.htm> From warmerdam at pobox.com Mon Apr 7 13:03:14 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 07 Apr 2008 16:03:14 -0400 Subject: [mapserver-users] compiling on windows In-Reply-To: <1d674ec80804071257x1e0bc217na5f54b039a4d79df@mail.gmail.com> References: <1d674ec80804071257x1e0bc217na5f54b039a4d79df@mail.gmail.com> Message-ID: <47FA7E02.4000707@pobox.com> Florin A. wrote: > Hello, > > I'm trying to compile MapServer on Windows Server 2003. I followed all > the instructions on > http://mapserver.gis.umn.edu/docs/howto/win32_compiling and I'm stuck > with regex errors. The errors are the same as this post > http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg15996.html > > I'm compiling with nmake from Microsoft Visual Studio 8 > > I also tried compiling with the buildkit from > http://download.osgeo.org/buildkit/ and got the same errors. > > regex.c > C:\projects\regex-0.12\regex.c(768) : warning C4018: '<' : > signed/unsigned mismatch ... > C:\projects\regex-0.12\regex.c(1953) : warning C4018: '>' : > signed/unsigned mismatch > > > I tried the correction mentioned for the regex.c file: > > //extern void printchar (); > void printchar( int i ) {} > > > This made no difference. I also tried with the win32 regex distribution > from http://people.delphiforums.com/gjc/gnu_regex.exe and again, exactly > the same errors. > > Has anybody else encountered this regex error? Shouldn't nmake work > with no problems on the buildkit ? Florin, The above are just warnings. I would encourage you to just ignore them and proceed. 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 | President OSGeo, http://osgeo.org From pianosnake at gmail.com Mon Apr 7 13:54:12 2008 From: pianosnake at gmail.com (Florin A.) Date: Mon, 7 Apr 2008 14:54:12 -0600 Subject: [mapserver-users] compiling on windows In-Reply-To: <47FA7E02.4000707@pobox.com> References: <1d674ec80804071257x1e0bc217na5f54b039a4d79df@mail.gmail.com> <47FA7E02.4000707@pobox.com> Message-ID: <1d674ec80804071354o13ccdb02u5d34aa1717229602@mail.gmail.com> Hi Frank, I forgot the rest.... C:\projects\regex-0.12\regex.c(4079) : warning C4018: '>=' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(4110) : warning C4018: '<=' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(4123) : warning C4018: '<=' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(4293) : warning C4018: '>=' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(3771) : warning C4101: 'destination' : unreferenced local variable C:\projects\regex-0.12\regex.c(3918) : warning C4101: 'destination' : unreferenced local variable C:\projects\regex-0.12\regex.c(3971) : warning C4101: 'destination' : unreferenced local variable C:\projects\regex-0.12\regex.c(4110) : warning C4101: 'destination' : unreferenced local variable C:\projects\regex-0.12\regex.c(4123) : warning C4101: 'destination' : unreferenced local variable C:\projects\regex-0.12\regex.c(4876) : warning C4996: 'errcode' was declared deprecated C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\crtdefs.h(506) : see declaration of 'errcode' Message: 'This name was supported during some Whidbey pre-releases. Instead, use the standard name errno_t.' C:\projects\regex-0.12\regex.c(4876) : error C2081: 'preg' : name in formal parameter list illegal C:\projects\regex-0.12\regex.c(4876) : error C2081: 'errbuf' : name in formal parameter list illegal C:\projects\regex-0.12\regex.c(4876) : error C2081: 'errbuf_size' : name in formal parameter list illegal C:\projects\regex-0.12\regex.c(4877) : error C2055: expected formal parameter list, not a type list C:\projects\regex-0.12\regex.c(4877) : error C2082: redefinition of formal parameter 'errcode' C:\projects\regex-0.12\regex.c(4885) : warning C4996: 'errcode' was declared deprecated C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\crtdefs.h(506) : see declaration of 'errcode' Message: 'This name was supported during some Whidbey pre-releases. Instead, use the standard name errno_t.' C:\projects\regex-0.12\regex.c(4885) : error C2059: syntax error : 'type' C:\projects\regex-0.12\regex.c(4893) : error C2275: 'errcode' : illegal use of this type as an expression C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\crtdefs.h(506) : see declaration of 'errcode' C:\projects\regex-0.12\regex.c(4910) : warning C4996: 'strcpy' was declared deprecated Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRE CATE. See online help for details.' NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.EXE"' : return code '0x2' Stop. On Mon, Apr 7, 2008 at 2:03 PM, Frank Warmerdam <warmerdam at pobox.com> wrote: > Florin A. wrote: > > > Hello, > > > > I'm trying to compile MapServer on Windows Server 2003. I followed all > > the instructions on > > http://mapserver.gis.umn.edu/docs/howto/win32_compiling and I'm stuck > > with regex errors. The errors are the same as this post > > http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg15996.html > > I'm compiling with nmake from Microsoft Visual Studio 8 > > > > I also tried compiling with the buildkit from > > http://download.osgeo.org/buildkit/ and got the same errors. > > > > regex.c > > C:\projects\regex-0.12\regex.c(768) : warning C4018: '<' : > > signed/unsigned mismatch > > > ... > > > C:\projects\regex-0.12\regex.c(1953) : warning C4018: '>' : > > signed/unsigned mismatch > > > > > > I tried the correction mentioned for the regex.c file: > > > > //extern void printchar (); > > void printchar( int i ) {} > > > > > > This made no difference. I also tried with the win32 regex distribution > > from http://people.delphiforums.com/gjc/gnu_regex.exe and again, exactly > > the same errors. > > > > Has anybody else encountered this regex error? Shouldn't nmake work > > with no problems on the buildkit ? > > > > Florin, > > The above are just warnings. I would encourage you to just ignore them > and proceed. > > 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<http://pobox.com/%7Ewarmerdam> > and watch the world go round - Rush | President OSGeo, http://osgeo.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080407/1dccada7/attachment.htm> From szekerest at gmail.com Mon Apr 7 14:24:23 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Mon, 7 Apr 2008 23:24:23 +0200 Subject: [mapserver-users] compiling on windows In-Reply-To: <1d674ec80804071354o13ccdb02u5d34aa1717229602@mail.gmail.com> Message-ID: <47fa90fc.11355e0a.404e.33a0@mx.google.com> Hi, Have you been compiling using the MSVC_VER=1400 option? I confirm the current SVN version compiles on Win2003 for either the Win32 or the Win64 platforms. Here are the expected outputs of the Win32 and Win64 compilations: http://buildbot.osgeo.org:8504/builders/szekerest-vc80-full/builds/58/steps/ nmake/logs/stdio http://buildbot.osgeo.org:8504/builders/szekerest-vc80x64-full/builds/57/ste ps/nmake/logs/stdio Best regards, Tamas _____ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Florin A. Sent: Monday, April 07, 2008 10:54 PM To: Frank Warmerdam Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] compiling on windows Hi Frank, I forgot the rest.... C:\projects\regex-0.12\regex.c(4079) : warning C4018: '>=' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(4110) : warning C4018: '<=' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(4123) : warning C4018: '<=' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(4293) : warning C4018: '>=' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(3771) : warning C4101: 'destination' : unreferenced local variable C:\projects\regex-0.12\regex.c(3918) : warning C4101: 'destination' : unreferenced local variable C:\projects\regex-0.12\regex.c(3971) : warning C4101: 'destination' : unreferenced local variable C:\projects\regex-0.12\regex.c(4110) : warning C4101: 'destination' : unreferenced local variable C:\projects\regex-0.12\regex.c(4123) : warning C4101: 'destination' : unreferenced local variable C:\projects\regex-0.12\regex.c(4876) : warning C4996: 'errcode' was declared deprecated C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\crtdefs.h(506) : see declaration of 'errcode' Message: 'This name was supported during some Whidbey pre-releases. Instead, use the standard name errno_t.' C:\projects\regex-0.12\regex.c(4876) : error C2081: 'preg' : name in formal parameter list illegal C:\projects\regex-0.12\regex.c(4876) : error C2081: 'errbuf' : name in formal parameter list illegal C:\projects\regex-0.12\regex.c(4876) : error C2081: 'errbuf_size' : name in formal parameter list illegal C:\projects\regex-0.12\regex.c(4877) : error C2055: expected formal parameter list, not a type list C:\projects\regex-0.12\regex.c(4877) : error C2082: redefinition of formal parameter 'errcode' C:\projects\regex-0.12\regex.c(4885) : warning C4996: 'errcode' was declared deprecated C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\crtdefs.h(506) : see declaration of 'errcode' Message: 'This name was supported during some Whidbey pre-releases. Instead, use the standard name errno_t.' C:\projects\regex-0.12\regex.c(4885) : error C2059: syntax error : 'type' C:\projects\regex-0.12\regex.c(4893) : error C2275: 'errcode' : illegal use of this type as an expression C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\crtdefs.h(506) : see declaration of 'errcode' C:\projects\regex-0.12\regex.c(4910) : warning C4996: 'strcpy' was declared deprecated Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRE CATE. See online help for details.' NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.EXE"' : return code '0x2' Stop. On Mon, Apr 7, 2008 at 2:03 PM, Frank Warmerdam <warmerdam at pobox.com> wrote: Florin A. wrote: Hello, I'm trying to compile MapServer on Windows Server 2003. I followed all the instructions on http://mapserver.gis.umn.edu/docs/howto/win32_compiling and I'm stuck with regex errors. The errors are the same as this post http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg15996.html I'm compiling with nmake from Microsoft Visual Studio 8 I also tried compiling with the buildkit from http://download.osgeo.org/buildkit/ and got the same errors. regex.c C:\projects\regex-0.12\regex.c(768) : warning C4018: '<' : signed/unsigned mismatch ... C:\projects\regex-0.12\regex.c(1953) : warning C4018: '>' : signed/unsigned mismatch I tried the correction mentioned for the regex.c file: //extern void printchar (); void printchar( int i ) {} This made no difference. I also tried with the win32 regex distribution from http://people.delphiforums.com/gjc/gnu_regex.exe and again, exactly the same errors. Has anybody else encountered this regex error? Shouldn't nmake work with no problems on the buildkit ? Florin, The above are just warnings. I would encourage you to just ignore them and proceed. 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 <http://pobox.com/%7Ewarmerdam> and watch the world go round - Rush | President OSGeo, http://osgeo.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080407/52810165/attachment.htm> From pianosnake at gmail.com Mon Apr 7 14:29:04 2008 From: pianosnake at gmail.com (Florin A.) Date: Mon, 7 Apr 2008 15:29:04 -0600 Subject: [mapserver-users] compiling on windows In-Reply-To: <1d674ec80804071354o13ccdb02u5d34aa1717229602@mail.gmail.com> References: <1d674ec80804071257x1e0bc217na5f54b039a4d79df@mail.gmail.com> <47FA7E02.4000707@pobox.com> <1d674ec80804071354o13ccdb02u5d34aa1717229602@mail.gmail.com> Message-ID: <1d674ec80804071429l65800c8fs7d6d8e9727c07c7f@mail.gmail.com> The message says to disable deprecation. Deprecation is disabled in nmake.opt inside OPTFLAGS but then there is another OPTFLAGS that enables it again only a few lines later. The first one on line 92: OPTFLAGS = /nologo /Ox /MD $(WARNING_LEVEL) $(DEBUG) /EHsc /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE And then on line 98: OPTFLAGS = /nologo /Ox /MD $(WARNING_LEVEL) $(DEBUG) /EHsc I commented out the second one, and the errors now are: regex.c C:\projects\regex-0.12\regex.c(2834) : warning C4047: '=' : 'regoff_t *' differs in levels of indirection from 'int' C:\projects\regex-0.12\regex.c(4876) : warning C4996: 'errcode' was declared deprecated C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\crtdefs.h(506) : see declaration of 'errcode' Message: 'This name was supported during some Whidbey pre-releases. Instead, use the standard name errno_t.' C:\projects\regex-0.12\regex.c(4876) : error C2081: 'preg' : name in formal parameter list illegal C:\projects\regex-0.12\regex.c(4876) : error C2081: 'errbuf' : name in formal parameter list illegal C:\projects\regex-0.12\regex.c(4876) : error C2081: 'errbuf_size' : name in formal parameter list illegal C:\projects\regex-0.12\regex.c(4877) : error C2055: expected formal parameter list, not a type list C:\projects\regex-0.12\regex.c(4877) : error C2082: redefinition of formal parameter 'errcode' C:\projects\regex-0.12\regex.c(4885) : warning C4996: 'errcode' was declared deprecated C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\crtdefs.h(506) : see declaration of 'errcode' Message: 'This name was supported during some Whidbey pre-releases. Instead, use the standard name errno_t.' C:\projects\regex-0.12\regex.c(4885) : error C2059: syntax error : 'type' C:\projects\regex-0.12\regex.c(4893) : error C2275: 'errcode' : illegal use of this type as an expression C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\crtdefs.h(506) : see declaration of 'errcode' NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.EXE"' : return code '0x2' Stop. On Mon, Apr 7, 2008 at 2:54 PM, Florin A. <pianosnake at gmail.com> wrote: > Hi Frank, > > I forgot the rest.... > > C:\projects\regex-0.12\regex.c(4079) : warning C4018: '>=' : > signed/unsigned mismatch > C:\projects\regex-0.12\regex.c(4110) : warning C4018: '<=' : > signed/unsigned mismatch > C:\projects\regex-0.12\regex.c(4123) : warning C4018: '<=' : > signed/unsigned mismatch > C:\projects\regex-0.12\regex.c(4293) : warning C4018: '>=' : > signed/unsigned mismatch > C:\projects\regex-0.12\regex.c(3771) : warning C4101: 'destination' : > unreferenced local variable > C:\projects\regex-0.12\regex.c(3918) : warning C4101: 'destination' : > unreferenced local variable > C:\projects\regex-0.12\regex.c(3971) : warning C4101: 'destination' : > unreferenced local variable > C:\projects\regex-0.12\regex.c(4110) : warning C4101: 'destination' : > unreferenced local variable > C:\projects\regex-0.12\regex.c(4123) : warning C4101: 'destination' : > unreferenced local variable > C:\projects\regex-0.12\regex.c(4876) : warning C4996: 'errcode' was > declared deprecated > C:\Program Files\Microsoft Visual Studio > 8\VC\INCLUDE\crtdefs.h(506) : see declaration of 'errcode' > Message: 'This name was supported during some Whidbey > pre-releases. Instead, use the standard name errno_t.' > C:\projects\regex-0.12\regex.c(4876) : error C2081: 'preg' : name in > formal parameter list illegal > C:\projects\regex-0.12\regex.c(4876) : error C2081: 'errbuf' : name in > formal parameter list illegal > C:\projects\regex-0.12\regex.c(4876) : error C2081: 'errbuf_size' : name > in formal parameter list illegal > C:\projects\regex-0.12\regex.c(4877) : error C2055: expected formal > parameter list, not a type list > C:\projects\regex-0.12\regex.c(4877) : error C2082: redefinition of formal > parameter 'errcode' > C:\projects\regex-0.12\regex.c(4885) : warning C4996: 'errcode' was > declared deprecated > C:\Program Files\Microsoft Visual Studio > 8\VC\INCLUDE\crtdefs.h(506) : see declaration of 'errcode' > Message: 'This name was supported during some Whidbey > pre-releases. Instead, use the standard name errno_t.' > C:\projects\regex-0.12\regex.c(4885) : error C2059: syntax error : 'type' > C:\projects\regex-0.12\regex.c(4893) : error C2275: 'errcode' : illegal > use of this type as an expression > C:\Program Files\Microsoft Visual Studio > 8\VC\INCLUDE\crtdefs.h(506) : see declaration of 'errcode' > C:\projects\regex-0.12\regex.c(4910) : warning C4996: 'strcpy' was > declared deprecated > Message: 'This function or variable may be unsafe. Consider using > strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRE > CATE. See online help for details.' > NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio > 8\VC\BIN\cl.EXE"' : return code '0x2' > Stop. > > > > > > > > > > > > > On Mon, Apr 7, 2008 at 2:03 PM, Frank Warmerdam <warmerdam at pobox.com> > wrote: > > > Florin A. wrote: > > > > > Hello, > > > > > > I'm trying to compile MapServer on Windows Server 2003. I followed > > > all the instructions on > > > http://mapserver.gis.umn.edu/docs/howto/win32_compiling and I'm stuck > > > with regex errors. The errors are the same as this post > > > http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg15996.html > > > I'm compiling with nmake from Microsoft Visual Studio 8 > > > > > > I also tried compiling with the buildkit from > > > http://download.osgeo.org/buildkit/ and got the same errors. > > > > > > regex.c > > > C:\projects\regex-0.12\regex.c(768) : warning C4018: '<' : > > > signed/unsigned mismatch > > > > > ... > > > > > C:\projects\regex-0.12\regex.c(1953) : warning C4018: '>' : > > > signed/unsigned mismatch > > > > > > > > > I tried the correction mentioned for the regex.c file: > > > > > > //extern void printchar (); > > > void printchar( int i ) {} > > > > > > > > > This made no difference. I also tried with the win32 regex > > > distribution from http://people.delphiforums.com/gjc/gnu_regex.exe and > > > again, exactly the same errors. > > > > > > Has anybody else encountered this regex error? Shouldn't nmake work > > > with no problems on the buildkit ? > > > > > > > Florin, > > > > The above are just warnings. I would encourage you to just ignore them > > and proceed. > > > > 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<http://pobox.com/%7Ewarmerdam> > > and watch the world go round - Rush | President OSGeo, > > http://osgeo.org > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080407/e7e9bdbf/attachment.htm> From pianosnake at gmail.com Mon Apr 7 14:36:46 2008 From: pianosnake at gmail.com (Florin A.) Date: Mon, 7 Apr 2008 15:36:46 -0600 Subject: [mapserver-users] compiling on windows In-Reply-To: <47fa90fc.11355e0a.404e.33a0@mx.google.com> References: <1d674ec80804071354o13ccdb02u5d34aa1717229602@mail.gmail.com> <47fa90fc.11355e0a.404e.33a0@mx.google.com> Message-ID: <1d674ec80804071436x199fc3d7w1973a081ebf2758b@mail.gmail.com> Hi Tamas, I added MSVC_VER=1400 I call nmake like this: C:\projects\mapserver-5.0.2>nmake /f Makefile.vc MSVC_VER=1400 The errors are the same as before: C:\projects\mapserver-5.0.2>nmake /f Makefile.vc MSVC_VER=1400 Microsoft (R) Program Maintenance Utility Version 8.00.50727.42 Copyright (C) Microsoft Corporation. All rights reserved. cl /nologo /Ox /MD /W3 /DDEBUG /EHsc /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE -IC:/projects/gdwin32 -Ic:\projects\map server-5.0.2\..\jpeg-6b -IC:\projects\proj-4.4.9/src -IC:\projects\regex-0.12 -Ic:\projects\mapserver-5.0.2\..\zlib-1.2.3 -DHAVE_STRING_H -DREGEX_MALLOC -DNEED_STRCASECMP -DNEED_STRNCASECMP -DNEED_STRLCAT -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_GIF -DGD_HAS_GDIMAGEGIFPTR -DUSE_GD_FT -DGD_HAS_GETBITMAPFONT -DGD_HAS_FTEX_XSHOW -DUSE_WMS_SVR -DUSE _THREAD -DIGNORE_MISSING_DATA -DENABLE_STDERR_DEBUG -DUSE_GD_ANTIALIAS -DUSE_ZLIB -DWIN32 -D_WIN32 /c C:\projects\r egex-0.12\regex.c /FoC:\projects\regex-0.12\regex.obj regex.c C:\projects\regex-0.12\regex.c(768) : warning C4018: '<' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(774) : warning C4018: '<' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1123) : warning C4018: '<' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1189) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1204) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1297) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1322) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1336) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1346) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1358) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1364) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1372) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1608) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1638) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1683) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1698) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1726) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1813) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1926) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1932) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1937) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1941) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1945) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1949) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1953) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1957) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(1975) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(2023) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(2027) : warning C4018: '>' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(2042) : warning C4013: 'free' undefined; assuming extern returning int C:\projects\regex-0.12\regex.c(2236) : warning C4018: '<=' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(2784) : warning C4013: 'abort' undefined; assuming extern returning int C:\projects\regex-0.12\regex.c(2834) : warning C4047: '=' : 'regoff_t *' differs in levels of indirection from 'int' C:\projects\regex-0.12\regex.c(3313) : warning C4018: '<' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(3403) : warning C4018: '<' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(3427) : warning C4018: '<' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(3480) : warning C4018: '<' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(3496) : warning C4018: '<' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(3760) : warning C4018: '<' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(3771) : warning C4018: '<=' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(3918) : warning C4018: '<=' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(3971) : warning C4018: '<=' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(4079) : warning C4018: '>=' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(4110) : warning C4018: '<=' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(4123) : warning C4018: '<=' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(4293) : warning C4018: '>=' : signed/unsigned mismatch C:\projects\regex-0.12\regex.c(3771) : warning C4101: 'destination' : unreferenced local variable C:\projects\regex-0.12\regex.c(3918) : warning C4101: 'destination' : unreferenced local variable C:\projects\regex-0.12\regex.c(3971) : warning C4101: 'destination' : unreferenced local variable C:\projects\regex-0.12\regex.c(4110) : warning C4101: 'destination' : unreferenced local variable C:\projects\regex-0.12\regex.c(4123) : warning C4101: 'destination' : unreferenced local variable C:\projects\regex-0.12\regex.c(4876) : warning C4996: 'errcode' was declared deprecated C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\crtdefs.h(506) : see declaration of 'errcode' Message: 'This name was supported during some Whidbey pre-releases. Instead, use the standard name errno_t.' C:\projects\regex-0.12\regex.c(4876) : error C2081: 'preg' : name in formal parameter list illegal C:\projects\regex-0.12\regex.c(4876) : error C2081: 'errbuf' : name in formal parameter list illegal C:\projects\regex-0.12\regex.c(4876) : error C2081: 'errbuf_size' : name in formal parameter list illegal C:\projects\regex-0.12\regex.c(4877) : error C2055: expected formal parameter list, not a type list C:\projects\regex-0.12\regex.c(4877) : error C2082: redefinition of formal parameter 'errcode' C:\projects\regex-0.12\regex.c(4885) : warning C4996: 'errcode' was declared deprecated C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\crtdefs.h(506) : see declaration of 'errcode' Message: 'This name was supported during some Whidbey pre-releases. Instead, use the standard name errno_t.' C:\projects\regex-0.12\regex.c(4885) : error C2059: syntax error : 'type' C:\projects\regex-0.12\regex.c(4893) : error C2275: 'errcode' : illegal use of this type as an expression C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\crtdefs.h(506) : see declaration of 'errcode' NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.EXE"' : return code '0x2' Stop. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080407/a7e513fa/attachment.htm> From pianosnake at gmail.com Mon Apr 7 14:44:40 2008 From: pianosnake at gmail.com (Florin A.) Date: Mon, 7 Apr 2008 15:44:40 -0600 Subject: [mapserver-users] compiling on windows In-Reply-To: <1d674ec80804071436x199fc3d7w1973a081ebf2758b@mail.gmail.com> References: <1d674ec80804071354o13ccdb02u5d34aa1717229602@mail.gmail.com> <47fa90fc.11355e0a.404e.33a0@mx.google.com> <1d674ec80804071436x199fc3d7w1973a081ebf2758b@mail.gmail.com> Message-ID: <1d674ec80804071444m53b15206n2ed5ca571ed5a153@mail.gmail.com> The message was complaining about the 'errcode' variable in regex.c I changed regex.c code at lines 4876, 4877, 4885, 4886, 4893 and replaced all occurences of 'errcode' in the regerror function with 'errcode2'. Then mapserver compiled :) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080407/3abb8448/attachment.htm> From dfuhry at gmail.com Mon Apr 7 17:01:11 2008 From: dfuhry at gmail.com (Dave Fuhry) Date: Mon, 7 Apr 2008 20:01:11 -0400 Subject: [MAPSERVER-USERS] CLOSE_CONNECTION=DEFER - Segmentation fault In-Reply-To: <16353907.post@talk.nabble.com> References: <200803021227.16671.ivan.mincik@gmail.com> <15813612.post@talk.nabble.com> <200803051326.36604.ivan.mincik@gmail.com> <90699a8d0803051341q3b5b623bp1e3a11b46e2e444b@mail.gmail.com> <90699a8d0803112041t44139ba5kcfa9b7763123918c@mail.gmail.com> <16333076.post@talk.nabble.com> <16353907.post@talk.nabble.com> Message-ID: <90699a8d0804071701o49daf754u32b8d256a780c178@mail.gmail.com> Carlos, I won't be able to look at this until after April 14th. But note that I posted a third version of my patch which Ivan is using. (Lesson learned: From now on in Trac, I'm posting a separate file for every version of a patch). It seems like you're using the latest, but check to be sure. If you can send a snippet of the python code you're using, that might help. I assume you are using CLOSE_CONNECTION=DEFER on the layer. There is clearly still something wrong with the series of SQL statements being issued; for one thing, a ROLLBACK followed by BEGIN should only be issued if the previous statement ended erroneously. The SELECT * FROM tablename WHILE false LIMIT 0 is normal though; mapserver needs to know the field names and data types. Pity it can't infer them from the layer definition; there's probably a good reason it can't. Thanks, Dave Fuhry On Fri, Mar 28, 2008 at 12:47 PM, Carlos_Molina <dr.chamberlain at gmail.com> wrote: > > I miss one extra query right here: > > DECLARE mycursor2 BINARY CURSOR FOR SELECT... // getShape(1) > FETCH ALL in mycursor2 > CLOSE mycursor2 > ROLLBACK > //////////////////////////////////////////////////////////queryByAttribute/////////////////////////////////////////////////////////////// > > ERROR: DECLARE CURSOR may only be used in transaction blocks > WARNING: there is no transaction in progress > statement: rollback > statement: begin > ERROR: cursor "mycursor" does not exist > ABORT > > I tried this QueryByAttribute by itself, without the first QueryByRect I > showed no my last post and it seems to be missing a BEGIN statement for its > cursor. > > Saludos! > > > > > Carlos_Molina wrote: > > > > > > Dave Fuhry wrote: > >> > >> Ivan, > >> > >> p.mapper seems to use the typical php > >> {map,layer}Obj_queryBy{Point,Rect,etc.} functions. These calls end up > >> calling the same msPOSTGIS* functions as everything else. > >> > >> I can't seem to reproduce your problem with a simple testcase > >> (basically, the attached files). It might help if you can set > >> log_min_duration_statement = 0 in your postgresql.conf, reproduce the > >> problem, and send the output from your postgresql log file. It will > >> show all commands issued to the database, including the BEGIN, and the > >> DECLARE CURSOR ..., and FETCH for every layer. > >> > >> I can setup p.mapper if that's necessary to reproduce the problem. > >> > >> (By the way, I assume you're not using an ancient version of > >> postgis, in the 0.5 - 0.6 era. There is an alternate codepath for > >> that, which I have not tested.) > >> > >> Thanks, > >> > >> Dave > >> > > > > Hello Dave, > > > > I've tried first and second version of your patch and both resolved my > > first issue of many many BEGIN statements being issued by cursors so my > > application went back to running smoothly. The sad part is that another > > issued arised from this patch and It's when using python mapscript and the > > drawQuery call. > > If i just render my .map file with draw() I get no trouble, but if I open > > my map file, get a single layer from it, query the layer, open the layer > > to retrieve results and call drawQuery() afterwards to render everything > > like I used to do before the patch, I get the following error(I resumed > > the sql statements): > > > > BEGIN > > DECLARE mycursor BINARY CURSOR FOR SELECT... // queryByPoint > > FETCH ALL in mycursor > > CLOSE mycursor > > SELECT * FROM... "same as above" WHILE false LIMIT 0 // Dont know why this > > is issued, might be openLayer or just to get the field names of the table > > WARNING: there is already a transaction in progress > > BEGIN > > DECLARE mycursor2 BINARY CURSOR FOR SELECT... // getShape(0) > > FETCH ALL in mycursor2 > > CLOSE mycursor2 > > ROLLBACK > > BEGIN > > DECLARE mycursor2 BINARY CURSOR FOR SELECT... // getShape(1) > > FETCH ALL in mycursor2 > > CLOSE mycursor2 > > ROLLBACK > > ERROR: DECLARE CURSOR may only be used in transaction blocks > > WARNING: there is no transaction in progress > > statement: rollback > > statement: begin > > ERROR: cursor "mycursor" does not exist > > ABORT > > > > Regards > > > > Carlos Molina > > > > -- > View this message in context: http://www.nabble.com/CLOSE_CONNECTION%3DDEFER----Segmentation-fault-tp15786741p16353907.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 nickthegreek_ at hotmail.com Mon Apr 7 18:35:42 2008 From: nickthegreek_ at hotmail.com (nickthegreek-) Date: Mon, 7 Apr 2008 18:35:42 -0700 (PDT) Subject: [MAPSERVER-USERS] php database mapfile In-Reply-To: <47FA2813.1080003@Noaa.gov> References: <16519414.post@talk.nabble.com> <16529988.post@talk.nabble.com> <47F942C3.7050406@Noaa.gov> <16532024.post@talk.nabble.com> <47FA2813.1080003@Noaa.gov> Message-ID: <16545654.post@talk.nabble.com> cause i wanna take the name from a downdrop menu... the england can be changed to many countrys.. and i can't get the variable from the form and how to use it there -- View this message in context: http://www.nabble.com/php-database-mapfile-tp16519414p16545654.html Sent from the Mapserver - User mailing list archive at Nabble.com. From atul.dravid at iworktech.com Mon Apr 7 22:19:55 2008 From: atul.dravid at iworktech.com (Atul Dravid) Date: Tue, 8 Apr 2008 10:49:55 +0530 Subject: [mapserver-users] Making border thick on selecting shape... In-Reply-To: <d7ba910a0804071016n2c91835aned3448540f63bb57@mail.gmail.com> References: <ebd91ef20804050224n3d4b2fb1g9ab4e0a838858f46@mail.gmail.com> <d7ba910a0804071016n2c91835aned3448540f63bb57@mail.gmail.com> Message-ID: <ebd91ef20804072219y3fb642f9j1f8e53927ca100f@mail.gmail.com> Thanks Luis for your replay... Only the fact that i was having wrong approach and hence my question was also wrong.. I feel I should share with you what I was trying to do... 1) Load the map 2) Have a click event on map shapes. 3) Highlight the selected shape with making border of different color. 4) Show the map again. This I achieved using Map Script and PHP... I used a templayer to copy the shapes from original map layer on the templayer on mouse click, create the image of templayer and pasted it on original map... For templayer I selected the outlinecolor to RED instead of default color... This did the trick... On Mon, Apr 7, 2008 at 10:46 PM, Luis Trevi?o <ltrevinoh at gmail.com> wrote: > you can try something like this: > > LAYER > NAME "layername" > TYPE polygon > ... > CLASS > STYLE > COLOR 255 255 0 > OUTLINECOLOR 255 0 0 > WIDTH 4 > END > END > END > > regards, > Luis > > > 2008/4/5, Atul Dravid <atul.dravid at iworktech.com>: > > Dear All, > > > > I am developing mapserver based application on Windows platform. The map > is > > rendered properly as per the tutorial. Also I can also capture the shape > in > > the layer on which user is clicking the mouse. I would like the border > of > > this shape to be converted to Red color and with more thickness. > > > > Anyone has done this ? > > > > Thanks in advance, > > _______________________________________________ > > 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: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080408/a643dd2a/attachment.htm> From florian.thuerkow at ufz.de Tue Apr 8 03:06:27 2008 From: florian.thuerkow at ufz.de (=?ISO-8859-15?Q?Florian_Th=FCrkow?=) Date: Tue, 08 Apr 2008 12:06:27 +0200 Subject: [mapserver-users] SDE 9.2 - GDAL - UMN Mapserver Message-ID: <47FB43A3.7040405@ufz.de> Hello everyone! Did one of you ever achieve to get rasterdata from ArcSDE 9.1 or ArcSDE 9.2 by using GDAL (1.5) from the Mapserver (ms4w)? I would like to know how the layer has to look. LAYER DEBUG ON TYPE RASTER NAME testit CONNECTIONTYPE PLUGIN CONNECTION "ipadress,port:5151,sde,user,pass" PLUGIN "C:/ms4w/Apache/specialplugins/msplugin_sde_92.dll" DATA "DATA_COLOR,FOOTPRINT,SDE.DEFAULT" STATUS DEFAULT DEBUG ON PROCESSING "BANDS=1,2,3" PROCESSING "RASTERCOLUMN=RASTER" END Thanks for help! Florian Thuerkow From gisaalter at gmail.com Tue Apr 8 05:22:08 2008 From: gisaalter at gmail.com (Steven De Vriendt) Date: Tue, 8 Apr 2008 14:22:08 +0200 Subject: [mapserver-users] PostGIS data in EPSG:31300 using for Google Maps overlay Message-ID: <8d2ea9d70804080522y168dbb77mb2acc7bb59a9a343@mail.gmail.com> Hi list, I have some data in PostGIS I wish to overlay in Google Maps using WMS I'm using the same data in a mapserver application, where EPSG code 31300 is used. Now for overlay in Google Maps, 4326 is required. I have made a copy of my map-file and specified 4326 as projection system.Yet, non of my data is showing up. Do I need to reproject my data for this use ? I thought PostGIS was capable of doing reprojection on the fly ? Can someone with some more experience help me out ? Thanks Steven From jmckenna at dmsolutions.ca Tue Apr 8 06:34:11 2008 From: jmckenna at dmsolutions.ca (Jeff McKenna) Date: Tue, 08 Apr 2008 09:34:11 -0400 Subject: [mapserver-users] SDE 9.2 - GDAL - UMN Mapserver In-Reply-To: <47FB43A3.7040405@ufz.de> References: <47FB43A3.7040405@ufz.de> Message-ID: <47FB7453.1030504@dmsolutions.ca> > Did one of you ever achieve to get rasterdata from ArcSDE 9.1 or ArcSDE > 9.2 by using GDAL (1.5) from the Mapserver (ms4w)? > I have not tested this with raster data. (i have no issues connecting with vector data, SDE 9.1, and ms4w 2.2.7 though) -jeff From pcreso at pcreso.com Tue Apr 8 10:58:44 2008 From: pcreso at pcreso.com (Brent Wood) Date: Tue, 8 Apr 2008 10:58:44 -0700 (PDT) Subject: [mapserver-users] PostGIS data in EPSG:31300 using for Google Maps overlay In-Reply-To: <8d2ea9d70804080522y168dbb77mb2acc7bb59a9a343@mail.gmail.com> Message-ID: <251994.36423.qm@web33204.mail.mud.yahoo.com> --- Steven De Vriendt <gisaalter at gmail.com> wrote: > Hi list, > > I have some data in PostGIS I wish to overlay in Google Maps using WMS > I'm using the same data in a mapserver application, where EPSG code > 31300 is used. > Now for overlay in Google Maps, 4326 is required. > I have made a copy of my map-file and specified 4326 as projection > system.Yet, non of my data is showing up. > > Do I need to reproject my data for this use ? I thought PostGIS was > capable of doing reprojection on the fly ? Hi Steven, Both mapserver & POstGIS can reproject the data on the fly, but they need to be told the input & output projections. As your data is all displayed via mapserver, the instructions either way will be in your mapfile. To reproject using PostGIS, edit the SQL command in your data statement which retrieves the PostGIS data. You need to tell PostGIS to return a virtual table to mapserver, and transform the data to the required projection in this. Edit the data line in the layer something like this: DATA "new_geom from (select gid, transform(the_geom,4326) as new_geom from table) as mytable using unique gid using srid=4326" To reproject in mapserver, you need to set the main mapfile projection to EPSG:4326, using, in the global header part of the mapfile: UNITS DD PROJECTION "init=epsg:4326" END In the METADATA section, you'll need to set the output projection for WMS, eg: METADATA "wms_title" "My WMS Server" "wms_srs" "EPSG:4326" END Then in the layer definition, you specify the layer's native projection, so mapserver can reproject from one to the other: LAYER ... PROJECTION "init=epsg:31300" END ... END Note that to reproject in PostGIS, Proj.4 support must be compiled into PostGIS, and similarly for mapserver if you do the reprojection there. If you compiled these from source, this is not done by default, & you'll need to run configure with the appropriate flag. If you installed from a package, or on Windows, proj support is generally built in. HTH, Brent Wood From gisaalter at gmail.com Tue Apr 8 11:25:29 2008 From: gisaalter at gmail.com (Steven De Vriendt) Date: Tue, 8 Apr 2008 20:25:29 +0200 Subject: [mapserver-users] PostGIS data in EPSG:31300 using for Google Maps overlay In-Reply-To: <251994.36423.qm@web33204.mail.mud.yahoo.com> References: <8d2ea9d70804080522y168dbb77mb2acc7bb59a9a343@mail.gmail.com> <251994.36423.qm@web33204.mail.mud.yahoo.com> Message-ID: <8d2ea9d70804081125i1379f36exa617b26af88c9e76@mail.gmail.com> Brent, Very, very usefull info. Thanks. I was just about to reprojecting my data :-) I thought the SRID table was "constrained" to the geometry and you couldn't change it. Seems like that's why the 'virtual' table is there for. Ok, well, I'll give it a try. Thanks for your input ! Regards, Steven On Tue, Apr 8, 2008 at 7:58 PM, Brent Wood <pcreso at pcreso.com> wrote: > > --- Steven De Vriendt <gisaalter at gmail.com> wrote: > > > Hi list, > > > > I have some data in PostGIS I wish to overlay in Google Maps using WMS > > I'm using the same data in a mapserver application, where EPSG code > > 31300 is used. > > Now for overlay in Google Maps, 4326 is required. > > I have made a copy of my map-file and specified 4326 as projection > > system.Yet, non of my data is showing up. > > > > Do I need to reproject my data for this use ? I thought PostGIS was > > capable of doing reprojection on the fly ? > > Hi Steven, > > Both mapserver & POstGIS can reproject the data on the fly, but they need to be > told the input & output projections. > > As your data is all displayed via mapserver, the instructions either way will > be in your mapfile. > > To reproject using PostGIS, edit the SQL command in your data statement which > retrieves the PostGIS data. You need to tell PostGIS to return a virtual table > to mapserver, and transform the data to the required projection in this. Edit > the data line in the layer something like this: > > DATA "new_geom from (select gid, transform(the_geom,4326) as new_geom from > table) as mytable using unique gid using srid=4326" > > > To reproject in mapserver, you need to set the main mapfile projection to > EPSG:4326, using, in the global header part of the mapfile: > > UNITS DD > PROJECTION > "init=epsg:4326" > END > > In the METADATA section, you'll need to set the output projection for WMS, eg: > METADATA > "wms_title" "My WMS Server" > "wms_srs" "EPSG:4326" > END > > Then in the layer definition, you specify the layer's native projection, so > mapserver can reproject from one to the other: > > LAYER > ... > PROJECTION > "init=epsg:31300" > END > ... > END > > Note that to reproject in PostGIS, Proj.4 support must be compiled into > PostGIS, and similarly for mapserver if you do the reprojection there. If you > compiled these from source, this is not done by default, & you'll need to run > configure with the appropriate flag. If you installed from a package, or on > Windows, proj support is generally built in. > > > HTH, > > Brent Wood > From gisaalter at gmail.com Tue Apr 8 13:29:20 2008 From: gisaalter at gmail.com (Steven De Vriendt) Date: Tue, 8 Apr 2008 22:29:20 +0200 Subject: [mapserver-users] PostGIS data in EPSG:31300 using for Google Maps overlay In-Reply-To: <8d2ea9d70804081125i1379f36exa617b26af88c9e76@mail.gmail.com> References: <8d2ea9d70804080522y168dbb77mb2acc7bb59a9a343@mail.gmail.com> <251994.36423.qm@web33204.mail.mud.yahoo.com> <8d2ea9d70804081125i1379f36exa617b26af88c9e76@mail.gmail.com> Message-ID: <8d2ea9d70804081329x15208453nb50731705b8c3efa@mail.gmail.com> Brent, Maybe quite a basic question, but I'm not used to define my data syntax as the one you propose. Can you help me out with the <gid> declaration. I'm quite confused what to fill in for gid Do I leave it like it is and just write gid or doi I have or do I have to define my primary key column (f.i.: tbl_b_cabu_pkey). For both I get an error message, saying either column OID does not exist or column tbl_b_cabu_pkey does not exist. However there are both there... DATA "new_geom from (select gid, transform(the_geom,4326) as new_geom from table) as mytable using unique gid using srid=4326" Thanks for helping out ! On Tue, Apr 8, 2008 at 8:25 PM, Steven De Vriendt <gisaalter at gmail.com> wrote: > Brent, > > Very, very usefull info. Thanks. I was just about to reprojecting my data :-) > I thought the SRID table was "constrained" to the geometry and you couldn't > change it. Seems like that's why the 'virtual' table is there for. Ok, > well, I'll give > it a try. Thanks for your input ! > > Regards, > Steven > > > > On Tue, Apr 8, 2008 at 7:58 PM, Brent Wood <pcreso at pcreso.com> wrote: > > > > --- Steven De Vriendt <gisaalter at gmail.com> wrote: > > > > > Hi list, > > > > > > I have some data in PostGIS I wish to overlay in Google Maps using WMS > > > I'm using the same data in a mapserver application, where EPSG code > > > 31300 is used. > > > Now for overlay in Google Maps, 4326 is required. > > > I have made a copy of my map-file and specified 4326 as projection > > > system.Yet, non of my data is showing up. > > > > > > Do I need to reproject my data for this use ? I thought PostGIS was > > > capable of doing reprojection on the fly ? > > > > Hi Steven, > > > > Both mapserver & POstGIS can reproject the data on the fly, but they need to be > > told the input & output projections. > > > > As your data is all displayed via mapserver, the instructions either way will > > be in your mapfile. > > > > To reproject using PostGIS, edit the SQL command in your data statement which > > retrieves the PostGIS data. You need to tell PostGIS to return a virtual table > > to mapserver, and transform the data to the required projection in this. Edit > > the data line in the layer something like this: > > > > DATA "new_geom from (select gid, transform(the_geom,4326) as new_geom from > > table) as mytable using unique gid using srid=4326" > > > > > > To reproject in mapserver, you need to set the main mapfile projection to > > EPSG:4326, using, in the global header part of the mapfile: > > > > UNITS DD > > PROJECTION > > "init=epsg:4326" > > END > > > > In the METADATA section, you'll need to set the output projection for WMS, eg: > > METADATA > > "wms_title" "My WMS Server" > > "wms_srs" "EPSG:4326" > > END > > > > Then in the layer definition, you specify the layer's native projection, so > > mapserver can reproject from one to the other: > > > > LAYER > > ... > > PROJECTION > > "init=epsg:31300" > > END > > ... > > END > > > > Note that to reproject in PostGIS, Proj.4 support must be compiled into > > PostGIS, and similarly for mapserver if you do the reprojection there. If you > > compiled these from source, this is not done by default, & you'll need to run > > configure with the appropriate flag. If you installed from a package, or on > > Windows, proj support is generally built in. > > > > > > HTH, > > > > Brent Wood > > > From whereismyshuttle at gmail.com Tue Apr 8 13:34:02 2008 From: whereismyshuttle at gmail.com (Chris King) Date: Tue, 8 Apr 2008 22:34:02 +0200 Subject: [mapserver-users] Mapserver and Microsoft SQL Server 2008 References: <33210.196.211.116.125.1206446356.squirrel@mail.webmail.co.za> <47E93F29.2090101@territoriumonline.com> Message-ID: <C58EA5D860B84DAA8A586E4C24435273@Chris> I thought I'd share my results of my past few weeks work on resolving my problem with the location of the plugin dll I was looking for. I found the dll in a product at http://www.mapdotnet.com (simply installed the demo and copied the dll then uninstalled) And I have just finished importing all my map data in SQL 2008. I reserved the road data for last and noticed a significant decrease in performance as I switched between postgre and sql 2008. And average of 1 or 2 seconds slower than postgre with a max of about 5 or 6 seconds where lots of detail is being displayed on the map. Anyway, as much as I wana tell Bill his program stinks, we will lose the competition if I do ;) so I'm forced to stick with SQL 08 and look for ways to improve performance. (Any links will be greatly appreciated) Cheers Chris From elvehjem at runestone.net Tue Apr 8 14:21:07 2008 From: elvehjem at runestone.net (Ken S. Elvehjem) Date: Tue, 8 Apr 2008 16:21:07 -0500 Subject: [mapserver-users] using gdalinfo.exe Message-ID: <08e401c899be$7bf68a90$5000a8c0@kensamd> Hi, I'm currently generating a query from my software to access a MrSid file that I have on my MapServer; here's the link: http://206.183.188.202/cgi-bin/mapserv.exe?map=c:\ms4w\Apache\htdocs\SD\mccook-wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=NAIP2006&STYLES=&SRS=EPSG:4269&BBOX=611300,4815500,613300,4817500&WIDTH=800&HEIGHT=800&FORMAT=image/jpeg I'd like to be able to generate a URL that will get me the "gdalinfo" on that file... Here's what doesn't work: http://206.183.188.202/cgi-bin/gdalinfo.exe?c:\ms4w\Apache\htdocs\SD\mccook\mccook2006.sid Could someone point out A.) if I'm barking up the wrong tree completetely, and if not, B.) what does that kind of query/URL need to look like? Many Thanks, Ken S. Elvehjem MapFile: MAP NAME MCCOOK STATUS ON IMAGETYPE JPEG SIZE 600 600 PROJECTION "init=epsg:26914" END UNITS METERS # [minx] [miny] [maxx] [maxy] in meters EXTENT 610471 4810318 651740 4859698 #--------------------------------------------------------- WEB TEMPLATE "SD.html" IMAGEPATH "C:\ms4w\Apache\htdocs\tmp/" IMAGEURL "/tmp/" METADATA "wms_title" "WMS McCOOK" "wms_onlineresource" "http://206.183.188.202/cgi-bin/mapserv?" "wms_srs" "EPSG:26914 EPSG:26914" END END #--------------------------------------------------------- LAYER NAME NAIP2006 TYPE RASTER STATUS DEFAULT DATA "mccook/mccook2006.sid" PROJECTION "init=epsg:4269" END METADATA "wms_title" "WMS McCOOK" "wms_onlineresource" "http://206.183.188.202/cgi-bin/mapserv?" "wms_srs" "EPSG:4269 EPSG:4326" END END END # Map File -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080408/4549f33a/attachment.htm> From Jukka.Rahkonen at mmmtike.fi Tue Apr 8 14:29:41 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 9 Apr 2008 00:29:41 +0300 Subject: [mapserver-users] PostGIS data in EPSG:31300 using for GoogleMaps overlay References: <8d2ea9d70804080522y168dbb77mb2acc7bb59a9a343@mail.gmail.com><251994.36423.qm@web33204.mail.mud.yahoo.com><8d2ea9d70804081125i1379f36exa617b26af88c9e76@mail.gmail.com> <8d2ea9d70804081329x15208453nb50731705b8c3efa@mail.gmail.com> Message-ID: <CC197224AC75CE4DB23F739B16891B86E33D6F@tikka.haapa.mmm.fi> Hi, In this: DATA "new_geom from (select gid, transform(the_geom,4326) as new_geom from table) as mytable using unique gid using srid=4326" First, "(select gid ..." is selecting the unique column of your table. Change "gid" to suit your table. Then "using unique gid" is referring to what was selected in the inner query. If the query is done in this way you must use the name of your unique column instead of "gid" also here. Perhaps more clear would be to write "(SELECT my_unique_column AS gid",... and "using unique gid" I am not an experienced PostGIS user, let's hope this information is correct. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Steven De Vriendt L?hetetty: ti 8.4.2008 23:29 Vastaanottaja: Brent Wood Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] PostGIS data in EPSG:31300 using for GoogleMaps overlay Brent, Maybe quite a basic question, but I'm not used to define my data syntax as the one you propose. Can you help me out with the <gid> declaration. I'm quite confused what to fill in for gid Do I leave it like it is and just write gid or doi I have or do I have to define my primary key column (f.i.: tbl_b_cabu_pkey). For both I get an error message, saying either column OID does not exist or column tbl_b_cabu_pkey does not exist. However there are both there... DATA "new_geom from (select gid, transform(the_geom,4326) as new_geom from table) as mytable using unique gid using srid=4326" Thanks for helping out ! On Tue, Apr 8, 2008 at 8:25 PM, Steven De Vriendt <gisaalter at gmail.com> wrote: > Brent, > > Very, very usefull info. Thanks. I was just about to reprojecting my data :-) > I thought the SRID table was "constrained" to the geometry and you couldn't > change it. Seems like that's why the 'virtual' table is there for. Ok, > well, I'll give > it a try. Thanks for your input ! > > Regards, > Steven > > > > On Tue, Apr 8, 2008 at 7:58 PM, Brent Wood <pcreso at pcreso.com> wrote: > > > > --- Steven De Vriendt <gisaalter at gmail.com> wrote: > > > > > Hi list, > > > > > > I have some data in PostGIS I wish to overlay in Google Maps using WMS > > > I'm using the same data in a mapserver application, where EPSG code > > > 31300 is used. > > > Now for overlay in Google Maps, 4326 is required. > > > I have made a copy of my map-file and specified 4326 as projection > > > system.Yet, non of my data is showing up. > > > > > > Do I need to reproject my data for this use ? I thought PostGIS was > > > capable of doing reprojection on the fly ? > > > > Hi Steven, > > > > Both mapserver & POstGIS can reproject the data on the fly, but they need to be > > told the input & output projections. > > > > As your data is all displayed via mapserver, the instructions either way will > > be in your mapfile. > > > > To reproject using PostGIS, edit the SQL command in your data statement which > > retrieves the PostGIS data. You need to tell PostGIS to return a virtual table > > to mapserver, and transform the data to the required projection in this. Edit > > the data line in the layer something like this: > > > > DATA "new_geom from (select gid, transform(the_geom,4326) as new_geom from > > table) as mytable using unique gid using srid=4326" > > > > > > To reproject in mapserver, you need to set the main mapfile projection to > > EPSG:4326, using, in the global header part of the mapfile: > > > > UNITS DD > > PROJECTION > > "init=epsg:4326" > > END > > > > In the METADATA section, you'll need to set the output projection for WMS, eg: > > METADATA > > "wms_title" "My WMS Server" > > "wms_srs" "EPSG:4326" > > END > > > > Then in the layer definition, you specify the layer's native projection, so > > mapserver can reproject from one to the other: > > > > LAYER > > ... > > PROJECTION > > "init=epsg:31300" > > END > > ... > > END > > > > Note that to reproject in PostGIS, Proj.4 support must be compiled into > > PostGIS, and similarly for mapserver if you do the reprojection there. If you > > compiled these from source, this is not done by default, & you'll need to run > > configure with the appropriate flag. If you installed from a package, or on > > Windows, proj support is generally built in. > > > > > > HTH, > > > > Brent Wood > > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From sindile.bidla at gmail.com Tue Apr 8 14:46:54 2008 From: sindile.bidla at gmail.com (Intengu Technologies) Date: Tue, 8 Apr 2008 23:46:54 +0200 Subject: [mapserver-users] OSS application to serve file based images Message-ID: <a1afa64b0804081446x50f7daap32b4f4ffb12ba2bc@mail.gmail.com> Hello I understand that most experts are saying it is far better not to load images in a database but rather to serve them from a file based system. There are two commercial products that I know of ER Mapper - Image Web Server and ArcGIS Image Server what OSS products provide comparable functionalities. If these are available are there any bench mark studies done and also I would like to integrate such products with ArcGIS Server. -- Sindile Bidla -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080408/7f01b7e6/attachment.htm> From aileen.baylon at cybersoft.ph Tue Apr 8 18:25:39 2008 From: aileen.baylon at cybersoft.ph (Aileen) Date: Wed, 9 Apr 2008 09:25:39 +0800 Subject: [mapserver-users] Mapserver 5 and Openlayers 2.5 passing of parameters. Message-ID: <10A58E451AF7442E8B186020DDBA59ED@Aileen> ----- Original Message ----- From: "Aileen" <aileen at mapcentral.ph> To: <mapserver-users at lists.osgeo.org> Sent: Wednesday, April 09, 2008 8:28 AM Subject: Mapserver 5 and Openlayers 2.5 passing of parameters. >> Hi all, >> > We are currently using the latest release of Mapserver, the 5.0.2 version > and Openlayers 2.5 >> >> We are having problems with rendering lines and polygons because although >> it worked for us in Mapserver 4.10, we are told that there's a new syntax >> for passing values to mapserver. >> >> Currently, here's part of the url that we are using to pass to mapserver: >> >> map_layer_class_expression=makati&map_layer_class_color=255 0 0. >> >> >> We already have looked at your samples but with no avail. >> >> Can you help us with the new syntax? > From warmerdam at pobox.com Tue Apr 8 19:25:10 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 08 Apr 2008 22:25:10 -0400 Subject: [mapserver-users] using gdalinfo.exe In-Reply-To: <08e401c899be$7bf68a90$5000a8c0@kensamd> References: <08e401c899be$7bf68a90$5000a8c0@kensamd> Message-ID: <47FC2906.9070709@pobox.com> Ken S. Elvehjem wrote: > > Hi, > > I'm currently generating a query from my software to access a MrSid file > that I have on my MapServer; here's the link: > > http://206.183.188.202/cgi-bin/mapserv.exe?map=c:\ms4w\Apache\htdocs\SD\mccook-wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=NAIP2006&STYLES=&SRS=EPSG:4269&BBOX=611300,4815500,613300,4817500&WIDTH=800&HEIGHT=800&FORMAT=image/jpeg > <http://206.183.188.202/cgi-bin/mapserv.exe?map=c:\ms4w\Apache\htdocs\SD\mccook-wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=NAIP2006&STYLES=&SRS=EPSG:4269&BBOX=611300,4815500,613300,4817500&WIDTH=800&HEIGHT=800&FORMAT=image/jpeg> > > I'd like to be able to generate a URL that will get me the "gdalinfo" on > that file... Here's what doesn't work: > > http://206.183.188.202/cgi-bin/gdalinfo.exe?c:\ms4w\Apache\htdocs\SD\mccook\mccook2006.sid > > Could someone point out A.) if I'm barking up the wrong tree > completetely, and if not, B.) what does that kind of query/URL need to > look like? Ken, I'm not aware of anyone doing anything quite like this. gdalinfo isn't setup to be used as a cgi, and doesn't return things html encoded or with a content-type header. And MapServer does not have an equivelent functionality. But, in theory, you could write a little gdalinfo script in php/perl/python that would execute gdalinfo on a passed argument filename and then return the result with a proper "Content-type: text/plain" header. 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 | President OSGeo, http://osgeo.org From carla.fernandezb at gmail.com Wed Apr 9 00:04:11 2008 From: carla.fernandezb at gmail.com (cfb) Date: Wed, 9 Apr 2008 00:04:11 -0700 (PDT) Subject: [MAPSERVER-USERS] PostGIS data in EPSG:31300 using for Google Maps overlay In-Reply-To: <8d2ea9d70804080522y168dbb77mb2acc7bb59a9a343@mail.gmail.com> References: <8d2ea9d70804080522y168dbb77mb2acc7bb59a9a343@mail.gmail.com> Message-ID: <16580808.post@talk.nabble.com> Hi Steven, I had the same problems, my data were in EPSG:23030 but when I wanted to overlay my WMS in Google Earth, even If I'd included EPSG:4326 in the wms_srs list, It showed a difference between my map and Google. So, first of all, you must include the 4326 in your wms_srs list (in the header and in the layers), then you must set EPSG:4326 as your projection object in the header, leaving the layers projections as 31300, and then you must look at the epsg file in the PROJ library (\\ms4w\proj\nad), because probably your EPSG code (31300) asn't all the parameters needed to reproject correctly the data... Look something like +towgs84, and try to find some parameter that help MapServer to reproject better the data...like this you won't have to reproject your original data Regards gisaalter wrote: > > Hi list, > > I have some data in PostGIS I wish to overlay in Google Maps using WMS > I'm using the same data in a mapserver application, where EPSG code > 31300 is used. > Now for overlay in Google Maps, 4326 is required. > I have made a copy of my map-file and specified 4326 as projection > system.Yet, non of my data is showing up. > > Do I need to reproject my data for this use ? I thought PostGIS was > capable of doing reprojection on the fly ? > > Can someone with some more experience help me out ? > > Thanks > Steven > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/PostGIS-data-in-EPSG%3A31300-using-for-Google-Maps-overlay-tp16562400p16580808.html Sent from the Mapserver - User mailing list archive at Nabble.com. From gisaalter at gmail.com Wed Apr 9 00:47:39 2008 From: gisaalter at gmail.com (Steven De Vriendt) Date: Wed, 9 Apr 2008 09:47:39 +0200 Subject: [MAPSERVER-USERS] PostGIS data in EPSG:31300 using for Google Maps overlay In-Reply-To: <16580808.post@talk.nabble.com> References: <8d2ea9d70804080522y168dbb77mb2acc7bb59a9a343@mail.gmail.com> <16580808.post@talk.nabble.com> Message-ID: <8d2ea9d70804090047p267d55d5m5eb155bf5f6a16d4@mail.gmail.com> thanks Carla, although I'm not sure about that last bit. So I have searched for the epsg parameters of 31300 (Belge Lambert 72), and now I have to add some parameters ? I'm not sure which parameters I have to add/adjust.. <31300> +proj=lcc +lat_1=49.83333333333334 +lat_2=51.16666666666666 +lat_0=90 +lon_0=4.356939722222222 +x_0=150000.01256 +y_0=5400088.4378 +ellps=intl +units=m +no_defs no_defs <> Thanks Steven On Wed, Apr 9, 2008 at 9:04 AM, cfb <carla.fernandezb at gmail.com> wrote: > > Hi Steven, > > I had the same problems, my data were in EPSG:23030 but when I wanted to > overlay my WMS in Google Earth, even If I'd included EPSG:4326 in the > wms_srs list, It showed a difference between my map and Google. So, first of > all, you must include the 4326 in your wms_srs list (in the header and in > the layers), then you must set EPSG:4326 as your projection object in the > header, leaving the layers projections as 31300, and then you must look at > the epsg file in the PROJ library (\\ms4w\proj\nad), because probably your > EPSG code (31300) asn't all the parameters needed to reproject correctly the > data... > > Look something like +towgs84, and try to find some parameter that help > MapServer to reproject better the data...like this you won't have to > reproject your original data > > Regards > > > > > > > > > > gisaalter wrote: > > > > Hi list, > > > > I have some data in PostGIS I wish to overlay in Google Maps using WMS > > I'm using the same data in a mapserver application, where EPSG code > > 31300 is used. > > Now for overlay in Google Maps, 4326 is required. > > I have made a copy of my map-file and specified 4326 as projection > > system.Yet, non of my data is showing up. > > > > Do I need to reproject my data for this use ? I thought PostGIS was > > capable of doing reprojection on the fly ? > > > > Can someone with some more experience help me out ? > > > > Thanks > > Steven > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > -- > View this message in context: http://www.nabble.com/PostGIS-data-in-EPSG%3A31300-using-for-Google-Maps-overlay-tp16562400p16580808.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 pcreso at pcreso.com Wed Apr 9 01:17:07 2008 From: pcreso at pcreso.com (Brent Wood) Date: Wed, 9 Apr 2008 01:17:07 -0700 (PDT) Subject: [mapserver-users] PostGIS data in EPSG:31300 using for GoogleMaps overlay In-Reply-To: <CC197224AC75CE4DB23F739B16891B86E33D6F@tikka.haapa.mmm.fi> Message-ID: <530483.94200.qm@web33207.mail.mud.yahoo.com> --- Rahkonen Jukka <Jukka.Rahkonen at mmmtike.fi> wrote: > Hi, > > In this: > DATA "new_geom from (select gid, transform(the_geom,4326) as new_geom > from > table) as mytable using unique gid using srid=4326" > > First, "(select gid ..." is selecting the unique column of your table. Change > "gid" to suit your table. > Then "using unique gid" is referring to what was selected in the inner query. > If the query is done in this way you must use the name of your unique column > instead of "gid" also here. > > Perhaps more clear would be to write > "(SELECT my_unique_column AS gid",... and > "using unique gid" > > I am not an experienced PostGIS user, let's hope this information is correct. Hi Jukka, Indeed it is. I used gid as a default geom id column, but could have been more explicit. > Brent, > > Maybe quite a basic question, but I'm not used to define my data > syntax as the one you propose. > Can you help me out with the <gid> declaration. > I'm quite confused what to fill in for gid > > Do I leave it like it is and just write gid or doi I have > or do I have to define my primary key column (f.i.: tbl_b_cabu_pkey). > > For both I get an error message, saying either column OID does not > exist or column tbl_b_cabu_pkey does not exist. > However there are both there... > > DATA "new_geom from (select gid, transform(the_geom,4326) as new_geom from > table) as mytable using unique gid using srid=4326" Try: DATA "new_geom from (select tbl_b_cabu_pkey, transform(the_geom,4326) as new_geom from table) as mytable using unique tbl_b_cabu_pkey using srid=4326" This is effectively the same as: DATA "new_geom from (select tbl_b_cabu_pkey as gid, transform(the_geom,4326) as new_geom from table) as mytable unique gid using srid=4326" Hopefully the two examples show how this works. Note that "mytable" is an arbitrary name, and you can call it anything you want to. Similarly, the "new_geom" is used as an alias in the SQL, so it becomes the name of the geometry collumn in the virtual table, so this is the name mapserver is given in the DATA statement. Again you can use whatever name you like, provided the same one is used in both places. If you need other columns for labels, or classes, etc., just add them to the SQL that generates "mytable". This facility does not just allow reprojection by PostGIS, which doesn't offer much really as mapserver can do the same thing, but allows the "mytable" to be the result of a complex join accross tables, etc, thus supporting the power of SQL & a relational database behind the mapping engine. > > Thanks for helping out ! You're welcome, Brent From rdmailings at duif.net Wed Apr 9 01:12:21 2008 From: rdmailings at duif.net (Richard Duivenvoorde) Date: Wed, 09 Apr 2008 10:12:21 +0200 Subject: [mapserver-users] PostGIS data in EPSG:31300 using for Google Maps overlay In-Reply-To: <8d2ea9d70804081329x15208453nb50731705b8c3efa@mail.gmail.com> References: <8d2ea9d70804080522y168dbb77mb2acc7bb59a9a343@mail.gmail.com> <251994.36423.qm@web33204.mail.mud.yahoo.com> <8d2ea9d70804081125i1379f36exa617b26af88c9e76@mail.gmail.com> <8d2ea9d70804081329x15208453nb50731705b8c3efa@mail.gmail.com> Message-ID: <47FC7A65.50009@duif.net> Hi Steven, Just to add some thoughts: As Brent suggests, both postgis and mapserver can reproject. What you are doing now is let postgis (or actually the proj-library that's doing the hardwork for the transform(..)-function). But mapserver is also able to do the 'on the fly' projection (and also using a proj-lib for that). Difference for this two methods is that if you let mapserver do it, then you can use wms-service (one mapfile with one layer definition) be used for several different projection requests. So using brents example, you can do: METADATA "wms_title" "My WMS Server" "wms_srs" "EPSG:4326 EPSG:28992 EPSG:900913 EPSG 31300" END and mapserver has to know the 'native' projection as brent said: LAYER ... PROJECTION "init=epsg:31300" END ... END In this way mapserver's proj is doing the heavy lifting and you can use different clients using different projections to connect to the same wms service. The tricky stuff here is to know which proj (or actually which epsg file) is used for which library/component. For example postgis has it's proj parameters in a table 'spatial_ref_sys', so when you want to use a exotic projection you have to add it here. But if you want to use this exotic projection for mapserver/ms4w, you have to add it to: C:\ms4w\proj\nad\epsg Groet Richard Duivenvoorde Steven De Vriendt wrote: > Brent, > > Maybe quite a basic question, but I'm not used to define my data > syntax as the one you propose. > Can you help me out with the <gid> declaration. > I'm quite confused what to fill in for gid > > Do I leave it like it is and just write gid or doi I have > or do I have to define my primary key column (f.i.: tbl_b_cabu_pkey). > > For both I get an error message, saying either column OID does not > exist or column tbl_b_cabu_pkey does not exist. > However there are both there... > > DATA "new_geom from (select gid, transform(the_geom,4326) as new_geom from > table) as mytable using unique gid using srid=4326" > > Thanks for helping out ! > > On Tue, Apr 8, 2008 at 8:25 PM, Steven De Vriendt <gisaalter at gmail.com> wrote: >> Brent, >> >> Very, very usefull info. Thanks. I was just about to reprojecting my data :-) >> I thought the SRID table was "constrained" to the geometry and you couldn't >> change it. Seems like that's why the 'virtual' table is there for. Ok, >> well, I'll give >> it a try. Thanks for your input ! >> >> Regards, >> Steven >> >> >> >> On Tue, Apr 8, 2008 at 7:58 PM, Brent Wood <pcreso at pcreso.com> wrote: >> > >> > --- Steven De Vriendt <gisaalter at gmail.com> wrote: >> > >> > > Hi list, >> > > >> > > I have some data in PostGIS I wish to overlay in Google Maps using WMS >> > > I'm using the same data in a mapserver application, where EPSG code >> > > 31300 is used. >> > > Now for overlay in Google Maps, 4326 is required. >> > > I have made a copy of my map-file and specified 4326 as projection >> > > system.Yet, non of my data is showing up. >> > > >> > > Do I need to reproject my data for this use ? I thought PostGIS was >> > > capable of doing reprojection on the fly ? >> > >> > Hi Steven, >> > >> > Both mapserver & POstGIS can reproject the data on the fly, but they need to be >> > told the input & output projections. >> > >> > As your data is all displayed via mapserver, the instructions either way will >> > be in your mapfile. >> > >> > To reproject using PostGIS, edit the SQL command in your data statement which >> > retrieves the PostGIS data. You need to tell PostGIS to return a virtual table >> > to mapserver, and transform the data to the required projection in this. Edit >> > the data line in the layer something like this: >> > >> > DATA "new_geom from (select gid, transform(the_geom,4326) as new_geom from >> > table) as mytable using unique gid using srid=4326" >> > >> > >> > To reproject in mapserver, you need to set the main mapfile projection to >> > EPSG:4326, using, in the global header part of the mapfile: >> > >> > UNITS DD >> > PROJECTION >> > "init=epsg:4326" >> > END >> > >> > In the METADATA section, you'll need to set the output projection for WMS, eg: >> > METADATA >> > "wms_title" "My WMS Server" >> > "wms_srs" "EPSG:4326" >> > END >> > >> > Then in the layer definition, you specify the layer's native projection, so >> > mapserver can reproject from one to the other: >> > >> > LAYER >> > ... >> > PROJECTION >> > "init=epsg:31300" >> > END >> > ... >> > END >> > >> > Note that to reproject in PostGIS, Proj.4 support must be compiled into >> > PostGIS, and similarly for mapserver if you do the reprojection there. If you >> > compiled these from source, this is not done by default, & you'll need to run >> > configure with the appropriate flag. If you installed from a package, or on >> > Windows, proj support is generally built in. >> > >> > >> > HTH, >> > >> > Brent Wood >> > >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From ven.tammineni at gmail.com Wed Apr 9 01:48:20 2008 From: ven.tammineni at gmail.com (venkat) Date: Wed, 9 Apr 2008 14:18:20 +0530 Subject: [mapserver-users] About Dynamic Charting Message-ID: <79ad14900804090148v134ff65ck2c83c66d212b3c14@mail.gmail.com> Dear All, I am developing an web application based on C# asp.net.I have one requirement that is generating Pie Charts.I have done same with using mapfile .it is working fine.What i need is Mapserver does any class for work with chart(pie or bar) Like layerObject for Layer and mapObj for map etc. Please any one can help me.I am waiting for your great response. Advanced Thanks Regards Venkat. Here is example is working fine :- LAYER NAME "Papulation" TYPE CHART CONNECTIONTYPE POSTGIS CONNECTION "host=localhost dbname=GIS password=administrator user=postgres port=5432" DATA "the_geom from world" PROCESSING "CHART_TYPE=pie" PROCESSING "CHART_SIZE=30" STATUS ON CLASS NAME "Population Age 0-19" STYLE SIZE [3000] COLOR 125 147 225 END END CLASS NAME "Population Age 20-39" STYLE SIZE [4000] COLOR 197 0 255 END END CLASS NAME "Population Age 40-59" STYLE SIZE [5000] COLOR 0 197 255 END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080409/29fa816c/attachment.htm> From c.pelliconi at sis-ter.it Wed Apr 9 03:27:24 2008 From: c.pelliconi at sis-ter.it (Carlo Pelliconi) Date: Wed, 09 Apr 2008 12:27:24 +0200 Subject: [mapserver-users] Zoomscale doesn't work properly Message-ID: <47FC9A0C.9050500@sis-ter.it> Hi, my name's Carlo. I use MapServer4.10 with PHPMapscript on a Debian Etch system with PHP5.2. I have a problem with zoomscale(): when I use it, the system ignores minscale limitation. I've defined minscale directly in the mapfile (see below) ... WEB MINSCALE 1000 ... and also in the php script (see below) ... $map->web->set('minscale',1000); // I've tried also $map->web->set("minscale","1000"); ... and it works fine with simple zoomin/out (if I ask a zoom in when I'm near to 1:1000 - for example 1:1020 - the map reaches 1:1000, and no more). But when I use zoomscale(), I can reach also 1:919 for example. I've discovered this problem zooming (with zoomscale) to a single feature found as response of a queryByAttribute. Is this a known bug or I am wrong with something? Thank you very much for the attention. Best Regards, Carlo -- Carlo Pelliconi c.pelliconi at sis-ter.it SIS.TER S.p.A. www.sis-ter.it via Mentana, 10 40026 Imola (BO) Italy -- ATTENZIONE! Questo documento ? indirizzato esclusivamente al destinatario. Tutte le informazioni ivi contenute, compresi eventuali allegati, sono soggette a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di "privacy" e ne ? proibita l'utilizzazione da parte di altri soggetti. Si ricorda che la diffusione l'utilizzo e/o la conservazione dei dati ricevuti per errore costituisce violazione di carattere penale ai sensi dell'art. 616 Codice penale (Violazione, sottrazione e soppressione di corrispondenza). Se avesse ricevuto per errore questo messaggio, La preghiamo cortesemente di contattare il mittente al pi? presto e di cancellare il messaggio subito dopo. Grazie. ATTENTION! This message is being sent from Sis.Ter S.p.A. and may contain information which is confidential or privileged. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. Any unauthorized use of the content of this message is a breach of your duty to respect the confidentiality of the correspondence between other persons and can expose the responsible party to civil and/or criminal penalties (D.Lgs. 196/2003 "Tutela della privacy" e art. 616 Codice penale "Violazione, sottrazione e soppressione di corrispondenza"), and may constitute a more serious offence. Thanks. ACHTUNG! Dieses Dokument ist ausschlie?lich dem Empf?nger vorbehalten. Die darin enthaltenen Informationen, auch jene in etwaigen Anlagen, gelten im Sinne des Dekrets Nr. 196/2003 in Sachen "Privacy" als streng vertraulich und d?rfen von anderen Personen nicht verwende werden. Wer diese Mitteilung irrt?mlicherweise erh?lt ist gebeten uns umgehend zu informieren und anschlie?end die Mitteilung zu vernichten. Vielen Dank. From group.ritesh at gmail.com Wed Apr 9 04:37:34 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Wed, 9 Apr 2008 04:37:34 -0700 (PDT) Subject: [MAPSERVER-USERS] Elevation model Message-ID: <16584563.post@talk.nabble.com> Dear Reader, Please shed some lights on elevation models supported by mapserver. Elevations in cases of bridges, mountains, buildings,etc. Any steps to follow DEM (digital elevation model) in mapserver? Your suggestions/tips will be highly appreciated. Thanks and Regards, Ambastha -- View this message in context: http://www.nabble.com/Elevation-model-tp16584563p16584563.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sjur.ringheim.lid at imr.no Wed Apr 9 03:56:31 2008 From: sjur.ringheim.lid at imr.no (Lid Sjur Ringheim) Date: Wed, 9 Apr 2008 12:56:31 +0200 Subject: [mapserver-users] Getting a WMS service up and running from shape data Message-ID: <9A503C519418FD42A9DC9460E4A1B8780292191B@post2.imr.no> Hi, I have currently compiled and installed Mapserver 5.0.2 and are trying to set up a WMS service on it. I got the demo working but are now having problems getting my own shape files rendrered, the only output I get is a white picture. You can get the capabilities file here http://talos.nodc.no/cgi-bin/mapserv?map=wms/sonate.map&SERVICE=WMS&VERS ION=1.1.1&REQUEST=GetCapabilities The Map file im using looks like this: MAP NAME SONATE STATUS ON SIZE 600 600 EXTENT 388107.6334400378 5203120.88405952 500896.339019834 5310243.30613897 UNITS METERS SHAPEPATH "/var/www/wmsdata/sonate" IMAGECOLOR 255 255 255 PROJECTION "proj=latlong" "ellps=WGS84" "datum=WGS84" END WEB METADATA WMS_TITLE "sonate" WMS_ONLINERESOURCE "http://talos.nodc.no/cgi-bin/mapserv?map=wms/sonate.map" WMS_SRS "epsg:4326 epsg:42304" #north pole stereographic END LOG "/var/www/cgi-bin/test.log" END LAYER NAME hvalross TYPE POLYGON DATA hvalross/hvalross_utbredelse STATUS OFF PROJECTION "proj=latlong" "ellps=WGS84" END METADATA WMS_TITLE "Hvalross" WMS_SRS "epsg:4326" END CLASS NAME DYREGRUPPE DEBUG ON STYLE COLOR 255 0 255 OUTLINECOLOR 255 0 0 END END #DUMP TRUE END END But when I try to render the map all I get is a white picture. The shape file im trying to render contains polygons with a WGS84 (North Pole Stereographic) projection. Do anyone have a tip as to where I should be looking to get more information about this problem/know what might be wrong? Best Regards Sjur -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080409/e0330320/attachment.htm> From brian.hulbert at linquest.com Wed Apr 9 05:15:17 2008 From: brian.hulbert at linquest.com (Hulbert, Brian) Date: Wed, 9 Apr 2008 08:15:17 -0400 Subject: [mapserver-users] Getting a WMS service up and running from shape data In-Reply-To: <9A503C519418FD42A9DC9460E4A1B8780292191B@post2.imr.no> References: <9A503C519418FD42A9DC9460E4A1B8780292191B@post2.imr.no> Message-ID: <005501c89a3b$61684330$2438c990$@hulbert@linquest.com> I think you need to set the status of your hvalross layer to ON LAYER NAME hvalross TYPE POLYGON DATA hvalross/hvalross_utbredelse STATUS ON From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Lid Sjur Ringheim Sent: Wednesday, April 09, 2008 6:57 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Getting a WMS service up and running from shape data Hi, I have currently compiled and installed Mapserver 5.0.2 and are trying to set up a WMS service on it. I got the demo working but are now having problems getting my own shape files rendrered, the only output I get is a white picture. You can get the capabilities file here http://talos.nodc.no/cgi-bin/mapserv?map=wms/sonate.map <http://talos.nodc.no/cgi-bin/mapserv?map=wms/sonate.map&SERVICE=WMS&VERSION =1.1.1&REQUEST=GetCapabilities> &SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities The Map file im using looks like this: MAP NAME SONATE STATUS ON SIZE 600 600 EXTENT 388107.6334400378 5203120.88405952 500896.339019834 5310243.30613897 UNITS METERS SHAPEPATH "/var/www/wmsdata/sonate" IMAGECOLOR 255 255 255 PROJECTION "proj=latlong" "ellps=WGS84" "datum=WGS84" END WEB METADATA WMS_TITLE "sonate" WMS_ONLINERESOURCE "http://talos.nodc.no/cgi-bin/mapserv?map=wms/sonate.map" WMS_SRS "epsg:4326 epsg:42304" #north pole stereographic END LOG "/var/www/cgi-bin/test.log" END LAYER NAME hvalross TYPE POLYGON DATA hvalross/hvalross_utbredelse STATUS OFF PROJECTION "proj=latlong" "ellps=WGS84" END METADATA WMS_TITLE "Hvalross" WMS_SRS "epsg:4326" END CLASS NAME DYREGRUPPE DEBUG ON STYLE COLOR 255 0 255 OUTLINECOLOR 255 0 0 END END #DUMP TRUE END END But when I try to render the map all I get is a white picture. The shape file im trying to render contains polygons with a WGS84 (North Pole Stereographic) projection. Do anyone have a tip as to where I should be looking to get more information about this problem/know what might be wrong? Best Regards Sjur -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080409/1d6ecc4a/attachment.htm> From elvehjem at runestone.net Wed Apr 9 05:21:54 2008 From: elvehjem at runestone.net (Ken S. Elvehjem) Date: Wed, 9 Apr 2008 07:21:54 -0500 Subject: [mapserver-users] using gdalinfo.exe References: <08e401c899be$7bf68a90$5000a8c0@kensamd> <47FC2906.9070709@pobox.com> Message-ID: <003501c89a3c$540f4020$5000a8c0@kensamd> Frank, Thank you for the response. Is there some other way to get some of the "gdal info" with a simple query? I'm not stuck on using gdalinfo... it just seemed like a good idea. What I need is the UTM Zone -- that's already specified (I guess) in the EPSG statement in the mapfile. Can it be extracted from there over the web by way of a URL / query? Ken ----- Original Message ----- From: "Frank Warmerdam" <warmerdam at pobox.com> To: "Ken S. Elvehjem" <elvehjem at runestone.net> Cc: <mapserver-users at lists.osgeo.org> Sent: Tuesday, April 08, 2008 9:25 PM Subject: Re: [mapserver-users] using gdalinfo.exe > Ken S. Elvehjem wrote: >> Hi, >> I'm currently generating a query from my software to access a MrSid file >> that I have on my MapServer; here's the link: >> >> http://206.183.188.202/cgi-bin/mapserv.exe?map=c:\ms4w\Apache\htdocs\SD\mccook-wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=NAIP2006&STYLES=&SRS=EPSG:4269&BBOX=611300,4815500,613300,4817500&WIDTH=800&HEIGHT=800&FORMAT=image/jpeg >> <http://206.183.188.202/cgi-bin/mapserv.exe?map=c:\ms4w\Apache\htdocs\SD\mccook-wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=NAIP2006&STYLES=&SRS=EPSG:4269&BBOX=611300,4815500,613300,4817500&WIDTH=800&HEIGHT=800&FORMAT=image/jpeg> >> I'd like to be able to generate a URL that will get me the "gdalinfo" on >> that file... Here's what doesn't work: >> >> http://206.183.188.202/cgi-bin/gdalinfo.exe?c:\ms4w\Apache\htdocs\SD\mccook\mccook2006.sid >> Could someone point out A.) if I'm barking up the wrong tree >> completetely, and if not, B.) what does that kind of query/URL need to >> look like? > > Ken, > > I'm not aware of anyone doing anything quite like this. gdalinfo isn't > setup to be used as a cgi, and doesn't return things html encoded or > with a content-type header. And MapServer does not have an equivelent > functionality. > > But, in theory, you could write a little gdalinfo script in > php/perl/python > that would execute gdalinfo on a passed argument filename and then return > the result with a proper "Content-type: text/plain" header. > > 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 | President OSGeo, http://osgeo.org > From ivan.lucena at pmldnet.com Wed Apr 9 05:19:48 2008 From: ivan.lucena at pmldnet.com (Lucena, Ivan) Date: Wed, 09 Apr 2008 08:19:48 -0400 Subject: [mapserver-users] OSS application to serve file based images In-Reply-To: <a1afa64b0804081446x50f7daap32b4f4ffb12ba2bc@mail.gmail.com> References: <a1afa64b0804081446x50f7daap32b4f4ffb12ba2bc@mail.gmail.com> Message-ID: <47FCB464.2050208@pmldnet.com> IMHO, I believe that you can replicate the functionalities of those two commercial software products by writing your own scripts in whatever OSS solution you choose. Lots of work and know-how is required. While in Image Server for example, you just run some wizard-like UIs and get the job done much easier. But don't take my word for that, I'm one of the "experts" that believe that you *can* load and server images from a database server. Best regards, Ivan Intengu Technologies wrote: > Hello > > I understand that most experts are saying it is far better not to load > images in a database but rather to serve them from a file based system. > There are two commercial products that I know of ER Mapper - Image Web > Server and ArcGIS Image Server what OSS products provide comparable > functionalities. If these are available are there any bench mark studies > done and also I would like to integrate such products with ArcGIS Server. > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From kobben at itc.nl Wed Apr 9 05:27:05 2008 From: kobben at itc.nl (Barend Kobben) Date: Wed, 09 Apr 2008 14:27:05 +0200 Subject: [mapserver-users] Getting a WMS service up and running from shape data In-Reply-To: <9A503C519418FD42A9DC9460E4A1B8780292191B@post2.imr.no> Message-ID: <C42282B9.1D81%kobben@itc.nl> Hi, I cannot test your URI as the server is unknown (cannot be pinged either: 'cannot resolve host'). But at first sight it seems you might be mistaking the projection. The EPSG:4326 you have is a well-knownnon-projected lat-lon on the WGS84, but epsg:42304 is not an official EPSG code AFAIK (the list goes to 32768), so that means it's either a custom projection or you might be making a mistake here. ... -- 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 09-04-08 12:56, "Lid Sjur Ringheim" <sjur.ringheim.lid at imr.no> wrote: > Hi, > > > > I have currently compiled and installed Mapserver 5.0.2 and are trying > to set up a WMS service on it. I got the demo working but are now having > problems getting my own shape files rendrered, the only output I get is > a white picture. > > > > You can get the capabilities file here > http://talos.nodc.no/cgi-bin/mapserv?map=wms/sonate.map&SERVICE=WMS&VERS > ION=1.1.1&REQUEST=GetCapabilities > > > > The Map file im using looks like this: > > > > MAP > > NAME SONATE > > STATUS ON > > SIZE 600 600 > > EXTENT 388107.6334400378 5203120.88405952 500896.339019834 > 5310243.30613897 > > UNITS METERS > > SHAPEPATH "/var/www/wmsdata/sonate" > > IMAGECOLOR 255 255 255 > > > > PROJECTION > > "proj=latlong" > > "ellps=WGS84" > > "datum=WGS84" > > END > > > > WEB > > METADATA > > WMS_TITLE "sonate" > > WMS_ONLINERESOURCE > "http://talos.nodc.no/cgi-bin/mapserv?map=wms/sonate.map" > > WMS_SRS "epsg:4326 epsg:42304" > #north pole stereographic > > END > > LOG "/var/www/cgi-bin/test.log" > > END > > > > LAYER > > NAME hvalross > > TYPE POLYGON > > DATA hvalross/hvalross_utbredelse > > STATUS OFF > > PROJECTION > > "proj=latlong" > > "ellps=WGS84" > > END > > METADATA > > WMS_TITLE "Hvalross" > > WMS_SRS "epsg:4326" > > END > > CLASS > > NAME DYREGRUPPE > > DEBUG ON > > STYLE > > COLOR 255 0 255 > > OUTLINECOLOR 255 0 0 > > END > > END > > #DUMP TRUE > > END > > END > > > > But when I try to render the map all I get is a white picture. The shape > file im trying to render contains polygons with a WGS84 (North Pole > Stereographic) projection. > > > > Do anyone have a tip as to where I should be looking to get more > information about this problem/know what might be wrong? > > > > Best Regards > > Sjur > > > > _______________________________________________ > 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 jfuch at indec.mecon.gov.ar Wed Apr 9 05:02:54 2008 From: jfuch at indec.mecon.gov.ar (Fuchs Juan Carlos) Date: Wed, 9 Apr 2008 09:02:54 -0300 Subject: [mapserver-users] Mapserver and Microsoft SQL Server 2008 Message-ID: <C472DFDC9746E941A43C8839CCC6B61640AB0E@INDEC2.mecon.ar> Hi: Let?s face the challenge! the big question here is: it is posible to tile geodata stored in spatial SQL ?? Here goes my first aproach: divide display accord scale and relevance say principal roads for the broad view add data in a relation 20 to one, you just display one small part (one fo twenty) if you go to detail scale take 1 to 100. second aproach. tile the data using some grid aproach, following the same criteria. store the tile in your spatial SQL and go for the tile when you address the DATA statment. I will tray it by myself, but will be nice to hear some comments fo our guru?s. sorry, my english still sucks. :p JC. -----Mensaje original----- De: Chris King [mailto:whereismyshuttle at gmail.com] Enviado el: Martes, 08 de Abril de 2008 05:34 p.m. Para: mapserver-users at lists.osgeo.org Asunto: Re: [mapserver-users] Mapserver and Microsoft SQL Server 2008 I thought I'd share my results of my past few weeks work on resolving my problem with the location of the plugin dll I was looking for. I found the dll in a product at http://www.mapdotnet.com (simply installed the demo and copied the dll then uninstalled) And I have just finished importing all my map data in SQL 2008. I reserved the road data for last and noticed a significant decrease in performance as I switched between postgre and sql 2008. And average of 1 or 2 seconds slower than postgre with a max of about 5 or 6 seconds where lots of detail is being displayed on the map. Anyway, as much as I wana tell Bill his program stinks, we will lose the competition if I do ;) so I'm forced to stick with SQL 08 and look for ways to improve performance. (Any links will be greatly appreciated) Cheers Chris _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From warmerdam at pobox.com Wed Apr 9 07:22:26 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 09 Apr 2008 10:22:26 -0400 Subject: [mapserver-users] using gdalinfo.exe In-Reply-To: <003501c89a3c$540f4020$5000a8c0@kensamd> References: <08e401c899be$7bf68a90$5000a8c0@kensamd> <47FC2906.9070709@pobox.com> <003501c89a3c$540f4020$5000a8c0@kensamd> Message-ID: <47FCD122.2030608@pobox.com> Ken S. Elvehjem wrote: > Frank, > > Thank you for the response. Is there some other way to get some of the > "gdal info" with a simple query? I'm not stuck on using gdalinfo... it > just seemed like a good idea. > > What I need is the UTM Zone -- that's already specified (I guess) in the > EPSG statement in the mapfile. Can it be extracted from there over the > web by way of a URL / query? Ken, There is no stock mechanism for this, but you could write a custom mapscript application to pick this information out of the map file and return it as a web service. I would note though that MapServer does not normally provide access to stuff like file bounds to mapscript so there it is hard to provide very much information using mapscript itself. You could try setting up the dataset as WCS accessable, and then the WCS DescribeCoverage method would provide a variety of information about the file. 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 | President OSGeo, http://osgeo.org From elvehjem at runestone.net Wed Apr 9 07:22:58 2008 From: elvehjem at runestone.net (Ken S. Elvehjem) Date: Wed, 9 Apr 2008 09:22:58 -0500 Subject: [mapserver-users] using gdalinfo.exe References: <08e401c899be$7bf68a90$5000a8c0@kensamd> <47FC2906.9070709@pobox.com> <003501c89a3c$540f4020$5000a8c0@kensamd> <47FCD122.2030608@pobox.com> Message-ID: <00b001c89a4d$393e1b70$6400a8c0@Kens> OK, I'll check it out. Thanks once again for the timely reply! Ken ----- Original Message ----- From: "Frank Warmerdam" <warmerdam at pobox.com> To: "Ken S. Elvehjem" <elvehjem at runestone.net> Cc: <mapserver-users at lists.osgeo.org> Sent: Wednesday, April 09, 2008 9:22 AM Subject: Re: [mapserver-users] using gdalinfo.exe > Ken S. Elvehjem wrote: >> Frank, >> >> Thank you for the response. Is there some other way to get some of the >> "gdal info" with a simple query? I'm not stuck on using gdalinfo... it >> just seemed like a good idea. >> >> What I need is the UTM Zone -- that's already specified (I guess) in the >> EPSG statement in the mapfile. Can it be extracted from there over the >> web by way of a URL / query? > > Ken, > > There is no stock mechanism for this, but you could write a custom > mapscript application to pick this information out of the map file and > return it as a web service. I would note though that MapServer does not > normally provide access to stuff like file bounds to mapscript so there > it is hard to provide very much information using mapscript itself. > > You could try setting up the dataset as WCS accessable, and then the > WCS DescribeCoverage method would provide a variety of information about > the file. > > 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 | President OSGeo, http://osgeo.org > From Christian.Rueh at rostock.zgdv.de Wed Apr 9 07:41:51 2008 From: Christian.Rueh at rostock.zgdv.de (Sicky) Date: Wed, 9 Apr 2008 07:41:51 -0700 (PDT) Subject: [MAPSERVER-USERS] SLD ignored / External Graphic ignored Message-ID: <16586209.post@talk.nabble.com> I'll start off with some background of what I'm trying to do: I want to define SVGs as external graphic in an SLD to use these as PointSymbolizers and LineSymbolizers. Firstly I tried GeoServer and it worked quite fine, the only problem was, that it wasn't rendered very good. So I thought of trying MapServer, but then the problems came... I'm running the latest ms4w on Windows 2000 with Apache 2.2.8. Here's link to my mapfile: http://sicky.i-networx.de/temp/mapserv/test.map That's the SLD file I let create with the GetStyles request and just changed a color and width to see if it was recognized: http://sicky.i-networx.de/temp/mapserv/test.sld GetStyles document here: http://sicky.i-networx.de/temp/mapserv/GetStyles.txt The important part of the GetCapabilities request is: <UserDefinedSymbolization SupportSLD="1" UserLayer="0" UserStyle="1" RemoteWFS="0"/> (the whole one is located here: http://sicky.i-networx.de/temp/mapserv/GetCapabilities.txt) Since GetStyles is working fine and the wms server supports SLD I don't see a problem there (I searched the net for hours and hours to solve the problem and tried any suggestion..). But when I request a map with an SLD like this: http://localhost:8080/cgi-bin/mapserv.exe?map=/program%20files/ms4w/apps/blp/test.map&REQUEST=getMap&SERVICE=WMS&VERSION=1.1.1&SRS=EPSG:4326&BBOX=3954683.0884047896,5499947.559657593,3954754.5911026173,5499966.522156349&WIDTH=600&HEIGHT=700&LAYERS=Baugrenze,AllgWohngebiete&STYLES=&SLD=http://localhost:8080/test.sld&FORMAT=image/png it just ignores the sld and shows this: http://sicky.i-networx.de/temp/mapserv/sld.png http://localhost:8080/test.sld itself is viewable in the browser without any problems and the names of the layers are mathcing those in the mapfile.... (note: in my mapfile i commented out the style for one layer to see if a style in a mapfile overrides a sld) I played around with this a bit, e.g. naming it 'test.xml', removing 'STYLES=' and so on... but nothing helped :( The I thought of the other method to use SLDs, with SLD_BODY. My request is as follows: http://localhost:8080/cgi-bin/mapserv.exe?map=/program%20files/ms4w/apps/blp/test.map&REQUEST=getMap&SERVICE=WMS&VERSION=1.1.1&SRS=EPSG:4326&BBOX=3954683.0884047896,5499947.559657593,3954754.5911026173,5499966.522156349&LAYERS=Baugrenze,AllgWohngebiete&SLD_BODY=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%3CStyledLayerDescriptor+version%3D%221.1.0%22%3E%3CNamedLayer%3E%3CName%3EBaugrenze%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CName%3EBaugrenze%3C%2FName%3E%3CLineSymbolizer%3E%3CStroke%3E%3CCssParameter+name%3D%22stroke%22%3E%23000000%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-opacity%22%3E1.00%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-width%22%3E5%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FLineSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3CNamedLayer%3E%3CName%3EAllgWohngebiete%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CName%3EAllgWohngebiete%3C%2FName%3E%3CLineSymbolizer%3E%3CStroke%3E%3CCssParameter+name%3D%22stroke%22%3E%23ff00ff%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-opacity%22%3E1.00%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-width%22%3E5%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FLineSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3C%2FStyledLayerDescriptor%3E&WIDTH=600&HEIGHT=700&FORMAT=image/png the sld_body part in plain text looks like this: <?xml version="1.0" encoding="UTF-8"?> <StyledLayerDescriptor version="1.1.0"> <NamedLayer> <Name>Baugrenze</Name> <UserStyle><FeatureTypeStyle> <Rule><Name>Baugrenze</Name> <LineSymbolizer> <Stroke> <CssParameter name="stroke">#000000</CssParameter> <CssParameter name="stroke-opacity">1.00</CssParameter> <CssParameter name="stroke-width">5</CssParameter> </Stroke> </LineSymbolizer> </Rule> </FeatureTypeStyle> </UserStyle> </NamedLayer> <NamedLayer> <Name>AllgWohngebiete</Name> <UserStyle> <FeatureTypeStyle> <Rule> <Name>AllgWohngebiete</Name> <LineSymbolizer> <Stroke> <CssParameter name="stroke">#ff00ff</CssParameter> <CssParameter name="stroke-opacity">1.00</CssParameter> <CssParameter name="stroke-width">5</CssParameter> </Stroke> </LineSymbolizer> </Rule> </FeatureTypeStyle> </UserStyle> </NamedLayer> </StyledLayerDescriptor> the result made me happy: http://sicky.i-networx.de/temp/mapserv/sld_body.png at least now i know that my mapserver definately works with SLDs. but this wouldn't be a solution since I really need to define a SLD file because it's gonna be very big. So i really want 'SLD=' to work instead of 'SLD_BODY'. But 'SLD_BODY' doesn't work fine either :( when I try to use an external graphic like in this request: http://localhost:8080/cgi-bin/mapserv.exe?map=/program%20files/ms4w/apps/blp/test.map&REQUEST=getMap&SERVICE=WMS&VERSION=1.1.1&SRS=EPSG:4326&BBOX=3954683.0884047896,5499947.559657593,3954754.5911026173,5499966.522156349&LAYERS=Baugrenze,AllgWohngebiete&SLD_BODY=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%3CStyledLayerDescriptor+version%3D%221.1.0%22%3E%3CNamedLayer%3E%3CName%3EBaugrenze%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CName%3EBaugrenze%3C%2FName%3E%3CLineSymbolizer%3E%3CStroke%3E%3CGraphicStroke%3E%3CGraphic%3E%3CExternalGraphic%3E%3COnlineResource+xlink%3Ahref%3D%22http%3A%2F%2Flocalhost%3A8080%2FRsBaugrenze.svg%22%2F%3E%3CFormat%3Eimage%2Fsvg%2Bxml%3C%2FFormat%3E%3C%2FExternalGraphic%3E%3CSize%3E%3Cogc%3ALiteral%3E20%3C%2Fogc%3ALiteral%3E%3C%2FSize%3E%3C%2FGraphic%3E%3C%2FGraphicStroke%3E%3C%2FStroke%3E%3C%2FLineSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3CNamedLayer%3E%3CName%3EAllgWohngebiete%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CName%3EAllgWohngebiete%3C%2FName%3E%3CLineSymbolizer%3E%3CStroke%3E%3CCssParameter+name%3D%22stroke%22%3E%23ff00ff%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-opacity%22%3E1.00%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-width%22%3E5%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FLineSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3C%2FStyledLayerDescriptor%3E&WIDTH=600&HEIGHT=700&FORMAT=image/png in plain text the sld_body part looks like this: <?xml version="1.0" encoding="UTF-8"?> <StyledLayerDescriptor version="1.1.0"> <NamedLayer> <Name>Baugrenze</Name> <UserStyle> <FeatureTypeStyle> <Rule> <Name>Baugrenze</Name> <LineSymbolizer> <Stroke> <GraphicStroke> <Graphic> <ExternalGraphic> <OnlineResource xlink:href="http://localhost:8080/RsBaugrenze.svg"/> <Format>image/svg</Format> </ExternalGraphic> <Size><ogc:Literal>20</ogc:Literal></Size> </Graphic> </GraphicStroke> </Stroke> </LineSymbolizer> </Rule> </FeatureTypeStyle> </UserStyle> </NamedLayer> <NamedLayer> <Name>AllgWohngebiete</Name> <UserStyle> <FeatureTypeStyle> <Rule> <Name>AllgWohngebiete</Name> <LineSymbolizer> <Stroke> <CssParameter name="stroke">#ff00ff</CssParameter> <CssParameter name="stroke-opacity">1.00</CssParameter> <CssParameter name="stroke-width">5</CssParameter> </Stroke> </LineSymbolizer> </Rule> </FeatureTypeStyle> </UserStyle> </NamedLayer> </StyledLayerDescriptor> http://localhost:8080/RsBaugrenze.svg of course works fine, is available and geoserver had no problem using it as well. but the result is this: http://sicky.i-networx.de/temp/mapserv/sld_body_ext.png So it styles one layer with CSS parameteres but not the other one with an external graphic. To conclude: 1st problem: If I give the request an 'SLD=' it just gets ignored. Why? How can I fix this? 2nd problem: Why gets the external graphic in the SLD gets ignored? I'm pretty new to MapServer/GIS in general and hope I made myself clear and haven't forgotten anything important. If so, please say so and I give you the info which might help me solve this problem. And I hope the german words inside some of the documents don't confuse you. I would be really really happy if somebody could help me. And I would be grateful if this happens fast, since I need to solve this problem fastly because I need it to be solved to get on with my bachelor thesis. Thanks in Advance, Christian. -- View this message in context: http://www.nabble.com/SLD-ignored---External-Graphic-ignored-tp16586209p16586209.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jeffmckenna at gmail.com Wed Apr 9 07:50:58 2008 From: jeffmckenna at gmail.com (Jeff McKenna) Date: Wed, 9 Apr 2008 10:50:58 -0400 Subject: [MAPSERVER-USERS] Elevation model In-Reply-To: <16584563.post@talk.nabble.com> References: <16584563.post@talk.nabble.com> Message-ID: <ba4d2070804090750g3cb312b7m9bf13924fbb15a5f@mail.gmail.com> Give the Raster Data Access document a good thorough read: http://mapserver.gis.umn.edu/docs/howto/raster_data (it will answer your data format/steps questions) -jeff On Wed, Apr 9, 2008 at 7:37 AM, Ritesh Ambastha <group.ritesh at gmail.com> wrote: > > Dear Reader, > > Please shed some lights on elevation models supported by mapserver. > Elevations in cases of bridges, mountains, buildings,etc. > > Any steps to follow DEM (digital elevation model) in mapserver? > > > Your suggestions/tips will be highly appreciated. > > Thanks and Regards, > Ambastha > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080409/6e712d47/attachment.htm> From marco.sileri at virgilio.it Wed Apr 9 08:47:16 2008 From: marco.sileri at virgilio.it (marco.sileri at virgilio.it) Date: Wed, 9 Apr 2008 16:47:16 +0100 (GMT+01:00) Subject: [mapserver-users] help: load a static map Message-ID: <11933de9003.marco.sileri@virgilio.it> Hi I'm a student and I?m starting my first application of MapServer with my own data following the tutorial and I already have the following problem. I have a very simple shape data in geographic/WGS84 and also UTM/WGS84 format; I have picked the extension using ARCGIS and I have tried a static visualization of my map as it is shown in the first example of the tutorial. MAP IMAGETYPE PNG # EXTENT -97.348976 41.619778 -82.122902 49.385620 #geo states EXTENT 12.238976 41.619778 13.122902 49.385620 #geo rieti # EXTENT 73306.04 -295414.39 1501200.05 614634.59 #laea states # EXTENT 280000.0 4660000.0 376000.0 4735000.0 #UTM/WGS84 rieti SIZE 1000 1000 SHAPEPATH "/ms4w/apps/marco/data" IMAGECOLOR 255 255 255 # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # States polygon layer begins here NAME comuni DATA comuni_rieti_ll STATUS OFF TYPE POLYGON CLASS NAME "comuni" STYLE COLOR 232 232 232 OUTLINECOLOR 32 32 32 END END END # States polygon layer ends here I have tried the following things: - load my data using the geographic coordinates (and corresponding extension); - load my data using the UTM/WGS84 coordinates (and corresponding extension); - read the data through the html-page or entering the URL (http://localhost/cgi- bin/mapserv.exe?map=/ms4w/apps/marco/htdocs/example1-1. map&layer=states&mode=map) I always don?t have any error, but I only see the window in which the data should be visualised. It?s looks like the extension is wrong, but I have checked my shape with ArcGis and also with Ogrinfo ?. INFO: Open of `comuni_rieti_ll.shp' using driver `ESRI Shapefile' successful. Layer name: comuni_rieti_ll Geometry: Polygon Feature Count: 73 Extent: (12.436251, 42.089346) - (13.409627, 42.740986) Layer SRS WKT: GEOGCS["GCS_WGS_1984", DATUM ["WGS_1984", SPHEROID["WGS_1984",6378137,298.257223563]], PRIMEM["Greenwich",0], UNIT["Degree",0.0174532925199433]] AREA: Real (15.3) PERIMETER: Real (15.3) COD_AMM: Integer (9.0) COMUNE: String (35.0) PROVINCIA: String (20.0) CS_15: Integer (2.0) COD_REG: Integer (3.0) COD_PRO: Integer (3.0) COD_COM: Integer (3.0) What can be wrong and what other can be done to solve the problem? Can anybody, please, help me? Bye Marco From yassefa at dmsolutions.ca Wed Apr 9 08:59:03 2008 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 09 Apr 2008 11:59:03 -0400 Subject: [MAPSERVER-USERS] SLD ignored / External Graphic ignored In-Reply-To: <16586209.post@talk.nabble.com> References: <16586209.post@talk.nabble.com> Message-ID: <47FCE7C7.2050107@dmsolutions.ca> Christian, I did a quick test using you sld at (http://sicky.i-networx.de/temp/mapserv/test.sld) with local data (adapted to fit the sld : http://localhost/cgi-bin/mapserv.exe?map=f:/msapps/world_testdata/map/sicky.map&SERVICE=WMS&VeRsIoN=1.1.1&Request=GetMap&LAYERS=Baugrenze&BBOX=-81.366241839,42.39269586,-77.8780568047,44.13861927&SLD=http://sicky.i-networx.de/temp/mapserv/test.sld&FORMAT=png&WIDTH=400&HEIGHT=300&SRS=EPSG:4326&FORMAT=png&WIDTH=400&HEIGHT=300&STYLES= and I was able to render the layer Baugrenze using the styles defined in the sld. So I believe there is no issue with the sld. Common error is usually the SLD is not accessible but you mentioned that you already verified that 2nd point is that external graphics can only be of type png or gif (and not SVG). The reason being is that currently MapServer does not support SVG symbols. I am using Mapserver svn. If you want me to do local tests with your map/data, you could zip and send it to me and I will give it a try. Best Regards, Sicky wrote: > I'll start off with some background of what I'm trying to do: > I want to define SVGs as external graphic in an SLD to use these as > PointSymbolizers and LineSymbolizers. Firstly I tried GeoServer and it > worked quite fine, the only problem was, that it wasn't rendered very good. > So I thought of trying MapServer, but then the problems came... > > I'm running the latest ms4w on Windows 2000 with Apache 2.2.8. > > Here's link to my mapfile: http://sicky.i-networx.de/temp/mapserv/test.map > > That's the SLD file I let create with the GetStyles request and just changed > a color and width to see if it was recognized: > http://sicky.i-networx.de/temp/mapserv/test.sld > GetStyles document here: > http://sicky.i-networx.de/temp/mapserv/GetStyles.txt > > The important part of the GetCapabilities request is: > <UserDefinedSymbolization SupportSLD="1" UserLayer="0" UserStyle="1" > RemoteWFS="0"/> > (the whole one is located here: > http://sicky.i-networx.de/temp/mapserv/GetCapabilities.txt) > > Since GetStyles is working fine and the wms server supports SLD I don't see > a problem there (I searched the net for hours and hours to solve the problem > and tried any suggestion..). But when I request a map with an SLD like this: > http://localhost:8080/cgi-bin/mapserv.exe?map=/program%20files/ms4w/apps/blp/test.map&REQUEST=getMap&SERVICE=WMS&VERSION=1.1.1&SRS=EPSG:4326&BBOX=3954683.0884047896,5499947.559657593,3954754.5911026173,5499966.522156349&WIDTH=600&HEIGHT=700&LAYERS=Baugrenze,AllgWohngebiete&STYLES=&SLD=http://localhost:8080/test.sld&FORMAT=image/png > > it just ignores the sld and shows this: > http://sicky.i-networx.de/temp/mapserv/sld.png > > http://localhost:8080/test.sld itself is viewable in the browser without any > problems and the names of the layers are mathcing those in the mapfile.... > (note: in my mapfile i commented out the style for one layer to see if a > style in a mapfile overrides a sld) > > I played around with this a bit, e.g. naming it 'test.xml', removing > 'STYLES=' and so on... but nothing helped :( > > The I thought of the other method to use SLDs, with SLD_BODY. My request is > as follows: > http://localhost:8080/cgi-bin/mapserv.exe?map=/program%20files/ms4w/apps/blp/test.map&REQUEST=getMap&SERVICE=WMS&VERSION=1.1.1&SRS=EPSG:4326&BBOX=3954683.0884047896,5499947.559657593,3954754.5911026173,5499966.522156349&LAYERS=Baugrenze,AllgWohngebiete&SLD_BODY=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%3CStyledLayerDescriptor+version%3D%221.1.0%22%3E%3CNamedLayer%3E%3CName%3EBaugrenze%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CName%3EBaugrenze%3C%2FName%3E%3CLineSymbolizer%3E%3CStroke%3E%3CCssParameter+name%3D%22stroke%22%3E%23000000%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-opacity%22%3E1.00%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-width%22%3E5%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FLineSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3CNamedLayer%3E%3CName%3EAllgWohngebiete%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CName%3EAllgWohngebiete%3C%2FName%3E%3 CLineSymbolizer%3E%3CStroke%3E%3CCssParameter+name%3D%22stroke%22%3E%23ff00ff%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-opacity%22%3E1.00%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-width%22%3E5%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FLineSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3C%2FStyledLayerDescriptor%3E&WIDTH=600&HEIGHT=700&FORMAT=image/png > > the sld_body part in plain text looks like this: > <?xml version="1.0" encoding="UTF-8"?> > <StyledLayerDescriptor version="1.1.0"> > <NamedLayer> > <Name>Baugrenze</Name> > <UserStyle><FeatureTypeStyle> > <Rule><Name>Baugrenze</Name> > <LineSymbolizer> > <Stroke> > <CssParameter name="stroke">#000000</CssParameter> > <CssParameter name="stroke-opacity">1.00</CssParameter> > <CssParameter name="stroke-width">5</CssParameter> > </Stroke> > </LineSymbolizer> > </Rule> > </FeatureTypeStyle> > </UserStyle> > </NamedLayer> > <NamedLayer> > <Name>AllgWohngebiete</Name> > <UserStyle> > <FeatureTypeStyle> > <Rule> > <Name>AllgWohngebiete</Name> > <LineSymbolizer> > <Stroke> > <CssParameter name="stroke">#ff00ff</CssParameter> > <CssParameter name="stroke-opacity">1.00</CssParameter> > <CssParameter name="stroke-width">5</CssParameter> > </Stroke> > </LineSymbolizer> > </Rule> > </FeatureTypeStyle> > </UserStyle> > </NamedLayer> > </StyledLayerDescriptor> > > the result made me happy: > http://sicky.i-networx.de/temp/mapserv/sld_body.png > > at least now i know that my mapserver definately works with SLDs. but this > wouldn't be a solution since I really need to define a SLD file because it's > gonna be very big. So i really want 'SLD=' to work instead of 'SLD_BODY'. > > But 'SLD_BODY' doesn't work fine either :( > when I try to use an external graphic like in this request: > http://localhost:8080/cgi-bin/mapserv.exe?map=/program%20files/ms4w/apps/blp/test.map&REQUEST=getMap&SERVICE=WMS&VERSION=1.1.1&SRS=EPSG:4326&BBOX=3954683.0884047896,5499947.559657593,3954754.5911026173,5499966.522156349&LAYERS=Baugrenze,AllgWohngebiete&SLD_BODY=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%3CStyledLayerDescriptor+version%3D%221.1.0%22%3E%3CNamedLayer%3E%3CName%3EBaugrenze%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CName%3EBaugrenze%3C%2FName%3E%3CLineSymbolizer%3E%3CStroke%3E%3CGraphicStroke%3E%3CGraphic%3E%3CExternalGraphic%3E%3COnlineResource+xlink%3Ahref%3D%22http%3A%2F%2Flocalhost%3A8080%2FRsBaugrenze.svg%22%2F%3E%3CFormat%3Eimage%2Fsvg%2Bxml%3C%2FFormat%3E%3C%2FExternalGraphic%3E%3CSize%3E%3Cogc%3ALiteral%3E20%3C%2Fogc%3ALiteral%3E%3C%2FSize%3E%3C%2FGraphic%3E%3C%2FGraphicStroke%3E%3C%2FStroke%3E%3C%2FLineSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3CNamedLayer%3E%3CName%3EAll gWohngebiete%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CName%3EAllgWohngebiete%3C%2FName%3E%3CLineSymbolizer%3E%3CStroke%3E%3CCssParameter+name%3D%22stroke%22%3E%23ff00ff%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-opacity%22%3E1.00%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-width%22%3E5%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FLineSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3C%2FStyledLayerDescriptor%3E&WIDTH=600&HEIGHT=700&FORMAT=image/png > > in plain text the sld_body part looks like this: > <?xml version="1.0" encoding="UTF-8"?> > <StyledLayerDescriptor version="1.1.0"> > <NamedLayer> > <Name>Baugrenze</Name> > <UserStyle> > <FeatureTypeStyle> > <Rule> > <Name>Baugrenze</Name> > <LineSymbolizer> > <Stroke> > <GraphicStroke> > <Graphic> > <ExternalGraphic> > <OnlineResource xlink:href="http://localhost:8080/RsBaugrenze.svg"/> > <Format>image/svg</Format> > </ExternalGraphic> > <Size><ogc:Literal>20</ogc:Literal></Size> > </Graphic> > </GraphicStroke> > </Stroke> > </LineSymbolizer> > </Rule> > </FeatureTypeStyle> > </UserStyle> > </NamedLayer> > <NamedLayer> > <Name>AllgWohngebiete</Name> > <UserStyle> > <FeatureTypeStyle> > <Rule> > <Name>AllgWohngebiete</Name> > <LineSymbolizer> > <Stroke> > <CssParameter name="stroke">#ff00ff</CssParameter> > <CssParameter name="stroke-opacity">1.00</CssParameter> > <CssParameter name="stroke-width">5</CssParameter> > </Stroke> > </LineSymbolizer> > </Rule> > </FeatureTypeStyle> > </UserStyle> > </NamedLayer> > </StyledLayerDescriptor> > > http://localhost:8080/RsBaugrenze.svg of course works fine, is available and > geoserver had no problem using it as well. > > but the result is this: > http://sicky.i-networx.de/temp/mapserv/sld_body_ext.png > So it styles one layer with CSS parameteres but not the other one with an > external graphic. > > To conclude: > 1st problem: If I give the request an 'SLD=' it just gets ignored. Why? How > can I fix this? > 2nd problem: Why gets the external graphic in the SLD gets ignored? > > I'm pretty new to MapServer/GIS in general and hope I made myself clear and > haven't forgotten anything important. If so, please say so and I give you > the info which might help me solve this problem. > And I hope the german words inside some of the documents don't confuse you. > > I would be really really happy if somebody could help me. And I would be > grateful if this happens fast, since I need to solve this problem fastly > because I need it to be solved to get on with my bachelor thesis. > > Thanks in Advance, > Christian. -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Christian.Rueh at rostock.zgdv.de Wed Apr 9 09:30:03 2008 From: Christian.Rueh at rostock.zgdv.de (Sicky) Date: Wed, 9 Apr 2008 09:30:03 -0700 (PDT) Subject: [MAPSERVER-USERS] SLD ignored / External Graphic ignored In-Reply-To: <47FCE7C7.2050107@dmsolutions.ca> References: <16586209.post@talk.nabble.com> <47FCE7C7.2050107@dmsolutions.ca> Message-ID: <16590545.post@talk.nabble.com> Thanks for you quick reply and testing it :-) 1st: Ok, now I know that the SLD is working, but why not here? 2nd: Really? SVG isn't supported by MapServer? Then the use of it would be quite senseless for me. Or will MapServer render lines/outlines of polygones with PNGs or GIFs nicely? Because GeoServer doesn't (lots of gaps in the lines etc.)! Cheers and thanks again, Christian. Yewondwossen Assefa-2 wrote: > > Christian, > > I did a quick test using you sld at > (http://sicky.i-networx.de/temp/mapserv/test.sld) with local data > (adapted to fit the sld : > http://localhost/cgi-bin/mapserv.exe?map=f:/msapps/world_testdata/map/sicky.map&SERVICE=WMS&VeRsIoN=1.1.1&Request=GetMap&LAYERS=Baugrenze&BBOX=-81.366241839,42.39269586,-77.8780568047,44.13861927&SLD=http://sicky.i-networx.de/temp/mapserv/test.sld&FORMAT=png&WIDTH=400&HEIGHT=300&SRS=EPSG:4326&FORMAT=png&WIDTH=400&HEIGHT=300&STYLES= > and I was able to render the layer Baugrenze using the styles defined > in the sld. So I believe there is no issue with the sld. Common error > is usually the SLD is not accessible but you mentioned that you already > verified that > > 2nd point is that external graphics can only be of type png or gif > (and not SVG). The reason being is that currently MapServer does not > support SVG symbols. > > I am using Mapserver svn. If you want me to do local tests with your > map/data, you could zip and send it to me and I will give it a try. > > Best Regards, > > > Sicky wrote: >> I'll start off with some background of what I'm trying to do: >> I want to define SVGs as external graphic in an SLD to use these as >> PointSymbolizers and LineSymbolizers. Firstly I tried GeoServer and it >> worked quite fine, the only problem was, that it wasn't rendered very >> good. >> So I thought of trying MapServer, but then the problems came... >> >> I'm running the latest ms4w on Windows 2000 with Apache 2.2.8. >> >> Here's link to my mapfile: >> http://sicky.i-networx.de/temp/mapserv/test.map >> >> That's the SLD file I let create with the GetStyles request and just >> changed >> a color and width to see if it was recognized: >> http://sicky.i-networx.de/temp/mapserv/test.sld >> GetStyles document here: >> http://sicky.i-networx.de/temp/mapserv/GetStyles.txt >> >> The important part of the GetCapabilities request is: >> <UserDefinedSymbolization SupportSLD="1" UserLayer="0" UserStyle="1" >> RemoteWFS="0"/> >> (the whole one is located here: >> http://sicky.i-networx.de/temp/mapserv/GetCapabilities.txt) >> >> Since GetStyles is working fine and the wms server supports SLD I don't >> see >> a problem there (I searched the net for hours and hours to solve the >> problem >> and tried any suggestion..). But when I request a map with an SLD like >> this: >> http://localhost:8080/cgi-bin/mapserv.exe?map=/program%20files/ms4w/apps/blp/test.map&REQUEST=getMap&SERVICE=WMS&VERSION=1.1.1&SRS=EPSG:4326&BBOX=3954683.0884047896,5499947.559657593,3954754.5911026173,5499966.522156349&WIDTH=600&HEIGHT=700&LAYERS=Baugrenze,AllgWohngebiete&STYLES=&SLD=http://localhost:8080/test.sld&FORMAT=image/png >> >> it just ignores the sld and shows this: >> http://sicky.i-networx.de/temp/mapserv/sld.png >> >> http://localhost:8080/test.sld itself is viewable in the browser without >> any >> problems and the names of the layers are mathcing those in the >> mapfile.... >> (note: in my mapfile i commented out the style for one layer to see if a >> style in a mapfile overrides a sld) >> >> I played around with this a bit, e.g. naming it 'test.xml', removing >> 'STYLES=' and so on... but nothing helped :( >> >> The I thought of the other method to use SLDs, with SLD_BODY. My request >> is >> as follows: >> http://localhost:8080/cgi-bin/mapserv.exe?map=/program%20files/ms4w/apps/blp/test.map&REQUEST=getMap&SERVICE=WMS&VERSION=1.1.1&SRS=EPSG:4326&BBOX=3954683.0884047896,5499947.559657593,3954754.5911026173,5499966.522156349&LAYERS=Baugrenze,AllgWohngebiete&SLD_BODY=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%3CStyledLayerDescriptor+version%3D%221.1.0%22%3E%3CNamedLayer%3E%3CName%3EBaugrenze%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CName%3EBaugrenze%3C%2FName%3E%3CLineSymbolizer%3E%3CStroke%3E%3CCssParameter+name%3D%22stroke%22%3E%23000000%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-opacity%22%3E1.00%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-width%22%3E5%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FLineSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3CNamedLayer%3E%3CName%3EAllgWohngebiete%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CName%3EAllgWohngebiete%3C%2FName%3E%3 > CLineSymbolizer%3E%3CStroke%3E%3CCssParameter+name%3D%22stroke%22%3E%23ff00ff%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-opacity%22%3E1.00%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-width%22%3E5%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FLineSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3C%2FStyledLayerDescriptor%3E&WIDTH=600&HEIGHT=700&FORMAT=image/png >> >> the sld_body part in plain text looks like this: >> <?xml version="1.0" encoding="UTF-8"?> >> <StyledLayerDescriptor version="1.1.0"> >> <NamedLayer> >> <Name>Baugrenze</Name> >> <UserStyle><FeatureTypeStyle> >> <Rule><Name>Baugrenze</Name> >> <LineSymbolizer> >> <Stroke> >> <CssParameter name="stroke">#000000</CssParameter> >> <CssParameter name="stroke-opacity">1.00</CssParameter> >> <CssParameter name="stroke-width">5</CssParameter> >> </Stroke> >> </LineSymbolizer> >> </Rule> >> </FeatureTypeStyle> >> </UserStyle> >> </NamedLayer> >> <NamedLayer> >> <Name>AllgWohngebiete</Name> >> <UserStyle> >> <FeatureTypeStyle> >> <Rule> >> <Name>AllgWohngebiete</Name> >> <LineSymbolizer> >> <Stroke> >> <CssParameter name="stroke">#ff00ff</CssParameter> >> <CssParameter name="stroke-opacity">1.00</CssParameter> >> <CssParameter name="stroke-width">5</CssParameter> >> </Stroke> >> </LineSymbolizer> >> </Rule> >> </FeatureTypeStyle> >> </UserStyle> >> </NamedLayer> >> </StyledLayerDescriptor> >> >> the result made me happy: >> http://sicky.i-networx.de/temp/mapserv/sld_body.png >> >> at least now i know that my mapserver definately works with SLDs. but >> this >> wouldn't be a solution since I really need to define a SLD file because >> it's >> gonna be very big. So i really want 'SLD=' to work instead of 'SLD_BODY'. >> >> But 'SLD_BODY' doesn't work fine either :( >> when I try to use an external graphic like in this request: >> http://localhost:8080/cgi-bin/mapserv.exe?map=/program%20files/ms4w/apps/blp/test.map&REQUEST=getMap&SERVICE=WMS&VERSION=1.1.1&SRS=EPSG:4326&BBOX=3954683.0884047896,5499947.559657593,3954754.5911026173,5499966.522156349&LAYERS=Baugrenze,AllgWohngebiete&SLD_BODY=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%3CStyledLayerDescriptor+version%3D%221.1.0%22%3E%3CNamedLayer%3E%3CName%3EBaugrenze%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CName%3EBaugrenze%3C%2FName%3E%3CLineSymbolizer%3E%3CStroke%3E%3CGraphicStroke%3E%3CGraphic%3E%3CExternalGraphic%3E%3COnlineResource+xlink%3Ahref%3D%22http%3A%2F%2Flocalhost%3A8080%2FRsBaugrenze.svg%22%2F%3E%3CFormat%3Eimage%2Fsvg%2Bxml%3C%2FFormat%3E%3C%2FExternalGraphic%3E%3CSize%3E%3Cogc%3ALiteral%3E20%3C%2Fogc%3ALiteral%3E%3C%2FSize%3E%3C%2FGraphic%3E%3C%2FGraphicStroke%3E%3C%2FStroke%3E%3C%2FLineSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3CNamedLayer%3E%3CName%3EAll > gWohngebiete%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CName%3EAllgWohngebiete%3C%2FName%3E%3CLineSymbolizer%3E%3CStroke%3E%3CCssParameter+name%3D%22stroke%22%3E%23ff00ff%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-opacity%22%3E1.00%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-width%22%3E5%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FLineSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3C%2FStyledLayerDescriptor%3E&WIDTH=600&HEIGHT=700&FORMAT=image/png >> >> in plain text the sld_body part looks like this: >> <?xml version="1.0" encoding="UTF-8"?> >> <StyledLayerDescriptor version="1.1.0"> >> <NamedLayer> >> <Name>Baugrenze</Name> >> <UserStyle> >> <FeatureTypeStyle> >> <Rule> >> <Name>Baugrenze</Name> >> <LineSymbolizer> >> <Stroke> >> <GraphicStroke> >> <Graphic> >> <ExternalGraphic> >> <OnlineResource xlink:href="http://localhost:8080/RsBaugrenze.svg"/> >> <Format>image/svg</Format> >> </ExternalGraphic> >> <Size><ogc:Literal>20</ogc:Literal></Size> >> </Graphic> >> </GraphicStroke> >> </Stroke> >> </LineSymbolizer> >> </Rule> >> </FeatureTypeStyle> >> </UserStyle> >> </NamedLayer> >> <NamedLayer> >> <Name>AllgWohngebiete</Name> >> <UserStyle> >> <FeatureTypeStyle> >> <Rule> >> <Name>AllgWohngebiete</Name> >> <LineSymbolizer> >> <Stroke> >> <CssParameter name="stroke">#ff00ff</CssParameter> >> <CssParameter name="stroke-opacity">1.00</CssParameter> >> <CssParameter name="stroke-width">5</CssParameter> >> </Stroke> >> </LineSymbolizer> >> </Rule> >> </FeatureTypeStyle> >> </UserStyle> >> </NamedLayer> >> </StyledLayerDescriptor> >> >> http://localhost:8080/RsBaugrenze.svg of course works fine, is available >> and >> geoserver had no problem using it as well. >> >> but the result is this: >> http://sicky.i-networx.de/temp/mapserv/sld_body_ext.png >> So it styles one layer with CSS parameteres but not the other one with an >> external graphic. >> >> To conclude: >> 1st problem: If I give the request an 'SLD=' it just gets ignored. Why? >> How >> can I fix this? >> 2nd problem: Why gets the external graphic in the SLD gets ignored? >> >> I'm pretty new to MapServer/GIS in general and hope I made myself clear >> and >> haven't forgotten anything important. If so, please say so and I give you >> the info which might help me solve this problem. >> And I hope the german words inside some of the documents don't confuse >> you. >> >> I would be really really happy if somebody could help me. And I would be >> grateful if this happens fast, since I need to solve this problem fastly >> because I need it to be solved to get on with my bachelor thesis. >> >> Thanks in Advance, >> Christian. > > > -- > ---------------------------------------------------------------- > 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://www.nabble.com/SLD-ignored---External-Graphic-ignored-tp16586209p16590545.html Sent from the Mapserver - User mailing list archive at Nabble.com. From kobben at itc.nl Wed Apr 9 10:20:56 2008 From: kobben at itc.nl (Barend Kobben) Date: Wed, 09 Apr 2008 19:20:56 +0200 Subject: [MAPSERVER-USERS] SLD ignored / External Graphic ignored In-Reply-To: <16586209.post@talk.nabble.com> Message-ID: <C422C798.1DA6%kobben@itc.nl> Hi, I never tried the external SVG graphics, but the SLD problem sounds very familiar. Almost always I find this kind of problem having not much to do with the SLDs themselves, but with TMP file settings. This is certainly more likely if you say sending the SLD it in SLD-BODY works. 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. 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 Wed Apr 9 10:51:16 2008 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 09 Apr 2008 13:51:16 -0400 Subject: [MAPSERVER-USERS] SLD ignored / External Graphic ignored In-Reply-To: <C422C798.1DA6%kobben@itc.nl> References: <C422C798.1DA6%kobben@itc.nl> Message-ID: <47FD0214.7030804@dmsolutions.ca> Barend Kobben wrote: > > 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). > Barend I added a bug and a fix in mapserver svn for it to generate an error. See bug http://trac.osgeo.org/mapserver/ticket/2573 Best Regards -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From yassefa at dmsolutions.ca Wed Apr 9 10:59:39 2008 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 09 Apr 2008 13:59:39 -0400 Subject: [MAPSERVER-USERS] SLD ignored / External Graphic ignored In-Reply-To: <16590545.post@talk.nabble.com> References: <16586209.post@talk.nabble.com> <47FCE7C7.2050107@dmsolutions.ca> <16590545.post@talk.nabble.com> Message-ID: <47FD040B.1010400@dmsolutions.ca> Sicky wrote: > Thanks for you quick reply and testing it :-) > > 1st: Ok, now I know that the SLD is working, but why not here? > Barend comments could maybe explain you problem? If all is as expected, as I said I am willing to give it a try provided a test sample. > 2nd: Really? SVG isn't supported by MapServer? Then the use of it would be > quite senseless for me. Or will MapServer render lines/outlines of polygones > with PNGs or GIFs nicely? Because GeoServer doesn't (lots of gaps in the > lines etc.)! > SVG symbols are not supported (SVG as an output format is). I have not seen GeoServer rendering for this particular case so I can not compare. I guess you need to try it locally and see for yourself if it is acceptable. > Cheers and thanks again, > Christian. > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Steve.Lime at dnr.state.mn.us Wed Apr 9 10:45:19 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 09 Apr 2008 12:45:19 -0500 Subject: [mapserver-users] Mapserver 5 and Openlayers 2.5 passing of parameters. In-Reply-To: <10A58E451AF7442E8B186020DDBA59ED@Aileen> References: <10A58E451AF7442E8B186020DDBA59ED@Aileen> Message-ID: <47FCB9E4.5157.008F.0@dnr.state.mn.us> Hi Aileen: The direct setting of class expressions using via the syntax you're trying is no longer supported. It's not possible to apply any validation rules in this case. There is a work around using runtime substitution though. For example, if your mapfile looks like this: LAYER NAME 'foo' ... CLASS EXPRESSION '%foo_value%' ... END END Then you can set the expression like so: ...&foo_value=makati&... You can also validate the input using a regex, just add a metadata block like this to the layer above: METADATA # allow foo_value to be a string 1 to 10 chars in length, no special characters foo_value_validation_pattern '^[a-z]{1,10}$' END This applies to FILTERs as well. The syntax to change a class color is documented in the examples you've already seen. Steve >>> On 4/8/2008 at 8:25 PM, in message <10A58E451AF7442E8B186020DDBA59ED at Aileen>, "Aileen" <aileen.baylon at cybersoft.ph> wrote: > ----- Original Message ----- > From: "Aileen" <aileen at mapcentral.ph> > To: <mapserver-users at lists.osgeo.org> > Sent: Wednesday, April 09, 2008 8:28 AM > Subject: Mapserver 5 and Openlayers 2.5 passing of parameters. > > >>> Hi all, >>> >> We are currently using the latest release of Mapserver, the 5.0.2 version >> and Openlayers 2.5 >>> >>> We are having problems with rendering lines and polygons because although >>> it worked for us in Mapserver 4.10, we are told that there's a new syntax >>> for passing values to mapserver. >>> >>> Currently, here's part of the url that we are using to pass to mapserver: >>> >>> map_layer_class_expression=makati&map_layer_class_color=255 0 0. >>> >>> >>> We already have looked at your samples but with no avail. >>> >>> Can you help us with the new syntax? >> > > _______________________________________________ > 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 Wed Apr 9 14:35:18 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 09 Apr 2008 16:35:18 -0500 Subject: [mapserver-users] help: load a static map In-Reply-To: <11933de9003.marco.sileri@virgilio.it> References: <11933de9003.marco.sileri@virgilio.it> Message-ID: <47FCEFCC.5157.008F.0@dnr.state.mn.us> Hi Marco: The name of the States layer in your mapfile is 'comuni' yet you're turning on a layer with a different name (&layer=states) in your URL. I imagine that's the problem. Steve >>> On 4/9/2008 at 10:47 AM, in message <11933de9003.marco.sileri at virgilio.it>, <marco.sileri at virgilio.it> wrote: > Hi > I'm a student and I?m starting my first application of MapServer > with my own data following the tutorial and I already have the > following problem. > > I have a very simple shape data in > geographic/WGS84 and also UTM/WGS84 format; I have picked the extension > using ARCGIS and I have tried a static visualization of my map as it is > shown in the first example of the tutorial. > > > MAP > IMAGETYPE PNG > # EXTENT -97.348976 41.619778 -82.122902 49.385620 #geo > states > EXTENT 12.238976 41.619778 13.122902 49.385620 > #geo rieti > # EXTENT 73306.04 -295414.39 1501200.05 > 614634.59 #laea states > # EXTENT 280000.0 4660000.0 376000.0 > 4735000.0 #UTM/WGS84 rieti > SIZE 1000 1000 > > SHAPEPATH "/ms4w/apps/marco/data" > IMAGECOLOR 255 255 255 > > > # Start of LAYER DEFINITIONS > --------------------------------------------- > LAYER # States polygon > layer begins here > NAME comuni > DATA comuni_rieti_ll > STATUS OFF > TYPE POLYGON > > CLASS > NAME > "comuni" > > STYLE > COLOR 232 232 232 > OUTLINECOLOR > 32 32 32 > END > END > END # States polygon layer ends here > > > I > have tried the following things: > - load my data using the geographic > coordinates (and corresponding extension); > - load my data using the > UTM/WGS84 coordinates (and corresponding extension); > - read the data > through the html-page or entering the URL (http://localhost/cgi- > bin/mapserv.exe?map=/ms4w/apps/marco/htdocs/example1-1. > map&layer=states&mode=map) > > I always don?t have any error, but I only > see the window in which the data should be visualised. > > It?s looks > like the extension is wrong, but I have checked my shape with ArcGis > and also with Ogrinfo ?. > INFO: Open of `comuni_rieti_ll.shp' > > using driver `ESRI Shapefile' successful. > > Layer name: comuni_rieti_ll > Geometry: Polygon > Feature Count: 73 > Extent: (12.436251, 42.089346) - > (13.409627, 42.740986) > Layer SRS WKT: > GEOGCS["GCS_WGS_1984", > DATUM > ["WGS_1984", > SPHEROID["WGS_1984",6378137,298.257223563]], > > PRIMEM["Greenwich",0], > UNIT["Degree",0.0174532925199433]] > AREA: > Real (15.3) > PERIMETER: Real (15.3) > COD_AMM: Integer (9.0) > COMUNE: > String (35.0) > PROVINCIA: String (20.0) > CS_15: Integer (2.0) > COD_REG: > Integer (3.0) > COD_PRO: Integer (3.0) > COD_COM: Integer (3.0) > > > What can > be wrong and what other can be done to solve the problem? > > Can > anybody, please, help me? > > Bye Marco > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From temiz at deprem.gov.tr Wed Apr 9 23:43:44 2008 From: temiz at deprem.gov.tr (orkun) Date: Thu, 10 Apr 2008 09:43:44 +0300 Subject: [mapserver-users] getting mouseclick x,y Message-ID: <1207809824.6411.0.camel@orkun-desktop> hello I wonder how I can get mouseclick x,y values in html and pass them to javamapscript ? regards -- Ahmet Temiz Jeo. M?h. Afet ??leri Gen. Md.l??? Deprem Ar. D. Ahmet Temiz Geo. Eng. General Dir. of Disaster Affairs -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From pgiannini at bytewise.it Thu Apr 10 03:15:23 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Thu, 10 Apr 2008 12:15:23 +0200 (CEST) Subject: [mapserver-users] help: load a static map In-Reply-To: <11933de9003.marco.sileri@virgilio.it> References: <11933de9003.marco.sileri@virgilio.it> Message-ID: <13498.62.77.56.13.1207822523.squirrel@localhost.localdomain> The Layer's STATUS is set to OFF, you must set on ON or DEFAULT to activate it. look here: http://mapserver.gis.umn.edu/docs/reference/mapfile/layer. Hope is useful. ciao ................................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Mer, Aprile 9, 2008 17:47, marco.sileri at virgilio.it wrote: > Hi > I'm a student and I???m starting my first application of MapServer > with my own data following the tutorial and I already have the > following problem. > > I have a very simple shape data in > geographic/WGS84 and also UTM/WGS84 format; I have picked the extension > using ARCGIS and I have tried a static visualization of my map as it is > shown in the first example of the tutorial. > > > MAP > IMAGETYPE PNG > # EXTENT -97.348976 41.619778 -82.122902 49.385620 #geo > states > EXTENT 12.238976 41.619778 13.122902 49.385620 > #geo rieti > # EXTENT 73306.04 -295414.39 1501200.05 > 614634.59 #laea states > # EXTENT 280000.0 4660000.0 376000.0 > 4735000.0 #UTM/WGS84 rieti > SIZE 1000 1000 > > SHAPEPATH "/ms4w/apps/marco/data" > IMAGECOLOR 255 255 255 > > > # Start of LAYER DEFINITIONS > --------------------------------------------- > LAYER # States polygon > layer begins here > NAME comuni > DATA comuni_rieti_ll > STATUS OFF > TYPE POLYGON > > CLASS > NAME > "comuni" > > STYLE > COLOR 232 232 232 > OUTLINECOLOR > 32 32 32 > END > END > END # States polygon layer ends here > > > I > have tried the following things: > - load my data using the geographic > coordinates (and corresponding extension); > - load my data using the > UTM/WGS84 coordinates (and corresponding extension); > - read the data > through the html-page or entering the URL (http://localhost/cgi- > bin/mapserv.exe?map=/ms4w/apps/marco/htdocs/example1-1. > map&layer=states&mode=map) > > I always don???t have any error, but I only > see the window in which the data should be visualised. > > It???s looks > like the extension is wrong, but I have checked my shape with ArcGis > and also with Ogrinfo ???. > INFO: Open of `comuni_rieti_ll.shp' > > using driver `ESRI Shapefile' successful. > > Layer name: comuni_rieti_ll > Geometry: Polygon > Feature Count: 73 > Extent: (12.436251, 42.089346) - > (13.409627, 42.740986) > Layer SRS WKT: > GEOGCS["GCS_WGS_1984", > DATUM > ["WGS_1984", > SPHEROID["WGS_1984",6378137,298.257223563]], > > PRIMEM["Greenwich",0], > UNIT["Degree",0.0174532925199433]] > AREA: > Real (15.3) > PERIMETER: Real (15.3) > COD_AMM: Integer (9.0) > COMUNE: > String (35.0) > PROVINCIA: String (20.0) > CS_15: Integer (2.0) > COD_REG: > Integer (3.0) > COD_PRO: Integer (3.0) > COD_COM: Integer (3.0) > > > What can > be wrong and what other can be done to solve the problem? > > Can > anybody, please, help me? > > Bye Marco > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From alex at sigte.udg.edu Thu Apr 10 05:13:00 2008 From: alex at sigte.udg.edu (Alexandre Busquets Triola) Date: Thu, 10 Apr 2008 14:13:00 +0200 Subject: [mapserver-users] DGN Message-ID: <47FE044C.1080405@sigte.udg.edu> Hello, I'm inexperienced with mapserver, I would like to load a dgn file, it has a text layer, and some line layers. I can load this file into mapserver as layer, but i can't load the text Labels. Somebody had do it anything like this? Thanks -- _________________________________________________________________ Alexandre Busquets Triola Servei de Sistemes d'Informaci? Geogr?fica i Teledetecci? (SIGTE) Universitat de Girona Pl. Ferrater Mora, 1 17071 Girona Tel. 972 41 80 39 Fax. 972 41 82 30 alex at sigte.udg.edu http://www.sigte.udg.es/ _________________________________________________________________ From Christian.Rueh at rostock.zgdv.de Thu Apr 10 05:49:00 2008 From: Christian.Rueh at rostock.zgdv.de (Sicky) Date: Thu, 10 Apr 2008 05:49:00 -0700 (PDT) Subject: [MAPSERVER-USERS] SLD ignored / External Graphic ignored In-Reply-To: <C422C798.1DA6%kobben@itc.nl> References: <16586209.post@talk.nabble.com> <C422C798.1DA6%kobben@itc.nl> Message-ID: <16608571.post@talk.nabble.com> Hi Barend! Thanks, this solved my problem! :-) I knew it was fairly easy, but you find so much about that topic..... And great that there will be an error message implemented. It's annoying when you have something which clearly doesn't work but you have absolutely no idea why it isn't working.... @Yewondwossen: Is there any planning on supporting SVGs as ExternalGraphics? If so, please make it better than in GeoServer: http://sicky.i-networx.de/temp/geoserv/geoserv_svg_probs.png Barend K?bben wrote: > > Hi, > > I never tried the external SVG graphics, but the SLD problem sounds very > familiar. Almost always I find this kind of problem having not much to do > with the SLDs themselves, but with TMP file settings. This is certainly > more > likely if you say sending the SLD it in SLD-BODY works. > > 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. > > > > > 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. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/SLD-ignored---External-Graphic-ignored-tp16586209p16608571.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Janosch.Skrobek at trier.de Thu Apr 10 06:00:23 2008 From: Janosch.Skrobek at trier.de (Janosch.Skrobek at trier.de) Date: Thu, 10 Apr 2008 15:00:23 +0200 Subject: [mapserver-users] JGW+JPG -> TIFF In-Reply-To: <13498.62.77.56.13.1207822523.squirrel@localhost.localdomain> References: <11933de9003.marco.sileri@virgilio.it> <13498.62.77.56.13.1207822523.squirrel@localhost.localdomain> Message-ID: <59CDEE83AFA9B944A7FB96B032E7537D6E9619@rh-ex-02.rathaus.trier> Hello, I have a set of orthophotos which are saved as JPG. Each picture has a corresponding JGW file. Can I somehow implement these into a mapserver layer? Or do I need to create georeferenced tiffs? If so, how can I combine the JGW and JPGs into a tiff? Thank you Janosch -------------------------------------------------------------------------------- Diese E-Mail kann vertrauliche und/oder rechtlich gesch?tzte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt?mlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. Der rechtsverbindliche elektronische Schriftverkehr mit der Stadt Trier ist ?ber diese E-Mail-Adresse derzeit noch nicht m?glich. -------------------------------------------------------------------------------- From c.pelliconi at sis-ter.it Thu Apr 10 06:48:46 2008 From: c.pelliconi at sis-ter.it (Carlo Pelliconi) Date: Thu, 10 Apr 2008 15:48:46 +0200 Subject: [mapserver-users] JGW+JPG -> TIFF In-Reply-To: <59CDEE83AFA9B944A7FB96B032E7537D6E9619@rh-ex-02.rathaus.trier> References: <11933de9003.marco.sileri@virgilio.it> <13498.62.77.56.13.1207822523.squirrel@localhost.localdomain> <59CDEE83AFA9B944A7FB96B032E7537D6E9619@rh-ex-02.rathaus.trier> Message-ID: <47FE1ABE.5080903@sis-ter.it> Hi. If you create a layer in the mapfile, with DATA set to your-raster.jpg, it automatically reads .jgw (it must have the same name of the jpg file) and users its informations for georeferencing it. Specify also TYPE raster and if you want MIN/MAXSCALE. If you prefer tiff file, you must convert jpg in tif by means of a graphic editor and then translate .jgw in .tfw. It could request not only renaming the file, but also modify some coefficients defined inside the .jgw file (open it with notepad, it is simple text). Hope this helps. Bye Janosch.Skrobek at trier.de ha scritto: > Hello, > > I have a set of orthophotos which are saved as JPG. Each picture has a > corresponding JGW file. Can I somehow implement these into a mapserver > layer? Or do I need to create georeferenced tiffs? If so, how can I > combine the JGW and JPGs into a tiff? > > > Thank you > Janosch > > -------------------------------------------------------------------------------- > > Diese E-Mail kann vertrauliche und/oder rechtlich gesch?tzte Informationen enthalten. > Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt?mlich erhalten haben, > informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte > Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. Der > rechtsverbindliche elektronische Schriftverkehr mit der Stadt Trier ist ?ber diese > E-Mail-Adresse derzeit noch nicht m?glich. > > -------------------------------------------------------------------------------- > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- ing. Carlo Pelliconi c.pelliconi at sis-ter.it SIS.TER S.p.A. www.sis-ter.it via Mentana, 10 40026 Imola (BO) Italy cell +39 333 6375379 tel +39 0542 364034 fax +39 0542 612130 ATTENZIONE! Questo documento ? indirizzato esclusivamente al destinatario. Tutte le informazioni ivi contenute, compresi eventuali allegati, sono soggette a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di "privacy" e ne ? proibita l'utilizzazione da parte di altri soggetti. Si ricorda che la diffusione l'utilizzo e/o la conservazione dei dati ricevuti per errore costituisce violazione di carattere penale ai sensi dell'art. 616 Codice penale (Violazione, sottrazione e soppressione di corrispondenza). Se avesse ricevuto per errore questo messaggio, La preghiamo cortesemente di contattare il mittente al pi? presto e di cancellare il messaggio subito dopo. Grazie. ATTENTION! This message is being sent from Sis.Ter S.p.A. and may contain information which is confidential or privileged. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. Any unauthorized use of the content of this message is a breach of your duty to respect the confidentiality of the correspondence between other persons and can expose the responsible party to civil and/or criminal penalties (D.Lgs. 196/2003 "Tutela della privacy" e art. 616 Codice penale "Violazione, sottrazione e soppressione di corrispondenza"), and may constitute a more serious offence. Thanks. ACHTUNG! Dieses Dokument ist ausschlie?lich dem Empf?nger vorbehalten. Die darin enthaltenen Informationen, auch jene in etwaigen Anlagen, gelten im Sinne des Dekrets Nr. 196/2003 in Sachen "Privacy" als streng vertraulich und d?rfen von anderen Personen nicht verwende werden. Wer diese Mitteilung irrt?mlicherweise erh?lt ist gebeten uns umgehend zu informieren und anschlie?end die Mitteilung zu vernichten. Vielen Dank. From warmerdam at pobox.com Thu Apr 10 08:55:41 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 10 Apr 2008 11:55:41 -0400 Subject: [mapserver-users] DGN In-Reply-To: <47FE044C.1080405@sigte.udg.edu> References: <47FE044C.1080405@sigte.udg.edu> Message-ID: <47FE387D.2020600@pobox.com> Alexandre Busquets Triola wrote: > Hello, > > I'm inexperienced with mapserver, > > I would like to load a dgn file, it has a text layer, and some line layers. > > I can load this file into mapserver as layer, but i can't load the text > Labels. > > Somebody had do it anything like this? Alexandre, The vector access howto talks about DGN a bit. I would suggest reviewing it. Are these DGN v8 or newer files? If so, they are unsupported. But OGR does support earlier dgn files. DGN files are also supported for "auto styling", a mechanism to utilize the color, text, line width and such characteristics when drawing features rather than having to explicitly control all this in the map file using classes. The fidelity of this autostyling is not great, but gives an appearance similar to how the file might look in microstation. 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 | President OSGeo, http://osgeo.org From tom_price at yahoo.com Thu Apr 10 09:11:44 2008 From: tom_price at yahoo.com (Tom Price) Date: Thu, 10 Apr 2008 09:11:44 -0700 (PDT) Subject: [mapserver-users] Transparent gifs in Mapscript Message-ID: <269191.63202.qm@web50307.mail.re2.yahoo.com> In Mapscript 3.6, the saveImage method had a parameter that allowed the transparent color to be specified. $img = $map->draw(); $img->saveImage($imgfile, MS_GIF, hexdec('FFFFCC'), 0, 0); I'm porting to 4.8.2 and still discovering differences in the object model. The following lines seem to get me a gif, but how do I tell it which color is transparent? $map->selectOutputFormat('gif'); ... $img = $map->draw(); $img->saveImage($imgfile); Thanks for your help. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080410/b228493f/attachment.htm> From reh2 at prodigy.net Thu Apr 10 09:22:27 2008 From: reh2 at prodigy.net (ROBERT HOLLINGSWORTH) Date: Thu, 10 Apr 2008 09:22:27 -0700 (PDT) Subject: [mapserver-users] php/mapscript and OWS Message-ID: <801601.23370.qm@web80508.mail.mud.yahoo.com> Hello, I've loaded latest MS4W 2.x (therefore PHP 5.x) and am trying to verify Mapscript's OwsRequestObj and $mapobj->owsdispatch() on a fairly ordinary shp-based mapfile that works well where mapserv.exe is the WMS server. The requestobj seems healthy and owsdispatch seems successful on WMS GetCapabilities. On a GetMap, owsdispatch is returning MS_SUCCESS, but all the image output formats are coming thru damaged or truncated in some way. When running GetMap in a browser, there are corruption messages for PNG and GIF, while JPG displays as a very "disturbed" image that gdalinfo indicates is currupted. The docs suggest that owsdispatch() should be able to dump the image to the client without further manipulation, so I don't know what I might be missing. Or if my environment is somehow tainted from older MS4Ws (on PHP 4). I uninstalled the old apache that I was using and installed the new MS4W in c:\ to be as generic as possible. Any ideas out there? thanks, Robert H. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080410/b361129f/attachment.htm> From pianosnake at gmail.com Thu Apr 10 09:54:18 2008 From: pianosnake at gmail.com (Florin A.) Date: Thu, 10 Apr 2008 10:54:18 -0600 Subject: [mapserver-users] Re: flash swf output In-Reply-To: <47F4FE24.2000109@dmsolutions.ca> References: <1d674ec80804021057j4e79a9a7o3fda999d13ec86a0@mail.gmail.com> <47F4FE24.2000109@dmsolutions.ca> Message-ID: <1d674ec80804100954r2f6c7a66h297ce00a02c7fd08@mail.gmail.com> The reason to have names for the buttons is so that the loader swf can reference them with Action Script and change their color, position, etc... This could be done even without having names, because at runtime the Flash player assigns to each movie clip a name if it does not have one. These are called 'instance1', 'instance2', 'instance3' etc... These can be referenced by Action Script. Unfortunately, the buttons in the SWF output from MapServer can't be referenced by ActionScript at all. Neither with the 'instance1' syntax, nor with the new 'button212', 'button213', etc names that are assigned to the buttons with this fix. I am not sure why this is. I've created a few Ming movies to test this. Make a simple movie in MING with two buttons. Don't give them names. Then create a Flash movie with two buttons named thebtn, and one called loadming, a blank movie on the stage called swfContainer, and this actionscript which will load ming_output.swf. var mcLoader:MovieClipLoader = new MovieClipLoader(); thebtn.onRelease = function() { for (var mcname in swfContainer) { trace(mcname); if (mcname == "instance2") { _root.swfContainer[mcname]._x += 10; } } }; loadming.onRelease = function(){ mcLoader.loadClip("ming_output.swf", swfContainer); } If you load any Ming swf with this script, you'll be able to move 10 pixels to the right anything in that swf called instance2. If you load a MapServer swf you won't be able to do this. All of the buttons in the swf will move 10 pixels to the right because _root.swfContainer.instance1 returns a reference to the parent _root.swfContainer . I'm trying to look at the mapswf.c code to see why this might be happening, but its over 3000 lines, so it will be a while, unless anybody has some ideas. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080410/503ac386/attachment.htm> From yassefa at dmsolutions.ca Thu Apr 10 10:28:36 2008 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Thu, 10 Apr 2008 13:28:36 -0400 Subject: [mapserver-users] php/mapscript and OWS In-Reply-To: <801601.23370.qm@web80508.mail.mud.yahoo.com> References: <801601.23370.qm@web80508.mail.mud.yahoo.com> Message-ID: <47FE4E44.204@dmsolutions.ca> Robert, what does you php script looks like? Quick test I did with a png output and works looks like this: request : http://localhost/msapps/wxs/test.php?SERVICE=WMS&VeRsIoN=1.1.1&Request=GetMap&LAYERS=WorldGen_Outline&FORMAT=png&WIDTH=400&HEIGHT=300&SRS=EPSG:4326&FORMAT=png&WIDTH=400&HEIGHT=300&STYLES=&BBOX=-180.0,-90.0,180.0,90.0&SLD=http://localhost/msapps/world_testdata/tests/sld_tests/sld_line_multi_filter.xml test.php <?php dl("php_mapscript.dll"); $request = ms_newowsrequestobj(); $request->loadparams(); ms_ioinstallstdouttobuffer(); $oMap = ms_newMapobj("f:/msapps/world_testdata/map/world_testdata.map"); $oMap->owsdispatch($request); $contenttype = ms_iostripstdoutbuffercontenttype(); //if ($contenttype == 'image/png') header('Content-type: image/png'); ms_iogetStdoutBufferBytes(); ms_ioresethandlers(); ?> Best Regards ROBERT HOLLINGSWORTH wrote: > Hello, > I've loaded latest MS4W 2.x (therefore PHP 5.x) > and am trying to verify Mapscript's > OwsRequestObj and $mapobj->owsdispatch() > on a fairly ordinary shp-based mapfile > that works well where mapserv.exe is > the WMS server. > > The requestobj seems healthy and > owsdispatch seems successful on WMS > GetCapabilities. On a GetMap, > owsdispatch is returning MS_SUCCESS, > but all the image output formats are > coming thru damaged or truncated in > some way. When running GetMap > in a browser, there are corruption > messages for PNG and GIF, > while JPG displays as a very "disturbed" > image that gdalinfo indicates is currupted. > > The docs suggest that owsdispatch() should > be able to dump the image to the client without > further manipulation, so I don't know what I > might be missing. > > Or if my environment is somehow tainted from > older MS4Ws (on PHP 4). I uninstalled the old > apache that I was using and installed the new > MS4W in c:\ to be as generic as possible. > > Any ideas out there? > > thanks, > Robert H. > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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 reh2 at prodigy.net Thu Apr 10 11:19:04 2008 From: reh2 at prodigy.net (ROBERT HOLLINGSWORTH) Date: Thu, 10 Apr 2008 11:19:04 -0700 (PDT) Subject: [mapserver-users] php/mapscript and OWS In-Reply-To: <47FE4E44.204@dmsolutions.ca> Message-ID: <432034.48091.qm@web80506.mail.mud.yahoo.com> I tried your sequence on my mapfile and it worked. My original code was missing this at the bottom: ms_iogetStdoutBufferBytes(); I'd been experimenting with header(...) and ms_ioresethandlers() but not necessarily at the same time, and without the "Bytes" func. I need to go back and read the descriptions of these ms_io funcs. many thanks, Robert Yewondwossen Assefa <yassefa at dmsolutions.ca> wrote: Robert, what does you php script looks like? Quick test I did with a png output and works looks like this: request : http://localhost/msapps/wxs/test.php?SERVICE=WMS&VeRsIoN=1.1.1&Request=GetMap&LAYERS=WorldGen_Outline&FORMAT=png&WIDTH=400&HEIGHT=300&SRS=EPSG:4326&FORMAT=png&WIDTH=400&HEIGHT=300&STYLES=&BBOX=-180.0,-90.0,180.0,90.0&SLD=http://localhost/msapps/world_testdata/tests/sld_tests/sld_line_multi_filter.xml test.php dl("php_mapscript.dll"); $request = ms_newowsrequestobj(); $request->loadparams(); ms_ioinstallstdouttobuffer(); $oMap = ms_newMapobj("f:/msapps/world_testdata/map/world_testdata.map"); $oMap->owsdispatch($request); $contenttype = ms_iostripstdoutbuffercontenttype(); //if ($contenttype == 'image/png') header('Content-type: image/png'); ms_iogetStdoutBufferBytes(); ms_ioresethandlers(); ?> Best Regards ROBERT HOLLINGSWORTH wrote: > Hello, > I've loaded latest MS4W 2.x (therefore PHP 5.x) > and am trying to verify Mapscript's > OwsRequestObj and $mapobj->owsdispatch() > on a fairly ordinary shp-based mapfile > that works well where mapserv.exe is > the WMS server. > > The requestobj seems healthy and > owsdispatch seems successful on WMS > GetCapabilities. On a GetMap, > owsdispatch is returning MS_SUCCESS, > but all the image output formats are > coming thru damaged or truncated in > some way. When running GetMap > in a browser, there are corruption > messages for PNG and GIF, > while JPG displays as a very "disturbed" > image that gdalinfo indicates is currupted. > > The docs suggest that owsdispatch() should > be able to dump the image to the client without > further manipulation, so I don't know what I > might be missing. > > Or if my environment is somehow tainted from > older MS4Ws (on PHP 4). I uninstalled the old > apache that I was using and installed the new > MS4W in c:\ to be as generic as possible. > > Any ideas out there? > > thanks, > Robert H. > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080410/d22fe372/attachment.htm> From paul_pag00 at hotmail.com Thu Apr 10 11:56:06 2008 From: paul_pag00 at hotmail.com (Paul Alarcon) Date: Thu, 10 Apr 2008 18:56:06 +0000 Subject: [mapserver-users] Php mapscript manual Message-ID: <BAY141-W34650DC55DC585A847637CEEEC0@phx.gbl> Hello i want to make an interface in php but i dont know all the commands for this. Does anyone know where i can find a tutorial or manual for php mapscript ? Thanks _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx From Jukka.Rahkonen at mmmtike.fi Thu Apr 10 12:32:32 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 10 Apr 2008 22:32:32 +0300 Subject: [mapserver-users] Tileindex and drawing order of tiles References: <ae9185aa0804060846r438b08frd3f16b556a06a39c@mail.gmail.com> <7E62DF5A-BB90-4C4A-A2F3-23A6F57D7175@gmail.com> Message-ID: <CC197224AC75CE4DB23F739B16891B86E33D75@tikka.haapa.mmm.fi> Hi, I started to wonder if it is be possible to define the drawing order of image tiles by tweaking with tileindex. It might be of some use if, for example, there are recent overlapping images which would be fine to have always on top of older images. Perhaps the tileindex shapefile could be sorted in some clever way? -Jukka Rahkonen- From armin.burger at gmx.net Thu Apr 10 12:48:31 2008 From: armin.burger at gmx.net (Armin Burger) Date: Thu, 10 Apr 2008 21:48:31 +0200 Subject: [mapserver-users] Tileindex and drawing order of tiles In-Reply-To: <CC197224AC75CE4DB23F739B16891B86E33D75@tikka.haapa.mmm.fi> References: <ae9185aa0804060846r438b08frd3f16b556a06a39c@mail.gmail.com> <7E62DF5A-BB90-4C4A-A2F3-23A6F57D7175@gmail.com> <CC197224AC75CE4DB23F739B16891B86E33D75@tikka.haapa.mmm.fi> Message-ID: <47FE6F0F.6080903@gmx.net> Jukka if you have a column you can use for sorting you could rewrite the shapefile using the sortshp tool provided with mapserver. The problem might be how to add this field if you create the shapefile with gdaltindex. One could use a Perl/PHP/Python script to update a sort column in the shape dbf based on an information in another file (dbase, txt) or database. Or if you anyway use Postgis you could put the tileindex in a Postgis table and define the DATA tag in the map file with an ORDER BY at the end. Also here you'd need to find a way to set the sort order in a column. Armin On 10/04/2008 21:32, Rahkonen Jukka wrote: > Hi, > > I started to wonder if it is be possible to define the drawing order of image tiles by tweaking with tileindex. It might be of some use if, for example, there are recent overlapping images which would be fine to have always on top of older images. Perhaps the tileindex shapefile could be sorted in some clever way? > > -Jukka Rahkonen- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From gregor at hostgis.com Thu Apr 10 13:25:45 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Thu, 10 Apr 2008 14:25:45 -0600 Subject: [mapserver-users] Php mapscript manual In-Reply-To: <BAY141-W34650DC55DC585A847637CEEEC0@phx.gbl> References: <BAY141-W34650DC55DC585A847637CEEEC0@phx.gbl> Message-ID: <47FE77C9.6010606@hostgis.com> Paul Alarcon wrote: > Hello i want to make an interface in php but i dont know all the commands for this. Does anyone know where i can find a tutorial or manual for php mapscript ? The Mapserver website, in Documents. http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From lists at dipole-consulting.com Thu Apr 10 13:35:35 2008 From: lists at dipole-consulting.com (Didrik Pinte) Date: Thu, 10 Apr 2008 22:35:35 +0200 Subject: [mapserver-users] Php mapscript manual In-Reply-To: <BAY141-W34650DC55DC585A847637CEEEC0@phx.gbl> References: <BAY141-W34650DC55DC585A847637CEEEC0@phx.gbl> Message-ID: <1207859735.8268.3.camel@ddp.simpson> On Thu, 2008-04-10 at 18:56 +0000, Paul Alarcon wrote: > Hello i want to make an interface in php but i dont know all the commands for this. Does anyone know where i can find a tutorial or manual for php mapscript ? > Thanks > Hi Paul, Have a look over here : http://mapserver.gis.umn.edu/docs . This is the right place to start. This document could be the right one : http://mapserver.gis.umn.edu/docs/howto/phpmapscript-byexample Regards, Didrik From ltrevinoh at gmail.com Thu Apr 10 18:05:44 2008 From: ltrevinoh at gmail.com (=?ISO-8859-1?Q?Luis_Trevi=F1o?=) Date: Thu, 10 Apr 2008 20:05:44 -0500 Subject: [mapserver-users] getting mouseclick x,y In-Reply-To: <1207809824.6411.0.camel@orkun-desktop> References: <1207809824.6411.0.camel@orkun-desktop> Message-ID: <d7ba910a0804101805j25da1592rdafdd5450528a53@mail.gmail.com> Ahmet: yo can try with jbox. It's an applet and works fine for me. Take a look at: http://mapserver.gis.umn.edu/docs/howto/jbox regards, Luis 2008/4/10, orkun <temiz at deprem.gov.tr>: > hello > > I wonder how I can get mouseclick x,y values in html and pass > them to javamapscript ? > > regards > -- > Ahmet Temiz > Jeo. M?h. > Afet ??leri Gen. Md.l??? > Deprem Ar. D. > > Ahmet Temiz > Geo. Eng. > General Dir. of > Disaster Affairs > > > > -- > 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 > From stefan.schwarzer at grid.unep.ch Fri Apr 11 00:59:11 2008 From: stefan.schwarzer at grid.unep.ch (Stefan Schwarzer) Date: Fri, 11 Apr 2008 09:59:11 +0200 Subject: [mapserver-users] WMS for SRTM ? How to implement? Message-ID: <7C499421-2FF7-4391-BCC5-9C41AE16D530@grid.unep.ch> Hi there, shouldn't be too complicated to include a WMS into one's own mapservice, no? But, don't know why, although I've already done this a couple of years ago, I don't succeed in a) finding the right way to program the map file code and b) finding a working WMS example. Many links are dead ( for example from this site: http://en.giswiki.net/wiki/WMS ), or without instructions. Can someone point me to a working WMS server and give me a hint how the map file layer should look like? I've this here: LAYER NAME modis TYPE RASTER STATUS ON CONNECTION "http://onearth.jpl.nasa.gov/browse.cgi?wms_server=wms.cgi&layers=modis&srs=EPSG:4326 " CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:4236" "wms_name" "modis" "wms_format" "image/jpeg" END END Thanks for any advice, Stef ____________________________________________________________________ Stefan Schwarzer Lean Back and Relax - Enjoy some Nature Photography http://photoblog.la-famille-schwarzer.de Appetite for Global Data? UNEP GEO Data Portal: http://geodata.grid.unep.ch ____________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080411/9a00782f/attachment.htm> From aileen.baylon at cybersoft.ph Fri Apr 11 01:32:27 2008 From: aileen.baylon at cybersoft.ph (Aileen) Date: Fri, 11 Apr 2008 16:32:27 +0800 Subject: [mapserver-users] Mapserver 5 and Openlayers 2.5 passingof parameters. In-Reply-To: <47FCB9E4.5157.008F.0@dnr.state.mn.us> References: <10A58E451AF7442E8B186020DDBA59ED@Aileen> <47FCB9E4.5157.008F.0@dnr.state.mn.us> Message-ID: <7CF7E0510D95456DBB5A87B71B313342@Aileen> Hi Steve, We were able to implement the lines and polygons already...it was a big help. Thanks! Now we have a problem regarding passing multiple values from mapserver to openlayers. We have tried this: e.g. ...&foo_value=value1 value2&... but with no avail. We are trying to implement thematic mapping and routing functionalities for the map. I hope you can enlighten us on this. ----- Original Message ----- From: "Steve Lime" <Steve.Lime at dnr.state.mn.us> To: "Aileen" <aileen.baylon at cybersoft.ph>; <mapserver-users at lists.osgeo.org> Sent: Thursday, April 10, 2008 1:45 AM Subject: Re: [mapserver-users] Mapserver 5 and Openlayers 2.5 passingof parameters. Hi Aileen: The direct setting of class expressions using via the syntax you're trying is no longer supported. It's not possible to apply any validation rules in this case. There is a work around using runtime substitution though. For example, if your mapfile looks like this: LAYER NAME 'foo' ... CLASS EXPRESSION '%foo_value%' ... END END Then you can set the expression like so: ...&foo_value=makati&... You can also validate the input using a regex, just add a metadata block like this to the layer above: METADATA # allow foo_value to be a string 1 to 10 chars in length, no special characters foo_value_validation_pattern '^[a-z]{1,10}$' END This applies to FILTERs as well. The syntax to change a class color is documented in the examples you've already seen. Steve >>> On 4/8/2008 at 8:25 PM, in message >>> <10A58E451AF7442E8B186020DDBA59ED at Aileen>, "Aileen" <aileen.baylon at cybersoft.ph> wrote: > ----- Original Message ----- > From: "Aileen" <aileen at mapcentral.ph> > To: <mapserver-users at lists.osgeo.org> > Sent: Wednesday, April 09, 2008 8:28 AM > Subject: Mapserver 5 and Openlayers 2.5 passing of parameters. > > >>> Hi all, >>> >> We are currently using the latest release of Mapserver, the 5.0.2 version >> and Openlayers 2.5 >>> >>> We are having problems with rendering lines and polygons because >>> although >>> it worked for us in Mapserver 4.10, we are told that there's a new >>> syntax >>> for passing values to mapserver. >>> >>> Currently, here's part of the url that we are using to pass to >>> mapserver: >>> >>> map_layer_class_expression=makati&map_layer_class_color=255 0 0. >>> >>> >>> We already have looked at your samples but with no avail. >>> >>> Can you help us with the new syntax? >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From mschulz at webgis.de Fri Apr 11 04:14:26 2008 From: mschulz at webgis.de (Michael Schulz) Date: Fri, 11 Apr 2008 13:14:26 +0200 Subject: [mapserver-users] raster tileindex question ... Message-ID: <e750b12e0804110414o60c734e6iaee3f04645bcf9ac@mail.gmail.com> Hi, is it possible to display only certain tiles from a tileindex layer (rasters)? E.g. with a filter based on a an attribute in the tileindex shapefile? Has someone tried something like that (and succeeded)? Cheers, Michael -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 79108 Freiburg Tel +49 (0)761 556959-5 Fax +49 (0)761 556959-6 http://www.webgis.de / http://www.zopecms.de ----------------------------------------------------------- From c.pelliconi at sis-ter.it Fri Apr 11 05:20:14 2008 From: c.pelliconi at sis-ter.it (Carlo Pelliconi) Date: Fri, 11 Apr 2008 14:20:14 +0200 Subject: [mapserver-users] buffer bounds (PHP Mapscript) Message-ID: <47FF577E.6010509@sis-ter.it> Hi. I'm trying to obtain automatic zoom on a buffer (which I want to see in map - and I do that) created around a selected feature. I use $selected_shape=$queryLayer->getShape(...); $buffer_polygon=$selected_shape->buffer($buffer_width); $shapebounds=$buffer_polygon->bounds; This doesn't work: $buffer_shapebounds (which is a rectobj) is set to -1 -1 -1 -1 and used in setExtent it doesn't work. If I apply the same code to a "real" shapefile (eg. the result of a getShape, without the buffer around), it works: $selected_shape=$queryLayer->getShape(...); $shapebounds=$selected_shape->bounds; In this case $shapebounds is well defined and used in setExtent it works. Any idea or suggestion? Thanks in advance -- ing. Carlo Pelliconi c.pelliconi at sis-ter.it SIS.TER S.p.A. www.sis-ter.it via Mentana, 10 40026 Imola (BO) Italy ATTENZIONE! Questo documento ? indirizzato esclusivamente al destinatario. Tutte le informazioni ivi contenute, compresi eventuali allegati, sono soggette a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di "privacy" e ne ? proibita l'utilizzazione da parte di altri soggetti. Si ricorda che la diffusione l'utilizzo e/o la conservazione dei dati ricevuti per errore costituisce violazione di carattere penale ai sensi dell'art. 616 Codice penale (Violazione, sottrazione e soppressione di corrispondenza). Se avesse ricevuto per errore questo messaggio, La preghiamo cortesemente di contattare il mittente al pi? presto e di cancellare il messaggio subito dopo. Grazie. ATTENTION! This message is being sent from Sis.Ter S.p.A. and may contain information which is confidential or privileged. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. Any unauthorized use of the content of this message is a breach of your duty to respect the confidentiality of the correspondence between other persons and can expose the responsible party to civil and/or criminal penalties (D.Lgs. 196/2003 "Tutela della privacy" e art. 616 Codice penale "Violazione, sottrazione e soppressione di corrispondenza"), and may constitute a more serious offence. Thanks. ACHTUNG! Dieses Dokument ist ausschlie?lich dem Empf?nger vorbehalten. Die darin enthaltenen Informationen, auch jene in etwaigen Anlagen, gelten im Sinne des Dekrets Nr. 196/2003 in Sachen "Privacy" als streng vertraulich und d?rfen von anderen Personen nicht verwende werden. Wer diese Mitteilung irrt?mlicherweise erh?lt ist gebeten uns umgehend zu informieren und anschlie?end die Mitteilung zu vernichten. Vielen Dank. From ven.tammineni at gmail.com Fri Apr 11 05:26:26 2008 From: ven.tammineni at gmail.com (venkat) Date: Fri, 11 Apr 2008 17:56:26 +0530 Subject: [mapserver-users] Reg: 3D Mapping Capability for Mapserver Message-ID: <79ad14900804110526w53b51b15x81f00a2ab95c73e2@mail.gmail.com> Dear All, I am Venkat,I want to a stand alone application for 3D analysis.I am using C#.net.is Mapserver having 3D mapping capability?or is there any other open source software is available.Please let me know . I am waiting for your great response.It is very urgent. Thanking you sir, Regards Venkat. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080411/467751a5/attachment.htm> From rdmailings at duif.net Fri Apr 11 05:49:13 2008 From: rdmailings at duif.net (Richard Duivenvoorde) Date: Fri, 11 Apr 2008 14:49:13 +0200 Subject: [mapserver-users] teleatlas map file? Message-ID: <47FF5E49.6020703@duif.net> Hi List, does somebody have an (example of) recent teleatlas-data map file which he/she wants to share, so I can use it to roll/style my own teleatlas map? TIA Richard Duivenvoorde From warmerdam at pobox.com Fri Apr 11 06:06:56 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 11 Apr 2008 09:06:56 -0400 Subject: [mapserver-users] raster tileindex question ... In-Reply-To: <e750b12e0804110414o60c734e6iaee3f04645bcf9ac@mail.gmail.com> References: <e750b12e0804110414o60c734e6iaee3f04645bcf9ac@mail.gmail.com> Message-ID: <47FF6270.5080402@pobox.com> Michael Schulz wrote: > Hi, > > is it possible to display only certain tiles from a tileindex layer > (rasters)? E.g. with a filter based on a an attribute in the tileindex > shapefile? > Has someone tried something like that (and succeeded)? Michael, Yes, this should work though I haven't exactly tried it. But you will need to put your tileindex shapefile in a distinct Tileindex layer, and then reference that from your raster layer instead of directly referencing the tileindex shapefile in the raster layer. (I think) 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 | President OSGeo, http://osgeo.org From yosoycore at gmail.com Fri Apr 11 07:21:47 2008 From: yosoycore at gmail.com (Emilio Ponce) Date: Fri, 11 Apr 2008 16:21:47 +0200 Subject: [mapserver-users] Mapserver + JSP/Java Web application Message-ID: <9c2e09570804110721j42693775l5c15bb82cf6b6c14@mail.gmail.com> Hi guys, I'm looking for your experimented opinion about one question: What's the best way to connect an application developed in Java/Jsp with mapserver? I have java vectors with alphanumeric info (integers,floats,strings) that I want to represent in a mapserver map (inside a layer Above the other layers). Is this possible? the best way is to use javamapscript? Thanks a lot! -- Emilio -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080411/0fb7441b/attachment.htm> From lee.meilleur at gis.leg.mn Fri Apr 11 08:56:08 2008 From: lee.meilleur at gis.leg.mn (Lee Meilleur) Date: Fri, 11 Apr 2008 10:56:08 -0500 Subject: [mapserver-users] AGG error Message-ID: <EE2E75216F55D2458F566BD899F5DECAB3685C3912@mail.lcc.local> Greetings, I'm receiving the following error when attempting to use the AGG Output Format: loadOutputFormat(): General error message. OUTPUTFORMAT clause references driver AGG/PNG, but this driver isn't configured. I've installed AGG 2.4. My mapfile has the following: IMAGETYPE PNG24 ... OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END MapServer was compiled on RHEL5 with the following options: MapServer version 5.1-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP 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=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Any ideas? Thanks, Lee -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080411/56ba49c6/attachment.htm> From pcreso at pcreso.com Fri Apr 11 10:35:54 2008 From: pcreso at pcreso.com (Brent Wood) Date: Fri, 11 Apr 2008 10:35:54 -0700 (PDT) Subject: [mapserver-users] Reg: 3D Mapping Capability for Mapserver In-Reply-To: <79ad14900804110526w53b51b15x81f00a2ab95c73e2@mail.gmail.com> Message-ID: <970194.29199.qm@web33203.mail.mud.yahoo.com> --- venkat <ven.tammineni at gmail.com> wrote: > Dear All, > > I am Venkat,I want to a stand alone application for 3D analysis.I am using > C#.net.is Mapserver having 3D mapping capability?or is there any other > open source software is available.Please let me know . I am waiting for your > great response.It is very urgent. Hi Venkat, Some open source options to look at: GMT (Generic Mapping Tools) can generate & plot surfaces in 3D very effectively, but is not strictly a 3D analysis tool. OpenDX is a very powerful multidimensional visualisation tool, but not really for analysis. R can do all sorts of multidimensional modelling/statistics. http://gmt.soest.hawaii.edu http://www.opendx.org http://www.r-project.org HTH, Brent Wood From armin.burger at gmx.net Fri Apr 11 10:36:13 2008 From: armin.burger at gmx.net (Armin Burger) Date: Fri, 11 Apr 2008 19:36:13 +0200 Subject: [mapserver-users] buffer bounds (PHP Mapscript) In-Reply-To: <47FF577E.6010509@sis-ter.it> References: <47FF577E.6010509@sis-ter.it> Message-ID: <47FFA18D.40803@gmx.net> Carlo I don't know if this behaviour is a feature or a bug of PHP Mapscript (I have not tested it with SWIG versions of Mapscript). A workaround is to project the buffer in the same projection as the layer. Then the extent is returned correctly. Something like $prj = ms_newprojectionobj($queryLayer->getProjection()); $buffer_polygon=$selected_shape->buffer($buffer_width); $buffer_polygon->project($prj, $prj); $shapebounds=$buffer_polygon->bounds; Armin On 11/04/2008 14:20, Carlo Pelliconi wrote: > Hi. > I'm trying to obtain automatic zoom on a buffer (which I want to see in > map - and I do that) created around a selected feature. > I use > > $selected_shape=$queryLayer->getShape(...); > $buffer_polygon=$selected_shape->buffer($buffer_width); > $shapebounds=$buffer_polygon->bounds; > > This doesn't work: $buffer_shapebounds (which is a rectobj) is set to -1 > -1 -1 -1 and used in setExtent it doesn't work. > If I apply the same code to a "real" shapefile (eg. the result of a > getShape, without the buffer around), it works: > > $selected_shape=$queryLayer->getShape(...); > $shapebounds=$selected_shape->bounds; > > In this case $shapebounds is well defined and used in setExtent it works. > > Any idea or suggestion? > Thanks in advance > From whereismyshuttle at gmail.com Fri Apr 11 10:47:09 2008 From: whereismyshuttle at gmail.com (Chris King) Date: Fri, 11 Apr 2008 19:47:09 +0200 Subject: [mapserver-users] Mapserver and Microsoft SQL Server 2008 References: <C472DFDC9746E941A43C8839CCC6B61640AB0E@INDEC2.mecon.ar> Message-ID: <1F71E67629064164A9EC1D124CB53D7B@Chris> Hi I manually imported my data from postgre into SQL 2008 and the map displays fine. I am now executing a the layer.queryByPoint () command followed by the layer.getResults() command at which point the program fails and gives the following error: msMSSQL2008LayerGetItems(): Query error. msMSSQL2008LayerGetItems: tried to find the geometry column in the results from the database, but couldnt find it. Is it miss-capitialized? 'the_geom' I know when you create the tables in the postgre database you explicitly add the geometry column after the table creation ie: SELECT AddGeometryColumn('','ct_main_points','the_geom','-1','POINT',2); when I tried this in SQL 2008 the function was not recognized and I cannot find the SQL equivalent function. So I simply added the geometry column when I created the table, now I have a feeling that is what is causing this error. If anyone has seen this error or knows of the AddGeometryColumn SQL 2008 equivalent function, please could you let me know. Thanks Chris From c.pelliconi at sis-ter.it Fri Apr 11 11:05:40 2008 From: c.pelliconi at sis-ter.it (Carlo Pelliconi) Date: Fri, 11 Apr 2008 20:05:40 +0200 Subject: [mapserver-users] buffer bounds (PHP Mapscript) In-Reply-To: <47FFA18D.40803@gmx.net> References: <47FF577E.6010509@sis-ter.it> <47FFA18D.40803@gmx.net> Message-ID: <47FFA874.5080701@sis-ter.it> Thank you very much Armin: it works! Carlo Armin Burger ha scritto: > Carlo > > I don't know if this behaviour is a feature or a bug of PHP Mapscript > (I have not tested it with SWIG versions of Mapscript). A workaround > is to project the buffer in the same projection as the layer. Then the > extent is returned correctly. Something like > > $prj = ms_newprojectionobj($queryLayer->getProjection()); > $buffer_polygon=$selected_shape->buffer($buffer_width); > $buffer_polygon->project($prj, $prj); > $shapebounds=$buffer_polygon->bounds; > > Armin > > On 11/04/2008 14:20, Carlo Pelliconi wrote: >> Hi. >> I'm trying to obtain automatic zoom on a buffer (which I want to see >> in map - and I do that) created around a selected feature. >> I use >> >> $selected_shape=$queryLayer->getShape(...); >> $buffer_polygon=$selected_shape->buffer($buffer_width); >> $shapebounds=$buffer_polygon->bounds; >> >> This doesn't work: $buffer_shapebounds (which is a rectobj) is set to >> -1 -1 -1 -1 and used in setExtent it doesn't work. >> If I apply the same code to a "real" shapefile (eg. the result of a >> getShape, without the buffer around), it works: >> >> $selected_shape=$queryLayer->getShape(...); >> $shapebounds=$selected_shape->bounds; >> >> In this case $shapebounds is well defined and used in setExtent it >> works. >> >> Any idea or suggestion? >> Thanks in advance >> > > > -- ing. Carlo Pelliconi c.pelliconi at sis-ter.it SIS.TER S.p.A. www.sis-ter.it via Mentana, 10 40026 Imola (BO) Italy cell +39 333 6375379 tel +39 0542 364034 fax +39 0542 612130 ATTENZIONE! Questo documento ? indirizzato esclusivamente al destinatario. Tutte le informazioni ivi contenute, compresi eventuali allegati, sono soggette a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di "privacy" e ne ? proibita l'utilizzazione da parte di altri soggetti. Si ricorda che la diffusione l'utilizzo e/o la conservazione dei dati ricevuti per errore costituisce violazione di carattere penale ai sensi dell'art. 616 Codice penale (Violazione, sottrazione e soppressione di corrispondenza). Se avesse ricevuto per errore questo messaggio, La preghiamo cortesemente di contattare il mittente al pi? presto e di cancellare il messaggio subito dopo. Grazie. ATTENTION! This message is being sent from Sis.Ter S.p.A. and may contain information which is confidential or privileged. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. Any unauthorized use of the content of this message is a breach of your duty to respect the confidentiality of the correspondence between other persons and can expose the responsible party to civil and/or criminal penalties (D.Lgs. 196/2003 "Tutela della privacy" e art. 616 Codice penale "Violazione, sottrazione e soppressione di corrispondenza"), and may constitute a more serious offence. Thanks. ACHTUNG! Dieses Dokument ist ausschlie?lich dem Empf?nger vorbehalten. Die darin enthaltenen Informationen, auch jene in etwaigen Anlagen, gelten im Sinne des Dekrets Nr. 196/2003 in Sachen "Privacy" als streng vertraulich und d?rfen von anderen Personen nicht verwende werden. Wer diese Mitteilung irrt?mlicherweise erh?lt ist gebeten uns umgehend zu informieren und anschlie?end die Mitteilung zu vernichten. Vielen Dank. From john.fl.tse at gmail.com Fri Apr 11 13:03:25 2008 From: john.fl.tse at gmail.com (john tse) Date: Fri, 11 Apr 2008 13:03:25 -0700 Subject: [mapserver-users] zoom extent Message-ID: <871543920804111303p1fcece1evfd31d8288979c11c@mail.gmail.com> Hi,Guys I'm currently doing a volunteer project and i need to get a zoom to button to work. This is the code i have right now <html> <body> <head> <script type = "text/javascript"> // zoom to Region function GoRegion() { // alert(document.mapserv.mapzoomarea.value); document.mapserv.target=""; document.mapserv.mode.value="browse"; document.mapserv.imgext.value = (document.mapserv.mapzoomarea.value); document.mapserv.submit(); </script> </head> <select name="mapzoomarea" onChange="GoRegion();"> <option>Zoom to Region</option> <option>------------------------</option> <option value="5457203 487104 5451873 482304">Reserve 2</option> <option value="5435308 491431 5434498 490403">Reserve 4</option> <option value="5425919 541,907 5502970 444168">Musqueam Statement Of Intent</option> <option value="5435189 475830 5457751 504449">Richmond Boundary</option> <option value="5448859 481843 5463269 500122">Vancouver Boundary </option> <option value="5432692 482228 5457268 515426">North Arm Fraser River </option> </select> </body> </html> it doesn't do anything, and i have no idea what's wrong with it, any help will be much appreciated. thanx -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080411/b9fc05dd/attachment.htm> From woodbri at swoodbridge.com Fri Apr 11 15:11:49 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 11 Apr 2008 17:11:49 -0500 Subject: [mapserver-users] Polygon Outline Color Width Fade Howto? Message-ID: <47FFE225.3070604@swoodbridge.com> Hi all, I want to render and island polygon with a big fat outline color in a dark blue the fades in distance from the island. I'm using AGG and I tried this: LAYER NAME "Islands" STATUS DEFAULT DATA "coast" TYPE POLYGON LABELITEM "ISLAND" LABELCACHE OFF CLASS STYLE SYMBOL "circle" OUTLINECOLOR 0 192 243 SIZE 20 END STYLE COLOR 242 239 233 END END END Which sort of works but there is very little fade. If I use: STYLE OUTLINECOLOR 0 192 243 WIDTH 20 END I get horrible artifacts all along the outline. Is there a way to control the amount of fade in the outline. Can I make a transparent ball that fades with radius to achieve this? Thanks, -Steve From woodbri at swoodbridge.com Fri Apr 11 20:15:58 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 11 Apr 2008 22:15:58 -0500 Subject: [mapserver-users] Polygon Outline Color Width Fade Howto? In-Reply-To: <cc29ea950804111429p5bd16977oed4f18d3972b1c14@mail.gmail.com> References: <47FFE225.3070604@swoodbridge.com> <cc29ea950804111429p5bd16977oed4f18d3972b1c14@mail.gmail.com> Message-ID: <4800296E.8010306@swoodbridge.com> Thanks Joe, Yeah, I eventually figured that out. I tried to use a circle gradient, but the circle overlaps at the start/end of the polygon making it darker there. You also have to render the polygon first as as a LINE to get the brush applied then again as a polygon to get the fill. You might be able to do it in one step, but I have not been able to get that to work. I'm still playing with this to get the effect I want. -Steve Joe Bussell wrote: > Can you use an image as a line brush, where the image is a gradient from > a dark point at the center to a light, nearly transparent shade? > > Joe > > > On Fri, Apr 11, 2008 at 3:11 PM, Stephen Woodbridge > <woodbri at swoodbridge.com <mailto:woodbri at swoodbridge.com>> wrote: > > Hi all, > > I want to render and island polygon with a big fat outline color in > a dark blue the fades in distance from the island. I'm using AGG and > I tried this: > > LAYER > NAME "Islands" > STATUS DEFAULT > DATA "coast" > TYPE POLYGON > LABELITEM "ISLAND" > LABELCACHE OFF > CLASS > STYLE > SYMBOL "circle" > OUTLINECOLOR 0 192 243 > SIZE 20 > END > STYLE > COLOR 242 239 233 > END > END > END > > Which sort of works but there is very little fade. > > If I use: > > STYLE > OUTLINECOLOR 0 192 243 > WIDTH 20 > END > > I get horrible artifacts all along the outline. Is there a way to > control the amount of fade in the outline. Can I make a transparent > ball that fades with radius to achieve this? > > Thanks, > -Steve > _______________________________________________ > 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 > > From umberto.nicoletti at gmail.com Sat Apr 12 00:21:38 2008 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Sat, 12 Apr 2008 09:21:38 +0200 Subject: [mapserver-users] Mapserver + JSP/Java Web application In-Reply-To: <9c2e09570804110721j42693775l5c15bb82cf6b6c14@mail.gmail.com> References: <9c2e09570804110721j42693775l5c15bb82cf6b6c14@mail.gmail.com> Message-ID: <75b4b93e0804120021l5a02ef8aob28c1eaefdd19826@mail.gmail.com> On Fri, Apr 11, 2008 at 4:21 PM, Emilio Ponce <yosoycore at gmail.com> wrote: > Hi guys, > > I'm looking for your experimented opinion about one question: > > What's the best way to connect an application developed in Java/Jsp with > mapserver? I have java vectors with alphanumeric info > (integers,floats,strings) that I want to represent in a mapserver map > (inside a layer Above the other layers). Is this possible? the best way is > to use javamapscript? I would say that javamapscript is not strictly necessary for this kind of application. If you just need a map with basic (but friendly, like goggole maps) browsing capabilties I'd look into openlayers to provide the mapping functionality. Then I'd add a jsp or a servlet to the existing app so that it exports the vectors into one of the many formats supported by open layers like simple text http://dev.openlayers.org/apidocs/files/OpenLayers/Layer/Text-js.html, but there are of course many others (http://dev.openlayers.org/apidocs/files/OpenLayers-js.html). This is probably the best solution in terms of quality vs developer effort. HTH, Umberto > > Thanks a lot! > > -- > Emilio > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From iworktech.sucharita at gmail.com Sat Apr 12 04:05:59 2008 From: iworktech.sucharita at gmail.com (Sucharita Samuel) Date: Sat, 12 Apr 2008 16:35:59 +0530 Subject: [mapserver-users] Drawing a circle on a map Message-ID: <2d6d8af10804120405u7e3fba72vb087843f677d248@mail.gmail.com> Hi all, I want to draw a circle of 5 km radius around the point I click on the map. I am using C# mapscript. Even if you can help me with the php code, it will be of great help. Thanks in advance. Regards, Sucharita -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080412/fcb98f76/attachment.htm> From arnd.wippermann at web.de Sat Apr 12 04:52:22 2008 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Sat, 12 Apr 2008 13:52:22 +0200 Subject: AW: [mapserver-users] WMS for SRTM ? How to implement? In-Reply-To: <7C499421-2FF7-4391-BCC5-9C41AE16D530@grid.unep.ch> Message-ID: <E1JkeHR-0000fx-00@smtp07.web.de> Hello, this is a simple mapfile, that works for me: MAP NAME 'WMS_Global_Mosaic' STATUS ON IMAGECOLOR 255 255 255 IMAGETYPE png OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END OUTPUTFORMAT NAME png24 DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" END PROJECTION # GAUSS-KRUEGER Streifen 2 'init=epsg:4326' #PROJECTION_init END WEB # 3 IMAGEPATH '\ms4w\tmp\' IMAGEURL '/ms_tmp/' METADATA 'wms_name' 'OGC:WMS' 'wms_title' 'WMS Standard' 'wms_srs' 'EPSG:900913 EPSG:31466 EPSG:4326' END END LAYER # 1 NAME 'GlobalMosaic' GROUP 'SATELLITE' TYPE RASTER STATUS ON #!!! Achtung : transparent=TRUE/FALSE in uppercase!? and for Mapserver 4.10 set the STYLES= in the CONNECTION Url CONNECTION 'http://wms.jpl.nasa.gov/wms.cgi?STYLES=' CONNECTIONTYPE WMS METADATA 'wms_name' 'global_mosaic' #das ist der Layer!!! 'wms_title' 'WMS Global Mosaic' 'wms_group_title' 'SATELLITE' 'wms_version' '1.1.1' 'wms_srs' 'EPSG:4326' #Uppercase!!! 'wms_server_version' '1.1.0' 'wms_formatlist' 'image/gif,image/png,image/jpeg,image/wbmp' 'wms_format' 'image/png' #'wms_style' 'visual' END END END Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ ________________________________ Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Stefan Schwarzer Gesendet: Freitag, 11. April 2008 09:59 An: mapserver-users at lists.osgeo.org Betreff: [mapserver-users] WMS for SRTM ? How to implement? Hi there, shouldn't be too complicated to include a WMS into one's own mapservice, no? But, don't know why, although I've already done this a couple of years ago, I don't succeed in a) finding the right way to program the map file code and b) finding a working WMS example. Many links are dead ( for example from this site: http://en.giswiki.net/wiki/WMS ), or without instructions. Can someone point me to a working WMS server and give me a hint how the map file layer should look like? I've this here: LAYER NAME modis TYPE RASTER STATUS ON CONNECTION "http://onearth.jpl.nasa.gov/browse.cgi?wms_server=wms.cgi&layers=modis&srs= EPSG:4326" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:4236" "wms_name" "modis" "wms_format" "image/jpeg" END END Thanks for any advice, Stef ____________________________________________________________________ Stefan Schwarzer Lean Back and Relax - Enjoy some Nature Photography http://photoblog.la-famille-schwarzer.de <http://photoblog.la-famille-schwarzer.de> Appetite for Global Data? UNEP GEO Data Portal: http://geodata.grid.unep.ch <http://geodata.grid.unep.ch> ____________________________________________________________________ From punk.kish at gmail.com Sat Apr 12 05:23:49 2008 From: punk.kish at gmail.com (P Kishor) Date: Sat, 12 Apr 2008 08:23:49 -0400 Subject: [mapserver-users] Drawing a circle on a map In-Reply-To: <2d6d8af10804120405u7e3fba72vb087843f677d248@mail.gmail.com> References: <2d6d8af10804120405u7e3fba72vb087843f677d248@mail.gmail.com> Message-ID: <cdf6db500804120523h225eab66y2098b5b19b0deae8@mail.gmail.com> On 4/12/08, Sucharita Samuel <iworktech.sucharita at gmail.com> wrote: > Hi all, > I want to draw a circle of 5 km radius around the point I click on > the map. I am using C# mapscript. Even if you can help me with the php code, > it will be of great help. > > a circle is one of the easiest geometric primitives you can draw. Capture the mouse click and you've got your center. Use a standard circle equation and you've got what you want. Google for how to draw a circle. > Thanks in advance. > > > Regards, > Sucharita > From iworktech.sucharita at gmail.com Sat Apr 12 06:05:27 2008 From: iworktech.sucharita at gmail.com (Sucharita Samuel) Date: Sat, 12 Apr 2008 18:35:27 +0530 Subject: [mapserver-users] Drawing a circle on a map In-Reply-To: <cdf6db500804120523h225eab66y2098b5b19b0deae8@mail.gmail.com> References: <2d6d8af10804120405u7e3fba72vb087843f677d248@mail.gmail.com> <cdf6db500804120523h225eab66y2098b5b19b0deae8@mail.gmail.com> Message-ID: <2d6d8af10804120605m1f6df705m923144c94677247f@mail.gmail.com> Thanks Kishore. I think I should have elaborated my query. I need to create a shapeObject which will hold the circle to be drawn (That part is done). This shapeobject then is to be rendered onto the mapobject which is already present on the web page. The only problem I am facing is even though my circle is created, it is not getting rendered onto the web page over the map. Can you please help me with this. Thanks, Sucharita On Sat, Apr 12, 2008 at 5:53 PM, P Kishor <punk.kish at gmail.com> wrote: > On 4/12/08, Sucharita Samuel <iworktech.sucharita at gmail.com> wrote: > > Hi all, > > I want to draw a circle of 5 km radius around the point I click > on > > the map. I am using C# mapscript. Even if you can help me with the php > code, > > it will be of great help. > > > > > > a circle is one of the easiest geometric primitives you can draw. > Capture the mouse click and you've got your center. Use a standard > circle equation and you've got what you want. Google for how to draw a > circle. > > > > Thanks in advance. > > > > > > Regards, > > Sucharita > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080412/69635a94/attachment.htm> From woodbri at swoodbridge.com Sat Apr 12 07:35:57 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sat, 12 Apr 2008 09:35:57 -0500 Subject: [mapserver-users] Drawing a circle on a map In-Reply-To: <2d6d8af10804120405u7e3fba72vb087843f677d248@mail.gmail.com> References: <2d6d8af10804120405u7e3fba72vb087843f677d248@mail.gmail.com> Message-ID: <4800C8CD.4030801@swoodbridge.com> Sucharita Samuel wrote: > Hi all, > I want to draw a circle of 5 km radius around the point I click > on the map. I am using C# mapscript. Even if you can help me with the > php code, it will be of great help. One way to do this is to create a template layer that defines a feature that is a circle with the STATUS OFF. Then in mapscript you can get the layer, set the status to ON and set the value of the origin of the feature and have mapserver draw it on top of your map. -Steve W. From martafuster at gmail.com Sat Apr 12 12:39:12 2008 From: martafuster at gmail.com (marta fuster) Date: Sat, 12 Apr 2008 21:39:12 +0200 Subject: [mapserver-users] wms outputformat image quality Message-ID: <e554e0190804121239l11e493cfkf63b01992017ee41@mail.gmail.com> Hi! I have a problem with the quality of a wms image that I serve with my mapserver application. I have a mapfile with 4 layers, one of these one's is a wms layer that serves aerial photographs. If I don't change anything in the .map the polygon layers look cool but the wms looks terrible, if I add: OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" FORMATOPTION "QUALITY=100" END the wms looks cool an the others look terrible. How can I do to solve the problem? thanks! Marta -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080412/2d47dc1f/attachment.htm> From guillaume.sueur at neogeo-online.net Sat Apr 12 13:37:24 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Sat, 12 Apr 2008 22:37:24 +0200 Subject: [mapserver-users] WMS - getCapabilities BBOX Message-ID: <48011D84.2090300@neogeo-online.net> Hi, I've got a problem with mapserver's WMS getCapabilities. My data are projected in a local projection (EPSG:27563). Apparemtly, the getCapabilities calculates a LatLongBoundigBox, given in WGS84. But these values are wrong, with a serious shift on the west. When I translate the data with ogr2ogr to EPSG:4326 in KML, tha data is at the correct place in GoogleEarth. Any hint ? Thanks -- Guillaume From warmerdam at pobox.com Sat Apr 12 14:05:17 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Sat, 12 Apr 2008 17:05:17 -0400 Subject: [mapserver-users] WMS - getCapabilities BBOX In-Reply-To: <48011D84.2090300@neogeo-online.net> References: <48011D84.2090300@neogeo-online.net> Message-ID: <4801240D.8090106@pobox.com> Guillaume Sueur wrote: > Hi, > > I've got a problem with mapserver's WMS getCapabilities. My data are > projected in a local projection (EPSG:27563). Apparemtly, the > getCapabilities calculates a LatLongBoundigBox, given in WGS84. But > these values are wrong, with a serious shift on the west. > When I translate the data with ogr2ogr to EPSG:4326 in KML, tha data is > at the correct place in GoogleEarth. Guillaume, EPSG:27563 has a prime meridian other than greenwich. I presume that is causing the problem. In fact, looking through the code I think the latlong box is actually computed in the GCS of the coordinate system in question, rather than WGS84. So in your case there is a serious error in the east west axis, but in other situations people may see small errors due to the lack of datum adjustment. I would suggest you file a ticket on it. Specifically the ticket might note that msOWSPrintLatLonBoundingBox() just passes NULL for the destination coordinate system, and msProjectPoint() just treats this as a special case to use the lat/long coordinate system (GCS) associated with the projected coordinate system. So in this case we see a big error because you are getting values relative to the paris prime meridian. This is likely to affect a number of places in MapServer (WMS, and WCS at least). Please add me ("warmerdam") as a cc on the created ticket. I might not fix it, but I should at least be able to help. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From warmerdam at pobox.com Sat Apr 12 14:20:58 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Sat, 12 Apr 2008 17:20:58 -0400 Subject: [mapserver-users] wms outputformat image quality In-Reply-To: <e554e0190804121239l11e493cfkf63b01992017ee41@mail.gmail.com> References: <e554e0190804121239l11e493cfkf63b01992017ee41@mail.gmail.com> Message-ID: <480127BA.1020604@pobox.com> marta fuster wrote: > Hi! > > I have a problem with the quality of a wms image that I serve with my > mapserver application. > > I have a mapfile with 4 layers, one of these one's is a wms layer that > serves aerial photographs. If I don't change anything in the .map the > polygon layers look cool but the wms looks terrible, if I add: > > OUTPUTFORMAT > NAME jpeg > DRIVER "GD/JPEG" > MIMETYPE "image/jpeg" > IMAGEMODE RGB > EXTENSION "jpg" > FORMATOPTION "QUALITY=100" > END > > the wms looks cool an the others look terrible. How can I do to solve > the problem? Marta, Not enough info here. Were you previously producing JPEG or did you also change something to actually use the above jpeg format for output? If you were previously producing an 8bit paletted format (gif or PNG8) then file sizes would be small, and drawn lines would be sharp, but 24bit RGB raster inputs will generally be badly damaged in the conversion to 8bit. Producing jpeg instead will solve the raster problem but cause all sorts of damage to lines/text. PNG24 will do both well, but the resulting maps will be quite large. Basically you need to pick your poison. You can have any two of small, good 24bit raster results or good line/text quality. You might want to read over the raster access howto for some suggestions on improving raster quality in 8bit paletted formats (dithering for instance). 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 | President OSGeo, http://osgeo.org From guillaume.sueur at neogeo-online.net Sat Apr 12 14:55:34 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Sat, 12 Apr 2008 23:55:34 +0200 Subject: [mapserver-users] WMS - getCapabilities BBOX In-Reply-To: <4801240D.8090106@pobox.com> References: <48011D84.2090300@neogeo-online.net> <4801240D.8090106@pobox.com> Message-ID: <48012FD6.1040309@neogeo-online.net> Ok for the ticket. I'm going to read carefully your comments not to write non-sense ! Doing some further investigations, I noted that the WFS getCapabilities sends back a LatLongBoundingBox (don't forget the G to long for WFS... don't know why this parameter hasn't got the exact same name in WFS and WMS...) in WGS84 where the WFS specs say "The LatLongBoundingBox element is used to indicate the edges of an enclosing rectangle in the SRS of the associated feature type." I may be wrong on this interpretation, but fixing the GetCapabilities XML doc on the fly allowed me to display my data. Best regards, Guillaume Frank Warmerdam a ?crit : > Guillaume Sueur wrote: >> Hi, >> >> I've got a problem with mapserver's WMS getCapabilities. My data are >> projected in a local projection (EPSG:27563). Apparemtly, the >> getCapabilities calculates a LatLongBoundigBox, given in WGS84. But >> these values are wrong, with a serious shift on the west. >> When I translate the data with ogr2ogr to EPSG:4326 in KML, tha data >> is at the correct place in GoogleEarth. > > Guillaume, > > EPSG:27563 has a prime meridian other than greenwich. I presume that is > causing the problem. In fact, looking through the code I think the latlong > box is actually computed in the GCS of the coordinate system in question, > rather than WGS84. So in your case there is a serious error in the east > west axis, but in other situations people may see small errors due to the > lack of datum adjustment. > > I would suggest you file a ticket on it. Specifically the ticket might > note that msOWSPrintLatLonBoundingBox() just passes NULL for the > destination > coordinate system, and msProjectPoint() just treats this as a special case > to use the lat/long coordinate system (GCS) associated with the projected > coordinate system. So in this case we see a big error because you are > getting > values relative to the paris prime meridian. > > This is likely to affect a number of places in MapServer (WMS, and WCS > at least). Please add me ("warmerdam") as a cc on the created ticket. > I might not fix it, but I should at least be able to help. > > Best regards, From woodbri at swoodbridge.com Sun Apr 13 09:37:07 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sun, 13 Apr 2008 11:37:07 -0500 Subject: [mapserver-users] Drawing a circle on a map In-Reply-To: <ebd91ef20804130522h3ebffbcele3758db5c8865730@mail.gmail.com> References: <2d6d8af10804120405u7e3fba72vb087843f677d248@mail.gmail.com> <4800C8CD.4030801@swoodbridge.com> <ebd91ef20804130522h3ebffbcele3758db5c8865730@mail.gmail.com> Message-ID: <480236B3.6030206@swoodbridge.com> Atul Dravid wrote: > Try asking for Sample Code to Stephen Woodbridge... > > On 4/12/08, *Stephen Woodbridge* <woodbri at swoodbridge.com > <mailto:woodbri at swoodbridge.com>> wrote: > > Sucharita Samuel wrote: > > Hi all, > I want to draw a circle of 5 km radius around the point I > click on the map. I am using C# mapscript. Even if you can help > me with the php code, it will be of great help. > > > One way to do this is to create a template layer that defines a > feature that is a circle with the STATUS OFF. Then in mapscript you > can get the layer, set the status to ON and set the value of the > origin of the feature and have mapserver draw it on top of your map. > > -Steve W. > > _______________________________________________ > 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 > > In mapscript you can change the status and the feature points to be what you want. Here is an example of the LAYER and a URL to display it. I will leave the mapscript as you homework assignment :) Actually, I don't have a simple example handy, nor the time to put one together at the moment. If you get stuck an a specific point ask the list, there are plently of people that can help with mapscript. -Steve MAP EXTENT -180 -90 180 90 IMAGECOLOR 255 255 0 IMAGETYPE png SIZE 400 200 UNITS DD LAYER NAME "circles" TYPE circle STATUS DEFAULT FEATURE # define circle as two points describing the opposite corners of # of the bounding square about the circle POINTS -10.0 -10.0 10.0 10.0 END END CLASS STYLE OUTLINECOLOR 255 0 0 END END END END http://mt2.imaptools.com/cgi-bin/mapserv-5.1-dev?mode=map&map=/u/data/maps/circles.map From ptang83 at yahoo.com Sun Apr 13 20:40:35 2008 From: ptang83 at yahoo.com (ptang83 at yahoo.com) Date: Sun, 13 Apr 2008 20:40:35 -0700 (PDT) Subject: [mapserver-users] ms4w mapserver 5.0 can't display raster image. Message-ID: <148757.85031.qm@web31807.mail.mud.yahoo.com> I used Mapserver + Openlayers + Postgis. I can load shp data to postgis and display it without any problem. However, somehow I am not able to display any raster map even without using postgis. I only see a blank rectangular on my web browzer. I wonder whether there is a bug or something I did wrong. Thanks in advance.. I have downloaded ms4w Mapserver and has the following config. # Apache 2.2.8 # PHP 5.2.5 # mapserv 5.0.2 at /cgi-bin/mapserv.exe =========================== LOG files show nothing wrong: ====================================== Sun Apr 13 21:57:14 2008,12804,127.0.0.1,nitelti020l,3,-0.000000 -90.000000 180.000000 90.000000,-1.000000 -1.000000,,normal execution Sun Apr 13 21:57:14 2008,14076,127.0.0.1,nitelti020l,3,-180.000000 -90.000000 0.000000 90.000000,-1.000000 -1.000000,,normal execution ======================================= MAP file: ========================================= # Map file created from QGIS project file C:/Program Files/Quantum GIS/nitelti020l.qgs # Edit this file to customize for your map interface MAP NAME nitelti020l # Map image size SIZE 600 600 UNITS dd EXTENT -6086744.000000 -5878356.737659 4278894.138000 7580130.593659 PROJECTION # 'proj=longlat' # 'ellps=WGS84' # 'datum=WGS84' # 'no_defs' "init=epsg:4326" END # Background color for the map canvas -- change as desired IMAGECOLOR 192 192 192 IMAGEQUALITY 95 IMAGETYPE jpeg OUTPUTFORMAT NAME jpeg DRIVER 'GD/JPEG' MIMETYPE 'image/jpeg' #IMAGEMODE PC256 EXTENSION 'jpeg' END # Legend LEGEND IMAGECOLOR 255 255 255 STATUS ON KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # Web interface definition. Only the template parameter # is required to display a map. See MapServer documentation WEB # Set IMAGEPATH to the path where MapServer should # write its output. IMAGEPATH '/tmp/' # Set IMAGEURL to the url that points to IMAGEPATH # as defined in your web server configuration IMAGEURL '/tmp/' # WMS server settings METADATA 'wms_title' 'nitelti020l' 'wms_onlineresource' 'http://localhost/cgi-bin/mapserv?map=wms.map&' 'wms_srs' 'EPSG:4326' END #Scale range at which web interface will operate # Template and header/footer settings # Only the template parameter is required to display a map. See MapServer documentation END WEB LOG "c:\tmp\mapserv.log" END LAYER NAME 'nitelti020l' TYPE RASTER DATA 'C:\oatdir\nitelti020l.tar\nitelti020l.tif' METADATA 'wms_title' 'nitelti020l' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION # 'proj=longlat' # 'ellps=WGS84' # 'datum=WGS84' # 'no_defs' "init=epsg:4326" END END END ============== Raster date download ============== http://edcftp.cr.usgs.gov/pub/data/nationalatlas/nitelti020l.tar.gz ================ simple open layer code ================ <html xmlns="http://www.w3.org/1999/xhtml"> <head> <style type="text/css"> #map { width: 800px; height: 475px; border: 1px solid black; } </style> <script src="http://openlayers.org/dev/lib/OpenLayers.js"></script> <script type="text/javascript"> <!-- var map, layer; function init(){ map = new OpenLayers.Map( 'map' ); layer = new OpenLayers.Layer.MapServer( "OpenLayers WMS", "http://localhost/cgi-bin/mapserv.exe", {map: 'C:/Program Files/ms4w/Apache/htdocs/nitelti020l.map'} ); map.addLayer(layer); map.zoomToMaxExtent(); } // --> </script> </head> <body onload="init()"> <div id="map"></div> </body> </html> __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From Jacob.Delfos at maunsell.com Sun Apr 13 20:53:41 2008 From: Jacob.Delfos at maunsell.com (Delfos, Jacob) Date: Mon, 14 Apr 2008 11:53:41 +0800 Subject: [mapserver-users] ms4w mapserver 5.0 can't display raster image. In-Reply-To: <148757.85031.qm@web31807.mail.mud.yahoo.com> Message-ID: <4997F456680DAD4DA1E042C40C46361101BC84FA@auper1ex002.au.aecomnet.com> Hi, It may be worth trying to untar your image. I suspect mapserver *may* not be able to do this on the fly. Regards, Jacob > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > ptang83 at yahoo.com > Sent: 14 April 2008 11:41 > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] ms4w mapserver 5.0 can't display > raster image. > > I used Mapserver + Openlayers + Postgis. I can load shp data > to postgis and display it without any problem. However, > somehow I am not able to display any raster map even without > using postgis. I only see a blank rectangular on my web > browzer. I wonder whether there is a bug or something I did > wrong. Thanks in advance.. > > > I have downloaded ms4w Mapserver and has the following config. > # Apache 2.2.8 > # PHP 5.2.5 > # mapserv 5.0.2 at /cgi-bin/mapserv.exe > =========================== > LOG files show nothing wrong: > ====================================== > Sun Apr 13 21:57:14 > 2008,12804,127.0.0.1,nitelti020l,3,-0.000000 -90.000000 > 180.000000 90.000000,-1.000000 -1.000000,,normal execution > Sun Apr 13 21:57:14 > 2008,14076,127.0.0.1,nitelti020l,3,-180.000000 -90.000000 > 0.000000 90.000000,-1.000000 -1.000000,,normal execution > ======================================= > MAP file: > ========================================= > # Map file created from QGIS project file C:/Program > Files/Quantum GIS/nitelti020l.qgs > # Edit this file to customize for your map interface > MAP > NAME nitelti020l > # Map image size > SIZE 600 600 > UNITS dd > > EXTENT -6086744.000000 -5878356.737659 4278894.138000 7580130.593659 > PROJECTION > # 'proj=longlat' > # 'ellps=WGS84' > # 'datum=WGS84' > # 'no_defs' > "init=epsg:4326" > END > > # Background color for the map canvas -- change as desired > IMAGECOLOR 192 192 192 > IMAGEQUALITY 95 > IMAGETYPE jpeg > OUTPUTFORMAT > NAME jpeg > DRIVER 'GD/JPEG' > MIMETYPE 'image/jpeg' > #IMAGEMODE PC256 > EXTENSION 'jpeg' > END > # Legend > LEGEND > IMAGECOLOR 255 255 255 > STATUS ON > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > END > > # Web interface definition. Only the template parameter > # is required to display a map. See MapServer documentation > WEB > # Set IMAGEPATH to the path where MapServer should > # write its output. > IMAGEPATH '/tmp/' > > # Set IMAGEURL to the url that points to IMAGEPATH > # as defined in your web server configuration > IMAGEURL '/tmp/' > > # WMS server settings > METADATA > 'wms_title' 'nitelti020l' > 'wms_onlineresource' > 'http://localhost/cgi-bin/mapserv?map=wms.map&' > 'wms_srs' 'EPSG:4326' > END > > #Scale range at which web interface will operate > # Template and header/footer settings > # Only the template parameter is required to display a > map. See MapServer documentation > END > > WEB > LOG "c:\tmp\mapserv.log" > END > > LAYER > NAME 'nitelti020l' > TYPE RASTER > DATA 'C:\oatdir\nitelti020l.tar\nitelti020l.tif' > METADATA > 'wms_title' 'nitelti020l' > END > STATUS DEFAULT > TRANSPARENCY 100 > PROJECTION > # 'proj=longlat' > # 'ellps=WGS84' > # 'datum=WGS84' > # 'no_defs' > "init=epsg:4326" > END > END > > END > > > ============== > Raster date download > ============== > http://edcftp.cr.usgs.gov/pub/data/nationalatlas/nitelti020l.tar.gz > > ================ > simple open layer code > ================ > <html xmlns="http://www.w3.org/1999/xhtml"> > <head> > <style type="text/css"> > #map { > width: 800px; > height: 475px; > border: 1px solid black; > } > </style> > <script > src="http://openlayers.org/dev/lib/OpenLayers.js"></script> > <script type="text/javascript"> > <!-- > var map, layer; > > function init(){ > map = new OpenLayers.Map( 'map' ); > layer = new OpenLayers.Layer.MapServer( "OpenLayers WMS", > "http://localhost/cgi-bin/mapserv.exe", > {map: 'C:/Program Files/ms4w/Apache/htdocs/nitelti020l.map'} ); > map.addLayer(layer); > map.zoomToMaxExtent(); > } > // --> > </script> > </head> > <body onload="init()"> > <div id="map"></div> > </body> > </html> > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. From ptang83 at yahoo.com Sun Apr 13 21:36:17 2008 From: ptang83 at yahoo.com (ptang83 at yahoo.com) Date: Sun, 13 Apr 2008 21:36:17 -0700 (PDT) Subject: [mapserver-users] ms4w mapserver 5.0 can't display raster image. In-Reply-To: <4997F456680DAD4DA1E042C40C46361101BC84FA@auper1ex002.au.aecomnet.com> Message-ID: <70019.58948.qm@web31809.mail.mud.yahoo.com> Sorry for the confusion. I have it untared as C:\oatdir\nitelti020l.tar\nitelti020l.tif I can view it and I am also able to load it in to qgis. --- On Sun, 4/13/08, Delfos, Jacob <Jacob.Delfos at maunsell.com> wrote: > From: Delfos, Jacob <Jacob.Delfos at maunsell.com> > Subject: RE: [mapserver-users] ms4w mapserver 5.0 can't display raster image. > To: ptang83 at yahoo.com, mapserver-users at lists.osgeo.org > Date: Sunday, April 13, 2008, 10:53 PM > Hi, > > It may be worth trying to untar your image. I suspect > mapserver *may* > not be able to do this on the fly. > > Regards, > > Jacob > > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On > Behalf Of > > ptang83 at yahoo.com > > Sent: 14 April 2008 11:41 > > To: mapserver-users at lists.osgeo.org > > Subject: [mapserver-users] ms4w mapserver 5.0 > can't display > > raster image. > > > > I used Mapserver + Openlayers + Postgis. I can load > shp data > > to postgis and display it without any problem. > However, > > somehow I am not able to display any raster map even > without > > using postgis. I only see a blank rectangular on my > web > > browzer. I wonder whether there is a bug or something > I did > > wrong. Thanks in advance.. > > > > > > I have downloaded ms4w Mapserver and has the following > config. > > # Apache 2.2.8 > > # PHP 5.2.5 > > # mapserv 5.0.2 at /cgi-bin/mapserv.exe > > =========================== > > LOG files show nothing wrong: > > ====================================== > > Sun Apr 13 21:57:14 > > 2008,12804,127.0.0.1,nitelti020l,3,-0.000000 > -90.000000 > > 180.000000 90.000000,-1.000000 -1.000000,,normal > execution > > Sun Apr 13 21:57:14 > > 2008,14076,127.0.0.1,nitelti020l,3,-180.000000 > -90.000000 > > 0.000000 90.000000,-1.000000 -1.000000,,normal > execution > > ======================================= > > MAP file: > > ========================================= > > # Map file created from QGIS project file C:/Program > > Files/Quantum GIS/nitelti020l.qgs > > # Edit this file to customize for your map interface > > MAP > > NAME nitelti020l > > # Map image size > > SIZE 600 600 > > UNITS dd > > > > EXTENT -6086744.000000 -5878356.737659 > 4278894.138000 7580130.593659 > > PROJECTION > > # 'proj=longlat' > > # 'ellps=WGS84' > > # 'datum=WGS84' > > # 'no_defs' > > "init=epsg:4326" > > END > > > > # Background color for the map canvas -- change as > desired > > IMAGECOLOR 192 192 192 > > IMAGEQUALITY 95 > > IMAGETYPE jpeg > > OUTPUTFORMAT > > NAME jpeg > > DRIVER 'GD/JPEG' > > MIMETYPE 'image/jpeg' > > #IMAGEMODE PC256 > > EXTENSION 'jpeg' > > END > > # Legend > > LEGEND > > IMAGECOLOR 255 255 255 > > STATUS ON > > KEYSIZE 18 12 > > LABEL > > TYPE BITMAP > > SIZE MEDIUM > > COLOR 0 0 89 > > END > > END > > > > # Web interface definition. Only the template > parameter > > # is required to display a map. See MapServer > documentation > > WEB > > # Set IMAGEPATH to the path where MapServer should > > # write its output. > > IMAGEPATH '/tmp/' > > > > # Set IMAGEURL to the url that points to IMAGEPATH > > # as defined in your web server configuration > > IMAGEURL '/tmp/' > > > > # WMS server settings > > METADATA > > 'wms_title' > 'nitelti020l' > > 'wms_onlineresource' > > > 'http://localhost/cgi-bin/mapserv?map=wms.map&' > > 'wms_srs' > 'EPSG:4326' > > END > > > > #Scale range at which web interface will operate > > # Template and header/footer settings > > # Only the template parameter is required to > display a > > map. See MapServer documentation > > END > > > > WEB > > LOG "c:\tmp\mapserv.log" > > END > > > > LAYER > > NAME 'nitelti020l' > > TYPE RASTER > > DATA > 'C:\oatdir\nitelti020l.tar\nitelti020l.tif' > > METADATA > > 'wms_title' 'nitelti020l' > > END > > STATUS DEFAULT > > TRANSPARENCY 100 > > PROJECTION > > # 'proj=longlat' > > # 'ellps=WGS84' > > # 'datum=WGS84' > > # 'no_defs' > > "init=epsg:4326" > > END > > END > > > > END > > > > > > ============== > > Raster date download > > ============== > > > http://edcftp.cr.usgs.gov/pub/data/nationalatlas/nitelti020l.tar.gz > > > > ================ > > simple open layer code > > ================ > > <html > xmlns="http://www.w3.org/1999/xhtml"> > > <head> > > <style type="text/css"> > > #map { > > width: 800px; > > height: 475px; > > border: 1px solid black; > > } > > </style> > > <script > > > src="http://openlayers.org/dev/lib/OpenLayers.js"></script> > > <script type="text/javascript"> > > <!-- > > var map, layer; > > > > function init(){ > > map = new OpenLayers.Map( 'map' ); > > layer = new OpenLayers.Layer.MapServer( > "OpenLayers WMS", > > > "http://localhost/cgi-bin/mapserv.exe", > > {map: 'C:/Program > Files/ms4w/Apache/htdocs/nitelti020l.map'} ); > > map.addLayer(layer); > > map.zoomToMaxExtent(); > > } > > // --> > > </script> > > </head> > > <body onload="init()"> > > <div id="map"></div> > > </body> > > </html> > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > This email and any attachments are intended solely for the > named recipient and are confidential. The copying or > distribution of them or any information they contain by > anyone other than the named recipient is prohibited. If you > have received this document in error, please notify the > sender and delete all copies from your computer system and > destroy all hard copies. It is the recipient's > responsibility to check this email and any attachments to > this email for viruses before use. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From Jacob.Delfos at maunsell.com Sun Apr 13 21:40:12 2008 From: Jacob.Delfos at maunsell.com (Delfos, Jacob) Date: Mon, 14 Apr 2008 12:40:12 +0800 Subject: [mapserver-users] ms4w mapserver 5.0 can't display raster image. In-Reply-To: <70019.58948.qm@web31809.mail.mud.yahoo.com> Message-ID: <4997F456680DAD4DA1E042C40C46361101BC84FB@auper1ex002.au.aecomnet.com> Have you tried using shp2img on your mapfile? The tricky thing with tiled web-mapping systems is that they use aggressive caching. Any changes you have made to your mapfile would not be reflected until you forcibly remove all files from the cache of your browser. So perhaps you are looking at old images. Jacob > -----Original Message----- > From: ptang83 at yahoo.com [mailto:ptang83 at yahoo.com] > Sent: 14 April 2008 12:36 > To: mapserver-users at lists.osgeo.org; Delfos, Jacob > Subject: RE: [mapserver-users] ms4w mapserver 5.0 can't > display raster image. > > Sorry for the confusion. I have it untared as > C:\oatdir\nitelti020l.tar\nitelti020l.tif > > I can view it and I am also able to load it in to qgis. > > --- On Sun, 4/13/08, Delfos, Jacob <Jacob.Delfos at maunsell.com> wrote: > > > From: Delfos, Jacob <Jacob.Delfos at maunsell.com> > > Subject: RE: [mapserver-users] ms4w mapserver 5.0 can't > display raster image. > > To: ptang83 at yahoo.com, mapserver-users at lists.osgeo.org > > Date: Sunday, April 13, 2008, 10:53 PM > > Hi, > > > > It may be worth trying to untar your image. I suspect > > mapserver *may* > > not be able to do this on the fly. > > > > Regards, > > > > Jacob > > > > > > > > > -----Original Message----- > > > From: mapserver-users-bounces at lists.osgeo.org > > > [mailto:mapserver-users-bounces at lists.osgeo.org] On > > Behalf Of > > > ptang83 at yahoo.com > > > Sent: 14 April 2008 11:41 > > > To: mapserver-users at lists.osgeo.org > > > Subject: [mapserver-users] ms4w mapserver 5.0 > > can't display > > > raster image. > > > > > > I used Mapserver + Openlayers + Postgis. I can load > > shp data > > > to postgis and display it without any problem. > > However, > > > somehow I am not able to display any raster map even > > without > > > using postgis. I only see a blank rectangular on my > > web > > > browzer. I wonder whether there is a bug or something > > I did > > > wrong. Thanks in advance.. > > > > > > > > > I have downloaded ms4w Mapserver and has the following > > config. > > > # Apache 2.2.8 > > > # PHP 5.2.5 > > > # mapserv 5.0.2 at /cgi-bin/mapserv.exe > > > =========================== > > > LOG files show nothing wrong: > > > ====================================== > > > Sun Apr 13 21:57:14 > > > 2008,12804,127.0.0.1,nitelti020l,3,-0.000000 > > -90.000000 > > > 180.000000 90.000000,-1.000000 -1.000000,,normal > > execution > > > Sun Apr 13 21:57:14 > > > 2008,14076,127.0.0.1,nitelti020l,3,-180.000000 > > -90.000000 > > > 0.000000 90.000000,-1.000000 -1.000000,,normal > > execution > > > ======================================= > > > MAP file: > > > ========================================= > > > # Map file created from QGIS project file C:/Program > > > Files/Quantum GIS/nitelti020l.qgs > > > # Edit this file to customize for your map interface > > > MAP > > > NAME nitelti020l > > > # Map image size > > > SIZE 600 600 > > > UNITS dd > > > > > > EXTENT -6086744.000000 -5878356.737659 > > 4278894.138000 7580130.593659 > > > PROJECTION > > > # 'proj=longlat' > > > # 'ellps=WGS84' > > > # 'datum=WGS84' > > > # 'no_defs' > > > "init=epsg:4326" > > > END > > > > > > # Background color for the map canvas -- change as > > desired > > > IMAGECOLOR 192 192 192 > > > IMAGEQUALITY 95 > > > IMAGETYPE jpeg > > > OUTPUTFORMAT > > > NAME jpeg > > > DRIVER 'GD/JPEG' > > > MIMETYPE 'image/jpeg' > > > #IMAGEMODE PC256 > > > EXTENSION 'jpeg' > > > END > > > # Legend > > > LEGEND > > > IMAGECOLOR 255 255 255 > > > STATUS ON > > > KEYSIZE 18 12 > > > LABEL > > > TYPE BITMAP > > > SIZE MEDIUM > > > COLOR 0 0 89 > > > END > > > END > > > > > > # Web interface definition. Only the template > > parameter > > > # is required to display a map. See MapServer > > documentation > > > WEB > > > # Set IMAGEPATH to the path where MapServer should > > > # write its output. > > > IMAGEPATH '/tmp/' > > > > > > # Set IMAGEURL to the url that points to IMAGEPATH > > > # as defined in your web server configuration > > > IMAGEURL '/tmp/' > > > > > > # WMS server settings > > > METADATA > > > 'wms_title' > > 'nitelti020l' > > > 'wms_onlineresource' > > > > > 'http://localhost/cgi-bin/mapserv?map=wms.map&' > > > 'wms_srs' > > 'EPSG:4326' > > > END > > > > > > #Scale range at which web interface will operate > > > # Template and header/footer settings > > > # Only the template parameter is required to > > display a > > > map. See MapServer documentation > > > END > > > > > > WEB > > > LOG "c:\tmp\mapserv.log" > > > END > > > > > > LAYER > > > NAME 'nitelti020l' > > > TYPE RASTER > > > DATA > > 'C:\oatdir\nitelti020l.tar\nitelti020l.tif' > > > METADATA > > > 'wms_title' 'nitelti020l' > > > END > > > STATUS DEFAULT > > > TRANSPARENCY 100 > > > PROJECTION > > > # 'proj=longlat' > > > # 'ellps=WGS84' > > > # 'datum=WGS84' > > > # 'no_defs' > > > "init=epsg:4326" > > > END > > > END > > > > > > END > > > > > > > > > ============== > > > Raster date download > > > ============== > > > > > http://edcftp.cr.usgs.gov/pub/data/nationalatlas/nitelti020l.tar.gz > > > > > > ================ > > > simple open layer code > > > ================ > > > <html > > xmlns="http://www.w3.org/1999/xhtml"> > > > <head> > > > <style type="text/css"> > > > #map { > > > width: 800px; > > > height: 475px; > > > border: 1px solid black; > > > } > > > </style> > > > <script > > > > > src="http://openlayers.org/dev/lib/OpenLayers.js"></script> > > > <script type="text/javascript"> > > > <!-- > > > var map, layer; > > > > > > function init(){ > > > map = new OpenLayers.Map( 'map' ); > > > layer = new OpenLayers.Layer.MapServer( > > "OpenLayers WMS", > > > > > "http://localhost/cgi-bin/mapserv.exe", > > > {map: 'C:/Program > > Files/ms4w/Apache/htdocs/nitelti020l.map'} ); > > > map.addLayer(layer); > > > map.zoomToMaxExtent(); > > > } > > > // --> > > > </script> > > > </head> > > > <body onload="init()"> > > > <div id="map"></div> > > > </body> > > > </html> > > > > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Tired of spam? Yahoo! Mail has the best spam > > protection around > > > http://mail.yahoo.com > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > This email and any attachments are intended solely for the > > named recipient and are confidential. The copying or > > distribution of them or any information they contain by > > anyone other than the named recipient is prohibited. If you > > have received this document in error, please notify the > > sender and delete all copies from your computer system and > > destroy all hard copies. It is the recipient's > > responsibility to check this email and any attachments to > > this email for viruses before use. > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. From ptang83 at yahoo.com Sun Apr 13 22:23:19 2008 From: ptang83 at yahoo.com (ptang83 at yahoo.com) Date: Sun, 13 Apr 2008 22:23:19 -0700 (PDT) Subject: [mapserver-users] ms4w mapserver 5.0 can't display raster image. In-Reply-To: <4997F456680DAD4DA1E042C40C46361101BC84FB@auper1ex002.au.aecomnet.com> Message-ID: <442456.31284.qm@web31801.mail.mud.yahoo.com> Jacob I used the shp2img tool and it is able to generate a png file. I can view this generated image file and it looks good. C:\Program Files\ms4w\tools\mapserv>shp2img -m "C:\Program Files\ms4w\Apache\htdocs\nitelti020l.map" -o test1.png I have cleaned all tmp dir and I still no changes. while I play with other format data, it refresh no problem. I assume there is no cache issue. Could it be openlayers issue? Thanks! --- On Sun, 4/13/08, Delfos, Jacob <Jacob.Delfos at maunsell.com> wrote: > From: Delfos, Jacob <Jacob.Delfos at maunsell.com> > Subject: RE: [mapserver-users] ms4w mapserver 5.0 can't display raster image. > To: ptang83 at yahoo.com, mapserver-users at lists.osgeo.org > Date: Sunday, April 13, 2008, 11:40 PM > Have you tried using shp2img on your mapfile? > The tricky thing with tiled web-mapping systems is that > they use > aggressive caching. Any changes you have made to your > mapfile would not > be reflected until you forcibly remove all files from the > cache of your > browser. So perhaps you are looking at old images. > > Jacob > > > > -----Original Message----- > > From: ptang83 at yahoo.com [mailto:ptang83 at yahoo.com] > > Sent: 14 April 2008 12:36 > > To: mapserver-users at lists.osgeo.org; Delfos, Jacob > > Subject: RE: [mapserver-users] ms4w mapserver 5.0 > can't > > display raster image. > > > > Sorry for the confusion. I have it untared as > > C:\oatdir\nitelti020l.tar\nitelti020l.tif > > > > I can view it and I am also able to load it in to > qgis. > > > > --- On Sun, 4/13/08, Delfos, Jacob > <Jacob.Delfos at maunsell.com> wrote: > > > > > From: Delfos, Jacob > <Jacob.Delfos at maunsell.com> > > > Subject: RE: [mapserver-users] ms4w mapserver 5.0 > can't > > display raster image. > > > To: ptang83 at yahoo.com, > mapserver-users at lists.osgeo.org > > > Date: Sunday, April 13, 2008, 10:53 PM > > > Hi, > > > > > > It may be worth trying to untar your image. I > suspect > > > mapserver *may* > > > not be able to do this on the fly. > > > > > > Regards, > > > > > > Jacob > > > > > > > > > > > > > -----Original Message----- > > > > From: > mapserver-users-bounces at lists.osgeo.org > > > > > [mailto:mapserver-users-bounces at lists.osgeo.org] On > > > Behalf Of > > > > ptang83 at yahoo.com > > > > Sent: 14 April 2008 11:41 > > > > To: mapserver-users at lists.osgeo.org > > > > Subject: [mapserver-users] ms4w mapserver > 5.0 > > > can't display > > > > raster image. > > > > > > > > I used Mapserver + Openlayers + Postgis. I > can load > > > shp data > > > > to postgis and display it without any > problem. > > > However, > > > > somehow I am not able to display any raster > map even > > > without > > > > using postgis. I only see a blank > rectangular on my > > > web > > > > browzer. I wonder whether there is a bug or > something > > > I did > > > > wrong. Thanks in advance.. > > > > > > > > > > > > I have downloaded ms4w Mapserver and has the > following > > > config. > > > > # Apache 2.2.8 > > > > # PHP 5.2.5 > > > > # mapserv 5.0.2 at /cgi-bin/mapserv.exe > > > > =========================== > > > > LOG files show nothing wrong: > > > > ====================================== > > > > Sun Apr 13 21:57:14 > > > > 2008,12804,127.0.0.1,nitelti020l,3,-0.000000 > > > -90.000000 > > > > 180.000000 90.000000,-1.000000 > -1.000000,,normal > > > execution > > > > Sun Apr 13 21:57:14 > > > > > 2008,14076,127.0.0.1,nitelti020l,3,-180.000000 > > > -90.000000 > > > > 0.000000 90.000000,-1.000000 > -1.000000,,normal > > > execution > > > > ======================================= > > > > MAP file: > > > > ========================================= > > > > # Map file created from QGIS project file > C:/Program > > > > Files/Quantum GIS/nitelti020l.qgs > > > > # Edit this file to customize for your map > interface > > > > MAP > > > > NAME nitelti020l > > > > # Map image size > > > > SIZE 600 600 > > > > UNITS dd > > > > > > > > EXTENT -6086744.000000 -5878356.737659 > > > 4278894.138000 7580130.593659 > > > > PROJECTION > > > > # 'proj=longlat' > > > > # 'ellps=WGS84' > > > > # 'datum=WGS84' > > > > # 'no_defs' > > > > "init=epsg:4326" > > > > END > > > > > > > > # Background color for the map canvas -- > change as > > > desired > > > > IMAGECOLOR 192 192 192 > > > > IMAGEQUALITY 95 > > > > IMAGETYPE jpeg > > > > OUTPUTFORMAT > > > > NAME jpeg > > > > DRIVER 'GD/JPEG' > > > > MIMETYPE 'image/jpeg' > > > > #IMAGEMODE PC256 > > > > EXTENSION 'jpeg' > > > > END > > > > # Legend > > > > LEGEND > > > > IMAGECOLOR 255 255 255 > > > > STATUS ON > > > > KEYSIZE 18 12 > > > > LABEL > > > > TYPE BITMAP > > > > SIZE MEDIUM > > > > COLOR 0 0 89 > > > > END > > > > END > > > > > > > > # Web interface definition. Only the > template > > > parameter > > > > # is required to display a map. See > MapServer > > > documentation > > > > WEB > > > > # Set IMAGEPATH to the path where > MapServer should > > > > # write its output. > > > > IMAGEPATH '/tmp/' > > > > > > > > # Set IMAGEURL to the url that points to > IMAGEPATH > > > > # as defined in your web server > configuration > > > > IMAGEURL '/tmp/' > > > > > > > > # WMS server settings > > > > METADATA > > > > 'wms_title' > > > 'nitelti020l' > > > > 'wms_onlineresource' > > > > > > > > 'http://localhost/cgi-bin/mapserv?map=wms.map&' > > > > 'wms_srs' > > > 'EPSG:4326' > > > > END > > > > > > > > #Scale range at which web interface will > operate > > > > # Template and header/footer settings > > > > # Only the template parameter is > required to > > > display a > > > > map. See MapServer documentation > > > > END > > > > > > > > WEB > > > > LOG > "c:\tmp\mapserv.log" > > > > END > > > > > > > > LAYER > > > > NAME 'nitelti020l' > > > > TYPE RASTER > > > > DATA > > > > 'C:\oatdir\nitelti020l.tar\nitelti020l.tif' > > > > METADATA > > > > 'wms_title' > 'nitelti020l' > > > > END > > > > STATUS DEFAULT > > > > TRANSPARENCY 100 > > > > PROJECTION > > > > # 'proj=longlat' > > > > # 'ellps=WGS84' > > > > # 'datum=WGS84' > > > > # 'no_defs' > > > > "init=epsg:4326" > > > > END > > > > END > > > > > > > > END > > > > > > > > > > > > ============== > > > > Raster date download > > > > ============== > > > > > > > > http://edcftp.cr.usgs.gov/pub/data/nationalatlas/nitelti020l.tar.gz > > > > > > > > ================ > > > > simple open layer code > > > > ================ > > > > <html > > > > xmlns="http://www.w3.org/1999/xhtml"> > > > > <head> > > > > <style type="text/css"> > > > > #map { > > > > width: 800px; > > > > height: 475px; > > > > border: 1px solid black; > > > > } > > > > </style> > > > > <script > > > > > > > > src="http://openlayers.org/dev/lib/OpenLayers.js"></script> > > > > <script > type="text/javascript"> > > > > <!-- > > > > var map, layer; > > > > > > > > function init(){ > > > > map = new OpenLayers.Map( > 'map' ); > > > > layer = new > OpenLayers.Layer.MapServer( > > > "OpenLayers WMS", > > > > > > > "http://localhost/cgi-bin/mapserv.exe", > > > > > {map: 'C:/Program > > > Files/ms4w/Apache/htdocs/nitelti020l.map'} ); > > > > map.addLayer(layer); > > > > map.zoomToMaxExtent(); > > > > } > > > > // --> > > > > </script> > > > > </head> > > > > <body onload="init()"> > > > > <div > id="map"></div> > > > > </body> > > > > </html> > > > > > > > > > > > > > __________________________________________________ > > > > Do You Yahoo!? > > > > Tired of spam? Yahoo! Mail has the best > spam > > > protection around > > > > http://mail.yahoo.com > > > > > _______________________________________________ > > > > mapserver-users mailing list > > > > mapserver-users at lists.osgeo.org > > > > > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > > > > > This email and any attachments are intended > solely for the > > > named recipient and are confidential. The copying > or > > > distribution of them or any information they > contain by > > > anyone other than the named recipient is > prohibited. If you > > > have received this document in error, please > notify the > > > sender and delete all copies from your computer > system and > > > destroy all hard copies. It is the > recipient's > > > responsibility to check this email and any > attachments to > > > this email for viruses before use. > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > > > > > > This email and any attachments are intended solely for the > named recipient and are confidential. The copying or > distribution of them or any information they contain by > anyone other than the named recipient is prohibited. If you > have received this document in error, please notify the > sender and delete all copies from your computer system and > destroy all hard copies. It is the recipient's > responsibility to check this email and any attachments to > this email for viruses before use. ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ From Jacob.Delfos at maunsell.com Sun Apr 13 22:25:38 2008 From: Jacob.Delfos at maunsell.com (Delfos, Jacob) Date: Mon, 14 Apr 2008 13:25:38 +0800 Subject: [mapserver-users] ms4w mapserver 5.0 can't display raster image. In-Reply-To: <442456.31284.qm@web31801.mail.mud.yahoo.com> Message-ID: <4997F456680DAD4DA1E042C40C46361101BC84FC@auper1ex002.au.aecomnet.com> You must not only remove the server-side cache, but also the client-side cache (browser). Both have to be removed in order for it to refresh. I haven't used openlayers before, but I assume the files you removed were the server-side ones. Technically speaking, if shp2img works, then all should be fine. If not, then it must be an openlayers configuration issue. Jacob > -----Original Message----- > From: ptang83 at yahoo.com [mailto:ptang83 at yahoo.com] > Sent: 14 April 2008 13:23 > To: mapserver-users at lists.osgeo.org; Delfos, Jacob > Subject: RE: [mapserver-users] ms4w mapserver 5.0 can't > display raster image. > > Jacob > > I used the shp2img tool and it is able to generate a png > file. I can view this generated image file and it looks good. > > C:\Program Files\ms4w\tools\mapserv>shp2img -m "C:\Program > Files\ms4w\Apache\htdocs\nitelti020l.map" -o test1.png > > I have cleaned all tmp dir and I still no changes. while I > play with other format data, it refresh no problem. I assume > there is no cache issue. > > Could it be openlayers issue? > > Thanks! > > --- On Sun, 4/13/08, Delfos, Jacob <Jacob.Delfos at maunsell.com> wrote: > > > From: Delfos, Jacob <Jacob.Delfos at maunsell.com> > > Subject: RE: [mapserver-users] ms4w mapserver 5.0 can't > display raster image. > > To: ptang83 at yahoo.com, mapserver-users at lists.osgeo.org > > Date: Sunday, April 13, 2008, 11:40 PM > > Have you tried using shp2img on your mapfile? > > The tricky thing with tiled web-mapping systems is that > > they use > > aggressive caching. Any changes you have made to your > > mapfile would not > > be reflected until you forcibly remove all files from the > > cache of your > > browser. So perhaps you are looking at old images. > > > > Jacob > > > > > > > -----Original Message----- > > > From: ptang83 at yahoo.com [mailto:ptang83 at yahoo.com] > > > Sent: 14 April 2008 12:36 > > > To: mapserver-users at lists.osgeo.org; Delfos, Jacob > > > Subject: RE: [mapserver-users] ms4w mapserver 5.0 > > can't > > > display raster image. > > > > > > Sorry for the confusion. I have it untared as > > > C:\oatdir\nitelti020l.tar\nitelti020l.tif > > > > > > I can view it and I am also able to load it in to > > qgis. > > > > > > --- On Sun, 4/13/08, Delfos, Jacob > > <Jacob.Delfos at maunsell.com> wrote: > > > > > > > From: Delfos, Jacob > > <Jacob.Delfos at maunsell.com> > > > > Subject: RE: [mapserver-users] ms4w mapserver 5.0 > > can't > > > display raster image. > > > > To: ptang83 at yahoo.com, > > mapserver-users at lists.osgeo.org > > > > Date: Sunday, April 13, 2008, 10:53 PM > > > > Hi, > > > > > > > > It may be worth trying to untar your image. I > > suspect > > > > mapserver *may* > > > > not be able to do this on the fly. > > > > > > > > Regards, > > > > > > > > Jacob > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: > > mapserver-users-bounces at lists.osgeo.org > > > > > > > [mailto:mapserver-users-bounces at lists.osgeo.org] On > > > > Behalf Of > > > > > ptang83 at yahoo.com > > > > > Sent: 14 April 2008 11:41 > > > > > To: mapserver-users at lists.osgeo.org > > > > > Subject: [mapserver-users] ms4w mapserver > > 5.0 > > > > can't display > > > > > raster image. > > > > > > > > > > I used Mapserver + Openlayers + Postgis. I > > can load > > > > shp data > > > > > to postgis and display it without any > > problem. > > > > However, > > > > > somehow I am not able to display any raster > > map even > > > > without > > > > > using postgis. I only see a blank > > rectangular on my > > > > web > > > > > browzer. I wonder whether there is a bug or > > something > > > > I did > > > > > wrong. Thanks in advance.. > > > > > > > > > > > > > > > I have downloaded ms4w Mapserver and has the > > following > > > > config. > > > > > # Apache 2.2.8 > > > > > # PHP 5.2.5 > > > > > # mapserv 5.0.2 at /cgi-bin/mapserv.exe > > > > > =========================== > > > > > LOG files show nothing wrong: > > > > > ====================================== > > > > > Sun Apr 13 21:57:14 > > > > > 2008,12804,127.0.0.1,nitelti020l,3,-0.000000 > > > > -90.000000 > > > > > 180.000000 90.000000,-1.000000 > > -1.000000,,normal > > > > execution > > > > > Sun Apr 13 21:57:14 > > > > > > > 2008,14076,127.0.0.1,nitelti020l,3,-180.000000 > > > > -90.000000 > > > > > 0.000000 90.000000,-1.000000 > > -1.000000,,normal > > > > execution > > > > > ======================================= > > > > > MAP file: > > > > > ========================================= > > > > > # Map file created from QGIS project file > > C:/Program > > > > > Files/Quantum GIS/nitelti020l.qgs > > > > > # Edit this file to customize for your map > > interface > > > > > MAP > > > > > NAME nitelti020l > > > > > # Map image size > > > > > SIZE 600 600 > > > > > UNITS dd > > > > > > > > > > EXTENT -6086744.000000 -5878356.737659 > > > > 4278894.138000 7580130.593659 > > > > > PROJECTION > > > > > # 'proj=longlat' > > > > > # 'ellps=WGS84' > > > > > # 'datum=WGS84' > > > > > # 'no_defs' > > > > > "init=epsg:4326" > > > > > END > > > > > > > > > > # Background color for the map canvas -- > > change as > > > > desired > > > > > IMAGECOLOR 192 192 192 > > > > > IMAGEQUALITY 95 > > > > > IMAGETYPE jpeg > > > > > OUTPUTFORMAT > > > > > NAME jpeg > > > > > DRIVER 'GD/JPEG' > > > > > MIMETYPE 'image/jpeg' > > > > > #IMAGEMODE PC256 > > > > > EXTENSION 'jpeg' > > > > > END > > > > > # Legend > > > > > LEGEND > > > > > IMAGECOLOR 255 255 255 > > > > > STATUS ON > > > > > KEYSIZE 18 12 > > > > > LABEL > > > > > TYPE BITMAP > > > > > SIZE MEDIUM > > > > > COLOR 0 0 89 > > > > > END > > > > > END > > > > > > > > > > # Web interface definition. Only the > > template > > > > parameter > > > > > # is required to display a map. See > > MapServer > > > > documentation > > > > > WEB > > > > > # Set IMAGEPATH to the path where > > MapServer should > > > > > # write its output. > > > > > IMAGEPATH '/tmp/' > > > > > > > > > > # Set IMAGEURL to the url that points to > > IMAGEPATH > > > > > # as defined in your web server > > configuration > > > > > IMAGEURL '/tmp/' > > > > > > > > > > # WMS server settings > > > > > METADATA > > > > > 'wms_title' > > > > 'nitelti020l' > > > > > 'wms_onlineresource' > > > > > > > > > > > 'http://localhost/cgi-bin/mapserv?map=wms.map&' > > > > > 'wms_srs' > > > > 'EPSG:4326' > > > > > END > > > > > > > > > > #Scale range at which web interface will > > operate > > > > > # Template and header/footer settings > > > > > # Only the template parameter is > > required to > > > > display a > > > > > map. See MapServer documentation > > > > > END > > > > > > > > > > WEB > > > > > LOG > > "c:\tmp\mapserv.log" > > > > > END > > > > > > > > > > LAYER > > > > > NAME 'nitelti020l' > > > > > TYPE RASTER > > > > > DATA > > > > > > 'C:\oatdir\nitelti020l.tar\nitelti020l.tif' > > > > > METADATA > > > > > 'wms_title' > > 'nitelti020l' > > > > > END > > > > > STATUS DEFAULT > > > > > TRANSPARENCY 100 > > > > > PROJECTION > > > > > # 'proj=longlat' > > > > > # 'ellps=WGS84' > > > > > # 'datum=WGS84' > > > > > # 'no_defs' > > > > > "init=epsg:4326" > > > > > END > > > > > END > > > > > > > > > > END > > > > > > > > > > > > > > > ============== > > > > > Raster date download > > > > > ============== > > > > > > > > > > > http://edcftp.cr.usgs.gov/pub/data/nationalatlas/nitelti020l.tar.gz > > > > > > > > > > ================ > > > > > simple open layer code > > > > > ================ > > > > > <html > > > > > > xmlns="http://www.w3.org/1999/xhtml"> > > > > > <head> > > > > > <style type="text/css"> > > > > > #map { > > > > > width: 800px; > > > > > height: 475px; > > > > > border: 1px solid black; > > > > > } > > > > > </style> > > > > > <script > > > > > > > > > > > src="http://openlayers.org/dev/lib/OpenLayers.js"></script> > > > > > <script > > type="text/javascript"> > > > > > <!-- > > > > > var map, layer; > > > > > > > > > > function init(){ > > > > > map = new OpenLayers.Map( > > 'map' ); > > > > > layer = new > > OpenLayers.Layer.MapServer( > > > > "OpenLayers WMS", > > > > > > > > > "http://localhost/cgi-bin/mapserv.exe", > > > > > > > {map: 'C:/Program > > > > Files/ms4w/Apache/htdocs/nitelti020l.map'} ); > > > > > map.addLayer(layer); > > > > > map.zoomToMaxExtent(); > > > > > } > > > > > // --> > > > > > </script> > > > > > </head> > > > > > <body onload="init()"> > > > > > <div > > id="map"></div> > > > > > </body> > > > > > </html> > > > > > > > > > > > > > > > > > __________________________________________________ > > > > > Do You Yahoo!? > > > > > Tired of spam? Yahoo! Mail has the best > > spam > > > > protection around > > > > > http://mail.yahoo.com > > > > > > > _______________________________________________ > > > > > mapserver-users mailing list > > > > > mapserver-users at lists.osgeo.org > > > > > > > > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > > > > > > > > > This email and any attachments are intended > > solely for the > > > > named recipient and are confidential. The copying > > or > > > > distribution of them or any information they > > contain by > > > > anyone other than the named recipient is > > prohibited. If you > > > > have received this document in error, please > > notify the > > > > sender and delete all copies from your computer > > system and > > > > destroy all hard copies. It is the > > recipient's > > > > responsibility to check this email and any > > attachments to > > > > this email for viruses before use. > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Tired of spam? Yahoo! Mail has the best spam > > protection around > > > http://mail.yahoo.com > > > > > > > > > > This email and any attachments are intended solely for the > > named recipient and are confidential. The copying or > > distribution of them or any information they contain by > > anyone other than the named recipient is prohibited. If you > > have received this document in error, please notify the > > sender and delete all copies from your computer system and > > destroy all hard copies. It is the recipient's > > responsibility to check this email and any attachments to > > this email for viruses before use. > > > > ______________________________________________________________ > ______________________ > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > > This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. From ptang83 at yahoo.com Sun Apr 13 23:07:36 2008 From: ptang83 at yahoo.com (ptang83 at yahoo.com) Date: Sun, 13 Apr 2008 23:07:36 -0700 (PDT) Subject: [mapserver-users] ms4w mapserver 5.0 can't display raster image. In-Reply-To: <4997F456680DAD4DA1E042C40C46361101BC84FC@auper1ex002.au.aecomnet.com> Message-ID: <427707.29890.qm@web31812.mail.mud.yahoo.com> Hi Jacob: Thanks a lot for your help! I changed my webpage and I am able to display raster by not using openlayers. Now I know the issue is with openlayers and I can look into it further. Thanks again for helping me identify this issue. -P. T. --- On Mon, 4/14/08, Delfos, Jacob <Jacob.Delfos at maunsell.com> wrote: > From: Delfos, Jacob <Jacob.Delfos at maunsell.com> > Subject: RE: [mapserver-users] ms4w mapserver 5.0 can't display raster image. > To: ptang83 at yahoo.com, mapserver-users at lists.osgeo.org > Date: Monday, April 14, 2008, 12:25 AM > You must not only remove the server-side cache, but also the > client-side > cache (browser). Both have to be removed in order for it to > refresh. I > haven't used openlayers before, but I assume the files > you removed were > the server-side ones. > > Technically speaking, if shp2img works, then all should be > fine. If not, > then it must be an openlayers configuration issue. > > Jacob > > > > > > -----Original Message----- > > From: ptang83 at yahoo.com [mailto:ptang83 at yahoo.com] > > Sent: 14 April 2008 13:23 > > To: mapserver-users at lists.osgeo.org; Delfos, Jacob > > Subject: RE: [mapserver-users] ms4w mapserver 5.0 > can't > > display raster image. > > > > Jacob > > > > I used the shp2img tool and it is able to generate a > png > > file. I can view this generated image file and it > looks good. > > > > C:\Program > Files\ms4w\tools\mapserv>shp2img -m > "C:\Program > > > Files\ms4w\Apache\htdocs\nitelti020l.map" > -o test1.png > > > > I have cleaned all tmp dir and I still no changes. > while I > > play with other format data, it refresh no problem. I > assume > > there is no cache issue. > > > > Could it be openlayers issue? > > > > Thanks! > > > > --- On Sun, 4/13/08, Delfos, Jacob > <Jacob.Delfos at maunsell.com> wrote: > > > > > From: Delfos, Jacob > <Jacob.Delfos at maunsell.com> > > > Subject: RE: [mapserver-users] ms4w mapserver 5.0 > can't > > display raster image. > > > To: ptang83 at yahoo.com, > mapserver-users at lists.osgeo.org > > > Date: Sunday, April 13, 2008, 11:40 PM > > > Have you tried using shp2img on your mapfile? > > > The tricky thing with tiled web-mapping systems > is that > > > they use > > > aggressive caching. Any changes you have made to > your > > > mapfile would not > > > be reflected until you forcibly remove all files > from the > > > cache of your > > > browser. So perhaps you are looking at old > images. > > > > > > Jacob > > > > > > > > > > -----Original Message----- > > > > From: ptang83 at yahoo.com > [mailto:ptang83 at yahoo.com] > > > > Sent: 14 April 2008 12:36 > > > > To: mapserver-users at lists.osgeo.org; Delfos, > Jacob > > > > Subject: RE: [mapserver-users] ms4w > mapserver 5.0 > > > can't > > > > display raster image. > > > > > > > > Sorry for the confusion. I have it untared > as > > > > > C:\oatdir\nitelti020l.tar\nitelti020l.tif > > > > > > > > I can view it and I am also able to load it > in to > > > qgis. > > > > > > > > --- On Sun, 4/13/08, Delfos, Jacob > > > <Jacob.Delfos at maunsell.com> wrote: > > > > > > > > > From: Delfos, Jacob > > > <Jacob.Delfos at maunsell.com> > > > > > Subject: RE: [mapserver-users] ms4w > mapserver 5.0 > > > can't > > > > display raster image. > > > > > To: ptang83 at yahoo.com, > > > mapserver-users at lists.osgeo.org > > > > > Date: Sunday, April 13, 2008, 10:53 PM > > > > > Hi, > > > > > > > > > > It may be worth trying to untar your > image. I > > > suspect > > > > > mapserver *may* > > > > > not be able to do this on the fly. > > > > > > > > > > Regards, > > > > > > > > > > Jacob > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: > > > mapserver-users-bounces at lists.osgeo.org > > > > > > > > > [mailto:mapserver-users-bounces at lists.osgeo.org] > On > > > > > Behalf Of > > > > > > ptang83 at yahoo.com > > > > > > Sent: 14 April 2008 11:41 > > > > > > To: > mapserver-users at lists.osgeo.org > > > > > > Subject: [mapserver-users] ms4w > mapserver > > > 5.0 > > > > > can't display > > > > > > raster image. > > > > > > > > > > > > I used Mapserver + Openlayers + > Postgis. I > > > can load > > > > > shp data > > > > > > to postgis and display it without > any > > > problem. > > > > > However, > > > > > > somehow I am not able to display > any raster > > > map even > > > > > without > > > > > > using postgis. I only see a blank > > > rectangular on my > > > > > web > > > > > > browzer. I wonder whether there is > a bug or > > > something > > > > > I did > > > > > > wrong. Thanks in advance.. > > > > > > > > > > > > > > > > > > I have downloaded ms4w Mapserver > and has the > > > following > > > > > config. > > > > > > # Apache 2.2.8 > > > > > > # PHP 5.2.5 > > > > > > # mapserv 5.0.2 at > /cgi-bin/mapserv.exe > > > > > > =========================== > > > > > > LOG files show nothing wrong: > > > > > > > ====================================== > > > > > > Sun Apr 13 21:57:14 > > > > > > > 2008,12804,127.0.0.1,nitelti020l,3,-0.000000 > > > > > -90.000000 > > > > > > 180.000000 90.000000,-1.000000 > > > -1.000000,,normal > > > > > execution > > > > > > Sun Apr 13 21:57:14 > > > > > > > > > 2008,14076,127.0.0.1,nitelti020l,3,-180.000000 > > > > > -90.000000 > > > > > > 0.000000 90.000000,-1.000000 > > > -1.000000,,normal > > > > > execution > > > > > > > ======================================= > > > > > > MAP file: > > > > > > > ========================================= > > > > > > # Map file created from QGIS > project file > > > C:/Program > > > > > > Files/Quantum GIS/nitelti020l.qgs > > > > > > # Edit this file to customize for > your map > > > interface > > > > > > MAP > > > > > > NAME nitelti020l > > > > > > # Map image size > > > > > > SIZE 600 600 > > > > > > UNITS dd > > > > > > > > > > > > EXTENT -6086744.000000 > -5878356.737659 > > > > > 4278894.138000 7580130.593659 > > > > > > PROJECTION > > > > > > # 'proj=longlat' > > > > > > # 'ellps=WGS84' > > > > > > # 'datum=WGS84' > > > > > > # 'no_defs' > > > > > > "init=epsg:4326" > > > > > > END > > > > > > > > > > > > # Background color for the map > canvas -- > > > change as > > > > > desired > > > > > > IMAGECOLOR 192 192 192 > > > > > > IMAGEQUALITY 95 > > > > > > IMAGETYPE jpeg > > > > > > OUTPUTFORMAT > > > > > > NAME jpeg > > > > > > DRIVER 'GD/JPEG' > > > > > > MIMETYPE 'image/jpeg' > > > > > > #IMAGEMODE PC256 > > > > > > EXTENSION 'jpeg' > > > > > > END > > > > > > # Legend > > > > > > LEGEND > > > > > > IMAGECOLOR 255 255 255 > > > > > > STATUS ON > > > > > > KEYSIZE 18 12 > > > > > > LABEL > > > > > > TYPE BITMAP > > > > > > SIZE MEDIUM > > > > > > COLOR 0 0 89 > > > > > > END > > > > > > END > > > > > > > > > > > > # Web interface definition. Only > the > > > template > > > > > parameter > > > > > > # is required to display a map. > See > > > MapServer > > > > > documentation > > > > > > WEB > > > > > > # Set IMAGEPATH to the path > where > > > MapServer should > > > > > > # write its output. > > > > > > IMAGEPATH '/tmp/' > > > > > > > > > > > > # Set IMAGEURL to the url that > points to > > > IMAGEPATH > > > > > > # as defined in your web > server > > > configuration > > > > > > IMAGEURL '/tmp/' > > > > > > > > > > > > # WMS server settings > > > > > > METADATA > > > > > > 'wms_title' > > > > > > 'nitelti020l' > > > > > > 'wms_onlineresource' > > > > > > > > > > > > > > > > 'http://localhost/cgi-bin/mapserv?map=wms.map&' > > > > > > 'wms_srs' > > > > > > 'EPSG:4326' > > > > > > END > > > > > > > > > > > > #Scale range at which web > interface will > > > operate > > > > > > # Template and header/footer > settings > > > > > > # Only the template parameter > is > > > required to > > > > > display a > > > > > > map. See MapServer documentation > > > > > > END > > > > > > > > > > > > WEB > > > > > > LOG > > > "c:\tmp\mapserv.log" > > > > > > END > > > > > > > > > > > > LAYER > > > > > > NAME 'nitelti020l' > > > > > > TYPE RASTER > > > > > > DATA > > > > > > > > > 'C:\oatdir\nitelti020l.tar\nitelti020l.tif' > > > > > > METADATA > > > > > > 'wms_title' > > > 'nitelti020l' > > > > > > END > > > > > > STATUS DEFAULT > > > > > > TRANSPARENCY 100 > > > > > > PROJECTION > > > > > > # 'proj=longlat' > > > > > > # 'ellps=WGS84' > > > > > > # 'datum=WGS84' > > > > > > # 'no_defs' > > > > > > "init=epsg:4326" > > > > > > END > > > > > > END > > > > > > > > > > > > END > > > > > > > > > > > > > > > > > > ============== > > > > > > Raster date download > > > > > > ============== > > > > > > > > > > > > > > > http://edcftp.cr.usgs.gov/pub/data/nationalatlas/nitelti020l.tar.gz > > > > > > > > > > > > ================ > > > > > > simple open layer code > > > > > > ================ > > > > > > <html > > > > > > > > > xmlns="http://www.w3.org/1999/xhtml"> > > > > > > <head> > > > > > > <style > type="text/css"> > > > > > > #map { > > > > > > width: 800px; > > > > > > height: 475px; > > > > > > border: 1px solid > black; > > > > > > } > > > > > > </style> > > > > > > <script > > > > > > > > > > > > > > > src="http://openlayers.org/dev/lib/OpenLayers.js"></script> > > > > > > <script > > > type="text/javascript"> > > > > > > <!-- > > > > > > var map, layer; > > > > > > > > > > > > function init(){ > > > > > > map = new > OpenLayers.Map( > > > 'map' ); > > > > > > layer = new > > > OpenLayers.Layer.MapServer( > > > > > "OpenLayers WMS", > > > > > > > > > > > > "http://localhost/cgi-bin/mapserv.exe", > > > > > > > > > {map: 'C:/Program > > > > > > Files/ms4w/Apache/htdocs/nitelti020l.map'} ); > > > > > > map.addLayer(layer); > > > > > > map.zoomToMaxExtent(); > > > > > > } > > > > > > // --> > > > > > > </script> > > > > > > </head> > > > > > > <body > onload="init()"> > > > > > > <div > > > id="map"></div> > > > > > > </body> > > > > > > </html> > > > > > > > > > > > > > > > > > > > > > > __________________________________________________ > > > > > > Do You Yahoo!? > > > > > > Tired of spam? Yahoo! Mail has > the best > > > spam > > > > > protection around > > > > > > http://mail.yahoo.com > > > > > > > > > _______________________________________________ > > > > > > mapserver-users mailing list > > > > > > mapserver-users at lists.osgeo.org > > > > > > > > > > > > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > > > > > > > > > > > > > This email and any attachments are > intended > > > solely for the > > > > > named recipient and are confidential. > The copying > > > or > > > > > distribution of them or any information > they > > > contain by > > > > > anyone other than the named recipient > is > > > prohibited. If you > > > > > have received this document in error, > please > > > notify the > > > > > sender and delete all copies from your > computer > > > system and > > > > > destroy all hard copies. It is the > > > recipient's > > > > > responsibility to check this email and > any > > > attachments to > > > > > this email for viruses before use. > > > > > > > > > __________________________________________________ > > > > Do You Yahoo!? > > > > Tired of spam? Yahoo! Mail has the best > spam > > > protection around > > > > http://mail.yahoo.com > > > > > > > > > > > > > > This email and any attachments are intended > solely for the > > > named recipient and are confidential. The copying > or > > > distribution of them or any information they > contain by > > > anyone other than the named recipient is > prohibited. If you > > > have received this document in error, please > notify the > > > sender and delete all copies from your computer > system and > > > destroy all hard copies. It is the > recipient's > > > responsibility to check this email and any > attachments to > > > this email for viruses before use. > > > > > > > > > ______________________________________________________________ > > ______________________ > > Be a better friend, newshound, and > > know-it-all with Yahoo! Mobile. Try it now. > > > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > > > > > > This email and any attachments are intended solely for the > named recipient and are confidential. The copying or > distribution of them or any information they contain by > anyone other than the named recipient is prohibited. If you > have received this document in error, please notify the > sender and delete all copies from your computer system and > destroy all hard copies. It is the recipient's > responsibility to check this email and any attachments to > this email for viruses before use. ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ From c.pelliconi at sis-ter.it Sun Apr 13 23:20:52 2008 From: c.pelliconi at sis-ter.it (Carlo Pelliconi) Date: Mon, 14 Apr 2008 08:20:52 +0200 Subject: [mapserver-users] zoom extent In-Reply-To: <871543920804111303p1fcece1evfd31d8288979c11c@mail.gmail.com> References: <871543920804111303p1fcece1evfd31d8288979c11c@mail.gmail.com> Message-ID: <4802F7C4.10708@sis-ter.it> I think you should try strarting with mapserver basic, not javascript. Mapserver CGI documentation (for functions) here: http://mapserver.gis.umn.edu/docs/reference/cgi/controls Then, for the template (i.e. the html which embeds the map): http://mapserver.gis.umn.edu/docs/reference/templatereference/templatereference/view I've never used javascript for functions such as zoom in, because mapserver itself has them already defined. Good work. Carlo john tse ha scritto: > Hi,Guys > > I'm currently doing a volunteer project and i need to get a zoom to > button to work. > This is the code i have right now > > <html> > <body> > <head> > <script type = "text/javascript"> > // zoom to Region > > function GoRegion() { > > // alert(document.mapserv.mapzoomarea.value); > > document.mapserv.target=""; > > document.mapserv.mode.value="browse"; > > document.mapserv.imgext.value = > (document.mapserv.mapzoomarea.value); > > document.mapserv.submit(); > </script> > </head> > > > <select name="mapzoomarea" onChange="GoRegion();"> > > <option>Zoom to Region</option> > > <option>------------------------</option> > > <option value="5457203 487104 5451873 482304">Reserve 2</option> > > <option value="5435308 491431 5434498 490403">Reserve 4</option> > > <option value="5425919 541,907 5502970 444168">Musqueam Statement > Of Intent</option> > > <option value="5435189 475830 5457751 504449">Richmond > Boundary</option> > > <option value="5448859 481843 5463269 500122">Vancouver Boundary > </option> > > <option value="5432692 482228 5457268 515426">North Arm Fraser > River </option> > > </select> > > > > </body> > </html> > > it doesn't do anything, and i have no idea what's wrong with it, any > help will be much appreciated. > > thanx > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ing. Carlo Pelliconi c.pelliconi at sis-ter.it SIS.TER S.p.A. www.sis-ter.it via Mentana, 10 40026 Imola (BO) Italy ATTENZIONE! Questo documento ? indirizzato esclusivamente al destinatario. Tutte le informazioni ivi contenute, compresi eventuali allegati, sono soggette a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di "privacy" e ne ? proibita l'utilizzazione da parte di altri soggetti. Si ricorda che la diffusione l'utilizzo e/o la conservazione dei dati ricevuti per errore costituisce violazione di carattere penale ai sensi dell'art. 616 Codice penale (Violazione, sottrazione e soppressione di corrispondenza). Se avesse ricevuto per errore questo messaggio, La preghiamo cortesemente di contattare il mittente al pi? presto e di cancellare il messaggio subito dopo. Grazie. ATTENTION! This message is being sent from Sis.Ter S.p.A. and may contain information which is confidential or privileged. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. Any unauthorized use of the content of this message is a breach of your duty to respect the confidentiality of the correspondence between other persons and can expose the responsible party to civil and/or criminal penalties (D.Lgs. 196/2003 "Tutela della privacy" e art. 616 Codice penale "Violazione, sottrazione e soppressione di corrispondenza"), and may constitute a more serious offence. Thanks. ACHTUNG! Dieses Dokument ist ausschlie?lich dem Empf?nger vorbehalten. Die darin enthaltenen Informationen, auch jene in etwaigen Anlagen, gelten im Sinne des Dekrets Nr. 196/2003 in Sachen "Privacy" als streng vertraulich und d?rfen von anderen Personen nicht verwende werden. Wer diese Mitteilung irrt?mlicherweise erh?lt ist gebeten uns umgehend zu informieren und anschlie?end die Mitteilung zu vernichten. Vielen Dank. From aileen.baylon at cybersoft.ph Sun Apr 13 23:23:50 2008 From: aileen.baylon at cybersoft.ph (Aileen) Date: Mon, 14 Apr 2008 14:23:50 +0800 Subject: [mapserver-users] Mapserver 5 and Openlayers 2.5 passingof parameters. Message-ID: <58CBCFFC1113412C94B7C8B9C4BAC09A@Aileen> Hi Steve, We were able to implement the lines and polygons already...it was a big help. Thanks! Now we have a problem regarding passing multiple values from mapserver to openlayers. We have tried this: e.g. ...&foo_value=value1 value2&... but with no avail. We are trying to implement thematic mapping and routing functionalities for the map. I hope you can enlighten us on this. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080414/754a0e3a/attachment.htm> From Piero.Cavalieri at heidi.it Mon Apr 14 00:50:01 2008 From: Piero.Cavalieri at heidi.it (Piero Cavalieri) Date: Mon, 14 Apr 2008 09:50:01 +0200 Subject: [mapserver-users] Reg: 3D Mapping Capability for Mapserver In-Reply-To: <970194.29199.qm@web33203.mail.mud.yahoo.com> References: <79ad14900804110526w53b51b15x81f00a2ab95c73e2@mail.gmail.com> <970194.29199.qm@web33203.mail.mud.yahoo.com> Message-ID: <4841F745477DF94A97C515658C91BB2F1556E8@lan-exc-01.heidi.local> Deegree has a Java implementation of the OGC WPVS service, which can generate 3D views from WCS/WMS and WFS. However you don't make analysis, I think (which kind ?) Cheers Piero > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users- > bounces at lists.osgeo.org] On Behalf Of Brent Wood > Sent: venerd? 11 aprile 2008 19:36 > To: venkat; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Reg: 3D Mapping Capability for Mapserver > > > --- venkat <ven.tammineni at gmail.com> wrote: > > > Dear All, > > > > I am Venkat,I want to a stand alone application for 3D analysis.I am > using > > C#.net.is Mapserver having 3D mapping capability?or is there any other > > open source software is available.Please let me know . I am waiting for > your > > great response.It is very urgent. > > Hi Venkat, > > Some open source options to look at: > > GMT (Generic Mapping Tools) can generate & plot surfaces in 3D very > effectively, but is not strictly a 3D analysis tool. > > OpenDX is a very powerful multidimensional visualisation tool, but not > really > for analysis. > > R can do all sorts of multidimensional modelling/statistics. > > http://gmt.soest.hawaii.edu > http://www.opendx.org > http://www.r-project.org > > > HTH, > > Brent Wood > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From petrapie at post.cz Mon Apr 14 02:36:50 2008 From: petrapie at post.cz (=?ISO-8859-2?Q?Petra_Pietrasov=E1?=) Date: Mon, 14 Apr 2008 11:36:50 +0200 Subject: [mapserver-users] error_output Message-ID: <480325B2.6000305@post.cz> Good morning, I am a student of geoinformatics in the Czech Republic. I am just finishing my diploma thesis about a map server and I have a problem with my aplication. Sometimes there is an error in my client. The error of client is in displaying received images (they look like those saved in computer). I am sending you four images for illustration : data - this is how I can see an orthophoto map in my aplication data_png - this is the image of orthophoto map how is saved in my computer Can you write me please where the problem is? Or what do you think I should change? Thank you best regards Petra Pietrasova Czech Republic -------------- next part -------------- A non-text attachment was scrubbed... Name: data_png.png Type: image/png Size: 3201 bytes Desc: not available URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080414/112c166f/attachment.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: data.png Type: image/png Size: 2921 bytes Desc: not available URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080414/112c166f/attachment-0001.png> From whereismyshuttle at gmail.com Mon Apr 14 03:55:36 2008 From: whereismyshuttle at gmail.com (Chris King) Date: Mon, 14 Apr 2008 12:55:36 +0200 Subject: [mapserver-users] Mapserver and Microsoft SQL Server 2008 In-Reply-To: <777874.76501.qm@web33204.mail.mud.yahoo.com> References: <1F71E67629064164A9EC1D124CB53D7B@Chris> <777874.76501.qm@web33204.mail.mud.yahoo.com> Message-ID: <009701c89e1e$18663ca0$7d14aaaa@ncct.local> Thanks for the reply, I did notice the geometry_columns table was missing and at first when I added it, I got SQL errors, but after a few tweaks, I no longer get the errors when I have a geometry_columns table in my database. I narrowed the error down to the layer.open() command, and found where the error occurs in the source code of the sql server plugin dll. For some reason it cannot locate the geometry column in either the table itself or the geometry_columns table, even though both are specified as 'the_geom'. I'm looking into the security now, I did notice that I could not set the owner of the geometry_columns table... CREATE TABLE geometry_columns OWNER TO owner, SQL isn't liking the 'OWNER' part... Otherwise I'll have another look at the webserver permissions, but those have never been a problem... At a bit of a loss here and running out of ideas... Thanks Chris -----Original Message----- From: Brent Wood [mailto:pcreso at pcreso.com] Sent: 11 April 2008 10:49 PM To: Chris King Subject: Re: [mapserver-users] Mapserver and Microsoft SQL Server 2008 --- Chris King <whereismyshuttle at gmail.com> wrote: > Hi > > I manually imported my data from postgre into SQL 2008 and the map > displays fine. I am now executing a the layer.queryByPoint () command > followed by the > layer.getResults() command at which point the program fails and gives > the following error: > > msMSSQL2008LayerGetItems(): Query error. msMSSQL2008LayerGetItems: > tried to find the geometry column in the results from the database, > but couldnt find it. Is it miss-capitialized? 'the_geom' > > I know when you create the tables in the postgre database you > explicitly add the geometry column after the table creation I'm guessing here, never having used SQL Server.... This is like it is with PostGIS because PostGIS is not fully integrated with Postgres, but a third party addon. In SQL Sever 2008 I would assume you'd use "alter table add ..." to add a new geometry column, like you do for any other native datatype. Assuming MS actually followed someone else's standard for a change, your database should have a geometry_columns table with the metadata of your geometry column & its table there. See if that all seems OK first. My guess is that mapserver will be reading some info about the geometry from there... So your first check should be that the geometry column exists in both the table you created & the geometry_columns table. Other than that, I can only think of a permissions problem somewhere? Is the web server user running the mapserver cgi able to access the SQL db/table OK?? Someone who has more SQL Server expertise will have to advise any further :-) HTH, Brent Wood > > ie: SELECT > AddGeometryColumn('','ct_main_points','the_geom','-1','POINT',2); > > when I tried this in SQL 2008 the function was not recognized and I > cannot find the SQL equivalent function. So I simply added the > geometry column when I created the table, now I have a feeling that is > what is causing this error. > > If anyone has seen this error or knows of the AddGeometryColumn SQL > 2008 equivalent function, please could you let me know. > > Thanks > Chris > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From ven.tammineni at gmail.com Mon Apr 14 04:38:28 2008 From: ven.tammineni at gmail.com (venkat) Date: Mon, 14 Apr 2008 17:08:28 +0530 Subject: [mapserver-users] Reg: Mapserver 3D GIS Capabilities Message-ID: <79ad14900804140438m34b8cbe8n1cbf313a5e27f6f8@mail.gmail.com> Dear All, I am Veknat,I am developing web application based on C# asp.net.Here I want to use 3D gis analysis(At least i want to show my data in 3D view).Is Mapserver has 3D capabilities?.Let me know.. I am waiting for your great response. Advanced Thanks. Regards, Venkat. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080414/13a7478e/attachment.htm> From iworktech.sucharita at gmail.com Mon Apr 14 06:13:29 2008 From: iworktech.sucharita at gmail.com (Sucharita Samuel) Date: Mon, 14 Apr 2008 18:43:29 +0530 Subject: [mapserver-users] Drawing a circle on a map In-Reply-To: <480236B3.6030206@swoodbridge.com> References: <2d6d8af10804120405u7e3fba72vb087843f677d248@mail.gmail.com> <4800C8CD.4030801@swoodbridge.com> <ebd91ef20804130522h3ebffbcele3758db5c8865730@mail.gmail.com> <480236B3.6030206@swoodbridge.com> Message-ID: <2d6d8af10804140613s4ba2a250u2ad9745cc20052e2@mail.gmail.com> Hi Stephen, Thanks for the hint. I was able to draw the circle, but now my problem is that I want to move the centroid of the circle to the point I click on the map. I used the following code in the mapscript layerObj oTempLayer = map.getLayerByName("Circle"); oTempLayer.open(); oTempLayer.status = (int)mapscript.MS_ON; pointObj point = pixel2point(new pointObj(x, y, 0, 0)); rectObj oRect = oTempLayer.getExtent(); shapeObj oShp= oRect.toPolygon(); pointObj oPoint = oShp.getCentroid(); oPoint.setXY(point.x, point.y, 0); oShp.draw(map, oTempLayer, oImg); oImg = map.draw(); oTempLayer.draw(map, oImg); Can you please help me to rectify the above code? Thanks, Sucharita On Sun, Apr 13, 2008 at 10:07 PM, Stephen Woodbridge < woodbri at swoodbridge.com> wrote: > Atul Dravid wrote: > > > Try asking for Sample Code to Stephen Woodbridge... > > > > > > On 4/12/08, *Stephen Woodbridge* <woodbri at swoodbridge.com <mailto: > > woodbri at swoodbridge.com>> wrote: > > > > Sucharita Samuel wrote: > > > > Hi all, > > I want to draw a circle of 5 km radius around the point I > > click on the map. I am using C# mapscript. Even if you can help > > me with the php code, it will be of great help. > > > > > > One way to do this is to create a template layer that defines a > > feature that is a circle with the STATUS OFF. Then in mapscript you > > can get the layer, set the status to ON and set the value of the > > origin of the feature and have mapserver draw it on top of your map. > > > > -Steve W. > > > > _______________________________________________ > > 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 > > > > > > > In mapscript you can change the status and the feature points to be what > you want. Here is an example of the LAYER and a URL to display it. I will > leave the mapscript as you homework assignment :) Actually, I don't have a > simple example handy, nor the time to put one together at the moment. If you > get stuck an a specific point ask the list, there are plently of people that > can help with mapscript. > > -Steve > > MAP > EXTENT -180 -90 180 90 > IMAGECOLOR 255 255 0 > IMAGETYPE png > SIZE 400 200 > UNITS DD > > LAYER > NAME "circles" > TYPE circle > STATUS DEFAULT > FEATURE > # define circle as two points describing the opposite corners of > # of the bounding square about the circle > POINTS > -10.0 -10.0 > 10.0 10.0 > END > END > CLASS > STYLE > OUTLINECOLOR 255 0 0 > END > END > END > END > > > http://mt2.imaptools.com/cgi-bin/mapserv-5.1-dev?mode=map&map=/u/data/maps/circles.map > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080414/07d4f349/attachment.htm> From Janosch.Skrobek at trier.de Mon Apr 14 06:36:08 2008 From: Janosch.Skrobek at trier.de (Janosch.Skrobek at trier.de) Date: Mon, 14 Apr 2008 15:36:08 +0200 Subject: AW: [mapserver-users] JGW+JPG -> TIFF In-Reply-To: <47FE1ABE.5080903@sis-ter.it> References: <11933de9003.marco.sileri@virgilio.it> <13498.62.77.56.13.1207822523.squirrel@localhost.localdomain> <59CDEE83AFA9B944A7FB96B032E7537D6E9619@rh-ex-02.rathaus.trier> <47FE1ABE.5080903@sis-ter.it> Message-ID: <59CDEE83AFA9B944A7FB96B032E7537D6E974C@rh-ex-02.rathaus.trier> Hi, thanks for your answer. I was able to implement one of the pictures into a new layer like you described. Two new problems turn up. 1) The image quality is really bad, the picture gets all reddish and yellowish and seems to loose pixels. I use PNG as format for all my maps. All the other (polygon) look ok this way. I tried PNG24 but I'm loosing transparency there. Is there another recommendable image-format? or what can I do to improve the picture quality in mapserver? 2) I have 80 orthofotos. Since I don't want to add a layer for each one I created a tileindex with gdaltindex.exe ... the created dbf file contains one column called LOCATION and has all the name of my jpegs in it but when I use it in mapserver the screen stays white, no pictures show up. Anyone having ideas on this? Thank you Janosch -----Urspr?ngliche Nachricht----- Von: Carlo Pelliconi [mailto:c.pelliconi at sis-ter.it] Gesendet: Donnerstag, 10. April 2008 15:49 An: Skrobek, Janosch Cc: mapserver-users at lists.osgeo.org Betreff: Re: [mapserver-users] JGW+JPG -> TIFF Hi. If you create a layer in the mapfile, with DATA set to your-raster.jpg, it automatically reads .jgw (it must have the same name of the jpg file) and users its informations for georeferencing it. Specify also TYPE raster and if you want MIN/MAXSCALE. If you prefer tiff file, you must convert jpg in tif by means of a graphic editor and then translate .jgw in .tfw. It could request not only renaming the file, but also modify some coefficients defined inside the .jgw file (open it with notepad, it is simple text). Hope this helps. Bye Janosch.Skrobek at trier.de ha scritto: > Hello, > > I have a set of orthophotos which are saved as JPG. Each picture has a > corresponding JGW file. Can I somehow implement these into a mapserver > layer? Or do I need to create georeferenced tiffs? If so, how can I > combine the JGW and JPGs into a tiff? > > > Thank you > Janosch > -------------------------------------------------------------------------------- Diese E-Mail kann vertrauliche und/oder rechtlich gesch?tzte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt?mlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. Der rechtsverbindliche elektronische Schriftverkehr mit der Stadt Trier ist ?ber diese E-Mail-Adresse derzeit noch nicht m?glich. -------------------------------------------------------------------------------- From Jukka.Rahkonen at mmmtike.fi Mon Apr 14 07:01:23 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 14 Apr 2008 17:01:23 +0300 Subject: [mapserver-users] JGW+JPG -> TIFF References: <11933de9003.marco.sileri@virgilio.it> <13498.62.77.56.13.1207822523.squirrel@localhost.localdomain> <59CDEE83AFA9B944A7FB96B032E7537D6E9619@rh-ex-02.rathaus.trier> <47FE1ABE.5080903@sis-ter.it> <59CDEE83AFA9B944A7FB96B032E7537D6E974C@rh-ex-02.rathaus.trier> Message-ID: <CC197224AC75CE4DB23F739B16891B86E33D7C@tikka.haapa.mmm.fi> -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Janosch.Skrobek at trier.de > 2) I have 80 orthofotos. Since I don't want to add a layer for each one I created a tileindex with gdaltindex.exe ... the created dbf file contains one column called LOCATION and has all the name of my jpegs in it but when I use it in mapserver the screen stays white, no pictures show up. Anyone having ideas on this? One possibility is that Mapserver do not find the images. Try building the tileindex like gdaltindex tileindex.shp c:\full\path\to\images\*.jpg (this is Windows syntax). But perhaps your tileindex already contains full path, or images are for sure located in the Mapserver default directory so that they can be found just by file name. Then I would suspect some problem with extents. -Jukka Rahkonen- From paul_pag00 at hotmail.com Mon Apr 14 07:10:13 2008 From: paul_pag00 at hotmail.com (Paul Alarcon) Date: Mon, 14 Apr 2008 14:10:13 +0000 Subject: [mapserver-users] query problem In-Reply-To: <442456.31284.qm@web31801.mail.mud.yahoo.com> References: <4997F456680DAD4DA1E042C40C46361101BC84FB@auper1ex002.au.aecomnet.com> <442456.31284.qm@web31801.mail.mud.yahoo.com> Message-ID: <BAY141-W67CABA9F17DA048F25FAAEEE80@phx.gbl> Hello I jave a problem making a query in Internet explorer I am using javascript for make teh query but when i run in firefox i dont have any problem but, when i using IE dont work my aplication the code for my page is the follow html> Busqueda por CANTON Buscar por: Canton Parroquia Plantel LAGO AGRIO GONZALO PIZARRO PUTUMAYO SHUSHUFINDI PUTUMAYO SUCUMBIOS CASCALES CUYABENO SANTA BARBARA EL PLAYON DE SAN FCO. LA BONITA LA SOFIA ROSA FLORIDA SANTA ELENA EL DORADO DE CASCALES JAMBELI PUERTO LIBRE PUERTO EL CARMEN EL REVENTADOR GENERAL FARFAN PALMA ROJA NUEVA LOJA PACAYACU STA. ROSA DE SUCUMBIOS SANTA CECILIA SEVILLA LUMBAQUI DURENO EL ENO PUERTO BOLIVAR GONZALO PIZARRO SHUSHUFINDI PUERTO RODRIGUEZ TARAPOA AGUAS NEGRAS SAN PEDRO DE LOS CAFANES CUYABENO SIETE DE JULIO SAN ROQUE LIMONCOCHA PA?ACOCHA Please could you give me a hand ? _________________________________________________________________ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us From yosoycore at gmail.com Mon Apr 14 08:17:13 2008 From: yosoycore at gmail.com (Emilio Ponce) Date: Mon, 14 Apr 2008 17:17:13 +0200 Subject: [mapserver-users] Mapserver + Openlayers legend problem Message-ID: <9c2e09570804140817h641645e4l6e40f48a9bd298b8@mail.gmail.com> Hi everyone, I'm beggining with mapserver + openlayers. The problem is that I cannot show a legend of my layers, because if I use the 'LEGEND keyword' into the mapfile, the legend is shown on every tile of the openlayers's map. I've found the same problem for the SCALEBAR. The definition of the LEGEND in the mapfile is simple: LEGEND STATUS EMBED POSITION LR TRANSPARENT TRUE END And you can see the problem here: http://www.ietcat.org/htmls04/cat/PDF_PTMB/legend_problem.gif Does anyone know how to solve this repetition problem? Thanks a lot! -- Emilio -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080414/1cea127a/attachment.htm> From bfraser at geoanalytic.com Mon Apr 14 08:57:13 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Mon, 14 Apr 2008 09:57:13 -0600 Subject: [mapserver-users] Reg: Mapserver 3D GIS Capabilities References: <79ad14900804140438m34b8cbe8n1cbf313a5e27f6f8@mail.gmail.com> Message-ID: <03d701c89e48$34f22ee0$140002c0@shark> Venkat, You may want to have a look at the Virtual Terrain Project (VTP), and the recent implementation of Internet Explorer compatible ActiveX control: http://vterrain.org/Doc/vtocx.html Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "venkat" <ven.tammineni at gmail.com> To: <mapserver-dev at lists.osgeo.org>; <mapserver-announce at lists.osgeo.org>; <mapserver-users at lists.osgeo.org> Sent: Monday, April 14, 2008 5:38 AM Subject: [mapserver-users] Reg: Mapserver 3D GIS Capabilities > Dear All, > > I am Veknat,I am developing web application based on C# asp.net.Here I > want to use 3D gis analysis(At least i want to show my data in 3D view).Is > Mapserver has 3D capabilities?.Let me know.. > > I am waiting for your great response. > > Advanced Thanks. > > Regards, > Venkat. > ------------------------------------------------------------ -------------------- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From ptang83 at yahoo.com Mon Apr 14 09:20:15 2008 From: ptang83 at yahoo.com (ptang83 at yahoo.com) Date: Mon, 14 Apr 2008 09:20:15 -0700 (PDT) Subject: [mapserver-users] Mapserver + Openlayers legend problem In-Reply-To: <9c2e09570804140817h641645e4l6e40f48a9bd298b8@mail.gmail.com> Message-ID: <578423.40019.qm@web31804.mail.mud.yahoo.com> I have the same issue in openlayer + mapserver cgi. However, if I use mapscript without openlayer, then it works fine. --- On Mon, 4/14/08, Emilio Ponce <yosoycore at gmail.com> wrote: > From: Emilio Ponce <yosoycore at gmail.com> > Subject: [mapserver-users] Mapserver + Openlayers legend problem > To: mapserver-users at lists.osgeo.org > Date: Monday, April 14, 2008, 10:17 AM > Hi everyone, > > I'm beggining with mapserver + openlayers. > The problem is that I cannot show a legend of my layers, > because if I use > the 'LEGEND keyword' into the mapfile, the legend > is shown on every tile of > the openlayers's map. > I've found the same problem for the SCALEBAR. > > The definition of the LEGEND in the mapfile is simple: > > LEGEND > STATUS EMBED > POSITION LR > TRANSPARENT TRUE > END > > And you can see the problem here: > http://www.ietcat.org/htmls04/cat/PDF_PTMB/legend_problem.gif > > Does anyone know how to solve this repetition problem? > > Thanks a lot! > > > > > -- > Emilio_______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ From nospam420 at yahoo.com Mon Apr 14 11:27:48 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Mon, 14 Apr 2008 11:27:48 -0700 (PDT) Subject: [MAPSERVER-USERS] How to reference multiple byte characters in symbol file? Message-ID: <16684878.post@talk.nabble.com> My understanding is that the only type of vector (non-bitmap) font I can use for mapserver is a TrueType font. I'm starting with a PostScript Type 1 font. (And a quick test seemed to confirm that this is not directly useable.) I used fontforge (http://fontforge.sourceforge.net/) to generate a TrueType font from the PostScript font. The problem here is that the characters I want are now located way above the single byte range (e.g. way above character number 255 within the font.) Is there any way to reference a multibyte character in the CHARACTER declaration of the symbol file: http://mapserver.gis.umn.edu/docs/reference/symbology/syntax Something akin to the \x{ab}\x{cd} (or \x{abcd} ?) notation of Perl? This exact notation doesn't work for me, it just interprets the characters as those individual ASCII characters (i.e. backslash, lower case x, open curly brace, etc.) I am able to enter non-ASCII characters into the symbol file (I use hexl-mode in emacs), but mapserver seems to interpret these as individual byte characters, regardless of what encoding I intend. I have multi-byte characters (UTF-8) in my data and deal with that with the ENCODING declaration within LABEL in the map file: http://mapserver.gis.umn.edu/docs/reference/mapfile/label But I don't see any such declaration for a symbol file. This mailing list thread is somewhat related: http://www.nabble.com/-UMN_MAPSERVER-USERS--Special-characters-in-mapfile-to901771.html#a901771 But it doesn't really help, since those examples are still just for single byte chars. This isn't an urgent need. I am able to work around it by editing the TrueType font file (again with fontforge) and copy the couple of chars that I need down to empty spots in the single byte range, and reference those instances. But I am curious whether or not this is doable without that kind of hack. - Rich -- View this message in context: http://www.nabble.com/How-to-reference-multiple-byte-characters-in-symbol-file--tp16684878p16684878.html Sent from the Mapserver - User mailing list archive at Nabble.com. From David.Fawcett at state.mn.us Mon Apr 14 11:50:31 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Mon, 14 Apr 2008 13:50:31 -0500 Subject: [mapserver-users] Mapserver + Openlayers legend problem In-Reply-To: <578423.40019.qm@web31804.mail.mud.yahoo.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBC74@s-sp22.pca.state.mn.us> An embedded scale bar is just not going to work with an OpenLayers type of interface. (unless, I guess, you use the single, non-tiled layer type in OpenLayers. But then you aren't going to get the cool Googley Goodness slippy map effect. http://www.openlayers.org/dev/examples/mapserver_untiled.html ) The problem is that OpenLayers splits your map window request up in to little tiles. This allows it to easily add more tiles outside of your map window, giving that seamless appearance. When OpenLayers requests all of the tiles for your map, each tile is an individual call to MapServer and your MapServer doesn't know that all of these request are related, they are just requests. So, if you have an embeded scalebar or legend, it will show up in each tile. If you are using OpenLayers, there might be a way to place a legend graphic on top of your map, kind of like the overview map. http://www.openlayers.org/dev/examples/overviewmap.html Otherwise, you may just want to have a spot outside of the map div where you show a legend. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of ptang83 at yahoo.com Sent: Monday, April 14, 2008 11:20 AM To: mapserver-users at lists.osgeo.org; Emilio Ponce Subject: Re: [mapserver-users] Mapserver + Openlayers legend problem I have the same issue in openlayer + mapserver cgi. However, if I use mapscript without openlayer, then it works fine. --- On Mon, 4/14/08, Emilio Ponce <yosoycore at gmail.com> wrote: > From: Emilio Ponce <yosoycore at gmail.com> > Subject: [mapserver-users] Mapserver + Openlayers legend problem > To: mapserver-users at lists.osgeo.org > Date: Monday, April 14, 2008, 10:17 AM > Hi everyone, > > I'm beggining with mapserver + openlayers. > The problem is that I cannot show a legend of my layers, because if I > use the 'LEGEND keyword' into the mapfile, the legend > is shown on every tile of > the openlayers's map. > I've found the same problem for the SCALEBAR. > > The definition of the LEGEND in the mapfile is simple: > > LEGEND > STATUS EMBED > POSITION LR > TRANSPARENT TRUE > END > > And you can see the problem here: > http://www.ietcat.org/htmls04/cat/PDF_PTMB/legend_problem.gif > > Does anyone know how to solve this repetition problem? > > Thanks a lot! > > > > > -- > Emilio_______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users ________________________________________________________________________ ____________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Mon Apr 14 13:56:06 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 14 Apr 2008 15:56:06 -0500 Subject: [mapserver-users] Mapserv problems on Fedora Message-ID: <4803C4E6.3010001@swoodbridge.com> Hi all, I'm having a problem on a fedora box with mapserver. Does anyone have an idea what this is all about or how to run down the issue? This same setup works fine on my old Debian Sarge box. Thanks, -Steve Linux maps.localhost.com 2.6.23.1-42.fc8 #1 SMP Tue Oct 30 13:18:33 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux Configured like this: ./configure \ --enable-ignore-missing-data \ --enable-debug \ --with-httpd=/usr/sbin/httpd \ --with-proj=/usr \ --with-agg=/home/woodbri/work/agg-2.4 \ --with-gd \ --with-gdal \ --with-freetype \ --with-postgis \ --without-tiff \ --with-wmsclient \ --with-ogr \ --with-wfs \ ./mapserv -v MapServer version 5.0.2 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 INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE When I run it I get: [woodbri at maps mapserver-5.0.2]$ gdb ./mapserv GNU gdb Red Hat Linux (6.6-45.fc8rh) Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu"... Using host libthread_db library "/lib64/libthread_db.so.1". (gdb) run QUERY_STRING='map=%2Fu%2Fdata%2Fmaps%2Fgoogle-agg.map&layers=all&map_imagetype=agg%2Fpng24&mode=map&mapext=-88.48338019311106+41.19520127684132+-86.81661980688895+42.504798723158686&imgext=-88.48338019311106+41.19520127684132+-86.81661980688895+42.504798723158686&map_size=1050+825&imgx=525&imgy=412.5&imgxy=1050+825' Starting program: /home/woodbri/work/mapserver-5.0.2/mapserv QUERY_STRING='map=%2Fu%2Fdata%2Fmaps%2Fgoogle-agg.map&layers=all&map_imagetype=agg%2Fpng24&mode=map&mapext=-88.48338019311106+41.19520127684132+-86.81661980688895+42.504798723158686&imgext=-88.48338019311106+41.19520127684132+-86.81661980688895+42.504798723158686&map_size=1050+825&imgx=525&imgy=412.5&imgxy=1050+825' [Thread debugging using libthread_db enabled] *** glibc detected *** /home/woodbri/work/mapserver-5.0.2/mapserv: free(): invalid next size (fast): 0x0000000000723b00 *** [New Thread 46912508259680 (LWP 32363)] ======= Backtrace: ========= /lib64/libc.so.6[0x34dc072832] /lib64/libc.so.6(cfree+0x8c)[0x34dc075f2c] /home/woodbri/work/mapserver-5.0.2/mapserv[0x421c28] /home/woodbri/work/mapserver-5.0.2/mapserv[0x42500f] /home/woodbri/work/mapserver-5.0.2/mapserv[0x40bd6c] /home/woodbri/work/mapserver-5.0.2/mapserv(main+0x1be)[0x40d8fe] /lib64/libc.so.6(__libc_start_main+0xf4)[0x34dc01e074] /home/woodbri/work/mapserver-5.0.2/mapserv[0x40acc9] ======= Memory map: ======== [snip lots of stuff] Program received signal SIGABRT, Aborted. [Switching to Thread 46912508259680 (LWP 32363)] 0x00000034dc030ec5 in raise () from /lib64/libc.so.6 Missing separate debuginfos, use: debuginfo-install atlas.x86_64 cfitsio.x86_64 compat-expat1.x86_64 curl.x86_64 e2fsprogs.x86_64 expat.x86_64 fftw2.x86_64 fontconfig.x86_64 freetype.x86_64 gcc.x86_64 gd.x86_64 gdal.x86_64 geos.x86_64 giflib.x86_64 glibc.x86_64 grass.x86_64 jasper.x86_64 keyutils.x86_64 krb5.x86_64 libICE.x86_64 libSM.x86_64 libX11.x86_64 libXau.x86_64 libXdmcp.x86_64 libXpm.x86_64 libdap.x86_64 libgeotiff.x86_64 libidn.x86_64 libjpeg.x86_64 libpng.x86_64 librx.x86_64 libselinux.x86_64 libtiff.x86_64 libxcb.x86_64 libxml2.x86_64 mysql.x86_64 ncurses.x86_64 netcdf.x86_64 nspr.x86_64 nss.x86_64 ogdi.x86_64 openssl.x86_64 postgresql.x86_64 proj.x86_64 sqlite.x86_64 unixODBC.x86_64 xerces-c.x86_64 zlib.x86_64 (gdb) where #0 0x00000034dc030ec5 in raise () from /lib64/libc.so.6 #1 0x00000034dc032970 in abort () from /lib64/libc.so.6 #2 0x00000034dc06b0db in __libc_message () from /lib64/libc.so.6 #3 0x00000034dc072832 in _int_free () from /lib64/libc.so.6 #4 0x00000034dc075f2c in free () from /lib64/libc.so.6 #5 0x0000000000421c28 in msEvalRegex (e=0x4e9873 "\\.map$", s=0x7232a0 "/u/data/maps/google-agg.map") at mapfile.c:90 #6 0x000000000042500f in msLoadMap ( filename=0x7232a0 "/u/data/maps/google-agg.map", new_mappath=0x0) at mapfile.c:4529 #7 0x000000000040bd6c in loadMap () at mapserv.c:201 #8 0x000000000040d8fe in main (argc=2, argv=0x7fffa8786dc8) at mapserv.c:1132 (gdb) [woodbri at maps mapserver-5.0.2]$ valgrind ./mapserv QUERY_STRING='map=%2Fu%2Fdata%2Fmaps%2Fgoogle-agg.map&layers=all&map_imagetype=agg%2Fpng24&mode=map&mapext=-88.48338019311106+41.19520127684132+-86.81661980688895+42.504798723158686&imgext=-88.48338019311106+41.19520127684132+-86.81661980688895+42.504798723158686&map_size=1050+825&imgx=525&imgy=412.5&imgxy=1050+825' ==32351== Memcheck, a memory error detector. ==32351== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al. ==32351== Using LibVEX rev 1732, a library for dynamic binary translation. ==32351== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP. ==32351== Using valgrind-3.2.3, a dynamic binary instrumentation framework. ==32351== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al. ==32351== For more details, rerun with: -v ==32351== ==32351== Invalid write of size 1 ==32351== at 0x32FAA03144: rx_bzero (in /usr/lib64/librx.so.0.0.0) ==32351== by 0x32FAA08786: regncomp (in /usr/lib64/librx.so.0.0.0) ==32351== by 0x421BF2: msEvalRegex (mapfile.c:84) ==32351== by 0x42500E: msLoadMap (mapfile.c:4529) ==32351== by 0x40BD6B: loadMap (mapserv.c:201) ==32351== by 0x40D8FD: main (mapserv.c:1132) ==32351== Address 0x57A8820 is 0 bytes after a block of size 64 alloc'd ==32351== at 0x4A059F6: malloc (vg_replace_malloc.c:149) ==32351== by 0x4A9E44: ms_regcomp (mapregex.c:58) ==32351== by 0x421BF2: msEvalRegex (mapfile.c:84) ==32351== by 0x42500E: msLoadMap (mapfile.c:4529) ==32351== by 0x40BD6B: loadMap (mapserv.c:201) ==32351== by 0x40D8FD: main (mapserv.c:1132) ==32351== ==32351== Invalid write of size 1 ==32351== at 0x32FAA0314E: rx_bzero (in /usr/lib64/librx.so.0.0.0) ==32351== by 0x32FAA08786: regncomp (in /usr/lib64/librx.so.0.0.0) ==32351== by 0x421BF2: msEvalRegex (mapfile.c:84) ==32351== by 0x42500E: msLoadMap (mapfile.c:4529) ==32351== by 0x40BD6B: loadMap (mapserv.c:201) ==32351== by 0x40D8FD: main (mapserv.c:1132) ==32351== Address 0x57A8821 is 1 bytes after a block of size 64 alloc'd ==32351== at 0x4A059F6: malloc (vg_replace_malloc.c:149) ==32351== by 0x4A9E44: ms_regcomp (mapregex.c:58) ==32351== by 0x421BF2: msEvalRegex (mapfile.c:84) ==32351== by 0x42500E: msLoadMap (mapfile.c:4529) ==32351== by 0x40BD6B: loadMap (mapserv.c:201) ==32351== by 0x40D8FD: main (mapserv.c:1132) valgrind: m_mallocfree.c:178 (mk_plain_bszB): Assertion 'bszB != 0' failed. ==32351== at 0x380178A7: report_and_quit (m_libcassert.c:136) ==32351== by 0x38017C0A: vgPlain_assert_fail (m_libcassert.c:200) ==32351== by 0x38020A87: vgPlain_arena_malloc (m_mallocfree.c:178) ==32351== by 0x380358E6: vgPlain_cli_malloc (replacemalloc_core.c:101) ==32351== by 0x380023A5: vgMemCheck_malloc (mc_malloc_wrappers.c:182) ==32351== by 0x38035F77: do_client_request (scheduler.c:1158) ==32351== by 0x38037681: vgPlain_scheduler (scheduler.c:869) ==32351== by 0x38053089: run_a_thread_NORETURN (syswrap-linux.c:87) sched status: running_tid=1 Thread 1: status = VgTs_Runnable ==32351== at 0x4A059F6: malloc (vg_replace_malloc.c:149) ==32351== by 0x32FAA04CAC: rx_parse (in /usr/lib64/librx.so.0.0.0) ==32351== by 0x32FAA08857: regncomp (in /usr/lib64/librx.so.0.0.0) ==32351== by 0x421BF2: msEvalRegex (mapfile.c:84) ==32351== by 0x42500E: msLoadMap (mapfile.c:4529) ==32351== by 0x40BD6B: loadMap (mapserv.c:201) ==32351== by 0x40D8FD: main (mapserv.c:1132) From warmerdam at pobox.com Mon Apr 14 13:18:27 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 14 Apr 2008 16:18:27 -0400 Subject: [mapserver-users] Mapserv problems on Fedora In-Reply-To: <4803C4E6.3010001@swoodbridge.com> References: <4803C4E6.3010001@swoodbridge.com> Message-ID: <4803BC13.1060200@pobox.com> Stephen Woodbridge wrote: > ==32351== Invalid write of size 1 > ==32351== at 0x32FAA03144: rx_bzero (in /usr/lib64/librx.so.0.0.0) > ==32351== by 0x32FAA08786: regncomp (in /usr/lib64/librx.so.0.0.0) > ==32351== by 0x421BF2: msEvalRegex (mapfile.c:84) > ==32351== by 0x42500E: msLoadMap (mapfile.c:4529) > ==32351== by 0x40BD6B: loadMap (mapserv.c:201) > ==32351== by 0x40D8FD: main (mapserv.c:1132) > ==32351== Address 0x57A8820 is 0 bytes after a block of size 64 alloc'd > ==32351== at 0x4A059F6: malloc (vg_replace_malloc.c:149) > ==32351== by 0x4A9E44: ms_regcomp (mapregex.c:58) > ==32351== by 0x421BF2: msEvalRegex (mapfile.c:84) > ==32351== by 0x42500E: msLoadMap (mapfile.c:4529) > ==32351== by 0x40BD6B: loadMap (mapserv.c:201) > ==32351== by 0x40D8FD: main (mapserv.c:1132) Steve, Ugly! I don't know why it would be needed, but you could try changing this: regex_t* sys_regex = (regex_t*) malloc(sizeof(regex_t)); to: regex_t* sys_regex = (regex_t*) malloc(sizeof(regex_t)+1000); in mapregex.c. I suspect there is a mixup between the regex include files being used and the library being used or possibly structures aren't being sized properly due to some sort of type size issue. Interestingly in my mapfile.c from the 5.0 branch line 84 of mapfile.c is: if(ms_regcomp(&re, e, MS_REG_EXTENDED|MS_REG_NOSUB) != 0) { rather than calling regncomp() directly. Perhaps there has been a fix since 5.0.2? 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 | President OSGeo, http://osgeo.org From woodbri at swoodbridge.com Mon Apr 14 15:38:40 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 14 Apr 2008 17:38:40 -0500 Subject: [mapserver-users] Mapserv problems on Fedora In-Reply-To: <4803BC13.1060200@pobox.com> References: <4803C4E6.3010001@swoodbridge.com> <4803BC13.1060200@pobox.com> Message-ID: <4803DCF0.8070607@swoodbridge.com> Hi Frank, Adding more to to the malloc fixed the crash, but the regex is failing :( and should be ok: Breakpoint 1, msEvalRegex (e=0x4e9873 "\\.map$", s=0x7232a0 "/u/data/maps/google-agg.map") at mapfile.c:79 ... 89 if(ms_regexec(&re, s, 0, NULL, 0) != 0) { /* no match */ (gdb) p ms_regexec(&re, s, 0, 0, 0) $1 = 1 (gdb) c Continuing. Content-type: text/html <HTML> <HEAD><TITLE>MapServer Message msEvalRegex(): Regular expression error. String (/u/data/maps/google-agg.map) failed expression test. Program exited normally. This should NOT be happening. Arrrgh! Anyone else using fc8 on a x86_84 box? -Steve Frank Warmerdam wrote: > Stephen Woodbridge wrote: >> ==32351== Invalid write of size 1 >> ==32351== at 0x32FAA03144: rx_bzero (in /usr/lib64/librx.so.0.0.0) >> ==32351== by 0x32FAA08786: regncomp (in /usr/lib64/librx.so.0.0.0) >> ==32351== by 0x421BF2: msEvalRegex (mapfile.c:84) >> ==32351== by 0x42500E: msLoadMap (mapfile.c:4529) >> ==32351== by 0x40BD6B: loadMap (mapserv.c:201) >> ==32351== by 0x40D8FD: main (mapserv.c:1132) >> ==32351== Address 0x57A8820 is 0 bytes after a block of size 64 alloc'd >> ==32351== at 0x4A059F6: malloc (vg_replace_malloc.c:149) >> ==32351== by 0x4A9E44: ms_regcomp (mapregex.c:58) >> ==32351== by 0x421BF2: msEvalRegex (mapfile.c:84) >> ==32351== by 0x42500E: msLoadMap (mapfile.c:4529) >> ==32351== by 0x40BD6B: loadMap (mapserv.c:201) >> ==32351== by 0x40D8FD: main (mapserv.c:1132) > > Steve, > > Ugly! I don't know why it would be needed, but you could try changing this: > > regex_t* sys_regex = (regex_t*) malloc(sizeof(regex_t)); > > to: > > regex_t* sys_regex = (regex_t*) malloc(sizeof(regex_t)+1000); > > in mapregex.c. > > I suspect there is a mixup between the regex include files being > used and the library being used or possibly structures aren't being > sized properly due to some sort of type size issue. > > Interestingly in my mapfile.c from the 5.0 branch line 84 of > mapfile.c is: > > if(ms_regcomp(&re, e, MS_REG_EXTENDED|MS_REG_NOSUB) != 0) { > > rather than calling regncomp() directly. Perhaps there has been > a fix since 5.0.2? > > Best regards, From vishu_73ns at yahoo.com Tue Apr 15 02:57:12 2008 From: vishu_73ns at yahoo.com (vishal nagpal) Date: Tue, 15 Apr 2008 02:57:12 -0700 (PDT) Subject: [mapserver-users] Reg: Mapserver 3D GIS Capabilities Message-ID: <272340.56471.qm@web52405.mail.re2.yahoo.com> Dear Venkat, MapServer does not have 3D view of the data , though you can use combination of different colors to show the difference in gradient etc. Vishal ----- Original Message ---- From: venkat To: mapserver-dev at lists.osgeo.org; mapserver-announce at lists.osgeo.org; mapserver-users at lists.osgeo.org Sent: Monday, April 14, 2008 5:08:28 PM Subject: [mapserver-users] Reg: Mapserver 3D GIS Capabilities Dear All, I am Veknat,I am developing web application based on C# asp.net.Here I want to use 3D gis analysis(At least i want to show my data in 3D view).Is Mapserver has 3D capabilities?.Let me know.. I am waiting for your great response. Advanced Thanks. Regards, Venkat. ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ -------------- next part -------------- An HTML attachment was scrubbed... URL: From vishu_73ns at yahoo.com Tue Apr 15 02:57:18 2008 From: vishu_73ns at yahoo.com (vishal nagpal) Date: Tue, 15 Apr 2008 02:57:18 -0700 (PDT) Subject: [mapserver-users] Reg: Mapserver 3D GIS Capabilities Message-ID: <340016.42467.qm@web52408.mail.re2.yahoo.com> Dear Venkat, MapServer does not have 3D view of the data , though you can use combination of different colors to show the difference in gradient etc. Vishal ----- Original Message ---- From: venkat To: mapserver-dev at lists.osgeo.org; mapserver-announce at lists.osgeo.org; mapserver-users at lists.osgeo.org Sent: Monday, April 14, 2008 5:08:28 PM Subject: [mapserver-users] Reg: Mapserver 3D GIS Capabilities Dear All, I am Veknat,I am developing web application based on C# asp.net.Here I want to use 3D gis analysis(At least i want to show my data in 3D view).Is Mapserver has 3D capabilities?.Let me know.. I am waiting for your great response. Advanced Thanks. Regards, Venkat. ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ -------------- next part -------------- An HTML attachment was scrubbed... URL: From kristien.ooms at ugent.be Tue Apr 15 03:51:23 2008 From: kristien.ooms at ugent.be (Kristien Ooms) Date: Tue, 15 Apr 2008 12:51:23 +0200 Subject: [mapserver-users] Java and mapserver In-Reply-To: <340016.42467.qm@web52408.mail.re2.yahoo.com> References: <340016.42467.qm@web52408.mail.re2.yahoo.com> Message-ID: <001b01c89ee6$a53834d0$efa89e70$@ooms@ugent.be> Hi, I was wondering if I could use JAVA in combination with mapserver? Right now I?ve installed the mapserver-?package? ms4W. Is it possible to Use JAVA-code instead of PHP? Thanks! Kristien Van: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Namens vishal nagpal Verzonden: dinsdag 15 april 2008 11:57 Aan: venkat; mapserver-dev at lists.osgeo.org; mapserver-announce at lists.osgeo.org; mapserver-users at lists.osgeo.org Onderwerp: Re: [mapserver-users] Reg: Mapserver 3D GIS Capabilities Dear Venkat, MapServer does not have 3D view of the data , though you can use combination of different colors to show the difference in gradient etc. Vishal ----- Original Message ---- From: venkat To: mapserver-dev at lists.osgeo.org; mapserver-announce at lists.osgeo.org; mapserver-users at lists.osgeo.org Sent: Monday, April 14, 2008 5:08:28 PM Subject: [mapserver-users] Reg: Mapserver 3D GIS Capabilities Dear All, I am Veknat,I am developing web application based on C# HYPERLINK "http://asp.net" \nasp.net.Here I want to use 3D gis analysis(At least i want to show my data in 3D view).Is Mapserver has 3D capabilities?.Let me know.. I am waiting for your great response. Advanced Thanks. Regards, Venkat. between 0000-00-00 and 9999-99-99 No virus found in this incoming message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.22.13/1377 - Release Date: 14/04/2008 9:26 No virus found in this outgoing message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.22.13/1377 - Release Date: 14/04/2008 9:26 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Piero.Cavalieri at heidi.it Tue Apr 15 03:43:04 2008 From: Piero.Cavalieri at heidi.it (Piero Cavalieri) Date: Tue, 15 Apr 2008 12:43:04 +0200 Subject: [mapserver-users] Java and mapserver In-Reply-To: <001b01c89ee6$a53834d0$efa89e70$@ooms@ugent.be> References: <340016.42467.qm@web52408.mail.re2.yahoo.com> <001b01c89ee6$a53834d0$efa89e70$@ooms@ugent.be> Message-ID: <4841F745477DF94A97C515658C91BB2F1556EA@lan-exc-01.heidi.local> Server side you can use Java Mapscript, http://mapserver.gis.umn.edu/docs/howto/javamapscript Client side you can use applets (Jbox, rosa, or build your own). Cheers Piero ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kristien Ooms Sent: marted? 15 aprile 2008 12:51 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Java and mapserver Hi, I was wondering if I could use JAVA in combination with mapserver... Right now I've installed the mapserver-'package' ms4W. Is it possible to Use JAVA-code instead of PHP? Thanks! Kristien No virus found in this outgoing message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.22.13/1377 - Release Date: 14/04/2008 9:26 -------------- next part -------------- An HTML attachment was scrubbed... URL: From hanscastorp76 at yahoo.es Tue Apr 15 04:14:12 2008 From: hanscastorp76 at yahoo.es (Hans Castorp) Date: Tue, 15 Apr 2008 04:14:12 -0700 (PDT) Subject: [mapserver-users] Draw Postgis sql query Message-ID: <851127.39953.qm@web25902.mail.ukl.yahoo.com> Hi to all, I have some sql queries over a Postgis table (points).How can I draw the results of these queries over the map? Thanks in advance. Hans Castorp ______________________________________________ Tu correo tambi?n desde el m?vil. Desc?rgate gratis Yahoo! Go. http://es.mobile.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue Apr 15 04:43:14 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 15 Apr 2008 14:43:14 +0300 Subject: [mapserver-users] Draw Postgis sql query In-Reply-To: <851127.39953.qm@web25902.mail.ukl.yahoo.com> Message-ID: Hans Castorp wrote: > I have some sql queries over a Postgis table (points). How can I draw the results of these queries over the map? Have a look at for example these documents first: http://mapserver.gis.umn.edu/docs/reference/vector_data/postgis http://postgis.refractions.net/docs/ch04.html#id2624379 Depending on your case you can - insert your query directly inside the DATA sentence - create a PostGIS view with your query - in you want to get something more dynamic, use run-time substitution inside DATA http://mapserver.gis.umn.edu/docs/howto/runsub gives some hints about run-time substitution. -Jukka Rahkonen- -------------- next part -------------- An HTML attachment was scrubbed... URL: From c.pelliconi at sis-ter.it Tue Apr 15 05:18:19 2008 From: c.pelliconi at sis-ter.it (Carlo Pelliconi) Date: Tue, 15 Apr 2008 14:18:19 +0200 Subject: AW: [mapserver-users] JGW+JPG -> TIFF In-Reply-To: <59CDEE83AFA9B944A7FB96B032E7537D6E974C@rh-ex-02.rathaus.trier> References: <11933de9003.marco.sileri@virgilio.it> <13498.62.77.56.13.1207822523.squirrel@localhost.localdomain> <59CDEE83AFA9B944A7FB96B032E7537D6E9619@rh-ex-02.rathaus.trier> <47FE1ABE.5080903@sis-ter.it> <59CDEE83AFA9B944A7FB96B032E7537D6E974C@rh-ex-02.rathaus.trier> Message-ID: <48049D0B.8070003@sis-ter.it> About new problems: 1) Have you defined the various characteristic of your PNG output? You should try with this (for PNG): OUTPUTFORMAT NAME png MIMETYPE image/png DRIVER GD/PNG EXTENSION png IMAGEMODE PC256 TRANSPARENT FALSE END* *put this in the mapfile 2) For gdaltindex.exe I don't know: I've never used it, but try looking deeper in mapfile definition, maybe you must declare something different for using it. Hope this helps. Bye Carlo Janosch.Skrobek at trier.de ha scritto: > Hi, > > thanks for your answer. I was able to implement one of the pictures into a new layer like you described. Two new problems turn up. > > 1) The image quality is really bad, the picture gets all reddish and yellowish and seems to loose pixels. I use PNG as format for all my maps. All the other (polygon) look ok this way. I tried PNG24 but I'm loosing transparency there. Is there another recommendable image-format? or what can I do to improve the picture quality in mapserver? > > 2) I have 80 orthofotos. Since I don't want to add a layer for each one I created a tileindex with gdaltindex.exe ... the created dbf file contains one column called LOCATION and has all the name of my jpegs in it but when I use it in mapserver the screen stays white, no pictures show up. Anyone having ideas on this? > > Thank you > Janosch > > -----Urspr?ngliche Nachricht----- > Von: Carlo Pelliconi [mailto:c.pelliconi at sis-ter.it] > Gesendet: Donnerstag, 10. April 2008 15:49 > An: Skrobek, Janosch > Cc: mapserver-users at lists.osgeo.org > Betreff: Re: [mapserver-users] JGW+JPG -> TIFF > > Hi. > If you create a layer in the mapfile, with DATA set to your-raster.jpg, > it automatically reads .jgw (it must have the same name of the jpg file) > and users its informations for georeferencing it. Specify also TYPE > raster and if you want MIN/MAXSCALE. > If you prefer tiff file, you must convert jpg in tif by means of a > graphic editor and then translate .jgw in .tfw. It could request not > only renaming the file, but also modify some coefficients defined inside > the .jgw file (open it with notepad, it is simple text). > > Hope this helps. > Bye > > Janosch.Skrobek at trier.de ha scritto: > >> Hello, >> >> I have a set of orthophotos which are saved as JPG. Each picture has a >> corresponding JGW file. Can I somehow implement these into a mapserver >> layer? Or do I need to create georeferenced tiffs? If so, how can I >> combine the JGW and JPGs into a tiff? >> >> >> Thank you >> Janosch >> >> > > > -------------------------------------------------------------------------------- > > Diese E-Mail kann vertrauliche und/oder rechtlich gesch?tzte Informationen enthalten. > Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt?mlich erhalten haben, > informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte > Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. Der > rechtsverbindliche elektronische Schriftverkehr mit der Stadt Trier ist ?ber diese > E-Mail-Adresse derzeit noch nicht m?glich. > > -------------------------------------------------------------------------------- > > > > -- ing. Carlo Pelliconi c.pelliconi at sis-ter.it SIS.TER S.p.A. www.sis-ter.it via Mentana, 10 40026 Imola (BO) Italy tel +39 0542 364034 fax +39 0542 612130 ATTENZIONE! Questo documento ? indirizzato esclusivamente al destinatario. Tutte le informazioni ivi contenute, compresi eventuali allegati, sono soggette a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di "privacy" e ne ? proibita l'utilizzazione da parte di altri soggetti. Si ricorda che la diffusione l'utilizzo e/o la conservazione dei dati ricevuti per errore costituisce violazione di carattere penale ai sensi dell'art. 616 Codice penale (Violazione, sottrazione e soppressione di corrispondenza). Se avesse ricevuto per errore questo messaggio, La preghiamo cortesemente di contattare il mittente al pi? presto e di cancellare il messaggio subito dopo. Grazie. ATTENTION! This message is being sent from Sis.Ter S.p.A. and may contain information which is confidential or privileged. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. Any unauthorized use of the content of this message is a breach of your duty to respect the confidentiality of the correspondence between other persons and can expose the responsible party to civil and/or criminal penalties (D.Lgs. 196/2003 "Tutela della privacy" e art. 616 Codice penale "Violazione, sottrazione e soppressione di corrispondenza"), and may constitute a more serious offence. Thanks. ACHTUNG! Dieses Dokument ist ausschlie?lich dem Empf?nger vorbehalten. Die darin enthaltenen Informationen, auch jene in etwaigen Anlagen, gelten im Sinne des Dekrets Nr. 196/2003 in Sachen "Privacy" als streng vertraulich und d?rfen von anderen Personen nicht verwende werden. Wer diese Mitteilung irrt?mlicherweise erh?lt ist gebeten uns umgehend zu informieren und anschlie?end die Mitteilung zu vernichten. Vielen Dank. From schroeter at netgis.de Tue Apr 15 05:17:53 2008 From: schroeter at netgis.de (schroeter at netgis.de) Date: Tue, 15 Apr 2008 14:17:53 +0200 Subject: [mapserver-users] change AGG Driver via mapscript Message-ID: <001301c89ef2$bb1d4130$08b2a8c0@SVEN> Hallo, the standard-output-format in my mapfile is AGG_JPEG: OUTPUTFORMAT NAME "AGG_JPEG" DRIVER AGG/JPEG IMAGEMODE RGBA FORMATOPTION "QUALITY=88" END I try to change the outputformat via mapscript to get a transparent 256-color-png: $map->outputformat->set("name", "png"); $map->outputformat->set('driver','GD/PNG'); $map->outputformat->set('transparent',MS_ON); this works fine, but I get a transparent 24 bit png if I try to set the imagemode: $map->outputformat->set("imagemode", MS_IMAGEMODE_PC256); I get no picture but this warning: PHP Warning: [MapServer Error]: msImageCreateAGG(): AGG driver only supports RGB or RGBA pixel models how can I disable AGG? thanks Sven From bartvde at osgis.nl Tue Apr 15 06:35:38 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Tue, 15 Apr 2008 15:35:38 +0200 Subject: [mapserver-users] querying a WFS on property alias Message-ID: <1f9453c1890fad322c4266afbbe9600d@pop02.backbone.tiscomhosting.nl> Hi list, it seems that querying a WFS on a property alias does not work in MS 5.0.2. Is this a known issue? Using something like: "gml_OBJ_IDENT_alias" "Identifier" I can't query on Identifier in the PropertyName, but it works if I use the attribute name OBJ_IDENT as PropertyName. This is kind of strange, since a WFS client can't even know this property is actually called OBJ_IDENT in the datamodel behind the WFS. Best regards, Bart From KMR at orbicon.dk Tue Apr 15 07:03:37 2008 From: KMR at orbicon.dk (=?iso-8859-1?Q?KMR_-_K=E5re_M=F8lg=E5rd_Rasmussen?=) Date: Tue, 15 Apr 2008 16:03:37 +0200 Subject: [mapserver-users] Issues with legend in csharp Message-ID: Hi list I?m currently working with MapServer in a Visual studio 2005 project. When I try to create a legend, MINSCALE and MAXSCALE works just fine with mapserver 4.10.1. When I try a similar project with mapserver 5.0, the legend is empty if MINSCALE and MAXSCALE is used - it doesn?t matter whether it?s on LAYER or on CLASS. The "funny" thing is, It works with Java. Has anyone encountered a similar problem? TIA /Kaare -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Tue Apr 15 07:15:17 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 15 Apr 2008 16:15:17 +0200 Subject: [mapserver-users] Issues with legend in csharp In-Reply-To: References: Message-ID: It might be related to the changes described in the 4.10 to 5.0 migration guide: http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT Best regards, Tamas 2008/4/15, KMR - K?re M?lg?rd Rasmussen : > > > > > Hi list > > > > I?m currently working with MapServer in a Visual studio 2005 project. When I > try to create a legend, MINSCALE and MAXSCALE works just fine with mapserver > 4.10.1. When I try a similar project with mapserver 5.0, the legend is empty > if MINSCALE and MAXSCALE is used ? it doesn?t matter whether it?s on LAYER > or on CLASS. The "funny" thing is, It works with Java. > > > > Has anyone encountered a similar problem? > > > > TIA > > /Kaare > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From yassefa at dmsolutions.ca Tue Apr 15 07:57:50 2008 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 15 Apr 2008 10:57:50 -0400 Subject: [mapserver-users] querying a WFS on property alias In-Reply-To: <1f9453c1890fad322c4266afbbe9600d@pop02.backbone.tiscomhosting.nl> References: <1f9453c1890fad322c4266afbbe9600d@pop02.backbone.tiscomhosting.nl> Message-ID: <4804C26E.9050900@dmsolutions.ca> Bart, We have gone through the same issue when implementing the SOS and the solution was to pre-parse the filter and replace the occurrences of the aliased by the real attribute name. I will move the function so that it does the same for the wfs filter encoding. Will let you know after I do few tests. Best Regards, bartvde at osgis.nl wrote: > Hi list, > > it seems that querying a WFS on a property alias does not work in MS 5.0.2. > Is this a known issue? > > Using something like: > > "gml_OBJ_IDENT_alias" "Identifier" > > I can't query on Identifier in the PropertyName, but it works if I use the > attribute name OBJ_IDENT as PropertyName. > > This is kind of strange, since a WFS client can't even know this property > is actually called OBJ_IDENT in the datamodel behind the WFS. > > Best regards, > Bart > > _______________________________________________ > 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 mschulz at webgis.de Tue Apr 15 08:14:05 2008 From: mschulz at webgis.de (Michael Schulz) Date: Tue, 15 Apr 2008 17:14:05 +0200 Subject: [mapserver-users] raster tileindex question ... In-Reply-To: <47FF6270.5080402@pobox.com> References: <47FF6270.5080402@pobox.com> Message-ID: Hey Frank, thanks for your suggestion. Although i've never used extra tileindex layers before, but as you said it works. When the shape or db data is filtered in the mapfile, then also the raster layer only displays the corresponding tile. One step further... When I tried to do the same using SLD with Filter: display the map as wms layers, pass the the tileindex layer a sld with the same filter definition as above - I get a mapserver errors: depending on how the sld is composed: - sld only has the tileindex layer defined as NamedLayer, with filter: the map is drawn, the tileindex layer only displays the filtered feature but the raster layer shows all tiles. - sld with tileindex and raster layer as NamedLayers, first with filter: [Tue Apr 15 17:31:13 2008].233466 msTiledSHPOpenFile(): SDE error. Tileindex layer must be a shapefile. [Tue Apr 15 17:31:13 2008].233504 msDrawMap(): Image handling error. Failed to draw layer named 'TK200'. I am not sure, whether this cannot work at all or if there's sth. wrong with the sld (although mapserver doesn't complain about the sld). Greetings, Michael 2008/4/11, Frank Warmerdam : > Michael Schulz wrote: > > > Hi, > > > > is it possible to display only certain tiles from a tileindex layer > > (rasters)? E.g. with a filter based on a an attribute in the tileindex > > shapefile? > > Has someone tried something like that (and succeeded)? > > > > Michael, > > Yes, this should work though I haven't exactly tried it. But you will > need to put your tileindex shapefile in a distinct Tileindex layer, and > then reference that from your raster layer instead of directly referencing > the tileindex shapefile in the raster layer. (I think) > > 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 | President OSGeo, http://osgeo.org > > -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 79108 Freiburg Tel +49 (0)761 556959-5 Fax +49 (0)761 556959-6 http://www.webgis.de / http://www.zopecms.de ----------------------------------------------------------- From yassefa at dmsolutions.ca Tue Apr 15 08:42:29 2008 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 15 Apr 2008 11:42:29 -0400 Subject: [mapserver-users] querying a WFS on property alias In-Reply-To: <4804C26E.9050900@dmsolutions.ca> References: <1f9453c1890fad322c4266afbbe9600d@pop02.backbone.tiscomhosting.nl> <4804C26E.9050900@dmsolutions.ca> Message-ID: <4804CCE5.9090402@dmsolutions.ca> Bart, Just to follow up on this: there is a bug at http://trac.osgeo.org/mapserver/ticket/2580 and fix is committed in the trunk. Please update the bug if there are issues. Best Regards Yewondwossen Assefa wrote: > Bart, > > We have gone through the same issue when implementing the SOS and the > solution was to pre-parse the filter and replace the occurrences of the > aliased by the real attribute name. > > I will move the function so that it does the same for the wfs filter > encoding. Will let you know after I do few tests. > > Best Regards, > > bartvde at osgis.nl wrote: >> Hi list, >> >> it seems that querying a WFS on a property alias does not work in MS >> 5.0.2. >> Is this a known issue? >> >> Using something like: >> >> "gml_OBJ_IDENT_alias" "Identifier" >> >> I can't query on Identifier in the PropertyName, but it works if I use >> the >> attribute name OBJ_IDENT as PropertyName. >> >> This is kind of strange, since a WFS client can't even know this property >> is actually called OBJ_IDENT in the datamodel behind the WFS. >> >> Best regards, >> Bart >> >> _______________________________________________ >> 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 woodbri at swoodbridge.com Tue Apr 15 11:47:59 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 15 Apr 2008 13:47:59 -0500 Subject: [mapserver-users] Any Fedora fc8 64 bit mapserver users out there? Message-ID: <4804F85F.805@swoodbridge.com> Hi, If you are a Fedora fc8 64 bit mapserver user (or close to that), can you please contact me off list. I'm having mapserver runtime issues and just need to compare notes and see what your experiences have been. Many thanks in advance, -Steve Woodbridge From clems_mars at hotmail.com Tue Apr 15 11:30:13 2008 From: clems_mars at hotmail.com (Clemiou) Date: Tue, 15 Apr 2008 18:30:13 +0000 Subject: [mapserver-users] Problem with MapServer & proj4 Message-ID: Hi! First, excuse me for my English. I'm french and you will find many mistakes in this mail, i'm sure. ^^ I have a little problem with Proj4 and Mapserver. I'm a new user of MS since the last week and I can print some maps without difficulties. For my student placement, I must provide to the users, the possibility to zoom in, to zoom out & to pan. So, I try OpenLayers. But I forgot to put PROJECTION items in my mapfile. So I install Proj4 (phpinfo() tell me that it's ok and mapserv -v too). But when I want print my map, I obtain this message: loadProjection(): Projection support is not available. I think that he miss a link or something like that because mapserv has been built with --with-proj option. In addition, as I said, I can see SUPPORT=PROJ in the phpinfo() and in the result of masperv -v command. Thank you for your help and sorry for my poor english. Sincerely yours Clement PS: I give you my files, the mapfile and my php file which use OpenLayers. mapfile: ############################################################### ## france.map ## ## Fichier au format mapserveur pour afficher la France ## ## Regroupe (normalement ^^) la France enti?re plus la Corse ## ## Les sources seront au format ECW. ## ## ## ## (c) Copyright MIVA Web Editions ## ## ## ############################################################### MAP PROJECTION "init=epsg:4326" END ########################################### # Taille de l'image ? afficher. En pixels.# ########################################### SIZE 700 700 ########################################################### # Param?tres divers; status, chemin des symboles utilis?s.# ########################################################### STATUS ON SYMBOLSET "/var/www/html/maps/symbols/symbols.sym" ########################################################### # Etendue spaciale de notre carte. Dans de rare cas, elle # # est calcul?e par MapServer. Position de l'image. # # Pour les fichiers .tif, on trouve des informations la # # concernant dans le fichier du m?me nom .tfw. # # # # Les param?tres correspondent dans l'ordre ?: # # -MinX,MinY,MaxX,MaxY # ########################################################### EXTENT 550501 1700039 595100 2644900 ###################### # Unit? de l'echelle # ###################### UNITS METERS ########################################## # Chemin des fichiers sources (ici ECW). # ########################################## SHAPEPATH "/var/www/html/maps/data/" ############################################################# # Partie Web: fourni des informations pour la g?n?ration de # # l'image. # ############################################################# WEB TEMPLATE "/var/www/html/OpenLayers-2.6-rc2/examples/mapserver.html" ########################################################### # Chemin du dossier dans lequel MapServeur va sauvegarder # # l'image cr?e. # ########################################################### IMAGEPATH "/var/www/html/maps/tmp" ########################################################## # Chemin du dossier dans lequel MapScript viendra lire # # l'image. /!\ Attention, le chemin doit ?tre indiqu? ? # # partir du dossier /html. # ########################################################## IMAGEURL "/maps/tmp" END ########################################################### # Les layers. Ce sont les diff?rentes couches de l'image. # # Logiquement, une couche pour une partie de France. Nous # # devrions donc en avoir 11 en comptant la corse. # # # # Pour reconstituer notre France, nous allons cr?er un # # index qui va g?rer les 2 parties. # ########################################################### ########################### # Le layer de la France . # ########################### LAYER NAME "FRANCE" TYPE RASTER STATUS ON TILEINDEX france.shp TILEITEM Location PROJECTION "init=epsg:27582" END ########################################################### # Correspond au fichier qu'il faut charger pour la couche.# # Dans le cas ou on charge une image ? la fois. # ########################################################### #DATA France.ecw ##################################### # On cr?e une classe pour ce layer. # ##################################### CLASS STYLE COLOR 110 50 100 OUTLINECOLOR 200 200 200 SYMBOL 0 END # Fin de STYLE FRANCE. END # Fin de CLASS FRANCE. END # Fin du LAYER FRANCE. END # Fin du MAP. phpfile: draw(); $image_url = $image->saveWebImage(); // ----------------------------------// // Page HTML pour afficher la carte. // // ----------------------------------// ?> LeGuide.aero: Préparez votre voyage en toute sérennité... ^^
_________________________________________________________________ D?couvrez les profils Messenger de vos amis ! http://home.services.spaces.live.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From xiao.37 at osu.edu Tue Apr 15 12:59:23 2008 From: xiao.37 at osu.edu (Ningchuan Xiao) Date: Tue, 15 Apr 2008 14:59:23 -0500 Subject: [mapserver-users] mapserver 5 configure with options does not work (fedora 7/8) Message-ID: <92eb73050804151259t202ebd02u1698de2aac411264@mail.gmail.com> Dear All, I was wondering if anyone could please help me solve this problem. I compiled MapServer 5.0.2 on Fedora 7 and 8. I installed all required libraries/packages. If I configure MapServer without any options (i.e., just use ./configure), the resulting file mapserv works fine if I copy it to the cgi-bin folder. However, if I configure it using any other options (such as --with-proj, with proj4 successfully installed), I can compile MapServer with no problem and can run mapserv -v. However, if I copy it to the cgi-bin folder, it will not work. All I get is a blank page in the web browser with no error messages. Any hint/suggestions will be greatly appreciated!! Thanks, Ningchuan -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Tue Apr 15 13:16:21 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 15 Apr 2008 16:16:21 -0400 Subject: [mapserver-users] mapserver 5 configure with options does not work (fedora 7/8) In-Reply-To: <92eb73050804151259t202ebd02u1698de2aac411264@mail.gmail.com> References: <92eb73050804151259t202ebd02u1698de2aac411264@mail.gmail.com> Message-ID: <48050D15.1060202@pobox.com> Ningchuan Xiao wrote: > Dear All, > > I was wondering if anyone could please help me solve this problem. I > compiled MapServer 5.0.2 on Fedora 7 and 8. I installed all required > libraries/packages. If I configure MapServer without any options (i.e., > just use ./configure), the resulting file mapserv works fine if I copy > it to the cgi-bin folder. > > However, if I configure it using any other options (such as --with-proj, > with proj4 successfully installed), I can compile MapServer with no > problem and can run mapserv -v. However, if I copy it to the cgi-bin > folder, it will not work. All I get is a blank page in the web browser > with no error messages. Ningchuan, I would guess this is because the extra options have shared libraries in places that aren't searched under apache. For instance, if libproj.so is installed in /usr/local/lib and you haven't managed that properly via ldconfig or LD_LIBRARY_PATH. 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 | President OSGeo, http://osgeo.org From pedro1_72 at yahoo.com Tue Apr 15 18:48:17 2008 From: pedro1_72 at yahoo.com (Nahum Castro) Date: Tue, 15 Apr 2008 20:48:17 -0500 (CDT) Subject: [mapserver-users] mapserver 5 configure with options does not work (fedora 7/8) In-Reply-To: <48050D15.1060202@pobox.com> Message-ID: <454281.87876.qm@web44813.mail.sp1.yahoo.com> --- Frank Warmerdam escribi?: > Ningchuan Xiao wrote: > > Dear All, > > > > I was wondering if anyone could please help me > solve this problem. I > > compiled MapServer 5.0.2 on Fedora 7 and 8. I > installed all required > > libraries/packages. If I configure MapServer > without any options (i.e., > > just use ./configure), the resulting file mapserv > works fine if I copy > > it to the cgi-bin folder. > > > > However, if I configure it using any other options > (such as --with-proj, > > with proj4 successfully installed), I can compile > MapServer with no > > problem and can run mapserv -v. However, if I copy > it to the cgi-bin > > folder, it will not work. All I get is a blank > page in the web browser > > with no error messages. > > Ningchuan, > > I would guess this is because the extra options have > shared libraries in > places that aren't searched under apache. For > instance, if libproj.so > is installed in /usr/local/lib and you haven't > managed that properly via > ldconfig or LD_LIBRARY_PATH. > > Best regards, > -- create a file named mapserver.conf in /etc/ld.so.conf.d/ and add the next lines: /path/to/proj4/libs /path/to/gdal/libs /path/to/geos/libs mine is /usr/local/lib /usr/local/pgsql/lib because i compiled from source postgresql+postgis, gdal, proj4 and geos If you will use php-mapscript install #yum -y install php-devel Use ./configure --help for more parameters Nahum. -- Nahum Castro Leon, Guanajuato, Mexico http://www.leon-linux.com e-mail: pedro1_72 [en] yahoo [punto] com ____________________________________________________________________________________ ?Capacidad ilimitada de almacenamiento en tu correo! No te preocupes m?s por el espacio de tu cuenta con Correo Yahoo!: http://correo.yahoo.com.mx/ From pedro1_72 at yahoo.com Tue Apr 15 18:53:43 2008 From: pedro1_72 at yahoo.com (Nahum Castro) Date: Tue, 15 Apr 2008 20:53:43 -0500 (CDT) Subject: [mapserver-users] Any Fedora fc8 64 bit mapserver users out there? In-Reply-To: <4804F85F.805@swoodbridge.com> Message-ID: <980816.10464.qm@web44814.mail.sp1.yahoo.com> --- Stephen Woodbridge escribi?: > Hi, > > If you are a Fedora fc8 64 bit mapserver user (or > close to that), can > you please contact me off list. I'm having mapserver > runtime issues and > just need to compare notes and see what your > experiences have been. > > Many thanks in advance, > -Steve Woodbridge > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > I have mapserver installed on fc8 x86_64 with no problems. I compilled all this software gd, proj4, geos, postgresql, postgis, gdal and grass, then mapserver with php-mapscript and ogc services. All other software was from fedora repositories. I have 2 installations one with intel and the other with AMD both fc8 64. Nahum. -- Nahum Castro Leon, Guanajuato, Mexico http://www.leon-linux.com e-mail: pedro1_72 [en] yahoo [punto] com ____________________________________________________________________________________ ?Capacidad ilimitada de almacenamiento en tu correo! No te preocupes m?s por el espacio de tu cuenta con Correo Yahoo!: http://correo.yahoo.com.mx/ From pedro1_72 at yahoo.com Tue Apr 15 18:58:02 2008 From: pedro1_72 at yahoo.com (Nahum Castro) Date: Tue, 15 Apr 2008 20:58:02 -0500 (CDT) Subject: [mapserver-users] mapserver 5 configure with options does not work (fedora 7/8) In-Reply-To: <454281.87876.qm@web44813.mail.sp1.yahoo.com> Message-ID: <533276.42491.qm@web44810.mail.sp1.yahoo.com> --- Nahum Castro escribi?: > > --- Frank Warmerdam escribi?: > > > Ningchuan Xiao wrote: > > > Dear All, > > > > > > I was wondering if anyone could please help me > > solve this problem. I > > > compiled MapServer 5.0.2 on Fedora 7 and 8. I > > installed all required > > > libraries/packages. If I configure MapServer > > without any options (i.e., > > > just use ./configure), the resulting file > mapserv > > works fine if I copy > > > it to the cgi-bin folder. > > > > > > However, if I configure it using any other > options > > (such as --with-proj, > > > with proj4 successfully installed), I can > compile > > MapServer with no > > > problem and can run mapserv -v. However, if I > copy > > it to the cgi-bin > > > folder, it will not work. All I get is a blank > > page in the web browser > > > with no error messages. > > > > Ningchuan, > > > > I would guess this is because the extra options > have > > shared libraries in > > places that aren't searched under apache. For > > instance, if libproj.so > > is installed in /usr/local/lib and you haven't > > managed that properly via > > ldconfig or LD_LIBRARY_PATH. > > > > Best regards, > > -- > > create a file named mapserver.conf in > /etc/ld.so.conf.d/ and add the next lines: > /path/to/proj4/libs > /path/to/gdal/libs > /path/to/geos/libs > > mine is > /usr/local/lib > /usr/local/pgsql/lib > > because i compiled from source postgresql+postgis, > gdal, proj4 and geos > > If you will use php-mapscript install > #yum -y install php-devel > > Use ./configure --help > for more parameters > > Nahum. > > -- > Nahum Castro > Leon, Guanajuato, Mexico > http://www.leon-linux.com > e-mail: pedro1_72 [en] yahoo [punto] com > > > Sorry!!! :( before ./configure any software with dependencies run #/sbin/ldconfig and #/sbin/ldconfig -v | less >>>>>check here, the libs must appear. then run ./configure then make or make install Nahum -- Nahum Castro Leon, Guanajuato, Mexico http://www.leon-linux.com e-mail: pedro1_72 [en] yahoo [punto] com ____________________________________________________________________________________ ?Capacidad ilimitada de almacenamiento en tu correo! No te preocupes m?s por el espacio de tu cuenta con Correo Yahoo!: http://correo.yahoo.com.mx/ From Antti.Roppola at brs.gov.au Tue Apr 15 20:43:30 2008 From: Antti.Roppola at brs.gov.au (Roppola, Antti - BRS) Date: Wed, 16 Apr 2008 13:43:30 +1000 Subject: [mapserver-users] Any Fedora fc8 64 bit mapserver users out there? [SEC=UNCLASSIFIED] In-Reply-To: <980816.10464.qm@web44814.mail.sp1.yahoo.com> Message-ID: <61C2DEA055980B418D063F8646FCAEFC0287698C@ACT001CL03EX03.agdaff.gov.au> Hi all, This is pretty timely as we are scoping out new servers and up 'til now I have conciously avoided 64 bit deployments. The abundance of 64 bit platforms seems to have made 64 bit less boutique and less risky. Antti -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nahum Castro Sent: Wednesday, 16 April 2008 11:54 AM To: Stephen Woodbridge; mapserver-users Subject: Re: [mapserver-users] Any Fedora fc8 64 bit mapserver users out there? --- Stephen Woodbridge escribi?: > Hi, > > If you are a Fedora fc8 64 bit mapserver user (or close to that), can > you please contact me off list. I'm having mapserver runtime issues > and just need to compare notes and see what your experiences have > been. > > Many thanks in advance, > -Steve Woodbridge > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > I have mapserver installed on fc8 x86_64 with no problems. I compilled all this software gd, proj4, geos, postgresql, postgis, gdal and grass, then mapserver with php-mapscript and ogc services. All other software was from fedora repositories. I have 2 installations one with intel and the other with AMD both fc8 64. Nahum. -- Nahum Castro Leon, Guanajuato, Mexico http://www.leon-linux.com e-mail: pedro1_72 [en] yahoo [punto] com ____________________________________________________________________________________ ?Capacidad ilimitada de almacenamiento en tu correo! No te preocupes m?s por el espacio de tu cuenta con Correo Yahoo!: http://correo.yahoo.com.mx/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------IMPORTANT - This message has been issued by The Department of Agriculture, Fisheries and Forestry (DAFF). The information transmitted is for the use of the intended recipient only and may contain confidential and/or legally privileged material. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. Any reproduction, publication, communication, re-transmission, disclosure, dissemination or other use of the information contained in this e-mail by persons or entities other than the intended recipient is prohibited. The taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error please notify the sender and delete all copies of this transmission together with any attachments. If you have received this e-mail as part of a valid mailing list and no longer want to receive a message such as this one advise the sender by return e-mail accordingly. Only e-mail correspondence which includes this footer, has been authorised by DAFF ------ From jl.cardoso at sgsmap.com Wed Apr 16 00:12:18 2008 From: jl.cardoso at sgsmap.com (Juan Luis Cardoso) Date: Wed, 16 Apr 2008 09:12:18 +0200 Subject: [mapserver-users] add point to a Layer Message-ID: Hi I am using the Mapserver 4.6.2 version? I have a layer (SHP) of points, and I would like to insert points on it. Is it possible and how can i do it? Thanks in advance. Juan Luis Cardoso From c.pelliconi at sis-ter.it Wed Apr 16 00:39:36 2008 From: c.pelliconi at sis-ter.it (Carlo Pelliconi) Date: Wed, 16 Apr 2008 09:39:36 +0200 Subject: [mapserver-users] add point to a Layer In-Reply-To: References: Message-ID: <4805AD38.6020406@sis-ter.it> For cgi mapserver and for temporary session, you can modify querystring and thus view the point in map, but this action doesn't save the point on the shpfile (about this, look in mapserver documentation about mapfile, but I don't remember the exact page where I've found it) If you want to edit the shpfile, the only way (if I'm not wrong) is installing mapscript. Bye Carlo Juan Luis Cardoso ha scritto: > Hi > > I am using the Mapserver 4.6.2 version? > I have a layer (SHP) of points, and I would like to insert points on it. > Is it possible and how can i do it? > > Thanks in advance. > > Juan Luis Cardoso > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- ing. Carlo Pelliconi c.pelliconi at sis-ter.it SIS.TER S.p.A. www.sis-ter.it via Mentana, 10 40026 Imola (BO) Italy tel +39 0542 364034 fax +39 0542 612130 ATTENZIONE! Questo documento ? indirizzato esclusivamente al destinatario. Tutte le informazioni ivi contenute, compresi eventuali allegati, sono soggette a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di "privacy" e ne ? proibita l'utilizzazione da parte di altri soggetti. Si ricorda che la diffusione l'utilizzo e/o la conservazione dei dati ricevuti per errore costituisce violazione di carattere penale ai sensi dell'art. 616 Codice penale (Violazione, sottrazione e soppressione di corrispondenza). Se avesse ricevuto per errore questo messaggio, La preghiamo cortesemente di contattare il mittente al pi? presto e di cancellare il messaggio subito dopo. Grazie. ATTENTION! This message is being sent from Sis.Ter S.p.A. and may contain information which is confidential or privileged. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. Any unauthorized use of the content of this message is a breach of your duty to respect the confidentiality of the correspondence between other persons and can expose the responsible party to civil and/or criminal penalties (D.Lgs. 196/2003 "Tutela della privacy" e art. 616 Codice penale "Violazione, sottrazione e soppressione di corrispondenza"), and may constitute a more serious offence. Thanks. ACHTUNG! Dieses Dokument ist ausschlie?lich dem Empf?nger vorbehalten. Die darin enthaltenen Informationen, auch jene in etwaigen Anlagen, gelten im Sinne des Dekrets Nr. 196/2003 in Sachen "Privacy" als streng vertraulich und d?rfen von anderen Personen nicht verwende werden. Wer diese Mitteilung irrt?mlicherweise erh?lt ist gebeten uns umgehend zu informieren und anschlie?end die Mitteilung zu vernichten. Vielen Dank. From newsgroupes at gmail.com Wed Apr 16 02:36:35 2008 From: newsgroupes at gmail.com (Newsgroup Newsgroup) Date: Wed, 16 Apr 2008 11:36:35 +0200 Subject: [mapserver-users] Looking for a good tutorial Message-ID: Hello, Sorry for my english i am looking for a tutorial in order to test Mapserver with Cartoweb on Linux server ( debian Etch). Wbr -------------- next part -------------- An HTML attachment was scrubbed... URL: From urry at swemel.ru Wed Apr 16 04:25:22 2008 From: urry at swemel.ru (=?windows-1251?Q?=C1=F3=F5=E0=F0=EA=E8=ED_=DE=F0=E8=E9?=) Date: Wed, 16 Apr 2008 15:25:22 +0400 Subject: [mapserver-users] Building mapserver on Sparc Solaris 10 Message-ID: <4BAED819D0316147BDF49D57CCF1DCEB09D053@S-FILES> Hello, All! I'm trying to make a working instance of UMN-MapServer on Solaris sparc 10 u4. Tha main problem is with GDAL's making. Because of using solaris companion DVD products, I have most of essential libraries in /usr/sfw/.... , not in /usr/ local/.... I'm using configure with such set of params: --with-geotiff=internal --with-tiff=internal --with-png=internal --withjpg=internal --without-python --with-curl=/usr/sfw/bin/curl-config In gmake all is going fine, untill..... libtool: compile: g++ -g -O2 -Wall -I/export/home/admin/mapserver/mapserver-5.0.2/GDAL/gdal-1.5.1/port -I/export/home/admin/mapserver/mapserver-5.0.2/GDAL/gdal-1.5.1/gcore -I/export/home/admin/mapserver/mapserver-5.0.2/GDAL/gdal-1.5.1/alg -I/export/home/admin/mapserver/mapserver-5.0.2/GDAL/gdal-1.5.1/ogr -I/export/home/admin/mapserver/mapserver-5.0.2/GDAL/gdal-1.5.1/ogr/ogrsf_frm ts -DOGR_ENABLED -I/export/home/admin/mapserver/mapserver-5.0.2/GDAL/gdal-1.5.1/port -c gdalhttp.cpp -fPIC -DPIC -o ../o/.libs/gdalhttp.o gdalhttp.cpp: In function `CPLErr CPLHTTPFetchMulti(CPLHTTPRequest*, int, const char* const*)': gdalhttp.cpp:209: error: `CURLINFO_RESPONSE_CODE' was not declared in this scope gdalhttp.cpp:209: warning: unused variable 'CURLINFO_RESPONSE_CODE' gmake[2]: *** [../o/gdalhttp.o] Error 1 gmake[2]: Leaving directory `/export/home/admin/mapserver/mapserver-5.0.2/GDAL/gdal-1.5.1/frmts/wms' gmake[1]: *** [wms-install-obj] Error 2 gmake[1]: Leaving directory `/export/home/admin/mapserver/mapserver-5.0.2/GDAL/gdal-1.5.1/frmts' gmake: *** [frmts-target] Error 2 gmake Who can consult me, what to do, to obtain a working copy of mapserver on Sparc WITH GDAL? Can I build GDAL with "--without-curl" option? Without GDAL all is working fine, until sample 1.5 in tutorials :-))) Two days ago i had builded Mapserver with GDAL 1.4.0, maked without curl. It's really using libgdal.so.... because if this file is renamed the error " lib... is not found." is reporting in web server's logs. But 1.5 sample returns: msDrawMap(): Image handling error. Failed to draw layer named 'modis'. msDrawRasterLayerLow(): General error message. Attempt to render raster layer to IMAGEMODE RGB or RGBA but without GDAL available. 24bit output requires GDAL. 1.6 returns: loadProjection(): Projection library error. Projection support is not available. What I have to do to obtain working instance of mapserver with projections & basic raster formats (png,gif,tiff,jpeg)support? Sincerely Yours -------------- next part -------------- An HTML attachment was scrubbed... URL: From crschmidt at metacarta.com Wed Apr 16 04:36:38 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed, 16 Apr 2008 07:36:38 -0400 Subject: [mapserver-users] Building mapserver on Sparc Solaris 10 In-Reply-To: <4BAED819D0316147BDF49D57CCF1DCEB09D053@S-FILES> References: <4BAED819D0316147BDF49D57CCF1DCEB09D053@S-FILES> Message-ID: <20080416113637.GA6069@metacarta.com> On Wed, Apr 16, 2008 at 03:25:22PM +0400, ???????? ???? wrote: > Hello, All! > I'm trying to make a working instance of UMN-MapServer on Solaris sparc 10 > u4. > Tha main problem is with GDAL's making. > Because of using solaris companion DVD products, I have most of essential > libraries > in /usr/sfw/.... , not in /usr/ local/.... > I'm using configure with such set of params: > > --with-geotiff=internal --with-tiff=internal --with-png=internal > --withjpg=internal --without-python --with-curl=/usr/sfw/bin/curl-config I believe this is because your version of curl is too old. -- Chris > In gmake all is going fine, untill..... > > libtool: compile: g++ -g -O2 -Wall > -I/export/home/admin/mapserver/mapserver-5.0.2/GDAL/gdal-1.5.1/port > -I/export/home/admin/mapserver/mapserver-5.0.2/GDAL/gdal-1.5.1/gcore > -I/export/home/admin/mapserver/mapserver-5.0.2/GDAL/gdal-1.5.1/alg > -I/export/home/admin/mapserver/mapserver-5.0.2/GDAL/gdal-1.5.1/ogr > -I/export/home/admin/mapserver/mapserver-5.0.2/GDAL/gdal-1.5.1/ogr/ogrsf_frm > ts -DOGR_ENABLED > -I/export/home/admin/mapserver/mapserver-5.0.2/GDAL/gdal-1.5.1/port -c > gdalhttp.cpp -fPIC -DPIC -o ../o/.libs/gdalhttp.o > gdalhttp.cpp: In function `CPLErr CPLHTTPFetchMulti(CPLHTTPRequest*, int, > const char* const*)': > gdalhttp.cpp:209: error: `CURLINFO_RESPONSE_CODE' was not declared in this > scope > gdalhttp.cpp:209: warning: unused variable 'CURLINFO_RESPONSE_CODE' > gmake[2]: *** [../o/gdalhttp.o] Error 1 > gmake[2]: Leaving directory > `/export/home/admin/mapserver/mapserver-5.0.2/GDAL/gdal-1.5.1/frmts/wms' > gmake[1]: *** [wms-install-obj] Error 2 > gmake[1]: Leaving directory > `/export/home/admin/mapserver/mapserver-5.0.2/GDAL/gdal-1.5.1/frmts' > gmake: *** [frmts-target] Error 2 > gmake > > > Who can consult me, what to do, to obtain a working copy of mapserver on > Sparc WITH GDAL? > Can I build GDAL with "--without-curl" option? > Without GDAL all is working fine, until sample 1.5 in tutorials :-))) > > Two days ago i had builded Mapserver with GDAL 1.4.0, maked without curl. > It's really using libgdal.so.... because if this file is renamed the error " > lib... is not found." is reporting in web server's logs. > But 1.5 sample returns: > msDrawMap(): Image handling error. Failed to draw layer named 'modis'. > msDrawRasterLayerLow(): General error message. Attempt to render raster > layer to IMAGEMODE RGB or RGBA but without GDAL available. 24bit output > requires GDAL. > 1.6 returns: > loadProjection(): Projection library error. Projection support is not > available. > What I have to do to obtain working instance of mapserver with projections & > basic raster formats (png,gif,tiff,jpeg)support? > Sincerely Yours > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Christopher Schmidt MetaCarta From dmorissette at mapgears.com Wed Apr 16 04:37:31 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 16 Apr 2008 07:37:31 -0400 Subject: [mapserver-users] Building mapserver on Sparc Solaris 10 In-Reply-To: <4BAED819D0316147BDF49D57CCF1DCEB09D053@S-FILES> References: <4BAED819D0316147BDF49D57CCF1DCEB09D053@S-FILES> Message-ID: <4805E4FB.40306@mapgears.com> ???????? ???? wrote: > > libtool: compile: g++ -g -O2 -Wall > -I/export/home/admin/mapserver/mapserver-5.0.2/GDAL/gdal-1.5.1/port > -I/export/home/admin/mapserver/mapserver-5.0.2/GDAL/gdal-1.5.1/gcore > -I/export/home/admin/mapserver/mapserver-5.0.2/GDAL/gdal-1.5.1/alg > -I/export/home/admin/mapserver/mapserver-5.0.2/GDAL/gdal-1.5.1/ogr > -I/export/home/admin/mapserver/mapserver-5.0.2/GDAL/gdal-1.5.1/ogr/ogrsf_frmts > -DOGR_ENABLED > -I/export/home/admin/mapserver/mapserver-5.0.2/GDAL/gdal-1.5.1/port -c > gdalhttp.cpp -fPIC -DPIC -o ../o/.libs/gdalhttp.o > gdalhttp.cpp: In function `CPLErr CPLHTTPFetchMulti(CPLHTTPRequest*, > int, const char* const*)': > gdalhttp.cpp:209: error: `CURLINFO_RESPONSE_CODE' was not declared in > this scope > gdalhttp.cpp:209: warning: unused variable 'CURLINFO_RESPONSE_CODE' > gmake[2]: *** [../o/gdalhttp.o] Error 1 > gmake[2]: Leaving directory > `/export/home/admin/mapserver/mapserver-5.0.2/GDAL/gdal-1.5.1/frmts/wms' > gmake[1]: *** [wms-install-obj] Error 2 > gmake[1]: Leaving directory > `/export/home/admin/mapserver/mapserver-5.0.2/GDAL/gdal-1.5.1/frmts' > gmake: *** [frmts-target] Error 2 > gmake > > > Who can consult me, what to do, to obtain a working copy of mapserver on > Sparc WITH GDAL? > Can I build GDAL with "--without-curl" option? > Without GDAL all is working fine, until sample 1.5 in tutorials :-))) > Which version of Curl do you have in /usr/sfw? The Curl docs suggest that CURLINFO_RESPONSE_CODE may have appeared only in version 7.10.7, see here: http://curl.haxx.se/libcurl/c/curl_easy_getinfo.html If your Curl is older than 7.10.7 then that could possibly explain the error. You could try to compile locally a more recent version, or build GDAL without curl. I haven't tried building GDAL without Curl recently, but that should work since Curl is only needed for a few drivers that are not essential for MapServer. Daniel -- Daniel Morissette http://www.mapgears.com/ From jfuch at indec.mecon.gov.ar Wed Apr 16 05:12:06 2008 From: jfuch at indec.mecon.gov.ar (Fuchs Juan Carlos) Date: Wed, 16 Apr 2008 09:12:06 -0300 Subject: [mapserver-users] add point to a Layer Message-ID: Just an outline fron the MapServer Home page ... 10. Inline MapServer Features Inline features refer to coordinates entered directly into the map file. They are not a file or database format and do not require any DATA or CONNECTION parameters. Instead they use a FEATURE section to define the coordinates. Inline features can be used to define points, lines and polygons as if taken from an external file. This requires direct entry of coordinate pairs in the map file using a particular syntax. Data Access / Connection Method This is a native MapServer option that doesn't use any external libraries to support it. Map File Example Points Each FEATURE..END section defines a feature. Multiple points can be defined in a FEATURE section. If multiple points are defined in the same layer, they will have the same CLASS settings, e.g. for colours and styles. Coordinates are entered in the units set in the layer's projection. In this case it is assuming the map file projection is using decimal degrees. LAYER NAME inline_stops TYPE POINT STATUS DEFAULT FEATURE POINTS 72.36 33.82 END TEXT "My House" END FEATURE POINTS 69.43 35.15 71.21 37.95 72.02 38.60 END TEXT "My Stores" END CLASS COLOR 0 0 250 SYMBOL 'circle' SIZE 6 END END Hope it helps JC -----Mensaje original----- De: Juan Luis Cardoso [mailto:jl.cardoso at sgsmap.com] Enviado el: Mi?rcoles, 16 de Abril de 2008 04:12 a.m. Para: mapserver-users at lists.osgeo.org Asunto: [mapserver-users] add point to a Layer Hi I am using the Mapserver 4.6.2 version? I have a layer (SHP) of points, and I would like to insert points on it. Is it possible and how can i do it? Thanks in advance. Juan Luis Cardoso _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From xiao.37 at osu.edu Wed Apr 16 06:38:40 2008 From: xiao.37 at osu.edu (Ningchuan Xiao) Date: Wed, 16 Apr 2008 09:38:40 -0400 Subject: [mapserver-users] mapserver 5 configure with options does not work (fedora 7/8) In-Reply-To: <454281.87876.qm@web44813.mail.sp1.yahoo.com> References: <48050D15.1060202@pobox.com> <454281.87876.qm@web44813.mail.sp1.yahoo.com> Message-ID: <92eb73050804160638v7a9079fbh47f8143f4a18e03b@mail.gmail.com> Nahum and Frank - Many thanks to your helpful suggestions! Now it works like a charm... Ningchuan On Tue, Apr 15, 2008 at 9:48 PM, Nahum Castro wrote: > > --- Frank Warmerdam escribi?: > > > Ningchuan Xiao wrote: > > > Dear All, > > > > > > I was wondering if anyone could please help me > > solve this problem. I > > > compiled MapServer 5.0.2 on Fedora 7 and 8. I > > installed all required > > > libraries/packages. If I configure MapServer > > without any options (i.e., > > > just use ./configure), the resulting file mapserv > > works fine if I copy > > > it to the cgi-bin folder. > > > > > > However, if I configure it using any other options > > (such as --with-proj, > > > with proj4 successfully installed), I can compile > > MapServer with no > > > problem and can run mapserv -v. However, if I copy > > it to the cgi-bin > > > folder, it will not work. All I get is a blank > > page in the web browser > > > with no error messages. > > > > Ningchuan, > > > > I would guess this is because the extra options have > > shared libraries in > > places that aren't searched under apache. For > > instance, if libproj.so > > is installed in /usr/local/lib and you haven't > > managed that properly via > > ldconfig or LD_LIBRARY_PATH. > > > > Best regards, > > -- > > create a file named mapserver.conf in > /etc/ld.so.conf.d/ and add the next lines: > /path/to/proj4/libs > /path/to/gdal/libs > /path/to/geos/libs > > mine is > /usr/local/lib > /usr/local/pgsql/lib > > because i compiled from source postgresql+postgis, > gdal, proj4 and geos > > If you will use php-mapscript install > #yum -y install php-devel > > Use ./configure --help > for more parameters > > Nahum. > > -- > Nahum Castro > Leon, Guanajuato, Mexico > http://www.leon-linux.com > e-mail: pedro1_72 [en] yahoo [punto] com > > > > ____________________________________________________________________________________ > ?Capacidad ilimitada de almacenamiento en tu correo! > No te preocupes m?s por el espacio de tu cuenta con Correo Yahoo!: > http://correo.yahoo.com.mx/ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Wed Apr 16 08:32:45 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 16 Apr 2008 10:32:45 -0500 Subject: [mapserver-users] Any Fedora fc8 64 bit mapserver users out there? [SEC=UNCLASSIFIED] In-Reply-To: <61C2DEA055980B418D063F8646FCAEFC0287698C@ACT001CL03EX03.agdaff.gov.au> References: <61C2DEA055980B418D063F8646FCAEFC0287698C@ACT001CL03EX03.agdaff.gov.au> Message-ID: <48061C1D.3010907@swoodbridge.com> Hi Antti, I have heard back from 3-4 other users of 64bit Fedora and none of them are having problems like I had. The symptoms I was having are so basic that I am beginning to think that they may be hardware memory? related. We are wiping that system and installing Debian Etch 64bit on it and seeing how that plays. I have been running Debian Sarge on a 64bit dual Xeon server for 2 years and have had no problems with 64bit apps or with compiling and building any of the GIS stack that I use. If we still have problems, then I think we can be assured it is hardware. If we don't. I'm not sure what that tells us, but I will probably stick with Debian on this box because I have work to do on it and don't have time to trouble issues like this. I hope this helps, -Steve Roppola, Antti - BRS wrote: > Hi all, > > This is pretty timely as we are scoping out new servers and up 'til > now I have conciously avoided 64 bit deployments. The abundance of > 64 bit platforms seems to have made 64 bit less boutique and less risky. > > Antti > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nahum Castro > Sent: Wednesday, 16 April 2008 11:54 AM > To: Stephen Woodbridge; mapserver-users > Subject: Re: [mapserver-users] Any Fedora fc8 64 bit mapserver users out there? > > > --- Stephen Woodbridge > escribi?: > >> Hi, >> >> If you are a Fedora fc8 64 bit mapserver user (or close to that), can >> you please contact me off list. I'm having mapserver runtime issues >> and just need to compare notes and see what your experiences have >> been. >> >> Many thanks in advance, >> -Steve Woodbridge >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > I have mapserver installed on fc8 x86_64 with no problems. > I compilled all this software gd, proj4, geos, postgresql, postgis, gdal and grass, then mapserver with php-mapscript and ogc services. > > All other software was from fedora repositories. > > I have 2 installations one with intel and the other with AMD both fc8 64. > > Nahum. > > > > -- > Nahum Castro > Leon, Guanajuato, Mexico > http://www.leon-linux.com > e-mail: pedro1_72 [en] yahoo [punto] com > > > ____________________________________________________________________________________ > ?Capacidad ilimitada de almacenamiento en tu correo! > No te preocupes m?s por el espacio de tu cuenta con Correo Yahoo!: > http://correo.yahoo.com.mx/ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ------IMPORTANT - This message has been issued by The Department of Agriculture, Fisheries and Forestry (DAFF). The information transmitted is for the use of the intended recipient only and may contain confidential and/or legally privileged material. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. > > Any reproduction, publication, communication, re-transmission, disclosure, dissemination or other use of the information contained in this e-mail by persons or entities other than the intended recipient is prohibited. The taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error please notify the sender and delete all copies of this transmission together with any attachments. If you have received this e-mail as part of a valid mailing list and no longer want to receive a message such as this one advise the sender by return e-mail accordingly. Only e-mail correspondence which includes this footer, has been authorised by DAFF > ------ From woodbri at swoodbridge.com Wed Apr 16 11:52:26 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 16 Apr 2008 13:52:26 -0500 Subject: [mapserver-users] mapserver 5.0.2 segv using AGG Message-ID: <48064AEA.8010407@swoodbridge.com> Hi all, Is this a known problem? I did could not find a ticket for it. I'm trying the nightly build next. -Steve woodbri at maps:/u/woodbri/work/mapserver-5.0.2$ gdb mapserv GNU gdb 6.4.90-debian Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run QUERY_STRING='map=%2Fu%2Fdata%2Fmaps%2Fgoogle-agg.map&layers=all&map_imagetype=agg%2Fpng24&mode=map&mapext=-88.20558679540737+41.41346751789421+-87.09441320459264+42.28653248210579&imgext=-88.20558679540737+41.41346751789421+-87.09441320459264+42.28653248210579&map_size=700+550&imgx=350&imgy=275&imgxy=700+550' > a Starting program: /u/woodbri/work/mapserver-5.0.2/mapserv QUERY_STRING='map=%2Fu%2Fdata%2Fmaps%2Fgoogle-agg.map&layers=all&map_imagetype=agg%2Fpng24&mode=map&mapext=-88.20558679540737+41.41346751789421+-87.09441320459264+42.28653248210579&imgext=-88.20558679540737+41.41346751789421+-87.09441320459264+42.28653248210579&map_size=700+550&imgx=350&imgy=275&imgxy=700+550' > a [Thread debugging using libthread_db enabled] [New Thread 47982973225104 (LWP 20007)] warning: Lowest section in /usr/lib/libicudata.so.36 is .hash at 0000000000000120 Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 47982973225104 (LWP 20007)] 0x00002ba3e360e733 in gdImagePngCtxEx () from /usr/lib/libgd.so.2 (gdb) where #0 0x00002ba3e360e733 in gdImagePngCtxEx () from /usr/lib/libgd.so.2 #1 0x0000000000453bb3 in msSaveImageGDCtx (img=0x738040, ctx=0x6c1a90, format=0x6247a0) at mapgd.c:3602 #2 0x0000000000453d3e in msSaveImageGD (img=0x738040, filename=, format=0x6247a0) at mapgd.c:3543 #3 0x0000000000454886 in msSaveImageAGG (img=0x738040, filename=0x0, format=0x6247a0) at mapagg.cpp:2194 #4 0x0000000000428f5b in msSaveImage (map=0x61d560, img=0x738000, filename=0x0) at maputil.c:604 #5 0x000000000040e8d4 in main (argc=, argv=) at mapserv.c:1580 (gdb) q From woodbri at swoodbridge.com Wed Apr 16 12:20:07 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 16 Apr 2008 14:20:07 -0500 Subject: [mapserver-users] mapserver 5.0.2 segv using AGG In-Reply-To: <48064AEA.8010407@swoodbridge.com> References: <48064AEA.8010407@swoodbridge.com> Message-ID: <48065167.4030807@swoodbridge.com> Moving this to the dev list ... As a follow up to this it is reproducible on the current nightly tarball also. So in mapgd.c lines 3595+ are: gdPImg = gdImageCreatePaletteFromTrueColor(img,dither,colorsWanted); /* It seems there is a bug in gd 2.0.33 and earlier that leaves the colors open[] flag set to one. */ for( i = 0; i < gdPImg->colorsTotal; i++ ) gdPImg->open[i] = 0; gdImagePngCtx( gdPImg, ctx ); gdImageDestroy( gdPImg ); It looks like the call to gdImageCreatePaletteFromTrueColor() is returning NULL and mapserver is not checking and dealing with this condition and passing gdPImg as a NULL pointer to gdImagePngCtx( gdPImg, ctx ); which is causing a SEGV when it is accessed. Running with packages on Debian Etch: libgd2-noxpm/stable uptodate 2.0.33-5.2 libgd2-noxpm-dev/stable uptodate 2.0.33-5.2 I also ran into this same problem in brief experience with Fedora 8. -Steve W Stephen Woodbridge wrote: > Hi all, > > Is this a known problem? I did could not find a ticket for it. I'm > trying the nightly build next. > > -Steve > > woodbri at maps:/u/woodbri/work/mapserver-5.0.2$ gdb mapserv > GNU gdb 6.4.90-debian > Copyright (C) 2006 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you > are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "x86_64-linux-gnu"...Using host libthread_db > library "/lib/libthread_db.so.1". > > (gdb) run > QUERY_STRING='map=%2Fu%2Fdata%2Fmaps%2Fgoogle-agg.map&layers=all&map_imagetype=agg%2Fpng24&mode=map&mapext=-88.20558679540737+41.41346751789421+-87.09441320459264+42.28653248210579&imgext=-88.20558679540737+41.41346751789421+-87.09441320459264+42.28653248210579&map_size=700+550&imgx=350&imgy=275&imgxy=700+550' > > a > Starting program: /u/woodbri/work/mapserver-5.0.2/mapserv > QUERY_STRING='map=%2Fu%2Fdata%2Fmaps%2Fgoogle-agg.map&layers=all&map_imagetype=agg%2Fpng24&mode=map&mapext=-88.20558679540737+41.41346751789421+-87.09441320459264+42.28653248210579&imgext=-88.20558679540737+41.41346751789421+-87.09441320459264+42.28653248210579&map_size=700+550&imgx=350&imgy=275&imgxy=700+550' > > a > [Thread debugging using libthread_db enabled] > [New Thread 47982973225104 (LWP 20007)] > warning: Lowest section in /usr/lib/libicudata.so.36 is .hash at > 0000000000000120 > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 47982973225104 (LWP 20007)] > 0x00002ba3e360e733 in gdImagePngCtxEx () from /usr/lib/libgd.so.2 > (gdb) where > #0 0x00002ba3e360e733 in gdImagePngCtxEx () from /usr/lib/libgd.so.2 > #1 0x0000000000453bb3 in msSaveImageGDCtx (img=0x738040, ctx=0x6c1a90, > format=0x6247a0) at mapgd.c:3602 > #2 0x0000000000453d3e in msSaveImageGD (img=0x738040, > filename=, format=0x6247a0) at mapgd.c:3543 > #3 0x0000000000454886 in msSaveImageAGG (img=0x738040, filename=0x0, > format=0x6247a0) at mapagg.cpp:2194 > #4 0x0000000000428f5b in msSaveImage (map=0x61d560, img=0x738000, > filename=0x0) at maputil.c:604 > #5 0x000000000040e8d4 in main (argc=, > argv=) at mapserv.c:1580 > (gdb) q > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Wed Apr 16 12:32:36 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 16 Apr 2008 14:32:36 -0500 Subject: [mapserver-users] [SOLVED] mapserver 5.0.2 segv using AGG In-Reply-To: <48065167.4030807@swoodbridge.com> References: <48064AEA.8010407@swoodbridge.com> <48065167.4030807@swoodbridge.com> Message-ID: <48065454.9030303@swoodbridge.com> Arghhh! This bug is caused by the fact that my output format requests: FORMATOPTION "PALETTE=/u/data/maps/palette-google-agg.txt" and the file does not exist. I ran into this earlier and have already written a bug on it. Sorry the SEGV is non-intuitive to the cause and I guess I'm slow on the up take :( Back you your regularly scheduled programing. :) -Steve W Stephen Woodbridge wrote: > Moving this to the dev list ... > > As a follow up to this it is reproducible on the current nightly tarball > also. > > So in mapgd.c lines 3595+ are: > > gdPImg = > gdImageCreatePaletteFromTrueColor(img,dither,colorsWanted); > /* It seems there is a bug in gd 2.0.33 and earlier that leaves the > colors open[] flag set to one. */ > for( i = 0; i < gdPImg->colorsTotal; i++ ) > gdPImg->open[i] = 0; > gdImagePngCtx( gdPImg, ctx ); > gdImageDestroy( gdPImg ); > > It looks like the call to gdImageCreatePaletteFromTrueColor() is > returning NULL and mapserver is not checking and dealing with this > condition and passing gdPImg as a NULL pointer to gdImagePngCtx( gdPImg, > ctx ); which is causing a SEGV when it is accessed. > > Running with packages on Debian Etch: > > libgd2-noxpm/stable uptodate 2.0.33-5.2 > libgd2-noxpm-dev/stable uptodate 2.0.33-5.2 > > I also ran into this same problem in brief experience with Fedora 8. > > -Steve W > > > Stephen Woodbridge wrote: >> Hi all, >> >> Is this a known problem? I did could not find a ticket for it. I'm >> trying the nightly build next. >> >> -Steve >> >> woodbri at maps:/u/woodbri/work/mapserver-5.0.2$ gdb mapserv >> GNU gdb 6.4.90-debian >> Copyright (C) 2006 Free Software Foundation, Inc. >> GDB is free software, covered by the GNU General Public License, and >> you are >> welcome to change it and/or distribute copies of it under certain >> conditions. >> Type "show copying" to see the conditions. >> There is absolutely no warranty for GDB. Type "show warranty" for >> details. >> This GDB was configured as "x86_64-linux-gnu"...Using host >> libthread_db library "/lib/libthread_db.so.1". >> >> (gdb) run >> QUERY_STRING='map=%2Fu%2Fdata%2Fmaps%2Fgoogle-agg.map&layers=all&map_imagetype=agg%2Fpng24&mode=map&mapext=-88.20558679540737+41.41346751789421+-87.09441320459264+42.28653248210579&imgext=-88.20558679540737+41.41346751789421+-87.09441320459264+42.28653248210579&map_size=700+550&imgx=350&imgy=275&imgxy=700+550' >> > a >> Starting program: /u/woodbri/work/mapserver-5.0.2/mapserv >> QUERY_STRING='map=%2Fu%2Fdata%2Fmaps%2Fgoogle-agg.map&layers=all&map_imagetype=agg%2Fpng24&mode=map&mapext=-88.20558679540737+41.41346751789421+-87.09441320459264+42.28653248210579&imgext=-88.20558679540737+41.41346751789421+-87.09441320459264+42.28653248210579&map_size=700+550&imgx=350&imgy=275&imgxy=700+550' >> > a >> [Thread debugging using libthread_db enabled] >> [New Thread 47982973225104 (LWP 20007)] >> warning: Lowest section in /usr/lib/libicudata.so.36 is .hash at >> 0000000000000120 >> >> Program received signal SIGSEGV, Segmentation fault. >> [Switching to Thread 47982973225104 (LWP 20007)] >> 0x00002ba3e360e733 in gdImagePngCtxEx () from /usr/lib/libgd.so.2 >> (gdb) where >> #0 0x00002ba3e360e733 in gdImagePngCtxEx () from /usr/lib/libgd.so.2 >> #1 0x0000000000453bb3 in msSaveImageGDCtx (img=0x738040, ctx=0x6c1a90, >> format=0x6247a0) at mapgd.c:3602 >> #2 0x0000000000453d3e in msSaveImageGD (img=0x738040, >> filename=, format=0x6247a0) at mapgd.c:3543 >> #3 0x0000000000454886 in msSaveImageAGG (img=0x738040, filename=0x0, >> format=0x6247a0) at mapagg.cpp:2194 >> #4 0x0000000000428f5b in msSaveImage (map=0x61d560, img=0x738000, >> filename=0x0) at maputil.c:604 >> #5 0x000000000040e8d4 in main (argc=, >> argv=) at mapserv.c:1580 >> (gdb) q >> _______________________________________________ >> 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 maurerj at nsidc.org Wed Apr 16 15:10:48 2008 From: maurerj at nsidc.org (John Maurer) Date: Wed, 16 Apr 2008 23:10:48 +0100 Subject: [mapserver-users] GetCapabilities for a specific layer, not the entire mapfile? Message-ID: <48067968.8000405@nsidc.org> Hi mapserver-users, What is the best way to provide a generic/flexible WMS-related URL for a specific layer within my MapServer mapfile? I want to include this kind of thing in our DIF & FGDC metadata so that users know about a WMS for a given data set. If I provide a GetCapabilities request, this advertises *all* of the layers in my mapfile, which represent a collection of multiple data sets, most of which will be unrelated to the data set in the metadata. On the other hand, if I provide a GetMap request this allows me to specify the layer intended for a particular data set, but it limits the output possibilities to a specific srs, format, width, height, and bbox. A GetCapabilities for a specific layer would be akin to what I need, but I don't think that's how it works. This is my quandary and I'm hoping somebody has a solution to this kind of thing?? Thanks! Cheers, John Maurer -- John Maurer Web/Database Applications Engineer National Snow and Ice Data Center (NSIDC) University of Colorado at Boulder http://cires.colorado.edu/~maurerj ------------------------------------ "Without geography, you're nowhere!" From luca.casagrande at gmail.com Wed Apr 16 16:14:26 2008 From: luca.casagrande at gmail.com (Luca Casagrande) Date: Thu, 17 Apr 2008 01:14:26 +0200 Subject: [mapserver-users] WMS cascading Message-ID: <8d09169d0804161614u6c045c6ck223b009e4902d11b@mail.gmail.com> Hello everybody, I am trying to serve, with my wms server, a layer coming from NASA WMS. The source projection is 4326 and I need to reproject to 23033; inside the metada I put the wms_srs value, but it's not working..I just just a white image. Any idea? Thanks Luca LAYER NAME "nasa" TYPE RASTER STATUS ON CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?" CONNECTIONTYPE WMS PROJECTION "init=epsg:4326" END METADATA "DESCRIPTION" "JPL Global Mosaic (WMS)" "wms_name" "global_mosaic_base" "wms_style" "visual" "wms_server_version" "1.1.1" "wms_format" "image/jpeg" "ows_title" "jpl_wms_global_mosaic" "wms_srs" "EPSG:23033" END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim.bowden at westnet.com.au Wed Apr 16 19:11:18 2008 From: tim.bowden at westnet.com.au (Tim Bowden) Date: Thu, 17 Apr 2008 10:11:18 +0800 Subject: [mapserver-users] Any Fedora fc8 64 bit mapserver users out there? [SEC=UNCLASSIFIED] In-Reply-To: <48061C1D.3010907@swoodbridge.com> References: <61C2DEA055980B418D063F8646FCAEFC0287698C@ACT001CL03EX03.agdaff.gov.au> <48061C1D.3010907@swoodbridge.com> Message-ID: <1208398278.5990.38.camel@edoras> Try running memtest before anything else. That may isolate the problem and save a heap of work. Regards, Tim On Wed, 2008-04-16 at 10:32 -0500, Stephen Woodbridge wrote: > Hi Antti, > > I have heard back from 3-4 other users of 64bit Fedora and none of them > are having problems like I had. The symptoms I was having are so basic > that I am beginning to think that they may be hardware memory? related. > > We are wiping that system and installing Debian Etch 64bit on it and > seeing how that plays. I have been running Debian Sarge on a 64bit dual > Xeon server for 2 years and have had no problems with 64bit apps or with > compiling and building any of the GIS stack that I use. If we still have > problems, then I think we can be assured it is hardware. If we don't. > I'm not sure what that tells us, but I will probably stick with Debian > on this box because I have work to do on it and don't have time to > trouble issues like this. > > I hope this helps, > -Steve > > > > Roppola, Antti - BRS wrote: > > Hi all, > > > > This is pretty timely as we are scoping out new servers and up 'til > > now I have conciously avoided 64 bit deployments. The abundance of > > 64 bit platforms seems to have made 64 bit less boutique and less risky. > > > > Antti > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nahum Castro > > Sent: Wednesday, 16 April 2008 11:54 AM > > To: Stephen Woodbridge; mapserver-users > > Subject: Re: [mapserver-users] Any Fedora fc8 64 bit mapserver users out there? > > > > > > --- Stephen Woodbridge > > escribi?: > > > >> Hi, > >> > >> If you are a Fedora fc8 64 bit mapserver user (or close to that), can > >> you please contact me off list. I'm having mapserver runtime issues > >> and just need to compare notes and see what your experiences have > >> been. > >> > >> Many thanks in advance, > >> -Steve Woodbridge > >> > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > I have mapserver installed on fc8 x86_64 with no problems. > > I compilled all this software gd, proj4, geos, postgresql, postgis, gdal and grass, then mapserver with php-mapscript and ogc services. > > > > All other software was from fedora repositories. > > > > I have 2 installations one with intel and the other with AMD both fc8 64. > > > > Nahum. > > > > > > > > -- > > Nahum Castro > > Leon, Guanajuato, Mexico > > http://www.leon-linux.com > > e-mail: pedro1_72 [en] yahoo [punto] com > > > > > > ____________________________________________________________________________________ > > ?Capacidad ilimitada de almacenamiento en tu correo! > > No te preocupes m?s por el espacio de tu cuenta con Correo Yahoo!: > > http://correo.yahoo.com.mx/ > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > ------IMPORTANT - This message has been issued by The Department of Agriculture, Fisheries and Forestry (DAFF). The information transmitted is for the use of the intended recipient only and may contain confidential and/or legally privileged material. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. > > > > Any reproduction, publication, communication, re-transmission, disclosure, dissemination or other use of the information contained in this e-mail by persons or entities other than the intended recipient is prohibited. The taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error please notify the sender and delete all copies of this transmission together with any attachments. If you have received this e-mail as part of a valid mailing list and no longer want to receive a message such as this one advise the sender by return e-mail accordingly. Only e-mail correspondence which includes this footer, has been authorised by DAFF > > ------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Wed Apr 16 20:59:40 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 16 Apr 2008 22:59:40 -0500 Subject: [mapserver-users] Any Fedora fc8 64 bit mapserver users out there? [SEC=UNCLASSIFIED] In-Reply-To: <1208398278.5990.38.camel@edoras> References: <61C2DEA055980B418D063F8646FCAEFC0287698C@ACT001CL03EX03.agdaff.gov.au> <48061C1D.3010907@swoodbridge.com> <1208398278.5990.38.camel@edoras> Message-ID: <4806CB2C.5030805@swoodbridge.com> Thank you for the suggestion. As it turns out, they loaded Debian Etch 64bit and I got the full stack of tools loaded and built with only one problem, not with the OS/HW. So I don't know it the sysadmin check other stuff on the box or switched hardware or not. Frank W posited that the problem was a mismatch of header files and libraries around the librx. I thought it might be more global because of the GD SEGV I ran into, but that followed me to Debian. It turns out the that GD SEGV is a mapserver bug and the dev team is chasing that. So, I'm inclined to agree with Frank's assessment at this point. Regardless, I'm happy and things are running smoothly again and the client is happy. Life is good! Thanks, -Steve Tim Bowden wrote: > Try running memtest before anything else. That may isolate the problem > and save a heap of work. > > Regards, > Tim > On Wed, 2008-04-16 at 10:32 -0500, Stephen Woodbridge wrote: >> Hi Antti, >> >> I have heard back from 3-4 other users of 64bit Fedora and none of them >> are having problems like I had. The symptoms I was having are so basic >> that I am beginning to think that they may be hardware memory? related. >> >> We are wiping that system and installing Debian Etch 64bit on it and >> seeing how that plays. I have been running Debian Sarge on a 64bit dual >> Xeon server for 2 years and have had no problems with 64bit apps or with >> compiling and building any of the GIS stack that I use. If we still have >> problems, then I think we can be assured it is hardware. If we don't. >> I'm not sure what that tells us, but I will probably stick with Debian >> on this box because I have work to do on it and don't have time to >> trouble issues like this. >> >> I hope this helps, >> -Steve >> >> >> >> Roppola, Antti - BRS wrote: >>> Hi all, >>> >>> This is pretty timely as we are scoping out new servers and up 'til >>> now I have conciously avoided 64 bit deployments. The abundance of >>> 64 bit platforms seems to have made 64 bit less boutique and less risky. >>> >>> Antti >>> >>> -----Original Message----- >>> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nahum Castro >>> Sent: Wednesday, 16 April 2008 11:54 AM >>> To: Stephen Woodbridge; mapserver-users >>> Subject: Re: [mapserver-users] Any Fedora fc8 64 bit mapserver users out there? >>> >>> >>> --- Stephen Woodbridge >>> escribi?: >>> >>>> Hi, >>>> >>>> If you are a Fedora fc8 64 bit mapserver user (or close to that), can >>>> you please contact me off list. I'm having mapserver runtime issues >>>> and just need to compare notes and see what your experiences have >>>> been. >>>> >>>> Many thanks in advance, >>>> -Steve Woodbridge >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> I have mapserver installed on fc8 x86_64 with no problems. >>> I compilled all this software gd, proj4, geos, postgresql, postgis, gdal and grass, then mapserver with php-mapscript and ogc services. >>> >>> All other software was from fedora repositories. >>> >>> I have 2 installations one with intel and the other with AMD both fc8 64. >>> >>> Nahum. >>> >>> >>> >>> -- >>> Nahum Castro >>> Leon, Guanajuato, Mexico >>> http://www.leon-linux.com >>> e-mail: pedro1_72 [en] yahoo [punto] com >>> >>> >>> ____________________________________________________________________________________ >>> ?Capacidad ilimitada de almacenamiento en tu correo! >>> No te preocupes m?s por el espacio de tu cuenta con Correo Yahoo!: >>> http://correo.yahoo.com.mx/ >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> ------IMPORTANT - This message has been issued by The Department of Agriculture, Fisheries and Forestry (DAFF). The information transmitted is for the use of the intended recipient only and may contain confidential and/or legally privileged material. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. >>> >>> Any reproduction, publication, communication, re-transmission, disclosure, dissemination or other use of the information contained in this e-mail by persons or entities other than the intended recipient is prohibited. The taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error please notify the sender and delete all copies of this transmission together with any attachments. If you have received this e-mail as part of a valid mailing list and no longer want to receive a message such as this one advise the sender by return e-mail accordingly. Only e-mail correspondence which includes this footer, has been authorised by DAFF >>> ------ >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > From sjur.ringheim.lid at imr.no Wed Apr 16 23:38:30 2008 From: sjur.ringheim.lid at imr.no (Lid Sjur Ringheim) Date: Thu, 17 Apr 2008 08:38:30 +0200 Subject: [mapserver-users] Detect and stop click on custom div inside map div Message-ID: <9A503C519418FD42A9DC9460E4A1B8780297FE3B@post2.imr.no> Hello all, Im at the moment experimenting with OpenLayers and trying to create a
element on top of the map that should contain a legend of the layers in the map. I'd like to be able to make the div "disappear" the same way as the default layerswitcher and overview map controls by clicking on a image, but when I make a function to do this the click is passed on to the map object also. And as I got click on map layers set to create a GetFeatureInfo request to the server that is also done when clicking inside the custom div. What im trying to accomplish is something like this http://www.mareano.no/kart/viewer.php?language=en where you can click on the arrow images to hide the div's. That site is a modified version of the default ArcIMS site so im not able to reuse to much in the new site. You can see how the site im working on are looking at the moment here http://maps.nodc.no/sonate/ (the arrows is not put on yet, but clicking on the "Legend" text should make the div disappear (in IE)). The code to create the legend dynamically is this: function addLegend(){ //oppdaterer legend ved f?rst ? fjerne den for s? ? lage en ny. var mapdiv = document.getElementById('map'); var legend = document.getElementById("legend"); var span = document.createElement("span"); mapdiv.removeChild(legend); legend = document.createElement('div'); mapdiv.insertBefore(legend,mapdiv.childNodes[0]); legend.appendChild(span); span.innerHTML = "Legend"; map.events.register('click',legend,hideDiv); if(ie){ span.divid = "legend"; span.unselectable = "on"; }else{ } span.className = "olControlNoSelect"; legend.setAttribute("id","legend"); for(var i = 0; i From sjur.ringheim.lid at imr.no Wed Apr 16 23:42:13 2008 From: sjur.ringheim.lid at imr.no (Lid Sjur Ringheim) Date: Thu, 17 Apr 2008 08:42:13 +0200 Subject: [mapserver-users] Detect and stop click on custom div inside map div Message-ID: <9A503C519418FD42A9DC9460E4A1B8780297FE3E@post2.imr.no> This was sent to the wrong list, if someone is moderating the list please don't forward it. Sorry for the inconvenience Sjur Ringheim Lid -------------- next part -------------- An HTML attachment was scrubbed... URL: From armin.burger at gmx.net Thu Apr 17 00:36:57 2008 From: armin.burger at gmx.net (Armin Burger) Date: Thu, 17 Apr 2008 09:36:57 +0200 Subject: [mapserver-users] GetCapabilities for a specific layer, not the entire mapfile? In-Reply-To: <48067968.8000405@nsidc.org> References: <48067968.8000405@nsidc.org> Message-ID: <20080417073657.191010@gmx.net> John I don't know if it is an option for you, but it would be quite easy doing this with Mapscript, using the functionality of OWSrequest. Either using an 'empty' map file and adding to it the desired layer from the main map file with Mapscript 'addLayer()' method. This works with all types of Mapscript. Or using the main map file and deleting all layers but the requested one with 'removeLayer()'. This does not work with PHP Mapscript since this method does not exist there. Using Apache rewrite rules one can also create nicer URLS, like http://host/wms/layer1 or http://host/wms/layer2 I have not noticed so far big differences in speed between Mapscript and CGI, maybe under higher load this could change slightly. Armin -------- Original-Nachricht -------- > Datum: Wed, 16 Apr 2008 23:10:48 +0100 > Von: John Maurer > An: mapserver-users at lists.osgeo.org > Betreff: [mapserver-users] GetCapabilities for a specific layer, not the entire mapfile? > Hi mapserver-users, > What is the best way to provide a generic/flexible WMS-related URL for a > specific layer within my MapServer mapfile? I want to include this kind > of thing in our DIF & FGDC metadata so that users know about a WMS for a > given data set. If I provide a GetCapabilities request, this advertises > *all* of the layers in my mapfile, which represent a collection of > multiple data sets, most of which will be unrelated to the data set in > the metadata. On the other hand, if I provide a GetMap request this > allows me to specify the layer intended for a particular data set, but > it limits the output possibilities to a specific srs, format, width, > height, and bbox. A GetCapabilities for a specific layer would be akin > to what I need, but I don't think that's how it works. This is my > quandary and I'm hoping somebody has a solution to this kind of thing?? > Thanks! > Cheers, > John Maurer > > -- > John Maurer > Web/Database Applications Engineer > National Snow and Ice Data Center (NSIDC) > University of Colorado at Boulder > http://cires.colorado.edu/~maurerj > ------------------------------------ > "Without geography, you're nowhere!" > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Psssst! Schon vom neuen GMX MultiMessenger geh?rt? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger From hanscastorp76 at yahoo.es Thu Apr 17 01:02:05 2008 From: hanscastorp76 at yahoo.es (Hans Castorp) Date: Thu, 17 Apr 2008 01:02:05 -0700 (PDT) Subject: [mapserver-users] Postgis and Mapserver Message-ID: <860105.57845.qm@web25907.mail.ukl.yahoo.com> Hi to all, In the past days I have been answering some questions about it but, by now, I haven?t achieved my goal. I will try to explain what I have and what I want (need, in fact): I?m displaying some cartography: lines and polygons from shape files and points from a Postgis table (without filtering). At the same time, I have a form to query the postgis table applying some filters. I am making these queries using PHP and SQL in the usual way. I don?t use mapscript queryByAttibutes, because SQL queries are more flexible and powerful (I think). Due to these facts what I have is: on one side, a map showing all the points (with no filter) and, on the other side, a filtered list of these same points. What I?m looking to do is: - Zoom to all my selection, changing simbology in order to show some points with the default simbology (map file) and others (the result of my selection) with a special simbology. - Zoom to one chosen point in my selection. By now, I?m doing it using zoomToExtents, passing as parameters x and y of the point (retrieved in the sql query). This works fine but I need to change the simbology of the selected point in order to make it clearly visible between the others. What I?m trying in order to change simbology for selected points is something like this: $oMap = ms_newMapObj($szMapFile); $oLayer = $oMap->getLayerByName("EMPRESAS"); $oClass = $oLayer->getClass(0); $oEstilo = $oClass->getStyle(0); $oLayer->setFilter($sql); $oEstilo->set("symbolname", "MARKER_EMPRESA_ALT"); But I have no results (at least no errors, too J) Some help will be welcomed. Thanks in advance to everyone. Hans Castorp __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ?gratis! Reg?strate ya - http://correo.yahoo.es -------------- next part -------------- An HTML attachment was scrubbed... URL: From guillaume.sueur at neogeo-online.net Thu Apr 17 00:46:33 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Thu, 17 Apr 2008 09:46:33 +0200 Subject: [mapserver-users] GetCapabilities for a specific layer, not the entire mapfile? In-Reply-To: <48067968.8000405@nsidc.org> References: <48067968.8000405@nsidc.org> Message-ID: <48070059.7070806@neogeo-online.net> Hi John, Maybe you can also filter the getCapabilities on the server side : make a wrapper which will get called by the client (for instance : www.server.net/myOwnCapabilities?layer=layer_name&map=map.map the wrapper will perform the standard getCapabilities on http://localhost/cgi-bin/mapserv and then manipulate the XML doc to erase all the layers nodes not requested by the user. If it suits your need, you can go this way. Hope that helps Guillaume John Maurer a ?crit : > Hi mapserver-users, > What is the best way to provide a generic/flexible WMS-related URL for a > specific layer within my MapServer mapfile? I want to include this kind > of thing in our DIF & FGDC metadata so that users know about a WMS for a > given data set. If I provide a GetCapabilities request, this advertises > *all* of the layers in my mapfile, which represent a collection of > multiple data sets, most of which will be unrelated to the data set in > the metadata. On the other hand, if I provide a GetMap request this > allows me to specify the layer intended for a particular data set, but > it limits the output possibilities to a specific srs, format, width, > height, and bbox. A GetCapabilities for a specific layer would be akin > to what I need, but I don't think that's how it works. This is my > quandary and I'm hoping somebody has a solution to this kind of thing?? > Thanks! > Cheers, > John Maurer > -- From urry at swemel.ru Thu Apr 17 01:57:34 2008 From: urry at swemel.ru (=?windows-1251?Q?=C1=F3=F5=E0=F0=EA=E8=ED_=DE=F0=E8=E9?=) Date: Thu, 17 Apr 2008 12:57:34 +0400 Subject: [mapserver-users] Building mapserver on Solaris 10. Message-ID: <4BAED819D0316147BDF49D57CCF1DCEB09D067@S-FILES> Hello again! As decsribed in previous mail, I have Solaris 10 sparc. GDAL was maked smoosly witout curl & "make install"-ed in /usr/local/. My LD_LIBRARY_PATH and LD_LIBRARY_PATH_64 contains "..:/usr/local/lib:..." substrings libgdal.so libgdal.so.1 links to libgdal.so.1.12.0 are really in /usr/local/lib and gdal-config is in /usr/local/bin I started configure: configure --with-geotiff=internal --with-png=internal --with-jpeg=internal --with-gif=internal --without-curl --prefix /opt/mapserver --with-proj=/usr/local --with-gdal=/usr/local/bin/gdal-config make finished without errors. make install advised just to copy mapserver to destination- this was done. Tutorial exercises works well until 1.5 - no picture was shown, but such message was received: msDrawMap(): Image handling error. Failed to draw layer named 'modis'. msDrawRasterLayerLow(): General error message. Attempt to render raster layer to IMAGEMODE RGB or RGBA but without GDAL available. 24bit output requires GDAL. Than I even try to copy libgdal* to the same catalog with mapserver executable- no effecs! What im doing wrong? I have no mind more! Sincerely Yours Buharkin Y.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Thu Apr 17 02:03:44 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 17 Apr 2008 12:03:44 +0300 Subject: [mapserver-users] WMS cascading In-Reply-To: <8d09169d0804161614u6c045c6ck223b009e4902d11b@mail.gmail.com> Message-ID: Hi, When you cascade WMS services the LAYER is defining the remote service. The result of using "wms_srs" "EPSG:23033" in the nasa layer metadata means that your Mapserver is using EPSG:23033 when sending requests to wms.jpl.nasa.gov. That is not what you want to do. Use EPSG:4326 at layer level. The output projections you want to have are described at MAP level WEB - METADATA section, that is the place to insert EPSG:23033. At least this is how I understand the how-to documents "WMS clients with Mapserver" and "WMS servers with Mapserver". Regards, -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Luca Casagrande L?hetetty: 17. huhtikuuta 2008 2:14 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] WMS cascading Hello everybody, I am trying to serve, with my wms server, a layer coming from NASA WMS. The source projection is 4326 and I need to reproject to 23033; inside the metada I put the wms_srs value, but it's not working..I just just a white image. Any idea? Thanks Luca LAYER NAME "nasa" TYPE RASTER STATUS ON CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?" CONNECTIONTYPE WMS PROJECTION "init=epsg:4326" END METADATA "DESCRIPTION" "JPL Global Mosaic (WMS)" "wms_name" "global_mosaic_base" "wms_style" "visual" "wms_server_version" "1.1.1" "wms_format" "image/jpeg" "ows_title" "jpl_wms_global_mosaic" "wms_srs" "EPSG:23033" END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From crschmidt at metacarta.com Thu Apr 17 03:35:57 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Thu, 17 Apr 2008 06:35:57 -0400 Subject: [mapserver-users] Detect and stop click on custom div inside map div In-Reply-To: <9A503C519418FD42A9DC9460E4A1B8780297FE3B@post2.imr.no> References: <9A503C519418FD42A9DC9460E4A1B8780297FE3B@post2.imr.no> Message-ID: <20080417103557.GC10636@metacarta.com> On Thu, Apr 17, 2008 at 08:38:30AM +0200, Lid Sjur Ringheim wrote: > Hello all, You should resend this question to the OpenLayers mailing list. It's not on topic for the MapServer mailing list. > Im at the moment experimenting with OpenLayers and trying to create a
element on top of the map that should contain a legend of the layers in the map. Regards, -- Christopher Schmidt MetaCarta From schroeter at netgis.de Thu Apr 17 04:37:59 2008 From: schroeter at netgis.de (schroeter at netgis.de) Date: Thu, 17 Apr 2008 13:37:59 +0200 Subject: [mapserver-users] change AGG Driver via mapscript References: <001301c89ef2$bb1d4130$08b2a8c0@SVEN> Message-ID: <001f01c8a07f$823d8620$08b2a8c0@SVEN> Hi, I solved my problem: I set a second outputformat in my mapfile: OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" TRANSPARENT ON END and change it via mapscript with $map->selectOutputFormat("image/png"); greetings Sven ----- Original Message ----- From: To: Sent: Tuesday, April 15, 2008 2:17 PM Subject: [mapserver-users] change AGG Driver via mapscript > Hallo, > > the standard-output-format in my mapfile is AGG_JPEG: > > OUTPUTFORMAT > NAME "AGG_JPEG" > DRIVER AGG/JPEG > IMAGEMODE RGBA > FORMATOPTION "QUALITY=88" > END > > I try to change the outputformat via mapscript to get a transparent > 256-color-png: > > $map->outputformat->set("name", "png"); > $map->outputformat->set('driver','GD/PNG'); > $map->outputformat->set('transparent',MS_ON); > > this works fine, but I get a transparent 24 bit png > > if I try to set the imagemode: > > $map->outputformat->set("imagemode", MS_IMAGEMODE_PC256); > > I get no picture but this warning: > PHP Warning: [MapServer Error]: msImageCreateAGG(): AGG driver only > supports RGB or RGBA pixel models > > how can I disable AGG? > > thanks Sven > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From dmorissette at mapgears.com Thu Apr 17 05:20:01 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 17 Apr 2008 08:20:01 -0400 Subject: [mapserver-users] GetCapabilities for a specific layer, not the entire mapfile? In-Reply-To: <20080417073657.191010@gmx.net> References: <48067968.8000405@nsidc.org> <20080417073657.191010@gmx.net> Message-ID: <48074071.1020204@mapgears.com> Armin Burger wrote: > > [...] Or using the main map file and deleting all layers but the requested one with 'removeLayer()'. This does not work with PHP Mapscript since this method does not exist there. > The removeLayer() method does not exist in PHP MapScript, but you can achieve the same result by using the DELETED status on the layers to hide from the GetCapabilities: $layer->set("status", MS_DELETE); Daniel -- Daniel Morissette http://www.mapgears.com/ From luca.casagrande at gmail.com Thu Apr 17 06:00:57 2008 From: luca.casagrande at gmail.com (Luca Casagrande) Date: Thu, 17 Apr 2008 15:00:57 +0200 Subject: [mapserver-users] WMS cascading In-Reply-To: <25de2c7c0804161619y37afeadbqbbb9afd56e36529d@mail.gmail.com> References: <8d09169d0804161614u6c045c6ck223b009e4902d11b@mail.gmail.com> <25de2c7c0804161619y37afeadbqbbb9afd56e36529d@mail.gmail.com> Message-ID: <200804171500.57446.luca.casagrande@gmail.com> On Thursday 17 April 2008 01:19:29 TC Haddad wrote: > Luca, > > you must specify 23033 in the MAP projection definition, and 4326 in > both parts of the LAYER /metadata definition. Then Mapserver will know > to reproject from one to the other. > Thanks for your answer, right now I can use the layer inside Qgis. Now I have noticed a strange things: if I make a request with WIDTH:256 HEIGHT: 256, it draws a white image. With 512x52 all is fine. Am I missing some other settings? Thanks Luca From crschmidt at metacarta.com Thu Apr 17 06:04:22 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Thu, 17 Apr 2008 09:04:22 -0400 Subject: [mapserver-users] WMS cascading In-Reply-To: <200804171500.57446.luca.casagrande@gmail.com> References: <8d09169d0804161614u6c045c6ck223b009e4902d11b@mail.gmail.com> <25de2c7c0804161619y37afeadbqbbb9afd56e36529d@mail.gmail.com> <200804171500.57446.luca.casagrande@gmail.com> Message-ID: <20080417130421.GC18541@metacarta.com> On Thu, Apr 17, 2008 at 03:00:57PM +0200, Luca Casagrande wrote: > On Thursday 17 April 2008 01:19:29 TC Haddad wrote: > > Luca, > > > > you must specify 23033 in the MAP projection definition, and 4326 in > > both parts of the LAYER /metadata definition. Then Mapserver will know > > to reproject from one to the other. > > > > > Thanks for your answer, right now I can use the layer inside Qgis. > Now I have noticed a strange things: if I make a request with > WIDTH:256 HEIGHT: 256, it draws a white image. With 512x52 all is fine. > > Am I missing some other settings? If you're using the NASA JPL WMS, I believe that this is an expected limitation of that WMS server... at least, we've had that problem in OpenLayers. Regards, -- Christopher Schmidt MetaCarta From maurerj at nsidc.org Thu Apr 17 08:08:10 2008 From: maurerj at nsidc.org (John Maurer) Date: Thu, 17 Apr 2008 16:08:10 +0100 Subject: [mapserver-users] GetCapabilities for a specific layer, not the entire mapfile? In-Reply-To: <480752BA.7090607@neogeo-online.net> References: <48067968.8000405@nsidc.org> <48070059.7070806@neogeo-online.net> <4807521F.50605@nsidc.org> <480752BA.7090607@neogeo-online.net> Message-ID: <480767DA.8030404@nsidc.org> Thanks, Guillaume! I've decided to implement a small slant on what you suggested. I'm going to modify my CGI to look for a "layers=layer_name" parameter as part of an otherwise normal GetCapabilities request, as in: mapserver.pl?service=WMS&request=GetCapabilities&layers=layer_name1,layer_name2 But otherwise it will do as you suggest: strip the specified layer(s) from the larger GetCapabilities request and pass this along to the end user so that only these layers are presented. I wish that the WMS spec had provided this capability to begin with! Maybe a good idea for the next release from OGC (1.1.2?)... Thanks again! Cheers, John Maurer http://nsidc.org/data/atlas/ Guillaume Sueur wrote: > Your very welcome ! > > I can send you my own proxy function in Python if you want > > regards, > > Guillaume > > John Maurer a ?crit : >> Hi Guillaume, >> Thank you for your suggestion. I still think it's unfortunate there >> isn't something built into the existing OGC specifications to handle >> this sort of thing. I'm weighing my various options still and will >> see what's best. Your suggestion seems like the most straightforward >> to implement so far. I appreciate you spending the time to e-mail me! >> Cheers, >> John Maurer >> >> Guillaume Sueur wrote: >>> Hi John, >>> >>> Maybe you can also filter the getCapabilities on the server side : >>> make a wrapper which will get called by the client (for instance : >>> www.server.net/myOwnCapabilities?layer=layer_name&map=map.map >>> >>> the wrapper will perform the standard getCapabilities on >>> http://localhost/cgi-bin/mapserv and then manipulate the XML doc to >>> erase all the layers nodes not requested by the user. >>> >>> If it suits your need, you can go this way. >>> >>> Hope that helps >>> >>> Guillaume >>> >>> John Maurer a ?crit : >>>> Hi mapserver-users, >>>> What is the best way to provide a generic/flexible WMS-related URL >>>> for a specific layer within my MapServer mapfile? I want to include >>>> this kind of thing in our DIF & FGDC metadata so that users know >>>> about a WMS for a given data set. If I provide a GetCapabilities >>>> request, this advertises *all* of the layers in my mapfile, which >>>> represent a collection of multiple data sets, most of which will be >>>> unrelated to the data set in the metadata. On the other hand, if I >>>> provide a GetMap request this allows me to specify the layer >>>> intended for a particular data set, but it limits the output >>>> possibilities to a specific srs, format, width, height, and bbox. A >>>> GetCapabilities for a specific layer would be akin to what I need, >>>> but I don't think that's how it works. This is my quandary and I'm >>>> hoping somebody has a solution to this kind of thing?? >>>> Thanks! >>>> Cheers, >>>> John Maurer >>>> >>> >> > -- John Maurer Web/Database Applications Engineer National Snow and Ice Data Center (NSIDC) University of Colorado at Boulder http://cires.colorado.edu/~maurerj ------------------------------------ "Without geography, you're nowhere!" From mixon at waterstoneinc.com Thu Apr 17 08:51:08 2008 From: mixon at waterstoneinc.com (Brian Mixon) Date: Thu, 17 Apr 2008 11:51:08 -0400 Subject: [mapserver-users] MapServer v. 4.10.0 featureid problem Message-ID: <2B5C1E3669B09548B6CAEE16BD6C300ECD91A1@be25.exg3.exghost.com> Hello, I'm a MapServer newbie and am having trouble with a WFS v. 1.0.0 request. I'm trying to have all the features for a particular layer returned (which happens successfully) with the fid (feature id) included as well (does not happen). I've included the gml_featureid 'fid' tag in the layer's metadata section of the mapfile but only receive the following warning the the xml/gml response: I've searched and read the various tickets that claim this problem is fixed so I'm wondering what I'm doing wrong? Any information to point me in the right direction would be greatly appreciated. Regards, Brian Mixon -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at ec.gc.ca Thu Apr 17 09:11:04 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Thu, 17 Apr 2008 12:11:04 -0400 Subject: [mapserver-users] MapServer v. 4.10.0 featureid problem In-Reply-To: <2B5C1E3669B09548B6CAEE16BD6C300ECD91A1@be25.exg3.exghost.com> Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF237@ecburexch1.ontario.int.ec.gc.ca> Does the column/field "fid" exist in your data? ..Tom ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brian Mixon Sent: 17 April, 2008 11:51 AM To: mapserver-users at lists.osgeo.org Cc: Brenton Wonders; Russell Huff Subject: [mapserver-users] MapServer v. 4.10.0 featureid problem Hello, I'm a MapServer newbie and am having trouble with a WFS v. 1.0.0 request. I'm trying to have all the features for a particular layer returned (which happens successfully) with the fid (feature id) included as well (does not happen). I've included the gml_featureid 'fid' tag in the layer's metadata section of the mapfile but only receive the following warning the the xml/gml response: I've searched and read the various tickets that claim this problem is fixed so I'm wondering what I'm doing wrong? Any information to point me in the right direction would be greatly appreciated. Regards, Brian Mixon From mixon at waterstoneinc.com Thu Apr 17 09:23:52 2008 From: mixon at waterstoneinc.com (Brian Mixon) Date: Thu, 17 Apr 2008 12:23:52 -0400 Subject: [mapserver-users] MapServer v. 4.10.0 featureid problem In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF237@ecburexch1.ontario.int.ec.gc.ca> References: <2B5C1E3669B09548B6CAEE16BD6C300ECD91A1@be25.exg3.exghost.com> <2DC5CCA14756424BBBEE8B4B2E4A682F036CF237@ecburexch1.ontario.int.ec.gc.ca> Message-ID: <2B5C1E3669B09548B6CAEE16BD6C300ECD91D3@be25.exg3.exghost.com> Hi Tom, Yes, it does. It's an Arc field that is present in all our data. Thanks, Brian -----Original Message----- From: Kralidis,Tom [Burlington] [mailto:Tom.Kralidis at ec.gc.ca] Sent: Thursday, April 17, 2008 10:11 AM To: Brian Mixon; mapserver-users at lists.osgeo.org Cc: Brenton Wonders; Russell Huff Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem Does the column/field "fid" exist in your data? ..Tom ________________________________ From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brian Mixon Sent: 17 April, 2008 11:51 AM To: mapserver-users at lists.osgeo.org Cc: Brenton Wonders; Russell Huff Subject: [mapserver-users] MapServer v. 4.10.0 featureid problem Hello, I'm a MapServer newbie and am having trouble with a WFS v. 1.0.0 request. I'm trying to have all the features for a particular layer returned (which happens successfully) with the fid (feature id) included as well (does not happen). I've included the gml_featureid 'fid' tag in the layer's metadata section of the mapfile but only receive the following warning the the xml/gml response: I've searched and read the various tickets that claim this problem is fixed so I'm wondering what I'm doing wrong? Any information to point me in the right direction would be greatly appreciated. Regards, Brian Mixon From Tom.Kralidis at ec.gc.ca Thu Apr 17 09:51:01 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Thu, 17 Apr 2008 12:51:01 -0400 Subject: [mapserver-users] MapServer v. 4.10.0 featureid problem In-Reply-To: <2B5C1E3669B09548B6CAEE16BD6C300ECD91D3@be25.exg3.exghost.com> Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF23A@ecburexch1.ontario.int.ec.gc.ca> Hi Brian, What's your underlying data? If there's anyway you can package a small testcase, I can do a local test. ..Tom > -----Original Message----- > From: Brian Mixon [mailto:mixon at waterstoneinc.com] > Sent: 17 April, 2008 12:24 PM > To: Kralidis,Tom [Burlington]; mapserver-users at lists.osgeo.org > Cc: Brenton Wonders; Russell Huff > Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem > > Hi Tom, > > Yes, it does. It's an Arc field that is present in all our data. > > Thanks, > Brian > > -----Original Message----- > From: Kralidis,Tom [Burlington] [mailto:Tom.Kralidis at ec.gc.ca] > Sent: Thursday, April 17, 2008 10:11 AM > To: Brian Mixon; mapserver-users at lists.osgeo.org > Cc: Brenton Wonders; Russell Huff > Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem > > > Does the column/field "fid" exist in your data? > > ..Tom > > > > ________________________________ > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Brian Mixon > Sent: 17 April, 2008 11:51 AM > To: mapserver-users at lists.osgeo.org > Cc: Brenton Wonders; Russell Huff > Subject: [mapserver-users] MapServer v. 4.10.0 featureid problem > > > Hello, > > I'm a MapServer newbie and am having trouble with a WFS > v. 1.0.0 request. I'm trying to have all the features for a > particular layer returned (which happens successfully) with > the fid (feature id) included as well (does not happen). I've > included the gml_featureid 'fid' tag in the layer's metadata > section of the mapfile but only receive the > following warning the the xml/gml response: > > I've searched and read the various tickets that claim > this problem is fixed so I'm wondering what I'm doing wrong? > > Any information to point me in the right direction > would be greatly appreciated. > > Regards, > Brian Mixon > > > > From woodbri at swoodbridge.com Thu Apr 17 10:53:12 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 17 Apr 2008 12:53:12 -0500 Subject: [mapserver-users] MapServer v. 4.10.0 featureid problem In-Reply-To: <2B5C1E3669B09548B6CAEE16BD6C300ECD91D3@be25.exg3.exghost.com> References: <2B5C1E3669B09548B6CAEE16BD6C300ECD91A1@be25.exg3.exghost.com> <2DC5CCA14756424BBBEE8B4B2E4A682F036CF237@ecburexch1.ontario.int.ec.gc.ca> <2B5C1E3669B09548B6CAEE16BD6C300ECD91D3@be25.exg3.exghost.com> Message-ID: <48078E88.9010805@swoodbridge.com> Sorry to repeat the question, but does fid exist in your data? or is it really FID, mapserver is case sensitive and if you are using shapefiles if is probably FID but if you are using postGIS is would likely be fid. -Steve W Brian Mixon wrote: > Hi Tom, > > Yes, it does. It's an Arc field that is present in all our data. > > Thanks, > Brian > > -----Original Message----- > From: Kralidis,Tom [Burlington] [mailto:Tom.Kralidis at ec.gc.ca] > Sent: Thursday, April 17, 2008 10:11 AM > To: Brian Mixon; mapserver-users at lists.osgeo.org > Cc: Brenton Wonders; Russell Huff > Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem > > > Does the column/field "fid" exist in your data? > > ..Tom > > > > ________________________________ > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brian > Mixon > Sent: 17 April, 2008 11:51 AM > To: mapserver-users at lists.osgeo.org > Cc: Brenton Wonders; Russell Huff > Subject: [mapserver-users] MapServer v. 4.10.0 featureid problem > > > Hello, > > I'm a MapServer newbie and am having trouble with a WFS v. 1.0.0 > request. I'm trying to have all the features for a particular layer > returned (which happens successfully) with the fid (feature id) included > as well (does not happen). I've included the gml_featureid 'fid' tag in > the layer's metadata section of the mapfile but only receive the > following warning the the xml/gml response: > > I've searched and read the various tickets that claim this > problem is fixed so I'm wondering what I'm doing wrong? > > Any information to point me in the right direction would be > greatly appreciated. > > Regards, > Brian Mixon > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From mixon at waterstoneinc.com Thu Apr 17 10:06:41 2008 From: mixon at waterstoneinc.com (Brian Mixon) Date: Thu, 17 Apr 2008 13:06:41 -0400 Subject: [mapserver-users] MapServer v. 4.10.0 featureid problem In-Reply-To: <48078E88.9010805@swoodbridge.com> References: <2B5C1E3669B09548B6CAEE16BD6C300ECD91A1@be25.exg3.exghost.com> <2DC5CCA14756424BBBEE8B4B2E4A682F036CF237@ecburexch1.ontario.int.ec.gc.ca> <2B5C1E3669B09548B6CAEE16BD6C300ECD91D3@be25.exg3.exghost.com> <48078E88.9010805@swoodbridge.com> Message-ID: <2B5C1E3669B09548B6CAEE16BD6C300ECD9219@be25.exg3.exghost.com> No problem. We are using shapefiles and have tried both gml_featureid 'fid' and gml_featureid 'FID' in the metadata for the layer in the map file. We still get the or I'm not sure if that gml_featureid metadata tag is really necessary anyway. I think it is a fix for an earlier bug??? Thanks, Brian -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: Thursday, April 17, 2008 11:53 AM To: Brian Mixon Cc: Kralidis,Tom [Burlington]; mapserver-users at lists.osgeo.org; Brenton Wonders; Russell Huff Subject: Re: [mapserver-users] MapServer v. 4.10.0 featureid problem Sorry to repeat the question, but does fid exist in your data? or is it really FID, mapserver is case sensitive and if you are using shapefiles if is probably FID but if you are using postGIS is would likely be fid. -Steve W Brian Mixon wrote: > Hi Tom, > > Yes, it does. It's an Arc field that is present in all our data. > > Thanks, > Brian > > -----Original Message----- > From: Kralidis,Tom [Burlington] [mailto:Tom.Kralidis at ec.gc.ca] > Sent: Thursday, April 17, 2008 10:11 AM > To: Brian Mixon; mapserver-users at lists.osgeo.org > Cc: Brenton Wonders; Russell Huff > Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem > > > Does the column/field "fid" exist in your data? > > ..Tom > > > > ________________________________ > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brian > Mixon > Sent: 17 April, 2008 11:51 AM > To: mapserver-users at lists.osgeo.org > Cc: Brenton Wonders; Russell Huff > Subject: [mapserver-users] MapServer v. 4.10.0 featureid problem > > > Hello, > > I'm a MapServer newbie and am having trouble with a WFS v. 1.0.0 > request. I'm trying to have all the features for a particular layer > returned (which happens successfully) with the fid (feature id) > included as well (does not happen). I've included the gml_featureid > 'fid' tag in the layer's metadata section of the mapfile but only receive the > following warning the the xml/gml response: > > I've searched and read the various tickets that claim this problem is > fixed so I'm wondering what I'm doing wrong? > > Any information to point me in the right direction would be greatly > appreciated. > > Regards, > Brian Mixon > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From mixon at waterstoneinc.com Thu Apr 17 10:33:52 2008 From: mixon at waterstoneinc.com (Brian Mixon) Date: Thu, 17 Apr 2008 13:33:52 -0400 Subject: [mapserver-users] MapServer v. 4.10.0 featureid problem In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF23A@ecburexch1.ontario.int.ec.gc.ca> References: <2B5C1E3669B09548B6CAEE16BD6C300ECD91D3@be25.exg3.exghost.com> <2DC5CCA14756424BBBEE8B4B2E4A682F036CF23A@ecburexch1.ontario.int.ec.gc.ca> Message-ID: <2B5C1E3669B09548B6CAEE16BD6C300ECD9252@be25.exg3.exghost.com> Tom, As soon as the Brenton on this list gets in to work we'll try to put something together for you. I'm working remotely and need his GIS knowledge to get something for you. Brian -----Original Message----- From: Kralidis,Tom [Burlington] [mailto:Tom.Kralidis at ec.gc.ca] Sent: Thursday, April 17, 2008 10:51 AM To: Brian Mixon; mapserver-users at lists.osgeo.org Cc: Brenton Wonders; Russell Huff Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem Hi Brian, What's your underlying data? If there's anyway you can package a small testcase, I can do a local test. ..Tom > -----Original Message----- > From: Brian Mixon [mailto:mixon at waterstoneinc.com] > Sent: 17 April, 2008 12:24 PM > To: Kralidis,Tom [Burlington]; mapserver-users at lists.osgeo.org > Cc: Brenton Wonders; Russell Huff > Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem > > Hi Tom, > > Yes, it does. It's an Arc field that is present in all our data. > > Thanks, > Brian > > -----Original Message----- > From: Kralidis,Tom [Burlington] [mailto:Tom.Kralidis at ec.gc.ca] > Sent: Thursday, April 17, 2008 10:11 AM > To: Brian Mixon; mapserver-users at lists.osgeo.org > Cc: Brenton Wonders; Russell Huff > Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem > > > Does the column/field "fid" exist in your data? > > ..Tom > > > > ________________________________ > > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brian > Mixon > Sent: 17 April, 2008 11:51 AM > To: mapserver-users at lists.osgeo.org > Cc: Brenton Wonders; Russell Huff > Subject: [mapserver-users] MapServer v. 4.10.0 featureid problem > > > Hello, > > I'm a MapServer newbie and am having trouble with a WFS v. 1.0.0 > request. I'm trying to have all the features for a particular layer > returned (which happens successfully) with the fid (feature id) > included as well (does not happen). I've included the gml_featureid > 'fid' tag in the layer's metadata section of the mapfile but only > receive the > following warning the the xml/gml response: > > I've searched and read the various tickets that claim this problem is > fixed so I'm wondering what I'm doing wrong? > > Any information to point me in the right direction would be greatly > appreciated. > > Regards, > Brian Mixon > > > > From armin.burger at gmx.net Thu Apr 17 10:52:40 2008 From: armin.burger at gmx.net (Armin Burger) Date: Thu, 17 Apr 2008 19:52:40 +0200 Subject: [mapserver-users] GetCapabilities for a specific layer, not the entire mapfile? In-Reply-To: <48074071.1020204@mapgears.com> References: <48067968.8000405@nsidc.org> <20080417073657.191010@gmx.net> <48074071.1020204@mapgears.com> Message-ID: <48078E68.4060700@gmx.net> On 17/04/2008 14:20, Daniel Morissette wrote: > Armin Burger wrote: >> >> [...] Or using the main map file and deleting all layers but the >> requested one with 'removeLayer()'. This does not work with PHP >> Mapscript since this method does not exist there. > > The removeLayer() method does not exist in PHP MapScript, but you can > achieve the same result by using the DELETED status on the layers to > hide from the GetCapabilities: > > $layer->set("status", MS_DELETE); > > Daniel This never worked for me. The only effect I noticed so far when setting a layer's status to MS_DELETE was that it was not included in the map when I write it out to a file with $map->save(). But these layers are still listed in the getCapabilities response, they are still existing for the $map->getAllLayerNames() method and in the indexes of existing layers. In Python Mapscript the removeLayer function exists and works. Armin From dmorissette at mapgears.com Thu Apr 17 11:01:51 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 17 Apr 2008 14:01:51 -0400 Subject: [mapserver-users] GetCapabilities for a specific layer, not the entire mapfile? In-Reply-To: <48078E68.4060700@gmx.net> References: <48067968.8000405@nsidc.org> <20080417073657.191010@gmx.net> <48074071.1020204@mapgears.com> <48078E68.4060700@gmx.net> Message-ID: <4807908F.7090504@mapgears.com> Armin Burger wrote: > > This never worked for me. The only effect I noticed so far when setting > a layer's status to MS_DELETE was that it was not included in the map > when I write it out to a file with $map->save(). > > But these layers are still listed in the getCapabilities response, I just checked the code and you're right (I was wrong). I think this is a bug, the WMS/WFS/WCS GetCapabilities functions should not list layers with status MS_DELETE. I have filed a ticket about this: http://trac.osgeo.org/mapserver/ticket/2582#preview Daniel -- Daniel Morissette http://www.mapgears.com/ From Jacob.Delfos at maunsell.com Thu Apr 17 20:54:42 2008 From: Jacob.Delfos at maunsell.com (Delfos, Jacob) Date: Fri, 18 Apr 2008 11:54:42 +0800 Subject: [mapserver-users] MapServer v. 4.10.0 featureid problem In-Reply-To: <2B5C1E3669B09548B6CAEE16BD6C300ECD9252@be25.exg3.exghost.com> Message-ID: <4997F456680DAD4DA1E042C40C46361101BC8506@auper1ex002.au.aecomnet.com> Hi Guys, I'm no expert on WFS, but I do know ArcGIS. The FID field is not really an attribute. It is more like an internal ESRI unique row ID (which gets updated after edits to be sequential). If you open up the attributes in another application (if you use shapefiles, open up the DBF in OpenOffice Calc or Excel), then you will find there is no FID field. Within ArcGIS, however, the FID field is presented as if it were a normal attribute. Hope this helps, Jacob > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Brian Mixon > Sent: 18 April 2008 01:34 > To: Kralidis,Tom [Burlington]; mapserver-users at lists.osgeo.org > Cc: Brenton Wonders; Russell Huff > Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem > > Tom, > > As soon as the Brenton on this list gets in to work we'll try to put > something together for you. I'm working remotely and need his GIS > knowledge to get something for you. > > Brian > > -----Original Message----- > From: Kralidis,Tom [Burlington] [mailto:Tom.Kralidis at ec.gc.ca] > Sent: Thursday, April 17, 2008 10:51 AM > To: Brian Mixon; mapserver-users at lists.osgeo.org > Cc: Brenton Wonders; Russell Huff > Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem > > > Hi Brian, > > What's your underlying data? If there's anyway you can > package a small > testcase, I can do a local test. > > ..Tom > > > > -----Original Message----- > > From: Brian Mixon [mailto:mixon at waterstoneinc.com] > > Sent: 17 April, 2008 12:24 PM > > To: Kralidis,Tom [Burlington]; mapserver-users at lists.osgeo.org > > Cc: Brenton Wonders; Russell Huff > > Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem > > > > Hi Tom, > > > > Yes, it does. It's an Arc field that is present in all our data. > > > > Thanks, > > Brian > > > > -----Original Message----- > > From: Kralidis,Tom [Burlington] [mailto:Tom.Kralidis at ec.gc.ca] > > Sent: Thursday, April 17, 2008 10:11 AM > > To: Brian Mixon; mapserver-users at lists.osgeo.org > > Cc: Brenton Wonders; Russell Huff > > Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem > > > > > > Does the column/field "fid" exist in your data? > > > > ..Tom > > > > > > > > ________________________________ > > > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brian > > Mixon > > Sent: 17 April, 2008 11:51 AM > > To: mapserver-users at lists.osgeo.org > > Cc: Brenton Wonders; Russell Huff > > Subject: [mapserver-users] MapServer v. 4.10.0 featureid problem > > > > > > Hello, > > > > I'm a MapServer newbie and am having trouble with a WFS v. 1.0.0 > > > request. I'm trying to have all the features for a particular layer > > returned (which happens successfully) with the fid (feature id) > > included as well (does not happen). I've included the gml_featureid > > 'fid' tag in the layer's metadata section of the mapfile but only > > receive the > > following warning the the xml/gml response: > > > > I've searched and read the various tickets that claim this > problem is > > fixed so I'm wondering what I'm doing wrong? > > > > Any information to point me in the right direction would be > greatly > > appreciated. > > > > Regards, > > Brian Mixon > > > > > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. From mtd at bom.gov.au Thu Apr 17 21:40:14 2008 From: mtd at bom.gov.au (Matthew Doyle) Date: Thu, 17 Apr 2008 21:40:14 -0700 (PDT) Subject: [MAPSERVER-USERS] Multiple GetFeatureInfo on Raster Data Message-ID: <16760151.post@talk.nabble.com> Hi MapServer users, We are trying to do a GetFeatureInfo request which will query multiple layers. These are both WMS Raster data layers, namely 'rain_jan' and 'rain_jun'. We are constructing the URL as follows: http://www...../latest?&SERVICE=wms&VERSION=1.1.1&REQUEST=getfeatureinfo&LAYERS=rain_jan,rain_jun&QUERY_LAYERS=rain_jun,rain_jan&x=200&y=150&INFO_FORMAT=text/plain&srs=EPSG:4283&BBOX=120,-50,180,0&FORMAT=image/png&width=400&height=300&styles&FEATURE_COUNT=2 Now, this will only ever query the first layer, it will never pick up multiple layers, no matter how many we put in the LAYERS or QUERY_LAYERS fields, or no matter how high our FEATURE_COUNT var is. All we ever get is the first layer, and other 'features' which are close in proximity (lat/lon) to the point selected within the same layer. Example output as follows: GetFeatureInfo results: Layer 'rain_jan' Feature 0: x = '149.9125' y = '-24.5875' value_0 = '92' value_list = '92' class = '50-100 mm' red = '230' green = '236' blue = '164' Feature 1: x = '149.9375' y = '-24.5875' value_0 = '91' value_list = '91' class = '50-100 mm' red = '230' green = '236' blue = '164' Is this possible to do with Raster Data? It seems to work when we attempt to access two different Vector layers. We are using MapServer 5.0.0 which is able to support WMS 1.3, however we tend to use WMS 1.1.1 as most software clients support that. Many thanks in advance. Regards, Matt -- View this message in context: http://www.nabble.com/Multiple-GetFeatureInfo-on-Raster-Data-tp16760151p16760151.html Sent from the Mapserver - User mailing list archive at Nabble.com. From c.pelliconi at sis-ter.it Thu Apr 17 23:23:35 2008 From: c.pelliconi at sis-ter.it (Carlo Pelliconi) Date: Fri, 18 Apr 2008 08:23:35 +0200 Subject: [mapserver-users] zoom extent In-Reply-To: <871543920804171429q182d8944s676a59d89f2dcdd2@mail.gmail.com> References: <871543920804111303p1fcece1evfd31d8288979c11c@mail.gmail.com> <4802F7C4.10708@sis-ter.it> <871543920804171429q182d8944s676a59d89f2dcdd2@mail.gmail.com> Message-ID: <48083E67.4000203@sis-ter.it> Template example (but other demo on the web are still very useful for basic commands): I have a div which must contain something created by Mapserver, so I use a particular CGI variable and Mapserver constructs that element (the legend, the reference map, ...) Use square brackets [ ] for defining the cgi-variables.
[cgi-variable]
or if you want to view the actual scale Mapserver itself puts the real actual scale value in the value attribute of the input. Hope this helps Bye, Carlo john tse ha scritto: > thanks for the reply, however, i've been playing around with it the > last few days and still no luck for a customized zoom button. It would > be most useful if anyone can actually show me a sample script of how > to put something similar together so that i can learn from it. I don't > get how the template fits with the CGI. > > On Sun, Apr 13, 2008 at 11:20 PM, Carlo Pelliconi > > wrote: > > I think you should try strarting with mapserver basic, not javascript. > Mapserver CGI documentation (for functions) here: > http://mapserver.gis.umn.edu/docs/reference/cgi/controls > Then, for the template (i.e. the html which embeds the map): > http://mapserver.gis.umn.edu/docs/reference/templatereference/templatereference/view > I've never used javascript for functions such as zoom in, because > mapserver itself has them already defined. > Good work. > > Carlo > > > > john tse ha scritto: > > Hi,Guys > > I'm currently doing a volunteer project and i need to get a > zoom to button to work. > This is the code i have right now > > > > > > > > > > > > > > it doesn't do anything, and i have no idea what's wrong with > it, any help will be much appreciated. > > thanx > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > ing. Carlo Pelliconi > c.pelliconi at sis-ter.it > SIS.TER S.p.A. > www.sis-ter.it > via Mentana, 10 > 40026 Imola (BO) Italy > > ATTENZIONE! > Questo documento ? indirizzato esclusivamente al destinatario. > Tutte le > informazioni ivi contenute, compresi eventuali allegati, sono soggette > a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di > "privacy" e ne ? proibita l'utilizzazione da parte di altri > soggetti. Si ricorda che la diffusione l'utilizzo e/o la > conservazione dei dati ricevuti per errore costituisce violazione > di carattere penale ai sensi dell'art. 616 Codice penale > (Violazione, sottrazione e soppressione di corrispondenza). Se > avesse ricevuto per errore questo messaggio, La preghiamo > cortesemente di contattare il mittente al pi? presto e di > cancellare il messaggio subito dopo. Grazie. > > ATTENTION! > This message is being sent from Sis.Ter S.p.A. and may contain > information which is confidential or privileged. If you are not > the intended recipient, please advise the sender immediately by > reply e-mail and delete this message and any attachments without > retaining a copy. Any unauthorized use of the content of this > message is a breach of your duty to respect the confidentiality of > the correspondence between other persons and can expose the > responsible party to civil and/or criminal penalties (D.Lgs. > 196/2003 "Tutela della privacy" e art. 616 Codice penale > "Violazione, sottrazione e soppressione di corrispondenza"), and > may constitute a more serious offence. Thanks. > > ACHTUNG! > Dieses Dokument ist ausschlie?lich dem Empf?nger vorbehalten. Die > darin enthaltenen Informationen, auch jene in etwaigen Anlagen, > gelten im Sinne des Dekrets Nr. 196/2003 in Sachen "Privacy" als > streng vertraulich und d?rfen von anderen Personen nicht verwende > werden. Wer diese Mitteilung irrt?mlicherweise erh?lt ist gebeten > uns umgehend zu informieren und anschlie?end die Mitteilung zu > vernichten. Vielen Dank. > > > -- ing. Carlo Pelliconi c.pelliconi at sis-ter.it SIS.TER S.p.A. www.sis-ter.it via Mentana, 10 40026 Imola (BO) Italy tel +39 0542 364034 fax +39 0542 612130 ATTENZIONE! Questo documento ? indirizzato esclusivamente al destinatario. Tutte le informazioni ivi contenute, compresi eventuali allegati, sono soggette a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di "privacy" e ne ? proibita l'utilizzazione da parte di altri soggetti. Si ricorda che la diffusione l'utilizzo e/o la conservazione dei dati ricevuti per errore costituisce violazione di carattere penale ai sensi dell'art. 616 Codice penale (Violazione, sottrazione e soppressione di corrispondenza). Se avesse ricevuto per errore questo messaggio, La preghiamo cortesemente di contattare il mittente al pi? presto e di cancellare il messaggio subito dopo. Grazie. ATTENTION! This message is being sent from Sis.Ter S.p.A. and may contain information which is confidential or privileged. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. Any unauthorized use of the content of this message is a breach of your duty to respect the confidentiality of the correspondence between other persons and can expose the responsible party to civil and/or criminal penalties (D.Lgs. 196/2003 "Tutela della privacy" e art. 616 Codice penale "Violazione, sottrazione e soppressione di corrispondenza"), and may constitute a more serious offence. Thanks. ACHTUNG! Dieses Dokument ist ausschlie?lich dem Empf?nger vorbehalten. Die darin enthaltenen Informationen, auch jene in etwaigen Anlagen, gelten im Sinne des Dekrets Nr. 196/2003 in Sachen "Privacy" als streng vertraulich und d?rfen von anderen Personen nicht verwende werden. Wer diese Mitteilung irrt?mlicherweise erh?lt ist gebeten uns umgehend zu informieren und anschlie?end die Mitteilung zu vernichten. Vielen Dank. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andreas.Eichner at sid.sachsen.de Thu Apr 17 23:44:50 2008 From: Andreas.Eichner at sid.sachsen.de (Eichner, Andreas - SID-NLK) Date: Fri, 18 Apr 2008 08:44:50 +0200 Subject: [mapserver-users] iconv problem with templates Message-ID: Hi guys, I've got a problem with HTML templates for a GetFeatureInfo request. Since the whole server is set up to use UTF-8 I also set wms_encoding to UTF-8 and everything is fine - until I issue a GetFeatureInfo request. The label data in the shape files uses ISO-8859-1. Now the server sends a HTML with charset set to UTF-8 which is fine but the attribute data is still ISO-8859-1 :( Now I don't know where to start. Iconv support is built in but I wondered if MapServer really translates the attributes before labeling. And if it does it also should translate the attributes before inserting them in the template, shouldn't it? Any ideas how to handles this issue? As a workaround I can iconv the map files back to ISO-8859-1 and ommit the wms_encoding directive, but this would surely lead to unexpected behaviour some day... Thanks! From clems_mars at hotmail.com Fri Apr 18 01:00:23 2008 From: clems_mars at hotmail.com (Clemiou) Date: Fri, 18 Apr 2008 08:00:23 +0000 Subject: [mapserver-users] Connexion between Mapserver & MySql Message-ID: Hi! I would like use Database data to print point on my map. I searched on the web and found the method to that. So, I have the following code in a .ovf file: ------------------------- MYSQL:gpvfr,user=gpvfr2,password=********,host=localhost,port=3306,tables=terrain SELECT a.oaci, lat, 'long', nom FROM terrain t,airfields a WHERE a.oaci = t.oaci EPSG:27582 wkbPoint --------------------------------- And when I run ogrinfo on this file, I obtain: ----------------------- ERROR 1: MySQL connect failed for: gpvfr,user=gpvfr2,password=31p87qr2,host=localhost,port=3306,tables=terrain;airfields Access denied for user 'gpvfr2'@'localhost' (using password: YES) FAILURE: Unable to open datasource `var/www/html/ms/map_files/mysql.ovf' with the following drivers. -> ESRI Shapefile -> MapInfo File -> UK .NTF -> SDTS -> TIGER -> S57 -> DGN -> VRT -> REC -> Memory -> BNA -> CSV -> GML -> GPX -> KML -> GeoJSON -> GMT -> SQLite -> MySQL -> AVCBin ---------------------- I'm sure of the connexion informations and MySql is installed on my system and GDAL library has been built with ogr option. Where is the problem? Thanks for your help and sorry for my English, I'm frenchy :) Sincerely yours Clement _________________________________________________________________ D?couvrez les profils Messenger de vos amis ! http://home.services.spaces.live.com/ From clems_mars at hotmail.com Fri Apr 18 01:04:47 2008 From: clems_mars at hotmail.com (Clemiou) Date: Fri, 18 Apr 2008 08:04:47 +0000 Subject: [mapserver-users] Connexion between Mapserver & MySql (2) Message-ID: hi! Sorry, my Mail box eat a part of my .ovf code. I use the code that I give you like that: http://www.forumsig.org/showthread.php?p=144045#post144045 Thanks Clement _________________________________________________________________ Avec Hotmail, vos e-mails vous suivent partout ! Mettez Hotmail sur votre mobile ! http://www.messengersurvotremobile.com/?d=hotmail From adams at terrestris.de Fri Apr 18 01:17:29 2008 From: adams at terrestris.de (Till Adams) Date: Fri, 18 Apr 2008 10:17:29 +0200 Subject: [mapserver-users] Connexion between Mapserver & MySql In-Reply-To: References: Message-ID: <48085919.6030608@terrestris.de> Clement, look on the mapserver homepage, I've sent a mysql/ovf howto document there last year. It describes step by step what to do. http://mapserver.gis.umn.edu/docs/howto/debian-odbc-mysql There is another one: http://mapserver.gis.umn.edu/docs/howto/ogrmysql Hope that helps! Regards, Till > Hi! > > I would like use Database data to print point on my map. > I searched on the web and found the method to that. > So, I have the following code in a .ovf file: > > ------------------------- > > > > MYSQL:gpvfr,user=gpvfr2,password=********,host=localhost,port=3306,tables=terrain > SELECT a.oaci, lat, 'long', nom FROM terrain t,airfields a WHERE a.oaci = t.oaci > > EPSG:27582 > > wkbPoint > > > > > --------------------------------- > > And when I run ogrinfo on this file, I obtain: > > ----------------------- > ERROR 1: MySQL connect failed for: gpvfr,user=gpvfr2,password=31p87qr2,host=localhost,port=3306,tables=terrain;airfields > Access denied for user 'gpvfr2'@'localhost' (using password: YES) > FAILURE: > Unable to open datasource `var/www/html/ms/map_files/mysql.ovf' with the following drivers. > -> ESRI Shapefile > -> MapInfo File > -> UK .NTF > -> SDTS > -> TIGER > -> S57 > -> DGN > -> VRT > -> REC > -> Memory > -> BNA > -> CSV > -> GML > -> GPX > -> KML > -> GeoJSON > -> GMT > -> SQLite > -> MySQL > -> AVCBin > > ---------------------- > > I'm sure of the connexion informations and MySql is installed on my system and GDAL library has been built with ogr option. > > Where is the problem? > > Thanks for your help and sorry for my English, I'm frenchy :) > Sincerely yours > Clement > > _________________________________________________________________ > D?couvrez les profils Messenger de vos amis ! > http://home.services.spaces.live.com/_______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Gesch?ftsf?hrung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 adams at terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplement?rin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From stefan.schwarzer at grid.unep.ch Fri Apr 18 02:05:19 2008 From: stefan.schwarzer at grid.unep.ch (Stefan Schwarzer) Date: Fri, 18 Apr 2008 11:05:19 +0200 Subject: [mapserver-users] How to tile a large TIF image? Message-ID: Hi there, I would like to use instead of single large tif image smaller tiles. Although I am well aware of mapserver's and gdal's possibilities to create the shapes for it, I first need to "split" the large tif into 20 or 50 or 100 tiles. Can anyone give me a hint with what kind of software this is possible? There is an ArcGIS script, but it doesn't work on my machine ( http://arcscripts.esri.com/details.asp?dbid=13978 ). Thanks for any hints, Stef ____________________________________________________________________ Stefan Schwarzer Lean Back and Relax - Enjoy some Nature Photography http://photoblog.la-famille-schwarzer.de Appetite for Global Data? UNEP GEO Data Portal: http://geodata.grid.unep.ch ____________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Fri Apr 18 02:23:23 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 18 Apr 2008 12:23:23 +0300 Subject: [mapserver-users] How to tile a large TIF image? In-Reply-To: Message-ID: Hi, Gdal_translate program has options for you: c:\FWTools>gdal_translate Usage: gdal_translate [--help-general] [-ot {Byte/Int16/UInt16/UInt32/Int32/Float32/Float64/ CInt16/CInt32/CFloat32/CFloat64}] [-strict] [-of format] [-b band] [-outsize xsize[%] ysize[%]] [-scale [src_min src_max [dst_min dst_max]]] [-srcwin xoff yoff xsize ysize] [-projwin ulx uly lrx lry] [-a_srs srs_def] [-a_ullr ulx uly lrx lry] [-a_nodata value] [-gcp pixel line easting northing [elevation]]* [-mo "META-TAG=VALUE"]* [-quiet] [-sds] [-co "NAME=VALUE"]* src_dataset dst_dataset By playing with -srcwin or possibly with -outsize and -projwin you should be able to split your image as you wish. Read more from http://gdal.org/gdal_translate.html -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Stefan Schwarzer L?hetetty: 18. huhtikuuta 2008 12:05 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] How to tile a large TIF image? Hi there, I would like to use instead of single large tif image smaller tiles. Although I am well aware of mapserver's and gdal's possibilities to create the shapes for it, I first need to "split" the large tif into 20 or 50 or 100 tiles. Can anyone give me a hint with what kind of software this is possible? There is an ArcGIS script, but it doesn't work on my machine ( http://arcscripts.esri.com/details.asp?dbid=13978 ). Thanks for any hints, Stef ____________________________________________________________________ Stefan Schwarzer Lean Back and Relax - Enjoy some Nature Photography http://photoblog.la-famille-schwarzer.de Appetite for Global Data? UNEP GEO Data Portal: http://geodata.grid.unep.ch ____________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From stefan.schwarzer at grid.unep.ch Fri Apr 18 02:47:40 2008 From: stefan.schwarzer at grid.unep.ch (Stefan Schwarzer) Date: Fri, 18 Apr 2008 11:47:40 +0200 Subject: [mapserver-users] How to tile a large TIF image? In-Reply-To: References: Message-ID: Thanks for the info. Did it like this: Library/Frameworks/GDAL.framework/Versions/1.5/Programs/gdal_translate -outsize 10'' 10'' -co TILED=YES gebco/bathymetry.tif gebco/ bathymetry_tiled.tif But get the message: "Segmentation fault" Anything that I did wrong? Or should do differently? Thanks for a hint, Stef > Hi, > > Gdal_translate program has options for you: > > c:\FWTools>gdal_translate > Usage: gdal_translate [--help-general] > [-ot {Byte/Int16/UInt16/UInt32/Int32/Float32/Float64/ > CInt16/CInt32/CFloat32/CFloat64}] [-strict] > [-of format] [-b band] [-outsize xsize[%] ysize[%]] > [-scale [src_min src_max [dst_min dst_max]]] > [-srcwin xoff yoff xsize ysize] [-projwin ulx uly lrx lry] > [-a_srs srs_def] [-a_ullr ulx uly lrx lry] [-a_nodata value] > [-gcp pixel line easting northing [elevation]]* > [-mo "META-TAG=VALUE"]* [-quiet] [-sds] > [-co "NAME=VALUE"]* > src_dataset dst_dataset > > By playing with -srcwin or possibly with -outsize and -projwin you > should be able to split your image as you wish. Read more from > http://gdal.org/gdal_translate.html > > -Jukka Rahkonen- > > > > L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org > ] Puolesta Stefan Schwarzer > L?hetetty: 18. huhtikuuta 2008 12:05 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] How to tile a large TIF image? > > Hi there, > > I would like to use instead of single large tif image smaller tiles. > Although I am well aware of mapserver's and gdal's possibilities to > create the shapes for it, I first need to "split" the large tif into > 20 or 50 or 100 tiles. > > Can anyone give me a hint with what kind of software this is possible? > > There is an ArcGIS script, but it doesn't work on my machine ( http://arcscripts.esri.com/details.asp?dbid=13978 > ). > > Thanks for any hints, > > Stef > > ____________________________________________________________________ > > Stefan Schwarzer > > Lean Back and Relax - Enjoy some Nature Photography > http://photoblog.la-famille-schwarzer.de > > Appetite for Global Data? UNEP GEO Data Portal: > http://geodata.grid.unep.ch > ____________________________________________________________________ > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pspencer at dmsolutions.ca Fri Apr 18 04:11:47 2008 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Fri, 18 Apr 2008 07:11:47 -0400 Subject: [mapserver-users] How to tile a large TIF image? In-Reply-To: References: Message-ID: <78D04DF3-47E7-467B-892B-D3278A346220@dmsolutions.ca> Stefan, I don't think you can specify 10'', you need something in pixels. But the command is also probably not what you really need to do. More likely, you should be doing the following: gdal_translate -co "TILED=YES" gebco/bathymetry.tif gebco/ bathmetry_tiled.tif This will create a single tif file that has an internal block size of 256x256 - you can think of this as having broken your tif up into 256x256 tiles but keeps them all within the same file. This is equivalent to breaking the tif up into individual files, creating a shapefile that has rectangles for each individual files' extent, and using that as a tile index in mapserver. Next, you want to do this: gdaladdo gebco/bathymetry.tif 2 4 6 8 16 this will pre-compute smaller versions of the tif image called overviews at 1/2, 1/4 1/6 1/8 and 1/16 of the original size of the tif - this makes it much more efficient for gdal to return exactly what mapserver is asking for at any given scale. Depending on the range of scales that you need to display your raster image at, you can add more overview levels (or take some away). With this two commands, you can make your rasters much more efficient for mapserver and probably avoid the need to split them up into many files. It does make the file somewhat larger. If you are working with very large files ( > 4GB ) then you may run into some problems with tiff and may need to investigate another format or a compressed format like ECW or MrSID (both requiring commercial licenses I believe). There are also some built in compression schemes for tiffs in gdal which you can apply when running gdal_translate (see http://www.gdal.org/frmt_gtiff.html for creation options), for instance: gdal_translate -co "TILED=YES" -co "COMPRESS=JPEG" -co "JPEG_QUALITY=80" gebco/bathymetry.tif gebco/bathmetry_tiled.tif would compress the tif using JPEG compression (lossy) set to 80% (low compression, small loss). Cheers Paul On 18-Apr-08, at 5:47 AM, Stefan Schwarzer wrote: > Thanks for the info. > > Did it like this: > > Library/Frameworks/GDAL.framework/Versions/1.5/Programs/ > gdal_translate -outsize 10'' 10'' -co TILED=YES gebco/bathymetry.tif > gebco/bathymetry_tiled.tif > > But get the message: "Segmentation fault" > > Anything that I did wrong? Or should do differently? > > Thanks for a hint, > > Stef > >> Hi, >> >> Gdal_translate program has options for you: >> >> c:\FWTools>gdal_translate >> Usage: gdal_translate [--help-general] >> [-ot {Byte/Int16/UInt16/UInt32/Int32/Float32/Float64/ >> CInt16/CInt32/CFloat32/CFloat64}] [-strict] >> [-of format] [-b band] [-outsize xsize[%] ysize[%]] >> [-scale [src_min src_max [dst_min dst_max]]] >> [-srcwin xoff yoff xsize ysize] [-projwin ulx uly lrx lry] >> [-a_srs srs_def] [-a_ullr ulx uly lrx lry] [-a_nodata value] >> [-gcp pixel line easting northing [elevation]]* >> [-mo "META-TAG=VALUE"]* [-quiet] [-sds] >> [-co "NAME=VALUE"]* >> src_dataset dst_dataset >> >> By playing with -srcwin or possibly with -outsize and -projwin you >> should be able to split your image as you wish. Read more from >> http://gdal.org/gdal_translate.html >> >> -Jukka Rahkonen- >> >> >> >> L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org >> ] Puolesta Stefan Schwarzer >> L?hetetty: 18. huhtikuuta 2008 12:05 >> Vastaanottaja: mapserver-users at lists.osgeo.org >> Aihe: [mapserver-users] How to tile a large TIF image? >> >> Hi there, >> >> I would like to use instead of single large tif image smaller >> tiles. Although I am well aware of mapserver's and gdal's >> possibilities to create the shapes for it, I first need to "split" >> the large tif into 20 or 50 or 100 tiles. >> >> Can anyone give me a hint with what kind of software this is >> possible? >> >> There is an ArcGIS script, but it doesn't work on my machine ( http://arcscripts.esri.com/details.asp?dbid=13978 >> ). >> >> Thanks for any hints, >> >> Stef >> >> ____________________________________________________________________ >> >> Stefan Schwarzer >> >> Lean Back and Relax - Enjoy some Nature Photography >> http://photoblog.la-famille-schwarzer.de >> >> Appetite for Global Data? UNEP GEO Data Portal: >> http://geodata.grid.unep.ch >> >> ____________________________________________________________________ >> >> >> >> >> >> > > _______________________________________________ > 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://www.dmsolutions.ca/ From clems_mars at hotmail.com Fri Apr 18 04:34:30 2008 From: clems_mars at hotmail.com (Clemiou) Date: Fri, 18 Apr 2008 11:34:30 +0000 Subject: [mapserver-users] Displaying points & labels Message-ID: Hi! I'd like displaying points and labels. My points are on MySql database and I use them with OGR. The connexion is OK and I think my mapfile too. But I don't see the points and the labels. My codes can be see on: http://www.forumsig.org/showthread.php?p=144085#post144085 I hope find someone to help me. Have a nice day. Clement PS: Excuse me for my English, I'm a frenchy! _________________________________________________________________ Cr?ez votre disque dur virtuel Windows Live SkyDrive, 5Go de stockage gratuit ! http://www.windowslive.fr/skydrive/ From Tom.Kralidis at ec.gc.ca Fri Apr 18 04:36:06 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Fri, 18 Apr 2008 07:36:06 -0400 Subject: [mapserver-users] MapServer v. 4.10.0 featureid problem In-Reply-To: <4997F456680DAD4DA1E042C40C46361101BC8506@auper1ex002.au.aecomnet.com> Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF243@ecburexch1.ontario.int.ec.gc.ca> Jacob is bang on (I'm no expert on ArcGIS :) If I invoke a tool like ogrinfo on the shapefile, I see no attribute called "FID". I do see "ID" and "DISTRICT" attributes. Try setting "gml_featureid" "ID" in your mapfile, which should pick up the field and process accordingly. ..Tom > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Delfos, Jacob > Sent: 17 April, 2008 11:55 PM > To: mapserver-users at lists.osgeo.org > Cc: Brenton Wonders; Russell Huff > Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem > > > Hi Guys, > > I'm no expert on WFS, but I do know ArcGIS. > The FID field is not really an attribute. It is more like an > internal ESRI unique row ID (which gets updated after edits > to be sequential). If you open up the attributes in another > application (if you use shapefiles, open up the DBF in > OpenOffice Calc or Excel), then you will find there is no FID > field. Within ArcGIS, however, the FID field is presented as > if it were a normal attribute. > > Hope this helps, > > Jacob > > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brian > > Mixon > > Sent: 18 April 2008 01:34 > > To: Kralidis,Tom [Burlington]; mapserver-users at lists.osgeo.org > > Cc: Brenton Wonders; Russell Huff > > Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem > > > > Tom, > > > > As soon as the Brenton on this list gets in to work we'll > try to put > > something together for you. I'm working remotely and need his GIS > > knowledge to get something for you. > > > > Brian > > > > -----Original Message----- > > From: Kralidis,Tom [Burlington] [mailto:Tom.Kralidis at ec.gc.ca] > > Sent: Thursday, April 17, 2008 10:51 AM > > To: Brian Mixon; mapserver-users at lists.osgeo.org > > Cc: Brenton Wonders; Russell Huff > > Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem > > > > > > Hi Brian, > > > > What's your underlying data? If there's anyway you can package a > > small testcase, I can do a local test. > > > > ..Tom > > > > > > > -----Original Message----- > > > From: Brian Mixon [mailto:mixon at waterstoneinc.com] > > > Sent: 17 April, 2008 12:24 PM > > > To: Kralidis,Tom [Burlington]; mapserver-users at lists.osgeo.org > > > Cc: Brenton Wonders; Russell Huff > > > Subject: RE: [mapserver-users] MapServer v. 4.10.0 > featureid problem > > > > > > Hi Tom, > > > > > > Yes, it does. It's an Arc field that is present in all our data. > > > > > > Thanks, > > > Brian > > > > > > -----Original Message----- > > > From: Kralidis,Tom [Burlington] [mailto:Tom.Kralidis at ec.gc.ca] > > > Sent: Thursday, April 17, 2008 10:11 AM > > > To: Brian Mixon; mapserver-users at lists.osgeo.org > > > Cc: Brenton Wonders; Russell Huff > > > Subject: RE: [mapserver-users] MapServer v. 4.10.0 > featureid problem > > > > > > > > > Does the column/field "fid" exist in your data? > > > > > > ..Tom > > > > > > > > > > > > ________________________________ > > > > > > From: mapserver-users-bounces at lists.osgeo.org > > > [mailto:mapserver-users-bounces at lists.osgeo.org] On > Behalf Of Brian > > > Mixon > > > Sent: 17 April, 2008 11:51 AM > > > To: mapserver-users at lists.osgeo.org > > > Cc: Brenton Wonders; Russell Huff > > > Subject: [mapserver-users] MapServer v. 4.10.0 featureid problem > > > > > > > > > Hello, > > > > > > I'm a MapServer newbie and am having trouble with a WFS v. 1.0.0 > > > > > request. I'm trying to have all the features for a > particular layer > > > returned (which happens successfully) with the fid (feature id) > > > included as well (does not happen). I've included the > gml_featureid > > > 'fid' tag in the layer's metadata section of the mapfile but only > > > receive the > > > following warning the the xml/gml response: > > > > > > I've searched and read the various tickets that claim this > > problem is > > > fixed so I'm wondering what I'm doing wrong? > > > > > > Any information to point me in the right direction would be > > greatly > > > appreciated. > > > > > > Regards, > > > Brian Mixon > > > > > > > > > > > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > This email and any attachments are intended solely for the > named recipient and are confidential. The copying or > distribution of them or any information they contain by > anyone other than the named recipient is prohibited. If you > have received this document in error, please notify the > sender and delete all copies from your computer system and > destroy all hard copies. It is the recipient's responsibility > to check this email and any attachments to this email for > viruses before use. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From adams at terrestris.de Fri Apr 18 05:08:55 2008 From: adams at terrestris.de (Till Adams) Date: Fri, 18 Apr 2008 14:08:55 +0200 Subject: [mapserver-users] Displaying points & labels In-Reply-To: References: Message-ID: <48088F57.4010003@terrestris.de> First try to just visualize your points without any classes, so you can say, the error is NOT the classification. Try if epsg and/or extent is all right. regards, Till > Hi! > > I'd like displaying points and labels. My points are on MySql database and I use them with OGR. > The connexion is OK and I think my mapfile too. > But I don't see the points and the labels. > > My codes can be see on: http://www.forumsig.org/showthread.php?p=144085#post144085 > > I hope find someone to help me. > > Have a nice day. > > Clement > > PS: Excuse me for my English, I'm a frenchy! > > _________________________________________________________________ > Cr?ez votre disque dur virtuel Windows Live SkyDrive, 5Go de stockage gratuit ! > http://www.windowslive.fr/skydrive/_______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Gesch?ftsf?hrung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 adams at terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplement?rin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From warmerdam at pobox.com Fri Apr 18 05:31:02 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 18 Apr 2008 08:31:02 -0400 Subject: [MAPSERVER-USERS] Multiple GetFeatureInfo on Raster Data In-Reply-To: <16760151.post@talk.nabble.com> References: <16760151.post@talk.nabble.com> Message-ID: <48089486.7000604@pobox.com> Matthew Doyle wrote: > Hi MapServer users, > > We are trying to do a GetFeatureInfo request which will query multiple > layers. These are both WMS Raster data layers, namely 'rain_jan' and > 'rain_jun'. We are constructing the URL as follows: > > http://www...../latest?&SERVICE=wms&VERSION=1.1.1&REQUEST=getfeatureinfo&LAYERS=rain_jan,rain_jun&QUERY_LAYERS=rain_jun,rain_jan&x=200&y=150&INFO_FORMAT=text/plain&srs=EPSG:4283&BBOX=120,-50,180,0&FORMAT=image/png&width=400&height=300&styles&FEATURE_COUNT=2 > > Now, this will only ever query the first layer, it will never pick up > multiple layers, no matter how many we put in the LAYERS or QUERY_LAYERS > fields, or no matter how high our FEATURE_COUNT var is. All we ever get is > the first layer, and other 'features' which are close in proximity (lat/lon) > to the point selected within the same layer. Matt, I presume this is a flaw in my implementation of raster query. I would appreciate your filing a ticket with a small, easy to reproduce test case for me. ie. a map file with two small raster files as layers, and the mapserv url (like above) to invoke the request. Assign the ticket directly to me (warmerdam). 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 | President OSGeo, http://osgeo.org From damarmo at gmail.com Fri Apr 18 05:42:57 2008 From: damarmo at gmail.com (David Martinez Morata) Date: Fri, 18 Apr 2008 14:42:57 +0200 Subject: [mapserver-users] Raster problems Message-ID: <9771eb540804180542v15f6c5edg952a1b2deb866fa4@mail.gmail.com> Hello! I'm new in Mapserver, and after testing and testing, searching and searching... I have a problem! I'm doing a map file with two raster layers. I defines the MAXSACLe and MINSCALE for this layers but at the end i have a white screen :S What I'm doing wrong? It's possible to create a raster based map with diferent raster levels for teh same area?(I think yes but i couldn't do it :S) Thanks for teh answers -------------- next part -------------- An HTML attachment was scrubbed... URL: From mschulz at webgis.de Fri Apr 18 05:51:44 2008 From: mschulz at webgis.de (Michael Schulz) Date: Fri, 18 Apr 2008 14:51:44 +0200 Subject: [mapserver-users] Displaying points & label In-Reply-To: References: Message-ID: Hi, you are using a layer of type annotation. This type of layer usually does not display the actual point symbol, it only renders the label at that position. Thus you could try to use type point, to really draw the points and the labels... I just realized that you have two TYPE declarations in your layer: point and annotation. That could also be a problem ;-) Cheers, Michael 2008/4/18 Clemiou : > > Hi! > > I'd like displaying points and labels. My points are on MySql database and I use them with OGR. > The connexion is OK and I think my mapfile too. > But I don't see the points and the labels. > > My codes can be see on: http://www.forumsig.org/showthread.php?p=144085#post144085 > > I hope find someone to help me. > > Have a nice day. > > Clement > > PS: Excuse me for my English, I'm a frenchy! > > _________________________________________________________________ > Cr?ez votre disque dur virtuel Windows Live SkyDrive, 5Go de stockage gratuit ! > http://www.windowslive.fr/skydrive/_______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 79108 Freiburg Tel +49 (0)761 556959-5 Fax +49 (0)761 556959-6 http://www.webgis.de / http://www.zopecms.de ----------------------------------------------------------- From kobben at itc.nl Fri Apr 18 05:55:41 2008 From: kobben at itc.nl (Barend Kobben) Date: Fri, 18 Apr 2008 14:55:41 +0200 Subject: [mapserver-users] Truetype symbols won't render in AGG png? Message-ID: Hi, Since upgrading to 5 and using the AGG renderer for antialiassed PNG, my truetype font symbols won't render properly. See http://geoserver.itc.nl/cgi-bin/mapserv.exe?map=D:/Inetpub/geoserver/mapserv er/config.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=forest,railroa d,airports&SRS=EPSG:4326&BBOX=97.35,5.61,105.64,20.47&WIDTH=400&HEIGHT=600&F ORMAT=image/png When requesting the same as jpeg (change image/png to image/jpeg in the URL) the symbols are there again, but now of course no nice anti-aliassing... Both worked fine in 4.10, I changed nothing in my mapfile, other then adding in the beginning: IMAGETYPE PNG24 ## employ AGG to for anti-aliassing OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END As indicated on the AGG rendering page on the website. Strangely enough the legend labels, which are also truetype, work fine... -- Barend K?bben International Institute for Geo-Information Sciences and Earth Observation (ITC) PO Box 6 7500AA Enschede, The Netherlands +31 (0)53 4874253 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 stefan.schwarzer at grid.unep.ch Fri Apr 18 06:02:56 2008 From: stefan.schwarzer at grid.unep.ch (Stefan Schwarzer) Date: Fri, 18 Apr 2008 15:02:56 +0200 Subject: [mapserver-users] How to tile a large TIF image? In-Reply-To: <78D04DF3-47E7-467B-892B-D3278A346220@dmsolutions.ca> References: <78D04DF3-47E7-467B-892B-D3278A346220@dmsolutions.ca> Message-ID: Thanks a lot for these details. That should be added to the existing documents! But unfortunately I still get a "Segmentation fault" message... Stef > Stefan, > > I don't think you can specify 10'', you need something in pixels. > But the command is also probably not what you really need to do. > > More likely, you should be doing the following: > > gdal_translate -co "TILED=YES" gebco/bathymetry.tif gebco/ > bathmetry_tiled.tif > > This will create a single tif file that has an internal block size > of 256x256 - you can think of this as having broken your tif up into > 256x256 tiles but keeps them all within the same file. This is > equivalent to breaking the tif up into individual files, creating a > shapefile that has rectangles for each individual files' extent, and > using that as a tile index in mapserver. > > Next, you want to do this: > > gdaladdo gebco/bathymetry.tif 2 4 6 8 16 > > this will pre-compute smaller versions of the tif image called > overviews at 1/2, 1/4 1/6 1/8 and 1/16 of the original size of the > tif - this makes it much more efficient for gdal to return exactly > what mapserver is asking for at any given scale. Depending on the > range of scales that you need to display your raster image at, you > can add more overview levels (or take some away). > > With this two commands, you can make your rasters much more > efficient for mapserver and probably avoid the need to split them up > into many files. > > It does make the file somewhat larger. If you are working with very > large files ( > 4GB ) then you may run into some problems with tiff > and may need to investigate another format or a compressed format > like ECW or MrSID (both requiring commercial licenses I believe). > > There are also some built in compression schemes for tiffs in gdal > which you can apply when running gdal_translate (see http://www.gdal.org/frmt_gtiff.html > for creation options), for instance: > > gdal_translate -co "TILED=YES" -co "COMPRESS=JPEG" -co > "JPEG_QUALITY=80" gebco/bathymetry.tif gebco/bathmetry_tiled.tif > > would compress the tif using JPEG compression (lossy) set to 80% > (low compression, small loss). > > Cheers > > Paul > > > > On 18-Apr-08, at 5:47 AM, Stefan Schwarzer wrote: >> Thanks for the info. >> >> Did it like this: >> >> Library/Frameworks/GDAL.framework/Versions/1.5/Programs/ >> gdal_translate -outsize 10'' 10'' -co TILED=YES gebco/ >> bathymetry.tif gebco/bathymetry_tiled.tif >> >> But get the message: "Segmentation fault" >> >> Anything that I did wrong? Or should do differently? >> >> Thanks for a hint, >> >> Stef >> >>> Hi, >>> >>> Gdal_translate program has options for you: >>> >>> c:\FWTools>gdal_translate >>> Usage: gdal_translate [--help-general] >>> [-ot {Byte/Int16/UInt16/UInt32/Int32/Float32/Float64/ >>> CInt16/CInt32/CFloat32/CFloat64}] [-strict] >>> [-of format] [-b band] [-outsize xsize[%] ysize[%]] >>> [-scale [src_min src_max [dst_min dst_max]]] >>> [-srcwin xoff yoff xsize ysize] [-projwin ulx uly lrx lry] >>> [-a_srs srs_def] [-a_ullr ulx uly lrx lry] [-a_nodata value] >>> [-gcp pixel line easting northing [elevation]]* >>> [-mo "META-TAG=VALUE"]* [-quiet] [-sds] >>> [-co "NAME=VALUE"]* >>> src_dataset dst_dataset >>> >>> By playing with -srcwin or possibly with -outsize and -projwin you >>> should be able to split your image as you wish. Read more from >>> http://gdal.org/gdal_translate.html >>> >>> -Jukka Rahkonen- >>> >>> >>> >>> L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org >>> ] Puolesta Stefan Schwarzer >>> L?hetetty: 18. huhtikuuta 2008 12:05 >>> Vastaanottaja: mapserver-users at lists.osgeo.org >>> Aihe: [mapserver-users] How to tile a large TIF image? >>> >>> Hi there, >>> >>> I would like to use instead of single large tif image smaller >>> tiles. Although I am well aware of mapserver's and gdal's >>> possibilities to create the shapes for it, I first need to "split" >>> the large tif into 20 or 50 or 100 tiles. >>> >>> Can anyone give me a hint with what kind of software this is >>> possible? >>> >>> There is an ArcGIS script, but it doesn't work on my machine ( http://arcscripts.esri.com/details.asp?dbid=13978 >>> ). >>> >>> Thanks for any hints, >>> >>> Stef >>> >>> ____________________________________________________________________ >>> >>> Stefan Schwarzer >>> >>> Lean Back and Relax - Enjoy some Nature Photography >>> http://photoblog.la-famille-schwarzer.de >>> >>> Appetite for Global Data? UNEP GEO Data Portal: >>> http://geodata.grid.unep.ch >>> >>> ____________________________________________________________________ >>> >>> >>> >>> >>> >>> >> >> _______________________________________________ >> 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://www.dmsolutions.ca/ From mschulz at webgis.de Fri Apr 18 06:03:59 2008 From: mschulz at webgis.de (Michael Schulz) Date: Fri, 18 Apr 2008 15:03:59 +0200 Subject: [mapserver-users] Displaying points & labe In-Reply-To: References: Message-ID: Hi, could you have a look at the debug output? Turn debugging on with DEBUG on on the map and on the layer level, then you should get debug output, either to your configured mapserver log or the webserver (error) log. Another way woudl be to use shp2img. Cheers, Michael 2008/4/18 Clemiou : > > Hi, > > I have modifief my layer for just have the points, as you can see: > > > ############################# > # Le layer des a?rodromes . # > ############################# > > LAYER > NAME "AERO" > TYPE POINT > STATUS ON > PROJECTION > "init=epsg:27582" > END > TEMPLATE "ttt_query.html" > CONNECTIONTYPE OGR > CONNECTION "mysql.ovf" > #TOLERANCE 5 > #TYPE ANNOTATION > #LABELITEM "nom" > DATA "my_layer" > > > CLASS > NAME "my_class" > #LABEL > # ANGLE auto > #TYPE TRUETYPE > #ANTIALIAS TRUE > #MINFEATURESIZE 100 > #COLOR 255 255 255 > #OUTLINECOLOR 255 0 0 > #SIZE 20 > #FONT "arial" > #FORCE TRUE > #END # Fin LABEL AERO > > STYLE > SYMBOL 'circle' > SIZE 15 > COLOR 0 255 0 > #OUTLINECOLOR 255 0 0 > END # Fin du STYLE AERO > END # Fin de CLASS AERO > END # Fin du LAYER AERO > ============================ > > But it doesn't work. > > Thakns for your answer > Clement > ---------------------------------------- > > Date: Fri, 18 Apr 2008 14:51:44 +0200 > > From: mschulz at webgis.de > > To: clems_mars at hotmail.com > > Subject: Re: [mapserver-users] Displaying points & label > > CC: mapserver-users at lists.osgeo.org > > > > Hi, > > > > you are using a layer of type annotation. This type of layer usually > > does not display the actual point symbol, it only renders the label at > > that position. Thus you could try to use type point, to really draw > > the points and the labels... I just realized that you have two TYPE > > declarations in your layer: point and annotation. That could also be a > > problem ;-) > > > > Cheers, Michael > > > > > > 2008/4/18 Clemiou : > >> > >> Hi! > >> > >> I'd like displaying points and labels. My points are on MySql database and I use them with OGR. > >> The connexion is OK and I think my mapfile too. > >> But I don't see the points and the labels. > >> > >> My codes can be see on: http://www.forumsig.org/showthread.php?p=144085#post144085 > >> > >> I hope find someone to help me. > >> > >> Have a nice day. > >> > >> Clement > >> > >> PS: Excuse me for my English, I'm a frenchy! > >> > >> _________________________________________________________________ > >> Cr?ez votre disque dur virtuel Windows Live SkyDrive, 5Go de stockage gratuit ! > >> http://www.windowslive.fr/skydrive/_______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > > > > > > > -- > > ----------------------------------------------------------- > > Michael Schulz > > mschulz at webgis.de > > > > in medias res > > Gesellschaft f?r Informationstechnologie mbH > > > > In den Weihermatten 66 > > 79108 Freiburg > > > > Tel +49 (0)761 556959-5 > > Fax +49 (0)761 556959-6 > > > > http://www.webgis.de / http://www.zopecms.de > > ----------------------------------------------------------- > > _________________________________________________________________ > Cr?ez votre disque dur virtuel Windows Live SkyDrive, 5Go de stockage gratuit ! > http://www.windowslive.fr/skydrive/ -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 79108 Freiburg Tel +49 (0)761 556959-5 Fax +49 (0)761 556959-6 http://www.webgis.de / http://www.zopecms.de ----------------------------------------------------------- From warmerdam at pobox.com Fri Apr 18 06:06:49 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 18 Apr 2008 09:06:49 -0400 Subject: [mapserver-users] Raster problems In-Reply-To: <9771eb540804180542v15f6c5edg952a1b2deb866fa4@mail.gmail.com> References: <9771eb540804180542v15f6c5edg952a1b2deb866fa4@mail.gmail.com> Message-ID: <48089CE9.1000502@pobox.com> David Martinez Morata wrote: > Hello! > I'm new in Mapserver, and after testing and testing, searching and > searching... I have a problem! > > I'm doing a map file with two raster layers. I defines the MAXSACLe and > MINSCALE for this layers but at the end i have a white screen :S > > What I'm doing wrong? It's possible to create a raster based map with > diferent raster levels for teh same area?(I think yes but i couldn't do > it :S) > Thanks for teh answers David, Yes, this is possible but a white (presumably empty) map can be caused by many things. First, ensure that each layer is working without minscale/maxscale settings. Then make sure you set minscale/maxscale such that one or the other layer is always going to be enabled. It would be helpful for you to post the layer definition for the two layers in question. It is also helpful to have some understanding of what does work, and what issues you have ruled out. Debugging a map file is a logical process, just like debugging a program. 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 | President OSGeo, http://osgeo.org From pspencer at DMSOLUTIONS.CA Fri Apr 18 06:07:50 2008 From: pspencer at DMSOLUTIONS.CA (Paul Spencer) Date: Fri, 18 Apr 2008 09:07:50 -0400 Subject: [mapserver-users] How to tile a large TIF image? In-Reply-To: References: <78D04DF3-47E7-467B-892B-D3278A346220@dmsolutions.ca> Message-ID: <5DA9AB91-40C6-4A1A-BBBA-CB7FF6B53F5D@DMSOLUTIONS.CA> Sounds like a problem with your gdal install - I'm running a mac also and have no problems. I recommend going back to the kyngchaos site and downloading the latest GDAL and installing it. Cheers Paul On 18-Apr-08, at 9:02 AM, Stefan Schwarzer wrote: > Thanks a lot for these details. That should be added to the existing > documents! > > But unfortunately I still get a "Segmentation fault" message... > > Stef > >> Stefan, >> >> I don't think you can specify 10'', you need something in pixels. >> But the command is also probably not what you really need to do. >> >> More likely, you should be doing the following: >> >> gdal_translate -co "TILED=YES" gebco/bathymetry.tif gebco/ >> bathmetry_tiled.tif >> >> This will create a single tif file that has an internal block size >> of 256x256 - you can think of this as having broken your tif up >> into 256x256 tiles but keeps them all within the same file. This >> is equivalent to breaking the tif up into individual files, >> creating a shapefile that has rectangles for each individual files' >> extent, and using that as a tile index in mapserver. >> >> Next, you want to do this: >> >> gdaladdo gebco/bathymetry.tif 2 4 6 8 16 >> >> this will pre-compute smaller versions of the tif image called >> overviews at 1/2, 1/4 1/6 1/8 and 1/16 of the original size of the >> tif - this makes it much more efficient for gdal to return exactly >> what mapserver is asking for at any given scale. Depending on the >> range of scales that you need to display your raster image at, you >> can add more overview levels (or take some away). >> >> With this two commands, you can make your rasters much more >> efficient for mapserver and probably avoid the need to split them >> up into many files. >> >> It does make the file somewhat larger. If you are working with >> very large files ( > 4GB ) then you may run into some problems with >> tiff and may need to investigate another format or a compressed >> format like ECW or MrSID (both requiring commercial licenses I >> believe). >> >> There are also some built in compression schemes for tiffs in gdal >> which you can apply when running gdal_translate (see http://www.gdal.org/frmt_gtiff.html >> for creation options), for instance: >> >> gdal_translate -co "TILED=YES" -co "COMPRESS=JPEG" -co >> "JPEG_QUALITY=80" gebco/bathymetry.tif gebco/bathmetry_tiled.tif >> >> would compress the tif using JPEG compression (lossy) set to 80% >> (low compression, small loss). >> >> Cheers >> >> Paul >> >> >> >> On 18-Apr-08, at 5:47 AM, Stefan Schwarzer wrote: >>> Thanks for the info. >>> >>> Did it like this: >>> >>> Library/Frameworks/GDAL.framework/Versions/1.5/Programs/ >>> gdal_translate -outsize 10'' 10'' -co TILED=YES gebco/ >>> bathymetry.tif gebco/bathymetry_tiled.tif >>> >>> But get the message: "Segmentation fault" >>> >>> Anything that I did wrong? Or should do differently? >>> >>> Thanks for a hint, >>> >>> Stef >>> >>>> Hi, >>>> >>>> Gdal_translate program has options for you: >>>> >>>> c:\FWTools>gdal_translate >>>> Usage: gdal_translate [--help-general] >>>> [-ot {Byte/Int16/UInt16/UInt32/Int32/Float32/Float64/ >>>> CInt16/CInt32/CFloat32/CFloat64}] [-strict] >>>> [-of format] [-b band] [-outsize xsize[%] ysize[%]] >>>> [-scale [src_min src_max [dst_min dst_max]]] >>>> [-srcwin xoff yoff xsize ysize] [-projwin ulx uly lrx lry] >>>> [-a_srs srs_def] [-a_ullr ulx uly lrx lry] [-a_nodata value] >>>> [-gcp pixel line easting northing [elevation]]* >>>> [-mo "META-TAG=VALUE"]* [-quiet] [-sds] >>>> [-co "NAME=VALUE"]* >>>> src_dataset dst_dataset >>>> >>>> By playing with -srcwin or possibly with -outsize and -projwin >>>> you should be able to split your image as you wish. Read more from >>>> http://gdal.org/gdal_translate.html >>>> >>>> -Jukka Rahkonen- >>>> >>>> >>>> >>>> L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org >>>> ] Puolesta Stefan Schwarzer >>>> L?hetetty: 18. huhtikuuta 2008 12:05 >>>> Vastaanottaja: mapserver-users at lists.osgeo.org >>>> Aihe: [mapserver-users] How to tile a large TIF image? >>>> >>>> Hi there, >>>> >>>> I would like to use instead of single large tif image smaller >>>> tiles. Although I am well aware of mapserver's and gdal's >>>> possibilities to create the shapes for it, I first need to >>>> "split" the large tif into 20 or 50 or 100 tiles. >>>> >>>> Can anyone give me a hint with what kind of software this is >>>> possible? >>>> >>>> There is an ArcGIS script, but it doesn't work on my machine ( http://arcscripts.esri.com/details.asp?dbid=13978 >>>> ). >>>> >>>> Thanks for any hints, >>>> >>>> Stef >>>> >>>> ____________________________________________________________________ >>>> >>>> Stefan Schwarzer >>>> >>>> Lean Back and Relax - Enjoy some Nature Photography >>>> http://photoblog.la-famille-schwarzer.de >>>> >>>> Appetite for Global Data? UNEP GEO Data Portal: >>>> http://geodata.grid.unep.ch >>>> ____________________________________________________________________ >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> _______________________________________________ >>> 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://www.dmsolutions.ca/ > __________________________________________ Paul Spencer Chief Technology Officer DM Solutions Group Inc http://www.dmsolutions.ca/ From punk.kish at gmail.com Fri Apr 18 06:32:49 2008 From: punk.kish at gmail.com (P Kishor) Date: Fri, 18 Apr 2008 08:32:49 -0500 Subject: [mapserver-users] MapServer logs Message-ID: >Debugging a map file is a logical process, just like debugging a program. Thus spake Warmerdam in nuther thread. Ok then. I have the following situation -- Client OpenLayers calling MapServer via WMS. MapServer getting data out of a db (homegrown SQLiteGIS) via an OGR connection. CONNECTIONTYPE OGR CONNECTION "/Users/punkish/Data/sqlitegis/wi.db" DATA "SELECT wkt_geometry FROM sg_zip" I want MapServer to write every call that it makes to the database via OGR. So, I added the following line to my map file WEB .. LOG "/Users/punkish/Sites/sqlitegis/tmp/ms.log" END tmp directory is writeable. The map is rendered just fine, thank you, however, no logfile. What is my culpa? -- Puneet Kishor From woklist at kyngchaos.com Fri Apr 18 06:37:16 2008 From: woklist at kyngchaos.com (William Kyngesburye) Date: Fri, 18 Apr 2008 08:37:16 -0500 Subject: [mapserver-users] How to tile a large TIF image? In-Reply-To: <5DA9AB91-40C6-4A1A-BBBA-CB7FF6B53F5D@DMSOLUTIONS.CA> References: <78D04DF3-47E7-467B-892B-D3278A346220@dmsolutions.ca> <5DA9AB91-40C6-4A1A-BBBA-CB7FF6B53F5D@DMSOLUTIONS.CA> Message-ID: <4AB1EEA7-177F-4FCD-84F8-BC892D6D29AF@kyngchaos.com> Ah, yes, make sure you have the latest GDAL framework build. There is an optimization bug in Xcode 3.x that causes problems with GeoTIFF format if I forget to apply a workaround. You can check for this bug by looking at the crashlog for gdal_translate, you should see something in the thread about geokeys. On Apr 18, 2008, at 8:07 AM, Paul Spencer wrote: > Sounds like a problem with your gdal install - I'm running a mac > also and have no problems. I recommend going back to the kyngchaos > site and downloading the latest GDAL and installing it. > > Cheers > > Paul > > On 18-Apr-08, at 9:02 AM, Stefan Schwarzer wrote: >> Thanks a lot for these details. That should be added to the >> existing documents! >> >> But unfortunately I still get a "Segmentation fault" message... >> >> Stef >> >>> Stefan, >>> >>> I don't think you can specify 10'', you need something in pixels. >>> But the command is also probably not what you really need to do. >>> >>> More likely, you should be doing the following: >>> >>> gdal_translate -co "TILED=YES" gebco/bathymetry.tif gebco/ >>> bathmetry_tiled.tif >>> >>> This will create a single tif file that has an internal block size >>> of 256x256 - you can think of this as having broken your tif up >>> into 256x256 tiles but keeps them all within the same file. This >>> is equivalent to breaking the tif up into individual files, >>> creating a shapefile that has rectangles for each individual >>> files' extent, and using that as a tile index in mapserver. >>> >>> Next, you want to do this: >>> >>> gdaladdo gebco/bathymetry.tif 2 4 6 8 16 >>> >>> this will pre-compute smaller versions of the tif image called >>> overviews at 1/2, 1/4 1/6 1/8 and 1/16 of the original size of the >>> tif - this makes it much more efficient for gdal to return exactly >>> what mapserver is asking for at any given scale. Depending on the >>> range of scales that you need to display your raster image at, you >>> can add more overview levels (or take some away). >>> >>> With this two commands, you can make your rasters much more >>> efficient for mapserver and probably avoid the need to split them >>> up into many files. >>> >>> It does make the file somewhat larger. If you are working with >>> very large files ( > 4GB ) then you may run into some problems >>> with tiff and may need to investigate another format or a >>> compressed format like ECW or MrSID (both requiring commercial >>> licenses I believe). >>> >>> There are also some built in compression schemes for tiffs in gdal >>> which you can apply when running gdal_translate (see http://www.gdal.org/frmt_gtiff.html >>> for creation options), for instance: >>> >>> gdal_translate -co "TILED=YES" -co "COMPRESS=JPEG" -co >>> "JPEG_QUALITY=80" gebco/bathymetry.tif gebco/bathmetry_tiled.tif >>> >>> would compress the tif using JPEG compression (lossy) set to 80% >>> (low compression, small loss). >>> >>> Cheers >>> >>> Paul >>> >>> >>> >>> On 18-Apr-08, at 5:47 AM, Stefan Schwarzer wrote: >>>> Thanks for the info. >>>> >>>> Did it like this: >>>> >>>> Library/Frameworks/GDAL.framework/Versions/1.5/Programs/ >>>> gdal_translate -outsize 10'' 10'' -co TILED=YES gebco/ >>>> bathymetry.tif gebco/bathymetry_tiled.tif >>>> >>>> But get the message: "Segmentation fault" >>>> >>>> Anything that I did wrong? Or should do differently? >>>> >>>> Thanks for a hint, >>>> >>>> Stef >>>> >>>>> Hi, >>>>> >>>>> Gdal_translate program has options for you: >>>>> >>>>> c:\FWTools>gdal_translate >>>>> Usage: gdal_translate [--help-general] >>>>> [-ot {Byte/Int16/UInt16/UInt32/Int32/Float32/Float64/ >>>>> CInt16/CInt32/CFloat32/CFloat64}] [-strict] >>>>> [-of format] [-b band] [-outsize xsize[%] ysize[%]] >>>>> [-scale [src_min src_max [dst_min dst_max]]] >>>>> [-srcwin xoff yoff xsize ysize] [-projwin ulx uly lrx lry] >>>>> [-a_srs srs_def] [-a_ullr ulx uly lrx lry] [-a_nodata value] >>>>> [-gcp pixel line easting northing [elevation]]* >>>>> [-mo "META-TAG=VALUE"]* [-quiet] [-sds] >>>>> [-co "NAME=VALUE"]* >>>>> src_dataset dst_dataset >>>>> >>>>> By playing with -srcwin or possibly with -outsize and -projwin >>>>> you should be able to split your image as you wish. Read more >>>>> from >>>>> http://gdal.org/gdal_translate.html >>>>> >>>>> -Jukka Rahkonen- >>>>> >>>>> >>>>> >>>>> L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org >>>>> ] Puolesta Stefan Schwarzer >>>>> L?hetetty: 18. huhtikuuta 2008 12:05 >>>>> Vastaanottaja: mapserver-users at lists.osgeo.org >>>>> Aihe: [mapserver-users] How to tile a large TIF image? >>>>> >>>>> Hi there, >>>>> >>>>> I would like to use instead of single large tif image smaller >>>>> tiles. Although I am well aware of mapserver's and gdal's >>>>> possibilities to create the shapes for it, I first need to >>>>> "split" the large tif into 20 or 50 or 100 tiles. >>>>> >>>>> Can anyone give me a hint with what kind of software this is >>>>> possible? >>>>> >>>>> There is an ArcGIS script, but it doesn't work on my machine ( http://arcscripts.esri.com/details.asp?dbid=13978 >>>>> ). >>>>> >>>>> Thanks for any hints, >>>>> >>>>> Stef >>>>> >>>>> ____________________________________________________________________ >>>>> >>>>> Stefan Schwarzer >>>>> >>>>> Lean Back and Relax - Enjoy some Nature Photography >>>>> http://photoblog.la-famille-schwarzer.de >>>>> >>>>> Appetite for Global Data? UNEP GEO Data Portal: >>>>> http://geodata.grid.unep.ch >>>>> ____________________________________________________________________ >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> 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://www.dmsolutions.ca/ >> > > > __________________________________________ > > Paul Spencer > Chief Technology Officer > DM Solutions Group Inc > http://www.dmsolutions.ca/ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users ----- William Kyngesburye http://www.kyngchaos.com/ All generalizations are dangerous, even this one. From dmorissette at mapgears.com Fri Apr 18 06:38:47 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 18 Apr 2008 09:38:47 -0400 Subject: [mapserver-users] MapServer logs In-Reply-To: References: Message-ID: <4808A467.5000703@mapgears.com> P Kishor wrote: > > I want MapServer to write every call that it makes to the database via > OGR. So, I added the following line to my map file > WEB > .. > LOG "/Users/punkish/Sites/sqlitegis/tmp/ms.log" > END > IIRC, LOG only logs some info on the mapserv request status at the end of its execution. I don't use it much and don't know much about it. To get debugging output, with MapServer 5.0+, set: CONFIG "MS_ERRORFILE" "/Users/punkish/Sites/sqlitegis/tmp/ms.log" ... and then set DEBUG level (ON, or number between 1 and 5) at the top-level in the mapfile and in each layer for which you want debugging output. More details are available in RFC-28: http://mapserver.gis.umn.edu/development/rfc/ms-rfc-28 Daniel -- Daniel Morissette http://www.mapgears.com/ From mschulz at webgis.de Fri Apr 18 06:45:17 2008 From: mschulz at webgis.de (Michael Schulz) Date: Fri, 18 Apr 2008 15:45:17 +0200 Subject: [mapserver-users] Displaying points & lab In-Reply-To: References: Message-ID: Hi Clement, please leave the thread also on the list... Ok, that is not the real debug output, merely the log. Did you try it from the command line with shp2img: shp2img -m aero.map -l AERO -all_debug 5 this should print some debug information to stdout. Are you using mapserver 5? Then you can set a special error log for each mapfile, with the directive CONFIG "MS_ERRORFILE" "/path/to/mserror.log" at the map level. Cheers, Michael 2008/4/18 Clemiou : > > Hi > > The one thing that I can see in the mapserver log is: > > Fri Apr 18 15:18:51 2008,18284,127.0.0.1,MS,3,1.241143 46.540217 1.445917 46.744991,-1.000000 -1.000000,FRANCE ,normal execution > > ^^ Very funny isn't it? > > Clement > ---------------------------------------- > > Date: Fri, 18 Apr 2008 15:03:59 +0200 > > From: mschulz at webgis.de > > To: clems_mars at hotmail.com; mapserver-users at lists.osgeo.org > > Subject: Re: [mapserver-users] Displaying points & labe > > > > Hi, > > > > could you have a look at the debug output? Turn debugging on with > > DEBUG on on the map and on the layer level, then you should get debug > > output, either to your configured mapserver log or the webserver > > (error) log. Another way woudl be to use shp2img. > > > > Cheers, Michael > > > > > > 2008/4/18 Clemiou : > >> > >> Hi, > >> > >> I have modifief my layer for just have the points, as you can see: > >> > >> > >> ############################# > >> # Le layer des a?rodromes . # > >> ############################# > >> > >> LAYER > >> NAME "AERO" > >> TYPE POINT > >> STATUS ON > >> PROJECTION > >> "init=epsg:27582" > >> END > >> TEMPLATE "ttt_query.html" > >> CONNECTIONTYPE OGR > >> CONNECTION "mysql.ovf" > >> #TOLERANCE 5 > >> #TYPE ANNOTATION > >> #LABELITEM "nom" > >> DATA "my_layer" > >> > >> > >> CLASS > >> NAME "my_class" > >> #LABEL > >> # ANGLE auto > >> #TYPE TRUETYPE > >> #ANTIALIAS TRUE > >> #MINFEATURESIZE 100 > >> #COLOR 255 255 255 > >> #OUTLINECOLOR 255 0 0 > >> #SIZE 20 > >> #FONT "arial" > >> #FORCE TRUE > >> #END # Fin LABEL AERO > >> > >> STYLE > >> SYMBOL 'circle' > >> SIZE 15 > >> COLOR 0 255 0 > >> #OUTLINECOLOR 255 0 0 > >> END # Fin du STYLE AERO > >> END # Fin de CLASS AERO > >> END # Fin du LAYER AERO > >> ============================ > >> > >> But it doesn't work. > >> > >> Thakns for your answer > >> Clement > >> ---------------------------------------- > >> > Date: Fri, 18 Apr 2008 14:51:44 +0200 > >> > From: mschulz at webgis.de > >> > To: clems_mars at hotmail.com > >> > Subject: Re: [mapserver-users] Displaying points & label > >> > CC: mapserver-users at lists.osgeo.org > >> > > >> > Hi, > >> > > >> > you are using a layer of type annotation. This type of layer usually > >> > does not display the actual point symbol, it only renders the label at > >> > that position. Thus you could try to use type point, to really draw > >> > the points and the labels... I just realized that you have two TYPE > >> > declarations in your layer: point and annotation. That could also be a > >> > problem ;-) > >> > > >> > Cheers, Michael > >> > > >> > > >> > 2008/4/18 Clemiou : > >> >> > >> >> Hi! > >> >> > >> >> I'd like displaying points and labels. My points are on MySql database and I use them with OGR. > >> >> The connexion is OK and I think my mapfile too. > >> >> But I don't see the points and the labels. > >> >> > >> >> My codes can be see on: http://www.forumsig.org/showthread.php?p=144085#post144085 > >> >> > >> >> I hope find someone to help me. > >> >> > >> >> Have a nice day. > >> >> > >> >> Clement > >> >> > >> >> PS: Excuse me for my English, I'm a frenchy! > >> >> > >> >> _________________________________________________________________ > >> >> Cr?ez votre disque dur virtuel Windows Live SkyDrive, 5Go de stockage gratuit ! > >> >> http://www.windowslive.fr/skydrive/_______________________________________________ > >> >> mapserver-users mailing list > >> >> mapserver-users at lists.osgeo.org > >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> >> > >> > > >> > > >> > > >> > -- > >> > ----------------------------------------------------------- > >> > Michael Schulz > >> > mschulz at webgis.de > >> > > >> > in medias res > >> > Gesellschaft f?r Informationstechnologie mbH > >> > > >> > In den Weihermatten 66 > >> > 79108 Freiburg > >> > > >> > Tel +49 (0)761 556959-5 > >> > Fax +49 (0)761 556959-6 > >> > > >> > http://www.webgis.de / http://www.zopecms.de > >> > ----------------------------------------------------------- > >> > >> _________________________________________________________________ > >> Cr?ez votre disque dur virtuel Windows Live SkyDrive, 5Go de stockage gratuit ! > >> http://www.windowslive.fr/skydrive/ > > > > > > > > -- > > ----------------------------------------------------------- > > Michael Schulz > > mschulz at webgis.de > > > > in medias res > > Gesellschaft f?r Informationstechnologie mbH > > > > In den Weihermatten 66 > > 79108 Freiburg > > > > Tel +49 (0)761 556959-5 > > Fax +49 (0)761 556959-6 > > > > http://www.webgis.de / http://www.zopecms.de > > ----------------------------------------------------------- > > _________________________________________________________________ > Cr?ez votre disque dur virtuel Windows Live SkyDrive, 5Go de stockage gratuit ! > http://www.windowslive.fr/skydrive/ -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 79108 Freiburg Tel +49 (0)761 556959-5 Fax +49 (0)761 556959-6 http://www.webgis.de / http://www.zopecms.de ----------------------------------------------------------- From punk.kish at gmail.com Fri Apr 18 06:49:48 2008 From: punk.kish at gmail.com (P Kishor) Date: Fri, 18 Apr 2008 08:49:48 -0500 Subject: [mapserver-users] MapServer logs In-Reply-To: <4808A467.5000703@mapgears.com> References: <4808A467.5000703@mapgears.com> Message-ID: On 4/18/08, Daniel Morissette wrote: > P Kishor wrote: > > > > > I want MapServer to write every call that it makes to the database via > > OGR. So, I added the following line to my map file > > WEB > > .. > > LOG "/Users/punkish/Sites/sqlitegis/tmp/ms.log" > > END > > > > > > IIRC, LOG only logs some info on the mapserv request status at the end of > its execution. I don't use it much and don't know much about it. > > To get debugging output, with MapServer 5.0+, set: > > CONFIG "MS_ERRORFILE" > "/Users/punkish/Sites/sqlitegis/tmp/ms.log" > > ... and then set DEBUG level (ON, or number between 1 and 5) at the > top-level in the mapfile and in each layer for which you want debugging > output. > Very nice. tail tmp/ms.log shows me [Fri Apr 18 08:46:54 2008].505608 msOGRLayerClose(/Users/punkish/Data/sqlitegis/wi.db). [Fri Apr 18 08:46:54 2008].505626 msOGRFileClose(/Users/punkish/Data/sqlitegis/wi.db,-1). [Fri Apr 18 08:46:54 2008].505647 msConnPoolRelease(sg_zip,/Users/punkish/Data/sqlitegis/wi.db,0x1126de0) [Fri Apr 18 08:46:54 2008].505654 msConnPoolClose(/Users/punkish/Data/sqlitegis/wi.db,0x1126de0) [Fri Apr 18 08:46:54 2008].506741 msDrawMap(): Layer 0 (sg_zip), 0.257s [Fri Apr 18 08:46:54 2008].216458 msOGRFileOpen(/Users/punkish/Data/sqlitegis/wi.db)... [Fri Apr 18 08:46:54 2008].228475 OGROPen(/Users/punkish/Data/sqlitegis/wi.db) [Fri Apr 18 08:46:54 2008].231712 msConnPoolRegister(sg_zip,/Users/punkish/Data/sqlitegis/wi.db,0x1126de0) Unfortunately, it doesn't log the actual SQL calls being made to the db. Perhaps that is an OGR logging issue. So, the next step is to find a way to log that. > More details are available in RFC-28: > > http://mapserver.gis.umn.edu/development/rfc/ms-rfc-28 > > Daniel > -- > Daniel Morissette > http://www.mapgears.com/ From thomas.bonfort at gmail.com Fri Apr 18 06:56:40 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 18 Apr 2008 15:56:40 +0200 Subject: [mapserver-users] Truetype symbols won't render in AGG png? In-Reply-To: References: Message-ID: can you include your symbol and layer definition please? what version are you using? ms4w , ... ? do you have the possibility of using a locally compiled version from the development branch (ie trunk)? regards, thomas On Fri, Apr 18, 2008 at 2:55 PM, Barend Kobben wrote: > Hi, > > Since upgrading to 5 and using the AGG renderer for antialiassed PNG, my > truetype font symbols won't render properly. > > See > http://geoserver.itc.nl/cgi-bin/mapserv.exe?map=D:/Inetpub/geoserver/mapserv > er/config.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=forest,railroa > d,airports&SRS=EPSG:4326&BBOX=97.35,5.61,105.64,20.47&WIDTH=400&HEIGHT=600&F > ORMAT=image/png > > When requesting the same as jpeg (change image/png to image/jpeg in the URL) > the symbols are there again, but now of course no nice anti-aliassing... > > Both worked fine in 4.10, I changed nothing in my mapfile, other then adding > in the beginning: > > IMAGETYPE PNG24 ## employ AGG to for anti-aliassing > OUTPUTFORMAT > NAME 'AGG' > DRIVER AGG/PNG > MIMETYPE "image/png" > IMAGEMODE RGB > EXTENSION "png" > END > > As indicated on the AGG rendering page on the website. > > Strangely enough the legend labels, which are also truetype, work fine... > > > -- > Barend K?bben > International Institute for Geo-Information > Sciences and Earth Observation (ITC) > PO Box 6 > 7500AA Enschede, The Netherlands > +31 (0)53 4874253 > > > > 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. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From pspencer at dmsolutions.ca Fri Apr 18 07:01:54 2008 From: pspencer at dmsolutions.ca (Paul Spencer) Date: Fri, 18 Apr 2008 10:01:54 -0400 Subject: [mapserver-users] How to tile a large TIF image? In-Reply-To: References: Message-ID: <574780D2-525F-475E-B51C-7ECCD936A34C@dmsolutions.ca> Dejan, I'm not really sure that there would be a noticeable performance difference, and I definitely don't feel sufficiently educated to comment on why one approach would be superior to another, except that I find it much easier to manage single files and to set up a map file to point to them. The process of creating multiple files and setting up a tileindex can be automated, certainly, but I think it is a little more complicated especially for the beginner. The multiple files approach requires mapserver to open the tileindex file, find the polygons that intersect the requested extent, extract the references to the actual disk files, open the disk files using gdal to get the content and composite those into the memory copy of the map. The single file approach does something very similar except that GDAL handles it and there is only one open file handle. I'm not sure that there is a significant overhead to the first approach just on the basis of files needing to be opened. I'm hoping others more qualified will jump in here (Frank, Ed ...) and provide more educated opinions. Cheers Paul On 18-Apr-08, at 9:40 AM, Dejan.Gambin at pula.hr wrote: > > Paul, > > I am just interested in one thing: > > If you say "breaking" a single tiff file with "TILED=YES" is > equivalent to breaking into individual files and using tileindex - > does it mean it is ALWAYS better to create a single file with > "internal" tiling than create many files and using tileindex? I > suppose the answer is NO, but I would very like to know why? > > For example, if you need to display a region that covers several > "blocks", then in the first case you open just one file, in the > second you open several files. So the first method has less overhead > right? What are the opposite situations then? > > thanks very much > > regards, dejan > > mapserver-users-bounces at lists.osgeo.org wrote on 18.04.2008 13:11:47: > > > Stefan, > > > > I don't think you can specify 10'', you need something in pixels. > But > > the command is also probably not what you really need to do. > > > > More likely, you should be doing the following: > > > > gdal_translate -co "TILED=YES" gebco/bathymetry.tif gebco/ > > bathmetry_tiled.tif > > > > This will create a single tif file that has an internal block size > of > > 256x256 - you can think of this as having broken your tif up into > > 256x256 tiles but keeps them all within the same file. This is > > equivalent to breaking the tif up into individual files, creating a > > shapefile that has rectangles for each individual files' extent, and > > using that as a tile index in mapserver. > > > > Next, you want to do this: > > > > gdaladdo gebco/bathymetry.tif 2 4 6 8 16 > > > > this will pre-compute smaller versions of the tif image called > > overviews at 1/2, 1/4 1/6 1/8 and 1/16 of the original size of the > tif > > - this makes it much more efficient for gdal to return exactly what > > mapserver is asking for at any given scale. Depending on the > range of > > scales that you need to display your raster image at, you can add > more > > overview levels (or take some away). > > > > With this two commands, you can make your rasters much more > efficient > > for mapserver and probably avoid the need to split them up into many > > files. > > > > It does make the file somewhat larger. If you are working with very > > large files ( > 4GB ) then you may run into some problems with tiff > > and may need to investigate another format or a compressed format > like > > ECW or MrSID (both requiring commercial licenses I believe). > > > > There are also some built in compression schemes for tiffs in gdal > > which you can apply when running gdal_translate (see http://www. > > gdal.org/frmt_gtiff.html > > for creation options), for instance: > > > > gdal_translate -co "TILED=YES" -co "COMPRESS=JPEG" -co > > "JPEG_QUALITY=80" gebco/bathymetry.tif gebco/bathmetry_tiled.tif > > > > would compress the tif using JPEG compression (lossy) set to 80% > (low > > compression, small loss). > > > > Cheers > > > > Paul > > > > > > > > On 18-Apr-08, at 5:47 AM, Stefan Schwarzer wrote: > > > Thanks for the info. > > > > > > Did it like this: > > > > > > Library/Frameworks/GDAL.framework/Versions/1.5/Programs/ > > > gdal_translate -outsize 10'' 10'' -co TILED=YES gebco/ > bathymetry.tif > > > gebco/bathymetry_tiled.tif > > > > > > But get the message: "Segmentation fault" > > > > > > Anything that I did wrong? Or should do differently? > > > > > > Thanks for a hint, > > > > > > Stef > > > > > >> Hi, > > >> > > >> Gdal_translate program has options for you: > > >> > > >> c:\FWTools>gdal_translate > > >> Usage: gdal_translate [--help-general] > > >> [-ot {Byte/Int16/UInt16/UInt32/Int32/Float32/Float64/ > > >> CInt16/CInt32/CFloat32/CFloat64}] [-strict] > > >> [-of format] [-b band] [-outsize xsize[%] ysize[%]] > > >> [-scale [src_min src_max [dst_min dst_max]]] > > >> [-srcwin xoff yoff xsize ysize] [-projwin ulx uly lrx lry] > > >> [-a_srs srs_def] [-a_ullr ulx uly lrx lry] [-a_nodata > value] > > >> [-gcp pixel line easting northing [elevation]]* > > >> [-mo "META-TAG=VALUE"]* [-quiet] [-sds] > > >> [-co "NAME=VALUE"]* > > >> src_dataset dst_dataset > > >> > > >> By playing with -srcwin or possibly with -outsize and -projwin > you > > >> should be able to split your image as you wish. Read more from > > >> http://gdal.org/gdal_translate.html > > >> > > >> -Jukka Rahkonen- > > >> > > >> > > >> > > >> L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto: > > mapserver-users-bounces at lists.osgeo.org > > >> ] Puolesta Stefan Schwarzer > > >> L?hetetty: 18. huhtikuuta 2008 12:05 > > >> Vastaanottaja: mapserver-users at lists.osgeo.org > > >> Aihe: [mapserver-users] How to tile a large TIF image? > > >> > > >> Hi there, > > >> > > >> I would like to use instead of single large tif image smaller > > >> tiles. Although I am well aware of mapserver's and gdal's > > >> possibilities to create the shapes for it, I first need to > "split" > > >> the large tif into 20 or 50 or 100 tiles. > > >> > > >> Can anyone give me a hint with what kind of software this is > > >> possible? > > >> > > >> There is an ArcGIS script, but it doesn't work on my machine ( > > http://arcscripts.esri.com/details.asp?dbid=13978 > > >> ). > > >> > > >> Thanks for any hints, > > >> > > >> Stef > > >> > > >> > ____________________________________________________________________ > > >> > > >> Stefan Schwarzer > > >> > > >> Lean Back and Relax - Enjoy some Nature Photography > > >> http://photoblog.la-famille-schwarzer.de > > >> > > >> Appetite for Global Data? UNEP GEO Data Portal: > > >> http://geodata.grid.unep.ch > > >> > > >> > ____________________________________________________________________ > > >> > > >> > > >> > > >> > > >> > > >> > > > > > > _______________________________________________ > > > 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://www.dmsolutions.ca/ > > > > _______________________________________________ > > 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://www.dmsolutions.ca/ From Jukka.Rahkonen at mmmtike.fi Fri Apr 18 07:04:35 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 18 Apr 2008 17:04:35 +0300 Subject: [mapserver-users] How to tile a large TIF image? References: <78D04DF3-47E7-467B-892B-D3278A346220@dmsolutions.ca> Message-ID: Perhaps your environment is not correctly set. Try downloading FWTools, it has a script that sets paths etc. ready. -Jukka- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Stefan Schwarzer L?hetetty: pe 18.4.2008 16:02 Vastaanottaja: mapserver-users at lists.osgeo.org Kopio: Paul Spencer Aihe: Re: [mapserver-users] How to tile a large TIF image? Thanks a lot for these details. That should be added to the existing documents! But unfortunately I still get a "Segmentation fault" message... Stef > Stefan, > > I don't think you can specify 10'', you need something in pixels. > But the command is also probably not what you really need to do. > > More likely, you should be doing the following: > > gdal_translate -co "TILED=YES" gebco/bathymetry.tif gebco/ > bathmetry_tiled.tif > > This will create a single tif file that has an internal block size > of 256x256 - you can think of this as having broken your tif up into > 256x256 tiles but keeps them all within the same file. This is > equivalent to breaking the tif up into individual files, creating a > shapefile that has rectangles for each individual files' extent, and > using that as a tile index in mapserver. > > Next, you want to do this: > > gdaladdo gebco/bathymetry.tif 2 4 6 8 16 > > this will pre-compute smaller versions of the tif image called > overviews at 1/2, 1/4 1/6 1/8 and 1/16 of the original size of the > tif - this makes it much more efficient for gdal to return exactly > what mapserver is asking for at any given scale. Depending on the > range of scales that you need to display your raster image at, you > can add more overview levels (or take some away). > > With this two commands, you can make your rasters much more > efficient for mapserver and probably avoid the need to split them up > into many files. > > It does make the file somewhat larger. If you are working with very > large files ( > 4GB ) then you may run into some problems with tiff > and may need to investigate another format or a compressed format > like ECW or MrSID (both requiring commercial licenses I believe). > > There are also some built in compression schemes for tiffs in gdal > which you can apply when running gdal_translate (see http://www.gdal.org/frmt_gtiff.html > for creation options), for instance: > > gdal_translate -co "TILED=YES" -co "COMPRESS=JPEG" -co > "JPEG_QUALITY=80" gebco/bathymetry.tif gebco/bathmetry_tiled.tif > > would compress the tif using JPEG compression (lossy) set to 80% > (low compression, small loss). > > Cheers > > Paul > > > > On 18-Apr-08, at 5:47 AM, Stefan Schwarzer wrote: >> Thanks for the info. >> >> Did it like this: >> >> Library/Frameworks/GDAL.framework/Versions/1.5/Programs/ >> gdal_translate -outsize 10'' 10'' -co TILED=YES gebco/ >> bathymetry.tif gebco/bathymetry_tiled.tif >> >> But get the message: "Segmentation fault" >> >> Anything that I did wrong? Or should do differently? >> >> Thanks for a hint, >> >> Stef >> >>> Hi, >>> >>> Gdal_translate program has options for you: >>> >>> c:\FWTools>gdal_translate >>> Usage: gdal_translate [--help-general] >>> [-ot {Byte/Int16/UInt16/UInt32/Int32/Float32/Float64/ >>> CInt16/CInt32/CFloat32/CFloat64}] [-strict] >>> [-of format] [-b band] [-outsize xsize[%] ysize[%]] >>> [-scale [src_min src_max [dst_min dst_max]]] >>> [-srcwin xoff yoff xsize ysize] [-projwin ulx uly lrx lry] >>> [-a_srs srs_def] [-a_ullr ulx uly lrx lry] [-a_nodata value] >>> [-gcp pixel line easting northing [elevation]]* >>> [-mo "META-TAG=VALUE"]* [-quiet] [-sds] >>> [-co "NAME=VALUE"]* >>> src_dataset dst_dataset >>> >>> By playing with -srcwin or possibly with -outsize and -projwin you >>> should be able to split your image as you wish. Read more from >>> http://gdal.org/gdal_translate.html >>> >>> -Jukka Rahkonen- >>> >>> >>> >>> L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org >>> ] Puolesta Stefan Schwarzer >>> L?hetetty: 18. huhtikuuta 2008 12:05 >>> Vastaanottaja: mapserver-users at lists.osgeo.org >>> Aihe: [mapserver-users] How to tile a large TIF image? >>> >>> Hi there, >>> >>> I would like to use instead of single large tif image smaller >>> tiles. Although I am well aware of mapserver's and gdal's >>> possibilities to create the shapes for it, I first need to "split" >>> the large tif into 20 or 50 or 100 tiles. >>> >>> Can anyone give me a hint with what kind of software this is >>> possible? >>> >>> There is an ArcGIS script, but it doesn't work on my machine ( http://arcscripts.esri.com/details.asp?dbid=13978 >>> ). >>> >>> Thanks for any hints, >>> >>> Stef >>> >>> ____________________________________________________________________ >>> >>> Stefan Schwarzer >>> >>> Lean Back and Relax - Enjoy some Nature Photography >>> http://photoblog.la-famille-schwarzer.de >>> >>> Appetite for Global Data? UNEP GEO Data Portal: >>> http://geodata.grid.unep.ch >>> >>> ____________________________________________________________________ >>> >>> >>> >>> >>> >>> >> >> _______________________________________________ >> 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://www.dmsolutions.ca/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Dejan.Gambin at pula.hr Fri Apr 18 06:40:38 2008 From: Dejan.Gambin at pula.hr (Dejan.Gambin at pula.hr) Date: Fri, 18 Apr 2008 15:40:38 +0200 Subject: [mapserver-users] How to tile a large TIF image? In-Reply-To: <78D04DF3-47E7-467B-892B-D3278A346220@dmsolutions.ca> Message-ID: Paul, I am just interested in one thing: If you say "breaking" a single tiff file with "TILED=YES" is equivalent to breaking into individual files and using tileindex - does it mean it is ALWAYS better to create a single file with "internal" tiling than create many files and using tileindex? I suppose the answer is NO, but I would very like to know why? For example, if you need to display a region that covers several "blocks", then in the first case you open just one file, in the second you open several files. So the first method has less overhead right? What are the opposite situations then? thanks very much regards, dejan mapserver-users-bounces at lists.osgeo.org wrote on 18.04.2008 13:11:47: > Stefan, > > I don't think you can specify 10'', you need something in pixels. But > the command is also probably not what you really need to do. > > More likely, you should be doing the following: > > gdal_translate -co "TILED=YES" gebco/bathymetry.tif gebco/ > bathmetry_tiled.tif > > This will create a single tif file that has an internal block size of > 256x256 - you can think of this as having broken your tif up into > 256x256 tiles but keeps them all within the same file. This is > equivalent to breaking the tif up into individual files, creating a > shapefile that has rectangles for each individual files' extent, and > using that as a tile index in mapserver. > > Next, you want to do this: > > gdaladdo gebco/bathymetry.tif 2 4 6 8 16 > > this will pre-compute smaller versions of the tif image called > overviews at 1/2, 1/4 1/6 1/8 and 1/16 of the original size of the tif > - this makes it much more efficient for gdal to return exactly what > mapserver is asking for at any given scale. Depending on the range of > scales that you need to display your raster image at, you can add more > overview levels (or take some away). > > With this two commands, you can make your rasters much more efficient > for mapserver and probably avoid the need to split them up into many > files. > > It does make the file somewhat larger. If you are working with very > large files ( > 4GB ) then you may run into some problems with tiff > and may need to investigate another format or a compressed format like > ECW or MrSID (both requiring commercial licenses I believe). > > There are also some built in compression schemes for tiffs in gdal > which you can apply when running gdal_translate (see http://www. > gdal.org/frmt_gtiff.html > for creation options), for instance: > > gdal_translate -co "TILED=YES" -co "COMPRESS=JPEG" -co > "JPEG_QUALITY=80" gebco/bathymetry.tif gebco/bathmetry_tiled.tif > > would compress the tif using JPEG compression (lossy) set to 80% (low > compression, small loss). > > Cheers > > Paul > > > > On 18-Apr-08, at 5:47 AM, Stefan Schwarzer wrote: > > Thanks for the info. > > > > Did it like this: > > > > Library/Frameworks/GDAL.framework/Versions/1.5/Programs/ > > gdal_translate -outsize 10'' 10'' -co TILED=YES gebco/bathymetry.tif > > gebco/bathymetry_tiled.tif > > > > But get the message: "Segmentation fault" > > > > Anything that I did wrong? Or should do differently? > > > > Thanks for a hint, > > > > Stef > > > >> Hi, > >> > >> Gdal_translate program has options for you: > >> > >> c:\FWTools>gdal_translate > >> Usage: gdal_translate [--help-general] > >> [-ot {Byte/Int16/UInt16/UInt32/Int32/Float32/Float64/ > >> CInt16/CInt32/CFloat32/CFloat64}] [-strict] > >> [-of format] [-b band] [-outsize xsize[%] ysize[%]] > >> [-scale [src_min src_max [dst_min dst_max]]] > >> [-srcwin xoff yoff xsize ysize] [-projwin ulx uly lrx lry] > >> [-a_srs srs_def] [-a_ullr ulx uly lrx lry] [-a_nodata value] > >> [-gcp pixel line easting northing [elevation]]* > >> [-mo "META-TAG=VALUE"]* [-quiet] [-sds] > >> [-co "NAME=VALUE"]* > >> src_dataset dst_dataset > >> > >> By playing with -srcwin or possibly with -outsize and -projwin you > >> should be able to split your image as you wish. Read more from > >> http://gdal.org/gdal_translate.html > >> > >> -Jukka Rahkonen- > >> > >> > >> > >> L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org > >> ] Puolesta Stefan Schwarzer > >> L?hetetty: 18. huhtikuuta 2008 12:05 > >> Vastaanottaja: mapserver-users at lists.osgeo.org > >> Aihe: [mapserver-users] How to tile a large TIF image? > >> > >> Hi there, > >> > >> I would like to use instead of single large tif image smaller > >> tiles. Although I am well aware of mapserver's and gdal's > >> possibilities to create the shapes for it, I first need to "split" > >> the large tif into 20 or 50 or 100 tiles. > >> > >> Can anyone give me a hint with what kind of software this is > >> possible? > >> > >> There is an ArcGIS script, but it doesn't work on my machine ( > http://arcscripts.esri.com/details.asp?dbid=13978 > >> ). > >> > >> Thanks for any hints, > >> > >> Stef > >> > >> ____________________________________________________________________ > >> > >> Stefan Schwarzer > >> > >> Lean Back and Relax - Enjoy some Nature Photography > >> http://photoblog.la-famille-schwarzer.de > >> > >> Appetite for Global Data? UNEP GEO Data Portal: > >> http://geodata.grid.unep.ch > >> > >> ____________________________________________________________________ > >> > >> > >> > >> > >> > >> > > > > _______________________________________________ > > 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://www.dmsolutions.ca/ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From stefan.schwarzer at grid.unep.ch Fri Apr 18 07:31:01 2008 From: stefan.schwarzer at grid.unep.ch (Stefan Schwarzer) Date: Fri, 18 Apr 2008 16:31:01 +0200 Subject: [mapserver-users] ASCII -> UTF-8 convert problems for importing (GIS) data Message-ID: <1271ED51-BE7D-4A72-AAC5-860F028D14F8@grid.unep.ch> Hi there, hmm.... I have a shapefile, which has some unorthodox characters (?, ?, ...). Now, when importing the file (via shp2pgsql) into postgres, it complains about it not being UTF-8 (my database has that format). So, how can I convert either the dbf file or than in a later stage the created text file from (I guess) ASCII into UTF-8? Thanks for any hints, Stef From yjacolin at free.fr Fri Apr 18 07:37:51 2008 From: yjacolin at free.fr (Jacolin Yves) Date: Fri, 18 Apr 2008 16:37:51 +0200 Subject: [mapserver-users] ASCII -> UTF-8 convert problems for importing (GIS) data In-Reply-To: <1271ED51-BE7D-4A72-AAC5-860F028D14F8@grid.unep.ch> References: <1271ED51-BE7D-4A72-AAC5-860F028D14F8@grid.unep.ch> Message-ID: <200804181637.51277.yjacolin@free.fr> Le Friday 18 April 2008 16:31:01 Stefan Schwarzer, vous avez ?crit?: > Hi there, > > hmm.... I have a shapefile, which has some unorthodox characters (?, > ?, ...). Now, when importing the file (via shp2pgsql) into postgres, > it complains about it not being UTF-8 (my database has that format). > > So, how can I convert either the dbf file or than in a later stage the > created text file from (I guess) ASCII into UTF-8? > > Thanks for any hints, > > Stef_______________________________________________ Hi, You have an option for shp2pgsql (-W I think) to tell shp2pgsql to convert your data into this encoding: -W Specify the character encoding of Shape's attribute column. (default : "ASCII") Y. -- Yves Jacolin --- http://softlibre.gloobe.org From thomas.bonfort at gmail.com Fri Apr 18 07:46:24 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Fri, 18 Apr 2008 16:46:24 +0200 Subject: [mapserver-users] Truetype symbols won't render in AGG png? In-Reply-To: References: Message-ID: ok, the culprit is CHARACTER "o" try replacing that with CHARACTER 'o' . ... or wait for the 5.2 ms4w binaries, as this bug is fixed there cheers, thomas On Fri, Apr 18, 2008 at 4:05 PM, Barend Kobben wrote: > > can you include your symbol and layer definition please? > > Sure, the .map file (with only the layer for these symbols) is at the bottom > of this message. > > > > what version are you using? ms4w , ... ? > From the Getcapabilities output: > 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 > > It's the MS binaries as included in ms4w, but used as a CGI 'behind' IIS 6, > running on Windows Server 2003 SP 2. > > > > do you have the possibility > > of using a locally compiled version from the development branch (ie > > trunk)? > No. > > -- > > Barend K?bben > International Institute for Geo-Information > Sciences and Earth Observation (ITC) > PO Box 6 > 7500AA Enschede, The Netherlands > +31 (0)53 4874253 > > > > > ##################################### > > MAP > NAME Thailand > > > IMAGETYPE PNG24 ## employ AGG to for anti-aliassing > OUTPUTFORMAT > NAME 'AGG' > DRIVER AGG/PNG > MIMETYPE "image/png" > IMAGEMODE RGB > EXTENSION "png" > END > > PROJECTION > "init=epsg:4326" > END > > FONTSET "fonts/fonts.list" > > LEGEND > KEYSIZE 15 10 > LABEL > TYPE TRUETYPE > FONT Arial > SIZE 9 > COLOR 0 0 0 > END > STATUS EMBED > POSITION UR > END > > EXTENT 97.35 5.61 105.64 20.47 > > WEB > IMAGEPATH "C:/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > METADATA > "map" "D:/Inetpub/geoserver/mapserver/config.map" > "ows_schemas_location" "http://schemas.opengeospatial.net" > "ows_title" "Sample WMS" > "ows_abstract" "Sample WMS. Enjoy!" > "ows_keywordlist" "Thailand,WMS,ITC" > "ows_onlineresource" > > "http://geoserver.itc.nl/cgi-bin/mapserv.exe?map=D:/Inetpub/geoserver/mapser > ver/config.map&" > "wms_srs" "EPSG:4326 EPSG:4240 EPSG:24047" > "wms_feature_info_mime_type" "application/vnd.ogc.gml" > "wms_feature_info_mime_type" "text/plain" > "wms_feature_info_mime_type" "text/html" > "wms_server_version" "1.1.1" > "wms_formatlist" "image/png,image/gif,image/wbmp,image/jpeg" > "wms_format" "image/png" > END > END > > SYMBOL > NAME "Airport" > TYPE TRUETYPE > FONT ESRI_Default_Marker > FILLED true > ANTIALIAS true > CHARACTER "o" > END > > LAYER > NAME airports > TYPE POINT > STATUS OFF > DATA data/airports > METADATA > "wms_title" "airports" > END > PROJECTION > "init=epsg:4326" > END > > LABELITEM "NameEnglis" > TOLERANCE 8 > TOLERANCEUNITS inches > CLASS > NAME "airports" > TEMPLATE "templates/airports_query.html" > STYLE > SYMBOL "airport" > SIZE 22 > COLOR 0 0 0 > END > LABEL > COLOR 0 0 0 > TYPE TRUETYPE > FONT arial > MINSIZE 6 > MAXSIZE 12 > POSITION AUTO > PARTIALS FALSE > MINDISTANCE 300 > BUFFER 4 > END > END > END > > END > ##################################### > > > > 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 mixon at waterstoneinc.com Fri Apr 18 08:11:08 2008 From: mixon at waterstoneinc.com (Brian Mixon) Date: Fri, 18 Apr 2008 11:11:08 -0400 Subject: [mapserver-users] MapServer v. 4.10.0 featureid problem In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF243@ecburexch1.ontario.int.ec.gc.ca> References: <4997F456680DAD4DA1E042C40C46361101BC8506@auper1ex002.au.aecomnet.com> <2DC5CCA14756424BBBEE8B4B2E4A682F036CF243@ecburexch1.ontario.int.ec.gc.ca> Message-ID: <2B5C1E3669B09548B6CAEE16BD6C300ECD94E4@be25.exg3.exghost.com> Thanks Tom and Jacob. That does help. It answers a few questions for me. I'll try the "gml_featureid" "ID" tag as well. Cheers, Brian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kralidis,Tom [Burlington] Sent: Friday, April 18, 2008 5:36 AM To: Delfos, Jacob; mapserver-users at lists.osgeo.org Cc: Brenton Wonders; Russell Huff Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem Jacob is bang on (I'm no expert on ArcGIS :) If I invoke a tool like ogrinfo on the shapefile, I see no attribute called "FID". I do see "ID" and "DISTRICT" attributes. Try setting "gml_featureid" "ID" in your mapfile, which should pick up the field and process accordingly. ..Tom > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Delfos, > Jacob > Sent: 17 April, 2008 11:55 PM > To: mapserver-users at lists.osgeo.org > Cc: Brenton Wonders; Russell Huff > Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem > > > Hi Guys, > > I'm no expert on WFS, but I do know ArcGIS. > The FID field is not really an attribute. It is more like an internal > ESRI unique row ID (which gets updated after edits to be sequential). > If you open up the attributes in another application (if you use > shapefiles, open up the DBF in OpenOffice Calc or Excel), then you > will find there is no FID field. Within ArcGIS, however, the FID field > is presented as if it were a normal attribute. > > Hope this helps, > > Jacob > > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brian > > Mixon > > Sent: 18 April 2008 01:34 > > To: Kralidis,Tom [Burlington]; mapserver-users at lists.osgeo.org > > Cc: Brenton Wonders; Russell Huff > > Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem > > > > Tom, > > > > As soon as the Brenton on this list gets in to work we'll > try to put > > something together for you. I'm working remotely and need his GIS > > knowledge to get something for you. > > > > Brian > > > > -----Original Message----- > > From: Kralidis,Tom [Burlington] [mailto:Tom.Kralidis at ec.gc.ca] > > Sent: Thursday, April 17, 2008 10:51 AM > > To: Brian Mixon; mapserver-users at lists.osgeo.org > > Cc: Brenton Wonders; Russell Huff > > Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem > > > > > > Hi Brian, > > > > What's your underlying data? If there's anyway you can package a > > small testcase, I can do a local test. > > > > ..Tom > > > > > > > -----Original Message----- > > > From: Brian Mixon [mailto:mixon at waterstoneinc.com] > > > Sent: 17 April, 2008 12:24 PM > > > To: Kralidis,Tom [Burlington]; mapserver-users at lists.osgeo.org > > > Cc: Brenton Wonders; Russell Huff > > > Subject: RE: [mapserver-users] MapServer v. 4.10.0 > featureid problem > > > > > > Hi Tom, > > > > > > Yes, it does. It's an Arc field that is present in all our data. > > > > > > Thanks, > > > Brian > > > > > > -----Original Message----- > > > From: Kralidis,Tom [Burlington] [mailto:Tom.Kralidis at ec.gc.ca] > > > Sent: Thursday, April 17, 2008 10:11 AM > > > To: Brian Mixon; mapserver-users at lists.osgeo.org > > > Cc: Brenton Wonders; Russell Huff > > > Subject: RE: [mapserver-users] MapServer v. 4.10.0 > featureid problem > > > > > > > > > Does the column/field "fid" exist in your data? > > > > > > ..Tom > > > > > > > > > > > > ________________________________ > > > > > > From: mapserver-users-bounces at lists.osgeo.org > > > [mailto:mapserver-users-bounces at lists.osgeo.org] On > Behalf Of Brian > > > Mixon > > > Sent: 17 April, 2008 11:51 AM > > > To: mapserver-users at lists.osgeo.org > > > Cc: Brenton Wonders; Russell Huff > > > Subject: [mapserver-users] MapServer v. 4.10.0 featureid problem > > > > > > > > > Hello, > > > > > > I'm a MapServer newbie and am having trouble with a WFS v. 1.0.0 > > > > > request. I'm trying to have all the features for a > particular layer > > > returned (which happens successfully) with the fid (feature id) > > > included as well (does not happen). I've included the > gml_featureid > > > 'fid' tag in the layer's metadata section of the mapfile but only > > > receive the > > > following warning the the xml/gml response: > > > > > > I've searched and read the various tickets that claim this > > problem is > > > fixed so I'm wondering what I'm doing wrong? > > > > > > Any information to point me in the right direction would be > > greatly > > > appreciated. > > > > > > Regards, > > > Brian Mixon > > > > > > > > > > > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > This email and any attachments are intended solely for the named > recipient and are confidential. The copying or distribution of them or > any information they contain by anyone other than the named recipient > is prohibited. If you have received this document in error, please > notify the sender and delete all copies from your computer system and > destroy all hard copies. It is the recipient's responsibility to check > this email and any attachments to this email for viruses before use. > > _______________________________________________ > 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 stefan.schwarzer at grid.unep.ch Fri Apr 18 08:12:30 2008 From: stefan.schwarzer at grid.unep.ch (Stefan Schwarzer) Date: Fri, 18 Apr 2008 17:12:30 +0200 Subject: [mapserver-users] ASCII -> UTF-8 convert problems for importing (GIS) data In-Reply-To: <200804181637.51277.yjacolin@free.fr> References: <1271ED51-BE7D-4A72-AAC5-860F028D14F8@grid.unep.ch> <200804181637.51277.yjacolin@free.fr> Message-ID: <5D28D4DD-F80A-4163-80B8-AD5FD372A33A@grid.unep.ch> >> Hi there, >> >> hmm.... I have a shapefile, which has some unorthodox characters (?, >> ?, ...). Now, when importing the file (via shp2pgsql) into postgres, >> it complains about it not being UTF-8 (my database has that format). >> >> So, how can I convert either the dbf file or than in a later stage >> the >> created text file from (I guess) ASCII into UTF-8? >> >> Thanks for any hints, >> >> Stef_______________________________________________ > > Hi, > > You have an option for shp2pgsql (-W I think) to tell shp2pgsql to > convert > your data into this encoding: Yep, tried that too. But I get this message: shp2pgsql -s 4326 -I -W UTF-8 -D countries.shp gis.countries_new > countries_new.sql Shapefile type: Polygon Postgis type: MULTIPOLYGON[2] utf8: Invalid or incomplete multibyte or wide character We didn't really understand if the "-W" is to specify what the format is (which we assumed) or into which format it has to be transformed. So, we would need something like transform ASCII into UTF-8. From ed at mcnierney.com Fri Apr 18 07:55:42 2008 From: ed at mcnierney.com (Ed McNierney) Date: Fri, 18 Apr 2008 10:55:42 -0400 Subject: [mapserver-users] How to tile a large TIF image? In-Reply-To: <574780D2-525F-475E-B51C-7ECCD936A34C@dmsolutions.ca> Message-ID: Dejan - I NEVER say "always"... But no, I do not think one could state that one approach (a single TIFF with overviews vs. multiple TIFFs at different resolutions) is ALWAYS better than the other. There are a number of factors involved, some of which depend on your filesystem and disk hardware characteristics. There isn't usually much "overhead" in opening a file by itself. What's expensive is a random seek from one place on a disk to another - that's VERY slow compared to almost anything else you can do on your machine except typing. If you have a single very large TIFF file with overviews, GDAL will need to read the TIFF directory, locate the overview, and seek to it to read it. That's really not very much different from reading the disk directory, locating the file, and seeking to it to read it in the other case. A very large file is more likely to be fragmented into different pieces across the disk, which will require more seeks and slow things down. And a large, fragmented directory will slow down opening one file due to lots of disk seeks. I'm sure there are scenarios in which one approach is faster than the other, but I would not worry about this factor right now. The most important things to do are: 1. Ensure there is a pre-built overview that matches the resolution MapServer will request. If possible, constrain the UI so only a predefined set of view scales are available, and build overviews at all of those scales. 2. Divide large files into tiles (either internally or externally) that are roughly comparable to the size of the output map image, or somewhat larger. It is inefficient to read a lot of small files to create one map, and it is also inefficient to parse through a single large (untiled) file to extract a small area to create one map. 3. Don't put a large number of files into a single directory. On many filesystems this will cause the directory to be stored in separate pieces across the disk, and this can turn "just open the file" into "lots of disk seeks". If you have more than a few thousand files in one directory or so (that's a very rough guess) think about reorganizing the data. - Ed On 4/18/08 10:01 AM, "Paul Spencer" wrote: > Dejan, > > I'm not really sure that there would be a noticeable performance > difference, and I definitely don't feel sufficiently educated to > comment on why one approach would be superior to another, except that > I find it much easier to manage single files and to set up a map file > to point to them. The process of creating multiple files and setting > up a tileindex can be automated, certainly, but I think it is a little > more complicated especially for the beginner. > > The multiple files approach requires mapserver to open the tileindex > file, find the polygons that intersect the requested extent, extract > the references to the actual disk files, open the disk files using > gdal to get the content and composite those into the memory copy of > the map. > > The single file approach does something very similar except that GDAL > handles it and there is only one open file handle. I'm not sure that > there is a significant overhead to the first approach just on the > basis of files needing to be opened. > > I'm hoping others more qualified will jump in here (Frank, Ed ...) and > provide more educated opinions. > > Cheers > > Paul > > On 18-Apr-08, at 9:40 AM, Dejan.Gambin at pula.hr wrote: >> >> Paul, >> >> I am just interested in one thing: >> >> If you say "breaking" a single tiff file with "TILED=YES" is >> equivalent to breaking into individual files and using tileindex - >> does it mean it is ALWAYS better to create a single file with >> "internal" tiling than create many files and using tileindex? I >> suppose the answer is NO, but I would very like to know why? >> >> For example, if you need to display a region that covers several >> "blocks", then in the first case you open just one file, in the >> second you open several files. So the first method has less overhead >> right? What are the opposite situations then? >> >> thanks very much >> >> regards, dejan >> >> mapserver-users-bounces at lists.osgeo.org wrote on 18.04.2008 13:11:47: >> >>> Stefan, >>> >>> I don't think you can specify 10'', you need something in pixels. >> But >>> the command is also probably not what you really need to do. >>> >>> More likely, you should be doing the following: >>> >>> gdal_translate -co "TILED=YES" gebco/bathymetry.tif gebco/ >>> bathmetry_tiled.tif >>> >>> This will create a single tif file that has an internal block size >> of >>> 256x256 - you can think of this as having broken your tif up into >>> 256x256 tiles but keeps them all within the same file. This is >>> equivalent to breaking the tif up into individual files, creating a >>> shapefile that has rectangles for each individual files' extent, and >>> using that as a tile index in mapserver. >>> >>> Next, you want to do this: >>> >>> gdaladdo gebco/bathymetry.tif 2 4 6 8 16 >>> >>> this will pre-compute smaller versions of the tif image called >>> overviews at 1/2, 1/4 1/6 1/8 and 1/16 of the original size of the >> tif >>> - this makes it much more efficient for gdal to return exactly what >>> mapserver is asking for at any given scale. Depending on the >> range of >>> scales that you need to display your raster image at, you can add >> more >>> overview levels (or take some away). >>> >>> With this two commands, you can make your rasters much more >> efficient >>> for mapserver and probably avoid the need to split them up into many >>> files. >>> >>> It does make the file somewhat larger. If you are working with very >>> large files ( > 4GB ) then you may run into some problems with tiff >>> and may need to investigate another format or a compressed format >> like >>> ECW or MrSID (both requiring commercial licenses I believe). >>> >>> There are also some built in compression schemes for tiffs in gdal >>> which you can apply when running gdal_translate (see http://www. >>> gdal.org/frmt_gtiff.html >>> for creation options), for instance: >>> >>> gdal_translate -co "TILED=YES" -co "COMPRESS=JPEG" -co >>> "JPEG_QUALITY=80" gebco/bathymetry.tif gebco/bathmetry_tiled.tif >>> >>> would compress the tif using JPEG compression (lossy) set to 80% >> (low >>> compression, small loss). >>> >>> Cheers >>> >>> Paul >>> >>> >>> >>> On 18-Apr-08, at 5:47 AM, Stefan Schwarzer wrote: >>>> Thanks for the info. >>>> >>>> Did it like this: >>>> >>>> Library/Frameworks/GDAL.framework/Versions/1.5/Programs/ >>>> gdal_translate -outsize 10'' 10'' -co TILED=YES gebco/ >> bathymetry.tif >>>> gebco/bathymetry_tiled.tif >>>> >>>> But get the message: "Segmentation fault" >>>> >>>> Anything that I did wrong? Or should do differently? >>>> >>>> Thanks for a hint, >>>> >>>> Stef >>>> >>>>> Hi, >>>>> >>>>> Gdal_translate program has options for you: >>>>> >>>>> c:\FWTools>gdal_translate >>>>> Usage: gdal_translate [--help-general] >>>>> [-ot {Byte/Int16/UInt16/UInt32/Int32/Float32/Float64/ >>>>> CInt16/CInt32/CFloat32/CFloat64}] [-strict] >>>>> [-of format] [-b band] [-outsize xsize[%] ysize[%]] >>>>> [-scale [src_min src_max [dst_min dst_max]]] >>>>> [-srcwin xoff yoff xsize ysize] [-projwin ulx uly lrx lry] >>>>> [-a_srs srs_def] [-a_ullr ulx uly lrx lry] [-a_nodata >> value] >>>>> [-gcp pixel line easting northing [elevation]]* >>>>> [-mo "META-TAG=VALUE"]* [-quiet] [-sds] >>>>> [-co "NAME=VALUE"]* >>>>> src_dataset dst_dataset >>>>> >>>>> By playing with -srcwin or possibly with -outsize and -projwin >> you >>>>> should be able to split your image as you wish. Read more from >>>>> http://gdal.org/gdal_translate.html >>>>> >>>>> -Jukka Rahkonen- >>>>> >>>>> >>>>> >>>>> L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto: >>> mapserver-users-bounces at lists.osgeo.org >>>>> ] Puolesta Stefan Schwarzer >>>>> L?hetetty: 18. huhtikuuta 2008 12:05 >>>>> Vastaanottaja: mapserver-users at lists.osgeo.org >>>>> Aihe: [mapserver-users] How to tile a large TIF image? >>>>> >>>>> Hi there, >>>>> >>>>> I would like to use instead of single large tif image smaller >>>>> tiles. Although I am well aware of mapserver's and gdal's >>>>> possibilities to create the shapes for it, I first need to >> "split" >>>>> the large tif into 20 or 50 or 100 tiles. >>>>> >>>>> Can anyone give me a hint with what kind of software this is >>>>> possible? >>>>> >>>>> There is an ArcGIS script, but it doesn't work on my machine ( >>> http://arcscripts.esri.com/details.asp?dbid=13978 >>>>> ). >>>>> >>>>> Thanks for any hints, >>>>> >>>>> Stef >>>>> >>>>> >> ____________________________________________________________________ >>>>> >>>>> Stefan Schwarzer >>>>> >>>>> Lean Back and Relax - Enjoy some Nature Photography >>>>> http://photoblog.la-famille-schwarzer.de >>>>> >>>>> Appetite for Global Data? UNEP GEO Data Portal: >>>>> http://geodata.grid.unep.ch >>>>> >>>>> >> ____________________________________________________________________ >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> 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://www.dmsolutions.ca/ >>> >>> _______________________________________________ >>> 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://www.dmsolutions.ca/ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From guillaume.sueur at neogeo-online.net Fri Apr 18 08:27:27 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Fri, 18 Apr 2008 17:27:27 +0200 Subject: [mapserver-users] ASCII -> UTF-8 convert problems for importing (GIS) data In-Reply-To: <5D28D4DD-F80A-4163-80B8-AD5FD372A33A@grid.unep.ch> References: <1271ED51-BE7D-4A72-AAC5-860F028D14F8@grid.unep.ch> <200804181637.51277.yjacolin@free.fr> <5D28D4DD-F80A-4163-80B8-AD5FD372A33A@grid.unep.ch> Message-ID: <4808BDDF.80203@neogeo-online.net> maybe you should set postgresql client encoding to the specific dataset encoding for the import. See this param in postgresql.conf regards, Guillaume Stefan Schwarzer a ?crit : >>> Hi there, >>> >>> hmm.... I have a shapefile, which has some unorthodox characters (?, >>> ?, ...). Now, when importing the file (via shp2pgsql) into postgres, >>> it complains about it not being UTF-8 (my database has that format). >>> >>> So, how can I convert either the dbf file or than in a later stage the >>> created text file from (I guess) ASCII into UTF-8? >>> >>> Thanks for any hints, >>> >>> Stef_______________________________________________ >> >> Hi, >> >> You have an option for shp2pgsql (-W I think) to tell shp2pgsql to >> convert >> your data into this encoding: > > Yep, tried that too. But I get this message: > > shp2pgsql -s 4326 -I -W UTF-8 -D countries.shp gis.countries_new > > countries_new.sql > Shapefile type: Polygon > Postgis type: MULTIPOLYGON[2] > utf8: Invalid or incomplete multibyte or wide character > > We didn't really understand if the "-W" is to specify what the format is > (which we assumed) or into which format it has to be transformed. > > So, we would need something like transform ASCII into > UTF-8._______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From mschulz at webgis.de Fri Apr 18 09:11:31 2008 From: mschulz at webgis.de (Michael Schulz) Date: Fri, 18 Apr 2008 18:11:31 +0200 Subject: [mapserver-users] Displaying points & la In-Reply-To: References: Message-ID: Hi Clement, please answer not directly to me, but to the mapserver list. sorry i forgot you have to add the -o output option to shp2img: shp2img -m aero.map -l AERO -all_debug 5 -o aero.gif Then it should save the image to the specified file. Still no points? Michael 2008/4/18 Clemiou : > > Hi! > > I resolved the last error but now, I don't have error! Just this log and always no points & labels. > > ================ > [Fri Apr 18 16:58:43 2008].559339 msOGRFileOpen(mysql.ovf)... > [Fri Apr 18 16:58:43 2008].569987 OGROPen(/usr/local/mapserver-5.0.2/../../../var/www/html/ms/map_files/mysql.ovf) > [Fri Apr 18 16:58:51 2008].160106 msConnPoolRegister(AERO,mysql.ovf,0x8802e20) > [Fri Apr 18 16:58:51 2008].332909 msOGRLayerClose(mysql.ovf). > [Fri Apr 18 16:58:51 2008].332975 msOGRFileClose(/usr/local/mapserver-5.0.2/../../../var/www/html/ms/map_files/mysql.ovf,0). > [Fri Apr 18 16:58:51 2008].332989 msConnPoolRelease(AERO,mysql.ovf,0x8802e20) > [Fri Apr 18 16:58:51 2008].333003 msConnPoolClose(mysql.ovf,0x8802e20) > [Fri Apr 18 16:58:51 2008].333276 msDrawMap(): Layer 1 (AERO), 7.953s > [Fri Apr 18 16:58:51 2008].333330 msDrawMap(): Drawing Label Cache, 0.000s > [Fri Apr 18 16:58:51 2008].333348 msDrawMap() total time: 7.976s > GIF87a? ? ??????,? ? ???????????H????? > ??L???? > > ???????????? (8HXhx??????? )9IYiy???????? *:JZjz?????? > K[k{???????? > ,N^n~???? /?O_? ???????0??? ]m}?????? > ??????? >?????? ??????????`? H? ???~ > .????? NH?? ^??? ???? ??"?H??&????*(R)???.??2?H? 6????:??? >? BI?'F ??'J.??"N> ?"RNI??V^???Z????^? ????I????????(R)????? ????I? ???????????? ? ?J??? ????.????> > ??'NJ???^?????????? > ????J?(c)??????(R)???(R)? > ????J??????(R)??????? > ???K??? ?????.????> > ???NK???^?????????? > ????K????????(R)????? > ????K?????????????? > ?? Lp? ?p > [Fri Apr 18 16:58:51 2008].616500 msFreeMap(): freeing map at 0x87297f8. > > =================== > > Thanks for your help > > > Clement > ---------------------------------------- > > Date: Fri, 18 Apr 2008 15:45:17 +0200 > > From: mschulz at webgis.de > > To: clems_mars at hotmail.com; mapserver-users at lists.osgeo.org > > Subject: Re: [mapserver-users] Displaying points & lab > > > > Hi Clement, > > > > please leave the thread also on the list... > > Ok, that is not the real debug output, merely the log. Did you try it > > from the command line with shp2img: > > > > shp2img -m aero.map -l AERO -all_debug 5 > > > > this should print some debug information to stdout. Are you using > > mapserver 5? Then you can set a special error log for each mapfile, > > with the directive CONFIG "MS_ERRORFILE" "/path/to/mserror.log" at the > > map level. > > > > Cheers, Michael > > > > > > > > 2008/4/18 Clemiou : > >> > >> Hi > >> > >> The one thing that I can see in the mapserver log is: > >> > >> Fri Apr 18 15:18:51 2008,18284,127.0.0.1,MS,3,1.241143 46.540217 1.445917 46.744991,-1.000000 -1.000000,FRANCE ,normal execution > >> > >> ^^ Very funny isn't it? > >> > >> Clement > >> ---------------------------------------- > >> > Date: Fri, 18 Apr 2008 15:03:59 +0200 > >> > From: mschulz at webgis.de > >> > To: clems_mars at hotmail.com; mapserver-users at lists.osgeo.org > >> > Subject: Re: [mapserver-users] Displaying points & labe > >> > > >> > Hi, > >> > > >> > could you have a look at the debug output? Turn debugging on with > >> > DEBUG on on the map and on the layer level, then you should get debug > >> > output, either to your configured mapserver log or the webserver > >> > (error) log. Another way woudl be to use shp2img. > >> > > >> > Cheers, Michael > >> > > >> > > >> > 2008/4/18 Clemiou : > >> >> > >> >> Hi, > >> >> > >> >> I have modifief my layer for just have the points, as you can see: > >> >> > >> >> > >> >> ############################# > >> >> # Le layer des a?rodromes . # > >> >> ############################# > >> >> > >> >> LAYER > >> >> NAME "AERO" > >> >> TYPE POINT > >> >> STATUS ON > >> >> PROJECTION > >> >> "init=epsg:27582" > >> >> END > >> >> TEMPLATE "ttt_query.html" > >> >> CONNECTIONTYPE OGR > >> >> CONNECTION "mysql.ovf" > >> >> #TOLERANCE 5 > >> >> #TYPE ANNOTATION > >> >> #LABELITEM "nom" > >> >> DATA "my_layer" > >> >> > >> >> > >> >> CLASS > >> >> NAME "my_class" > >> >> #LABEL > >> >> # ANGLE auto > >> >> #TYPE TRUETYPE > >> >> #ANTIALIAS TRUE > >> >> #MINFEATURESIZE 100 > >> >> #COLOR 255 255 255 > >> >> #OUTLINECOLOR 255 0 0 > >> >> #SIZE 20 > >> >> #FONT "arial" > >> >> #FORCE TRUE > >> >> #END # Fin LABEL AERO > >> >> > >> >> STYLE > >> >> SYMBOL 'circle' > >> >> SIZE 15 > >> >> COLOR 0 255 0 > >> >> #OUTLINECOLOR 255 0 0 > >> >> END # Fin du STYLE AERO > >> >> END # Fin de CLASS AERO > >> >> END # Fin du LAYER AERO > >> >> ============================ > >> >> > >> >> But it doesn't work. > >> >> > >> >> Thakns for your answer > >> >> Clement > >> >> ---------------------------------------- > >> >>> Date: Fri, 18 Apr 2008 14:51:44 +0200 > >> >>> From: mschulz at webgis.de > >> >>> To: clems_mars at hotmail.com > >> >>> Subject: Re: [mapserver-users] Displaying points & label > >> >>> CC: mapserver-users at lists.osgeo.org > >> >>> > >> >>> Hi, > >> >>> > >> >>> you are using a layer of type annotation. This type of layer usually > >> >>> does not display the actual point symbol, it only renders the label at > >> >>> that position. Thus you could try to use type point, to really draw > >> >>> the points and the labels... I just realized that you have two TYPE > >> >>> declarations in your layer: point and annotation. That could also be a > >> >>> problem ;-) > >> >>> > >> >>> Cheers, Michael > >> >>> > >> >>> > >> >>> 2008/4/18 Clemiou : > >> >>>> > >> >>>> Hi! > >> >>>> > >> >>>> I'd like displaying points and labels. My points are on MySql database and I use them with OGR. > >> >>>> The connexion is OK and I think my mapfile too. > >> >>>> But I don't see the points and the labels. > >> >>>> > >> >>>> My codes can be see on: http://www.forumsig.org/showthread.php?p=144085#post144085 > >> >>>> > >> >>>> I hope find someone to help me. > >> >>>> > >> >>>> Have a nice day. > >> >>>> > >> >>>> Clement > >> >>>> > >> >>>> PS: Excuse me for my English, I'm a frenchy! > >> >>>> > >> >>>> _________________________________________________________________ > >> >>>> Cr?ez votre disque dur virtuel Windows Live SkyDrive, 5Go de stockage gratuit ! > >> >>>> http://www.windowslive.fr/skydrive/_______________________________________________ > >> >>>> mapserver-users mailing list > >> >>>> mapserver-users at lists.osgeo.org > >> >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> >>>> > >> >>> > >> >>> > >> >>> > >> >>> -- > >> >>> ----------------------------------------------------------- > >> >>> Michael Schulz > >> >>> mschulz at webgis.de > >> >>> > >> >>> in medias res > >> >>> Gesellschaft f?r Informationstechnologie mbH > >> >>> > >> >>> In den Weihermatten 66 > >> >>> 79108 Freiburg > >> >>> > >> >>> Tel +49 (0)761 556959-5 > >> >>> Fax +49 (0)761 556959-6 > >> >>> > >> >>> http://www.webgis.de / http://www.zopecms.de > >> >>> ----------------------------------------------------------- > >> >> > >> >> _________________________________________________________________ > >> >> Cr?ez votre disque dur virtuel Windows Live SkyDrive, 5Go de stockage gratuit ! > >> >> http://www.windowslive.fr/skydrive/ > >> > > >> > > >> > > >> > -- > >> > ----------------------------------------------------------- > >> > Michael Schulz > >> > mschulz at webgis.de > >> > > >> > in medias res > >> > Gesellschaft f?r Informationstechnologie mbH > >> > > >> > In den Weihermatten 66 > >> > 79108 Freiburg > >> > > >> > Tel +49 (0)761 556959-5 > >> > Fax +49 (0)761 556959-6 > >> > > >> > http://www.webgis.de / http://www.zopecms.de > >> > ----------------------------------------------------------- > >> > >> _________________________________________________________________ > >> Cr?ez votre disque dur virtuel Windows Live SkyDrive, 5Go de stockage gratuit ! > >> http://www.windowslive.fr/skydrive/ > > > > > > > > -- > > ----------------------------------------------------------- > > Michael Schulz > > mschulz at webgis.de > > > > in medias res > > Gesellschaft f?r Informationstechnologie mbH > > > > In den Weihermatten 66 > > 79108 Freiburg > > > > Tel +49 (0)761 556959-5 > > Fax +49 (0)761 556959-6 > > > > http://www.webgis.de / http://www.zopecms.de > > ----------------------------------------------------------- > > _________________________________________________________________ > Cr?ez votre disque dur virtuel Windows Live SkyDrive, 5Go de stockage gratuit ! > http://www.windowslive.fr/skydrive/ -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 79108 Freiburg Tel +49 (0)761 556959-5 Fax +49 (0)761 556959-6 http://www.webgis.de / http://www.zopecms.de ----------------------------------------------------------- From clems_mars at hotmail.com Fri Apr 18 09:15:55 2008 From: clems_mars at hotmail.com (Clemiou) Date: Fri, 18 Apr 2008 16:15:55 +0000 Subject: [mapserver-users] Displaying points & labels Message-ID: Hi! Still no points! But I found perhaps something... My datas are in WGS84 format and my map in Lambert II. So, in my mapfile, my Map object has WGS84 projection, the layer of my Map, Lambert II format and the layer of my points the WGS84 format. But still no points. I don't know why. ^^ Thanks for your help. Clement _________________________________________________________________ D?couvrez les profils Messenger de vos amis ! http://home.services.spaces.live.com/ From mschulz at webgis.de Fri Apr 18 09:25:01 2008 From: mschulz at webgis.de (Michael Schulz) Date: Fri, 18 Apr 2008 18:25:01 +0200 Subject: [mapserver-users] Displaying points & label In-Reply-To: References: Message-ID: Hi, in your ovf as well as in the layer definition you claim your data to be in EPSG:27582, if it is actually in epsg:4326 then it should say so in both places. The layer projection defines in which system your data is in, the map projection defines in what system your image is rendered (and your data projected to on the fly if necessary). Cheers, Michael 2008/4/18 Clemiou : > > Hi! > > Still no points! > But I found perhaps something... > My datas are in WGS84 format and my map in Lambert II. > So, in my mapfile, my Map object has WGS84 projection, the layer of my Map, Lambert II format and the layer of my points the WGS84 format. > But still no points. > I don't know why. ^^ > > Thanks for your help. > Clement > _________________________________________________________________ > D?couvrez les profils Messenger de vos amis ! > http://home.services.spaces.live.com/_______________________________________________ > > > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 79108 Freiburg Tel +49 (0)761 556959-5 Fax +49 (0)761 556959-6 http://www.webgis.de / http://www.zopecms.de ----------------------------------------------------------- From paul_pag00 at hotmail.com Fri Apr 18 09:39:22 2008 From: paul_pag00 at hotmail.com (Paul Alarcon) Date: Fri, 18 Apr 2008 16:39:22 +0000 Subject: [mapserver-users] variable substitution Message-ID: Hello, i want to use variable suistitution in a map but i dont understand hoe i could replace teh varaible i n the template file, im using postgis for load the shape but i wnt to change the expression via variable sustitution. Help me please and thanks _________________________________________________________________ Connect to the next generation of MSN Messenger? http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline From mixon at waterstoneinc.com Fri Apr 18 09:43:20 2008 From: mixon at waterstoneinc.com (Brian Mixon) Date: Fri, 18 Apr 2008 12:43:20 -0400 Subject: [mapserver-users] MapServer v. 4.10.0 featureid problem In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF243@ecburexch1.ontario.int.ec.gc.ca> References: <4997F456680DAD4DA1E042C40C46361101BC8506@auper1ex002.au.aecomnet.com> <2DC5CCA14756424BBBEE8B4B2E4A682F036CF243@ecburexch1.ontario.int.ec.gc.ca> Message-ID: <2B5C1E3669B09548B6CAEE16BD6C300ECD9562@be25.exg3.exghost.com> Tom, Perhaps I should tell you why I'm after the (or any) unique AND sequential id field for a service's features. I'm trying to page the feature data in a UI and started designing my solution after having read the WFS v 1.0.0 spec. I assumed (yes, I know what happens when one does that (;>)) that I'd just use feature ids. I should have asked what mechanism MapServer employs to allow me to do something like this (the partial retrieval of features from a large dataset on some service somewhere). I'm going to bring back a certain number of features with each call to a WFS and as the user scrolls through this data I will make subsequent calls to the same service and ask for the next batch of features. Does this make sense and can you point me in the right direction for getting MapServer to do this? Thanks for your patience, Brian -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kralidis,Tom [Burlington] Sent: Friday, April 18, 2008 5:36 AM To: Delfos, Jacob; mapserver-users at lists.osgeo.org Cc: Brenton Wonders; Russell Huff Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem Jacob is bang on (I'm no expert on ArcGIS :) If I invoke a tool like ogrinfo on the shapefile, I see no attribute called "FID". I do see "ID" and "DISTRICT" attributes. Try setting "gml_featureid" "ID" in your mapfile, which should pick up the field and process accordingly. ..Tom > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Delfos, > Jacob > Sent: 17 April, 2008 11:55 PM > To: mapserver-users at lists.osgeo.org > Cc: Brenton Wonders; Russell Huff > Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem > > > Hi Guys, > > I'm no expert on WFS, but I do know ArcGIS. > The FID field is not really an attribute. It is more like an internal > ESRI unique row ID (which gets updated after edits to be sequential). > If you open up the attributes in another application (if you use > shapefiles, open up the DBF in OpenOffice Calc or Excel), then you > will find there is no FID field. Within ArcGIS, however, the FID field > is presented as if it were a normal attribute. > > Hope this helps, > > Jacob > > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Brian > > Mixon > > Sent: 18 April 2008 01:34 > > To: Kralidis,Tom [Burlington]; mapserver-users at lists.osgeo.org > > Cc: Brenton Wonders; Russell Huff > > Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem > > > > Tom, > > > > As soon as the Brenton on this list gets in to work we'll > try to put > > something together for you. I'm working remotely and need his GIS > > knowledge to get something for you. > > > > Brian > > > > -----Original Message----- > > From: Kralidis,Tom [Burlington] [mailto:Tom.Kralidis at ec.gc.ca] > > Sent: Thursday, April 17, 2008 10:51 AM > > To: Brian Mixon; mapserver-users at lists.osgeo.org > > Cc: Brenton Wonders; Russell Huff > > Subject: RE: [mapserver-users] MapServer v. 4.10.0 featureid problem > > > > > > Hi Brian, > > > > What's your underlying data? If there's anyway you can package a > > small testcase, I can do a local test. > > > > ..Tom > > > > > > > -----Original Message----- > > > From: Brian Mixon [mailto:mixon at waterstoneinc.com] > > > Sent: 17 April, 2008 12:24 PM > > > To: Kralidis,Tom [Burlington]; mapserver-users at lists.osgeo.org > > > Cc: Brenton Wonders; Russell Huff > > > Subject: RE: [mapserver-users] MapServer v. 4.10.0 > featureid problem > > > > > > Hi Tom, > > > > > > Yes, it does. It's an Arc field that is present in all our data. > > > > > > Thanks, > > > Brian > > > > > > -----Original Message----- > > > From: Kralidis,Tom [Burlington] [mailto:Tom.Kralidis at ec.gc.ca] > > > Sent: Thursday, April 17, 2008 10:11 AM > > > To: Brian Mixon; mapserver-users at lists.osgeo.org > > > Cc: Brenton Wonders; Russell Huff > > > Subject: RE: [mapserver-users] MapServer v. 4.10.0 > featureid problem > > > > > > > > > Does the column/field "fid" exist in your data? > > > > > > ..Tom > > > > > > > > > > > > ________________________________ > > > > > > From: mapserver-users-bounces at lists.osgeo.org > > > [mailto:mapserver-users-bounces at lists.osgeo.org] On > Behalf Of Brian > > > Mixon > > > Sent: 17 April, 2008 11:51 AM > > > To: mapserver-users at lists.osgeo.org > > > Cc: Brenton Wonders; Russell Huff > > > Subject: [mapserver-users] MapServer v. 4.10.0 featureid problem > > > > > > > > > Hello, > > > > > > I'm a MapServer newbie and am having trouble with a WFS v. 1.0.0 > > > > > request. I'm trying to have all the features for a > particular layer > > > returned (which happens successfully) with the fid (feature id) > > > included as well (does not happen). I've included the > gml_featureid > > > 'fid' tag in the layer's metadata section of the mapfile but only > > > receive the > > > following warning the the xml/gml response: > > > > > > I've searched and read the various tickets that claim this > > problem is > > > fixed so I'm wondering what I'm doing wrong? > > > > > > Any information to point me in the right direction would be > > greatly > > > appreciated. > > > > > > Regards, > > > Brian Mixon > > > > > > > > > > > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > This email and any attachments are intended solely for the named > recipient and are confidential. The copying or distribution of them or > any information they contain by anyone other than the named recipient > is prohibited. If you have received this document in error, please > notify the sender and delete all copies from your computer system and > destroy all hard copies. It is the recipient's responsibility to check > this email and any attachments to this email for viruses before use. > > _______________________________________________ > 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 punk.kish at gmail.com Fri Apr 18 10:31:24 2008 From: punk.kish at gmail.com (P Kishor) Date: Fri, 18 Apr 2008 12:31:24 -0500 Subject: [mapserver-users] Investigating OpenLayers -> MapServer (WMS) -> OGR -> db Message-ID: I am experimenting with OpenLayers calling MapServer (WMS) using OGR to extract data from a database. In a separate thread I asked about logging what MapServer is up to. With Daniel Morissette's help, I am now able to log the following -- [Fri Apr 18 08:46:54 2008].505608 msOGRLayerClose(/Users/punkish/Data/sqlitegis/wi.db). [Fri Apr 18 08:46:54 2008].505626 msOGRFileClose(/Users/punkish/Data/sqlitegis/wi.db,-1). [Fri Apr 18 08:46:54 2008].505647 msConnPoolRelease(sg_zip,/Users/punkish/Data/sqlitegis/wi.db,0x1126de0) [Fri Apr 18 08:46:54 2008].505654 msConnPoolClose(/Users/punkish/Data/sqlitegis/wi.db,0x1126de0) [Fri Apr 18 08:46:54 2008].506741 msDrawMap(): Layer 0 (sg_zip), 0.257s [Fri Apr 18 08:46:54 2008].216458 msOGRFileOpen(/Users/punkish/Data/sqlitegis/wi.db)... [Fri Apr 18 08:46:54 2008].228475 OGROPen(/Users/punkish/Data/sqlitegis/wi.db) [Fri Apr 18 08:46:54 2008].231712 msConnPoolRegister(sg_zip,/Users/punkish/Data/sqlitegis/wi.db,0x1126de0) yes, but I want the exact SQL statement being executed. See, in my mapfile, I ask for DATA "SELECT wkt_geometry FROM " But, OpenLayers sends a BBOX, so each SELECT should actually be something like SELECT wkt_geometry FROM
WHERE That is what I want to investigate. What exactly is OGR/MapServer executing? What is the form of "WHERE "? How can I log this level of detail? -- Puneet Kishor From crschmidt at metacarta.com Fri Apr 18 10:56:01 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Fri, 18 Apr 2008 13:56:01 -0400 Subject: [mapserver-users] Investigating OpenLayers -> MapServer (WMS) -> OGR -> db In-Reply-To: References: Message-ID: <20080418175600.GA20589@metacarta.com> On Fri, Apr 18, 2008 at 12:31:24PM -0500, P Kishor wrote: > SELECT wkt_geometry FROM
WHERE > > That is what I want to investigate. What exactly is OGR/MapServer > executing? What is the form of "WHERE BBOX>"? How can I log this level of detail? You'll likely need to modify OGR to log this level of detail. In general, this type of logging is done by the 'server' in DB environments: Since SQLIte doesn't *have* a server, I don't think there's any way to do this external to OGR, and I don't believe that it's an existing feature of the OGR sqlite driver. In any case, MapServer is the wrong list for this: gdal-dev is probably the right place to go. Regards, -- Christopher Schmidt MetaCarta From richard at winwaed.com Fri Apr 18 12:45:12 2008 From: richard at winwaed.com (Richard Marsden) Date: Fri, 18 Apr 2008 14:45:12 -0500 Subject: [mapserver-users] MapServier and OpenLayers - with PHP? Message-ID: <4808FA48.7020601@winwaed.com> Hello, This is my first post here and I'll have to admit to being a bit of a Mapserver beginner! At the moment I'm working with MapServer on a shared FreeBSD (Pair.com) system. Although I haven't managed to get CGI working (probably because I can't restart Apache), I do have PHP MapScript working. Eg. the "Map 3" example in Bill Kropla's "Beginning MapServer" book, and I'm well on the way to making my own maps using a different set of shapefiles that I have. I would like to use OpenLayers to make the maps appear more "snappy" and user friendly. I think I have some conceptual problems - is it possible to use OpenLayers with PHP MapScript? How do I go about it? I have one of the OpenLayers samples for MapScript: function init(){ map = new OpenLayers.Map( 'map' ); layer = new OpenLayers.Layer.MapServer( "OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'}, {gutter: 15}); map.addLayer(layer); map.setCenter(new OpenLayers.LonLat(lon, lat), zoom); map.addControl( new OpenLayers.Control.LayerSwitcher() ); } This looks simple enough, except for the MapScript URL! Where does it get the map file from? How would I get this to work with PHP, considering I can't get CGI to work? Thanks, Richard -- Richard Marsden Winwaed Software Technology LLC http://www.winwaed.com Tools and Add-ins for MapPoint - http://www.mapping-tools.com From crschmidt at metacarta.com Fri Apr 18 12:57:56 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Fri, 18 Apr 2008 15:57:56 -0400 Subject: [mapserver-users] MapServier and OpenLayers - with PHP? In-Reply-To: <4808FA48.7020601@winwaed.com> References: <4808FA48.7020601@winwaed.com> Message-ID: <20080418195756.GA18410@metacarta.com> On Fri, Apr 18, 2008 at 02:45:12PM -0500, Richard Marsden wrote: > This looks simple enough, except for the MapScript URL! Where does it > get the map file from? 1. '/wms/vmap0' doesn't use Mapscript, it uses MapServer as a CGI. 2. That path is a minimal CGI: it looks like: {{{ #!/bin/sh export MS_MAPFILE=/www/labs/map/vmap0.map exec /usr/lib/cgi-bin/mapserv }}} There's nothing hidden here, it just makes the URL prettier. You can equally do: http://localhost/cgi-bin/mapserv?map=/www/labs/map/vmap0.map instead. > How would I get this to work with PHP, considering I can't get CGI to work? I would suggest that getting CGI to work is likely to be a better path than trying to write a WMS request handler in PHP. Perhaps you should expand on why it doesn't work: you mentioned not being able to restart Apache: is that something that a web host could help you resolve? Does your web host allow you to run CGI executables? Regards, -- Christopher Schmidt MetaCarta From stefan.schwarzer at grid.unep.ch Fri Apr 18 13:04:06 2008 From: stefan.schwarzer at grid.unep.ch (Stefan Schwarzer) Date: Fri, 18 Apr 2008 22:04:06 +0200 Subject: [mapserver-users] Experiences with CartoWeb Message-ID: <960A55D4-5563-4E51-BE63-BDDCF70D416F@grid.unep.ch> Hi there, we've used mapserver a lot over the last years, in some minor as well as some major applications. Now, we're thinking to replace a mapping module in a major portal application with cartoweb, in order to avoid a duplication of the development of code, of having a more modular approach, to facilitate update and maintenance etc. What are your experiences in using Cartoweb? What are, upon your opinion, the major advantages or drawbacks? Anything we should be aware of before undergoing such a change in our application? Thanks for any advices, Stef From john.fl.tse at gmail.com Fri Apr 18 14:14:55 2008 From: john.fl.tse at gmail.com (john tse) Date: Fri, 18 Apr 2008 14:14:55 -0700 Subject: [mapserver-users] redrawing the map Message-ID: <871543920804181414j7561f17fs34d9c37e62fc5a90@mail.gmail.com> right now, i have a nearly functional code. This code is for zooming to a predetermined area. the problem is that the map doesn't get redrawn when i use this script. I found this script in the archive, and would like to know is there a line i have to add in order to get it to redraw or refresh the map. More importantly if this script is actually correct, any help is much appreciated. John
-------------- next part -------------- An HTML attachment was scrubbed... URL: From clems_mars at hotmail.com Fri Apr 18 14:29:04 2008 From: clems_mars at hotmail.com (Clemiou) Date: Fri, 18 Apr 2008 21:29:04 +0000 Subject: [mapserver-users] Displaying points & label In-Reply-To: References: Message-ID: Hi, Now I have the good projections I think but I don't see the points.I have: WGS84 for my map.EPSG:27582 for my map Layer WGS84 for my label layer. What do you think about that? Is it Ok with my datas (WGS84 for database datas and Lambert II for my Map). Thanks for you answer Clement > Date: Fri, 18 Apr 2008 18:25:01 +0200> From: mschulz at webgis.de> To: mapserver-users at lists.osgeo.org> Subject: Re: [mapserver-users] Displaying points & label> > Hi,> > in your ovf as well as in the layer definition you claim your data to> be in EPSG:27582, if it is actually in epsg:4326 then it should say so> in both places. The layer projection defines in which system your data> is in, the map projection defines in what system your image is> rendered (and your data projected to on the fly if necessary).> > Cheers, Michael> > 2008/4/18 Clemiou :> >> > Hi!> >> > Still no points!> > But I found perhaps something...> > My datas are in WGS84 format and my map in Lambert II.> > So, in my mapfile, my Map object has WGS84 projection, the layer of my Map, Lambert II format and the layer of my points the WGS84 format.> > But still no points.> > I don't know why. ^^> >> > Thanks for your help.> > Clement> > _________________________________________________________________> > D?couvrez les profils Messenger de vos amis !> > http://home.services.spaces.live.com/_______________________________________________> >> >> > mapserver-users mailing list> > mapserver-users at lists.osgeo.org> > http://lists.osgeo.org/mailman/listinfo/mapserver-users> >> > > > -- > -----------------------------------------------------------> Michael Schulz> mschulz at webgis.de> > in medias res> Gesellschaft f?r Informationstechnologie mbH> > In den Weihermatten 66> 79108 Freiburg> > Tel +49 (0)761 556959-5> Fax +49 (0)761 556959-6> > http://www.webgis.de / http://www.zopecms.de> -----------------------------------------------------------> _______________________________________________> mapserver-users mailing list> mapserver-users at lists.osgeo.org> http://lists.osgeo.org/mailman/listinfo/mapserver-users _________________________________________________________________ Cr?ez votre disque dur virtuel Windows Live SkyDrive, 5Go de stockage gratuit ! http://www.windowslive.fr/skydrive/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.callahan at UDel.Edu Fri Apr 18 22:30:39 2008 From: john.callahan at UDel.Edu (John Callahan) Date: Sat, 19 Apr 2008 01:30:39 -0400 Subject: [mapserver-users] How best to serve very large (300GB) raster data? Message-ID: <927165E85716A2BF6EB0AA66@[192.168.1.109]> I've been using ESRI products for quite a while. To serve a very large raster dataset I have (about 300 GB), or really any raster or vector, I usually just load the data into ArcSDE installed on Oracle and server through ArcIMS. However, I want to move away from ESRI/Oracle and into a more open environment, with all components being open source if possible. How best to serve a large raster dataset of about 300 GB? My data is in 2010 tiles, each a 3-band TIF of about 135 MB. >From my initial research, I like what MapServer can do and all of the potential clients (OpenLayers, ka-Map, and many more.) I also really like PostGIS for vectors...and have already started a project with PostGIS points, being maintained by Quantum GIS and mapped through Google Maps Javascript API and some AJAX/PHP code I wrote. My biggest worry is dealing with the very large rasters. Ideally, a tile server would be nice but I don't want to create the tiles through an ESRI product (like Arc2Earth or HTMLImageMapper.) I really like the possibility of TileCache (http://www.tilecache.org/) working with MapServer. The immediate question is what would be the raster data source to MapServer? Should I create tiles inside each TIF using gdal_translate and then a shapefile tileindex? Maybe go with compressed JPGs instead of TIFs since they usually have much smaller file sizes? I'm not sure where to start. Thanks for any guidance you can offer. - John **************************************** John Callahan Geospatial Application Developer Delaware Geological Survey University of Delaware 227 Academy St, Newark DE 19716-7501 Tel: (302) 831-2833 Email: john.callahan at udel.edu http://www.dgs.udel.edu **************************************** -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1839 bytes Desc: not available URL: From mschulz at webgis.de Sat Apr 19 01:06:45 2008 From: mschulz at webgis.de (Michael Schulz) Date: Sat, 19 Apr 2008 10:06:45 +0200 Subject: [mapserver-users] Displaying points & labe In-Reply-To: References: Message-ID: Hi Clement, keep in mind, that to display data with different projections in one map image, mapserver can reproject data on the fly. Therefore you must define each layers original projection and the desired resulting projection for your map. If your data is in wgs84 and your map shpuld be displayed in wgs84, then you mustn't define a epsg:27582 somewhere in between. Cheers, Michael 2008/4/18 Clemiou : > Hi, > > Now I have the good projections I think but I don't see the points. > I have: > > WGS84 for my map. > EPSG:27582 for my map Layer > WGS84 for my label layer. > > What do you think about that? Is it Ok with my datas (WGS84 for database > datas and Lambert II for my Map). > > Thanks for you answer > > Clement > > ________________________________ > > > Date: Fri, 18 Apr 2008 18:25:01 +0200 > > From: mschulz at webgis.de > > To: mapserver-users at lists.osgeo.org > > > Subject: Re: [mapserver-users] Displaying points & label > > > > Hi, > > > > in your ovf as well as in the layer definition you claim your data to > > be in EPSG:27582, if it is actually in epsg:4326 then it should say so > > in both places. The layer projection defines in which system your data > > is in, the map projection defines in what system your image is > > rendered (and your data projected to on the fly if necessary). > > > > > Cheers, Michael > > > > 2008/4/18 Clemiou : > > > > > > Hi! > > > > > > Still no points! > > > But I found perhaps something... > > > My datas are in WGS84 format and my map in Lambert II. > > > So, in my mapfile, my Map object has WGS84 projection, the layer of my > Map, Lambert II format and the layer of my points the WGS84 format. > > > But still no points. > > > I don't know why. ^^ > > > > > > Thanks for your help. > > > Clement > > > _________________________________________________________________ > > > D?couvrez les profils Messenger de vos amis ! > > > > http://home.services.spaces.live.com/_______________________________________________ > > > > > > > > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 79108 Freiburg Tel +49 (0)761 556959-5 Fax +49 (0)761 556959-6 http://www.webgis.de / http://www.zopecms.de ----------------------------------------------------------- From warmerdam at pobox.com Sat Apr 19 05:38:17 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Sat, 19 Apr 2008 08:38:17 -0400 Subject: [mapserver-users] How best to serve very large (300GB) raster data? In-Reply-To: <927165E85716A2BF6EB0AA66@[192.168.1.109]> References: <927165E85716A2BF6EB0AA66@[192.168.1.109]> Message-ID: <4809E7B9.2010106@pobox.com> John Callahan wrote: > I've been using ESRI products for quite a while. To serve a very large > raster dataset I have (about 300 GB), or really any raster or vector, I > usually just load the data into ArcSDE installed on Oracle and server > through ArcIMS. However, I want to move away from ESRI/Oracle and into a > more open environment, with all components being open source if possible. > > How best to serve a large raster dataset of about 300 GB? My data is in > 2010 tiles, each a 3-band TIF of about 135 MB. ... > Ideally, a tile server would be nice but I don't want to create the > tiles through an ESRI product (like Arc2Earth or HTMLImageMapper.) I > really like the possibility of TileCache (http://www.tilecache.org/) > working with MapServer. The immediate question is what would be the > raster data source to MapServer? Should I create tiles inside each TIF > using gdal_translate and then a shapefile tileindex? Maybe go with > compressed JPGs instead of TIFs since they usually have much smaller > file sizes? I'm not sure where to start. John, My suggestion would be to start by building a shapefile tileindex for your existing set of TIFs and setup a mapserver instance based on that. Check the performance. If you feel a need to squeeze more performance out of it consider: o building a .qix spatial index for the tileindex shapefile (likely not all that important for 2010 polygons) o Possibly reformat the TIFF files to internally tiled format (gdal_translate -co TILED=YES in.tif out.tif) o Add overviews to each of the TIFFs (gdaladdo target.tif 2 4 8) Needless to say you should backup the original files before transforming them or adding overviews. You could also consider just mosaicing the whole dataset into a single BigTIFF or .img file for simplier management. This could likely be accomplished with gdal_merge.py. I would advise against converting to JPEG unless you are very pressed for space. There are some very bad performance scenarios with JPEG files and JPEG is a lossy format which can non-trivially damage your image quality. If you are going to use TileCache, it likely isn't worth spending too much time fine tuning performance beyond fixing the gross performance issues. 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 | President OSGeo, http://osgeo.org From xiaodong.zhang2 at und.edu Sat Apr 19 09:07:35 2008 From: xiaodong.zhang2 at und.edu (Xiaodong Zhang) Date: Sat, 19 Apr 2008 11:07:35 -0500 Subject: [mapserver-users] How best to serve very large (300GB) raster data? In-Reply-To: <927165E85716A2BF6EB0AA66@[192.168.1.109]> References: <927165E85716A2BF6EB0AA66@[192.168.1.109]> Message-ID: <480A18C7.6000203@und.edu> Hi John, We've used MapServer to serve satellite images for many years, with each of sizes at least 300 GB. Here are what we do: 1. Don't not let database to or any other application such as ArcSDE to handle images. We do use Oracle, but it only saves links to images. Let MapServer to access images directly. 2. Use tiles for each images You can check our site http://dngp.umac.org to evaluate if the performance can meet your need. Also note, the server where MapServer resides uses NFS to access images and our network is only working at 100 Mbps, performance can certainly be improved if mapserver has a direct (say, FC) connection to images. Please let me know if you have any more questions. Xiaodong John Callahan wrote: > > I've been using ESRI products for quite a while. To serve a very large > raster dataset I have (about 300 GB), or really any raster or vector, > I usually just load the data into ArcSDE installed on Oracle and > server through ArcIMS. However, I want to move away from ESRI/Oracle > and into a more open environment, with all components being open > source if possible. > > How best to serve a large raster dataset of about 300 GB? My data is > in 2010 tiles, each a 3-band TIF of about 135 MB. > > >From my initial research, I like what MapServer can do and all of the > potential clients (OpenLayers, ka-Map, and many more.) I also really > like PostGIS for vectors...and have already started a project with > PostGIS points, being maintained by Quantum GIS and mapped through > Google Maps Javascript API and some AJAX/PHP code I wrote. My biggest > worry is dealing with the very large rasters. > > Ideally, a tile server would be nice but I don't want to create the > tiles through an ESRI product (like Arc2Earth or HTMLImageMapper.) I > really like the possibility of TileCache (http://www.tilecache.org/) > working with MapServer. The immediate question is what would be the > raster data source to MapServer? Should I create tiles inside each TIF > using gdal_translate and then a shapefile tileindex? Maybe go with > compressed JPGs instead of TIFs since they usually have much smaller > file sizes? I'm not sure where to start. > > Thanks for any guidance you can offer. > > - John > > > > **************************************** > John Callahan > Geospatial Application Developer > Delaware Geological Survey > University of Delaware > 227 Academy St, Newark DE 19716-7501 > Tel: (302) 831-2833 > Email: john.callahan at udel.edu > http://www.dgs.udel.edu > **************************************** > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From gis at vanbooth.com Sat Apr 19 13:59:56 2008 From: gis at vanbooth.com (Rob) Date: Sat, 19 Apr 2008 21:59:56 +0100 Subject: [mapserver-users] Investigating OpenLayers -> MapServer (WMS) -> OGR -> db In-Reply-To: <20080418175600.GA20589@metacarta.com> References: <20080418175600.GA20589@metacarta.com> Message-ID: <2a955f950804191359p51233ba7u5ba44c52e2f9134a@mail.gmail.com> Or you could turn tracing on at the database side to see what SQL requests it receives? I'm only familiar with oracle, but you could do this in Oracle using the 'alter system set sql_trace=true' command and checking the udump directoty for logs. On 18/04/2008, Christopher Schmidt wrote: > > On Fri, Apr 18, 2008 at 12:31:24PM -0500, P Kishor wrote: > > SELECT wkt_geometry FROM
WHERE BBOX> > > > > That is what I want to investigate. What exactly is OGR/MapServer > > executing? What is the form of "WHERE > BBOX>"? How can I log this level of detail? > > > You'll likely need to modify OGR to log this level of detail. In > general, this type of logging is done by the 'server' in DB > environments: Since SQLIte doesn't *have* a server, I don't think > there's any way to do this external to OGR, and I don't believe that > it's an existing feature of the OGR sqlite driver. > > In any case, MapServer is the wrong list for this: gdal-dev is probably > the right place to go. > > Regards, > > -- > Christopher Schmidt > MetaCarta > > _______________________________________________ > 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 hanscastorp76 at yahoo.es Wed Apr 16 09:48:18 2008 From: hanscastorp76 at yahoo.es (Hans Castorp) Date: Wed, 16 Apr 2008 18:48:18 +0200 Subject: [mapserver-users] Postgis and Mapserver Message-ID: <000f01c89fe1$afb96540$6701a8c0@signo3> Hi to all, In the past days I have been answering some questions about it but, by now, I haven?t achieved my goal. I will try to explain what I have and what I want (need, in fact): I?m displaying some cartography: lines and polygons from shape files and points from a Postgis table (without filtering). At the same time, I have a form to query the postgis table applying some filters. I am making these queries using PHP and SQL in the usual way. I don?t use mapscript queryByAttibutes, because SQL queries are more flexible and powerful (I think). Due to these facts what I have is: on one side, a map showing all the points (with no filter) and, on the other side, a filtered list of these same points. What I?m looking to do is: - Zoom to all my selection, changing simbology in order to show some points with the default simbology (map file) and others (the result of my selection) with a special simbology. - Zoom to one chosen point in my selection. By now, I?m doing it using zoomToExtents, passing as parameters x and y of the point (retrieved in the sql query). This works fine but I need to change the simbology of the selected point in order to make it clearly visible between the others. What I?m trying in order to change simbology for selected points is something like this: $oMap = ms_newMapObj($szMapFile); $oLayer = $oMap->getLayerByName("EMPRESAS"); $oClass = $oLayer->getClass(0); $oEstilo = $oClass->getStyle(0); $oLayer->setFilter($sql); $oEstilo->set("symbolname", "MARKER_EMPRESA_ALT"); But I have no results (at least no errors, too :-)) Some help will be welcomed. Thanks in advance to everyone. Hans Castorp No virus found in this outgoing message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.0/1379 - Release Date: 15/04/2008 18:10 -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Sat Apr 19 15:19:15 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Sat, 19 Apr 2008 17:19:15 -0500 Subject: [mapserver-users] Postgis and Mapserver In-Reply-To: <000f01c89fe1$afb96540$6701a8c0@signo3> References: <000f01c89fe1$afb96540$6701a8c0@signo3> Message-ID: <480A6FE3.6070704@swoodbridge.com> Hans Castorp wrote: > > > Hi to all, > > > > In the past days I have been answering some questions about it but, by > now, I haven?t achieved my goal. I will try to explain what I have and > what I want (need, in fact): > > > > I?m displaying some cartography: lines and polygons from shape files and > points from a Postgis table (without filtering). > > At the same time, I have a form to query the postgis table applying some > filters. I am making these queries using PHP and SQL in the usual way. I > don?t use mapscript queryByAttibutes, because SQL queries are more > flexible and powerful (I think). Due to these facts what I have is: on > one side, a map showing all the points (with no filter) and, on the > other side, a filtered list of these same points. > > > > What I?m looking to do is: > > > > - Zoom to all my selection, changing simbology in order to > show some points with the default simbology (map file) and others (the > result of my selection) with a special simbology. > > - Zoom to one chosen point in my selection. By now, I?m doing > it using zoomToExtents, passing as parameters x and y of the point > (retrieved in the sql query). This works fine but I need to change the > simbology of the selected point in order to make it clearly visible > between the others. One way might be to create a LAYER in your mapfile the is a postGIS connection and when you want to change the symbology turn it on and use the same SQL as you use to get your filtered set, but this LAYER would be drawn after the general layer and would have your highlited symbology. -Steve W. > What I?m trying in order to change simbology for selected points is > something like this: > > > > $oMap = ms_newMapObj($szMapFile); > > > > $oLayer = $oMap->getLayerByName("EMPRESAS"); > > > > $oClass = $oLayer->getClass(0); > > > > $oEstilo = $oClass->getStyle(0); > > > > $oLayer->setFilter($sql); > > > > $oEstilo->set("symbolname", "MARKER_EMPRESA_ALT"); > > > > But I have no results (at least no errors, too J ) > > > > Some help will be welcomed. > > Thanks in advance to everyone. > > > > > > > > > > Hans Castorp > > > > > No virus found in this outgoing message. > Checked by AVG. > Version: 7.5.524 / Virus Database: 269.23.0/1379 - Release Date: > 15/04/2008 18:10 > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From crschmidt at metacarta.com Sun Apr 20 05:40:43 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Sun, 20 Apr 2008 08:40:43 -0400 Subject: [mapserver-users] Investigating OpenLayers -> MapServer (WMS) -> OGR -> db In-Reply-To: <2a955f950804191359p51233ba7u5ba44c52e2f9134a@mail.gmail.com> References: <20080418175600.GA20589@metacarta.com> <2a955f950804191359p51233ba7u5ba44c52e2f9134a@mail.gmail.com> Message-ID: <20080420124042.GB20097@metacarta.com> On Sat, Apr 19, 2008 at 09:59:56PM +0100, Rob wrote: > Or you could turn tracing on at the database side to see what SQL requests > it receives? I'm only familiar with oracle, but you could do this in Oracle > using the 'alter system set sql_trace=true' command and checking the udump > directoty for logs. > As I said: """ In general, this type of logging is done by the 'server' in DB environments: Since SQLIte doesn't *have* a server, """ Regards, -- Christopher Schmidt MetaCarta From dfuhry at gmail.com Sun Apr 20 12:22:27 2008 From: dfuhry at gmail.com (Dave Fuhry) Date: Sun, 20 Apr 2008 15:22:27 -0400 Subject: [MAPSERVER-USERS] CLOSE_CONNECTION=DEFER - Segmentation fault In-Reply-To: <16333076.post@talk.nabble.com> References: <16333076.post@talk.nabble.com> Message-ID: <90699a8d0804201222p10f1f238i5442eb0550384ada@mail.gmail.com> Carlos, Please retry with v6 of the patch from http://trac.osgeo.org/mapserver/ticket/2497 and see if problems remain. It should make some of the statements shown in your log below impossible (namely, the lower-case "rollback" and "begin", which were removed). In my testing with cgi, php/mapscript, and python/mapscript, I can't find any problems. See a couple of attached testing scripts for examples of what I tried. Thanks, Dave On Thu, Mar 27, 2008 at 5:16 PM, Carlos_Molina wrote: > > > Dave Fuhry wrote: > > > > Ivan, > > > > p.mapper seems to use the typical php > > {map,layer}Obj_queryBy{Point,Rect,etc.} functions. These calls end up > > calling the same msPOSTGIS* functions as everything else. > > > > I can't seem to reproduce your problem with a simple testcase > > (basically, the attached files). It might help if you can set > > log_min_duration_statement = 0 in your postgresql.conf, reproduce the > > problem, and send the output from your postgresql log file. It will > > show all commands issued to the database, including the BEGIN, and the > > DECLARE CURSOR ..., and FETCH for every layer. > > > > I can setup p.mapper if that's necessary to reproduce the problem. > > > > (By the way, I assume you're not using an ancient version of > > postgis, in the 0.5 - 0.6 era. There is an alternate codepath for > > that, which I have not tested.) > > > > Thanks, > > > > Dave > > > > Hello Dave, > > I've tried first and second version of your patch and both resolved my first > issue of many many BEGIN statements being issued by cursors so my > application went back to running smoothly. The sad part is that another > issued arised from this patch and It's when using python mapscript and the > drawQuery call. > If i just render my .map file with draw() I get no trouble, but if I open my > map file, get a single layer from it, query the layer, open the layer to > retrieve results and call drawQuery() afterwards to render everything like I > used to do before the patch, I get the following error(I resumed the sql > statements): > > BEGIN > DECLARE mycursor BINARY CURSOR FOR SELECT... // queryByPoint > FETCH ALL in mycursor > CLOSE mycursor > SELECT * FROM... "same as above" WHILE false LIMIT 0 // Dont know why this > is issued, might be openLayer or just to get the field names of the table > > WARNING: there is already a transaction in progress > BEGIN > DECLARE mycursor2 BINARY CURSOR FOR SELECT... // getShape(0) > FETCH ALL in mycursor2 > CLOSE mycursor2 > ROLLBACK > BEGIN > DECLARE mycursor2 BINARY CURSOR FOR SELECT... // getShape(1) > FETCH ALL in mycursor2 > CLOSE mycursor2 > ROLLBACK > > ERROR: DECLARE CURSOR may only be used in transaction blocks > > WARNING: there is no transaction in progress > statement: rollback > statement: begin > > ERROR: cursor "mycursor" does not exist > ABORT > > Regards > > Carlos Molina > -- > View this message in context: http://www.nabble.com/CLOSE_CONNECTION%3DDEFER----Segmentation-fault-tp15786741p16333076.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 -------------- A non-text attachment was scrubbed... Name: drawquery.py Type: text/x-python Size: 124 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ms_test.php Type: application/x-httpd-php Size: 585 bytes Desc: not available URL: From Jukka.Rahkonen at mmmtike.fi Sun Apr 20 14:36:39 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 21 Apr 2008 00:36:39 +0300 Subject: [mapserver-users] MapServer v. 4.10.0 featureid problem References: <4997F456680DAD4DA1E042C40C46361101BC8506@auper1ex002.au.aecomnet.com><2DC5CCA14756424BBBEE8B4B2E4A682F036CF243@ecburexch1.ontario.int.ec.gc.ca> <2B5C1E3669B09548B6CAEE16BD6C300ECD9562@be25.exg3.exghost.com> Message-ID: -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Brian Mixon > Tom, > Perhaps I should tell you why I'm after the (or any) unique AND sequential id field for a service's features. I'm trying to page the feature data in a UI and started designing my solution after having read the WFS v 1.0.0 spec. I assumed (yes, I know what happens when one does that (;>)) that I'd just use feature ids. > I should have asked what mechanism MapServer employs to allow me to do something like this (the partial retrieval of features from a large dataset on some service somewhere). I'm going to bring back a certain number of features with each call to a WFS and as the user scrolls through this data I will make subsequent calls to the same service and ask for the next batch of features. > Does this make sense and can you point me in the right direction for getting MapServer to do this? I fear that WFS itself does not support this well. WFS does have a setting for maximum number of features returned by one request, but there is no way to ask for the following set of features starting from, let's say, feature number 100001. But if you take the WFS fid from sequential database field and sort that somehow then it should be possible to reach what you wand by addind a WFS filter like "AND fid>max_fid_from_last_request" to the next WFS request. I can imagine that this could lead to most unuseful result if bounding box is also a part of a filter and user is panning around on the map between the requests (area unvisited before can have features with lower fid values). -Jukka Rahkonen- From gregor at hostgis.com Sun Apr 20 16:24:24 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Sun, 20 Apr 2008 17:24:24 -0600 Subject: [mapserver-users] MapServer's image quality stinks serving up these NOAA NRCs Message-ID: <480BD0A8.6050808@hostgis.com> I asked the GDAL list about this some weeks back, but we only explored a few ideas and then forgot about it for a few days. URL http://ms2.geowake.com/ These were KAP files downloaded from NOAA's Raster Nautical Charts (NRCs), converted to TIFF with gdalwarp. The image quality there stiiiinks! A second map (no longer available) made of the raw images sliced into PNGs and not run via MapServer, looks very nice. You can make out text in 1 zoom, the high-level maps are less grainy, the quality once you zoom in is better... Any thoughts on why it'd be so ugly? The images almost look as if they've been downsized, don't they? Factors which we've tried and seem to have eliminated: * The KAPs themselves aren't damaged, and GDAL isn't creating crummy TIFFs. I can gdalwarp them to TIFF or PNG, and back and forth, and the output image looks great -- if I download it and view it on my PC. * Reprojection: If I request a WMS image in a browser, using plain latlong (the KAPs are georef'd in latlong) the image quality doesn't improve. Also, if I project the KAP to EPSG:54004 and request there, it makes no difference. That seems to eliminate reprojection as a likely cause. * Output image format. Requesting PNG, JPEG, or GIF from MapServer WMS makes no difference. I can share the IMAGEFORMAT blocks if requested. Items still not entirely eliminated: * Resampling: If I add PROCESSING "RESAMPLE=BILINEAR" it makes a small difference in the quality, but not a lot. Same goes for bicubic as well: a visible difference, but not significant. The other two didn't make any difference at all. * Color depth: gdalwarp on the KAPs generates 8-bit palleted TIFFs. That may not be the best for quality. Any thoughts? -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From Jukka.Rahkonen at mmmtike.fi Sun Apr 20 22:29:56 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Mon, 21 Apr 2008 08:29:56 +0300 Subject: [mapserver-users] MapServer's image quality stinks serving up theseNOAA NRCs References: <480BD0A8.6050808@hostgis.com> Message-ID: Gregor Mosheh wrote: > URL http://ms2.geowake.com/ These were KAP files downloaded from NOAA's Raster Nautical Charts (NRCs), converted to TIFF with gdalwarp. > The image quality there stiiiinks! A second map (no longer available) made of the raw images sliced into PNGs and not run via MapServer, looks very nice. You can make out text in 1 zoom, the high-level maps are less grainy, the quality once you zoom in is better... > Any thoughts on why it'd be so ugly? The images almost look as if they've been downsized, don't they? Aren't they inevidently downsized if you are looking at the whole North American coastline with just something like 800 by 600 pixels on screen? I can see very similar ugly view when I fit on the screen a large OpenStreetMap map (12000 by 12000 pixels) rendered with a lot of details. The map begins to look nice once I zoom in such much that the labels come readable. I have been thinking that it is because the street names and other details every now and then makes some downsampled image pixel to appear black. For the algorithm it might be OK but for the one who is looking at the map it makes just noise. In your case there are whole lot of contour lines and depth values causing the noise. I guess that if you mosaic lots of image tiles together and open it with Photoshop or whatever else viewer your experience would not be much better. I don't believe you can improve the far-away zoom quality much with Mapserver. You may try to filter out digitally some depth values squeesed nos to one pixel only or try some other tricks, but I think that best you could do is to find out another map that is originally made to be be used at nationwide scale. -Jukka Rahkonen- From Antti.Roppola at brs.gov.au Sun Apr 20 23:21:44 2008 From: Antti.Roppola at brs.gov.au (Roppola, Antti - BRS) Date: Mon, 21 Apr 2008 16:21:44 +1000 Subject: [mapserver-users] MapServer's image quality stinks serving uptheseNOAA NRCs [SEC=UNCLASSIFIED] In-Reply-To: Message-ID: <61C2DEA055980B418D063F8646FCAEFC028769B9@ACT001CL03EX03.agdaff.gov.au> That's why approaches such as antialiasing as so useful in resizing imagery. However while that'll give you an asthetically pleasing representation of a resampled raster (like a thumbnail), text labels won't be readable. Last time I looked, Mapserver used a fast (but less asthetic) nearest neighbor algorithm which would give exactly the result Gregor describes. Sites like Google Maps know this and pre-generate/cache tiles at appropriate resolutions (from vectro data) so that text is rendered at an appropriate resolution. Scans of hardcopy maps will always be best really bad at handling text (there's no easy way to set appropriate scale thresholds for text pixels). We did some bathymetry soundings and they weren't too bad only because the text density wasn't high enough to drown out the non-text content. Something like a majority() image filter could be used to create an overview that sample out text (black) that is not going to be legible anyway. I'm not sure how much effort is needed; I'd like to think this is a legacy issue from the paper map era. Navigation charts are a bit unusual in that the chart is usually a legal document and experssing the legal concepts digitally has taken time. Cheers, Antti P.S. gdaltanslate will do pixel-by-pixel format conversion. Gdalwarp is a raster resampler and therefore by definition a potentially (very!) data destructive tool. Gregor may even be looking at two signiciant resampling events. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: Monday, 21 April 2008 3:30 PM To: Gregor Mosheh; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MapServer's image quality stinks serving uptheseNOAA NRCs Gregor Mosheh wrote: > URL http://ms2.geowake.com/ These were KAP files downloaded from NOAA's Raster Nautical Charts (NRCs), converted to TIFF with gdalwarp. > The image quality there stiiiinks! A second map (no longer available) made of the raw images sliced into PNGs and not run via MapServer, looks very nice. You can make out text in 1 zoom, the high-level maps are less grainy, the quality once you zoom in is better... > Any thoughts on why it'd be so ugly? The images almost look as if they've been downsized, don't they? Aren't they inevidently downsized if you are looking at the whole North American coastline with just something like 800 by 600 pixels on screen? I can see very similar ugly view when I fit on the screen a large OpenStreetMap map (12000 by 12000 pixels) rendered with a lot of details. The map begins to look nice once I zoom in such much that the labels come readable. I have been thinking that it is because the street names and other details every now and then makes some downsampled image pixel to appear black. For the algorithm it might be OK but for the one who is looking at the map it makes just noise. In your case there are whole lot of contour lines and depth values causing the noise. I guess that if you mosaic lots of image tiles together and open it with Photoshop or whatever else viewer your experience would not be much better. I don't believe you can improve the far-away zoom quality much with Mapserver. You may try to filter out digitally some depth values squeesed nos to one pixel only or try some other tricks, but I think that best you could do is to find out another map that is originally made to be be used at nationwide scale. -Jukka Rahkonen- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------IMPORTANT - This message has been issued by The Department of Agriculture, Fisheries and Forestry (DAFF). The information transmitted is for the use of the intended recipient only and may contain confidential and/or legally privileged material. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. Any reproduction, publication, communication, re-transmission, disclosure, dissemination or other use of the information contained in this e-mail by persons or entities other than the intended recipient is prohibited. The taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error please notify the sender and delete all copies of this transmission together with any attachments. If you have received this e-mail as part of a valid mailing list and no longer want to receive a message such as this one advise the sender by return e-mail accordingly. Only e-mail correspondence which includes this footer, has been authorised by DAFF ------ From c.pelliconi at sis-ter.it Mon Apr 21 00:57:41 2008 From: c.pelliconi at sis-ter.it (Carlo Pelliconi) Date: Mon, 21 Apr 2008 09:57:41 +0200 Subject: [mapserver-users] PHPmapscript mouse click Message-ID: <480C48F5.205@sis-ter.it> Hi all. I'm using PHPMapscript on Mapserver 4.10. I'm not able to get mouse click coordinates (in pixel). Anyone knows how to obtain these values? Thank you very much -- ing. Carlo Pelliconi c.pelliconi at sis-ter.it SIS.TER S.p.A. www.sis-ter.it via Mentana, 10 40026 Imola (BO) Italy tel +39 0542 364034 fax +39 0542 612130 ATTENZIONE! Questo documento ? indirizzato esclusivamente al destinatario. Tutte le informazioni ivi contenute, compresi eventuali allegati, sono soggette a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di "privacy" e ne ? proibita l'utilizzazione da parte di altri soggetti. Si ricorda che la diffusione l'utilizzo e/o la conservazione dei dati ricevuti per errore costituisce violazione di carattere penale ai sensi dell'art. 616 Codice penale (Violazione, sottrazione e soppressione di corrispondenza). Se avesse ricevuto per errore questo messaggio, La preghiamo cortesemente di contattare il mittente al pi? presto e di cancellare il messaggio subito dopo. Grazie. ATTENTION! This message is being sent from Sis.Ter S.p.A. and may contain information which is confidential or privileged. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. Any unauthorized use of the content of this message is a breach of your duty to respect the confidentiality of the correspondence between other persons and can expose the responsible party to civil and/or criminal penalties (D.Lgs. 196/2003 "Tutela della privacy" e art. 616 Codice penale "Violazione, sottrazione e soppressione di corrispondenza"), and may constitute a more serious offence. Thanks. ACHTUNG! Dieses Dokument ist ausschlie?lich dem Empf?nger vorbehalten. Die darin enthaltenen Informationen, auch jene in etwaigen Anlagen, gelten im Sinne des Dekrets Nr. 196/2003 in Sachen "Privacy" als streng vertraulich und d?rfen von anderen Personen nicht verwende werden. Wer diese Mitteilung irrt?mlicherweise erh?lt ist gebeten uns umgehend zu informieren und anschlie?end die Mitteilung zu vernichten. Vielen Dank. From pgiannini at bytewise.it Mon Apr 21 01:38:02 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Mon, 21 Apr 2008 10:38:02 +0200 (CEST) Subject: [mapserver-users] PHPmapscript mouse click In-Reply-To: <480C48F5.205@sis-ter.it> References: <480C48F5.205@sis-ter.it> Message-ID: <48767.62.77.56.17.1208767082.squirrel@localhost.localdomain> Hi Carlo, on Php you can get the mouse click coordinates on a tag in a
on your html code, where you show the map image. The coordinates, in pixels, can be intercepted on the $_GET['inputname_x'] and $_GET['inputname_y'] variables (or $_POST, depending on method of the ). e.g.: draw(); $mapimgurl = $mapimg->saveWebImage(); ?> last click was:
"; echo "Y = ".$_GET['mapimage_y']; ?> ciao ...............pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Lun, Aprile 21, 2008 09:57, Carlo Pelliconi wrote: > Hi all. > I'm using PHPMapscript on Mapserver 4.10. > I'm not able to get mouse click coordinates (in pixel). > Anyone knows how to obtain these values? > Thank you very much > > -- > ing. Carlo Pelliconi > c.pelliconi at sis-ter.it > SIS.TER S.p.A. > www.sis-ter.it > via Mentana, 10 > 40026 Imola (BO) Italy > tel +39 0542 364034 > fax +39 0542 612130 > > > > > ATTENZIONE! > Questo documento ? indirizzato esclusivamente al destinatario. Tutte le > informazioni ivi contenute, compresi eventuali allegati, sono soggette > a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di > "privacy" e ne ? proibita l'utilizzazione da parte di altri soggetti. Si > ricorda che la diffusione l'utilizzo e/o la conservazione dei dati > ricevuti per errore costituisce violazione di carattere penale ai sensi > dell'art. 616 Codice penale (Violazione, sottrazione e soppressione di > corrispondenza). Se avesse ricevuto per errore questo messaggio, La > preghiamo cortesemente di contattare il mittente al pi? presto e di > cancellare il messaggio subito dopo. Grazie. > > ATTENTION! > This message is being sent from Sis.Ter S.p.A. and may contain information > which is confidential or privileged. If you are not the intended > recipient, please advise the sender immediately by reply e-mail and delete > this message and any attachments without retaining a copy. Any > unauthorized use of the content of this message is a breach of your duty > to respect the confidentiality of the correspondence between other persons > and can expose the responsible party to civil and/or criminal penalties > (D.Lgs. 196/2003 "Tutela della privacy" e art. 616 Codice penale > "Violazione, sottrazione e soppressione di corrispondenza"), and may > constitute a more serious offence. Thanks. > > ACHTUNG! > Dieses Dokument ist ausschlie?lich dem Empf?nger vorbehalten. Die darin > enthaltenen Informationen, auch jene in etwaigen Anlagen, gelten im Sinne > des Dekrets Nr. 196/2003 in Sachen "Privacy" als streng vertraulich und > d?rfen von anderen Personen nicht verwende werden. Wer diese Mitteilung > irrt?mlicherweise erh?lt ist gebeten uns umgehend zu informieren und > anschlie?end die Mitteilung zu vernichten. Vielen Dank. > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From stefan.schwarzer at grid.unep.ch Mon Apr 21 01:42:19 2008 From: stefan.schwarzer at grid.unep.ch (Stefan Schwarzer) Date: Mon, 21 Apr 2008 10:42:19 +0200 Subject: [mapserver-users] WMS with selected country rectangle box display? Message-ID: Hi there, we have developed a WMS which receives a parameter for a selected country, producing a map which highlights the selected country, and masks a bit the neighboring ones. Now, I would like to create in conjunction with this one another WMS, which shows the world as a whole, and - as any overview map is doing - displays just a rectangle to locate the selected country on the map. Is this possible as WMS? I have no idea how this would work... Thanks for any hints, Stef From c.pelliconi at sis-ter.it Mon Apr 21 01:47:41 2008 From: c.pelliconi at sis-ter.it (Carlo Pelliconi) Date: Mon, 21 Apr 2008 10:47:41 +0200 Subject: [mapserver-users] PHPmapscript mouse click In-Reply-To: <48767.62.77.56.17.1208767082.squirrel@localhost.localdomain> References: <480C48F5.205@sis-ter.it> <48767.62.77.56.17.1208767082.squirrel@localhost.localdomain> Message-ID: <480C54AD.4010301@sis-ter.it> Ok, grazie Carlo Pietro Giannini ha scritto: > Hi Carlo, > on Php you can get the mouse click coordinates on a > tag in a
on your html code, where you show the map image. > > The coordinates, in pixels, can be intercepted on the $_GET['inputname_x'] > and $_GET['inputname_y'] variables (or $_POST, depending on method of the > ). > > e.g.: > > $mapimg = $map->draw(); > $mapimgurl = $mapimg->saveWebImage(); > ?> > > > > > > > > > last click was:
> echo "X = ".$_GET['mapimage_x']."
"; > echo "Y = ".$_GET['mapimage_y']; > ?> > > ciao > ...............pg > > -- ing. Carlo Pelliconi c.pelliconi at sis-ter.it SIS.TER S.p.A. www.sis-ter.it via Mentana, 10 40026 Imola (BO) Italy tel +39 0542 364034 fax +39 0542 612130 ATTENZIONE! Questo documento ? indirizzato esclusivamente al destinatario. Tutte le informazioni ivi contenute, compresi eventuali allegati, sono soggette a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di "privacy" e ne ? proibita l'utilizzazione da parte di altri soggetti. Si ricorda che la diffusione l'utilizzo e/o la conservazione dei dati ricevuti per errore costituisce violazione di carattere penale ai sensi dell'art. 616 Codice penale (Violazione, sottrazione e soppressione di corrispondenza). Se avesse ricevuto per errore questo messaggio, La preghiamo cortesemente di contattare il mittente al pi? presto e di cancellare il messaggio subito dopo. Grazie. ATTENTION! This message is being sent from Sis.Ter S.p.A. and may contain information which is confidential or privileged. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. Any unauthorized use of the content of this message is a breach of your duty to respect the confidentiality of the correspondence between other persons and can expose the responsible party to civil and/or criminal penalties (D.Lgs. 196/2003 "Tutela della privacy" e art. 616 Codice penale "Violazione, sottrazione e soppressione di corrispondenza"), and may constitute a more serious offence. Thanks. ACHTUNG! Dieses Dokument ist ausschlie?lich dem Empf?nger vorbehalten. Die darin enthaltenen Informationen, auch jene in etwaigen Anlagen, gelten im Sinne des Dekrets Nr. 196/2003 in Sachen "Privacy" als streng vertraulich und d?rfen von anderen Personen nicht verwende werden. Wer diese Mitteilung irrt?mlicherweise erh?lt ist gebeten uns umgehend zu informieren und anschlie?end die Mitteilung zu vernichten. Vielen Dank. From guillaume.sueur at neogeo-online.net Mon Apr 21 01:48:27 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Mon, 21 Apr 2008 10:48:27 +0200 Subject: [mapserver-users] grayscale shaded relief in mapserver Message-ID: <480C54DB.8060005@neogeo-online.net> Hi list, I've got a grayscale TIF showing shaded relief which I can't manage to display properly with mapserver. The image is just white. gdalinfo gives : Band 1 Block=4367x1 Type=Byte, ColorInterp=Gray I assume the georef is ok. I tried few things like resampling it to 32 colors, or "PROCESSING "COLOR_MATCH_THRESHOLD=3" as I've found in mails archives, but without any luck. Any clue ? Thanks -- Guillaume From c.pelliconi at sis-ter.it Mon Apr 21 04:20:25 2008 From: c.pelliconi at sis-ter.it (Carlo Pelliconi) Date: Mon, 21 Apr 2008 13:20:25 +0200 Subject: [mapserver-users] QueryByPoint problem: why always the same feature? Message-ID: <480C7879.9010908@sis-ter.it> Hi all. I use PHPMapScritp with Mapserver 4.10 on Debian Etch. I do a series of querybypoint, but the answer is always the first feature! I think it could be a resultCacheMember problem. How can I free all cache about previous query results? New results of next query are appended to previous results or getResult goes to a new set at any new query? It is sufficient to close the queried layer ad to free the $shp=getResult(...)? Thank you very much. Carlo -- ing. Carlo Pelliconi c.pelliconi at sis-ter.it SIS.TER S.p.A. www.sis-ter.it via Mentana, 10 40026 Imola (BO) Italy tel +39 0542 364034 fax +39 0542 612130 ATTENZIONE! Questo documento ? indirizzato esclusivamente al destinatario. Tutte le informazioni ivi contenute, compresi eventuali allegati, sono soggette a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di "privacy" e ne ? proibita l'utilizzazione da parte di altri soggetti. Si ricorda che la diffusione l'utilizzo e/o la conservazione dei dati ricevuti per errore costituisce violazione di carattere penale ai sensi dell'art. 616 Codice penale (Violazione, sottrazione e soppressione di corrispondenza). Se avesse ricevuto per errore questo messaggio, La preghiamo cortesemente di contattare il mittente al pi? presto e di cancellare il messaggio subito dopo. Grazie. ATTENTION! This message is being sent from Sis.Ter S.p.A. and may contain information which is confidential or privileged. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. Any unauthorized use of the content of this message is a breach of your duty to respect the confidentiality of the correspondence between other persons and can expose the responsible party to civil and/or criminal penalties (D.Lgs. 196/2003 "Tutela della privacy" e art. 616 Codice penale "Violazione, sottrazione e soppressione di corrispondenza"), and may constitute a more serious offence. Thanks. ACHTUNG! Dieses Dokument ist ausschlie?lich dem Empf?nger vorbehalten. Die darin enthaltenen Informationen, auch jene in etwaigen Anlagen, gelten im Sinne des Dekrets Nr. 196/2003 in Sachen "Privacy" als streng vertraulich und d?rfen von anderen Personen nicht verwende werden. Wer diese Mitteilung irrt?mlicherweise erh?lt ist gebeten uns umgehend zu informieren und anschlie?end die Mitteilung zu vernichten. Vielen Dank. From bytex at o2.no Mon Apr 21 04:46:11 2008 From: bytex at o2.no (Tormod Brunsby) Date: Mon, 21 Apr 2008 13:46:11 +0200 Subject: [mapserver-users] How to tile a large TIF image? In-Reply-To: References: Message-ID: <480C7E83.9020800@o2.no> > Dejan - > > I NEVER say "always"... > > But no, I do not think one could state that one approach (a single TIFF with > overviews vs. multiple TIFFs at different resolutions) is ALWAYS better than > the other. There are a number of factors involved, some of which depend on > your filesystem and disk hardware characteristics. > Still no good examples on how to do this i see. I'm also looking for a complete example on how to split large rasters 1-5GB ECW and RIK's into tif tiles (10k x 10k px). Large files are usually not favored by filesystem cache. -- Tormod From pgiannini at bytewise.it Mon Apr 21 05:09:44 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Mon, 21 Apr 2008 14:09:44 +0200 (CEST) Subject: [mapserver-users] QueryByPoint problem: why always the same feature? In-Reply-To: <480C7879.9010908@sis-ter.it> References: <480C7879.9010908@sis-ter.it> Message-ID: <34646.62.77.56.18.1208779784.squirrel@localhost.localdomain> Carlo, I think the cache is refreshed each call of $layer->queryByPoint(point, mode, buffer). Remember to set the "mode" = MS_MULTIPLE to obtain more than one result, the point is a $pointObj in GEOGRAPHIC coordinates, the buffer set to 0 get the default of the TOLERANCE (in pixels) of the mapfile, otherwise you can specify in ground units a circle around the point for obtain the results. Look here: http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class for a good guide about. here a piece of code (it work): $res = @$layer->queryByPoint($qpoint,MS_MULTIPLE,0); if (@$layer->getNumResults() > 0) { $layer->open(); for ($i=0;$i<$layer->getNumResults();$i++) { $resCache = $layer->getResult($i); $shape = $layer->getShape(-1,$resCache->shapeindex); echo $shape->values['fieldname']."
"; // .... etc. } $layer->close(); } ciao ..........................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Lun, Aprile 21, 2008 13:20, Carlo Pelliconi wrote: > Hi all. > I use PHPMapScritp with Mapserver 4.10 on Debian Etch. > I do a series of querybypoint, but the answer is always the first feature! > I think it could be a resultCacheMember problem. How can I free all > cache about previous query results? > New results of next query are appended to previous results or getResult > goes to a new set at any new query? > It is sufficient to close the queried layer ad to free the > $shp=getResult(...)? > Thank you very much. > Carlo > > -- > ing. Carlo Pelliconi > c.pelliconi at sis-ter.it > SIS.TER S.p.A. > www.sis-ter.it > via Mentana, 10 > 40026 Imola (BO) Italy > tel +39 0542 364034 > fax +39 0542 612130 > > > > > ATTENZIONE! > Questo documento ? indirizzato esclusivamente al destinatario. Tutte le > informazioni ivi contenute, compresi eventuali allegati, sono soggette > a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di > "privacy" e ne ? proibita l'utilizzazione da parte di altri soggetti. Si > ricorda che la diffusione l'utilizzo e/o la conservazione dei dati > ricevuti per errore costituisce violazione di carattere penale ai sensi > dell'art. 616 Codice penale (Violazione, sottrazione e soppressione di > corrispondenza). Se avesse ricevuto per errore questo messaggio, La > preghiamo cortesemente di contattare il mittente al pi? presto e di > cancellare il messaggio subito dopo. Grazie. > > ATTENTION! > This message is being sent from Sis.Ter S.p.A. and may contain information > which is confidential or privileged. If you are not the intended > recipient, please advise the sender immediately by reply e-mail and delete > this message and any attachments without retaining a copy. Any > unauthorized use of the content of this message is a breach of your duty > to respect the confidentiality of the correspondence between other persons > and can expose the responsible party to civil and/or criminal penalties > (D.Lgs. 196/2003 "Tutela della privacy" e art. 616 Codice penale > "Violazione, sottrazione e soppressione di corrispondenza"), and may > constitute a more serious offence. Thanks. > > ACHTUNG! > Dieses Dokument ist ausschlie?lich dem Empf?nger vorbehalten. Die darin > enthaltenen Informationen, auch jene in etwaigen Anlagen, gelten im Sinne > des Dekrets Nr. 196/2003 in Sachen "Privacy" als streng vertraulich und > d?rfen von anderen Personen nicht verwende werden. Wer diese Mitteilung > irrt?mlicherweise erh?lt ist gebeten uns umgehend zu informieren und > anschlie?end die Mitteilung zu vernichten. Vielen Dank. > > > _______________________________________________ > 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 Tom.Kralidis at ec.gc.ca Mon Apr 21 05:13:03 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Mon, 21 Apr 2008 08:13:03 -0400 Subject: [mapserver-users] MapServer v. 4.10.0 featureid problem References: <4997F456680DAD4DA1E042C40C46361101BC8506@auper1ex002.au.aecomnet.com><2DC5CCA14756424BBBEE8B4B2E4A682F036CF243@ecburexch1.ontario.int.ec.gc.ca><2B5C1E3669B09548B6CAEE16BD6C300ECD9562@be25.exg3.exghost.com> Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F03BCC0A2@ecburexch1.ontario.int.ec.gc.ca> To add, note that the forthcoming WFS 1.2 (which will then be an OGC/ISO standard) will support paging. This could be awhile, but at least this feature is acknowledged by the spec editors/community. ..Tom -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org on behalf of Rahkonen Jukka Sent: Sun 20-Apr-08 17:36 To: Brian Mixon; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MapServer v. 4.10.0 featureid problem -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Brian Mixon > Tom, > Perhaps I should tell you why I'm after the (or any) unique AND sequential id field for a service's features. I'm trying to page the feature data in a UI and started designing my solution after having read the WFS v 1.0.0 spec. I assumed (yes, I know what happens when one does that (;>)) that I'd just use feature ids. > I should have asked what mechanism MapServer employs to allow me to do something like this (the partial retrieval of features from a large dataset on some service somewhere). I'm going to bring back a certain number of features with each call to a WFS and as the user scrolls through this data I will make subsequent calls to the same service and ask for the next batch of features. > Does this make sense and can you point me in the right direction for getting MapServer to do this? I fear that WFS itself does not support this well. WFS does have a setting for maximum number of features returned by one request, but there is no way to ask for the following set of features starting from, let's say, feature number 100001. But if you take the WFS fid from sequential database field and sort that somehow then it should be possible to reach what you wand by addind a WFS filter like "AND fid>max_fid_from_last_request" to the next WFS request. I can imagine that this could lead to most unuseful result if bounding box is also a part of a filter and user is panning around on the map between the requests (area unvisited before can have features with lower fid values). -Jukka Rahkonen- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Doug_Newcomb at fws.gov Mon Apr 21 05:48:19 2008 From: Doug_Newcomb at fws.gov (Doug_Newcomb at fws.gov) Date: Mon, 21 Apr 2008 08:48:19 -0400 Subject: [mapserver-users] How to tile a large TIF image? In-Reply-To: <480C7E83.9020800@o2.no> Message-ID: Tormod, >I'm also looking for a complete example on how to split large rasters >1-5GB ECW and RIK's into tif tiles (10k x 10k px). Large files are >usually not favored by filesystem cache. Use gdal_translate, http://www.gdal.org/gdal_translate.html, to chop up your ECW files and output your parts as tiff. I'd suggest using python to get the extent and pixel size ( in projection coordinates) of each image and have gdal_translate grab a 10k X 10k chunk starting at the lower left corner of the image, incrementing the x coordinate by (10k * number of units per pixel) as you work left to right. After you finish that row, start back at the origin x coordinate and increment the y coordinate by (10k * number of units per pixel). Rinse and repeat until you finish the whole image. It might be worthwhile to implement a bit of overlap ( 10-15 pixels) in the x and y direction as you chop. Doug Doug Newcomb USFWS Raleigh, NC 919-856-4520 ext. 14 doug_newcomb at fws.gov --------------------------------------------------------------------------------------------------------- The opinions I express are my own and are not representative of the official policy of the U.S.Fish and Wildlife Service or Dept. of Interior. Life is too short for undocumented, proprietary data formats. Tormod Brunsby Sent by: To mapserver-users-b mapserver-users at lists.osgeo.org ounces at lists.osge cc o.org Subject Re: [mapserver-users] How to tile a 04/21/2008 07:46 large TIF image? AM > Dejan - > > I NEVER say "always"... > > But no, I do not think one could state that one approach (a single TIFF with > overviews vs. multiple TIFFs at different resolutions) is ALWAYS better than > the other. There are a number of factors involved, some of which depend on > your filesystem and disk hardware characteristics. > Still no good examples on how to do this i see. I'm also looking for a complete example on how to split large rasters 1-5GB ECW and RIK's into tif tiles (10k x 10k px). Large files are usually not favored by filesystem cache. -- Tormod _______________________________________________ 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 Mon Apr 21 06:25:45 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Mon, 21 Apr 2008 08:25:45 -0500 Subject: [mapserver-users] Displaying points & label In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBCAA@s-sp22.pca.state.mn.us> Clement, Please post the content of your map file. It should be easier to clear this up if we can see what you are sending to mapserv. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Clemiou Sent: Friday, April 18, 2008 4:29 PM To: mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] Displaying points & label Hi, Now I have the good projections I think but I don't see the points. I have: WGS84 for my map. EPSG:27582 for my map Layer WGS84 for my label layer. What do you think about that? Is it Ok with my datas (WGS84 for database datas and Lambert II for my Map). Thanks for you answer Clement ________________________________ > Date: Fri, 18 Apr 2008 18:25:01 +0200 > From: mschulz at webgis.de > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Displaying points & label > > Hi, > > in your ovf as well as in the layer definition you claim your data to > be in EPSG:27582, if it is actually in epsg:4326 then it should say so > in both places. The layer projection defines in which system your data > is in, the map projection defines in what system your image is > rendered (and your data projected to on the fly if necessary). > > Cheers, Michael > > 2008/4/18 Clemiou : > > > > Hi! > > > > Still no points! > > But I found perhaps something... > > My datas are in WGS84 format and my map in Lambert II. > > So, in my mapfile, my Map object has WGS84 projection, the layer of my Map, Lambert II format and the layer of my points the WGS84 format. > > But still no points. > > I don't know why. ^^ > > > > Thanks for your help. > > Clement > > _________________________________________________________________ > > D?couvrez les profils Messenger de vos amis ! > > http://home.services.spaces.live.com/_______________________________________________ > > > > > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > -- > ----------------------------------------------------------- > Michael Schulz > mschulz at webgis.de > > in medias res > Gesellschaft f?r Informationstechnologie mbH > > In den Weihermatten 66 > 79108 Freiburg > > Tel +49 (0)761 556959-5 > Fax +49 (0)761 556959-6 > > http://www.webgis.de / http://www.zopecms.de > ----------------------------------------------------------- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users ________________________________ Plus de 15 millions de fran?ais utilisent Windows Live Messenger ! T?l?chargez Messenger, c'est gratuit ! -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Mon Apr 21 07:24:54 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Mon, 21 Apr 2008 10:24:54 -0400 Subject: [MAPSERVER-USERS] Multiple GetFeatureInfo on Raster Data [SEC=UNCLASSIFIED] In-Reply-To: <656E711DAB9AA74FBB22DE320668E9920275D5D8@officeho2.bom.gov.au> References: <656E711DAB9AA74FBB22DE320668E9920275D5D8@officeho2.bom.gov.au> Message-ID: <480CA3B6.7030909@pobox.com> Matthew Doyle wrote: > Hi Frank, > > Thanks for getting back to me. A few questions: > A) where can I file this ticket? Do I need certain privileges to do so? Matt, You would file the ticket in the MapServer bug tracker: http://trac.osgeo.org/mapserver That page includes a link to get your own OSGeo userid. > B) I have contacted our Data Services team and they will providing the > slimmed down MapFile with only two raster layers. It will be accessible > via a URL on our server, and queryable - I am assuming this is ok? No, I'm afraid not. I want a map + raster files in a form that I can run locally on my system. So it needs to be streamlined for it to be easy for me to run at my end, and you need to ensure the data is not private. 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 | President OSGeo, http://osgeo.org From jeffmckenna at gmail.com Mon Apr 21 08:14:33 2008 From: jeffmckenna at gmail.com (Jeff McKenna) Date: Mon, 21 Apr 2008 11:14:33 -0400 Subject: [mapserver-users] error_output In-Reply-To: <480325B2.6000305@post.cz> References: <480325B2.6000305@post.cz> Message-ID: <0BD3EA19-4DC5-4BAD-B0BF-AD8715DF8B2B@gmail.com> I don't think anyone got back to you...but maybe you should be including your .map file in your message so everyone can see it. I'm not sure what the problem is with your 'client', but I would make sure you use the mapserver utility sh2img to test your mapfile. http://mapserver.gis.umn.edu/docs/reference/utilityreference/shp2img -jeff On 14-Apr-08, at 5:36 AM, Petra Pietrasov? wrote: > Good morning, > I am a student of geoinformatics in the Czech Republic. > I am just finishing my diploma thesis about a map server and I have > a problem with my aplication. > Sometimes there is an error in my client. The error of client is in > displaying received images (they look like those saved in computer). > > I am sending you four images for illustration : > data - this is how I can see an orthophoto map in my > aplication > data_png - this is the image of orthophoto map how is saved in my > computer > > Can you write me please where the problem is? > Or what do you think I should change? > > Thank you best regards > > Petra Pietrasova > Czech Republic > From damarmo at gmail.com Mon Apr 21 08:44:45 2008 From: damarmo at gmail.com (David Martinez Morata) Date: Mon, 21 Apr 2008 17:44:45 +0200 Subject: [mapserver-users] Raster problems In-Reply-To: <48089CE9.1000502@pobox.com> References: <9771eb540804180542v15f6c5edg952a1b2deb866fa4@mail.gmail.com> <48089CE9.1000502@pobox.com> Message-ID: <9771eb540804210844h2b759ce7v1f62214c3846e989@mail.gmail.com> Thanks for your help! But now I have a question? I put my layer definitions and the SCALE values but... When I use ArcGis to show my layers the SCALE values are not the same of the values I define. Example: My Layer: LAYER NAME "RGV2_L2e_05kFR_Contenu" GROUP "Fond_Carto" STATUS ON TILEINDEX "RGV2_L2e_05kFR_Contenu/RGV2_L2e_05kFR_Contenu.shp" TILEITEM "Location" TYPE RASTER MAXSCALE 15001 #Definiftion du systeme de projection Lambert II Etendue code EPSG PROJECTION "init=epsg:27572" END #Metadonnes du serveur wms METADATA "wms_title" "Raster_05K" "wms_srs" "EPSG:27572" END END Scale of View in ArcGIS 9.0 SP2 1:200001 Sclae of view in gvSIG 1:20021 AutoCadMap I search the Scale but some times puts one Layer an sometimes other ( random ) Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From guillaume.sueur at neogeo-online.net Mon Apr 21 09:16:49 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Mon, 21 Apr 2008 18:16:49 +0200 Subject: [mapserver-users] grayscale shaded relief in mapserver In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FBCAB@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5021FBCAB@s-sp22.pca.state.mn.us> Message-ID: <480CBDF1.1000105@neogeo-online.net> the TIF goes with a .TAB and its georeferencing informations. It looks ok with Qgis. The mapfile is straight-forward : LAYER DATA "uploaded/AUbwV8_32.TIF" NAME "shaded" PROCESSING "COLOR_MATCH_THRESHOLD=3" PROJECTION "init=epsg:27563" END STATUS ON TYPE RASTER UNITS METERS END Thanks for your interest, Guillaume Fawcett, David a ?crit : > Have you stripped out all of the projection, etc. and just tried to > output the image? > > What does your map file look like? > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Guillaume > Sueur > Sent: Monday, April 21, 2008 3:48 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] grayscale shaded relief in mapserver > > > Hi list, > > I've got a grayscale TIF showing shaded relief which I can't manage to > display properly with mapserver. The image is just white. gdalinfo gives > : Band 1 Block=4367x1 Type=Byte, ColorInterp=Gray I assume the georef is > ok. I tried few things like resampling it to 32 colors, or "PROCESSING > "COLOR_MATCH_THRESHOLD=3" as I've found in mails archives, but without > any luck. > > Any clue ? > > Thanks > From ahermange at gi-lemans.com Mon Apr 21 09:12:17 2008 From: ahermange at gi-lemans.com (HERMANGE Albin) Date: Mon, 21 Apr 2008 18:12:17 +0200 Subject: [mapserver-users] postgis layer and ogr Message-ID: hi, i want to display a postgis layer using the ogr driver the mapserver native postgis connection works very well CONNECTION "user=myuser password=mypwd dbname=mydb host=127.0.0.1 port=5432" CONNECTIONTYPE POSTGIS DATA "geom from (select * from mytable) as foo using unique gid using SRID=-1" but when i want to display the same layer with the gr driver , mapserver crash CONNECTIONTYPE OGR CONNECTION "PG:user=myuser password=mypwd dbname=mydb host=127.0.0.1 port=5432" DATA "SELECT * FROM mytable " i think the CONNECTION string is wrong but i cannot find the correct one can u help me with this connectionstring ? thx, albin -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Mon Apr 21 09:28:24 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Mon, 21 Apr 2008 11:28:24 -0500 Subject: [mapserver-users] grayscale shaded relief in mapserver In-Reply-To: <480CBDF1.1000105@neogeo-online.net> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBCAD@s-sp22.pca.state.mn.us> Have you ruled out a problem with projection or extent? I was hoping to see the top of the map file too, to see what the output projection, extent, and units lines looked like. Also, are you calling the layer name explicitly in the cgi request? If not, try setting the layer status to DEFAULT for testing purposes. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Guillaume Sueur Sent: Monday, April 21, 2008 11:17 AM To: Fawcett, David; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] grayscale shaded relief in mapserver the TIF goes with a .TAB and its georeferencing informations. It looks ok with Qgis. The mapfile is straight-forward : LAYER DATA "uploaded/AUbwV8_32.TIF" NAME "shaded" PROCESSING "COLOR_MATCH_THRESHOLD=3" PROJECTION "init=epsg:27563" END STATUS ON TYPE RASTER UNITS METERS END Thanks for your interest, Guillaume Fawcett, David a ?crit : > Have you stripped out all of the projection, etc. and just tried to > output the image? > > What does your map file look like? > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Guillaume Sueur > Sent: Monday, April 21, 2008 3:48 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] grayscale shaded relief in mapserver > > > Hi list, > > I've got a grayscale TIF showing shaded relief which I can't manage to > display properly with mapserver. The image is just white. gdalinfo gives > : Band 1 Block=4367x1 Type=Byte, ColorInterp=Gray I assume the georef is > ok. I tried few things like resampling it to 32 colors, or "PROCESSING > "COLOR_MATCH_THRESHOLD=3" as I've found in mails archives, but without > any luck. > > Any clue ? > > Thanks > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From guillaume.sueur at neogeo-online.net Mon Apr 21 09:34:20 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Mon, 21 Apr 2008 18:34:20 +0200 Subject: [mapserver-users] grayscale shaded relief in mapserver In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FBCAD@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5021FBCAD@s-sp22.pca.state.mn.us> Message-ID: <480CC20C.902@neogeo-online.net> the main projection is the same. Extents are ok, the tif being much wider than the rest of the dataset. I'm explicitly calling it, and it returns a white image. shp2img on this specific layer does the same. The raster values range from 0 to 255, but on my particuliar mapping zone, the are few differences between pixel values. I'm using GIF PC256 for output. Fawcett, David a ?crit : > Have you ruled out a problem with projection or extent? > > I was hoping to see the top of the map file too, to see what the output projection, extent, and units lines looked like. > > Also, are you calling the layer name explicitly in the cgi request? If not, try setting the layer status to DEFAULT for testing purposes. > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Guillaume Sueur > Sent: Monday, April 21, 2008 11:17 AM > To: Fawcett, David; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] grayscale shaded relief in mapserver > > > the TIF goes with a .TAB and its georeferencing informations. It looks > ok with Qgis. > The mapfile is straight-forward : > LAYER > DATA "uploaded/AUbwV8_32.TIF" > NAME "shaded" > PROCESSING "COLOR_MATCH_THRESHOLD=3" > PROJECTION > "init=epsg:27563" > END > STATUS ON > > TYPE RASTER > UNITS METERS > END > > Thanks for your interest, > > Guillaume > > Fawcett, David a ?crit : >> Have you stripped out all of the projection, etc. and just tried to >> output the image? >> >> What does your map file look like? >> >> David. >> >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >> Guillaume Sueur >> Sent: Monday, April 21, 2008 3:48 AM >> To: mapserver-users at lists.osgeo.org >> Subject: [mapserver-users] grayscale shaded relief in mapserver >> >> >> Hi list, >> >> I've got a grayscale TIF showing shaded relief which I can't manage to >> display properly with mapserver. The image is just white. gdalinfo gives >> : Band 1 Block=4367x1 Type=Byte, ColorInterp=Gray I assume the georef is >> ok. I tried few things like resampling it to 32 colors, or "PROCESSING >> "COLOR_MATCH_THRESHOLD=3" as I've found in mails archives, but without >> any luck. >> >> Any clue ? >> >> Thanks >> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jeffmckenna at gmail.com Mon Apr 21 09:41:00 2008 From: jeffmckenna at gmail.com (Jeff McKenna) Date: Mon, 21 Apr 2008 12:41:00 -0400 Subject: [mapserver-users] grayscale shaded relief in mapserver In-Reply-To: <480CC20C.902@neogeo-online.net> References: <6246727221874A4FB8D3F9BBC37D9BD5021FBCAD@s-sp22.pca.state.mn.us> <480CC20C.902@neogeo-online.net> Message-ID: my thoughts: - make a tiny version of your mapfile with only that one problem layer - remove all projection objects - post this small mapfile and your shp2img output (with the -map_debug switch) to this email list -jeff On 21-Apr-08, at 12:34 PM, Guillaume Sueur wrote: > the main projection is the same. Extents are ok, the tif being much > wider than the rest of the dataset. I'm explicitly calling it, and > it returns a white image. shp2img on this specific layer does the > same. > The raster values range from 0 to 255, but on my particuliar mapping > zone, the are few differences between pixel values. I'm using GIF > PC256 for output. > > > Fawcett, David a ?crit : >> Have you ruled out a problem with projection or extent? I was >> hoping to see the top of the map file too, to see what the output >> projection, extent, and units lines looked like. Also, are you >> calling the layer name explicitly in the cgi request? If not, try >> setting the layer status to DEFAULT for testing purposes. >> David. >> -----Original Message----- >> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org >> ] On Behalf Of Guillaume Sueur >> Sent: Monday, April 21, 2008 11:17 AM >> To: Fawcett, David; mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] grayscale shaded relief in mapserver >> the TIF goes with a .TAB and its georeferencing informations. It >> looks ok with Qgis. >> The mapfile is straight-forward : >> LAYER >> DATA "uploaded/AUbwV8_32.TIF" >> NAME "shaded" >> PROCESSING "COLOR_MATCH_THRESHOLD=3" >> PROJECTION >> "init=epsg:27563" >> END >> STATUS ON >> TYPE RASTER >> UNITS METERS >> END >> Thanks for your interest, >> Guillaume >> Fawcett, David a ?crit : >>> Have you stripped out all of the projection, etc. and just tried >>> to output the image? >>> >>> What does your map file look like? >>> >>> David. >>> >>> -----Original Message----- >>> From: mapserver-users-bounces at lists.osgeo.org >>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >>> Guillaume Sueur >>> Sent: Monday, April 21, 2008 3:48 AM >>> To: mapserver-users at lists.osgeo.org >>> Subject: [mapserver-users] grayscale shaded relief in mapserver >>> >>> >>> Hi list, >>> >>> I've got a grayscale TIF showing shaded relief which I can't >>> manage to >>> display properly with mapserver. The image is just white. gdalinfo >>> gives >>> : Band 1 Block=4367x1 Type=Byte, ColorInterp=Gray I assume the >>> georef is >>> ok. I tried few things like resampling it to 32 colors, or >>> "PROCESSING "COLOR_MATCH_THRESHOLD=3" as I've found in mails >>> archives, but without any luck. >>> >>> Any clue ? >>> >>> Thanks >>> >> _______________________________________________ >> 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 pramsey at cleverelephant.ca Mon Apr 21 10:32:24 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Mon, 21 Apr 2008 10:32:24 -0700 Subject: [mapserver-users] Large Shape File Performance: Testers wanted! Message-ID: <30fe546d0804211032p26d77df7y5baf6ee858301b35@mail.gmail.com> I'm looking for folks comfortable with patching and compiling to test out a couple speed improvements in shape file access. Please leave your comments on the ticket, thanks :) Two performance patches at: http://trac.osgeo.org/mapserver/ticket/2282 Summary: Performance patches radically improved the selective case and left the un-selective case in reasonable shape. Definitions of tests: o Indexed: Render 20 features of 1.8M, using an index scan to only pull the features needed from the SHP file. Tests the selective data access case. o Unindexed: Render 20 features of 1.8M, using no index. Forces bounds from every feature to be read. Tests the un-selective data access case Mapserver 5.0 Indexed: 164ms Unindexed: 990ms Mapserver SVN + SHX Patch Indexed: 48ms Unindexed: 1015ms Mapserver SVN + Bitmap Patch Indexed: 143ms Unindexed: 975ms Mapserver SVN + Bitmap Patch + SVN Patch Indexed: 28ms Unindexed: 991ms From mapserver-users at swisscarto.ch Mon Apr 21 10:31:40 2008 From: mapserver-users at swisscarto.ch (Christian Kaiser) Date: Mon, 21 Apr 2008 19:31:40 +0200 Subject: [mapserver-users] Mapserver & Cartograms In-Reply-To: <20080401103449.BD12537B13@webnail.grid.unep.ch> References: <20080401103449.BD12537B13@webnail.grid.unep.ch> Message-ID: <480CCF7C.1010402@swisscarto.ch> Sorry for the late answer. We did release today a new Java application for cartogram creation (). I think the main problem for an implementation in an online MapServer application will be the computation time needed to create the cartogram. Technically, it should be possible to find a solution using one of the known algorithms. But you will have to handle a computation process which can take several minutes... Christian schwarzr at grid.unep.ch wrote: > Hi there, > > do you know of anybody or any mechanism to implement some cartogram > functionality into mapserver? You'll perhaps know the worldmapper site - nice > examples. We've developed a couple of other ones for a specific project; and > I thought about using an exisiting mapserver site to draw these kind of > cartograms dynamically. That would be really cool... > > Thanks for any ideas, > > Stef > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From nospam420 at yahoo.com Mon Apr 21 10:51:15 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Mon, 21 Apr 2008 10:51:15 -0700 (PDT) Subject: [MAPSERVER-USERS] ASCII -> UTF-8 convert problems for importing (GIS) data In-Reply-To: <5D28D4DD-F80A-4163-80B8-AD5FD372A33A@grid.unep.ch> References: <1271ED51-BE7D-4A72-AAC5-860F028D14F8@grid.unep.ch> <200804181637.51277.yjacolin@free.fr> <5D28D4DD-F80A-4163-80B8-AD5FD372A33A@grid.unep.ch> Message-ID: <16808302.post@talk.nabble.com> Stefan Schwarzer wrote: > > >>> hmm.... I have a shapefile, which has some unorthodox characters (?, >>> ?, ...). Now, when importing the file (via shp2pgsql) into postgres, >>> it complains about it not being UTF-8 (my database has that format). >>> >>> So, how can I convert either the dbf file or than in a later stage >>> the >>> created text file from (I guess) ASCII into UTF-8? > >> You have an option for shp2pgsql (-W I think) to tell shp2pgsql to >> convert >> your data into this encoding: > > Yep, tried that too. But I get this message: > > shp2pgsql -s 4326 -I -W UTF-8 -D countries.shp gis.countries_new > > countries_new.sql > Shapefile type: Polygon > Postgis type: MULTIPOLYGON[2] > utf8: Invalid or incomplete multibyte or wide character > > We didn't really understand if the "-W" is to specify what the format > is (which we assumed) or into which format it has to be transformed. > > So, we would need something like transform ASCII into UTF-8. > -W describes the input format. The output format if you use it will be UTF-8. From the shp2pgsql(1) man page: --- -W Specify the character encoding of Shapefile$-1??s attributes. If this option is used the output will be encoded in UTF-8. --- So no, you don't want to transform it from ASCII, because you clearly don't have ASCII input, as ASCII does not have the characters you describe. You need to find out what the input data is encoded in. A very likely candidate is ISO-8859-1 (aka Latin-1). Take a look at the actual hex values of some of the non-English characters. (I use hexl-mode in emacs to do this, but there are plenty of other ways.) Compare them to ISO-8859-1, for example at either of these: http://en.wikipedia.org/wiki/ISO_8859-1 http://anubis.dkuug.dk/JTC1/SC2/WG3/docs/n411.pdf For the two examples you cite, we have: 0xC7 LATIN CAPITAL C WITH CEDILLA 0xEC LATIN SMALL I WITH GRAVE Do they match? But this is still a bit of a guessing game, because you could find many matches and still not be right, e.g. ISO-8859-15 is very similar. A better way would be to look at the documentation for your input data, or ask the provider of the data. - Rich -- View this message in context: http://www.nabble.com/ASCII--%3E-UTF-8-convert-problems-for-importing-%28GIS%29-data-tp16768968p16808302.html Sent from the Mapserver - User mailing list archive at Nabble.com. From yosoycore at gmail.com Mon Apr 21 11:01:59 2008 From: yosoycore at gmail.com (Emilio Ponce) Date: Mon, 21 Apr 2008 20:01:59 +0200 Subject: [MAPSERVER-USERS] ASCII -> UTF-8 convert problems for importing (GIS) data In-Reply-To: <16808302.post@talk.nabble.com> References: <1271ED51-BE7D-4A72-AAC5-860F028D14F8@grid.unep.ch> <200804181637.51277.yjacolin@free.fr> <5D28D4DD-F80A-4163-80B8-AD5FD372A33A@grid.unep.ch> <16808302.post@talk.nabble.com> Message-ID: <9c2e09570804211101u4af8a6f7y8d2ec863684dce89@mail.gmail.com> I had the same problem, to convert Charset you can use this option of the Shp2pgsql tool shp2pgsql shapefile_name table_name | iconv -f LATIN1 -t UTF-8 | psql -d db_name It converts the charset of the shapefile from LATIN1 to UTF-8 2008/4/21 rich.fromm : > > > Stefan Schwarzer wrote: > > > > > >>> hmm.... I have a shapefile, which has some unorthodox characters (?, > >>> ?, ...). Now, when importing the file (via shp2pgsql) into postgres, > >>> it complains about it not being UTF-8 (my database has that format). > >>> > >>> So, how can I convert either the dbf file or than in a later stage > >>> the > >>> created text file from (I guess) ASCII into UTF-8? > > > >> You have an option for shp2pgsql (-W I think) to tell shp2pgsql to > >> convert > >> your data into this encoding: > > > > Yep, tried that too. But I get this message: > > > > shp2pgsql -s 4326 -I -W UTF-8 -D countries.shp gis.countries_new > > > countries_new.sql > > Shapefile type: Polygon > > Postgis type: MULTIPOLYGON[2] > > utf8: Invalid or incomplete multibyte or wide character > > > > We didn't really understand if the "-W" is to specify what the format > > is (which we assumed) or into which format it has to be transformed. > > > > So, we would need something like transform ASCII into UTF-8. > > > > -W describes the input format. The output format if you use it will be > UTF-8. From the shp2pgsql(1) man page: > > --- > -W > Specify the character encoding of Shapefile $-1??s attributes. > If this option is used the output will be encoded in UTF-8. > --- > > So no, you don't want to transform it from ASCII, because you clearly don't > have ASCII input, as ASCII does not have the characters you describe. > > You need to find out what the input data is encoded in. A very likely > candidate is ISO-8859-1 (aka Latin-1). > > Take a look at the actual hex values of some of the non-English characters. > (I use hexl-mode in emacs to do this, but there are plenty of other ways.) > Compare them to ISO-8859-1, for example at either of these: > > http://en.wikipedia.org/wiki/ISO_8859-1 > http://anubis.dkuug.dk/JTC1/SC2/WG3/docs/n411.pdf > > For the two examples you cite, we have: > > 0xC7 LATIN CAPITAL C WITH CEDILLA > 0xEC LATIN SMALL I WITH GRAVE > > Do they match? But this is still a bit of a guessing game, because you > could find many matches and still not be right, e.g. ISO-8859-15 is very > similar. A better way would be to look at the documentation for your input > data, or ask the provider of the data. > > - Rich > > -- > View this message in context: http://www.nabble.com/ASCII--%3E-UTF-8-convert-problems-for-importing-%28GIS%29-data-tp16768968p16808302.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 > -- Emilio From yosoycore at gmail.com Mon Apr 21 11:08:08 2008 From: yosoycore at gmail.com (Emilio Ponce) Date: Mon, 21 Apr 2008 20:08:08 +0200 Subject: [mapserver-users] Connecting to PostGIS only one time for all the layers Message-ID: <9c2e09570804211108g3d0085cbw4293736c74d1244@mail.gmail.com> I want to connect only one time to a PostGIS database, in order to improve the efficiency of my mapfile. Now I'm connecting in every layer with this lines: " CONNECTIONTYPE postgis CONNECTION "host= ... " DATA "the_geom from comarcas " Is there a way to do this only one time in all the mapfile using more than one layer? -- Emilio From guillaume.sueur at neogeo-online.net Mon Apr 21 12:50:38 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Mon, 21 Apr 2008 21:50:38 +0200 Subject: [mapserver-users] grayscale shaded relief in mapserver In-Reply-To: References: <6246727221874A4FB8D3F9BBC37D9BD5021FBCAD@s-sp22.pca.state.mn.us> <480CC20C.902@neogeo-online.net> Message-ID: <480CF00E.80503@neogeo-online.net> I've done a tileindex, and when I set the layer to polygon and data to my tileindex shape, it displays well. So I think it's not a georeferencing problem. Does anything could render as null (transparent or white, depending of outputformat) some raster layer without any error ? Thanks Guillaume Jeff McKenna a ?crit : > my thoughts: > > - make a tiny version of your mapfile with only that one problem layer > - remove all projection objects > - post this small mapfile and your shp2img output (with the -map_debug > switch) to this email list > > > -jeff > > > > > On 21-Apr-08, at 12:34 PM, Guillaume Sueur wrote: > >> the main projection is the same. Extents are ok, the tif being much >> wider than the rest of the dataset. I'm explicitly calling it, and it >> returns a white image. shp2img on this specific layer does the same. >> The raster values range from 0 to 255, but on my particuliar mapping >> zone, the are few differences between pixel values. I'm using GIF >> PC256 for output. >> >> >> Fawcett, David a ?crit : >>> Have you ruled out a problem with projection or extent? I was hoping >>> to see the top of the map file too, to see what the output >>> projection, extent, and units lines looked like. Also, are you >>> calling the layer name explicitly in the cgi request? If not, try >>> setting the layer status to DEFAULT for testing purposes. >>> David. >>> -----Original Message----- >>> From: mapserver-users-bounces at lists.osgeo.org >>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >>> Guillaume Sueur >>> Sent: Monday, April 21, 2008 11:17 AM >>> To: Fawcett, David; mapserver-users at lists.osgeo.org >>> Subject: Re: [mapserver-users] grayscale shaded relief in mapserver >>> the TIF goes with a .TAB and its georeferencing informations. It >>> looks ok with Qgis. >>> The mapfile is straight-forward : >>> LAYER >>> DATA "uploaded/AUbwV8_32.TIF" >>> NAME "shaded" >>> PROCESSING "COLOR_MATCH_THRESHOLD=3" >>> PROJECTION >>> "init=epsg:27563" >>> END >>> STATUS ON >>> TYPE RASTER >>> UNITS METERS >>> END >>> Thanks for your interest, >>> Guillaume >>> Fawcett, David a ?crit : >>>> Have you stripped out all of the projection, etc. and just tried to >>>> output the image? >>>> >>>> What does your map file look like? >>>> >>>> David. >>>> >>>> -----Original Message----- >>>> From: mapserver-users-bounces at lists.osgeo.org >>>> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >>>> Guillaume Sueur >>>> Sent: Monday, April 21, 2008 3:48 AM >>>> To: mapserver-users at lists.osgeo.org >>>> Subject: [mapserver-users] grayscale shaded relief in mapserver >>>> >>>> >>>> Hi list, >>>> >>>> I've got a grayscale TIF showing shaded relief which I can't manage to >>>> display properly with mapserver. The image is just white. gdalinfo >>>> gives >>>> : Band 1 Block=4367x1 Type=Byte, ColorInterp=Gray I assume the >>>> georef is >>>> ok. I tried few things like resampling it to 32 colors, or >>>> "PROCESSING "COLOR_MATCH_THRESHOLD=3" as I've found in mails >>>> archives, but without any luck. >>>> >>>> Any clue ? >>>> >>>> Thanks >>>> >>> _______________________________________________ >>> 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 hatedau at yahoo.com Mon Apr 21 14:46:01 2008 From: hatedau at yahoo.com (Lee) Date: Mon, 21 Apr 2008 14:46:01 -0700 (PDT) Subject: [mapserver-users] ArcGIS Image Server Message-ID: <951375.17824.qm@web90403.mail.mud.yahoo.com> Greetings, Is it possible to connect to an ESRI ArcGIS Image Server using UMN Mapserver? I can curently use vector data from the SDE, but their raster data is served from an ArcGIS Image Server. Any suggestions or examples, would be appreciated. Thanks Lee ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ From deangadoury at gmail.com Mon Apr 21 15:47:23 2008 From: deangadoury at gmail.com (Dean Gadoury) Date: Mon, 21 Apr 2008 18:47:23 -0400 Subject: [mapserver-users] ArcGIS Image Server In-Reply-To: <951375.17824.qm@web90403.mail.mud.yahoo.com> References: <951375.17824.qm@web90403.mail.mud.yahoo.com> Message-ID: <30a1c6fa0804211547l7e814ac4j78eb17dcdeb7a471@mail.gmail.com> I don't know if you can connect directly, but are you able to serve the rasters through WMS from the ArcGIS Server? If so, you can make WMS requests with your UMN MapServer and get the imagery that way. DG On Mon, Apr 21, 2008 at 5:46 PM, Lee wrote: > Greetings, > Is it possible to connect to an ESRI ArcGIS Image Server using UMN > Mapserver? > I can curently use vector data from the SDE, but their raster data is > served from an ArcGIS Image Server. > Any suggestions or examples, would be appreciated. > > Thanks > Lee > > > > ____________________________________________________________________________________ > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > _______________________________________________ > 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 nospam420 at yahoo.com Mon Apr 21 16:25:06 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Mon, 21 Apr 2008 16:25:06 -0700 (PDT) Subject: [MAPSERVER-USERS] ASCII -> UTF-8 convert problems for importing (GIS) data In-Reply-To: <9c2e09570804211101u4af8a6f7y8d2ec863684dce89@mail.gmail.com> References: <1271ED51-BE7D-4A72-AAC5-860F028D14F8@grid.unep.ch> <200804181637.51277.yjacolin@free.fr> <5D28D4DD-F80A-4163-80B8-AD5FD372A33A@grid.unep.ch> <16808302.post@talk.nabble.com> <9c2e09570804211101u4af8a6f7y8d2ec863684dce89@mail.gmail.com> Message-ID: <16817682.post@talk.nabble.com> Emilio Ponce wrote: > > I had the same problem, to convert Charset you can use this option of > the Shp2pgsql tool > > shp2pgsql shapefile_name table_name | iconv -f LATIN1 -t UTF-8 | psql -d > db_name > > It converts the charset of the shapefile from LATIN1 to UTF-8 > I think you're doing an unneccessary step here. Assuming LATIN1 is a valid alias for ISO-8859-1 as recognized by shp2pgsql, just use shp2pgsql -W LATIN1 to do the conversion to UTF-8. (Or if that doesn't work, use -W ISO-8859-1.) But my main point is that you can have shp2pgsql do the conversion, and there's no need to pipe it to iconv. - Rich -- View this message in context: http://www.nabble.com/ASCII--%3E-UTF-8-convert-problems-for-importing-%28GIS%29-data-tp16768968p16817682.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pianosnake at gmail.com Mon Apr 21 16:28:39 2008 From: pianosnake at gmail.com (Florin A.) Date: Mon, 21 Apr 2008 17:28:39 -0600 Subject: [mapserver-users] ArcGIS Image Server In-Reply-To: <951375.17824.qm@web90403.mail.mud.yahoo.com> References: <951375.17824.qm@web90403.mail.mud.yahoo.com> Message-ID: <1d674ec80804211628y31166382t796378dc4cdeabc9@mail.gmail.com> The 9.3 version of ArcGIS will be able to serve Image Server services as WMS. From nospam420 at yahoo.com Mon Apr 21 16:31:07 2008 From: nospam420 at yahoo.com (rich.fromm) Date: Mon, 21 Apr 2008 16:31:07 -0700 (PDT) Subject: [MAPSERVER-USERS] Connecting to PostGIS only one time for all the layers In-Reply-To: <9c2e09570804211108g3d0085cbw4293736c74d1244@mail.gmail.com> References: <9c2e09570804211108g3d0085cbw4293736c74d1244@mail.gmail.com> Message-ID: <16817687.post@talk.nabble.com> Emilio Ponce wrote: > > I want to connect only one time to a PostGIS database, in order to > improve the efficiency of my mapfile. Now I'm connecting in every > layer with this lines: > > " > CONNECTIONTYPE postgis > CONNECTION "host= ... " > DATA "the_geom from comarcas > " > > Is there a way to do this only one time in all the mapfile using more > than one layer? > In each LAYER, add: PROCESSING "CLOSE_CONNECTION=DEFER" This tells mapserver not to close the connection. So you still need to specify the connection multiply, but that's not that big of a deal, and you will get the performance gain. This is documented here: http://mapserver.gis.umn.edu/docs/reference/mapfile/layer But there are some caveats, and you might find yourself needing to apply a local patch. For more details, see: http://www.nabble.com/CLOSE_CONNECTION%3DDEFER----Segmentation-fault-to15786741.html http://trac.osgeo.org/mapserver/ticket/2497 - Rich -- View this message in context: http://www.nabble.com/Connecting-to-PostGIS-only-one-time-for-all-the-layers-tp16816322p16817687.html Sent from the Mapserver - User mailing list archive at Nabble.com. From iworktech.sucharita at gmail.com Tue Apr 22 00:34:12 2008 From: iworktech.sucharita at gmail.com (Sucharita Samuel) Date: Tue, 22 Apr 2008 13:04:12 +0530 Subject: [mapserver-users] How to change the feature points of a circle Message-ID: <2d6d8af10804220034x642ab291xa926d5e6656185c4@mail.gmail.com> Hi, Can anybody please help me with a mapscript code to change the feature points of a circle defined in the mapfile. My mapfile looks as below, LAYER NAME "Circle" STATUS off TRANSPARENCY 50 TYPE circle FEATURE POINTS 73.802230 18.484904 73.902774 18.584458 END #end of POINTS END #end of FEATURE CLASS STYLE OUTLINECOLOR 255 0 0 COLOR 186 227 255 END #end of STYLE END #end of CLASS END #end of LAYER Circle Currently I am using C# mapscript. A code in php will also be great. Thanks, Sucharita -------------- next part -------------- An HTML attachment was scrubbed... URL: From liste at geo-dienstleistung.de Tue Apr 22 02:26:42 2008 From: liste at geo-dienstleistung.de (Frank Broniewski) Date: Tue, 22 Apr 2008 11:26:42 +0200 Subject: [mapserver-users] postgis wms bounding box Message-ID: <200804221126.42988.liste@geo-dienstleistung.de> Hello List, I am setting up a wms server which retrieves its data from a postgis database and I am having trouble displaying the layer in QGIS or OpenJump correctly. QGIS doesn't show anything at all, while openjump requires zooming in to see the data. A getmap request (without bbox-parameter) in the browser does give me a "correct" view of the data. I am using on Ubuntu 7.10 MapServer version 4.10.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=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG Having a look at the getcapabilites document, there seems to be a problem with the calculation of the layer extents: here's the global extent from the getcapabilities response: And here's the bbox from the actual postgis layer: As you can see, the bounding box of the layer is completely wrong. It should nearly be the same as the global extent. The data definition in the mapfile is: Data "centroid from public.locations using unique id" Any suggestions? Should I return a bbox in the data query for the postgis layer to prevent the wrong bbox of the layer? And if yes, how do I do this? Greetings from Luxembourg Frank From mschulz at webgis.de Tue Apr 22 03:29:46 2008 From: mschulz at webgis.de (Michael Schulz) Date: Tue, 22 Apr 2008 12:29:46 +0200 Subject: [mapserver-users] postgis wms bounding box In-Reply-To: <200804221126.42988.liste@geo-dienstleistung.de> References: <200804221126.42988.liste@geo-dienstleistung.de> Message-ID: Hi Frank, that is a known problem with postgis layers. If i recall it correctly it is basically due to the fact that it is timely expensive to calculate the extent of a postgis layer (it'd need to be done for each getCap request). You can come around this by specifying the wms_extent metadata parameter for that layer manually. Cheers, Michael 2008/4/22 Frank Broniewski : > Hello List, > > I am setting up a wms server which retrieves its data from a postgis database > and I am having trouble displaying the layer in QGIS or OpenJump correctly. > QGIS doesn't show anything at all, while openjump requires zooming in to see > the data. A getmap request (without bbox-parameter) in the browser does give > me a "correct" view of the data. I am using on Ubuntu 7.10 > > MapServer version 4.10.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=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG > > Having a look at the getcapabilites document, there seems to be a problem with > the calculation of the layer extents: here's the global extent from the > getcapabilities response: > > maxy="50.1818" /> > maxy="138765" /> > > And here's the bbox from the actual postgis layer: > maxy="2.63905e+18" /> > maxy="2.5e+07" /> > > As you can see, the bounding box of the layer is completely wrong. It should > nearly be the same as the global extent. The data definition in the mapfile > is: > Data "centroid from public.locations using unique id" > > Any suggestions? Should I return a bbox in the data query for the postgis > layer to prevent the wrong bbox of the layer? And if yes, how do I do this? > > Greetings from Luxembourg > > Frank > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 79108 Freiburg Tel +49 (0)761 556959-5 Fax +49 (0)761 556959-6 http://www.webgis.de / http://www.zopecms.de ----------------------------------------------------------- From sainath.sabale at microassociates.co.in Tue Apr 22 04:29:40 2008 From: sainath.sabale at microassociates.co.in (Sainath Sable) Date: Tue, 22 Apr 2008 16:59:40 +0530 Subject: [mapserver-users] To fire Parameterized query using GeoMoose Tool in Mapserver Message-ID: Hi, all of u i am facing one problem from last week., that i am unable to fire the parameterized query as i dont know the format of such type of query. i am using GeoMoose tool. can any 1 help m. i am new to Mapserver world, reply m. -------------- next part -------------- An HTML attachment was scrubbed... URL: From liste at geo-dienstleistung.de Tue Apr 22 04:33:45 2008 From: liste at geo-dienstleistung.de (Frank Broniewski) Date: Tue, 22 Apr 2008 13:33:45 +0200 Subject: [mapserver-users] postgis wms bounding box In-Reply-To: References: <200804221126.42988.liste@geo-dienstleistung.de> Message-ID: <200804221333.46143.liste@geo-dienstleistung.de> Thanks Michael, that solved the issue. This issue is so close to "RTFM" that I am really ashamed to post again ;-), but I really did not find it in the wms how-to. Well thanks again for the tipp. Just one more question though. Is it possible to determine the extent of the postgis layer somehow dynamically, maybe within a query? I just think of a dynamically growing table where the extent might change anytime and I would have to adjust the extent in the mapfile each time the extent gets bigger. Greetings Frank On Tuesday 22 April 2008 12:29:46 Michael Schulz wrote: > Hi Frank, > > that is a known problem with postgis layers. If i recall it correctly > it is basically due to the fact that it is timely expensive to > calculate the extent of a postgis layer (it'd need to be done for each > getCap request). You can come around this by specifying the wms_extent > metadata parameter for that layer manually. > > Cheers, Michael > > 2008/4/22 Frank Broniewski : > > Hello List, > > > > I am setting up a wms server which retrieves its data from a postgis > > database and I am having trouble displaying the layer in QGIS or OpenJump > > correctly. QGIS doesn't show anything at all, while openjump requires > > zooming in to see the data. A getmap request (without bbox-parameter) in > > the browser does give me a "correct" view of the data. I am using on > > Ubuntu 7.10 > > > > MapServer version 4.10.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=THREADS SUPPORTS=GEOS INPUT=EPPL7 > > INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG > > > > Having a look at the getcapabilites document, there seems to be a > > problem with the calculation of the layer extents: here's the global > > extent from the getcapabilities response: > > > > > maxy="50.1818" /> > > > maxy="138765" /> > > > > And here's the bbox from the actual postgis layer: > > > maxy="2.63905e+18" /> > > > maxx="2.5e+07" maxy="2.5e+07" /> > > > > As you can see, the bounding box of the layer is completely wrong. It > > should nearly be the same as the global extent. The data definition in > > the mapfile is: > > Data "centroid from public.locations using unique id" > > > > Any suggestions? Should I return a bbox in the data query for the > > postgis layer to prevent the wrong bbox of the layer? And if yes, how do > > I do this? > > > > Greetings from Luxembourg > > > > Frank > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users From yosoycore at gmail.com Tue Apr 22 07:14:10 2008 From: yosoycore at gmail.com (Emilio Ponce) Date: Tue, 22 Apr 2008 16:14:10 +0200 Subject: [mapserver-users] One layer filled with 3 colors Message-ID: <9c2e09570804220714m6565ac99nfba047dd6d7582f3@mail.gmail.com> Hi everyone, I'm trying to paint one layer with 3 different colors, depending on one field called 'zona' that is a column of the table stored at a postGIS database. I'm doing this in the layer: ... STATUS DEFAULT CONNECTIONTYPE postgis CONNECTION "host=**** dbname=**** user=**** password=**** port=****'" DATA "the_geom from car_marccata" FILTER "zona='FORA'" CLASS COLOR 143 81 8 END FILTER "zona='MAR'" CLASS COLOR 0 154 239 END FILTER "zona='CATA'" CLASS COLOR 223 223 223 END It doesn't works.. I've tried different strategies but I haven't found the problem yet. Does anyone knows what's wrong? Thanks! -- Emilio From woodbri at swoodbridge.com Tue Apr 22 08:23:34 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 22 Apr 2008 10:23:34 -0500 Subject: [mapserver-users] One layer filled with 3 colors In-Reply-To: <9c2e09570804220714m6565ac99nfba047dd6d7582f3@mail.gmail.com> References: <9c2e09570804220714m6565ac99nfba047dd6d7582f3@mail.gmail.com> Message-ID: <480E02F6.6080707@swoodbridge.com> Emilio Ponce wrote: > Hi everyone, > > I'm trying to paint one layer with 3 different colors, depending on > one field called 'zona' that is a column of the table stored at a > postGIS database. I'm doing this in the layer: > > ... > STATUS DEFAULT > CONNECTIONTYPE postgis > CONNECTION "host=**** dbname=**** user=**** password=**** port=****'" > DATA "the_geom from car_marccata" > > FILTER "zona='FORA'" > CLASS > COLOR 143 81 8 > END > > FILTER "zona='MAR'" > CLASS > COLOR 0 154 239 > END > > FILTER "zona='CATA'" > CLASS > COLOR 223 223 223 > END > > It doesn't works.. I've tried different strategies but I haven't found > the problem yet. Does anyone knows what's wrong? > > Thanks! > Try this: STATUS DEFAULT CONNECTIONTYPE postgis CONNECTION "host=**** dbname=**** user=**** assword=**** port=****'" DATA "the_geom from car_marccata" CLASSITEM "zona" CLASS EXPRESSION ([zona] = 'FORA') COLOR 143 81 8 END CLASS EXPRESSION ([zona] = 'MAR') COLOR 0 154 239 END CLASS EXPRESSION ([zona] = 'CATA') COLOR 223 223 223 END From helpwithdeegree at gmail.com Tue Apr 22 07:36:36 2008 From: helpwithdeegree at gmail.com (deegree deegree) Date: Tue, 22 Apr 2008 16:36:36 +0200 Subject: [mapserver-users] Help with using query modes Message-ID: Hi, I need help with using query modes. I'm following the steps in the Bil Kropla's manual of MapServer but in the chapter 5 he's using a shapefile that I don?t know where download it. Does someone to find these shapefiles? thanks!!!! -------------- next part -------------- An HTML attachment was scrubbed... URL: From yosoycore at gmail.com Tue Apr 22 07:39:48 2008 From: yosoycore at gmail.com (Emilio Ponce) Date: Tue, 22 Apr 2008 16:39:48 +0200 Subject: [mapserver-users] One layer filled with 3 colors In-Reply-To: <480E02F6.6080707@swoodbridge.com> References: <9c2e09570804220714m6565ac99nfba047dd6d7582f3@mail.gmail.com> <480E02F6.6080707@swoodbridge.com> Message-ID: <9c2e09570804220739w56ad8412v1e818519c61b88cb@mail.gmail.com> Thanks Stephen! I've found the solution with your idea, is very similar to your code: LAYER ... DATA "the_geom from car_marccata" CLASSITEM "zona" CLASS EXPRESSION "FORA" COLOR 143 81 8 END CLASS EXPRESSION "MAR" COLOR 0 154 239 END CLASS EXPRESSION "CATA" COLOR 223 223 223 END END Regards, 2008/4/22 Stephen Woodbridge : > > Emilio Ponce wrote: > > > Hi everyone, > > > > I'm trying to paint one layer with 3 different colors, depending on > > one field called 'zona' that is a column of the table stored at a > > postGIS database. I'm doing this in the layer: > > > > ... > > STATUS DEFAULT > > CONNECTIONTYPE postgis > > CONNECTION "host=**** dbname=**** user=**** password=**** > port=****'" > > DATA "the_geom from car_marccata" > > > > FILTER "zona='FORA'" > > CLASS > > COLOR 143 81 8 > > END > > > > FILTER "zona='MAR'" > > CLASS > > COLOR 0 154 239 > > END > > > > FILTER "zona='CATA'" > > CLASS > > COLOR 223 223 223 > > END > > > > It doesn't works.. I've tried different strategies but I haven't found > > the problem yet. Does anyone knows what's wrong? > > > > Thanks! > > > > > > Try this: > > STATUS DEFAULT > CONNECTIONTYPE postgis > CONNECTION "host=**** dbname=**** user=**** assword=**** > port=****'" > > DATA "the_geom from car_marccata" > CLASSITEM "zona" > > CLASS > EXPRESSION ([zona] = 'FORA') > > COLOR 143 81 8 > END > > CLASS > EXPRESSION ([zona] = 'MAR') > > COLOR 0 154 239 > END > > CLASS > EXPRESSION ([zona] = 'CATA') > > > COLOR 223 223 223 > END > -- Emilio From florian.thuerkow at ufz.de Tue Apr 22 07:45:48 2008 From: florian.thuerkow at ufz.de (=?ISO-8859-1?Q?Florian_Th=FCrkow?=) Date: Tue, 22 Apr 2008 16:45:48 +0200 Subject: [mapserver-users] Help with using query modes In-Reply-To: References: Message-ID: <480DFA1C.7000409@ufz.de> hi, you find all shape-files on this page: http://nationalatlas.gov/atlasftp.html best regards florian thuerkow deegree deegree schrieb: > Hi, > > I need help with using query modes. I'm following the steps in the Bil > Kropla's manual of MapServer but in the chapter 5 he's using a > shapefile that I don?t know where download it. > > Does someone to find these shapefiles? > > thanks!!!! > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From yosoycore at gmail.com Tue Apr 22 08:38:50 2008 From: yosoycore at gmail.com (Emilio Ponce) Date: Tue, 22 Apr 2008 17:38:50 +0200 Subject: [mapserver-users] One layer filled with 3 colors In-Reply-To: <9c2e09570804220739w56ad8412v1e818519c61b88cb@mail.gmail.com> References: <9c2e09570804220714m6565ac99nfba047dd6d7582f3@mail.gmail.com> <480E02F6.6080707@swoodbridge.com> <9c2e09570804220739w56ad8412v1e818519c61b88cb@mail.gmail.com> Message-ID: <9c2e09570804220838h2d9075c8q1379c764d90eee0e@mail.gmail.com> This code takes me now to a new one question: Is there a way to assign colours dynamically? I'm wondering if mapserver is able to detect the different options of the column 'zona', and then use random palette colours to represent these automatically, without having to set COLOR for each one manually. It can be useful because every column has different options. Thank you guys, 2008/4/22 Emilio Ponce : > Thanks Stephen! > I've found the solution with your idea, is very similar to your code: > > > LAYER > > ... > > DATA "the_geom from car_marccata" > CLASSITEM "zona" > > CLASS > EXPRESSION "FORA" > > COLOR 143 81 8 > END > > CLASS > EXPRESSION "MAR" > > COLOR 0 154 239 > END > > CLASS > EXPRESSION "CATA" > > COLOR 223 223 223 > END > > END > > > Regards, > > > 2008/4/22 Stephen Woodbridge : > > > > > > Emilio Ponce wrote: > > > > > Hi everyone, > > > > > > I'm trying to paint one layer with 3 different colors, depending on > > > one field called 'zona' that is a column of the table stored at a > > > postGIS database. I'm doing this in the layer: > > > > > > ... > > > STATUS DEFAULT > > > CONNECTIONTYPE postgis > > > CONNECTION "host=**** dbname=**** user=**** password=**** > > port=****'" > > > DATA "the_geom from car_marccata" > > > > > > FILTER "zona='FORA'" > > > CLASS > > > COLOR 143 81 8 > > > END > > > > > > FILTER "zona='MAR'" > > > CLASS > > > COLOR 0 154 239 > > > END > > > > > > FILTER "zona='CATA'" > > > CLASS > > > COLOR 223 223 223 > > > END > > > > > > It doesn't works.. I've tried different strategies but I haven't found > > > the problem yet. Does anyone knows what's wrong? > > > > > > Thanks! > > > > > > > > > > Try this: > > > > STATUS DEFAULT > > CONNECTIONTYPE postgis > > CONNECTION "host=**** dbname=**** user=**** assword=**** > > port=****'" > > > > DATA "the_geom from car_marccata" > > CLASSITEM "zona" > > > > CLASS > > EXPRESSION ([zona] = 'FORA') > > > > COLOR 143 81 8 > > END > > > > CLASS > > EXPRESSION ([zona] = 'MAR') > > > > COLOR 0 154 239 > > END > > > > CLASS > > EXPRESSION ([zona] = 'CATA') > > > > > > COLOR 223 223 223 > > END > > > > > > -- > Emilio > -- Emilio From wzhu at cert.ucr.edu Tue Apr 22 11:25:43 2008 From: wzhu at cert.ucr.edu (wzhu at cert.ucr.edu) Date: Tue, 22 Apr 2008 11:25:43 -0700 Subject: [mapserver-users] how to get a sub-map of a map(shapefile)? Message-ID: <1208888743.480e2da7eefd2@pah.cert.ucr.edu> HI, I am wondering if anybody knows a tool to get a sub-map of a map. For example, I need to get a small map around some location instead of a whole big map(Using whole big map will be time consuming). Thanks a lot. -wh. From wzhu at cert.ucr.edu Tue Apr 22 11:21:54 2008 From: wzhu at cert.ucr.edu (wzhu at cert.ucr.edu) Date: Tue, 22 Apr 2008 11:21:54 -0700 Subject: [mapserver-users] anbody knows if there is a toolbox able to calculate k-shortest paths? In-Reply-To: <871543920804181414j7561f17fs34d9c37e62fc5a90@mail.gmail.com> References: <871543920804181414j7561f17fs34d9c37e62fc5a90@mail.gmail.com> Message-ID: <1208888514.480e2cc20cdf6@pah.cert.ucr.edu> HI, I am wondering if there is a toolbox able to calculate k-shortest paths? Basically Dijkstra gives us the shortest path, but sometimes, we need several shortest paths(the shortest one, the second shortest one, etc..). Thanks a lot. -Weihua From alim.karim at gmail.com Tue Apr 22 14:52:04 2008 From: alim.karim at gmail.com (alim karim) Date: Tue, 22 Apr 2008 14:52:04 -0700 Subject: [mapserver-users] php/mapscipt getExtent Message-ID: hello all. i have a PostGIS layer (without its extents specified) in a mapfile. i am trying to use getExtent on this layer, but the coordinates i get back (["minx":-25000000,"miny":-25000000,"maxx":25000000,"maxy":25000000]) are not the correct extents([1180204.375000, 809428.750000,1222443.000000, 857276.187500)]). is there a way to get the proper extents of a layer even though they might not be specified in the mapfile? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Tue Apr 22 15:41:56 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 22 Apr 2008 17:41:56 -0500 Subject: [mapserver-users] One layer filled with 3 colors In-Reply-To: <9c2e09570804220838h2d9075c8q1379c764d90eee0e@mail.gmail.com> References: <9c2e09570804220714m6565ac99nfba047dd6d7582f3@mail.gmail.com> <480E02F6.6080707@swoodbridge.com> <9c2e09570804220739w56ad8412v1e818519c61b88cb@mail.gmail.com> <9c2e09570804220838h2d9075c8q1379c764d90eee0e@mail.gmail.com> Message-ID: <480E2364.5157.008F.0@dnr.state.mn.us> If in your database you transformed the various values of zona into colors (e.g. stored the color in a column called zona_color) then you could do: LAYER DATA "the_geom from car_marccata" CLASS STYLE COLOR [zona_color] END END END You'd need to set those up ahead of time, or at least create a color lookup table and do the join in the DATA statement. Steve -- Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-259-5473 >>> On 4/22/2008 at 10:38 AM, in message <9c2e09570804220838h2d9075c8q1379c764d90eee0e at mail.gmail.com>, "Emilio Ponce" wrote: > This code takes me now to a new one question: > > Is there a way to assign colours dynamically? I'm wondering if > mapserver is able to detect the different options of the column > 'zona', and then use random palette colours to represent these > automatically, without having to set COLOR for each one manually. It > can be useful because every column has different options. > > Thank you guys, > > > > 2008/4/22 Emilio Ponce : >> Thanks Stephen! >> I've found the solution with your idea, is very similar to your code: >> >> >> LAYER >> >> ... >> >> DATA "the_geom from car_marccata" >> CLASSITEM "zona" >> >> CLASS >> EXPRESSION "FORA" >> >> COLOR 143 81 8 >> END >> >> CLASS >> EXPRESSION "MAR" >> >> COLOR 0 154 239 >> END >> >> CLASS >> EXPRESSION "CATA" >> >> COLOR 223 223 223 >> END >> >> END >> >> >> Regards, >> >> >> 2008/4/22 Stephen Woodbridge : >> >> >> > >> > Emilio Ponce wrote: >> > >> > > Hi everyone, >> > > >> > > I'm trying to paint one layer with 3 different colors, depending on >> > > one field called 'zona' that is a column of the table stored at a >> > > postGIS database. I'm doing this in the layer: >> > > >> > > ... >> > > STATUS DEFAULT >> > > CONNECTIONTYPE postgis >> > > CONNECTION "host=**** dbname=**** user=**** password=**** >> > port=****'" >> > > DATA "the_geom from car_marccata" >> > > >> > > FILTER "zona='FORA'" >> > > CLASS >> > > COLOR 143 81 8 >> > > END >> > > >> > > FILTER "zona='MAR'" >> > > CLASS >> > > COLOR 0 154 239 >> > > END >> > > >> > > FILTER "zona='CATA'" >> > > CLASS >> > > COLOR 223 223 223 >> > > END >> > > >> > > It doesn't works.. I've tried different strategies but I haven't found >> > > the problem yet. Does anyone knows what's wrong? >> > > >> > > Thanks! >> > > >> > > >> > >> > Try this: >> > >> > STATUS DEFAULT >> > CONNECTIONTYPE postgis >> > CONNECTION "host=**** dbname=**** user=**** assword=**** >> > port=****'" >> > >> > DATA "the_geom from car_marccata" >> > CLASSITEM "zona" >> > >> > CLASS >> > EXPRESSION ([zona] = 'FORA') >> > >> > COLOR 143 81 8 >> > END >> > >> > CLASS >> > EXPRESSION ([zona] = 'MAR') >> > >> > COLOR 0 154 239 >> > END >> > >> > CLASS >> > EXPRESSION ([zona] = 'CATA') >> > >> > >> > COLOR 223 223 223 >> > END >> > >> >> >> >> -- >> Emilio >> > > From Steve.Lime at dnr.state.mn.us Tue Apr 22 15:44:15 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 22 Apr 2008 17:44:15 -0500 Subject: [mapserver-users] how to get a sub-map of a map(shapefile)? In-Reply-To: <1208888743.480e2da7eefd2@pah.cert.ucr.edu> References: <1208888743.480e2da7eefd2@pah.cert.ucr.edu> Message-ID: <480E23EF.5157.008F.0@dnr.state.mn.us> You mean a reference map? MapServer has a the ability to generate those. The small map in the corner of this interface is an example: http://www.dnr.state.mn.us/maps/landview.html Steve >>> On 4/22/2008 at 1:25 PM, in message <1208888743.480e2da7eefd2 at pah.cert.ucr.edu>, wrote: > HI, > > I am wondering if anybody knows a tool to get a sub-map of a map. For > example, > I need to get a small map around some location instead of a whole big > map(Using > whole big map will be time consuming). Thanks a lot. > > -wh. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From cheung.jackey at gmail.com Tue Apr 22 20:02:24 2008 From: cheung.jackey at gmail.com (Jackey Cheung) Date: Wed, 23 Apr 2008 11:02:24 +0800 Subject: [mapserver-users] AGG Anti-alias & VECTOR sybmol In-Reply-To: References: Message-ID: Greetings! I've generated a map: http://maps.mapking.com/eg.png with these: OUTPUTFORMAT NAME "AGGA" DRIVER "AGG/PNG" IMAGEMODE RGBA TRANSPARENT ON EXTENSION "png" FORMATOPTION "INTERLACE=OFF" END CLASS MAXSCALEDENOM 5000000 MINSCALEDENOM 500000 STYLE WIDTH 4 COLOR 50 50 50 END STYLE SYMBOL "rail_line" SIZE 3 COLOR 250 250 250 END END SYMBOL NAME "rail_line" TYPE ELLIPSE POINTS 1 1 END STYLE 8 4 8 END # GAP 100 FILLED TRUE #ANTIALIAS TRUE END As you can see in the image, the everything are smooth except the railway. All line and polygon layers are drawn with "simple" styles without the use of SYMBOL. Only the railway lines are drawn with a VECTOR symbol. Does AGG's anti-alias works with symbols? If not, any work around? -------------- next part -------------- An HTML attachment was scrubbed... URL: From pzader at gmail.com Tue Apr 22 21:17:37 2008 From: pzader at gmail.com (pablo zader) Date: Wed, 23 Apr 2008 01:17:37 -0300 Subject: [mapserver-users] query data raster Message-ID: <52be2a8b0804222117n46e0cf31t7f2b47bc3bbe649e@mail.gmail.com> Hello friends, I am working with MApServer 5, want to do query on layers raster and have the following problem: on a layers raster once chosen the tool of query gives the following thing to the clickear: " MsQueryByPoint (): Search returned not results. Not matching record (s) found. " The layer raster of my map file defini like that: LAYER NAME "arboles" TYPE raster DATA "cobertura/GLC_5Final.tif" STATUS ON CLASS EXPRESSION ([pixel] = 1) STYLE COLOR 0 255 0 END TEMPLATE "template/raster.html" END CLASS EXPRESSION ([pixel] = 1) STYLE COLOR 255 226 187 END #TEMPLATE "template/raster.html" END HEADER "template/raster_header.html" FOOTER "template/raster_footer.html" The file raster.html (that is the principal one in the consultation) defini like that: Pixel:
values=[value_list]
value_0=[value_0]
value_1=[value_1]
value_2=[value_2]
RGB = [RED],[GREEN],[BLUE]

Class = [class]
I wait for his help .. from already thank you very much to this forum that really contributes things very interesting and good solutions Regards Pablo.- -- Pablo Zader -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Tue Apr 22 21:58:54 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 23 Apr 2008 06:58:54 +0200 Subject: [mapserver-users] AGG Anti-alias & VECTOR sybmol In-Reply-To: References: Message-ID: try SYMBOL NAME "rail_line" TYPE SIMPLE PATTERN 8 4 8 END END along with STYLE SYMBOL "rail_line" WIDTH 3 COLOR 250 250 250 END regards, thomas On Wed, Apr 23, 2008 at 5:02 AM, Jackey Cheung wrote: > Greetings! > > > I've generated a map: http://maps.mapking.com/eg.png > > with these: > > OUTPUTFORMAT > NAME "AGGA" > DRIVER "AGG/PNG" > IMAGEMODE RGBA > TRANSPARENT ON > EXTENSION "png" > FORMATOPTION "INTERLACE=OFF" > END > > CLASS > MAXSCALEDENOM 5000000 > MINSCALEDENOM 500000 > > STYLE > WIDTH 4 > COLOR 50 50 50 > END > > STYLE > SYMBOL "rail_line" > SIZE 3 > COLOR 250 250 250 > END > END > > SYMBOL > NAME "rail_line" > TYPE ELLIPSE > POINTS > 1 1 > END > STYLE > 8 4 8 > END > # GAP 100 > FILLED TRUE > #ANTIALIAS TRUE > END > > > As you can see in the image, the everything are smooth except the railway. > All line and polygon layers are drawn with "simple" styles without the use > of SYMBOL. Only the railway lines are drawn with a VECTOR symbol. > Does AGG's anti-alias works with symbols? If not, any work around? > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From thomas.bonfort at gmail.com Tue Apr 22 22:29:37 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Wed, 23 Apr 2008 07:29:37 +0200 Subject: [mapserver-users] AGG Anti-alias & VECTOR sybmol In-Reply-To: References: Message-ID: by the way, seeing your output I don't think that you're using agg. have you correctly set IMAGETYPE AGGA in your mapfile (or use format=AGGA in your url if using mapserv) thomas On Wed, Apr 23, 2008 at 5:02 AM, Jackey Cheung wrote: > Greetings! > > > I've generated a map: http://maps.mapking.com/eg.png > > with these: > > OUTPUTFORMAT > NAME "AGGA" > DRIVER "AGG/PNG" > IMAGEMODE RGBA > TRANSPARENT ON > EXTENSION "png" > FORMATOPTION "INTERLACE=OFF" > END > > CLASS > MAXSCALEDENOM 5000000 > MINSCALEDENOM 500000 > > STYLE > WIDTH 4 > COLOR 50 50 50 > END > > STYLE > SYMBOL "rail_line" > SIZE 3 > COLOR 250 250 250 > END > END > > SYMBOL > NAME "rail_line" > TYPE ELLIPSE > POINTS > 1 1 > END > STYLE > 8 4 8 > END > # GAP 100 > FILLED TRUE > #ANTIALIAS TRUE > END > > > As you can see in the image, the everything are smooth except the railway. > All line and polygon layers are drawn with "simple" styles without the use > of SYMBOL. Only the railway lines are drawn with a VECTOR symbol. > Does AGG's anti-alias works with symbols? If not, any work around? > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From dreamil at gmail.com Wed Apr 23 00:26:28 2008 From: dreamil at gmail.com (Swapnil Hajare) Date: Wed, 23 Apr 2008 12:56:28 +0530 Subject: [mapserver-users] Indic Support in Mapserver? In-Reply-To: <3d4286d70804120043y6d4c0851ndd081b7aae84cf14@mail.gmail.com> References: <3d4286d70804120040kf659b61ke646e4227beba387@mail.gmail.com> <3d4286d70804120043y6d4c0851ndd081b7aae84cf14@mail.gmail.com> Message-ID: <3d4286d70804230026y249eacadj75ebc0e9b8efe58e@mail.gmail.com> Hello All, I have been trying unsuccessfully to login to trac.osgeo.org/mapserverusing my OSGeo userid (dreamil). After trying for last 2 days, I am posting here the bug report which I wanted to post there. Please go through this and let me know your opinion on the same: ******************************************************************************************** Title: Indic Support (using OpenType fonts) in Mapserver The current version of Mapserver can render labels on map using LABEL directive in a map file.For labels, you can use truetype fonts which is achieved using freetype.Due to this map labels can be displayed in various non-English languages such as europian and some Asian scripts. However, for rendering some CTL (Complex Text Layout) scripts, truetype fonts are not sufficient.Indic Scripts, for example, require much more than mere juxtaposition of glyphs from a font.Rendering Indic scripts such as Devanagari, Gujarati, Tamil, Telugu, Bengali etc. is much more complex than others.To handle this, "intelligent" fonts were designed which contain embedded rules to help rendering.These were called OpenType fonts (see http://www.microsoft.com/typography/otfntdev/indicot/default.htm). Though initiated by M$, OpenType fonts are are now Industry standard for rendering these complex scripts on Computer using script and language rules. All major Linux desktops such as GNOME and KDE support OpenType font rendering.To handle OpenType fonts, various rendering engines have been developed and have become part of rendering libraries such as Pango( http://www.pango.org/)/ICU(http://www.icu-project.org/), Qt etc.It should be noted that, in absence of such a rendering engine, OpenType fonts act as Truetype fonts i.e. the embedded rendering rules are not used while doing the glyph formation. There are numerous OpenType fonts available free/proprietory for Indic scripts. We have ourselves developed gargi, the first GPLed OpenType font for Devanagari(http://savannah.nongnu.org/projects/gargi). Current Mapserver supports truetype fonts using freetype routines, but there is no support for OpenType fonts. As a result, a text label in any of the indic scripts is rendered using justaposition of glyphs from the font provided, without using rendering rules.The result is incorrect rendering. To show you the difference, here is the snapshot of a map with labels in Devanagari script (which is a indic script), rendered in correct fashion( http://indictrans.in/~swapnil/mapserver/required_result.png) and here is the snapshot as rendered by Mapserver( http://indictrans.in/~swapnil/mapserver/mapserv_no_render_support_for_ttf.png) You may not be able to make out much if you are not familiar with the script, but for someone who knows the script, its an incorrect or broken representation of the text. To solve this, we should add support for OpenType font rendering in Mapserver.This can be done by embedding some indic rendering routines from Pango or ICU into the label rendering engine of mapserver. I don't know the details of how labels are rendered in Mapserver, so somebody knowledgable should guide. I am prepared to take up the task on behalf of my team ( www.indictrans.in) if I get some guidance about internal working of Mapserver.As far as performance is concerned, this will hit the speed badly, but then this can be encoded as a configure options (--with-pango similar to Firefox implementation http://developer.spikesource.com/wiki/index.php/Firefox_Indic_Build) so that it becomes optional. You may have look at the temporary solution which we are using for the time being to show indic text on maps using Mapserver here: http://www.indictrans.in/old/doublebyte/English/doublebyte_l10n_25march_4PM.htmlWe have numerous localized GIS demo on our website using this approach. ******************************************************************************************** regards, -- Swapnil Hajare dreamil.indictrans.in -------------- next part -------------- An HTML attachment was scrubbed... URL: From pgiannini at bytewise.it Wed Apr 23 01:40:49 2008 From: pgiannini at bytewise.it (Pietro Giannini) Date: Wed, 23 Apr 2008 10:40:49 +0200 (CEST) Subject: [mapserver-users] DXF Message-ID: <20966.62.77.56.12.1208940049.squirrel@localhost.localdomain> Good morning List. Anyone is experienced about reading dxf files in a mapserver application? thanks ...................pg -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E From thy at 42.dk Wed Apr 23 04:30:12 2008 From: thy at 42.dk (Kristian Thy) Date: Wed, 23 Apr 2008 13:30:12 +0200 Subject: [mapserver-users] Large scale PDF output on Windows Message-ID: <20080423113012.GS28031@42.dk> I'm trying to generate pdf output from mapserver to be printed in A3 format at 600 dpi (which is not negotiable). We're currently using the 5.0.2 binary from ms4w, which has a limitation of 2048 px square. I have calculated I need 9921 by 7015 px output. Before I prostrate myself before the altar and make sacrifices to the gods of compiling-mapserver-on-windows, can anybody confirm that output of this size is indeed possible? The only thing I can find through Google is this post from Ed McNierney - four and a half years old: http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0309/msg00417.html \\kristian -- ... et nemo ex vobis interrogat me: ?Quo vadis?? From crschmidt at metacarta.com Wed Apr 23 04:38:24 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed, 23 Apr 2008 07:38:24 -0400 Subject: [mapserver-users] Large scale PDF output on Windows In-Reply-To: <20080423113012.GS28031@42.dk> References: <20080423113012.GS28031@42.dk> Message-ID: <20080423113824.GD26150@metacarta.com> On Wed, Apr 23, 2008 at 01:30:12PM +0200, Kristian Thy wrote: > I'm trying to generate pdf output from mapserver to be printed in A3 > format at 600 dpi (which is not negotiable). We're currently using the > 5.0.2 binary from ms4w, which has a limitation of 2048 px square. I have > calculated I need 9921 by 7015 px output. > > Before I prostrate myself before the altar and make sacrifices to the > gods of compiling-mapserver-on-windows, can anybody confirm that output > of this size is indeed possible? The only thing I can find through > Google is this post from Ed McNierney - four and a half years old: You don't need to recompile anymore. You can change this in a mapfile setting. (I don't know what it is, I'm sure that someone else will tell you: but wanted to make sure you got stopped before you started compiling.) And yes, output of that size is possible. I believe that when I was talking to pagameba, he was talking about rendering on the order of 50 x 50 256 px tiles -- about 10000 by 10000 or more. At that point, you may be limited by memory limits of some kind, depending on your rendering rules... but someone else can comment on that as well. > http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0309/msg00417.html > > \\kristian > -- > ... et nemo ex vobis interrogat me: ?Quo vadis?? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Christopher Schmidt MetaCarta From bartvde at osgis.nl Wed Apr 23 04:44:46 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Wed, 23 Apr 2008 13:44:46 +0200 Subject: [mapserver-users] Large scale PDF output on Windows In-Reply-To: <20080423113824.GD26150@metacarta.com> References: <20080423113012.GS28031@42.dk> <20080423113824.GD26150@metacarta.com> Message-ID: There is MAXSIZE for this on the MAP object: MAXSIZE [integer] Sets the maximum size of the map image. This will override the default value. For example, setting this to 2048 means that you can have up to 2048 pixels in both dimensions (i.e. max of 2048x2048). Wrt resource issues, we have seen Masperver fail (internal server errors) on such big images depending on the dataset. For instance with aerial photography (ECW) I've run into resource issues in the past. Sometimes the limit was a bit below 10.000 pixels, sometimes 15.000 went fine. It all depends how lucky you are :-) Best regards, Bart On Wed, 23 Apr 2008 07:38:24 -0400, Christopher Schmidt wrote: > On Wed, Apr 23, 2008 at 01:30:12PM +0200, Kristian Thy wrote: >> I'm trying to generate pdf output from mapserver to be printed in A3 >> format at 600 dpi (which is not negotiable). We're currently using the >> 5.0.2 binary from ms4w, which has a limitation of 2048 px square. I have >> calculated I need 9921 by 7015 px output. >> >> Before I prostrate myself before the altar and make sacrifices to the >> gods of compiling-mapserver-on-windows, can anybody confirm that output >> of this size is indeed possible? The only thing I can find through >> Google is this post from Ed McNierney - four and a half years old: > > You don't need to recompile anymore. You can change this in a mapfile > setting. (I don't know what it is, I'm sure that someone else will tell > you: but wanted to make sure you got stopped before you started > compiling.) > > And yes, output of that size is possible. I believe that when I was > talking to pagameba, he was talking about rendering on the order of 50 > x 50 256 px tiles -- about 10000 by 10000 or more. At that point, you > may be limited by memory limits of some kind, depending on your > rendering rules... but someone else can comment on that as well. > > > >> > http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0309/msg00417.html >> >> \\kristian >> -- >> ... et nemo ex vobis interrogat me: ?Quo vadis?? >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From thy at 42.dk Wed Apr 23 04:56:35 2008 From: thy at 42.dk (Kristian Thy) Date: Wed, 23 Apr 2008 13:56:35 +0200 Subject: [mapserver-users] Large scale PDF output on Windows In-Reply-To: References: <20080423113012.GS28031@42.dk> <20080423113824.GD26150@metacarta.com> Message-ID: <20080423115635.GT28031@42.dk> On Wed, Apr 23, bartvde at osgis.nl wrote: > There is MAXSIZE for this on the MAP object: Thanks, both of you. Ritual sacrifice has been cancelled. \\kristian -- ... et nemo ex vobis interrogat me: ?Quo vadis?? From STEFAN.SCHWARZER at GRID.UNEP.CH Wed Apr 23 05:04:15 2008 From: STEFAN.SCHWARZER at GRID.UNEP.CH (Stefan Schwarzer) Date: Wed, 23 Apr 2008 14:04:15 +0200 Subject: [mapserver-users] queryByPoint still valid? Message-ID: <82CD7DC9-61A6-4DC7-BE48-FD9B9E736A62@GRID.UNEP.CH> Hi, hmm... I changed a couple of things in my application: new template engine; moved from PHP4 to PHP5; and from mapserver 4.x to mapserver 5.x Now, the "identify" feature (click on a country and give me some info about it), has problems.... Is anything wrong with these lines? //Query the Map at the point clicked if (!$imgbox) $a = $map -> queryByPoint($click_pt, MS_MULTIPLE, -1); else $a = $map -> queryByRect($click_rt); Thanks for any hints, Stef From diegoguidi at gmail.com Wed Apr 23 05:13:57 2008 From: diegoguidi at gmail.com (Diego Guidi) Date: Wed, 23 Apr 2008 14:13:57 +0200 Subject: [mapserver-users] Oracle+WMS: GetCapabilities issue In-Reply-To: References: Message-ID: I'm using the last ms4w package and I'm experiencing an issue with GetCapabilities request... in one word: is terribly slow :( I've created a map file from a bunch of layers in SDE and all works well, then I've moved the same data to Oracle Spatial, changed configuration of the map file and now the problem appears. I want to specify this: only getcapabilities is terribly slow (10 minutes for 10 layers), getmap requests and getfeatureinfo requests are fast, actually much faster that with SDE... anyone has experienced this issue? From James.Leveille at mtq.gouv.qc.ca Wed Apr 23 05:05:22 2008 From: James.Leveille at mtq.gouv.qc.ca (=?iso-8859-1?Q?L=E9veill=E9=2C_James?=) Date: Wed, 23 Apr 2008 08:05:22 -0400 Subject: [mapserver-users] AGG - FORMATOPTION PALETTE Message-ID: <2F86ED212F3E164EB9FBB2E68C67858E049962FE@SINFRA0-EXC003.MTQ.MIN.INTRA> Hi, I'm trying to use my own palette for AGG as described here by Thomas : http://www.nabble.com/forced-palette-and-quantization-for-RGBA-images-td1464 5869.html As explained in the article, I'm using a typical PNG 24 bits image (produced in RGBA mode - 4 bands). But from this image, I'm not able to produce a 8 bits PNG image with the ALPHA, only in RGB with 3 channels - see the GDALINFO below. I need this 8 bits image to generate my palette. gdalinfo rgb.png Driver: PNG/Portable Network Graphics Size is 1203, 813 Coordinate System is `' Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 813.0) Upper Right ( 1203.0, 0.0) Lower Right ( 1203.0, 813.0) Center ( 601.5, 406.5) Band 1 Block=1203x1 Type=Byte, ColorInterp=Palette Color Table (RGB with 256 entries) 0: 17,12,12,255 1: 27,101,44,255 2: 0,132,0,255 3: 19,130,16,255 ... How can I generate a 8 bits RGBA image from the original 24 bits image ? Regards. ______________________________________________________ JAMES L?VEILL? Service des syst?mes de Mission Direction des technologies de l'information Minist?re des Transports du Qu?bec 5833, boul. Pierre-Bertrand, 2i?me ?tage Qu?bec (Qu?bec) G2K 1K7 T?l?phone: (418) 380-2005 poste 227 T?l?copieur: (418) 644-6653 james.leveille at mtq.gouv.qc.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at osgis.nl Wed Apr 23 05:21:32 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Wed, 23 Apr 2008 14:21:32 +0200 Subject: [mapserver-users] Oracle+WMS: GetCapabilities issueUID 1559) In-Reply-To: References: Message-ID: <3f08a36d61ef8bd15fc2ada6b194ea0d@pop02.backbone.tiscomhosting.nl> Add ows_extent for your LAYERS METADATA. Mapserver is trying to calculate the bounds of your layers, and that's a very slow function in Oracle (and in other spatial DBMS-s as well IIRC). Best regards, Bart On Wed, 23 Apr 2008 14:13:57 +0200, "Diego Guidi" wrote: > I'm using the last ms4w package and I'm experiencing an issue with > GetCapabilities request... in one word: is terribly slow :( > I've created a map file from a bunch of layers in SDE and all works > well, then I've moved the same data to Oracle Spatial, changed > configuration of the map file and now the problem appears. > I want to specify this: only getcapabilities is terribly slow (10 > minutes for 10 layers), getmap requests and getfeatureinfo requests > are fast, actually much faster that with SDE... > anyone has experienced this issue? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From diegoguidi at gmail.com Wed Apr 23 05:23:15 2008 From: diegoguidi at gmail.com (Diego Guidi) Date: Wed, 23 Apr 2008 14:23:15 +0200 Subject: [mapserver-users] Oracle+WMS: GetCapabilities issueUID 1559) In-Reply-To: <3f08a36d61ef8bd15fc2ada6b194ea0d@pop02.backbone.tiscomhosting.nl> References: <3f08a36d61ef8bd15fc2ada6b194ea0d@pop02.backbone.tiscomhosting.nl> Message-ID: > Add ows_extent for your LAYERS METADATA. > Mapserver is trying to calculate the bounds of your layers, and that's a > very slow function in Oracle (and in other spatial DBMS-s as well IIRC). Thanks a lot, i try as soon as possible. BTW, with the same data published in SDE+Oracle and PostGIS mapserver responses are immediate: only with oracle I see this problem. From bartvde at osgis.nl Wed Apr 23 05:25:13 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Wed, 23 Apr 2008 14:25:13 +0200 Subject: [mapserver-users] Oracle+WMS: GetCapabilities issueUID 1559) In-Reply-To: References: Message-ID: <20080423122513.7668E15ECD5@webmail-beta.tiscomhosting.nl> <3f08a36d61ef8bd15fc2ada6b194ea0d at pop02.backbone.tiscomhosting.nl> UID 1564) Message-ID: X-Sender: bartvde at osgis.nl Received: from b50-11.minvenw.nl [145.50.39.11] with HTTP/1.1 (POST); Wed, 23 Apr 2008 14:25:13 +0200 User-Agent: RoundCube Webmail/0.1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Yeah, it can be that this is only implemented for the Oracle driver in Mapserver, i.e. the SDE and PostGIS driver in Mapserver don't even call the DB function to calculate the extent, so that probably explains why it is fast with those drivers. Btw: mapserver-users is not active anymore, so please don't use it anymore. Best regards, Bart On Wed, 23 Apr 2008 14:23:15 +0200, "Diego Guidi" wrote: >> Add ows_extent for your LAYERS METADATA. >> Mapserver is trying to calculate the bounds of your layers, and that's > a >> very slow function in Oracle (and in other spatial DBMS-s as well > IIRC). > > Thanks a lot, i try as soon as possible. > BTW, with the same data published in SDE+Oracle and PostGIS mapserver > responses are immediate: only with oracle I see this problem. From diegoguidi at gmail.com Wed Apr 23 06:49:21 2008 From: diegoguidi at gmail.com (Diego Guidi) Date: Wed, 23 Apr 2008 15:49:21 +0200 Subject: [mapserver-users] Oracle+WMS: GetCapabilities issueUID 1559) In-Reply-To: <20080423122513.7668E15ECD5@webmail-beta.tiscomhosting.nl> References: <20080423122513.7668E15ECD5@webmail-beta.tiscomhosting.nl> Message-ID: > Yeah, it can be that this is only implemented for the Oracle driver in > Mapserver, i.e. the SDE and PostGIS driver in Mapserver don't even call the > DB function to calculate the extent, so that probably explains why it is > fast with those drivers. Problem fixed. With ows_extent getcapabilities request is fast as expected also with oracle datastore. Thanks a lot for support ;) From siki at agt.bme.hu Wed Apr 23 13:39:17 2008 From: siki at agt.bme.hu (Siki Zoltan) Date: Wed, 23 Apr 2008 19:39:17 -0100 (GMT+1) Subject: {Spam?} Re: {Spam?} [mapserver-users] DXF In-Reply-To: <20966.62.77.56.12.1208940049.squirrel@localhost.localdomain> References: <20966.62.77.56.12.1208940049.squirrel@localhost.localdomain> Message-ID: Hi Pietro, dxf is not supported by OGR. MicroStation dgn format is supported which is a similar CAD format. You can convert dxf to dgn with MicroStation or AutoCAD Map. If it is not possible for you, you can use GRASS to read dxf and export it to shp. Zoltan On Wed, 23 Apr 2008, Pietro Giannini wrote: > Good morning List. > > Anyone is experienced about reading dxf files in a mapserver application? > thanks > > ...................pg > > > > -- > 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 > From alim.karim at gmail.com Wed Apr 23 10:57:00 2008 From: alim.karim at gmail.com (alim karim) Date: Wed, 23 Apr 2008 10:57:00 -0700 Subject: [mapserver-users] Re: php/mapscipt getExtent In-Reply-To: References: Message-ID: as per mapserver 4.4 release notes: - Layers now accept an EXTENT through the mapfile (bug 786). Nothing is done with it at this point, and getExtent still queries the datasource rather than getting information from the mapfile-specified extent. it seems as though getExtent is not behaving as described above. has anyone else experienced this behavior? On Tue, Apr 22, 2008 at 2:52 PM, alim karim wrote: > hello all. > > i have a PostGIS layer (without its extents specified) in a mapfile. > > i am trying to use getExtent on this layer, but the coordinates i get back > (["minx":-25000000,"miny":-25000000,"maxx":25000000,"maxy":25000000]) are > not the correct extents([1180204.375000, 809428.750000,1222443.000000, > 857276.187500)]). > > is there a way to get the proper extents of a layer even though they might > not be specified in the mapfile? > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From armin.burger at gmx.net Wed Apr 23 11:07:05 2008 From: armin.burger at gmx.net (Armin Burger) Date: Wed, 23 Apr 2008 20:07:05 +0200 Subject: [mapserver-users] php/mapscipt getExtent In-Reply-To: References: Message-ID: <480F7AC9.8000003@gmx.net> Alim The extent returned for a layer seems to be working only for 'standard' layers (e.g. based on shapefiles), but neither for Postgis nor raster layers, god knows why.... I use the code below for zooming to the extent of a Postgis layer: $data = trim($layer->data); $dataList1 = preg_split("/\s/", $data); $dataList2 = preg_split("/using/i", $data); $geomFld = array_shift($dataList1); $sql = "select xmin(extent) as minx, ymin(extent) as miny, xmax(extent) as maxx, ymax(extent) as maxy from (SELECT extent($geomFld) " . substr($dataList2[0], strlen($geomFld)) . ") as bar"; // load DLL on Win if required if (PHP_OS == "WINNT" || PHP_OS == "WIN32") { if (! extension_loaded('pgsql')) { dl('php_pgsql.dll'); } } $connString = $layer->connection; if (!($connection = pg_Connect($connString))){ error_log ("Could not connect to database"); error_log ("PG Connection error: " . pg_last_error($connection)); exit(); } $qresult = pg_query ($connection, $sql); if (!$qresult) error_log("PG Query error for : $query" . pg_result_error($qresult)); $pgE = pg_fetch_object($qresult); $layerExt = ms_newRectObj(); $layerExt->setextent($pgE->minx, $pgE->miny, $pgE->maxx, $pgE->maxy); There might be easier solutions but this worked for me. armin On 22/04/2008 23:52, alim karim wrote: > hello all. > > i have a PostGIS layer (without its extents specified) in a mapfile. > > i am trying to use getExtent on this layer, but the coordinates i get > back > (["minx":-25000000,"miny":-25000000,"maxx":25000000,"maxy":25000000]) > are not the correct extents([1180204.375000, > 809428.750000,1222443.000000, 857276.187500)]). > > is there a way to get the proper extents of a layer even though they > might not be specified in the mapfile? > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Wed Apr 23 12:12:18 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 23 Apr 2008 14:12:18 -0500 Subject: [Fwd: Re: [mapserver-users] Any Fedora fc8 64 bit mapserver users out there?] Message-ID: <480F8A12.9020401@swoodbridge.com> Nahum, Thank you! this might have contributed to the problems I was having. I'm forwarding this to the mapserver-users list so it gets archived there and might help other also. Best regards, -Steve W -------- Original Message -------- Subject: Re: [mapserver-users] Any Fedora fc8 64 bit mapserver users out there? Date: Wed, 23 Apr 2008 10:28:25 -0500 (CDT) From: Nahum Castro To: Stephen Woodbridge --- Stephen Woodbridge escribi?: > Nahum, > > Thank you for your response. I think the system I > was on had some > serious problems. We are going to reload it with > Debian and see if we > have better luck with that. I have more experience > with Debian anyway. > If it is still a problem we can probably assume the > hardware is bad. > > It is good to know that others are able to build > without a problem on > Fedora. It was hard for me to believe that other > would not have had > similar problems based on what I was seeing. > > Thanks, > -Steve > I have found that simlar problems occur with the gd version included in fedora. Downloading an installing current version of gd solved the problem. Saludos. Nahum -- Nahum Castro Leon, Guanajuato, Mexico http://www.leon-linux.com e-mail: pedro1_72 [en] yahoo [punto] com ____________________________________________________________________________________ Yahoo! Deportes Beta ?No te pierdas lo ?ltimo sobre el torneo clausura 2008! Ent?rate aqu? http://deportes.yahoo.com From alim.karim at gmail.com Wed Apr 23 11:15:50 2008 From: alim.karim at gmail.com (alim karim) Date: Wed, 23 Apr 2008 11:15:50 -0700 Subject: [mapserver-users] php/mapscipt getExtent In-Reply-To: <480F7AC9.8000003@gmx.net> References: <480F7AC9.8000003@gmx.net> Message-ID: thanks armin. it seems that what you suggested is the only way to get the correct extents for non-standard layers. i suppose one could add an if statement to check the layer type i.e. use the canned getExtent if we are dealing with shapefiles, otherwise if it is postgis, then use your code and if it is anything else that is non-standard ... well ... tough luck. On Wed, Apr 23, 2008 at 11:07 AM, Armin Burger wrote: > Alim > > The extent returned for a layer seems to be working only for 'standard' > layers (e.g. based on shapefiles), but neither for Postgis nor raster > layers, god knows why.... I use the code below for zooming to the extent of > a Postgis layer: > > $data = trim($layer->data); > $dataList1 = preg_split("/\s/", $data); > $dataList2 = preg_split("/using/i", $data); > $geomFld = array_shift($dataList1); > $sql = "select xmin(extent) as minx, ymin(extent) as miny, xmax(extent) > as maxx, ymax(extent) as maxy > from (SELECT extent($geomFld) " > . substr($dataList2[0], strlen($geomFld)) . ") as bar"; > > // load DLL on Win if required > if (PHP_OS == "WINNT" || PHP_OS == "WIN32") { > if (! extension_loaded('pgsql')) { > dl('php_pgsql.dll'); > } > } > > $connString = $layer->connection; > if (!($connection = pg_Connect($connString))){ > error_log ("Could not connect to database"); > error_log ("PG Connection error: " . pg_last_error($connection)); > exit(); > } > > $qresult = pg_query ($connection, $sql); > if (!$qresult) error_log("PG Query error for : $query" . > pg_result_error($qresult)); > > $pgE = pg_fetch_object($qresult); > $layerExt = ms_newRectObj(); > $layerExt->setextent($pgE->minx, $pgE->miny, $pgE->maxx, $pgE->maxy); > > > There might be easier solutions but this worked for me. > > armin > > > On 22/04/2008 23:52, alim karim wrote: > > > hello all. > > > > i have a PostGIS layer (without its extents specified) in a mapfile. > > > > i am trying to use getExtent on this layer, but the coordinates i get > > back (["minx":-25000000,"miny":-25000000,"maxx":25000000,"maxy":25000000]) > > are not the correct extents([1180204.375000, 809428.750000,1222443.000000, > > 857276.187500)]). > > > > is there a way to get the proper extents of a layer even though they > > might not be specified in the mapfile? > > > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > 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 pzader at gmail.com Wed Apr 23 15:15:52 2008 From: pzader at gmail.com (pablo zader) Date: Wed, 23 Apr 2008 19:15:52 -0300 Subject: [mapserver-users] HELP query data raster Message-ID: <52be2a8b0804231515w3f85b922i7302702a37e85746@mail.gmail.com> Hello friends, I am working with MApServer 5, want to do query on layers raster and have the following problem: on a layers raster once chosen the tool of query gives the following thing to the clickear: " MsQueryByPoint (): Search returned not results. Not matching record (s) found. " The layer raster of my map file defini like that: LAYER NAME "arboles" TYPE raster DATA "cobertura/GLC_5Final.tif" STATUS ON CLASS EXPRESSION ([pixel] = 1) STYLE COLOR 0 255 0 END TEMPLATE "template/raster.html" END CLASS EXPRESSION ([pixel] = 1) STYLE COLOR 255 226 187 END #TEMPLATE "template/raster.html" END HEADER "template/raster_header.html" FOOTER "template/raster_footer.html" The file raster.html (that is the principal one in the consultation) defini like that: Pixel:
values=[value_list]
value_0=[value_0]
value_1=[value_1]
value_2=[value_2]
RGB = [RED],[GREEN],[BLUE]

Class = [class]
I wait for his help .. from already thank you very much to this forum that really contributes things very interesting and good solutions Regards Pablo.- -------------- next part -------------- An HTML attachment was scrubbed... URL: From cheung.jackey at gmail.com Thu Apr 24 00:36:18 2008 From: cheung.jackey at gmail.com (Jackey Cheung) Date: Thu, 24 Apr 2008 15:36:18 +0800 Subject: [mapserver-users] AGG Anti-alias & VECTOR sybmol In-Reply-To: References: Message-ID: It works! Thank you very much! Even better, this is much simpler than using VECTOR or ELLIPSE symbols! On Wed, Apr 23, 2008 at 1:29 PM, thomas bonfort wrote: > by the way, seeing your output I don't think that you're using agg. > have you correctly set IMAGETYPE AGGA in your mapfile (or use > format=AGGA in your url if using mapserv) > thomas > > On Wed, Apr 23, 2008 at 5:02 AM, Jackey Cheung > wrote: > > Greetings! > > > > > > I've generated a map: http://maps.mapking.com/eg.png > > > > with these: > > > > OUTPUTFORMAT > > NAME "AGGA" > > DRIVER "AGG/PNG" > > IMAGEMODE RGBA > > TRANSPARENT ON > > EXTENSION "png" > > FORMATOPTION "INTERLACE=OFF" > > END > > > > CLASS > > MAXSCALEDENOM 5000000 > > MINSCALEDENOM 500000 > > > > STYLE > > WIDTH 4 > > COLOR 50 50 50 > > END > > > > STYLE > > SYMBOL "rail_line" > > SIZE 3 > > COLOR 250 250 250 > > END > > END > > > > SYMBOL > > NAME "rail_line" > > TYPE ELLIPSE > > POINTS > > 1 1 > > END > > STYLE > > 8 4 8 > > END > > # GAP 100 > > FILLED TRUE > > #ANTIALIAS TRUE > > END > > > > > > As you can see in the image, the everything are smooth except the > railway. > > All line and polygon layers are drawn with "simple" styles without the > use > > of SYMBOL. Only the railway lines are drawn with a VECTOR symbol. > > Does AGG's anti-alias works with symbols? If not, any work around? > > > > > > _______________________________________________ > > 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 oliver.wesp at gmail.com Thu Apr 24 02:44:48 2008 From: oliver.wesp at gmail.com (Oliver Wesp) Date: Thu, 24 Apr 2008 11:44:48 +0200 Subject: [mapserver-users] Segmentation Fault on Solaris parsing Template Message-ID: Dear List, I had a running installation of mapserver 4.8.1 on a solaris box which suddenly stopped working. I'm using mapserver as cgi and everything was fine until suddenly mapserver crashes with a segmentation fault. I made a few tests and what it comes down to is that mapserver crashes parsing the template in mode=browse. If I make a request with mode=map everything is fine. With mode=browse mapserver generate the images, returns the template just before the line where the first variable substitution appears and crashes. Here is some more information from the core dump: gdb mapserv_481 core #0 0xfe633218 in strlen () from /usr/lib/libc.so.1 #1 0xfe686530 in _doprnt () from /usr/lib/libc.so.1 #2 0xfe6882d8 in snprintf () from /usr/lib/libc.so.1 #3 0x00029cbc in processLine (msObj=0xecb48, instr=0xffbe9a30 "/tmp/map_sb120895549616000.png", mode=0) at maptemplate.c:2384 #4 0x0002c26c in msReturnURL (msObj=0xecb48, url=0x1023a0 "..//html/error.html", mode=0) at maptemplate.c:2918 #5 0x0001f244 in writeError () at mapserv.c:200 #6 0x00023bf8 in main (argc=2, argv=0xffbeb5a4) at mapserv.c:1276 I don't have direct access to the machine but there have been some software installation and I don't now if some libs have changed. Maybe someone can give me some hints... best regards, Oliver From p_kruschitz at hotmail.com Thu Apr 24 04:36:26 2008 From: p_kruschitz at hotmail.com (Philippe Kruschitz) Date: Thu, 24 Apr 2008 11:36:26 +0000 Subject: [mapserver-users] Postgres library Message-ID: Hi, I just compiled Mapserver 5.0.2 from source with all needed libraries (and postgres+postgis). Everything worked fine, I copied the mapserv file into my cgi-bin directory, but mapserver only returns a blank page in the browser. I checked the Apache error-log, which showed following output: [Thu Apr 24 06:09:15 2008] [error] [client 127.0.0.1] /var/www/cgi-bin/mapserv: error while loading shared libraries: libpq.so.5: failed to map segment from shared object: Permission denied [Thu Apr 24 06:09:15 2008] [error] [client 127.0.0.1] Premature end of script headers: mapserv /etc/ld.so.conf was properly set-up before building: include ld.so.conf.d/*.conf /usr/local/lib /usr/local/pgsql/lib and running '/sbin/ldconfig -v | more' returned: .... /usr/local/lib: libcharset.so.1 -> libcharset.so.1.0.0 libpng.so.3 -> libpng.so.3.26.0 libiconv.so.2 -> libiconv.so.2.4.0 libgd.so.2 -> libgd.so.2.0.0 /usr/local/pgsql/lib: libecpg_compat.so.3 -> libecpg_compat.so.3.0 libpq.so.5 -> libpq.so.5.1 libpgtypes.so.3 -> libpgtypes.so.3.0 libecpg.so.6 -> libecpg.so.6.0 liblwgeom.so.1 -> liblwgeom.so.1.3 .... and 'ls -la /usr/pqsql/lib' gets me something like this: .... lrwxrwxrwx 1 root root 12 23. Apr 08:29 libpq.so -> libpq.so.5.1 lrwxrwxrwx 1 root root 12 23. Apr 08:29 libpq.so.5 -> libpq.so.5.1 -rwxr-xr-x 1 root root 153626 23. Apr 08:29 libpq.so.5.1 .... Am I missing something here? If anybody has a clue, I would very thankful. Regards, Philippe _________________________________________________________________ Trouvez vos infos rapidement et pr?cis?ment avec Windows Live Instant Search?! Essayez-le maintenant! http://g.msn.ca/ca55/220 From dmorissette at mapgears.com Thu Apr 24 05:27:10 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 24 Apr 2008 08:27:10 -0400 Subject: [mapserver-users] Postgres library In-Reply-To: References: Message-ID: <48107C9E.7010805@mapgears.com> Philippe Kruschitz wrote: > Hi, > > I just compiled Mapserver 5.0.2 from source with all needed libraries (and postgres+postgis). > Everything worked fine, I copied the mapserv file into my cgi-bin directory, but mapserver only returns a blank page in the browser. > > I checked the Apache error-log, which showed following output: > > [Thu Apr 24 06:09:15 2008] [error] [client 127.0.0.1] /var/www/cgi-bin/mapserv: error while loading shared libraries: libpq.so.5: failed to map segment from shared object: Permission denied > [Thu Apr 24 06:09:15 2008] [error] [client 127.0.0.1] Premature end of script headers: mapserv > Are you using Fedora or RHEL 4+ by any chance? A Google search using the error message points to lots of docs referring to SELinux getting in the way of Apache finding its libs. Some places suggest disabling SELinux completely, but there has to be a more elegant solution to tell SELinux to let Apache load those new libs. http://www.google.ca/search?q=apache+failed+to+map+segment+from+shared+object Daniel -- Daniel Morissette http://www.mapgears.com/ From geomartino at gmail.com Thu Apr 24 05:48:11 2008 From: geomartino at gmail.com (Martin Ouellet) Date: Thu, 24 Apr 2008 08:48:11 -0400 Subject: [mapserver-users] AJAX - GetFeatureInfo - Accent problem Message-ID: <28d70b140804240548x3a7fcd56o522e3a8f60cbc0fa@mail.gmail.com> Hi, I have a GetFeatureinfo request that work pretty well (the accent character is OK) )when I call it directly in IE or FF: http://MDRIM00-000251/mapserver5/siglight.exe&service=WMS&version=1.1.1&request=getfeatureinfo&info_format=text/html&srs=EPSG:4326 &bbox=-71.332572,46.716784,-71.247428,46.783216&width=992&height=774&layers=hauteur_libre&query_layers=hauteur_libre&feature_count=10&x=423&y=313&format=gif&styles= ex: Municipalit?: Qu?bec The template behind this layer is a very simple HTML file (saved in DOS/ISO-8859-1 encoding):

Municipalit?: [Municipali]
But when I send the same URL request in AJAX, the accent character are not displayed correctly (in the responseText of the XMLHttpRequest object). ex: Municipalit? Qu?c For firefox, I have fix the problem by adding this line: xmlHttp.overrideMimeType('text/html; charset=ISO-8859-1'); But this method is not supported by IE. I presume it's not a Mapserver issue but if someone has any clue??? Thank you in advance. MartinO -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Thu Apr 24 05:56:34 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 24 Apr 2008 08:56:34 -0400 Subject: [mapserver-users] AJAX - GetFeatureInfo - Accent problem In-Reply-To: <28d70b140804240548x3a7fcd56o522e3a8f60cbc0fa@mail.gmail.com> References: <28d70b140804240548x3a7fcd56o522e3a8f60cbc0fa@mail.gmail.com> Message-ID: <48108382.1050104@mapgears.com> Martin, Did you try setting "ows_encoding" "ISO-8859-1" in the map-level metadata? With this metadata directive, MapServer will include an encoding value in the header of the GetFeatureInfo response, and hopefully that will be caught by the XMLHttpRequest. Daniel Martin Ouellet wrote: > Hi, > > I have a GetFeatureinfo request that work pretty well (the accent > character is OK) )when I call it directly in IE or FF: > > http://MDRIM00-000251/mapserver5/siglight.exe&service=WMS&version=1.1.1&request=getfeatureinfo&info_format=text/html&srs=EPSG:4326 > > &bbox=-71.332572,46.716784,-71.247428,46.783216&width=992&height=774&layers=hauteur_libre&query_layers=hauteur_libre&feature_count=10&x=423&y=313&format=gif&styles= > > ex: Municipalit?: Qu?bec > > The template behind this layer is a very simple HTML file (saved in > DOS/ISO-8859-1 encoding): > > > > > > >
Municipalit?:[Municipali]
> > But when I send the same URL request in AJAX, the accent character are > not displayed correctly (in the responseText of the XMLHttpRequest object). > > ex: Municipalit? Qu?c > > For firefox, I have fix the problem by adding this line: > > xmlHttp.overrideMimeType('text/html; charset=ISO-8859-1'); > > But this method is not supported by IE. I presume it's not a Mapserver > issue but if someone has any clue??? > > Thank you in advance. > > MartinO > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ From dmorissette at mapgears.com Thu Apr 24 06:04:01 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 24 Apr 2008 09:04:01 -0400 Subject: [mapserver-users] AJAX - GetFeatureInfo - Accent problem In-Reply-To: <48108382.1050104@mapgears.com> References: <28d70b140804240548x3a7fcd56o522e3a8f60cbc0fa@mail.gmail.com> <48108382.1050104@mapgears.com> Message-ID: <48108541.1020300@mapgears.com> OOpps... sorry for responding to myself, but I just realized that you are using an HTML template for your GetFeatureInfo query and not GML. In this case the ows_encoding setting will have no effect. However you could and should set the encoding yourself in the header of the query template. Daniel Daniel Morissette wrote: > Martin, > > Did you try setting "ows_encoding" "ISO-8859-1" in the map-level > metadata? With this metadata directive, MapServer will include an > encoding value in the header of the GetFeatureInfo response, > and hopefully that will be caught by the XMLHttpRequest. > > Daniel > > Martin Ouellet wrote: >> Hi, >> >> I have a GetFeatureinfo request that work pretty well (the accent >> character is OK) )when I call it directly in IE or FF: >> >> http://MDRIM00-000251/mapserver5/siglight.exe&service=WMS&version=1.1.1&request=getfeatureinfo&info_format=text/html&srs=EPSG:4326 >> >> >> &bbox=-71.332572,46.716784,-71.247428,46.783216&width=992&height=774&layers=hauteur_libre&query_layers=hauteur_libre&feature_count=10&x=423&y=313&format=gif&styles= >> >> >> ex: Municipalit?: Qu?bec >> >> The template behind this layer is a very simple HTML file (saved in >> DOS/ISO-8859-1 encoding): >> >> >> >> >> >> >>
Municipalit?:[Municipali]
>> >> But when I send the same URL request in AJAX, the accent character are >> not displayed correctly (in the responseText of the XMLHttpRequest >> object). >> >> ex: Municipalit? Qu?c >> >> For firefox, I have fix the problem by adding this line: >> >> xmlHttp.overrideMimeType('text/html; charset=ISO-8859-1'); >> >> But this method is not supported by IE. I presume it's not a >> Mapserver issue but if someone has any clue??? >> >> Thank you in advance. >> >> MartinO >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Daniel Morissette http://www.mapgears.com/ From flavio at tydac.ch Thu Apr 24 06:01:55 2008 From: flavio at tydac.ch (Flavio Hendry) Date: Thu, 24 Apr 2008 15:01:55 +0200 Subject: [mapserver-users] Large scale PDF output on Windows In-Reply-To: References: <20080423113012.GS28031@42.dk> <20080423113824.GD26150@metacarta.com> Message-ID: Hi Bart Discussed the issue a while ago with Frank Warmerdam. He had less problems on a LINUX System running on a 64bit machine (he supposes it could go as high as 25'000 pixels). On Windows 32 it bangs at around 10'000 to 14'000 pixels depending on content. Did not try on Windows 64. Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch TYDAC SwissMaps: http://www.mapplus.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- Location: http://www.mapplus.ch/adr/bern/luternauweg/12 ---------------------------------------------------------------- From bartvde at osgis.nl Thu Apr 24 06:17:17 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Thu, 24 Apr 2008 15:17:17 +0200 Subject: [mapserver-users] AJAX - GetFeatureInfo - Accent problem In-Reply-To: <48108541.1020300@mapgears.com> References: <28d70b140804240548x3a7fcd56o522e3a8f60cbc0fa@mail.gmail.com> Message-ID: <20080424131717.8DDF215ECD8@webmail-beta.tiscomhosting.nl> <48108382.1050104 at mapgears.com> <48108541.1020300 at mapgears.com> Message-ID: X-Sender: bartvde at osgis.nl Received: from b50-11.minvenw.nl [145.50.39.11] with HTTP/1.1 (POST); Thu, 24 Apr 2008 15:17:17 +0200 User-Agent: RoundCube Webmail/0.1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit AJAX (in IE) won't pick up the content-type from the HTML of XML file, but will look at the charset of the http header Content-Type. See also: http://trac.osgeo.org/mapserver/ticket/2583 If you have a proxy in between, you can do it in the proxy code, otherwise you can maybe use Apache to add a charset to the http headers. Best regards, Bart On Thu, 24 Apr 2008 09:04:01 -0400, Daniel Morissette wrote: > OOpps... sorry for responding to myself, but I just realized that you > are using an HTML template for your GetFeatureInfo query and not GML. In > this case the ows_encoding setting will have no effect. However you > could and should set the encoding yourself in the header of the query > template. > > Daniel > > > Daniel Morissette wrote: >> Martin, >> >> Did you try setting "ows_encoding" "ISO-8859-1" in the map-level >> metadata? With this metadata directive, MapServer will include an >> encoding value in the header of the GetFeatureInfo response, >> and hopefully that will be caught by the XMLHttpRequest. >> >> Daniel >> >> Martin Ouellet wrote: >>> Hi, >>> >>> I have a GetFeatureinfo request that work pretty well (the accent >>> character is OK) )when I call it directly in IE or FF: >>> >>> > http://MDRIM00-000251/mapserver5/siglight.exe&service=WMS&version=1.1.1&request=getfeatureinfo&info_format=text/html&srs=EPSG:4326 >>> > >>> >>> > &bbox=-71.332572,46.716784,-71.247428,46.783216&width=992&height=774&layers=hauteur_libre&query_layers=hauteur_libre&feature_count=10&x=423&y=313&format=gif&styles= >>> >>> >>> ex: Municipalit??: Qu??bec >>> >>> The template behind this layer is a very simple HTML file (saved in >>> DOS/ISO-8859-1 encoding): >>> >>> >>> >>> >>> >>> >>>
Municipalit??:[Municipali]
>>> >>> But when I send the same URL request in AJAX, the accent character are >>> not displayed correctly (in the responseText of the XMLHttpRequest >>> object). >>> >>> ex: Municipalit? Qu?c >>> >>> For firefox, I have fix the problem by adding this line: >>> >>> xmlHttp.overrideMimeType('text/html; charset=ISO-8859-1'); >>> >>> But this method is not supported by IE. I presume it's not a >>> Mapserver issue but if someone has any clue??? >>> >>> Thank you in advance. >>> >>> MartinO >>> >>> >>> > ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > -- > Daniel Morissette > http://www.mapgears.com/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Doug_Newcomb at fws.gov Thu Apr 24 06:18:43 2008 From: Doug_Newcomb at fws.gov (Doug_Newcomb at fws.gov) Date: Thu, 24 Apr 2008 09:18:43 -0400 Subject: [mapserver-users] Postgres library In-Reply-To: <48107C9E.7010805@mapgears.com> Message-ID: Daniel, This might help for problems with selinux and apache: http://beginlinux.com/index.php/server_training/web-server/117-web-server/976-apache-and-selinux Doug Doug Newcomb USFWS Raleigh, NC 919-856-4520 ext. 14 doug_newcomb at fws.gov --------------------------------------------------------------------------------------------------------- The opinions I express are my own and are not representative of the official policy of the U.S.Fish and Wildlife Service or Dept. of Interior. Life is too short for undocumented, proprietary data formats. Daniel Morissette To Sent by: mapserver-users at lists.osgeo.org mapserver-users-b cc ounces at lists.osge o.org Subject Re: [mapserver-users] Postgres library 04/24/2008 08:27 AM Philippe Kruschitz wrote: > Hi, > > I just compiled Mapserver 5.0.2 from source with all needed libraries (and postgres+postgis). > Everything worked fine, I copied the mapserv file into my cgi-bin directory, but mapserver only returns a blank page in the browser. > > I checked the Apache error-log, which showed following output: > > [Thu Apr 24 06:09:15 2008] [error] [client 127.0.0.1] /var/www/cgi-bin/mapserv: error while loading shared libraries: libpq.so.5: failed to map segment from shared object: Permission denied > [Thu Apr 24 06:09:15 2008] [error] [client 127.0.0.1] Premature end of script headers: mapserv > Are you using Fedora or RHEL 4+ by any chance? A Google search using the error message points to lots of docs referring to SELinux getting in the way of Apache finding its libs. Some places suggest disabling SELinux completely, but there has to be a more elegant solution to tell SELinux to let Apache load those new libs. http://www.google.ca/search?q=apache+failed+to+map+segment+from+shared+object Daniel -- Daniel Morissette http://www.mapgears.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From dmorissette at mapgears.com Thu Apr 24 06:27:04 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 24 Apr 2008 09:27:04 -0400 Subject: [mapserver-users] Segmentation Fault on Solaris parsing Template In-Reply-To: References: Message-ID: <48108AA8.4060501@mapgears.com> Oliver Wesp wrote: > > gdb mapserv_481 core > > #0 0xfe633218 in strlen () from /usr/lib/libc.so.1 > #1 0xfe686530 in _doprnt () from /usr/lib/libc.so.1 > #2 0xfe6882d8 in snprintf () from /usr/lib/libc.so.1 > #3 0x00029cbc in processLine (msObj=0xecb48, instr=0xffbe9a30 > "/tmp/map_sb120895549616000.png", mode=0) at maptemplate.c:2384 > #4 0x0002c26c in msReturnURL (msObj=0xecb48, url=0x1023a0 > "..//html/error.html", mode=0) at maptemplate.c:2918 > #5 0x0001f244 in writeError () at mapserv.c:200 > #6 0x00023bf8 in main (argc=2, argv=0xffbeb5a4) at mapserv.c:1276 > According to this stack dump, MapServer has encountered and error and is trying to construct and return an ERROR URL using the "WEB.ERROR" directive. The crash happens when it's trying to read the HTTP_HOST environment variable (maptemplate.c:2384)... possibly that variable is not set (and MapServer doesn't check for NULL pointers in this case which is bad, I just filed ticket 2589 about that). A simple fix might be to remove the WEB ERROR directive in your mapfile, letting MapServer produce its default error response, and see if that helps. Daniel -- Daniel Morissette http://www.mapgears.com/ From James.Leveille at mtq.gouv.qc.ca Thu Apr 24 06:29:57 2008 From: James.Leveille at mtq.gouv.qc.ca (=?iso-8859-1?Q?L=E9veill=E9=2C_James?=) Date: Thu, 24 Apr 2008 09:29:57 -0400 Subject: [mapserver-users] AGG - FORMATOPTION PALETTE Message-ID: <2F86ED212F3E164EB9FBB2E68C67858E04996310@SINFRA0-EXC003.MTQ.MIN.INTRA> Hi, I'm trying to use my own palette for AGG as described here by Thomas : http://www.nabble.com/forced-palette-and-quantization-for-RGBA-images-td1464 5869.html As explained in the article, I'm using a typical PNG 24 bits image (produced in RGBA mode - 4 bands). But from this image, I'm not able to produce a 8 bits PNG image with the ALPHA, only in RGB with 3 channels - see the GDALINFO below. I need this 8 bits image to generate my palette. gdalinfo rgb.png Driver: PNG/Portable Network Graphics Size is 1203, 813 Coordinate System is `' Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 813.0) Upper Right ( 1203.0, 0.0) Lower Right ( 1203.0, 813.0) Center ( 601.5, 406.5) Band 1 Block=1203x1 Type=Byte, ColorInterp=Palette Color Table (RGB with 256 entries) 0: 17,12,12,255 1: 27,101,44,255 2: 0,132,0,255 3: 19,130,16,255 ... How can I generate a 8 bits RGBA image from the original 24 bits image ? Regards. JAMES -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at gmail.com Thu Apr 24 06:34:17 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Thu, 24 Apr 2008 15:34:17 +0200 Subject: [mapserver-users] AGG - FORMATOPTION PALETTE In-Reply-To: <2F86ED212F3E164EB9FBB2E68C67858E04996310@SINFRA0-EXC003.MTQ.MIN.INTRA> References: <2F86ED212F3E164EB9FBB2E68C67858E04996310@SINFRA0-EXC003.MTQ.MIN.INTRA> Message-ID: hi, you can send me your rgb.png, I'll have a look, but gdal does "seem" to find an rgba file, as shown by the quadruples printed out ( eg: 17,12,12,255) cheers -- Thomas Bonfort Camptocamp France SAS http://www.camptocamp.com On Thu, Apr 24, 2008 at 3:29 PM, L?veill?, James wrote: > > > > Hi, > > I'm trying to use my own palette for AGG as described here by Thomas : > http://www.nabble.com/forced-palette-and-quantization-for-RGBA-images-td14645869.html > > As explained in the article, I'm using a typical PNG 24 bits image (produced > in RGBA mode - 4 bands). > But from this image, I'm not able to produce a 8 bits PNG image with the > ALPHA, only in RGB with 3 channels - see the GDALINFO below. > I need this 8 bits image to generate my palette. > > gdalinfo rgb.png > Driver: PNG/Portable Network Graphics > Size is 1203, 813 > Coordinate System is `' > Corner Coordinates: > Upper Left ( 0.0, 0.0) > Lower Left ( 0.0, 813.0) > Upper Right ( 1203.0, 0.0) > Lower Right ( 1203.0, 813.0) > Center ( 601.5, 406.5) > Band 1 Block=1203x1 Type=Byte, ColorInterp=Palette > Color Table (RGB with 256 entries) > 0: 17,12,12,255 > 1: 27,101,44,255 > 2: 0,132,0,255 > 3: 19,130,16,255 > ... > > How can I generate a 8 bits RGBA image from the original 24 bits image ? > > Regards. > > > > JAMES > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From pramsey at cleverelephant.ca Thu Apr 24 08:10:01 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Thu, 24 Apr 2008 08:10:01 -0700 Subject: [mapserver-users] Indic Support in Mapserver? In-Reply-To: <3d4286d70804230026y249eacadj75ebc0e9b8efe58e@mail.gmail.com> References: <3d4286d70804120040kf659b61ke646e4227beba387@mail.gmail.com> <3d4286d70804120043y6d4c0851ndd081b7aae84cf14@mail.gmail.com> <3d4286d70804230026y249eacadj75ebc0e9b8efe58e@mail.gmail.com> Message-ID: <30fe546d0804240810w55328b7dyb0743a1449492920@mail.gmail.com> Intriguing problem... is it possible that we could achieve this through more sophisticated use of freetype? http://www.freetype.org/opentype/index.html P. On Wed, Apr 23, 2008 at 12:26 AM, Swapnil Hajare wrote: > > > Hello All, > I have been trying unsuccessfully to login to trac.osgeo.org/mapserver > using my OSGeo userid (dreamil). After trying for last 2 days, I am posting > here the bug report which I wanted to post there. Please go through this and > let me know your opinion on the same: > > ******************************************************************************************** > Title: Indic Support (using OpenType fonts) in Mapserver > > The current version of Mapserver can render labels on map using LABEL > directive in a map file.For labels, you can use truetype fonts which is > achieved using freetype.Due to this map labels can be displayed in various > non-English languages such as europian and some Asian scripts. > > However, for rendering some CTL (Complex Text Layout) scripts, truetype > fonts are not sufficient.Indic Scripts, for example, require much more than > mere juxtaposition of glyphs from a font.Rendering Indic scripts such as > Devanagari, Gujarati, Tamil, Telugu, Bengali etc. is much more complex than > others.To handle this, "intelligent" fonts were designed which contain > embedded rules to help rendering.These were called OpenType fonts (see > http://www.microsoft.com/typography/otfntdev/indicot/default.htm). Though > initiated by M$, OpenType fonts are are now Industry standard for rendering > these complex scripts on Computer using script and language rules. All major > Linux desktops such as GNOME and KDE support OpenType font rendering.To > handle OpenType fonts, various rendering engines have been developed and > have become part of rendering libraries such as > Pango(http://www.pango.org/)/ICU(http://www.icu-project.org/), Qt etc.It > should be noted that, in absence of such a rendering engine, OpenType fonts > act as Truetype fonts i.e. the embedded rendering rules are not used while > doing the glyph formation. > > There are numerous OpenType fonts available free/proprietory for Indic > scripts. We have ourselves developed gargi, the first GPLed OpenType font > for Devanagari(http://savannah.nongnu.org/projects/gargi). > > Current Mapserver supports truetype fonts using freetype routines, but there > is no support for OpenType fonts. As a result, a text label in any of the > indic scripts is rendered using justaposition of glyphs from the font > provided, without using rendering rules.The result is incorrect rendering. > To show you the difference, here is the snapshot of a map with labels in > Devanagari script (which is a indic script), rendered in correct > fashion(http://indictrans.in/~swapnil/mapserver/required_result.png) and > here is the snapshot as rendered by > Mapserver(http://indictrans.in/~swapnil/mapserver/mapserv_no_render_support_for_ttf.png) > You may not be able to make out much if you are not familiar with the > script, but for someone who knows the script, its an incorrect or broken > representation of the text. > > To solve this, we should add support for OpenType font rendering in > Mapserver.This can be done by embedding some indic rendering routines from > Pango or ICU into the label rendering engine of mapserver. I don't know the > details of how labels are rendered in Mapserver, so somebody knowledgable > should guide. I am prepared to take up the task on behalf of my team > (www.indictrans.in) if I get some guidance about internal working of > Mapserver.As far as performance is concerned, this will hit the speed badly, > but then this can be encoded as a configure options (--with-pango similar to > Firefox implementation > http://developer.spikesource.com/wiki/index.php/Firefox_Indic_Build) so that > it becomes optional. > > You may have look at the temporary solution which we are using for the time > being to show indic text on maps using Mapserver here: > http://www.indictrans.in/old/doublebyte/English/doublebyte_l10n_25march_4PM.html > We have numerous localized GIS demo on our website using this approach. > > ******************************************************************************************** > > regards, > -- > Swapnil Hajare > dreamil.indictrans.in > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From pramsey at cleverelephant.ca Thu Apr 24 08:13:12 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Thu, 24 Apr 2008 08:13:12 -0700 Subject: [mapserver-users] Indic Support in Mapserver? In-Reply-To: <30fe546d0804240810w55328b7dyb0743a1449492920@mail.gmail.com> References: <3d4286d70804120040kf659b61ke646e4227beba387@mail.gmail.com> <3d4286d70804120043y6d4c0851ndd081b7aae84cf14@mail.gmail.com> <3d4286d70804230026y249eacadj75ebc0e9b8efe58e@mail.gmail.com> <30fe546d0804240810w55328b7dyb0743a1449492920@mail.gmail.com> Message-ID: <30fe546d0804240813n24fd5651j1bb6d298684405ee@mail.gmail.com> Nevermind, I see that freetype dropped it, and it was picked up later by the projects you mentioned... http://www.freedesktop.org/wiki/Software/HarfBuzz On Thu, Apr 24, 2008 at 8:10 AM, Paul Ramsey wrote: > Intriguing problem... is it possible that we could achieve this > through more sophisticated use of freetype? > > http://www.freetype.org/opentype/index.html > > P. > > > > On Wed, Apr 23, 2008 at 12:26 AM, Swapnil Hajare wrote: > > > > > > Hello All, > > I have been trying unsuccessfully to login to trac.osgeo.org/mapserver > > using my OSGeo userid (dreamil). After trying for last 2 days, I am posting > > here the bug report which I wanted to post there. Please go through this and > > let me know your opinion on the same: > > > > ******************************************************************************************** > > Title: Indic Support (using OpenType fonts) in Mapserver > > > > The current version of Mapserver can render labels on map using LABEL > > directive in a map file.For labels, you can use truetype fonts which is > > achieved using freetype.Due to this map labels can be displayed in various > > non-English languages such as europian and some Asian scripts. > > > > However, for rendering some CTL (Complex Text Layout) scripts, truetype > > fonts are not sufficient.Indic Scripts, for example, require much more than > > mere juxtaposition of glyphs from a font.Rendering Indic scripts such as > > Devanagari, Gujarati, Tamil, Telugu, Bengali etc. is much more complex than > > others.To handle this, "intelligent" fonts were designed which contain > > embedded rules to help rendering.These were called OpenType fonts (see > > http://www.microsoft.com/typography/otfntdev/indicot/default.htm). Though > > initiated by M$, OpenType fonts are are now Industry standard for rendering > > these complex scripts on Computer using script and language rules. All major > > Linux desktops such as GNOME and KDE support OpenType font rendering.To > > handle OpenType fonts, various rendering engines have been developed and > > have become part of rendering libraries such as > > Pango(http://www.pango.org/)/ICU(http://www.icu-project.org/), Qt etc.It > > should be noted that, in absence of such a rendering engine, OpenType fonts > > act as Truetype fonts i.e. the embedded rendering rules are not used while > > doing the glyph formation. > > > > There are numerous OpenType fonts available free/proprietory for Indic > > scripts. We have ourselves developed gargi, the first GPLed OpenType font > > for Devanagari(http://savannah.nongnu.org/projects/gargi). > > > > Current Mapserver supports truetype fonts using freetype routines, but there > > is no support for OpenType fonts. As a result, a text label in any of the > > indic scripts is rendered using justaposition of glyphs from the font > > provided, without using rendering rules.The result is incorrect rendering. > > To show you the difference, here is the snapshot of a map with labels in > > Devanagari script (which is a indic script), rendered in correct > > fashion(http://indictrans.in/~swapnil/mapserver/required_result.png) and > > here is the snapshot as rendered by > > Mapserver(http://indictrans.in/~swapnil/mapserver/mapserv_no_render_support_for_ttf.png) > > You may not be able to make out much if you are not familiar with the > > script, but for someone who knows the script, its an incorrect or broken > > representation of the text. > > > > To solve this, we should add support for OpenType font rendering in > > Mapserver.This can be done by embedding some indic rendering routines from > > Pango or ICU into the label rendering engine of mapserver. I don't know the > > details of how labels are rendered in Mapserver, so somebody knowledgable > > should guide. I am prepared to take up the task on behalf of my team > > (www.indictrans.in) if I get some guidance about internal working of > > Mapserver.As far as performance is concerned, this will hit the speed badly, > > but then this can be encoded as a configure options (--with-pango similar to > > Firefox implementation > > http://developer.spikesource.com/wiki/index.php/Firefox_Indic_Build) so that > > it becomes optional. > > > > You may have look at the temporary solution which we are using for the time > > being to show indic text on maps using Mapserver here: > > http://www.indictrans.in/old/doublebyte/English/doublebyte_l10n_25march_4PM.html > > We have numerous localized GIS demo on our website using this approach. > > > > ******************************************************************************************** > > > > regards, > > -- > > Swapnil Hajare > > dreamil.indictrans.in > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > From johan.hallgren at logica.com Thu Apr 24 12:54:01 2008 From: johan.hallgren at logica.com (Hallgren, Johan) Date: Thu, 24 Apr 2008 21:54:01 +0200 Subject: [mapserver-users] memory problem on Windows OS Message-ID: Hello I have a problem I can't figure out what it's cased of. I have installed a version of mapserver that I have compiled. It's installed on several computers with no problems. Now I have installed it on another server and suddenly a problem will arise (see below). 4/24/2008 9:11:14 AM mapscript_csharp Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at OSGeo.MapServer.mapscriptPINVOKE.new_mapObj(String jarg1) at OSGeo.MapServer.mapObj..ctor(String filename) at WMData.GIS.GMSAgent_WP.CMain.StartListening(Int32 iPort) D:\apps\GMSAgent\bin>shp2img.exe -v MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=FREETYPE SUPPORTS=THREADS INPUT=SDE INPUT=ORACLESPATIAL INPUT=OGR INPU T=GDAL INPUT=SHAPEFILE The server is a win32 windows server 2003 and there as a number of CPUs but my application is running in a single process. I have debugged the process and the request is arriving one by one and after a few calls to the process/application are suddenly gives the error above. Any assistance would be fine. BR Johan ___________________________________ Johan Hallgren Logica Pelle Bergs backe 3 Box 1938, 791 19 Falun Tel (och mobil): 023-547 46 (int: +46-2354746) johan.hallgren at logica.com http://www.logica.se -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Thu Apr 24 14:49:30 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 24 Apr 2008 23:49:30 +0200 Subject: [mapserver-users] memory problem on Windows OS In-Reply-To: References: Message-ID: Johan, This information if not enough to find out the root of the problem. Can you describe or provide an example how you use mapscript inside the request. Which .NET Framework are you running against? Which version of the mapserver are you using? Tamas 2008/4/24, Hallgren, Johan : > > > > > Hello > > > > I have a problem I can't figure out what it's cased of. > > > > > I have installed a version of mapserver that I have compiled. It's installed > on several computers with no problems. Now I have installed it on another > server and suddenly a problem will arise (see below). > > > > > > 4/24/2008 9:11:14 AM mapscript_csharp > > Attempted to read or write protected memory. This is often an indication > that other memory is corrupt. > > > > at OSGeo.MapServer.mapscriptPINVOKE.new_mapObj(String > jarg1) > > at OSGeo.MapServer.mapObj..ctor(String filename) > > at WMData.GIS.GMSAgent_WP.CMain.StartListening(Int32 > iPort) > > > > D:\apps\GMSAgent\bin>shp2img.exe -v > > MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG > > SUPPORTS=FREETYPE SUPPORTS=THREADS INPUT=SDE INPUT=ORACLESPATIAL INPUT=OGR > INPU > > > T=GDAL INPUT=SHAPEFILE > > > > The server is a win32 windows server 2003 and there as a number of CPUs but > my application is running in a single process. I have debugged the process > and the request is arriving one by one and after a few calls to the > process/application are suddenly gives the error above. > > > > Any assistance would be fine. > > > > BR > > Johan > ___________________________________ > Johan Hallgren > > > > > > Logica > > > Pelle Bergs backe 3 > > > Box 1938, 791 19 Falun > > > > Tel (och mobil): 023-547 46 (int: +46-2354746) > > johan.hallgren at logica.com > > > http://www.logica.se > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From emmanuel.sambale at gmail.com Thu Apr 24 19:35:46 2008 From: emmanuel.sambale at gmail.com (maning sambale) Date: Fri, 25 Apr 2008 10:35:46 +0800 Subject: [mapserver-users] Large scale PDF output on Windows In-Reply-To: References: <20080423113012.GS28031@42.dk> <20080423113824.GD26150@metacarta.com> Message-ID: hi, Are there any example of WMS with pdf output available over the web? I tried the mumbai map but can't get a pdf output. cheers, maning On Thu, Apr 24, 2008 at 9:01 PM, Flavio Hendry wrote: > Hi Bart > > Discussed the issue a while ago with Frank Warmerdam. He had less > problems on a LINUX System running on a 64bit machine (he supposes it > could go as high as 25'000 pixels). On Windows 32 it bangs at around > 10'000 to 14'000 pixels depending on content. Did not try on Windows 64. > > Mit freundlichem Gruss / Best Regards > Flavio Hendry > > ---------------------------------------------------------------- > TYDAC Web-Site: http://www.tydac.ch > TYDAC MapServer: http://www.mapserver.ch > TYDAC SwissMaps: http://www.mapplus.ch > ---------------------------------------------------------------- > ############ Mit freundlichen Gruessen / Kind Regards > ############ mailto:flavio at tydac.ch > ############ TYDAC AG - http://www.tydac.ch > #### #### Geographic Information Solutions > #### #### Luternauweg 12 -- CH-3006 Bern > ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 > ---------------------------------------------------------------- > Location: http://www.mapplus.ch/adr/bern/luternauweg/12 > ---------------------------------------------------------------- > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- |---------|----------------------------------------------------------| | __.-._ |"Ohhh. Great warrior. Wars not make one great." -Yoda | | '-._"7' |"Freedom is still the most radical idea of all" -N.Branden| | /'.-c |Linux registered user #402901, http://counter.li.org/ | | | /T |http://esambale.wikispaces.com| | _)_/LI |---------|----------------------------------------------------------| From carl.anderson at vadose.org Thu Apr 24 20:18:14 2008 From: carl.anderson at vadose.org (Carl Anderson) Date: Thu, 24 Apr 2008 23:18:14 -0400 Subject: [mapserver-users] Large scale PDF output on Windows In-Reply-To: References: <20080423113012.GS28031@42.dk> <20080423113824.GD26150@metacarta.com> Message-ID: <48114D76.5010101@vadose.org> Maning, We have built a custom system that builds large format maps using UMN Mapserver output as SVG and some extra static template stuff An example can be seen at http://wms.co.fulton.ga.us/apps/custommaps/select_type.php?view_layers=-layer=streets-layer=daccess-layer=hillshade-layer=buildings-layer=current_parcels-layer=subdiv-layer=city_limits-layer=ponds-layer=streams&objectid=xxxxxx&xmin=2171270.340465&ymin=1329959.560581&xmax=2191269.791276&ymax=1343188.595973 A different map can be pulled from http://wfs.co.fulton.ga.us/apps/tilemaps/get_tile.php?intile=136101 We are converting the system to be entirely mapserver SVG output based, with the conversion to PDF as the last step. the maps are vector maps and not raster maps so they are less limited by map size. If you want the PHP code that assembles these maps let me know. C. Carl Anderson IS/GIS Manager Fulton County GA, USA maning sambale wrote: > hi, > > Are there any example of WMS with pdf output available over the web? > I tried the mumbai map but can't get a pdf output. > > cheers, > > maning > > On Thu, Apr 24, 2008 at 9:01 PM, Flavio Hendry wrote: > >> Hi Bart >> >> Discussed the issue a while ago with Frank Warmerdam. He had less >> problems on a LINUX System running on a 64bit machine (he supposes it >> could go as high as 25'000 pixels). On Windows 32 it bangs at around >> 10'000 to 14'000 pixels depending on content. Did not try on Windows 64. >> >> Mit freundlichem Gruss / Best Regards >> Flavio Hendry >> >> ---------------------------------------------------------------- >> TYDAC Web-Site: http://www.tydac.ch >> TYDAC MapServer: http://www.mapserver.ch >> TYDAC SwissMaps: http://www.mapplus.ch >> ---------------------------------------------------------------- >> ############ Mit freundlichen Gruessen / Kind Regards >> ############ mailto:flavio at tydac.ch >> ############ TYDAC AG - http://www.tydac.ch >> #### #### Geographic Information Solutions >> #### #### Luternauweg 12 -- CH-3006 Bern >> ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 >> ---------------------------------------------------------------- >> Location: http://www.mapplus.ch/adr/bern/luternauweg/12 >> ---------------------------------------------------------------- >> >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > > From woodbri at swoodbridge.com Thu Apr 24 22:07:12 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 25 Apr 2008 00:07:12 -0500 Subject: [mapserver-users] Large scale PDF output on Windows In-Reply-To: <48114D76.5010101@vadose.org> References: <20080423113012.GS28031@42.dk> <20080423113824.GD26150@metacarta.com> <48114D76.5010101@vadose.org> Message-ID: <48116700.9080002@swoodbridge.com> Carl, I would like to get a copy of this as well. I think this would make a great contribution to the mapserver wiki or a mapserver HowTo if you are willing to contribute it. Thanks, -Steve W Carl Anderson wrote: > Maning, > > We have built a custom system that builds large format maps using UMN > Mapserver output as SVG and some extra static template stuff > > An example can be seen at > http://wms.co.fulton.ga.us/apps/custommaps/select_type.php?view_layers=-layer=streets-layer=daccess-layer=hillshade-layer=buildings-layer=current_parcels-layer=subdiv-layer=city_limits-layer=ponds-layer=streams&objectid=xxxxxx&xmin=2171270.340465&ymin=1329959.560581&xmax=2191269.791276&ymax=1343188.595973 > > > A different map can be pulled from > http://wfs.co.fulton.ga.us/apps/tilemaps/get_tile.php?intile=136101 > > > We are converting the system to be entirely mapserver SVG output based, > with the conversion to PDF as the last step. the maps are vector maps > and not raster maps so they are less limited by map size. > > > If you want the PHP code that assembles these maps let me know. > > > C. > > Carl Anderson > IS/GIS Manager Fulton County GA, USA > > > > > maning sambale wrote: >> hi, >> >> Are there any example of WMS with pdf output available over the web? >> I tried the mumbai map but can't get a pdf output. >> >> cheers, >> >> maning >> >> On Thu, Apr 24, 2008 at 9:01 PM, Flavio Hendry wrote: >> >>> Hi Bart >>> >>> Discussed the issue a while ago with Frank Warmerdam. He had less >>> problems on a LINUX System running on a 64bit machine (he supposes it >>> could go as high as 25'000 pixels). On Windows 32 it bangs at around >>> 10'000 to 14'000 pixels depending on content. Did not try on Windows >>> 64. >>> >>> Mit freundlichem Gruss / Best Regards >>> Flavio Hendry >>> >>> ---------------------------------------------------------------- >>> TYDAC Web-Site: http://www.tydac.ch >>> TYDAC MapServer: http://www.mapserver.ch >>> TYDAC SwissMaps: http://www.mapplus.ch >>> ---------------------------------------------------------------- >>> ############ Mit freundlichen Gruessen / Kind Regards >>> ############ mailto:flavio at tydac.ch >>> ############ TYDAC AG - http://www.tydac.ch >>> #### #### Geographic Information Solutions >>> #### #### Luternauweg 12 -- CH-3006 Bern >>> ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 >>> ---------------------------------------------------------------- >>> Location: http://www.mapplus.ch/adr/bern/luternauweg/12 >>> ---------------------------------------------------------------- >>> >>> >>> >>> >>> _______________________________________________ >>> 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 group.ritesh at gmail.com Fri Apr 25 01:11:41 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Fri, 25 Apr 2008 01:11:41 -0700 (PDT) Subject: [MAPSERVER-USERS] Postgis and Mapserver In-Reply-To: <860105.57845.qm@web25907.mail.ukl.yahoo.com> References: <860105.57845.qm@web25907.mail.ukl.yahoo.com> Message-ID: <16892667.post@talk.nabble.com> Hey Hans, Please check the mapserver log for the error(s). Also, do check the 'tmp' directory where map images are generated. Regards, Ritesh Ambastha Hans Castorp wrote: > > Hi to all, > > In the past days I have been answering some questions about it but, by > now, I haven?t achieved my goal. I will try to explain what I have and > what I want (need, in fact): > > I?m displaying some cartography: lines and polygons from shape files and > points from a Postgis table (without filtering). > At the same time, I have a form to query the postgis table applying some > filters. I am making these queries using PHP and SQL in the usual way. I > don?t use mapscript queryByAttibutes, because SQL queries are more > flexible and powerful (I think). Due to these facts what I have is: on one > side, a map showing all the points (with no filter) and, on the other > side, a filtered list of these same points. > > What I?m looking to do is: > > - Zoom to all my selection, changing simbology in order to show > some points with the default simbology (map file) and others (the result > of my selection) with a special simbology. > - Zoom to one chosen point in my selection. By now, I?m doing it > using zoomToExtents, passing as parameters x and y of the point (retrieved > in the sql query). This works fine but I need to change the simbology of > the selected point in order to make it clearly visible between the others. > > What I?m trying in order to change simbology for selected points is > something like this: > > $oMap = ms_newMapObj($szMapFile); > > $oLayer = $oMap->getLayerByName("EMPRESAS"); > > $oClass = $oLayer->getClass(0); > > $oEstilo = $oClass->getStyle(0); > > $oLayer->setFilter($sql); > > $oEstilo->set("symbolname", "MARKER_EMPRESA_ALT"); > > But I have no results (at least no errors, too J) > > Some help will be welcomed. > Thanks in advance to everyone. > > > > > Hans Castorp > > __________________________________________________ > Correo Yahoo! > Espacio para todos tus mensajes, antivirus y antispam ?gratis! > Reg?strate ya - http://correo.yahoo.es > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Postgis-and-Mapserver-tp16740842p16892667.html Sent from the Mapserver - User mailing list archive at Nabble.com. From stefan.schwarzer at grid.unep.ch Fri Apr 25 01:51:35 2008 From: stefan.schwarzer at grid.unep.ch (Stefan Schwarzer) Date: Fri, 25 Apr 2008 10:51:35 +0200 Subject: [MAPSERVER-USERS] ASCII -> UTF-8 convert problems for importing (GIS) data (DBF standard encoding?) In-Reply-To: <16808302.post@talk.nabble.com> References: <1271ED51-BE7D-4A72-AAC5-860F028D14F8@grid.unep.ch> <200804181637.51277.yjacolin@free.fr> <5D28D4DD-F80A-4163-80B8-AD5FD372A33A@grid.unep.ch> <16808302.post@talk.nabble.com> Message-ID: >>>> hmm.... I have a shapefile, which has some unorthodox characters >>>> (?, >>>> ?, ...). Now, when importing the file (via shp2pgsql) into >>>> postgres, >>>> it complains about it not being UTF-8 (my database has that >>>> format). >>>> >>>> So, how can I convert either the dbf file or than in a later stage >>>> the >>>> created text file from (I guess) ASCII into UTF-8? >> > -W describes the input format. The output format if you use it will > be > UTF-8. From the shp2pgsql(1) man page: > > You need to find out what the input data is encoded in. A very likely > candidate is ISO-8859-1 (aka Latin-1). > > Take a look at the actual hex values of some of the non-English > characters. > (I use hexl-mode in emacs to do this, but there are plenty of other > ways.) > 0xC7 LATIN CAPITAL C WITH CEDILLA > 0xEC LATIN SMALL I WITH GRAVE > > Do they match? But this is still a bit of a guessing game, because > you > could find many matches and still not be right, e.g. ISO-8859-15 is > very > similar. A better way would be to look at the documentation for > your input > data, or ask the provider of the data. Thanks for the help. As you said, there is a lot of guessing involved... But: is there anyway to specify the encoding for DBF files? When dealing with shapefiles, the dbf is either created a bit manually in Excel, or via ESRI programs (or other tools). I haven't seen any possibility to specify the encoding. So I guess that all of them have the same encoding, no? From thy at 42.dk Fri Apr 25 02:22:45 2008 From: thy at 42.dk (Kristian Thy) Date: Fri, 25 Apr 2008 11:22:45 +0200 Subject: [mapserver-users] Large scale PDF output on Windows In-Reply-To: References: <20080423113012.GS28031@42.dk> <20080423113824.GD26150@metacarta.com> Message-ID: <20080425092245.GL28031@42.dk> On Thu, Apr 24, Flavio Hendry wrote: > Discussed the issue a while ago with Frank Warmerdam. He had less > problems on a LINUX System running on a 64bit machine (he supposes it > could go as high as 25'000 pixels). On Windows 32 it bangs at around > 10'000 to 14'000 pixels depending on content. Did not try on Windows 64. Thanks to advice from the list, I now have huge orthophoto pdfs. But now I have another problem - using png output, I get nice 24 bit images, but my pdf output is dithered 8 bit. The relevant part of my map file: IMAGETYPE png24 OUTPUTFORMAT NAME png MIMETYPE "image/png" DRIVER AGG/PNG EXTENSION png IMAGEMODE RGB TRANSPARENT FALSE END #outputformat OUTPUTFORMAT NAME pdf MIMETYPE "application/x-pdf" DRIVER pdf EXTENSION pdf IMAGEMODE RGB FORMATOPTION "OUTPUT_TYPE=RASTER" TRANSPARENT FALSE END #outputformat Removing the FORMATOPTION makes no difference. http://quovadis.dk/dl/ortho.png http://quovadis.dk/dl/ortho.pdf The commandline incantation used to produce the images: $ shp2img -m ddo.map -o ortho.pdf -s 1654 1169 -l DDO -e 659000 6058000 663200 6060970 -i pdf Does the pdf driver support 24 bit at all? Can I do 24 bit pngs and assemble the pdfs by hand? \\kristian -- ... et nemo ex vobis interrogat me: ?Quo vadis?? From p_kruschitz at hotmail.com Fri Apr 25 03:35:00 2008 From: p_kruschitz at hotmail.com (Philippe Kruschitz) Date: Fri, 25 Apr 2008 03:35:00 -0700 (PDT) Subject: [MAPSERVER-USERS] Mapserv problems on Fedora In-Reply-To: <4803DCF0.8070607@swoodbridge.com> References: <4803C4E6.3010001@swoodbridge.com> <4803BC13.1060200@pobox.com> <4803DCF0.8070607@swoodbridge.com> Message-ID: <16894650.post@talk.nabble.com> Hi, I posted to the list before with a "shared libraries" problem causing mapserv to crash. Daniel Morissette got it right, as I was working on a RHEL5 server. The excellent link sent by Doug Newcomb was pretty helpful too, but unfortunately, I had to get MS running as soon as possible, so I disabled SELinux completely (I'll get back to configuring it correctly, though...) After rebooting, trying to access mapserv without any parameters showed the following (correctly?): 'No query information to decode. QUERY_STRING is set, but empty.' But as soon as I try to display a map file, the same blank page that showed before returned. In the error_log, I found an ugly stack, apparently caused by a glibc problem: [Fri Apr 25 05:09:00 2008] [error] [client 127.0.0.1] *** glibc detected *** /var/www/cgi-bin/mapserv: free(): invalid next size (fast): 0x0000000010137900 *** Searching on the forum, I found this thread where you obviously dealt with a similar problem. Unfortunately, I didn't really understand how or if you solved the problem. I would be grateful if one of you could explain to me what is exactly happening and how I could possibly solve my problem.... Regards, Philippe PS: I'm running on a 64-bit RHEL5 server with Mapserver compiled from source... ./mapserv -v MapServer version 5.0.2 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 INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -- View this message in context: http://www.nabble.com/Mapserv--problems-on-Fedora-tp16688820p16894650.html Sent from the Mapserver - User mailing list archive at Nabble.com. From hanscastorp76 at yahoo.es Fri Apr 25 03:56:56 2008 From: hanscastorp76 at yahoo.es (Hans Castorp) Date: Fri, 25 Apr 2008 10:56:56 +0000 (GMT) Subject: [MAPSERVER-USERS] Postgis and Mapserver Message-ID: <984005.60778.qm@web25903.mail.ukl.yahoo.com> Hi Ritesh, I have no errors in my log file. Additionally mo images are generated with the required simbology. Thanks in advance. -----Mensaje original----- De: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de Ritesh Ambastha Enviado el: viernes, 25 de abril de 2008 10:12 Para: mapserver-users at lists.osgeo.org Asunto: Re: [MAPSERVER-USERS] Postgis and Mapserver Hey Hans, Please check the mapserver log for the error(s). Also, do check the 'tmp' directory where map images are generated. Regards, Ritesh Ambastha Hans Castorp wrote: > > Hi to all, > > In the past days I have been answering some questions about it but, by > now, I haven?t achieved my goal. I will try to explain what I have and > what I want (need, in fact): > > I?m displaying some cartography: lines and polygons from shape files > and points from a Postgis table (without filtering). > At the same time, I have a form to query the postgis table applying > some filters. I am making these queries using PHP and SQL in the usual > way. I don?t use mapscript queryByAttibutes, because SQL queries are > more flexible and powerful (I think). Due to these facts what I have > is: on one side, a map showing all the points (with no filter) and, on > the other side, a filtered list of these same points. > > What I?m looking to do is: > > - Zoom to all my selection, changing simbology in order to show > some points with the default simbology (map file) and others (the > result of my selection) with a special simbology. > - Zoom to one chosen point in my selection. By now, I?m doing it > using zoomToExtents, passing as parameters x and y of the point > (retrieved in the sql query). This works fine but I need to change the > simbology of the selected point in order to make it clearly visible between the others. > > What I?m trying in order to change simbology for selected points is > something like this: > > $oMap = ms_newMapObj($szMapFile); > > $oLayer = $oMap->getLayerByName("EMPRESAS"); > > $oClass = $oLayer->getClass(0); > > $oEstilo = $oClass->getStyle(0); > > $oLayer->setFilter($sql); > > $oEstilo->set("symbolname", "MARKER_EMPRESA_ALT"); > > But I have no results (at least no errors, too J) > > Some help will be welcomed. > Thanks in advance to everyone. > > > > > Hans Castorp > > __________________________________________________ > Correo Yahoo! > Espacio para todos tus mensajes, antivirus y antispam ?gratis! > Reg?strate ya - http://correo.yahoo.es > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Postgis-and-Mapserver-tp16740842p16892667.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 No virus found in this incoming message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.4/1396 - Release Date: 24/04/2008 18:32 No virus found in this outgoing message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.4/1396 - Release Date: 24/04/2008 18:32 ______________________________________________ Enviado desde Correo Yahoo! La bandeja de entrada m?s inteligente. -------------- next part -------------- An HTML attachment was scrubbed... URL: From srph124 at yahoo.com Fri Apr 25 07:59:46 2008 From: srph124 at yahoo.com (Saka Royban) Date: Fri, 25 Apr 2008 07:59:46 -0700 (PDT) Subject: [mapserver-users] newbie : Mapserver limitations? Message-ID: <355906.41201.qm@web58205.mail.re3.yahoo.com> Hi all. In wiki prepared for UMN MapServer i saw this limitations for it: * 200 Layers * 64 Symbols is it true? (because i didn't see such thing any where else i asked this question) also i wanted to know when project of mapserver started exactly. Thanks in advance ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Fri Apr 25 08:30:13 2008 From: bfraser at geoanalytic.com (Brent Fraser) Date: Fri, 25 Apr 2008 09:30:13 -0600 Subject: [mapserver-users] Large scale PDF output on Windows In-Reply-To: <20080425092245.GL28031@42.dk> References: <20080423113012.GS28031@42.dk> <20080423113824.GD26150@metacarta.com> <20080425092245.GL28031@42.dk> Message-ID: <4811F905.6050107@geoanalytic.com> Kristian (and all), Back in 2005 I challenged one of our new engineers to create a 34 inch by 44 inch PDF map (with a graticule!) of a satellite image using Mapserver (v4.6). There were several problems, the most serious in mappdf.c which uses an 8-bit GD library image format restricting the images inserted into the PDF to 8 bit only (although just prior to insertion they're converted to JPEG, a 24-bit format!). One of the other problems was memory usage. Mapserver creates two or three copies of the image when rendering it to PDF (and at 300 dpi an RGB image of that size can be 500 mb). But if your format is smaller than 34 x 44, it may not be a problem. If there's enough interest, I'd be willing to contribute the code changes he made if there's a Mapserver developer/committer willing to review, upgrade them to v5,and test (and it may require an RFC as there was a map file addition to OUTPUTFORMAT/FORMATOPTIONS, I think). Brent Fraser Kristian Thy wrote: > On Thu, Apr 24, Flavio Hendry wrote: >> Discussed the issue a while ago with Frank Warmerdam. He had less >> problems on a LINUX System running on a 64bit machine (he supposes it >> could go as high as 25'000 pixels). On Windows 32 it bangs at around >> 10'000 to 14'000 pixels depending on content. Did not try on Windows 64. > > Thanks to advice from the list, I now have huge orthophoto pdfs. But now > I have another problem - using png output, I get nice 24 bit images, but > my pdf output is dithered 8 bit. The relevant part of my map file: > > IMAGETYPE png24 > OUTPUTFORMAT > NAME png > MIMETYPE "image/png" > DRIVER AGG/PNG > EXTENSION png > IMAGEMODE RGB > TRANSPARENT FALSE > END #outputformat > OUTPUTFORMAT > NAME pdf > MIMETYPE "application/x-pdf" > DRIVER pdf > EXTENSION pdf > IMAGEMODE RGB > FORMATOPTION "OUTPUT_TYPE=RASTER" > TRANSPARENT FALSE > END #outputformat > > Removing the FORMATOPTION makes no difference. > > http://quovadis.dk/dl/ortho.png > http://quovadis.dk/dl/ortho.pdf > > The commandline incantation used to produce the images: > > $ shp2img -m ddo.map -o ortho.pdf -s 1654 1169 -l DDO -e 659000 6058000 663200 6060970 -i pdf > > Does the pdf driver support 24 bit at all? Can I do 24 bit pngs and > assemble the pdfs by hand? > > \\kristian From Steve.Lime at dnr.state.mn.us Fri Apr 25 09:23:11 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 25 Apr 2008 11:23:11 -0500 Subject: [mapserver-users] newbie : Mapserver limitations? In-Reply-To: <355906.41201.qm@web58205.mail.re3.yahoo.com> References: <355906.41201.qm@web58205.mail.re3.yahoo.com> Message-ID: <4811BF1E.5157.008F.0@dnr.state.mn.us> Those are not issues with the 5.x release. Steve >>> On 4/25/2008 at 9:59 AM, in message <355906.41201.qm at web58205.mail.re3.yahoo.com>, Saka Royban wrote: > Hi all. > In wiki prepared for UMN MapServer i saw this limitations for it: > > * 200 Layers > * 64 Symbols > is it true? (because i didn't see such thing any where else i asked this > question) > also i wanted to know when project of mapserver started exactly. > Thanks in advance > > > > _____________________________________________________________________________ > _______ > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ From ivan.mincik at gmail.com Fri Apr 25 10:36:54 2008 From: ivan.mincik at gmail.com (Ivan Mincik) Date: Fri, 25 Apr 2008 19:36:54 +0200 Subject: Fwd: [MAPSERVER-USERS] Fwd: CLOSE_CONNECTION=DEFER - Segmentation fault In-Reply-To: <90699a8d0804201226r43db0431i4b22b3bf9b1caa33@mail.gmail.com> References: <200803221533.24934.ivan.mincik@gmail.com> <90699a8d0804201226r43db0431i4b22b3bf9b1caa33@mail.gmail.com> Message-ID: <200804251936.54789.ivan.mincik@gmail.com> Thanks a lot Dave, according to tests on my local machine there are no other problems with v6 patch. Next week I will try it on production system. Ivan On Sunday 20 April 2008 21:26, you wrote: > Ivan, > > BTW there is a new version of the mappostgis.c patch, v6 at > http://trac.osgeo.org/mapserver/ticket/2497 , which further cleans up > the code (but doesn't add any new enhancements). If you get a chance > to test it and find any problems, let me know (and CC the > mapserver-users list on reply). > > Thanks, > > Dave > > On Sat, Mar 22, 2008 at 10:33 AM, Ivan Mincik wrote: > > Hi Dave and others, > > > > >Here is the report about testing second version of > > >ms_postgis_begin_to_connect.diff (03/20/08 18:35:00) in p.mapper with > > >PROCESSING "CLOSE_CONNECTION=DEFER. > > > > > >I have started browsing the map, using Obj_queryBy functions, turning > > > on and off different layers. Application was working smoothly without > > > any error or warning in the log. > > > > > >THE PROBLEM will occur when I stop working in pmapper for a while and > > > try to continue browsing. (in the log it is between 09:41:44 and - > > > 09:46:05 and 09:50:03 - 09:52:30) . After these pauses I had to > > > restart browser to get p.mapper working again, but in 20 percent still > > > application is still freezing. > > >Same problems can be reproduced every new pmapper session. > > > > I have solved this problem with php session settings so this last > > problem was probably on php/p.mapper site. Now the logs are clear. > > Tomorrow I will test it with more users then one. > > Ivan > > > > >Maybe I can try some session configurations in apache or postgres. Any > > >advises? > > > > > >PostgreSQL log is here: > > >http://projects.gpsmapy.sk/logs/ms_postgis_begin_to_connect_version2.lo > > >g > > > > > > > > >Dave, thanks a lot for Your work > > >Ivan > > > > > >On Friday 21 March 2008 18:12, you wrote: > > > Ivan, > > > > > > Yes, I updated the patch on the bug report page > > > http://trac.osgeo.org/mapserver/ticket/2497 around the time I sent > > > those emails yesterday. Download it, make sure it differs from the > > > ms_postgis_fix_trans_state.diff you're currently using, `svn revert > > > mappostgis.c`, and try it with the new patch. > > > > > > Sorry that was not clear. > > > > > > Thanks, > > > > > > Dave > > > > > > On Fri, Mar 21, 2008 at 4:59 AM, Ivan Mincik wrote: > > > > On Thursday 20 March 2008 23:46, you wrote: > > > > > Ivan, > > > > > > > > > > Try the new version of the patch, just posted. I had > > > > > accidentally removed a necessary query in msPOSTGISLayerGetShape. > > > > > My tests which now include getShape() are working (with or > > > > > without PROCESSING "CLOSE_CONNECTION=DEFER"). > > > > > > > > Hi Dave, > > > > I have allready tried patch ms_postgis_fix_trans_state.diff and I > > > > have posted the report. Or is there any updated version of > > > > ms_postgis_fix_trans_state.diff? > > > > > > > > I am sure that I have updated php_mapscript.so. > > > > > > > > ************************************************************ > > > > For sure I include my report of testing > > > > ms_postgis_fix_trans_state.diff: > > > > > > > > > > > > I have applied new patch ms_postgis_fix_trans_state.diff to > > > > mapserver-5.0.2 sources from debian unstable and recompiled new > > > > debian package and install. > > > > > > > > > > > > Then I have: > > > > 1. restarted apache > > > > 2. restarted postgresql-8.1 > > > > 3. restarted browser (deleted cache) > > > > > > > > And started this test with p.mapper 3.2 application: > > > > > > > > 1. Browsing the map (moving, zooming out, zooming in, adding some > > > > more layers) 2. Using identify > > > > ({map,layer}Obj_queryBy{Point,Rect,etc.}) - ERROR: cursor "mycursor2 > > > > immediately > > > > 3. Browsing the map (moving, zooming out, zooming in) > > > > 4. Using identify ({map,layer}Obj_queryBy{Point,Rect,etc.}) - > > > > ERROR: cursor "mycursor2 immediately > > > > > > > > > > > > Result: > > > > With this patch it is not possible to do neither a singel object > > > > query. (with older patch it was possible few times). > > > > After "ERROR: cursor "mycursor2" does not exist" it is possible to > > > > continue browsing the map again and object query fill finish with > > > > same result as above. > > > > > > > > > > > > {map,layer}Obj_queryBy{Point,Rect,etc.} function is not > > > > working also when #PROCESSING "CLOSE_CONNECTION=DEFER" is > > > > disabled. So identify object is not working at all. > > > > > > > > log is here: > > > > > > > > http://projects.gpsmapy.sk/logs/ms_postgis_fix_trans_state_patch.log > > > > ------------------------------------------------------- From pramsey at cleverelephant.ca Fri Apr 25 10:39:47 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Fri, 25 Apr 2008 10:39:47 -0700 Subject: Fwd: [MAPSERVER-USERS] Fwd: CLOSE_CONNECTION=DEFER - Segmentation fault In-Reply-To: <200804251936.54789.ivan.mincik@gmail.com> References: <200803221533.24934.ivan.mincik@gmail.com> <90699a8d0804201226r43db0431i4b22b3bf9b1caa33@mail.gmail.com> <200804251936.54789.ivan.mincik@gmail.com> Message-ID: <30fe546d0804251039m73bf14cfhc53c2df9d70cca04@mail.gmail.com> Great work Dave. I will apply this pretty soon, unless I hear from you that you've had negative reports from others. P On Fri, Apr 25, 2008 at 10:36 AM, Ivan Mincik wrote: > Thanks a lot Dave, > according to tests on my local machine there are no other problems with v6 > patch. Next week I will try it on production system. > > Ivan > > On Sunday 20 April 2008 21:26, you wrote: > > Ivan, > > > > BTW there is a new version of the mappostgis.c patch, v6 at > > http://trac.osgeo.org/mapserver/ticket/2497 , which further cleans up > > the code (but doesn't add any new enhancements). If you get a chance > > to test it and find any problems, let me know (and CC the > > mapserver-users list on reply). > > > > Thanks, > > > > Dave > > > > > > On Sat, Mar 22, 2008 at 10:33 AM, Ivan Mincik wrote: > > > Hi Dave and others, > > > > > > >Here is the report about testing second version of > > > >ms_postgis_begin_to_connect.diff (03/20/08 18:35:00) in p.mapper with > > > >PROCESSING "CLOSE_CONNECTION=DEFER. > > > > > > > >I have started browsing the map, using Obj_queryBy functions, turning > > > > on and off different layers. Application was working smoothly without > > > > any error or warning in the log. > > > > > > > >THE PROBLEM will occur when I stop working in pmapper for a while and > > > > try to continue browsing. (in the log it is between 09:41:44 and - > > > > 09:46:05 and 09:50:03 - 09:52:30) . After these pauses I had to > > > > restart browser to get p.mapper working again, but in 20 percent still > > > > application is still freezing. > > > >Same problems can be reproduced every new pmapper session. > > > > > > I have solved this problem with php session settings so this last > > > problem was probably on php/p.mapper site. Now the logs are clear. > > > Tomorrow I will test it with more users then one. > > > Ivan > > > > > > >Maybe I can try some session configurations in apache or postgres. Any > > > >advises? > > > > > > > >PostgreSQL log is here: > > > >http://projects.gpsmapy.sk/logs/ms_postgis_begin_to_connect_version2.lo > > > >g > > > > > > > > > > > >Dave, thanks a lot for Your work > > > >Ivan > > > > > > > >On Friday 21 March 2008 18:12, you wrote: > > > > Ivan, > > > > > > > > Yes, I updated the patch on the bug report page > > > > http://trac.osgeo.org/mapserver/ticket/2497 around the time I sent > > > > those emails yesterday. Download it, make sure it differs from the > > > > ms_postgis_fix_trans_state.diff you're currently using, `svn revert > > > > mappostgis.c`, and try it with the new patch. > > > > > > > > Sorry that was not clear. > > > > > > > > Thanks, > > > > > > > > Dave > > > > > > > > On Fri, Mar 21, 2008 at 4:59 AM, Ivan Mincik > wrote: > > > > > On Thursday 20 March 2008 23:46, you wrote: > > > > > > Ivan, > > > > > > > > > > > > Try the new version of the patch, just posted. I had > > > > > > accidentally removed a necessary query in msPOSTGISLayerGetShape. > > > > > > My tests which now include getShape() are working (with or > > > > > > without PROCESSING "CLOSE_CONNECTION=DEFER"). > > > > > > > > > > Hi Dave, > > > > > I have allready tried patch ms_postgis_fix_trans_state.diff and I > > > > > have posted the report. Or is there any updated version of > > > > > ms_postgis_fix_trans_state.diff? > > > > > > > > > > I am sure that I have updated php_mapscript.so. > > > > > > > > > > ************************************************************ > > > > > For sure I include my report of testing > > > > > ms_postgis_fix_trans_state.diff: > > > > > > > > > > > > > > > I have applied new patch ms_postgis_fix_trans_state.diff to > > > > > mapserver-5.0.2 sources from debian unstable and recompiled new > > > > > debian package and install. > > > > > > > > > > > > > > > Then I have: > > > > > 1. restarted apache > > > > > 2. restarted postgresql-8.1 > > > > > 3. restarted browser (deleted cache) > > > > > > > > > > And started this test with p.mapper 3.2 application: > > > > > > > > > > 1. Browsing the map (moving, zooming out, zooming in, adding some > > > > > more layers) 2. Using identify > > > > > ({map,layer}Obj_queryBy{Point,Rect,etc.}) - ERROR: cursor "mycursor2 > > > > > immediately > > > > > 3. Browsing the map (moving, zooming out, zooming in) > > > > > 4. Using identify ({map,layer}Obj_queryBy{Point,Rect,etc.}) - > > > > > ERROR: cursor "mycursor2 immediately > > > > > > > > > > > > > > > Result: > > > > > With this patch it is not possible to do neither a singel object > > > > > query. (with older patch it was possible few times). > > > > > After "ERROR: cursor "mycursor2" does not exist" it is possible to > > > > > continue browsing the map again and object query fill finish with > > > > > same result as above. > > > > > > > > > > > > > > > {map,layer}Obj_queryBy{Point,Rect,etc.} function is not > > > > > working also when #PROCESSING "CLOSE_CONNECTION=DEFER" is > > > > > disabled. So identify object is not working at all. > > > > > > > > > > log is here: > > > > > > > > > > http://projects.gpsmapy.sk/logs/ms_postgis_fix_trans_state_patch.log > > > > > > ------------------------------------------------------- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From codeburg at hotmail.com Fri Apr 25 11:34:43 2008 From: codeburg at hotmail.com (Gail Long) Date: Fri, 25 Apr 2008 12:34:43 -0600 Subject: [mapserver-users] Extents and projections multiple datasets In-Reply-To: References: Message-ID: I need some good pointers to docs or how-tos for working with extents and projections from multiple datasets. I'm getting shape files from several different sources and they all seem to have different projections and built on lots of different extents. I need to have them work together. I'm defining a projection for the map and the same projection in each layer definition of my map file: PROJECTION "proj=lcc" "lon_0=90w" "lat_0=45" END I'm picking what I believe to be the largest extents. Is this the right way to go? I don't really understand how these go together. I never have any trouble when the dataset is from one source. I would appreciate any advice. -- Things are only difficult while you don't understand them. _________________________________________________________________ Back to work after baby?how do you know when you?re ready? http://lifestyle.msn.com/familyandparenting/articleNW.aspx?cp-documentid=5797498&ocid=T067MSN40A0701A -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at cleverelephant.ca Fri Apr 25 11:49:52 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Fri, 25 Apr 2008 11:49:52 -0700 Subject: [mapserver-users] Extents and projections multiple datasets In-Reply-To: References: Message-ID: <30fe546d0804251149s70626b71o4ca3d18785ae0bbe@mail.gmail.com> Gail, The PROJECTION in each LAYER should be the projection of the *source data*. So if your data is from multiple folks in multiple projections, your LAYER projections should generally be different from one another, not all the same. The PROJECTION at the MAP level defines what you want your output projection to be. You can define your own, or you could pick something standard that makes sense for your overall extent. (If you know what your overall extent is (statewide, coutrywide, global), I can give you a suggestion.) So, the LAYER projections are *input* projections, the MAP projection is an *output* projection. By knowing both the input and output, mapserver can apply a math transform to the data to project it on the fly from the input to the output. Yours, Paul On Fri, Apr 25, 2008 at 11:34 AM, Gail Long wrote: > > I need some good pointers to docs or how-tos for working with extents and > projections from multiple datasets. I'm getting shape files from several > different sources and they all seem to have different projections and built > on lots of different extents. I need to have them work together. > > I'm defining a projection for the map and the same projection in each layer > definition of my map file: > > PROJECTION > "proj=lcc" > "lon_0=90w" > "lat_0=45" > END > > I'm picking what I believe to be the largest extents. Is this the right way > to go? I don't really understand how these go together. I never have any > trouble when the dataset is from one source. > > I would appreciate any advice. > > -- Things are only difficult while you don't understand them. > > ________________________________ > Back to work after baby? how do you know when you're ready? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From julian at gdacorp.com Fri Apr 25 12:03:36 2008 From: julian at gdacorp.com (Julian Winter) Date: Fri, 25 Apr 2008 15:03:36 -0400 Subject: [mapserver-users] Mapscript for C++ Message-ID: <20080425191023.1E7BBE01A81@lists.osgeo.org> Is it possible to use Mapscript from C++ directly? If so, what files/libraries are needed? I am implementing a web application using the Wt Web Toolkit and I would like to be able to generate online maps from it. Thanks. No virus found in this outgoing message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.4/1397 - Release Date: 4/25/2008 7:42 AM From warmerdam at pobox.com Fri Apr 25 13:21:18 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 25 Apr 2008 16:21:18 -0400 Subject: [mapserver-users] Mapscript for C++ In-Reply-To: <20080425191023.1E7BBE01A81@lists.osgeo.org> References: <20080425191023.1E7BBE01A81@lists.osgeo.org> Message-ID: <48123D3E.2020906@pobox.com> Julian Winter wrote: > Is it possible to use Mapscript from C++ directly? If so, what > files/libraries are needed? > > I am implementing a web application using the Wt Web Toolkit and I would > like to be able to generate online maps from it. > > Thanks. Julian, You can call MapServer library C functions from C++ and manipulate the mapserver objects directly. However, MapServer does not have an intentional, public documented C API so you pretty much have to operate based on code inspection and it is quite possible that the API will morph in future versions. Basically doing stuff this way tends to require more digging on your part, and is likely somewhat fragile, but it is quite doable. Looking at mapserver.h, and stuff in the mapscript include files (mapserver/mapscript/swiginc) should give you some ideas on how things are done. 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 | President OSGeo, http://osgeo.org From pramsey at cleverelephant.ca Fri Apr 25 18:23:06 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Fri, 25 Apr 2008 18:23:06 -0700 Subject: [MAPSERVER-USERS] Fwd: CLOSE_CONNECTION=DEFER - Segmentation fault In-Reply-To: <200804261038.02509.sdc@sdc.com.au> References: <200804261038.02509.sdc@sdc.com.au> Message-ID: <30fe546d0804251823n18d32258gb283840fa1abe22e@mail.gmail.com> I will apply this against 5.0.x as well if there is an interest. On Fri, Apr 25, 2008 at 6:08 PM, Stephen Davies wrote: > I have also installed this patch (against 5.0.2) and have had it running in > production for two days without a hitch (or even a log warning). > > There was a one-line offset report from patch. > > Cheers, > Stephen Davies > -- > ======================================================================== > This email is for the person(s) identified above, and is confidential to > the sender and the person(s). No one else is authorised to use or > disseminate this email or its contents. > > Stephen Davies Consulting Voice: 08-8177 1595 > Adelaide, South Australia. Fax: 08-8177 0133 > Computing & Network solutions. Mobile:0403 0405 83 > From sdc at sdc.com.au Fri Apr 25 18:08:02 2008 From: sdc at sdc.com.au (Stephen Davies) Date: Sat, 26 Apr 2008 10:38:02 +0930 Subject: Fwd: [MAPSERVER-USERS] Fwd: CLOSE_CONNECTION=DEFER - Segmentation fault Message-ID: <200804261038.02509.sdc@sdc.com.au> I have also installed this patch (against 5.0.2) and have had it running in production for two days without a hitch (or even a log warning). There was a one-line offset report from patch. Cheers, Stephen Davies -- ======================================================================== This email is for the person(s) identified above, and is confidential to the sender and the person(s). No one else is authorised to use or disseminate this email or its contents. Stephen Davies Consulting Voice: 08-8177 1595 Adelaide, South Australia. Fax: 08-8177 0133 Computing & Network solutions. Mobile:0403 0405 83 From pzader at gmail.com Fri Apr 25 21:13:44 2008 From: pzader at gmail.com (pablo zader) Date: Sat, 26 Apr 2008 01:13:44 -0300 Subject: [mapserver-users] Help raster data access Message-ID: <52be2a8b0804252113y79b541c0w325083a2fbda8b90@mail.gmail.com> Hello friends, I am working with MApServer 5, want to do query on layers raster and have the following problem: on a layers raster once chosen the tool of query gives the following thing to the clickear: " MsQueryByPoint (): Search returned not results. Not matching record (s) found. " The layer raster of my map file defini like that: LAYER NAME "arboles" TYPE raster DATA "cobertura/GLC_5Final.tif" STATUS ON CLASS EXPRESSION ([pixel] = 1) STYLE COLOR 0 255 0 END TEMPLATE "template/raster.html" END CLASS EXPRESSION ([pixel] = 1) STYLE COLOR 255 226 187 END #TEMPLATE "template/raster.html" END HEADER "template/raster_header.html" FOOTER "template/raster_footer.html" The file raster.html (that is the principal one in the consultation) defini like that: Pixel:
values=[value_list]
value_0=[value_0]
value_1=[value_1]
value_2=[value_2]
RGB = [RED],[GREEN],[BLUE]

Class = [class]
I wait for his help .. from already thank you very much to this forum that really contributes things very interesting and good solutions Regards Pablo.- -- Pablo Zader -------------- next part -------------- An HTML attachment was scrubbed... URL: From mapserver at geoworld.de Sat Apr 26 11:54:29 2008 From: mapserver at geoworld.de (Nicol Hermann) Date: Sat, 26 Apr 2008 20:54:29 +0200 Subject: [mapserver-users] Wrong number of query results (php mapscript) between a static and dynamic setup Message-ID: <1209236069.4819.6.camel@localhost> Hi List, i am fighting with a real strange behaviour of mapserver/php mapscript. This concerns the result of an attribut query. I get different results using a completely dynamic setup and static mapfile. I prepared a couple of scripts to reproduce the issue ('ms.zip'). k.map = a mapfile k1.php = php mapscript with a completely dynamic setup (include of kq.php) k2.php = php mapscript which reads the setup from 'k.map' (include of kq.php) kq.php = attribut.query tmp_klima.shp|dbf|shx= Sample Shape File with some records As both scripts (k1.php and k2.php) uses the same data source and the same querys/expressions i expect the same results. In fact the query result of both scripts differs although they use the same attribut query (kq.php). k1.php = returns the correct results k2.php = returns a wrong number of query results (2, STATION=Wilkes is missing) I run both scripts with mapserver 5.0.2 on a debian lenny system. I have no idea what happens here. Can the behaviour have something to do with the minus values in the queried attribut field (TJ)? Any help would be greatly appreciated. Many thanks Nicol -------------- next part -------------- A non-text attachment was scrubbed... Name: ms.zip Type: application/zip Size: 3495 bytes Desc: not available URL: From thy at 42.dk Sat Apr 26 13:04:26 2008 From: thy at 42.dk (Kristian Thy) Date: Sat, 26 Apr 2008 22:04:26 +0200 Subject: [mapserver-users] Large scale PDF output on Windows In-Reply-To: <4811F905.6050107@geoanalytic.com> References: <20080423113012.GS28031@42.dk> <20080423113824.GD26150@metacarta.com> <20080425092245.GL28031@42.dk> <4811F905.6050107@geoanalytic.com> Message-ID: <20080426200426.GR28031@42.dk> On Fri, Apr 25, Brent Fraser wrote: > If there's enough interest, I'd be willing to contribute the code changes > he made if there's a Mapserver developer/committer willing to review, > upgrade them to v5,and test (and it may require an RFC as there was a map > file addition to OUTPUTFORMAT/FORMATOPTIONS, I think). I am very interested in your patch, and would certainly back enabling 24 bit pdf output. \\kristian -- ... et nemo ex vobis interrogat me: ?Quo vadis?? From pianosnake at gmail.com Sat Apr 26 13:44:49 2008 From: pianosnake at gmail.com (Florin A.) Date: Sat, 26 Apr 2008 14:44:49 -0600 Subject: [mapserver-users] pixels do not match data Message-ID: <1d674ec80804261344h4ab8a9bau8cce9092820f915c@mail.gmail.com> Hi, I have a postgis layer in UTM zone 13 with squares that are exactly one hectare size (100 by 100 meters). I want the output image to have 1 pixel 1 hectare correspondence. Any ideas on how to do this? The image coming back is wrong. There are 4 pixels for every 1 hectare, as if the pixels and the lines didn't exactly overlap. Here's what I've done so far: -set width and height of my image to 1/100 of the width and height of the layer. made width and height values even (seems to give back the right cell size of 100). - I have units defined as meters and the projection defined as 26913 in the mapfile. -cellsize comes back as 100, which is good. -extent comes back as what i defined (but only when i make the image size even numbers) -made the image size even numbers, both 1 above my values, and 1 below -my cell boundary coordinates in the postgis layer are factors of 100. i checked all of them -in postgis i used the snaptogrid function to make sure all the cell vertices were factors of 100 -defined projection with both epsg code, and by listing out the attributes If I increase the image size it gets closer and closer to what I want, but I'm hitting against the 2048 width limit and I'd rather keep the image size small and where it ought to be. I'd appreciate any advice, Thanks, From pedro1_72 at yahoo.com Sun Apr 27 21:29:44 2008 From: pedro1_72 at yahoo.com (Nahum Castro) Date: Sun, 27 Apr 2008 23:29:44 -0500 (CDT) Subject: [MAPSERVER-USERS] Mapserv problems on Fedora In-Reply-To: <16894650.post@talk.nabble.com> Message-ID: <736671.95124.qm@web44805.mail.sp1.yahoo.com> --- Philippe Kruschitz escribi?: > > Hi, > > I posted to the list before with a "shared > libraries" problem causing > mapserv to crash. Daniel Morissette got it right, as > I was working on a > RHEL5 server. The excellent link sent by Doug > Newcomb was pretty helpful > too, but unfortunately, I had to get MS running as > soon as possible, so I > disabled SELinux completely (I'll get back to > configuring it correctly, > though...) > > After rebooting, trying to access mapserv without > any parameters showed the > following (correctly?): > 'No query information to decode. QUERY_STRING is > set, but empty.' > > But as soon as I try to display a map file, the same > blank page that showed > before returned. > In the error_log, I found an ugly stack, apparently > caused by a glibc > problem: > > [Fri Apr 25 05:09:00 2008] [error] [client > 127.0.0.1] *** glibc detected *** > /var/www/cgi-bin/mapserv: free(): invalid next size > (fast): > 0x0000000010137900 *** > > Searching on the forum, I found this thread where > you obviously dealt with a > similar problem. > > Unfortunately, I didn't really understand how or if > you solved the problem. > I would be grateful if one of you could explain to > me what is exactly > happening and how I could possibly solve my > problem.... > > Regards, > > Philippe > > PS: I'm running on a 64-bit RHEL5 server with > Mapserver compiled from > source... > > > ./mapserv -v > MapServer version 5.0.2 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 INPUT=EPPL7 > INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > -- > View this message in context: You --must-- compile and install the last version of gd, the gd version on RHEL 5 and 5.1 is broken, also on centos and fedora core 8. Be sure to replace the old gd version on /usr/lib, also check the simlinks on /usr/lib, then run ldconfig as root. If you use mapserver with phpmapscript install php-gd with yum. Hope this helps. Saludos. -- Nahum Castro Leon, Guanajuato, Mexico http://www.leon-linux.com e-mail: pedro1_72 [en] yahoo [punto] com ____________________________________________________________________________________ Yahoo! Deportes Beta ?No te pierdas lo ?ltimo sobre el torneo clausura 2008! Ent?rate aqu? http://deportes.yahoo.com From johan.hallgren at logica.com Mon Apr 28 01:18:55 2008 From: johan.hallgren at logica.com (Hallgren, Johan) Date: Mon, 28 Apr 2008 10:18:55 +0200 Subject: [mapserver-users] memory problem on Windows OS In-Reply-To: References: Message-ID: Hello Tamas I'm using Mapserver 5.0.0, I also tried a later trunk version. I'm using dotnet2.0 Regarding the application itself, it has been installed and used on many servers with now problems so I just try to understand what this error indicates. Could it be that the data is corrupt anyway? In this case we had a running version on one server and we moved all data (10 GB of rasterdata) and the application itself to a new location and this new error shows up? Isn't that strange? /Johan ___________________________________ Johan Hallgren Logica Pelle Bergs backe 3 Box 1938, 791 19 Falun Tel (och mobil): 023-547 46 (int: +46-2354746) johan.hallgren at logica.com http://www.logica.se -----Original Message----- From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: den 24 april 2008 23:50 To: Hallgren, Johan Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] memory problem on Windows OS Johan, This information if not enough to find out the root of the problem. Can you describe or provide an example how you use mapscript inside the request. Which .NET Framework are you running against? Which version of the mapserver are you using? Tamas 2008/4/24, Hallgren, Johan : > > > > > Hello > > > > I have a problem I can't figure out what it's cased of. > > > > > I have installed a version of mapserver that I have compiled. It's installed > on several computers with no problems. Now I have installed it on another > server and suddenly a problem will arise (see below). > > > > > > 4/24/2008 9:11:14 AM mapscript_csharp > > Attempted to read or write protected memory. This is often an indication > that other memory is corrupt. > > > > at OSGeo.MapServer.mapscriptPINVOKE.new_mapObj(String > jarg1) > > at OSGeo.MapServer.mapObj..ctor(String filename) > > at WMData.GIS.GMSAgent_WP.CMain.StartListening(Int32 > iPort) > > > > D:\apps\GMSAgent\bin>shp2img.exe -v > > MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG > > SUPPORTS=FREETYPE SUPPORTS=THREADS INPUT=SDE INPUT=ORACLESPATIAL INPUT=OGR > INPU > > > T=GDAL INPUT=SHAPEFILE > > > > The server is a win32 windows server 2003 and there as a number of CPUs but > my application is running in a single process. I have debugged the process > and the request is arriving one by one and after a few calls to the > process/application are suddenly gives the error above. > > > > Any assistance would be fine. > > > > BR > > Johan > ___________________________________ > Johan Hallgren > > > > > > Logica > > > Pelle Bergs backe 3 > > > Box 1938, 791 19 Falun > > > > Tel (och mobil): 023-547 46 (int: +46-2354746) > > johan.hallgren at logica.com > > > http://www.logica.se > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From szekerest at gmail.com Mon Apr 28 02:42:35 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Mon, 28 Apr 2008 11:42:35 +0200 Subject: [mapserver-users] memory problem on Windows OS In-Reply-To: References: Message-ID: Johan, Make sure you have no different versions of the packages installed on your environment. For example it's not safe to use mapscript.dll along with libmap.dll compiled for different crt libraries. It would be helpful to create a debug build, and get a callstack at the native code. Best regards, Tamas 2008/4/28 Hallgren, Johan : > Hello Tamas > > I'm using Mapserver 5.0.0, I also tried a later trunk version. I'm using dotnet2.0 > > Regarding the application itself, it has been installed and used on many servers with now problems so I just try to understand what this error indicates. Could it be that the data is corrupt anyway? In this case we had a running version on one server and we moved all data (10 GB of rasterdata) and the application itself to a new location and this new error shows up? Isn't that strange? > > /Johan > > > ___________________________________ > > > Johan Hallgren > > > Logica > Pelle Bergs backe 3 > Box 1938, 791 19 Falun > Tel (och mobil): 023-547 46 (int: +46-2354746) > johan.hallgren at logica.com > http://www.logica.se > > > -----Original Message----- > From: Tamas Szekeres [mailto:szekerest at gmail.com] > Sent: den 24 april 2008 23:50 > To: Hallgren, Johan > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] memory problem on Windows OS > > Johan, > > This information if not enough to find out the root of the problem. > Can you describe or provide an example how you use mapscript inside the request. > Which .NET Framework are you running against? Which version of the > mapserver are you using? > > > Tamas > > > 2008/4/24, Hallgren, Johan : > > > > > > > > > > Hello > > > > > > > > I have a problem I can't figure out what it's cased of. > > > > > > > > > > I have installed a version of mapserver that I have compiled. It's installed > > on several computers with no problems. Now I have installed it on another > > server and suddenly a problem will arise (see below). > > > > > > > > > > > > 4/24/2008 9:11:14 AM mapscript_csharp > > > > Attempted to read or write protected memory. This is often an indication > > that other memory is corrupt. > > > > > > > > at OSGeo.MapServer.mapscriptPINVOKE.new_mapObj(String > > jarg1) > > > > at OSGeo.MapServer.mapObj..ctor(String filename) > > > > at WMData.GIS.GMSAgent_WP.CMain.StartListening(Int32 > > iPort) > > > > > > > > D:\apps\GMSAgent\bin>shp2img.exe -v > > > > MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > > OUTPUT=SVG > > > > SUPPORTS=FREETYPE SUPPORTS=THREADS INPUT=SDE INPUT=ORACLESPATIAL INPUT=OGR > > INPU > > > > > > T=GDAL INPUT=SHAPEFILE > > > > > > > > The server is a win32 windows server 2003 and there as a number of CPUs but > > my application is running in a single process. I have debugged the process > > and the request is arriving one by one and after a few calls to the > > process/application are suddenly gives the error above. > > > > > > > > Any assistance would be fine. > > > > > > > > BR > > > > Johan > > ___________________________________ > > Johan Hallgren > > > > > > > > > > > > Logica > > > > > > Pelle Bergs backe 3 > > > > > > Box 1938, 791 19 Falun > > > > > > > > Tel (och mobil): 023-547 46 (int: +46-2354746) > > > > johan.hallgren at logica.com > > > > > > http://www.logica.se > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > From p_kruschitz at hotmail.com Mon Apr 28 04:57:12 2008 From: p_kruschitz at hotmail.com (Philippe Kruschitz) Date: Mon, 28 Apr 2008 04:57:12 -0700 (PDT) Subject: [MAPSERVER-USERS] Mapserv problems on Fedora In-Reply-To: <736671.95124.qm@web44805.mail.sp1.yahoo.com> References: <4803C4E6.3010001@swoodbridge.com> <4803BC13.1060200@pobox.com> <4803DCF0.8070607@swoodbridge.com> <16894650.post@talk.nabble.com> <736671.95124.qm@web44805.mail.sp1.yahoo.com> Message-ID: <16937360.post@talk.nabble.com> > >You --must-- compile and install the last version of >gd, the gd version on RHEL 5 and 5.1 is broken, also >on centos and fedora core 8. > >Be sure to replace the old gd version on /usr/lib, >also check the simlinks on /usr/lib, then run ldconfig >as root. > >If you use mapserver with phpmapscript install php-gd >with yum. > >Hope this helps. > >Saludos. > >-- >Nahum Castro >Leon, Guanajuato, Mexico >http://www.leon-linux.com >e-mail: pedro1_72 [en] yahoo [punto] com I did pretty much everything you said before compiling mapserver (i didn't have mapscript, though). I tried to to change the malloc value, as frank warmerdam suggested, with exactly the same result as stephen woodbridge: the crash is fixed, but the regular expression systematically fails..... Anyone has an idea? Did Stephen fixed it? Regards, Phil Quote S. Woodbridge: Hi Frank, Adding more to to the malloc fixed the crash, but the regex is failing :( and should be ok: Breakpoint 1, msEvalRegex (e=0x4e9873 "\\.map$", s=0x7232a0 "/u/data/maps/google-agg.map") at mapfile.c:79 ... 89 if(ms_regexec(&re, s, 0, NULL, 0) != 0) { /* no match */ (gdb) p ms_regexec(&re, s, 0, 0, 0) $1 = 1 (gdb) c Continuing. Content-type: text/html MapServer Message msEvalRegex(): Regular expression error. String (/u/data/maps/google-agg.map) failed expression test. Program exited normally. This should NOT be happening. Arrrgh! Anyone else using fc8 on a x86_84 box? -Steve -- View this message in context: http://www.nabble.com/Mapserv--problems-on-Fedora-tp16688820p16937360.html Sent from the Mapserver - User mailing list archive at Nabble.com. From aberenyi at burken.hu Mon Apr 28 06:44:32 2008 From: aberenyi at burken.hu (=?ISO-8859-2?Q?Attila_Ber=E9nyi?=) Date: Mon, 28 Apr 2008 15:44:32 +0200 Subject: [mapserver-users] multiple tiffs in one layer Message-ID: <4815D4C0.8000507@burken.hu> Dear List, I'd like to know that is it possible to display separate geotiffs on one layer? Now I'm able to include more than one DATA line in the LAYER specification, but only the last one is displayed.... Any help would be very much appreciated, Thanks, Attila -------------- next part -------------- An HTML attachment was scrubbed... URL: From yjacolin at free.fr Mon Apr 28 05:50:48 2008 From: yjacolin at free.fr (Jacolin Yves) Date: Mon, 28 Apr 2008 14:50:48 +0200 Subject: [mapserver-users] multiple tiffs in one layer In-Reply-To: <4815D4C0.8000507@burken.hu> References: <4815D4C0.8000507@burken.hu> Message-ID: <200804281450.49036.yjacolin@free.fr> Le Monday 28 April 2008 15:44:32 Attila Ber?nyi, vous avez ?crit?: > Dear List, > > I'd like to know that is it possible to display separate geotiffs on one > layer? > Now I'm able to include more than one DATA line in the LAYER > specification, but only the last one is displayed.... > > Any help would be very much appreciated, > > Thanks, > > Attila Hi, You can use TILEINDEX: LAYER NAME "geosignal_5k" GROUP geosignal STATUS ON TYPE RASTER TILEINDEX "Referentiel/geosignal/IDF/5k/index.shp" TILEITEM "Location" ... END GDAL-ogr could create the index shapefile with gdaltindex command. Regards, Y. -- Yves Jacolin --- http://softlibre.gloobe.org From fabiodovidio at gmail.com Mon Apr 28 05:52:48 2008 From: fabiodovidio at gmail.com (Fabio D'Ovidio) Date: Mon, 28 Apr 2008 14:52:48 +0200 Subject: [mapserver-users] [Fwd: Re: [Cartoweb-users] From Windows XP to CentOS] Message-ID: <4815C8A0.6040703@gmail.com> Hi list! I am problems on installing php\mapscript and proj on CentOS5 (in order to use cartoweb3).. Could you help me? (See the attached e-mail) Thanks -- Ing. Fabio D'Ovidio INOVA Open Solutions s.r.l. Web : http://www.inovaos.it Tel.: 081 197 57 600 mail: fabiodovidio at gmail.com -------------- next part -------------- An embedded message was scrubbed... From: Fabio D'Ovidio Subject: Re: [Cartoweb-users] From Windows XP to CentOS Date: Mon, 28 Apr 2008 12:54:19 +0200 Size: 4525 URL: From Kyle.Wilcox at noaa.gov Mon Apr 28 07:06:03 2008 From: Kyle.Wilcox at noaa.gov (Kyle Wilcox) Date: Mon, 28 Apr 2008 10:06:03 -0400 Subject: [mapserver-users] multiple tiffs in one layer In-Reply-To: <4815D4C0.8000507@burken.hu> References: <4815D4C0.8000507@burken.hu> Message-ID: <4815D9CB.5020102@Noaa.gov> Each geotiff will need to be a layer. You can use the GROUP tag inside each of the layers to display them together. Attila Ber?nyi wrote: > Dear List, > > I'd like to know that is it possible to display separate geotiffs on one > layer? > Now I'm able to include more than one DATA line in the LAYER > specification, but only the last one is displayed.... > > Any help would be very much appreciated, > > Thanks, > > Attila > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Kyle Wilcox NOAA Chesapeake Bay Office 410 Severn Avenue Suite 107A Annapolis, MD 21403 office: (410) 295-3151 Kyle.Wilcox at noaa.gov A: It takes over twice as long to understand the conversation. Q: What's wrong with top-posting? A: Top-posting. Q: What's the worst thing about plain text email discussions? From yassefa at dmsolutions.ca Mon Apr 28 06:50:54 2008 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Mon, 28 Apr 2008 09:50:54 -0400 Subject: [mapserver-users] Large scale PDF output on Windows In-Reply-To: <4811F905.6050107@geoanalytic.com> References: <20080423113012.GS28031@42.dk> <20080423113824.GD26150@metacarta.com> <20080425092245.GL28031@42.dk> <4811F905.6050107@geoanalytic.com> Message-ID: <4815D63E.3050104@dmsolutions.ca> Brent, > > If there's enough interest, I'd be willing to contribute the code > changes he made if there's a Mapserver developer/committer willing to > review, upgrade them to v5,and test (and it may require an RFC as there > was a map file addition to OUTPUTFORMAT/FORMATOPTIONS, I think). > I would be willing to review/apply patches on this. I have created a bug on this http://trac.osgeo.org/mapserver/ticket/2596. Best Regards > Brent Fraser > > Kristian Thy wrote: >> On Thu, Apr 24, Flavio Hendry wrote: >>> Discussed the issue a while ago with Frank Warmerdam. He had less >>> problems on a LINUX System running on a 64bit machine (he supposes it >>> could go as high as 25'000 pixels). On Windows 32 it bangs at around >>> 10'000 to 14'000 pixels depending on content. Did not try on Windows 64. >> >> Thanks to advice from the list, I now have huge orthophoto pdfs. But now >> I have another problem - using png output, I get nice 24 bit images, but >> my pdf output is dithered 8 bit. The relevant part of my map file: >> >> IMAGETYPE png24 >> OUTPUTFORMAT >> NAME png >> MIMETYPE "image/png" >> DRIVER AGG/PNG >> EXTENSION png >> IMAGEMODE RGB >> TRANSPARENT FALSE >> END #outputformat >> OUTPUTFORMAT >> NAME pdf >> MIMETYPE "application/x-pdf" >> DRIVER pdf >> EXTENSION pdf >> IMAGEMODE RGB >> FORMATOPTION "OUTPUT_TYPE=RASTER" >> TRANSPARENT FALSE >> END #outputformat >> >> Removing the FORMATOPTION makes no difference. >> >> http://quovadis.dk/dl/ortho.png >> http://quovadis.dk/dl/ortho.pdf >> >> The commandline incantation used to produce the images: >> >> $ shp2img -m ddo.map -o ortho.pdf -s 1654 1169 -l DDO -e 659000 >> 6058000 663200 6060970 -i pdf >> >> Does the pdf driver support 24 bit at all? Can I do 24 bit pngs and >> assemble the pdfs by hand? >> >> \\kristian > _______________________________________________ > 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 thy at 42.dk Mon Apr 28 07:14:23 2008 From: thy at 42.dk (Kristian Thy) Date: Mon, 28 Apr 2008 16:14:23 +0200 Subject: [mapserver-users] multiple tiffs in one layer In-Reply-To: <4815D9CB.5020102@Noaa.gov> References: <4815D4C0.8000507@burken.hu> <4815D9CB.5020102@Noaa.gov> Message-ID: <20080428141423.GH31218@42.dk> On Mon, Apr 28, Kyle Wilcox wrote: > Each geotiff will need to be a layer. You can use the GROUP tag inside > each of the layers to display them together. > > Attila Ber?nyi wrote: > >Dear List, > > > >I'd like to know that is it possible to display separate geotiffs on one > >layer? > >Now I'm able to include more than one DATA line in the LAYER > >specification, but only the last one is displayed.... > > > >Any help would be very much appreciated, > > > >Thanks, > > > >Attila > -- > > Kyle Wilcox > NOAA Chesapeake Bay Office > 410 Severn Avenue > Suite 107A > Annapolis, MD 21403 > office: (410) 295-3151 > Kyle.Wilcox at noaa.gov > > A: It takes over twice as long to understand the conversation. > Q: What's wrong with top-posting? > A: Top-posting. > Q: What's the worst thing about plain text email discussions? I find it rather amusing that you not only top-post wrong information, but even have a signature saying the worst thing about email discussions is top-posting. As that other guy said, there's no need to make a layer per tiff. Just index them and use TILEINDEX. \\kristian -- ... et nemo ex vobis interrogat me: ?Quo vadis?? From aberenyi at burken.hu Mon Apr 28 08:24:45 2008 From: aberenyi at burken.hu (=?ISO-8859-1?Q?Attila_Ber=E9nyi?=) Date: Mon, 28 Apr 2008 17:24:45 +0200 Subject: [mapserver-users] multiple tiffs in one layer In-Reply-To: <200804281450.49036.yjacolin@free.fr> References: <4815D4C0.8000507@burken.hu> <200804281450.49036.yjacolin@free.fr> Message-ID: <4815EC3D.2020501@burken.hu> Dear topic participates, Thanks for all the answers, I think that TILEINDEX is more useful, because i dont wan't to have a GROUP with a lot of layers in it. Thanks again, Attila Jacolin Yves ?rta: > Le Monday 28 April 2008 15:44:32 Attila Ber?nyi, vous avez ?crit : > >> Dear List, >> >> I'd like to know that is it possible to display separate geotiffs on one >> layer? >> Now I'm able to include more than one DATA line in the LAYER >> specification, but only the last one is displayed.... >> >> Any help would be very much appreciated, >> >> Thanks, >> >> Attila >> > Hi, > > You can use TILEINDEX: > > LAYER > NAME "geosignal_5k" > GROUP geosignal > STATUS ON > TYPE RASTER > TILEINDEX "Referentiel/geosignal/IDF/5k/index.shp" > TILEITEM "Location" > ... > END > > GDAL-ogr could create the index shapefile with gdaltindex command. > > Regards, > > Y. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gisaalter at gmail.com Mon Apr 28 10:24:21 2008 From: gisaalter at gmail.com (Steven De Vriendt) Date: Mon, 28 Apr 2008 19:24:21 +0200 Subject: [mapserver-users] Open source metadata tools/alternatives Message-ID: <8d2ea9d70804281024r3917992x1cc1238bda824ad7@mail.gmail.com> Hi, I would like to turn this question to the Mapserver community as it is a community which will be involved in writing/keeping metadata. I would like to know if there are tools available to maintain metadata. I know Mapserver is a means to serve/retrieve spatial data layers, but I woudl like to know how do you keep guys keep metadata. Serving data is one thing, but keeping track of the metadata (source, quality, accuracy,...) is another. I would like to know if there are open-source tools available which allow me to write/keep metadata in accordance to the standards that are out there. Thanks Steven From diegoguidi at gmail.com Mon Apr 28 10:40:31 2008 From: diegoguidi at gmail.com (Diego Guidi) Date: Mon, 28 Apr 2008 19:40:31 +0200 Subject: [mapserver-users] Open source metadata tools/alternatives In-Reply-To: <8d2ea9d70804281024r3917992x1cc1238bda824ad7@mail.gmail.com> References: <8d2ea9d70804281024r3917992x1cc1238bda824ad7@mail.gmail.com> Message-ID: > I would like to know if there are open-source tools available which > allow me to write/keep > metadata in accordance to the standards that are out there. AFAIK the available opensource software that manages metadata are GeoNetwork (http://geonetwork-opensource.org/) and CATMDEdit (http://catmdedit.sourceforge.net/), but I'm unable to see how to integrate with mapserver. A brand new software that is currentry in beta stage is Metabeta (http://servizi.regione.toscana.it/sgr-iso19115/), but at this time is related to italian community. From lichte at icbm.de Mon Apr 28 10:48:02 2008 From: lichte at icbm.de (Oliver Lichte) Date: Mon, 28 Apr 2008 19:48:02 +0200 Subject: [mapserver-users] Open source metadata tools/alternatives In-Reply-To: <8d2ea9d70804281024r3917992x1cc1238bda824ad7@mail.gmail.com> References: <8d2ea9d70804281024r3917992x1cc1238bda824ad7@mail.gmail.com> Message-ID: <200804281948.02799.lichte@icbm.de> Hi Steven, this is what I found today. http://geonetwork-opensource.org/ Perhaps, what you are looking for? Regards, Oliver Am Montag 28 April 2008 19:24 schrieb Steven De Vriendt: > Hi, > > I would like to turn this question to the Mapserver community as it is > a community which > will be involved in writing/keeping metadata. I would like to know if > there are tools > available to maintain metadata. I know Mapserver is a means to > serve/retrieve spatial data layers, but I woudl like to know how do you > keep guys keep metadata. > Serving data is one thing, but keeping track of the metadata (source, > quality, accuracy,...) > is another. > I would like to know if there are open-source tools available which > allow me to write/keep > metadata in accordance to the standards that are out there. > > Thanks > Steven > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Diplom-Informatiker Carl-von-Ossietzky-Stra?e 9-11 AG Integrative Modellierung D-26129 Oldenburg Institut f?r Chemie und Biologie des Meeres Tel.: +49-441-798-3622 Fax: -3404 Carl-v.-Ossietzky Universit?t Oldenburg www.icbm.de/impulse From Tom.Kralidis at ec.gc.ca Mon Apr 28 11:43:23 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Mon, 28 Apr 2008 14:43:23 -0400 Subject: [mapserver-users] Open source metadata tools/alternatives References: <8d2ea9d70804281024r3917992x1cc1238bda824ad7@mail.gmail.com> Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F03BCC0C1@ecburexch1.ontario.int.ec.gc.ca> You can use these tools to manage your metadata, and, at least in GeoNetwork's case, you can publish them to a CS-W catalog. To integrate with MapServer, one idea is to set the LAYER/METADATA/ows_metadataurl_href value to that of a URL which will return the given metadata record (in FGDC, TC211, etc.). ..Tom -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org on behalf of Diego Guidi Sent: Mon 28-Apr-08 13:40 To: Steven De Vriendt Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Open source metadata tools/alternatives > I would like to know if there are open-source tools available which > allow me to write/keep > metadata in accordance to the standards that are out there. AFAIK the available opensource software that manages metadata are GeoNetwork (http://geonetwork-opensource.org/) and CATMDEdit (http://catmdedit.sourceforge.net/), but I'm unable to see how to integrate with mapserver. A brand new software that is currentry in beta stage is Metabeta (http://servizi.regione.toscana.it/sgr-iso19115/), but at this time is related to italian community. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Mon Apr 28 14:11:23 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 28 Apr 2008 16:11:23 -0500 Subject: [MAPSERVER-USERS] Mapserv problems on Fedora In-Reply-To: <16937360.post@talk.nabble.com> References: <4803C4E6.3010001@swoodbridge.com> <4803BC13.1060200@pobox.com> <4803DCF0.8070607@swoodbridge.com> <16894650.post@talk.nabble.com> <736671.95124.qm@web44805.mail.sp1.yahoo.com> <16937360.post@talk.nabble.com> Message-ID: <48163D7B.9080204@swoodbridge.com> Philippe, My regex crash was because of a bug in mapserver http://trac.osgeo.org/mapserver/ticket/2577#comment:8 which has been fixed now in svn. It was specifically related to a crash cause when AGG FORMATOPTION PALETTE= could not open . Hope this helps, -Steve W Philippe Kruschitz wrote: > >> You --must-- compile and install the last version of >> gd, the gd version on RHEL 5 and 5.1 is broken, also >> on centos and fedora core 8. >> >> Be sure to replace the old gd version on /usr/lib, >> also check the simlinks on /usr/lib, then run ldconfig >> as root. >> >> If you use mapserver with phpmapscript install php-gd >> with yum. >> >> Hope this helps. >> >> Saludos. >> >> -- >> Nahum Castro >> Leon, Guanajuato, Mexico >> http://www.leon-linux.com >> e-mail: pedro1_72 [en] yahoo [punto] com > > > I did pretty much everything you said before compiling mapserver (i didn't > have mapscript, though). > > I tried to to change the malloc value, as frank warmerdam suggested, with > exactly the same result as stephen woodbridge: the crash is fixed, but the > regular expression systematically fails..... > > Anyone has an idea? Did Stephen fixed it? > > Regards, > > Phil > > > > Quote S. Woodbridge: > > Hi Frank, > > Adding more to to the malloc fixed the crash, but the regex is failing > :( and should be ok: > > Breakpoint 1, msEvalRegex (e=0x4e9873 "\\.map$", > s=0x7232a0 "/u/data/maps/google-agg.map") at mapfile.c:79 > > ... > > 89 if(ms_regexec(&re, s, 0, NULL, 0) != 0) { /* no match */ > (gdb) p ms_regexec(&re, s, 0, 0, 0) > $1 = 1 > (gdb) c > Continuing. > Content-type: text/html > > > MapServer Message > > > msEvalRegex(): Regular expression error. String > (/u/data/maps/google-agg.map) failed expression test. > > Program exited normally. > > > This should NOT be happening. Arrrgh! > Anyone else using fc8 on a x86_84 box? > > -Steve > From aaron.d.hunt at gmail.com Mon Apr 28 15:17:06 2008 From: aaron.d.hunt at gmail.com (Aaron Hunt) Date: Mon, 28 Apr 2008 18:17:06 -0400 Subject: [mapserver-users] MapPoint Web Service and Mapserver Message-ID: <8c58032b0804281517x62fac824g1ea82ff8e0256ccb@mail.gmail.com> I am using Virtual Earth as the front end of a web system and mapserver as the mapping engine for the reports. Does anyone have any experence or know of any resouces that can help me use Mappoint web services with Mapserver? I want to use Mappoint for the background imagey so my PDF reports look like the map on the screen. Thanks for any help. -- Aaron D. Hunt -------------- next part -------------- An HTML attachment was scrubbed... URL: From p_kruschitz at hotmail.com Tue Apr 29 03:48:52 2008 From: p_kruschitz at hotmail.com (Philippe Kruschitz) Date: Tue, 29 Apr 2008 03:48:52 -0700 (PDT) Subject: [MAPSERVER-USERS] Mapserv problems on Fedora In-Reply-To: <48163D7B.9080204@swoodbridge.com> References: <4803C4E6.3010001@swoodbridge.com> <4803BC13.1060200@pobox.com> <4803DCF0.8070607@swoodbridge.com> <16894650.post@talk.nabble.com> <736671.95124.qm@web44805.mail.sp1.yahoo.com> <16937360.post@talk.nabble.com> <48163D7B.9080204@swoodbridge.com> Message-ID: <16957618.post@talk.nabble.com> Hi Steven, Thanks for the hint. I'm glad it worked for you, although I doubt this has anything to do with AGG. Usually, trying to access non-existent mapfiles throws a LoadMap error: msLoadMap(): Unable to access file. (/home/pk/gis/no.map) Trying with non-existent and working mapfiles (using GD rendering) always gets me the same error: [http://localhost/cgi-bin/mapserv?map=no.map] msEvalRegex(): Regular expression error. String (no.map) failed expression test. [http://localhost/cgi-bin/mapserv?map=/home/pk/gis/no.map] msEvalRegex(): Regular expression error. String (/home/pk/gis/no.map) failed expression test. [http://localhost/cgi-bin/mapserv?map=/home/pk/gis/test.map] msEvalRegex(): Regular expression error. String (/home/pk/gis/test.map) failed expression test. To be sure, I recompiled Mapserver without agg support, getting the same result. I'm slowly considering switching to an Ubuntu server, as I tried almost everything I could. By the way, how did you find out about your bug? Best regards, Philippe Stephen Woodbridge wrote: > > Philippe, > > My regex crash was because of a bug in mapserver > http://trac.osgeo.org/mapserver/ticket/2577#comment:8 > > which has been fixed now in svn. It was specifically related to a crash > cause when AGG FORMATOPTION PALETTE= could not open . > > Hope this helps, > -Steve W > > Philippe Kruschitz wrote: >> >>> You --must-- compile and install the last version of >>> gd, the gd version on RHEL 5 and 5.1 is broken, also >>> on centos and fedora core 8. >>> >>> Be sure to replace the old gd version on /usr/lib, >>> also check the simlinks on /usr/lib, then run ldconfig >>> as root. >>> >>> If you use mapserver with phpmapscript install php-gd >>> with yum. >>> >>> Hope this helps. >>> >>> Saludos. >>> >>> -- >>> Nahum Castro >>> Leon, Guanajuato, Mexico >>> http://www.leon-linux.com >>> e-mail: pedro1_72 [en] yahoo [punto] com >> >> >> I did pretty much everything you said before compiling mapserver (i >> didn't >> have mapscript, though). >> >> I tried to to change the malloc value, as frank warmerdam suggested, with >> exactly the same result as stephen woodbridge: the crash is fixed, but >> the >> regular expression systematically fails..... >> >> Anyone has an idea? Did Stephen fixed it? >> >> Regards, >> >> Phil >> >> >> >> Quote S. Woodbridge: >> >> Hi Frank, >> >> Adding more to to the malloc fixed the crash, but the regex is failing >> :( and should be ok: >> >> Breakpoint 1, msEvalRegex (e=0x4e9873 "\\.map$", >> s=0x7232a0 "/u/data/maps/google-agg.map") at mapfile.c:79 >> >> ... >> >> 89 if(ms_regexec(&re, s, 0, NULL, 0) != 0) { /* no match */ >> (gdb) p ms_regexec(&re, s, 0, 0, 0) >> $1 = 1 >> (gdb) c >> Continuing. >> Content-type: text/html >> >> >> MapServer Message >> >> >> msEvalRegex(): Regular expression error. String >> (/u/data/maps/google-agg.map) failed expression test. >> >> Program exited normally. >> >> >> This should NOT be happening. Arrrgh! >> Anyone else using fc8 on a x86_84 box? >> >> -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://www.nabble.com/Mapserv--problems-on-Fedora-tp16688820p16957618.html Sent from the Mapserver - User mailing list archive at Nabble.com. From p_kruschitz at hotmail.com Tue Apr 29 06:03:15 2008 From: p_kruschitz at hotmail.com (Philippe Kruschitz) Date: Tue, 29 Apr 2008 06:03:15 -0700 (PDT) Subject: [MAPSERVER-USERS] Mapserv problems on Fedora In-Reply-To: <16957618.post@talk.nabble.com> References: <4803C4E6.3010001@swoodbridge.com> <4803BC13.1060200@pobox.com> <4803DCF0.8070607@swoodbridge.com> <16894650.post@talk.nabble.com> <736671.95124.qm@web44805.mail.sp1.yahoo.com> <16937360.post@talk.nabble.com> <48163D7B.9080204@swoodbridge.com> <16957618.post@talk.nabble.com> Message-ID: <16959938.post@talk.nabble.com> Do you think overriding the default mapfile pattern ("\\.map$") by setting MS_MAPFILE_PATTERN could be a solution? (though I still don't get why the regular expression returns as false, the path in the URL obviously fits the default pattern...??) Philippe Philippe Kruschitz wrote: > > > Hi Steven, > > Thanks for the hint. I'm glad it worked for you, although I doubt this has > anything to do with AGG. > Usually, trying to access non-existent mapfiles throws a LoadMap error: > > msLoadMap(): Unable to access file. (/home/pk/gis/no.map) > > Trying with non-existent and working mapfiles (using GD rendering) always > gets me the same error: > > [http://localhost/cgi-bin/mapserv?map=no.map] > msEvalRegex(): Regular expression error. String (no.map) failed expression > test. > > [http://localhost/cgi-bin/mapserv?map=/home/pk/gis/no.map] > msEvalRegex(): Regular expression error. String (/home/pk/gis/no.map) > failed expression test. > > [http://localhost/cgi-bin/mapserv?map=/home/pk/gis/test.map] > msEvalRegex(): Regular expression error. String (/home/pk/gis/test.map) > failed expression test. > > > To be sure, I recompiled Mapserver without agg support, getting the same > result. > I'm slowly considering switching to an Ubuntu server, as I tried almost > everything I could. > > By the way, how did you find out about your bug? > > Best regards, > > Philippe > > > > > > Stephen Woodbridge wrote: >> >> Philippe, >> >> My regex crash was because of a bug in mapserver >> http://trac.osgeo.org/mapserver/ticket/2577#comment:8 >> >> which has been fixed now in svn. It was specifically related to a crash >> cause when AGG FORMATOPTION PALETTE= could not open . >> >> Hope this helps, >> -Steve W >> >> Philippe Kruschitz wrote: >>> >>>> You --must-- compile and install the last version of >>>> gd, the gd version on RHEL 5 and 5.1 is broken, also >>>> on centos and fedora core 8. >>>> >>>> Be sure to replace the old gd version on /usr/lib, >>>> also check the simlinks on /usr/lib, then run ldconfig >>>> as root. >>>> >>>> If you use mapserver with phpmapscript install php-gd >>>> with yum. >>>> >>>> Hope this helps. >>>> >>>> Saludos. >>>> >>>> -- >>>> Nahum Castro >>>> Leon, Guanajuato, Mexico >>>> http://www.leon-linux.com >>>> e-mail: pedro1_72 [en] yahoo [punto] com >>> >>> >>> I did pretty much everything you said before compiling mapserver (i >>> didn't >>> have mapscript, though). >>> >>> I tried to to change the malloc value, as frank warmerdam suggested, >>> with >>> exactly the same result as stephen woodbridge: the crash is fixed, but >>> the >>> regular expression systematically fails..... >>> >>> Anyone has an idea? Did Stephen fixed it? >>> >>> Regards, >>> >>> Phil >>> >>> >>> >>> Quote S. Woodbridge: >>> >>> Hi Frank, >>> >>> Adding more to to the malloc fixed the crash, but the regex is failing >>> :( and should be ok: >>> >>> Breakpoint 1, msEvalRegex (e=0x4e9873 "\\.map$", >>> s=0x7232a0 "/u/data/maps/google-agg.map") at mapfile.c:79 >>> >>> ... >>> >>> 89 if(ms_regexec(&re, s, 0, NULL, 0) != 0) { /* no match */ >>> (gdb) p ms_regexec(&re, s, 0, 0, 0) >>> $1 = 1 >>> (gdb) c >>> Continuing. >>> Content-type: text/html >>> >>> >>> MapServer Message >>> >>> >>> msEvalRegex(): Regular expression error. String >>> (/u/data/maps/google-agg.map) failed expression test. >>> >>> Program exited normally. >>> >>> >>> This should NOT be happening. Arrrgh! >>> Anyone else using fc8 on a x86_84 box? >>> >>> -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://www.nabble.com/Mapserv--problems-on-Fedora-tp16688820p16959938.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dmorissette at mapgears.com Tue Apr 29 07:39:15 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 29 Apr 2008 10:39:15 -0400 Subject: [MAPSERVER-USERS] Mapserv problems on Fedora In-Reply-To: <16959938.post@talk.nabble.com> References: <4803C4E6.3010001@swoodbridge.com> <4803BC13.1060200@pobox.com> <4803DCF0.8070607@swoodbridge.com> <16894650.post@talk.nabble.com> <736671.95124.qm@web44805.mail.sp1.yahoo.com> <16937360.post@talk.nabble.com> <48163D7B.9080204@swoodbridge.com> <16957618.post@talk.nabble.com> <16959938.post@talk.nabble.com> Message-ID: <48173313.9000509@mapgears.com> Sounds as if there might be two different copies of the regex library involved in the build, and the wrong one would be used at runtime and result in regex evaluations failing. This used to happen with PHP MapScript when MapServer was compiled with the system regex and PHP was compiled with its built-in regex. I realize that you are using mapserv in this case and not PHP MapScript so it's not related to PHP at all, but I would suggest that you look to make sure there is not another dependency in your build that pulls a second copy of regex into the mix. Daniel Philippe Kruschitz wrote: > > Do you think overriding the default mapfile pattern ("\\.map$") by setting > MS_MAPFILE_PATTERN could be a solution? > > (though I still don't get why the regular expression returns as false, > the path in the URL obviously fits the default pattern...??) > > Philippe > > > > Philippe Kruschitz wrote: >> >> Hi Steven, >> >> Thanks for the hint. I'm glad it worked for you, although I doubt this has >> anything to do with AGG. >> Usually, trying to access non-existent mapfiles throws a LoadMap error: >> >> msLoadMap(): Unable to access file. (/home/pk/gis/no.map) >> >> Trying with non-existent and working mapfiles (using GD rendering) always >> gets me the same error: >> >> [http://localhost/cgi-bin/mapserv?map=no.map] >> msEvalRegex(): Regular expression error. String (no.map) failed expression >> test. >> >> [http://localhost/cgi-bin/mapserv?map=/home/pk/gis/no.map] >> msEvalRegex(): Regular expression error. String (/home/pk/gis/no.map) >> failed expression test. >> >> [http://localhost/cgi-bin/mapserv?map=/home/pk/gis/test.map] >> msEvalRegex(): Regular expression error. String (/home/pk/gis/test.map) >> failed expression test. >> >> >> To be sure, I recompiled Mapserver without agg support, getting the same >> result. >> I'm slowly considering switching to an Ubuntu server, as I tried almost >> everything I could. >> >> By the way, how did you find out about your bug? >> >> Best regards, >> >> Philippe >> >> >> >> >> >> Stephen Woodbridge wrote: >>> Philippe, >>> >>> My regex crash was because of a bug in mapserver >>> http://trac.osgeo.org/mapserver/ticket/2577#comment:8 >>> >>> which has been fixed now in svn. It was specifically related to a crash >>> cause when AGG FORMATOPTION PALETTE= could not open . >>> >>> Hope this helps, >>> -Steve W >>> >>> Philippe Kruschitz wrote: >>>>> You --must-- compile and install the last version of >>>>> gd, the gd version on RHEL 5 and 5.1 is broken, also >>>>> on centos and fedora core 8. >>>>> >>>>> Be sure to replace the old gd version on /usr/lib, >>>>> also check the simlinks on /usr/lib, then run ldconfig >>>>> as root. >>>>> >>>>> If you use mapserver with phpmapscript install php-gd >>>>> with yum. >>>>> >>>>> Hope this helps. >>>>> >>>>> Saludos. >>>>> >>>>> -- >>>>> Nahum Castro >>>>> Leon, Guanajuato, Mexico >>>>> http://www.leon-linux.com >>>>> e-mail: pedro1_72 [en] yahoo [punto] com >>>> >>>> I did pretty much everything you said before compiling mapserver (i >>>> didn't >>>> have mapscript, though). >>>> >>>> I tried to to change the malloc value, as frank warmerdam suggested, >>>> with >>>> exactly the same result as stephen woodbridge: the crash is fixed, but >>>> the >>>> regular expression systematically fails..... >>>> >>>> Anyone has an idea? Did Stephen fixed it? >>>> >>>> Regards, >>>> >>>> Phil >>>> >>>> >>>> >>>> Quote S. Woodbridge: >>>> >>>> Hi Frank, >>>> >>>> Adding more to to the malloc fixed the crash, but the regex is failing >>>> :( and should be ok: >>>> >>>> Breakpoint 1, msEvalRegex (e=0x4e9873 "\\.map$", >>>> s=0x7232a0 "/u/data/maps/google-agg.map") at mapfile.c:79 >>>> >>>> ... >>>> >>>> 89 if(ms_regexec(&re, s, 0, NULL, 0) != 0) { /* no match */ >>>> (gdb) p ms_regexec(&re, s, 0, 0, 0) >>>> $1 = 1 >>>> (gdb) c >>>> Continuing. >>>> Content-type: text/html >>>> >>>> >>>> MapServer Message >>>> >>>> >>>> msEvalRegex(): Regular expression error. String >>>> (/u/data/maps/google-agg.map) failed expression test. >>>> >>>> Program exited normally. >>>> >>>> >>>> This should NOT be happening. Arrrgh! >>>> Anyone else using fc8 on a x86_84 box? >>>> >>>> -Steve >>>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> > -- Daniel Morissette http://www.mapgears.com/ From reh2 at prodigy.net Tue Apr 29 08:01:45 2008 From: reh2 at prodigy.net (ROBERT HOLLINGSWORTH) Date: Tue, 29 Apr 2008 08:01:45 -0700 (PDT) Subject: [mapserver-users] Re: MapPoint Web Service and Mapserver In-Reply-To: <20080429130319.6D099E01616@lists.osgeo.org> Message-ID: <553124.42572.qm@web80505.mail.mud.yahoo.com> In other words, you want to have Mapserver consume Mappoint and pass along the images along with Mapserver's own layers to a client app? Mappoint is SOAP-based? If so, what I'm doing with ESRI ArcWeb Services SOAP may be similar enough to what you're trying to do to be of interest. A couple years ago I added ArcWeb SOAP support directly to Mapserver 4.8.3. See "integration with SOAP-based web services?" Jan 2008 in Mapserver -dev for some explanatory details on that. Meanwhile, for a current project I decided it would be better to use PHP/Mapscript instead of adding directly to mapserv (.exe). I found something called "wsdl2php" which extends SoapClient. Run it on your wsdl file(s) and it generates a .php filled with classes and methods in support of your SOAP requests and replies and data types from the wsdl. In my case, a WMS client wants the results, so I have a place-holder LAYER in the mapfile, TYPE RASTER, TRANSFORM FALSE. I use clues in the mapfile plus the WMS request params to generate the SOAP request, then stuff the returned image into a raster file of the requested format so that mapserver will scoop it up as if it had been there all along. If you need any more details feel free to ask. Robert H. I am using Virtual Earth as the front end of a web system and mapserver as the mapping engine for the reports. Does anyone have any experence or know of any resouces that can help me use Mappoint web services with Mapserver? I want to use Mappoint for the background imagey so my PDF reports look like the map on the screen. Thanks for any help. -- Aaron D. Hunt -------------- next part -------------- An HTML attachment was scrubbed... URL: From aaron.d.hunt at gmail.com Tue Apr 29 10:18:09 2008 From: aaron.d.hunt at gmail.com (Aaron Hunt) Date: Tue, 29 Apr 2008 13:18:09 -0400 Subject: [mapserver-users] Re: MapPoint Web Service and Mapserver In-Reply-To: <553124.42572.qm@web80505.mail.mud.yahoo.com> References: <20080429130319.6D099E01616@lists.osgeo.org> <553124.42572.qm@web80505.mail.mud.yahoo.com> Message-ID: <8c58032b0804291018t2c815a29pe7ac56576dffaa21@mail.gmail.com> You are corrent. I problem is that I am not sure how to get the SOAP web service to work. I do not have much experence in this area. I guess I am looking for a script that can turn mappoint into a wms call for mapserver using Python/PHP/Perl. Do you have any examples that can get me started? Thanks Aaron On Tue, Apr 29, 2008 at 11:01 AM, ROBERT HOLLINGSWORTH wrote: > In other words, you want to have Mapserver consume Mappoint and pass along > the images along with Mapserver's own layers to a client app? > > Mappoint is SOAP-based? If so, what I'm doing with ESRI ArcWeb Services > SOAP may be similar enough to what you're trying to do to be of interest. > > A couple years ago I added ArcWeb SOAP support directly to Mapserver > 4.8.3. See "integration with SOAP-based web services?" Jan 2008 in > Mapserver -dev for some explanatory details on that. > > Meanwhile, for a current project I decided it would be better to use > PHP/Mapscript instead of adding directly to mapserv (.exe). I found > something called "wsdl2php" which extends SoapClient. Run it on your wsdl > file(s) and it generates a .php filled with classes and methods in support > of your SOAP requests and replies and data types from the wsdl. > > In my case, a WMS client wants the results, so I have a place-holder LAYER > in the mapfile, TYPE RASTER, TRANSFORM FALSE. I use clues in the mapfile > plus the WMS request params to generate the SOAP request, then stuff the > returned image into a raster file of the requested format so that mapserver > will scoop it up as if it had been there all along. > > If you need any more details feel free to ask. > > Robert H. > > > > I am using Virtual Earth as the front end of a web system and mapserver as > the mapping engine for the reports. Does anyone have any experence or know > of any resouces that can help me use Mappoint web services with Mapserver? I > want to use Mappoint for the background imagey so my PDF reports look like > the map on the screen. > > Thanks for any help. > > -- > Aaron D. Hunt > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Aaron D. Hunt -------------- next part -------------- An HTML attachment was scrubbed... URL: From clems_mars at hotmail.com Tue Apr 29 10:50:31 2008 From: clems_mars at hotmail.com (Clemiou) Date: Tue, 29 Apr 2008 17:50:31 +0000 Subject: [mapserver-users] OpenLayers & Projection Message-ID: Hi all! I come back here because I always have the same problem. So, I have a .ewc file which represent the France. This file is in Lambert II (French position, centered on France). Currently, I display this map with WGS84 projection but naturally, my map is distorded because this projection is centered on the equator. So, if I try to displaying my map with the Lambert II projection, I obtain the following figure: http://www.forumsig.org/attachment.php?attachmentid=2286&stc=1&d=1208951661 As you can see, there is a malfunction=> the repetition of a part of each tile. I tried to add projection and units options to my map but nothing change. I think that is a OpenLayers probleme because my map is correctly display with Mapserver and without OL. Perhaps someone here should help me. Thanks for your futur help and once more, excuse me for my English. Have a nice day Clement _________________________________________________________________ Cr?ez votre disque dur virtuel Windows Live SkyDrive, 5Go de stockage gratuit ! http://www.windowslive.fr/skydrive/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmm8 at Lehigh.EDU Tue Apr 29 10:53:45 2008 From: tmm8 at Lehigh.EDU (Tim McGeary) Date: Tue, 29 Apr 2008 13:53:45 -0400 Subject: [mapserver-users] installing PHP support Message-ID: <481760A9.7080809@lehigh.edu> Hi all, This is my first posting, and I am merely handling the installation and configuration of Mapserver on a CentOS Linux 4.5 server. We want to use the PHP configuration, but I cannot re-complile PHP on this server. It has been installed from the OS install, and updated using yum. I gave the directory for which include files should go to for the PHP option, but the configuration didn't like that because it could find "config.h or php_config.h". Anyone out there installed the PHP option this way or advice as to how to move forward? Thanks, Tim -- Tim McGeary Senior Systems Specialist Lehigh University 610-758-4998 tim.mcgeary at lehigh.edu Google Talk: timmcgeary Yahoo IM: timmcgeary From tmm8 at Lehigh.EDU Tue Apr 29 10:03:50 2008 From: tmm8 at Lehigh.EDU (Tim McGeary) Date: Tue, 29 Apr 2008 13:03:50 -0400 Subject: [mapserver-users] installing PHP support Message-ID: <481754F6.5010608@lehigh.edu> Hi all, This is my first posting, and I am merely handling the installation and configuration of Mapserver on a CentOS Linux 4.5 server. We want to use the PHP configuration, but I cannot re-complile PHP on this server. It has been installed from the OS install, and updated using yum. I gave the directory for which include files should go to for the PHP option, but the configuration didn't like that because it could find "config.h or php_config.h". Anyone out there installed the PHP option this way or advice as to how to move forward? Thanks, Tim -- Tim McGeary Senior Systems Specialist Lehigh University 610-758-4998 tim.mcgeary at lehigh.edu Google Talk: timmcgeary Yahoo IM: timmcgeary From jlacroix at mapgears.com Tue Apr 29 12:43:32 2008 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Tue, 29 Apr 2008 15:43:32 -0400 Subject: [mapserver-users] OpenLayers & Projection In-Reply-To: References: Message-ID: <48177A64.8030506@mapgears.com> Hi, You can take a look at how projection are set in OpenLayers: http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#Projections Or at the Source of the OpenLayers projection example: http://www.openlayers.org/dev/examples/projected-map.html You will also need to define the PROJECTION block at the layer level and at the map level in your mapfile. Julien PS: Please provide revelent mapfile part and revelent code when asking a question it will help us figuring out what may be your problem. Clemiou wrote: > Hi all! > > I come back here because I always have the same problem. > So, I have a .ewc file which represent the France. This file is in Lambert II (French position, centered on France). > Currently, I display this map with WGS84 projection but naturally, my map is distorded because this projection is centered on the equator. > So, if I try to displaying my map with the Lambert II projection, I obtain the following figure: > > http://www.forumsig.org/attachment.php?attachmentid=2286&stc=1&d=1208951661 > > As you can see, there is a malfunction=> the repetition of a part of each tile. > > I tried to add projection and units options to my map but nothing change. I think that is a OpenLayers probleme because my map is correctly display with Mapserver and without OL. > Perhaps someone here should help me. > > Thanks for your futur help and once more, excuse me for my English. > > Have a nice day > > Clement > > > ------------------------------------------------------------------------ > Plus de 15 millions de fran?ais utilisent Windows Live Messenger ! > T?l?chargez Messenger, c'est gratuit ! > > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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 clems_mars at hotmail.com Tue Apr 29 12:46:50 2008 From: clems_mars at hotmail.com (Clemiou) Date: Tue, 29 Apr 2008 19:46:50 +0000 Subject: [mapserver-users] OpenLayers & Projection In-Reply-To: <48177A64.8030506@mapgears.com> References: <48177A64.8030506@mapgears.com> Message-ID: Hi! I provide you my OpenLayers code. function init() { OpenLayers.DOTS_PER_INCH = 72; // --------------------------------------------------------------------------// // Tableau des options pour la carte. // // La plus importante est scales qui permet de definir les diff?rents zooms // // qui seront disponibles pour l'utilisateur. // // --------------------------------------------------------------------------// var options = { scales: [3500000, 3000000,2500000,2000000,1500000,1000000,350000,250000], maxScale: 250000, minScale: 3500000, controls: [new OpenLayers.Control.MouseDefaults()] }; // -------------------------// // Cr?ation de l'objet map. // // -------------------------// map = new OpenLayers.Map( 'map',options); // ----------------------------------------------// // On ajoute les couches apr?s les avoir cr??es. // // ----------------------------------------------// layer = new OpenLayers.Layer.MapServer( "OpenLayers WMS", "http://localhost/cgi-bin/mapserv?mode=map&map=/var/www/html/ms/map_files/france.map", {layers: ['FRANCE','CORSE']}, {gutter: 0 }); map.addLayer(layer); } // -----------------------------------------------------------------------// // Ajout de la barre de zoom et des coordonn?es de la position actuelle. // // -----------------------------------------------------------------------// map.addControl( new OpenLayers.Control.PanZoomBar() ); // ------------------------------// // Ajout de la gestion du click. // // ------------------------------// var click = new OpenLayers.Control.Click(); map.addControl(click); click.activate(); // ---------------------------------------------------------------------------// // Et on d?finit le centre de notre carte, afin qu'elle sot bien positionn?e. // // ---------------------------------------------------------------------------// map.setCenter(new OpenLayers.LonLat(lon, lat), zoom); And my mapfile has the good projections block, one for the map and one for each layer. Consequently, it works with mapserver & without OL. Regards. Clement > Date: Tue, 29 Apr 2008 15:43:32 -0400 > From: jlacroix at mapgears.com > To: clems_mars at hotmail.com > CC: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] OpenLayers & Projection > > Hi, > > You can take a look at how projection are set in OpenLayers: > > http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#Projections > > Or at the Source of the OpenLayers projection example: > http://www.openlayers.org/dev/examples/projected-map.html > > You will also need to define the PROJECTION block at the layer level and > at the map level in your mapfile. > > Julien > > PS: Please provide revelent mapfile part and revelent code when asking a > question it will help us figuring out what may be your problem. > > Clemiou wrote: > > Hi all! > > > > I come back here because I always have the same problem. > > So, I have a .ewc file which represent the France. This file is in Lambert II (French position, centered on France). > > Currently, I display this map with WGS84 projection but naturally, my map is distorded because this projection is centered on the equator. > > So, if I try to displaying my map with the Lambert II projection, I obtain the following figure: > > > > http://www.forumsig.org/attachment.php?attachmentid=2286&stc=1&d=1208951661 > > > > As you can see, there is a malfunction=> the repetition of a part of each tile. > > > > I tried to add projection and units options to my map but nothing change. I think that is a OpenLayers probleme because my map is correctly display with Mapserver and without OL. > > Perhaps someone here should help me. > > > > Thanks for your futur help and once more, excuse me for my English. > > > > Have a nice day > > > > Clement > > > > > > ------------------------------------------------------------------------ > > Plus de 15 millions de fran?ais utilisent Windows Live Messenger ! > > T?l?chargez Messenger, c'est gratuit ! > > > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > 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/ _________________________________________________________________ D?couvrez les profils Messenger de vos amis ! http://home.services.spaces.live.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlacroix at mapgears.com Tue Apr 29 13:13:07 2008 From: jlacroix at mapgears.com (Julien-Samuel Lacroix) Date: Tue, 29 Apr 2008 16:13:07 -0400 Subject: [mapserver-users] OpenLayers & Projection In-Reply-To: References: <48177A64.8030506@mapgears.com> Message-ID: <48178153.6090307@mapgears.com> Hi, Since your problem is related to OpenLayers you may get more help from the OpenLayers Users mailing-list. Anyway, to have OpenLayers call the right projection use (replace EPSG:12345 by your actual projection code): var options = { scales: [3500000, 3000000,2500000,2000000,1500000,1000000,350000,250000], maxScale: 250000, minScale: 3500000, projection:"EPSG:12345", displayProjection: "EPSG:4326", units: "m", controls: [new OpenLayers.Control.MouseDefaults()] }; Julien Clemiou wrote: > Hi! > > I provide you my OpenLayers code. > > function init() > { > OpenLayers.DOTS_PER_INCH = 72; > > // --------------------------------------------------------------------------// > // Tableau des options pour la carte. // > // La plus importante est scales qui permet de definir les diff?rents zooms // > // qui seront disponibles pour l'utilisateur. // > // --------------------------------------------------------------------------// > > var options = > { > scales: [3500000, 3000000,2500000,2000000,1500000,1000000,350000,250000], > maxScale: 250000, > minScale: 3500000, > controls: [new OpenLayers.Control.MouseDefaults()] > }; > > // -------------------------// > // Cr?ation de l'objet map. // > // -------------------------// > > map = new OpenLayers.Map( 'map',options); > > // ----------------------------------------------// > // On ajoute les couches apr?s les avoir cr??es. // > // ----------------------------------------------// > > layer = new OpenLayers.Layer.MapServer( "OpenLayers WMS", > "http://localhost/cgi-bin/mapserv?mode=map&map=/var/www/html/ms/map_files/france.map", {layers: ['FRANCE','CORSE']}, > {gutter: 0 }); > > map.addLayer(layer); > > > } > > // -----------------------------------------------------------------------// > // Ajout de la barre de zoom et des coordonn?es de la position actuelle. // > // -----------------------------------------------------------------------// > > map.addControl( new OpenLayers.Control.PanZoomBar() ); > > // ------------------------------// > // Ajout de la gestion du click. // > // ------------------------------// > > var click = new OpenLayers.Control.Click(); > map.addControl(click); > click.activate(); > > // ---------------------------------------------------------------------------// > // Et on d?finit le centre de notre carte, afin qu'elle sot bien positionn?e. // > // ---------------------------------------------------------------------------// > > map.setCenter(new OpenLayers.LonLat(lon, lat), zoom); > > > > And my mapfile has the good projections block, one for the map and one > for each layer. Consequently, it works with mapserver & without OL. > > Regards. > > Clement > > > > ------------------------------------------------------------------------ > > Date: Tue, 29 Apr 2008 15:43:32 -0400 > > From: jlacroix at mapgears.com > > To: clems_mars at hotmail.com > > CC: mapserver-users at lists.osgeo.org > > Subject: Re: [mapserver-users] OpenLayers & Projection > > > > Hi, > > > > You can take a look at how projection are set in OpenLayers: > > > > http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#Projections > > > > Or at the Source of the OpenLayers projection example: > > http://www.openlayers.org/dev/examples/projected-map.html > > > > You will also need to define the PROJECTION block at the layer level and > > at the map level in your mapfile. > > > > Julien > > > > PS: Please provide revelent mapfile part and revelent code when asking a > > question it will help us figuring out what may be your problem. > > > > Clemiou wrote: > > > Hi all! > > > > > > I come back here because I always have the same problem. > > > So, I have a .ewc file which represent the France. This file is in > Lambert II (French position, centered on France). > > > Currently, I display this map with WGS84 projection but naturally, > my map is distorded because this projection is centered on the equator. > > > So, if I try to displaying my map with the Lambert II projection, I > obtain the following figure: > > > > > > > http://www.forumsig.org/attachment.php?attachmentid=2286&stc=1&d=1208951661 > > > > > > > As you can see, there is a malfunction=> the repetition of a part > of each tile. > > > > > > I tried to add projection and units options to my map but nothing > change. I think that is a OpenLayers probleme because my map is > correctly display with Mapserver and without OL. > > > Perhaps someone here should help me. > > > > > > Thanks for your futur help and once more, excuse me for my English. > > > > > > Have a nice day > > > > > > Clement > > > > > > > > > > ------------------------------------------------------------------------ > > > Plus de 15 millions de fran?ais utilisent Windows Live Messenger ! > > > T?l?chargez Messenger, c'est gratuit ! > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > _______________________________________________ > > > 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/ > > ------------------------------------------------------------------------ > Centralisez tous vos comptes mails dans Hotmail ! Cr?ez un compte > Hotmail, c'est gratuit ! -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From lxs5945 at gmail.com Tue Apr 29 23:18:37 2008 From: lxs5945 at gmail.com (lxs5945) Date: Wed, 30 Apr 2008 14:18:37 +0800 Subject: [mapserver-users] move and print the map with mapserver Message-ID: <200804301418257500819@gmail.com> I have two question about mapserver ,is there anyone can give me some advice about this? 1?Is there any function in mapserver to make we can move the map to where we want to? 2?Is there any function in mapserver to make we can print the map we want in mapserver? any idea about this will be welcome! wish your reply ,and thank you very much! 2008-04-30 lxs5945 -------------- next part -------------- An HTML attachment was scrubbed... URL: From fabiodovidio at gmail.com Wed Apr 30 00:47:25 2008 From: fabiodovidio at gmail.com (Fabio D'Ovidio) Date: Wed, 30 Apr 2008 09:47:25 +0200 Subject: [mapserver-users] installing PHP support In-Reply-To: <481760A9.7080809@lehigh.edu> References: <481760A9.7080809@lehigh.edu> Message-ID: <4818240D.2000201@gmail.com> Hi!! I've installed PHP5.1.6, MapServer and PHP\Mapscript recently and successfully on CentOS5.. May be you could be a "ln -s ..." command to your file from your directory...... Tim McGeary ha scritto: > Hi all, > > This is my first posting, and I am merely handling the installation and > configuration of Mapserver on a CentOS Linux 4.5 server. > > We want to use the PHP configuration, but I cannot re-complile PHP on > this server. It has been installed from the OS install, and updated > using yum. I gave the directory for which include files should go to > for the PHP option, but the configuration didn't like that because it > could find "config.h or php_config.h". > > Anyone out there installed the PHP option this way or advice as to how > to move forward? > > Thanks, > Tim > -- Ing. Fabio D'Ovidio INOVA Open Solutions s.r.l. Web : http://www.inovaos.it Tel.: 081 197 57 600 mail: fabiodovidio at gmail.com From urry at swemel.ru Wed Apr 30 02:50:14 2008 From: urry at swemel.ru (=?windows-1251?Q?=C1=F3=F5=E0=F0=EA=E8=ED_=DE=F0=E8=E9?=) Date: Wed, 30 Apr 2008 13:50:14 +0400 Subject: [mapserver-users] Some problem with SDE9.2-building. Message-ID: <4BAED819D0316147BDF49D57CCF1DCEB09D1A4@S-FILES> Hello,All! I have SunSolaris 10u4 Sparc with installed ArcSDE 9.2. ArcGis Server v9.2 works with tis SDE-installation smoothly, but when I tryinng to build mapserver "--with sde=/opt/aims/arcsde/sdeexe92" and "--with-sde-version=92" but configure failed with message "Could not find sdetype.h or libsde.a/libsde.so in =/opt/aims/arcsde/sdeexe92" I tried to set "...sde=/opt/aims/arcsde/sdeexe92/lib"- The same result! But libsde.so is really in =/opt/aims/arcsde/sdeexe92/! Static libsde.a is absent. Do I really need both static& shared libsde versions? And what about sdetype.h? Sincerely Yours Buharkin Y.A. -------------- next part -------------- An HTML attachment was scrubbed... URL: From p_kruschitz at hotmail.com Wed Apr 30 05:36:09 2008 From: p_kruschitz at hotmail.com (Philippe Kruschitz) Date: Wed, 30 Apr 2008 05:36:09 -0700 (PDT) Subject: [MAPSERVER-USERS] Mapserv problems on Fedora In-Reply-To: <48173313.9000509@mapgears.com> References: <4803C4E6.3010001@swoodbridge.com> <4803BC13.1060200@pobox.com> <4803DCF0.8070607@swoodbridge.com> <16894650.post@talk.nabble.com> <736671.95124.qm@web44805.mail.sp1.yahoo.com> <16937360.post@talk.nabble.com> <48163D7B.9080204@swoodbridge.com> <16957618.post@talk.nabble.com> <16959938.post@talk.nabble.com> <48173313.9000509@mapgears.com> Message-ID: <16981445.post@talk.nabble.com> It worked! Thank you list.... There was, indeed, a second regex library involved. The first time I tried to compile Mapserver, I relied on a 1.4.2 GDAL package from the EPEL Repository. This package used the POSIX library, 'librx', which wasn't removed when I later uninstalled the GDAL package to compile it myself. For some obscure reasons, building GDAL from source used 'librx' instead of the system regex?... It would only work after I completely removed the POSIX library. I don't need librx, but I was wondering if this was a normal behaviour? Should I post it to the GDAL list? Thanks again, Philippe Daniel Morissette-2 wrote: > > Sounds as if there might be two different copies of the regex library > involved in the build, and the wrong one would be used at runtime and > result in regex evaluations failing. This used to happen with PHP > MapScript when MapServer was compiled with the system regex and PHP was > compiled with its built-in regex. I realize that you are using mapserv > in this case and not PHP MapScript so it's not related to PHP at all, > but I would suggest that you look to make sure there is not another > dependency in your build that pulls a second copy of regex into the mix. > > Daniel > > Philippe Kruschitz wrote: >> >> Do you think overriding the default mapfile pattern ("\\.map$") by >> setting >> MS_MAPFILE_PATTERN could be a solution? >> >> (though I still don't get why the regular expression returns as false, >> the path in the URL obviously fits the default pattern...??) >> >> Philippe >> >> >> >> Philippe Kruschitz wrote: >>> >>> Hi Steven, >>> >>> Thanks for the hint. I'm glad it worked for you, although I doubt this >>> has >>> anything to do with AGG. >>> Usually, trying to access non-existent mapfiles throws a LoadMap error: >>> >>> msLoadMap(): Unable to access file. (/home/pk/gis/no.map) >>> >>> Trying with non-existent and working mapfiles (using GD rendering) >>> always >>> gets me the same error: >>> >>> [http://localhost/cgi-bin/mapserv?map=no.map] >>> msEvalRegex(): Regular expression error. String (no.map) failed >>> expression >>> test. >>> >>> [http://localhost/cgi-bin/mapserv?map=/home/pk/gis/no.map] >>> msEvalRegex(): Regular expression error. String (/home/pk/gis/no.map) >>> failed expression test. >>> >>> [http://localhost/cgi-bin/mapserv?map=/home/pk/gis/test.map] >>> msEvalRegex(): Regular expression error. String (/home/pk/gis/test.map) >>> failed expression test. >>> >>> >>> To be sure, I recompiled Mapserver without agg support, getting the same >>> result. >>> I'm slowly considering switching to an Ubuntu server, as I tried almost >>> everything I could. >>> >>> By the way, how did you find out about your bug? >>> >>> Best regards, >>> >>> Philippe >>> >>> >>> >>> >>> >>> Stephen Woodbridge wrote: >>>> Philippe, >>>> >>>> My regex crash was because of a bug in mapserver >>>> http://trac.osgeo.org/mapserver/ticket/2577#comment:8 >>>> >>>> which has been fixed now in svn. It was specifically related to a crash >>>> cause when AGG FORMATOPTION PALETTE= could not open . >>>> >>>> Hope this helps, >>>> -Steve W >>>> >>>> Philippe Kruschitz wrote: >>>>>> You --must-- compile and install the last version of >>>>>> gd, the gd version on RHEL 5 and 5.1 is broken, also >>>>>> on centos and fedora core 8. >>>>>> >>>>>> Be sure to replace the old gd version on /usr/lib, >>>>>> also check the simlinks on /usr/lib, then run ldconfig >>>>>> as root. >>>>>> >>>>>> If you use mapserver with phpmapscript install php-gd >>>>>> with yum. >>>>>> >>>>>> Hope this helps. >>>>>> >>>>>> Saludos. >>>>>> >>>>>> -- >>>>>> Nahum Castro >>>>>> Leon, Guanajuato, Mexico >>>>>> http://www.leon-linux.com >>>>>> e-mail: pedro1_72 [en] yahoo [punto] com >>>>> >>>>> I did pretty much everything you said before compiling mapserver (i >>>>> didn't >>>>> have mapscript, though). >>>>> >>>>> I tried to to change the malloc value, as frank warmerdam suggested, >>>>> with >>>>> exactly the same result as stephen woodbridge: the crash is fixed, but >>>>> the >>>>> regular expression systematically fails..... >>>>> >>>>> Anyone has an idea? Did Stephen fixed it? >>>>> >>>>> Regards, >>>>> >>>>> Phil >>>>> >>>>> >>>>> >>>>> Quote S. Woodbridge: >>>>> >>>>> Hi Frank, >>>>> >>>>> Adding more to to the malloc fixed the crash, but the regex is failing >>>>> :( and should be ok: >>>>> >>>>> Breakpoint 1, msEvalRegex (e=0x4e9873 "\\.map$", >>>>> s=0x7232a0 "/u/data/maps/google-agg.map") at mapfile.c:79 >>>>> >>>>> ... >>>>> >>>>> 89 if(ms_regexec(&re, s, 0, NULL, 0) != 0) { /* no match */ >>>>> (gdb) p ms_regexec(&re, s, 0, 0, 0) >>>>> $1 = 1 >>>>> (gdb) c >>>>> Continuing. >>>>> Content-type: text/html >>>>> >>>>> >>>>> MapServer Message >>>>> >>>>> >>>>> msEvalRegex(): Regular expression error. String >>>>> (/u/data/maps/google-agg.map) failed expression test. >>>>> >>>>> Program exited normally. >>>>> >>>>> >>>>> This should NOT be happening. Arrrgh! >>>>> Anyone else using fc8 on a x86_84 box? >>>>> >>>>> -Steve >>>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>> >> > > > -- > Daniel Morissette > http://www.mapgears.com/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Mapserv--problems-on-Fedora-tp16688820p16981445.html Sent from the Mapserver - User mailing list archive at Nabble.com. From yatendra.jaiswal at gmail.com Wed Apr 30 07:31:36 2008 From: yatendra.jaiswal at gmail.com (yatendra) Date: Wed, 30 Apr 2008 07:31:36 -0700 (PDT) Subject: [MAPSERVER-USERS] How TO change color of a layer using mapscript(without editing mapfile) Message-ID: <16983974.post@talk.nabble.com> Hi friends, I am using asp.net to develop application on mapserver. I want to change layer color available in my mapfile. Is it possible to change layer color without editing layer in mapfile? What function do i need to use to do this? Can i give unique value to each feature? Is it also possible? Please reply if any one know regarding this. any idea will also be helpful to me... Thanks regards -- View this message in context: http://www.nabble.com/How-TO-change-color-of-a-layer-using-mapscript%28without-editing-mapfile%29-tp16983974p16983974.html Sent from the Mapserver - User mailing list archive at Nabble.com. From yatendra.jaiswal at gmail.com Wed Apr 30 07:39:24 2008 From: yatendra.jaiswal at gmail.com (yatendra) Date: Wed, 30 Apr 2008 07:39:24 -0700 (PDT) Subject: [MAPSERVER-USERS] How to get attribute value using mapscript(asp.net)? Message-ID: <16984113.post@talk.nabble.com> Hi friends, I am using asp.net. I am able to get layerobj items(attribute column name) in drop down list. by using "layerobj.numitems"(attribute column name) Now i want to find all attribute values for selected "layerobj.item" . Please reply me how t oget attribute values and add them to dropdownbox. Thanks regards -- View this message in context: http://www.nabble.com/How-to-get-attribute-value-using-mapscript%28asp.net%29--tp16984113p16984113.html Sent from the Mapserver - User mailing list archive at Nabble.com. From lxs5945 at gmail.com Wed Apr 30 07:39:50 2008 From: lxs5945 at gmail.com (=?GB2312?B?wO7P/sm9?=) Date: Wed, 30 Apr 2008 22:39:50 +0800 Subject: [mapserver-users] print the image in imagebutton Message-ID: <1c56dbfd0804300739m27e408efu1ff215777262d1d8@mail.gmail.com> hi friends, I am using asp.net(c#) to develop web application on mapserver. I want to print the image in the imagebutton, is there any method can do this ? any idea for this will be helpful to me thanks regards! -------------- next part -------------- An HTML attachment was scrubbed... URL: From c.pelliconi at sis-ter.it Wed Apr 30 07:49:54 2008 From: c.pelliconi at sis-ter.it (Carlo Pelliconi) Date: Wed, 30 Apr 2008 16:49:54 +0200 Subject: [MAPSERVER-USERS] How TO change color of a layer using mapscript(without editing mapfile) In-Reply-To: <16983974.post@talk.nabble.com> References: <16983974.post@talk.nabble.com> Message-ID: <48188712.7050703@sis-ter.it> This is PHP but you can use the same steps: Find your target layer: $layer = $map->getLayerByName( "Target" ); Define a class in target layer: $class = ms_newClassObj( $layer ); Define a style in that class: $style = ms_newStyleObj( $class ); Set colors for your style: $style->color->setRGB( 255, 0, 0 ); $style->outlinecolor->setRGB( 255, 0, 0 ); Hope this helps Bye, Carlo yatendra ha scritto: > Hi friends, > I am using asp.net to develop application on mapserver. > I want to change layer color available in my mapfile. > Is it possible to change layer color without editing layer in mapfile? > What function do i need to use to do this? > Can i give unique value to each feature? > Is it also possible? > Please reply if any one know regarding this. > any idea will also be helpful to me... > Thanks regards > -- ing. Carlo Pelliconi c.pelliconi at sis-ter.it SIS.TER S.p.A. www.sis-ter.it via Mentana, 10 40026 Imola (BO) Italy tel +39 0542 364034 fax +39 0542 612130 ATTENZIONE! Questo documento ? indirizzato esclusivamente al destinatario. Tutte le informazioni ivi contenute, compresi eventuali allegati, sono soggette a riservatezza secondo i termini del D.Lgs. 196/2003 in materia di "privacy" e ne ? proibita l'utilizzazione da parte di altri soggetti. Si ricorda che la diffusione l'utilizzo e/o la conservazione dei dati ricevuti per errore costituisce violazione di carattere penale ai sensi dell'art. 616 Codice penale (Violazione, sottrazione e soppressione di corrispondenza). Se avesse ricevuto per errore questo messaggio, La preghiamo cortesemente di contattare il mittente al pi? presto e di cancellare il messaggio subito dopo. Grazie. ATTENTION! This message is being sent from Sis.Ter S.p.A. and may contain information which is confidential or privileged. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. Any unauthorized use of the content of this message is a breach of your duty to respect the confidentiality of the correspondence between other persons and can expose the responsible party to civil and/or criminal penalties (D.Lgs. 196/2003 "Tutela della privacy" e art. 616 Codice penale "Violazione, sottrazione e soppressione di corrispondenza"), and may constitute a more serious offence. Thanks. ACHTUNG! Dieses Dokument ist ausschlie?lich dem Empf?nger vorbehalten. Die darin enthaltenen Informationen, auch jene in etwaigen Anlagen, gelten im Sinne des Dekrets Nr. 196/2003 in Sachen "Privacy" als streng vertraulich und d?rfen von anderen Personen nicht verwende werden. Wer diese Mitteilung irrt?mlicherweise erh?lt ist gebeten uns umgehend zu informieren und anschlie?end die Mitteilung zu vernichten. Vielen Dank. From Bob.Bruce at gov.mb.ca Wed Apr 30 09:08:44 2008 From: Bob.Bruce at gov.mb.ca (Bruce, Bob (CON)) Date: Wed, 30 Apr 2008 11:08:44 -0500 Subject: [mapserver-users] installing PHP support In-Reply-To: <481754F6.5010608@lehigh.edu> References: <481754F6.5010608@lehigh.edu> Message-ID: <2D7230119FDBCE4DB0984678195B920033B9CD@OC1EX04.ME.MBGOV.CA> Hi Tim: install the development package of PHP and then search for php_config.h (find / -name "php_config.h") I believe that it is in /usr/include/php/main then use the extension --with_php=(parent PHP directory - not the one that the php_config.h file is in). Bob Bruce -----Original Message----- From: Tim McGeary [mailto:tmm8 at Lehigh.EDU] Sent: Tuesday, 29 April, 2008 12:04 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] installing PHP support Hi all, This is my first posting, and I am merely handling the installation and configuration of Mapserver on a CentOS Linux 4.5 server. We want to use the PHP configuration, but I cannot re-complile PHP on this server. It has been installed from the OS install, and updated using yum. I gave the directory for which include files should go to for the PHP option, but the configuration didn't like that because it could find "config.h or php_config.h". Anyone out there installed the PHP option this way or advice as to how to move forward? Thanks, Tim -- Tim McGeary Senior Systems Specialist Lehigh University 610-758-4998 tim.mcgeary at lehigh.edu Google Talk: timmcgeary Yahoo IM: timmcgeary From row3 at Lehigh.EDU Wed Apr 30 09:32:57 2008 From: row3 at Lehigh.EDU (Robert Weidman) Date: Wed, 30 Apr 2008 12:32:57 -0400 Subject: [mapserver-users] php_mapscript.so library Message-ID: <48189F39.7070400@lehigh.edu> Hi, Tim McGeary posted recently regarding installing PHP\Mapscript (see below). We thought he had succeeded in installing it. However, I am now trying to use pmapper and it is unable to find the php_mapscript.so library. What steps do we need to take to get this library on the server? Thanks for your help! -Rob- Rob Weidman Digital Library Technical Coordinator Lehigh University row3 at lehigh.edu 610-758-3043 Tim McGeary wrote: > Hi all, > > This is my first posting, and I am merely handling the installation and > configuration of Mapserver on a CentOS Linux 4.5 server. > > We want to use the PHP configuration, but I cannot re-complile PHP on > this server. It has been installed from the OS install, and updated > using yum. I gave the directory for which include files should go to > for the PHP option, but the configuration didn't like that because it > could find "config.h or php_config.h". > > Anyone out there installed the PHP option this way or advice as to how > to move forward? > > Thanks, > Tim From richard.greenwood at gmail.com Wed Apr 30 19:57:50 2008 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Wed, 30 Apr 2008 20:57:50 -0600 Subject: [mapserver-users] OpenLayers + dBox + Postgres text search Message-ID: Apologies for the cross post to people with crowded mail boxes. I've been working on an OpenLayers site that incorporates the dBox tree legend that is popular with many MapServer users. dBox is based on YUI and was developed by Steve Lime and others at the Minnesota DNR. The site is still pretty sloppy but may be of interest: http://www2.tetonwyo.org/mapserver/ol.html Also of possible interest is the use of the new PostgreSQL 8.3 full text search. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com