From e.witteveen at HAWARIT.COM Wed Feb 1 02:08:29 2006 From: e.witteveen at HAWARIT.COM (Eduard Witteveen) Date: Wed, 1 Feb 2006 11:08:29 +0100 Subject: Adding user specific layers(dynamically) In-Reply-To: <43CFB7CF.4000501@HAWARIT.COM> Message-ID: Currently i'm working on a way to provide the user the possibility to define his own layer in mapserver. Basically this means that the user can define a sql query and provide a theme which defines the way it is shown in the map(the class information from the layer) For this i first tried to make a mapfile which used database values for the "keys", apparently this could not be done. Currently i'm writing a wms-server in php, since i want to add layer information to the result(it needs a additional query and style parameter that create a new layer, further it just works like a "normal" wms-server). I have the idea that i'm not solving this problem the correct way. Can anyone give me some pointers on this? -- Ing. Eduard Yeb Witteveen Software Engineer Hawar Information Technology bv lid Dijkoraad Groep De Wymerts 7 8701 WT Bolsward Tel: +31 (0)515 570333 Fax: +31 (0)515 570335 http://www.hawarit.com/ nl_NL fy_NL en_US From dennisjan at IBUILDINGS.NL Wed Feb 1 02:58:16 2006 From: dennisjan at IBUILDINGS.NL (DJ Broerse) Date: Wed, 1 Feb 2006 11:58:16 +0100 Subject: [Fwd: Re: [UMN_MAPSERVER-USERS] Problems with join] Message-ID: An HTML attachment was scrubbed... URL: From jorn at SPACETEC.NO Wed Feb 1 03:20:46 2006 From: jorn at SPACETEC.NO (=?iso-8859-1?q?J=F8rn_Vegard_R=F8snes?=) Date: Wed, 1 Feb 2006 12:20:46 +0100 Subject: Google Earth transparency In-Reply-To: <1138711865.43df5d39752e3@home.euronet.nl> Message-ID: Thanks Wim, this did the trick. It works if I use gif and annotations/text in grey. Unfortunately is the text rather unreadable, so I consider using WFS and XSL for KML translation. If I use png I get an error message in Google Earth "Unsupported image format". This could be related to the poor graphics card in my notebook, ref. http://bbs.keyhole.com/ubb/showflat.php/Cat/0/Number/101072/Main/98160 I'll try it out with better HW also. I use Miller projection (epsg:54003) in my shapefiles. cheers Joern On Tuesday 31 January 2006 14:41, w.blanken at euronet.nl wrote: > Hello Joern, > > There seems to be a problem with transparency in the display of Mapserver's > WMS in google earth. I did not solve it but think it has to do with the > number of colors that is in the resulting (WMS) gif. In my demo project I > solved this by using annotation in a gray color (100 100 100). A black > annotation did produce a non-transparent picture and a gray annotation did > produce a transparent picture. Seems like a bug in the way Google uses > external images.... > > Regards, > > Wim Blanken > The Netherlands > > Quoting J?rn Vegard R?snes : > > Hi, > > > > has anyone managed to get Google Earth to display Mapserver WMS images > > without white background? > > My WMS request includes TRANSPARENT=true. > > > > cheers > > Joern From b.vdeijnden at AGI.RWS.MINVENW.NL Wed Feb 1 04:01:03 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Wed, 1 Feb 2006 04:01:03 -0800 Subject: bug in GetStyles SLD output Message-ID: Hi list, there is a bug in Mapserver's GetStyles output when using an expression like: EXPRESSION /V\*/ I have opened up bug 1637 for this. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1637 Best regards, Bart Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From jerl.simpso at GMAIL.COM Wed Feb 1 06:18:33 2006 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Wed, 1 Feb 2006 08:18:33 -0600 Subject: Rail Roads In-Reply-To: <43E0539D.5060908@geoinform.fh-mainz.de> Message-ID: Thank you very much. I'll play around with that and see how it goes. thanks again, Jerl On 2/1/06, Leonhard Dietze wrote: > > Hi Jerl, > > I found a solution on a german website > which deals with cartographic signatures. > Unfortunately the descriptions are in > german, but you can get excerpts from > map-files and see the corresponding > signature: > http://www.mapmedia.de/dokumente/umn_signaturen_howto/index.html#linien > > Here is their solution for railroads: > > CLASS > STYLE > COLOR 102 102 102 > SYMBOL 'punkt' > SIZE 4 > END > STYLE > COLOR 255 255 255 > SYMBOL 'rechteck-bahn' > SIZE 2 > END > END > > > SYMBOL > NAME 'punkt' > TYPE ELLIPSE > POINTS > 1 1 > END > FILLED TRUE > END > > SYMBOL > NAME 'rechteck-bahn' > TYPE VECTOR > POINTS > 0 0 > 0 0.6 > 1 0.6 > 1 0 > 0 0 > END > FILLED TRUE > STYLE > 8 12 8 12 > END > END > > This migth be an alternative solution for > you. > > Leonhard > > > Jerl Simpson schrieb: > > Hello, > > > > I'm wondering if anyone has a good way to do rail roads. I can't seem > > to work it out. I've found a few examples, but nothing really quite > > what I'm looking for. > > If someone has a good idea, please let me know. > > Mine currently look like: > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Stefan.Schwarzer at GRID.UNEP.CH Wed Feb 1 06:43:29 2006 From: Stefan.Schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Wed, 1 Feb 2006 15:43:29 +0100 Subject: drawQuery for a single layer Message-ID: Hi there, as far as I understand the php-mapscript manual, it should be possible to highlight only a single layer upon a query. In my case it highlights at least two. That is, if the user draws a rectangle, then in the next map the country boundaries touched and included by the rectangle will be highlighted as well as the points (for cities for example). How can I avoid this and limit the highlighting to only one single layer? In the moment I have this: $image_map = $map -> drawQuery(); $url_map = $image_map -> saveWebImage(); I would have thought it should be more something like this: $mapLayer = ...specific layer...; $image_map = $map -> $mapLayer -> drawQuery(); $url_map = $image_map -> saveWebImage(); But that does not work. Thanks for any help! From bob.basques at CI.STPAUL.MN.US Wed Feb 1 06:45:27 2006 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Wed, 1 Feb 2006 08:45:27 -0600 Subject: [MSF-Discuss] Poll: Foundation Naming In-Reply-To: <931f8ea90602010526yf2d7970u117893535961f0d9@mail.gmail.com> Message-ID: All, Just to mix it up a bit. (and it's probably been said already, I can't believe I just came up with it) How about : "Open Geo Foundation" - OGF I didn't do any comprehensive searches, but a quick Google doesn't turn up anything confusing for OGF It's short, not cute at all, says it all, and seems to address everything I've read this morning. bobb Frank Warmerdam wrote: >On 2/1/06, Tyler Mitchell wrote: > > >>I also think that "open source" carries some weight but some of it is 'bad' >>weight. There are very ambitious marketing campaigns that malign "open >>source" and other campaigns that seem to aim to twist the term "open" until >>it is meaningless. While open source is a central philosophy to the >>foundation, it is something we identify with, but not something we need to >>cling to for identifying us. Our projects will have plenty of merits apart >>from our licensing philosophy. >> >> > >Tyler, > >In my opinion "Open Source" or "Free (as in freedom)" is the >fundamental philosophy of the foundation. As much as some >might try and malign open source, I don't think we can in way >shy away from it. It may not need to be in the name, but it needs >to be in the first paragraph on the web site. > >Furthermore, if it came down to an acronym type name, I >would *much* prefer OSGF (Open Source Geospatial Foundation) >to OGSF (Open Geospatial Software Foundation) as the later >loses the assurance that the software is truely free. Open is >easily abused, but "Open Source" can be given a specific meaning >by reference to the OSD (Open Source Definition). > >To further stress this point, I think it ought to be written into the >"constitution" that the foundation itself only adopts projects that >have OSI approved licenses, and that the foundation board >shall not have the power to alter foundation owned code to a non >OSI license. > >I think it is rare that I get sticky about FOSS political correctness >but as we set down the bedrock of our foundation I think it is >important to have this principle clear. > >Best regards, >-- >---------------------------------------+-------------------------------------- >I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com >light and sound - activate the windows | http://pobox.com/~warmerdam >and watch the world go round - Rush | Geospatial Programmer for Rent > >_______________________________________________ >discuss mailing list >discuss at lists.mapserverfoundation.org >http://lists.mapserverfoundation.org/mailman/listinfo/discuss > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dennisjan at IBUILDINGS.NL Wed Feb 1 06:50:29 2006 From: dennisjan at IBUILDINGS.NL (DJ Broerse) Date: Wed, 1 Feb 2006 15:50:29 +0100 Subject: Problems with join In-Reply-To: Message-ID: An HTML attachment was scrubbed... URL: From tanguy.ricaille at TRASYS.LU Wed Feb 1 06:13:11 2006 From: tanguy.ricaille at TRASYS.LU (Ricaille Tanguy) Date: Wed, 1 Feb 2006 15:13:11 +0100 Subject: WFS WMS WCS Message-ID: Hello, i am beginner with Mapserver and OGIS (and my english also, sorry for that). I have read some informations around WFS, WMS and WCS. I think it is possible to ask to a OpenGis server (so, mapserver) to get features informations using a xml request file. It is in GML format, if i understand, and it looks like: Hi, > > has anyone managed to get Google Earth to display Mapserver WMS images > without white background? > My WMS request includes TRANSPARENT=true. > > cheers > Joern From bob.b at GRITECHNOLOGIES.COM Wed Feb 1 07:01:17 2006 From: bob.b at GRITECHNOLOGIES.COM (Bob Basques) Date: Wed, 1 Feb 2006 09:01:17 -0600 Subject: [MSF-Discuss] Poll: Foundation Naming In-Reply-To: <69c79c180602010653h31f38e3fr58db15f72f5c3fc2@mail.gmail.com> Message-ID: Still sound good to me. Oh well. :c) bobb Allan Doyle wrote: >OGC was originally OGF. > >Open GRASS Foundation -> Open GIS Consortium -> Open Geospatial Consortium > >I don't think Open Geo Foundation is distinct enough from Open >Geospatial Consortium > > Allan > >On 2/1/06, Blammo wrote: > > >> All, >> >> Just to mix it up a bit. (and it's probably been said already, I can't >>believe I just came up with it) >> >> How about : >> >> "Open Geo Foundation" - OGF >> >> I didn't do any comprehensive searches, but a quick Google doesn't turn up >>anything confusing for OGF >> >> It's short, not cute at all, says it all, and seems to address everything >>I've read this morning. >> >> bobb >> >> >> >> >> Frank Warmerdam wrote: >> On 2/1/06, Tyler Mitchell wrote: >> >> >> I also think that "open source" carries some weight but some of it is 'bad' >>weight. There are very ambitious marketing campaigns that malign "open >>source" and other campaigns that seem to aim to twist the term "open" until >>it is meaningless. While open source is a central philosophy to the >>foundation, it is something we identify with, but not something we need to >>cling to for identifying us. Our projects will have plenty of merits apart >>from our licensing philosophy. >> >> Tyler, >> >>In my opinion "Open Source" or "Free (as in freedom)" is the >>fundamental philosophy of the foundation. As much as some >>might try and malign open source, I don't think we can in way >>shy away from it. It may not need to be in the name, but it needs >>to be in the first paragraph on the web site. >> >>Furthermore, if it came down to an acronym type name, I >>would *much* prefer OSGF (Open Source Geospatial Foundation) >>to OGSF (Open Geospatial Software Foundation) as the later >>loses the assurance that the software is truely free. Open is >>easily abused, but "Open Source" can be given a specific meaning >>by reference to the OSD (Open Source Definition). >> >>To further stress this point, I think it ought to be written into the >>"constitution" that the foundation itself only adopts projects that >>have OSI approved licenses, and that the foundation board >>shall not have the power to alter foundation owned code to a non >>OSI license. >> >>I think it is rare that I get sticky about FOSS political correctness >>but as we set down the bedrock of our foundation I think it is >>important to have this principle clear. >> >>Best regards, >>-- >>---------------------------------------+-------------------------------------- >>I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com >>light and sound - activate the windows | http://pobox.com/~warmerdam >>and watch the world go round - Rush | Geospatial Programmer for Rent >> >>_______________________________________________ >>discuss mailing list >>discuss at lists.mapserverfoundation.org >>http://lists.mapserverfoundation.org/mailman/listinfo/discuss >> >> >> >> >> > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adoyle at EOGEO.ORG Wed Feb 1 06:53:36 2006 From: adoyle at EOGEO.ORG (Allan Doyle) Date: Wed, 1 Feb 2006 09:53:36 -0500 Subject: [MSF-Discuss] Poll: Foundation Naming In-Reply-To: <43E0C987.7080004@ci.stpaul.mn.us> Message-ID: OGC was originally OGF. Open GRASS Foundation -> Open GIS Consortium -> Open Geospatial Consortium I don't think Open Geo Foundation is distinct enough from Open Geospatial Consortium Allan On 2/1/06, Blammo wrote: > All, > > Just to mix it up a bit. (and it's probably been said already, I can't > believe I just came up with it) > > How about : > > "Open Geo Foundation" - OGF > > I didn't do any comprehensive searches, but a quick Google doesn't turn up > anything confusing for OGF > > It's short, not cute at all, says it all, and seems to address everything > I've read this morning. > > bobb > > > > > Frank Warmerdam wrote: > On 2/1/06, Tyler Mitchell wrote: > > > I also think that "open source" carries some weight but some of it is 'bad' > weight. There are very ambitious marketing campaigns that malign "open > source" and other campaigns that seem to aim to twist the term "open" until > it is meaningless. While open source is a central philosophy to the > foundation, it is something we identify with, but not something we need to > cling to for identifying us. Our projects will have plenty of merits apart > from our licensing philosophy. > > Tyler, > > In my opinion "Open Source" or "Free (as in freedom)" is the > fundamental philosophy of the foundation. As much as some > might try and malign open source, I don't think we can in way > shy away from it. It may not need to be in the name, but it needs > to be in the first paragraph on the web site. > > Furthermore, if it came down to an acronym type name, I > would *much* prefer OSGF (Open Source Geospatial Foundation) > to OGSF (Open Geospatial Software Foundation) as the later > loses the assurance that the software is truely free. Open is > easily abused, but "Open Source" can be given a specific meaning > by reference to the OSD (Open Source Definition). > > To further stress this point, I think it ought to be written into the > "constitution" that the foundation itself only adopts projects that > have OSI approved licenses, and that the foundation board > shall not have the power to alter foundation owned code to a non > OSI license. > > I think it is rare that I get sticky about FOSS political correctness > but as we set down the bedrock of our foundation I think it is > important to have this principle clear. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > > _______________________________________________ > discuss mailing list > discuss at lists.mapserverfoundation.org > http://lists.mapserverfoundation.org/mailman/listinfo/discuss > > > From crazygecko at GMAIL.COM Wed Feb 1 07:04:58 2006 From: crazygecko at GMAIL.COM (Xin) Date: Wed, 1 Feb 2006 15:04:58 +0000 Subject: display polygon based on feature size Message-ID: I am trying to display lakes only if they are big enough, kind of like Label's MINFEATURESIZE but for general displaying. I have had a good search around and haven't found anything promising. Can this be done? Any help much appreciated. Cheers, Xin -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mark.Hudson at XWAVE.COM Wed Feb 1 07:05:41 2006 From: Mark.Hudson at XWAVE.COM (Hudson, Mark (xwave)) Date: Wed, 1 Feb 2006 10:05:41 -0500 Subject: line labels Message-ID: Hi: I have a line shapefile consisting of city streets that I am trying to label based on the attribute of street name. I can get the labels to appear but I am wondering how to get them to draw according to the line angle. That is, is there a way to get the street name (label) to draw along side the street (line)? Just wondering if there is a way to automatically get the label to draw as same angle of the street as my streets run at many different angles..... Code for layer follows: #layer ******* Kingston city streets ******* LAYER NAME "StreetOutlines" STATUS ON DATA "Kgn_roads_section" TYPE LINE MAXSCALE 750 LABELITEM "road" LABELCACHE ON CLASS NAME "Outlines" STYLE COLOR 255 255 255 MINWIDTH 4 END LABEL ANGLE auto COLOR 0 0 0 TYPE BITMAP POSITION Auto PARTIALS FALSE MINDISTANCE 100 MINSIZE 100 BUFFER 0 END # end of label END END Any comments would be helpful. Thanks, Mark Hudson. -------------- next part -------------- An HTML attachment was scrubbed... URL: From adoyle at EOGEO.ORG Wed Feb 1 06:58:18 2006 From: adoyle at EOGEO.ORG (Allan Doyle) Date: Wed, 1 Feb 2006 09:58:18 -0500 Subject: Mapserver history question Message-ID: History question - who put WMS into MapServer? I poked around and found this 2001 version of Mapserver WMS HOWTO http://web.archive.org/web/20020616043906/http://mapserver.gis.umn.edu/doc/wms-howto.html Was it version 3.5 that was the first version with WMS? I'd like to learn a bit more about when it happened, who pushed for it, who wrote the code, what the thinking was back then, etc. I think open source implementations of OGC specs have significantly helped foster adoption of those specs. Thanks, Allan From woodbri at SWOODBRIDGE.COM Wed Feb 1 07:11:20 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 1 Feb 2006 10:11:20 -0500 Subject: display polygon based on feature size In-Reply-To: Message-ID: Xin wrote: > I am trying to display lakes only if they are big enough, kind of like > Label's MINFEATURESIZE but for general displaying. > > I have had a good search around and haven't found anything promising. > Can this be done? > > Any help much appreciated. Yes, if you have an attribute like AREA, then you can FILTER "([AREA] > nnnn)" where nnnn is some value. -Steve From woodbri at SWOODBRIDGE.COM Wed Feb 1 07:12:55 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 1 Feb 2006 10:12:55 -0500 Subject: line labels In-Reply-To: Message-ID: Mark, You have to use TYPE TRUETYPE for the font type. -Steve Hudson, Mark (xwave) wrote: > Hi: > > > > I have a line shapefile consisting of city streets that I am trying to > label based on the attribute of street name. I can get the labels to > appear but I am wondering how to get them to draw according to the line > angle. That is, is there a way to get the street name (label) to draw > along side the street (line)? Just wondering if there is a way to > automatically get the label to draw as same angle of the street as my > streets run at many different angles?.. > > > > Code for layer follows: > > > > #layer ******* Kingston city streets ******* > > LAYER > > NAME "StreetOutlines" > > STATUS ON > > DATA "Kgn_roads_section" > > TYPE LINE > > MAXSCALE 750 > > LABELITEM "road" > > LABELCACHE ON > > CLASS > > NAME "Outlines" > > STYLE > > COLOR 255 255 255 > > MINWIDTH 4 > > END > > LABEL > > ANGLE auto > > COLOR 0 0 0 > > TYPE BITMAP > > POSITION Auto > > PARTIALS FALSE > > MINDISTANCE 100 > > MINSIZE 100 > > BUFFER 0 > > END # end of label > > END > > > > END > > > > Any comments would be helpful. > > > > Thanks, Mark Hudson. > From bartvde at XS4ALL.NL Wed Feb 1 07:27:15 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 1 Feb 2006 16:27:15 +0100 Subject: WFS WMS WCS In-Reply-To: <00b701c62739$a355dbd0$0401a8c0@ariane.tractebel.be> Message-ID: Yes it's possible, but the XML for the request is not called GML. The reponse of a WFS is in GML, but the request is defined by the WFS 1.0 specification (you can download that from the OGC site). More info on the Mapserver website: http://mapserver.gis.umn.edu/docs/howto/wfs_server Mapserver supports: -WMS client and server (not WMS 1.3 though) -WFS client and server (not WFS 1.1 though) -WCS server 1.0 Best regards, Bart > Hello, i am beginner with Mapserver and OGIS (and my english also, sorry > for > that). > I have read some informations around WFS, WMS and WCS. > I think it is possible to ask to a OpenGis server (so, mapserver) to get > features informations using a xml request file. It is in GML format, if i > understand, and it looks like: > ...various > namespaces...> > > > > I didn't do any comprehensive searches, but a quick Google doesn't turn up > > anything confusing for OGF > > > > It's short, not cute at all, says it all, and seems to address everything > > I've read this morning. > > > > bobb > > > > > > > > > > Frank Warmerdam wrote: > > On 2/1/06, Tyler Mitchell wrote: > > > > > > I also think that "open source" carries some weight but some of it is 'bad' > > weight. There are very ambitious marketing campaigns that malign "open > > source" and other campaigns that seem to aim to twist the term "open" until > > it is meaningless. While open source is a central philosophy to the > > foundation, it is something we identify with, but not something we need to > > cling to for identifying us. Our projects will have plenty of merits apart > > from our licensing philosophy. > > > > Tyler, > > > > In my opinion "Open Source" or "Free (as in freedom)" is the > > fundamental philosophy of the foundation. As much as some > > might try and malign open source, I don't think we can in way > > shy away from it. It may not need to be in the name, but it needs > > to be in the first paragraph on the web site. > > > > Furthermore, if it came down to an acronym type name, I > > would *much* prefer OSGF (Open Source Geospatial Foundation) > > to OGSF (Open Geospatial Software Foundation) as the later > > loses the assurance that the software is truely free. Open is > > easily abused, but "Open Source" can be given a specific meaning > > by reference to the OSD (Open Source Definition). > > > > To further stress this point, I think it ought to be written into the > > "constitution" that the foundation itself only adopts projects that > > have OSI approved licenses, and that the foundation board > > shall not have the power to alter foundation owned code to a non > > OSI license. > > > > I think it is rare that I get sticky about FOSS political correctness > > but as we set down the bedrock of our foundation I think it is > > important to have this principle clear. > > > > Best regards, > > -- > > ---------------------------------------+-------------------------------------- > > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > > light and sound - activate the windows | http://pobox.com/~warmerdam > > and watch the world go round - Rush | Geospatial Programmer for Rent > > > > _______________________________________________ > > discuss mailing list > > discuss at lists.mapserverfoundation.org > > http://lists.mapserverfoundation.org/mailman/listinfo/discuss > > > > > > > From dylan.beaudette at GMAIL.COM Wed Feb 1 10:20:46 2006 From: dylan.beaudette at GMAIL.COM (Dylan Beaudette) Date: Wed, 1 Feb 2006 10:20:46 -0800 Subject: Improvement for legend symbols ? In-Reply-To: Message-ID: On Monday 30 January 2006 10:53 am, Steve Lime wrote: > The fix really isn't that bad, we'd just need to track visibility as > features are rendered. Visibility would initially be set to false for each > class and set to true if a feature of a certain class is rendered. Then a > flag would be added to the legend object to take advantage of the class > visibility. This feature is not real high on my todo list at the moment > although if enough folks are interested then it could be. For some soil maps that we are planning on using, having the ability to describe the few visible classes, out of perhaps 30 total, based on visibility would be a great feature. Cheers, Dylan > Steve > > >>> Troppenhagen, Horst-G?nter 01/30/06 10:09 AM >>> > > Hi list, > > currently I am working on a PHP-Mapscript to display a legend for a > geological map. In general it's nothing to speak of, but geological maps > often have plenty of classes in a layer (the one I'm working on has 182) > and a legend containing all of them would be really huge. It is my > intention to have the legend only show the classes resp. legend items > currently visible inside the actual map extend but I found no way to manage > it without MapScript. Only at one place I found a hint to that feature: Bug > # 750. I can imagine the needs for such MapServer feature is growing. Does > anyone have an idea if this will be implemented in the near future ? > > Best regards > > Horst > > > Federal Institute for Geosciences and Natural Resources > Stilleweg 2 > 30655 Hannover > Germany > Tel.: (+49) 511 / 643-3327 > Fax: (+49) 511 / 643-3782 > mailto:troppenhagen at bgr.de > http://www.bgr.bund.de -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From assefa at DMSOLUTIONS.CA Wed Feb 1 10:41:42 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 1 Feb 2006 13:41:42 -0500 Subject: Win32 Compilation with Flash support In-Reply-To: Message-ID: Ted, Sorry for the late answer. You should use 0.2a on windows. I had built the 0.3 but It never worked properly. Sorry I did not find anything useful for your error " definition of dllimport function not allowed" Later, Ted Quinby wrote: >I am trying to compile Mapserver 4.6.2 with Flash support. > >I've successfully compiled Mapserver with all of the other libraries I need >but am having difficulty when including the MING library. > >I compiled the MING library (0.2a -- because I don't have a makefile for >0.3a or 0.3beta1). > >When I build Mapserver with MING, I get the following errors: > >mapogr.cpp >C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\ostream(680) : >error C2491: 'std::endl' : definition of dllimport function not allowed >C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\ostream(689) : >error C2491: 'std::endl' : definition of dllimport function not allowed >C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\ostream(697) : >error C2491: 'std::ends' : definition of dllimport function not allowed >C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\ostream(705) : >error C2491: 'std::ends' : definition of dllimport function not allowed >C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\ostream(712) : >error C2491: 'std::flush' : definition of dllimport function not allowed >C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\ostream(720) : >error C2491: 'std::flush' : definition of dllimport function not allowed >C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\istream(980) : >error C2491: 'std::ws' : definition of dllimport function not allowed >C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\istream(990) : >warning C4530: C++ exception handler used, but unwind semantics are not >enabled. Specify /EHsc >C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\istream(1010) : >error C2491: 'std::ws' : definition of dllimport function not allowed > >Is there any workaround to this? > >Do I need to build with MING 0.3beta1? > >If building with 0.3beta1, do I need to include the following: > >MING ENABLED= "-DUSE_MING_FLASH -DMING_VERSION_03" > >Does anyone have a makefile.vc for ming-0.3beta1? > >Any thoughts are greatly appreciated! > >Ted > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From cjesch at CCT.LSU.EDU Wed Feb 1 10:52:19 2006 From: cjesch at CCT.LSU.EDU (Carola Jesch) Date: Wed, 1 Feb 2006 12:52:19 -0600 Subject: checkbox alignment in html legend Message-ID: Hi list, I have been playing around with the html legend and I am faced with a problem that I hope is only a minor one. I simply want to align the checkboxes for the layers on the very left hand side of the table in the main html template. This is the entry in my main template for the html legend: [legend] Here is the legend template: [leg_layer_html order_metadata=legend_order opt_flag=2] [metadata name=legend_title] [/leg_layer_html] Do you see any mistake? align="left" doesn't seem to work..... - Carola ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Carola Jesch Wetland Biogeochemistry Institute Department of Oceanography and Coastal Science Louisiana State University 3191 Energy, Coast & Environment Bldg. Baton Rouge, LA,70803 e-mail: cjesch at cct.lsu.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: From dbadke at UVIC.CA Wed Feb 1 12:03:10 2006 From: dbadke at UVIC.CA (David Badke) Date: Wed, 1 Feb 2006 12:03:10 -0800 Subject: Rasters and world files and extents, oh my! Message-ID: I am confused... I have a raster image, 10540 pixels wide by 6740 pixels high, non-Geo TIFF. The specified units in the map file are meters. I created a world file: 1 0.0000000000 0.0000000000 -1 0.00 0.00 meaning x co-ordinates increase moving right, y coordinates decrease moving down, from top-left pixel at x=0, y=0, with 1 pixel/meter (ie: the raster image is 10.54 km wide by 6.74 km high, in world coordinates). Through trial and error, with many blank output images, I found this extent setting (in the map file) produces a correct image, generated through a simple PHP MapScript: EXTENT 0 -6739 10539 0 PHP is: if (!extension_loaded('MapScript')) dl('php_mapscript_46.'.PHP_SHLIB_SUFFIX); $oMap = ms_newMapObj( '/ms4w/apps/kamap/htdocs/map/vicbird1878.map' ); $oImg = $oMap->draw(); $szURL = $oImg->saveWebImage(); echo ""; While this produces the image I expect, the y coordinate is always negative for any x, y point, which is a problem for me - and anyway, I don't understand why miny has to be -6739. So I tried a world file like: 1 0.0000000000 0.0000000000 1 0.00 0.00 and an extent like: EXTENT 0 0 10539 6739 thinking that both x and y coordinates would be positive and increase from x=0, y=0 (upper left) to x=10539, y=6739 (bottom right), which is what I want. Doesn't work - the image is blank. So can someone explain in simple terms for the cartographically-challenged just what the relationship is between the world file and the extent minx, miny, maxx, maxy? If minx, miny is the upper left pixel, and the world file says that the upper left pixel is x=0, y=0, why doesn't EXTENT 0 0 10539 6739 refer to the entire image? Why does a miny value of -6739 in the extent work if the top left is 0,0 and the y pixel size is -1? Sooooo confused... David From mtrp36 at HOTMAIL.COM Wed Feb 1 12:18:42 2006 From: mtrp36 at HOTMAIL.COM (K Kuo) Date: Wed, 1 Feb 2006 20:18:42 +0000 Subject: dummy question Message-ID: Hi list, I got a problem on my first lesson with mapserver. I got the message : "The requested URL /ms4w/Apache/cgi-bin/mapserv was not found on this server. My html file is like: My first map
I am using ms4w and the mapserv is in /ms4w/Apache/cgi-bin/mapserv Thanks in advance Kurt From cjohnson at REFRACTIONS.NET Wed Feb 1 12:09:06 2006 From: cjohnson at REFRACTIONS.NET (Clint Johnson) Date: Wed, 1 Feb 2006 12:09:06 -0800 Subject: line labels In-Reply-To: <43E0CFF7.2080305@swoodbridge.com> Message-ID: Indeed. To clarify the "ANGLE auto" in your label is the method of drawing the lables according to the line; however it only works with TrueType fonts. Note that if your Mapserver is running on a Unix machine then it may not be configured to support TrueType fonts (http://mapserver.gis.umn.edu/docs/howto/compiling_on_unix/#freetype-support) Clint -- Clint Johnson Refractions Research Inc. Cjohnson at refractions.net Stephen Woodbridge wrote: > Mark, > > You have to use > > TYPE TRUETYPE > > for the font type. > > -Steve > > Hudson, Mark (xwave) wrote: >> Hi: >> >> >> >> I have a line shapefile consisting of city streets that I am trying >> to label based on the attribute of street name. I can get the labels >> to appear but I am wondering how to get them to draw according to the >> line angle. That is, is there a way to get the street name (label) >> to draw along side the street (line)? Just wondering if there is a >> way to automatically get the label to draw as same angle of the >> street as my streets run at many different angles?.. >> >> >> >> Code for layer follows: >> >> >> >> #layer ******* Kingston city streets ******* >> >> LAYER >> >> NAME "StreetOutlines" >> >> STATUS ON >> >> DATA "Kgn_roads_section" >> >> TYPE LINE >> >> MAXSCALE 750 >> >> LABELITEM "road" >> >> LABELCACHE ON >> >> CLASS >> >> NAME "Outlines" >> >> STYLE >> >> COLOR 255 255 255 >> >> MINWIDTH 4 >> >> END >> >> LABEL >> >> ANGLE auto >> >> COLOR 0 0 0 >> >> TYPE BITMAP >> >> POSITION Auto >> >> PARTIALS FALSE >> >> MINDISTANCE 100 >> >> MINSIZE 100 >> >> BUFFER 0 >> >> END # end of label >> >> END >> >> >> >> END >> >> >> >> Any comments would be helpful. >> >> >> >> Thanks, Mark Hudson. >> From hartpence_gis at CO.JASPER.IA.US Wed Feb 1 12:30:59 2006 From: hartpence_gis at CO.JASPER.IA.US (Lawrence Hartpence) Date: Wed, 1 Feb 2006 14:30:59 -0600 Subject: dummy question In-Reply-To: Message-ID: I found that using Mapserver on windows, you need to write mapserv.exe not just mapserv. For example:
Lawrence From pcreso at PCRESO.COM Wed Feb 1 13:48:50 2006 From: pcreso at PCRESO.COM (Brent Wood) Date: Wed, 1 Feb 2006 13:48:50 -0800 Subject: Rasters and world files and extents, oh my! In-Reply-To: <43E113FE.3070700@uvic.ca> Message-ID: --- David Badke wrote: > I am confused... I'm used to being in that state.... The world file contains the top left geographic coords & the offset for (or size of) each pixel in map units. Your Y will always count down from this value, so a world file that has the top left corner as 0,0 will have decrementing Y's, hence negative, and increasing X's. If you want your image to have the bottom left corner at 0,0, then a world file specifying a top left of 0,6740, with a per pixel Y offset of -1 will count down the Y axis to 0 for you. Your mapfile extent will need to recognise this, and cover from 0,0 to 10539,6739. At least that's what I think you want to do.... Cheers, Brent Wood > > I have a raster image, 10540 pixels wide by 6740 pixels high, non-Geo > TIFF. The specified units in the map file are meters. I created a world > file: > > 1 > 0.0000000000 > 0.0000000000 > -1 > 0.00 > 0.00 > > meaning x co-ordinates increase moving right, y coordinates decrease > moving down, from top-left pixel at x=0, y=0, with 1 pixel/meter (ie: > the raster image is 10.54 km wide by 6.74 km high, in world coordinates). > > Through trial and error, with many blank output images, I found this > extent setting (in the map file) produces a correct image, generated > through a simple PHP MapScript: > > EXTENT 0 -6739 10539 0 > > PHP is: > > if (!extension_loaded('MapScript')) > dl('php_mapscript_46.'.PHP_SHLIB_SUFFIX); > $oMap = ms_newMapObj( '/ms4w/apps/kamap/htdocs/map/vicbird1878.map' ); > $oImg = $oMap->draw(); > $szURL = $oImg->saveWebImage(); > echo ""; > > While this produces the image I expect, the y coordinate is always > negative for any x, y point, which is a problem for me - and anyway, I > don't understand why miny has to be -6739. So I tried a world file like: > > 1 > 0.0000000000 > 0.0000000000 > 1 > 0.00 > 0.00 > > and an extent like: > > EXTENT 0 0 10539 6739 > > thinking that both x and y coordinates would be positive and increase > from x=0, y=0 (upper left) to x=10539, y=6739 (bottom right), which is > what I want. Doesn't work - the image is blank. > > So can someone explain in simple terms for the > cartographically-challenged just what the relationship is between the > world file and the extent minx, miny, maxx, maxy? If minx, miny is the > upper left pixel, and the world file says that the upper left pixel is > x=0, y=0, why doesn't EXTENT 0 0 10539 6739 refer to the entire image? > Why does a miny value of -6739 in the extent work if the top left is 0,0 > and the y pixel size is -1? Sooooo confused... > > David > From ed at TOPOZONE.COM Wed Feb 1 13:54:56 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 1 Feb 2006 16:54:56 -0500 Subject: Rasters and world files and extents, oh my! Message-ID: David - The last two lines of the world file are the coordinates (x, y) of the upper-left pixel. The coordinate system for addressing pixels assumes the normal Cartesian x-increases-to-the-right, y-increases-going-up sense. Since the world file specifies the coordinates of the UPPER left corner rather than the LOWER left corner as one would expect in a traditional Cartesian plane, the delta-y value is normally negative. That means that the y sense is y-decreasing-going-down, which is, of course, the same as saying y-increases-going-up. You're just counting top to bottom, so the numbers go down (negative increment) rather than bottom to top (positive increment). Imagine a Cartesian plane with an x axis and a y axis, crossing at (0, 0). Your first world file places your image in the lower-right quadrant, with the upper-left corner at the origin. All x coordinates on the image are positive, and all y coordinates on the image are negative. Your second world file creates a y-increases-going-down sense, which will confuse you no end. It takes the first scenario and reflects it about the X axis. It sounds like what you want to do is translate (i.e. slide) the image from the lower-right quadrant to the upper-right quadrant, so both x and y are positive. You want to move the image "up" by its entire size, so you want to add 6740 to its y coordinate. Adding 6740 to the y coordinate of the upper left corner simply means changing the last line of your original world file to be 6740 instead of 0. You don't really need all those spurious 0.00000000 values in there - just plain 0 works fine . If you do that all your y coordinates will be 6740 greater than they were before, and they will all be positive, with the LOWER left corner of the image at (0, 0). - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of David Badke Sent: Wednesday, February 01, 2006 3:03 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Rasters and world files and extents, oh my! I am confused... I have a raster image, 10540 pixels wide by 6740 pixels high, non-Geo TIFF. The specified units in the map file are meters. I created a world file: 1 0.0000000000 0.0000000000 -1 0.00 0.00 meaning x co-ordinates increase moving right, y coordinates decrease moving down, from top-left pixel at x=0, y=0, with 1 pixel/meter (ie: the raster image is 10.54 km wide by 6.74 km high, in world coordinates). Through trial and error, with many blank output images, I found this extent setting (in the map file) produces a correct image, generated through a simple PHP MapScript: EXTENT 0 -6739 10539 0 PHP is: if (!extension_loaded('MapScript')) dl('php_mapscript_46.'.PHP_SHLIB_SUFFIX); $oMap = ms_newMapObj( '/ms4w/apps/kamap/htdocs/map/vicbird1878.map' ); $oImg = $oMap->draw(); $szURL = $oImg->saveWebImage(); echo ""; While this produces the image I expect, the y coordinate is always negative for any x, y point, which is a problem for me - and anyway, I don't understand why miny has to be -6739. So I tried a world file like: 1 0.0000000000 0.0000000000 1 0.00 0.00 and an extent like: EXTENT 0 0 10539 6739 thinking that both x and y coordinates would be positive and increase from x=0, y=0 (upper left) to x=10539, y=6739 (bottom right), which is what I want. Doesn't work - the image is blank. So can someone explain in simple terms for the cartographically-challenged just what the relationship is between the world file and the extent minx, miny, maxx, maxy? If minx, miny is the upper left pixel, and the world file says that the upper left pixel is x=0, y=0, why doesn't EXTENT 0 0 10539 6739 refer to the entire image? Why does a miny value of -6739 in the extent work if the top left is 0,0 and the y pixel size is -1? Sooooo confused... David From dbadke at UVIC.CA Wed Feb 1 14:36:38 2006 From: dbadke at UVIC.CA (David Badke) Date: Wed, 1 Feb 2006 14:36:38 -0800 Subject: Rasters and world files and extents, oh my! In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DD8CA@ptolemy.topozone.com> Message-ID: Thanks! Now THAT is clear! I actually tried setting the "origin" to bottom left as you suggest (ie: 0, 6740), but that caused other problems. Now that I understand why y is negative, I can deal with it. David From aaronkoning at GMAIL.COM Wed Feb 1 17:57:19 2006 From: aaronkoning at GMAIL.COM (Aaron Koning) Date: Wed, 1 Feb 2006 17:57:19 -0800 Subject: drawQuery for a single layer In-Reply-To: <10601F25-1994-464E-8F2D-CC4C59C9C6DE@grid.unep.ch> Message-ID: If you only want features from one layer highlighted, then only query that layer. Drawquery only highlights features that are 'selected'. What does your query look like? Aaron On 2/1/06, Stefan Schwarzer wrote: > > Hi there, > > as far as I understand the php-mapscript manual, it should be > possible to highlight only a single layer upon a query. In my case it > highlights at least two. That is, if the user draws a rectangle, then > in the next map the country boundaries touched and included by the > rectangle will be highlighted as well as the points (for cities for > example). How can I avoid this and limit the highlighting to only one > single layer? > > In the moment I have this: > > $image_map = $map -> drawQuery(); > $url_map = $image_map -> saveWebImage(); > > I would have thought it should be more something like this: > > $mapLayer = ...specific layer...; > $image_map = $map -> $mapLayer -> > drawQuery(); > $url_map = $image_map -> saveWebImage(); > > But that does not work. > > Thanks for any help! > -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at DNR.STATE.MN.US Wed Feb 1 19:34:28 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 1 Feb 2006 21:34:28 -0600 Subject: display polygon based on feature size Message-ID: You could compute and store feature area in the attribute table and then filter on it. E.g. FILTER ([area] > 1000) Steve >>> Xin 02/01/06 9:04 AM >>> I am trying to display lakes only if they are big enough, kind of like Label's MINFEATURESIZE but for general displaying. I have had a good search around and haven't found anything promising. Can this be done? Any help much appreciated. Cheers, Xin From james_marsnett at HOTMAIL.COM Thu Feb 2 00:39:23 2006 From: james_marsnett at HOTMAIL.COM (James Net) Date: Thu, 2 Feb 2006 19:39:23 +1100 Subject: Default copyright layer, help? Message-ID: I have a few aerial photographs that I must display a ?(c) xyz company? in the top-left corner of the maps served by mapserv. All I know is that I must set the status of this ?copyright? layer to default, but how do I always put the text ?(c) xyz company? in the top-left corner? Just like the Australian BOM wms that uses mapserv. I?m a complete noob, does anyone have a mapfile example of a layer demonstrating this? Thanks heaps in advance! _________________________________________________________________ Shopping made easy @ tradingpost.com.au http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fwww%2Etradingpost%2Ecom%2Eau%2F%3Freferrer%3DnmsnHMetagv1&_t=753082530&_r=emailtagline&_m=EXT From lichte at ICBM.DE Thu Feb 2 01:21:28 2006 From: lichte at ICBM.DE (Oliver Lichte) Date: Thu, 2 Feb 2006 10:21:28 +0100 Subject: Java Mapscript no lib found Message-ID: Hi group, I've got a problem using Java mapscript V4.6.2 on a 64bit machine (AMD Opteron) and SuSE 10.0, since the JNI libmapscript.so is not found although it's there. On a 32Bit machine everything works fine with the same OS, Java and Mapserver set-ups, so the problem might concern the architecture. Has anyone solved a similiar problem before? Who can help me? My environment: make test in 'mapscript/java' shows: > make test javac -classpath ./:examples/:./mapscript.jar -d examples/ examples/*.java java -classpath ./:examples/:./mapscript.jar -Djava.library.path=. DumpShp ../../tests/point.shp java.lang.UnsatisfiedLinkError: /home/olichte/src/mapserver-4.6.2/mapscript/java/libmapscript.so: /home/olichte/src/mapserver-4.6.2/mapscript/java/libmapscript.so: cannot open shared object file: No such file or directory make: *** [test] Fehler 255 The lib is present at the requested path in directory and permissions are o.k: > ls -l /home/olichte/src/mapserver-4.6.2/mapscript/java/libmapscript.so -rwxr-xr-x 1 olichte impulse 1067739 2006-02-02 09:55 /home/olichte/src/mapserver-4.6.2/mapscript/java/libmapscript.so* and all shared-libs are resolved, too: > ldd libmapscript.so libgd.so.2 => /usr/lib64/libgd.so.2 (0x00002aaaaacb5000) libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x00002aaaaae09000) libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00002aaaaaf2a000) libpng.so.3 => /usr/lib64/libpng.so.3 (0x00002aaaab0a5000) libz.so.1 => /lib64/libz.so.1 (0x00002aaaab1df000) libtiff.so.3 => /usr/lib64/libtiff.so.3 (0x00002aaaab2f4000) libm.so.6 => /lib64/tls/libm.so.6 (0x00002aaaab44c000) libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002aaaab5a4000) libc.so.6 => /lib64/tls/libc.so.6 (0x00002aaaab7a0000) libXpm.so.4 => /usr/X11R6/lib64/libXpm.so.4 (0x00002aaaab9cb000) libX11.so.6 => /usr/X11R6/lib64/libX11.so.6 (0x00002aaaabae2000) libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x00002aaaabcf1000) libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x00002aaaabe30000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002aaaabf6a000) /lib64/ld-linux-x86-64.so.2 (0x0000555555554000) libXext.so.6 => /usr/X11R6/lib64/libXext.so.6 (0x00002aaaac077000) libdl.so.2 => /lib64/libdl.so.2 (0x00002aaaac188000) libexpat.so.0 => /usr/lib64/libexpat.so.0 (0x00002aaaac28c000) My architecture is: > uname -a Linux labrador 2.6.13-15-smp #1 SMP Tue Sep 13 14:56:15 UTC 2005 x86_64 x86_64 x86_64 GNU/Linux > java -version java version "1.4.2_06" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03) Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode) Thank you and cheers, Oliver -- Junior Research Group IMPULSE ICBM * Carl-v.-Ossietzky University of Oldenburg PO-Box 2503 * 26111 Oldenburg - Germany - http://www.icbm.de/impulse room: W15-2-239 * fon:+49-441-798-3622 * fax:+49-441-798-3404 From Cedric.Moeri at BD.SO.CH Thu Feb 2 01:18:33 2006 From: Cedric.Moeri at BD.SO.CH (=?iso-8859-1?Q?M=F6ri_C=E9dric?=) Date: Thu, 2 Feb 2006 10:18:33 +0100 Subject: Default copyright layer, help? Message-ID: Hi! You may try something like this: LAYER NAME credits STATUS ON POSTLABELCACHE TRUE TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 0 15 #this is the position of the text in image coordinates (pixel) END TEXT '© xyz company' #this is your displaying text END CLASS LABEL #defines the font, colors etc. of the text TYPE TRUETYPE FONT arial SIZE 8 BUFFER 10 COLOR 0 0 0 BACKGROUNDCOLOR 255 255 0 OUTLINECOLOR 255 255 255 POSITION UR END END END HTH best regards mit freundlichen Gr?ssen C?dric M?ri ******************************************** Kanton Solothurn Bau- und Justizdepartement Amt f?r Geoinformation Abteilung SO!GIS Koordination R?tistrasse 4 4501 Solothurn T: ++41 (0)32 627 2475 Fax: ++41 (0)32 627 2214 mailto:cedric.moeri at bd.so.ch http://www.sogis.so.ch ******************************************** > -----Original Message----- > From: James Net [mailto:james_marsnett at HOTMAIL.COM] > Sent: Thursday, February 02, 2006 9:39 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Default copyright layer, help? > > > I have a few aerial photographs that I must display a "(c) > xyz company" in > the top-left corner of the maps served by mapserv. All I know > is that I must > set the status of this "copyright" layer to default, but how > do I always put > the text "(c) xyz company" in the top-left corner? Just like > the Australian > BOM wms that uses mapserv. > > I'm a complete noob, does anyone have a mapfile example of a layer > demonstrating this? > > Thanks heaps in advance! > > _________________________________________________________________ > Shopping made easy @ tradingpost.com.au > http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fwww%2Etradingp > ost%2Ecom%2Eau%2F%3Freferrer%3DnmsnHMetagv1&_t=753082530&_r=em > ailtagline&_m=EXT > From crazygecko at GMAIL.COM Thu Feb 2 01:52:51 2006 From: crazygecko at GMAIL.COM (Xin) Date: Thu, 2 Feb 2006 09:52:51 +0000 Subject: display polygon based on feature size In-Reply-To: Message-ID: Excellent advice. I will give that a go. Thank you guys On 02/02/06, Steve Lime wrote: > > You could compute and store feature area in the attribute table and then > filter on it. E.g. > > FILTER ([area] > 1000) > > Steve > > >>> Xin 02/01/06 9:04 AM >>> > I am trying to display lakes only if they are big enough, kind of like > Label's MINFEATURESIZE but for general displaying. > > I have had a good search around and haven't found anything promising. Can > this be done? > > Any help much appreciated. > > Cheers, > Xin > -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at GMAIL.COM Thu Feb 2 02:09:10 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 2 Feb 2006 11:09:10 +0100 Subject: Java Mapscript no lib found In-Reply-To: <200602021021.28197.lichte@icbm.de> Message-ID: Are you using 64bit version of the OS? If yes did you recompile mapserver or just copied it over? Try to give the -r option to ldd. Umberto On 2/2/06, Oliver Lichte wrote: > Hi group, > > I've got a problem using Java mapscript V4.6.2 on a 64bit machine (AMD > Opteron) and SuSE 10.0, since the JNI libmapscript.so is not found although > it's there. On a 32Bit machine everything works fine with the same OS, Java > and Mapserver set-ups, so the problem might concern the architecture. Has > anyone solved a similiar problem before? Who can help me? > > My environment: > make test in 'mapscript/java' shows: > > > make test > > javac -classpath ./:examples/:./mapscript.jar -d examples/ examples/*.java > java -classpath ./:examples/:./mapscript.jar -Djava.library.path=. > DumpShp ../../tests/point.shp > java.lang.UnsatisfiedLinkError: /home/olichte/src/mapserver-4.6.2/mapscript/java/libmapscript.so: /home/olichte/src/mapserver-4.6.2/mapscript/java/libmapscript.so: > cannot open shared object file: No such file or directory > make: *** [test] Fehler 255 > > > The lib is present at the requested path in directory and permissions are o.k: > > > ls -l /home/olichte/src/mapserver-4.6.2/mapscript/java/libmapscript.so > -rwxr-xr-x 1 olichte impulse 1067739 2006-02-02 > 09:55 /home/olichte/src/mapserver-4.6.2/mapscript/java/libmapscript.so* > > and all shared-libs are resolved, too: > > > ldd libmapscript.so > libgd.so.2 => /usr/lib64/libgd.so.2 (0x00002aaaaacb5000) > libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x00002aaaaae09000) > libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00002aaaaaf2a000) > libpng.so.3 => /usr/lib64/libpng.so.3 (0x00002aaaab0a5000) > libz.so.1 => /lib64/libz.so.1 (0x00002aaaab1df000) > libtiff.so.3 => /usr/lib64/libtiff.so.3 (0x00002aaaab2f4000) > libm.so.6 => /lib64/tls/libm.so.6 (0x00002aaaab44c000) > libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002aaaab5a4000) > libc.so.6 => /lib64/tls/libc.so.6 (0x00002aaaab7a0000) > libXpm.so.4 => /usr/X11R6/lib64/libXpm.so.4 (0x00002aaaab9cb000) > libX11.so.6 => /usr/X11R6/lib64/libX11.so.6 (0x00002aaaabae2000) > libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 > (0x00002aaaabcf1000) > libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x00002aaaabe30000) > libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002aaaabf6a000) > /lib64/ld-linux-x86-64.so.2 (0x0000555555554000) > libXext.so.6 => /usr/X11R6/lib64/libXext.so.6 (0x00002aaaac077000) > libdl.so.2 => /lib64/libdl.so.2 (0x00002aaaac188000) > libexpat.so.0 => /usr/lib64/libexpat.so.0 (0x00002aaaac28c000) > > My architecture is: > > > uname -a > Linux labrador 2.6.13-15-smp #1 SMP Tue Sep 13 14:56:15 UTC 2005 x86_64 x86_64 > x86_64 GNU/Linux > > > java -version > java version "1.4.2_06" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03) > Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode) > > > Thank you and cheers, > Oliver > > > -- > Junior Research Group IMPULSE > ICBM * Carl-v.-Ossietzky University of Oldenburg > PO-Box 2503 * 26111 Oldenburg - Germany - http://www.icbm.de/impulse > room: W15-2-239 * fon:+49-441-798-3622 * fax:+49-441-798-3404 > From b.vdeijnden at AGI.RWS.MINVENW.NL Thu Feb 2 02:09:17 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Thu, 2 Feb 2006 02:09:17 -0800 Subject: smoothness of feature borders Message-ID: Hi list, just reporting back something which had never struck my eye, but which I noticed when comparing Mapserver's WMS output to Ionic's WMS output, is that the output from Ionic is a lot smoother with respect to feature borders. Is this due to GD? The Mapserver image is at: http://www.xs4all.nl/~bartvde/mapserv.png The Ionic image is at: http://www.xs4all.nl/~bartvde/BODEM50.png Best regards, Bart Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From umberto.nicoletti at GMAIL.COM Thu Feb 2 02:48:58 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 2 Feb 2006 11:48:58 +0100 Subject: Java Mapscript no lib found In-Reply-To: <200602021144.35349.lichte@icbm.de> Message-ID: Please always add the list to your replies! Are you using a 64 bit JVM? Regards, Umberto On 2/2/06, Oliver Lichte wrote: > > Yes, I am using the 64bit Version of SuSE 10.0 Linux-distr and I also > recompiled mapserver several times with different configurations. There is no > problem with tools like shp2img, thus the libmap.a seems to be good. > > > > ldd -r libmapscript.so > libgd.so.2 => /usr/lib64/libgd.so.2 (0x00002aaaaacb5000) > libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x00002aaaaae09000) > libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00002aaaaaf2a000) > libpng.so.3 => /usr/lib64/libpng.so.3 (0x00002aaaab0a5000) > libz.so.1 => /lib64/libz.so.1 (0x00002aaaab1df000) > libtiff.so.3 => /usr/lib64/libtiff.so.3 (0x00002aaaab2f4000) > libm.so.6 => /lib64/tls/libm.so.6 (0x00002aaaab44c000) > libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002aaaab5a4000) > libc.so.6 => /lib64/tls/libc.so.6 (0x00002aaaab7a0000) > libXpm.so.4 => /usr/X11R6/lib64/libXpm.so.4 (0x00002aaaab9cb000) > libX11.so.6 => /usr/X11R6/lib64/libX11.so.6 (0x00002aaaabae2000) > libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 > (0x00002aaaabcf1000) > libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x00002aaaabe30000) > libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002aaaabf6a000) > /lib64/ld-linux-x86-64.so.2 (0x0000555555554000) > libXext.so.6 => /usr/X11R6/lib64/libXext.so.6 (0x00002aaaac077000) > libdl.so.2 => /lib64/libdl.so.2 (0x00002aaaac188000) > libexpat.so.0 => /usr/lib64/libexpat.so.0 (0x00002aaaac28c000) > > > ldd libmapscript.so > libgd.so.2 => /usr/lib64/libgd.so.2 (0x00002aaaaacb5000) > libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x00002aaaaae09000) > libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00002aaaaaf2a000) > libpng.so.3 => /usr/lib64/libpng.so.3 (0x00002aaaab0a5000) > libz.so.1 => /lib64/libz.so.1 (0x00002aaaab1df000) > libtiff.so.3 => /usr/lib64/libtiff.so.3 (0x00002aaaab2f4000) > libm.so.6 => /lib64/tls/libm.so.6 (0x00002aaaab44c000) > libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002aaaab5a4000) > libc.so.6 => /lib64/tls/libc.so.6 (0x00002aaaab7a0000) > libXpm.so.4 => /usr/X11R6/lib64/libXpm.so.4 (0x00002aaaab9cb000) > libX11.so.6 => /usr/X11R6/lib64/libX11.so.6 (0x00002aaaabae2000) > libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 > (0x00002aaaabcf1000) > libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x00002aaaabe30000) > libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002aaaabf6a000) > /lib64/ld-linux-x86-64.so.2 (0x0000555555554000) > libXext.so.6 => /usr/X11R6/lib64/libXext.so.6 (0x00002aaaac077000) > libdl.so.2 => /lib64/libdl.so.2 (0x00002aaaac188000) > libexpat.so.0 => /usr/lib64/libexpat.so.0 (0x00002aaaac28c000) > > > Seems to be no difference. > > Oliver > > > Am Donnerstag 02 Februar 2006 11:09 schrieben Sie: > > Are you using 64bit version of the OS? If yes did you recompile > > mapserver or just copied it over? > > > > Try to give the -r option to ldd. > > > > Umberto > > > -- > Junior Research Group IMPULSE > ICBM * Carl-v.-Ossietzky University of Oldenburg > PO-Box 2503 * 26111 Oldenburg - Germany - http://www.icbm.de/impulse > room: W15-2-239 * fon:+49-441-798-3622 * fax:+49-441-798-3404 > > From lichte at ICBM.DE Thu Feb 2 04:09:01 2006 From: lichte at ICBM.DE (Oliver Lichte) Date: Thu, 2 Feb 2006 13:09:01 +0100 Subject: Java Mapscript no lib found In-Reply-To: <75b4b93e0602020209r5c528875rd12ef82be7d5528a@mail.gmail.com> Message-ID: Sorry. Here a copy for the group again: Yes, I am using the 64bit Version of SuSE 10.0 Linux-distr and I also recompiled mapserver several times with different configurations. There is no problem with tools like shp2img, thus the libmap.a seems to be good. > ldd -r libmapscript.so libgd.so.2 => /usr/lib64/libgd.so.2 (0x00002aaaaacb5000) libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x00002aaaaae09000) libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00002aaaaaf2a000) libpng.so.3 => /usr/lib64/libpng.so.3 (0x00002aaaab0a5000) libz.so.1 => /lib64/libz.so.1 (0x00002aaaab1df000) libtiff.so.3 => /usr/lib64/libtiff.so.3 (0x00002aaaab2f4000) libm.so.6 => /lib64/tls/libm.so.6 (0x00002aaaab44c000) libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002aaaab5a4000) libc.so.6 => /lib64/tls/libc.so.6 (0x00002aaaab7a0000) libXpm.so.4 => /usr/X11R6/lib64/libXpm.so.4 (0x00002aaaab9cb000) libX11.so.6 => /usr/X11R6/lib64/libX11.so.6 (0x00002aaaabae2000) libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x00002aaaabcf1000) libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x00002aaaabe30000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002aaaabf6a000) /lib64/ld-linux-x86-64.so.2 (0x0000555555554000) libXext.so.6 => /usr/X11R6/lib64/libXext.so.6 (0x00002aaaac077000) libdl.so.2 => /lib64/libdl.so.2 (0x00002aaaac188000) libexpat.so.0 => /usr/lib64/libexpat.so.0 (0x00002aaaac28c000) > ldd libmapscript.so libgd.so.2 => /usr/lib64/libgd.so.2 (0x00002aaaaacb5000) libjpeg.so.62 => /usr/lib64/libjpeg.so.62 (0x00002aaaaae09000) libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00002aaaaaf2a000) libpng.so.3 => /usr/lib64/libpng.so.3 (0x00002aaaab0a5000) libz.so.1 => /lib64/libz.so.1 (0x00002aaaab1df000) libtiff.so.3 => /usr/lib64/libtiff.so.3 (0x00002aaaab2f4000) libm.so.6 => /lib64/tls/libm.so.6 (0x00002aaaab44c000) libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002aaaab5a4000) libc.so.6 => /lib64/tls/libc.so.6 (0x00002aaaab7a0000) libXpm.so.4 => /usr/X11R6/lib64/libXpm.so.4 (0x00002aaaab9cb000) libX11.so.6 => /usr/X11R6/lib64/libX11.so.6 (0x00002aaaabae2000) libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x00002aaaabcf1000) libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x00002aaaabe30000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002aaaabf6a000) /lib64/ld-linux-x86-64.so.2 (0x0000555555554000) libXext.so.6 => /usr/X11R6/lib64/libXext.so.6 (0x00002aaaac077000) libdl.so.2 => /lib64/libdl.so.2 (0x00002aaaac188000) libexpat.so.0 => /usr/lib64/libexpat.so.0 (0x00002aaaac28c000) Seems to be no difference. Oliver Am Donnerstag 02 Februar 2006 11:09 schrieben Sie: > Are you using 64bit version of the OS? If yes did you recompile > mapserver or just copied it over? > > Try to give the -r option to ldd. > > Umberto > -- Junior Research Group IMPULSE ICBM * Carl-v.-Ossietzky University of Oldenburg PO-Box 2503 * 26111 Oldenburg - Germany - http://www.icbm.de/impulse room: W15-2-239 * fon:+49-441-798-3622 * fax:+49-441-798-3404 From lichte at ICBM.DE Thu Feb 2 04:15:01 2006 From: lichte at ICBM.DE (Oliver Lichte) Date: Thu, 2 Feb 2006 13:15:01 +0100 Subject: Java Mapscript no lib found In-Reply-To: <75b4b93e0602020248x3f112afdj2fd57a5bfc0d7a4b@mail.gmail.com> Message-ID: That's a good hint. /usr/bin/java is not linked against 64bit libraries, so I will try to install a 64-bit jvm and start it again. Thank you, Oliver Am Donnerstag 02 Februar 2006 11:48 schrieb Umberto Nicoletti: > Please always add the list to your replies! > > Are you using a 64 bit JVM? > > Regards, > Umberto > -- Software-Developer * Junior Research Group IMPULSE ICBM * Carl-v.-Ossietzky University of Oldenburg PO-Box 2503 * 26111 Oldenburg - Germany - http://www.icbm.de/impulse room: W15-2-239 * fon:+49-441-798-3622 * fax:+49-441-798-3404 From stefan.schwarzer at GRID.UNEP.CH Thu Feb 2 04:42:28 2006 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Thu, 2 Feb 2006 06:42:28 -0600 Subject: drawQuery for a single layer Message-ID: But how exactly do I "select" layers that should be queried. It's a long time ago that I wrote that code, so I hardly remember how I have done it.... The query code looks something like this: //Get the Layer being queried $Layer = $map -> GetLayerByName($lyr_name); $data_nm = $Layer -> data; $data_pth = $map -> shapepath; $shpPath = $data_pth."/".$data_nm; ...... $numResults = $Layer -> getNumResults(); $oLayer = $map -> getLayer($Layer -> index); // Open layer's table... take the list of fields to display from // the "HEADERRESULT_FIELDS" metadata in the layer object. $oLayer -> open(); ....... Don't know if this helps. I still feel irritated to see that in this code it queries a single layer, but that the drawQuery later than highlights (at least) two layers (probably all displayed ones). From lichte at ICBM.DE Thu Feb 2 05:02:47 2006 From: lichte at ICBM.DE (Oliver Lichte) Date: Thu, 2 Feb 2006 14:02:47 +0100 Subject: Java Mapscript no lib found In-Reply-To: <75b4b93e0602020248x3f112afdj2fd57a5bfc0d7a4b@mail.gmail.com> Message-ID: Hello Umberto, indeed it was the 32-bit JVM. Upgrade to 64-Bit Java 1.5 works. Thanks a lot. Your hint saved me many hours. Regards, Oliver Am Donnerstag 02 Februar 2006 11:48 schrieb Umberto Nicoletti: > Please always add the list to your replies! > > Are you using a 64 bit JVM? > > Regards, > Umberto > -- Software-Developer * Junior Research Group IMPULSE ICBM * Carl-v.-Ossietzky University of Oldenburg PO-Box 2503 * 26111 Oldenburg - Germany - http://www.icbm.de/impulse room: W15-2-239 * fon:+49-441-798-3622 * fax:+49-441-798-3404 From b.vdeijnden at AGI.RWS.MINVENW.NL Thu Feb 2 05:33:51 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Thu, 2 Feb 2006 05:33:51 -0800 Subject: WFS DescribeFeatureType response: xsd namespace? Message-ID: Hi list, I am currently comparing Mapserver's OGC interfaces to Ionic's OGC interfaces. When looking at the Mapserver DescribeFeatureType response, Mapserver does not use the xsd namespace in the response, whereas Ionic does. An example output from Mapserver is (excerpt only): .. An example output from Ionic is (excerpt only): .. So, I tried to get some confirmation about who is right or wrong by checking Geoserver, but funnily enough this gives a third option, since Geoserver uses xs as the namespace :-): .. Who is right or wrong? Best regards, Bart Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From jeff2005 at SVS.GSFC.NASA.GOV Thu Feb 2 05:45:12 2006 From: jeff2005 at SVS.GSFC.NASA.GOV (Jeff de La Beaujardiere) Date: Thu, 2 Feb 2006 08:45:12 -0500 Subject: smoothness of feature borders In-Reply-To: <1FEE21DC1054D5119FCC0002A5517B24056F263E@rws-mdi-dt2-01.agi.rws.minvenw.nl> Message-ID: Eijnden, B. van den (Bart) wrote: > just reporting back something which had never struck my eye, but which I > noticed when comparing Mapserver's WMS output to Ionic's WMS output, is that > the output from Ionic is a lot smoother with respect to feature borders. Is > this due to GD? The Ionic image is anti-aliased, the Mapserv one is not. Notice that the file size of the Ionic image is ~3* greater. Mapserv does not appear to support anti-aliasing, except for text and symbols. (http://lists.umn.edu/cgi-bin/wa?A2=ind0411&L=mapserver-users&D=0&I=-3&X=638C7737989424DD73&P=75934) However, GD supposedly does have anti-aliasing (http://www.boutell.com/gd/manual2.0.33.html). -Jeff DLB From b.vdeijnden at AGI.RWS.MINVENW.NL Thu Feb 2 06:07:28 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Thu, 2 Feb 2006 06:07:28 -0800 Subject: ESRI .lyr files Message-ID: Hi list, can ESRI .lyr files (classification for grid data) be used by Mapserver for classifications? Most likely not, but in that case does somebody know of any conversion scheme? Thanks in advance. Best regards, Bart Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From info2005 at RAJSINGH.ORG Thu Feb 2 06:53:11 2006 From: info2005 at RAJSINGH.ORG (Raj Singh) Date: Thu, 2 Feb 2006 20:23:11 +0530 Subject: Adding user specific layers(dynamically) Message-ID: I think you are solving the problem correctly. At least I've taken the same route for solving this problem. The easiest way to go about it is to define a .map file with all the information in it you want--even a "false" layer--to start with. Then in PHPMapscript replace the values that change dynamically, like the layer data source and bounding box. This way you don't have to do all the styling in your code. --Raj On 2/1/06 3:38 PM, "Eduard Witteveen" wrote: > Currently i'm working on a way to provide the user the possibility to > define his own layer in mapserver. > > Basically this means that the user can define a sql query and provide a > theme which defines the way it is shown in the map(the class information > from the layer) > > For this i first tried to make a mapfile which used database values for > the "keys", apparently this could not be done. > Currently i'm writing a wms-server in php, since i want to add layer > information to the result(it needs a additional query and style > parameter that create a new layer, further it just works like a "normal" > wms-server). > > I have the idea that i'm not solving this problem the correct way. Can > anyone give me some pointers on this? From hjulien at NRCAN.GC.CA Thu Feb 2 06:53:35 2006 From: hjulien at NRCAN.GC.CA (Heryk Julien) Date: Thu, 2 Feb 2006 08:53:35 -0600 Subject: Google Earth transparency Message-ID: Hi, Another tip that might help you: I had some problems when the extent of my GE (Google Earth) viewer was much wider then my mapfile extent. Ge could not load mapserver's png getmap image. To fix that, all wms calls to my mapserver wms service are redirected to an my cocoon server (xml based server) which restricts the wms extent before fetching the wms getmap image from mapserver. Works good! Demo: Click on the GE link at the bottom this page to get the kml (wms Mapserver based) service (prototype site) http://ntserv.gis.nrcan.gc.ca/cocoon/ngwd/services/featureCollection/app-map?locale=en&REQUEST=GETFEATURE&FEATUREID=ca.nb.gov.wmslayerref.23139&SESSION=Public FYI, here is my mapfile output format: OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" FORMATOPTION "INTERLACE=OFF" TRANSPARENT ON END TRANSPARENT ON Cheers H?ryk NRCan From pauljame at GMAIL.COM Thu Feb 2 07:23:10 2006 From: pauljame at GMAIL.COM (Paul james) Date: Thu, 2 Feb 2006 13:23:10 -0200 Subject: Path-following labels function (MapScript) Message-ID: Anybody already implemented/compiled that? Docs? Samples? ty *Date:* Mon, 25 Apr 2005 10:50:38 -0500*Reply-To:* James Sohr *Sender:* UMN MapServer Users List *From:* James Sohr *Subject:* Path-following labels function (MapScript) As part of a larger project to help implement a high-quality labeling system for MapServer, I've written an alpha-level Mapscript function, label_layer_wpft(), which will draw path-following text labels, returning it as a GD true color image which you can then overlay onto your map image. Here are some sample images of it in action: The good: http://img171.echo.cx/img171/7012/good13fx.gifhttp://img191.echo.cx/img191/8636/good21nf.gif The bad: http://img152.echo.cx/img152/4066/bad0yq.gif And the ugly: http://img152.echo.cx/img152/2049/ugly3uq.gif To use the function, include it in your main mapscript routine. The format for it's use is as follows: $mylabelimage = label_layer_wpft( MAP, LAYER_NAME, LABEL_FORMAT); where MAP is a map object, LAYER_NAME is a string containing the name of the layer you wish to label, and LABEL_FORMAT is a string containing the format of the label (similiar to the TEXTITEM field in a map file). For instance, to create a label image for a layer called "anno_roads", with labels comprised of the street name (STNAME) and street type (STTYPE) fields, use: $road_labels = label_layer_wpft($map, "anno_roads", "[STNAME] [STTYPE]"); You can then overlay this image onto your map image using the appropriate GD functions. It creates labels for a single layer by performing a query for the current map extent against that layer, and then comparing each result to each class within the layer. It then uses each class's label attributes (such as font, font size, and color) to draw the path-following label. To optimize labeling, the function will automatically combine features with common endpoints and common labels into a single feature. Currently, there are quite a few limiations with this function: First of all, it only recongizes classes within a layer using the CLASSITEM feature only (i.e. each expression must be a regular epxression which is compared to the CLASSITEM). It only uses the class label's font, font size, and font color attributes -- it ignores all of the other label attributes (such as position, background color, border color, antialias, buffer, etc.) The function only does a rudimentary check to see if the label will fit on the feature. Currently, the label is automatically centered along the feature's length, and no collision detection is done with other labels. The font name used in the labeling does not use the map's font file-- hence the font name used for each class must be the actual true-type font filename (without the .ttf). For instance, to label with the font arial bold, use "FONT arialbd" in your map file. Like I said, the function is pretty basic so far... but I plan to make a lot of improvements as time allows. If you make any improvements you'd like to share, or have any questions about the function or how to use it, feel free to let me know. Without further adieu, here are the functions: /////////////////////////////////////////////////////////////// // // function label_layer_wpft() // // Draws path following text labels for a given layer. // function label_layer_wpft($map, $layername,$text){ $im = imagecreatetruecolor($map->width, $map->height); $scale=1; $layer=$map->getLayerByName($layername); $rect=$map->extent; $layer->set(template,"dummy"); $void=@$layer->queryByRect( $rect); $mystring=$text; $f=0; while(preg_match("/\[/", $mystring) > 0){ if (strpos($mystring,"[")> 0){ $text_array[$f]=substr($mystring,0,strpos($mystring,"[")); $mystring=substr($mystring,strpos($mystring,"[")); $f++; } $g=strpos($mystring,"]"); $text_array[$f]=substr($mystring,0, $g + 1); $f++; $mystring=substr($mystring,$g + 1); } $text_array[$f]=$mystring; $layer->open(); $uroads = 0; for ($i=0;$i<$layer->numclasses;$i++){ $class = $layer->getclass($i); $label = $class->label; $label->set(minfeaturesize,99999999); } for ($g=0;$g<$layer->getNumResults();$g++) { $result = $layer->getResult($g); $feature = $layer->getShape(-1,$result->shapeindex); $classvalue = $feature->values[$layer->classitem]; $sname = $feature->values["FENAME"]; for ($i=0;$i<$layer->numclasses;$i++){ $class = $layer->getclass($i); $label = $class->label; if (preg_match($class->getExpression(), $classvalue) || $class- >getExpression() == '') { $textlabel = ""; for ($z=0;$zvalues[substr ($text_array[$z], 1, strlen($text_array[$z])-2)]; } else { $textlabel = $textlabel.$text_array[$z]; } } for ($h=0;$h< $feature->numlines;$h++){ $line = $feature->line($h); $line->project(ms_newprojectionobj($layer->getProjection ()),ms_newprojectionobj($map->getProjection())); $myx=array(); $myy=array(); for ($j=0; $j< $line->numpoints;$j++){ $point = $line->point($j); $px = ($point->x - $rect->minx) / ($rect->maxx - $rect->minx) * $map- >width / $scale; $py = $map->height / $scale - ($point->y - $rect->miny) / ($rect- >maxy - $rect->miny) * $map->height / $scale ; $myx[$j]=$px; $myy[$j]=$py; } $fnode = (int)($myx[0])."-".(int)($myy[0]); $tnode = (int)$myx[count($myx)-1]."-".(int)($myy[count($myx)-1]); $fename = $textlabel; $xarray = $myx; $yarray = $myy; for ($m=0;$m<$uroads; $m++) { // Coallate features with matching endpoints and labels if ($tnode == $FNODES[$m] && $fename == $FENAMES[$m]) { $tnode = $TNODES[$m]; $xarray = array_merge($xarray, $XARRAYS[$m]); $yarray = array_merge($yarray, $YARRAYS[$m]); $FNODES = array_trim($FNODES, $m); $FENAMES = array_trim($FENAMES, $m); $TNODES = array_trim($TNODES, $m); $XARRAYS = array_trim($XARRAYS, $m); $YARRAYS = array_trim($YARRAYS, $m); $FNARRAYS= array_trim($FNARRAYS, $m); $FSARRAYS = array_trim($FSARRAYS, $m); $FCARRAYS = array_trim($FCARRAYS, $m); $uroads = $uroads - 1; } if ($fnode == $TNODES[$m] && $fename == $FENAMES[$m]) { $fnode = $FNODES[$m]; $xarray = array_merge($XARRAYS[$m], $xarray); $yarray = array_merge($YARRAYS[$m], $yarray); $FNODES = array_trim($FNODES, $m); $FENAMES = array_trim($FENAMES, $m); $TNODES = array_trim($TNODES, $m); $XARRAYS = array_trim($XARRAYS, $m); $YARRAYS = array_trim($YARRAYS, $m); $FNARRAYS= array_trim($FNARRAYS, $m); $FSARRAYS = array_trim($FSARRAYS, $m); $FCARRAYS = array_trim($FCARRAYS, $m); $uroads = $uroads - 1; } if ($fnode == $FNODES[$m] && $fename == $FENAMES[$m]) { $fnode = $tnode; $tnode = $TNODES[$m]; $xarray = array_merge( array_reverse($xarray), $XARRAYS[$m]); $yarray = array_merge( array_reverse($yarray),$YARRAYS[$m]); $FNODES = array_trim($FNODES, $m); $FENAMES = array_trim($FENAMES, $m); $TNODES = array_trim($TNODES, $m); $XARRAYS = array_trim($XARRAYS, $m); $YARRAYS = array_trim($YARRAYS, $m); $FNARRAYS= array_trim($FNARRAYS, $m); $FSARRAYS = array_trim($FSARRAYS, $m); $FCARRAYS = array_trim($FCARRAYS, $m); $uroads = $uroads - 1; } if ($tnode == $TNODES[$m] && $fename == $FENAMES[$m]) { $tnode = $fnode; $fnode = $FNODES[$m]; $xarray = array_merge($XARRAYS[$m], array_reverse($xarray)); $yarray = array_merge($YARRAYS[$m], array_reverse($yarray)); $FNODES = array_trim($FNODES, $m); $FENAMES = array_trim($FENAMES, $m); $TNODES = array_trim($TNODES, $m); $XARRAYS = array_trim($XARRAYS, $m); $YARRAYS = array_trim($YARRAYS, $m); $FNARRAYS= array_trim($FNARRAYS, $m); $FSARRAYS = array_trim($FSARRAYS, $m); $FCARRAYS = array_trim($FCARRAYS, $m); $uroads = $uroads - 1; } } // Add the current entry to the list $TNODES[$uroads] = $tnode; $FNODES[$uroads] = $fnode; $XARRAYS[$uroads] = $xarray; $YARRAYS[$uroads] = $yarray; $FENAMES[$uroads] = $fename; $FNARRAYS[$uroads] = $label->font; $FSARRAYS[$uroads] = $label->size; $FCARRAYS[$uroads] = $label->color; $uroads++; } $i = $layer->numclasses; } } } for ($m=0;$m<$uroads;$m++){ label_path($im, $XARRAYS[$m], $YARRAYS[$m], $FNARRAYS[$m].".ttf", $FSARRAYS[$m] , $FCARRAYS[$m], $FENAMES[$m]); } return $im; } /////////////////////////////////////////////////////////////// // // function label_Path() // // Takes a single feature and path, and writes a label fitted to that path. // No collision detection is used, and only a rudimentary method is used to // determine whether it fits or not. // // using this function, all labels must be drawn as seperate annotation layers. // // the .map file should be configured to output as png for transparency. // /////////////////////////////////////////////////////////////// function label_path($im, $px, $py, $font, $fontsize, $color, $label){ $SMOOTH_LEVEL=2; // Sets number of "smoothing steps" for text angles $TEXT_SPACING=1.3; // Set spacing multiplier for text $imcolor = imagecolorallocate($im, $color->red,$color->green,$color->blue); $numpoints = count($px); // If line endpoint is horizontally before start point, reverse order // This helps prevent (but doesn't completely eliminate) upside down and backward labels if ($px[0] > $px[$numpoints - 1]){ $px = array_reverse($px); $py = array_reverse($py); } $pathlength=0; $textsz = imagettfbbox($fontsize, 0, $font, $label); $labelength = ($textsz[2] - $textsz[0]) * $TEXT_SPACING; for ($i=0;$i<$numpoints - 1;$i++){ $pathlength = $pathlength + sqrt( ($px[$i + 1] - $px[$i]) * ($px[$i + 1] - $px[$i]) + ($py[$i + 1] - $py[$i]) * ($py[$i + 1] - $py[$i])); } // If length of label exceeds length of path to draw on, doing nothing if ($labelength > $pathlength) { return; } $s= ($pathlength - $labelength)/2 - 10; // Start value $curlength = sqrt( ($px[1] - $px[0]) * ($px[1] - $px[0]) + ($py[1] - $py [0]) * ($py[1] - $py[0]) ); if ($px[0] == $px[1]){ if($py[0] < $py[1]) { $angle = 90;} else { $angle = -90;}} else { $angle = rad2deg(atan2(($py[1] - $py[0]),($px[1] - $px[0]))) ; } $i=0; $curp=0; $labelx=array(); $labely=array(); $angles=array(); while ($i < strlen($label) && $curp < $numpoints - 1) { if ( $s < $curlength ) { $textsz = imagettfbbox($fontsize, 0, $font, $label[$i]); $pcwid = $cwid; $cwid = $textsz[2] - $textsz[0]; $chgt = $textsz[5] - $textsz[1]; $labelx[$i] = $px[$curp] + ($px[$curp + 1] - $px[$curp]) * ($s / $curlength); $labely[$i] = $py[$curp] + ($py[$curp + 1] - $py[$curp]) * ($s / $curlength); $angles[$i] = $angle; $placement_ok = 1; for ($g=0; $g < $i; $g++){ if ( ($labelx[$i] - $labelx[$g]) * ($labelx[$i] - $labelx[$g]) + ($labely[$i] - $labely[$g]) * ($labely[$i] - $labely[$g]) < ($cwid * $cwid) ) { $placement_ok = 0; } } $angles[$i] = $angle; if ($placement_ok == 1){ $s = $s + $TEXT_SPACING * $cwid ; $i++; } else { $s = $s + 1; } } else { $curp++; if ($curp < $numpoints - 1 ){ $s = $s - $curlength; $curlength = sqrt( ($px[$curp + 1] - $px[$curp]) * ($px[$curp + 1] - $px[$curp]) + ($py[$curp + 1] - $py[$curp]) * ($py[$curp + 1] - $py [$curp]) ); if ($px[$curp] == $px[$curp + 1]){ if($py[$curp] < $py[$curp + 1]) { $angle = 90;} else { $angle = -90;}} else { $angle = rad2deg(atan2(($py[$curp + 1] - $py[$curp]),($px [$curp + 1] - $px[$curp]))) ; } } // END IF of $curp < $numpoints } // END ELSE } // END WHILE for ($i=0; $i<$SMOOTH_LEVEL;$i++){ $tangles=$angles; $angles[0]=(2 * $tangles[0] + $tangles[1]) / 3; $angles[strlen($label) - 1] = (2 * $tangles[strlen($label) - 1] + $tangles [strlen($label) - 2]) / 3; for ( $j=1; $j< strlen($label)-1;$j++){ $angles[$j] = ($tangles[$j - 1] + 2 * $tangles[$j] + $tangles[$j + 1]) / 4; } } for ( $i=0; $i< strlen($label);$i++){ imagettftext($im, $fontsize, -$angles[$i] , $labelx[$i] - 4 * sin (deg2rad($angles[$i])), $labely[$i] + 4 * cos(deg2rad($angles[$i])), $imcolor, $font, $label[$i]); } return; } /////////////////////////////////////////////////////////////////////////// //////// /////////////////////////////////////////////////////////////////////////// /////// function array_trim ( $array, $index ) { if ( is_array ( $array ) ) { unset ( $array[$index] ); array_unshift ( $array, array_shift ( $array ) ); return $array; } else { return false; } } -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Thu Feb 2 07:28:13 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 2 Feb 2006 10:28:13 -0500 Subject: smoothness of feature borders In-Reply-To: <43E20CE8.1080206@svs.gsfc.nasa.gov> Message-ID: On 2/2/06, Jeff de La Beaujardiere wrote: > Eijnden, B. van den (Bart) wrote: > > just reporting back something which had never struck my eye, but which I > > noticed when comparing Mapserver's WMS output to Ionic's WMS output, is that > > the output from Ionic is a lot smoother with respect to feature borders. Is > > this due to GD? > > The Ionic image is anti-aliased, the Mapserv one is not. > Notice that the file size of the Ionic image is ~3* greater. > > Mapserv does not appear to support anti-aliasing, except for > text and symbols. > (http://lists.umn.edu/cgi-bin/wa?A2=ind0411&L=mapserver-users&D=0&I=-3&X=638C7737989424DD73&P=75934) > However, GD supposedly does have anti-aliasing > (http://www.boutell.com/gd/manual2.0.33.html). Bart, Jeff is right that Ionic is antialiasing the polygon edges. For those with poor eyes like me, I have prepared zoomed in views of Bart's images to see the effect up close. http://www.gdal.org/tmp/bodem50_close.png http://www.gdal.org/tmp/mapserv_close.png Note that the ionic (bodem50) image has a smeary effect between abutting green polygons? This is also an effect (mostly undesirable in my opinion) of the antialiasing. That said, it would be nice if we could antialias polygon edges too. GD does have some degree of support for it, though we might need to use polygon edges drawn as lines and anti-alias those. But I don't think this ought to be the default due to size, and imprecision of results (IMHO). Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From ltrevino at GPOBSI.COM.MX Thu Feb 2 07:39:21 2006 From: ltrevino at GPOBSI.COM.MX (Luis Trevi=?ISO-8859-1?Q?=F1o?=) Date: Thu, 2 Feb 2006 09:39:21 -0600 Subject: postgis error (glibc detected) Message-ID: I've just installed postgresql 8.1.2 with postgis 1.1.0 and map server 4.4 which works fine with shape files but when I try to access a postgis layer I get this error message: *** glibc detected *** double free or corruption (!prev): 0X0821d380 *** I can't figure out what?s wrong!! I've defined the layer as follows: LAYER NAME gis STATUS ON CONNECTION "user=XXX password=XXX dbname=XXX host=XXX.XXX.XXX.XX" CONNECTIONTYPE postgis DATA "posicion from loca" TYPE POINT CLASS COLOR 255 0 0 SYMBOL 7 SIZE 12 END END Does anybody knows what is wrong? Thanks, Luis From Jeremy.Sears at CCRS.NRCAN.GC.CA Thu Feb 2 07:56:40 2006 From: Jeremy.Sears at CCRS.NRCAN.GC.CA (Sears, Jeremy) Date: Thu, 2 Feb 2006 10:56:40 -0500 Subject: FW: [UMN_MAPSERVER-USERS] postgis error (glibc detected) Message-ID: >>forwarded to the list Hi Luis, I have a simmilar setup. I notice that my DATA element is a little different than yours. Ive included my layer def below. I was originally having problems with the DATA element. Using : >>DATA "the_geom from bt.hotspots_modis_2005" returned nothing. However after adding "as foo using unique oid using srid=42304" to the expression, all worked well. Perhaps your case is simmilar. Regards, Jeremy ####################### LAYER NAME "Cummulative Hotspots" TYPE POINT STATUS ON CONNECTIONTYPE postgis CONNECTION "host=localhost user=postgres password=xxxx dbname=warehouse " DATA "the_geom from bt.hotspots_modis_2005 as foo using unique oid using srid=42304" CLASS STYLE SYMBOL "Circle" SIZE 3 COLOR 255 0 0 END END END # layer #################### -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Luis Trevi?o Sent: February 2, 2006 10:39 AM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] postgis error (glibc detected) I've just installed postgresql 8.1.2 with postgis 1.1.0 and map server 4.4 which works fine with shape files but when I try to access a postgis layer I get this error message: *** glibc detected *** double free or corruption (!prev): 0X0821d380 *** I can't figure out what?s wrong!! I've defined the layer as follows: LAYER NAME gis STATUS ON CONNECTION "user=XXX password=XXX dbname=XXX host=XXX.XXX.XXX.XX" CONNECTIONTYPE postgis DATA "posicion from loca" TYPE POINT CLASS COLOR 255 0 0 SYMBOL 7 SIZE 12 END END Does anybody knows what is wrong? Thanks, Luis From stocksll33 at YAHOO.CO.UK Thu Feb 2 10:03:19 2006 From: stocksll33 at YAHOO.CO.UK (Jeremy Stocks) Date: Thu, 2 Feb 2006 19:03:19 +0100 Subject: Can you help me with this map file? Message-ID: Hi there to the list. I have succeeded in downloading SRTM and Landsat from the GLCF, VMAP Level 0 from the web and processing them in GRASS. I have done the same with Geonet names from NIMA with the help of a pythin script an internet buddy wrote for me. I am now trying to incorporate the label names into my Mapserver application. Can anyone help? I have a problem with the below MAP file. When I run Mapserver on my PC (standard Windows download version) I receive this message: loadLayer(): Unknown identifier. Parsing error near (LAYER):(line 88) Is the MAP script wrong here? I am a newbie to MAPserver. For whatever help anyone gives I will be very grateful. Regards, Jeremy Stocks. Here is the script. The problem area is the bold italic section....... # The annotated map file (sort of) # Created by Pericles S. Nacionales for the MapServer tutorial # 20050408 # # MapServer map file uses the pound sign (#) to denote the start of a line # comment--each line that needs to be commented has to be prepended with a "#". # # Map files begin with MAP keyword to signify the start of the map object. # Well, the entire map file is THE map object. Enclosed between MAP and END # at the very bottom of this map file, are keyword/value pairs and other # objects. MAP IMAGETYPE PNG EXTENT 658768.76306283 5255756.95394429 742048.26144778 5330768.35385309 SIZE 700 500 SHAPEPATH "\ms4w\Apache\htdocs\bayern" IMAGECOLOR 255 255 255 FONTSET "\ms4w\Apache\htdocs\bayern\fonts.list" WEB TEMPLATE "c:\ms4w\Apache\htdocs\bayern\bayern.html" IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END # Layer objects are defined beneath the map object. You need at least one # layer defined in your map file before you can display a map... You can # define as many layers as you'd like although a limit is typically hard-coded # in map.h in the MapServer source. The default limit is set at 100. You'd # have to have a very specialized application to need more than 100 layers in # your application. # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # Brovey raster layer begins here NAME "brov_rgb_composite" DATA "brov_rgb_composite.tif" STATUS OFF TYPE RASTER END # Brovey raster layer ends here LAYER # SRTM raster layer begins here NAME "srtm_u03_p193r027_2ndattemptimport" DATA "srtm_u03_p193r027_2ndattemptimport.tif" STATUS OFF TYPE RASTER END # SRTM raster layer ends here HERE begin the problems.......! from HERE..... LAYER # Geonet names NAME popl_anno STATUS DEFAULT DATA "GNS_subset.shp" TYPE POINT CLASSITEM "fc" LABELITEM "fnamend" CLASS NAME "Populated places" STYLE COLOR 232 20 20 END LABEL COLOR 132 31 31 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 TYPE TRUETYPE FONT arial SIZE 12 ANTIALIAS TRUE POSITION CL PARTIALS FALSE MINDISTANCE 300 BUFFER 4 END # end of label END # Label layer ends here ......................................TO HERE! LAYER # Lakes NAME bavaria_lakes DATA hydro_inwatera_lakes STATUS ON TYPE POLYGON # The class object is defined within the layer object. You can define as # many classes as you need (well, there are limits as with layers, but it's # senseless to define more than ten on a "normal" layer. There are # situations, however, where you might have to do it.) CLASS NAME "Bavaria Lakes" # There are styles in a class, just like there are classes in a layer, # just like there are layers in a map. You can define multiple styles in # a class just as you can define multiple classes in a layer and multiple # layers in a map. STYLE COLOR 20 20 232 OUTLINECOLOR 32 32 32 END END END # Bavaria lakes polygon layer ends here LAYER NAME bavaria_rivers DATA hydro_watrcrsl_river STATUS ON TYPE LINE CLASS NAME "Bavaria Rivers" STYLE COLOR 20 20 232 END END END # States line layer ends here # End of LAYER DEFINITIONS ------------------------------- END # All map files must come to an end just as all other things must come to... -------------- next part -------------- An HTML attachment was scrubbed... URL: From banders at REFRACTIONS.NET Thu Feb 2 10:23:54 2006 From: banders at REFRACTIONS.NET (Brock Anderson) Date: Thu, 2 Feb 2006 10:23:54 -0800 Subject: Can you help me with this map file? In-Reply-To: <43E24967.1070106@yahoo.co.uk> Message-ID: Jeremy, It looks like you are missing the END tag for your CLASS. Brock Jeremy Stocks wrote: > Hi there to the list. > > I have succeeded in downloading SRTM and Landsat from the GLCF, VMAP > Level 0 from the web and processing them in GRASS. I have done the > same with Geonet names from NIMA with the help of a pythin script an > internet buddy wrote for me. > > I am now trying to incorporate the label names into my Mapserver > application. Can anyone help? I have a problem with the below MAP > file. When I run Mapserver on my PC (standard Windows download > version) I receive this message: > > loadLayer(): Unknown identifier. Parsing error near (LAYER):(line 88) > > Is the MAP script wrong here? I am a newbie to MAPserver. > > For whatever help anyone gives I will be very grateful. > > Regards, > > Jeremy Stocks. > > Here is the script. The problem area is the bold italic section....... > > # The annotated map file (sort of) > # Created by Pericles S. Nacionales for the MapServer tutorial > # 20050408 > # > # MapServer map file uses the pound sign (#) to denote the start of a line > # comment--each line that needs to be commented has to be prepended > with a "#". > # > # Map files begin with MAP keyword to signify the start of the map object. > # Well, the entire map file is THE map object. Enclosed between MAP > and END > # at the very bottom of this map file, are keyword/value pairs and other > # objects. > MAP > IMAGETYPE PNG > EXTENT 658768.76306283 5255756.95394429 742048.26144778 > 5330768.35385309 > SIZE 700 500 > SHAPEPATH "\ms4w\Apache\htdocs\bayern" > IMAGECOLOR 255 255 255 > FONTSET "\ms4w\Apache\htdocs\bayern\fonts.list" > > > WEB > > TEMPLATE "c:\ms4w\Apache\htdocs\bayern\bayern.html" > IMAGEPATH "/ms4w/tmp/ms_tmp/" > > IMAGEURL "/ms_tmp/" > END > > > # Layer objects are defined beneath the map object. You need at > least one > # layer defined in your map file before you can display a map... > You can > # define as many layers as you'd like although a limit is typically > hard-coded > # in map.h in the MapServer source. The default limit is set at > 100. You'd > # have to have a very specialized application to need more than 100 > layers in > # your application. > > # Start of LAYER DEFINITIONS > --------------------------------------------- > > > > LAYER # Brovey raster layer begins here > NAME "brov_rgb_composite" > DATA "brov_rgb_composite.tif" > STATUS OFF > TYPE RASTER > END # Brovey raster layer ends here > > LAYER # SRTM raster layer begins here > NAME "srtm_u03_p193r027_2ndattemptimport" > DATA "srtm_u03_p193r027_2ndattemptimport.tif" > STATUS OFF > TYPE RASTER > END # SRTM raster layer ends here > > > HERE begin the problems.......! from HERE..... > > */LAYER # Geonet names > NAME popl_anno > STATUS DEFAULT > DATA "GNS_subset.shp" > TYPE POINT > > CLASSITEM "fc" > LABELITEM "fnamend" > > CLASS > NAME "Populated places" > > STYLE > COLOR 232 20 20 > END > > > LABEL > COLOR 132 31 31 > SHADOWCOLOR 218 218 218 > SHADOWSIZE 2 2 > TYPE TRUETYPE > FONT arial > SIZE 12 > ANTIALIAS TRUE > POSITION CL > PARTIALS FALSE > MINDISTANCE 300 > BUFFER 4 > END # end of label > > END # Label layer ends here/* > > ......................................TO HERE! > > > LAYER # Lakes > NAME bavaria_lakes > DATA hydro_inwatera_lakes > STATUS ON > TYPE POLYGON > > # The class object is defined within the layer object. You can > define as > # many classes as you need (well, there are limits as with layers, > but it's > # senseless to define more than ten on a "normal" layer. There are > # situations, however, where you might have to do it.) > CLASS > NAME "Bavaria Lakes" > > # There are styles in a class, just like there are classes in a layer, > # just like there are layers in a map. You can define multiple > styles in > # a class just as you can define multiple classes in a layer and > multiple > # layers in a map. > STYLE > COLOR 20 20 232 > OUTLINECOLOR 32 32 32 > END > END > END # Bavaria lakes polygon layer ends here > > LAYER > NAME bavaria_rivers > DATA hydro_watrcrsl_river > STATUS ON > TYPE LINE > > CLASS > NAME "Bavaria Rivers" > STYLE > COLOR 20 20 232 > END > END > END # States line layer ends here > > # End of LAYER DEFINITIONS ------------------------------- > > END # All map files must come to an end just as all other things must > come to... From jmckenna at DMSOLUTIONS.CA Thu Feb 2 10:24:10 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Thu, 2 Feb 2006 13:24:10 -0500 Subject: Can you help me with this map file? In-Reply-To: <43E24967.1070106@yahoo.co.uk> Message-ID: are you missing an END for the "Geonet names" layer? jeff Jeremy Stocks wrote: > Hi there to the list. > > I have succeeded in downloading SRTM and Landsat from the GLCF, VMAP > Level 0 from the web and processing them in GRASS. I have done the same > with Geonet names from NIMA with the help of a pythin script an internet > buddy wrote for me. > > I am now trying to incorporate the label names into my Mapserver > application. Can anyone help? I have a problem with the below MAP file. > When I run Mapserver on my PC (standard Windows download version) I > receive this message: > > loadLayer(): Unknown identifier. Parsing error near (LAYER):(line 88) > > Is the MAP script wrong here? I am a newbie to MAPserver. > > For whatever help anyone gives I will be very grateful. > > Regards, > > Jeremy Stocks. > > Here is the script. The problem area is the bold italic section....... > > # The annotated map file (sort of) > # Created by Pericles S. Nacionales for the MapServer tutorial > # 20050408 > # > # MapServer map file uses the pound sign (#) to denote the start of a line > # comment--each line that needs to be commented has to be prepended with > a "#". > # > # Map files begin with MAP keyword to signify the start of the map object. > # Well, the entire map file is THE map object. Enclosed between MAP and END > # at the very bottom of this map file, are keyword/value pairs and other > # objects. > MAP > IMAGETYPE PNG > EXTENT 658768.76306283 5255756.95394429 742048.26144778 > 5330768.35385309 > SIZE 700 500 > SHAPEPATH "\ms4w\Apache\htdocs\bayern" > IMAGECOLOR 255 255 255 > FONTSET "\ms4w\Apache\htdocs\bayern\fonts.list" > > > WEB > > TEMPLATE "c:\ms4w\Apache\htdocs\bayern\bayern.html" > IMAGEPATH "/ms4w/tmp/ms_tmp/" > > IMAGEURL "/ms_tmp/" > END > > > # Layer objects are defined beneath the map object. You need at least one > # layer defined in your map file before you can display a map... You can > # define as many layers as you'd like although a limit is typically > hard-coded > # in map.h in the MapServer source. The default limit is set at 100. > You'd > # have to have a very specialized application to need more than 100 > layers in > # your application. > > # Start of LAYER DEFINITIONS --------------------------------------------- > > > > LAYER # Brovey raster layer begins here > NAME "brov_rgb_composite" > DATA "brov_rgb_composite.tif" > STATUS OFF > TYPE RASTER > END # Brovey raster layer ends here > > LAYER # SRTM raster layer begins here > NAME "srtm_u03_p193r027_2ndattemptimport" > DATA "srtm_u03_p193r027_2ndattemptimport.tif" > STATUS OFF > TYPE RASTER > END # SRTM raster layer ends here > > > HERE begin the problems.......! from HERE..... > > */LAYER # Geonet names > NAME popl_anno > STATUS DEFAULT > DATA "GNS_subset.shp" > TYPE POINT > > CLASSITEM "fc" > LABELITEM "fnamend" > > CLASS > NAME "Populated places" > > STYLE > COLOR 232 20 20 > END > > > LABEL > COLOR 132 31 31 > SHADOWCOLOR 218 218 218 > SHADOWSIZE 2 2 > TYPE TRUETYPE > FONT arial > SIZE 12 > ANTIALIAS TRUE > POSITION CL > PARTIALS FALSE > MINDISTANCE 300 > BUFFER 4 > END # end of label > > END # Label layer ends here/* > > ......................................TO HERE! > > > LAYER # Lakes > NAME bavaria_lakes > DATA hydro_inwatera_lakes > STATUS ON > TYPE POLYGON > > # The class object is defined within the layer object. You can define as > # many classes as you need (well, there are limits as with layers, but > it's > # senseless to define more than ten on a "normal" layer. There are > # situations, however, where you might have to do it.) > CLASS > NAME "Bavaria Lakes" > > # There are styles in a class, just like there are classes in a layer, > # just like there are layers in a map. You can define multiple > styles in > # a class just as you can define multiple classes in a layer and > multiple > # layers in a map. > STYLE > COLOR 20 20 232 > OUTLINECOLOR 32 32 32 > END > END > END # Bavaria lakes polygon layer ends here > > LAYER > NAME bavaria_rivers > DATA hydro_watrcrsl_river > STATUS ON > TYPE LINE > > CLASS > NAME "Bavaria Rivers" > STYLE > COLOR 20 20 232 > END > END > END # States line layer ends here > > # End of LAYER DEFINITIONS ------------------------------- > > END # All map files must come to an end just as all other things must > come to... -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From jmckenna at DMSOLUTIONS.CA Thu Feb 2 10:26:13 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Thu, 2 Feb 2006 13:26:13 -0500 Subject: Can you help me with this map file? In-Reply-To: <43E24967.1070106@yahoo.co.uk> Message-ID: for the CLASS object i meant...i think you're missing an END in any case. jeff Jeremy Stocks wrote: > Hi there to the list. > > I have succeeded in downloading SRTM and Landsat from the GLCF, VMAP > Level 0 from the web and processing them in GRASS. I have done the same > with Geonet names from NIMA with the help of a pythin script an internet > buddy wrote for me. > > I am now trying to incorporate the label names into my Mapserver > application. Can anyone help? I have a problem with the below MAP file. > When I run Mapserver on my PC (standard Windows download version) I > receive this message: > > loadLayer(): Unknown identifier. Parsing error near (LAYER):(line 88) > > Is the MAP script wrong here? I am a newbie to MAPserver. > > For whatever help anyone gives I will be very grateful. > > Regards, > > Jeremy Stocks. > > Here is the script. The problem area is the bold italic section....... > > # The annotated map file (sort of) > # Created by Pericles S. Nacionales for the MapServer tutorial > # 20050408 > # > # MapServer map file uses the pound sign (#) to denote the start of a line > # comment--each line that needs to be commented has to be prepended with > a "#". > # > # Map files begin with MAP keyword to signify the start of the map object. > # Well, the entire map file is THE map object. Enclosed between MAP and END > # at the very bottom of this map file, are keyword/value pairs and other > # objects. > MAP > IMAGETYPE PNG > EXTENT 658768.76306283 5255756.95394429 742048.26144778 > 5330768.35385309 > SIZE 700 500 > SHAPEPATH "\ms4w\Apache\htdocs\bayern" > IMAGECOLOR 255 255 255 > FONTSET "\ms4w\Apache\htdocs\bayern\fonts.list" > > > WEB > > TEMPLATE "c:\ms4w\Apache\htdocs\bayern\bayern.html" > IMAGEPATH "/ms4w/tmp/ms_tmp/" > > IMAGEURL "/ms_tmp/" > END > > > # Layer objects are defined beneath the map object. You need at least one > # layer defined in your map file before you can display a map... You can > # define as many layers as you'd like although a limit is typically > hard-coded > # in map.h in the MapServer source. The default limit is set at 100. > You'd > # have to have a very specialized application to need more than 100 > layers in > # your application. > > # Start of LAYER DEFINITIONS --------------------------------------------- > > > > LAYER # Brovey raster layer begins here > NAME "brov_rgb_composite" > DATA "brov_rgb_composite.tif" > STATUS OFF > TYPE RASTER > END # Brovey raster layer ends here > > LAYER # SRTM raster layer begins here > NAME "srtm_u03_p193r027_2ndattemptimport" > DATA "srtm_u03_p193r027_2ndattemptimport.tif" > STATUS OFF > TYPE RASTER > END # SRTM raster layer ends here > > > HERE begin the problems.......! from HERE..... > > */LAYER # Geonet names > NAME popl_anno > STATUS DEFAULT > DATA "GNS_subset.shp" > TYPE POINT > > CLASSITEM "fc" > LABELITEM "fnamend" > > CLASS > NAME "Populated places" > > STYLE > COLOR 232 20 20 > END > > > LABEL > COLOR 132 31 31 > SHADOWCOLOR 218 218 218 > SHADOWSIZE 2 2 > TYPE TRUETYPE > FONT arial > SIZE 12 > ANTIALIAS TRUE > POSITION CL > PARTIALS FALSE > MINDISTANCE 300 > BUFFER 4 > END # end of label > > END # Label layer ends here/* > > ......................................TO HERE! > > > LAYER # Lakes > NAME bavaria_lakes > DATA hydro_inwatera_lakes > STATUS ON > TYPE POLYGON > > # The class object is defined within the layer object. You can define as > # many classes as you need (well, there are limits as with layers, but > it's > # senseless to define more than ten on a "normal" layer. There are > # situations, however, where you might have to do it.) > CLASS > NAME "Bavaria Lakes" > > # There are styles in a class, just like there are classes in a layer, > # just like there are layers in a map. You can define multiple > styles in > # a class just as you can define multiple classes in a layer and > multiple > # layers in a map. > STYLE > COLOR 20 20 232 > OUTLINECOLOR 32 32 32 > END > END > END # Bavaria lakes polygon layer ends here > > LAYER > NAME bavaria_rivers > DATA hydro_watrcrsl_river > STATUS ON > TYPE LINE > > CLASS > NAME "Bavaria Rivers" > STYLE > COLOR 20 20 232 > END > END > END # States line layer ends here > > # End of LAYER DEFINITIONS ------------------------------- > > END # All map files must come to an end just as all other things must > come to... -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From s_jubeh at YAHOO.COM Thu Feb 2 10:27:35 2006 From: s_jubeh at YAHOO.COM (salah jubeh) Date: Thu, 2 Feb 2006 10:27:35 -0800 Subject: QUERY& NQYERY Message-ID: Hello; i have problem such that i have feature data i want to query it , i have succeeded to do the query and i get a good result , after a while i needed to use PostGis so i stored the data in postgres Sql. now when i query the data i get something like this. ID ELEM_TEXT OwnerID ID_Cord ID_Cor_tex 1 [ID] [ELEM_TEXT] [ID_Cord] [ID_Cor_tex] 2 [ID] [ELEM_TEXT] [ID_Cord] [ID_Cor_tex] 3 [ID] [ELEM_TEXT] [ID_Cord] [ID_Cor_tex] 4 [ID] [ELEM_TEXT] [ID_Cord] [ID_Cor_tex] the same query string gives me a good result if i change the connection type "without postgis" is it a problem with mapserver or with postgis here the query string http://localhost:8015/cgi-bin/pg/mapserv.exe?mode=query& map=../../workshop/itasca.map &imgext=478415.19531584216+3932140.113529023+478943.19530859275+3932668.1135217734 &imgxy=184+295&imgbox=184+295+184+295 &imgsize=600+600 &layers=Flowpaths Best Regard Eng. Salah Al Jubeh MCP,MCAD,MCSD Mobile:00306947192421 --------------------------------- Bring words and photos together (easily) with PhotoMail - it's free and works with Yahoo! Mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: From naci0002 at UMN.EDU Thu Feb 2 11:38:37 2006 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Thu, 2 Feb 2006 13:38:37 -0600 Subject: QUERY& NQYERY In-Reply-To: <20060202182735.63849.qmail@web52712.mail.yahoo.com> Message-ID: You just discovered one of the many MapServer quirks. Use lowercase on your attribute tags, i.e. [id] instead of [ID], [id_cor_tex] instead of [ID_Cor_tex]. Cheers! -Perry salah jubeh wrote: > Hello; > > i have problem such that i have feature data i want to query it , i > have succeeded to do the query and i get a good result , after a while > i needed to use PostGis so i stored the data in postgres Sql. > > now when i query the data i get something like this. > > ID ELEM_TEXT OwnerID ID_Cord ID_Cor_tex > 1 [ID] [ELEM_TEXT] [ID_Cord] [ID_Cor_tex] > 2 [ID] [ELEM_TEXT] [ID_Cord] [ID_Cor_tex] > 3 [ID] [ELEM_TEXT] [ID_Cord] [ID_Cor_tex] > 4 [ID] [ELEM_TEXT] [ID_Cord] [ID_Cor_tex] > > the same query string gives me a good result if i change the > connection type "without postgis" > > is it a problem with mapserver or with postgis > > here the query string > http://localhost:8015/cgi-bin/pg/mapserv.exe?mode=query& > map=../../workshop/itasca.map > &imgext=478415.19531584216+3932140.113529023+478943.19530859275+3932668.1135217734 > &imgxy=184+295&imgbox=184+295+184+295 > &imgsize=600+600 > &layers=Flowpaths > > > > > > > *Best Regard > * > Eng. Salah Al Jubeh > > MCP,MCAD,MCSD > > > > Mobile:00306947192421 > > > > Bring words and photos together (easily) with > PhotoMail > > - it's free and works with Yahoo! Mail. From Vincent.Troisi at COLORADO.EDU Thu Feb 2 12:36:16 2006 From: Vincent.Troisi at COLORADO.EDU (Vincent J. Troisi) Date: Thu, 2 Feb 2006 13:36:16 -0700 Subject: On the fly conversion for compressed raster images Message-ID: I have raster images in zip, gzip, and/or tar format. I want to render these files via an html application and provide WMS services using MapServer 4.6, having the application automatically unzip, untar, uncompress the raster on the fly and either convert to a geotiff or use some other utility to present a png, jpg, or other standard format to the WMS client or the MapServer browse application. Any ideas you have on an approach that will allow me to maintain the storage of the raster images in their current packaging (zip, gzip, tar, etc.)? Thanks, Vince . From warmerdam at POBOX.COM Thu Feb 2 12:47:57 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 2 Feb 2006 15:47:57 -0500 Subject: On the fly conversion for compressed raster images In-Reply-To: <43E26D40.6070309@Colorado.EDU> Message-ID: On 2/2/06, Vincent J. Troisi wrote: > I have raster images in zip, gzip, and/or tar format. I want to render > these files via an html > application and provide WMS services using MapServer 4.6, having the > application > automatically unzip, untar, uncompress the raster on the fly and either > convert > to a geotiff or use some other utility to present a png, jpg, or other > standard format > to the WMS client or the MapServer browse application. Any ideas you have > on an approach that will allow me to maintain the storage of the raster > images > in their current packaging (zip, gzip, tar, etc.)? Vince, There is no support in mapserver for this currently. Depending on how badly you want to do this, I can think of a couple options. o Some operating systems have special filesystems that can make .zip files (and possibly .tar.gz) look like a subdirectory. If you can get the operating system to do the work, it should be fine with MapServer. o It would be theoretically possible to implement a "special filesystem handler" in GDAL to address this but it would require some coding. Once done it would still only work for file formats that work entirely through the "VSI*L" API. This is the same mechanism I use for memory based access to files with GDAL. Let me know if you want to follow up on this option. But ultimately your desire to operate from compressed archive files just seems like a bad idea not work the headaches to make it all work. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From neelima_umn at YAHOO.CO.IN Thu Feb 2 13:28:40 2006 From: neelima_umn at YAHOO.CO.IN (Neelima Emmani) Date: Thu, 2 Feb 2006 15:28:40 -0600 Subject: jbox - map image problem Message-ID: Hi, I am working with jbox and followed all the instructions given in the documnetation. Now my problem is i am not able to visualize the map image in the browser/web interface and a red cross is given in the topleft corner of the image box.But, i can see that the map image is stored in the temporary folder ms_tmp which is under htdocs folder of apache webserver. And also if i give the normal html statement for the map it is viewed in the browser, so i feel that there is some problem with applet code, but unable to find where it is. so, please can any one help me out.It will be very very helpful fo rme , if any one can find a solution for this. thanking u inadvance, here is the template code - Project

Example



Browse map
Query feature
Query multiple features



Reference Map



Legend



Map Controls


Select Layers to Display:

From trondmm-mapserver at CRUSADERS.NO Thu Feb 2 13:50:15 2006 From: trondmm-mapserver at CRUSADERS.NO (Trond Michelsen) Date: Thu, 2 Feb 2006 22:50:15 +0100 Subject: MAPSERVER & STYLE OBJECTS In-Reply-To: <1FEE21DC1054D5119FCC0002A5517B24056F2625@rws-mdi-dt2-01.agi.rws.minvenw.nl> Message-ID: On Tue, Jan 31, 2006 at 06:13:35AM -0800, Eijnden, B. van den (Bart) wrote: > Mapserver only supports the default style, which is the style you define in > your MAP file using CLASSes. > > It has no support for named styles, so if you want multiple styles for a > layer you need to duplicate your layers (if you do not wish to use SLD). Hmm. Would it be much work to get mapserver to pass through named styles to other WMS-servers? I have several WMS-layers in my mapserver map file, and it's a bit of a pain to create a separate layer for every style the other WMS-server can offer. -- Trond Michelsen From justin.fail at GMAIL.COM Thu Feb 2 14:11:19 2006 From: justin.fail at GMAIL.COM (Justin Fail) Date: Thu, 2 Feb 2006 16:11:19 -0600 Subject: Move a point dynamically Message-ID: Hi All, Just undertaking some research here. Trying to figure out if there is a method of dynamically moving a point on the map WITHOUT requiring a full map image refresh. I stumbled across the iBoatTrack sample a while ago and that did pretty much what I'm looking for. I know that I could use SVG to perform this task, but are there are other methods via mapscript or javascript that could perform this? Cheers, Justin From dylan.beaudette at GMAIL.COM Thu Feb 2 15:26:25 2006 From: dylan.beaudette at GMAIL.COM (Dylan Beaudette) Date: Thu, 2 Feb 2006 15:26:25 -0800 Subject: Intercepting clicks: DHTML Mapserver (landview) style interface Message-ID: Greetings, I am using the DHTML (old landview template) interface to mapserver, and was wondering if there is any way to intercept user clicks on the map itself: either via javascript or PHP. I would like to do a spatial query in a PostGIS-enabled DB with each user click, but so far have not been able to find the right "hooks" for doing so. I have a sneaking suspicion that it will require some asynchronous HTML voodoo... Any thoughts? Cheers, -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From erics at AMERI-TITLE.COM Thu Feb 2 16:44:56 2006 From: erics at AMERI-TITLE.COM (Eric Shuman) Date: Thu, 2 Feb 2006 18:44:56 -0600 Subject: shp2tile question Message-ID: I also have a similar problem. Don, did you come up with a good solution? I'm still new to mapserver and have not delved into the indexing capabilities yet. Can someone enlighten me? Here is my situation: I have a map set up that displays cadastral data as well as other layers such as streets and points of interest. From PHP I query the map by attribute for a taxlot ID. The map layer itself is set to the full extent of the data, and uses the parcel layer multiple times to show the query results, as well as for other symbology purposes. When the lot is found the map zooms to the extent of the results. The data extent covers an entire county so the layers are fairly large, and the map takes awhile to draw. The questions: In all cases the final extent is pretty small, maybe 1 square mile max. Should I be tiling my parcels layer with the shp2tile/ogrtindex combo and then creating a shptree on the resulting index? OR Should I just create a shptree on the parcels layer as well as all the other layers? Will the shptree help when doing an attribute query, or do I need to find a different solution for speeding up the attribute query? Any recomendations on how to speed things up? In addition I am serving up aerial photos. I have a 1Gig MrSid, but don't really want to get into building mapserver from scratch to add the functionality. So my though was to convert the SID to 2500 8Meg TIFF's, and then run a gdaltindex on them, then maybe a shptree on the index. Is this a sound plan? Other options? Does anyone have experience with the speed differences of MrSid vs. TIFF? Thanks for the help! ~Eric Shuman On Mon, 18 Apr 2005 10:20:23 -0400, Don Deskins wrote: >Steve, > >Thank you for your reply. > >I have experimented with different numbers and after reading a bit >more, I have discovered that it make no difference (in my case) how I >divide it up. As a matter of fact, my application performs SLOWER the >more files that I have. > >What I am trying to do is to display an area with parcels of land. I >have two identical layers... one to display all of the parcels and the >other to only display the selected parcel. It is extremely slow when >querying for by parcel id. Because of this, I need to put the second >layer (at least) in a database so that the parcelid field can be >indexed. > >Thanks, > >Don > >On 4/11/05, Stephen Woodbridge wrote: >> Don, >> >> Like I said there is no magic number. If you are most showing all your >> parcels most of the time then there is not value in having it tiled. One >> of the MOST important performance issues is to make sure all your *.shp >> files have a *.qix file. >> >> Try a different set of tiling parameters and test it again. >> >> Did you have *.qix on you original shapefile? If not go back to that and >> add one (shptree file.shp) and see how it performs untiled. >> >> -Steve >> >> Don Deskins wrote: >> > Bart and Steve, >> > >> > My shapefiles are showing up now... thanks! >> > >> > Now I have a time problem... It seems to take more time to generate >> > the image than it did before. I am checking for errors now. >> > >> > Thanks again. >> > >> > Don >> > >> > >> > On Apr 11, 2005 3:28 PM, Bart van den Eijnden wrote: >> > >> >>Hi Don, >> >> >> >>check the dbf of your generated tileindex (the LOCATION field). I usually >> >>use absolute paths in there. Are there absolute or relative paths to the >> >>files in there? >> >> >> >>Also use TYPE POLYGON. Are you zoomed in enough to have your layer showing >> >>up, since you are using a MAXSCALE setting? >> >> >> >>Best regards, >> >>Bart >> >> >> >>On Mon, 11 Apr 2005 15:24:45 -0400, Don Deskins >> >>wrote: >> >> >> >> >> >>>Bart (and Steve), >> >>> >> >>>Thanks. >> >>> >> >>>I have my files created and tried to reference this index in my map file: >> >>> >> >>> #################################### >> >>> # parcels >> >>> LAYER >> >>> NAME 'tileindex' >> >>> TYPE TILEINDEX >> >>> DATA '/path/to/tileindex' >> >>> MAXSCALE 40000 >> >>> END >> >>> >> >>> LAYER >> >>> NAME 'SCAP_Cert2004_ParcelsUTM16M' >> >>> STATUS ON >> >>> TYPE POLYGON >> >>> TILEINDEX '/path/to/tileindex' >> >>> #TILEITEM 'LOCATION' >> >>> MAXSCALE 40000 >> >>> END >> >>> #################################### >> >>> >> >>>I get no error but my shapes are not showing up... do you see a >> >>>problem with the above map? >> >>> >> >>>Don >> >>> >> >>>On Apr 11, 2005 2:58 PM, Bart van den Eijnden wrote: >> >>> >> >>>>Hi, >> >>>> >> >>>>It is tile4ms, not tile2ms, probably a typo by Steve. >> >>>> >> >>>>It is a Mapserver utility to make a tileindex. Alternatively, you can >> >>>>also >> >>>>use ogrtindex for vector layers and gdaltindex for raster layers. >> >>>> >> >>>>Best regards, >> >>>>Bart >> >>>> >> >>> >> >>-- >> >>Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ >> >> >> > >> > >> > >> > -- >> > Don Deskins >> > >> >> > > >-- >Don Deskins From woodbri at SWOODBRIDGE.COM Thu Feb 2 17:10:52 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 2 Feb 2006 20:10:52 -0500 Subject: shp2tile question In-Reply-To: Message-ID: Eric, Here is how you should optimize mapserver: 1) every *.shp file should have a shptree index, (ie: a corresponding *.qix) if you haven't done this then don't think about anything else. This includes on all TILEINDEX shp files also. 2) If you have large numbers of objects that you need to do attribute queries on consider using postgis for just those layers. 3) I will let others comment on rasters and how to optimize them 4) Set "DEBUG ON" in the mapfile and create a LOG file, then do a typical mapdraw and look at how long each layer took to draw. Then tell us about that if it is not obvious how to fix that performance issue. 5) As a last resort, if you have REALLY HUGE shapefiles and they are drawing very slowly then consider using shp2tile, but talk about here on the list first. Let us know if this helps and what your problems are after you have tried this. -Steve W. http://imaptools.com/ Eric Shuman wrote: > I also have a similar problem. Don, did you come up with a good solution? > I'm still new to mapserver and have not delved into the indexing > capabilities yet. Can someone enlighten me? > > Here is my situation: > I have a map set up that displays cadastral data as well as other layers > such as streets and points of interest. From PHP I query the map by > attribute for a taxlot ID. The map layer itself is set to the full extent > of the data, and uses the parcel layer multiple times to show the query > results, as well as for other symbology purposes. When the lot is found the > map zooms to the extent of the results. The data extent covers an entire > county so the layers are fairly large, and the map takes awhile to draw. > > The questions: > In all cases the final extent is pretty small, maybe 1 square mile max. > Should I be tiling my parcels layer with the shp2tile/ogrtindex combo and > then creating a shptree on the resulting index? OR Should I just create a > shptree on the parcels layer as well as all the other layers? Will the > shptree help when doing an attribute query, or do I need to find a different > solution for speeding up the attribute query? Any recomendations on how to > speed things up? > > In addition I am serving up aerial photos. I have a 1Gig MrSid, but don't > really want to get into building mapserver from scratch to add the > functionality. So my though was to convert the SID to 2500 8Meg TIFF's, and > then run a gdaltindex on them, then maybe a shptree on the index. Is this a > sound plan? Other options? Does anyone have experience with the speed > differences of MrSid vs. TIFF? > > Thanks for the help! > > ~Eric Shuman > > > > On Mon, 18 Apr 2005 10:20:23 -0400, Don Deskins wrote: > > >>Steve, >> >>Thank you for your reply. >> >>I have experimented with different numbers and after reading a bit >>more, I have discovered that it make no difference (in my case) how I >>divide it up. As a matter of fact, my application performs SLOWER the >>more files that I have. >> >>What I am trying to do is to display an area with parcels of land. I >>have two identical layers... one to display all of the parcels and the >>other to only display the selected parcel. It is extremely slow when >>querying for by parcel id. Because of this, I need to put the second >>layer (at least) in a database so that the parcelid field can be >>indexed. >> >>Thanks, >> >>Don >> >>On 4/11/05, Stephen Woodbridge wrote: >> >>>Don, >>> >>>Like I said there is no magic number. If you are most showing all your >>>parcels most of the time then there is not value in having it tiled. One >>>of the MOST important performance issues is to make sure all your *.shp >>>files have a *.qix file. >>> >>>Try a different set of tiling parameters and test it again. >>> >>>Did you have *.qix on you original shapefile? If not go back to that and >>>add one (shptree file.shp) and see how it performs untiled. >>> >>>-Steve >>> >>>Don Deskins wrote: >>> >>>>Bart and Steve, >>>> >>>>My shapefiles are showing up now... thanks! >>>> >>>>Now I have a time problem... It seems to take more time to generate >>>>the image than it did before. I am checking for errors now. >>>> >>>>Thanks again. >>>> >>>>Don >>>> >>>> >>>>On Apr 11, 2005 3:28 PM, Bart van den Eijnden wrote: >>>> >>>> >>>>>Hi Don, >>>>> >>>>>check the dbf of your generated tileindex (the LOCATION field). I usually >>>>>use absolute paths in there. Are there absolute or relative paths to the >>>>>files in there? >>>>> >>>>>Also use TYPE POLYGON. Are you zoomed in enough to have your layer showing >>>>>up, since you are using a MAXSCALE setting? >>>>> >>>>>Best regards, >>>>>Bart >>>>> >>>>>On Mon, 11 Apr 2005 15:24:45 -0400, Don Deskins >>>>>wrote: >>>>> >>>>> >>>>> >>>>>>Bart (and Steve), >>>>>> >>>>>>Thanks. >>>>>> >>>>>>I have my files created and tried to reference this index in my map file: >>>>>> >>>>>> #################################### >>>>>> # parcels >>>>>> LAYER >>>>>> NAME 'tileindex' >>>>>> TYPE TILEINDEX >>>>>> DATA '/path/to/tileindex' >>>>>> MAXSCALE 40000 >>>>>> END >>>>>> >>>>>> LAYER >>>>>> NAME 'SCAP_Cert2004_ParcelsUTM16M' >>>>>> STATUS ON >>>>>> TYPE POLYGON >>>>>> TILEINDEX '/path/to/tileindex' >>>>>> #TILEITEM 'LOCATION' >>>>>> MAXSCALE 40000 >>>>>> END >>>>>> #################################### >>>>>> >>>>>>I get no error but my shapes are not showing up... do you see a >>>>>>problem with the above map? >>>>>> >>>>>>Don >>>>>> >>>>>>On Apr 11, 2005 2:58 PM, Bart van den Eijnden wrote: >>>>>> >>>>>> >>>>>>>Hi, >>>>>>> >>>>>>>It is tile4ms, not tile2ms, probably a typo by Steve. >>>>>>> >>>>>>>It is a Mapserver utility to make a tileindex. Alternatively, you can >>>>>>>also >>>>>>>use ogrtindex for vector layers and gdaltindex for raster layers. >>>>>>> >>>>>>>Best regards, >>>>>>>Bart >>>>>>> >>>>>> >>>>>-- >>>>>Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ >>>>> >>>> >>>> >>>> >>>>-- >>>>Don Deskins >>>> >>> >>> >> >>-- >>Don Deskins > > From bill at BINKO.NET Thu Feb 2 23:06:18 2006 From: bill at BINKO.NET (Bill Binko) Date: Fri, 3 Feb 2006 02:06:18 -0500 Subject: Visualizing Point Data Message-ID: Hi everyone, I posted a fairly specific question to the GDAL-dev list (and more on IRC) the other day, asking for input on how to do Kernel Density mapping using an OGR data source and sending the raster back through GDAL to be displayed through Mapserver. I got some good responses, one of which was: are you sure that's what you want? Well, to be honest, I don't know. So I'm posting a more general question here, hoping that someone in this larger audience has solved the problem I'm facing. What I'm trying to do is visualize point data (stored in PostGIS, but that can change) so that users can determine where the points are concentrated, even while zoomed out. One caveat is that the points can be coincident (identical Lat/Long). For example, I'd use this with include recent real estate sales data - condos in the same building have the same shape, but both sales should count. Similarly, in a customer counting scenario, two customers with the same address (even only to the building level) will geocode to the same lat/long. When Mapserver serves up Point layers directly, the results can be quite disappointing (and misleading). In Mapserver, the last Point to be drawn on any spot will just hide the previous points, often hiding multiple data points. Similarly, when you zoom out on a point diagram, there are two options: either you set the symbol to have a max size (so that eventually, they become "less than clear"), or you keep the symbol size constant, eventually obliterating the background with huge blobs of overlapping points. When I tried to tackle this problem, I turned to a Real Estate Geography book I have (written by professor Thrall at my alma mater) http://www.amazon.com/gp/product/0195076362/sr=1-2/qid=1138949940/ref=sr_1_2/104-4827941-6490312?%5Fencoding=UTF8 There, he is discussing Site Selection and Customer Spotting methods, and he discusses the Kernel Density method of generating a surface map showing where the customers live. The discussion is brief, but the GDAL folks pointed me to two tools (parts of R and GRASS respectively) that can take points and generate kernel surfaces. With some magic, contour maps, and other visualizations could be pushed through GDAL and into Mapserver. However, with further inspection, these methods all work on distance between customers, which causes a problem with coincident points. I am thinking that this problem must have been solved by someone out in this audience, so at this point, I'm very open to suggestions. I am very willing (and fairly able) to implement any custom software the solution my require. I have considered filters between GDAL and OGR, or stand alone processing that generates the needed data. I'm also very happy to feed it back to the community, if there's interest. (So, basically, I will trade working code for modeling/GIS/statistics knowledge if anyone's interested :) Thanks, Bill From luca76 at GMAIL.COM Thu Feb 2 23:06:38 2006 From: luca76 at GMAIL.COM (Luca Manganelli) Date: Fri, 3 Feb 2006 08:06:38 +0100 Subject: Optimizing attribute search time. Message-ID: Hi, there's a way to optimize attribute search time in mapserver? I.E.: i have a 17MB dbf (with its shp file) of streets with names. Mapserver isn't fast: a search on an Athlon 3400+ and 2GB RAM ends in 6 seconds, which is unacceptable for us. Is there any way to improve the time? 1-2 seconds would be good. -- "An algorithm must be seen to be believed." -- Donald Knuth, in "Fundamental Algorithms" http://www.trapanator.com/blog From mh at SVAJ.DK Fri Feb 3 00:13:05 2006 From: mh at SVAJ.DK (Martin Hoegh) Date: Fri, 3 Feb 2006 02:13:05 -0600 Subject: Intercepting clicks: DHTML Mapserver (landview) style interface Message-ID: Hi, The trick is to catch the x,y pixel coords from the user click on the mapserver generated map image, translate them into world coords of the projection you are using (or lat/lon) and then generate a sql and fire that against the database server. This is the approach which the dhtml interface called AppForMap on mapuse.net is using. It uses a small javascript called libs/getClickPosition.js (in the cvs tree) to insure cross browser support for the click. The sql query and all the coord translating stuff are done on the server using php. There is actually no need for asynchronous HTML voodoo, you could reload the whole page for every click, but in these AJAX times this is not considered cool. So therefore AppForMap also support asynchronous javascript and xml in the next version, which I believed is to be released this weekend. /martin From vndsekar at YAHOO.COM Fri Feb 3 00:08:40 2006 From: vndsekar at YAHOO.COM (N Dhanasekar) Date: Fri, 3 Feb 2006 00:08:40 -0800 Subject: dynamic annotation Message-ID: hi to all i am trying to generate online map as per user requirement, so i want put a dynamic annotation layer on map. i am using php_mapscript4.2, any one can help me how to add a dynamic annotation layer or change the text string in my annotation layer dynamically my .map contain a annotation layer like this LAYER NAME "NICHEAD2" STATUS ON TRANSFORM FALSE TYPE ANNOTATION FEATURE # POINTS 0.045164250 0.030654 POINTS 300 50 END END CLASS TEXT "Severe Mal-Nourished Children" LABEL TYPE TRUETYPE FONT arial-bold SIZE 15 ANTIALIAS TRUE COLOR 255 204 0 POSITION UR FORCE TRUE END END END i want to chage the text dynamically thanks nds --------------------------------- Brings words and photos together (easily) with PhotoMail - it's free and works with Yahoo! Mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: From fabio.dovidio at PLANETEK.IT Fri Feb 3 01:51:33 2006 From: fabio.dovidio at PLANETEK.IT (Fabio D' Ovidio) Date: Fri, 3 Feb 2006 10:51:33 +0100 Subject: CONVERT MAPFILE FROM MAPSERV 3.7 to MAPSERV 4.4.1 (BINAR Message-ID: Hi list, Does anyone tell me how to convert the following map file written for mapserver 3.7 into map file for mapserver 4.4.1 ? I'm working on windows machine (2000) and I've installed binaries. MAP NAME "Cai_Castrovillari" STATUS ON EXTENT 2566408.89 4383059.62 2669032.82 4456686.05 SIZE 600 420 SHAPEPATH "data" SYMBOLSET "c:/Inetpub/wwwroot/maplab-2.0rc5/tutorial/etc/symbols.sym" FONTSET "c:/Inetpub/wwwroot/maplab-2.0rc5/tutorial/etc/fonts.txt" IMAGECOLOR 255 255 255 IMAGETYPE PNG WEB # path relative to the webserver document root #MINSCALE 1000 #MAXSCALE 1550000 IMAGEPATH "C:/Siti_Web/CAI_Castrovillari/carto/tmp/" # full path to image tmp dir, so cgi can find it # Note: Windows is much happier with a full path here. Unixes might get away with path relative to cgi-bin. # Use backslash "\" with Windows, forward-slash "/" with Unixes, and end the path with the proper slash. IMAGEURL "./tmp/" TEMPLATE "printable.html" EMPTY "/carto/info.html" METADATA "wms_title" "CAI-Castrovillari" "wms_onlineresource" "http://caicastrovillari.planetek.it/cgi-bin/aree_prod?" "wms_srs" "EPSG:4269 EPSG:4326" END # url location of image tmp dir, so web browser can find it # Don't forget a trailing "/" here, too END REFERENCE STATUS ON IMAGE "graphics/clearmap.gif" SIZE 150 128 EXTENT 2566408.89 4383059.62 2669032.82 4456686.05 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END QUERYMAP STATUS off COLOR 255 255 0 STYLE SELECTED END # Web Interface Options PROJECTION "proj=latlong" "lat_1=32" "lat_2=44" "lat_0=38" "lon_0=-100" "x_0=0" "y_0=0" "ellps=GRS80" "datum=NAD83" END # LEGEND object LEGEND STATUS ON KEYSIZE 18 12 TEMPLATE "legend.html" # LABEL object LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END # Scalebar SCALEBAR STATUS EMBED COLOR 66 136 200 OUTLINECOLOR 66 136 99 BACKGROUNDCOLOR 255 255 255 IMAGECOLOR 255 255 255 TRANSPARENT ON UNITS KILOMETERS INTERVALS 5 SIZE 200 5 STYLE 0 POSITION LL LABEL SIZE medium COLOR 0 0 0 OUTLINECOLOR 255 255 255 END END SYMBOL NAME "rettangolo" TYPE VECTOR FILLED FALSE POINTS 0 0 0 0.6 1 0.6 1 0 0 0 END END SYMBOL NAME "linea-punto" TYPE ELLIPSE FILLED TRUE POINTS 1 1 END STYLE 10 5 1 5 END END SYMBOL NAME "border2" TYPE ELLIPSE POINTS 1 1 END STYLE 10 5 10 5 END END LAYER NAME "DEM" STATUS ON DATA "DEM.ecw" TYPE RASTER TEMPLATE "ttt.html" METADATA "wms_title" "DEM Parco Nazionale del Pollino" END END LAYER NAME "U_CS_635" STATUS ON DATA "sentiero 4.shp" TYPE LINE TEMPLATE "ttt.html" METADATA "wms_title" "U CS 635" END CLASS NAME "sentiero 4.shp" SYMBOL "border2" COLOR 255 0 0 SIZE 2 TEXT "U CS 635" END END etc etc..... From baas at SPEERIT.NL Fri Feb 3 02:56:36 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Fri, 3 Feb 2006 11:56:36 +0100 Subject: Mapserver not working in IIS, it DOES work command-line Message-ID: Hello everyone, After a lot of struggling with my maps, I finally have a test envirioment up and running. Now I'm moving the whole lot to the server, and this gives me a huge problem. When I try to generate a map, I am presented with: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The querystring is good, as is the mapfile (since it all works on my test machine). Info: - Windows Server 2003, IIS6.0, fully updated - Oracle Mapinfo package from http://hobu.stat.iastate.edu/mapserver/. - Works in cmd (mapserv.exe "QUERY_STRING=mode=map&map=cocon. map&mapext=-70000+280000+400000+630000&mapsize=640+480&layers=netherlands" > test.jpg) - I set rights for everyone to full control - IIS CAN execute even unknown CGI files. I'm out of ideas here. Can anyone help? If I at least had a normal error message... Thanks in advance, Jelmer Baas From fsimon at UNIVALI.BR Fri Feb 3 03:23:25 2006 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Fri, 3 Feb 2006 09:23:25 -0200 Subject: Mapserver not working in IIS, it DOES work command-line In-Reply-To: <43E336E4.90304@speerit.nl> Message-ID: Hi Jelmer, In Oracle case, you need the Oracle environments (ORACLE_HOME, ORACLE_BASE...) for the user that runs IIS. Another point is that you need the Oracle Call Interfaces installed in machine. The last issue for Oracle is that you need permission, for the user that run IIS, to access the Oracle home installation, just a read mode can be. Best regards. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ Jelmer Baas wrote: > Hello everyone, > > After a lot of struggling with my maps, I finally have a test > envirioment up and running. Now I'm moving the whole lot to the > server, and this gives me a huge problem. When I try to generate a > map, I am presented with: > > CGI Error > > The specified CGI application misbehaved by not returning a complete > set of HTTP headers. > > The querystring is good, as is the mapfile (since it all works on my > test machine). > > Info: > - Windows Server 2003, IIS6.0, fully updated > - Oracle Mapinfo package from http://hobu.stat.iastate.edu/mapserver/. > - Works in cmd (mapserv.exe "QUERY_STRING=mode=map&map=cocon. > map&mapext=-70000+280000+400000+630000&mapsize=640+480&layers=netherlands" > > test.jpg) > - I set rights for everyone to full control > - IIS CAN execute even unknown CGI files. > > I'm out of ideas here. Can anyone help? If I at least had a normal > error message... > > > Thanks in advance, > Jelmer Baas > From lichte at ICBM.DE Fri Feb 3 03:29:52 2006 From: lichte at ICBM.DE (Oliver Lichte) Date: Fri, 3 Feb 2006 12:29:52 +0100 Subject: dynamic annotation In-Reply-To: <20060203080840.63931.qmail@web31212.mail.mud.yahoo.com> Message-ID: Hi, try something like this: where, $map:mapObj ... $lay = $map->getLayerByName( "NICHEAD2" ); $cls = $lay->getClass(0); // works only if the class is the first defined $cls->setText( "Your new text" ); ... You may get problems with the alignment of the text in the image but other attributes of the classObj can be changed similar. Cheers, Oliver Am Freitag, 3. Februar 2006 09:08 schrieb N Dhanasekar: > hi to all > > i am trying to generate online map as per user requirement, so i want put > a dynamic annotation layer on map. i am using php_mapscript4.2, any one can > help me how to add a dynamic annotation layer or change the text string in > my annotation layer dynamically > > my .map contain a annotation layer like this > LAYER > NAME "NICHEAD2" > STATUS ON > TRANSFORM FALSE > TYPE ANNOTATION > FEATURE > # POINTS 0.045164250 0.030654 > POINTS 300 50 > END > END > CLASS > TEXT "Severe Mal-Nourished Children" > LABEL > TYPE TRUETYPE > FONT arial-bold > SIZE 15 > ANTIALIAS TRUE > COLOR 255 204 0 > POSITION UR > FORCE TRUE > END > END > END > > i want to chage the text dynamically > thanks > > nds > > > > --------------------------------- > Brings words and photos together (easily) with > PhotoMail - it's free and works with Yahoo! Mail. -- Junior Research Group IMPULSE ICBM * Carl-v.-Ossietzky University of Oldenburg PO-Box 2503 * 26111 Oldenburg - Germany - http://www.icbm.de/impulse room: W15-2-239 * fon:+49-441-798-3622 * fax:+49-441-798-3404 From punkish at EIDESIS.ORG Fri Feb 3 05:48:55 2006 From: punkish at EIDESIS.ORG (Puneet Kishor) Date: Fri, 3 Feb 2006 07:48:55 -0600 Subject: Optimizing attribute search time. In-Reply-To: Message-ID: Luca Manganelli wrote: > Hi, > > there's a way to optimize attribute search time in mapserver? > I.E.: i have a 17MB dbf (with its shp file) of streets with names. > Mapserver isn't fast: a search on an Athlon 3400+ and 2GB RAM > ends in 6 seconds, which is unacceptable for us. have you benchmarked your app? Which part is slow? Is it slow searching through the dbf or finding the relevant shape? Are you using MapScript or CGI? > > Is there any way to improve the time? 1-2 seconds would be good. put the dbf in a real database. From osgis.lists at GMAIL.COM Fri Feb 3 06:54:39 2006 From: osgis.lists at GMAIL.COM (David Bitner) Date: Fri, 3 Feb 2006 08:54:39 -0600 Subject: Visualizing Point Data In-Reply-To: Message-ID: Given that you are already using PostGIS, you should know that R can be integrated into PostgreSQL as well using PL/R. That being said, this could also just be an exercise in writing some functions in PL/PGSQL so that you could just query that function from Mapserver. Just brainstorming here, but you could possibly calculate a buffer for each point and for each cluster where there is an intersection (this would include coincident points) and then clump points together where the buffers overlap and place the point at the average x,y while creating a count at the same time. You could then symbolize by this count so that you know a blue dot contained one point while a red point contained 5 data points. You might try throwing this question out to the PostGIS list and see what you get there. Whatever you figure out, I would be very interested to see. Please post back to either this list or the PostGIS list when you get something figured out. On my list for the near future is to get this type of algorithm in Javascript to work with GeoRSS so that I can place points from a GeoRSS while clumping the data together. David On 2/3/06, Bill Binko wrote: > Hi everyone, > > I posted a fairly specific question to the GDAL-dev list (and more on IRC) > the other day, asking for input on how to do Kernel Density mapping using > an OGR data source and sending the raster back through GDAL to be > displayed through Mapserver. > > I got some good responses, one of which was: are you sure that's what you > want? Well, to be honest, I don't know. So I'm posting a more general > question here, hoping that someone in this larger audience has solved the > problem I'm facing. > > What I'm trying to do is visualize point data (stored in PostGIS, but that > can change) so that users can determine where the points are concentrated, > even while zoomed out. One caveat is that the points can be coincident > (identical Lat/Long). > > For example, I'd use this with include recent real estate sales data - > condos in the same building have the same shape, but both sales should > count. Similarly, in a customer counting scenario, two customers with the > same address (even only to the building level) will geocode to the same > lat/long. > > When Mapserver serves up Point layers directly, the results can be quite > disappointing (and misleading). In Mapserver, the last Point to be drawn > on any spot will just hide the previous points, often hiding multiple data > points. > > Similarly, when you zoom out on a point diagram, there are two options: > either you set the symbol to have a max size (so that eventually, they > become "less than clear"), or you keep the symbol size constant, > eventually obliterating the background with huge blobs of overlapping > points. > > When I tried to tackle this problem, I turned to a Real Estate Geography > book I have (written by professor Thrall at my alma mater) > http://www.amazon.com/gp/product/0195076362/sr=1-2/qid=1138949940/ref=sr_1_2/104-4827941-6490312?%5Fencoding=UTF8 > > There, he is discussing Site Selection and Customer Spotting methods, > and he discusses the Kernel Density method of generating a surface map > showing where the customers live. The discussion is brief, but the GDAL > folks pointed me to two tools (parts of R and GRASS respectively) that can > take points and generate kernel surfaces. With some magic, contour maps, > and other visualizations could be pushed through GDAL and into Mapserver. > > However, with further inspection, these methods all work on distance > between customers, which causes a problem with coincident points. > > I am thinking that this problem must have been solved by someone out in > this audience, so at this point, I'm very open to suggestions. > > I am very willing (and fairly able) to implement any custom software the > solution my require. I have considered filters between GDAL and OGR, or > stand alone processing that generates the needed data. I'm also very > happy to feed it back to the community, if there's interest. > > (So, basically, I will trade working code for modeling/GIS/statistics > knowledge if anyone's interested :) > > Thanks, > > Bill > From sgillies at FRII.COM Fri Feb 3 07:00:10 2006 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 3 Feb 2006 08:00:10 -0700 Subject: Visualizing Point Data In-Reply-To: Message-ID: On Feb 3, 2006, at 12:06 AM, Bill Binko wrote: > Hi everyone, > > I posted a fairly specific question to the GDAL-dev list (and more > on IRC) > the other day, asking for input on how to do Kernel Density mapping > using > an OGR data source and sending the raster back through GDAL to be > displayed through Mapserver. > > I got some good responses, one of which was: are you sure that's > what you > want? Well, to be honest, I don't know. So I'm posting a more > general > question here, hoping that someone in this larger audience has > solved the > problem I'm facing. > > What I'm trying to do is visualize point data (stored in PostGIS, > but that > can change) so that users can determine where the points are > concentrated, > even while zoomed out. One caveat is that the points can be > coincident > (identical Lat/Long). > > For example, I'd use this with include recent real estate sales data - > condos in the same building have the same shape, but both sales should > count. Similarly, in a customer counting scenario, two customers > with the > same address (even only to the building level) will geocode to the > same > lat/long. > > When Mapserver serves up Point layers directly, the results can be > quite > disappointing (and misleading). In Mapserver, the last Point to be > drawn > on any spot will just hide the previous points, often hiding > multiple data > points. > > Similarly, when you zoom out on a point diagram, there are two > options: > either you set the symbol to have a max size (so that eventually, they > become "less than clear"), or you keep the symbol size constant, > eventually obliterating the background with huge blobs of overlapping > points. > > When I tried to tackle this problem, I turned to a Real Estate > Geography > book I have (written by professor Thrall at my alma mater) > http://www.amazon.com/gp/product/0195076362/sr=1-2/qid=1138949940/ > ref=sr_1_2/104-4827941-6490312?%5Fencoding=UTF8 > > There, he is discussing Site Selection and Customer Spotting methods, > and he discusses the Kernel Density method of generating a surface map > showing where the customers live. The discussion is brief, but the > GDAL > folks pointed me to two tools (parts of R and GRASS respectively) > that can > take points and generate kernel surfaces. With some magic, contour > maps, > and other visualizations could be pushed through GDAL and into > Mapserver. > > However, with further inspection, these methods all work on distance > between customers, which causes a problem with coincident points. > > I am thinking that this problem must have been solved by someone > out in > this audience, so at this point, I'm very open to suggestions. > > I am very willing (and fairly able) to implement any custom > software the > solution my require. I have considered filters between GDAL and > OGR, or > stand alone processing that generates the needed data. I'm also very > happy to feed it back to the community, if there's interest. > > (So, basically, I will trade working code for modeling/GIS/statistics > knowledge if anyone's interested :) > > Thanks, > > Bill Great synopsis, Bill. I'm looking forward to learning more about this. One very simple-minded solution that MapServer *should* support is drawing points with a low (say 10%) opacity, and simply painting them over each other in an additive way. Currently, MapServer has transparency only at the layer (not feature) level, and so this will not work. I haven't had a real need for this yet, and so I haven't been able to justify the cost of developing it. cheers, Sean --- Sean Gillies sgillies at frii dot com http://zcologia.com/news From jerl.simpso at GMAIL.COM Fri Feb 3 07:05:28 2006 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Fri, 3 Feb 2006 09:05:28 -0600 Subject: tile4ms question Message-ID: I'm not sure if this should be posted here or not, if not please point me to the right place. I'm having trouble with tile4ms opening the files from at least one of my Metafile.txt files. The command I run is as follows: tile4ms Metafile.txt tileindex error is: Aborted. Unable to open SHP:/var/mapping/tiger_2005/PriRoad/tiles/PriRoad_0037.200_-105.400 I thought maybe my filename was too long, but I checked the source, 255 is the max. So I'm OK there. ogrinfo has this to say about the file: ------------------------------------------------------------------------------------------- Layer name: PriRoad_0037.200_-105.400 Geometry: Line String Feature Count: 459 Extent: (-104.835908, 36.412144) - (-104.424129, 37.988177) Layer SRS WKT: GEOGCS["NAD83", DATUM["North_American_Datum_1983", SPHEROID["GRS 1980",6378137,298.257222101]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]] MODULE: String (8.0) CFCC: String (3.0) FENAME: String (30.0) FETYPE: String (4.0) ------------------------------------------------------------------------------------------- I'm running mapserver version 4.6.0, should I upgrade to 4.8.0? The shape is a small file, 50K, so I can provide it if need be. thanks Jerl -------------- next part -------------- An HTML attachment was scrubbed... URL: From fabio.dovidio at PLANETEK.IT Fri Feb 3 06:18:18 2006 From: fabio.dovidio at PLANETEK.IT (Fabio D' Ovidio) Date: Fri, 3 Feb 2006 15:18:18 +0100 Subject: Mapserver WINDOWS 2003 Compatibility Message-ID: Does anyone Know if are there compatibility problems between mapserver and windows 2003 ? thank u ! fabio From punkish at EIDESIS.ORG Fri Feb 3 07:18:05 2006 From: punkish at EIDESIS.ORG (Puneet Kishor) Date: Fri, 3 Feb 2006 09:18:05 -0600 Subject: Mapserver WINDOWS 2003 Compatibility In-Reply-To: <43E3743A.18906.140FCBA@fabio.dovidio.planetek.it> Message-ID: Fabio D' Ovidio wrote: > Does anyone Know if are there compatibility problems between mapserver and windows > 2003 ? I have no idea, and I can't see why it should... it is just a well-behaved C program. But who am I to day -- I didn't even know there was something called Windows 2003 (I am assuming that was what came out in 2003). All that said, wouldn't it be just easier to tell us if you are experiencing any incompatibility problems? Unless you are trying to do a preemptive strike. My suggestion -- put it on and see if it works, and if it doesn't then report the errors. From woodbri at SWOODBRIDGE.COM Fri Feb 3 07:19:48 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 3 Feb 2006 10:19:48 -0500 Subject: Visualizing Point Data In-Reply-To: Message-ID: On Feb 3, 2006, at 12:06 AM, Bill Binko wrote: > Hi everyone, > > I posted a fairly specific question to the GDAL-dev list (and more > on IRC) > the other day, asking for input on how to do Kernel Density mapping > using an OGR data source and sending the raster back through GDAL to > be displayed through Mapserver. > > I got some good responses, one of which was: are you sure that's > what you want? Well, to be honest, I don't know. So I'm posting a > more general question here, hoping that someone in this larger > audience has solved the problem I'm facing. > > What I'm trying to do is visualize point data (stored in PostGIS, > but that > can change) so that users can determine where the points are concentrated, > even while zoomed out. One caveat is that the points can be > coincident (identical Lat/Long). > > For example, I'd use this with include recent real estate sales data > - condos in the same building have the same shape, but both sales > should count. Similarly, in a customer counting scenario, two > customers with the > same address (even only to the building level) will geocode to the > same lat/long. > > When Mapserver serves up Point layers directly, the results can be > quite disappointing (and misleading). In Mapserver, the last Point > to be drawn on any spot will just hide the previous points, often > hiding multiple data > points. > > Similarly, when you zoom out on a point diagram, there are two > options: either you set the symbol to have a max size (so that > eventually, they become "less than clear"), or you keep the symbol > size constant, eventually obliterating the background with huge blobs > of overlapping points. > > When I tried to tackle this problem, I turned to a Real Estate > Geography book I have (written by professor Thrall at my alma mater) > http://www.amazon.com/gp/product/0195076362/sr=1-2/qid=1138949940/ref=sr_1_2/104-4827941-6490312?%5Fencoding=UTF8 > > There, he is discussing Site Selection and Customer Spotting methods, > and he discusses the Kernel Density method of generating a surface > map showing where the customers live. The discussion is brief, but > the GDAL folks pointed me to two tools (parts of R and GRASS > respectively) that can > take points and generate kernel surfaces. With some magic, contour > maps, and other visualizations could be pushed through GDAL and into > Mapserver. > > However, with further inspection, these methods all work on distance > between customers, which causes a problem with coincident points. Bill, I'm assuming this probably is a problem because the algorithm divides by the distance causing a divide by zero. If you can detect the coincident points you could randomly add some noise to their locations so they are not mathematically coincident and then the clustering would be reflected in the Kernel Density. Another idea would be to remove the coincident points and replace them with a single point with an attribute of how many points were at that location. Then see if it is possible to modify the Kernel Density algorithm to use the attributed clustering to modify its output. Or do the kernel density and overlay it with symbols reflecting the multiple points. So your would get a kernel density raster with varying radius dots reflecting the coincident points where the radius reflect the number of points. I think the former is a better way to go, and you can adjust the noise value to get results that reflect what you are trying to show. Anyway some additional ideas to think about. -Steve W. > I am thinking that this problem must have been solved by someone out > in this audience, so at this point, I'm very open to suggestions. > > I am very willing (and fairly able) to implement any custom software > the solution my require. I have considered filters between GDAL and > OGR, or stand alone processing that generates the needed data. I'm > also very happy to feed it back to the community, if there's > interest. > > (So, basically, I will trade working code for modeling/GIS/statistics > knowledge if anyone's interested :) > > Thanks, > > Bill From dmorissette at DMSOLUTIONS.CA Fri Feb 3 07:29:20 2006 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Fri, 3 Feb 2006 10:29:20 -0500 Subject: MapServer 4.8.0 released Message-ID: Good Morning, MapServer 4.8.0 has just been released. The source package is available in the download area of the website and you can expect compiled binaries to become available shortly at the usual locations: http://mapserver.gis.umn.edu/download/current/ Since the creation of the MapServer Technical Steering Committee in August, new features are now tracked via RFC documents. You can browse the complete list of RFCs at http://mapserver.gis.umn.edu/development/rfc The relevant RFCs for this 4.8 release are: * MS RFC 2: Creating line features and/or shapes using WKT * MS RFC 3: Layer Plug-in Architecture * MS RFC 4: MapServer Raster Resampling * MS RFC 5: MapServer Horizon Reprojection Improvements * MS RFC 6: Color Range Mapping of Continuous Feature Values * MS RFC 8: Pluggable External Feature Layer Providers Once again, all the details are available in the RFC documents at the URL above. Another important enhancement in this release that is not documented in a RFC is the support for fuzzy brushes which allows producing antialiased thick lines when ANTIALIAS TRUE is set in a STYLE. For more details look for the "Fuzzy brushes and antialiased lines" thread in the mapserver-users list archives. This release also includes a large number of small enhancements and bug fixes that didn't deserve their own RFC. I have included a copy of the list of changes/fixes since 4.6 from the HISTORY.TXT at the end of this message. Daniel ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Version 4.8.0 (2006-02-02) -------------------------- - Treat classindex as an int instead of a char in resultCacheMemberObj to prevent problems with more than 128 classes (bug 1633) - Fixed possible crash with default content-type and POST requests.(bug 1628) - Known issue: MapScript queryByAttributes() creates wrong WHERE clause on postgis layers in some cases (patch available, see bug 1629) Version 4.8.0-rc3 (2006-01-25) ------------------------------ - Add gml:lineStringMember in GML2 MultiLineString geometry (bug 1569). - Move gBYTE_ORDER inside the pg layerinfo structure to allow for differently byte ordered connections (bug 1587). - Close file handle when saving symbolset. - Fix the memory allocation bug in sdeShapeCopy (Bug 1606). - Fixed OGR WKT support (Bug 1614). - Finished implementation of OGR Shape2WKT function (Bug 1614). - Added shapeObj::toWkt() and ms_shapeObjFromWkt() to PHP MapScript (bug 1466) - Detect/add -DHAVE_VSNPRINTF in configure script and prevent systematic buffer overflow in imagemap code when vsnprintf() not available (bug 1613) Version 4.8.0-rc2 (2006-01-09) ------------------------------ - Commit fix for GD on win32 when different heaps are in use. (Bug 1513) - Correct bound reprojection issue with ogc filer (Bug 1600) - Correct mapscript windows build problem when flag USE_WMS_SVR was not set (Bug 1529) - Fix up allocation of the SDE ROW_ID columns and how the functions that call it were using it. (bug 1605) - Fixed crash with 3D polygons in Oracle Spatial (bug 1593) Version 4.8.0-rc1 (2005-12-22) ------------------------------ - Fixed shape projection to recompute shape bounds. (Bug 1586) - Fixed segfault when copying/removing styles via MapScript. (Bug 1565) - Fixed segfault when doing attribute queries on layers with a FILTER already set but with no FILTERITEM. Version 4.8.0-beta3 (2005-12-16) -------------------------------- - Initialize properly variable in php mapscript (Bug 1584) - New support for pseudo anti-aliased fat lines using brushes with variable transparency. - Arbitrary rotation support for vector symbols courtesy of Map Media. - Support for user-defined mime-types for CGI-based browse and legend templates (bug 1518). - mapraster.c: Allow mapresample.c code to be called even if projections are not set on the map or layer object. This is no longer a requirement. (Bug 1562) - Fix problem with WMS 1.1.1 OGC test problem with get capabilites dtd (Bug 1576) - PDF : adding dash line support (Bug 492) - Fixed configure/build problem (empty include dir) when iconv.h is not found (bug 1419) - PDF : segfault on annotation layer when no style is set (Bug 1559) - PostGIS layer test cases and fix for broken views and sub-selects (bug 1443). - SDE: Removed (commented out) support for SDE rasters at this time. As far as I know, I'm the only one to ever get it to work, it hasn't kept up with the connection pooling stuff we did, and its utility is quite limited in comparison to regular gdal-based raster support (projections, resampling, etc) (HB - bug 1560). - SDE: Put msSDELayerGetRowIDColumn at the top of mapsde.c so things would compile correctly. This function is not included (or necessary) in the rest of the MS RFC 3 layer virtualization at this time. - WFS : TYPENAME is manadatory for GetFeature request (Bug 1554). - SLD : error parsing font parameters with the keyword "normal" (Bug 1552) - mapgraticule.c: Use MIN/MAXINTERVAL value when we define grid position and interval (bug 1530) - mapdrawgdal.c: Fix bug with nodata values not in the color table when rendering some raster layers (bug 1541). - mapogcsld.c : If a RULE name is not given, set the class name to "Unknown" (Bug 1451) Version 4.8.0-beta2 (2005-11-23) -------------------------------- - Use dynamic allocation for ellipse symbol's STYLE array, avoiding the static limitation on the STYLE argument values. (bug 1539) - Fix bug in mapproject.c when splitting over the horizon lines. - Fix Tcl mapscript's getBytes method (bug 1533). - Use mapscript.i in-place when building Ruby mapscript, copying not necessary (bug 1528). - Expose maximum lengths of layer, class, and style arrays in mapscript (bug 1522). - correct msGetVersion to indicate if mapserver was build with MYGIS support. - Fixed hang in msProjectRect() for very small rectangles due to round off problems (bug 1526). Version 4.8.0-beta1 (2005-11-04) -------------------------------- - Bug 1509: Fixed bounding box calculation in mapresample.c. The bottom right corner was being missed in the calculation. - MS RFC 2: added OGR based shape<->WKT implementation. - mapgdal.c: fixed some mutex lock release issues on error conditions. - MS RFC 8: External plugin layer providers (bug 1477) - SLD : syntax error when auto generating external symbols (Bug 1508). - MS RFC 3: Layer vtable architecture (bug 1477) - wms time : correct a problem when hadling wms times with tile index rasters (bug 1506). - WMS TIME : Add suuport for multiple interval extents (Bug 1498) - Removed deprecated --with-php-regex-dir switch (bug 1468) - support wms_attribution element for LAYER's (Bug 1502) - Correct php/mapscript bug : initialization of scale happens when preparequery is called (Bug 1334). - msProjectShape() will now project the lines it can, but completely delete lines that cannot be projected properly and "NULL" the shape if there are no lines left. (Bug 411) - Expose msLayerWhichShapes and msLayerNextShape in MapScript. (bug 1481) - Added support to MapScript to change images in a previously defined symbol. (bug 1471) - mapogcfiler.c : bug 1490. Crash when size of sld filters was huge. - Fixed --enable-point-z-m fix in configure.in (== -> =) (bug 1485). - Extra scalebar layer creation is prevented with a typo fix in mapscale.c. Good catch, Tamas (bug 1480). - mapwmslayer.c : use transparency set at the layer level on wms client layers (Bug 1458) - mapresample.c: added BILINEAR/AVERAGE resampling options. - mapfile.c: avoid tail recursion in freeFeatureList(). - maplegend.c: fixed leak of imageObj when embedding legends. - msGDALCleanup(): better error handler cleanup. - Modified msResetErrorList() to free the last error link too, to ensure msCleanup() scrubs all error related memory. - Fix in msGetGDALGetTransform() to use default geotransform even if GDALGetGeoTransform() fails but alters the geotransform array. - Typemaps for C# to enable imageObj.getBytes() method (bug 1389). - Enable -DUSE_ZLIB via configure for compressed SVG output (bug 1307). - maputil.c/msAddLine(): rewrite msAddLine() to call msAddLineDirectly, and use realloc() in msAddLineDirectly() to optimize growth of shapeObjs. (bug 1432) - msTmpFile: ensure counter is incremented to avoid duplicate temporary filenames. (bug 1312) - SLD external graphic symbol format tests now for mime type like image/gif instead of just GIF. (bug 1430) - Added support for OGR layers to use SQL type filers (bug 1292) - mapio/cgiutil - fixed POST support in fastcgi mode. (bug 1259) - mapresample.c - ensure that multi-band raw results can be resampled. (bug 1372) - Add support in OGC FE for matchCase attribute on PropertyIsEqual and PropertyIsLike (bug 1416) - Fixed sortshp.c to free shapes after processing to avoid major memory leak. (bug 1418) - fixed msHTTPInit() not ever being called which prevented msHTTPCleanup() from properly cleaning up cUrl with curl_global_cleanup(). (bug 1417) - mapsde.c: add thread locking in msSDELCacheAdd - fixed mappool.c so that any thread can release a connection, not just it's allocator. (bug 1402) - mapthread.c/h: Added TLOCK_SDE and TLOCK_ORACLE - not used yet. - Fixed copying of layer and join items. (bug 1403) - Fixed copying of processing directives within copy of a layer. (bug 1399) - Problems with string initialization. (bug 1312) - Fix svg output for multipolygons. (bug 1390) - Added querymapObj to PHP MapScript (bug 535) From watry at COAPS.FSU.EDU Fri Feb 3 07:27:23 2006 From: watry at COAPS.FSU.EDU (Gary Watry) Date: Fri, 3 Feb 2006 10:27:23 -0500 Subject: Mapserver WINDOWS 2003 Compatibility In-Reply-To: <43E3743A.18906.140FCBA@fabio.dovidio.planetek.it> Message-ID: Not as far as I know, I am running Mapserver on a Windows 2003 Server with IIS And everything works fine. ______________________________________________________________ Gary L. Watry GIS Coordinator Center for Ocean-Atmospheric Prediction Studies FSU / COAPS Johnson Building, RM 215 2035 East Paul Dirac Drive Tallahassee, Florida 32306-2840 E-Mail: watry at coaps.fsu.edu -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Fabio D' Ovidio Sent: Friday, February 03, 2006 9:18 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mapserver WINDOWS 2003 Compatibility Does anyone Know if are there compatibility problems between mapserver and windows 2003 ? thank u ! fabio From nicolas.fortin at EC.GC.CA Fri Feb 3 07:34:58 2006 From: nicolas.fortin at EC.GC.CA (Fortin,Nicolas [SteFoy]) Date: Fri, 3 Feb 2006 10:34:58 -0500 Subject: [UMN_MAPSERVER-USERS] Mapserver WINDOWS 2003 Compatibility Message-ID: Same here. Nicolas -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Gary Watry Envoy? : 3 f?vrier 2006 10:27 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] Mapserver WINDOWS 2003 Compatibility Not as far as I know, I am running Mapserver on a Windows 2003 Server with IIS And everything works fine. ______________________________________________________________ Gary L. Watry GIS Coordinator Center for Ocean-Atmospheric Prediction Studies FSU / COAPS Johnson Building, RM 215 2035 East Paul Dirac Drive Tallahassee, Florida 32306-2840 E-Mail: watry at coaps.fsu.edu -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Fabio D' Ovidio Sent: Friday, February 03, 2006 9:18 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mapserver WINDOWS 2003 Compatibility Does anyone Know if are there compatibility problems between mapserver and windows 2003 ? thank u ! fabio From pauljame at GMAIL.COM Fri Feb 3 07:39:03 2006 From: pauljame at GMAIL.COM (Paul james) Date: Fri, 3 Feb 2006 13:39:03 -0200 Subject: MapServer 4.8.0 released Message-ID: Oww great... And How about labels that follow street segments (bug * #1620)* ** Is that implemented? ty ----- Original Message ----- From: "Daniel Morissette" < dmorissette at DMSOLUTIONS.CA> To: Sent: Friday, February 03, 2006 1:29 PM Subject: [UMN_MAPSERVER-USERS] MapServer 4.8.0 released > Good Morning, > > MapServer 4.8.0 has just been released. The source package is available > in the download area of the website and you can expect compiled binaries > to become available shortly at the usual locations: > http://mapserver.gis.umn.edu/download/current/ > > Since the creation of the MapServer Technical Steering Committee in > August, new features are now tracked via RFC documents. You can browse > the complete list of RFCs at http://mapserver.gis.umn.edu/development/rfc > > The relevant RFCs for this 4.8 release are: > > * MS RFC 2: Creating line features and/or shapes using WKT > * MS RFC 3: Layer Plug-in Architecture > * MS RFC 4: MapServer Raster Resampling > * MS RFC 5: MapServer Horizon Reprojection Improvements > * MS RFC 6: Color Range Mapping of Continuous Feature Values > * MS RFC 8: Pluggable External Feature Layer Providers > > Once again, all the details are available in the RFC documents at the > URL above. > > Another important enhancement in this release that is not documented in > a RFC is the support for fuzzy brushes which allows producing > antialiased thick lines when ANTIALIAS TRUE is set in a STYLE. For more > details look for the "Fuzzy brushes and antialiased lines" thread in the > mapserver-users list archives. > > This release also includes a large number of small enhancements and bug > fixes that didn't deserve their own RFC. I have included a copy of the > list of changes/fixes since 4.6 from the HISTORY.TXT at the end of this > message. > > Daniel > ------------------------------------------------------------ > Daniel Morissette dmorissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > > > Version 4.8.0 (2006-02-02) > -------------------------- > > - Treat classindex as an int instead of a char in resultCacheMemberObj to > prevent problems with more than 128 classes (bug 1633) > > - Fixed possible crash with default content-type and POST requests.(bug > 1628) > > - Known issue: MapScript queryByAttributes() creates wrong WHERE clause on > postgis layers in some cases (patch available, see bug 1629) > > > Version 4.8.0-rc3 (2006-01-25) > ------------------------------ > > - Add gml:lineStringMember in GML2 MultiLineString geometry (bug 1569). > > - Move gBYTE_ORDER inside the pg layerinfo structure to allow for > differently > byte ordered connections (bug 1587). > > - Close file handle when saving symbolset. > > - Fix the memory allocation bug in sdeShapeCopy (Bug 1606). > > - Fixed OGR WKT support (Bug 1614). > > - Finished implementation of OGR Shape2WKT function (Bug 1614). > > - Added shapeObj::toWkt() and ms_shapeObjFromWkt() to PHP MapScript (bug > 1466) > > - Detect/add -DHAVE_VSNPRINTF in configure script and prevent systematic > buffer overflow in imagemap code when vsnprintf() not available (bug > 1613) > > > Version 4.8.0-rc2 (2006-01-09) > ------------------------------ > > - Commit fix for GD on win32 when different heaps are in use. (Bug 1513) > > - Correct bound reprojection issue with ogc filer (Bug 1600) > > - Correct mapscript windows build problem when flag USE_WMS_SVR was > not set (Bug 1529) > > - Fix up allocation of the SDE ROW_ID columns and how the functions that > call it were using it. (bug 1605) > > - Fixed crash with 3D polygons in Oracle Spatial (bug 1593) > > > Version 4.8.0-rc1 (2005-12-22) > ------------------------------ > > - Fixed shape projection to recompute shape bounds. (Bug 1586) > > - Fixed segfault when copying/removing styles via MapScript. (Bug 1565) > > - Fixed segfault when doing attribute queries on layers with a FILTER > already > set but with no FILTERITEM. > > > Version 4.8.0-beta3 (2005-12-16) > -------------------------------- > > - Initialize properly variable in php mapscript (Bug 1584) > > - New support for pseudo anti-aliased fat lines using brushes with variable > transparency. > > - Arbitrary rotation support for vector symbols courtesy of Map Media. > > - Support for user-defined mime-types for CGI-based browse and legend > templates (bug 1518). > > - mapraster.c: Allow mapresample.c code to be called even if projections > are not set on the map or layer object. This is no longer a requirement. > (Bug 1562) > > - Fix problem with WMS 1.1.1 OGC test problem with get capabilites dtd > (Bug 1576) > > - PDF : adding dash line support (Bug 492) > > - Fixed configure/build problem (empty include dir) when iconv.h is not > found (bug 1419) > > - PDF : segfault on annotation layer when no style is set (Bug 1559) > > - PostGIS layer test cases and fix for broken views and sub-selects (bug > 1443). > > - SDE: Removed (commented out) support for SDE rasters at this time. As > far > as I know, I'm the only one to ever get it to work, it hasn't kept up > with > the connection pooling stuff we did, and its utility is quite limited in > comparison to regular gdal-based raster support (projections, > resampling, etc) (HB - bug 1560). > > - SDE: Put msSDELayerGetRowIDColumn at the top of mapsde.c so things > would compile correctly. This function is not included (or necessary) > in the rest of the MS RFC 3 layer virtualization at this time. > > - WFS : TYPENAME is manadatory for GetFeature request (Bug 1554). > > - SLD : error parsing font parameters with the keyword "normal" (Bug 1552) > > - mapgraticule.c: Use MIN/MAXINTERVAL value when we define grid position > and > interval (bug 1530) > > - mapdrawgdal.c: Fix bug with nodata values not in the color table when > rendering some raster layers (bug 1541). > > - mapogcsld.c : If a RULE name is not given, set the class name to > "Unknown" > (Bug 1451) > > Version 4.8.0-beta2 (2005-11-23) > -------------------------------- > > - Use dynamic allocation for ellipse symbol's STYLE array, avoiding the > static limitation on the STYLE argument values. (bug 1539) > > - Fix bug in mapproject.c when splitting over the horizon lines. > > - Fix Tcl mapscript's getBytes method (bug 1533). > > - Use mapscript.i in-place when building Ruby mapscript, copying not > necessary > (bug 1528). > > - Expose maximum lengths of layer, class, and style arrays in mapscript (bug > 1522). > > - correct msGetVersion to indicate if mapserver was build with MYGIS > support. > > - Fixed hang in msProjectRect() for very small rectangles due to round off > problems (bug 1526). > > > Version 4.8.0-beta1 (2005-11-04) > -------------------------------- > > - Bug 1509: Fixed bounding box calculation in mapresample.c. The bottom > right > corner was being missed in the calculation. > > - MS RFC 2: added OGR based shape<->WKT implementation. > > - mapgdal.c: fixed some mutex lock release issues on error conditions. > > - MS RFC 8: External plugin layer providers (bug 1477) > > - SLD : syntax error when auto generating external symbols (Bug 1508). > > - MS RFC 3: Layer vtable architecture (bug 1477) > > - wms time : correct a problem when hadling wms times with tile index > rasters > (bug 1506). > > - WMS TIME : Add suuport for multiple interval extents (Bug 1498) > > - Removed deprecated --with-php-regex-dir switch (bug 1468) > > - support wms_attribution element for LAYER's (Bug 1502) > > - Correct php/mapscript bug : initialization of scale happens when > preparequery is called (Bug 1334). > > - msProjectShape() will now project the lines it can, but completely > delete lines that cannot be projected properly and "NULL" the shape if > there are no lines left. (Bug 411) > > - Expose msLayerWhichShapes and msLayerNextShape in MapScript. (bug 1481) > > - Added support to MapScript to change images in a previously defined > symbol. (bug 1471) > > - mapogcfiler.c : bug 1490. Crash when size of sld filters was huge. > > - Fixed --enable-point-z-m fix in configure.in (== -> =) (bug 1485). > > - Extra scalebar layer creation is prevented with a typo fix in mapscale.c . > Good catch, Tamas (bug 1480). > > - mapwmslayer.c : use transparency set at the layer level on wms client > layers (Bug 1458) > > - mapresample.c: added BILINEAR/AVERAGE resampling options. > > - mapfile.c: avoid tail recursion in freeFeatureList(). > > - maplegend.c: fixed leak of imageObj when embedding legends. > > - msGDALCleanup(): better error handler cleanup. > > - Modified msResetErrorList() to free the last error link too, to ensure > msCleanup() scrubs all error related memory. > > - Fix in msGetGDALGetTransform() to use default geotransform even if > GDALGetGeoTransform() fails but alters the geotransform array. > > - Typemaps for C# to enable imageObj.getBytes() method (bug 1389). > > - Enable -DUSE_ZLIB via configure for compressed SVG output (bug 1307). > > - maputil.c/msAddLine(): rewrite msAddLine() to call > msAddLineDirectly, and use realloc() in msAddLineDirectly() to optimize > growth of shapeObjs. (bug 1432) > > - msTmpFile: ensure counter is incremented to avoid duplicate > temporary filenames. (bug 1312) > > - SLD external graphic symbol format tests now for mime type > like image/gif instead of just GIF. (bug 1430) > > - Added support for OGR layers to use SQL type filers (bug 1292) > > - mapio/cgiutil - fixed POST support in fastcgi mode. (bug 1259) > > - mapresample.c - ensure that multi-band raw results can be > resampled. (bug 1372) > > - Add support in OGC FE for matchCase attribute on > PropertyIsEqual and PropertyIsLike (bug 1416) > > - Fixed sortshp.c to free shapes after processing to avoid major > memory leak. (bug 1418) > > - fixed msHTTPInit() not ever being called which prevented msHTTPCleanup() > from properly cleaning up cUrl with curl_global_cleanup(). (bug 1417) > > - mapsde.c: add thread locking in msSDELCacheAdd > > - fixed mappool.c so that any thread can release a connection, > not just it's allocator. (bug 1402) > > - mapthread.c/h: Added TLOCK_SDE and TLOCK_ORACLE - not used yet. > > - Fixed copying of layer and join items. (bug 1403) > > - Fixed copying of processing directives within copy of a layer. (bug 1399) > > - Problems with string initialization. (bug 1312) > > - Fix svg output for multipolygons. (bug 1390) > > - Added querymapObj to PHP MapScript (bug 535) > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at DMSOLUTIONS.CA Fri Feb 3 07:56:42 2006 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Fri, 3 Feb 2006 10:56:42 -0500 Subject: MapServer 4.8.0 released In-Reply-To: <33fad6880602030739g4b931678y5cee6076f7906a2a@mail.gmail.com> Message-ID: Paul james wrote: > > And How about labels that follow street segments (bug * #1620)* > ** > Is that implemented? > Not yet, but you can expect that to be in the next release, 4.10 or 5.0 depending on what we end up calling it. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From steve.lime at DNR.STATE.MN.US Fri Feb 3 08:01:30 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 3 Feb 2006 10:01:30 -0600 Subject: MapServer 4.8.0 released Message-ID: There wasn't time. If you're following that bug you'll see there was a patch submitted that get's us much of the way there- but not all of the way since label collision detection wasn't included. So, the patch author is working on a new patch based on some back and forth with other developers. We'll have to see how it goes to whether it goes into a 4.8.x or 4.10/5.0... Steve >>> Paul james 02/03/06 9:39 AM >>> Oww great... And How about labels that follow street segments (bug * #1620)* ** Is that implemented? ty ----- Original Message ----- From: "Daniel Morissette" < dmorissette at DMSOLUTIONS.CA> To: Sent: Friday, February 03, 2006 1:29 PM Subject: [UMN_MAPSERVER-USERS] MapServer 4.8.0 released > Good Morning, > > MapServer 4.8.0 has just been released. The source package is available > in the download area of the website and you can expect compiled binaries > to become available shortly at the usual locations: > http://mapserver.gis.umn.edu/download/current/ > > Since the creation of the MapServer Technical Steering Committee in > August, new features are now tracked via RFC documents. You can browse > the complete list of RFCs at http://mapserver.gis.umn.edu/development/rfc > > The relevant RFCs for this 4.8 release are: > > * MS RFC 2: Creating line features and/or shapes using WKT > * MS RFC 3: Layer Plug-in Architecture > * MS RFC 4: MapServer Raster Resampling > * MS RFC 5: MapServer Horizon Reprojection Improvements > * MS RFC 6: Color Range Mapping of Continuous Feature Values > * MS RFC 8: Pluggable External Feature Layer Providers > > Once again, all the details are available in the RFC documents at the > URL above. > > Another important enhancement in this release that is not documented in > a RFC is the support for fuzzy brushes which allows producing > antialiased thick lines when ANTIALIAS TRUE is set in a STYLE. For more > details look for the "Fuzzy brushes and antialiased lines" thread in the > mapserver-users list archives. > > This release also includes a large number of small enhancements and bug > fixes that didn't deserve their own RFC. I have included a copy of the > list of changes/fixes since 4.6 from the HISTORY.TXT at the end of this > message. > > Daniel > ------------------------------------------------------------ > Daniel Morissette dmorissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > > > Version 4.8.0 (2006-02-02) > -------------------------- > > - Treat classindex as an int instead of a char in resultCacheMemberObj to > prevent problems with more than 128 classes (bug 1633) > > - Fixed possible crash with default content-type and POST requests.(bug > 1628) > > - Known issue: MapScript queryByAttributes() creates wrong WHERE clause on > postgis layers in some cases (patch available, see bug 1629) > > > Version 4.8.0-rc3 (2006-01-25) > ------------------------------ > > - Add gml:lineStringMember in GML2 MultiLineString geometry (bug 1569). > > - Move gBYTE_ORDER inside the pg layerinfo structure to allow for > differently > byte ordered connections (bug 1587). > > - Close file handle when saving symbolset. > > - Fix the memory allocation bug in sdeShapeCopy (Bug 1606). > > - Fixed OGR WKT support (Bug 1614). > > - Finished implementation of OGR Shape2WKT function (Bug 1614). > > - Added shapeObj::toWkt() and ms_shapeObjFromWkt() to PHP MapScript (bug > 1466) > > - Detect/add -DHAVE_VSNPRINTF in configure script and prevent systematic > buffer overflow in imagemap code when vsnprintf() not available (bug > 1613) > > > Version 4.8.0-rc2 (2006-01-09) > ------------------------------ > > - Commit fix for GD on win32 when different heaps are in use. (Bug 1513) > > - Correct bound reprojection issue with ogc filer (Bug 1600) > > - Correct mapscript windows build problem when flag USE_WMS_SVR was > not set (Bug 1529) > > - Fix up allocation of the SDE ROW_ID columns and how the functions that > call it were using it. (bug 1605) > > - Fixed crash with 3D polygons in Oracle Spatial (bug 1593) > > > Version 4.8.0-rc1 (2005-12-22) > ------------------------------ > > - Fixed shape projection to recompute shape bounds. (Bug 1586) > > - Fixed segfault when copying/removing styles via MapScript. (Bug 1565) > > - Fixed segfault when doing attribute queries on layers with a FILTER > already > set but with no FILTERITEM. > > > Version 4.8.0-beta3 (2005-12-16) > -------------------------------- > > - Initialize properly variable in php mapscript (Bug 1584) > > - New support for pseudo anti-aliased fat lines using brushes with variable > transparency. > > - Arbitrary rotation support for vector symbols courtesy of Map Media. > > - Support for user-defined mime-types for CGI-based browse and legend > templates (bug 1518). > > - mapraster.c: Allow mapresample.c code to be called even if projections > are not set on the map or layer object. This is no longer a requirement. > (Bug 1562) > > - Fix problem with WMS 1.1.1 OGC test problem with get capabilites dtd > (Bug 1576) > > - PDF : adding dash line support (Bug 492) > > - Fixed configure/build problem (empty include dir) when iconv.h is not > found (bug 1419) > > - PDF : segfault on annotation layer when no style is set (Bug 1559) > > - PostGIS layer test cases and fix for broken views and sub-selects (bug > 1443). > > - SDE: Removed (commented out) support for SDE rasters at this time. As > far > as I know, I'm the only one to ever get it to work, it hasn't kept up > with > the connection pooling stuff we did, and its utility is quite limited in > comparison to regular gdal-based raster support (projections, > resampling, etc) (HB - bug 1560). > > - SDE: Put msSDELayerGetRowIDColumn at the top of mapsde.c so things > would compile correctly. This function is not included (or necessary) > in the rest of the MS RFC 3 layer virtualization at this time. > > - WFS : TYPENAME is manadatory for GetFeature request (Bug 1554). > > - SLD : error parsing font parameters with the keyword "normal" (Bug 1552) > > - mapgraticule.c: Use MIN/MAXINTERVAL value when we define grid position > and > interval (bug 1530) > > - mapdrawgdal.c: Fix bug with nodata values not in the color table when > rendering some raster layers (bug 1541). > > - mapogcsld.c : If a RULE name is not given, set the class name to > "Unknown" > (Bug 1451) > > Version 4.8.0-beta2 (2005-11-23) > -------------------------------- > > - Use dynamic allocation for ellipse symbol's STYLE array, avoiding the > static limitation on the STYLE argument values. (bug 1539) > > - Fix bug in mapproject.c when splitting over the horizon lines. > > - Fix Tcl mapscript's getBytes method (bug 1533). > > - Use mapscript.i in-place when building Ruby mapscript, copying not > necessary > (bug 1528). > > - Expose maximum lengths of layer, class, and style arrays in mapscript (bug > 1522). > > - correct msGetVersion to indicate if mapserver was build with MYGIS > support. > > - Fixed hang in msProjectRect() for very small rectangles due to round off > problems (bug 1526). > > > Version 4.8.0-beta1 (2005-11-04) > -------------------------------- > > - Bug 1509: Fixed bounding box calculation in mapresample.c. The bottom > right > corner was being missed in the calculation. > > - MS RFC 2: added OGR based shape<->WKT implementation. > > - mapgdal.c: fixed some mutex lock release issues on error conditions. > > - MS RFC 8: External plugin layer providers (bug 1477) > > - SLD : syntax error when auto generating external symbols (Bug 1508). > > - MS RFC 3: Layer vtable architecture (bug 1477) > > - wms time : correct a problem when hadling wms times with tile index > rasters > (bug 1506). > > - WMS TIME : Add suuport for multiple interval extents (Bug 1498) > > - Removed deprecated --with-php-regex-dir switch (bug 1468) > > - support wms_attribution element for LAYER's (Bug 1502) > > - Correct php/mapscript bug : initialization of scale happens when > preparequery is called (Bug 1334). > > - msProjectShape() will now project the lines it can, but completely > delete lines that cannot be projected properly and "NULL" the shape if > there are no lines left. (Bug 411) > > - Expose msLayerWhichShapes and msLayerNextShape in MapScript. (bug 1481) > > - Added support to MapScript to change images in a previously defined > symbol. (bug 1471) > > - mapogcfiler.c : bug 1490. Crash when size of sld filters was huge. > > - Fixed --enable-point-z-m fix in configure.in (== -> =) (bug 1485). > > - Extra scalebar layer creation is prevented with a typo fix in mapscale.c . > Good catch, Tamas (bug 1480). > > - mapwmslayer.c : use transparency set at the layer level on wms client > layers (Bug 1458) > > - mapresample.c: added BILINEAR/AVERAGE resampling options. > > - mapfile.c: avoid tail recursion in freeFeatureList(). > > - maplegend.c: fixed leak of imageObj when embedding legends. > > - msGDALCleanup(): better error handler cleanup. > > - Modified msResetErrorList() to free the last error link too, to ensure > msCleanup() scrubs all error related memory. > > - Fix in msGetGDALGetTransform() to use default geotransform even if > GDALGetGeoTransform() fails but alters the geotransform array. > > - Typemaps for C# to enable imageObj.getBytes() method (bug 1389). > > - Enable -DUSE_ZLIB via configure for compressed SVG output (bug 1307). > > - maputil.c/msAddLine(): rewrite msAddLine() to call > msAddLineDirectly, and use realloc() in msAddLineDirectly() to optimize > growth of shapeObjs. (bug 1432) > > - msTmpFile: ensure counter is incremented to avoid duplicate > temporary filenames. (bug 1312) > > - SLD external graphic symbol format tests now for mime type > like image/gif instead of just GIF. (bug 1430) > > - Added support for OGR layers to use SQL type filers (bug 1292) > > - mapio/cgiutil - fixed POST support in fastcgi mode. (bug 1259) > > - mapresample.c - ensure that multi-band raw results can be > resampled. (bug 1372) > > - Add support in OGC FE for matchCase attribute on > PropertyIsEqual and PropertyIsLike (bug 1416) > > - Fixed sortshp.c to free shapes after processing to avoid major > memory leak. (bug 1418) > > - fixed msHTTPInit() not ever being called which prevented msHTTPCleanup() > from properly cleaning up cUrl with curl_global_cleanup(). (bug 1417) > > - mapsde.c: add thread locking in msSDELCacheAdd > > - fixed mappool.c so that any thread can release a connection, > not just it's allocator. (bug 1402) > > - mapthread.c/h: Added TLOCK_SDE and TLOCK_ORACLE - not used yet. > > - Fixed copying of layer and join items. (bug 1403) > > - Fixed copying of processing directives within copy of a layer. (bug 1399) > > - Problems with string initialization. (bug 1312) > > - Fix svg output for multipolygons. (bug 1390) > > - Added querymapObj to PHP MapScript (bug 535) > From jerl.simpso at GMAIL.COM Fri Feb 3 08:29:33 2006 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Fri, 3 Feb 2006 10:29:33 -0600 Subject: MapServer 4.8.0 released In-Reply-To: <43E376D0.80409@dmsolutions.ca> Message-ID: Awesome, found it and downloaded it just before I received this email. Upgrading gdal as I type this. then I'll be ready to compile the new mapserver. thanks!! On 2/3/06, Daniel Morissette wrote: > > Good Morning, > > MapServer 4.8.0 has just been released. The source package is available > in the download area of the website and you can expect compiled binaries > to become available shortly at the usual locations: > http://mapserver.gis.umn.edu/download/current/ > > Since the creation of the MapServer Technical Steering Committee in > August, new features are now tracked via RFC documents. You can browse > the complete list of RFCs at http://mapserver.gis.umn.edu/development/rfc > > The relevant RFCs for this 4.8 release are: > > * MS RFC 2: Creating line features and/or shapes using WKT > * MS RFC 3: Layer Plug-in Architecture > * MS RFC 4: MapServer Raster Resampling > * MS RFC 5: MapServer Horizon Reprojection Improvements > * MS RFC 6: Color Range Mapping of Continuous Feature Values > * MS RFC 8: Pluggable External Feature Layer Providers > > Once again, all the details are available in the RFC documents at the > URL above. > > Another important enhancement in this release that is not documented in > a RFC is the support for fuzzy brushes which allows producing > antialiased thick lines when ANTIALIAS TRUE is set in a STYLE. For more > details look for the "Fuzzy brushes and antialiased lines" thread in the > mapserver-users list archives. > > This release also includes a large number of small enhancements and bug > fixes that didn't deserve their own RFC. I have included a copy of the > list of changes/fixes since 4.6 from the HISTORY.TXT at the end of this > message. > > Daniel > ------------------------------------------------------------ > Daniel Morissette dmorissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > > > Version 4.8.0 (2006-02-02) > -------------------------- > > - Treat classindex as an int instead of a char in resultCacheMemberObj to > prevent problems with more than 128 classes (bug 1633) > > - Fixed possible crash with default content-type and POST requests.(bug > 1628) > > - Known issue: MapScript queryByAttributes() creates wrong WHERE clause on > postgis layers in some cases (patch available, see bug 1629) > > > Version 4.8.0-rc3 (2006-01-25) > ------------------------------ > > - Add gml:lineStringMember in GML2 MultiLineString geometry (bug 1569). > > - Move gBYTE_ORDER inside the pg layerinfo structure to allow for > differently > byte ordered connections (bug 1587). > > - Close file handle when saving symbolset. > > - Fix the memory allocation bug in sdeShapeCopy (Bug 1606). > > - Fixed OGR WKT support (Bug 1614). > > - Finished implementation of OGR Shape2WKT function (Bug 1614). > > - Added shapeObj::toWkt() and ms_shapeObjFromWkt() to PHP MapScript (bug > 1466) > > - Detect/add -DHAVE_VSNPRINTF in configure script and prevent systematic > buffer overflow in imagemap code when vsnprintf() not available (bug > 1613) > > > Version 4.8.0-rc2 (2006-01-09) > ------------------------------ > > - Commit fix for GD on win32 when different heaps are in use. (Bug 1513) > > - Correct bound reprojection issue with ogc filer (Bug 1600) > > - Correct mapscript windows build problem when flag USE_WMS_SVR was > not set (Bug 1529) > > - Fix up allocation of the SDE ROW_ID columns and how the functions that > call it were using it. (bug 1605) > > - Fixed crash with 3D polygons in Oracle Spatial (bug 1593) > > > Version 4.8.0-rc1 (2005-12-22) > ------------------------------ > > - Fixed shape projection to recompute shape bounds. (Bug 1586) > > - Fixed segfault when copying/removing styles via MapScript. (Bug 1565) > > - Fixed segfault when doing attribute queries on layers with a FILTER > already > set but with no FILTERITEM. > > > Version 4.8.0-beta3 (2005-12-16) > -------------------------------- > > - Initialize properly variable in php mapscript (Bug 1584) > > - New support for pseudo anti-aliased fat lines using brushes with > variable > transparency. > > - Arbitrary rotation support for vector symbols courtesy of Map Media. > > - Support for user-defined mime-types for CGI-based browse and legend > templates (bug 1518). > > - mapraster.c: Allow mapresample.c code to be called even if projections > are not set on the map or layer object. This is no longer a > requirement. > (Bug 1562) > > - Fix problem with WMS 1.1.1 OGC test problem with get capabilites dtd > (Bug 1576) > > - PDF : adding dash line support (Bug 492) > > - Fixed configure/build problem (empty include dir) when iconv.h is not > found (bug 1419) > > - PDF : segfault on annotation layer when no style is set (Bug 1559) > > - PostGIS layer test cases and fix for broken views and sub-selects (bug > 1443). > > - SDE: Removed (commented out) support for SDE rasters at this time. As > far > as I know, I'm the only one to ever get it to work, it hasn't kept up > with > the connection pooling stuff we did, and its utility is quite limited > in > comparison to regular gdal-based raster support (projections, > resampling, etc) (HB - bug 1560). > > - SDE: Put msSDELayerGetRowIDColumn at the top of mapsde.c so things > would compile correctly. This function is not included (or necessary) > in the rest of the MS RFC 3 layer virtualization at this time. > > - WFS : TYPENAME is manadatory for GetFeature request (Bug 1554). > > - SLD : error parsing font parameters with the keyword "normal" (Bug 1552) > > - mapgraticule.c: Use MIN/MAXINTERVAL value when we define grid position > and > interval (bug 1530) > > - mapdrawgdal.c: Fix bug with nodata values not in the color table when > rendering some raster layers (bug 1541). > > - mapogcsld.c : If a RULE name is not given, set the class name to > "Unknown" > (Bug 1451) > > Version 4.8.0-beta2 (2005-11-23) > -------------------------------- > > - Use dynamic allocation for ellipse symbol's STYLE array, avoiding the > static limitation on the STYLE argument values. (bug 1539) > > - Fix bug in mapproject.c when splitting over the horizon lines. > > - Fix Tcl mapscript's getBytes method (bug 1533). > > - Use mapscript.i in-place when building Ruby mapscript, copying not > necessary > (bug 1528). > > - Expose maximum lengths of layer, class, and style arrays in mapscript > (bug > 1522). > > - correct msGetVersion to indicate if mapserver was build with MYGIS > support. > > - Fixed hang in msProjectRect() for very small rectangles due to round off > problems (bug 1526). > > > Version 4.8.0-beta1 (2005-11-04) > -------------------------------- > > - Bug 1509: Fixed bounding box calculation in mapresample.c. The bottom > right > corner was being missed in the calculation. > > - MS RFC 2: added OGR based shape<->WKT implementation. > > - mapgdal.c: fixed some mutex lock release issues on error conditions. > > - MS RFC 8: External plugin layer providers (bug 1477) > > - SLD : syntax error when auto generating external symbols (Bug 1508). > > - MS RFC 3: Layer vtable architecture (bug 1477) > > - wms time : correct a problem when hadling wms times with tile index > rasters > (bug 1506). > > - WMS TIME : Add suuport for multiple interval extents (Bug 1498) > > - Removed deprecated --with-php-regex-dir switch (bug 1468) > > - support wms_attribution element for LAYER's (Bug 1502) > > - Correct php/mapscript bug : initialization of scale happens when > preparequery is called (Bug 1334). > > - msProjectShape() will now project the lines it can, but completely > delete lines that cannot be projected properly and "NULL" the shape if > there are no lines left. (Bug 411) > > - Expose msLayerWhichShapes and msLayerNextShape in MapScript. (bug 1481) > > - Added support to MapScript to change images in a previously defined > symbol. (bug 1471) > > - mapogcfiler.c : bug 1490. Crash when size of sld filters was huge. > > - Fixed --enable-point-z-m fix in configure.in (== -> =) (bug 1485). > > - Extra scalebar layer creation is prevented with a typo fix in mapscale.c > . > Good catch, Tamas (bug 1480). > > - mapwmslayer.c : use transparency set at the layer level on wms client > layers (Bug 1458) > > - mapresample.c: added BILINEAR/AVERAGE resampling options. > > - mapfile.c: avoid tail recursion in freeFeatureList(). > > - maplegend.c: fixed leak of imageObj when embedding legends. > > - msGDALCleanup(): better error handler cleanup. > > - Modified msResetErrorList() to free the last error link too, to ensure > msCleanup() scrubs all error related memory. > > - Fix in msGetGDALGetTransform() to use default geotransform even if > GDALGetGeoTransform() fails but alters the geotransform array. > > - Typemaps for C# to enable imageObj.getBytes() method (bug 1389). > > - Enable -DUSE_ZLIB via configure for compressed SVG output (bug 1307). > > - maputil.c/msAddLine(): rewrite msAddLine() to call > msAddLineDirectly, and use realloc() in msAddLineDirectly() to optimize > growth of shapeObjs. (bug 1432) > > - msTmpFile: ensure counter is incremented to avoid duplicate > temporary filenames. (bug 1312) > > - SLD external graphic symbol format tests now for mime type > like image/gif instead of just GIF. (bug 1430) > > - Added support for OGR layers to use SQL type filers (bug 1292) > > - mapio/cgiutil - fixed POST support in fastcgi mode. (bug 1259) > > - mapresample.c - ensure that multi-band raw results can be > resampled. (bug 1372) > > - Add support in OGC FE for matchCase attribute on > PropertyIsEqual and PropertyIsLike (bug 1416) > > - Fixed sortshp.c to free shapes after processing to avoid major > memory leak. (bug 1418) > > - fixed msHTTPInit() not ever being called which prevented msHTTPCleanup() > from properly cleaning up cUrl with curl_global_cleanup(). (bug 1417) > > - mapsde.c: add thread locking in msSDELCacheAdd > > - fixed mappool.c so that any thread can release a connection, > not just it's allocator. (bug 1402) > > - mapthread.c/h: Added TLOCK_SDE and TLOCK_ORACLE - not used yet. > > - Fixed copying of layer and join items. (bug 1403) > > - Fixed copying of processing directives within copy of a layer. (bug > 1399) > > - Problems with string initialization. (bug 1312) > > - Fix svg output for multipolygons. (bug 1390) > > - Added querymapObj to PHP MapScript (bug 535) > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lichte at ICBM.DE Fri Feb 3 08:37:15 2006 From: lichte at ICBM.DE (Oliver Lichte) Date: Fri, 3 Feb 2006 17:37:15 +0100 Subject: Visualizing Point Data In-Reply-To: Message-ID: Hi Bill, if you are using MapScript you could request the frequency of indiviuals at the concerning positions from data-base insteed of plotting symbols for each. Then generate star-glyphs with a jag for each concerning individual or bins of them. Star-glyphs are originially used to visualize multi-dimensional data, but why not using it for one-dimension. Just an idea. Regards, Oliver Am Freitag, 3. Februar 2006 08:06 schrieb Bill Binko: > Hi everyone, > > I posted a fairly specific question to the GDAL-dev list (and more on IRC) > the other day, asking for input on how to do Kernel Density mapping using > an OGR data source and sending the raster back through GDAL to be > displayed through Mapserver. > > I got some good responses, one of which was: are you sure that's what you > want? Well, to be honest, I don't know. So I'm posting a more general > question here, hoping that someone in this larger audience has solved the > problem I'm facing. > > What I'm trying to do is visualize point data (stored in PostGIS, but that > can change) so that users can determine where the points are concentrated, > even while zoomed out. One caveat is that the points can be coincident > (identical Lat/Long). > > For example, I'd use this with include recent real estate sales data - > condos in the same building have the same shape, but both sales should > count. Similarly, in a customer counting scenario, two customers with the > same address (even only to the building level) will geocode to the same > lat/long. > > When Mapserver serves up Point layers directly, the results can be quite > disappointing (and misleading). In Mapserver, the last Point to be drawn > on any spot will just hide the previous points, often hiding multiple data > points. > > Similarly, when you zoom out on a point diagram, there are two options: > either you set the symbol to have a max size (so that eventually, they > become "less than clear"), or you keep the symbol size constant, > eventually obliterating the background with huge blobs of overlapping > points. > > When I tried to tackle this problem, I turned to a Real Estate Geography > book I have (written by professor Thrall at my alma mater) > http://www.amazon.com/gp/product/0195076362/sr=1-2/qid=1138949940/ref=sr_1_ >2/104-4827941-6490312?%5Fencoding=UTF8 > > There, he is discussing Site Selection and Customer Spotting methods, > and he discusses the Kernel Density method of generating a surface map > showing where the customers live. The discussion is brief, but the GDAL > folks pointed me to two tools (parts of R and GRASS respectively) that can > take points and generate kernel surfaces. With some magic, contour maps, > and other visualizations could be pushed through GDAL and into Mapserver. > > However, with further inspection, these methods all work on distance > between customers, which causes a problem with coincident points. > > I am thinking that this problem must have been solved by someone out in > this audience, so at this point, I'm very open to suggestions. > > I am very willing (and fairly able) to implement any custom software the > solution my require. I have considered filters between GDAL and OGR, or > stand alone processing that generates the needed data. I'm also very > happy to feed it back to the community, if there's interest. > > (So, basically, I will trade working code for modeling/GIS/statistics > knowledge if anyone's interested :) > > Thanks, > > Bill -- Junior Research Group IMPULSE ICBM * Carl-v.-Ossietzky University of Oldenburg PO-Box 2503 * 26111 Oldenburg - Germany - http://www.icbm.de/impulse room: W15-2-239 * fon:+49-441-798-3622 * fax:+49-441-798-3404 From w.blanken at GEON.NL Fri Feb 3 08:39:37 2006 From: w.blanken at GEON.NL (w.blanken) Date: Fri, 3 Feb 2006 17:39:37 +0100 Subject: Mapserver WINDOWS 2003 Compatibility In-Reply-To: <43E3743A.18906.140FCBA@fabio.dovidio.planetek.it> Message-ID: Hello Fabio, I've had no problems with mapserver 4.4 and 4.6 on Windows 2003 (server). Regards, Wim Blanken The Netherlands -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Fabio D' Ovidio Sent: vrijdag 3 februari 2006 15:18 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mapserver WINDOWS 2003 Compatibility Does anyone Know if are there compatibility problems between mapserver and windows 2003 ? thank u ! fabio -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.15.0/249 - Release Date: 2-2-2006 From dmorissette at DMSOLUTIONS.CA Fri Feb 3 08:42:18 2006 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Fri, 3 Feb 2006 11:42:18 -0500 Subject: MapServer 4.8.0 released In-Reply-To: Message-ID: Steve Lime wrote: > We'll have to see how it goes to whether it goes into a 4.8.x or 4.10/5.0... > 4.8.x should contain only bug fixes, not new features, so unless we make an exception (and I don't think we should) then that would make it a 4.10/5.0 feature. But OTOH it would suck to have to wait for the next release in 6 months before this is available. We may have to consider a quick mini-release (4.10?) once that work is completed if timing works with other developments underway at that time in 4.9. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From cjesch at CCT.LSU.EDU Fri Feb 3 09:02:43 2006 From: cjesch at CCT.LSU.EDU (Carola Jesch) Date: Fri, 3 Feb 2006 11:02:43 -0600 Subject: MapServer 4.8.0 released In-Reply-To: Message-ID: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1570 I am still waiting for help with this bug (multiple join with postgresql) Any chance ? Thanks, Carola > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steve Lime > Sent: Friday, February 03, 2006 10:02 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.8.0 released > > There wasn't time. If you're following that bug you'll see > there was a patch submitted that get's us much of the way > there- but not all of the way since label collision detection > wasn't included. So, the patch author is working on a new > patch based on some back and forth with other developers. > We'll have to see how it goes to whether it goes into a 4.8.x > or 4.10/5.0... > > Steve > > >>> Paul james 02/03/06 9:39 AM >>> > Oww great... > > And How about labels that follow street segments (bug * #1620)* > ** > Is that implemented? > > ty > > ----- Original Message ----- From: "Daniel Morissette" < > dmorissette at DMSOLUTIONS.CA> > To: > Sent: Friday, February 03, 2006 1:29 PM > Subject: [UMN_MAPSERVER-USERS] MapServer 4.8.0 released > > > > Good Morning, > > > > MapServer 4.8.0 has just been released. The source package is > > available in the download area of the website and you can expect > > compiled binaries to become available shortly at the usual > locations: > > http://mapserver.gis.umn.edu/download/current/ > > > > Since the creation of the MapServer Technical Steering Committee in > > August, new features are now tracked via RFC documents. You > can browse > > the complete list of RFCs at > > http://mapserver.gis.umn.edu/development/rfc > > > > The relevant RFCs for this 4.8 release are: > > > > * MS RFC 2: Creating line features and/or shapes using WKT > > * MS RFC 3: Layer Plug-in Architecture > > * MS RFC 4: MapServer Raster Resampling > > * MS RFC 5: MapServer Horizon Reprojection Improvements > > * MS RFC 6: Color Range Mapping of Continuous Feature Values > > * MS RFC 8: Pluggable External Feature Layer Providers > > > > Once again, all the details are available in the RFC > documents at the > > URL above. > > > > Another important enhancement in this release that is not > documented > > in a RFC is the support for fuzzy brushes which allows producing > > antialiased thick lines when ANTIALIAS TRUE is set in a STYLE. For > > more details look for the "Fuzzy brushes and antialiased > lines" thread > > in the mapserver-users list archives. > > > > This release also includes a large number of small enhancements and > > bug fixes that didn't deserve their own RFC. I have > included a copy of > > the list of changes/fixes since 4.6 from the HISTORY.TXT at > the end of > > this message. > > > > Daniel > > ------------------------------------------------------------ > > Daniel Morissette dmorissette at dmsolutions.ca > > DM Solutions Group http://www.dmsolutions.ca/ > > ------------------------------------------------------------ > > > > > > Version 4.8.0 (2006-02-02) > > -------------------------- > > > > - Treat classindex as an int instead of a char in > resultCacheMemberObj to > > prevent problems with more than 128 classes (bug 1633) > > > > - Fixed possible crash with default content-type and POST > > requests.(bug > > 1628) > > > > - Known issue: MapScript queryByAttributes() creates wrong > WHERE clause on > > postgis layers in some cases (patch available, see bug 1629) > > > > > > Version 4.8.0-rc3 (2006-01-25) > > ------------------------------ > > > > - Add gml:lineStringMember in GML2 MultiLineString geometry > (bug 1569). > > > > - Move gBYTE_ORDER inside the pg layerinfo structure to allow for > > differently > > byte ordered connections (bug 1587). > > > > - Close file handle when saving symbolset. > > > > - Fix the memory allocation bug in sdeShapeCopy (Bug 1606). > > > > - Fixed OGR WKT support (Bug 1614). > > > > - Finished implementation of OGR Shape2WKT function (Bug 1614). > > > > - Added shapeObj::toWkt() and ms_shapeObjFromWkt() to PHP MapScript > > (bug > > 1466) > > > > - Detect/add -DHAVE_VSNPRINTF in configure script and > prevent systematic > > buffer overflow in imagemap code when vsnprintf() not > available (bug > > 1613) > > > > > > Version 4.8.0-rc2 (2006-01-09) > > ------------------------------ > > > > - Commit fix for GD on win32 when different heaps are in use. (Bug > > 1513) > > > > - Correct bound reprojection issue with ogc filer (Bug 1600) > > > > - Correct mapscript windows build problem when flag USE_WMS_SVR was > > not set (Bug 1529) > > > > - Fix up allocation of the SDE ROW_ID columns and how the > functions that > > call it were using it. (bug 1605) > > > > - Fixed crash with 3D polygons in Oracle Spatial (bug 1593) > > > > > > Version 4.8.0-rc1 (2005-12-22) > > ------------------------------ > > > > - Fixed shape projection to recompute shape bounds. (Bug 1586) > > > > - Fixed segfault when copying/removing styles via MapScript. (Bug > > 1565) > > > > - Fixed segfault when doing attribute queries on layers > with a FILTER > > already > > set but with no FILTERITEM. > > > > > > Version 4.8.0-beta3 (2005-12-16) > > -------------------------------- > > > > - Initialize properly variable in php mapscript (Bug 1584) > > > > - New support for pseudo anti-aliased fat lines using brushes with > variable > > transparency. > > > > - Arbitrary rotation support for vector symbols courtesy of > Map Media. > > > > - Support for user-defined mime-types for CGI-based browse > and legend > > templates (bug 1518). > > > > - mapraster.c: Allow mapresample.c code to be called even > if projections > > are not set on the map or layer object. This is no longer a > requirement. > > (Bug 1562) > > > > - Fix problem with WMS 1.1.1 OGC test problem with get > capabilites dtd > > (Bug 1576) > > > > - PDF : adding dash line support (Bug 492) > > > > - Fixed configure/build problem (empty include dir) when > iconv.h is not > > found (bug 1419) > > > > - PDF : segfault on annotation layer when no style is set > (Bug 1559) > > > > - PostGIS layer test cases and fix for broken views and sub-selects > > (bug 1443). > > > > - SDE: Removed (commented out) support for SDE rasters at > this time. > > As far > > as I know, I'm the only one to ever get it to work, it > hasn't kept > > up with > > the connection pooling stuff we did, and its utility is > quite limited in > > comparison to regular gdal-based raster support (projections, > > resampling, etc) (HB - bug 1560). > > > > - SDE: Put msSDELayerGetRowIDColumn at the top of mapsde.c so things > > would compile correctly. This function is not included > (or necessary) > > in the rest of the MS RFC 3 layer virtualization at this time. > > > > - WFS : TYPENAME is manadatory for GetFeature request (Bug 1554). > > > > - SLD : error parsing font parameters with the keyword > "normal" (Bug > > 1552) > > > > - mapgraticule.c: Use MIN/MAXINTERVAL value when we define grid > > position and > > interval (bug 1530) > > > > - mapdrawgdal.c: Fix bug with nodata values not in the > color table when > > rendering some raster layers (bug 1541). > > > > - mapogcsld.c : If a RULE name is not given, set the class name to > > "Unknown" > > (Bug 1451) > > > > Version 4.8.0-beta2 (2005-11-23) > > -------------------------------- > > > > - Use dynamic allocation for ellipse symbol's STYLE array, > avoiding the > > static limitation on the STYLE argument values. (bug 1539) > > > > - Fix bug in mapproject.c when splitting over the horizon lines. > > > > - Fix Tcl mapscript's getBytes method (bug 1533). > > > > - Use mapscript.i in-place when building Ruby mapscript, > copying not > > necessary > > (bug 1528). > > > > - Expose maximum lengths of layer, class, and style arrays in > > mapscript > (bug > > 1522). > > > > - correct msGetVersion to indicate if mapserver was build > with MYGIS > > support. > > > > - Fixed hang in msProjectRect() for very small rectangles > due to round off > > problems (bug 1526). > > > > > > Version 4.8.0-beta1 (2005-11-04) > > -------------------------------- > > > > - Bug 1509: Fixed bounding box calculation in mapresample.c. The > > bottom right > > corner was being missed in the calculation. > > > > - MS RFC 2: added OGR based shape<->WKT implementation. > > > > - mapgdal.c: fixed some mutex lock release issues on error > conditions. > > > > - MS RFC 8: External plugin layer providers (bug 1477) > > > > - SLD : syntax error when auto generating external symbols > (Bug 1508). > > > > - MS RFC 3: Layer vtable architecture (bug 1477) > > > > - wms time : correct a problem when hadling wms times with > tile index > > rasters > > (bug 1506). > > > > - WMS TIME : Add suuport for multiple interval extents (Bug 1498) > > > > - Removed deprecated --with-php-regex-dir switch (bug 1468) > > > > - support wms_attribution element for LAYER's (Bug 1502) > > > > - Correct php/mapscript bug : initialization of scale happens when > > preparequery is called (Bug 1334). > > > > - msProjectShape() will now project the lines it can, but completely > > delete lines that cannot be projected properly and "NULL" > the shape if > > there are no lines left. (Bug 411) > > > > - Expose msLayerWhichShapes and msLayerNextShape in MapScript. (bug > > 1481) > > > > - Added support to MapScript to change images in a > previously defined > > symbol. (bug 1471) > > > > - mapogcfiler.c : bug 1490. Crash when size of sld filters was huge. > > > > - Fixed --enable-point-z-m fix in configure.in (== -> =) (bug 1485). > > > > - Extra scalebar layer creation is prevented with a typo fix in > > mapscale.c > . > > Good catch, Tamas (bug 1480). > > > > - mapwmslayer.c : use transparency set at the layer level > on wms client > > layers (Bug 1458) > > > > - mapresample.c: added BILINEAR/AVERAGE resampling options. > > > > - mapfile.c: avoid tail recursion in freeFeatureList(). > > > > - maplegend.c: fixed leak of imageObj when embedding legends. > > > > - msGDALCleanup(): better error handler cleanup. > > > > - Modified msResetErrorList() to free the last error link > too, to ensure > > msCleanup() scrubs all error related memory. > > > > - Fix in msGetGDALGetTransform() to use default geotransform even if > > GDALGetGeoTransform() fails but alters the geotransform array. > > > > - Typemaps for C# to enable imageObj.getBytes() method (bug 1389). > > > > - Enable -DUSE_ZLIB via configure for compressed SVG output > (bug 1307). > > > > - maputil.c/msAddLine(): rewrite msAddLine() to call > > msAddLineDirectly, and use realloc() in > msAddLineDirectly() to optimize > > growth of shapeObjs. (bug 1432) > > > > - msTmpFile: ensure counter is incremented to avoid duplicate > > temporary filenames. (bug 1312) > > > > - SLD external graphic symbol format tests now for mime type > > like image/gif instead of just GIF. (bug 1430) > > > > - Added support for OGR layers to use SQL type filers (bug 1292) > > > > - mapio/cgiutil - fixed POST support in fastcgi mode. (bug 1259) > > > > - mapresample.c - ensure that multi-band raw results can be > > resampled. (bug 1372) > > > > - Add support in OGC FE for matchCase attribute on > > PropertyIsEqual and PropertyIsLike (bug 1416) > > > > - Fixed sortshp.c to free shapes after processing to avoid major > > memory leak. (bug 1418) > > > > - fixed msHTTPInit() not ever being called which prevented > msHTTPCleanup() > > from properly cleaning up cUrl with curl_global_cleanup(). (bug > > 1417) > > > > - mapsde.c: add thread locking in msSDELCacheAdd > > > > - fixed mappool.c so that any thread can release a connection, > > not just it's allocator. (bug 1402) > > > > - mapthread.c/h: Added TLOCK_SDE and TLOCK_ORACLE - not used yet. > > > > - Fixed copying of layer and join items. (bug 1403) > > > > - Fixed copying of processing directives within copy of a > layer. (bug > 1399) > > > > - Problems with string initialization. (bug 1312) > > > > - Fix svg output for multipolygons. (bug 1390) > > > > - Added querymapObj to PHP MapScript (bug 535) > > > From pauljame at GMAIL.COM Fri Feb 3 09:03:50 2006 From: pauljame at GMAIL.COM (Paul james) Date: Fri, 3 Feb 2006 15:03:50 -0200 Subject: Problem with 4.8.0 version... Message-ID: I?ve just compiled it to C# mapscript and I got the following error when I trie to use mapobj on C#: *Unable to find an entry point named 'SWIGRegisterByteArrayCallback_mapscript' in DLL 'mapscript'.* [EntryPointNotFoundException: Unable to find an entry point named 'SWIGRegisterByteArrayCallback_mapscript' in DLL 'mapscript'.] SWIGByteArrayHelper.SWIGRegisterByteArrayCallback_mapscript(SWIGByteArrayDelegate bytearrayDelegate) +0 SWIGByteArrayHelper..cctor() +54 [TypeInitializationException: The type initializer for 'SWIGByteArrayHelper' threw an exception.] SWIGByteArrayHelper..ctor() +0 mapscriptPINVOKE..cctor() +82 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben at SYNCERA.NL Fri Feb 3 08:58:00 2006 From: ben at SYNCERA.NL (Bart van den Eijnden) Date: Fri, 3 Feb 2006 17:58:00 +0100 Subject: 4.8: WFS post body is too short Message-ID: Hi list, with all WFS GetFeature requests posted to Mapserver 4.8 I get back: POST body is short This all works fine with a 48beta2 binary. What has happened? D:\ms4w\apps\stragisweb\htdocs\cgi-bin>mapserv -v MapServer version 4.8.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER INPUT=P OSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl - == Let op: wijziging! Vanaf 1 februari 2006 eindigen al onze mailadressen op @Syncera.NL. We verzoeken u vriendelijk om dit aan te passen in uw relatiebeheersysteem. Tot 1 april 2006 wordt uw mail nog naar onze medewerkers doorgestuurd. Na die tijd komen de oude mailadressen geheel te vervallen. From ben at SYNCERA.NL Fri Feb 3 09:22:03 2006 From: ben at SYNCERA.NL (Bart van den Eijnden) Date: Fri, 3 Feb 2006 18:22:03 +0100 Subject: 4.8: WFS post body is too short Message-ID: Is this related to the fix for bug 1628? http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1628 For reference, I try to post using the following Python script: import httplib, urllib, string, base64, time # 1) set variable for request to be posted request=""" PC68044PC*HUISNR* """ # 2) set WFS servername and hostname # productie server="/stragisweb/cgi-bin/mapserv.exe?map=/ms4w/apps/stragisweb/htdocs/sites/zwolle/map/stragisweb.map&" hostname="localhost:8080" # 3) execute the request h = httplib.HTTP(hostname) h.putrequest("POST", server) h.putheader("Content-type", "text/xml") h.putheader("Content-length", "%d" % len(request)) h.putheader("Accept", "text/xml") h.putheader('Host', hostname) h.endheaders() h.send(request) reply, msg, hdrs = h.getreply() # 4) print the response print h.getfile().read() Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Bart van den Eijnden 3-2-2006 17:58:00 >>> Hi list, with all WFS GetFeature requests posted to Mapserver 4.8 I get back: POST body is short This all works fine with a 48beta2 binary. What has happened? D:\ms4w\apps\stragisweb\htdocs\cgi-bin>mapserv -v MapServer version 4.8.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER INPUT=P OSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl - == Let op: wijziging! Vanaf 1 februari 2006 eindigen al onze mailadressen op @Syncera.NL. We verzoeken u vriendelijk om dit aan te passen in uw relatiebeheersysteem. Tot 1 april 2006 wordt uw mail nog naar onze medewerkers doorgestuurd. Na die tijd komen de oude mailadressen geheel te vervallen. - == Let op: wijziging! Vanaf 1 februari 2006 eindigen al onze mailadressen op @Syncera.NL. We verzoeken u vriendelijk om dit aan te passen in uw relatiebeheersysteem. Tot 1 april 2006 wordt uw mail nog naar onze medewerkers doorgestuurd. Na die tijd komen de oude mailadressen geheel te vervallen. From bill at BINKO.NET Fri Feb 3 09:28:31 2006 From: bill at BINKO.NET (Bill Binko) Date: Fri, 3 Feb 2006 12:28:31 -0500 Subject: Visualizing Point Data In-Reply-To: <200602031737.15218.lichte@icbm.de> Message-ID: Hi all, I'd like to thank everyone for their feedback on this, and remind our freinds meeting tomorrow just how valuable this community is in terms of responsiveness, accumen, and general ability. Please make sure this community can continue to thrive with the new Foundation in the mix. That said, I have some clarifying thoughts that I thought I'd post: 1) Bob Basques has found a link that describes the Kernel Density output very closely (thanks, Bob). Here it is for background: http://www.quantdec.com/SYSEN597/GTKAV/section9/density.htm 2) Several people have mentioned grouping points and counting them, and then visualizing by the count. I have used this technique two different ways, and I find use for both of them. a) First, I have created arbitrary grids that split up a dataset into blocks and then used the PostGIS Within() method to calculate count/sum/max/min/ave numbers for those blocks. b) I have used Census Block Group shapes and performed a similar calculation. (This has the added benefit of being able to do "per capita" calculations.) Both of these maps are useful: the Block Group map even has some "brains" behind it since the Block Groups have meaningful boundaries. However, they are very easily skewed. For example, a single large parcel of may take up a large percentage of the block, or points may be clustered very close to a corner -- this distributes the points across the blocks and dilutes their values. 3) Sean G suggested that a "poor man's" version of this could be created with transparent shapes (which Mapserver doesn't yet support). That's true, to a point. But there are problems with the approach. For example, unline a true density diagram, only the intensity of the color would change: not the radius, so zoomed out views won't see highly dense (coincident) areas I'm not discounting any of these ideas: they all are helping, I just thought I'd post back a summary of what I've gotten so far. Bill PS: Here is the skeleton of a method in PostGIS that will create a new table with a grid that covers the extent of an existing dataset so that you can use "WITHIN" to gather averages, etc. PL/PGSQL to create averages by area on a point set: DECLARE source_table ALIAS FOR $1; source_col ALIAS for $2; dest_table ALIAS for $3; dest_col ALIAS for $4; num_cols ALIAS for $5; num_rows ALIAS for $6; srid integer; block_width double precision := 0; block_height double precision := 0; border box3d; boxString text; result text; BEGIN srid := select srid from geometry_columns where f_table_name ilike source_table and f_geometry_column ilike source_col; EXECUTE 'CREATE TABLE ' || dest_table || ' ( gid serial )'; EXECUTE 'AddGeometryColumn('''|| dest_table||''','''|| dest_col||''',srid, ''POLYGON'',2)'; border := box3d(extent(target_shape)) from target_table; block_width := (xmax(border) - xmin(border)) / num_cols; block_height := (ymax(border) - ymin(border))/ num_rows; boxString := 'BOX3D(''BOX3D(0 0 0, ' || block_width || ' ' || block_height || ' 0)'')'; result := EXECUTE 'insert into ' || dest_table || '( ' || dest_col || ') values ( '|| boxString ' ) '; return done; end; From kris_rock82 at YAHOO.COM Fri Feb 3 09:42:26 2006 From: kris_rock82 at YAHOO.COM (krishna S) Date: Fri, 3 Feb 2006 11:42:26 -0600 Subject: UNC path in mapfile Message-ID: Hello all, i was wondering how can we set a unc path in the mapfile. I have a sid file on a different computer, i set the proper permissions and gave the unc path but the image doesnt show up. This was the entry i made in mapfile LAYER NAME "RASTER" TYPE RASTER DATA "\\192.168.51.15\d\arcims\sid83\2003\Ortho_1- 1_1n_s_nd035_2003_1.sid" OFFSITE 0 0 0 STATUS DEFAULT END Any suggestions please ..... --kris From steve.lime at DNR.STATE.MN.US Fri Feb 3 10:30:35 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 3 Feb 2006 12:30:35 -0600 Subject: 4.8: WFS post body is too short Message-ID: I'm not sure how it could be but that was the only change between rc3 and the final release that is remotely related to your problem. All that patch does is set a default content-type in case one isn't specified. Since you're setting that value it should behave just as before (unless I made a mistake applying the patch). Have you tried using the version cgiutils.c from 4.8.0 rc3 and recompiling? Steve >>> Bart van den Eijnden 02/03/06 11:22 AM >>> Is this related to the fix for bug 1628? http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1628 For reference, I try to post using the following Python script: import httplib, urllib, string, base64, time # 1) set variable for request to be posted request=""" PC68044PC*HUISNR* """ # 2) set WFS servername and hostname # productie server="/stragisweb/cgi-bin/mapserv.exe?map=/ms4w/apps/stragisweb/htdocs/sites/zwolle/map/stragisweb.map&" hostname="localhost:8080" # 3) execute the request h = httplib.HTTP(hostname) h.putrequest("POST", server) h.putheader("Content-type", "text/xml") h.putheader("Content-length", "%d" % len(request)) h.putheader("Accept", "text/xml") h.putheader('Host', hostname) h.endheaders() h.send(request) reply, msg, hdrs = h.getreply() # 4) print the response print h.getfile().read() Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Bart van den Eijnden 3-2-2006 17:58:00 >>> Hi list, with all WFS GetFeature requests posted to Mapserver 4.8 I get back: POST body is short This all works fine with a 48beta2 binary. What has happened? D:\ms4w\apps\stragisweb\htdocs\cgi-bin>mapserv -v MapServer version 4.8.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER INPUT=P OSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl - == Let op: wijziging! Vanaf 1 februari 2006 eindigen al onze mailadressen op @Syncera.NL. We verzoeken u vriendelijk om dit aan te passen in uw relatiebeheersysteem. Tot 1 april 2006 wordt uw mail nog naar onze medewerkers doorgestuurd. Na die tijd komen de oude mailadressen geheel te vervallen. - == Let op: wijziging! Vanaf 1 februari 2006 eindigen al onze mailadressen op @Syncera.NL. We verzoeken u vriendelijk om dit aan te passen in uw relatiebeheersysteem. Tot 1 april 2006 wordt uw mail nog naar onze medewerkers doorgestuurd. Na die tijd komen de oude mailadressen geheel te vervallen. From woodbri at SWOODBRIDGE.COM Fri Feb 3 10:42:45 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 3 Feb 2006 13:42:45 -0500 Subject: shp2tile question In-Reply-To: <001301c628ec$927630d0$a514a8c0@gis> Message-ID: Try setting DEBUG ON in every layer also. You might have to upgrade to 4.6 but I don't recall. -Steve Eric Shuman wrote: > Thanks for the info Steve! > > One problem though... I can't seem to get the debug to work. Nothing shows > up in the log file I created. I am using version 4.4.1 Here is part of my > MAP file. What am I missing? > > > MAP > NAME Proximity > SIZE 2175 2175 > IMAGECOLOR 215 215 215 > SHAPEPATH "/GIS/data/deschutes/" > EXTENT 4523731 708810 5081065 996372 > UNITS FEET > DEBUG ON > > WEB > IMAGEPATH "/GIS/fgs/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > LOG "/GIS/logs/deschutes.log" > END > > .... > > END > > -----Original Message----- > From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] > Sent: Thursday, February 02, 2006 5:11 PM > To: Eric Shuman > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] shp2tile question > > > Eric, > > Here is how you should optimize mapserver: > > 1) every *.shp file should have a shptree index, (ie: a corresponding > *.qix) if you haven't done this then don't think about anything else. > This includes on all TILEINDEX shp files also. > 2) If you have large numbers of objects that you need to do attribute > queries on consider using postgis for just those layers. > 3) I will let others comment on rasters and how to optimize them > 4) Set "DEBUG ON" in the mapfile and create a LOG file, then do a > typical mapdraw and look at how long each layer took to draw. Then tell > us about that if it is not obvious how to fix that performance issue. > 5) As a last resort, if you have REALLY HUGE shapefiles and they are > drawing very slowly then consider using shp2tile, but talk about here on > the list first. > > Let us know if this helps and what your problems are after you have > tried this. > > -Steve W. > http://imaptools.com/ > > Eric Shuman wrote: > >>I also have a similar problem. Don, did you come up with a good solution? >>I'm still new to mapserver and have not delved into the indexing >>capabilities yet. Can someone enlighten me? >> >>Here is my situation: >>I have a map set up that displays cadastral data as well as other layers >>such as streets and points of interest. From PHP I query the map by >>attribute for a taxlot ID. The map layer itself is set to the full extent >>of the data, and uses the parcel layer multiple times to show the query >>results, as well as for other symbology purposes. When the lot is found > > the > >>map zooms to the extent of the results. The data extent covers an entire >>county so the layers are fairly large, and the map takes awhile to draw. >> >>The questions: >>In all cases the final extent is pretty small, maybe 1 square mile max. >>Should I be tiling my parcels layer with the shp2tile/ogrtindex combo and >>then creating a shptree on the resulting index? OR Should I just create a >>shptree on the parcels layer as well as all the other layers? Will the >>shptree help when doing an attribute query, or do I need to find a > > different > >>solution for speeding up the attribute query? Any recomendations on how > > to > >>speed things up? >> >>In addition I am serving up aerial photos. I have a 1Gig MrSid, but don't >>really want to get into building mapserver from scratch to add the >>functionality. So my though was to convert the SID to 2500 8Meg TIFF's, > > and > >>then run a gdaltindex on them, then maybe a shptree on the index. Is this > > a > >>sound plan? Other options? Does anyone have experience with the speed >>differences of MrSid vs. TIFF? >> >>Thanks for the help! >> >>~Eric Shuman >> >> >> >>On Mon, 18 Apr 2005 10:20:23 -0400, Don Deskins > > wrote: > >> >>>Steve, >>> >>>Thank you for your reply. >>> >>>I have experimented with different numbers and after reading a bit >>>more, I have discovered that it make no difference (in my case) how I >>>divide it up. As a matter of fact, my application performs SLOWER the >>>more files that I have. >>> >>>What I am trying to do is to display an area with parcels of land. I >>>have two identical layers... one to display all of the parcels and the >>>other to only display the selected parcel. It is extremely slow when >>>querying for by parcel id. Because of this, I need to put the second >>>layer (at least) in a database so that the parcelid field can be >>>indexed. >>> >>>Thanks, >>> >>>Don >>> >>>On 4/11/05, Stephen Woodbridge wrote: >>> >>> >>>>Don, >>>> >>>>Like I said there is no magic number. If you are most showing all your >>>>parcels most of the time then there is not value in having it tiled. One >>>>of the MOST important performance issues is to make sure all your *.shp >>>>files have a *.qix file. >>>> >>>>Try a different set of tiling parameters and test it again. >>>> >>>>Did you have *.qix on you original shapefile? If not go back to that and >>>>add one (shptree file.shp) and see how it performs untiled. >>>> >>>>-Steve >>>> >>>>Don Deskins wrote: >>>> >>>> >>>>>Bart and Steve, >>>>> >>>>>My shapefiles are showing up now... thanks! >>>>> >>>>>Now I have a time problem... It seems to take more time to generate >>>>>the image than it did before. I am checking for errors now. >>>>> >>>>>Thanks again. >>>>> >>>>>Don >>>>> >>>>> >>>>>On Apr 11, 2005 3:28 PM, Bart van den Eijnden wrote: >>>>> >>>>> >>>>> >>>>>>Hi Don, >>>>>> >>>>>>check the dbf of your generated tileindex (the LOCATION field). I > > usually > >>>>>>use absolute paths in there. Are there absolute or relative paths to > > the > >>>>>>files in there? >>>>>> >>>>>>Also use TYPE POLYGON. Are you zoomed in enough to have your layer > > showing > >>>>>>up, since you are using a MAXSCALE setting? >>>>>> >>>>>>Best regards, >>>>>>Bart >>>>>> >>>>>>On Mon, 11 Apr 2005 15:24:45 -0400, Don Deskins >>>>>>wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>Bart (and Steve), >>>>>>> >>>>>>>Thanks. >>>>>>> >>>>>>>I have my files created and tried to reference this index in my map > > file: > >>>>>>>#################################### >>>>>>># parcels >>>>>>>LAYER >>>>>>> NAME 'tileindex' >>>>>>> TYPE TILEINDEX >>>>>>> DATA '/path/to/tileindex' >>>>>>> MAXSCALE 40000 >>>>>>>END >>>>>>> >>>>>>>LAYER >>>>>>> NAME 'SCAP_Cert2004_ParcelsUTM16M' >>>>>>> STATUS ON >>>>>>> TYPE POLYGON >>>>>>> TILEINDEX '/path/to/tileindex' >>>>>>> #TILEITEM 'LOCATION' >>>>>>> MAXSCALE 40000 >>>>>>>END >>>>>>>#################################### >>>>>>> >>>>>>>I get no error but my shapes are not showing up... do you see a >>>>>>>problem with the above map? >>>>>>> >>>>>>>Don >>>>>>> >>>>>>>On Apr 11, 2005 2:58 PM, Bart van den Eijnden > > wrote: > >>>>>>> >>>>>>>>Hi, >>>>>>>> >>>>>>>>It is tile4ms, not tile2ms, probably a typo by Steve. >>>>>>>> >>>>>>>>It is a Mapserver utility to make a tileindex. Alternatively, you can >>>>>>>>also >>>>>>>>use ogrtindex for vector layers and gdaltindex for raster layers. >>>>>>>> >>>>>>>>Best regards, >>>>>>>>Bart >>>>>>>> >>>>>>> >>>>>>-- >>>>>>Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ >>>>>> >>>>> >>>>> >>>>> >>>>>-- >>>>>Don Deskins >>>>> >>>> >>>> >>>-- >>>Don Deskins >> >> > > From woodbri at SWOODBRIDGE.COM Fri Feb 3 10:50:38 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 3 Feb 2006 13:50:38 -0500 Subject: MapServer 4.8.0 released In-Reply-To: <000b01c628e3$a6da4f10$0200a8c0@lsu.edu> Message-ID: Carola, The bug is a little sparse for content. Could you update it and add an example of what you are trying to do that does not work. I think an example of a mapfile layer that you think should work would be a great assistance. Thanks, -Steve W. Carola Jesch wrote: > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1570 > > I am still waiting for help with this bug (multiple join with postgresql) > Any chance ? > > Thanks, Carola > [snip] From osgis.lists at GMAIL.COM Fri Feb 3 10:52:05 2006 From: osgis.lists at GMAIL.COM (David Bitner) Date: Fri, 3 Feb 2006 12:52:05 -0600 Subject: Visualizing Point Data In-Reply-To: Message-ID: Note that the snaptogrid (not sure of spelling or syntax without looking) in PostGIS could work similarly to the function that you have created. On 2/3/06, Bill Binko wrote: > Hi all, > > I'd like to thank everyone for their feedback on this, and remind our > freinds meeting tomorrow just how valuable this community is in terms of > responsiveness, accumen, and general ability. Please make sure this > community can continue to thrive with the new Foundation in the mix. > > That said, I have some clarifying thoughts that I thought I'd post: > > 1) Bob Basques has found a link that describes the Kernel Density output > very closely (thanks, Bob). Here it is for background: > http://www.quantdec.com/SYSEN597/GTKAV/section9/density.htm > > 2) Several people have mentioned grouping points and counting them, and > then visualizing by the count. I have used this technique two different > ways, and I find use for both of them. > a) First, I have created arbitrary grids that split up a dataset > into blocks and then used the PostGIS Within() method to calculate > count/sum/max/min/ave numbers for those blocks. > b) I have used Census Block Group shapes and performed a similar > calculation. (This has the added benefit of being able to do "per capita" > calculations.) > > Both of these maps are useful: the Block Group map even has some "brains" > behind it since the Block Groups have meaningful boundaries. However, > they are very easily skewed. For example, a single large parcel of may > take up a large percentage of the block, or points may be clustered very > close to a corner -- this distributes the points across the blocks and > dilutes their values. > > 3) Sean G suggested that a "poor man's" version of this could be created > with transparent shapes (which Mapserver doesn't yet support). That's > true, to a point. But there are problems with the approach. For example, > unline a true density diagram, only the intensity of the color would > change: not the radius, so zoomed out views won't see highly dense > (coincident) areas > > I'm not discounting any of these ideas: they all are helping, I just > thought I'd post back a summary of what I've gotten so far. > > Bill > > PS: Here is the skeleton of a method in PostGIS that will create a new > table with a grid that covers the extent of an existing dataset so that > you can use "WITHIN" to gather averages, etc. > > PL/PGSQL to create averages by area on a point set: > > DECLARE > source_table ALIAS FOR $1; > source_col ALIAS for $2; > dest_table ALIAS for $3; > dest_col ALIAS for $4; > num_cols ALIAS for $5; > num_rows ALIAS for $6; > > srid integer; > > block_width double precision := 0; > block_height double precision := 0; > border box3d; > boxString text; > result text; > BEGIN > > srid := select srid from geometry_columns where f_table_name ilike > source_table and f_geometry_column ilike source_col; > EXECUTE 'CREATE TABLE ' || dest_table || ' ( gid serial )'; > EXECUTE 'AddGeometryColumn('''|| > dest_table||''','''|| > dest_col||''',srid, ''POLYGON'',2)'; > > border := box3d(extent(target_shape)) from target_table; > block_width := (xmax(border) - xmin(border)) / num_cols; > block_height := (ymax(border) - ymin(border))/ num_rows; > boxString := 'BOX3D(''BOX3D(0 0 0, ' || block_width || ' ' || > block_height || ' 0)'')'; > result := EXECUTE 'insert into ' || dest_table || '( ' || > dest_col || ') values ( '|| boxString ' ) '; > return done; > > end; > From cjohnson at REFRACTIONS.NET Fri Feb 3 11:01:18 2006 From: cjohnson at REFRACTIONS.NET (Clint Johnson) Date: Fri, 3 Feb 2006 11:01:18 -0800 Subject: UNC path in mapfile In-Reply-To: Message-ID: Suggestions: 1. Try it out with the .sid file locally to check that your issue is in fact with UNC/Networking, and not an issue of having errors in your map file. 2. (long shot) Try (note dollar sign): DATA "\\192.168.51.15\d$\arcims\sid83\2003\Ortho_1- 1_1n_s_nd035_2003_1.sid" 3. Consider architecture issues: If your mapserver deployment is running on linux machine and trying to access via UNC on a windows 2003 server, then there it is likely to fail (depending on your Samba version and linux kernel) as Win2003 server (by default) uses CIFS. CIFS is encrypted and older version of Samba will fail to connect access it. Not entirely sure if the inverse is also true... 4. Try mapping the UNC share locally, and using that local share (eg Z:\) in the mapfile. 5. Reevaluate your UNC/windows file sharing permissions under windows/IIS. http://support.microsoft.com/kb/271071/EN-US/ http://support.microsoft.com/kb/q257174/ Clint -- Clint Johnson Refractions Research Inc. Cjohnson at refractions.net krishna S wrote: > Hello all, i was wondering how can we set a unc path in the mapfile. I have > a sid file on a different computer, i set the proper permissions and gave > the unc path but the image doesnt show up. > > This was the entry i made in mapfile > > LAYER > NAME "RASTER" > TYPE RASTER > DATA "\\192.168.51.15\d\arcims\sid83\2003\Ortho_1- > 1_1n_s_nd035_2003_1.sid" > OFFSITE 0 0 0 > STATUS DEFAULT > END > > Any suggestions please ..... > > --kris > From steve.lime at DNR.STATE.MN.US Fri Feb 3 11:09:16 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 3 Feb 2006 13:09:16 -0600 Subject: 4.8: WFS post body is too short Message-ID: I made a mistake in applying the patch and tested the wrong binary on my home machine. I have fixed the problem in 4.8 CVS (the error is not in 4.9/.10 where I applied the patch correctly). I'll check with Dan on how handle... Steve >>> Steve Lime 02/03/06 12:30 PM >>> I'm not sure how it could be but that was the only change between rc3 and the final release that is remotely related to your problem. All that patch does is set a default content-type in case one isn't specified. Since you're setting that value it should behave just as before (unless I made a mistake applying the patch). Have you tried using the version cgiutils.c from 4.8.0 rc3 and recompiling? Steve >>> Bart van den Eijnden 02/03/06 11:22 AM >>> Is this related to the fix for bug 1628? http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1628 For reference, I try to post using the following Python script: import httplib, urllib, string, base64, time # 1) set variable for request to be posted request=""" PC68044PC*HUISNR* """ # 2) set WFS servername and hostname # productie server="/stragisweb/cgi-bin/mapserv.exe?map=/ms4w/apps/stragisweb/htdocs/sites/zwolle/map/stragisweb.map&" hostname="localhost:8080" # 3) execute the request h = httplib.HTTP(hostname) h.putrequest("POST", server) h.putheader("Content-type", "text/xml") h.putheader("Content-length", "%d" % len(request)) h.putheader("Accept", "text/xml") h.putheader('Host', hostname) h.endheaders() h.send(request) reply, msg, hdrs = h.getreply() # 4) print the response print h.getfile().read() Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Bart van den Eijnden 3-2-2006 17:58:00 >>> Hi list, with all WFS GetFeature requests posted to Mapserver 4.8 I get back: POST body is short This all works fine with a 48beta2 binary. What has happened? D:\ms4w\apps\stragisweb\htdocs\cgi-bin>mapserv -v MapServer version 4.8.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER INPUT=P OSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG Best regards, Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl - == Let op: wijziging! Vanaf 1 februari 2006 eindigen al onze mailadressen op @Syncera.NL. We verzoeken u vriendelijk om dit aan te passen in uw relatiebeheersysteem. Tot 1 april 2006 wordt uw mail nog naar onze medewerkers doorgestuurd. Na die tijd komen de oude mailadressen geheel te vervallen. - == Let op: wijziging! Vanaf 1 februari 2006 eindigen al onze mailadressen op @Syncera.NL. We verzoeken u vriendelijk om dit aan te passen in uw relatiebeheersysteem. Tot 1 april 2006 wordt uw mail nog naar onze medewerkers doorgestuurd. Na die tijd komen de oude mailadressen geheel te vervallen. From dylan.beaudette at GMAIL.COM Fri Feb 3 11:40:23 2006 From: dylan.beaudette at GMAIL.COM (Dylan Beaudette) Date: Fri, 3 Feb 2006 11:40:23 -0800 Subject: Visualizing Point Data In-Reply-To: Message-ID: On Thursday 02 February 2006 11:06 pm, Bill Binko wrote: > Hi everyone, > > I posted a fairly specific question to the GDAL-dev list (and more on IRC) > the other day, asking for input on how to do Kernel Density mapping using > an OGR data source and sending the raster back through GDAL to be > displayed through Mapserver. > > I got some good responses, one of which was: are you sure that's what you > want? Well, to be honest, I don't know. So I'm posting a more general > question here, hoping that someone in this larger audience has solved the > problem I'm facing. > > What I'm trying to do is visualize point data (stored in PostGIS, but that > can change) so that users can determine where the points are concentrated, > even while zoomed out. One caveat is that the points can be coincident > (identical Lat/Long). > > For example, I'd use this with include recent real estate sales data - > condos in the same building have the same shape, but both sales should > count. Similarly, in a customer counting scenario, two customers with the > same address (even only to the building level) will geocode to the same > lat/long. > > When Mapserver serves up Point layers directly, the results can be quite > disappointing (and misleading). In Mapserver, the last Point to be drawn > on any spot will just hide the previous points, often hiding multiple data > points. > > Similarly, when you zoom out on a point diagram, there are two options: > either you set the symbol to have a max size (so that eventually, they > become "less than clear"), or you keep the symbol size constant, > eventually obliterating the background with huge blobs of overlapping > points. > > When I tried to tackle this problem, I turned to a Real Estate Geography > book I have (written by professor Thrall at my alma mater) > http://www.amazon.com/gp/product/0195076362/sr=1-2/qid=1138949940/ref=sr_1_ >2/104-4827941-6490312?%5Fencoding=UTF8 > > There, he is discussing Site Selection and Customer Spotting methods, > and he discusses the Kernel Density method of generating a surface map > showing where the customers live. The discussion is brief, but the GDAL > folks pointed me to two tools (parts of R and GRASS respectively) that can > take points and generate kernel surfaces. With some magic, contour maps, > and other visualizations could be pushed through GDAL and into Mapserver. > I was just working on this last night: http://casoilresource.lawr.ucdavis.edu/drupal/node/172 check out the source for v.kernel in GRASS Cheers, -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From jerl.simpso at GMAIL.COM Fri Feb 3 11:37:20 2006 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Fri, 3 Feb 2006 13:37:20 -0600 Subject: tile4ms question In-Reply-To: Message-ID: Just an update, I upgraded to mapserver 4.8.0 and tried using the tile4ms provided, with the same result. If anyone has any ideas I'd greatly appreciate any help you might be able to give. Thanks, Jerl On 2/3/06, Jerl Simpson wrote: > > I'm not sure if this should be posted here or not, if not please point me > to the right place. > > I'm having trouble with tile4ms opening the files from at least one of my > Metafile.txt files. > The command I run is as follows: > > tile4ms Metafile.txt tileindex > > error is: > > Aborted. Unable to open > SHP:/var/mapping/tiger_2005/PriRoad/tiles/PriRoad_0037.200_-105.400 > > I thought maybe my filename was too long, but I checked the source, 255 is > the max. So I'm OK there. > > ogrinfo has this to say about the file: > > ------------------------------------------------------------------------------------------- > Layer name: PriRoad_0037.200_-105.400 > Geometry: Line String > Feature Count: 459 > Extent: (-104.835908, 36.412144) - (-104.424129, 37.988177) > Layer SRS WKT: > GEOGCS["NAD83", > DATUM["North_American_Datum_1983", > SPHEROID["GRS 1980",6378137,298.257222101 ]], > PRIMEM["Greenwich",0], > UNIT["degree",0.0174532925199433]] > MODULE: String (8.0) > CFCC: String (3.0) > FENAME: String (30.0) > FETYPE: String (4.0) > ------------------------------------------------------------------------------------------- > > I'm running mapserver version 4.6.0, should I upgrade to 4.8.0? > > The shape is a small file, 50K, so I can provide it if need be. > > thanks > > Jerl > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kris_rock82 at YAHOO.COM Fri Feb 3 11:41:28 2006 From: kris_rock82 at YAHOO.COM (krishna S) Date: Fri, 3 Feb 2006 13:41:28 -0600 Subject: UNC path in mapfile Message-ID: Hi Thanks for your reply .... 1)I tried with a .sid file locally and it works 2)I tried with the dollar sign but it doesnt work ..... 3)My mapserver is in windows and i am trying to access a windows machine via UNC 4) I mapped the drive in the other computer and gave it a virtual directory in the mapserver machine but no use 5)The file sharing permissions are right .... Is there any other possible way ....... --kris From ed at TOPOZONE.COM Fri Feb 3 11:53:56 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 3 Feb 2006 14:53:56 -0500 Subject: tile4ms question Message-ID: Jerl - Do you have a .shx and .dbf file for it, too? Can you look at a file in the same or nearby directory that DOES work to see if you can detect any difference? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jerl Simpson Sent: Friday, February 03, 2006 2:37 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] tile4ms question Just an update, I upgraded to mapserver 4.8.0 and tried using the tile4ms provided, with the same result. If anyone has any ideas I'd greatly appreciate any help you might be able to give. Thanks, Jerl On 2/3/06, Jerl Simpson wrote: I'm not sure if this should be posted here or not, if not please point me to the right place. I'm having trouble with tile4ms opening the files from at least one of my Metafile.txt files. The command I run is as follows: tile4ms Metafile.txt tileindex error is: Aborted. Unable to open SHP:/var/mapping/tiger_2005/PriRoad/tiles/PriRoad_0037.200_-105.400 I thought maybe my filename was too long, but I checked the source, 255 is the max. So I'm OK there. ogrinfo has this to say about the file: ------------------------------------------------------------------------ ------------------- Layer name: PriRoad_0037.200_-105.400 Geometry: Line String Feature Count: 459 Extent: (-104.835908, 36.412144) - (-104.424129, 37.988177) Layer SRS WKT: GEOGCS["NAD83", DATUM["North_American_Datum_1983", SPHEROID["GRS 1980",6378137,298.257222101 ]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]] MODULE: String (8.0) CFCC: String (3.0) FENAME: String (30.0) FETYPE: String (4.0) ------------------------------------------------------------------------ ------------------- I'm running mapserver version 4.6.0, should I upgrade to 4.8.0? The shape is a small file, 50K, so I can provide it if need be. thanks Jerl -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mark.Hudson at XWAVE.COM Fri Feb 3 12:04:04 2006 From: Mark.Hudson at XWAVE.COM (Mark Hudson) Date: Fri, 3 Feb 2006 14:04:04 -0600 Subject: chameleon legends and query results Message-ID: Hi: I have a chameleon application and am wondering how to manipulate the legend and query results. My legend is including every layer in my mapfile ? but I want to remove a couple of layers from it (layers that represent street borders) ? not sure how to remove items (layers) from the legend. Any suggestions? Secondly, I can get the query results to display for my chosen layer (crime) by implementing the TEMPLATE object in the mapfile. However, it does not appear to be reading the template file correctly. I have specified a TEMPLATE, HEADER, AND FOOTER object in the crime layer but my TEMPLATE html file specifies chosen fields that should be displayed. The problem is that every field in the shapefile is being shown in the query results. The application does not appear to be reading the template files correctly, but does not work if I do not specify any templates. Code is below: Mapfile layer object code: #layer LAYER NAME "Crime Locations" STATUS ON DATA "geocode_crime_84" TYPE POINT MAXSCALE 100000 TOLERANCE 10 CLASS STYLE SYMBOL 'triangle' COLOR 255 0 0 MINSIZE 8 END TEMPLATE "../templates/crime_query.html" END HEADER "../templates/crime_header.html" FOOTER "../templates/crime_footer.html" END Crime_query.html code: [lrn] [OFFENCE] [MODE_TRAVE] [LOCATION] [TIME] [DAY] [DATE_] [MONTH] [WEAPON_USE] Crime_header.html code: Layer: crime

Crime_footer.html code:
OFFENCE MODE_TRAVE LOCATION TIME DAY DATE_ MONTH WEAPON_USE

Any suggestions would be helpful. Thanks. Mark. From Jeremy.Sears at CCRS.NRCAN.GC.CA Fri Feb 3 12:14:29 2006 From: Jeremy.Sears at CCRS.NRCAN.GC.CA (Sears, Jeremy) Date: Fri, 3 Feb 2006 15:14:29 -0500 Subject: reference map output format? Message-ID: Hi All, Is it possible to specify the output format for a reference map? If so how? The documentation indicates that it may be possible however Im having trouble getting it to work. The default format for the reference map is .png, Id like to change this to jpg. This is the php code Im using to generate the reference map: $map = ms_newMapObj($mapfileloc); //draw map $image=$map->draw(); $image_url=$image->saveWebImage(); //draw reference map $refImage = $map->drawReferenceMap(); $refImageLoc = $refImage->saveWebImage(); I think that I need to include a statement like: $map->set(imagetype,'image/jpeg'); or somthing... A print_r($refimage) indicates that: >> [imagetype] => png but Im not sure how to change this. Can someone enlighten me? Thanks Jeremy From dmorissette at DMSOLUTIONS.CA Fri Feb 3 12:17:51 2006 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Fri, 3 Feb 2006 15:17:51 -0500 Subject: MapServer 4.8.1 released (was: MapServer 4.8.0 released) In-Reply-To: <43E376D0.80409@dmsolutions.ca> Message-ID: A bug was introduced between 4.8.0rc3 and the 4.8.0 release that broke support for POST requests. We've had to pull the 4.8.0 release and issue a new MapServer 4.8.1 with this bug fixed: http://mapserver.gis.umn.edu/download/current/ Sorry about this. Daniel Version 4.8.1 (2006-02-03) -------------------------- - Fixed bug introduced by previous fix to set default content-type in POST requests. (bug 1628) Daniel Morissette wrote: > Good Morning, > > MapServer 4.8.0 has just been released. The source package is available > in the download area of the website and you can expect compiled binaries > to become available shortly at the usual locations: > http://mapserver.gis.umn.edu/download/current/ > > Since the creation of the MapServer Technical Steering Committee in > August, new features are now tracked via RFC documents. You can browse > the complete list of RFCs at http://mapserver.gis.umn.edu/development/rfc > > The relevant RFCs for this 4.8 release are: > > * MS RFC 2: Creating line features and/or shapes using WKT > * MS RFC 3: Layer Plug-in Architecture > * MS RFC 4: MapServer Raster Resampling > * MS RFC 5: MapServer Horizon Reprojection Improvements > * MS RFC 6: Color Range Mapping of Continuous Feature Values > * MS RFC 8: Pluggable External Feature Layer Providers > > Once again, all the details are available in the RFC documents at the > URL above. > > Another important enhancement in this release that is not documented in > a RFC is the support for fuzzy brushes which allows producing > antialiased thick lines when ANTIALIAS TRUE is set in a STYLE. For more > details look for the "Fuzzy brushes and antialiased lines" thread in the > mapserver-users list archives. > > This release also includes a large number of small enhancements and bug > fixes that didn't deserve their own RFC. I have included a copy of the > list of changes/fixes since 4.6 from the HISTORY.TXT at the end of this > message. > > Daniel > ------------------------------------------------------------ > Daniel Morissette dmorissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > > > Version 4.8.0 (2006-02-02) > -------------------------- > > - Treat classindex as an int instead of a char in resultCacheMemberObj to > prevent problems with more than 128 classes (bug 1633) > > - Fixed possible crash with default content-type and POST requests.(bug > 1628) > > - Known issue: MapScript queryByAttributes() creates wrong WHERE clause on > postgis layers in some cases (patch available, see bug 1629) > > > Version 4.8.0-rc3 (2006-01-25) > ------------------------------ > > - Add gml:lineStringMember in GML2 MultiLineString geometry (bug 1569). > > - Move gBYTE_ORDER inside the pg layerinfo structure to allow for > differently > byte ordered connections (bug 1587). > > - Close file handle when saving symbolset. > > - Fix the memory allocation bug in sdeShapeCopy (Bug 1606). > > - Fixed OGR WKT support (Bug 1614). > > - Finished implementation of OGR Shape2WKT function (Bug 1614). > > - Added shapeObj::toWkt() and ms_shapeObjFromWkt() to PHP MapScript (bug > 1466) > > - Detect/add -DHAVE_VSNPRINTF in configure script and prevent systematic > buffer overflow in imagemap code when vsnprintf() not available (bug > 1613) > > > Version 4.8.0-rc2 (2006-01-09) > ------------------------------ > > - Commit fix for GD on win32 when different heaps are in use. (Bug 1513) > > - Correct bound reprojection issue with ogc filer (Bug 1600) > > - Correct mapscript windows build problem when flag USE_WMS_SVR was > not set (Bug 1529) > > - Fix up allocation of the SDE ROW_ID columns and how the functions that > call it were using it. (bug 1605) > > - Fixed crash with 3D polygons in Oracle Spatial (bug 1593) > > > Version 4.8.0-rc1 (2005-12-22) > ------------------------------ > > - Fixed shape projection to recompute shape bounds. (Bug 1586) > > - Fixed segfault when copying/removing styles via MapScript. (Bug 1565) > > - Fixed segfault when doing attribute queries on layers with a FILTER > already > set but with no FILTERITEM. > > > Version 4.8.0-beta3 (2005-12-16) > -------------------------------- > > - Initialize properly variable in php mapscript (Bug 1584) > > - New support for pseudo anti-aliased fat lines using brushes with variable > transparency. > > - Arbitrary rotation support for vector symbols courtesy of Map Media. > > - Support for user-defined mime-types for CGI-based browse and legend > templates (bug 1518). > > - mapraster.c: Allow mapresample.c code to be called even if projections > are not set on the map or layer object. This is no longer a requirement. > (Bug 1562) > > - Fix problem with WMS 1.1.1 OGC test problem with get capabilites dtd > (Bug 1576) > > - PDF : adding dash line support (Bug 492) > > - Fixed configure/build problem (empty include dir) when iconv.h is not > found (bug 1419) > > - PDF : segfault on annotation layer when no style is set (Bug 1559) > > - PostGIS layer test cases and fix for broken views and sub-selects (bug > 1443). > > - SDE: Removed (commented out) support for SDE rasters at this time. As > far > as I know, I'm the only one to ever get it to work, it hasn't kept up > with > the connection pooling stuff we did, and its utility is quite limited in > comparison to regular gdal-based raster support (projections, > resampling, etc) (HB - bug 1560). > > - SDE: Put msSDELayerGetRowIDColumn at the top of mapsde.c so things > would compile correctly. This function is not included (or necessary) > in the rest of the MS RFC 3 layer virtualization at this time. > > - WFS : TYPENAME is manadatory for GetFeature request (Bug 1554). > > - SLD : error parsing font parameters with the keyword "normal" (Bug 1552) > > - mapgraticule.c: Use MIN/MAXINTERVAL value when we define grid position > and > interval (bug 1530) > > - mapdrawgdal.c: Fix bug with nodata values not in the color table when > rendering some raster layers (bug 1541). > > - mapogcsld.c : If a RULE name is not given, set the class name to > "Unknown" > (Bug 1451) > > Version 4.8.0-beta2 (2005-11-23) > -------------------------------- > > - Use dynamic allocation for ellipse symbol's STYLE array, avoiding the > static limitation on the STYLE argument values. (bug 1539) > > - Fix bug in mapproject.c when splitting over the horizon lines. > > - Fix Tcl mapscript's getBytes method (bug 1533). > > - Use mapscript.i in-place when building Ruby mapscript, copying not > necessary > (bug 1528). > > - Expose maximum lengths of layer, class, and style arrays in mapscript > (bug > 1522). > > - correct msGetVersion to indicate if mapserver was build with MYGIS > support. > > - Fixed hang in msProjectRect() for very small rectangles due to round off > problems (bug 1526). > > > Version 4.8.0-beta1 (2005-11-04) > -------------------------------- > > - Bug 1509: Fixed bounding box calculation in mapresample.c. The bottom > right > corner was being missed in the calculation. > > - MS RFC 2: added OGR based shape<->WKT implementation. > > - mapgdal.c: fixed some mutex lock release issues on error conditions. > > - MS RFC 8: External plugin layer providers (bug 1477) > > - SLD : syntax error when auto generating external symbols (Bug 1508). > > - MS RFC 3: Layer vtable architecture (bug 1477) > > - wms time : correct a problem when hadling wms times with tile index > rasters > (bug 1506). > > - WMS TIME : Add suuport for multiple interval extents (Bug 1498) > > - Removed deprecated --with-php-regex-dir switch (bug 1468) > > - support wms_attribution element for LAYER's (Bug 1502) > > - Correct php/mapscript bug : initialization of scale happens when > preparequery is called (Bug 1334). > > - msProjectShape() will now project the lines it can, but completely > delete lines that cannot be projected properly and "NULL" the shape if > there are no lines left. (Bug 411) > > - Expose msLayerWhichShapes and msLayerNextShape in MapScript. (bug 1481) > > - Added support to MapScript to change images in a previously defined > symbol. (bug 1471) > > - mapogcfiler.c : bug 1490. Crash when size of sld filters was huge. > > - Fixed --enable-point-z-m fix in configure.in (== -> =) (bug 1485). > > - Extra scalebar layer creation is prevented with a typo fix in mapscale.c. > Good catch, Tamas (bug 1480). > > - mapwmslayer.c : use transparency set at the layer level on wms client > layers (Bug 1458) > > - mapresample.c: added BILINEAR/AVERAGE resampling options. > > - mapfile.c: avoid tail recursion in freeFeatureList(). > > - maplegend.c: fixed leak of imageObj when embedding legends. > > - msGDALCleanup(): better error handler cleanup. > > - Modified msResetErrorList() to free the last error link too, to ensure > msCleanup() scrubs all error related memory. > > - Fix in msGetGDALGetTransform() to use default geotransform even if > GDALGetGeoTransform() fails but alters the geotransform array. > > - Typemaps for C# to enable imageObj.getBytes() method (bug 1389). > > - Enable -DUSE_ZLIB via configure for compressed SVG output (bug 1307). > > - maputil.c/msAddLine(): rewrite msAddLine() to call > msAddLineDirectly, and use realloc() in msAddLineDirectly() to optimize > growth of shapeObjs. (bug 1432) > > - msTmpFile: ensure counter is incremented to avoid duplicate > temporary filenames. (bug 1312) > > - SLD external graphic symbol format tests now for mime type > like image/gif instead of just GIF. (bug 1430) > > - Added support for OGR layers to use SQL type filers (bug 1292) > > - mapio/cgiutil - fixed POST support in fastcgi mode. (bug 1259) > > - mapresample.c - ensure that multi-band raw results can be > resampled. (bug 1372) > > - Add support in OGC FE for matchCase attribute on > PropertyIsEqual and PropertyIsLike (bug 1416) > > - Fixed sortshp.c to free shapes after processing to avoid major > memory leak. (bug 1418) > > - fixed msHTTPInit() not ever being called which prevented msHTTPCleanup() > from properly cleaning up cUrl with curl_global_cleanup(). (bug 1417) > > - mapsde.c: add thread locking in msSDELCacheAdd > > - fixed mappool.c so that any thread can release a connection, > not just it's allocator. (bug 1402) > > - mapthread.c/h: Added TLOCK_SDE and TLOCK_ORACLE - not used yet. > > - Fixed copying of layer and join items. (bug 1403) > > - Fixed copying of processing directives within copy of a layer. (bug 1399) > > - Problems with string initialization. (bug 1312) > > - Fix svg output for multipolygons. (bug 1390) > > - Added querymapObj to PHP MapScript (bug 535) > From Mark.Hudson at XWAVE.COM Fri Feb 3 12:24:49 2006 From: Mark.Hudson at XWAVE.COM (Hudson, Mark (xwave)) Date: Fri, 3 Feb 2006 15:24:49 -0500 Subject: disregard Message-ID: Hi: Please ignore my last two messages - sent to wrong mailing list. I use both Mapserver and Chameleon, so I just messed up the postings, sorry for the confusion. Mark. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kris_rock82 at YAHOO.COM Fri Feb 3 12:29:47 2006 From: kris_rock82 at YAHOO.COM (krishna S) Date: Fri, 3 Feb 2006 14:29:47 -0600 Subject: Remote Data access in mapserver Message-ID: Hi, i want to access a data file on a remote machine which is on the same network. I mapped the drive and tried to access the data file from the mapfile by giving the path but it didnt work Is there a way to access a data file on a remote machine using mapfile in mapserver. Any lead please ..... From jerl.simpso at GMAIL.COM Fri Feb 3 12:34:24 2006 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Fri, 3 Feb 2006 14:34:24 -0600 Subject: tile4ms question In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DD8E3@ptolemy.topozone.com> Message-ID: Yep, the .shx and .dbf files are there, and it works fine with ogrinfo, I can display everything in it just fine. These are tiles, created using ogr2ogr with the -spat switch. I can other tiles in the same directory that were made using shp2tile. What's weird is I did this same thing last year. I'm going to dig further to try to find somethine different. On 2/3/06, Ed McNierney wrote: > > Jerl - > > Do you have a .shx and .dbf file for it, too? Can you look at a file in > the same or nearby directory that DOES work to see if you can detect any > difference? > > - Ed > > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > ------------------------------ > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On > Behalf Of *Jerl Simpson > *Sent:* Friday, February 03, 2006 2:37 PM > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* Re: [UMN_MAPSERVER-USERS] tile4ms question > > Just an update, I upgraded to mapserver 4.8.0 and tried using the tile4ms > provided, with the same result. > > If anyone has any ideas I'd greatly appreciate any help you might be able > to give. > > Thanks, > > Jerl > > On 2/3/06, Jerl Simpson wrote: > > > > I'm not sure if this should be posted here or not, if not please point > > me to the right place. > > > > I'm having trouble with tile4ms opening the files from at least one of > > my Metafile.txt files. > > The command I run is as follows: > > > > tile4ms Metafile.txt tileindex > > > > error is: > > > > Aborted. Unable to open > > SHP:/var/mapping/tiger_2005/PriRoad/tiles/PriRoad_0037.200_-105.400 > > > > I thought maybe my filename was too long, but I checked the source, 255 > > is the max. So I'm OK there. > > > > ogrinfo has this to say about the file: > > > > ------------------------------------------------------------------------------------------- > > Layer name: PriRoad_0037.200_-105.400 > > Geometry: Line String > > Feature Count: 459 > > Extent: (-104.835908, 36.412144) - (-104.424129, 37.988177) > > Layer SRS WKT: > > GEOGCS["NAD83", > > DATUM["North_American_Datum_1983", > > SPHEROID["GRS 1980",6378137,298.257222101 ]], > > PRIMEM["Greenwich",0], > > UNIT["degree",0.0174532925199433]] > > MODULE: String (8.0) > > CFCC: String (3.0) > > FENAME: String (30.0) > > FETYPE: String (4.0) > > ------------------------------------------------------------------------------------------- > > > > I'm running mapserver version 4.6.0, should I upgrade to 4.8.0? > > > > The shape is a small file, 50K, so I can provide it if need be. > > > > thanks > > > > Jerl > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jerl.simpso at GMAIL.COM Fri Feb 3 12:58:51 2006 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Fri, 3 Feb 2006 14:58:51 -0600 Subject: tile4ms question In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DD8E3@ptolemy.topozone.com> Message-ID: Also, ogrinfo reads it all fine, but ogr2ogr can't do anything with it anymore. And it was created using ogr2ogr. On 2/3/06, Ed McNierney wrote: > > Jerl - > > Do you have a .shx and .dbf file for it, too? Can you look at a file in > the same or nearby directory that DOES work to see if you can detect any > difference? > > - Ed > > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > ------------------------------ > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On > Behalf Of *Jerl Simpson > *Sent:* Friday, February 03, 2006 2:37 PM > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* Re: [UMN_MAPSERVER-USERS] tile4ms question > > Just an update, I upgraded to mapserver 4.8.0 and tried using the tile4ms > provided, with the same result. > > If anyone has any ideas I'd greatly appreciate any help you might be able > to give. > > Thanks, > > Jerl > > On 2/3/06, Jerl Simpson wrote: > > > > I'm not sure if this should be posted here or not, if not please point > > me to the right place. > > > > I'm having trouble with tile4ms opening the files from at least one of > > my Metafile.txt files. > > The command I run is as follows: > > > > tile4ms Metafile.txt tileindex > > > > error is: > > > > Aborted. Unable to open > > SHP:/var/mapping/tiger_2005/PriRoad/tiles/PriRoad_0037.200_-105.400 > > > > I thought maybe my filename was too long, but I checked the source, 255 > > is the max. So I'm OK there. > > > > ogrinfo has this to say about the file: > > > > ------------------------------------------------------------------------------------------- > > Layer name: PriRoad_0037.200_-105.400 > > Geometry: Line String > > Feature Count: 459 > > Extent: (-104.835908, 36.412144) - (-104.424129, 37.988177) > > Layer SRS WKT: > > GEOGCS["NAD83", > > DATUM["North_American_Datum_1983", > > SPHEROID["GRS 1980",6378137,298.257222101 ]], > > PRIMEM["Greenwich",0], > > UNIT["degree",0.0174532925199433]] > > MODULE: String (8.0) > > CFCC: String (3.0) > > FENAME: String (30.0) > > FETYPE: String (4.0) > > ------------------------------------------------------------------------------------------- > > > > I'm running mapserver version 4.6.0, should I upgrade to 4.8.0? > > > > The shape is a small file, 50K, so I can provide it if need be. > > > > thanks > > > > Jerl > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jeremy.Raw at DURHAMNC.GOV Fri Feb 3 13:02:17 2006 From: Jeremy.Raw at DURHAMNC.GOV (Raw, Jeremy) Date: Fri, 3 Feb 2006 16:02:17 -0500 Subject: OGR+ODBC with Debian Sarge Mapserver Message-ID: Question: Does OGR ODBC access to a database table containing X/Y data work in the standard Debian sarge Mapserver package (as opposed to having to compile it from the ground up myself)? Details: I've been happily running the Debian sarge standard package of Mapserver (version 4.4.1) for a number of months. The data sources for this project have (until now) all been in shapefiles and inline features (passed in via CGI). I'm now trying to enlarge the application to display point data from a MySQL database table containing X/Y data. Following the terse but workable how-to on the Mapserver website, I've got ODBC up and running and verified it all the way through using ogrinfo (from the standard sarge gdal package) to access the data. Unfortunately, my mapserver (and also shp2img) perform a segmentation fault every time they try to access the ODBC layer, with no indication of what's wrong. All I'd really like to know is if someone has gotten this to work (or equally, if someone knows for sure that the standard sarge package does not have suitable capabilities compiled in, or if it conflicts with something else etc.) before I set about building the whole mapserver setup from scratch. Here's the test.ovf file (OGR Connection definition), which as I noted works fine with ogrinfo (the file lives in my SHAPEPATH): ODBC:user/password at MySQL Select * from mypoints where (ptid<100) wkbPoint Here's the (very basic) layer definition from the mapfile - the "circle" symbol is defined and works in other layers. LAYER NAME "mypoints" CONNECTIONTYPE OGR CONNECTION "test.ovf" DATA "mypoints" STATUS DEFAULT TYPE POINT CLASS STYLE COLOR 0 0 0 SIZE 2 SYMBOL "circle" END END END Any help or advice much appreciated. Jeremy --- Jeremy Raw Transportation Systems Engineer / City of Durham / DCHC MPO 919-560-4366 ext. 308 / Jeremy.Raw at durhamnc.gov -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Fri Feb 3 13:37:41 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 3 Feb 2006 16:37:41 -0500 Subject: Remote Data access in mapserver Message-ID: Krishna - You need to have a very clear understanding of how network resources are controlled under IIS in Windows. The short answer to your short question is "Yes". But the real answer is much more complicated. Remember that under IIS, as is true throughout Windows, all code executes under some user security context. By default, anonymous HTTP requests to your IIS server are executed under the IUSER_ anonymous Web user account. By default, this anonymous Web user account has no access to any network resources at all. This is a good thing, as you don't want random visitors to your Web site having access to your entire network. But if you DO want them to have access you need to create that access - and manage it carefully. Also remember that drive letter mappings are done and remembered on a per-user basis. Mapping a network resource as "Z:" when you are logged in interactively as user "Krishna" has absolutely no effect on drive letter mappings for any other user, including the IUSR_ account (which probably can't access the network at all). This has nothing to do with MapServer - this is all part of understanding IIS security and the IIS runtime environment. You would run into the same sorts of issues with Apache (different names for things, but essentially the same concepts). - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of krishna S Sent: Friday, February 03, 2006 3:30 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Remote Data access in mapserver Hi, i want to access a data file on a remote machine which is on the same network. I mapped the drive and tried to access the data file from the mapfile by giving the path but it didnt work Is there a way to access a data file on a remote machine using mapfile in mapserver. Any lead please ..... From ed at TOPOZONE.COM Fri Feb 3 13:38:36 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 3 Feb 2006 16:38:36 -0500 Subject: tile4ms question Message-ID: Did you look at my second question? That's a slightly funky-looking filename, and I would suspect that might be part of the problem unless you are having no trouble with similarly-named files. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jerl Simpson Sent: Friday, February 03, 2006 3:59 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] tile4ms question Also, ogrinfo reads it all fine, but ogr2ogr can't do anything with it anymore. And it was created using ogr2ogr. On 2/3/06, Ed McNierney < ed at topozone.com > wrote: Jerl - Do you have a .shx and .dbf file for it, too? Can you look at a file in the same or nearby directory that DOES work to see if you can detect any difference? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jerl Simpson Sent: Friday, February 03, 2006 2:37 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] tile4ms question Just an update, I upgraded to mapserver 4.8.0 and tried using the tile4ms provided, with the same result. If anyone has any ideas I'd greatly appreciate any help you might be able to give. Thanks, Jerl On 2/3/06, Jerl Simpson wrote: I'm not sure if this should be posted here or not, if not please point me to the right place. I'm having trouble with tile4ms opening the files from at least one of my Metafile.txt files. The command I run is as follows: tile4ms Metafile.txt tileindex error is: Aborted. Unable to open SHP:/var/mapping/tiger_2005/PriRoad/tiles/PriRoad_0037.200_-105.400 I thought maybe my filename was too long, but I checked the source, 255 is the max. So I'm OK there. ogrinfo has this to say about the file: ------------------------------------------------------------------------ ------------------- Layer name: PriRoad_0037.200_-105.400 Geometry: Line String Feature Count: 459 Extent: (-104.835908, 36.412144) - (-104.424129, 37.988177) Layer SRS WKT: GEOGCS["NAD83", DATUM["North_American_Datum_1983", SPHEROID["GRS 1980",6378137,298.257222101 ]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]] MODULE: String (8.0) CFCC: String (3.0) FENAME: String (30.0) FETYPE: String (4.0) ------------------------------------------------------------------------ ------------------- I'm running mapserver version 4.6.0, should I upgrade to 4.8.0? The shape is a small file, 50K, so I can provide it if need be. thanks Jerl -------------- next part -------------- An HTML attachment was scrubbed... URL: From jerl.simpso at GMAIL.COM Fri Feb 3 13:48:38 2006 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Fri, 3 Feb 2006 15:48:38 -0600 Subject: tile4ms question In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DD8E6@ptolemy.topozone.com> Message-ID: It was the filename, I changed my program to remove the "." from the filename and it works fine now. thanks, Jerl On 2/3/06, Ed McNierney wrote: > > Did you look at my second question? That's a slightly funky-looking > filename, and I would suspect that might be part of the problem unless you > are having no trouble with similarly-named files. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > ------------------------------ > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On > Behalf Of *Jerl Simpson > *Sent:* Friday, February 03, 2006 3:59 PM > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* Re: [UMN_MAPSERVER-USERS] tile4ms question > > Also, ogrinfo reads it all fine, but ogr2ogr can't do anything with it > anymore. And it was created using ogr2ogr. > > On 2/3/06, Ed McNierney < ed at topozone.com> wrote: > > > > Jerl - > > > > Do you have a .shx and .dbf file for it, too? Can you look at a file in > > the same or nearby directory that DOES work to see if you can detect any > > difference? > > > > - Ed > > > > > > Ed McNierney > > President and Chief Mapmaker > > TopoZone.com / Maps a la carte, Inc. > > 73 Princeton Street, Suite 305 > > North Chelmsford, MA 01863 > > ed at topozone.com > > (978) 251-4242 > > > > ------------------------------ > > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > *On Behalf Of *Jerl Simpson > > *Sent:* Friday, February 03, 2006 2:37 PM > > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > > *Subject:* Re: [UMN_MAPSERVER-USERS] tile4ms question > > > > Just an update, I upgraded to mapserver 4.8.0 and tried using the > > tile4ms provided, with the same result. > > > > If anyone has any ideas I'd greatly appreciate any help you might be > > able to give. > > > > Thanks, > > > > Jerl > > > > On 2/3/06, Jerl Simpson wrote: > > > > > > I'm not sure if this should be posted here or not, if not please point > > > me to the right place. > > > > > > I'm having trouble with tile4ms opening the files from at least one of > > > my Metafile.txt files. > > > The command I run is as follows: > > > > > > tile4ms Metafile.txt tileindex > > > > > > error is: > > > > > > Aborted. Unable to open > > > SHP:/var/mapping/tiger_2005/PriRoad/tiles/PriRoad_0037.200_-105.400 > > > > > > I thought maybe my filename was too long, but I checked the source, > > > 255 is the max. So I'm OK there. > > > > > > ogrinfo has this to say about the file: > > > > > > ------------------------------------------------------------------------------------------- > > > Layer name: PriRoad_0037.200_-105.400 > > > Geometry: Line String > > > Feature Count: 459 > > > Extent: (-104.835908, 36.412144) - (-104.424129, 37.988177) > > > Layer SRS WKT: > > > GEOGCS["NAD83", > > > DATUM["North_American_Datum_1983", > > > SPHEROID["GRS 1980",6378137,298.257222101 ]], > > > PRIMEM["Greenwich",0], > > > UNIT["degree",0.0174532925199433]] > > > MODULE: String (8.0) > > > CFCC: String (3.0) > > > FENAME: String (30.0) > > > FETYPE: String (4.0) > > > ------------------------------------------------------------------------------------------- > > > > > > I'm running mapserver version 4.6.0, should I upgrade to 4.8.0? > > > > > > The shape is a small file, 50K, so I can provide it if need be. > > > > > > thanks > > > > > > Jerl > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From janeks.kamerovskis at SILVA.LV Fri Feb 3 15:05:46 2006 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Sat, 4 Feb 2006 01:05:46 +0200 Subject: help for projections Message-ID: Hi, I want to be able show data in my (X, Y) maps in Lat Long. I somehow can get it somewhere near - shifted ~ 200 km to W and ~100 to S. I would appreciate some help - what could be wrong! So I did folowing under MAP definition PROJECTION # "proj=tmerc" # by description it seems for me that I should use this one "proj=utm" # by using this I can get lat long points somewhere near # "ellps=WGS84" "ellps=GRS80" "lon_0=24E" "k=0.999600" "y_0=500000" "units=m" "north" END Then I have layers in X, Y i.e. without Projection definition And then layer that data is lat long: LAYER NAME "test01" TYPE POINT STATUS ON PROJECTION "proj=latlong" # "ellps=WGS84" "ellps=GRS80" # "datum=WGS84" END FEATURE POINTS # 503968.0 6307054.0 27.1 57.0 #this values shows point in right place 24.24 56.09 #this is the point real (right) coords END # TEXT "Test inline" END CLASS NAME 'Test01' SYMBOL 'triangle' SIZE 14 COLOR 255 0 255 END END ?eogr?fisk? koordin?tu sist?ma- GRS 1980. Meridi?ns- Gr?nvi?as Datums- D_GRS_1980 M?rvien?ba- gr?di Projekcijas koordin?tu sist?ma- Transverse Mercator FalseNorthing- 0 CentralMeridian- 24 OriginLatitude- 0 FalseEasting- 500000 ScaleFactor- 0.9996 brgrds Janeks From stocksll33 at YAHOO.CO.UK Fri Feb 3 15:29:40 2006 From: stocksll33 at YAHOO.CO.UK (Jeremy Stocks) Date: Sat, 4 Feb 2006 00:29:40 +0100 Subject: Thank you... Message-ID: To those who emailed me with the helpful advice...thanks! The Mapserver community is amazing! If I am experienced in this software later I hope to return the favour. Jeremy Stocks ___________________________________________________________ Yahoo! Photos ? NEW, now offering a quality print service from just 8p a photo http://uk.photos.yahoo.com From erics at AMERI-TITLE.COM Fri Feb 3 16:00:40 2006 From: erics at AMERI-TITLE.COM (Eric Shuman) Date: Fri, 3 Feb 2006 18:00:40 -0600 Subject: DEBUG and LOG Message-ID: Need Help!! I have been trying to get some debug info for my map, but can't seem to get it to work. I have just upgraded to mapserver version 4.6.1, but this didn't help. My MAP file looks like this: MAP NAME Proximity SIZE 500 500 IMAGECOLOR 255 255 255 SHAPEPATH "/GIS/data/TestData/" EXTENT 0 0 100 100 UNITS FEET DEBUG ON WEB TEMPLATE "../htdocs/template.html" IMAGEPATH "/GIS/fgs/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" LOG "/GIS/logs/deschutes.log" END # ************************************* # *********** MAP LAYERS ************ # ************************************* LAYER #polygon layer begins here DEBUG ON NAME "polygon" TYPE POLYGON STATUS default DATA "polygon" CLASS DEBUG ON COLOR 156 156 156 STYLE SYMBOL 10 SIZE 20 COLOR 0 0 0 END END END END I have run shp2img on the map file with the -all_debug 5 option with no results (except for the completed image). The only response I have ever gotten was this when using php/mapscript: Fri Feb 3 15:15:22 2006 - msSearchDiskTree(): Unable to access file. Unable to open spatial index for /GIS/data/deschutes/LAND/Taxlot.qix. In most cases you can safely ignore this message, otherwise check file names and permissions. I have tried adding these lines to my httpd.conf file (and restarting) SetEnv MS_ERRORFILE "stderr" SetEnv MS_ERRORFILE /GIS/fgs/tmp/logfile setEnv MSDEBUG What I am trying to get is info on layer draw times. What am I missing? Am I just not looking at the right log files? What are the steps to get the DEBUG parameter to work? I have heard mention of MSDEBUG, what is it and how do I use it? Thanks, Eric Shuman From mhoward at AKIMEKA.COM Fri Feb 3 18:00:31 2006 From: mhoward at AKIMEKA.COM (Mark Howard) Date: Fri, 3 Feb 2006 16:00:31 -1000 Subject: MapServer version 4.4.2 application error WinXP Message-ID: I'm running MapServer version 4.4.2 on a Win XP Pro box. I have a javascript app that has an input who's src is the mapserver WMS URL. I just update the src URL to pan, zoom ..... without refreshing the entire page. After about 20 refreshes, I get no reply. This happens in IE and Mozilla Firefox. Running Firefox, I get a dialog pop-up that says that there's been an "application error - the instruction XXX at ZZZ could not be read". Anybody seen this before? TIA FOR ANY HELP!!!!! Mark From Mark.Hudson at XWAVE.COM Fri Feb 3 09:05:46 2006 From: Mark.Hudson at XWAVE.COM (Hudson, Mark (xwave)) Date: Fri, 3 Feb 2006 12:05:46 -0500 Subject: chameleon legend Message-ID: Hi: I have a chameleon application and am wondering how to manipulate the legend. My issue is that I have a layer of highways and city streets. I want to have a border color on them, so I have 2 layers defined for each of highways and city streets. So of course both show up my legend which is not desirable. I do not want to have the border color show up as a legend item. How do I get around this? Mark. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mark.Hudson at XWAVE.COM Fri Feb 3 11:30:04 2006 From: Mark.Hudson at XWAVE.COM (Hudson, Mark (xwave)) Date: Fri, 3 Feb 2006 14:30:04 -0500 Subject: chameleon Message-ID: Hi: I have a chameleon application and am wondering how to manipulate the legend and query results. My legend is including every layer in my mapfile - but I want to remove a couple of layers from it (layers that represent street borders) - not sure how to remove items (layers) from the legend. Any suggestions? Secondly, I can get the query results to display for my chosen layer (crime) by implementing the TEMPLATE object in the mapfile. However, it does not appear to be reading the template file correctly. I have specified a TEMPLATE, HEADER, AND FOOTER object in the crime layer but my TEMPLATE html file specifies chosen fields that should be displayed. The problem is that every field in the shapefile is being shown in the query results. The application does not appear to be reading the template files correctly, but does not work if I do not specify any templates. Code is below: Mapfile layer object code: #layer LAYER NAME "Crime Locations" STATUS ON DATA "geocode_crime_84" TYPE POINT MAXSCALE 100000 TOLERANCE 10 CLASS STYLE SYMBOL 'triangle' COLOR 255 0 0 MINSIZE 8 END TEMPLATE "../templates/crime_query.html" END HEADER "../templates/crime_header.html" FOOTER "../templates/crime_footer.html" END Crime_query.html code: [lrn] [OFFENCE] [MODE_TRAVE] [LOCATION] [TIME] [DAY] [DATE_] [MONTH] [WEAPON_USE] Crime_header.html code: Layer: crime

Crime_footer.html code:
OFFENCE MODE_TRAVE LOCATION TIME DAY DATE_ MONTH WEAPON_USE

Any suggestions would be helpful. Thanks. Mark. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Derek.Bird at XWAVE.COM Fri Feb 3 06:26:34 2006 From: Derek.Bird at XWAVE.COM (Bird, Derek (xwave)) Date: Fri, 3 Feb 2006 09:26:34 -0500 Subject: Drawing new points using the JSAPI interface Message-ID: Good morning, Trying to draw a few points on the map using JSAPI, and am having no luck.... I added this code to the onLoad function: (This works) goCWCJSAPI.oMap.CreateNewLayer("Sensors","POINT"); // This returns TRUE however nothing is plotted. Then I added a button the the page, that calls a function plotIt() apoint=new CWCPoint(); apoint.x=77.0000; apoint.y=18.00; apoint.symbol_size=1; apoint.font_color="10,10,10"; // some random colour worked=goCWCJSAPI.oMap.AddPoint("Sensors",apoint); alert(worked); I know having a database connection is an option, however for a quick demo, I just want to add a bunch of points using javascript from a different application. Can someone tell me what I am missing to plot points? Regards, Derek -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3084 bytes Desc: not available URL: From asimpson at I-55.COM Sat Feb 4 08:29:12 2006 From: asimpson at I-55.COM (Simpson) Date: Sat, 4 Feb 2006 10:29:12 -0600 Subject: Server Down? In-Reply-To: Message-ID: Is http://cvs.gis.umn.edu/ down? -------------- next part -------------- An HTML attachment was scrubbed... URL: From lichte at ICBM.DE Sat Feb 4 08:49:43 2006 From: lichte at ICBM.DE (Oliver Lichte) Date: Sat, 4 Feb 2006 17:49:43 +0100 Subject: [SPAM][PROB=81%] Re: [UMN_MAPSERVER-USERS] dynamic annotation In-Reply-To: <20060204072248.9829.qmail@web31212.mail.mud.yahoo.com> Message-ID: Hello, > kindly send ur advise, sorry for the trouble. please post to the list, since someone else could need this information, too, and doesn't matter there's no trouble for me :-) You wrote you are using PHPMapscript 4.2. That's an rather older version (current 4.8.1.). I guess the number of args differ for settext in it (can anybody confirm?). I'd propose you should either read the README of your issue for details or upgrade to >=4.4.1 ( the one I have got experiences ). Best regards, Oliver Am Samstag, 4. Februar 2006 08:22 schrieben Sie: > hi Oliver > > thanks for the reply i had tried with settext() i am getting the > following error my code is : > $tlay=$map->GetLayer(2); // this is getting exact layer > $tname=$tlay->getclass(0); // this also working > $tname->settext( "NewTitle" ); > Warning: Wrong parameter count for settext() > > kindly send ur advise, sorry for the trouble. > > > regards > N Dhanasekar > > > Oliver Lichte wrote: > Hi, > > try something like this: > > where, $map:mapObj > > ... > $lay = $map->getLayerByName( "NICHEAD2" ); > > $cls = $lay->getClass(0); // works only if the class is the first defined > $cls->setText( "Your new text" ); > ... > > You may get problems with the alignment of the text in the image but other > attributes of the classObj can be changed similar. > > > Cheers, > Oliver > > Am Freitag, 3. Februar 2006 09:08 schrieb N Dhanasekar: > > hi to all > > > > i am trying to generate online map as per user requirement, so i want put > > a dynamic annotation layer on map. i am using php_mapscript4.2, any one > > can help me how to add a dynamic annotation layer or change the text > > string in my annotation layer dynamically > > > > my .map contain a annotation layer like this > > LAYER > > NAME "NICHEAD2" > > STATUS ON > > TRANSFORM FALSE > > TYPE ANNOTATION > > FEATURE > > # POINTS 0.045164250 0.030654 > > POINTS 300 50 > > END > > END > > CLASS > > TEXT "Severe Mal-Nourished Children" > > LABEL > > TYPE TRUETYPE > > FONT arial-bold > > SIZE 15 > > ANTIALIAS TRUE > > COLOR 255 204 0 > > POSITION UR > > FORCE TRUE > > END > > END > > END > > > > i want to chage the text dynamically > > thanks > > > > nds > > > > > > > > --------------------------------- > > Brings words and photos together (easily) with > > PhotoMail - it's free and works with Yahoo! Mail. -- Junior Research Group IMPULSE ICBM * Carl-v.-Ossietzky University of Oldenburg PO-Box 2503 * 26111 Oldenburg - Germany - http://www.icbm.de/impulse room: W15-2-239 * fon:+49-441-798-3622 * fax:+49-441-798-3404 From steve.lime at DNR.STATE.MN.US Sat Feb 4 10:25:19 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Sat, 4 Feb 2006 12:25:19 -0600 Subject: Server Down? Message-ID: Yes. Not sure why though (all parties that can do something about it are in Chicago). It likely will not be resolved until tomorrow. Steve >>> Simpson 02/04/06 10:29 AM >>> Is http://cvs.gis.umn.edu/ down? From bill at BINKO.NET Sun Feb 5 09:16:10 2006 From: bill at BINKO.NET (Bill Binko) Date: Sun, 5 Feb 2006 12:16:10 -0500 Subject: Visualizing Point Data In-Reply-To: <200602031140.24267.dylan.beaudette@gmail.com> Message-ID: On Fri, 2006-02-03 at 11:40 -0800, Dylan Beaudette wrote: > I was just working on this last night: > http://casoilresource.lawr.ucdavis.edu/drupal/node/172 > > check out the source for v.kernel in GRASS Dylan, This is an excellent example of what I'm trying to achieve. Here are some quick thoughts about what you've shown: 1) How would you publish this "live" to the web? Do you know how to integrate v.kernel to push its output to mapserver directly? I know there are tools to push GRASS output through GDAL, and I suspect that that could be daisy chained into mapserver, but I'd like someone's opinion who's actually done this. If there's an example (anybody?) or HOWTO of how to leverage GRASS this way? 2) What is the performance of v.kernel. For example, I'll have 30-100K points over the state of florida. For a zoomed out view, how long would that take to draw? Perhaps a better question would be, what is the order of complexity of the approach taken by GRASS. 3) Unfortunately, because I may want to integrate this into Mapserver, I can't quite look at the GRASS source on this. More specifically, I can't copy it since it's GPL into Mapserver, which is BSD and then distribute it. Now: I may choose to simply write code to call GRASS externally, but I wouldn't need to explore the source for that. I will however, get GRASS 6 up and running here so that I can explore it. Thanks for the pointer. Bill Bill Binko From rhow at I3.COM Sun Feb 5 13:38:37 2006 From: rhow at I3.COM (Randy How) Date: Sun, 5 Feb 2006 14:38:37 -0700 Subject: MapServer 4.8-beta - single URL map layer filter Message-ID: To whom it may concern, I don't know how to refer to these filters in the URL's query string, there's very little to no documentation on them, as far as I can find. These are the filters in the URL with the syntax of &map__filter="where=clause". I installed the latest of FWTools1.0.0a7 with Mapserver 4.8-beta and finally determined a functionality discrepancy with FWTools1.0.0.a3 with Mapserver 4.7 regarding multiple inline URL map layer filters. The below URL is the desired request, but returns an invalid response with no exception. Additionally nothing is added to the mapserver debug log file either. http://localhost:90/DataDoors/Mapserver/mapserv.exe?mapext=11.857884924 41.3013689999999 13.298207236 42.5011910000002&mode=browse&map=C:\vp\www.DataDoors.net\ms_data\req_tiles.m ap&map_aoi_filter="request_id=2181"&map_tiles_filter="request_id=2181"&map_p rodcov_filter="request_id=2181" &map_aoi_filter="request_id=2181" - works by itself. &map_tiles_filter="request_id=2181" - does not work added on, works by itself &map_prodcov_filter="request_id=2181" - does not work added on, works by itself I pointed the URL at Mapserver 4.7 and it works perfectly. I hope this is not a planned feature of Mapserver 4.8. Randy How rhow [at] i3 [dot] com -------------- next part -------------- An HTML attachment was scrubbed... URL: From rhow at I3.COM Sun Feb 5 13:46:45 2006 From: rhow at I3.COM (Randy How) Date: Sun, 5 Feb 2006 14:46:45 -0700 Subject: Mapserver WINDOWS 2003 Compatibility In-Reply-To: <43E3743A.18906.140FCBA@fabio.dovidio.planetek.it> Message-ID: We have it running on Win2003, we have it running under Apache and also IIS. We're happy with it. Randy -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Fabio D' Ovidio Sent: Friday, February 03, 2006 7:18 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mapserver WINDOWS 2003 Compatibility Does anyone Know if are there compatibility problems between mapserver and windows 2003 ? thank u ! fabio From hydromap at GMAIL.COM Sun Feb 5 14:02:26 2006 From: hydromap at GMAIL.COM (Shoaib Burq) Date: Mon, 6 Feb 2006 09:02:26 +1100 Subject: Visualizing Point Data In-Reply-To: <1139159770.22956.11.camel@fastcat.binko.net> Message-ID: Bill, this thread may be what u want: http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg01951.html cheers -- shoaib On 2/6/06, Bill Binko wrote: > On Fri, 2006-02-03 at 11:40 -0800, Dylan Beaudette wrote: > > > I was just working on this last night: > > http://casoilresource.lawr.ucdavis.edu/drupal/node/172 > > > > check out the source for v.kernel in GRASS > > Dylan, > This is an excellent example of what I'm trying to achieve. Here are > some quick thoughts about what you've shown: > > 1) How would you publish this "live" to the web? Do you know how to > integrate v.kernel to push its output to mapserver directly? I know > there are tools to push GRASS output through GDAL, and I suspect that > that could be daisy chained into mapserver, but I'd like someone's > opinion who's actually done this. If there's an example (anybody?) or > HOWTO of how to leverage GRASS this way? > > 2) What is the performance of v.kernel. For example, I'll have 30-100K > points over the state of florida. For a zoomed out view, how long would > that take to draw? Perhaps a better question would be, what is the > order of complexity of the approach taken by GRASS. > > 3) Unfortunately, because I may want to integrate this into Mapserver, I > can't quite look at the GRASS source on this. More specifically, I > can't copy it since it's GPL into Mapserver, which is BSD and then > distribute it. Now: I may choose to simply write code to call GRASS > externally, but I wouldn't need to explore the source for that. > > I will however, get GRASS 6 up and running here so that I can explore > it. Thanks for the pointer. > > Bill > > Bill Binko > From mulka at UMICH.EDU Sun Feb 5 13:56:39 2006 From: mulka at UMICH.EDU (Kyle Mulka) Date: Sun, 5 Feb 2006 16:56:39 -0500 Subject: World File Details Message-ID: Hi guys! So, which pieces of free software support the second and third fields of world files? I've heard that most software just ignores rotation because it is too complex to implement or something. Will mapserver take a world file with rotation and actually rotate it? If any software does actually do this, I guess I would then need to somehow georeference these rotated images. How would I go about doing that? I don't want to maintain two images: one for the map, one for the way I want it unless there is some automated way of keeping these two in sync. Another related question: Is it possible to display a map with mapserver or similar software that is rotated... where north is not up, but some other direction like pointing to the lower left of your screen? -- Kyle Mulka Computer Science in Engineering University of Michigan http://maps.kylemulka.com From mulka at UMICH.EDU Sun Feb 5 13:57:08 2006 From: mulka at UMICH.EDU (Kyle Mulka) Date: Sun, 5 Feb 2006 16:57:08 -0500 Subject: Improve WMS Server Performance Message-ID: Hi Mapserver folks! I have these huge (20,000px by 10,000px approx.) aerial images that I want to figure out how to turn into a reletively speedy WMS server. I've got all the basics down. I mean, it already works, but is really slow. It takes up to a few minutes to generate a single image. I want it to take less than a few seconds. It would be nice if the WMS was as speedy as Google Maps itself, but I do caching outside the context of mapserver to make that happen. I just want to make the WMS fast. It would be nice if there was a completely automated way of speeding up raster map serving. Is there? I think the information I need would fit in the documentation here under Preprocessing-rasters: http://mapserver.gis.umn.edu/docs/howto/raster_data/#preprocessing-rasters I've read through the mapserver performance tips, but I'm running into a few problems. You can follow along in section 10 on that same link. One program I've looked at is gdaladdo: How do I test to make sure overlays are in fact being used? How do I know what levels of overlays to create? How do I systematically test performance so that I know what I'm doing to the images is a good use of my, and my computers processing time? Another method I've looked into is tiling and using the tileindex mechanism of the map file. I haven't found a good tutorial on how to take one image and tile it into a whole bunch of smaller images all while keeping each georeferenced correctly. It would be great if someone could point me in the right direction. The images are in the correct projection already fortunately. So, no need to warp. I wonder if I could reduce the quality of the images slightly to improve performance. Alright... time to watch the super bowl. Enjoy the game and commercials everyone! -- Kyle Mulka Computer Science in Engineering University of Michigan http://maps.kylemulka.com From codeburg at HOTMAIL.COM Sun Feb 5 14:21:10 2006 From: codeburg at HOTMAIL.COM (Gail Long) Date: Sun, 5 Feb 2006 14:21:10 -0800 Subject: ECW to tiff converter Message-ID: I have an ecw file that I want to convert to tiff. I've fooled around with the ermapper stuff on linux to try to directly integrate the ecw format, but figure that tiff will be faster albeit more disk, and it will be easier to deal with in the long run. Also, if anyone has done the conversion before and know of any "gotchas" I'd appreciate a heads up. Thanks in advance. -- Things are only difficult while you don't understand them. From perrygeo at GMAIL.COM Sun Feb 5 15:27:54 2006 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Sun, 5 Feb 2006 15:27:54 -0800 Subject: Improve WMS Server Performance In-Reply-To: <5383fa5e0602051527q471b8e90l7a9fd5396388b4ab@mail.gmail.com> Message-ID: Hey Kyle, What format is the image you're using? If it's JPG or another compressed format, you'll likely see a huge increase in speed by converting that to a TIFF. It will eat up disc space but will be much much faster to render. As far as gdaladdo, for an image that big I would try to build up to 1/256 if posssible... ie gdaladdo -r average 2 4 8 16 32 64 128 256 . Mapserver will automatically recognize these overviews. As far as other programs, that is up to the developer to implement it. If you time your mapserver request at the full extent before and after you should notice a big difference. Do you expect people will be viewing the image from a wide range of scales or will they always be zoomed out? If you've frequently viewing small portions of the image at a time, it might make sense to break the image up into multiple tiles using gdal_translate with the -projwin option then creating a tile index on the tiles with gdaltindex. This way mapserver only needs to load the tiles in view rather than the entire image. Hope this helps a bit. Let us know how it works for you and enjoy the game.. kick off in few minutes... Matt Perry On 2/5/06, Kyle Mulka wrote: > Hi Mapserver folks! > > I have these huge (20,000px by 10,000px approx.) aerial images that I > want to figure out how to turn into a reletively speedy WMS server. > > I've got all the basics down. I mean, it already works, but is really > slow. It takes up to a few minutes to generate a single image. I want it > to take less than a few seconds. It would be nice if the WMS was as > speedy as Google Maps itself, but I do caching outside the context of > mapserver to make that happen. I just want to make the WMS fast. It > would be nice if there was a completely automated way of speeding up > raster map serving. Is there? > > I think the information I need would fit in the documentation here under > Preprocessing-rasters: > http://mapserver.gis.umn.edu/docs/howto/raster_data/#preprocessing-rasters > > I've read through the mapserver performance tips, but I'm running into a > few problems. You can follow along in section 10 on that same link. > > One program I've looked at is gdaladdo: How do I test to make sure > overlays are in fact being used? How do I know what levels of overlays > to create? How do I systematically test performance so that I know what > I'm doing to the images is a good use of my, and my computers processing > time? > > Another method I've looked into is tiling and using the tileindex > mechanism of the map file. I haven't found a good tutorial on how to > take one image and tile it into a whole bunch of smaller images all > while keeping each georeferenced correctly. It would be great if someone > could point me in the right direction. > > The images are in the correct projection already fortunately. So, no > need to warp. > > I wonder if I could reduce the quality of the images slightly to improve > performance. > > Alright... time to watch the super bowl. Enjoy the game and commercials > everyone! > > -- > Kyle Mulka > Computer Science in Engineering > University of Michigan > http://maps.kylemulka.com > -- Matt Perry perrygeo at gmail.com http://www.perrygeo.net From warmerdam at POBOX.COM Sun Feb 5 16:03:39 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Sun, 5 Feb 2006 19:03:39 -0500 Subject: Improve WMS Server Performance In-Reply-To: <43E674B4.6030609@umich.edu> Message-ID: On 2/5/06, Kyle Mulka wrote: > I think the information I need would fit in the documentation here under > Preprocessing-rasters: > http://mapserver.gis.umn.edu/docs/howto/raster_data/#preprocessing-rasters Kyle, The short answer is that you should convert the data to an internally tiled format, and then build overviews. eg. gdal_translate -co TILED=YES your.tif tiled.tif gdaladdo tiled.tif 2 4 8 16 32 64 128 256 > One program I've looked at is gdaladdo: How do I test to make sure > overlays are in fact being used? How do I know what levels of overlays > to create? How do I systematically test performance so that I know what > I'm doing to the images is a good use of my, and my computers processing > time? To check if the overview generation worked, run the gdalinfo program. After each band listed it will show the overviews present. If GDAL sees them, then they should be used. > I wonder if I could reduce the quality of the images slightly to improve > performance. There should be no need for this. You should really provide details of your LAYER definition, and the gdalinfo report from the data for better feedback. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From rhow at I3.COM Sun Feb 5 16:57:11 2006 From: rhow at I3.COM (Randy How) Date: Sun, 5 Feb 2006 17:57:11 -0700 Subject: MapServer 4.8-beta - single URL map layer filter In-Reply-To: <20060205213844.BD5CAAECC4@mail.frii.com> Message-ID: I sent this before realizing that Mapserver had been released. When I acquire the 4.8 version I be sure to check this functionality. Randy _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Randy How Sent: Sunday, February 05, 2006 2:39 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] MapServer 4.8-beta - single URL map layer filter To whom it may concern, I don't know how to refer to these filters in the URL's query string, there's very little to no documentation on them, as far as I can find. These are the filters in the URL with the syntax of &map__filter="where=clause". I installed the latest of FWTools1.0.0a7 with Mapserver 4.8-beta and finally determined a functionality discrepancy with FWTools1.0.0.a3 with Mapserver 4.7 regarding multiple inline URL map layer filters. The below URL is the desired request, but returns an invalid response with no exception. Additionally nothing is added to the mapserver debug log file either. http://localhost:90/DataDoors/Mapserver/mapserv.exe?mapext=11.857884924 41.3013689999999 13.298207236 42.5011910000002&mode=browse&map=C:\vp\www.DataDoors.net\ms_data\req_tiles.m ap &map_aoi_filter="request_id=2181"&map_tiles_filter="request_id=2181"&map_pro dcov_filter="request_id=2181" &map_aoi_filter="request_id=2181" - works by itself. &map_tiles_filter="request_id=2181" - does not work added on, works by itself &map_prodcov_filter="request_id=2181" - does not work added on, works by itself I pointed the URL at Mapserver 4.7 and it works perfectly. I hope this is not a planned feature of Mapserver 4.8. Randy How rhow [at] i3 [dot] com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lltous at MSN.COM Sun Feb 5 20:12:49 2006 From: lltous at MSN.COM (Liang Zou) Date: Mon, 6 Feb 2006 04:12:49 +0000 Subject: Question about DOM and XSL Message-ID: Greetings, everyone, I'm trying to convert GML to SVG. I'm confused by DOM and XSLT processors. By using the following codes, I can convert GML to SVG. So what is the difference between DOM and XSL processors, like saxon and so on? Thank you in advance. date( "F j, Y g:i a" ) ); // Create a DomDocument object from an xml file. if( !$domXmlObj = domxml_open_file( $xmlFile ) ) { die( "Cannot parse the xml file." ); } // Create a DomDocument object from the xslt file. $domXsltObj = domxml_xslt_stylesheet_file( $xsltFile ); // Create a DomDocument object from the xslt transformation // of the xml and xslt file. $domTranObj = $domXsltObj->process( $domXmlObj, $xsltParam ); // Create an svg file of the tranformation $domXsltObj->result_dump_file( $domTranObj, $svgFile ); _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From l.bargeot at EDUCAGRI.FR Sun Feb 5 23:06:51 2006 From: l.bargeot at EDUCAGRI.FR (Lionel Bargeot) Date: Mon, 6 Feb 2006 08:06:51 +0100 Subject: ECW to tiff converter In-Reply-To: Message-ID: Hi Gail, you have to use the gdal_translate utility. It is available in the FWtools package for Linux. "gdal_translate file.ecw file.tif" will create a geotif file from your ecw. I'm supprised you find tiff faster than ecw. Lionel Gail Long a ?crit : >I have an ecw file that I want to convert to tiff. I've fooled around >with >the ermapper stuff on linux to try to directly integrate the ecw format, >but >figure that tiff will be faster albeit more disk, and it will be easier to >deal with in the long run. > >Also, if anyone has done the conversion before and know of any "gotchas" >I'd >appreciate a heads up. > >Thanks in advance. >-- >Things are only difficult while you don't understand them. > > > -- Ing?nieur SIG CNERTA-ENESAD, 2 rue champs-prevois, batiment grand-champs, 21000 Dijon 03.80.77.28.49 http://www.igcs-stb.org/ From flavio at TYDAC.CH Sun Feb 5 23:37:23 2006 From: flavio at TYDAC.CH (Flavio Hendry) Date: Mon, 6 Feb 2006 08:37:23 +0100 Subject: ECW to tiff converter In-Reply-To: Message-ID: Hi Gail irfanview does a great job, as well in batch. however Windows only. www.irfanview.com Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ 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 ---------------------------------------------------------------- From flavio at TYDAC.CH Sun Feb 5 23:35:12 2006 From: flavio at TYDAC.CH (Flavio Hendry) Date: Mon, 6 Feb 2006 08:35:12 +0100 Subject: World File Details In-Reply-To: <43E67497.4020308@umich.edu> Message-ID: Hi Kyle I don't know of any software using the rotation parameters. ESRI software should, as world files were "invented" by them as far as I remember. Anyway, MapServer supports rotation. Be aware that you have to specify Projection for every layer in the mapfile to be able to do that. See: http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/mapobj/?searchterm=rotation Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ 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 ---------------------------------------------------------------- -----Original Message----- From: Kyle Mulka To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Sun, 5 Feb 2006 16:56:39 -0500 Subject: [UMN_MAPSERVER-USERS] World File Details > Hi guys! > > So, which pieces of free software support the second and third fields > of > world files? I've heard that most software just ignores rotation > because > it is too complex to implement or something. Will mapserver take a > world > file with rotation and actually rotate it? > > If any software does actually do this, I guess I would then need to > somehow georeference these rotated images. How would I go about doing > that? I don't want to maintain two images: one for the map, one for > the > way I want it unless there is some automated way of keeping these two > in > sync. > > Another related question: Is it possible to display a map with > mapserver > or similar software that is rotated... where north is not up, but > some > other direction like pointing to the lower left of your screen? > > -- > Kyle Mulka > Computer Science in Engineering > University of Michigan > http://maps.kylemulka.com From n.j.saunders at GMAIL.COM Mon Feb 6 02:13:09 2006 From: n.j.saunders at GMAIL.COM (Neil Saunders) Date: Mon, 6 Feb 2006 10:13:09 +0000 Subject: Projection Issues Message-ID: Hello I'm having trouble projecting a map to anything other than the default simple cylindrical projection. Our data source is PostGIS enabled database populated with data from a shapefile. I've tried loading the data using different SRIDs via the -s switch, but to no avail. All I know is that the original shapefile is : Coordinate system: Latitude/Longitude in decimal degrees. Coordinate precision: Double. I'd like to set the projection to a mercator WGS84. All I have is a simple mapfile with the map projection set to : PROJECTION "proj=merc" "ellps=WGS84" END I've tried few combinations of setting the layer to different projections and the map to different projections but always with the same result (either nothing rendered or just a simple cylindrical projection). I am pretty sure i have my proj4 all set up correctly as well. Can anybody suggest what it might be I'm doing wrong? Is there a set of steps that I can perform to validate my setup? I've appended my mapfile - Any advice gratefully received! Kind Regards, Neil.. MAP EXTENT -180.2 -73.6257461547851 180.2 196.674253845215 IMAGECOLOR 171 212 241 IMAGETYPE png24 SIZE 800 600 UNITS DD # CONFIG PROJ_LIB "d:/Progra~1/FWTools1.0.0a7/proj_lib/" NAME "MS" OUTPUTFORMAT NAME "png24" MIMETYPE "image/png; mode=24bit" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE "RGB" TRANSPARENT FALSE END PROJECTION "proj=tmerc" "ellps=GRS80" END LAYER CONNECTION "dbname=TVC user=postgres password=hampster host=localhost port=5432" CONNECTIONTYPE POSTGIS DATA "the_geom from (SELECT the_geom, gid FROM tmp_world) AS nt USING UNIQUE gid " METADATA END NAME "postgis_outline" SIZEUNITS PIXELS STATUS DEFAULT TOLERANCEUNITS PIXELS TYPE POLYGON UNITS DD CLASS METADATA END STYLE ANGLE 360 COLOR 246 242 217 OUTLINECOLOR 150 150 150 SIZE 10 SYMBOL 0 END END END END From crazygecko at GMAIL.COM Mon Feb 6 02:57:57 2006 From: crazygecko at GMAIL.COM (Xin) Date: Mon, 6 Feb 2006 10:57:57 +0000 Subject: Strange text ('Unk') being displayed as label Message-ID: I am using a data that represents urban areas. I display the label field when the area is of a certain minimal size. This works great, but on closer inspection I have noticed 'Unk' being displayed at places. This doesn't happen often, but often enough to be a concern. I links below are images showing this. http://img.auctiva.com/imgdata/0/1/6/7/2/6/webimg/5867510_o.jpg http://img.auctiva.com/imgdata/0/1/6/7/2/6/webimg/5867511_o.jpg I have checked in the data, and there is only one area called 'Unk'. Below is the mapfile code for that particular layer. > LAYER > # Urban Densitiy > NAME "BUILTUPA" > STATUS DEFAULT > DATA "BUILTUPA_AREA" > TYPE POLYGON > MAXSCALE 6000000 > LABELITEM "NAM" > > # Big Cities > CLASS > EXPRESSION ([AREA_SQMI] > 40) > MINSCALE 250000 > LABEL > TYPE TRUETYPE > FONT "verdana_bold" > SIZE 12 > POSITION AUTO > ANGLE AUTO > BUFFER 2 > MINDISTANCE 10 > COLOR 40 40 40 > OUTLINECOLOR 240 240 240 > ANTIALIAS TRUE > PARTIALS TRUE > MINFEATURESIZE 8 > END > STYLE > COLOR 210 210 210 > END > END > > # Cities > CLASS > MAXSCALE 2600000 > EXPRESSION ([AREA_SQMI] > 25) > LABEL > TYPE TRUETYPE > FONT "verdana" > SIZE 12 > POSITION AUTO > ANGLE AUTO > BUFFER 2 > MINDISTANCE 10 > COLOR 40 40 40 > OUTLINECOLOR 240 240 240 > ANTIALIAS TRUE > PARTIALS TRUE > MINFEATURESIZE 8 > END > STYLE > COLOR 210 210 210 > END > END > > # Towns > CLASS > MAXSCALE 800000 > EXPRESSION ([AREA_SQMI] > 5 and [AREA_SQMI] < 40) > LABEL > TYPE TRUETYPE > FONT "verdana" > SIZE 11 > POSITION AUTO > ANGLE AUTO > BUFFER 2 > MINDISTANCE 10 > COLOR 40 40 40 > OUTLINECOLOR 240 240 240 > ANTIALIAS TRUE > PARTIALS TRUE > MINFEATURESIZE 8 > END > STYLE > COLOR 210 210 210 > END > END > PROJECTION > "proj=latlong" > END > END > Any help is greatly appreciated. Xin -------------- next part -------------- An HTML attachment was scrubbed... URL: From crazygecko at GMAIL.COM Mon Feb 6 03:22:06 2006 From: crazygecko at GMAIL.COM (Xin) Date: Mon, 6 Feb 2006 11:22:06 +0000 Subject: Strange text ('Unk') being displayed as label In-Reply-To: Message-ID: Ok it turns out Unk means undefined. When I looked into the dbf file I was expecting multiple entries, not knowing it only displays one try per unique match. Anyway, problem solved. On 06/02/06, Xin wrote: > > I am using a data that represents urban areas. I display the label field > when the area is of a certain minimal size. This works great, but on > closer inspection I have noticed 'Unk' being displayed at places. This > doesn't happen often, but often enough to be a concern. > > I links below are images showing this. > > http://img.auctiva.com/imgdata/0/1/6/7/2/6/webimg/5867510_o.jpg > > http://img.auctiva.com/imgdata/0/1/6/7/2/6/webimg/5867511_o.jpg > > I have checked in the data, and there is only one area called 'Unk'. > > Below is the mapfile code for that particular layer. > > > LAYER > > # Urban Densitiy > > NAME "BUILTUPA" > > STATUS DEFAULT > > DATA "BUILTUPA_AREA" > > TYPE POLYGON > > MAXSCALE 6000000 > > LABELITEM "NAM" > > > > # Big Cities > > CLASS > > EXPRESSION ([AREA_SQMI] > 40) > > MINSCALE 250000 > > LABEL > > TYPE TRUETYPE > > FONT "verdana_bold" > > SIZE 12 > > POSITION AUTO > > ANGLE AUTO > > BUFFER 2 > > MINDISTANCE 10 > > COLOR 40 40 40 > > OUTLINECOLOR 240 240 240 > > ANTIALIAS TRUE > > PARTIALS TRUE > > MINFEATURESIZE 8 > > END > > STYLE > > COLOR 210 210 210 > > END > > END > > > > # Cities > > CLASS > > MAXSCALE 2600000 > > EXPRESSION ([AREA_SQMI] > 25) > > LABEL > > TYPE TRUETYPE > > FONT "verdana" > > SIZE 12 > > POSITION AUTO > > ANGLE AUTO > > BUFFER 2 > > MINDISTANCE 10 > > COLOR 40 40 40 > > OUTLINECOLOR 240 240 240 > > ANTIALIAS TRUE > > PARTIALS TRUE > > MINFEATURESIZE 8 > > END > > STYLE > > COLOR 210 210 210 > > END > > END > > > > # Towns > > CLASS > > MAXSCALE 800000 > > EXPRESSION ([AREA_SQMI] > 5 and [AREA_SQMI] < 40) > > LABEL > > TYPE TRUETYPE > > FONT "verdana" > > SIZE 11 > > POSITION AUTO > > ANGLE AUTO > > BUFFER 2 > > MINDISTANCE 10 > > COLOR 40 40 40 > > OUTLINECOLOR 240 240 240 > > ANTIALIAS TRUE > > PARTIALS TRUE > > MINFEATURESIZE 8 > > END > > STYLE > > COLOR 210 210 210 > > END > > END > > PROJECTION > > "proj=latlong" > > END > > END > > > > Any help is greatly appreciated. > > Xin > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lged_morris at HOTMAIL.COM Mon Feb 6 04:26:39 2006 From: lged_morris at HOTMAIL.COM (=?iso-8859-1?B?TGFycy1H9nJhbiBFZGhvbG0=?=) Date: Mon, 6 Feb 2006 13:26:39 +0100 Subject: UMN_MAPSERVER-USERS] Strange text ('Unk') being displayed as label Message-ID: Hi! You have strang expressions in our classes. The third expression shold be: EXPRESSION ([AREA_SQMI] > 5) ?? class . . EXPRESSION ([AREA_SQMI] > 40) . . class . . EXPRESSION ([AREA_SQMI] > 25) . . class . . EXPRESSION ([AREA_SQMI] > 5 and [AREA_SQMI] < 40) Lars-G?ran Edholm 1:e byggnadsinspekt?r Bygg- och milj?kontoret 811 80 Sandviken _________________________________________________________________ Auktioner: Tj?na en hacka p? gamla prylar http://tradera.msn.se From tanguy.ricaille at TRASYS.LU Mon Feb 6 04:31:02 2006 From: tanguy.ricaille at TRASYS.LU (Ricaille Tanguy) Date: Mon, 6 Feb 2006 13:31:02 +0100 Subject: WFS using xml Message-ID: Hello, is it possible to get a feature description using POST with a xml file like this: .... ... Can i post it to http://localhost:8089/cgi-bin/mapserv, and get back description file in gml ? I have a like application using geoserver, and i will try to use mapserver... I hope it is possible. Thank you. From b.vdeijnden at AGI.RWS.MINVENW.NL Mon Feb 6 04:44:50 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Mon, 6 Feb 2006 04:44:50 -0800 Subject: WFS using xml Message-ID: Yes this is possible. If it does not work posting to the URL you provided, try posting to a URL like: http://localhost:8089/cgi-bin/mapserv?service=WFS&version=1.0.0 Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Ricaille Tanguy Verzonden: maandag 6 februari 2006 13:31 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] WFS using xml Hello, is it possible to get a feature description using POST with a xml file like this: .... ... Can i post it to http://localhost:8089/cgi-bin/mapserv, and get back description file in gml ? I have a like application using geoserver, and i will try to use mapserver... I hope it is possible. Thank you. Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From warmerdam at POBOX.COM Mon Feb 6 05:15:25 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 6 Feb 2006 08:15:25 -0500 Subject: Projection Issues In-Reply-To: Message-ID: On 2/6/06, Neil Saunders wrote: > I'd like to set the projection to a mercator WGS84. > > All I have is a simple mapfile with the map projection set to : > PROJECTION > "proj=merc" > "ellps=WGS84" > END Neil, The above is fine, but by default MapServer will assume your input layer is the same projection and do nothing with it. You need to add the following declaration for the LAYER: PROJECTION "+proj=latlong +datum=WGS84" END MapServer does not normally pull the layer coordinate system from the datasource. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From b.vdeijnden at AGI.RWS.MINVENW.NL Mon Feb 6 05:18:41 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Mon, 6 Feb 2006 05:18:41 -0800 Subject: WFS using xml Message-ID: Hi Fabio, Please always reply to the list. You can send it eg with Python, or PHP, whatever. You cannot use a pure HTML form without server-side processing, since it sends using a param=value approach (i.e. you need to remove the part before the = of the posted string if I remember correctly). What do you mean with: "How can I give to the server the XML path?" ? Example for Python: import httplib, urllib, string, base64, time # 1) set variable for request to be posted request=""" PC68044P C*HUISNR*< /ogc:Literal> """ # 2) set WFS servername and hostname # productie server="/stragisweb/cgi-bin/mapserv.exe?map=/ms4w/apps/stragisweb/htdocs/sit es/zwolle/map/stragisweb.map&" hostname="localhost:8080" # 3) execute the request h = httplib.HTTP(hostname) h.putrequest("POST", server) h.putheader("Content-type", "text/xml") h.putheader("Content-length", "%d" % len(request)) h.putheader("Accept", "text/xml") h.putheader('Host', hostname) h.endheaders() h.send(request) reply, msg, hdrs = h.getreply() # 4) print the response print h.getfile().read() Best regards, Bart -----Oorspronkelijk bericht----- Van: fabio.dovidio at planetek.it [mailto:fabio.dovidio at planetek.it] Verzonden: maandag 6 februari 2006 14:17 Aan: Eijnden, B. van den (Bart) Onderwerp: Re: [UMN_MAPSERVER-USERS] WFS using xml How can i send the XML file? Wich is the html form ? How can I give to the server the XML path? Thank u much, Fabio. On 6 Feb 2006 at 4:44, Eijnden, B. van den (Bart) wrote: > Yes this is possible. > > If it does not work posting to the URL you provided, try posting to a URL > like: > > http://localhost:8089/cgi-bin/mapserv?service=WFS&version=1.0.0 > > Best regards, > Bart > > -----Oorspronkelijk bericht----- > Van: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Ricaille Tanguy > Verzonden: maandag 6 februari 2006 13:31 > Aan: MAPSERVER-USERS at LISTS.UMN.EDU > Onderwerp: [UMN_MAPSERVER-USERS] WFS using xml > > > Hello, > is it possible to get a feature description using POST with a xml file like > this: > xmlns=... > > > > .... > ... > > Can i post it to http://localhost:8089/cgi-bin/mapserv, and get back > description file in gml ? > > I have a like application using geoserver, and i will try to use > mapserver... I hope it is possible. > Thank you. > > > Disclaimer > ************************************************************************ > Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is > uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis > hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te > informeren. Wij adviseren u om bij twijfel over de juistheid of de > volledigheid van de mail contact met afzender op te nemen. > > This message shall not constitute any rights or obligations. > This message is intended solely for the addressee. > If you have received this message in error, please delete it and > notify the sender immediately. When in doubt whether this message > is correct or complete, please contact the sender. > ************************************************************************ Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From khaled.kamoun at GMAIL.COM Mon Feb 6 05:30:42 2006 From: khaled.kamoun at GMAIL.COM (Khaled Kamoun) Date: Mon, 6 Feb 2006 14:30:42 +0100 Subject: mapserver with ASP.NET Message-ID: I want to use mapserver in ASP.NET pages, i setup IIS to work with mapserver, but i dont find how to use CGI with ASP.NET does any one have some information about that? -- Khaled KAMOUN -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at MMMTIKE.FI Mon Feb 6 05:48:00 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Mon, 6 Feb 2006 15:48:00 +0200 Subject: WFS using xml Message-ID: Hello, I have faced also some interoperability problems with WFS. I have found that this combination works: - Cadcorp SIS Map Browser as a client (free download, needs registration) - WFS server http://www2.dmsolutions.ca/cgi-bin/mswfs_gmap? The link is from MapServer WFS howto so I think it is not any secret. That combination works both in "GET" and "POST" modes (you can select those in Map browser). Uncheck the "Validate XML from server" box or you can not connect, there seems to something that Map browser do not like but with that box unchecked it connects anyway. With my own MapServer installation (v. 4.6 from ms4w package) I can only connect in "GET" mode and I have no idea why not. There are also clients that cannot connect to MapServer WFS at all even they do connect with Geoserver. One example is otherwise fine client deeJUMP that uses only "POST" method. I sent that DM Solutions link to deeJUMP user list and it seems that sooner or later that combination will work. There were something to be fixed both on MapServer and deeJUMP sides, and MapServer should be OK now with 4.8. Fix to deeJUMP comes somewhere in the future. The clients I have found to be able to connect my MapServer ms4w WFS are MapInfo Professional v. 7.8 and uDig. I can also get the vectors visible if I download the GML with web browser and open the file with TatukGIS free viewer. Obviously there is still some work to be done with interoperability. It would be nice to know if some other have found more working server-client combinations and if there are some tricks to make it go. -Jukka- ________________________________ L?hett?j?: UMN MapServer Users List puolesta: Eijnden, B. van den (Bart) L?hetetty: ma 6.2.2006 14:44 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: Re: [UMN_MAPSERVER-USERS] WFS using xml Yes this is possible. If it does not work posting to the URL you provided, try posting to a URL like: http://localhost:8089/cgi-bin/mapserv?service=WFS&version=1.0.0 Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Ricaille Tanguy Verzonden: maandag 6 februari 2006 13:31 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] WFS using xml Hello, is it possible to get a feature description using POST with a xml file like this: .... ... Can i post it to http://localhost:8089/cgi-bin/mapserv, and get back description file in gml ? I have a like application using geoserver, and i will try to use mapserver... I hope it is possible. Thank you. Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From tanguy.ricaille at TRASYS.LU Mon Feb 6 05:50:29 2006 From: tanguy.ricaille at TRASYS.LU (Ricaille Tanguy) Date: Mon, 6 Feb 2006 14:50:29 +0100 Subject: WFS using xml Message-ID: Hello and thanks. It's ok. Can you also tell me the version of WFS and GML supported by mapserver ? Best regards, Tanguy. ----- Original Message ----- From: "Eijnden, B. van den (Bart)" To: Sent: Monday, February 06, 2006 1:44 PM Subject: Re: [UMN_MAPSERVER-USERS] WFS using xml > Yes this is possible. > > If it does not work posting to the URL you provided, try posting to a URL > like: > > http://localhost:8089/cgi-bin/mapserv?service=WFS&version=1.0.0 > > Best regards, > Bart > > -----Oorspronkelijk bericht----- > Van: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Ricaille Tanguy > Verzonden: maandag 6 februari 2006 13:31 > Aan: MAPSERVER-USERS at LISTS.UMN.EDU > Onderwerp: [UMN_MAPSERVER-USERS] WFS using xml > > > Hello, > is it possible to get a feature description using POST with a xml file like > this: > xmlns=... > > > > .... > ... > > Can i post it to http://localhost:8089/cgi-bin/mapserv, and get back > description file in gml ? > > I have a like application using geoserver, and i will try to use > mapserver... I hope it is possible. > Thank you. > > > Disclaimer > ************************************************************************ > Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is > uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis > hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te > informeren. Wij adviseren u om bij twijfel over de juistheid of de > volledigheid van de mail contact met afzender op te nemen. > > This message shall not constitute any rights or obligations. > This message is intended solely for the addressee. > If you have received this message in error, please delete it and > notify the sender immediately. When in doubt whether this message > is correct or complete, please contact the sender. > ************************************************************************ > From tanguy.ricaille at TRASYS.LU Mon Feb 6 05:57:52 2006 From: tanguy.ricaille at TRASYS.LU (Ricaille Tanguy) Date: Mon, 6 Feb 2006 14:57:52 +0100 Subject: Error using a simple hello_world.map file Message-ID: Hello, i try to use a simple map test file (hello.map), and i have the following response: mapserv(): Web application error. No template provided. hello.map: MAP NAME HELLO STATUS ON EXTENT 0 0 4000 3000 SIZE 400 300 IMAGECOLOR 200 255 255 WEB IMAGEPATH "/var/www/html/tmp/" IMAGEURL "/tmp/" END LAYER NAME "credits" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 200 150 END TEXT 'hello world into mapserver' END CLASS LABEL TYPE BITMAP COLOR 0 0 0 END END END END Thanks, Ricaille Tanguy From b.vdeijnden at AGI.RWS.MINVENW.NL Mon Feb 6 06:03:31 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Mon, 6 Feb 2006 06:03:31 -0800 Subject: WFS using xml Message-ID: WFS 1.0.0 in combination with GML 2.1.2. But Mapserver can also output GML3. See: http://mapserver.gis.umn.edu/docs/howto/wfs_server Best regards, Bart -----Oorspronkelijk bericht----- Van: Ricaille Tanguy [mailto:tanguy.ricaille at trasys.lu] Verzonden: maandag 6 februari 2006 14:50 Aan: Eijnden, B. van den (Bart); MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] WFS using xml Hello and thanks. It's ok. Can you also tell me the version of WFS and GML supported by mapserver ? Best regards, Tanguy. ----- Original Message ----- From: "Eijnden, B. van den (Bart)" To: Sent: Monday, February 06, 2006 1:44 PM Subject: Re: [UMN_MAPSERVER-USERS] WFS using xml > Yes this is possible. > > If it does not work posting to the URL you provided, try posting to a URL > like: > > http://localhost:8089/cgi-bin/mapserv?service=WFS&version=1.0.0 > > Best regards, > Bart > > -----Oorspronkelijk bericht----- > Van: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Ricaille Tanguy > Verzonden: maandag 6 februari 2006 13:31 > Aan: MAPSERVER-USERS at LISTS.UMN.EDU > Onderwerp: [UMN_MAPSERVER-USERS] WFS using xml > > > Hello, > is it possible to get a feature description using POST with a xml file like > this: > xmlns=... > > > > .... > ... > > Can i post it to http://localhost:8089/cgi-bin/mapserv, and get back > description file in gml ? > > I have a like application using geoserver, and i will try to use > mapserver... I hope it is possible. > Thank you. > > > Disclaimer > ************************************************************************ > Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is > uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis > hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te > informeren. Wij adviseren u om bij twijfel over de juistheid of de > volledigheid van de mail contact met afzender op te nemen. > > This message shall not constitute any rights or obligations. > This message is intended solely for the addressee. > If you have received this message in error, please delete it and > notify the sender immediately. When in doubt whether this message > is correct or complete, please contact the sender. > ************************************************************************ > Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From Tom.Kralidis at EC.GC.CA Mon Feb 6 06:08:25 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 6 Feb 2006 09:08:25 -0500 Subject: WFS using xml Message-ID: MapServer supports WFS 1.0.0 (client/server), and GML 2.1.2/GML3L0. ..Tom > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ricaille Tanguy > Sent: Monday, February 06, 2006 8:50 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] WFS using xml > > > Hello and thanks. > It's ok. > Can you also tell me the version of WFS and GML supported by > mapserver ? Best regards, Tanguy. > > ----- Original Message ----- > From: "Eijnden, B. van den (Bart)" > To: > Sent: Monday, February 06, 2006 1:44 PM > Subject: Re: [UMN_MAPSERVER-USERS] WFS using xml > > > > Yes this is possible. > > > > If it does not work posting to the URL you provided, try > posting to a > > URL > > like: > > > > http://localhost:8089/cgi-bin/mapserv?service=WFS&version=1.0.0 > > > > Best regards, > > Bart > > > > -----Oorspronkelijk bericht----- > > Van: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Ricaille Tanguy > > Verzonden: maandag 6 februari 2006 13:31 > > Aan: MAPSERVER-USERS at LISTS.UMN.EDU > > Onderwerp: [UMN_MAPSERVER-USERS] WFS using xml > > > > > > Hello, > > is it possible to get a feature description using POST with > a xml file > like > > this: > > outputFormat="GML2"... > > xmlns=... > > > > > > > > .... > > ... > > > > Can i post it to http://localhost:8089/cgi-bin/mapserv, and > get back > > description file in gml ? > > > > I have a like application using geoserver, and i will try to use > > mapserver... I hope it is possible. Thank you. > > > > > > Disclaimer > > > ********************************************************************** > > ** > > Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is > > uitsluitend bestemd voor de geadresseerde. Als u dit > bericht per abuis > > hebt ontvangen, wordt u verzocht het te vernietigen en de > afzender te > > informeren. Wij adviseren u om bij twijfel over de juistheid of de > > volledigheid van de mail contact met afzender op te nemen. > > > > This message shall not constitute any rights or obligations. This > > message is intended solely for the addressee. If you have received > > this message in error, please delete it and notify the sender > > immediately. When in doubt whether this message is correct or > > complete, please contact the sender. > > > ********************************************************************** > > ** > > > From Tom.Kralidis at EC.GC.CA Mon Feb 6 06:12:38 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 6 Feb 2006 09:12:38 -0500 Subject: WFS using xml Message-ID: Hi Bart, We replied almost identically and at the same time. I see great minds think alike :) Tell me, does MapServer CVS work for you? I can't get anything from CVS, and wanted to check that it's not my network security before I bother the list. > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Eijnden, > B. van den (Bart) > Sent: Monday, February 06, 2006 9:04 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] WFS using xml > > > WFS 1.0.0 in combination with GML 2.1.2. But Mapserver can > also output GML3. > See: > > http://mapserver.gis.umn.edu/docs/howto/wfs_server > > Best regards, > Bart > > -----Oorspronkelijk bericht----- > Van: Ricaille Tanguy [mailto:tanguy.ricaille at trasys.lu] > Verzonden: maandag 6 februari 2006 14:50 > Aan: Eijnden, B. van den (Bart); MAPSERVER-USERS at LISTS.UMN.EDU > Onderwerp: Re: [UMN_MAPSERVER-USERS] WFS using xml > > > Hello and thanks. > It's ok. > Can you also tell me the version of WFS and GML supported by > mapserver ? Best regards, Tanguy. > > ----- Original Message ----- > From: "Eijnden, B. van den (Bart)" > To: > Sent: Monday, February 06, 2006 1:44 PM > Subject: Re: [UMN_MAPSERVER-USERS] WFS using xml > > > > Yes this is possible. > > > > If it does not work posting to the URL you provided, try > posting to a > > URL > > like: > > > > http://localhost:8089/cgi-bin/mapserv?service=WFS&version=1.0.0 > > > > Best regards, > > Bart > > > > -----Oorspronkelijk bericht----- > > Van: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Ricaille Tanguy > > Verzonden: maandag 6 februari 2006 13:31 > > Aan: MAPSERVER-USERS at LISTS.UMN.EDU > > Onderwerp: [UMN_MAPSERVER-USERS] WFS using xml > > > > > > Hello, > > is it possible to get a feature description using POST with > a xml file > like > > this: > > outputFormat="GML2"... > > xmlns=... > > > > > > > > .... > > ... > > > > Can i post it to http://localhost:8089/cgi-bin/mapserv, and > get back > > description file in gml ? > > > > I have a like application using geoserver, and i will try to use > > mapserver... I hope it is possible. Thank you. > > > > > > Disclaimer > > > ********************************************************************** > > ** > > Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is > > uitsluitend bestemd voor de geadresseerde. Als u dit > bericht per abuis > > hebt ontvangen, wordt u verzocht het te vernietigen en de > afzender te > > informeren. Wij adviseren u om bij twijfel over de juistheid of de > > volledigheid van de mail contact met afzender op te nemen. > > > > This message shall not constitute any rights or obligations. This > > message is intended solely for the addressee. If you have received > > this message in error, please delete it and notify the sender > > immediately. When in doubt whether this message is correct or > > complete, please contact the sender. > > > ********************************************************************** > > ** > > > > > Disclaimer > ************************************************************** > ********** > Aan dit bericht kunnen geen rechten worden ontleend. Dit > bericht is uitsluitend bestemd voor de geadresseerde. Als u > dit bericht per abuis hebt ontvangen, wordt u verzocht het te > vernietigen en de afzender te > informeren. Wij adviseren u om bij twijfel over de juistheid of de > volledigheid van de mail contact met afzender op te nemen. > > This message shall not constitute any rights or obligations. > This message is intended solely for the addressee. If you > have received this message in error, please delete it and > notify the sender immediately. When in doubt whether this > message is correct or complete, please contact the sender. > ************************************************************** > ********** > From Tom.Kralidis at EC.GC.CA Mon Feb 6 06:16:43 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 6 Feb 2006 09:16:43 -0500 Subject: WFS using xml Message-ID: Lovely, I intended to reply to Bart only but my fumble ended up in a list-wide email :) Anyways, is CVS down? > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of > Kralidis,Tom [Burlington] > Sent: Monday, February 06, 2006 9:13 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] WFS using xml > > > Hi Bart, > > We replied almost identically and at the same time. I see > great minds think alike :) > > Tell me, does MapServer CVS work for you? I can't get > anything from CVS, and wanted to check that it's not my > network security before I bother the list. > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Eijnden, > > B. van den (Bart) > > Sent: Monday, February 06, 2006 9:04 AM > > To: MAPSERVER-USERS at lists.umn.edu > > Subject: Re: [UMN_MAPSERVER-USERS] WFS using xml > > > > > > WFS 1.0.0 in combination with GML 2.1.2. But Mapserver can > > also output GML3. > > See: > > > > http://mapserver.gis.umn.edu/docs/howto/wfs_server > > > > Best regards, > > Bart > > > > -----Oorspronkelijk bericht----- > > Van: Ricaille Tanguy [mailto:tanguy.ricaille at trasys.lu] > > Verzonden: maandag 6 februari 2006 14:50 > > Aan: Eijnden, B. van den (Bart); MAPSERVER-USERS at LISTS.UMN.EDU > > Onderwerp: Re: [UMN_MAPSERVER-USERS] WFS using xml > > > > > > Hello and thanks. > > It's ok. > > Can you also tell me the version of WFS and GML supported by > > mapserver ? Best regards, Tanguy. > > > > ----- Original Message ----- > > From: "Eijnden, B. van den (Bart)" > > To: > > Sent: Monday, February 06, 2006 1:44 PM > > Subject: Re: [UMN_MAPSERVER-USERS] WFS using xml > > > > > > > Yes this is possible. > > > > > > If it does not work posting to the URL you provided, try > > posting to a > > > URL > > > like: > > > > > > http://localhost:8089/cgi-bin/mapserv?service=WFS&version=1.0.0 > > > > > > Best regards, > > > Bart > > > > > > -----Oorspronkelijk bericht----- > > > Van: UMN MapServer Users List > > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Ricaille Tanguy > > > Verzonden: maandag 6 februari 2006 13:31 > > > Aan: MAPSERVER-USERS at LISTS.UMN.EDU > > > Onderwerp: [UMN_MAPSERVER-USERS] WFS using xml > > > > > > > > > Hello, > > > is it possible to get a feature description using POST with > > a xml file > > like > > > this: > > > > outputFormat="GML2"... > > > xmlns=... > > > > > > > > > > > > .... > > > ... > > > > > > Can i post it to http://localhost:8089/cgi-bin/mapserv, and > > get back > > > description file in gml ? > > > > > > I have a like application using geoserver, and i will try to use > > > mapserver... I hope it is possible. Thank you. > > > > > > > > > Disclaimer > > > > > > ********************************************************************** > > > ** > > > Aan dit bericht kunnen geen rechten worden ontleend. Dit > bericht is > > > uitsluitend bestemd voor de geadresseerde. Als u dit > > bericht per abuis > > > hebt ontvangen, wordt u verzocht het te vernietigen en de > > afzender te > > > informeren. Wij adviseren u om bij twijfel over de > juistheid of de > > > volledigheid van de mail contact met afzender op te nemen. > > > > > > This message shall not constitute any rights or obligations. This > > > message is intended solely for the addressee. If you have > received > > > this message in error, please delete it and notify the sender > > > immediately. When in doubt whether this message is correct or > > > complete, please contact the sender. > > > > > > ********************************************************************** > > > ** > > > > > > > > > Disclaimer > > ************************************************************** > > ********** > > Aan dit bericht kunnen geen rechten worden ontleend. Dit > > bericht is uitsluitend bestemd voor de geadresseerde. Als u > > dit bericht per abuis hebt ontvangen, wordt u verzocht het te > > vernietigen en de afzender te > > informeren. Wij adviseren u om bij twijfel over de juistheid of de > > volledigheid van de mail contact met afzender op te nemen. > > > > This message shall not constitute any rights or obligations. > > This message is intended solely for the addressee. If you > > have received this message in error, please delete it and > > notify the sender immediately. When in doubt whether this > > message is correct or complete, please contact the sender. > > ************************************************************** > > ********** > > > From b.vdeijnden at AGI.RWS.MINVENW.NL Mon Feb 6 06:11:43 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Mon, 6 Feb 2006 06:11:43 -0800 Subject: WFS using xml Message-ID: Tom, there was a message that the CVS server is down by Steve: Yes. Not sure why though (all parties that can do something about it are in Chicago). It likely will not be resolved until tomorrow. Steve >>> Simpson 02/04/06 10:29 AM >>> Is http://cvs.gis.umn.edu/ down? Best regards, Bart -----Oorspronkelijk bericht----- Van: Kralidis,Tom [Burlington] [mailto:Tom.Kralidis at ec.gc.ca] Verzonden: maandag 6 februari 2006 15:13 Aan: Eijnden, B. van den (Bart); MAPSERVER-USERS at lists.umn.edu Onderwerp: RE: [UMN_MAPSERVER-USERS] WFS using xml Hi Bart, We replied almost identically and at the same time. I see great minds think alike :) Tell me, does MapServer CVS work for you? I can't get anything from CVS, and wanted to check that it's not my network security before I bother the list. > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Eijnden, > B. van den (Bart) > Sent: Monday, February 06, 2006 9:04 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] WFS using xml > > > WFS 1.0.0 in combination with GML 2.1.2. But Mapserver can > also output GML3. > See: > > http://mapserver.gis.umn.edu/docs/howto/wfs_server > > Best regards, > Bart > > -----Oorspronkelijk bericht----- > Van: Ricaille Tanguy [mailto:tanguy.ricaille at trasys.lu] > Verzonden: maandag 6 februari 2006 14:50 > Aan: Eijnden, B. van den (Bart); MAPSERVER-USERS at LISTS.UMN.EDU > Onderwerp: Re: [UMN_MAPSERVER-USERS] WFS using xml > > > Hello and thanks. > It's ok. > Can you also tell me the version of WFS and GML supported by > mapserver ? Best regards, Tanguy. > > ----- Original Message ----- > From: "Eijnden, B. van den (Bart)" > To: > Sent: Monday, February 06, 2006 1:44 PM > Subject: Re: [UMN_MAPSERVER-USERS] WFS using xml > > > > Yes this is possible. > > > > If it does not work posting to the URL you provided, try > posting to a > > URL > > like: > > > > http://localhost:8089/cgi-bin/mapserv?service=WFS&version=1.0.0 > > > > Best regards, > > Bart > > > > -----Oorspronkelijk bericht----- > > Van: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Ricaille Tanguy > > Verzonden: maandag 6 februari 2006 13:31 > > Aan: MAPSERVER-USERS at LISTS.UMN.EDU > > Onderwerp: [UMN_MAPSERVER-USERS] WFS using xml > > > > > > Hello, > > is it possible to get a feature description using POST with > a xml file > like > > this: > > outputFormat="GML2"... > > xmlns=... > > > > > > > > .... > > ... > > > > Can i post it to http://localhost:8089/cgi-bin/mapserv, and > get back > > description file in gml ? > > > > I have a like application using geoserver, and i will try to use > > mapserver... I hope it is possible. Thank you. > > > > > > Disclaimer > > > ********************************************************************** > > ** > > Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is > > uitsluitend bestemd voor de geadresseerde. Als u dit > bericht per abuis > > hebt ontvangen, wordt u verzocht het te vernietigen en de > afzender te > > informeren. Wij adviseren u om bij twijfel over de juistheid of de > > volledigheid van de mail contact met afzender op te nemen. > > > > This message shall not constitute any rights or obligations. This > > message is intended solely for the addressee. If you have received > > this message in error, please delete it and notify the sender > > immediately. When in doubt whether this message is correct or > > complete, please contact the sender. > > > ********************************************************************** > > ** > > > > > Disclaimer > ************************************************************** > ********** > Aan dit bericht kunnen geen rechten worden ontleend. Dit > bericht is uitsluitend bestemd voor de geadresseerde. Als u > dit bericht per abuis hebt ontvangen, wordt u verzocht het te > vernietigen en de afzender te > informeren. Wij adviseren u om bij twijfel over de juistheid of de > volledigheid van de mail contact met afzender op te nemen. > > This message shall not constitute any rights or obligations. > This message is intended solely for the addressee. If you > have received this message in error, please delete it and > notify the sender immediately. When in doubt whether this > message is correct or complete, please contact the sender. > ************************************************************** > ********** > Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From ed at TOPOZONE.COM Mon Feb 6 06:41:29 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 6 Feb 2006 09:41:29 -0500 Subject: mapserver with ASP.NET Message-ID: Khaled - You can combine ASP.NET and CGI pages and requests in a single application, but you cannot have one page be processed by both the .NET framework and the CGI processor. You can, for example,. use the MapServer CGI with the "mode=map" parameter to have it produce only the map image for a specified request. Then your ASP.NET page can have an IMG tag on it with the SRC property specified as the URL requesting the MapServer CGI image, as in: Most of the introductory material for MapServer focuses on the "mode=browse" operation, which is very helpful if you do not have another server-side processing environment like .NET or PHP in use. If you do have such an environment, trying to both at the same time is impossible and will confuse you. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Khaled Kamoun Sent: Monday, February 06, 2006 8:31 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] mapserver with ASP.NET I want to use mapserver in ASP.NET pages, i setup IIS to work with mapserver, but i dont find how to use CGI with ASP.NET does any one have some information about that? -- Khaled KAMOUN -------------- next part -------------- An HTML attachment was scrubbed... URL: From carlo.calvino at EMAIL.IT Mon Feb 6 07:02:42 2006 From: carlo.calvino at EMAIL.IT (Carlo Calvino) Date: Mon, 6 Feb 2006 09:02:42 -0600 Subject: MapServer editing capabilities Message-ID: Hello everybody, I make use of mapserver 4.6 and pmapper (a graphic tool written in mapscript/javascript) as a web client. It works very well. Now I would like to add editing capabilites, but I have no idea how to achieve this goal. Could anyone help me? From Hilbert.Davelaar at WUR.NL Mon Feb 6 07:05:23 2006 From: Hilbert.Davelaar at WUR.NL (Davelaar, Hilbert) Date: Mon, 6 Feb 2006 16:05:23 +0100 Subject: Export data to Shape, DGN, DWG, ... Message-ID: Hi list, Can someone tell me if it's possible (and how) to export data served by MapServer as WMS or WFS to for example Shape, DGN of DWG format? Regards, Hilbert Davelaar From Hilbert.Davelaar at WUR.NL Mon Feb 6 07:07:45 2006 From: Hilbert.Davelaar at WUR.NL (Davelaar, Hilbert) Date: Mon, 6 Feb 2006 16:07:45 +0100 Subject: MapServer editing capabilities Message-ID: Hi Carlo, As far as I know WFS in MapServer is restricted to non-transactional WFS (client/server), so it's not possible to add editing capabilities I think. Cheers, Hilbert -----Oorspronkelijk bericht----- Van: UMN MapServer Users List namens Carlo Calvino Verzonden: ma 6-2-2006 16:02 Aan: MAPSERVER-USERS at LISTS.UMN.EDU CC: Onderwerp: [UMN_MAPSERVER-USERS] MapServer editing capabilities Hello everybody, I make use of mapserver 4.6 and pmapper (a graphic tool written in mapscript/javascript) as a web client. It works very well. Now I would like to add editing capabilites, but I have no idea how to achieve this goal. Could anyone help me? From hobu at IASTATE.EDU Mon Feb 6 07:08:46 2006 From: hobu at IASTATE.EDU (Howard Butler) Date: Mon, 6 Feb 2006 09:08:46 -0600 Subject: MS RFC 10: Joining the Open Source Geospatial Foundation In-Reply-To: <43E75A71.5080703@dmsolutions.ca> Message-ID: All, I would like to put forward RFC 10, which is a proposal for MapServer to decide to actively participate and join the Open Source Geospatial Foundation. I expect that there will be more official information about the meeting and its outcome shortly, but there has been plenty of weblog activity about the meeting (plus hours worth of IRC logs that give even more detail) [1]. http://mapserver.gis.umn.edu/development/rfc/ms-rfc-10/ Deciding whether or not to join and participate in OSGeo jumps beyond the mere technical (but it also has an impact on the technical side of the project), as is the purview of the MTSC. It is, however, the only "official" decision-making body the MapServer project has. The process I propose is as follows: 1. The MTSC goes through its normal process, including amending the proposal as necessary and voting using its normal +1/-1 method. After MTSC approval, the proposal is to be put forward to the community. 2. The community is given three days to provide input and vote via the website's non-anonymous polling system (the same thing that we used for polls over the last few months). If a majority of the community is also in agreement, the proposal to join and participate in OSGeo will be considered passed. OSGeo provides an organization that will be broad in scope and specific in purpose that will provide benefits to its member projects that they alone could not hope to accomplish. One of the most important is that it will act as an umbrella to all of the projects, providing organization and support to the Open Source GIS community. This goes and grows way beyond the naming debates and somewhat limited foundation announcement that the open letter signatories proposed in late November of last year. In my opinion, there was general consensus that a foundation-like entity was needed, but the specific implementation of what was proposed earlier was not desirable. Howard [1] http://spatialgalaxy.net/?p=8 http://mappinghacks.com/index.cgi/2006/02/04#osgeo-foundation http://hobu.biz/index_html/osgeo_exists http://www.directionsmag.com/article.php?article_id=2092 http://zcologia.com/news/146 From b.vdeijnden at AGI.RWS.MINVENW.NL Mon Feb 6 07:07:10 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Mon, 6 Feb 2006 07:07:10 -0800 Subject: Export data to Shape, DGN, DWG, ... Message-ID: Just do a GetFeature request to Mapserver WFS, you get back GML. Use ogr2ogr to convert to shape or DWG. Note ogr2ogr has no writing capability for DGN, and for DWG write you need to have a valid copy of the OpenDesign Alliance library. See also: http://www.gdal.org/ogr/drv_dxfdwg.html Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Davelaar, Hilbert Verzonden: maandag 6 februari 2006 16:05 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Export data to Shape, DGN, DWG, ... Hi list, Can someone tell me if it's possible (and how) to export data served by MapServer as WMS or WFS to for example Shape, DGN of DWG format? Regards, Hilbert Davelaar Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From Tom.Kralidis at EC.GC.CA Mon Feb 6 07:13:05 2006 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 6 Feb 2006 10:13:05 -0500 Subject: Export data to Shape, DGN, DWG, ... Message-ID: > Can someone tell me if it's possible (and how) to export data > served by MapServer as WMS or WFS to for example Shape, DGN > of DWG format? > OGC:WMS by nature only provides graphical images of geospatial data, so, unless you have something like feature recognition tools, or good raster to vector converters, you cannot do this with OGC:WMS in MapServer. As OGC:WFS provides OGC:GML support, you can use the ogr2ogr tool (http://gdal.maptools.org/ogr/ogr2ogr.html) to convert OGC:GML to one of the supported formats (http://gdal.maptools.org/ogr/ogr_formats.html). ..Tom From piero.cavalieri at HEIDI.IT Mon Feb 6 07:29:45 2006 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Mon, 6 Feb 2006 09:29:45 -0600 Subject: mapserver with ASP.NET Message-ID: web_template.xml: code behind of the main aspx page: ... ... protected string baseUrl = ""; protected string queryString = ""; protected string mapwidth = ""; protected string mapheight = ""; protected string scalebar = ""; protected string img ; ... ... ... private void Page_Load(object sender, System.EventArgs e) { //LAYERS for (int i=0; i< layer.Items.Count; i++) { if (layer.Items[i].Selected) { layers += "&layer=" + layer.Items [i].Value; } } queryString += layers; if(!IsPostBack) { //FIRST VIEW baseUrl = Request.QueryString["baseUrl"]; ... ... ... //Make the REQUEST to the cgi if(mode == "browse") { generateImgXml(queryString); } else { //QUERY MODE ... ... ... ... private void generateImgXml (string parameters) { // Create a 'WebRequest' with the specified url. queryString = baseUrl + parameters; if(debug) Response.Write("
" + queryString); HttpWebRequest webRequest = (HttpWebRequest) WebRequest.Create(queryString); //webRequest.KeepAlive = false; webRequest.Timeout=10000; webRequest.Method = "GET"; // Send the WebRequest and read response HttpWebResponse webResponse = (HttpWebResponse) webRequest.GetResponse(); Stream sResponse = webResponse.GetResponseStream(); StreamReader reader = new StreamReader(sResponse); //first line is additional info from MapServer string header = reader.ReadLine(); if(header == "") { //errore string message = reader.ReadToEnd(); message += "\n\n\"" + header + message + "\"\n\n"; Response.Write(message); return; } //actual parameters XmlDocument xmldoc = new XmlDocument(); string doc = reader.ReadToEnd(); xmldoc.LoadXml(doc); xmldoc.PreserveWhitespace = true; XmlNode root = xmldoc.DocumentElement; img = root.SelectSingleNode("img").Attributes ["value"].Value; mapwidth = root.SelectSingleNode ("mapwidth").Attributes["value"].Value; mapheight = root.SelectSingleNode ("mapheight").Attributes["value"].Value; scalebar = root.SelectSingleNode ("scalebar").Attributes["value"].Value; imgxy = root.SelectSingleNode("imgxy").Attributes ["value"].Value; imgext = root.SelectSingleNode("imgext").Attributes ["value"].Value; referenceMap = root.SelectSingleNode ("referenceMap").Attributes["value"].Value; legend = root.SelectSingleNode("legend").InnerText; sResponse.Close(); reader.Close(); webResponse.Close(); } Main aspx page (with applet Rosa, but I tried also jbox, dbox, and nothing at all): ... ... <% if(mode == "browse") { Response.Write(""); } if(mode == "query") { Response.Write(""); } if(mode == "nquery") { Response.Write(""); } %> ... ... This is "old" form style. There is a page reload at every request. I suggest you use Ajax ( http://ajaxpro.schwarz-interactive.de/) instead, wich is also more easy. I'll replay you later, cause I don't have time now (and I just began to do it in free time after work). Piero From kris_rock82 at YAHOO.COM Mon Feb 6 07:30:35 2006 From: kris_rock82 at YAHOO.COM (krishna S) Date: Mon, 6 Feb 2006 09:30:35 -0600 Subject: Error using a simple hello_world.map file Message-ID: I guess thats because u didnt specify any template in the websection of the map file, try creating a small template html file where u can display the generated path and specify its path in the web block this way WEB TEMPLATE "your template path" IMAGEPATH "/var/www/html/tmp/" IMAGEURL "/tmp/" END HTH --kris From nemo at IRONCOUNTYFOREST.ORG Mon Feb 6 07:38:08 2006 From: nemo at IRONCOUNTYFOREST.ORG (Neil "Nemo" Martinko) Date: Mon, 6 Feb 2006 09:38:08 -0600 Subject: MapServer 4.8.1 released Message-ID: Download server isn't serving... http://cvs.gis.umn.edu/dist/mapserver-4.8.1.tar.gz Pings are received and replyed to, but "can't establish connection" when trying to download. @ 0937 CST (1537 GMT) From steve.lime at DNR.STATE.MN.US Mon Feb 6 08:25:21 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 6 Feb 2006 10:25:21 -0600 Subject: MapServer 4.8.1 released Message-ID: Neil: Hopefully this will be resolved soon. The CVS server was down at the UMN late Friday/early Saturday. I don't have physical access to the machine so I don't know what's up. The folks at the UMN are aware of the problem and are working on it. Steve >>> "Neil "Nemo" Martinko" 02/06/06 9:38 AM >>> Download server isn't serving... http://cvs.gis.umn.edu/dist/mapserver-4.8.1.tar.gz Pings are received and replyed to, but "can't establish connection" when trying to download. @ 0937 CST (1537 GMT) From nemo at IRONCOUNTYFOREST.ORG Mon Feb 6 08:27:06 2006 From: nemo at IRONCOUNTYFOREST.ORG (Neil "Nemo" Martinko) Date: Mon, 6 Feb 2006 10:27:06 -0600 Subject: MapServer 4.8.1 released Message-ID: I found that the Coral cache has the latest version... http://cvs.gis.umn.edu.nyud.net:8090/dist/mapserver-4.8.1.tar.gz From work at XWB.COM Mon Feb 6 08:32:01 2006 From: work at XWB.COM (Chip Taylor) Date: Mon, 6 Feb 2006 08:32:01 -0800 Subject: MapServer 4.8.1 released In-Reply-To: Message-ID: Is there any word when MS4W will include MapServer 4.8.1 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Neil "Nemo" Martinko Sent: Monday, February 06, 2006 7:38 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.8.1 released Download server isn't serving... http://cvs.gis.umn.edu/dist/mapserver-4.8.1.tar.gz Pings are received and replyed to, but "can't establish connection" when trying to download. @ 0937 CST (1537 GMT) From ed at TOPOZONE.COM Mon Feb 6 08:50:35 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 6 Feb 2006 11:50:35 -0500 Subject: MapServer 4.8.1 released Message-ID: Steve et al. - I just downloaded 4.8.1 without trouble from cvs.gis.umn.edu - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steve Lime Sent: Monday, February 06, 2006 11:25 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.8.1 released Neil: Hopefully this will be resolved soon. The CVS server was down at the UMN late Friday/early Saturday. I don't have physical access to the machine so I don't know what's up. The folks at the UMN are aware of the problem and are working on it. Steve >>> "Neil "Nemo" Martinko" 02/06/06 9:38 AM >>> >>> Download server isn't serving... http://cvs.gis.umn.edu/dist/mapserver-4.8.1.tar.gz Pings are received and replyed to, but "can't establish connection" when trying to download. @ 0937 CST (1537 GMT) From godwin.liz at GMAIL.COM Mon Feb 6 08:54:52 2006 From: godwin.liz at GMAIL.COM (Liz Godwin) Date: Mon, 6 Feb 2006 11:54:52 -0500 Subject: MapServer editing capabilities In-Reply-To: <29B94E3912EABD4F90B82AEF6BD9B08401778869@salte0008.wurnet.nl> Message-ID: Carlo, If you are already using mapscript in some form (perl, PHP etc), I think it is *possible* to perform editing with MapServer. WFS wouldn't need to be employed if you're doing this with your own data, and within a Mapserver only environment. Something you'd have to decide is... on the client end, would you be drawing the shape with the client side? Or do you expect to have server calls and map refreshes between every mouse click? Do you need to see a node move? Either way, the MapServer side of things is the same. You can create a feature in a new layer as points, lines etc... and then when you are done, you can save as a shapefile on the server. What you do with it after that is again up to you. For editing points - you have to get a shape, get it's line, and then get the point object for that node. I havn't tried this - it's just from looking at the mapscript class guide. For modifying features, I suspect that using SVG/Canvas (newest Firefoxes) or VML (IE) would greatly enhance the tool and make it user-friendly on the client end. To me, this side of things is more difficult. Liz On 2/6/06, Davelaar, Hilbert wrote: > > Hi Carlo, > > As far as I know WFS in MapServer is restricted to non-transactional WFS > (client/server), so it's not possible to add editing capabilities I think. > > Cheers, > Hilbert > > -----Oorspronkelijk bericht----- > Van: UMN MapServer Users List namens Carlo Calvino > Verzonden: ma 6-2-2006 16:02 > Aan: MAPSERVER-USERS at LISTS.UMN.EDU > CC: > Onderwerp: [UMN_MAPSERVER-USERS] MapServer editing capabilities > > > > Hello everybody, > I make use of mapserver 4.6 and pmapper (a graphic tool written in > mapscript/javascript) as a web client. It works very well. Now I > would > like to add editing capabilites, but I have no idea how to achieve > this > goal. Could anyone help me? > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From walter at FAUNALIA.COM Mon Feb 6 09:09:15 2006 From: walter at FAUNALIA.COM (Walter Lorenzetti) Date: Mon, 6 Feb 2006 18:09:15 +0100 Subject: join for expression Message-ID: Hi all, i've a question... i've to use several items in a dbf file external to dfb file of shape that i've to show with mapserver i've to use these items in expression method to show only few part of my shape i don't know if to do that is possible I hope that my english'll not be so bad and you'll understand my question Can someone help me? Bye Walter -- Walter Lorenzetti email+jabber: walter at faunalia.it(com) www.faunalia.it(com) Piazza Garibaldi 5 56025 Pontedera (PI) Italy Tel: (+39)347-6597931 From steve.lime at DNR.STATE.MN.US Mon Feb 6 09:09:34 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 6 Feb 2006 11:09:34 -0600 Subject: MapServer 4.8.1 released Message-ID: Yup, it's back. There was an extended power failure this weekend... Steve >>> Ed McNierney 02/06/06 10:50 AM >>> Steve et al. - I just downloaded 4.8.1 without trouble from cvs.gis.umn.edu - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steve Lime Sent: Monday, February 06, 2006 11:25 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.8.1 released Neil: Hopefully this will be resolved soon. The CVS server was down at the UMN late Friday/early Saturday. I don't have physical access to the machine so I don't know what's up. The folks at the UMN are aware of the problem and are working on it. Steve >>> "Neil "Nemo" Martinko" 02/06/06 9:38 AM >>> >>> Download server isn't serving... http://cvs.gis.umn.edu/dist/mapserver-4.8.1.tar.gz Pings are received and replyed to, but "can't establish connection" when trying to download. @ 0937 CST (1537 GMT) From jmckenna at DMSOLUTIONS.CA Mon Feb 6 10:22:32 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Mon, 6 Feb 2006 13:22:32 -0500 Subject: MapServer 4.8.1 released In-Reply-To: <011201c62b3a$dc5edda0$0601a8c0@DevChip> Message-ID: soon. probably by the end of tomorrow. jeff Chip Taylor wrote: > Is there any word when MS4W will include MapServer 4.8.1 > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From mike.merrett at WHITEHORSE.CA Mon Feb 6 10:30:02 2006 From: mike.merrett at WHITEHORSE.CA (Merrett, Mike) Date: Mon, 6 Feb 2006 10:30:02 -0800 Subject: Symbol sizing change in behaviour from 4.6 to 4.8 Message-ID: Hi: I use some gif files as symbols on a map ( e.g.. wildlife spotting at a point shows a moose) --- since upgrading to 4.8beta1 (php map script) shrinking of the images does not occur. Has this happened to anyone else -- or am I using a broken feature which was fixed. MAP FILE: IMAGETYPE png ....... layer debug off name "Wildlife Sightings" group "Wildlife Sightings" connection "WILDLIFE\Wildlife Sightings\Wildlife_Sightings_Working_Copy.TAB" connectiontype OGR metadata description "Wildlife Sightings" RESULT_FIELDS "Species Comments Date Time" end status off type point TOLERANCE 80 TOLERANCEUNITS meters classitem Species class expression 'Moose' name "Wildlife Sightings - moose" template "x.html" color 255 128 255 symbol 'moose' size 15 end ..... end SYMBOLS.SYM file: symbol name 'moose' type pixmap image 'moose.gif' transparent 0 end Mike Merrett -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at DNR.STATE.MN.US Mon Feb 6 12:44:27 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 6 Feb 2006 14:44:27 -0600 Subject: Symbol sizing change in behaviour from 4.6 to 4.8 Message-ID: Mike: I'll have to do some testing. Image scaling should still work. You should try 4.8.1 though since there were a lot of symbol code changes in the early betas that could be causing the problem. Steve >>> "Merrett, Mike" 02/06/06 12:30 PM >>> Hi: I use some gif files as symbols on a map ( e.g.. wildlife spotting at a point shows a moose) --- since upgrading to 4.8beta1 (php map script) shrinking of the images does not occur. Has this happened to anyone else -- or am I using a broken feature which was fixed. MAP FILE: IMAGETYPE png ....... layer debug off name "Wildlife Sightings" group "Wildlife Sightings" connection "WILDLIFE\Wildlife Sightings\Wildlife_Sightings_Working_Copy.TAB" connectiontype OGR metadata description "Wildlife Sightings" RESULT_FIELDS "Species Comments Date Time" end status off type point TOLERANCE 80 TOLERANCEUNITS meters classitem Species class expression 'Moose' name "Wildlife Sightings - moose" template "x.html" color 255 128 255 symbol 'moose' size 15 end ..... end SYMBOLS.SYM file: symbol name 'moose' type pixmap image 'moose.gif' transparent 0 end Mike Merrett From mike.merrett at WHITEHORSE.CA Mon Feb 6 12:47:08 2006 From: mike.merrett at WHITEHORSE.CA (Merrett, Mike) Date: Mon, 6 Feb 2006 12:47:08 -0800 Subject: Symbol sizing change in behaviourfrom 4.6 to 4.8 Message-ID: It does not appear that 4.8.1 for php (on windows has been made available yet (I just downloaded 4.8.0.beta2 on Friday) Thanks, Mike Merrett -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Monday, February 06, 2006 12:44 PM To: MAPSERVER-USERS at LISTS.UMN.EDU; Merrett, Mike Subject: Re: [UMN_MAPSERVER-USERS] Symbol sizing change in behaviourfrom 4.6 to 4.8 Mike: I'll have to do some testing. Image scaling should still work. You should try 4.8.1 though since there were a lot of symbol code changes in the early betas that could be causing the problem. Steve >>> "Merrett, Mike" 02/06/06 12:30 PM >>> Hi: I use some gif files as symbols on a map ( e.g.. wildlife spotting at a point shows a moose) --- since upgrading to 4.8beta1 (php map script) shrinking of the images does not occur. Has this happened to anyone else -- or am I using a broken feature which was fixed. MAP FILE: IMAGETYPE png ....... layer debug off name "Wildlife Sightings" group "Wildlife Sightings" connection "WILDLIFE\Wildlife Sightings\Wildlife_Sightings_Working_Copy.TAB" connectiontype OGR metadata description "Wildlife Sightings" RESULT_FIELDS "Species Comments Date Time" end status off type point TOLERANCE 80 TOLERANCEUNITS meters classitem Species class expression 'Moose' name "Wildlife Sightings - moose" template "x.html" color 255 128 255 symbol 'moose' size 15 end ..... end SYMBOLS.SYM file: symbol name 'moose' type pixmap image 'moose.gif' transparent 0 end Mike Merrett From hobu at IASTATE.EDU Mon Feb 6 14:04:53 2006 From: hobu at IASTATE.EDU (Howard Butler) Date: Mon, 6 Feb 2006 16:04:53 -0600 Subject: MS RFC 10: Joining the Open Source Geospatial Foundation In-Reply-To: Message-ID: The proposal to join the Open Source Geospatial Foundation was unanimously passed by the MTSC. We welcome the community to provide its input on the MapServer website using a poll. This poll will close at 9 AM CST (15:00 UTC) on Friday, February 10th. Like the other polls, you need a login to participate, and your response is *not* anonymous. Howard From work at XWB.COM Mon Feb 6 14:22:25 2006 From: work at XWB.COM (Chip Taylor) Date: Mon, 6 Feb 2006 14:22:25 -0800 Subject: Adding a feature and label to a map In-Reply-To: <43E793E8.9060508@dmsolutions.ca> Message-ID: I am running MapServer under IIS6.0 as a CGI in, without MapScript support. My projection is lat and long. In either map or browser mode I'd like to be able to pass in a lat long coordinate via the URL, along with a label for that coordinate and have a symbol placed on the resulting map with the label associated with it. For example, if I have a symbol to use named "marker", I'd like to pass in the lat and long coordinate (such as "-122.1234+47.5678" and a label, such as "My House" and have the "marker" symbol appear on the appropriate place on the map labeled as "My House". How would I do that? Your help is appreciated. Chip Taylor Prepared Response, Inc From candalt at ONLINE.NO Mon Feb 6 14:27:43 2006 From: candalt at ONLINE.NO (=?iso-8859-1?Q?Sture_Dings=F8yr?=) Date: Mon, 6 Feb 2006 23:27:43 +0100 Subject: No subject Message-ID: Hi I am testing the WFS server on Mapserver. I am running on Windows (4.6.2) Have set up WMS and this works just fine (getCapabilities, getMap and getFeatureInfo). I have set up a simple mapfile to server WFS, and my getcapabilities request seems to work. It returns XML listing the layers in my WFS mapfile. But when I try to make a getFeature request it only returns this: missing It says missing. What is missing? Anybody got any ideas? Regards Sture From steve.lime at DNR.STATE.MN.US Mon Feb 6 15:06:50 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 6 Feb 2006 17:06:50 -0600 Subject: Adding a feature and label to a map Message-ID: Chip: You need a layer to essentially hold/symbolize the dynamic point. Assuming that's called, say, 'mypnt' then the URL would like: ...&map_mypnt_feature=new&map_mypnt_feature_points=-122.1234+47.5678&map_mypnt_feature_text=My+House&... If you're using 4.8 you can ommit the 'map_mypnt_feature=new' variable, it is not needed. Anyway, verbose but it should work. Steve >>> Chip Taylor 02/06/06 4:22 PM >>> I am running MapServer under IIS6.0 as a CGI in, without MapScript support. My projection is lat and long. In either map or browser mode I'd like to be able to pass in a lat long coordinate via the URL, along with a label for that coordinate and have a symbol placed on the resulting map with the label associated with it. For example, if I have a symbol to use named "marker", I'd like to pass in the lat and long coordinate (such as "-122.1234+47.5678" and a label, such as "My House" and have the "marker" symbol appear on the appropriate place on the map labeled as "My House". How would I do that? Your help is appreciated. Chip Taylor Prepared Response, Inc From christian.wolf at GMAIL.COM Mon Feb 6 15:08:00 2006 From: christian.wolf at GMAIL.COM (Christian wolf) Date: Mon, 6 Feb 2006 17:08:00 -0600 Subject: Mapserver WINDOWS 2003 Compatibility Message-ID: We are running MapServer (MS4W) without problems on a Win2003 machine together with PostGIS. Christian From work at XWB.COM Mon Feb 6 15:13:17 2006 From: work at XWB.COM (Chip Taylor) Date: Mon, 6 Feb 2006 15:13:17 -0800 Subject: Adding a feature and label to a map In-Reply-To: Message-ID: Thank you! -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Monday, February 06, 2006 3:07 PM To: MAPSERVER-USERS at LISTS.UMN.EDU; work at XWB.COM Subject: Re: [UMN_MAPSERVER-USERS] Adding a feature and label to a map Chip: You need a layer to essentially hold/symbolize the dynamic point. Assuming that's called, say, 'mypnt' then the URL would like: ...&map_mypnt_feature=new&map_mypnt_feature_points=-122.1234+47.5678&map_myp nt_feature_text=My+House&... If you're using 4.8 you can ommit the 'map_mypnt_feature=new' variable, it is not needed. Anyway, verbose but it should work. Steve >>> Chip Taylor 02/06/06 4:22 PM >>> I am running MapServer under IIS6.0 as a CGI in, without MapScript support. My projection is lat and long. In either map or browser mode I'd like to be able to pass in a lat long coordinate via the URL, along with a label for that coordinate and have a symbol placed on the resulting map with the label associated with it. For example, if I have a symbol to use named "marker", I'd like to pass in the lat and long coordinate (such as "-122.1234+47.5678" and a label, such as "My House" and have the "marker" symbol appear on the appropriate place on the map labeled as "My House". How would I do that? Your help is appreciated. Chip Taylor Prepared Response, Inc From steve.lime at DNR.STATE.MN.US Mon Feb 6 15:15:58 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 6 Feb 2006 17:15:58 -0600 Subject: No subject Message-ID: Hi Sture: What does the full request look like? Steve >>> Sture Dings?yr 02/06/06 4:27 PM >>> Hi I am testing the WFS server on Mapserver. I am running on Windows (4.6.2) Have set up WMS and this works just fine (getCapabilities, getMap and getFeatureInfo). I have set up a simple mapfile to server WFS, and my getcapabilities request seems to work. It returns XML listing the layers in my WFS mapfile. But when I try to make a getFeature request it only returns this: missing It says missing. What is missing? Anybody got any ideas? Regards Sture From warmerdam at POBOX.COM Mon Feb 6 16:45:15 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 6 Feb 2006 19:45:15 -0500 Subject: DEBUG and LOG In-Reply-To: Message-ID: On 2/3/06, Eric Shuman wrote: > Need Help!! > > I have been trying to get some debug info for my map, but can't seem to get > it to work. I have just upgraded to mapserver version 4.6.1, but this > didn't help. Eric, If you do "mapserv -v" does the report include: DEBUG=MSDEBUG If not, it means your executable was built without debug support disabled at compile time and there is no way to turn it back on. (I think) If you are in a position to rebuild MapServer, configure it with the --enable-debug switch to allow debug output. You will still have to do the -all_debug 1 or similar but at least it should turn stuff on. PS. I hate this default setup, though for some reason I have not actually pursued changing it. I am careful to enable debug in the FWTools binaries. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From warmerdam at POBOX.COM Mon Feb 6 17:17:37 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 6 Feb 2006 20:17:37 -0500 Subject: OGR+ODBC with Debian Sarge Mapserver In-Reply-To: Message-ID: On 2/3/06, Raw, Jeremy wrote: > I've been happily running the Debian sarge standard package of Mapserver > (version 4.4.1) for a number of months. The data sources for this project > have (until now) all been in shapefiles and inline features (passed in via > CGI). I'm now trying to enlarge the application to display point data from > a MySQL database table containing X/Y data. Following the terse but > workable how-to on the Mapserver website, I've got ODBC up and running and > verified it all the way through using ogrinfo (from the standard sarge gdal > package) to access the data. Unfortunately, my mapserver (and also shp2img) > perform a segmentation fault every time they try to access the ODBC layer, > with no indication of what's wrong. Jeremy, There is no obvious reason I can see why your ODBC connection and OVF file would work with ogrinfo but not with mapserver/shp2img. I have, in some configurations, found ODBC on Unix/Linux to be buggy and the problems might only happen to cause a crash with mapserver and not with ogrinfo. But that doesn't tell us much. You might want to try and run ogrinfo under "valgrind" to see if it identifies any problems, and then compare with a run of shp2img under valgrind. But to track the problem down you may well have to compile everything in debug. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From dylan.beaudette at GMAIL.COM Mon Feb 6 21:44:18 2006 From: dylan.beaudette at GMAIL.COM (Dylan Beaudette) Date: Mon, 6 Feb 2006 21:44:18 -0800 Subject: Visualizing Point Data In-Reply-To: <1139159770.22956.11.camel@fastcat.binko.net> Message-ID: On Sunday 05 February 2006 09:16 am, Bill Binko wrote: > On Fri, 2006-02-03 at 11:40 -0800, Dylan Beaudette wrote: > > I was just working on this last night: > > http://casoilresource.lawr.ucdavis.edu/drupal/node/172 > > > > check out the source for v.kernel in GRASS > > Dylan, > This is an excellent example of what I'm trying to achieve. Here are > some quick thoughts about what you've shown: > > 1) How would you publish this "live" to the web? Do you know how to > integrate v.kernel to push its output to mapserver directly? I know > there are tools to push GRASS output through GDAL, and I suspect that > that could be daisy chained into mapserver, but I'd like someone's > opinion who's actually done this. If there's an example (anybody?) or > HOWTO of how to leverage GRASS this way? > Hi Bill, Here is a quick link to the GRASS site, on how to get a GRASS-Mapserver application running: http://grass.itc.it/start.html towards the bottom of the page, there is a link to a project from some time ago which called GRASS directly using PHP: essentially setting up the GRASS environmental variables, and then running the appropriate commands via system(). > 2) What is the performance of v.kernel. For example, I'll have 30-100K > points over the state of florida. For a zoomed out view, how long would > that take to draw? Perhaps a better question would be, what is the > order of complexity of the approach taken by GRASS. Well- it is resolution dependant. The map made with v.kernel is of an area close to 27k acres, and at a resolution of 10m it took about 5 minutes. However, at a resolution of 100m it only a took a couple seconds. > 3) Unfortunately, because I may want to integrate this into Mapserver, I > can't quite look at the GRASS source on this. More specifically, I > can't copy it since it's GPL into Mapserver, which is BSD and then > distribute it. Now: I may choose to simply write code to call GRASS > externally, but I wouldn't need to explore the source for that. See the PHP example for calling an install of a GRASS directly. > I will however, get GRASS 6 up and running here so that I can explore > it. Thanks for the pointer. You bet. Let me know how it turns out. Cheers, -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From b.vdeijnden at AGI.RWS.MINVENW.NL Mon Feb 6 22:21:40 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Mon, 6 Feb 2006 22:21:40 -0800 Subject: No subject Message-ID: Basically Mapserver is saying that it did not find any features for your request. The most common pitfall that I have run into when getting an empty feature collection back, is that when doing a non-spatial query on Mapserver WFS, it takes the extent as defined in the MAP file into account for the query. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Sture Dings?yr Verzonden: maandag 6 februari 2006 23:28 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Hi I am testing the WFS server on Mapserver. I am running on Windows (4.6.2) Have set up WMS and this works just fine (getCapabilities, getMap and getFeatureInfo). I have set up a simple mapfile to server WFS, and my getcapabilities request seems to work. It returns XML listing the layers in my WFS mapfile. But when I try to make a getFeature request it only returns this: missing It says missing. What is missing? Anybody got any ideas? Regards Sture Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From mulka at UMICH.EDU Mon Feb 6 22:32:27 2006 From: mulka at UMICH.EDU (Kyle Mulka) Date: Tue, 7 Feb 2006 01:32:27 -0500 Subject: Improve WMS Server Performance In-Reply-To: <931f8ea90602051603y446618feibca2617ffbb29fda@mail.gmail.com> Message-ID: Frank Warmerdam wrote: >The short answer is that you should convert the data to an >internally tiled format, and then build overviews. > >eg. >gdal_translate -co TILED=YES your.tif tiled.tif >gdaladdo tiled.tif 2 4 8 16 32 64 128 256 > > > That seemed to work pretty well after I first converted my jpegs to geotiffs using gdal_translate. It didn't work at all (took hours) trying to go directly from jpeg to tiled tiff. Now, I'm having a problem at the borders of both the original tiles and the rended tiles from mapsever: http://maps.kylemulka.com/spot/ You should notice that the initial map you see when the page first loads looks fine. Then, zoom out and you will see two white lines. Any way to fix that? I used gdaltindex to create a shapefile which I then put into my mapfile: MAP NAME "SpotAerialImagery" IMAGETYPE jpeg EXTENT -180 -90 180 90 SHAPEPATH "/maps/spot/" PROJECTION "init=epsg:4326" END WEB METADATA "wms_title" "SpotAerialImagery" "wms_onlineresource" "http://kylemulka.com:81/cgi-bin/mapserv?map=/maps/spot/spot.map&" "wms_srs" "EPSG:4326" END END LAYER NAME "aerial" STATUS ON TILEINDEX "spot.shp" TILEITEM "Location" #OFFSITE 0 0 0 TYPE RASTER PROJECTION "init=epsg:4326" END END END -Kyle From condit at SDSC.EDU Mon Feb 6 22:34:43 2006 From: condit at SDSC.EDU (Christopher Condit) Date: Mon, 6 Feb 2006 22:34:43 -0800 Subject: swig mapscript interface Message-ID: I'm curious if there's a way to get access to the shapeObj field names in non-PHP MapScript applications. In PHP, you can get a shape object (as a result of a query) and grab the valued of field with a string index: $myValue = shape.values["Country_Code"]; I'm using c# for my application and I'm curious if there is anything similar - or another way to get access to the field names? Thanks, Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From luca76 at GMAIL.COM Mon Feb 6 22:38:52 2006 From: luca76 at GMAIL.COM (Luca Manganelli) Date: Tue, 7 Feb 2006 07:38:52 +0100 Subject: Optimizing attribute search time. In-Reply-To: <20060203161859.vpn7dyqcg08w0ssg@webmail.narx.net> Message-ID: On 2/3/06, chris at localhost wrote: > Out of interest Luca, what sort of search are you running? string comparison with Street names (like /%name%/ ) From bob.b at GRITECHNOLOGIES.COM Mon Feb 6 22:44:51 2006 From: bob.b at GRITECHNOLOGIES.COM (Bob Basques) Date: Tue, 7 Feb 2006 00:44:51 -0600 Subject: Visualizing Point Data In-Reply-To: <1139159770.22956.11.camel@fastcat.binko.net> Message-ID: Bill, The census site I sent you is actually doing this type of overlay right now. It's all MapServer/Mapscript based. Let me know if you have any questions. The overlays are drawn on the fly from the Census BlockGroup data. It's got quite a bit of indexing behind the scenes that makes it run fairly quickly. It seems to run out of steam at around 50k points when the time seems to take a jump up to 10-15 seconds to process ( the limit we were shooting for). Unfortunately, the code is very Census specific at the moment. We're planning on chopping the code out into a tool set, just haven't had time yet. One other item, the overlays are being drawn right now in a fairly course grid, the overlay drawing aspects are configurable and the resolution can be increased at the cost of time for processing. bobb Bill Binko wrote: >On Fri, 2006-02-03 at 11:40 -0800, Dylan Beaudette wrote: > > > >>I was just working on this last night: >>http://casoilresource.lawr.ucdavis.edu/drupal/node/172 >> >>check out the source for v.kernel in GRASS >> >> > >Dylan, >This is an excellent example of what I'm trying to achieve. Here are >some quick thoughts about what you've shown: > >1) How would you publish this "live" to the web? Do you know how to >integrate v.kernel to push its output to mapserver directly? I know >there are tools to push GRASS output through GDAL, and I suspect that >that could be daisy chained into mapserver, but I'd like someone's >opinion who's actually done this. If there's an example (anybody?) or >HOWTO of how to leverage GRASS this way? > >2) What is the performance of v.kernel. For example, I'll have 30-100K >points over the state of florida. For a zoomed out view, how long would >that take to draw? Perhaps a better question would be, what is the >order of complexity of the approach taken by GRASS. > >3) Unfortunately, because I may want to integrate this into Mapserver, I >can't quite look at the GRASS source on this. More specifically, I >can't copy it since it's GPL into Mapserver, which is BSD and then >distribute it. Now: I may choose to simply write code to call GRASS >externally, but I wouldn't need to explore the source for that. > >I will however, get GRASS 6 up and running here so that I can explore >it. Thanks for the pointer. > >Bill > >Bill Binko > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdc at SDC.COM.AU Mon Feb 6 22:57:45 2006 From: sdc at SDC.COM.AU (Stephen Davies) Date: Tue, 7 Feb 2006 17:27:45 +1030 Subject: HTML emails In-Reply-To: Message-ID: Would it be possible for the list server to filter out the HTML rubbish that accompanies so many postings? The current digests are almost unreadable with all of the HTML copies. Some lists actively discourage non-text postings but filtering should be possible. 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 Jukka.Rahkonen at MMMTIKE.FI Tue Feb 7 02:24:45 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Tue, 7 Feb 2006 12:24:45 +0200 Subject: No subject Message-ID: Hi Sture, I suggest you to test first with a browser if Mapserver is actually sending the vectors. If not, for me the reason is usually wrong extents in map-file. Something like this should show you vectors on a browser: http://localhost/cgi-bin/mapserv.exe?map=d:/ms4w/apps/ms101/data/wfstest.map&mode=map It that works, you can next try a WFS request with your browser like: http://localhost/cgi-bin/mapserv.exe?map=d:/ms4w/apps/ms101/data/jukkawfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=jukka If you get something that looks like valid GML then you know that quite a lot is OK on MapServer side. -Jukka- My simple mapfile follows: MAP NAME WFS-MAP STATUS ON EXTENT 2464000.000 6779500.000 2467000.000 6780000.000 SIZE 1000 800 UNITS METERS SHAPEPATH "d:/ms4w/apps/ms101/data" IMAGECOLOR 255 255 255 WEB IMAGEPATH "d:/ms4w/apps/ms101/data" IMAGEURL "/MS_TMP/" METADATA "wfs_title" "JRA-test-WFS" "wfs_onlineresource" "http://localhost/cgi-bin/mapserv.exe?map=d:/ms4w/apps/ms101/data/jukkawfs.map" "wfs_srs" "EPSG:2392" END END PROJECTION "init=epsg:2392" END LAYER NAME jukka METADATA "wfs_title" "Parcels" "gml_include_items" "all" END TYPE POLYGON DATA jukka.shp PROJECTION "init=epsg:2393" END DUMP TRUE STATUS DEFAULT CLASS NAME "jukka" OUTLINECOLOR 0 0 0 END END END ________________________________ L?hett?j?: UMN MapServer Users List puolesta: Sture Dings?yr L?hetetty: ti 7.2.2006 0:27 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: [UMN_MAPSERVER-USERS] Hi I am testing the WFS server on Mapserver. I am running on Windows (4.6.2) Have set up WMS and this works just fine (getCapabilities, getMap and getFeatureInfo). I have set up a simple mapfile to server WFS, and my getcapabilities request seems to work. It returns XML listing the layers in my WFS mapfile. But when I try to make a getFeature request it only returns this: missing It says missing. What is missing? Anybody got any ideas? Regards Sture From lists at NABBLE.COM Tue Feb 7 02:32:43 2006 From: lists at NABBLE.COM (mvexel (sent by Nabble.com)) Date: Tue, 7 Feb 2006 02:32:43 -0800 Subject: MapServer WFS Client: POST body is short Message-ID: Hi mapserver-users, This might be more of a MapInfo-related problem than anything else, but I can't really pin it to MapInfo so here it goes; I'm using MapInfo 8.0 to try and connect to my Mapserver 4.6.1-based WFS Server. I feed MapInfo the URL: http://testserver/cgi-bin/mapserv.exe?map=/wfs_klic.map& MapInfo successfully performs and parses a GetCapabilities request. I get the one layer I defined in the layers list. But when I click on that layer I get a POST body is short MapInfo suggests it has something to do with a failed DescribeFeatureType request. Is this a MapServer-related thing or is the MapInfo client still flaky? Thanks, Martijn van Exel Bridgis BV -- View this message in context: http://www.nabble.com/MapServer-WFS-Client%3A-POST-body-is-short-t1075127.html#a2798730 Sent from the Mapserver - User forum at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at MMMTIKE.FI Tue Feb 7 02:42:13 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Tue, 7 Feb 2006 12:42:13 +0200 Subject: MapServer WFS Client: POST body is short Message-ID: Hi, Isn't this just something that was corrected to version 4.8.1? See some postings with title "MapServer 4.8.1 released" to check that. -Jukka- ________________________________ L?hett?j?: UMN MapServer Users List puolesta: mvexel (sent by Nabble.com) L?hetetty: ti 7.2.2006 12:32 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: [UMN_MAPSERVER-USERS] MapServer WFS Client: POST body is short Hi mapserver-users, This might be more of a MapInfo-related problem than anything else, but I can't really pin it to MapInfo so here it goes; I'm using MapInfo 8.0 to try and connect to my Mapserver 4.6.1-based WFS Server. I feed MapInfo the URL: http://testserver/cgi-bin/mapserv.exe?map=/wfs_klic.map& MapInfo successfully performs and parses a GetCapabilities request. I get the one layer I defined in the layers list. But when I click on that layer I get a POST body is short MapInfo suggests it has something to do with a failed DescribeFeatureType request. Is this a MapServer-related thing or is the MapInfo client still flaky? Thanks, Martijn van Exel Bridgis BV ________________________________ View this message in context: MapServer WFS Client: POST body is short Sent from the Mapserver - User forum at Nabble.com. From lists at NABBLE.COM Tue Feb 7 02:45:08 2006 From: lists at NABBLE.COM (mvexel (sent by Nabble.com)) Date: Tue, 7 Feb 2006 02:45:08 -0800 Subject: Mapserver WINDOWS 2003 Compatibility In-Reply-To: <20060205214651.B00FDA488B@mail.frii.com> Message-ID: I concur. I use MapServer 4.4 and Apache2 (a modified installation of ms4w 1.0.3) in a production environment on Win2k3 Web Edition and never had any problems. Martijn van Exel -- View this message in context: http://www.nabble.com/Mapserver-WINDOWS-2003-Compatibility-t1053956.html#a2798870 Sent from the Mapserver - User forum at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From b.vdeijnden at AGI.RWS.MINVENW.NL Tue Feb 7 02:44:00 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Tue, 7 Feb 2006 02:44:00 -0800 Subject: MapServer WFS Client: POST body is shor t Message-ID: Jukka, he is using version 4.6.1 which did not have the bug introduced just after 4.8 RC3, so this is not related to that particular issue. Martijn, you could try upgrading to Mapserver 4.8.1 though and see if the problem still exists. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Rahkonen Jukka Verzonden: dinsdag 7 februari 2006 11:42 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] MapServer WFS Client: POST body is short Hi, Isn't this just something that was corrected to version 4.8.1? See some postings with title "MapServer 4.8.1 released" to check that. -Jukka- ________________________________ L?hett?j?: UMN MapServer Users List puolesta: mvexel (sent by Nabble.com) L?hetetty: ti 7.2.2006 12:32 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: [UMN_MAPSERVER-USERS] MapServer WFS Client: POST body is short Hi mapserver-users, This might be more of a MapInfo-related problem than anything else, but I can't really pin it to MapInfo so here it goes; I'm using MapInfo 8.0 to try and connect to my Mapserver 4.6.1-based WFS Server. I feed MapInfo the URL: http://testserver/cgi-bin/mapserv.exe?map=/wfs_klic.map& MapInfo successfully performs and parses a GetCapabilities request. I get the one layer I defined in the layers list. But when I click on that layer I get a POST body is short MapInfo suggests it has something to do with a failed DescribeFeatureType request. Is this a MapServer-related thing or is the MapInfo client still flaky? Thanks, Martijn van Exel Bridgis BV ________________________________ View this message in context: MapServer WFS Client: POST body is short Sent from the Mapserver - User forum at Nabble.com. Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From fabio.dovidio at PLANETEK.IT Tue Feb 7 02:52:34 2006 From: fabio.dovidio at PLANETEK.IT (Fabio D' Ovidio) Date: Tue, 7 Feb 2006 11:52:34 +0100 Subject: .NET Framework SDk 2.0 Message-ID: Does MapServer 4.4.1 support .NET Framework SDK 2.0 ? From warmerdam at POBOX.COM Tue Feb 7 05:02:24 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 7 Feb 2006 08:02:24 -0500 Subject: Improve WMS Server Performance In-Reply-To: <43E83EFB.9050303@umich.edu> Message-ID: On 2/7/06, Kyle Mulka wrote: > That seemed to work pretty well after I first converted my jpegs to > geotiffs using gdal_translate. It didn't work at all (took hours) trying > to go directly from jpeg to tiled tiff. Kyle, I can see why you were originally having trouble. Large JPEGs are a particularly inefficient format for large raster data that you will want subsections of. I'm not sure why a direct translation from JPEG was so bad. Likely some sort of "cache thrashing" problem that would cause large amounts of data to be re-read for each tile being rewritten. You can set the GDAL_CACHEMAX value to allow GDAL to use a cache larger than it's default 10MB. > Now, I'm having a problem at the borders of both the original tiles and > the rended tiles from mapsever: > http://maps.kylemulka.com/spot/ > > You should notice that the initial map you see when the page first loads > looks fine. Then, zoom out and you will see two white lines. Any way to > fix that? I have no idea why that is. Some sort of subtle resampling error I suppose, or perhaps wrong bounds on your rasters. There isn't really anything I can do about it unless you can replicate it in a minimal situation you can submit in a bug report. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From christian.graefe at WEB.DE Tue Feb 7 04:56:10 2006 From: christian.graefe at WEB.DE (Christian Graefe) Date: Tue, 7 Feb 2006 13:56:10 +0100 Subject: .NET Framework SDk 2.0 Message-ID: Hi If you are interesting in a simple .NET 2.0 solution, try "sharpMap". http://sharpmap.iter.dk It is simple and very fast. It includes a winforms control with simple zoomin, zoomout and pan functionality. Also a asp.net web control is available. And it is written in pure C#. BR Christian -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 1791 bytes Desc: S/MIME Cryptographic Signature URL: From eywitteveen at GMAIL.COM Tue Feb 7 06:39:52 2006 From: eywitteveen at GMAIL.COM (E Witteveen) Date: Tue, 7 Feb 2006 15:39:52 +0100 Subject: .NET Framework SDk 2.0 In-Reply-To: <43E88A02.8894.970021@fabio.dovidio.planetek.it> Message-ID: Fabio D' Ovidio wrote: > Does MapServer 4.4.1 support .NET Framework SDK 2.0 ? I've made a small mapfile editor in .NET 2.0 using the mapserver csharp api. It appears to be working, but there are some issues with it(using 4.6). On http://www.nergens.org/projects/mapviewer/ (currently being updated, at 19 hours GMT it should be working again) you can find the source files and the binary. This exercise was just to see if i could get it working together, so don't expect anything fancy :D Maybe the tread http://www.mail-archive.com/mapserver-users at lists.umn.edu/msg02637.html can help you a little bit more,.. From b.vdeijnden at AGI.RWS.MINVENW.NL Tue Feb 7 06:54:31 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Tue, 7 Feb 2006 06:54:31 -0800 Subject: WFS extraction misses feature Message-ID: Hi list, I am experiencing a strange phenomenon. I have a shapefile layer, and have put Mapserver WFS on top of it. When I extract a part using a BBOX filter, I miss one of the features. See the screendumps I made. What could the problem be? Original shapefile: http://www.xs4all.nl/~bartvde/tatuk_soilmap.png Mapserver WFS extract: http://www.xs4all.nl/~bartvde/tatuk_soilmap_mapserverwfs.png Also, the feature is missing from the map drawn by Mapserver WMS, so the problem will probably be with the datastore. Best regards, Bart Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From Jukka.Rahkonen at MMMTIKE.FI Tue Feb 7 07:20:52 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Tue, 7 Feb 2006 17:20:52 +0200 Subject: WFS extraction misses feature Message-ID: Hi, Could the reason be that the feature does not completely fit inside the BBOX? -Jukka- ________________________________ L?hett?j?: UMN MapServer Users List puolesta: Eijnden, B. van den (Bart) L?hetetty: ti 7.2.2006 16:54 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: [UMN_MAPSERVER-USERS] WFS extraction misses feature Hi list, I am experiencing a strange phenomenon. I have a shapefile layer, and have put Mapserver WFS on top of it. When I extract a part using a BBOX filter, I miss one of the features. See the screendumps I made. What could the problem be? Original shapefile: http://www.xs4all.nl/~bartvde/tatuk_soilmap.png Mapserver WFS extract: http://www.xs4all.nl/~bartvde/tatuk_soilmap_mapserverwfs.png Also, the feature is missing from the map drawn by Mapserver WMS, so the problem will probably be with the datastore. Best regards, Bart Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From dmorissette at DMSOLUTIONS.CA Tue Feb 7 07:31:42 2006 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Tue, 7 Feb 2006 10:31:42 -0500 Subject: MapServer-users list stats Message-ID: I was cleaning up my mapserver-users archive a bit and thought that some of you might be interested in the following stats, the number of posts to this list per year: 2000: 1537 2001: 3244 2002: 6193 2003: 8724 2004: 9555 2005: 9998 Let's OWTChart those numbers: http://maptools.org/cgi-bin/owtchart?Type=Line&W=450&H=250&NumSets=1&NumPts=6&Vals=1537!3244!6193!8724!9555!9998&XLabels=2000;2001;2002;2003;2004;2005&Title=MapServer-users+list+traffic+-+2000-2005&XTitle=Year&YTitle=Messages Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From John.C.Cartwright at NOAA.GOV Tue Feb 7 07:55:37 2006 From: John.C.Cartwright at NOAA.GOV (John Cartwright) Date: Tue, 7 Feb 2006 08:55:37 -0700 Subject: OracleSpatial and polygons crossing the antimeridian Message-ID: Hello All, I have a single polygon in oracle spatial (10.1) which crosses the antimeridian. Displaying this polygon in an unprojected map (WGS84), shows the polygon incorrectly stretching across the globe in the longitude coordinate. This is not entirely unexpected. However, when I switch to an orthographic projection, I don't see the polygon displayed at all which suprises me. This looks like a symptom of bug 411 which was marked as resolved. Oracle itself seems to be treating the poly correctly since the geometry validates and a SDO_FILTER query returns the correct results. Should mapserver be able to handle polygons which cross the antimeridian? I'm using mapserver 4.8.1 and the oraclespatial connection type. Here's the definition of the polygon in question: SDO_GEOMETRY( 2003, 8307, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 1), SDO_ORDINATE_ARRAY(170, -10, -170, -10, -170, 10, 170, 10, 170, -10) ) Thanks! -- john From mapas at ADDAX.CC Tue Feb 7 08:12:24 2006 From: mapas at ADDAX.CC (G. Madrigal) Date: Tue, 7 Feb 2006 10:12:24 -0600 Subject: Maximum number of symbols Message-ID: hi, Recently I ran into a problem, I have several classes using a specific symbol (png file) like this: CLASS NAME "YYYYY" OUTLINECOLOR 32 32 32 STYLE COLOR 0 0 0 # dummy color SYMBOL 'symbols/yyyyy.png' END END #end of class YYYYY My problem is that I have a lot of class definitions like the one above, and at some point, if I define a new symbol my map stops working. What's is the maximum number of allowed symbols? Where can I modify this value in the sources? I am using mapserver 4.6 Regards, -- Gustavo Madrigal ---------------------------------------------------------------- This message was sent using Addax Software Development's Mail Services. From warmerdam at POBOX.COM Tue Feb 7 08:13:25 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 7 Feb 2006 11:13:25 -0500 Subject: OracleSpatial and polygons crossing the antimeridian In-Reply-To: <43E8C2F9.9010704@noaa.gov> Message-ID: On 2/7/06, John Cartwright wrote: > Hello All, > > I have a single polygon in oracle spatial (10.1) which crosses the > antimeridian. Displaying this polygon in an unprojected map (WGS84), > shows the polygon incorrectly stretching across the globe in the > longitude coordinate. This is not entirely unexpected. However, when I > switch to an orthographic projection, I don't see the polygon displayed > at all which suprises me. > > This looks like a symptom of bug 411 which was marked as resolved. > Oracle itself seems to be treating the poly correctly since the geometry > validates and a SDO_FILTER query returns the correct results. > > Should mapserver be able to handle polygons which cross the > antimeridian? I'm using mapserver 4.8.1 and the oraclespatial > connection type. John, If you could prepare an example reproducing this problem with the geometry as an inline feature, and submit that through bugzilla, I am willing to take a look. In theory this should work, but there are a number of points at which things might be getting screwed up. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From jmckenna at DMSOLUTIONS.CA Tue Feb 7 08:18:18 2006 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Tue, 7 Feb 2006 11:18:18 -0500 Subject: Maximum number of symbols In-Reply-To: <1139328744.43e8c6e87d33d@webmail.addax.cc> Message-ID: there is definitely a max classes value (http://mapserver.gis.umn.edu/docs/error/error-maximum-classes). I'm not sure about max symbols. jeff G. Madrigal wrote: > hi, > > Recently I ran into a problem, I have several > classes using a specific symbol (png file) > like this: > > CLASS > NAME "YYYYY" > OUTLINECOLOR 32 32 32 > STYLE > COLOR 0 0 0 # dummy color > SYMBOL 'symbols/yyyyy.png' > END > END #end of class YYYYY > > My problem is that I have a lot of class definitions like the one above, > and at some point, if I define a new symbol my map stops working. > > What's is the maximum number of allowed symbols? Where can I modify this value > in the sources? > > I am using mapserver 4.6 > > Regards, > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From siki at AGT.BME.HU Tue Feb 7 11:45:11 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Tue, 7 Feb 2006 18:45:11 -0100 Subject: Maximum number of symbols {Scanned} In-Reply-To: <1139328744.43e8c6e87d33d@webmail.addax.cc> Message-ID: Hi, The limit usually set to 64 symbols in a symbol file. It is in the mapsymbol.h file. Increase the number in the source and build mapserver. #define MS_MAXSYMBOLS 64 Bye Zoltan On Tue, 7 Feb 2006, G. Madrigal wrote: > hi, > > Recently I ran into a problem, I have several > classes using a specific symbol (png file) > like this: > > CLASS > NAME "YYYYY" > OUTLINECOLOR 32 32 32 > STYLE > COLOR 0 0 0 # dummy color > SYMBOL 'symbols/yyyyy.png' > END > END #end of class YYYYY > > My problem is that I have a lot of class definitions like the one above, > and at some point, if I define a new symbol my map stops working. > > What's is the maximum number of allowed symbols? Where can I modify this value > in the sources? > > I am using mapserver 4.6 > > Regards, > > From Andreas.Maul at BGR.DE Tue Feb 7 08:18:31 2006 From: Andreas.Maul at BGR.DE (Maul, Andreas-Alexander) Date: Tue, 7 Feb 2006 17:18:31 +0100 Subject: truetype character as polygon fill rendered without space Message-ID: Hi, as pointed out in the documentation "Construction of Cartographic Symbols" lines can be decorated with truetype symbols, e.g. with a symbol definition as SYMBOL NAME "tilde" TYPE TRUETYPE FONT "arial" CHARACTER "~" ANTIALIAS TRUE GAP 10 END If I use the same definition to fill polygon areas with this signature, the keyword gap (and angle too) is ignored, i.e. the characters are arranged without space. Is it planned to extend the gap keyword that it is usable also for areas? PS. I use mapserver 4.4.1 and Windows XP but same behaviour with mapserver 4.6 has been told Regards, Andreas From lfilak at MEDINACO.ORG Tue Feb 7 08:47:23 2006 From: lfilak at MEDINACO.ORG (Lowell.Filak) Date: Tue, 7 Feb 2006 11:47:23 -0500 Subject: [QUAR] [UMN_MAPSERVER-USERS] swig mapscript interface In-Reply-To: <845AADAC1106E44996327D62097E4C6B85FCF0@et.ad.sdsc.edu> Message-ID: Christopher Condit writes: > I'm curious if there's a way to get access to the shapeObj field names > in non-PHP MapScript applications. > > In PHP, you can get a shape object (as a result of a query) and grab the > valued of field with a string index: $myValue = > shape.values["Country_Code"]; > > I'm using c# for my application and I'm curious if there is anything > similar - or another way to get access to the field names? Chris, Last I knew you could not pull the value by string but could numerically via the position of the attribute in the table. Lowell From piero.cavalieri at HEIDI.IT Tue Feb 7 09:46:37 2006 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Tue, 7 Feb 2006 11:46:37 -0600 Subject: .NET Framework SDk 2.0 Message-ID: Fabio D' Ovidio ha scritto: > Does MapServer 4.4.1 support .NET Framework SDK 2.0 ? I don't know if C# MapScript works with .NET 2, but you can work both in BROWSE and *QUERY* mode using cgi. There are no threading issues except Mapserver cgi itself (I suppose). For example, using Ajax .NET (http://ajax.schwarz-interactive.de/csharpsample/default.aspx) something like this (only an idea, not complete and raw): Main .aspx page: //using dbox function setbox_handler(name, minx, miny, maxx, maxy) { document.mapserv.imgbox.value = minx + " " + miny + " " + maxx + " " + maxy; document.mapserv.imgxy.value = minx + " " + miny; //document.forms[0].submit(); <-- old form style retrieveMap(); <-- new Ajax style } ... Code behind: if(!IsPostBack) { // Register the class that will hold the methods. BorgWorX.Web.Core.Ajax.Utility.RegisterTypeForAjax(typeof (mapsrvNet.AjaxMethods), Page); } else { ... } file AjaxMethods.js: var swapMapImageTime = 1000; //offscreen images, used in preload var imgMapOff = new Image(); var imgRefOff = new Image(); var queryString; var layers; var baseUrl; var imgxy; var imgext; var mapwidth; var mapheight; var imgbox; var zoom = 0; function retrieveMap() { //recupero lista layers var childNodes = document.getElementById("layerListDiv"); layerArray = childNodes.getElementsByTagName("input"); //alert(layers.length); var i; var layersString = ""; for(i=0; i < layerArray.length; i++) { if(layerArray[i].checked == true) { layersString += "&layer=" + layerArray[i].value; } } baseUrl = document.getElementById("baseUrl").value; imgxy = document.getElementById("imgxy").value; imgext = document.getElementById("imgext").value; mapwidth = document.getElementById("mapwidth").value; mapheight = document.getElementById("mapheight").value; imgbox = document.getElementById("imgbox").value; //build url querySting = baseUrl + layersString + "&mode=browse" + "&imgext=" + imgext + "&imgbox=" + imgbox; AjaxMethods.RetrieveImage(querySting, retrieveMapImage_callback); } function retrieveMapImage_callback(res) { try { if(typeof(res.value) == 'object' && res.error == null) { imgMapOff.src = res.value.mapImgUrl; //preload image imgRefOff.src = res.value.referenceMap; setTimeout("updateImg()",swapMapImageTime); //and wait n seconds for image download } else { throw res.error.toString(); } } catch (exception) { this.status = "PROBLEMS RETRIEVING MAP !"; //alert(exception); } } function updateImg() { document.getElementById("main_image").src = imgMapOff.src; document.getElementById("referenceMap").src = imgRefOff.src; } SERVER SIDE (C#): file AjaxMethods.cs: namespace mapsrvNet { /// /// Summary description for Methods. /// public class AjaxMethods { //qui devo creare classe Map [BorgWorX.Web.Core.Ajax.AjaxMethod()] public Map RetrieveImage(string queryString) { string mapImgUrl = null; string mapwidth = null; string mapheight = null; string scalebar = null; string imgxy = null; //[center] of the image string imgext = null; string legend = null; string referenceMap = null; Map map = null; //holds all map value try { // Create a 'WebRequest' with the specified url. //if(debug)throw new Exception ("queryString: "+queryString); HttpWebRequest webRequest = (HttpWebRequest) WebRequest.Create(queryString); //webRequest.KeepAlive = false; webRequest.Timeout=10000; webRequest.Method = "GET"; // Send the WebRequest and read response HttpWebResponse webResponse = (HttpWebResponse) webRequest.GetResponse(); Stream sResponse = webResponse.GetResponseStream(); StreamReader reader = new StreamReader (sResponse); //first line is additional info from MapServer string header = reader.ReadLine(); if(header == "") { string message = reader.ReadToEnd(); message += "\n\n\"" + header + message + "\"\n\n"; throw new Exception(message); } //actual parameters mapImgUrl = reader.ReadLine(); mapwidth = reader.ReadLine(); mapheight = reader.ReadLine(); scalebar = reader.ReadLine(); imgxy = reader.ReadLine(); imgext = reader.ReadLine(); legend = reader.ReadLine(); referenceMap = reader.ReadLine(); map = new Map(mapImgUrl, mapwidth, mapheight, scalebar, imgxy, imgext, legend, referenceMap); sResponse.Close(); reader.Close(); webResponse.Close(); } catch (Exception ex) { throw new Exception ("queryString:"+queryString+"\n\n"+ex.ToString()); } return map; } //method } //class } //namespace file Map.cs: namespace mapsrvNet { /// /// Description of Map. /// [Serializable] public class Map { public string mapImgUrl = ""; public string mapwidth = ""; public string mapheight = ""; public string scalebar = ""; public string imgxy = ""; public string imgext = ""; public string legend = ""; public string referenceMap = ""; public Map(string mapImgUrl, string mapwidth, string mapheight, string scalebar, string imgxy, string imgext, string legend, string referenceMap) { this.mapImgUrl = mapImgUrl; this.mapwidth = mapwidth; this.mapheight = mapheight; this.scalebar = scalebar; this.imgxy = imgxy; this.imgext = imgext; this.legend = legend; this.referenceMap = referenceMap; } } } file web_template.html: (u could use also xml file) [img] [mapwidth] [mapheight] [scalebar] [center] [mapext] [legend] [ref] .Map file: ... TEMPLATE "templates/web_template.html" ... U work in similar way with query templates. Bye Piero From artur.skalski at ACXIOM.COM Tue Feb 7 11:16:00 2006 From: artur.skalski at ACXIOM.COM (Artur Skalski) Date: Tue, 7 Feb 2006 13:16:00 -0600 Subject: Projections again Message-ID: Hi All I'm realy stuck... I'm trying to project Layer which is in "longlitude/latitude WGS84" projection (it's a mapinfo layer and i get projection info from MapInfo) in "Pulkovo (1942) Gauss Kruger zone 34" i use for that epsg file like "init=epsg:2551", and teh layer is not visible, just flyes away somewhere... Can You help please thats my map file: MAP NAME Sopot #EXTENT 18.48520 54.41169 18.60783 54.46770 EXTENT 4338050 6035540 4343920 6040510 UNITS METERS CONFIG "PROJ_LIB" "C:/proj4/nad/" PROJECTION "init=epsg:2551" #GK Polkovo 1942 zone 34 END STATUS ON SIZE 750 550 SYMBOLSET etc/symbols.sym FONTSET "C:/Inetpub/wwwroot/mapserver/framedefs/etc/fonts.txt" SHAPEPATH "C:/Inetpub/wwwroot/mapserver/data/newsopot/" IMAGECOLOR 255 255 255 # # Definicja formatu mapy (.gif .jpg ect.) # # # Start of web interface definition # WEB #MINSCALE 1000 #MAXSCALE 150000 # # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root # of the drive where the .MAP file resides. # IMAGEPATH "C:/Inetpub/wwwroot/mapserver/framedefs/ms_tmp/" IMAGEURL "/ms_tmp/" END # # Start of reference map # REFERENCE IMAGE "C:/Inetpub/wwwroot/mapserver/framedefs/images/reference.gif" EXTENT 4338050 6035540 4343920 6040510 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 SIZE 150 150 MARKERSIZE 8 MARKER 'star' MAXBOXSIZE 150 END # # Scalebar # SCALEBAR TRANSPARENT ON BACKGROUNDCOLOR 255 255 255 STATUS EMBED UNITS meters POSITION LR STYLE 1 END # # Query Map # QUERYMAP STYLE HILITE COLOR 255 0 0 END # # Symbols # SYMBOL NAME 'point' TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END # # Start of layer definitions # LAYER NAME granice DATA CityBoundaries TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "CityBoundaries.TAB" STATUS ON PROJECTION "init=epsg:4326" #lon/latwgs84 END CLASS NAME "granice" COLOR 255 255 218 OUTLINECOLOR 0 0 0 END END END # Map File regards Artur From ltrevino at GPOBSI.COM.MX Tue Feb 7 13:04:37 2006 From: ltrevino at GPOBSI.COM.MX (Luis Trevi=?ISO-8859-1?Q?=F1o?=) Date: Tue, 7 Feb 2006 15:04:37 -0600 Subject: Can=?ISO-8859-1?Q?=B4t?= see the postgis layer Message-ID: Hi mapserver-users: I?m using mapserver CGI with no mapscript, I have a shapefile and a postgis layer. I can see the shapefile layer with no problems but I can?t see the postgis layer. If I call the postgis layer with a lat/long extent I can see the points but can?t see the shapefile layer, If I call both layers with UTM extent I just see the shape layer. I?m stuck. Don?t know what I?m doing wrong. This is my map file: MAP NAME "pg" STATUS ON EXTENT 477959 2.13346e+006 490080 2.14072e+006 SIZE 800 600 SYMBOLSET 'symbols.sym' FONTSET 'fonts.txt' IMAGETYPE GIF IMAGECOLOR 255 255 255 UNITS METERS WEB IMAGEPATH '/var/www/tmp/' IMAGEURL '/tmp/' LOG 'ms.log' TEMPLATE Tubica.html END PROJECTION #"proj=latlong" "proj=longlat" "ellps=WGS84" "datum=WGS84" "no_defs" END LAYER NAME gis STATUS ON TYPE POINT DEBUG ON CONNECTION "user=xxx password=xxx dbname=bsiubica host=xxx.xxx.xxx.xx port=5432" CONNECTIONTYPE postgis DATA "posicion from loca as foo using unique cmpoid using srid=4326" UNITS METERS SIZEUNITS METERS CLASS COLOR 255 0 0 #rojo SYMBOL 7 SIZE 10 END END LAYER NAME mypnt STATUS ON TYPE POINT CLASS END END LAYER NAME calles STATUS ON DATA /var/gisdata/urbtest/coy_GrLin.shp TYPE LINE UNITS METERS CLASS STYLE SYMBOL 7 SIZE 1 COLOR 0 43 255 END END END END any help will be apressited. Thanks Luis. From ealpert at DIGITALGLOBE.COM Tue Feb 7 13:15:09 2006 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Tue, 7 Feb 2006 14:15:09 -0700 Subject: Can=?iso-8859-1?Q?=B4t?= see the postgis layer Message-ID: Your EXTENT is in METERS but your PROJECTION layer is not. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Luis Trevi?o Sent: Tuesday, February 07, 2006 2:05 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Can?t see the postgis layer Hi mapserver-users: I?m using mapserver CGI with no mapscript, I have a shapefile and a postgis layer. I can see the shapefile layer with no problems but I can?t see the postgis layer. If I call the postgis layer with a lat/long extent I can see the points but can?t see the shapefile layer, If I call both layers with UTM extent I just see the shape layer. I?m stuck. Don?t know what I?m doing wrong. This is my map file: MAP NAME "pg" STATUS ON EXTENT 477959 2.13346e+006 490080 2.14072e+006 SIZE 800 600 SYMBOLSET 'symbols.sym' FONTSET 'fonts.txt' IMAGETYPE GIF IMAGECOLOR 255 255 255 UNITS METERS WEB IMAGEPATH '/var/www/tmp/' IMAGEURL '/tmp/' LOG 'ms.log' TEMPLATE Tubica.html END PROJECTION #"proj=latlong" "proj=longlat" "ellps=WGS84" "datum=WGS84" "no_defs" END LAYER NAME gis STATUS ON TYPE POINT DEBUG ON CONNECTION "user=xxx password=xxx dbname=bsiubica host=xxx.xxx.xxx.xx port=5432" CONNECTIONTYPE postgis DATA "posicion from loca as foo using unique cmpoid using srid=4326" UNITS METERS SIZEUNITS METERS CLASS COLOR 255 0 0 #rojo SYMBOL 7 SIZE 10 END END LAYER NAME mypnt STATUS ON TYPE POINT CLASS END END LAYER NAME calles STATUS ON DATA /var/gisdata/urbtest/coy_GrLin.shp TYPE LINE UNITS METERS CLASS STYLE SYMBOL 7 SIZE 1 COLOR 0 43 255 END END END END any help will be apressited. Thanks Luis. From szekeres.tamas at FREEMAIL.HU Tue Feb 7 13:29:17 2006 From: szekeres.tamas at FREEMAIL.HU (Tamas Szekeres) Date: Tue, 7 Feb 2006 15:29:17 -0600 Subject: .NET Framework SDk 2.0 Message-ID: Why not to use the latest release? (4.8.1) Tamas Szekeres On Tue, 7 Feb 2006 11:52:34 +0100, Fabio D' Ovidio wrote: >Does MapServer 4.4.1 support .NET Framework SDK 2.0 ? From tmelhuish at WEBINSIGHTSINC.COM Tue Feb 7 13:20:28 2006 From: tmelhuish at WEBINSIGHTSINC.COM (Tom Melhuish) Date: Tue, 7 Feb 2006 16:20:28 -0500 Subject: Mapserv looking for libpq.so.3 for postgresql 8.1.2 In-Reply-To: Message-ID: I just installed postgresql 8.1.2 and Postgis 1.1.1. I completely deleted my /usr/local/pgsql directory prior to installing postgresql 8.1.2 and only /usr/local/pgsql/lib/libpq.so.4 was build. No libpq.so.3 was built like in postgresql 7.X. I tried both mapserver 4.4.2 and 4.6.2 which give me the following error message in the httpd error_log when trying to run mapscript in perl: Can't load '/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/mapscript/mapsc ript.so' for module mapscript: libpq.so.3: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm line 229. [Wed Feb 01 18:11:00 2006] [error] [client 192.168.119.112] at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/mapscript.pm line 7 When I look at what libraries that are required for mapserv I see libpq.3 is trying to be loaded: [root at WIRH90 mapserver-4.6.2]# ldd mapserv libgd.so.2 => /usr/local/lib/libgd.so.2 (0x4002a000) libjpeg.so.62 => /usr/local/lib/libjpeg.so.62 (0x40062000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x4007f000) libpng12.so.0 => /usr/lib/libpng12.so.0 (0x400d0000) libz.so.1 => /usr/lib/libz.so.1 (0x400f3000) libpdf.so.1 => /usr/local/lib/libpdf.so.1 (0x40101000) libproj.so.0 => /usr/local/lib/libproj.so.0 (0x40190000) libgdal.1.1.so => /usr/local/lib/libgdal.1.1.so (0x401c4000) libpq.so.4 => /usr/local/pgsql/lib/libpq.so.4 (0x40467000) libcurl.so.2 => /usr/local/lib/libcurl.so.2 (0x4047e000) libssl.so.4 => /lib/libssl.so.4 (0x404a7000) libcrypto.so.4 => /lib/libcrypto.so.4 (0x404dc000) libdl.so.2 => /lib/libdl.so.2 (0x405ce000) libgssapi_krb5.so.2 => /usr/kerberos/lib/libgssapi_krb5.so.2 (0x405d2000) libkrb5.so.3 => /usr/kerberos/lib/libkrb5.so.3 (0x405e5000) libcom_err.so.3 => /usr/kerberos/lib/libcom_err.so.3 (0x40643000) libk5crypto.so.3 => /usr/kerberos/lib/libk5crypto.so.3 (0x40645000) libresolv.so.2 => /lib/libresolv.so.2 (0x40655000) libc.so.6 => /lib/tls/libc.so.6 (0x42000000) libm.so.6 => /lib/tls/libm.so.6 (0x40668000) libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x4068a000) libpthread.so.0 => /lib/tls/libpthread.so.0 (0x4073d000) libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x4074b000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4075a000) libpq.so.3 => not found libclntsh.so.9.0 => /usr/local/lib/libclntsh.so.9.0 (0x4083a000) libungif.so.4 => /usr/lib/libungif.so.4 (0x41147000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x4114f000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x41157000) libnsl.so.1 => /lib/libnsl.so.1 (0x41185000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x4119a000) libwtc9.so => /oracle/9.2.0/lib/libwtc9.so (0x411a8000) Here is my DBD_pg test of the install and I'm using DBI 1.50 [root at WIRH90 DBD-Pg-1.43]# make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00basic...........ok t/01connect.........ok 1/8# # Program Version # Perl 5.8.0 (linux) # DBD::Pg 1.43 # PostgreSQL (compiled) 80102 # PostgreSQL (target) 80102 # PostgreSQL (reported) PostgreSQL 8.1.2 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5) # DBI 1.50 # DBI_DSN dbi:Pg:dbname=gisdb t/01connect.........ok t/01constants.......ok t/01setup...........ok t/02attribs.........ok t/03dbmethod........ok t/03smethod.........ok t/04misc............ok t/05arrays..........ok 15/17 skipped: Array support not implemented t/06bytea...........ok t/07copy............ok t/12placeholders....ok t/20savepoints......ok t/99_pod............skipped all skipped: Test::Pod 0.95 required for testing POD t/99cleanup.........ok All tests successful, 1 test and 15 subtests skipped. Files=15, Tests=417, 9 wallclock secs ( 5.64 cusr + 0.42 csys = 6.06 CPU) [root at WIRH90 DBD-Pg-1.43]# Postgis test out fine in the install and I wrote a perl script to test some of the functionality like "GeometryFromText" an d"AsText" function and they work fine. [postgres at WIRH90 postgis-1.1.1]$ make test make -C regress test make[1]: Entering directory `/usr/local/src/postgresql-8.1.2/contrib/postgis-1.1.1/regress' PostgreSQL 8.1.2 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5) Postgis 1.1.1 - 2006-02-07 14:30:47 GEOS: 2.2.1-CAPI-1.0.1 PROJ: Rel. 4.4.9, 29 Oct 2004 Running tests regress: Ok. regress_index: Ok. lwgeom_regress: Ok. regress_lrs: Ok. removepoint: Ok. setpoint: Ok. simplify: Ok. regress_ogc: Ok. regress_bdpoly: Ok. regress_proj: Ok. Run tests: 10 Successful: 10 Failed: 0 make[1]: Leaving directory `/usr/local/src/postgresql-8.1.2/contrib/postgis-1.1.1/regress' [postgres at WIRH90 postgis-1.1.1]$ I tried building mapserver with "./configure --with-postgis=/usr/local/pgsql/bin/pg_config" or "./configure --with-postgis" and in both cases it says it fines my pg_config file. Why is mapserv trying to load libpq.so.3 when it's not used anymore in postgresql 8.X? I don't know where it can be picking up this name. If I do a "locate libpq.so.3" nothing is found even after I do an "updatedb" or do a "ldconfig -v". I even added in my env variables just to be sure: POSTGRES_HOME= /usr/local/pgsql POSTGRES_LIB= /usr/local/pgsql/lib POSTGRES_INCLUDE= /usr/local/pgsql/include Has anyone else experienced this? Thanks in advance. Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekeres.tamas at FREEMAIL.HU Tue Feb 7 14:01:28 2006 From: szekeres.tamas at FREEMAIL.HU (Tamas Szekeres) Date: Tue, 7 Feb 2006 16:01:28 -0600 Subject: swig mapscript interface Message-ID: Cris, For C# you should access the field value by index as string myvalue = myshape.getValue(index); index should be less than shapeObj.numvalues. Currently the field access by array (shapeObj.values) cannot be used due to the absence of a C# typemap for the string array. To access the value by field name your shape should belong to a layer. You could achieve similar functionality as implemented in php like if (myshape != null && mylayer != null && myshape.numvalues == mylayer.numvalues) { for (int i=0; i wrote: >I'm curious if there's a way to get access to the shapeObj field names >in non-PHP MapScript applications. > >In PHP, you can get a shape object (as a result of a query) and grab the >valued of field with a string index: $myValue = >shape.values["Country_Code"]; > >I'm using c# for my application and I'm curious if there is anything >similar - or another way to get access to the field names? > > > >Thanks, > > > >Chris > > From rainer.spittel at TERRALINK.CO.NZ Tue Feb 7 13:59:47 2006 From: rainer.spittel at TERRALINK.CO.NZ (Rainer Spittel) Date: Tue, 7 Feb 2006 15:59:47 -0600 Subject: invalide extension in the wms capability file Message-ID: Hi there, I have a problem with my WMS server. I am using the NZMG (ESPG:27200) projection and my php client is accessing and visualise the data perfect. But when I call the WMS service, I get a value in the extention of the layers. I checked the exstension. ogrinfo delivers the used map's extension and the epsg definition file defines the projection as follow: # NZGD49 / New Zealand Map Grid <27200> +proj=nzmg +lat_0=-41 +lon_0=173 +x_0=2510000 +y_0=6023150 +ellps=intl +units=m +no_defs no_defs <> The mapfile is like this: MAP NAME "devServer" STATUS ON # New Zealand EXTENT 2000073 5310090 3001881 6785641 SIZE 640 400 # ---- parameters SHAPEPATH "/opt/fgs-base/data" FONTSET "../etc/fonts.txt" SYMBOLSET "../etc/symbols.sym" [...] PROJECTION "init=epsg:27200" # NZMG (temporal projection) END WEB METADATA wms_title "NZ - Portal DevBox (WMS)" wms_onlineresource "http://test:8082/cgi-bin/wms_service?" wms_srs "epsg:27200 epsg:4326" END # ---- path IMAGEPATH "/opt/fgs-base/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" LOG "/opt/fgs-base/tmp/ms_tmp/gmap.log" END [...] LAYER NAME "area" GROUP "Basemap" STATUS OFF CONNECTIONTYPE POSTGIS CONNECTION "host=localhost dbname=... user=... password=..." DATA "the_geom from (select * from area) as foo USING UNIQUE gid USING srid=27200" TYPE POLYGON # ---- setting up on the fly projection PROJECTION "init=epsg:27200" END TEMPLATE "ttt.html" METADATA wms_title "Area" END # ---- classification for graphical visualization CLASS NAME "Areal;Areal" STYLE COLOR 255 0 0 OUTLINECOLOR 0 0 0 END END END END #Mapfile Calling the GetCapabilities request delivered following entities in the extension of the maps: ]> OGC:WMS devServer [...] [...] [...] [...] devServer NZ - Portal DevBox (WMS) epsg:27200 epsg:4326 area Area EPSG:27200 The entity maxy="inf" in the LatLonBoudningBox field makes big problems for WMS clients to parse this capability file. What might be wrong on that? Cheers Rainer From n.j.saunders at GMAIL.COM Tue Feb 7 14:13:02 2006 From: n.j.saunders at GMAIL.COM (Neil Saunders) Date: Tue, 7 Feb 2006 22:13:02 +0000 Subject: Projection Issues In-Reply-To: <931f8ea90602060515u46e32945nac603a5bd4e7bb03@mail.gmail.com> Message-ID: Hi All! Frank; Thanks for that tip, now I'm setting the projection on the layer and mapserver is doing my translation into merc which is great. However, the units its projecting it into are meters. If I set, as I have, the units in the layer projection to be m and the units of the map to be dd then i get a "[MapServer Error]: msProcessProjection(): unknown unit conversion id" error. So I tried to convert my data into a new shapefile so i could re-import it, using the following command: ogr2ogr -s_srs "+proj=latlong" -t_srs "+proj =merc +ellps=WGS84" e:\upload\worldmerc.shp e:\upload\cntry.shp ERROR 1: Failed to find required field in datum.csv in InitDatumMappingTable(), using default table setup. Failed to transform feature 180. ERROR 1: Terminating translation prematurely after failed translation of layer cntry00 Could anyone suggest what my error is? Whether I can fix it in mapserver or the data, either would suffice! The end goal being that I have the data pulled from postgis in the same format as I'm projecting to, so I can do all the relevent trickery there. Many thanks in advance, Neil. On 2/6/06, Frank Warmerdam wrote: > On 2/6/06, Neil Saunders wrote: > > I'd like to set the projection to a mercator WGS84. > > > > All I have is a simple mapfile with the map projection set to : > > PROJECTION > > "proj=merc" > > "ellps=WGS84" > > END > > Neil, > > The above is fine, but by default MapServer will assume your > input layer is the same projection and do nothing with it. > You need to add the following declaration for the LAYER: > > PROJECTION > "+proj=latlong +datum=WGS84" > END > > MapServer does not normally pull the layer coordinate > system from the datasource. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > From banders at REFRACTIONS.NET Tue Feb 7 14:25:27 2006 From: banders at REFRACTIONS.NET (Brock Anderson) Date: Tue, 7 Feb 2006 14:25:27 -0800 Subject: Can=?ISO-8859-1?Q?=B4t?= see the p ostgis layer In-Reply-To: Message-ID: Luis, It looks like one of your layers is stored as lat/long, and the other is UTM. You should include a PROJECTION block within each of your layers to define what projection the data is stored in. Mapserver needs to know what projection your data is stored in so that it can reproject appropriately to the desired output projection. I believe if Mapserver doesn't find a PROJECTION block within a layer, it assumes the layer is stored in whatever PROJECTION you use in your MAP block. Brock Luis Trevi?o wrote: >Hi mapserver-users: > >I?m using mapserver CGI with no mapscript, I have a shapefile and a >postgis layer. I can see the shapefile layer with no problems but I can?t >see the postgis layer. If I call the postgis layer with a lat/long extent >I can see the points but can?t see the shapefile layer, If I call both >layers with UTM extent I just see the shape layer. I?m stuck. > >Don?t know what I?m doing wrong. >This is my map file: > >MAP > NAME "pg" > STATUS ON > EXTENT 477959 2.13346e+006 490080 2.14072e+006 > SIZE 800 600 > SYMBOLSET 'symbols.sym' > FONTSET 'fonts.txt' > IMAGETYPE GIF > IMAGECOLOR 255 255 255 > UNITS METERS > > WEB > IMAGEPATH '/var/www/tmp/' > IMAGEURL '/tmp/' > LOG 'ms.log' > TEMPLATE Tubica.html > END > > PROJECTION > #"proj=latlong" > "proj=longlat" > "ellps=WGS84" > "datum=WGS84" > "no_defs" > END > > LAYER > NAME gis > STATUS ON > TYPE POINT > DEBUG ON > CONNECTION "user=xxx password=xxx dbname=bsiubica >host=xxx.xxx.xxx.xx port=5432" > CONNECTIONTYPE postgis > DATA "posicion from loca as foo using unique cmpoid using srid=4326" > > UNITS METERS > SIZEUNITS METERS > > CLASS > COLOR 255 0 0 #rojo > SYMBOL 7 > SIZE 10 > END > END > > LAYER > NAME mypnt > STATUS ON > TYPE POINT > CLASS > END > END > > LAYER > NAME calles > STATUS ON > DATA /var/gisdata/urbtest/coy_GrLin.shp > TYPE LINE > UNITS METERS > > CLASS > STYLE > SYMBOL 7 > SIZE 1 > COLOR 0 43 255 > END > END > END >END > >any help will be apressited. >Thanks >Luis. > > From warmerdam at POBOX.COM Tue Feb 7 14:29:35 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 7 Feb 2006 17:29:35 -0500 Subject: Projection Issues In-Reply-To: Message-ID: On 2/7/06, Neil Saunders wrote: > Hi All! > > Frank; Thanks for that tip, now I'm setting the projection on the layer and > mapserver is doing my translation into merc which is great. However, the > units its projecting it into are meters. If I set, as I have, the units > in the layer projection to be m and the units of the map to be dd then i > get a "[MapServer Error]: msProcessProjection(): unknown unit conversion > id" error. Neil, If your map is going to be in mercator you are going to have to specify your extents in some linear measure (like meters), not in lat/long. > So I tried to convert my data into a new shapefile so i could re-import > it, using the following command: > ogr2ogr -s_srs "+proj=latlong" -t_srs "+proj > =merc +ellps=WGS84" e:\upload\worldmerc.shp e:\upload\cntry.shp > ERROR 1: Failed to find required field in datum.csv in > InitDatumMappingTable(), > using default table setup. > Failed to transform feature 180. > ERROR 1: Terminating translation prematurely after failed > translation of layer cntry00 I'm not exactly sure why you get this error. But you really should be specific about datum. eg. ogr2ogr -s_srs "+proj=latlong +datum=WGS84" -t_srs "+proj=merc +datum=WGS84" e:\upload\worldmerc.shp e:\upload\cntry.shp I would add it really frightens me when you leave so many mercator parameters defaulted. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From kris_rock82 at YAHOO.COM Tue Feb 7 14:41:37 2006 From: kris_rock82 at YAHOO.COM (krishna S) Date: Tue, 7 Feb 2006 16:41:37 -0600 Subject: mapscript removestyle() help Message-ID: Hello all, i was trying to remove the styles object from the styles array using php mapscript and i couldnt get the syntax for it. i dont know if these lines need some thing else $layername = $map->getLayerByName("somelayer"); $class = $layername->getClass(0); $style = ms_newStyleObj($class); $temp = $class.removeStyle(0); Could anyone suggest me with this .... -kris From chris at NARX.NET Tue Feb 7 17:02:08 2006 From: chris at NARX.NET (Chris Tweedie) Date: Wed, 8 Feb 2006 09:02:08 +0800 Subject: invalide extension in the wms capability file In-Reply-To: Message-ID: Rainer, try adding the wms_extent parameter to your LAYER / METADATA object. This will override the need for MS to try and determine the extents from PostGIS, i have had some occasions where the BBOX was reported incorrectly (especially from postgis/sde). Just make sure what you specify is in the correct SRS. eg. LAYER .. METADATA wms_extent "2000073 5310090 3001881 6785641" Quoting Rainer Spittel : > Hi there, > > I have a problem with my WMS server. I am using the NZMG (ESPG:27200) > projection and my php client is accessing and visualise the data perfect. > But when I call the WMS service, I get a value in the extention of the > layers. > I checked the exstension. ogrinfo delivers the used map's extension and > the epsg definition file defines the projection as follow: > > # NZGD49 / New Zealand Map Grid > <27200> +proj=nzmg +lat_0=-41 +lon_0=173 +x_0=2510000 +y_0=6023150 > +ellps=intl +units=m +no_defs no_defs <> > > The mapfile is like this: > > MAP > NAME "devServer" > STATUS ON > > # New Zealand > EXTENT 2000073 5310090 3001881 6785641 > > SIZE 640 400 > > # ---- parameters > SHAPEPATH "/opt/fgs-base/data" > > FONTSET "../etc/fonts.txt" > SYMBOLSET "../etc/symbols.sym" > > [...] > > PROJECTION > "init=epsg:27200" # NZMG (temporal projection) > END > > WEB > METADATA > wms_title "NZ - Portal DevBox (WMS)" > wms_onlineresource "http://test:8082/cgi-bin/wms_service?" > wms_srs "epsg:27200 epsg:4326" > END > > # ---- path > IMAGEPATH "/opt/fgs-base/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > LOG "/opt/fgs-base/tmp/ms_tmp/gmap.log" > END > > [...] > LAYER > NAME "area" > GROUP "Basemap" > STATUS OFF > > CONNECTIONTYPE POSTGIS > CONNECTION "host=localhost dbname=... user=... password=..." > DATA "the_geom from (select * from area) as foo USING UNIQUE gid USING > srid=27200" > TYPE POLYGON > > # ---- setting up on the fly projection > PROJECTION > "init=epsg:27200" > END > > TEMPLATE "ttt.html" > > METADATA > wms_title "Area" > END > > # ---- classification for graphical visualization > CLASS > NAME "Areal;Areal" > STYLE > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > END > END > END > END #Mapfile > > Calling the GetCapabilities request delivered following entities in the > extension of the maps: > > > "http://schemas.opengeospatial.net/wms/1.1.1/WMS_MS_Capabilities.dtd" > [ > > ]> > > > > > > > OGC:WMS > devServer > xlink:href="http://test:8082/cgi-bin/wms_service?"/> > > > > > [...] > [...] > > > [...] > [...] > > > RemoteWFS="0"/> > > devServer > NZ - Portal DevBox (WMS) > epsg:27200 epsg:4326 > maxy="-34.0029" /> > minx="2.00007e+06" miny="5.31009e+06" maxx="3.00188e+06" > maxy="6.78564e+06" /> > > > area > Area > EPSG:27200 > maxy="inf" /> > minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07" > maxy="2.5e+07" /> > > > > > > > > The entity maxy="inf" in the LatLonBoudningBox field makes big problems for > WMS clients to parse this capability file. What might be wrong on that? > > Cheers > Rainer > From chris at NARX.NET Tue Feb 7 19:59:14 2006 From: chris at NARX.NET (Chris Tweedie) Date: Wed, 8 Feb 2006 11:59:14 +0800 Subject: invalide extension in the wms capabilit y file In-Reply-To: <040096F52125D211B0D40000F8083257047145F4@seiko.local.terralink> Message-ID: Rainer, depends on your use i guess. Have a read through all the options at, http://mapserver.gis.umn.edu/docs/howto/wms_server/?searchterm=wms Most of the optional paramters are for CITE compliance or other features (such as WMS-Time and WFS). So long as your capabilities are reporting the correct online_resource url and a correct BBOX, most clients should function without any problems. Chris Quoting Rainer Spittel : > Hi Chris > > cool, now it works. Thanks a lot. > > Might there be some more wms-metadata fields I should add except the > mandatory fields? > > Cheers > Rainer Spittel > > -----Original Message----- > From: chris at narx.net [mailto:chris at narx.net] > Sent: Wednesday, 8 February 2006 2:02 p.m. > To: Rainer Spittel > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] invalide extension in the wms capability > file > > > Rainer, > > try adding the wms_extent parameter to your LAYER / METADATA object. > > This will override the need for MS to try and determine the extents > from PostGIS, i have had some occasions where the BBOX was reported > incorrectly (especially from postgis/sde). Just make sure what you > specify is in the correct SRS. > > eg. > LAYER .. > METADATA > wms_extent "2000073 5310090 3001881 6785641" > > Quoting Rainer Spittel : > >> Hi there, >> >> I have a problem with my WMS server. I am using the NZMG (ESPG:27200) >> projection and my php client is accessing and visualise the data >> perfect. But when I call the WMS service, I get a value in the >> extention of the layers. I checked the exstension. ogrinfo delivers >> the used map's extension and the epsg definition file defines the >> projection as follow: >> >> # NZGD49 / New Zealand Map Grid >> <27200> +proj=nzmg +lat_0=-41 +lon_0=173 +x_0=2510000 +y_0=6023150 >> +ellps=intl +units=m +no_defs no_defs <> >> >> The mapfile is like this: >> >> MAP >> NAME "devServer" >> STATUS ON >> >> # New Zealand >> EXTENT 2000073 5310090 3001881 6785641 >> >> SIZE 640 400 >> >> # ---- parameters >> SHAPEPATH "/opt/fgs-base/data" >> >> FONTSET "../etc/fonts.txt" >> SYMBOLSET "../etc/symbols.sym" >> >> [...] >> >> PROJECTION >> "init=epsg:27200" # NZMG (temporal projection) >> END >> >> WEB >> METADATA >> wms_title "NZ - Portal DevBox (WMS)" >> wms_onlineresource "http://test:8082/cgi-bin/wms_service?" >> wms_srs "epsg:27200 epsg:4326" >> END >> >> # ---- path >> IMAGEPATH "/opt/fgs-base/tmp/ms_tmp/" >> IMAGEURL "/ms_tmp/" >> LOG "/opt/fgs-base/tmp/ms_tmp/gmap.log" >> END >> >> [...] >> LAYER >> NAME "area" >> GROUP "Basemap" >> STATUS OFF >> >> CONNECTIONTYPE POSTGIS >> CONNECTION "host=localhost dbname=... user=... password=..." >> DATA "the_geom from (select * from area) as foo USING UNIQUE gid >> USING srid=27200" >> TYPE POLYGON >> >> # ---- setting up on the fly projection >> PROJECTION >> "init=epsg:27200" >> END >> >> TEMPLATE "ttt.html" >> >> METADATA >> wms_title "Area" >> END >> >> # ---- classification for graphical visualization >> CLASS >> NAME "Areal;Areal" >> STYLE >> COLOR 255 0 0 >> OUTLINECOLOR 0 0 0 >> END >> END >> END >> END #Mapfile >> >> Calling the GetCapabilities request delivered following entities in >> the extension of the maps: >> >> > WMT_MS_Capabilities SYSTEM >> "http://schemas.opengeospatial.net/wms/1.1.1/WMS_MS_Capabilities.dtd" >> [ >> >> ]> >> >> >> >> >> >> >> OGC:WMS >> devServer >> > xlink:href="http://test:8082/cgi-bin/wms_service?"/> >> >> >> >> >> [...] >> [...] >> >> >> [...] >> [...] >> >> >> > RemoteWFS="0"/> >> devServer >> NZ - Portal DevBox (WMS) >> epsg:27200 epsg:4326 >> > maxy="-34.0029" /> >> > minx="2.00007e+06" miny="5.31009e+06" maxx="3.00188e+06" >> maxy="6.78564e+06" /> >> >> >> area >> Area >> EPSG:27200 >> > maxy="inf" /> >> > minx="-2.5e+07" miny="-2.5e+07" maxx="2.5e+07" >> maxy="2.5e+07" /> >> >> >> >> >> >> >> >> The entity maxy="inf" in the LatLonBoudningBox field makes big >> problems for WMS clients to parse this capability file. What might be >> wrong on that? >> >> Cheers >> Rainer >> > From james_marsnett at HOTMAIL.COM Tue Feb 7 20:03:25 2006 From: james_marsnett at HOTMAIL.COM (James Net) Date: Wed, 8 Feb 2006 15:03:25 +1100 Subject: ANNOTATION only for an extent? Message-ID: I am using several high quality aerial photographs, and each is copyright by someone different. How do I display different "copyright" statements only when viewing a certain extent? I tried the following, but it displays the copyright statement whenever the zoom level reaches 50,000. These layers MUST be in the same group, else I would have made separate map files. So that when the user zoms in, they get to see more detail. Any ideas? My map file: LAYER NAME "marble" GROUP "mosaic" TYPE RASTER STATUS ON MINSCALE 4000000.0 MAXSCALE 40000000.0 CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?" CONNECTIONTYPE WMS METADATA wms_title "marble" wms_srs "EPSG:4326" wms_abstract "NASA's next blue marble" "wms_srs" "EPSG:4326" "wms_name" "BMNG" "wms_server_version" "1.1.1" "wms_format" "image/jpeg" END END LAYER NAME "abc" GROUP "mosaic" DATA "abc.ECW" TYPE RASTER STATUS OFF MAXSCALE 50000.0 TRANSPARENCY ALPHA OFFSITE 255 255 255 PROJECTION "init=epsg:28355" END METADATA wms_title "abc" wms_srs "EPSG:28355" wms_abstract "abc" wms_opaque "1" # Hint to the client END END LAYER NAME "xyz" GROUP "mosaic" DATA "xyz.ecw" TYPE RASTER STATUS OFF MAXSCALE 50000.0 TRANSPARENCY ALPHA OFFSITE 255 255 255 PROJECTION "init=epsg:28355" END METADATA wms_title "xyz" wms_srs "EPSG:28355" wms_abstract "xyz" wms_opaque "1" # Hint to the client END END LAYER NAME "credits" TYPE ANNOTATION STATUS DEFAULT REQUIRES "[abc]" POSTLABELCACHE TRUE TRANSFORM FALSE FEATURE POINTS 0 15 # This is the position of the text in image coordinates (pixel). END TEXT 'Copyright abc' END CLASS LABEL ANTIALIAS true FONT "sans" COLOR 255 0 0 BACKGROUNDCOLOR 2 2 2 POSITION UR END END END _________________________________________________________________ New year, new job ? there's more than 100,00 jobs at SEEK http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fninemsn%2Eseek%2Ecom%2Eau&_t=752315885&_r=Jan05_tagline&_m=EXT From b.vdeijnden at AGI.RWS.MINVENW.NL Tue Feb 7 22:05:45 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Tue, 7 Feb 2006 22:05:45 -0800 Subject: mapscript removestyle() help Message-ID: See http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/referencemanu al-all-pages int deletestyle(int index) Delete the style specified by the style index. If there are any style that follow the deleted style, their index will decrease by 1. NOTE : if you are using the numstyles parameter while using the deletestyle function on the class object you need to refetch a new class object. Example : //class has 2 styles $class = $oLayer->getclass(0); $class->deletestyle(1); echo $class->numstyles; : will echo 2 $class = $oLayer->getclass(0); echo $class->numstyles; : will echo 1 Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens krishna S Verzonden: dinsdag 7 februari 2006 23:42 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] mapscript removestyle() help Hello all, i was trying to remove the styles object from the styles array using php mapscript and i couldnt get the syntax for it. i dont know if these lines need some thing else $layername = $map->getLayerByName("somelayer"); $class = $layername->getClass(0); $style = ms_newStyleObj($class); $temp = $class.removeStyle(0); Could anyone suggest me with this .... -kris Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From dennisjan at IBUILDINGS.NL Wed Feb 8 02:29:24 2006 From: dennisjan at IBUILDINGS.NL (DJ Broerse) Date: Wed, 8 Feb 2006 11:29:24 +0100 Subject: Problems with join In-Reply-To: Message-ID: Hey Steve I have two dfb files: gbkn-philippine and eigenaren The reference is gbkn-philippine.willekeur and eigenaren.aa_linkid What I want is if I query the the layer then I like to see the data of eigenaren.dbf . I can't figure out what is wrong. Maybe I have to use CONNECTION or CONNECTIONTYPE but I don't know what. TEMPLATE isn't necessary because I use a one-to-one relation. I really hope you can help me Dennis-Jan LAYER NAME "gbkn-philippine" TYPE line STATUS ON DATA "join/gbkn-philippine" MAXSCALE 25100 METADATA "DESCRIPTION" "gbkn-philippine" END # Metadata JOIN NAME "join1" TABLE "gisdata/join/eigenaren.dbf" FROM "WILLEKEUR" TO "AA_LINKID" TYPE ONE-TO-ONE END CLASS Name "gbkn-philippine" COLOR 249 49 249 TEMPLATE queryzichtbaar SYMBOL "vet" SIZE 2 END # Class END # Layer Steve Lime wrote: > How are you referencing the attributes in the joined file? I believe the syntax is [joinname_attrname] in the template. Can you share the mapfile snippet and the template? > > Steve > > -- DJ Broerse dennisjan at ibuildings.nl Direct: 0118 42 95 68 Mobiel: 06 48 01 03 08 Skype: callto://dennisjan-ibuildings Ibuildings.nl BV - Information technology http://www.ibuildings.nl - 0118 42 95 50 From baas at SPEERIT.NL Wed Feb 8 02:45:27 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Wed, 8 Feb 2006 11:45:27 +0100 Subject: Coordinate Systems used in the Netherlands? Message-ID: Hello again, I have a few questions concerning the projection of my layers in MapServer. I'm using the StreetPro layers for the Netherlands, and from that documentation I found that I should use the follows as main projection in my Map File: PROJECTION "proj=stere" "lat_0=52.15616055555555" "lon_0=5.38763888888889" "k=0.999908" "x_0=155000" "y_0=463000" "ellps=bessel" "units=m" END But now I also need to project some seperate TAB files (from MapInfo), and they are shifted to the North-East. Anyone have any ideas how to fix this problem? If requested I can post a screenshot. I tried setting this layer projection to a Dutch system, but I cannot find which one to use (neither can I find which of them are supported by MapServer ;(). I tested: +proj=Netherlands Coordinate Systems -- Unknown Projection ID +proj=NCS -- Same +proj=latlong +datum=Rijksdriehoekstelsel -- unknown elliptical parameter name +proj=latlong +datum=Netherlands National System -- Same as above. Can anyone provide me some pointers? I have a beautiful working map, but with my last layer being off by 50 meters, it's kinda useless. Thanks! Regards, Jelmer Baas From janeks.kamerovskis at SILVA.LV Wed Feb 8 03:05:06 2006 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Wed, 8 Feb 2006 13:05:06 +0200 Subject: coordinate transformations formulas ... ? Message-ID: Hi list, What means those ... in the formula, that is part of coordinate transformations formulas? M = a[(1 - e2/4 - 3e4/64 - 5e6/256 -....)j - (3e2/8 + 3e4/32 + 45e6/1024+....)sin2j + (15e4/256 + 45e6/1024 +.....)sin4j - (35e6/3072 + ....)sin6j + .....] brgds Janeks -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 4141 bytes Desc: not available URL: From b.vdeijnden at AGI.RWS.MINVENW.NL Wed Feb 8 03:42:50 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Wed, 8 Feb 2006 03:42:50 -0800 Subject: Coordinate Systems used in the Netherla nds? Message-ID: What I normally use is: PROJECTION "init=epsg:28992" END And in my epsg file I use the following params: # RD / Netherlands New <28992> +proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.999908 +x_0=155000 +y_0=463000 +ellps=bessel +units=m +towgs84=565.2369,50.0087,465.658,-0.406857330322398,0.350732676542563,-1.87 03473836068,4.0812 +no_defs +to +proj=latlong +datum=WGS84 Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Jelmer Baas Verzonden: woensdag 8 februari 2006 11:45 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Coordinate Systems used in the Netherlands? Hello again, I have a few questions concerning the projection of my layers in MapServer. I'm using the StreetPro layers for the Netherlands, and from that documentation I found that I should use the follows as main projection in my Map File: PROJECTION "proj=stere" "lat_0=52.15616055555555" "lon_0=5.38763888888889" "k=0.999908" "x_0=155000" "y_0=463000" "ellps=bessel" "units=m" END But now I also need to project some seperate TAB files (from MapInfo), and they are shifted to the North-East. Anyone have any ideas how to fix this problem? If requested I can post a screenshot. I tried setting this layer projection to a Dutch system, but I cannot find which one to use (neither can I find which of them are supported by MapServer ;(). I tested: +proj=Netherlands Coordinate Systems -- Unknown Projection ID +proj=NCS -- Same +proj=latlong +datum=Rijksdriehoekstelsel -- unknown elliptical parameter name +proj=latlong +datum=Netherlands National System -- Same as above. Can anyone provide me some pointers? I have a beautiful working map, but with my last layer being off by 50 meters, it's kinda useless. Thanks! Regards, Jelmer Baas Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From Gail.Millin at MANCHESTER.AC.UK Wed Feb 8 04:45:31 2006 From: Gail.Millin at MANCHESTER.AC.UK (Gail Millin) Date: Wed, 8 Feb 2006 12:45:31 +0000 Subject: ECW Quality for WCS download Message-ID: An HTML attachment was scrubbed... URL: From Gail.Millin at MANCHESTER.AC.UK Wed Feb 8 04:56:16 2006 From: Gail.Millin at MANCHESTER.AC.UK (Gail Millin) Date: Wed, 8 Feb 2006 12:56:16 +0000 Subject: log functionality enabled Message-ID: An HTML attachment was scrubbed... URL: From b.vdeijnden at AGI.RWS.MINVENW.NL Wed Feb 8 04:59:43 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Wed, 8 Feb 2006 04:59:43 -0800 Subject: ECW Quality for WCS download Message-ID: Hi Gail, what kind of requests are you trying? Could you supply an example URL? In the URL you can specify res_x and res_y and if you give those the same value as your source data you should get the same quality, at least for us it seems to work fine like that. We also output to MrSID, ECW and Geotiff using Mapserver WCS. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Gail Millin Verzonden: woensdag 8 februari 2006 13:46 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] ECW Quality for WCS download Dear MapServer users, I would like to provide ECW format radar data for download via a WCS (aswell as Geotiff format). I have managed to get the ECW images to download via WCS but the quality of the image has been reduced greatly when I compare to the original image on the server. What could be the reason for this? I would appreciate any suggestions. The quality of the GeoTiff's in comparison is the same as the image of the server, does GDAL work for ECW WCS? Gail Millin Geodata Interoperability Support Officer The University of Manchester Kilburn Building Oxford Road M13 9PL Tel: +44 (0) 161 275 0581 E-mail: Gail.Millin at manchester.ac.uk Website: http://www.landmap.ac.uk Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From williampaul28 at YAHOO.COM Wed Feb 8 05:22:11 2006 From: williampaul28 at YAHOO.COM (william paul) Date: Wed, 8 Feb 2006 05:22:11 -0800 Subject: DMS display on MouseMove Message-ID: Hi: I display the coordinates on mousemove over the map. The coordinates are in DD and UTM, but I would like display them also in DMS. Can someone give me an working example? I use mapserver 4.6.1 without mapscript or any other utility. My script for DD and UTM coordinates display is in javascript Thank you in advance William --------------------------------- Relax. Yahoo! Mail virus scanning helps detect nasty viruses! -------------- next part -------------- An HTML attachment was scrubbed... URL: From tealorama at GMAIL.COM Wed Feb 8 05:21:02 2006 From: tealorama at GMAIL.COM (=?ISO-8859-1?Q?Tero_Al=E9n?=) Date: Wed, 8 Feb 2006 15:21:02 +0200 Subject: ovf layer (mysql) won't show Message-ID: Hi, I have problems to showing ovf layer on MapServer 4.8.1. Layer contains linestring-geometry from MySQL 5.0.18. MapServer doesn't print any errors but layer won't show. Could somebody tell me what's wrong? Here is what is in ovf-file: ODBC:opus at myodbc select id, astext(article_poly.linest) as geometry from article_poly And what I get from ogrinfo: ERROR 4: Update access not supported for VRT datasources. Had to open data source read-only. INFO: Open of `/var/www/workshop/ovf/espoo.ovf' using driver `VRT' successful. Layer name: article_poly Geometry: Unknown (any) Feature Count: 9 ERROR 1: SetAttributeFilter() not supported on ExecuteSQL() results. Extent: (34349.795000, 7989.500000) - (40567.791000, 79948.282000) Layer SRS WKT: (unknown) id: Integer (2.0) geometry: String (111.0) ERROR 1: SetAttributeFilter() not supported on ExecuteSQL() results. OGRFeature(article_poly):0 id (Integer) = 1 geometry (String) = LINESTRING(36389.217 75489.802,36580.774 75200) LINESTRING (36389.217 75489.802,36580.774 75200.000) OGRFeature(article_poly):1 id (Integer) = 2 geometry (String) = LINESTRING(34501.916 76285.895,34349.795 76149.853) LINESTRING (34501.916 76285.895,34349.795 76149.853) OGRFeature(article_poly):2 id (Integer) = 10 geometry (String) = LINESTRING(40567.791 79786.741,40566.862 79786.955, 40558.5 79809,40561 7989.5,40567.791 79822.157) LINESTRING (40567.791 79786.741,40566.862 79786.955,40558.500 79809.000, 40561.000 7989.500,40567.791 79822.157) OGRFeature(article_poly):3 id (Integer) = 4 geometry (String) = LINESTRING(40567.791 79812.987,40566.526 79813.667, 40567.791 79815.626) LINESTRING (40567.791 79812.987,40566.526 79813.667,40567.791 79815.626) OGRFeature(article_poly):4 id (Integer) = 5 geometry (String) = LINESTRING(40241.658 79840.44,40247.668 79840.383, 40247.559 79828.962,40241.551 79829.08,40241.658 79840.44) LINESTRING (40241.658 79840.440,40247.668 79840.383,40247.559 79828.962, 40241.551 79829.080,40241.658 79840.440) OGRFeature(article_poly):5 id (Integer) = 6 geometry (String) = LINESTRING(40567.791 79808.936,40567.054 79805.977, 40566.933 79802.648,40567.495 79798.888,40567.791 79798.958) LINESTRING (40567.791 79808.936,40567.054 79805.977,40566.933 79802.648, 40567.495 79798.888,40567.791 79798.958) OGRFeature(article_poly):6 id (Integer) = 7 geometry (String) = LINESTRING(40273.209 79941.596,40271.197 79945.203, 40276.716 79948.282,40280.146 79942.135,40281.583 79939.558) LINESTRING (40273.209 79941.596,40271.197 79945.203,40276.716 79948.282, 40280.146 79942.135,40281.583 79939.558) OGRFeature(article_poly):7 id (Integer) = 8 geometry (String) = LINESTRING(40227.602 79816.024,40226.05 79815.86, 40222.053 79815.437,40222.736 79808.973,40228.096 79809.54) LINESTRING (40227.602 79816.024,40226.050 79815.860,40222.053 79815.437, 40222.736 79808.973,40228.096 79809.540) OGRFeature(article_poly):8 id (Integer) = 9 geometry (String) = LINESTRING(40267.509 79884.152,40265.504 79887.333, 40267.102 79888.341,40269.108 79885.161,40267.687 79884.264) LINESTRING (40267.509 79884.152,40265.504 79887.333,40267.102 79888.341, 40269.108 79885.161,40267.687 79884.264) And layer definition from map-file: LAYER CONNECTION "ovf/espoo.ovf" CONNECTIONTYPE OGR NAME article_poly TYPE LINE STATUS DEFAULT CLASS DEBUG ON STYLE COLOR 255 0 0 END END END -- Best Regards, Tero -------------- next part -------------- An HTML attachment was scrubbed... URL: From work at XWB.COM Wed Feb 8 05:59:59 2006 From: work at XWB.COM (Chip Taylor) Date: Wed, 8 Feb 2006 05:59:59 -0800 Subject: DMS display on MouseMove In-Reply-To: <20060208132211.10572.qmail@web31706.mail.mud.yahoo.com> Message-ID: Interesting! Could you publish your Javascript for others to use? Chip Taylor _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of william paul Sent: Wednesday, February 08, 2006 5:22 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] DMS display on MouseMove Hi: I display the coordinates on mousemove over the map. The coordinates are in DD and UTM, but I would like display them also in DMS. Can someone give me an working example? I use mapserver 4.6.1 without mapscript or any other utility. My script for DD and UTM coordinates display is in javascript Thank you in advance William _____ Relax. Yahoo! Mail virus scanning helps detect nasty viruses! -------------- next part -------------- An HTML attachment was scrubbed... URL: From punkish at EIDESIS.ORG Wed Feb 8 06:06:48 2006 From: punkish at EIDESIS.ORG (Puneet Kishor) Date: Wed, 8 Feb 2006 08:06:48 -0600 Subject: DMS display on MouseMove In-Reply-To: <20060208132211.10572.qmail@web31706.mail.mud.yahoo.com> Message-ID: william paul wrote: > Hi: > > I display the coordinates on mousemove over the map. The coordinates are > in DD and UTM, but I would like display them also in DMS. > From the very first hit on Google -- (1) The Degrees are simply the numbers to the left of the decimal (using 42.36824 as an example, the degrees would be 42) (2) To determine the Minutes, multiply the number to the right of the decimal point by 60 (example: .36824 x 60 = 22.0944) (3) The Minutes are the numbers to the left of the decimal point (in this example, 22) (4) To determine the Seconds, multiply the number to the right of the decimal point by 60 (example: .0944 x 60 = 5.664) (5) The Seconds are the numbers to the left of the decimal point, rounded up (in this example, 06) Implementing it in Js is left as an exercise for the reader... From woodbri at SWOODBRIDGE.COM Wed Feb 8 06:59:31 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 8 Feb 2006 09:59:31 -0500 Subject: coordinate transformations formulas ... ? In-Reply-To: <000a01c62c9f$84d43600$7d0aa8c0@JANEKSXP> Message-ID: The ... means "and additional terms following the sequence of the prior terms". It is basically a short hand notation for a summation of n to infinity. So you if you want more terms you need to first infer the sequence from the prior terms like [2, 4, 6, ...] is a sequence and the next terms are 8, 16, 32, ... Each additional term adds some additional fractional accuracy to the computation, at some point the fractional accuracy is beyond the point that it is significant to to our uses. If you calculate just the 3rd term and see how big its value is it will give you the magnitude of the change it is impacting on the equation and the next term in the sequence will tern to be significantly smaller. -Steve W. Janeks Kamerovskis wrote: > > > Hi list, > > > > What means those ... in the formula, that is part of coordinate > transformations formulas? > > > > M = a[(1 ? e2/4 ? 3e4/64 ? 5e6/256 ?....)j ? (3e2/8 + 3e4/32 + > 45e6/1024+....)sin2j + (15e4/256 + 45e6/1024 +.....)sin4j ? (35e6/3072 + > ....)sin6j + .....] > > > > > > > > brgds > > Janeks > > > From tanguy.ricaille at TRASYS.LU Wed Feb 8 08:27:18 2006 From: tanguy.ricaille at TRASYS.LU (Ricaille Tanguy) Date: Wed, 8 Feb 2006 17:27:18 +0100 Subject: use of Jpeg2000 ? Message-ID: Hello everybody, i need to use pictures in jpeg2000 format. How can i read the content of those files, use it, and save it again under jpeg, gif, or other formats and compressions levels ? Great thanks. Tanguy. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bud at COMUNE.GROSSETO.IT Wed Feb 8 08:23:48 2006 From: bud at COMUNE.GROSSETO.IT (Bud P. Bruegger) Date: Wed, 8 Feb 2006 17:23:48 +0100 Subject: experience with DWG files? Message-ID: Hello everyone, I noted that via OGR, Mapserver should be able to work natively with AutoCAD DWG files. There was some mention on limitations in the OGR driver description. Does anyone have some experience to share to better understand what kind of problems I can expect to run into when using DWG without prior conversion? Are there any conventions for the data in the DWG file that are necessary for success? Considering that AutoDesk is involved with the Mapserver Foundation, is it reasonable to expect that DWG support will become more evolved in the future or is the impedance-missmatch between the CAD and GIS world going to cause remaining difficulties? Many thanks in advance for any input -bud ------------------------------------------------------------------------------------------------- Ing. Bud P. Bruegger, Ph.D. +39-0564-488577 (voice), -21139 (fax) Servizio Elaborazione Dati e-mail: bud at comune.grosseto.it Comune di Grosseto jabber: bud at jabber.no Via Ginori, 43 http://www.comune.grosseto.it/cie/ 58100 Grosseto (Tuscany, Italy) http://www.comune.grosseto.it/interopEID/ From warmerdam at POBOX.COM Wed Feb 8 08:54:32 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 8 Feb 2006 11:54:32 -0500 Subject: experience with DWG files? In-Reply-To: <5.2.1.1.0.20060208171856.0382a4e0@mail.comune.grosseto.it> Message-ID: On 2/8/06, Bud P. Bruegger wrote: > Hello everyone, > > I noted that via OGR, Mapserver should be able to work natively with > AutoCAD DWG files. There was some mention on limitations in the OGR driver > description. Bud, I'm afraid this is currently an out-only driver. That is you can use ogr to convert to DWG format, but not to read it. That was the client requirement and reading was quite alot of extra work. So I don't think it is much help for you. > Considering that AutoDesk is involved with the Mapserver Foundation, is it > reasonable to expect that DWG support will become more evolved in the > future or is the impedance-missmatch between the CAD and GIS world going to > cause remaining difficulties? My understanding is that the DWG support code at Autodesk is closely integrated with alot of the rest of AutoCAD and isn't likely to be open sourced due to complexity. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From Jukka.Rahkonen at MMMTIKE.FI Wed Feb 8 08:59:23 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Wed, 8 Feb 2006 18:59:23 +0200 Subject: use of Jpeg2000 ? Message-ID: Hi, If you want to convert jpeg2000 images to other formats you can use for example gdal_translate utility. Jpeg2000 images do not behave badly at all with MapServer, so if that is the final goal then it might be worth a trial to use them as they are. Regards, -Jukka Rahkonen- -----Original Message----- From: UMN MapServer Users List on behalf of Ricaille Tanguy Sent: Wed 8.2.2006 18:27 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] use of Jpeg2000 ? Hello everybody, i need to use pictures in jpeg2000 format. How can i read the content of those files, use it, and save it again under jpeg, gif, or other formats and compressions levels ? Great thanks. Tanguy. From punkish at EIDESIS.ORG Wed Feb 8 08:58:03 2006 From: punkish at EIDESIS.ORG (P Kishor) Date: Wed, 8 Feb 2006 10:58:03 -0600 Subject: DMS display on MouseMove Message-ID: william paul wrote: > Hi: > > I know this, my problem is other, but...I will solve it Please send all replies to the list as well. In the meantime, would the following help -- //(0) Grab the dd value var dd = obj.value; // (1) The Degrees are simply the numbers to the left of the decimal // (using 42.36824 as an example, the degrees would be 42) var d = Math.floor(dd); // (2) To determine the Minutes, multiply the number to the right of // the decimal point by 60 (example: .36824 x 60 = 22.0944) // (3) The Minutes are the numbers to the left of the decimal point // (in this example, 22) var m = Math.floor((dd - d) * 60); // (4) To determine the Seconds, multiply the number to the right of // the decimal point by 60 (example: .0944 x 60 = 5.664) // (5) The Seconds are the numbers to the left of the decimal point, // rounded up (in this example, 06) var s = Math.ceil((((dd - d) * 60) - m) * 60); // display it var dms = d + ' deg, ' + m + ' min, ' + s + ' sec'; > > */Puneet Kishor /* wrote: > > william paul wrote: > > Hi: > > > > I display the coordinates on mousemove over the map. The > coordinates are > > in DD and UTM, but I would like display them also in DMS. > > > > From the very first hit on Google -- > > (1) The Degrees are simply the numbers to the left of the decimal > (using 42.36824 as an example, the degrees would be 42) > (2) To determine the Minutes, multiply the number to the right of > the decimal point by 60 (example: .36824 x 60 = 22.0944) > (3) The Minutes are the numbers to the left of the decimal point > (in this example, 22) > (4) To determine the Seconds, multiply the number to the right of > the decimal point by 60 (example: .0944 x 60 = 5.664) > (5) The Seconds are the numbers to the left of the decimal point, > rounded up (in this example, 06) > > Implementing it in Js is left as an exercise for the reader... > > -- Puneet Kishor From n.j.saunders at GMAIL.COM Wed Feb 8 09:29:41 2006 From: n.j.saunders at GMAIL.COM (Neil Saunders) Date: Wed, 8 Feb 2006 17:29:41 +0000 Subject: Projection Issues In-Reply-To: <931f8ea90602071429o59e03ce8odffb958e92a96bb0@mail.gmail.com> Message-ID: Hi Frank - Thanks very much for your continued help. I'm still only a the learning stage, and so am just having a play trying to get a working system going. For testing purposes, the shapefile file I'm using is here: http://www.cdc.gov/epiinfo/shape/Cntry00.zip What I'd like to do is load this shape file in to a PostGIS database, then have mapserver render it projected as mercator (WGS84?), overlayed with points I've got in another table (specified as Lat/Long). As you can probably tell, most of my lack of understanding revolves around projections - Are there any good resources you could point me towards regarding this? Kind Regards, Neil. On 2/7/06, Frank Warmerdam wrote: > On 2/7/06, Neil Saunders wrote: > > Hi All! > > > > Frank; Thanks for that tip, now I'm setting the projection on the layer and > > mapserver is doing my translation into merc which is great. However, the > > units its projecting it into are meters. If I set, as I have, the units > > in the layer projection to be m and the units of the map to be dd then i > > get a "[MapServer Error]: msProcessProjection(): unknown unit conversion > > id" error. > > Neil, > > If your map is going to be in mercator you are going to > have to specify your extents in some linear measure (like > meters), not in lat/long. > > > So I tried to convert my data into a new shapefile so i could re-import > > it, using the following command: > > ogr2ogr -s_srs "+proj=latlong" -t_srs "+proj > > =merc +ellps=WGS84" e:\upload\worldmerc.shp e:\upload\cntry.shp > > ERROR 1: Failed to find required field in datum.csv in > > InitDatumMappingTable(), > > using default table setup. > > Failed to transform feature 180. > > ERROR 1: Terminating translation prematurely after failed > > translation of layer cntry00 > > I'm not exactly sure why you get this error. But you really > should be specific about datum. > > eg. > ogr2ogr -s_srs "+proj=latlong +datum=WGS84" -t_srs "+proj=merc > +datum=WGS84" e:\upload\worldmerc.shp e:\upload\cntry.shp > > I would add it really frightens me when you leave > so many mercator parameters defaulted. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > From mike.merrett at WHITEHORSE.CA Wed Feb 8 09:17:46 2006 From: mike.merrett at WHITEHORSE.CA (Merrett, Mike) Date: Wed, 8 Feb 2006 09:17:46 -0800 Subject: Symbol sizing change in behaviourfrom 4.6 to 4.8 Message-ID: I have upgraded to 4.8.1 (php) and still have the same issue (larger images not being scaled down by parameters in map file) -----Original Message----- From: Steve Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Monday, February 06, 2006 12:44 PM To: MAPSERVER-USERS at LISTS.UMN.EDU; Merrett, Mike Subject: Re: [UMN_MAPSERVER-USERS] Symbol sizing change in behaviourfrom 4.6 to 4.8 Mike: I'll have to do some testing. Image scaling should still work. You should try 4.8.1 though since there were a lot of symbol code changes in the early betas that could be causing the problem. Steve >>> "Merrett, Mike" 02/06/06 12:30 PM >>> Hi: I use some gif files as symbols on a map ( e.g.. wildlife spotting at a point shows a moose) --- since upgrading to 4.8beta1 (php map script) shrinking of the images does not occur. Has this happened to anyone else -- or am I using a broken feature which was fixed. MAP FILE: IMAGETYPE png ....... layer debug off name "Wildlife Sightings" group "Wildlife Sightings" connection "WILDLIFE\Wildlife Sightings\Wildlife_Sightings_Working_Copy.TAB" connectiontype OGR metadata description "Wildlife Sightings" RESULT_FIELDS "Species Comments Date Time" end status off type point TOLERANCE 80 TOLERANCEUNITS meters classitem Species class expression 'Moose' name "Wildlife Sightings - moose" template "x.html" color 255 128 255 symbol 'moose' size 15 end ..... end SYMBOLS.SYM file: symbol name 'moose' type pixmap image 'moose.gif' transparent 0 end Mike Merrett From warmerdam at POBOX.COM Wed Feb 8 09:44:06 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 8 Feb 2006 12:44:06 -0500 Subject: Projection Issues In-Reply-To: Message-ID: On 2/8/06, Neil Saunders wrote: > Hi Frank - Thanks very much for your continued help. I'm still only a > the learning stage, and so am just having a play trying to get a > working system going. > > For testing purposes, the shapefile file I'm using is here: > http://www.cdc.gov/epiinfo/shape/Cntry00.zip > > What I'd like to do is load this shape file in to a PostGIS database, > then have mapserver render it projected as mercator (WGS84?), > overlayed with points I've got in another table (specified as > Lat/Long). As you can probably tell, most of my lack of understanding > revolves around projections - Are there any good resources you could > point me towards regarding this? Neil, I think the main gap is that you need to express your EXTENT in meters, which you can manually reproject from lat/long using something like cs2cs (from PROJ.4). There are some good general references about projections at the bottom of: http://proj.maptools.org/ Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From hartpence_gis at CO.JASPER.IA.US Wed Feb 8 10:58:15 2006 From: hartpence_gis at CO.JASPER.IA.US (Lawrence Hartpence) Date: Wed, 8 Feb 2006 12:58:15 -0600 Subject: Select, Zoom Multiple Items Message-ID: Hello. I am working with Mapserver 4.6 on a windows 200 server machine running IIS. I want to create a form where a user will input 3 different values for 3 different items on the feature attribute table of a layer. I want to build a query from this input, pass this to Mapserver, have polygons selected, then zoom to those selected features. I don't know mapscript so I would like to do this with CGI if possible. Could someone give me some hints on how to do this? Thanks!! Lawrence Hartpence GIS Coordinator 101 1st St N Newton IA 50208 641-792-3084 hartpence_gis at co.jasper.ia.us From s_jubeh at YAHOO.COM Wed Feb 8 11:55:35 2006 From: s_jubeh at YAHOO.COM (salah jubeh) Date: Wed, 8 Feb 2006 11:55:35 -0800 Subject: Force mapserver Message-ID: Hi I am using mapserver , i am facing a problem in updating the view . i have edit cabapility , when i add apoint and refresh the mapserver i get the same view as the old one . i have cheacked my data base a new point inserted in my database, i can view this point after refreshing my page maybe three or 4 times. why is this delay , iam using also postgres + postgis as adata store Best Regard Eng. Salah Al Jubeh MCP,MCAD,MCSD Mobile:00306947192421 --------------------------------- Brings words and photos together (easily) with PhotoMail - it's free and works with Yahoo! Mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cjohnson at REFRACTIONS.NET Wed Feb 8 14:22:03 2006 From: cjohnson at REFRACTIONS.NET (Clint Johnson) Date: Wed, 8 Feb 2006 14:22:03 -0800 Subject: Force mapserver In-Reply-To: <20060208195535.56901.qmail@web52715.mail.yahoo.com> Message-ID: Sounds like an Internet Explorer + cache issue. You will need to force a refresh by holding down the CTRL button while refreshing. Clint salah jubeh wrote: > Hi > > I am using mapserver , i am facing a problem in updating the view . i > have edit cabapility , when i add apoint and refresh the mapserver i > get the same view as the old one . > > i have cheacked my data base a new point inserted in my database, i > can view this point after refreshing my page maybe three or 4 times. > > why is this delay , iam using also postgres + postgis as adata store > > > > > > > ------------------------------------------------------------------------ > Brings words and photos together (easily) with > PhotoMail > > - it's free and works with Yahoo! Mail. -- Clint Johnson Refractions Research Inc. Cjohnson at refractions.net From tadamcz at AE.KATOWICE.PL Wed Feb 8 14:43:28 2006 From: tadamcz at AE.KATOWICE.PL (Tomasz Adamczewski) Date: Wed, 8 Feb 2006 23:43:28 +0100 Subject: Force mapserver In-Reply-To: <20060208195535.56901.qmail@web52715.mail.yahoo.com> Message-ID: Dear friend, Try to change settings in your browser (IE->Tools->Internet options->Temporary internet files->settings->Check for newest version of stored pages->_every visit to the page_). I don't know how does it look like in other browsers. regards, Tomash salah jubeh napisa?(a): > Hi > I am using mapserver , i am facing a problem in updating the view . i > have edit cabapility , when i add apoint and refresh the mapserver i > get the same view as the old one . > i have cheacked my data base a new point inserted in my database, i > can view this point after refreshing my page maybe three or 4 times. > why is this delay , iam using also postgres + postgis as adata store > > > > > *Best Regard > * > Eng. Salah Al Jubeh > > MCP,MCAD,MCSD > > > > Mobile:00306947192421 > > ------------------------------------------------------------------------ > Brings words and photos together (easily) with > PhotoMail > > - it's free and works with Yahoo! Mail. From listario at GMAIL.COM Wed Feb 8 16:28:05 2006 From: listario at GMAIL.COM (J. Parapar) Date: Thu, 9 Feb 2006 01:28:05 +0100 Subject: Select, Zoom Multiple Items In-Reply-To: <000001c62ce1$a0140c50$510a000a@jasper1.com> Message-ID: Hi Lawrence You can use the ITEMNQUERY mode. You have to set the parameters QLAYER, QITEM and QSTRING. This can be a bit tricky. Take a look at http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MapServerExpressions. The sintaxis may change depending on the data source. To center the map try setting the MAPXY parameter to shape. In the QueryMap section of the mapfile you can set how the features are highlighted. Best regards, Jorge 2006/2/8, Lawrence Hartpence : > Hello. > > I am working with Mapserver 4.6 on a windows 200 server machine running IIS. > > I want to create a form where a user will input 3 different values for 3 > different items on the feature attribute table of a layer. I want to build > a query from this input, pass this to Mapserver, have polygons selected, > then zoom to those selected features. I don't know mapscript so I would > like to do this with CGI if possible. Could someone give me some hints on > how to do this? > > Thanks!! > > Lawrence Hartpence > GIS Coordinator > 101 1st St N > Newton IA 50208 > 641-792-3084 > hartpence_gis at co.jasper.ia.us > From cjohnson at REFRACTIONS.NET Wed Feb 8 17:19:14 2006 From: cjohnson at REFRACTIONS.NET (Clint Johnson) Date: Wed, 8 Feb 2006 17:19:14 -0800 Subject: Projection Issues In-Reply-To: Message-ID: Hi, Near the bottom of this site is a book called "Understanding Map Projections". It will explain just what projections are and why they are used. Once you understand that you can proceed to semantically use projections correctly. http://fisher.lib.virginia.edu/reference/help/esri/esri_pdfs_9.html Make sure you read chapter 1 which discusses Geographic Coordinate Systems (GCS aka datum) as you will need to understand how they operate in order to understand the purpose of a projection. Clint -- Clint Johnson Refractions Research Inc. Cjohnson at refractions.net Neil Saunders wrote: > Hi Frank - Thanks very much for your continued help. I'm still only a > the learning stage, and so am just having a play trying to get a > working system going. > > For testing purposes, the shapefile file I'm using is here: > http://www.cdc.gov/epiinfo/shape/Cntry00.zip > > What I'd like to do is load this shape file in to a PostGIS database, > then have mapserver render it projected as mercator (WGS84?), > overlayed with points I've got in another table (specified as > Lat/Long). As you can probably tell, most of my lack of understanding > revolves around projections - Are there any good resources you could > point me towards regarding this? > > Kind Regards, > > Neil. > > On 2/7/06, Frank Warmerdam wrote: > >> On 2/7/06, Neil Saunders wrote: >> >>> Hi All! >>> >>> Frank; Thanks for that tip, now I'm setting the projection on the layer and >>> mapserver is doing my translation into merc which is great. However, the >>> units its projecting it into are meters. If I set, as I have, the units >>> in the layer projection to be m and the units of the map to be dd then i >>> get a "[MapServer Error]: msProcessProjection(): unknown unit conversion >>> id" error. >>> >> Neil, >> >> If your map is going to be in mercator you are going to >> have to specify your extents in some linear measure (like >> meters), not in lat/long. >> >> >>> So I tried to convert my data into a new shapefile so i could re-import >>> it, using the following command: >>> ogr2ogr -s_srs "+proj=latlong" -t_srs "+proj >>> =merc +ellps=WGS84" e:\upload\worldmerc.shp e:\upload\cntry.shp >>> ERROR 1: Failed to find required field in datum.csv in >>> InitDatumMappingTable(), >>> using default table setup. >>> Failed to transform feature 180. >>> ERROR 1: Terminating translation prematurely after failed >>> translation of layer cntry00 >>> >> I'm not exactly sure why you get this error. But you really >> should be specific about datum. >> >> eg. >> ogr2ogr -s_srs "+proj=latlong +datum=WGS84" -t_srs "+proj=merc >> +datum=WGS84" e:\upload\worldmerc.shp e:\upload\cntry.shp >> >> I would add it really frightens me when you leave >> so many mercator parameters defaulted. >> >> Best regards, >> -- >> ---------------------------------------+-------------------------------------- >> I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com >> light and sound - activate the windows | http://pobox.com/~warmerdam >> and watch the world go round - Rush | Geospatial Programmer for Rent >> >> From Ruth.Matthews at UK.IBM.COM Wed Feb 8 23:33:48 2006 From: Ruth.Matthews at UK.IBM.COM (Ruth Matthews) Date: Thu, 9 Feb 2006 07:33:48 +0000 Subject: Ruth Matthews is not in the office Message-ID: I will be out of the office starting 09/02/2006 and will not return until 10/02/2006. I will respond to your message when I return. For urgent matters I can be contacted on 07725 070269. Alternatively please contact Karl Marfitt (kmarfitt at uk.ibm.com) on 0113 2303910 or Sharon Evans (sharon.evans at uk.ibm.com) on 0113 2303730. From n.j.saunders at GMAIL.COM Thu Feb 9 01:51:29 2006 From: n.j.saunders at GMAIL.COM (Neil Saunders) Date: Thu, 9 Feb 2006 09:51:29 +0000 Subject: Projection Issues In-Reply-To: <43EA9892.8050505@refractions.net> Message-ID: Frank/Clint - Thanks for the pointers - Should keep me busy for a while! On 2/9/06, Clint Johnson wrote: > Hi, > Near the bottom of this site is a book called "Understanding Map > Projections". It will explain just what projections are and why they > are used. Once you understand that you can proceed to semantically use > projections correctly. > > http://fisher.lib.virginia.edu/reference/help/esri/esri_pdfs_9.html > > Make sure you read chapter 1 which discusses Geographic Coordinate > Systems (GCS aka datum) as you will need to understand how they operate > in order to understand the purpose of a projection. > > > > Clint > > -- > Clint Johnson > Refractions Research Inc. > Cjohnson at refractions.net > > > Neil Saunders wrote: > > Hi Frank - Thanks very much for your continued help. I'm still only a > > the learning stage, and so am just having a play trying to get a > > working system going. > > > > For testing purposes, the shapefile file I'm using is here: > > http://www.cdc.gov/epiinfo/shape/Cntry00.zip > > > > What I'd like to do is load this shape file in to a PostGIS database, > > then have mapserver render it projected as mercator (WGS84?), > > overlayed with points I've got in another table (specified as > > Lat/Long). As you can probably tell, most of my lack of understanding > > revolves around projections - Are there any good resources you could > > point me towards regarding this? > > > > Kind Regards, > > > > Neil. > > > > On 2/7/06, Frank Warmerdam wrote: > > > >> On 2/7/06, Neil Saunders wrote: > >> > >>> Hi All! > >>> > >>> Frank; Thanks for that tip, now I'm setting the projection on the layer and > >>> mapserver is doing my translation into merc which is great. However, the > >>> units its projecting it into are meters. If I set, as I have, the units > >>> in the layer projection to be m and the units of the map to be dd then i > >>> get a "[MapServer Error]: msProcessProjection(): unknown unit conversion > >>> id" error. > >>> > >> Neil, > >> > >> If your map is going to be in mercator you are going to > >> have to specify your extents in some linear measure (like > >> meters), not in lat/long. > >> > >> > >>> So I tried to convert my data into a new shapefile so i could re-import > >>> it, using the following command: > >>> ogr2ogr -s_srs "+proj=latlong" -t_srs "+proj > >>> =merc +ellps=WGS84" e:\upload\worldmerc.shp e:\upload\cntry.shp > >>> ERROR 1: Failed to find required field in datum.csv in > >>> InitDatumMappingTable(), > >>> using default table setup. > >>> Failed to transform feature 180. > >>> ERROR 1: Terminating translation prematurely after failed > >>> translation of layer cntry00 > >>> > >> I'm not exactly sure why you get this error. But you really > >> should be specific about datum. > >> > >> eg. > >> ogr2ogr -s_srs "+proj=latlong +datum=WGS84" -t_srs "+proj=merc > >> +datum=WGS84" e:\upload\worldmerc.shp e:\upload\cntry.shp > >> > >> I would add it really frightens me when you leave > >> so many mercator parameters defaulted. > >> > >> Best regards, > >> -- > >> ---------------------------------------+-------------------------------------- > >> I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > >> light and sound - activate the windows | http://pobox.com/~warmerdam > >> and watch the world go round - Rush | Geospatial Programmer for Rent > >> > >> > > > From fabio.dovidio at PLANETEK.IT Thu Feb 9 03:38:36 2006 From: fabio.dovidio at PLANETEK.IT (Fabio D' Ovidio) Date: Thu, 9 Feb 2006 12:38:36 +0100 Subject: QUERY_STRING Message-ID: Dear list, how can i pass to mapserver via command line (MS DOS) the QUERY_STRING for version 4.6.2 ? I have done like this : C:\Inetpub\wwwroot\cgi-bin>mapserv.exe "QUERY_STRING=localhost/mapserv.exe?mode= map&map=c:\inetpub\wwwroot\applicazioni\applicazioni_file\comuni.map" but this works fine only for 4.4.1 version? WHY ? Thank u much. Fabio -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt0177 at GMAIL.COM Thu Feb 9 05:07:17 2006 From: matt0177 at GMAIL.COM (Matthew Edmondson) Date: Thu, 9 Feb 2006 06:07:17 -0700 Subject: POSTGIS Gui Message-ID: I'm getting ready to use a POSTGIS DB for the first time, and after being with tools such as the MySQL Administrator, and phpmyadmin, I'd love to find something similar to work with postgis. Does anyone know of a good gui to use? Matt From ben at SYNCERA.NL Thu Feb 9 05:10:07 2006 From: ben at SYNCERA.NL (Bart van den Eijnden) Date: Thu, 9 Feb 2006 14:10:07 +0100 Subject: POSTGIS Gui Message-ID: The tool for PostgreSQL is called PgAdmin. Bart Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT tel.nr.: 015-7512436 email: BEN at Syncera-ITSolutions.nl >>> Matthew Edmondson 9-2-2006 14:07 >>> I'm getting ready to use a POSTGIS DB for the first time, and after being with tools such as the MySQL Administrator, and phpmyadmin, I'd love to find something similar to work with postgis. Does anyone know of a good gui to use? Matt - == Let op: wijziging! Vanaf 1 februari 2006 eindigen al onze mailadressen op @Syncera.NL. We verzoeken u vriendelijk om dit aan te passen in uw relatiebeheersysteem. Tot 1 april 2006 wordt uw mail nog naar onze medewerkers doorgestuurd. Na die tijd komen de oude mailadressen geheel te vervallen. From matt0177 at GMAIL.COM Thu Feb 9 05:25:11 2006 From: matt0177 at GMAIL.COM (Matthew Edmondson) Date: Thu, 9 Feb 2006 06:25:11 -0700 Subject: POSTGIS Gui In-Reply-To: Message-ID: Thanks for the quick replies! Matt On 2/9/06, Bart van den Eijnden wrote: > The tool for PostgreSQL is called PgAdmin. > > Bart > > Bart van den Eijnden > Syncera IT Solutions > Postbus 270 > 2600 AG DELFT > > tel.nr.: 015-7512436 > email: BEN at Syncera-ITSolutions.nl > > >>> Matthew Edmondson 9-2-2006 14:07 >>> > I'm getting ready to use a POSTGIS DB for the first time, and after > being with tools such as the MySQL Administrator, and phpmyadmin, I'd > love to find something similar to work with postgis. Does anyone know > of a good gui to use? > > Matt > > > - > == > Let op: wijziging! Vanaf 1 februari 2006 eindigen al onze mailadressen op @Syncera.NL. We verzoeken u vriendelijk om dit aan te passen in uw relatiebeheersysteem. Tot 1 april 2006 wordt uw mail nog naar onze medewerkers doorgestuurd. Na die tijd komen de oude mailadressen geheel te vervallen. > From umberto.nicoletti at GMAIL.COM Thu Feb 9 05:34:57 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 9 Feb 2006 14:34:57 +0100 Subject: POSTGIS Gui In-Reply-To: <8e2cbd660602090507p1586256fs114c8342cf476f98@mail.gmail.com> Message-ID: phpPgAdmin is a php web interface to postgres like phpmyadmin. It is on sf. Regards, Umberto On 2/9/06, Matthew Edmondson wrote: > I'm getting ready to use a POSTGIS DB for the first time, and after > being with tools such as the MySQL Administrator, and phpmyadmin, I'd > love to find something similar to work with postgis. Does anyone know > of a good gui to use? > > Matt > From williampaul28 at YAHOO.COM Thu Feb 9 05:57:25 2006 From: williampaul28 at YAHOO.COM (william paul) Date: Thu, 9 Feb 2006 05:57:25 -0800 Subject: DMS display on MouseMove Message-ID: I replay to the email, I didn't thing that the list will not receive the email!!! My problem isn't how you transform from DD to DMS. I already know this. I want to make the transformation in such manner that the DMS are displayed ON MOUSEMOVE over the map, which means that the coordinates are changing with position of the cursor on the map I did that for DD using a script found on the list, but I can't make it work for DMS My code looks like: var x2 = event.offsetX; // mouse coordinates in pixels var y2 = event.offsetY; // mouse coordinates in pixels var res_dd = ([maxlon] - [minlon]) / [mapwidth]; // resolution in DD var x_dd = [minlon]; var y_dd = [minlat]; x1_dd = Math.round(((x2*res_dd) + x_dd)*1000000)/1000000; //coordinates in DD to be displayed on mousemove y1_dd = Math.round(((([mapheight] - y2)*res_dd) + y_dd)*1000000)/1000000; //coordinates in DD to be displayed on mousemove window.status="Latitude DD: " + y1_dd + " " + "Longitude DD: " + y1_dd; I tried for DMS: //for longitude in DMS var dd = Math.floor(x1_dd); var m = Math.floor((x1_dd - dd) * 60); var s = Math.ceil((((x1_dd - dd) * 60) - m) *60); I also have tried to break the resolution in DMS, but I don't know how to multiply the resolution with the coordinates in pixel and then add to minlon I hope I was clear and thank you for the replay William william paul wrote: > Hi: > > I know this, my problem is other, but...I will solve it Please send all replies to the list as well. In the meantime, would the following help -- //(0) Grab the dd value var dd = obj.value; // (1) The Degrees are simply the numbers to the left of the decimal // (using 42.36824 as an example, the degrees would be 42) var d = Math.floor(dd); // (2) To determine the Minutes, multiply the number to the right of // the decimal point by 60 (example: .36824 x 60 = 22.0944) // (3) The Minutes are the numbers to the left of the decimal point // (in this example, 22) var m = Math.floor((dd - d) * 60); // (4) To determine the Seconds, multiply the number to the right of // the decimal point by 60 (example: .0944 x 60 = 5.664) // (5) The Seconds are the numbers to the left of the decimal point, // rounded up (in this example, 06) var s = Math.ceil((((dd - d) * 60) - m) * 60); // display it var dms = d + ' deg, ' + m + ' min, ' + s + ' sec'; > > */Puneet Kishor /* wrote: > > william paul wrote: > > Hi: > > > > I display the coordinates on mousemove over the map. The > coordinates are > > in DD and UTM, but I would like display them also in DMS. > > > > From the very first hit on Google -- > > (1) The Degrees are simply the numbers to the left of the decimal > (using 42.36824 as an example, the degrees would be 42) > (2) To determine the Minutes, multiply the number to the right of > the decimal point by 60 (example: .36824 x 60 = 22.0944) > (3) The Minutes are the numbers to the left of the decimal point > (in this example, 22) > (4) To determine the Seconds, multiply the number to the right of > the decimal point by 60 (example: .0944 x 60 = 5.664) > (5) The Seconds are the numbers to the left of the decimal point, > rounded up (in this example, 06) > > Implementing it in Js is left as an exercise for the reader... > > -- Puneet Kishor __________________________________________________ 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: From punkish at EIDESIS.ORG Thu Feb 9 06:19:10 2006 From: punkish at EIDESIS.ORG (Puneet Kishor) Date: Thu, 9 Feb 2006 08:19:10 -0600 Subject: DMS display on MouseMove In-Reply-To: <20060209135725.11407.qmail@web31703.mail.mud.yahoo.com> Message-ID: On Feb 9, 2006, at 7:57 AM, william paul wrote: > I replay to the email, I didn't thing that the list will not receive > the email!!! > ? > My problem isn't how you transform from DD to DMS. I already know this. > ? > I want to make the transformation in such manner that the DMS are > displayed ON MOUSEMOVE over the map, which means that the coordinates > are changing with position of the cursor on the map > ? > I did that for DD using a script found on the list, but I can't make > it work for DMS > ? > My code looks like: > ? > var x2 = event.offsetX; // mouse coordinates in pixels > var y2 = event.offsetY; // mouse coordinates in pixels > var res_dd = ([maxlon] - [minlon]) / [mapwidth]; // resolution in DD > var x_dd = [minlon]; > var y_dd = [minlat]; > x1_dd = Math.round(((x2*res_dd) + x_dd)*1000000)/1000000; > //coordinates in DD to be displayed on mousemove > y1_dd = Math.round(((([mapheight] - y2)*res_dd) + > y_dd)*1000000)/1000000; //coordinates in DD to be displayed on > mousemove > > window.status="Latitude DD: " + y1_dd + " " + "Longitude DD: " + y1_dd; > ? > I tried for DMS: > ? > //for longitude in DMS > > var dd = Math.floor(x1_dd); > var m = Math.floor((x1_dd - dd) * 60); > var s = Math.ceil((((x1_dd - dd) * 60) - m) *60); > ? > I also have tried to break the resolution in DMS, but I don't know how > to multiply the resolution with the coordinates in pixel and then add > to minlon I am not sure what the problem is. Do for DMS exactly the way you are doing for DD. There is nothing conceptually different between DD and DMS. They express the same thing in different ways -- it is like saying 1 lb of tomatoes versus 454 gms of tomatoes. Figure out your min, max in DMS, and add them to your current mouse coordinates. That said, look at Clint Johnson's email from yesterday. He recommends reading about projections at http://fisher.lib.virginia.edu/reference/help/esri/esri_pdfs_9.html, and that should be the first thing that all MapServer users should read before setting out making mapping websites. Ed McNierny also has elaborated on this several times (in fact, I have been thinking of taking all of Ed's emails and compiling them into a "must read"... note to Ed -- if you save your MapServer-list emails, forward them to me and I will do the rest). Remember, that the pixel space is a rectangle, in that, opposite sides are equal, while Lat/Long space is more like a trapezoid, in that, the horizontal opposite sides are not equal, and in fact, at the poles, it becomes a triangle. If you really want to be exact with your coordinate display, project your map into a rectangular coordinate system and then you will get what you want. > ? > william paul wrote: > > Hi: > > > > I know this, my problem is other, but...I will solve it > > Please send all replies to the list as well. In the meantime, would > the following help -- > > //(0) Grab the dd value > var dd = obj.value; > > // (1) The Degrees are simply the numbers to the left of the decimal > // (using 42.36824 as an example, the degrees would be 42) > var d = Math.floor(dd); > > // (2) To determine the Minutes, multiply the number to the right of > // the decimal point by 60 (example: .36824 x 60 = 22.0944) > // (3) The Minutes are the numbers to the left of the decimal point > // (in this example, 22) > var m = Math.floor((dd - d) * 60); > > // (4) To determine the Seconds, multiply the number to the right of > // the decimal point by 60 (example: .0944 x 60 = 5.664) > // (5) The Seconds are the numbers to the left of the decimal point, > // rounded up (in this example, 06) > var s = Math.ceil((((dd - d) * 60) - m) * 60); > > // display it > var dms = d + ' deg, ' + m + ' min, ' + s + ' sec'; > > > > > */Puneet Kishor /* wrote: > > > >???? william paul wrote: > >????? > Hi: > >????? > > >????? > I display the coordinates on mousemove over the map. The > >???? coordinates are > >????? > in DD and UTM, but I would like display them also in DMS. > >????? > > > > >????? From the very first hit on Google -- > > > >???? (1) The Degrees are simply the numbers to the left of the decimal > >???? (using 42.36824 as an example, the degrees would be 42) > >???? (2) To determine the Minutes, multiply the number to the right > of > >???? the decimal point by 60 (example: .36824 x 60 = 22.0944) > >???? (3) The Minutes are the numbers to the left of the decimal point > >???? (in this example, 22) > >???? (4) To determine the Seconds, multiply the number to the right of > >???? the decimal point by 60 (example: .0944 x 60 = 5.664) > >???? (5) The Seconds are the numbers to the left of the decimal point, > >???? rounded up (in this example, 06) > > > >???? Implementing it in Js is left as an exercise for the reader... > > > > > > > -- > Puneet Kishor > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com -- Puneet Kishor From lists at NABBLE.COM Thu Feb 9 06:35:47 2006 From: lists at NABBLE.COM (mvexel (sent by Nabble.com)) Date: Thu, 9 Feb 2006 06:35:47 -0800 Subject: Coordinate Systems used in the Netherlands? In-Reply-To: <43E9CBC7.8070904@speerit.nl> Message-ID: Jelmer, I use NavStreets in a MapServer context on a regular basis in combination with Dutch topographic data given in RD coords. I use PROJECTION "init=epsg:28992" END in the mapfile root and PROJECTION "init=epsg:4326" END for the Navteq layers. The map is then called using RD (Dutch National System) coordinates. HTH, Martijn -- View this message in context: http://www.nabble.com/Coordinate-Systems-used-in-the-Netherlands--t1082015.html#a2851131 Sent from the Mapserver - User forum at Nabble.com. From sage at MARINE.RUTGERS.EDU Thu Feb 9 06:37:39 2006 From: sage at MARINE.RUTGERS.EDU (Sage Lichtenwalner) Date: Thu, 9 Feb 2006 09:37:39 -0500 Subject: Reassign a GeoTiff color In-Reply-To: Message-ID: Is there an easy way to reassign a color in a GeoTiff file, i.e. replacing "water" in a topo image with white or a color which should render as transparent? When I try to reassign a color using Class expressions, it then only renders colors which I specify as Classes. I'm sure this is something simple, I'm just neglecting the obvious. Thanks, Sage -------------------------------------------------- Sage Lichtenwalner Institute of Marine and Coastal Sciences Rutgers, The State University of New Jersey 71 Dudley Road, New Brunswick, NJ 08901 ------------------------------------------------- From williampaul28 at YAHOO.COM Thu Feb 9 06:48:24 2006 From: williampaul28 at YAHOO.COM (william paul) Date: Thu, 9 Feb 2006 06:48:24 -0800 Subject: DMS display on MouseMove In-Reply-To: <545a998151c7dc05af99405228c663c7@eidesis.org> Message-ID: Well, As i sad before: I am not having problems with theory about projections (I have some experience in cartography...and I understand what is a projection), I am having problems with CODING, here I am NEW. I just wanted to see some examples, but I will find the solution Thank you for your time Puneet Kishor wrote: On Feb 9, 2006, at 7:57 AM, william paul wrote: > I replay to the email, I didn't thing that the list will not receive > the email!!! > > My problem isn't how you transform from DD to DMS. I already know this. > > I want to make the transformation in such manner that the DMS are > displayed ON MOUSEMOVE over the map, which means that the coordinates > are changing with position of the cursor on the map > > I did that for DD using a script found on the list, but I can't make > it work for DMS > > My code looks like: > > var x2 = event.offsetX; // mouse coordinates in pixels > var y2 = event.offsetY; // mouse coordinates in pixels > var res_dd = ([maxlon] - [minlon]) / [mapwidth]; // resolution in DD > var x_dd = [minlon]; > var y_dd = [minlat]; > x1_dd = Math.round(((x2*res_dd) + x_dd)*1000000)/1000000; > //coordinates in DD to be displayed on mousemove > y1_dd = Math.round(((([mapheight] - y2)*res_dd) + > y_dd)*1000000)/1000000; //coordinates in DD to be displayed on > mousemove > > window.status="Latitude DD: " + y1_dd + " " + "Longitude DD: " + y1_dd; > > I tried for DMS: > > //for longitude in DMS > > var dd = Math.floor(x1_dd); > var m = Math.floor((x1_dd - dd) * 60); > var s = Math.ceil((((x1_dd - dd) * 60) - m) *60); > > I also have tried to break the resolution in DMS, but I don't know how > to multiply the resolution with the coordinates in pixel and then add > to minlon I am not sure what the problem is. Do for DMS exactly the way you are doing for DD. There is nothing conceptually different between DD and DMS. They express the same thing in different ways -- it is like saying 1 lb of tomatoes versus 454 gms of tomatoes. Figure out your min, max in DMS, and add them to your current mouse coordinates. That said, look at Clint Johnson's email from yesterday. He recommends reading about projections at http://fisher.lib.virginia.edu/reference/help/esri/esri_pdfs_9.html, and that should be the first thing that all MapServer users should read before setting out making mapping websites. Ed McNierny also has elaborated on this several times (in fact, I have been thinking of taking all of Ed's emails and compiling them into a "must read"... note to Ed -- if you save your MapServer-list emails, forward them to me and I will do the rest). Remember, that the pixel space is a rectangle, in that, opposite sides are equal, while Lat/Long space is more like a trapezoid, in that, the horizontal opposite sides are not equal, and in fact, at the poles, it becomes a triangle. If you really want to be exact with your coordinate display, project your map into a rectangular coordinate system and then you will get what you want. > > william paul wrote: > > Hi: > > > > I know this, my problem is other, but...I will solve it > > Please send all replies to the list as well. In the meantime, would > the following help -- > > //(0) Grab the dd value > var dd = obj.value; > > // (1) The Degrees are simply the numbers to the left of the decimal > // (using 42.36824 as an example, the degrees would be 42) > var d = Math.floor(dd); > > // (2) To determine the Minutes, multiply the number to the right of > // the decimal point by 60 (example: .36824 x 60 = 22.0944) > // (3) The Minutes are the numbers to the left of the decimal point > // (in this example, 22) > var m = Math.floor((dd - d) * 60); > > // (4) To determine the Seconds, multiply the number to the right of > // the decimal point by 60 (example: .0944 x 60 = 5.664) > // (5) The Seconds are the numbers to the left of the decimal point, > // rounded up (in this example, 06) > var s = Math.ceil((((dd - d) * 60) - m) * 60); > > // display it > var dms = d + ' deg, ' + m + ' min, ' + s + ' sec'; > > > > > */Puneet Kishor /* wrote: > > > > william paul wrote: > > > Hi: > > > > > > I display the coordinates on mousemove over the map. The > > coordinates are > > > in DD and UTM, but I would like display them also in DMS. > > > > > > > From the very first hit on Google -- > > > > (1) The Degrees are simply the numbers to the left of the decimal > > (using 42.36824 as an example, the degrees would be 42) > > (2) To determine the Minutes, multiply the number to the right > of > > the decimal point by 60 (example: .36824 x 60 = 22.0944) > > (3) The Minutes are the numbers to the left of the decimal point > > (in this example, 22) > > (4) To determine the Seconds, multiply the number to the right of > > the decimal point by 60 (example: .0944 x 60 = 5.664) > > (5) The Seconds are the numbers to the left of the decimal point, > > rounded up (in this example, 06) > > > > Implementing it in Js is left as an exercise for the reader... > > > > > > > -- > Puneet Kishor > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com -- Puneet Kishor --------------------------------- Yahoo! Mail - Helps protect you from nasty viruses. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Alexandre.Lagache at VNF.FR Thu Feb 9 06:36:04 2006 From: Alexandre.Lagache at VNF.FR (=?UTF-8?Q?=22LAGACHE_Alexandre_=2D_VNF=2FDir=2E_Infrastructure=2DEnvir?= =?UTF-8?Q?onnement=2FDiv=2E_G=C3=A9o_Carto=22?=) Date: Thu, 9 Feb 2006 15:36:04 +0100 Subject: Add polygon in shapefile Message-ID: Hello All, I'd like to dynamically add polygons to a shapefile (php mapscript 4.80b). Here is what I do : $zone_shp = ms_newShapefileObj("zone_shp", MS_SHP_POLYGON); $shape = ms_newShapeObj(MS_SHAPE_POLYGON); $ecluse_sel_a = ms_newPointObj(); $ecluse_sel_a-> setxy($mix,$miy); $ecluse_sel_b = ms_newPointObj(); $ecluse_sel_b-> setxy($mix,$may); $ecluse_sel_c = ms_newPointObj(); $ecluse_sel_c-> setxy($max,$may); $ecluse_sel_d = ms_newPointObj(); $ecluse_sel_d-> setxy($max,$miy); $line_a = ms_newLineObj(); $line_a->add($ecluse_sel_a); $line_a->add($ecluse_sel_b); $line_b = ms_newLineObj(); $line_b->add($ecluse_sel_b); $line_b->add($ecluse_sel_c); $line_c = ms_newLineObj(); $line_c->add($ecluse_sel_c); $line_c->add($ecluse_sel_d); $line_d = ms_newLineObj(); $line_d->add($ecluse_sel_d); $line_d->add($ecluse_sel_a); $shape->add($line_a); $shape->add($line_b); $shape->add($line_c); $shape->add($line_d); $zone_shp->addShape($shape); $shape->free(); $zone_shp->free(); It seems to work fine but when I look at the layer, objects are multiline instead of polygons... Any idea ??? What am I doing wrong ? Thanks ! Alexandre LAGACHE From xnzhang11 at GMAIL.COM Thu Feb 9 07:13:33 2006 From: xnzhang11 at GMAIL.COM (Xiaonan Zhang) Date: Thu, 9 Feb 2006 15:13:33 +0000 Subject: A problem with Internet Explorer Message-ID: hi guys, I got a problem here with Internet Explorer. The code I am using works fine in Firefox but not in Internet Explorer. I have a form to input comment on the page:
"); } after I input some text and press the button. All the layers which origially open were dispeared in IE. I think it is becasue IE didn't keep the orignial information of the address bar. You can see the difference blow: before the comment button pressed: http://url/emap.phtml?buildings=Y&river=Y&roads=Y&comments=Y&redraw.x=13&redraw.y=19&KEYMAPXSIZE=96&KEYMAPYSIZE=74&MapSize=800%2C600&minx=381924.000000&miny=398628.500000&maxx=382196.000000&maxy=398832.500000&imagewidth=800&imageheight=600&CMD=&INPUT_TYPE=&INPUT_COORD=&PREVIOUS_MODE=0 after the button pressed, in fireforx, http://url/emap.phtml?newComment=Please+add+your+comment%21&AddComment.x=55&AddComment.y=18&buildings=Y&river=Y&roads=Y&comments=Y&KEYMAPXSIZE=96&KEYMAPYSIZE=74&MapSize=800%2C600&minx=381924.000000&miny=398628.500000&maxx=382196.000000&maxy=398832.500000&imagewidth=800&imageheight=600&CMD=&INPUT_TYPE=&INPUT_COORD=&PREVIOUS_MODE=0 In IE, http://url/emap.phtml?newComment=Please+add+your+comment%21&AddComment.x=46&AddComment.y=12 Anyone know how to solve this? thanks. Jonathan -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Thu Feb 9 07:25:25 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 9 Feb 2006 10:25:25 -0500 Subject: POSTGIS Gui In-Reply-To: <75b4b93e0602090534j570c0d5fh6ab836db8b0a325@mail.gmail.com> Message-ID: A very nice open source Desktop GUI is pgAdmin III http://www.pgadmin.org/ -Steve W. Umberto Nicoletti wrote: > phpPgAdmin is a php web interface to postgres like phpmyadmin. It is on sf. > > Regards, > Umberto > > On 2/9/06, Matthew Edmondson wrote: > >>I'm getting ready to use a POSTGIS DB for the first time, and after >>being with tools such as the MySQL Administrator, and phpmyadmin, I'd >>love to find something similar to work with postgis. Does anyone know >>of a good gui to use? >> >>Matt >> > > From tanguy.ricaille at TRASYS.LU Thu Feb 9 07:30:04 2006 From: tanguy.ricaille at TRASYS.LU (Ricaille Tanguy) Date: Thu, 9 Feb 2006 16:30:04 +0100 Subject: use of Jpeg2000 ? Message-ID: Hi, i have jp2 files in approximately 927*927 pixels in 4 multispectral bands, coded in 16bits, and i need to provide 500*500 pixels in 3 multispectral bands, coded in 8 bits, as a quick look for this image. I try to use gdal_translate -ot Byte -of JPEG -b 1 -b 2 -b 3 test.jp2 test.jpeg, but result is completly black. I have try ather parameter and it is each time the same result. Do you have any idee? Thanks. Tanguy. ----- Original Message ----- From: "Rahkonen Jukka" To: Sent: Wednesday, February 08, 2006 5:59 PM Subject: Re: [UMN_MAPSERVER-USERS] use of Jpeg2000 ? Hi, If you want to convert jpeg2000 images to other formats you can use for example gdal_translate utility. Jpeg2000 images do not behave badly at all with MapServer, so if that is the final goal then it might be worth a trial to use them as they are. Regards, -Jukka Rahkonen- -----Original Message----- From: UMN MapServer Users List on behalf of Ricaille Tanguy Sent: Wed 8.2.2006 18:27 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] use of Jpeg2000 ? Hello everybody, i need to use pictures in jpeg2000 format. How can i read the content of those files, use it, and save it again under jpeg, gif, or other formats and compressions levels ? Great thanks. Tanguy. From Alexandre.Lagache at VNF.FR Thu Feb 9 07:48:11 2006 From: Alexandre.Lagache at VNF.FR (=?UTF-8?Q?=22LAGACHE_Alexandre_=2D_VNF=2FDir=2E_Infrastructure=2DEnvir?= =?UTF-8?Q?onnement=2FDiv=2E_G=C3=A9o_Carto=22?=) Date: Thu, 9 Feb 2006 16:48:11 +0100 Subject: A problem with Internet Explorer Message-ID: Hello, It looks like you have nested forms on your page. Try adding the tags from the other form inside your new form. Alexandre -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]De la part de Xiaonan Zhang Envoy? : jeudi 9 f?vrier 2006 16:14 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] A problem with Internet Explorer hi guys, I got a problem here with Internet Explorer. The code I am using works fine in Firefox but not in Internet Explorer. I have a form to input comment on the page:
"); } after I input some text and press the button. All the layers which origially open were dispeared in IE. I think it is becasue IE didn't keep the orignial information of the address bar. You can see the difference blow: before the comment button pressed: http://url/emap.phtml?buildings=Y&river=Y&roads=Y&comments=Y&redraw.x=13&red raw.y=19&KEYMAPXSIZE=96&KEYMAPYSIZE=74&MapSize=800%2C600&minx=381924.000000& miny=398628.500000&maxx=382196.000000&maxy=398832.500000&imagewidth=800&imag eheight=600&CMD=&INPUT_TYPE=&INPUT_COORD=&PREVIOUS_MODE=0 after the button pressed, in fireforx, http://url/emap.phtml?newComment=Please+add+your+comment%21&AddComment.x=55& AddComment.y=18&buildings=Y&river=Y&roads=Y&comments=Y&KEYMAPXSIZE=96&KEYMAP YSIZE=74&MapSize=800%2C600&minx=381924.000000&miny=398628.500000&maxx=382196 .000000&maxy=398832.500000&imagewidth=800&imageheight=600&CMD=&INPUT_TYPE=&I NPUT_COORD=&PREVIOUS_MODE=0 In IE, http://url/emap.phtml?newComment=Please+add+your+comment%21 &AddComment.x=46&AddComment.y=12 Anyone know how to solve this? thanks. Jonathan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at MMMTIKE.FI Thu Feb 9 07:49:13 2006 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 9 Feb 2006 17:49:13 +0200 Subject: use of Jpeg2000 ? Message-ID: Hi, Not most common type of image. I suggest you to download executables from www.kakadusoftware.com and start playing with kdu_expand. It is possible that you must read some old mails from user forum about high bit-depth images but not necessarely, those problems are usually in compression. If you are lucky you will get an image in .ppm or .bmp format and you can go on. -Jukka- -----Original Message----- From: Ricaille Tanguy [mailto:tanguy.ricaille at trasys.lu] Sent: Thu 9.2.2006 17:30 To: Rahkonen Jukka; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] use of Jpeg2000 ? Hi, i have jp2 files in approximately 927*927 pixels in 4 multispectral bands, coded in 16bits, and i need to provide 500*500 pixels in 3 multispectral bands, coded in 8 bits, as a quick look for this image. I try to use gdal_translate -ot Byte -of JPEG -b 1 -b 2 -b 3 test.jp2 test.jpeg, but result is completly black. I have try ather parameter and it is each time the same result. Do you have any idee? Thanks. Tanguy. ----- Original Message ----- From: "Rahkonen Jukka" To: Sent: Wednesday, February 08, 2006 5:59 PM Subject: Re: [UMN_MAPSERVER-USERS] use of Jpeg2000 ? Hi, If you want to convert jpeg2000 images to other formats you can use for example gdal_translate utility. Jpeg2000 images do not behave badly at all with MapServer, so if that is the final goal then it might be worth a trial to use them as they are. Regards, -Jukka Rahkonen- -----Original Message----- From: UMN MapServer Users List on behalf of Ricaille Tanguy Sent: Wed 8.2.2006 18:27 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] use of Jpeg2000 ? Hello everybody, i need to use pictures in jpeg2000 format. How can i read the content of those files, use it, and save it again under jpeg, gif, or other formats and compressions levels ? Great thanks. Tanguy. From hobu at IASTATE.EDU Thu Feb 9 07:59:25 2006 From: hobu at IASTATE.EDU (Howard Butler) Date: Thu, 9 Feb 2006 09:59:25 -0600 Subject: MS RFC 10: Joining the Open Source Geospatial Foundation Message-ID: This is a reminder to let you know that you should log on to the website and voice your opinion on whether or not MapServer should join the Open Source Geospatial Foundation. The poll closes at 9 AM CST (15:00 UTC). Current results are 58 yes to 1 no. Howard >The proposal to join the Open Source Geospatial Foundation was >unanimously passed by the MTSC. We welcome the community to provide >its input on the MapServer website using a poll. This poll will >close at 9 AM CST (15:00 UTC) on Friday, February 10th. > >Like the other polls, you need a login to participate, and your >response is *not* anonymous. > > > >Howard From xnzhang11 at GMAIL.COM Thu Feb 9 08:06:50 2006 From: xnzhang11 at GMAIL.COM (Xiaonan Zhang) Date: Thu, 9 Feb 2006 16:06:50 +0000 Subject: Fwd: A problem with Internet Explorer In-Reply-To: Message-ID: ---------- Forwarded message ---------- From: Xiaonan Zhang Date: 09-Feb-2006 15:13 Subject: A problem with Internet Explorer To: MAPSERVER-USERS at lists.umn.edu hi guys, I got a problem here with Internet Explorer. The code I am using works fine in Firefox but not in Internet Explorer. I have a form to input comment on the page:
"); } after I input some text and press the button. All the layers which origially open were dispeared in IE. I think it is becasue IE didn't keep the orignial information of the address bar. You can see the difference blow: before the comment button pressed: http://url/emap.phtml?buildings=Y&river=Y&roads=Y&comments=Y&redraw.x=13&redraw.y=19&KEYMAPXSIZE=96&KEYMAPYSIZE=74&MapSize=800%2C600&minx=381924.000000&miny=398628.500000&maxx=382196.000000&maxy=398832.500000&imagewidth=800&imageheight=600&CMD=&INPUT_TYPE=&INPUT_COORD=&PREVIOUS_MODE=0 after the button pressed, in fireforx, http://url/emap.phtml?newComment=Please+add+your+comment%21&AddComment.x=55&AddComment.y=18&buildings=Y&river=Y&roads=Y&comments=Y&KEYMAPXSIZE=96&KEYMAPYSIZE=74&MapSize=800%2C600&minx=381924.000000&miny=398628.500000&maxx=382196.000000&maxy=398832.500000&imagewidth=800&imageheight=600&CMD=&INPUT_TYPE=&INPUT_COORD=&PREVIOUS_MODE=0 In IE, http://url/emap.phtml?newComment=Please+add+your+comment%21&AddComment.x=46&AddComment.y=12 Anyone know how to solve this? thanks. Jonathan -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Thu Feb 9 08:13:31 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 9 Feb 2006 11:13:31 -0500 Subject: use of Jpeg2000 ? In-Reply-To: <00c801c62d8d$b3aa9f20$0401a8c0@ariane.tractebel.be> Message-ID: Ricaille Tanguy wrote: > Hi, > i have jp2 files in approximately 927*927 pixels in 4 multispectral bands, > coded in 16bits, and i need to provide 500*500 pixels in 3 multispectral > bands, coded in 8 bits, as a quick look for this image. > > I try to use gdal_translate -ot Byte -of JPEG -b 1 -b 2 -b 3 test.jp2 > test.jpeg, but result is completly black. > I have try ather parameter and it is each time the same result. Tanguy, This looks like it should work, or might give a saturated white result. If you add -scale, it should rescale for you too. eg. gdal_translate -ot Byte -scale -of JPEG -b 1 -b 2 -b 3 test.jp2 test.jpg But that does not appear to be the issue since you are getting black. Could you make your image available for me to try? Also, what GDAL build are you using? FWTools? your own? Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From burnsy at VIVIDFISH.CO.UK Thu Feb 9 08:13:08 2006 From: burnsy at VIVIDFISH.CO.UK (Carl Burn) Date: Thu, 9 Feb 2006 16:13:08 +0000 Subject: CGI problem In-Reply-To: Message-ID: Hello List, I am trying to output a map image using cgi and some search parameters but have hit a problem. I created my mapfile in mapedit and have viewed it using mapfactory so it seems to work fine from that angle, I am able to use the query tool and see data being returned from my layer. The map is made up of a single layer of rasters (using a tileindex) and a layer of polygons from a shp file. When I try to use just an image by putting the url in the src attribute of an image tag I am running into some problems. I can generate an image fine using the following: http://myserver/cgi-bin/mapserv.exe? mode=map &map=mypath\test1rasterandshape.map &layer=Rasters &layer=DataPolygons &mapxy=416049%20383493 &buffer=17500 However when I try to introduce a query using this format: http://myserver/cgi-bin/mapserv.exe? mode=itemquerymap &map=mypath\test1rasterandshape.map &layer=Rasters &layer=DataPolygons &slayer=DataPolygons &qlayer=DataPolygons &qitem=DataColumn &qstring=mystring I get a map output at smaller size than specified in my map file and it is badly pixellated. If I try to use any other mode (except for map-which simply generates a map at full extents) then my image displays as a broken link and no image is generated. Any help or pointers please?? Burnsy -------------- next part -------------- A non-text attachment was scrubbed... Name: burnsy.vcf Type: text/x-vcard Size: 277 bytes Desc: not available URL: From tanguy.ricaille at TRASYS.LU Thu Feb 9 08:14:55 2006 From: tanguy.ricaille at TRASYS.LU (Ricaille Tanguy) Date: Thu, 9 Feb 2006 17:14:55 +0100 Subject: use of Jpeg2000 ? Message-ID: Hi, yes, not common... and not easy to work with. Thanks, i'll look kakadu. Tanguy. ----- Original Message ----- From: "Rahkonen Jukka" To: Sent: Thursday, February 09, 2006 4:49 PM Subject: Re: [UMN_MAPSERVER-USERS] use of Jpeg2000 ? Hi, Not most common type of image. I suggest you to download executables from www.kakadusoftware.com and start playing with kdu_expand. It is possible that you must read some old mails from user forum about high bit-depth images but not necessarely, those problems are usually in compression. If you are lucky you will get an image in .ppm or .bmp format and you can go on. -Jukka- -----Original Message----- From: Ricaille Tanguy [mailto:tanguy.ricaille at trasys.lu] Sent: Thu 9.2.2006 17:30 To: Rahkonen Jukka; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] use of Jpeg2000 ? Hi, i have jp2 files in approximately 927*927 pixels in 4 multispectral bands, coded in 16bits, and i need to provide 500*500 pixels in 3 multispectral bands, coded in 8 bits, as a quick look for this image. I try to use gdal_translate -ot Byte -of JPEG -b 1 -b 2 -b 3 test.jp2 test.jpeg, but result is completly black. I have try ather parameter and it is each time the same result. Do you have any idee? Thanks. Tanguy. ----- Original Message ----- From: "Rahkonen Jukka" To: Sent: Wednesday, February 08, 2006 5:59 PM Subject: Re: [UMN_MAPSERVER-USERS] use of Jpeg2000 ? Hi, If you want to convert jpeg2000 images to other formats you can use for example gdal_translate utility. Jpeg2000 images do not behave badly at all with MapServer, so if that is the final goal then it might be worth a trial to use them as they are. Regards, -Jukka Rahkonen- -----Original Message----- From: UMN MapServer Users List on behalf of Ricaille Tanguy Sent: Wed 8.2.2006 18:27 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] use of Jpeg2000 ? Hello everybody, i need to use pictures in jpeg2000 format. How can i read the content of those files, use it, and save it again under jpeg, gif, or other formats and compressions levels ? Great thanks. Tanguy. From tanguy.ricaille at TRASYS.LU Thu Feb 9 08:20:29 2006 From: tanguy.ricaille at TRASYS.LU (Ricaille Tanguy) Date: Thu, 9 Feb 2006 17:20:29 +0100 Subject: use of Jpeg2000 ? Message-ID: Hi, i use the actual FWTools... Sorry, but i can't give the image. Thanks. Tanguy ----- Original Message ----- From: "Frank Warmerdam" To: "Ricaille Tanguy" Cc: Sent: Thursday, February 09, 2006 5:13 PM Subject: Re: [UMN_MAPSERVER-USERS] use of Jpeg2000 ? > Ricaille Tanguy wrote: > > Hi, > > i have jp2 files in approximately 927*927 pixels in 4 multispectral bands, > > coded in 16bits, and i need to provide 500*500 pixels in 3 multispectral > > bands, coded in 8 bits, as a quick look for this image. > > > > I try to use gdal_translate -ot Byte -of JPEG -b 1 -b 2 -b 3 test.jp2 > > test.jpeg, but result is completly black. > > I have try ather parameter and it is each time the same result. > > Tanguy, > > This looks like it should work, or might give a saturated white result. > If you add -scale, it should rescale for you too. > > eg. > gdal_translate -ot Byte -scale -of JPEG -b 1 -b 2 -b 3 test.jp2 test.jpg > > But that does not appear to be the issue since you are getting black. > Could you make your image available for me to try? Also, what GDAL > build are you using? FWTools? your own? > > Best regards, > -- > ---------------------------------------+---------------------------------- ---- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > > From punkish at EIDESIS.ORG Thu Feb 9 08:33:46 2006 From: punkish at EIDESIS.ORG (Puneet Kishor) Date: Thu, 9 Feb 2006 10:33:46 -0600 Subject: DMS display on MouseMove In-Reply-To: <20060209144824.88914.qmail@web31711.mail.mud.yahoo.com> Message-ID: william paul wrote: > Well, As i sad before: > > I am not having problems with theory about projections (I have some > experience in cartography...and I understand what is a projection), I am > having problems with CODING, here I am NEW. I just wanted to see some > examples, but I will find the solution > And, I am trying to help you with that. Let's take it again step by step: 1. for any given view, you know the dims of that map in pixels as well as in your coords, in this case, lat/long (that they are expressed in DD or DMS doesn't matter for now). 2. given the above, you can figure out how much real world distance each pixel represents by dividing the max world coords in each direction (x and y) by the respective pixel width and height. 3. since you know the current position of your mouse in pixels, you can figure out the current displacement of your mouse in real world coords relative to the 0,0 on your map image using the values from #1 and #2 above. 4. since you know the min coords of the real world that your map image covers, adding the values from #3 above to these min coords will give you the real world coords of your mouse. one caveat -- real world coords have 0,0 in the lower left corner of the view, while the image in a browser has 0,0 in the upper left corner of the view. You will have to flip the y coords accordingly. If you follow the above logic, and follow your DD code, you will understand it and everything will be clear. Once you get the above under your belt, showing lat/long in DD vs. DMS is just a matter of units. That conversion you already know. Another hint -- download the code from just about any MapServer example, and you will find the above code in there somewhere. For starters, look at Steve Lime's basic examples. They are great for learning. Good luck. > > > */Puneet Kishor /* wrote: > > > On Feb 9, 2006, at 7:57 AM, william paul wrote: > > > I replay to the email, I didn't thing that the list will not receive > > the email!!! > > > > My problem isn't how you transform from DD to DMS. I already know > this. > > > > I want to make the transformation in such manner that the DMS are > > displayed ON MOUSEMOVE over the map, which means that the > coordinates > > are changing with position of the cursor on the map > > > > I did that for DD using a script found on the list, but I can't make > > it work for DMS > > > > My code looks like: > > > > var x2 = event.offsetX; // mouse coordinates in pixels > > var y2 = event.offsetY; // mouse coordinates in pixels > > var res_dd = ([maxlon] - [minlon]) / [mapwidth]; // resolution in DD > > var x_dd = [minlon]; > > var y_dd = [minlat]; > > x1_dd = Math.round(((x2*res_dd) + x_dd)*1000000)/1000000; > > //coordinates in DD to be displayed on mousemove > > y1_dd = Math.round(((([mapheight] - y2)*res_dd) + > > y_dd)*1000000)/1000000; //coordinates in DD to be displayed on > > mousemove > > > > window.status="Latitude DD: " + y1_dd + " " + "Longitude DD: " + > y1_dd; > > > > I tried for DMS: > > > > //for longitude in DMS > > > > var dd = Math.floor(x1_dd); > > var m = Math.floor((x1_dd - dd) * 60); > > var s = Math.ceil((((x1_dd - dd) * 60) - m) *60); > > > > I also have tried to break the resolution in DMS, but I don't > know how > > to multiply the resolution with the coordinates in pixel and then > add > > to minlon > > > I am not sure what the problem is. Do for DMS exactly the way you are > doing for DD. There is nothing conceptually different between DD and > DMS. They express the same thing in different ways -- it is like saying > 1 lb of tomatoes versus 454 gms of tomatoes. Figure out your min, max > in DMS, and add them to your current mouse coordinates. > > That said, look at Clint Johnson's email from yesterday. He recommends > reading about projections at > http://fisher.lib.virginia.edu/reference/help/esri/esri_pdfs_9.html, > and that should be the first thing that all MapServer users should read > before setting out making mapping websites. Ed McNierny also has > elaborated on this several times (in fact, I have been thinking of > taking all of Ed's emails and compiling them into a "must read"... note > to Ed -- if you save your MapServer-list emails, forward them to me and > I will do the rest). > > Remember, that the pixel space is a rectangle, in that, opposite sides > are equal, while Lat/Long space is more like a trapezoid, in that, the > horizontal opposite sides are not equal, and in fact, at the poles, it > becomes a triangle. If you really want to be exact with your coordinate > display, project your map into a rectangular coordinate system and then > you will get what you want. > > > > > > william paul wrote: > > > Hi: > > > > > > I know this, my problem is other, but...I will solve it > > > > Please send all replies to the list as well. In the meantime, would > > the following help -- > > > > //(0) Grab the dd value > > var dd = obj.value; > > > > // (1) The Degrees are simply the numbers to the left of the decimal > > // (using 42.36824 as an example, the degrees would be 42) > > var d = Math.floor(dd); > > > > // (2) To determine the Minutes, multiply the number to the right of > > // the decimal point by 60 (example: .36824 x 60 = 22.0944) > > // (3) The Minutes are the numbers to the left of the decimal point > > // (in this example, 22) > > var m = Math.floor((dd - d) * 60); > > > > // (4) To determine the Seconds, multiply the number to the right of > > // the decimal point by 60 (example: .0944 x 60 = 5.664) > > // (5) The Seconds are the numbers to the left of the decimal point, > > // rounded up (in this example, 06) > > var s = Math.ceil((((dd - d) * 60) - m) * 60); > > > > // display it > > var dms = d + ' deg, ' + m + ' min, ' + s + ' sec'; > > > > > > > > */Puneet Kishor /* wrote: > > > > > > william paul wrote: > > > > Hi: > > > > > > > > I display the coordinates on mousemove over the map. The > > > coordinates are > > > > in DD and UTM, but I would like display them also in DMS. > > > > > > > > > > From the very first hit on Google -- > > > > > > (1) The Degrees are simply the numbers to the left of the > decimal > > > (using 42.36824 as an example, the degrees would be 42) > > > (2) To determine the Minutes, multiply the number to the right > > of > > > the decimal point by 60 (example: .36824 x 60 = 22.0944) > > > (3) The Minutes are the numbers to the left of the decimal > point > > > (in this example, 22) > > > (4) To determine the Seconds, multiply the number to the > right of > > > the decimal point by 60 (example: .0944 x 60 = 5.664) > > > (5) The Seconds are the numbers to the left of the decimal > point, > > > rounded up (in this example, 06) > > > > > > Implementing it in Js is left as an exercise for the reader... > > > > > > > > > > > > -- > > Puneet Kishor From bpicinbono at WORLDONLINE.FR Thu Feb 9 08:36:52 2006 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Thu, 9 Feb 2006 17:36:52 +0100 Subject: Add polygon in shapefile In-Reply-To: <8F2A512460F6D3119C14009027DC56EA01B8B980@vnf-mel.vnf.i2> Message-ID: Should work although I don't remember exactly how. I think you have to define only one newLineObj and add to it all the vertex of your polygon PLUS the first vertex. Then put this single closed line into your new shape. Something like : $line_a = ms_newLineObj(); $line_a->add($ecluse_sel_a); $line_a->add($ecluse_sel_b); $line_a->add($ecluse_sel_c); $line_a->add($ecluse_sel_d); $line_a->add($ecluse_sel_a); $shape->add($line_a); $zone_shp->addShape($shape); $shape->free(); $zone_shp->free(); Hope it'll help. Blaise On Thursday 09 February 2006 15:36, LAGACHE Alexandre - VNF/Dir. Infrastructure-Environnement/Div. G?o Carto wrote: > Hello All, > > I'd like to dynamically add polygons to a shapefile (php mapscript 4.80b). > Here is what I do : > > $zone_shp = ms_newShapefileObj("zone_shp", MS_SHP_POLYGON); > $shape = ms_newShapeObj(MS_SHAPE_POLYGON); > $ecluse_sel_a = ms_newPointObj(); > $ecluse_sel_a-> setxy($mix,$miy); > $ecluse_sel_b = ms_newPointObj(); > $ecluse_sel_b-> setxy($mix,$may); > $ecluse_sel_c = ms_newPointObj(); > $ecluse_sel_c-> setxy($max,$may); > $ecluse_sel_d = ms_newPointObj(); > $ecluse_sel_d-> setxy($max,$miy); > $line_a = ms_newLineObj(); > $line_a->add($ecluse_sel_a); > $line_a->add($ecluse_sel_b); > $line_b = ms_newLineObj(); > $line_b->add($ecluse_sel_b); > $line_b->add($ecluse_sel_c); > $line_c = ms_newLineObj(); > $line_c->add($ecluse_sel_c); > $line_c->add($ecluse_sel_d); > $line_d = ms_newLineObj(); > $line_d->add($ecluse_sel_d); > $line_d->add($ecluse_sel_a); > $shape->add($line_a); > $shape->add($line_b); > $shape->add($line_c); > $shape->add($line_d); > $zone_shp->addShape($shape); > $shape->free(); > $zone_shp->free(); > > It seems to work fine but when I look at the layer, objects are multiline > instead of polygons... > Any idea ??? What am I doing wrong ? > > Thanks ! > > Alexandre LAGACHE From sage at MARINE.RUTGERS.EDU Thu Feb 9 08:46:11 2006 From: sage at MARINE.RUTGERS.EDU (Sage Lichtenwalner) Date: Thu, 9 Feb 2006 10:46:11 -0600 Subject: Reassign a GeoTiff color Message-ID: Nevermind, I just figured it out by going through the tutorial again. For those who are curious, the OFFSITE parameter works wonders. Now I'm onto my next challenge of the day: figuring out the actual extents of an outputted image. MapServer is a lot of fun once you know what you're doing! Sage On Thu, 9 Feb 2006 09:37:39 -0500, Sage Lichtenwalner wrote: >Is there an easy way to reassign a color in a GeoTiff file, i.e. replacing >"water" in a topo image with white or a color which should render as >transparent? > >When I try to reassign a color using Class expressions, it then only >renders colors which I specify as Classes. I'm sure this is something >simple, I'm just neglecting the obvious. > >Thanks, > >Sage >-------------------------------------------------- >Sage Lichtenwalner >Institute of Marine and Coastal Sciences >Rutgers, The State University of New Jersey >71 Dudley Road, New Brunswick, NJ 08901 >------------------------------------------------- From hartpence_gis at CO.JASPER.IA.US Thu Feb 9 09:15:23 2006 From: hartpence_gis at CO.JASPER.IA.US (Lawrence Hartpence) Date: Thu, 9 Feb 2006 11:15:23 -0600 Subject: Select, Zoom Multiple Items In-Reply-To: <4ac992660602081628n32143579h@mail.gmail.com> Message-ID: Thanks to Jorge for giving me some direction. I am still stumped however. The article Jorge referred me to says that a windows machine does need to specify a QITEM. When I set up my query using 3 different items, it acts like it is selecting, but no results are returned and nothing is highlighted or zoomed to on the map. Here is how the query is returned in the URL: &qstring=%27%5BSECTION_%5D%27%3D21+AND+%27%5BTWP%5D%27%3D80+AND+%27%5BRNG%5D %27%3D19&qlayer=Sections&qitem=&shapeindex=&savequery= Any help would be greatly appreciated. I also find that documentation on all the query modes is hard to find. If anyone has a comprehensive document explaining how all the query modes work, I would love to see it. Lawrence From Alexandre.Lagache at VNF.FR Thu Feb 9 08:44:01 2006 From: Alexandre.Lagache at VNF.FR (=?UTF-8?Q?=22LAGACHE_Alexandre_=2D_VNF=2FDir=2E_Infrastructure=2DEnvir?= =?UTF-8?Q?onnement=2FDiv=2E_G=C3=A9o_Carto=22?=) Date: Thu, 9 Feb 2006 17:44:01 +0100 Subject: Add polygon in shapefile Message-ID: It did help ! It works perfectly, exactly what I needed, thanks a lot !!! -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]De la part de blaise Envoy? : jeudi 9 f?vrier 2006 17:37 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] Add polygon in shapefile Should work although I don't remember exactly how. I think you have to define only one newLineObj and add to it all the vertex of your polygon PLUS the first vertex. Then put this single closed line into your new shape. Something like : $line_a = ms_newLineObj(); $line_a->add($ecluse_sel_a); $line_a->add($ecluse_sel_b); $line_a->add($ecluse_sel_c); $line_a->add($ecluse_sel_d); $line_a->add($ecluse_sel_a); $shape->add($line_a); $zone_shp->addShape($shape); $shape->free(); $zone_shp->free(); Hope it'll help. Blaise On Thursday 09 February 2006 15:36, LAGACHE Alexandre - VNF/Dir. Infrastructure-Environnement/Div. G?o Carto wrote: > Hello All, > > I'd like to dynamically add polygons to a shapefile (php mapscript 4.80b). > Here is what I do : > > $zone_shp = ms_newShapefileObj("zone_shp", MS_SHP_POLYGON); > $shape = ms_newShapeObj(MS_SHAPE_POLYGON); > $ecluse_sel_a = ms_newPointObj(); > $ecluse_sel_a-> setxy($mix,$miy); > $ecluse_sel_b = ms_newPointObj(); > $ecluse_sel_b-> setxy($mix,$may); > $ecluse_sel_c = ms_newPointObj(); > $ecluse_sel_c-> setxy($max,$may); > $ecluse_sel_d = ms_newPointObj(); > $ecluse_sel_d-> setxy($max,$miy); > $line_a = ms_newLineObj(); > $line_a->add($ecluse_sel_a); > $line_a->add($ecluse_sel_b); > $line_b = ms_newLineObj(); > $line_b->add($ecluse_sel_b); > $line_b->add($ecluse_sel_c); > $line_c = ms_newLineObj(); > $line_c->add($ecluse_sel_c); > $line_c->add($ecluse_sel_d); > $line_d = ms_newLineObj(); > $line_d->add($ecluse_sel_d); > $line_d->add($ecluse_sel_a); > $shape->add($line_a); > $shape->add($line_b); > $shape->add($line_c); > $shape->add($line_d); > $zone_shp->addShape($shape); > $shape->free(); > $zone_shp->free(); > > It seems to work fine but when I look at the layer, objects are multiline > instead of polygons... > Any idea ??? What am I doing wrong ? > > Thanks ! > > Alexandre LAGACHE From lamarca at ACQUASOFTWARE.COM.BR Thu Feb 9 09:15:37 2006 From: lamarca at ACQUASOFTWARE.COM.BR (Leonardo Lamarca) Date: Thu, 9 Feb 2006 15:15:37 -0200 Subject: GPS coordinate Message-ID: Anyone can help me? How can I set a point on map using GPS coordinate (latitude/longitude) ? The user will input latitude and longitude coordinates and the software must draw a point on map. [] Leo Lamarca From aaronkoning at GMAIL.COM Thu Feb 9 09:30:29 2006 From: aaronkoning at GMAIL.COM (Aaron Koning) Date: Thu, 9 Feb 2006 09:30:29 -0800 Subject: POSTGIS Gui In-Reply-To: <8e2cbd660602090507p1586256fs114c8342cf476f98@mail.gmail.com> Message-ID: PG Lightning is a pretty good GUI also, but pgAdmin III appears to have the edge in my book. If you are interested in editing PostGIS data through a web-mapping interface you should check out the Flexible Internet Spatial Template (FIST: http://datashare.gis.unbc.ca/fist/) which has built in PostGIS editing capabilities. Aaron On 2/9/06, Matthew Edmondson wrote: > > I'm getting ready to use a POSTGIS DB for the first time, and after > being with tools such as the MySQL Administrator, and phpmyadmin, I'd > love to find something similar to work with postgis. Does anyone know > of a good gui to use? > > Matt > -------------- next part -------------- An HTML attachment was scrubbed... URL: From markadams at CUESTASYS.COM Thu Feb 9 12:11:56 2006 From: markadams at CUESTASYS.COM (Mark Adams) Date: Thu, 9 Feb 2006 14:11:56 -0600 Subject: OGR Virtual Message-ID: Hello, I would like to know if there was ever a successful resolution to Frank's question below. I am in the same situation: I cannot get the OGR virtual layer to render on my map. I have had no problem with points. However when I try to render a virtual polygon I get no error, just no feature on the map. The other layers all render without problem. I get no error from OGRINFO either. I've tried a number of different ways of configuring the OVF file, the data in the database, and the MAP file. Numerous combinations result in "success" in the sense of no errors, but still no features. Here is my most recent attempt: Connection: I'm using an ODBC connection to an MS Access database. The ODBC connection is called "parcel_test". OVF: ODBC:parcel_test,PROPERTY_VIRTUAL SELECT GEOMETRY FROM PROPERTY_VIRTUAL wkbPolygon MAP: LAYER NAME "Virtual Parcel" DEBUG ON STATUS ON CONNECTIONTYPE OGR CONNECTION "parcel_test.ovf" DATA "parcel_test" TYPE POLYGON TEMPLATE "null" CLASS NAME "Virtual Parcel" STYLE COLOR 255 1 5 OUTLINECOLOR 168 112 0 END END END I've got one record in the PROPERTY_VIRTUAL table, with the GEOMETRY value set as follows: POLYGON('501453.34 4800585.97,501576.14 4800590.44,501569.85 4800522,501471.61 4800521.63,501453.34 4800585.97') I've also tried storing the geometry without the quotes, brackets, and keyword POLYGON but it doesn't change the result. I've captured this output when I refresh the map: msOGRFileOpen(parcel_test.ovf)... OGROPen (\\Snow\c_drive\Inetpub\wwwroot\NTGO_GeoPortal\config\..\Data\Shapefiles/pa rcel_test.ovf) msOGRLayerClose(parcel_test.ovf). msOGRFileClose (\\Snow\c_drive\Inetpub\wwwroot\NTGO_GeoPortal\config\..\Data\Shapefiles/pa rcel_test.ovf,0). msDrawMap(): Layer 3 (Virtual Parcel), 0.130s msDrawMap(): Layer 4 (Property Parcels), 0.101s msDrawMap(): Layer 6 (Streets), 0.030s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.281s msOGRFileOpen(parcel_test.ovf)... OGROPen (\\Snow\c_drive\Inetpub\wwwroot\NTGO_GeoPortal\config\..\Data\Shapefiles/pa rcel_test.ovf) msOGRLayerClose(parcel_test.ovf). msOGRFileClose (\\Snow\c_drive\Inetpub\wwwroot\NTGO_GeoPortal\config\..\Data\Shapefiles/pa rcel_test.ovf,0). msDrawMap(): Layer 3 (Virtual Parcel), 0.110s msDrawMap(): Layer 4 (Property Parcels), 0.070s msDrawMap(): Layer 6 (Streets), 0.030s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.220s From taatuut at PLANET.NL Thu Feb 9 12:41:07 2006 From: taatuut at PLANET.NL (Emil Zegers) Date: Thu, 9 Feb 2006 21:41:07 +0100 Subject: OGR Virtual In-Reply-To: Message-ID: Hello Mark, Have you tried adding a PROJECTION to the LAYER containing the ovf file and/or the ovf file? Something like: LAYER NAME "Virtual Parcel" DEBUG ON STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "parcel_test.ovf" DATA "parcel_test" TYPE POLYGON # fill projection parameter, e.g. 28992 for Dutch system PROJECTION "init=epsg:12345" END TEMPLATE "null" CLASS NAME "Virtual Parcel" STYLE COLOR 255 1 5 OUTLINECOLOR 168 112 0 END END END In the past I had situations where I needed to put the PROJECTION in the LAYER and not in the OVF file. Also, use STATUS DEFAULT for testing purposes so the layer is always on. Regards, Emil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Mark Adams Sent: donderdag 9 februari 2006 21:12 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] OGR Virtual Hello, I would like to know if there was ever a successful resolution to Frank's question below. I am in the same situation: I cannot get the OGR virtual layer to render on my map. I have had no problem with points. However when I try to render a virtual polygon I get no error, just no feature on the map. The other layers all render without problem. I get no error from OGRINFO either. I've tried a number of different ways of configuring the OVF file, the data in the database, and the MAP file. Numerous combinations result in "success" in the sense of no errors, but still no features. Here is my most recent attempt: Connection: I'm using an ODBC connection to an MS Access database. The ODBC connection is called "parcel_test". OVF: ODBC:parcel_test,PROPERTY_VIRTUAL SELECT GEOMETRY FROM PROPERTY_VIRTUAL wkbPolygon MAP: LAYER NAME "Virtual Parcel" DEBUG ON STATUS ON CONNECTIONTYPE OGR CONNECTION "parcel_test.ovf" DATA "parcel_test" TYPE POLYGON TEMPLATE "null" CLASS NAME "Virtual Parcel" STYLE COLOR 255 1 5 OUTLINECOLOR 168 112 0 END END END I've got one record in the PROPERTY_VIRTUAL table, with the GEOMETRY value set as follows: POLYGON('501453.34 4800585.97,501576.14 4800590.44,501569.85 4800522,501471.61 4800521.63,501453.34 4800585.97') I've also tried storing the geometry without the quotes, brackets, and keyword POLYGON but it doesn't change the result. I've captured this output when I refresh the map: msOGRFileOpen(parcel_test.ovf)... OGROPen (\\Snow\c_drive\Inetpub\wwwroot\NTGO_GeoPortal\config\..\Data\Shapefiles/pa rcel_test.ovf) msOGRLayerClose(parcel_test.ovf). msOGRFileClose (\\Snow\c_drive\Inetpub\wwwroot\NTGO_GeoPortal\config\..\Data\Shapefiles/pa rcel_test.ovf,0). msDrawMap(): Layer 3 (Virtual Parcel), 0.130s msDrawMap(): Layer 4 (Property Parcels), 0.101s msDrawMap(): Layer 6 (Streets), 0.030s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.281s msOGRFileOpen(parcel_test.ovf)... OGROPen (\\Snow\c_drive\Inetpub\wwwroot\NTGO_GeoPortal\config\..\Data\Shapefiles/pa rcel_test.ovf) msOGRLayerClose(parcel_test.ovf). msOGRFileClose (\\Snow\c_drive\Inetpub\wwwroot\NTGO_GeoPortal\config\..\Data\Shapefiles/pa rcel_test.ovf,0). msDrawMap(): Layer 3 (Virtual Parcel), 0.110s msDrawMap(): Layer 4 (Property Parcels), 0.070s msDrawMap(): Layer 6 (Streets), 0.030s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.220s From markadams at CUESTASYS.COM Thu Feb 9 12:43:43 2006 From: markadams at CUESTASYS.COM (Mark Adams) Date: Thu, 9 Feb 2006 15:43:43 -0500 Subject: OGR Virtual In-Reply-To: Message-ID: I will try that. However, my understanding of PROJECTION is that it is not required unless you have data in more than one projection, or want to display the data in a projection different from the one the data is in. Is that not correct? Thanks. ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com -----Original Message----- From: Emil Zegers [mailto:taatuut at planet.nl] Sent: February 9, 2006 3:41 PM To: Mark Adams; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] OGR Virtual Hello Mark, Have you tried adding a PROJECTION to the LAYER containing the ovf file and/or the ovf file? Something like: LAYER NAME "Virtual Parcel" DEBUG ON STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "parcel_test.ovf" DATA "parcel_test" TYPE POLYGON # fill projection parameter, e.g. 28992 for Dutch system PROJECTION "init=epsg:12345" END TEMPLATE "null" CLASS NAME "Virtual Parcel" STYLE COLOR 255 1 5 OUTLINECOLOR 168 112 0 END END END In the past I had situations where I needed to put the PROJECTION in the LAYER and not in the OVF file. Also, use STATUS DEFAULT for testing purposes so the layer is always on. Regards, Emil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Mark Adams Sent: donderdag 9 februari 2006 21:12 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] OGR Virtual Hello, I would like to know if there was ever a successful resolution to Frank's question below. I am in the same situation: I cannot get the OGR virtual layer to render on my map. I have had no problem with points. However when I try to render a virtual polygon I get no error, just no feature on the map. The other layers all render without problem. I get no error from OGRINFO either. I've tried a number of different ways of configuring the OVF file, the data in the database, and the MAP file. Numerous combinations result in "success" in the sense of no errors, but still no features. Here is my most recent attempt: Connection: I'm using an ODBC connection to an MS Access database. The ODBC connection is called "parcel_test". OVF: ODBC:parcel_test,PROPERTY_VIRTUAL SELECT GEOMETRY FROM PROPERTY_VIRTUAL wkbPolygon MAP: LAYER NAME "Virtual Parcel" DEBUG ON STATUS ON CONNECTIONTYPE OGR CONNECTION "parcel_test.ovf" DATA "parcel_test" TYPE POLYGON TEMPLATE "null" CLASS NAME "Virtual Parcel" STYLE COLOR 255 1 5 OUTLINECOLOR 168 112 0 END END END I've got one record in the PROPERTY_VIRTUAL table, with the GEOMETRY value set as follows: POLYGON('501453.34 4800585.97,501576.14 4800590.44,501569.85 4800522,501471.61 4800521.63,501453.34 4800585.97') I've also tried storing the geometry without the quotes, brackets, and keyword POLYGON but it doesn't change the result. I've captured this output when I refresh the map: msOGRFileOpen(parcel_test.ovf)... OGROPen (\\Snow\c_drive\Inetpub\wwwroot\NTGO_GeoPortal\config\..\Data\Shapefiles/pa rcel_test.ovf) msOGRLayerClose(parcel_test.ovf). msOGRFileClose (\\Snow\c_drive\Inetpub\wwwroot\NTGO_GeoPortal\config\..\Data\Shapefiles/pa rcel_test.ovf,0). msDrawMap(): Layer 3 (Virtual Parcel), 0.130s msDrawMap(): Layer 4 (Property Parcels), 0.101s msDrawMap(): Layer 6 (Streets), 0.030s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.281s msOGRFileOpen(parcel_test.ovf)... OGROPen (\\Snow\c_drive\Inetpub\wwwroot\NTGO_GeoPortal\config\..\Data\Shapefiles/pa rcel_test.ovf) msOGRLayerClose(parcel_test.ovf). msOGRFileClose (\\Snow\c_drive\Inetpub\wwwroot\NTGO_GeoPortal\config\..\Data\Shapefiles/pa rcel_test.ovf,0). msDrawMap(): Layer 3 (Virtual Parcel), 0.110s msDrawMap(): Layer 4 (Property Parcels), 0.070s msDrawMap(): Layer 6 (Streets), 0.030s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.220s >From the FWTools command line I get this: C:\Program Files\FWTools1.0.0a7>ogrinfo ODBC:parcel_test INFO: Open of `ODBC:parcel_test' using driver `ODBC' successful. 1: PROPERTY_VIRTUAL C:\Program Files\FWTools1.0.0a7>ogrinfo ODBC:parcel_test PROPERTY_VIRTUAL INFO: Open of `ODBC:parcel_test' using driver `ODBC' successful. Layer name: PROPERTY_VIRTUAL Geometry: Unknown (any) Feature Count: 1 Layer SRS WKT: (unknown) OBJECTID: Integer (10.0) STATUS: String (20.0) UTM_X: Real (0.0) UTM_Y: Real (0.0) AREA: Real (0.0) SHAPE_Length: Real (0.0) SHAPE_Area: Real (0.0) HERITAGE: String (20.0) PAR_UPDATE: String (10.0) UPDATE_DATE: String (20.0) CREATE_DATE: String (20.0) UPDATE_SOURCE: String (50.0) AREA_ACRE: Real (0.0) PID: Integer (10.0) AREA_HECTARE: Real (0.0) OGRFeature(PROPERTY_VIRTUAL):0 OBJECTID (Integer) = 2 STATUS (String) = Active UTM_X (Real) = 501405.687500125 UTM_Y (Real) = 4801949.24999883 AREA (Real) = 229.843703627485 SHAPE_Length (Real) = 77.3317483960398 SHAPE_Area (Real) = 229.843703627485 HERITAGE (String) = PART V PAR_UPDATE (String) = (null) UPDATE_DATE (String) = (null) CREATE_DATE (String) = (null) UPDATE_SOURCE (String) = (null) AREA_ACRE (Real) = 0.0567943791663515 PID (Integer) = 42385 AREA_HECTARE (Real) = 0.0229843703627485 Any help would be greatly appreciated. I have several polygon layers to publish this way, ultimately from an Oracle database. Thanks in advance, ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com On Wed, 21 Dec 2005 00:10:06 -0600, Frank Fica wrote: >Hello, > >I've been trying to map a non-spatial postgre table with ogr via ODBC but no success. There must >be a simple solution to what I'm missing and I haven't been able to figure it out. My other layers >do render but my Virtual layer doesn't. When I test in ogrinfo I can connect but when I try to map >in mapserver the image is blank, only my mapinfo layer renders. > >Does someone has any suggestions on what I'm missing? > >Here are is my ovf file: > > > > ODBC:@PostgreSQL,sorento > sorento > wkbPoint > > > > >and map file: > >MAP > IMAGETYPE PNG > EXTENT -90.760314 14.252771 -90.210352 14.937117 > SIZE 640 480 > UNITS METERS > > SYMBOL > NAME "circle" > TYPE ELLIPSE > POINTS > 1 1 > END > FILLED TRUE > END > > LAYER > NAME "ciudad" > TYPE POLYGON > STATUS ON > CONNECTIONTYPE OGR > CONNECTION "/var/www/html/guatemala/data/ciudad.tab" > STYLEITEM "AUTO" > CLASS > NAME "Ciudad" > END > END > > LAYER > NAME "sorento" > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "virtual.ovf" > DATA "sorento" > STATUS DEFAULT > CLASS > STYLE > SYMBOL 'circle' > SIZE 30 > COLOR 255 0 0 > END > END > END >END From taatuut at PLANET.NL Thu Feb 9 12:57:28 2006 From: taatuut at PLANET.NL (Emil Zegers) Date: Thu, 9 Feb 2006 21:57:28 +0100 Subject: OGR Virtual In-Reply-To: Message-ID: Hello Mark, You are correct with your explanation about PROJECTION but since I had this case last year where I did have to add PROJECTION to an OVF layer although all data was in the same projection I thought it might be worth trying it. However, I have not fully test cased this and I don't know enough about the underlying code to be sure this was the (right) solution to the problem. Regards, Emil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Mark Adams Sent: donderdag 9 februari 2006 21:44 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] OGR Virtual I will try that. However, my understanding of PROJECTION is that it is not required unless you have data in more than one projection, or want to display the data in a projection different from the one the data is in. Is that not correct? Thanks. ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com -----Original Message----- From: Emil Zegers [mailto:taatuut at planet.nl] Sent: February 9, 2006 3:41 PM To: Mark Adams; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] OGR Virtual Hello Mark, Have you tried adding a PROJECTION to the LAYER containing the ovf file and/or the ovf file? Something like: LAYER NAME "Virtual Parcel" DEBUG ON STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "parcel_test.ovf" DATA "parcel_test" TYPE POLYGON # fill projection parameter, e.g. 28992 for Dutch system PROJECTION "init=epsg:12345" END TEMPLATE "null" CLASS NAME "Virtual Parcel" STYLE COLOR 255 1 5 OUTLINECOLOR 168 112 0 END END END In the past I had situations where I needed to put the PROJECTION in the LAYER and not in the OVF file. Also, use STATUS DEFAULT for testing purposes so the layer is always on. Regards, Emil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Mark Adams Sent: donderdag 9 februari 2006 21:12 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] OGR Virtual Hello, I would like to know if there was ever a successful resolution to Frank's question below. I am in the same situation: I cannot get the OGR virtual layer to render on my map. I have had no problem with points. However when I try to render a virtual polygon I get no error, just no feature on the map. The other layers all render without problem. I get no error from OGRINFO either. I've tried a number of different ways of configuring the OVF file, the data in the database, and the MAP file. Numerous combinations result in "success" in the sense of no errors, but still no features. Here is my most recent attempt: Connection: I'm using an ODBC connection to an MS Access database. The ODBC connection is called "parcel_test". OVF: ODBC:parcel_test,PROPERTY_VIRTUAL SELECT GEOMETRY FROM PROPERTY_VIRTUAL wkbPolygon MAP: LAYER NAME "Virtual Parcel" DEBUG ON STATUS ON CONNECTIONTYPE OGR CONNECTION "parcel_test.ovf" DATA "parcel_test" TYPE POLYGON TEMPLATE "null" CLASS NAME "Virtual Parcel" STYLE COLOR 255 1 5 OUTLINECOLOR 168 112 0 END END END I've got one record in the PROPERTY_VIRTUAL table, with the GEOMETRY value set as follows: POLYGON('501453.34 4800585.97,501576.14 4800590.44,501569.85 4800522,501471.61 4800521.63,501453.34 4800585.97') I've also tried storing the geometry without the quotes, brackets, and keyword POLYGON but it doesn't change the result. I've captured this output when I refresh the map: msOGRFileOpen(parcel_test.ovf)... OGROPen (\\Snow\c_drive\Inetpub\wwwroot\NTGO_GeoPortal\config\..\Data\Shapefiles/pa rcel_test.ovf) msOGRLayerClose(parcel_test.ovf). msOGRFileClose (\\Snow\c_drive\Inetpub\wwwroot\NTGO_GeoPortal\config\..\Data\Shapefiles/pa rcel_test.ovf,0). msDrawMap(): Layer 3 (Virtual Parcel), 0.130s msDrawMap(): Layer 4 (Property Parcels), 0.101s msDrawMap(): Layer 6 (Streets), 0.030s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.281s msOGRFileOpen(parcel_test.ovf)... OGROPen (\\Snow\c_drive\Inetpub\wwwroot\NTGO_GeoPortal\config\..\Data\Shapefiles/pa rcel_test.ovf) msOGRLayerClose(parcel_test.ovf). msOGRFileClose (\\Snow\c_drive\Inetpub\wwwroot\NTGO_GeoPortal\config\..\Data\Shapefiles/pa rcel_test.ovf,0). msDrawMap(): Layer 3 (Virtual Parcel), 0.110s msDrawMap(): Layer 4 (Property Parcels), 0.070s msDrawMap(): Layer 6 (Streets), 0.030s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.220s >From the FWTools command line I get this: C:\Program Files\FWTools1.0.0a7>ogrinfo ODBC:parcel_test INFO: Open of `ODBC:parcel_test' using driver `ODBC' successful. 1: PROPERTY_VIRTUAL C:\Program Files\FWTools1.0.0a7>ogrinfo ODBC:parcel_test PROPERTY_VIRTUAL INFO: Open of `ODBC:parcel_test' using driver `ODBC' successful. Layer name: PROPERTY_VIRTUAL Geometry: Unknown (any) Feature Count: 1 Layer SRS WKT: (unknown) OBJECTID: Integer (10.0) STATUS: String (20.0) UTM_X: Real (0.0) UTM_Y: Real (0.0) AREA: Real (0.0) SHAPE_Length: Real (0.0) SHAPE_Area: Real (0.0) HERITAGE: String (20.0) PAR_UPDATE: String (10.0) UPDATE_DATE: String (20.0) CREATE_DATE: String (20.0) UPDATE_SOURCE: String (50.0) AREA_ACRE: Real (0.0) PID: Integer (10.0) AREA_HECTARE: Real (0.0) OGRFeature(PROPERTY_VIRTUAL):0 OBJECTID (Integer) = 2 STATUS (String) = Active UTM_X (Real) = 501405.687500125 UTM_Y (Real) = 4801949.24999883 AREA (Real) = 229.843703627485 SHAPE_Length (Real) = 77.3317483960398 SHAPE_Area (Real) = 229.843703627485 HERITAGE (String) = PART V PAR_UPDATE (String) = (null) UPDATE_DATE (String) = (null) CREATE_DATE (String) = (null) UPDATE_SOURCE (String) = (null) AREA_ACRE (Real) = 0.0567943791663515 PID (Integer) = 42385 AREA_HECTARE (Real) = 0.0229843703627485 Any help would be greatly appreciated. I have several polygon layers to publish this way, ultimately from an Oracle database. Thanks in advance, ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com On Wed, 21 Dec 2005 00:10:06 -0600, Frank Fica wrote: >Hello, > >I've been trying to map a non-spatial postgre table with ogr via ODBC but no success. There must >be a simple solution to what I'm missing and I haven't been able to figure it out. My other layers >do render but my Virtual layer doesn't. When I test in ogrinfo I can connect but when I try to map >in mapserver the image is blank, only my mapinfo layer renders. > >Does someone has any suggestions on what I'm missing? > >Here are is my ovf file: > > > > ODBC:@PostgreSQL,sorento > sorento > wkbPoint > > > > >and map file: > >MAP > IMAGETYPE PNG > EXTENT -90.760314 14.252771 -90.210352 14.937117 > SIZE 640 480 > UNITS METERS > > SYMBOL > NAME "circle" > TYPE ELLIPSE > POINTS > 1 1 > END > FILLED TRUE > END > > LAYER > NAME "ciudad" > TYPE POLYGON > STATUS ON > CONNECTIONTYPE OGR > CONNECTION "/var/www/html/guatemala/data/ciudad.tab" > STYLEITEM "AUTO" > CLASS > NAME "Ciudad" > END > END > > LAYER > NAME "sorento" > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "virtual.ovf" > DATA "sorento" > STATUS DEFAULT > CLASS > STYLE > SYMBOL 'circle' > SIZE 30 > COLOR 255 0 0 > END > END > END >END From markadams at CUESTASYS.COM Thu Feb 9 13:11:06 2006 From: markadams at CUESTASYS.COM (Mark Adams) Date: Thu, 9 Feb 2006 16:11:06 -0500 Subject: OGR Virtual In-Reply-To: Message-ID: Well, I've tried it and this is what I found: -adding a Projection statement in the MAP file changed nothing. I added PROJECTION elements to each layer, and played around with changing layers to different projections - the other layers all worked fine, reprojection worked fine etc. -adding the EPSG in the OVF file *finally* generated an error: [MapServer Error]: msOGRFileOpen(): Open failed for OGR connection `parcel_test.ovf'. Failed to import LayerSRS `EPSG:26917'. The OVF file now looks like this: ODBC:parcel_test,PROPERTY_VIRTUAL SELECT GEOMETRY FROM PROPERTY_VIRTUAL wkbPolygon EPSG:26917 I don't know why this would fail: the epsg file in proj\nad folder has this code defined, and mapserver is able to use it for the other layers (which are shapefiles). Any thoughts? Thanks for your help so far. ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com -----Original Message----- From: Emil Zegers [mailto:taatuut at planet.nl] Sent: February 9, 2006 3:57 PM To: Mark Adams; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] OGR Virtual Hello Mark, You are correct with your explanation about PROJECTION but since I had this case last year where I did have to add PROJECTION to an OVF layer although all data was in the same projection I thought it might be worth trying it. However, I have not fully test cased this and I don't know enough about the underlying code to be sure this was the (right) solution to the problem. Regards, Emil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Mark Adams Sent: donderdag 9 februari 2006 21:44 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] OGR Virtual I will try that. However, my understanding of PROJECTION is that it is not required unless you have data in more than one projection, or want to display the data in a projection different from the one the data is in. Is that not correct? Thanks. ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com -----Original Message----- From: Emil Zegers [mailto:taatuut at planet.nl] Sent: February 9, 2006 3:41 PM To: Mark Adams; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] OGR Virtual Hello Mark, Have you tried adding a PROJECTION to the LAYER containing the ovf file and/or the ovf file? Something like: LAYER NAME "Virtual Parcel" DEBUG ON STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "parcel_test.ovf" DATA "parcel_test" TYPE POLYGON # fill projection parameter, e.g. 28992 for Dutch system PROJECTION "init=epsg:12345" END TEMPLATE "null" CLASS NAME "Virtual Parcel" STYLE COLOR 255 1 5 OUTLINECOLOR 168 112 0 END END END In the past I had situations where I needed to put the PROJECTION in the LAYER and not in the OVF file. Also, use STATUS DEFAULT for testing purposes so the layer is always on. Regards, Emil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Mark Adams Sent: donderdag 9 februari 2006 21:12 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] OGR Virtual Hello, I would like to know if there was ever a successful resolution to Frank's question below. I am in the same situation: I cannot get the OGR virtual layer to render on my map. I have had no problem with points. However when I try to render a virtual polygon I get no error, just no feature on the map. The other layers all render without problem. I get no error from OGRINFO either. I've tried a number of different ways of configuring the OVF file, the data in the database, and the MAP file. Numerous combinations result in "success" in the sense of no errors, but still no features. Here is my most recent attempt: Connection: I'm using an ODBC connection to an MS Access database. The ODBC connection is called "parcel_test". OVF: ODBC:parcel_test,PROPERTY_VIRTUAL SELECT GEOMETRY FROM PROPERTY_VIRTUAL wkbPolygon MAP: LAYER NAME "Virtual Parcel" DEBUG ON STATUS ON CONNECTIONTYPE OGR CONNECTION "parcel_test.ovf" DATA "parcel_test" TYPE POLYGON TEMPLATE "null" CLASS NAME "Virtual Parcel" STYLE COLOR 255 1 5 OUTLINECOLOR 168 112 0 END END END I've got one record in the PROPERTY_VIRTUAL table, with the GEOMETRY value set as follows: POLYGON('501453.34 4800585.97,501576.14 4800590.44,501569.85 4800522,501471.61 4800521.63,501453.34 4800585.97') I've also tried storing the geometry without the quotes, brackets, and keyword POLYGON but it doesn't change the result. I've captured this output when I refresh the map: msOGRFileOpen(parcel_test.ovf)... OGROPen (\\Snow\c_drive\Inetpub\wwwroot\NTGO_GeoPortal\config\..\Data\Shapefiles/pa rcel_test.ovf) msOGRLayerClose(parcel_test.ovf). msOGRFileClose (\\Snow\c_drive\Inetpub\wwwroot\NTGO_GeoPortal\config\..\Data\Shapefiles/pa rcel_test.ovf,0). msDrawMap(): Layer 3 (Virtual Parcel), 0.130s msDrawMap(): Layer 4 (Property Parcels), 0.101s msDrawMap(): Layer 6 (Streets), 0.030s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.281s msOGRFileOpen(parcel_test.ovf)... OGROPen (\\Snow\c_drive\Inetpub\wwwroot\NTGO_GeoPortal\config\..\Data\Shapefiles/pa rcel_test.ovf) msOGRLayerClose(parcel_test.ovf). msOGRFileClose (\\Snow\c_drive\Inetpub\wwwroot\NTGO_GeoPortal\config\..\Data\Shapefiles/pa rcel_test.ovf,0). msDrawMap(): Layer 3 (Virtual Parcel), 0.110s msDrawMap(): Layer 4 (Property Parcels), 0.070s msDrawMap(): Layer 6 (Streets), 0.030s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.220s >From the FWTools command line I get this: C:\Program Files\FWTools1.0.0a7>ogrinfo ODBC:parcel_test INFO: Open of `ODBC:parcel_test' using driver `ODBC' successful. 1: PROPERTY_VIRTUAL C:\Program Files\FWTools1.0.0a7>ogrinfo ODBC:parcel_test PROPERTY_VIRTUAL INFO: Open of `ODBC:parcel_test' using driver `ODBC' successful. Layer name: PROPERTY_VIRTUAL Geometry: Unknown (any) Feature Count: 1 Layer SRS WKT: (unknown) OBJECTID: Integer (10.0) STATUS: String (20.0) UTM_X: Real (0.0) UTM_Y: Real (0.0) AREA: Real (0.0) SHAPE_Length: Real (0.0) SHAPE_Area: Real (0.0) HERITAGE: String (20.0) PAR_UPDATE: String (10.0) UPDATE_DATE: String (20.0) CREATE_DATE: String (20.0) UPDATE_SOURCE: String (50.0) AREA_ACRE: Real (0.0) PID: Integer (10.0) AREA_HECTARE: Real (0.0) OGRFeature(PROPERTY_VIRTUAL):0 OBJECTID (Integer) = 2 STATUS (String) = Active UTM_X (Real) = 501405.687500125 UTM_Y (Real) = 4801949.24999883 AREA (Real) = 229.843703627485 SHAPE_Length (Real) = 77.3317483960398 SHAPE_Area (Real) = 229.843703627485 HERITAGE (String) = PART V PAR_UPDATE (String) = (null) UPDATE_DATE (String) = (null) CREATE_DATE (String) = (null) UPDATE_SOURCE (String) = (null) AREA_ACRE (Real) = 0.0567943791663515 PID (Integer) = 42385 AREA_HECTARE (Real) = 0.0229843703627485 Any help would be greatly appreciated. I have several polygon layers to publish this way, ultimately from an Oracle database. Thanks in advance, ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com On Wed, 21 Dec 2005 00:10:06 -0600, Frank Fica wrote: >Hello, > >I've been trying to map a non-spatial postgre table with ogr via ODBC but no success. There must >be a simple solution to what I'm missing and I haven't been able to figure it out. My other layers >do render but my Virtual layer doesn't. When I test in ogrinfo I can connect but when I try to map >in mapserver the image is blank, only my mapinfo layer renders. > >Does someone has any suggestions on what I'm missing? > >Here are is my ovf file: > > > > ODBC:@PostgreSQL,sorento > sorento > wkbPoint > > > > >and map file: > >MAP > IMAGETYPE PNG > EXTENT -90.760314 14.252771 -90.210352 14.937117 > SIZE 640 480 > UNITS METERS > > SYMBOL > NAME "circle" > TYPE ELLIPSE > POINTS > 1 1 > END > FILLED TRUE > END > > LAYER > NAME "ciudad" > TYPE POLYGON > STATUS ON > CONNECTIONTYPE OGR > CONNECTION "/var/www/html/guatemala/data/ciudad.tab" > STYLEITEM "AUTO" > CLASS > NAME "Ciudad" > END > END > > LAYER > NAME "sorento" > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "virtual.ovf" > DATA "sorento" > STATUS DEFAULT > CLASS > STYLE > SYMBOL 'circle' > SIZE 30 > COLOR 255 0 0 > END > END > END >END From cjohnson at REFRACTIONS.NET Thu Feb 9 13:25:11 2006 From: cjohnson at REFRACTIONS.NET (Clint Johnson) Date: Thu, 9 Feb 2006 13:25:11 -0800 Subject: OGR Virtual Message-ID: Mark, You are correct about not needing any projection elements when all data is of the same projection; however, this is because MapServer will assume all layers use the same projection (http://mapserver.gis.umn.edu/docs/reference/mapfile/projection at bottom under Important Notes). But for that to happen Mapserver will need to read that projection from the ciudad layer as ogrinfo clearly stated the following about the parcel_test layer... Layer name: PROPERTY_VIRTUAL Geometry: Unknown (any) Feature Count: 1 Layer SRS WKT: (unknown) Thus it wouldn't hurt to explicitly state the projection. However, since no errors were produced when creating the map image, I have a "feeling" that this may be an extent issue. Look at the map file and your polygon. Are you *sure* that your polygon's geometry fits inside of your specified extent? EXTENT -90.760314 14.252771 -90.210352 14.937117 vs POLYGON('501453.34 4800585.97,501576.14 4800590.44,501569.85 4800522,501471.61 4800521.63,501453.34 4800585.97') Cheers, Clint -- Clint Johnson Refractions Research Inc. Cjohnson at refractions.net Mark Adams wrote: > I will try that. However, my understanding of PROJECTION is that it is > not > required unless you have data in more than one projection, or want to > display the data in a projection different from the one the data is > in. Is > that not correct? > > Thanks. > > ------------------------------ > Mark Adams > Senior Analyst & Project Manager > Cuesta Systems (DPRA Canada) > 5230 South Service Road > Burlington, ON L7L 5K2 > Phone: 905-333-4544 x14 > Fax: 905-333-0455 > Email: mark.adams at dpra.com > > > -----Original Message----- > From: Emil Zegers [mailto:taatuut at planet.nl] Sent: February 9, 2006 > 3:41 PM > To: Mark Adams; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: RE: [UMN_MAPSERVER-USERS] OGR Virtual > > Hello Mark, > > Have you tried adding a PROJECTION to the LAYER containing the ovf file > and/or the ovf file? > > Something like: > > LAYER > NAME "Virtual Parcel" > DEBUG ON > STATUS DEFAULT > CONNECTIONTYPE OGR > CONNECTION "parcel_test.ovf" > DATA "parcel_test" > TYPE POLYGON > # fill projection parameter, e.g. 28992 for Dutch system > PROJECTION > "init=epsg:12345" > END > TEMPLATE "null" > CLASS > NAME "Virtual Parcel" > STYLE > COLOR 255 1 5 > OUTLINECOLOR 168 112 0 > END > END > END > > > In the past I had situations where I needed to put the PROJECTION in the > LAYER and not in the OVF file. > > Also, use STATUS DEFAULT for testing purposes so the layer is always on. > > Regards, > > Emil > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Mark Adams > Sent: donderdag 9 februari 2006 21:12 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] OGR Virtual > > > Hello, > > I would like to know if there was ever a successful resolution to Frank's > question below. I am in the same situation: I cannot get the OGR virtual > layer to render on my map. > > I have had no problem with points. However when I try to render a virtual > polygon I get no error, just no feature on the map. The other layers all > render without problem. I get no error from OGRINFO either. > > I've tried a number of different ways of configuring the OVF file, the > data in the database, and the MAP file. Numerous combinations result > in "success" in the sense of no errors, but still no features. > > Here is my most recent attempt: > Connection: I'm using an ODBC connection to an MS Access database. The > ODBC connection is called "parcel_test". > > OVF: > > > ODBC:parcel_test,PROPERTY_VIRTUAL > SELECT GEOMETRY FROM PROPERTY_VIRTUAL > wkbPolygon > > > > > MAP: > LAYER > NAME "Virtual Parcel" > DEBUG ON > STATUS ON > CONNECTIONTYPE OGR > CONNECTION "parcel_test.ovf" > DATA "parcel_test" > TYPE POLYGON > TEMPLATE "null" > CLASS > NAME "Virtual Parcel" > STYLE > COLOR 255 1 5 > OUTLINECOLOR 168 112 0 > END > END > END > > I've got one record in the PROPERTY_VIRTUAL table, with the GEOMETRY > value > set as follows: > POLYGON('501453.34 4800585.97,501576.14 4800590.44,501569.85 > 4800522,501471.61 4800521.63,501453.34 4800585.97') > > I've also tried storing the geometry without the quotes, brackets, and > keyword POLYGON but it doesn't change the result. > > I've captured this output when I refresh the map: > msOGRFileOpen(parcel_test.ovf)... > OGROPen > (\\Snow\c_drive\Inetpub\wwwroot\NTGO_GeoPortal\config\..\Data\Shapefiles/pa > > rcel_test.ovf) > msOGRLayerClose(parcel_test.ovf). > msOGRFileClose > (\\Snow\c_drive\Inetpub\wwwroot\NTGO_GeoPortal\config\..\Data\Shapefiles/pa > > rcel_test.ovf,0). > msDrawMap(): Layer 3 (Virtual Parcel), 0.130s > msDrawMap(): Layer 4 (Property Parcels), 0.101s > msDrawMap(): Layer 6 (Streets), 0.030s > msDrawMap(): Drawing Label Cache, 0.000s > msDrawMap() total time: 0.281s > msOGRFileOpen(parcel_test.ovf)... > OGROPen > (\\Snow\c_drive\Inetpub\wwwroot\NTGO_GeoPortal\config\..\Data\Shapefiles/pa > > rcel_test.ovf) > msOGRLayerClose(parcel_test.ovf). > msOGRFileClose > (\\Snow\c_drive\Inetpub\wwwroot\NTGO_GeoPortal\config\..\Data\Shapefiles/pa > > rcel_test.ovf,0). > msDrawMap(): Layer 3 (Virtual Parcel), 0.110s > msDrawMap(): Layer 4 (Property Parcels), 0.070s > msDrawMap(): Layer 6 (Streets), 0.030s > msDrawMap(): Drawing Label Cache, 0.000s > msDrawMap() total time: 0.220s > > >From the FWTools command line I get this: > C:\Program Files\FWTools1.0.0a7>ogrinfo ODBC:parcel_test > INFO: Open of `ODBC:parcel_test' > using driver `ODBC' successful. > 1: PROPERTY_VIRTUAL > > > C:\Program Files\FWTools1.0.0a7>ogrinfo ODBC:parcel_test PROPERTY_VIRTUAL > INFO: Open of `ODBC:parcel_test' > using driver `ODBC' successful. > > Layer name: PROPERTY_VIRTUAL > Geometry: Unknown (any) > Feature Count: 1 > Layer SRS WKT: > (unknown) > OBJECTID: Integer (10.0) > STATUS: String (20.0) > UTM_X: Real (0.0) > UTM_Y: Real (0.0) > AREA: Real (0.0) > SHAPE_Length: Real (0.0) > SHAPE_Area: Real (0.0) > HERITAGE: String (20.0) > PAR_UPDATE: String (10.0) > UPDATE_DATE: String (20.0) > CREATE_DATE: String (20.0) > UPDATE_SOURCE: String (50.0) > AREA_ACRE: Real (0.0) > PID: Integer (10.0) > AREA_HECTARE: Real (0.0) > OGRFeature(PROPERTY_VIRTUAL):0 > OBJECTID (Integer) = 2 > STATUS (String) = Active > UTM_X (Real) = 501405.687500125 > UTM_Y (Real) = 4801949.24999883 > AREA (Real) = 229.843703627485 > SHAPE_Length (Real) = 77.3317483960398 > SHAPE_Area (Real) = 229.843703627485 > HERITAGE (String) = PART V > PAR_UPDATE (String) = (null) > UPDATE_DATE (String) = (null) > CREATE_DATE (String) = (null) > UPDATE_SOURCE (String) = (null) > AREA_ACRE (Real) = 0.0567943791663515 > PID (Integer) = 42385 > AREA_HECTARE (Real) = 0.0229843703627485 > > Any help would be greatly appreciated. I have several polygon layers to > publish this way, ultimately from an Oracle database. > > Thanks in advance, > > ------------------------------ > Mark Adams > Senior Analyst & Project Manager > Cuesta Systems (DPRA Canada) > 5230 South Service Road > Burlington, ON L7L 5K2 > Phone: 905-333-4544 x14 > Fax: 905-333-0455 > Email: mark.adams at dpra.com > > > On Wed, 21 Dec 2005 00:10:06 -0600, Frank Fica > wrote: > > >> Hello, >> >> I've been trying to map a non-spatial postgre table with ogr via ODBC >> but >> > no success. There must > >> be a simple solution to what I'm missing and I haven't been able to >> > figure it out. My other layers > >> do render but my Virtual layer doesn't. When I test in ogrinfo I can >> > connect but when I try to map > >> in mapserver the image is blank, only my mapinfo layer renders. >> >> Does someone has any suggestions on what I'm missing? >> >> Here are is my ovf file: >> >> >> >> ODBC:@PostgreSQL,sorento >> sorento >> wkbPoint >> >> >> >> >> and map file: >> >> MAP >> IMAGETYPE PNG >> EXTENT -90.760314 14.252771 -90.210352 14.937117 >> SIZE 640 480 >> UNITS METERS >> >> SYMBOL >> NAME "circle" >> TYPE ELLIPSE >> POINTS >> 1 1 >> END >> FILLED TRUE >> END >> >> LAYER >> NAME "ciudad" >> TYPE POLYGON >> STATUS ON >> CONNECTIONTYPE OGR >> CONNECTION "/var/www/html/guatemala/data/ciudad.tab" >> STYLEITEM "AUTO" >> CLASS >> NAME "Ciudad" >> END >> END >> >> LAYER >> NAME "sorento" >> TYPE POINT >> CONNECTIONTYPE OGR >> CONNECTION "virtual.ovf" >> DATA "sorento" >> STATUS DEFAULT >> CLASS >> STYLE >> SYMBOL 'circle' >> SIZE 30 >> COLOR 255 0 0 >> END >> END >> END >> END >> From markadams at CUESTASYS.COM Thu Feb 9 13:27:39 2006 From: markadams at CUESTASYS.COM (Mark Adams) Date: Thu, 9 Feb 2006 15:27:39 -0600 Subject: fastcgi Message-ID: I understand that mapserver now has fastcgi support. I would like to take advantage of this. I found a HOWTO on fastcgi under windows (FastCGIOnWin32), however that appeared Apache specific. I followed the links from the fastcgi home page and found a Windows binary distribution from 2002, consisting of a zip file with 2 DLLS, one nsapi and the other isapi. But - no instructions. What do I so with the Isapi DLL? Do I need to enable this extension in IIS, do I just copy the dll to my system32 folder... Anybody? My environment is windows 2003 server, PHP running as CGI, and mapserver with PHP mapscript. Thanks in advance. ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com From markadams at CUESTASYS.COM Thu Feb 9 13:35:23 2006 From: markadams at CUESTASYS.COM (Mark Adams) Date: Thu, 9 Feb 2006 16:35:23 -0500 Subject: OGR Virtual In-Reply-To: <43EBB2DE.8000806@refractions.net> Message-ID: Clint, Thanks for the response, but you may be getting my posting and the one I was responding to mixed up. My extent is defined in my MAP file as follows: EXTENT 500599 4799427 502325 4801598 I derived the coordinates for my sample polygon by actually looking at the map of the other layers... so I can't see this being an extents issue. Thanks. ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com -----Original Message----- From: Clint Johnson [mailto:cjohnson at refractions.net] Sent: February 9, 2006 4:24 PM To: Mark Adams Subject: Re: [UMN_MAPSERVER-USERS] OGR Virtual Mark, You are correct about not needing any projection elements when all data is of the same projection; however, this is because MapServer will assume all layers use the same projection (http://mapserver.gis.umn.edu/docs/reference/mapfile/projection at bottom under Important Notes). But for that to happen Mapserver will need to read that projection from the ciudad layer as ogrinfo clearly stated the following about the parcel_test layer... Layer name: PROPERTY_VIRTUAL Geometry: Unknown (any) Feature Count: 1 Layer SRS WKT: (unknown) Thus it wouldn't hurt to explicitly state the projection. However, since no errors were produced when creating the map image, I have a "feeling" that this may be an extent issue. Look at the map file and your polygon. Are you *sure* that your polygon's geometry fits inside of your specified extent? EXTENT -90.760314 14.252771 -90.210352 14.937117 vs POLYGON('501453.34 4800585.97,501576.14 4800590.44,501569.85 4800522,501471.61 4800521.63,501453.34 4800585.97') Cheers, Clint -- Clint Johnson Refractions Research Inc. Cjohnson at refractions.net Mark Adams wrote: > I will try that. However, my understanding of PROJECTION is that it is not > required unless you have data in more than one projection, or want to > display the data in a projection different from the one the data is in. Is > that not correct? > > Thanks. > > ------------------------------ > Mark Adams > Senior Analyst & Project Manager > Cuesta Systems (DPRA Canada) > 5230 South Service Road > Burlington, ON L7L 5K2 > Phone: 905-333-4544 x14 > Fax: 905-333-0455 > Email: mark.adams at dpra.com > > > -----Original Message----- > From: Emil Zegers [mailto:taatuut at planet.nl] > Sent: February 9, 2006 3:41 PM > To: Mark Adams; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: RE: [UMN_MAPSERVER-USERS] OGR Virtual > > Hello Mark, > > Have you tried adding a PROJECTION to the LAYER containing the ovf file > and/or the ovf file? > > Something like: > > LAYER > NAME "Virtual Parcel" > DEBUG ON > STATUS DEFAULT > CONNECTIONTYPE OGR > CONNECTION "parcel_test.ovf" > DATA "parcel_test" > TYPE POLYGON > # fill projection parameter, e.g. 28992 for Dutch system > PROJECTION > "init=epsg:12345" > END > TEMPLATE "null" > CLASS > NAME "Virtual Parcel" > STYLE > COLOR 255 1 5 > OUTLINECOLOR 168 112 0 > END > END > END > > > In the past I had situations where I needed to put the PROJECTION in the > LAYER and not in the OVF file. > > Also, use STATUS DEFAULT for testing purposes so the layer is always on. > > Regards, > > Emil > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Mark Adams > Sent: donderdag 9 februari 2006 21:12 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] OGR Virtual > > > Hello, > > I would like to know if there was ever a successful resolution to Frank's > question below. I am in the same situation: I cannot get the OGR virtual > layer to render on my map. > > I have had no problem with points. However when I try to render a virtual > polygon I get no error, just no feature on the map. The other layers all > render without problem. I get no error from OGRINFO either. > > I've tried a number of different ways of configuring the OVF file, the > data in the database, and the MAP file. Numerous combinations result > in "success" in the sense of no errors, but still no features. > > Here is my most recent attempt: > Connection: I'm using an ODBC connection to an MS Access database. The > ODBC connection is called "parcel_test". > > OVF: > > > ODBC:parcel_test,PROPERTY_VIRTUAL > SELECT GEOMETRY FROM PROPERTY_VIRTUAL > wkbPolygon > > > > > MAP: > LAYER > NAME "Virtual Parcel" > DEBUG ON > STATUS ON > CONNECTIONTYPE OGR > CONNECTION "parcel_test.ovf" > DATA "parcel_test" > TYPE POLYGON > TEMPLATE "null" > CLASS > NAME "Virtual Parcel" > STYLE > COLOR 255 1 5 > OUTLINECOLOR 168 112 0 > END > END > END > > I've got one record in the PROPERTY_VIRTUAL table, with the GEOMETRY value > set as follows: > POLYGON('501453.34 4800585.97,501576.14 4800590.44,501569.85 > 4800522,501471.61 4800521.63,501453.34 4800585.97') > > I've also tried storing the geometry without the quotes, brackets, and > keyword POLYGON but it doesn't change the result. > > I've captured this output when I refresh the map: > msOGRFileOpen(parcel_test.ovf)... > OGROPen > (\\Snow\c_drive\Inetpub\wwwroot\NTGO_GeoPortal\config\..\Data\Shapefiles/pa > rcel_test.ovf) > msOGRLayerClose(parcel_test.ovf). > msOGRFileClose > (\\Snow\c_drive\Inetpub\wwwroot\NTGO_GeoPortal\config\..\Data\Shapefiles/pa > rcel_test.ovf,0). > msDrawMap(): Layer 3 (Virtual Parcel), 0.130s > msDrawMap(): Layer 4 (Property Parcels), 0.101s > msDrawMap(): Layer 6 (Streets), 0.030s > msDrawMap(): Drawing Label Cache, 0.000s > msDrawMap() total time: 0.281s > msOGRFileOpen(parcel_test.ovf)... > OGROPen > (\\Snow\c_drive\Inetpub\wwwroot\NTGO_GeoPortal\config\..\Data\Shapefiles/pa > rcel_test.ovf) > msOGRLayerClose(parcel_test.ovf). > msOGRFileClose > (\\Snow\c_drive\Inetpub\wwwroot\NTGO_GeoPortal\config\..\Data\Shapefiles/pa > rcel_test.ovf,0). > msDrawMap(): Layer 3 (Virtual Parcel), 0.110s > msDrawMap(): Layer 4 (Property Parcels), 0.070s > msDrawMap(): Layer 6 (Streets), 0.030s > msDrawMap(): Drawing Label Cache, 0.000s > msDrawMap() total time: 0.220s > > >From the FWTools command line I get this: > C:\Program Files\FWTools1.0.0a7>ogrinfo ODBC:parcel_test > INFO: Open of `ODBC:parcel_test' > using driver `ODBC' successful. > 1: PROPERTY_VIRTUAL > > > C:\Program Files\FWTools1.0.0a7>ogrinfo ODBC:parcel_test PROPERTY_VIRTUAL > INFO: Open of `ODBC:parcel_test' > using driver `ODBC' successful. > > Layer name: PROPERTY_VIRTUAL > Geometry: Unknown (any) > Feature Count: 1 > Layer SRS WKT: > (unknown) > OBJECTID: Integer (10.0) > STATUS: String (20.0) > UTM_X: Real (0.0) > UTM_Y: Real (0.0) > AREA: Real (0.0) > SHAPE_Length: Real (0.0) > SHAPE_Area: Real (0.0) > HERITAGE: String (20.0) > PAR_UPDATE: String (10.0) > UPDATE_DATE: String (20.0) > CREATE_DATE: String (20.0) > UPDATE_SOURCE: String (50.0) > AREA_ACRE: Real (0.0) > PID: Integer (10.0) > AREA_HECTARE: Real (0.0) > OGRFeature(PROPERTY_VIRTUAL):0 > OBJECTID (Integer) = 2 > STATUS (String) = Active > UTM_X (Real) = 501405.687500125 > UTM_Y (Real) = 4801949.24999883 > AREA (Real) = 229.843703627485 > SHAPE_Length (Real) = 77.3317483960398 > SHAPE_Area (Real) = 229.843703627485 > HERITAGE (String) = PART V > PAR_UPDATE (String) = (null) > UPDATE_DATE (String) = (null) > CREATE_DATE (String) = (null) > UPDATE_SOURCE (String) = (null) > AREA_ACRE (Real) = 0.0567943791663515 > PID (Integer) = 42385 > AREA_HECTARE (Real) = 0.0229843703627485 > > Any help would be greatly appreciated. I have several polygon layers to > publish this way, ultimately from an Oracle database. > > Thanks in advance, > > ------------------------------ > Mark Adams > Senior Analyst & Project Manager > Cuesta Systems (DPRA Canada) > 5230 South Service Road > Burlington, ON L7L 5K2 > Phone: 905-333-4544 x14 > Fax: 905-333-0455 > Email: mark.adams at dpra.com > > > On Wed, 21 Dec 2005 00:10:06 -0600, Frank Fica > wrote: > > >> Hello, >> >> I've been trying to map a non-spatial postgre table with ogr via ODBC but >> > no success. There must > >> be a simple solution to what I'm missing and I haven't been able to >> > figure it out. My other layers > >> do render but my Virtual layer doesn't. When I test in ogrinfo I can >> > connect but when I try to map > >> in mapserver the image is blank, only my mapinfo layer renders. >> >> Does someone has any suggestions on what I'm missing? >> >> Here are is my ovf file: >> >> >> >> ODBC:@PostgreSQL,sorento >> sorento >> wkbPoint >> >> >> >> >> and map file: >> >> MAP >> IMAGETYPE PNG >> EXTENT -90.760314 14.252771 -90.210352 14.937117 >> SIZE 640 480 >> UNITS METERS >> >> SYMBOL >> NAME "circle" >> TYPE ELLIPSE >> POINTS >> 1 1 >> END >> FILLED TRUE >> END >> >> LAYER >> NAME "ciudad" >> TYPE POLYGON >> STATUS ON >> CONNECTIONTYPE OGR >> CONNECTION "/var/www/html/guatemala/data/ciudad.tab" >> STYLEITEM "AUTO" >> CLASS >> NAME "Ciudad" >> END >> END >> >> LAYER >> NAME "sorento" >> TYPE POINT >> CONNECTIONTYPE OGR >> CONNECTION "virtual.ovf" >> DATA "sorento" >> STATUS DEFAULT >> CLASS >> STYLE >> SYMBOL 'circle' >> SIZE 30 >> COLOR 255 0 0 >> END >> END >> END >> END >> From warmerdam at POBOX.COM Thu Feb 9 13:56:19 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 9 Feb 2006 16:56:19 -0500 Subject: fastcgi In-Reply-To: Message-ID: Mark Adams wrote: > I understand that mapserver now has fastcgi support. I would like to take > advantage of this. I found a HOWTO on fastcgi under windows > (FastCGIOnWin32), however that appeared Apache specific. I followed the > links from the fastcgi home page and found a Windows binary distribution > from 2002, consisting of a zip file with 2 DLLS, one nsapi and the other > isapi. > > But - no instructions. What do I so with the Isapi DLL? Do I need to > enable this extension in IIS, do I just copy the dll to my system32 > folder... Anybody? > > My environment is windows 2003 server, PHP running as CGI, and mapserver > with PHP mapscript. Mark, I had to do quite a bit of hacking to get all the components together to make fastcgi work under Apache on win32. I'm sure it can be made to work under IIS, but I'm not saying it will be easy. I have certainly never tried, so I have no idea what issues you will run into. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From kris_rock82 at YAHOO.COM Thu Feb 9 14:48:43 2006 From: kris_rock82 at YAHOO.COM (krishna S) Date: Thu, 9 Feb 2006 16:48:43 -0600 Subject: Label Overlap removal, mapfile Message-ID: Hello all, i was wondering can we remove the overlapping of labels from different layers in a mapfile and display the labels so that each and every label is visible. Any suggestions ... --kris From kenlord at GMAIL.COM Thu Feb 9 15:27:01 2006 From: kenlord at GMAIL.COM (Ken Lord) Date: Thu, 9 Feb 2006 15:27:01 -0800 Subject: Label Overlap removal, mapfile In-Reply-To: Message-ID: Hi Krishna, Make sure that LABELCACHE is set to ON in your layers. (the default setting), it will then cache the labels to be drawn last, to avoid the overlapping. Here's the relevant page in the documentation: http://mapserver.gis.umn.edu/docs/reference/mapfile/layer Cheers, Ken Lord Vancouver BC On 2/9/06, krishna S wrote: > Hello all, i was wondering can we remove the overlapping of labels from > different layers in a mapfile and display the labels so that each and every > label is visible. > > > Any suggestions ... > > --kris > From kris_rock82 at YAHOO.COM Thu Feb 9 15:36:45 2006 From: kris_rock82 at YAHOO.COM (krishna S) Date: Thu, 9 Feb 2006 17:36:45 -0600 Subject: Label Overlap removal, mapfile Message-ID: I set the label cache to On but didnt find any major difference, i even varied the position to lc,cc,uc and others and checked but no use. Is there any other way that we can avoid the over lapping of the labels. Thanks for your time ..... --kris From simbiotico at HOTMAIL.COM Thu Feb 9 15:47:12 2006 From: simbiotico at HOTMAIL.COM (Simbiosis Amorpha) Date: Thu, 9 Feb 2006 17:47:12 -0600 Subject: OGR Virtual Message-ID: Hi Mark, I actually got my ovf running. Try enabling debugging in mapserver and in the database server. I got my problem solved after debugging the messages from mapserver in my logs. Frank >From: Mark Adams >Reply-To: Mark Adams >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] OGR Virtual >Date: Thu, 9 Feb 2006 16:35:23 -0500 > >Clint, > >Thanks for the response, but you may be getting my posting and the one I >was >responding to mixed up. My extent is defined in my MAP file as follows: > EXTENT 500599 4799427 502325 4801598 >I derived the coordinates for my sample polygon by actually looking at the >map of the other layers... so I can't see this being an extents issue. > >Thanks. > >------------------------------ >Mark Adams >Senior Analyst & Project Manager >Cuesta Systems (DPRA Canada) >5230 South Service Road >Burlington, ON L7L 5K2 >Phone: 905-333-4544 x14 >Fax: 905-333-0455 >Email: mark.adams at dpra.com > > >-----Original Message----- >From: Clint Johnson [mailto:cjohnson at refractions.net] >Sent: February 9, 2006 4:24 PM >To: Mark Adams >Subject: Re: [UMN_MAPSERVER-USERS] OGR Virtual > >Mark, > >You are correct about not needing any projection elements when all data >is of the same projection; however, this is because MapServer will >assume all layers use the same projection >(http://mapserver.gis.umn.edu/docs/reference/mapfile/projection >at bottom under Important Notes). > >But for that to happen Mapserver will need to read that projection from >the ciudad layer as ogrinfo clearly stated the following about the >parcel_test layer... > >Layer name: PROPERTY_VIRTUAL >Geometry: Unknown (any) >Feature Count: 1 >Layer SRS WKT: >(unknown) > >Thus it wouldn't hurt to explicitly state the projection. >However, since no errors were produced when creating the map image, I >have a "feeling" that this may be an extent issue. > > >Look at the map file and your polygon. Are you *sure* that your >polygon's geometry fits inside of your specified extent? > >EXTENT -90.760314 14.252771 -90.210352 14.937117 > >vs > >POLYGON('501453.34 4800585.97,501576.14 4800590.44,501569.85 >4800522,501471.61 4800521.63,501453.34 4800585.97') > > >Cheers, >Clint > >-- >Clint Johnson >Refractions Research Inc. >Cjohnson at refractions.net > > > >Mark Adams wrote: > > I will try that. However, my understanding of PROJECTION is that it is >not > > required unless you have data in more than one projection, or want to > > display the data in a projection different from the one the data is in. >Is > > that not correct? > > > > Thanks. > > > > ------------------------------ > > Mark Adams > > Senior Analyst & Project Manager > > Cuesta Systems (DPRA Canada) > > 5230 South Service Road > > Burlington, ON L7L 5K2 > > Phone: 905-333-4544 x14 > > Fax: 905-333-0455 > > Email: mark.adams at dpra.com > > > > > > -----Original Message----- > > From: Emil Zegers [mailto:taatuut at planet.nl] > > Sent: February 9, 2006 3:41 PM > > To: Mark Adams; MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: RE: [UMN_MAPSERVER-USERS] OGR Virtual > > > > Hello Mark, > > > > Have you tried adding a PROJECTION to the LAYER containing the ovf file > > and/or the ovf file? > > > > Something like: > > > > LAYER > > NAME "Virtual Parcel" > > DEBUG ON > > STATUS DEFAULT > > CONNECTIONTYPE OGR > > CONNECTION "parcel_test.ovf" > > DATA "parcel_test" > > TYPE POLYGON > > # fill projection parameter, e.g. 28992 for Dutch system > > PROJECTION > > "init=epsg:12345" > > END > > TEMPLATE "null" > > CLASS > > NAME "Virtual Parcel" > > STYLE > > COLOR 255 1 5 > > OUTLINECOLOR 168 112 0 > > END > > END > > END > > > > > > In the past I had situations where I needed to put the PROJECTION in the > > LAYER and not in the OVF file. > > > > Also, use STATUS DEFAULT for testing purposes so the layer is always on. > > > > Regards, > > > > Emil > > > > > > -----Original Message----- > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > > Behalf Of Mark Adams > > Sent: donderdag 9 februari 2006 21:12 > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] OGR Virtual > > > > > > Hello, > > > > I would like to know if there was ever a successful resolution to >Frank's > > question below. I am in the same situation: I cannot get the OGR virtual > > layer to render on my map. > > > > I have had no problem with points. However when I try to render a >virtual > > polygon I get no error, just no feature on the map. The other layers all > > render without problem. I get no error from OGRINFO either. > > > > I've tried a number of different ways of configuring the OVF file, the > > data in the database, and the MAP file. Numerous combinations result > > in "success" in the sense of no errors, but still no features. > > > > Here is my most recent attempt: > > Connection: I'm using an ODBC connection to an MS Access database. The > > ODBC connection is called "parcel_test". > > > > OVF: > > > > > > ODBC:parcel_test,PROPERTY_VIRTUAL > > SELECT GEOMETRY FROM PROPERTY_VIRTUAL > > wkbPolygon > > > > > > > > > > MAP: > > LAYER > > NAME "Virtual Parcel" > > DEBUG ON > > STATUS ON > > CONNECTIONTYPE OGR > > CONNECTION "parcel_test.ovf" > > DATA "parcel_test" > > TYPE POLYGON > > TEMPLATE "null" > > CLASS > > NAME "Virtual Parcel" > > STYLE > > COLOR 255 1 5 > > OUTLINECOLOR 168 112 0 > > END > > END > > END > > > > I've got one record in the PROPERTY_VIRTUAL table, with the GEOMETRY >value > > set as follows: > > POLYGON('501453.34 4800585.97,501576.14 4800590.44,501569.85 > > 4800522,501471.61 4800521.63,501453.34 4800585.97') > > > > I've also tried storing the geometry without the quotes, brackets, and > > keyword POLYGON but it doesn't change the result. > > > > I've captured this output when I refresh the map: > > msOGRFileOpen(parcel_test.ovf)... > > OGROPen > > >(\\Snow\c_drive\Inetpub\wwwroot\NTGO_GeoPortal\config\..\Data\Shapefiles/pa > > rcel_test.ovf) > > msOGRLayerClose(parcel_test.ovf). > > msOGRFileClose > > >(\\Snow\c_drive\Inetpub\wwwroot\NTGO_GeoPortal\config\..\Data\Shapefiles/pa > > rcel_test.ovf,0). > > msDrawMap(): Layer 3 (Virtual Parcel), 0.130s > > msDrawMap(): Layer 4 (Property Parcels), 0.101s > > msDrawMap(): Layer 6 (Streets), 0.030s > > msDrawMap(): Drawing Label Cache, 0.000s > > msDrawMap() total time: 0.281s > > msOGRFileOpen(parcel_test.ovf)... > > OGROPen > > >(\\Snow\c_drive\Inetpub\wwwroot\NTGO_GeoPortal\config\..\Data\Shapefiles/pa > > rcel_test.ovf) > > msOGRLayerClose(parcel_test.ovf). > > msOGRFileClose > > >(\\Snow\c_drive\Inetpub\wwwroot\NTGO_GeoPortal\config\..\Data\Shapefiles/pa > > rcel_test.ovf,0). > > msDrawMap(): Layer 3 (Virtual Parcel), 0.110s > > msDrawMap(): Layer 4 (Property Parcels), 0.070s > > msDrawMap(): Layer 6 (Streets), 0.030s > > msDrawMap(): Drawing Label Cache, 0.000s > > msDrawMap() total time: 0.220s > > > > >From the FWTools command line I get this: > > C:\Program Files\FWTools1.0.0a7>ogrinfo ODBC:parcel_test > > INFO: Open of `ODBC:parcel_test' > > using driver `ODBC' successful. > > 1: PROPERTY_VIRTUAL > > > > > > C:\Program Files\FWTools1.0.0a7>ogrinfo ODBC:parcel_test >PROPERTY_VIRTUAL > > INFO: Open of `ODBC:parcel_test' > > using driver `ODBC' successful. > > > > Layer name: PROPERTY_VIRTUAL > > Geometry: Unknown (any) > > Feature Count: 1 > > Layer SRS WKT: > > (unknown) > > OBJECTID: Integer (10.0) > > STATUS: String (20.0) > > UTM_X: Real (0.0) > > UTM_Y: Real (0.0) > > AREA: Real (0.0) > > SHAPE_Length: Real (0.0) > > SHAPE_Area: Real (0.0) > > HERITAGE: String (20.0) > > PAR_UPDATE: String (10.0) > > UPDATE_DATE: String (20.0) > > CREATE_DATE: String (20.0) > > UPDATE_SOURCE: String (50.0) > > AREA_ACRE: Real (0.0) > > PID: Integer (10.0) > > AREA_HECTARE: Real (0.0) > > OGRFeature(PROPERTY_VIRTUAL):0 > > OBJECTID (Integer) = 2 > > STATUS (String) = Active > > UTM_X (Real) = 501405.687500125 > > UTM_Y (Real) = 4801949.24999883 > > AREA (Real) = 229.843703627485 > > SHAPE_Length (Real) = 77.3317483960398 > > SHAPE_Area (Real) = 229.843703627485 > > HERITAGE (String) = PART V > > PAR_UPDATE (String) = (null) > > UPDATE_DATE (String) = (null) > > CREATE_DATE (String) = (null) > > UPDATE_SOURCE (String) = (null) > > AREA_ACRE (Real) = 0.0567943791663515 > > PID (Integer) = 42385 > > AREA_HECTARE (Real) = 0.0229843703627485 > > > > Any help would be greatly appreciated. I have several polygon layers to > > publish this way, ultimately from an Oracle database. > > > > Thanks in advance, > > > > ------------------------------ > > Mark Adams > > Senior Analyst & Project Manager > > Cuesta Systems (DPRA Canada) > > 5230 South Service Road > > Burlington, ON L7L 5K2 > > Phone: 905-333-4544 x14 > > Fax: 905-333-0455 > > Email: mark.adams at dpra.com > > > > > > On Wed, 21 Dec 2005 00:10:06 -0600, Frank Fica > > wrote: > > > > > >> Hello, > >> > >> I've been trying to map a non-spatial postgre table with ogr via ODBC >but > >> > > no success. There must > > > >> be a simple solution to what I'm missing and I haven't been able to > >> > > figure it out. My other layers > > > >> do render but my Virtual layer doesn't. When I test in ogrinfo I can > >> > > connect but when I try to map > > > >> in mapserver the image is blank, only my mapinfo layer renders. > >> > >> Does someone has any suggestions on what I'm missing? > >> > >> Here are is my ovf file: > >> > >> > >> > >> ODBC:@PostgreSQL,sorento > >> sorento > >> wkbPoint > >> > >> > >> > >> > >> and map file: > >> > >> MAP > >> IMAGETYPE PNG > >> EXTENT -90.760314 14.252771 -90.210352 14.937117 > >> SIZE 640 480 > >> UNITS METERS > >> > >> SYMBOL > >> NAME "circle" > >> TYPE ELLIPSE > >> POINTS > >> 1 1 > >> END > >> FILLED TRUE > >> END > >> > >> LAYER > >> NAME "ciudad" > >> TYPE POLYGON > >> STATUS ON > >> CONNECTIONTYPE OGR > >> CONNECTION "/var/www/html/guatemala/data/ciudad.tab" > >> STYLEITEM "AUTO" > >> CLASS > >> NAME "Ciudad" > >> END > >> END > >> > >> LAYER > >> NAME "sorento" > >> TYPE POINT > >> CONNECTIONTYPE OGR > >> CONNECTION "virtual.ovf" > >> DATA "sorento" > >> STATUS DEFAULT > >> CLASS > >> STYLE > >> SYMBOL 'circle' > >> SIZE 30 > >> COLOR 255 0 0 > >> END > >> END > >> END > >> END > >> From listario at GMAIL.COM Thu Feb 9 16:10:24 2006 From: listario at GMAIL.COM (J. Parapar) Date: Fri, 10 Feb 2006 01:10:24 +0100 Subject: Select, Zoom Multiple Items In-Reply-To: <000001c62d9c$69f74a40$510a000a@jasper1.com> Message-ID: Hi Lawrence ?Perhaps enclosing qstring in brackets or adding single quotes around the qstring values like qstring=('[SECTION_]'='21' AND '[TWP]'='80' AND '[RNG]'='19')? Best regards Jorge 2006/2/9, Lawrence Hartpence : > Thanks to Jorge for giving me some direction. > > I am still stumped however. The article Jorge referred me to says that a > windows machine does need to specify a QITEM. When I set up my query using > 3 different items, it acts like it is selecting, but no results are returned > and nothing is highlighted or zoomed to on the map. Here is how the query > is returned in the URL: > > &qstring=%27%5BSECTION_%5D%27%3D21+AND+%27%5BTWP%5D%27%3D80+AND+%27%5BRNG%5D > %27%3D19&qlayer=Sections&qitem=&shapeindex=&savequery= > > Any help would be greatly appreciated. > > I also find that documentation on all the query modes is hard to find. If > anyone has a comprehensive document explaining how all the query modes work, > I would love to see it. > > Lawrence > > > From luca76 at GMAIL.COM Fri Feb 10 01:59:35 2006 From: luca76 at GMAIL.COM (Luca Manganelli) Date: Fri, 10 Feb 2006 10:59:35 +0100 Subject: How to reduce number of colours in a TIF image? Message-ID: hi, it's possible to reduce the number of colours in a TIF image from 24bit to 16? All softwares I tried (Photoshop, Gimp, Imagemagick) supports colour reduction to a maximum of 256. From candalt at ONLINE.NO Fri Feb 10 02:15:59 2006 From: candalt at ONLINE.NO (=?iso-8859-1?Q?Sture_Dings=F8yr?=) Date: Fri, 10 Feb 2006 11:15:59 +0100 Subject: WFS PropertyIsLike case sensitive Message-ID: Hi I have been testing the WFS FILTER with Mapserver. Is it possible to make a property search that is not case sensitive? Been testing with this filter, that works fine: LOK_KOMMAR% But if i change the "AR*" to lower case e.g. "ar*" i get no hits. Does Mapserver support case insensitivity in WFS FILTER search? I am running on Windows with Mapserver 4.8.1 Regards Sture From sig at CM-ALBUFEIRA.PT Fri Feb 10 03:38:30 2006 From: sig at CM-ALBUFEIRA.PT (Ricardo Sena) Date: Fri, 10 Feb 2006 05:38:30 -0600 Subject: Query template bug with MapServer 4.8.1 Message-ID: Hi, I think there?s a small bug on the query template with Mapserver 4.8.1. When using the [shpxy] substitution string with no formatting options, the result is the list of the feature coordinates with a coma (,) after the x coordinate. According to the documentation the coma is used only as default after the xy pair coordinates, and this was the behaviour on previous versions (4.6.1). My query template file is: The cgi request is: http://localhost/scripts/mapserv.exe? map=mapa.map&mode=itemnquery&map_querymap_size=561 358&mapsize=561 358&qlayer=streets&qitem=id&qstring=4190&mapext=shapes&layers=base The response from the template is: I get the correct result if I change the geometry formatting options in the query template file to write a space after the x coordinate: Is this a bug or the default values changed? I?m using a Windows XP machine with IIS 5.0. Thanks, Ricardo Sena From maro.jam at TISCALI.IT Fri Feb 10 03:53:54 2006 From: maro.jam at TISCALI.IT (Andrea Marelli) Date: Fri, 10 Feb 2006 05:53:54 -0600 Subject: php/mapscript queryByRect on raster files Message-ID: Hi guys, i'm implementing queryByRect on raster files using php/mapscript. The script i've written (see following code) works well, but i have a little problem when i make queries on large areas... It seems that the getShape function uses a very large amount of memory on the server, so i put $shape->free(); but it seems to do nothing.. Any suggestion on how to free shared memory on server? $query_rect = ms_newRectObj(); $query_rect->setextent($westlon, $northlat, $eastlon, $southlat); @$layer = $map->getLayer(0); $return = $layer->queryByRect($query_rect); if($return == MS_SUCCESS){ $num_results = $layer->getNumResults(); $layer->open(); for($i=0; $i<$num_results; $i++){ $shape = $layer->getShape(0, $i); $values = $shape->values; // output echo $values['value_list']; echo '
'; $shape->free(); // ?????? unset($shape); unset($values); } $layer->close(); $map->freequery(0); $query_rect->free(); } From teemu.makela at ARBONAUT.COM Fri Feb 10 06:57:15 2006 From: teemu.makela at ARBONAUT.COM (Teemu Makela) Date: Fri, 10 Feb 2006 08:57:15 -0600 Subject: Online raster processing? Message-ID: In MapServer Documentation "Raster Data Access" is a following example: "CLASS NAME "near white" EXPRESSION ([red] > 200 AND [green] > 200 AND [blue] > 200) STYLE COLOR 0 255 0 END END" However, it is also stated that "Raster classifications always take place on only one raster band. It defaults to the first band in the referenced file, but this can be altered with the BANDS PROCESSING directive." IS IT POSSIBLE TO CLASSIFY SEVERAL BANDS? My problem: I have large set of aerial images. Map file, which work fine: "LAYER NAME "Aerial images" TYPE RASTER STATUS ON MINSCALE 40 MAXSCALE 50000 PROJECTION "init=epsg:2393" END TILEINDEX "ilmakuvat.shp" #image format is ECW END" I need to reclassify images online so that near white colors would be set to 250,250,250. So, I tried this: LAYER NAME "Classified" TYPE RASTER STATUS ON MINSCALE 40 MAXSCALE 50000 PROJECTION "init=epsg:2393" END TILEINDEX "ilmakuvat.shp" #image format is ECW PROCESSING "BANDS=1,2,3" CLASS NAME "near white" EXPRESSION ([red] > 250 AND [green] > 250 AND [blue] > 250) STYLE COLOR 250 250 250 END END END But it does not work. Alone "PROCESSING "BANDS=1,2,3" or "PROCESSING "BANDS=3,2,1" work fine and produces images with different color scheme. PROCESSING with one (1) band only works with CLASS definition. So map file: "PROCESSING "BANDS=2" ... CLASS NAME "near white" EXPRESSION ([red] > 250 AND [green] > 250 AND [blue] > 250) STYLE COLOR 250 250 250 END END" Generates an image with some red pixels, otherwise white. This is fine. However, if there is CLASS definition and PROCESSING of several bands (PROCESSING "BANDS=1,2,3") at the same time no image is generated. What should I do? Teemu From warmerdam at POBOX.COM Fri Feb 10 07:29:57 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 10 Feb 2006 10:29:57 -0500 Subject: Online raster processing? In-Reply-To: Message-ID: Teemu Makela wrote: > In MapServer Documentation "Raster Data Access" is a following example: > > "CLASS > NAME "near white" > EXPRESSION ([red] > 200 AND [green] > 200 AND [blue] > 200) > STYLE > COLOR 0 255 0 > END > END" > > However, it is also stated that "Raster classifications always take place on > only one raster band. It defaults to the first band in the referenced file, > but this can be altered with the BANDS PROCESSING directive." > > IS IT POSSIBLE TO CLASSIFY SEVERAL BANDS? Teemu, No, it is not currently possible to classify several bands. The above "near white" example only works meaningfully for one band files with a color table. In which case it will select all pixels who's color table entries are near white. Internally raster classification in Mapserver works by classifying in a lookup table, and this precludes multi-band operations. In any event, the expression lookup approach in mapserver is slow enough that I would not want to try it for each pixel which is what would be required for real multi-band classification. Sorry! Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From fabio.dovidio at PLANETEK.IT Fri Feb 10 08:02:58 2006 From: fabio.dovidio at PLANETEK.IT (Fabio D' Ovidio) Date: Fri, 10 Feb 2006 17:02:58 +0100 Subject: MAPSERVER COMPILATION ERROR Message-ID: In your opinion, WHY ? Thank You Fabio D'Ovidio Planetek Italia Srl via Massaua 12, Bari -70123 Italy e-mail : dovidio at planetek.it http://www.planetek.it Dear list, I have compiled mapserver 4.6.2 under Windows 2000.. I have compiled the following libraries : PROJ GD LIBPNG ZLIB REGEX JPEG LIBCURL FREETYPE After compiling I have installed mapserver, following HOW TO..instructions on the web site. When I test the installation the response is OK : "NO QUERY_STRING to decode" The problem is : when I do a request for a simple map file (few layers and limitated SIZE, 100 x 100 or 200x200 pixels) mapserver works fine, but when I do not simple requests (more layers, bigger SIZE, 500 x 500 or 800 x 600) mapserver returns this error : msLoadMap(): Unable to access file. (C:\Inetpub\wwwroot\applicazioni\applicazioni_file\bari_wolf.map) OR : Error CGI The application CGI specified has not returned a complete whole headings HTTP. The following headings are been returned: o/ooPNG -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.esposito at SOFTEC-SRL.COM Fri Feb 10 07:56:03 2006 From: m.esposito at SOFTEC-SRL.COM (Maurizio Esposito) Date: Fri, 10 Feb 2006 09:56:03 -0600 Subject: Two-level Query Message-ID: Hi list I'm trying to solve this problem: map server uses a layer "buildings" from Postgres, queryable and query works fine. I would query an element in the layer, a single building, and besides the building_id and parcel number I would like to query an other table in Postgres, say "homeowner" , with columns building_id, homeowner_name,home_value and show results in mapserver query.If possible not as a joined table, I'd prefer a separate result with header and footer. Any suggestion? Another question: when using query map with option HILITE, selected items are hilighted if are polygons but if are lines they don't. Why? Missing something in mapfile? Any help much appreciated, ty Maurizio Esposito From m.esposito at SOFTEC-SRL.COM Fri Feb 10 07:49:24 2006 From: m.esposito at SOFTEC-SRL.COM (Maurizio Esposito) Date: Fri, 10 Feb 2006 16:49:24 +0100 Subject: Two-level Query Message-ID: Hi list I'm trying to solve this problem: map server uses a layer "buildings" from Postgres, queryable and query works fine. I would query an element in the layer, a single building, and besides the building_id and parcel number I would like to query an other table in Postgres, say "homeowner" , with columns building_id, homeowner_name,home_value and show results in mapserver query.If possible not as a joined table, I'd prefer a separate result with header and footer. Any suggestion? Another question: when using query map with option HILITE, selected items are hilighted if are polygons but if are lines they don't. Why? Missing something in mapfile? Any help much appreciated, ty Maurizio Esposito -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at GMAIL.COM Fri Feb 10 08:40:07 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Fri, 10 Feb 2006 17:40:07 +0100 Subject: MAPSERVER COMPILATION ERROR In-Reply-To: <43ECC742.19111.6BA75A3@fabio.dovidio.planetek.it> Message-ID: This is not a compilation error, I'd say the error message is quite clear and please do NOT post subjects in upper case. Either the path is incorrect or the permissions on the file prevent mapserver from opening it. Umberto On 2/10/06, Fabio D' Ovidio wrote: > > > > Dear list, > > > I have compiled mapserver 4.6.2 under Windows 2000.. > I have compiled the following libraries : > > > PROJ > GD > LIBPNG > ZLIB > REGEX > JPEG > LIBCURL > FREETYPE > > > After compiling I have installed mapserver, following HOW TO..instructions > on the web site. > > > When I test the installation the response is OK : "NO QUERY_STRING to > decode" > > > The problem is : when I do a request for a simple map file (few layers and > limitated SIZE, 100 x 100 or 200x200 pixels) mapserver works fine, but when > I do not simple requests (more layers, bigger SIZE, 500 x 500 or 800 x 600) > mapserver returns this error : > > > > msLoadMap(): Unable to access file. > (C:\Inetpub\wwwroot\applicazioni\applicazioni_file\bari_wolf.map) > OR : > Error CGI > The application CGI specified has not returned a complete whole headings > HTTP. The following headings are been returned: > ?PNG > > > > > In your opinion, WHY ? > > > Thank You > > > > > Fabio D'Ovidio > Planetek Italia Srl > via Massaua 12, Bari -70123 Italy > e-mail : dovidio at planetek.it > http://www.planetek.it > > > > > > > > From Jeremy.Raw at DURHAMNC.GOV Fri Feb 10 09:07:07 2006 From: Jeremy.Raw at DURHAMNC.GOV (Raw, Jeremy) Date: Fri, 10 Feb 2006 12:07:07 -0500 Subject: OGR+ODBC with Debian Sarge Mapserver Message-ID: I'll follow up my own post regarding getting ODBC access to work in mapserver under Debian "sarge", since I now have this working (and so others who might later search for a solution to this can be encouraged). Straight recompilation proved to be an easy ticket to getting mapserver working with Debian+Sarge+ODBC (and I upgraded to mapserver 4.8.1 in the process, which may also have helped). I was a bit intimidated about recompilation from having tried this once before when I was running on 'woody' (older Debian version), and then had to deal with backports and other such ugliness. The present process is pretty painless since all the required support libraries are already built in suitable development versions as Debian packages. So it really just boiled down to unpacking the mapserver source distribution into a suitable directory, doing "./configure" a few times with suitable options turned on (and getting the missing packages as they were identified) and finally doing a "make". After everything compiled, I just copied the revised mapserver into my cgi-bin folder under a new name (so the old mapserv is still there just in case) and I'm now happily displaying X/Y map points from a MySQL data table (even using a rather more complicated query than shown originally). I hope someone benefits from this someday... --- Jeremy Raw Transportation Systems Engineer / City of Durham / DCHC MPO 919-560-4366 ext. 308 / Jeremy.Raw at durhamnc.gov ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Raw, Jeremy Sent: Friday, February 03, 2006 4:02 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] OGR+ODBC with Debian Sarge Mapserver Question: Does OGR ODBC access to a database table containing X/Y data work in the standard Debian sarge Mapserver package (as opposed to having to compile it from the ground up myself)? Details: I've been happily running the Debian sarge standard package of Mapserver (version 4.4.1) for a number of months. The data sources for this project have (until now) all been in shapefiles and inline features (passed in via CGI). I'm now trying to enlarge the application to display point data from a MySQL database table containing X/Y data. Following the terse but workable how-to on the Mapserver website, I've got ODBC up and running and verified it all the way through using ogrinfo (from the standard sarge gdal package) to access the data. Unfortunately, my mapserver (and also shp2img) perform a segmentation fault every time they try to access the ODBC layer, with no indication of what's wrong. All I'd really like to know is if someone has gotten this to work (or equally, if someone knows for sure that the standard sarge package does not have suitable capabilities compiled in, or if it conflicts with something else etc.) before I set about building the whole mapserver setup from scratch. Here's the test.ovf file (OGR Connection definition), which as I noted works fine with ogrinfo (the file lives in my SHAPEPATH): ODBC:user/password at MySQL Select * from mypoints where (ptid<100) wkbPoint Here's the (very basic) layer definition from the mapfile - the "circle" symbol is defined and works in other layers. LAYER NAME "mypoints" CONNECTIONTYPE OGR CONNECTION "test.ovf" DATA "mypoints" STATUS DEFAULT TYPE POINT CLASS STYLE COLOR 0 0 0 SIZE 2 SYMBOL "circle" END END END Any help or advice much appreciated. Jeremy --- Jeremy Raw Transportation Systems Engineer / City of Durham / DCHC MPO 919-560-4366 ext. 308 / Jeremy.Raw at durhamnc.gov -------------- next part -------------- An HTML attachment was scrubbed... URL: From ltrevino at GPOBSI.COM.MX Sat Feb 11 09:10:10 2006 From: ltrevino at GPOBSI.COM.MX (=?iso-8859-1?Q?Luis_Trevi=F1o_Huerta?=) Date: Sat, 11 Feb 2006 11:10:10 -0600 Subject: GPS coordinate Message-ID: Leo: One option is to use de FEATURE object, you can include into your layer definition something like: FEATURE POINTS lat value long value END END and include the symbol for that point, something like... CLASS SYMBOL 'square' SIZE 10 COLOR 255 0 255 END hope it helps Regards Luis ----- Original Message ----- From: "Leonardo Lamarca" To: Sent: Thursday, February 09, 2006 11:15 AM Subject: [UMN_MAPSERVER-USERS] GPS coordinate > Anyone can help me? > How can I set a point on map using GPS coordinate (latitude/longitude) ? > The user will input latitude and longitude coordinates and the software > must draw a point on map. > > [] > Leo Lamarca From woodbri at SWOODBRIDGE.COM Fri Feb 10 09:59:53 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 10 Feb 2006 12:59:53 -0500 Subject: GPS coordinate In-Reply-To: <006f01c62f30$4fd9d750$4101a8c0@PAVILION> Message-ID: Since mapserver expects coordinate values in x,y you probably want to enter your data below as long lat instead of lat long. -Steve Luis Trevi?o Huerta wrote: > Leo: > > One option is to use de FEATURE object, you can include into your layer > definition something like: > > FEATURE > POINTS > lat value long value > END > END > > and include the symbol for that point, something like... > CLASS > SYMBOL 'square' > SIZE 10 > COLOR 255 0 255 > END > > hope it helps > Regards > Luis > ----- Original Message ----- From: "Leonardo Lamarca" > > To: > Sent: Thursday, February 09, 2006 11:15 AM > Subject: [UMN_MAPSERVER-USERS] GPS coordinate > > >> Anyone can help me? >> How can I set a point on map using GPS coordinate (latitude/longitude) ? >> The user will input latitude and longitude coordinates and the >> software must draw a point on map. >> >> [] >> Leo Lamarca > > From bob.basques at CI.STPAUL.MN.US Fri Feb 10 11:36:55 2006 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Fri, 10 Feb 2006 13:36:55 -0600 Subject: Printing (hi-res) and scaling, Lines and Symbols. Message-ID: All, Any pointers on how to handle something like this. For example, any way to apply a global scale factor to annotation in a mapfile in some form? Just hoping. :c) Do I need completly seperate MapFile for each Paper resolution I want to use? bobb From steve.lime at DNR.STATE.MN.US Fri Feb 10 12:09:10 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 10 Feb 2006 14:09:10 -0600 Subject: Query template bug with MapServer 4.8.1 Message-ID: I believe the defaults have changed to match the the specs for an image map, which seems to be the most common use of the shpxy tag. I'll review the source and update the documentation when I get a moment. I've created a bug (#1656) to make sure it get's done... Steve >>> Ricardo Sena 02/10/06 5:38 AM >>> Hi, I think there's a small bug on the query template with Mapserver 4.8.1. When using the [shpxy] substitution string with no formatting options, the result is the list of the feature coordinates with a coma (,) after the x coordinate. According to the documentation the coma is used only as default after the xy pair coordinates, and this was the behaviour on previous versions (4.6.1). My query template file is: The cgi request is: http://localhost/scripts/mapserv.exe? map=mapa.map&mode=itemnquery&map_querymap_size=561 358&mapsize=561 358&qlayer=streets&qitem=id&qstring=4190&mapext=shapes&layers=base The response from the template is: I get the correct result if I change the geometry formatting options in the query template file to write a space after the x coordinate: Is this a bug or the default values changed? I'm using a Windows XP machine with IIS 5.0. Thanks, Ricardo Sena From osgis.lists at GMAIL.COM Fri Feb 10 12:43:32 2006 From: osgis.lists at GMAIL.COM (David Bitner) Date: Fri, 10 Feb 2006 14:43:32 -0600 Subject: Printing (hi-res) and scaling, Lines and Symbols. In-Reply-To: <43ECEB57.8000604@ci.stpaul.mn.us> Message-ID: Bob -- This is what I do in PHP mapscript (I use FPDF to create a pdf with the scaled image) $scale=4; $labelfudge=.5; $stylefudge=.5; $map->set('resolution',72*$scale); $numLayers = $map->numlayers; $classimages=array(); $classnames=array(); for ($i=0; $i < $numLayers; $i++) { $layer = $map->getlayer($i); if ($layer->status == 1 ){ for ($j=0; $j < $layer->numclasses; $j++) { $class = $layer->getClass($j); $label = $class->label; if ($layer->type !=4){ $classimageobj=$class->createLegendIcon(60,60); $classimages[]=$classimageobj->saveWebImage(); $classnames[]=$class->name; } if ($label->mindistance>1){ $md=$label->mindistance; $newmd=$md*$scale; $label->set('mindistance',$newmd); } if ($label->type == 'TRUETYPE') { $labelsize=$label->size; $newlabelsize=$labelsize*$scale*$labelfudge; $label->set('size',$newlabelsize); } for ($k=0; $k < $class->numstyles; $k++) { $style = $class->getStyle($k); $style->set("size", $style->size * $scale * $stylefudge); $style->set("offsetx", $style->offsetx * $scale); $style->set("offsety", $style->offsety * $scale); } } } } David On 2/10/06, Bob Basques wrote: > All, > > Any pointers on how to handle something like this. > > For example, any way to apply a global scale factor to annotation in a > mapfile in some form? Just hoping. :c) > > Do I need completly seperate MapFile for each Paper resolution I want to > use? > > bobb > From steve.lime at DNR.STATE.MN.US Fri Feb 10 13:29:26 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 10 Feb 2006 15:29:26 -0600 Subject: MS RFC 10: Voting results... Message-ID: Hi folks: Well, the vote to join the OSG Foundation has ended in a landslide- 74 in favor with 1 (a user curiously named JackD) dissenter. With that, RFC 10 passes and the MapServer Project can proceed and join the foundation. How that happens is still a bit of a mystery. The interim foundation board is working to develop the formal process. To be sure, it will involve combing over the MapServer codebase to address any potential intellectual property or copyright issues. So what does this mean for MapServer users? For the most part it will be business as usual. The same folks that have been working on the MapServer project will continue to do so. The Technical Steering Committee will remain intact and continue to oversee software development. In the short term you may start to see project infrastructure (bug reporting, mailing lists, etc...) move from University to Foundation servers. In the long term we hope you will continue to see MapServer flourish and benefit from living alongside other great Open Source projects. To learn more about the OSG Foundation and/or to join relevant mailing lists please visit: http://www.osgeo.org/ Steve Chair, MTSC From steve.lime at DNR.STATE.MN.US Fri Feb 10 13:31:39 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 10 Feb 2006 15:31:39 -0600 Subject: Label Overlap removal, mapfile Message-ID: By default all label collisions are avoided, which leads me to believe there are problems with your mapfile. Can you post it? Steve >>> krishna S 02/09/06 5:36 PM >>> I set the label cache to On but didnt find any major difference, i even varied the position to lc,cc,uc and others and checked but no use. Is there any other way that we can avoid the over lapping of the labels. Thanks for your time ..... --kris From janeks.kamerovskis at SILVA.LV Fri Feb 10 15:07:59 2006 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Sat, 11 Feb 2006 01:07:59 +0200 Subject: coordinate transformations formulas ... ? In-Reply-To: <43EA0753.2010404@swoodbridge.com> Message-ID: Yes and I tested, that I can safely ignore those ..., because they have realy small influence on result. But the next problem is that I can get those example value for M an M0. They are sligtly different for the given example (from EPSG quidance http://www.epsg.org/guides/docs/G7-2.pdf) it differs by some cople of thousands (5596050.46000000 5602234.40780535 and 5429228.60000000 5435961.03820551) I checked many of the sources of Transverse Mercator formulas description (EPSG of course and other) they all looked the same. I checked my implementations of formulas not only twice, but the result is the same. Janeks P.S. Sorry about looking like offtopic - you could ask why I need to implement things that already has in proj4. I just have a case, when it is difficult to use, but finaly data any way will come to Mapserver. > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Stephen Woodbridge > Sent: Wednesday, February 08, 2006 5:00 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] coordinate transformations formulas ... > ? > > The ... means "and additional terms following the sequence of the prior > terms". It is basically a short hand notation for a summation of n to > infinity. So you if you want more terms you need to first infer the > sequence from the prior terms like [2, 4, 6, ...] is a sequence and the > next terms are 8, 16, 32, ... > > Each additional term adds some additional fractional accuracy to the > computation, at some point the fractional accuracy is beyond the point > that it is significant to to our uses. > > If you calculate just the 3rd term and see how big its value is it will > give you the magnitude of the change it is impacting on the equation and > the next term in the sequence will tern to be significantly smaller. > > -Steve W. > > Janeks Kamerovskis wrote: > > > > > > Hi list, > > > > > > > > What means those ... in the formula, that is part of coordinate > > transformations formulas? > > > > > > > > M = a[(1 - e2/4 - 3e4/64 - 5e6/256 -....)j - (3e2/8 + 3e4/32 + > > 45e6/1024+....)sin2j + (15e4/256 + 45e6/1024 +.....)sin4j - (35e6/3072 + > > ....)sin6j + .....] > > > > > > > > > > > > > > > > brgds > > > > Janeks > > > > > > From condit at SDSC.EDU Fri Feb 10 16:38:47 2006 From: condit at SDSC.EDU (Christopher Condit) Date: Fri, 10 Feb 2006 16:38:47 -0800 Subject: Raster Re-projection Message-ID: I've got a mapfile that draws perfectly in epsg:4326 - with both raster and vector data (also in epsg:4326). Under certain application conditions, I need to re-project the map into a polar view. To do this I change projection string to PROJECTION "proj=laea" "lat_0=-90" END This works very well for all of my vector data, but none of my raster data appears. The raster data is in AAI/Grid format. Will this raster format not re-project? Should I use a different polar projection? Thanks! Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From ninliu at INDIANA.EDU Fri Feb 10 19:18:13 2006 From: ninliu at INDIANA.EDU (Ning Liu) Date: Fri, 10 Feb 2006 22:18:13 -0500 Subject: change projection through CGI parameters Message-ID: I am trying to build a mapserver application in which ther users can specify the parameters of the projection and change the map projection. Anybody know is it possible with mapserver? Thanks a lot. -- Ning Computer Science Department Indiana University From perrygeo at GMAIL.COM Fri Feb 10 20:34:38 2006 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Fri, 10 Feb 2006 20:34:38 -0800 Subject: change projection through CGI parameters In-Reply-To: <004401c62eb9$cb395f00$0200a8c0@den> Message-ID: Ning, Are you using mapserver as a CGI or via mapscript? Using mapscript might be more flexible for this kind of task. If you're using the CGI, it's possible to change mapfile parameters via URL: http://mapserver.gis.umn.edu/docs/reference/cgi/controls and scroll down to "Changing map file parameters via a form or a URL" I haven't tried this out so you may need to adjust it but you could try &map_projection="proj=latlong" . Also, keep in mind that you'll have to adjust the extents of the image since that will change with the projection. matt On 2/10/06, Ning Liu wrote: > I am trying to build a mapserver application in which ther users can specify > the parameters of the projection and change the map projection. > Anybody know is it possible with mapserver? > Thanks a lot. > > -- Ning > Computer Science Department > Indiana University > -- Matt Perry perrygeo at gmail.com http://www.perrygeo.net From m.meier at SPIEKERMANN.DE Fri Feb 10 20:18:30 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Sat, 11 Feb 2006 05:18:30 +0100 Subject: coordinate transformations formulas ... ? In-Reply-To: <000601c62e96$d9c953e0$350ba20a@JANEKSXP> Message-ID: Hello, I had a similar problem. What programming language do you use? I had trouble with some double to float or double to long conversion (done by the compiler) because i declared some variables not appropriate. Manfred Janeks Kamerovskis schrieb: > Yes and I tested, that I can safely ignore those ..., because they have > realy small influence on result. > But the next problem is that I can get those example value for M an M0. They > are sligtly different for the given example (from EPSG quidance > http://www.epsg.org/guides/docs/G7-2.pdf) it differs by some cople of > thousands (5596050.46000000 5602234.40780535 and 5429228.60000000 > 5435961.03820551) > I checked many of the sources of Transverse Mercator formulas description > (EPSG of course and other) they all looked the same. > I checked my implementations of formulas not only twice, but the result is > the same. > > Janeks > P.S. Sorry about looking like offtopic - you could ask why I need to > implement things that already has in proj4. I just have a case, when it is > difficult to use, but finaly data any way will come to Mapserver. > > >>-----Original Message----- >>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >>Behalf Of Stephen Woodbridge >>Sent: Wednesday, February 08, 2006 5:00 PM >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: Re: [UMN_MAPSERVER-USERS] coordinate transformations formulas ... >>? >> >>The ... means "and additional terms following the sequence of the prior >>terms". It is basically a short hand notation for a summation of n to >>infinity. So you if you want more terms you need to first infer the >>sequence from the prior terms like [2, 4, 6, ...] is a sequence and the >>next terms are 8, 16, 32, ... >> >>Each additional term adds some additional fractional accuracy to the >>computation, at some point the fractional accuracy is beyond the point >>that it is significant to to our uses. >> >>If you calculate just the 3rd term and see how big its value is it will >>give you the magnitude of the change it is impacting on the equation and >>the next term in the sequence will tern to be significantly smaller. >> >>-Steve W. >> >>Janeks Kamerovskis wrote: >> >>> >>>Hi list, >>> >>> >>> >>>What means those ... in the formula, that is part of coordinate >>>transformations formulas? >>> >>> >>> >>>M = a[(1 - e2/4 - 3e4/64 - 5e6/256 -....)j - (3e2/8 + 3e4/32 + >>>45e6/1024+....)sin2j + (15e4/256 + 45e6/1024 +.....)sin4j - (35e6/3072 + >>>....)sin6j + .....] >>> >>> >>> >>> >>> >>> >>> >>>brgds >>> >>>Janeks >>> >>> >>> > > From angus_scown at YAHOO.CO.UK Sat Feb 11 00:42:31 2006 From: angus_scown at YAHOO.CO.UK (Angus Scown) Date: Sat, 11 Feb 2006 08:42:31 +0000 Subject: anti-alias cartoline causes some map images to crash Message-ID: I am using php mapscript to generate map tiles. On certain tiles the php process dies and apache returns an error 500 (internal server error) The apache error log has "Premature end of script headers: php.exe" If I adjust some of the line sizes in my .map file the tile may then render. It seems to be chocking on either the complexity of a geometry or the actual anti-alias process. 98% of the tiles render well. How do I work out what is causing the crash? Currently I think it might be the gd image render (to PNG24) as if I turn of anti-alias and render to PNG then all tiles generate correctly. Is there a way I can pinpoint what mapserver doesn't like ? I have both windows and linux boxes at my disposal. I can't seem to get php to give me any extra error information but am working on my windows box at present and can't seem to get php to tell me any extra info. Is there a way I get mapserver to tell me at which point in the render process it fails? I appreciate any assistance, and can provide further information if required. ___________________________________________________________ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com From arnulf.christl at CCGIS.DE Sat Feb 11 03:21:46 2006 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Sat, 11 Feb 2006 12:21:46 +0100 Subject: MS RFC 10: Voting results... In-Reply-To: Message-ID: Steve Lime wrote: > Hi folks: Well, the vote to join the OSG Foundation has ended in a landslide- 74 in favor with 1 (a user > curiously named JackD) dissenter. lol - whats this? :-) Sure the fun is definitely not out of what we are doing and that is good to see! Also good to see that this could pass so smoothly. Congratulations & welcome... home - I guess. Best regards, Arnulf With that, RFC 10 passes and the MapServer Project can proceed > and join the foundation. How that happens is still a bit of a mystery. The interim foundation board is > working to develop the formal process. To be sure, it will involve combing over the MapServer codebase > to address any potential intellectual property or copyright issues. > > So what does this mean for MapServer users? For the most part it will be business as usual. The same > folks that have been working on the MapServer project will continue to do so. The Technical Steering > Committee will remain intact and continue to oversee software development. > > In the short term you may start to see project infrastructure (bug reporting, mailing lists, etc...) move > from University to Foundation servers. > > In the long term we hope you will continue to see MapServer flourish and benefit from living alongside > other great Open Source projects. > > To learn more about the OSG Foundation and/or to join relevant mailing lists please visit: > > http://www.osgeo.org/ > > Steve > Chair, MTSC From m.meier at SPIEKERMANN.DE Sat Feb 11 04:13:19 2006 From: m.meier at SPIEKERMANN.DE (Manfred Meier) Date: Sat, 11 Feb 2006 13:13:19 +0100 Subject: coordinate transformations formulas ... ? In-Reply-To: <000901c62eff$181e3990$370ba20a@JANEKSXP> Message-ID: I had written a C program and if I remember right, I typed the constants as integers instead of floats, that means something like ...(24*pow(cos(... instead of ...(24.0*pow... . And therefore the compiler did some type conversion magic. Manfred Janeks Kamerovskis schrieb: > It is Rebol scripting language and there are only integers and decimals that > is based on 64-bit standard IEEE floating point numbers. Is it enought for > these formulas? > Could you plese send more information about how you find solution un your > case. > > Janeks > > >>-----Original Message----- >>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >>Behalf Of Manfred Meier >>Sent: Saturday, February 11, 2006 6:19 AM >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: Re: [UMN_MAPSERVER-USERS] coordinate transformations formulas ... >>? >> >>Hello, >> >>I had a similar problem. What programming language do you use? I had >>trouble with some double to float or double to long conversion (done by >>the compiler) because i declared some variables not appropriate. >> >>Manfred >> >> >>Janeks Kamerovskis schrieb: >> >>>Yes and I tested, that I can safely ignore those ..., because they have >>>realy small influence on result. >>>But the next problem is that I can get those example value for M an M0. >> >>They >> >>>are sligtly different for the given example (from EPSG quidance >>>http://www.epsg.org/guides/docs/G7-2.pdf) it differs by some cople of >>>thousands (5596050.46000000 5602234.40780535 and 5429228.60000000 >>>5435961.03820551) >>>I checked many of the sources of Transverse Mercator formulas >> >>description >> >>>(EPSG of course and other) they all looked the same. >>>I checked my implementations of formulas not only twice, but the result >> >>is >> >>>the same. >>> >>>Janeks >>>P.S. Sorry about looking like offtopic - you could ask why I need to >>>implement things that already has in proj4. I just have a case, when it >> >>is >> >>>difficult to use, but finaly data any way will come to Mapserver. >>> >>> >>> >>>>-----Original Message----- >>>>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >>>>Behalf Of Stephen Woodbridge >>>>Sent: Wednesday, February 08, 2006 5:00 PM >>>>To: MAPSERVER-USERS at LISTS.UMN.EDU >>>>Subject: Re: [UMN_MAPSERVER-USERS] coordinate transformations formulas >> >>... >> >>>>? >>>> >>>>The ... means "and additional terms following the sequence of the prior >>>>terms". It is basically a short hand notation for a summation of n to >>>>infinity. So you if you want more terms you need to first infer the >>>>sequence from the prior terms like [2, 4, 6, ...] is a sequence and the >>>>next terms are 8, 16, 32, ... >>>> >>>>Each additional term adds some additional fractional accuracy to the >>>>computation, at some point the fractional accuracy is beyond the point >>>>that it is significant to to our uses. >>>> >>>>If you calculate just the 3rd term and see how big its value is it will >>>>give you the magnitude of the change it is impacting on the equation and >>>>the next term in the sequence will tern to be significantly smaller. >>>> >>>>-Steve W. >>>> >>>>Janeks Kamerovskis wrote: >>>> >>>> >>>>>Hi list, >>>>> >>>>> >>>>> >>>>>What means those ... in the formula, that is part of coordinate >>>>>transformations formulas? >>>>> >>>>> >>>>> >>>>>M = a[(1 - e2/4 - 3e4/64 - 5e6/256 -....)j - (3e2/8 + 3e4/32 + >>>>>45e6/1024+....)sin2j + (15e4/256 + 45e6/1024 +.....)sin4j - (35e6/3072 >> >>+ >> >>>>>....)sin6j + .....] >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>brgds >>>>> >>>>>Janeks >>>>> >>>>> >>>>> >>> >>> > > From bartvde at XS4ALL.NL Sat Feb 11 05:15:23 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Sat, 11 Feb 2006 14:15:23 +0100 Subject: WFS PropertyIsLike case sensitive In-Reply-To: <27754609.1139566558984.JavaMail.adm-moff@moffice5.nsc.no> Message-ID: Hi, this is how the OGC spec defines a WFS should operate, it should operate case sensitive by default. There is a little tweak in Mapserver to get it to behave case insensitive, but it's a mix of WFS 1.0.0 and Filter 1.1 which is strictly speaking against the OGC rules. If you add matchCase="false" to your PropertyIsLike it should work. Note other WFS 1.0.0 servers won't support this. More info at: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1381 Best regards, Bart Sture Dings?yr wrote: >Hi > >I have been testing the WFS FILTER with Mapserver. > >Is it possible to make a property search that is not case sensitive? > >Been testing with this filter, that works fine: > >LOK_KOMMAR% > > >But if i change the "AR*" to lower case e.g. "ar*" i get no hits. > >Does Mapserver support case insensitivity in WFS FILTER search? > >I am running on Windows with Mapserver 4.8.1 > > >Regards Sture > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From candalt at ONLINE.NO Sat Feb 11 06:13:43 2006 From: candalt at ONLINE.NO (=?iso-8859-1?Q?Sture_Dings=F8yr?=) Date: Sat, 11 Feb 2006 15:13:43 +0100 Subject: SV: [UMN_MAPSERVER-USERS] WFS PropertyIsLike case sensitive Message-ID: Hi Bart Thanx for your reply... I've tested to add the matchCase="false" and it works fine :-) Since this is not a "OGC standard", is this a feature that will be continued to be supported in Mapserver in the future? Best regards Sture -----Opprinnelig melding----- Fra: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] P? vegne av Bart van den Eijnden (OSGIS) Sendt: 11. februar 2006 14:15 Til: MAPSERVER-USERS at lists.umn.edu Emne: Re: [UMN_MAPSERVER-USERS] WFS PropertyIsLike case sensitive Hi, this is how the OGC spec defines a WFS should operate, it should operate case sensitive by default. There is a little tweak in Mapserver to get it to behave case insensitive, but it's a mix of WFS 1.0.0 and Filter 1.1 which is strictly speaking against the OGC rules. If you add matchCase="false" to your PropertyIsLike it should work. Note other WFS 1.0.0 servers won't support this. More info at: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1381 Best regards, Bart Sture Dings?yr wrote: >Hi > >I have been testing the WFS FILTER with Mapserver. > >Is it possible to make a property search that is not case sensitive? > >Been testing with this filter, that works fine: > >escape='!'>LOK_KOMMAR%< >/PropertyIsLike> > > >But if i change the "AR*" to lower case e.g. "ar*" i get no hits. > >Does Mapserver support case insensitivity in WFS FILTER search? > >I am running on Windows with Mapserver 4.8.1 > > >Regards Sture > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From miller_joseph at BAH.COM Sat Feb 11 20:21:24 2006 From: miller_joseph at BAH.COM (Miller Joseph) Date: Sat, 11 Feb 2006 23:21:24 -0500 Subject: Compiling windows mapserver with mygis/mysql support Message-ID: Hey All, I am trying to compile mapserver 4.6.2 on windows with MyGIS support. The included nmake.opt does not include that option. I added the following variables to the file: MYGIS_INC = "C:\Program Files\MySQL\MySQL Server 5.0\include" MYGIS_LIB = "C:\Program Files\MySQL\MySQL Server 5.0\lib\opt\libmysql.lib" MYGIS=-DUSE_MYGIS and of course I added those vars to the Includes, External_Libs, and MS_DEFS. The compile seems to freeze because it doesn't like -DUSE_MYGIS. Does anyone have any suggestions about what I could use? Thanks in advance, Joe Miller From bartvde at XS4ALL.NL Sun Feb 12 01:33:37 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Sun, 12 Feb 2006 10:33:37 +0100 Subject: SV: [UMN_MAPSERVER-USERS] WFS PropertyIsLike case sensitive In-Reply-To: <13699484.1139667223184.JavaMail.adm-moff@moffice9.nsc.no> Message-ID: Hi Sture, as soon as Mapserver will start supporting WFS 1.1, this can remain one of the features. But I don't know when that will be. The strange thing about filter 1.1 was also that the schema has matchCase for propertyisequalto filters but not for properyislike filters, which seems to be a mistake on the OGC side (at least that was the last feedback I got off-list from Peter Vretanos from Cubewerx, the editor of the spec), but can also take time to get corrected on the OGC side (a new Filter version, and then waiting for a new WFS version to incorporate the new Filter version etc. ....). Best regards, Bart Sture Dings?yr wrote: >Hi Bart > >Thanx for your reply... > >I've tested to add the matchCase="false" and it works fine :-) > >Since this is not a "OGC standard", is this a feature that will be continued to be supported in Mapserver in the future? > >Best regards >Sture > >-----Opprinnelig melding----- >Fra: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] P? vegne av Bart van den Eijnden (OSGIS) >Sendt: 11. februar 2006 14:15 >Til: MAPSERVER-USERS at lists.umn.edu >Emne: Re: [UMN_MAPSERVER-USERS] WFS PropertyIsLike case sensitive > >Hi, > >this is how the OGC spec defines a WFS should operate, it should operate case sensitive by default. > >There is a little tweak in Mapserver to get it to behave case insensitive, but it's a mix of WFS 1.0.0 and Filter 1.1 which is strictly speaking against the OGC rules. > >If you add matchCase="false" to your PropertyIsLike it should work. Note other WFS 1.0.0 servers won't support this. > >More info at: >http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1381 > >Best regards, >Bart > >Sture Dings?yr wrote: > > > >>Hi >> >>I have been testing the WFS FILTER with Mapserver. >> >>Is it possible to make a property search that is not case sensitive? >> >>Been testing with this filter, that works fine: >> >>>escape='!'>LOK_KOMMAR%< >>/PropertyIsLike> >> >> >>But if i change the "AR*" to lower case e.g. "ar*" i get no hits. >> >>Does Mapserver support case insensitivity in WFS FILTER search? >> >>I am running on Windows with Mapserver 4.8.1 >> >> >>Regards Sture >> >> >> >> > > >-- >Bart van den Eijnden >OSGIS, Open Source GIS >http://www.osgis.nl > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From neelima_umn at YAHOO.CO.IN Sun Feb 12 10:35:50 2006 From: neelima_umn at YAHOO.CO.IN (Neelima Doddapaneni) Date: Sun, 12 Feb 2006 18:35:50 +0000 Subject: hi Message-ID: HI all Can I use both cgi mapserver and php mapserver in parallel. Regards, Neelima --------------------------------- Jiyo cricket on Yahoo! India cricket Yahoo! Messenger Mobile Stay in touch with your buddies all the time. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Sun Feb 12 10:39:06 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Sun, 12 Feb 2006 19:39:06 +0100 Subject: hi In-Reply-To: <20060212183550.38328.qmail@web8409.mail.in.yahoo.com> Message-ID: Yes you can. Best regards, Bart Neelima Doddapaneni wrote: > HI all > Can I use both cgi mapserver and php mapserver in parallel. > Regards, > Neelima > > > ------------------------------------------------------------------------ > Jiyo cricket on Yahoo! India cricket > > Yahoo! Messenger Mobile > > Stay in touch with your buddies all the time. -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From punkish at EIDESIS.ORG Sun Feb 12 10:57:59 2006 From: punkish at EIDESIS.ORG (Puneet Kishor) Date: Sun, 12 Feb 2006 12:57:59 -0600 Subject: hi In-Reply-To: <43EF80CA.6060903@xs4all.nl> Message-ID: On Feb 12, 2006, at 12:39 PM, Bart van den Eijnden (OSGIS) wrote: > Yes you can. > > Best regards, > Bart > > Neelima Doddapaneni wrote: > >> HI all >> Can I use both cgi mapserver and php mapserver in parallel. >> Regards, >> Neelima >> >> well, a little qualifier required there, because the OP was a bit unclear to me. If "by parallel" you mean serving one website using MapServer CGI, and another using MapServer/PHP MapScript, both on the same computer, then yes, you can. On the other hand, if you are asking whether you can power a single website using two server-side technologies (CGI and PHP-MapScript), then the simple answer would be "no." -- Puneet Kishor From bartvde at XS4ALL.NL Sun Feb 12 11:30:11 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Sun, 12 Feb 2006 20:30:11 +0100 Subject: hi In-Reply-To: <028a874ab33dab65ab6fe545bb85473c@eidesis.org> Message-ID: Even using both technologies in a single website should be possible eg by the use of iframes, but IMHO it would not make much sense to do so. What I sometimes do is develop a web site completely with PHP/Mapscript, but also use Mapserv CGI to provide OGC:WMS and OGC:WFS on my data. Best regards, Bart Puneet Kishor wrote: > > On Feb 12, 2006, at 12:39 PM, Bart van den Eijnden (OSGIS) wrote: > >> Yes you can. >> >> Best regards, >> Bart >> >> Neelima Doddapaneni wrote: >> >>> HI all >>> Can I use both cgi mapserver and php mapserver in parallel. >>> Regards, >>> Neelima >>> >>> > > well, a little qualifier required there, because the OP was a bit > unclear to me. If "by parallel" you mean serving one website using > MapServer CGI, and another using MapServer/PHP MapScript, both on the > same computer, then yes, you can. > > On the other hand, if you are asking whether you can power a single > website using two server-side technologies (CGI and PHP-MapScript), > then the simple answer would be "no." > -- > Puneet Kishor > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From szekeres.tamas at FREEMAIL.HU Sun Feb 12 13:06:51 2006 From: szekeres.tamas at FREEMAIL.HU (Tamas Szekeres) Date: Sun, 12 Feb 2006 15:06:51 -0600 Subject: Compiling windows mapserver with mygis/mysql support Message-ID: As far as I know native mysql support is no more sustained due to the lack of activity of the contributor. You might want to use GDAL/OGR instead. Tamas From h.viola at BOM.GOV.AU Sun Feb 12 19:32:00 2006 From: h.viola at BOM.GOV.AU (Hester Viola) Date: Sun, 12 Feb 2006 21:32:00 -0600 Subject: Pixmap symbol scaling not working in MS4.8 Message-ID: An issue with Pixmap symbols has developed after installing MS 4.8. The symbols I am using are in a PNG file which is 42 pixels wide and high, but I have scaled them in the mapfile to 20 pixels using SIZE 20 in the class, which used to work fine. The symbols are now appearing at the full 42 pixels and my SIZE 20 is being ignored. I note that this issue has been logged elsewhere by others eg. http://www.nabble.com/Re:-Symbol-sizing-change-in-behaviourfrom-4.6-to-4.8-t1071878.html Is this likely to be fixed? I would prefer not to have to resize my images manually? Thanks Hester -- Regards Hester VIOLA IT Officer, Data Management Bureau of Meteorology 700 Collins St, Melbourne Australia, 3008 Email. h.viola at bom.gov.au From s.pashby at POSTGRAD.CURTIN.EDU.AU Sun Feb 12 20:16:55 2006 From: s.pashby at POSTGRAD.CURTIN.EDU.AU (Steve Pashby) Date: Sun, 12 Feb 2006 22:16:55 -0600 Subject: MapServer and dynamic segmentation Message-ID: Hello, I have a question regarding MapServers capabilities in relation to dynamic segmentation. I have only been using MapServer for a few months now and am not sure if what I want to do is possible. I am trying to put together an application for a university thesis project using just the basics of MapServer, (ie, going by the HTML / CGI way ? and not using anything fancy like MapScript and PHP programming !) What I want to do is disseminate a road database, where each road is chopped up into many segments for different road attributes, with each segment signalling a change in the road condition (ie, a change in width, a change in construction type, pavement type, etc). All this data is then stored in an access database, (with an accompanying shapefile of the road centreline). My initial plan was to copy the shapefile multiple times, and for each copy represent one attribute, (so have one shapefile and add in an attribute column for the different widths, one shapefile for the construction types, etc ). However, this could get complicated and messy. I guess this type of data may well lend itself to dynamic segmentation. But can MapServer work with this sort of complex data. If I was to get the road data into ArcGIS / Oracle / SDE and use dynamic segmentation could MapServer handle this ? Has anyone else had experience with this before, or done something similar ??? Would using PostGIS be any better ? I suppose all I wanted was a very simple application, nothing too complicated. I hope this makes sense ! Any advice or guidance on this subject would be greatly appreciated. Many thanks, Steve. From luke at SAVAGETRIBE.NET Sun Feb 12 21:12:35 2006 From: luke at SAVAGETRIBE.NET (Luke Savage) Date: Sun, 12 Feb 2006 21:12:35 -0800 Subject: php_mapscript_48.dll issues Message-ID: Hello Users, I haven't been able to connect to php_mapscript_48.dll using the mapserver-4.8.1-win32-php5.1.2.zip installation package from maptools.org. The error is below. I have followed the installation text document but it seems the extension in the php.ini file is not able to run the extension. PHP is coming up just fine but the extension is not running. I have placed the DLL in system32, php root, php/ext, mapserver_binaries, system.I've run out of ideas on troubleshooting this problem. Any help would be much appreciated. Specs: Apache 2.0.55 PHP 5.1.2 Mapserver 4.8.1 Warning: dl() [function.dl ]: Not supported in multithreaded Web servers - use extension=php_mapscript_48.dll in your php.ini in C:\apache\Apache2\htdocs\php_hello.php on line 1 Testing php file. Luke Savage -------------- next part -------------- An HTML attachment was scrubbed... URL: From b.vdeijnden at AGI.RWS.MINVENW.NL Sun Feb 12 22:11:18 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Sun, 12 Feb 2006 22:11:18 -0800 Subject: php_mapscript_48.dll issues Message-ID: Are you running PHP as a module? Then you cannot use the dl function. Just add php_mapscript48.dll to your list of extensions in php.ini like the error message says, or run PHP as a CGI. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Luke Savage Verzonden: maandag 13 februari 2006 6:13 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] php_mapscript_48.dll issues Hello Users, I haven't been able to connect to php_mapscript_48.dll using the mapserver-4.8.1-win32-php5.1.2.zip installation package from maptools.org. The error is below. I have followed the installation text document but it seems the extension in the php.ini file is not able to run the extension. PHP is coming up just fine but the extension is not running. I have placed the DLL in system32, php root, php/ext, mapserver_binaries, system...I've run out of ideas on troubleshooting this problem. Any help would be much appreciated. Specs: Apache 2.0.55 PHP 5.1.2 Mapserver 4.8.1 Warning: dl() [ function.dl ]: Not supported in multithreaded Web servers - use extension=php_mapscript_48.dll in your php.ini in C:\apache\Apache2\htdocs\php_hello.php on line 1 Testing php file... Luke Savage Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From e.witteveen at HAWARIT.COM Mon Feb 13 01:19:53 2006 From: e.witteveen at HAWARIT.COM (Eduard Witteveen) Date: Mon, 13 Feb 2006 10:19:53 +0100 Subject: Addition of points to a layer In-Reply-To: <20060211085313.12689.qmail@web31607.mail.mud.yahoo.com> Message-ID: Apeksha Bhambhani wrote: > Well no. But we constantly read the mails on this mailing list as we are > developing a mapping application. Could u plz help us? Sure I'm willing to help you, but please make these posts public, so others also have benefit from it. I will stubbornly refuse to help you if the communication is not done in a public way (like the mailing list). If you want your private answers within a certain period of time, you should contact our organization and ask if you can get a support contract. > Apeksha ... ... ... > PS: Do i know you? :S > > > -- > Ing. Eduard Yeb Witteveen Software Engineer > Hawar Information Technology bv lid Dijkoraad Groep > De Wymerts 7 8701 WT Bolsward > Tel: +31 (0)515 570333 Fax: +31 (0)515 570335 > http://www.hawarit.com/ nl_NL fy_NL en_US > > > Yahoo! Mail > Use Photomail > > to share photos without annoying attachments. -- Ing. Eduard Yeb Witteveen Software Engineer Hawar Information Technology bv lid Dijkoraad Groep De Wymerts 7 8701 WT Bolsward Tel: +31 (0)515 570333 Fax: +31 (0)515 570335 http://www.hawarit.com/ nl_NL fy_NL en_US From umberto.nicoletti at GMAIL.COM Mon Feb 13 01:25:02 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Mon, 13 Feb 2006 10:25:02 +0100 Subject: Oracle-Connection-Pooling in Java In-Reply-To: Message-ID: Benedikt, since I am looking this issue would'n t you mind opening a bug for the inclusion of msConnPoolCloseUnreferenced in mapscript and one for the memory leaks (add me to the cc list)? Reagrds, Umberto On 1/2/06, Benedikt Rothe wrote: > > Hi list members, > > From former threads I got the impression, that there are some folks > interested in the Oracle/Mapserver/Java/Tomcat. > > Therfore I'd like to share experiences I made with using Connection-Pooling > of > Oracle-Connections inside Java/Tomcat. > > Testenvironment: Mapserver 4.6.2; Suse-Linux; Tomcat 4.1.31; Sun-Java 1.4.2 > Simulating 5 Browsers, which produce maps, query features, make selections, > query-legend-pics frequently. > > - After using synchronized "enough" I didn't have crashes of Tomcat. > > - Big memory leak: Between the first 5 requests and the next 100 requests > the Tomcat-process became about 400MB bigger. (I use "top" for > watching memory-footprint.) > > - Cleaning the Connection-Pool "by hand". This means: > Opening the function msConnPoolCloseUnreferenced in mappool.c > for use in Java and call it after every request. > > - After this I still have memory leaks: About 100MB for 30.000 requests. > (I also made a test: 25.000 requests without Connection pooling. Memory > increased > and decreased as expected in this case.) > > - Performancecomparison in my testcase: > Without use of connection-pooling: ~ 50 Request per minute > With use of connection-pooling: ~75 Request per minute > > > As a result I have the following encouragements: > - Making msConnPoolCloseUnreferenced availabe for mapscript via swig. > (I made a hack by directly editing mapscript/java/mapscript_wrap.c and > Java-Files in mapscript/java/edu/umn/gis/mapscript.) I > think this > function could be part of the mapscript-Object? > > - Investigations on the memory leaks. Both leaks shouldn't occure. (I'll do > this, if I find time. but ...) > > - Fernando Simon: What about using OCI-Connection-Pooling for oracle > instead the mappool.c? > > http://oraclesvca2.oracle.com/docs/cd/B14117_01/appdev.101/b10779/oci09adv.htm#452244 > (If you don't have time, I maybe could help coding. But would it become > part uf Mapserver?) > > Happy new year to everybody > Benedikt Rothe From umberto.nicoletti at GMAIL.COM Mon Feb 13 02:26:35 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Mon, 13 Feb 2006 11:26:35 +0100 Subject: Oracle-Connection-Pooling in Java In-Reply-To: Message-ID: On 2/13/06, umn-ms at hydrotec.de wrote: > > Umberto > > Thank you for taking care onon this old but still open issue! > > I created > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1661 and > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1662 > > Benedikt > > (Sorry! I was not able to add your e-mail-adress to cc. Bugzilla denied to > do so. I suppose > you can handle this anyway.) I just did. I will send you a patch for the msConnPoolCloseUnreferenced function asap o that you can test it. Regards, Umberto > > Umberto Nicoletti schrieb am 13.02.2006 > 10:25:02: > > > > Benedikt, > > since I am looking this issue would'n t you mind opening a bug for the > > inclusion of msConnPoolCloseUnreferenced in mapscript and one for the > > memory leaks (add me to the cc list)? > > > > > > Reagrds, > > Umberto > > > > On 1/2/06, Benedikt Rothe wrote: > > > > > > Hi list members, > > > > > > From former threads I got the impression, that there are some folks > > > interested in the Oracle/Mapserver/Java/Tomcat. > > > > > > Therfore I'd like to share experiences I made with using > Connection-Pooling > > > of > > > Oracle-Connections inside Java/Tomcat. > > > > > > Testenvironment: Mapserver 4.6.2; Suse-Linux; Tomcat 4.1.31; Sun-Java > 1.4.2 > > > Simulating 5 Browsers, which produce maps, query features, make > selections, > > > query-legend-pics frequently. > > > > > > - After using synchronized "enough" I didn't have crashes of Tomcat. > > > > > > - Big memory leak: Between the first 5 requests and the next 100 > requests > > > the Tomcat-process became about 400MB bigger. (I use "top" for > > > watching memory-footprint.) > > > > > > - Cleaning the Connection-Pool "by hand". This means: > > > Opening the function msConnPoolCloseUnreferenced in mappool.c > > > for use in Java and call it after every request. > > > > > > - After this I still have memory leaks: About 100MB for 30.000 > requests. > > > (I also made a test: 25.000 requests without Connection pooling. > Memory > > > increased > > > and decreased as expected in this case.) > > > > > > - Performancecomparison in my testcase: > > > Without use of connection-pooling: ~ 50 Request per minute > > > With use of connection-pooling: ~75 Request per minute > > > > > > > > > As a result I have the following encouragements: > > > - Making msConnPoolCloseUnreferenced availabe for mapscript via swig. > > > (I made a hack by directly editing mapscript/java/mapscript_wrap.c > and > > > Java-Files in > mapscript/java/edu/umn/gis/mapscript.) I > > > think this > > > function could be part of the mapscript-Object? > > > > > > - Investigations on the memory leaks. Both leaks shouldn't occure. > (I'll do > > > this, if I find time. but ...) > > > > > > - Fernando Simon: What about using OCI-Connection-Pooling for oracle > > > instead the mappool.c? > > > > > > > http://oraclesvca2.oracle.com/docs/cd/B14117_01/appdev.101/b10779/oci09adv.htm#452244 > > > (If you don't have time, I maybe could help coding. But would it > become > > > part uf Mapserver?) > > > > > > Happy new year to everybody > > > Benedikt Rothe > From umn-ms at HYDROTEC.DE Mon Feb 13 02:22:23 2006 From: umn-ms at HYDROTEC.DE (Benedikt Rothe) Date: Mon, 13 Feb 2006 11:22:23 +0100 Subject: Oracle-Connection-Pooling in Java In-Reply-To: <75b4b93e0602130125q30e78b07jf4d3afd659ca7622@mail.gmail.com> Message-ID: Umberto Thank you for taking care onon this old but still open issue! I created http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1661 and http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1662 Benedikt (Sorry! I was not able to add your e-mail-adress to cc. Bugzilla denied to do so. I suppose you can handle this anyway.) Umberto Nicoletti schrieb am 13.02.2006 10:25:02: > Benedikt, > since I am looking this issue would'n t you mind opening a bug for the > inclusion of msConnPoolCloseUnreferenced in mapscript and one for the > memory leaks (add me to the cc list)? > > > Reagrds, > Umberto > > On 1/2/06, Benedikt Rothe wrote: > > > > Hi list members, > > > > From former threads I got the impression, that there are some folks > > interested in the Oracle/Mapserver/Java/Tomcat. > > > > Therfore I'd like to share experiences I made with using Connection-Pooling > > of > > Oracle-Connections inside Java/Tomcat. > > > > Testenvironment: Mapserver 4.6.2; Suse-Linux; Tomcat 4.1.31; Sun-Java 1.4.2 > > Simulating 5 Browsers, which produce maps, query features, make selections, > > query-legend-pics frequently. > > > > - After using synchronized "enough" I didn't have crashes of Tomcat. > > > > - Big memory leak: Between the first 5 requests and the next 100 requests > > the Tomcat-process became about 400MB bigger. (I use "top" for > > watching memory-footprint.) > > > > - Cleaning the Connection-Pool "by hand". This means: > > Opening the function msConnPoolCloseUnreferenced in mappool.c > > for use in Java and call it after every request. > > > > - After this I still have memory leaks: About 100MB for 30.000 requests. > > (I also made a test: 25.000 requests without Connection pooling. Memory > > increased > > and decreased as expected in this case.) > > > > - Performancecomparison in my testcase: > > Without use of connection-pooling: ~ 50 Request per minute > > With use of connection-pooling: ~75 Request per minute > > > > > > As a result I have the following encouragements: > > - Making msConnPoolCloseUnreferenced availabe for mapscript via swig. > > (I made a hack by directly editing mapscript/java/mapscript_wrap.c and > > Java-Files in mapscript/java/edu/umn/gis/mapscript.) I > > think this > > function could be part of the mapscript-Object? > > > > - Investigations on the memory leaks. Both leaks shouldn't occure. (I'll do > > this, if I find time. but ...) > > > > - Fernando Simon: What about using OCI-Connection-Pooling for oracle > > instead the mappool.c? > > > > http://oraclesvca2.oracle.com/docs/cd/B14117_01/appdev.101/b10779/oci09adv.htm#452244 > > (If you don't have time, I maybe could help coding. But would it become > > part uf Mapserver?) > > > > Happy new year to everybody > > Benedikt Rothe -------------- next part -------------- An HTML attachment was scrubbed... URL: From candalt at ONLINE.NO Mon Feb 13 04:47:44 2006 From: candalt at ONLINE.NO (=?iso-8859-1?Q?Sture_Dings=F8yr?=) Date: Mon, 13 Feb 2006 13:47:44 +0100 Subject: Mapserver 4.8,1 and GDAL version Message-ID: Hello I am trying to upgrade my Mapserver installation on my Linux (Fedora). Have in the past done sucerssful upgrades from 4.2.3 to 4.6.2, but when i now try to compile 4.8.1 i get this error: mapogr.cpp:142:28: gdal_version.h: No such file or directory make: *** [mapogr.o] Error 1 My GDAL version is 1.2.3. Do i have to upgrade my GDAL to compile Mapserver 4.8.1? Best regards Sture From teemu.makela at ARBONAUT.COM Mon Feb 13 05:02:42 2006 From: teemu.makela at ARBONAUT.COM (Teemu Makela) Date: Mon, 13 Feb 2006 07:02:42 -0600 Subject: Online raster processing? Message-ID: OK. Still trying to solve the problem... Is it possible to make this kind of reclassification PROCESSING "BANDS=1" CLASS EXPRESSION ([pixel] > 250) STYLE COLOR 250 [green] [blue] END END? So what I'm trying to do is reserve certain colors from image for another purposes and thus I need to make sure that image does not contain those colors. Above I am trying to make sure that in the image there is no pixels that have red (band 1) values larger than 250. The expression itself works but how to assign color without changing green and blue values of a pixel? If this is not possible what would be another solution? Teemu From warmerdam at POBOX.COM Mon Feb 13 05:06:16 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 13 Feb 2006 08:06:16 -0500 Subject: Mapserver 4.8,1 and GDAL version In-Reply-To: <28582657.1139834864107.JavaMail.adm-moff@moffice8.nsc.no> Message-ID: Sture Dings?yr wrote: > > > Hello > > I am trying to upgrade my Mapserver installation on my Linux (Fedora). Have in the past done sucerssful upgrades from 4.2.3 to 4.6.2, but when i now try to compile 4.8.1 i get this error: > > mapogr.cpp:142:28: gdal_version.h: No such file or directory > make: *** [mapogr.o] Error 1 > > My GDAL version is 1.2.3. > > Do i have to upgrade my GDAL to compile Mapserver 4.8.1? Sture, Yes, I'm afraid you will have to. There is some irony that mapogr.cpp includes gdal_version.h so that it can determine what version of GDAL is available and work with older versions, but older versions lack gdal_version.h! This was introduced in approximately GDAL 1.2.6, but while you are at it I would encourage you to upgrade to GDAL 1.3.1. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From warmerdam at POBOX.COM Mon Feb 13 05:15:32 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 13 Feb 2006 08:15:32 -0500 Subject: Online raster processing? In-Reply-To: Message-ID: Teemu Makela wrote: > OK. Still trying to solve the problem... > > Is it possible to make this kind of reclassification > PROCESSING "BANDS=1" > CLASS > EXPRESSION ([pixel] > 250) > STYLE > COLOR 250 [green] [blue] > END > END? > > So what I'm trying to do is reserve certain colors from image for another > purposes and thus I need to make sure that image does not contain those > colors. Above I am trying to make sure that in the image there is no pixels > that have red (band 1) values larger than 250. The expression itself works > but how to assign color without changing green and blue values of a pixel? > > If this is not possible what would be another solution? Teemu, The above is not possible. It is not possible to substitute into the values of the COLOR keyword. I can't think of any way of accomplishing what you want. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From umberto.nicoletti at GMAIL.COM Mon Feb 13 05:56:19 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Mon, 13 Feb 2006 14:56:19 +0100 Subject: MAPSERVER COMPILATION ERROR In-Reply-To: <43F09546.5606.122A06B@fabio.dovidio.planetek.it> Message-ID: Always add the ML to your posts! What about your server logs'?? Umberto On 2/13/06, fabio.dovidio at planetek.it wrote: > In the map file i have definned > > IMAGETYPE PNG (or jpeg or tiff) > > I have compiled without GDAL\OGR > > Non-working maps is related to only SIZE & IMAGETYPE changes. > > On 13 Feb 2006 at 10:45, Umberto Nicoletti wrote: > > > How's the image format defined? > > > > What else (besides size and layers) changes when you switch from the > > simple to the complex non-working maps? > > > > Did you check your server's logs? > > > > Regards, > > Umberto > > > > On 2/13/06, fabio.dovidio at planetek.it wrote: > > > Anyway I think It' s a compilation error.. > > > sorry, but i don't think u right! > > > Path is Correct and I have given all necssary permisions.. > > > when I change the output format (png or jpeg or gif...) the error change > > > but not in positive way... > > > > > > On 10 Feb 2006 at 17:40, Umberto Nicoletti wrote: > > > > > > > This is not a compilation error, I'd say the error message is quite > > > > clear and please do NOT post subjects in upper case. > > > > > > > > Either the path is incorrect or the permissions on the file prevent > > > > mapserver from opening it. > > > > > > > > Umberto > > > > > > > > On 2/10/06, Fabio D' Ovidio wrote: > > > > > > > > > > > > > > > > > > > > Dear list, > > > > > > > > > > > > > > > I have compiled mapserver 4.6.2 under Windows 2000.. > > > > > I have compiled the following libraries : > > > > > > > > > > > > > > > PROJ > > > > > GD > > > > > LIBPNG > > > > > ZLIB > > > > > REGEX > > > > > JPEG > > > > > LIBCURL > > > > > FREETYPE > > > > > > > > > > > > > > > After compiling I have installed mapserver, following HOW TO..instructions > > > > > on the web site. > > > > > > > > > > > > > > > When I test the installation the response is OK : "NO QUERY_STRING to > > > > > decode" > > > > > > > > > > > > > > > The problem is : when I do a request for a simple map file (few layers and > > > > > limitated SIZE, 100 x 100 or 200x200 pixels) mapserver works fine, but when > > > > > I do not simple requests (more layers, bigger SIZE, 500 x 500 or 800 x 600) > > > > > mapserver returns this error : > > > > > > > > > > > > > > > > > > > > msLoadMap(): Unable to access file. > > > > > (C:\Inetpub\wwwroot\applicazioni\applicazioni_file\bari_wolf.map) > > > > > OR : > > > > > Error CGI > > > > > The application CGI specified has not returned a complete whole headings > > > > > HTTP. The following headings are been returned: > > > > > o/ooPNG > > > > > > > > > > > > > > > > > > > > > > > > > In your opinion, WHY ? > > > > > > > > > > > > > > > Thank You > > > > > > > > > > > > > > > > > > > > > > > > > Fabio D'Ovidio > > > > > Planetek Italia Srl > > > > > via Massaua 12, Bari -70123 Italy > > > > > e-mail : dovidio at planetek.it > > > > > http://www.planetek.it > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > From stefan.schwarzer at GRID.UNEP.CH Mon Feb 13 06:34:35 2006 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Mon, 13 Feb 2006 15:34:35 +0100 Subject: Query/highlight single or multiple layers Message-ID: I have a point and a polygon layer. Most of the times only the point data will be queried, but it can be different too. So, I would like to limit the highlighting in the resulting map to (sometimes) only the point layer. But in the moment, when drawing a rectangle it always highlights the points as well as the polygons. The doc is saying: queryByRect( mapObj map, rectObj rect ) : int Query layer using a rectangle specified in georeferenced map coordinates (i.e. not pixels). The query is performed on all the shapes that are part of a CLASS that contains a TEMPLATE value or that match any class in a layer that contains a LAYER TEMPLATE value. Returns MS_SUCCESS if shapes were found or MS_FAILURE if nothing was found or if some other error happened. //Query the Map if (!$imgbox) $map -> queryByPoint($click_pt, MS_MULTIPLE, -1); else $map -> queryByRect($click_rt); So, it gives me the impression that there is no solution to the problem. Or can someone help me? Stef -------------- next part -------------- An HTML attachment was scrubbed... URL: From xnzhang11 at GMAIL.COM Mon Feb 13 06:36:29 2006 From: xnzhang11 at GMAIL.COM (Xiaonan Zhang) Date: Mon, 13 Feb 2006 14:36:29 +0000 Subject: Highlight image symbol Message-ID: Dear all, I created one image symbol (pixmap) to a point layer. However I can not highlight the selected features in that layer as the symbol is an image. Is there anyway to solve this? thanks. Jonathan -------------- next part -------------- An HTML attachment was scrubbed... URL: From b.vdeijnden at AGI.RWS.MINVENW.NL Mon Feb 13 06:36:23 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Mon, 13 Feb 2006 06:36:23 -0800 Subject: Highlight image symbol Message-ID: If your pixmap is transparent, you can draw a circle underneath using the selection colour. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Xiaonan Zhang Verzonden: maandag 13 februari 2006 15:36 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Highlight image symbol Dear all, I created one image symbol (pixmap) to a point layer. However I can not highlight the selected features in that layer as the symbol is an image. Is there anyway to solve this? thanks. Jonathan Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From kris_rock82 at YAHOO.COM Mon Feb 13 06:47:52 2006 From: kris_rock82 at YAHOO.COM (krishna S) Date: Mon, 13 Feb 2006 08:47:52 -0600 Subject: Label Overlap removal, mapfile Message-ID: Sorry for the late reply steve, here is my mapfile MAP NAME "culture" SIZE 600 600 STATUS ON EXTENT 605774 5314619 607650 5316292 FONTSET "C:\projects\mapserver-4.6.2\fonts\fonts.txt" IMAGECOLOR 255 255 255 IMAGETYPE JPEG SYMBOL NAME 'dash' TYPE ELLIPSE POINTS 1 1 END FILLED true STYLE 5 5 5 5 END END SYMBOL NAME 'line' TYPE LINE POINTS 1 1 END FILLED TRUE END SYMBOL NAME 'solidline' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END WEB TEMPLATE "C:\Apache2\htdocs\demo.html" IMAGEPATH "C:\Apache2\tmp\ms_tmp\" IMAGEURL "/ms_tmp/" END QUERYMAP STATUS ON STYLE HILITE COLOR 255 0 0 END LAYER NAME "raster1" TYPE RASTER PROJECTION "init=epsg:26915" END DATA "C:\mrsid\12.sid" OFFSITE 0 0 0 STATUS ON END LAYER NAME "layer1" TYPE POLYGON PROJECTION "init=epsg:4270" END STATUS ON LABELITEM "label1" LABELCACHE ON TRANSPARENCY 100 CLASS LABEL TYPE TRUETYPE SIZE 8 COLOR 255 255 255 POSITIOn AUTO FONT 'arial' ANTIALIAS TRUE OUTLINECOLOR 100 100 100 END STYLE SIZE 3 OUTLINECOLOR 255 225 0 SYMBOL solidline END END END LAYER NAME "layer2" TYPE POLYGON PROJECTION "init=epsg:4270" END STATUS ON LABELITEM "label2" LABELCACHE ON TRANSPARENCY 100 CLASS LABEL TYPE TRUETYPE SIZE 11 FORCE TRUE POSITION uc COLOR 255 255 255 OUTLINECOLOR 0 0 0 FONT 'arial-bold' ANTIALIAS TRUE END STYLE OUTLINECOLOR 0 0 0 SYMBOL 0 END END END LAYER NAME "layer3" TYPE POLYGON PROJECTION "init=epsg:4270" END STATUS ON LABELITEM "label3" LABELCACHE ON TRANSPARENCY 100 CLASS LABEL TYPE TRUETYPE SIZE 11 FORCE FALSE COLOR 255 255 255 OUTLINECOLOR 0 0 0 POSITION lc FONT 'arial-bold' ANTIALIAS TRUE END STYLE OUTLINECOLOR 0 0 0 SYMBOL 0 END END END LAYER NAME "layer4" TYPE POLYGON PROJECTION "init=epsg:4270" END STATUS ON LABELITEM "label4" LABELCACHE ON TRANSPARENCY 100 CLASS LABEL TYPE TRUETYPE SIZE 7 FORCE FALSE COLOR 255 255 255 POSITION AUTO FONT 'arial-bold' ANTIALIAS TRUE BACKGROUNDCOLOR 0 0 0 END STYLE OUTLINECOLOR 255 0 0 SYMBOL 0 END END END END Thanks for your time ..... --kris From xnzhang11 at GMAIL.COM Mon Feb 13 06:49:19 2006 From: xnzhang11 at GMAIL.COM (Xiaonan Zhang) Date: Mon, 13 Feb 2006 14:49:19 +0000 Subject: Highlight image symbol In-Reply-To: <1FEE21DC1054D5119FCC0002A5517B24056F2688@rws-mdi-dt2-01.agi.rws.minvenw.nl> Message-ID: Hi Bart, Do you mean I need to add code to draw a circle arount the selected feature? regards Jonathan On 13/02/06, Eijnden, B. van den (Bart) wrote: > > If your pixmap is transparent, you can draw a circle underneath using the > selection colour. > > Best regards, > Bart > > -----Oorspronkelijk bericht----- > *Van:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]*Namens > *Xiaonan Zhang > *Verzonden:* maandag 13 februari 2006 15:36 > *Aan:* MAPSERVER-USERS at LISTS.UMN.EDU > *Onderwerp:* [UMN_MAPSERVER-USERS] Highlight image symbol > > Dear all, > > I created one image symbol (pixmap) to a point layer. However I can not > highlight the selected features in that layer as the symbol is an image. > Is there anyway to solve this? > > thanks. > > Jonathan > > > Disclaimer > ************************************************************************ Aan > dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend > bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, > wordt u verzocht het te vernietigen en de afzender te informeren. Wij > adviseren u om bij twijfel over de juistheid of de volledigheid van de mail > contact met afzender op te nemen. This message shall not constitute any > rights or obligations. This message is intended solely for the addressee. If > you have received this message in error, please delete it and notify the > sender immediately. When in doubt whether this message is correct or > complete, please contact the sender. > ************************************************************************ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From luca76 at GMAIL.COM Mon Feb 13 06:51:23 2006 From: luca76 at GMAIL.COM (Luca Manganelli) Date: Mon, 13 Feb 2006 15:51:23 +0100 Subject: Better dithering algorithm for PNG-8 bit output? Message-ID: Hi, is there's a way to configure dithering algorithm used by mapaccel for images produced with PNG-8 bit output? If there are ortophotos the quality is poor. From b.vdeijnden at AGI.RWS.MINVENW.NL Mon Feb 13 06:50:28 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Mon, 13 Feb 2006 06:50:28 -0800 Subject: Highlight image symbol Message-ID: Hi, I always draw the selection in a separate LAYER which is on top of the map, and then you can add a STYLE object to your CLASS with e.g. a circle symbol and set its color to the color you want for selection. The circle will need to be underneath your PIXMAP (watch your STYLE sequence). For that I use PHP/Mapscript. Best regards, Bart -----Oorspronkelijk bericht----- Van: Xiaonan Zhang [mailto:xnzhang11 at gmail.com] Verzonden: maandag 13 februari 2006 15:49 Aan: Eijnden, B. van den (Bart) CC: MAPSERVER-USERS at lists.umn.edu Onderwerp: Re: [UMN_MAPSERVER-USERS] Highlight image symbol Hi Bart, Do you mean I need to add code to draw a circle arount the selected feature? regards Jonathan On 13/02/06, Eijnden, B. van den (Bart) < b.vdeijnden at agi.rws.minvenw.nl > wrote: If your pixmap is transparent, you can draw a circle underneath using the selection colour. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto: MAPSERVER-USERS at LISTS.UMN.EDU ]Namens Xiaonan Zhang Verzonden: maandag 13 februari 2006 15:36 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Highlight image symbol Dear all, I created one image symbol (pixmap) to a point layer. However I can not highlight the selected features in that layer as the symbol is an image. Is there anyway to solve this? thanks. Jonathan Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From baas at SPEERIT.NL Mon Feb 13 07:02:04 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Mon, 13 Feb 2006 16:02:04 +0100 Subject: Crash with query Message-ID: Dear all, Once again, I have a problem. I finally stopped using the .tab files and switched to the "live" Oracle data. Everything goes well, until I run a query (to find out what's underneath my mousepointer). My Query: http://loopplank/coconjb/scripts/mapserv.exe?mode=nquery&map=../query.map&imgext=189991.7+443456.5375+191827.6+444833.4625&imgxy=339+209&imgbox=329+199+349+219&layers=netherlands+TABCAB The query.map file is brand new, specially made this query (to test), my symbol set is also OK. It's really when I switch from .tab files to Oracle that it does wrong. And yes, MapServer *does* display the lines properly (i.e., no crash with same .map & .sym files). How can I find out how, where and why this goes wrong? I only get a "The instruction at referenced memory at . The memory could not be "read"." I'll try to install a debugger, though I doubt that would do anyone any good. Running "Hobu's kitchen sink MapServer 4.6" binaries on WinXP. -- Jelmer From lists at NABBLE.COM Mon Feb 13 07:05:56 2006 From: lists at NABBLE.COM (xiaonan (sent by Nabble.com)) Date: Mon, 13 Feb 2006 07:05:56 -0800 Subject: Highlight Features In-Reply-To: <4311C5DF.1010008@gmx.net> Message-ID: Hi Armin, Please could you send me the code to highlight the selected feature in a new layer. thanks. Jonathan -- View this message in context: http://www.nabble.com/-UMN_MAPSERVER-USERS-Highlight-Features-t259523.html#a2912032 Sent from the Mapserver - User forum at Nabble.com. From xnzhang11 at GMAIL.COM Mon Feb 13 07:18:15 2006 From: xnzhang11 at GMAIL.COM (Xiaonan Zhang) Date: Mon, 13 Feb 2006 15:18:15 +0000 Subject: delete feature Message-ID: Hi all, anyone know how to delete a selected feature from a layer? regards Jonathan -------------- next part -------------- An HTML attachment was scrubbed... URL: From maro.jam at TISCALI.IT Mon Feb 13 07:18:38 2006 From: maro.jam at TISCALI.IT (Andrea Marelli) Date: Mon, 13 Feb 2006 09:18:38 -0600 Subject: php/mapscript queryByRect on raster files Message-ID: Any hint? i will hopefully wait... Thanks!! bye Andrea >Hi guys, > >i'm implementing queryByRect on raster files using php/mapscript. >The script i've written (see following code) works well, but i have a little >problem when i make queries on large areas... >It seems that the getShape function uses a very large amount of memory on >the server, so i put $shape->free(); but it seems to do nothing.. >Any suggestion on how to free shared memory on server? > > > $query_rect = ms_newRectObj(); > $query_rect->setextent($westlon, $northlat, $eastlon, $southlat); > @$layer = $map->getLayer(0); > $return = $layer->queryByRect($query_rect); > if($return == MS_SUCCESS){ > > $num_results = $layer->getNumResults(); > $layer->open(); > > for($i=0; $i<$num_results; $i++){ > > $shape = $layer->getShape(0, $i); > $values = $shape->values; > > // output > echo $values['value_list']; > echo '
'; > > $shape->free(); // ?????? > unset($shape); > unset($values); > > } > > $layer->close(); > $map->freequery(0); > $query_rect->free(); > > } From fsimon at UNIVALI.BR Mon Feb 13 08:35:22 2006 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Mon, 13 Feb 2006 13:35:22 -0300 Subject: Crash with query In-Reply-To: <43F09F6C.1050405@speerit.nl> Message-ID: Hi Jelmer, How did you define your data definition for your layer? What method of query are you using? Best regards. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ Jelmer Baas wrote: > Dear all, > > Once again, I have a problem. I finally stopped using the .tab files > and switched to the "live" Oracle data. Everything goes well, until I > run a query (to find out what's underneath my mousepointer). > > My Query: > http://loopplank/coconjb/scripts/mapserv.exe?mode=nquery&map=../query.map&imgext=189991.7+443456.5375+191827.6+444833.4625&imgxy=339+209&imgbox=329+199+349+219&layers=netherlands+TABCAB > > > The query.map file is brand new, specially made this query (to test), > my symbol set is also OK. It's really when I switch from .tab files to > Oracle that it does wrong. And yes, MapServer *does* display the lines > properly (i.e., no crash with same .map & .sym files). > > How can I find out how, where and why this goes wrong? I only get a > "The instruction at referenced memory at address>. The memory could not be "read"." > > I'll try to install a debugger, though I doubt that would do anyone > any good. Running "Hobu's kitchen sink MapServer 4.6" binaries on WinXP. > From siki at AGT.BME.HU Mon Feb 13 11:38:07 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Mon, 13 Feb 2006 18:38:07 -0100 Subject: Mapserver 4.8,1 and GDAL version {Scanned} In-Reply-To: <28582657.1139834864107.JavaMail.adm-moff@moffice8.nsc.no> Message-ID: Hi, Probably you should upgrade gdal, I have gdal 1.3.1 and gdal_version.h is in the gcore directory. Bye Zoltan On Mon, 13 Feb 2006, [iso-8859-1] Sture Dings?yr wrote: > > > > Hello > > I am trying to upgrade my Mapserver installation on my Linux (Fedora). Have in the past done sucerssful upgrades from 4.2.3 to 4.6.2, but when i now try to compile 4.8.1 i get this error: > > mapogr.cpp:142:28: gdal_version.h: No such file or directory > make: *** [mapogr.o] Error 1 > > My GDAL version is 1.2.3. > > Do i have to upgrade my GDAL to compile Mapserver 4.8.1? > > Best regards > Sture > From s_jubeh at YAHOO.COM Mon Feb 13 08:35:26 2006 From: s_jubeh at YAHOO.COM (salah jubeh) Date: Mon, 13 Feb 2006 08:35:26 -0800 Subject: wight image In-Reply-To: <931f8ea90602071125t60249ec3r509c97e145544f8@mail.gmail.com> Message-ID: hi guy i tried to veiw a jpeg image with mapserver, the coordinates of this image is 524000 3894000 528000 3891000 mapserver give an error about the extent minx,miny,maxx,maxy so i changed the extent to 524000 3894000 528000 3891000 Now i get a wight image "blank one" is this problem from extent or not --------------------------------- Brings words and photos together (easily) with PhotoMail - it's free and works with Yahoo! Mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Mon Feb 13 08:39:32 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 13 Feb 2006 11:39:32 -0500 Subject: php/mapscript queryByRect on raster files In-Reply-To: Message-ID: Andrea Marelli wrote: > Any hint? > i will hopefully wait... > Thanks!! ... >> i'm implementing queryByRect on raster files using php/mapscript. >> The script i've written (see following code) works well, but i have a little >> problem when i make queries on large areas... >> It seems that the getShape function uses a very large amount of memory on >> the server, so i put $shape->free(); but it seems to do nothing.. >> Any suggestion on how to free shared memory on server? Andrea, If you make queries on large areas, a substantial chunk of memory is allocated at the point of the query to hold all the results. The maximum number of values allowed in a query can be set with the PROCESSING option RASTER_QUERY_MAX_RESULT on the layer. eg. PROCESSING "RASTER_QUERY_MAX_RESULT=10000" The default maximum is one million and I think there are 36 bytes of memory allocated per row in the resultset so up to about 36MB. Not such a huge amount as a maximum. I don't know the details of the proper way of freeing shapes, but it seems what you are doing is appropriate. I did a little test, and I don't see any obvious memory leaks in the core mapserver raster query support. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From steve.lime at DNR.STATE.MN.US Mon Feb 13 08:45:17 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 13 Feb 2006 10:45:17 -0600 Subject: anti-alias cartoline causes some map images to crash Message-ID: Angus, et al... There is a problem in GD itself where some bounds checking is not being done. This leads to buffer overflows. The GD folks are aware of the problem and have stated it will be fixed in version 2.0.34. No word on when that might be available nor why they are waiting on fixing such a serious bug. Fortunately the fix is a one-liner. In gd.c, function gdImageSetAAPixelColor() change: int dr,dg,db,p,r,g,b; p = gdImageGetPixel(im,x,y); to: int dr,dg,db,p,r,g,b; if (!gdImageBoundsSafeMacro (im, x, y)) return; p = gdImageGetPixel(im,x,y); Steve >>> Angus Scown 02/11/06 2:42 AM >>> I am using php mapscript to generate map tiles. On certain tiles the php process dies and apache returns an error 500 (internal server error) The apache error log has "Premature end of script headers: php.exe" If I adjust some of the line sizes in my .map file the tile may then render. It seems to be chocking on either the complexity of a geometry or the actual anti-alias process. 98% of the tiles render well. How do I work out what is causing the crash? Currently I think it might be the gd image render (to PNG24) as if I turn of anti-alias and render to PNG then all tiles generate correctly. Is there a way I can pinpoint what mapserver doesn't like ? I have both windows and linux boxes at my disposal. I can't seem to get php to give me any extra error information but am working on my windows box at present and can't seem to get php to tell me any extra info. Is there a way I get mapserver to tell me at which point in the render process it fails? I appreciate any assistance, and can provide further information if required. ___________________________________________________________ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com From watry at COAPS.FSU.EDU Mon Feb 13 11:33:38 2006 From: watry at COAPS.FSU.EDU (Gary Watry) Date: Mon, 13 Feb 2006 14:33:38 -0500 Subject: Jbox verse dbox In-Reply-To: <200601261248.40969.tylermitchell@shaw.ca> Message-ID: I have a development site up and I want to enhance it with a dynamic Zoom Box. However, I have borrowed an concept from a Canada website and can change the map size on the fly, Can I add Jbox or dBox to a site without losing the ability to dynamically change the map size? Which is easier to implement? ______________________________________________________________ Gary L. Watry GIS Coordinator Center for Ocean-Atmospheric Prediction Studies FSU / COAPS Johnson Building, RM 215 2035 East Paul Dirac Drive Tallahassee, Florida 32306-2840 E-Mail: watry at coaps.fsu.edu -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Tyler Mitchell Sent: Thursday, January 26, 2006 3:49 PM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] New mapping framework: Flexible Internet Spatial Template (FIST) Passing along this announcement about an open source project from the University of BC. This is a MapServer/PHP framework with several advanced functions people are looking for. It can optionally use PostGIS in the backend so your users can edit and save shapes and attributes - that's the most exciting part for me. Note there is a mailing specifically for FIST discussions - see link at bottom. Tyler ------------------------------------- The Flexible Internet Spatial Template (FIST) is now available for download. FIST is an open source (GPL), PHP object based application that is used to rapidly deploy internet mapping web sites. It provides a code base with built-in functionality for common internet mapping tasks as well as the ability to extend the mapping site with custom functions. Currently it works exclusively with UMN MapServer, but the backend could be extended to work with any map server. Key features: - Built in tools including: - Standard zoom-pan - Multiple query and identify tools - Distance/area measurement - Map markup - PDF map making - PostGIS editing capability - Custom tools: connect buttons/tool icons to external scripts with ease. - Real-time coordinate display Website: http://datashare.gis.unbc.ca/fist/ Mailing List: http://www.freelists.org/archives/fist-users/ (new) From ishrarh at YAHOO.COM Mon Feb 13 11:33:52 2006 From: ishrarh at YAHOO.COM (Ishrar Hussain) Date: Mon, 13 Feb 2006 11:33:52 -0800 Subject: Problem with pasteImage() in PHP-Mapscript Message-ID: Hello Everyone, I have been trying to overlay a copyright logo on top of my output map images that I generate with saveImave() function in my php file. The logo is supposed to appear at the top-right corner of every output image, which are in PNG format. In order to do this, I have already svaed my logo image in PNG format. And, I decided to invoke the pasteImage() function before I call saveImage(), to overlay the logo on top. But the problem is that, the pasteImage() function only takes imageObj as its input parameter, which can only be generated by the mapObj. So, instead of that, I tried passing the reference generated by imagecreatefromPNG() function of the GD library. But, pasteImage() did not accept that reference as input. Now, can you guys tell me what would be a better way to overlay my copyright logo image on top of the map images. Or, atleast tell me how to deal with pasteImage() function in this kind of problem. Looking forward to your early response. Thanks. Regards, Ishrar __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From siki at AGT.BME.HU Mon Feb 13 14:59:29 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Mon, 13 Feb 2006 21:59:29 -0100 Subject: wight image {Scanned} In-Reply-To: <20060213163526.86281.qmail@web52714.mail.yahoo.com> Message-ID: Hi, Do you have a world file for your jpeg? See Raster-howto. What is the state of your layer? (Change to DEFAULT) Bye Zoltan On Mon, 13 Feb 2006, salah jubeh wrote: > hi guy > > i tried to veiw a jpeg image with mapserver, the coordinates of this image is > > 524000 3894000 > 528000 3891000 > > mapserver give an error about the extent minx,miny,maxx,maxy > > so i changed the extent to > > 524000 3894000 > 528000 3891000 > > Now i get a wight image "blank one" > > is this problem from extent or not > > > > --------------------------------- > Brings words and photos together (easily) with > PhotoMail - it's free and works with Yahoo! Mail. From bfischer at HOUSTONENGINEERINGINC.COM Mon Feb 13 12:34:42 2006 From: bfischer at HOUSTONENGINEERINGINC.COM (Fischer, Brian) Date: Mon, 13 Feb 2006 14:34:42 -0600 Subject: Jbox verse dbox Message-ID: Gary, I think they are about the same to implement, but I have moved away from jbox (java applets) because of user comments telling me it is working. Hence I would recommend dbox, less user complaints in my opinion. I have implemented dbox with a change map size option. You can view the source code at http://www.redlakewatershed.org/rlwdviewer.html. Good Luck, Brian Brian Fischer Houston Engineering, Inc. Maple Grove, MN (763) 493-4522 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gary Watry Sent: Monday, February 13, 2006 1:34 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Jbox verse dbox I have a development site up and I want to enhance it with a dynamic Zoom Box. However, I have borrowed an concept from a Canada website and can change the map size on the fly, Can I add Jbox or dBox to a site without losing the ability to dynamically change the map size? Which is easier to implement? ______________________________________________________________ Gary L. Watry GIS Coordinator Center for Ocean-Atmospheric Prediction Studies FSU / COAPS Johnson Building, RM 215 2035 East Paul Dirac Drive Tallahassee, Florida 32306-2840 E-Mail: watry at coaps.fsu.edu -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Tyler Mitchell Sent: Thursday, January 26, 2006 3:49 PM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] New mapping framework: Flexible Internet Spatial Template (FIST) Passing along this announcement about an open source project from the University of BC. This is a MapServer/PHP framework with several advanced functions people are looking for. It can optionally use PostGIS in the backend so your users can edit and save shapes and attributes - that's the most exciting part for me. Note there is a mailing specifically for FIST discussions - see link at bottom. Tyler ------------------------------------- The Flexible Internet Spatial Template (FIST) is now available for download. FIST is an open source (GPL), PHP object based application that is used to rapidly deploy internet mapping web sites. It provides a code base with built-in functionality for common internet mapping tasks as well as the ability to extend the mapping site with custom functions. Currently it works exclusively with UMN MapServer, but the backend could be extended to work with any map server. Key features: - Built in tools including: - Standard zoom-pan - Multiple query and identify tools - Distance/area measurement - Map markup - PDF map making - PostGIS editing capability - Custom tools: connect buttons/tool icons to external scripts with ease. - Real-time coordinate display Website: http://datashare.gis.unbc.ca/fist/ Mailing List: http://www.freelists.org/archives/fist-users/ (new) From assefa at DMSOLUTIONS.CA Mon Feb 13 12:34:58 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Mon, 13 Feb 2006 15:34:58 -0500 Subject: Problem with pasteImage() in PHP-Mapscript In-Reply-To: <20060213193352.3538.qmail@web33409.mail.mud.yahoo.com> Message-ID: Would it be accepetable for you to do it at the map level. Here is an example on how to add a copyright : http://mapserver.gis.umn.edu/docs/faq/copyright-layer You might want to check it and tweak the class oblect to use your symbol. Later, Ishrar Hussain wrote: > Hello Everyone, > > I have been trying to overlay a copyright logo on top > of my output map images that I generate with > saveImave() function in my php file. The logo is > supposed to appear at the top-right corner of every > output image, which are in PNG format. > > In order to do this, I have already svaed my logo > image in PNG format. And, I decided to invoke the > pasteImage() function before I call saveImage(), to > overlay the logo on top. > > But the problem is that, the pasteImage() function > only takes imageObj as its input parameter, which can > only be generated by the mapObj. So, instead of that, > I tried passing the reference generated by > imagecreatefromPNG() function of the GD library. But, > pasteImage() did not accept that reference as input. > > Now, can you guys tell me what would be a better way > to overlay my copyright logo image on top of the map > images. Or, atleast tell me how to deal with > pasteImage() function in this kind of problem. > > Looking forward to your early response. Thanks. > > Regards, > Ishrar > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com -- ---------------------------------------------------------------- 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 Mon Feb 13 12:54:05 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 13 Feb 2006 14:54:05 -0600 Subject: Jbox verse dbox Message-ID: Define change the map size on the fiy? (perhaps share the canadian site) jbox and dbox were designed to be compatible with relative positioning- tables and such. As such you can't really make 'em bigger by resizing a control. However there are ways aound that. It would be easier to comment knowing exactly the effect you were after. Steve >>> Gary Watry 02/13/06 1:33 PM >>> I have a development site up and I want to enhance it with a dynamic Zoom Box. However, I have borrowed an concept from a Canada website and can change the map size on the fly, Can I add Jbox or dBox to a site without losing the ability to dynamically change the map size? Which is easier to implement? ______________________________________________________________ Gary L. Watry GIS Coordinator Center for Ocean-Atmospheric Prediction Studies FSU / COAPS Johnson Building, RM 215 2035 East Paul Dirac Drive Tallahassee, Florida 32306-2840 E-Mail: watry at coaps.fsu.edu -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Tyler Mitchell Sent: Thursday, January 26, 2006 3:49 PM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] New mapping framework: Flexible Internet Spatial Template (FIST) Passing along this announcement about an open source project from the University of BC. This is a MapServer/PHP framework with several advanced functions people are looking for. It can optionally use PostGIS in the backend so your users can edit and save shapes and attributes - that's the most exciting part for me. Note there is a mailing specifically for FIST discussions - see link at bottom. Tyler ------------------------------------- The Flexible Internet Spatial Template (FIST) is now available for download. FIST is an open source (GPL), PHP object based application that is used to rapidly deploy internet mapping web sites. It provides a code base with built-in functionality for common internet mapping tasks as well as the ability to extend the mapping site with custom functions. Currently it works exclusively with UMN MapServer, but the backend could be extended to work with any map server. Key features: - Built in tools including: - Standard zoom-pan - Multiple query and identify tools - Distance/area measurement - Map markup - PDF map making - PostGIS editing capability - Custom tools: connect buttons/tool icons to external scripts with ease. - Real-time coordinate display Website: http://datashare.gis.unbc.ca/fist/ Mailing List: http://www.freelists.org/archives/fist-users/ (new) From taatuut at PLANET.NL Mon Feb 13 13:28:12 2006 From: taatuut at PLANET.NL (Emil Zegers) Date: Mon, 13 Feb 2006 22:28:12 +0100 Subject: Solution for OGR Virtual polygon data In-Reply-To: Message-ID: Hello Mark, The solution for your problem lies in the format of the polygon data. You should use: POLYGON (( 501453.34 4800585.97, 501576.14 4800590.44, 501569.85 4800522, 501471.61 4800521.63, 501453.34 4800585.97 )) Instead of the format you used. I got it working that way. Regards, Emil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Mark Adams Sent: donderdag 9 februari 2006 22:11 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] OGR Virtual Well, I've tried it and this is what I found: -adding a Projection statement in the MAP file changed nothing. I added PROJECTION elements to each layer, and played around with changing layers to different projections - the other layers all worked fine, reprojection worked fine etc. -adding the EPSG in the OVF file *finally* generated an error: [MapServer Error]: msOGRFileOpen(): Open failed for OGR connection `parcel_test.ovf'. Failed to import LayerSRS `EPSG:26917'. The OVF file now looks like this: ODBC:parcel_test,PROPERTY_VIRTUAL SELECT GEOMETRY FROM PROPERTY_VIRTUAL wkbPolygon EPSG:26917 I don't know why this would fail: the epsg file in proj\nad folder has this code defined, and mapserver is able to use it for the other layers (which are shapefiles). Any thoughts? Thanks for your help so far. ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com -----Original Message----- From: Emil Zegers [mailto:taatuut at planet.nl] Sent: February 9, 2006 3:57 PM To: Mark Adams; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] OGR Virtual Hello Mark, You are correct with your explanation about PROJECTION but since I had this case last year where I did have to add PROJECTION to an OVF layer although all data was in the same projection I thought it might be worth trying it. However, I have not fully test cased this and I don't know enough about the underlying code to be sure this was the (right) solution to the problem. Regards, Emil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Mark Adams Sent: donderdag 9 februari 2006 21:44 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] OGR Virtual I will try that. However, my understanding of PROJECTION is that it is not required unless you have data in more than one projection, or want to display the data in a projection different from the one the data is in. Is that not correct? Thanks. ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com -----Original Message----- From: Emil Zegers [mailto:taatuut at planet.nl] Sent: February 9, 2006 3:41 PM To: Mark Adams; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] OGR Virtual Hello Mark, Have you tried adding a PROJECTION to the LAYER containing the ovf file and/or the ovf file? Something like: LAYER NAME "Virtual Parcel" DEBUG ON STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "parcel_test.ovf" DATA "parcel_test" TYPE POLYGON # fill projection parameter, e.g. 28992 for Dutch system PROJECTION "init=epsg:12345" END TEMPLATE "null" CLASS NAME "Virtual Parcel" STYLE COLOR 255 1 5 OUTLINECOLOR 168 112 0 END END END In the past I had situations where I needed to put the PROJECTION in the LAYER and not in the OVF file. Also, use STATUS DEFAULT for testing purposes so the layer is always on. Regards, Emil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Mark Adams Sent: donderdag 9 februari 2006 21:12 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] OGR Virtual Hello, I would like to know if there was ever a successful resolution to Frank's question below. I am in the same situation: I cannot get the OGR virtual layer to render on my map. I have had no problem with points. However when I try to render a virtual polygon I get no error, just no feature on the map. The other layers all render without problem. I get no error from OGRINFO either. I've tried a number of different ways of configuring the OVF file, the data in the database, and the MAP file. Numerous combinations result in "success" in the sense of no errors, but still no features. Here is my most recent attempt: Connection: I'm using an ODBC connection to an MS Access database. The ODBC connection is called "parcel_test". OVF: ODBC:parcel_test,PROPERTY_VIRTUAL SELECT GEOMETRY FROM PROPERTY_VIRTUAL wkbPolygon MAP: LAYER NAME "Virtual Parcel" DEBUG ON STATUS ON CONNECTIONTYPE OGR CONNECTION "parcel_test.ovf" DATA "parcel_test" TYPE POLYGON TEMPLATE "null" CLASS NAME "Virtual Parcel" STYLE COLOR 255 1 5 OUTLINECOLOR 168 112 0 END END END I've got one record in the PROPERTY_VIRTUAL table, with the GEOMETRY value set as follows: POLYGON('501453.34 4800585.97,501576.14 4800590.44,501569.85 4800522,501471.61 4800521.63,501453.34 4800585.97') I've also tried storing the geometry without the quotes, brackets, and keyword POLYGON but it doesn't change the result. From s_jubeh at YAHOO.COM Mon Feb 13 14:09:34 2006 From: s_jubeh at YAHOO.COM (salah jubeh) Date: Mon, 13 Feb 2006 14:09:34 -0800 Subject: wight image {Scanned} In-Reply-To: Message-ID: The extent of this image such that the x coordinate of the lower right corner is bigger than x coordinate for the top left corner so when i define the extent in the map file i get this error. loadMapInternal(): General error message. Given map extent is invalid. Check that it is in the form: minx, miny, maxx, maxy i have attached the image file, how i can solve it. i have wld files also i have used the same version of mapserver to display raster images before --------------------------------- What are the most popular cars? Find out at Yahoo! Autos -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 524_891.tif Type: image/tiff Size: 35965 bytes Desc: 132472168-524_891.tif URL: From triplederby100-propos at YAHOO.COM Mon Feb 13 14:21:37 2006 From: triplederby100-propos at YAHOO.COM (Kaarigar) Date: Mon, 13 Feb 2006 16:21:37 -0600 Subject: Linux binary Message-ID: Is there a Linux binary for mapserver available for download? Can it be anually installed on a webserver to get mapserver up and running? I want to avoid building mapserver and all the prerequisites, and just get hold of the binary so that I can deploy it on my website. The ISP where the website is hosted allows me to install cgi scripts, php, Apache modules. Will appreciate any advice. Kaarigar ============== From jennifer at GREENINFO.ORG Mon Feb 13 14:21:24 2006 From: jennifer at GREENINFO.ORG (Jennifer Shanks) Date: Mon, 13 Feb 2006 14:21:24 -0800 Subject: Zoom to maximum bounding extent of selected features (PostGIS) Message-ID: Hello, I'm attempting to customize a query tool written in PHP/Mapscript that selects features from a PostGIS database and highlights them on the map. I'd like to also zoom to the maximum bounding extents of the selected features. Does anyone have any code samples that I could look at? Would I use the PostGIS extent function to get the maximum extent of selected features? Once I have the extent, could I then use the zoomrectangle method of the MapObj class? It seems as though I will need to do some calculations in order to get the correct parameters for zoomrectangle. Any guidance or code snippets would be much appreciated. Regards, Jennifer **************************** Jennifer Shanks GreenInfo Network 116 New Montgomery, Suite 738 San Francisco, CA 94105 (415) 979-0343 x 306 (415) 979-0371 FAX **GreenInfo has completely re-done our web site Go to: www.greeninfo.org From naci0002 at UMN.EDU Mon Feb 13 14:35:17 2006 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Mon, 13 Feb 2006 16:35:17 -0600 Subject: wight image {Scanned} In-Reply-To: <20060213220934.40753.qmail@web52712.mail.yahoo.com> Message-ID: Check your permissions. Make sure the httpd (apache, nobody, whatever) have read access to the image. -Perry On Monday 13 February 2006 16:09, salah jubeh wrote: > The extent of this image such that the x coordinate of the lower right > corner is bigger than x coordinate for the top left corner so when i define > the extent in the map file i get this error. > > loadMapInternal(): General error message. Given map extent is invalid. > Check that it is in the form: minx, miny, maxx, maxy > > > i have attached the image file, how i can solve it. i have wld files also > i have used the same version of mapserver to display raster images before > > > > > --------------------------------- > > What are the most popular cars? Find out at Yahoo! Autos -- Pericles S. Nacionales Conservation Biology Program University of Minnesota e-mail: naci0002 at umn.edu From jcradock at ME3.COM Mon Feb 13 14:38:31 2006 From: jcradock at ME3.COM (James Cradock) Date: Mon, 13 Feb 2006 17:38:31 -0500 Subject: Linux binary In-Reply-To: Message-ID: Kaarigar, Which distribution are you using? RPM-based (Fedora, Redhat, Mandrake) or APT-based (Ubuntu, Debian). For example, binaries are available for Debian 3.1 via APT. If you have a virtual host account then the hosting provider may need to be "encouraged" to install it for you. Jim > Is there a Linux binary for mapserver available for download? Can it be > anually installed on a webserver to get mapserver up and running? I want > to > avoid building mapserver and all the prerequisites, and just get hold of > the > binary so that I can deploy it on my website. The ISP where the website is > hosted allows me to install cgi scripts, php, Apache modules. Will > appreciate any advice. > > Kaarigar > ============== > ----- James Cradock, jcradock at me3.com From triplederby100-propos at YAHOO.COM Mon Feb 13 14:50:16 2006 From: triplederby100-propos at YAHOO.COM (Kaarigar K) Date: Mon, 13 Feb 2006 14:50:16 -0800 Subject: Linux binary In-Reply-To: <49740.66.63.75.235.1139870311.squirrel@secure.me3.com> Message-ID: Jim, The ISP is lunarpages.com and uses Linux (2.4.21-27.0.4.ELsmp), PHP (4.4.1) Unfortunately, the only access I have is via control panel. I am able to upload cgi binaries to the cgi-bin directory, but I a not sure if that would get me mapserver hosted. Hence the question. It would be great though if it could. They have a great support and see if I can "encourage" them to install the RPM. Kaarigar =============== ----- Original Message ---- From: jcradock at me3.com To: Kaarigar Cc: mapserver-users at lists.umn.edu Sent: Monday, February 13, 2006 2:38:31 PM Subject: Re: [UMN_MAPSERVER-USERS] Linux binary Kaarigar, Which distribution are you using? RPM-based (Fedora, Redhat, Mandrake) or APT-based (Ubuntu, Debian). For example, binaries are available for Debian 3.1 via APT. If you have a virtual host account then the hosting provider may need to be "encouraged" to install it for you. Jim > Is there a Linux binary for mapserver available for download? Can it be > anually installed on a webserver to get mapserver up and running? I want > to > avoid building mapserver and all the prerequisites, and just get hold of > the > binary so that I can deploy it on my website. The ISP where the website is > hosted allows me to install cgi scripts, php, Apache modules. Will > appreciate any advice. > > Kaarigar > ============== > ----- James Cradock, jcradock at me3.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From pspencer at DMSOLUTIONS.CA Mon Feb 13 17:32:54 2006 From: pspencer at DMSOLUTIONS.CA (Paul Spencer) Date: Mon, 13 Feb 2006 20:32:54 -0500 Subject: Zoom to maximum bounding extent of selected features (PostGIS) In-Reply-To: <6.2.3.4.2.20060213140832.01db02e0@hood.greeninfo.org> Message-ID: Jennifer, you can just set the extents of the mapObj directly using $oMap- >setextents ... Cheers Paul On 13-Feb-06, at 5:21 PM, Jennifer Shanks wrote: > Hello, > > I'm attempting to customize a query tool written in PHP/Mapscript > that selects features from a PostGIS database and highlights them > on the map. I'd like to also zoom to the maximum bounding extents > of the selected features. > > Does anyone have any code samples that I could look at? > > Would I use the PostGIS extent function to get the maximum extent > of selected features? Once I have the extent, could I then use the > zoomrectangle method of the MapObj class? > > It seems as though I will need to do some calculations in order to > get the correct parameters for zoomrectangle. > > Any guidance or code snippets would be much appreciated. > > Regards, > Jennifer > > > > > **************************** > Jennifer Shanks > GreenInfo Network > 116 New Montgomery, Suite 738 > San Francisco, CA 94105 > (415) 979-0343 x 306 > (415) 979-0371 FAX > **GreenInfo has completely re-done our web site > Go to: www.greeninfo.org > +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From bryceb at TULGAGAMES.COM Mon Feb 13 17:39:06 2006 From: bryceb at TULGAGAMES.COM (Bryce Bangerter) Date: Mon, 13 Feb 2006 18:39:06 -0700 Subject: Query Feature from a database source Message-ID: I've been looking at the Itasca demo and see how they query a feature from a given layer. I want to be able to do the same when my information is stored in a database, but I have been unable to figure out how to do so. I have the following layer: LAYER NAME Machine_Outlines GROUP Machine CONNECTIONTYPE postgis CONNECTION "host=localhost port=5432 dbname=thedatabase password=thepassword user=testuser" DATA "outline FROM (SELECT instance_id AS id, Translate(outline, X(position), Y(position), 0) AS outline FROM instance INNER JOIN primitive_def_footprint ON instance.primitive_def_id = primitive_def_footprint.primitive_def_id WHERE primitive_type = 'machine') AS instance USING UNIQUE id USING SRID=-1" TYPE POLYGON STATUS OFF CLASS NAME 'Machine' OUTLINECOLOR 0 0 0 COLOR 192 64 192 TEMPLATE templates/Machines.html END HEADER "templates/Machines_header.html" FOOTER "templates/Machines_footer.html" END And then Machines.html looks like [lrn][NAME] What I have been unable to figure out is how to get [NAME] to represent the column 'name' from the instance table of my database. Bryce Bangerter -------------- next part -------------- An HTML attachment was scrubbed... URL: From janeks.kamerovskis at SILVA.LV Mon Feb 13 23:37:00 2006 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Tue, 14 Feb 2006 09:37:00 +0200 Subject: FW: extent of query for advanced client side scripting Message-ID: Hello all! It seems for me that if I want to use advanced client side scripting, f.ex. zoomboxes, panning, etc., than I can use client side scipting to obtain current extent and therefore get map by using mode=map. But I anyway should to use a template to make some atribute queries, to get result extent of selected features? Am I right or there could be another solution? Thanks in advance, Janeks From maro.jam at TISCALI.IT Tue Feb 14 00:25:32 2006 From: maro.jam at TISCALI.IT (Andrea Marelli) Date: Tue, 14 Feb 2006 02:25:32 -0600 Subject: php/mapscript queryByRect on raster files Message-ID: Hi Frank, thank you very much for your hint, but I think the RASTER_QUERY_MAX_RESULT, should't be the best solution for my problem, because i don't need to limit the number of values allowed in a query, but i need to improve the management of the memory allocation. I've made some tests, and i've noted that the memory is allocated by the getShape function. But, in my code, the getShape function is in a for structure, and in each loop i overwrite all datas (and also i use free and unset functions!) but it seems that the new $shape object doesn't overwrite the shape created in the previous loop and it allocates the value in a new portion of the memory... How this is possible? Is there a way to create the object over the previuos, so to use always the same chunk of memory? regards, Andrea >Andrea, > >If you make queries on large areas, a substantial chunk of memory is >allocated at the point of the query to hold all the results. The maximum >number of values allowed in a query can be set with the PROCESSING option >RASTER_QUERY_MAX_RESULT on the layer. > >eg. > PROCESSING "RASTER_QUERY_MAX_RESULT=10000" > >The default maximum is one million and I think there are 36 bytes of memory >allocated per row in the resultset so up to about 36MB. Not such a huge >amount as a maximum. > >I don't know the details of the proper way of freeing shapes, but it >seems what you are doing is appropriate. > >I did a little test, and I don't see any obvious memory leaks in the core >mapserver raster query support. > >Best regards, >-- >---------------------------------------+-------------------------------------- >I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com >light and sound - activate the windows | http://pobox.com/~warmerdam >and watch the world go round - Rush | Geospatial Programmer for Rent >Andrea Marelli wrote: >> Any hint? >> i will hopefully wait... >> Thanks!! >... >>> i'm implementing queryByRect on raster files using php/mapscript. >>> The script i've written (see following code) works well, but i have a little >>> problem when i make queries on large areas... >>> It seems that the getShape function uses a very large amount of memory on >>> the server, so i put $shape->free(); but it seems to do nothing.. >>> Any suggestion on how to free shared memory on server? > From TWeber at TRAFFIC-CONSULT.DE Tue Feb 14 01:01:15 2006 From: TWeber at TRAFFIC-CONSULT.DE (Torsten Weber) Date: Tue, 14 Feb 2006 10:01:15 +0100 Subject: Mapserver crashes while antialiasing Message-ID: Hi all, I'm using mapserver 4.6.2 and 4.8.1 on SuSE 9.2 and 10.0 with php_mapscript. I've compiled both mapservers on both machines for using oracle to get the spatial information. If I use 8Bit coloring all things work fine (but no antialiasing). Within RGB mode the server gets segmentation faults. But sometimes it works one or two times (don't know why). Versions: mapserver: 4.6.2 + 4.8.1 SuSE Linux: 9.2 + 10.0 php: 4.3.8 + 4.4.0 oracle instantclient 10g apache: 2.0.50 + 2.0.54 gd: 2.0.28 + 2.0.32 I'm using antialiasing on line and polygon Layers only. But there are raster layers also. Here is an example for both antialiased layers: Polygon Layer using data from shape files. LAYER NAME "Gemeinden" PROJECTION "init=epsg:31467" END METADATA "DESCRIPTION" "Gemeinden" "RESULT_FIELDS" "Name" "RESULT_HEADERS" "Name" "SELECTABLE" "false" END DATA "/srv/www/htdocs/geodata/Admin_Grenzen/Gemeinden" TYPE POLYGON TRANSPARENCY 50 CLASS NAME "Gemeinden" TEMPLATE "void" STYLE COLOR 180 180 0 OUTLINECOLOR 90 90 0 SIZE 3 ANTIALIAS TRUE END END END # Layer Line Layer using oracle spatial data. LAYER NAME "kanten" PROJECTION "init=epsg:31467" END DEBUG ON CONNECTION "user/pass at oradb" CONNECTIONTYPE oraclespatial DATA "GEOLOC FROM (SELECT GEOLOC, ID, BEZEICHNUNG, ART, TYP FROM STRECKEVIEW) USING UNIQUE ID" TYPE LINE SYMBOLSCALE 20000.0 METADATA "DESCRIPTION" "Stra?en" "RESULT_FIELDS" "ID,BEZEICHNUNG,ART" "RESULT_HEADERS" "Nummer,Name,Typ" "SELECTABLE" "true" "LAYERDESC" "Stra?en" END # Metadata CLASS NAME "Autobahnen" TEMPLATE "void" EXPRESSION ([TYP]=21) STYLE SYMBOL "lstandard" COLOR 0 0 200 SIZE 7 ANTIALIAS TRUE MINSIZE 7 MAXSIZE 18 END STYLE SYMBOL "lstandard" COLOR 255 255 255 SIZE 4 ANTIALIAS TRUE MINSIZE 4 MAXSIZE 12 END STYLE SYMBOL "lstandard" COLOR 0 0 200 SIZE 2 MINSIZE 2 MAXSIZE 5 ANTIALIAS TRUE END LABEL ANGLE AUTO COLOR 256 0 0 POSITION AUTO SIZE LARGE TYPE truetype FONT "verdana" END #LABEL END # Class CLASS NAME "Bundesstra?en" TEMPLATE "void" EXPRESSION ([TYP]=22) #MAXSCALE 250000.0 STYLE SYMBOL "lstandard" COLOR 50 50 50 SIZE 5 MINSIZE 5 MAXSIZE 15 ANTIALIAS TRUE END STYLE SYMBOL "lstandard" COLOR 255 255 0 SIZE 2 MINSIZE 2 MAXSIZE 10 ANTIALIAS TRUE END END # Class CLASS NAME "Landesstra?en" TEMPLATE "void" EXPRESSION ([TYP]=23) MAXSCALE 250000.0 STYLE SYMBOL "lstandard" COLOR 50 50 50 SIZE 5 MINSIZE 5 MAXSIZE 15 ANTIALIAS TRUE END STYLE SYMBOL "lstandard" COLOR 250 250 250 SIZE 2 MINSIZE 2 MAXSIZE 10 ANTIALIAS TRUE END END # Class CLASS NAME "Kreisstra?en" TEMPLATE "void" EXPRESSION ([TYP]=24) MAXSCALE 75000.0 STYLE SYMBOL "lstandard" COLOR 50 50 50 SIZE 3 MINSIZE 3 MAXSIZE 10 ANTIALIAS TRUE END STYLE SYMBOL "lstandard" COLOR 250 250 250 SIZE 1 MINSIZE 1 MAXSIZE 6 ANTIALIAS TRUE END END # Class CLASS NAME "Sonstige" TEMPLATE "void" EXPRESSION ([TYP]<21 OR [TYP]>24) MAXSCALE 50000.0 STYLE SYMBOL "lstandard" COLOR 100 100 100 SIZE 1 #ANTIALIAS MINSIZE 1 MAXSIZE 10 ANTIALIAS TRUE END END # Class END # Layer Used outputformat: OUTPUTFORMAT NAME pngrgb DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB FORMATOPTION INTERLACE=OFF TRANSPARENT OFF END It doesn't matter if I use GIF or jpeg instead. Is anyone out there, who could help me? Many thanks and best regards Torsten From umberto.nicoletti at GMAIL.COM Tue Feb 14 01:17:48 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 14 Feb 2006 10:17:48 +0100 Subject: Mapserver crashes while antialiasing In-Reply-To: <200602141001.15747.TWeber@traffic-consult.de> Message-ID: perhaps you are using php as a shared module? Note that php as a shared module is not supported and will quite likely cause crashes like those you are experiencing. Reagrds, Umberto On 2/14/06, Torsten Weber wrote: > Hi all, > > I'm using mapserver 4.6.2 and 4.8.1 on SuSE 9.2 and 10.0 with php_mapscript. > I've compiled both mapservers on both machines for using oracle to get the > spatial information. If I use 8Bit coloring all things work fine (but no > antialiasing). Within RGB mode the server gets segmentation faults. But > sometimes it works one or two times (don't know why). > > Versions: > mapserver: 4.6.2 + 4.8.1 > SuSE Linux: 9.2 + 10.0 > php: 4.3.8 + 4.4.0 > oracle instantclient 10g > apache: 2.0.50 + 2.0.54 > gd: 2.0.28 + 2.0.32 > > I'm using antialiasing on line and polygon Layers only. But there are raster > layers also. > > Here is an example for both antialiased layers: > > Polygon Layer using data from shape files. > LAYER > NAME "Gemeinden" > PROJECTION > "init=epsg:31467" > END > METADATA > "DESCRIPTION" "Gemeinden" > "RESULT_FIELDS" "Name" > "RESULT_HEADERS" "Name" > "SELECTABLE" "false" > END > DATA "/srv/www/htdocs/geodata/Admin_Grenzen/Gemeinden" > TYPE POLYGON > TRANSPARENCY 50 > CLASS > NAME "Gemeinden" > TEMPLATE "void" > STYLE > COLOR 180 180 0 > OUTLINECOLOR 90 90 0 > SIZE 3 > ANTIALIAS TRUE > END > END > END # Layer > > Line Layer using oracle spatial data. > LAYER > NAME "kanten" > PROJECTION > "init=epsg:31467" > END > DEBUG ON > CONNECTION "user/pass at oradb" > CONNECTIONTYPE oraclespatial > DATA "GEOLOC FROM (SELECT GEOLOC, ID, BEZEICHNUNG, ART, TYP FROM > STRECKEVIEW) USING UNIQUE ID" > TYPE LINE > SYMBOLSCALE 20000.0 > METADATA > "DESCRIPTION" "Stra?en" > "RESULT_FIELDS" "ID,BEZEICHNUNG,ART" > "RESULT_HEADERS" "Nummer,Name,Typ" > "SELECTABLE" "true" > "LAYERDESC" "Stra?en" > END # Metadata > CLASS > NAME "Autobahnen" > TEMPLATE "void" > EXPRESSION ([TYP]=21) > STYLE > SYMBOL "lstandard" > COLOR 0 0 200 > SIZE 7 > ANTIALIAS TRUE > MINSIZE 7 > MAXSIZE 18 > END > STYLE > SYMBOL "lstandard" > COLOR 255 255 255 > SIZE 4 > ANTIALIAS TRUE > MINSIZE 4 > MAXSIZE 12 > END > STYLE > SYMBOL "lstandard" > COLOR 0 0 200 > SIZE 2 > MINSIZE 2 > MAXSIZE 5 > ANTIALIAS TRUE > END > LABEL > ANGLE AUTO > COLOR 256 0 0 > POSITION AUTO > SIZE LARGE > TYPE truetype > FONT "verdana" > END #LABEL > END # Class > CLASS > NAME "Bundesstra?en" > TEMPLATE "void" > EXPRESSION ([TYP]=22) > #MAXSCALE 250000.0 > STYLE > SYMBOL "lstandard" > COLOR 50 50 50 > SIZE 5 > MINSIZE 5 > MAXSIZE 15 > ANTIALIAS TRUE > END > STYLE > SYMBOL "lstandard" > COLOR 255 255 0 > SIZE 2 > MINSIZE 2 > MAXSIZE 10 > ANTIALIAS TRUE > END > END # Class > CLASS > NAME "Landesstra?en" > TEMPLATE "void" > EXPRESSION ([TYP]=23) > MAXSCALE 250000.0 > STYLE > SYMBOL "lstandard" > COLOR 50 50 50 > SIZE 5 > MINSIZE 5 > MAXSIZE 15 > ANTIALIAS TRUE > END > STYLE > SYMBOL "lstandard" > COLOR 250 250 250 > SIZE 2 > MINSIZE 2 > MAXSIZE 10 > ANTIALIAS TRUE > END > END # Class > CLASS > NAME "Kreisstra?en" > TEMPLATE "void" > EXPRESSION ([TYP]=24) > MAXSCALE 75000.0 > STYLE > SYMBOL "lstandard" > COLOR 50 50 50 > SIZE 3 > MINSIZE 3 > MAXSIZE 10 > ANTIALIAS TRUE > END > STYLE > SYMBOL "lstandard" > COLOR 250 250 250 > SIZE 1 > MINSIZE 1 > MAXSIZE 6 > ANTIALIAS TRUE > END > END # Class > CLASS > NAME "Sonstige" > TEMPLATE "void" > EXPRESSION ([TYP]<21 OR [TYP]>24) > MAXSCALE 50000.0 > STYLE > SYMBOL "lstandard" > COLOR 100 100 100 > SIZE 1 > #ANTIALIAS > MINSIZE 1 > MAXSIZE 10 > ANTIALIAS TRUE > END > END # Class > END # Layer > > Used outputformat: > OUTPUTFORMAT > NAME pngrgb > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE RGB > FORMATOPTION INTERLACE=OFF > TRANSPARENT OFF > END > It doesn't matter if I use GIF or jpeg instead. > > Is anyone out there, who could help me? > > Many thanks and best regards > > Torsten > From as.khadkikar at NCL.RES.IN Tue Feb 14 01:35:38 2006 From: as.khadkikar at NCL.RES.IN (Aniruddha S. Khadkikar) Date: Tue, 14 Feb 2006 15:05:38 +0530 Subject: Mapserver 4.8.1 linux installation problems Message-ID: Hi all, I have been able to compile successfully on fedora core 4. However I am facing an unusual problem. When I run: ./mapserv in the /usr/local/mapserv-4.8.1/ it gives the correct message that the script can only be run as a cgi application. However when I copied the files to /var/www/cgi-bin/ and did the same thing - nothing. I have only recently migrated from windows to linux - so please bear with my ignorance on basic issues too (in case any). Are there any libraries or other files that need addressing. Also, in future would it be possible to install mapserver using yum? Thanks. Aniruddha From as.khadkikar at NCL.RES.IN Tue Feb 14 01:48:20 2006 From: as.khadkikar at NCL.RES.IN (Aniruddha S. Khadkikar) Date: Tue, 14 Feb 2006 15:18:20 +0530 Subject: In continuation of my earlier mail Message-ID: Yes, there was another issue when I tried to compile with ogr support. I frankly do not have a clue what the following means: mapogr.cpp: undefined reference to `OGRLineString::setPoint(int, double, double)' ./libmap.a(mapogr.o)(.text+0x4af):mapogr.cpp: undefined reference to `OGRLineString::setPoint(int, double, double)' ./libmap.a(mapogr.o)(.text+0x4c8):mapogr.cpp: undefined reference to `OGRLineString::setPoint(int, double, double)' ./libmap.a(mapogr.o)(.text+0x4e1):mapogr.cpp: undefined reference to `OGRLineString::setPoint(int, double, double)' ./libmap.a(mapogr.o)(.text+0x4f6):mapogr.cpp: undefined reference to `OGRLineString::setPoint(int, double, double)' ./libmap.a(mapogr.o)(.text+0xae9): In function `msOGRShapeToWKT': mapogr.cpp: undefined reference to `OGR_G_AddPoint_2D' ./libmap.a(mapogr.o)(.text+0xb39):mapogr.cpp: undefined reference to `OGR_G_SetPoint_2D' ./libmap.a(mapogr.o)(.text+0xbb7):mapogr.cpp: undefined reference to `OGR_G_AddPoint_2D' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 ...after this I aborted. The earlier binary I am using is without ogr support. Thanks Aniruddha From jorn at SPACETEC.NO Tue Feb 14 03:30:42 2006 From: jorn at SPACETEC.NO (=?iso-8859-1?q?J=F8rn_Vegard_R=F8snes?=) Date: Tue, 14 Feb 2006 12:30:42 +0100 Subject: Virtual Globe Message-ID: Hi, just want to send you a hint about this 3D tool. http://globe.sintef.no/ It's almost like Google Earth, but with WMS support. cheers J?rn From martafuster at GMAIL.COM Tue Feb 14 04:08:34 2006 From: martafuster at GMAIL.COM (Marta Fuster Truyol) Date: Tue, 14 Feb 2006 06:08:34 -0600 Subject: labeling in differents sizes Message-ID: Hi list! I have a question, is it possible to put different kinds of labels for items which are in the same shape? I mean, if I have points in a shape that represent cities and i want to put labels with names in diferent sizes, depending on the city, is that possible? thanks a lot! From xnzhang11 at GMAIL.COM Tue Feb 14 04:22:17 2006 From: xnzhang11 at GMAIL.COM (Xiaonan Zhang) Date: Tue, 14 Feb 2006 12:22:17 +0000 Subject: Highlight image symbol In-Reply-To: <1FEE21DC1054D5119FCC0002A5517B24056F2689@rws-mdi-dt2-01.agi.rws.minvenw.nl> Message-ID: Thanks Bart. I added a new layer to store the selection. thanks. On 13/02/06, Eijnden, B. van den (Bart) wrote: > > Hi, > > I always draw the selection in a separate LAYER which is on top of the > map, and then you can add a STYLE object to your CLASS with e.g. a circle > symbol and set its color to the color you want for selection. The circle > will need to be underneath your PIXMAP (watch your STYLE sequence). > > For that I use PHP/Mapscript. > > Best regards, > Bart > > -----Oorspronkelijk bericht----- > *Van:* Xiaonan Zhang [mailto:xnzhang11 at gmail.com] > *Verzonden:* maandag 13 februari 2006 15:49 > *Aan:* Eijnden, B. van den (Bart) > *CC:* MAPSERVER-USERS at lists.umn.edu > *Onderwerp:* Re: [UMN_MAPSERVER-USERS] Highlight image symbol > > Hi Bart, > > Do you mean I need to add code to draw a circle arount the selected > feature? > > regards > > Jonathan > > On 13/02/06, Eijnden, B. van den (Bart) > wrote: > > > > If your pixmap is transparent, you can draw a circle underneath using > > the selection colour. > > > > Best regards, > > Bart > > > > -----Oorspronkelijk bericht----- > > *Van:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]*Namens > > *Xiaonan Zhang > > *Verzonden:* maandag 13 februari 2006 15:36 > > *Aan:* MAPSERVER-USERS at LISTS.UMN.EDU > > *Onderwerp:* [UMN_MAPSERVER-USERS] Highlight image symbol > > > > Dear all, > > > > I created one image symbol (pixmap) to a point layer. However I can not > > highlight the selected features in that layer as the symbol is an image. > > Is there anyway to solve this? > > > > thanks. > > > > Jonathan > > > > > > Disclaimer > > ************************************************************************ Aan > > dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend > > bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, > > wordt u verzocht het te vernietigen en de afzender te informeren. Wij > > adviseren u om bij twijfel over de juistheid of de volledigheid van de mail > > contact met afzender op te nemen. This message shall not constitute any > > rights or obligations. This message is intended solely for the addressee. If > > you have received this message in error, please delete it and notify the > > sender immediately. When in doubt whether this message is correct or > > complete, please contact the sender. > > ************************************************************************ > > > > > Disclaimer > ************************************************************************ Aan > dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend > bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, > wordt u verzocht het te vernietigen en de afzender te informeren. Wij > adviseren u om bij twijfel over de juistheid of de volledigheid van de mail > contact met afzender op te nemen. This message shall not constitute any > rights or obligations. This message is intended solely for the addressee. If > you have received this message in error, please delete it and notify the > sender immediately. When in doubt whether this message is correct or > complete, please contact the sender. > ************************************************************************ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From xnzhang11 at GMAIL.COM Tue Feb 14 04:35:30 2006 From: xnzhang11 at GMAIL.COM (Xiaonan Zhang) Date: Tue, 14 Feb 2006 12:35:30 +0000 Subject: Fwd: [UMN_MAPSERVER-USERS] labeling in differents sizes In-Reply-To: Message-ID: Yes, you can use expressions in .map file. for exmaple, LAYER NAME city ... CLASSITEM "Capital" CLASS EXPRESSION "1" TEMPLATE "ttt_query.html" SYMBOL 2 SIZE 8 NAME "Cities" LABEL COLOR 255 0 0 FONT sans-italic TYPE truetype SIZE 8 POSITION AUTO PARTIALS FALSE OUTLINECOLOR 255 255 255 END COLOR 0 0 0 END CLASS EXPRESSION /2|3/ TEMPLATE "ttt_query.html" SYMBOL 7 SIZE 6 NAME "Cities" LABEL COLOR 0 0 0 FONT sans TYPE truetype SIZE 8 POSITION AUTO PARTIALS FALSE OUTLINECOLOR 255 255 255 END COLOR 0 0 0 END TOLERANCE 5 END # Layer On 14/02/06, Marta Fuster Truyol wrote: > > Hi list! > > I have a question, is it possible to put different kinds of labels for > items which are in the same shape? I mean, if I have points in a shape > that represent cities and i want to put labels with names in diferent > sizes, depending on the city, is that possible? > > thanks a lot! > -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Tue Feb 14 05:07:47 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 14 Feb 2006 08:07:47 -0500 Subject: In continuation of my earlier mail In-Reply-To: <1139910500.1730.6.camel@localhost.localdomain> Message-ID: Aniruddha S. Khadkikar wrote: > Yes, there was another issue when I tried to compile with ogr support. I > frankly do not have a clue what the following means: > mapogr.cpp: undefined reference to `OGRLineString::setPoint(int, double, > double)' > ./libmap.a(mapogr.o)(.text+0x4af):mapogr.cpp: undefined reference to > `OGRLineString::setPoint(int, double, double)' > ./libmap.a(mapogr.o)(.text+0x4c8):mapogr.cpp: undefined reference to > `OGRLineString::setPoint(int, double, double)' > ./libmap.a(mapogr.o)(.text+0x4e1):mapogr.cpp: undefined reference to > `OGRLineString::setPoint(int, double, double)' > ./libmap.a(mapogr.o)(.text+0x4f6):mapogr.cpp: undefined reference to > `OGRLineString::setPoint(int, double, double)' > ./libmap.a(mapogr.o)(.text+0xae9): In function `msOGRShapeToWKT': > mapogr.cpp: undefined reference to `OGR_G_AddPoint_2D' > ./libmap.a(mapogr.o)(.text+0xb39):mapogr.cpp: undefined reference to > `OGR_G_SetPoint_2D' > ./libmap.a(mapogr.o)(.text+0xbb7):mapogr.cpp: undefined reference to > `OGR_G_AddPoint_2D' > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > > ...after this I aborted. The earlier binary I am using is without ogr > support. Aniruddha, The above messages indicate a versioning problem with OGR. The OGR_G_SetPoint_2D() function is relatively new. But as long as you pull in the right include files at built time, MapServer 4.8.1 should avoid trying to use it. This was not true of some of the 4.8 pre-releases. My suggestion is to make sure you have any old GDAL/OGR stuff stripped off your system and then install GDAL/OGR 1.3.2 from source. Then build MapServer 4.8.1. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From TWeber at TRAFFIC-CONSULT.DE Tue Feb 14 06:25:32 2006 From: TWeber at TRAFFIC-CONSULT.DE (Torsten Weber) Date: Tue, 14 Feb 2006 15:25:32 +0100 Subject: Mapserver crashes while antialiasing In-Reply-To: <75b4b93e0602140117n554b908bmb14cf62eb0a0cabd@mail.gmail.com> Message-ID: Hi Umberto, thanks for your advice. I've configured the apache on the SuSE 9.2 System to use php as a fastcgi prog instead of the module. After solving some problems passing the oracle environment to the cgi, I got the the same result as working with the moduled version with the little difference that the php prog is now crashing. I get the following error from the apache server every time I use the RGB mode: "Server error! The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script." 8 Bit works fine but slow??. Do you have some other ideas? Regards Torsten Am Dienstag, 14. Februar 2006 10:17 schrieb Umberto Nicoletti: > perhaps you are using php as a shared module? > > Note that php as a shared module is not supported and will quite > likely cause crashes like those you are experiencing. > > Reagrds, > Umberto > > On 2/14/06, Torsten Weber wrote: > > Hi all, > > > > I'm using mapserver 4.6.2 and 4.8.1 on SuSE 9.2 and 10.0 with > > php_mapscript. I've compiled both mapservers on both machines for using > > oracle to get the spatial information. If I use 8Bit coloring all things > > work fine (but no antialiasing). Within RGB mode the server gets > > segmentation faults. But sometimes it works one or two times (don't know > > why). > > > > Versions: > > mapserver: 4.6.2 + 4.8.1 > > SuSE Linux: 9.2 + 10.0 > > php: 4.3.8 + 4.4.0 > > oracle instantclient 10g > > apache: 2.0.50 + 2.0.54 > > gd: 2.0.28 + 2.0.32 > > > > I'm using antialiasing on line and polygon Layers only. But there are > > raster layers also. > > > > Here is an example for both antialiased layers: > > > > Polygon Layer using data from shape files. > > LAYER > > NAME "Gemeinden" > > PROJECTION > > "init=epsg:31467" > > END > > METADATA > > "DESCRIPTION" "Gemeinden" > > "RESULT_FIELDS" "Name" > > "RESULT_HEADERS" "Name" > > "SELECTABLE" "false" > > END > > DATA "/srv/www/htdocs/geodata/Admin_Grenzen/Gemeinden" > > TYPE POLYGON > > TRANSPARENCY 50 > > CLASS > > NAME "Gemeinden" > > TEMPLATE "void" > > STYLE > > COLOR 180 180 0 > > OUTLINECOLOR 90 90 0 > > SIZE 3 > > ANTIALIAS TRUE > > END > > END > > END # Layer > > > > Line Layer using oracle spatial data. > > LAYER > > NAME "kanten" > > PROJECTION > > "init=epsg:31467" > > END > > DEBUG ON > > CONNECTION "user/pass at oradb" > > CONNECTIONTYPE oraclespatial > > DATA "GEOLOC FROM (SELECT GEOLOC, ID, BEZEICHNUNG, ART, > > TYP FROM STRECKEVIEW) USING UNIQUE ID" > > TYPE LINE > > SYMBOLSCALE 20000.0 > > METADATA > > "DESCRIPTION" "Stra?en" > > "RESULT_FIELDS" "ID,BEZEICHNUNG,ART" > > "RESULT_HEADERS" "Nummer,Name,Typ" > > "SELECTABLE" "true" > > "LAYERDESC" "Stra?en" > > END # Metadata > > CLASS > > NAME "Autobahnen" > > TEMPLATE "void" > > EXPRESSION ([TYP]=21) > > STYLE > > SYMBOL "lstandard" > > COLOR 0 0 200 > > SIZE 7 > > ANTIALIAS TRUE > > MINSIZE 7 > > MAXSIZE 18 > > END > > STYLE > > SYMBOL "lstandard" > > COLOR 255 255 255 > > SIZE 4 > > ANTIALIAS TRUE > > MINSIZE 4 > > MAXSIZE 12 > > END > > STYLE > > SYMBOL "lstandard" > > COLOR 0 0 200 > > SIZE 2 > > MINSIZE 2 > > MAXSIZE 5 > > ANTIALIAS TRUE > > END > > LABEL > > ANGLE AUTO > > COLOR 256 0 0 > > POSITION AUTO > > SIZE LARGE > > TYPE truetype > > FONT "verdana" > > END #LABEL > > END # Class > > CLASS > > NAME "Bundesstra?en" > > TEMPLATE "void" > > EXPRESSION ([TYP]=22) > > #MAXSCALE 250000.0 > > STYLE > > SYMBOL "lstandard" > > COLOR 50 50 50 > > SIZE 5 > > MINSIZE 5 > > MAXSIZE 15 > > ANTIALIAS TRUE > > END > > STYLE > > SYMBOL "lstandard" > > COLOR 255 255 0 > > SIZE 2 > > MINSIZE 2 > > MAXSIZE 10 > > ANTIALIAS TRUE > > END > > END # Class > > CLASS > > NAME "Landesstra?en" > > TEMPLATE "void" > > EXPRESSION ([TYP]=23) > > MAXSCALE 250000.0 > > STYLE > > SYMBOL "lstandard" > > COLOR 50 50 50 > > SIZE 5 > > MINSIZE 5 > > MAXSIZE 15 > > ANTIALIAS TRUE > > END > > STYLE > > SYMBOL "lstandard" > > COLOR 250 250 250 > > SIZE 2 > > MINSIZE 2 > > MAXSIZE 10 > > ANTIALIAS TRUE > > END > > END # Class > > CLASS > > NAME "Kreisstra?en" > > TEMPLATE "void" > > EXPRESSION ([TYP]=24) > > MAXSCALE 75000.0 > > STYLE > > SYMBOL "lstandard" > > COLOR 50 50 50 > > SIZE 3 > > MINSIZE 3 > > MAXSIZE 10 > > ANTIALIAS TRUE > > END > > STYLE > > SYMBOL "lstandard" > > COLOR 250 250 250 > > SIZE 1 > > MINSIZE 1 > > MAXSIZE 6 > > ANTIALIAS TRUE > > END > > END # Class > > CLASS > > NAME "Sonstige" > > TEMPLATE "void" > > EXPRESSION ([TYP]<21 OR [TYP]>24) > > MAXSCALE 50000.0 > > STYLE > > SYMBOL "lstandard" > > COLOR 100 100 100 > > SIZE 1 > > #ANTIALIAS > > MINSIZE 1 > > MAXSIZE 10 > > ANTIALIAS TRUE > > END > > END # Class > > END # Layer > > > > Used outputformat: > > OUTPUTFORMAT > > NAME pngrgb > > DRIVER "GD/PNG" > > MIMETYPE "image/png" > > IMAGEMODE RGB > > FORMATOPTION INTERLACE=OFF > > TRANSPARENT OFF > > END > > It doesn't matter if I use GIF or jpeg instead. > > > > Is anyone out there, who could help me? > > > > Many thanks and best regards > > > > Torsten -- T. Weber E-Mail: TWeber at traffic-consult.de, TWeber at weber-sys.de Traffic Consult GmbH Herzbachweg 65 63571 Gelnhausen Tel: 06051 / 82889-15 Mobile: 0179 / 5340731 Fax: 06051 / 82889-29 E-mail: info at traffic-consult.de WWW: http://www.traffic-consult.de From LVN at HVENEGAARD.DK Tue Feb 14 06:52:16 2006 From: LVN at HVENEGAARD.DK (Lars V. Nielsen (Hvenegaard)) Date: Tue, 14 Feb 2006 15:52:16 +0100 Subject: PHP/MapScript: How to add a point as an inline feature ? Message-ID: Hello list, Using MapScript 4.5, and I've now re-read the class doc several times, but I can't seem to find the appropriate way to add points to a layer as inline features. Adding features to a layer require shapeObj's. I can create a shape with type MS_SHAPE_POINT, but can't set the coordinate values. I can use the x and y to create a pointObj, but can't seem to find a way to use a pointObj to create a shapeObj. I probably missing something obvious here, but what ? Please help .... Best regards / Med venlig hilsen Lars V. Nielsen -------------------------------------------------------- Hvenegaard A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk From Artur.Skalski at ACXIOM.COM Tue Feb 14 06:58:26 2006 From: Artur.Skalski at ACXIOM.COM (Skalski Artur - askals) Date: Tue, 14 Feb 2006 15:58:26 +0100 Subject: PHP/MapScript: How to add a point as an inline feature ? Message-ID: lokk a this code: $spoint = ms_newPointObj(); $spoint->setXY(your x, your y); $sline = ms_newLineObj(); $sline->add($spoint); $sshape = ms_newShapeObj(MS_SHAPE_POINT); $sshape->add($sline); $slayer = $gpoMap->getLayerByName("selpoint"); $slayer->addFeature($sshape); this works for me - adds dynamic point to a layer, layer is set in mapfile, like this: LAYER NAME selpoint TYPE POINT STATUS DEFAULT PROJECTION "init=epsg:4326" #lon/latwgs84 END CLASS NAME "selpoint" STYLE SYMBOL 'C:\Inetpub\wwwroot\mapserver\framedefs\etc\tutaj_red.gif' END END END is this what your looking for? Artur Skalski Hello list, Using MapScript 4.5, and I've now re-read the class doc several times, but I can't seem to find the appropriate way to add points to a layer as inline features. Adding features to a layer require shapeObj's. I can create a shape with type MS_SHAPE_POINT, but can't set the coordinate values. I can use the x and y to create a pointObj, but can't seem to find a way to use a pointObj to create a shapeObj. I probably missing something obvious here, but what ? Please help .... Best regards / Med venlig hilsen Lars V. Nielsen -------------------------------------------------------- Hvenegaard A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk *************************************************************************** The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please resend this communication to the sender and delete the original message or any copy of it from your computer system. Thank You. **************************************************************************** From robe.dnd at CITYOFBOSTON.GOV Tue Feb 14 07:08:40 2006 From: robe.dnd at CITYOFBOSTON.GOV (Obe, Regina DND\MIS) Date: Tue, 14 Feb 2006 10:08:40 -0500 Subject: Query Feature from a database source Message-ID: The fields in postgis are lowercase and Mapserver is case sensitive so I think you have to make [NAME] [name]. Also you need to put name as a field output in your subselect. -----Original Message----- From: Bryce Bangerter [mailto:bryceb at TULGAGAMES.COM] Sent: Monday, February 13, 2006 8:39 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Query Feature from a database source I've been looking at the Itasca demo and see how they query a feature from a given layer. I want to be able to do the same when my information is stored in a database, but I have been unable to figure out how to do so. I have the following layer: LAYER NAME Machine_Outlines GROUP Machine CONNECTIONTYPE postgis CONNECTION "host=localhost port=5432 dbname=thedatabase password=thepassword user=testuser" DATA "outline FROM (SELECT instance_id AS id, Translate(outline, X(position), Y(position), 0) AS outline FROM instance INNER JOIN primitive_def_footprint ON instance.primitive_def_id = primitive_def_footprint.primitive_def_id WHERE primitive_type = 'machine') AS instance USING UNIQUE id USING SRID=-1" TYPE POLYGON STATUS OFF CLASS NAME 'Machine' OUTLINECOLOR 0 0 0 COLOR 192 64 192 TEMPLATE templates/Machines.html END HEADER "templates/Machines_header.html" FOOTER "templates/Machines_footer.html" END And then Machines.html looks like [lrn][NAME] What I have been unable to figure out is how to get [NAME] to represent the column 'name' from the instance table of my database. Bryce Bangerter ----------------------------------------- The substance of this message, including any attachments, may be confidential, legally privileged and/or exempt from disclosure pursuant to Massachusetts law. It is intended solely for the addressee. If you received this in error, please contact the sender and delete the material from any computer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at GMAIL.COM Tue Feb 14 07:23:46 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Tue, 14 Feb 2006 16:23:46 +0100 Subject: Oracle-Connection-Pooling in Java In-Reply-To: <75b4b93e0602130226u417b18drc6fba3ddaec7591a@mail.gmail.com> Message-ID: I am now working on issue #1662. Issue #1164 details how I am trying to tackle the memory leaks: with unit tests which run a significantly smaller portion of the code. In fact the ones in the patch run *only* the connection pooling functions, so it should be MUCH easier to use a debugger and trace them. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1664 BTW: Benedikt, what did you use, if you did, to trace memory leaks? Regards, Umberto On 2/13/06, Umberto Nicoletti wrote: > On 2/13/06, umn-ms at hydrotec.de wrote: > > > > Umberto > > > > Thank you for taking care onon this old but still open issue! > > > > I created > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1661 and > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1662 > > > > Benedikt > > > > (Sorry! I was not able to add your e-mail-adress to cc. Bugzilla denied to > > do so. I suppose > > you can handle this anyway.) > > I just did. I will send you a patch for the > msConnPoolCloseUnreferenced function asap o that you can test it. > > Regards, > Umberto > > > > > Umberto Nicoletti schrieb am 13.02.2006 > > 10:25:02: > > > > > > > Benedikt, > > > since I am looking this issue would'n t you mind opening a bug for the > > > inclusion of msConnPoolCloseUnreferenced in mapscript and one for the > > > memory leaks (add me to the cc list)? > > > > > > > > > Reagrds, > > > Umberto > > > > > > On 1/2/06, Benedikt Rothe wrote: > > > > > > > > Hi list members, > > > > > > > > From former threads I got the impression, that there are some folks > > > > interested in the Oracle/Mapserver/Java/Tomcat. > > > > > > > > Therfore I'd like to share experiences I made with using > > Connection-Pooling > > > > of > > > > Oracle-Connections inside Java/Tomcat. > > > > > > > > Testenvironment: Mapserver 4.6.2; Suse-Linux; Tomcat 4.1.31; Sun-Java > > 1.4.2 > > > > Simulating 5 Browsers, which produce maps, query features, make > > selections, > > > > query-legend-pics frequently. > > > > > > > > - After using synchronized "enough" I didn't have crashes of Tomcat. > > > > > > > > - Big memory leak: Between the first 5 requests and the next 100 > > requests > > > > the Tomcat-process became about 400MB bigger. (I use "top" for > > > > watching memory-footprint.) > > > > > > > > - Cleaning the Connection-Pool "by hand". This means: > > > > Opening the function msConnPoolCloseUnreferenced in mappool.c > > > > for use in Java and call it after every request. > > > > > > > > - After this I still have memory leaks: About 100MB for 30.000 > > requests. > > > > (I also made a test: 25.000 requests without Connection pooling. > > Memory > > > > increased > > > > and decreased as expected in this case.) > > > > > > > > - Performancecomparison in my testcase: > > > > Without use of connection-pooling: ~ 50 Request per minute > > > > With use of connection-pooling: ~75 Request per minute > > > > > > > > > > > > As a result I have the following encouragements: > > > > - Making msConnPoolCloseUnreferenced availabe for mapscript via swig. > > > > (I made a hack by directly editing mapscript/java/mapscript_wrap.c > > and > > > > Java-Files in > > mapscript/java/edu/umn/gis/mapscript.) I > > > > think this > > > > function could be part of the mapscript-Object? > > > > > > > > - Investigations on the memory leaks. Both leaks shouldn't occure. > > (I'll do > > > > this, if I find time. but ...) > > > > > > > > - Fernando Simon: What about using OCI-Connection-Pooling for oracle > > > > instead the mappool.c? > > > > > > > > > > http://oraclesvca2.oracle.com/docs/cd/B14117_01/appdev.101/b10779/oci09adv.htm#452244 > > > > (If you don't have time, I maybe could help coding. But would it > > become > > > > part uf Mapserver?) > > > > > > > > Happy new year to everybody > > > > Benedikt Rothe > > > From LVN at HVENEGAARD.DK Tue Feb 14 07:30:37 2006 From: LVN at HVENEGAARD.DK (Lars V. Nielsen (Hvenegaard)) Date: Tue, 14 Feb 2006 16:30:37 +0100 Subject: PHP/MapScript: How to add a point as an inline feature ? Message-ID: Thanks Artur, It works, and it was simple, but I just couldn't see it :-) I had an additional problem, having trouble getting transparent pixmap symbols to display transparently. I got that solved too, now my display problem was fixed. Appararently setting $layer->set("transparency",MS_GD_ALPHA) in MapScript trashes the mapfile layer setting TRANSPARENCY ALPHA, rendering the symbols in the layer non-transparent. !?? Best regards / Med venlig hilsen Lars V. Nielsen -------------------------------------------------------- Hvenegaard A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk ----- Original Message ----- From: "Skalski Artur - askals" To: Sent: Tuesday, February 14, 2006 3:58 PM Subject: Re: [UMN_MAPSERVER-USERS] PHP/MapScript: How to add a point as an inline feature ? lokk a this code: $spoint = ms_newPointObj(); $spoint->setXY(your x, your y); $sline = ms_newLineObj(); $sline->add($spoint); $sshape = ms_newShapeObj(MS_SHAPE_POINT); $sshape->add($sline); $slayer = $gpoMap->getLayerByName("selpoint"); $slayer->addFeature($sshape); this works for me - adds dynamic point to a layer, layer is set in mapfile, like this: LAYER NAME selpoint TYPE POINT STATUS DEFAULT PROJECTION "init=epsg:4326" #lon/latwgs84 END CLASS NAME "selpoint" STYLE SYMBOL 'C:\Inetpub\wwwroot\mapserver\framedefs\etc\tutaj_red.gif' END END END is this what your looking for? Artur Skalski Hello list, Using MapScript 4.5, and I've now re-read the class doc several times, but I can't seem to find the appropriate way to add points to a layer as inline features. Adding features to a layer require shapeObj's. I can create a shape with type MS_SHAPE_POINT, but can't set the coordinate values. I can use the x and y to create a pointObj, but can't seem to find a way to use a pointObj to create a shapeObj. I probably missing something obvious here, but what ? Please help .... Best regards / Med venlig hilsen Lars V. Nielsen -------------------------------------------------------- Hvenegaard A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk *************************************************************************** The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please resend this communication to the sender and delete the original message or any copy of it from your computer system. Thank You. **************************************************************************** From armin.burger at GMX.NET Tue Feb 14 07:38:47 2006 From: armin.burger at GMX.NET (Armin Burger) Date: Tue, 14 Feb 2006 16:38:47 +0100 Subject: PHP 5.1.2 and MapServer/Mapscript Message-ID: Hello all, I saw on the maptools download page a Windows version of Mapserver 4.8 for PHP 5.1.2. So I guess PHP-Mapscript works with PHP 5.1.2. I could compile Mapscript with PHP 5.1.2 (on Debian 3.1, PHP as Apache module). But when I want to load the extension I get still the same error: /usr/sbin/apache: relocation error: /usr/local/lib/php/extensions/php_mapscript_48.so: undefined symbol: php_sprintf Does anybody have a clue what might cause this problem? The extension works fine when compiled with PHP 5.0.5. I can send more details of the configuration etc. if necessary. Thanks for any help Armin From steve.lime at DNR.STATE.MN.US Tue Feb 14 07:54:18 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 14 Feb 2006 09:54:18 -0600 Subject: Mapserver crashes while antialiasing Message-ID: Torsten: I'm pretty sure this is a problem with GD. Look for a general announcement to the list on the topic in a few minutes... Steve >>> Torsten Weber 02/14/06 8:25 AM >>> Hi Umberto, thanks for your advice. I've configured the apache on the SuSE 9.2 System to use php as a fastcgi prog instead of the module. After solving some problems passing the oracle environment to the cgi, I got the the same result as working with the moduled version with the little difference that the php prog is now crashing. I get the following error from the apache server every time I use the RGB mode: "Server error! The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script." 8 Bit works fine but slow??. Do you have some other ideas? Regards Torsten Am Dienstag, 14. Februar 2006 10:17 schrieb Umberto Nicoletti: > perhaps you are using php as a shared module? > > Note that php as a shared module is not supported and will quite > likely cause crashes like those you are experiencing. > > Reagrds, > Umberto > > On 2/14/06, Torsten Weber wrote: > > Hi all, > > > > I'm using mapserver 4.6.2 and 4.8.1 on SuSE 9.2 and 10.0 with > > php_mapscript. I've compiled both mapservers on both machines for using > > oracle to get the spatial information. If I use 8Bit coloring all things > > work fine (but no antialiasing). Within RGB mode the server gets > > segmentation faults. But sometimes it works one or two times (don't know > > why). > > > > Versions: > > mapserver: 4.6.2 + 4.8.1 > > SuSE Linux: 9.2 + 10.0 > > php: 4.3.8 + 4.4.0 > > oracle instantclient 10g > > apache: 2.0.50 + 2.0.54 > > gd: 2.0.28 + 2.0.32 > > > > I'm using antialiasing on line and polygon Layers only. But there are > > raster layers also. > > > > Here is an example for both antialiased layers: > > > > Polygon Layer using data from shape files. > > LAYER > > NAME "Gemeinden" > > PROJECTION > > "init=epsg:31467" > > END > > METADATA > > "DESCRIPTION" "Gemeinden" > > "RESULT_FIELDS" "Name" > > "RESULT_HEADERS" "Name" > > "SELECTABLE" "false" > > END > > DATA "/srv/www/htdocs/geodata/Admin_Grenzen/Gemeinden" > > TYPE POLYGON > > TRANSPARENCY 50 > > CLASS > > NAME "Gemeinden" > > TEMPLATE "void" > > STYLE > > COLOR 180 180 0 > > OUTLINECOLOR 90 90 0 > > SIZE 3 > > ANTIALIAS TRUE > > END > > END > > END # Layer > > > > Line Layer using oracle spatial data. > > LAYER > > NAME "kanten" > > PROJECTION > > "init=epsg:31467" > > END > > DEBUG ON > > CONNECTION "user/pass at oradb" > > CONNECTIONTYPE oraclespatial > > DATA "GEOLOC FROM (SELECT GEOLOC, ID, BEZEICHNUNG, ART, > > TYP FROM STRECKEVIEW) USING UNIQUE ID" > > TYPE LINE > > SYMBOLSCALE 20000.0 > > METADATA > > "DESCRIPTION" "Stra?en" > > "RESULT_FIELDS" "ID,BEZEICHNUNG,ART" > > "RESULT_HEADERS" "Nummer,Name,Typ" > > "SELECTABLE" "true" > > "LAYERDESC" "Stra?en" > > END # Metadata > > CLASS > > NAME "Autobahnen" > > TEMPLATE "void" > > EXPRESSION ([TYP]=21) > > STYLE > > SYMBOL "lstandard" > > COLOR 0 0 200 > > SIZE 7 > > ANTIALIAS TRUE > > MINSIZE 7 > > MAXSIZE 18 > > END > > STYLE > > SYMBOL "lstandard" > > COLOR 255 255 255 > > SIZE 4 > > ANTIALIAS TRUE > > MINSIZE 4 > > MAXSIZE 12 > > END > > STYLE > > SYMBOL "lstandard" > > COLOR 0 0 200 > > SIZE 2 > > MINSIZE 2 > > MAXSIZE 5 > > ANTIALIAS TRUE > > END > > LABEL > > ANGLE AUTO > > COLOR 256 0 0 > > POSITION AUTO > > SIZE LARGE > > TYPE truetype > > FONT "verdana" > > END #LABEL > > END # Class > > CLASS > > NAME "Bundesstra?en" > > TEMPLATE "void" > > EXPRESSION ([TYP]=22) > > #MAXSCALE 250000.0 > > STYLE > > SYMBOL "lstandard" > > COLOR 50 50 50 > > SIZE 5 > > MINSIZE 5 > > MAXSIZE 15 > > ANTIALIAS TRUE > > END > > STYLE > > SYMBOL "lstandard" > > COLOR 255 255 0 > > SIZE 2 > > MINSIZE 2 > > MAXSIZE 10 > > ANTIALIAS TRUE > > END > > END # Class > > CLASS > > NAME "Landesstra?en" > > TEMPLATE "void" > > EXPRESSION ([TYP]=23) > > MAXSCALE 250000.0 > > STYLE > > SYMBOL "lstandard" > > COLOR 50 50 50 > > SIZE 5 > > MINSIZE 5 > > MAXSIZE 15 > > ANTIALIAS TRUE > > END > > STYLE > > SYMBOL "lstandard" > > COLOR 250 250 250 > > SIZE 2 > > MINSIZE 2 > > MAXSIZE 10 > > ANTIALIAS TRUE > > END > > END # Class > > CLASS > > NAME "Kreisstra?en" > > TEMPLATE "void" > > EXPRESSION ([TYP]=24) > > MAXSCALE 75000.0 > > STYLE > > SYMBOL "lstandard" > > COLOR 50 50 50 > > SIZE 3 > > MINSIZE 3 > > MAXSIZE 10 > > ANTIALIAS TRUE > > END > > STYLE > > SYMBOL "lstandard" > > COLOR 250 250 250 > > SIZE 1 > > MINSIZE 1 > > MAXSIZE 6 > > ANTIALIAS TRUE > > END > > END # Class > > CLASS > > NAME "Sonstige" > > TEMPLATE "void" > > EXPRESSION ([TYP]<21 OR [TYP]>24) > > MAXSCALE 50000.0 > > STYLE > > SYMBOL "lstandard" > > COLOR 100 100 100 > > SIZE 1 > > #ANTIALIAS > > MINSIZE 1 > > MAXSIZE 10 > > ANTIALIAS TRUE > > END > > END # Class > > END # Layer > > > > Used outputformat: > > OUTPUTFORMAT > > NAME pngrgb > > DRIVER "GD/PNG" > > MIMETYPE "image/png" > > IMAGEMODE RGB > > FORMATOPTION INTERLACE=OFF > > TRANSPARENT OFF > > END > > It doesn't matter if I use GIF or jpeg instead. > > > > Is anyone out there, who could help me? > > > > Many thanks and best regards > > > > Torsten -- T. Weber E-Mail: TWeber at traffic-consult.de, TWeber at weber-sys.de Traffic Consult GmbH Herzbachweg 65 63571 Gelnhausen Tel: 06051 / 82889-15 Mobile: 0179 / 5340731 Fax: 06051 / 82889-29 E-mail: info at traffic-consult.de WWW: http://www.traffic-consult.de From baas at SPEERIT.NL Tue Feb 14 08:05:51 2006 From: baas at SPEERIT.NL (Jelmer Baas) Date: Tue, 14 Feb 2006 17:05:51 +0100 Subject: Layer not displaying UNLESS name is set to "TABCAB"? Message-ID: Hello again, list, Once again, I have a very odd problem (though my last problem (the crash) isn't solved yet). I have multiple layers in my map, but there's ONE layer that doesn't show up... LAYER NAME "TABCON" TYPE LINE STATUS ON CONNECTIONTYPE OGR CONNECTION "data\TABCON.TAB" STYLEITEM "AUTO" CLASS NAME "Tubes" END MINSCALE 1 MAXSCALE 40000000 END The silly thing is, that it DOES show up when I set the name to "TABCAB"! Any clues as to why this is? I attached the layer as a ZIP file. Hopefully someone can shed some light on this. On a seperate note, I seem to be unable to get the styles set up properly. Using OGRINFO, I found out that these layers are drawn using "mapinfo-pen-2.ogr-pen-0". I should be ablo to have some control over this in my symbols file, shouldn't I? And last, is there any way to override the LABEL settings, when a layer is set to STYLEITEM "AUTO" ? I have multiple colours in my layer, so I have to let it work on AUTO, but I ALSO want to have LABELs! Hopefully someone can help me with these questions. I'm almost there! :D Regards, Jelmer Baas -------------- next part -------------- A non-text attachment was scrubbed... Name: data.zip Type: application/octet-stream Size: 30825 bytes Desc: not available URL: From vito.meuli at TECNOLOGIEAVANZATE.IT Tue Feb 14 08:42:14 2006 From: vito.meuli at TECNOLOGIEAVANZATE.IT (Vito Meuli) Date: Tue, 14 Feb 2006 17:42:14 +0100 Subject: projection error when mode=itemquery In-Reply-To: Message-ID: Hi Rich! Hi listmates! I have the same problem. It seems that when I use "mode=itemnquery" the raster displays always in the same position and with the same magnification in the final image (like "TRANSFORM FALSE" layers), whereas the vector layers follow the zoom and pan correctly. I'm using Mapserver 4.6.2 on a Red Hat Enterprise Linux AS 4, compiled like almost all needed libraries. I'll give a try to Mapserver 4.8.1 as soon as possible. Any ideas? Thanks! Vito Alle 01:24, mercoled? 7 settembre 2005, Richard Greenwood ha scritto: > I think I've got a bug here, but I'll throw it out to the list before > I file a bug report. > > I have a map with a state plane (U.S. Foot) projection defined. It > includes a UTM (meters) raster layer. All displays well until > mode=itemquery or itemnquery, or queryfile=... In these modes the UTM > raster layer occupies only a small portion of the rendered map (see > attached image). > > I have tested in two different state plane zones with two different > raster UTM image sets, with mapserver versions 4.2, 4.6 and 4.7. > > Any ideas? > > Thanks, > Rich -- Ing. Vito Meuli Tecnologie Avanzate s.r.l. via B. Croce, 49 70015 Noci (BA) tel. 080-4979652 fax. 080-4979263 email: v.meuli at tecnologieavanzate.it http://www.tecnologieavanzate.it http://www.taonline.it From umn-ms at HYDROTEC.DE Tue Feb 14 09:20:33 2006 From: umn-ms at HYDROTEC.DE (Benedikt Rothe) Date: Tue, 14 Feb 2006 18:20:33 +0100 Subject: Antwort: Re: [UMN_MAPSERVER-USERS] Oracle-Connection-Pooling in Java In-Reply-To: <75b4b93e0602140723w6db618ffm26169a1cbcc7c05c@mail.gmail.com> Message-ID: > I am now working on issue #1662. GREAT! > ... > BTW: Benedikt, what did you use, if you did, to trace memory leaks? > 1. I used "top" to watch the size of the process. (I think this doesn't help you to break the problem down) 2. I tried to work with mcheck. (At that time you was "involved" by giving a tip ...) I made it run to produce this mcheck output. I spent effort in analyzing the mcheck-outputfile. At the end it wasn't helpful. I forgot the reason. 3. Here in my company I have access to rational purify on Windows. With the approach you described in bug#1664 you will end up with a small(!) C-program. Maybe I could analyze this program with purify. (BUT: The project where I worked with mapserver is over. So it is a problem for me to find time and I don't want to promise anything to be done "in time". But I'd *like* to do so ...) Benedikt > Regards, > Umberto > > On 2/13/06, Umberto Nicoletti wrote: > > On 2/13/06, umn-ms at hydrotec.de wrote: > > > > > > Umberto > > > > > > Thank you for taking care onon this old but still open issue! > > > > > > I created > > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1661 and > > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1662 > > > > > > Benedikt > > > > > > (Sorry! I was not able to add your e-mail-adress to cc. Bugzilla denied to > > > do so. I suppose > > > you can handle this anyway.) > > > > I just did. I will send you a patch for the > > msConnPoolCloseUnreferenced function asap o that you can test it. > > > > Regards, > > Umberto > > > > > > > > Umberto Nicoletti schrieb am 13.02.2006 > > > 10:25:02: > > > > > > > > > > Benedikt, > > > > since I am looking this issue would'n t you mind opening a bug for the > > > > inclusion of msConnPoolCloseUnreferenced in mapscript and one for the > > > > memory leaks (add me to the cc list)? > > > > > > > > > > > > Reagrds, > > > > Umberto > > > > > > > > On 1/2/06, Benedikt Rothe wrote: > > > > > > > > > > Hi list members, > > > > > > > > > > From former threads I got the impression, that there are some folks > > > > > interested in the Oracle/Mapserver/Java/Tomcat. > > > > > > > > > > Therfore I'd like to share experiences I made with using > > > Connection-Pooling > > > > > of > > > > > Oracle-Connections inside Java/Tomcat. > > > > > > > > > > Testenvironment: Mapserver 4.6.2; Suse-Linux; Tomcat 4.1.31; Sun-Java > > > 1.4.2 > > > > > Simulating 5 Browsers, which produce maps, query features, make > > > selections, > > > > > query-legend-pics frequently. > > > > > > > > > > - After using synchronized "enough" I didn't have crashes of Tomcat. > > > > > > > > > > - Big memory leak: Between the first 5 requests and the next 100 > > > requests > > > > > the Tomcat-process became about 400MB bigger. (I use "top" for > > > > > watching memory-footprint.) > > > > > > > > > > - Cleaning the Connection-Pool "by hand". This means: > > > > > Opening the function msConnPoolCloseUnreferenced in mappool.c > > > > > for use in Java and call it after every request. > > > > > > > > > > - After this I still have memory leaks: About 100MB for 30.000 > > > requests. > > > > > (I also made a test: 25.000 requests without Connection pooling. > > > Memory > > > > > increased > > > > > and decreased as expected in this case.) > > > > > > > > > > - Performancecomparison in my testcase: > > > > > Without use of connection-pooling: ~ 50 Request per minute > > > > > With use of connection-pooling: ~75 Request per minute > > > > > > > > > > > > > > > As a result I have the following encouragements: > > > > > - Making msConnPoolCloseUnreferenced availabe for mapscript via swig. > > > > > (I made a hack by directly editing mapscript/java/mapscript_wrap.c > > > and > > > > > Java-Files in > > > mapscript/java/edu/umn/gis/mapscript.) I > > > > > think this > > > > > function could be part of the mapscript-Object? > > > > > > > > > > - Investigations on the memory leaks. Both leaks shouldn't occure. > > > (I'll do > > > > > this, if I find time. but ...) > > > > > > > > > > - Fernando Simon: What about using OCI-Connection-Pooling for oracle > > > > > instead the mappool.c? > > > > > > > > > > > > > http://oraclesvca2.oracle.com/docs/cd/B14117_01/appdev.101/b10779/oci09adv.htm#452244 > > > > > (If you don't have time, I maybe could help coding. But would it > > > become > > > > > part uf Mapserver?) > > > > > > > > > > Happy new year to everybody > > > > > Benedikt Rothe > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at DNR.STATE.MN.US Tue Feb 14 09:35:43 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 14 Feb 2006 11:35:43 -0600 Subject: Important! 1 pixel anti-aliasing seg. faults... Message-ID: Hi all: There have been a number of users reporting issues with 1 pixel wide antialiasing seg. faults and version 4.8. There is a problem with GD. The library does not properly check pixel values against the image size which can result in a buffer overflow in some cases. The GD author is aware of the problem but has not released a fix yet- no idea why since it is a pretty severe error. Anyway, to use 1 pixel-wide antialiasing you *MUST* apply a small fix to GD. Fortunately the fix is a one-liner. In gd.c, function gdImageSetAAPixelColor() change: int dr,dg,db,p,r,g,b; p = gdImageGetPixel(im,x,y); to: int dr,dg,db,p,r,g,b; if (!gdImageBoundsSafeMacro (im, x, y)) return; p = gdImageGetPixel(im,x,y); I can put together a patch version of the gd-2.033 source if folks are interested. Steve From jennifer at GREENINFO.ORG Tue Feb 14 11:54:29 2006 From: jennifer at GREENINFO.ORG (Jennifer Shanks) Date: Tue, 14 Feb 2006 11:54:29 -0800 Subject: Need help w/PostGIS extent of selected features Message-ID: Hello, I am a new PostGIS and and Mapserver user and could use some guidance. I'm attempting to customize a query tool written in PHP/Mapscript that selects features from a PostGIS database and highlights them on the map. I'd like to also zoom to the maximum bounding extents of the selected features. I can zoom the map object using the below code: $xmin= "531016"; $ymin= "4164561"; $xmax= "575400"; $ymax= "4199817"; $oMap->setExtent($xmin, $ymin, $xmax, $ymax); Now, I need to figure out how to get the maximum bounding coordinates of the selected feature set from PostGIS. Below is the SQL that is used to select features. Does anyone know how I can get the bounding coordinates? Would I use an SQL statement? Are there any examples using PHP/Mapscript? Any suggestions or hints would be much appreciated. Regards, Jennifer // build SQL(s) $szTableSQL = 'select * from '.$_REQUEST['result_geom']. ' where intersects(the_geom,(select the_geom as my_geom from '. $_REQUEST['bound_geom'].' where LOWER('.$_REQUEST['bound_field']. ')=LOWER(\''. $_REQUEST['bound_value'].'\')))'; $szSQL = 'the_geom from ('.$szTableSQL.') as foo using unique gid using srid=-1'; **************************** Jennifer Shanks GreenInfo Network 116 New Montgomery, Suite 738 San Francisco, CA 94105 (415) 979-0343 x 306 (415) 979-0371 FAX **GreenInfo has completely re-done our web site Go to: www.greeninfo.org From bpicinbono at WORLDONLINE.FR Tue Feb 14 11:57:55 2006 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Tue, 14 Feb 2006 20:57:55 +0100 Subject: delete feature In-Reply-To: Message-ID: On Monday 13 February 2006 16:18, Xiaonan Zhang wrote: > Hi all, > > anyone know how to delete a selected feature from a layer? > > regards > > Jonathan Hi there, If you are dealing with esri shape layers (shp+shx+dbf), I think there isn't any easy way to delete a shape, as Steve noted a few weeks ago. I don't know for other kind of data format. For esri shape files, the trick is to copy all your shapes except the one to be deleted, to a new temporary shape file, and same for the datas (dbf). And then to rename your temporaries shp and dbf files to the name of your original files. If you're dealing with a very large number of shapes, you can speed up the process by deleting the right record in the dbf file. This is possible, on the opposite as for the shp file. But read carefully the dbase doc, I think you have to use the "pack" or something command after deleting a dbf record to really update your dbf file. All this done with php_mapscript or maybe another scripting language, of course. Post more if you don't get it. Blaise From swoodbridge at WHERE2GETIT.COM Tue Feb 14 15:54:50 2006 From: swoodbridge at WHERE2GETIT.COM (Stephen Woodbridge) Date: Tue, 14 Feb 2006 18:54:50 -0500 Subject: having problem inserting logo in the .map file In-Reply-To: <9002c4420602082208v6a2eb9adpf0616c521ee79b08@mail.gmail.com> Message-ID: Hello Naresh, It is best to ask these type of questions to the list as there are many people that can offer ideas rather than just me who may or may not know the answer. Here is how we put on a copyright. LAYER NAME "copyright" STATUS DEFAULT TYPE POINT TRANSFORM OFF FEATURE POINTS 0 0 END END CLASS COLOR 0 0 0 TEXT "? 2006 Where 2 Get It, Inc." LABEL TYPE TRUETYPE FONT "arial" SIZE 7 POSITION LR BUFFER 1 COLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 FORCE TRUE ANTIALIAS FALSE END END END If yuo want to put a logo you could put your logo in a symbol definition named something like "my_logo" and in the CLASS block add SYMBOL "my_logo" Hope this helps, -Steve naresh tapsey wrote: > hello mr swoodbridge > i had a query > i am having problem inserting logo in the .map file hope u will help me > bye > naresh From fabio.dovidio at PLANETEK.IT Wed Feb 15 00:36:46 2006 From: fabio.dovidio at PLANETEK.IT (Fabio D' Ovidio) Date: Wed, 15 Feb 2006 09:36:46 +0100 Subject: GD LIBRARY Message-ID: Hello list, Does anyone send me the correct makefile for GD library for Windows 2000 machine ?? The makefile in the zip package is very very bad ! Thank u much ! Fabio From albrecht at FIELAX.DE Wed Feb 15 01:10:18 2006 From: albrecht at FIELAX.DE (Sebastian Albrecht) Date: Wed, 15 Feb 2006 09:10:18 +0000 Subject: Virtual Globe In-Reply-To: <200602141230.42903.jorn@spacetec.no> Message-ID: Hi J?rn > just want to send you a hint about this 3D tool. > http://globe.sintef.no/ > It's almost like Google Earth, but with WMS support. It really looks great and no installation is needed. But do you know how to add personal WMS servers to the globe? There seems to be a .vgml that already contains all layers?! Best regards Sebastian From jorn at SPACETEC.NO Wed Feb 15 03:20:29 2006 From: jorn at SPACETEC.NO (=?iso-8859-1?q?J=F8rn_Vegard_R=F8snes?=) Date: Wed, 15 Feb 2006 12:20:29 +0100 Subject: Virtual Globe In-Reply-To: <43F2EFFA.70804@fielax.de> Message-ID: On Wednesday 15 February 2006 10:10, Sebastian Albrecht wrote: > Hi J?rn > > > just want to send you a hint about this 3D tool. > > http://globe.sintef.no/ > > It's almost like Google Earth, but with WMS support. > > It really looks great and no installation is needed. > But do you know how to add personal WMS servers to the globe? There > seems to be a .vgml that already contains all layers?! > I haven't had time to play with Virtual Globe, so I don't know all the details yet. I have some info... You have to edit the element in the .vgml file and make your WMS server open for the Virtual Globe server (if you're behind a firewall). You should contact the Virtual Globe contact person about server IP-adresse and further details. cheers J?rn From albrecht at FIELAX.DE Wed Feb 15 05:02:08 2006 From: albrecht at FIELAX.DE (Sebastian Albrecht) Date: Wed, 15 Feb 2006 13:02:08 +0000 Subject: Virtual Globe In-Reply-To: <200602151220.29011.jorn@spacetec.no> Message-ID: Hi J?rn, > You have to edit the element in the .vgml file and make your > WMS server open for the Virtual Globe server (if you're behind a firewall). So Virtual Globe won't call my WMS directly in my network but will ask at the Virtual Globe server to retrieve the WMS maps?! Best regards Sebastian From pf at MAPMEDIA.DE Wed Feb 15 05:06:43 2006 From: pf at MAPMEDIA.DE (Peter Freimuth (MapMedia GmbH)) Date: Wed, 15 Feb 2006 14:06:43 +0100 Subject: symbolisation of ENC - S 57 data with mapserver Message-ID: Dear List, for a demo project we are searching for existing examples to produce nautical web-maps out of S57 Data. Is there anybody who can offer existing style definitions or TTF Fonts that can be used to visualize S57 Data via OGR. If these styles are compatible to the INT1 standard for hydrographic maps, it would be perfect. Thanks in advance for any infos! -- Mit freundlichem Gru? Peter Freimuth _________________________________________________ MapMedia GmbH Kartographie und raumbezogene Informationssysteme Heilbronner Stra?e 10 D-10711 Berlin Charlottenburg fon: +49.(0)30.89 06 82 70 fax: +49.(0)30.89 06 82 73 mail: pf at mapmedia.de net: www.mapmedia.de pgp: on demand _________________________________________________ From jorn at SPACETEC.NO Wed Feb 15 05:11:51 2006 From: jorn at SPACETEC.NO (=?iso-8859-1?q?J=F8rn_Vegard_R=F8snes?=) Date: Wed, 15 Feb 2006 14:11:51 +0100 Subject: Virtual Globe In-Reply-To: <43F32650.1070202@fielax.de> Message-ID: On Wednesday 15 February 2006 14:02, Sebastian Albrecht wrote: > Hi J?rn, > > > You have to edit the element in the .vgml file and make > > your WMS server open for the Virtual Globe server (if you're behind a > > firewall). > > So Virtual Globe won't call my WMS directly in my network but will ask > at the Virtual Globe server to retrieve the WMS maps?! > I don't know how this is implemented exactly. What I know is that VG uses a tailored projection that is better suited for northern areas, ref. http://globe.sintef.no/documentation/projection.html I assume the images from 3party WMS servers are warped in the VG server before they are sent to the VG client. cheers J?rn From fsimon at UNIVALI.BR Wed Feb 15 06:12:31 2006 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Wed, 15 Feb 2006 11:12:31 -0300 Subject: Oracle-Connection-Pooling in Java In-Reply-To: <75b4b93e0602140723w6db618ffm26169a1cbcc7c05c@mail.gmail.com> Message-ID: Hi all, I'm working to solve this bug too. I'm trying to find the core of the memory leak. I will need to share information with Umberto about the bugs. Best regards. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ Umberto Nicoletti wrote: > I am now working on issue #1662. > Issue #1164 details how I am trying to tackle the memory leaks: with > unit tests which run a significantly smaller portion of the code. In > fact the ones in the patch run *only* the connection pooling > functions, so it should be MUCH easier to use a debugger and trace > them. > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1664 > > BTW: Benedikt, what did you use, if you did, to trace memory leaks? > > Regards, > Umberto > > On 2/13/06, Umberto Nicoletti wrote: > >> On 2/13/06, umn-ms at hydrotec.de wrote: >> >>> Umberto >>> >>> Thank you for taking care onon this old but still open issue! >>> >>> I created >>> http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1661 and >>> http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1662 >>> >>> Benedikt >>> >>> (Sorry! I was not able to add your e-mail-adress to cc. Bugzilla denied to >>> do so. I suppose >>> you can handle this anyway.) >>> >> I just did. I will send you a patch for the >> msConnPoolCloseUnreferenced function asap o that you can test it. >> >> Regards, >> Umberto >> >> >>> Umberto Nicoletti schrieb am 13.02.2006 >>> 10:25:02: >>> >>> >>> > Benedikt, >>> > since I am looking this issue would'n t you mind opening a bug for the >>> > inclusion of msConnPoolCloseUnreferenced in mapscript and one for the >>> > memory leaks (add me to the cc list)? >>> > >>> > >>> > Reagrds, >>> > Umberto >>> > >>> > On 1/2/06, Benedikt Rothe wrote: >>> > > >>> > > Hi list members, >>> > > >>> > > From former threads I got the impression, that there are some folks >>> > > interested in the Oracle/Mapserver/Java/Tomcat. >>> > > >>> > > Therfore I'd like to share experiences I made with using >>> Connection-Pooling >>> > > of >>> > > Oracle-Connections inside Java/Tomcat. >>> > > >>> > > Testenvironment: Mapserver 4.6.2; Suse-Linux; Tomcat 4.1.31; Sun-Java >>> 1.4.2 >>> > > Simulating 5 Browsers, which produce maps, query features, make >>> selections, >>> > > query-legend-pics frequently. >>> > > >>> > > - After using synchronized "enough" I didn't have crashes of Tomcat. >>> > > >>> > > - Big memory leak: Between the first 5 requests and the next 100 >>> requests >>> > > the Tomcat-process became about 400MB bigger. (I use "top" for >>> > > watching memory-footprint.) >>> > > >>> > > - Cleaning the Connection-Pool "by hand". This means: >>> > > Opening the function msConnPoolCloseUnreferenced in mappool.c >>> > > for use in Java and call it after every request. >>> > > >>> > > - After this I still have memory leaks: About 100MB for 30.000 >>> requests. >>> > > (I also made a test: 25.000 requests without Connection pooling. >>> Memory >>> > > increased >>> > > and decreased as expected in this case.) >>> > > >>> > > - Performancecomparison in my testcase: >>> > > Without use of connection-pooling: ~ 50 Request per minute >>> > > With use of connection-pooling: ~75 Request per minute >>> > > >>> > > >>> > > As a result I have the following encouragements: >>> > > - Making msConnPoolCloseUnreferenced availabe for mapscript via swig. >>> > > (I made a hack by directly editing mapscript/java/mapscript_wrap.c >>> and >>> > > Java-Files in >>> mapscript/java/edu/umn/gis/mapscript.) I >>> > > think this >>> > > function could be part of the mapscript-Object? >>> > > >>> > > - Investigations on the memory leaks. Both leaks shouldn't occure. >>> (I'll do >>> > > this, if I find time. but ...) >>> > > >>> > > - Fernando Simon: What about using OCI-Connection-Pooling for oracle >>> > > instead the mappool.c? >>> > > >>> > > >>> http://oraclesvca2.oracle.com/docs/cd/B14117_01/appdev.101/b10779/oci09adv.htm#452244 >>> > > (If you don't have time, I maybe could help coding. But would it >>> become >>> > > part uf Mapserver?) >>> > > >>> > > Happy new year to everybody >>> > > Benedikt Rothe >>> >>> > > From adoyle at EOGEO.ORG Wed Feb 15 05:57:06 2006 From: adoyle at EOGEO.ORG (Allan Doyle) Date: Wed, 15 Feb 2006 08:57:06 -0500 Subject: Virtual Globe In-Reply-To: <200602141230.42903.jorn@spacetec.no> Message-ID: On 2/14/06, J?rn Vegard R?snes wrote: > Hi, > > just want to send you a hint about this 3D tool. > http://globe.sintef.no/ > > It's almost like Google Earth, but with WMS support. Very nice! Based on the email thread, I think you are fetching predefined areas from existing WMS servers and are caching them locally, then feeding them to the viewers. That makes sense and fits directly into the discussion topic on the WMS Tiling mailing list: http://lists.eogeo.org/mailman/listinfo/tiling What we're doing is looking at existing tiling schemes with a goal of perhaps picking a single tiling scheme that can be used by all the virtual globes accessing WMS. That way the tile caches could be distributed and we would be able to use things like torrents, P2P, squid, etc. Allan From Tim.Pascoe at EC.GC.CA Wed Feb 15 06:12:08 2006 From: Tim.Pascoe at EC.GC.CA (Pascoe,Tim [Burlington]) Date: Wed, 15 Feb 2006 09:12:08 -0500 Subject: Strange Query Error Message-ID: Sorry for the cross-post, but I'm unsure of where this problem may be occurring. I have a mapserver installation running in IIS, on a Windows2000 machine. A little while ago, I upgraded all the components to: PHP 5.0.5.5 Mapserver 4.6 Mapscript 4.6.1 Chameleon 2.0 GDAL 1.3 I am using OGR to create a virtual layer of points, and then filter this layer using an SLD generated on the fly, based on user input. This all worked perfectly before the upgrade. Everything seems to work fine now, the layers filter properly, and display the way they should. However, if a point is queried, the data returned in the Chameleon query window is for the first record in the recordset returned for the virtual layer, unfiltered, every time; no matter what point is selected. I know of one other person experiencing exactly this behavior, and that installation has the latest versions of all software, with the same problem. Anyone have any ideas? Any help is appreciated, Timothy Pascoe Environment Canada / Environnement Canada Canada Centre for Inland Waters / Centre Canadien des Eaux Int?rieures 867 Lakeshore Road / 867, chemin Lakeshore Burlington, Ontario / Burlington (Ontario) L7R 4A6 Tel/T?l: (905) 336-6239 Fax/T?l?c: (905) 336-4699 E-mail/C. ?lec: tim.pascoe at ec.gc.ca Government of Canada/Gouvernement du Canada This e-mail represents the opinions and views solely held by its author and in no manner may be considered as representing those of his/her employer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jorn at SPACETEC.NO Wed Feb 15 06:22:00 2006 From: jorn at SPACETEC.NO (=?iso-8859-1?q?J=F8rn_Vegard_R=F8snes?=) Date: Wed, 15 Feb 2006 15:22:00 +0100 Subject: Virtual Globe In-Reply-To: <69c79c180602150557x6db5c6a0u7610cc3cf0938a1@mail.gmail.com> Message-ID: On Wednesday 15 February 2006 14:57, Allan Doyle wrote: > On 2/14/06, J?rn Vegard R?snes wrote: > > Hi, > > > > just want to send you a hint about this 3D tool. > > http://globe.sintef.no/ > > > > It's almost like Google Earth, but with WMS support. > > Very nice! Based on the email thread, I think you are fetching > predefined areas from existing WMS servers and are caching them > locally, then feeding them to the viewers. True. There are caching in the VG server, and also some cache prediction about the next "view" the user will request. A view consists typical of area, angle and zoomlevel. The VG server also has a internal datamodel for faster retrieval and visualization. cheers J?rn From s_jubeh at YAHOO.COM Wed Feb 15 06:23:52 2006 From: s_jubeh at YAHOO.COM (salah jubeh) Date: Wed, 15 Feb 2006 06:23:52 -0800 Subject: Mapscript API Message-ID: Hi Guys I have compiled mapserver on windows using microsoft stuff, i want now to create mapscripts API for TCL. is there is any way to do that. OR Is there is already compiled TCL mapscript. I have a very old version a bout 2 years old from map generator progect. and it is not working probebly for raster data. Thanks in advance --------------------------------- Relax. Yahoo! Mail virus scanning helps detect nasty viruses! -------------- next part -------------- An HTML attachment was scrubbed... URL: From nemo at IRONCOUNTYFOREST.ORG Wed Feb 15 06:27:35 2006 From: nemo at IRONCOUNTYFOREST.ORG (Neil "Nemo" Martinko) Date: Wed, 15 Feb 2006 08:27:35 -0600 Subject: Mapserver 4.8.1 linux installation problems Message-ID: Be sure to check the permissions of the file. While in the /var/www/cgi-bin directory... "ls -l" There should be a line for your mapserv file like this... "-rwxr-xr-x 1 nobody nobody 754320 Feb 6 10:28 mapserv" If you have different permissions, run... "chmod a+rx mapserv" If you have different owner/group (the "nobody nobody" above)... "chown nobody.nobody mapserv" Rather than running just "./mapserv", it's better to run "./mapserv -v". It will output the version and supported inputs/outputs. As for yum, it would be nice if somebody created a repository for apt/yum access of MapServer, GRASS, QGIS, and all their needed dependencies. I haven't found one, yet. It is possible, it just hasn't been done. Nemo From daniel.faivre at CAMPTOCAMP.COM Wed Feb 15 06:38:03 2006 From: daniel.faivre at CAMPTOCAMP.COM (Daniel) Date: Wed, 15 Feb 2006 15:38:03 +0100 Subject: Virtual Globe In-Reply-To: <69c79c180602150557x6db5c6a0u7610cc3cf0938a1@mail.gmail.com> Message-ID: Very interesting, but what is the license ??? dF Allan Doyle a ?crit : >On 2/14/06, J?rn Vegard R?snes wrote: > > >>Hi, >> >>just want to send you a hint about this 3D tool. >>http://globe.sintef.no/ >> >>It's almost like Google Earth, but with WMS support. >> >> > >Very nice! Based on the email thread, I think you are fetching >predefined areas from existing WMS servers and are caching them >locally, then feeding them to the viewers. That makes sense and fits >directly into the discussion topic on the WMS Tiling mailing list: > >http://lists.eogeo.org/mailman/listinfo/tiling > >What we're doing is looking at existing tiling schemes with a goal of >perhaps picking a single tiling scheme that can be used by all the >virtual globes accessing WMS. That way the tile caches could be >distributed and we would be able to use things like torrents, P2P, >squid, etc. > > Allan > > -------------- next part -------------- A non-text attachment was scrubbed... Name: daniel.faivre.vcf Type: text/x-vcard Size: 323 bytes Desc: not available URL: From dmorissette at DMSOLUTIONS.CA Wed Feb 15 06:46:05 2006 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Wed, 15 Feb 2006 09:46:05 -0500 Subject: PHP/MapScript: How to add a point as an inline feature ? In-Reply-To: <000301c6317b$9e8e4460$c801a8c0@odin> Message-ID: Lars V. Nielsen (Hvenegaard) wrote: > > Appararently setting $layer->set("transparency",MS_GD_ALPHA) in MapScript > trashes the mapfile layer setting TRANSPARENCY ALPHA, rendering the symbols > in the layer non-transparent. !?? > Lars, I see in your previous email that you're using version 4.5. The constant MS_GD_ALPHA was added to PHP MapScript only in 4.6.0-beta1. You will have to either upgrade, or use "$layer->set("transparency", 1000)" (1000 is the internal value of MS_GD_ALPHA). BTW, while checking that, I noticed an issue with the msSaveMap() function in its handling of TRANSPARENCY ALPHA, but that should not be related to the problem that you describe above: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1669 Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From Eric.Keefauver at ALTARUM.ORG Wed Feb 15 06:38:18 2006 From: Eric.Keefauver at ALTARUM.ORG (D. Eric Keefauver) Date: Wed, 15 Feb 2006 09:38:18 -0500 Subject: ms4w Message-ID: Hi there, We are currently investigating Mapserver to replace our IMS sites (ESRI). I have downloaded the ms4w package to my machine (Win.XP) and have completed the installation. Si I have thought. I can get Apache running and load another application (in my case Ka-Map) and bring up its interface. In perusing a Ka-Map tutorial to get a demo site up and running it suggests that I check the map file using the shp2img utility. When trying to access that utility I get an error indicating "the application failed to start because gdal13.dll was not found. Reinstall the application may fix the problem" I can see that the dll in question sits in the C:\ms4w\Apache\cgi-bin directory. I have tried to re-install with no solve as well as running the setenv application. Any ideas? Thanks, Eric From jorn at SPACETEC.NO Wed Feb 15 06:49:33 2006 From: jorn at SPACETEC.NO (=?iso-8859-1?q?J=F8rn_Vegard_R=F8snes?=) Date: Wed, 15 Feb 2006 15:49:33 +0100 Subject: Virtual Globe In-Reply-To: <43F33CCB.4030206@camptocamp.com> Message-ID: On Wednesday 15 February 2006 15:38, Daniel wrote: > Very interesting, but what is the license ??? > The web page http://globe.sintef.no/ says: To justify its existence and finance further development the Virtual Globe has to generate paying projects (SINTEF is a non-profit, self owning, independent research institute, and is dependent on income for paying our wages and office facilities). We are interested in participating in research projects involving distributed geographical visualization and processing and in product development. We have ideas for using the Virtual Globe for tourist information systems, urban and infrastructure planning, air and surface navigation and route planning systems, educational systems, general distribution of geographical data, and many other kinds of information and entertainment systems. If any of this sounds interesting please contact: Rune.Aasgaard_at_sintef.no At this stage we do no share source code for other purposes than what is described here. cheers J?rn > dF > > Allan Doyle a ?crit : > >On 2/14/06, J?rn Vegard R?snes wrote: > >>Hi, > >> > >>just want to send you a hint about this 3D tool. > >>http://globe.sintef.no/ > >> > >>It's almost like Google Earth, but with WMS support. > > > >Very nice! Based on the email thread, I think you are fetching > >predefined areas from existing WMS servers and are caching them > >locally, then feeding them to the viewers. That makes sense and fits > >directly into the discussion topic on the WMS Tiling mailing list: > > > >http://lists.eogeo.org/mailman/listinfo/tiling > > > >What we're doing is looking at existing tiling schemes with a goal of > >perhaps picking a single tiling scheme that can be used by all the > >virtual globes accessing WMS. That way the tile caches could be > >distributed and we would be able to use things like torrents, P2P, > >squid, etc. > > > > Allan From warmerdam at POBOX.COM Wed Feb 15 06:52:00 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 15 Feb 2006 09:52:00 -0500 Subject: ms4w In-Reply-To: Message-ID: D. Eric Keefauver wrote: > Hi there, > > We are currently investigating Mapserver to replace our IMS sites (ESRI). I > have downloaded the ms4w package to my machine (Win.XP) and have completed > the installation. Si I have thought. > I can get Apache running and load another application (in my case Ka-Map) > and bring up its interface. In perusing a Ka-Map tutorial to get a demo > site up and running it suggests that I check the map > file using the shp2img utility. When trying to access that utility I get an > error indicating "the application failed to start because gdal13.dll was > not found. Reinstall the application may fix the problem" > I can see that the dll in question sits in the C:\ms4w\Apache\cgi-bin > directory. I have tried to re-install with no solve as well as running the > setenv application. Eric, I believe to use the programs from the command line you need to run the C:\MS4W\setenv.bat script. This sets up the path and other required variables. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From m.esposito at SOFTEC-SRL.COM Wed Feb 15 06:54:38 2006 From: m.esposito at SOFTEC-SRL.COM (Maurizio Esposito) Date: Wed, 15 Feb 2006 08:54:38 -0600 Subject: Variable Substitution in Postgis Query Message-ID: Hi list, I'm in trouble with this: In Mapserver CGI I use a var &ruolo=XXX set by form - all OK In mapfile in a Postgis layer I need to use this FILTER clause FILTER "pk_id NOT IN (SELECT feat_id FROM features WHERE feature.type='% ruolo%')" but substitution doesn't work. I've tryed all combinations of single and double quote, with or without, but no results at all. Inserting a value , say 'foo' , makes the filter work fine. Any help ?? Regards Maurizio From jorn at SPACETEC.NO Wed Feb 15 07:35:08 2006 From: jorn at SPACETEC.NO (=?iso-8859-1?q?J=F8rn_Vegard_R=F8snes?=) Date: Wed, 15 Feb 2006 16:35:08 +0100 Subject: Virtual Globe In-Reply-To: <661FBE12805EF04DB0866FEA7F34542C07436D@CIATEX7.CIAT.CGIARAD.ORG> Message-ID: Hi all and Ernesto, On Wednesday 15 February 2006 16:24, you wrote: > Hi J?rn, > > There is a sample to include my own WMS layers into Virtual Globe? You have to edit the element in the .vgml file and make your WMS server open for the Virtual Globe server (if you're behind a firewall). Please contact Rune.Aasgaard_at_sintef.no for more information. > This would be a great idea to promote your viewer and others things and get > true client, wouldn't you? > The viewer is not mine :-) The viewer was presented on a seminar I attended, and I thought that it would be of interest for the MapServer mailinglist. cheers J?rn From osgis.lists at GMAIL.COM Wed Feb 15 08:20:28 2006 From: osgis.lists at GMAIL.COM (David Bitner) Date: Wed, 15 Feb 2006 10:20:28 -0600 Subject: Variable Substitution in Postgis Query In-Reply-To: Message-ID: Do your filtering in PostreSQL, it will also be faster than trying to filter with Mapserver especially if you have a two column index built on features.type and the geometry. Include the filter in your data statement in the mapfile: DATA "the_geom from (SELECT * FROM features WHERE features.type!='%ruolo%') as foo using unique [uniqueid] using srid=[yoursrid]" On 2/15/06, Maurizio Esposito wrote: > Hi list, > I'm in trouble with this: > In Mapserver CGI I use a var &ruolo=XXX set by form - all OK > In mapfile in a Postgis layer I need to use this FILTER clause > FILTER "pk_id NOT IN (SELECT feat_id FROM features WHERE feature.type='% > ruolo%')" > but substitution doesn't work. > I've tryed all combinations of single and double quote, with or without, > but no results at all. > Inserting a value , say 'foo' , makes the filter work fine. > Any help ?? > > Regards > > Maurizio > From m.esposito at SOFTEC-SRL.COM Wed Feb 15 08:46:55 2006 From: m.esposito at SOFTEC-SRL.COM (Maurizio Esposito) Date: Wed, 15 Feb 2006 10:46:55 -0600 Subject: Variable Substitution in Postgis Query Message-ID: hi david, ty for your quick help the very problem is the clause NOT IN , I must use it in a WHERE section,I think. I'm building up an exclusion list of some features on user's role (security sake) and the users role comes from CGI Your suggestion is very useful for speeding up selection. Regards Maurizio From tkirstine at JDBARNES.COM Wed Feb 15 09:12:29 2006 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Wed, 15 Feb 2006 12:12:29 -0500 Subject: wms extent Message-ID: When I add a mapserver based wms to ArcMap or uDig the map extent defaults to the max xy and min xy of my largest layer in my mapfile (Ontario)instead of the extent defined in my mapfile (toronto). Is there a way to force the EXTENT defined in the mapfile? Travis Kirstine First Base Solutions Limited 140 Renfrew Dr, Suite 100 Markham ON L3R 6B3 Phone 905.477.3600 Fax 905.477.3882 tkirstine at jdbarnes.com From nick.vrbos at IMMOFRONT.COM Wed Feb 15 09:26:12 2006 From: nick.vrbos at IMMOFRONT.COM (Nick Vrbos) Date: Wed, 15 Feb 2006 12:26:12 -0500 Subject: Delete from List Message-ID: Delete me from the list. Nick -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Wed Feb 15 09:39:24 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 15 Feb 2006 18:39:24 +0100 Subject: wms extent In-Reply-To: Message-ID: Yes there is, set the wms_extent METADATA on that LAYER. Best regards, Bart Travis Kirstine GIS Tech wrote: >When I add a mapserver based wms to ArcMap or uDig the map extent defaults >to the max xy and min xy of my largest layer in my mapfile (Ontario)instead >of the extent defined in my mapfile (toronto). Is there a way to force the >EXTENT defined in the mapfile? > >Travis Kirstine >First Base Solutions Limited >140 Renfrew Dr, Suite 100 >Markham ON >L3R 6B3 >Phone 905.477.3600 >Fax 905.477.3882 >tkirstine at jdbarnes.com > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From codeburg at HOTMAIL.COM Wed Feb 15 10:26:56 2006 From: codeburg at HOTMAIL.COM (Gail Long) Date: Wed, 15 Feb 2006 10:26:56 -0800 Subject: 4.8.1 build Message-ID: Hey folks I'm trying to rebuild all of the mapserver dependencies and I'm getting .h not found errors. The header files all seem to be in place within the source dirs of the deps (png jpeg zlib iconv gd, etc) I didn't do make install with any of these because I don't want to change my base system environment. What do I need to change to get mapserver to look for the includes? Some option to configure I'm missing? I want to set up a multi-version build environment so that I can have the current version libs, betas, and a sandbox type of lib set. I'm building 4.8.1 on RHE I appreciate any assistance. -- Things are only difficult while you don't understand them. From tkirstine at JDBARNES.COM Wed Feb 15 10:30:28 2006 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Wed, 15 Feb 2006 13:30:28 -0500 Subject: wms howto In-Reply-To: <43F3674C.5070409@xs4all.nl> Message-ID: Bart, Your suggestion worked like a charm. Do you know where I could find a complete list of wms commands. I've tried the mapserver documentation but it dosen't include wms_extent for example. I've tried to set the status off using "wms_status" "off" but that dosen't work -----Original Message----- From: Bart van den Eijnden (OSGIS) [mailto:bartvde at xs4all.nl] Sent: Wednesday, February 15, 2006 12:39 PM To: Travis Kirstine GIS Tech Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] wms extent Yes there is, set the wms_extent METADATA on that LAYER. Best regards, Bart Travis Kirstine GIS Tech wrote: >When I add a mapserver based wms to ArcMap or uDig the map extent defaults >to the max xy and min xy of my largest layer in my mapfile (Ontario)instead >of the extent defined in my mapfile (toronto). Is there a way to force the >EXTENT defined in the mapfile? > >Travis Kirstine >First Base Solutions Limited >140 Renfrew Dr, Suite 100 >Markham ON >L3R 6B3 >Phone 905.477.3600 >Fax 905.477.3882 >tkirstine at jdbarnes.com > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From siki at AGT.BME.HU Wed Feb 15 14:13:30 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Wed, 15 Feb 2006 21:13:30 -0100 Subject: ms4w {Scanned} In-Reply-To: Message-ID: Hi, There are more possible solutions 1. Move the dll-s to the windows system32 directory 2. Move the shp2img executable to the cgi-bin directory 3. Add the directories of neccessary dll-s to your path 4. There is a bat file in the tools directory to set up path for ddl-s in ms4w Bye Zoltan On Wed, 15 Feb 2006, D. Eric Keefauver wrote: > Hi there, > > We are currently investigating Mapserver to replace our IMS sites (ESRI). I > have downloaded the ms4w package to my machine (Win.XP) and have completed > the installation. Si I have thought. > I can get Apache running and load another application (in my case Ka-Map) > and bring up its interface. In perusing a Ka-Map tutorial to get a demo > site up and running it suggests that I check the map > file using the shp2img utility. When trying to access that utility I get an > error indicating "the application failed to start because gdal13.dll was > not found. Reinstall the application may fix the problem" > I can see that the dll in question sits in the C:\ms4w\Apache\cgi-bin > directory. I have tried to re-install with no solve as well as running the > setenv application. > > Any ideas? > > Thanks, > > Eric > From bartvde at XS4ALL.NL Wed Feb 15 11:05:52 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 15 Feb 2006 20:05:52 +0100 Subject: wms howto In-Reply-To: Message-ID: There is no status in WMS, only in a Web Map Context (WMC) document status is defined. The status is up to the WMS client and not to the WMS server. wms_extent is mentioned in the docs: http://mapserver.gis.umn.edu/docs/howto/wms_server/ Best regards, Bart Travis Kirstine GIS Tech wrote: >Bart, >Your suggestion worked like a charm. Do you know where I could find a >complete list of wms commands. I've tried the mapserver documentation but >it dosen't include wms_extent for example. I've tried to set the status off >using "wms_status" "off" but that dosen't work > >-----Original Message----- >From: Bart van den Eijnden (OSGIS) [mailto:bartvde at xs4all.nl] >Sent: Wednesday, February 15, 2006 12:39 PM >To: Travis Kirstine GIS Tech >Cc: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] wms extent > > >Yes there is, set the wms_extent METADATA on that LAYER. > >Best regards, >Bart > >Travis Kirstine GIS Tech wrote: > > > >>When I add a mapserver based wms to ArcMap or uDig the map extent defaults >>to the max xy and min xy of my largest layer in my mapfile (Ontario)instead >>of the extent defined in my mapfile (toronto). Is there a way to force the >>EXTENT defined in the mapfile? >> >>Travis Kirstine >>First Base Solutions Limited >>140 Renfrew Dr, Suite 100 >>Markham ON >>L3R 6B3 >>Phone 905.477.3600 >>Fax 905.477.3882 >>tkirstine at jdbarnes.com >> >> >> >> >> >> > > >-- >Bart van den Eijnden >OSGIS, Open Source GIS >http://www.osgis.nl > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From dbkeon.ml at GMAIL.COM Wed Feb 15 12:04:05 2006 From: dbkeon.ml at GMAIL.COM (Dylan Keon) Date: Wed, 15 Feb 2006 12:04:05 -0800 Subject: 4.8.1 build In-Reply-To: Message-ID: On 02/15/2006 10:26 AM, Gail Long wrote: > Hey folks I'm trying to rebuild all of the mapserver dependencies and > I'm getting .h not found errors. The header files all seem to be in > place within the source dirs of the deps (png jpeg zlib iconv gd, etc) > > I didn't do make install with any of these because I don't want to > change my base system environment. What do I need to change to get > mapserver to look for the includes? Some option to configure I'm missing? > > I want to set up a multi-version build environment so that I can have > the current version libs, betas, and a sandbox type of lib set. > > I'm building 4.8.1 on RHE > > I appreciate any assistance. I would use a separate area (like /opt) where you can fully install the packages without affecting the base system. When compiling each package use the --prefix option to indicate the "make install" target (e.g., --prefix=/opt ). When compiling subsequent packages you will need to define options such as --with-png=/opt --with-gd=/opt, etc. to point to the installed files you want to build against. Or you could probably just point mapserver to the compiled source for each package (e.g., --with-png=/home/gail/ms/source/libpng-1.2.8). I prefer the first approach. Dylan From Gary.Coppens at GAPAC.COM Wed Feb 15 12:15:50 2006 From: Gary.Coppens at GAPAC.COM (Coppens, Gary J.) Date: Wed, 15 Feb 2006 14:15:50 -0600 Subject: Drawing a route Message-ID: Please bear with me, I have been working with Mapserver 2 weeks. I need to draw a route that follows a road or highway. I have been asked to develop an app that will track carriers' shipments. So if they have a load going from Green Bay, WI to Minneapolis, MN they want to see a line drawn between the two cities that would follow a major road. Any ideas? Thanks Gary Gary Coppens WaterMark Software, LTD gary.coppens at gapac.com w:920.438.2477 gary.coppens at watermarksoftware.com c:920.737.1299 -------------- next part -------------- An HTML attachment was scrubbed... URL: From swoodbridge at WHERE2GETIT.COM Wed Feb 15 12:37:56 2006 From: swoodbridge at WHERE2GETIT.COM (Stephen Woodbridge) Date: Wed, 15 Feb 2006 15:37:56 -0500 Subject: Drawing a route In-Reply-To: Message-ID: Coppens, Gary J. wrote: > Please bear with me, I have been working with Mapserver 2 weeks. I need > to draw a route that follows a road or highway. I have been asked to > develop an app that will track carriers' shipments. Tracking it very different from planning. Tracking implies a GPS like device that records the current location of the shipment and assuming you have collected that information then it is straight forward to display it as a virtual data layer over a base map using mapserver. > So if they have a > load going from Green Bay, WI to Minneapolis, MN they want to see a line > drawn between the two cities that would follow a major road. In this case you need to calculate the route first (planning), which would have to be done by some other software or service. Where2getit.com offers commercial services that does this, I'm sure there are others also. There has been mentioned on this list pgDijkstra which might be a solution, but I haven't use it. At any rate, after you compute your route then you should be able to extract the polyline segments to draw the route on your map. -Steve W > Any ideas? > > Thanks > Gary > > Gary Coppens > WaterMark Software, LTD > gary.coppens at gapac.com > w:920.438.2477 > gary.coppens at watermarksoftware.com > > c:920.737.1299 > From woodbri at SWOODBRIDGE.COM Wed Feb 15 12:54:45 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 15 Feb 2006 15:54:45 -0500 Subject: [Fwd: RE: [UMN_MAPSERVER-USERS] shp2tile question] Message-ID: -------- Original Message -------- Subject: RE: [UMN_MAPSERVER-USERS] shp2tile question Date: Wed, 15 Feb 2006 12:37:22 -0800 From: Eric Shuman Reply-To: To: 'Stephen Woodbridge' Hi Steve, So I have finally gotten DEBUG info working, and have made the shptree index for my shapefiles. I have also gotten PostGIS working and have imported a shapefile to the DB. I have created indexes for the geometry field as well as the OID, and a TAXLOT attribute field, and then Vacuumed/Analyzed the DB. I did see an improvement in draw time after creating the shptree index, but I don't see much difference between an attribute query based on a shapefile vs. postGIS. My shapefile has about 88000 records. The .shp is about 43Megs and the .dbf is about 53Megs in size. What is "Really Huge"? What I am trying to do is this: 1. Query "Lots" shapefile for a particular lot number. 2. Find all the lots that are within a distance of the lot in question. 3. Gather attribute info about the near-by lots. 4. Zoom map extent to the area in question. I am either hitting this large shapefile or the postGIS table (or some combo of the two) 3 times in the MAP file to get everything symbolized properly. Total draw times are running around 9 seconds. Is there any other techniques to speed things up? Am I missing anything? Thanks, ~Eric -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: Thursday, February 02, 2006 5:11 PM To: Eric Shuman Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] shp2tile question Eric, Here is how you should optimize mapserver: 1) every *.shp file should have a shptree index, (ie: a corresponding *.qix) if you haven't done this then don't think about anything else. This includes on all TILEINDEX shp files also. 2) If you have large numbers of objects that you need to do attribute queries on consider using postgis for just those layers. 3) I will let others comment on rasters and how to optimize them 4) Set "DEBUG ON" in the mapfile and create a LOG file, then do a typical mapdraw and look at how long each layer took to draw. Then tell us about that if it is not obvious how to fix that performance issue. 5) As a last resort, if you have REALLY HUGE shapefiles and they are drawing very slowly then consider using shp2tile, but talk about here on the list first. Let us know if this helps and what your problems are after you have tried this. -Steve W. http://imaptools.com/ Eric Shuman wrote: > I also have a similar problem. Don, did you come up with a good solution? > I'm still new to mapserver and have not delved into the indexing > capabilities yet. Can someone enlighten me? > > Here is my situation: > I have a map set up that displays cadastral data as well as other layers > such as streets and points of interest. From PHP I query the map by > attribute for a taxlot ID. The map layer itself is set to the full extent > of the data, and uses the parcel layer multiple times to show the query > results, as well as for other symbology purposes. When the lot is found the > map zooms to the extent of the results. The data extent covers an entire > county so the layers are fairly large, and the map takes awhile to draw. > > The questions: > In all cases the final extent is pretty small, maybe 1 square mile max. > Should I be tiling my parcels layer with the shp2tile/ogrtindex combo and > then creating a shptree on the resulting index? OR Should I just create a > shptree on the parcels layer as well as all the other layers? Will the > shptree help when doing an attribute query, or do I need to find a different > solution for speeding up the attribute query? Any recomendations on how to > speed things up? > > In addition I am serving up aerial photos. I have a 1Gig MrSid, but don't > really want to get into building mapserver from scratch to add the > functionality. So my though was to convert the SID to 2500 8Meg TIFF's, and > then run a gdaltindex on them, then maybe a shptree on the index. Is this a > sound plan? Other options? Does anyone have experience with the speed > differences of MrSid vs. TIFF? > > Thanks for the help! > > ~Eric Shuman > > > > On Mon, 18 Apr 2005 10:20:23 -0400, Don Deskins wrote: > > >>Steve, >> >>Thank you for your reply. >> >>I have experimented with different numbers and after reading a bit >>more, I have discovered that it make no difference (in my case) how I >>divide it up. As a matter of fact, my application performs SLOWER the >>more files that I have. >> >>What I am trying to do is to display an area with parcels of land. I >>have two identical layers... one to display all of the parcels and the >>other to only display the selected parcel. It is extremely slow when >>querying for by parcel id. Because of this, I need to put the second >>layer (at least) in a database so that the parcelid field can be >>indexed. >> >>Thanks, >> >>Don >> >>On 4/11/05, Stephen Woodbridge wrote: >> >>>Don, >>> >>>Like I said there is no magic number. If you are most showing all your >>>parcels most of the time then there is not value in having it tiled. One >>>of the MOST important performance issues is to make sure all your *.shp >>>files have a *.qix file. >>> >>>Try a different set of tiling parameters and test it again. >>> >>>Did you have *.qix on you original shapefile? If not go back to that and >>>add one (shptree file.shp) and see how it performs untiled. >>> >>>-Steve >>> >>>Don Deskins wrote: >>> >>>>Bart and Steve, >>>> >>>>My shapefiles are showing up now... thanks! >>>> >>>>Now I have a time problem... It seems to take more time to generate >>>>the image than it did before. I am checking for errors now. >>>> >>>>Thanks again. >>>> >>>>Don >>>> >>>> >>>>On Apr 11, 2005 3:28 PM, Bart van den Eijnden wrote: >>>> >>>> >>>>>Hi Don, >>>>> >>>>>check the dbf of your generated tileindex (the LOCATION field). I usually >>>>>use absolute paths in there. Are there absolute or relative paths to the >>>>>files in there? >>>>> >>>>>Also use TYPE POLYGON. Are you zoomed in enough to have your layer showing >>>>>up, since you are using a MAXSCALE setting? >>>>> >>>>>Best regards, >>>>>Bart >>>>> >>>>>On Mon, 11 Apr 2005 15:24:45 -0400, Don Deskins >>>>>wrote: >>>>> >>>>> >>>>> >>>>>>Bart (and Steve), >>>>>> >>>>>>Thanks. >>>>>> >>>>>>I have my files created and tried to reference this index in my map file: >>>>>> >>>>>> #################################### >>>>>> # parcels >>>>>> LAYER >>>>>> NAME 'tileindex' >>>>>> TYPE TILEINDEX >>>>>> DATA '/path/to/tileindex' >>>>>> MAXSCALE 40000 >>>>>> END >>>>>> >>>>>> LAYER >>>>>> NAME 'SCAP_Cert2004_ParcelsUTM16M' >>>>>> STATUS ON >>>>>> TYPE POLYGON >>>>>> TILEINDEX '/path/to/tileindex' >>>>>> #TILEITEM 'LOCATION' >>>>>> MAXSCALE 40000 >>>>>> END >>>>>> #################################### >>>>>> >>>>>>I get no error but my shapes are not showing up... do you see a >>>>>>problem with the above map? >>>>>> >>>>>>Don >>>>>> >>>>>>On Apr 11, 2005 2:58 PM, Bart van den Eijnden wrote: >>>>>> >>>>>> >>>>>>>Hi, >>>>>>> >>>>>>>It is tile4ms, not tile2ms, probably a typo by Steve. >>>>>>> >>>>>>>It is a Mapserver utility to make a tileindex. Alternatively, you can >>>>>>>also >>>>>>>use ogrtindex for vector layers and gdaltindex for raster layers. >>>>>>> >>>>>>>Best regards, >>>>>>>Bart >>>>>>> >>>>>> >>>>>-- >>>>>Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ >>>>> >>>> >>>> >>>> >>>>-- >>>>Don Deskins >>>> >>> >>> >> >>-- >>Don Deskins > > From dmorissette at DMSOLUTIONS.CA Wed Feb 15 12:58:08 2006 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Wed, 15 Feb 2006 15:58:08 -0500 Subject: 4.8.1 build In-Reply-To: <43F38935.2080907@gmail.com> Message-ID: > On 02/15/2006 10:26 AM, Gail Long wrote: > >> Hey folks I'm trying to rebuild all of the mapserver dependencies and >> I'm getting .h not found errors. The header files all seem to be in >> place within the source dirs of the deps (png jpeg zlib iconv gd, etc) >> >> I didn't do make install with any of these because I don't want to >> change my base system environment. What do I need to change to get >> mapserver to look for the includes? Some option to configure I'm >> missing? >> >> I want to set up a multi-version build environment so that I can have >> the current version libs, betas, and a sandbox type of lib set. >> >> I'm building 4.8.1 on RHE >> Unless there are good reasons why you need to compile everything from scratch, I'd suggest that you have a look at FGS: http://maptools.org/fgs/ It provides exactly that, a sandbox with all the dependencies that doesn't affect any of the existing libs on your system, all precompiled and tested for Linux and installed in a few minutes. And if you really want to compile everything yourself in a sandbox environment then the FGS build scripts are available, that's a little more complicated, but you'll find some information at http://maptools.org/fgs/index.phtml?page=fgs-sandbox.html Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From condit at SDSC.EDU Wed Feb 15 14:06:22 2006 From: condit at SDSC.EDU (Christopher Condit) Date: Wed, 15 Feb 2006 14:06:22 -0800 Subject: MapScript SetSymbolSet Message-ID: Hi - I'm having a problem in my c# MapScript application. Occasionally when I call Map.setSymbolSet(@"C:\absolute\symbol\path.sym"); I get an error parsing the symbol file at line 0 (SYMBOLSET). Is mapscript locking the symbol file? Has anyone else seen this problem? Thanks, Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlacroix at DMSOLUTIONS.CA Wed Feb 15 14:14:06 2006 From: jlacroix at DMSOLUTIONS.CA (Julien-Samuel Lacroix) Date: Wed, 15 Feb 2006 17:14:06 -0500 Subject: MapScript SetSymbolSet In-Reply-To: <845AADAC1106E44996327D62097E4C6B8600B7@et.ad.sdsc.edu> Message-ID: Hi, This kind of error is usually returned when an illegal word is in the symbolset file. Check at the first line of: C:\absolute\symbol\path.sym Is there anything special? If not, can you provide a minimal test script to reproduce the error? Julien Christopher Condit wrote: > Hi ? > > I?m having a problem in my c# MapScript application. Occasionally when > I call > > Map.setSymbolSet(@?C:\absolute\symbol\path.sym?); > > I get an error parsing the symbol file at line 0 (SYMBOLSET). > > > > Is mapscript locking the symbol file? Has anyone else seen this problem? > > > > Thanks, > > > > Chris > -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From condit at SDSC.EDU Wed Feb 15 14:19:58 2006 From: condit at SDSC.EDU (Christopher Condit) Date: Wed, 15 Feb 2006 14:19:58 -0800 Subject: MapScript SetSymbolSet Message-ID: Hi Julien- Thanks for your response. Here are the contents of the symbol file: SYMBOLSET SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END END The problem I'm having is intermittent and I can't reliably reproduce it. My only thought was that for some reason mapscript couldn't read the file. Is there any way to embed these symbols directly in the mapfile instead of referencing the symbolset file? Thanks, Chris -----Original Message----- From: Julien-Samuel Lacroix [mailto:jlacroix at dmsolutions.ca] Sent: Wednesday, February 15, 2006 2:14 PM To: Christopher Condit Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapScript SetSymbolSet Hi, This kind of error is usually returned when an illegal word is in the symbolset file. Check at the first line of: C:\absolute\symbol\path.sym Is there anything special? If not, can you provide a minimal test script to reproduce the error? Julien Christopher Condit wrote: > Hi - > > I'm having a problem in my c# MapScript application. Occasionally when > I call > > Map.setSymbolSet(@"C:\absolute\symbol\path.sym"); > > I get an error parsing the symbol file at line 0 (SYMBOLSET). > > > > Is mapscript locking the symbol file? Has anyone else seen this problem? > > > > Thanks, > > > > Chris > -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From bill at BINKO.NET Wed Feb 15 14:32:57 2006 From: bill at BINKO.NET (Bill Binko) Date: Wed, 15 Feb 2006 17:32:57 -0500 Subject: [Fwd: RE: [UMN_MAPSERVER-USERS] shp2tile question] In-Reply-To: <43F39515.5030301@swoodbridge.com> Message-ID: Eric, I am doing very similar work, so if you want to contact me off-list, please feel free. Some questions first, since you don't say exactly how you're doing this now... > > What I am trying to do is this: > 1. Query "Lots" shapefile for a particular lot number. I assume this means that you're getting a x/y from the user and are doing a query to convert that to a lot number (something like '14/28/15/27234/000/0520' or 'U-05-27-17-001-000000-00009.0' or the like). This is probably fastest done using Mapscript against a shapefile that has an index built. However, there are lots of approaches, and others here may have better ideas. If you already have the lot number (or some other non-spatial ID), you can skip this. > 2. Find all the lots that are within a distance of the lot in question. > 3. Gather attribute info about the near-by lots. This is where PostGIS shines, and where it should be applied, however you don't say exactly what you're looking for. Are you looking for Aggregate info? Like "Average Price of Homes within 1km"? Or selective info like "Light up all homes over $200K within one mile"? Both are doable, but I'm going to assume the second. Also, if the viewable area is smaller than your buffer, do you want to include those items? Let's assume that your "Lot number" is unique in the PostGIS table that holds your shapes (and their attributes). That way I can just use 'gid' for now and most of the SQL will fall out. For simplicity, lets say that all of the attributes are in one table. Here's an example of finding all shapes within 3281 feet (1km) of your target id (512). However, this will run ridiculously slowly regardless of your indexing: select gid, parcel_shape from hills_parcels where distance(parcel_shape, (select parcel_shape from hills_parcels where gid = 512)) < 3281; The reason is that no index are being used, because they can only be used by the PostGIS operators such as &&. So, lets modify this to be a bit quicker: gis=# select gid from hills_parcels where parcel_shape && buffer((select centroid(parcel_shape) from hills_parcels where gid = 512), 2*3281) AND distance(parcel_shape, (select parcel_shape from hills_parcels where gid=512)) < 3281 ; This draws a 2km circle around your shape and only tests those whose bounding boxes intersect that to see if they are close enough to count. Your parcel size might make you increase or decrease that parameter, but I've found that double your distance is fairly safe. Some will notice that we're performing the same sub-select (or close to it) twice. Without scripting or PL/PGSQL, this is difficult to avoid, but not a big deal (it's a unique id lookup + a centroid() call). With this request, I select 758 "close" parcels out of 415,733 total in about 4 seconds. That is fine for some uses, but for online work, it might not be enough. For times when I need ONLINE access, one simple fix usually gets me there: I take that "Within 1 km of the parcel" requirement and change it to "Whithin 1km of the center of the parcel". This DRAMATICALLY reduces the times needed: gis=# select gid from hills_parcels where parcel_shape && buffer((select centroid(parcel_shape) from hills_parcels where gid = 512), 2*3280) AND distance(parcel_shape, (select *centroid*(parcel_shape) from hills_parcels where gid=512)) < 3280; This selects 737 rows in 186 ms! Another approach is to go one step farther and simplifiy the requirements to "Whose center is within one center 1km of the center of the target". With the proper index, it simplifies dramatically (since the bounding box of a point is the point), but doesn't actually speed up much): First, we need a centroid() index for this to work: gis=# create index hill_centroid_idx on hills_parcels USING GIST (centroid(parcel_shape) GIST_GEOMETRY_OPS); gis=# vacuum analyze hills_parcels; And for pre-8.x Postgresql: gis=# SELECT UPDATE_GEOMETRY_STATS(); Second, we MIGHT need a quick way to lookup centroid()s by gid, if your shapes are very (very) complex. Either way, it can't hurt, and can make a difference if your lot number isn't your primary key. gis=# create index hills_centroid_lookup on hills_parcels (gid, centroid(parcel_shape)); Finally, the simple request itself: gis=# select gid from hills_parcels where centroid(parcel_shape) && buffer((select centroid(parcel_shape) from hills_parcels where gid = 512), 3280); If you go this far, make sure that you use the centroid() index above or this final step will get very slow!! Anyway, depending on what your actual goals are, I think this should get you going in the right direction. If not, please feel free to contact me. Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: From h.viola at BOM.GOV.AU Wed Feb 15 15:16:22 2006 From: h.viola at BOM.GOV.AU (Hester Viola) Date: Wed, 15 Feb 2006 17:16:22 -0600 Subject: Behaviour of WFS filter query Message-ID: Hello, This is a general question rather than an issue I am having. I am wondering about the behaviour of MapServer in processing a WFS GetFeature requests, with a filter in the URL, reading data from PostGIS or ESRI shapefile. eg http://www4.bom.gov.au/cgi-bin/mapserver/mapserv?map=/web/htdocs/mapserver/weather.map&version=1.0.0&service=WFS&request=GetFeature&typename=metarrain&filter=rf9am0.2 Does this sort of request : 1. Return all of the data in the layer to MapServer, which then applies the filter (meaning there is significant Internet traffic involved) OR 2. Generate an SQL query within MapServer in order to only request the data defined by the filter from the database or file (thereby reducing the Internet traffic) I hope that this makes sense and someone can provide some information Thanks in advance Hester From sgillies at FRII.COM Wed Feb 15 15:57:39 2006 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 15 Feb 2006 16:57:39 -0700 Subject: MapScript SetSymbolSet In-Reply-To: Message-ID: On Feb 15, 2006, at 3:19 PM, Christopher Condit wrote: > Hi Julien- > Thanks for your response. Here are the contents of the symbol file: > SYMBOLSET > SYMBOL > NAME 'circle' > TYPE ELLIPSE > POINTS 1 1 END > FILLED TRUE > END > END > > The problem I'm having is intermittent and I can't reliably reproduce > it. My only thought was that for some reason mapscript couldn't read > the file. Is there any way to embed these symbols directly in the > mapfile instead of referencing the symbolset file? > > Thanks, > > Chris Yes, just add any SYMBOL block as a child of the top-level map. Sean --- Sean Gillies sgillies at frii dot com http://zcologia.com/news From condit at SDSC.EDU Wed Feb 15 16:03:48 2006 From: condit at SDSC.EDU (Christopher Condit) Date: Wed, 15 Feb 2006 16:03:48 -0800 Subject: MapScript SetSymbolSet Message-ID: Hi Sean- Is there a way to accomplish this with MapScript? All I see is a way to set the symbolset. Thanks, Chris -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Sean Gillies Sent: Wednesday, February 15, 2006 3:58 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapScript SetSymbolSet On Feb 15, 2006, at 3:19 PM, Christopher Condit wrote: > Hi Julien- > Thanks for your response. Here are the contents of the symbol file: > SYMBOLSET > SYMBOL > NAME 'circle' > TYPE ELLIPSE > POINTS 1 1 END > FILLED TRUE > END > END > > The problem I'm having is intermittent and I can't reliably reproduce > it. My only thought was that for some reason mapscript couldn't read > the file. Is there any way to embed these symbols directly in the > mapfile instead of referencing the symbolset file? > > Thanks, > > Chris Yes, just add any SYMBOL block as a child of the top-level map. Sean --- Sean Gillies sgillies at frii dot com http://zcologia.com/news From assefa at DMSOLUTIONS.CA Wed Feb 15 16:12:50 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 15 Feb 2006 19:12:50 -0500 Subject: Behaviour of WFS filter query In-Reply-To: Message-ID: What happens in this case is the the is transformed into an SQL expression and set on the layer's filter element. Then a query is performed. This happens for relativly simple filter expressions where it is possible to convert it to SQL expressions. In any case, all the querying, filter transformation is always done on the server and only the resulting features are returned. Later, Hester Viola wrote: > Hello, > > This is a general question rather than an issue I am having. > > I am wondering about the behaviour of MapServer in processing a WFS > GetFeature requests, with a filter in the URL, reading data from PostGIS or > ESRI shapefile. > eg > http://www4.bom.gov.au/cgi-bin/mapserver/mapserv?map=/web/htdocs/mapserver/weather.map&version=1.0.0&service=WFS&request=GetFeature&typename=metarrain&filter=rf9am0.2 > > Does this sort of request : > 1. Return all of the data in the layer to MapServer, which then applies the > filter (meaning there is significant Internet traffic involved) > > OR > > 2. Generate an SQL query within MapServer in order to only request the data > defined by the filter from the database or file (thereby reducing the > Internet traffic) > > I hope that this makes sense and someone can provide some information > > Thanks in advance > Hester -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From sgillies at FRII.COM Wed Feb 15 16:15:52 2006 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 15 Feb 2006 17:15:52 -0700 Subject: MapScript SetSymbolSet In-Reply-To: Message-ID: Oh, I see. Yeah, it's possible. Here's an example from one of my Python projects: circle = mapscript.symbolObj('circle') circle.type = mapscript.MS_SYMBOL_ELLIPSE circle.filled = mapscript.MS_TRUE line = mapscript.lineObj() line.add(mapscript.pointObj(1,1)) circle.setPoints(line) circle.sizex = 1 circle.sizey = 1 mo.symbolset.appendSymbol(circle) The "mo" name is bound to a mapObj. It's very important to get sizex and sizey right, should be the width and height of the symbol in the same units as the point and line coordinates used to construct the symbol. To use this symbol style.symbol = mo.symbolset.index('circle') Translate this into C# and you should be good to go. cheers, Sean On Feb 15, 2006, at 5:03 PM, Christopher Condit wrote: > Hi Sean- > Is there a way to accomplish this with MapScript? All I see is a > way to > set the symbolset. > > Thanks, > > Chris > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER- > USERS at LISTS.UMN.EDU] On > Behalf Of Sean Gillies > Sent: Wednesday, February 15, 2006 3:58 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] MapScript SetSymbolSet > > On Feb 15, 2006, at 3:19 PM, Christopher Condit wrote: > >> Hi Julien- >> Thanks for your response. Here are the contents of the symbol file: >> SYMBOLSET >> SYMBOL >> NAME 'circle' >> TYPE ELLIPSE >> POINTS 1 1 END >> FILLED TRUE >> END >> END >> >> The problem I'm having is intermittent and I can't reliably reproduce >> it. My only thought was that for some reason mapscript couldn't read >> the file. Is there any way to embed these symbols directly in the >> mapfile instead of referencing the symbolset file? >> >> Thanks, >> >> Chris > > Yes, just add any SYMBOL block as a child of the top-level map. > > Sean > --- Sean Gillies sgillies at frii dot com http://zcologia.com/news From condit at SDSC.EDU Wed Feb 15 16:45:57 2006 From: condit at SDSC.EDU (Christopher Condit) Date: Wed, 15 Feb 2006 16:45:57 -0800 Subject: MapScript SetSymbolSet Message-ID: Argh - the map instance keeps this and works fine, but refuses to write it out to the map file: symbolObj circle = new symbolObj("circle", null); circle.type = (int)MS_SYMBOL_TYPE.MS_SYMBOL_ELLIPSE; circle.filled = mapscript.MS_TRUE; lineObj line = new lineObj(); line.add(new pointObj(1, 1, 0, 0)); circle.sizex = 1; circle.sizey = 1; map.symbolset.appendSymbol(circle); later I use: sty.symbol = map.symbolset.index("circle"); which works fine - sets the index properly. No symbols get written to the mapfile, however. Is there something special I need to do to get the symbols to write out? Thanks, Chris -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Sean Gillies Sent: Wednesday, February 15, 2006 4:16 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapScript SetSymbolSet Oh, I see. Yeah, it's possible. Here's an example from one of my Python projects: circle = mapscript.symbolObj('circle') circle.type = mapscript.MS_SYMBOL_ELLIPSE circle.filled = mapscript.MS_TRUE line = mapscript.lineObj() line.add(mapscript.pointObj(1,1)) circle.setPoints(line) circle.sizex = 1 circle.sizey = 1 mo.symbolset.appendSymbol(circle) The "mo" name is bound to a mapObj. It's very important to get sizex and sizey right, should be the width and height of the symbol in the same units as the point and line coordinates used to construct the symbol. To use this symbol style.symbol = mo.symbolset.index('circle') Translate this into C# and you should be good to go. cheers, Sean On Feb 15, 2006, at 5:03 PM, Christopher Condit wrote: > Hi Sean- > Is there a way to accomplish this with MapScript? All I see is a > way to > set the symbolset. > > Thanks, > > Chris > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER- > USERS at LISTS.UMN.EDU] On > Behalf Of Sean Gillies > Sent: Wednesday, February 15, 2006 3:58 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] MapScript SetSymbolSet > > On Feb 15, 2006, at 3:19 PM, Christopher Condit wrote: > >> Hi Julien- >> Thanks for your response. Here are the contents of the symbol file: >> SYMBOLSET >> SYMBOL >> NAME 'circle' >> TYPE ELLIPSE >> POINTS 1 1 END >> FILLED TRUE >> END >> END >> >> The problem I'm having is intermittent and I can't reliably reproduce >> it. My only thought was that for some reason mapscript couldn't read >> the file. Is there any way to embed these symbols directly in the >> mapfile instead of referencing the symbolset file? >> >> Thanks, >> >> Chris > > Yes, just add any SYMBOL block as a child of the top-level map. > > Sean > --- Sean Gillies sgillies at frii dot com http://zcologia.com/news From sgillies at FRII.COM Wed Feb 15 17:12:41 2006 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 15 Feb 2006 18:12:41 -0700 Subject: MapScript SetSymbolSet In-Reply-To: Message-ID: Chris, Submit a new bug report to the MapServer Bugzilla under the C library component. Looks like msSaveMap may need to be updated. Sean On Feb 15, 2006, at 5:45 PM, Christopher Condit wrote: > Argh - the map instance keeps this and works fine, but refuses to > write > it out to the map file: > > symbolObj circle =3D new symbolObj("circle", null); > circle.type =3D (int)MS_SYMBOL_TYPE.MS_SYMBOL_ELLIPSE; > circle.filled =3D mapscript.MS_TRUE; > lineObj line =3D new lineObj(); > line.add(new pointObj(1, 1, 0, 0)); > circle.sizex =3D 1; > circle.sizey =3D 1; =09 > map.symbolset.appendSymbol(circle); > > later I use: > > sty.symbol =3D map.symbolset.index("circle");=09 > > which works fine - sets the index properly. No symbols get written to > the mapfile, however. Is there something special I need to do to get > the symbols to write out? > > Thanks, > > Chris > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER- > USERS at LISTS.UMN.EDU] On > Behalf Of Sean Gillies > Sent: Wednesday, February 15, 2006 4:16 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] MapScript SetSymbolSet > > Oh, I see. Yeah, it's possible. Here's an example from one of my =20 > Python projects: > > circle =3D mapscript.symbolObj('circle') > circle.type =3D mapscript.MS_SYMBOL_ELLIPSE > circle.filled =3D mapscript.MS_TRUE > line =3D mapscript.lineObj() > line.add(mapscript.pointObj(1,1)) > circle.setPoints(line) > circle.sizex =3D 1 > circle.sizey =3D 1 > mo.symbolset.appendSymbol(circle) > > The "mo" name is bound to a mapObj. It's very important to get > sizex =20 > and sizey right, should be the width and height of the symbol in > the =20 > same units as the point and line coordinates used to construct the =20 > symbol. > > To use this symbol > > style.symbol =3D mo.symbolset.index('circle') > > Translate this into C# and you should be good to go. > > cheers, > Sean > > On Feb 15, 2006, at 5:03 PM, Christopher Condit wrote: > >> Hi Sean- >> Is there a way to accomplish this with MapScript? All I see is a =20 >> way to >> set the symbolset. >> >> Thanks, >> >> Chris >> >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-=20 >> USERS at LISTS.UMN.EDU] On >> Behalf Of Sean Gillies >> Sent: Wednesday, February 15, 2006 3:58 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] MapScript SetSymbolSet >> >> On Feb 15, 2006, at 3:19 PM, Christopher Condit wrote: >> >>> Hi Julien- >>> Thanks for your response. Here are the contents of the symbol file: >>> SYMBOLSET >>> SYMBOL >>> NAME 'circle' >>> TYPE ELLIPSE >>> POINTS 1 1 END >>> FILLED TRUE >>> END >>> END >>> >>> The problem I'm having is intermittent and I can't reliably >>> reproduce >>> it. My only thought was that for some reason mapscript couldn't >>> read >>> the file. Is there any way to embed these symbols directly in the >>> mapfile instead of referencing the symbolset file? >>> >>> Thanks, >>> >>> Chris >> >> Yes, just add any SYMBOL block as a child of the top-level map. >> >> Sean >> > --- Sean Gillies sgillies at frii dot com http://zcologia.com/news From miller_joseph at BAH.COM Wed Feb 15 19:03:14 2006 From: miller_joseph at BAH.COM (Miller Joseph) Date: Wed, 15 Feb 2006 22:03:14 -0500 Subject: Compiling windows mapserver with mygis/mysql support Message-ID: It looks like GDAL won't support MySQl until 1.3.2 (ogrinfo detected my geometry column as a string despite the fact that I populated the geometry_columns table). What was the last version of MapServer that supported MySQL geometry types before support ended? Thanks, Joe Miller -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Tamas Szekeres Sent: Sunday, February 12, 2006 4:07 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Compiling windows mapserver with mygis/mysql support As far as I know native mysql support is no more sustained due to the lack of activity of the contributor. You might want to use GDAL/OGR instead. Tamas From warmerdam at POBOX.COM Wed Feb 15 19:19:35 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 15 Feb 2006 22:19:35 -0500 Subject: Compiling windows mapserver with mygis/mysql support In-Reply-To: <7585F83BC6F1DB4195D8496D9C68963A0117B550@MCLNEXVS08.resource.ds.bah.com> Message-ID: Miller Joseph wrote: > It looks like GDAL won't support MySQl until 1.3.2 (ogrinfo detected my > geometry column as a string despite the fact that I populated the > geometry_columns table). What was the last version of MapServer that > supported MySQL geometry types before support ended? Joe, To the best of my knowledge the mysql/mygis support in mapserver has not yet been removed though it is possible it has rotted a bit with disuse. Also, the bold can go ahead and use a nightly snapshot of GDAL/OGR to get the new mysql spatial support right now. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From fpgutierrez6 at HOTMAIL.COM Wed Feb 15 22:01:40 2006 From: fpgutierrez6 at HOTMAIL.COM (Florencia Gutierrez) Date: Thu, 16 Feb 2006 06:01:40 +0000 Subject: Installing MapServer Message-ID: Hello, my name is Florencia Gutierrez. I am currently taking classes at the LBJ of Public Affairs. We are trying to learn how to use GIS in particular MapServer in order to be able to provide communities at large with a software package that is easy to use for their purposes. I have downloaded MapServer (MS4W) onto my PC (2002). I have downloaded it onto my C: drive and extracted the information using suffits. I then turn on the apache server and tried to access the applications that are provided... with no luck. I went to the ReadMe file and this is what I was told: * To execute the utilities in the Tools folder first execute \ms4w\setenv\bat I ran this as well as trying to put it as an environmental variable and they did not work. If anyone has any ideas as to how I can access the MapServer applications I would greatly appreciate it. Thank you very much for any assistance you can provide, Florencia Gutierrez _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From umberto.nicoletti at GMAIL.COM Wed Feb 15 23:32:09 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 16 Feb 2006 08:32:09 +0100 Subject: Variable Substitution in Postgis Query In-Reply-To: Message-ID: Could you post the query that is passed to postgres when substitution is NOT done? Umberto On 2/15/06, Maurizio Esposito wrote: > hi david, > ty for your quick help > the very problem is the clause NOT IN , I must use it in a WHERE section,I > think. > I'm building up an exclusion list of some features on user's role > (security sake) and the users role comes from CGI > Your suggestion is very useful for speeding up selection. > > Regards > > Maurizio > From hydromap at GMAIL.COM Thu Feb 16 01:14:34 2006 From: hydromap at GMAIL.COM (Shoaib Burq) Date: Thu, 16 Feb 2006 20:14:34 +1100 Subject: hi In-Reply-To: <43EF8CC3.6020904@xs4all.nl> Message-ID: > > What I sometimes do is develop a web site completely with PHP/Mapscript, > but also use Mapserv CGI to provide OGC:WMS and OGC:WFS on my data. Bart, does PHP/Mapscript not have API support for OGC:xxx ? --shoaib > Best regards, > Bart > > Puneet Kishor wrote: > > > > > On Feb 12, 2006, at 12:39 PM, Bart van den Eijnden (OSGIS) wrote: > > > >> Yes you can. > >> > >> Best regards, > >> Bart > >> > >> Neelima Doddapaneni wrote: > >> > >>> HI all > >>> Can I use both cgi mapserver and php mapserver in parallel. > >>> Regards, > >>> Neelima > >>> > >>> > > > > well, a little qualifier required there, because the OP was a bit > > unclear to me. If "by parallel" you mean serving one website using > > MapServer CGI, and another using MapServer/PHP MapScript, both on the > > same computer, then yes, you can. > > > > On the other hand, if you are asking whether you can power a single > > website using two server-side technologies (CGI and PHP-MapScript), > > then the simple answer would be "no." > > -- > > Puneet Kishor > > > > > > > > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > From b.vdeijnden at AGI.RWS.MINVENW.NL Thu Feb 16 01:16:45 2006 From: b.vdeijnden at AGI.RWS.MINVENW.NL (Eijnden, B. van den (Bart)) Date: Thu, 16 Feb 2006 01:16:45 -0800 Subject: hi Message-ID: No you cannot use PHP/Mapscript as a WMS/WFS server (out of the box). You need Mapserv CGI for that. You can consume WMS and WFS services as a WMS/WFS client though with Mapscript. Best regards, Bart -----Oorspronkelijk bericht----- Van: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Shoaib Burq Verzonden: donderdag 16 februari 2006 10:15 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] hi > > What I sometimes do is develop a web site completely with PHP/Mapscript, > but also use Mapserv CGI to provide OGC:WMS and OGC:WFS on my data. Bart, does PHP/Mapscript not have API support for OGC:xxx ? --shoaib > Best regards, > Bart > > Puneet Kishor wrote: > > > > > On Feb 12, 2006, at 12:39 PM, Bart van den Eijnden (OSGIS) wrote: > > > >> Yes you can. > >> > >> Best regards, > >> Bart > >> > >> Neelima Doddapaneni wrote: > >> > >>> HI all > >>> Can I use both cgi mapserver and php mapserver in parallel. > >>> Regards, > >>> Neelima > >>> > >>> > > > > well, a little qualifier required there, because the OP was a bit > > unclear to me. If "by parallel" you mean serving one website using > > MapServer CGI, and another using MapServer/PHP MapScript, both on the > > same computer, then yes, you can. > > > > On the other hand, if you are asking whether you can power a single > > website using two server-side technologies (CGI and PHP-MapScript), > > then the simple answer would be "no." > > -- > > Puneet Kishor > > > > > > > > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > Disclaimer ************************************************************************ Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te informeren. Wij adviseren u om bij twijfel over de juistheid of de volledigheid van de mail contact met afzender op te nemen. This message shall not constitute any rights or obligations. This message is intended solely for the addressee. If you have received this message in error, please delete it and notify the sender immediately. When in doubt whether this message is correct or complete, please contact the sender. ************************************************************************ From ed at CITYSAFE.ORG Thu Feb 9 15:29:25 2006 From: ed at CITYSAFE.ORG (Ed Dowding) Date: Thu, 9 Feb 2006 23:29:25 -0000 Subject: Label Overlap removal, mapfile In-Reply-To: Message-ID: Turn labelcache ON Ed --------------------------------------------------------------------- Ed Dowding ed at citysafe.org [mob] +44 (0)7775 79 18 14 [sky] eddowding - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Product Manager, CitySafe www.citysafe.org ===================================================================== Helping keep Londoners safe and informed. Join FREE at www.communitysafe.org ===================================================================== Privileged or confidential information may be contained in this email and is intended for the addressee. If you are not the addressee, or the person responsible for delivering it to the person addressed, you may not copy or deliver this to anyone else. If you receive this email by mistake, please notify us immediately. ===================================================================== -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of krishna S Sent: 09 February 2006 22:49 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Label Overlap removal, mapfile Hello all, i was wondering can we remove the overlapping of labels from different layers in a mapfile and display the labels so that each and every label is visible. Any suggestions ... --kris From albrecht at FIELAX.DE Thu Feb 16 01:34:21 2006 From: albrecht at FIELAX.DE (Sebastian Albrecht) Date: Thu, 16 Feb 2006 09:34:21 +0000 Subject: Virtual Globe (HOWTO use external WMS) Message-ID: Hello again, relating to the discussion about Virtual Globe yesterday I wrote Rune Aasgaard how to configure external WMS servers into Virtual Globe. Below is what he replied. Best regards Sebastian -------- Original Message -------- Subject: Re: Virtual Globe and personal WMS servers Date: Wed, 15 Feb 2006 15:03:52 +0100 From: Rune Aasgaard Organization: SINTEF To: Sebastian Albrecht References: <43F327FA.2060803 at fielax.de> If we start with the common "Start Globe" URL... http://globe.sintef.no/VirtualGlobeStarter.cgi?name=Europe&dataset=http://globe.sintef.no/globe.vgml&viewpoint=4.787607927703958,27.52509436526137,3178271.6469249073,0.39637688320507086,-60.09160309417106 ... you'll find a referencee to a "dataset" (the globe.vgml file). Download that file and save it to your disk. Or, alternatively, download the commented version: http://globe.sintef.no/globe-commented.vgml Open it in your favorite text editor and try to add a WMS following the pattern of the ones in the configuration file (you'll get some hints in the commented version). The WMS server must be visible from the Globe server, as all WMS images are forst downloaded to the globe server, transformed, converted and cached there (so that when somebody has visited a WMS map it is readily accessible for others also), and then sent to the client. The .vgml file only needs to be visible from your globe client. Try this and report success/failure to me! From LVN at HVENEGAARD.DK Thu Feb 16 02:27:05 2006 From: LVN at HVENEGAARD.DK (Lars V. Nielsen (Hvenegaard)) Date: Thu, 16 Feb 2006 11:27:05 +0100 Subject: Updated offline resources / documentation ? Message-ID: I often find that the Mapserver site is blocked or inaccessable for some reason. It causes problems for me when using the online docs in my daily work. Is there a place where I can download the online docs formatted for offline viewing, like a pdf or a chm or something else, even a zipped heap of htmls ? I have some old html documentation from the old site, but they're not up-to-date anymore. (can't browse the site for such as it is - once again - inaccessable to me) Best regards / Med venlig hilsen Lars V. Nielsen -------------------------------------------------------- Hvenegaard A/S Rugaardsvej 55, DK-5000 Odense C Denmark Tel. +45 6313 5050 http://www.hvenegaard.dk From jegou at UNIV-TLSE2.FR Thu Feb 16 02:37:18 2006 From: jegou at UNIV-TLSE2.FR (=?ISO-8859-1?Q?Laurent_J=E9gou?=) Date: Thu, 16 Feb 2006 11:37:18 +0100 Subject: Updated offline resources / documentation ? In-Reply-To: <00a201c632e3$8e069980$c801a8c0@odin> Message-ID: Hi, i second this question. It could be useful to use mirrors for this kind of documentation, I've some web space to spare, if it can help. Best regards, Laurent From lichte at ICBM.DE Thu Feb 16 03:44:02 2006 From: lichte at ICBM.DE (Oliver Lichte) Date: Thu, 16 Feb 2006 12:44:02 +0100 Subject: imgObj2java.awt.image Message-ID: Hello, I'd like to convert imageObj to java.awt.image. Is it possible to get direct pixel access via Java mapserver-API or must I always create a temporary file to share the image? What is the content of the byte-array returned by method getByte()? Regards, Oliver From jorn at SPACETEC.NO Thu Feb 16 06:09:18 2006 From: jorn at SPACETEC.NO (=?iso-8859-1?q?J=F8rn_Vegard_R=F8snes?=) Date: Thu, 16 Feb 2006 15:09:18 +0100 Subject: Virtual Globe configuring In-Reply-To: <43F4471D.8040606@fielax.de> Message-ID: Rune Aasgaard sent me this link for distribution here: http://globe.sintef.no/documentation/configuring.html cheers J?rn On Thursday 16 February 2006 10:34, Sebastian Albrecht wrote: > Hello again, > > relating to the discussion about Virtual Globe yesterday I wrote Rune > Aasgaard how to configure external WMS servers into Virtual Globe. > > Below is what he replied. > > Best regards > > Sebastian > > > > -------- Original Message -------- > Subject: Re: Virtual Globe and personal WMS servers > Date: Wed, 15 Feb 2006 15:03:52 +0100 > From: Rune Aasgaard > Organization: SINTEF > To: Sebastian Albrecht > References: <43F327FA.2060803 at fielax.de> > > > If we start with the common "Start Globe" URL... > > http://globe.sintef.no/VirtualGlobeStarter.cgi?name=Europe&dataset=http://g >lobe.sintef.no/globe.vgml&viewpoint=4.787607927703958,27.52509436526137,3178 >271.6469249073,0.39637688320507086,-60.09160309417106 > > ... you'll find a referencee to a "dataset" (the globe.vgml file). > Download that file and save it to your disk. Or, alternatively, download > the commented version: > > http://globe.sintef.no/globe-commented.vgml > > Open it in your favorite text editor and try to add a WMS following the > pattern of the ones in the configuration file (you'll get some hints in > the commented version). The WMS server must be visible from the Globe > server, as all WMS images are forst downloaded to the globe server, > transformed, converted and cached there (so that when somebody has visited > a WMS map it is readily accessible for others also), and then sent to the > client. > > The .vgml file only needs to be visible from your globe client. > > Try this and report success/failure to me! From m.esposito at SOFTEC-SRL.COM Thu Feb 16 06:45:39 2006 From: m.esposito at SOFTEC-SRL.COM (Maurizio Esposito) Date: Thu, 16 Feb 2006 08:45:39 -0600 Subject: Variable Substitution in Postgis Query Message-ID: Ciao Umberto hi list this is the query where substitution doesn't work: DATA "the_geom from buildings" FILTER "buildings.pk_id NOT IN (SELECT feat_id FROM feat_vis WHERE feat_vis.ruolo='%ruolo%' AND feat_vis.layer='buildings')" The table feat_vis is used as an exclusion list with the following attributes: ruolo layer feat_id and if I substitute %ruolo% with a string value, i.e. 'technician' the query works fine Thank you Maurizio From punkish at EIDESIS.ORG Thu Feb 16 06:46:07 2006 From: punkish at EIDESIS.ORG (Puneet Kishor) Date: Thu, 16 Feb 2006 08:46:07 -0600 Subject: Variable Substitution in Postgis Query In-Reply-To: Message-ID: On Feb 16, 2006, at 8:45 AM, Maurizio Esposito wrote: > Ciao Umberto > hi list > this is the query where substitution doesn't work: > > DATA "the_geom from buildings" > FILTER "buildings.pk_id NOT IN (SELECT feat_id FROM feat_vis WHERE > feat_vis.ruolo='%ruolo%' AND feat_vis.layer='buildings')" > > The table feat_vis is used as an exclusion list with the following > attributes: > ruolo > layer > feat_id > > and if I substitute %ruolo% with a string value, i.e. 'technician' the > query works fine when using %..%, you have to use LIKE. Try SELECT feat_id FROM feat_vis WHERE feat_vis.ruolo LIKE '%ruolo%' AND feat_vis.layer = 'buildings' -- Puneet Kishor From stefan.schwarzer at GRID.UNEP.CH Thu Feb 16 06:54:15 2006 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Thu, 16 Feb 2006 15:54:15 +0100 Subject: Strange dl("php_mapscript.so") behavior Message-ID: Hi, I ran into a very strange thing: I run the usual code to get the mapscript library: if (PHP_OS == "WINNT" || PHP_OS == "WIN32") dl("php_mapscript_44.dll"); else dl("php_mapscript.so"); If my php code is correct, everything displays nicely. But once something is not correct - a semicolon missing, a bad syntax, etc. - the page stays white. As soon as I take the four lines of code away (especially the last one), it displays the error messages. But this is bad, cause then all my mapscript-related stuff won't work anymore... Does anyone have an idea why this is? Thanks for any hints, Stef PS: Just for the notes: I am running a Mac, with the kyngchaos installation packages. From shsavage at ASU.EDU Thu Feb 16 07:30:31 2006 From: shsavage at ASU.EDU (Stephen H. Savage) Date: Thu, 16 Feb 2006 08:30:31 -0700 Subject: No subject Message-ID: Greetings, I'm new to MapServer. I would like to know how to add/edit shapefiles through MapServer. Is there a way to do this? Are there examples available? Thanks, -Steve Stephen H. Savage, Affiliate Professor and Director Geo-Archaeological Information Applications (GAIA) Lab School of Human Evolution and Social Change Box 872402 Arizona State University Tempe, AZ 85287-2402 shsavage at asu.edu http://gaialab.asu.edu/home - The GAIA Lab's home page http://archaeology.asu.edu/Jordan - Personal home page From woklist at KYNGCHAOS.COM Thu Feb 16 07:42:11 2006 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Thu, 16 Feb 2006 09:42:11 -0600 Subject: Strange dl("php_mapscript.so") behavior In-Reply-To: <5F33BF41-459A-451B-AF25-C988C4A02AB9@grid.unep.ch> Message-ID: Stefan, fancy seeing you over here... Does it work with just the dl("php_mapscript.so"); line? Since they're my Mac packages, I just want to make nothing is wrong there. I can't remember off the top of my head if PHP can handle single statements in if clauses without brackets. Just to be sure, try (or whatever your style is with bracket placement): if (PHP_OS == "WINNT" || PHP_OS == "WIN32") { dl("php_mapscript_44.dll"); } else { dl("php_mapscript.so"); } Also, check the Apache and console/system logs for possible error messages that don't don't get displayed. On Feb 16, 2006, at 8:54 AM, Stefan Schwarzer wrote: > Hi, > > I ran into a very strange thing: > > I run the usual code to get the mapscript library: > > if (PHP_OS == "WINNT" || PHP_OS == "WIN32") > dl("php_mapscript_44.dll"); > else > dl("php_mapscript.so"); > > > If my php code is correct, everything displays nicely. But once > something is not correct - a semicolon missing, a bad syntax, etc. > - the page stays white. As soon as I take the four lines of code > away (especially the last one), it displays the error messages. But > this is bad, cause then all my mapscript-related stuff won't work > anymore... > > Does anyone have an idea why this is? > > Thanks for any hints, > > Stef > > PS: Just for the notes: I am running a Mac, with the kyngchaos > installation packages. ----- William Kyngesburye http://www.kyngchaos.com/ All generalizations are dangerous, even this one. From shsavage at ASU.EDU Thu Feb 16 07:51:58 2006 From: shsavage at ASU.EDU (Stephen H. Savage) Date: Thu, 16 Feb 2006 08:51:58 -0700 Subject: Shapefile support in MapServer? Message-ID: Greetings, I'm new to MapServer. I have a large database application that must rely on shapefiles for its geographic data; these are connected to an extensive Access (soon to be MySQL) database, with a lot of one-to-many relationships among data items. I have to use the shapefile format to facilitate an ArcPad application running on Trimble GPS units. But I need to also allow web users to add or change records in the database and shapefiles. I'd like to know how to add/edit shapes and attributes in ArcView shapefiles through MapServer. Is there a way to do this? Are there examples available? Thanks, -Steve Stephen H. Savage, Affiliate Professor and Director Geo-Archaeological Information Applications (GAIA) Lab School of Human Evolution and Social Change Box 872402 Arizona State University Tempe, AZ 85287-2402 shsavage at asu.edu http://gaialab.asu.edu/home - The GAIA Lab's home page http://archaeology.asu.edu/Jordan - Personal home page From osgis.lists at GMAIL.COM Thu Feb 16 07:57:42 2006 From: osgis.lists at GMAIL.COM (David Bitner) Date: Thu, 16 Feb 2006 09:57:42 -0600 Subject: Variable Substitution in Postgis Query In-Reply-To: Message-ID: In your data definition, try: data "the_geom from (select * from buildings where buildings.pk_id NOT IN (SELECT feat_id FROM feat_vis WHERE feat_vis.ruolo='%ruolo%' AND feat_vis.layer='buildings')) using unique oid using srid=-1" Make sure to substitute in your actual srid and a unique id where I've put oid. Also, if this doesn't work, send us the output from the error page that you get from mapserver. In that error page there will be a whole section that includes the actual query that was used against PostGIS that includes the variable substitution. David On 2/16/06, Maurizio Esposito wrote: > Ciao Umberto > hi list > this is the query where substitution doesn't work: > > DATA "the_geom from buildings" > FILTER "buildings.pk_id NOT IN (SELECT feat_id FROM feat_vis WHERE > feat_vis.ruolo='%ruolo%' AND feat_vis.layer='buildings')" > > The table feat_vis is used as an exclusion list with the following > attributes: > ruolo > layer > feat_id > > and if I substitute %ruolo% with a string value, i.e. 'technician' the > query works fine > > Thank you > > Maurizio > From stefan.schwarzer at GRID.UNEP.CH Thu Feb 16 08:09:50 2006 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Thu, 16 Feb 2006 17:09:50 +0100 Subject: Strange dl("php_mapscript.so") behavior In-Reply-To: <4EB8FAFB-9622-4D58-B252-0F2AAB4B5F04@kyngchaos.com> Message-ID: Hi William, happy that I was that my database was with your help up-and-running again, I attacked my postgres plus now postgis conversion. And whoops,... no more map display. I am shocked!! :-) Ok, I tried it with only dl("php_mapscript.so"); But in vain. Still same result. Nothing displays. Not even a simple echo. The apache and sys log don't give any results either. Once I had a "LOG: unexpected EOF on client connection" displayed, but it disappeared suddenly... Gush, what is this magic, that makes disappear everything on my page?!?! Stef > Stefan, fancy seeing you over here... > > Does it work with just the dl("php_mapscript.so"); line? Since > they're my Mac packages, I just want to make nothing is wrong there. > > I can't remember off the top of my head if PHP can handle single > statements in if clauses without brackets. Just to be sure, try > (or whatever your style is with bracket placement): > > if (PHP_OS == "WINNT" || PHP_OS == "WIN32") { > dl("php_mapscript_44.dll"); > } else { > dl("php_mapscript.so"); > } > > Also, check the Apache and console/system logs for possible error > messages that don't don't get displayed. > > On Feb 16, 2006, at 8:54 AM, Stefan Schwarzer wrote: > >> Hi, >> >> I ran into a very strange thing: >> >> I run the usual code to get the mapscript library: >> >> if (PHP_OS == "WINNT" || PHP_OS == "WIN32") >> dl("php_mapscript_44.dll"); >> else >> dl("php_mapscript.so"); >> >> >> If my php code is correct, everything displays nicely. But once >> something is not correct - a semicolon missing, a bad syntax, etc. >> - the page stays white. As soon as I take the four lines of code >> away (especially the last one), it displays the error messages. >> But this is bad, cause then all my mapscript-related stuff won't >> work anymore... >> >> Does anyone have an idea why this is? >> >> Thanks for any hints, >> >> Stef >> >> PS: Just for the notes: I am running a Mac, with the kyngchaos >> installation packages. > > ----- > William Kyngesburye > http://www.kyngchaos.com/ > > All generalizations are dangerous, even this one. From woklist at KYNGCHAOS.COM Thu Feb 16 08:33:35 2006 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Thu, 16 Feb 2006 10:33:35 -0600 Subject: Strange dl("php_mapscript.so") behavior In-Reply-To: <1CF87E64-3D6B-4DC9-84E7-97AC85797041@grid.unep.ch> Message-ID: does the testphp.php work? (loads mapscript and calls phpinfo) I've had mysterious issues like this in the past. One correct line causes the whole thing to implode and disappear. Yet the problem turns out to be somewhere else. I've cleaned up code a bit and that helps. Let's see if I can remember... I hope we're not getting too far off topic here. The main thing I've found that tends to kill PHP is continuing lines. Like when you concatenate strings together (these are separate lines): $z = 'part of a string' . $somevariable . 'some more'; I think this is correct PHP, PHP is supposed to keep going across line breaks until it find the semicolon to close the statement, and it works most of the time, but sometimes it's enough to kill PHP. If you need to break lines to make it more readable, close the statement and start again on the next line: $z = 'part of a string' . $somevariable; $z .= 'some more'; On Feb 16, 2006, at 10:09 AM, Stefan Schwarzer wrote: > Hi William, > > happy that I was that my database was with your help up-and-running > again, I attacked my postgres plus now postgis conversion. And > whoops,... no more map display. I am shocked!! :-) > > Ok, I tried it with only > > dl("php_mapscript.so"); > > But in vain. Still same result. Nothing displays. Not even a simple > echo. > > The apache and sys log don't give any results either. Once I had a > "LOG: unexpected EOF on client connection" displayed, but it > disappeared suddenly... > > Gush, what is this magic, that makes disappear everything on my > page?!?! > > Stef > ----- William Kyngesburye http://www.kyngchaos.com/ "I ache, therefore I am. Or in my case - I am, therefore I ache." - Marvin From stefan.schwarzer at GRID.UNEP.CH Thu Feb 16 08:49:16 2006 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Thu, 16 Feb 2006 17:49:16 +0100 Subject: Strange dl("php_mapscript.so") behavior In-Reply-To: <746FD79B-077C-4491-A617-457C8C006308@kyngchaos.com> Message-ID: No, it's not PHP. It's related with Mapserver. Actually, I have only updated the gislibs and postgres with your packages. So, stupid me, I haven't controlled the testphp.php - so there seems to be the problem. I will update now all packages with your latest ones.... and hopefully this helps! Stef > does the testphp.php work? (loads mapscript and calls phpinfo) > > I've had mysterious issues like this in the past. One correct line > causes the whole thing to implode and disappear. Yet the problem > turns out to be somewhere else. I've cleaned up code a bit and > that helps. Let's see if I can remember... > > I hope we're not getting too far off topic here. > > The main thing I've found that tends to kill PHP is continuing > lines. Like when you concatenate strings together (these are > separate lines): > > $z = 'part of a string' . $somevariable . > 'some more'; > > I think this is correct PHP, PHP is supposed to keep going across > line breaks until it find the semicolon to close the statement, and > it works most of the time, but sometimes it's enough to kill PHP. > If you need to break lines to make it more readable, close the > statement and start again on the next line: > > $z = 'part of a string' . $somevariable; > $z .= 'some more'; > > On Feb 16, 2006, at 10:09 AM, Stefan Schwarzer wrote: > >> Hi William, >> >> happy that I was that my database was with your help up-and- >> running again, I attacked my postgres plus now postgis conversion. >> And whoops,... no more map display. I am shocked!! :-) >> >> Ok, I tried it with only >> >> dl("php_mapscript.so"); >> >> But in vain. Still same result. Nothing displays. Not even a >> simple echo. >> >> The apache and sys log don't give any results either. Once I had a >> "LOG: unexpected EOF on client connection" displayed, but it >> disappeared suddenly... >> >> Gush, what is this magic, that makes disappear everything on my >> page?!?! >> >> Stef >> > > ----- > William Kyngesburye > http://www.kyngchaos.com/ > > "I ache, therefore I am. Or in my case - I am, therefore I ache." > > - Marvin From fabio.dovidio at PLANETEK.IT Thu Feb 16 08:51:40 2006 From: fabio.dovidio at PLANETEK.IT (Fabio D' Ovidio) Date: Thu, 16 Feb 2006 17:51:40 +0100 Subject: GD LIBRARY Message-ID: Dear list, I want to compile GD library on windows 2000. The zip package has only the DLL and a .bat file to convert the dll in lib for mapserver. I'd like to compile GD from source (because I have to use a different compiler and linker) so I need the source files for Windows and \ or a makefile. How can I do ? Thank u Fabio D'Ovidio Planetek Italia Srl via Massaua 12, Bari -70123 Italy e-mail : dovidio at planetek.it http://www.planetek.it -------------- next part -------------- An HTML attachment was scrubbed... URL: From tkirstine at JDBARNES.COM Thu Feb 16 09:18:42 2006 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Thu, 16 Feb 2006 12:18:42 -0500 Subject: Mapserver was and ArcGIS 9.0 Message-ID: I have been trying to set up a wms and testing it in ArcGIS, in general everything works fine but I have some inconsistencies in that I can't figure out. First, the min and max scales defined in the mapfile layer object is not consistent with the min and max scale values in ArcGIS My mapfile: #local 2 test LAYER DATA umap_display_data/orn_local_label NAME "local_label" METADATA "WMS_TITLE" "ORN Test Local Labels" "WMS_ABSTRACT" "ORN Local Labels" "WMS_EXTENT" "523500 4716500 810000 5002600" "WMS_SRS" "epsg:26917" END GROUP "Road Labels" TYPE ANNOTATION STATUS OFF MAXSCALE 100000 MINSCALE 500 LABELMAXSCALE 100000 LABELMINSCALE 500 LABELITEM "A_ST_NAME" CLASS LABEL COLOR 145 15 25 OUTLINECOLOR 253 253 253 TYPE truetype FONT arial SIZE 8 ANGLE Auto POSITION cc MINDISTANCE 500 BUFFER 5 END END END When this is displayed in ArcGIS the minscale values turn to 667 and max values turn to 133,333. I thought this could be a projection issue but all my data is in a zone 17n utm nad 83 projection. The other issue I am having is layer status. I believe the status is defined client side and by default on. When I add the wms to ArcGIS some layers have their status on some have status off with no correlation to what is defined in the mapfile. I've attached a copy of my .map, any help would be much appreciated Travis Kirstine From tkirstine at JDBARNES.COM Thu Feb 16 09:45:24 2006 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Thu, 16 Feb 2006 12:45:24 -0500 Subject: Mapserver wms ArcGIS Message-ID: I have been trying to set up a wms and testing it in ArcGIS, in general everything works fine but I have some inconsistencies in that I can't figure out. First, the min and max scales defined in the mapfile layer object is not consistent with the min and max scale values in ArcGIS My mapfile: #local 2 test LAYER DATA umap_display_data/orn_local_label NAME "local_label" METADATA "WMS_TITLE" "ORN Test Local Labels" "WMS_ABSTRACT" "ORN Local Labels" "WMS_EXTENT" "523500 4716500 810000 5002600" "WMS_SRS" "epsg:26917" END GROUP "Road Labels" TYPE ANNOTATION STATUS OFF MAXSCALE 100000 MINSCALE 500 LABELMAXSCALE 100000 LABELMINSCALE 500 LABELITEM "A_ST_NAME" CLASS LABEL COLOR 145 15 25 OUTLINECOLOR 253 253 253 TYPE truetype FONT arial SIZE 8 ANGLE Auto POSITION cc MINDISTANCE 500 BUFFER 5 END END END When this is displayed in ArcGIS the minscale values turn to 667 and max values turn to 133,333. I thought this could be a projection issue but all my data is in a zone 17n utm nad 83 projection. The other issue I am having is layer status. I believe the status is defined client side and by default on. When I add the wms to ArcGIS some layers have their status on some have status off with no correlation to what is defined in the mapfile. I've attached a copy of my .map, any help would be much appreciated Travis Kirstine -------------- next part -------------- A non-text attachment was scrubbed... Name: sample.map Type: application/octet-stream Size: 35008 bytes Desc: not available URL: From tkirstine at JDBARNES.COM Thu Feb 16 10:14:06 2006 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Thu, 16 Feb 2006 13:14:06 -0500 Subject: uMap, new site powered by MapServer Message-ID: If anyone is interested check out http://www.umap.ca/ You will have to register for a 7 day trial Thanks to everyone who helped out Travis From work at XWB.COM Thu Feb 16 10:55:46 2006 From: work at XWB.COM (Chip Taylor) Date: Thu, 16 Feb 2006 10:55:46 -0800 Subject: Problem drawing lines In-Reply-To: Message-ID: I have a map file that is supposed to draw streets from a shapefile. Of course, the shape file has many segments per street. Mapserver 4.6 renders the streets with gaps in the continuity of the line. The same shapefile displayed in ArcMap shows no gaps. Can you tell me what is the problem? Here is the mapfile: # This is the Washington State map file NAME "wamap" UNITS DD EXTENT -127.00 43.00 -115.00 50.00 SIZE 475 475 IMAGECOLOR 189 202 222 IMAGETYPE GIF SHAPEPATH "../Shape_Files" FONTSET "../fontset.txt" ##################################### # Symbol for drawing cartolines # SYMBOL NAME "cartoline" TYPE cartoline LINECAP butt LINEJOIN miter LINEJOINMAXSIZE 1 END ##################################### # Web object # WEB TEMPLATE "../HTML_Files/sitemap.html" IMAGEPATH 'd:/wwwroot/tmp/' IMAGEURL "/tmp/" END ##################################### # Washington State Road layer - Local Roads (test) # LAYER NAME "testRoads" DATA "US_States/Washington/Roads/CountyRoads" status default TYPE line CLASS NAME "Interstate Hwy" STYLE SYMBOL "cartoline" SIZE 3 COLOR 241 151 91 END END END END # mapfile From condit at SDSC.EDU Thu Feb 16 12:06:41 2006 From: condit at SDSC.EDU (Christopher Condit) Date: Thu, 16 Feb 2006 12:06:41 -0800 Subject: Polar reprojection (again) Message-ID: I asked about this a while ago - but got nothing. I'm trying again... Anyone know about this?? I've got a mapfile that draws perfectly in epsg:4326 - with both raster and vector data (also in epsg:4326). Under certain application conditions, I need to re-project the map into a polar view. To do this I change projection string to PROJECTION "proj=laea" "lat_0=-90" END This works very well for all of my vector data, but none of my raster data appears. The raster data is in AAI/Grid format. Will this raster format not re-project? Should I use a different projection string? Thanks! Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From cplist at EARTHLINK.NET Thu Feb 16 12:18:00 2006 From: cplist at EARTHLINK.NET (Charlton Purvis) Date: Thu, 16 Feb 2006 15:18:00 -0500 Subject: Polar reprojection (again) In-Reply-To: <845AADAC1106E44996327D62097E4C6B86015B@et.ad.sdsc.edu> Message-ID: > Under certain application conditions, I need to re-project the map into a > polar view. To do this I change projection string to > > PROJECTION > > "proj=laea" > > "lat_0=-90" > > END > > This works very well for all of my vector data, but none of my raster data > appears. The raster data is in AAI/Grid format. Will this raster format > not re-project? Should I use a different projection string? What does the PROJECTION of your RASTER LAYER look like? It needs to match whatever PROJECTION your raster data is in. MAP PROJECTION "proj=laea" "lat_0=-90" END LAYER TYPE RASTER PROJECTION ??? END END END From bpicinbono at WORLDONLINE.FR Thu Feb 16 12:20:10 2006 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Thu, 16 Feb 2006 21:20:10 +0100 Subject: Problem drawing lines In-Reply-To: <000e01c6332a$991c0070$0601a8c0@DevChip> Message-ID: On Thursday 16 February 2006 19:55, Chip Taylor wrote: > I have a map file that is supposed to draw streets from a shapefile. Of > course, the shape file has many segments per street. Mapserver 4.6 renders > the streets with gaps in the continuity of the line. The same shapefile > displayed in ArcMap shows no gaps. Can you tell me what is the problem? > Here is the mapfile: > > # This is the Washington State map file > NAME "wamap" > UNITS DD > EXTENT -127.00 43.00 -115.00 50.00 > SIZE 475 475 > IMAGECOLOR 189 202 222 > IMAGETYPE GIF > > SHAPEPATH "../Shape_Files" > FONTSET "../fontset.txt" > > ##################################### > # Symbol for drawing cartolines > # > SYMBOL > NAME "cartoline" > TYPE cartoline > LINECAP butt > LINEJOIN miter > LINEJOINMAXSIZE 1 > END > > ##################################### > # Web object > # > WEB > TEMPLATE "../HTML_Files/sitemap.html" > > IMAGEPATH 'd:/wwwroot/tmp/' > IMAGEURL "/tmp/" > END > > ##################################### > # Washington State Road layer - Local Roads (test) > # > LAYER > NAME "testRoads" > DATA "US_States/Washington/Roads/CountyRoads" > status default > TYPE line > CLASS > NAME "Interstate Hwy" > STYLE > SYMBOL "cartoline" > SIZE 3 > COLOR 241 151 91 > END > END > END > > END # mapfile Perhaps because of your symbol definition ? What does it display with SYMBOL 0 or SYMBOL 1 ## (or more) (to use the default point symbol) ? Blaise From work at XWB.COM Thu Feb 16 12:31:49 2006 From: work at XWB.COM (Chip Taylor) Date: Thu, 16 Feb 2006 12:31:49 -0800 Subject: Problem drawing lines In-Reply-To: <200602162120.10521.bpicinbono@worldonline.fr> Message-ID: It displays the same no matter what symbol (or no symbol at all) that I specify. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of blaise Sent: Thursday, February 16, 2006 12:20 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Problem drawing lines Perhaps because of your symbol definition ? What does it display with SYMBOL 0 or SYMBOL 1 ## (or more) (to use the default point symbol) ? Blaise From tkirstine at JDBARNES.COM Thu Feb 16 12:43:20 2006 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Thu, 16 Feb 2006 15:43:20 -0500 Subject: uMap, new site powered by MapServer In-Reply-To: <7813E742-B987-4AAB-9532-8A2DD2624C6C@refractions.net> Message-ID: Sorry, Currently only work with IE -----Original Message----- From: Paul Ramsey [mailto:pramsey at refractions.net] Sent: Thursday, February 16, 2006 3:34 PM To: Travis Kirstine GIS Tech Subject: Re: [UMN_MAPSERVER-USERS] uMap, new site powered by MapServer Tested only with IE I assume? Neither Safari nor Firefox renders the frontpage very nicely... P On 16-Feb-06, at 10:14 AM, Travis Kirstine GIS Tech wrote: > If anyone is interested check out http://www.umap.ca/ > You will have to register for a 7 day trial > Thanks to everyone who helped out > > Travis From condit at SDSC.EDU Thu Feb 16 12:43:49 2006 From: condit at SDSC.EDU (Christopher Condit) Date: Thu, 16 Feb 2006 12:43:49 -0800 Subject: Polar reprojection (again) Message-ID: All my data is epsg:4326 Each layer has: PROJECTION "init=epsg:4326" END I want proj.4 to re-project this on the fly to a polar view, but it only works for vector data. > >What does the PROJECTION of your RASTER LAYER look like? It needs to match >whatever PROJECTION your raster data is in. >MAP > PROJECTION > "proj=laea" > "lat_0=-90" > END > LAYER > TYPE RASTER > PROJECTION > ??? > END > END >END -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Charlton Purvis Sent: Thursday, February 16, 2006 12:18 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Polar reprojection (again) > Under certain application conditions, I need to re-project the map into a > polar view. To do this I change projection string to > > PROJECTION > > "proj=laea" > > "lat_0=-90" > > END > > This works very well for all of my vector data, but none of my raster data > appears. The raster data is in AAI/Grid format. Will this raster format > not re-project? Should I use a different projection string? From ed at TOPOZONE.COM Thu Feb 16 13:06:55 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 16 Feb 2006 16:06:55 -0500 Subject: Polar reprojection (again) Message-ID: What is the file format and geographic extent of the raster image you're trying to reproject? Raster data in "lat/lon" projection (EPSG:4326) in polar regions is rather badly distorted if not undefined or infinite in extent. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Condit Sent: Thursday, February 16, 2006 3:44 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Polar reprojection (again) All my data is epsg:4326 Each layer has: PROJECTION "init=epsg:4326" END I want proj.4 to re-project this on the fly to a polar view, but it only works for vector data. > >What does the PROJECTION of your RASTER LAYER look like? It needs to match >whatever PROJECTION your raster data is in. >MAP > PROJECTION > "proj=laea" > "lat_0=-90" > END > LAYER > TYPE RASTER > PROJECTION > ??? > END > END >END -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Charlton Purvis Sent: Thursday, February 16, 2006 12:18 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Polar reprojection (again) > Under certain application conditions, I need to re-project the map into a > polar view. To do this I change projection string to > > PROJECTION > > "proj=laea" > > "lat_0=-90" > > END > > This works very well for all of my vector data, but none of my raster data > appears. The raster data is in AAI/Grid format. Will this raster format > not re-project? Should I use a different projection string? From condit at SDSC.EDU Thu Feb 16 13:10:13 2006 From: condit at SDSC.EDU (Christopher Condit) Date: Thu, 16 Feb 2006 13:10:13 -0800 Subject: Polar reprojection (again) Message-ID: The file is AAI/Grid. It runs -180 to 180 and -90 to 90. Will this be possible? -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: Thursday, February 16, 2006 1:07 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Polar reprojection (again) What is the file format and geographic extent of the raster image you're trying to reproject? Raster data in "lat/lon" projection (EPSG:4326) in polar regions is rather badly distorted if not undefined or infinite in extent. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Condit Sent: Thursday, February 16, 2006 3:44 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Polar reprojection (again) All my data is epsg:4326 Each layer has: PROJECTION "init=epsg:4326" END I want proj.4 to re-project this on the fly to a polar view, but it only works for vector data. > >What does the PROJECTION of your RASTER LAYER look like? It needs to match >whatever PROJECTION your raster data is in. >MAP > PROJECTION > "proj=laea" > "lat_0=-90" > END > LAYER > TYPE RASTER > PROJECTION > ??? > END > END >END -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Charlton Purvis Sent: Thursday, February 16, 2006 12:18 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Polar reprojection (again) > Under certain application conditions, I need to re-project the map into a > polar view. To do this I change projection string to > > PROJECTION > > "proj=laea" > > "lat_0=-90" > > END > > This works very well for all of my vector data, but none of my raster data > appears. The raster data is in AAI/Grid format. Will this raster format > not re-project? Should I use a different projection string? From warmerdam at POBOX.COM Thu Feb 16 13:09:03 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 16 Feb 2006 16:09:03 -0500 Subject: Polar reprojection (again) In-Reply-To: <845AADAC1106E44996327D62097E4C6B86015B@et.ad.sdsc.edu> Message-ID: Christopher Condit wrote: > I asked about this a while ago ? but got nothing. I?m trying again? > Anyone know about this?? > > > > I?ve got a mapfile that draws perfectly in epsg:4326 ? with both raster > and vector data (also in epsg:4326). > > Under certain application conditions, I need to re-project the map into > a polar view. To do this I change projection string to > > PROJECTION > > "proj=laea" > > "lat_0=-90" > > END > > This works very well for all of my vector data, but none of my raster > data appears. The raster data is in AAI/Grid format. Will this raster > format not re-project? Should I use a different projection string? Chris, The problem isn't the projection string or the specific raster file format. It presumably relates to messy issues with polar reprojection and raster i general. Can you bundle up a sample map and data that I can use to reproduce your problem? I may be able to provide advice or fix things up a bit. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From szekeres.tamas at FREEMAIL.HU Thu Feb 16 13:36:06 2006 From: szekeres.tamas at FREEMAIL.HU (Tamas Szekeres) Date: Thu, 16 Feb 2006 15:36:06 -0600 Subject: MapScript SetSymbolSet Message-ID: You should save the symbolset before saving the map see http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1670 for more details Tamas On Wed, 15 Feb 2006 16:45:57 -0800, Christopher Condit wrote: >Argh - the map instance keeps this and works fine, but refuses to write >it out to the map file: > >symbolObj circle = new symbolObj("circle", null); >circle.type = (int)MS_SYMBOL_TYPE.MS_SYMBOL_ELLIPSE; >circle.filled = mapscript.MS_TRUE; >lineObj line = new lineObj(); >line.add(new pointObj(1, 1, 0, 0)); >circle.sizex = 1; >circle.sizey = 1; >map.symbolset.appendSymbol(circle); > >later I use: > >sty.symbol = map.symbolset.index("circle"); > >which works fine - sets the index properly. No symbols get written to >the mapfile, however. Is there something special I need to do to get >the symbols to write out? > >Thanks, > >Chris > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >Behalf Of Sean Gillies >Sent: Wednesday, February 15, 2006 4:16 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] MapScript SetSymbolSet > >Oh, I see. Yeah, it's possible. Here's an example from one of my >Python projects: > > circle = mapscript.symbolObj('circle') > circle.type = mapscript.MS_SYMBOL_ELLIPSE > circle.filled = mapscript.MS_TRUE > line = mapscript.lineObj() > line.add(mapscript.pointObj(1,1)) > circle.setPoints(line) > circle.sizex = 1 > circle.sizey = 1 > mo.symbolset.appendSymbol(circle) > >The "mo" name is bound to a mapObj. It's very important to get sizex >and sizey right, should be the width and height of the symbol in the >same units as the point and line coordinates used to construct the >symbol. > >To use this symbol > > style.symbol = mo.symbolset.index('circle') > >Translate this into C# and you should be good to go. > >cheers, >Sean > >On Feb 15, 2006, at 5:03 PM, Christopher Condit wrote: > >> Hi Sean- >> Is there a way to accomplish this with MapScript? All I see is a >> way to >> set the symbolset. >> >> Thanks, >> >> Chris >> >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER- >> USERS at LISTS.UMN.EDU] On >> Behalf Of Sean Gillies >> Sent: Wednesday, February 15, 2006 3:58 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] MapScript SetSymbolSet >> >> On Feb 15, 2006, at 3:19 PM, Christopher Condit wrote: >> >>> Hi Julien- >>> Thanks for your response. Here are the contents of the symbol file: >>> SYMBOLSET >>> SYMBOL >>> NAME 'circle' >>> TYPE ELLIPSE >>> POINTS 1 1 END >>> FILLED TRUE >>> END >>> END >>> >>> The problem I'm having is intermittent and I can't reliably reproduce >>> it. My only thought was that for some reason mapscript couldn't read >>> the file. Is there any way to embed these symbols directly in the >>> mapfile instead of referencing the symbolset file? >>> >>> Thanks, >>> >>> Chris >> >> Yes, just add any SYMBOL block as a child of the top-level map. >> >> Sean >> > >--- >Sean Gillies >sgillies at frii dot com >http://zcologia.com/news From condit at SDSC.EDU Thu Feb 16 13:47:32 2006 From: condit at SDSC.EDU (Christopher Condit) Date: Thu, 16 Feb 2006 13:47:32 -0800 Subject: MapScript SetSymbolSet Message-ID: But then I'll have an extra file lying around. The original problem was that I wanted to use the same symbol set for every user session. I don't know why that failed. But now I've got it working - I hacked mapserver so that symbols always gets inMapFile set TRUE. This solves my problem for now. I guess I should add a check to see if symbolsetname is null. If not, then write to mapfile, otherwise write to symbolfile. Or I guess you should be able to have both! Symbols in the mapfile and external symbols... -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Tamas Szekeres Sent: Thursday, February 16, 2006 1:36 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] MapScript SetSymbolSet You should save the symbolset before saving the map see http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1670 for more details Tamas On Wed, 15 Feb 2006 16:45:57 -0800, Christopher Condit wrote: >Argh - the map instance keeps this and works fine, but refuses to write >it out to the map file: > >symbolObj circle = new symbolObj("circle", null); >circle.type = (int)MS_SYMBOL_TYPE.MS_SYMBOL_ELLIPSE; >circle.filled = mapscript.MS_TRUE; >lineObj line = new lineObj(); >line.add(new pointObj(1, 1, 0, 0)); >circle.sizex = 1; >circle.sizey = 1; >map.symbolset.appendSymbol(circle); > >later I use: > >sty.symbol = map.symbolset.index("circle"); > >which works fine - sets the index properly. No symbols get written to >the mapfile, however. Is there something special I need to do to get >the symbols to write out? > >Thanks, > >Chris > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >Behalf Of Sean Gillies >Sent: Wednesday, February 15, 2006 4:16 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] MapScript SetSymbolSet > >Oh, I see. Yeah, it's possible. Here's an example from one of my >Python projects: > > circle = mapscript.symbolObj('circle') > circle.type = mapscript.MS_SYMBOL_ELLIPSE > circle.filled = mapscript.MS_TRUE > line = mapscript.lineObj() > line.add(mapscript.pointObj(1,1)) > circle.setPoints(line) > circle.sizex = 1 > circle.sizey = 1 > mo.symbolset.appendSymbol(circle) > >The "mo" name is bound to a mapObj. It's very important to get sizex >and sizey right, should be the width and height of the symbol in the >same units as the point and line coordinates used to construct the >symbol. > >To use this symbol > > style.symbol = mo.symbolset.index('circle') > >Translate this into C# and you should be good to go. > >cheers, >Sean > >On Feb 15, 2006, at 5:03 PM, Christopher Condit wrote: > >> Hi Sean- >> Is there a way to accomplish this with MapScript? All I see is a >> way to >> set the symbolset. >> >> Thanks, >> >> Chris >> >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER- >> USERS at LISTS.UMN.EDU] On >> Behalf Of Sean Gillies >> Sent: Wednesday, February 15, 2006 3:58 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] MapScript SetSymbolSet >> >> On Feb 15, 2006, at 3:19 PM, Christopher Condit wrote: >> >>> Hi Julien- >>> Thanks for your response. Here are the contents of the symbol file: >>> SYMBOLSET >>> SYMBOL >>> NAME 'circle' >>> TYPE ELLIPSE >>> POINTS 1 1 END >>> FILLED TRUE >>> END >>> END >>> >>> The problem I'm having is intermittent and I can't reliably reproduce >>> it. My only thought was that for some reason mapscript couldn't read >>> the file. Is there any way to embed these symbols directly in the >>> mapfile instead of referencing the symbolset file? >>> >>> Thanks, >>> >>> Chris >> >> Yes, just add any SYMBOL block as a child of the top-level map. >> >> Sean >> > >--- >Sean Gillies >sgillies at frii dot com >http://zcologia.com/news From banders at REFRACTIONS.NET Thu Feb 16 14:04:10 2006 From: banders at REFRACTIONS.NET (Brock Anderson) Date: Thu, 16 Feb 2006 14:04:10 -0800 Subject: WFS describeFeatureType In-Reply-To: Message-ID: Hi List, I am making WFS describeFeatureType requests to Mapserver 4.9 (from CVS this morning), but the response doesn't list any attributes. I think I have taken all the usual steps to enable WFS, including: - setting the LAYER's metadata "gml_include_items" to "all" - setting DUMP TRUE in the LAYER The same request and map file work against Mapserver 4.6 -- in that case the describeFeatureType response lists all the attributes. Has something changed in the new mapserver? What does it take to allow Mapserver to list the attributes? My LAYER definition is below. Thanks, Brock LAYER NAME 'CRIMS_CLAM_BEDS' CONNECTIONTYPE sde CONNECTION "..." DATA "..." CLASS NAME "Clam Beds" STYLE COLOR 255 165 0 OUTLINECOLOR 0 0 0 END #style END #class TYPE polygon STATUS ON PROJECTION "init=EPSG:3005" END #projection METADATA "wms_title" "Clam Beds" "wfs_title" "Clam Beds" "gml_include_items" "all" END #metadata DUMP TRUE TEMPLATE "bla" END #end layer From H.Viola at BOM.GOV.AU Thu Feb 16 14:35:30 2006 From: H.Viola at BOM.GOV.AU (Hester Jane Viola) Date: Fri, 17 Feb 2006 09:35:30 +1100 Subject: Mapserver wms ArcGIS Message-ID: Hi Travis, 1. I have found the same thing with min/max zoom scales when read into ArcGIS, ESRIs WMS client is full of bugs! Perhaps you could log an enhancement request with them (http://support.esri.com/) for future releases. (I have logged several and had no response, but the more people who request changes I guess, the more pressure they will feel to improve their product) 2. ArcGIS switches on the first 20 layers in your service by default and ignores any layers that MapServer considers default. Hope that helps -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Travis Kirstine GIS Tech Sent: Friday, 17 February 2006 4:45 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mapserver wms ArcGIS I have been trying to set up a wms and testing it in ArcGIS, in general everything works fine but I have some inconsistencies in that I can't figure out. First, the min and max scales defined in the mapfile layer object is not consistent with the min and max scale values in ArcGIS My mapfile: #local 2 test LAYER DATA umap_display_data/orn_local_label NAME "local_label" METADATA "WMS_TITLE" "ORN Test Local Labels" "WMS_ABSTRACT" "ORN Local Labels" "WMS_EXTENT" "523500 4716500 810000 5002600" "WMS_SRS" "epsg:26917" END GROUP "Road Labels" TYPE ANNOTATION STATUS OFF MAXSCALE 100000 MINSCALE 500 LABELMAXSCALE 100000 LABELMINSCALE 500 LABELITEM "A_ST_NAME" CLASS LABEL COLOR 145 15 25 OUTLINECOLOR 253 253 253 TYPE truetype FONT arial SIZE 8 ANGLE Auto POSITION cc MINDISTANCE 500 BUFFER 5 END END END When this is displayed in ArcGIS the minscale values turn to 667 and max values turn to 133,333. I thought this could be a projection issue but all my data is in a zone 17n utm nad 83 projection. The other issue I am having is layer status. I believe the status is defined client side and by default on. When I add the wms to ArcGIS some layers have their status on some have status off with no correlation to what is defined in the mapfile. I've attached a copy of my .map, any help would be much appreciated Travis Kirstine From ed at TOPOZONE.COM Thu Feb 16 14:37:19 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 16 Feb 2006 17:37:19 -0500 Subject: Polar reprojection (again) Message-ID: Sorry - you did mention the file format already. Frank's right about strange edge conditions with polar raster data, and it's best to provide him with the sample info he requested. - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Condit Sent: Thursday, February 16, 2006 4:10 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Polar reprojection (again) The file is AAI/Grid. It runs -180 to 180 and -90 to 90. Will this be possible? -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: Thursday, February 16, 2006 1:07 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Polar reprojection (again) What is the file format and geographic extent of the raster image you're trying to reproject? Raster data in "lat/lon" projection (EPSG:4326) in polar regions is rather badly distorted if not undefined or infinite in extent. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christopher Condit Sent: Thursday, February 16, 2006 3:44 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Polar reprojection (again) All my data is epsg:4326 Each layer has: PROJECTION "init=epsg:4326" END I want proj.4 to re-project this on the fly to a polar view, but it only works for vector data. > >What does the PROJECTION of your RASTER LAYER look like? It needs to match >whatever PROJECTION your raster data is in. >MAP > PROJECTION > "proj=laea" > "lat_0=-90" > END > LAYER > TYPE RASTER > PROJECTION > ??? > END > END >END -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Charlton Purvis Sent: Thursday, February 16, 2006 12:18 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Polar reprojection (again) > Under certain application conditions, I need to re-project the map into a > polar view. To do this I change projection string to > > PROJECTION > > "proj=laea" > > "lat_0=-90" > > END > > This works very well for all of my vector data, but none of my raster data > appears. The raster data is in AAI/Grid format. Will this raster format > not re-project? Should I use a different projection string? From ltrevino at GPOBSI.COM.MX Thu Feb 16 14:44:12 2006 From: ltrevino at GPOBSI.COM.MX (Luis Trevi=?ISO-8859-1?Q?=F1o?=) Date: Thu, 16 Feb 2006 16:44:12 -0600 Subject: Help with projection Message-ID: Hi list, some questions: I?m building an aplication that draws some GPS points over a map. this point are beeing updated on a postgis table. My data source is a shape file, this data needs to be adjusted about 180 meters on the latitude values (the data source was made with proj=utm and datum=NAD27). I've tried using diferent input projections in order to see if mapserver can adjust this data but I can?t get good results. My output projection is: PROJECTION "proj=utm" "ellps=WGS84" "datum=WGS84" END Could some projection help to adjust this 180 meters on the latitud? If I transfer my shape data to postgis using a specific SRID, would help? How can I build a specific SRID? regards, Luis From szekeres.tamas at FREEMAIL.HU Thu Feb 16 14:48:02 2006 From: szekeres.tamas at FREEMAIL.HU (Tamas Szekeres) Date: Thu, 16 Feb 2006 16:48:02 -0600 Subject: MapScript SetSymbolSet Message-ID: Have you compiled mapserver with thread support? On Thu, 16 Feb 2006 13:47:32 -0800, Christopher Condit wrote: >But then I'll have an extra file lying around. > >The original problem was that I wanted to use the same symbol set for >every user session. I don't know why that failed. But now I've got it >working - I hacked mapserver so that symbols always gets inMapFile set >TRUE. This solves my problem for now. I guess I should add a check to >see if symbolsetname is null. If not, then write to mapfile, otherwise >write to symbolfile. Or I guess you should be able to have both! >Symbols in the mapfile and external symbols... > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On >Behalf Of Tamas Szekeres >Sent: Thursday, February 16, 2006 1:36 PM >To: MAPSERVER-USERS at lists.umn.edu >Subject: Re: [UMN_MAPSERVER-USERS] MapScript SetSymbolSet > >You should save the symbolset before saving the map > >see > >http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1670 > >for more details > >Tamas > > >On Wed, 15 Feb 2006 16:45:57 -0800, Christopher Condit >wrote: > >>Argh - the map instance keeps this and works fine, but refuses to write >>it out to the map file: >> >>symbolObj circle = new symbolObj("circle", null); >>circle.type = (int)MS_SYMBOL_TYPE.MS_SYMBOL_ELLIPSE; >>circle.filled = mapscript.MS_TRUE; >>lineObj line = new lineObj(); >>line.add(new pointObj(1, 1, 0, 0)); >>circle.sizex = 1; >>circle.sizey = 1; >>map.symbolset.appendSymbol(circle); >> >>later I use: >> >>sty.symbol = map.symbolset.index("circle"); >> >>which works fine - sets the index properly. No symbols get written to >>the mapfile, however. Is there something special I need to do to get >>the symbols to write out? >> >>Thanks, >> >>Chris >> >>-----Original Message----- >>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >On >>Behalf Of Sean Gillies >>Sent: Wednesday, February 15, 2006 4:16 PM >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: Re: [UMN_MAPSERVER-USERS] MapScript SetSymbolSet >> >>Oh, I see. Yeah, it's possible. Here's an example from one of my >>Python projects: >> >> circle = mapscript.symbolObj('circle') >> circle.type = mapscript.MS_SYMBOL_ELLIPSE >> circle.filled = mapscript.MS_TRUE >> line = mapscript.lineObj() >> line.add(mapscript.pointObj(1,1)) >> circle.setPoints(line) >> circle.sizex = 1 >> circle.sizey = 1 >> mo.symbolset.appendSymbol(circle) >> >>The "mo" name is bound to a mapObj. It's very important to get sizex >>and sizey right, should be the width and height of the symbol in the >>same units as the point and line coordinates used to construct the >>symbol. >> >>To use this symbol >> >> style.symbol = mo.symbolset.index('circle') >> >>Translate this into C# and you should be good to go. >> >>cheers, >>Sean >> >>On Feb 15, 2006, at 5:03 PM, Christopher Condit wrote: >> >>> Hi Sean- >>> Is there a way to accomplish this with MapScript? All I see is a >>> way to >>> set the symbolset. >>> >>> Thanks, >>> >>> Chris >>> >>> -----Original Message----- >>> From: UMN MapServer Users List [mailto:MAPSERVER- >>> USERS at LISTS.UMN.EDU] On >>> Behalf Of Sean Gillies >>> Sent: Wednesday, February 15, 2006 3:58 PM >>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>> Subject: Re: [UMN_MAPSERVER-USERS] MapScript SetSymbolSet >>> >>> On Feb 15, 2006, at 3:19 PM, Christopher Condit wrote: >>> >>>> Hi Julien- >>>> Thanks for your response. Here are the contents of the symbol file: >>>> SYMBOLSET >>>> SYMBOL >>>> NAME 'circle' >>>> TYPE ELLIPSE >>>> POINTS 1 1 END >>>> FILLED TRUE >>>> END >>>> END >>>> >>>> The problem I'm having is intermittent and I can't reliably >reproduce >>>> it. My only thought was that for some reason mapscript couldn't >read >>>> the file. Is there any way to embed these symbols directly in the >>>> mapfile instead of referencing the symbolset file? >>>> >>>> Thanks, >>>> >>>> Chris >>> >>> Yes, just add any SYMBOL block as a child of the top-level map. >>> >>> Sean >>> >> >>--- >>Sean Gillies >>sgillies at frii dot com >>http://zcologia.com/news From shussain at ATSINCORP.COM Thu Feb 16 14:49:44 2006 From: shussain at ATSINCORP.COM (Shaik A. Hussain) Date: Thu, 16 Feb 2006 17:49:44 -0500 Subject: Mapscript Csharp dll Message-ID: Hi All, I am using Mapscript Csharp dll and drawmap.cs script from Mapserver Howard Butler's kitchen sink binaries. I am getting the following error when I use the drawmap.exe through command line. C:\temp\dotnet\MapserverTest\bin\Debug>drawmap postgis.map pg.png # Map layers 1; Map name = EARS Layer [0] name: countyp020 Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. at mapscriptPINVOKE.mapObj_draw(HandleRef jarg1) at mapObj.draw() at DrawMap.Main(String[] args) in c:\temp\dotnet\mapservertest\drawmap.cs:lin e 63 Does any one can help me how to fix this error. Here is the map file I am using NAME EARS SIZE 90 52 STATUS ON EXTENT -125.285 25.560 -66.536 52.656 UNITS meters SYMBOLSET "C:\Symbols\symbols.sym" FONTSET "C:\Symbols\fonts.list" IMAGECOLOR 240 228 190 TRANSPARENT OFF LAYER NAME "countyp020" TYPE Polygon STATUS default CONNECTION "user=postgres password=pwd dbname=PAMS host=localhost port=5432" CONNECTIONTYPE postgis DATA 'countyp020' CLASS OUTLINECOLOR 190 190 190 SYMBOL 'circle' SIZE 1 END # CLASS END # LAYER END # MAPFILE Thanks, Anwar -------------- next part -------------- An HTML attachment was scrubbed... URL: From cjohnson at REFRACTIONS.NET Thu Feb 16 15:20:27 2006 From: cjohnson at REFRACTIONS.NET (Clint Johnson) Date: Thu, 16 Feb 2006 15:20:27 -0800 Subject: GD LIBRARY In-Reply-To: <43F4BBAC.23099.7B0085@fabio.dovidio.planetek.it> Message-ID: Download the sources at http://www.boutell.com/gd/http/gd-2.0.33.zip Compilation for UNIX is fairly straight forward. Compiling on windows with Visual Studio will take some work, as you will need to create a new library project and correctly configure it (via project options) to generate either a static library or DLL (see gd.h for the compile time directives). Clint -- Clint Johnson Refractions Research Inc. Cjohnson at refractions.net Fabio D' Ovidio wrote: > Dear list, > I want to compile GD library on windows 2000. > The zip package has only the DLL and a .bat file to convert the dll in > lib for mapserver. > I'd like to compile GD from source (because I have to use a different > compiler and linker) > so I need the source files for Windows and \ or a makefile. > How can I do ? > > Thank u > > */Fabio D'Ovidio/* > */Planetek Italia Srl/* > */via Massaua 12, Bari -70123 Italy/* > */e-mail : /**/_dovidio at planetek.it_/* > */_http://www.planetek.it_/* From dfuhry at GMAIL.COM Thu Feb 16 18:41:30 2006 From: dfuhry at GMAIL.COM (Dave Fuhry) Date: Thu, 16 Feb 2006 21:41:30 -0500 Subject: ksumap: free mapserver powered GIS data hosting Message-ID: Lots of sites will host your email, blog, or photo galleries for free, but I don't know of any that do the same for your GIS data. So I created one. It targets users who may lack the hardware, expertise, or time to set up their own Mapserver environment. To try it out, create a zip file containing your project's shapefiles and/or geotiff images. Upload the zip file to the ksumap site. Up comes the familiar zoomable, pannable, queryable map interface. From there you can use the control panel page to customize symbology, update or add data, and view the mapfile. The data is accessible via WMF/WFS too. Basically, this is free GIS hosting. The Geography Department of Kent State University generously hosts this for me at: http://ksumap.geog.kent.edu/ I'd appreciate any thoughts on how to make this a really handy GIS tool. In particular I would love to get the advice and/or constructive criticism of anyone with experience hosting mapserver-based services in business or academia. Thanks, Dave Fuhry From richard.greenwood at GMAIL.COM Thu Feb 16 19:07:21 2006 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 16 Feb 2006 20:07:21 -0700 Subject: projection error when mode=itemquery In-Reply-To: <200602141742.14575.vito.meuli@tecnologieavanzate.it> Message-ID: On 2/14/06, Vito Meuli wrote: > Hi Rich! Hi listmates! > > I have the same problem. > It seems that when I use "mode=itemnquery" the raster displays always in the > same position and with the same magnification in the final image (like > "TRANSFORM FALSE" layers), whereas the vector layers follow the zoom and pan > correctly. > > I'm using Mapserver 4.6.2 on a Red Hat Enterprise Linux AS 4, compiled like > almost all needed libraries. > > I'll give a try to Mapserver 4.8.1 as soon as possible. > > Any ideas? > Thanks! > > Vito Hello Vito, Yours is the first reply that I have received to this bug report. Unfortunately, I broke the link to the demo in my bug report, which makes it hard for the developers to see the problem. I will try to fix the link and maybe reassign the bug report. Please keep me posted if you learn anything more. Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From warmerdam at POBOX.COM Thu Feb 16 20:10:38 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 16 Feb 2006 23:10:38 -0500 Subject: Polar reprojection (again) In-Reply-To: <845AADAC1106E44996327D62097E4C6B860181@et.ad.sdsc.edu> Message-ID: Christopher Condit wrote: > Hi Frank- > I'm attaching a zip file with two simple mapfiles illustrating the > problem. There's a README.txt in zipfile that describes everything. > Thanks for your help! Chris, Gee, I hope that big attachment didn't actually go to the list! I dug into the problem and it turned out to be unusual. The raster resampler calls PROJ.4's pj_transform() function for one whole row of points to transform at once. The idea is that pj_transform() returns a success flag for each point. But some kinds of errors are considered to be "non-transient", and it is assumed if they are encountered for one point they will apply to all points. It turns out that getting errno=33 (EDOM) or errno=34 (ERANGE) from math library functions (like atan) were considered "non-transient" by pj_transform(), even though they are likely to only apply to some points in a group. Because your initial range +-10000000 was invalid to reproject, and because the error was improperly considered non-transient the code was assuming all the points would fail and giving up. Using a smaller initial EXTENT (ie +-5000000) was enough to get a reason result. But better than that, I was able to correct the PROJ.4 pj_transform() function. The upshot is that if you can grab the latest PROJ.4 source from CVS and build it, you can get correct behavior. Since I wouldn't be surprised if that is messy for you, I have also put the modified pj_transform.c on my web site at: http://www.gdal.org/tmp/pj_transform.c If you grab that and dump over the PROJ 4.4.9 src/pj_transform.c file, build and install it, you should be ok. Thanks for providing a concise demonstration of the problem so I was able to track it down fairly easily. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From vito.meuli at TECNOLOGIEAVANZATE.IT Fri Feb 17 00:39:32 2006 From: vito.meuli at TECNOLOGIEAVANZATE.IT (Vito Meuli) Date: Fri, 17 Feb 2006 09:39:32 +0100 Subject: projection error when mode=itemquery In-Reply-To: Message-ID: Hi Rich. I can only add that my faulty layer has an UTM projection in meters as yours: PROJECTION "proj=utm" "ellps=WGS84" "datum=WGS84" "zone=33" "units=m" "north" # "no_defs" END whereas the mapfile, and implicitly all other layers, have a Gauss-Boaga projection: PROJECTION "proj=tmerc" "lon_0=15" "x_0=2520000" "k=0.9996" "ellps=intl" END I'm hoping for a solution from Mapserver 4.8.1... but I need some time to compile it. Cheers, Vito Meuli Alle 04:07, venerd? 17 febbraio 2006, Richard Greenwood ha scritto: > > Hello Vito, > > Yours is the first reply that I have received to this bug report. > Unfortunately, I broke the link to the demo in my bug report, which > makes it hard for the developers to see the problem. I will try to fix > the link and maybe reassign the bug report. Please keep me posted if > you learn anything more. > > Regards, > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com -- Ing. Vito Meuli Tecnologie Avanzate s.r.l. via B. Croce, 49 70015 Noci (BA) tel. 080-4979652 fax. 080-4979263 email: v.meuli at tecnologieavanzate.it http://www.tecnologieavanzate.it http://www.taonline.it From nicolas at MAICH.GR Fri Feb 17 00:51:06 2006 From: nicolas at MAICH.GR (Nikos) Date: Fri, 17 Feb 2006 10:51:06 +0200 Subject: GD LIBRARY In-Reply-To: <43F4BBAC.23099.7B0085@fabio.dovidio.planetek.it> Message-ID: Fabio D' Ovidio wrote: > Dear list, > I want to compile GD library on windows 2000. > The zip package has only the DLL and a .bat file to convert the dll in > lib for mapserver. > I'd like to compile GD from source (because I have to use a different > compiler and linker) > so I need the source files for Windows and \ or a makefile. > How can I do ? Hi, Below is a config.status file used for compiling gd-2.0.15 under msys/mingw..... hope this helps... regards, nikos > > Thank u > > */Fabio D'Ovidio/* > */Planetek Italia Srl/* > */via Massaua 12, Bari -70123 Italy/* > */e-mail : /**/_dovidio at planetek.it_/* > */_http://www.planetek.it_/* #! /bin/sh # Generated by configure. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=${CONFIG_SHELL-/bin/sh} ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then set -o posix fi # Support unset when possible. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # Work around bugs in pre-3.0 UWIN ksh. $as_unset ENV MAIL MAILPATH PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)$' \| \ . : '\(.\)' 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } /^X\/\(\/\/\)$/{ s//\1/; q; } /^X\/\(\/\).*/{ s//\1/; q; } s/.*/./; q'` # PATH needs CR, and LINENO needs CR and PATH. # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" || { # Find who we are. Look in the path if we contain no path at all # relative or not. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} { (exit 1); exit 1; }; } fi case $CONFIG_SHELL in '') as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for as_base in sh bash ksh sh5; do case $as_dir in /*) if ("$as_dir/$as_base" -c ' as_lineno_1=$LINENO as_lineno_2=$LINENO as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` test "x$as_lineno_1" != "x$as_lineno_2" && test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } CONFIG_SHELL=$as_dir/$as_base export CONFIG_SHELL exec "$CONFIG_SHELL" "$0" ${1+"$@"} fi;; esac done done ;; esac # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line before each line; the second 'sed' does the real # work. The second script uses 'N' to pair each line-number line # with the numbered line, and appends trailing '-' during # substitution so that $LINENO is not a special case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) sed '=' <$as_myself | sed ' N s,$,-, : loop s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, t loop s,-$,, s,^['$as_cr_digits']*\n,, ' >$as_me.lineno && chmod +x $as_me.lineno || { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensible to this). . ./$as_me.lineno # Exit status is that of the last command. exit } case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in *c*,-n*) ECHO_N= ECHO_C=' ' ECHO_T=' ' ;; *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; *) ECHO_N= ECHO_C='\c' ECHO_T= ;; esac if expr a : '\(a\)' >/dev/null 2>&1; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then # We could just check for DJGPP; but this test a) works b) is more generic # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). if test -f conf$$.exe; then # Don't use ln at all; we don't have any links as_ln_s='cp -p' else as_ln_s='ln -s' fi elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.file if mkdir -p . 2>/dev/null; then as_mkdir_p=: else as_mkdir_p=false fi as_executable_p="test -f" # Sed expression to map a string onto a valid CPP name. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" # Sed expression to map a string onto a valid variable name. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" # IFS # We need space, tab and new line, in precisely that order. as_nl=' ' IFS=" $as_nl" # CDPATH. $as_unset CDPATH exec 6>&1 # Open the log real soon, to keep \$[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. Logging --version etc. is OK. exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX } >&5 cat >&5 <<_CSEOF This file was extended by GD $as_me 2.0.15, which was generated by GNU Autoconf 2.57. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ _CSEOF echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 echo >&5 config_files=" Makefile config/Makefile config/gdlib-config test/Makefile" config_headers=" config.h:config.hin" config_commands=" depfiles" ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." ac_cs_version="\ GD config.status 2.0.15 configured by ./configure, generated by GNU Autoconf 2.57, with options \"'--with-png=../libpng-1.2.5' '--with-freetype=../freetype-2.1.5' '--with-jpeg=../jpeg-6b' '--with-gif' '--prefix=/mingw'\" Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." srcdir=. INSTALL="/bin/install -c" # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "x$1" : 'x\([^=]*\)='` ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` ac_shift=: ;; -*) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; *) # This is not an option, so the user has probably given explicit # arguments. ac_option=$1 ac_need_defaults=false;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --vers* | -V ) echo "$ac_cs_version"; exit 0 ;; --he | --h) # Conflict between --help and --header { { echo "$as_me:$LINENO: error: ambiguous option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2;} { (exit 1); exit 1; }; };; --help | --hel | -h ) echo "$ac_cs_usage"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift CONFIG_FILES="$CONFIG_FILES $ac_optarg" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2;} { (exit 1); exit 1; }; } ;; *) ac_config_targets="$ac_config_targets $1" ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi if $ac_cs_recheck; then echo "running /bin/sh ./configure " '--with-png=../libpng-1.2.5' '--with-freetype=../freetype-2.1.5' '--with-jpeg=../jpeg-6b' '--with-gif' '--prefix=/mingw' $ac_configure_extra_args " --no-create --no-recursion" >&6 exec /bin/sh ./configure '--with-png=../libpng-1.2.5' '--with-freetype=../freetype-2.1.5' '--with-jpeg=../jpeg-6b' '--with-gif' '--prefix=/mingw' $ac_configure_extra_args --no-create --no-recursion fi # # INIT-COMMANDS section. # AMDEP_TRUE="" ac_aux_dir="config" for ac_config_target in $ac_config_targets do case "$ac_config_target" in # Handling of arguments. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; "config/gdlib-config" ) CONFIG_FILES="$CONFIG_FILES config/gdlib-config" ;; "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason to put it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Create a temporary directory, and hook for its removal unless debugging. $debug || { trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./confstat$$-$RANDOM (umask 077 && mkdir $tmp) } || { echo "$me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } # # CONFIG_FILES section. # # No need to generate the scripts if there are no CONFIG_FILES. # This happens for instance when ./config.status config.h if test -n "$CONFIG_FILES"; then # Protect against being on the right side of a sed subst in config.status. sed 's/,@/@@/; s/@,/@@/; s/,;t t$/@;t t/; /@;t t$/s/[\\&,]/\\&/g; s/@@/,@/; s/@@/@,/; s/@;t t$/,;t t/' >$tmp/subs.sed <<\CEOF s, at SHELL@,/bin/sh,;t t s, at PATH_SEPARATOR@,:,;t t s, at PACKAGE_NAME@,GD,;t t s, at PACKAGE_TARNAME@,gd,;t t s, at PACKAGE_VERSION@,2.0.15,;t t s, at PACKAGE_STRING@,GD 2.0.15,;t t s, at PACKAGE_BUGREPORT@,gd at boutell.com,;t t s, at exec_prefix@,${prefix},;t t s, at prefix@,/mingw,;t t s, at program_transform_name@,s,x,x,,;t t s, at bindir@,${exec_prefix}/bin,;t t s, at sbindir@,${exec_prefix}/sbin,;t t s, at libexecdir@,${exec_prefix}/libexec,;t t s, at datadir@,${prefix}/share,;t t s, at sysconfdir@,${prefix}/etc,;t t s, at sharedstatedir@,${prefix}/com,;t t s, at localstatedir@,${prefix}/var,;t t s, at libdir@,${exec_prefix}/lib,;t t s, at includedir@,${prefix}/include,;t t s, at oldincludedir@,/usr/include,;t t s, at infodir@,${prefix}/info,;t t s, at mandir@,${prefix}/man,;t t s, at build_alias@,,;t t s, at host_alias@,,;t t s, at target_alias@,,;t t s, at DEFS@,-DHAVE_CONFIG_H,;t t s, at ECHO_C@,,;t t s, at ECHO_N@,-n,;t t s, at ECHO_T@,,;t t s, at LIBS@,-ljpeg -lfreetype -lpng -lz ,;t t s, at GDLIB_MAJOR@,2,;t t s, at GDLIB_MINOR@,0,;t t s, at GDLIB_REVISION@,15,;t t s, at GDLIBNAME@,gd,;t t s, at INSTALL_PROGRAM@,${INSTALL},;t t s, at INSTALL_SCRIPT@,${INSTALL},;t t s, at INSTALL_DATA@,${INSTALL} -m 644,;t t s, at CYGPATH_W@,echo,;t t s, at PACKAGE@,gd,;t t s, at VERSION@,2.0.15,;t t s, at ACLOCAL@,${SHELL} /home/adonis/build/gd-2.0.15/config/missing --run aclocal-1.7,;t t s, at AUTOCONF@,${SHELL} /home/adonis/build/gd-2.0.15/config/missing --run autoconf,;t t s, at AUTOMAKE@,${SHELL} /home/adonis/build/gd-2.0.15/config/missing --run automake-1.7,;t t s, at AUTOHEADER@,${SHELL} /home/adonis/build/gd-2.0.15/config/missing --run autoheader,;t t s, at MAKEINFO@,${SHELL} /home/adonis/build/gd-2.0.15/config/missing --run makeinfo,;t t s, at AMTAR@,${SHELL} /home/adonis/build/gd-2.0.15/config/missing --run tar,;t t s, at install_sh@,/home/adonis/build/gd-2.0.15/config/install-sh,;t t s, at STRIP@,strip,;t t s, at ac_ct_STRIP@,strip,;t t s, at INSTALL_STRIP_PROGRAM@,${SHELL} $(install_sh) -c -s,;t t s, at AWK@,gawk,;t t s, at SET_MAKE@,,;t t s, at CC@,gcc,;t t s, at CFLAGS@,-g -O2,;t t s, at LDFLAGS@, -L/mingw/lib -L/mingw/lib -Wl,-rpath,/mingw/lib -L../jpeg-6b/lib,;t t s, at CPPFLAGS@,-I/mingw/include/freetype2 -I/mingw/include -I../freetype-2.1.5/include -I/mingw/include/libpng12 -DPNG_THREAD_UNSAFE_OK -DPNG_USE_PNGGCCRD -I../jpeg-6b/include,;t t s, at ac_ct_CC@,gcc,;t t s, at EXEEXT@,.exe,;t t s, at OBJEXT@,o,;t t s, at DEPDIR@,.deps,;t t s, at am__include@,include,;t t s, at am__quote@,,;t t s, at AMDEP_TRUE@,,;t t s, at AMDEP_FALSE@,#,;t t s, at AMDEPBACKSLASH@,\,;t t s, at CCDEPMODE@,depmode=gcc3,;t t s, at am__fastdepCC_TRUE@,,;t t s, at am__fastdepCC_FALSE@,#,;t t s, at build@,i686-pc-mingw32,;t t s, at build_cpu@,i686,;t t s, at build_vendor@,pc,;t t s, at build_os@,mingw32,;t t s, at host@,i686-pc-mingw32,;t t s, at host_cpu@,i686,;t t s, at host_vendor@,pc,;t t s, at host_os@,mingw32,;t t s, at LN_S@,ln -s,;t t s, at ECHO@,echo,;t t s, at RANLIB@,ranlib,;t t s, at ac_ct_RANLIB@,ranlib,;t t s, at CPP@,gcc -E,;t t s, at EGREP@,grep -E,;t t s, at LIBTOOL@,$(SHELL) $(top_builddir)/libtool,;t t s, at LIBICONV@,,;t t s, at LTLIBICONV@,,;t t s, at LIBPNG_CONFIG@,/mingw/bin/libpng-config,;t t s, at FREETYPE_CONFIG@,/mingw/bin/freetype-config,;t t s, at LIBOBJS@,,;t t s, at LTLIBOBJS@,,;t t CEOF # Split the substitutions into bite-sized pieces for seds with # small command number limits, like on Digital OSF/1 and HP-UX. ac_max_sed_lines=48 ac_sed_frag=1 # Number of current file. ac_beg=1 # First line for current file. ac_end=$ac_max_sed_lines # Line after last line for current file. ac_more_lines=: ac_sed_cmds= while $ac_more_lines; do if test $ac_beg -gt 1; then sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag else sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag fi if test ! -s $tmp/subs.frag; then ac_more_lines=false else # The purpose of the label and of the branching condition is to # speed up the sed processing (if there are no `@' at all, there # is no need to browse any of the substitutions). # These are the two extra sed commands mentioned above. (echo ':t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed if test -z "$ac_sed_cmds"; then ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" else ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" fi ac_sed_frag=`expr $ac_sed_frag + 1` ac_beg=$ac_end ac_end=`expr $ac_end + $ac_max_sed_lines` fi done if test -z "$ac_sed_cmds"; then ac_sed_cmds=cat fi fi # test -n "$CONFIG_FILES" for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case $ac_file in - | *:- | *:-:* ) # input from stdin cat >$tmp/stdin ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; * ) ac_file_in=$ac_file.in ;; esac # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. ac_dir=`(dirname "$ac_file") 2>/dev/null || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p "$ac_dir" else as_dir="$ac_dir" as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` else ac_dir_suffix= ac_top_builddir= fi case $srcdir in .) # No --srcdir option. We are building in place. ac_srcdir=. if test -z "$ac_top_builddir"; then ac_top_srcdir=. else ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ;; *) # Relative path. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be # absolute. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_builddir$INSTALL ;; esac if test x"$ac_file" != x-; then { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} rm -f "$ac_file" fi # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ if test x"$ac_file" = x-; then configure_input= else configure_input="$ac_file. " fi configure_input=$configure_input"Generated from `echo $ac_file_in | sed 's,.*/,,'` by configure." # First look for the input files in the build tree, otherwise in the # src tree. ac_file_inputs=`IFS=: for f in $ac_file_in; do case $f in -) echo $tmp/stdin ;; [\\/$]*) # Absolute (can't be DOS-style, as IFS=:) test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } echo $f;; *) # Relative if test -f "$f"; then # Build tree echo $f elif test -f "$srcdir/$f"; then # Source tree echo $srcdir/$f else # /dev/null tree { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } fi;; esac done` || { (exit 1); exit 1; } sed "/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/; s/:*\${srcdir}:*/:/; s/:*@srcdir@:*/:/; s/^\([^=]*=[ ]*\):*/\1/; s/:*$//; s/^[^=]*=[ ]*$//; } :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s, at configure_input@,$configure_input,;t t s, at srcdir@,$ac_srcdir,;t t s, at abs_srcdir@,$ac_abs_srcdir,;t t s, at top_srcdir@,$ac_top_srcdir,;t t s, at abs_top_srcdir@,$ac_abs_top_srcdir,;t t s, at builddir@,$ac_builddir,;t t s, at abs_builddir@,$ac_abs_builddir,;t t s, at top_builddir@,$ac_top_builddir,;t t s, at abs_top_builddir@,$ac_abs_top_builddir,;t t s, at INSTALL@,$ac_INSTALL,;t t " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out rm -f $tmp/stdin if test x"$ac_file" != x-; then mv $tmp/out $ac_file else cat $tmp/out rm -f $tmp/out fi done # # CONFIG_HEADER section. # # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where # NAME is the cpp macro being defined and VALUE is the value it is being given. # # ac_d sets the value in "#define NAME VALUE" lines. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' ac_dB='[ ].*$,\1#\2' ac_dC=' ' ac_dD=',;t' # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ac_uB='$,\1#\2define\3' ac_uC=' ' ac_uD=',;t' for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case $ac_file in - | *:- | *:-:* ) # input from stdin cat >$tmp/stdin ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; * ) ac_file_in=$ac_file.in ;; esac test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} # First look for the input files in the build tree, otherwise in the # src tree. ac_file_inputs=`IFS=: for f in $ac_file_in; do case $f in -) echo $tmp/stdin ;; [\\/$]*) # Absolute (can't be DOS-style, as IFS=:) test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } echo $f;; *) # Relative if test -f "$f"; then # Build tree echo $f elif test -f "$srcdir/$f"; then # Source tree echo $srcdir/$f else # /dev/null tree { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } fi;; esac done` || { (exit 1); exit 1; } # Remove the trailing spaces. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in # Handle all the #define templates only if necessary. if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then # If there are no defines, we may have an empty if/fi : cat >$tmp/defines.sed <$tmp/out rm -f $tmp/in mv $tmp/out $tmp/in fi # grep # Handle all the #undef templates cat >$tmp/undefs.sed <$tmp/out rm -f $tmp/in mv $tmp/out $tmp/in # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ if test x"$ac_file" = x-; then echo "/* Generated by configure. */" >$tmp/config.h else echo "/* $ac_file. Generated by configure. */" >$tmp/config.h fi cat $tmp/in >>$tmp/config.h rm -f $tmp/in if test x"$ac_file" != x-; then if diff $ac_file $tmp/config.h >/dev/null 2>&1; then { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 echo "$as_me: $ac_file is unchanged" >&6;} else ac_dir=`(dirname "$ac_file") 2>/dev/null || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p "$ac_dir" else as_dir="$ac_dir" as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} { (exit 1); exit 1; }; }; } rm -f $ac_file mv $tmp/config.h $ac_file fi else cat $tmp/config.h rm -f $tmp/config.h fi _am_stamp_count=`expr ${_am_stamp_count-0} + 1` echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X$ac_file : 'X\(//\)[^/]' \| \ X$ac_file : 'X\(//\)$' \| \ X$ac_file : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X$ac_file | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'`/stamp-h$_am_stamp_count done # # CONFIG_COMMANDS section. # for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue ac_dest=`echo "$ac_file" | sed 's,:.*,,'` ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` ac_dir=`(dirname "$ac_dest") 2>/dev/null || $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_dest" : 'X\(//\)[^/]' \| \ X"$ac_dest" : 'X\(//\)$' \| \ X"$ac_dest" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$ac_dest" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` ac_builddir=. if test "$ac_dir" != .; then ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A "../" for each directory in $ac_dir_suffix. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` else ac_dir_suffix= ac_top_builddir= fi case $srcdir in .) # No --srcdir option. We are building in place. ac_srcdir=. if test -z "$ac_top_builddir"; then ac_top_srcdir=. else ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` fi ;; [\\/]* | ?:[\\/]* ) # Absolute path. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ;; *) # Relative path. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be # absolute. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 echo "$as_me: executing $ac_dest commands" >&6;} case $ac_dest in depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # So let's grep whole file. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then dirpart=`(dirname "$mf") 2>/dev/null || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` else continue fi grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue # Extract the definition of DEP_FILES from the Makefile without # running `make'. DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` test -z "$DEPDIR" && continue # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n -e '/^U = / s///p' < "$mf"` test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" # We invoke sed twice because it is the simplest approach to # changing $(DEPDIR) to its actual value in the expansion. for file in `sed -n -e ' /^DEP_FILES = .*\\\\$/ { s/^DEP_FILES = // :loop s/\\\\$// p n /\\\\$/ b loop p } /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`(dirname "$file") 2>/dev/null || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` { if $as_mkdir_p; then mkdir -p $dirpart/$fdir else as_dir=$dirpart/$fdir as_dirs= while test ! -d "$as_dir"; do as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| \ . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } /^X\(\/\/\)$/{ s//\1/; q; } /^X\(\/\).*/{ s//\1/; q; } s/.*/./; q'` done test ! -n "$as_dirs" || mkdir $as_dirs fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} { (exit 1); exit 1; }; }; } # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ;; esac done { (exit 0); exit 0; } From stefan.schwarzer at GRID.UNEP.CH Fri Feb 17 03:45:09 2006 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Fri, 17 Feb 2006 12:45:09 +0100 Subject: Postgis: JOINS possible? Message-ID: Hi there, I am only starting to understand the functionality of Postgis. Although I got the first real-world examples running, I have difficulties imaging something: As I am dealing with hundreds of (for the moment still) shapefiles where only the dbf is different (statistical data on national level), I wonder how to use postgis to accomplish the same thing but only with one geometric table. What I wonna say is this: I guess I have to load only once the shapefile, so that I can use my national statistics postgres tables to link to this geometric table via a join, something like: DATA 'geometric_table .the_geom, pop_total.y_2001 from geometric_table, pop_total WHERE geometric_table.id = pop_total.id' But this then suddenly results in multiple WHERE clauses: Warning: [MapServer Error]: prepare_database(): Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT y_2001::text,asbinary(force_collection (force_2d(geometric_table.the_geom, pop_total.y_2001)),'XDR'),OID::text from geometric_table, pop_total WHERE geometric_table.geo_id = pop_total.id WHERE geometric_table.the_geom, pop_total.y_2001 && setSRID('BOX3D(-180 -90,180 90)'::BOX3D, find_srid('','geometric_table, pop_total WHERE geometric_table.geo_id = pop_total.id','geometric_table.the_geom, pop_total.y_2001') )' Can anyone let me know how this works? Thanks a lot! -------------- next part -------------- An HTML attachment was scrubbed... URL: From hydromap at GMAIL.COM Fri Feb 17 04:00:57 2006 From: hydromap at GMAIL.COM (Shoaib Burq) Date: Fri, 17 Feb 2006 23:00:57 +1100 Subject: WCS & pseudocolor table Message-ID: Hi I was trying out the WCS functionality in Mapserver (running MS4W 7-Feb-2006 rel.) I am serving a single band image with a pseudocolor table. When I make a WCS request all's goes well except that image loses the pseudocolor table (see attached image). Is there anyway a WCS response can maintain the orignal image's color table? -- shoaib -------------- next part -------------- A non-text attachment was scrubbed... Name: WCScolor.png Type: image/png Size: 58322 bytes Desc: not available URL: From stefan.schwarzer at GRID.UNEP.CH Fri Feb 17 04:15:28 2006 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Fri, 17 Feb 2006 13:15:28 +0100 Subject: Postgis: JOINS possible? In-Reply-To: <73770B21-EE52-48C7-B58E-F64F2905634C@grid.unep.ch> Message-ID: Ok, ok, after some more searching I found something. With some tweaking and tuning I got something like this: DATA 'the_geom FROM (SELECT pop_total.y_2001 as y_2001, geometric_table.the_geom AS the_geom, pop_total.oid AS oid FROM pop_total, geometric_table WHERE geometric_table.id = pop_total.id) AS foo USING UNIQUE oid USING srid=-1' Think this is alright.... Stef > Hi there, > > I am only starting to understand the functionality of Postgis. > Although I got the first real-world examples running, I have > difficulties imaging something: As I am dealing with hundreds of > (for the moment still) shapefiles where only the dbf is different > (statistical data on national level), I wonder how to use postgis > to accomplish the same thing but only with one geometric table. > > What I wonna say is this: I guess I have to load only once the > shapefile, so that I can use my national statistics postgres tables > to link to this geometric table via a join, something like: > > DATA > 'geometric_table .the_geom, pop_total.y_2001 from geometric_table, > pop_total WHERE geometric_table.id = pop_total.id' > > But this then suddenly results in multiple WHERE clauses: > > Warning: [MapServer Error]: prepare_database(): Error executing > POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor > BINARY CURSOR FOR SELECT y_2001::text,asbinary(force_collection > (force_2d(geometric_table.the_geom, > pop_total.y_2001)),'XDR'),OID::text from geometric_table, pop_total > WHERE geometric_table.geo_id = pop_total.id WHERE > geometric_table.the_geom, pop_total.y_2001 && setSRID('BOX3D(-180 > -90,180 90)'::BOX3D, find_srid('','geometric_table, pop_total WHERE > geometric_table.geo_id = pop_total.id','geometric_table.the_geom, > pop_total.y_2001') )' > > > Can anyone let me know how this works? > > Thanks a lot! -------------- next part -------------- An HTML attachment was scrubbed... URL: From jiri.mikulasek at GMAIL.COM Fri Feb 17 05:02:12 2006 From: jiri.mikulasek at GMAIL.COM (=?UTF-8?Q?Ji=C5=99=C3=AD_Mikul=C3=A1=C5=A1ek?=) Date: Fri, 17 Feb 2006 14:02:12 +0100 Subject: problem with same projection for map and layer in mapfile Message-ID: Hello, I have got a mapfile with specified projection for both the whole map and the only layer in it. Both projections are same. Mapserver then renders a blank image. However, when I comment out the map projection or the layer projection, the map is rendered properly. Why am I getting such behaviour? I know that this example is a little bit artificial and I do not have to specify both projections. In fact I am dealing with mapfiles with much bigger number of layers and the mapfiles are generated on the fly. Usually the layers are in the same projection but it may happen that they are not. It is much easier for me to specify the projections both for the layers and the map and not bother about checking when projection is the same and when not. Or do I have to check it? This is the mapfile: MAP EXTENT -654601.880000 -1154846.910000 -648383.16 -1148290.76 UNITS meters SIZE 600 600 PROJECTION "init=epsg:2065" END OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" END LAYER NAME "dkm/par001" TYPE POLYGON STATUS ON DATA "c:\MyGisData\Trebic_DGN_Shapefile\dkm/par001" PROJECTION "init=epsg:2065" END CLASS COLOR 240 240 240 OUTLINECOLOR 0 0 0 END END END I am using custom built Python Mapscript for Mapserver 4.6.1 on Windows XP. Thank you very much. Jirka Mikulasek -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Fri Feb 17 05:33:41 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 17 Feb 2006 08:33:41 -0500 Subject: WCS & pseudocolor table In-Reply-To: <60c6835d0602170400v7e86a3f1l6e0ea72a664aa056@mail.gmail.com> Message-ID: Shoaib Burq wrote: > Hi > > I was trying out the WCS functionality in Mapserver (running MS4W > 7-Feb-2006 rel.) > > I am serving a single band image with a pseudocolor table. When I make > a WCS request all's goes well except that image loses the pseudocolor > table (see attached image). > > Is there anyway a WCS response can maintain the orignal image's color table? Shoaib, Currently there is not. I would suggest you file a bug report on this. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From warmerdam at POBOX.COM Fri Feb 17 05:38:41 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 17 Feb 2006 08:38:41 -0500 Subject: problem with same projection for map and layer in mapfile In-Reply-To: <18c0acb70602170502x4fb559e4vb7a043b80c6750d9@mail.gmail.com> Message-ID: Ji?? Mikul??ek wrote: > Hello, > > I have got a mapfile with specified projection for both the whole map > and the only layer in it. Both projections are same. Mapserver then > renders a blank image. However, when I comment out the map projection > or the layer projection, the map is rendered properly. Why am I getting > such behaviour? > > I know that this example is a little bit artificial and I do not have to > specify > both projections. In fact I am dealing with mapfiles with much bigger > number of layers and the mapfiles are generated on the fly. Usually > the layers are in the same projection but it may happen that they are not. > It is much easier for me to specify the projections both for the layers > and the map > and not bother about checking when projection is the same and when not. > Or do I have to check it? > > This is the mapfile: > > MAP > EXTENT -654601.880000 -1154846.910000 -648383.16 -1148290.76 > UNITS meters > SIZE 600 600 > PROJECTION > "init=epsg:2065" > END > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE PC256 > EXTENSION "png" > END > LAYER > NAME "dkm/par001" > TYPE POLYGON > STATUS ON > DATA "c:\MyGisData\Trebic_DGN_Shapefile\dkm/par001" > PROJECTION > "init=epsg:2065" > END > CLASS > COLOR 240 240 240 > OUTLINECOLOR 0 0 0 > END > END > END > > I am using custom built Python Mapscript for Mapserver 4.6.1 on Windows XP. Jirka, I can't think of any reason you would get this problem. I would suggest you submit a bug report on the issue with a minimal map demonstrating the issue. You might want to use an inline feature to avoid having to submit supporting data. One thing you might want to try and verify first is that the EPSG look i working ok. Perhaps replace your PROJECTION blocks with the following and see if you get different results. PROJECTION "+proj=krovak +lat_0=49.5 +lon_0=60.16666666666667 +alpha=30.28813972222222 +k=0.9999 +x_0=0 +y_0=0 +ellps=bessel +pm=ferro +units=m +no_defs" END I would also note that there are reasons to be nervous about the default translations of coordinate systems with non-greenwich prime meridians via PROJ (such as yours) and also to be nervous of the axis handling of krovak projections. I don't see how these could matter in this situation since the definition isn't really being used to do anything. But it may bite you later. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From lichte at ICBM.DE Fri Feb 17 06:09:32 2006 From: lichte at ICBM.DE (Oliver Lichte (by way of Oliver Lichte )) Date: Fri, 17 Feb 2006 15:09:32 +0100 Subject: Again: imgObj2java.awt.image Message-ID: Hello. Was this question too trivial or too difficult??? Unfortunately, no-one answered untit now, so I'll try it again: I'd like to convert imageObj to java.awt.image. Is it possible to get direct pixel access via Java mapserver-API or do I have always to create a temporary file to share the image? What is the content of the byte-array returned by method getByte()? Regards, Oliver From fsimon at UNIVALI.BR Fri Feb 17 08:31:29 2006 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Fri, 17 Feb 2006 13:31:29 -0300 Subject: Again: imgObj2java.awt.image In-Reply-To: <200602171509.32548.lichte@ICBM.DE> Message-ID: Hi Oliver, I already used JavaMapscript but never needed to convert the imageobj to awt.image. I don't believe that it's possible to do directly, so the best way is save the image and after use the awt.image. Best regards. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://www.univali.br/g10 - UNIVALI/CTTMAR ------------------------------------------------------------------------ Oliver Lichte (by way of Oliver Lichte ) wrote: > Hello. > > Was this question too trivial or too difficult??? Unfortunately, no-one > answered untit now, so I'll try it again: > > I'd like to convert imageObj to java.awt.image. Is it possible to get direct > pixel access via Java mapserver-API or do I have always to create a temporary > file to share the image? > > What is the content of the byte-array returned by method getByte()? > > Regards, > Oliver > > From ross.elliott at INFOTERRA-GLOBAL.COM Fri Feb 17 07:39:07 2006 From: ross.elliott at INFOTERRA-GLOBAL.COM (Ross Elliott) Date: Fri, 17 Feb 2006 09:39:07 -0600 Subject: gradients Message-ID: Can the current gradient code be applied to ASCII GRID data? and more specifically can it be applied to AAGRID being pulled from a WMS link? The reason I ask is that I have my own custom OGCWMS server that I've modified to server a variety of different data types, include AAGRID, and I'd like mapserver to apply some sort of colour gradient to them. At the moment it just displays my grids using grayscale which I guess is coming from gdal somewhere. If anyone wants to point me to the relevant code then I'm quite happy to change it. Ross From claude-mapserver at SKIRANDO.CH Fri Feb 17 08:00:11 2006 From: claude-mapserver at SKIRANDO.CH (Claude Philipona) Date: Fri, 17 Feb 2006 17:00:11 +0100 Subject: FOSS4G 2006 Conference in Lausanne Message-ID: Hi All, We are pleased to announce that the FOSS4G 2006 conference website http://www.foss4g2006.org/ (FOSS4G 2006, 12-15 September 2006, Lausanne Switzerland) is now open for pre-registration and contribution submission. You will also find all practical information about programs, fees, accomodations, sponsorship. Don't forget to pre-register early as places are limited. For your information an open source conference management system, Indico, is used to manage all the registration tracks, conference review,... Waiting to see you all in Lausanne Claude From steven.ottens at GEODAN.NL Fri Feb 17 08:18:23 2006 From: steven.ottens at GEODAN.NL (Steven M. Ottens) Date: Fri, 17 Feb 2006 17:18:23 +0100 Subject: static legend image in mapfile Message-ID: Hi all, I want to use a static legend image as legend for a map. Is it possible to define such an image in a mapfile, so it will be served as the getLegendUrl in a getCapabilities request. The problem is that I have two layers which don't show a legend in the normal way: One anti-aliased GeoTIFF (so can't use pixel values) One grouped layer (I can get the legend of each of the children separately but I want it as one image) I need to get them from the getCapabilities doc since the layers are added in a webmapping client (mapbuilder) by the user. The client parses the getCapabilities doc to get all the info required to get a WMS map, including the legend from the getLegendGraphicUrl. Anyone knows a solution to this? Thanks in advance Steven From lichte at ICBM.DE Fri Feb 17 08:56:32 2006 From: lichte at ICBM.DE (Oliver Lichte) Date: Fri, 17 Feb 2006 17:56:32 +0100 Subject: Again: imgObj2java.awt.image In-Reply-To: <43F5FA61.3010102@univali.br> Message-ID: Hi Fernando and thank you very much for your answer, I need that for an abstraction layer on mapserver to develop desktop applications. Do you know what imageObj.getByte() returns? There is a lack of documentation for JavaMapserver-API, yet, isn't it? Best regards, Oliver Am Freitag, 17. Februar 2006 17:31 schrieb Fernando Simon: > Hi Oliver, > I already used JavaMapscript but never needed to convert the > imageobj to awt.image. > I don't believe that it's possible to do directly, so the best way > is save the image and after use the awt.image. > Best regards. > > ------------------------------------------------------------------------ > Fernando Simon > Mapserver and Oracle Spatial developer > G10 - Laboratorio de Computacao Aplicada - Brazil > http://www.univali.br/g10 - UNIVALI/CTTMAR > ------------------------------------------------------------------------ > > Oliver Lichte (by way of Oliver Lichte ) wrote: > > Hello. > > > > Was this question too trivial or too difficult??? Unfortunately, no-one > > answered untit now, so I'll try it again: > > > > I'd like to convert imageObj to java.awt.image. Is it possible to get > > direct pixel access via Java mapserver-API or do I have always to create > > a temporary file to share the image? > > > > What is the content of the byte-array returned by method getByte()? > > > > Regards, > > Oliver -- Junior Research Group IMPULSE ICBM * Carl-v.-Ossietzky University of Oldenburg PO-Box 2503 * 26111 Oldenburg - Germany - http://www.icbm.de/impulse room: W15-2-239 * fon:+49-441-798-3622 * fax:+49-441-798-3404 From work at XWB.COM Fri Feb 17 08:52:23 2006 From: work at XWB.COM (Chip Taylor) Date: Fri, 17 Feb 2006 08:52:23 -0800 Subject: ESRI SDC files In-Reply-To: <29237876E2F56546975A098DC25F3D4A4039DA@officeho2.bom.gov.au> Message-ID: Is there a way using an open source utility on Windows to convert an ESRI .sdc file to a .shp file? Alternatively, cam Mapserver read ESRI .sdc files? Chip Taylor Prepared Response, Inc From dfuhry at GMAIL.COM Fri Feb 17 09:04:05 2006 From: dfuhry at GMAIL.COM (Dave Fuhry) Date: Fri, 17 Feb 2006 12:04:05 -0500 Subject: Fwd: [UMN_MAPSERVER-USERS] ksumap: free mapserver powered GIS data hosting In-Reply-To: <90699a8d0602170832i7d18eefvd9b5c595bce28932@mail.gmail.com> Message-ID: (copying the list) Lars, ksumap can serve your data to WMS/WFS clients using the url http://ksumap.geog.kent.edu/[service_name]/ows More information on that is in the "WMS and WFS" tab in control panel and in the faq entry at http://ksumap.geog.kent.edu/faq.php#faq5 But to answer your question directly, there is no interface for adding external WMS / WFS layers to your map just yet. I will keep it in mind and let you know when progress has been made in this area. Thanks, Dave On 2/17/06, Lars Nielsen (GisPro) wrote: > Hi Dave, > > Damn good initiative, Cheers. Been thinking along the same lines myself, but > has sofar been without access to a suitable server. > > Can a service at your site utilize external WMS/WFS services at the moment ? > > Best regards / Med venlig hilsen > Lars Nielsen > GisPro, Denmark > http://www.gispro.dk > ----- Original Message ----- > From: "Dave Fuhry" > To: > Sent: Friday, February 17, 2006 3:41 AM > Subject: [UMN_MAPSERVER-USERS] ksumap: free mapserver powered GIS data > hosting > > > Lots of sites will host your email, blog, or photo galleries for free, > but I don't know of any that do the same for your GIS data. So I > created one. It targets users who may lack the hardware, expertise, > or time to set up their own Mapserver environment. > > To try it out, create a zip file containing your project's shapefiles > and/or geotiff images. Upload the zip file to the ksumap site. Up > comes the familiar zoomable, pannable, queryable map interface. From > there you can use the control panel page to customize symbology, > update or add data, and view the mapfile. The data is accessible via > WMF/WFS too. Basically, this is free GIS hosting. The Geography > Department of Kent State University generously hosts this for me at: > > http://ksumap.geog.kent.edu/ > > I'd appreciate any thoughts on how to make this a really handy GIS > tool. In particular I would love to get the advice and/or > constructive criticism of anyone with experience hosting > mapserver-based services in business or academia. > > Thanks, > > Dave Fuhry > > From dfuhry at GMAIL.COM Fri Feb 17 09:04:44 2006 From: dfuhry at GMAIL.COM (Dave Fuhry) Date: Fri, 17 Feb 2006 12:04:44 -0500 Subject: Fwd: [UMN_MAPSERVER-USERS] ksumap: free mapserver powered GIS data hosting In-Reply-To: <90699a8d0602170901i8336ddfn1b995fab1d484159@mail.gmail.com> Message-ID: (copying the list) Jorge, And with regards to hardware/software, MapServer version 4.8.0-rc1, PostGIS, PosgreSQL, Apache 2.2, PHP 5.1, and Perl on an AMD Athlon 64 3200+ running 64-bit Debian Linux. The mapping interface I built myself, although I would love to integrate ka-map, chameleon, p.mapper, mapbender, or the like someday, as they have all done much more work with the interface and tools than I have. I looked at doing that initially but none of them quite fit the bill. As they improve I'm sure integrating one will become a more viable option. Thanks, Dave Fuhry On 2/17/06, Jorge Zambrano wrote: > thanks a lot, this is great!!! I'm working with postgresql/postgis and > mapserver, but I'm really new at this and your server is helping me a lot. > are you using some extra aplication (kamap or something like that)? > > Thanks again for your server!!! > > Jorge Zambrano > > 2006/2/16, Dave Fuhry : > > Lots of sites will host your email, blog, or photo galleries for free, > > but I don't know of any that do the same for your GIS data. So I > > created one. It targets users who may lack the hardware, expertise, > > or time to set up their own Mapserver environment. > > > > To try it out, create a zip file containing your project's shapefiles > > and/or geotiff images. Upload the zip file to the ksumap site. Up > > comes the familiar zoomable, pannable, queryable map interface. From > > there you can use the control panel page to customize symbology, > > update or add data, and view the mapfile. The data is accessible via > > WMF/WFS too. Basically, this is free GIS hosting. The Geography > > Department of Kent State University generously hosts this for me at: > > > > http://ksumap.geog.kent.edu/ > > > > I'd appreciate any thoughts on how to make this a really handy GIS > > tool. In particular I would love to get the advice and/or > > constructive criticism of anyone with experience hosting > > mapserver-based services in business or academia. > > > > Thanks, > > > > Dave Fuhry > > > > From williams at WEBSAWYER.COM Fri Feb 17 10:58:49 2006 From: williams at WEBSAWYER.COM (Doug Williams) Date: Fri, 17 Feb 2006 11:58:49 -0700 Subject: queryByPoint on dynamic layer from mysql Message-ID: Hi, Trying to query points that I have added to my map with php_mapscript from a mysql table. I've bumbled through the "set index" problem in older versions, have installed MapServer 4.8.1, and now seem to be able to get records from my query, but... while the points and labels show up on the map properly, indicating that the layer of points is being created and the lat/lon and label values are associated properly,... when I process the records obtained from my queryByPoint, using getShape to get at the details, There is no data in the shape object's members for the dynamic layer, although the result objects from the point query do have the correct index values that I programmatically set (incrementing from zero by 1 ... i tried incrementing by five to see if index values needed to be 'just so', and that broke the point query - yes, i believe they need to increment by one from zero). Querying layers (from standard shape files added to the map from a mapfile) with the same code works as expected. I can get a shapes member values with either values() or getValue() ... works the same both ways. It was not possible to query dynamically added points in phpmapscript in the old version I last installed (4.4) because the index for the shapes was readonly and incorrectly set to -1. Now I can set the index values and the queryByPoint does grab the point, but the result record seems to have no data. I must be doing something wrong. Any help is greatly appreciated! ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ================================================================================= ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Here's the bit of code where I can't get the details for the dynamic layer, though the code works for the mapfile layers. This code was copied from the list serve and modified slightly for ($iRes=0; $iRes < $numResults; $iRes++) { $oRes = $oLayer->getResult($iRes); //echo ""; // the shape index values I 'set' when adding the points (in prior code, shown below) are correct, tileindex values were -1 $oShape = $oLayer->getShape($oRes->tileindex,$oRes->shapeindex); printf("\n"); //printf("", // $oShape->bounds->minx, $oShape->bounds->miny, // $oShape->bounds->maxx, $oShape->bounds->maxy); // bounds values are good for all layer records EXCEPT dynamic, for which they are all 0 (zero) for($iField=0; $iField < sizeof($selFields); $iField++) { // $tempval = $oShape->getValue($oLayer, $selFields[$iField]); // both these methods give the same results $tempval = $oShape->values[$selFields[$iField]]; // both these methods give the same results // in both cases I get the field name properly from $selFields // but not the value from the shape object // again, the problem only occurs for the dynamic layer // data is properly read for the other layers if ($iLayer == "points") { // points is the dynamic layer - this is just for debugging as with the other alerts echo ""; } printf(""); printf("%s", $tempval); printf(""); } printf("\n"); // yes, i know they say not to use tables anymore $oShape->free(); $numResultsTotal++; } ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ================================================================================= ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ here is the code where I create the dynamic layer: // this function came from the list server, although I added input variables for label ($labeltext) and index ($pointnumber) function add_point_to_layer($layer, $longitude, $latitude, $labeltext, $point_number) { // create and initialize new point object $point = ms_newPointObj(); $point->setXY($longitude, $latitude); // create and initialize new line object $line = ms_newLineObj(); $line->add($point); // create and initialize new shape object $shape = ms_newShapeObj(MS_SHAPE_POINT); $shape->add($line); //echo ""; $shape->set('text', $labeltext); $shape->set('index', $point_number); // add our shape $layer->addFeature($shape); } if ($pointshow) { if (!$orderby) $orderby = "id"; // echo $orderby . "
"; $query = "select * from peop order by $orderby"; $points = mysql_query($query); if ($points) { $num_points = mysql_num_rows($points); //echo "$num_points"; if ($num_points > 0) { // this code was copied from the list serve and modified slightly $ptlayer = ms_newLayerObj($map); $ptlayer->set("name", "points"); $ptlayer->set("type", MS_LAYER_POINT); //$ptlayer->setProjection("init=epsg:4326"); $ptlayer->set("status", MS_ON); $ptlayer->setMetaData("DESCRIPTION", "Points"); $ptlayer->setMetaData("RESULT_FIELDS", "text index"); // these are the shape members that I wish to read in the query $ptlayer->set("template", "points_template.html"); $ptclass = ms_newClassObj($ptlayer); $ptclass->set("status", MS_ON); $ptclass->set("name", "Points"); $ptclass->label->set("type", MS_TRUETYPE); $ptclass->label->set("font", 'times'); $ptclass->label->color->setRGB( 200,100,200); $ptclass->label->outlinecolor->setRGB(255, 255, 255); $ptclass->label->set("size", 11); $ptclass->label->set("position", 1); $ptstyle = ms_newStyleObj($ptclass); $ptstyle->set("symbol", $map->getsymbolbyname( 'circle')); $ptstyle->set("size", 8); $ptstyle->color->setRGB( 200,100,200); $ptstyle->outlinecolor->setRGB(255, 255, 255); for ($i=0; $i < $num_points; $i++) { $row = mysql_fetch_array($points); //echo ""; $indexforshape = $i; $labeltxt = $row["username"]; add_point_to_layer($ptlayer, $row["lon"], $row["lat"], $labeltxt, $indexforshape); } } else { //echo "$num_points points in database.

"; // should be zero } } else { //echo "Query error."; } } ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ================================================================================= ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ From eric at GOMOOS.ORG Fri Feb 17 13:46:37 2006 From: eric at GOMOOS.ORG (Eric Bridger) Date: Fri, 17 Feb 2006 16:46:37 -0500 Subject: queryByPoint on dynamic layer from mysql In-Reply-To: <20060217185635.M24454@websawyer.com> Message-ID: I don't use PHP mapscript (Perl mapscript) but I believe you would need to use the shape index to retrieve the feature data from mysql yourself. In perl mapscript I had no trouble setting shape->{index} to any numeric value. They did not have to be sequential. So I would use some unique numeric key from my database table. Alternatively you could create a lookup array where your mysql keys are stored. Eric On Fri, 2006-02-17 at 13:58, Doug Williams wrote: > Hi, > Trying to query points that I have added to my map with php_mapscript from a > mysql table. > I've bumbled through the "set index" problem in older versions, > have installed MapServer 4.8.1, > and now seem to be able to get records from my query, but... > while the points and labels show up on the map properly, > indicating that the layer of points is being created and the lat/lon and label > values are associated properly,... > when I process the records obtained from my queryByPoint, > using getShape to get at the details, > There is no data in the shape object's members for the dynamic layer, although > the result objects from the point query do have the correct index values that > I programmatically set (incrementing from zero by 1 ... i tried incrementing > by five to see if index values needed to be 'just so', and that broke the > point query - yes, i believe they need to increment by one from zero). > > > Querying layers (from standard shape files added to the map from a mapfile) > with the same code works as expected. I can get a shapes member values with > either values() or getValue() ... works the same both ways. > > > It was not possible to query dynamically added points in phpmapscript in the > old version I last installed (4.4) because the index for the shapes was > readonly and incorrectly set to -1. Now I can set the index values and the > queryByPoint does grab the point, but the result record seems to have no data. > I must be doing something wrong. > > > Any help is greatly appreciated! > > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > ================================================================================== > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > > Here's the bit of code where I can't get the details for the dynamic layer, > though the code works for the mapfile layers. > This code was copied from the list serve and modified slightly > > > for ($iRes=0; $iRes < $numResults; $iRes++) > { > $oRes = $oLayer->getResult($iRes); > //echo ""; > > > // the shape index values I 'set' when adding the points (in prior code, shown > below) are correct, tileindex values were -1 > > > $oShape = $oLayer->getShape($oRes->tileindex,$oRes->shapeindex); > printf("\n"); > //printf("", > // $oShape->bounds->minx, $oShape->bounds->miny, > // $oShape->bounds->maxx, $oShape->bounds->maxy); > // bounds values are good for all layer records EXCEPT dynamic, for which they > are all 0 (zero) > > > for($iField=0; $iField < sizeof($selFields); $iField++) > { > // $tempval = $oShape->getValue($oLayer, $selFields[$iField]); // both these > methods give the same results > $tempval = $oShape->values[$selFields[$iField]]; // both these methods give > the same results > > > // in both cases I get the field name properly from $selFields > // but not the value from the shape object > // again, the problem only occurs for the dynamic layer > // data is properly read for the other layers > > > if ($iLayer == "points") { // points is the dynamic layer - this is just for > debugging as with the other alerts > echo ""; > } > printf(""); > printf("%s", $tempval); > printf(""); > } > printf("\n"); // yes, i know they say not to use tables anymore > $oShape->free(); > $numResultsTotal++; > } > > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > ================================================================================== > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > > here is the code where I create the dynamic layer: > > > // this function came from the list server, although I added input variables > for label ($labeltext) and index ($pointnumber) > function add_point_to_layer($layer, $longitude, $latitude, $labeltext, > $point_number) { > // create and initialize new point object > $point = ms_newPointObj(); > $point->setXY($longitude, $latitude); > // create and initialize new line object > $line = ms_newLineObj(); > $line->add($point); > // create and initialize new shape object > $shape = ms_newShapeObj(MS_SHAPE_POINT); > $shape->add($line); > //echo ""; > $shape->set('text', $labeltext); > $shape->set('index', $point_number); > // add our shape > $layer->addFeature($shape); > } > > > if ($pointshow) { > > > if (!$orderby) $orderby = "id"; > // echo $orderby . "
"; > > > $query = "select * from peop order by $orderby"; > > > $points = mysql_query($query); > > > if ($points) { > $num_points = mysql_num_rows($points); > //echo "$num_points"; > > > if ($num_points > 0) { // this code was copied from the list serve and > modified slightly > $ptlayer = ms_newLayerObj($map); > $ptlayer->set("name", "points"); > $ptlayer->set("type", MS_LAYER_POINT); > //$ptlayer->setProjection("init=epsg:4326"); > $ptlayer->set("status", MS_ON); > $ptlayer->setMetaData("DESCRIPTION", "Points"); > $ptlayer->setMetaData("RESULT_FIELDS", "text index"); // these are > the shape members that I wish to read in the query > $ptlayer->set("template", "points_template.html"); > > > $ptclass = ms_newClassObj($ptlayer); > $ptclass->set("status", MS_ON); > $ptclass->set("name", "Points"); > $ptclass->label->set("type", MS_TRUETYPE); > $ptclass->label->set("font", 'times'); > $ptclass->label->color->setRGB( 200,100,200); > $ptclass->label->outlinecolor->setRGB(255, 255, 255); > $ptclass->label->set("size", 11); > $ptclass->label->set("position", 1); > > > $ptstyle = ms_newStyleObj($ptclass); > $ptstyle->set("symbol", $map->getsymbolbyname( 'circle')); > $ptstyle->set("size", 8); > $ptstyle->color->setRGB( 200,100,200); > $ptstyle->outlinecolor->setRGB(255, 255, 255); > > > for ($i=0; $i < $num_points; $i++) { > $row = mysql_fetch_array($points); > //echo ""; > $indexforshape = $i; > $labeltxt = $row["username"]; > add_point_to_layer($ptlayer, $row["lon"], $row["lat"], $labeltxt, > $indexforshape); > } > > > } else { > //echo "$num_points points in database.

"; // should be zero > } > > > } else { > //echo "Query error."; > } > > > } > > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > ================================================================================== > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ From karrarm at YAHOO.COM Fri Feb 17 14:19:08 2006 From: karrarm at YAHOO.COM (Ramesh Karra) Date: Fri, 17 Feb 2006 16:19:08 -0600 Subject: Scale bar Message-ID: Hi, I would like to know how SCALEBAR object works. I would like to know if the length of the scalebar drawn depends on the extent of the map. When I use the following map file, the scale bar draws a line of about 2cms length and shows it as 1 inch! I feel this is not right because the initial extent covers more than 10 inches of geographical area. What am I missing here? Thanks in advance Ramesh MAP IMAGETYPE PNG EXTENT 10.3605 5.309 10.609 5.507 SIZE 600 450 SHAPEPATH "/ms4w/" IMAGECOLOR 225 225 225 FONTSET "/ms4w/apps/ms101/fonts/fonts.list" SYMBOLSET "c:\ms4w\symbols.sym" TEMPLATEPATTERN 'tm*' WEB TEMPLATE 'xxx' IMAGEPATH '/ms4w/tmp/ms_tmp/' IMAGEURL '/ms_tmp/' END # Every object in MapServer must have an END.;) SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 200 0 0 SIZE TINY END STYLE 1 SIZE 100 2 COLOR 0 0 0 UNITS INCHES INTERVALS 2 TRANSPARENT FALSE STATUS ON END # Scalebar object ends END From steve.lime at DNR.STATE.MN.US Fri Feb 17 15:05:30 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 17 Feb 2006 17:05:30 -0600 Subject: WFS describeFeatureType Message-ID: I'm wondering if this might be somehow SDE related. I'm using 4.9 from just a few minutes ago without any trouble. What happens if you point at a shapefile? Steve >>> Brock Anderson 02/16/06 4:04 PM >>> Hi List, I am making WFS describeFeatureType requests to Mapserver 4.9 (from CVS this morning), but the response doesn't list any attributes. I think I have taken all the usual steps to enable WFS, including: - setting the LAYER's metadata "gml_include_items" to "all" - setting DUMP TRUE in the LAYER The same request and map file work against Mapserver 4.6 -- in that case the describeFeatureType response lists all the attributes. Has something changed in the new mapserver? What does it take to allow Mapserver to list the attributes? My LAYER definition is below. Thanks, Brock LAYER NAME 'CRIMS_CLAM_BEDS' CONNECTIONTYPE sde CONNECTION "..." DATA "..." CLASS NAME "Clam Beds" STYLE COLOR 255 165 0 OUTLINECOLOR 0 0 0 END #style END #class TYPE polygon STATUS ON PROJECTION "init=EPSG:3005" END #projection METADATA "wms_title" "Clam Beds" "wfs_title" "Clam Beds" "gml_include_items" "all" END #metadata DUMP TRUE TEMPLATE "bla" END #end layer From szekeres.tamas at FREEMAIL.HU Fri Feb 17 15:10:43 2006 From: szekeres.tamas at FREEMAIL.HU (Tamas Szekeres) Date: Fri, 17 Feb 2006 17:10:43 -0600 Subject: Mapscript Csharp dll Message-ID: Hi, 1. Make sure that all of the dll-s (eg. mapscript.dll, libmap.dll, bgd.dll, libpq.dll, proj.dll ...) required by mapscript resides in your application directory. 2. Test your binaries and mapfile using CGI mapserver, and copy the drawmap.exe into the same directory where mapserv resides, and test it. 2. Try to compile mapserver + mapscript and test with the compiled binaries ... I've tested this application with VS6, VS7.1, VS8 and worked. (Note: For VS8 a proper manifest file might be created for the application containing the reference to the Microsoft.VC80.CRT libraries) Tamas On Thu, 16 Feb 2006 17:49:44 -0500, Shaik A. Hussain wrote: >Hi All, > > > >I am using Mapscript Csharp dll and drawmap.cs script from Mapserver >Howard Butler's kitchen sink binaries. I am getting the following error >when I use the drawmap.exe through command line. > > > >C:\temp\dotnet\MapserverTest\bin\Debug>drawmap postgis.map pg.png > ># Map layers 1; Map name = EARS > >Layer [0] name: countyp020 > > > >Unhandled Exception: System.NullReferenceException: Object reference not >set to > >an instance of an object. > > at mapscriptPINVOKE.mapObj_draw(HandleRef jarg1) > > at mapObj.draw() > > at DrawMap.Main(String[] args) in >c:\temp\dotnet\mapservertest\drawmap.cs:lin > >e 63 > > > > > >Does any one can help me how to fix this error. > > > >Here is the map file I am using > > > >NAME EARS > >SIZE 90 52 > >STATUS ON > >EXTENT -125.285 25.560 -66.536 52.656 > >UNITS meters > >SYMBOLSET "C:\Symbols\symbols.sym" > >FONTSET "C:\Symbols\fonts.list" > >IMAGECOLOR 240 228 190 > >TRANSPARENT OFF > > > >LAYER > > NAME "countyp020" > > TYPE Polygon > > STATUS default > > CONNECTION "user=postgres password=pwd dbname=PAMS host=localhost >port=5432" > > CONNECTIONTYPE postgis > > DATA 'countyp020' > > > > CLASS > > OUTLINECOLOR 190 190 190 > > SYMBOL 'circle' > > SIZE 1 > > END # CLASS > >END # LAYER > > > >END # MAPFILE > > > > > >Thanks, > >Anwar > > > > From David.Hunter at FNF.COM Fri Feb 17 15:11:28 2006 From: David.Hunter at FNF.COM (Hunter, David - St. Louis Park, MN) Date: Fri, 17 Feb 2006 17:11:28 -0600 Subject: ogrtindex and directory structure Message-ID: I need to tile index several layers for 50 states. If my directory structure looks like this: /mapdata /AK . . . /WY /wy001/Parks.shp, water.shp, etc. . . . /wy045/Parks.shp, water.shp, etc. Is there any way to create tile index files at the /mapdata/ directory that point to all the /state/county subdirectories? The ogrtindex utility doesn't seem to have the ability to recurse the directory tree. I could copy all park files into a /mapdata/parks/ directory, I suppose, and then index all the files in the directory, but that would put several thousand files into a single directory, which is a bit unmanageable and ugly. Anybody else come up with a solution to this problem? David S. Hunter Sr. Software Engineer Fidelity National Geographic Solutions division of Fidelity National Financial 5353 Gamble Drive, Suite 201 St. Louis Park, MN 55416 * Email: david.hunter at fnf.com ' Phone: 952.542.1440 ext. 256 * Fax: 952.542.3859 -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at DNR.STATE.MN.US Fri Feb 17 15:12:33 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 17 Feb 2006 17:12:33 -0600 Subject: Scale bar Message-ID: I notice you haven't set the overall map UNITS. The default is METERS. If that's not correct then that could lead to all sorts of discrepancies... Steve >>> Ramesh Karra 02/17/06 4:19 PM >>> Hi, I would like to know how SCALEBAR object works. I would like to know if the length of the scalebar drawn depends on the extent of the map. When I use the following map file, the scale bar draws a line of about 2cms length and shows it as 1 inch! I feel this is not right because the initial extent covers more than 10 inches of geographical area. What am I missing here? Thanks in advance Ramesh MAP IMAGETYPE PNG EXTENT 10.3605 5.309 10.609 5.507 SIZE 600 450 SHAPEPATH "/ms4w/" IMAGECOLOR 225 225 225 FONTSET "/ms4w/apps/ms101/fonts/fonts.list" SYMBOLSET "c:\ms4w\symbols.sym" TEMPLATEPATTERN 'tm*' WEB TEMPLATE 'xxx' IMAGEPATH '/ms4w/tmp/ms_tmp/' IMAGEURL '/ms_tmp/' END # Every object in MapServer must have an END.;) SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 200 0 0 SIZE TINY END STYLE 1 SIZE 100 2 COLOR 0 0 0 UNITS INCHES INTERVALS 2 TRANSPARENT FALSE STATUS ON END # Scalebar object ends END From banders at REFRACTIONS.NET Fri Feb 17 15:23:49 2006 From: banders at REFRACTIONS.NET (Brock Anderson) Date: Fri, 17 Feb 2006 15:23:49 -0800 Subject: WFS describeFeatureType In-Reply-To: Message-ID: You're right, describeFeatureType does work on a shapefile layer, but not the SDE layer. Ideas anyone? Brock Steve Lime wrote: >I'm wondering if this might be somehow SDE related. I'm using 4.9 from just a few >minutes ago without any trouble. What happens if you point at a shapefile? > >Steve > > > >>>>Brock Anderson 02/16/06 4:04 PM >>> >>>> >>>> >Hi List, > >I am making WFS describeFeatureType requests to Mapserver 4.9 (from CVS >this morning), but the response doesn't list any attributes. I think I >have taken all the usual steps to enable WFS, including: > >- setting the LAYER's metadata "gml_include_items" to "all" >- setting DUMP TRUE in the LAYER > >The same request and map file work against Mapserver 4.6 -- in that case >the describeFeatureType response lists all the attributes. Has >something changed in the new mapserver? What does it take to allow >Mapserver to list the attributes? > >My LAYER definition is below. > >Thanks, > >Brock > > > LAYER > NAME 'CRIMS_CLAM_BEDS' > CONNECTIONTYPE sde > CONNECTION "..." > DATA "..." > CLASS > NAME "Clam Beds" > STYLE > COLOR 255 165 0 > OUTLINECOLOR 0 0 0 > END #style > END #class > TYPE polygon > STATUS ON > PROJECTION > "init=EPSG:3005" > END #projection > METADATA > "wms_title" "Clam Beds" > "wfs_title" "Clam Beds" > "gml_include_items" "all" > END #metadata > DUMP TRUE > TEMPLATE "bla" > END #end layer > > From aaronr at ECOTRUST.ORG Fri Feb 17 15:28:55 2006 From: aaronr at ECOTRUST.ORG (Aaron Racicot) Date: Fri, 17 Feb 2006 15:28:55 -0800 Subject: ogrtindex and directory structure Message-ID: Not sure what environment you are in, but on Linux I do stuff like: find . -name "*.shp" -exec ogrtindex -f "ESRI Shapefile" tindex.shp {} \; This will recurse from the current directory (i.e. mapdata) and find all of the shapefiles and add them to the new tindex.shp file. Hope this helps. A +----------------------------------------+ | Aaron Racicot | aaronr at ecotrust.org | | GIS Programmer | 503.467.0759 | +----------------------------------------+ | e c o t r u s t | | Jean Vollum Natural Capital Center | | 721 NW Ninth Avenue | | Suite 200 | | Portland, OR 97209 | | www.ecotrust.org | +----------------------------------------+ -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Hunter, David - St. Louis Park, MN Sent: Friday, February 17, 2006 3:11 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] ogrtindex and directory structure I need to tile index several layers for 50 states. If my directory structure looks like this: /mapdata /AK . . . /WY /wy001/Parks.shp, water.shp, etc. . . . /wy045/Parks.shp, water.shp, etc. Is there any way to create tile index files at the /mapdata/ directory that point to all the /state/county subdirectories? The ogrtindex utility doesn't seem to have the ability to recurse the directory tree. I could copy all park files into a /mapdata/parks/ directory, I suppose, and then index all the files in the directory, but that would put several thousand files into a single directory, which is a bit unmanageable and ugly. Anybody else come up with a solution to this problem? David S. Hunter Sr. Software Engineer Fidelity National Geographic Solutions division of Fidelity National Financial 5353 Gamble Drive, Suite 201 St. Louis Park, MN 55416 ? Email: david.hunter at fnf.com ' Phone: 952.542.1440 ext. 256 7 Fax: 952.542.3859 From karrarm at YAHOO.COM Fri Feb 17 15:51:03 2006 From: karrarm at YAHOO.COM (Ramesh Karra) Date: Fri, 17 Feb 2006 17:51:03 -0600 Subject: Scale bar Message-ID: Thanks Steve I did set the units to INCHES. It is drawing about 2cm line to indicate 1 inch of the area on the image! If I change the extent to LAEA values instead of geo-graphics values it seem to show correctly. Is there any thing that I need to do for geographics values? BTW, I read some where on the web that you have 'mapserv.js' to draw the mapserver images using javascript. I would like to have a look at it. Where can I find it? Thanks Ramesh From adam.hill at GMAIL.COM Fri Feb 17 20:46:40 2006 From: adam.hill at GMAIL.COM (Adam Hill) Date: Fri, 17 Feb 2006 22:46:40 -0600 Subject: Windows Build Kit Available Message-ID: Howard Butler has created a very handy, stand alone build kit for the WIndows version of Mapserver. It is a single zip that you can unpack and compile with a single "make". It requires MSVC 7.1 (VS.NET 2003) There are configuration option for SDE, PostGIS and Oracle Spatial and all the others in the nmake.opt file. Torrents and Direct Downloads: http://nasa1.us.archive.org/mapserver-4.8-msvc71-build-kit.zip http://madmappers.freeearthfoundation.com/mapserver-4.8-msvc71-build-kit.zip http://nasa1.us.archive.org/mapserver-4.8-msvc71-build-kit.zip.torrent http://madmappers.freeearthfoundation.com/mapserver-4.8-msvc71-build-kit.zip.torrent Howard can chime in with any other special things in the build kit. The code is from the latest CVS so you can do a update from the MS CVS to get fixes or new features as they become available and rebuild. adam... From lists at NABBLE.COM Sat Feb 18 00:27:17 2006 From: lists at NABBLE.COM (baarFan (sent by Nabble.com)) Date: Sat, 18 Feb 2006 00:27:17 -0800 Subject: Raster Problem in ms4w Message-ID: Hi everybody, I am dealing with mapserver nearly 2 months and my studies was all on linux till last 1 week. In FGS package I was able to load raster layers to my map. But in ms4w with the same map file I could not load the raster layer. But vector layer is still ok. I have updated all the links for windows. Do you have any idea why this situation occurs? An example map file is below. MAP NAME USA3 STATUS ON IMAGETYPE PNG SIZE 800 500 SHAPEPATH "../data/" EXTENT -6086744.000 -2784127 4278894 4485901 UNITS METERS PROJECTION "proj=laea" "lat_0=45" "lon_0=-100" "ellps=GRS80" "datum=NAD83" END WEB IMAGEPATH "C:/ms4w/Apache/htdocs/tmp/" IMAGEURL "/tmp/" END LAYER NAME "US state boundaries" TYPE POLYGON STATUS ON DATA "statesp020" PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD83" END CLASS NAME "US states" OUTLINECOLOR 50 50 50 SYMBOL 0 END END LAYER NAME "Nighttime lights" TYPE RASTER STATUS ON DATA "nitelti020l.tif" END END tfw file is 769.4780 0.000000 0.000000 -769.4780 -6086744.0000 4485901.0000 and my simple phpscript is here.. draw(); $image_url=$image->saveWebImage(); echo $image_url ?> thanx in advance... Burak Oguz -- View this message in context: http://www.nabble.com/Raster-Problem-in-ms4w-t1145396.html#a3003035 Sent from the Mapserver - User forum at Nabble.com. From mmkhan_10 at YAHOO.COM Sat Feb 18 02:59:30 2006 From: mmkhan_10 at YAHOO.COM (muhammad muzaffar khan) Date: Sat, 18 Feb 2006 02:59:30 -0800 Subject: HOW WE CAN USE MAPSERVER IN AUTOMATIC VEHICLE TRACKING SYSTEM(AVL) Message-ID: Hello Everybody , I want to use MAPSERVER in a vehicle tracking enviromnment .What steps/procedure I should adopt for overlaying location of a vehicle on map. regards, MMKHAN __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From matt0177 at GMAIL.COM Sat Feb 18 07:19:46 2006 From: matt0177 at GMAIL.COM (Matthew Edmondson) Date: Sat, 18 Feb 2006 08:19:46 -0700 Subject: HOW WE CAN USE MAPSERVER IN AUTOMATIC VEHICLE TRACKING SYSTEM(AVL) In-Reply-To: <20060218105930.21801.qmail@web35004.mail.mud.yahoo.com> Message-ID: For real time tracking, check out ka-map at maptools.org. It is a AJAX environment that will let you update an overlay, without having to refresh your base data. Matt On 2/18/06, muhammad muzaffar khan wrote: > Hello Everybody , > I want to use MAPSERVER in a vehicle tracking > enviromnment .What steps/procedure I should adopt for > overlaying location of a vehicle on map. > > regards, > MMKHAN > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > From gisaalter at GMAIL.COM Sat Feb 18 07:39:26 2006 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Sat, 18 Feb 2006 16:39:26 +0100 Subject: Making a wms layer available through a map file Message-ID: Hi, I've attached two files that should be able to display a wms layer, however I get a blank screen everytime I open the mapfile... Can someone point me out on what I'm doing wrong ? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: global.map Type: application/octet-stream Size: 777 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From naci0002 at UMN.EDU Sat Feb 18 08:08:17 2006 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Sat, 18 Feb 2006 10:08:17 -0600 Subject: Raster Problem in ms4w In-Reply-To: <3003035.post@talk.nabble.com> Message-ID: Have you tried using the absolute path to your raster image? e. g.: DATA "/ms4w/apps/sample1/data/nitelti020l.tif" If that also doesn't work, check your permissions and make sure that all users can read it. Good luck! -Perry On Saturday 18 February 2006 02:27, baarFan (sent by Nabble.com) wrote: > Hi everybody, > > I am dealing with mapserver nearly 2 months and my studies was all on linux > till last 1 week. In FGS package I was able to load raster layers to my > map. But in ms4w with the same map file I could not load the raster layer. > But vector layer is still ok. I have updated all the links for windows. Do > you have any idea why this situation occurs? An example map file is below. > > MAP > NAME USA3 > STATUS ON > IMAGETYPE PNG > SIZE 800 500 > SHAPEPATH "../data/" > EXTENT -6086744.000 -2784127 4278894 4485901 > UNITS METERS > PROJECTION "proj=laea" "lat_0=45" "lon_0=-100" "ellps=GRS80" > "datum=NAD83" END > WEB > IMAGEPATH "C:/ms4w/Apache/htdocs/tmp/" > IMAGEURL "/tmp/" > END > > LAYER > NAME "US state boundaries" > TYPE POLYGON > STATUS ON > DATA "statesp020" > PROJECTION > "proj=latlong" > "ellps=GRS80" > "datum=NAD83" > END > CLASS > NAME "US states" > OUTLINECOLOR 50 50 50 > SYMBOL 0 > END > END > > LAYER > NAME "Nighttime lights" > TYPE RASTER > STATUS ON > DATA "nitelti020l.tif" > END > END > > tfw file is > > 769.4780 > 0.000000 > 0.000000 > -769.4780 > -6086744.0000 > 4485901.0000 > > and my simple phpscript is here.. > > > dl('php_mapscript_46.dll'); > > $map_path="C:\ms4w\apps\sample1\htdocs\\"; > $map_file="europe.map"; > > $map = ms_newMapObj($map_path.$map_file); > > $image=$map->draw(); > $image_url=$image->saveWebImage(); > > echo $image_url > ?> > > > > thanx in advance... > > Burak Oguz > > -- > View this message in context: > http://www.nabble.com/Raster-Problem-in-ms4w-t1145396.html#a3003035 Sent > from the Mapserver - User forum at Nabble.com. -- Pericles S. Nacionales Conservation Biology Program University of Minnesota e-mail: naci0002 at umn.edu From naci0002 at UMN.EDU Sat Feb 18 08:21:45 2006 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Sat, 18 Feb 2006 10:21:45 -0600 Subject: Making a wms layer available through a map file In-Reply-To: <8d2ea9d70602180739ifa705c3sc049869fe49f5de6@mail.gmail.com> Message-ID: It is possible that the WMS server is down... On Saturday 18 February 2006 09:39, Steven De Vriendt wrote: > Hi, > > I've attached two files that should be able to display a wms layer, however > I get a blank screen everytime I open the mapfile... > Can someone point me out on what I'm doing wrong ? From dfuhry at GMAIL.COM Sat Feb 18 14:01:08 2006 From: dfuhry at GMAIL.COM (Dave Fuhry) Date: Sat, 18 Feb 2006 17:01:08 -0500 Subject: ksumap: free mapserver powered GIS data hosting In-Reply-To: Message-ID: Allan, I'm not sure my scripts would help you as much as my general methodology. You will need to tweak Apache (and php if you use it) to allow large file uploads, and use something like MegaUpload if you want progress-monitored uploading. Detect the uploaded file's type and decompress it, then loop through all the source datafiles, loading them into PostgreSQL/PostGIS (if you use it) and add them to the map metadata. You can see examples of this sort of thing at http://postgis.refractions.net/pipermail/postgis-users/2004-December/006523.html and http://cvs.sourceforge.net/viewcvs.py/dcmms/dcmms/admin/shapefile_loader.php?rev=1.50&view=markup and I'm sure other places. Much of the rest would seem to be at least partially covered by whatever web mapping interface you adopt (or develop). Thanks, Dave Fuhry On 2/17/06, Allan Doyle wrote: > Dave, > > This sounds really cool. I'll try it out as soon as I can. I'm > interested from the point of view of whether your scripts are going > to be available. I'd like to explore using them on the project > described in the attached PDF. > > Basically, I want to let people drop files into the Mac Mini via a > web interface just as you describe. We also want to do the same thing > for raster data and make that available via WMS/WCS. > > Allan > > > On Feb 16, 2006, at 21:41, Dave Fuhry wrote: > > > Lots of sites will host your email, blog, or photo galleries for free, > > but I don't know of any that do the same for your GIS data. So I > > created one. It targets users who may lack the hardware, expertise, > > or time to set up their own Mapserver environment. > > > > To try it out, create a zip file containing your project's shapefiles > > and/or geotiff images. Upload the zip file to the ksumap site. Up > > comes the familiar zoomable, pannable, queryable map interface. From > > there you can use the control panel page to customize symbology, > > update or add data, and view the mapfile. The data is accessible via > > WMF/WFS too. Basically, this is free GIS hosting. The Geography > > Department of Kent State University generously hosts this for me at: > > > > http://ksumap.geog.kent.edu/ > > > > I'd appreciate any thoughts on how to make this a really handy GIS > > tool. In particular I would love to get the advice and/or > > constructive criticism of anyone with experience hosting > > mapserver-based services in business or academia. > > > > Thanks, > > > > Dave Fuhry > > > > -- > Allan Doyle > +1.781.433.2695 > adoyle at eogeo.org > > > > > > > From kristjan at TARKVARASTUUDIO.EE Sat Feb 18 14:14:57 2006 From: kristjan at TARKVARASTUUDIO.EE (Kristjan Annus) Date: Sun, 19 Feb 2006 00:14:57 +0200 Subject: queryByPoint on dynamic layer from mysql Message-ID: Hello Doug I had the same kind of problems with querying Mygis layers but thanks to your letter I figured at least out that the id field in the feature table is responsible for generating the shapeindex values. So it is possible to run a query with queryByPoint and then select the records with appropriate ID-s from the database and get the values for the data atributes to show to user. My question is, that is it at all possible to use mapserver ProcessQueryTemplate functions with MyGis layers in PhpMapscript? I allso tried to use MySQL geometry functions to locate the shapes that intersect with my querypoint but they seemed to work somehow randomly. For instance MySQL Intersects() function showed NO result for some shapes that where clearly in the centre of my querypoint and sometimes the same function returned YES for shapes that where just near the querypoint. Does anyone in the list have some comments about this issue? Kristjan > Hi, > Trying to query points that I have added to my map with php_mapscript from a > mysql table. > I've bumbled through the "set index" problem in older versions, > have installed MapServer 4.8.1, > and now seem to be able to get records from my query, but... > while the points and labels show up on the map properly, > indicating that the layer of points is being created and the lat/lon and label > values are associated properly,... > when I process the records obtained from my queryByPoint, > using getShape to get at the details, > There is no data in the shape object's members for the dynamic layer, although > the result objects from the point query do have the correct index values that > I programmatically set (incrementing from zero by 1 ... i tried incrementing > by five to see if index values needed to be 'just so', and that broke the > point query - yes, i believe they need to increment by one from zero). > > > Querying layers (from standard shape files added to the map from a mapfile) > with the same code works as expected. I can get a shapes member values with > either values() or getValue() ... works the same both ways. > > > It was not possible to query dynamically added points in phpmapscript in the > old version I last installed (4.4) because the index for the shapes was > readonly and incorrectly set to -1. Now I can set the index values and the > queryByPoint does grab the point, but the result record seems to have no data. > I must be doing something wrong. > > > Any help is greatly appreciated! From beproject06 at YAHOO.COM Sun Feb 19 09:30:07 2006 From: beproject06 at YAHOO.COM (Apeksha Bhambhani) Date: Sun, 19 Feb 2006 09:30:07 -0800 Subject: Raster Layer Doubt Message-ID: Hi all , We have developed a web-mapping application . Our mapping application uses Mapserver , Php/Mapscript as the scripitng language and MySql as the database.And this application accepts user clicks and allows the user to edit the map : adding points, etc. Now for this map , we require a base map - which is a raster layer . We have tried editing the mapfile as follows: LAYER NAME "base" TYPE raster DATA "india.tif" END But this is of no help. The tiff file resides in the shapefiles directory . We want to include this raster image as our base map. Is this the right way or is there any other way? Could someone please help us. Thanks Apeksha --------------------------------- Yahoo! Mail Use Photomail to share photos without annoying attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: From siki at AGT.BME.HU Sun Feb 19 13:13:57 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Sun, 19 Feb 2006 20:13:57 -0100 Subject: Raster Layer Doubt {Scanned} In-Reply-To: <20060219173007.98448.qmail@web31608.mail.mud.yahoo.com> Message-ID: Hi, Some idea Add STATUS DEFAULT or STATUS ON, I am not sure what is the default. Is it a GeoTif? Do you have georeference for your raster file? Try gdalinfo to get the answer. If it's not a GeoTif than you must have an india.tfw in the same directory. What about projection? Are your shapes in the same projection? You should check the coordinates of the georeference. Have you read Raster-Howto on Mapserver web page? Bye, Zoltan On Sun, 19 Feb 2006, Apeksha Bhambhani wrote: > Hi all , > We have developed a web-mapping application . Our mapping application uses Mapserver , Php/Mapscript as the scripitng language and MySql as the database.And this application accepts user clicks and allows the user to edit the map : adding points, etc. > Now for this map , we require a base map - which is a raster layer . > We have tried editing the mapfile as follows: > > LAYER > NAME "base" > TYPE raster > DATA "india.tif" > END > > But this is of no help. The tiff file resides in the shapefiles directory . > We want to include this raster image as our base map. Is this the right way or is there any other way? > > Could someone please help us. > Thanks > Apeksha > > > > --------------------------------- > Yahoo! Mail > Use Photomail to share photos without annoying attachments. From warmerdam at POBOX.COM Sun Feb 19 09:54:29 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Sun, 19 Feb 2006 12:54:29 -0500 Subject: Raster Layer Doubt In-Reply-To: <20060219173007.98448.qmail@web31608.mail.mud.yahoo.com> Message-ID: Apeksha Bhambhani wrote: > Hi all , > We have developed a web-mapping application . Our mapping application > uses Mapserver , Php/Mapscript as the scripitng language and MySql as > the database.And this application accepts user clicks and allows the > user to edit the map : adding points, etc. > Now for this map , we require a base map - which is a raster layer . > We have tried editing the mapfile as follows: > > LAYER > NAME "base" > TYPE raster > DATA "india.tif" > END > > But this is of no help. The tiff file resides in the shapefiles directory . > We want to include this raster image as our base map. Is this the right > way or is there any other way? Apeksha, First, you might want to experiment with a full absolute path to the raster file, to see if file paths are the issue. Second, the most common problem in such situations is that the extents of the file are not overlapping the extents of the map. You might want to check the file with "gdalinfo" to see what extents gdalinfo is getting. Keep in mind that without a PROJECTION block the raster is assumed to be in the same coordinate system as the map, so don't assume reprojection will be happening. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From gisaalter at GMAIL.COM Sun Feb 19 12:21:14 2006 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Sun, 19 Feb 2006 21:21:14 +0100 Subject: Making a wms layer available through a map file In-Reply-To: <200602181021.45316.naci0002@umn.edu> Message-ID: Hi, thanks for answering my question. Do I've to integrate those parameters in the CONNECTION tag or where do I have to set those parameters Ross ? It's not my purpose to see the layer by using it in the url but to make an extra WMS layer in the map-file... -------------- next part -------------- An HTML attachment was scrubbed... URL: From punkish at EIDESIS.ORG Sun Feb 19 13:06:39 2006 From: punkish at EIDESIS.ORG (Puneet Kishor) Date: Sun, 19 Feb 2006 15:06:39 -0600 Subject: Making a wms layer available through a map file In-Reply-To: <8d2ea9d70602191221t123559ecx700984b796416760@mail.gmail.com> Message-ID: Hi, Given the way your question stands, I have no idea what you are talking about. You have not quoted the earlier emails, you have not referred to the question whose reply you are referring to... generally, I have no idea what this is about. Yet, it has landed in my email because it is on the list. If you include the entire thread, not only will someone else be able to answer possibly, but others may also learn from your experience. Once it gets archived, your experience will be there and continue to educate others. I attach "'How To Ask Questions The Smart Way' by Eric Steven Raymond" that may help -- http://www.catb.org/~esr/faqs/smart-questions.html On Feb 19, 2006, at 2:21 PM, Steven De Vriendt wrote: > Hi, thanks for answering my question. > Do I've to integrate those parameters in the CONNECTION tag or where > do > I have to set those parameters Ross ? It's not my > purpose to see the layer by using it in the url but to make an extra > WMS layer in the map-file... Many thanks, -- Puneet Kishor From jacob.delfos at MAUNSELL.COM Sun Feb 19 22:59:56 2006 From: jacob.delfos at MAUNSELL.COM (Delfos, Jacob) Date: Mon, 20 Feb 2006 14:59:56 +0800 Subject: Tileindex of DGN's being opened as shapefile layer Message-ID: Hi All, I'm having some trouble creating a tile-index of DGN's, using php_mapscript (Chameleon). My tileindex is a shapefile. But I think the layer should be treated as OGR, yet the connectiontype seems to indicate it thinks it is a shapefile layer. According to my PHP log, it tries to open it as a shapefile, which obviously fails: [20-Feb-2006 14:45:49] PHP Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'DGNs'. in C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560 [20-Feb-2006 14:45:49] PHP Warning: [MapServer Error]: msTiledSHPOpenFile(): Unable to open a single tile to use as a template in layer DGNs. in C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560 [20-Feb-2006 14:45:49] PHP Warning: [MapServer Error]: msSHPOpenFile(): (c:/data/hongkong/10nwb.dgn) in C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560 [20-Feb-2006 14:45:49] PHP Warning: [MapServer Error]: msSHPOpenFile(): (c:/data/hongkong/10nwb.dgn) in C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560 [20-Feb-2006 14:45:49] PHP Warning: [MapServer Error]: msSHPOpenFile(): (c:/data/hongkong/10nwa.dgn) in C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560 [20-Feb-2006 14:45:49] PHP Warning: [MapServer Error]: msSHPOpenFile(): (c:/data/hongkong/10nwa.dgn) in C:\chameleon\htdocs\common\wrapper\drawmap.php on line 560 I based my layer definition on http://mapserver.gis.umn.edu/docs/howto/ogr_howto/#tileindex-with-ogr : LAYER NAME "DGNs" TYPE LINE STYLEITEM "AUTO" CONNECTIONTYPE OGR TILEINDEX "dindex.shp,0" STATUS ON CLASS COLOR 150 150 150 END END The DBF of the shapefile has 1 column, with these values: location C:\data\10nwa.dgn,0 C:\data\10nwb.dgn,0 I am using php_mapscript 4.6.1, with php 5.05. Can someone tell me what I'm doing wrong? Regards, Jacob JACOB DELFOS GIS ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street, Leederville, WA 6007 PO Box 81, Leederville, WA 6902 Western Australia ABN 20 093 846 925 Tel + 61 8 9281 6185 Fax + 61 8 9281 6297 jacob.delfos at maunsell.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From umn-ms at HYDROTEC.DE Sun Feb 19 23:54:41 2006 From: umn-ms at HYDROTEC.DE (Benedikt Rothe) Date: Mon, 20 Feb 2006 08:54:41 +0100 Subject: Again: imgObj2java.awt.image In-Reply-To: <200602171756.32882.lichte@icbm.de> Message-ID: Hi Oliver Do you mean this? package de.hydrotec.test.WebMapGUITest; import java.io.ByteArrayInputStream; import java.io.FileOutputStream; import javax.imageio.ImageIO; import edu.umn.gis.mapscript.mapObj; public class WorkWithImageTest { public static void main(String args[]) throws java.io.IOException { System.loadLibrary("mapscript"); mapObj map = new mapObj("test.map"); edu.umn.gis.mapscript.imageObj ms_img = map.drawQuery(); // Output in Mapserver-style ms_img.save("ms.png",map); java.io.InputStream is = new ByteArrayInputStream(ms_img.getBytes()); java.awt.image.BufferedImage java_img = ImageIO.read(is); // Output in Java-Style ImageIO.write(java_img,"png",new FileOutputStream("java.png")); } } Benedikt PS: Using Mapserver for a desktop-app sounds intersting.I'm curious to know which advantages over JUMP/uDig (or something like this) you see/hope/expect? UMN MapServer Users List schrieb am 17.02.2006 17:56:32: > Hi Fernando and thank you very much for your answer, > > I need that for an abstraction layer on mapserver to develop desktop > applications. Do you know what imageObj.getByte() returns? There is a lack of > documentation for JavaMapserver-API, yet, isn't it? > > Best regards, > Oliver > > > Am Freitag, 17. Februar 2006 17:31 schrieb Fernando Simon: > > Hi Oliver, > > I already used JavaMapscript but never needed to convert the > > imageobj to awt.image. > > I don't believe that it's possible to do directly, so the best way > > is save the image and after use the awt.image. > > Best regards. > > > > ------------------------------------------------------------------------ > > Fernando Simon > > Mapserver and Oracle Spatial developer > > G10 - Laboratorio de Computacao Aplicada - Brazil > > http://www.univali.br/g10 - UNIVALI/CTTMAR > > ------------------------------------------------------------------------ > > > > Oliver Lichte (by way of Oliver Lichte ) wrote: > > > Hello. > > > > > > Was this question too trivial or too difficult??? Unfortunately, no-one > > > answered untit now, so I'll try it again: > > > > > > I'd like to convert imageObj to java.awt.image. Is it possible to get > > > direct pixel access via Java mapserver-API or do I have always to create > > > a temporary file to share the image? > > > > > > What is the content of the byte-array returned by method getByte()? > > > > > > Regards, > > > Oliver > > -- > Junior Research Group IMPULSE > ICBM * Carl-v.-Ossietzky University of Oldenburg > PO-Box 2503 * 26111 Oldenburg - Germany - http://www.icbm.de/impulse > room: W15-2-239 * fon:+49-441-798-3622 * fax:+49-441-798-3404 -------------- next part -------------- An HTML attachment was scrubbed... URL: From stefan.schwarzer at GRID.UNEP.CH Mon Feb 20 01:05:49 2006 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Mon, 20 Feb 2006 10:05:49 +0100 Subject: LABELITEM problem with Postgis Message-ID: Hi there, I have a problem displaying the labels of a specific fields of my postgres/postgis table on the map. It always gives me this error message: Warning: [MapServer Error]: getString(): Parsing error near (name): (line 436) which is this line: $map_file = "geo_map.map"; $map = ms_newMapObj($map_path.$map_file); But it's only when I add the line "LABELITEM name" into the map file. The field name exists, I can query the field with a SELECT command within the database... LAYER NAME sreg_boundaries CONNECTIONTYPE postgis CONNECTION 'user=xx password=xx dbname=xx' TYPE POLYGON LABELCACHE on DATA 'the_geom FROM subregions USING UNIQUE gid USING srid=-1' LABELITEM name CLASSITEM name SIZEUNITS pixels CLASS NAME 'Subregional Boundaries' .... Any idea why this is? Thanks for any hints! Stef -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at NABBLE.COM Mon Feb 20 01:31:55 2006 From: lists at NABBLE.COM (NBolbot (sent by Nabble.com)) Date: Mon, 20 Feb 2006 01:31:55 -0800 Subject: Failed connect to Oracle DB Message-ID: Hello everybody, I have my problems to get data from Oracle Database. I use compilied version of mapserver for C#. There is no problems to draw a picture using test-shapefiles. But when I trying to draw data from Oracle Database I get an empty picture without any error message. I use following map-file: NAME DEMO STATUS ON SIZE 400 400 EXTENT 1 1 200 200 UNITS METERS IMAGETYPE GIF IMAGECOLOR 255 255 255 # # Start of web interface definition # WEB MINSCALE 1 MAXSCALE 100 # # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root # of the drive where the .MAP file resides. # IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" LOG "/tmp/ms_tmp/gmap.log" END # # Start of layer definitions # LAYER NAME test TYPE LINE CONNECTIONTYPE oraclespatial CONNECTION "myuser/test at test" DATA "Geometry FROM MyTable using srid = 1000005" CLASS STYLE OUTLINECOLOR 0 0 0 COLOR 255 0 255 END END END END # Map File What configuration should I make to work with Oracle Database? -- View this message in context: http://www.nabble.com/Failed-connect-to-Oracle-DB-t1154157.html#a3027692 Sent from the Mapserver - User forum at Nabble.com. From stefan.schwarzer at GRID.UNEP.CH Mon Feb 20 01:33:33 2006 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Mon, 20 Feb 2006 10:33:33 +0100 Subject: LABELITEM problem with Postgis In-Reply-To: Message-ID: Hey, what the h... is this. For years the labelitem command without using apostrophes worked. Now, trying everything to find a solution to the below mentioned problem, I put the name of the column into apostrophes.... and then it worked... LABELITEM 'name' Gush, what's that? Stef > Hi there, > > I have a problem displaying the labels of a specific fields of my > postgres/postgis table on the map. > > It always gives me this error message: > > Warning: [MapServer Error]: getString(): Parsing error near (name): > (line 436) > > which is this line: > > $map_file = "geo_map.map"; > $map = ms_newMapObj($map_path.$map_file); > > But it's only when I add the line "LABELITEM name" into the map > file. The field name exists, I can query the field with a SELECT > command within the database... > > LAYER > NAME sreg_boundaries > CONNECTIONTYPE postgis > CONNECTION 'user=xx password=xx dbname=xx' > TYPE POLYGON > LABELCACHE on > DATA 'the_geom FROM subregions USING UNIQUE gid USING > srid=-1' > LABELITEM name > CLASSITEM name > SIZEUNITS pixels > CLASS > NAME 'Subregional Boundaries' > .... > > Any idea why this is? > > Thanks for any hints! > > Stef > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc.jacquin at MAGELLIUM.FR Mon Feb 20 02:57:50 2006 From: marc.jacquin at MAGELLIUM.FR (Marc Jacquin) Date: Mon, 20 Feb 2006 11:57:50 +0100 Subject: Failed connect to Oracle DB In-Reply-To: <3027692.post@talk.nabble.com> Message-ID: The DATA tag should be DATA "Geometry FROM MyTable using srid 1000005" instead of DATA "Geometry FROM MyTable using srid = 1000005" (Remove "="). Also make sure that the Oracle geometry type is what you expect. You may also add some debug or log by defining the MS_ERRORFILE environment variable (e.g. c:/temp/mserror.txt) and check for Oracle errors in it. Where did you get the compiled version for C#? Marc -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de NBolbot (sent by Nabble.com) Envoy??: lundi 20 f?vrier 2006 10:32 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] Failed connect to Oracle DB Hello everybody, I have my problems to get data from Oracle Database. I use compilied version of mapserver for C#. There is no problems to draw a picture using test-shapefiles. But when I trying to draw data from Oracle Database I get an empty picture without any error message. I use following map-file: NAME DEMO STATUS ON SIZE 400 400 EXTENT 1 1 200 200 UNITS METERS IMAGETYPE GIF IMAGECOLOR 255 255 255 # # Start of web interface definition # WEB MINSCALE 1 MAXSCALE 100 # # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root # of the drive where the .MAP file resides. # IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" LOG "/tmp/ms_tmp/gmap.log" END # # Start of layer definitions # LAYER NAME test TYPE LINE CONNECTIONTYPE oraclespatial CONNECTION "myuser/test at test" DATA "Geometry FROM MyTable using srid = 1000005" CLASS STYLE OUTLINECOLOR 0 0 0 COLOR 255 0 255 END END END END # Map File What configuration should I make to work with Oracle Database? -- View this message in context: http://www.nabble.com/Failed-connect-to-Oracle-DB-t1154157.html#a3027692 Sent from the Mapserver - User forum at Nabble.com. From sjtirtha at GMX.DE Mon Feb 20 03:15:00 2006 From: sjtirtha at GMX.DE (Steve Jonathan Tirtha) Date: Mon, 20 Feb 2006 12:15:00 +0100 Subject: IE problem with image loading Message-ID: Hi, I have a problem with my web application based on MapServer. I found the problem only in IE, if I load an image using chameleon->drawmap.php . And it is not for all images, only some images. It works normall in Firefox. Can anyone help me to solve this problem ? Regards, Steve Tirtha -- Telefonieren Sie schon oder sparen Sie noch? NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie From williams at WEBSAWYER.COM Mon Feb 20 05:50:41 2006 From: williams at WEBSAWYER.COM (Doug Williams) Date: Mon, 20 Feb 2006 06:50:41 -0700 Subject: queryByPoint on dynamic layer from mysql Message-ID: First I want to clarify a couple of things I wrote incorrectly before. I said I was now able to get records back from the query, but they had no data. That lacked a step. The records from the query on the layer using getResult do have good data now, but when I try to getShape using that data, the result is not good. Also, I said the bound values were zero for the bad shapes, but they are minus one. Eric, I don't think the php_mapscript library is working the same as the mapscript library (see response to Kristjan). Your suggestion to use a lookup array will provide a work around for php, now that one can get the index value back from the layer->getResult after queryByPoint with php_mapscript. But it will also be necessary to get data from the database instead of the shape. I know that this would likely be wanted anyway, but it should not be required to get the data that was just put into the shape. It will be necessary to do a check to see if a layer is 'dynamic'* to do a database query rather than just going into the shape like all the other layers. * yes, all the layers are dynamic, i mean that the layer was created using mapscript as opposed to being loaded from a mapfile. Kristjan, are you using PHP or perl? I have not been able to use the id from the database table for shape index values. Are you autoindexing your table? I find that the shape index values need to have values from zero to the number of points added to the layer, but that they do not necessarily have to be added in order. I find that any points added that have an index value set for the point shape that is equal to or greater than the number of points added to my new layer generate the following error in php_mapscript when I queryByPoint that point shape: Fatal error: [MapServer Error]: msINLINELayerGetShape(): No inline feature with this index. (This is the same error from earlier versions that did not allow the index value to be set in php_mapscript. All getResult shapeindex values were -1 at that time.) I try not to auto index my tables, so I have not checked this but it would seem if one were auto-indexing and if auto indexing starts at 1, that would mean that the point with the highest index would generate this error even though all the others worked. For every record deleted from the table, the situation would get progressively worse for entries that were subsequently added because their index value would be too high. If one only clicked on points on the map that had index values less than the number of points added, no error would be generated. IF THIS IS WRONG, HOPEFULLY SOMEONE WILL LET EVERYONE KNOW. Thanks for the response's. I think I will recode the page in perl and see what happens. From dennisjan at IBUILDINGS.NL Mon Feb 20 06:05:42 2006 From: dennisjan at IBUILDINGS.NL (DJ Broerse) Date: Mon, 20 Feb 2006 15:05:42 +0100 Subject: Problems with join Message-ID: An HTML attachment was scrubbed... URL: From markadams at CUESTASYS.COM Mon Feb 20 06:40:00 2006 From: markadams at CUESTASYS.COM (Mark Adams) Date: Mon, 20 Feb 2006 09:40:00 -0500 Subject: Solution for OGR Virtual polygon data In-Reply-To: Message-ID: Emil, Thanks, you are right, that works. I'd had the same response from Frank W. I'm not sure where the format for these strings is specified or documented - the only information I was able to find said to do things differently. For the benefit of anyone else trying to use this functionality, I also discovered that you could create a multi-polygon as follows: POLYGON (( 501453.34 4800585.97, 501576.14 4800590.44, 501569.85 4800522, 501471.61 4800521.63, 501453.34 4800585.97 )) ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com -----Original Message----- From: Emil Zegers [mailto:taatuut at planet.nl] Sent: February 13, 2006 4:28 PM To: Mark Adams; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Solution for OGR Virtual polygon data Hello Mark, The solution for your problem lies in the format of the polygon data. You should use: POLYGON (( 501453.34 4800585.97, 501576.14 4800590.44, 501569.85 4800522, 501471.61 4800521.63, 501453.34 4800585.97 )) Instead of the format you used. I got it working that way. Regards, Emil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Mark Adams Sent: donderdag 9 februari 2006 22:11 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] OGR Virtual Well, I've tried it and this is what I found: -adding a Projection statement in the MAP file changed nothing. I added PROJECTION elements to each layer, and played around with changing layers to different projections - the other layers all worked fine, reprojection worked fine etc. -adding the EPSG in the OVF file *finally* generated an error: [MapServer Error]: msOGRFileOpen(): Open failed for OGR connection `parcel_test.ovf'. Failed to import LayerSRS `EPSG:26917'. The OVF file now looks like this: ODBC:parcel_test,PROPERTY_VIRTUAL SELECT GEOMETRY FROM PROPERTY_VIRTUAL wkbPolygon EPSG:26917 I don't know why this would fail: the epsg file in proj\nad folder has this code defined, and mapserver is able to use it for the other layers (which are shapefiles). Any thoughts? Thanks for your help so far. ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com -----Original Message----- From: Emil Zegers [mailto:taatuut at planet.nl] Sent: February 9, 2006 3:57 PM To: Mark Adams; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] OGR Virtual Hello Mark, You are correct with your explanation about PROJECTION but since I had this case last year where I did have to add PROJECTION to an OVF layer although all data was in the same projection I thought it might be worth trying it. However, I have not fully test cased this and I don't know enough about the underlying code to be sure this was the (right) solution to the problem. Regards, Emil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Mark Adams Sent: donderdag 9 februari 2006 21:44 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] OGR Virtual I will try that. However, my understanding of PROJECTION is that it is not required unless you have data in more than one projection, or want to display the data in a projection different from the one the data is in. Is that not correct? Thanks. ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com -----Original Message----- From: Emil Zegers [mailto:taatuut at planet.nl] Sent: February 9, 2006 3:41 PM To: Mark Adams; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] OGR Virtual Hello Mark, Have you tried adding a PROJECTION to the LAYER containing the ovf file and/or the ovf file? Something like: LAYER NAME "Virtual Parcel" DEBUG ON STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "parcel_test.ovf" DATA "parcel_test" TYPE POLYGON # fill projection parameter, e.g. 28992 for Dutch system PROJECTION "init=epsg:12345" END TEMPLATE "null" CLASS NAME "Virtual Parcel" STYLE COLOR 255 1 5 OUTLINECOLOR 168 112 0 END END END In the past I had situations where I needed to put the PROJECTION in the LAYER and not in the OVF file. Also, use STATUS DEFAULT for testing purposes so the layer is always on. Regards, Emil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Mark Adams Sent: donderdag 9 februari 2006 21:12 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] OGR Virtual Hello, I would like to know if there was ever a successful resolution to Frank's question below. I am in the same situation: I cannot get the OGR virtual layer to render on my map. I have had no problem with points. However when I try to render a virtual polygon I get no error, just no feature on the map. The other layers all render without problem. I get no error from OGRINFO either. I've tried a number of different ways of configuring the OVF file, the data in the database, and the MAP file. Numerous combinations result in "success" in the sense of no errors, but still no features. Here is my most recent attempt: Connection: I'm using an ODBC connection to an MS Access database. The ODBC connection is called "parcel_test". OVF: ODBC:parcel_test,PROPERTY_VIRTUAL SELECT GEOMETRY FROM PROPERTY_VIRTUAL wkbPolygon MAP: LAYER NAME "Virtual Parcel" DEBUG ON STATUS ON CONNECTIONTYPE OGR CONNECTION "parcel_test.ovf" DATA "parcel_test" TYPE POLYGON TEMPLATE "null" CLASS NAME "Virtual Parcel" STYLE COLOR 255 1 5 OUTLINECOLOR 168 112 0 END END END I've got one record in the PROPERTY_VIRTUAL table, with the GEOMETRY value set as follows: POLYGON('501453.34 4800585.97,501576.14 4800590.44,501569.85 4800522,501471.61 4800521.63,501453.34 4800585.97') I've also tried storing the geometry without the quotes, brackets, and keyword POLYGON but it doesn't change the result. From markadams at CUESTASYS.COM Mon Feb 20 06:43:36 2006 From: markadams at CUESTASYS.COM (Mark Adams) Date: Mon, 20 Feb 2006 09:43:36 -0500 Subject: Solution for OGR Virtual polygon data In-Reply-To: Message-ID: - apologies - accidentally sent the previous email before I'd completed it - For the benefit of anyone else trying to use this functionality, I also discovered that you could create a multi-polygon as follows: POLYGON((x y,...),(x y, ...)) I think this is *supposed* to be a polygon with holes, but in my experience this displayed as multiple polygons. Fortunately in my app I don't need to worry about holes.... Thanks everyone for the help in resolving the OGR polygon data issues. ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com -----Original Message----- From: Emil Zegers [mailto:taatuut at planet.nl] Sent: February 13, 2006 4:28 PM To: Mark Adams; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Solution for OGR Virtual polygon data Hello Mark, The solution for your problem lies in the format of the polygon data. You should use: POLYGON (( 501453.34 4800585.97, 501576.14 4800590.44, 501569.85 4800522, 501471.61 4800521.63, 501453.34 4800585.97 )) Instead of the format you used. I got it working that way. Regards, Emil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Mark Adams Sent: donderdag 9 februari 2006 22:11 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] OGR Virtual Well, I've tried it and this is what I found: -adding a Projection statement in the MAP file changed nothing. I added PROJECTION elements to each layer, and played around with changing layers to different projections - the other layers all worked fine, reprojection worked fine etc. -adding the EPSG in the OVF file *finally* generated an error: [MapServer Error]: msOGRFileOpen(): Open failed for OGR connection `parcel_test.ovf'. Failed to import LayerSRS `EPSG:26917'. The OVF file now looks like this: ODBC:parcel_test,PROPERTY_VIRTUAL SELECT GEOMETRY FROM PROPERTY_VIRTUAL wkbPolygon EPSG:26917 I don't know why this would fail: the epsg file in proj\nad folder has this code defined, and mapserver is able to use it for the other layers (which are shapefiles). Any thoughts? Thanks for your help so far. ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com -----Original Message----- From: Emil Zegers [mailto:taatuut at planet.nl] Sent: February 9, 2006 3:57 PM To: Mark Adams; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] OGR Virtual Hello Mark, You are correct with your explanation about PROJECTION but since I had this case last year where I did have to add PROJECTION to an OVF layer although all data was in the same projection I thought it might be worth trying it. However, I have not fully test cased this and I don't know enough about the underlying code to be sure this was the (right) solution to the problem. Regards, Emil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Mark Adams Sent: donderdag 9 februari 2006 21:44 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] OGR Virtual I will try that. However, my understanding of PROJECTION is that it is not required unless you have data in more than one projection, or want to display the data in a projection different from the one the data is in. Is that not correct? Thanks. ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com -----Original Message----- From: Emil Zegers [mailto:taatuut at planet.nl] Sent: February 9, 2006 3:41 PM To: Mark Adams; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] OGR Virtual Hello Mark, Have you tried adding a PROJECTION to the LAYER containing the ovf file and/or the ovf file? Something like: LAYER NAME "Virtual Parcel" DEBUG ON STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "parcel_test.ovf" DATA "parcel_test" TYPE POLYGON # fill projection parameter, e.g. 28992 for Dutch system PROJECTION "init=epsg:12345" END TEMPLATE "null" CLASS NAME "Virtual Parcel" STYLE COLOR 255 1 5 OUTLINECOLOR 168 112 0 END END END In the past I had situations where I needed to put the PROJECTION in the LAYER and not in the OVF file. Also, use STATUS DEFAULT for testing purposes so the layer is always on. Regards, Emil -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Mark Adams Sent: donderdag 9 februari 2006 21:12 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] OGR Virtual Hello, I would like to know if there was ever a successful resolution to Frank's question below. I am in the same situation: I cannot get the OGR virtual layer to render on my map. I have had no problem with points. However when I try to render a virtual polygon I get no error, just no feature on the map. The other layers all render without problem. I get no error from OGRINFO either. I've tried a number of different ways of configuring the OVF file, the data in the database, and the MAP file. Numerous combinations result in "success" in the sense of no errors, but still no features. Here is my most recent attempt: Connection: I'm using an ODBC connection to an MS Access database. The ODBC connection is called "parcel_test". OVF: ODBC:parcel_test,PROPERTY_VIRTUAL SELECT GEOMETRY FROM PROPERTY_VIRTUAL wkbPolygon MAP: LAYER NAME "Virtual Parcel" DEBUG ON STATUS ON CONNECTIONTYPE OGR CONNECTION "parcel_test.ovf" DATA "parcel_test" TYPE POLYGON TEMPLATE "null" CLASS NAME "Virtual Parcel" STYLE COLOR 255 1 5 OUTLINECOLOR 168 112 0 END END END I've got one record in the PROPERTY_VIRTUAL table, with the GEOMETRY value set as follows: POLYGON('501453.34 4800585.97,501576.14 4800590.44,501569.85 4800522,501471.61 4800521.63,501453.34 4800585.97') I've also tried storing the geometry without the quotes, brackets, and keyword POLYGON but it doesn't change the result. From warmerdam at POBOX.COM Mon Feb 20 08:55:46 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 20 Feb 2006 11:55:46 -0500 Subject: Solution for OGR Virtual polygon data In-Reply-To: Message-ID: Mark Adams wrote: > Emil, > > Thanks, you are right, that works. I'd had the same response from Frank W. > I'm not sure where the format for these strings is specified or documented - > the only information I was able to find said to do things differently. > > For the benefit of anyone else trying to use this functionality, I also > discovered that you could create a multi-polygon as follows: > > POLYGON (( 501453.34 4800585.97, 501576.14 4800590.44, 501569.85 4800522, > 501471.61 4800521.63, 501453.34 4800585.97 )) Mark, The format is OpenGIS Well Known Text geometry format from the Simple Features for SQL Specification (99-049 I think). It is the same format reported by ogrinfo, and the textual format of PostGIS or MySQL Spatial. Technically the above is not a multi-polygon. A multi-polygon (in simple features) is a collection of polygon objects. A polygon is one or more rings, with one being the outer ring and the rest being inner rings. So in the parliance I was used to in the old days, a polygon is an island potentially with lakes cut out of it. A multipolygon is a much of such islands. Multipolygons use the MULTIPOLYGON keyword. A 'polygon' object in a shapefile may be either a simple features POLYGON or MULTIPOLYGON depending on whether there are multiple outer rings. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From siki at AGT.BME.HU Mon Feb 20 15:29:07 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Mon, 20 Feb 2006 22:29:07 -0100 Subject: Problems with join {Scanned} In-Reply-To: <43F9CCB6.8030004@ibuildings.nl> Message-ID: Hi, I have used one-to-many join between dbf files. I have used layer template outside class definitions, one template for all classes. What is in your template you should refer to columns in the joint table as joinname_columnname. AFAIK it is case sensitive I had to use lower case for the join name and upper case for the columnname. I think you should avoid "_" in the column and join name. I hope this help. Bye Zoltan On Mon, 20 Feb 2006, DJ Broerse wrote: > Hi List and Steve > > A while ago I send this message to the list and Steve but I didn't get > an answer. > is there nobody who uses the join functionality of MapServer > It is for me very important because I'm customizing Pmapper/MapServer for > the local Dutch government > so I hope somebody can and will help me. > > Dennis-Jan > > -------- Original Message -------- > Subject: Re: [UMN_MAPSERVER-USERS] Problems with join > Date: Wed, 08 Feb 2006 11:29:24 +0100 > From: DJ Broerse > To: Steve Lime , > mapserver-users at lists.umn.edu > References: > > Hey Steve > > I have two dfb files: gbkn-philippine and eigenaren > The reference is gbkn-philippine.willekeur and eigenaren.aa_linkid > What I want is if I query the the layer then I like to see the data of > eigenaren.dbf . > I can't figure out what is wrong. > Maybe I have to use CONNECTION or CONNECTIONTYPE but I don't know what. > TEMPLATE isn't necessary because I use a one-to-one relation I think. > > I really hope you can help me > > Dennis-Jan > > LAYER > > NAME "gbkn-philippine" > > TYPE line > > STATUS ON > > DATA "join/gbkn-philippine" > > MAXSCALE 25100 > > METADATA > > "DESCRIPTION" "gbkn-philippine" > > END # Metadata > > JOIN > > NAME "join1" > > TABLE "gisdata/join/eigenaren.dbf" > > FROM "WILLEKEUR" > > TO "AA_LINKID" > > TYPE ONE-TO-ONE > > END > > CLASS > > Name "gbkn-philippine" > > COLOR 249 49 249 > > TEMPLATE queryzichtbaar > > SYMBOL "vet" > > SIZE 2 > > END # Class > > END # Layer > > > > Steve Lime wrote: > > How are you referencing the attributes in the joined file? I believe the syntax is [joinname_attrname] in the template. Can you share the mapfile snippet and the template? > > > > Steve > > > > > > From Mark.Hudson at XWAVE.COM Mon Feb 20 12:22:51 2006 From: Mark.Hudson at XWAVE.COM (Hudson, Mark (xwave)) Date: Mon, 20 Feb 2006 15:22:51 -0500 Subject: Specifying MINDISTANCE for point features of a shapefile??? Message-ID: Hello: I have a shapefile of cities (represented by points obviously), and I want to tell Mapserver to draw features a minimum distance apart - just like the MINDISTANCE parameter of the LABEL object. The cities shapefile covers a large area, so I want to display the layer at small scales. However, at this scale some cities appear very close to one another - and actually overlap. Can I tell Mapserver to not do this and only draw them when there is a specified distance between features? Thanks, Mark Hudson. -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at DNR.STATE.MN.US Mon Feb 20 12:55:46 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 20 Feb 2006 14:55:46 -0600 Subject: Specifying MINDISTANCE for point features of a shapefile??? Message-ID: If you use an an ANNOTATION layer type instead of a POINT you should be ok. ANNOTATION layers link the point symbol with the text so the MINDISTANCE set in the text label is honored. You may want to pre-sort your city shapefile based on population if possible (in ascending order) so that the largest cities gain preference. Steve >>> "Hudson, Mark (xwave)" 02/20/06 2:22 PM >>> Hello: I have a shapefile of cities (represented by points obviously), and I want to tell Mapserver to draw features a minimum distance apart - just like the MINDISTANCE parameter of the LABEL object. The cities shapefile covers a large area, so I want to display the layer at small scales. However, at this scale some cities appear very close to one another - and actually overlap. Can I tell Mapserver to not do this and only draw them when there is a specified distance between features? Thanks, Mark Hudson. From steve.lime at DNR.STATE.MN.US Mon Feb 20 12:57:13 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 20 Feb 2006 14:57:13 -0600 Subject: WFS describeFeatureType Message-ID: If you query the SDE layer, irregardless of the schema output, what do you get? Steve >>> Brock Anderson 02/17/06 5:23 PM >>> You're right, describeFeatureType does work on a shapefile layer, but not the SDE layer. Ideas anyone? Brock Steve Lime wrote: >I'm wondering if this might be somehow SDE related. I'm using 4.9 from just a few >minutes ago without any trouble. What happens if you point at a shapefile? > >Steve > > > >>>>Brock Anderson 02/16/06 4:04 PM >>> >>>> >>>> >Hi List, > >I am making WFS describeFeatureType requests to Mapserver 4.9 (from CVS >this morning), but the response doesn't list any attributes. I think I >have taken all the usual steps to enable WFS, including: > >- setting the LAYER's metadata "gml_include_items" to "all" >- setting DUMP TRUE in the LAYER > >The same request and map file work against Mapserver 4.6 -- in that case >the describeFeatureType response lists all the attributes. Has >something changed in the new mapserver? What does it take to allow >Mapserver to list the attributes? > >My LAYER definition is below. > >Thanks, > >Brock > > > LAYER > NAME 'CRIMS_CLAM_BEDS' > CONNECTIONTYPE sde > CONNECTION "..." > DATA "..." > CLASS > NAME "Clam Beds" > STYLE > COLOR 255 165 0 > OUTLINECOLOR 0 0 0 > END #style > END #class > TYPE polygon > STATUS ON > PROJECTION > "init=EPSG:3005" > END #projection > METADATA > "wms_title" "Clam Beds" > "wfs_title" "Clam Beds" > "gml_include_items" "all" > END #metadata > DUMP TRUE > TEMPLATE "bla" > END #end layer > > From banders at REFRACTIONS.NET Mon Feb 20 15:03:26 2006 From: banders at REFRACTIONS.NET (Brock Anderson) Date: Mon, 20 Feb 2006 15:03:26 -0800 Subject: WFS describeFeatureType In-Reply-To: Message-ID: Steve, I'm not quite sure what you mean. A describeFeatureType response for the layer shown below looks like this: I hadn't noticed before, but getFeature seems to crash mapserver when I request the same SDE layer. Mapserver is running in Windows, and I just see one of those ugly memory errors. Nothing in the apache log. WFS getCapabilities works. WMS getMap requests work fine for the same SDE layer. Brock Steve Lime wrote: >If you query the SDE layer, irregardless of the schema output, what do you get? > >Steve > > > >>>>Brock Anderson 02/17/06 5:23 PM >>> >>>> >>>> >You're right, describeFeatureType does work on a shapefile layer, but >not the SDE layer. > >Ideas anyone? > >Brock > >Steve Lime wrote: > > > >>I'm wondering if this might be somehow SDE related. I'm using 4.9 from just a few >>minutes ago without any trouble. What happens if you point at a shapefile? >> >>Steve >> >> >> >> >> >>>>>Brock Anderson 02/16/06 4:04 PM >>> >>>>> >>>>> >>>>> >>>>> >>Hi List, >> >>I am making WFS describeFeatureType requests to Mapserver 4.9 (from CVS >>this morning), but the response doesn't list any attributes. I think I >>have taken all the usual steps to enable WFS, including: >> >>- setting the LAYER's metadata "gml_include_items" to "all" >>- setting DUMP TRUE in the LAYER >> >>The same request and map file work against Mapserver 4.6 -- in that case >>the describeFeatureType response lists all the attributes. Has >>something changed in the new mapserver? What does it take to allow >>Mapserver to list the attributes? >> >>My LAYER definition is below. >> >>Thanks, >> >>Brock >> >> >> LAYER >> NAME 'CRIMS_CLAM_BEDS' >> CONNECTIONTYPE sde >> CONNECTION "..." >> DATA "..." >> CLASS >> NAME "Clam Beds" >> STYLE >> COLOR 255 165 0 >> OUTLINECOLOR 0 0 0 >> END #style >> END #class >> TYPE polygon >> STATUS ON >> PROJECTION >> "init=EPSG:3005" >> END #projection >> METADATA >> "wms_title" "Clam Beds" >> "wfs_title" "Clam Beds" >> "gml_include_items" "all" >> END #metadata >> DUMP TRUE >> TEMPLATE "bla" >> END #end layer >> >> >> >> > > > From tim.bowden at WESTNET.COM.AU Mon Feb 20 18:49:42 2006 From: tim.bowden at WESTNET.COM.AU (tim) Date: Tue, 21 Feb 2006 10:49:42 +0800 Subject: WMS wrapper scripts Message-ID: Hi, I'm setting a wrapper script for a wms/wfs service (as outlined in the wms_server howto) but I'd like to get an authoritative list of all the environment variables mapserv uses. Is there such a list anyone can point me to? Thanks, Tim Bowden -- Mapforge Geospatial Level 3/ 267 St Georges Tce Perth 6000 Western Australia From steve.lime at DNR.STATE.MN.US Mon Feb 20 20:43:25 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 20 Feb 2006 22:43:25 -0600 Subject: WMS wrapper scripts Message-ID: Tim: Greping for getenv in the source you get 3 non-standard HTTP/CGI environment variables: MS_MAPFILE_PATTERN: allows you to override the standard regex for mapfile extension checking MS_MAPFILE: sets a default mapfile MS_ERRORFILE: sets file to write error messages to Is that what you're looking for? Steve >>> tim 02/20/06 8:49 PM >>> Hi, I'm setting a wrapper script for a wms/wfs service (as outlined in the wms_server howto) but I'd like to get an authoritative list of all the environment variables mapserv uses. Is there such a list anyone can point me to? Thanks, Tim Bowden -- Mapforge Geospatial Level 3/ 267 St Georges Tce Perth 6000 Western Australia From janeks.kamerovskis at SILVA.LV Tue Feb 21 00:23:16 2006 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Tue, 21 Feb 2006 10:23:16 +0200 Subject: problem with ogr ovf connection Message-ID: I had succesfuly set up ogr ovf connection, but problem appears when I added following field: case when round(sysdate - RS.CREATE_DATE) < 14 then 1 else ( case when round(sysdate - RS.CREATE_DATE) < 28 then 2 else 3 end ) end as RSS_AGE_GR Problem is not in query because it runs without any problems directly in F.ex. MS Query analyzer. When checking with ogrinfo I am getting following output: ERROR 1: Line 14: Didn't find expected '=' for value of attribute 'then'. FAILURE: What could be done to solve this problem? One I probably know - to create a view on SQL server. Are there others? Thanks in advance! Janeks From artur.skalski at ACXIOM.COM Tue Feb 21 00:52:14 2006 From: artur.skalski at ACXIOM.COM (Artur Skalski) Date: Tue, 21 Feb 2006 02:52:14 -0600 Subject: query map hilite ogr bug? Message-ID: Hi All, I'm running mapserver 4.6 on IIS 5.0, with php mapscript 46, I use mostly mapinfo files, and I've noticed this strange behavior of query map: in my map file, for some layers i've set STYLEITEM "AUTO", all layers are supposed to be hilited with a red color (255 0 0) when you do query on them, but the layers with STYLEITEM "AUTO" are allways hilited green or are not hilited at all, why is this happening? is this a ms or ogr bug? any way here is an example, just follow this link, choose a 'i' tool and select some green or lite brown area, you will see for your self, http://195.94.206.181/test/mapserver/framedefs/main.html (all other mapifo layers, like roads, that do not use STYLEITEM "AUTO" are hilited corectly) regards Artur From bill at BINKO.NET Tue Feb 21 01:49:49 2006 From: bill at BINKO.NET (Bill Binko) Date: Tue, 21 Feb 2006 04:49:49 -0500 Subject: Followup: Density Mapping In-Reply-To: <43D238A8.7060602@tkk.fi> Message-ID: Hi everyone. A few weeks ago, I asked a question about density mapping, and got several responses, including several very helpful pointers. I thought I would write back with where the progress I've made, along with another request for feedback. Here are three images that show some of the density maps I've been able to make on the fly: http://m.mapshine.com/images/dazzlehX6EfG.png http://m.mapshine.com/images/dazzlesSqxTl.png http://m.mapshine.com/images/dazzlePjFMQF.png I'm sure there are statistics professors out there who will roll their eyes at my approach, (and please, if I'm making any horrific mistakes, please let me know) but the proof-of-concept I developed is performing quite well in terms of speed. The proof-of-concept works like this (in PHP/Mapscript): 1) Read a Standard Deviation in geographic units (1/3 mile for the images above) 2) Generate a "stamp" image that is a gradient that starts at 100% opaque at the center and "fades out" to 0% opaque at the center using the Parzen Window Gaussian Kernel equation:http://en.wikipedia.org/wiki/Parzen_window where "x" is actually the distance from the center of the stamp 3) Create a new image to lay over the Mapserver generate map with the same size, and "ImageAlphaBlending()" set to true. 4) Query the map layer using "whichShapes()" to get the points on the layer we're interested in 5) Iterate through all the points on the layer and draw the "stamp" image into the new image. Because of GD's Alpha Blending, these "stamps" build up effectively performing the Summation in the Parzen Window document above. 6) Walk through the entire image (one point at a time) and map the 0-127 alpha value of each point onto table of images (just to make it look good :) I have thought about how this type of functionality could make it back into the core Mapserver, and I actually think it could be fairly simple. However, this is obviously a proof of concept, and I'm not pushing for this... I just wanted to update everyone. To take this same approach with the C Mapserver code, we'd need to do the following: 1) Implement semi-transparent symbols per danmo's suggestion (right now, we only have alpha transparency at the layer level, not the symbol level) 2) Setup a hook so that user code can create the png "stamp" after the layer's requested extent is known and before any drawing is done 3) Setup a hook where the user can get access to the raw layer image for post-processing. I am not 100% sure that the approach I've taken is completely valid. However, I am quite sure that is far faster than the alternatives I faced which were a) spawning out to GRASS/R to generate a large raster or b) doing a distance calculation + a gaussian equation for each pair of pixel/Point in the extent! I look forward to your responses. Bill -- Bill Binko From dennisjan at IBUILDINGS.NL Tue Feb 21 02:52:30 2006 From: dennisjan at IBUILDINGS.NL (DJ Broerse) Date: Tue, 21 Feb 2006 11:52:30 +0100 Subject: Problems with join In-Reply-To: <43F9CCB6.8030004@ibuildings.nl> Message-ID: Hi list and Steve List: thanks or the replies. Now I probably know what the problem is. Steve: below there is a description of my problem. I think the bottleneck in my problem are the templates. I use Pmapper as a graphical interface and MapServer is the engine. Pmapper doesn't care about the templates in the mapfile. That's the reason why there is a meaningless string after the template key in the mapfile (without this meaningless string there are no results) Pmapper gets his results by using the following functions $qRes = $this->qLayer->getResult($iRes); $qShape = $this->qLayer->getShape($qRes->tileindex,$qRes->shapeindex); $this->tempGridResult .= $this->printGridResultRow($qShape); So I have another set of questions: - Does mapserver require a template if I want to use joins? - Is it possible to get the join data without using a template and using some functions? Thanks in advance, Dennis-Jan DJ Broerse wrote: > I have two dfb files: gbkn-philippine and eigenaren > The reference is gbkn-philippine.willekeur and eigenaren.aa_linkid > What I want is if I query the the layer then I like to see the data of > eigenaren.dbf . > I can't figure out what is wrong. > Maybe I have to use CONNECTION or CONNECTIONTYPE but I don't know what. > TEMPLATE isn't necessary because I use a one-to-one relation I think. > > I really hope you can help me > > Dennis-Jan > > LAYER > > NAME "gbkn-philippine" > > TYPE line > > STATUS ON > > DATA "join/gbkn-philippine" > > MAXSCALE 25100 > > METADATA > > "DESCRIPTION" "gbkn-philippine" > > END # Metadata > > JOIN > > NAME "join1" > > TABLE "gisdata/join/eigenaren.dbf" > > FROM "WILLEKEUR" > > TO "AA_LINKID" > > TYPE ONE-TO-ONE > > END > > CLASS > > Name "gbkn-philippine" > > COLOR 249 49 249 > > TEMPLATE queryzichtbaar > > SYMBOL "vet" > > SIZE 2 > > END # Class > > END # Layer > > Hey Steve -- DJ Broerse dennisjan at ibuildings.nl Direct: 0118 42 95 68 Mobiel: 06 48 01 03 08 Skype: callto://dennisjan-ibuildings Ibuildings.nl BV - Information technology http://www.ibuildings.nl - 0118 42 95 50 From stefan.schwarzer at GRID.UNEP.CH Tue Feb 21 03:46:59 2006 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Tue, 21 Feb 2006 12:46:59 +0100 Subject: Avoid querying the_geom field in Postgis - how? Message-ID: Hi, does anyone know how to build a query that SELECTs all fields but not the_geom? I have a couple of tables, holding statistical information as well as the geospatial one. When I query the table I'd like to query only the statistical part - not the geospatial, which is not necessary and slows done incredibly the query. I searched a bit within the Postgres SQL domain. It seems there is an EXCEPT statement, but it seems that it works differently... Thanks for any help, Stef From janeks.kamerovskis at SILVA.LV Tue Feb 21 05:10:17 2006 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Tue, 21 Feb 2006 15:10:17 +0200 Subject: symbol point with vector Message-ID: Hi, Does any body tried to make symbols for points with vector angle atribute, so that point will be displayed with small vector arrow and in direction accordimg vector angle atribute of the point? Is it possible in mapserver or the only way is to generate small lines layer and then display them with point layer? Janeks From woodbri at SWOODBRIDGE.COM Tue Feb 21 05:17:02 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 21 Feb 2006 08:17:02 -0500 Subject: Avoid querying the_geom field in Postgis - how? In-Reply-To: <8E374E88-B6DC-4BBB-89E9-E4941F5E9192@grid.unep.ch> Message-ID: One way would be to put the_geom in a separate table and link it to the table with the attributes with a unique id column. -Steve W Stefan Schwarzer wrote: > Hi, > > does anyone know how to build a query that SELECTs all fields but not > the_geom? I have a couple of tables, holding statistical information as > well as the geospatial one. When I query the table I'd like to query > only the statistical part - not the geospatial, which is not necessary > and slows done incredibly the query. I searched a bit within the > Postgres SQL domain. It seems there is an EXCEPT statement, but it > seems that it works differently... > > Thanks for any help, > > Stef > From tadamcz at AE.KATOWICE.PL Tue Feb 21 05:36:42 2006 From: tadamcz at AE.KATOWICE.PL (Tomasz Adamczewski) Date: Tue, 21 Feb 2006 14:36:42 +0100 Subject: open source CMS project In-Reply-To: Message-ID: Dear friends, Is there any OpenSource CMS webmapping project (something like http://www.mapserver.ch/en/)? Regards, Tomash From jegou at UNIV-TLSE2.FR Tue Feb 21 05:41:52 2006 From: jegou at UNIV-TLSE2.FR (=?ISO-8859-1?Q?Laurent_J=E9gou?=) Date: Tue, 21 Feb 2006 14:41:52 +0100 Subject: open source CMS project In-Reply-To: <43FB176A.9090004@ae.katowice.pl> Message-ID: Tomasz Adamczewski wrote: > Dear friends, > Is there any OpenSource CMS webmapping project (something like > http://www.mapserver.ch/en/)? > > Regards, > Tomash > There is SPIPCarto : http://www.spip-contrib.net/Spipcarto-V1 http://www.geolibre.net/mot.php3?id_mot=9 (In french, sorry). From tadamcz at AE.KATOWICE.PL Tue Feb 21 05:51:33 2006 From: tadamcz at AE.KATOWICE.PL (Tomasz Adamczewski) Date: Tue, 21 Feb 2006 14:51:33 +0100 Subject: open source CMS project In-Reply-To: <43FB18A0.4000807@univ-tlse2.fr> Message-ID: Thank you, it's good time to start learn french ;-) Tomash Laurent J?gou napisa?(a): > Tomasz Adamczewski wrote: > >> Dear friends, >> Is there any OpenSource CMS webmapping project (something like >> http://www.mapserver.ch/en/)? >> >> Regards, >> Tomash >> > There is SPIPCarto : > > http://www.spip-contrib.net/Spipcarto-V1 > http://www.geolibre.net/mot.php3?id_mot=9 > > (In french, sorry). > From fsozzi at INTERCAD.CH Tue Feb 21 06:04:16 2006 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Tue, 21 Feb 2006 15:04:16 +0100 Subject: ESRI ASCII GRID format Message-ID: Hi all, Anybody knows if are there any way to show ESRI ASCII GRID FILES with mapserver? Best regards Francesco -------------- next part -------------- An HTML attachment was scrubbed... URL: From khaled.kamoun at GMAIL.COM Tue Feb 21 06:04:53 2006 From: khaled.kamoun at GMAIL.COM (Khaled Kamoun) Date: Tue, 21 Feb 2006 15:04:53 +0100 Subject: laodForm() error Message-ID: what does this error mean : "loadForm(): Web application error. Not enough arguments for imgext." -- Khaled KAMOUN -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Tue Feb 21 06:19:35 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 21 Feb 2006 09:19:35 -0500 Subject: ESRI ASCII GRID format In-Reply-To: <003601c636ef$b38a3260$2d01a8c0@newsviluppo> Message-ID: Francesco Sozzi wrote: > Hi all, > > Anybody knows if are there any way to show ESRI ASCII GRID FILES with > mapserver? Francesco, They should work "out of the box" if you have GDAL support built in. Just put the name of the grid file in your DATA statement like for any raster file. Now, there may be an additional issue. ESRI ASCII Grid files are often not 8bit. That is the raster values are often outside the range 0-255. If this is the case, special issues around scaling the values for display apply. You should read the Raster Access HOWTO to know more about how to deal with this though the brief solution is often fine to get something on the screen: The brief solution is add the following in your raster layer. PROCESSING "SCALE=AUTO" Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From bob.basques at CI.STPAUL.MN.US Tue Feb 21 06:20:23 2006 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Tue, 21 Feb 2006 08:20:23 -0600 Subject: Followup: Density Mapping In-Reply-To: Message-ID: I would be interested to hear about your speed tests, "how many points take so long to generate" sort of stuff. Your overlays look pretty good. With an integration into MapServer, there would also bthe possiblity of adding in semi-opaqueness to the overlay output. This was one major area that gave us fits with the overlays that we tried. Thanks bobb Bill Binko wrote: >Hi everyone. > >A few weeks ago, I asked a question about density mapping, and got >several responses, including several very helpful pointers. > >I thought I would write back with where the progress I've made, along >with another request for feedback. > >Here are three images that show some of the density maps I've been able >to make on the fly: > >http://m.mapshine.com/images/dazzlehX6EfG.png >http://m.mapshine.com/images/dazzlesSqxTl.png >http://m.mapshine.com/images/dazzlePjFMQF.png > >I'm sure there are statistics professors out there who will roll their >eyes at my approach, (and please, if I'm making any horrific mistakes, >please let me know) but the proof-of-concept I developed is performing >quite well in terms of speed. > >The proof-of-concept works like this (in PHP/Mapscript): > >1) Read a Standard Deviation in geographic units (1/3 mile for the >images above) >2) Generate a "stamp" image that is a gradient that starts at 100% >opaque at the center and "fades out" to 0% opaque at the center using >the Parzen Window Gaussian Kernel >equation:http://en.wikipedia.org/wiki/Parzen_window where "x" is >actually the distance from the center of the stamp >3) Create a new image to lay over the Mapserver generate map with the >same size, and "ImageAlphaBlending()" set to true. >4) Query the map layer using "whichShapes()" to get the points on the >layer we're interested in >5) Iterate through all the points on the layer and draw the "stamp" >image into the new image. Because of GD's Alpha Blending, these >"stamps" build up effectively performing the Summation in the Parzen >Window document above. >6) Walk through the entire image (one point at a time) and map the 0-127 >alpha value of each point onto table of images (just to make it look >good :) > >I have thought about how this type of functionality could make it back >into the core Mapserver, and I actually think it could be fairly simple. >However, this is obviously a proof of concept, and I'm not pushing for >this... I just wanted to update everyone. > >To take this same approach with the C Mapserver code, we'd need to do >the following: > >1) Implement semi-transparent symbols per danmo's suggestion (right now, >we only have alpha transparency at the layer level, not the symbol >level) >2) Setup a hook so that user code can create the png "stamp" after the >layer's requested extent is known and before any drawing is done >3) Setup a hook where the user can get access to the raw layer image for >post-processing. > >I am not 100% sure that the approach I've taken is completely valid. >However, I am quite sure that is far faster than the alternatives I >faced which were a) spawning out to GRASS/R to generate a large raster >or b) doing a distance calculation + a gaussian equation for each pair >of pixel/Point in the extent! > >I look forward to your responses. > >Bill > > > From bob.basques at CI.STPAUL.MN.US Tue Feb 21 06:25:26 2006 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Tue, 21 Feb 2006 08:25:26 -0600 Subject: Can an oblique projection be faked in MapServer? Message-ID: All (Probably Frank mostly), Can an oblique projection be faked in MapServer with parameter from the user? If so, can two layers have different oblique elevations assigned to then, either in the mapfile or from the mapserver request? What I wanted to do is experiment with oblique views of highrise building floor plans. Not true 3D, but Oblique views complete with Imagemaps for selecting locations on each floor. Should I think about something else besides MapServer? Just looking for input right now. bobb -------------------------- From fsozzi at INTERCAD.CH Tue Feb 21 06:30:22 2006 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Tue, 21 Feb 2006 15:30:22 +0100 Subject: ESRI ASCII GRID format Message-ID: Thank you for fast answer, I will take a try Best regards Francesco ----- Original Message ----- From: "Frank Warmerdam" To: "Francesco Sozzi" Cc: Sent: Tuesday, February 21, 2006 3:19 PM Subject: Re: [UMN_MAPSERVER-USERS] ESRI ASCII GRID format > Francesco Sozzi wrote: >> Hi all, >> Anybody knows if are there any way to show ESRI ASCII GRID FILES with >> mapserver? > > Francesco, > > They should work "out of the box" if you have GDAL support built in. Just > put the name of the grid file in your DATA statement like for any raster > file. > > Now, there may be an additional issue. ESRI ASCII Grid files are often > not > 8bit. That is the raster values are often outside the range 0-255. If > this > is the case, special issues around scaling the values for display apply. > You > should read the Raster Access HOWTO to know more about how to deal with > this > though the brief solution is often fine to get something on the screen: > > The brief solution is add the following in your raster layer. > > PROCESSING "SCALE=AUTO" > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > > From warmerdam at POBOX.COM Tue Feb 21 06:47:45 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 21 Feb 2006 09:47:45 -0500 Subject: Can an oblique projection be faked in MapServer? In-Reply-To: <43FB22D6.6000707@ci.stpaul.mn.us> Message-ID: Blammo wrote: > All (Probably Frank mostly), > > Can an oblique projection be faked in MapServer with parameter from the > user? > > If so, can two layers have different oblique elevations assigned to > then, either in the mapfile or from the mapserver request? > > What I wanted to do is experiment with oblique views of highrise > building floor plans. Not true 3D, but Oblique views complete with > Imagemaps for selecting locations on each floor. > > Should I think about something else besides MapServer? Just looking for > input right now. Bob, I can't think of any way to accomplish this. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From TWeber at TRAFFIC-CONSULT.DE Tue Feb 21 06:48:01 2006 From: TWeber at TRAFFIC-CONSULT.DE (Torsten Weber) Date: Tue, 21 Feb 2006 15:48:01 +0100 Subject: Mapserver crashes while antialiasing In-Reply-To: Message-ID: Hello Steve, thanks for the GD-patch. I've supplied it on both systems. On the SuSE 10.0 box it now works in both (cgi and moduled) versions. Within the SuSE 9.2 System there must be another problem. After starting the application (viewing full extend with road layer only) it produces an antialised map. If I try to zoom into the map, I got segmentaion faults again. I'll try to upgrade the System because it's a development system only. So, I think, it works for me now. Torsten Am Dienstag, 14. Februar 2006 16:54 schrieb Steve Lime: > Torsten: I'm pretty sure this is a problem with GD. Look for a general > announcement to the list on the topic in a few minutes... > > Steve > > >>> Torsten Weber 02/14/06 8:25 AM >>> > > Hi Umberto, > > thanks for your advice. > > I've configured the apache on the SuSE 9.2 System to use php as a fastcgi > prog instead of the module. After solving some problems passing the oracle > environment to the cgi, I got the the same result as working with the > moduled version with the little difference that the php prog is now > crashing. > > I get the following error from the apache server every time I use the RGB > mode: > > "Server error! > The server encountered an internal error and was unable to complete your > request. Either the server is overloaded or there was an error in a CGI > script." > > 8 Bit works fine but slow??. > > Do you have some other ideas? > > Regards > > Torsten > > Am Dienstag, 14. Februar 2006 10:17 schrieb Umberto Nicoletti: > > perhaps you are using php as a shared module? > > > > Note that php as a shared module is not supported and will quite > > likely cause crashes like those you are experiencing. > > > > Reagrds, > > Umberto > > > > On 2/14/06, Torsten Weber wrote: > > > Hi all, > > > > > > I'm using mapserver 4.6.2 and 4.8.1 on SuSE 9.2 and 10.0 with > > > php_mapscript. I've compiled both mapservers on both machines for using > > > oracle to get the spatial information. If I use 8Bit coloring all > > > things work fine (but no antialiasing). Within RGB mode the server gets > > > segmentation faults. But sometimes it works one or two times (don't > > > know why). > > > > > > Versions: > > > mapserver: 4.6.2 + 4.8.1 > > > SuSE Linux: 9.2 + 10.0 > > > php: 4.3.8 + 4.4.0 > > > oracle instantclient 10g > > > apache: 2.0.50 + 2.0.54 > > > gd: 2.0.28 + 2.0.32 > > > > > > I'm using antialiasing on line and polygon Layers only. But there are > > > raster layers also. > > > > > > Here is an example for both antialiased layers: > > > > > > Polygon Layer using data from shape files. > > > LAYER > > > NAME "Gemeinden" > > > PROJECTION > > > "init=epsg:31467" > > > END > > > METADATA > > > "DESCRIPTION" "Gemeinden" > > > "RESULT_FIELDS" "Name" > > > "RESULT_HEADERS" "Name" > > > "SELECTABLE" "false" > > > END > > > DATA "/srv/www/htdocs/geodata/Admin_Grenzen/Gemeinden" > > > TYPE POLYGON > > > TRANSPARENCY 50 > > > CLASS > > > NAME "Gemeinden" > > > TEMPLATE "void" > > > STYLE > > > COLOR 180 180 0 > > > OUTLINECOLOR 90 90 0 > > > SIZE 3 > > > ANTIALIAS TRUE > > > END > > > END > > > END # Layer > > > > > > Line Layer using oracle spatial data. > > > LAYER > > > NAME "kanten" > > > PROJECTION > > > "init=epsg:31467" > > > END > > > DEBUG ON > > > CONNECTION "user/pass at oradb" > > > CONNECTIONTYPE oraclespatial > > > DATA "GEOLOC FROM (SELECT GEOLOC, ID, BEZEICHNUNG, ART, > > > TYP FROM STRECKEVIEW) USING UNIQUE ID" > > > TYPE LINE > > > SYMBOLSCALE 20000.0 > > > METADATA > > > "DESCRIPTION" "Stra?en" > > > "RESULT_FIELDS" "ID,BEZEICHNUNG,ART" > > > "RESULT_HEADERS" "Nummer,Name,Typ" > > > "SELECTABLE" "true" > > > "LAYERDESC" "Stra?en" > > > END # Metadata > > > CLASS > > > NAME "Autobahnen" > > > TEMPLATE "void" > > > EXPRESSION ([TYP]=21) > > > STYLE > > > SYMBOL "lstandard" > > > COLOR 0 0 200 > > > SIZE 7 > > > ANTIALIAS TRUE > > > MINSIZE 7 > > > MAXSIZE 18 > > > END > > > STYLE > > > SYMBOL "lstandard" > > > COLOR 255 255 255 > > > SIZE 4 > > > ANTIALIAS TRUE > > > MINSIZE 4 > > > MAXSIZE 12 > > > END > > > STYLE > > > SYMBOL "lstandard" > > > COLOR 0 0 200 > > > SIZE 2 > > > MINSIZE 2 > > > MAXSIZE 5 > > > ANTIALIAS TRUE > > > END > > > LABEL > > > ANGLE AUTO > > > COLOR 256 0 0 > > > POSITION AUTO > > > SIZE LARGE > > > TYPE truetype > > > FONT "verdana" > > > END #LABEL > > > END # Class > > > CLASS > > > NAME "Bundesstra?en" > > > TEMPLATE "void" > > > EXPRESSION ([TYP]=22) > > > #MAXSCALE 250000.0 > > > STYLE > > > SYMBOL "lstandard" > > > COLOR 50 50 50 > > > SIZE 5 > > > MINSIZE 5 > > > MAXSIZE 15 > > > ANTIALIAS TRUE > > > END > > > STYLE > > > SYMBOL "lstandard" > > > COLOR 255 255 0 > > > SIZE 2 > > > MINSIZE 2 > > > MAXSIZE 10 > > > ANTIALIAS TRUE > > > END > > > END # Class > > > CLASS > > > NAME "Landesstra?en" > > > TEMPLATE "void" > > > EXPRESSION ([TYP]=23) > > > MAXSCALE 250000.0 > > > STYLE > > > SYMBOL "lstandard" > > > COLOR 50 50 50 > > > SIZE 5 > > > MINSIZE 5 > > > MAXSIZE 15 > > > ANTIALIAS TRUE > > > END > > > STYLE > > > SYMBOL "lstandard" > > > COLOR 250 250 250 > > > SIZE 2 > > > MINSIZE 2 > > > MAXSIZE 10 > > > ANTIALIAS TRUE > > > END > > > END # Class > > > CLASS > > > NAME "Kreisstra?en" > > > TEMPLATE "void" > > > EXPRESSION ([TYP]=24) > > > MAXSCALE 75000.0 > > > STYLE > > > SYMBOL "lstandard" > > > COLOR 50 50 50 > > > SIZE 3 > > > MINSIZE 3 > > > MAXSIZE 10 > > > ANTIALIAS TRUE > > > END > > > STYLE > > > SYMBOL "lstandard" > > > COLOR 250 250 250 > > > SIZE 1 > > > MINSIZE 1 > > > MAXSIZE 6 > > > ANTIALIAS TRUE > > > END > > > END # Class > > > CLASS > > > NAME "Sonstige" > > > TEMPLATE "void" > > > EXPRESSION ([TYP]<21 OR [TYP]>24) > > > MAXSCALE 50000.0 > > > STYLE > > > SYMBOL "lstandard" > > > COLOR 100 100 100 > > > SIZE 1 > > > #ANTIALIAS > > > MINSIZE 1 > > > MAXSIZE 10 > > > ANTIALIAS TRUE > > > END > > > END # Class > > > END # Layer > > > > > > Used outputformat: > > > OUTPUTFORMAT > > > NAME pngrgb > > > DRIVER "GD/PNG" > > > MIMETYPE "image/png" > > > IMAGEMODE RGB > > > FORMATOPTION INTERLACE=OFF > > > TRANSPARENT OFF > > > END > > > It doesn't matter if I use GIF or jpeg instead. > > > > > > Is anyone out there, who could help me? > > > > > > Many thanks and best regards > > > > > > Torsten From adoyle at EOGEO.ORG Tue Feb 21 06:38:28 2006 From: adoyle at EOGEO.ORG (Allan Doyle) Date: Tue, 21 Feb 2006 09:38:28 -0500 Subject: open source CMS project In-Reply-To: <43FB176A.9090004@ae.katowice.pl> Message-ID: There's also PrimaGIS - http://www.primagis.fi/ - which works with Plone. It's under active development. Allan On 2/21/06, Tomasz Adamczewski wrote: > Dear friends, > Is there any OpenSource CMS webmapping project (something like > http://www.mapserver.ch/en/)? > > Regards, > Tomash > From tim.bowden at WESTNET.COM.AU Tue Feb 21 07:05:45 2006 From: tim.bowden at WESTNET.COM.AU (Tim Bowden) Date: Tue, 21 Feb 2006 23:05:45 +0800 Subject: WMS wrapper scripts In-Reply-To: Message-ID: On Mon, 2006-02-20 at 22:43 -0600, Steve Lime wrote: > Tim: Greping for getenv in the source you get 3 non-standard HTTP/CGI environment variables: > > MS_MAPFILE_PATTERN: allows you to override the standard regex for mapfile extension checking > MS_MAPFILE: sets a default mapfile > MS_ERRORFILE: sets file to write error messages to > > Is that what you're looking for? > > Steve > Thanks Steve. Should do the trick nicely. Regards, Tim Bowden > >>> tim 02/20/06 8:49 PM >>> > Hi, > > I'm setting a wrapper script for a wms/wfs service (as outlined in the > wms_server howto) but I'd like to get an authoritative list of all the > environment variables mapserv uses. Is there such a list anyone can > point me to? > > Thanks, > Tim Bowden From Eric.Keefauver at ALTARUM.ORG Tue Feb 21 07:44:16 2006 From: Eric.Keefauver at ALTARUM.ORG (D. Eric Keefauver) Date: Tue, 21 Feb 2006 10:44:16 -0500 Subject: mapserver demo data Message-ID: Greetings, New to the Mapserver realm and I am trying to download the mapserver demo (section 5.2 GET DEMO RUNNING - NEW USERS) but there seems to be "errors" in opening the file itasca3.5.tar using winzip. Any ideas in obtaining this data so I can run through setting up the demo via the ReadMe.txt Thanks in advance, Eric From warmerdam at POBOX.COM Tue Feb 21 07:46:20 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 21 Feb 2006 10:46:20 -0500 Subject: problem with ogr ovf connection In-Reply-To: <000c01c636c0$10b7f5b0$790aa8c0@JANEKSXP> Message-ID: Janeks Kamerovskis wrote: > I had succesfuly set up ogr ovf connection, but problem appears when I added > following field: > > case when round(sysdate - RS.CREATE_DATE) < 14 then 1 else ( > case when round(sysdate - RS.CREATE_DATE) < 28 then 2 else 3 end > ) end as RSS_AGE_GR > > Problem is not in query because it runs without any problems directly in > F.ex. MS Query analyzer. > > When checking with ogrinfo I am getting following output: > > ERROR 1: Line 14: Didn't find expected '=' for value of attribute 'then'. > FAILURE: > > What could be done to solve this problem? > One I probably know - to create a view on SQL server. Are there others? Janeks, Could you provide the OVF file in question? A couple possibilities come to mind: o The < sign may need to be escaped in the XML OVF file (as <). o If this is the contents of a SrcSQL you will need a WHERE statement won't you? Perhaps I am misunderstanding what you mean when you talk about adding the above field. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From mschulz at WEBGIS.DE Tue Feb 21 07:48:37 2006 From: mschulz at WEBGIS.DE (Michael Schulz) Date: Tue, 21 Feb 2006 16:48:37 +0100 Subject: open source CMS project In-Reply-To: <43FB1AE5.6080305@ae.katowice.pl> Message-ID: Hi, you might have a look at plone (www.plone.org) the CMS that drives mapserver.gis.umn.edu (no web-mapping out-of-the-box) Then have a look at primaGIS http://primagis.fi/ (now you have webmapping-in-the-box ;-)) ---------- Another opportunity is CPS (CMS with plone-like functionality) that also has "geo-awareness" (rather new and also french...): http://www.cps-project.org/sections/projects/cpsgeo_simple_gis_for ---------- Both projects are based on Zope, a OpenSource CMS plattform developped with python: www.zope.org Cheers, Michael Tomasz Adamczewski schrieb: > Thank you, > it's good time to start learn french ;-) > > Tomash > > > Laurent J?gou napisa?(a): > >> Tomasz Adamczewski wrote: >> >>> Dear friends, >>> Is there any OpenSource CMS webmapping project (something like >>> http://www.mapserver.ch/en/)? >>> >>> Regards, >>> Tomash >>> >> There is SPIPCarto : >> >> http://www.spip-contrib.net/Spipcarto-V1 >> http://www.geolibre.net/mot.php3?id_mot=9 >> >> (In french, sorry). >> > -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 Tel +49 (0)761 556959-5 79108 Freiburg Fax +49 (0)761 556959-6 www.webgis.de / www.zopecms.de ----------------------------------------------------------- NEU ++ UMN MapServer Hosting ++ http://www.webgis.de ++ NEU ----------------------------------------------------------- From David.Fawcett at STATE.MN.US Tue Feb 21 08:05:06 2006 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 21 Feb 2006 10:05:06 -0600 Subject: mapserver demo data Message-ID: Eric, Save the file to disk before trying to unzip it. Also, take a look at the file name, you may need to trim off an extra .tar or .gz before WinZip will recognize it as a file that it can unzip properly. David. -----Original Message----- From: UMN MapServer Users List on behalf of D. Eric Keefauver Sent: Tue 2/21/2006 9:44 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] mapserver demo data Greetings, New to the Mapserver realm and I am trying to download the mapserver demo (section 5.2 GET DEMO RUNNING - NEW USERS) but there seems to be "errors" in opening the file itasca3.5.tar using winzip. Any ideas in obtaining this data so I can run through setting up the demo via the ReadMe.txt Thanks in advance, Eric From bob.basques at CI.STPAUL.MN.US Tue Feb 21 08:20:49 2006 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Tue, 21 Feb 2006 10:20:49 -0600 Subject: Can an oblique projection be faked in MapServer? In-Reply-To: Message-ID: What about just the map generation part? There's no way to even fake the oblique view for even one layer (Floor)? bobb Frank Warmerdam wrote: > Blammo wrote: > >> All (Probably Frank mostly), >> >> Can an oblique projection be faked in MapServer with parameter from the >> user? >> >> If so, can two layers have different oblique elevations assigned to >> then, either in the mapfile or from the mapserver request? >> >> What I wanted to do is experiment with oblique views of highrise >> building floor plans. Not true 3D, but Oblique views complete with >> Imagemaps for selecting locations on each floor. >> >> Should I think about something else besides MapServer? Just looking for >> input right now. >> > > Bob, > > I can't think of any way to accomplish this. > > Best regards, > From warmerdam at POBOX.COM Tue Feb 21 08:37:46 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 21 Feb 2006 11:37:46 -0500 Subject: Can an oblique projection be faked in MapServer? In-Reply-To: <43FB3DE1.4050303@ci.stpaul.mn.us> Message-ID: Bob Basques wrote: > What about just the map generation part? There's no way to even fake > the oblique view for even one layer (Floor)? Bob, That might be possible, but I don't know how to setup a projection definition appropriately to do so. I imagine if you setup an orthographic projection with a center point 45 degrees away around the world, that would give something like a 45 degree view of your local area. But this isn't something I have ever tried myself. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From siki at AGT.BME.HU Tue Feb 21 13:00:34 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Tue, 21 Feb 2006 20:00:34 -0100 Subject: symbol point with vector {Scanned} In-Reply-To: <001901c636e8$28fba1d0$790aa8c0@JANEKSXP> Message-ID: Hi, There is a LABELANGLEITEM to rotate labels, so you should display symbol as label (a character from a true type font) and the column of LABELANGLEITEM gives the rotational angle in deegres. Bye, Zoltan On Tue, 21 Feb 2006, Janeks Kamerovskis wrote: > Hi, > > Does any body tried to make symbols for points with vector angle atribute, > so that point will be displayed with small vector arrow and in direction > accordimg vector angle atribute of the point? > > Is it possible in mapserver or the only way is to generate small lines layer > and then display them with point layer? > > Janeks > From ed at CITYSAFE.ORG Tue Feb 21 10:02:00 2006 From: ed at CITYSAFE.ORG (Ed Dowding) Date: Tue, 21 Feb 2006 12:02:00 -0600 Subject: Lining up tiles and styling Message-ID: I'm tiling mapserver tile requests to form a map. On those tiles are lines styled with a thickness. The lines also have rounded ends. Which means that when a line goes off the edge of a tile, they're "rounding-off" making it impossible to tile from separate requests. Quite difficult to explain, so here's a picture.. http://citysafe.org/temp/mapRounding.png One approach would be to get mapserver to draw the line beyond the extent of its tile... but this is, I think, hypothetical, since I cant see that it's possible from the docs. Does anyone have any experience of this? Thanks in advance, Ed From johan.e.hallgren at WMDATA.SE Tue Feb 21 10:55:50 2006 From: johan.e.hallgren at WMDATA.SE (Johan Hallgren) Date: Tue, 21 Feb 2006 12:55:50 -0600 Subject: ArcSDE query attribute Message-ID: Hello I have tried to query a sde-layer but it fails. I?m using mapserver-4.8.1 And ArcSDE 9.0 clientlib (windows XP) And ArcSDE 9.0 on a Oracle 10.1 (windows Server) All code is written in c#/mapscript/SWIG. Drawing the layer is no problem but when querying, it gives an error message: ?Error allocating layer items array.? The error occur when I run the oLayerObj.open() ?command Se the code below, I have used the same approach as with shapefiles. ----------------------------------------- mapObj mo = new mapObj(mapFile.Text); layerObj oLayerObj = mo.getLayerByName("SJ_large_sde"); oLayerObj.queryByRect(mo, oLayerObj.getExtent()); oLayerObj.queryByAttributes(mo, "KKOD", "", mapscript.MS_MULTIPLE); resultCacheObj oResultCacheObj = oLayerObj.getResults(); oLayerObj.open(); // ? Gives the error. textBox1.Text = oResultCacheObj.numresults.ToString(); if (oResultCacheObj.numresults > 0) { int iFeatureLimit = oResultCacheObj.numresults; int lFeat = 0; for (lFeat = 0; lFeat < oResultCacheObj.numresults; lFeat++) { if (lFeat == (iFeatureLimit + 0)) break; shapeObj oShapeObj = oLayerObj.getFeature(lFeat,-1); } } --------------------------------- Best Regards Johan ___________________________________ Johan Hallgren WM-data Pelle Bergs backe 3 Box 1938, 791 19 Falun Tel: 023-844 65 (int: +46-2384465) Mobil: 070-588 44 28 (int: +46-705884428) johan.e.hallgren at wmdata.com http://www.wmdata.se From woodbri at SWOODBRIDGE.COM Tue Feb 21 11:28:59 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 21 Feb 2006 14:28:59 -0500 Subject: Lining up tiles and styling In-Reply-To: Message-ID: Ed, Have you looked at http://ka-map.maptools.org/ This is a google like AJAX client that uses php and mapserver on the backend to generate tiles. Even if you do not want to use the whole thing, you might look at tile.php to see how they resolve these issues. -Steve W. Ed Dowding wrote: > I'm tiling mapserver tile requests to form a map. On those tiles are lines > styled with a thickness. The lines also have rounded ends. > > Which means that when a line goes off the edge of a tile, they're > "rounding-off" making it impossible to tile from separate requests. > > Quite difficult to explain, so here's a picture.. > http://citysafe.org/temp/mapRounding.png > > One approach would be to get mapserver to draw the line beyond the extent of > its tile... but this is, I think, hypothetical, since I cant see that it's > possible from the docs. > > > Does anyone have any experience of this? > > Thanks in advance, > > Ed > From gdavis at REFRACTIONS.NET Tue Feb 21 11:44:11 2006 From: gdavis at REFRACTIONS.NET (Graham Davis) Date: Tue, 21 Feb 2006 11:44:11 -0800 Subject: Lining up tiles and styling In-Reply-To: <43FB69FB.4000204@swoodbridge.com> Message-ID: Stephen is correct, and the kamap code uses a buffer around each tile to get around this issue. I've worked with some modified Kamap code, and it uses the GD library to cut up the tiles, with a buffer not only around each tile but also around the main metatile that is fetched from Mapserver. Our setup uses a 10 pixel buffer around each tile, and twice that for the buffer around the metatile. -- Graham Davis Refractions Research Inc. gdavis at refractions.net Stephen Woodbridge wrote: > Ed, > > Have you looked at http://ka-map.maptools.org/ > > This is a google like AJAX client that uses php and mapserver on the > backend to generate tiles. Even if you do not want to use the whole > thing, you might look at tile.php to see how they resolve these issues. > > -Steve W. > > Ed Dowding wrote: > >> I'm tiling mapserver tile requests to form a map. On those tiles are >> lines >> styled with a thickness. The lines also have rounded ends. >> >> Which means that when a line goes off the edge of a tile, they're >> "rounding-off" making it impossible to tile from separate requests. >> >> Quite difficult to explain, so here's a picture.. >> http://citysafe.org/temp/mapRounding.png >> >> One approach would be to get mapserver to draw the line beyond the >> extent of >> its tile... but this is, I think, hypothetical, since I cant see that >> it's >> possible from the docs. >> >> >> Does anyone have any experience of this? >> >> Thanks in advance, >> >> Ed >> From bob.basques at CI.STPAUL.MN.US Tue Feb 21 11:46:14 2006 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Tue, 21 Feb 2006 13:46:14 -0600 Subject: Lining up tiles and styling In-Reply-To: Message-ID: Ed, If you want to get into the coding aspect of things. The trick is to grab an image bigger than the desired tile size and clip it back with some other piece of middle ware to the desired tile size. Another route to go, is to build a rather large tile, and then clip it back to smaller tiles, this even preserves the labeling crossing the tile edges. You still need to throw a buffer area away in this process, but it's has a much higher level of success with regard to building a seamless tile set with little to no edge matching artifacts. There are other things to worry about though like the text labeling being held back from the edges enough so that they don't get caught in the clipping process as well. There are probably other things to worry about in the process as well that I'm not aware of at present. bobb Stephen Woodbridge wrote: > Ed, > > Have you looked at http://ka-map.maptools.org/ > > This is a google like AJAX client that uses php and mapserver on the > backend to generate tiles. Even if you do not want to use the whole > thing, you might look at tile.php to see how they resolve these issues. > > -Steve W. > > Ed Dowding wrote: > >> I'm tiling mapserver tile requests to form a map. On those tiles are lines >> styled with a thickness. The lines also have rounded ends. >> >> Which means that when a line goes off the edge of a tile, they're >> "rounding-off" making it impossible to tile from separate requests. >> >> Quite difficult to explain, so here's a picture.. >> http://citysafe.org/temp/mapRounding.png >> >> One approach would be to get mapserver to draw the line beyond the extent of >> its tile... but this is, I think, hypothetical, since I cant see that it's >> possible from the docs. >> >> >> Does anyone have any experience of this? >> >> Thanks in advance, >> >> Ed >> >> > > From williams at WEBSAWYER.COM Tue Feb 21 11:59:19 2006 From: williams at WEBSAWYER.COM (Doug Williams) Date: Tue, 21 Feb 2006 12:59:19 -0700 Subject: problem getting shape index values Message-ID: I posted a problem with queryByPoint on a point layer added from an external database. It seemed as if getShape was not working ... but I have found that by modifying my code as below I can get the shape information. $oShape = $oLayer->getShape($oRes->tileindex,$oRes->shapeindex); for($iField=0; $iField < sizeof($selFields); $iField++) { if ($selFields[$iField] == "index") { $tempval = $oShape->index; } elseif ($selFields[$iField] == "text") { $tempval = $oShape->text; } else { $tempval = $oShape->values[$selFields[$iField]]; // $tempval = $oShape->getValue($oLayer, $selFields[$iField]); } My fault, I did not realize that it was not possible to get certain values from the 'values' or 'getValue' methods. From baris_999 at YAHOO.COM Tue Feb 21 11:59:14 2006 From: baris_999 at YAHOO.COM (Baris YILMAZ) Date: Tue, 21 Feb 2006 11:59:14 -0800 Subject: Calculating real coordinates from pixed coordinates In-Reply-To: Message-ID: Hi, I have mapserver, maplab 2.2.1 and the rosa applet installed. I have a mapfile, which has a layer, which i can show in the rosa applet. My question is, is it correct to calculate the real coordinates from the input_coordinates (which is the pixed coordinates if you click) by simply proportioning them according to the extent coordinates? I mean, Real X Coordinate = (Difference in Real Extent Coordinates)/(Width of Rosa in pixel)*(clicked pixel X- coordinate) + Minx Real extent Coordinate (Same for the Real Y Coordinate.) Or is there another way to do this ? I read of maplat and maplon attributes but I don't know how to apply this within my package.. I hope I could clarify what I mean. Thank you in Advance. Baris --------------------------------- Yahoo! Mail Use Photomail to share photos without annoying attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at DNR.STATE.MN.US Tue Feb 21 12:35:40 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 21 Feb 2006 14:35:40 -0600 Subject: laodForm() error Message-ID: You should have exactly 4 values for any extent value. This error means you had more or less. Typically you see it if: - the extent is provided using a delimeter other than a space - the extent is not properly escaped in the URL (spaces must be turned into +'s or %20's) Check those first. Steve >>> Khaled Kamoun 02/21/06 8:04 AM >>> what does this error mean : "loadForm(): Web application error. Not enough arguments for imgext." -- Khaled KAMOUN From janeks.kamerovskis at SILVA.LV Tue Feb 21 12:40:24 2006 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Tue, 21 Feb 2006 22:40:24 +0200 Subject: problem with ogr ovf connection In-Reply-To: <43FB35CC.3010806@pobox.com> Message-ID: Thanks Frank, Escaping < sign works! But what you mean by asking about where statement? I already using them in that ogr connection. And I have plans to implement some additional filtering by passing user suplied arguments. Something like puting in connection string where part '%district%', where district comes from ...varname=123&district=456&... Janeks > Could you provide the OVF file in question? A couple possibilities come > to mind: > o The < sign may need to be escaped in the XML OVF file (as <). > o If this is the contents of a SrcSQL you will need a WHERE statement > won't > you? > > Perhaps I am misunderstanding what you mean when you talk about adding > the above field. > > Best regards, > -- > ---------------------------------------+---------------------------------- > ---- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent From warmerdam at POBOX.COM Tue Feb 21 12:54:39 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 21 Feb 2006 15:54:39 -0500 Subject: problem with ogr ovf connection In-Reply-To: <000301c63727$0ec6f550$050ba20a@JANEKSXP> Message-ID: Janeks Kamerovskis wrote: > Thanks Frank, > Escaping < sign works! > > But what you mean by asking about where statement? > I already using them in that ogr connection. Janeks, Actually, I mean SELECT but said WHERE by accident. > And I have plans to implement > some additional filtering by passing user suplied arguments. Something like > puting in connection string where part '%district%', where district comes > from ...varname=123&district=456&... I believe this should work fine and I have heard of others doing it too. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From bbrehmer at REFRACTIONS.NET Tue Feb 21 15:04:30 2006 From: bbrehmer at REFRACTIONS.NET (bbrehmer) Date: Tue, 21 Feb 2006 15:04:30 -0800 Subject: Incorrectly rotated labels Message-ID: Hi, I am having a problem with the rotation of some text. More precisely, text that is close to vertical seems to sometimes be upside down and/or backwards. I was wondering if anyone can point me towards the code that does the rotation of labels? and does anyone know where there is any documentation for some of this code? Thanks, Ben Brehmer From steve.lime at DNR.STATE.MN.US Tue Feb 21 16:06:48 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 21 Feb 2006 18:06:48 -0600 Subject: Incorrectly rotated labels Message-ID: What version are you using? Problems along those lines were fixed in 4.8 and all recent tests have been just fine. Steve >>> bbrehmer 02/21/06 5:04 PM >>> Hi, I am having a problem with the rotation of some text. More precisely, text that is close to vertical seems to sometimes be upside down and/or backwards. I was wondering if anyone can point me towards the code that does the rotation of labels? and does anyone know where there is any documentation for some of this code? Thanks, Ben Brehmer From dennis at MEGARRY.COM Tue Feb 21 16:48:27 2006 From: dennis at MEGARRY.COM (Dennis Megarry) Date: Tue, 21 Feb 2006 18:48:27 -0600 Subject: Trying to figure out epsg for a GeoTIFF Message-ID: I'm going to sound like as complete newbie be assking this (which I am really). I have a GeoTIFF raster image and I'm not sure how to setup the projection in my map file. Can someone take a look at the below info from gdalinfo and tell me what I need to do? If at all possible, some details so I can learn a bit? Driver: GTiff/GeoTIFF Size is 11873, 8123 Coordinate System is: PROJCS["unnamed", GEOGCS["NAD83", DATUM["North_American_Datum_1983", SPHEROID["GRS 1980",6378137,298.2572221010042, AUTHORITY["EPSG","7019"]], AUTHORITY["EPSG","6269"]], PRIMEM["Greenwich",0], UNIT["degree (supplier to define representation)",0.01745329251994328], AUTHORITY["EPSG","4269"]], PROJECTION["Lambert_Conformal_Conic_2SP"], PARAMETER["standard_parallel_1",38.6666666666667], PARAMETER["standard_parallel_2",33.33333333333337], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",-81.45000000000009], PARAMETER["false_easting",0], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]]] Origin = (-439988.052575,241474.587546) Pixel Size = (63.88386800,-63.88386800) Metadata: AREA_OR_POINT=Area Corner Coordinates: Upper Left ( -439988.053, 241474.588) ( 84d48'17.02"W, 1d46'42.74"N) Lower Left ( -439988.053, -277454.072) ( 84d40'25.94"W, 2d 7'20.21"S) Upper Right ( 318505.112, 241474.588) ( 79d 1'15.86"W, 1d48'22.30"N) Lower Right ( 318505.112, -277454.072) ( 79d 6'57.06"W, 2d 5'48.28"S) Center ( -60741.470, -17989.742) ( 81d54'14.71"W, 0d 8'11.59"S) Band 1 Block=11873x1 Type=Byte, ColorInterp=Palette From warmerdam at POBOX.COM Tue Feb 21 17:43:07 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 21 Feb 2006 20:43:07 -0500 Subject: Trying to figure out epsg for a GeoTIFF In-Reply-To: Message-ID: Dennis Megarry wrote: > I'm going to sound like as complete newbie be assking this (which I am > really). > > I have a GeoTIFF raster image and I'm not sure how to setup the projection > in my map file. Can someone take a look at the below info from gdalinfo > and tell me what I need to do? If at all possible, some details so I can > learn a bit? > > Driver: GTiff/GeoTIFF > Size is 11873, 8123 > Coordinate System is: > PROJCS["unnamed", > GEOGCS["NAD83", > DATUM["North_American_Datum_1983", > SPHEROID["GRS 1980",6378137,298.2572221010042, > AUTHORITY["EPSG","7019"]], > AUTHORITY["EPSG","6269"]], > PRIMEM["Greenwich",0], > UNIT["degree (supplier to define > representation)",0.01745329251994328], > AUTHORITY["EPSG","4269"]], > PROJECTION["Lambert_Conformal_Conic_2SP"], > PARAMETER["standard_parallel_1",38.6666666666667], > PARAMETER["standard_parallel_2",33.33333333333337], > PARAMETER["latitude_of_origin",0], > PARAMETER["central_meridian",-81.45000000000009], > PARAMETER["false_easting",0], > PARAMETER["false_northing",0], > UNIT["metre",1, > AUTHORITY["EPSG","9001"]]] Dennis, This translates into PROJ.4 format as: PROJECTION "+proj=lcc +lat_1=38.6666666666667 +lat_2=33.33333333333337 +lat_0=0 +lon_0=-81.45000000000009 +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs" END You can find some useful information on how to express projections in PROJ.4 format at: http://geotiff.maptools.org/proj_list The libgeotiff listgeo utility can also report PROJ.4 format with the -proj4 switch. But I did this by saving the WKT (ie. PROJCS[...]) into a text file, and running the gdal/ogr/testepsg utility against it. Testepsg is an undocumented GDAL utility not built by default. One day I must really provide a supported utility for doing these sorts of translations. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From steve.lime at DNR.STATE.MN.US Tue Feb 21 17:44:12 2006 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 21 Feb 2006 19:44:12 -0600 Subject: Problems with join Message-ID: Dennis-Jan: The meaningless string is to trick MapServer into doing the query in the first place. A hold over from pre-MapScript days... > - Does mapserver require a template if I want to use joins? Yes, joins are a post-query feature (for end display only) and for that reason require the use of query templates. All is not lost... (read on) > - Is it possible to get the join data without using a template and using some > functions? Not through MapScript proper- there is no joinObj exposed to MapScript (perhaps there should be). The reason is that the scripting languages supported by MapScript are very well suited database access independent of MapScript. You can certainly take a item value from your result set and use that to construct a query to another datasource. Then those results can be displayed as necessary (or used to create even more queries). I'm not terribly familiar with p.mapper so I don't know how hard it is to do that sort of thing using that framework. I also thought that template processing was available via MapScript, but perhaps not through p.mapper? Wish I had better news. Steve >>> DJ Broerse 02/21/06 4:52 AM >>> Hi list and Steve List: thanks or the replies. Now I probably know what the problem is. Steve: below there is a description of my problem. I think the bottleneck in my problem are the templates. I use Pmapper as a graphical interface and MapServer is the engine. Pmapper doesn't care about the templates in the mapfile. That's the reason why there is a meaningless string after the template key in the mapfile (without this meaningless string there are no results) Pmapper gets his results by using the following functions $qRes = $this->qLayer->getResult($iRes); $qShape = $this->qLayer->getShape($qRes->tileindex,$qRes->shapeindex); $this->tempGridResult .= $this->printGridResultRow($qShape); So I have another set of questions: - Does mapserver require a template if I want to use joins? - Is it possible to get the join data without using a template and using some functions? Thanks in advance, Dennis-Jan DJ Broerse wrote: > I have two dfb files: gbkn-philippine and eigenaren > The reference is gbkn-philippine.willekeur and eigenaren.aa_linkid > What I want is if I query the the layer then I like to see the data of > eigenaren.dbf . > I can't figure out what is wrong. > Maybe I have to use CONNECTION or CONNECTIONTYPE but I don't know what. > TEMPLATE isn't necessary because I use a one-to-one relation I think. > > I really hope you can help me > > Dennis-Jan > > LAYER > > NAME "gbkn-philippine" > > TYPE line > > STATUS ON > > DATA "join/gbkn-philippine" > > MAXSCALE 25100 > > METADATA > > "DESCRIPTION" "gbkn-philippine" > > END # Metadata > > JOIN > > NAME "join1" > > TABLE "gisdata/join/eigenaren.dbf" > > FROM "WILLEKEUR" > > TO "AA_LINKID" > > TYPE ONE-TO-ONE > > END > > CLASS > > Name "gbkn-philippine" > > COLOR 249 49 249 > > TEMPLATE queryzichtbaar > > SYMBOL "vet" > > SIZE 2 > > END # Class > > END # Layer > > Hey Steve -- DJ Broerse dennisjan at ibuildings.nl Direct: 0118 42 95 68 Mobiel: 06 48 01 03 08 Skype: callto://dennisjan-ibuildings Ibuildings.nl BV - Information technology http://www.ibuildings.nl - 0118 42 95 50 From ed at TOPOZONE.COM Tue Feb 21 17:52:46 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 21 Feb 2006 20:52:46 -0500 Subject: Trying to figure out epsg for a GeoTIFF Message-ID: Dennis - The EPSG coding system is just a list of various projections. There's no way to "figure out" what an EPSG code should be (with a few limited exceptions for related projections). You just need to get the list and look it up! EPSG provides a set of tools, but they're hard to use. There are various other EPSG lists kicking around the Web. However, ultimately you will be depending on the list of EPSG projection codes that you have installed (via the PROJ library) on your own server, so you might as well look there. In the nad subdirectory of your PROJ installation (I don't know whether you're running on Windows or UNIX) you'll find a file simply named "epsg". This is a text file; open it with your favorite editor. The EPSG projection definitions in that file are labeled with common names, so if you know you've got "Massachusetts State Plane" coordinates you can search for that term (there are several variations). If you only have the projection parameters (which you do) then you need to search for those. I searched the standard PROJ 4.4.9 distribution and could not find "-81.45" or "38.66" anywhere in that file. That makes me suspect that this is a projection that may be "non-standard". There's nothing "wrong" with that - you can define a projection any way you like. But if you want to use it in some contexts (like WMS) you need an EPSG definition for it. The EPSG code number simply provides a reliable shorthand for the definition. It's more compact, and it is easier to figure out whether two projections are the same or not (comparing all the parameters leads to confusion when the precision of parameters is different - are 81.67 and 81.66667 the same number or not?). In your MAP file you can also simply spell out the projection parameters (i.e. the PARAMETER values below) rather than using the EPSG file. But I'd like to ask what you need to do with this source data? If you need to have an EPSG code to refer to it, that leads down one path - if you just need to display it with other layers in MapServer, that's a different path. And if it's the ONLY layer you want to display in MapServer you can simply ignore the whole problem! - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dennis Megarry Sent: Tuesday, February 21, 2006 7:48 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Trying to figure out epsg for a GeoTIFF I'm going to sound like as complete newbie be assking this (which I am really). I have a GeoTIFF raster image and I'm not sure how to setup the projection in my map file. Can someone take a look at the below info from gdalinfo and tell me what I need to do? If at all possible, some details so I can learn a bit? Driver: GTiff/GeoTIFF Size is 11873, 8123 Coordinate System is: PROJCS["unnamed", GEOGCS["NAD83", DATUM["North_American_Datum_1983", SPHEROID["GRS 1980",6378137,298.2572221010042, AUTHORITY["EPSG","7019"]], AUTHORITY["EPSG","6269"]], PRIMEM["Greenwich",0], UNIT["degree (supplier to define representation)",0.01745329251994328], AUTHORITY["EPSG","4269"]], PROJECTION["Lambert_Conformal_Conic_2SP"], PARAMETER["standard_parallel_1",38.6666666666667], PARAMETER["standard_parallel_2",33.33333333333337], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",-81.45000000000009], PARAMETER["false_easting",0], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]]] Origin = (-439988.052575,241474.587546) Pixel Size = (63.88386800,-63.88386800) Metadata: AREA_OR_POINT=Area Corner Coordinates: Upper Left ( -439988.053, 241474.588) ( 84d48'17.02"W, 1d46'42.74"N) Lower Left ( -439988.053, -277454.072) ( 84d40'25.94"W, 2d 7'20.21"S) Upper Right ( 318505.112, 241474.588) ( 79d 1'15.86"W, 1d48'22.30"N) Lower Right ( 318505.112, -277454.072) ( 79d 6'57.06"W, 2d 5'48.28"S) Center ( -60741.470, -17989.742) ( 81d54'14.71"W, 0d 8'11.59"S) Band 1 Block=11873x1 Type=Byte, ColorInterp=Palette From perrygeo at GMAIL.COM Tue Feb 21 18:17:02 2006 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Tue, 21 Feb 2006 18:17:02 -0800 Subject: Trying to figure out epsg for a GeoTIFF In-Reply-To: Message-ID: Dennis, On 2/21/06, Dennis Megarry wrote: > > I have a GeoTIFF raster image and I'm not sure how to setup the projection > in my map file. Can someone take a look at the below info from gdalinfo > and tell me what I need to do? If at all possible, some details so I can > learn a bit? A good resource for this is the projection list at remotesensing.org : http://www.remotesensing.org/geotiff/proj_list/ The lambert conformal conic 2sp should have enough info for you to translate the gdalinfo output below into the proj4 parameters. They can be inserted into the layer's projection block like: PROJECTION "proj=lcc" ..... END Hope this helps, -- Matt Perry perrygeo at gmail.com http://www.perrygeo.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at WEBMAPIT.COM.BR Tue Feb 21 19:28:52 2006 From: lists at WEBMAPIT.COM.BR (Eduardo Patto Kanegae) Date: Wed, 22 Feb 2006 00:28:52 -0300 Subject: Free on-line MapServer course( in portuguese) Message-ID: To whom may concern.... I've just published my "MapServer Intro course" as a free service at my website. :-) Unfortunately the course is available only in Portuguese but I'm already translating it to english . To take a look check it out at http://www.webmapit.com.br/?lang=en and click "Services-> Learn2mapIt" best regards. -- Eduardo Patto Kanegae http://www.webmapit.com.br From kristjan at TARKVARASTUUDIO.EE Tue Feb 21 23:25:45 2006 From: kristjan at TARKVARASTUUDIO.EE (kristjan) Date: Wed, 22 Feb 2006 09:25:45 +0200 Subject: queryByPoint on dynamic layer from mysql Message-ID: I am using PHP. But I did not use PHPMapscript functions to add new shapes to my database. I used PHPMapscript to draw the map and get the pointst from user but then I used just regular SQL commands to add new shapes to my database. The error to witch you were refering '[MapServer Error]: msINLINELayerGetShape(): No inline feature with this index' sounds like there is a record in the feature table but not in geometry table - I'm not shure but check it out. I tested the index stuff with filling the ID field of my features table with several values and they all worked well as long as they were unique. I even have different type of geometrys in my table (points and polygons), but they are drawn in separate layers with different data clauses like "DATA 'geometry from (select * from objekt where klass_id=1) feature, objekt_bin geometry'" and "DATA 'geometry from (select * from objekt where klass_id=2) feature, objekt_bin geometry'" Kristjan From Hilbert.Davelaar at WUR.NL Tue Feb 21 23:57:29 2006 From: Hilbert.Davelaar at WUR.NL (Davelaar, Hilbert) Date: Wed, 22 Feb 2006 08:57:29 +0100 Subject: Raster image catalog as datasource? Message-ID: Hi list, Is it possible with mapserver to use a raster image catalog as datasource? Regards, Hilbert Davelaar From s.pashby at POSTGRAD.CURTIN.EDU.AU Wed Feb 22 00:12:35 2006 From: s.pashby at POSTGRAD.CURTIN.EDU.AU (Steve) Date: Wed, 22 Feb 2006 08:12:35 +0000 Subject: WMS through a proxy server Message-ID: Hello, I?m trying to obtain some weather data from a WMS (through a university computer) ? but because of the strict firewall settings I cannot access the data. A friend of mine suggested something about a proxy server ? however I?m new to MapServer and not totally sure what he means, or how to go about it ! (I?m using Apache Web server, by the way ...) Any help would be greatly appreciated. Cheers, Steve. From albrecht at FIELAX.DE Wed Feb 22 04:06:01 2006 From: albrecht at FIELAX.DE (Sebastian Albrecht) Date: Wed, 22 Feb 2006 12:06:01 +0000 Subject: [4.6.1 TO 4.8.1]: Problems with PNG and PHP/MapScript? Message-ID: Hello, I just wanted to change from 4.6.1 to 4.8.1 because I've read the querymapObj is available in PHP/Mapscript since 4.8. So what I did was taking my old configure line from 4.6.1 and using it for the new version: ./configure --enable-force-freetype1 --with-gd=/usr/local --with-zlib --with-jpeg --with-tiff --with-png --with-xpm=/usr/X11R6 --with-threads --with-proj=/usr/local --with-php=/usr/local/src/php-5.0.4 --with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config --with-postgis=/usr/local/pgsql/bin/pg_config --with-wfs --with-wcs --with-wmsclient --with-wfsclient --with-curl-config=/usr/local/bin/curl-config The compiling finishes without errors but all my MapScript applications which use PNG as output format don't work. It says "INTERNAL SERVER ERROR" which is "Premature end of header in /usr/local/bin/php". My PHP version is 5.0.4 which uses the same GD (2.0.33) installation as MapServer. And it worked with 4.6.1 without problems. Anybody had a similar problem or knows what to do? Sebastian From albrecht at FIELAX.DE Wed Feb 22 04:09:51 2006 From: albrecht at FIELAX.DE (Sebastian Albrecht) Date: Wed, 22 Feb 2006 12:09:51 +0000 Subject: [PHP/MapScript]: How to change size of query map Message-ID: Hello everybody, how can I change the size of a query map in my PHP/Mapscript application. I would like to query multiple features and generate a list of small query map images for every feature. In the doc there's a querymapObj described but no method or way to get it from the current mapObj. Is there another way to change the size of the query map except changing the map file or using a second map file? Best regards Sebastian From ruthschoenbuchner at YAHOO.DE Wed Feb 22 04:47:40 2006 From: ruthschoenbuchner at YAHOO.DE (=?iso-8859-1?q?ruth=20sch=FFfffff6nbuchner?=) Date: Wed, 22 Feb 2006 13:47:40 +0100 Subject: Fatal error: [MapServer Error]: msSDELayerGetShape(): Message-ID: Dear people, I have got a problem querying a layer with ArcSDE and a created pointobj(); In my mapfile I definded the correct parameters for the ArcSDE-Connection because I can display the layers without any problems. When I want to query a layer, it says: Fatal error: [MapServer Error]: msSDELayerGetShape(): SE_stream_fetch_row(): Invalid pointer argument to function. (-65) in /../../webgis.php on line 142 Line 142 of my webgis.php says the following: $Shape = $Abfragelayer->getShape($ti,$si); bevor line 142 I defined the queryable layer and the results: //create point object and querybypoint $punkt=ms_newPointObj(); $punkt ->setXY($x_real,$y_real); @$map ->queryByPoint($punkt, MS_SINGLE, -1); //test, if query was succesful if((@$map ->queryByPoint($punkt, MS_SINGLE, -1))==MS_SUCCESS){ $Abfrage="Abfrage hat geklappt"; //find queryable layer for($iLayer=0; $iLayer < $map->numlayers; $iLayer++) { $Abfragelayer = $map->GetLayer($iLayer); $numResults = $Abfragelayer ->getNumResults(); if ($numResults == 0) continue; //open table of queryable layer and read row $Abfragelayer->open(); $Spalte=explode(" ",$Abfragelayer->getMetaData("RESULT_FIELDS")); //read entry of row //define specific object of shape $resultat=$Abfragelayer->getResult(0); $si=$resultat->shapeindex; $ti=$resultat->tileindex; $ci=$resultat->classindex; $Shape = $Abfragelayer->getShape($ti,$si); Surely I made something wrong with correct options and parameters regarding to ArcSDE in my php-script, because I am newbie to MapScript Can anybody help? Regards, Ruth --------------------------------- Telefonieren Sie ohne weitere Kosten mit Ihren Freunden von PC zu PC! Jetzt Yahoo! Messenger installieren! -------------- next part -------------- An HTML attachment was scrubbed... URL: From stefan.schwarzer at GRID.UNEP.CH Wed Feb 22 05:55:48 2006 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Wed, 22 Feb 2006 14:55:48 +0100 Subject: Postgis and EXPRESSION Message-ID: Hi, I migrated from mysql to postgres/postgis and update now all my map- queries. But I have a problem getting it working. I wonder if this is a major problem or some minor issue. The doc says : "Logical expressions allow you to build fairly complex tests based on one or more attributes and therefore are only available with shapefiles" So, i would almost presume that using EXPRESSIONS is not possible via postgis. But I can't imagine that this is true... In the moment it runs the query but with no result - meaning that it "ignores" the epression. I couldn't find anything similar in the archives either... LAYER NAME bg_shape CONNECTIONTYPE postgis CONNECTION 'user=xxx password=xxx dbname=xxx' TYPE POLYGON DATA 'the_geom FROM (SELECT countries.the_geom AS the_geom, regions_view.name AS name, countries.oid AS oid FROM countries, regions_view WHERE countries.geo_region = regions_view.id) AS foo USING UNIQUE oid USING srid=-1' CLASSITEM 'name' CLASS NAME '' EXPRESSION ([name] ne 'Africa') OUTLINECOLOR 230 230 230 COLOR 230 230 230 END END # LAYER Thanks for any help! Stef -------------- next part -------------- An HTML attachment was scrubbed... URL: From Eric.Keefauver at ALTARUM.ORG Wed Feb 22 06:31:10 2006 From: Eric.Keefauver at ALTARUM.ORG (D. Eric Keefauver) Date: Wed, 22 Feb 2006 09:31:10 -0500 Subject: Itasca demo and Ms4w Message-ID: New and just getting started with ms4w on my local windows machine Where should one dump the itasca files to get the demo up and running: C:\ms4w\Apache\htdocs? I have placed the itasca data in the following: C:\ms4w\Apache\htdocs\mapserver_demos\itasca And within the map file I changed this line to: # change this value to match your setup WMS_ONLINERESOURCE "http://localhost/mapserver_demos/itasca/demo_init.html" At: http://localhost/mapserver_demos/itasca/demo_init.html and clicking the Initialize button I get the following error getString(): Symbol definition error. Parsing error near (none):(line 44) what am I doing wrong? thanks in advance and bearing with a complete newbie Eric From m.cave-ayland at WEBBASED.CO.UK Wed Feb 22 06:42:47 2006 From: m.cave-ayland at WEBBASED.CO.UK (Mark Cave-Ayland) Date: Wed, 22 Feb 2006 14:42:47 -0000 Subject: [PHP/MapScript]: How to change size of query map In-Reply-To: <43FC548F.30102@fielax.de> Message-ID: > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Sebastian Albrecht > Sent: 22 February 2006 12:10 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] [PHP/MapScript]: How to change > size of query map > > Hello everybody, > > how can I change the size of a query map in my PHP/Mapscript > application. I would like to query multiple features and > generate a list of small query map images for every feature. > > In the doc there's a querymapObj described but no method or > way to get it from the current mapObj. > > Is there another way to change the size of the query map > except changing the map file or using a second map file? > > Best regards > > Sebastian Hi Sebastian, It looks like the documentation is missing an entry for the queryMapObj in the MapObj class. You should be to set the query map size using something like the following: $mapobj->querymap->set("width", 100); $mapobj->querymap->set("height", 100); Kind regards, Mark. ------------------------ WebBased Ltd 17 Research Way Plymouth PL6 8BT T: +44 (0)1752 797131 F: +44 (0)1752 791023 http://www.webbased.co.uk http://www.infomapper.com http://www.swtc.co.uk This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. From punkish at EIDESIS.ORG Wed Feb 22 06:30:32 2006 From: punkish at EIDESIS.ORG (P Kishor) Date: Wed, 22 Feb 2006 08:30:32 -0600 Subject: Returning Results to Multiple Windows Message-ID: Hi Igor, > Subject: Mapserver - Help > Hi Mr. Hankley, > I'm having the same problem that you had with the topic > "PHP, HOW??: Returning Results to Multiple Windows" > [ http://lists.dmsolutions.ca/pipermail/mapserver-users/2002-July/003004.html ], > Please, I need so much to know how I could to open another > window with the result. Do you know the answer? > Thanks, > Igor The good thing is you read the archives. The bad thing is that you sent the email to me instead of to the list. So, I am copying this to the list (I don't think Chip is even on the list anymore). From naci0002 at UMN.EDU Wed Feb 22 06:46:45 2006 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Wed, 22 Feb 2006 08:46:45 -0600 Subject: Itasca demo and Ms4w In-Reply-To: Message-ID: The message you got means there's some obsolute KEYWORD values in the mapfile. I don't have the demo files in my computer so if you can post the few lines above and below line 44, I might be able to help. As an aside, you can certainly put the demo files under /ms4w/apache/htdocs. Or you might as well follow the way it's done in MS4W: 1. unzip demo under /ms4w/apps/ 2. create a file called httpd_demo.conf (or whatever you want to called it, just make sure to prepend with httpd_) and add these lines to it: #This is the Apache config file for the MapServer Demo application. Alias /itasca "/ms4w/apps/itasca" AllowOverride None Options Indexes MultiViews Order allow,deny Allow from all 3. Restart Apache service 4. Edit the demo_init.html and relevant files and replace the paths with the proper ones 5. Check that the demo is running at http://localhost/itasca. Good luck! -Perry D. Eric Keefauver wrote: > New and just getting started with ms4w on my local windows machine > > Where should one dump the itasca files to get the demo up and running: > C:\ms4w\Apache\htdocs? > > I have placed the itasca data in the following: > C:\ms4w\Apache\htdocs\mapserver_demos\itasca > > And within the map file I changed this line to: > # change this value to match your setup > WMS_ONLINERESOURCE > "http://localhost/mapserver_demos/itasca/demo_init.html" > > > At: http://localhost/mapserver_demos/itasca/demo_init.html and clicking > the Initialize button I get the following error > > getString(): Symbol definition error. Parsing error near (none):(line 44) > > what am I doing wrong? > > thanks in advance and bearing with a complete newbie > > Eric > > . > From albrecht at FIELAX.DE Wed Feb 22 06:57:43 2006 From: albrecht at FIELAX.DE (Sebastian Albrecht) Date: Wed, 22 Feb 2006 14:57:43 +0000 Subject: [PHP/MapScript]: How to change size of query map In-Reply-To: <200602221439.k1MEdjm20691@webbased16.localdomain> Message-ID: Hello Mark, thanks for your reply. > $mapobj->querymap->set("width", 100); > $mapobj->querymap->set("height", 100); I get a fatal error: Call to a member function set() on a non-object If I var_dump the $mapobj there is no "querymap" object, too, but I suppose this has to do with my MapServer version (4.6.1). I think the querymapObj is supported since 4.8.1. And that version does not work ATM (my other posting). Best regards Sebastian From m.cave-ayland at WEBBASED.CO.UK Wed Feb 22 07:29:32 2006 From: m.cave-ayland at WEBBASED.CO.UK (Mark Cave-Ayland) Date: Wed, 22 Feb 2006 15:29:32 -0000 Subject: [PHP/MapScript]: How to change size of query map In-Reply-To: <43FC7BE7.7070308@fielax.de> Message-ID: > -----Original Message----- > From: Sebastian Albrecht [mailto:albrecht at fielax.de] > Sent: 22 February 2006 14:58 > To: Mark Cave-Ayland > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] [PHP/MapScript]: How to > change size of query map > > Hello Mark, > > thanks for your reply. > > > $mapobj->querymap->set("width", 100); > > $mapobj->querymap->set("height", 100); > > I get a fatal error: Call to a member function set() on a non-object > > If I var_dump the $mapobj there is no "querymap" object, too, > but I suppose this has to do with my MapServer version > (4.6.1). I think the querymapObj is supported since 4.8.1. > And that version does not work ATM (my other posting). > > Best regards > > Sebastian Hi Sebastian, Yes, the querymapObj is only present in 4.8. In terms of debugging your problem with 4.8, can you isolate the problem? For example, does it still occur if you change the output format to JPEG temporarily? Also have you tried enable debugging (setting the webObj log property to a filename and then setting the mapObj debug property to true)? This should give you more information as to why Mapserver is failing. Kind regards, Mark. ------------------------ WebBased Ltd 17 Research Way Plymouth PL6 8BT T: +44 (0)1752 797131 F: +44 (0)1752 791023 http://www.webbased.co.uk http://www.infomapper.com http://www.swtc.co.uk This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. From pramsey at REFRACTIONS.NET Wed Feb 22 07:27:34 2006 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Wed, 22 Feb 2006 07:27:34 -0800 Subject: Postgis and EXPRESSION In-Reply-To: <0C293C87-B3A7-46ED-A5E3-4CCDCC2A9A8B@grid.unep.ch> Message-ID: I think the problem is that you have both a CLASSITEM and an EXPRESSION. CLASSITEM is generally used when you are doing single- value classifications, so something like CLASSITEM 'name' CLASS EXPRESSION 'Europe' END Try removing your CLASSITEM. Just general debugging technique: remove restrictions until something shows up, then slowly add them back in again. BTW, If you have a unique column other than oid, I would suggest using that for a unique number, as good practice. Perhaps you have a gid column? P On 22-Feb-06, at 5:55 AM, Stefan Schwarzer wrote: > Hi, > > I migrated from mysql to postgres/postgis and update now all my map- > queries. But I have a problem getting it working. I wonder if this > is a major problem or some minor issue. The doc says : > > "Logical expressions allow you to build fairly complex tests based > on one or more attributes and therefore are only available with > shapefiles" > > So, i would almost presume that using EXPRESSIONS is not possible > via postgis. But I can't imagine that this is true... In the moment > it runs the query but with no result - meaning that it "ignores" > the epression. I couldn't find anything similar in the archives > either... > > > LAYER > NAME bg_shape > CONNECTIONTYPE postgis > CONNECTION 'user=xxx password=xxx dbname=xxx' > TYPE POLYGON > DATA 'the_geom FROM (SELECT countries.the_geom AS the_geom, > regions_view.name AS name, countries.oid AS oid FROM countries, > regions_view WHERE countries.geo_region = regions_view.id) AS foo > USING UNIQUE oid USING srid=-1' > CLASSITEM 'name' > CLASS > NAME '' > EXPRESSION ([name] ne 'Africa') > OUTLINECOLOR 230 230 230 > COLOR 230 230 230 > END > END # LAYER > > > Thanks for any help! > > Stef > From mapserver at GEOWORLD.DE Wed Feb 22 08:04:01 2006 From: mapserver at GEOWORLD.DE (Nicol Hermann) Date: Wed, 22 Feb 2006 17:04:01 +0100 Subject: phpmapscript geos integration (buffer) Message-ID: Hi List, i tried the geos buffer integration with the script posted by Assefa in bug 1327 (#2) (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1327). It runs fine with the current cvs version of mapserver but crashes with the current stable release 4.8.1 Fatal error: Object expected as argument. in /home/nicol/public_html/mapserver/dev/tmpsym/geosbuffer.php on line 38 Is this feature implemented in the 4.8.1 release? According to the README file (mapscript/php3) which comes with the release is should be. shapeobj buffer(width) Returns a shape object that has a buffer around the current shape object. Only available if php/mapscript is built with GEOS library. Any hints how to use the method with the 4.8.1 release? Many thanks Nicol From assefa at DMSOLUTIONS.CA Wed Feb 22 08:28:19 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 22 Feb 2006 11:28:19 -0500 Subject: phpmapscript geos integration (buffer) In-Reply-To: <1140624241.4155.30.camel@emil.intranet.gdv.com> Message-ID: Hi There, The feature should be available in 4.8.1. I just did a test with the 4.8.1 using the exact script in the bug and It works. If you are willing to, you can send me your script/map/data and I can test it here. Later, Nicol Hermann wrote: > Hi List, > > i tried the geos buffer integration with the script posted by Assefa in > bug 1327 (#2) (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1327). > It runs fine with the current cvs version of mapserver but crashes with > the current stable release 4.8.1 > > Fatal error: Object expected as argument. > in /home/nicol/public_html/mapserver/dev/tmpsym/geosbuffer.php on line > 38 > > Is this feature implemented in the 4.8.1 release? According to the > README file (mapscript/php3) which comes with the release is should be. > > shapeobj buffer(width) > Returns a shape object that has a buffer around the current > shape object. Only available if php/mapscript is built with GEOS > library. > > Any hints how to use the method with the 4.8.1 release? > Many thanks > Nicol -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Wed Feb 22 10:18:30 2006 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Doyon, Jean-Francois) Date: Wed, 22 Feb 2006 13:18:30 -0500 Subject: *** glibc detected *** double free or corruption Message-ID: Hello, I'm testing MapServer on some new hardware/software, and ran into what looks like a bug ... With a specific mapfile, the mapserver CGI dies with the following error: [Wed Feb 22 13:03:33 2006] [error] [client 132.156.4.96] *** glibc detected *** double free or corruption (!prev): 0x09f76cf8 ***, referer: [Wed Feb 22 13:03:33 2006] [error] [client 132.156.4.96] Premature end of script headers: mapserv461atlas, referer: (referer deleted) This is mapserver 4.6.1 on CentOS 4.2 (i.e. RHEL 4). It uses: GDAL 1.3.1 PROJ 4.4.9 And the system libraries for the rest: libgd.so.2 => /usr/lib/libgd.so.2 (0x0065a000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x002aa000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x004dc000) libpng12.so.0 => /usr/lib/libpng12.so.0 (0x00343000) libz.so.1 => /usr/lib/libz.so.1 (0x004ca000) libproj.so.0 => /home/atlas/web/lib/libproj.so.0 (0x00111000) libgdal.so.1 => /home/atlas/web/lib/libgdal.so.1 (0x006a7000) libcurl.so.3 => /usr/lib/libcurl.so.3 (0x00145000) libssl.so.4 => /lib/libssl.so.4 (0x00175000) libcrypto.so.4 => /lib/libcrypto.so.4 (0x001a9000) libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00292000) libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x005c9000) libcom_err.so.2 => /lib/libcom_err.so.2 (0x00447000) libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00630000) libresolv.so.2 => /lib/libresolv.so.2 (0x002c8000) libdl.so.2 => /lib/libdl.so.2 (0x00441000) libidn.so.11 => /usr/lib/libidn.so.11 (0x0044c000) libc.so.6 => /lib/tls/libc.so.6 (0x009c7000) libm.so.6 => /lib/tls/libm.so.6 (0x00313000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00366000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x002db000) libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x002e3000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x00af1000) libtiff.so.3 => /usr/lib/libtiff.so.3 (0x0047c000) librt.so.1 => /lib/tls/librt.so.1 (0x00543000) /lib/ld-linux.so.2 (0x002fc000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x00431000) libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00557000) The only thing noticeably different about the mapfile causing the error is that it has WMS layers and is quite a bit bigger than your average mapfile. I found nothing in bugzilla. Anybody run into this before? I found one obscure reference, but no clear cause/solution. Thanks, Jean-Fran?ois Doyon Internet Service Development and Systems Support / Sp?cialiste de d?veloppements internet et soutien technique Canada Centre for Remote Sensing/Centre Canadien de t?l?d?tection Natural Resources Canada/Ressources Naturelles Canada http://atlas.gc.ca Tel./T?l.: (613) 992-4902 Fax: (613) 947-2410 From albrecht at FIELAX.DE Wed Feb 22 11:00:02 2006 From: albrecht at FIELAX.DE (Sebastian Albrecht) Date: Wed, 22 Feb 2006 19:00:02 +0000 Subject: [PHP/MapScript]: How to change size of query map In-Reply-To: <200602221526.k1MFQfm22731@webbased16.localdomain> Message-ID: Hi Mark, > Yes, the querymapObj is only present in 4.8. In terms of debugging your > problem with 4.8, can you isolate the problem? For example, does it still > occur if you change the output format to JPEG temporarily? I got closer to the problem's core but not close enough yet. The problem with the internal server error in my web application results of one layer that gets data from a local WMS. Until today it worked all well with image/png as format type. If I send a simple GetMap request to that WMS now some kind of PNG image is returned which can only be interpreted by Mozilla Firefox. GIMP and different other programs say the image is corrupted. In the Apache log it says: gd-png: fatal libpng error: IDAT: CRC error gd-png error: setjmp returns error condition gd-jpeg: JPEG library reports unrecoverable error: Not a JPEG file: starts with 0x89 0x50 I don't know what that jpeg stuff means - the WMS should simply render a shape file to PNG. And to make the problem more complicated: If I switch off the WMS layer in my webbrowser application the rest works well - as PNG! Here are my map file definitions for the WMS server. In the WMS client layer definition I tried "image/png" and "image/png; mode=24bit" as format type. The resulting images differ but are both "corrupted". IMAGETYPE png OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END Updating to the latest libpng did not change anything. GD is 2.0.33. I finish for today - perhaps I'll have some luck tomorrow. But if it does not work, I will have to get back to 4.6.1 and do without my nice tiny query maps... :-/ Best regards Sebastian From markadams at CUESTASYS.COM Wed Feb 22 12:24:23 2006 From: markadams at CUESTASYS.COM (Mark Adams) Date: Wed, 22 Feb 2006 15:24:23 -0500 Subject: Solution for OGR Virtual polygon data In-Reply-To: <43F9F492.7040103@pobox.com> Message-ID: Frank et al, I've had great success with simple polygons, and with single polygons with holes. Everything seems to follow expectations. However, the data I'm working with sometimes has multiple polygons, but sometimes doesn't. According to the OGC simple features spec 05-134, a MULTIPOLYGON statement following the same format as a simple POLYGON statement should work. So, the following 2 statements should be equivalent: 'POLYGON( ( 56 34, 62 48, 84 48, 84 42, 56 34) )' or 'MULTIPOLYGON( ( 56 34, 62 48, 84 48, 84 42, 56 34) )' In practice, using the latter format failed in mapserver - no geometries shown. By adding a 3rd set of brackets the problem is solved: 'MULTIPOLYGON( (( 56 34, 62 48, 84 48, 84 42, 56 34)) )' I am now ensuring that all text geometries are added in the database with that extra set of brackets, so it is no longer a problem for me, but it might cause others some pain - seems like a deviation from the spec. (Or I might be reading it wrong). Otherwise, publishing text-based polygon data is working out very well, so thanks again for the support. ------------------------------ Mark Adams Senior Analyst & Project Manager Cuesta Systems (DPRA Canada) 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: mark.adams at dpra.com -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] On Behalf Of Frank Warmerdam Sent: February 20, 2006 11:56 AM To: Mark Adams Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Solution for OGR Virtual polygon data Mark Adams wrote: > Emil, > > Thanks, you are right, that works. I'd had the same response from Frank W. > I'm not sure where the format for these strings is specified or documented - > the only information I was able to find said to do things differently. > > For the benefit of anyone else trying to use this functionality, I also > discovered that you could create a multi-polygon as follows: > > POLYGON (( 501453.34 4800585.97, 501576.14 4800590.44, 501569.85 4800522, > 501471.61 4800521.63, 501453.34 4800585.97 )) Mark, The format is OpenGIS Well Known Text geometry format from the Simple Features for SQL Specification (99-049 I think). It is the same format reported by ogrinfo, and the textual format of PostGIS or MySQL Spatial. Technically the above is not a multi-polygon. A multi-polygon (in simple features) is a collection of polygon objects. A polygon is one or more rings, with one being the outer ring and the rest being inner rings. So in the parliance I was used to in the old days, a polygon is an island potentially with lakes cut out of it. A multipolygon is a much of such islands. Multipolygons use the MULTIPOLYGON keyword. A 'polygon' object in a shapefile may be either a simple features POLYGON or MULTIPOLYGON depending on whether there are multiple outer rings. Best regards, -- ---------------------------------------+------------------------------------ -- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From siki at AGT.BME.HU Wed Feb 22 16:03:09 2006 From: siki at AGT.BME.HU (Siki Zoltan) Date: Wed, 22 Feb 2006 23:03:09 -0100 Subject: Raster image catalog as datasource? {Scanned} {Scanned} In-Reply-To: <29B94E3912EABD4F90B82AEF6BD9B0840177887F@salte0008.wurnet.nl> Message-ID: Hi, What type of image catalog do you think? An ESRI image catalog? AFAIK only gdal created tileindex is supported in mapserver. You can create an image catalog using gdaltindex command. See raster howto. Bye, Zoltan On Wed, 22 Feb 2006, Davelaar, Hilbert wrote: > Hi list, > > Is it possible with mapserver to use a raster image catalog as datasource? > > Regards, > Hilbert Davelaar > From pauljame at GMAIL.COM Wed Feb 22 12:47:24 2006 From: pauljame at GMAIL.COM (Paul james) Date: Wed, 22 Feb 2006 17:47:24 -0300 Subject: ArcIMS x Mapserver... Message-ID: Hello people... I need to show up to a client a price comparison between ArcIMS and Mapserver... But I dont know How much ArcIMS license cost at all... Anybody could help me on this task? ty -------------- next part -------------- An HTML attachment was scrubbed... URL: From s_jubeh at YAHOO.COM Wed Feb 22 12:58:59 2006 From: s_jubeh at YAHOO.COM (salah jubeh) Date: Wed, 22 Feb 2006 12:58:59 -0800 Subject: Render an image Message-ID: Heloo guys i am facing a situation like that. I am doing image processing over the web and new images created. the problem that i am facing is how to allow the users to interact with these images browse them , zoom in and out. I tried to use mapscript but still i didn't get a good result. if any body has solution suggestion... also if any body know where i can find a good documentation for tcl mapscript. Best Regards --------------------------------- Relax. Yahoo! Mail virus scanning helps detect nasty viruses! -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at REFRACTIONS.NET Wed Feb 22 13:10:57 2006 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Wed, 22 Feb 2006 13:10:57 -0800 Subject: ArcIMS x Mapserver... In-Reply-To: <33fad6880602221247u2fd3cbe5h5c1958588d4b7188@mail.gmail.com> Message-ID: Contact your local ESRI sales office, they'll help you happily and accurately: P On Feb 22, 2006, at 12:47 PM, Paul james wrote: > Hello people... > I need to show up to a client a price comparison between ArcIMS and > Mapserver... But I dont know How much ArcIMS license cost at all... > Anybody could help me on this task? > > ty From cjohnson at REFRACTIONS.NET Wed Feb 22 13:14:32 2006 From: cjohnson at REFRACTIONS.NET (Clint Johnson) Date: Wed, 22 Feb 2006 13:14:32 -0800 Subject: Postgis and EXPRESSION In-Reply-To: <0C293C87-B3A7-46ED-A5E3-4CCDCC2A9A8B@grid.unep.ch> Message-ID: I believe your script is failing at the DATA clause -- or because there exists no data within your tables that is join-able. *[Malformed DATA clause]* I've run into a similar problem myself before. I am pretty sure your problem is with your DATA statement. In fact it may be throwing an exception that you haven't been able to see (rather than ignoring the expression). See the advanced-usage at: http://postgis.refractions.net/docs/ch04.html#id2789268 Note that the SQL used within the DATA tag is "pseudo-SQL" Do not use the WHERE clause to perform your join; instead, use the NATURAL JOIN operator. Instead, only use the WHERE clause to filter upon items as you would with the FILTER tag (such as regions_view.name = 'foo'). I believe the FILTER and WHERE clauses to be coupled (which further complicates matters when doing a complex join in your DATA clause). Therefore, try this and let me know if it works: DATA "the_geom FROM (SELECT countries.the_geom AS the_geom, regions_view.name AS name, countries.oid AS oid FROM countries NATURAL JOIN regions_view ON countries.geo_region = regions_view.id) AS foo using unique oid using srid=-1" *[Nothing to join]* Perhaps there is nothing to join -- in that case try using LEFT JOIN instead of the NATURAL JOIN Clint Stefan Schwarzer wrote: > Hi, > > I migrated from mysql to postgres/postgis and update now all my > map-queries. But I have a problem getting it working. I wonder if this > is a major problem or some minor issue. The doc says : > * > * > *"**Logical expressions allow you to build fairly complex tests based > on one or more attributes and therefore are only available with > shapefiles"* > > So, i would almost presume that using EXPRESSIONS is not possible via > postgis. But I can't imagine that this is true... In the moment it > runs the query but with no result - meaning that it "ignores" the > epression. I couldn't find anything similar in the archives either... > > > LAYER > NAME bg_shape > CONNECTIONTYPE postgis > CONNECTION 'user=xxx password=xxx dbname=xxx' > TYPE POLYGON > DATA 'the_geom FROM (SELECT countries.the_geom AS the_geom, > regions_view.name AS name, countries.oid AS oid FROM countries, > regions_view WHERE countries.geo_region = regions_view.id) AS foo > USING UNIQUE oid USING srid=-1' > CLASSITEM 'name' > CLASS > NAME '' > EXPRESSION ([name] ne 'Africa') > OUTLINECOLOR 230 230 230 > COLOR 230 230 230 > END > END # LAYER > > > Thanks for any help! > > Stef > -- Clint Johnson Refractions Research Inc. Cjohnson at refractions.net From earaya at GPS.CL Wed Feb 22 13:42:12 2006 From: earaya at GPS.CL (Etienne Araya) Date: Wed, 22 Feb 2006 18:42:12 -0300 Subject: ArcIMS x Mapserver... In-Reply-To: <33fad6880602221247u2fd3cbe5h5c1958588d4b7188@mail.gmail.com> Message-ID: 10k~ per CPU approximately _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Paul james Sent: Wednesday, February 22, 2006 5:47 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] ArcIMS x Mapserver... Hello people... I need to show up to a client a price comparison between ArcIMS and Mapserver... But I dont know How much ArcIMS license cost at all... Anybody could help me on this task? ty -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.15.12/266 - Release Date: 21-Feb-06 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.15.12/266 - Release Date: 21-Feb-06 -------------- next part -------------- An HTML attachment was scrubbed... URL: From kenlord at GMAIL.COM Wed Feb 22 14:02:04 2006 From: kenlord at GMAIL.COM (Ken Lord) Date: Wed, 22 Feb 2006 14:02:04 -0800 Subject: ArcIMS x Mapserver... In-Reply-To: <33fad6880602221247u2fd3cbe5h5c1958588d4b7188@mail.gmail.com> Message-ID: Hi Paul, In Canada it is about $12,000 to buy ArcIMS by itself. You don't need ArcView, but if you have it, it makes things easier. If you need to split the load to other servers / CPU's ... its $12,000 more per CPU !! Not sure if there's any reduction for larger purchases. It took me 1.5 days to get it running properly. From there simple maps using the default viewers are very fast to create from existing MXD files. I'm not sure how this compares to the MapServer tools (the tools for creating .map files from ArcView, or Chameleon) as I do it the hard way, in text editors. As a true blue MapServer person, I still have the bad taste in my mouth for being forced to install ArcIMS, but I suppose every tool has it's uses, especially when a client demands it. Cheers, Ken Lord Vancouver BC On 2/22/06, Paul james wrote: > Hello people... > I need to show up to a client a price comparison between ArcIMS and > Mapserver... But I dont know How much ArcIMS license cost at all... Anybody > could help me on this task? > > ty From candalt at ONLINE.NO Wed Feb 22 14:06:45 2006 From: candalt at ONLINE.NO (=?iso-8859-1?Q?Sture_Dings=F8yr?=) Date: Wed, 22 Feb 2006 23:06:45 +0100 Subject: OGR and ArcSDE Message-ID: Hi I have been doing some testing displaying points from a database with X/Y columns from an SQL database (ACCESS/SQL SERVER) using OGR in Mapserver. This is an excellent function, and it works great. It enables you to display POINT data from other databases than PostgreSQL with PostGIS in Mapserver. This is an example of my mapfile: LAYER CLASSITEM "servicename" CONNECTION " ODBC:@test SELECT * FROM reiseliv wkbPoint " CONNECTIONTYPE ogr DATA "test" STATUS on TYPE point NAME "1" CLASS COLOR 0 0 0 NAME "Test access" OUTLINECOLOR 255 255 255 SIZE 5 SYMBOL "square" EXPRESSION "Camping" END END On the OGR homepage I can see that OGR also enables support for ArcSDE data (http://gdal.maptools.org/ogr/ogr_formats.html). My question is this: I use Mapserver 4.8.1 on Windows downloaded from DM Solutions. Does this Mapserver compilation support displaying data from ArcSDE via OGR? In case this is true, does anybody have an example of syntax, like the one I use for displaying ODBC data, but for ArcSDE (to use in the mapfile)? Does it also support displaying POINT/LINE/POLYGON? Regards Sture From naci0002 at UMN.EDU Wed Feb 22 14:37:09 2006 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Wed, 22 Feb 2006 16:37:09 -0600 Subject: Itasca demo and Ms4w Line 44 In-Reply-To: Message-ID: Put none in quotes ("none") and you'll be good to go. By the way, don't forget to CC the list when replying. -Perry Eric.Keefauver at altarum.org wrote: > Thanks for the additional info Perry, > > Here is the code from the map file at Line 44 > > > WEB > HEADER demo_header.html > TEMPLATE demo.html > FOOTER demo_footer.html > MINSCALE 1000 > MAXSCALE 1550000 > IMAGEPATH "set in demo_init.html" > IMAGEURL "set in demo_init.html" > METADATA > WMS_TITLE "UMN MapServer Itasca Demo" > WMS_ABSTRACT "This is the UMN MapServer demonstration application for > Itasca County located in north central Minnesota." > WMS_ACCESSCONSTRAINTS none <--Line 44 > > # change this value to match your setup > WMS_ONLINERESOURCE > "http://localhost/mapserver_demos/itasca/demo_init.html" > > WMS_SRS "EPSG:26915" > END > END > > > > Thanks again, > > Eric > > > > > > > > > > > > > > "Pericles S. > Nacionales" > > Eric.Keefauver at ALTARUM.ORG > cc > 02/22/2006 09:46 MAPSERVER-USERS at lists.umn.edu > AM Subject > Re: [UMN_MAPSERVER-USERS] Itasca > demo and Ms4w > > > > > > > > > > > The message you got means there's some obsolute KEYWORD values in the > mapfile. I don't have the demo files in my computer so if you can post > the few lines above and below line 44, I might be able to help. > > As an aside, you can certainly put the demo files under > /ms4w/apache/htdocs. Or you might as well follow the way it's done in > MS4W: > 1. unzip demo under /ms4w/apps/ > 2. create a file called httpd_demo.conf (or whatever you want to called > it, just make sure to prepend with httpd_) and add these lines to it: > #This is the Apache config file for the MapServer Demo application. > > Alias /itasca "/ms4w/apps/itasca" > > > AllowOverride None > Options Indexes MultiViews > Order allow,deny > Allow from all > > 3. Restart Apache service > 4. Edit the demo_init.html and relevant files and replace the paths with > the proper ones > 5. Check that the demo is running at http://localhost/itasca. > > Good luck! > -Perry > > > D. Eric Keefauver wrote: > >>New and just getting started with ms4w on my local windows machine >> >>Where should one dump the itasca files to get the demo up and running: >>C:\ms4w\Apache\htdocs? >> >>I have placed the itasca data in the following: >>C:\ms4w\Apache\htdocs\mapserver_demos\itasca >> >>And within the map file I changed this line to: >> # change this value to match your setup >> WMS_ONLINERESOURCE >>"http://localhost/mapserver_demos/itasca/demo_init.html" >> >> >>At: http://localhost/mapserver_demos/itasca/demo_init.html and > > clicking > >>the Initialize button I get the following error >> >>getString(): Symbol definition error. Parsing error near (none):(line 44) >> >>what am I doing wrong? >> >>thanks in advance and bearing with a complete newbie >> >>Eric >> >>. >> > > > > > > . > From matt0177 at GMAIL.COM Wed Feb 22 14:38:13 2006 From: matt0177 at GMAIL.COM (Matthew Edmondson) Date: Wed, 22 Feb 2006 15:38:13 -0700 Subject: Label angle on roads Message-ID: I'm currently working on a mapserver\chameleon application, I've seen a couple of posts on this mailing list in which people used the label value of "angle auto" to force the angle of the label to match a line. Adding the angle, auto to my label doesn't seem to make any difference at all in my map's appearance. All road labels are still completely horizontal. I would really like for the angle of the label to match the angle of that section of road. Any help in this matter would be greatly appreciated. Thanks, Matt From woodbri at SWOODBRIDGE.COM Wed Feb 22 14:48:33 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 22 Feb 2006 17:48:33 -0500 Subject: Label angle on roads In-Reply-To: <8e2cbd660602221438i7fb9d7e0wd510df9592fe6bea@mail.gmail.com> Message-ID: You need to specify truetype not bitmap fonts in your LABEL ... END block to get rotatable fonts and labels. -Steve W. Matthew Edmondson wrote: > I'm currently working on a mapserver\chameleon application, I've seen > a couple of posts on this mailing list in which people used the label > value of "angle auto" to force the angle of the label to match a line. > > Adding the angle, auto to my label doesn't seem to make any difference > at all in my map's appearance. All road labels are still completely > horizontal. > > I would really like for the angle of the label to match the angle of > that section of road. Any help in this matter would be greatly > appreciated. > > Thanks, > > Matt > From matt0177 at GMAIL.COM Wed Feb 22 15:07:10 2006 From: matt0177 at GMAIL.COM (Matthew Edmondson) Date: Wed, 22 Feb 2006 16:07:10 -0700 Subject: Label angle on roads In-Reply-To: <43FCEA41.9070108@swoodbridge.com> Message-ID: Worked like a champ, thanks. Matt On 2/22/06, Stephen Woodbridge wrote: > You need to specify truetype not bitmap fonts in your LABEL ... END > block to get rotatable fonts and labels. > > -Steve W. > > Matthew Edmondson wrote: > > I'm currently working on a mapserver\chameleon application, I've seen > > a couple of posts on this mailing list in which people used the label > > value of "angle auto" to force the angle of the label to match a line. > > > > Adding the angle, auto to my label doesn't seem to make any difference > > at all in my map's appearance. All road labels are still completely > > horizontal. > > > > I would really like for the angle of the label to match the angle of > > that section of road. Any help in this matter would be greatly > > appreciated. > > > > Thanks, > > > > Matt > > > > From warmerdam at POBOX.COM Wed Feb 22 15:31:01 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 22 Feb 2006 18:31:01 -0500 Subject: Solution for OGR Virtual polygon data In-Reply-To: Message-ID: Mark Adams wrote: > Frank et al, > > I've had great success with simple polygons, and with single polygons with > holes. Everything seems to follow expectations. However, the data I'm > working with sometimes has multiple polygons, but sometimes doesn't. > According to the OGC simple features spec 05-134, a MULTIPOLYGON statement > following the same format as a simple POLYGON statement should work. So, the > following 2 statements should be equivalent: > > 'POLYGON( ( 56 34, 62 48, 84 48, 84 42, 56 34) )' > or > 'MULTIPOLYGON( ( 56 34, 62 48, 84 48, 84 42, 56 34) )' > > In practice, using the latter format failed in mapserver - no geometries > shown. By adding a 3rd set of brackets the problem is solved: > > 'MULTIPOLYGON( (( 56 34, 62 48, 84 48, 84 42, 56 34)) )' > > I am now ensuring that all text geometries are added in the database with > that extra set of brackets, so it is no longer a problem for me, but it > might cause others some pain - seems like a deviation from the spec. > > (Or I might be reading it wrong). Mark, I check the spec (99-049) and it seems clear the above is (with 3 levels of brackets) is correct according to sections 3.2.5.2 and the example in 3.2.5.3. > Otherwise, publishing text-based polygon data is working out very well, so > thanks again for the support. Great! Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From aaronkoning at GMAIL.COM Wed Feb 22 15:54:44 2006 From: aaronkoning at GMAIL.COM (Aaron Koning) Date: Wed, 22 Feb 2006 15:54:44 -0800 Subject: [4.6.1 TO 4.8.1]: Problems with PNG and PHP/MapScript? In-Reply-To: <43FC53A9.2090405@fielax.de> Message-ID: This could be a number of things. Are you editing your files in windows and then transfering them to Linux? Could be incompatible line endings. Are you including a shebang line in your PHP scripts? Could be a problem with odd characters in the shebang line. Could be a problem with the new php.ini file and the doc_root variable. Have you tried creating a simple PHP script and testing, followed by a simple PHP-MapScript script (and testing)? Aaron On 2/22/06, Sebastian Albrecht wrote: > > Hello, > > I just wanted to change from 4.6.1 to 4.8.1 because I've read the > querymapObj is available in PHP/Mapscript since 4.8. > > So what I did was taking my old configure line from 4.6.1 and using it > for the new version: > > ./configure > --enable-force-freetype1 > --with-gd=/usr/local > --with-zlib > --with-jpeg > --with-tiff > --with-png > --with-xpm=/usr/X11R6 > --with-threads > --with-proj=/usr/local > --with-php=/usr/local/src/php-5.0.4 > --with-gdal=/usr/local/bin/gdal-config > --with-ogr=/usr/local/bin/gdal-config > --with-postgis=/usr/local/pgsql/bin/pg_config > --with-wfs > --with-wcs > --with-wmsclient > --with-wfsclient > --with-curl-config=/usr/local/bin/curl-config > > > The compiling finishes without errors but all my MapScript applications > which use PNG as output format don't work. > It says "INTERNAL SERVER ERROR" > which is "Premature end of header in /usr/local/bin/php". > > My PHP version is 5.0.4 which uses the same GD (2.0.33) installation as > MapServer. And it worked with 4.6.1 without problems. > > Anybody had a similar problem or knows what to do? > > > Sebastian > -- +-------------------------------------------- | Aaron Koning | Information Technologist | Prince George, BC, Canada. +-------------------------------------------- | http://datashare.gis.unbc.ca/fist/ | http://datashare.gis.unbc.ca/gctp-js/ +-------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From dylan.beaudette at GMAIL.COM Wed Feb 22 18:00:09 2006 From: dylan.beaudette at GMAIL.COM (Dylan Beaudette) Date: Wed, 22 Feb 2006 18:00:09 -0800 Subject: tileindex within a tile index Message-ID: Greetings, I was wondering if it is possible to include a tile index within another tile index.... i.e. recursive tile indices for multiple levels of imagery.... I haven't tried doing this, but have often wondered about it. Thoughts? Thanks, -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From warmerdam at POBOX.COM Wed Feb 22 18:28:33 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 22 Feb 2006 21:28:33 -0500 Subject: tileindex within a tile index In-Reply-To: <200602221800.09611.dylan.beaudette@gmail.com> Message-ID: Dylan Beaudette wrote: > Greetings, > > I was wondering if it is possible to include a tile index within another tile > index.... i.e. recursive tile indices for multiple levels of imagery.... > > I haven't tried doing this, but have often wondered about it. Dylan, I do not believe this is supported. Note that building a spatial index for a merged tileindex already gives a similar effect in that large parts of the tileindex are ignored if they fall outside the area of interest. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From stefan.schwarzer at GRID.UNEP.CH Wed Feb 22 22:55:09 2006 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Thu, 23 Feb 2006 07:55:09 +0100 Subject: Postgis and EXPRESSION In-Reply-To: <43FCD438.9010200@refractions.net> Message-ID: Thanks for the suggestions. Unfortunately neither one of them worked. 1) The CLASSITEM seems not to be the problem. At least when I took it away it still didn't use the the EXPRESSION. 2) For the NATURAL JOIN I get an error message. (Postgresql reports the error as 'ERROR: syntax error at or near "ON" at character 251 '). But the LEFT JOIN seems to work and when I run the query directly in the database the result looks correct. I tried to play a bit around, but without success... Just to be sure that I understand it correctly: the EXPRESSION parameter references to the alias in the SELECT statement, no? So if I have regions_view.name AS name then my EXPRESSION ([name] ne 'Africa') is based on the alias... Gush, I am really stuck there... Stef On Feb 22, 2006, at 10:14 PM, Clint Johnson wrote: > I believe your script is failing at the DATA clause -- or because > there exists no data within your tables that is join-able. > > *[Malformed DATA clause]* > I've run into a similar problem myself before. > > I am pretty sure your problem is with your DATA statement. In fact > it may be throwing an exception that you haven't been able to see > (rather than ignoring the expression). > > See the advanced-usage at: http://postgis.refractions.net/docs/ > ch04.html#id2789268 > Note that the SQL used within the DATA tag is "pseudo-SQL" > > Do not use the WHERE clause to perform your join; instead, use the > NATURAL JOIN operator. Instead, only use the WHERE clause to > filter upon items as you would with the FILTER tag (such as > regions_view.name = 'foo'). I believe the FILTER and WHERE clauses > to be coupled (which further complicates matters when doing a > complex join in your DATA clause). > > Therefore, try this and let me know if it works: > > DATA "the_geom FROM (SELECT countries.the_geom AS the_geom, > regions_view.name AS name, countries.oid AS oid FROM countries > NATURAL JOIN regions_view ON countries.geo_region = > regions_view.id) AS foo using unique oid using srid=-1" > > *[Nothing to join]* > Perhaps there is nothing to join -- in that case try using LEFT > JOIN instead of the NATURAL JOIN > > Clint > > > Stefan Schwarzer wrote: >> Hi, >> >> I migrated from mysql to postgres/postgis and update now all my >> map-queries. But I have a problem getting it working. I wonder if >> this is a major problem or some minor issue. The doc says : >> * >> * >> *"**Logical expressions allow you to build fairly complex tests >> based on one or more attributes and therefore are only available >> with shapefiles"* >> >> So, i would almost presume that using EXPRESSIONS is not possible >> via postgis. But I can't imagine that this is true... In the >> moment it runs the query but with no result - meaning that it >> "ignores" the epression. I couldn't find anything similar in the >> archives either... >> >> >> LAYER >> NAME bg_shape >> CONNECTIONTYPE postgis >> CONNECTION 'user=xxx password=xxx dbname=xxx' >> TYPE POLYGON >> DATA 'the_geom FROM (SELECT countries.the_geom AS the_geom, >> regions_view.name AS name, countries.oid AS oid FROM countries, >> regions_view WHERE countries.geo_region = regions_view.id) AS foo >> USING UNIQUE oid USING srid=-1' >> CLASSITEM 'name' >> CLASS >> NAME '' EXPRESSION ([name] ne 'Africa') >> OUTLINECOLOR 230 230 230 >> COLOR 230 230 230 >> END >> END # LAYER >> >> >> Thanks for any help! >> >> Stef >> > > > -- > Clint Johnson > Refractions Research Inc. > Cjohnson at refractions.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From gsw at GLOBEXPLORER.COM Wed Feb 22 23:07:14 2006 From: gsw at GLOBEXPLORER.COM (Gregory S. Williamson) Date: Wed, 22 Feb 2006 23:07:14 -0800 Subject: Postgis and EXPRESSION Message-ID: Stefan, I am not sure if this could work for you, but you could try creating a view or a function (if parameters are needed) and then call that from MSS. I've used that to avoid constructs that MSS didn't like, or to do other behind-the-scenes processing. Plus diagnosing the postgres sql errors is sometimes easier than figuring out what MSS is doing, depending on how it is configured. Greg Williamson DBA GlobeXplorer LLC -----Original Message----- From: UMN MapServer Users List on behalf of Stefan Schwarzer Sent: Wed 2/22/2006 10:55 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: Re: [UMN_MAPSERVER-USERS] Postgis and EXPRESSION Thanks for the suggestions. Unfortunately neither one of them worked. 1) The CLASSITEM seems not to be the problem. At least when I took it away it still didn't use the the EXPRESSION. 2) For the NATURAL JOIN I get an error message. (Postgresql reports the error as 'ERROR: syntax error at or near "ON" at character 251 '). But the LEFT JOIN seems to work and when I run the query directly in the database the result looks correct. I tried to play a bit around, but without success... Just to be sure that I understand it correctly: the EXPRESSION parameter references to the alias in the SELECT statement, no? So if I have regions_view.name AS name then my EXPRESSION ([name] ne 'Africa') is based on the alias... Gush, I am really stuck there... Stef On Feb 22, 2006, at 10:14 PM, Clint Johnson wrote: > I believe your script is failing at the DATA clause -- or because > there exists no data within your tables that is join-able. > > *[Malformed DATA clause]* > I've run into a similar problem myself before. > > I am pretty sure your problem is with your DATA statement. In fact > it may be throwing an exception that you haven't been able to see > (rather than ignoring the expression). > > See the advanced-usage at: http://postgis.refractions.net/docs/ > ch04.html#id2789268 > Note that the SQL used within the DATA tag is "pseudo-SQL" > > Do not use the WHERE clause to perform your join; instead, use the > NATURAL JOIN operator. Instead, only use the WHERE clause to > filter upon items as you would with the FILTER tag (such as > regions_view.name = 'foo'). I believe the FILTER and WHERE clauses > to be coupled (which further complicates matters when doing a > complex join in your DATA clause). > > Therefore, try this and let me know if it works: > > DATA "the_geom FROM (SELECT countries.the_geom AS the_geom, > regions_view.name AS name, countries.oid AS oid FROM countries > NATURAL JOIN regions_view ON countries.geo_region = > regions_view.id) AS foo using unique oid using srid=-1" > > *[Nothing to join]* > Perhaps there is nothing to join -- in that case try using LEFT > JOIN instead of the NATURAL JOIN > > Clint > > > Stefan Schwarzer wrote: >> Hi, >> >> I migrated from mysql to postgres/postgis and update now all my >> map-queries. But I have a problem getting it working. I wonder if >> this is a major problem or some minor issue. The doc says : >> * >> * >> *"**Logical expressions allow you to build fairly complex tests >> based on one or more attributes and therefore are only available >> with shapefiles"* >> >> So, i would almost presume that using EXPRESSIONS is not possible >> via postgis. But I can't imagine that this is true... In the >> moment it runs the query but with no result - meaning that it >> "ignores" the epression. I couldn't find anything similar in the >> archives either... >> >> >> LAYER >> NAME bg_shape >> CONNECTIONTYPE postgis >> CONNECTION 'user=xxx password=xxx dbname=xxx' >> TYPE POLYGON >> DATA 'the_geom FROM (SELECT countries.the_geom AS the_geom, >> regions_view.name AS name, countries.oid AS oid FROM countries, >> regions_view WHERE countries.geo_region = regions_view.id) AS foo >> USING UNIQUE oid USING srid=-1' >> CLASSITEM 'name' >> CLASS >> NAME '' EXPRESSION ([name] ne 'Africa') >> OUTLINECOLOR 230 230 230 >> COLOR 230 230 230 >> END >> END # LAYER >> >> >> Thanks for any help! >> >> Stef >> > > > -- > Clint Johnson > Refractions Research Inc. > Cjohnson at refractions.net !DSPAM:43fd5c91219451348188260! From flavio at TYDAC.CH Wed Feb 22 23:17:25 2006 From: flavio at TYDAC.CH (Flavio Hendry) Date: Thu, 23 Feb 2006 08:17:25 +0100 Subject: ArcIMS x Mapserver... In-Reply-To: <33fad6880602221247u2fd3cbe5h5c1958588d4b7188@mail.gmail.com> Message-ID: Hi Paul the software costs depend on where you sit in the world. list price in other areas is at least double of what was mentioned ... one thing to think about in your cost comparision: if the client has ArcGIS and loads of MXD he wants to publish, ArcIMS might be "cheaper", as there is no work at all involved except to create the Services. Going from mxd to MapServer involves quite a bit of work (the tools currently available are not that straight forward, especially if you have complex symbology). If the client has ArcView 3.x and loads projects and Shapes, MapServer is probably the easier way. Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ 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 ---------------------------------------------------------------- From umberto.nicoletti at GMAIL.COM Wed Feb 22 23:20:44 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 23 Feb 2006 08:20:44 +0100 Subject: *** glibc detected *** double free or corruption In-Reply-To: <7CDD7B94357FD5119E800002A537C46E0B8B7D7F@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: Open the command prompt and then type: man malloc Search for MALLOC_CHECK This is a feature of newer malloc impl that add checking code so that memory leaks or mismanagements can be detected.If that does not help try to disable SELinux. Reagrds, Umberto On 2/22/06, Doyon, Jean-Francois wrote: > Hello, > > I'm testing MapServer on some new hardware/software, and ran into what looks > like a bug ... > > With a specific mapfile, the mapserver CGI dies with the following error: > > [Wed Feb 22 13:03:33 2006] [error] [client 132.156.4.96] *** glibc detected > *** double free or corruption (!prev): 0x09f76cf8 ***, referer: > [Wed Feb 22 13:03:33 2006] [error] [client 132.156.4.96] Premature end of > script headers: mapserv461atlas, referer: > > (referer deleted) > > This is mapserver 4.6.1 on CentOS 4.2 (i.e. RHEL 4). > > It uses: > > GDAL 1.3.1 > PROJ 4.4.9 > > And the system libraries for the rest: > > libgd.so.2 => /usr/lib/libgd.so.2 (0x0065a000) > libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x002aa000) > libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x004dc000) > libpng12.so.0 => /usr/lib/libpng12.so.0 (0x00343000) > libz.so.1 => /usr/lib/libz.so.1 (0x004ca000) > libproj.so.0 => /home/atlas/web/lib/libproj.so.0 (0x00111000) > libgdal.so.1 => /home/atlas/web/lib/libgdal.so.1 (0x006a7000) > libcurl.so.3 => /usr/lib/libcurl.so.3 (0x00145000) > libssl.so.4 => /lib/libssl.so.4 (0x00175000) > libcrypto.so.4 => /lib/libcrypto.so.4 (0x001a9000) > libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00292000) > libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x005c9000) > libcom_err.so.2 => /lib/libcom_err.so.2 (0x00447000) > libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00630000) > libresolv.so.2 => /lib/libresolv.so.2 (0x002c8000) > libdl.so.2 => /lib/libdl.so.2 (0x00441000) > libidn.so.11 => /usr/lib/libidn.so.11 (0x0044c000) > libc.so.6 => /lib/tls/libc.so.6 (0x009c7000) > libm.so.6 => /lib/tls/libm.so.6 (0x00313000) > libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00366000) > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x002db000) > libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x002e3000) > libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x00af1000) > libtiff.so.3 => /usr/lib/libtiff.so.3 (0x0047c000) > librt.so.1 => /lib/tls/librt.so.1 (0x00543000) > /lib/ld-linux.so.2 (0x002fc000) > libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x00431000) > libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00557000) > > The only thing noticeably different about the mapfile causing the error is > that it has WMS layers and is quite a bit bigger than your average mapfile. > > I found nothing in bugzilla. > > Anybody run into this before? I found one obscure reference, but no clear > cause/solution. > > Thanks, > > Jean-Fran?ois Doyon > Internet Service Development and Systems Support / Sp?cialiste de > d?veloppements internet et soutien technique > Canada Centre for Remote Sensing/Centre Canadien de t?l?d?tection > Natural Resources Canada/Ressources Naturelles Canada > http://atlas.gc.ca > Tel./T?l.: (613) 992-4902 > Fax: (613) 947-2410 > From stefan.schwarzer at GRID.UNEP.CH Wed Feb 22 23:32:07 2006 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Thu, 23 Feb 2006 08:32:07 +0100 Subject: Postgis and EXPRESSION In-Reply-To: <71E37EF6B7DCC1499CEA0316A2568328024BBFEB@loki.wc.globexplorer.net> Message-ID: Hmm, tried this too now. Not that it made a difference, but it gave me an idea. It sounds really stupid, but although I used "character varying" as the field definition I had the impression that something was wrong within the fields. So, I found out that there were empty spaces behind the field values. I have no idea how they got there..... Relieved, but ashamed, it refreshed the views... and.... still, it did not work... So, meanwhile I have this definition: LAYER NAME bg_shape CONNECTIONTYPE postgis CONNECTION 'user=xxx password=xxx dbname=xxx' TYPE POLYGON DATA 'the_geom FROM countries_regions_view USING UNIQUE id USING srid=-1' CLASSITEM 'reg_name' CLASS NAME '' EXPRESSION ([reg_name] ne 'Africa') OUTLINECOLOR 230 230 230 COLOR 230 230 230 END END and attached is a screenshot of the view. -------------- next part -------------- A non-text attachment was scrubbed... Name: screenshot62.png Type: image/png Size: 43821 bytes Desc: not available URL: -------------- next part -------------- > Stefan, > > I am not sure if this could work for you, but you could try > creating a view or a function (if parameters are needed) and then > call that from MSS. I've used that to avoid constructs that MSS > didn't like, or to do other behind-the-scenes processing. > > Plus diagnosing the postgres sql errors is sometimes easier than > figuring out what MSS is doing, depending on how it is configured. > > Greg Williamson > DBA > GlobeXplorer LLC > > > -----Original Message----- > From: UMN MapServer Users List on behalf of Stefan Schwarzer > Sent: Wed 2/22/2006 10:55 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Cc: > Subject: Re: [UMN_MAPSERVER-USERS] Postgis and EXPRESSION > Thanks for the suggestions. > > Unfortunately neither one of them worked. > > 1) The CLASSITEM seems not to be the problem. At least when I took it > away it still didn't use the the EXPRESSION. > > 2) For the NATURAL JOIN I get an error message. (Postgresql reports > the error as 'ERROR: syntax error at or near "ON" at character 251 > '). But the LEFT JOIN seems to work and when I run the query directly > in the database the result looks correct. > > I tried to play a bit around, but without success... > > Just to be sure that I understand it correctly: the EXPRESSION > parameter references to the alias in the SELECT statement, no? So if > I have > regions_view.name AS name > then my > EXPRESSION ([name] ne 'Africa') > is based on the alias... > > Gush, I am really stuck there... > > Stef > > > On Feb 22, 2006, at 10:14 PM, Clint Johnson wrote: > >> I believe your script is failing at the DATA clause -- or because >> there exists no data within your tables that is join-able. >> >> *[Malformed DATA clause]* >> I've run into a similar problem myself before. >> >> I am pretty sure your problem is with your DATA statement. In fact >> it may be throwing an exception that you haven't been able to see >> (rather than ignoring the expression). >> >> See the advanced-usage at: http://postgis.refractions.net/docs/ >> ch04.html#id2789268 >> Note that the SQL used within the DATA tag is "pseudo-SQL" >> >> Do not use the WHERE clause to perform your join; instead, use the >> NATURAL JOIN operator. Instead, only use the WHERE clause to >> filter upon items as you would with the FILTER tag (such as >> regions_view.name = 'foo'). I believe the FILTER and WHERE clauses >> to be coupled (which further complicates matters when doing a >> complex join in your DATA clause). >> >> Therefore, try this and let me know if it works: >> >> DATA "the_geom FROM (SELECT countries.the_geom AS the_geom, >> regions_view.name AS name, countries.oid AS oid FROM countries >> NATURAL JOIN regions_view ON countries.geo_region = >> regions_view.id) AS foo using unique oid using srid=-1" >> >> *[Nothing to join]* >> Perhaps there is nothing to join -- in that case try using LEFT >> JOIN instead of the NATURAL JOIN >> >> Clint >> >> >> Stefan Schwarzer wrote: >>> Hi, >>> >>> I migrated from mysql to postgres/postgis and update now all my >>> map-queries. But I have a problem getting it working. I wonder if >>> this is a major problem or some minor issue. The doc says : >>> * >>> * >>> *"**Logical expressions allow you to build fairly complex tests >>> based on one or more attributes and therefore are only available >>> with shapefiles"* >>> >>> So, i would almost presume that using EXPRESSIONS is not possible >>> via postgis. But I can't imagine that this is true... In the >>> moment it runs the query but with no result - meaning that it >>> "ignores" the epression. I couldn't find anything similar in the >>> archives either... >>> >>> >>> LAYER >>> NAME bg_shape >>> CONNECTIONTYPE postgis >>> CONNECTION 'user=xxx password=xxx dbname=xxx' >>> TYPE POLYGON >>> DATA 'the_geom FROM (SELECT countries.the_geom AS the_geom, >>> regions_view.name AS name, countries.oid AS oid FROM countries, >>> regions_view WHERE countries.geo_region = regions_view.id) AS foo >>> USING UNIQUE oid USING srid=-1' >>> CLASSITEM 'name' >>> CLASS >>> NAME '' EXPRESSION ([name] ne 'Africa') >>> OUTLINECOLOR 230 230 230 >>> COLOR 230 230 230 >>> END >>> END # LAYER >>> >>> >>> Thanks for any help! >>> >>> Stef >>> >> >> >> -- >> Clint Johnson >> Refractions Research Inc. >> Cjohnson at refractions.net > > > > !DSPAM:43fd5c91219451348188260! From umberto.nicoletti at GMAIL.COM Wed Feb 22 23:39:53 2006 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 23 Feb 2006 08:39:53 +0100 Subject: Postgis and EXPRESSION In-Reply-To: Message-ID: Does the error message also include the query that was sent to postgres? If yes, could you post it to the list? Thanks, Umberto On 2/23/06, Stefan Schwarzer wrote: > Thanks for the suggestions. > > Unfortunately neither one of them worked. > > 1) The CLASSITEM seems not to be the problem. At least when I took it away > it still didn't use the the EXPRESSION. > > 2) For the NATURAL JOIN I get an error message. (Postgresql reports the > error as 'ERROR: syntax error at or near "ON" at character 251 '). But the > LEFT JOIN seems to work and when I run the query directly in the database > the result looks correct. > > I tried to play a bit around, but without success... > > Just to be sure that I understand it correctly: the EXPRESSION parameter > references to the alias in the SELECT statement, no? So if I have > regions_view.name AS name > then my > EXPRESSION ([name] ne 'Africa') > is based on the alias... > > Gush, I am really stuck there... > > Stef > > > > > On Feb 22, 2006, at 10:14 PM, Clint Johnson wrote: > > I believe your script is failing at the DATA clause -- or because there > exists no data within your tables that is join-able. > > *[Malformed DATA clause]* > I've run into a similar problem myself before. > > I am pretty sure your problem is with your DATA statement. In fact it may > be throwing an exception that you haven't been able to see (rather than > ignoring the expression). > > See the advanced-usage at: > http://postgis.refractions.net/docs/ch04.html#id2789268 > Note that the SQL used within the DATA tag is "pseudo-SQL" > > Do not use the WHERE clause to perform your join; instead, use the NATURAL > JOIN operator. Instead, only use the WHERE clause to filter upon items as > you would with the FILTER tag (such as regions_view.name = 'foo'). I > believe the FILTER and WHERE clauses to be coupled (which further > complicates matters when doing a complex join in your DATA clause). > > Therefore, try this and let me know if it works: > > DATA "the_geom FROM (SELECT countries.the_geom AS the_geom, > regions_view.name AS name, countries.oid AS oid FROM countries NATURAL JOIN > regions_view ON countries.geo_region = regions_view.id) AS foo using unique > oid using srid=-1" > > *[Nothing to join]* > Perhaps there is nothing to join -- in that case try using LEFT JOIN instead > of the NATURAL JOIN > > Clint > > > Stefan Schwarzer wrote: > Hi, > > I migrated from mysql to postgres/postgis and update now all my map-queries. > But I have a problem getting it working. I wonder if this is a major problem > or some minor issue. The doc says : > * > * > *"**Logical expressions allow you to build fairly complex tests based on one > or more attributes and therefore are only available with shapefiles"* > > So, i would almost presume that using EXPRESSIONS is not possible via > postgis. But I can't imagine that this is true... In the moment it runs the > query but with no result - meaning that it "ignores" the epression. I > couldn't find anything similar in the archives either... > > > LAYER > NAME bg_shape > CONNECTIONTYPE postgis > CONNECTION 'user=xxx password=xxx dbname=xxx' > TYPE POLYGON > DATA 'the_geom FROM (SELECT countries.the_geom AS the_geom, > regions_view.name AS name, countries.oid AS oid FROM countries, regions_view > WHERE countries.geo_region = regions_view.id) AS foo USING UNIQUE oid USING > srid=-1' > CLASSITEM 'name' > CLASS > NAME '' EXPRESSION ([name] ne 'Africa') > OUTLINECOLOR 230 230 230 > COLOR 230 230 230 > END > END # LAYER > > > Thanks for any help! > > Stef > > > > > -- > Clint Johnson > Refractions Research Inc. > Cjohnson at refractions.net > From fwj at AVINET.NO Thu Feb 23 00:04:53 2006 From: fwj at AVINET.NO (Frode Wiseth J=?ISO-8859-1?Q?=F8rgensen?=) Date: Thu, 23 Feb 2006 02:04:53 -0600 Subject: Raster data experience Message-ID: Hi! I have a quite large raster dataset (JPG) which i use with TILE/TILEINDEX, It works pretty nice, but is extremely slow processing. Any suggestions on which kind of format I should use instead of JPG, which Mapserver handles more effective? Regards Frode From lucamarle at GMAIL.COM Thu Feb 23 00:45:47 2006 From: lucamarle at GMAIL.COM (luca marletta) Date: Thu, 23 Feb 2006 09:45:47 +0100 Subject: Raster data experience In-Reply-To: Message-ID: I've never perform benchmark but I have a bunch of raster, tif format, each about 7Mb and with tileindex it's pretty quick. Jpeg is lower in size but due to compression it asks more CPU work for sure luca On 2/23/06, Frode Wiseth J?rgensen wrote: > Hi! > > I have a quite large raster dataset (JPG) which i use with TILE/TILEINDEX, > It works pretty nice, but is extremely slow processing. > > Any suggestions on which kind of format I should use instead of JPG, which > Mapserver handles more effective? -- luca marletta From andreas.albarello at TERRITORIUMONLINE.COM Thu Feb 23 01:17:16 2006 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Thu, 23 Feb 2006 10:17:16 +0100 Subject: Postgis and EXPRESSION In-Reply-To: <481F01B8-1AE6-44E2-B2B4-8D1C4B41E5C1@grid.unep.ch> Message-ID: Stefan, > > So, meanwhile I have this definition: > > LAYER > NAME bg_shape > CONNECTIONTYPE postgis > CONNECTION 'user=xxx password=xxx dbname=xxx' > TYPE POLYGON > DATA 'the_geom FROM countries_regions_view USING UNIQUE id USING > srid=-1' > CLASSITEM 'reg_name' You definitely don't need a CLASSITEM when you use "logical" expressions which directly reference some fields or attributes of your underlying dataset, as you're doing. So, it's better to leave this one away. > CLASS > NAME '' > EXPRESSION ([reg_name] ne 'Africa') Don't forget to put quotes around [reg_name]. Aren't you trying to do a string comparison between the value of reg_name and "Africa"? Well, then you'll need them as Mapserver simply replaces [reg_name] with it's actual value before evaluating the expression. So, I suggest giving a try to somewhat like this: EXPRESSION ('[reg_name]' ne 'Africa') > OUTLINECOLOR 230 230 230 > COLOR 230 230 230 > END > END > > and attached is a screenshot of the view. > Best regards, Andreas -- -------------------------------------------------------------------- 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 flavio at TYDAC.CH Thu Feb 23 01:55:56 2006 From: flavio at TYDAC.CH (Flavio Hendry) Date: Thu, 23 Feb 2006 10:55:56 +0100 Subject: Raster data experience In-Reply-To: Message-ID: Hi Frode We had the same experence with JPEG, depending on output format definitions. I'd use TIFF (or if you have access/can convert it, I'd use ECW, incredibly fast!). Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ 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 ---------------------------------------------------------------- -----Original Message----- From: Frode Wiseth J?rgensen To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Thu, 23 Feb 2006 02:04:53 -0600 Subject: [UMN_MAPSERVER-USERS] Raster data experience > Hi! > > I have a quite large raster dataset (JPG) which i use with > TILE/TILEINDEX, > It works pretty nice, but is extremely slow processing. > > Any suggestions on which kind of format I should use instead of JPG, > which > Mapserver handles more effective? > > > Regards > Frode From sc0rp10nau at YAHOO.COM.AU Thu Feb 23 02:10:52 2006 From: sc0rp10nau at YAHOO.COM.AU (Ajay Ranipeta) Date: Thu, 23 Feb 2006 04:10:52 -0600 Subject: Serving ECW's with Mapserver 4.8.1 Message-ID: Hi guys, I have some ecw's that I wanna serve with Mapserver, but I can't seem to get them to display. These ecw's are projected in GDA94 with Zones 54-56. No error's come up and other layers (shapes, wbmp's, tiff) come up fine. I use the CGI mapserver which obviously has GDAL with ECW's already included. I've gone thru' a few posts regarding ecw's and but no help. Also, as one post suggested, i've got the header info within the image itself, but that's no help either. I'm sure i'm missing something obvious, so any help would be greatly appreciated. cheers, Ajay From stefan.schwarzer at GRID.UNEP.CH Thu Feb 23 02:33:48 2006 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Thu, 23 Feb 2006 11:33:48 +0100 Subject: Postgis and EXPRESSION In-Reply-To: <43FD7D9C.6070904@territoriumonline.com> Message-ID: Hahaha. That was a good one. Thanks a lot. Quite right. I actually tried it before, but like ['reg_name']... didn't know (and didn't understand) that the apostrophes should be around the bracktes... Thanks! Stef > >> CLASS >> NAME '' >> EXPRESSION ([reg_name] ne 'Africa') > > Don't forget to put quotes around [reg_name]. Aren't you trying to > do a string comparison between the value of reg_name and "Africa"? > Well, then you'll need them as Mapserver simply replaces [reg_name] > with it's actual value before evaluating the expression. > So, I suggest giving a try to somewhat like this: > > EXPRESSION ('[reg_name]' ne 'Africa') From sparkymeister at GMAIL.COM Thu Feb 23 02:56:41 2006 From: sparkymeister at GMAIL.COM (Mark Wright) Date: Thu, 23 Feb 2006 02:56:41 -0800 Subject: compile problems on osx Message-ID: I'm having issues compiling mapserver on my new macbook pro. I am following the instructions at http://www.kyngchaos.com/macosx/mapservinstall.php but these instructions are for an older version of mapserver and older versions of various dependencies. Configure went fine as far as I can tell. When I go to make it goes for a while and this is the last few lines before it quits. This is all greek to me so any help would be appreciated. ranlib: file: libmap.a(mapthread.o) has no symbols ranlib: file: libmap.a(mapswf.o) has no symbols ranlib: file: libmap.a(mappdf.o) has no symbols ranlib libmap.a ranlib: file: libmap.a(mapthread.o) has no symbols ranlib: file: libmap.a(mapswf.o) has no symbols ranlib: file: libmap.a(mappdf.o) has no symbols gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_POSTGIS -DUSE_ZLIB -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include shp2img.c -o shp2img.o gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_POSTGIS -DUSE_ZLIB -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include shp2img.o -L. -lmap -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz -L/usr/X11R6/lib -lXpm -lX11 -ljpeg -lfreetype -lpng -lz -L/usr/X11R6/lib -lXpm -lX11 -L/usr/local/lib -lproj -ljpeg -L/usr/local/lib -lgdal -L/usr/local/pgsql/lib -lpq -L/usr/lib -lcurl -lssl -lcrypto -lz -L/usr/local/lib -lgeos -liconv -lz -lm -lstdc++ -o shp2img /usr/bin/ld: Undefined symbols: __Unwind_Resume collect2: ld returned 1 exit status make: *** [shp2img] Error 1 If it helps here is my configure: ./configure --mandir=/usr/local/share/man --with-proj=/usr/local --with-gdal=/usr/local/bin/gdal-config --with-ogr --with-gd=/usr/local --with-xpm=/usr/X11R6 --with-php=/usr/local --with-geos=/usr/local/bin/geos-config --with-wfs --with-wcs --with-wfsclient --with-wmsclient --with-postgis=/usr/local/pgsql/bin/pg_config --with-freetype=/usr/X11R6/bin/freetype-config Thanks Mark From tano01 at LIBERO.IT Thu Feb 23 03:09:42 2006 From: tano01 at LIBERO.IT (SUBSCRIBE MAPSERVER-USERS Getano) Date: Thu, 23 Feb 2006 05:09:42 -0600 Subject: mapscript error Message-ID: On redhat es 3 i'm getting the following error: Unable to load dynamic library '/usr/lib/php4/php_mapscript_40.so' - /usr/lib/php4/php_mapscript_40.so: undefined symbol: php_sprintf any suggest? Thanks From tkirstine at JDBARNES.COM Thu Feb 23 06:02:04 2006 From: tkirstine at JDBARNES.COM (Travis Kirstine GIS Tech) Date: Thu, 23 Feb 2006 09:02:04 -0500 Subject: geotiff vs ecw Message-ID: In general do RGB ecw's with a compression of 20:1 outperform 8bit geotiff with overviews. Travis From woklist at KYNGCHAOS.COM Thu Feb 23 07:12:40 2006 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Thu, 23 Feb 2006 09:12:40 -0600 Subject: compile problems on osx In-Reply-To: Message-ID: You've hit a problem with Xcode 2.2. In the makefile, change LD to g+ +. Yes, the instructions are a little out of date, I've been focusing on the installers. Anything in particular you need in an Mac Intel MapServer? My installer is mostly Intel ready right now, just missing an Intel mapscript for PHP-Apache. But that will be done by the end of the day. On Feb 23, 2006, at 4:56 AM, Mark Wright wrote: > I'm having issues compiling mapserver on my new macbook pro. I am > following the instructions at > http://www.kyngchaos.com/macosx/mapservinstall.php but these > instructions are for an older version of mapserver and older versions > of various dependencies. > > Configure went fine as far as I can tell. When I go to make it goes > for a while and this is the last few lines before it quits. This is > all greek to me so any help would be appreciated. > > ranlib: file: libmap.a(mapthread.o) has no symbols > ranlib: file: libmap.a(mapswf.o) has no symbols > ranlib: file: libmap.a(mappdf.o) has no symbols > ranlib libmap.a > ranlib: file: libmap.a(mapthread.o) has no symbols > ranlib: file: libmap.a(mapswf.o) has no symbols > ranlib: file: libmap.a(mappdf.o) has no symbols > gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF > -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR > -DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_GD_GIF -DUSE_GD_PNG > -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR > -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV > -DUSE_POSTGIS -DUSE_ZLIB -I/usr/local/include > -I/usr/local/include -I/usr/local/include > -I/usr/local/pgsql/include -I/usr/local/include shp2img.c -o > shp2img.o > gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF > -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR > -DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_GD_GIF -DUSE_GD_PNG > -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR > -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV > -DUSE_POSTGIS -DUSE_ZLIB -I/usr/local/include > -I/usr/local/include -I/usr/local/include > -I/usr/local/pgsql/include -I/usr/local/include shp2img.o -L. > -lmap -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz > -L/usr/X11R6/lib -lXpm -lX11 -ljpeg -lfreetype -lpng -lz > -L/usr/X11R6/lib -lXpm -lX11 -L/usr/local/lib -lproj -ljpeg > -L/usr/local/lib -lgdal -L/usr/local/pgsql/lib -lpq -L/usr/lib > -lcurl -lssl -lcrypto -lz -L/usr/local/lib -lgeos -liconv -lz -lm > -lstdc++ -o shp2img > /usr/bin/ld: Undefined symbols: > __Unwind_Resume > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > > If it helps here is my configure: > ./configure --mandir=/usr/local/share/man --with-proj=/usr/local > --with-gdal=/usr/local/bin/gdal-config --with-ogr --with-gd=/usr/local > --with-xpm=/usr/X11R6 --with-php=/usr/local > --with-geos=/usr/local/bin/geos-config --with-wfs --with-wcs > --with-wfsclient --with-wmsclient > --with-postgis=/usr/local/pgsql/bin/pg_config > --with-freetype=/usr/X11R6/bin/freetype-config > > > Thanks > Mark ----- William Kyngesburye http://www.kyngchaos.com/ "Mon Dieu! but they are all alike. Cheating, murdering, lying, fighting, and all for things that the beasts of the jungle would not deign to possess - money to purchase the effeminate pleasures of weaklings. And yet withal bound down by silly customs that make them slaves to their unhappy lot while firm in the belief that they be the lords of creation enjoying the only real pleasures of existence.... - the wisdom of Tarzan From shussain at ATSINCORP.COM Thu Feb 23 08:17:18 2006 From: shussain at ATSINCORP.COM (Shaik A. Hussain) Date: Thu, 23 Feb 2006 11:17:18 -0500 Subject: msCalculateScale(): General error message. Invalid image extent. Message-ID: Hello All, I am getting the following error while I use the mapext msCalculateScale(): General error message. Invalid image extent. This URL causes the above error. http://devmap.penndotpams.org/cgi-bin/mapserv.exe?map=E%3A%5CLotus%5CApa che%5Chtdocs%5Cpams1%5Cpams.map&layer=flightline&mode=map&mapext=0+0+211 666+211666&mapsize=300+300 Left tile to the above image - get image without any error http://devmap.penndotpams.org/cgi-bin/mapserv.exe?map=E%3A%5CLotus%5CApa che%5Chtdocs%5Cpams1%5Cpams.map&layer=flightline&mode=map&mapext=-211666 +0+0+211666&mapsize=300+300 Down tile to the above image - get image without any error http://devmap.penndotpams.org/cgi-bin/mapserv.exe?map=E%3A%5CLotus%5CApa che%5Chtdocs%5Cpams1%5Cpams.map&layer=flightline&mode=map&mapext=0+-2116 66+211666+0&mapsize=300+300 Any one can help me what I am doing wrong. Thanks, Anwar I am using Windows XP2003, Apache. MapServer version 3.6.6 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=P ROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=POSTG IS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Here is my map file # # Start of map file - created Thu Jan 24 11:36:43 2002 # NAME PAMS SIZE 300 300 STATUS ON EXTENT -252600 -148033.591 274400 165545.107 UNITS meters SHAPEPATH 'E:\Lotus\Apache\htdocs\pams/' SYMBOLSET 'E:\Lotus\Apache\htdocs\pams\Symbols\symbols.sym' FONTSET "E:\Lotus\Apache\htdocs\pams\Symbols\fonts.list" IMAGECOLOR 255 255 255 TRANSPARENT ON PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" #"units=m" END # # Start of web interface definition # WEB HEADER demo_header.html TEMPLATE demo.html FOOTER demo_footer.html IMAGEPATH "../pams1/mapimages\" IMAGEURL "/mapimages/" LOG "pams.log" END # # Start of layer definitions # LAYER NAME "flightline" PROJECTION "proj=poly" "ellps=GRS80" "lon_0=77.75w" "lat_0=40.925n" END TYPE polygon STATUS off DATA 'ascot/flightline' CLASSITEM Pams_code CLASS Name 'Flight Lines' EXPRESSION ([DELETED] = 1) OUTLINECOLOR 150 200 250 SYMBOL 'circle' SIZE 1 END # CLASS END # LAYER END # MAPFILE -------------- next part -------------- An HTML attachment was scrubbed... URL: From aaronkoning at GMAIL.COM Thu Feb 23 09:19:21 2006 From: aaronkoning at GMAIL.COM (Aaron Koning) Date: Thu, 23 Feb 2006 09:19:21 -0800 Subject: mapscript error In-Reply-To: Message-ID: Did you try 'ldd /usr/lib/php4/php_mapscript_40.so' to see if their are any missing libraries? Aaron On 2/23/06, SUBSCRIBE MAPSERVER-USERS Getano wrote: > > On redhat es 3 i'm getting the following error: > > Unable to load dynamic library '/usr/lib/php4/php_mapscript_40.so' - > /usr/lib/php4/php_mapscript_40.so: undefined symbol: php_sprintf > > any suggest? > > Thanks > -- +-------------------------------------------- | Aaron Koning | Information Technologist | Prince George, BC, Canada. +-------------------------------------------- | http://datashare.gis.unbc.ca/fist/ | http://datashare.gis.unbc.ca/gctp-js/ +-------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From tano01 at LIBERO.IT Thu Feb 23 09:55:15 2006 From: tano01 at LIBERO.IT (SUBSCRIBE MAPSERVER-USERS Anonymous) Date: Thu, 23 Feb 2006 11:55:15 -0600 Subject: mapscript error Message-ID: I'm sorry Aaron...all libraries are founded! Any other ideas?? Gaetano libmap.so.4.6.0-beta2 => /usr/lib/libmap.so.4.6.0-beta2 (0xb7514000) libcurl.so.3 => /usr/lib/libcurl.so.3 (0xb741f000) libdl.so.2 => /lib/libdl.so.2 (0xb741c000) libz.so.1 => /usr/lib/libz.so.1 (0xb740e000) libpq.so.3 => /usr/lib/libpq.so.3 (0xb73f8000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb73db000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7377000) libpng.so.3 => /usr/lib/libpng.so.3 (0xb734d000) libgdal.so.1 => /usr/lib/libgdal.so.1 (0xb6efd000) libproj.so.0 => /usr/lib/libproj.so.0 (0xb6ecb000) libgd.so.2 => /usr/lib/libgd.so.2 (0xb6e7f000) libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0xb6dcc000) libm.so.6 => /lib/tls/libm.so.6 (0xb6da9000) libc.so.6 => /lib/tls/libc.so.6 (0xb6c72000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb6c69000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) libcrypt.so.1 => /lib/libcrypt.so.1 (0xb6c3c000) libresolv.so.2 => /lib/libresolv.so.2 (0xb6c2a000) libnsl.so.1 => /lib/libnsl.so.1 (0xb6c14000) libodbc.so.1 => /usr/lib/libodbc.so.1 (0xb6bba000) libxerces-c.so.26 => /usr/lib/libxerces-c.so.26 (0xb6886000) libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb6876000) libungif.so.4 => /usr/lib/libungif.so.4 (0xb686f000) libgeotiff.so => /usr/lib/libgeotiff.so (0xb684e000) libtiff.so.3 => /usr/lib/libtiff.so.3 (0xb6802000) libnetcdf.so => /usr/lib/libnetcdf.so (0xb67e1000) libnss_files.so.2 => /lib/libnss_files.so.2 (0xb67d5000) libnss_dns.so.2 => /lib/libnss_dns.so.2 (0xb67d0000) libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb67a6000) libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0xb679d000) libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0xb6786000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0xb66a7000) From sparkymeister at GMAIL.COM Thu Feb 23 10:30:05 2006 From: sparkymeister at GMAIL.COM (Mark Wright) Date: Thu, 23 Feb 2006 10:30:05 -0800 Subject: compile problems on osx In-Reply-To: <83B3BF1A-228B-46A7-B20A-5CBACF1C6028@kyngchaos.com> Message-ID: What I would really like would be for mapserver with php5. Also ecw support which I also had trouble compiling. Do you have any tips on compiling ming> I had issues there too. Anyways, I'll edit the makefile and see what happens. Mark On 2/23/06, William Kyngesburye wrote: > You've hit a problem with Xcode 2.2. In the makefile, change LD to g+ > +. Yes, the instructions are a little out of date, I've been > focusing on the installers. > > Anything in particular you need in an Mac Intel MapServer? My > installer is mostly Intel ready right now, just missing an Intel > mapscript for PHP-Apache. But that will be done by the end of the day. > > On Feb 23, 2006, at 4:56 AM, Mark Wright wrote: > > > I'm having issues compiling mapserver on my new macbook pro. I am > > following the instructions at > > http://www.kyngchaos.com/macosx/mapservinstall.php but these > > instructions are for an older version of mapserver and older versions > > of various dependencies. > > > > Configure went fine as far as I can tell. When I go to make it goes > > for a while and this is the last few lines before it quits. This is > > all greek to me so any help would be appreciated. > > > > ranlib: file: libmap.a(mapthread.o) has no symbols > > ranlib: file: libmap.a(mapswf.o) has no symbols > > ranlib: file: libmap.a(mappdf.o) has no symbols > > ranlib libmap.a > > ranlib: file: libmap.a(mapthread.o) has no symbols > > ranlib: file: libmap.a(mapswf.o) has no symbols > > ranlib: file: libmap.a(mappdf.o) has no symbols > > gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF > > -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR > > -DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_GD_GIF -DUSE_GD_PNG > > -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR > > -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV > > -DUSE_POSTGIS -DUSE_ZLIB -I/usr/local/include > > -I/usr/local/include -I/usr/local/include > > -I/usr/local/pgsql/include -I/usr/local/include shp2img.c -o > > shp2img.o > > gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF > > -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR > > -DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_GD_GIF -DUSE_GD_PNG > > -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR > > -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV > > -DUSE_POSTGIS -DUSE_ZLIB -I/usr/local/include > > -I/usr/local/include -I/usr/local/include > > -I/usr/local/pgsql/include -I/usr/local/include shp2img.o -L. > > -lmap -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz > > -L/usr/X11R6/lib -lXpm -lX11 -ljpeg -lfreetype -lpng -lz > > -L/usr/X11R6/lib -lXpm -lX11 -L/usr/local/lib -lproj -ljpeg > > -L/usr/local/lib -lgdal -L/usr/local/pgsql/lib -lpq -L/usr/lib > > -lcurl -lssl -lcrypto -lz -L/usr/local/lib -lgeos -liconv -lz -lm > > -lstdc++ -o shp2img > > /usr/bin/ld: Undefined symbols: > > __Unwind_Resume > > collect2: ld returned 1 exit status > > make: *** [shp2img] Error 1 > > > > If it helps here is my configure: > > ./configure --mandir=/usr/local/share/man --with-proj=/usr/local > > --with-gdal=/usr/local/bin/gdal-config --with-ogr --with-gd=/usr/local > > --with-xpm=/usr/X11R6 --with-php=/usr/local > > --with-geos=/usr/local/bin/geos-config --with-wfs --with-wcs > > --with-wfsclient --with-wmsclient > > --with-postgis=/usr/local/pgsql/bin/pg_config > > --with-freetype=/usr/X11R6/bin/freetype-config > > > > > > Thanks > > Mark > > ----- > William Kyngesburye > http://www.kyngchaos.com/ > > "Mon Dieu! but they are all alike. Cheating, murdering, lying, > fighting, and all for things that the beasts of the jungle would not > deign to possess - money to purchase the effeminate pleasures of > weaklings. And yet withal bound down by silly customs that make them > slaves to their unhappy lot while firm in the belief that they be the > lords of creation enjoying the only real pleasures of existence.... > > - the wisdom of Tarzan > > -- Have fun or die trying - but try not to actually die. http://www.AboveCalifornia.com Got Mac OS X? Get the AboveCalifornia Sherlock Channel: sherlock://www.AboveCalifornia.com/sherlock/SherlockChannel.xml?action=add From woklist at KYNGCHAOS.COM Thu Feb 23 11:00:54 2006 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Thu, 23 Feb 2006 13:00:54 -0600 Subject: compile problems on osx In-Reply-To: Message-ID: Now that I have PHP 4 fully Universal (yes, it's online now), I'm thinking about a PHP 5 installer. No time frame yet. ECW does not work on OS X yet - nasty threading issues that ER Mapper is working on. Soon I hope. I don't like depending on Arc. For ming, make sure you have the recent 0.3 beta 2, tho I just saw that it is final now. I haven't tried that yet. For a wuick build, the main problem I found was in decompile.c, pool there conflicts with pool somewhere else. So, what I did was replace all word ocurrences of 'pool' with 'dpool'. On Feb 23, 2006, at 12:30 PM, Mark Wright wrote: > What I would really like would be for mapserver with php5. Also ecw > support which I also had trouble compiling. Do you have any tips on > compiling ming> I had issues there too. > > Anyways, I'll edit the makefile and see what happens. > > > Mark > > On 2/23/06, William Kyngesburye wrote: >> You've hit a problem with Xcode 2.2. In the makefile, change LD >> to g+ >> +. Yes, the instructions are a little out of date, I've been >> focusing on the installers. >> >> Anything in particular you need in an Mac Intel MapServer? My >> installer is mostly Intel ready right now, just missing an Intel >> mapscript for PHP-Apache. But that will be done by the end of the >> day. >> ----- William Kyngesburye http://www.kyngchaos.com/ First Pogril: Why is life like sticking your head in a bucket filled with hyena offal? Second Pogril: I don't know. Why IS life like sticking your head in a bucket filled with hyena offal? First Pogril: I don't know either. Wretched, isn't it? -HitchHiker's Guide to the Galaxy From rainer.spittel at TERRALINK.CO.NZ Thu Feb 23 11:21:46 2006 From: rainer.spittel at TERRALINK.CO.NZ (Rainer Spittel) Date: Thu, 23 Feb 2006 13:21:46 -0600 Subject: UMN Mapserver on mobile devices Message-ID: Hi there, It just came in my mind: I wonder if is might be possible to setup a UMN Mapserver environment on a mobile/handheld device (cellphone, PocketPC etc.)? So the MapServer runs on the PocketPC including core geospatial datasets (contours etc.) and accesses a WMS through the internet connection. May there is a "ms4mob" ? ;-) Does anyone has experience with that? Is there a documentation available? Cheers Rainer From punkish at EIDESIS.ORG Thu Feb 23 11:30:01 2006 From: punkish at EIDESIS.ORG (Puneet Kishor) Date: Thu, 23 Feb 2006 13:30:01 -0600 Subject: UMN Mapserver on mobile devices In-Reply-To: Message-ID: Rainer Spittel wrote: > Hi there, > > It just came in my mind: I wonder if is might be possible to setup a UMN > Mapserver environment on a mobile/handheld device (cellphone, PocketPC > etc.)? So the MapServer runs on the PocketPC including core geospatial > datasets (contours etc.) and accesses a WMS through the internet connection. > May there is a "ms4mob" ? ;-) > > Does anyone has experience with that? Is there a documentation available? > no answer here for your specific question, but -- why would you want to run MapServer on a handheld when you could use the browser on your handheld to access MapServer installed on a real computer? I mean, that is the whole point of running a server, so remote and mobile users (and not just those holding mobile devices) can access the data. All you would have to do is create a small-screen optimized version of your site; fairly easy to do if you are using a scripting environment with some kind of templating system. From rainer.spittel at TERRALINK.CO.NZ Thu Feb 23 11:41:26 2006 From: rainer.spittel at TERRALINK.CO.NZ (Rainer Spittel) Date: Thu, 23 Feb 2006 13:41:26 -0600 Subject: UMN Mapserver on mobile devices Message-ID: Hi Puneet, agree on that, but the permanent internet connection in a rural area might make it difficult to access the internet permanetly (coverage, price etc.). So a mobile UMN application on the mobile used to view core datasets (may incl. the creation of data), may download topomaps in a certain area (jsut as raster) and the user is capable to navigate through the area and submits modification in one post command to the WMS server. I agree, that an html client is capabile to do the same, but requires a permanent online connection to the server. Cheers Rainer From bob.basques at CI.STPAUL.MN.US Thu Feb 23 11:54:12 2006 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Thu, 23 Feb 2006 13:54:12 -0600 Subject: UMN Mapserver on mobile devices In-Reply-To: Message-ID: Puneet Kishor wrote: > Rainer Spittel wrote: > >> Hi there, >> >> It just came in my mind: I wonder if is might be possible to setup a UMN >> Mapserver environment on a mobile/handheld device (cellphone, PocketPC >> etc.)? So the MapServer runs on the PocketPC including core geospatial >> datasets (contours etc.) and accesses a WMS through the internet connection. >> May there is a "ms4mob" ? ;-) >> >> Does anyone has experience with that? Is there a documentation available? >> >> > > > no answer here for your specific question, but -- why would you want to > run MapServer on a handheld when you could use the browser on your > handheld to access MapServer installed on a real computer? I mean, that > is the whole point of running a server, so remote and mobile users (and > not just those holding mobile devices) can access the data. All you > would have to do is create a small-screen optimized version of your > site; fairly easy to do if you are using a scripting environment with > some kind of templating system. > > There are quite a few reasons to do this. One would be to make the thing run without a data connection. We have need to go into tunnels and underground for example. Not to mention that it would run quicker. Doing Red-line markup in the field was another aspect of what we were interested in doing. At the time we didn't have as many data capable phones as we have now, but I still think making the remote device (PDA/PHONE) run independantly has merit, even with the hardware capabilities available. I experimented with an IPAQ a while ago. I was more interested at the time in getting a HTTPD service running. This way the remote device could also be accessed from other remote devices or back in the office. The idea being to run everything as a startup daemon as soon as the thing was turned on. The Mapping system (in our case) was to be controlled by a GPS link in automode, where the map was centered automatically. The mapping piece was the easy part. the WebService was the harder piece. We also wanted to be able to use the local WebServer to batch inputting in the field, and sync the remote WebService with the internal webservice by the users. At some point this might even be automatable. The GPS angle was alos a reason to have the mapping and Web service running on the remote device. Our intent was to periodically query the remote devices Web service for it's current GPS location and allow for tracking and replay of the GPS trail via a Web Query, even from another PDA/Phone with the same setup. Adding in the MapServer Component seemed like it would be possible, but in our case, the HTTPD aspect was the first order of business. I even considered a dedicated hardware device for something like this, but we just don't have the resources to build something like this ourselve (not desire mind you, just resources :c). bobb From pauljame at GMAIL.COM Thu Feb 23 12:04:33 2006 From: pauljame at GMAIL.COM (Paul james) Date: Thu, 23 Feb 2006 17:04:33 -0300 Subject: Thematic mapping Message-ID: Hello all... I?m using this Steve Lime pie chart... It works great! But I?m wondering if its posible to do a bar *graph* in that way... Thanks Paul ----------------- Search in the archive for pie chart. There was a nice example by Steve Lime end of 2004. See below. Best regards, Bart Forwarded message: Hi all: I was updating mapgd.c today to make use of GD functions that appeared in GD 2.0.x. I made a small modification to the marker drawing code for ELLIPSE symbols, specifically circles. Now if you specify a style angle it is interpreted as a "pie slice". You can do things like: http://maps.dnr.state.mn.us/testing/charts/test.gif http://maps.dnr.state.mn.us/testing/charts/test.map Since you can load an angle from an attribute (via ANGLEITEM) you can build simple pie charts pretty easy. Only problem is it's hard to do more than 2 colors, and the origin is always 0. Assuming folks are ok with the modification (it's only 5 lines of code) what about adding a STARTANGLE parameter? We could probably do some auto computation of starting angles between styles so that multiple element charts would be possible/easy to construct. Steve Bart van den Eijnden Syncera IT Solutions Postbus 270 2600 AG DELFT -------------- next part -------------- An HTML attachment was scrubbed... URL: From punkish at EIDESIS.ORG Thu Feb 23 12:06:22 2006 From: punkish at EIDESIS.ORG (Puneet Kishor) Date: Thu, 23 Feb 2006 14:06:22 -0600 Subject: UMN Mapserver on mobile devices In-Reply-To: <43FE12E4.6050406@ci.stpaul.mn.us> Message-ID: Bob Basques wrote: > Puneet Kishor wrote: >> Rainer Spittel wrote: >> >>> Hi there, >>> >>> It just came in my mind: I wonder if is might be possible to setup >>> a UMN >>> Mapserver environment on a mobile/handheld device (cellphone, PocketPC >>> etc.)? So the MapServer runs on the PocketPC including core geospatial >>> datasets (contours etc.) and accesses a WMS through the internet >>> connection. >>> May there is a "ms4mob" ? ;-) >>> >>> Does anyone has experience with that? Is there a documentation >>> available? >>> >>> >> >> >> no answer here for your specific question, but -- why would you want >> to run MapServer on a handheld when you could use the browser on your >> handheld to access MapServer installed on a real computer? I mean, >> that is the whole point of running a server, so remote and mobile >> users (and not just those holding mobile devices) can access the data. >> All you would have to do is create a small-screen optimized version of >> your site; fairly easy to do if you are using a scripting environment >> with some kind of templating system. >> >> > There are quite a few reasons to do this. One would be to make the > thing run without a data connection. We have need to go into tunnels > and underground for example. Not to mention that it would run quicker. .. So much in emails goes unsaid. The obvious answer to my question is, of course, being able to access the map data "disconnected." I should have discounted that in my original query, and said what I really meant to say in the first place -- the hardware, and most importantly, the screen-size constraints would make the mapping experience woeful on such a device. On a postage stamp size screen, there will be a lot of panning and zooming involved. I used Vindigo's city-info app on my Palm-OS device for a while -- not a GIS, but it can tell you where to go, and how to get there, etc.. They have a nice model whereby one syncs info over an internet connection. It was fun for a couple of months, and then all the mousing around got tiring. Granted, some specific applications might benefit from a handheld version, but for most part, just put your website on a laptop and carry that... the little notebooks in both Mac and PC (and all the *nix installs on x86 hardware) are really tiny. No further work required, and it would run pleasingly. Anyway, thanks for the detailed answer. It would definitely be technically interesting, and publicity-wise positive to see MapServer or variants running on handhelds. Maybe innovations in input methods will making the mousing around bearable. Maybe, one day on my wristwatch as well. ;-) From punkish at EIDESIS.ORG Thu Feb 23 12:08:56 2006 From: punkish at EIDESIS.ORG (Puneet Kishor) Date: Thu, 23 Feb 2006 14:08:56 -0600 Subject: Thematic mapping In-Reply-To: <33fad6880602231204n57849de8weafb318a685ca13a@mail.gmail.com> Message-ID: Paul james wrote: > Hello all... I?m using this Steve Lime pie chart... It works great! But Key Lime pie also works great. ;-) (sorry, couldn't resist this minor waste of bandwidth) From ltrevino at GPOBSI.COM.MX Thu Feb 23 12:13:48 2006 From: ltrevino at GPOBSI.COM.MX (Luis Trevi=?ISO-8859-1?Q?=F1o?=) Date: Thu, 23 Feb 2006 14:13:48 -0600 Subject: help can=?ISO-8859-1?Q?=B4t?= display a point layer Message-ID: I?m using mapserver 4.4.1 and I need to display a point layer that get?s the data from a postgis table and it?s geographic values are in utm. (this data comes from a GPS with utm values) The other layer get their data also from postgis tables, but their geographic values are in lat/long, (proj=longlat, ellps=GRS80 datum=WGS84), so I can display with no problem de lat/long layers but can?t display the utm layer. this is part of my map file: MAP NAME Pg5- STATUS ON EXTENT -99.181 19.3411 -99.1493 19.3612 SIZE 960 600 SYMBOLSET 'symbols.sym' FONTSET 'fonts.txt' IMAGETYPE GIF IMAGECOLOR 255 255 255 UNITS dd WEB IMAGEPATH '/var/www/tmp/' IMAGEURL '/tmp/' TEMPLATE Gistemplate.html #MINSCALE #MAXSCALE END PROJECTION "proj=longlat" "ellps=GRS80" "datum=WGS84" "no_defs" END #this is the layer that I can't display LAYER #gis NAME gis STATUS ON TYPE POINT UNITS METERS CONNECTION "user=XX password=XXX dbname=XXX host=XXX.XXX.XXX.XX port=5432" CONNECTIONTYPE postgis DATA "posicion from loca as foo using unique cmpoid using srid=-1" PROJECTION "proj=utm" "ellps=WGS84" END CLASS COLOR 255 0 0 #rojo SYMBOL 7 SIZE 7 END END LAYER NAME cuadras TYPE POLYGON STATUS ON CONNECTION "user=XX password=XX dbname=XX host=XXX.XXX.XXX.XX port=5432" CONNECTIONTYPE postgis DATA "the_geom from cuadras as foo using unique gid using srid=-1" CLASS COLOR 170 115 90 OUTLINECOLOR 15 155 200 END END don?t know what I'm doing wrong. Please Help me regards, Luis From karrarm at YAHOO.COM Thu Feb 23 12:26:14 2006 From: karrarm at YAHOO.COM (Ramesh Karra) Date: Thu, 23 Feb 2006 14:26:14 -0600 Subject: How to determine the scale Message-ID: Hi, I have a map file with extent "74.3605 24.2590 79.5400 20.5070". I have a layer(with data in a shape file) with very few points 75.23478 23.40182 75.78261 21.90126 76.37162 22.90461 77.32890 20.88712 The mapserver shows these points correctly. But it does not have correct idea about the distance between the points. How do I indicate the mapserver that these are latitude and longitudes and the distances should be calculated correctly? Do I need to use scale? or some other projection? I really appreciate any help in this regard. Thanks, Ramesh From ed at TOPOZONE.COM Thu Feb 23 12:38:50 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 23 Feb 2006 15:38:50 -0500 Subject: How to determine the scale Message-ID: Ramesh - If your output map image is in a "lat/long" projection - which yours seems to be, since the extents are in degrees - then you really cannot put a scale bar on the map. Distances are not constant across such a map, and depend on the latitude and the orientation of the line you're measuring. A one-degree North/South line is not the same length as a one-degree East/West line (except if you're near the equator). If you want to put a usable scalebar on your map, measured in meters or miles, etc., you need to use a different output projection - one that is designed to provide such measurements. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ramesh Karra Sent: Thursday, February 23, 2006 3:26 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] How to determine the scale Hi, I have a map file with extent "74.3605 24.2590 79.5400 20.5070". I have a layer(with data in a shape file) with very few points 75.23478 23.40182 75.78261 21.90126 76.37162 22.90461 77.32890 20.88712 The mapserver shows these points correctly. But it does not have correct idea about the distance between the points. How do I indicate the mapserver that these are latitude and longitudes and the distances should be calculated correctly? Do I need to use scale? or some other projection? I really appreciate any help in this regard. Thanks, Ramesh From ealpert at DIGITALGLOBE.COM Thu Feb 23 12:51:25 2006 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Thu, 23 Feb 2006 13:51:25 -0700 Subject: help can=?iso-8859-1?Q?=B4t?= display a point layer Message-ID: -----Original Message----- Isn't a UTM zone required for the proj=utm ? From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On PROJECTION "proj=utm" "ellps=WGS84" END From bpicinbono at WORLDONLINE.FR Thu Feb 23 13:18:27 2006 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Thu, 23 Feb 2006 22:18:27 +0100 Subject: UMN Mapserver on mobile devices In-Reply-To: Message-ID: On Thursday 23 February 2006 20:21, Rainer Spittel wrote: > Hi there, > > It just came in my mind: I wonder if is might be possible to setup a UMN > Mapserver environment on a mobile/handheld device (cellphone, PocketPC > etc.)? So the MapServer runs on the PocketPC including core geospatial > datasets (contours etc.) and accesses a WMS through the internet > connection. May there is a "ms4mob" ? ;-) > > Does anyone has experience with that? Is there a documentation available? > > Cheers > Rainer I tried to setup MapServer into a Zaurus last year. The Zauri are nice because of their linux distros. Apache was ok, Php and MySql were availables although I did not try them. But I did not manage to compile MapServer. Troubles with different versions of gcc, I think. But it might be solved with cross compilation. I haven't been that far. (The aim was to consult and digitize new features on a mobile device without internet connection). Blaise From ltrevino at GPOBSI.COM.MX Thu Feb 23 13:28:09 2006 From: ltrevino at GPOBSI.COM.MX (=?iso-8859-1?Q?Luis_Trevi=F1o_Huerta?=) Date: Thu, 23 Feb 2006 15:28:09 -0600 Subject: help can=?iso-8859-1?Q?=B4t?= display a po int layer Message-ID: Thanks for the fast response Ethan. I was missing Zone 14. It worked nice :-) regards, Luis ----- Original Message ----- From: "Ethan Alpert" To: Sent: Thursday, February 23, 2006 2:51 PM Subject: Re: [UMN_MAPSERVER-USERS] help can?t display a point layer -----Original Message----- Isn't a UTM zone required for the proj=utm ? From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On PROJECTION "proj=utm" "ellps=WGS84" END From karrarm at YAHOO.COM Thu Feb 23 13:49:14 2006 From: karrarm at YAHOO.COM (Ramesh Karra) Date: Thu, 23 Feb 2006 15:49:14 -0600 Subject: How to determine the scale Message-ID: Thanks Ed, Thank you very much for the quick response. How do I convert my lat/long to a different projection, say LAEA? When I do this conversion, all my shape files need to be re-created with this new projection co-ordinates, right? I have searched on the web, but could not figure out a way to convert lat/long to LAEA. I really appreciate any pointers related to this. Thanks Krishna On Thu, 23 Feb 2006 15:38:50 -0500, Ed McNierney wrote: >Ramesh - > >If your output map image is in a "lat/long" projection - which yours >seems to be, since the extents are in degrees - then you really cannot >put a scale bar on the map. Distances are not constant across such a >map, and depend on the latitude and the orientation of the line you're >measuring. A one-degree North/South line is not the same length as a >one-degree East/West line (except if you're near the equator). > >If you want to put a usable scalebar on your map, measured in meters or >miles, etc., you need to use a different output projection - one that is >designed to provide such measurements. > > - Ed > >Ed McNierney >President and Chief Mapmaker >TopoZone.com / Maps a la carte, Inc. >73 Princeton Street, Suite 305 >North Chelmsford, MA 01863 >ed at topozone.com >(978) 251-4242 > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >Behalf Of Ramesh Karra >Sent: Thursday, February 23, 2006 3:26 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] How to determine the scale > >Hi, > >I have a map file with extent "74.3605 24.2590 79.5400 20.5070". I have >a layer(with data in a shape file) with very few points > >75.23478 23.40182 >75.78261 21.90126 >76.37162 22.90461 >77.32890 20.88712 > >The mapserver shows these points correctly. But it does not have correct >idea about the distance between the points. How do I indicate the >mapserver that these are latitude and longitudes and the distances >should be calculated correctly? Do I need to use scale? or some other >projection? > >I really appreciate any help in this regard. > >Thanks, >Ramesh From ed at TOPOZONE.COM Thu Feb 23 13:53:21 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 23 Feb 2006 16:53:21 -0500 Subject: How to determine the scale Message-ID: Ramesh - MapServer will do all the reprojection for you. You do not need to convert your source data. You simply specify the input projection (lat/lon) for your input data and the output projection (LAEA) for the map image. To get started, use the MapServer Tutorial at http://mapserver.gis.umn.edu/docs/tutorial/tutorial - there's a section there on getting started with projections in MapServer. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: Ramesh Karra [mailto:karrarm at YAHOO.COM] Sent: Thursday, February 23, 2006 4:49 PM To: MAPSERVER-USERS at LISTS.UMN.EDU; Ed McNierney Subject: Re: How to determine the scale Thanks Ed, Thank you very much for the quick response. How do I convert my lat/long to a different projection, say LAEA? When I do this conversion, all my shape files need to be re-created with this new projection co-ordinates, right? I have searched on the web, but could not figure out a way to convert lat/long to LAEA. I really appreciate any pointers related to this. Thanks Krishna On Thu, 23 Feb 2006 15:38:50 -0500, Ed McNierney wrote: >Ramesh - > >If your output map image is in a "lat/long" projection - which yours >seems to be, since the extents are in degrees - then you really cannot >put a scale bar on the map. Distances are not constant across such a >map, and depend on the latitude and the orientation of the line you're >measuring. A one-degree North/South line is not the same length as a >one-degree East/West line (except if you're near the equator). > >If you want to put a usable scalebar on your map, measured in meters or >miles, etc., you need to use a different output projection - one that >is designed to provide such measurements. > > - Ed > >Ed McNierney >President and Chief Mapmaker >TopoZone.com / Maps a la carte, Inc. >73 Princeton Street, Suite 305 >North Chelmsford, MA 01863 >ed at topozone.com >(978) 251-4242 > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >On Behalf Of Ramesh Karra >Sent: Thursday, February 23, 2006 3:26 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] How to determine the scale > >Hi, > >I have a map file with extent "74.3605 24.2590 79.5400 20.5070". I have >a layer(with data in a shape file) with very few points > >75.23478 23.40182 >75.78261 21.90126 >76.37162 22.90461 >77.32890 20.88712 > >The mapserver shows these points correctly. But it does not have >correct idea about the distance between the points. How do I indicate >the mapserver that these are latitude and longitudes and the distances >should be calculated correctly? Do I need to use scale? or some other >projection? > >I really appreciate any help in this regard. > >Thanks, >Ramesh From karrarm at YAHOO.COM Thu Feb 23 14:18:16 2006 From: karrarm at YAHOO.COM (Ramesh Karra) Date: Thu, 23 Feb 2006 16:18:16 -0600 Subject: How to determine the scale Message-ID: Ed, I really appreciate your quick responses. I have looked at the tutorial and used 'cs2cs' to get new extent values and used output projection as shown below PROJECTION "init=epsg:2163" END but I am getting the following error - "loadMapInternal(): General error message. Given map extent is invalid." The coordinates that I am using represent a part of India. I am not sure if the parameters I passed to 'cs2cs' to calculate the new extent are valid for india. I have used the exact same parameters as mentioned on the website - cs2cs +proj=latlong +datum=WGS84 +to +proj=laea +ellps=clrk66 +lat_0=45 +lon_0=-100 Also I am not sure if I can use epsg code 2163 for india. I am supposed to find out the correct code by looking at the proj/nad/epsg file? There are so many entries for India and I am not sure which one to use. Thanks Ramesh On Thu, 23 Feb 2006 16:53:21 -0500, Ed McNierney wrote: >Ramesh - > >MapServer will do all the reprojection for you. You do not need to >convert your source data. You simply specify the input projection >(lat/lon) for your input data and the output projection (LAEA) for the >map image. > >To get started, use the MapServer Tutorial at >http://mapserver.gis.umn.edu/docs/tutorial/tutorial - there's a section >there on getting started with projections in MapServer. > > - Ed > >Ed McNierney >President and Chief Mapmaker >TopoZone.com / Maps a la carte, Inc. >73 Princeton Street, Suite 305 >North Chelmsford, MA 01863 >ed at topozone.com >(978) 251-4242 > >-----Original Message----- >From: Ramesh Karra [mailto:karrarm at YAHOO.COM] >Sent: Thursday, February 23, 2006 4:49 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU; Ed McNierney >Subject: Re: How to determine the scale > >Thanks Ed, > >Thank you very much for the quick response. How do I convert my lat/long >to a different projection, say LAEA? When I do this conversion, all my >shape files need to be re-created with this new projection co-ordinates, >right? >I have searched on the web, but could not figure out a way to convert >lat/long to LAEA. I really appreciate any pointers related to this. > >Thanks >Krishna > >On Thu, 23 Feb 2006 15:38:50 -0500, Ed McNierney >wrote: > >>Ramesh - >> >>If your output map image is in a "lat/long" projection - which yours >>seems to be, since the extents are in degrees - then you really cannot >>put a scale bar on the map. Distances are not constant across such a >>map, and depend on the latitude and the orientation of the line you're >>measuring. A one-degree North/South line is not the same length as a >>one-degree East/West line (except if you're near the equator). >> >>If you want to put a usable scalebar on your map, measured in meters or > >>miles, etc., you need to use a different output projection - one that >>is designed to provide such measurements. >> >> - Ed >> >>Ed McNierney >>President and Chief Mapmaker >>TopoZone.com / Maps a la carte, Inc. >>73 Princeton Street, Suite 305 >>North Chelmsford, MA 01863 >>ed at topozone.com >>(978) 251-4242 >> >>-----Original Message----- >>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >>On Behalf Of Ramesh Karra >>Sent: Thursday, February 23, 2006 3:26 PM >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: [UMN_MAPSERVER-USERS] How to determine the scale >> >>Hi, >> >>I have a map file with extent "74.3605 24.2590 79.5400 20.5070". I have > >>a layer(with data in a shape file) with very few points >> >>75.23478 23.40182 >>75.78261 21.90126 >>76.37162 22.90461 >>77.32890 20.88712 >> >>The mapserver shows these points correctly. But it does not have >>correct idea about the distance between the points. How do I indicate >>the mapserver that these are latitude and longitudes and the distances >>should be calculated correctly? Do I need to use scale? or some other >>projection? >> >>I really appreciate any help in this regard. >> >>Thanks, >>Ramesh From s_jubeh at YAHOO.COM Thu Feb 23 14:40:35 2006 From: s_jubeh at YAHOO.COM (salah jubeh) Date: Thu, 23 Feb 2006 14:40:35 -0800 Subject: Ascii format rendering Message-ID: Hi guys I have an ascii image the have , i have created this image by calculating the NDVI so the picxel values are from 0-1 also there are oixel has values -9999 which represent the No nodata_value . when i render thes image using mapserver it gives me just black images, i have checked this image with othe softwares it is correctly created . how can i fix this problem. --------------------------------- Yahoo! Mail Use Photomail to share photos without annoying attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ltrevino at GPOBSI.COM.MX Thu Feb 23 17:10:39 2006 From: ltrevino at GPOBSI.COM.MX (Luis Trevi=?ISO-8859-1?Q?=F1o?=) Date: Thu, 23 Feb 2006 19:10:39 -0600 Subject: expression vs filter Message-ID: Hi list, What's the difference between using filter or using expression on a postgis layer in terms of efficiency and server load (pros and cons)? any recommendation? thanks, Luis From perrygeo at GMAIL.COM Thu Feb 23 18:34:29 2006 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Thu, 23 Feb 2006 18:34:29 -0800 Subject: Ascii format rendering In-Reply-To: <20060223224035.60154.qmail@web52708.mail.yahoo.com> Message-ID: Salah, On 2/23/06, salah jubeh wrote: > I have an ascii image the have , i have created this image by calculating > the NDVI so the picxel values are from 0-1 also there are oixel has values > -9999 which represent the No nodata_value . > > when i render thes image using mapserver it gives me just black images, i > have checked this image with othe softwares it is correctly created . > > how can i fix this problem. Two things to check: 1) Do the ascii raster extents match the extent of your mapfile? 2) Did you scale the image according to data range? Since your values go from 0 to 1, you can use a processing directive in your layer to scale the values in that range from black to white: PROCESSING "SCALE=0,1" There's a good how-to on raster access that you might want to check out also: http://mapserver.gis.umn.edu/docs/howto/raster_data Best of luck, -- Matt Perry perrygeo at gmail.com http://www.perrygeo.net From woklist at KYNGCHAOS.COM Thu Feb 23 20:38:46 2006 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Thu, 23 Feb 2006 22:38:46 -0600 Subject: MapServer for Mac OS X - PPC/Intel Message-ID: Thanks to Paul Moen, I have a complete Mac OS X Universal PPC/Intel MapServer installer. The main problem was building an Intel PHP as Apache module on a PPC Mac - Apple's Xcode Universal SDK is missing the Apache executables (the whole bin folder in fact) needed. This includes (available as separate components): MapServer 4.8.1 - CGI, PHP 4 extension for both PHP as CGI and PHP as Apache module PHP 4.4.2 GDAL 1.3.1 and various GIS libraries Postgres 8.1.2 + PostGIS 1.1.1 Available for Mac OS X 10.3.9 (obviously not Intel) and 10.4.x (PPC/ Intel). Details and downloads at ----- William Kyngesburye http://www.kyngchaos.com/ Theory of the Universe There is a theory which states that if ever anyone discovers exactly what the universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarrely inexplicable. There is another theory which states that this has already happened. -Hitchhiker's Guide to the Galaxy 2nd season intro From aaronkoning at GMAIL.COM Thu Feb 23 22:39:59 2006 From: aaronkoning at GMAIL.COM (Aaron Koning) Date: Thu, 23 Feb 2006 22:39:59 -0800 Subject: mapscript error In-Reply-To: Message-ID: Did you compile mapserver with libraries found in /usr/local/lib/? If so the php_mapscript_40.so might be finding/using the default libraries in /usr/lib/ or /lib/, which might cause this error. Are you loading php_mapscript_40.so with the PHP binary compiled from the PHP source you referenced in the mapserver build? Compiling with one version and loading with another may cause the error. I'm sure I had this problem before too... Aaron On 2/23/06, SUBSCRIBE MAPSERVER-USERS Anonymous wrote: > > I'm sorry Aaron...all libraries are founded! Any other ideas?? > > Gaetano > > libmap.so.4.6.0-beta2 => /usr/lib/libmap.so.4.6.0-beta2 > (0xb7514000) > libcurl.so.3 => /usr/lib/libcurl.so.3 (0xb741f000) > libdl.so.2 => /lib/libdl.so.2 (0xb741c000) > libz.so.1 => /usr/lib/libz.so.1 (0xb740e000) > libpq.so.3 => /usr/lib/libpq.so.3 (0xb73f8000) > libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb73db000) > libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7377000) > libpng.so.3 => /usr/lib/libpng.so.3 (0xb734d000) > libgdal.so.1 => /usr/lib/libgdal.so.1 (0xb6efd000) > libproj.so.0 => /usr/lib/libproj.so.0 (0xb6ecb000) > libgd.so.2 => /usr/lib/libgd.so.2 (0xb6e7f000) > libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0xb6dcc000) > libm.so.6 => /lib/tls/libm.so.6 (0xb6da9000) > libc.so.6 => /lib/tls/libc.so.6 (0xb6c72000) > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb6c69000) > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) > libcrypt.so.1 => /lib/libcrypt.so.1 (0xb6c3c000) > libresolv.so.2 => /lib/libresolv.so.2 (0xb6c2a000) > libnsl.so.1 => /lib/libnsl.so.1 (0xb6c14000) > libodbc.so.1 => /usr/lib/libodbc.so.1 (0xb6bba000) > libxerces-c.so.26 => /usr/lib/libxerces-c.so.26 (0xb6886000) > libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb6876000) > libungif.so.4 => /usr/lib/libungif.so.4 (0xb686f000) > libgeotiff.so => /usr/lib/libgeotiff.so (0xb684e000) > libtiff.so.3 => /usr/lib/libtiff.so.3 (0xb6802000) > libnetcdf.so => /usr/lib/libnetcdf.so (0xb67e1000) > libnss_files.so.2 => /lib/libnss_files.so.2 (0xb67d5000) > libnss_dns.so.2 => /lib/libnss_dns.so.2 (0xb67d0000) > libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb67a6000) > libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0xb679d000) > libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0xb6786000) > libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0xb66a7000) > -- +-------------------------------------------- | Aaron Koning | Information Technologist | Prince George, BC, Canada. +-------------------------------------------- | http://datashare.gis.unbc.ca/fist/ | http://datashare.gis.unbc.ca/gctp-js/ +-------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From phil.stphns at GMAIL.COM Thu Feb 23 23:10:06 2006 From: phil.stphns at GMAIL.COM (Philip Stephens) Date: Thu, 23 Feb 2006 23:10:06 -0800 Subject: No subject Message-ID: Hello, I'm new to MapServer and I'm trying to get the gmap demo from ka-map to run on my MacOSX -10.4.5. I have installed MapServer 4.8. I have setup the Itasca demo--works well. I'm working toward putting the ka- map viewer interface on top of MapServer. I've made the AddType edits in my httpd.conf, and also in the php.ini file. Before making those changes, the page returned nothing. I get the following errors when I call "http://localhost/ gmap/gmap75.phtml". Warning: dl() [function.dl]: Unable to load dynamic library './ php_mapscript.so' - (null) in /Library/WebServer/gmap/htdocs/ gmap75.phtml on line 54 Notice: Undefined variable: HTTP_POST_VARS in /Library/WebServer/gmap/ htdocs/gmap75.inc.php on line 40 Notice: Undefined variable: HTTP_GET_VARS in /Library/WebServer/gmap/ htdocs/gmap75.inc.php on line 42 Fatal error: Call to undefined function ms_GetVersion() in /Library/ WebServer/gmap/htdocs/gmap75.inc.php on line 51 I have two php_mapscript.so files, both of which I've made executable. They are located at : /usr/local/php4/lib/php/extensions/no-debug-non-zts-20020429 and : /usr/local/php4cgi/lib/php/extensions/no-debug-non-zts-20020429 When I initially installed the binaries, I installed both mapserver packages, "mapserver-php4apache.pkg" and "mapserver-php4cgi.pkg" I learned later that both could be installed but only one can run. I don't know if my inability to direct which package is "driving" is causing the present difficulty or not. Any help will be appreciated, thanks. Phil From sparkymeister at GMAIL.COM Fri Feb 24 00:14:21 2006 From: sparkymeister at GMAIL.COM (Mark Wright) Date: Fri, 24 Feb 2006 00:14:21 -0800 Subject: compile problems on osx In-Reply-To: <2FCF8BB4-95A5-4F69-BAB6-94F1B1D0E335@kyngchaos.com> Message-ID: Thanks for the help. It is working. And ming turned out to be much easier than expected since it didn't actually have to be compiled seperately. PHP 5 comes with it as long as you configure with --with-ming One question I have is regarding tiff input. PHP info gives me this: MapServer version 4.8.1 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=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE There is no mention here of tiff or geotif input. Do I need to specify this when I configure or does gdal take care of this? Mark On 2/23/06, William Kyngesburye wrote: > For ming, make sure you have the recent 0.3 beta 2, tho I just saw > that it is final now. I haven't tried that yet. For a wuick build, > the main problem I found was in decompile.c, pool there conflicts > with pool somewhere else. So, what I did was replace all word > ocurrences of 'pool' with 'dpool'. From Nick at STONE-ENV.COM Fri Feb 24 01:24:31 2006 From: Nick at STONE-ENV.COM (Nick Floersch) Date: Fri, 24 Feb 2006 04:24:31 -0500 Subject: MapServer, PostGIS, Subquery with JOIN, WMS GetFeatureInfo request Message-ID: Hello all, I am confused and could use a hand (or a slap on the head... whatever :-D ). I have a MapServer which is acting as a WMS server to my Web Map Application. This works fine. I have started using PostGIS to serve the data for my WMS layers, instead of Shapefiles (which I was previously using). This works fine. I want to query my layers using the WMS GetFeatureInfo request activated by mouse-click, and return the results in GML. This works fine. ... BUT, now I want to do all of the above on a data layer from PostGIS defined with a left outer join, like so: --- snip --- DATA "the_geom from (select * from layer_swmus s left outer join (select *, ('SWMU '||object_oid) as swmu_id from objects where object_type = 'SWMU') q on q.swmu_id = s.swmu_id) as myquery using unique the_geom using srid = 2258" --- snip --- When I execute this query by hand in PostGIS/PostGreSQL, I get a big ol' table o' results, like I expect. In other words, the SQL runs fine. Yet, when I execute the GetFeatureInfo request on one of the features generated by this subquery, no attributes are returned. The layer itself renders properly and shows me a bunch of points like I would expect it to do - points with no attributes! Attributes are returned for other PostGIS layers. Attributes are returned for other PostGIS layers upon which the join query above is based (i.e. a GetFeatureInfo query on the data layer for 'layer_swmus' returns all attributes for the the table 'layer_swmus'). Attributes are *not* returned for this JOIN subquery layer, only. Not only are no attributes returned, but the GML returned contains no GML, really... when the GML is viewed in Firefox, I get an error about there being no elements in the XML file. Normally, if no data was returned, I would just get Firefox to display an empty XML tree (one node with no children). I have tried various reworkings of the above subquery with no further success. This all leads me to the following question: Given that the 'DATA' label in MapServer mapfile, when used with PostGIS, is only supposed to look at one column (the geometry column), how does MapServer know anything about the attributes for the layer at all. It *seems* to me (and I know I don't know everything here), that if the definition for the DATA label is " from " that this translates into a SQL statement like "SELECT FROM
" upon with MapServer renders the layer. But if that were so, then where would any of the attributes for the layer come from? Does MapServer execute the "SELECT FROM
" query to get the geometry for the map layer, and then re-execute the query with the item replaced by '*' (i.e. "SELECT FROM
" becomes "SELECT * FROM
")? Am I doing something wrong with my JOIN subquery such that I've broken my layer, or does the JOIN throw MapServer's PostGIS connector for a loop? Do any of the wise gurus who frequent the list have any suggestions on how I can get my attributes from the JOIN subquery to show up in my GetFeatureInfo request's returned GML? I can't believe I am the first person to try this... Before anyone suggests the solution of using a view to encapsulate my JOIN so it need not be in the subquery, I'll just say that I am aware I could try that approach (though I have not yet done so), but my curiosity has been piqued by this problem as it is, so I'm hoping to find out more about the JOINs in subqueries issue I have. I would also really love to know how MapServer gets the attribute columns for PostGIS layers. Thanks for your time, and thanks in advance for any replies. Nick Floersch (System: Debian Linux SID, PostGreSQL 8.1.3, PostGIS 1.1.1, MapServer 4.8.1, Apache 2.0.55, PHP 5.1.2, MapBuilder v1.0rc1, Firefox 1.5.1) -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at NABBLE.COM Fri Feb 24 01:34:00 2006 From: lists at NABBLE.COM (yoda (sent by Nabble.com)) Date: Fri, 24 Feb 2006 01:34:00 -0800 Subject: OGR join problem Message-ID: I try to join a shp file and a mysql table. I try this : ogrinfo -ro /var/www/html/cartoweb3/projects/lyon/server_conf/lyon/data/sa_lo.shp -sql "select * from sa_lo a left join 'MYSQL: lyon,user=root,port=3306'.lones b on a.Id=b.id" and retrieve that : INFO: Open of `/var/www/html/cartoweb3/projects/lyon/server_conf/lyon/data/sa_lo.shp' using driver `ESRI Shapefile' successful. ERROR 1: SQL: Unrecognised secondary field a.Id in JOIN clause.. the Id column (N,9,0) exist in the shape file and the id field (INT(6)) exist in the lones table. Then i don't understand what's wrong. An idea ? -- View this message in context: http://www.nabble.com/OGR-join-problem-t1180147.html#a3105241 Sent from the Mapserver - User forum at Nabble.com. From Nick at STONE-ENV.COM Fri Feb 24 02:03:33 2006 From: Nick at STONE-ENV.COM (Nick Floersch) Date: Fri, 24 Feb 2006 05:03:33 -0500 Subject: MapServer, PostGIS, Subquery with JOIN, WMS GetFeatureInfo / Followup Question Message-ID: ________________________________ From: Nick Floersch Sent: Friday, February 24, 2006 5:03 AM To: Nick Floersch Subject: RE: MapServer, PostGIS, Subquery with JOIN, WMS GetFeatureInfo / Followup Question After my just previous post to the list, I decided to try my alternative solution... "" Before anyone suggests the solution of using a view to encapsulate my JOIN so it need not be in the subquery, I'll just say that I am aware I could try that approach (though I have not yet done so), but my curiosity has been piqued by this problem as it is, so I'm hoping to find out more about the JOINs in subqueries issue I have. I would also really love to know how MapServer gets the attribute columns for PostGIS layers. "" So, I created a view in PostGreSQL which defines the data as my Join... the View works fine when I execute, for example, "SELECT * FROM myview" in PostGreSQL. Yet, when I try to use it as a layer source in MapServer... it just plain doesn't work. I am I really to believe that views cannot be used by the PostGIS connector in MapServer? I sincerely hope not. DATA "the_geom from swmu_images" (swmu_images is the view) gives me the following output: ---snip --- msDrawMap(): Image handling error. Failed to draw layer named 'ActiveSewerManholes'. 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 swmu_images WHERE the_geom && setSRID('BOX3D(1613612.963 660935.354999998,1734166.788 735581.834000003)'::BOX3D, find_srid('','swmu_images','the_geom') )' <br><br> Postgresql reports the error as 'ERROR: column "oid" does not exist '<br><br> More Help:<br><br> Error with POSTGIS data variable. You specified '&lt;check your .map file&gt;'.<br> Standard ways of specifiying are : <br> (1) 'geometry_column from geometry_table' <br> (2) 'geometry_column from (&lt;sub query&gt;) as foo using unique &lt;column name&gt; using SRID=&lt;srid#&gt;' <br><br> Make sure you put in the 'using unique &lt;column name&gt;' and 'using SRID=#' clauses in. <br><br>For more help, please see http://postgis.refractions.net/documentation/ <br><br>Mappostgis.c - version of Jan 23/2004. ---snip--- The only thing I can think of is... does the PostGIS connector require the table to have OIDs? It looks that way. Nick Floersch -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpicinbono at WORLDONLINE.FR Fri Feb 24 02:34:02 2006 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Fri, 24 Feb 2006 11:34:02 +0100 Subject: compile problems on osx In-Reply-To: Message-ID: You have INPUT=GDAL which is allright to read tiff images. Not sure about geotif. Blaise On Friday 24 February 2006 09:14, Mark Wright wrote: > Thanks for the help. It is working. And ming turned out to be much > easier than expected since it didn't actually have to be compiled > seperately. PHP 5 comes with it as long as you configure with > --with-ming > > One question I have is regarding tiff input. PHP info gives me this: > > MapServer version 4.8.1 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=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > > There is no mention here of tiff or geotif input. Do I need to specify > this when I configure or does gdal take care of this? > > > Mark > > On 2/23/06, William Kyngesburye wrote: > > For ming, make sure you have the recent 0.3 beta 2, tho I just saw > > that it is final now. I haven't tried that yet. For a wuick build, > > the main problem I found was in decompile.c, pool there conflicts > > with pool somewhere else. So, what I did was replace all word > > ocurrences of 'pool' with 'dpool'. From hydromap at GMAIL.COM Fri Feb 24 02:55:18 2006 From: hydromap at GMAIL.COM (Shoaib Burq) Date: Fri, 24 Feb 2006 21:55:18 +1100 Subject: Serving ECW's with Mapserver 4.8.1 In-Reply-To: Message-ID: Ajay you need to provide more info. It could anything.... can you view the image correctly in other packages like QGIS or ERViewer? you sure you have the extents right? On 2/23/06, Ajay Ranipeta wrote: > Hi guys, > > I have some ecw's that I wanna serve with Mapserver, but I can't seem to get > them to display. These ecw's are projected in GDA94 with Zones 54-56. No > error's come up and other layers (shapes, wbmp's, tiff) come up fine. I use > the CGI mapserver which obviously has GDAL with ECW's already included. I've > gone thru' a few posts regarding ecw's and but no help. Also, as one post > suggested, i've got the header info within the image itself, but that's no > help either. > > I'm sure i'm missing something obvious, so any help would be greatly > appreciated. > > cheers, > Ajay > From ruthschoenbuchner at YAHOO.DE Fri Feb 24 04:09:52 2006 From: ruthschoenbuchner at YAHOO.DE (=?iso-8859-1?q?ruth=20sch=FFfffff6nbuchner?=) Date: Fri, 24 Feb 2006 13:09:52 +0100 Subject: PROBLEM: PHP MAPSCRIPT/ARCSDE Message-ID: Dear people, I have got a problem querying a layer with ArcSDE and a created pointobj(); In my mapfile I definded the correct parameters for the ArcSDE-Connection because I can display the layers without any problems. When I want to query a layer, it says: Fatal error: [MapServer Error]: msSDELayerGetShape(): SE_stream_fetch_row(): Invalid pointer argument to function. (-65) in /../../webgis.php on line 142 Line 142 of my webgis.php says the following: $Shape = $Abfragelayer->getShape($ti,$si); bevor line 142 I defined the queryable layer and the results: //create point object and querybypoint $punkt=ms_newPointObj(); $punkt ->setXY($x_real,$y_real); @$map ->queryByPoint($punkt, MS_SINGLE, -1); //test, if query was succesful if((@$map ->queryByPoint($punkt, MS_SINGLE, -1))==MS_SUCCESS){ $Abfrage="Abfrage hat geklappt"; //find queryable layer for($iLayer=0; $iLayer < $map->numlayers; $iLayer++) { $Abfragelayer = $map->GetLayer($iLayer); $numResults = $Abfragelayer ->getNumResults(); if ($numResults == 0) continue; //open table of queryable layer and read row $Abfragelayer->open(); $Spalte=explode(" ",$Abfragelayer->getMetaData("RESULT_FIELDS")); //read entry of row //define specific object of shape $resultat=$Abfragelayer->getResult(0); $si=$resultat->shapeindex; $ti=$resultat->tileindex; $ci=$resultat->classindex; $Shape = $Abfragelayer->getShape($ti,$si); Surely I made something wrong with correct options and parameters regarding to ArcSDE in my php-script, because I am newbie to MapScript Can anybody help? Regards, Ruth --------------------------------- Telefonieren Sie ohne weitere Kosten mit Ihren Freunden von PC zu PC! Jetzt Yahoo! Messenger installieren! -------------- next part -------------- An HTML attachment was scrubbed... URL: From punkish at EIDESIS.ORG Fri Feb 24 04:56:33 2006 From: punkish at EIDESIS.ORG (Puneet Kishor) Date: Fri, 24 Feb 2006 06:56:33 -0600 Subject: MapServer for Mac OS X - PPC/Intel In-Reply-To: Message-ID: William Kyngesburye wrote: > Thanks to Paul Moen, I have a complete Mac OS X Universal PPC/Intel > MapServer installer. The main problem was building an Intel PHP as > Apache module on a PPC Mac - Apple's Xcode Universal SDK is missing the > Apache executables (the whole bin folder in fact) needed. > > This includes (available as separate components): > > MapServer 4.8.1 - CGI, PHP 4 extension for both PHP as CGI and PHP as > Apache module > PHP 4.4.2 > GDAL 1.3.1 and various GIS libraries > Postgres 8.1.2 + PostGIS 1.1.1 > > Available for Mac OS X 10.3.9 (obviously not Intel) and 10.4.x (PPC/Intel). > > Details and downloads at William, Great work! Checking details, two questions come to my mind (I haven't done this in a long time) -- what version of Apache are you building against -- the stock version that comes with the OS? are you building SWIG MapScript (or does that happen automatically now?). Many thanks, -- Puneet Kishor From jeff at PROPERTYKEY.COM Fri Feb 24 05:09:22 2006 From: jeff at PROPERTYKEY.COM (Jeff Hoffmann) Date: Fri, 24 Feb 2006 07:09:22 -0600 Subject: MapServer, PostGIS, Subquery with JOIN, WMS GetFeatureInfo / Followup Question In-Reply-To: <9CAD6BBFE34A214A8C0597CED6B1BF3BEDAAD9@mail.stone-env.com> Message-ID: Nick Floersch wrote: > > > ------------------------------------------------------------------------ > *From:* Nick Floersch > *Sent:* Friday, February 24, 2006 5:03 AM > *To:* Nick Floersch > *Subject:* RE: MapServer, PostGIS, Subquery with JOIN, WMS > GetFeatureInfo / Followup Question > > After my just previous post to the list, I decided to try my alternative > solution... > > "" Before anyone suggests the solution of using a view to encapsulate > my JOIN so it need not be in the subquery, I'll just say that I am aware > I could try that approach (though I have not yet done so), but > my curiosity has been piqued by this problem as it is, so I'm hoping to > find out more about the JOINs in subqueries issue I have. I would also > really love to know how MapServer gets the attribute columns for PostGIS > layers. "" This is on my "figure out some day myself" list, too. I'm doing the view thing right now, but I'd like to not have to create views for everything. > ---snip--- > > The only thing I can think of is... does the PostGIS connector require > the table to have OIDs? It looks that way. Yes. It needs some unique field in order to randomly access an individual rows, it just so happens that OID is a convenient way to get that in most cases. You can also specify your own unique column name with "using unique " if your view doesn't have an OID column but you have some other key you can use. I just pull in the OID from the main geometry-containing table when I define the view. -- Jeff Hoffmann jeff at propertykey.com From baris at CSCRS.ITU.EDU.TR Fri Feb 24 05:00:25 2006 From: baris at CSCRS.ITU.EDU.TR (Barış G=?ISO-8859-1?Q?=F6ral?=) Date: Fri, 24 Feb 2006 07:00:25 -0600 Subject: Searching / Character Message-ID: Hello all, I'am familiar with regExp but new to MapScript/Mapserver. I can search numerical and string values with MapScript but can't search a string like '8759/58', but i should. i tried, qStr = '/8759\/58/' qStr = '/8759/58/' There must be a point that i miss. Best Regards. Baris. From baris at CSCRS.ITU.EDU.TR Fri Feb 24 04:43:47 2006 From: baris at CSCRS.ITU.EDU.TR (Barış G=?ISO-8859-1?Q?=F6ral?=) Date: Fri, 24 Feb 2006 14:43:47 +0200 Subject: searching values contains / charcter Message-ID: Hello all, I'am familiar with regExp, but new with the MapServer. I just want to search a string like '123/1'. i tried, qString = "/123\/1/"; qString = "/123/1/"; But the result is 0. I don't know if there is a way to define / character with regExp to make query string being understood. Any help is greatly appreciated, Baris. From punkish at EIDESIS.ORG Fri Feb 24 05:16:48 2006 From: punkish at EIDESIS.ORG (Puneet Kishor) Date: Fri, 24 Feb 2006 07:16:48 -0600 Subject: searching values contains / charcter In-Reply-To: <20060224144347.9jyp7a7f4nj4gw8o@www.cscrs.itu.edu.tr> Message-ID: Barış G?ral wrote: > Hello all, > > I'am familiar with regExp, but new with the MapServer. I just want to search a > string like '123/1'. > > i tried, > > qString = "/123\/1/"; > qString = "/123/1/"; > > But the result is 0. I don't know if there is a way to define / character with > regExp to make query string being understood. > could you give more context please? Are you using CGI, or MapScript? If the latter, which kind of MapScript (PHP, Python, Perl, etc.)? Providing the actual bit of code that is giving you trouble would be very helpful as well. -- Puneet Kishor From baris at CSCRS.ITU.EDU.TR Fri Feb 24 05:34:29 2006 From: baris at CSCRS.ITU.EDU.TR (Barış G=?ISO-8859-1?Q?=F6ral?=) Date: Fri, 24 Feb 2006 15:34:29 +0200 Subject: searching values contains / charcter In-Reply-To: <43FF0740.3050103@eidesis.org> Message-ID: hi Puneet, im using PHP/MapScript using a code like $this->qLayer->queryByAttributes($fldName, "('[STEPNUM]' =~ /123/)", MS_MULTIPLE); the query returns result, $this->qLayer->queryByAttributes($fldName, "('[STEPNUM]' =~ /123/12/)", MS_MULTIPLE); the query returns 0, but there are values like 123/123 or 123/12. best regards. Quoting Puneet Kishor : > Barış G?ral wrote: >> Hello all, >> >> I'am familiar with regExp, but new with the MapServer. I just want >> to search a >> string like '123/1'. >> >> i tried, >> >> qString = "/123\/1/"; >> qString = "/123/1/"; >> >> But the result is 0. I don't know if there is a way to define / >> character with >> regExp to make query string being understood. >> > > > could you give more context please? Are you using CGI, or MapScript? > If the latter, which kind of MapScript (PHP, Python, Perl, etc.)? > Providing the actual bit of code that is giving you trouble would be > very helpful as well. > > -- > Puneet Kishor > From Eric.Keefauver at ALTARUM.ORG Fri Feb 24 05:38:46 2006 From: Eric.Keefauver at ALTARUM.ORG (D. Eric Keefauver) Date: Fri, 24 Feb 2006 08:38:46 -0500 Subject: Itasca demo and Ms4w Line 44 In-Reply-To: <43FCE795.7020405@umn.edu> Message-ID: Thank you vey much Perry! "Pericles S. Nacionales" MAPSERVER-USERS at LISTS.UMN.EDU Sent by: UMN cc MapServer Users List Subject demo and Ms4w Line 44 02/22/2006 05:37 PM Please respond to "Pericles S. Nacionales" Put none in quotes ("none") and you'll be good to go. By the way, don't forget to CC the list when replying. -Perry Eric.Keefauver at altarum.org wrote: > Thanks for the additional info Perry, > > Here is the code from the map file at Line 44 > > > WEB > HEADER demo_header.html > TEMPLATE demo.html > FOOTER demo_footer.html > MINSCALE 1000 > MAXSCALE 1550000 > IMAGEPATH "set in demo_init.html" > IMAGEURL "set in demo_init.html" > METADATA > WMS_TITLE "UMN MapServer Itasca Demo" > WMS_ABSTRACT "This is the UMN MapServer demonstration application for > Itasca County located in north central Minnesota." > WMS_ACCESSCONSTRAINTS none <--Line 44 > > # change this value to match your setup > WMS_ONLINERESOURCE > "http://localhost/mapserver_demos/itasca/demo_init.html" > > WMS_SRS "EPSG:26915" > END > END > > > > Thanks again, > > Eric > > > > > > > > > > > > > > "Pericles S. > Nacionales" > > Eric.Keefauver at ALTARUM.ORG > cc > 02/22/2006 09:46 MAPSERVER-USERS at lists.umn.edu > AM Subject > Re: [UMN_MAPSERVER-USERS] Itasca > demo and Ms4w > > > > > > > > > > > The message you got means there's some obsolute KEYWORD values in the > mapfile. I don't have the demo files in my computer so if you can post > the few lines above and below line 44, I might be able to help. > > As an aside, you can certainly put the demo files under > /ms4w/apache/htdocs. Or you might as well follow the way it's done in > MS4W: > 1. unzip demo under /ms4w/apps/ > 2. create a file called httpd_demo.conf (or whatever you want to called > it, just make sure to prepend with httpd_) and add these lines to it: > #This is the Apache config file for the MapServer Demo application. > > Alias /itasca "/ms4w/apps/itasca" > > > AllowOverride None > Options Indexes MultiViews > Order allow,deny > Allow from all > > 3. Restart Apache service > 4. Edit the demo_init.html and relevant files and replace the paths with > the proper ones > 5. Check that the demo is running at http://localhost/itasca. > > Good luck! > -Perry > > > D. Eric Keefauver wrote: > >>New and just getting started with ms4w on my local windows machine >> >>Where should one dump the itasca files to get the demo up and running: >>C:\ms4w\Apache\htdocs? >> >>I have placed the itasca data in the following: >>C:\ms4w\Apache\htdocs\mapserver_demos\itasca >> >>And within the map file I changed this line to: >> # change this value to match your setup >> WMS_ONLINERESOURCE >>"http://localhost/mapserver_demos/itasca/demo_init.html" >> >> >>At: http://localhost/mapserver_demos/itasca/demo_init.html and > > clicking > >>the Initialize button I get the following error >> >>getString(): Symbol definition error. Parsing error near (none):(line 44) >> >>what am I doing wrong? >> >>thanks in advance and bearing with a complete newbie >> >>Eric >> >>. >> > > > > > > . > From sc0rp10nau at YAHOO.COM.AU Fri Feb 24 06:29:48 2006 From: sc0rp10nau at YAHOO.COM.AU (Ajay Ranipeta) Date: Fri, 24 Feb 2006 08:29:48 -0600 Subject: Serving ECW's with Mapserver 4.8.1 Message-ID: Hi Shoaib, Thanks for the reply. The extents are correct, I've even set it up to display in full world extents. As mentioned before, I've got others layers coming up (eg: shapes, wbmps, geotiffs) in the same mapfile, but this is the only layer that doesn't show up. I can view the ecw's in ArcGIS, ERViewer, FWTools, etc, except using Mapserver. I guess I forgot to mention that I'm running this on Windows XP, Mapserver 4.8.1 (ms4w download). Hope this helps, please let me know if you need anymore info. From woodbri at SWOODBRIDGE.COM Fri Feb 24 06:38:39 2006 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 24 Feb 2006 09:38:39 -0500 Subject: MapServer, PostGIS, Subquery with JOIN, WMS GetFeatureInfo / Followup Question In-Reply-To: <9CAD6BBFE34A214A8C0597CED6B1BF3BEDAAD9@mail.stone-env.com> Message-ID: Nick, I seem to remember a post from one of the postGIS guys awile back the you needed to add an entry in the geometry_columns table for the view. -Steve W. Nick Floersch wrote: > > > ------------------------------------------------------------------------ > *From:* Nick Floersch > *Sent:* Friday, February 24, 2006 5:03 AM > *To:* Nick Floersch > *Subject:* RE: MapServer, PostGIS, Subquery with JOIN, WMS > GetFeatureInfo / Followup Question > > After my just previous post to the list, I decided to try my alternative > solution... > > "" Before anyone suggests the solution of using a view to encapsulate > my JOIN so it need not be in the subquery, I'll just say that I am aware > I could try that approach (though I have not yet done so), but > my curiosity has been piqued by this problem as it is, so I'm hoping to > find out more about the JOINs in subqueries issue I have. I would also > really love to know how MapServer gets the attribute columns for PostGIS > layers. "" > > So, I created a view in PostGreSQL which defines the data as my Join... > the View works fine when I execute, for example, "SELECT * FROM myview" > in PostGreSQL. > > Yet, when I try to use it as a layer source in MapServer... it just > plain doesn't work. I am I really to believe that views cannot be used > by the PostGIS connector in MapServer? I sincerely hope not. > > DATA "the_geom from swmu_images" (swmu_images is the view) > > gives me the following output: > ---snip --- > > "http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd"> > > > msDrawMap(): Image handling error. Failed to draw layer named > 'ActiveSewerManholes'. > 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 swmu_images WHERE the_geom && > setSRID('BOX3D(1613612.963 660935.354999998,1734166.788 > 735581.834000003)'::BOX3D, > find_srid('','swmu_images','the_geom') )' > <br><br> > > Postgresql reports the error as 'ERROR: column "oid" does > not exist > '<br><br> > > More Help:<br><br> > > Error with POSTGIS data variable. You specified '&lt;check your > .map file&gt;'.<br> > Standard ways of specifiying are : <br> > (1) 'geometry_column from geometry_table' <br> > (2) 'geometry_column from (&lt;sub query&gt;) as foo using > unique &lt;column name&gt; using SRID=&lt;srid#&gt;' > <br><br> > > Make sure you put in the 'using unique &lt;column > name&gt;' and 'using SRID=#' clauses in. > > <br><br>For more help, please see > http://postgis.refractions.net/documentation/ > > <br><br>Mappostgis.c - version of Jan 23/2004. > > > > ---snip--- > > The only thing I can think of is... does the PostGIS connector require > the table to have OIDs? It looks that way. > > Nick Floersch From woklist at KYNGCHAOS.COM Fri Feb 24 07:12:57 2006 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Fri, 24 Feb 2006 09:12:57 -0600 Subject: compile problems on osx In-Reply-To: Message-ID: Cool. Two reasons to build a separate ming: PHP's is old, at least PHP4's. And then it's also available to MapServer (OUTPUT=SWF is missing in yours). Looks like Blaise answered the TIFF question for you. GDAL. On Feb 24, 2006, at 2:14 AM, Mark Wright wrote: > Thanks for the help. It is working. And ming turned out to be much > easier than expected since it didn't actually have to be compiled > seperately. PHP 5 comes with it as long as you configure with > --with-ming > > One question I have is regarding tiff input. PHP info gives me this: > > MapServer version 4.8.1 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=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > > There is no mention here of tiff or geotif input. Do I need to specify > this when I configure or does gdal take care of this? > ----- William Kyngesburye http://www.kyngchaos.com/ "Mon Dieu! but they are all alike. Cheating, murdering, lying, fighting, and all for things that the beasts of the jungle would not deign to possess - money to purchase the effeminate pleasures of weaklings. And yet withal bound down by silly customs that make them slaves to their unhappy lot while firm in the belief that they be the lords of creation enjoying the only real pleasures of existence.... - the wisdom of Tarzan From dennis at MEGARRY.COM Fri Feb 24 07:16:14 2006 From: dennis at MEGARRY.COM (Dennis Megarry) Date: Fri, 24 Feb 2006 09:16:14 -0600 Subject: Problem with WMS Connection Message-ID: I'm trying to connect to a WMS Server to display layers from it. Been fighting with this since Monday and its really getting the best of me.. :( Its simply not generating an image in the tmp folder.. I can display local data just fine, but nothing from the WMS Server.. Can someone take a look at my map file and see of I'm mising anything? I did change the name of the WMS Server, my contact over there is out till monday and don't know if he minds it being published to this list or not. MAP NAME "USA1" STATUS ON #EXTENT -473466.2404 -273483.916 351932.1884 242390.102 EXTENT -126.12 10.6589 -66.3948 63.616 SIZE 800 500 SHAPEPATH "./data" SYMBOLSET "./etc/symbols.sym" FONTSET "./etc/fonts.txt" IMAGETYPE PNG IMAGECOLOR 255 255 255 UNITS METERS WEB IMAGEPATH "/tmp/" IMAGEURL "/tmp/" ERROR "error_log" LOG "map_log" METADATA END END PROJECTION "proj=lcc" "lat_1=38.6666666666667" "lat_2=33.33333333333337" "lat_0=0" "lon_0=-81.45000000000009" "x_0=0" "y_0=0" "ellps=GRS80" "datum=NAD83" "units=m" "no_defs" END OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE PC256 END LAYER NAME "polygon-warning" STATUS ON TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://met.server.edu:80/cgi-bin/radar? SERVICE=WMS&VERSION=1.1.0&LAYERS=radar&QUERY_LAYERS=radar&FORMAT=image/png& TRANSPARENT=TRUE" UNITS METERS SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS METADATA "wms_srs" "EPSG:4269" "wms_onlineresource" "http://met.server.edu:80/cgi-bin/radar?" "wms_latlonboundingbox" "-126.12 10.6589 -66.3948 63.616" "wms_name" "polygon-warning" "wms_formatlist" "image/png image/jpeg image/wbmp application/x- shockwave-flash text/html application/x-pdf image/tiff" "wms_format" "image/png" "wms_boundingbox" "EPSG:4269 -126.12 10.6589 -66.3948 63.616" "wms_server_version" "1.1.0" "wms_title" "polygon-warning" END END LAYER NAME "radar" STATUS ON TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://met.server.edu:80/cgi-bin/radar? SERVICE=WMS&VERSION=1.1.0&LAYERS=radar&QUERY_LAYERS=radar&FORMAT=image/png& TRANSPARENT=TRUE" UNITS METERS SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS METADATA "wms_srs" "EPSG:4269" "wms_onlineresource" "http://met.server.edu:80/cgi-bin/radar?" "wms_latlonboundingbox" "-126.12 10.6589 -66.3948 63.616" "wms_name" "radar" "wms_format" "image/jpeg" "wms_formatlist" "image/png image/jpeg image/wbmp application/x- shockwave-flash text/html application/x-pdf image/tiff" "wms_server_version" "1.1.0" "wms_title" "CONUS Radar" END END END From ed at TOPOZONE.COM Fri Feb 24 07:29:39 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 24 Feb 2006 10:29:39 -0500 Subject: Problem with WMS Connection Message-ID: Dennis - I've got two quick thoughts: 1. Are you sure the server's up? Can you get a response by typing a WMS request in your browser? 2. The CONNECTION string (the WMS resource name) should end in a "?" or a "&" - you should have ampersands at the end of yours. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dennis Megarry Sent: Friday, February 24, 2006 10:16 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Problem with WMS Connection I'm trying to connect to a WMS Server to display layers from it. Been fighting with this since Monday and its really getting the best of me.. :( Its simply not generating an image in the tmp folder.. I can display local data just fine, but nothing from the WMS Server.. Can someone take a look at my map file and see of I'm mising anything? I did change the name of the WMS Server, my contact over there is out till monday and don't know if he minds it being published to this list or not. MAP NAME "USA1" STATUS ON #EXTENT -473466.2404 -273483.916 351932.1884 242390.102 EXTENT -126.12 10.6589 -66.3948 63.616 SIZE 800 500 SHAPEPATH "./data" SYMBOLSET "./etc/symbols.sym" FONTSET "./etc/fonts.txt" IMAGETYPE PNG IMAGECOLOR 255 255 255 UNITS METERS WEB IMAGEPATH "/tmp/" IMAGEURL "/tmp/" ERROR "error_log" LOG "map_log" METADATA END END PROJECTION "proj=lcc" "lat_1=38.6666666666667" "lat_2=33.33333333333337" "lat_0=0" "lon_0=-81.45000000000009" "x_0=0" "y_0=0" "ellps=GRS80" "datum=NAD83" "units=m" "no_defs" END OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE PC256 END LAYER NAME "polygon-warning" STATUS ON TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://met.server.edu:80/cgi-bin/radar? SERVICE=WMS&VERSION=1.1.0&LAYERS=radar&QUERY_LAYERS=radar&FORMAT=image/p ng& TRANSPARENT=TRUE" UNITS METERS SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS METADATA "wms_srs" "EPSG:4269" "wms_onlineresource" "http://met.server.edu:80/cgi-bin/radar?" "wms_latlonboundingbox" "-126.12 10.6589 -66.3948 63.616" "wms_name" "polygon-warning" "wms_formatlist" "image/png image/jpeg image/wbmp application/x- shockwave-flash text/html application/x-pdf image/tiff" "wms_format" "image/png" "wms_boundingbox" "EPSG:4269 -126.12 10.6589 -66.3948 63.616" "wms_server_version" "1.1.0" "wms_title" "polygon-warning" END END LAYER NAME "radar" STATUS ON TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://met.server.edu:80/cgi-bin/radar? SERVICE=WMS&VERSION=1.1.0&LAYERS=radar&QUERY_LAYERS=radar&FORMAT=image/p ng& TRANSPARENT=TRUE" UNITS METERS SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS METADATA "wms_srs" "EPSG:4269" "wms_onlineresource" "http://met.server.edu:80/cgi-bin/radar?" "wms_latlonboundingbox" "-126.12 10.6589 -66.3948 63.616" "wms_name" "radar" "wms_format" "image/jpeg" "wms_formatlist" "image/png image/jpeg image/wbmp application/x- shockwave-flash text/html application/x-pdf image/tiff" "wms_server_version" "1.1.0" "wms_title" "CONUS Radar" END END END From warmerdam at POBOX.COM Fri Feb 24 07:29:58 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 24 Feb 2006 10:29:58 -0500 Subject: geotiff vs ecw In-Reply-To: Message-ID: Travis Kirstine GIS Tech wrote: > In general do RGB ecw's with a compression of 20:1 outperform 8bit geotiff > with overviews. Travis, I assume by "outperform" that you mean display faster? I don't know the answer, so I think you would really have to setup a test to know for sure. But I would not be at all surprised to find the 8bit geotiff was faster. If you use RGB imagery, are you using an RGB output format? (jpeg or png24) If so, the re-compression of the mapview can take significantly longer than compressing an 8bit paletted result in gif or png format. If using an 8bit output format then the resulting image quality can be pretty bad. Approaches to alleviating that (error diffusion) will slow things down a bunch more. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From woklist at KYNGCHAOS.COM Fri Feb 24 07:37:26 2006 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Fri, 24 Feb 2006 09:37:26 -0600 Subject: No subject In-Reply-To: <42ADC5DD-F5CE-497A-9401-C180C42B30FB@gmail.com> Message-ID: Philip, Looks like my Mac OS X MapServer installer, right? A few questions - On Feb 24, 2006, at 1:10 AM, Philip Stephens wrote: > Hello, > I'm new to MapServer and I'm trying to get the gmap demo from ka- > map to run on my MacOSX -10.4.5. I have installed MapServer 4.8. > I have setup the Itasca demo--works well. I'm working toward > putting the ka-map viewer interface on top of MapServer. > PPC or Intel? Is that my recent 4.8.1 (yesterday)? Or the 4.8.0RC3 I generated without a full installer? (update to 4.8.1 if so) > I've made the AddType edits in my httpd.conf, and also in the > php.ini file. Before making those changes, the page returned > nothing. I get the following errors when I call "http://localhost/ > gmap/gmap75.phtml". > The PHP Enable should take care of httpd.conf changes for you, and correctly for your choice of which PHP to use (CGI or Apache module). > Warning: dl() [function.dl]: Unable to load dynamic library './ > php_mapscript.so' - (null) in /Library/WebServer/gmap/htdocs/ > gmap75.phtml on line 54 It could be that your gmap75.phtml is trying to load './ php_mapscript.so' - notice the ./ there, it's trying to load mapscript from the same folder as gmap75.phtml. Remove that if it's in your php code. If not, something might be wrong with your php.ini. My PHP installer should install a php.ini with the correct extension path setting - basically, default, which is one of those you list below, depending on which is loaded. Check your phpinfo() to see what the extension_dir setting says in PHP Core. You could try to explicitly set extension_dir. While you're looking at phpinfo(), check to make sure the correct PHP is loaded - if httpd.conf isn't right, you may be loading Apple's PHP. Look at the configuration file path setting, it should match one of my installed PHPs. > > I have two php_mapscript.so files, both of which I've made > executable. They are located at : > > /usr/local/php4/lib/php/extensions/no-debug-non-zts-20020429 > and : > /usr/local/php4cgi/lib/php/extensions/no-debug-non-zts-20020429 > > > When I initially installed the binaries, I installed both mapserver > packages, "mapserver-php4apache.pkg" and "mapserver-php4cgi.pkg" I > learned later that both could be installed but only one can run. I > don't know if my inability to direct which package is "driving" is > causing the present difficulty or not. > Run PHP Enable to select which one is loaded, or 'driving'. > Any help will be appreciated, > thanks. > Phil ----- William Kyngesburye http://www.kyngchaos.com/ First Pogril: Why is life like sticking your head in a bucket filled with hyena offal? Second Pogril: I don't know. Why IS life like sticking your head in a bucket filled with hyena offal? First Pogril: I don't know either. Wretched, isn't it? -HitchHiker's Guide to the Galaxy From umn-ms at HYDROTEC.DE Fri Feb 24 07:48:47 2006 From: umn-ms at HYDROTEC.DE (Benedikt Rothe) Date: Fri, 24 Feb 2006 16:48:47 +0100 Subject: [UMN_MAPSERVER-DEV] OracleSpatial 10i GetExtent slow In-Reply-To: <43FF2252.406@pobox.com> Message-ID: > Hallgren Johan E wrote: > > Hello > > > > I have used the mapscript function getExtent for a layer, to get the > > extent, that one was slow. Do you mean that the msOWSGetLayerExtent > > would be faster? > > > > Could it be possible to change the logic so the function I need would > > run the msOWSGetLayerExtent instead? > > Johan / others, > > I'm no expert on this area of the code, but it definitely seems like we > ought to offer a mapscript mechanism that works like msOWSGetLayerExtent, > using layer metadata if available. > > In the meantime Johan, if you already know your extents (as you would have > to for setting up OWS metadata on a layer) you could just modify your > mapscript application to hardcode the extent or perhaps to pull it manually > from layer metadata. I think the Discussion "PostGIS and MapScript getExtent() function" from july 2005 is related to this question. Examples: http://article.gmane.org/gmane.comp.gis.mapserver.user/12099 http://article.gmane.org/gmane.comp.gis.mapserver.user/12100 The Oracle-Metadata in USER_SDO_GEOM_METADATA is used by the Oracle-Spatial- Indexes. Users cannot add features outside this extent (without asking the DB-Admin to expand these values). Therefore this extent will often be *much* bigger than the extent of existing real data's (and is often useless as an initial-extent for a web-application). Benedikt -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Fri Feb 24 08:37:38 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 24 Feb 2006 11:37:38 -0500 Subject: Problem with WMS Connection Message-ID: Dennis - Thanks - the server seems fine. But you're not defining a PROJECTION block for the WMS layer - you need to tell MapServer that the input image is in EPSG:4269 projection rather than in the default LCC projection of your output image. Without that, MapServer will treat it as LCC input coordinates, and the resulting image will be way off-screen somewhere. I might be wrong on that - I got in the habit of specifying PROJECTION blocks for WMS layers a long time ago, when they were required. That might have changed, but it's worth a try. - Ed P.S. Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: Dennis Megarry [mailto:dennis at megarry.com] Sent: Friday, February 24, 2006 11:01 AM To: Ed McNierney Subject: RE: [UMN_MAPSERVER-USERS] Problem with WMS Connection I do get a response from it... The actual MAP file is below (since this is sent off-list). I tried your suggestion and put "&" on the end (see below) and still nothing.. ARGH! [MAP file contents removed by Ed before replying on-list] -------------- next part -------------- An HTML attachment was scrubbed... URL: From nbest at SPEAKEASY.NET Fri Feb 24 08:44:55 2006 From: nbest at SPEAKEASY.NET (Neil Best) Date: Fri, 24 Feb 2006 10:44:55 -0600 Subject: AAG conference Message-ID: Is anyone coming to Chicago for the American Association of Geographers conference next month? I am still on the fence about attending and I have not found the web site to be very helpful in assessing whether I will find anything pertaining to open source GIS going on there. If anyone has a scoop for me please drop me a line. Thanks. Neil From dominicgusah at AOL.COM Fri Feb 24 08:39:50 2006 From: dominicgusah at AOL.COM (Dominic Gusah) Date: Fri, 24 Feb 2006 10:39:50 -0600 Subject: Get Demo Running Message-ID: I have mapserver up and running on my C: drive on Windows but I'm having trouble with the demo. The 'Mapserver New User' document says "You will need to move the demo files to their appropriate locations on your HTTP server, and modify the Map File and html pages to reflect the paths and URLs of your server." Unfortunately I'm a bit of a IT novice, could anyone give me help on doing this? Cheers D. Gusah From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Fri Feb 24 08:44:05 2006 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Doyon, Jean-Francois) Date: Fri, 24 Feb 2006 11:44:05 -0500 Subject: *** glibc detected *** double free or c orruption Message-ID: Heh, looks like this is fixed in 4.8.1, so I guess I'll just do an emergency upgradeoctomy :) -----Original Message----- From: Umberto Nicoletti [mailto:umberto.nicoletti at gmail.com] Sent: February 23, 2006 2:21 AM To: Doyon, Jean-Francois Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] *** glibc detected *** double free or corruption Open the command prompt and then type: man malloc Search for MALLOC_CHECK This is a feature of newer malloc impl that add checking code so that memory leaks or mismanagements can be detected.If that does not help try to disable SELinux. Reagrds, Umberto On 2/22/06, Doyon, Jean-Francois wrote: > Hello, > > I'm testing MapServer on some new hardware/software, and ran into what > looks like a bug ... > > With a specific mapfile, the mapserver CGI dies with the following error: > > [Wed Feb 22 13:03:33 2006] [error] [client 132.156.4.96] *** glibc > detected > *** double free or corruption (!prev): 0x09f76cf8 ***, referer: > [Wed Feb 22 13:03:33 2006] [error] [client 132.156.4.96] Premature end > of script headers: mapserv461atlas, referer: > > (referer deleted) > > This is mapserver 4.6.1 on CentOS 4.2 (i.e. RHEL 4). > > It uses: > > GDAL 1.3.1 > PROJ 4.4.9 > > And the system libraries for the rest: > > libgd.so.2 => /usr/lib/libgd.so.2 (0x0065a000) > libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x002aa000) > libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x004dc000) > libpng12.so.0 => /usr/lib/libpng12.so.0 (0x00343000) > libz.so.1 => /usr/lib/libz.so.1 (0x004ca000) > libproj.so.0 => /home/atlas/web/lib/libproj.so.0 (0x00111000) > libgdal.so.1 => /home/atlas/web/lib/libgdal.so.1 (0x006a7000) > libcurl.so.3 => /usr/lib/libcurl.so.3 (0x00145000) > libssl.so.4 => /lib/libssl.so.4 (0x00175000) > libcrypto.so.4 => /lib/libcrypto.so.4 (0x001a9000) > libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00292000) > libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x005c9000) > libcom_err.so.2 => /lib/libcom_err.so.2 (0x00447000) > libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00630000) > libresolv.so.2 => /lib/libresolv.so.2 (0x002c8000) > libdl.so.2 => /lib/libdl.so.2 (0x00441000) > libidn.so.11 => /usr/lib/libidn.so.11 (0x0044c000) > libc.so.6 => /lib/tls/libc.so.6 (0x009c7000) > libm.so.6 => /lib/tls/libm.so.6 (0x00313000) > libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00366000) > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x002db000) > libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x002e3000) > libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x00af1000) > libtiff.so.3 => /usr/lib/libtiff.so.3 (0x0047c000) > librt.so.1 => /lib/tls/librt.so.1 (0x00543000) > /lib/ld-linux.so.2 (0x002fc000) > libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x00431000) > libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00557000) > > The only thing noticeably different about the mapfile causing the > error is that it has WMS layers and is quite a bit bigger than your average mapfile. > > I found nothing in bugzilla. > > Anybody run into this before? I found one obscure reference, but no > clear cause/solution. > > Thanks, > > Jean-Fran?ois Doyon > Internet Service Development and Systems Support / Sp?cialiste de > d?veloppements internet et soutien technique Canada Centre for Remote > Sensing/Centre Canadien de t?l?d?tection Natural Resources > Canada/Ressources Naturelles Canada http://atlas.gc.ca > Tel./T?l.: (613) 992-4902 > Fax: (613) 947-2410 > From woklist at KYNGCHAOS.COM Fri Feb 24 09:23:31 2006 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Fri, 24 Feb 2006 11:23:31 -0600 Subject: MapServer for Mac OS X - PPC/Intel In-Reply-To: <43FF0281.9090508@eidesis.org> Message-ID: On Feb 24, 2006, at 6:56 AM, Puneet Kishor wrote: > > William, > > Great work! Checking details, two questions come to my mind (I > haven't done this in a long time) -- > > what version of Apache are you building against -- the stock > version that comes with the OS? > stock apache with OS X. It says in the PHP readme and on the download page. > are you building SWIG MapScript (or does that happen automatically > now?). > I believe SWIG is just the underlying API for the various mapscripts EXCEPT PHP mapscript. I don't build any of the other mapscripts, but I've been considering adding Python mapscript. ----- William Kyngesburye http://www.kyngchaos.com/ "This is a question about the past, is it? ... How can I tell that the past isn't a fiction designed to account for the discrepancy between my immediate physical sensations and my state of mind?" - The Ruler of the Universe From jerl.simpso at GMAIL.COM Fri Feb 24 09:25:17 2006 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Fri, 24 Feb 2006 11:25:17 -0600 Subject: anti-aliasing output image Message-ID: Hello, I am using mapserver in both a WMS and shp2image applications. I need my output images to be anti-aliased but I can't figure out how to do this. Does anyone have any tips? All my data comes from ESRI Shape files. thanks, Jerl -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at REFRACTIONS.NET Fri Feb 24 09:42:23 2006 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Fri, 24 Feb 2006 09:42:23 -0800 Subject: MapServer, PostGIS, Subquery with JOIN, WMS GetFeatureInfo / Followup Question In-Reply-To: <43FF0582.6010703@propertykey.com> Message-ID: If you have the option, please don't use oid, use a primary key (like the 'gid' created by shp2pgsql) as your unique key. Primary keys already have indexes, oids do not. Primary keys show up automatically in a "select *" query, oids do not. oids are deprecated in pgsql and not available by default in pgsql 8.1. Basically oid is now a deadend, and we need to start erasing all uses of them. P On 24-Feb-06, at 5:09 AM, Jeff Hoffmann wrote: > Nick Floersch wrote: >> >> --------------------------------------------------------------------- >> --- >> *From:* Nick Floersch >> *Sent:* Friday, February 24, 2006 5:03 AM >> *To:* Nick Floersch >> *Subject:* RE: MapServer, PostGIS, Subquery with JOIN, WMS >> GetFeatureInfo / Followup Question >> After my just previous post to the list, I decided to try my >> alternative solution... >> "" Before anyone suggests the solution of using a view to >> encapsulate my JOIN so it need not be in the subquery, I'll just >> say that I am aware I could try that approach (though I have not >> yet done so), but my curiosity has been piqued by this problem as >> it is, so I'm hoping to find out more about the JOINs in >> subqueries issue I have. I would also really love to know how >> MapServer gets the attribute columns for PostGIS layers. "" > > This is on my "figure out some day myself" list, too. I'm doing > the view thing right now, but I'd like to not have to create views > for everything. > >> ---snip--- >> The only thing I can think of is... does the PostGIS connector >> require the table to have OIDs? It looks that way. > > Yes. It needs some unique field in order to randomly access an > individual rows, it just so happens that OID is a convenient way to > get that in most cases. You can also specify your own unique > column name with "using unique " if your view doesn't > have an OID column but you have some other key you can use. I just > pull in the OID from the main geometry-containing table when I > define the view. > > -- > Jeff Hoffmann > jeff at propertykey.com From jerl.simpso at GMAIL.COM Fri Feb 24 10:08:12 2006 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Fri, 24 Feb 2006 12:08:12 -0600 Subject: anti-aliasing output image In-Reply-To: <9FAE86C6BFBD7C45949E7590CC2D0DB2BA80DD@srv1.megarry.com> Message-ID: That seems to only work in the LABEL object. It gives a parse error outside the LABEL object. On 2/24/06, Dennis Megarry wrote: > > Set "ANTIALIAS true" in your layer object? > > ________________________________ > > From: UMN MapServer Users List on behalf of Jerl Simpson > Sent: Fri 2/24/2006 12:25 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] anti-aliasing output image > > > Hello, > > I am using mapserver in both a WMS and shp2image applications. I need my > output images to be anti-aliased but I can't figure out how to do this. > Does anyone have any tips? > > All my data comes from ESRI Shape files. > > thanks, > > Jerl > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tealorama at GMAIL.COM Fri Feb 24 10:10:10 2006 From: tealorama at GMAIL.COM (=?ISO-8859-1?Q?Tero_Al=E9n?=) Date: Fri, 24 Feb 2006 20:10:10 +0200 Subject: Problems compiling MapServer 4.8.1 on Linux Message-ID: Hi, I have probles compiling MapServer 4.8.1. I use the following configure ./configure --with-tiff \ --with-jpeg \ --with-png \ --with-freetype \ --with-zlib \ --with-threads \ --with-proj \ --with-gdal \ --with-wcs \ --with-ogr \ --with-wmsclient \ --with-wfsclient \ --with-odbc And got following output from make -------8<--------------------------------------------------------------- -------- mapgd.c: In function ???msDrawTextGD???: mapgd.c:3058: warning: pointer targets in passing argument 5 of ? ??gdImageString??? differ in signedness mapgd.c:3059: warning: pointer targets in passing argument 5 of ? ??gdImageString??? differ in signedness mapgd.c:3060: warning: pointer targets in passing argument 5 of ? ??gdImageString??? differ in signedness mapgd.c:3061: warning: pointer targets in passing argument 5 of ? ??gdImageString??? differ in signedness mapgd.c:3062: warning: pointer targets in passing argument 5 of ? ??gdImageString??? differ in signedness mapgd.c:3063: warning: pointer targets in passing argument 5 of ? ??gdImageString??? differ in signedness mapgd.c:3064: warning: pointer targets in passing argument 5 of ? ??gdImageString??? differ in signedness mapgd.c:3065: warning: pointer targets in passing argument 5 of ? ??gdImageString??? differ in signedness mapgd.c:3069: warning: pointer targets in passing argument 5 of ? ??gdImageString??? differ in signedness mapgd.c:3071: warning: pointer targets in passing argument 5 of ? ??gdImageString??? differ in signedness mapgd.c:3081: warning: pointer targets in passing argument 5 of ? ??gdImageString??? differ in signedness mapgd.c:3082: warning: pointer targets in passing argument 5 of ? ??gdImageString??? differ in signedness mapgd.c:3083: warning: pointer targets in passing argument 5 of ? ??gdImageString??? differ in signedness mapgd.c:3084: warning: pointer targets in passing argument 5 of ? ??gdImageString??? differ in signedness mapgd.c:3085: warning: pointer targets in passing argument 5 of ? ??gdImageString??? differ in signedness mapgd.c:3086: warning: pointer targets in passing argument 5 of ? ??gdImageString??? differ in signedness mapgd.c:3087: warning: pointer targets in passing argument 5 of ? ??gdImageString??? differ in signedness mapgd.c:3088: warning: pointer targets in passing argument 5 of ? ??gdImageString??? differ in signedness mapgd.c:3092: warning: pointer targets in passing argument 5 of ? ??gdImageString??? differ in signedness mapgd.c:3094: warning: pointer targets in passing argument 5 of ? ??gdImageString??? differ in signedness gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include mapoutput.c -o mapoutput.o gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include mapgdal.c -o mapgdal.o gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include mapswf.c -o mapswf.o gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include mapimagemap.c -o mapimagemap.o gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include mapows.c -o mapows.o gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include mapwfs.c -o mapwfs.o gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include mapwfslayer.c -o mapwfslayer.o gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include mapcontext.c -o mapcontext.o gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include maphttp.c -o maphttp.o gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include mapdrawgdal.c -o mapdrawgdal.o gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include mappdf.c -o mappdf.o gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include mapjoin.c -o mapjoin.o gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include mapgraticule.c -o mapgraticule.o gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include mapcopy.c -o mapcopy.o gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include mapogcfilter.c -o mapogcfilter.o gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include mapogcsld.c -o mapogcsld.o mapogcsld.c: In function ???msSLDGetAttributeNameOrValue???: mapogcsld.c:4120: warning: ???szCompare[0]??? may be used uninitialized in this function mapogcsld.c:4120: warning: ???szCompare[1]??? may be used uninitialized in this function mapogcsld.c:4121: warning: ???szCompare2[0]??? may be used uninitialized in this function mapogcsld.c:4121: warning: ???szCompare2[1]??? may be used uninitialized in this function gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include maptime.c -o maptime.o maptime.c: In function ???msStrptime???: maptime.c:169: warning: implicit declaration of function ???strptime??? maptime.c:169: warning: return makes pointer from integer without a cast gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include mapwcs.c -o mapwcs.o gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include mapcpl.c -o mapcpl.o gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include cgiutil.c -o cgiutil.o cgiutil.c: In function ???loadParams???: cgiutil.c:139: warning: suggest parentheses around assignment used as truth value gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include maprasterquery.c -o maprasterquery.o gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include mapobject.c -o mapobject.o g++ -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include mapgeos.cpp -o mapgeos.o gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include classobject.c -o classobject.o gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include layerobject.c -o layerobject.o gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include mapio.c -o mapio.o gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include mappool.c -o mappool.o gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include mapsvg.c -o mapsvg.o gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include mapregex.c -o mapregex.o gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include mappluginlayer.c -o mappluginlayer.o gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include epplib.c -o epplib.o epplib.c: In function ???position???: epplib.c:231: warning: pointer targets in passing argument 1 of ? ??swap2??? differ in signedness ar rc libmap.a maptemplate.o mapbits.o maphash.o mapshape.o mapxbase.o mapparser.o maplexer.o maptree.o mapsearch.o mapstring.o mapsymbol.o mapfile.o maplegend.o maputil.o mapscale.o mapquery.o maplabel.o maperror.o mapprimitive.o mapproject.o mapraster.o mapsde.o mapogr.o mappostgis.o mapmygis.o maplayer.o mapresample.o mapwms.o mapwmslayer.o maporaclespatial.o mapgml.o mapprojhack.o mapthread.o mapdraw.o mapgd.o mapoutput.o mapgdal.o mapswf.o mapimagemap.o mapows.o mapwfs.o mapwfslayer.o mapcontext.o maphttp.o mapdrawgdal.o mappdf.o mapjoin.o mapgraticule.o mapcopy.o mapogcfilter.o mapogcsld.o maptime.o mapwcs.o mapcpl.o cgiutil.o maprasterquery.o mapobject.o mapgeos.o classobject.o layerobject.o mapio.o mappool.o mapsvg.o mapregex.o mappluginlayer.o epplib.o ranlib libmap.a gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include shp2img.c -o shp2img.o gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DHAVE_VSNPRINTF - DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR - DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_TIFF -DUSE_GD_GIF -DUSE_GD_PNG - DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV - DUSE_THREAD -DUSE_ZLIB -I/usr/include -I/usr/local/ include shp2img.o -L. -lmap -lgd -L/usr/lib -lgd -ljpeg - lfreetype -lpng -lz -lXpm -lX11 -ltiff -ljpeg -lfreetype -lpng -lz - lXpm -lX11 -lproj -ljpeg -L/usr/local/lib -lgdal -L/usr/lib - lcurl -lidn -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz -lpthread - lc -lz -lm -lstdc++ -o shp2img ./libmap.a(mapogr.o): In function `msOGRFileWhichShapes(layer_obj*, rectObj, ms_ogr_file_info_t*)':mapogr.cpp:(.text+0x488): undefined reference to `OGRLineString::setPoint(int, double, double)' :mapogr.cpp:(.text+0x4a6): undefined reference to `OGRLineString::setPoint(int, double, double)' :mapogr.cpp:(.text+0x4c4): undefined reference to `OGRLineString::setPoint(int, double, double)' :mapogr.cpp:(.text+0x4e2): undefined reference to `OGRLineString::setPoint(int, double, double)' :mapogr.cpp:(.text+0x500): undefined reference to `OGRLineString::setPoint(int, double, double)' ./libmap.a(mapogr.o): In function `msOGRShapeToWKT':mapogr.cpp:(.text +0xb0f): undefined reference to `OGR_G_SetPoint_2D' :mapogr.cpp:(.text+0xb5c): undefined reference to `OGR_G_AddPoint_2D' :mapogr.cpp:(.text+0xbe8): undefined reference to `OGR_G_AddPoint_2D' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 The error don't make sense for me. Maybe somebody knows what went wrong? -- Tero -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Fri Feb 24 10:11:53 2006 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 24 Feb 2006 13:11:53 -0500 Subject: Problem with WMS Connection Message-ID: Dennis - By default MapServer presumes that the output map and all layers are in the same projection/coordinate system. As a result, for simple cases you don't need need to tell MapServer what projection you're using. If you ask for a map at coordinate 23456, 2837455 then MapServer will look for that coordinate in your data and draw whatever is there. If you want to use data sources with different input projections, or if you want MapServer to produce an output map in a projection different than the input data, then you need to specify PROJECTION blocks. The map-level (top-level) PROJECTION block specifies the desired output projection, and the EXTENT of your map is in the units of that projection. If that's all you do, then all input layers are presumed to be in that projection. If your input data is in a different projection, you have to tell MapServer by adding a PROJECTION block to each layer with a projection different from the output projection. It is often best to use an all-or-nothing approach. If your top-level output map has a PROJECTION block, then put PROJECTION blocks in all your layer definitions. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: Dennis Megarry [mailto:dennis at megarry.com] Sent: Friday, February 24, 2006 12:54 PM To: Ed McNierney; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Problem with WMS Connection Ahh.. yup.. that was it! Stupid me.. I fought with this for 5 days now.. lol Thanks! So.. I take it if you have data with different projections you need to set this at the layer level? I had setup the main projection which all my data is in and thought by setting the layer projection for the WMS server is would work, but it certainly did not... I removed the Projection all together and things started to display. Dennis ________________________________ From: UMN MapServer Users List on behalf of Ed McNierney Sent: Fri 2/24/2006 11:37 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Problem with WMS Connection Dennis - Thanks - the server seems fine. But you're not defining a PROJECTION block for the WMS layer - you need to tell MapServer that the input image is in EPSG:4269 projection rather than in the default LCC projection of your output image. Without that, MapServer will treat it as LCC input coordinates, and the resulting image will be way off-screen somewhere. I might be wrong on that - I got in the habit of specifying PROJECTION blocks for WMS layers a long time ago, when they were required. That might have changed, but it's worth a try. - Ed P.S. Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: Dennis Megarry [mailto:dennis at megarry.com] Sent: Friday, February 24, 2006 11:01 AM To: Ed McNierney Subject: RE: [UMN_MAPSERVER-USERS] Problem with WMS Connection I do get a response from it... The actual MAP file is below (since this is sent off-list). I tried your suggestion and put "&" on the end (see below) and still nothing.. ARGH! [MAP file contents removed by Ed before replying on-list] -------------- next part -------------- An HTML attachment was scrubbed... URL: From dennis at MEGARRY.COM Fri Feb 24 10:00:31 2006 From: dennis at MEGARRY.COM (Dennis Megarry) Date: Fri, 24 Feb 2006 13:00:31 -0500 Subject: anti-aliasing output image Message-ID: Set "ANTIALIAS true" in your layer object? ________________________________ From: UMN MapServer Users List on behalf of Jerl Simpson Sent: Fri 2/24/2006 12:25 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] anti-aliasing output image Hello, I am using mapserver in both a WMS and shp2image applications. I need my output images to be anti-aliased but I can't figure out how to do this. Does anyone have any tips? All my data comes from ESRI Shape files. thanks, Jerl -------------- next part -------------- An HTML attachment was scrubbed... URL: From dennis at MEGARRY.COM Fri Feb 24 09:54:28 2006 From: dennis at MEGARRY.COM (Dennis Megarry) Date: Fri, 24 Feb 2006 12:54:28 -0500 Subject: Problem with WMS Connection Message-ID: Ahh.. yup.. that was it! Stupid me.. I fought with this for 5 days now.. lol Thanks! So.. I take it if you have data with different projections you need to set this at the layer level? I had setup the main projection which all my data is in and thought by setting the layer projection for the WMS server is would work, but it certainly did not... I removed the Projection all together and things started to display. Dennis ________________________________ From: UMN MapServer Users List on behalf of Ed McNierney Sent: Fri 2/24/2006 11:37 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Problem with WMS Connection Dennis - Thanks - the server seems fine. But you're not defining a PROJECTION block for the WMS layer - you need to tell MapServer that the input image is in EPSG:4269 projection rather than in the default LCC projection of your output image. Without that, MapServer will treat it as LCC input coordinates, and the resulting image will be way off-screen somewhere. I might be wrong on that - I got in the habit of specifying PROJECTION blocks for WMS layers a long time ago, when they were required. That might have changed, but it's worth a try. - Ed P.S. Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 ________________________________ From: Dennis Megarry [mailto:dennis at megarry.com] Sent: Friday, February 24, 2006 11:01 AM To: Ed McNierney Subject: RE: [UMN_MAPSERVER-USERS] Problem with WMS Connection I do get a response from it... The actual MAP file is below (since this is sent off-list). I tried your suggestion and put "&" on the end (see below) and still nothing.. ARGH! [MAP file contents removed by Ed before replying on-list] -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgillies at FRII.COM Fri Feb 24 10:48:03 2006 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 24 Feb 2006 11:48:03 -0700 Subject: Problems compiling MapServer 4.8.1 on Linux In-Reply-To: Message-ID: On Feb 24, 2006, at 11:10 AM, Tero Al?n wrote: > --Apple-Mail-9--711346232 > Content-Transfer-Encoding: quoted-printable > Content-Type: text/plain; > charset=WINDOWS-1252; > delsp=yes; > format=flowed > > Hi, > > I have probles compiling MapServer 4.8.1. I use the following > configure > > ./configure --with-tiff \ > --with-jpeg \ > --with-png \ > --with-freetype \ > --with-zlib \ > --with-threads \ > --with-proj \ > --with-gdal \ > --with-wcs \ > --with-ogr \ > --with-wmsclient \ > --with-wfsclient \ > --with-odbc > > And got following output from make ...snipped Tero, I think you need to upgrade GDAL to at least 1.3.0. cheers, Sean --- Sean Gillies sgillies at frii dot com http://zcologia.com/news From David.Hunter at FNF.COM Fri Feb 24 10:55:46 2006 From: David.Hunter at FNF.COM (Hunter, David - St. Louis Park, MN) Date: Fri, 24 Feb 2006 12:55:46 -0600 Subject: itemnquery Message-ID: I am using mapserver CGI with shapefiles, and have a web interface that includes a rubberband - type of area selection tool. I use itemnquerymap mode to highlight certain polygons, which works fine. However, if the user selects an area with the rubberband tool that does not include one of the queried polygons, mapserver generates an error: msQueryByAttributes(): Search returned no results. No matching record(s) found and a red X is displayed in the web page. Is there a trick I could do that would cause the map to be generated, even if no matches were found in the query? David S. Hunter Sr. Software Engineer Fidelity National Geographic Solutions division of Fidelity National Financial 5353 Gamble Drive, Suite 201 St. Louis Park, MN 55416 * Email: david.hunter at fnf.com ' Phone: 952.542.1440 ext. 256 * Fax: 952.542.3859 -------------- next part -------------- An HTML attachment was scrubbed... URL: From naci0002 at UMN.EDU Fri Feb 24 11:41:32 2006 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Fri, 24 Feb 2006 13:41:32 -0600 Subject: Get Demo Running In-Reply-To: Message-ID: Did you read the README file that comes with the demo? Cheers! -Perry On Friday 24 February 2006 10:39, Dominic Gusah wrote: > I have mapserver up and running on my C: drive on Windows but I'm having > trouble with the demo. > > The 'Mapserver New User' document says > > "You will need to move the demo files to their appropriate locations on > your HTTP server, and modify the Map File and html pages to reflect the > paths and URLs of your server." > > Unfortunately I'm a bit of a IT novice, could anyone give me help on doing > this? > > Cheers > D. Gusah From Nick at STONE-ENV.COM Fri Feb 24 12:12:37 2006 From: Nick at STONE-ENV.COM (Nick Floersch) Date: Fri, 24 Feb 2006 15:12:37 -0500 Subject: MapServer, PostGIS, Subquery with JOIN, WMS GetFeatureInfo / Followup Question Message-ID: Hello Paul, Steve, Jeff, and other MapServer users, Thanks for the replies. By adding an appropriate 'using unique' clause to my DATA entry in the mapfile, I got my layer based on a view to draw. I am glad that views can be used. There is a trick that had to be realized. At first, I put in a 'using unique the_geom' clause which of course assumed that my geometry field was unique. But, because the source of my layer is a view (or a subquery in its previous life) which has a left outer join in it, the geometry column is far from unique. This is what I thought I wanted - to generate a layer which had multiple points at the same locations with different attributes... a series of attributes for a given point location. In my case, the idea is that the feature point can have images associated with it from a table of images. So, a left outer join on that table gives me a layer with duplicate points that have different values for the image name attribute. Anyway, initially, after I realized that 'the_geom' is not a unique field for me, I switched to using a field that is unique in my view, and things came to life. My GetFeatureInfo requests suddenly started returning attributes, and life looked good. But no. Not perfect. What I had in mind has not worked quite right - my GetFeatureInfo tool clicks on a point feature, and I get a list of attributes, by layer, for each feature under the pointer. Except, not all the duplicate point features are returned. The best I can think to describe it is this: I have a stack of points all defined in the same layer, and I click on the stack, and only the top point in that stack is returned. I was hoping it would return data for each of those points in the stack. So, is there some way I can make this work better? Am I totally barking up the wrong tree? I have one GetFeatureInfo request that needs to return multiple values for the same field of a given feature, based on a join... Thanks for any thoughts and help! Nick Floersch ------- If you have the option, please don't use oid, use a primary key (like the 'gid' created by shp2pgsql) as your unique key. Primary keys already have indexes, oids do not. Primary keys show up automatically in a "select *" query, oids do not. oids are deprecated in pgsql and not available by default in pgsql 8.1. Basically oid is now a deadend, and we need to start erasing all uses of them. P ------- Nick, I seem to remember a post from one of the postGIS guys awile back the you needed to add an entry in the geometry_columns table for the view. -Steve W. -------- This is on my "figure out some day myself" list, too. I'm doing the view thing right now, but I'd like to not have to create views for everything. > The only thing I can think of is... does the PostGIS connector require > the table to have OIDs? It looks that way. Yes. It needs some unique field in order to randomly access an individual rows, it just so happens that OID is a convenient way to get that in most cases. You can also specify your own unique column name with "using unique " if your view doesn't have an OID column but you have some other key you can use. I just pull in the OID from the main geometry-containing table when I define the view. -- Jeff Hoffmann -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at GEOANALYTIC.COM Fri Feb 24 12:55:04 2006 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Fri, 24 Feb 2006 13:55:04 -0700 Subject: Serving ECW's with Mapserver 4.8.1 Message-ID: Ajay, Try adding the following to your LAYER definition for the ECW files: PROJECTION "AUTO" END Assuming that: 1. your ECW file has a coordinate system definition 2. you have GDAL with ECW capability linked in to mapserver 3. your map file EXTENTS and UNITS are set so the mapserver generated graphics geographically overlap your ECW file, then you should get the ECW contents rendered into the output image. You mention that you have many ecw's across zones 54 to 56. If you've many ecw files, you'll likely want to create a TILEINDEX layer to access them. And in that case you'll actually have to create one LAYER definition (and one TILEINDEX) for each zone. And you may need to explicitly state the coordinate system in each layer: PROJECTION "proj=utm" "zone=54" "north" "datum=WGS84" "no_defs" END (you'll need to find out which datum or ellipsoid to use). Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Ajay Ranipeta" To: Sent: Thursday, February 23, 2006 3:10 AM Subject: [UMN_MAPSERVER-USERS] Serving ECW's with Mapserver 4.8.1 > Hi guys, > > I have some ecw's that I wanna serve with Mapserver, but I can't seem to get > them to display. These ecw's are projected in GDA94 with Zones 54-56. No > error's come up and other layers (shapes, wbmp's, tiff) come up fine. I use > the CGI mapserver which obviously has GDAL with ECW's already included. I've > gone thru' a few posts regarding ecw's and but no help. Also, as one post > suggested, i've got the header info within the image itself, but that's no > help either. > > I'm sure i'm missing something obvious, so any help would be greatly > appreciated. > > cheers, > Ajay From Nick at STONE-ENV.COM Fri Feb 24 12:59:25 2006 From: Nick at STONE-ENV.COM (Nick Floersch) Date: Fri, 24 Feb 2006 15:59:25 -0500 Subject: MapServer, PostGIS, Subquery with JOIN, WMS GetFeatureInfo / Followup Question Message-ID: I thought of a way to rephrase/reask the question I am now stuck with. I was reading through my MapServer book ('Beginning MapServer') on Queries and Joins, to see if mr. Kropla had any suggestions. He wrote that, in doing regular MapServer JOINs, if you want to have a JOIN produce one-to-many results, you need to specify a template for the JOIN to format each record beyond the first one that is returned into the final HTML result. Otherwise, only the first record will be returned. How does this principal apply to the GML generated by GetFeatureInfo requests? Obviously we don't need to define a valid HTML template to output the data... but how do GetFeatureInfo requests deal with one-to-many situations, and does the output format make any difference on how it is handled? If I have my GetFeatureInfo request return HTML rather than GML, can I use templates and have it handle a one-to-many arrangement succesfully? Thoughts, ideas? Thanks! Nick Floersch ________________________________ From: Nick Floersch Hello Paul, Steve, Jeff, and other MapServer users, Thanks for the replies. By adding an appropriate 'using unique' clause to my DATA entry in the mapfile, I got my layer based on a view to draw. I am glad that views can be used. There is a trick that had to be realized. At first, I put in a 'using unique the_geom' clause which of course assumed that my geometry field was unique. But, because the source of my layer is a view (or a subquery in its previous life) which has a left outer join in it, the geometry column is far from unique. This is what I thought I wanted - to generate a layer which had multiple points at the same locations with different attributes... a series of attributes for a given point location. In my case, the idea is that the feature point can have images associated with it from a table of images. So, a left outer join on that table gives me a layer with duplicate points that have different values for the image name attribute. Anyway, initially, after I realized that 'the_geom' is not a unique field for me, I switched to using a field that is unique in my view, and things came to life. My GetFeatureInfo requests suddenly started returning attributes, and life looked good. But no. Not perfect. What I had in mind has not worked quite right - my GetFeatureInfo tool clicks on a point feature, and I get a list of attributes, by layer, for each feature under the pointer. Except, not all the duplicate point features are returned. The best I can think to describe it is this: I have a stack of points all defined in the same layer, and I click on the stack, and only the top point in that stack is returned. I was hoping it would return data for each of those points in the stack. So, is there some way I can make this work better? Am I totally barking up the wrong tree? I have one GetFeatureInfo request that needs to return multiple values for the same field of a given feature, based on a join... Thanks for any thoughts and help! Nick Floersch ------- If you have the option, please don't use oid, use a primary key (like the 'gid' created by shp2pgsql) as your unique key. Primary keys already have indexes, oids do not. Primary keys show up automatically in a "select *" query, oids do not. oids are deprecated in pgsql and not available by default in pgsql 8.1. Basically oid is now a deadend, and we need to start erasing all uses of them. P ------- Nick, I seem to remember a post from one of the postGIS guys awile back the you needed to add an entry in the geometry_columns table for the view. -Steve W. -------- This is on my "figure out some day myself" list, too. I'm doing the view thing right now, but I'd like to not have to create views for everything. > The only thing I can think of is... does the PostGIS connector require > the table to have OIDs? It looks that way. Yes. It needs some unique field in order to randomly access an individual rows, it just so happens that OID is a convenient way to get that in most cases. You can also specify your own unique column name with "using unique " if your view doesn't have an OID column but you have some other key you can use. I just pull in the OID from the main geometry-containing table when I define the view. -- Jeff Hoffmann -------------- next part -------------- An HTML attachment was scrubbed... URL: From ltrevino at GPOBSI.COM.MX Fri Feb 24 13:20:44 2006 From: ltrevino at GPOBSI.COM.MX (Luis Trevi=?ISO-8859-1?Q?=F1o?=) Date: Fri, 24 Feb 2006 15:20:44 -0600 Subject: Points adjustment on the map Message-ID: Hi, I'm developing a vehicule localization aplication using mapserver CGI with postgis and I need to adjust my cartography with real data that comes from a GPS installed on the vehicules. My problem is that the points (vehicules position) displayed on the map are 40-60 meters up north than they should be. My map output projection is proj=longlat ellps=GRS80 datum=WGS84 no_defs (the same as my cartography data). The data from the vehicules are stored on a postgis table and has this projection: proj=longlat ellps=WGS84 datum=WGS84 no_defs. (I've tried using different kind of projection but I didn't get what I need). this particular aplication requires some sort of precision, so I need to adjust this difference and haven't found how. Is there any way I can adjust this? Thanks in advance, Luis. From pramsey at REFRACTIONS.NET Sat Feb 25 11:04:18 2006 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Sat, 25 Feb 2006 11:04:18 -0800 Subject: MapServer, PostGIS, Subquery with JOIN, WMS GetFeatureInfo / Followup Question In-Reply-To: <9CAD6BBFE34A214A8C0597CED6B1BF3BEDAAE0@mail.stone-env.com> Message-ID: Nick, The answer to this takes either Assefa's input, or a browse of the source code to find out what the GetFeatureInfo is going. It is probably doing a 'query' rather than an 'nquery', so having a multi- item template may make no difference at all. The WMS spec is silent on what the actual behavior of the GetFeatureInfo should be, so it is very much an implementation question. Paul On 24-Feb-06, at 12:59 PM, Nick Floersch wrote: > I thought of a way to rephrase/reask the question I am now stuck with. > > I was reading through my MapServer book ('Beginning MapServer') on > Queries and Joins, to see if mr. Kropla had any suggestions. > > He wrote that, in doing regular MapServer JOINs, if you want to > have a JOIN produce one-to-many results, you need to specify a > template for the JOIN to format each record beyond the first one > that is returned into the final HTML result. Otherwise, only the > first record will be returned. > > How does this principal apply to the GML generated by > GetFeatureInfo requests? Obviously we don't need to define a valid > HTML template to output the data... but how do GetFeatureInfo > requests deal with one-to-many situations, and does the output > format make any difference on how it is handled? If I have my > GetFeatureInfo request return HTML rather than GML, can I use > templates and have it handle a one-to-many arrangement succesfully? > > Thoughts, ideas? > > Thanks! > Nick Floersch > > From: Nick Floersch > > Hello Paul, Steve, Jeff, and other MapServer users, > > Thanks for the replies. > > By adding an appropriate 'using unique' clause to my DATA entry in > the mapfile, I got my layer based on a view to draw. I am glad that > views can be used. > > > There is a trick that had to be realized. At first, I put in a > 'using unique the_geom' clause which of course assumed that my > geometry field was unique. But, because the source of my layer is a > view (or a subquery in its previous life) which has a left outer > join in it, the geometry column is far from unique. This is what I > thought I wanted - to generate a layer which had multiple points at > the same locations with different attributes... a series of > attributes for a given point location. In my case, the idea is that > the feature point can have images associated with it from a table > of images. So, a left outer join on that table gives me a layer > with duplicate points that have different values for the image name > attribute. > > Anyway, initially, after I realized that 'the_geom' is not a unique > field for me, I switched to using a field that is unique in my > view, and things came to life. My GetFeatureInfo requests suddenly > started returning attributes, and life looked good. > > But no. Not perfect. What I had in mind has not worked quite right > - my GetFeatureInfo tool clicks on a point feature, and I get a > list of attributes, by layer, for each feature under the pointer. > Except, not all the duplicate point features are returned. The best > I can think to describe it is this: I have a stack of points all > defined in the same layer, and I click on the stack, and only the > top point in that stack is returned. I was hoping it would return > data for each of those points in the stack. > > So, is there some way I can make this work better? Am I totally > barking up the wrong tree? I have one GetFeatureInfo request that > needs to return multiple values for the same field of a given > feature, based on a join... > > > Thanks for any thoughts and help! > > Nick Floersch > > ------- > > If you have the option, please don't use oid, use a primary key > (like the 'gid' created by shp2pgsql) as your unique key. Primary > keys already have indexes, oids do not. Primary keys show up > automatically in a "select *" query, oids do not. oids are > > deprecated in pgsql and not available by default in pgsql 8.1. > > Basically oid is now a deadend, and we need to start erasing all > uses of them. > > P > > ------- > > Nick, > > I seem to remember a post from one of the postGIS guys awile back > the you needed to add an entry in the geometry_columns table for > the view. > > -Steve W. > > -------- > > This is on my "figure out some day myself" list, too. I'm doing the > view thing right now, but I'd like to not have to create views for > everything. > > > The only thing I can think of is... does the PostGIS connector > require > > > the table to have OIDs? It looks that way. > > Yes. It needs some unique field in order to randomly access an > individual rows, it just so happens that OID is a convenient way to > get that in most cases. You can also specify your own unique column > name with "using unique " if your view doesn't have an > OID column but you have some other key you can use. I just pull in > the OID from the main geometry-containing table when I define the > view. > > -- > > Jeff Hoffmann From warmerdam at POBOX.COM Sat Feb 25 15:55:40 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Sat, 25 Feb 2006 18:55:40 -0500 Subject: Problems compiling MapServer 4.8.1 on Linux In-Reply-To: <670840FF-A121-4B74-A419-6241FCACA460@gmail.com> Message-ID: Tero Al?n wrote: > Hi, > > I have probles compiling MapServer 4.8.1. I use the following configure ... > reference to `OGRLineString::setPoint(int, double, double)' > :mapogr.cpp:(.text+0x4a6): undefined reference to > `OGRLineString::setPoint(int, double, double)' > :mapogr.cpp:(.text+0x4c4): undefined reference to > `OGRLineString::setPoint(int, double, double)' > :mapogr.cpp:(.text+0x4e2): undefined reference to > `OGRLineString::setPoint(int, double, double)' > :mapogr.cpp:(.text+0x500): undefined reference to > `OGRLineString::setPoint(int, double, double)' > ./libmap.a(mapogr.o): In function > `msOGRShapeToWKT':mapogr.cpp:(.text+0xb0f): undefined reference to > `OGR_G_SetPoint_2D' > :mapogr.cpp:(.text+0xb5c): undefined reference to `OGR_G_AddPoint_2D' > :mapogr.cpp:(.text+0xbe8): undefined reference to `OGR_G_AddPoint_2D' > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > Tero, This generally means you have two copies of GDAL/OGR on your system. MapServer is getting built using the include files from one, but linked against the libraries of another. I would suggest you try and strip the older GDAL/OGR off completely, or muck around with the MapServer makefile to ensure that only one version is getting used consistently. Basically fiddling with the order of -I include directives and -L library paths. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From candalt at ONLINE.NO Sun Feb 26 02:02:24 2006 From: candalt at ONLINE.NO (=?iso-8859-1?Q?Sture_Dings=F8yr?=) Date: Sun, 26 Feb 2006 11:02:24 +0100 Subject: Mapserver and Ming compilation Message-ID: Hello everybody I am compiling Mapserver 4.8.1 on Windows, and have some problem with the Ming library. Before i try to compile Ming this is my mapserv.exe -v output: MapServer version 4.8.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG I downloaded the ming-0.2a from (http://dl.maptools.org/dl/) that is ready to be compiled with Windows and nmake. After running nmake /f makefile.vc i successfully got a libming.lib library. But when i try to compile Mapserver with this ming library i get the following (this is the last part of my output): if exist c:\mapserver\gdal-1.3.1\gdal.pdb copy c:\mapserver\gdal-1.3.1\gdal.pdb . 1 file(s) copied. lib /out:mapserver.lib mapbits.obj maphash.obj mapshape.obj mapxbase.obj mapparser.obj maplexer.obj maptree.obj mapsearch.obj mapstring.obj mapsymbol.obj mapfile.obj maplegend.obj maputil.obj mapscale.obj mapquery.obj maplabel.obj maperror.obj mapprimitive.obj mapproject.obj mapraster.obj cgiutil.obj mapsde.obj mapogr.obj maptime.obj maptemplate.obj mappostgis.obj maplayer.obj mapresample.obj mapwms.obj mapwmslayer.obj mapgml.obj maporaclespatial.obj mapprojhack.obj mapdraw.obj mapgd.obj mapoutput.obj mapswf.obj mapgdal.obj mapwfs.obj mapwfslayer.obj mapows.obj maphttp.obj mappdf.obj mapcontext.obj mapdrawgdal.obj mapjoin.obj mapgraticule.obj mapmygis.obj mapimagemap.obj mapcopy.obj maprasterquery.obj mapogcfilter.obj mapogcsld.obj mapthread.obj mapobject.obj classobject.obj layerobject.obj mapwcs.obj mapgeos.obj strptime.obj mapcpl.obj mapio.obj mappool.obj mapsvg.obj mapregex.obj mappluginlayer.obj c:\mapserver\php-5.1.2\regex\regcomp.obj c:\mapserver\php-5.1.2\regex\regerror.obj c:\mapserver\php-5.1.2\regex\regexec.obj c:\mapserver\php-5.1.2\regex\regfree.obj Microsoft (R) Library Manager Version 7.00.9466 Copyright (C) Microsoft Corporation. All rights reserved. link /dll /debug mapbits.obj maphash.obj mapshape.obj mapxbase.obj mapparser.obj maplexer.obj maptree.obj mapsearch.obj mapstring.obj mapsymbol.obj mapfile.obj maplegend.obj maputil.obj mapscale.obj mapquery.obj maplabel.obj maperror.obj mapprimitive.obj mapproject.obj mapraster.obj cgiutil.obj mapsde.obj mapogr.obj maptime.obj maptemplate.obj mappostgis.obj maplayer.obj mapresample.obj mapwms.obj mapwmslayer.obj mapgml.obj maporaclespatial.obj mapprojhack.obj mapdraw.obj mapgd.obj mapoutput.obj mapswf.obj mapgdal.obj mapwfs.obj mapwfslayer.obj mapows.obj maphttp.obj mappdf.obj mapcontext.obj mapdrawgdal.obj mapjoin.obj mapgraticule.obj mapmygis.obj mapimagemap.obj mapcopy.obj maprasterquery.obj mapogcfilter.obj mapogcsld.obj mapthread.obj mapobject.obj classobject.obj layerobject.obj mapwcs.obj mapgeos.obj strptime.obj mapcpl.obj mapio.obj mappool.obj mapsvg.obj mapregex.obj mappluginlayer.obj c:\mapserver\php-5.1.2\regex\regcomp.obj c:\mapserver\php-5.1.2\regex\regerror.obj c:\mapserver\php-5.1.2\regex\regexec.obj c:\mapserver\php-5.1.2\regex\regfree.obj c:/mapserver/gdwin32/bgd.lib C:/mapserver/gdal-1.3.1/frmts/jpeg/libjpeg/libjpeg.lib C:/mapserver/gdal-1.3.1/frmts/jpeg/libjpeg/libjpeg.lib c:\mapserver\proj-4.4.9/src/proj_i.lib c:\mapserver\gdal-1.3.1/gdal_i.lib c:\mapserver\gdal-1.3.1/gdal_i.lib c:/mapserver/curl-7.15.1/lib/libcurl.lib C:\Mapserver\ming-0.2a/src/libming.lib C:\Mapserver\PDFlib-Lite-6.0.2\libs/pdflib/pdflib.lib "C:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\lib\WSOCK32.LIB" C:\mapserver\postgresql-8.1.3\src/interfaces/libpq/libpqdll.lib /def:mapserver.def /out:libmap.dll /implib:mapserver_i.lib Microsoft (R) Incremental Linker Version 7.00.9466 Copyright (C) Microsoft Corporation. All rights reserved. LIBC.lib(crt0dat.obj) : error LNK2005: _exit already defined in MSVCRT.lib(MSVCR70.dll) LIBC.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in MSVCRT.lib(cinitexe.obj) LIBC.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in MSVCRT.lib(cinitexe.obj) LIBC.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in MSVCRT.lib(cinitexe.obj) LIBC.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in MSVCRT.lib(cinitexe.obj) LIBC.lib(atox.obj) : error LNK2005: _atoi already defined in MSVCRT.lib(MSVCR70.dll) MSVCRT.lib(MSVCR70.dll) : error LNK2005: __strdup already defined in LIBC.lib(strdup.obj) MSVCRT.lib(MSVCR70.dll) : error LNK2005: __fileno already defined in LIBC.lib(fileno.obj) MSVCRT.lib(MSVCR70.dll) : error LNK2005: __getpid already defined in LIBC.lib(getpid.obj) LIBC.lib(crt0dat.obj) : warning LNK4006: _exit already defined in MSVCRT.lib(MSVCR70.dll); second definition ignored LIBC.lib(crt0init.obj) : warning LNK4006: ___xc_z already defined in MSVCRT.lib(cinitexe.obj); second definition ignored LIBC.lib(crt0init.obj) : warning LNK4006: ___xc_a already defined in MSVCRT.lib(cinitexe.obj); second definition ignored LIBC.lib(crt0init.obj) : warning LNK4006: ___xi_z already defined in MSVCRT.lib(cinitexe.obj); second definition ignored LIBC.lib(crt0init.obj) : warning LNK4006: ___xi_a already defined in MSVCRT.lib(cinitexe.obj); second definition ignored LIBC.lib(atox.obj) : warning LNK4006: _atoi already defined in MSVCRT.lib(MSVCR70.dll); second definition ignored MSVCRT.lib(MSVCR70.dll) : warning LNK4006: __strdup already defined in LIBC.lib(strdup.obj); second definition ignored MSVCRT.lib(MSVCR70.dll) : warning LNK4006: __fileno already defined in LIBC.lib(fileno.obj); second definition ignored MSVCRT.lib(MSVCR70.dll) : warning LNK4006: __getpid already defined in LIBC.lib(getpid.obj); second definition ignored Creating library mapserver_i.lib and object mapserver_i.exp LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib 'LIBC' conflicts with use of other libs; use /NODEFAULTLIB:library mapswf.obj : error LNK2019: unresolved external symbol _compress2 referenced in function _bitmap2dbl libmap.dll : fatal error LNK1120: 1 unresolved externals Anybody got any ide what the problem is? I am using Visual Studio .NET (version 7) Regards Sture From manninside at YAHOO.COM Sun Feb 26 05:28:16 2006 From: manninside at YAHOO.COM (Mandar sarlashkar) Date: Sun, 26 Feb 2006 05:28:16 -0800 Subject: Can Not Display Polygone Theme Message-ID: Hi List ! I have setup Mapserver using MapLab. I could display Point and Line Data... But having problem with Polygone Data. The polygone (Shape) doesn't appear in the browser but Point and Line show up... I would really appriciate your suggestions and help... Thanks in advance Bye for Now Mandy --------------------------------- Yahoo! Mail Use Photomail to share photos without annoying attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpicinbono at WORLDONLINE.FR Sun Feb 26 07:27:08 2006 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Sun, 26 Feb 2006 16:27:08 +0100 Subject: Can Not Display Polygone Theme In-Reply-To: <20060226132816.41175.qmail@web50814.mail.yahoo.com> Message-ID: On Sunday 26 February 2006 14:28, Mandar sarlashkar wrote: > Hi List ! > I have setup Mapserver using MapLab. > I could display Point and Line Data... But having problem with Polygone > Data. > The polygone (Shape) doesn't appear in the browser but Point and Line > show up... > I would really appriciate your suggestions and help... > Thanks in advance > Bye for Now > Mandy Your map file might be wrong. Could you post it here ? Blaise From assefa at DMSOLUTIONS.CA Sun Feb 26 09:23:11 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Sun, 26 Feb 2006 12:23:11 -0500 Subject: Mapserver and Ming compilation In-Reply-To: <2814552.1140948144160.JavaMail.adm-moff@moffice6.nsc.no> Message-ID: Hi There, The reason might be that the ming lib was built using a diffrent flag that the ones you are using to build mapserver (possiblity the flag /NODEFAULTLIB:libcd). You can rebuild ming using the same flags or use the binary pacakge put available at : http://hobu.stat.iastate.edu/mapserver/build_output/assefa Please see e-mail for description of the package : http://www.nabble.com/A-Windows-Build-Tree-for-MapServer-t1084132.html Best Regards, Sture Dings?yr wrote: > Hello everybody > > I am compiling Mapserver 4.8.1 on Windows, and have some problem with the Ming library. > > Before i try to compile Ming this is my mapserv.exe -v output: > > MapServer version 4.8.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG > > I downloaded the ming-0.2a from (http://dl.maptools.org/dl/) that is ready to be compiled with Windows and nmake. After running nmake /f makefile.vc i successfully got a libming.lib library. > > But when i try to compile Mapserver with this ming library i get the following (this is the last part of my output): > > if exist c:\mapserver\gdal-1.3.1\gdal.pdb copy c:\mapserver\gdal-1.3.1\gdal.pdb . > 1 file(s) copied. > lib /out:mapserver.lib mapbits.obj maphash.obj mapshape.obj mapxbase.obj mapparser.obj maplexer.obj maptree.obj mapsearch.obj mapstring.obj mapsymbol.obj mapfile.obj maplegend.obj maputil.obj mapscale.obj mapquery.obj maplabel.obj maperror.obj mapprimitive.obj mapproject.obj mapraster.obj cgiutil.obj mapsde.obj mapogr.obj maptime.obj maptemplate.obj mappostgis.obj maplayer.obj mapresample.obj mapwms.obj mapwmslayer.obj mapgml.obj maporaclespatial.obj mapprojhack.obj mapdraw.obj mapgd.obj mapoutput.obj mapswf.obj mapgdal.obj mapwfs.obj mapwfslayer.obj mapows.obj maphttp.obj mappdf.obj mapcontext.obj mapdrawgdal.obj mapjoin.obj mapgraticule.obj mapmygis.obj mapimagemap.obj mapcopy.obj maprasterquery.obj mapogcfilter.obj mapogcsld.obj mapthread.obj mapobject.obj classobject.obj layerobject.obj mapwcs.obj mapgeos.obj strptime.obj mapcpl.obj mapio.obj mappool.obj mapsvg.obj mapregex.obj mappluginlayer.obj c:\mapserver\php-5.1.2\regex\regcomp.obj c:\mapserver\php-5 .1.2\regex\regerror.obj c:\mapserver\php-5.1.2\regex\regexec.obj c:\mapserver\php-5.1.2\regex\regfree.obj > Microsoft (R) Library Manager Version 7.00.9466 > Copyright (C) Microsoft Corporation. All rights reserved. > > link /dll /debug mapbits.obj maphash.obj mapshape.obj mapxbase.obj mapparser.obj maplexer.obj maptree.obj mapsearch.obj mapstring.obj mapsymbol.obj mapfile.obj maplegend.obj maputil.obj mapscale.obj mapquery.obj maplabel.obj maperror.obj mapprimitive.obj mapproject.obj mapraster.obj cgiutil.obj mapsde.obj mapogr.obj maptime.obj maptemplate.obj mappostgis.obj maplayer.obj mapresample.obj mapwms.obj mapwmslayer.obj mapgml.obj maporaclespatial.obj mapprojhack.obj mapdraw.obj mapgd.obj mapoutput.obj mapswf.obj mapgdal.obj mapwfs.obj mapwfslayer.obj mapows.obj maphttp.obj mappdf.obj mapcontext.obj mapdrawgdal.obj mapjoin.obj mapgraticule.obj mapmygis.obj mapimagemap.obj mapcopy.obj maprasterquery.obj mapogcfilter.obj mapogcsld.obj mapthread.obj mapobject.obj classobject.obj layerobject.obj mapwcs.obj mapgeos.obj strptime.obj mapcpl.obj mapio.obj mappool.obj mapsvg.obj mapregex.obj mappluginlayer.obj c:\mapserver\php-5.1.2\regex\regcomp.obj c:\mapserver\php-5.1.2\ regex\regerror.obj c:\mapserver\php-5.1.2\regex\regexec.obj c:\mapserver\php-5.1.2\regex\regfree.obj c:/mapserver/gdwin32/bgd.lib C:/mapserver/gdal-1.3.1/frmts/jpeg/libjpeg/libjpeg.lib C:/mapserver/gdal-1.3.1/frmts/jpeg/libjpeg/libjpeg.lib c:\mapserver\proj-4.4.9/src/proj_i.lib c:\mapserver\gdal-1.3.1/gdal_i.lib c:\mapserver\gdal-1.3.1/gdal_i.lib c:/mapserver/curl-7.15.1/lib/libcurl.lib C:\Mapserver\ming-0.2a/src/libming.lib C:\Mapserver\PDFlib-Lite-6.0.2\libs/pdflib/pdflib.lib "C:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\lib\WSOCK32.LIB" C:\mapserver\postgresql-8.1.3\src/interfaces/libpq/libpqdll.lib /def:mapserver.def /out:libmap.dll /implib:mapserver_i.lib > Microsoft (R) Incremental Linker Version 7.00.9466 > Copyright (C) Microsoft Corporation. All rights reserved. > > LIBC.lib(crt0dat.obj) : error LNK2005: _exit already defined in MSVCRT.lib(MSVCR70.dll) > LIBC.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in MSVCRT.lib(cinitexe.obj) > LIBC.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in MSVCRT.lib(cinitexe.obj) > LIBC.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in MSVCRT.lib(cinitexe.obj) > LIBC.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in MSVCRT.lib(cinitexe.obj) > LIBC.lib(atox.obj) : error LNK2005: _atoi already defined in MSVCRT.lib(MSVCR70.dll) > MSVCRT.lib(MSVCR70.dll) : error LNK2005: __strdup already defined in LIBC.lib(strdup.obj) > MSVCRT.lib(MSVCR70.dll) : error LNK2005: __fileno already defined in LIBC.lib(fileno.obj) > MSVCRT.lib(MSVCR70.dll) : error LNK2005: __getpid already defined in LIBC.lib(getpid.obj) > LIBC.lib(crt0dat.obj) : warning LNK4006: _exit already defined in MSVCRT.lib(MSVCR70.dll); second definition ignored > LIBC.lib(crt0init.obj) : warning LNK4006: ___xc_z already defined in MSVCRT.lib(cinitexe.obj); second definition ignored > LIBC.lib(crt0init.obj) : warning LNK4006: ___xc_a already defined in MSVCRT.lib(cinitexe.obj); second definition ignored > LIBC.lib(crt0init.obj) : warning LNK4006: ___xi_z already defined in MSVCRT.lib(cinitexe.obj); second definition ignored > LIBC.lib(crt0init.obj) : warning LNK4006: ___xi_a already defined in MSVCRT.lib(cinitexe.obj); second definition ignored > LIBC.lib(atox.obj) : warning LNK4006: _atoi already defined in MSVCRT.lib(MSVCR70.dll); second definition ignored > MSVCRT.lib(MSVCR70.dll) : warning LNK4006: __strdup already defined in LIBC.lib(strdup.obj); second definition ignored > MSVCRT.lib(MSVCR70.dll) : warning LNK4006: __fileno already defined in LIBC.lib(fileno.obj); second definition ignored > MSVCRT.lib(MSVCR70.dll) : warning LNK4006: __getpid already defined in LIBC.lib(getpid.obj); second definition ignored > Creating library mapserver_i.lib and object mapserver_i.exp > LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library > LINK : warning LNK4098: defaultlib 'LIBC' conflicts with use of other libs; use /NODEFAULTLIB:library > mapswf.obj : error LNK2019: unresolved external symbol _compress2 referenced in function _bitmap2dbl > libmap.dll : fatal error LNK1120: 1 unresolved externals > > Anybody got any ide what the problem is? > > I am using Visual Studio .NET (version 7) > > > Regards > Sture -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From assefa at DMSOLUTIONS.CA Sun Feb 26 09:55:45 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Sun, 26 Feb 2006 12:55:45 -0500 Subject: MapServer, PostGIS, Subquery with JOIN, WMS GetFeatureInfo / Followup Question In-Reply-To: <5FBC7651-2E9A-461A-A612-FB84A6C3717D@REFRACTIONS.NET> Message-ID: Hi There, From what I can see in the code, here is what you should do : * when doing the GetFeatureInfo use the request parametetr FEATURE_COUNT and set it to be above 1. The default is 1. This would trigger the nquery. * define on your server FEATURE_INFO_MIME_TYPE metadata to something like text/html * do your wms request with info_format=test/html (same mime type that the one defined in the map) This conditions should normally trigger all the logic used when doing regular query with the mapserver cgi (with the template processing). Give it a try and let me know. If It does not work, I can dig more into it. Later, Paul Ramsey wrote: > Nick, > > The answer to this takes either Assefa's input, or a browse of the > source code to find out what the GetFeatureInfo is going. It is > probably doing a 'query' rather than an 'nquery', so having a multi- > item template may make no difference at all. The WMS spec is silent on > what the actual behavior of the GetFeatureInfo should be, so it is very > much an implementation question. > > Paul > > On 24-Feb-06, at 12:59 PM, Nick Floersch wrote: > >> I thought of a way to rephrase/reask the question I am now stuck with. >> >> I was reading through my MapServer book ('Beginning MapServer') on >> Queries and Joins, to see if mr. Kropla had any suggestions. >> >> He wrote that, in doing regular MapServer JOINs, if you want to have >> a JOIN produce one-to-many results, you need to specify a template >> for the JOIN to format each record beyond the first one that is >> returned into the final HTML result. Otherwise, only the first record >> will be returned. >> >> How does this principal apply to the GML generated by GetFeatureInfo >> requests? Obviously we don't need to define a valid HTML template to >> output the data... but how do GetFeatureInfo requests deal with >> one-to-many situations, and does the output format make any >> difference on how it is handled? If I have my GetFeatureInfo request >> return HTML rather than GML, can I use templates and have it handle a >> one-to-many arrangement succesfully? >> >> Thoughts, ideas? >> >> Thanks! >> Nick Floersch >> >> From: Nick Floersch >> >> Hello Paul, Steve, Jeff, and other MapServer users, >> >> Thanks for the replies. >> >> By adding an appropriate 'using unique' clause to my DATA entry in >> the mapfile, I got my layer based on a view to draw. I am glad that >> views can be used. >> >> >> There is a trick that had to be realized. At first, I put in a 'using >> unique the_geom' clause which of course assumed that my geometry >> field was unique. But, because the source of my layer is a view (or a >> subquery in its previous life) which has a left outer join in it, the >> geometry column is far from unique. This is what I thought I wanted - >> to generate a layer which had multiple points at the same locations >> with different attributes... a series of attributes for a given point >> location. In my case, the idea is that the feature point can have >> images associated with it from a table of images. So, a left outer >> join on that table gives me a layer with duplicate points that have >> different values for the image name attribute. >> >> Anyway, initially, after I realized that 'the_geom' is not a unique >> field for me, I switched to using a field that is unique in my view, >> and things came to life. My GetFeatureInfo requests suddenly started >> returning attributes, and life looked good. >> >> But no. Not perfect. What I had in mind has not worked quite right - >> my GetFeatureInfo tool clicks on a point feature, and I get a list of >> attributes, by layer, for each feature under the pointer. Except, not >> all the duplicate point features are returned. The best I can think >> to describe it is this: I have a stack of points all defined in the >> same layer, and I click on the stack, and only the top point in that >> stack is returned. I was hoping it would return data for each of >> those points in the stack. >> >> So, is there some way I can make this work better? Am I totally >> barking up the wrong tree? I have one GetFeatureInfo request that >> needs to return multiple values for the same field of a given >> feature, based on a join... >> >> >> Thanks for any thoughts and help! >> >> Nick Floersch >> >> ------- >> >> If you have the option, please don't use oid, use a primary key (like >> the 'gid' created by shp2pgsql) as your unique key. Primary keys >> already have indexes, oids do not. Primary keys show up automatically >> in a "select *" query, oids do not. oids are >> >> deprecated in pgsql and not available by default in pgsql 8.1. >> >> Basically oid is now a deadend, and we need to start erasing all uses >> of them. >> >> P >> >> ------- >> >> Nick, >> >> I seem to remember a post from one of the postGIS guys awile back the >> you needed to add an entry in the geometry_columns table for the view. >> >> -Steve W. >> >> -------- >> >> This is on my "figure out some day myself" list, too. I'm doing the >> view thing right now, but I'd like to not have to create views for >> everything. >> >> > The only thing I can think of is... does the PostGIS connector require >> >> > the table to have OIDs? It looks that way. >> >> Yes. It needs some unique field in order to randomly access an >> individual rows, it just so happens that OID is a convenient way to >> get that in most cases. You can also specify your own unique column >> name with "using unique " if your view doesn't have an >> OID column but you have some other key you can use. I just pull in >> the OID from the main geometry-containing table when I define the view. >> >> -- >> >> Jeff Hoffmann -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From pramsey at REFRACTIONS.NET Sun Feb 26 09:57:34 2006 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Sun, 26 Feb 2006 09:57:34 -0800 Subject: MapServer, PostGIS, Subquery with JOIN, WMS GetFeatureInfo / Followup Question In-Reply-To: <4401EBA1.5070606@dmsolutions.ca> Message-ID: Nick, And once you've done all that, add some notes to the documentation on the mapserver site, for the next intrepid soul :) Thanks Assefa! Paul On 26-Feb-06, at 9:55 AM, Yewondwossen Assefa wrote: > Hi There, > > From what I can see in the code, here is what you should do : > > * when doing the GetFeatureInfo use the request parametetr > FEATURE_COUNT and set it to be above 1. The default is 1. This > would trigger the nquery. > * define on your server FEATURE_INFO_MIME_TYPE metadata to > something like text/html > * do your wms request with info_format=test/html (same mime type > that the one defined in the map) > > This conditions should normally trigger all the logic used when > doing regular query with the mapserver cgi (with the template > processing). > > Give it a try and let me know. If It does not work, I can dig more > into it. > > Later, > > > Paul Ramsey wrote: >> Nick, >> The answer to this takes either Assefa's input, or a browse of >> the source code to find out what the GetFeatureInfo is going. It >> is probably doing a 'query' rather than an 'nquery', so having a >> multi- item template may make no difference at all. The WMS spec >> is silent on what the actual behavior of the GetFeatureInfo >> should be, so it is very much an implementation question. >> Paul >> On 24-Feb-06, at 12:59 PM, Nick Floersch wrote: >>> I thought of a way to rephrase/reask the question I am now stuck >>> with. >>> >>> I was reading through my MapServer book ('Beginning MapServer') >>> on Queries and Joins, to see if mr. Kropla had any suggestions. >>> >>> He wrote that, in doing regular MapServer JOINs, if you want to >>> have a JOIN produce one-to-many results, you need to specify a >>> template for the JOIN to format each record beyond the first one >>> that is returned into the final HTML result. Otherwise, only the >>> first record will be returned. >>> >>> How does this principal apply to the GML generated by >>> GetFeatureInfo requests? Obviously we don't need to define a >>> valid HTML template to output the data... but how do >>> GetFeatureInfo requests deal with one-to-many situations, and >>> does the output format make any difference on how it is handled? >>> If I have my GetFeatureInfo request return HTML rather than GML, >>> can I use templates and have it handle a one-to-many arrangement >>> succesfully? >>> >>> Thoughts, ideas? >>> >>> Thanks! >>> Nick Floersch >>> >>> From: Nick Floersch >>> >>> Hello Paul, Steve, Jeff, and other MapServer users, >>> >>> Thanks for the replies. >>> >>> By adding an appropriate 'using unique' clause to my DATA entry >>> in the mapfile, I got my layer based on a view to draw. I am >>> glad that views can be used. >>> >>> >>> There is a trick that had to be realized. At first, I put in a >>> 'using unique the_geom' clause which of course assumed that my >>> geometry field was unique. But, because the source of my layer is >>> a view (or a subquery in its previous life) which has a left >>> outer join in it, the geometry column is far from unique. This >>> is what I thought I wanted - to generate a layer which had >>> multiple points at the same locations with different >>> attributes... a series of attributes for a given point location. >>> In my case, the idea is that the feature point can have images >>> associated with it from a table of images. So, a left outer join >>> on that table gives me a layer with duplicate points that have >>> different values for the image name attribute. >>> >>> Anyway, initially, after I realized that 'the_geom' is not a >>> unique field for me, I switched to using a field that is unique >>> in my view, and things came to life. My GetFeatureInfo requests >>> suddenly started returning attributes, and life looked good. >>> >>> But no. Not perfect. What I had in mind has not worked quite >>> right - my GetFeatureInfo tool clicks on a point feature, and I >>> get a list of attributes, by layer, for each feature under the >>> pointer. Except, not all the duplicate point features are >>> returned. The best I can think to describe it is this: I have a >>> stack of points all defined in the same layer, and I click on >>> the stack, and only the top point in that stack is returned. I >>> was hoping it would return data for each of those points in the >>> stack. >>> >>> So, is there some way I can make this work better? Am I totally >>> barking up the wrong tree? I have one GetFeatureInfo request >>> that needs to return multiple values for the same field of a >>> given feature, based on a join... >>> >>> >>> Thanks for any thoughts and help! >>> >>> Nick Floersch >>> >>> ------- >>> >>> If you have the option, please don't use oid, use a primary key >>> (like the 'gid' created by shp2pgsql) as your unique key. >>> Primary keys already have indexes, oids do not. Primary keys >>> show up automatically in a "select *" query, oids do not. oids are >>> >>> deprecated in pgsql and not available by default in pgsql 8.1. >>> >>> Basically oid is now a deadend, and we need to start erasing all >>> uses of them. >>> >>> P >>> >>> ------- >>> >>> Nick, >>> >>> I seem to remember a post from one of the postGIS guys awile >>> back the you needed to add an entry in the geometry_columns >>> table for the view. >>> >>> -Steve W. >>> >>> -------- >>> >>> This is on my "figure out some day myself" list, too. I'm doing >>> the view thing right now, but I'd like to not have to create >>> views for everything. >>> >>> > The only thing I can think of is... does the PostGIS connector >>> require >>> >>> > the table to have OIDs? It looks that way. >>> >>> Yes. It needs some unique field in order to randomly access an >>> individual rows, it just so happens that OID is a convenient way >>> to get that in most cases. You can also specify your own unique >>> column name with "using unique " if your view >>> doesn't have an OID column but you have some other key you can >>> use. I just pull in the OID from the main geometry-containing >>> table when I define the view. >>> >>> -- >>> >>> Jeff Hoffmann > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > From Nick at STONE-ENV.COM Sun Feb 26 10:02:41 2006 From: Nick at STONE-ENV.COM (Nick Floersch) Date: Sun, 26 Feb 2006 13:02:41 -0500 Subject: MapServer, PostGIS, Subquery with JOIN, WMS GetFeatureInfo / Followup Question Message-ID: Hi! Thanks so much for looking into this. I was trying to dig through the code as well. I noticed the "FEATURE_COUNT" parameter, and also a different mode setting ... i.e. mode = MS_SINGLE vs MS_MULTIPLE, but I couldn't really grasp the details enough to know if that had anything to do with my situation. It sounds like you are saying it does. Are you also suggesting that, in theory, if I use text/html as my output format, and have a one-to-many type relationship, as a JOIN might, the HTML generated from the templates will have one body entry per record (as a one-to-many JOIN might)? Assefa, are you the query maintainer? Or query guru? What is your role in all this? Who would I e-mail to discuss/propose changes to the GML output so that the records returned via GML are the same as returned via HTML or Text? Thank you again! I will let you know how this turns out. Nick Floersch -----Original Message----- From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] Sent: Sunday, February 26, 2006 12:56 PM To: Nick Floersch Cc: Paul Ramsey; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer, PostGIS, Subquery with JOIN, WMS GetFeatureInfo / Followup Question Hi There, From what I can see in the code, here is what you should do : * when doing the GetFeatureInfo use the request parametetr FEATURE_COUNT and set it to be above 1. The default is 1. This would trigger the nquery. * define on your server FEATURE_INFO_MIME_TYPE metadata to something like text/html * do your wms request with info_format=test/html (same mime type that the one defined in the map) This conditions should normally trigger all the logic used when doing regular query with the mapserver cgi (with the template processing). Give it a try and let me know. If It does not work, I can dig more into it. Later, Paul Ramsey wrote: > Nick, > > The answer to this takes either Assefa's input, or a browse of the > source code to find out what the GetFeatureInfo is going. It is > probably doing a 'query' rather than an 'nquery', so having a multi- > item template may make no difference at all. The WMS spec is silent > on what the actual behavior of the GetFeatureInfo should be, so it is > very much an implementation question. > > Paul > > On 24-Feb-06, at 12:59 PM, Nick Floersch wrote: > >> I thought of a way to rephrase/reask the question I am now stuck with. >> >> I was reading through my MapServer book ('Beginning MapServer') on >> Queries and Joins, to see if mr. Kropla had any suggestions. >> >> He wrote that, in doing regular MapServer JOINs, if you want to have >> a JOIN produce one-to-many results, you need to specify a template >> for the JOIN to format each record beyond the first one that is >> returned into the final HTML result. Otherwise, only the first >> record will be returned. >> >> How does this principal apply to the GML generated by GetFeatureInfo >> requests? Obviously we don't need to define a valid HTML template to >> output the data... but how do GetFeatureInfo requests deal with >> one-to-many situations, and does the output format make any >> difference on how it is handled? If I have my GetFeatureInfo request >> return HTML rather than GML, can I use templates and have it handle >> a one-to-many arrangement succesfully? >> >> Thoughts, ideas? >> >> Thanks! >> Nick Floersch >> >> From: Nick Floersch >> >> Hello Paul, Steve, Jeff, and other MapServer users, >> >> Thanks for the replies. >> >> By adding an appropriate 'using unique' clause to my DATA entry in >> the mapfile, I got my layer based on a view to draw. I am glad that >> views can be used. >> >> >> There is a trick that had to be realized. At first, I put in a >> 'using unique the_geom' clause which of course assumed that my >> geometry field was unique. But, because the source of my layer is a >> view (or a subquery in its previous life) which has a left outer >> join in it, the geometry column is far from unique. This is what I >> thought I wanted - to generate a layer which had multiple points at >> the same locations with different attributes... a series of >> attributes for a given point location. In my case, the idea is that >> the feature point can have images associated with it from a table of >> images. So, a left outer join on that table gives me a layer with >> duplicate points that have different values for the image name attribute. >> >> Anyway, initially, after I realized that 'the_geom' is not a unique >> field for me, I switched to using a field that is unique in my view, >> and things came to life. My GetFeatureInfo requests suddenly started >> returning attributes, and life looked good. >> >> But no. Not perfect. What I had in mind has not worked quite right - >> my GetFeatureInfo tool clicks on a point feature, and I get a list >> of attributes, by layer, for each feature under the pointer. Except, >> not all the duplicate point features are returned. The best I can >> think to describe it is this: I have a stack of points all defined >> in the same layer, and I click on the stack, and only the top point >> in that stack is returned. I was hoping it would return data for >> each of those points in the stack. >> >> So, is there some way I can make this work better? Am I totally >> barking up the wrong tree? I have one GetFeatureInfo request that >> needs to return multiple values for the same field of a given >> feature, based on a join... >> >> >> Thanks for any thoughts and help! >> >> Nick Floersch >> >> ------- >> >> If you have the option, please don't use oid, use a primary key (like >> the 'gid' created by shp2pgsql) as your unique key. Primary keys >> already have indexes, oids do not. Primary keys show up automatically >> in a "select *" query, oids do not. oids are >> >> deprecated in pgsql and not available by default in pgsql 8.1. >> >> Basically oid is now a deadend, and we need to start erasing all uses >> of them. >> >> P >> >> ------- >> >> Nick, >> >> I seem to remember a post from one of the postGIS guys awile back the >> you needed to add an entry in the geometry_columns table for the view. >> >> -Steve W. >> >> -------- >> >> This is on my "figure out some day myself" list, too. I'm doing the >> view thing right now, but I'd like to not have to create views for >> everything. >> >> > The only thing I can think of is... does the PostGIS connector require >> >> > the table to have OIDs? It looks that way. >> >> Yes. It needs some unique field in order to randomly access an >> individual rows, it just so happens that OID is a convenient way to >> get that in most cases. You can also specify your own unique column >> name with "using unique " if your view doesn't have an >> OID column but you have some other key you can use. I just pull in >> the OID from the main geometry-containing table when I define the view. >> >> -- >> >> Jeff Hoffmann -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From assefa at DMSOLUTIONS.CA Sun Feb 26 10:16:20 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Sun, 26 Feb 2006 13:16:20 -0500 Subject: MapServer, PostGIS, Subquery with JOIN, WMS GetFeatureInfo / Followup Question In-Reply-To: <9CAD6BBFE34A214A8C0597CED6B1BF3BEDAAE7@mail.stone-env.com> Message-ID: Nick Floersch wrote: > Hi! > > Thanks so much for looking into this. I was trying to dig through the > code as well. I noticed the "FEATURE_COUNT" parameter, and also a > different mode setting ... i.e. mode = MS_SINGLE vs MS_MULTIPLE, but I > couldn't really grasp the details enough to know if that had anything to > do with my situation. It sounds like you are saying it does. > > Are you also suggesting that, in theory, if I use text/html as my output > format, and have a one-to-many type relationship, as a JOIN might, the > HTML generated from the templates will have one body entry per record > (as a one-to-many JOIN might)? > > Assefa, are you the query maintainer? Or query guru? What is your role > in all this? Who would I e-mail to discuss/propose changes to the GML > output so that the records returned via GML are the same as returned via > HTML or Text? > Nick From looking into the code, the template processing code seemd to kick in when those circumstances that I described are statisfied. I am not really familiar with the query/template precessing/join logic. I am assuming that if you manage to make things work with regular mapserver query by defining your join and templates properly, It should also work when doing a GetFeatureInfo. Steve Lime would be the autorite on the query stuff and also for the GML output. I am more familiar with the wms code. I think you should adress your propositions/changes to the list. > Thank you again! I will let you know how this turns out. > > Nick Floersch > > -----Original Message----- > From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] > Sent: Sunday, February 26, 2006 12:56 PM > To: Nick Floersch > Cc: Paul Ramsey; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] MapServer, PostGIS, Subquery with > JOIN, WMS GetFeatureInfo / Followup Question > > Hi There, > > From what I can see in the code, here is what you should do : > > * when doing the GetFeatureInfo use the request parametetr > FEATURE_COUNT and set it to be above 1. The default is 1. This would > trigger the nquery. > * define on your server FEATURE_INFO_MIME_TYPE metadata to something > like text/html > * do your wms request with info_format=test/html (same mime type > that the one defined in the map) > > This conditions should normally trigger all the logic used when doing > regular query with the mapserver cgi (with the template processing). > > Give it a try and let me know. If It does not work, I can dig more > into it. > > Later, > > > Paul Ramsey wrote: > >>Nick, >> >>The answer to this takes either Assefa's input, or a browse of the >>source code to find out what the GetFeatureInfo is going. It is >>probably doing a 'query' rather than an 'nquery', so having a multi- >>item template may make no difference at all. The WMS spec is silent >>on what the actual behavior of the GetFeatureInfo should be, so it is > > >>very much an implementation question. >> >>Paul >> >>On 24-Feb-06, at 12:59 PM, Nick Floersch wrote: >> >> >>>I thought of a way to rephrase/reask the question I am now stuck > > with. > >>>I was reading through my MapServer book ('Beginning MapServer') on >>>Queries and Joins, to see if mr. Kropla had any suggestions. >>> >>>He wrote that, in doing regular MapServer JOINs, if you want to have > > >>>a JOIN produce one-to-many results, you need to specify a template >>>for the JOIN to format each record beyond the first one that is >>>returned into the final HTML result. Otherwise, only the first >>>record will be returned. >>> >>>How does this principal apply to the GML generated by GetFeatureInfo > > >>>requests? Obviously we don't need to define a valid HTML template to > > >>>output the data... but how do GetFeatureInfo requests deal with >>>one-to-many situations, and does the output format make any >>>difference on how it is handled? If I have my GetFeatureInfo request > > >>>return HTML rather than GML, can I use templates and have it handle >>>a one-to-many arrangement succesfully? >>> >>>Thoughts, ideas? >>> >>>Thanks! >>>Nick Floersch >>> >>>From: Nick Floersch >>> >>>Hello Paul, Steve, Jeff, and other MapServer users, >>> >>>Thanks for the replies. >>> >>>By adding an appropriate 'using unique' clause to my DATA entry in >>>the mapfile, I got my layer based on a view to draw. I am glad that >>>views can be used. >>> >>> >>>There is a trick that had to be realized. At first, I put in a >>>'using unique the_geom' clause which of course assumed that my >>>geometry field was unique. But, because the source of my layer is a >>>view (or a subquery in its previous life) which has a left outer >>>join in it, the geometry column is far from unique. This is what I >>>thought I wanted - to generate a layer which had multiple points at >>>the same locations with different attributes... a series of >>>attributes for a given point location. In my case, the idea is that >>>the feature point can have images associated with it from a table of > > >>>images. So, a left outer join on that table gives me a layer with >>>duplicate points that have different values for the image name > > attribute. > >>>Anyway, initially, after I realized that 'the_geom' is not a unique >>>field for me, I switched to using a field that is unique in my view, > > >>>and things came to life. My GetFeatureInfo requests suddenly started > > >>>returning attributes, and life looked good. >>> >>>But no. Not perfect. What I had in mind has not worked quite right - > > >>>my GetFeatureInfo tool clicks on a point feature, and I get a list >>>of attributes, by layer, for each feature under the pointer. Except, > > >>>not all the duplicate point features are returned. The best I can >>>think to describe it is this: I have a stack of points all defined >>>in the same layer, and I click on the stack, and only the top point >>>in that stack is returned. I was hoping it would return data for >>>each of those points in the stack. >>> >>>So, is there some way I can make this work better? Am I totally >>>barking up the wrong tree? I have one GetFeatureInfo request that >>>needs to return multiple values for the same field of a given >>>feature, based on a join... >>> >>> >>>Thanks for any thoughts and help! >>> >>>Nick Floersch >>> >>>------- >>> >>>If you have the option, please don't use oid, use a primary key > > (like > >>>the 'gid' created by shp2pgsql) as your unique key. Primary keys >>>already have indexes, oids do not. Primary keys show up > > automatically > >>>in a "select *" query, oids do not. oids are >>> >>>deprecated in pgsql and not available by default in pgsql 8.1. >>> >>>Basically oid is now a deadend, and we need to start erasing all > > uses > >>>of them. >>> >>>P >>> >>>------- >>> >>>Nick, >>> >>>I seem to remember a post from one of the postGIS guys awile back > > the > >>>you needed to add an entry in the geometry_columns table for the > > view. > >>>-Steve W. >>> >>>-------- >>> >>>This is on my "figure out some day myself" list, too. I'm doing the >>>view thing right now, but I'd like to not have to create views for >>>everything. >>> >>> >>>>The only thing I can think of is... does the PostGIS connector > > require > >>>>the table to have OIDs? It looks that way. >>> >>>Yes. It needs some unique field in order to randomly access an >>>individual rows, it just so happens that OID is a convenient way to >>>get that in most cases. You can also specify your own unique column >>>name with "using unique " if your view doesn't have an >>>OID column but you have some other key you can use. I just pull in >>>the OID from the main geometry-containing table when I define the > > view. > >>>-- >>> >>>Jeff Hoffmann > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Nick at STONE-ENV.COM Sun Feb 26 10:46:23 2006 From: Nick at STONE-ENV.COM (Nick Floersch) Date: Sun, 26 Feb 2006 13:46:23 -0500 Subject: MapServer, PostGIS, Subquery with JOIN, WMS GetFeatureInfo / Followup Question - Ah ha Message-ID: Thank you Assefa and Paul. I *think* life has just become good. By setting the FEATURE_COUNT to '2', and submitting my query, it seems to be returning all appropriate information... in both HTML or GML formats. Since what I really need s GML, this is perfect. Now I just need to set my GetFeatureInfo client to put a higher FEATURE_COUNT number into the request string, and life should be sweet. Interestingly, the number given to FEATURE_COUNT seems to have nothing to do with how many features are returned once the query becomes an NQUERY... I set it to '2' for my example, and '7' unique and correct and appropriate records were returned. I'll do more testing over the next few days, and report any further information as I find it. I'll try to find an appropriate place to comment on this in the MapServer wiki manual. Thanks thanks! Nick Floersch -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Yewondwossen Assefa Sent: Sunday, February 26, 2006 1:16 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer, PostGIS, Subquery with JOIN, WMS GetFeatureInfo / Followup Question Nick Floersch wrote: > Hi! > > Thanks so much for looking into this. I was trying to dig through the > code as well. I noticed the "FEATURE_COUNT" parameter, and also a > different mode setting ... i.e. mode = MS_SINGLE vs MS_MULTIPLE, but I > couldn't really grasp the details enough to know if that had anything > to do with my situation. It sounds like you are saying it does. > > Are you also suggesting that, in theory, if I use text/html as my > output format, and have a one-to-many type relationship, as a JOIN > might, the HTML generated from the templates will have one body entry > per record (as a one-to-many JOIN might)? > > Assefa, are you the query maintainer? Or query guru? What is your role > in all this? Who would I e-mail to discuss/propose changes to the GML > output so that the records returned via GML are the same as returned > via HTML or Text? > Nick From looking into the code, the template processing code seemd to kick in when those circumstances that I described are statisfied. I am not really familiar with the query/template precessing/join logic. I am assuming that if you manage to make things work with regular mapserver query by defining your join and templates properly, It should also work when doing a GetFeatureInfo. Steve Lime would be the autorite on the query stuff and also for the GML output. I am more familiar with the wms code. I think you should adress your propositions/changes to the list. > Thank you again! I will let you know how this turns out. > > Nick Floersch > > -----Original Message----- > From: Yewondwossen Assefa [mailto:assefa at dmsolutions.ca] > Sent: Sunday, February 26, 2006 12:56 PM > To: Nick Floersch > Cc: Paul Ramsey; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] MapServer, PostGIS, Subquery with > JOIN, WMS GetFeatureInfo / Followup Question > > Hi There, > > From what I can see in the code, here is what you should do : > > * when doing the GetFeatureInfo use the request parametetr > FEATURE_COUNT and set it to be above 1. The default is 1. This would > trigger the nquery. > * define on your server FEATURE_INFO_MIME_TYPE metadata to > something like text/html > * do your wms request with info_format=test/html (same mime type > that the one defined in the map) > > This conditions should normally trigger all the logic used when > doing regular query with the mapserver cgi (with the template processing). > > Give it a try and let me know. If It does not work, I can dig more > into it. > > Later, > > > Paul Ramsey wrote: > >>Nick, >> >>The answer to this takes either Assefa's input, or a browse of the >>source code to find out what the GetFeatureInfo is going. It is >>probably doing a 'query' rather than an 'nquery', so having a multi- >>item template may make no difference at all. The WMS spec is silent >>on what the actual behavior of the GetFeatureInfo should be, so it is > > >>very much an implementation question. >> >>Paul >> >>On 24-Feb-06, at 12:59 PM, Nick Floersch wrote: >> >> >>>I thought of a way to rephrase/reask the question I am now stuck > > with. > >>>I was reading through my MapServer book ('Beginning MapServer') on >>>Queries and Joins, to see if mr. Kropla had any suggestions. >>> >>>He wrote that, in doing regular MapServer JOINs, if you want to have > > >>>a JOIN produce one-to-many results, you need to specify a template >>>for the JOIN to format each record beyond the first one that is >>>returned into the final HTML result. Otherwise, only the first >>>record will be returned. >>> >>>How does this principal apply to the GML generated by GetFeatureInfo > > >>>requests? Obviously we don't need to define a valid HTML template to > > >>>output the data... but how do GetFeatureInfo requests deal with >>>one-to-many situations, and does the output format make any >>>difference on how it is handled? If I have my GetFeatureInfo request > > >>>return HTML rather than GML, can I use templates and have it handle >>>a one-to-many arrangement succesfully? >>> >>>Thoughts, ideas? >>> >>>Thanks! >>>Nick Floersch >>> >>>From: Nick Floersch >>> >>>Hello Paul, Steve, Jeff, and other MapServer users, >>> >>>Thanks for the replies. >>> >>>By adding an appropriate 'using unique' clause to my DATA entry in >>>the mapfile, I got my layer based on a view to draw. I am glad that >>>views can be used. >>> >>> >>>There is a trick that had to be realized. At first, I put in a 'using >>>unique the_geom' clause which of course assumed that my geometry >>>field was unique. But, because the source of my layer is a view (or a >>>subquery in its previous life) which has a left outer join in it, the >>>geometry column is far from unique. This is what I thought I wanted - >>>to generate a layer which had multiple points at the same locations >>>with different attributes... a series of attributes for a given point >>>location. In my case, the idea is that the feature point can have >>>images associated with it from a table of > > >>>images. So, a left outer join on that table gives me a layer with >>>duplicate points that have different values for the image name > > attribute. > >>>Anyway, initially, after I realized that 'the_geom' is not a unique >>>field for me, I switched to using a field that is unique in my view, > > >>>and things came to life. My GetFeatureInfo requests suddenly started > > >>>returning attributes, and life looked good. >>> >>>But no. Not perfect. What I had in mind has not worked quite right - > > >>>my GetFeatureInfo tool clicks on a point feature, and I get a list >>>of attributes, by layer, for each feature under the pointer. Except, > > >>>not all the duplicate point features are returned. The best I can >>>think to describe it is this: I have a stack of points all defined >>>in the same layer, and I click on the stack, and only the top point >>>in that stack is returned. I was hoping it would return data for >>>each of those points in the stack. >>> >>>So, is there some way I can make this work better? Am I totally >>>barking up the wrong tree? I have one GetFeatureInfo request that >>>needs to return multiple values for the same field of a given >>>feature, based on a join... >>> >>> >>>Thanks for any thoughts and help! >>> >>>Nick Floersch >>> >>>------- >>> >>>If you have the option, please don't use oid, use a primary key > > (like > >>>the 'gid' created by shp2pgsql) as your unique key. Primary keys >>>already have indexes, oids do not. Primary keys show up > > automatically > >>>in a "select *" query, oids do not. oids are >>> >>>deprecated in pgsql and not available by default in pgsql 8.1. >>> >>>Basically oid is now a deadend, and we need to start erasing all > > uses > >>>of them. >>> >>>P >>> >>>------- >>> >>>Nick, >>> >>>I seem to remember a post from one of the postGIS guys awile back > > the > >>>you needed to add an entry in the geometry_columns table for the > > view. > >>>-Steve W. >>> >>>-------- >>> >>>This is on my "figure out some day myself" list, too. I'm doing the >>>view thing right now, but I'd like to not have to create views for >>>everything. >>> >>> >>>>The only thing I can think of is... does the PostGIS connector > > require > >>>>the table to have OIDs? It looks that way. >>> >>>Yes. It needs some unique field in order to randomly access an >>>individual rows, it just so happens that OID is a convenient way to >>>get that in most cases. You can also specify your own unique column >>>name with "using unique " if your view doesn't have an >>>OID column but you have some other key you can use. I just pull in >>>the OID from the main geometry-containing table when I define the > > view. > >>>-- >>> >>>Jeff Hoffmann > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From assefa at DMSOLUTIONS.CA Sun Feb 26 10:57:23 2006 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Sun, 26 Feb 2006 13:57:23 -0500 Subject: MapServer, PostGIS, Subquery with JOIN, WMS GetFeatureInfo / Followup Question - Ah ha In-Reply-To: <9CAD6BBFE34A214A8C0597CED6B1BF3BEDAAE9@mail.stone-env.com> Message-ID: > ..... Interestingly, the number given to FEATURE_COUNT seems > to have nothing to do with how many features are returned once the query > becomes an NQUERY... I set it to '2' for my example, and '7' unique and > correct and appropriate records were returned. I'll do more testing over > the next few days, and report any further information as I find it. > I have entered a bug on this http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1686. Plese enter other problems/bugs when approporaite. Later, -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From lluisgarcia at TECNICS.ORG Mon Feb 27 03:42:01 2006 From: lluisgarcia at TECNICS.ORG (=?iso-8859-1?q?Llu=EDs_Garcia_i_Mestres?=) Date: Mon, 27 Feb 2006 12:42:01 +0100 Subject: symbol size Message-ID: hi list, I'm using mapserver 4.8 in a Debian. I have a mapfile that was working propertly under windows (ms4w) but now I'm not getting the symbol size working. It's allways shown as the default image size. Here is the layer LAYER NAME obres_punts TYPE POINT STATUS ON SYMBOLSCALE 30000 TRANSPARENCY 1000 DATA "/maps/santguim/shp/obres_punts.shp" CLASS STYLE SYMBOL 'obres' MAXSIZE 15 SIZE 5 END END END the symbol is correctly defined in the marker file SYMBOL NAME 'obres' TYPE PIXMAP IMAGE 'obres3.png' END Thanks From candalt at ONLINE.NO Mon Feb 27 07:39:57 2006 From: candalt at ONLINE.NO (=?iso-8859-1?Q?Sture_Dings=F8yr?=) Date: Mon, 27 Feb 2006 16:39:57 +0100 Subject: Mapserver and Ming compilation Message-ID: Hi all I tried to download the binary pacakge that you are working on (http://hobu.stat.iastate.edu/mapserver/build_output/assefa and http://www.nabble.com/A-Windows-Build-Tree-for-MapServer-t1084132.html) and now it is working great. I sucessfully got to compile mapserver with ming support. One note: when i run mapserv.exe -v i get an error saying that oci.dll is missing. This is probably due to the fact that GDAL was compiled with ORACLE support. A rebuild of the GDAL library will probably fix this Regards Sture Hi There, The reason might be that the ming lib was built using a diffrent flag that the ones you are using to build mapserver (possiblity the flag /NODEFAULTLIB:libcd). You can rebuild ming using the same flags or use the binary pacakge put available at : http://hobu.stat.iastate.edu/mapserver/build_output/assefa Please see e-mail for description of the package : http://www.nabble.com/A-Windows-Build-Tree-for-MapServer-t1084132.html Best Regards, Sture Dings?yr wrote: > Hello everybody > > I am compiling Mapserver 4.8.1 on Windows, and have some problem with the Ming library. > > Before i try to compile Ming this is my mapserv.exe -v output: > > MapServer version 4.8.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=JPEG INPUT=POSTGIS > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG > > I downloaded the ming-0.2a from (http://dl.maptools.org/dl/) that is ready to be compiled with Windows and nmake. After running nmake /f makefile.vc i successfully got a libming.lib library. > > But when i try to compile Mapserver with this ming library i get the following (this is the last part of my output): > > if exist c:\mapserver\gdal-1.3.1\gdal.pdb copy c:\mapserver\gdal-1.3.1\gdal.pdb . > 1 file(s) copied. > lib /out:mapserver.lib mapbits.obj maphash.obj mapshape.obj > mapxbase.obj mapparser.obj maplexer.obj maptree.obj mapsearch.obj > mapstring.obj mapsymbol.obj mapfile.obj maplegend.obj maputil.obj > mapscale.obj mapquery.obj maplabel.obj maperror.obj mapprimitive.obj > mapproject.obj mapraster.obj cgiutil.obj mapsde.obj mapogr.obj > maptime.obj maptemplate.obj mappostgis.obj maplayer.obj > mapresample.obj mapwms.obj mapwmslayer.obj mapgml.obj > maporaclespatial.obj mapprojhack.obj mapdraw.obj mapgd.obj > mapoutput.obj mapswf.obj mapgdal.obj mapwfs.obj mapwfslayer.obj > mapows.obj maphttp.obj mappdf.obj mapcontext.obj mapdrawgdal.obj > mapjoin.obj mapgraticule.obj mapmygis.obj mapimagemap.obj mapcopy.obj > maprasterquery.obj mapogcfilter.obj mapogcsld.obj mapthread.obj > mapobject.obj classobject.obj layerobject.obj mapwcs.obj mapgeos.obj > strptime.obj mapcpl.obj mapio.obj mappool.obj mapsvg.obj mapregex.obj > mappluginlayer.obj c:\mapserver\php-5.1.2\regex\regcomp.obj > c:\mapserver\php-5 .1.2\regex\regerror.obj c:\mapserver\php-5.1.2\regex\regexec.obj c:\mapserver\php-5.1.2\regex\regfree.obj > Microsoft (R) Library Manager Version 7.00.9466 Copyright (C) > Microsoft Corporation. All rights reserved. > > link /dll /debug mapbits.obj maphash.obj mapshape.obj mapxbase.obj > mapparser.obj maplexer.obj maptree.obj mapsearch.obj mapstring.obj > mapsymbol.obj mapfile.obj maplegend.obj maputil.obj mapscale.obj > mapquery.obj maplabel.obj maperror.obj mapprimitive.obj > mapproject.obj mapraster.obj cgiutil.obj mapsde.obj mapogr.obj > maptime.obj maptemplate.obj mappostgis.obj maplayer.obj > mapresample.obj mapwms.obj mapwmslayer.obj mapgml.obj > maporaclespatial.obj mapprojhack.obj mapdraw.obj mapgd.obj > mapoutput.obj mapswf.obj mapgdal.obj mapwfs.obj mapwfslayer.obj > mapows.obj maphttp.obj mappdf.obj mapcontext.obj mapdrawgdal.obj > mapjoin.obj mapgraticule.obj mapmygis.obj mapimagemap.obj mapcopy.obj > maprasterquery.obj mapogcfilter.obj mapogcsld.obj mapthread.obj > mapobject.obj classobject.obj layerobject.obj mapwcs.obj mapgeos.obj > strptime.obj mapcpl.obj mapio.obj mappool.obj mapsvg.obj mapregex.obj > mappluginlayer.obj c:\mapserver\php-5.1.2\regex\regcomp.obj > c:\mapserver\php-5.1.2\ regex\regerror.obj c:\mapserver\php-5.1.2\regex\regexec.obj c:\mapserver\php-5.1.2\regex\regfree.obj c:/mapserver/gdwin32/bgd.lib C:/mapserver/gdal-1.3.1/frmts/jpeg/libjpeg/libjpeg.lib C:/mapserver/gdal-1.3.1/frmts/jpeg/libjpeg/libjpeg.lib c:\mapserver\proj-4.4.9/src/proj_i.lib c:\mapserver\gdal-1.3.1/gdal_i.lib c:\mapserver\gdal-1.3.1/gdal_i.lib c:/mapserver/curl-7.15.1/lib/libcurl.lib C:\Mapserver\ming-0.2a/src/libming.lib C:\Mapserver\PDFlib-Lite-6.0.2\libs/pdflib/pdflib.lib "C:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\lib\WSOCK32.LIB" C:\mapserver\postgresql-8.1.3\src/interfaces/libpq/libpqdll.lib /def:mapserver.def /out:libmap.dll /implib:mapserver_i.lib > Microsoft (R) Incremental Linker Version 7.00.9466 Copyright (C) > Microsoft Corporation. All rights reserved. > > LIBC.lib(crt0dat.obj) : error LNK2005: _exit already defined in > MSVCRT.lib(MSVCR70.dll) > LIBC.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in > MSVCRT.lib(cinitexe.obj) > LIBC.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in > MSVCRT.lib(cinitexe.obj) > LIBC.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in > MSVCRT.lib(cinitexe.obj) > LIBC.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in > MSVCRT.lib(cinitexe.obj) > LIBC.lib(atox.obj) : error LNK2005: _atoi already defined in > MSVCRT.lib(MSVCR70.dll) > MSVCRT.lib(MSVCR70.dll) : error LNK2005: __strdup already defined in > LIBC.lib(strdup.obj) > MSVCRT.lib(MSVCR70.dll) : error LNK2005: __fileno already defined in > LIBC.lib(fileno.obj) > MSVCRT.lib(MSVCR70.dll) : error LNK2005: __getpid already defined in > LIBC.lib(getpid.obj) > LIBC.lib(crt0dat.obj) : warning LNK4006: _exit already defined in > MSVCRT.lib(MSVCR70.dll); second definition ignored > LIBC.lib(crt0init.obj) : warning LNK4006: ___xc_z already defined in > MSVCRT.lib(cinitexe.obj); second definition ignored > LIBC.lib(crt0init.obj) : warning LNK4006: ___xc_a already defined in > MSVCRT.lib(cinitexe.obj); second definition ignored > LIBC.lib(crt0init.obj) : warning LNK4006: ___xi_z already defined in > MSVCRT.lib(cinitexe.obj); second definition ignored > LIBC.lib(crt0init.obj) : warning LNK4006: ___xi_a already defined in > MSVCRT.lib(cinitexe.obj); second definition ignored > LIBC.lib(atox.obj) : warning LNK4006: _atoi already defined in > MSVCRT.lib(MSVCR70.dll); second definition ignored > MSVCRT.lib(MSVCR70.dll) : warning LNK4006: __strdup already defined in > LIBC.lib(strdup.obj); second definition ignored > MSVCRT.lib(MSVCR70.dll) : warning LNK4006: __fileno already defined in > LIBC.lib(fileno.obj); second definition ignored > MSVCRT.lib(MSVCR70.dll) : warning LNK4006: __getpid already defined in LIBC.lib(getpid.obj); second definition ignored > Creating library mapserver_i.lib and object mapserver_i.exp LINK : > warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; > use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib 'LIBC' > conflicts with use of other libs; use /NODEFAULTLIB:library mapswf.obj > : error LNK2019: unresolved external symbol _compress2 referenced in > function _bitmap2dbl libmap.dll : fatal error LNK1120: 1 unresolved > externals > > Anybody got any ide what the problem is? > > I am using Visual Studio .NET (version 7) > > > Regards > Sture -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From Debbie.Pagurek at EC.GC.CA Mon Feb 27 07:51:32 2006 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Mon, 27 Feb 2006 10:51:32 -0500 Subject: Context doc Scale dependency support - CVS or current release?? Message-ID: Hi all, Can someone confirm if the new Scale dependency support in context docs is in the current windows build (4.8.1) or if it is only available via CVS version? If it is only available in CVS version - is it possible to get a windows build of this? We'd like to do some testing to make sure the scale dependency in our context documents is working with our Chameleon applications, both CWC2 and regular chameleon. Thanks, D. Pagurek From hjulien at NRCAN.GC.CA Mon Feb 27 10:15:51 2006 From: hjulien at NRCAN.GC.CA (Julien, Heryk) Date: Mon, 27 Feb 2006 13:15:51 -0500 Subject: 24-bit image is rendered in greyscale when using CLASS in LAYER Message-ID: Hi, When I add a class item to my raster layer my 24bit RGB tif is rendered in greyscale. I need the class item in order to generate a legend item in my ogc wms capabilities. In the following bugzilla report a similar problem is flagged as fixed however I am using mapserver 4.5 and 4.8.1 and both versions have the same bug. http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=270 Anyone has an idea of what is going on? Example: LAYER NAME "d1_1960_et_ws" DEBUG ON STATUS ON GROUP "Evapotranspiration" DATA "d1_1960_et_ws.tif" TYPE RASTER PROJECTION "init=epsg:42304" END DUMP TRUE TEMPLATE "tmpl" MINSCALE 1000000 MAXSCALE 1000000000 TOLERANCE 30 METADATA "ows_title" "Annual land evapotranspiration estimate for Canada 1960" "ows_group_title" "Annual land evapotranspiration estimate for Canada" "ows_group_abstract" "Annual land evapotranspiration estimate for Canada" "ows_abstract" "to do..." "ows_keywordlist" "water, evaporation, evapotranspiration, transpiration" "wms_opaque" "1" # "ows_extent" "-101.0542 18.4369 -80.5434 31.5619" "ows_metadataurl_type" "FGDC" "wms_metadataurl_format" "text/html" "ows_metadataurl_href" "http://adaptation.nrcan.gc.ca/" "wms_dataurl_format" "text/plain" "wms_dataurl_href" "http://adaptation.nrcan.gc.ca/" "gml_include_items" "all" END CLASS NAME "Scale" KEYIMAGE "../geo/ResEau/d1_1960_et_wsleg.tif" END END Cheers H?ryk _____________________________ H?ryk Julien Professionel de recherche / Research Officer Ressources naturelles Canada / Natural Resources Canada 490 rue de la Couronne Qu?bec, Qc, G1K 9A9 Canada T?l./Phone (418) 654-2655 T?l?copieur/Fax (418) 654-2615 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Mon Feb 27 10:30:10 2006 From: bartvde at XS4ALL.NL (Bart van den Eijnden (OSGIS)) Date: Mon, 27 Feb 2006 19:30:10 +0100 Subject: Context doc Scale dependency support - CVS or current release?? In-Reply-To: <3F34A5A15450C74C813BA20E31DBB451968DAA@ncrx3.ncr.int.ec.gc.ca> Message-ID: Hi Debbie, it's just in CVS head (4.9). I haven't tested myself yet, but I do plan to test soon. I think you have to contact DMSG to get a new Windows build for PHP/Mapscript. Best regards, Bart Pagurek,Debbie [NCR] wrote: >Hi all, >Can someone confirm if the new Scale dependency support in context docs >is in the current windows build (4.8.1) or if it is only available via >CVS version? > >If it is only available in CVS version - is it possible to get a windows >build of this? We'd like to do some testing to make sure the scale >dependency in our context documents is working with our Chameleon >applications, both CWC2 and regular chameleon. > >Thanks, >D. Pagurek > > > > > -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From warmerdam at POBOX.COM Mon Feb 27 10:36:50 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 27 Feb 2006 13:36:50 -0500 Subject: 24-bit image is rendered in greyscale when using CLASS in LAYER In-Reply-To: <06B403677C41D51194550002A55107D2067E7117@s5-stf1-r1.nrn.nrcan.gc.ca> Message-ID: Julien, Heryk wrote: > Hi, > > When I add a class item to my raster layer my 24bit RGB tif is rendered > in greyscale. I need the class item in order to generate a legend item > in my ogc wms capabilities. In the following bugzilla report a similar > problem is flagged as fixed however I am using mapserver 4.5 and 4.8.1 > and both versions have the same bug. > H?ryk, You are quite sure this is happening with 4.8.1? It shouldn't be. If you can submit a bug report with the minimum mapfile and data required to reproduce the problem I will dig into it. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From Debbie.Pagurek at EC.GC.CA Mon Feb 27 12:32:15 2006 From: Debbie.Pagurek at EC.GC.CA (Pagurek,Debbie [NCR]) Date: Mon, 27 Feb 2006 15:32:15 -0500 Subject: Strange Query Error Message-ID: Tim, I haven't tested this, but I think I might have an answer for you. I found an old post that indicated that the OVF file that points to a Microsoft Access database should contain yourUniqueIdColumn in order to indicate what the primary key or unique field is. I'm curious to know if this works, so please reply to me and the list! Debbie Pagurek -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Pascoe,Tim [Burlington] Sent: Wednesday, February 15, 2006 9:12 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Strange Query Error Sorry for the cross-post, but I'm unsure of where this problem may be occurring. I have a mapserver installation running in IIS, on a Windows2000 machine. A little while ago, I upgraded all the components to: PHP 5.0.5.5 Mapserver 4.6 Mapscript 4.6.1 Chameleon 2.0 GDAL 1.3 I am using OGR to create a virtual layer of points, and then filter this layer using an SLD generated on the fly, based on user input. This all worked perfectly before the upgrade. Everything seems to work fine now, the layers filter properly, and display the way they should. However, if a point is queried, the data returned in the Chameleon query window is for the first record in the recordset returned for the virtual layer, unfiltered, every time; no matter what point is selected. I know of one other person experiencing exactly this behavior, and that installation has the latest versions of all software, with the same problem. Anyone have any ideas? Any help is appreciated, Timothy Pascoe Environment Canada / Environnement Canada Canada Centre for Inland Waters / Centre Canadien des Eaux Int?rieures 867 Lakeshore Road / 867, chemin Lakeshore Burlington, Ontario / Burlington (Ontario) L7R 4A6 Tel/T?l: (905) 336-6239 Fax/T?l?c: (905) 336-4699 E-mail/C. ?lec: tim.pascoe at ec.gc.ca Government of Canada/Gouvernement du Canada This e-mail represents the opinions and views solely held by its author and in no manner may be considered as representing those of his/her employer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From hjulien at NRCAN.GC.CA Mon Feb 27 12:36:07 2006 From: hjulien at NRCAN.GC.CA (Julien, Heryk) Date: Mon, 27 Feb 2006 15:36:07 -0500 Subject: 24-bit image is rendered in greyscale w hen using CLASS in LAYER Message-ID: Hi, I submitted a bug report: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1687 BTW, when I resample my 24bit RGB tif image to 8bit, the raster is displayed correctly. Thanks H?ryk -----Message d'origine----- De?: Frank Warmerdam [mailto:fwarmerdam at gmail.com] De la part de Frank Warmerdam Envoy??: 27 f?vrier 2006 13:37 ??: Julien, Heryk Cc?: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: Re: [UMN_MAPSERVER-USERS] 24-bit image is rendered in greyscale when using CLASS in LAYER Julien, Heryk wrote: > Hi, > > When I add a class item to my raster layer my 24bit RGB tif is rendered > in greyscale. I need the class item in order to generate a legend item > in my ogc wms capabilities. In the following bugzilla report a similar > problem is flagged as fixed however I am using mapserver 4.5 and 4.8.1 > and both versions have the same bug. > H?ryk, You are quite sure this is happening with 4.8.1? It shouldn't be. If you can submit a bug report with the minimum mapfile and data required to reproduce the problem I will dig into it. Best regards, -- ---------------------------------------+------------------------------------ -- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From reh2 at PRODIGY.NET Mon Feb 27 13:05:48 2006 From: reh2 at PRODIGY.NET (Robert Hollingsworth) Date: Mon, 27 Feb 2006 15:05:48 -0600 Subject: direct transfer of text primitives in input file to output? Message-ID: Hello all, from my reading of the mapserver source and from a couple of experiments, it appears that mapserver is not able to open, say, an input source called ROAD_ANNOTATION.SHP, where the shapes in the file are of type TEXT, and directly render them into the output image. I'd be expected instead to construct a Layer around this with LABELITEM, LABELANGLEITEM, LABELSIZEITEM set to agreeable attrs from the DBF file (with the most critical being an attribute containing the actual string value from the shape), LABEL.TYPE = ANNOTATION, then construct a CLASS and LABEL in the Layer so that my text would make it to the output anyway. My issue with this is that I'll be implementing support for a proprietary vector file format as input that contains text primitives, and I'd like all of the placement and style parameters to go straight to the output image as the actual shape, rather than having to duplicate as many as possible of these params in the Mapfile as Label params. So my question is, am I missing something obvious, or is Mapserver simply unwilling to translate text primitives in the input file directly into the output without engaging the LABEL mechanism? Thanks, REH From warmerdam at POBOX.COM Mon Feb 27 13:23:56 2006 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 27 Feb 2006 16:23:56 -0500 Subject: direct transfer of text primitives in input file to output? In-Reply-To: Message-ID: Robert Hollingsworth wrote: > So my question is, am I missing something obvious, or is Mapserver simply > unwilling to translate text primitives in the input file directly into the > output without engaging the LABEL mechanism? Robert, If you populate the shapeObj->text field directly in your reader, it is likely not necessary to have the LABELITEM to select the text column. You pretty much need a class to control rendering though. Another approach might be to implement your support in OGR, and use the OGR "auto styling" support in MapServer. This is used with dgn or mapinfo files to automatically configure and reconfigure a style object from the source file as each feature is read. Let me know if you want more details on this approach. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From ltrevino at GPOBSI.COM.MX Mon Feb 27 17:12:49 2006 From: ltrevino at GPOBSI.COM.MX (Luis Trevi=?ISO-8859-1?Q?=F1o?=) Date: Mon, 27 Feb 2006 19:12:49 -0600 Subject: How to avoid the 'saw' like look on a line layer Message-ID: Hi, I'm using a line layer to draw the streets on the map, but these lines appear with a "saw" look. How can mapserver draw "straight" lines and avoid the "saw" look?. I'm using a filled circle symbol to draw the lines. What do I have to do?. Thanks, Luis From frequens at GMAIL.COM Mon Feb 27 17:15:03 2006 From: frequens at GMAIL.COM (frequens) Date: Tue, 28 Feb 2006 02:15:03 +0100 Subject: WFS layer query in php mapscript Message-ID: Hi all, an unresolved story from two months ago... Mapserver and php-mapscript both 4.8.1 I have a Mapserver WFS provided layer, where a typical feature in the provided GML looks like this: 459130.000000,125350.000000 59130.000000,125350.000000 459130.000000,125350.000000 3 The layer displays fine, I am also able to label it (using the ms:XXX_ID), but not gml:id (Any idea how to do this?) The query below runs fine, returns a correct querymap and correct number of results (single or many). $queryObj = $map->queryByPoint( $ptClicked, MS_MULTIPLE,-1 ); $resultlayer = $map -> getLayerByName ('xxxx'); $no = $resultlayer -> getNumResults(); Yet I can not get hold on any of the attributes (gml:id nor ms:XXX_ID). $theresult = $resultlayer ->getResult(0)->{shapeindex}; understandably returns Notice: Use of undefined constant shapeindex - assumed 'shapeindex' in /srv/www/htdocs/web/trywfs.php on line 99 and the order number of the feature in the GML. The template in the map file is a 'dummy' one. Any idea how to get gml:id or ms:XXX_ID into a variable would be appreciated... BR frequens From ltrevino at GPOBSI.COM.MX Mon Feb 27 19:49:24 2006 From: ltrevino at GPOBSI.COM.MX (Luis Trevi=?ISO-8859-1?Q?=F1o?=) Date: Mon, 27 Feb 2006 21:49:24 -0600 Subject: jBox setcursor() method Message-ID: Hi, I'm using jBox and I'd like to handle de type of cursor that is showed over the applet area. Depending on the zoom selection from the user I call a javascript function in order to call the boxon(),boxoff() or dragon() method and the setcursor(string) method but I get a: "java:lang.Exception;setCursor{0}:this method does not exists". I call the setcursor() like: