From cheung.jackey at GMAIL.COM Sun Apr 1 18:15:09 2007 From: cheung.jackey at GMAIL.COM (Jackey Cheung) Date: Mon, 2 Apr 2007 09:15:09 +0800 Subject: Multiple FeatureTypeStyle in a UserStyle Message-ID: Greetings! I'm try the SLD on ms4w 4.10 now, and got a problem. I've put 2 blocks in a userstyle: test #666666 7 #FFFFFF 4 But it seems that MapServer only draws the second FeatureTypeStyle only. Why's that? From IANT at NAPIER.GOVT.NZ Sun Apr 1 19:35:17 2007 From: IANT at NAPIER.GOVT.NZ (Ian Tidy) Date: Mon, 2 Apr 2007 14:35:17 +1200 Subject: Putting data over images Message-ID: Hi All, I am trying to place my query results over the map image in a print template and for the most part this works great, except with IE. IE by default doesn't print table backgrounds, is there any way I can convert the table into an image? I am running MapServer 4.6 on an Ubuntu 6.06LTS Server, and PHP 5. Cheers Ian ______________________ Ian Tidy GIS Administrator Works Asset Department Napier City Council Hastings St, Private Bag 6010, Napier, New Zealand Phone +64-6-835-7579 Ext. 8115 Fax +64-6-834-4195 mailto:iant at napier.govt.nz http://www.napier.govt.nz MapServer: http://www.napier.govt.nz/index.php?cid=napier/na_maps_con&pda=1 ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ##################################################################################### ###################################################################### Attention: This e-mail message and accompanying data may contain information that is confidential and subject to legal privilege. Any information provided is given in good faith. However unless specifically stated to the contrary, Napier City Council accepts no liability for the content of this e-mail or for the consequences of any action taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient, you are notified that any use, dissemination, distribution or copying of this message or data is prohibited. If you received this e-mail message in error, please notify us immediately and erase all copies of this message and attachments. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From frezzz_54 at YAHOO.COM Sun Apr 1 21:03:53 2007 From: frezzz_54 at YAHOO.COM (theresia freska) Date: Sun, 1 Apr 2007 21:03:53 -0700 Subject: reference map problem Message-ID: Hi, I have a question about reference map. I've searched the archive and found one from Ian Tidy. It works well, but I'd like to have the box smaller. I tried to change the divisor value to a bigger value, so that the box hopefully will get smaller. $mapext_x = ($map->extent->maxx - $map->extent->minx) / 2; $mapext_y = ($map->extent->maxy - $map->extent->miny) / 2; And it kinds of strange because it is only smaller when I click on the four corner of my reference map. When I click on the middle left/right/up/bottom, it gets bigger as if I don't change the divisor value. What I want to have is actually a box that can adapt, smaller or bigger, to the zoom state. Plus, another question. I have set my main map and reference map in the same extent coordinates and units. I've checked the right coordinates using ogrinfo. I also make sure that both width and height are equal. But the box is missing one side at the bottom. Well, i can handle it by changing the reference map extent. I'd like to have some explanations on this. Maybe i miss a point or two. Thank you. --------------------------------- We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at OSGIS.NL Sun Apr 1 23:02:10 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Mon, 2 Apr 2007 08:02:10 +0200 Subject: Multiple FeatureTypeStyle in a UserStyle Message-ID: Why not use 2 rules inside of the same FeatureTypeStyle? That should work. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Jackey Cheung Naar: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Multiple FeatureTypeStyle in a UserStyle Datum: 01/04/07 23:25 > Greetings! > > I'm try the SLD on ms4w 4.10 now, and got a problem. > > I've put 2 <FeatureTypeStyle> blocks in a userstyle: > > <NamedLayer> > <Name>test</Name> > <UserStyle> > <FeatureTypeStyle> > <Rule> > <LineSymbolizer> > <Stroke> > <CssParameter name="stroke">#666666</CssParameter> > <CssParameter name="stroke-width">7</CssParameter> > </Stroke> > </LineSymbolizer> > </Rule> > </FeatureTypeStyle> > <FeatureTypeStyle> > <Rule> > <LineSymbolizer> > <Stroke> > <CssParameter name="stroke">#FFFFFF</CssParameter> > <CssParameter name="stroke-width">4</CssParameter> > </Stroke> > </LineSymbolizer> > </Rule> > </FeatureTypeStyle> > </UserStyle> > </NamedLayer> > </StyledLayerDescriptor> > > But it seems that MapServer only draws the second FeatureTypeStyle only. > > Why's that? > > From watry at STEAM.COAPS.FSU.EDU Mon Apr 2 04:14:50 2007 From: watry at STEAM.COAPS.FSU.EDU (Gary Watry) Date: Mon, 2 Apr 2007 07:14:50 -0400 Subject: Hatching a polygon Message-ID: I know how to hatch a polygon, but what I want to do is 1. if I create a polygon fill using in the symbol.sym file # Cross Hatch SYMBOL NAME "hatch" TYPE HATCH END and in the mapfile STYLE SYMBOL 'hatch' COLOR 255 0 0 OUTLINECOLOR 0 0 0 ANGLE 45 SIZE 10 WIDTH 3 END How do I make the hatch so I can see the layer underneath the polygon instead of the white color between the hatch lines?? 2 Is it possible to make a polygon fill semi-transparent so you can see the layer underneath the polygon through the fill?? -- ---------------------------------------------------- The information transmitted is intended solely for the person or entity for which it is addressed and may contain confidential and/or privileged information. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this email in error, please contact the sender and delete the material from your computer. ---------------------------------------------------- Gary L. Watry GIS Coordinator Center for Ocean-Atmospheric Prediction Studies FSU / COAPS Johnson Building, RM 231 2035 East Paul Dirac Drive Tallahassee, Florida 32306-2840 Phone (850) 645-7457 E-Mail: watry at coaps.fsu.edu ------------------------------------------------------ From gregor at HOSTGIS.COM Mon Apr 2 06:10:08 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Mon, 2 Apr 2007 07:10:08 -0600 Subject: Hatching a polygon In-Reply-To: <4610E5AA.8040901@steam.coaps.fsu.edu> Message-ID: Gary Watry wrote: > I know how to hatch a polygon, > How do I make the hatch so I can see the layer underneath the polygon > instead of the white color between the hatch lines?? Try setting the color or outlinecolor to -1 -1 -1 and see whether that does what you wanted. > 2 Is it possible to make a polygon fill semi-transparent so you can see > the layer underneath the polygon through the fill?? Nope. The transparency parameter in the LAYER object is the closest thing that exists. Note that the name is a bit of a misnomer, since it sets the *opacity* and not the *transparency* of the layer. From gerry.creager at TAMU.EDU Mon Apr 2 07:21:34 2007 From: gerry.creager at TAMU.EDU (Gerry Creager) Date: Mon, 2 Apr 2007 09:21:34 -0500 Subject: Hatching a polygon In-Reply-To: <4610E5AA.8040901@steam.coaps.fsu.edu> Message-ID: The method I've used is to have 2 polygon layers for the hatched polygon. The first created is the hatched or filled poly. Then, another, image, layer is written. Finally, I redisplay the polygon *outline* (with no fill) over the image. Hope this helps. Gerry Gary Watry wrote: > I know how to hatch a polygon, > but what I want to do is > 1. if I create a polygon fill using > > in the symbol.sym file > > # Cross Hatch > SYMBOL > NAME "hatch" > TYPE HATCH > END > > and in the mapfile > > STYLE > SYMBOL 'hatch' > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > ANGLE 45 > SIZE 10 > WIDTH 3 > END > > How do I make the hatch so I can see the layer underneath the polygon > instead of the white color between the hatch lines?? > > 2 Is it possible to make a polygon fill semi-transparent so you can see > the layer underneath the polygon through the fill?? > -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.862.3983 Office: 1700 Research Parkway Ste 160, TAMU, College Station, TX 77843 From Jacob.Delfos at MAUNSELL.COM Mon Apr 2 18:01:25 2007 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Tue, 3 Apr 2007 09:01:25 +0800 Subject: Hatching a polygon In-Reply-To: <4610E5AA.8040901@steam.coaps.fsu.edu> Message-ID: Hi Gary, I noticed with hatching (and other polygon fills) that you have to specify: TRANSPARENCY 100 # this means fully opaque If you don't, you will get a white fill underneath your hatch. It doesn't make sense (maybe I missed something), but at least it's easy to get around. Hope this helps, Jacob > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gary Watry > Sent: 2 April 2007 19:15 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Hatching a polygon > > I know how to hatch a polygon, > but what I want to do is > 1. if I create a polygon fill using > > in the symbol.sym file > > # Cross Hatch > SYMBOL > NAME "hatch" > TYPE HATCH > END > > and in the mapfile > > STYLE > SYMBOL 'hatch' > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > ANGLE 45 > SIZE 10 > WIDTH 3 > END > > How do I make the hatch so I can see the layer underneath the polygon > instead of the white color between the hatch lines?? > > 2 Is it possible to make a polygon fill semi-transparent so > you can see > the layer underneath the polygon through the fill?? > > -- > ---------------------------------------------------- > The information transmitted is intended solely for the person > or entity for which it is addressed and may contain > confidential and/or privileged information. Any review, > retransmission, dissemination or other use of, or taking of > any action in reliance upon this information by persons or > entities other than the intended recipient is prohibited. If > you received this email in error, please contact the sender > and delete the material from your computer. > > ---------------------------------------------------- > Gary L. Watry > GIS Coordinator > Center for Ocean-Atmospheric Prediction Studies > FSU / COAPS > Johnson Building, RM 231 > 2035 East Paul Dirac Drive > Tallahassee, Florida 32306-2840 > > Phone (850) 645-7457 > > E-Mail: watry at coaps.fsu.edu > > ------------------------------------------------------ > This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. From Jacob.Delfos at MAUNSELL.COM Mon Apr 2 18:52:59 2007 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Tue, 3 Apr 2007 09:52:59 +0800 Subject: Tiled datasets with OGR In-Reply-To: <460BFEC4.5080905@mapgears.com> Message-ID: Roland / Daniel, Sorry for adding to this a bit late. The STYLEITEM AUTO isn't what crashes in the tileindex. The problem is that the OGR Tileindex itself doesn't work properly in php_mapscript (which is what I believe Roland uses, if I recall correctly). I lodged a bug for this a while ago: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1700 OGR Tileindex works fine in the CGI, but not in php_mapscript (since at least version 4.4). Regards, Jacob > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Daniel Morissette > Sent: 30 March 2007 02:01 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Tiled datasets with OGR > > Um... not sure why the STYLEITEM AUTO would not work with a tiled OGR > layer, but anyway, a workaround for this issue would be to > convert your > tiled TAB files to a Seamless TAB Dataset using MapInfo. > Seamless Tables > are similar to tiled dataset, but the tiling is handled in > the MapInfo > driver inside OGR so MapServer sees the seamless table as a single > MapInfo file. Then you'd just point to the seamless table > (.tab file) in > the CONNECTION string and STYLEITEM AUTO should work. > > Daniel > > > Roland Martin wrote: > > Hi, > > > > I'm having a bit of trouble with a tiled dataset - I > suspect there's a > > number of things at play, so I'll phrase this as a question! > > > > Is it possible to tile MapInfo TABs; display them as a > single layer in > > MapServer; and still use 'STYLEITEM AUTO'? > > > > I've managed the first 2 without any problems, by storing > the tiles as a > > shapefile, but the styling wasn't working ("not available for this > > datasource" or somesuch). I then tried using a TAB as the > TILEINDEX, but > > that didn't seem to be working at all (not clear if this > was a MapServer > > or OGR problem though). > > > > So, am I missing something here, or is it not possible? > > > > Thanks for your help, > > Roland. > > > -- > Daniel Morissette > http://www.mapgears.com/ > This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. From matthew at MAPSOLUTIONS.COM.AU Tue Apr 3 00:51:44 2007 From: matthew at MAPSOLUTIONS.COM.AU (Matthew Lock) Date: Tue, 3 Apr 2007 00:51:44 -0700 Subject: map extent In-Reply-To: Message-ID: Why don't you just add all the layers into the map and use zoom layering to decide which layer the user sees based on the current extent? boice tomlin wrote: > > > Hello, > > I have a few different shape files at different resolutions that I > want to load based on the extent of the map the user is viewing. > > So if they are viewing the entire country for instance I want to load > in my low resolution data set. > > The problem I'm having is that if a user zooms in on the map I have > to create the map object using the map file which specifies which > shapefile I am using, then use phpmapscript to zoom in, and then > retrieve the extent using phpmapscript functions. This obviously > doesn't help me load in the appropriate shapefile because I have to > create the map object in order to do any of the previous steps. A > bit of a paradox - load in the shapefile only to find out that I > might have wanted to use a different shapefile... > > So the short question is how can I zoom in and get the extent before > loading the shapefile? > > thanks, > > boice > > > //////////////////////////// > Run Skip > http://runskip.com/ > > boice tomlin > > boice at runskip.com > > 503-528-6204 > > > > -- View this message in context: http://www.nabble.com/map-extent-tf3495584.html#a9805206 Sent from the Mapserver - User mailing list archive at Nabble.com. From peter_sykora at GMX.AT Tue Apr 3 01:21:01 2007 From: peter_sykora at GMX.AT (Peter Sykora) Date: Tue, 3 Apr 2007 03:21:01 -0500 Subject: Problem: ANGLEITEM and TRANSPARENT Message-ID: >I didn't follow the previous posts in this thread, but just in case I >thought I'd ask: did you try setting TRANSPARENCY ALPHA in your layer? Hi Daniel, thanks for your hint, but it had no effect on my results. I think the TRANSPARENCY ALPHA is useful to create transparent 24 bit images, but I can?t image that it has any relevance with this specific problem when images are rotated. Again, the transparency works fine when symbols are not rotated, so the problem must be somewhere else. Peter From jbw2003 at EARTHLINK.NET Tue Apr 3 09:11:48 2007 From: jbw2003 at EARTHLINK.NET (Jim White) Date: Tue, 3 Apr 2007 12:11:48 -0400 Subject: Hatching a polygon Message-ID: We use cross-hatched polygons on our site that display the underlying map behind the cross-hatch. Hope this part of our mapfile is useful. OUTPUTFORMAT NAME mypng DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE rgba EXTENSION "png" TRANSPARENT ON END SYMBOL NAME 'hatch-lines' TYPE HATCH END TYPE POLYGON TRANSPARENCY alpha CLASS STYLE SYMBOL 'hatch-lines' COLOR 255 0 0 ANGLE 60 SIZE 10 WIDTH 2 END STYLE WIDTH 2 OUTLINECOLOR 255 0 0 END END James White Programmer Biodiversity and Spatial Information Center North Carolina State University www.basic.ncsu.edu From jdege at KORTERRA.COM Tue Apr 3 12:02:45 2007 From: jdege at KORTERRA.COM (Jeff Dege) Date: Tue, 3 Apr 2007 14:02:45 -0500 Subject: background color hashing? Message-ID: I have a mapfile. In the map section, I have: IMAGETYPE GIF IMAGECOLOR 191 191 255 In the first layer, I have: LAYER TYPE POLYGON CLASS STYLE COLOR 255 255 255 OUTLINECOLOR 0 0 0 END END END I use shp2img, to generate a GIF. On the GIF, the areas not covered by my polygons are colored the light blue that I want. But the areas that are covered by my polygons aren't white, they're a blue-and-white check. For the life of me, I can't see what might be causing this. From mikesaunt at GMAIL.COM Tue Apr 3 13:38:35 2007 From: mikesaunt at GMAIL.COM (Mike Saunt) Date: Tue, 3 Apr 2007 21:38:35 +0100 Subject: Possible MapServer development work Message-ID: Hi Who would I contact if I was possibly considering funding some development work on MapServer? I'm looking possibly at what is below re multi item selecting and also another thing where we need negative tolerance when querying so that we can perform queries where 'touching' polygons (i.e. a single face) won't be returned from a query? Feedback appreciated. Cheers Mike ---------- Forwarded message ---------- From: Mike Saunt Date: 26-Mar-2007 22:53 Subject: Selecting and then querying using multiple features To: MAPSERVER USERS Hi all In essence this is what I'm trying to achieve but I'm trying to work out the best way of doing it - I want to use the CGI as it is powerful, very stable and extremley fast. I've had great success with MapServer before where it can perform queries against tens of layers in under 2 seconds when having one feature to select against. Here is the problem... I want a user to be able to interactively from multiple clicks on a map to select features and then they can issue a query taking all selected features and doing feature intersect queries against multiple other layers. Pretty simple! I'm fine with writing wrapper code to allow the user to select a feature at a point - MODE=QUERY - and then find and store the feature id's for subsequent calls to the CGI Is there a way to be able to pass multiple feature id's to MapServer to highlight as selected in a maps? Then in the same fashion can I pass multiple feature id's (acting as the selection again) to then be used in a NQUERY to find which features from other layers intersect. Should I be looking at using a QUERYFILE? Is this possible - I'm sure it is as everything else I've wanted to do the CGI seems to be able to do it! Thanks in advance Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcelito20 at GMAIL.COM Tue Apr 3 16:45:12 2007 From: marcelito20 at GMAIL.COM (Marcelo Carrillo) Date: Tue, 3 Apr 2007 18:45:12 -0500 Subject: Changing Style of Symbols on the fly Message-ID: Hi guys, I am requesting any help changing the style of symbols in a dynamic layer. Im using MapScript on Csharp, heres a sample of my test code. Im trying that even points uses one style and odd ones uses another. Mapserver presents all points with just one of the styles... Is there any other way how I can do what I'm trying?? foreach (pointObj point in RealPathPoints) { if (point != null) { LineNodos.add(point); double x = point.x; double y = point.y; styleObj styleNodos = LayerNodos.getClass (0).getStyle(0); if (counter % 2 == 0) { styleNodos.symbol = 19; styleNodos.symbolname = "on.gif"; if (counter == RealPathPoints.Count) { point.draw(m_obj, LayerNodos, i_obj, 0, CarId); } else { point.draw(m_obj, LayerNodos, i_obj, 0, counter.ToString()); } } else { styleNodos.symbol = 18; styleNodos.symbolname = "off.gif"; if (counter == RealPathPoints.Count) { point.draw(m_obj, LayerNodos, i_obj, 0, CarId); } else { point.draw(m_obj, LayerNodos, i_obj, 0, counter.ToString()); } } point.setXY(x, y, 0); } counter++; } counter = 1; ShapeNodos.add(LineNodos); ShapeNodos.draw(m_obj, LayerNodos, i_obj); LayerNodos.draw(m_obj, i_obj); Any hel will be appreciated. Best Regards, Marcelo Carrillo -------------- next part -------------- An HTML attachment was scrubbed... URL: From hal at MOBILEGEOGRAPHICS.COM Tue Apr 3 17:59:24 2007 From: hal at MOBILEGEOGRAPHICS.COM (Hal Mueller) Date: Tue, 3 Apr 2007 17:59:24 -0700 Subject: Changing Style of Symbols on the fly In-Reply-To: <7b632da70704031645y23cc02e6yadcc488c3a8022c5@mail.gmail.com> Message-ID: In your point.draw call, use the ClassIndex parameter. Set it to a different value (not 0) for each type of symbol you need, and define different plot styles appropriately within your LAYER definition in your .MAP file. > point.draw(m_obj, >LayerNodos, i_obj, 0, CarId); -- Hal Mueller hal at mobilegeographics.com Mobile Geographics LLC http://www.mobilegeographics.com/ From richard.greenwood at GMAIL.COM Tue Apr 3 20:10:20 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Tue, 3 Apr 2007 21:10:20 -0600 Subject: Possible MapServer development work In-Reply-To: <5a9686e80704031338w246004fp420dad9f42142ce5@mail.gmail.com> Message-ID: On 4/3/07, Mike Saunt wrote: > I want a user to be able to interactively from multiple clicks on a map to > select features and then they can issue a query taking all selected features > and doing feature intersect queries against multiple other layers. Pretty > simple! You could do an asynchronous call to mapserv for each click and get the each feature ID back, and store it in a JavaScrit array. > I'm fine with writing wrapper code to allow the user to select a feature at > a point - MODE=QUERY - and then find and store the feature id's for > subsequent calls to the CGI > > Is there a way to be able to pass multiple feature id's to MapServer to > highlight as selected in a maps? Yes, with mode=itemnquery Then in the same fashion can I pass > multiple feature id's (acting as the selection again) to then be used in a > NQUERY to find which features from other layers intersect. If I was doing it, and if I could use postgis, I would pass the parameters to a php page, run the query in postgis, get the feature IDs back, and then do another itemnquery with mapserv to graphically render it. This would not require mapscript, but would require php or some other server-side language that can connect to postgis. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From matt.pettis at THOMSON.COM Tue Apr 3 20:14:18 2007 From: matt.pettis at THOMSON.COM (Matt Pettis) Date: Tue, 3 Apr 2007 22:14:18 -0500 Subject: php/mapscript and client-side imagemaps Message-ID: Hi, I'm trying to get generate a client side imagemap (the ...) coordinates and inserting the text using just php/mapscript (avoiding using the templating methods found at http://mapserver.gis.umn.edu/docs/howto/imagemaps because I want as pure a php solution as i can get). I found the wiki entry for this (http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?ImageMap), and followed its instructions. In particular, the following lines did not generate what I thought: $imgmap = ms_newMapObj( "C:\\ms4w\\Apache\\htdocs\\postgis\\imgmap.map" ); $imgmapimg = $imgmap->draw(); $imgmapurl = $imgmapimg->saveWebImage(MS_IMAGEMAP,1,1,0); I couldn't find documentation on saveWebImage, but I thought it would generate the text i would need to include in a section for my webpage. Instead, what was generated was a .png file. Should this be usable as an image map, or did I get this in error (the page rendered just fine). Can someone help me fix this? Ultimately, I am looking to emulate the great ease from the templating solution, but just in php. I am rendering the counties of MN as polygons and would like to request a different URL based on which county is clicked. Anyone have a solution/hints along this direction? Thanks, Matt From frezzz_54 at YAHOO.COM Wed Apr 4 05:38:21 2007 From: frezzz_54 at YAHOO.COM (theresia freska) Date: Wed, 4 Apr 2007 05:38:21 -0700 Subject: MapServer-list: calculating extents with mapscript In-Reply-To: Message-ID: Thank you so much for your quick response. Sorry, I've just got back and read your reply. And yes, that's exactly what i need. I'll give it a try and let you know if I can make it or not. Gail Long wrote: Did you get what you needed? -- Things are only difficult while you don't understand them. >From: theresia freska >To: Gail Long >Subject: MapServer-list: calculating extents with mapscript >Date: Sun, 1 Apr 2007 20:36:04 -0700 (PDT) > >First of all, sorry to send you a private message. But I can't seem to get >an answer from MapServer's mailing list. I've been posting this question >since about 2 weeks or more in 2 different posts and still no response yet. >I searched the archive and found out that you used to have the same >question, that is how to calculate extents for some features. I just >wonder, did you happen to solve that? Because I didn't find any reply to >your post. > Currently, i'm using the PostGIS SQL statement to get the bounding box >of those features and it works well. As to MapScript, my idea is to have >four arrays to store the minx, miny, maxx, and maxy values. Then, i'll have >to find the minimum value of minx miny and the maximum value of maxx maxy >to define the bounding box. What do you think? > Again, sorry to bother you. But many thanks in advance for your kind >response. > > NB: this header just to remind you :D > > Subject: From: Gail Long <[log in to unmask]> >Reply-To: Gail Long <[log in to unmask]> >Date: Fri, 23 Dec 2005 18:07:57 -0800 > > >--------------------------------- >Expecting? Get great news right away with email Auto-Check. >Try the Yahoo! Mail Beta. _________________________________________________________________ Download Messenger. Join the i?m Initiative. Help make a difference today. http://im.live.com/messenger/im/home/?source=TAGHM_APR07 --------------------------------- We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lm at GEOSPHERE.FR Wed Apr 4 09:00:52 2007 From: lm at GEOSPHERE.FR (=?iso-8859-1?Q?Lo=EFc_MAZE?=) Date: Wed, 4 Apr 2007 18:00:52 +0200 Subject: [PHPMapScript] Pb to set the angle property of a LabelObj Message-ID: Hi all, I have some troubles with the current version of PHPMapScript. My problem is very simple : I would like to set the "ANGLE" property of a LabelObj with the value "FOLLOW". I have searched a way to do a such thing but it was unsuccessful. The only thing I have found is how to set this property with the value "AUTO" (with the following code : $oLabel->set("autoangle", MS_AUTO); ). For information, I use the latest version of MapServer and PHPMapScript. Any information in this regard will be really appreciated. Many thanks in advance, Lo?c -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at MAPGEARS.COM Wed Apr 4 10:15:16 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 4 Apr 2007 13:15:16 -0400 Subject: [PHPMapScript] Pb to set the angle property of a LabelObj In-Reply-To: <00de01c776d2$6bcd60e0$0c01a8c0@OLYMPE.local> Message-ID: Lo?c MAZE wrote: > Hi all, > > I have some troubles with the current version of PHPMapScript. My > problem is very simple : I would like to set the "ANGLE" property of a > LabelObj with the value "FOLLOW". I have searched a way to do a such > thing but it was unsuccessful. The only thing I have found is how to set > this property with the value "AUTO" (with the following code : > $oLabel->set("autoangle", MS_AUTO); ). > Um, it seems that the MS_FOLLOW constant is missing in PHP MapScript. I have filed a bug about this and added the constant in both the dev version (future 5.0) and in the 4.10 branch (will be in 4.10.2): http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=2058 As a workaround until you can upgrade, you should be able to use the following: $oLabel->set("autoangle", MS_AUTO+2); Daniel -- Daniel Morissette http://www.mapgears.com/ From dmorissette at MAPGEARS.COM Wed Apr 4 10:29:47 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 4 Apr 2007 13:29:47 -0400 Subject: php/mapscript and client-side imagemaps In-Reply-To: <89C159F45B13A24682D98BDEF58E451F0D7765DB@TLRUSMNEAGMBX28.ERF.THOMSON.COM> Message-ID: Matt Pettis wrote: > Hi, > > I'm trying to get generate a client side imagemap (the ...) coordinates and inserting the text using just php/mapscript (avoiding using the templating methods found at http://mapserver.gis.umn.edu/docs/howto/imagemaps because I want as pure a php solution as i can get). I found the wiki entry for this (http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?ImageMap), and followed its instructions. In particular, the following lines did not generate what I thought: > > $imgmap = ms_newMapObj( "C:\\ms4w\\Apache\\htdocs\\postgis\\imgmap.map" ); > $imgmapimg = $imgmap->draw(); > $imgmapurl = $imgmapimg->saveWebImage(MS_IMAGEMAP,1,1,0); > > I couldn't find documentation on saveWebImage, but I thought it would generate the text i would need to include in a section for my webpage. Instead, what was generated was a .png file. Should this be usable as an image map, or did I get this in error (the page rendered just fine). > The PHP MapScript saveWebImage doc is at: http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/imageobj The Wiki page that you were looking at needs comes from the old/frozen wiki so it's out of date and will never be updated. The saveWebImage method doesn't take any arguments any more. Instead, you have to pick your output format using selectOutputFormat() before the draw() call. Something like this might work: $imgmap = ms_newMapObj( "C:\\ms4w\\Apache\\htdocs\\postgis\\imgmap.map" ); $imgmap->selectOutputFormat("imagemap"); $imgmapimg = $imgmap->draw(); $imgmapurl = $imgmapimg->saveWebImage(); Daniel -- Daniel Morissette http://www.mapgears.com/ From matt.pettis at THOMSON.COM Wed Apr 4 13:41:48 2007 From: matt.pettis at THOMSON.COM (Matt Pettis) Date: Wed, 4 Apr 2007 15:41:48 -0500 Subject: php/mapscript and client-side imagemaps In-Reply-To: <4613E08B.1040908@mapgears.com> Message-ID: Hi All, I've tried again, and got closer... Below are the PHP code and the mapfile code, along with the output. I'm rendering MN counties, so I want to output 87 polygons worth of image coordinates defining the counties. I know that, as opposed to the html template approach, that I haven't defined any way via PHP to specify the coords (like using the [shpXY ...] parts of the html template). Can anyone help me add code to output a line with the correct coordinates (one record per query result) to process each polygon imagemap output and output customized lines into the file? That would be code similar to the template example on the mapserver website that substitutes values into the template for [...] once for each query result and appends to the output like in the following: [NAME] (this template example is at http://mapserver.gis.umn.edu/docs/howto/imagemaps). Tia, Matt <=== php file code snippet ===> $imgmap = ms_newMapObj( "C:\\ms4w\\Apache\\htdocs\\postgis\\US-Senate-prct-imgmap.map" ); $imgmap->setExtent($myrow['xmin'],$myrow['ymin'],$myrow['xmax'],$myrow[' ymax']); $imgmap->selectOutputFormat("imagemap"); $imgmapimg = $imgmap->draw(); $imgmapurl = $imgmapimg->saveWebImage(); <=====================> <=== Mapfile US-Senate-prct-imgmap.map ===> MAP IMAGETYPE PNG # EXTENT 189783.546875 4810309 761653.5625 5472346.5 SIZE 680 510 IMAGECOLOR 255 255 255 FONTSET "C:\ms4w\Apache\htdocs\fonts\fonts.list" WEB IMAGEPATH "C:\ms4w\Apache\htdocs\tmp\" IMAGEURL "/tmp/" END LAYER NAME "county" CONNECTIONTYPE postgis CONNECTION "user=postgres dbname=postgis password=4theluv" DATA "the_geom from (select distinct the_geom from shp_counties) as foo using unique the_geom using SRID=-1" STATUS DEFAULT TYPE POLYGON TRANSPARENCY 0 CLASS NAME "county" STYLE OUTLINECOLOR 0 0 0 END END END END # End MAP def <=====================> <=== Mapfile output (46140b8f_dec_0.html) ===> <=====================> -----Original Message----- From: Daniel Morissette [mailto:dmorissette at mapgears.com] Sent: Wednesday, April 04, 2007 12:30 PM To: Pettis, Matthew (Thomson) Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] php/mapscript and client-side imagemaps Matt Pettis wrote: > Hi, > > I'm trying to get generate a client side imagemap (the ...) coordinates and inserting the text using just php/mapscript (avoiding using the templating methods found at http://mapserver.gis.umn.edu/docs/howto/imagemaps because I want as pure a php solution as i can get). I found the wiki entry for this (http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?ImageMap), and followed its instructions. In particular, the following lines did not generate what I thought: > > $imgmap = ms_newMapObj( > "C:\\ms4w\\Apache\\htdocs\\postgis\\imgmap.map" ); $imgmapimg = > $imgmap->draw(); $imgmapurl = > $imgmapimg->saveWebImage(MS_IMAGEMAP,1,1,0); > > I couldn't find documentation on saveWebImage, but I thought it would generate the text i would need to include in a section for my webpage. Instead, what was generated was a .png file. Should this be usable as an image map, or did I get this in error (the page rendered just fine). > The PHP MapScript saveWebImage doc is at: http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/i mageobj The Wiki page that you were looking at needs comes from the old/frozen wiki so it's out of date and will never be updated. The saveWebImage method doesn't take any arguments any more. Instead, you have to pick your output format using selectOutputFormat() before the draw() call. Something like this might work: $imgmap = ms_newMapObj( "C:\\ms4w\\Apache\\htdocs\\postgis\\imgmap.map" ); $imgmap->selectOutputFormat("imagemap"); $imgmapimg = $imgmap->draw(); $imgmapurl = $imgmapimg->saveWebImage(); Daniel -- Daniel Morissette http://www.mapgears.com/ From XIJIANG.SUN at SAIC.COM Wed Apr 4 14:05:12 2007 From: XIJIANG.SUN at SAIC.COM (Sun, Xijiang) Date: Wed, 4 Apr 2007 17:05:12 -0400 Subject: Anyone compared SharpMap with MapServer. What are the major difference? Thanks Message-ID: Dear folks, I am testing MapServer, ArcIMS, ArcGIS Server. When I tried to search "Tile Caching", I found another Open Source GIS-- SharpMap. Does any one compared the difference, like advantage/disadvantage between these two? or can you point to articles about the comparison? Thanks for your hint. Regards, Sun -------------- next part -------------- An HTML attachment was scrubbed... URL: From punk.kish at GMAIL.COM Wed Apr 4 14:41:04 2007 From: punk.kish at GMAIL.COM (P Kishor) Date: Wed, 4 Apr 2007 16:41:04 -0500 Subject: Anyone compared SharpMap with MapServer. What are the major difference? Thanks In-Reply-To: Message-ID: On 4/4/07, Sun, Xijiang wrote: > > > > > Dear folks, > > I am testing MapServer, ArcIMS, ArcGIS Server. When I tried to search > "Tile Caching", I found another Open Source GIS-- SharpMap. > > > Does any one compared the difference, like advantage/disadvantage between > these two? or can you point to articles about the comparison? > SharpMap runs only on Windows and requires knowledge of .NET. MapServer runs on Windows as well as any/all Unix and Unix-like operating systems and works with a variety of languages. -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.nelson.wisc.edu/ Open Source Geospatial Foundation http://www.osgeo.org/education/ --------------------------------------------------------------------- collaborate, communicate, compete ===================================================================== From xijiang.sun at SAIC.COM Wed Apr 4 16:04:37 2007 From: xijiang.sun at SAIC.COM (X Sun) Date: Wed, 4 Apr 2007 18:04:37 -0500 Subject: ArcSDE, FastCGI+IIS Message-ID: Hi Mike Saunt and/or Howard, I found out the post and knew that Mike had already done a great job making FastCGI + IIS + SDE works. Do we have already had a documented procedure to set up FastCGI + IIS? I did not find it from the web site. Could you pass me a copy of document if there is one already? I am now frustrating reading document here and there to see how to make them works together My email is sunx at saic.com Thanks a lot. Shannon Sun From cheung.jackey at GMAIL.COM Wed Apr 4 17:59:44 2007 From: cheung.jackey at GMAIL.COM (Jackey Cheung) Date: Thu, 5 Apr 2007 08:59:44 +0800 Subject: Multiple FeatureTypeStyle in a UserStyle Message-ID: Greetings! I'm try the SLD on ms4w 4.10 now, and got a problem. I've put 2 blocks in a userstyle: test #666666 7 #FFFFFF 4 But it seems that MapServer only draws the second FeatureTypeStyle only. Why's that? From assefa at DMSOLUTIONS.CA Wed Apr 4 19:21:24 2007 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 4 Apr 2007 22:21:24 -0400 Subject: Multiple FeatureTypeStyle in a UserStyle In-Reply-To: Message-ID: Hi There, Looking at your sld, It seems that your intention to do some kind of casing style (one class with 2 styles in mapserver sense) ? If that is the case, you should use only one rule with 2 LineSymbolizers. Something like this would work : test #666666 7 #FFFFFF 4 If not could you explain what your intention is with this sld. Note that in the sld you sent, each rule is translated into a class element so you end up with 2 classes (none of which contains an expression) and mapserver renders the features using the first class. Later, Jackey Cheung wrote: > Greetings! > > I'm try the SLD on ms4w 4.10 now, and got a problem. > > I've put 2 blocks in a userstyle: > > > test > > > > > > #666666 > 7 > > > > > > > > > #FFFFFF > 4 > > > > > > > > > But it seems that MapServer only draws the second FeatureTypeStyle only. > > Why's that? -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From peter_sykora at GMX.AT Thu Apr 5 02:43:30 2007 From: peter_sykora at GMX.AT (Peter Sykora) Date: Thu, 5 Apr 2007 11:43:30 +0200 Subject: Problem: ANGLEITEM and TRANSPARENT In-Reply-To: Message-ID: Hi, due to the fact that Mapserver is not able to place rotated symbols with transparency, I?ve tried to create different workarounds but still run into problems there. My idea was to create and rotate the transparent symbols dynamically for every map request with MagickWand (php API for image magick) and save them on the local filesystem. This works fine so far. Now I thought I could dynamically create new symbols with php Mapscript for all the images I?ve created, but the php API doesn?t show any possibility to set the transparency index. The members and functions of symbol objects are a lot less in the php API than in the language-agnostic API. Does anybody know the reason for that? The second workaround I thought about was to place the image symbols on the map using the pasteImage() function from the image class to paste the images manually on the map image. The problem is that the php API does not support the creation of new image objects using a file on the system like it is described here: http://mapserver.gis.umn.edu/docs/howto/mapscript_imagery/#creating-a-new-imageobj Thanks for any hints Peter -------- Original-Nachricht -------- Datum: Tue, 3 Apr 2007 03:21:01 -0500 Von: Peter Sykora An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] Problem: ANGLEITEM and TRANSPARENT > >I didn't follow the previous posts in this thread, but just in case I > >thought I'd ask: did you try setting TRANSPARENCY ALPHA in your layer? > > Hi Daniel, > thanks for your hint, but it had no effect on my results. I think the > TRANSPARENCY ALPHA is useful to create transparent 24 bit images, but I > can?t image that it has any relevance with this specific problem when > images > are rotated. Again, the transparency works fine when symbols are not > rotated, so the problem must be somewhere else. > > Peter -- ______________________________________________________ Peter Sykora A-4040 Linz, Fr?hlerweg 45 Festnetz: +43 732 995435 Mobil: +43 676 5832583 mailto: peter_sykora at gmx.at http://www.carto.net/ps/ http://canyon.carto.net/ http://doris.ooe.gv.at/ "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail From sacchetti at NEPERO.NET Thu Apr 5 02:52:16 2007 From: sacchetti at NEPERO.NET (Giacomo Sacchetti) Date: Thu, 5 Apr 2007 11:52:16 +0200 Subject: Mapfile and shape Message-ID: Dear All, I've posted a question two weeks ago, but I haven't received any response. So, I'll try to explain better my situation. I've "converted" a DWG file in several SHP file. Every layer of the DWG is "well formed": this means that every layer have only one type of entity (points, lines, ...). I've created a tool for this type of convertions. My problem is to assign pattern and color to the shape files. I've thinked to insert informations about color and pattern in the DBF associated to every SHP files: is possibile to force Mapserver (through Mapfile) to read informations about color and patterns from DBF file? Thanks in advance GS From dlowther at COORDINATESOLUTIONS.COM Thu Apr 5 05:54:22 2007 From: dlowther at COORDINATESOLUTIONS.COM (David Lowther) Date: Thu, 5 Apr 2007 08:54:22 -0400 Subject: Anyone compared SharpMap with MapServer. What are the major difference? Thanks In-Reply-To: Message-ID: Sun, We use Mapserver and SharpMap. My first attraction to SharpMap was that it was a .NET solution, but as Mapscript_csharp has come along, I have used SharpMap less and less. Also, SharpMap is a much less mature project than Mapserver so you have a lot less documentation, fewer users (meaning less forum / listserv activity), and there are a lot of things left "to do" in SharpMap. One of the main differences in USE of SharpMap is that it doesn't use a Mapfile (.map or .axl) the entire map configuration is done in code. Depending on the complexity of your application (e.g. number of and types of layers, desired functionality) SharpMap could work or even be the better solution, but in general I would say Mapserver and ArcIMS / ArcGIS Server are much more robust products today. Hope that helps, David Lowther _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Sun, Xijiang Sent: Wednesday, April 04, 2007 5:05 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Anyone compared SharpMap with MapServer. What are the major difference? Thanks Dear folks, I am testing MapServer, ArcIMS, ArcGIS Server. When I tried to search "Tile Caching", I found another Open Source GIS-- SharpMap. Does any one compared the difference, like advantage/disadvantage between these two? or can you point to articles about the comparison? Thanks for your hint. Regards, Sun -------------- next part -------------- An HTML attachment was scrubbed... URL: From pgiannini at BYTEWISE.IT Thu Apr 5 07:02:45 2007 From: pgiannini at BYTEWISE.IT (Pietro Giannini) Date: Thu, 5 Apr 2007 16:02:45 +0200 Subject: Mapfile and shape In-Reply-To: <28f0f9ae0704050252g79359920ud03bef706473104a@mail.gmail.com> Message-ID: Hi Giacomo, > is possibile to force Mapserver > (through Mapfile) to read informations about color and patterns from > DBF file? Directly, for the moment I think no. Take a look to? http://mapserver.gis.umn.edu/docs/reference/mapfile/layer/?searchterm=styleitem you can find the layer's property STYLEITEM, experimental and OGR only, wich is the name of the field containing style info's. No info about the format, etc. Look also to how-to http://mapserver.gis.umn.edu/docs/reference/vector_data/mapinfo/?searchterm=styleitem is an how-to to read mapinfo files. With STYLEITEM=AUTO in the layer you can preserve the style information of the mapinfo layer. You can of course define in the layer a number of classes equal to the number of styles you want, each class with its STYLE, and in the class EXPRESSION (http://mapserver.gis.umn.edu/docs/howto/msexpressions) you can define the? value of the field (defined in CLASSITEM property) for style definition of single feature. e.g. : if you have a .shp of buildings and use of each building is defined in the field 'TYPE' with the keywords 'PUBLIC', 'PRIVATE', 'AIRPORT'... your layer in the .map file can appear like: # LAYER ??? NAME edifici ??? DATA edifici ??? TYPE POLYGON ??? CLASSITEM 'TYPE' ??? CLASS ??? ?? EXPRESSION 'PUBLIC' ??? ?? STYLE ??? ?? ?? COLOR? 223 184 230 ??? ?? ?? OUTLINECOLOR 80 80 80 ??? ?? END # of style ??? END # of class ??? CLASS ??? ?? EXPRESSION 'PRIVATE' ??? ?? STYLE ??? ?? ?? COLOR? 199 141 235 ??? ?? ?? OUTLINECOLOR 80 80 80 ??? ?? END # of style ??? END # of class ??? CLASS ??? ?? EXPRESSION 'AIRPORT' ??? ?? STYLE ??? ?? ?? COLOR? 172 102 237 ??? ?? ?? OUTLINECOLOR 80 80 80 ??? ?? END # of style ??? END # of class ??? CLASS ??? ?? ... ??? END # of class END #of layer # ciao Pietro -- Pietro Giannini Bytewise srl - Area GIS 41?50'38.58"N 12?29'13.39"E On Gio, 5 Aprile 2007 11:52 am, Giacomo Sacchetti wrote: > Dear All, > > I've posted a question two weeks ago, but I haven't received any > response. So, I'll try to explain better my situation. > I've "converted" a DWG file in several SHP file. Every layer of the > DWG is "well formed": this means that every layer have only one type > of entity (points, lines, ...). I've created a tool for this type of > convertions. > My problem is to assign pattern and color to the shape files. > I've thinked to insert informations about color and pattern in the DBF > associated to every SHP files: is possibile to force Mapserver > (through Mapfile) to read informations about color and patterns from > DBF file? > > Thanks in advance > > GS > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mitchelljj98 at GMAIL.COM Thu Apr 5 07:40:48 2007 From: mitchelljj98 at GMAIL.COM (John Mitchell) Date: Thu, 5 Apr 2007 10:40:48 -0400 Subject: gdalwarp with change in projection for tiles then adjacent tiles overlap slightly with a black border at edge. Message-ID: Hi, I have found that running gdalwarp with a change in projection individually for each tile and splitting them up via gdal_translate that the adjacent tiles overlap slightly with a black border at edge. If I instead run gdalwarp against all the tiles to create a big mosaic with a change in projection and then split(gdal_translate) them up that I don't have this overlap. Is their a way to individually run gdalwarp with a change in projection against each tile without getting this overlap? Thanks, -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From dlowther at COORDINATESOLUTIONS.COM Thu Apr 5 08:01:33 2007 From: dlowther at COORDINATESOLUTIONS.COM (David Lowther) Date: Thu, 5 Apr 2007 11:01:33 -0400 Subject: gdalwarp with change in projection for tiles then adjacent tiles overlap slightly with a black border at edge. In-Reply-To: Message-ID: Not easily that I have found. One method that I have used was to calculate the overlap from adjacent images necessary to cover the black border resulting from projection, generate an image from the source tile and the eight adjacent tiles (not the whole of the adjacent tiles, just the requisite margin), project, the clip back to target projected extent. However, if you can afford the disk space, creating the one large mosaic, projecting, and then clipping out tiles is way easier. David Lowther _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of John Mitchell Sent: Thursday, April 05, 2007 10:41 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] gdalwarp with change in projection for tiles then adjacent tiles overlap slightly with a black border at edge. Hi, I have found that running gdalwarp with a change in projection individually for each tile and splitting them up via gdal_translate that the adjacent tiles overlap slightly with a black border at edge. If I instead run gdalwarp against all the tiles to create a big mosaic with a change in projection and then split(gdal_translate) them up that I don't have this overlap. Is their a way to individually run gdalwarp with a change in projection against each tile without getting this overlap? Thanks, -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at MMMTIKE.FI Thu Apr 5 08:20:10 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 5 Apr 2007 18:20:10 +0300 Subject: gdalwarp with change in projection for tiles then adjacent tiles overlap slightly with a black border at edge. Message-ID: Hi, You can mosaic all the original tiles to gdal VRT virtual mosaic in seconds by using a modified gdal_merge python script. There are references to this in mailing list archives. If you then use this VRT as source and give the extents you would like to have on your result image for gdalwarp (parameter TE if I remember it right just now) you will get a seamless image with one run. Regards, -Jukka Rahkonen- -----Original Message----- From: UMN MapServer Users List on behalf of David Lowther Sent: Thu 5.4.2007 18:01 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] gdalwarp with change in projection for tiles then adjacent tiles overlap slightly with a black border at edge. Not easily that I have found. One method that I have used was to calculate the overlap from adjacent images necessary to cover the black border resulting from projection, generate an image from the source tile and the eight adjacent tiles (not the whole of the adjacent tiles, just the requisite margin), project, the clip back to target projected extent. However, if you can afford the disk space, creating the one large mosaic, projecting, and then clipping out tiles is way easier. David Lowther _____ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of John Mitchell Sent: Thursday, April 05, 2007 10:41 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] gdalwarp with change in projection for tiles then adjacent tiles overlap slightly with a black border at edge. Hi, I have found that running gdalwarp with a change in projection individually for each tile and splitting them up via gdal_translate that the adjacent tiles overlap slightly with a black border at edge. If I instead run gdalwarp against all the tiles to create a big mosaic with a change in projection and then split(gdal_translate) them up that I don't have this overlap. Is their a way to individually run gdalwarp with a change in projection against each tile without getting this overlap? Thanks, -- John J. Mitchell From gary_armstrong01 at YAHOO.COM Thu Apr 5 10:30:29 2007 From: gary_armstrong01 at YAHOO.COM (Gary Armstrong) Date: Thu, 5 Apr 2007 12:30:29 -0500 Subject: buffer around map Message-ID: Hello, Is there any way to specify a buffer of 1/2 mile around a map produced from an itemquery? Thanks, Gary From mitchelljj98 at GMAIL.COM Thu Apr 5 12:16:17 2007 From: mitchelljj98 at GMAIL.COM (John Mitchell) Date: Thu, 5 Apr 2007 15:16:17 -0400 Subject: gdalwarp -rn(default) vs -rc Message-ID: Hi, Within gdalwarp where does using the higher quality option of -rc(cubic resampling) verses the default of nearest neighbour resampling have the greatest impact as far as quality and also as far as speed. Either a.) running gdalwarp to mosaic a number of tiles together and at the same time reproject i.e. gdalwarp.exe -wo SKIP_NOSOURCE=YES -s_srs EPSG:" + EPSG + " -t_srs EPSG:" + EPSG_wgs84 + " -rc -co tiled=yes -q " + inputFiles + " " + rasterFile b.) running gdalwarp to reduce the resolution but not changing the projection and not mosaicking i.e. gdalwarp.exe -tr " + psx + " " + psy + " -s_srs EPSG:" + EPSG_wgs84 + " -t_srs EPSG:" + EPSG_wgs84 + " -rc -co tiled=yes -q " + rasterFile + " " + warpedSplitRasterFile Will it be faster to reduce resolution against a file via gdalwarp that has already been reduced and will the quality be the same? As an example: 1.) I mosaic a number of tiles at full resolution 2.) I reduce the mosaic from 1 by 1/2 3a.) I reduce the mosaic from 1 by 1/4 3b.) I reduce the mosaic from 2 by 1/2 Between 3a and 3b will 3b be faster and will the quality be the same? Any other suggestions on speeding up gdalwarp would be appreciated. Thanks, -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From rodrigo.andrade at DIGITRO.COM.BR Thu Apr 5 14:05:20 2007 From: rodrigo.andrade at DIGITRO.COM.BR (Rodrigo Del C. Andrade) Date: Thu, 5 Apr 2007 18:05:20 -0300 Subject: Streets and streets' labels drawing performance Message-ID: Hello dear list. Quick and (hopefully) simple question: What are the big mapscript no-no's for the performance conscious coder? I'll explain. I am working on a java mapscript application that only show cities and streets. Using maxscale to draw the cities streets only at certain zoom lvls and the street labels even closer. But the performance is a huge problem when it tries to render the streets and the accompanying labels. And I mean it, the server bends and stays on its knees for minutes while I wait for the map to show. I've banished antialising from the code, caching and all the bells and whistles, but the performance is still atrocious. Whats more strange, some areas of the map (it is composed of several shapefiles defined in its own layer and mapfile, included into the main mapfile) have acceptable performance, so could something in the shapefiles being slowing render draw? They all come from the same source and seem to have the same structure, so what could I look for in them that would hamper its drawing speed? Any help is hugely appreciated. Thanks -- *Rodrigo Del C. Andrade * /Estagi?rio N?vel Superior/ /SIC - SSE - Solu??es Seguran?a P?blica/ *D?GITRO TECNOLOGIA* *E-mail:* rodrigo.andrade at digitro.com.br *Fone:* +55 48 3281-7314 / +55 48 3281-7000 *Fax:* +55 48 3281-7299 *Site:* www.digitro.com From gregor at HOSTGIS.COM Thu Apr 5 16:42:53 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Thu, 5 Apr 2007 17:42:53 -0600 Subject: Streets and streets' labels drawing performance In-Reply-To: <46156490.6080508@digitro.com.br> Message-ID: > But the performance is a huge problem when it tries to render the > streets and the accompanying labels. And I mean it, the server bends and > stays on its knees for minutes while I wait for the map to show. Yeah, that'll happen; it's very easy to do street data not-quite-right and make it slooooow. You mentioned using maxscales and minscales and all. In what capacity are you doing that? Are you using the CFCC (the road's "importance") as the classitem, and showing only highways at this scale, only highways and major roads at this scale, ...? Is this a line shapefile? Or did you buffer the lines into polygons, to get that cool-looking effect of thick road lines? Poylgons render more slowly than lines, so if you're looking for thick roads I'd recommend using 2 styles per class, rather than a polygon. Did you use shptree on the shapefile? That creates a spatial index (a .qix file) and can dramatically speed up the shapefile driver. Those are a few ideas... -- HostGIS Cartographic development and hosting services 707-822-9355 http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From jdege at KORTERRA.COM Thu Apr 5 15:40:40 2007 From: jdege at KORTERRA.COM (Jeff Dege) Date: Thu, 5 Apr 2007 17:40:40 -0500 Subject: Streets and streets' labels drawing performance In-Reply-To: A<2639.168.103.93.50.1175816573.squirrel@www.hostgis.com> Message-ID: > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gregor Mosheh > > > But the performance is a huge problem when it tries to render the > > streets and the accompanying labels. And I mean it, the server bends and > > stays on its knees for minutes while I wait for the map to show. > > Yeah, that'll happen; it's very easy to do street data > not-quite-right and make it slooooow. So how do we make it right? I'm having the same problem, with one customer-supplied shapefile. I've managed decent performance with others, but this one just stalls when I turn on street names, even at zoom levels where only two are three names displayed. I did what I know how to do - running shptree, setting maxscale so that streetnames aren't drawn except at close-in zooms. I even ran the file through ogr2ogr, in case the files I'd been supplied had somehow been corrupted. And it's not all that big a file - less than 800,000 features. What else can I do? From woodbri at SWOODBRIDGE.COM Thu Apr 5 16:39:00 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 5 Apr 2007 19:39:00 -0400 Subject: Streets and streets' labels drawing performance In-Reply-To: <46156490.6080508@digitro.com.br> Message-ID: Rodrigo, Jeff, Gregor, It is possible to do this without too much effort. I do it with Tiger Data and I have 3300 counties with the street data split into Major roads and Minor roads. See here for what you can expect: http://imaptools.com/maps/demo.html Some of the tricks are: Don't you shapefiles with 800000 lines in it. Use shape2tile (you can get it from the downloads section of http://imaptools.com/ to split you big shapefiles into smaller ones using quadtree option to put 8-10K items per file. Then use create a tileindex to seem the files back together. Use mindistance in the label block to avoid drawing extra labels. Build mapserver with the -debug configure option and set DEBUG ON in your mapfile and look at the apache errorlog to see what layers are costing the most to draw and optimize them first. Turn them on later with MIN/MAXSCALE. Look at the labelcache performance if this is too high reduce the number of labels you are adding to the cache by turning on labels later with MIN/MAXSCALE MAKE SURE ALL shapefiles have a spatial index using shptree. On linux run: find /path/to/data -name \*.shp -exec shptree {} \; make sure you tileindexes all have shptree indexes. There are probably a few more but this is good for starters. -Steve Rodrigo Del C. Andrade wrote: > Hello dear list. > Quick and (hopefully) simple question: > What are the big mapscript no-no's for the performance conscious > coder? > I'll explain. I am working on a java mapscript application that only > show cities and streets. Using maxscale to draw the cities streets only > at certain zoom lvls and the street labels even closer. > But the performance is a huge problem when it tries to render the > streets and the accompanying labels. And I mean it, the server bends and > stays on its knees for minutes while I wait for the map to show. I've > banished antialising from the code, caching and all the bells and > whistles, but the performance is still atrocious. Whats more strange, > some areas of the map (it is composed of several shapefiles defined in > its own layer and mapfile, included into the main mapfile) have > acceptable performance, so could something in the shapefiles being > slowing render draw? They all come from the same source and seem to have > the same structure, so what could I look for in them that would hamper > its drawing speed? > > Any help is hugely appreciated. > Thanks > From woodbri at SWOODBRIDGE.COM Thu Apr 5 18:26:53 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 5 Apr 2007 21:26:53 -0400 Subject: [Gdal-dev] gdalwarp -rn(default) vs -rc In-Reply-To: Message-ID: Hi John, et al, You example a) implies that you can supply multiple input files to mosaic into a single output file. Can you do that in one command? So multiple files names are on the command line and the last one is the output file? That would be very sweet. Also do you know where the various options for -wo and -co are listed. They are not in the man pages. There is only the less than useful comment "There is a list of available ones. " and not reference as to where. -Steve John Mitchell wrote: > Hi, > > > Within gdalwarp where does using the higher quality option of -rc(cubic > resampling) verses the default of nearest neighbour resampling have the > greatest impact as far as quality and also as far as speed. > Either > a.) running gdalwarp to mosaic a number of tiles together and at the > same time reproject > > i.e. gdalwarp.exe -wo SKIP_NOSOURCE=YES -s_srs EPSG:" + EPSG + " > -t_srs EPSG:" + EPSG_wgs84 + " -rc -co tiled=yes -q " + inputFiles + " " > + rasterFile > > b.) running gdalwarp to reduce the resolution but not changing the > projection and not mosaicking > i.e. gdalwarp.exe -tr " + psx + " " + psy + " -s_srs EPSG:" + > EPSG_wgs84 + " -t_srs EPSG:" + EPSG_wgs84 + " -rc -co tiled=yes -q " + > rasterFile + " " + warpedSplitRasterFile > > > Will it be faster to reduce resolution against a file via gdalwarp that > has already been reduced and will the quality be the same? As an example: > 1.) I mosaic a number of tiles at full resolution > 2.) I reduce the mosaic from 1 by 1/2 > 3a.) I reduce the mosaic from 1 by 1/4 > 3b.) I reduce the mosaic from 2 by 1/2 > > Between 3a and 3b will 3b be faster and will the quality be the same? > > Any other suggestions on speeding up gdalwarp would be appreciated. > > Thanks, > > > -- > John J. Mitchell > > > ------------------------------------------------------------------------ > > _______________________________________________ > Gdal-dev mailing list > Gdal-dev at lists.maptools.org > http://lists.maptools.org/mailman/listinfo/gdal-dev From cavallini at FAUNALIA.IT Fri Apr 6 03:53:07 2007 From: cavallini at FAUNALIA.IT (Paolo Cavallini) Date: Fri, 6 Apr 2007 12:53:07 +0200 Subject: logging Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [on behalf of walter, who apparently cannot post] Hi all, I'm trying to use the LOG keyword in WEB section im my mapfile: LOG "path_to_my_log/mymap.log" and I set my layer to bugging mode, putting inside layer the keyword DEBUG ON But when I try to use my shp2img application I obtain the layer debug in the shell but not in my mymap.log file! Can you help me? Bye and thanks Walter - -- Paolo Cavallini http://www.faunalia.it/pc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGFiaS/NedwLUzIr4RAlFJAJ9+fVOBG9e7yinTeIPwh6vXSACb1ACgsjZ2 Qc2c2ho8zbPL4tRkdP4y6DI= =JZWU -----END PGP SIGNATURE----- From watry at STEAM.COAPS.FSU.EDU Fri Apr 6 03:54:14 2007 From: watry at STEAM.COAPS.FSU.EDU (Gary Watry) Date: Fri, 6 Apr 2007 06:54:14 -0400 Subject: dbox and dynamic legend Message-ID: Hi Here is the issue When I load a mapfile the groups in the dynamic legend are open How and where do I change the code so the groups in the legend start as closed. -- ---------------------------------------------------- The information transmitted is intended solely for the person or entity for which it is addressed and may contain confidential and/or privileged information. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this email in error, please contact the sender and delete the material from your computer. ---------------------------------------------------- Gary L. Watry GIS Coordinator Center for Ocean-Atmospheric Prediction Studies FSU / COAPS Johnson Building, RM 231 2035 East Paul Dirac Drive Tallahassee, Florida 32306-2840 Phone (850) 645-7457 E-Mail: watry at coaps.fsu.edu ------------------------------------------------------ From JHoude at KOREM.COM Fri Apr 6 06:32:44 2007 From: JHoude at KOREM.COM (Houde, Jonathan) Date: Fri, 6 Apr 2007 09:32:44 -0400 Subject: MapScript Java problem Message-ID: Hi Antonio, Since my first post, I tried many other approache including the java.library.path overwriting, But after quick comparison on the dependant dll versions with other machine having mapscript working, it really seems to be the cause of the error. However, since there a lot of dll in the dependence tree I could not figured out which one was problematic. Consequently, I tried to install it on 3 other computer and I did encounter any error. The main difference between my problematic setup and all the setup working is that I have a lot of Microsoft stuff and corresponding dll version installed, -sql server 2000 -iis -visual studio 2005 -sqlserver 2005 -crystal report -... Does this could explain the problem on your setup too ? Jonathan _____ From: Antonio Pace [mailto:antonio.pace at gmail.com] Sent: Wednesday, September 05, 2007 1:58 PM To: Houde, Jonathan; MAPSERVER-USERS at LISTS.UMN.EDU Subject: R: [UMN_MAPSERVER-USERS] MapScript Java problem Hi, I have the same problem and i am going crazy, I have tried several variation of my setup (upgrade and downgrade of ms4w, jdk and tomcat), someone has resolved this problem? Thanks, Antonio Da: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Per conto di Houde, Jonathan Inviato: venerd? 30 marzo 2007 18.39 A: MAPSERVER-USERS at LISTS.UMN.EDU Oggetto: [UMN_MAPSERVER-USERS] MapScript Java problem Hi, I'm trying to make MapScript java work under tomcat 5.5.17 / jdk 6.0 / windows xp And I'm getting the following error: java.lang.UnsatisfiedLinkError: C:\mapscript\mapscript.dll: The operating system cannot run %1 I already included the following folder in the path system variable C:\ms4w\Apache\cgi-bin C:\ms4w\Apache\cgi-bin\mapscript\java As well as the proj lib variable. PROJ_LIB C:\ms4w\proj\nad The package I installed is from ms4w_2.2.3.zip I have tried several variation of my setup including change of jdk to 5.0 and I keep getting that error... I know that the actual dlls are found in the path since when I remove one folder from the path variable I receive either, UnsatisfiedLinkError: C:\mapscript\mapscript.dll, ddl not in the java.library.path Or Dll dependency not found in the java.library.path This seems to be related with dll version mismatch. For example: http://support.borland.com/entry.jspa?externalID=6065&categoryID=447 Any ideas? Thanks, Jonathan -------------- next part -------------- An HTML attachment was scrubbed... URL: From rdmailings at DUIF.NET Fri Apr 6 07:05:21 2007 From: rdmailings at DUIF.NET (Richard Duivenvoorde) Date: Fri, 6 Apr 2007 16:05:21 +0200 Subject: Problem: ANGLEITEM and TRANSPARENT In-Reply-To: Message-ID: Hi All, I have some troubles also with transparent symbols server version: MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SU PPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPP ORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAP EFILE DEBUG=MSDEBUG using transparent png AND output as a png (AND using 'TRANSPARENCY ALPHA' as Daniel proposed), results in transparent image symbols, but ONLY for the 90, 180 and 270 degrees rotation ??? See attachement: all the same symbol, rotated different degrees. So it looks like Peter's 'overlapping' problem seems to me not an overlapping symbol, but more an 'amount of rotation symbol'. Maybe this 'conclusion' is helpfull? It would be nice if rotating image symbols will be fixed one day. Grtz Richard Duivenvoorde Peter Sykora wrote: >> I didn't follow the previous posts in this thread, but just in case I >> thought I'd ask: did you try setting TRANSPARENCY ALPHA in your layer? > > Hi Daniel, > thanks for your hint, but it had no effect on my results. I think the > TRANSPARENCY ALPHA is useful to create transparent 24 bit images, but I > can?t image that it has any relevance with this specific problem when images > are rotated. Again, the transparency works fine when symbols are not > rotated, so the problem must be somewhere else. > > Peter -------------- next part -------------- A non-text attachment was scrubbed... Name: rotatedSymbol2.gif Type: image/gif Size: 18913 bytes Desc: not available URL: From XIJIANG.SUN at SAIC.COM Fri Apr 6 10:25:25 2007 From: XIJIANG.SUN at SAIC.COM (Sun, Xijiang) Date: Fri, 6 Apr 2007 13:25:25 -0400 Subject: is there any tech support behind MapServer to ask question directly other than this Mail List? Message-ID: Hi folks, I have a quick question. If there is any technical question related to MapServer, is there any technical support (other than this email list) to ask question directly ? MySQL is a open source product, but it has a company behind to provide technical support, is there any similar tech support behind MapServer? This is a question from my boss, any hint for this. Thanks and Regards, Shannon Sun -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Fri Apr 6 10:45:00 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 6 Apr 2007 13:45:00 -0400 Subject: is there any tech support behind MapServer to ask question directly other than this Mail List? In-Reply-To: Message-ID: Sun, Xijiang wrote: > > Hi folks, > > I have a quick question. If there is any technical question related to > MapServer, is there any technical support (other than this email list) > to ask question directly ? > > MySQL is a open source product, but it has a company behind to provide > technical support, is there any similar tech support behind MapServer? > > This is a question from my boss, any hint for this. Shannon Sun, There are a number of consulting and services companies that can provide paid support. One such company, that I have some affiliation with, is DM Solutions Group which offers "standard support products" for MapServer under the "Premiere" name. http://www.dmsolutions.ca But there are lots of organizations, and some individuals, that can setup customized support arrangements. A difference between MySQL and MapServer is that there isn't one obvious company to choose, but there are a diversity of options. In the coming months, OSGeo hopes to operate a "service provider directory" that would make it easier to find organizations that can provide services around projects like MapServer. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From punk.kish at GMAIL.COM Fri Apr 6 11:35:22 2007 From: punk.kish at GMAIL.COM (P Kishor) Date: Fri, 6 Apr 2007 13:35:22 -0500 Subject: is there any tech support behind MapServer to ask question directly other than this Mail List? In-Reply-To: Message-ID: On 4/6/07, Sun, Xijiang wrote: > > > > > Hi folks, > > I have a quick question. If there is any technical question related to > MapServer, is there any technical support (other than this email list) to > ask question directly ? > > MySQL is a open source product, but it has a company behind to provide > technical support, is there any similar tech support behind MapServer? > > This is a question from my boss, any hint for this. > There is no company behind MapServer. However, your company could hire one of the many fine consultants and companies that inhabit this email list. They range from folks who have developed parts of the software to folks who use it to make fine applications. Hope this helps. -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.nelson.wisc.edu/ Open Source Geospatial Foundation http://www.osgeo.org/education/ --------------------------------------------------------------------- collaborate, communicate, compete ===================================================================== From kalevala at MYREALBOX.COM Fri Apr 6 17:42:06 2007 From: kalevala at MYREALBOX.COM (Kalev Ala) Date: Sat, 7 Apr 2007 03:42:06 +0300 Subject: FCGI and INCLUDE Message-ID: Dear folks, I repeatable get the error message " msLoadMap(): Premature End-of-File. " when using INCLUDE directive in fastcgi mode. Seams like each mapserver process is able to process this kind of mapfile only once, second attempt throws this error. Same mapserver binary in CGI mode works fine with same mapfile. I use fcgi-2.4.0 and mapserver-4.10.1 under RHEL4. Thanks for your hint. Kalev From joydip at ETRANSINFO.COM Sat Apr 7 05:15:01 2007 From: joydip at ETRANSINFO.COM (joydip) Date: Sat, 7 Apr 2007 05:15:01 -0700 Subject: oracle spatial and mapserver problem In-Reply-To: <1369.1145025635@www034.gmx.net> Message-ID: I am also getting the same error under RedHat. Any help. Regards, JS Jochem Prins wrote: > > Dear all, > > for some time i have been playing with UMN mapserver on a Fedora Core 4 > i386 > computer and manage to compile both ogr/gdal and UMN mapserver from source > without Oracle Spatial. However for an assignment I got to make use of > Oracle Spatial and shapefiles in combination with the mapserver. So far I > manage to get everything I need to compile correctly without any weird > errors. > After installation of gdal/ogr and mapserver I attempt to test the > mapserver > by trying to query the mapserver by going to > http://192.168.1.179/cgi-bin/mapserv. This gives me the 500 internal > server > error. When I view Apache's error log it says: > /var/www/cgi-bin/mapserv: error while loading shared libraries: > libclntsh.so.10.1: cannot open shared object file: No such file or > directory > > Now I do know that this is related to some of the libraries that Oracle > uses. I attempted several things to resolve this problem: > > - added the $ORACLE_HOME/lib to /etc/ld.so.conf and tried reloading by > issueing ldconfig > - added $ORACLE_HOME and $LD_LIBRARY_PATH to Apache's configuration file > http.conf > - I also checked if the problem was user rights related, but that doesn't > seem to be the problem. > > Currently I am stuck and would really appreciate any help on this matter. > > Jochem Prins > > -- > GMX Produkte empfehlen und ganz einfach Geld verdienen! > Satte Provisionen f?r GMX Partner: http://www.gmx.net/de/go/partner > > -- View this message in context: http://www.nabble.com/oracle-spatial-and-mapserver-problem-tf1449985.html#a9883537 Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Sat Apr 7 06:16:47 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 7 Apr 2007 09:16:47 -0400 Subject: oracle spatial and mapserver problem In-Reply-To: <9883537.post@talk.nabble.com> Message-ID: Hi, I have gotten it to wor with a small sh script: cat /usr/lib/cgi-bin/mapserv410a #!/bin/sh export TNS_ADMIN=/home/swoodbridge/.oracle/ export ORACLE_HOME=/home2/oracle/cl10/ export LD_LIBRARY_PATH=/home2/oracle/cl10/lib/ /usr/lib/cgi-bin/mapserv410 $* I believe apache does not pass the LD_LIBRARY_PATH to the child process so you migh try setting it explicitly or using a shell script like the above. -Steve W joydip wrote: > I am also getting the same error under RedHat. Any help. Regards, JS > > Jochem Prins wrote: > Dear all, for some time i have been playing with UMN mapserver on a > Fedora Core 4 i386 computer and manage to compile both ogr/gdal and > UMN mapserver from source without Oracle Spatial. However for an > assignment I got to make use of Oracle Spatial and shapefiles in > combination with the mapserver. So far I manage to get everything I > need to compile correctly without any weird errors. After > installation of gdal/ogr and mapserver I attempt to test the > mapserver by trying to query the mapserver by going to > http://192.168.1.179/cgi-bin/mapserv. This gives me the 500 internal > server error. When I view Apache's error log it says: > /var/www/cgi-bin/mapserv: error while loading shared libraries: > libclntsh.so.10.1: cannot open shared object file: No such file or > directory Now I do know that this is related to some of the > libraries that Oracle uses. I attempted several things to resolve > this problem: - added the $ORACLE_HOME/lib to /etc/ld.so.conf and > tried reloading by issueing ldconfig - added $ORACLE_HOME and > $LD_LIBRARY_PATH to Apache's configuration file http.conf - I also > checked if the problem was user rights related, but that doesn't > seem to be the problem. Currently I am stuck and would really > appreciate any help on this matter. Jochem Prins -- GMX Produkte > empfehlen und ganz einfach Geld verdienen! Satte Provisionen f?r GMX > Partner: http://www.gmx.net/de/go/partner > > > View this message in context: Re: oracle spatial and mapserver problem > > Sent from the Mapserver - User mailing list archive > at Nabble.com. From jjesus at UALG.PT Sat Apr 7 06:43:41 2007 From: jjesus at UALG.PT (Jorge de Jesus) Date: Sat, 7 Apr 2007 14:43:41 +0100 Subject: WMS ms_iostripstdoutbuffercontenttype() question In-Reply-To: Message-ID: Hi This is probably a newbie question: I am working with the WxS wrapper script found in the mapserver site and the final part of the script is the HTTP header reply and dumping of the image is: $contenttype = ms_iostripstdoutbuffercontenttype(); header('Content-type: image/png'); ms_iogetStdoutBufferBytes(); ms_ioresethandlers(); since the header() already defines the content-type I was thinking that the $contenttype was not necessary so I removed the $contenttype and got an error message which is not a string but an image.If I do header('Content-type: $contenttype); everything also works fine. Why is mandatory to have $contenttype = ms_iostripstdoutbuffercontenttype(); ?! Best Jorge de Jesus From warmerdam at POBOX.COM Sat Apr 7 08:11:37 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Sat, 7 Apr 2007 11:11:37 -0400 Subject: WMS ms_iostripstdoutbuffercontenttype() question In-Reply-To: <4617A00D.9030502@ualg.pt> Message-ID: Jorge de Jesus wrote: > Hi > > This is probably a newbie question: > > I am working with the WxS wrapper script found in the mapserver site and > the final part of the script is the HTTP header reply and dumping of the > image is: > > $contenttype = ms_iostripstdoutbuffercontenttype(); > header('Content-type: image/png'); > ms_iogetStdoutBufferBytes(); > ms_ioresethandlers(); > > since the header() already defines the content-type I was thinking that > the $contenttype was not necessary so I removed the $contenttype and got > an error message which is not a string but an image.If I do > header('Content-type: $contenttype); everything also works fine. > > Why is mandatory to have $contenttype = > ms_iostripstdoutbuffercontenttype(); ?! Jorge, This is necessary because until you call ms_iostripstdoutbuffercontenttype() the content type string is still in the stdout buffer, and will get dumped along with it when you call ms_iogetStdoutBufferBytes(). The ms_iostripstdoutbuffercontenttype() *strip* it out of the stdout buffer as well as returning it to you. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From setan.jowo at GMAIL.COM Sun Apr 8 18:27:52 2007 From: setan.jowo at GMAIL.COM (Wong Jowo) Date: Sun, 8 Apr 2007 18:27:52 -0700 Subject: Question about editing gis data using mapserver Message-ID: Hi, I'm a new user of mapserver. I've tried the demo and explore the php/mapscript. I realize that the demo is about reading and accessing data either from shp or postgis(I tried these 2 method). I have a question about editing GIS data. Can I change the shp or data in postgis using mapserver ? For example, I click the map on my browser then change some data and submit it back to be saved on database or file, cause it seems there is no editing example in the mapserver package. thank you, David -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at HOSTGIS.COM Sun Apr 8 20:53:30 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Sun, 8 Apr 2007 21:53:30 -0600 Subject: Question about editing gis data using mapserver In-Reply-To: Message-ID: > I have a question about editing GIS data. Can I change the shp or data in > postgis using mapserver ? For example, I click the map on my browser then > change some data and submit it back to be saved on database or file, cause > it seems there is no editing example in the mapserver package. I don't think that Mapserver directly supports editing. Typically, I either edit the data in PostGIS (since most of our data is there) or would write up something using PHP-OGR (a OGR interface for PHP) to edit a shapefile. Hope that helps... From cheung.jackey at GMAIL.COM Mon Apr 9 01:51:31 2007 From: cheung.jackey at GMAIL.COM (Jackey Cheung) Date: Mon, 9 Apr 2007 16:51:31 +0800 Subject: How does anti-alias work in MapServer? Message-ID: Play slideshow | Download the highest quality version of a picture by clicking the + above it Greetings! I've created a map file as follow: OUTPUTFORMAT NAME PNG DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" END ..... ..... LAYER NAME "cline" STATUS DEFAULT TYPE LINE FEATURE POINTS 1 1 50 50 1 50 10 15 0 10 1 1 END END CLASS STYLE SYMBOL "line" SIZE 10 COLOR 160 100 0 END STYLE SYMBOL "line" SIZE 7 COLOR 255 255 0 END END END Where the "line" Symbol is defined as: SYMBOL NAME "line" TYPE CARTOLINE LINEJOIN ROUND LINECAP ROUND ANTIALIAS TRUE END And got the the result (Normal Request below). Then I've tried WMS with SLD, where the SLD is: cline #666666 7 #FFFFFF 4 And got the result (WMS Request below). + Normal Request + WMS Request Both of these two image don??t seem to have anti-alias, why? BTW, the LineCap of WMS version seems better, is it true?Online pictures are available for 30 days. Get Windows Live Mail desktop to create your own photo e-mails. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 50.jpg Type: image/jpeg Size: 7145 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 51.jpg Type: image/jpeg Size: 5555 bytes Desc: not available URL: From cheung.jackey at GMAIL.COM Mon Apr 9 02:01:25 2007 From: cheung.jackey at GMAIL.COM (Jackey Cheung) Date: Mon, 9 Apr 2007 17:01:25 +0800 Subject: How does MapServer query database Message-ID: Greetings! I'm wondering, how does MapServer retrieve data from database? Say, I've got a database table with around 10 million records including points, lines, and polygons. I am drawing a line layer in the scale of 1:100K. In such scale, many lines won't be visible on the map, and there is a field that controls the visible scale of objects in the database. How can I make MapServer retrieves only necessary lines from the database instead of selecting all lines? This shouldn't be tough if I use MapScript, but Java/MapScript keeps crashing tomcat so have to give it up. -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Mon Apr 9 04:47:31 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 9 Apr 2007 07:47:31 -0400 Subject: Apache and Oracle Integration Problem. In-Reply-To: <29411189.75671176110323043.JavaMail.nabble@jubjub.nabble.com> Message-ID: joydip at ETRANSINFO.COM wrote: > Dear Stephen, > > I tried the shell script and also setting the environment on > htppd.conf file. The problem of 5oo internal error persists. The > apache logfile reports error while loading shared libraries: > libclntsh.so.10.1 > > My project is stuck. Can you please elaborate on the solution. > > Regards > > Joydip Shome Joydip, Please make sure you respond to the list so other can help and benefit. I think you need to post more specific details of what your script looks like and what is the exact error message you are getting. Since this solution works for me, I'm not sure I can guess what might be wrong on your system, so some more details would be helpful. -Steve From watry at STEAM.COAPS.FSU.EDU Mon Apr 9 06:59:59 2007 From: watry at STEAM.COAPS.FSU.EDU (Gary Watry) Date: Mon, 9 Apr 2007 09:59:59 -0400 Subject: Help with dbox? Message-ID: Would the author of the mapserv.js inside dbox please contact me I want to set a layer to STATUS on # not to STATUS default -- ---------------------------------------------------- The information transmitted is intended solely for the person or entity for which it is addressed and may contain confidential and/or privileged information. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this email in error, please contact the sender and delete the material from your computer. ---------------------------------------------------- Gary L. Watry GIS Coordinator Center for Ocean-Atmospheric Prediction Studies FSU / COAPS Johnson Building, RM 231 2035 East Paul Dirac Drive Tallahassee, Florida 32306-2840 Phone (850) 645-7457 E-Mail: watry at coaps.fsu.edu ------------------------------------------------------ From gooogle at FREE.FR Mon Apr 9 07:02:50 2007 From: gooogle at FREE.FR (=?ISO-8859-1?Q?J=E9r=F4me_Martin?=) Date: Mon, 9 Apr 2007 16:02:50 +0200 Subject: WCS from multiple netCDF returning only background image In-Reply-To: <460C5702.9030305@pobox.com> Message-ID: I'm currently working with Mapserver 4.10.1, and i already try the cvs version (Mapserver 4.99 i think). I'm don't know how to report this bug, but i will try. best regards, J?r?me Martin Frank Warmerdam a ?crit : > J?r?me Martin wrote: >> In fact the resolution pixel X must be the same as the resolution >> pixel Y, to do not strech on one axe the data. > > Ed / J?r?me, > > This is not expected behavior and if it persists in MapServer 4.10.1 > and/or > CVS-head I'd appreciate a bug report. > > One thing that is different when the aspect ratio is non-square is that > MapServer goes through more general resampling code (similar to when > reprojection is taking place), so if there are problems with the > coordinate system definitions on layers or the WCS request things might > fail. > > Best regards, From assefa at DMSOLUTIONS.CA Mon Apr 9 07:28:19 2007 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Mon, 9 Apr 2007 10:28:19 -0400 Subject: FCGI and INCLUDE In-Reply-To: <1175906526.c7eaf27ckalevala@myrealbox.com> Message-ID: Kalev Ala wrote: > Dear folks, > > I repeatable get the error message " msLoadMap(): Premature End-of-File. " when using INCLUDE directive in fastcgi mode. Seams like each mapserver process is able to process this kind of mapfile only once, second attempt throws this error. > Same mapserver binary in CGI mode works fine with same mapfile. > I use fcgi-2.4.0 and mapserver-4.10.1 under RHEL4. > > Thanks for your hint. > > Kalev > This issue seems to be related to what is reported in bugs : http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=2021 and http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=2045 They are still open issues but should be fixed before the next release. Best Regards, -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From giuseppe.derossi at EMAIL.IT Mon Apr 9 08:21:55 2007 From: giuseppe.derossi at EMAIL.IT (Giuseppe De Rossi) Date: Mon, 9 Apr 2007 17:21:55 +0200 Subject: varibale angle in annotation layer Message-ID: Hi, I wrote the following definition of a layer: LAYER NAME 'MyAnnotationShape' TYPE ANNOTATION DATA 'MyAnnotationShape' STATUS DEFAULT LABELITEM "STRING" CLASSITEM "STRING" CLASS NAME 'All' EXPRESSION /./ STYLE COLOR -1 -1 -1 END LABEL COLOR 255 255 51 ANTIALIAS TRUE SHADOWCOLOR 0 0 0 SHADOWSIZE 1 1 TYPE BITMAP FONT arial SIZE LARGE POSITION CC PARTIALS FALSE BUFFER 2 END END END The layer is well displayed but the labels have all the same orientation (orizhontal), but the original orientation of those label is variable, which is the instruction in order to have a varible orientation ? How can I use the column ANGLE in the dbf which defines for each label its correct orientation ? Thanks in advance Giu -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Fai crescere i tuoi sogni. Prestiti semplici e veloci Rate da 20 euro al mese Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=6332&d=20070409 From assefa at DMSOLUTIONS.CA Mon Apr 9 08:53:16 2007 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Mon, 9 Apr 2007 11:53:16 -0400 Subject: varibale angle in annotation layer In-Reply-To: Message-ID: Giuseppe De Rossi wrote: > Hi, > I wrote the following definition of a layer: > > LAYER > NAME 'MyAnnotationShape' > TYPE ANNOTATION > DATA 'MyAnnotationShape' > STATUS DEFAULT > LABELITEM "STRING" > CLASSITEM "STRING" > > CLASS > NAME 'All' > EXPRESSION /./ > STYLE > COLOR -1 -1 -1 > END > LABEL > COLOR 255 255 51 > ANTIALIAS TRUE > SHADOWCOLOR 0 0 0 > SHADOWSIZE 1 1 > TYPE BITMAP > FONT arial > SIZE LARGE > POSITION CC > PARTIALS FALSE > BUFFER 2 > END > > END > > END > > The layer is well displayed but the labels have all the same orientation > (orizhontal), but the original orientation of those label is variable, which > is the instruction in order to have a varible orientation ? > How can I use the column ANGLE in the dbf which defines for each label its > correct orientation ? > > Thanks in advance > > Giu > > -- > Email.it, the professional e-mail, gratis per te: http://www.email.it/f > > Sponsor: > Fai crescere i tuoi sogni. Prestiti semplici e veloci > Rate da 20 euro al mese > Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=6332&d=20070409 > -- ---------------------------------------------------------------- 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 Mon Apr 9 08:54:55 2007 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Mon, 9 Apr 2007 11:54:55 -0400 Subject: varibale angle in annotation layer In-Reply-To: Message-ID: Hi There, You should be able to use the LABELANGLEITEM http://mapserver.gis.umn.edu/docs/reference/mapfile/layer Later, Giuseppe De Rossi wrote: > Hi, > I wrote the following definition of a layer: > > LAYER > NAME 'MyAnnotationShape' > TYPE ANNOTATION > DATA 'MyAnnotationShape' > STATUS DEFAULT > LABELITEM "STRING" > CLASSITEM "STRING" > > CLASS > NAME 'All' > EXPRESSION /./ > STYLE > COLOR -1 -1 -1 > END > LABEL > COLOR 255 255 51 > ANTIALIAS TRUE > SHADOWCOLOR 0 0 0 > SHADOWSIZE 1 1 > TYPE BITMAP > FONT arial > SIZE LARGE > POSITION CC > PARTIALS FALSE > BUFFER 2 > END > > END > > END > > The layer is well displayed but the labels have all the same orientation > (orizhontal), but the original orientation of those label is variable, which > is the instruction in order to have a varible orientation ? > How can I use the column ANGLE in the dbf which defines for each label its > correct orientation ? > > Thanks in advance > > Giu > > -- > Email.it, the professional e-mail, gratis per te: http://www.email.it/f > > Sponsor: > Fai crescere i tuoi sogni. Prestiti semplici e veloci > Rate da 20 euro al mese > Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=6332&d=20070409 > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From David.Fawcett at STATE.MN.US Mon Apr 9 08:59:41 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 9 Apr 2007 10:59:41 -0500 Subject: varibale angle in annotation layer In-Reply-To: A Message-ID: Giuseppe, To create rotated labels, you need to use TrueType fonts. It looks like you are already trying to use TrueType, just change the value of TYPE (in your LABEL block) to truetype. At the LAYER level, you will also need to add LABELANGLEITEM. See the mapfile reference at: http://mapserver.gis.umn.edu/docs/reference/mapfile/layer David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Giuseppe De Rossi Sent: Monday, April 09, 2007 10:22 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] varibale angle in annotation layer Hi, I wrote the following definition of a layer: LAYER NAME 'MyAnnotationShape' TYPE ANNOTATION DATA 'MyAnnotationShape' STATUS DEFAULT LABELITEM "STRING" CLASSITEM "STRING" CLASS NAME 'All' EXPRESSION /./ STYLE COLOR -1 -1 -1 END LABEL COLOR 255 255 51 ANTIALIAS TRUE SHADOWCOLOR 0 0 0 SHADOWSIZE 1 1 TYPE BITMAP FONT arial SIZE LARGE POSITION CC PARTIALS FALSE BUFFER 2 END END END The layer is well displayed but the labels have all the same orientation (orizhontal), but the original orientation of those label is variable, which is the instruction in order to have a varible orientation ? How can I use the column ANGLE in the dbf which defines for each label its correct orientation ? Thanks in advance Giu -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Fai crescere i tuoi sogni. Prestiti semplici e veloci Rate da 20 euro al mese Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=6332&d=20070409 From Bob.Basques at CI.STPAUL.MN.US Mon Apr 9 10:50:32 2007 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Mon, 9 Apr 2007 12:50:32 -0500 Subject: Token for Legend grpahic size in a template. Message-ID: All, Is there a token available for a TEMPLATE to get back the image graphic pixel size of a composite legend? Anyone know of an example for this anywhere? Does it need to be a unique call of some sort? Thanks bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsimon at UNIVALI.BR Mon Apr 9 10:51:58 2007 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Mon, 9 Apr 2007 14:51:58 -0300 Subject: Apache and Oracle Integration Problem. In-Reply-To: <461A27D3.1030203@swoodbridge.com> Message-ID: Hi folks, I already had some problems between Oracle and Apache. 99% of then was with environments and permissions. The first thing to check is if the folder (/lib) inside the Oracle Home have the "read" permission, for all groups. Remember that the Apache use a special user and group to create the threads and the services. Another thing is with the SELinux, check if in your SO is enable this option. You can disable it or change the rules to Apache. The enviroments is another part, you can define it inside the httpd.conf (this option will work for Mapscript). If you want to define it for CGI, the best way is to define inside the service that start the Apache (usually in /etc/init.d/...), another way is do the export's for all user. Remember to export the ORACLE_HOME, ORACLE_BASE and ORACLE_SID. Best regards. ------------------------------------------------- Fernando Simon UMN Mapserver and Oracle Spatial developer ------------------------------------------------- Stephen Woodbridge wrote: > joydip at ETRANSINFO.COM wrote: >> Dear Stephen, >> >> I tried the shell script and also setting the environment on >> htppd.conf file. The problem of 5oo internal error persists. The >> apache logfile reports error while loading shared libraries: >> libclntsh.so.10.1 >> >> My project is stuck. Can you please elaborate on the solution. >> >> Regards >> >> Joydip Shome > > Joydip, > > Please make sure you respond to the list so other can help and benefit. > > I think you need to post more specific details of what your script > looks like and what is the exact error message you are getting. Since > this solution works for me, I'm not sure I can guess what might be > wrong on your system, so some more details would be helpful. > > -Steve > From nbarker at ITTVIS.COM Mon Apr 9 16:22:37 2007 From: nbarker at ITTVIS.COM (Norman Barker) Date: Tue, 10 Apr 2007 00:22:37 +0100 Subject: WCS from multiple netCDF returning only background image Message-ID: Hi, sorry I haven't been home for a month :-) and when I do I was going to send a sample of data and a bug report. If this is the same bug then it was reopened last year and is here http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1372 please add your comments, and Ed too. thanks, Norman -----Original Message----- From: UMN MapServer Users List on behalf of J?r?me Martin Sent: Mon 4/9/2007 3:02 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] WCS from multiple netCDF returning only background image I'm currently working with Mapserver 4.10.1, and i already try the cvs version (Mapserver 4.99 i think). I'm don't know how to report this bug, but i will try. best regards, J?r?me Martin Frank Warmerdam a ?crit : > J?r?me Martin wrote: >> In fact the resolution pixel X must be the same as the resolution >> pixel Y, to do not strech on one axe the data. > > Ed / J?r?me, > > This is not expected behavior and if it persists in MapServer 4.10.1 > and/or > CVS-head I'd appreciate a bug report. > > One thing that is different when the aspect ratio is non-square is that > MapServer goes through more general resampling code (similar to when > reprojection is taking place), so if there are problems with the > coordinate system definitions on layers or the WCS request things might > fail. > > Best regards, -------------- next part -------------- An HTML attachment was scrubbed... URL: From adams at TERRESTRIS.DE Tue Apr 10 00:01:24 2007 From: adams at TERRESTRIS.DE (Till Adams) Date: Tue, 10 Apr 2007 09:01:24 +0200 Subject: Apache and Oracle Integration Problem. In-Reply-To: <461A7D3E.4090808@univali.br> Message-ID: Joydip, we also had strange configuration problems getting oracle (locator) run with umn (and later on especially with php). I put a kind of HowTo on the umn webpage, find it here: http://mapserver.gis.umn.edu/docs/howto/Configure%20Oracle%20and%20UMN I hope that helps - more experiences and comments are welcome! Till > Hi folks, > I already had some problems between Oracle and Apache. 99% of then > was with environments and permissions. > The first thing to check is if the folder (/lib) inside the Oracle > Home have the "read" permission, for all groups. Remember that the > Apache use a special user and group to create the threads and the > services. > Another thing is with the SELinux, check if in your SO is enable > this option. You can disable it or change the rules to Apache. > The enviroments is another part, you can define it inside the > httpd.conf (this option will work for Mapscript). If you want to > define it for CGI, the best way is to define inside the service that > start the Apache (usually in /etc/init.d/...), another way is do the > export's for all user. > Remember to export the ORACLE_HOME, ORACLE_BASE and ORACLE_SID. > Best regards. > > ------------------------------------------------- > Fernando Simon > UMN Mapserver and Oracle Spatial developer > ------------------------------------------------- > > > Stephen Woodbridge wrote: > >> joydip at ETRANSINFO.COM wrote: >> >>> Dear Stephen, >>> >>> I tried the shell script and also setting the environment on >>> htppd.conf file. The problem of 5oo internal error persists. The >>> apache logfile reports error while loading shared libraries: >>> libclntsh.so.10.1 >>> >>> My project is stuck. Can you please elaborate on the solution. >>> >>> Regards >>> >>> Joydip Shome >> >> >> Joydip, >> >> Please make sure you respond to the list so other can help and benefit. >> >> I think you need to post more specific details of what your script >> looks like and what is the exact error message you are getting. Since >> this solution works for me, I'm not sure I can guess what might be >> wrong on your system, so some more details would be helpful. >> >> -Steve >> > -- ***************************************** SensorGIS 'Geodaten in Echtzeit' http://www.sensorgis.de http://www.terrestris.de ***************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, H. Paulsen& T. Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * http://www.terrestris.de From mizerkin at WIRZ-KOELN.DE Tue Apr 10 01:27:53 2007 From: mizerkin at WIRZ-KOELN.DE (Dmitri Mizerkin) Date: Tue, 10 Apr 2007 10:27:53 +0200 Subject: GetFeatureInfo XML-Template Message-ID: Hi list! I would like to make a GetFeatureInfo-Request and get an xml-file with the results, where all the fields would be listed (something similar to this response in this example: http://interops.esri.com/help/wms_gfi.htm). As far as I know, in this case there should be an xml-template provided. The problem is that I don't know all the field-names of the query-layer. Is it possible to set up the template so, that it lists all the fields, not having to type the fieldnames into the template manually? Thanks in advance! Regards, ________________________________ Dmitri Mizerkin -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at OSGIS.NL Tue Apr 10 02:01:35 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Tue, 10 Apr 2007 11:01:35 +0200 Subject: GetFeatureInfo XML-Template Message-ID: You can just use gml_include_items "all" and have Mapserver output GML. You don't need any XML template for this. http://mapserver.gis.umn.edu/docs/howto/wms_server Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Dmitri Mizerkin Naar: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] GetFeatureInfo XML-Template Datum: 10/04/07 06:58 > > > > > > > > > > > > > > > > Hi list! > >   > > I would like to make a GetFeatureInfo-Request and get > an xml-file with the results, where all the fields would be listed (something > similar to this response in this example: http://interops.esri.com/help/wms_gfi.htm). > > > As far as I know, in this case there should be an xml-template > provided. The problem is that I don’t know all the field-names of the > query-layer. Is it possible to set up the template so, that it lists all the > fields, not having to type the fieldnames into the template manually? > >   > > Thanks in advance! > >   > > Regards, > > ________________________________ > > Dmitri Mizerkin > >   > > > > > > > From kalevala at MYREALBOX.COM Tue Apr 10 02:56:08 2007 From: kalevala at MYREALBOX.COM (Kalev Ala) Date: Tue, 10 Apr 2007 04:56:08 -0500 Subject: FCGI and INCLUDE Message-ID: Thank you, Assefa. It's certainly 2045. This clear things for me. Kalev On Mon, 9 Apr 2007 10:28:19 -0400, Yewondwossen Assefa wrote: >Kalev Ala wrote: >> Dear folks, >> >> I repeatable get the error message " msLoadMap(): Premature End-of-File. " when using INCLUDE directive in fastcgi mode. Seams like each mapserver process is able to process this kind of mapfile only once, second attempt throws this error. >> Same mapserver binary in CGI mode works fine with same mapfile. >> I use fcgi-2.4.0 and mapserver-4.10.1 under RHEL4. >> >> Thanks for your hint. >> >> Kalev >> >This issue seems to be related to what is reported in bugs : > >http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=2021 and >http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=2045 > >They are still open issues but should be fixed before the next release. > >Best Regards, > >-- >---------------------------------------------------------------- >Assefa Yewondwossen >Software Analyst > >Email: assefa at dmsolutions.ca >http://www.dmsolutions.ca/ > >Phone: (613) 565-5056 (ext 14) >Fax: (613) 565-0925 >---------------------------------------------------------------- From lm at GEOSPHERE.FR Tue Apr 10 03:07:18 2007 From: lm at GEOSPHERE.FR (=?iso-8859-1?Q?Lo=EFc_MAZE?=) Date: Tue, 10 Apr 2007 12:07:18 +0200 Subject: [PHPMapScript] Pb to remove the text string of a class obj Message-ID: Hi all, I have another troubles with the latest version of PHPMapScript. I succeeded in setting the text string for a class object with the function settext. For example, I use the following code : $oClass->settext("my_text"); It works perfectly but I sometimes would like to remove the "TEXT" property which was created in the map file by the function settext. I have tried to set this property with a default value such as "" or null, but the effect is to set the "TEXT" property with a blank value "" and not to remove it. Is there any way to remove this property with PHPMapScript ? Any information in this regard will be really appreciated. Many thanks in advance, Lo?c -------------- next part -------------- An HTML attachment was scrubbed... URL: From mikesaunt at GMAIL.COM Tue Apr 10 04:04:28 2007 From: mikesaunt at GMAIL.COM (Mike Saunt) Date: Tue, 10 Apr 2007 12:04:28 +0100 Subject: ArcSDE, FastCGI+IIS In-Reply-To: Message-ID: Hi Shannon You've caught me out here as I hadn't finished the documentation as in the end we didn't use direct access to ArcSDE! The problem was with the FastCGI dropping out quite alot and therefore the CGI execution would fail intermitently. The other problems was also to do with licensing for ArcSDE (i.e. ArcSDE client access libary costs) and also the fact that upgrades to ArcSDE aren't always instantaneous i.e. can take the whole internet mapping down whilst the DB is ugraded over a few days. In the end we implemented some caching with OGR tools to basically download at regular intervals (every 15 minutes via Windows Scheduled tasks) to shapefiles. This has proven effective and very resiliant as our scripts detect a failure if the ArcSDE database isn't available and leaves the previous cached shapefile therefore the internet site doesn't do down. I'd be interested to look at using FASTCGI with ArcSDE again but at present don't have a business need as the above works really well. Let me know if you still want the documentation and I'll send over... Kind Regards Mike On 05/04/07, X Sun wrote: > > Hi Mike Saunt and/or Howard, > > I found out the post and knew that Mike had already done a great job > making > FastCGI + IIS + SDE works. > > Do we have already had a documented procedure to set up FastCGI + IIS? > > I did not find it from the web site. Could you pass me a copy of > document > if there is one already? I am now frustrating reading document here and > there to see how to make them works together > > My email is sunx at saic.com > > Thanks a lot. > > Shannon Sun > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mikesaunt at GMAIL.COM Tue Apr 10 04:10:37 2007 From: mikesaunt at GMAIL.COM (Mike Saunt) Date: Tue, 10 Apr 2007 12:10:37 +0100 Subject: Possible MapServer development work In-Reply-To: Message-ID: Thanks Richard The highlighting now works a treat - I used an Expression in the end i.e. qstring=(([UPRN] = 100061562714) OR ([UPRN] = 100061561248)) The only other thing I would love to do via the straight CGI is to be able to specify a negativeTOLERANCE. Bascially I have some land parcels (Polygons) that have planning applications (Polygons) over teh top. I want the user to be able to select one or more Land Parcels (done above) and then only find the Planning Applications that Intersect but don't BUTT onto as they would come from a different property. The easiest way I thought of was to have a negative tolerance of say 10cm or so but MapServer doesn't seem to like negative TOLERANCES. Any thoughts? Cheers mike On 04/04/07, Richard Greenwood wrote: > > On 4/3/07, Mike Saunt wrote: > > > I want a user to be able to interactively from multiple clicks on a map > to > > select features and then they can issue a query taking all selected > features > > and doing feature intersect queries against multiple other > layers. Pretty > > simple! > > You could do an asynchronous call to mapserv for each click and get > the each feature ID back, and store it in a JavaScrit array. > > > I'm fine with writing wrapper code to allow the user to select a feature > at > > a point - MODE=QUERY - and then find and store the feature id's for > > subsequent calls to the CGI > > > > Is there a way to be able to pass multiple feature id's to MapServer to > > highlight as selected in a maps? > > Yes, with mode=itemnquery > > Then in the same fashion can I pass > > multiple feature id's (acting as the selection again) to then be used in > a > > NQUERY to find which features from other layers intersect. > > If I was doing it, and if I could use postgis, I would pass the > parameters to a php page, run the query in postgis, get the feature > IDs back, and then do another itemnquery with mapserv to graphically > render it. This would not require mapscript, but would require php or > some other server-side language that can connect to postgis. > > Rich > > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.cole at UAI.COM Tue Apr 10 08:00:11 2007 From: john.cole at UAI.COM (John Cole) Date: Tue, 10 Apr 2007 08:00:11 -0700 Subject: highlighting a feature in mode=map Message-ID: Is it possible to highlight a feature when using mode=map? I've tried setting up the qlayer and qstring to select a feature by a gid, but I'm not getting the desired results. What are the recommended ways of highlighting a feature without returning additional information about the feature (I have an ajax call that has already returned that info). Thanks, John -- View this message in context: http://www.nabble.com/highlighting-a-feature-in-mode%3Dmap-tf3553524.html#a9921526 Sent from the Mapserver - User mailing list archive at Nabble.com. From bfischer at HOUSTONENGINEERINGINC.COM Tue Apr 10 08:59:52 2007 From: bfischer at HOUSTONENGINEERINGINC.COM (Fischer, Brian) Date: Tue, 10 Apr 2007 10:59:52 -0500 Subject: highlighting a feature in mode=map In-Reply-To: A<9921526.post@talk.nabble.com> Message-ID: Hi John, I am not aware of a way to highlight a feature using mode=map, but another technique I use is to create a transparent image that is stacked on top of your main map image. Then use some javascript that set's this top image's src with a URL that looks something like this http://douglas.mapmorph.net/cgi-bin/mapserv.exe?mode=nquerymap&map=/doug las_mapmorph/mapmorph/douglas_queries.map&mapext=632381.525426633+155753 .54781032618+654398.6836237176+172737.2848856585&mapsize=678+523&layers= parcel_query&mapshape=640694.7886986885+169847.12695123293+640694.788698 6885+169848.12695123293+640695.7886986885+169848.12695123293+640695.7886 986885+169847.12695123293&mapsize=678+523 I've found this technique works very well. You can see it working in one of my applications at http://douglas.mapmorph.net/mapmorph/ Hope this helps, 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 John Cole Sent: Tuesday, April 10, 2007 10:00 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] highlighting a feature in mode=map Is it possible to highlight a feature when using mode=map? I've tried setting up the qlayer and qstring to select a feature by a gid, but I'm not getting the desired results. What are the recommended ways of highlighting a feature without returning additional information about the feature (I have an ajax call that has already returned that info). Thanks, John -- View this message in context: http://www.nabble.com/highlighting-a-feature-in-mode%3Dmap-tf3553524.htm l#a9921526 Sent from the Mapserver - User mailing list archive at Nabble.com. From David.Fawcett at STATE.MN.US Tue Apr 10 09:32:19 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 10 Apr 2007 11:32:19 -0500 Subject: highlighting a feature in mode=map In-Reply-To: A<2EF6E1058C047344B4DE0FD14111916759759A@hex01.houstonengineeringinc.com> Message-ID: John, I have done this when I want to highlight a particular county in the state. To do this, I need to know the ID (FIPS) for the poly. I create a URL variable that is passed to mapserv in the url and then use that variable in an expression in a class in the counties layer. If you can successfully use GID in an expression in your map file, you can do it this way. Here is an example LAYER: LAYER NAME basemap STATUS DEFAULT TYPE POLYGON DATA 'county' CLASSITEM "COUNTY_FIP" CLASS NAME "Low" EXPRESSION ('[COUNTY_FIP]' in '%group1%') OUTLINECOLOR 0 0 0 COLOR 255 204 204 END END Here is a sample URL: http://192.1.1.109/cgi-bin/mapserv?mode=map&map=/maps/emissions.map&grou p1=001,003,005,007,009,011,013,015,017,019,021 This will highlight all of the counties that have a code listed in the URL. This was clipped from an app where I create a thematic map of counties and create the legend by passing all of the info in through the URL. It uses multiple URL vars and multiple classes. It is kind of a cool way to use MapServer. The map file has no attribute data associated with it beyond the feature IDs. You can define the high and low values for each thematic class on the client side and then build both the map and a legend. To create the legend, I make a separate call to a different map file. By passing in the thematic class value range as the name of its respective class, the value range shows up in the legend. e.g. http://192.1.1.109/cgi-bin/mapserv?mode=legend&map=/maps/emissionslegend .map&map_basemap_class_1_name=1%20to%201000&map_basemap_class_2_name=100 0%20to%2010,000&map_basemap_class_3_name=10,000%20to%20100,000&map_basem ap_class_4_name=100,000%20to%201,000,000 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Fischer, Brian Sent: Tuesday, April 10, 2007 11:00 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] highlighting a feature in mode=map Hi John, I am not aware of a way to highlight a feature using mode=map, but another technique I use is to create a transparent image that is stacked on top of your main map image. Then use some javascript that set's this top image's src with a URL that looks something like this http://douglas.mapmorph.net/cgi-bin/mapserv.exe?mode=nquerymap&map=/doug las_mapmorph/mapmorph/douglas_queries.map&mapext=632381.525426633+155753 .54781032618+654398.6836237176+172737.2848856585&mapsize=678+523&layers= parcel_query&mapshape=640694.7886986885+169847.12695123293+640694.788698 6885+169848.12695123293+640695.7886986885+169848.12695123293+640695.7886 986885+169847.12695123293&mapsize=678+523 I've found this technique works very well. You can see it working in one of my applications at http://douglas.mapmorph.net/mapmorph/ Hope this helps, 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 John Cole Sent: Tuesday, April 10, 2007 10:00 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] highlighting a feature in mode=map Is it possible to highlight a feature when using mode=map? I've tried setting up the qlayer and qstring to select a feature by a gid, but I'm not getting the desired results. What are the recommended ways of highlighting a feature without returning additional information about the feature (I have an ajax call that has already returned that info). Thanks, John -- View this message in context: http://www.nabble.com/highlighting-a-feature-in-mode%3Dmap-tf3553524.htm l#a9921526 Sent from the Mapserver - User mailing list archive at Nabble.com. From kylli.tiits at GMAIL.COM Tue Apr 10 09:32:52 2007 From: kylli.tiits at GMAIL.COM (=?ISO-8859-1?Q?K=FClli_Tiits?=) Date: Tue, 10 Apr 2007 19:32:52 +0300 Subject: highlighting a feature in mode=map In-Reply-To: <2EF6E1058C047344B4DE0FD14111916759759A@hex01.houstonengineeringinc.com> Message-ID: Hi, May-be there is other methods as well, but I think that easier than the below is to use a queryfile. You first have to save the results (the highlighted objects) to a queryfile and then add the queryfile part, queryfile=/x/xxx.qy, to the map request url. Actually the CGI reference does not mention, that the queryfile would work in map mode, but in practice I have found it working.. K?lli Fischer, Brian wrote: > Hi John, > > I am not aware of a way to highlight a feature using mode=map, but > another technique I use is to create a transparent image that is stacked > on top of your main map image. Then use some javascript that set's this > top image's src with a URL that looks something like this > http://douglas.mapmorph.net/cgi-bin/mapserv.exe?mode=nquerymap&map=/doug > las_mapmorph/mapmorph/douglas_queries.map&mapext=632381.525426633+155753 > .54781032618+654398.6836237176+172737.2848856585&mapsize=678+523&layers= > parcel_query&mapshape=640694.7886986885+169847.12695123293+640694.788698 > 6885+169848.12695123293+640695.7886986885+169848.12695123293+640695.7886 > 986885+169847.12695123293&mapsize=678+523 > > I've found this technique works very well. You can see it working in one > of my applications at http://douglas.mapmorph.net/mapmorph/ > > Hope this helps, > 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 John Cole > Sent: Tuesday, April 10, 2007 10:00 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] highlighting a feature in mode=map > > Is it possible to highlight a feature when using mode=map? I've tried > setting up the qlayer and qstring to select a feature by a gid, but I'm > not getting the desired results. > > What are the recommended ways of highlighting a feature without > returning additional information about the feature (I have an ajax call > that has already returned that info). > > Thanks, > > John > -- > View this message in context: > http://www.nabble.com/highlighting-a-feature-in-mode%3Dmap-tf3553524.htm > l#a9921526 > Sent from the Mapserver - User mailing list archive at Nabble.com. From john.cole at UAI.COM Tue Apr 10 12:53:23 2007 From: john.cole at UAI.COM (John Cole) Date: Tue, 10 Apr 2007 12:53:23 -0700 Subject: highlighting a feature in mode=map In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FB301@s-sp22.pca.state.mn.us> Message-ID: David, This works quite well, but I'm wondering if this kind of query opens a sql layer up to a sql injection attack? Are MapServer's expressions scrubbed for this possibility? Thanks, John John, I have done this when I want to highlight a particular county in the state. To do this, I need to know the ID (FIPS) for the poly. I create a URL variable that is passed to mapserv in the url and then use that variable in an expression in a class in the counties layer. If you can successfully use GID in an expression in your map file, you can do it this way. Here is an example LAYER: LAYER NAME basemap STATUS DEFAULT TYPE POLYGON DATA 'county' CLASSITEM "COUNTY_FIP" CLASS NAME "Low" EXPRESSION ('[COUNTY_FIP]' in '%group1%') OUTLINECOLOR 0 0 0 COLOR 255 204 204 END END -- View this message in context: http://www.nabble.com/highlighting-a-feature-in-mode%3Dmap-tf3553524.html#a9926997 Sent from the Mapserver - User mailing list archive at Nabble.com. From fabio at GEOJA.COM.BR Tue Apr 10 14:37:05 2007 From: fabio at GEOJA.COM.BR (Fabio Leme de Almeida) Date: Tue, 10 Apr 2007 18:37:05 -0300 Subject: Number of Layer Features Message-ID: Hello All, I'm using PostGres/Posgis. How can I get the number of features existing at one specific Layer ? I'm trying to use the attribute layerObj.numitems but it always returns 0 (zero items). Help-me please !! ;o) Thank's, Fabio -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Tue Apr 10 15:13:16 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 10 Apr 2007 17:13:16 -0500 Subject: FOSS4G 2007 Registration is Open Message-ID: 2007 Free and Open Source Software for Geospatial (FOSS4G) Conference September 24-27, Victoria Conference Centre, Victoria, BC. ONLINE REGISTRATION IS NOW OPEN! We are pleased to announce that online registration for the 2007 Free and Open Source Software for Geospatial conference (FOSS4G 2007) is now open. FOSS4G 2007 is the annual event bringing together the people and companies who create, use, and support open source geospatial software. Register now by logging onto http://www.foss4g2007.org/ and clicking on Register in the sidebar. You will be directed automatically to the online registration site. Register prior to the July 27th Early Bird Deadline to save on your registration fees! Take advantage of the opportunity FOSS4G 2007 offers to network with fellow geospatial data professionals, renew old acquaintances and make new ones. For up-to-date information, registration and/or to submit a presentation, please visit the conference website at http://www.foss4g2007.org/. EXHIBITOR AND SPONSORSHIP OPPORTUNITIES For information on exhibitor and sponsorship opportunities, see http://foss4g2007.org/sponsors or contact Paul Ramsey, Conference Chair via email at pramsey at foss4g2007.org. SUBMIT A PRESENTATION Submit a presentation online at http://www.foss4g2007.org/presentations/. The deadline for submissions is June 29th 2007. FOSS4G presentations are 25 minute talks, with 5 minute question and answer sessions at the end. Presentations cover the use or development of open source geospatial software. Anyone can submit a presentation proposal and take part in the conference as a presenter. More information is available on the presentations page on the website. We hope to see you in Victoria, Canada in September! From nelson.little at TENIX.COM Tue Apr 10 18:44:05 2007 From: nelson.little at TENIX.COM (LITTLE Nelson) Date: Wed, 11 Apr 2007 11:44:05 +1000 Subject: Tomcat IMAGEPATH IMAGEURL Message-ID: Hello, I am trying to create a servlet application to run on the Tomcat 5.5 web server. In my map file I have IMAGEPATH "c://mapserver_temp//" IMAGEURL "temp" How does the image url know to point to the image path? I suppose I need to create some kind of alias that maps "temp" to "c:/mapserver_temp" but I don't know how to do this? Can anyone offer some help please? Thanks Nelson Disclaimer : The contents of this e-mail including any attachments are intended only for the person or entity to which this e-mail is addressed. If you are not, or believe you may not be, the intended recipient, please advise the sender immediately by return e-mail, delete this e-mail and destroy any copies. Tenix does not warrant nor guarantee that this email communication is free from errors, virus, interception or interference. From anhtin at GMAIL.COM Tue Apr 10 19:21:10 2007 From: anhtin at GMAIL.COM (anhtin) Date: Tue, 10 Apr 2007 19:21:10 -0700 Subject: Show only Ploygon or Point orPolyline Message-ID: hi all i am developing gis application use Mapserver(API) and PostGis and use mapfile On my app have function show to a region positon on the map Ex: i have layer Province into is District (Province and Distric is type Polygon) When i chose a province so my map show only Province i chosed and only all distric into this porvince. But Other polygon on Province and distric must visible how will i do that ???? -- View this message in context: http://www.nabble.com/Show-only-Ploygon-or-Point-orPolyline-tf3556930.html#a9932106 Sent from the Mapserver - User mailing list archive at Nabble.com. From nelson.little at TENIX.COM Tue Apr 10 23:18:09 2007 From: nelson.little at TENIX.COM (LITTLE Nelson) Date: Wed, 11 Apr 2007 16:18:09 +1000 Subject: Tomcat IMAGEPATH IMAGEURL Message-ID: Dave, Thanks for your reply. Firstly I updated my map file such that it now reads: IMAGEPATH "/mapserver_temp/" IMAGEURL "temp" I am able to write the image (image_file.png) via the mapserver object to the IMAGEPATH location with no troubles. However, how do I display that resultant image file in a web page? I thought the image would be available via http://loalhost:8080/myapp/temp/image_file.png Can anyone offer some help? Cheers, Nelson -----Original Message----- From: Dave Potts [mailto:dave.potts at pinan.co.uk] Sent: Wednesday, 11 April 2007 2:09 PM To: LITTLE Nelson Subject: Re: [UMN_MAPSERVER-USERS] Tomcat IMAGEPATH IMAGEURL LITTLE Nelson wrote: > Hello, > > I am trying to create a servlet application to run on the Tomcat 5.5 web > server. In my map file I have > > IMAGEPATH "c://mapserver_temp//" > IMAGEURL "temp" > > How does the image url know to point to the image path? I suppose I need > to create some kind of alias that maps "temp" to "c:/mapserver_temp" but > I don't know how to do this? Can anyone offer some help please? > > Thanks > Nelson > > Disclaimer : > The contents of this e-mail including any attachments are intended only > for the person or entity to which this e-mail is addressed. If you are not, > or believe you may not be, the intended recipient, please advise the sender > immediately by return e-mail, delete this e-mail and destroy any copies. > Tenix does not warrant nor guarantee that this email communication is free > from errors, virus, interception or interference. > > When I ran mapserver and tomcat together on a mac platform, I said things like TEMPLATE ../WEB-INF/post_transform_directory/en-gb/mob_resources.xml IMAGEPATH "../tmp/" IMAGEURL "tmp/" LOG "/tmp/map.out" I can't comment on the window platform to much, but I suspect that saying IMAGEPATH "c:\\mapserver_temp\\" IMAGEURL "temp" may help, or perhaps justing using \ instead. TO a java program a file seperator is / or \, but mapserver is a C program, so it may choose only to understand the \ character. D. Disclaimer : The contents of this e-mail including any attachments are intended only for the person or entity to which this e-mail is addressed. If you are not, or believe you may not be, the intended recipient, please advise the sender immediately by return e-mail, delete this e-mail and destroy any copies. Tenix does not warrant nor guarantee that this email communication is free from errors, virus, interception or interference. From nelson.little at TENIX.COM Wed Apr 11 00:32:09 2007 From: nelson.little at TENIX.COM (LITTLE Nelson) Date: Wed, 11 Apr 2007 17:32:09 +1000 Subject: MapServerTest Suite Source Code Message-ID: Hi all, Is it possible to download the source code used to generate the MapServer Test Suite examples? (http://maps.dnr.state.mn.us/mapserver_demos/tests46/) Just looking at the page source is not nearly enough to understand what is going on under the hood. Cheers, Nelson Disclaimer : The contents of this e-mail including any attachments are intended only for the person or entity to which this e-mail is addressed. If you are not, or believe you may not be, the intended recipient, please advise the sender immediately by return e-mail, delete this e-mail and destroy any copies. Tenix does not warrant nor guarantee that this email communication is free from errors, virus, interception or interference. From umberto.nicoletti at GMAIL.COM Wed Apr 11 00:17:49 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Wed, 11 Apr 2007 09:17:49 +0200 Subject: Tomcat IMAGEPATH IMAGEURL In-Reply-To: <200704110618.l3B6I97I030384@sprint1.tenix.com> Message-ID: Tomcat by itself does not provide a handy way of creating aliases for directories outside the application root. You should use apache as a frontend to tomcat (with the jk connector) and then define an alias (http://httpd.apache.org/docs/2.0/mod/mod_alias.html#alias) to map 'c:/mapserver_temp' to the 'temp' subdirectory of the url. You should consider the use of apache as a tomcat frontend anyway because of many other features like load balancing, faster serving of static data (css, images, etc), better security, ssl, etc HTH, Umberto On 4/11/07, LITTLE Nelson wrote: > Dave, > > Thanks for your reply. > > Firstly I updated my map file such that it now reads: > > IMAGEPATH "/mapserver_temp/" > IMAGEURL "temp" > > I am able to write the image (image_file.png) via the mapserver object > to the IMAGEPATH location with no troubles. However, how do I display > that resultant image file in a web page? I thought the image would be > available via http://loalhost:8080/myapp/temp/image_file.png > > Can anyone offer some help? > > Cheers, > Nelson > > -----Original Message----- > From: Dave Potts [mailto:dave.potts at pinan.co.uk] > Sent: Wednesday, 11 April 2007 2:09 PM > To: LITTLE Nelson > Subject: Re: [UMN_MAPSERVER-USERS] Tomcat IMAGEPATH IMAGEURL > > LITTLE Nelson wrote: > > Hello, > > > > I am trying to create a servlet application to run on the Tomcat 5.5 > web > > server. In my map file I have > > > > IMAGEPATH "c://mapserver_temp//" > > IMAGEURL "temp" > > > > How does the image url know to point to the image path? I suppose I > need > > to create some kind of alias that maps "temp" to "c:/mapserver_temp" > but > > I don't know how to do this? Can anyone offer some help please? > > > > Thanks > > Nelson > > > > Disclaimer : > > The contents of this e-mail including any attachments are intended > only > > for the person or entity to which this e-mail is addressed. If you > are not, > > or believe you may not be, the intended recipient, please advise the > sender > > immediately by return e-mail, delete this e-mail and destroy any > copies. > > Tenix does not warrant nor guarantee that this email communication is > free > > from errors, virus, interception or interference. > > > > > When I ran mapserver and tomcat together on a mac platform, I said > things like > > > TEMPLATE ../WEB-INF/post_transform_directory/en-gb/mob_resources.xml > IMAGEPATH "../tmp/" > IMAGEURL "tmp/" > LOG "/tmp/map.out" > > I can't comment on the window platform to much, but I suspect that > saying > > IMAGEPATH "c:\\mapserver_temp\\" > IMAGEURL "temp" > may help, or perhaps justing using \ instead. > > TO a java program a file seperator is / or \, but mapserver is a C > program, so it may choose only to understand the \ character. > > D. > > > > > > > > Disclaimer : > The contents of this e-mail including any attachments are intended only > for the person or entity to which this e-mail is addressed. If you are not, > or believe you may not be, the intended recipient, please advise the sender > immediately by return e-mail, delete this e-mail and destroy any copies. > Tenix does not warrant nor guarantee that this email communication is free > from errors, virus, interception or interference. > From ml.dje at GEOCONTENT.DE Wed Apr 11 01:16:30 2007 From: ml.dje at GEOCONTENT.DE (Dirk Jesko) Date: Wed, 11 Apr 2007 10:16:30 +0200 Subject: How to restrict output formats for WMS? Message-ID: Hello, we would like to configure a WMS that only supports JPEG. Currently, the mapfile only contains an OUTPUTFORMAT block for JPEG, but the GetCapabilities still lists png, jpeg, gif, wbmp, and tiff. How can I restrict the output formats? Thanks for any help, Dirk From stephen.jones at VAISALA.COM Wed Apr 11 01:13:17 2007 From: stephen.jones at VAISALA.COM (Stephen Jones) Date: Wed, 11 Apr 2007 09:13:17 +0100 Subject: Tomcat IMAGEPATH IMAGEURL Message-ID: This may be of interest. I have a java class responsible for creating a mapObj (in my case I populate the layers from info in an Oracle Table .. there are no physical map files). The class has a method that creates an imageObj and returns it as bytes. This is the code below public byte[] showMapAnswer(){ aMap = (vaisalaMap) mapWindows.get(currentMapWindow); mapObj thisMap = aMap.getIcemap(); imageObj mapImg = thisMap.draw(); return mapImg.getBytes(); } I have similar methods for returning reference maps, scalebar etc. Then in my servlet I get the instance of my map and assign the byte from the above method to a byte array and write this to the response stream HttpSession session = request.getSession(true); System.out.print("*******************"+'\n'); System.out.print("Draw : Session Called as "+session.getId()+'\n'); System.out.print("*******************"+'\n'); mapView thismapWindow ; thismapWindow = (mapView) session.getAttribute("maps") ; int reqView; if (request.getParameter("view")==null){ reqView=0; } else { reqView = Integer.parseInt(request.getParameter("view")); } thismapWindow.setCurrentMapWindow(reqView); OutputStream o = response.getOutputStream(); byte[] imgData = thismapWindow.showMapAnswer(); o.write(imgData); o.flush(); Then in your html or jsp you can simply add an image tag with the source being the above Servlet. Doing this avoids me having to save anything to disk. Stephen -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Umberto Nicoletti Sent: 11 April 2007 08:18 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Tomcat IMAGEPATH IMAGEURL Tomcat by itself does not provide a handy way of creating aliases for directories outside the application root. You should use apache as a frontend to tomcat (with the jk connector) and then define an alias (http://httpd.apache.org/docs/2.0/mod/mod_alias.html#alias) to map 'c:/mapserver_temp' to the 'temp' subdirectory of the url. You should consider the use of apache as a tomcat frontend anyway because of many other features like load balancing, faster serving of static data (css, images, etc), better security, ssl, etc HTH, Umberto On 4/11/07, LITTLE Nelson wrote: > Dave, > > Thanks for your reply. > > Firstly I updated my map file such that it now reads: > > IMAGEPATH "/mapserver_temp/" > IMAGEURL "temp" > > I am able to write the image (image_file.png) via the mapserver object > to the IMAGEPATH location with no troubles. However, how do I display > that resultant image file in a web page? I thought the image would be > available via http://loalhost:8080/myapp/temp/image_file.png > > Can anyone offer some help? > > Cheers, > Nelson > > -----Original Message----- > From: Dave Potts [mailto:dave.potts at pinan.co.uk] > Sent: Wednesday, 11 April 2007 2:09 PM > To: LITTLE Nelson > Subject: Re: [UMN_MAPSERVER-USERS] Tomcat IMAGEPATH IMAGEURL > > LITTLE Nelson wrote: > > Hello, > > > > I am trying to create a servlet application to run on the Tomcat 5.5 > web > > server. In my map file I have > > > > IMAGEPATH "c://mapserver_temp//" > > IMAGEURL "temp" > > > > How does the image url know to point to the image path? I suppose I > need > > to create some kind of alias that maps "temp" to "c:/mapserver_temp" > but > > I don't know how to do this? Can anyone offer some help please? > > > > Thanks > > Nelson > > > > Disclaimer : > > The contents of this e-mail including any attachments are intended > only > > for the person or entity to which this e-mail is addressed. If you > are not, > > or believe you may not be, the intended recipient, please advise the > sender > > immediately by return e-mail, delete this e-mail and destroy any > copies. > > Tenix does not warrant nor guarantee that this email communication is > free > > from errors, virus, interception or interference. > > > > > When I ran mapserver and tomcat together on a mac platform, I said > things like > > > TEMPLATE ../WEB-INF/post_transform_directory/en-gb/mob_resources.xml > IMAGEPATH "../tmp/" > IMAGEURL "tmp/" > LOG "/tmp/map.out" > > I can't comment on the window platform to much, but I suspect that > saying > > IMAGEPATH "c:\\mapserver_temp\\" > IMAGEURL "temp" > may help, or perhaps justing using \ instead. > > TO a java program a file seperator is / or \, but mapserver is a C > program, so it may choose only to understand the \ character. > > D. > > > > > > > > Disclaimer : > The contents of this e-mail including any attachments are intended only > for the person or entity to which this e-mail is addressed. If you are not, > or believe you may not be, the intended recipient, please advise the sender > immediately by return e-mail, delete this e-mail and destroy any copies. > Tenix does not warrant nor guarantee that this email communication is free > from errors, virus, interception or interference. > From joseramonlopez at GMAIL.COM Wed Apr 11 02:32:36 2007 From: joseramonlopez at GMAIL.COM (=?ISO-8859-1?Q?Jos=E9_Ram=F3n_L=F3pez?=) Date: Wed, 11 Apr 2007 11:32:36 +0200 Subject: WCS Black image. Message-ID: Hi list! I'm trying to configure mapsever to show images with float32 (NDVI) through WCS Server. The source images is an .img file. I had configured the map file like this. MAP NAME TEST STATUS ON SIZE 400 300 EXTENT 154590 4062740 579080 4300000 UNITS DD SHAPEPATH "../data" IMAGETYPE gtiff FONTSET "../etc/fonts.txt" SYMBOLSET "../etc/symbols.sym" DEBUG ON PROJECTION "init=epsg:23030" END OUTPUTFORMAT NAME GEOTIFF_FLOAT32 DRIVER "GDAL/GTiff" IMAGEMODE FLOAT32 MIMETYPE "image/tiff" EXTENSION "tif" END LAYER NAME "Test" STATUS ON PROCESSING "SCALE=AUTO" DUMP TRUE DATA "D:\Raster\MODIS\NDVI\NDVI_BN\NDVI2006_BN\test.img" TYPE RASTER METADATA "wcs_description" "test" "wcs_name" "test" "wcs_label" "test" "ocs_srs" "epsg:23030" "ows_extent" "165338.03 4066203.70 572211.36 4289103.56" "wcs_size" "7500 9000" "wcs_resolution" "231.7 231.7" "wcs_nativeformat" "raw binary" "wcs_bandcount" "1" "wcs_formats" "GEOTIFF_FLOAT32" END END END I have checked the pixel values and they are the same that the source image, but WCS only shows me a black image. Does anybody know how to resolv this problem? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at OSGIS.NL Wed Apr 11 02:39:57 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Wed, 11 Apr 2007 11:39:57 +0200 Subject: Examples of proprietary extensions that have improved MapServer? Message-ID: Hi Sean, MapDotNetServer seems to be one of them (at least they use the Mapserver MAP file format, so I am sure they must be using Mapserver somewhere under the hood): http://www.goisc.com/products.htm Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl There was a mention a while ago of a proprietary MapServer-based software with enhancements and bug fixes. This has made me curious. Does anybody have any examples of proprietary extensions to MapServer that have given back bug fixes and features to the open source community? I'm curious about proprietary, pay websites as well as MapServer-based commercial, off-the-shelf software. Cheers, Sean -- Sean Gillies http://zcologia.com/news From Steve.Lime at DNR.STATE.MN.US Wed Apr 11 05:57:45 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 11 Apr 2007 07:57:45 -0500 Subject: Possible MapServer development work Message-ID: Shared edges are a pain. You might try preprocessing a version of your planning applications layer and shrink 'em just a bit (10 cm). That way you remove the coincident lines and would get just cases where there is overlaps. I did that here for a polygon selection operation involving counties selecting other counties (we also hit quad boundaries and watersheds where touches weren't an issue). Worked great. I used ArcInfo to do the buffering but now you can use GEOS and one of the many clients that are out there, including MapScript. I think there's a buffer perl script example shipped with newer versions of MapServer. Steve >>> Mike Saunt 04/10/07 6:10 AM >>> Thanks Richard The highlighting now works a treat - I used an Expression in the end i.e. qstring=(([UPRN] = 100061562714) OR ([UPRN] = 100061561248)) The only other thing I would love to do via the straight CGI is to be able to specify a negativeTOLERANCE. Bascially I have some land parcels (Polygons) that have planning applications (Polygons) over teh top. I want the user to be able to select one or more Land Parcels (done above) and then only find the Planning Applications that Intersect but don't BUTT onto as they would come from a different property. The easiest way I thought of was to have a negative tolerance of say 10cm or so but MapServer doesn't seem to like negative TOLERANCES. Any thoughts? Cheers mike On 04/04/07, Richard Greenwood wrote: > > On 4/3/07, Mike Saunt wrote: > > > I want a user to be able to interactively from multiple clicks on a map > to > > select features and then they can issue a query taking all selected > features > > and doing feature intersect queries against multiple other > layers. Pretty > > simple! > > You could do an asynchronous call to mapserv for each click and get > the each feature ID back, and store it in a JavaScrit array. > > > I'm fine with writing wrapper code to allow the user to select a feature > at > > a point - MODE=QUERY - and then find and store the feature id's for > > subsequent calls to the CGI > > > > Is there a way to be able to pass multiple feature id's to MapServer to > > highlight as selected in a maps? > > Yes, with mode=itemnquery > > Then in the same fashion can I pass > > multiple feature id's (acting as the selection again) to then be used in > a > > NQUERY to find which features from other layers intersect. > > If I was doing it, and if I could use postgis, I would pass the > parameters to a php page, run the query in postgis, get the feature > IDs back, and then do another itemnquery with mapserv to graphically > render it. This would not require mapscript, but would require php or > some other server-side language that can connect to postgis. > > Rich > > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > From Steve.Lime at DNR.STATE.MN.US Wed Apr 11 06:00:29 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 11 Apr 2007 08:00:29 -0500 Subject: MapServerTest Suite Source Code Message-ID: Nelson: All the files for each example are linked to on each sample page. I could zip the whole thing up though if you want. I'll hang a link off the index page you mention below later today (and drop the list a note). Steve >>> LITTLE Nelson 04/11/07 2:32 AM >>> Hi all, Is it possible to download the source code used to generate the MapServer Test Suite examples? (http://maps.dnr.state.mn.us/mapserver_demos/tests46/) Just looking at the page source is not nearly enough to understand what is going on under the hood. Cheers, Nelson Disclaimer : The contents of this e-mail including any attachments are intended only for the person or entity to which this e-mail is addressed. If you are not, or believe you may not be, the intended recipient, please advise the sender immediately by return e-mail, delete this e-mail and destroy any copies. Tenix does not warrant nor guarantee that this email communication is free from errors, virus, interception or interference. From assefa at DMSOLUTIONS.CA Wed Apr 11 06:38:02 2007 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 11 Apr 2007 09:38:02 -0400 Subject: How to restrict output formats for WMS? In-Reply-To: <461C995E.2010109@geocontent.de> Message-ID: Hi There, This is not possible right now but should be available at next release (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=455) Later, Dirk Jesko wrote: > Hello, > > we would like to configure a WMS that only supports JPEG. Currently, the > mapfile only contains an OUTPUTFORMAT block for JPEG, but the > GetCapabilities still lists png, jpeg, gif, wbmp, and tiff. > > How can I restrict the output formats? > > Thanks for any help, > Dirk > -- ---------------------------------------------------------------- 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 Apr 11 06:48:39 2007 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 11 Apr 2007 07:48:39 -0600 Subject: Examples of proprietary extensions that have improved MapServer? In-Reply-To: Message-ID: Have they funded any development of MapServer? Contributed patches? Sean Bart van den Eijnden (OSGIS) wrote: > Hi Sean, > > MapDotNetServer seems to be one of them (at least they use the Mapserver MAP > file format, so I am sure they must be using Mapserver somewhere under the > hood): > > http://www.goisc.com/products.htm > > Best regards, > Bart > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > There was a mention a while ago of a proprietary MapServer-based > software with enhancements and bug fixes. This has made me curious. Does > anybody have any examples of proprietary extensions to MapServer that > have given back bug fixes and features to the open source community? I'm > curious about proprietary, pay websites as well as MapServer-based > commercial, off-the-shelf software. > > Cheers, > Sean > From David.Fawcett at STATE.MN.US Wed Apr 11 06:58:14 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 11 Apr 2007 08:58:14 -0500 Subject: highlighting a feature in mode=map In-Reply-To: A<9926997.post@talk.nabble.com> Message-ID: John, I know that there are quite a few people using database backends to MapServer. I will let the developers comment on the extent of input validation and protection against SQL injection. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of John Cole Sent: Tuesday, April 10, 2007 2:53 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] highlighting a feature in mode=map David, This works quite well, but I'm wondering if this kind of query opens a sql layer up to a sql injection attack? Are MapServer's expressions scrubbed for this possibility? Thanks, John John, I have done this when I want to highlight a particular county in the state. To do this, I need to know the ID (FIPS) for the poly. I create a URL variable that is passed to mapserv in the url and then use that variable in an expression in a class in the counties layer. If you can successfully use GID in an expression in your map file, you can do it this way. Here is an example LAYER: LAYER NAME basemap STATUS DEFAULT TYPE POLYGON DATA 'county' CLASSITEM "COUNTY_FIP" CLASS NAME "Low" EXPRESSION ('[COUNTY_FIP]' in '%group1%') OUTLINECOLOR 0 0 0 COLOR 255 204 204 END END -- View this message in context: http://www.nabble.com/highlighting-a-feature-in-mode%3Dmap-tf3553524.htm l#a9926997 Sent from the Mapserver - User mailing list archive at Nabble.com. From cgackstatter at GMAIL.COM Wed Apr 11 07:05:57 2007 From: cgackstatter at GMAIL.COM (Christina) Date: Wed, 11 Apr 2007 16:05:57 +0200 Subject: postgis layer query In-Reply-To: <87fed7f90704110701r1cafc70t2237590660b01da1@mail.gmail.com> Message-ID: Hallo all, I am trying to do a query an Postgis Layer. In my Postgis Layer there is a tablespace with more than 1000 rows. Every row is a line on my map. When I click on a line, I get all the lines in the tablespace queried. Is it possible, to get only the line queried where I clicked on, and not the whole tablespace? I am using Mapscript. I hope, somebody can help me! Thanks in advance. Best regards! -------------- next part -------------- An HTML attachment was scrubbed... URL: From bogdan at HLEVCA.COM Wed Apr 11 08:30:49 2007 From: bogdan at HLEVCA.COM (Bogdan Hlevca) Date: Wed, 11 Apr 2007 10:30:49 -0500 Subject: Python mapscript crashes in _mapscript.imageObj_getSWFBytes Message-ID: Hello, I have a python mapscript application, which used to work fine with mapserver 4.8. After I upgraded to version 4.10 it crashes in libc. I tracked it down to a line in mapscript.py: def getSWFBytes(*args): return _mapscript.imageObj_getSWFBytes(*args) I suspect that this is related to the recent changes made to make several attributes immutable, but I might be wrong. I am using eclipse & pydev to debug , but I am wondering if there is any tool I can use to debug the C code further other than printing with printf and setting assertion statements. Any help would be appreciated. Thanks Bogdan From szekerest at GMAIL.COM Wed Apr 11 09:34:08 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Wed, 11 Apr 2007 18:34:08 +0200 Subject: Examples of proprietary extensions that have improved MapServer? In-Reply-To: <461CE737.7090309@frii.com> Message-ID: Sean, I think they will share the problems with us if they have any, such as: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1994 Instead of making inhouse fixes regularly. Keep it up, guys, Best regards, Tamas 2007/4/11, Sean Gillies : > Have they funded any development of MapServer? Contributed patches? > > Sean > > Bart van den Eijnden (OSGIS) wrote: > > Hi Sean, > > > > MapDotNetServer seems to be one of them (at least they use the Mapserver MAP > > file format, so I am sure they must be using Mapserver somewhere under the > > hood): > > > > http://www.goisc.com/products.htm > > > > Best regards, > > Bart > > > > -- > > Bart van den Eijnden > > OSGIS, Open Source GIS > > http://www.osgis.nl > > > > There was a mention a while ago of a proprietary MapServer-based > > software with enhancements and bug fixes. This has made me curious. Does > > anybody have any examples of proprietary extensions to MapServer that > > have given back bug fixes and features to the open source community? I'm > > curious about proprietary, pay websites as well as MapServer-based > > commercial, off-the-shelf software. > > > > Cheers, > > Sean > > > From szekerest at GMAIL.COM Wed Apr 11 10:34:49 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Wed, 11 Apr 2007 19:34:49 +0200 Subject: Number of Layer Features In-Reply-To: <019801c77bb8$62c38c50$284aa4f0$@com.br> Message-ID: Have you called layerObj.open() ? Best regards, Tamas 2007/4/10, Fabio Leme de Almeida : > > > > > Hello All, > > > > I'm using PostGres/Posgis. > > > > How can I get the number of features existing at one specific Layer ? > > > > I'm trying to use the attribute layerObj.numitems but it always returns 0 > (zero items). > > > > Help-me please !! ;o) > > > > Thank's, > > > > Fabio > > From fabio at GEOJA.COM.BR Wed Apr 11 11:43:02 2007 From: fabio at GEOJA.COM.BR (Fabio Leme de Almeida) Date: Wed, 11 Apr 2007 15:43:02 -0300 Subject: Number of Layer Features In-Reply-To: Message-ID: Tamas, I'm using the following: for (int i = 0; i < map.numlayers; i++) { layerObj Layer = map.getLayer(i); numFeatures = Layer.numitems; } Like I have said, numFeatures always returns zero. As you can see, I don't call the Layer.Open(); method. At this example, is it necessary ? When execute "layerObj Layer = map.getLayer(i);" the method "Open()" is not internally called ? Thank's again, Fabio Fabio Leme de Almeida GeoJ? Mapas Digitais http://www.geoja.com.br -----Original Message----- From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: quarta-feira, 11 de abril de 2007 14:35 To: Fabio Leme de Almeida Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Number of Layer Features Have you called layerObj.open() ? Best regards, Tamas 2007/4/10, Fabio Leme de Almeida : > > > > > Hello All, > > > > I'm using PostGres/Posgis. > > > > How can I get the number of features existing at one specific Layer ? > > > > I'm trying to use the attribute layerObj.numitems but it always returns 0 > (zero items). > > > > Help-me please !! ;o) > > > > Thank's, > > > > Fabio > > From Steve.Lime at DNR.STATE.MN.US Wed Apr 11 14:29:43 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 11 Apr 2007 16:29:43 -0500 Subject: MapServerTest Suite Source Code In-Reply-To: <461C959E0200008F0000906E@co5.dnr.state.mn.us> Message-ID: I zipped it up and added the link. Edit config.js in the main directory to configure for your site. Shouldn't need more than that. Steve >>> On 4/11/2007 at 8:00 AM, in message <461C959E0200008F0000906E at co5.dnr.state.mn.us>, Steve Lime wrote: > Nelson: All the files for each example are linked to on each sample page. > I could zip the whole thing up though if you want. I'll hang a link off the > index page you mention below later today (and drop the list a note). > > Steve > >>>> LITTLE Nelson 04/11/07 2:32 AM >>> > Hi all, > > Is it possible to download the source code used to generate the > MapServer Test Suite examples? > (http://maps.dnr.state.mn.us/mapserver_demos/tests46/) Just looking at > the page source is not nearly enough to understand what is going on > under the hood. > > Cheers, > Nelson > > Disclaimer : > The contents of this e-mail including any attachments are intended only > for the person or entity to which this e-mail is addressed. If you are not, > or believe you may not be, the intended recipient, please advise the sender > immediately by return e-mail, delete this e-mail and destroy any copies. > Tenix does not warrant nor guarantee that this email communication is free > from errors, virus, interception or interference. From szekerest at GMAIL.COM Wed Apr 11 15:21:01 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Thu, 12 Apr 2007 00:21:01 +0200 Subject: Number of Layer Features In-Reply-To: <003701c77c69$3d50bc20$b7f23460$@com.br> Message-ID: 2007/4/11, Fabio Leme de Almeida : > Tamas, > > I'm using the following: > > for (int i = 0; i < map.numlayers; i++) > { > layerObj Layer = map.getLayer(i); > numFeatures = Layer.numitems; > } > > Like I have said, numFeatures always returns zero. > As you can see, I don't call the Layer.Open(); method. At this example, is > it necessary ? > When execute "layerObj Layer = map.getLayer(i);" the method "Open()" is not > internally called ? > No. getLayer retrieves only the reference of the layer and does not call any further operation on it. layerObj.open actually calls msLayerGetItems which is responsible to fill numitems in. Best regards, Tamas > > -----Original Message----- > From: Tamas Szekeres [mailto:szekerest at gmail.com] > Sent: quarta-feira, 11 de abril de 2007 14:35 > To: Fabio Leme de Almeida > Cc: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] Number of Layer Features > > Have you called layerObj.open() ? > > Best regards, > > Tamas > > 2007/4/10, Fabio Leme de Almeida : > > > > > > > > > > Hello All, > > > > > > > > I'm using PostGres/Posgis. > > > > > > > > How can I get the number of features existing at one specific Layer ? > > > > > > > > I'm trying to use the attribute layerObj.numitems but it always returns 0 > > (zero items). > > > > > > > > Help-me please !! ;o) > > > > > > > > Thank's, > > > > > > > > Fabio > > > > > > From Jacob.Delfos at MAUNSELL.COM Wed Apr 11 17:45:49 2007 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Thu, 12 Apr 2007 08:45:49 +0800 Subject: postgis layer query In-Reply-To: <87fed7f90704110705s888bf0x91c987f0ada16bec@mail.gmail.com> Message-ID: Hi Christina, Have you checked the tolerance and toleranceunits of the layer? For example, if you set tolerance to 4, and your units are degrees (rather than pixels), it would apply about 400km, which would be a lot. Then it may end up returning everything in your map. So maybe set toleranceunits to pixels, and the amount to something sensible, and try again. Hope this helps, Jacob ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christina Sent: 11 April 2007 22:06 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] postgis layer query Hallo all, I am trying to do a query an Postgis Layer. In my Postgis Layer there is a tablespace with more than 1000 rows. Every row is a line on my map. When I click on a line, I get all the lines in the tablespace queried. Is it possible, to get only the line queried where I clicked on, and not the whole tablespace? I am using Mapscript. I hope, somebody can help me! Thanks in advance. Best regards! This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jacob.Delfos at MAUNSELL.COM Wed Apr 11 17:49:36 2007 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Thu, 12 Apr 2007 08:49:36 +0800 Subject: Number of Layer Features In-Reply-To: <003701c77c69$3d50bc20$b7f23460$@com.br> Message-ID: Fabio, Be aware that numitems returns the number of attributes, NOT the number of objects. Is that what you meant with "layer features"? I don't think there is a way to get the number of objects, unless you do it outside mapserver/mapscript. Only shapefiles can get an object count within mapscript. Depending on the circumstances, you *could* do a query, and get the number of results from the query. Regards, Jacob ? -----Original Message----- ? From: UMN MapServer Users List ? [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Fabio ? Leme de Almeida ? Sent: 12 April 2007 02:43 ? To: MAPSERVER-USERS at LISTS.UMN.EDU ? Subject: Re: [UMN_MAPSERVER-USERS] Number of Layer Features ? ? Tamas, ? ? I'm using the following: ? ? for (int i = 0; i < map.numlayers; i++) ? { ? layerObj Layer = map.getLayer(i); ? numFeatures = Layer.numitems; ? } ? ? Like I have said, numFeatures always returns zero. ? As you can see, I don't call the Layer.Open(); method. At ? this example, is ? it necessary ? ? When execute "layerObj Layer = map.getLayer(i);" the method ? "Open()" is not ? internally called ? ? ? Thank's again, ? ? Fabio ? ? Fabio Leme de Almeida ? GeoJ? Mapas Digitais ? http://www.geoja.com.br ? ? ? -----Original Message----- ? From: Tamas Szekeres [mailto:szekerest at gmail.com] ? Sent: quarta-feira, 11 de abril de 2007 14:35 ? To: Fabio Leme de Almeida ? Cc: MAPSERVER-USERS at lists.umn.edu ? Subject: Re: [UMN_MAPSERVER-USERS] Number of Layer Features ? ? Have you called layerObj.open() ? ? ? Best regards, ? ? Tamas ? ? 2007/4/10, Fabio Leme de Almeida : ? > ? > ? > ? > ? > Hello All, ? > ? > ? > ? > I'm using PostGres/Posgis. ? > ? > ? > ? > How can I get the number of features existing at one ? specific Layer ? ? > ? > ? > ? > I'm trying to use the attribute layerObj.numitems but it ? always returns 0 ? > (zero items). ? > ? > ? > ? > Help-me please !! ;o) ? > ? > ? > ? > Thank's, ? > ? > ? > ? > Fabio ? > ? > ? This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. From Maher_Karim at DORSCH.COM.JO Wed Apr 11 22:49:19 2007 From: Maher_Karim at DORSCH.COM.JO (Maher Karim) Date: Thu, 12 Apr 2007 07:49:19 +0200 Subject: postgis layer query In-Reply-To: <87fed7f90704110705s888bf0x91c987f0ada16bec@mail.gmail.com> Message-ID: Hello Christina, You should specify the mapunits for the map file e.g. UNITS METERS and use a proper tolerance distance in the layer which you want to query e.g. TOLERANCE 15 Do not forget to add specify the result fields in your metadata for the layer which you want to query. e.g. "RESULT_FIELDS" "DIAMETER" Regards Maher Abdel Karim Dorsch Water and Environment GIS systems analyst/programmer |---------+-------------------------------> | | Christina | | | | | | Sent by: UMN | | | MapServer Users List| | | | | | | | | | | | 04/11/2007 05:05 PM | | | Please respond to | | | Christina | |---------+-------------------------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| | | | To: MAPSERVER-USERS at LISTS.UMN.EDU | | cc: | | Subject: [UMN_MAPSERVER-USERS] postgis layer query | >--------------------------------------------------------------------------------------------------------------------------------------------------| Hallo all, I am trying to do a query an Postgis Layer. In my Postgis Layer there is a tablespace with more than 1000 rows. Every row is a line on my map. When I click on a line, I get all the lines in the tablespace queried. Is it possible, to get only the line queried where I clicked on, and not the whole tablespace? I am using Mapscript. I hope, somebody can help me! Thanks in advance. Best regards! From szekerest at GMAIL.COM Thu Apr 12 00:10:15 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Thu, 12 Apr 2007 09:10:15 +0200 Subject: Number of Layer Features In-Reply-To: <4997F456680DAD4DA1E042C40C463611C341D4@auper1ex002.au.aecomnet.com> Message-ID: In addition one can use the whichShapes, nextShape methods to iterate the available shapes within a rect. Or alternatively the Layer.GetFeatureCount in the GDAL/OGR C# API can also be used. Best regards, Tamas 2007/4/12, Delfos, Jacob : > Fabio, > > Be aware that numitems returns the number of attributes, NOT the number of objects. Is that what you meant with "layer features"? > I don't think there is a way to get the number of objects, unless you do it outside mapserver/mapscript. Only shapefiles can get an object count within mapscript. > Depending on the circumstances, you *could* do a query, and get the number of results from the query. > > Regards, > > Jacob > > > > > ? -----Original Message----- > ? From: UMN MapServer Users List > ? [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Fabio > ? Leme de Almeida > ? Sent: 12 April 2007 02:43 > ? To: MAPSERVER-USERS at LISTS.UMN.EDU > ? Subject: Re: [UMN_MAPSERVER-USERS] Number of Layer Features > ? > ? Tamas, > ? > ? I'm using the following: > ? > ? for (int i = 0; i < map.numlayers; i++) > ? { > ? layerObj Layer = map.getLayer(i); > ? numFeatures = Layer.numitems; > ? } > ? > ? Like I have said, numFeatures always returns zero. > ? As you can see, I don't call the Layer.Open(); method. At > ? this example, is > ? it necessary ? > ? When execute "layerObj Layer = map.getLayer(i);" the method > ? "Open()" is not > ? internally called ? > ? > ? Thank's again, > ? > ? Fabio > ? > ? Fabio Leme de Almeida > ? GeoJ? Mapas Digitais > ? http://www.geoja.com.br > ? > ? > ? -----Original Message----- > ? From: Tamas Szekeres [mailto:szekerest at gmail.com] > ? Sent: quarta-feira, 11 de abril de 2007 14:35 > ? To: Fabio Leme de Almeida > ? Cc: MAPSERVER-USERS at lists.umn.edu > ? Subject: Re: [UMN_MAPSERVER-USERS] Number of Layer Features > ? > ? Have you called layerObj.open() ? > ? > ? Best regards, > ? > ? Tamas > ? > ? 2007/4/10, Fabio Leme de Almeida : > ? > > ? > > ? > > ? > > ? > Hello All, > ? > > ? > > ? > > ? > I'm using PostGres/Posgis. > ? > > ? > > ? > > ? > How can I get the number of features existing at one > ? specific Layer ? > ? > > ? > > ? > > ? > I'm trying to use the attribute layerObj.numitems but it > ? always returns 0 > ? > (zero items). > ? > > ? > > ? > > ? > Help-me please !! ;o) > ? > > ? > > ? > > ? > Thank's, > ? > > ? > > ? > > ? > Fabio > ? > > ? > > ? > > This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. > From jmp at GEOSYS.COM Thu Apr 12 00:17:37 2007 From: jmp at GEOSYS.COM (Jean Michel PIERRET) Date: Thu, 12 Apr 2007 09:17:37 +0200 Subject: C# processLegendTemplate Message-ID: Hi, How I can use processLegendTemplate in c# My source : map = new mapobj(@"C:\Fichier.map"); ... string str = null; string[] names = null, values = null; names = new string[] {"map"}; values = new string[] { @"C:\Fichier.map" }; str = map.processLegendTemplate(names, values, names.Length); ... Error : {"msFreeHashItems(): Hash table error. Can't free NULL table;msFreeHashItems(): Hash table error. Can't free NULL table;msFreeHashItems(): Hash table error. Can't free NULL table"} Thanks for your help. Jean-michel PIERRET - Poste 376 Tel : +33 (0)5 62 47 80 76 Mail : jmp at geosys.com GEOSYS SA -------------- next part -------------- An HTML attachment was scrubbed... URL: From Dejan.Gambin at PULA.HR Thu Apr 12 01:31:49 2007 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Thu, 12 Apr 2007 10:31:49 +0200 Subject: Mapserver site availability Message-ID: Hi, Does someone know when will the Mapserver site be available (I can't reach it today)? Sorry for impatience but I need some info there ASAP... regards, dejan From umberto.nicoletti at GMAIL.COM Thu Apr 12 01:40:19 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 12 Apr 2007 10:40:19 +0200 Subject: Mapserver site availability In-Reply-To: Message-ID: It seems that the machine hosting bugzilla has been compromised, so it *could* be that the two things are related. I'll forward this message to mapserver-dev. Umberto On 4/12/07, Gambin Dejan wrote: > Hi, > > Does someone know when will the Mapserver site be available (I can't > reach it today)? > > Sorry for impatience but I need some info there ASAP... > > regards, dejan > From gregor at HOSTGIS.COM Thu Apr 12 07:58:11 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Thu, 12 Apr 2007 08:58:11 -0600 Subject: Mapserver site availability In-Reply-To: <75b4b93e0704120140o14c694d6m1213d5b39f026d56@mail.gmail.com> Message-ID: > On 4/12/07, Gambin Dejan wrote: >> Does someone know when will the Mapserver site be available (I can't >> reach it today)? >> Sorry for impatience but I need some info there ASAP... Hey, Dejan. Depending on the data (e.g. documentation?) you may be able to find it in the cache of the major search engines. Go to google and look up "mapscript class documentation" or whatever and use the "cache" link by the result. That may get you what you need. HTH -Gregor From frederik at REMOTE.ORG Thu Apr 12 09:35:34 2007 From: frederik at REMOTE.ORG (Frederik Ramm) Date: Thu, 12 Apr 2007 18:35:34 +0200 Subject: Raster layer problem (JPG/JPW) Message-ID: Hi, I asked this question on the mapserver-de list but had no replies, so I 'm escalating to the next level ;-) I'm sure it must be something simple I am overlooking but I cannot find it. I am trying to have mapserver create a raster layer from JPG/JPW files, and export that as WMS. As found in the readme documents, I created an index file: gdaltindex test.shp *.jpg Looking at the resulting test.shp, everything looks ok, I see a lot of nice little rectangles. My JPW files are in Gauss-Krueger coordinates and I want the WMS server to speak EPSG:4226, so I built the map file as follows: NAME DEMO WEB METADATA "wms_title" "WMS Demo Server" "wms_onlineresource" "http://localhost/mapserver/mapserv?map=demo.map&" "wms_srs" "EPSG:4326" END END PROJECTION "init=epsg:31468" END LAYER PROJECTION "init=epsg:31468" END METADATA "wms_title" "WMS Demo Server" "wms_onlineresource" "http://localhost/mapserver/mapserv?map=demo.map&" "wms_srs" "EPSG:4326" END NAME "DEMO" TILEINDEX "test.shp" TILEITEM "location" TYPE RASTER STATUS ON END Now if I do a "GetCapabilities" call to the WMS server, I get this (among other stuff): DEMO WMS Demo Server EPSG:4326 DEMO WMS Demo Server EPSG:4326 For some reason it decides that my original data are all at "-1,-1" in GK projection, and thranslates that to the funny lat/lon values you see. If I change EPSG:31468 to something else, then the -1,-1 stays the same but the lat/lon values change. There seems to be a problem with my tile index file; I ran strace on the apache process and found that after reading the map file, mapserver doesn't even *try* to read my test.shp: open("demo.map", O_RDONLY) = 3 [...] open("/usr/share/proj/proj_def.dat", O_RDONLY) = 4 read(4, "# Projection library defaults fi"..., 4096) = 261 [...] open("/usr/share/proj/epsg", O_RDONLY) = 4 [...] open("/usr/lib/gdalplugins", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT (No such file or directory) [...] write(1, "Content-type: application/vnd.og"..., 4096) = 4096 So it can't even be a problem with the location or format of the test.shp as otherwise I would have to see at least an attempt to open the file. Is my layer specification wrong? There are no warnings when I run the GetCapabilities... What's this line about the GDAL plugins, anything missing there? Mapserver ist compiled with DEBUG=MSDEBUG but a "DEBUG ON" in the map file doesn't increase verbosity. I have a Debian system with gdal-bin and libgdal1 installed. Does anybody have a clue what's wrong here? Bye Frederik -- Frederik Ramm ## eMail frederik at remote.org ## N49?00.09' E008?23.33' From kevin at PEOPLEGIS.COM Thu Apr 12 14:15:55 2007 From: kevin at PEOPLEGIS.COM (Kevin Flanders) Date: Thu, 12 Apr 2007 17:15:55 -0400 Subject: projection time loss Message-ID: I have several annotation shapefiles with several thousand labels each that I need to either project on-the-fly or pre-process and project beforehand. Would anyone care to comment on the performance hit this level of projection on the fly might have on my Mapserver application.. Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From hobu at IASTATE.EDU Thu Apr 12 14:33:51 2007 From: hobu at IASTATE.EDU (Howard Butler) Date: Thu, 12 Apr 2007 16:33:51 -0500 Subject: IIS and FastCGI Message-ID: All, I have been able to get FastCGI working with IIS and ArcSDE. Below is a description of what I did, and I hope someone can take it and turn it into a proper doc once they can confirm that it works for them. This description is for using just the MapServer CGI with FastCGI and IIS (5.1 on my case), not PHP or any of the other bindings, and not with Apache. Ingredients: - A recent MS4W build that has FastCGI support - The FastCGI ISAPI module from - Frickin' IIS Step 1) Get regular old mapserv.exe working. This can be hard. It was for me. Liberal use of depends.exe to go find all of the dlls you need to give the IUSR account execution permissions might be required. Step 2) Get it mapserv.exe rendering your data. Test that you can get an image by hitting your URL via WMS Step 3) Put the ISAPI DLL somewhere on your execution path. Add the ISAPI filter by going to your Web Site's Properties page and adding it on the ISAPI Filters tab. Step 4) Go to the properties page of your cgi-bin directory or virtual directory in the IIS admin. Choose "Configuration" and add a mapping. Pick the location of mapserv.exe for your executable and choose .fcgi (don't forget the .). Uncheck Script engine and Check that file exists. Step 5) Hack your registry with entries so the FastCGI ISAPI module. More information about the options available are in the readme.txt of the source version of the ISAPI module. You could also try using the following (after pulling out the email quoting and updating the AppPath to reflect the location of your mapserv.exe) and save it as a .reg file and load it into your registry. >Windows Registry Editor Version 5.00 > >[HKEY_LOCAL_MACHINE\SOFTWARE\FASTCGI] >"CustomVars"=hex:00 >"ThreadPoolSize"=dword:00000010 >"BypassAuth"=dword:00000001 >"Impersonate"=dword:00000001 >"StartServers"=dword:00000005 >"IncrementServers"=dword:00000002 >"MaxServers"=dword:00000025 > >[HKEY_LOCAL_MACHINE\SOFTWARE\FASTCGI\mapserv.fcgi] >"AppPath"="c:\\inetpub\\cgi-bin\\mapserv.exe" Step 6) Restart IIS. You may have already done this multiple times. You may have already restarted your machine multiple times. I'll admit to some significant dead chicken waving to get this to work. Step 7) Go to your URL, but instead of hitting mapserv.exe, hit mapserv.fcgi. It should return an image to you. If it complains about not finding proj.4 files, you may need to add CONFIG "PROJ_LIB" "C:\location\of\proj\data" or CONFIG "GDAL_DATA" "C:\location\of\gdal\data". Step 8) add PROCESSING "CLOSE_CONNECTION=DEFER" to all of the layers you want connection pooling to work with. This provides the most benefit for drivers with heavy connection overhead like SDE and Oracle. Good luck, Howard From giuseppe.derossi at EMAIL.IT Thu Apr 12 14:57:55 2007 From: giuseppe.derossi at EMAIL.IT (Giuseppe De Rossi) Date: Thu, 12 Apr 2007 23:57:55 +0200 Subject: map and hyperlinks Message-ID: Hi, is there the possibility to create a layer which contains a number of clickable icons so there is a redirection to another web page ? thanks in advance Giu -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Prestiti e Finanziamenti con un semplice click, scopri subito se sei finanziabile cliccando qui Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2910&d=20070412 From szekerest at GMAIL.COM Thu Apr 12 16:04:08 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Fri, 13 Apr 2007 01:04:08 +0200 Subject: C# processLegendTemplate In-Reply-To: <001e01c77cd2$a66f0ae0$2201a8c0@pcjmp> Message-ID: Hi, You might want to specify parameters for leg_group_html, leg_layer_html and leg_class_html respectively. Like for example: [leg_group_html opt_flag=12] [leg_group_name] [/leg_group_html] [leg_layer_html order_metadata=legend_order opt_flag=5] [metadata name=layer_title] [/leg_layer_html] [leg_class_html opt_flag=14] [leg_class_name] [/leg_class_html] Without adding these parameters msFreeHashTable(groupArgs); msFreeHashTable(layerArgs); msFreeHashTable(classArgs); will fail in generateLegendTemplate (maptemplate.c) I suggest to file a bug report on this issue with the requirement of allowing to specify these template elements without adding parameters. Best regards, Tamas 2007/4/12, Jean Michel PIERRET : > > Hi, > > > > How I can use processLegendTemplate in c# > > > > My source : > > > > map = new mapobj(@"C:\Fichier.map"); > > > > ... > > > > string str = null; > > string[] names = null, values = null; > > > > names = new string[] {"map"}; > > values = new string[] { @"C:\Fichier.map" }; > > > > str = map.processLegendTemplate(names, values, names.Length); > > > > ... > > > > Error : > > > > {"msFreeHashItems(): Hash table error. Can't free NULL > table;msFreeHashItems(): Hash table error. Can't free NULL > table;msFreeHashItems(): Hash table error. Can't free NULL table"} > > > > > > Thanks for your help. > > > > *Jean-michel PIERRET - Poste 376* > > *Tel : +33 (0)5 62 47 80 76* > *Mail* : jmp at geosys.com > *GEOSYS SA* > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeff at PROPERTYKEY.COM Thu Apr 12 16:29:25 2007 From: jeff at PROPERTYKEY.COM (Jeff Hoffmann) Date: Thu, 12 Apr 2007 18:29:25 -0500 Subject: Is it possible to randomly color polygons? Message-ID: I have a layer with a lot of polygons that I want to display, but I don't really care about what color those polygons are (they're not classified, I'm not going to have a legend, I just want them to be different colors so no 2 adjacent polygons are the same color, e.g. counties in a state or states in the US). It seems like it'd be a pretty common thing to want, but is there a reasonably easy way to do it? I'm guessing the best way would be to assign a class to each of the polygons, but is there some sort of algorithm to figure out how many colors I need and how to assign them? Any ideas? -- Jeff Hoffmann Head Plate Spinner PropertyKey.com From woodbri at SWOODBRIDGE.COM Thu Apr 12 17:10:36 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 12 Apr 2007 20:10:36 -0400 Subject: Is it possible to randomly color polygons? In-Reply-To: <461EC0D5.40906@propertykey.com> Message-ID: Jeff Hoffmann wrote: > I have a layer with a lot of polygons that I want to display, but I > don't really care about what color those polygons are (they're not > classified, I'm not going to have a legend, I just want them to be > different colors so no 2 adjacent polygons are the same color, e.g. > counties in a state or states in the US). It seems like it'd be a > pretty common thing to want, but is there a reasonably easy way to do > it? I'm guessing the best way would be to assign a class to each of the > polygons, but is there some sort of algorithm to figure out how many > colors I need and how to assign them? > > Any ideas? > No, color randomly does not work, You need to apply the Four Color theorem, see: http://www.math.gatech.edu/~thomas/FC/fourcolor.html Your best bet is to apply this to the polygons first and set an attribute column dor a color number and then as you suggest use mapserver class to select and render the color. -Steve From richard.greenwood at GMAIL.COM Thu Apr 12 20:17:59 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 12 Apr 2007 21:17:59 -0600 Subject: map and hyperlinks In-Reply-To: Message-ID: On 4/12/07, Giuseppe De Rossi wrote: > Hi, > is there the possibility to create a layer which contains a number of > clickable icons so there is a redirection to another web page ? > > thanks in advance > > Giu > Yes. In the LAYER > CLASS > TEMPLATE you can set the template to a url. -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From IANT at NAPIER.GOVT.NZ Thu Apr 12 21:10:25 2007 From: IANT at NAPIER.GOVT.NZ (Ian Tidy) Date: Fri, 13 Apr 2007 16:10:25 +1200 Subject: MapScript Wrapper for WxS Service Message-ID: Hi All, Does anyone have a WxS Service wrapper in PHP for MapServer 4.6 that they can share with me? Cheers Ian ______________________ Ian Tidy GIS Administrator Works Asset Department Napier City Council Hastings St, Private Bag 6010, Napier, New Zealand Phone +64-6-835-7579 Ext. 8115 Fax +64-6-834-4195 mailto:iant at napier.govt.nz http://www.napier.govt.nz ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ##################################################################################### ###################################################################### Attention: This e-mail message and accompanying data may contain information that is confidential and subject to legal privilege. Any information provided is given in good faith. However unless specifically stated to the contrary, Napier City Council accepts no liability for the content of this e-mail or for the consequences of any action taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient, you are notified that any use, dissemination, distribution or copying of this message or data is prohibited. If you received this e-mail message in error, please notify us immediately and erase all copies of this message and attachments. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at MMMTIKE.FI Thu Apr 12 23:10:46 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Fri, 13 Apr 2007 09:10:46 +0300 Subject: projection time loss Message-ID: Hi, Why not to make a fast test by using your own data? Adjust your map file (or make a copy) so that the shapefiles are served first in the native projection of the data, and then in some other projection. If you have more interest you can tune for example JMeter to send a few thousand requests for both setups. This should give you some usable information. Regards, -Jukka Rahkonen- -----Original Message----- From: UMN MapServer Users List on behalf of Kevin Flanders Sent: Fri 13.4.2007 0:15 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] projection time loss I have several annotation shapefiles with several thousand labels each that I need to either project on-the-fly or pre-process and project beforehand. Would anyone care to comment on the performance hit this level of projection on the fly might have on my Mapserver application.. Kevin From Dejan.Gambin at PULA.HR Thu Apr 12 23:37:22 2007 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Fri, 13 Apr 2007 08:37:22 +0200 Subject: Estimate number of active/registered MapServer users/developers Message-ID: Hi, I am holding a MapServer presentation next week and I would like to know an estimate number of active/registered MapServer users/developers, just for the information I want to give. Thanks very much regards, dejan p.s. this is my first MapServer presentation so if someone experienced has some additional suggestions on what to mention on such a presentation, to make the people more interested in MapServer, I will be glad to hear it :-)) From tim.bowden at WESTNET.COM.AU Thu Apr 12 23:56:35 2007 From: tim.bowden at WESTNET.COM.AU (Tim Bowden) Date: Fri, 13 Apr 2007 14:56:35 +0800 Subject: Estimate number of active/registered MapServer users/developers In-Reply-To: Message-ID: On Fri, 2007-04-13 at 08:37 +0200, Gambin Dejan wrote: > Hi, > > I am holding a MapServer presentation next week and I would like to know > an estimate number of active/registered MapServer users/developers, just > for the information I want to give. > > Thanks very much I don't think anyone has any idea about number of users as it's free. Using download numbers (I assume they're available?) you may be able to extrapolate changes in popularity wrt time rather than absolute numbers. Of course this won't take into account any packaging by distros which will change the numbers by an unknown amount. Trying to get even approximate usage numbers is a black art at best so I'm not sure anyone even tries to do it. > > regards, dejan > > p.s. this is my first MapServer presentation so if someone experienced > has some additional suggestions on what to mention on such a > presentation, to make the people more interested in MapServer, I will be > glad to hear it :-)) Hard to give you ideas as you haven't told us your audience profile. What interests geospatial people will be different from developers, managers etc. Tim Bowden -- Mapforge Geospatial Level 3, 267 St Georges Tce Perth, 6000 Western Australia Ph: 08 9261 7780 Fax: 08 9261 7700 Mob: 04 2316 7272 From jmp at GEOSYS.COM Fri Apr 13 00:19:43 2007 From: jmp at GEOSYS.COM (Jean Michel PIERRET) Date: Fri, 13 Apr 2007 09:19:43 +0200 Subject: [UMN_MAPSERVER-USERS] C# processLegendTemplate In-Reply-To: Message-ID: Hi, Thank you for your assistance, while seeking I found a solution to circumvent the problem. int ret; layerObj lo = null; classObj co = null; imageObj io = null; lo = this._map.getLayerByName(layer); io = co.createLegendIcon(this._map, lo, 19, 15); ret = co.drawLegendIcon(this._map, lo, 19, 15, io, 0, 0); Regards. Jean-michel PIERRET - Poste 376 Tel : +33 (0)5 62 47 80 76 Mail : jmp at geosys.com GEOSYS SA -----Message d'origine----- De : Tamas Szekeres [mailto:szekerest at gmail.com] Envoy? : vendredi 13 avril 2007 01:04 ? : Jean Michel PIERRET Cc : MAPSERVER-USERS at lists.umn.edu Objet : Re: [UMN_MAPSERVER-USERS] C# processLegendTemplate Hi, You might want to specify parameters for leg_group_html, leg_layer_html and leg_class_html respectively. Like for example: [leg_group_html opt_flag=12] [leg_group_name] [/leg_group_html] [leg_layer_html order_metadata=legend_order opt_flag=5] [metadata name=layer_title] [/leg_layer_html] [leg_class_html opt_flag=14] [leg_class_name] [/leg_class_html] Without adding these parameters msFreeHashTable(groupArgs); msFreeHashTable(layerArgs); msFreeHashTable(classArgs); will fail in generateLegendTemplate ( maptemplate.c) I suggest to file a bug report on this issue with the requirement of allowing to specify these template elements without adding parameters. Best regards, Tamas 2007/4/12, Jean Michel PIERRET : Hi, How I can use processLegendTemplate in c# My source : map = new mapobj(@"C:\Fichier.map"); ... string str = null; string[] names = null, values = null; names = new string[] {"map" }; values = new string[] { @"C:\Fichier.map" }; str = map.processLegendTemplate(names, values, names.Length); ... Error : {"msFreeHashItems(): Hash table error. Can't free NULL table;msFreeHashItems(): Hash table error. Can't free NULL table;msFreeHashItems(): Hash table error. Can't free NULL table"} Thanks for your help. Jean-michel PIERRET - Poste 376 Tel : +33 (0)5 62 47 80 76 Mail : jmp at geosys.com GEOSYS SA -------------- next part -------------- An HTML attachment was scrubbed... URL: From Dejan.Gambin at PULA.HR Fri Apr 13 00:41:35 2007 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Fri, 13 Apr 2007 09:41:35 +0200 Subject: Estimate number of active/registered MapServer users/developers Message-ID: Thanks Tim, I think I have incorrectly expressed myself. I was thinking on any "numbers" (statistical data or something like that) that could encourage people to seriously think about the MapServer alternative if they ever decide to implement a WebGIS solution (for example the number of members in the lists, the number of downloads as you suggested, or even better some relative numbers that show the MapServer growth in time). It is the "open source systems" and "Linux users conference" at the same time (not a GIS conference) so I expect more developers/system integrators than managers in the audience. regards, dejan > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Tim Bowden > Sent: Friday, April 13, 2007 8:57 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Estimate number of > active/registered MapServer users/developers > > On Fri, 2007-04-13 at 08:37 +0200, Gambin Dejan wrote: > > Hi, > > > > I am holding a MapServer presentation next week and I would like to > > know an estimate number of active/registered MapServer > > users/developers, just for the information I want to give. > > > > Thanks very much > > I don't think anyone has any idea about number of users as it's free. > Using download numbers (I assume they're available?) you may > be able to extrapolate changes in popularity wrt time rather > than absolute numbers. > Of course this won't take into account any packaging by > distros which will change the numbers by an unknown amount. > Trying to get even approximate usage numbers is a black art > at best so I'm not sure anyone even tries to do it. > > > > > regards, dejan > > > > p.s. this is my first MapServer presentation so if someone > experienced > > has some additional suggestions on what to mention on such a > > presentation, to make the people more interested in > MapServer, I will > > be glad to hear it :-)) > > Hard to give you ideas as you haven't told us your audience profile. > What interests geospatial people will be different from > developers, managers etc. > > Tim Bowden > -- > Mapforge Geospatial > Level 3, 267 St Georges Tce > Perth, 6000 > Western Australia > Ph: 08 9261 7780 > Fax: 08 9261 7700 > Mob: 04 2316 7272 > From jan.debelder at SADL.KULEUVEN.BE Fri Apr 13 00:40:52 2007 From: jan.debelder at SADL.KULEUVEN.BE (Jan De Belder) Date: Fri, 13 Apr 2007 02:40:52 -0500 Subject: Virtual Spatial Data & QUERY control ? Wrong result Message-ID: Hi all, Is there a way to use query or nquery on a virtual spatial data layer in MAPSERVER ? I cannot get this to work. Description of my setup: *windows xp pro, IIS & mapserver (latest ms4w). *I have a working virtual spatial data layer in my mapfile, with appropriate labelling *I have a lightweigth AJAX client which can identify (NQUERY) all layers and gives correct results Problem * when using the identify (NQUERY) on a virtual spatial data point, the query always returns the FIRST record in the ODBC source, not the one that is clicked on by the pointclick (Mind you, when I use exactly the same data in a shapefile, the identify works, and labelling on the virtual spatial data points also works). http://mapserver.gis.umn.edu/docs/howto/ogr_howto/#queries-through-ogr-format states that OGR queries should works the same as shapefiles. Does this not apply to Virtual Spatial Data layers ? Any thoughts ? Thanks Jan De Belder Katholieke Universiteit Leuven From giuseppe.derossi at EMAIL.IT Fri Apr 13 00:51:49 2007 From: giuseppe.derossi at EMAIL.IT (Giuseppe De Rossi) Date: Fri, 13 Apr 2007 09:51:49 +0200 Subject: map and hyperlinks Message-ID: Hi Richard, I tryed it but it seems that I can redirect to only one web page, I'd like to have into only one layer some icons, each of them should be have a different link . Can you explain me how I can do it ? I'm going to write a chunk of php code in order to do that but if there is an easier way the better. Thanks in advance for your kind attention Giu --------- Original Message -------- Da: Richard Greenwood To: MAPSERVER-USERS at LISTS.UMN.EDU Oggetto: Re: [UMN_MAPSERVER-USERS] map and hyperlinks Data: 13/04/07 05:20 > > > > On 4/12/07, Giuseppe De Rossi wrote: > > Hi, > > is there the possibility to create a layer which contains a number of > > clickable icons so there is a redirection to another web page ? > > > > thanks in advance > > > > Giu > > > > Yes. In the LAYER > CLASS > TEMPLATE you can set the template to a url. > > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > > > -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Fai crescere i tuoi sogni. Prestiti semplici e veloci Rate da 20 euro al mese Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=6334&d=20070413 From Kristian.Thy at ATKINSGLOBAL.COM Fri Apr 13 00:55:11 2007 From: Kristian.Thy at ATKINSGLOBAL.COM (Thy, Kristian) Date: Fri, 13 Apr 2007 09:55:11 +0200 Subject: Estimate number of active/registered MapServer users/developers In-Reply-To: A Message-ID: From: Gambin Dejan > I think I have incorrectly expressed myself. I was thinking on any > "numbers" (statistical data or something like that) that > could encourage people to seriously think about the MapServer > alternative if they ever decide to implement a WebGIS solution > (for example the number of members in the lists, the number of > downloads as you suggested, or even better some relative numbers > that show the MapServer growth in time). Numbers mean little here IMHO. Would you eat at McDonald's because lots of other people do? Go for the qualitative instead of the quantitative; have a look at http://mapserver.gis.umn.edu/gallery for some great examples. Unfortunately, I don't think MapServer has case studies like PostGIS's, which I found immensely useful as a presentational aid. I'd love to be proven wrong, though :) best regards, Kristian This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. The ultimate parent company of the Atkins Group is WS Atkins plc. Registered in England No. 1885586. Registered Office Woodcote Grove, Ashley Road, Epsom, Surrey KT18 5BW. Consider the environment. Please don't print this e-mail unless you really need to. From Dejan.Gambin at PULA.HR Fri Apr 13 01:05:28 2007 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Fri, 13 Apr 2007 10:05:28 +0200 Subject: Estimate number of active/registered MapServer users/developers Message-ID: Kristian, Of course I will talk about the MapServer quality and not the quantity, that is why I go to the conference. I will also present them my implementations, alive. The numbers are just an additional information that people always like to hear, nothing so important, I can't stay without it anyway. thanks regards, dejan > -----Original Message----- > From: Thy, Kristian [mailto:Kristian.Thy at atkinsglobal.com] > Sent: Friday, April 13, 2007 9:55 AM > To: Gambin Dejan; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: RE: [UMN_MAPSERVER-USERS] Estimate number of > active/registered MapServer users/developers > > From: Gambin Dejan > > I think I have incorrectly expressed myself. I was thinking on any > > "numbers" (statistical data or something like that) that could > > encourage people to seriously think about the MapServer > alternative if > > they ever decide to implement a WebGIS solution (for example the > > number of members in the lists, the number of downloads as you > > suggested, or even better some relative numbers that show the > > MapServer growth in time). > > Numbers mean little here IMHO. Would you eat at McDonald's > because lots of other people do? Go for the qualitative > instead of the quantitative; have a look at > http://mapserver.gis.umn.edu/gallery > for some great examples. Unfortunately, I don't think > MapServer has case studies like PostGIS's, which I found > immensely useful as a presentational aid. I'd love to be > proven wrong, though :) > > best regards, > Kristian > > > This email and any attached files are confidential and > copyright protected. If you are not the addressee, any > dissemination of this communication is strictly prohibited. > Unless otherwise expressly agreed in writing, nothing stated > in this communication shall be legally binding. > > The ultimate parent company of the Atkins Group is WS Atkins > plc. Registered in England No. 1885586. Registered Office > Woodcote Grove, Ashley Road, Epsom, Surrey KT18 5BW. > > Consider the environment. Please don't print this e-mail > unless you really need to. > From Piero.Cavalieri at HEIDI.IT Fri Apr 13 00:50:27 2007 From: Piero.Cavalieri at HEIDI.IT (Piero Cavalieri) Date: Fri, 13 Apr 2007 09:50:27 +0200 Subject: R: [UMN_MAPSERVER-USERS] map and hyperlinks In-Reply-To: A Message-ID: I think, You could do a "click" on the icon (which corresponds to a feature) in QUERY mode. Your feature, could have an attribute which as the redirect URL. When the query response come back, via JavaScript, you parse the response (or parse it on server side) and make a window.open (or a redirect) to that url. If you don't have URLs as features attributes, You could do it in 2 steps: maps feature ids with URLs and make a second query to that table (or file) after the parsing of the query response. Cheers Piero -----Messaggio originale----- Da: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Per conto di Giuseppe De Rossi Inviato: gioved? 12 aprile 2007 23.58 A: MAPSERVER-USERS at LISTS.UMN.EDU Oggetto: [UMN_MAPSERVER-USERS] map and hyperlinks Hi, is there the possibility to create a layer which contains a number of clickable icons so there is a redirection to another web page ? thanks in advance Giu -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Prestiti e Finanziamenti con un semplice click, scopri subito se sei finanziabile cliccando qui Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2910&d=20070412 From gisaalter at GMAIL.COM Fri Apr 13 02:22:46 2007 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Fri, 13 Apr 2007 11:22:46 +0200 Subject: Need some examples of serving tif & sid through WMS Message-ID: Hi all, Once again I'm stuck with my raster images. I'd like to serve them through WMS but I just can't figure out how to configure them... I've looked at the MS4W workshop example and tried to configure my map file likewise. No luck. So I'm turning to you guys, has anyone some basic examples for serving images throug WMS ? Thanks ! From Piero.Cavalieri at HEIDI.IT Fri Apr 13 03:42:30 2007 From: Piero.Cavalieri at HEIDI.IT (Piero Cavalieri) Date: Fri, 13 Apr 2007 12:42:30 +0200 Subject: disable dbox Message-ID: Hi all, I would like to implemet measure tool via dhtml. Currently I'm using dbox, but I would like to temporary disable It while digitizing and then restore dbox after the measure tool have done the job. I found dBox_reset() which require to implement a reset_handler(...) function. I'm a bit confused on how to disable dbox, so could someone explain me this ? Thanks Piero -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at GMAIL.COM Fri Apr 13 05:34:56 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Fri, 13 Apr 2007 06:34:56 -0600 Subject: disable dbox In-Reply-To: <4841F745477DF94A97C515658C91BB2F06CD3F@lan-exc-01.heidi.local> Message-ID: On 4/13/07, Piero Cavalieri wrote: > > > > > Hi all, > > > > I would like to implemet measure tool via dhtml. Currently I'm using dbox, > but I would like to temporary disable > > It while digitizing and then restore dbox after the measure tool have done > the job. I found dBox_reset() which require to implement a > reset_handler(?) function. I'm a bit confused on how to disable dbox, so > could someone explain me this ? > > > > Thanks > > Piero Do you know that there is a measure handler already in dBox? -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From fabio at GEOJA.COM.BR Fri Apr 13 05:37:28 2007 From: fabio at GEOJA.COM.BR (Fabio Leme de Almeida) Date: Fri, 13 Apr 2007 07:37:28 -0500 Subject: map and hyperlinks Message-ID: Richard, Can you post an example ? Thank's Fabio From David.Fawcett at STATE.MN.US Fri Apr 13 06:17:04 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 13 Apr 2007 08:17:04 -0500 Subject: Need some examples of serving tif & sid through WMS In-Reply-To: A<8d2ea9d70704130222q54edec51md573291c8352245e@mail.gmail.com> Message-ID: Steven, This isn't extremely up-to-date, but there is a lot of good info here: http://mapserver.gis.umn.edu/docs/howto/wms_server If you are still having problems, post the specific issues and mapfile text to the list. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steven De Vriendt Sent: Friday, April 13, 2007 4:23 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Need some examples of serving tif & sid through WMS Hi all, Once again I'm stuck with my raster images. I'd like to serve them through WMS but I just can't figure out how to configure them... I've looked at the MS4W workshop example and tried to configure my map file likewise. No luck. So I'm turning to you guys, has anyone some basic examples for serving images throug WMS ? Thanks ! From David.Fawcett at STATE.MN.US Fri Apr 13 06:11:00 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 13 Apr 2007 08:11:00 -0500 Subject: map and hyperlinks In-Reply-To: A Message-ID: If you follow Rich's method, I think that you can use a variable substitution in the URL string to make it specific to the feature clicked. Another method would be to make two calls to mapserv, one to get the map image, and the second one to get an imagemap. You then stack them on top of each other and you can have a clickable map, mouse-over text, etc. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Richard Greenwood Sent: Thursday, April 12, 2007 10:18 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] map and hyperlinks On 4/12/07, Giuseppe De Rossi wrote: > Hi, > is there the possibility to create a layer which contains a number of > clickable icons so there is a redirection to another web page ? > > thanks in advance > > Giu > Yes. In the LAYER > CLASS > TEMPLATE you can set the template to a url. -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From richard.greenwood at GMAIL.COM Fri Apr 13 06:21:41 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Fri, 13 Apr 2007 07:21:41 -0600 Subject: map and hyperlinks In-Reply-To: Message-ID: On 4/13/07, Fabio Leme de Almeida wrote: > Richard, > > Can you post an example ? > > Thank's > > Fabio This is an old post that tries to clarify a couple things about template files: http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0110/msg00072.html In answer to Giu's question about going to different web pages for each icon, I would suggest using a server-side script to process a query string something like: TEMPLATE="http://myserver/process_click.php?icon=[icon_id] Another thing to try, but I do not know if it would work, would be to have multiple TEMPLATE in multiple CLASS, for example: LAYER ... CLASS EXPRESSION 1 TEMPLATE "http:url/for/item/1" END CLASS EXPRESSION 2 TEMPLATE "http:url/for/item/2" END ... END -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From dlowther at COORDINATESOLUTIONS.COM Fri Apr 13 06:28:32 2007 From: dlowther at COORDINATESOLUTIONS.COM (David Lowther) Date: Fri, 13 Apr 2007 09:28:32 -0400 Subject: Virtual Spatial Data & QUERY control ? Wrong result In-Reply-To: Message-ID: Jan, I had this same experience - though I didn't track it down to returning the first record, just that it was always the same one. For help locating the issue, I was using mapscript_csharp v 4.9. David Lowther -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jan De Belder Sent: Friday, April 13, 2007 3:41 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Virtual Spatial Data & QUERY control ? Wrong result Hi all, Is there a way to use query or nquery on a virtual spatial data layer in MAPSERVER ? I cannot get this to work. Description of my setup: *windows xp pro, IIS & mapserver (latest ms4w). *I have a working virtual spatial data layer in my mapfile, with appropriate labelling *I have a lightweigth AJAX client which can identify (NQUERY) all layers and gives correct results Problem * when using the identify (NQUERY) on a virtual spatial data point, the query always returns the FIRST record in the ODBC source, not the one that is clicked on by the pointclick (Mind you, when I use exactly the same data in a shapefile, the identify works, and labelling on the virtual spatial data points also works). http://mapserver.gis.umn.edu/docs/howto/ogr_howto/#queries-through-ogr-forma t states that OGR queries should works the same as shapefiles. Does this not apply to Virtual Spatial Data layers ? Any thoughts ? Thanks Jan De Belder Katholieke Universiteit Leuven From giuseppe.derossi at EMAIL.IT Fri Apr 13 06:43:49 2007 From: giuseppe.derossi at EMAIL.IT (Giuseppe De Rossi) Date: Fri, 13 Apr 2007 15:43:49 +0200 Subject: map and hyperlinks Message-ID: Hi Fabio, I'm sorry, but there is no example for now(i'm working for), what I can say is my need . I want to create the following feature: In a layer there is a number of different icons, If I click on one of them a new window of an internet browser is opened and display a web page. have you an something useful to get that ? regards --------- Original Message -------- Da: Fabio Leme de Almeida To: MAPSERVER-USERS at LISTS.UMN.EDU Oggetto: Re: [UMN_MAPSERVER-USERS] map and hyperlinks Data: 13/04/07 14:40 > > > > Richard, > > Can you post an example ? > > Thank's > > Fabio > > > -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Fai crescere i tuoi sogni. Prestiti semplici e veloci Rate da 20 euro al mese Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=6334&d=20070413 From woodbri at SWOODBRIDGE.COM Fri Apr 13 06:44:52 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 13 Apr 2007 09:44:52 -0400 Subject: projection time loss In-Reply-To: <00ac01c77d47$c34f4290$49edc7b0$@com> Message-ID: Kevin Flanders wrote: > > > I have several annotation shapefiles with several thousand labels each > that I need to either project on-the-fly or pre-process and project > beforehand. Would anyone care to comment on the performance hit this > level of projection on the fly might have on my Mapserver application?. Hi Kevin, The cost to project points should be relatively small. On the other hand the cost to display the label irrespective of a projection is probably taking 40-60% of you display time, guessing from my past experience unless you have tuned the number of labels you are trying to display at any given scale. If you are concerned, build mapserver with DEBUG option with ./configure --enable-debug and add DEBUG ON to the MAP object and to the LAYER object and draw a map while watch the apache error.log. Timing stats will got there for each layer and the label cache. If your label cache time is big, you need to filter down the number of labels you are throwing at mapserver. -Steve From rodrigo.andrade at DIGITRO.COM.BR Fri Apr 13 06:46:49 2007 From: rodrigo.andrade at DIGITRO.COM.BR (Rodrigo Del C. Andrade) Date: Fri, 13 Apr 2007 10:46:49 -0300 Subject: Big areas == slow and problematic zoom? (was street level zoom performance) Message-ID: Hello dear list. First of all, thanks immensely for all the tips with the last issue I presented (streets and its labels drawing performance). This however brings me to a new issue. I created index files (with shptree) for all the layers and tuned them for maximum speed, however I found out using Debug On that a single layer was responsible for the 99% of the drawing time: country polygon layer. The debug log was looking like this when I tried to zoom in close enough to see neighborhoods (just an example): msDrawMap(): Layer 1 (COUNTRY), 189.021s <<---- msDrawMap(): Layer 1 (city1-limiters), 0.067s msDrawMap(): Layer 4 (city1), 0.041s msDrawMap(): Layer 3 (city1_annotation), 0.025s msDrawMap(): Layer 1 (city2-limiters), 0.085s msDrawMap(): Layer 4 (city2), 0.047s msDrawMap(): Layer 3 (city2_annotation), 0.023s Removing the offending layer solves all my performance problems, but I am left with an archipelago instead of a state :D We've done some tests: - creating a square polygon shape with roughly the size of South America causes the problem, - using a square polygon shape the size of a city does not. The country and world shapes we are/were using as a base to drawn our cities on top came from the ESRI ArcGIS 9 Media kit, so I doubt they are out of specification (they created the shape file specs anyway, haven't they?). So I guess my question is: does a big area polygon takes longer to render at higher zoom levels and thats the expected behavior and I must find a way to turn off these layers when I zoom in too close (risking having some cities appearing to be islands mid sea), or is there something wrong with my setup? Btw, I am using Java Mapscript 4.10.1 on linux. Thanks again for all the support so far, you guys rock. -- *Rodrigo Del C. Andrade* /Programador/ /SIC - SSE - Solu??es Seguran?a P?blica/ *D?GITRO TECNOLOGIA* *E-mail:* rodrigo.andrade at digitro.com.br *Fone:* +55 48 3281-7314 / +55 48 3281-7000 *Fax:* +55 48 3281-7299 *Site:* www.digitro.com From warmerdam at POBOX.COM Fri Apr 13 06:52:30 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 13 Apr 2007 09:52:30 -0400 Subject: Virtual Spatial Data & QUERY control ? Wrong result In-Reply-To: Message-ID: Jan De Belder wrote: > Hi all, > > Is there a way to use query or nquery on a virtual spatial data layer in > MAPSERVER ? I cannot get this to work. > > Description of my setup: > *windows xp pro, IIS & mapserver (latest ms4w). > *I have a working virtual spatial data layer in my mapfile, with appropriate > labelling > *I have a lightweigth AJAX client which can identify (NQUERY) all layers and > gives correct results > > Problem > * when using the identify (NQUERY) on a virtual spatial data point, the > query always returns the FIRST record in the ODBC source, not the one that > is clicked on by the pointclick (Mind you, when I use exactly the same data > in a shapefile, the identify works, and labelling on the virtual spatial > data points also works). > > > http://mapserver.gis.umn.edu/docs/howto/ogr_howto/#queries-through-ogr-format > states that OGR queries should works the same as shapefiles. Does this not > apply to Virtual Spatial Data layers ? Jan, The classic reason for this is underdetermined feature ids. In normal use the OGR ODBC driver will assign feature ids sequentially to records in a result set. If the spatial or attribute filter changes then the new result set is still numbers sequentially. MapServer uses feature ids (FIDs) to fetch query results, so it is imperative for features ids to remain consistent for this to work. If you have a column in your ODBC table which is effectively an integer identifier that can be used as a unique FID, then you should add it to the virtual data source description. Add columnname. See this for details: http://www.gdal.org/ogr/drv_vrt.html I hope this helps. BTW, if we eventually re-engineer the MapServer query mechanism to hold the query result set in memory instead of having to refetch them by fid this problem will go away - as well as a dramatic improvement in performance in some circumstances. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From metalmilitian at HOTMAIL.COM Fri Apr 13 06:46:40 2007 From: metalmilitian at HOTMAIL.COM (GUSTAVO PINTO) Date: Fri, 13 Apr 2007 13:46:40 +0000 Subject: help Message-ID: An HTML attachment was scrubbed... URL: From metalmilitian at HOTMAIL.COM Fri Apr 13 06:47:33 2007 From: metalmilitian at HOTMAIL.COM (GUSTAVO PINTO) Date: Fri, 13 Apr 2007 13:47:33 +0000 Subject: help Message-ID: An HTML attachment was scrubbed... URL: From metalmilitian at HOTMAIL.COM Fri Apr 13 06:50:56 2007 From: metalmilitian at HOTMAIL.COM (GUSTAVO PINTO) Date: Fri, 13 Apr 2007 13:50:56 +0000 Subject: help Message-ID: An HTML attachment was scrubbed... URL: From Piero.Cavalieri at HEIDI.IT Fri Apr 13 07:22:41 2007 From: Piero.Cavalieri at HEIDI.IT (Piero Cavalieri) Date: Fri, 13 Apr 2007 16:22:41 +0200 Subject: R: [UMN_MAPSERVER-USERS] disable dbox In-Reply-To: A Message-ID: No, I didn't. I'm using the 'old' dbox (uses X library). Maybe there wasn't at that time. If so, there is example code somewere ? I remember there was in jbox, but I'm using js. Thanks Piero On 4/13/07, Piero Cavalieri wrote: > > > > > Hi all, > > > > I would like to implemet measure tool via dhtml. Currently I'm using dbox, > but I would like to temporary disable > > It while digitizing and then restore dbox after the measure tool have done > the job. I found dBox_reset() which require to implement a > reset_handler(...) function. I'm a bit confused on how to disable dbox, so > could someone explain me this ? > > > > Thanks > > Piero Do you know that there is a measure handler already in dBox? -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From fx.prunayre at OIEAU.FR Fri Apr 13 07:16:01 2007 From: fx.prunayre at OIEAU.FR (=?iso-8859-1?Q?Fran=E7ois_Prunayre?=) Date: Fri, 13 Apr 2007 16:16:01 +0200 Subject: SLD / ExternalGraphic size Message-ID: Hi list, I would like to use SLD with ExternalGraphic but the size element doesn't seem to work On the how-to, Size is "supported" but is "not supported" in the notes Features | Supported | Notes Size | Yes | Not supported in MapServer http://mapserver.gis.umn.edu/docs/howto/sldhowto I'm using mapserv 4.10. What's the current status on that ? Thanks for your help. Francois PNG 1 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Piero.Cavalieri at HEIDI.IT Fri Apr 13 08:16:49 2007 From: Piero.Cavalieri at HEIDI.IT (Piero Cavalieri) Date: Fri, 13 Apr 2007 17:16:49 +0200 Subject: R: [UMN_MAPSERVER-USERS] R: [UMN_MAPSERVER-USERS] disable dbox In-Reply-To: A<4841F745477DF94A97C515658C91BB2F06CD62@lan-exc-01.heidi.local> Message-ID: I found it in dbox that comes with ms4w. I'll have a bit of work to integrate it, cause I done the web app in my own manner (old dbox/ajax/.net), however it's a starting point. Thanks Piero -----Messaggio originale----- Da: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Per conto di Piero Cavalieri Inviato: venerd? 13 aprile 2007 16.23 A: MAPSERVER-USERS at LISTS.UMN.EDU Oggetto: [UMN_MAPSERVER-USERS] R: [UMN_MAPSERVER-USERS] disable dbox No, I didn't. I'm using the 'old' dbox (uses X library). Maybe there wasn't at that time. If so, there is example code somewere ? I remember there was in jbox, but I'm using js. Thanks Piero On 4/13/07, Piero Cavalieri wrote: > > > > > Hi all, > > > > I would like to implemet measure tool via dhtml. Currently I'm using dbox, > but I would like to temporary disable > > It while digitizing and then restore dbox after the measure tool have done > the job. I found dBox_reset() which require to implement a > reset_handler(...) function. I'm a bit confused on how to disable dbox, so > could someone explain me this ? > > > > Thanks > > Piero Do you know that there is a measure handler already in dBox? -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From janos.gonzales at GMAIL.COM Fri Apr 13 08:34:54 2007 From: janos.gonzales at GMAIL.COM (=?ISO-8859-1?Q?J=E1nos_Gonzales?=) Date: Fri, 13 Apr 2007 09:34:54 -0600 Subject: simplify imagemap Message-ID: Hello, I'm using mapserver to create an image map of the US. This image map that is created is HUGE! For example, there are 40 points in my imagemap for Colorado, which is a very square state. The browsers sometimes have trouble displaying this correctly because it is so complicated. Is there a way to simplify the geometry without changing my source shapefile? Thanks, Janos From David.Fawcett at STATE.MN.US Fri Apr 13 08:46:27 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 13 Apr 2007 10:46:27 -0500 Subject: simplify imagemap In-Reply-To: A<647a4d110704130834g40ce46d9yfe12cd0b091c51e5@mail.gmail.com> Message-ID: Janos, Assuming that you are making two calls to MapServer, one for the image and one for the imagemap, I can think of two different options. Both involve using a generalized shapefile for the imagemap layer: 1. point your imagemap generation call to a different mapfile that uses a generalized states shapefile. 2. in your call to your primary map file, query a layer based on a more generalized shapefile. Even if you could run a generalization algorithm/function on-the-fly, you wouldn't want to. They take quite a bit of time and server resources to run. Optimize everything that you can before the user hits your app. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of J?nos Gonzales Sent: Friday, April 13, 2007 10:35 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] simplify imagemap Hello, I'm using mapserver to create an image map of the US. This image map that is created is HUGE! For example, there are 40 points in my imagemap for Colorado, which is a very square state. The browsers sometimes have trouble displaying this correctly because it is so complicated. Is there a way to simplify the geometry without changing my source shapefile? Thanks, Janos From ltrevinoh at GMAIL.COM Fri Apr 13 10:02:17 2007 From: ltrevinoh at GMAIL.COM (=?ISO-8859-1?Q?Luis_Trevi=F1o?=) Date: Fri, 13 Apr 2007 12:02:17 -0500 Subject: google earth images Message-ID: I?d like to add a layer with a google earth image on my map. Does anybody know if it is possible? any examples? Thanks in advance Luis -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at HOSTGIS.COM Fri Apr 13 10:11:34 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Fri, 13 Apr 2007 11:11:34 -0600 Subject: google earth images In-Reply-To: Message-ID: > I?d like to add a layer with a google earth image on my map. Does anybody > know if it is possible? any examples? This question comes up about once a month, yeah? :) There's no way to use Google Maps layers directly in Mapserver; it's a violation of Google's usage policy, and they've shot down attempts to do it in the past. However, you can do the opposite, and overlay WMS data onto a Google Map -- so you get the cool slippy maps but with your own photos. And you can try something like OpenLayers, which has support for both Google Maps and for WMS (e.g. from Mapserver) data sources. -Gregor From janos.gonzales at GMAIL.COM Fri Apr 13 10:47:18 2007 From: janos.gonzales at GMAIL.COM (=?ISO-8859-1?Q?J=E1nos_Gonzales?=) Date: Fri, 13 Apr 2007 11:47:18 -0600 Subject: Is it possible to randomly color polygons? In-Reply-To: <461EC0D5.40906@propertykey.com> Message-ID: Before you start implementing the Four Color theorem into mapserver code, I'd recommend taking a look at Quantum GIS (QGIS) which is a free open source GIS package that allows you to create map files. When you import your shapefile to QGIS it is colored randomly and then you can export that as a mapfile. However, i've not been able to run that QGIS function on their latest windows release. You might want to look at what other software out there creates mapfiles on the fly. Janos On 4/12/07, Jeff Hoffmann wrote: > I have a layer with a lot of polygons that I want to display, but I > don't really care about what color those polygons are (they're not > classified, I'm not going to have a legend, I just want them to be > different colors so no 2 adjacent polygons are the same color, e.g. > counties in a state or states in the US). It seems like it'd be a > pretty common thing to want, but is there a reasonably easy way to do > it? I'm guessing the best way would be to assign a class to each of the > polygons, but is there some sort of algorithm to figure out how many > colors I need and how to assign them? > > Any ideas? > > -- > Jeff Hoffmann > Head Plate Spinner > PropertyKey.com > From assefa at DMSOLUTIONS.CA Fri Apr 13 11:01:51 2007 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri, 13 Apr 2007 14:01:51 -0400 Subject: MapScript Wrapper for WxS Service In-Reply-To: Message-ID: Wxs support were introduced after the 4.6 release. You should upgrade to 4.10.0 to get those functionalities. Later, Ian Tidy wrote: > Hi All, > > Does anyone have a WxS Service wrapper in PHP for MapServer 4.6 that > they can share with me? > > Cheers Ian > ______________________ > ***Ian Tidy* > ***GIS Administrator* > Works Asset Department > Napier City Council > Hastings St, Private Bag 6010, Napier, New Zealand > ***Phone +64-6-835-7579 Ext. 8115* > Fax +64-6-834-4195 > _mailto:iant at napier.govt.nz_ > _http://www.napier.govt.nz_ > > > > ------------------------------------------------------------------------ > This e-mail message has been scanned for Viruses and Content and cleared > by *MailMarshal * > ------------------------------------------------------------------------ > ###################################################################### > Attention: > This e-mail message and accompanying data may contain information that > is confidential and subject to legal privilege. Any information > provided is given in good faith. However unless specifically stated to > the contrary, Napier City Council accepts no liability for the > content of this e-mail or for the consequences of any action taken on > the basis of the information provided, unless that information is > subsequently confirmed in writing. If you are not the intended recipient, > you are notified that any use, dissemination, distribution or copying > of this message or data is prohibited. If you received this e-mail > message in error, please notify us immediately and erase all copies > of this message and attachments. Thank you. -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From cavallini at FAUNALIA.IT Fri Apr 13 11:06:51 2007 From: cavallini at FAUNALIA.IT (Paolo Cavallini) Date: Fri, 13 Apr 2007 20:06:51 +0200 Subject: Is it possible to randomly color polygons? In-Reply-To: <647a4d110704131047q7d62050awe44630d16ef184ee@mail.gmail.com> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 now the export function is a separate program: msexport (then you choose your qgis project and mapfile name) pc J?nos Gonzales ha scritto: > However, i've not been able to run that QGIS function on their latest > windows release. - -- Paolo Cavallini http://www.faunalia.it/pc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGH8a7/NedwLUzIr4RAk0lAJ9vO8SbeUWMvDKiyY5SYMC1nuS8hQCeMDSM /0rbWUXZ3xpHwyUu4fnqdKs= =WK2y -----END PGP SIGNATURE----- From Steve.Lime at DNR.STATE.MN.US Fri Apr 13 11:25:34 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 13 Apr 2007 13:25:34 -0500 Subject: Estimate number of active/registered MapServer users/developers In-Reply-To: Message-ID: One psuedo metric would be the number of users on the mapserver-users mailing list which is in excess of 2,300 at the moment. Steve >>> On 4/13/2007 at 1:37 AM, in message , Gambin Dejan wrote: > Hi, > > I am holding a MapServer presentation next week and I would like to know > an estimate number of active/registered MapServer users/developers, just > for the information I want to give. > > Thanks very much > > regards, dejan > > p.s. this is my first MapServer presentation so if someone experienced > has some additional suggestions on what to mention on such a > presentation, to make the people more interested in MapServer, I will be > glad to hear it :-)) From assefa at DMSOLUTIONS.CA Fri Apr 13 11:50:14 2007 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri, 13 Apr 2007 14:50:14 -0400 Subject: SLD / ExternalGraphic size In-Reply-To: <200704131416.l3DEG1Wi026638@ns1.oieau.fr> Message-ID: Hi There, Size for for Graphic element (Mark and External symbols) is supported. I have updated the documentation on the Mapserver site to reflect it. Later, Fran?ois Prunayre wrote: > Hi list, I would like to use SLD with ExternalGraphic but the size > element doesn't seem to work > > On the how-to, Size is "supported" but is "not supported" in the notes > Features | Supported | Notes > Size | Yes | Not supported in MapServer > http://mapserver.gis.umn.edu/docs/howto/sldhowto > > I'm using mapserv 4.10. What's the current status on that ? > > Thanks for your help. > > Francois > > > > xlink:href="http://services.sandre.eaufrance.fr/data/pixmap/goutte.png"/ > > > PNG > > 1 > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From janos.gonzales at GMAIL.COM Fri Apr 13 11:51:03 2007 From: janos.gonzales at GMAIL.COM (=?ISO-8859-1?Q?J=E1nos_Gonzales?=) Date: Fri, 13 Apr 2007 12:51:03 -0600 Subject: Is it possible to randomly color polygons? In-Reply-To: <461FC6BB.6050706@faunalia.it> Message-ID: Thanks Paolo, I didn't realize msexport.exe was a separate program. I had to install python 2.5 for windows and get the dwmapi.dll and copy python25.dll and dwmapi in the qgis folder for it work. But now it does now and exporting the mapfile works. NICE ! Now, if only QGIS would have nicer colors .... Janos On 4/13/07, Paolo Cavallini wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > now the export function is a separate program: > msexport (then you choose your qgis project and mapfile name) > pc > > J?nos Gonzales ha scritto: > > However, i've not been able to run that QGIS function on their latest > > windows release. > - -- > Paolo Cavallini > http://www.faunalia.it/pc > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFGH8a7/NedwLUzIr4RAk0lAJ9vO8SbeUWMvDKiyY5SYMC1nuS8hQCeMDSM > /0rbWUXZ3xpHwyUu4fnqdKs= > =WK2y > -----END PGP SIGNATURE----- > From James.Leveille at MTQ.GOUV.QC.CA Fri Apr 13 11:37:28 2007 From: James.Leveille at MTQ.GOUV.QC.CA (=?iso-8859-1?Q?L=E9veill=E9=2C_James?=) Date: Fri, 13 Apr 2007 14:37:28 -0400 Subject: Map with road signs Message-ID: Hi, I need to produce a map that shows road signs. I have over 1200 types of road signs, and a total of 1.2 M road signs. I have the position (POINT) and the type of every road sign. Every sign needs to show up on my map using a particular image depending on it's type. Since I don't want to create 1200 CLASS in my LAYER, is there another solution (like using the name of the image stored in the database for every sign) ? ______________________________________________________ JAMES L?VEILL? Service des syst?mes de Mission Direction des technologies de l'information Minist?re des Transports du Qu?bec 5833, boul. Pierre-Bertrand, 2i?me ?tage Qu?bec (Qu?bec) G2K 1K7 T?l?phone: (418) 380-2005 poste 227 T?l?copieur: (418) 644-6653 james.leveille at mtq.gouv.qc.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: From cavallini at FAUNALIA.IT Fri Apr 13 12:02:30 2007 From: cavallini at FAUNALIA.IT (Paolo Cavallini) Date: Fri, 13 Apr 2007 21:02:30 +0200 Subject: Is it possible to randomly color polygons? In-Reply-To: <647a4d110704131151y99643a1hb5e6bd9f30f48653@mail.gmail.com> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Easy to change, however, both from the user and the programmer's point of view. Do you have specific suggestions? pc J?nos Gonzales ha scritto: > Thanks Paolo, > > I didn't realize msexport.exe was a separate program. I had to > install python 2.5 for windows and get the dwmapi.dll and copy > python25.dll and dwmapi in the qgis folder for it work. But now it > does now and exporting the mapfile works. NICE ! Now, if only QGIS > would have nicer colors .... > > Janos - -- Paolo Cavallini http://www.faunalia.it/pc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGH9PG/NedwLUzIr4RAtBdAJ9z76Nys7qYh4U1EZK6ABYsZsol5ACfRQ4y PhPdIgBQ5zNeWQKItOqTlFk= =tkHA -----END PGP SIGNATURE----- From cavallini at FAUNALIA.IT Fri Apr 13 12:27:06 2007 From: cavallini at FAUNALIA.IT (Paolo Cavallini) Date: Fri, 13 Apr 2007 21:27:06 +0200 Subject: Is it possible to randomly color polygons? In-Reply-To: <647a4d110704131221u18e70313m7b2f598a8f0755c4@mail.gmail.com> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Good suggestion. Would you mind submitting it as a wish on the qgis bugtracker? Unfortunately, due to spammers, you should request an username to do so, but it is a simple process. All the best. pc J?nos Gonzales ha scritto: > Hey Paolo, > > I know this topic was started by talking about random colors. But > it's still desirable to have some control over which random colors get > picked. It would be really nice if QGIS had a dropdown of color > ramps in the Layer Properties window, sort of like in the attached > image (taken from arc map). > > Janos > > > > > On 4/13/07, Paolo Cavallini wrote: > Easy to change, however, both from the user and the programmer's point > of view. > Do you have specific suggestions? > pc > > J?nos Gonzales ha scritto: >> Thanks Paolo, > >> I didn't realize msexport.exe was a separate program. I had to >> install python 2.5 for windows and get the dwmapi.dll and copy >> python25.dll and dwmapi in the qgis folder for it work. But now it >> does now and exporting the mapfile works. NICE ! Now, if only QGIS >> would have nicer colors .... > >> Janos >> > ------------------------------------------------------------------------ > ------------------------------------------------------------------------ > ------------------------------------------------------------------------ - -- Paolo Cavallini http://www.faunalia.it/pc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGH9mK/NedwLUzIr4RAtjXAKCya2nFWDtIQFx3V36ra693+10mPwCgsgPA SW9PMQes733DBGcsvipJ0Og= =MKKQ -----END PGP SIGNATURE----- From woodbri at SWOODBRIDGE.COM Fri Apr 13 20:26:16 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 13 Apr 2007 23:26:16 -0400 Subject: ms 4.10.1 Windows msGetLabelSize(): TrueType Font error. Could not find/open font. Message-ID: Hi all, I don't usually use mapserver on Windows but I have run into the follow error: msGetLabelSize(): TrueType Font error. Could not find/open font. I suspect this is a permission problem. as the files (fontset.txt and the arial.ttf file) are where it is supposed to be, but serving it up via mapserv.exe generates this error. And this all works just fine on Linux. I running ms4w and Apache. Any thoughts on how to track down and fix this. -Steve From ale.pas at TISCALI.IT Sat Apr 14 01:36:26 2007 From: ale.pas at TISCALI.IT (Alessandro Pasotti) Date: Sat, 14 Apr 2007 10:36:26 +0200 Subject: mapserver bugzilla not reachable? Message-ID: http://mapserver.gis.umn.edu/bugs/index.cgi I get a 404. -- Alessandro Pasotti itOpen - "Open Solutions for the Net Age" w3: www.itopen.it Linux User# 167502 From cavallini at FAUNALIA.IT Fri Apr 13 12:02:30 2007 From: cavallini at FAUNALIA.IT (Paolo Cavallini) Date: Fri, 13 Apr 2007 21:02:30 +0200 Subject: Is it possible to randomly color polygons? In-Reply-To: <647a4d110704131151y99643a1hb5e6bd9f30f48653@mail.gmail.com> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Easy to change, however, both from the user and the programmer's point of view. Do you have specific suggestions? pc J?nos Gonzales ha scritto: > Thanks Paolo, > > I didn't realize msexport.exe was a separate program. I had to > install python 2.5 for windows and get the dwmapi.dll and copy > python25.dll and dwmapi in the qgis folder for it work. But now it > does now and exporting the mapfile works. NICE ! Now, if only QGIS > would have nicer colors .... > > Janos - -- Paolo Cavallini http://www.faunalia.it/pc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGH9PG/NedwLUzIr4RAtBdAJ9z76Nys7qYh4U1EZK6ABYsZsol5ACfRQ4y PhPdIgBQ5zNeWQKItOqTlFk= =tkHA -----END PGP SIGNATURE----- From woodbri at SWOODBRIDGE.COM Sat Apr 14 05:51:54 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 14 Apr 2007 08:51:54 -0400 Subject: mapserver bugzilla not reachable? In-Reply-To: <200704141036.27076.ale.pas@tiscali.it> Message-ID: Alessandro Pasotti wrote: > http://mapserver.gis.umn.edu/bugs/index.cgi > I get a 404. > The bugzilla system was compromised and is offline. We are also looking to migrate over to OSGwo/trac for bug tracking. I'm sure there will be an announcement when things are back online, look for that. I do not know what the timeline for this will be. -Steve W From work at XWB.COM Thu Apr 12 14:21:48 2007 From: work at XWB.COM (Chip Taylor) Date: Thu, 12 Apr 2007 14:21:48 -0700 Subject: Looking for an Alaska shape file In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FB30B@s-sp22.pca.state.mn.us> Message-ID: Not specifically a Mapserver question, but I am looking for a shape file for the state of Alaska with minimal polygons. The most prevalent one comes from the National Atlas site and with all the small islands and coastline detail, the number of polygons included is huge. I need a less detailed, less complex shapefile for my purposes. Any leads on one would be appreciated. Chip Taylor Prepared Response, Inc From woodbri at SWOODBRIDGE.COM Sat Apr 14 06:27:00 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 14 Apr 2007 09:27:00 -0400 Subject: Looking for an Alaska shape file In-Reply-To: <002f01c77d48$96376ac0$025aa8c0@DevChip> Message-ID: Chip Taylor wrote: > Not specifically a Mapserver question, but I am looking for a shape file for > the state of Alaska with minimal polygons. The most prevalent one comes > from the National Atlas site and with all the small islands and coastline > detail, the number of polygons included is huge. I need a less detailed, > less complex shapefile for my purposes. Any leads on one would be > appreciated. > > Chip Taylor > Prepared Response, Inc Hi Chip, Have you considered running the thin.pl http://mapserver.gis.umn.edu/community/scripts/thin.pl to reduce the number of points in the polygons? -Steve From hust_blood at 163.COM Sun Apr 15 05:59:04 2007 From: hust_blood at 163.COM (=?gb2312?B?1tzTwLrA?=) Date: Sun, 15 Apr 2007 20:59:04 +0800 Subject: How to get the map's EXTENT Message-ID: I'm a newbie of Mapserver, now I create a new project with some shapefile and tif map files, to build a web-gis sample. Now I'm quite comfused about the EXTENT parameters in the XXX.map file when I use the 3rd-party Map data files. Does the paremeters of the shapefile file, which are got by ogrinfo, are just the ones in the XXX.map file ? or any suggetion about how to define the EXTENT paremeter is appreciated~ Thanks in advance. ??Best wishes ^_^ ????????Leo Chou ????????hust_blood at 163.com ??????????2007-04-15 From nelson.little at TENIX.COM Mon Apr 16 00:00:21 2007 From: nelson.little at TENIX.COM (LITTLE Nelson) Date: Mon, 16 Apr 2007 17:00:21 +1000 Subject: Help with GMAP sample application Message-ID: Hi everyone, I am looking at the sample PHP MapScript example 'GMAP' (as referenced at the bottom of http://mapserver.gis.umn.edu/docs/howto/phpmapscript-byexample/view). The source file 'gmap75.inc.php' references the following HTML FORM attributes: KEYMAP_x KEYMAP_y mainmap_x mainmap_y redraw_x But I can't for the life of me see where those variables are set anywhere in the code. They certainly don't exist in 'gmap75.phtml' or 'gmap75.inc.php'. Can anyone offer some help, perhaps there is a source file missing from the download? Thanks, Nelson Disclaimer : The contents of this e-mail including any attachments are intended only for the person or entity to which this e-mail is addressed. If you are not, or believe you may not be, the intended recipient, please advise the sender immediately by return e-mail, delete this e-mail and destroy any copies. Tenix does not warrant nor guarantee that this email communication is free from errors, virus, interception or interference. From siki at AGT.BME.HU Mon Apr 16 03:11:10 2007 From: siki at AGT.BME.HU (Siki Zoltan) Date: Mon, 16 Apr 2007 09:11:10 -0100 Subject: Help with GMAP sample application In-Reply-To: <200704160700.l3G70LxB016260@sprint1.tenix.com> Message-ID: Hi Nelson, These variables are generated by the form. keymap and mainmap are input image form items. When you click on the map or the overview map your browser adds _x _y variables to the query string with the pixel coordinates of the position of the click. Zoltan On Mon, 16 Apr 2007, LITTLE Nelson wrote: > Hi everyone, > > I am looking at the sample PHP MapScript example 'GMAP' (as referenced > at the bottom of > http://mapserver.gis.umn.edu/docs/howto/phpmapscript-byexample/view). > The source file 'gmap75.inc.php' references the following HTML FORM > attributes: > > KEYMAP_x > KEYMAP_y > mainmap_x > mainmap_y > redraw_x > > But I can't for the life of me see where those variables are set > anywhere in the code. They certainly don't exist in 'gmap75.phtml' or > 'gmap75.inc.php'. Can anyone offer some help, perhaps there is a source > file missing from the download? > > Thanks, > Nelson > > Disclaimer : > The contents of this e-mail including any attachments are intended only > for the person or entity to which this e-mail is addressed. If you are not, > or believe you may not be, the intended recipient, please advise the sender > immediately by return e-mail, delete this e-mail and destroy any copies. > Tenix does not warrant nor guarantee that this email communication is free > from errors, virus, interception or interference. > From gisaalter at GMAIL.COM Mon Apr 16 00:34:22 2007 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Mon, 16 Apr 2007 09:34:22 +0200 Subject: Problem with map file serving WMS - tiff Message-ID: Below is my map-file for serving a tiff file using mapserver WMS-capabilities. Yet, I'm unsuccesfull finding out why it doesn't work. Can someone have a look at it and correct it where I've gone wrong ? Thanks ! MAP NAME TIFF_TEST STATUS ON SIZE 500 500 SYMBOLSET ../etc/symbols.sym EXTENT 77336.359625 189988.500250 90937.297125 201812.968625 UNITS METERS IMAGECOLOR 255 255 255 FONTSET ../etc/fonts.txt TRANSPARENT FALSE WEB IMAGEPATH "/ms4w/apps/chameleon/samples/data/topo" IMAGEURL "/ms_tmp/" METADATA "wms_abstract" "Demo for Geotiff" "wms_title" "WMS Demo Server" "wms_onlineresource" "http://0.0.0.0:8888/cgi-bin/mapserv.exe?map=/ms4w/apps/chameleon/samples/map/wmsserver_tiff.map&" "wms_srs" "EPSG:31300" END END OUTPUTFORMAT NAME GEOTIFF DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE "PC256" EXTENSION "tif" END PROJECTION "init=epsg:31300" END LAYER NAME "hillshade_rough" TILEINDEX "/ms4w/apps/chameleon/samples/data/topo/shpindex.shp" TILEITEM "location" TYPE RASTER STATUS ON # display layer only in map scales of 100000 and smaller, means scale values > 100000 MINSCALE 100000 METADATA "WMS_TITLE" "topokaarten" "WMS_ABSTRACT" "agiv vlaanderen" "WMS_SRS" "EPSG:31300" END PROJECTION "init=epsg:31300" END END From bartvde at OSGIS.NL Mon Apr 16 00:51:35 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Mon, 16 Apr 2007 09:51:35 +0200 Subject: Problem with map file serving WMS - tiff Message-ID: What kind of values are in the location column of your tileindex dbf? Are these relative or absolute paths? Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Steven De Vriendt Naar: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] Problem with map file serving WMS - tiff Datum: 16/04/07 05:45 > Below is my map-file for serving a tiff file using mapserver WMS-capabilities. > Yet, I'm unsuccesfull finding out why it doesn't work. > Can someone have a look at it and correct it where I've gone wrong ? > Thanks ! > > MAP > NAME TIFF_TEST > STATUS ON > SIZE 500 500 > SYMBOLSET ../etc/symbols.sym > EXTENT 77336.359625 189988.500250 90937.297125 201812.968625 > UNITS METERS > IMAGECOLOR 255 255 255 > FONTSET ../etc/fonts.txt > TRANSPARENT FALSE > > WEB > IMAGEPATH "/ms4w/apps/chameleon/samples/data/topo" > IMAGEURL "/ms_tmp/" > METADATA > "wms_abstract" "Demo for Geotiff" > "wms_title" "WMS Demo Server" > "wms_onlineresource" > "http://0.0.0.0:8888/cgi-bin/mapserv.exe?map=/ms4w/apps/chameleon/samples/map/wmsserver_tiff.map&" > "wms_srs" "EPSG:31300" > > END > END > > OUTPUTFORMAT > NAME GEOTIFF > DRIVER "GDAL/GTiff" > MIMETYPE "image/tiff" > IMAGEMODE "PC256" > EXTENSION "tif" > END > > > PROJECTION > "init=epsg:31300" > END > > LAYER > NAME "hillshade_rough" > > TILEINDEX "/ms4w/apps/chameleon/samples/data/topo/shpindex.shp" > TILEITEM "location" > TYPE RASTER > STATUS ON > # display layer only in map scales of 100000 and smaller, means > scale values > 100000 > MINSCALE 100000 > > METADATA > "WMS_TITLE" "topokaarten" > "WMS_ABSTRACT" "agiv vlaanderen" > "WMS_SRS" "EPSG:31300" > END > PROJECTION > "init=epsg:31300" > END > > END > > From anhtin at GMAIL.COM Mon Apr 16 00:53:55 2007 From: anhtin at GMAIL.COM (anhtin) Date: Mon, 16 Apr 2007 00:53:55 -0700 Subject: Mapserver and Unicode utf-8 Message-ID: hi all i am developing app map use Mapserver and Database PostGis i have a layer province in postgis is table province into province have column name_porvince datatype is character varying Database : ENCODING = 'UTF8' On the mapfile i show name_province but when run some character not format utf-8 How is config on Mapfile or Mapserver show text on image is utft-8 -- View this message in context: http://www.nabble.com/Mapserver-and-Unicode-utf-8-tf3582899.html#a10011683 Sent from the Mapserver - User mailing list archive at Nabble.com. From gisaalter at GMAIL.COM Mon Apr 16 01:01:44 2007 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Mon, 16 Apr 2007 10:01:44 +0200 Subject: Problem with map file serving WMS - tiff In-Reply-To: Message-ID: This is what's in the shpindex.dbf file location t136z.tif t136n.tif t137z.tif t137n.tif ... It doesn't mention any relative or absolute paths, just the names of my tif files... On 4/16/07, Bart van den Eijnden (OSGIS) wrote: > What kind of values are in the location column of your tileindex dbf? Are > these relative or absolute paths? > > Best regards, > Bart > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > --------- Oorspronkelijk bericht -------- > Van: Steven De Vriendt > Naar: MAPSERVER-USERS at LISTS.UMN.EDU > Onderwerp: [UMN_MAPSERVER-USERS] Problem with map file serving WMS - tiff > Datum: 16/04/07 05:45 > > > Below is my map-file for serving a tiff file using mapserver > WMS-capabilities. > > Yet, I'm unsuccesfull finding out why it doesn't work. > > Can someone have a look at it and correct it where I've gone wrong ? > > Thanks ! > > > > MAP > > NAME TIFF_TEST > > STATUS ON > > SIZE 500 500 > > SYMBOLSET ../etc/symbols.sym > > EXTENT 77336.359625 189988.500250 90937.297125 201812.968625 > > UNITS METERS > > IMAGECOLOR 255 255 255 > > FONTSET ../etc/fonts.txt > > TRANSPARENT FALSE > > > > WEB > > IMAGEPATH "/ms4w/apps/chameleon/samples/data/topo" > > IMAGEURL "/ms_tmp/" > > METADATA > > "wms_abstract" "Demo for Geotiff" > > "wms_title" "WMS Demo Server" > > "wms_onlineresource" > > > "http://0.0.0.0:8888/cgi-bin/mapserv.exe?map=/ms4w/apps/chameleon/samples/map/wmsserver_tiff.map&" > > "wms_srs" "EPSG:31300" > > > > END > > END > > > > OUTPUTFORMAT > > NAME GEOTIFF > > DRIVER "GDAL/GTiff" > > MIMETYPE "image/tiff" > > IMAGEMODE "PC256" > > EXTENSION "tif" > > END > > > > > > PROJECTION > > "init=epsg:31300" > > END > > > > LAYER > > NAME "hillshade_rough" > > > > TILEINDEX > "/ms4w/apps/chameleon/samples/data/topo/shpindex.shp" > > TILEITEM "location" > > TYPE RASTER > > STATUS ON > > # display layer only in map scales of 100000 and smaller, means > > scale values > 100000 > > MINSCALE 100000 > > > > METADATA > > "WMS_TITLE" "topokaarten" > > "WMS_ABSTRACT" "agiv vlaanderen" > > "WMS_SRS" "EPSG:31300" > > END > > PROJECTION > > "init=epsg:31300" > > END > > > > END > > > > > > > > From myardbenoit at GMAIL.COM Mon Apr 16 01:05:22 2007 From: myardbenoit at GMAIL.COM (Benoit Myard) Date: Mon, 16 Apr 2007 10:05:22 +0200 Subject: Serving time-dependant data in a custom environment Message-ID: Hi list, We would like to serve geographic data which is completely time-dependant. The data is not stored in a common format : upon the years, we've built our own database system with geographic extensions like the ones you can find in PostGIS. For now, we have been impressed by MapServer's ability to render countries, cities... and now we want to render our data, which isn't that easy. In the first place, we thought to the WFS Specifications as the better mean to achieve this for two reasons. The first one being that we could write a wrapper script to access the data (easy to maintain). The second one being that we could use HTTP (scalable system). Unfortunately, I've just noticed that the WFS specifications don't include TIME support as WMS does and this solution isn't just possible. One possible solution to this problem would be to write a custom OGR driver |1] and use it within MapServer. Could someone share his experience in such a field ? One other possible solution I'm not sure of would be to use MapScript, but I really have no idea of whether it will help or not. In fact we don't use MapScript and well, if you think this is a possible solution, just let me know. I'm pretty sure I'm not the first one facing this limitation of the WFS Specifications; I would appreciate to hear how others handled it afterwards. Thanks in advance. [1] http://www.gdal.org/ogr/ogr_drivertut.html -- Benoit Myard From bartvde at OSGIS.NL Mon Apr 16 01:08:49 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Mon, 16 Apr 2007 10:08:49 +0200 Subject: Problem with map file serving WMS - tiff Message-ID: I've had the most luck with using absolute paths in tileindexes. How did you generate your tileindex? If you generate it from the root of your drive you should get absolute paths. So: cd \ for /r %i in (*.tif) do gdaltindex mytileindex.shp %i Alternatively, you can try and set SHAPEPATH to /ms4w/apps/chameleon/samples/data/topo/ Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Steven De Vriendt Naar: Bart van den Eijnden OSGIS Cc: MAPSERVER-USERS at lists.umn.edu Onderwerp: Re: [UMN_MAPSERVER-USERS] Problem with map file serving WMS - tiff Datum: 16/04/07 06:01 > This is what's in the shpindex.dbf file > > location > t136z.tif > t136n.tif > t137z.tif > t137n.tif > .... > > It doesn't mention any relative or absolute paths, just the names of > my tif files... > > On 4/16/07, Bart van den Eijnden (OSGIS) <bartvde at osgis.nl> wrote: > > What kind of values are in the location column of your tileindex dbf? Are > > these relative or absolute paths? > > > > Best regards, > > Bart > > > > -- > > Bart van den Eijnden > > OSGIS, Open Source GIS > > http://www.osgis.nl > > > > > > --------- Oorspronkelijk bericht -------- > > Van: Steven De Vriendt <gisaalter at GMAIL.COM> > > Naar: MAPSERVER-USERS at LISTS.UMN.EDU <MAPSERVER-USERS at LISTS.UMN.EDU> > > Onderwerp: [UMN_MAPSERVER-USERS] Problem with map file serving WMS - tiff > > Datum: 16/04/07 05:45 > > > > > Below is my map-file for serving a tiff file using mapserver > > WMS-capabilities. > > > Yet, I'm unsuccesfull finding out why it doesn't work. > > > Can someone have a look at it and correct it where I've gone wrong ? > > > Thanks ! > > > > > > MAP > > > NAME TIFF_TEST > > > STATUS ON > > > SIZE 500 500 > > > SYMBOLSET ../etc/symbols.sym > > > EXTENT 77336.359625 189988.500250 90937.297125 201812.968625 > > > UNITS METERS > > > IMAGECOLOR 255 255 255 > > > FONTSET ../etc/fonts.txt > > > TRANSPARENT FALSE > > > > > > WEB > > > IMAGEPATH &quot;/ms4w/apps/chameleon/samples/data/topo&quot; > > > IMAGEURL &quot;/ms_tmp/&quot; > > > METADATA > > > &quot;wms_abstract&quot; &quot;Demo for Geotiff&quot; > > > &quot;wms_title&quot; &quot;WMS Demo Server&quot; > > > &quot;wms_onlineresource&quot; > > > > > &quot;http://0.0.0.0:8888/cgi-bin/mapserv.exe?map=/ms4w/apps/chameleon/samples/map/wmsserver_tiff.map&amp;&quot; > > > &quot;wms_srs&quot; &quot;EPSG:31300&quot; > > > > > > END > > > END > > > > > > OUTPUTFORMAT > > > NAME GEOTIFF > > > DRIVER &quot;GDAL/GTiff&quot; > > > MIMETYPE &quot;image/tiff&quot; > > > IMAGEMODE &quot;PC256&quot; > > > EXTENSION &quot;tif&quot; > > > END > > > > > > > > > PROJECTION > > > &quot;init=epsg:31300&quot; > > > END > > > > > > LAYER > > > NAME &quot;hillshade_rough&quot; > > > > > > TILEINDEX > > &quot;/ms4w/apps/chameleon/samples/data/topo/shpindex.shp&quot; > > > TILEITEM &quot;location&quot; > > > TYPE RASTER > > > STATUS ON > > > # display layer only in map scales of 100000 and smaller, means > > > scale values &gt; 100000 > > > MINSCALE 100000 > > > > > > METADATA > > > &quot;WMS_TITLE&quot; &quot;topokaarten&quot; > > > &quot;WMS_ABSTRACT&quot; &quot;agiv vlaanderen&quot; > > > &quot;WMS_SRS&quot; &quot;EPSG:31300&quot; > > > END > > > PROJECTION > > > &quot;init=epsg:31300&quot; > > > END > > > > > > END > > > > > > > > > > > > > > > > From gisaalter at GMAIL.COM Mon Apr 16 01:16:48 2007 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Mon, 16 Apr 2007 10:16:48 +0200 Subject: Problem with map file serving WMS - tiff In-Reply-To: <04919ab121bbc442e69231a5117e5582@145.50.39.11> Message-ID: Bart, I've added the shapepath line to my map-file, still no luck... When I do a GetCapabilities-request, I get the the following error: msLoadMap(): Premature End-of-File. Thanks for helping out ! Steven On 4/16/07, Bart van den Eijnden (OSGIS) wrote: > I've had the most luck with using absolute paths in tileindexes. > > How did you generate your tileindex? If you generate it from the root of > your drive you should get absolute paths. > > So: > > cd \ > for /r %i in (*.tif) do gdaltindex mytileindex.shp %i > > Alternatively, you can try and set SHAPEPATH to > /ms4w/apps/chameleon/samples/data/topo/ > > Best regards, > Bart > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > --------- Oorspronkelijk bericht -------- > Van: Steven De Vriendt > Naar: Bart van den Eijnden OSGIS > Cc: MAPSERVER-USERS at lists.umn.edu > Onderwerp: Re: [UMN_MAPSERVER-USERS] Problem with map file serving WMS - > tiff > Datum: 16/04/07 06:01 > > > This is what's in the shpindex.dbf file > > > > location > > t136z.tif > > t136n.tif > > t137z.tif > > t137n.tif > > .... > > > > It doesn't mention any relative or absolute paths, just the names of > > my tif files... > > > > On 4/16/07, Bart van den Eijnden (OSGIS) <bartvde at osgis.nl> wrote: > > > What kind of values are in the location column of your tileindex dbf? > Are > > > these relative or absolute paths? > > > > > > Best regards, > > > Bart > > > > > > -- > > > Bart van den Eijnden > > > OSGIS, Open Source GIS > > > http://www.osgis.nl > > > > > > > > > --------- Oorspronkelijk bericht -------- > > > Van: Steven De Vriendt <gisaalter at GMAIL.COM> > > > Naar: MAPSERVER-USERS at LISTS.UMN.EDU > <MAPSERVER-USERS at LISTS.UMN.EDU> > > > Onderwerp: [UMN_MAPSERVER-USERS] Problem with map file serving WMS - > tiff > > > Datum: 16/04/07 05:45 > > > > > > > Below is my map-file for serving a tiff file using mapserver > > > WMS-capabilities. > > > > Yet, I'm unsuccesfull finding out why it doesn't work. > > > > Can someone have a look at it and correct it where I've gone > wrong ? > > > > Thanks ! > > > > > > > > MAP > > > > NAME TIFF_TEST > > > > STATUS ON > > > > SIZE 500 500 > > > > SYMBOLSET ../etc/symbols.sym > > > > EXTENT 77336.359625 189988.500250 90937.297125 201812.968625 > > > > UNITS METERS > > > > IMAGECOLOR 255 255 255 > > > > FONTSET ../etc/fonts.txt > > > > TRANSPARENT FALSE > > > > > > > > WEB > > > > IMAGEPATH > &quot;/ms4w/apps/chameleon/samples/data/topo&quot; > > > > IMAGEURL &quot;/ms_tmp/&quot; > > > > METADATA > > > > &quot;wms_abstract&quot; &quot;Demo for > Geotiff&quot; > > > > &quot;wms_title&quot; &quot;WMS Demo > Server&quot; > > > > &quot;wms_onlineresource&quot; > > > > > > > > &quot;http://0.0.0.0:8888/cgi-bin/mapserv.exe?map=/ms4w/apps/chameleon/samples/map/wmsserver_tiff.map&amp;&quot; > > > > &quot;wms_srs&quot; &quot;EPSG:31300&quot; > > > > > > > > END > > > > END > > > > > > > > OUTPUTFORMAT > > > > NAME GEOTIFF > > > > DRIVER &quot;GDAL/GTiff&quot; > > > > MIMETYPE &quot;image/tiff&quot; > > > > IMAGEMODE &quot;PC256&quot; > > > > EXTENSION &quot;tif&quot; > > > > END > > > > > > > > > > > > PROJECTION > > > > &quot;init=epsg:31300&quot; > > > > END > > > > > > > > LAYER > > > > NAME &quot;hillshade_rough&quot; > > > > > > > > TILEINDEX > > > > &quot;/ms4w/apps/chameleon/samples/data/topo/shpindex.shp&quot; > > > > TILEITEM &quot;location&quot; > > > > TYPE RASTER > > > > STATUS ON > > > > # display layer only in map scales of 100000 and smaller, > means > > > > scale values &gt; 100000 > > > > MINSCALE 100000 > > > > > > > > METADATA > > > > &quot;WMS_TITLE&quot; > &quot;topokaarten&quot; > > > > &quot;WMS_ABSTRACT&quot; > &quot;agiv vlaanderen&quot; > > > > &quot;WMS_SRS&quot; > &quot;EPSG:31300&quot; > > > > END > > > > PROJECTION > > > > &quot;init=epsg:31300&quot; > > > > END > > > > > > > > END > > > > > > > > > > > > > > > > > > > > > > > > > > > > From prodriguez at ADASASISTEMAS.COM Mon Apr 16 02:04:00 2007 From: prodriguez at ADASASISTEMAS.COM (=?utf-8?Q?Pablo__Rodr=C3=ADguez_Madro=C3=B1o?=) Date: Mon, 16 Apr 2007 11:04:00 +0200 Subject: How to get the map's EXTENT Message-ID: Hello there, The extent parameters may be expressed in different units. If you don't specify any unit, degrees minutes and secons will be considered. If you want to set other units you can use the UNITS parameter on your mapfile. For instance, you could use "UNITS meters". Of course, this depends on your base geographic data. I'm not quite sure, but I think that shapefiles use projected coordinates. You should then add "UNITS meters" in your mapfile to show them correctly. In case of doubt please try to use some of the samples of the MapServer tutorial to learn how to set the extent parameter. I hope this helps... Pablo Rodr?guez Madro?o Divisi?n de Sistemas de Informaci?n ADASA Sistemas 93.264.06.02 600.92.65.10 -----Mensaje original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] En nombre de ??? Enviado el: domingo, 15 de abril de 2007 14:59 Para: MAPSERVER-USERS at LISTS.UMN.EDU Asunto: [UMN_MAPSERVER-USERS] How to get the map's EXTENT I'm a newbie of Mapserver, now I create a new project with some shapefile and tif map files, to build a web-gis sample. Now I'm quite comfused about the EXTENT parameters in the XXX.map file when I use the 3rd-party Map data files. Does the paremeters of the shapefile file, which are got by ogrinfo, are just the ones in the XXX.map file ? or any suggetion about how to define the EXTENT paremeter is appreciated~ Thanks in advance. ??Best wishes ^_^ ????????Leo Chou ????????hust_blood at 163.com ??????????2007-04-15 From prodriguez at ADASASISTEMAS.COM Mon Apr 16 02:14:43 2007 From: prodriguez at ADASASISTEMAS.COM (=?iso-8859-1?Q?Pablo__Rodr=EDguez_Madro=F1o?=) Date: Mon, 16 Apr 2007 11:14:43 +0200 Subject: google earth images Message-ID: Hi, Luis We've done some research to include KML files into MapServer (not to include Google Earth images!). We are currently developing a project to use this. If it is of interest to you please contact me. Bye, Pablo Rodr?guez Madro?o Divisi?n de Sistemas de Informaci?n ADASA Sistemas 93.264.06.02 600.92.65.10 _____ De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] En nombre de Luis Trevi?o Enviado el: viernes, 13 de abril de 2007 19:02 Para: MAPSERVER-USERS at LISTS.UMN.EDU Asunto: [UMN_MAPSERVER-USERS] google earth images I?d like to add a layer with a google earth image on my map. Does anybody know if it is possible? any examples? Thanks in advance Luis -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at GMAIL.COM Mon Apr 16 05:36:42 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Mon, 16 Apr 2007 06:36:42 -0600 Subject: google earth images In-Reply-To: <1563.168.103.93.50.1176484294.squirrel@www.hostgis.com> Message-ID: On 4/13/07, Gregor Mosheh wrote: > > I?d like to add a layer with a google earth image on my map. Does anybody > > know if it is possible? any examples? > > This question comes up about once a month, yeah? :) > > There's no way to use Google Maps layers directly in Mapserver; it's a > violation of Google's usage policy, and they've shot down attempts to do > it in the past. > > However, you can do the opposite, and overlay WMS data onto a Google Map > -- so you get the cool slippy maps but with your own photos. And you can > try something like OpenLayers, which has support for both Google Maps and > for WMS (e.g. from Mapserver) data sources. > > -Gregor > I am confused by why using OpenLayers is okay, but using MapServer is not. In both cases you are adding your own content to Google Maps content. With OL it is being done on the client in the browser, with MapServer it is being done on the server and passed t the browser. But the net effect seems similar. So why does Google care how you do it? Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From gisaalter at GMAIL.COM Mon Apr 16 05:47:27 2007 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Mon, 16 Apr 2007 14:47:27 +0200 Subject: Problem with map file serving WMS - tiff In-Reply-To: <8d2ea9d70704160116k6d69d78ar718a4441fbea6acc@mail.gmail.com> Message-ID: Solved :-) Forget to add an "end" at the end of the map-file... All working now thanks for helping out ! Regards, Steven On 4/16/07, Steven De Vriendt wrote: > Bart, > > I've added the shapepath line to my map-file, still no luck... > When I do a GetCapabilities-request, I get the the following error: > > msLoadMap(): Premature End-of-File. > > Thanks for helping out ! > > Steven > > On 4/16/07, Bart van den Eijnden (OSGIS) wrote: > > I've had the most luck with using absolute paths in tileindexes. > > > > How did you generate your tileindex? If you generate it from the root of > > your drive you should get absolute paths. > > > > So: > > > > cd \ > > for /r %i in (*.tif) do gdaltindex mytileindex.shp %i > > > > Alternatively, you can try and set SHAPEPATH to > > /ms4w/apps/chameleon/samples/data/topo/ > > > > Best regards, > > Bart > > > > -- > > Bart van den Eijnden > > OSGIS, Open Source GIS > > http://www.osgis.nl > > > > > > --------- Oorspronkelijk bericht -------- > > Van: Steven De Vriendt > > Naar: Bart van den Eijnden OSGIS > > Cc: MAPSERVER-USERS at lists.umn.edu > > Onderwerp: Re: [UMN_MAPSERVER-USERS] Problem with map file serving WMS - > > tiff > > Datum: 16/04/07 06:01 > > > > > This is what's in the shpindex.dbf file > > > > > > location > > > t136z.tif > > > t136n.tif > > > t137z.tif > > > t137n.tif > > > .... > > > > > > It doesn't mention any relative or absolute paths, just the names of > > > my tif files... > > > > > > On 4/16/07, Bart van den Eijnden (OSGIS) <bartvde at osgis.nl> wrote: > > > > What kind of values are in the location column of your tileindex dbf? > > Are > > > > these relative or absolute paths? > > > > > > > > Best regards, > > > > Bart > > > > > > > > -- > > > > Bart van den Eijnden > > > > OSGIS, Open Source GIS > > > > http://www.osgis.nl > > > > > > > > > > > > --------- Oorspronkelijk bericht -------- > > > > Van: Steven De Vriendt <gisaalter at GMAIL.COM> > > > > Naar: MAPSERVER-USERS at LISTS.UMN.EDU > > <MAPSERVER-USERS at LISTS.UMN.EDU> > > > > Onderwerp: [UMN_MAPSERVER-USERS] Problem with map file serving WMS - > > tiff > > > > Datum: 16/04/07 05:45 > > > > > > > > > Below is my map-file for serving a tiff file using mapserver > > > > WMS-capabilities. > > > > > Yet, I'm unsuccesfull finding out why it doesn't work. > > > > > Can someone have a look at it and correct it where I've gone > > wrong ? > > > > > Thanks ! > > > > > > > > > > MAP > > > > > NAME TIFF_TEST > > > > > STATUS ON > > > > > SIZE 500 500 > > > > > SYMBOLSET ../etc/symbols.sym > > > > > EXTENT 77336.359625 189988.500250 90937.297125 201812.968625 > > > > > UNITS METERS > > > > > IMAGECOLOR 255 255 255 > > > > > FONTSET ../etc/fonts.txt > > > > > TRANSPARENT FALSE > > > > > > > > > > WEB > > > > > IMAGEPATH > > &quot;/ms4w/apps/chameleon/samples/data/topo&quot; > > > > > IMAGEURL &quot;/ms_tmp/&quot; > > > > > METADATA > > > > > &quot;wms_abstract&quot; &quot;Demo for > > Geotiff&quot; > > > > > &quot;wms_title&quot; &quot;WMS Demo > > Server&quot; > > > > > &quot;wms_onlineresource&quot; > > > > > > > > > > > &quot;http://0.0.0.0:8888/cgi-bin/mapserv.exe?map=/ms4w/apps/chameleon/samples/map/wmsserver_tiff.map&amp;&quot; > > > > > &quot;wms_srs&quot; &quot;EPSG:31300&quot; > > > > > > > > > > END > > > > > END > > > > > > > > > > OUTPUTFORMAT > > > > > NAME GEOTIFF > > > > > DRIVER &quot;GDAL/GTiff&quot; > > > > > MIMETYPE &quot;image/tiff&quot; > > > > > IMAGEMODE &quot;PC256&quot; > > > > > EXTENSION &quot;tif&quot; > > > > > END > > > > > > > > > > > > > > > PROJECTION > > > > > &quot;init=epsg:31300&quot; > > > > > END > > > > > > > > > > LAYER > > > > > NAME &quot;hillshade_rough&quot; > > > > > > > > > > TILEINDEX > > > > > > &quot;/ms4w/apps/chameleon/samples/data/topo/shpindex.shp&quot; > > > > > TILEITEM &quot;location&quot; > > > > > TYPE RASTER > > > > > STATUS ON > > > > > # display layer only in map scales of 100000 and smaller, > > means > > > > > scale values &gt; 100000 > > > > > MINSCALE 100000 > > > > > > > > > > METADATA > > > > > &quot;WMS_TITLE&quot; > > &quot;topokaarten&quot; > > > > > &quot;WMS_ABSTRACT&quot; > > &quot;agiv vlaanderen&quot; > > > > > &quot;WMS_SRS&quot; > > &quot;EPSG:31300&quot; > > > > > END > > > > > PROJECTION > > > > > &quot;init=epsg:31300&quot; > > > > > END > > > > > > > > > > END > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > From punk.kish at GMAIL.COM Mon Apr 16 05:57:49 2007 From: punk.kish at GMAIL.COM (P Kishor) Date: Mon, 16 Apr 2007 07:57:49 -0500 Subject: google earth images In-Reply-To: Message-ID: On 4/16/07, Richard Greenwood wrote: > On 4/13/07, Gregor Mosheh wrote: > > > I?d like to add a layer with a google earth image on my map. Does anybody > > > know if it is possible? any examples? > > > > This question comes up about once a month, yeah? :) > > > > There's no way to use Google Maps layers directly in Mapserver; it's a > > violation of Google's usage policy, and they've shot down attempts to do > > it in the past. > > > > However, you can do the opposite, and overlay WMS data onto a Google Map > > -- so you get the cool slippy maps but with your own photos. And you can > > try something like OpenLayers, which has support for both Google Maps and > > for WMS (e.g. from Mapserver) data sources. > > > > -Gregor > > First, the original question was confusingly asked -- the original question was, " I?d like to add a layer with a google earth image on my map." Without any further context, the OP was mixing technologies -- Google Earth is a desktop application with a direct connection to the net, but asking about it on a MapServer list conflated it with MapServer, a web application. Hence, Gregor's answer, "There's no way to use Google Maps layers directly in Mapserver." Well, the OP never asked about using Google Maps in a MapServer application, but while possible, doing so is indeed a violation of Google's Terms of Services (TOS). Which bring us to Rich's question -- > > I am confused by why using OpenLayers is okay, but using MapServer is > not. In both cases you are adding your own content to Google Maps > content. With OL it is being done on the client in the browser, with > MapServer it is being done on the server and passed t the browser. But > the net effect seems similar. So why does Google care how you do it? > Google Maps data ---> MapServer based application|OpenLayers is NOT ok. But WMS served by MapServer or anything else ---> Google Maps|MapServer based application|OpenLayers is ok. In other words, Google Maps data can be used inside only a Google Maps application, but other data can also be used inside such an application. However, Google Maps data may not be used inside any other application as that violated Google's TOS. OpenLayers is just an alternative to using Google Maps, the application, but it still does not allow one to use Google Maps, the data. Google Maps, the data and the application, might have other restrictions via its TOS as well regarding their use in commercial applications. OpenLayers would not have such restrictions. -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.nelson.wisc.edu/ Open Source Geospatial Foundation http://www.osgeo.org/education/ --------------------------------------------------------------------- collaborate, communicate, compete ===================================================================== From gregor at HOSTGIS.COM Mon Apr 16 06:32:11 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Mon, 16 Apr 2007 07:32:11 -0600 Subject: google earth images In-Reply-To: Message-ID: > I am confused by why using OpenLayers is okay, but using MapServer is > not. In both cases you are adding your own content to Google Maps > content. With OL it is being done on the client in the browser, with > MapServer it is being done on the server and passed t the browser. But > the net effect seems similar. So why does Google care how you do it? With OpenLayers, you're using Google Maps content directly (along with other content, which has always been okay). But part of Google's terms is that you can't "mirror" the service to another protocol. So making a map that uses Google Maps is one OK but setting up a WMS reflector is not. You could always dig up a copy of the Google Maps acceptable use policy and peruse it for yourself. I agree that it *shouldn't* matter what you do with their imagery, but Google does care. Someone made a WMS reflector early on, and got a ceast-n-desist almost immediately. If you care to take it up with Google, try to talk them into allowing it to be funneled into WMS, I suspect that it'd be a very popular proposal with a lot of people. -- HostGIS Cartographic development and hosting services 707-822-9355 http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From rodrigo.andrade at DIGITRO.COM.BR Mon Apr 16 07:12:16 2007 From: rodrigo.andrade at DIGITRO.COM.BR (Rodrigo Del C. Andrade) Date: Mon, 16 Apr 2007 11:12:16 -0300 Subject: Possible MS4W bug? Error using shape.setValue(). Message-ID: Greetings, We've encountered some problems migrating from mapserver 4.8 to mapserver 4.10.1, specifically java mapscript. We have some development machines running an in-house built mapscript and some boxes running windows 2k with the latest MS4W binaries. The following problems happen on the windows boxes, but the same code works fine on the linux one: at some point in our code, a loop makes 3 calls to shape.setValue() to store some strings for later use. After migrating to 4.10.1, we added shape.initValues(3) to the method as instructed in the migration guide (http://mapserver.gis.umn.edu/download/current/migration_guide_48_410) and that was fine. On the linux machines it all works fine, but *only* on the windows machines it kills the application. Debugging the offending code step by step showed that the methods are called and the values are set without errors the first time trough the loop, then when it enters the iteration for the 2nd time. a new shapeObj is created, initValue() goes about its business without errors and when it tries to setValue() the first element Tomcat and the whole application goes down. Below is a snipet of the trace, full log attached Stack: [0x0db70000,0x0dbb0000), sp=0x0dbacb24, free space=242k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [ntdll.dll+0x4c024] C [MSVCR71.dll+0x16b3] C [MSVCR71.dll+0x16db] C [mapscript.dll+0x33e6b] j edu.umn.gis.mapscript.mapscriptJNI.shapeObj_setValue(JILjava/lang/String;)I+0 j edu.umn.gis.mapscript.shapeObj.setValue(ILjava/lang/String;)I+6 Any ideas? Thanks in advance Rodrigo -- *Rodrigo Del C. Andrade* /Programador/ /SIC - SSE - Solu??es Seguran?a P?blica/ *D?GITRO TECNOLOGIA* *E-mail:* rodrigo.andrade at digitro.com.br *Fone:* +55 48 3281-7314 / +55 48 3281-7000 *Fax:* +55 48 3281-7299 *Site:* www.digitro.com -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid1868.log Type: text/x-log Size: 28564 bytes Desc: not available URL: From anthony.k.farrant at GMAIL.COM Mon Apr 16 07:25:30 2007 From: anthony.k.farrant at GMAIL.COM (anthony farrant) Date: Mon, 16 Apr 2007 16:25:30 +0200 Subject: queryable layers Message-ID: Hi peeps, I'm generating a dynamic layer with mapscript (a point layer composed only of lat/longs, no other attributes) and I was wondering if this layer was actually queryable? I think I don't fully understand the notion of queryability. Would somebody care to exlplain? Thanks in advance, A -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jan.DeBelder at SADL.KULEUVEN.BE Mon Apr 16 07:55:53 2007 From: Jan.DeBelder at SADL.KULEUVEN.BE (Jan De Belder) Date: Mon, 16 Apr 2007 16:55:53 +0200 Subject: queryable layers In-Reply-To: Message-ID: Why query when you have no attributes ? The point of queryability is to retrieve attribute information of one (mapserver QUERY control) or many (mapserver NQUERY control) layers on a certain spatial location. Read more about this on : http://mapserver.gis.umn.edu/docs/reference/cgi/controls and the query tutorial on http://biometry.gis.umn.edu/tutorial/sections.html Regards Jan -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of anthony farrant Sent: maandag 16 april 2007 16:26 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] queryable layers Hi peeps, I'm generating a dynamic layer with mapscript (a point layer composed only of lat/longs, no other attributes) and I was wondering if this layer was actually queryable? I think I don't fully understand the notion of queryability. Would somebody care to exlplain? Thanks in advance, A Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm -------------- next part -------------- An HTML attachment was scrubbed... URL: From anthony.k.farrant at GMAIL.COM Mon Apr 16 08:29:57 2007 From: anthony.k.farrant at GMAIL.COM (anthony farrant) Date: Mon, 16 Apr 2007 17:29:57 +0200 Subject: queryable layers In-Reply-To: <000a01c78037$54fa39b0$8ed1210a@sadl.agr.ad10.intern.kuleuven.ac.be> Message-ID: Is it possible to add attributes dynamically to point, except the lat/long (x/y) attributes of course? I'm generating points through 1) mapscript 2) dynamic mapfile (text) generation with inline points. Thx A. On 4/16/07, Jan De Belder wrote: > > Why query when you have no attributes ? The point of queryability is to > retrieve attribute information of one (mapserver QUERY control) or many > (mapserver NQUERY control) layers on a certain spatial location. > > Read more about this on : > http://mapserver.gis.umn.edu/docs/reference/cgi/controls and the query > tutorial on http://biometry.gis.umn.edu/tutorial/sections.html > > Regards > Jan > > -----Original Message----- > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On > Behalf Of *anthony farrant > *Sent:* maandag 16 april 2007 16:26 > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* [UMN_MAPSERVER-USERS] queryable layers > > Hi peeps, > > I'm generating a dynamic layer with mapscript > (a point layer composed only of lat/longs, no > other attributes) and I was wondering if this layer > was actually queryable? > > I think I don't fully understand the notion of queryability. > Would somebody care to exlplain? > > Thanks in advance, > > A > > > > Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm for more > information. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at GMAIL.COM Mon Apr 16 08:57:01 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Mon, 16 Apr 2007 09:57:01 -0600 Subject: google earth images In-Reply-To: <4783.168.103.93.50.1176730331.squirrel@www.hostgis.com> Message-ID: Puneet, Gregor; Thanks for your replies. Unless I am missing one of your points, you seem to be contradicting each other. Puneet says that you may not use Google Maps content in any application other than the Google Maps browser interface. But Gregor says that you are allowed to use Google Maps content in another application such as OpenLayers as long as you are not mirroring, etc. So I'm still confused. Quoted text from Puneet and Gregor below: On 4/16/07, P Kishor wrote: > In other words, Google Maps data can be used inside only a Google Maps > application, but other data can also be used inside such an > application. However, Google Maps data may not be used inside any > other application as that violated Google's TOS. On 4/16/07, Gregor Mosheh wrote: > With OpenLayers, you're using Google Maps content directly (along with > other content, which has always been okay). Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From punk.kish at GMAIL.COM Mon Apr 16 09:00:11 2007 From: punk.kish at GMAIL.COM (P Kishor) Date: Mon, 16 Apr 2007 11:00:11 -0500 Subject: google earth images In-Reply-To: Message-ID: Gregor may be correct, I might be wrong. Best is to consult Google's TOS directly. On 4/16/07, Richard Greenwood wrote: > Puneet, Gregor; > > Thanks for your replies. Unless I am missing one of your points, you > seem to be contradicting each other. Puneet says that you may not use > Google Maps content in any application other than the Google Maps > browser interface. But Gregor says that you are allowed to use Google > Maps content in another application such as OpenLayers as long as you > are not mirroring, etc. > > So I'm still confused. Quoted text from Puneet and Gregor below: > > On 4/16/07, P Kishor wrote: > > In other words, Google Maps data can be used inside only a Google Maps > > application, but other data can also be used inside such an > > application. However, Google Maps data may not be used inside any > > other application as that violated Google's TOS. > > On 4/16/07, Gregor Mosheh wrote: > > With OpenLayers, you're using Google Maps content directly (along with > > other content, which has always been okay). > > Rich > > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.nelson.wisc.edu/ Open Source Geospatial Foundation http://www.osgeo.org/education/ --------------------------------------------------------------------- collaborate, communicate, compete ===================================================================== From gregor at HOSTGIS.COM Mon Apr 16 09:13:25 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Mon, 16 Apr 2007 10:13:25 -0600 Subject: google earth images In-Reply-To: Message-ID: > Thanks for your replies. Unless I am missing one of your points, you > seem to be contradicting each other. Puneet says that you may not use > Google Maps content in any application other than the Google Maps > browser interface. But Gregor says that you are allowed to use Google > Maps content in another application such as OpenLayers as long as you > are not mirroring, etc. Your question was about using Google Maps imagery in Mapserver, yeah? Short answer: It'd have to be in a Mapserver format (WMS or GDAL or plain raster) and that doesn't currently exist. Google shot down previous attempts to make a Google-to-WMS gateway, on the grounds that it violated their Terms. For the real authority, I'd suggest going to the Google Maps API Documentation and reading the terms of use -- go by their words and not mine. And you can always check out OpenLayers and even contact them to see how (or whether) they got around the legal issues. I'd be interested (as would many others) to hear what you find: some loophole, a sympathetic heart at Google, etc. From bhudspeth at EDAC.UNM.EDU Mon Apr 16 11:38:35 2007 From: bhudspeth at EDAC.UNM.EDU (William Hudspeth) Date: Mon, 16 Apr 2007 12:38:35 -0600 Subject: Problems with WMS time support Message-ID: Hello, I am using Mapserver 4.10.1 on Red Hat Enterprise 3. I am trying to display a GRASS raster image with WMS time support. I have created a tileindex using gdaltindex, imported the tileindex shapefile into PostGIS, and added a timestamp column containing the date and hour in an acceptable format (e.g. 2007-04-16 01:00:00). My mapfile entries for the tileindex, and raster layer are: #*****LAYER - TILE INDEX FOR PM2.5 RASTERS (Time sensitive) LAYER STATUS ON NAME "pm25_time_index" TYPE POLYGON DATA "the_geom from pm25_dream_raster_view" METADATA "wms_title" "PM25 TIME INDEX" "wms_srs" "EPSG:4326" "wms_extent" "-120 26 -96:50 43:50" #[minx][miny][maxx][maxy] "wms_timeextent" "2003-01-01 00:00:00/2009-01-31 23:00:00" "wms_timeitem" "datetime" "wms_timedefault" "2007-03-30T18:00:00" time_sensitive "yes" background 'yes' dream_raster "no" raster_selected "" static "no" checked "unchecked" END CONNECTION "user=apache dbname=reason host=phairs-devel.unm.edu" CONNECTIONTYPE postgis END #**LAYER - DREAM RASTER PM2.5 (Time Sensitive) LAYER NAME 'dream_pm25' TYPE RASTER STATUS ON DEBUG ON DUMP TRUE TRANSPARENCY 50 FILTER "" METADATA "wms_abstract" 'DREAM model dust output - Date:12/15/03 Time:00 hrs UTC Particle Size Class: PM2.5' #wms_abstract(Abstract) "wms_keywordlist" 'DREAM dust model, PM2.5' #wms_keywordlist (Keywordlist) "wms_opaque" '0' #wms_opaque(layer) "wms_srs" 'EPSG:4326' #wms_srs(SRS) "wms_title" "DREAM dust output PM2.5" "wms_extent" "-120 26 -96:50 43:50" #[minx][miny][maxx][maxy] "wms_timeformat" "YYYY-MM-DDTHH" "wms_timeextent" "2003-01-01T00:00:00/2009-01-31T23:00:00" "wms_timeitem" "datetime" "wms_timedefault" "2007-03-30T18:00:00" layer_title 'DREAM dust output - PM2.5' layer_name 'dream_pm25' background 'yes' checked 'unchecked' build_class 'no' raster_selected 'unselected' #used to control which raster layer is active static 'no' #if no, can be controlled in legend; if yes, never appears in legend, but visibility is controlled by STATUS analytic 'no' #used to identify whether the layer is to be used in density functions time_sensitive "no" dream_raster "yes" END #METADATA PROJECTION "init=epsg:4326" #WGS84 Decimal Degrees END #PROJECTION TILEITEM "location" TILEINDEX "pm25_time_index" END #LAYER My WMS request looks like this: http://phairs-devel.unm.edu:8080/cgi-bin/mapserv?map=mapmodule_wms.map&VERSION=1.1.1&REQUEST=GetMap&BBox=-120.000,26.000,-97.000,44.000&SRS=EPSG:4326&Width=459&Height=360&Layers=dream_pm25&TIME=2007-04-06T08 And, the error I get is below: msDrawMap(): Image handling error. Failed to draw layer named 'dream_pm25'. msDrawRaster(): Image handling error. Unrecognized or unsupported image format drawEPP(): Image handling error. /home/apache/western_us/20070310/cellhd/D031007_t21.pm25_raw is not an EPPL file. Note how the raster referenced in the error is different from that referenced in the WMS request. I can find no reference to the raster referenced in the error output anywhere in my mapfile. I would appreciate any insight into this problem. Thanks, Bill From richard.greenwood at GMAIL.COM Mon Apr 16 09:26:45 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Mon, 16 Apr 2007 10:26:45 -0600 Subject: google earth images In-Reply-To: <1299.168.103.93.50.1176740005.squirrel@www.hostgis.com> Message-ID: On 4/16/07, Gregor Mosheh wrote: > Your question was about using Google Maps imagery in Mapserver, yeah? No. I jumped into this thread trying to get a better understanding of Google's restrictions on the use of their map content, and I think you've provided a pretty clear explanation. Thanks, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From szekerest at GMAIL.COM Mon Apr 16 09:58:19 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Mon, 16 Apr 2007 18:58:19 +0200 Subject: Possible MS4W bug? Error using shape.setValue(). In-Reply-To: <46238440.5010500@digitro.com.br> Message-ID: Rodrigo, Could you post the corresponding code fragment around getSymbolByName, where the problem has occurred? Best regards, Tamas 2007/4/16, Rodrigo Del C. Andrade : > > Greetings, > > We've encountered some problems migrating from mapserver 4.8 to > mapserver 4.10.1, specifically java mapscript. > We have some development machines running an in-house built > mapscript and some boxes running windows 2k with the latest MS4W > binaries. The following problems happen on the windows boxes, but the > same code works fine on the linux one: > at some point in our code, a loop makes 3 calls to shape.setValue() > to store some strings for later use. After migrating to 4.10.1, we added > shape.initValues(3) to the method as instructed in the migration guide > (http://mapserver.gis.umn.edu/download/current/migration_guide_48_410) > and that was fine. On the linux machines it all works fine, but *only* > on the windows machines it kills the application. > Debugging the offending code step by step showed that the methods > are called and the values are set without errors the first time trough > the loop, then when it enters the iteration for the 2nd time. a new > shapeObj is created, initValue() goes about its business without errors > and when it tries to setValue() the first element Tomcat and the whole > application goes down. Below is a snipet of the trace, full log attached > > Stack: [0x0db70000,0x0dbb0000), sp=0x0dbacb24, free space=242k > Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, > C=native code) > C [ntdll.dll+0x4c024] > C [MSVCR71.dll+0x16b3] > C [MSVCR71.dll+0x16db] > C [mapscript.dll+0x33e6b] > j > edu.umn.gis.mapscript.mapscriptJNI.shapeObj_setValue(JILjava/lang/String;)I+0 > j edu.umn.gis.mapscript.shapeObj.setValue(ILjava/lang/String;)I+6 > > Any ideas? > Thanks in advance > > Rodrigo > > -- > *Rodrigo Del C. Andrade* > /Programador/ > /SIC - SSE - Solu??es Seguran?a P?blica/ > > *D?GITRO TECNOLOGIA* > *E-mail:* rodrigo.andrade at digitro.com.br > > *Fone:* +55 48 3281-7314 / +55 48 3281-7000 > *Fax:* +55 48 3281-7299 > *Site:* www.digitro.com > > > From Steve.Lime at DNR.STATE.MN.US Mon Apr 16 11:18:33 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 16 Apr 2007 13:18:33 -0500 Subject: Map with road signs In-Reply-To: <2F86ED212F3E164EB9FBB2E68C67858E0499574C@SINFRA0-EXC003.MTQ.MIN.INTRA> Message-ID: Is a road sign a combination of a base sign and then an identifier (e.g. road number)? If so then you can build those using a combination of classes (to define the base sign) and a label. This is the standard way of handling road signs. The other idea, that is, SYMBOL [signcolumn] will be possible in 5.0 (see RFC 19) but might become problematic from a performance perspective. Steve >>> On 4/13/2007 at 1:37 PM, in message <2F86ED212F3E164EB9FBB2E68C67858E0499574C at SINFRA0-EXC003.MTQ.MIN.INTRA>, L?veill?, James wrote: > Hi, > > I need to produce a map that shows road signs. > I have over 1200 types of road signs, and a total of 1.2 M road signs. > I have the position (POINT) and the type of every road sign. > Every sign needs to show up on my map using a particular image depending on > it's type. > > Since I don't want to create 1200 CLASS in my LAYER, is there another > solution (like using the name of the image stored in the database for every > sign) ? > > > ______________________________________________________ > > JAMES L?VEILL? > Service des syst?mes de Mission > Direction des technologies de l'information > Minist?re des Transports du Qu?bec > > 5833, boul. Pierre-Bertrand, 2i?me ?tage > Qu?bec (Qu?bec) G2K 1K7 > T?l?phone: (418) 380-2005 poste 227 > T?l?copieur: (418) 644-6653 > james.leveille at mtq.gouv.qc.ca > > > > > From matt.pettis at THOMSON.COM Mon Apr 16 11:19:30 2007 From: matt.pettis at THOMSON.COM (Matt Pettis) Date: Mon, 16 Apr 2007 13:19:30 -0500 Subject: php/mapscript and client-side imagemaps In-Reply-To: <89C159F45B13A24682D98BDEF58E451F0E342623@TLRUSMNEAGMBX28.ERF.THOMSON.COM> Message-ID: I'm resubmitting this with the hopes that someone may yet have some insight... However, there is one change to the .map file, but the result is the same... I've added a TEMPLATE statement in the LAYER object... Below is the new .map object: <=== Mapfile US-Senate-prct-imgmap.map ===> MAP IMAGETYPE PNG EXTENT 189783.546875 4810309 761653.5625 5472346.5 SIZE 680 510 IMAGECOLOR 255 255 255 FONTSET "C:\ms4w\Apache\htdocs\fonts\fonts.list" WEB IMAGEPATH "C:\ms4w\Apache\htdocs\tmp\" IMAGEURL "/tmp/" END LAYER NAME "county" CONNECTIONTYPE postgis CONNECTION "user=postgres dbname=postgis password=4theluv" DATA "the_geom from (select distinct the_geom from shp_counties) as foo using unique the_geom using SRID=-1" STATUS DEFAULT TYPE POLYGON TRANSPARENCY 0 TEMPLATE "co-imgmap-template.htm" CLASS NAME "county" STYLE OUTLINECOLOR 0 0 0 END END END END # End MAP def <=====================> The template looks like this: <=== Mapfile US-Senate-prct-imgmap.map ===> <=====================> And the .php snippet looks like this: <=== php file code snippet ===> $imgmap = ms_newMapObj( "C:\\ms4w\\Apache\\htdocs\\postgis\\US-Senate-prct-imgmap.map" ); $imgmap->setExtent($myrow['xmin'],$myrow['ymin'],$myrow['xmax'],$myrow[' ymax']); $imgmap->selectOutputFormat("imagemap"); $imgmapimg = $imgmap->draw(); $imgmapurl = $imgmapimg->saveWebImage(); <=====================> The map output file looks the same: <=== Mapfile output (46140b8f_dec_0.html) ===> <=====================> Tia, matt -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Pettis, Matthew (Thomson) Sent: Wednesday, April 04, 2007 3:42 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] php/mapscript and client-side imagemaps Hi All, I've tried again, and got closer... Below are the PHP code and the mapfile code, along with the output. I'm rendering MN counties, so I want to output 87 polygons worth of image coordinates defining the counties. I know that, as opposed to the html template approach, that I haven't defined any way via PHP to specify the coords (like using the [shpXY ...] parts of the html template). Can anyone help me add code to output a line with the correct coordinates (one record per query result) to process each polygon imagemap output and output customized lines into the file? That would be code similar to the template example on the mapserver website that substitutes values into the template for [...] once for each query result and appends to the output like in the following: [NAME] (this template example is at http://mapserver.gis.umn.edu/docs/howto/imagemaps). Tia, Matt <=== php file code snippet ===> $imgmap = ms_newMapObj( "C:\\ms4w\\Apache\\htdocs\\postgis\\US-Senate-prct-imgmap.map" ); $imgmap->setExtent($myrow['xmin'],$myrow['ymin'],$myrow['xmax'],$myrow[' ymax']); $imgmap->selectOutputFormat("imagemap"); $imgmapimg = $imgmap->draw(); $imgmapurl = $imgmapimg->saveWebImage(); <=====================> <=== Mapfile US-Senate-prct-imgmap.map ===> MAP IMAGETYPE PNG # EXTENT 189783.546875 4810309 761653.5625 5472346.5 SIZE 680 510 IMAGECOLOR 255 255 255 FONTSET "C:\ms4w\Apache\htdocs\fonts\fonts.list" WEB IMAGEPATH "C:\ms4w\Apache\htdocs\tmp\" IMAGEURL "/tmp/" END LAYER NAME "county" CONNECTIONTYPE postgis CONNECTION "user=postgres dbname=postgis password=4theluv" DATA "the_geom from (select distinct the_geom from shp_counties) as foo using unique the_geom using SRID=-1" STATUS DEFAULT TYPE POLYGON TRANSPARENCY 0 CLASS NAME "county" STYLE OUTLINECOLOR 0 0 0 END END END END # End MAP def <=====================> <=== Mapfile output (46140b8f_dec_0.html) ===> <=====================> -----Original Message----- From: Daniel Morissette [mailto:dmorissette at mapgears.com] Sent: Wednesday, April 04, 2007 12:30 PM To: Pettis, Matthew (Thomson) Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] php/mapscript and client-side imagemaps Matt Pettis wrote: > Hi, > > I'm trying to get generate a client side imagemap (the ...) coordinates and inserting the text using just php/mapscript (avoiding using the templating methods found at http://mapserver.gis.umn.edu/docs/howto/imagemaps because I want as pure a php solution as i can get). I found the wiki entry for this (http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?ImageMap), and followed its instructions. In particular, the following lines did not generate what I thought: > > $imgmap = ms_newMapObj( > "C:\\ms4w\\Apache\\htdocs\\postgis\\imgmap.map" ); $imgmapimg = > $imgmap->draw(); $imgmapurl = > $imgmapimg->saveWebImage(MS_IMAGEMAP,1,1,0); > > I couldn't find documentation on saveWebImage, but I thought it would generate the text i would need to include in a section for my webpage. Instead, what was generated was a .png file. Should this be usable as an image map, or did I get this in error (the page rendered just fine). > The PHP MapScript saveWebImage doc is at: http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/i mageobj The Wiki page that you were looking at needs comes from the old/frozen wiki so it's out of date and will never be updated. The saveWebImage method doesn't take any arguments any more. Instead, you have to pick your output format using selectOutputFormat() before the draw() call. Something like this might work: $imgmap = ms_newMapObj( "C:\\ms4w\\Apache\\htdocs\\postgis\\imgmap.map" ); $imgmap->selectOutputFormat("imagemap"); $imgmapimg = $imgmap->draw(); $imgmapurl = $imgmapimg->saveWebImage(); Daniel -- Daniel Morissette http://www.mapgears.com/ From kholbrook at GWI.NET Mon Apr 16 12:16:17 2007 From: kholbrook at GWI.NET (Kirk Holbrook) Date: Mon, 16 Apr 2007 15:16:17 -0400 Subject: Conversion to Lat/Lon from EPSG:54004? Message-ID: Hi, Does anyone have Javascript code to convert to Lat/Lon from EPSG:54004? I found the following, but I'm not sure if it's correct. Also, I assume that I'd use two different radii for the R values below: for x, R = 6378137.0 m; for y, R = 6356752.3142 m. x = R(lon_rad) y = R ln [tan((pi/4)+lat_rad/2)] where R=radius of a sphere in map units, lon_rad=longitude in radians (rad=deg/57.2957795), lat_rad=latitude in radians, pi=3.14159..., ln=natural log, x and y in meters. If this is correct, then: lon_degrees = x_meters / 6378137.0 * 57.2957795 lat_degrees = ??? [sorry my math skills are a bit out of date] Any help is greatly appreciated! Thanks, Kirk From woodbri at SWOODBRIDGE.COM Mon Apr 16 17:15:17 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 16 Apr 2007 20:15:17 -0400 Subject: ms 4.10.1 Windows msGetLabelSize(): TrueType Font error. Could not find/open font. In-Reply-To: <462049D8.5050509@swoodbridge.com> Message-ID: As a follow up to this problem it looks like ms4w does not support absolute paths to font files in the fontset.txt file and that paths MUST be relative to the fontset.txt file. This is NOT the way the linux code works and it makes it difficult to mightrate applications from one environmant to the other. This should probably be a bug but bugzilla is down for the count. -Steve Stephen Woodbridge wrote: > Hi all, > > I don't usually use mapserver on Windows but I have run into the follow > error: > > msGetLabelSize(): TrueType Font error. Could not find/open font. > > I suspect this is a permission problem. as the files (fontset.txt and > the arial.ttf file) are where it is supposed to be, but serving it up > via mapserv.exe generates this error. And this all works just fine on > Linux. > > I running ms4w and Apache. Any thoughts on how to track down and fix this. > > -Steve From cbiggins at NOGGIN.COM.AU Mon Apr 16 20:21:20 2007 From: cbiggins at NOGGIN.COM.AU (Christian Biggins) Date: Mon, 16 Apr 2007 22:21:20 -0500 Subject: missing Message-ID: Hi Guys, I was determined to get this running without asking for assistance, but as I fall deeper into a realm of despair I find myself requiring the help of people who know what they are doing. I have setup MapServer on a CentOS box and I need it to only act as a WFS server only. I have a spatial table in a MySQL db that has the information required. When I run ogrinfo -al on the test.ovf file with my db connection in it, it returns the data (successfully?) Here is an example; OGRFeature(blah):462 ASTEXT(geometry) (String) = POINT(151.20387911797 -33.874637911661) But, when I try to access it through the GetFeature service, I get bugger all. missing This is the content of my map file; NAME WFS_server STATUS ON SIZE 400 300 UNITS METERS IMAGECOLOR 255 255 255 EXTENT -2000000000 -200000000 200000000 20000000000 WEB IMAGEPATH "/home/mapserver/fgs/tmp" IMAGEURL "/home/mapserver/fgs/tmp" METADATA "wfs_title" "Cims WFS Test Server" "wfs_srs" "EPSG:4283" "wfs_onlineresource" "http://node1.ans/cgi-bin/mapserv?" END END PROJECTION "init=epsg:4283" END LAYER NAME cims METADATA "wfs_title" "Cims" "wfs_typename" "Cims" "gml_include_items" "all" "wfs_service" "wfs" END TYPE POLYGON EXTENT -2000000000 -200000000 200000000 20000000000 STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "/home/mapserver/test.ovf" DATA cims DUMP TRUE PROJECTION "init=epsg:4283" END CLASS NAME "cims" STYLE SIZE 15 COLOR 0 255 0 END END END END The EXTENT is only for testing. The epsg used is for Australia. I'd love any assistance as its starting to send me nuts. Christian From Steve.Lime at DNR.STATE.MN.US Mon Apr 16 20:33:44 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 16 Apr 2007 22:33:44 -0500 Subject: mapserver bugzilla not reachable? Message-ID: Hi all: Compromised is probably a bit harsh. Our bugzilla instance was hit with some bug-spam. The contents were objectionable, the UMN noticed and shut down the network connection for that server (and the main mapserver site, although that was restored). While I have cleaned out the nasty bits, we (the MapServer TSC) have decided that now would be a good time to consider moving the bug tracking off the UMN servers to OSGeo infrastructure. The bugzilla instance at the UMN was particularly fragile, for instance, I have to physically go to the University to access the server- a major pain. A conversion is being tested right now and I hope we can be up on OSGeo servers very soon. If it looks like the conversion won't be smooth we'll restore bugzilla access at the UMN in the interim. Stay tuned... Steve >>> Stephen Woodbridge 04/14/07 7:51 AM >>> Alessandro Pasotti wrote: > http://mapserver.gis.umn.edu/bugs/index.cgi > I get a 404. > The bugzilla system was compromised and is offline. We are also looking to migrate over to OSGwo/trac for bug tracking. I'm sure there will be an announcement when things are back online, look for that. I do not know what the timeline for this will be. -Steve W From Steve.Lime at DNR.STATE.MN.US Mon Apr 16 22:16:19 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 17 Apr 2007 00:16:19 -0500 Subject: RFC 23 - MapServer Project Steering Committee Message-ID: Hi Folks: As part of the slow movement towards OSGeo membership the project needs to form what is called a "Project Steering Committee" (PSC) to formalize decision making. The closest thing to a MapServer PSC is the current MapServer "Technical Steering Committee" (TSC). That body has been in place for several years and it has served as a model for a number of other projects putting their PSC's together. There is draft Request For Comment available for, well, comment that would transition the MapServer TSC to the MapServer PSC. I would welcome any and all comments from community members regarding this proposal. See http://mapserver.gis.umn.edu/development/rfc/ms-rfc-23/ for more information. Thanks! Steve From candalt at ONLINE.NO Tue Apr 17 03:34:44 2007 From: candalt at ONLINE.NO (=?iso-8859-1?Q?Sture_Dings=F8yr?=) Date: Tue, 17 Apr 2007 12:34:44 +0200 Subject: Mapserver and WMS Elevation dimmension Message-ID: Hello I am using MapServer to fetch some WMS TIME dependent data. I then use the METADATA element "wms_time" to spesify my WMS TIME date within my layer. Eg. METADATA "wms_server_version" "1.1.1" "wms_srs" "EPSG:32633" "wms_name" "rr" "wms_format" "image/png" "wms_time" "2007-04-17" END This works great... But are there an equal parameter for spesifying the WMS ELEVATION elemet in the METADATA section? E.g. METADATA "wms_elevation" "100" END Regards Sture From rogerio.brito at INTERCODE.COM.BR Tue Apr 17 06:40:13 2007 From: rogerio.brito at INTERCODE.COM.BR (Rogerio Brito) Date: Tue, 17 Apr 2007 06:40:13 -0700 Subject: SWF Output highlight color Message-ID: Hello! How can I change the highlight color for a swf output? It's always red! There should be a way to change this color,yes? Thank you very much Rogerio -- View this message in context: http://www.nabble.com/SWF-Output-highlight-color-tf3590825.html#a10035521 Sent from the Mapserver - User mailing list archive at Nabble.com. From assefa at DMSOLUTIONS.CA Tue Apr 17 07:01:50 2007 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Tue, 17 Apr 2007 10:01:50 -0400 Subject: Mapserver and WMS Elevation dimmension In-Reply-To: <815855.1176806084045.JavaMail.adm-moff@moffice3.nsc.no> Message-ID: Hi there, There is no support in Mapserver for wms elevation. Later, Sture Dings?yr wrote: > Hello > > I am using MapServer to fetch some WMS TIME dependent data. I then use the METADATA element "wms_time" to spesify my WMS TIME date within my layer. Eg. > > METADATA > "wms_server_version" "1.1.1" > "wms_srs" "EPSG:32633" > "wms_name" "rr" > "wms_format" "image/png" > "wms_time" "2007-04-17" > END > > This works great... > > But are there an equal parameter for spesifying the WMS ELEVATION elemet in the METADATA section? E.g. > > METADATA > "wms_elevation" "100" > END > > 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 Tue Apr 17 07:25:07 2007 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Tue, 17 Apr 2007 10:25:07 -0400 Subject: Problems with WMS time support In-Reply-To: <1176748715.4621.17.camel@localhost> Message-ID: Hi there, From your request paramter (layers=dream_pm25), I am assuming that you are trying to access the 2nd layer in your example. What is the content of your tileindex file "pm25_time_index" ? Is there a reference to the D031007_t21.pm25_raw file in there ? I am assuming at this point that Grass is built into GDAL and your are able to load it properly (using something like gdalinfo and your grass raster, should let you know if it opens properly). Later, William Hudspeth wrote: > Hello, > > I am using Mapserver 4.10.1 on Red Hat Enterprise 3. > > I am trying to display a GRASS raster image with WMS time support. I > have created a tileindex using gdaltindex, imported the tileindex > shapefile into PostGIS, and added a timestamp column containing the date > and hour in an acceptable format (e.g. 2007-04-16 01:00:00). > > My mapfile entries for the tileindex, and raster layer are: > > #*****LAYER - TILE INDEX FOR PM2.5 RASTERS (Time sensitive) > > LAYER > STATUS ON > NAME "pm25_time_index" > TYPE POLYGON > DATA "the_geom from pm25_dream_raster_view" > METADATA > "wms_title" "PM25 TIME INDEX" > "wms_srs" "EPSG:4326" > "wms_extent" "-120 26 -96:50 43:50" #[minx][miny][maxx][maxy] > "wms_timeextent" "2003-01-01 00:00:00/2009-01-31 23:00:00" > "wms_timeitem" "datetime" > "wms_timedefault" "2007-03-30T18:00:00" > time_sensitive "yes" > background 'yes' > dream_raster "no" > raster_selected "" > static "no" > checked "unchecked" > END > CONNECTION "user=apache dbname=reason host=phairs-devel.unm.edu" > CONNECTIONTYPE postgis > END > > #**LAYER - DREAM RASTER PM2.5 (Time Sensitive) > > LAYER > NAME 'dream_pm25' > TYPE RASTER > STATUS ON > DEBUG ON > DUMP TRUE > TRANSPARENCY 50 > FILTER "" > METADATA > "wms_abstract" 'DREAM model dust output - Date:12/15/03 Time:00 hrs > UTC Particle Size Class: PM2.5' #wms_abstract(Abstract) > "wms_keywordlist" 'DREAM dust model, PM2.5' #wms_keywordlist > (Keywordlist) > "wms_opaque" '0' #wms_opaque(layer) > "wms_srs" 'EPSG:4326' #wms_srs(SRS) > "wms_title" "DREAM dust output PM2.5" > "wms_extent" "-120 26 -96:50 43:50" #[minx][miny][maxx][maxy] > "wms_timeformat" "YYYY-MM-DDTHH" > "wms_timeextent" "2003-01-01T00:00:00/2009-01-31T23:00:00" > "wms_timeitem" "datetime" > "wms_timedefault" "2007-03-30T18:00:00" > layer_title 'DREAM dust output - PM2.5' > layer_name 'dream_pm25' > background 'yes' > checked 'unchecked' > build_class 'no' > raster_selected 'unselected' #used to control which raster layer is > active > static 'no' #if no, can be controlled in legend; if yes, never > appears in legend, but visibility is controlled by STATUS > analytic 'no' #used to identify whether the layer is to be used in > density functions > time_sensitive "no" > dream_raster "yes" > END #METADATA > PROJECTION > "init=epsg:4326" #WGS84 Decimal Degrees > END #PROJECTION > TILEITEM "location" > TILEINDEX "pm25_time_index" > END #LAYER > > My WMS request looks like this: > > http://phairs-devel.unm.edu:8080/cgi-bin/mapserv?map=mapmodule_wms.map&VERSION=1.1.1&REQUEST=GetMap&BBox=-120.000,26.000,-97.000,44.000&SRS=EPSG:4326&Width=459&Height=360&Layers=dream_pm25&TIME=2007-04-06T08 > > > And, the error I get is below: > > > "http://schemas.opengeospatial.net/wms/1.1.1/exception_1_1_1.dtd"> > > > msDrawMap(): Image handling error. Failed to draw layer named > 'dream_pm25'. > msDrawRaster(): Image handling error. Unrecognized or unsupported image > format > drawEPP(): Image handling > error. /home/apache/western_us/20070310/cellhd/D031007_t21.pm25_raw is > not an EPPL file. > > > > Note how the raster referenced in the error is different from that > referenced in the WMS request. I can find no reference to the raster > referenced in the error output anywhere in my mapfile. > > I would appreciate any insight into this problem. > > Thanks, Bill > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From efujioka at DUKE.EDU Tue Apr 17 07:49:03 2007 From: efujioka at DUKE.EDU (Ei Fujioka) Date: Tue, 17 Apr 2007 10:49:03 -0400 Subject: Tile image with polygons got vertical line at the edge Message-ID: Hello experts, I have a weird problem that Mapserver images get one pixel wide vertical lines when they contain shapefiles that extend beyond the images (shapefiles are cut at the edge of the images). I'm developing a Google Maps application in which Mapserver layers are overlaid. As Google Map requests tiles of the map image, Mapserver sends them back. This usually works excellent. But when a tile has a shapefile extending beyond it, the tile got a kind of border line visible. Please see the screen shot. You'll see two vertical lines 256-pixel apart (which is the tile size). http://seamap.env.duke.edu:8888/dev/cache/misc/tile_edge_lines.jpg I tried PNG and GIF with the same results. This should have nothing to do with Google Maps because I still see the line when pulling the tile image directly onto the browser. Polygons are added to the map with PHP/Mapscript. Transparency, fill color and outline color are set. $layer->set('transparency',"30"); ... $poStyle = ms_newStyleObj($class_tmp); $poStyle->outlinecolor->setRGB(255,0,0); $poStyle->color->setRGB(200, 100, 0); Any workaround? MapServer version 4.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Thanks, Ei -- ====================== Ei Fujioka Research Associate Duke University (919) 613-8021 efujioka at duke.edu ====================== From woodbri at SWOODBRIDGE.COM Tue Apr 17 08:07:15 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 17 Apr 2007 11:07:15 -0400 Subject: Tile image with polygons got vertical line at the edge In-Reply-To: <4624DE5F.3050907@duke.edu> Message-ID: Hello Ei, Have you looked at ka-map or preferably openLayers? OpenLayers allows you to easily merge mapserver and Google into a single application and does all the heavy lifting. Regarding your extra lines, this is might be cause by the fact that the polygon is getting clipped to the extents of your tile. You might try setting the OUTLINECOLOR -1 -1 -1 for the polygon layer so that it is not draw. I do not think you would run into these problems with OpenLayers. -Steve W Ei Fujioka wrote: > Hello experts, > > I have a weird problem that Mapserver images get one pixel wide vertical > lines when they contain shapefiles that extend beyond the images > (shapefiles are cut at the edge of the images). > > I'm developing a Google Maps application in which Mapserver layers are > overlaid. As Google Map requests tiles of the map image, Mapserver sends > them back. This usually works excellent. But when a tile has a shapefile > extending beyond it, the tile got a kind of border line visible. > > Please see the screen shot. You'll see two vertical lines 256-pixel > apart (which is the tile size). > http://seamap.env.duke.edu:8888/dev/cache/misc/tile_edge_lines.jpg > > > I tried PNG and GIF with the same results. This should have nothing to > do with Google Maps because I still see the line when pulling the tile > image directly onto the browser. > Polygons are added to the map with PHP/Mapscript. Transparency, fill > color and outline color are set. > $layer->set('transparency',"30"); > ... > $poStyle = ms_newStyleObj($class_tmp); > $poStyle->outlinecolor->setRGB(255,0,0); > $poStyle->color->setRGB(200, 100, 0); > > Any workaround? > > > MapServer version 4.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT > INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > Thanks, > > > Ei > > From sunxj at YAHOO.COM Tue Apr 17 08:16:01 2007 From: sunxj at YAHOO.COM (Shannon Sun) Date: Tue, 17 Apr 2007 08:16:01 -0700 Subject: Google Look and Feel Message-ID: Dear folks, I am working on a Web Application to be Google Look and Feel. But I do not find the documents about the Google symbology, like the width, color, size of roads, streets, and freeways of Google Map? Anyone has any hint, URL links suggestions? Thanks in advance. regards, Shannon __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From efujioka at DUKE.EDU Tue Apr 17 10:15:43 2007 From: efujioka at DUKE.EDU (Ei Fujioka) Date: Tue, 17 Apr 2007 13:15:43 -0400 Subject: Tile image with polygons got vertical line at the edge In-Reply-To: <4624E2A3.6070702@swoodbridge.com> Message-ID: Thanks Steve, Unfortunately, OUTLINECOLOR -1 -1 -1 doesn't work. It seems the vertical line gets the color of the polygon fill color, not outline color. Yes, I have been looking into OpenLayers. It's a interesting project but not yet mature enough to build full-featured online mapping application (producing legend, changing symbol color on the fly, identify, filter by attributes etc.). Anyway, I gave it a try. But the same results. See the screen shot. http://seamap.env.duke.edu:8888/dev/cache/misc/tile_edge_lines_ol.jpg As I said, I see the line when I directly get the image from Mapserver, suggesting this is a problem of Mapserver itself. Both OpenLayers.Layer.MapServer and Google Map's GTileLayer simply grab images from Mapserver. In this regard, it is understandable that both end up with the same results. Ei Stephen Woodbridge wrote: > Hello Ei, > > Have you looked at ka-map or preferably openLayers? OpenLayers allows > you to easily merge mapserver and Google into a single application and > does all the heavy lifting. > > Regarding your extra lines, this is might be cause by the fact that the > polygon is getting clipped to the extents of your tile. You might try > setting the OUTLINECOLOR -1 -1 -1 for the polygon layer so that it is > not draw. I do not think you would run into these problems with OpenLayers. > > -Steve W > > > Ei Fujioka wrote: >> Hello experts, >> >> I have a weird problem that Mapserver images get one pixel wide >> vertical lines when they contain shapefiles that extend beyond the >> images (shapefiles are cut at the edge of the images). >> >> I'm developing a Google Maps application in which Mapserver layers are >> overlaid. As Google Map requests tiles of the map image, Mapserver >> sends them back. This usually works excellent. But when a tile has a >> shapefile extending beyond it, the tile got a kind of border line >> visible. >> >> Please see the screen shot. You'll see two vertical lines 256-pixel >> apart (which is the tile size). >> http://seamap.env.duke.edu:8888/dev/cache/misc/tile_edge_lines.jpg >> >> >> I tried PNG and GIF with the same results. This should have nothing to >> do with Google Maps because I still see the line when pulling the tile >> image directly onto the browser. >> Polygons are added to the map with PHP/Mapscript. Transparency, fill >> color and outline color are set. >> $layer->set('transparency',"30"); >> ... >> $poStyle = ms_newStyleObj($class_tmp); >> $poStyle->outlinecolor->setRGB(255,0,0); >> $poStyle->color->setRGB(200, 100, 0); >> >> Any workaround? >> >> >> MapServer version 4.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER >> SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT >> INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >> >> Thanks, >> >> >> Ei >> >> > > -- ====================== Ei Fujioka Research Associate Duke University (919) 613-8021 efujioka at duke.edu ====================== From gregor at HOSTGIS.COM Tue Apr 17 12:14:37 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Tue, 17 Apr 2007 13:14:37 -0600 Subject: Google Look and Feel In-Reply-To: <451628.46363.qm@web39604.mail.mud.yahoo.com> Message-ID: > I am working on a Web Application to be Google Look > and Feel. But I do not find the documents about the > Google symbology, like the width, color, size of > roads, streets, and freeways of Google Map? > Anyone has any hint, URL links suggestions? Well, this might help a bit. The following is the classes we use for our roads. It gives a very nice look, similar to Google's if not quite the same. It uses the CFCC to classify the roads: interstates, highways, streets, ... FILTERITEM "CFCC" FILTER /^A/ LABELITEM 'FENAME' CLASSITEM "CFCC" CLASS EXPRESSION /^A[67]/ NAME "Other" MAXSCALE 30000 STYLE SYMBOL 'line_solid' COLOR 170 170 170 SIZE 1 END LABEL COLOR 0 0 0 OUTLINECOLOR 200 200 200 MINFEATURESIZE 10 FONT "Vera" TYPE truetype POSITION AUTO SIZE 7 END END CLASS EXPRESSION /^A[45]/ NAME "City" MAXSCALE 60000 STYLE SYMBOL 'line_solid' COLOR 180 180 180 SIZE 3 END STYLE SYMBOL 'line_solid' COLOR 255 255 255 SIZE 1 END LABEL COLOR 0 0 0 OUTLINECOLOR 230 230 230 MINFEATURESIZE 25 FONT "Vera" TYPE truetype POSITION AUTO ANGLE AUTO MINDISTANCE 200 BUFFER 10 OFFSET 0 -4 SIZE 8 END END CLASS EXPRESSION /^A[23]/ NAME "Highway" MAXSCALE 20000000 STYLE SYMBOL 'line_solid' COLOR 160 160 160 SIZE 4 END STYLE SYMBOL 'line_solid' COLOR 255 250 115 SIZE 2 END LABEL COLOR 0 0 0 OUTLINECOLOR 235 235 235 MINFEATURESIZE 10 FONT "Vera" TYPE truetype POSITION AUTO ANGLE AUTO PARTIALS FALSE OFFSET 0 -5 MINDISTANCE 250 BUFFER 15 SIZE 9 END END CLASS EXPRESSION /^A1/ NAME "Interstate" MAXSCALE 40000000 TEXT ([FENAME]) STYLE SYMBOL 'line_solid' COLOR 160 160 160 SIZE 5 END STYLE SYMBOL 'line_solid' COLOR 242 191 36 SIZE 3 END LABEL OUTLINECOLOR 235 235 235 COLOR 0 0 0 MINFEATURESIZE 10 FONT "Vera" TYPE truetype POSITION AUTO ANGLE AUTO OFFSET 0 -7 MINDISTANCE 300 BUFFER 15 PARTIALS FALSE SIZE 9 END END From ezenaide at GMAIL.COM Tue Apr 17 12:37:20 2007 From: ezenaide at GMAIL.COM (Eduardo Zenaide) Date: Tue, 17 Apr 2007 16:37:20 -0300 Subject: Polygons extents In-Reply-To: <46001174.5157.008F.0@dnr.state.mn.us> Message-ID: it's an old question, but... there's no way to get extents for only one polygon inside a shp? i have one shp with all cities from one country. i want to do the query and return only the capital's extent, only as example. thanks 2007/3/20, Steve Lime : > > Through a query template you can access: > > - a shape extent using [shpext] or [shpminx], [shpmaxx], ... > - the shape coordinates itself using [shpxy] > > See the template reference guide on the MapServer website. > > Steve > > >>> On 3/20/2007 at 1:02 PM, in message > <7af310f80703201102s67f1096cuf7a322ff46618a35 at mail.gmail.com>, Eduardo > Zenaide > wrote: > > hi all, > > > > MapServer can return - as an query, for example - extents for any > polygon in > > a .shp? > > If so, how? There's a list of parameters to do that? > > > > thanks! > > -- Eduardo Zenaide -------------- next part -------------- An HTML attachment was scrubbed... URL: From ezenaide at GMAIL.COM Tue Apr 17 12:51:57 2007 From: ezenaide at GMAIL.COM (Eduardo Zenaide) Date: Tue, 17 Apr 2007 16:51:57 -0300 Subject: Polygons extents In-Reply-To: <7af310f80704171237n98b7f5cqc8c135e10f7a3bd9@mail.gmail.com> Message-ID: sorry. just figured that [shpxy] returns extents for each polygon. thanks again :) 2007/4/17, Eduardo Zenaide : > > it's an old question, but... there's no way to get extents for only one > polygon inside a shp? > > i have one shp with all cities from one country. i want to do the query > and return only the capital's extent, only as example. > > thanks > > > 2007/3/20, Steve Lime : > > > > Through a query template you can access: > > > > - a shape extent using [shpext] or [shpminx], [shpmaxx], ... > > - the shape coordinates itself using [shpxy] > > > > See the template reference guide on the MapServer website. > > > > Steve > > > > >>> On 3/20/2007 at 1:02 PM, in message > > <7af310f80703201102s67f1096cuf7a322ff46618a35 at mail.gmail.com>, Eduardo > > Zenaide > > wrote: > > > hi all, > > > > > > MapServer can return - as an query, for example - extents for any > > polygon in > > > a .shp? > > > If so, how? There's a list of parameters to do that? > > > > > > thanks! > > > > > > > -- > Eduardo Zenaide -- Eduardo Zenaide -------------- next part -------------- An HTML attachment was scrubbed... URL: From bhudspeth at EDAC.UNM.EDU Tue Apr 17 13:12:36 2007 From: bhudspeth at EDAC.UNM.EDU (William Hudspeth) Date: Tue, 17 Apr 2007 15:12:36 -0500 Subject: Problems with WMS time support Message-ID: Hello, Thanks for responding. I am indeed trying to access the second layer in my example. By the way, I am following the example given in the "How To" section of the Mapserver web site. The tileindex "pm25_time_index" refers to a table in Postgres/PostGIS that stores paths (in the column "location") to GRASS raster files. It has a timestamp column named "datetime" that stores the date and hour requested in the WMS request. The setup of that table looks like this: Fields: oid (oid), gid (integer), location (string), the_geom (geometry), rundate(timestamp), datetime(timestamp) Example data: 6309363 | 198 | /home/apache/western_us/20070312/cellhd/D031207_t01.pm25_raw | "geometry string here" | 2007-03-12 00:00:00 | 2007-03-12 01:00:00 There IS a reference to the "D031007_t21.pm25_raw" file in there, but I don't know why it would stand out, since there are some 1200 other records in that table, and I make no other reference to this date and time in the WMS request, nor in the map file. And finally, yes GRASS is built into GDAL - I can successfully run gdalinfo on any of the GRASS rasters that are recorded in the Postgres table. Thanks again, Bill From work at XWB.COM Tue Apr 17 13:15:20 2007 From: work at XWB.COM (Chip Taylor) Date: Tue, 17 Apr 2007 13:15:20 -0700 Subject: Mapserver Log layout In-Reply-To: <2342.207.224.41.227.1176837277.squirrel@www.hostgis.com> Message-ID: Is there a key to the layout of the Mapserver log file anywhere. Most of it is easily figured out but a complete key would be helpful. Chip Taylor Prepared Response, Inc From bfraser at GEOANALYTIC.COM Tue Apr 17 14:28:12 2007 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Tue, 17 Apr 2007 15:28:12 -0600 Subject: Mapserver Log layout Message-ID: Chip, No doc last time I checked (last year?). From my [sparse] notes: Log file format: ,,,,,,,, Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Chip Taylor" To: Sent: Tuesday, April 17, 2007 2:15 PM Subject: [UMN_MAPSERVER-USERS] Mapserver Log layout > Is there a key to the layout of the Mapserver log file anywhere. Most of it > is easily figured out but a complete key would be helpful. > > Chip Taylor > Prepared Response, Inc From ben at REMOTEINFORMATION.COM.AU Tue Apr 17 17:47:11 2007 From: ben at REMOTEINFORMATION.COM.AU (Ben Madin) Date: Wed, 18 Apr 2007 08:47:11 +0800 Subject: MS 4.10.1 php_mapscript build problem on FreeBSD 6.2 Message-ID: G'day all, I have successfully built MapServer 4.10 on FreeBSD 6.2 (my first attempt at UNIX building, so very excited although it didn't like the flash support so I dropped it) I realised however that I hadn't built the php-mapscript module, which is my main interface for development, so back I went, and added it to my config file (using Howard Butler's suggestion) to be : ./configure --with-freetype=/usr/local/bin \ --with-png=/usr/local/lib \ --with-jpeg=/usr/local \ --with-libiconv=/usr/local \ --with-geos=/usr/local/bin/geos-config \ --with-ogr=/usr/local/bin/gdal-config \ --with-gdal=/usr/local/bin/gdal-config \ --with-httpd=/usr/local/sbin/httpd \ --with-wfsclient \ --with-wmsclient \ --enable-debug \ --with-curl-config=/usr/local/bin/curl-config \ --with-proj=/usr/local \ --with-pdf=/usr/local \ --with-tiff=/usr/local \ --with-threads \ --with-fastcgi \ --with-wcs \ --with-postgis=/usr/local/database/bin/pg_config \ --with-php=/usr/local/include/php/ \ --with-xml2-config=/usr/bin/xml2-config # new in 4.10 So configure worked, a quick make clean and then off we go again, until this... (I'm afraid I don't really understand what most of it means) g++ -g -O2 -fPIC -Wall -DENABLE_STDERR_DEBUG - DNEED_NONBLOCKING_STDERR -DHAVE_VSNPRINTF -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_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS - DUSE_PDF -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV - DUSE_POSTGIS -DUSE_THREAD -DUSE_ZLIB -I/usr/local/include -I/usr/ local/include -I/usr/local/include -I/usr/local/include -I/usr/local/ include -I/usr/local/include -I -I/usr/local/include -I/usr/ local/include -I/usr/local/include shp2img.o -L. -lmap -lgd -L/ usr/local/lib -lgd -L/usr/local/lib -ljpeg -L/usr/local/lib -Wl,-- rpath -Wl,/usr/local/lib -lfreetype -lz -L/usr/local/lib -lpng -lz -L/ usr/local/lib -lpdf -L/usr/local/lib64 -ltiff -L/usr/local/lib -ljpeg -L/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib -lfreetype -lz -L/usr/ local/lib -lpng -lz -L/usr/local/lib -lproj -L/usr/local/lib -ljpeg -L/usr/local/lib -lgdal -L/usr/local/lib -lgeos -L/usr/local -L/usr/ local/lib -ljasper -lungif -lgeotiff -L/usr/local/lib -ltiff -L/usr/ local -L/usr/local/lib -lpng -L/usr/local/lib -lpq -lz -L/usr -L/usr/ lib -lm -L -lpq -L/usr/local/lib -lcurl -rpath=/usr/lib:/usr/local/ lib -lssl -lcrypto -lz -L/usr/local/lib -lgeos_c -lpthread -L/usr/ local/lib -liconv -lfcgi -lz -lm -lstdc++ -o shp2img /usr/bin/ld: cannot find -lfcgi *** Error code 1 Stop in /usr/local/mapserver-4.10.1. So now it doesn't work. I don't understand the significance of - lfcgi, or why it has become a problem now with the inclusion of the --with-php flag. My system includes : Apache/2.2.4 (FreeBSD) Server built: Apr 10 2007 22:15:11 PHP 5.2.1 with Suhosin-Patch 0.9.6.2 (cli) (built: Apr 11 2007 09:33:50) (DEBUG) Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies GD 2.0.34 GDAL 1.3.1 PROJ 4.5.0 JPEG 6b PNG 1.2.14 GEOS 2.2.3 PostGIS 1.2.1 freebsd# /usr/local/www/apache22/cgi-bin/mapserv -v MapServer version 4.10.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_CLIENT SUPPORTS=GEOS INPUT=TIFF INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG and my build directory is /usr/local/mapserver-4.10.1 I guess my first question has to be will php_mapscript work with php 5? and then ... what is -lfcgi? (and how can I get it?) cheers Ben -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Tue Apr 17 18:26:39 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 17 Apr 2007 21:26:39 -0400 Subject: MS 4.10.1 php_mapscript build problem on FreeBSD 6.2 In-Reply-To: Message-ID: -lfcgi is the fastcgi library. You can see if you have it loaded with something like: locate libfcgi probably should be at /usr/local/lib/libfcgi* if it is there, or somewhere on your system, check to make sure its path is in /etc/ld.so.conf and run as root ldconfig and try again. -Steve W Ben Madin wrote: > G'day all, > > I have successfully built MapServer 4.10 on FreeBSD 6.2 (my first > attempt at UNIX building, so very excited although it didn't like the > flash support so I dropped it) > > I realised however that I hadn't built the php-mapscript module, which > is my main interface for development, so back I went, and added it to my > config file (using Howard Butler's suggestion) to be : > > ./configure --with-freetype=/usr/local/bin \ > --with-png=/usr/local/lib \ > --with-jpeg=/usr/local \ > --with-libiconv=/usr/local \ > --with-geos=/usr/local/bin/geos-config \ > --with-ogr=/usr/local/bin/gdal-config \ > --with-gdal=/usr/local/bin/gdal-config \ > --with-httpd=/usr/local/sbin/httpd \ > --with-wfsclient \ > --with-wmsclient \ > --enable-debug \ > --with-curl-config=/usr/local/bin/curl-config \ > --with-proj=/usr/local \ > --with-pdf=/usr/local \ > --with-tiff=/usr/local \ > --with-threads \ > --with-fastcgi \ > --with-wcs \ > --with-postgis=/usr/local/database/bin/pg_config \ > --with-php=/usr/local/include/php/ \ > --with-xml2-config=/usr/bin/xml2-config # new in 4.10 > > > So configure worked, a quick make clean and then off we go again, until > this... (I'm afraid I don't really understand what most of it means) > > g++ -g -O2 -fPIC -Wall -DENABLE_STDERR_DEBUG -DNEED_NONBLOCKING_STDERR > -DHAVE_VSNPRINTF -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_FTEX_XSHOW > -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_PDF -DUSE_OGR > -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_POSTGIS -DUSE_THREAD > -DUSE_ZLIB -I/usr/local/include -I/usr/local/include > -I/usr/local/include -I/usr/local/include -I/usr/local/include > -I/usr/local/include -I -I/usr/local/include -I/usr/local/include > -I/usr/local/include shp2img.o -L. -lmap -lgd -L/usr/local/lib -lgd > -L/usr/local/lib -ljpeg -L/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib > -lfreetype -lz -L/usr/local/lib -lpng -lz -L/usr/local/lib -lpdf > -L/usr/local/lib64 -ltiff -L/usr/local/lib -ljpeg -L/usr/local/lib > -Wl,--rpath -Wl,/usr/local/lib -lfreetype -lz -L/usr/local/lib -lpng -lz > -L/usr/local/lib -lproj -L/usr/local/lib -ljpeg -L/usr/local/lib > -lgdal -L/usr/local/lib -lgeos -L/usr/local -L/usr/local/lib -ljasper > -lungif -lgeotiff -L/usr/local/lib -ltiff -L/usr/local -L/usr/local/lib > -lpng -L/usr/local/lib -lpq -lz -L/usr -L/usr/lib -lm -L -lpq > -L/usr/local/lib -lcurl -rpath=/usr/lib:/usr/local/lib -lssl -lcrypto > -lz -L/usr/local/lib -lgeos_c -lpthread -L/usr/local/lib -liconv > -lfcgi -lz -lm -lstdc++ -o shp2img > /usr/bin/ld: cannot find -lfcgi > *** Error code 1 > > Stop in /usr/local/mapserver-4.10.1. > > So now it doesn't work. I don't understand the significance of -lfcgi, > or why it has become a problem now with the inclusion of the --with-php > flag. > > My system includes : > > Apache/2.2.4 (FreeBSD) Server built: Apr 10 2007 22:15:11 > PHP 5.2.1 with Suhosin-Patch 0.9.6.2 (cli) (built: Apr 11 2007 09:33:50) > (DEBUG) Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies > GD 2.0.34 > GDAL 1.3.1 > PROJ 4.5.0 > JPEG 6b > PNG 1.2.14 > GEOS 2.2.3 > PostGIS 1.2.1 > freebsd# /usr/local/www/apache22/cgi-bin/mapserv -v > MapServer version 4.10.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_CLIENT > SUPPORTS=GEOS INPUT=TIFF INPUT=EPPL7 INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE DEBUG=MSDEBUG > > and my build directory is /usr/local/mapserver-4.10.1 > > I guess my first question has to be will php_mapscript work with php 5? > > and then ... what is -lfcgi? (and how can I get it?) > > cheers > > Ben > > > > > -- > > Ben Madin > REMOTE INFORMATION > > t : +61 8 9192 5455 > f : +61 8 9192 5535 > m : 0448 887 220 > Broome WA 6725 > > ben at remoteinformation.com.au > > > > > > Out here, it pays to know... > > > > > > > > > From Steve.Lime at DNR.STATE.MN.US Tue Apr 17 21:15:23 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 17 Apr 2007 23:15:23 -0500 Subject: Mapserver and Unicode utf-8 Message-ID: I didn't see anyone post an answer so just in case. Take a look at the ENCODING parameter in the LABEL object. Steve >>> anhtin 04/16/07 2:53 AM >>> hi all i am developing app map use Mapserver and Database PostGis i have a layer province in postgis is table province into province have column name_porvince datatype is character varying Database : ENCODING = 'UTF8' On the mapfile i show name_province but when run some character not format utf-8 How is config on Mapfile or Mapserver show text on image is utft-8 -- View this message in context: http://www.nabble.com/Mapserver-and-Unicode-utf-8-tf3582899.html#a10011683 Sent from the Mapserver - User mailing list archive at Nabble.com. From mario.basa at GMAIL.COM Tue Apr 17 22:18:26 2007 From: mario.basa at GMAIL.COM (Mario Basa) Date: Wed, 18 Apr 2007 14:18:26 +0900 Subject: Mapserver and Unicode utf-8 In-Reply-To: <4625550B0200008F0000947A@co5.dnr.state.mn.us> Message-ID: Hi, The ENCODING parameter converts the character string into UTF-8, so I don't think it will be very helpful if the original string is in UTF-8 already. Just make sure that the font set that is being used can handle UTF-8 characters. Also, if the data is in a different character set before it was imported into a UTF-8 PostgreSQL db, make sure that the "\encoding" command is used before importing. mario. On 4/18/07, Steve Lime wrote: > I didn't see anyone post an answer so just in case. Take a look at the ENCODING parameter in the LABEL object. > > Steve > > >>> anhtin 04/16/07 2:53 AM >>> > hi all > i am developing app map use Mapserver and Database PostGis > i have a layer province in postgis is table province > into province have column name_porvince datatype is character varying > Database : ENCODING = 'UTF8' > On the mapfile i show name_province but when run some character not format > utf-8 > How is config on Mapfile or Mapserver show text on image is utft-8 > -- > View this message in context: http://www.nabble.com/Mapserver-and-Unicode-utf-8-tf3582899.html#a10011683 > Sent from the Mapserver - User mailing list archive at Nabble.com. > From myardbenoit at GMAIL.COM Wed Apr 18 00:07:30 2007 From: myardbenoit at GMAIL.COM (Benoit Myard) Date: Wed, 18 Apr 2007 09:07:30 +0200 Subject: MS 4.10.1 php_mapscript build problem on FreeBSD 6.2 In-Reply-To: <462573CF.3030203@swoodbridge.com> Message-ID: Please drop this list a few lines when it works because I would like to know how MapServer behaves and performs with FreeBSD, especially if you plan to use jails. Thanks in advance. -- Benoit Myard From ben at REMOTEINFORMATION.COM.AU Wed Apr 18 01:50:51 2007 From: ben at REMOTEINFORMATION.COM.AU (Ben Madin) Date: Wed, 18 Apr 2007 16:50:51 +0800 Subject: MS 4.10.1 php_mapscript build problem on FreeBSD 6.2 Message-ID: Thank you Steve, I have mod_fastcgi for apache, this was installed through the FreeBSD ports system, and all very happily. but I didn't end up with a libfcgi anywhere I can find (I have mod_fastcgi.so in my /usr/local/ libexec/apache22 directory) I notice in the configure I actually had this : configure: checking whether FastCGI support should be enabled... checking for FCGI_Accept in -lfcgi... no configure: checking HTTPD server (Apache) version... using user-supplied httpd (/usr/local/sbin/httpd) /usr/local/sbin/httpd version is Apache/2.2.4 (2002004). Compiling with fast MS_NINT checking compiler warnings... basic so maybe I never had fastcgi last time around. Do I need to get a different fastcgi from somewhere else, or did something maybe not go quite right? cheers Ben > From: Stephen Woodbridge > Date: 18 April 2007 9:26:39 AM > Subject: Re: MS 4.10.1 php_mapscript build problem on FreeBSD 6.2 > > > -lfcgi is the fastcgi library. You can see if you have it loaded > with something like: > > locate libfcgi > > probably should be at /usr/local/lib/libfcgi* > > if it is there, or somewhere on your system, check to make sure its > path is in /etc/ld.so.conf and run as root ldconfig and try again. > > -Steve W > -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... -------------- next part -------------- An HTML attachment was scrubbed... URL: From mail at MARTINRINNER.DE Wed Apr 18 01:43:09 2007 From: mail at MARTINRINNER.DE (Martin Rinner) Date: Wed, 18 Apr 2007 03:43:09 -0500 Subject: Google Look and Feel Message-ID: Hi all, some weeks ago I found this site: http://docs.codehaus.org/display/GEOSDOC/Google+Maps+SLD I hope, this might help you... Martin From anhtin at GMAIL.COM Wed Apr 18 03:24:41 2007 From: anhtin at GMAIL.COM (anhtin) Date: Wed, 18 Apr 2007 03:24:41 -0700 Subject: Mapserver and Unicode utf-8 In-Reply-To: <8efeb4a80704172218h13fda304p83acd69c66900552@mail.gmail.com> Message-ID: thanks reply when i use font TcVN3 on PostGis and mapfile config font file is Vntime.ttf it so on map server run good but conver text is unicode and use font file arial .ttf it not ok Mario Basa wrote: > > Hi, > > The ENCODING parameter converts the character string into UTF-8, so I > don't think it will be very helpful if the original string is in UTF-8 > already. > > Just make sure that the font set that is being used can handle UTF-8 > characters. Also, if the data is in a different character set before > it was imported into a UTF-8 PostgreSQL db, make sure that the > "\encoding" command is used before importing. > > mario. > > > On 4/18/07, Steve Lime wrote: >> I didn't see anyone post an answer so just in case. Take a look at the >> ENCODING parameter in the LABEL object. >> >> Steve >> >> >>> anhtin 04/16/07 2:53 AM >>> >> hi all >> i am developing app map use Mapserver and Database PostGis >> i have a layer province in postgis is table province >> into province have column name_porvince datatype is character varying >> Database : ENCODING = 'UTF8' >> On the mapfile i show name_province but when run some character not >> format >> utf-8 >> How is config on Mapfile or Mapserver show text on image is utft-8 >> -- >> View this message in context: >> http://www.nabble.com/Mapserver-and-Unicode-utf-8-tf3582899.html#a10011683 >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> > > -- View this message in context: http://www.nabble.com/Mapserver-and-Unicode-utf-8-tf3582899.html#a10055981 Sent from the Mapserver - User mailing list archive at Nabble.com. From hartpence_gis at CO.JASPER.IA.US Wed Apr 18 05:14:28 2007 From: hartpence_gis at CO.JASPER.IA.US (Lawrence Hartpence) Date: Wed, 18 Apr 2007 07:14:28 -0500 Subject: dBox: copy Main Image Message-ID: Hello, I have another question with dBox. I created a button on my web page which brings up a window holding the map in format more conducive for printing. the problem is that I don't know how to get the main map image to transfer to that window. I am using dBox with mapserv.js. To see what I am trying to do, you may view the website at: http://216.203.113.94/JasperMaps/Landcorner/Landcorner.html Thanks, Lawrence From woodbri at SWOODBRIDGE.COM Wed Apr 18 05:59:56 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 18 Apr 2007 08:59:56 -0400 Subject: MS 4.10.1 php_mapscript build problem on FreeBSD 6.2 In-Reply-To: Message-ID: Ben, Sounds like it might be a freeBSD bug in mapserver .configure script. You requested --with-fastcgi and I would think that since it did not find it is should have dropped the -lfcgi, but did not. You should probably write this up as a bug. fastcgi is on little or no benefit unless you are using oracle and need connection pooling. So try to configure --without-fastcgi ot just remove the --with-fastcgi option. If one fails try the other. -Steve W Ben Madin wrote: > Thank you Steve, > > I have mod_fastcgi for apache, this was installed through the FreeBSD > ports system, and all very happily. but I didn't end up with a libfcgi > anywhere I can find (I have mod_fastcgi.so in > my /usr/local/libexec/apache22 directory) > > I notice in the configure I actually had this : > > configure: checking whether FastCGI support should be enabled... > checking for FCGI_Accept in -lfcgi... no > configure: checking HTTPD server (Apache) version... > using user-supplied httpd (/usr/local/sbin/httpd) > /usr/local/sbin/httpd version is Apache/2.2.4 (2002004). > Compiling with fast MS_NINT > checking compiler warnings... basic > > so maybe I never had fastcgi last time around. Do I need to get a > different fastcgi from somewhere else, or did something maybe not go > quite right? > > cheers > > Ben > >> *From: *Stephen Woodbridge > > >> *Date: *18 April 2007 9:26:39 AM >> *Subject: **Re: MS 4.10.1 php_mapscript build problem on FreeBSD 6.2* >> >> >> -lfcgi is the fastcgi library. You can see if you have it loaded with >> something like: >> >> locate libfcgi >> >> probably should be at /usr/local/lib/libfcgi* >> >> if it is there, or somewhere on your system, check to make sure its >> path is in /etc/ld.so.conf and run as root ldconfig and try again. >> >> -Steve W >> > > -- > > Ben Madin > REMOTE INFORMATION > > t : +61 8 9192 5455 > f : +61 8 9192 5535 > m : 0448 887 220 > Broome WA 6725 > > ben at remoteinformation.com.au > > > > > > Out here, it pays to know... > > > > > > > > > From ernesvega at GMAIL.COM Wed Apr 18 08:31:07 2007 From: ernesvega at GMAIL.COM (Ernesto Vega) Date: Wed, 18 Apr 2007 11:31:07 -0400 Subject: trim space Message-ID: Hi everyone. I have a small problem and i hope you can help me to find out what can be done for it. I have a shapefile with many fields and one of them is like this: --------------------------- Terizq: Real (8.0) --------------------------- The fact is that the actual data on the shapefile does not have that amount of digits, so i get a large space before the number on the image generated by mapserver. So here is the question: How can i trim the data on a LABEL defined like this (the field "Iniizq" has the same definition as the one i described) ----------------------------------------------------------------------- TEXT ([Iniizq]-[Terizq] [Nombre]) EXPRESSION ([Iniizq] > 0 OR [Terizq] > 0) --------------------------------------------------------------------- If you can let me know where to look the answer i would appreciate thanks in advance From traviskirstine at GMAIL.COM Wed Apr 18 08:46:16 2007 From: traviskirstine at GMAIL.COM (Travis Kirstine) Date: Wed, 18 Apr 2007 11:46:16 -0400 Subject: Indexing dbf files Message-ID: Hi all, I am performing a qureybyattribute on serveral shpfiles referanced by a tileindex (created with tiles4ms). The shpfiles have approximately 2.5 million records and I am finding the search very slow. The field I am querying is unique. Is there a way to index the fields or any other means to help speed up the query -- Travis K. Toronto, Canada ------------------------------------------------------------ "She knows there's no success like failure And that failure's no success at all." -Bob Dylan- ------------------------------------------------------------ From ernesvega at GMAIL.COM Wed Apr 18 09:08:32 2007 From: ernesvega at GMAIL.COM (Ernesto Vega) Date: Wed, 18 Apr 2007 12:08:32 -0400 Subject: Indexing dbf files In-Reply-To: <681116190704180846j5e1e9496g2d345836d13a1575@mail.gmail.com> Message-ID: Travis: Try create a spatial database in postgres.... I think that could speed up everything -- Ernesto Vega On 4/18/07, Travis Kirstine wrote: > Hi all, > I am performing a qureybyattribute on serveral shpfiles referanced by > a tileindex (created with tiles4ms). The shpfiles have approximately > 2.5 million records and I am finding the search very slow. The field > I am querying is unique. Is there a way to index the fields or any > other means to help speed up the query > > -- > Travis K. > > Toronto, Canada > ------------------------------------------------------------ > "She knows there's no success like failure > And that failure's no success at all." > -Bob Dylan- > ------------------------------------------------------------ > From janos.gonzales at GMAIL.COM Wed Apr 18 09:21:23 2007 From: janos.gonzales at GMAIL.COM (=?ISO-8859-1?Q?J=E1nos_Gonzales?=) Date: Wed, 18 Apr 2007 10:21:23 -0600 Subject: trim space In-Reply-To: <248e5e090704180831r77524b0bl43d9d32345a81c8d@mail.gmail.com> Message-ID: I think you can use a regular expression on that. See regex under http://mapserver.gis.umn.edu/docs/howto/msexpressions On 4/18/07, Ernesto Vega wrote: > Hi everyone. I have a small problem and i hope you can help me to find > out what can be done for it. I have a shapefile with many fields and > one of them is like this: > > --------------------------- > Terizq: Real (8.0) > --------------------------- > > The fact is that the actual data on the shapefile does not have that > amount of digits, so i get a large space before the number on the > image generated by mapserver. > > So here is the question: How can i trim the data on a LABEL defined > like this (the field "Iniizq" has the same definition as the one i > described) > > ----------------------------------------------------------------------- > TEXT ([Iniizq]-[Terizq] [Nombre]) > EXPRESSION ([Iniizq] > 0 OR [Terizq] > 0) > --------------------------------------------------------------------- > > If you can let me know where to look the answer i would appreciate > > thanks in advance > From Steve.Lime at DNR.STATE.MN.US Wed Apr 18 10:08:13 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 18 Apr 2007 12:08:13 -0500 Subject: dBox: copy Main Image In-Reply-To: Message-ID: The URL for the current image is held in a variable in the mapserv obj (e.g. ms.url) so you just need to reference or pass that value in the print window. Steve >>> On 4/18/2007 at 7:14 AM, in message , Lawrence Hartpence wrote: > Hello, > > I have another question with dBox. I created a button on my web page which > brings up a window holding the map in format more conducive for printing. > the problem is that I don't know how to get the main map image to transfer > to that window. I am using dBox with mapserv.js. > > To see what I am trying to do, you may view the website at: > http://216.203.113.94/JasperMaps/Landcorner/Landcorner.html > > Thanks, > > Lawrence From jmckenna at DMSOLUTIONS.CA Wed Apr 18 10:19:20 2007 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Wed, 18 Apr 2007 13:19:20 -0400 Subject: Indexing dbf files In-Reply-To: <681116190704180846j5e1e9496g2d345836d13a1575@mail.gmail.com> Message-ID: You also might want to check out the section "Spatial and Attribute Indexing" on http://www.gdal.org/ogr/drv_shapefile.html (which involves using CONNECTIONTYPE OGR in your layer if I remember correctly). jeff Travis Kirstine wrote: > Hi all, > I am performing a qureybyattribute on serveral shpfiles referanced by > a tileindex (created with tiles4ms). The shpfiles have approximately > 2.5 million records and I am finding the search very slow. The field > I am querying is unique. Is there a way to index the fields or any > other means to help speed up the query > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From rob.braswell at UNH.EDU Wed Apr 18 10:22:25 2007 From: rob.braswell at UNH.EDU (Bobby Braswell) Date: Wed, 18 Apr 2007 13:22:25 -0400 Subject: style/color based on feature values? Message-ID: Hi- I'd like to assign polygon colors that are rendered based on the value of one of the feature attributes. In my case there are nearly a hundred possible discrete classes. I could write a script to generate a mapfile layer with a hundred classes, but I'd prefer to make a direct link to the shapefile if possible. I hope this question makes sense. It seems like "styleitem" should be the thing to use here, but I have not figured out how to make this work. In any case if someone could post an example of either a continuous or discrete rendering of polygon colors based on one of the data fields in the shapefile, I'd really appreciate it. Thanks, Rob Braswell From kevin at PEOPLEGIS.COM Wed Apr 18 10:41:09 2007 From: kevin at PEOPLEGIS.COM (Kevin Flanders) Date: Wed, 18 Apr 2007 13:41:09 -0400 Subject: Virtual Tables Message-ID: I would like to map a virtual table, and I am told I can do it without declaring an ODBC.using the following mapfile layer definition: LAYER NAME "Fire Data" GROUP "Fire Data" STATUS on TYPE point CONNECTIONTYPE OGR CONNECTION " mapsonline.csv wkbPoint " TEMPLATE "ttt" TOLERANCE 4 CLASS NAME "Fire Data" SYMBOL "circle" OUTLINECOLOR 80 80 80 COLOR 219 0 0 SIZE 12 END END But this fails. Do I need an ODBC..or is it true I can access a text file directly in this manner. The data is being placed with all my other shapefiles (ie. in the same folder). Also, can the .csv file just as easily be a .txt file..and can the entries have quotations around them? Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Wed Apr 18 11:03:34 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 18 Apr 2007 13:03:34 -0500 Subject: Virtual Tables In-Reply-To: A<008701c781e0$c0420cc0$40c62640$@com> Message-ID: How is it failing? Are you getting an error message? Are you specifically calling the layer by name in the URL or post request, or have you tried setting STATUS to DEFAULT? David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Kevin Flanders Sent: Wednesday, April 18, 2007 12:41 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Virtual Tables I would like to map a virtual table, and I am told I can do it without declaring an ODBC...using the following mapfile layer definition: LAYER NAME "Fire Data" GROUP "Fire Data" STATUS on TYPE point CONNECTIONTYPE OGR CONNECTION " mapsonline.csv wkbPoint " TEMPLATE "ttt" TOLERANCE 4 CLASS NAME "Fire Data" SYMBOL "circle" OUTLINECOLOR 80 80 80 COLOR 219 0 0 SIZE 12 END END But this fails. Do I need an ODBC....or is it true I can access a text file directly in this manner. The data is being placed with all my other shapefiles (ie. in the same folder). Also, can the .csv file just as easily be a .txt file....and can the entries have quotations around them? Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From kevin at PEOPLEGIS.COM Wed Apr 18 11:09:11 2007 From: kevin at PEOPLEGIS.COM (Kevin Flanders) Date: Wed, 18 Apr 2007 14:09:11 -0400 Subject: Virtual Tables In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FB351@s-sp22.pca.state.mn.us> Message-ID: I am using a chameleon app.and getting the following error: "Error rendering map image: A fatal error occurred drawing the map" I did try setting the STATUS to default with no change. Kevin From: Fawcett, David [mailto:David.Fawcett at state.mn.us] Sent: Wednesday, April 18, 2007 2:04 PM To: Kevin Flanders; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] Virtual Tables How is it failing? Are you getting an error message? Are you specifically calling the layer by name in the URL or post request, or have you tried setting STATUS to DEFAULT? David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Kevin Flanders Sent: Wednesday, April 18, 2007 12:41 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Virtual Tables I would like to map a virtual table, and I am told I can do it without declaring an ODBC.using the following mapfile layer definition: LAYER NAME "Fire Data" GROUP "Fire Data" STATUS on TYPE point CONNECTIONTYPE OGR CONNECTION " mapsonline.csv wkbPoint " TEMPLATE "ttt" TOLERANCE 4 CLASS NAME "Fire Data" SYMBOL "circle" OUTLINECOLOR 80 80 80 COLOR 219 0 0 SIZE 12 END END But this fails. Do I need an ODBC..or is it true I can access a text file directly in this manner. The data is being placed with all my other shapefiles (ie. in the same folder). Also, can the .csv file just as easily be a .txt file..and can the entries have quotations around them? Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at GEOANALYTIC.COM Wed Apr 18 11:14:01 2007 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Wed, 18 Apr 2007 12:14:01 -0600 Subject: Virtual Tables Message-ID: MessageKevin, Try putting the full path to the mapsonline.csv between the tags. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: Kevin Flanders To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Wednesday, April 18, 2007 12:09 PM Subject: Re: [UMN_MAPSERVER-USERS] Virtual Tables I am using a chameleon app.and getting the following error: "Error rendering map image: A fatal error occurred drawing the map" I did try setting the STATUS to default with no change. Kevin From: Fawcett, David [mailto:David.Fawcett at state.mn.us] Sent: Wednesday, April 18, 2007 2:04 PM To: Kevin Flanders; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] Virtual Tables How is it failing? Are you getting an error message? Are you specifically calling the layer by name in the URL or post request, or have you tried setting STATUS to DEFAULT? David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Kevin Flanders Sent: Wednesday, April 18, 2007 12:41 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Virtual Tables I would like to map a virtual table, and I am told I can do it without declaring an ODBC.using the following mapfile layer definition: LAYER NAME "Fire Data" GROUP "Fire Data" STATUS on TYPE point CONNECTIONTYPE OGR CONNECTION " mapsonline.csv wkbPoint " TEMPLATE "ttt" TOLERANCE 4 CLASS NAME "Fire Data" SYMBOL "circle" OUTLINECOLOR 80 80 80 COLOR 219 0 0 SIZE 12 END END But this fails. Do I need an ODBC..or is it true I can access a text file directly in this manner. The data is being placed with all my other shapefiles (ie. in the same folder). Also, can the .csv file just as easily be a .txt file..and can the entries have quotations around them? Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Wed Apr 18 11:20:46 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 18 Apr 2007 13:20:46 -0500 Subject: Virtual Tables In-Reply-To: A<00a101c781e4$abd2bd30$03783790$@com> Message-ID: I would simplify it down for testing purposes. If you don't already have it, download FWTools and use shp2img against your mapfile to see if you can get it to draw. To narrow it even further, I would start by running ogrinfo against your virtual datasource to see if you can get data out of it. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Kevin Flanders Sent: Wednesday, April 18, 2007 1:09 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Virtual Tables I am using a chameleon app...and getting the following error: "Error rendering map image: A fatal error occurred drawing the map" I did try setting the STATUS to default with no change... Kevin From: Fawcett, David [mailto:David.Fawcett at state.mn.us] Sent: Wednesday, April 18, 2007 2:04 PM To: Kevin Flanders; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] Virtual Tables How is it failing? Are you getting an error message? Are you specifically calling the layer by name in the URL or post request, or have you tried setting STATUS to DEFAULT? David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Kevin Flanders Sent: Wednesday, April 18, 2007 12:41 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Virtual Tables I would like to map a virtual table, and I am told I can do it without declaring an ODBC...using the following mapfile layer definition: LAYER NAME "Fire Data" GROUP "Fire Data" STATUS on TYPE point CONNECTIONTYPE OGR CONNECTION " mapsonline.csv wkbPoint " TEMPLATE "ttt" TOLERANCE 4 CLASS NAME "Fire Data" SYMBOL "circle" OUTLINECOLOR 80 80 80 COLOR 219 0 0 SIZE 12 END END But this fails. Do I need an ODBC....or is it true I can access a text file directly in this manner. The data is being placed with all my other shapefiles (ie. in the same folder). Also, can the .csv file just as easily be a .txt file....and can the entries have quotations around them? Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From kevin at PEOPLEGIS.COM Wed Apr 18 11:39:04 2007 From: kevin at PEOPLEGIS.COM (Kevin Flanders) Date: Wed, 18 Apr 2007 14:39:04 -0400 Subject: Virtual Tables In-Reply-To: <1a8801c781e5$5765ed20$160002c0@shark> Message-ID: I put the full path in..and I got the map to draw. However, all layers draw EXCEPT the points from this virtual table. I did notice that not all records in the table have x and y values...could that be an issue? Also..the x and y values are not lat/long.but rather a state plane system. So too is the entire project, so I am assuming this is alright and I don't need a set of tags. Kevin From: Brent Fraser [mailto:bfraser at geoanalytic.com] Sent: Wednesday, April 18, 2007 2:14 PM To: Kevin Flanders; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Virtual Tables Kevin, Try putting the full path to the mapsonline.csv between the tags. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: Kevin Flanders To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Wednesday, April 18, 2007 12:09 PM Subject: Re: [UMN_MAPSERVER-USERS] Virtual Tables I am using a chameleon app.and getting the following error: "Error rendering map image: A fatal error occurred drawing the map" I did try setting the STATUS to default with no change. Kevin From: Fawcett, David [mailto:David.Fawcett at state.mn.us] Sent: Wednesday, April 18, 2007 2:04 PM To: Kevin Flanders; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] Virtual Tables How is it failing? Are you getting an error message? Are you specifically calling the layer by name in the URL or post request, or have you tried setting STATUS to DEFAULT? David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Kevin Flanders Sent: Wednesday, April 18, 2007 12:41 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Virtual Tables I would like to map a virtual table, and I am told I can do it without declaring an ODBC.using the following mapfile layer definition: LAYER NAME "Fire Data" GROUP "Fire Data" STATUS on TYPE point CONNECTIONTYPE OGR CONNECTION " mapsonline.csv wkbPoint " TEMPLATE "ttt" TOLERANCE 4 CLASS NAME "Fire Data" SYMBOL "circle" OUTLINECOLOR 80 80 80 COLOR 219 0 0 SIZE 12 END END But this fails. Do I need an ODBC..or is it true I can access a text file directly in this manner. The data is being placed with all my other shapefiles (ie. in the same folder). Also, can the .csv file just as easily be a .txt file..and can the entries have quotations around them? Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From kevin at PEOPLEGIS.COM Wed Apr 18 13:11:44 2007 From: kevin at PEOPLEGIS.COM (Kevin Flanders) Date: Wed, 18 Apr 2007 16:11:44 -0400 Subject: time expression Message-ID: Are there examples of time-based expressions out there that I could look at? I would like to setup a mapfile layer so that only records with a date less than 30 days old would survive the filter and show on the map...can this be done? Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From assefa at DMSOLUTIONS.CA Wed Apr 18 14:14:58 2007 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 18 Apr 2007 17:14:58 -0400 Subject: time expression In-Reply-To: <011201c781f5$c9637ea0$5c2a7be0$@com> Message-ID: Kevin, Look at the document : http://mapserver.gis.umn.edu/docs/howto/wms_time_support/#interpreting-time-values It shows how to set up time expressions (using backtics to indicate it is a time expression, a simple example could be something like (`[time_field]` eq `2004-10-12`) There is also http://mapserver.gis.umn.edu/docs/howto/msexpressions . There might be other docs but I could not locate them. Later, Kevin Flanders wrote: > Are there examples of time-based expressions out there that I could look at? > > > > I would like to setup a mapfile layer so that only records with a date > less than 30 days old would survive the filter and show on the map?..can > this be done? > > > > > > > > Kevin > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From warmerdam at POBOX.COM Wed Apr 18 18:30:00 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 18 Apr 2007 21:30:00 -0400 Subject: Virtual Tables In-Reply-To: <00c801c781e8$d73af6f0$85b0e4d0$@com> Message-ID: Kevin Flanders wrote: > I put the full path in?.and I got the map to draw. However, all layers > draw EXCEPT the points from this virtual table. > > > > I did notice that not all records in the table have x and y > values?..could that be an issue? Kevin, I *think* that the records will the x and/or y fields left NULL should just result in features with no geometry. I believe that MapServer would just ignore these. But I'm not absolutely sure of this. > Also?.the x and y values are not lat/long?but rather a state plane > system. So too is the entire project, so I am assuming this is alright > and I don?t need a set of tags. MapServer never uses the coordinate system offered by OGR (or any other datasource) so you never need LayerSRS for MapServer's use. If everything in your map is in the same coordinate system you shouldn't need to declare the projection at all. If there is a mix of coordinate systems you would need to declare them carefully with PROJECTION blocks. I believe I'm just confirming your existing understanding. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From david at ITBEYOND.COM.AU Wed Apr 18 19:15:08 2007 From: david at ITBEYOND.COM.AU (David Martin) Date: Wed, 18 Apr 2007 21:15:08 -0500 Subject: MapServer 4.10.1 Memory Leak still exists Message-ID: I have been testing MS 4.10.0 and 4.10.1 and have found that the Memory Leak issue identifed in 4.10.0 still exists in 4.10.1 when running the C# mapserver dlls and Mapscript. Now I am using vb.net for the code development. I have released the code live today and found it ran for 30mins before it consumed over 1Gb of system memory. The code I am using is as follows: There are two subs that inerface to MS one to display images and the other to process form data and run a query: Private Sub DisplayImage(ByVal RefineImage As Boolean) Dim imageLoc, RefimageLoc As String If RefineImage Then ' This is a refined query - show number of results to the screen and also the refined map imageLoc = "/Uploads/iMapPlot/tmp/" & Math.Abs(Now.ToBinary) & ".gif" RefimageLoc = "/Uploads/iMapPlot/tmp/Ref" & Math.Abs (Now.ToBinary) & ".gif" MSMap = New mapObj(MapFile()) MSMap.setExtent(CurrentExtent.minx, CurrentExtent.miny, CurrentExtent.maxx, CurrentExtent.maxy) Dim Refineimg As imageObj Dim Referenceimg As imageObj If MapLayers <> "" Then Dim layerElements As String() = Split(MapLayers, ",") Dim layer As String Dim lyr As layerObj For Each layer In layerElements lyr = MSMap.getLayerByName(layer) lyr.status = STATUS_VALUES.MS_ON If layer = "Places" Then lyr.data = "..\ExplorOz\Places\" & PlacesPOIName Dim sty As styleObj = lyr.getClass(0).getStyle(0) sty.setSymbolByName (MSMap, "../../Images/PointPlace/symbols/" & PlacesPOIImage & ".gif") End If Next End If Refineimg = MSMap.draw Refineimg.save(Server.MapPath(imageLoc), Nothing) Refineimg.Dispose() Referenceimg = MSMap.drawReferenceMap Referenceimg.save(Server.MapPath(RefimageLoc), Nothing) Referenceimg.Dispose() CurrentExtent.maxx = MSMap.extent.maxx CurrentExtent.minx = MSMap.extent.minx CurrentExtent.maxy = MSMap.extent.maxy CurrentExtent.miny = MSMap.extent.miny MSMap.Dispose() MainMap.Src = imageLoc refimg.Src = RefimageLoc Else imageLoc = "/Uploads/iMapPlot/Cache/" & Replace(Mid(MapFile, InStrRev(MapFile, "\") + 1), ".map", "_" & Replace(MapLayers, ",", "") & PlacesPOIName & ".gif") RefimageLoc = "/Uploads/iMapPlot/Cache/Ref" & Replace(Mid(MapFile, InStrRev(MapFile, "\") + 1), ".map", "_" & Replace(MapLayers, ",", "") & PlacesPOIName & ".gif") If Not System.IO.File.Exists(Server.MapPath(imageLoc)) Or Not System.IO.File.Exists(Server.MapPath(RefimageLoc)) Then Dim img As imageObj Dim Referenceimg As imageObj MSMap = New mapObj(MapFile()) If MapLayers <> "" Then Dim layerElements As String() = Split(MapLayers, ",") Dim layer As String Dim lyr As layerObj For Each layer In layerElements lyr = MSMap.getLayerByName(layer) lyr.status = STATUS_VALUES.MS_ON If layer = "Places" Then lyr.data = "..\ExplorOz\Places\" & PlacesPOIName Dim sty As styleObj = lyr.getClass(0).getStyle(0) sty.setSymbolByName (MSMap, "../../Images/PointPlace/symbols/" & PlacesPOIImage & ".gif") End If Next End If img = MSMap.draw img.save(Server.MapPath(imageLoc), Nothing) img.Dispose() Referenceimg = MSMap.drawReferenceMap Referenceimg.save(Server.MapPath(RefimageLoc), Nothing) Referenceimg.Dispose() MSMap.Dispose() End If MainMap.Src = imageLoc refimg.Src = RefimageLoc End If map.Value = MapFile() layer.Value = MapLayers End Sub Private Sub Query() Dim result As Integer Dim lyr As layerObj MSMap = New mapObj(MapFile()) lyr = MSMap.getLayerByName(SearchLayer) MSMap.setExtent(CurrentExtent.minx, CurrentExtent.miny, CurrentExtent.maxx, CurrentExtent.maxy) If SearchLayer = "Places" Then lyr.data = "..\ExplorOz\Places\" & PlacesPOIName Dim s As New System.Text.StringBuilder result = lyr.queryByRect(MSMap, CurrentExtent) If result = RESULT_CODE.MS_SUCCESS Then Dim resCache As resultCacheObj = lyr.getResults If resCache.numresults > 0 Then Dim shp As shapeObj Dim fName As String lyr.open() NumResults = resCache.numresults For i As Integer = 0 To resCache.numresults - 1 shp = lyr.getFeature(resCache.getResult(i).shapeindex, resCache.getResult(i).tileindex) For iItem As Integer = 0 To lyr.numitems - 1 fName = lyr.getItem(iItem) If fName = "ID" Then s.Append(shp.getValue(iItem) & ",") Next shp.Dispose() Next If s.Length > 1 Then s.Remove(s.Length - 1, 1) lyr.close() End If 'If SearchLayer = "Places" Then ' Response.Write(NumResults) ' Response.Write("
" & s.ToString) ' Exit Sub 'End If lyr.Dispose() MSMap.Dispose() End Sub You will see that I dispose every element I create, this has been tried on two servers (and the production system - dual cpu, 2GB ram) - I do stress the application with hundreds of users per hour. The exception thrown is as follows: Server Error in '/' Application. --------------------------------------------------------------------------- ----- msLoadMap(): Memory allocation error. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ApplicationException: msLoadMap(): Memory allocation error. [ApplicationException: msLoadMap(): Memory allocation error. ] mapObj..ctor(String filename) +54 MapSearch.Query() +52 MapSearch.Page_Load(Object sender, EventArgs e) +284 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +47 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061 Any thoughts or help on this would be great, I have invested a heap of time on this interface and do not want to go back to calling the cgi system as it is slower - I am using the pre-compiled binaries in the MS4W package as downloaded two days ago. David Martin From epk.lists at GMAIL.COM Wed Apr 18 19:49:08 2007 From: epk.lists at GMAIL.COM (Eduardo Patto Kanegae) Date: Wed, 18 Apr 2007 23:49:08 -0300 Subject: FYI - quick info cards uploaded to OSGEO-Wiki Message-ID: I've just sent 2 PDF quick info cards of MapServer at OSGEO Wiki: - http://wiki.osgeo.org/images/1/16/MapServer-flyer-en.pdf - http://wiki.osgeo.org/images/f/f7/MapServer-flyer-pt_BR.pdf ( in portuguese) best -- Eduardo Patto Kanegae -------------- next part -------------- An HTML attachment was scrubbed... URL: From punk.kish at GMAIL.COM Wed Apr 18 20:29:04 2007 From: punk.kish at GMAIL.COM (P Kishor) Date: Wed, 18 Apr 2007 22:29:04 -0500 Subject: FYI - quick info cards uploaded to OSGEO-Wiki In-Reply-To: <2d1782780704181949m1878f990q2e769f9784272fac@mail.gmail.com> Message-ID: Really very nice job. Thanks. On 4/18/07, Eduardo Patto Kanegae wrote: > I've just sent 2 PDF quick info cards of MapServer at OSGEO Wiki: > - http://wiki.osgeo.org/images/1/16/MapServer-flyer-en.pdf > - > http://wiki.osgeo.org/images/f/f7/MapServer-flyer-pt_BR.pdf > ( in portuguese) > > best > > -- > Eduardo Patto Kanegae -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.nelson.wisc.edu/ Open Source Geospatial Foundation http://www.osgeo.org/education/ --------------------------------------------------------------------- collaborate, communicate, compete ===================================================================== From ben at REMOTEINFORMATION.COM.AU Wed Apr 18 23:21:10 2007 From: ben at REMOTEINFORMATION.COM.AU (Ben Madin) Date: Thu, 19 Apr 2007 14:21:10 +0800 Subject: MS 4.10.1 php_mapscript build problem on FreeBSD 6.2 (Apache/php5) In-Reply-To: <4626164C.4010907@swoodbridge.com> Message-ID: (Thanks again Steve, fastcgi dropped, that got me over the lfcgi hurdle) G'day all, Step by Step, now I am into the php build, and more errors - I suspect related to the switch into the php3 directory? (I have php5) I have attached the terminal output from where it starts to go wrong... sorry it is a rather long attachment, and I suspect it is mostly redundant, but if anyone had any ideas I would be very grateful. again, this is using MS4.10.1 on Apache/2.2.4 (FreeBSD) mod_ssl/2.2.4 OpenSSL/0.9.7e-p1 DAV/2 PHP/5.2.1 with Suhosin-Patch cheers Ben /usr/local/lib/libjasper.so: warning: warning: tmpnam() possibly used unsafely; consider using mkstemp() cd mapscript/php3; make; cd ../.. gcc -fPIC -g -O2 -fPIC -Wall -DUSE_PHP_REGEX -DCOMPILE_DL=1 -DPHP4 - c php_mapscript_util.c In file included from php_mapscript_util.c:117: php_mapscript_util.h:64:17: php.h: No such file or directory php_mapscript_util.h:65:25: php_globals.h: No such file or directory In file included from php_mapscript_util.c:117: php_mapscript_util.h:132: error: syntax error before '*' token php_mapscript_util.h:147: error: syntax error before '*' token php_mapscript_util.h:151: error: syntax error before '*' token php_mapscript_util.h:154: error: syntax error before '*' token php_mapscript_util.h:157: error: syntax error before '*' token php_mapscript_util.h:160: error: syntax error before '*' token php_mapscript_util.h:162: error: syntax error before '*' token php_mapscript_util.h:164: error: syntax error before '*' token php_mapscript_util.h:166: error: syntax error before '*' token php_mapscript_util.h:168: error: syntax error before '*' token php_mapscript_util.h:170: error: syntax error before '*' token php_mapscript_util.h:171: error: syntax error before '*' token php_mapscript_util.h:173: error: syntax error before '*' token php_mapscript_util.h:175: error: syntax error before '*' token php_mapscript_util.h:178: error: syntax error before '*' token php_mapscript_util.c:118:22: maperror.h: No such file or directory php_mapscript_util.c: In function `_phpms_report_mapserver_error': php_mapscript_util.c:130: error: `errorObj' undeclared (first use in this function) php_mapscript_util.c:130: error: (Each undeclared identifier is reported only once php_mapscript_util.c:130: error: for each function it appears in.) php_mapscript_util.c:130: error: `ms_error' undeclared (first use in this function) php_mapscript_util.c:132: warning: implicit declaration of function `msGetErrorObj' php_mapscript_util.c:134: error: `MS_NOERR' undeclared (first use in this function) php_mapscript_util.c:136: warning: implicit declaration of function `php3_error' php_mapscript_util.c: At top level: php_mapscript_util.c:149: error: syntax error before '*' token php_mapscript_util.c: In function `_phpms_fetch_handle2': php_mapscript_util.c:154: error: `pval' undeclared (first use in this function) php_mapscript_util.c:154: error: `phandle' undeclared (first use in this function) php_mapscript_util.c:155: error: `NULL' undeclared (first use in this function) php_mapscript_util.c:157: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:157: error: `IS_OBJECT' undeclared (first use in this function) php_mapscript_util.c:159: error: `E_ERROR' undeclared (first use in this function) php_mapscript_util.c:162: warning: implicit declaration of function `zend_hash_find' php_mapscript_util.c:162: warning: implicit declaration of function `Z_OBJPROP_P' php_mapscript_util.c:164: error: `FAILURE' undeclared (first use in this function) php_mapscript_util.c:173: warning: implicit declaration of function `php3_list_find' php_mapscript_util.c:175: error: `handle_type1' undeclared (first use in this function) php_mapscript_util.c:175: error: `handle_type2' undeclared (first use in this function) php_mapscript_util.c: At top level: php_mapscript_util.c:191: error: syntax error before '*' token php_mapscript_util.c: In function `_phpms_fetch_handle': php_mapscript_util.c:194: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:194: error: `handle_type' undeclared (first use in this function) php_mapscript_util.c:194: error: `list' undeclared (first use in this function) php_mapscript_util.c: At top level: php_mapscript_util.c:201: error: syntax error before '*' token php_mapscript_util.c: In function `_phpms_fetch_property_handle2': php_mapscript_util.c:205: error: `pval' undeclared (first use in this function) php_mapscript_util.c:205: error: `phandle' undeclared (first use in this function) php_mapscript_util.c:206: error: `NULL' undeclared (first use in this function) php_mapscript_util.c:209: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:209: error: `IS_OBJECT' undeclared (first use in this function) php_mapscript_util.c:211: error: `err_type' undeclared (first use in this function) php_mapscript_util.c:214: error: `property_name' undeclared (first use in this function) php_mapscript_util.c:215: warning: implicit declaration of function `strlen' php_mapscript_util.c:216: error: `FAILURE' undeclared (first use in this function) php_mapscript_util.c:223: error: `IS_RESOURCE' undeclared (first use in this function) php_mapscript_util.c:225: error: `handle_type1' undeclared (first use in this function) php_mapscript_util.c:225: error: `handle_type2' undeclared (first use in this function) php_mapscript_util.c: At top level: php_mapscript_util.c:239: error: syntax error before '*' token php_mapscript_util.c: In function `_phpms_fetch_property_handle': php_mapscript_util.c:243: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:243: error: `property_name' undeclared (first use in this function) php_mapscript_util.c:244: error: `handle_type' undeclared (first use in this function) php_mapscript_util.c:245: error: `list' undeclared (first use in this function) php_mapscript_util.c:245: error: `err_type' undeclared (first use in this function) php_mapscript_util.c: At top level: php_mapscript_util.c:251: error: syntax error before '*' token php_mapscript_util.c: In function `_phpms_fetch_property_string': php_mapscript_util.c:255: error: `pval' undeclared (first use in this function) php_mapscript_util.c:255: error: `phandle' undeclared (first use in this function) php_mapscript_util.c:257: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:257: error: `IS_OBJECT' undeclared (first use in this function) php_mapscript_util.c:259: error: `err_type' undeclared (first use in this function) php_mapscript_util.c:263: error: `property_name' undeclared (first use in this function) php_mapscript_util.c:264: error: `FAILURE' undeclared (first use in this function) php_mapscript_util.c:271: warning: implicit declaration of function `convert_to_string' php_mapscript_util.c: At top level: php_mapscript_util.c:278: error: syntax error before '*' token php_mapscript_util.c: In function `_phpms_fetch_property_long': php_mapscript_util.c:281: error: `pval' undeclared (first use in this function) php_mapscript_util.c:281: error: `phandle' undeclared (first use in this function) php_mapscript_util.c:283: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:283: error: `IS_OBJECT' undeclared (first use in this function) php_mapscript_util.c:285: error: `err_type' undeclared (first use in this function) php_mapscript_util.c:288: error: `property_name' undeclared (first use in this function) php_mapscript_util.c:290: error: `FAILURE' undeclared (first use in this function) php_mapscript_util.c:297: error: `IS_RESOURCE' undeclared (first use in this function) php_mapscript_util.c:304: warning: implicit declaration of function `convert_to_long' php_mapscript_util.c: At top level: php_mapscript_util.c:311: error: syntax error before '*' token php_mapscript_util.c: In function `_phpms_fetch_property_double': php_mapscript_util.c:314: error: `pval' undeclared (first use in this function) php_mapscript_util.c:314: error: `phandle' undeclared (first use in this function) php_mapscript_util.c:316: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:316: error: `IS_OBJECT' undeclared (first use in this function) php_mapscript_util.c:318: error: `err_type' undeclared (first use in this function) php_mapscript_util.c:321: error: `property_name' undeclared (first use in this function) php_mapscript_util.c:323: error: `FAILURE' undeclared (first use in this function) php_mapscript_util.c:330: warning: implicit declaration of function `convert_to_double' php_mapscript_util.c: At top level: php_mapscript_util.c:337: error: syntax error before '*' token php_mapscript_util.c: In function `_phpms_fetch_property_resource': php_mapscript_util.c:340: error: `pval' undeclared (first use in this function) php_mapscript_util.c:340: error: `phandle' undeclared (first use in this function) php_mapscript_util.c:342: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:342: error: `IS_OBJECT' undeclared (first use in this function) php_mapscript_util.c:344: error: `err_type' undeclared (first use in this function) php_mapscript_util.c:347: error: `property_name' undeclared (first use in this function) php_mapscript_util.c:349: error: `FAILURE' undeclared (first use in this function) php_mapscript_util.c:356: error: `IS_RESOURCE' undeclared (first use in this function) php_mapscript_util.c: At top level: php_mapscript_util.c:373: error: syntax error before '*' token php_mapscript_util.c: In function `_phpms_set_property_string': php_mapscript_util.c:376: error: `pval' undeclared (first use in this function) php_mapscript_util.c:376: error: `phandle' undeclared (first use in this function) php_mapscript_util.c:378: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:378: error: `IS_OBJECT' undeclared (first use in this function) php_mapscript_util.c:380: error: `err_type' undeclared (first use in this function) php_mapscript_util.c:383: error: `property_name' undeclared (first use in this function) php_mapscript_util.c:385: error: `FAILURE' undeclared (first use in this function) php_mapscript_util.c:392: warning: implicit declaration of function `SEPARATE_ZVAL' php_mapscript_util.c:393: warning: implicit declaration of function `zval_dtor' php_mapscript_util.c:394: warning: implicit declaration of function `ZVAL_STRING' php_mapscript_util.c:394: error: `szNewValue' undeclared (first use in this function) php_mapscript_util.c: At top level: php_mapscript_util.c:402: error: syntax error before '*' token php_mapscript_util.c: In function `_phpms_set_property_null': php_mapscript_util.c:404: error: `pval' undeclared (first use in this function) php_mapscript_util.c:404: error: `phandle' undeclared (first use in this function) php_mapscript_util.c:406: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:406: error: `IS_OBJECT' undeclared (first use in this function) php_mapscript_util.c:408: error: `err_type' undeclared (first use in this function) php_mapscript_util.c:411: error: `property_name' undeclared (first use in this function) php_mapscript_util.c:413: error: `FAILURE' undeclared (first use in this function) php_mapscript_util.c:422: warning: implicit declaration of function `ZVAL_NULL' php_mapscript_util.c: At top level: php_mapscript_util.c:430: error: syntax error before '*' token php_mapscript_util.c: In function `_phpms_set_property_long': php_mapscript_util.c:433: error: `pval' undeclared (first use in this function) php_mapscript_util.c:433: error: `phandle' undeclared (first use in this function) php_mapscript_util.c:435: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:435: error: `IS_OBJECT' undeclared (first use in this function) php_mapscript_util.c:437: error: `err_type' undeclared (first use in this function) php_mapscript_util.c:440: error: `property_name' undeclared (first use in this function) php_mapscript_util.c:442: error: `FAILURE' undeclared (first use in this function) php_mapscript_util.c:451: warning: implicit declaration of function `ZVAL_LONG' php_mapscript_util.c:451: error: `lNewValue' undeclared (first use in this function) php_mapscript_util.c: At top level: php_mapscript_util.c:459: error: syntax error before '*' token php_mapscript_util.c: In function `_phpms_set_property_double': php_mapscript_util.c:462: error: `pval' undeclared (first use in this function) php_mapscript_util.c:462: error: `phandle' undeclared (first use in this function) php_mapscript_util.c:464: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:464: error: `IS_OBJECT' undeclared (first use in this function) php_mapscript_util.c:466: error: `err_type' undeclared (first use in this function) php_mapscript_util.c:469: error: `property_name' undeclared (first use in this function) php_mapscript_util.c:471: error: `FAILURE' undeclared (first use in this function) php_mapscript_util.c:480: warning: implicit declaration of function `ZVAL_DOUBLE' php_mapscript_util.c:480: error: `dNewValue' undeclared (first use in this function) php_mapscript_util.c: At top level: php_mapscript_util.c:488: error: syntax error before '*' token php_mapscript_util.c: In function `_phpms_add_property_object': php_mapscript_util.c:492: warning: implicit declaration of function `add_property_zval' php_mapscript_util.c:492: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:492: error: `property_name' undeclared (first use in this function) php_mapscript_util.c:492: error: `pObjToAdd' undeclared (first use in this function) php_mapscript_util.c:492: error: `FAILURE' undeclared (first use in this function) php_mapscript_util.c:494: error: `err_type' undeclared (first use in this function) php_mapscript_util.c: At top level: php_mapscript_util.c:511: error: syntax error before '*' token php_mapscript_util.c: In function `_phpms_object_init': php_mapscript_util.c:515: error: `zend_class_entry' undeclared (first use in this function) php_mapscript_util.c:515: error: `new_class_entry_ptr' undeclared (first use in this function) php_mapscript_util.c:516: error: syntax error before ')' token php_mapscript_util.c:518: warning: implicit declaration of function `object_init_ex' php_mapscript_util.c:518: error: `return_value' undeclared (first use in this function) php_mapscript_util.c:519: warning: implicit declaration of function `add_property_resource' php_mapscript_util.c:519: error: `handle_id' undeclared (first use in this function) php_mapscript_util.c: At top level: php_mapscript_util.c:541: error: syntax error before '*' token php_mapscript_util.c: In function `_php_extract_associative_array': php_mapscript_util.c:547: error: `zval' undeclared (first use in this function) php_mapscript_util.c:547: error: `value' undeclared (first use in this function) php_mapscript_util.c:548: error: `NULL' undeclared (first use in this function) php_mapscript_util.c:549: error: syntax error before "num_key" php_mapscript_util.c:552: warning: implicit declaration of function `zend_hash_internal_pointer_reset' php_mapscript_util.c:552: error: `php' undeclared (first use in this function) php_mapscript_util.c:553: warning: implicit declaration of function `zend_hash_get_current_data' php_mapscript_util.c:553: error: `SUCCESS' undeclared (first use in this function) php_mapscript_util.c:554: warning: implicit declaration of function `zend_hash_move_forward' php_mapscript_util.c:557: warning: implicit declaration of function `convert_to_string_ex' php_mapscript_util.c:559: warning: implicit declaration of function `zend_hash_get_current_key' php_mapscript_util.c:559: error: `num_key' undeclared (first use in this function) php_mapscript_util.c:561: error: `HASH_KEY_IS_STRING' undeclared (first use in this function) php_mapscript_util.c:562: error: `array' undeclared (first use in this function) php_mapscript_util.c:563: warning: implicit declaration of function `Z_STRVAL_PP' *** Error code 1 Stop in /usr/local/mapserver-4.10.1/mapscript/php3. *** Error code 1 Stop in /usr/local/mapserver-4.10.1. freebsd# On 18/04/2007, at 8:59 PM, Stephen Woodbridge wrote: > Ben, > > Sounds like it might be a freeBSD bug in mapserver .configure > script. You requested --with-fastcgi and I would think that since > it did not find it is should have dropped the -lfcgi, but did not. > You should probably write this up as a bug. > > fastcgi is on little or no benefit unless you are using oracle and > need connection pooling. So try to configure --without-fastcgi ot > just remove the --with-fastcgi option. If one fails try the other. > > -Steve W -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at GMAIL.COM Wed Apr 18 23:57:52 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 19 Apr 2007 08:57:52 +0200 Subject: MapServer 4.10.1 Memory Leak still exists In-Reply-To: Message-ID: Martin, how many layers do you have on your map and which kind are they (shape, oracle, spatial, postigs, etc)? If, by chance, you had a linux mapserver installation it would help if you could run valgrind (a memory leak detector for Linux) on the map file with the following command: valgrind --show-reachable=yes --leak-check=full ./shp2img -m YOURMAPHERE.map -o ~/Desktop/test.png and post the output. Umberto On 4/19/07, David Martin wrote: > I have been testing MS 4.10.0 and 4.10.1 and have found that the Memory > Leak issue identifed in 4.10.0 still exists in 4.10.1 when running the C# > mapserver dlls and Mapscript. > > Now I am using vb.net for the code development. I have released the code > live today and found it ran for 30mins before it consumed over 1Gb of system > memory. The code I am using is as follows: > > There are two subs that inerface to MS one to display images and the other > to process form data and run a query: > > Private Sub DisplayImage(ByVal RefineImage As Boolean) > Dim imageLoc, RefimageLoc As String > If RefineImage Then > ' This is a refined query - show number of results to the screen and > also the refined map > imageLoc = "/Uploads/iMapPlot/tmp/" & Math.Abs(Now.ToBinary) > & ".gif" > RefimageLoc = "/Uploads/iMapPlot/tmp/Ref" & Math.Abs > (Now.ToBinary) & ".gif" > MSMap = New mapObj(MapFile()) > MSMap.setExtent(CurrentExtent.minx, CurrentExtent.miny, > CurrentExtent.maxx, CurrentExtent.maxy) > Dim Refineimg As imageObj > Dim Referenceimg As imageObj > If MapLayers <> "" Then > Dim layerElements As String() = Split(MapLayers, ",") > Dim layer As String > Dim lyr As layerObj > For Each layer In layerElements > lyr = MSMap.getLayerByName(layer) > lyr.status = STATUS_VALUES.MS_ON > If layer = "Places" Then > lyr.data = "..\ExplorOz\Places\" & PlacesPOIName > Dim sty As styleObj = lyr.getClass(0).getStyle(0) > sty.setSymbolByName > (MSMap, "../../Images/PointPlace/symbols/" & PlacesPOIImage & ".gif") > End If > Next > End If > Refineimg = MSMap.draw > Refineimg.save(Server.MapPath(imageLoc), Nothing) > Refineimg.Dispose() > Referenceimg = MSMap.drawReferenceMap > Referenceimg.save(Server.MapPath(RefimageLoc), Nothing) > Referenceimg.Dispose() > CurrentExtent.maxx = MSMap.extent.maxx > CurrentExtent.minx = MSMap.extent.minx > CurrentExtent.maxy = MSMap.extent.maxy > CurrentExtent.miny = MSMap.extent.miny > MSMap.Dispose() > MainMap.Src = imageLoc > refimg.Src = RefimageLoc > Else > imageLoc = "/Uploads/iMapPlot/Cache/" & Replace(Mid(MapFile, > InStrRev(MapFile, "\") + 1), ".map", "_" & Replace(MapLayers, ",", "") & > PlacesPOIName & ".gif") > RefimageLoc = "/Uploads/iMapPlot/Cache/Ref" & Replace(Mid(MapFile, > InStrRev(MapFile, "\") + 1), ".map", "_" & Replace(MapLayers, ",", "") & > PlacesPOIName & ".gif") > If Not System.IO.File.Exists(Server.MapPath(imageLoc)) Or Not > System.IO.File.Exists(Server.MapPath(RefimageLoc)) Then > Dim img As imageObj > Dim Referenceimg As imageObj > MSMap = New mapObj(MapFile()) > If MapLayers <> "" Then > Dim layerElements As String() = Split(MapLayers, ",") > Dim layer As String > Dim lyr As layerObj > For Each layer In layerElements > lyr = MSMap.getLayerByName(layer) > lyr.status = STATUS_VALUES.MS_ON > If layer = "Places" Then > lyr.data = "..\ExplorOz\Places\" & PlacesPOIName > Dim sty As styleObj = lyr.getClass(0).getStyle(0) > sty.setSymbolByName > (MSMap, "../../Images/PointPlace/symbols/" & PlacesPOIImage & ".gif") > End If > Next > End If > img = MSMap.draw > img.save(Server.MapPath(imageLoc), Nothing) > img.Dispose() > Referenceimg = MSMap.drawReferenceMap > Referenceimg.save(Server.MapPath(RefimageLoc), Nothing) > Referenceimg.Dispose() > MSMap.Dispose() > End If > MainMap.Src = imageLoc > refimg.Src = RefimageLoc > End If > map.Value = MapFile() > layer.Value = MapLayers > End Sub > > Private Sub Query() > Dim result As Integer > Dim lyr As layerObj > MSMap = New mapObj(MapFile()) > lyr = MSMap.getLayerByName(SearchLayer) > MSMap.setExtent(CurrentExtent.minx, CurrentExtent.miny, > CurrentExtent.maxx, CurrentExtent.maxy) > If SearchLayer = "Places" Then lyr.data = "..\ExplorOz\Places\" & > PlacesPOIName > Dim s As New System.Text.StringBuilder > > result = lyr.queryByRect(MSMap, CurrentExtent) > > If result = RESULT_CODE.MS_SUCCESS Then > Dim resCache As resultCacheObj = lyr.getResults > > If resCache.numresults > 0 Then > Dim shp As shapeObj > Dim fName As String > lyr.open() > NumResults = resCache.numresults > For i As Integer = 0 To resCache.numresults - 1 > shp = lyr.getFeature(resCache.getResult(i).shapeindex, > resCache.getResult(i).tileindex) > For iItem As Integer = 0 To lyr.numitems - 1 > fName = lyr.getItem(iItem) > If fName = "ID" Then s.Append(shp.getValue(iItem) & ",") > Next > shp.Dispose() > Next > If s.Length > 1 Then s.Remove(s.Length - 1, 1) > lyr.close() > End If > > 'If SearchLayer = "Places" Then > ' Response.Write(NumResults) > ' Response.Write("
" & s.ToString) > ' Exit Sub > 'End If > lyr.Dispose() > MSMap.Dispose() > End Sub > > You will see that I dispose every element I create, this has been tried on two > servers (and the production system - dual cpu, 2GB ram) - I do stress the > application with hundreds of users per hour. The exception thrown is as > follows: > Server Error in '/' Application. > --------------------------------------------------------------------------- > ----- > > msLoadMap(): Memory allocation error. > Description: An unhandled exception occurred during the execution of the > current web request. Please review the stack trace for more information about > the error and where it originated in the code. > > Exception Details: System.ApplicationException: msLoadMap(): Memory > allocation error. > > [ApplicationException: msLoadMap(): Memory allocation error. ] > mapObj..ctor(String filename) +54 > MapSearch.Query() +52 > MapSearch.Page_Load(Object sender, EventArgs e) +284 > System.Web.UI.Control.OnLoad(EventArgs e) +99 > System.Web.UI.Control.LoadRecursive() +47 > System.Web.UI.Page.ProcessRequestMain(Boolean > includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061 > > > Any thoughts or help on this would be great, I have invested a heap of time > on this interface and do not want to go back to calling the cgi system as it is > slower - I am using the pre-compiled binaries in the MS4W package as > downloaded two days ago. > > David Martin > From yjacolin at FREE.FR Thu Apr 19 01:34:26 2007 From: yjacolin at FREE.FR (Yves Jacolin) Date: Thu, 19 Apr 2007 10:34:26 +0200 Subject: FYI - quick info cards uploaded to OSGEO-Wiki In-Reply-To: <2d1782780704181949m1878f990q2e769f9784272fac@mail.gmail.com> Message-ID: Le Jeudi 19 Avril 2007 04:49, Eduardo Patto Kanegae a ?crit?: > I've just sent 2 PDF quick info cards of MapServer at OSGEO Wiki: > - http://wiki.osgeo.org/images/1/16/MapServer-flyer-en.pdf > - http://wiki.osgeo.org/images/f/f7/MapServer-flyer-pt_BR.pdf ( in > portuguese) > > best Hi, Great jobs! I will be interesting to translate it. Is it possible to get the original file for translation (in french)? Thanks, Y. -- Yves Jacolin --- http://yjacolin.gloobe.org From mapserver at METEOLOGICA.COM Thu Apr 19 02:47:04 2007 From: mapserver at METEOLOGICA.COM (=?ISO-8859-1?Q?Paco_Regod=F3n?=) Date: Thu, 19 Apr 2007 11:47:04 +0200 Subject: Mapserver cgi and GEOS Message-ID: I would like to know which kind of GEOS support is in mapserver cgi. From epk.lists at GMAIL.COM Thu Apr 19 02:48:30 2007 From: epk.lists at GMAIL.COM (Eduardo Patto Kanegae) Date: Thu, 19 Apr 2007 06:48:30 -0300 Subject: FYI - quick info cards uploaded to OSGEO-Wiki In-Reply-To: <200704191034.26602.yjacolin@free.fr> Message-ID: Hi Yves, The original is a PowerPoint file and it's not possible to upload it to OSGEO. So, I'll send it directly to your personal e-mail. If anybody else need it, feel free to ask me by mail : e ~ patto ~ kanegae ~ AT ~ gmail ~ com regards, Eduardo Patto Kanegae On 4/19/07, Yves Jacolin wrote: > > Le Jeudi 19 Avril 2007 04:49, Eduardo Patto Kanegae a ?crit: > > I've just sent 2 PDF quick info cards of MapServer at OSGEO Wiki: > > - http://wiki.osgeo.org/images/1/16/MapServer-flyer-en.pdf > > - http://wiki.osgeo.org/images/f/f7/MapServer-flyer-pt_BR.pdf ( in > > portuguese) > > > > best > Hi, > > Great jobs! > > I will be interesting to translate it. Is it possible to get the original > file > for translation (in french)? > > Thanks, > > Y. > -- > Yves Jacolin > --- > http://yjacolin.gloobe.org > -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From yjacolin at FREE.FR Thu Apr 19 03:01:51 2007 From: yjacolin at FREE.FR (Yves Jacolin) Date: Thu, 19 Apr 2007 12:01:51 +0200 Subject: FYI - quick info cards uploaded to OSGEO-Wiki In-Reply-To: <2d1782780704190248x1c4fbf49oe69eeefa61240d2d@mail.gmail.com> Message-ID: Thanks, I got it. I will post an email as soon as I will finish to translate it. Y. Le Jeudi 19 Avril 2007 11:48, Eduardo Patto Kanegae a ?crit?: > Hi Yves, > > The original is a PowerPoint file and it's not possible to upload it to > OSGEO. > > So, I'll send it directly to your personal e-mail. > > If anybody else need it, feel free to ask me by mail : e ~ patto ~ kanegae > ~ AT ~ gmail ~ com > > regards, > > Eduardo Patto Kanegae > > On 4/19/07, Yves Jacolin wrote: > > Le Jeudi 19 Avril 2007 04:49, Eduardo Patto Kanegae a ?crit: > > > I've just sent 2 PDF quick info cards of MapServer at OSGEO Wiki: > > > - http://wiki.osgeo.org/images/1/16/MapServer-flyer-en.pdf > > > - http://wiki.osgeo.org/images/f/f7/MapServer-flyer-pt_BR.pdf ( in > > > portuguese) > > > > > > best > > > > Hi, > > > > Great jobs! > > > > I will be interesting to translate it. Is it possible to get the original > > file > > for translation (in french)? > > > > Thanks, > > > > Y. > > -- > > Yves Jacolin > > --- > > http://yjacolin.gloobe.org > > -- -- Yves Jacolin --- http://yjacolin.gloobe.org From anthony.k.farrant at GMAIL.COM Thu Apr 19 06:07:25 2007 From: anthony.k.farrant at GMAIL.COM (anthony farrant) Date: Thu, 19 Apr 2007 15:07:25 +0200 Subject: Are Inline Features queryable? Message-ID: Hi people, I have a layer with *INLINE FEATURES* and was wondering what attributes I should add to make it queryable. I'm getting the error: msINLINELayerGetShape(): No inline feature How do I create or simulate an attribute within this inline layer? Thanks in advance, A This is my code: ==================================== LAYER METADATA END NAME "'.$name.'" PROJECTION #"EPSG:4326" "proj=latlong" "ellps=WGS84" "datum=WGS84" END TEMPLATE "query.html" TOLERANCE 3 TOLERANCEUNITS PIXELS #SIZEUNITS PIXELS STATUS DEFAULT TYPE POINT #UNITS METERS CLASSITEM "COORDINATE" CLASS NAME "'.$name.'" STYLE #ANGLE 360 OUTLINECOLOR 0 0 0 SYMBOL "'.$symbol.'" COLOR '.implode(' ',$col).' SIZE '.$size.' END #LABEL # COLOR 0 0 0 #FONT monospace #TYPE TRUETYPE #POSITION CC #PARTIALS TRUE #SIZE 7 #BUFFER 1 #OUTLINECOLOR 255 255 255 #END END FEATURE POINTS '.$features.' END TEXT "Coordinates" END ================================== -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at MAPGEARS.COM Thu Apr 19 06:29:01 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Thu, 19 Apr 2007 09:29:01 -0400 Subject: Virtual Tables In-Reply-To: <008701c781e0$c0420cc0$40c62640$@com> Message-ID: For the record, we have figured part of the mystery offlist, it turns out the VRT definition had two problems: 1- Missing required (path to the .csv file) 2- was wrong (layer name for CSV sources is only the basename of the .csv file) With the above fixes "ogrinfo" could read the data, but we still do not see the points on the map, however converting the VRT to a shapefile does work for the same layer... that's another mystery to solve. Daniel Kevin Flanders wrote: > I would like to map a virtual table, and I am told I can do it without > declaring an ODBC?using the following mapfile layer definition: > > > > LAYER > > NAME "Fire Data" > > GROUP "Fire Data" > > STATUS on > > TYPE point > > CONNECTIONTYPE OGR > > CONNECTION " > > name='firegis'> > > > mapsonline.csv > > > encoding='PointFromColumns' x='XCOORD' y='YCOORD'/> > > wkbPoint > > > > " > > TEMPLATE "ttt" > > TOLERANCE 4 > > CLASS > > NAME "Fire > Data" > > SYMBOL "circle" > > OUTLINECOLOR 80 80 80 > > COLOR 219 0 0 > > SIZE 12 > > END > > END > > > > > > But this fails. Do I need an ODBC?.or is it true I can access a text > file directly in this manner. The data is being placed with all my > other shapefiles (ie. in the same folder). > > > > Also, can the .csv file just as easily be a .txt file?.and can the > entries have quotations around them? > > > > > > Kevin > > > -- Daniel Morissette http://www.mapgears.com/ From bayu_kr at YAHOO.COM Thu Apr 19 06:16:32 2007 From: bayu_kr at YAHOO.COM (Bayu Kurniawan) Date: Thu, 19 Apr 2007 06:16:32 -0700 Subject: documentation php mapscript Message-ID: hello, if there any documentation about php-mapscript. i'm looking tutorial to build mapserver with php. thanks Send instant messages to your online friends http://uk.messenger.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From traviskirstine at GMAIL.COM Thu Apr 19 07:06:59 2007 From: traviskirstine at GMAIL.COM (Travis Kirstine) Date: Thu, 19 Apr 2007 10:06:59 -0400 Subject: attribute index on shapefiles Message-ID: I have created indexes on several shpfiles using ogr with the -sql command CREATE INDEX ON table USING fieldname. Currently the shpfiles are referenced by a tileindex using TILEINDEX/TILEITEM in the mapfile. When performing a query by attribute on the indexed field does mapserver make use of the index? -- Travis K. Toronto, Canada ------------------------------------------------------------ "She knows there's no success like failure And that failure's no success at all." -Bob Dylan- ------------------------------------------------------------ From abe.gillespie at GMAIL.COM Thu Apr 19 07:37:53 2007 From: abe.gillespie at GMAIL.COM (Abe Gillespie) Date: Thu, 19 Apr 2007 10:37:53 -0400 Subject: documentation php mapscript In-Reply-To: <232485.23545.qm@web90408.mail.mud.yahoo.com> Message-ID: Here are some tutorials (don't know how good they are): http://mapserver.gis.umn.edu/docs/tutorial/msrecipes/msrecipes Here are the docs: http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class -Abe On 4/19/07, Bayu Kurniawan wrote: > > hello, > if there any documentation about php-mapscript. > i'm looking tutorial to build mapserver with php. > > thanks > > > Send instant messages to your online friends http://uk.messenger.yahoo.com From rdmailings at DUIF.NET Thu Apr 19 08:00:19 2007 From: rdmailings at DUIF.NET (Richard Duivenvoorde) Date: Thu, 19 Apr 2007 17:00:19 +0200 Subject: postgis cyclic performance hit Message-ID: Hi List, I'm running a developer machine windows, postgis/mapserver. It contains one small layer (50 points). If I run a ogc-mapserver request (in a browser) for an image of those points, the performance behaves strange: - about 10 responses ok: about a few hundred milliseconds - then one VERY slow one: about 4 seconds repeating that every 9-14 requests created gist index on geometry layer created btree index on id column gave postgresql some more memory still the same result. QUESTION: - any people running mapserver/postgis on a windows machine and having good response times - somebody a clue to this cyclic 'bad response time' behaviour? Thanks Richard Duivenvoorde From Kyle.Wilcox at NOAA.GOV Thu Apr 19 08:11:21 2007 From: Kyle.Wilcox at NOAA.GOV (Kyle Wilcox) Date: Thu, 19 Apr 2007 11:11:21 -0400 Subject: documentation php mapscript In-Reply-To: <232485.23545.qm@web90408.mail.mud.yahoo.com> Message-ID: specifying ./configure --with-php=DIR will compile php-mapscript along with Mapserver. It has been included in the Mapserver download for some time now. After compiling Mapserver, copy the php_mapscript.so file created into your PHP library/extension/module directory (you can find that in the php.ini file under extension_dir="PATH" Bayu Kurniawan wrote: > hello, > if there any documentation about php-mapscript. > i'm looking tutorial to build mapserver with php. > > thanks > > > > > Send instant messages to your online friends http://uk.messenger.yahoo.com -- Kyle Wilcox NOAA Chesapeake Bay Office 410 Severn Avenue Suite 107A Annapolis, MD 21403 office: (410) 295-3151 Kyle.Wilcox at noaa.gov From mseibel at GMAIL.COM Thu Apr 19 09:02:38 2007 From: mseibel at GMAIL.COM (M S) Date: Thu, 19 Apr 2007 11:02:38 -0500 Subject: documentation php mapscript In-Reply-To: <232485.23545.qm@web90408.mail.mud.yahoo.com> Message-ID: this one is great too. http://mapserver.gis.umn.edu/docs/howto/phpmapscript-byexample On 4/19/07, Bayu Kurniawan wrote: > > hello, > if there any documentation about php-mapscript. > i'm looking tutorial to build mapserver with php. > > thanks > > > Send instant messages to your online friends http://uk.messenger.yahoo.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Schoenhammer.Herbert at REGENSBURG.DE Thu Apr 19 08:56:59 2007 From: Schoenhammer.Herbert at REGENSBURG.DE (=?iso-8859-1?Q?=22Sch=F6nhammer=2C_Herbert=22?=) Date: Thu, 19 Apr 2007 17:56:59 +0200 Subject: AW: [UMN_MAPSERVER-USERS] No drawing of certain polygon rings stroed in Oracle Spatial In-Reply-To: <4626027F.1010001@univali.br> Message-ID: Hi Fernando, I'm in hurry, but a short report of my results: 1. == Yes, the validate function returns true ! 2. == After using SDO_GEOM.SDO_ARC_DENSIFY geometries with SDO_ELEM_INFO (1;1003;1 ...) are built. These geometries are drawn by mapserver. (Of Course; now these geometries are simple polygons, connected by stright lines.) 3. == I really don't understand the 'arc_tolerance= xx' parameter of this function. Chosing them very big, smaller, .... smallest, ... I NEVER could create a simpler object, which is an approximation of the original geometry. (A polygon with 5 edges is NO approximation of a circle). So I have to play with this command. (I don't understand the dependencies of the tolerance-value in the diminfo-array of the layer at this point of time ) regards Herbert >-----Urspr?ngliche Nachricht----- >Von: Fernando Simon [mailto:fsimon at univali.br] >Gesendet: Mittwoch, 18. April 2007 13:35 >An: Sch?nhammer, Herbert >Betreff: Re: AW: AW: [UMN_MAPSERVER-USERS] No drawing of >certain polygon rings stroed in Oracle Spatial > > >Hi Hebert, > Sorry for the delay to send some news. In the last week I was >thinking about your problem, the validate function return true, right? >Did you already try to use, and validate, the objects in >another Oracle >versions (9i, 10g)? > Another thing is try to test the function >SDO_GEOM.SDO_ARC_DENSIFY to >convert this objects to a more simple object. Can you try this to test? > Sorry again for the delay. > >Fernando Simon > >Sch?nhammer, Herbert wrote: >> Hi Fernando, >> >> have you got some time for searching a solution for "my" problem ? >> >> Actual i have to build a WMS using Mapserver to support >another project in my work. So i Don't have a lot of time anymore. >> >> I will be glad of any kind of solution or tipp or workaraound. >> >> Main problem: the application used for generating and >editing the data in the oracle database (Autodesk Topobase 3) >is storing circles as described in my mails. About 20 >employees are working every day with this database. So i'm not >able to make a copy of the database and make some workarounds, >because i have to deliver the actual data ! >> >> Thanks very much, >> >> regards >> Herbert >> >> >>> -----Urspr?ngliche Nachricht----- >>> Von: Fernando Simon [mailto:fsimon at univali.br] >>> Gesendet: Montag, 2. April 2007 14:05 >>> An: Sch?nhammer, Herbert >>> Betreff: Re: AW: [UMN_MAPSERVER-USERS] No drawing of certain >>> polygon rings stroed in Oracle Spatial >>> >>> >>> Hi Sch?nhamer, >>> Sorry for the delay to reply some news from Brazil. >>> I didn't have much time to look about this issue, the >Master was a >>> little complicated last week. I already started to investigate the >>> problem, the Oracle standard and the driver for Mapserver. >>> I don't know if this week (With the easter holiday) I can >>> work more, >>> but I will try to develop something. >>> Before it, can you send to me all the info about your >system? And >>> the objects that not work. Another importnt thing is the >UMN Mapserver >>> version and the Mapfile that you used. >>> Sorry again for the delay. >>> Best regards from Brazil. >>> >>> Fernando Simon >>> >>> >>> Sch?nhammer, Herbert wrote: >>> >>>> Hi, >>>> >>>> have you got some time for looking at the problem ?? >>>> >>>> Best regards >>>> Herbert Sch?nhammer >>>> >>>> >>>> >>>>> -----Urspr?ngliche Nachricht----- >>>>> Von: UMN MapServer Users List >>>>> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im Auftrag von >Fernando Simon >>>>> Gesendet: Montag, 19. M?rz 2007 04:33 >>>>> An: MAPSERVER-USERS at LISTS.UMN.EDU >>>>> Betreff: Re: [UMN_MAPSERVER-USERS] No drawing of certain >>>>> polygon rings stroed in Oracle Spatial >>>>> >>>>> >>>>> Hi, >>>>> The problem that you report it's strange, I need to >>>>> investigate more >>>>> to try find the solution. This approach to draw the circle I >>>>> never used. >>>>> Maybe (very possible) that the problem with the >>>>> >>> SDO_INTERPRETATION >>> >>>>> and SDO_GTYPE that you relate is the core of the problem. >>>>> You can try to simplify your arc's as lines, Oracle 9i >contains a >>>>> function that transform arc's to lines, I don't remember the >>>>> name now (I >>>>> don't have the docs here now). You can try this way to solve the >>>>> problem, you need to test the interoperability of these converted >>>>> polygons with Topoase. >>>>> Now I can't test (I'm starting my Master), I just can >>>>> >>> test, change >>> >>>>> the code and report a solution after the day 26. >>>>> Best regards. >>>>> >>>>> >------------------------------------------------------------------- >>>>> Fernando Simon >>>>> UMN Mapserver and Oracle Spatial developer >>>>> >------------------------------------------------------------------- >>>>> >>>>> Sch?nhammer, Herbert wrote: >>>>> >>>>> >>>>>> Hi, >>>>>> >>>>>> I have some troubles drawing of certain geometries, stored >>>>>> >>> in Oracle >>> >>>>>> Spatial 9i. >>>>>> >>>>>> In general, I'm able to say, that polygon rings are drawn without >>>>>> problems (Connected by line strings or compound line strings >>>>>> >>>>>> >>>>> connected >>>>> >>>>> >>>>>> by circular arcs AND line strings). But there are some >types, which >>>>>> are not drawn by mapserver. There is no warning or error >>>>>> >>> reported by >>> >>>>>> mapserver ! These certain geometries only are not present in >>>>>> >>>>>> >>>>> the drawn >>>>> >>>>> >>>>>> png-file (or what ever). The geometries in the neighbourhood >>>>>> >>>>>> >>>>> are drawn ! >>>>> >>>>> >>>>>> My Environment >>>>>> ============== >>>>>> >>>>>> - Oracle 9i with Spatial Option on a Windows 2003 Server >>>>>> - MapServer 4.8.4 (Mapserver 4.10.1 does the same !) on a >>>>>> >>> SuSE SLES 9 >>> >>>>>> compiled with an Oracle 10g - Client >>>>>> - MapServer used as WMS-Server >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> In detail the geometry, whis is NOT drawn by mapserver >>>>>> ====================================================== >>>>>> Our application (Autodesk Topoase 3) is not storing a circle as a >>>>>> circle in Oracle Spatial. The circle is splitted into two arcs, >>>>>> connected to each other at the end-/start-points of the arcs. The >>>>>> drawn picture should be the picture of a circle. >>>>>> >>>>>> The stored geometry has the properties: >>>>>> GTYPE 2003 (= 2-dim POLYGON) >>>>>> >>>>>> In Detail: >>>>>> (2003; 82032; ; (1; 1003; 2; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; >>>>>> >>>>>> >>>>> ; ; ; ; ; >>>>> >>>>> >>>>>> ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; >>>>>> >>> ; ; ; ; ; ; >>> >>>>>> ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; >>>>>> >>> ; ; ; ; ; ; >>> >>>>>> ; ; ; ; ; ); (4505542,97176542; 5430753,10554764; >4505541,58808944; >>>>>> 5430750,58265205; 4505544,16794032; 5430749,30831663; >>>>>> 4505545,28931113; 5430751,74858283; 4505542,97176542; >>>>>> 5430753,10554764; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; >>>>>> >>> ; ; ; ; ; ; >>> >>>>>> ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; >>>>>> >>> ; ; ; ; ; ; >>> >>>>>> ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; )) >>>>>> >>>>>> The geometry validates >>>>>> >>> (SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT), the >>> >>>>>> result is TRUE. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> The same geometry stored as LINE or CURVE IS drawn !! >>>>>> ===================================================== >>>>>> >>>>>> GTYPE 2002 (= 2-dim LINE or CURVE) >>>>>> >>>>>> >>>>>> (2002; 82032; ; (1; 2; 2; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; >>>>>> >>> ; ; ; ; ; ; >>> >>>>>> ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; >>>>>> >>> ; ; ; ; ; ; >>> >>>>>> ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; >>>>>> >>> ; ; ; ; ; ; >>> >>>>>> ; ; ; ; ); (4505542,97176542; 5430753,10554764; 4505541,58808944; >>>>>> 5430750,58265206; 4505544,16794032; 5430749,30831663; >>>>>> 4505545,28931113; 5430751,74858283; 4505542,97176542; >>>>>> 5430753,10554764; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; >>>>>> >>> ; ; ; ; ; ; >>> >>>>>> ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; >>>>>> >>> ; ; ; ; ; ; >>> >>>>>> ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; )) >>>>>> >>>>>> >>>>>> Note >>>>>> ==== >>>>>> >>>>>> Changing the mapserver Layer TYPE from POLYGON to LINE (or >>>>>> >>>>>> >>>>> vice versa) >>>>> >>>>> >>>>>> does not have any effect !!! >>>>>> >>>>>> >>>>>> >>>>>> In detail a "circle", which IS drawn by mapserver >>>>>> ================================================= >>>>>> >>>>>> GTYPE 2002 (= 2-dim LINE or CURVE) >>>>>> >>>>>> (2002; 82032; ; (1; 4; 1; 1; 2; 2; ; ; ; ; ; ; ; ; ; ; ; ; ; >>>>>> >>>>>> >>>>> ; ; ; ; ; >>>>> >>>>> >>>>>> ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; >>>>>> >>> ; ; ; ; ; ; >>> >>>>>> ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; >>>>>> >>> ; ; ; ; ; ; >>> >>>>>> ; ; ; ; ; ); (4506079,8746; 5430398,0938; 4506070,0144; >>>>>> >>> 5430388,2336; >>> >>>>>> 4506079,8746; 5430378,3734; 4506089,7348; 5430388,2336; >>>>>> >>> 4506079,8746; >>> >>>>>> 5430398,0938; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; >>>>>> >>> ; ; ; ; ; ; >>> >>>>>> ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; >>>>>> >>> ; ; ; ; ; ; >>> >>>>>> ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; )) >>>>>> >>>>>> The geometry also validates >>>>>> >>>>>> >>>>> (SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT), >>>>> >>>>> >>>>>> the result is TRUE. >>>>>> >>>>>> BUT: >>>>>> ---- >>>>>> Please look at the first triplet of SDO_ELEM_INFO. >>>>>> Looking in Oracle Documentation, the combination of >>>>>> >>>>>> >>>>> SDO_ETYPE=4 with a >>>>> >>>>> >>>>>> SDO_INTERPRETATION=1 is NOT allowed. SDO_INTERPRETATION MUST >>>>>> >>>>>> >>>>> be bigger >>>>> >>>>> >>>>>> than 1. >>>>>> >>>>>> (Is there a bug in the doc ??????) >>>>>> >>>>>> >>>>>> My problem >>>>>> ========== >>>>>> Creating new circles, the application stores them as GTYPE >>>>>> >>>>>> >>>>> 2003, which >>>>> >>>>> >>>>>> is not drawn ! >>>>>> >>>>>> >>>>>> Does anybody know, what's the matter? >>>>>> ===================================== >>>>>> >>>>>> Is there anybody, who has some tipps for me ? >>>>>> >>>>>> >>>>>> With kind regards >>>>>> >>>>>> *Sch?nhammer Herbert* >>>>>> >>>>>> >>>>>> >>>>>> >>>> >>>> >>> >>> >> >> > > > From warmerdam at POBOX.COM Thu Apr 19 11:45:34 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 19 Apr 2007 14:45:34 -0400 Subject: attribute index on shapefiles In-Reply-To: <681116190704190706t26aa16d6w7270e1392f2a773c@mail.gmail.com> Message-ID: Travis Kirstine wrote: > I have created indexes on several shpfiles using ogr with the -sql > command CREATE INDEX ON table USING fieldname. Currently the shpfiles > are referenced by a tileindex using TILEINDEX/TILEITEM in the mapfile. > When performing a query by attribute on the indexed field does > mapserver make use of the index? Travis, I believe the attribute filter is still "set" on each shapefile in turn by the code in mapogr.cpp so the answer should be yes. I'd warn that the attribute filtering is only passed off to OGR in some circumstances, such as when the filter clause starts with the WHERE keyword. Old style filters are evaluated entirely within MapServer instead of OGR and won't benefit from the indexes even though you are using CONNECTIONTYPE OGR. Hopefully the OGR howto touches on this issue. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From romoloman at HOTMAIL.COM Thu Apr 19 13:42:18 2007 From: romoloman at HOTMAIL.COM (Romolo Manfredini) Date: Thu, 19 Apr 2007 22:42:18 +0200 Subject: postgis cyclic performance hit Message-ID: The informations are very few, but such a behaviour may depends on several factors like: Few postgres connections then if you are using apache bad configuration of apache (few childs) fast recycling of servers (respaning child too often) are you using the cgi directly or some interface ? on my developer machine using winxp / apache / php / postgres / postgis / phpmapscript and persistent connections never had cyclic performance hits and response times are rather good with very large layers. BTW I had to patch tcpip.sys for half-open connection issues (1000 connections allowed) as I had issues while testing with firefox configured for maximum performances. ----- Original Message ----- From: "Richard Duivenvoorde" To: Sent: Thursday, April 19, 2007 5:00 PM Subject: [UMN_MAPSERVER-USERS] postgis cyclic performance hit > Hi List, > I'm running a developer machine windows, postgis/mapserver. > > It contains one small layer (50 points). > > If I run a ogc-mapserver request (in a browser) for an image of those > points, the performance behaves strange: > - about 10 responses ok: about a few hundred milliseconds > - then one VERY slow one: about 4 seconds > repeating that every 9-14 requests > > created gist index on geometry layer > created btree index on id column > gave postgresql some more memory > > still the same result. > > QUESTION: > - any people running mapserver/postgis on a windows machine and having > good response times > - somebody a clue to this cyclic 'bad response time' behaviour? > > Thanks > > Richard Duivenvoorde > From volpicelli at OATO.INAF.IT Thu Apr 19 14:41:56 2007 From: volpicelli at OATO.INAF.IT (antonio) Date: Thu, 19 Apr 2007 23:41:56 +0200 Subject: Use of different epsg code Message-ID: Hi , I am new of mapserver. I am using mapserver for an astronomic application and I would like to use Mollweide projection ( epsg:54009). I am able to draw the graticule ( the ellipse ) using this layer inside mapfile. First of all in the top of mapfile I defined these : MAP NAME ASTRO STATUS ON #EXTENT -180 -90 180 90 EXTENT -18000000 -9000000 18000000 9000000 UNITS dd #IMAGECOLOR 0 123 123 TRANSPARENT ON SHAPEPATH "G:/GalexData/TestPoint" CONFIG "PROJ_LIB" "E:/ms4w/proj/nad/" . PROJECTION "init=epsg:54009" END . . . The layer definition for the graticule: LAYER NAME "Grid" METADATA "DESCRIPTION" "Grid" END TYPE LINE STATUS OFF CLASS NAME "Graticule" COLOR 123 123 123 END PROJECTION "init=epsg:4326" #"init=epsg:54009" END GRID MAXARCS 1 MAXINTERVAL 15 END END # Layer So this work but I don't really understand why I have to define the EXTENT as -18000000 -9000000 18000000 9000000 and not as -180 -90 180 90 and in the layer "Grid" definition I cannot define the init=epsg:54009 but init=epsg:4326 . If I use 54009 , mapserver goes in stall , it gets 98% of CPU and don't end never. If now I want draw one polygon shape on this map and I use this layer : LAYER NAME "TestPoint" TYPE POLYGON STATUS ON DATA TestPoint PROJECTION "init=epsg:4326" END LABELITEM 'tilename' DUMP true CLASS NAME "TestPoint" STYLE SIZE 2 OUTLINECOLOR 123 123 123 COLOR 0 0 255 END LABEL MINFEATURESIZE 200 END END METADATA GML_INCLUDE_ITEMS "tilename,survey,ra,dec,nuvexptime,fuvexptime" WMS_SERVER_VERSION "1.1.1" WMS_FORMAT "image/png" WMS_TITLE "Galex AIS Survey" WMS_ABSTRACT "SDSS DR3 imaging level 0" WMS_SRS "EPSG:4326" WMS_NAME "TestPoint" #WMS_FORCE_SEPARATE_REQUEST "0" END END and here too , I have to use epsg:4326 and not 54009. There are someone that could help me about this and If I want to change the projection from Mollweide to Aitoff , is it possible and supported by mapserver. Thanks Antonio From bfraser at GEOANALYTIC.COM Thu Apr 19 15:43:10 2007 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Thu, 19 Apr 2007 16:43:10 -0600 Subject: Use of different epsg code Message-ID: Antonio, The values in the EXTENT must be in the units of the PROJECTION, so I'm suprised that with "UNITS dd" it works at all. The units of the MAP should be "UNITS meters". An EXTENT of "-18000000 -9000000 18000000 9000000" meters is an ok place to start when you want to show the entire globe. The GRID objects have sparse documentation. The MAXARCS object specifies the maximum number of lines you want shown on your map (in one direction), so MAXARCS 1 will try to draw only one line. From my notes MAXINTERVAL is "The maximum number of intervals to try to use. The distance between the lines, in layer(?) units. Most commonly changed parameter." Since its in the layer's units, using a MAXINTERVAL 15 with EPSG:54009 would try to draw a line every 15 meters (waay too many!), but with EPSG:4326 (a geographic coordinate system with units of degrees), it would try to draw one every 15 degrees (much more reasonable). Mapserver uses Proj4 for the coordinate systems operations. You may want to look on the Proj4 web site (http://proj.maptools.org/), but I believe it does support Aitoff. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "antonio" To: Sent: Thursday, April 19, 2007 3:41 PM Subject: [UMN_MAPSERVER-USERS] Use of different epsg code > Hi , > I am new of mapserver. I am using mapserver for an astronomic > application and I would like to use Mollweide projection ( epsg:54009). > I am able to draw the graticule ( the ellipse ) using this layer > inside mapfile. > First of all in the top of mapfile I defined these : > MAP > NAME ASTRO > STATUS ON > > #EXTENT -180 -90 180 90 EXTENT -18000000 -9000000 18000000 9000000 > UNITS dd > #IMAGECOLOR 0 123 123 > TRANSPARENT ON > SHAPEPATH "G:/GalexData/TestPoint" > CONFIG "PROJ_LIB" "E:/ms4w/proj/nad/" > . PROJECTION > "init=epsg:54009" > END > > . > . > . > > The layer definition for the graticule: > > LAYER > NAME "Grid" > METADATA > "DESCRIPTION" "Grid" > END > TYPE LINE > STATUS OFF > CLASS > NAME "Graticule" > COLOR 123 123 123 > END > PROJECTION > "init=epsg:4326" > #"init=epsg:54009" > END > GRID > MAXARCS 1 > MAXINTERVAL 15 > END > END # Layer > > > So this work but I don't really understand why I have to define the > EXTENT as -18000000 -9000000 18000000 9000000 and not as -180 -90 180 90 > and in the layer "Grid" definition I cannot define the init=epsg:54009 > but init=epsg:4326 . If I use 54009 , mapserver goes in stall , it gets > 98% of CPU and don't end never. > If now I want draw one polygon shape on this map and I use this layer : > LAYER > NAME "TestPoint" > TYPE POLYGON > STATUS ON > > DATA TestPoint > PROJECTION > "init=epsg:4326" > END > > LABELITEM 'tilename' > DUMP true > > CLASS > NAME "TestPoint" > STYLE > SIZE 2 > OUTLINECOLOR 123 123 123 > COLOR 0 0 255 > END > LABEL > MINFEATURESIZE 200 > END > > END > > METADATA > GML_INCLUDE_ITEMS "tilename,survey,ra,dec,nuvexptime,fuvexptime" > WMS_SERVER_VERSION "1.1.1" > WMS_FORMAT "image/png" > WMS_TITLE "Galex AIS Survey" > WMS_ABSTRACT "SDSS DR3 imaging level 0" > WMS_SRS "EPSG:4326" > WMS_NAME "TestPoint" > #WMS_FORCE_SEPARATE_REQUEST "0" END > END > > and here too , I have to use epsg:4326 and not 54009. > > There are someone that could help me about this and If I want to change > the projection from Mollweide to Aitoff , is it possible and supported > by mapserver. > Thanks > Antonio From rdmailings at DUIF.NET Thu Apr 19 23:42:33 2007 From: rdmailings at DUIF.NET (Richard Duivenvoorde) Date: Fri, 20 Apr 2007 08:42:33 +0200 Subject: postgis cyclic performance hit In-Reply-To: Message-ID: Hi Romolo, sorry, you are right, I didn't provide very much info; Here is some extra: My developer machine: WinXP, Microsoft IIS (!), postg* Production: Winows Server 2003, IIS, postg* (client is running IIS, so final configuration should use IIS...) Running mapserver as cgi in IIS. I've done some more experimenting no: - running the same posgresql-layers in APACHE on same machine is ok - running a geotiff OR shape layer in IIS is ok So it must have to do something with the IIS/mapserver/postgislayer-combination. Looking at cpu-performance of memory, I do not see excess use of either of them. But it looks like IIS must clean up something (cache, connections I don't know) after every 10 mapserver-cgi requests if the map contains postgis layers??? Only for the postgis layers, all other layers are fine?? I suppose there are more people who have deployed an mapserver/iis/postgis combi isn't it? Richard Romolo Manfredini wrote: > The informations are very few, but such a behaviour may depends on several > factors like: > Few postgres connections > then if you are using apache > bad configuration of apache (few childs) > fast recycling of servers (respaning child too often) > are you using the cgi directly or some interface ? > on my developer machine using winxp / apache / php / postgres / postgis / > phpmapscript and persistent connections never had cyclic performance hits > and response times are rather good with very large layers. > BTW I had to patch tcpip.sys for half-open connection issues (1000 > connections allowed) as I had issues while testing with firefox configured > for maximum performances. > > ----- Original Message ----- > From: "Richard Duivenvoorde" > To: > Sent: Thursday, April 19, 2007 5:00 PM > Subject: [UMN_MAPSERVER-USERS] postgis cyclic performance hit > > >> Hi List, >> I'm running a developer machine windows, postgis/mapserver. >> >> It contains one small layer (50 points). >> >> If I run a ogc-mapserver request (in a browser) for an image of those >> points, the performance behaves strange: >> - about 10 responses ok: about a few hundred milliseconds >> - then one VERY slow one: about 4 seconds >> repeating that every 9-14 requests >> >> created gist index on geometry layer >> created btree index on id column >> gave postgresql some more memory >> >> still the same result. >> >> QUESTION: >> - any people running mapserver/postgis on a windows machine and having >> good response times >> - somebody a clue to this cyclic 'bad response time' behaviour? >> >> Thanks >> >> Richard Duivenvoorde From david at ITBEYOND.COM.AU Thu Apr 19 23:50:35 2007 From: david at ITBEYOND.COM.AU (David Martin) Date: Fri, 20 Apr 2007 01:50:35 -0500 Subject: MapServer 4.10.1 Memory Leak still exists Message-ID: Umberto, The data type is shape. The number of active layers depends on zoom level however in the map file there is a total of 39 layer definitions, with between 10 and 30 active at any one time. The queries are run only in one layer. I have done some more work on the system and improved the operation by caching commonly used images. You can have a look at the application live if you wish - it is an infant however running live (I note it is crashed at the moment so must recycle app pool - which is in the process of being done). To see it running visit http://www.exploroz.com/Places/Find/CaravanPark.asp? ms=1 - The initial map is cached so use mouse and draw a box to run a query - you will either see the crash message or a refined result set. The application is running on a Win 2003 server so no access to Linux tools. I have been using the same .map file with the CGI interface for a few years and never had problem at all. I note that I can run the cgi mapserver process after the system has reported the .net memory allocation error. A sample of the CGI interface using the same .map file is as follows http://www.exploroz.com/cgi- bin/MapServer/MapServ.exe?mode=browse&map=e:\\inetpub\\vs126169 \\iMapPlot\\map\\ExplorOzBase.map&map_PointRef_feature=new&map_PointRef _feature_points=153.5136%20-27.4211&map_PointRef_feature_text=Adder% 20Rock&mapext=152.7636%20-28.1711%20154.2636%20- 26.6711&themode=zoomin&MapLabel=Show%20Me%20-%20Adder%20Rock% 20-27.4211%20153.5136 Any help would be appreciated. Regards David Martin From cerruti.marco at GMAIL.COM Fri Apr 20 01:37:49 2007 From: cerruti.marco at GMAIL.COM (Marco Cerruti) Date: Fri, 20 Apr 2007 10:37:49 +0200 Subject: MS4W: Queries on classified rasters Message-ID: Hi all, I'm a new user of Mapserver. I'm working with MS4W (version 2.2.3) via CGI and I'm having troubles with queries on classified rasters. Queries on non-classified rasters work fine, while in cases of classified ones (already tried several formats: img, bil, tif, png) I get the following error: msDrawShape(): General error message. Unknown layer type. If I comment CLASS definitions the same query shows me correct results (one or more pixels queried, according to the set tolerance, but of course no information on [class] value). I post an extract of my mapfile, with the definition of the raster layer and one of its classes. Maybe I'm doing something wrong with class template (and layer header/footer ...). Hoping to receive a little help ... and sorry for my English! Marco (Italy) --- --- --- --- --- LAYER # Classificazione vegetazione 2000 NAME class_2000 DATA "2000/final_after_merging.bil" STATUS OFF TYPE RASTER OFFSITE 0 0 0 GROUP "Uso e copertura del suolo" TOLERANCE 0 TOLERANCEUNITS pixels PROJECTION "init=epsg:4326" END METADATA TITOLO "Classificazione vegetazione da satellite - Anno 2000" ORDINE "0044" END HEADER "class2000_header.html" FOOTER "class2000_footer.html" CLASSITEM "[pixel]" CLASS NAME "Latifoglie (pure o dominanti)" EXPRESSION ([pixel] = 2) STYLE COLOR 0 255 0 END TEMPLATE "class_query.html" END END # Fine raster classificazione vegetazione 2000 -------------- next part -------------- An HTML attachment was scrubbed... URL: From volpicelli at OATO.INAF.IT Fri Apr 20 02:02:12 2007 From: volpicelli at OATO.INAF.IT (Antonio) Date: Fri, 20 Apr 2007 11:02:12 +0200 Subject: Use of different epsg code In-Reply-To: <028401c782d4$1b4087c0$160002c0@shark> Message-ID: Thanks Brent, I start to see a bit of light. So I tried to change units in meters but there is always something not clear. I have : MAP NAME ASTRO STATUS ON EXTENT -18000000 -9000000 18000000 9000000 UNITS meters TRANSPARENT ON SHAPEPATH "G:/GalexData/TestPoint" CONFIG "PROJ_LIB" "E:/ms4w/proj/nad/" PROJECTION "init=epsg:54009" # Mollweide END and at the layer level If I define epsg:54009 with MAXARC=1 and MAXINTERVAL=1500000 the graticule is just rectangular grid. If I define epsg:4326 with MAXARC=1 and MAXINTERVAL=15 I can see the whole mollweide sphere. My application use astronomic data then my shape files data are in sky coordinates ( somenthing like Lon and Lat) . If I draw using mapserver one of this shape (see LAYER "TestPoints") , the objects go in the right position in the Mollweide projection , the only thing is that the grid and the data are not using the same projection. I tried to use Aitoff projection too. There isn't an epsg code for that, so I inserted one with an unused id . But here too , in the layer definition I have to use epsg:4326 to plot the points in the Aitoff projection but I am not able to draw the grid sphere. Thanks a lot Antonio LAYER NAME "Grid" METADATA "DESCRIPTION" "Grid" END TYPE LINE STATUS OFF CLASS NAME "Graticule" COLOR 123 123 123 END PROJECTION "init=epsg:4326" #"init=epsg:54009" # Mollweide END GRID MAXARCS 2 # MAXINTERVAL 15000000 END LAYER NAME "TestPoints" TYPE POLYGON STATUS ON DATA "TestPoints" PROJECTION "init=epsg:4326" END LABELITEM 'tilename' DUMP true CLASS NAME "TestPoint" STYLE SIZE 2 OUTLINECOLOR 123 123 123 COLOR 0 0 255 END LABEL MINFEATURESIZE 200 END END METADATA GML_INCLUDE_ITEMS "tilename,survey,ra,dec,nuvexptime,fuvexptime" WMS_SERVER_VERSION "1.1.1" WMS_FORMAT "image/png" WMS_TITLE "Galex AIS Survey" WMS_ABSTRACT "SDSS DR3 imaging level 0" WMS_SRS "EPSG:54009" WMS_NAME "TestPoint" #WMS_FORCE_SEPARATE_REQUEST "0" END END Brent Fraser wrote: > Antonio, > > The values in the EXTENT must be in the units of the > PROJECTION, so I'm suprised that with "UNITS dd" it works at > all. The units of the MAP should be "UNITS meters". An > EXTENT of > "-18000000 -9000000 18000000 9000000" meters is an ok place > to start when you want to show the entire globe. > > The GRID objects have sparse documentation. The MAXARCS > object specifies the maximum number of lines you want shown > on your map (in one direction), so MAXARCS 1 will try to > draw only one line. From my notes MAXINTERVAL is "The > maximum number of intervals to try to use. The distance > between the lines, in layer(?) units. Most commonly changed > parameter." Since its in the layer's units, using a > MAXINTERVAL 15 with EPSG:54009 would try to draw a line > every 15 meters (waay too many!), but with EPSG:4326 (a > geographic coordinate system with units of degrees), it > would try to draw one every 15 degrees (much more > reasonable). > > > Mapserver uses Proj4 for the coordinate systems > operations. You may want to look on the Proj4 web site > (http://proj.maptools.org/), but I believe it does support > Aitoff. > > Brent Fraser > GeoAnalytic Inc. > Calgary, Alberta > > ----- Original Message ----- > From: "antonio" > To: > Sent: Thursday, April 19, 2007 3:41 PM > Subject: [UMN_MAPSERVER-USERS] Use of different epsg code > > > >> Hi , >> I am new of mapserver. I am using mapserver for an >> > astronomic > >> application and I would like to use Mollweide projection >> > ( epsg:54009). > >> I am able to draw the graticule ( the ellipse ) using >> > this layer > >> inside mapfile. >> First of all in the top of mapfile I defined these : >> MAP >> NAME ASTRO >> STATUS ON >> >> #EXTENT -180 -90 180 90 EXTENT -18000000 -9000000 >> > 18000000 9000000 > >> UNITS dd >> #IMAGECOLOR 0 123 123 >> TRANSPARENT ON >> SHAPEPATH "G:/GalexData/TestPoint" >> CONFIG "PROJ_LIB" "E:/ms4w/proj/nad/" >> . PROJECTION >> "init=epsg:54009" >> END >> >> . >> . >> . >> >> The layer definition for the graticule: >> >> LAYER >> NAME "Grid" >> METADATA >> "DESCRIPTION" "Grid" >> END >> TYPE LINE >> STATUS OFF >> CLASS >> NAME "Graticule" >> COLOR 123 123 123 >> END >> PROJECTION >> "init=epsg:4326" >> #"init=epsg:54009" >> END >> GRID >> MAXARCS 1 >> MAXINTERVAL 15 >> END >> END # Layer >> >> >> So this work but I don't really understand why I have to >> > define the > >> EXTENT as -18000000 -9000000 18000000 9000000 and not >> > as -180 -90 180 90 > >> and in the layer "Grid" definition I cannot define the >> > init=epsg:54009 > >> but init=epsg:4326 . If I use 54009 , mapserver goes in >> > stall , it gets > >> 98% of CPU and don't end never. >> If now I want draw one polygon shape on this map and I use >> > this layer : > >> LAYER >> NAME "TestPoint" >> TYPE POLYGON >> STATUS ON >> >> DATA TestPoint >> PROJECTION >> "init=epsg:4326" >> END >> >> LABELITEM 'tilename' >> DUMP true >> >> CLASS >> NAME "TestPoint" >> STYLE >> SIZE 2 >> OUTLINECOLOR 123 123 123 >> COLOR 0 0 255 >> END >> LABEL >> MINFEATURESIZE 200 >> END >> >> END >> >> METADATA >> GML_INCLUDE_ITEMS >> > "tilename,survey,ra,dec,nuvexptime,fuvexptime" > >> WMS_SERVER_VERSION "1.1.1" >> WMS_FORMAT "image/png" >> WMS_TITLE "Galex AIS Survey" >> WMS_ABSTRACT "SDSS DR3 imaging level 0" >> WMS_SRS "EPSG:4326" >> WMS_NAME "TestPoint" >> #WMS_FORCE_SEPARATE_REQUEST "0" END >> END >> >> and here too , I have to use epsg:4326 and not 54009. >> >> There are someone that could help me about this and If I >> > want to change > >> the projection from Mollweide to Aitoff , is it possible >> > and supported > >> by mapserver. >> Thanks >> Antonio >> -- /-------------------------------------------------------\ PLEASE WARNING: E-mail is CHANGED volpicelli at oato.inaf.it /-------------------------------------------------------\ -------------- next part -------------- An HTML attachment was scrubbed... URL: From stefan.schwarzer at GRID.UNEP.CH Fri Apr 20 02:02:47 2007 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Fri, 20 Apr 2007 11:02:47 +0200 Subject: Change Projection on-the-fly; Using PostGIS - How? Message-ID: Hi there, i am struggling since quite a while to set-up a change-projection-on- the-fly possibility for our website mapserver. But somehow, I don't really have the clue how to do it. Now, making things "worse" (more complicated for me) we have migrated from MySql to Postgres/Postgis. ------------------------------------------------------------------------ ---- So, first question would be: What code to use to change the projection via PHP/Mapscript, should be something like this, I guess: $newproj=ms_newprojectionObj("proj=robin,lon_0=0,x_0=0,y_0=0"); $latlon=ms_newprojectionObj("+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"); $oldext=ms_newRectObj(); $oldext->setextent(-180,-90,180,90); //this is the extent of my map in geographic $oldext->project($latlon,$newproj); //reproject to Robinson $map->setextent($oldext->minx,$oldext->miny,$oldext->maxx,$oldext- >maxy); //set the new map extent But I guess, something is still missing... (What about $map- >setProjection ?) ------------------------------------------------------------------------ ---- And the second question is: As my mapfile queries the postgis database, using "SRID", I guess I need to change that one too, then? Instead of 4326 for Geographic I would have to use the one for Robinson (or Mollweide or so) ?? ------------------------------------------------------------------------ ---- Thanks for giving me any hints... Stef From pcreso at PCRESO.COM Fri Apr 20 03:29:32 2007 From: pcreso at PCRESO.COM (Brent Wood) Date: Fri, 20 Apr 2007 03:29:32 -0700 Subject: Change Projection on-the-fly; Using PostGIS - How? In-Reply-To: Message-ID: --- Stefan Schwarzer wrote: > Hi there, > > i am struggling since quite a while to set-up a change-projection-on- > the-fly possibility for our website mapserver. But somehow, I don't > really have the clue how to do it. Now, making things "worse" (more > complicated for me) we have migrated from MySql to Postgres/Postgis. > > ------------------------------------------------------------------------ > ---- At least your spatial queries now have a chance of returning correct answers :-) The way I prefer to do this is to have the SQL thrown at Postgis do the conversion, so mapserver doesn't have to. Thus: select transform(the_geom, SRID) instead of select the_geom But that's probably just because I have a SQL/database background, so tend to do my work there. But it saves the wrestling with mapscript that you're going through :-) Cheers, Brent Wood > > So, first question would be: What code to use to change the > projection via PHP/Mapscript, should be something like this, I guess: > > $newproj=ms_newprojectionObj("proj=robin,lon_0=0,x_0=0,y_0=0"); > $latlon=ms_newprojectionObj("+proj=longlat +ellps=WGS84 +datum=WGS84 > +no_defs"); > $oldext=ms_newRectObj(); > $oldext->setextent(-180,-90,180,90); //this is the extent of my map > in geographic > $oldext->project($latlon,$newproj); //reproject to Robinson > $map->setextent($oldext->minx,$oldext->miny,$oldext->maxx,$oldext- > >maxy); //set the new map extent > > But I guess, something is still missing... (What about $map- > >setProjection ?) > > ------------------------------------------------------------------------ > ---- > > And the second question is: As my mapfile queries the postgis > database, using "SRID", I guess I need to change that one too, then? > Instead of 4326 for Geographic I would have to use the one for > Robinson (or Mollweide or so) ?? > > ------------------------------------------------------------------------ > ---- > > Thanks for giving me any hints... > > Stef > From mschulz at WEBGIS.DE Fri Apr 20 03:36:55 2007 From: mschulz at WEBGIS.DE (Michael Schulz) Date: Fri, 20 Apr 2007 12:36:55 +0200 Subject: Change Projection on-the-fly; Using PostGIS - How? In-Reply-To: Message-ID: Hi Stef, > So, first question would be: What code to use to change the > projection via PHP/Mapscript, should be something like this, I guess: > > $newproj=ms_newprojectionObj("proj=robin,lon_0=0,x_0=0,y_0=0"); > $latlon=ms_newprojectionObj("+proj=longlat +ellps=WGS84 +datum=WGS84 > +no_defs"); > $oldext=ms_newRectObj(); > $oldext->setextent(-180,-90,180,90); //this is the extent of my map > in geographic > $oldext->project($latlon,$newproj); //reproject to Robinson > $map->setextent($oldext->minx,$oldext->miny,$oldext->maxx,$oldext- > >maxy); //set the new map extent > > But I guess, something is still missing... (What about $map- > >setProjection ?) I'd say you will have to set the projection of the returned map. That is the projection obj from your mapObj. As you mentioned, there is the setProjection method: setProjection( string proj4 ) : int - Set map projection from PROJ.4 definition string proj4. I'm not sure, but it may be crucial to set the projection of your map before setting a new projectet extent. > And the second question is: As my mapfile queries the postgis > database, using "SRID", I guess I need to change that one too, then? > Instead of 4326 for Geographic I would have to use the one for > Robinson (or Mollweide or so) ?? I don't think so, since the data of your layer in PostGIS is in 4326, your layer projection will also remain 4326. On-the-fly projection implies that the projection takes place between the layer projections to the resulting map projection. Cheers, Michael -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 79108 Freiburg Tel +49 (0)761 556959-5 Fax +49 (0)761 556959-6 http://www.webgis.de / http://www.zopecms.de ----------------------------------------------------------- From yjacolin at FREE.FR Fri Apr 20 04:52:16 2007 From: yjacolin at FREE.FR (Yves Jacolin) Date: Fri, 20 Apr 2007 13:52:16 +0200 Subject: Bug ? : GetCapabilites Message-ID: Hi, Somebody in a french forum got an error with mapserver. I tested it with mapserv 4.10.1. The problem come from this line in the mapfile : "wms_contactelectronicmailaddress" "email at domainname.fr" the GetCapabilities, send this : [..] email at domainname.fr As you can see, the closed tag does not appear. Is it a known bug ? Thanks in advance. Y. -- Yves Jacolin --- http://yjacolin.gloobe.org From yjacolin at FREE.FR Fri Apr 20 05:06:29 2007 From: yjacolin at FREE.FR (Yves Jacolin) Date: Fri, 20 Apr 2007 14:06:29 +0200 Subject: Bug ? : GetCapabilites In-Reply-To: <200704201352.16260.yjacolin@free.fr> Message-ID: Hi again, You can test it here : http://sigformation.gers.cci.fr/cgi-bin/grisi?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities Y. PS : this link is published with the agreement of the developer. Le Vendredi 20 Avril 2007 13:52, Yves Jacolin a ?crit?: > Hi, > > Somebody in a french forum got an error with mapserver. I tested it with > mapserv 4.10.1. The problem come from this line in the mapfile : > "wms_contactelectronicmailaddress" "email at domainname.fr" > > the GetCapabilities, send this : > > [..] > > email at domainname.frress> > > As you can see, the closed tag does not appear. Is it > a known bug ? > > Thanks in advance. > > Y. -- Yves Jacolin --- http://yjacolin.gloobe.org From warmerdam at POBOX.COM Fri Apr 20 05:31:18 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 20 Apr 2007 08:31:18 -0400 Subject: Bug ? : GetCapabilites In-Reply-To: <200704201352.16260.yjacolin@free.fr> Message-ID: Yves Jacolin wrote: > Hi, > > Somebody in a french forum got an error with mapserver. I tested it with > mapserv 4.10.1. The problem come from this line in the mapfile : > "wms_contactelectronicmailaddress" "email at domainname.fr" > > the GetCapabilities, send this : > > [..] > > email at domainname.fr > > > As you can see, the closed tag does not appear. Is it a > known bug ? Yves, It looks like this is still a bug in the dev version as well. Reading the code I believe you can work around this problem by supplying either the "contactperson" or "contactorganization" metadata as well which causes a slightly different code path to be used. I imagine this is why this hasn't already been commented on. Please file a bug on this I'm sure Assefa, Tom or someone will fix the code. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From yjacolin at FREE.FR Fri Apr 20 05:39:53 2007 From: yjacolin at FREE.FR (Yves Jacolin) Date: Fri, 20 Apr 2007 14:39:53 +0200 Subject: Bug ? : GetCapabilites In-Reply-To: <4628B296.4030800@pobox.com> Message-ID: Le Vendredi 20 Avril 2007 14:31, Frank Warmerdam a ?crit?: > Yves Jacolin wrote: > > Hi, > > > > Somebody in a french forum got an error with mapserver. I tested it with > > mapserv 4.10.1. The problem come from this line in the mapfile : > > "wms_contactelectronicmailaddress" "email at domainname.fr" > > > > the GetCapabilities, send this : > > > > [..] > > > > email at domainname.fr >ddress> > > > > As you can see, the closed tag does not appear. Is > > it a known bug ? > > Yves, > > It looks like this is still a bug in the dev version as well. Reading the > code I believe you can work around this problem by supplying either the > "contactperson" or "contactorganization" metadata as well which causes a > slightly different code path to be used. I imagine this is why this hasn't > already been commented on. > > Please file a bug on this I'm sure Assefa, Tom or someone will fix the > code. > > Best regards, Hi, Thanks, I will create the reports as soon as possible. Y. -- Yves Jacolin --- http://yjacolin.gloobe.org From warmerdam at POBOX.COM Fri Apr 20 06:16:21 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 20 Apr 2007 09:16:21 -0400 Subject: MS4W: Queries on classified rasters In-Reply-To: <84dc6a150704200137k3cdeb2dblf4af8d55d882318d@mail.gmail.com> Message-ID: Marco Cerruti wrote: > Hi all, > I'm a new user of Mapserver. I'm working with MS4W (version 2.2.3) via > CGI and I'm having troubles with queries on classified rasters. Queries > on non-classified rasters work fine, while in cases of classified ones > (already tried several formats: img, bil, tif, png) I get the following > error: > > msDrawShape(): General error message. Unknown layer type. > > If I comment CLASS definitions the same query shows me correct results > (one or more pixels queried, according to the set tolerance, but of > course no information on [class] value). > > I post an extract of my mapfile, with the definition of the raster layer > and one of its classes. Maybe I'm doing something wrong with class > template (and layer header/footer ...). > > Hoping to receive a little help ... and sorry for my English! Marco, I think this is a bug in mapserver. That I did not touch all the parts of the code I should have when implementing raster query support. Could you boil this down to a minimum test to demonstrate the problem and submit a bug report? If I can easily reproduce the problem with your test data, I'll try and fix it fairly promptly. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From cerruti.marco at GMAIL.COM Fri Apr 20 06:35:11 2007 From: cerruti.marco at GMAIL.COM (Marco Cerruti) Date: Fri, 20 Apr 2007 15:35:11 +0200 Subject: MS4W: Queries on classified rasters In-Reply-To: <4628BD25.6020907@pobox.com> Message-ID: Frank, thanks for your answer, actually I'm moving this "my-first-MapServer" to a public host, in order to test it and then make it accessible to a (some) possible end-user(s). Query on classified rasters was the last thing to fix, so, as it can't be fixed now, I hope to put everything online in few days, with contents of mapfile and templates accessible to visitors. Besides this, tell me what else should I do to let you reproduce the same problem. ... and thanks again! M 2007/4/20, Frank Warmerdam : > > Marco Cerruti wrote: > > Hi all, > > I'm a new user of Mapserver. I'm working with MS4W (version 2.2.3) via > > CGI and I'm having troubles with queries on classified rasters. Queries > > on non-classified rasters work fine, while in cases of classified ones > > (already tried several formats: img, bil, tif, png) I get the following > > error: > > > > msDrawShape(): General error message. Unknown layer type. > > > > If I comment CLASS definitions the same query shows me correct results > > (one or more pixels queried, according to the set tolerance, but of > > course no information on [class] value). > > > > I post an extract of my mapfile, with the definition of the raster layer > > and one of its classes. Maybe I'm doing something wrong with class > > template (and layer header/footer ...). > > > > Hoping to receive a little help ... and sorry for my English! > > Marco, > > I think this is a bug in mapserver. That I did not touch all the > parts of the code I should have when implementing raster query support. > > Could you boil this down to a minimum test to demonstrate the problem > and submit a bug report? If I can easily reproduce the problem with > your test data, I'll try and fix it fairly promptly. > > Best regards, > -- > > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGeo, http://osgeo.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Fri Apr 20 07:00:07 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 20 Apr 2007 10:00:07 -0400 Subject: MS4W: Queries on classified rasters In-Reply-To: <84dc6a150704200635l330089b4n8953c73577270ffd@mail.gmail.com> Message-ID: Marco Cerruti wrote: > Besides this, tell me what else should I do to let you reproduce the > same problem. Marco, I am looking for a bug report with: o A minimal map file that can be used to reproduce the problem. Strip out all other layers, fontlists, etc not required to reproduce the problem. o If the raster file is large, cut out a small chunk and submit this small dataset with the bug report in stead of a large file. o The bug report should have the exact url triggering the problem, assuming that the problem with was mapserv.exe, not a mapscript script. o Make clear how I will know the errors is occuring (presumably the error message from msDrawShape()). The objective is to give me something I can unzip, and then run mapserv at the commandline with to reproduce the error with at most a minute or two of fiddling to adjust things to my local environment. Most bugs languish on the vine because reproducing the original problem is too hard (or even just *seems* like it might be too hard). Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From bfraser at GEOANALYTIC.COM Fri Apr 20 08:02:02 2007 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Fri, 20 Apr 2007 09:02:02 -0600 Subject: Use of different epsg code Message-ID: Antonio, See comments inserted below... Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Antonio" To: "Brent Fraser" Cc: Sent: Friday, April 20, 2007 3:02 AM Subject: Re: [UMN_MAPSERVER-USERS] Use of different epsg code > Thanks Brent, > I start to see a bit of light. > So I tried to change units in meters but there is always something not > clear. > > I have : > MAP > NAME ASTRO > STATUS ON > EXTENT -18000000 -9000000 18000000 9000000 > UNITS meters > TRANSPARENT ON > SHAPEPATH "G:/GalexData/TestPoint" > CONFIG "PROJ_LIB" "E:/ms4w/proj/nad/" > > PROJECTION > "init=epsg:54009" # Mollweide > END > > and at the layer level If I define epsg:54009 with MAXARC=1 and > MAXINTERVAL=1500000 the graticule is just rectangular grid. > If I define epsg:4326 with MAXARC=1 and MAXINTERVAL=15 I can see the > whole mollweide sphere. Good, that works as expected. > My application use astronomic data then my shape files data are in sky > coordinates ( somenthing like Lon and Lat) . > If I draw using mapserver one of this shape (see LAYER "TestPoints") , > the objects go in the right position in the Mollweide projection , the > only thing is that the grid and the data are not using the same projection. In the LAYER object, the PROJECTION object refers to the coordinate system of the input data described in the LAYER object (for example, your data files, or the line segments generated by the GRID object). The PROJECTION object for the MAP object determines the coordinate system of the output data (the graphic displayed in the browser). Each LAYER can have a different PROJECTION definition, and if they are different from the MAP object's PROJECTION Mapserver will do the map projection calaculation on-the-fly (every time it creates the output graphic) to convert all the input data to the output coordinate system. This is one of best features of Mapserver. For Mapserver to put all the data in the right place when it generates the output graphic, you must correctly define the coordinate system of the input data in the Map file's LAYER objects (whoever created the data must tell you which coordinate system it's in). The choice of the output coordinate system (in the MAP object) is entirely up to you. > I tried to use Aitoff projection too. > There isn't an epsg code for that, so I inserted one with an unused id . There's no point in doing that (EPSG is the organization that defines the codes). Instead use the Proj4 method of defining the coordinate system: PROJECTION "proj=aitoff" "lon_0=00d" END > But here too , in the layer definition I have to use epsg:4326 to plot > the points in the Aitoff projection but I am not able to draw the grid > sphere. > Your LAYER definitions below and the MAP definition above are ok. The only change I would suggest is to set MAXARCS 10 or comment it out and use MAXINTERVAL 30. > > > LAYER > NAME "Grid" > METADATA > "DESCRIPTION" "Grid" > END > TYPE LINE > STATUS OFF > CLASS > NAME "Graticule" > COLOR 123 123 123 > END > PROJECTION > "init=epsg:4326" > #"init=epsg:54009" # Mollweide > END > GRID > MAXARCS 2 > # MAXINTERVAL 15000000 > > END > > LAYER > NAME "TestPoints" > TYPE POLYGON > STATUS ON > > DATA "TestPoints" > PROJECTION > "init=epsg:4326" > END > > LABELITEM 'tilename' > DUMP true > > CLASS > NAME "TestPoint" > STYLE > SIZE 2 > OUTLINECOLOR 123 123 123 > COLOR 0 0 255 > END > LABEL > MINFEATURESIZE 200 > END > > END > > METADATA > GML_INCLUDE_ITEMS "tilename,survey,ra,dec,nuvexptime,fuvexptime" > WMS_SERVER_VERSION "1.1.1" > WMS_FORMAT "image/png" > WMS_TITLE "Galex AIS Survey" > WMS_ABSTRACT "SDSS DR3 imaging level 0" > WMS_SRS "EPSG:54009" > WMS_NAME "TestPoint" > #WMS_FORCE_SEPARATE_REQUEST "0" > END > > > END From jlacroix at MAPGEARS.COM Fri Apr 20 08:56:41 2007 From: jlacroix at MAPGEARS.COM (Julien-Samuel Lacroix) Date: Fri, 20 Apr 2007 11:56:41 -0400 Subject: Change Projection on-the-fly; Using PostGIS - How? In-Reply-To: <899298.36321.qm@web33201.mail.mud.yahoo.com> Message-ID: Hi, You'll have to set the projection of all your layers in the mapfile. This why changing the projection of the map object won't affect them. Then you'll be able to use: $map->setProjection("proj=robin,lon_0=0,x_0=0,y_0=0", MS_TRUE); For the PostGIS SRID, you don't have to change anything if you set the PROJECTION in your layer. Julien Brent Wood wrote: > --- Stefan Schwarzer wrote: > > >>Hi there, >> >>i am struggling since quite a while to set-up a change-projection-on- >>the-fly possibility for our website mapserver. But somehow, I don't >>really have the clue how to do it. Now, making things "worse" (more >>complicated for me) we have migrated from MySql to Postgres/Postgis. >> >>------------------------------------------------------------------------ >>---- > > > > At least your spatial queries now have a chance of returning correct answers > :-) > > The way I prefer to do this is to have the SQL thrown at Postgis do the > conversion, so mapserver doesn't have to. Thus: > select transform(the_geom, SRID) > instead of > select the_geom > > But that's probably just because I have a SQL/database background, so tend to > do my work there. But it saves the wrestling with mapscript that you're going > through :-) > > > Cheers, > > Brent Wood > > >>So, first question would be: What code to use to change the >>projection via PHP/Mapscript, should be something like this, I guess: >> >>$newproj=ms_newprojectionObj("proj=robin,lon_0=0,x_0=0,y_0=0"); >>$latlon=ms_newprojectionObj("+proj=longlat +ellps=WGS84 +datum=WGS84 >>+no_defs"); >>$oldext=ms_newRectObj(); >>$oldext->setextent(-180,-90,180,90); //this is the extent of my map >>in geographic >>$oldext->project($latlon,$newproj); //reproject to Robinson >>$map->setextent($oldext->minx,$oldext->miny,$oldext->maxx,$oldext- >> >maxy); //set the new map extent >> >>But I guess, something is still missing... (What about $map- >> >setProjection ?) >> >>------------------------------------------------------------------------ >>---- >> >>And the second question is: As my mapfile queries the postgis >>database, using "SRID", I guess I need to change that one too, then? >>Instead of 4326 for Geographic I would have to use the one for >>Robinson (or Mollweide or so) ?? >> >>------------------------------------------------------------------------ >>---- >> >>Thanks for giving me any hints... >> >>Stef >> -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From hartpence_gis at CO.JASPER.IA.US Fri Apr 20 09:33:16 2007 From: hartpence_gis at CO.JASPER.IA.US (Lawrence Hartpence) Date: Fri, 20 Apr 2007 11:33:16 -0500 Subject: CGI Post Query Results in Separate Window Message-ID: Hello. Is it possible in the CGI environment to post results of a query in separate window from the map? Thanks! Lawrence From gregor at HOSTGIS.COM Fri Apr 20 09:42:28 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Fri, 20 Apr 2007 10:42:28 -0600 Subject: CGI Post Query Results in Separate Window In-Reply-To: Message-ID: > Is it possible in the CGI environment to post results of a query in > separate window from the map? That's kinda more of a HTML question than a Mapserver question, if I understand it. Or maybe it's that my answer is more of a HTML answer than a Mapserver answer... :) On the purely Mapserver server end, it's not the server's job to know what you're doing with the info, e.g. frames and all. So you hafta do it on the HTML side. The way we handle it is with frames or iframes. We have a frame for showing query results, and some JavaScript that says "on mouse click, figure up the query URL and open that URL in this other frame" If you already have click-queries working, you may get by with just adding a "target=" attribute to the link. -- HostGIS Cartographic development and hosting services 707-822-9355 http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From jmckenna at DMSOLUTIONS.CA Fri Apr 20 10:40:28 2007 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Fri, 20 Apr 2007 13:40:28 -0400 Subject: MS4W: Queries on classified rasters In-Reply-To: <84dc6a150704200137k3cdeb2dblf4af8d55d882318d@mail.gmail.com> Message-ID: I also did a quick test of a raster query, with MapServer CGI, with the raster classed or not classed, and i get this error: mapserv(): Web application error. No way to generate a valid map extent from selected shapes. which was reported earlier: http://www.nabble.com/Raster-query-gives-error-tf2008561.html#a5517894 Please file the bug as requested by Frank. jeff Marco Cerruti wrote: > Hi all, > I'm a new user of Mapserver. I'm working with MS4W (version 2.2.3) via > CGI and I'm having troubles with queries on classified rasters. Queries > on non-classified rasters work fine, while in cases of classified ones > (already tried several formats: img, bil, tif, png) I get the following > error: > > msDrawShape(): General error message. Unknown layer type. > > If I comment CLASS definitions the same query shows me correct results > (one or more pixels queried, according to the set tolerance, but of > course no information on [class] value). > > I post an extract of my mapfile, with the definition of the raster layer > and one of its classes. Maybe I'm doing something wrong with class > template (and layer header/footer ...). > > Hoping to receive a little help ... and sorry for my English! > > Marco (Italy) > > --- --- --- --- --- > > > > LAYER # Classificazione vegetazione 2000 > > NAME class_2000 > > DATA "2000/final_after_merging.bil" > > STATUS OFF > > TYPE RASTER > > OFFSITE 0 0 0 > > GROUP "Uso e copertura del suolo" > > TOLERANCE 0 > > TOLERANCEUNITS pixels > > PROJECTION > > "init=epsg:4326" > > END > > METADATA > > TITOLO "Classificazione vegetazione da satellite - Anno 2000" > > ORDINE "0044" > > END > > HEADER "class2000_header.html" > > FOOTER "class2000_footer.html" > > CLASSITEM "[pixel]" > > CLASS > > NAME "Latifoglie (pure o dominanti)" > > EXPRESSION ([pixel] = 2) > > STYLE > > COLOR 0 255 0 > > END > > TEMPLATE "class_query.html" > > END > > END # Fine raster classificazione vegetazione 2000 > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From hartpence_gis at CO.JASPER.IA.US Fri Apr 20 12:26:47 2007 From: hartpence_gis at CO.JASPER.IA.US (Lawrence Hartpence) Date: Fri, 20 Apr 2007 14:26:47 -0500 Subject: Expression that detects patterns Message-ID: Hello. I want to perform an ItemQuery that will find a certain string subset whether it appears at the beginning, end or middle. I thought it was something like this: ('[SUB]' =~ /'[string]'/). I thought this was how you looked for a goroup of letters, but MapServer thinks that [string] is an item. I used this expression with some success: ('[SUB]' =~ /'.string.'/), but this does not give me anything that starts or ends with the string; only cases where the string is in the middle. Any help in how to do this would be appreciated. Lawrence Hartpence From yjacolin at FREE.FR Fri Apr 20 13:07:49 2007 From: yjacolin at FREE.FR (Yves Jacolin) Date: Fri, 20 Apr 2007 22:07:49 +0200 Subject: FYI - quick info cards uploaded to OSGEO-Wiki In-Reply-To: Message-ID: Hi, I am not the author of this flyer. I just attempt to translate it in french (this week end I hope). The author is Eduardo Patto Kanegae which is on the list (CC'ed). Regards, Y. Le Vendredi 20 Avril 2007 21:12, Schlagel, Joel D ERDC-CRREL-NH a ?crit?: > Yves, very nice job on the MapServer flyer - > > I'm not sure if you are the proper contact for this. Please pass on if you > can. > I wanted to point out a grammatical error: > > Under "History" there is a sentence. > > "Companies such as Autodesk? and DM Solutions are COMPROMISED with OSGEO > goals. > > I'm not sure what exactly is meant here. > It could be > > Companies such as Autodesk? and DM Solutions are COMMITTED to OSGEO goals > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Yves Jacolin > Sent: Thursday, April 19, 2007 4:34 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] FYI - quick info cards uploaded to > OSGEO-Wiki > > Le Jeudi 19 Avril 2007 04:49, Eduardo Patto Kanegae a ?crit?: > > I've just sent 2 PDF quick info cards of MapServer at OSGEO Wiki: > > - http://wiki.osgeo.org/images/1/16/MapServer-flyer-en.pdf > > - http://wiki.osgeo.org/images/f/f7/MapServer-flyer-pt_BR.pdf ( in > > portuguese) > > > > best > > Hi, > > Great jobs! > > I will be interesting to translate it. Is it possible to get the original > file for translation (in french)? > > Thanks, > > Y. > -- > Yves Jacolin > --- > http://yjacolin.gloobe.org -- Yves Jacolin ------------- http://yjacolin.gloobe.org http://softlibre.gloobe.org From cerruti.marco at GMAIL.COM Fri Apr 20 13:18:02 2007 From: cerruti.marco at GMAIL.COM (Marco Cerruti) Date: Fri, 20 Apr 2007 22:18:02 +0200 Subject: MS4W: Queries on classified rasters In-Reply-To: <84dc6a150704200746y6f817ee9s75dfcc70a8b3e41@mail.gmail.com> Message-ID: My mistake, I replied only to Frank. So here is everything (hopefully) you need to test the bug. M ---------- Forwarded message ---------- From: Marco Cerruti Date: 20-apr-2007 16.46 Subject: Re: [UMN_MAPSERVER-USERS] MS4W: Queries on classified rasters To: Frank Warmerdam So ... here's the link to download the zip file: http://www.marcocerruti.it/MS4W_test.zip In the zip there are: - minimal mapfile (only two classified raster layers presenting the problem) - raster data (a couple of mbytes) - query templates (problem is on queries, I think you need them) - map template, html legend template, and a few of necessary files to let everything properly work (css, images, scripts) URL triggering the problem: [yourlocalhost]/cgi-bin/mapserv.exe?map=/ms4w/apps/valgrande_test/vg.map&layer=dem&layer=class_2000&mode=browse Just select query mode (question mark) and try to query these two layers. Bug reported: In querying classified raster layers the following error occurs: *msDrawShape(): General error message. Unknown layer type.* The same error does not occur if raster layers are not classified. Thanks in advance, Marco 2007/4/20, Frank Warmerdam : > > Marco Cerruti wrote: > > Besides this, tell me what else should I do to let you reproduce the > > same problem. > > Marco, > > I am looking for a bug report with: > > o A minimal map file that can be used to reproduce the problem. Strip out > all other layers, fontlists, etc not required to reproduce the problem. > o If the raster file is large, cut out a small chunk and submit this small > dataset with the bug report in stead of a large file. > o The bug report should have the exact url triggering the problem, > assuming > that the problem with was mapserv.exe, not a mapscript script. > o Make clear how I will know the errors is occuring (presumably the error > message from msDrawShape()). > > The objective is to give me something I can unzip, and then run mapserv > at the commandline with to reproduce the error with at most a minute or > two of fiddling to adjust things to my local environment. > > Most bugs languish on the vine because reproducing the original problem is > too hard (or even just *seems* like it might be too hard). > > Best regards, > -- > > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGeo, http://osgeo.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdege at KORTERRA.COM Fri Apr 20 15:02:55 2007 From: jdege at KORTERRA.COM (Jeff Dege) Date: Fri, 20 Apr 2007 17:02:55 -0500 Subject: Attributes in tile indexes? Message-ID: I have a shape file that's too big to draw maps with - takes far too long. In an attempt to speed things up, I split it into 16 smaller shapefiles, using: ogr2ogr -f "ESRI Shapefile" -spat xmin ymin xmax ymax newXX.shp old.shp Then did a shptree on each of these new files, then a shptinidex to create a single tile index shapefile on them, and tried to build a map. It works fine, so long as I don't try to display labels. But if I do, I get errors: msDBFGetItemIndex(): Item 'NAME' not found. Where "NAME" is the attribute I'm trying to use for the label. It looks like the tileindex shapefile doesn't expose the attributes of the underlying shape tiles. I've done an ogrinfo on the shapefiles that I'd generated, and the attributes are there. Can I expose the attributes through the tileindex? How? From epk.lists at GMAIL.COM Fri Apr 20 17:07:11 2007 From: epk.lists at GMAIL.COM (Eduardo Patto Kanegae) Date: Fri, 20 Apr 2007 21:07:11 -0300 Subject: FYI - quick info cards uploaded to OSGEO-Wiki In-Reply-To: <200704202207.50080.yjacolin@free.fr> Message-ID: Thanks Schlagel for the alert. In fact, I was waiting to discover more errors :-) I already fixed it: http://wiki.osgeo.org/index.php/Image:MapServer-flyer-en.pdf best -- Eduardo Patto Kanegae On 4/20/07, Yves Jacolin wrote: > > Hi, > > I am not the author of this flyer. I just attempt to translate it in > french > (this week end I hope). The author is Eduardo Patto Kanegae which is on > the > list (CC'ed). > Regards, > > Y. > Le Vendredi 20 Avril 2007 21:12, Schlagel, Joel D ERDC-CRREL-NH a ?crit: > > Yves, very nice job on the MapServer flyer - > > > > I'm not sure if you are the proper contact for this. Please pass on if > you > > can. > > I wanted to point out a grammatical error: > > > > Under "History" there is a sentence. > > > > "Companies such as Autodesk(r) and DM Solutions are COMPROMISED with OSGEO > > goals. > > > > I'm not sure what exactly is meant here. > > It could be > > > > Companies such as Autodesk(r) and DM Solutions are COMMITTED to OSGEO > goals > > > > > > -----Original Message----- > > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > > Behalf Of Yves Jacolin > > Sent: Thursday, April 19, 2007 4:34 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] FYI - quick info cards uploaded to > > OSGEO-Wiki > > > > Le Jeudi 19 Avril 2007 04:49, Eduardo Patto Kanegae a ?crit: > > > I've just sent 2 PDF quick info cards of MapServer at OSGEO Wiki: > > > - http://wiki.osgeo.org/images/1/16/MapServer-flyer-en.pdf > > > - http://wiki.osgeo.org/images/f/f7/MapServer-flyer-pt_BR.pdf ( in > > > portuguese) > > > > > > best > > > > Hi, > > > > Great jobs! > > > > I will be interesting to translate it. Is it possible to get the > original > > file for translation (in french)? > > > > Thanks, > > > > Y. > > -- > > Yves Jacolin > > --- > > http://yjacolin.gloobe.org > > -- > Yves Jacolin > ------------- > http://yjacolin.gloobe.org > http://softlibre.gloobe.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at EC.GC.CA Fri Apr 20 19:23:49 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 20 Apr 2007 22:23:49 -0400 Subject: Bug ? : GetCapabilites Message-ID: > Yves Jacolin wrote: > > Hi, > > > > Somebody in a french forum got an error with mapserver. I tested it > > with mapserv 4.10.1. The problem come from this line in the > mapfile : > > "wms_contactelectronicmailaddress" "email at domainname.fr" > > > > the GetCapabilities, send this : > > > > [..] > > > > > email at domainname.fr > ilAddress> > > > > > > As you can see, the closed tag does > not appear. > > Is it a known bug ? > > Yves, > > It looks like this is still a bug in the dev version as well. > Reading the code I believe you can work around this problem > by supplying either the "contactperson" or > "contactorganization" metadata as well which causes a > slightly different code path to be used. I imagine this is > why this hasn't already been commented on. > > Please file a bug on this I'm sure Assefa, Tom or someone > will fix the code. > Filed and accepted at http://trac.osgeo.org/mapserver/ticket/2070 ..Tom From gisaalter at GMAIL.COM Sat Apr 21 01:38:25 2007 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Sat, 21 Apr 2007 10:38:25 +0200 Subject: Color by attributes - postgis connection Message-ID: I have some trouble colouring by an attribute value i/c with a postgis connection. I want to colour the column cabuty by 3 unique values. For now I'm trying to make a layer like this: LAYER NAME "b_cabu_postgis" CONNECTIONTYPE postgis CONNECTION "host=localhost port=5432 dbname=globaalter user=postgres_db password=autodesk6.5" DATA "the_geom from b_cabu" STATUS ON TYPE POLYGON DUMP TRUE TEMPLATE "ttt" CLASSITEM "cabuty" CLASS EXPRESSION "CL" STYLE OUTLINECOLOR 0 0 255 END EXPRESSION "OO" STYLE OUTLINECOLOR 255 0 255 END END METADATA "wms_title" "gebouwen" "gml_include_items" "all" END PROJECTION "init=epsg:31300" END END Only the expression 'OO' is coloured, the objects corresponding with 'CL' in the cabuty are not showing up...what am I doing wrong ? Thanks for helping out ! Steven From gisaalter at GMAIL.COM Sat Apr 21 01:54:28 2007 From: gisaalter at GMAIL.COM (gisaalter) Date: Sat, 21 Apr 2007 01:54:28 -0700 Subject: Colour by attribute values - postgis connection Message-ID: I have some trouble colouring by an attribute value i/c with a postgis connection. I want to colour the column cabuty by 3 unique values. For now I'm trying to make a layer like this: LAYER NAME "b_cabu_postgis" CONNECTIONTYPE postgis CONNECTION "host=localhost port=5432 dbname=****** user=****** password=*******" DATA "the_geom from b_cabu" STATUS ON TYPE POLYGON DUMP TRUE TEMPLATE "ttt" CLASSITEM "cabuty" CLASS EXPRESSION "CL" STYLE OUTLINECOLOR 0 0 255 END EXPRESSION "OO" STYLE OUTLINECOLOR 255 0 255 END END METADATA "wms_title" "gebouwen" "gml_include_items" "all" END PROJECTION "init=epsg:31300" END END Only the expression 'OO' is coloured, the objects corresponding with 'CL' in the cabuty are not showing up...what am I doing wrong ? Thanks for helping out ! Steven -- View this message in context: http://www.nabble.com/Colour-by-attribute-values---postgis-connection-tf3622318.html#a10115049 Sent from the Mapserver - User mailing list archive at Nabble.com. From bartvde at OSGIS.NL Sat Apr 21 02:29:38 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Sat, 21 Apr 2007 11:29:38 +0200 Subject: Colour by attribute values - postgis connection Message-ID: Hi Steven, you need to use separate classes, all with 1 expression, so: CLASS EXPRESSION "CL" STYLE OUTLINECOLOR 0 0 255 END END CLASS EXPRESSION "OO" STYLE OUTLINECOLOR 255 0 255 END END Hope this helps. Best regards, Bart I have some trouble colouring by an attribute value i/c with a postgis connection. I want to colour the column cabuty by 3 unique values. For now I'm trying to make a layer like this: LAYER NAME "b_cabu_postgis" CONNECTIONTYPE postgis CONNECTION "host=localhost port=5432 dbname=****** user=****** password=*******" DATA "the_geom from b_cabu" STATUS ON TYPE POLYGON DUMP TRUE TEMPLATE "ttt" CLASSITEM "cabuty" CLASS EXPRESSION "CL" STYLE OUTLINECOLOR 0 0 255 END EXPRESSION "OO" STYLE OUTLINECOLOR 255 0 255 END END METADATA "wms_title" "gebouwen" "gml_include_items" "all" END PROJECTION "init=epsg:31300" END END Only the expression 'OO' is coloured, the objects corresponding with 'CL' in the cabuty are not showing up...what am I doing wrong ? Thanks for helping out ! Steven -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From gisaalter at GMAIL.COM Sat Apr 21 03:02:50 2007 From: gisaalter at GMAIL.COM (gisaalter) Date: Sat, 21 Apr 2007 03:02:50 -0700 Subject: Colour by attribute values - postgis connection In-Reply-To: Message-ID: Working fine now :-) Thanks for your help Bart, seems like in the end you'll have built up my whole map-file :-) Highly appreciated. Thanks ! Steven Bart van den Eijnden (OSGIS)-2 wrote: > > > Hope this helps. > > Best regards, > Bart > > -- View this message in context: http://www.nabble.com/Colour-by-attribute-values---postgis-connection-tf3622318.html#a10115486 Sent from the Mapserver - User mailing list archive at Nabble.com. From yjacolin at FREE.FR Sat Apr 21 03:05:24 2007 From: yjacolin at FREE.FR (Yves Jacolin) Date: Sat, 21 Apr 2007 12:05:24 +0200 Subject: Bug ? : GetCapabilites In-Reply-To: <2576812186CDD411BF1500508B6DCE9511B30DD5@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Le Samedi 21 Avril 2007 04:23, Kralidis,Tom [Burlington] a ?crit?: > > [..] > > > > Yves, > > > > It looks like this is still a bug in the dev version as well. > > Reading the code I believe you can work around this problem > > by supplying either the "contactperson" or > > "contactorganization" metadata as well which causes a > > slightly different code path to be used. I imagine this is > > why this hasn't already been commented on. > > > > Please file a bug on this I'm sure Assefa, Tom or someone > > will fix the code. > > Filed and accepted at http://trac.osgeo.org/mapserver/ticket/2070 > > ..Tom Hi, Thanks Tom ! Y. -- Yves Jacolin ------------- http://yjacolin.gloobe.org http://softlibre.gloobe.org From woodbri at SWOODBRIDGE.COM Sat Apr 21 05:15:24 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 21 Apr 2007 07:15:24 -0500 Subject: Attributes in tile indexes? In-Reply-To: <34E056CD4D475841B8C9ABCE956F92F637090E@mrburns.KorOffice.local> Message-ID: Jeff, This should just work. There is nothing special you should have to do. I do it all the time with my mapfiles. I use shp2tile to break mine up but that should not make a difference. First I would try changing your layer to use just one of the smaller shape files without the tileindex and see if that works and that you can display the labels. You might also want to post info about what OS, version of mapserver, and the LAYER block in question. -Steve W Jeff Dege wrote: > I have a shape file that's too big to draw maps with - takes far too > long. > > In an attempt to speed things up, I split it into 16 smaller shapefiles, > using: > > ogr2ogr -f "ESRI Shapefile" -spat xmin ymin xmax ymax newXX.shp > old.shp > > Then did a shptree on each of these new files, then a shptinidex to > create a single tile index shapefile on them, and tried to build a map. > > It works fine, so long as I don't try to display labels. But if I do, I > get errors: > > msDBFGetItemIndex(): Item 'NAME' not found. > > Where "NAME" is the attribute I'm trying to use for the label. It looks > like the tileindex shapefile doesn't expose the attributes of the > underlying shape tiles. I've done an ogrinfo on the shapefiles that I'd > generated, and the attributes are there. > > Can I expose the attributes through the tileindex? > > How? From Steve.Lime at DNR.STATE.MN.US Sat Apr 21 06:56:32 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Sat, 21 Apr 2007 08:56:32 -0500 Subject: Expression that detects patterns Message-ID: That's a limitation in the logical expression handler. You can't use regex [...] notation in an embedded regex. You can if the regex is a stand-along. For example: CLASSITEM 'SUB' CLASS EXPRESSION /'[string]'/ END That said I think you might need a different regex (you don't need the qoutes either). If you want all features where item foo starts with bar you'd do: EXPRESSION /^bar/ If you want one where bar can be anywhere in foo use: EXPRESSION /bar/ Steve >>> Lawrence Hartpence 04/20/07 2:26 PM >>> Hello. I want to perform an ItemQuery that will find a certain string subset whether it appears at the beginning, end or middle. I thought it was something like this: ('[SUB]' =~ /'[string]'/). I thought this was how you looked for a goroup of letters, but MapServer thinks that [string] is an item. I used this expression with some success: ('[SUB]' =~ /'.string.'/), but this does not give me anything that starts or ends with the string; only cases where the string is in the middle. Any help in how to do this would be appreciated. Lawrence Hartpence From umberto.nicoletti at GMAIL.COM Sun Apr 22 02:22:19 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Sun, 22 Apr 2007 11:22:19 +0200 Subject: MapServer 4.10.1 Memory Leak still exists In-Reply-To: Message-ID: While working on another thing I have found the following leak in freeClass (mapfile.c, around line 2103) where not all styles are always freed: Original code: for(i=0;inumstyles;i++) /* LEAK: we should free MS_MAXSTYLES!!! */ Should be: for(i=0;i wrote: > Umberto, > > The data type is shape. The number of active layers depends on zoom level > however in the map file there is a total of 39 layer definitions, with between > 10 and 30 active at any one time. The queries are run only in one layer. > > I have done some more work on the system and improved the operation by > caching commonly used images. You can have a look at the application live if > you wish - it is an infant however running live (I note it is crashed at the > moment so must recycle app pool - which is in the process of being done). To > see it running visit http://www.exploroz.com/Places/Find/CaravanPark.asp? > ms=1 - The initial map is cached so use mouse and draw a box to run a query - > you will either see the crash message or a refined result set. > > The application is running on a Win 2003 server so no access to Linux tools. I > have been using the same .map file with the CGI interface for a few years and > never had problem at all. > I note that I can run the cgi mapserver process after the system has reported > the .net memory allocation error. A sample of the CGI interface using the > same .map file is as follows http://www.exploroz.com/cgi- > bin/MapServer/MapServ.exe?mode=browse&map=e:\\inetpub\\vs126169 > \\iMapPlot\\map\\ExplorOzBase.map&map_PointRef_feature=new&map_PointRef > _feature_points=153.5136%20-27.4211&map_PointRef_feature_text=Adder% > 20Rock&mapext=152.7636%20-28.1711%20154.2636%20- > 26.6711&themode=zoomin&MapLabel=Show%20Me%20-%20Adder%20Rock% > 20-27.4211%20153.5136 > > Any help would be appreciated. > > Regards > David Martin > From szekerest at GMAIL.COM Sun Apr 22 10:52:36 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Sun, 22 Apr 2007 19:52:36 +0200 Subject: MapServer 4.10.1 Memory Leak still exists In-Reply-To: Message-ID: David, Would you file a bug report and send your mapfile and shape data and the input data of the test you've executed? I will try to locate the problem then. With the information you have provided I'm not really sure whether the problem is related to the mapserver core, the C# interface or the ASP.NET execution environment. The bug submission page for mapserver is: http://trac.osgeo.org/mapserver/newticket As prowling in the code I've also found potential leakage issues like described at: http://trac.osgeo.org/mapserver/ticket/1545 and there are also some other bug reports related to the memory problems. Anyway it would be quite an useful to isolate the portion of the code causing this particular issue. Best regards, Tamas 2007/4/20, David Martin : > Umberto, > > The data type is shape. The number of active layers depends on zoom level > however in the map file there is a total of 39 layer definitions, with between > 10 and 30 active at any one time. The queries are run only in one layer. > > I have done some more work on the system and improved the operation by > caching commonly used images. You can have a look at the application live if > you wish - it is an infant however running live (I note it is crashed at the > moment so must recycle app pool - which is in the process of being done). To > see it running visit http://www.exploroz.com/Places/Find/CaravanPark.asp? > ms=1 - The initial map is cached so use mouse and draw a box to run a query - > you will either see the crash message or a refined result set. > > The application is running on a Win 2003 server so no access to Linux tools. I > have been using the same .map file with the CGI interface for a few years and > never had problem at all. > I note that I can run the cgi mapserver process after the system has reported > the .net memory allocation error. A sample of the CGI interface using the > same .map file is as follows http://www.exploroz.com/cgi- > bin/MapServer/MapServ.exe?mode=browse&map=e:\\inetpub\\vs126169 > \\iMapPlot\\map\\ExplorOzBase.map&map_PointRef_feature=new&map_PointRef > _feature_points=153.5136%20-27.4211&map_PointRef_feature_text=Adder% > 20Rock&mapext=152.7636%20-28.1711%20154.2636%20- > 26.6711&themode=zoomin&MapLabel=Show%20Me%20-%20Adder%20Rock% > 20-27.4211%20153.5136 > > Any help would be appreciated. > > Regards > David Martin > From nelson.little at TENIX.COM Sun Apr 22 19:39:32 2007 From: nelson.little at TENIX.COM (LITTLE Nelson) Date: Mon, 23 Apr 2007 12:39:32 +1000 Subject: Dynamic Layers? Message-ID: Hello, As part of my application I would like to create layers that are not based on shape files but are more dynamic in nature. For example I have a shape file of a building floor plan that contains unique identifiers, I then need to query an SQL server DB to pull out asset data which is related to those unique identifiers from the floor plan. How would I present that information as a 'dynamic layer' using MapServer? I'm not sure on how to tackle this problem so any ideas or suggestions would be well received. FYI I am using Java MapScript. Cheers, Nelson Disclaimer : The contents of this e-mail including any attachments are intended only for the person or entity to which this e-mail is addressed. If you are not, or believe you may not be, the intended recipient, please advise the sender immediately by return e-mail, delete this e-mail and destroy any copies. Tenix does not warrant nor guarantee that this email communication is free from errors, virus, interception or interference. From tahan.lumbantobing at GMAIL.COM Sun Apr 22 20:09:07 2007 From: tahan.lumbantobing at GMAIL.COM (Tahan Lumban Tobing) Date: Mon, 23 Apr 2007 10:09:07 +0700 Subject: VB.NET and MapServer Message-ID: Dear All, i'm VB.NET Programmer but new bee in MapServer. i want to know about more about MapServer and VB.NET programming. has anyone some experiences work with VB.NET and MapServer together/zusammen? thanks before. tahan tobing -------------- next part -------------- An HTML attachment was scrubbed... URL: From gisaalter at GMAIL.COM Mon Apr 23 00:50:46 2007 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Mon, 23 Apr 2007 09:50:46 +0200 Subject: What's the best OUTPUTFORMAT for ECW-files using WMS Message-ID: I have about 50 ECW-files which I like to serve via WMS. I'm using following OUTPUTFORMAT: OUTPUTFORMAT NAME PNG24 DRIVER "GD/PNG" MIMETYPE "image/png" EXTENSION PNG FORMATOPTION "INTERLACE=OFF" IMAGEMODE RGBA TRANSPARENT ON END Image quality is good, but the performance is not what I'd like it to be. Can anyone help me adjusting these parameters ? thanks Steven From bartvde at OSGIS.NL Mon Apr 23 00:56:00 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Mon, 23 Apr 2007 09:56:00 +0200 Subject: What's the best OUTPUTFORMAT for ECW-files using WMS Message-ID: If your layers are only backgrounds and don't need transparency, I would suggest JPEG. If you need more than 256 colours and transparency, you will need PNG24 like you are using now but the images get pretty big unfortunately, which is a disadvantage. Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Steven De Vriendt Naar: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] What's the best OUTPUTFORMAT for ECW-files using WMS Datum: 23/04/07 05:52 > I have about 50 ECW-files which I like > to serve via WMS. > > I'm using following OUTPUTFORMAT: > > OUTPUTFORMAT > NAME PNG24 > DRIVER "GD/PNG" > MIMETYPE "image/png" > EXTENSION PNG > FORMATOPTION "INTERLACE=OFF" > IMAGEMODE RGBA > TRANSPARENT ON > END > > Image quality is good, but the performance is not what I'd like it to be. > Can anyone help me adjusting these parameters ? > > thanks > Steven > > From gisaalter at GMAIL.COM Mon Apr 23 01:25:25 2007 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Mon, 23 Apr 2007 10:25:25 +0200 Subject: What's the best OUTPUTFORMAT for ECW-files using WMS In-Reply-To: <0f9cda257180739f4e2032083c4a5800@145.50.39.11> Message-ID: Thanks Bart, I've tried using JPEG but I'm losing a lot of quality on my images. The files I'd like to serve are aerial images and I'd love to keep the quality as good as I can. Seems like I'll have to pick quality above performance. Thanks for your advice ! Steven On 4/23/07, Bart van den Eijnden (OSGIS) wrote: > If your layers are only backgrounds and don't need transparency, I would > suggest JPEG. > > If you need more than 256 colours and transparency, you will need PNG24 like > you are using now but the images get pretty big unfortunately, which is a > disadvantage. > > Best regards, > Bart > > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > > > --------- Oorspronkelijk bericht -------- > Van: Steven De Vriendt > Naar: MAPSERVER-USERS at LISTS.UMN.EDU > Onderwerp: [UMN_MAPSERVER-USERS] What's the best OUTPUTFORMAT for ECW-files > using WMS > Datum: 23/04/07 05:52 > > > I have about 50 ECW-files which I like > > to serve via WMS. > > > > I'm using following OUTPUTFORMAT: > > > > OUTPUTFORMAT > > NAME PNG24 > > DRIVER "GD/PNG" > > MIMETYPE "image/png" > > EXTENSION PNG > > FORMATOPTION "INTERLACE=OFF" > > IMAGEMODE RGBA > > TRANSPARENT ON > > END > > > > Image quality is good, but the performance is not what I'd like it to be. > > Can anyone help me adjusting these parameters ? > > > > thanks > > Steven > > > > > > > > From szekerest at GMAIL.COM Mon Apr 23 02:05:00 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Mon, 23 Apr 2007 11:05:00 +0200 Subject: VB.NET and MapServer In-Reply-To: Message-ID: You can use the mapscript C# interface for this purpose. (We should possibly rename it to mapscript.NET to express the welcome to the users of the other .NET compatible languages). The ms4w installer contains the required binaries. You might add a reference to the mapscript_csharp.dll in order to use the class library provided by this interface. The primary documentation of the class library can be found at: http://mapserver.gis.umn.edu/docs/reference/mapscript For some additional information related to the C# interface take a look at: http://mapserver.gis.umn.edu/docs/howto/mapscriptcscompile Some c# examples can be found at the mapscript/csharp/examples directory in the mapserver source tree. I recall that some of the folks are using VB.NET to implement their application I can look after the email addresses if you would like to contact them directly. Best regards, Tamas 2007/4/23, Tahan Lumban Tobing : > Dear All, > > i'm VB.NET Programmer but new bee in MapServer. i want to know about more > about MapServer and VB.NET programming. > has anyone some experiences work with VB.NET and MapServer > together/zusammen? > > thanks before. > > tahan tobing > From richard.greenwood at GMAIL.COM Mon Apr 23 04:44:37 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Mon, 23 Apr 2007 05:44:37 -0600 Subject: What's the best OUTPUTFORMAT for ECW-files using WMS In-Reply-To: <8d2ea9d70704230050v33813bfcgf86bfbd9ca0dc17a@mail.gmail.com> Message-ID: On 4/23/07, Steven De Vriendt wrote: > I have about 50 ECW-files which I like > to serve via WMS. > > I'm using following OUTPUTFORMAT: > > OUTPUTFORMAT > NAME PNG24 > DRIVER "GD/PNG" > MIMETYPE "image/png" > EXTENSION PNG > FORMATOPTION "INTERLACE=OFF" > IMAGEMODE RGBA > TRANSPARENT ON > END > > Image quality is good, but the performance is not what I'd like it to be. > Can anyone help me adjusting these parameters ? > > thanks > Steven It may not be your output format that is slowing things down. I found the ECW source format to be much slower than TIFF. I also found 8 bit TIFFs to be faster than 24 bit TIFFs. Remember to create overviews if you use TIFFs. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From Kristian.Thy at ATKINSGLOBAL.COM Mon Apr 23 05:10:13 2007 From: Kristian.Thy at ATKINSGLOBAL.COM (Thy, Kristian) Date: Mon, 23 Apr 2007 14:10:13 +0200 Subject: What's the best OUTPUTFORMAT for ECW-files using WMS Message-ID: From: Richard Greenwood > It may not be your output format that is slowing things down. I found > the ECW source format to be much slower than TIFF. Interesting, as that contradicts the findings in http://www.agile2006.hu/papers/a382.pdf . Do you have any empirical data for your case - I would be extremely interested in any sort of input on this. best regards, Kristian Thy PS: Sorry about the HTML and the stupid disclaimer below. This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. The ultimate parent company of the Atkins Group is WS Atkins plc. Registered in England No. 1885586. Registered Office Woodcote Grove, Ashley Road, Epsom, Surrey KT18 5BW. Consider the environment. Please don't print this e-mail unless you really need to. -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at GMAIL.COM Mon Apr 23 06:54:55 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Mon, 23 Apr 2007 07:54:55 -0600 Subject: What's the best OUTPUTFORMAT for ECW-files using WMS In-Reply-To: Message-ID: On 4/23/07, Thy, Kristian wrote: > > > > From: Richard Greenwood > > It may not be your output format that is slowing things down. I found > > the ECW source format to be much slower than TIFF. > > Interesting, as that contradicts the findings in > http://www.agile2006.hu/papers/a382.pdf. Do you have any > empirical > data for your case - I would be extremely interested in any sort of > input on this. > > best regards, > Kristian Thy I do not have a record of my results, but in any case, it is best to test in your own environment whenever possible. Both the input and output format effect the performance of your mapserver. The input and output formats are pretty much independent of one another, but they are effected by the type of source and output image types that you are reading and writing (greyscale, 24 bit color, 8 bit color). I tested on two different Windows machines, one with a SCSI RAID and a 1GHz processor, the other with a SATA drive and a 3GHz processor. It was a few years ago, so probably MapServer version ~4.6. My recollection was that the TIFF was markedly faster (maybe >2x). My image set is 24 bit color, 1 foot ortho-pixel. About 25GB uncompressed w/o overviews. I tested ECW (which always returns a 24 bit image), 24 bit TIFF and 8 bit TIFF, with 8 bit TIFF by far the fastest, and 24 bit TIFF faster than ECW. I used Photoshop to create an optimized 8 bit palette, although there a a number of other programs than can do an equally nice job. If you are using an 8 bit OUTPUT format, and you have colored vector layers also in your map, you may want to restrict your 8 bit image palette to less than 256 colors. This leaves some slots open in the output palette for your vectors. If you have a slow disk drive and a fast processor, I suppose that the reduced file size of the ECW might make the ECW format faster than TIFF. Also, if you do not have overviews (pyramids) the TIFF will likely be slower. It is also possible that the ECW driver is now faster than the one I was using when I did my tests. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From warmerdam at POBOX.COM Mon Apr 23 07:21:48 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 23 Apr 2007 10:21:48 -0400 Subject: What's the best OUTPUTFORMAT for ECW-files using WMS In-Reply-To: <8d2ea9d70704230050v33813bfcgf86bfbd9ca0dc17a@mail.gmail.com> Message-ID: Steven De Vriendt wrote: > I have about 50 ECW-files which I like > to serve via WMS. > > I'm using following OUTPUTFORMAT: > > OUTPUTFORMAT > NAME PNG24 > DRIVER "GD/PNG" > MIMETYPE "image/png" > EXTENSION PNG > FORMATOPTION "INTERLACE=OFF" > IMAGEMODE RGBA > TRANSPARENT ON > END > > Image quality is good, but the performance is not what I'd like it to be. > Can anyone help me adjusting these parameters ? Steven, On issue is of course whether it is really the input or output that is slowing things down. PNG24 output is generally quite expensive computationally and folks have often found JPEG better for 24bit output. JPEG also produces much smaller files which is generally good. I'd add that each ECW that has to be opened and any imagery read from will be expensive. If you can it is better with ECW to make a single large mosaic unless you know that views are constrained in such a way that allmost all requests will only touch one file. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From jdege at KORTERRA.COM Mon Apr 23 07:53:14 2007 From: jdege at KORTERRA.COM (Jeff Dege) Date: Mon, 23 Apr 2007 09:53:14 -0500 Subject: Attributes in tile indexes? In-Reply-To: A<462A005C.9030702@swoodbridge.com> Message-ID: Well, I've been looking at this in more detail, and finding that the tileindex layer isn't drawing at all. With all other layers turned off, when I use shp2img with an extent that causes the tile layer to draw, I get a blank image. When I change the layer to use the original shapefile, I get the data displayed. (And the layer takes 40 seconds to draw, even after I've run shptree on the shapefile, which is why I've been playing around with tiling.) I identified the individual tile shapefile that contains the area I'm trying to draw and used it directly, and it works fine. So the splitting apart seems to be working. But the tileindex shapefile seems to be broken. > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stephen Woodbridge > Sent: Saturday, April 21, 2007 7:15 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Attributes in tile indexes? > > Jeff, > > This should just work. There is nothing special you should > have to do. I > do it all the time with my mapfiles. I use shp2tile to break > mine up but > that should not make a difference. > > First I would try changing your layer to use just one of the smaller > shape files without the tileindex and see if that works and > that you can > display the labels. > > You might also want to post info about what OS, version of mapserver, > and the LAYER block in question. > > -Steve W > > Jeff Dege wrote: > > I have a shape file that's too big to draw maps with - takes far too > > long. > > > > In an attempt to speed things up, I split it into 16 > smaller shapefiles, > > using: > > > > ogr2ogr -f "ESRI Shapefile" -spat xmin ymin xmax ymax newXX.shp > > old.shp > > > > Then did a shptree on each of these new files, then a shptinidex to > > create a single tile index shapefile on them, and tried to > build a map. > > > > It works fine, so long as I don't try to display labels. > But if I do, I > > get errors: > > > > msDBFGetItemIndex(): Item 'NAME' not found. > > > > Where "NAME" is the attribute I'm trying to use for the > label. It looks > > like the tileindex shapefile doesn't expose the attributes of the > > underlying shape tiles. I've done an ogrinfo on the > shapefiles that I'd > > generated, and the attributes are there. > > > > Can I expose the attributes through the tileindex? > > > > How? > From ltrevinoh at GMAIL.COM Mon Apr 23 08:30:21 2007 From: ltrevinoh at GMAIL.COM (=?ISO-8859-1?Q?Luis_Trevi=F1o?=) Date: Mon, 23 Apr 2007 10:30:21 -0500 Subject: Color by attributes - postgis connection In-Reply-To: <8d2ea9d70704210138i6896c1dcpa2afbbcd8cb1aa11@mail.gmail.com> Message-ID: Steven: You could try something like : EXPRESSION ('[cabuty]' = 'CL') on your mipe file Regards, Luis 2007/4/21, Steven De Vriendt : > > I have some trouble colouring by an attribute value i/c with a postgis > connection. > I want to colour the column cabuty by 3 unique values. > For now I'm trying to make a layer like this: > > LAYER > NAME "b_cabu_postgis" > CONNECTIONTYPE postgis > CONNECTION "host=localhost port=5432 dbname=globaalter > user=postgres_db password=autodesk6.5" > DATA "the_geom from b_cabu" > STATUS ON > TYPE POLYGON > DUMP TRUE > TEMPLATE "ttt" > CLASSITEM "cabuty" > CLASS > EXPRESSION "CL" > STYLE OUTLINECOLOR 0 0 255 > END > EXPRESSION "OO" > STYLE OUTLINECOLOR 255 0 255 > END > END > METADATA > "wms_title" "gebouwen" > "gml_include_items" "all" > END > PROJECTION > "init=epsg:31300" > END > END > > Only the expression 'OO' is coloured, the objects corresponding with > 'CL' in the cabuty are not showing up...what am I doing wrong ? > > Thanks for helping out ! > > Steven > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdege at KORTERRA.COM Mon Apr 23 08:38:41 2007 From: jdege at KORTERRA.COM (Jeff Dege) Date: Mon, 23 Apr 2007 10:38:41 -0500 Subject: Attributes in tile indexes? In-Reply-To: A<34E056CD4D475841B8C9ABCE956F92F6370910@mrburns.KorOffice.local> Message-ID: OK - I knew I had to be doming something stupid. To tell a layer to draw using a tileindex shapefile, you include the commands: TILEINDEX "tileindex" TILEITEM "LOCATION" Using: DATA "tileindex" won't work. Now, after all of that, drawing with the split shapefiles is slower than with the original. So there's still some playing to do. > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff Dege > Sent: Monday, April 23, 2007 9:53 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Attributes in tile indexes? > > Well, I've been looking at this in more detail, and finding that the > tileindex layer isn't drawing at all. With all other layers > turned off, > when I use shp2img with an extent that causes the tile layer > to draw, I > get a blank image. When I change the layer to use the original > shapefile, I get the data displayed. (And the layer takes 40 > seconds to > draw, even after I've run shptree on the shapefile, which is why I've > been playing around with tiling.) > > I identified the individual tile shapefile that contains the area I'm > trying to draw and used it directly, and it works fine. So the > splitting apart seems to be working. But the tileindex > shapefile seems > to be broken. > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stephen > Woodbridge > > Sent: Saturday, April 21, 2007 7:15 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] Attributes in tile indexes? > > > > Jeff, > > > > This should just work. There is nothing special you should > > have to do. I > > do it all the time with my mapfiles. I use shp2tile to break > > mine up but > > that should not make a difference. > > > > First I would try changing your layer to use just one of > the smaller > > shape files without the tileindex and see if that works and > > that you can > > display the labels. > > > > You might also want to post info about what OS, version of > mapserver, > > and the LAYER block in question. > > > > -Steve W > > > > Jeff Dege wrote: > > > I have a shape file that's too big to draw maps with - > takes far too > > > long. > > > > > > In an attempt to speed things up, I split it into 16 > > smaller shapefiles, > > > using: > > > > > > ogr2ogr -f "ESRI Shapefile" -spat xmin ymin xmax ymax newXX.shp > > > old.shp > > > > > > Then did a shptree on each of these new files, then a > shptinidex to > > > create a single tile index shapefile on them, and tried to > > build a map. > > > > > > It works fine, so long as I don't try to display labels. > > But if I do, I > > > get errors: > > > > > > msDBFGetItemIndex(): Item 'NAME' not found. > > > > > > Where "NAME" is the attribute I'm trying to use for the > > label. It looks > > > like the tileindex shapefile doesn't expose the attributes of the > > > underlying shape tiles. I've done an ogrinfo on the > > shapefiles that I'd > > > generated, and the attributes are there. > > > > > > Can I expose the attributes through the tileindex? > > > > > > How? > > > From woodbri at SWOODBRIDGE.COM Mon Apr 23 08:53:56 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 23 Apr 2007 11:53:56 -0400 Subject: Attributes in tile indexes? In-Reply-To: <34E056CD4D475841B8C9ABCE956F92F6370911@mrburns.KorOffice.local> Message-ID: Jeff, Make SURE all your tiles have a spatial index *.qix and the tileindex also has a spatial index. These can be built with shptree file.shp -Steve W. Jeff Dege wrote: > OK - I knew I had to be doming something stupid. > > To tell a layer to draw using a tileindex shapefile, you include the > commands: > > TILEINDEX "tileindex" > TILEITEM "LOCATION" > > Using: > > DATA "tileindex" > > won't work. > > Now, after all of that, drawing with the split shapefiles is slower than > with the original. So there's still some playing to do. > > >> -----Original Message----- >> From: UMN MapServer Users List >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff Dege >> Sent: Monday, April 23, 2007 9:53 AM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] Attributes in tile indexes? >> >> Well, I've been looking at this in more detail, and finding that the >> tileindex layer isn't drawing at all. With all other layers >> turned off, >> when I use shp2img with an extent that causes the tile layer >> to draw, I >> get a blank image. When I change the layer to use the original >> shapefile, I get the data displayed. (And the layer takes 40 >> seconds to >> draw, even after I've run shptree on the shapefile, which is why I've >> been playing around with tiling.) >> >> I identified the individual tile shapefile that contains the area I'm >> trying to draw and used it directly, and it works fine. So the >> splitting apart seems to be working. But the tileindex >> shapefile seems >> to be broken. >> >>> -----Original Message----- >>> From: UMN MapServer Users List >>> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stephen >> Woodbridge >>> Sent: Saturday, April 21, 2007 7:15 AM >>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>> Subject: Re: [UMN_MAPSERVER-USERS] Attributes in tile indexes? >>> >>> Jeff, >>> >>> This should just work. There is nothing special you should >>> have to do. I >>> do it all the time with my mapfiles. I use shp2tile to break >>> mine up but >>> that should not make a difference. >>> >>> First I would try changing your layer to use just one of >> the smaller >>> shape files without the tileindex and see if that works and >>> that you can >>> display the labels. >>> >>> You might also want to post info about what OS, version of >> mapserver, >>> and the LAYER block in question. >>> >>> -Steve W >>> >>> Jeff Dege wrote: >>>> I have a shape file that's too big to draw maps with - >> takes far too >>>> long. >>>> >>>> In an attempt to speed things up, I split it into 16 >>> smaller shapefiles, >>>> using: >>>> >>>> ogr2ogr -f "ESRI Shapefile" -spat xmin ymin xmax ymax newXX.shp >>>> old.shp >>>> >>>> Then did a shptree on each of these new files, then a >> shptinidex to >>>> create a single tile index shapefile on them, and tried to >>> build a map. >>>> It works fine, so long as I don't try to display labels. >>> But if I do, I >>>> get errors: >>>> >>>> msDBFGetItemIndex(): Item 'NAME' not found. >>>> >>>> Where "NAME" is the attribute I'm trying to use for the >>> label. It looks >>>> like the tileindex shapefile doesn't expose the attributes of the >>>> underlying shape tiles. I've done an ogrinfo on the >>> shapefiles that I'd >>>> generated, and the attributes are there. >>>> >>>> Can I expose the attributes through the tileindex? >>>> >>>> How? From myardbenoit at GMAIL.COM Mon Apr 23 09:06:10 2007 From: myardbenoit at GMAIL.COM (Benoit Myard) Date: Mon, 23 Apr 2007 18:06:10 +0200 Subject: MapScript: drawing points with Perl Message-ID: Hi list, I'm trying to set up an application whose goal is to add Point data to an existing map using Perl MapScript. My plan is to put all that's static in a mapfile and to draw the points afterwards. For now, I haven't managed to draw anything except what's in the mapfile and I would like to know if there is anything special I should know. For example, when you create a point, which projection is in use ? I attached a sample script which should draw a big point over Paris but actually doesn't. Also, I noted that I can't "use strict;" since the MapScript Variables (MS_ON, MS_SINGLE, ...) produce errors even when you prefix them with 'mapserver::' : Argument "MS_ON" isn't numeric in subroutine entry at /opt/csw/lib/perl/site_perl/mapscript.pm line 35. Allthough there is not much documentation for the Perl-side of MapScript, the MapScript API Reference should be sufficient. Just in case someone is aware of some well-rounded documentation or examples for Perl MapScript, it would be great to share with others :). Thanks in advance. -- Benoit Myard -------------- next part -------------- A non-text attachment was scrubbed... Name: geoserver.pl Type: application/octet-stream Size: 692 bytes Desc: not available URL: From gisaalter at GMAIL.COM Mon Apr 23 09:51:58 2007 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Mon, 23 Apr 2007 18:51:58 +0200 Subject: What's the best OUTPUTFORMAT for ECW-files using WMS In-Reply-To: <462CC0FC.2010306@pobox.com> Message-ID: Ok, back to square one then...I assumed that splitting my image up in several tiles would speed things up but with this info it seems like I'll have to get the best out of serving the original file (?390 meg). On a side note, are WMS-images delivered on the same way like f.i. google maps, earth do that or should I say is Google Earth some sort of great WMS-client...sorry if this is not relevant to the original question, though it's interesting to know. Thanks to all for your usefull info ! Steven On 4/23/07, Frank Warmerdam wrote: > Steven De Vriendt wrote: > > I have about 50 ECW-files which I like > > to serve via WMS. > > > > I'm using following OUTPUTFORMAT: > > > > OUTPUTFORMAT > > NAME PNG24 > > DRIVER "GD/PNG" > > MIMETYPE "image/png" > > EXTENSION PNG > > FORMATOPTION "INTERLACE=OFF" > > IMAGEMODE RGBA > > TRANSPARENT ON > > END > > > > Image quality is good, but the performance is not what I'd like it to be. > > Can anyone help me adjusting these parameters ? > > Steven, > > On issue is of course whether it is really the input or output that is > slowing things down. PNG24 output is generally quite expensive computationally > and folks have often found JPEG better for 24bit output. JPEG also produces > much smaller files which is generally good. > > I'd add that each ECW that has to be opened and any imagery read from will > be expensive. If you can it is better with ECW to make a single large > mosaic unless you know that views are constrained in such a way that allmost > all requests will only touch one file. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGeo, http://osgeo.org > > From gregor at HOSTGIS.COM Mon Apr 23 09:57:37 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Mon, 23 Apr 2007 10:57:37 -0600 Subject: What's the best OUTPUTFORMAT for ECW-files using WMS In-Reply-To: <8d2ea9d70704230951o2c693186j1fcdb4e8297d7fff@mail.gmail.com> Message-ID: > On a side note, are WMS-images delivered on the same way like f.i. > google maps, earth do that or should I say is Google Earth some sort > of great WMS-client...sorry if this is not relevant to the original > question, though it's interesting to know. Google Earth can read WMS, yes. But that great imagery is not WMS; it's some proprietary Google format, with some nasty Terms of Use behind them. This keeps coming up, folks wanting to load Google Earth's data via WMS, but sadly it can't be... From gisaalter at GMAIL.COM Mon Apr 23 10:03:10 2007 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Mon, 23 Apr 2007 19:03:10 +0200 Subject: What's the best OUTPUTFORMAT for ECW-files using WMS In-Reply-To: <3403.71.211.248.90.1177347457.squirrel@www.hostgis.com> Message-ID: I'm aware of that, what I want to know is how these images are served to Maps and Earth... On 4/23/07, Gregor Mosheh wrote: > > On a side note, are WMS-images delivered on the same way like f.i. > > google maps, earth do that or should I say is Google Earth some sort > > of great WMS-client...sorry if this is not relevant to the original > > question, though it's interesting to know. > > Google Earth can read WMS, yes. But that great imagery is not WMS; it's > some proprietary Google format, with some nasty Terms of Use behind them. > This keeps coming up, folks wanting to load Google Earth's data via WMS, > but sadly it can't be... > > > From lfilak at MEDINACO.ORG Mon Apr 23 09:58:46 2007 From: lfilak at MEDINACO.ORG (Lowell.Filak) Date: Mon, 23 Apr 2007 12:58:46 -0400 Subject: MapScript: drawing points with Perl In-Reply-To: <6fb81fc70704230906k785f3d7do9246c28ef9d55e3b@mail.gmail.com> Message-ID: Benoit Myard writes: > Hi list, > > I'm trying to set up an application whose goal is to add Point data to > an existing map using Perl MapScript. My plan is to put all that's > static in a mapfile and to draw the points afterwards. > > For now, I haven't managed to draw anything except what's in the > mapfile and I would like to know if there is anything special I should > know. For example, when you create a point, which projection is in use > ? > > I attached a sample script which should draw a big point over Paris > but actually doesn't. > > > Also, I noted that I can't "use strict;" since the MapScript Variables > (MS_ON, MS_SINGLE, ...) produce errors even when you prefix them with > 'mapserver::' : > > Argument "MS_ON" isn't numeric in subroutine entry at > /opt/csw/lib/perl/site_perl/mapscript.pm line 35. > > > Allthough there is not much documentation for the Perl-side of > MapScript, the MapScript API Reference should be sufficient. Just in > case someone is aware of some well-rounded documentation or examples > for Perl MapScript, it would be great to share with others :). Benoit, Please pardon my ignorance on projections but the coordinates of the point look something like northing/easting.? Unless you assign a projection to the layer I believe the projection & units of the mapObj are assumed or it is assumed that all layers are the same and no reprojection is needed. For example, all the layers we use are projected into northing/easting using the same datum & feet so we don't specify any projection information. An old presentation particular to Perl is at the following but is not updated: http://www.highwayengineer.co.medina.oh.us/mapserver/mapscript/title.html There are also entries in the old wiki that may help: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScript Lowell Filak From David.Fawcett at STATE.MN.US Mon Apr 23 11:03:34 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 23 Apr 2007 13:03:34 -0500 Subject: What's the best OUTPUTFORMAT for ECW-files using WMS In-Reply-To: A<8d2ea9d70704230951o2c693186j1fcdb4e8297d7fff@mail.gmail.com> Message-ID: Steven, When you say that the performance with tileindex is worse, is your test case that you are zoomed in to the point where you are only hitting one tile, or is it where you are zoomed out so that you have to now open and load many image files instead of just one? If it is the latter case, it is worth exploring the use of multiple layers for the same data. Make them scale-dependent, so you only see one layer at a time. Use an overview/generalized image for the 'zoomed out' scales and when the user is zoomed in to the point where they will only hit one or a few tiles, use the tileindexed layer. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steven De Vriendt Sent: Monday, April 23, 2007 11:52 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] What's the best OUTPUTFORMAT for ECW-files using WMS Ok, back to square one then...I assumed that splitting my image up in several tiles would speed things up but with this info it seems like I'll have to get the best out of serving the original file (?390 meg). On a side note, are WMS-images delivered on the same way like f.i. google maps, earth do that or should I say is Google Earth some sort of great WMS-client...sorry if this is not relevant to the original question, though it's interesting to know. Thanks to all for your usefull info ! Steven On 4/23/07, Frank Warmerdam wrote: > Steven De Vriendt wrote: > > I have about 50 ECW-files which I like > > to serve via WMS. > > > > I'm using following OUTPUTFORMAT: > > > > OUTPUTFORMAT > > NAME PNG24 > > DRIVER "GD/PNG" > > MIMETYPE "image/png" > > EXTENSION PNG > > FORMATOPTION "INTERLACE=OFF" > > IMAGEMODE RGBA > > TRANSPARENT ON > > END > > > > Image quality is good, but the performance is not what I'd like it > > to be. Can anyone help me adjusting these parameters ? > > Steven, > > On issue is of course whether it is really the input or output that is > slowing things down. PNG24 output is generally quite expensive > computationally and folks have often found JPEG better for 24bit > output. JPEG also produces much smaller files which is generally > good. > > I'd add that each ECW that has to be opened and any imagery read from > will be expensive. If you can it is better with ECW to make a single > large mosaic unless you know that views are constrained in such a way > that allmost all requests will only touch one file. > > Best regards, > -- > ---------------------------------------+------------------------------ > ---------------------------------------+-------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGeo, http://osgeo.org > > From ed at TOPOZONE.COM Mon Apr 23 11:05:05 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 23 Apr 2007 14:05:05 -0400 Subject: Attributes in tile indexes? In-Reply-To: <462CD694.2040205@swoodbridge.com> Message-ID: Jeff - In addition to Steve's suggestion, please keep in mind that what you are trying to do is reduce the amount of data MapServer needs to read in order to retrieve the data you need. Think about your data carefully and see whether you're achieving that goal. First, splitting the shapefile into multiple files and indexing them with a TILEINDEX helps MapServer select a subset of that data to be used for a given map draw. If MapServer has to open most or all of those shapefiles anyway, then the TILEINDEX isn't going to do a thing! Since your method of producing shapefile tiles will minimize overlap between files, you should also check the relationship of your map's spatial extent with those tiles. Ideally, each tile should be (roughly) somewhat larger than the extent of the map view. With rectangularly-tiled data, you cannot avoid situations where the map view is centered on a corner and you need to open four different input shapefiles. If each rectangular tile is, however, slightly larger than the map image size, then you will never get a situation that is WORSE than four input files. If you render a zoomed-out view covering dozens of input files, your TILEINDEX isn't going to help much. Think about how your TILEINDEX and split shapefiles are behaving. Have you substantially eliminated most of your input data from consideration in a map-drawing request? If not, then you need to go back and think about how to restructure your tiling and indexing, since that's the whole goal of those techniques. - Ed -- Ed McNierney President and Chief Mapmaker Maps a la carte, Inc. / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed at topozone.com > From: Stephen Woodbridge > Reply-To: Stephen Woodbridge > Date: Mon, 23 Apr 2007 11:53:56 -0400 > To: > Subject: Re: [UMN_MAPSERVER-USERS] Attributes in tile indexes? > > Jeff, > > Make SURE all your tiles have a spatial index *.qix and the tileindex > also has a spatial index. These can be built with > > shptree file.shp > > -Steve W. > > Jeff Dege wrote: >> OK - I knew I had to be doming something stupid. >> >> To tell a layer to draw using a tileindex shapefile, you include the >> commands: >> >> TILEINDEX "tileindex" >> TILEITEM "LOCATION" >> >> Using: >> >> DATA "tileindex" >> >> won't work. >> >> Now, after all of that, drawing with the split shapefiles is slower than >> with the original. So there's still some playing to do. >> >> >>> -----Original Message----- >>> From: UMN MapServer Users List >>> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff Dege >>> Sent: Monday, April 23, 2007 9:53 AM >>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>> Subject: Re: [UMN_MAPSERVER-USERS] Attributes in tile indexes? >>> >>> Well, I've been looking at this in more detail, and finding that the >>> tileindex layer isn't drawing at all. With all other layers >>> turned off, >>> when I use shp2img with an extent that causes the tile layer >>> to draw, I >>> get a blank image. When I change the layer to use the original >>> shapefile, I get the data displayed. (And the layer takes 40 >>> seconds to >>> draw, even after I've run shptree on the shapefile, which is why I've >>> been playing around with tiling.) >>> >>> I identified the individual tile shapefile that contains the area I'm >>> trying to draw and used it directly, and it works fine. So the >>> splitting apart seems to be working. But the tileindex >>> shapefile seems >>> to be broken. >>> >>>> -----Original Message----- >>>> From: UMN MapServer Users List >>>> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stephen >>> Woodbridge >>>> Sent: Saturday, April 21, 2007 7:15 AM >>>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>>> Subject: Re: [UMN_MAPSERVER-USERS] Attributes in tile indexes? >>>> >>>> Jeff, >>>> >>>> This should just work. There is nothing special you should >>>> have to do. I >>>> do it all the time with my mapfiles. I use shp2tile to break >>>> mine up but >>>> that should not make a difference. >>>> >>>> First I would try changing your layer to use just one of >>> the smaller >>>> shape files without the tileindex and see if that works and >>>> that you can >>>> display the labels. >>>> >>>> You might also want to post info about what OS, version of >>> mapserver, >>>> and the LAYER block in question. >>>> >>>> -Steve W >>>> >>>> Jeff Dege wrote: >>>>> I have a shape file that's too big to draw maps with - >>> takes far too >>>>> long. >>>>> >>>>> In an attempt to speed things up, I split it into 16 >>>> smaller shapefiles, >>>>> using: >>>>> >>>>> ogr2ogr -f "ESRI Shapefile" -spat xmin ymin xmax ymax newXX.shp >>>>> old.shp >>>>> >>>>> Then did a shptree on each of these new files, then a >>> shptinidex to >>>>> create a single tile index shapefile on them, and tried to >>>> build a map. >>>>> It works fine, so long as I don't try to display labels. >>>> But if I do, I >>>>> get errors: >>>>> >>>>> msDBFGetItemIndex(): Item 'NAME' not found. >>>>> >>>>> Where "NAME" is the attribute I'm trying to use for the >>>> label. It looks >>>>> like the tileindex shapefile doesn't expose the attributes of the >>>>> underlying shape tiles. I've done an ogrinfo on the >>>> shapefiles that I'd >>>>> generated, and the attributes are there. >>>>> >>>>> Can I expose the attributes through the tileindex? >>>>> >>>>> How? From jdege at KORTERRA.COM Mon Apr 23 12:19:20 2007 From: jdege at KORTERRA.COM (Jeff Dege) Date: Mon, 23 Apr 2007 14:19:20 -0500 Subject: Attributes in tile indexes? In-Reply-To: A Message-ID: In my particular case, I'm only using this layer when zoomed in tightly. The shapefile in question contains street data. There are millions of features in the original shapefile. But I have very much smaller shapefiles containing only the major roads, only the highways, and only the interestates, that I use at wider zoom levels. It's only at the tight zooms that I will draw the individual streets, so trying to read large numbers of tiles is not an issue. What's surprised me in this case is that it's the first time where only drawing detail on close-in zooms, and adding spatial indexes to the shapefiles with shptree wasn't enough to get reasonable performance. I'm currently running shp2tile with different arguments, trying to see how speed vs. number of files trade off against one another. But with a half-gig shapefile, each trial is taking a while. My current fastest attempt cut the time to draw to 1/4 of what I originally had. Which isn't fast enough. > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney > Sent: Monday, April 23, 2007 1:05 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Attributes in tile indexes? > > Jeff - > > In addition to Steve's suggestion, please keep in mind that > what you are > trying to do is reduce the amount of data MapServer needs to > read in order > to retrieve the data you need. Think about your data > carefully and see > whether you're achieving that goal. > > First, splitting the shapefile into multiple files and > indexing them with a > TILEINDEX helps MapServer select a subset of that data to be > used for a > given map draw. If MapServer has to open most or all of > those shapefiles > anyway, then the TILEINDEX isn't going to do a thing! > > Since your method of producing shapefile tiles will minimize > overlap between > files, you should also check the relationship of your map's > spatial extent > with those tiles. Ideally, each tile should be (roughly) > somewhat larger > than the extent of the map view. With rectangularly-tiled > data, you cannot > avoid situations where the map view is centered on a corner > and you need to > open four different input shapefiles. If each rectangular > tile is, however, > slightly larger than the map image size, then you will never > get a situation > that is WORSE than four input files. If you render a zoomed-out view > covering dozens of input files, your TILEINDEX isn't going to > help much. > > Think about how your TILEINDEX and split shapefiles are > behaving. Have you > substantially eliminated most of your input data from > consideration in a > map-drawing request? If not, then you need to go back and > think about how > to restructure your tiling and indexing, since that's the > whole goal of > those techniques. > > - Ed > > -- > Ed McNierney > President and Chief Mapmaker > Maps a la carte, Inc. / TopoZone.com > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > Phone: (978) 251-4242 > Fax: (978) 251-1396 > ed at topozone.com > > > From: Stephen Woodbridge > > Reply-To: Stephen Woodbridge > > Date: Mon, 23 Apr 2007 11:53:56 -0400 > > To: > > Subject: Re: [UMN_MAPSERVER-USERS] Attributes in tile indexes? > > > > Jeff, > > > > Make SURE all your tiles have a spatial index *.qix and the > tileindex > > also has a spatial index. These can be built with > > > > shptree file.shp > > > > -Steve W. > > > > Jeff Dege wrote: > >> OK - I knew I had to be doming something stupid. > >> > >> To tell a layer to draw using a tileindex shapefile, you > include the > >> commands: > >> > >> TILEINDEX "tileindex" > >> TILEITEM "LOCATION" > >> > >> Using: > >> > >> DATA "tileindex" > >> > >> won't work. > >> > >> Now, after all of that, drawing with the split shapefiles > is slower than > >> with the original. So there's still some playing to do. > >> > >> > >>> -----Original Message----- > >>> From: UMN MapServer Users List > >>> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff Dege > >>> Sent: Monday, April 23, 2007 9:53 AM > >>> To: MAPSERVER-USERS at LISTS.UMN.EDU > >>> Subject: Re: [UMN_MAPSERVER-USERS] Attributes in tile indexes? > >>> > >>> Well, I've been looking at this in more detail, and > finding that the > >>> tileindex layer isn't drawing at all. With all other layers > >>> turned off, > >>> when I use shp2img with an extent that causes the tile layer > >>> to draw, I > >>> get a blank image. When I change the layer to use the original > >>> shapefile, I get the data displayed. (And the layer takes 40 > >>> seconds to > >>> draw, even after I've run shptree on the shapefile, which > is why I've > >>> been playing around with tiling.) > >>> > >>> I identified the individual tile shapefile that contains > the area I'm > >>> trying to draw and used it directly, and it works fine. So the > >>> splitting apart seems to be working. But the tileindex > >>> shapefile seems > >>> to be broken. > >>> > >>>> -----Original Message----- > >>>> From: UMN MapServer Users List > >>>> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stephen > >>> Woodbridge > >>>> Sent: Saturday, April 21, 2007 7:15 AM > >>>> To: MAPSERVER-USERS at LISTS.UMN.EDU > >>>> Subject: Re: [UMN_MAPSERVER-USERS] Attributes in tile indexes? > >>>> > >>>> Jeff, > >>>> > >>>> This should just work. There is nothing special you should > >>>> have to do. I > >>>> do it all the time with my mapfiles. I use shp2tile to break > >>>> mine up but > >>>> that should not make a difference. > >>>> > >>>> First I would try changing your layer to use just one of > >>> the smaller > >>>> shape files without the tileindex and see if that works and > >>>> that you can > >>>> display the labels. > >>>> > >>>> You might also want to post info about what OS, version of > >>> mapserver, > >>>> and the LAYER block in question. > >>>> > >>>> -Steve W > >>>> > >>>> Jeff Dege wrote: > >>>>> I have a shape file that's too big to draw maps with - > >>> takes far too > >>>>> long. > >>>>> > >>>>> In an attempt to speed things up, I split it into 16 > >>>> smaller shapefiles, > >>>>> using: > >>>>> > >>>>> ogr2ogr -f "ESRI Shapefile" -spat xmin ymin xmax > ymax newXX.shp > >>>>> old.shp > >>>>> > >>>>> Then did a shptree on each of these new files, then a > >>> shptinidex to > >>>>> create a single tile index shapefile on them, and tried to > >>>> build a map. > >>>>> It works fine, so long as I don't try to display labels. > >>>> But if I do, I > >>>>> get errors: > >>>>> > >>>>> msDBFGetItemIndex(): Item 'NAME' not found. > >>>>> > >>>>> Where "NAME" is the attribute I'm trying to use for the > >>>> label. It looks > >>>>> like the tileindex shapefile doesn't expose the > attributes of the > >>>>> underlying shape tiles. I've done an ogrinfo on the > >>>> shapefiles that I'd > >>>>> generated, and the attributes are there. > >>>>> > >>>>> Can I expose the attributes through the tileindex? > >>>>> > >>>>> How? > From gregor at HOSTGIS.COM Mon Apr 23 12:23:18 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Mon, 23 Apr 2007 13:23:18 -0600 Subject: What's the best OUTPUTFORMAT for ECW-files using WMS In-Reply-To: <8d2ea9d70704231003u6561801fjbccd6ed6be4f8bed@mail.gmail.com> Message-ID: >> Google Earth can read WMS, yes. But that great imagery is not WMS; it's >> some proprietary Google format, Steven De Vriendt wrote: > I'm aware of that, what I want to know is how these images are > served to Maps and Earth... You want to know how to output mapserver's WMS to Google Earth/Maps? There're plenty of tutorials on that. First step, of course, is to get your WMS working. After that, try Add / Image Overlay in Google Earth, or do a web search for using WMS in Google Maps. From ed at TOPOZONE.COM Mon Apr 23 13:21:46 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 23 Apr 2007 16:21:46 -0400 Subject: Attributes in tile indexes? In-Reply-To: <34E056CD4D475841B8C9ABCE956F92F6370915@mrburns.KorOffice.local> Message-ID: Jeff - And how does the geographic extent of the tiled shapefiles you're using compare to the geographic extent of the map requests you're using in your test? - Ed -- Ed McNierney President and Chief Mapmaker Maps a la carte, Inc. / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed at topozone.com > From: Jeff Dege > Reply-To: Jeff Dege > Date: Mon, 23 Apr 2007 14:19:20 -0500 > To: > Conversation: [UMN_MAPSERVER-USERS] Attributes in tile indexes? > Subject: Re: [UMN_MAPSERVER-USERS] Attributes in tile indexes? > > In my particular case, I'm only using this layer when zoomed in tightly. > > The shapefile in question contains street data. There are millions of > features in the original shapefile. But I have very much smaller > shapefiles containing only the major roads, only the highways, and only > the interestates, that I use at wider zoom levels. It's only at the > tight zooms that I will draw the individual streets, so trying to read > large numbers of tiles is not an issue. > > What's surprised me in this case is that it's the first time where only > drawing detail on close-in zooms, and adding spatial indexes to the > shapefiles with shptree wasn't enough to get reasonable performance. > > I'm currently running shp2tile with different arguments, trying to see > how speed vs. number of files trade off against one another. But with a > half-gig shapefile, each trial is taking a while. > > My current fastest attempt cut the time to draw to 1/4 of what I > originally had. Which isn't fast enough. > >> -----Original Message----- >> From: UMN MapServer Users List >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney >> Sent: Monday, April 23, 2007 1:05 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] Attributes in tile indexes? >> >> Jeff - >> >> In addition to Steve's suggestion, please keep in mind that >> what you are >> trying to do is reduce the amount of data MapServer needs to >> read in order >> to retrieve the data you need. Think about your data >> carefully and see >> whether you're achieving that goal. >> >> First, splitting the shapefile into multiple files and >> indexing them with a >> TILEINDEX helps MapServer select a subset of that data to be >> used for a >> given map draw. If MapServer has to open most or all of >> those shapefiles >> anyway, then the TILEINDEX isn't going to do a thing! >> >> Since your method of producing shapefile tiles will minimize >> overlap between >> files, you should also check the relationship of your map's >> spatial extent >> with those tiles. Ideally, each tile should be (roughly) >> somewhat larger >> than the extent of the map view. With rectangularly-tiled >> data, you cannot >> avoid situations where the map view is centered on a corner >> and you need to >> open four different input shapefiles. If each rectangular >> tile is, however, >> slightly larger than the map image size, then you will never >> get a situation >> that is WORSE than four input files. If you render a zoomed-out view >> covering dozens of input files, your TILEINDEX isn't going to >> help much. >> >> Think about how your TILEINDEX and split shapefiles are >> behaving. Have you >> substantially eliminated most of your input data from >> consideration in a >> map-drawing request? If not, then you need to go back and >> think about how >> to restructure your tiling and indexing, since that's the >> whole goal of >> those techniques. >> >> - Ed >> >> -- >> Ed McNierney >> President and Chief Mapmaker >> Maps a la carte, Inc. / TopoZone.com >> 73 Princeton Street, Suite 305 >> North Chelmsford, MA 01863 >> Phone: (978) 251-4242 >> Fax: (978) 251-1396 >> ed at topozone.com >> >>> From: Stephen Woodbridge >>> Reply-To: Stephen Woodbridge >>> Date: Mon, 23 Apr 2007 11:53:56 -0400 >>> To: >>> Subject: Re: [UMN_MAPSERVER-USERS] Attributes in tile indexes? >>> >>> Jeff, >>> >>> Make SURE all your tiles have a spatial index *.qix and the >> tileindex >>> also has a spatial index. These can be built with >>> >>> shptree file.shp >>> >>> -Steve W. >>> >>> Jeff Dege wrote: >>>> OK - I knew I had to be doming something stupid. >>>> >>>> To tell a layer to draw using a tileindex shapefile, you >> include the >>>> commands: >>>> >>>> TILEINDEX "tileindex" >>>> TILEITEM "LOCATION" >>>> >>>> Using: >>>> >>>> DATA "tileindex" >>>> >>>> won't work. >>>> >>>> Now, after all of that, drawing with the split shapefiles >> is slower than >>>> with the original. So there's still some playing to do. >>>> >>>> >>>>> -----Original Message----- >>>>> From: UMN MapServer Users List >>>>> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff Dege >>>>> Sent: Monday, April 23, 2007 9:53 AM >>>>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>>>> Subject: Re: [UMN_MAPSERVER-USERS] Attributes in tile indexes? >>>>> >>>>> Well, I've been looking at this in more detail, and >> finding that the >>>>> tileindex layer isn't drawing at all. With all other layers >>>>> turned off, >>>>> when I use shp2img with an extent that causes the tile layer >>>>> to draw, I >>>>> get a blank image. When I change the layer to use the original >>>>> shapefile, I get the data displayed. (And the layer takes 40 >>>>> seconds to >>>>> draw, even after I've run shptree on the shapefile, which >> is why I've >>>>> been playing around with tiling.) >>>>> >>>>> I identified the individual tile shapefile that contains >> the area I'm >>>>> trying to draw and used it directly, and it works fine. So the >>>>> splitting apart seems to be working. But the tileindex >>>>> shapefile seems >>>>> to be broken. >>>>> >>>>>> -----Original Message----- >>>>>> From: UMN MapServer Users List >>>>>> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stephen >>>>> Woodbridge >>>>>> Sent: Saturday, April 21, 2007 7:15 AM >>>>>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>>>>> Subject: Re: [UMN_MAPSERVER-USERS] Attributes in tile indexes? >>>>>> >>>>>> Jeff, >>>>>> >>>>>> This should just work. There is nothing special you should >>>>>> have to do. I >>>>>> do it all the time with my mapfiles. I use shp2tile to break >>>>>> mine up but >>>>>> that should not make a difference. >>>>>> >>>>>> First I would try changing your layer to use just one of >>>>> the smaller >>>>>> shape files without the tileindex and see if that works and >>>>>> that you can >>>>>> display the labels. >>>>>> >>>>>> You might also want to post info about what OS, version of >>>>> mapserver, >>>>>> and the LAYER block in question. >>>>>> >>>>>> -Steve W >>>>>> >>>>>> Jeff Dege wrote: >>>>>>> I have a shape file that's too big to draw maps with - >>>>> takes far too >>>>>>> long. >>>>>>> >>>>>>> In an attempt to speed things up, I split it into 16 >>>>>> smaller shapefiles, >>>>>>> using: >>>>>>> >>>>>>> ogr2ogr -f "ESRI Shapefile" -spat xmin ymin xmax >> ymax newXX.shp >>>>>>> old.shp >>>>>>> >>>>>>> Then did a shptree on each of these new files, then a >>>>> shptinidex to >>>>>>> create a single tile index shapefile on them, and tried to >>>>>> build a map. >>>>>>> It works fine, so long as I don't try to display labels. >>>>>> But if I do, I >>>>>>> get errors: >>>>>>> >>>>>>> msDBFGetItemIndex(): Item 'NAME' not found. >>>>>>> >>>>>>> Where "NAME" is the attribute I'm trying to use for the >>>>>> label. It looks >>>>>>> like the tileindex shapefile doesn't expose the >> attributes of the >>>>>>> underlying shape tiles. I've done an ogrinfo on the >>>>>> shapefiles that I'd >>>>>>> generated, and the attributes are there. >>>>>>> >>>>>>> Can I expose the attributes through the tileindex? >>>>>>> >>>>>>> How? >> From woodbri at SWOODBRIDGE.COM Mon Apr 23 17:04:03 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 23 Apr 2007 20:04:03 -0400 Subject: Attributes in tile indexes? In-Reply-To: <34E056CD4D475841B8C9ABCE956F92F6370915@mrburns.KorOffice.local> Message-ID: Jeff, For tiger data I use the counties as that is the way the data is organized so I have 3300 counties in the US and each county is a directory with all the layers in that directory. For Navteq data, I use shp2tile with the quad tree option and limit the maximum number of entities in a tile to 8000. This seems to work reasonably well, but I haven't actual tested variations on that to see what is better. You also should build mapserver with the debug option in ./configure and then add DEBUG ON in all you layers and look at the apache error log for the timing info on the layers. One of the big killers is the labelcache processing time. I have discussed a new algorithm on the dev list regarding the labelcache processing that should change the it from O(n*(n-1)) to O(n) complexity problem. I'm hoping I can get someone to champion the development because when there are a lot of labels the current labelcache processing can take nearly 50% to the map rendering time. If the labelcache is you problem, try to thin the number of objects that could potentially be labeled at the zoom scale in question. You might try splitting the shapefile based on road class into major and minor roads and only labeling the major roads until you are zoomed in even more. -Steve Jeff Dege wrote: > In my particular case, I'm only using this layer when zoomed in tightly. > > The shapefile in question contains street data. There are millions of > features in the original shapefile. But I have very much smaller > shapefiles containing only the major roads, only the highways, and only > the interestates, that I use at wider zoom levels. It's only at the > tight zooms that I will draw the individual streets, so trying to read > large numbers of tiles is not an issue. > > What's surprised me in this case is that it's the first time where only > drawing detail on close-in zooms, and adding spatial indexes to the > shapefiles with shptree wasn't enough to get reasonable performance. > > I'm currently running shp2tile with different arguments, trying to see > how speed vs. number of files trade off against one another. But with a > half-gig shapefile, each trial is taking a while. > > My current fastest attempt cut the time to draw to 1/4 of what I > originally had. Which isn't fast enough. > >> -----Original Message----- >> From: UMN MapServer Users List >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney >> Sent: Monday, April 23, 2007 1:05 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] Attributes in tile indexes? >> >> Jeff - >> >> In addition to Steve's suggestion, please keep in mind that >> what you are >> trying to do is reduce the amount of data MapServer needs to >> read in order >> to retrieve the data you need. Think about your data >> carefully and see >> whether you're achieving that goal. >> >> First, splitting the shapefile into multiple files and >> indexing them with a >> TILEINDEX helps MapServer select a subset of that data to be >> used for a >> given map draw. If MapServer has to open most or all of >> those shapefiles >> anyway, then the TILEINDEX isn't going to do a thing! >> >> Since your method of producing shapefile tiles will minimize >> overlap between >> files, you should also check the relationship of your map's >> spatial extent >> with those tiles. Ideally, each tile should be (roughly) >> somewhat larger >> than the extent of the map view. With rectangularly-tiled >> data, you cannot >> avoid situations where the map view is centered on a corner >> and you need to >> open four different input shapefiles. If each rectangular >> tile is, however, >> slightly larger than the map image size, then you will never >> get a situation >> that is WORSE than four input files. If you render a zoomed-out view >> covering dozens of input files, your TILEINDEX isn't going to >> help much. >> >> Think about how your TILEINDEX and split shapefiles are >> behaving. Have you >> substantially eliminated most of your input data from >> consideration in a >> map-drawing request? If not, then you need to go back and >> think about how >> to restructure your tiling and indexing, since that's the >> whole goal of >> those techniques. >> >> - Ed >> >> -- >> Ed McNierney >> President and Chief Mapmaker >> Maps a la carte, Inc. / TopoZone.com >> 73 Princeton Street, Suite 305 >> North Chelmsford, MA 01863 >> Phone: (978) 251-4242 >> Fax: (978) 251-1396 >> ed at topozone.com >> >>> From: Stephen Woodbridge >>> Reply-To: Stephen Woodbridge >>> Date: Mon, 23 Apr 2007 11:53:56 -0400 >>> To: >>> Subject: Re: [UMN_MAPSERVER-USERS] Attributes in tile indexes? >>> >>> Jeff, >>> >>> Make SURE all your tiles have a spatial index *.qix and the >> tileindex >>> also has a spatial index. These can be built with >>> >>> shptree file.shp >>> >>> -Steve W. >>> >>> Jeff Dege wrote: >>>> OK - I knew I had to be doming something stupid. >>>> >>>> To tell a layer to draw using a tileindex shapefile, you >> include the >>>> commands: >>>> >>>> TILEINDEX "tileindex" >>>> TILEITEM "LOCATION" >>>> >>>> Using: >>>> >>>> DATA "tileindex" >>>> >>>> won't work. >>>> >>>> Now, after all of that, drawing with the split shapefiles >> is slower than >>>> with the original. So there's still some playing to do. >>>> >>>> >>>>> -----Original Message----- >>>>> From: UMN MapServer Users List >>>>> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff Dege >>>>> Sent: Monday, April 23, 2007 9:53 AM >>>>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>>>> Subject: Re: [UMN_MAPSERVER-USERS] Attributes in tile indexes? >>>>> >>>>> Well, I've been looking at this in more detail, and >> finding that the >>>>> tileindex layer isn't drawing at all. With all other layers >>>>> turned off, >>>>> when I use shp2img with an extent that causes the tile layer >>>>> to draw, I >>>>> get a blank image. When I change the layer to use the original >>>>> shapefile, I get the data displayed. (And the layer takes 40 >>>>> seconds to >>>>> draw, even after I've run shptree on the shapefile, which >> is why I've >>>>> been playing around with tiling.) >>>>> >>>>> I identified the individual tile shapefile that contains >> the area I'm >>>>> trying to draw and used it directly, and it works fine. So the >>>>> splitting apart seems to be working. But the tileindex >>>>> shapefile seems >>>>> to be broken. >>>>> >>>>>> -----Original Message----- >>>>>> From: UMN MapServer Users List >>>>>> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stephen >>>>> Woodbridge >>>>>> Sent: Saturday, April 21, 2007 7:15 AM >>>>>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>>>>> Subject: Re: [UMN_MAPSERVER-USERS] Attributes in tile indexes? >>>>>> >>>>>> Jeff, >>>>>> >>>>>> This should just work. There is nothing special you should >>>>>> have to do. I >>>>>> do it all the time with my mapfiles. I use shp2tile to break >>>>>> mine up but >>>>>> that should not make a difference. >>>>>> >>>>>> First I would try changing your layer to use just one of >>>>> the smaller >>>>>> shape files without the tileindex and see if that works and >>>>>> that you can >>>>>> display the labels. >>>>>> >>>>>> You might also want to post info about what OS, version of >>>>> mapserver, >>>>>> and the LAYER block in question. >>>>>> >>>>>> -Steve W >>>>>> >>>>>> Jeff Dege wrote: >>>>>>> I have a shape file that's too big to draw maps with - >>>>> takes far too >>>>>>> long. >>>>>>> >>>>>>> In an attempt to speed things up, I split it into 16 >>>>>> smaller shapefiles, >>>>>>> using: >>>>>>> >>>>>>> ogr2ogr -f "ESRI Shapefile" -spat xmin ymin xmax >> ymax newXX.shp >>>>>>> old.shp >>>>>>> >>>>>>> Then did a shptree on each of these new files, then a >>>>> shptinidex to >>>>>>> create a single tile index shapefile on them, and tried to >>>>>> build a map. >>>>>>> It works fine, so long as I don't try to display labels. >>>>>> But if I do, I >>>>>>> get errors: >>>>>>> >>>>>>> msDBFGetItemIndex(): Item 'NAME' not found. >>>>>>> >>>>>>> Where "NAME" is the attribute I'm trying to use for the >>>>>> label. It looks >>>>>>> like the tileindex shapefile doesn't expose the >> attributes of the >>>>>>> underlying shape tiles. I've done an ogrinfo on the >>>>>> shapefiles that I'd >>>>>>> generated, and the attributes are there. >>>>>>> >>>>>>> Can I expose the attributes through the tileindex? >>>>>>> >>>>>>> How? From r.mueller at UNICOMP-BERLIN.DE Tue Apr 24 01:38:34 2007 From: r.mueller at UNICOMP-BERLIN.DE (=?ISO-8859-1?Q?=22R=2E_M=FCller=22?=) Date: Tue, 24 Apr 2007 10:38:34 +0200 Subject: symbols - inprecise rendering Message-ID: Hi, i've got a question concerning rendering symbols in mapserver. I'm working with mapserver 4.6 mostly on linux-based maschines and noticed that under certain circumstances the rendering of point symbols is quit inexactly. in the following test-case i wanted to draw gray-filled circles with a black border. in this case i didn't used the newer style-syntax but the result is quit the same. in the rendered image the two cirlces (inner circle and border are not located in the same origin, one circle is shifted for some pixels) symbol-definition : SYMBOL NAME 'kreis' TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END inside the layer definition : CLASS SYMBOL 'kreis' EXPRESSION "gray" COLOR 0 0 0 SIZE 50 OVERLAYSYMBOL 'kreis' OVERLAYCOLOR 200 200 200 OVERLAYSIZE 35 OVERLAYMAXSIZE 35 MAXSIZE 50 END the data comes from a postgis-database backend, but it doesn't matter. i worked out the following standalone test-case (complete map-file) and the behaviour is the same : MAP NAME 'testy' EXTENT 0 0 800 600 SIZE 501 521 IMAGETYPE PNG SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END LAYER NAME 'kreis' STATUS DEFAULT TYPE POINT FEATURE POINTS 450 150 120 111 450 301 END #POINTS 350 350 END END CLASS STYLE SYMBOL 'circle' SIZE 101 COLOR 0 0 0 END STYLE SYMBOL 'circle' SIZE 94 COLOR 121 121 121 END TEXT 'K0025' END END LAYER NAME 'kreis1' STATUS DEFAULT TRANSPARENCY 50 TYPE POINT FEATURE POINTS 100 450 750 320 131 310 END #POINTS 350 350 END END CLASS STYLE SYMBOL 'circle' SIZE 51 COLOR 0 0 0 END STYLE SYMBOL 'circle' SIZE 35 COLOR 211 121 121 END TEXT 'K0025' END END END i discovered some correlation to the version of used GDAL-library : in one case i used Version 1.3.1 and its rendered correctly (see 3rd pic), in another case i used 1.2.6 and renders incorrectly (see 2nd pic). Can someone confirm this behaviour ? thanks a lot in advance. regards ronald attachments : 1. first example with incorrect rendering 2. standalone mapfile with incorrect rendering (GDAl 1.2.6) 2. standalone mapfile with correct rendering (GDAl 1.3.1) ---- -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserver_symbols.png Type: image/png Size: 3123 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: circles_test01.png Type: image/png Size: 3332 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: circles_test02.png Type: image/png Size: 3160 bytes Desc: not available URL: From stefan.schwarzer at GRID.UNEP.CH Tue Apr 24 02:25:09 2007 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Tue, 24 Apr 2007 11:25:09 +0200 Subject: Flash & Mapserver ? Message-ID: Hi there, does anybody have a demo running of mapserver using flash output? The ones I found via Google and on the Mapserver site didn't work anymore... Any drawbacks using Flash? What do you think? Thanks for any advice From gisaalter at GMAIL.COM Tue Apr 24 02:32:42 2007 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Tue, 24 Apr 2007 11:32:42 +0200 Subject: Flash & Mapserver ? In-Reply-To: <1DF287D4-B287-479F-9CF8-006C74D945FC@grid.unep.ch> Message-ID: Look at: http://www.flamingo-mc.org/ Althoug this is actually a flah-based viewer, there should not be a problem using Flash as output... Steven On 4/24/07, Stefan Schwarzer wrote: > Hi there, > > does anybody have a demo running of mapserver using flash output? The > ones I found via Google and on the Mapserver site didn't work anymore... > > Any drawbacks using Flash? What do you think? > > Thanks for any advice > From gierse at SYSTEMTECHNIK.NET Tue Apr 24 04:05:16 2007 From: gierse at SYSTEMTECHNIK.NET (Dominik Gierse) Date: Tue, 24 Apr 2007 13:05:16 +0200 Subject: Error in drawquery with OracleSpatiall Message-ID: Hello, I?ve got a problem with my mapserver, but i can?t solve it. The Data is stored in an Oracle-Database (10 g Enterprise, Oracle Spatial). The connection to the database ist ok, i can show a map and zoom in/out without any problems. But when i select an object, the follwing error occurs: Warning: [MapServer Error]: msOracleSpatialLayerWhichShapes(): Error: ORA-01002: FETCH auf ung?ltigen oder geschlossenen Cursor. . Query statement: SELECT EID, SK, GEOM FROM SDOUSER.TABLEITUNG WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOMETRY(2003, NULL, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(340891 9.23,5712065.41,3409949.2,5712837.89) ),'querytype=window') = 'TRUE' . Check your data statement. in C:\ms4w\apps\hst\htdocs\map75.inc.php on line 889 Call Stack # Time Function Location 1 1.0840 {main}( ) ..(null):0 2 2.8869 gmapdrawmap( ) ..(null):464 3 3.2150 ms_map_obj->drawquery( ) ..(null):889 I can execute the SQL-Statement in a SQL-Client without any trouble and get some records back. Here?s my Data-Statement in the map-filei: LAYER NAME "tableitung" CONNECTIONTYPE oraclespatial CONNECTION "user/passwd at MYDB" DATA "GEOM FROM USER.TABLEITUNG USING UNIQUE EID" CLASSITEM "SK" Can anybody tell me a way, how i can solve this problem ? Kind regards Dominik Gierse From fsimon at UNIVALI.BR Tue Apr 24 04:55:47 2007 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Tue, 24 Apr 2007 08:55:47 -0300 Subject: Error in drawquery with OracleSpatiall In-Reply-To: <004e01c78660$70579980$fe78a8c0@hst70> Message-ID: Hi Dominik, Are you trying to use a query just to draw? What are the steps that you followed to apply the query? Can you pass the PHP code that generate the error? You can try to use the debug mode (DEBUG ON) for your layer to see all the functions that Mapserver used until the error. Best regards. -------------------------------------------------- Fernando Simon UMN Mapserver and Oracle Spatial developer -------------------------------------------------- Dominik Gierse wrote: > Hello, > > I?ve got a problem with my mapserver, but i can?t solve it. > The Data is stored in an Oracle-Database (10 g Enterprise, Oracle > Spatial). The connection to the database ist ok, i can show a map and > zoom in/out without any problems. But when i select an object, the > follwing error occurs: > > Warning: [MapServer Error]: msOracleSpatialLayerWhichShapes(): Error: > ORA-01002: FETCH auf ung?ltigen oder geschlossenen Cursor. . Query > statement: SELECT EID, SK, GEOM FROM SDOUSER.TABLEITUNG WHERE > SDO_FILTER( GEOM, MDSYS.SDO_GEOMETRY(2003, NULL, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(340891 > 9.23,5712065.41,3409949.2,5712837.89) ),'querytype=window') = 'TRUE' . > Check your data statement. in C:\ms4w\apps\hst\htdocs\map75.inc.php on > line 889 > > Call Stack > # Time Function Location > 1 1.0840 {main}( ) ..(null):0 > 2 2.8869 gmapdrawmap( ) ..(null):464 > 3 3.2150 ms_map_obj->drawquery( ) ..(null):889 > > I can execute the SQL-Statement in a SQL-Client without any trouble and > get some records back. > Here?s my Data-Statement in the map-filei: > > LAYER > NAME "tableitung" > CONNECTIONTYPE oraclespatial > CONNECTION "user/passwd at MYDB" > DATA "GEOM FROM USER.TABLEITUNG USING UNIQUE EID" > CLASSITEM "SK" > > Can anybody tell me a way, how i can solve this problem ? > > Kind regards > > Dominik Gierse > > From gierse at SYSTEMTECHNIK.NET Tue Apr 24 06:38:07 2007 From: gierse at SYSTEMTECHNIK.NET (Dominik Gierse) Date: Tue, 24 Apr 2007 15:38:07 +0200 Subject: AW: [UMN_MAPSERVER-USERS] Error in drawquery with OracleSpatiall In-Reply-To: <462DF043.7020908@univali.br> Message-ID: Hi Fernando, thanks for your reply. I use a query to get information about the objects selected and highlight these objects. // resArr1 is an array with the ID?s selected foreach($resArr1 as $ID) { @$mysearchLayer->queryByAttributes("EID", "EID = " . $ID, MS_MULTIPLE); } $ANZ = $mysearchLayer->getNumResults(); . . //Setting the map-extends . . $img = $gpoMap->drawQuery(); // this is the line with der Error And here?s the log. Ist very long, but i dont want to delete important information First call with zoom [Tue Apr 24 15:32:04 2007] [error] [client 127.0.0.1] msOracleSpatialLayerOpen called with: GEOM FROM SDOUSER.TABLEITUNG USING UNIQUE EID\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:04 2007] [error] [client 127.0.0.1] msOracleSpatialLayerOpen. Shared connection not available. Creating one.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:04 2007] [error] [client 127.0.0.1] msConnPoolRegister(tableitung,sdouser/sdouser at GIERSEDB,023F3660)\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:04 2007] [error] [client 127.0.0.1] msOracleSpatialLayerFreeItemInfo was called.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:04 2007] [error] [client 127.0.0.1] msOracleSpatialLayerInitItemInfo was called.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:04 2007] [error] [client 127.0.0.1] msOracleSpatialLayerWhichShapes was called.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:04 2007] [error] [client 127.0.0.1] msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT EID, SK, GEOM FROM SDOUSER.TABLEITUNG WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOMETRY(2003, NULL, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(340895 3.56,5712292.86,3409605.88,5712782.1) ),'querytype=window') = 'TRUE'\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:04 2007] [error] [client 127.0.0.1] msOracleSpatialLayerFreeItemInfo was called.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:04 2007] [error] [client 127.0.0.1] msOracleSpatialLayerClose was called. Layer connection: sdouser/sdouser at GIERSEDB\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:04 2007] [error] [client 127.0.0.1] msOracleSpatialLayerClose. Cleaning layerinfo handlers.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:04 2007] [error] [client 127.0.0.1] msOracleSpatialLayerClose. Cleaning Oracle handlers.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:04 2007] [error] [client 127.0.0.1] msConnPoolRelease(tableitung,sdouser/sdouser at GIERSEDB,023F3660)\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:04 2007] [error] [client 127.0.0.1] msConnPoolClose(sdouser/sdouser at GIERSEDB,023F3660)\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:04 2007] [error] [client 127.0.0.1] msOracleSpatialLayerClose was called. Layer connection: sdouser/sdouser at GIERSEDB\r, referer: http://localhost/hst/map75.php Second call with query [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerOpen called with: GEOM FROM SDOUSER.TABLEITUNG USING UNIQUE EID\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerOpen. Shared connection not available. Creating one.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msConnPoolRegister(tableitung,sdouser/sdouser at GIERSEDB,021E8588)\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerFreeItemInfo was called.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerInitItemInfo was called.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerWhichShapes was called.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT EID, SK, GEOM FROM SDOUSER.TABLEITUNG WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOMETRY(2003, NULL, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(340930 8.86,5712666.1,3409328.86,5712686.1) ),'querytype=window') = 'TRUE'\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerFreeItemInfo was called.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerClose was called. Layer connection: sdouser/sdouser at GIERSEDB\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerClose. Cleaning layerinfo handlers.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerClose. Cleaning Oracle handlers.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msConnPoolRelease(tableitung,sdouser/sdouser at GIERSEDB,021E8588)\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msConnPoolClose(sdouser/sdouser at GIERSEDB,021E8588)\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerOpen called with: GEOM FROM SDOUSER.TABLEITUNG USING UNIQUE EID\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerOpen. Shared connection not available. Creating one.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msConnPoolRegister(tableitung,sdouser/sdouser at GIERSEDB,02644528)\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerFreeItemInfo was called.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerGetItems was called.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerInitItemInfo was called.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerGetShape was called. Using the record = 38752.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerGetShape. Sql: SELECT X_MANUEL, NAME, LAENGE, SK, EID, SCHACHTOBE, SCHACHTUNT, STRASSE, MATERIAL, PROFILART, PROFILBREI, PROFILHOEH, BAUJAHR, HYDRANG, KOSTENSTEL, X1, Y1, X2, Y2, OBEN, UNTEN, ENTWAESSER, SOHLEOBEN, SOHLEUNTEN, NETZ, GEOM FROM SDOUSER.TABLEITUNG WHERE EID = 38752\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerFreeItemInfo was called.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerClose was called. Layer connection: sdouser/sdouser at GIERSEDB\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerClose. Cleaning layerinfo handlers.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerClose. Cleaning Oracle handlers.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msConnPoolRelease(tableitung,sdouser/sdouser at GIERSEDB,02644528)\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msConnPoolClose(sdouser/sdouser at GIERSEDB,02644528)\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerOpen called with: GEOM FROM SDOUSER.TABLEITUNG USING UNIQUE EID\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerOpen. Shared connection not available. Creating one.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msConnPoolRegister(tableitung,sdouser/sdouser at GIERSEDB,02621B50)\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerFreeItemInfo was called.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerInitItemInfo was called.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerWhichShapes was called.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT EID, SK, EID, GEOM FROM SDOUSER.TABLEITUNG WHERE EID = 38752 AND SDO_FILTER( GEOM, MDSYS.SDO_GEOMETRY(2003, NULL, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(340466 2,5706718.13,3418395,5717017.88) ),'querytype=window') = 'TRUE'\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerFreeItemInfo was called.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerClose was called. Layer connection: sdouser/sdouser at GIERSEDB\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerClose. Cleaning layerinfo handlers.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerClose. Cleaning Oracle handlers.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msConnPoolRelease(tableitung,sdouser/sdouser at GIERSEDB,02621B50)\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msConnPoolClose(sdouser/sdouser at GIERSEDB,02621B50)\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerOpen called with: GEOM FROM SDOUSER.TABLEITUNG USING UNIQUE EID\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerOpen. Shared connection not available. Creating one.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msConnPoolRegister(tableitung,sdouser/sdouser at GIERSEDB,026136F8)\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerFreeItemInfo was called.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerGetItems was called.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerInitItemInfo was called.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerGetShape was called. Using the record = 38752.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerGetShape. Sql: SELECT X_MANUEL, NAME, LAENGE, SK, EID, SCHACHTOBE, SCHACHTUNT, STRASSE, MATERIAL, PROFILART, PROFILBREI, PROFILHOEH, BAUJAHR, HYDRANG, KOSTENSTEL, X1, Y1, X2, Y2, OBEN, UNTEN, ENTWAESSER, SOHLEOBEN, SOHLEUNTEN, NETZ, GEOM FROM SDOUSER.TABLEITUNG WHERE EID = 38752\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerOpen called with: GEOM FROM SDOUSER.TABLEITUNG USING UNIQUE EID\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerFreeItemInfo was called.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerInitItemInfo was called.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerWhichShapes was called.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT EID, SK, EID, GEOM FROM SDOUSER.TABLEITUNG WHERE EID = 38752 AND SDO_FILTER( GEOM, MDSYS.SDO_GEOMETRY(2003, NULL, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(340466 2,5706718.13,3418395,5717017.88) ),'querytype=window') = 'TRUE'\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerFreeItemInfo was called.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerClose was called. Layer connection: sdouser/sdouser at GIERSEDB\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerClose. Cleaning layerinfo handlers.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerClose. Cleaning Oracle handlers.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msConnPoolRelease(tableitung,sdouser/sdouser at GIERSEDB,026136F8)\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msConnPoolClose(sdouser/sdouser at GIERSEDB,026136F8)\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerOpen called with: GEOM FROM SDOUSER.TABLEITUNG USING UNIQUE EID\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerOpen. Shared connection not available. Creating one.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msConnPoolRegister(tableitung,sdouser/sdouser at GIERSEDB,026136F8)\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerFreeItemInfo was called.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerGetItems was called.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerInitItemInfo was called.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerGetShape was called. Using the record = 38752.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerGetShape. Sql: SELECT X_MANUEL, NAME, LAENGE, SK, EID, SCHACHTOBE, SCHACHTUNT, STRASSE, MATERIAL, PROFILART, PROFILBREI, PROFILHOEH, BAUJAHR, HYDRANG, KOSTENSTEL, X1, Y1, X2, Y2, OBEN, UNTEN, ENTWAESSER, SOHLEOBEN, SOHLEUNTEN, NETZ, GEOM FROM SDOUSER.TABLEITUNG WHERE EID = 38752\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerOpen called with: GEOM FROM SDOUSER.TABLEITUNG USING UNIQUE EID\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerFreeItemInfo was called.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerInitItemInfo was called.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerWhichShapes was called.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: SELECT EID, SK, GEOM FROM SDOUSER.TABLEITUNG WHERE SDO_FILTER( GEOM, MDSYS.SDO_GEOMETRY(2003, NULL, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(340895 3.56,5712292.86,3409605.88,5712782.1) ),'querytype=window') = 'TRUE'\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerFreeItemInfo was called.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerClose was called. Layer connection: sdouser/sdouser at GIERSEDB\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerClose. Cleaning layerinfo handlers.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerClose. Cleaning Oracle handlers.\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msConnPoolRelease(tableitung,sdouser/sdouser at GIERSEDB,026136F8)\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msConnPoolClose(sdouser/sdouser at GIERSEDB,026136F8)\r, referer: http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerClose was called. Layer connection: sdouser/sdouser at GIERSEDB\r, referer: http://localhost/hst/map75.php Best regards Dominik Gierse, Dipl. Ing. (FH) Softwareentwicklung mailto:gierse at systemtechnik.net Tel./Fax: +49 291 9929-70 / 7691 ----------------------------------------------------------------------- Sitz der Gesellschaft: HST Hydro-Systemtechnik GmbH Sophienweg 3 D-59872 Meschede, Germany Tel./Fax: +49 291 9929-0 / 7691 http://www.systemtechnik.net ----------------------------------------------------------------------- Gesch?ftsf?hrer: Dipl.-Ing. Martin Frigger, Dipl.-Ing. Richard Ernst Registergericht: Amtsgericht Arnsberg - HRB 3396 UST-IDNR.: DE 191 917 337 Steuer-Nr.: 334 5706 0269 From szajbel at WIDEMANN.DE Tue Apr 24 06:16:20 2007 From: szajbel at WIDEMANN.DE (Rafael Szajbel) Date: Tue, 24 Apr 2007 15:16:20 +0200 Subject: msResampleGDALToMap<>: no overlap ... no result Message-ID: Hi all, I try to create a map with just one raster image (8bits tiff) using shp2img (from FWTools 1.2.2) and get this error message: msDrawRasterLayerLow: entering. GDAL: GDALOpen succeeds as GTiff. msResampleGDALToMap<>: no overlap ... no result. GDAL: GDALClose Here is my layer definition : LAYER NAME "Orthophotos" STATUS ON DATA "../raster/luftbilder/0339205466_dop5__c_025_m2.tif" TYPE RASTER DEBUG ON END Hope somebody can help! Cheers, Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Tue Apr 24 07:23:36 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 24 Apr 2007 09:23:36 -0500 Subject: symbols - inprecise rendering Message-ID: I wonder if this is due to a rounding bug introduced in 4.6 (I think). I can't see how GDAL would affect things. Any chance you could try 4.10 as a test with your mapfile? Steve >>> "R. M?ller" 04/24/07 3:38 AM >>> Hi, i've got a question concerning rendering symbols in mapserver. I'm working with mapserver 4.6 mostly on linux-based maschines and noticed that under certain circumstances the rendering of point symbols is quit inexactly. in the following test-case i wanted to draw gray-filled circles with a black border. in this case i didn't used the newer style-syntax but the result is quit the same. in the rendered image the two cirlces (inner circle and border are not located in the same origin, one circle is shifted for some pixels) symbol-definition : SYMBOL NAME 'kreis' TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END inside the layer definition : CLASS SYMBOL 'kreis' EXPRESSION "gray" COLOR 0 0 0 SIZE 50 OVERLAYSYMBOL 'kreis' OVERLAYCOLOR 200 200 200 OVERLAYSIZE 35 OVERLAYMAXSIZE 35 MAXSIZE 50 END the data comes from a postgis-database backend, but it doesn't matter. i worked out the following standalone test-case (complete map-file) and the behaviour is the same : MAP NAME 'testy' EXTENT 0 0 800 600 SIZE 501 521 IMAGETYPE PNG SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END LAYER NAME 'kreis' STATUS DEFAULT TYPE POINT FEATURE POINTS 450 150 120 111 450 301 END #POINTS 350 350 END END CLASS STYLE SYMBOL 'circle' SIZE 101 COLOR 0 0 0 END STYLE SYMBOL 'circle' SIZE 94 COLOR 121 121 121 END TEXT 'K0025' END END LAYER NAME 'kreis1' STATUS DEFAULT TRANSPARENCY 50 TYPE POINT FEATURE POINTS 100 450 750 320 131 310 END #POINTS 350 350 END END CLASS STYLE SYMBOL 'circle' SIZE 51 COLOR 0 0 0 END STYLE SYMBOL 'circle' SIZE 35 COLOR 211 121 121 END TEXT 'K0025' END END END i discovered some correlation to the version of used GDAL-library : in one case i used Version 1.3.1 and its rendered correctly (see 3rd pic), in another case i used 1.2.6 and renders incorrectly (see 2nd pic). Can someone confirm this behaviour ? thanks a lot in advance. regards ronald attachments : 1. first example with incorrect rendering 2. standalone mapfile with incorrect rendering (GDAl 1.2.6) 2. standalone mapfile with correct rendering (GDAl 1.3.1) ---- From john.cole at UAI.COM Tue Apr 24 07:53:38 2007 From: john.cole at UAI.COM (John Cole) Date: Tue, 24 Apr 2007 07:53:38 -0700 Subject: symbols - inprecise rendering In-Reply-To: <462DC20A.5070908@unicomp-berlin.de> Message-ID: Ronald, There was an issue with a math library in 4.6-4.8. If you try that in 4.4 or 4.10, that issue isn't there. If the bug tracker is up, you should be able to find more information on it. The issue was a problem with the round function, if I remember correctly and could cause the very problem your seeing. My examples were with squares on squares. John "R. M?ller" wrote: > > Hi, > > i've got a question concerning rendering symbols in mapserver. I'm > working with mapserver 4.6 mostly on linux-based maschines and noticed > that under certain circumstances the rendering of point symbols is quit > inexactly. > > in the following test-case i wanted to draw gray-filled circles with a > black border. in this case i didn't used the newer style-syntax but the > result is quit the same. in the rendered image the two cirlces (inner > circle and border are not located in the same origin, one circle is > shifted for some pixels) > > > -- View this message in context: http://www.nabble.com/symbols---inprecise-rendering-tf3637152.html#a10162624 Sent from the Mapserver - User mailing list archive at Nabble.com. From r.mueller at UNICOMP-BERLIN.DE Tue Apr 24 08:58:59 2007 From: r.mueller at UNICOMP-BERLIN.DE (=?UTF-8?B?IlIuIE3DvGxsZXIi?=) Date: Tue, 24 Apr 2007 17:58:59 +0200 Subject: symbols - inprecise rendering In-Reply-To: <10162624.post@talk.nabble.com> Message-ID: thanx John, for everyone who is interested in : its ticket no #1716 "MS_NINT assembly macro is broken" and as you mentioned its fixed in 4.10 as a quick and dirty hack : look for this block in "map.h" and comment it out : (only if your running mapserver version 4.6!) ------------------BLOCK-START--------------------- #if defined(WE_HAVE_THE_C99_LRINT) # define MS_NINT(x) lrint(x) #elif defined(_MSC_VER) && defined(_WIN32) && !defined(USE_GENERIC_MS_NINT) static __inline long int MS_NINT (double flt) { int intgr; _asm { fld flt fistp intgr } ; return intgr ; } #elif defined(i386) && defined(__GNUC_PREREQ) && !defined(USE_GENERIC_MS_NINT) static __inline long int MS_NINT( double __x ) { long int __lrintres; __asm__ __volatile__ ("fistpl %0" : "=m" (__lrintres) : "t" (__x) : "st"); return __lrintres; } #else # define MS_NINT(x) ((x) >= 0.0 ? ((long) ((x)+.5)) : ((long) ((x)-.5))) #endif ------------------BLOCK-END--------------------- leave only this define statement uncommented #define MS_NINT(x) ((x) >= 0.0 ? ((long) ((x)+.5)) : ((long) ((x)-.5))) and just recompile your mapserver ! regards ronald John Cole schrieb: > Ronald, > There was an issue with a math library in 4.6-4.8. If you try that in 4.4 > or 4.10, that issue isn't there. If the bug tracker is up, you should be > able to find more information on it. > > The issue was a problem with the round function, if I remember correctly > and could cause the very problem your seeing. My examples were with squares > on squares. > > John > > > > "R. M?ller" wrote: >> Hi, >> >> i've got a question concerning rendering symbols in mapserver. I'm >> working with mapserver 4.6 mostly on linux-based maschines and noticed >> that under certain circumstances the rendering of point symbols is quit >> inexactly. >> >> in the following test-case i wanted to draw gray-filled circles with a >> black border. in this case i didn't used the newer style-syntax but the >> result is quit the same. in the rendered image the two cirlces (inner >> circle and border are not located in the same origin, one circle is >> shifted for some pixels) >> >> >> > -- ***************************************************************** *M-UniComp Verkehrssysteme GmbH * *Dipl.-Ing. Ronald M?ller *Softwareentwicklung * *Plauener Stra?e 163-165, Haus 11 *13053 Berlin * *fon : +49 ( 0 ) 30 / 98 31 700 70 *fax : +49 ( 0 ) 30 / 98 31 700 77 *mobil : +49 ( 0 ) 172 / 93 95 004 *email : r.mueller at unicomp-berlin.de *web : www.unicomp-berlin.de * *Geschaeftsfuehrer: Andreas Dreher *Sitz der Gesellschaft: Berlin *Registergericht: Berlin Amtsgericht Charlottenburg, HRB 35329 ***************************************************************** From candalt at ONLINE.NO Tue Apr 24 09:27:29 2007 From: candalt at ONLINE.NO (=?iso-8859-1?Q?Sture_Dings=F8yr?=) Date: Tue, 24 Apr 2007 18:27:29 +0200 Subject: WFS Filter Oracle Message-ID: Hello I've been testing ORACLE 10g Locator and Mapserver. There seem to be an issue when using WFS "PropertyIsLike" filter on an ORACLE 10g Locator layer. My WFS URL is like this: http://test/cgi-bin/mapserv.exe?map=wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&MAXFEATURES=100&TYPENAME=layer_20&FILTER=KOMMUNE*123456* Mapserver the produces this SQL (based on WFS filter): SELECT ID, GEOM FROM (SELECT * FROM V_BE) WHERE KOMMUNE ilike '123456' escape '!' AND SDO_FILTER( GEOM, MDSYS.SDO_GEOMETRY(2003, 32632, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-26932.706,6387567.41,1637291.63,8050226.99) ),'querytype=window') = 'TRUE' In the SQL there are some errors: "ilike '123456'" should be "like '123456'" escape '!' should not be present at all Could this be a bug or is there something wrong with my WFS filter URL? Cheers! Sture From assefa at DMSOLUTIONS.CA Tue Apr 24 09:35:48 2007 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Tue, 24 Apr 2007 12:35:48 -0400 Subject: SWF Output highlight color In-Reply-To: <10035521.post@talk.nabble.com> Message-ID: Hi there, This was entered as ticket 2074 : http://trac.osgeo.org/mapserver/ticket/2074. Fixed in CVS : color comiing from the querymap in the map file is used as highlight color. Later, Rogerio Brito wrote: > Hello! > > How can I change the highlight color for a swf output? It's always red! > There should be a way to change this color,yes? > > Thank you very much > Rogerio -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From mdeblois at MAPLECROFT.NET Tue Apr 24 09:06:03 2007 From: mdeblois at MAPLECROFT.NET (Mark de Blois) Date: Tue, 24 Apr 2007 11:06:03 -0500 Subject: Fw: Mapserver Flash/SWF question Message-ID: Hi there, Can anyone tell me whether the Getmap request will be able to output swf files directly in the future (since the lack of this feature seems to be listed as a bug)? Thanks ahead! Mark de Blois From rogerio.brito at INTERCODE.COM.BR Tue Apr 24 10:00:56 2007 From: rogerio.brito at INTERCODE.COM.BR (Rogerio Brito) Date: Tue, 24 Apr 2007 10:00:56 -0700 Subject: SWF Output highlight color In-Reply-To: <462E31E4.6000102@dmsolutions.ca> Message-ID: Great, thank you. Yewondwossen Assefa wrote: > > Hi there, > > > This was entered as ticket 2074 : > http://trac.osgeo.org/mapserver/ticket/2074. Fixed in CVS : color > comiing from the querymap in the map file is used as highlight color. > > Later, > > Rogerio Brito wrote: >> Hello! >> >> How can I change the highlight color for a swf output? It's always red! >> There should be a way to change this color,yes? >> >> Thank you very much >> Rogerio > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > -- View this message in context: http://www.nabble.com/SWF-Output-highlight-color-tf3590825.html#a10165249 Sent from the Mapserver - User mailing list archive at Nabble.com. From David.Fawcett at STATE.MN.US Tue Apr 24 10:04:17 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 24 Apr 2007 12:04:17 -0500 Subject: Feature Query using buffered points? Message-ID: I am trying to select a point feature by attribute and then use that feature to find other point features located within a 1000 meter radius of the selected point. To do this, I am using itemfeaturequery mode and seting a tolerance on the layer. I am guessing that MapServer just answered my question, but is this possible? The error message seems to indicate that only polys can be used for feature selection. Version is 4.10.1 msQueryByFeatures(): Query error. Selection features MUST be polygons. Thanks, David. From bartvde at OSGIS.NL Tue Apr 24 11:04:23 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Tue, 24 Apr 2007 20:04:23 +0200 Subject: WFS Filter Oracle Message-ID: Hi Sture, if you leave out matchCase='false' in your filter ilike will turn into like. But you should file a bug about this, since ilike is for PostgreSQL. But at least you've got a workaround for now. I believe there is nothing wrong with escape '!', it should be there in case someone wants to escape a character in the search string. Does it not run in sqlplus? If so, what error do you get? Best regards, Bart Hello I've been testing ORACLE 10g Locator and Mapserver. There seem to be an issue when using WFS "PropertyIsLike" filter on an ORACLE 10g Locator layer. My WFS URL is like this: http://test/cgi-bin/mapserv.exe?map=wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&MAXFEATURES=100&TYPENAME=layer_20&FILTER=KOMMUNE*123456* Mapserver the produces this SQL (based on WFS filter): SELECT ID, GEOM FROM (SELECT * FROM V_BE) WHERE KOMMUNE ilike '123456' escape '!' AND SDO_FILTER( GEOM, MDSYS.SDO_GEOMETRY(2003, 32632, NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-26932.706,6387567.41,1637291.63,8050226.99) ),'querytype=window') = 'TRUE' In the SQL there are some errors: "ilike '123456'" should be "like '123456'" escape '!' should not be present at all Could this be a bug or is there something wrong with my WFS filter URL? Cheers! Sture -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl From assefa at DMSOLUTIONS.CA Tue Apr 24 11:45:34 2007 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Tue, 24 Apr 2007 14:45:34 -0400 Subject: WFS Filter Oracle In-Reply-To: Message-ID: There is ticket on this : http://trac.osgeo.org/mapserver/ticket/2075. I have fixed the ilike to be only done for postgis layers. I will wait for Sture answer to see if something has to be done for the escape statement. Later, Bart van den Eijnden (OSGIS) wrote: > Hi Sture, > > if you leave out matchCase='false' in your filter ilike will turn into like. > But you should file a bug about this, since ilike is for PostgreSQL. But at > least you've got a workaround for now. > > I believe there is nothing wrong with escape '!', it should be there in case > someone wants to escape a character in the search string. Does it not run in > sqlplus? If so, what error do you get? > > Best regards, > Bart > > Hello > > I've been testing ORACLE 10g Locator and Mapserver. There seem to be an > issue when using WFS "PropertyIsLike" filter on an ORACLE 10g Locator layer. > > My WFS URL is like this: > http://test/cgi-bin/mapserv.exe?map=wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&MAXFEATURES=100&TYPENAME=layer_20&FILTER= wildcard='*' singleChar='.' escape='!' > matchCase='false'>KOMMUNE*123456* > > Mapserver the produces this SQL (based on WFS filter): > SELECT ID, GEOM FROM (SELECT * FROM V_BE) WHERE KOMMUNE ilike '123456' > escape '!' AND SDO_FILTER( GEOM, MDSYS.SDO_GEOMETRY(2003, 32632, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-26932.706,6387567.41,1637291.63,8050226.99) > ),'querytype=window') = 'TRUE' > > In the SQL there are some errors: > "ilike '123456'" should be "like '123456'" > escape '!' should not be present at all > > Could this be a bug or is there something wrong with my WFS filter URL? > > Cheers! > Sture > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From James.Leveille at MTQ.GOUV.QC.CA Tue Apr 24 11:56:28 2007 From: James.Leveille at MTQ.GOUV.QC.CA (=?iso-8859-1?Q?L=E9veill=E9=2C_James?=) Date: Tue, 24 Apr 2007 14:56:28 -0400 Subject: Variable substitution Message-ID: Hi, I am trying to place a string at a known position. The string must be passed in the URL (variable substitution). I was able to use variable substitution with the FILTER tag. But in this case, I can't make it work with the TEXT tag and found nothing on the list. Anybody knows how to do it ?? Regards LAYER NAME "mylayer" STATUS ON DUMP TRUE EXTENT 30000 75000 1700000 2120000 TYPE ANNOTATION CONNECTIONTYPE OGR CONNECTION "data\mytab.tab" TRANSFORM FALSE FORCE TRUE CLASS TEXT "%xxx%" LABEL TYPE TRUETYPE FONT "verdana" SIZE 10 POSITION LR COLOR 0 0 0 OUTLINECOLOR 255 255 255 FORCE TRUE END END END ______________________________________________________ JAMES L?VEILL? Service des syst?mes de Mission Direction des technologies de l'information Minist?re des Transports du Qu?bec 5833, boul. Pierre-Bertrand, 2i?me ?tage Qu?bec (Qu?bec) G2K 1K7 T?l?phone: (418) 380-2005 poste 227 T?l?copieur: (418) 644-6653 james.leveille at mtq.gouv.qc.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Tue Apr 24 12:13:45 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 24 Apr 2007 15:13:45 -0400 Subject: msResampleGDALToMap<>: no overlap ... no result In-Reply-To: <009801c78672$c01df150$be14a8c0@SZAJBEL> Message-ID: Rafael Szajbel wrote: > Hi all, > > I try to create a map with just one raster image (8bits tiff) using > shp2img (from FWTools 1.2.2) and get this error message: > > msDrawRasterLayerLow: entering. > GDAL: GDALOpen succeeds as GTiff. > msResampleGDALToMap<>: no overlap ... no result. > GDAL: GDALClose > > Here is my layer definition : > > LAYER > NAME "Orthophotos" > STATUS ON > DATA "../raster/luftbilder/0339205466_dop5__c_025_m2.tif" > TYPE RASTER > DEBUG ON > END > > Hope somebody can help! Rafael, The message means essentially what it says. As far as the software can tell there is no overlap between the map region requested, and the region covered by the TIFF file. I would encourage you to review the extents you requested, the extents reported by gdalinfo for the file, and the coordinate system information on the map (or in the request) and for the layer. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From rdmailings at DUIF.NET Tue Apr 24 13:28:41 2007 From: rdmailings at DUIF.NET (Richard Duivenvoorde) Date: Tue, 24 Apr 2007 22:28:41 +0200 Subject: Variable substitution In-Reply-To: <2F86ED212F3E164EB9FBB2E68C67858E049957DE@SINFRA0-EXC003.MTQ.MIN.INTRA> Message-ID: Hi James, I've been fiddling with this also. But in http://mapserver.gis.umn.edu/docs/reference/mapfile/variable_sub/ it states that since Mapserver 4.10.1 the only keywords that support variable substitution are: DATA TILEINDEX CONNECTION FILTER and EXPRESSION Don't know if somebody can confirm that? Richard Duivenvoorde L?veill? wrote: > Hi, > > I am trying to place a string at a known position. > The string must be passed in the URL (variable substitution). > > I was able to use variable substitution with the FILTER tag. > But in this case, I can't make it work with the TEXT tag and found > nothing on the list. > > Anybody knows how to do it ?? > > Regards > > > > LAYER > > NAME "mylayer" > STATUS ON > DUMP TRUE > > EXTENT 30000 75000 1700000 2120000 > TYPE ANNOTATION > > CONNECTIONTYPE OGR > CONNECTION "data\mytab.tab" > TRANSFORM FALSE > FORCE TRUE > > CLASS > TEXT "%xxx%" > > LABEL > TYPE TRUETYPE > FONT "verdana" > SIZE 10 > POSITION LR > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > FORCE TRUE > END > END > > END > > > ______________________________________________________ > > *JAMES L?VEILL? > *Service des syst?mes de Mission > Direction des technologies de l'information > Minist?re des Transports du Qu?bec > > 5833, boul. Pierre-Bertrand, 2i?me ?tage > Qu?bec (Qu?bec) G2K 1K7 > T?l?phone: (418) 380-2005 poste 227 > T?l?copieur: (418) 644-6653 > james.leveille at mtq.gouv.qc.ca > > > > From rdmailings at DUIF.NET Tue Apr 24 13:50:40 2007 From: rdmailings at DUIF.NET (Richard Duivenvoorde) Date: Tue, 24 Apr 2007 22:50:40 +0200 Subject: [UMN_MAPSERVER-USERS] Variable substitution In-Reply-To: <2F86ED212F3E164EB9FBB2E68C67858E049957DF@SINFRA0-EXC003.MTQ.MIN.INTRA> Message-ID: Uhm, very interesting. I it working? I'll cc this to the list also. Richard L?veill? wrote: > Hi Richard, > > Here is something very interesting that solved my problem - might help you > as well ... > > http://mapserver.gis.umn.edu/docs/reference/cgi/referencemanual-all-pages > > See section "Changing map file parameters via a form or a URL" > > > > > ______________________________________________________ > JAMES L?VEILL? > Service des syst?mes de Mission > Direction des technologies de l'information > Minist?re des Transports du Qu?bec > 5833, boul. Pierre-Bertrand, 2i?me ?tage > Qu?bec (Qu?bec) G2K 1K7 > T?l?phone: (418) 380-2005 poste 227 > T?l?copieur: (418) 644-6653 > james.leveille at mtq.gouv.qc.ca > > > > > -----Message d'origine----- > De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la > part de Richard Duivenvoorde > Envoy? : 24 avril 2007 16:29 > ? : MAPSERVER-USERS at LISTS.UMN.EDU > Objet : Re: [UMN_MAPSERVER-USERS] Variable substitution > > > Hi James, > > I've been fiddling with this also. But in > http://mapserver.gis.umn.edu/docs/reference/mapfile/variable_sub/ > it states that since Mapserver 4.10.1 the only keywords that support > variable substitution are: DATA TILEINDEX CONNECTION FILTER and EXPRESSION > Don't know if somebody can confirm that? > > Richard Duivenvoorde > > L?veill? wrote: >> Hi, >> >> I am trying to place a string at a known position. >> The string must be passed in the URL (variable substitution). >> >> I was able to use variable substitution with the FILTER tag. But in >> this case, I can't make it work with the TEXT tag and found nothing on >> the list. >> >> Anybody knows how to do it ?? >> >> Regards >> >> >> >> LAYER >> >> NAME "mylayer" >> STATUS ON >> DUMP TRUE >> >> EXTENT 30000 75000 1700000 2120000 >> TYPE ANNOTATION >> >> CONNECTIONTYPE OGR >> CONNECTION "data\mytab.tab" >> TRANSFORM FALSE >> FORCE TRUE >> >> CLASS >> TEXT "%xxx%" >> >> LABEL >> TYPE TRUETYPE >> FONT "verdana" >> SIZE 10 >> POSITION LR >> COLOR 0 0 0 >> OUTLINECOLOR 255 255 255 >> FORCE TRUE >> END >> END >> >> END >> >> >> ______________________________________________________ >> >> *JAMES L?VEILL? >> *Service des syst?mes de Mission >> Direction des technologies de l'information >> Minist?re des Transports du Qu?bec >> >> 5833, boul. Pierre-Bertrand, 2i?me ?tage >> Qu?bec (Qu?bec) G2K 1K7 >> T?l?phone: (418) 380-2005 poste 227 >> T?l?copieur: (418) 644-6653 >> james.leveille at mtq.gouv.qc.ca >> >> >> >> > > > From dmorissette at MAPGEARS.COM Tue Apr 24 14:03:53 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Tue, 24 Apr 2007 17:03:53 -0400 Subject: Variable substitution In-Reply-To: <462E6879.1000201@duif.net> Message-ID: I can confirm that %variable% substitution doesn't work for the label text parameter, but it should be possible to set it using the "map_layer_..." URL syntax as described in: http://mapserver.gis.umn.edu/docs/reference/cgi/controls Look for section "Changing map file parameters via a form or a URL" at the end of this document. Daniel Richard Duivenvoorde wrote: > Hi James, > > I've been fiddling with this also. But in > http://mapserver.gis.umn.edu/docs/reference/mapfile/variable_sub/ > it states that since Mapserver 4.10.1 the only keywords that support > variable substitution are: DATA TILEINDEX CONNECTION FILTER and EXPRESSION > Don't know if somebody can confirm that? > > Richard Duivenvoorde > > L?veill? wrote: >> Hi, >> >> I am trying to place a string at a known position. >> The string must be passed in the URL (variable substitution). >> >> I was able to use variable substitution with the FILTER tag. >> But in this case, I can't make it work with the TEXT tag and found >> nothing on the list. >> >> Anybody knows how to do it ?? >> >> Regards >> >> >> >> LAYER >> >> NAME "mylayer" >> STATUS ON >> DUMP TRUE >> >> EXTENT 30000 75000 1700000 2120000 >> TYPE ANNOTATION >> >> CONNECTIONTYPE OGR >> CONNECTION "data\mytab.tab" >> TRANSFORM FALSE >> FORCE TRUE >> >> CLASS >> TEXT "%xxx%" >> >> LABEL >> TYPE TRUETYPE >> FONT "verdana" >> SIZE 10 >> POSITION LR >> COLOR 0 0 0 >> OUTLINECOLOR 255 255 255 >> FORCE TRUE >> END >> END >> >> END >> >> >> ______________________________________________________ >> >> *JAMES L?VEILL? >> *Service des syst?mes de Mission >> Direction des technologies de l'information >> Minist?re des Transports du Qu?bec >> >> 5833, boul. Pierre-Bertrand, 2i?me ?tage >> Qu?bec (Qu?bec) G2K 1K7 >> T?l?phone: (418) 380-2005 poste 227 >> T?l?copieur: (418) 644-6653 >> james.leveille at mtq.gouv.qc.ca >> >> >> >> -- Daniel Morissette http://www.mapgears.com/ From jdege at KORTERRA.COM Tue Apr 24 15:08:21 2007 From: jdege at KORTERRA.COM (Jeff Dege) Date: Tue, 24 Apr 2007 17:08:21 -0500 Subject: Simplified state outline data? Message-ID: We have an app that needs to generate a map with state outlines, but needs to keep the total amount of data as small as possible. Fortunately, we don't need precision, a rough approximation of the outlines is fine. Does anyone know of a source of approximate state outline data? Alternatively, does anyone know of a tool I can use to reduce the number of points in a geometric feature, while retaining the general outline? Something that would take a complicated boundary drawn with points every 100 meters and return a simplified boundary drawn with points every 10 kilometers? From candalt at ONLINE.NO Tue Apr 24 15:26:57 2007 From: candalt at ONLINE.NO (=?iso-8859-1?Q?Sture_Dings=F8yr?=) Date: Wed, 25 Apr 2007 00:26:57 +0200 Subject: WFS Filter Oracle Message-ID: Hi again Thanx for answer :-) I've tested again with excluding the "matchCase='false'" property in my "PropertyIsLike" search, and now "like" is used in my SQL statement as you say Bart, and also the WFS filter is working. But this leads me to another question: will there be added support for the "matchCase='false'" parameter when using Oracle? Cheers Sture There is ticket on this : http://trac.osgeo.org/mapserver/ticket/2075. I have fixed the ilike to be only done for postgis layers. I will wait for Sture answer to see if something has to be done for the escape statement. Later, Bart van den Eijnden (OSGIS) wrote: > Hi Sture, > > if you leave out matchCase='false' in your filter ilike will turn into like. > But you should file a bug about this, since ilike is for PostgreSQL. > But at least you've got a workaround for now. > > I believe there is nothing wrong with escape '!', it should be there > in case someone wants to escape a character in the search string. Does > it not run in sqlplus? If so, what error do you get? > > Best regards, > Bart > > Hello > > I've been testing ORACLE 10g Locator and Mapserver. There seem to be > an issue when using WFS "PropertyIsLike" filter on an ORACLE 10g Locator layer. > > My WFS URL is like this: > http://test/cgi-bin/mapserv.exe?map=wfs.map&SERVICE=WFS&VERSION=1.0.0& > REQUEST=getfeature&MAXFEATURES=100&TYPENAME=layer_20&FILTER=

ropertyIsLike wildcard='*' singleChar='.' escape='!' > matchCase='false'>KOMMUNE*123456 > * > > Mapserver the produces this SQL (based on WFS filter): > SELECT ID, GEOM FROM (SELECT * FROM V_BE) WHERE KOMMUNE ilike '123456' > escape '!' AND SDO_FILTER( GEOM, MDSYS.SDO_GEOMETRY(2003, 32632, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-269 > 32.706,6387567.41,1637291.63,8050226.99) > ),'querytype=window') = 'TRUE' > > In the SQL there are some errors: > "ilike '123456'" should be "like '123456'" > escape '!' should not be present at all > > Could this be a bug or is there something wrong with my WFS filter URL? > > Cheers! > Sture > -- > Bart van den Eijnden > OSGIS, Open Source GIS > http://www.osgis.nl > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From aaronr at Z-PULLEY.COM Tue Apr 24 17:17:39 2007 From: aaronr at Z-PULLEY.COM (Aaron Racicot) Date: Tue, 24 Apr 2007 17:17:39 -0700 Subject: Simplified state outline data? In-Reply-To: <34E056CD4D475841B8C9ABCE956F92F637091C@mrburns.KorOffice.local> Message-ID: You can load [1] the data into PostGIS and use the simplify function [2] to create a simplified geometry, and even dump back to shapefile [3] if you wish. [1] - http://postgis.refractions.net/docs/ch04.html#id2707142 [2] - http://postgis.refractions.net/docs/ch06.html#id2712912 [3] - http://postgis.refractions.net/docs/ch04.html#id2707567 A +----------------------------------------+ Aaron Racicot - GIS Programmer 360.221.2441 - aaronr at ecotrust.org +----------------------------------------+ e c o t r u s t pobox 1614 langley wa 98260 www.ecotrust.org +----------------------------------------+ -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff Dege Sent: Tuesday, April 24, 2007 3:08 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Simplified state outline data? We have an app that needs to generate a map with state outlines, but needs to keep the total amount of data as small as possible. Fortunately, we don't need precision, a rough approximation of the outlines is fine. Does anyone know of a source of approximate state outline data? Alternatively, does anyone know of a tool I can use to reduce the number of points in a geometric feature, while retaining the general outline? Something that would take a complicated boundary drawn with points every 100 meters and return a simplified boundary drawn with points every 10 kilometers? From szajbel at WIDEMANN.DE Wed Apr 25 02:18:36 2007 From: szajbel at WIDEMANN.DE (Rafael Szajbel) Date: Wed, 25 Apr 2007 11:18:36 +0200 Subject: msResampleGDALToMap<>: no overlap ... no result Message-ID: Thank you very much for explanation. I corrected the extent in my mapfile and now the raster image appears. Rafael From: Frank Warmerdam To: Rafael Szajbel Cc: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Tuesday, April 24, 2007 9:13 PM Subject: Re: [UMN_MAPSERVER-USERS] msResampleGDALToMap<>: no overlap ... no result Rafael Szajbel wrote: > Hi all, > > I try to create a map with just one raster image (8bits tiff) using > shp2img (from FWTools 1.2.2) and get this error message: > > msDrawRasterLayerLow: entering. > GDAL: GDALOpen succeeds as GTiff. > msResampleGDALToMap<>: no overlap ... no result. > GDAL: GDALClose > > Here is my layer definition : > > LAYER > NAME "Orthophotos" > STATUS ON > DATA "../raster/luftbilder/0339205466_dop5__c_025_m2.tif" > TYPE RASTER > DEBUG ON > END > > Hope somebody can help! Rafael, The message means essentially what it says. As far as the software can tell there is no overlap between the map region requested, and the region covered by the TIFF file. I would encourage you to review the extents you requested, the extents reported by gdalinfo for the file, and the coordinate system information on the map (or in the request) and for the layer. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From bengt.nilsson at COMBITECH.SE Wed Apr 25 02:46:40 2007 From: bengt.nilsson at COMBITECH.SE (Nilsson Bengt) Date: Wed, 25 Apr 2007 11:46:40 +0200 Subject: How to pre-render large maps Message-ID: Hi, Can anyone pls give me a hint of a tool that can render lagre maps (that will be tailed). My current data is in a postgis DB, in lat-lon. Regards Bengt -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.cole at UAI.COM Wed Apr 25 05:50:50 2007 From: john.cole at UAI.COM (John Cole) Date: Wed, 25 Apr 2007 05:50:50 -0700 Subject: How to pre-render large maps In-Reply-To: Message-ID: I suppose that depends entirely on how you intend on displaying it. Have you looked at http://www.tilecache.org/ it will tile any WMS source and works great. John Nilsson Bengt wrote: > > Hi, > > Can anyone pls give me a hint of a tool that can render lagre maps (that > will be tailed). My current data is in a postgis DB, in lat-lon. > > Regards Bengt > > -- View this message in context: http://www.nabble.com/How-to-pre-render-large-maps-tf3644497.html#a10180007 Sent from the Mapserver - User mailing list archive at Nabble.com. From jdege at KORTERRA.COM Wed Apr 25 07:25:57 2007 From: jdege at KORTERRA.COM (Jeff Dege) Date: Wed, 25 Apr 2007 09:25:57 -0500 Subject: Simplified state outline data? In-Reply-To: A<20070425001738.DD54087C64@spunkymail-a2.g.dreamhost.com> Message-ID: We're not running PostGIS, we're not running PostgresSQL. Though we may start, if this turns out to be the easiest way to handle these problems. > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Aaron Racicot > Sent: Tuesday, April 24, 2007 7:18 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Simplified state outline data? > > You can load [1] the data into PostGIS and use the simplify > function [2] to > create a simplified geometry, and even dump back to shapefile > [3] if you > wish. > > [1] - http://postgis.refractions.net/docs/ch04.html#id2707142 > [2] - http://postgis.refractions.net/docs/ch06.html#id2712912 > [3] - http://postgis.refractions.net/docs/ch04.html#id2707567 > > A > > > +----------------------------------------+ > Aaron Racicot - GIS Programmer > 360.221.2441 - aaronr at ecotrust.org > +----------------------------------------+ > e c o t r u s t > pobox 1614 > langley wa 98260 > www.ecotrust.org > +----------------------------------------+ > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Jeff Dege > Sent: Tuesday, April 24, 2007 3:08 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Simplified state outline data? > > We have an app that needs to generate a map with state outlines, but > needs to keep the total amount of data as small as possible. > > Fortunately, we don't need precision, a rough approximation of the > outlines is fine. > > Does anyone know of a source of approximate state outline data? > > Alternatively, does anyone know of a tool I can use to reduce > the number > of points in a geometric feature, while retaining the general outline? > Something that would take a complicated boundary drawn with > points every > 100 meters and return a simplified boundary drawn with points every 10 > kilometers? > From Jukka.Rahkonen at MMMTIKE.FI Wed Apr 25 07:36:51 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Wed, 25 Apr 2007 17:36:51 +0300 Subject: Simplified state outline data? In-Reply-To: A<34E056CD4D475841B8C9ABCE956F92F6370920@mrburns.KorOffice.local> Message-ID: Hi, Open Jump (www.openjump.org) seems to have a couple or menu selections for generalisation and it reads (and writes) shapefiles. I have never tried those tools myself, though. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Puolesta Jeff Dege > L?hetetty: 25. huhtikuuta 2007 17:26 > Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU > Aihe: Re: [UMN_MAPSERVER-USERS] Simplified state outline data? > > We're not running PostGIS, we're not running PostgresSQL. > > Though we may start, if this turns out to be the easiest way > to handle these problems. > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Aaron Racicot > > Sent: Tuesday, April 24, 2007 7:18 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] Simplified state outline data? > > > > You can load [1] the data into PostGIS and use the simplify > function > > [2] to create a simplified geometry, and even dump back to > shapefile > > [3] if you wish. > > > > [1] - http://postgis.refractions.net/docs/ch04.html#id2707142 > > [2] - http://postgis.refractions.net/docs/ch06.html#id2712912 > > [3] - http://postgis.refractions.net/docs/ch04.html#id2707567 > > > > A > > > > > > +----------------------------------------+ > > Aaron Racicot - GIS Programmer > > 360.221.2441 - aaronr at ecotrust.org > > +----------------------------------------+ > > e c o t r u s t > > pobox 1614 > > langley wa 98260 > > www.ecotrust.org > > +----------------------------------------+ > > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff Dege > > Sent: Tuesday, April 24, 2007 3:08 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] Simplified state outline data? > > > > We have an app that needs to generate a map with state > outlines, but > > needs to keep the total amount of data as small as possible. > > > > Fortunately, we don't need precision, a rough approximation of the > > outlines is fine. > > > > Does anyone know of a source of approximate state outline data? > > > > Alternatively, does anyone know of a tool I can use to reduce the > > number of points in a geometric feature, while retaining > the general > > outline? > > Something that would take a complicated boundary drawn with points > > every 100 meters and return a simplified boundary drawn with points > > every 10 kilometers? > > > From gierse at SYSTEMTECHNIK.NET Wed Apr 25 07:43:30 2007 From: gierse at SYSTEMTECHNIK.NET (Dominik Gierse) Date: Wed, 25 Apr 2007 16:43:30 +0200 Subject: AW: [UMN_MAPSERVER-USERS] AW: [UMN_MAPSERVER-USERS] Error in drawquery with OracleSpatiall In-Reply-To: <462F4FFB.9060702@univali.br> Message-ID: Hi Fernando, I found the mistakes. I?ve got a function to zoom in to all the selected shapes. I use my searchlayer to perform the query and then i open it to get the extends of the selected shapes. But i didn?t close my searchlayer. You get this error when you perform another query on this layer before you close it. Tanks for your help !! mit freundlichen Gr??en Dominik Gierse, Dipl. Ing. (FH) Softwareentwicklung mailto:gierse at systemtechnik.net Tel./Fax: +49 291 9929-70 / 7691 ----------------------------------------------------------------------- Sitz der Gesellschaft: HST Hydro-Systemtechnik GmbH Sophienweg 3 D-59872 Meschede, Germany Tel./Fax: +49 291 9929-0 / 7691 http://www.systemtechnik.net ----------------------------------------------------------------------- Gesch?ftsf?hrer: Dipl.-Ing. Martin Frigger, Dipl.-Ing. Richard Ernst Registergericht: Amtsgericht Arnsberg - HRB 3396 UST-IDNR.: DE 191 917 337 Steuer-Nr.: 334 5706 0269 -----Urspr?ngliche Nachricht----- Von: Fernando Simon [mailto:fsimon at univali.br] Gesendet: Mittwoch, 25. April 2007 14:56 An: Dominik Gierse Betreff: Re: [UMN_MAPSERVER-USERS] AW: [UMN_MAPSERVER-USERS] Error in drawquery with OracleSpatiall Hi Dominik, In the begin of this year another Oracle spatial user sent a message with a relate fetch error. On error, in that case, was with the UNIQUE column defined. The length of the data stored was bigger than 10 digits and had some duplicated data. In your case, the EID column store unique values, right? Another relate error can be with can be with the open() and close() fro the layer that you used. These functions are used to open and close some handlers for the used connection. You can find some info in the PHPMapscript reference. I will forward some messages (and the code) that I sent the user with the drawquery() problem. See below. "....The first is with the drawQuery, this method perform a query in all layers of the mapObj. This method need to be apply in the mapObj, just draw an image when you use the query methods for the mapObj. When you call with just the layer query's (how you how in your code) the return will be a null imgObj...." "....To perform the tests I use a PHP application (and the mapfile) that I attached, in these you have some example of function to use the getShape, and the query modes in a layerObj. In the code exist another function that perform a query in the mapobj, to have a drawQuery you need the QUERYMA defined in your Mapfile. You can use this application to test your code, you can change it without problem (just reference the source if you share it :) ). The functions that you need to check are query_map and query_point, in both you can see all the modes that I used, querybypoint, querybyshape, querybyattribute...." "....In my Mapfile I used FILTER, but you can forget it without problem, it is not a requirement. The drawQuery work correctly, but it will generate and image as result, this image is controlled by the QUERYMAP parameters defined in the Mapfile, the image that is generate by the drawQuery is use as a reference from the selected objects, it is very useful for templates in CGI mode but not common in Mapscript mode of Mapsever. I don't believe that the drawQuery will help you, if you just want to show in the map the selected objects you can use the same approach that I used. How you see in my code I created a new layer object, this layer is just valid for Mapscript, will not appear in the Mapfile, and is valid until the end of the execution of the PHP script. So, I just copy (clone) the objects that was found to this new layer...." Best regards from Brazil. ------------------------------------------------- Fernando Simon UMN Mapserver and Oracle Spatial developer ------------------------------------------------- Dominik Gierse wrote: > Hi Fernando, > > thanks for your reply. > I use a query to get information about the objects selected and > highlight these objects. > > > // resArr1 is an array with the ID?s selected > > foreach($resArr1 as $ID) { > @$mysearchLayer->queryByAttributes("EID", "EID = " . $ID, > MS_MULTIPLE); > } > $ANZ = $mysearchLayer->getNumResults(); > . > . > //Setting the map-extends > . > . > $img = $gpoMap->drawQuery(); // this is the line with der Error > > > And here?s the log. Ist very long, but i dont want to delete important > information > > First call with zoom > > [Tue Apr 24 15:32:04 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerOpen called with: GEOM FROM SDOUSER.TABLEITUNG > USING UNIQUE EID\r, referer: http://localhost/hst/map75.php [Tue Apr > 24 15:32:04 2007] [error] [client 127.0.0.1] msOracleSpatialLayerOpen. > Shared connection not available. Creating one.\r, referer: > http://localhost/hst/map75.php [Tue Apr 24 15:32:04 2007] [error] > [client 127.0.0.1] > msConnPoolRegister(tableitung,sdouser/sdouser at GIERSEDB,023F3660)\r, > referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:04 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerFreeItemInfo was called.\r, referer: > http://localhost/hst/map75.php [Tue Apr 24 15:32:04 2007] [error] > [client 127.0.0.1] msOracleSpatialLayerInitItemInfo was called.\r, > referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:04 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerWhichShapes was called.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:04 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: > SELECT EID, SK, GEOM FROM SDOUSER.TABLEITUNG WHERE SDO_FILTER( GEOM, > MDSYS.SDO_GEOMETRY(2003, NULL, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(340895 > 3.56,5712292.86,3409605.88,5712782.1) ),'querytype=window') = 'TRUE'\r, > referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:04 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerFreeItemInfo was called.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:04 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerClose was called. Layer connection: > sdouser/sdouser at GIERSEDB\r, referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:04 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerClose. Cleaning layerinfo handlers.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:04 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerClose. Cleaning Oracle handlers.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:04 2007] [error] [client 127.0.0.1] > msConnPoolRelease(tableitung,sdouser/sdouser at GIERSEDB,023F3660)\r, > referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:04 2007] [error] [client 127.0.0.1] > msConnPoolClose(sdouser/sdouser at GIERSEDB,023F3660)\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:04 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerClose was called. Layer connection: > sdouser/sdouser at GIERSEDB\r, referer: http://localhost/hst/map75.php > > Second call with query > > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerOpen called with: GEOM FROM SDOUSER.TABLEITUNG > USING UNIQUE EID\r, referer: http://localhost/hst/map75.php [Tue Apr > 24 15:32:57 2007] [error] [client 127.0.0.1] msOracleSpatialLayerOpen. > Shared connection not available. Creating one.\r, referer: > http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] > [client 127.0.0.1] > msConnPoolRegister(tableitung,sdouser/sdouser at GIERSEDB,021E8588)\r, > referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerFreeItemInfo was called.\r, referer: > http://localhost/hst/map75.php [Tue Apr 24 15:32:57 2007] [error] > [client 127.0.0.1] msOracleSpatialLayerInitItemInfo was called.\r, > referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerWhichShapes was called.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: > SELECT EID, SK, GEOM FROM SDOUSER.TABLEITUNG WHERE SDO_FILTER( GEOM, > MDSYS.SDO_GEOMETRY(2003, NULL, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(340930 > 8.86,5712666.1,3409328.86,5712686.1) ),'querytype=window') = 'TRUE'\r, > referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerFreeItemInfo was called.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerClose was called. Layer connection: > sdouser/sdouser at GIERSEDB\r, referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerClose. Cleaning layerinfo handlers.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerClose. Cleaning Oracle handlers.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msConnPoolRelease(tableitung,sdouser/sdouser at GIERSEDB,021E8588)\r, > referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msConnPoolClose(sdouser/sdouser at GIERSEDB,021E8588)\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerOpen called with: GEOM FROM SDOUSER.TABLEITUNG USING > UNIQUE EID\r, referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerOpen. Shared connection not available. Creating > one.\r, referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msConnPoolRegister(tableitung,sdouser/sdouser at GIERSEDB,02644528)\r, > referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerFreeItemInfo was called.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerGetItems was called.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerInitItemInfo was called.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerGetShape was called. Using the record = 38752.\r, > referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerGetShape. Sql: SELECT X_MANUEL, NAME, LAENGE, SK, > EID, SCHACHTOBE, SCHACHTUNT, STRASSE, MATERIAL, PROFILART, PROFILBREI, > PROFILHOEH, BAUJAHR, HYDRANG, KOSTENSTEL, X1, Y1, X2, Y2, OBEN, UNTEN, > ENTWAESSER, SOHLEOBEN, SOHLEUNTEN, NETZ, GEOM FROM SDOUSER.TABLEITUNG > WHERE EID = 38752\r, referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerFreeItemInfo was called.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerClose was called. Layer connection: > sdouser/sdouser at GIERSEDB\r, referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerClose. Cleaning layerinfo handlers.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerClose. Cleaning Oracle handlers.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msConnPoolRelease(tableitung,sdouser/sdouser at GIERSEDB,02644528)\r, > referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msConnPoolClose(sdouser/sdouser at GIERSEDB,02644528)\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerOpen called with: GEOM FROM SDOUSER.TABLEITUNG USING > UNIQUE EID\r, referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerOpen. Shared connection not available. Creating > one.\r, referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msConnPoolRegister(tableitung,sdouser/sdouser at GIERSEDB,02621B50)\r, > referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerFreeItemInfo was called.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerInitItemInfo was called.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerWhichShapes was called.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: > SELECT EID, SK, EID, GEOM FROM SDOUSER.TABLEITUNG WHERE EID = 38752 AND > SDO_FILTER( GEOM, MDSYS.SDO_GEOMETRY(2003, NULL, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(340466 > 2,5706718.13,3418395,5717017.88) ),'querytype=window') = 'TRUE'\r, > referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerFreeItemInfo was called.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerClose was called. Layer connection: > sdouser/sdouser at GIERSEDB\r, referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerClose. Cleaning layerinfo handlers.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerClose. Cleaning Oracle handlers.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msConnPoolRelease(tableitung,sdouser/sdouser at GIERSEDB,02621B50)\r, > referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msConnPoolClose(sdouser/sdouser at GIERSEDB,02621B50)\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerOpen called with: GEOM FROM SDOUSER.TABLEITUNG USING > UNIQUE EID\r, referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerOpen. Shared connection not available. Creating > one.\r, referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msConnPoolRegister(tableitung,sdouser/sdouser at GIERSEDB,026136F8)\r, > referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerFreeItemInfo was called.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerGetItems was called.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerInitItemInfo was called.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerGetShape was called. Using the record = 38752.\r, > referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerGetShape. Sql: SELECT X_MANUEL, NAME, LAENGE, SK, > EID, SCHACHTOBE, SCHACHTUNT, STRASSE, MATERIAL, PROFILART, PROFILBREI, > PROFILHOEH, BAUJAHR, HYDRANG, KOSTENSTEL, X1, Y1, X2, Y2, OBEN, UNTEN, > ENTWAESSER, SOHLEOBEN, SOHLEUNTEN, NETZ, GEOM FROM SDOUSER.TABLEITUNG > WHERE EID = 38752\r, referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerOpen called with: GEOM FROM SDOUSER.TABLEITUNG USING > UNIQUE EID\r, referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerFreeItemInfo was called.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerInitItemInfo was called.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerWhichShapes was called.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: > SELECT EID, SK, EID, GEOM FROM SDOUSER.TABLEITUNG WHERE EID = 38752 AND > SDO_FILTER( GEOM, MDSYS.SDO_GEOMETRY(2003, NULL, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(340466 > 2,5706718.13,3418395,5717017.88) ),'querytype=window') = 'TRUE'\r, > referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerFreeItemInfo was called.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerClose was called. Layer connection: > sdouser/sdouser at GIERSEDB\r, referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerClose. Cleaning layerinfo handlers.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerClose. Cleaning Oracle handlers.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msConnPoolRelease(tableitung,sdouser/sdouser at GIERSEDB,026136F8)\r, > referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msConnPoolClose(sdouser/sdouser at GIERSEDB,026136F8)\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerOpen called with: GEOM FROM SDOUSER.TABLEITUNG USING > UNIQUE EID\r, referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerOpen. Shared connection not available. Creating > one.\r, referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msConnPoolRegister(tableitung,sdouser/sdouser at GIERSEDB,026136F8)\r, > referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerFreeItemInfo was called.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerGetItems was called.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerInitItemInfo was called.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerGetShape was called. Using the record = 38752.\r, > referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerGetShape. Sql: SELECT X_MANUEL, NAME, LAENGE, SK, > EID, SCHACHTOBE, SCHACHTUNT, STRASSE, MATERIAL, PROFILART, PROFILBREI, > PROFILHOEH, BAUJAHR, HYDRANG, KOSTENSTEL, X1, Y1, X2, Y2, OBEN, UNTEN, > ENTWAESSER, SOHLEOBEN, SOHLEUNTEN, NETZ, GEOM FROM SDOUSER.TABLEITUNG > WHERE EID = 38752\r, referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerOpen called with: GEOM FROM SDOUSER.TABLEITUNG USING > UNIQUE EID\r, referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerFreeItemInfo was called.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerInitItemInfo was called.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerWhichShapes was called.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data: > SELECT EID, SK, GEOM FROM SDOUSER.TABLEITUNG WHERE SDO_FILTER( GEOM, > MDSYS.SDO_GEOMETRY(2003, NULL, > NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(340895 > 3.56,5712292.86,3409605.88,5712782.1) ),'querytype=window') = 'TRUE'\r, > referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerFreeItemInfo was called.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerClose was called. Layer connection: > sdouser/sdouser at GIERSEDB\r, referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerClose. Cleaning layerinfo handlers.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerClose. Cleaning Oracle handlers.\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msConnPoolRelease(tableitung,sdouser/sdouser at GIERSEDB,026136F8)\r, > referer: http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msConnPoolClose(sdouser/sdouser at GIERSEDB,026136F8)\r, referer: > http://localhost/hst/map75.php > [Tue Apr 24 15:32:57 2007] [error] [client 127.0.0.1] > msOracleSpatialLayerClose was called. Layer connection: > sdouser/sdouser at GIERSEDB\r, referer: http://localhost/hst/map75.php > > Best regards > > Dominik Gierse, Dipl. Ing. (FH) > Softwareentwicklung > mailto:gierse at systemtechnik.net > Tel./Fax: +49 291 9929-70 / 7691 > ----------------------------------------------------------------------- > Sitz der Gesellschaft: > HST Hydro-Systemtechnik GmbH > Sophienweg 3 > D-59872 Meschede, Germany > Tel./Fax: +49 291 9929-0 / 7691 > http://www.systemtechnik.net > ----------------------------------------------------------------------- > Gesch?ftsf?hrer: Dipl.-Ing. Martin Frigger, Dipl.-Ing. Richard Ernst > Registergericht: Amtsgericht Arnsberg - HRB 3396 > UST-IDNR.: DE 191 917 337 > Steuer-Nr.: 334 5706 0269 > > > From gisaalter at GMAIL.COM Wed Apr 25 08:05:28 2007 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Wed, 25 Apr 2007 17:05:28 +0200 Subject: GetCapabilities request results in download mapserv.exe Message-ID: Altough this has been handled before: http://www.nabble.com/Enabling-WMS-service-on-MapServer-t3440626.html I'm experiencing the same problem. Yet, when I try to open the resulting mapserv.exe file it opens a (so it seems) perfect capabilities-document ( not an error-document) Running my app on several pc's results in not showing up the WMS. I don't know if the above problem is related to this. Anyone experiencing the same ? I try to make mapserver make a capabilities document which is viewable in the browser... Thanks! From Tom.Kralidis at EC.GC.CA Wed Apr 25 08:36:30 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 25 Apr 2007 11:36:30 -0400 Subject: GetCapabilities request results in download mapserv.exe Message-ID: > > Altough this has been handled before: > http://www.nabble.com/Enabling-WMS-service-on-MapServer-t3440626.html > I'm experiencing the same problem. > Yet, when I try to open the resulting mapserv.exe file it > opens a (so it seems) perfect capabilities-document ( not an > error-document) > > Running my app on several pc's results in not showing up the > WMS. I don't know if the above problem is related to this. > Anyone experiencing the same ? I try to make mapserver make a > capabilities document which is viewable in the browser... > The OGC:WMS 1.1.0 and 1.1.1 specifications state that, for GetCapabilities responses, the OGC:WMS server returns a specific MIME type (i.e. application/vnd.ogc.xml (see subclause 6.5.3 of OGC:WMS 1.1.1 at http://portal.opengeospatial.org/files/?artifact_id=1081&version=1&forma t=pdf). A MIME type is passed from the web server to the client (in your case, a web browser), from which a client can decide how to process it. Example 1: if using a web browser, if a web server returns an HTTP Header of "Content-type:image/png", then the web browser will know that this is a PNG image and display it accordingly. Example 2: if using a web browser, if a web server returns an HTTP Header of "Content-type:text/html", then the web browser will know that this is an HTML page and display it accordingly (i.e. tables, divs, etc.) Basically, what is happening is that the OGC:WMS is returning, in the headers of the HTTP response, a MIME type which your web browser does not understand, which usually prompts a dialog box on whether to open or download the content (i.e. Content-type:application/vnd.ogc.wms_xml). You could configure your web browser to handle the application/vnd.ogc.wms_xml MIME type a certain way (i.e. open in Notepad, etc.). Hope this helps ..Tom P.S. I've since posted this as an FAQ at http://mapserver.gis.umn.edu/docs/faq/ogc-wms-capabilities-mime-type From mitchelljj98 at GMAIL.COM Wed Apr 25 08:51:34 2007 From: mitchelljj98 at GMAIL.COM (John Mitchell) Date: Wed, 25 Apr 2007 11:51:34 -0400 Subject: EPSG code of 32618 for WGS 84 / UTM zone 18N Message-ID: Hi, I have the listed the gdalinfo listing of an erdas imagine file below and notice that it does not have a EPSG code within it. I need this EPSG code if I want to reproject within gdalwarp or for on the fly projection within mapserver. Based the gdalinfo listing I searched within the epsg file and found the following code and definition: # WGS 84 / UTM zone 18N <32618> +proj=utm +zone=18 +ellps=WGS84 +datum=WGS84 +units=m +no_defs <> Does the above EPSG code of 32618 make sense for the below gdalinfo listing? Thanks, John J . Mitchell ----------------------------------------------------------------------------------------------------------------------------------------------- Driver: HFA/Erdas Imagine Images (.img) Size is 13940, 33191 Coordinate System is: PROJCS["UTM Zone 18, Northern Hemisphere", GEOGCS["WGS_1984", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.2572235630016], TOWGS84[0,0,0,0,0,0,0]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",-75], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",0], UNIT["Meter",1]] Origin = (638992.500000000000000,221212.500000000000000) Pixel Size = (5.000000000000000,-5.000000000000000) Corner Coordinates: Upper Left ( 638992.500, 221212.500) ( 73d45'0.91"W, 2d 0'3.21"N) Lower Left ( 638992.500, 55257.500) ( 73d45'3.46"W, 0d29'59.32"N) Upper Right ( 708692.500, 221212.500) ( 73d 7'25.44"W, 2d 0'1.05"N) Lower Right ( 708692.500, 55257.500) ( 73d 7'29.28"W, 0d29'58.78"N) Center ( 673842.500, 138235.000) ( 73d26'15.17"W, 1d15'0.67"N) ----------------------------------------------------------------------------------------------------------------------------------------------- -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Wed Apr 25 10:06:11 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 25 Apr 2007 13:06:11 -0400 Subject: EPSG code of 32618 for WGS 84 / UTM zone 18N In-Reply-To: Message-ID: John Mitchell wrote: > Hi, > > I have the listed the gdalinfo listing of an erdas imagine file below > and notice that it does not have a EPSG code within it. I need this > EPSG code if I want to reproject within gdalwarp or for on the fly > projection within mapserver. Based the gdalinfo listing I searched > within the epsg file and found the following code and definition: > > # WGS 84 / UTM zone 18N > <32618> +proj=utm +zone=18 +ellps=WGS84 +datum=WGS84 +units=m +no_defs <> > > Does the above EPSG code of 32618 make sense for the below gdalinfo listing? John, Yes, EPSG:32618 is equivelent to the following definition. Best regards, > PROJCS["UTM Zone 18, Northern Hemisphere", > GEOGCS["WGS_1984", > DATUM["WGS_1984", > SPHEROID["WGS 84",6378137,298.2572235630016], > TOWGS84[0,0,0,0,0,0,0]], > PRIMEM["Greenwich",0], > UNIT["degree",0.0174532925199433]], > PROJECTION["Transverse_Mercator"], > PARAMETER["latitude_of_origin",0], > PARAMETER["central_meridian",-75], > PARAMETER["scale_factor",0.9996], > PARAMETER["false_easting",500000], > PARAMETER["false_northing",0], > UNIT["Meter",1]] -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From kobben at ITC.NL Wed Apr 25 11:45:51 2007 From: kobben at ITC.NL (=?iso-8859-1?Q?Barend_K=F6bben?=) Date: Wed, 25 Apr 2007 20:45:51 +0200 Subject: GetCapabilities request results in download mapserv.exe Message-ID: As a follow-up to the remarks of Tom Kralidis: It is true that OGC sepcs mention "application/vnd.ogc.wms_xml" as the default MIME type to return. It has also been recognised as a mistake, and WMS 1.3 specs have (I think) returned to "text/html" or "text/xml" as teh default. However, the WMS 1.1.1 spec also supports a URL parameter EXCEPTIONS that can be issued to ask for expceptions (=error messages) in another MIME type. We use it in our RIMapperWMS, which is a WMS specifically for SVG output, to be able to return error messages in SVG (image/svg+xml) or in straight HTML (text/html) whenever the requesting UA does not support SVG. A useful addition for the next version Mapserver would thus be to support at least EXCEPTIONS=text/html. Is there an offical place to request features for upcoming releases? -- Barend K?bben International Institute for Geo-information Sciences and Earth Observation (ITC) PO Box 6, 7500AA Enschede (The Netherlands) ph: +31-(0)534874253; mobile: +31-(0)622344955 http://kartoweb.itc.nl/RIMapper/ ________________________________ From: UMN MapServer Users List on behalf of Kralidis,Tom [Burlington] Sent: Wed 4/25/2007 17:36 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] GetCapabilities request results in download mapserv.exe > > Altough this has been handled before: > http://www.nabble.com/Enabling-WMS-service-on-MapServer-t3440626.html > I'm experiencing the same problem. > Yet, when I try to open the resulting mapserv.exe file it > opens a (so it seems) perfect capabilities-document ( not an > error-document) > > Running my app on several pc's results in not showing up the > WMS. I don't know if the above problem is related to this. > Anyone experiencing the same ? I try to make mapserver make a > capabilities document which is viewable in the browser... > The OGC:WMS 1.1.0 and 1.1.1 specifications state that, for GetCapabilities responses, the OGC:WMS server returns a specific MIME type (i.e. application/vnd.ogc.xml (see subclause 6.5.3 of OGC:WMS 1.1.1 at http://portal.opengeospatial.org/files/?artifact_id=1081&version=1&forma t=pdf). A MIME type is passed from the web server to the client (in your case, a web browser), from which a client can decide how to process it. Example 1: if using a web browser, if a web server returns an HTTP Header of "Content-type:image/png", then the web browser will know that this is a PNG image and display it accordingly. Example 2: if using a web browser, if a web server returns an HTTP Header of "Content-type:text/html", then the web browser will know that this is an HTML page and display it accordingly (i.e. tables, divs, etc.) Basically, what is happening is that the OGC:WMS is returning, in the headers of the HTTP response, a MIME type which your web browser does not understand, which usually prompts a dialog box on whether to open or download the content (i.e. Content-type:application/vnd.ogc.wms_xml). You could configure your web browser to handle the application/vnd.ogc.wms_xml MIME type a certain way (i.e. open in Notepad, etc.). Hope this helps ..Tom P.S. I've since posted this as an FAQ at http://mapserver.gis.umn.edu/docs/faq/ogc-wms-capabilities-mime-type From Tom.Kralidis at EC.GC.CA Wed Apr 25 11:59:35 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 25 Apr 2007 14:59:35 -0400 Subject: GetCapabilities request results in download mapserv.exe Message-ID: > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Barend K?bben > Sent: 25 April, 2007 2:46 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] GetCapabilities request > results in download mapserv.exe > > As a follow-up to the remarks of Tom Kralidis: It is true > that OGC sepcs mention "application/vnd.ogc.wms_xml" as the > default MIME type to return. It has also been recognised as a > mistake, and WMS 1.3 specs have (I think) returned to > "text/html" or "text/xml" as teh default. However, the WMS > 1.1.1 spec also supports a URL parameter EXCEPTIONS that can > be issued to ask for expceptions (=error messages) in another > MIME type. We use it in our RIMapperWMS, which is a WMS > specifically for SVG output, to be able to return error > messages in SVG (image/svg+xml) or in straight HTML > (text/html) whenever the requesting UA does not support SVG. > Yes, OGC:WMS 1.3.0 returns to more browser friendly defaults. However application/vnd.ogc.wms_xml is listed as the MIME type to declare for WMS Capabilities XML. w.r.t. Exceptions, see section 6.7: "Service Exception Report XML shall be valid according to the Service Exception DTD in Annex A.3. In an HTTP environment, the MIME type of the returned XML shall be "application/vnd.ogc.se_xml". Individual error messages appear as elements within the . The messages can be formatted either as chunks of plain text or, if included in a character data (CDATA) section, as XML-like text containing angle brackets ("<" and ">"), as shown in the example Service Exception Report in Annex A.4." ..Tom > A useful addition for the next version Mapserver would thus > be to support at least EXCEPTIONS=text/html. Is there an > offical place to request features for upcoming releases? > > -- > Barend K?bben > International Institute for Geo-information Sciences and > Earth Observation (ITC) PO Box 6, 7500AA Enschede (The Netherlands) > ph: +31-(0)534874253; mobile: +31-(0)622344955 > http://kartoweb.itc.nl/RIMapper/ > > > ________________________________ > > From: UMN MapServer Users List on behalf of Kralidis,Tom [Burlington] > Sent: Wed 4/25/2007 17:36 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] GetCapabilities request > results in download mapserv.exe > > > > > > > Altough this has been handled before: > > > http://www.nabble.com/Enabling-WMS-service-on-MapServer-t3440626.html > > I'm experiencing the same problem. > > Yet, when I try to open the resulting mapserv.exe file it > opens a (so > > it seems) perfect capabilities-document ( not an > > error-document) > > > > Running my app on several pc's results in not showing up the WMS. I > > don't know if the above problem is related to this. > > Anyone experiencing the same ? I try to make mapserver make a > > capabilities document which is viewable in the browser... > > > > The OGC:WMS 1.1.0 and 1.1.1 specifications state that, for > GetCapabilities responses, the OGC:WMS server returns a > specific MIME type (i.e. application/vnd.ogc.xml (see > subclause 6.5.3 of OGC:WMS 1.1.1 at > http://portal.opengeospatial.org/files/?artifact_id=1081&versi on=1&forma > t=pdf). > > A MIME type is passed from the web server to the client (in > your case, a web browser), from which a client can decide how > to process it. > > Example 1: if using a web browser, if a web server returns an > HTTP Header of "Content-type:image/png", then the web browser > will know that this is a PNG image and display it accordingly. > > Example 2: if using a web browser, if a web server returns an > HTTP Header of "Content-type:text/html", then the web browser > will know that this is an HTML page and display it > accordingly (i.e. tables, divs, > etc.) > > Basically, what is happening is that the OGC:WMS is > returning, in the headers of the HTTP response, a MIME type > which your web browser does not understand, which usually > prompts a dialog box on whether to open or download the > content (i.e. Content-type:application/vnd.ogc.wms_xml). > > You could configure your web browser to handle the > application/vnd.ogc.wms_xml MIME type a certain way (i.e. > open in Notepad, etc.). > Hope this helps > > ..Tom > > P.S. I've since posted this as an FAQ at > http://mapserver.gis.umn.edu/docs/faq/ogc-wms-capabilities-mime-type > From david.bitner at GMAIL.COM Wed Apr 25 12:25:04 2007 From: david.bitner at GMAIL.COM (David William Bitner) Date: Wed, 25 Apr 2007 14:25:04 -0500 Subject: Simplified state outline data? In-Reply-To: <20070425001738.DD54087C64@spunkymail-a2.g.dreamhost.com> Message-ID: Although if you are not using Topology, this will likely lead to lots of slivers between the states. On 4/24/07, Aaron Racicot wrote: > > You can load [1] the data into PostGIS and use the simplify function [2] > to > create a simplified geometry, and even dump back to shapefile [3] if you > wish. > > [1] - http://postgis.refractions.net/docs/ch04.html#id2707142 > [2] - http://postgis.refractions.net/docs/ch06.html#id2712912 > [3] - http://postgis.refractions.net/docs/ch04.html#id2707567 > > A > > > +----------------------------------------+ > Aaron Racicot - GIS Programmer > 360.221.2441 - aaronr at ecotrust.org > +----------------------------------------+ > e c o t r u s t > pobox 1614 > langley wa 98260 > www.ecotrust.org > +----------------------------------------+ > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Jeff Dege > Sent: Tuesday, April 24, 2007 3:08 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Simplified state outline data? > > We have an app that needs to generate a map with state outlines, but > needs to keep the total amount of data as small as possible. > > Fortunately, we don't need precision, a rough approximation of the > outlines is fine. > > Does anyone know of a source of approximate state outline data? > > Alternatively, does anyone know of a tool I can use to reduce the number > of points in a geometric feature, while retaining the general outline? > Something that would take a complicated boundary drawn with points every > 100 meters and return a simplified boundary drawn with points every 10 > kilometers? > -- ************************************ David William Bitner -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdege at KORTERRA.COM Wed Apr 25 12:35:15 2007 From: jdege at KORTERRA.COM (Jeff Dege) Date: Wed, 25 Apr 2007 14:35:15 -0500 Subject: Simplified state outline data? In-Reply-To: A Message-ID: In this application, that won't matter. But since in other applications, it might, what do you mean by "using Topology"? ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of David William Bitner Sent: Wednesday, April 25, 2007 2:25 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Simplified state outline data? Although if you are not using Topology, this will likely lead to lots of slivers between the states. On 4/24/07, Aaron Racicot < aaronr at z-pulley.com > wrote: You can load [1] the data into PostGIS and use the simplify function [2] to create a simplified geometry, and even dump back to shapefile [3] if you wish. [1] - http://postgis.refractions.net/docs/ch04.html#id2707142 [2] - http://postgis.refractions.net/docs/ch06.html#id2712912 [3] - http://postgis.refractions.net/docs/ch04.html#id2707567 A +----------------------------------------+ Aaron Racicot - GIS Programmer 360.221.2441 - aaronr at ecotrust.org +----------------------------------------+ e c o t r u s t pobox 1614 langley wa 98260 www.ecotrust.org +----------------------------------------+ -----Original Message----- From: UMN MapServer Users List [mailto: MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff Dege Sent: Tuesday, April 24, 2007 3:08 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Simplified state outline data? We have an app that needs to generate a map with state outlines, but needs to keep the total amount of data as small as possible. Fortunately, we don't need precision, a rough approximation of the outlines is fine. Does anyone know of a source of approximate state outline data? Alternatively, does anyone know of a tool I can use to reduce the number of points in a geometric feature, while retaining the general outline? Something that would take a complicated boundary drawn with points every 100 meters and return a simplified boundary drawn with points every 10 kilometers? -- ************************************ David William Bitner -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcreso at PCRESO.COM Wed Apr 25 12:58:32 2007 From: pcreso at PCRESO.COM (Brent Wood) Date: Wed, 25 Apr 2007 12:58:32 -0700 Subject: Simplified state outline data? In-Reply-To: <34E056CD4D475841B8C9ABCE956F92F6370925@mrburns.KorOffice.local> Message-ID: --- Jeff Dege wrote: > In this application, that won't matter. But since in other > applications, it might, what do you mean by "using Topology"? If you have two polygons sharing a corner (vertex), & simplify them, you can move the vertex differently in each case. In such cases you finish up with little slivers of overlap or gaps between the simplified polygons, who no longer share the same boundary at that location. You can also generate figure-eights (self intersections) in the polygon boundaries, which make the simplified versions invalid. For quick plotting purposes, this is generally irrelevant, but for querying point-in-polygon, etc, you will get wrong answers. Brent From hal at MOBILEGEOGRAPHICS.COM Wed Apr 25 13:10:11 2007 From: hal at MOBILEGEOGRAPHICS.COM (Hal Mueller) Date: Wed, 25 Apr 2007 13:10:11 -0700 Subject: Simplified state outline data? In-Reply-To: <34E056CD4D475841B8C9ABCE956F92F637091C@mrburns.KorOffice.local> Message-ID: FME (from Safe Software) will handle this problem nicely. It's a bit of a nuclear flyswatter if one data conversion is all you're going to do, though. Hal From nelson.little at TENIX.COM Wed Apr 25 19:46:49 2007 From: nelson.little at TENIX.COM (LITTLE Nelson) Date: Thu, 26 Apr 2007 12:46:49 +1000 Subject: How do I dynamically add features to a Layer Message-ID: Hi, Is there a way to add a new feature to an existing Layer dynamically. I.e. the feature lives in some database (which may not be a spatially aware database) and when the user pans to that area of the map the application will query the database and add the feature to the layer? Any help or guidance is much appreciated. Cheers, Nelson Disclaimer : The contents of this e-mail including any attachments are intended only for the person or entity to which this e-mail is addressed. If you are not, or believe you may not be, the intended recipient, please advise the sender immediately by return e-mail, delete this e-mail and destroy any copies. Tenix does not warrant nor guarantee that this email communication is free from errors, virus, interception or interference. From mizerkin at WIRZ-KOELN.DE Thu Apr 26 02:48:00 2007 From: mizerkin at WIRZ-KOELN.DE (Dmitri Mizerkin) Date: Thu, 26 Apr 2007 04:48:00 -0500 Subject: GetFeature-request with a query expression Message-ID: Hi List, is it possible to include into the GetFeature-request a query expression (for instance [ID]=5) so that only the objects, which match the defined criteria, are returned in the response? I would like to get all filed values of some feature not having to scroll through the thousands of features, which I am not interested in. Cheers, Dmitri From steven.ottens at GEODAN.NL Thu Apr 26 02:50:12 2007 From: steven.ottens at GEODAN.NL (Steven M. Ottens) Date: Thu, 26 Apr 2007 11:50:12 +0200 Subject: classification doesn't work with floating points Message-ID: Hi all, I'm working on a dynamic classification application which works with SLD. I select a bounding box and Mapserver generates a new SLD with the minimum and maximum values and a range of classes between. This works fine and the SLD is correct with all the expected classes. However if I use that SLD to generate a new map I only see 3 colours instead of the expected 50. After some investigation I discovered that it was due to the very small classes I get: If the classes are without floats there's no problem and mapserver works as expected. Some more investigation showed that the 3 colours I see are the ones from: The last being the class everything bigger then -5. It's striking that the other two are both around the .5, which does make me believe there's something wrong with the floating point handling of mapserver with regard of drawing maps. Is there a setting in my mapfile which I have to set to make sure it will use all decimals to do the rendering? I've attached the map file of this particular layer. In there you see multiple layers with the same classification, each is an aggregation of the previous one and kicks in at a different scale level. The whole thing is a detailed DEM of the Netherlands. Regards, Steven -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: hoogte.map URL: From Jukka.Rahkonen at MMMTIKE.FI Thu Apr 26 03:26:09 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 26 Apr 2007 13:26:09 +0300 Subject: GetFeature-request with a query expression Message-ID: Hi, Sure it is possible. I made once a trial with Oracle spatial layer by inserting a variable inside the SQL query in the DATA argument. The layer can then be called from WFS client with extra argument like &ID=5 and the result should be as you expect. I guess,but haven't tried myself, that extra variables can be used also in other places in mapfile, like in FILTER. -Jukka Rahkonen- -----Original Message----- From: UMN MapServer Users List on behalf of Dmitri Mizerkin Sent: Thu 26.4.2007 12:48 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] GetFeature-request with a query expression Hi List, is it possible to include into the GetFeature-request a query expression (for instance [ID]=5) so that only the objects, which match the defined criteria, are returned in the response? I would like to get all filed values of some feature not having to scroll through the thousands of features, which I am not interested in. Cheers, Dmitri From frodewj at GMAIL.COM Thu Apr 26 03:40:04 2007 From: frodewj at GMAIL.COM (=?UTF-8?Q?Frode_Wiseth_J=C3=B8rgensen?=) Date: Thu, 26 Apr 2007 03:40:04 -0700 Subject: Class order in mapfile Message-ID: Hi all! If I understand correctly, classes in a layer are not rendered in the order they appear in the layer, but as they are encountered in the dataset, e.g. a shapefile. A workaround could for instance be seperating classes into layers. Any other workarounds? Or could it perhaps be on a "wishlist" for a future Mapserver version - that classes are rendered in the order they appear in the layer..? Regards, Frode -- View this message in context: http://www.nabble.com/Class-order-in-mapfile-tf3650881.html#a10198043 Sent from the Mapserver - User mailing list archive at Nabble.com. From gregor at HOSTGIS.COM Thu Apr 26 03:50:31 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Thu, 26 Apr 2007 04:50:31 -0600 Subject: Class order in mapfile In-Reply-To: <10198043.post@talk.nabble.com> Message-ID: > If I understand correctly, classes in a layer are not rendered in the > order they appear in the layer, but as they are encountered in the > dataset, e.g. a shapefile. Correct. Features are rendered in the order they appear in the data source. The selection of class for a feature is a first-match based on the classes' criteria. > A workaround could for instance be seperating classes into layers. > Any other workarounds? Another could be to sort your dataset to fit your classes. Using PostgreSQL, the CLUSTER command will physically sort a table by the given criteria. There may or may not be something you could do with shapefiles to accomplish this same goal. (in a pinch, I suppose you could shp2pgsql, cluster, pgsql2shp) -- HostGIS Cartographic development and hosting services 707-822-9355 http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From bartvde at OSGIS.NL Thu Apr 26 03:52:23 2007 From: bartvde at OSGIS.NL (Bart van den Eijnden (OSGIS)) Date: Thu, 26 Apr 2007 12:52:23 +0200 Subject: Class order in mapfile Message-ID: Sortshp can do this for shapefiles, see: http://mapserver.gis.umn.edu/docs/reference/utilityreference/sortshp Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Gregor Mosheh Naar: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: Re: [UMN_MAPSERVER-USERS] Class order in mapfile Datum: 26/04/07 08:51 > > If I understand correctly, classes in a layer are not rendered in the > > order they appear in the layer, but as they are encountered in the > > dataset, e.g. a shapefile. > > Correct. Features are rendered in the order they appear in the data > source. The selection of class for a feature is a first-match based on the > classes' criteria. > > > > A workaround could for instance be seperating classes into layers. > > Any other workarounds? > > Another could be to sort your dataset to fit your classes. Using > PostgreSQL, the CLUSTER command will physically sort a table by the given > criteria. There may or may not be something you could do with shapefiles > to accomplish this same goal. (in a pinch, I suppose you could shp2pgsql, > cluster, pgsql2shp) > > > > -- > HostGIS > Cartographic development and hosting services > 707-822-9355 > http://www.HostGIS.com/ > > "Remember that no one cares if you can back up, only if you can restore." > - AMANDA > > From Tom.Kralidis at EC.GC.CA Thu Apr 26 05:33:13 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Thu, 26 Apr 2007 08:33:13 -0400 Subject: GetFeature-request with a query expression Message-ID: > is it possible to include into the GetFeature-request a query > expression (for instance [ID]=5) so that only the objects, > which match the defined criteria, are returned in the response? > I would like to get all filed values of some feature not > having to scroll through the thousands of features, which I > am not interested in. > MapServer's WFS Server includes support for Filter Encoding. So, a filter expression for id=5 would look like: http://www.example.org/wfs?service=WFS&version=1.0.0&request=GetFeature& typename=foo&filter=ID5 See the Filter HOWTO (http://mapserver.gis.umn.edu/docs/howto/filterencoding) and MapServer OGC Web Services Workshop (http://ms-ogc-workshop.maptools.org/) for more info. Hope this helps. ..Tom From myardbenoit at GMAIL.COM Thu Apr 26 07:07:50 2007 From: myardbenoit at GMAIL.COM (Benoit Myard) Date: Thu, 26 Apr 2007 16:07:50 +0200 Subject: How do I dynamically add features to a Layer In-Reply-To: <200704260246.l3Q2knEZ001793@sprint2.tenix.com> Message-ID: Yes, you have to use MapScript for that matter (theoretically you could avoid MapScript but it depends much on your actual needs). Although I can't speak for other MapScript flavors, Perl lacks documentation and examples, hence you should avoid it in my opinion. PHP seems to be the most widely used and extensively documented MapScript flavor so you should start by reading its documentation [1] and examples [2]. I'm doing a similar task at the moment and as far as I can tell, you can't add data to an existing set of data. For example, I've tried to add a city to a layer of cities but whenever I added it, all other cities disappeared. Good luck. [1] http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/referencemanual-all-pages [2] located in mapserver-4.10.0/mapscript/php/examples -- Benoit Myard From mitchelljj98 at GMAIL.COM Thu Apr 26 07:38:37 2007 From: mitchelljj98 at GMAIL.COM (John Mitchell) Date: Thu, 26 Apr 2007 10:38:37 -0400 Subject: referencing location field files within shapefile within the same directory of the shapefile Message-ID: Hi, I ran gdaltindex referencing location field within shapefile within the same directory of the shapefile (i.e. gdaltindex.exe shapefile.shp *.tif) instead of including the full path (i.e. gdaltindex.exe c:\foldername\shapefile.shp c:\foldername\*.tif). I found mapserver only displays (see layer below) when the location field within the shape file has the full path to the raster file, and does not display when location field only has the filename even when the file is in the same folder as the shape file. -------------------------------------------------------------------------------- LAYER # name of layer NAME ElPaso_64Resolution GROUP "gv:supplier_nga" # what type of data is this? TYPE RASTER # always returned with interface STATUS ON TILEINDEX "G:\NGA_Data\El_Paso_All_Units\converted_1176381368109\64Resolution.shp" TILEITEM "Location" OFFSITE 0 0 0 MINSCALE 64000 #MAXSCALE 4000 END -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at HOSTGIS.COM Thu Apr 26 07:47:18 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Thu, 26 Apr 2007 08:47:18 -0600 Subject: referencing location field files within shapefile within the same directory of the shapefile In-Reply-To: Message-ID: > I ran gdaltindex referencing location field within shapefile within the > same directory of the shapefile ... > I found mapserver only displays (see layer below) > when the location field within the shape file has the full path to the > raster file, Actually, the location field must be valid *from the mapfile directory* So I prefer to cd to the mapfile's directory, then do the appropriate gdaltindex from there, so I know I have the paths right. If you were in the "data/" subdirectory when you ran it, and it found "./foo.tif" then from the mapfile's point of view you entered "./foo.tif" instead of "data/foo.tif" See? -Gregor From prodriguez at ADASASISTEMAS.COM Thu Apr 26 08:26:47 2007 From: prodriguez at ADASASISTEMAS.COM (=?iso-8859-1?Q?Pablo__Rodr=EDguez_Madro=F1o?=) Date: Thu, 26 Apr 2007 17:26:47 +0200 Subject: How do I dynamically add features to a Layer Message-ID: Hi, Maybe you should have a look at the C# Mapscript tutorial: http://www.paolocorti.net/public/wordpress/index.php/2006/07/01/mapscript-c-tutorial-programming-mapserver-in-the-asp-net-framework/ It effectively adds point features to a layer. Pablo Rodr?guez Madro?o Divisi?n de Sistemas de Informaci?n ADASA Sistemas 93.264.06.02 600.92.65.10 -----Mensaje original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] En nombre de Benoit Myard Enviado el: jueves, 26 de abril de 2007 16:08 Para: MAPSERVER-USERS at LISTS.UMN.EDU Asunto: Re: [UMN_MAPSERVER-USERS] How do I dynamically add features to a Layer Yes, you have to use MapScript for that matter (theoretically you could avoid MapScript but it depends much on your actual needs). Although I can't speak for other MapScript flavors, Perl lacks documentation and examples, hence you should avoid it in my opinion. PHP seems to be the most widely used and extensively documented MapScript flavor so you should start by reading its documentation [1] and examples [2]. I'm doing a similar task at the moment and as far as I can tell, you can't add data to an existing set of data. For example, I've tried to add a city to a layer of cities but whenever I added it, all other cities disappeared. Good luck. [1] http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/referencemanual-all-pages [2] located in mapserver-4.10.0/mapscript/php/examples -- Benoit Myard From mitchelljj98 at GMAIL.COM Thu Apr 26 09:21:11 2007 From: mitchelljj98 at GMAIL.COM (John Mitchell) Date: Thu, 26 Apr 2007 12:21:11 -0400 Subject: Trying to display a geotiff DEM within MapServer Message-ID: Hi, I am trying to display a DEM which is in geotiff format (gdalinfo listing below) within MapServer (mapfile layer listing below) and the image is all white. When trying to display this same image within the desktop application called "global mapper" it first asks whether you want to display this data as an image or as a DEM. If select as an image then is displays an image that is all the same color similar to mapserver and if select as a DEM then it displays a color coded elevated image. Is their a way to display a DEM within mapserver that displays the elevated image instead of the all white image that I am currently displaying? Thanks, John J. Mitchell ----------------------------------------------------------------------- MAP # all temp files get prefixed with this string NAME All_Raster_Layers_ignore # always returns a map STATUS ON # image format options OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END # projection of the INTERFACE that this mapfile supports PROJECTION "init=epsg:4326" END # minx miny maxx maxy EXTENT -180 -90 180 90 # World # units of map/app UNITS DD WEB # this is set in the form which initializes the page, but can be set here if you want IMAGEPATH "/ms4w/tmp/ms_tmp/" # this is set in the form which initializes the page, but can be set here if you want IMAGEURL "/ms_tmp/" END # start of layer definitions LAYER # name of layer NAME Columbia_1000000012_utm_19_fullResolution_ignore GROUP "Columbia_1000000012_utm_19" PROJECTION "init=epsg:32619" END TYPE RASTER STATUS ON TILEINDEX "Z:\GlobalView\NGA\Columbia\1000000012\utm_19\fullResolution.shp" TILEITEM "Location" # OFFSITE 0 0 0 MAXSCALE 10000 END ----------------------------------------------------------------------- Driver: GTiff/GeoTIFF Size is 2792, 2794 Coordinate System is: PROJCS["WGS 84 / UTM zone 19N", GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.2572235630016, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",-69], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]], AUTHORITY["EPSG","32619"]] Origin = (168297.500000000000000,761002.500000000000000) Pixel Size = (5.000000000000000,-5.000000000000000) Metadata: AREA_OR_POINT=Area Corner Coordinates: Upper Left ( 168297.500, 761002.500) ( 72d 0'3.71"W, 6d52'31.02"N) Lower Left ( 168297.500, 747032.500) ( 72d 0'0.88"W, 6d44'56.70"N) Upper Right ( 182257.500, 761002.500) ( 71d52'29.42"W, 6d52'33.81"N) Lower Right ( 182257.500, 747032.500) ( 71d52'26.72"W, 6d44'59.44"N) Center ( 175277.500, 754017.500) ( 71d56'15.18"W, 6d48'45.26"N) Band 1 Block=256x256 Type=Float32, ColorInterp=Gray Minimum=238.364, Maximum=1652.747, Mean=684.315, StdDev=268.118 Metadata: STATISTICS_MINIMUM=238.36408996582 STATISTICS_MAXIMUM=1652.7473144531 STATISTICS_MEAN=684.31510635898 STATISTICS_MEDIAN=628.00527274609 STATISTICS_MODE=506.19808101654 STATISTICS_STDDEV=268.11784359311 STATISTICS_HISTONUMBINS=256 STATISTICS_HISTOMIN=240.4369354248 STATISTICS_HISTOMAX=1657.8297119141 LAYER_TYPE=athematic STATISTICS_HISTOBINVALUES=5200|20332|20380|24760|23240|16028|7444|4828|4632|7912|18480|38392|44548|44292|52980|55312|53024|60224|56604|51976|49164|50864|45892|47932|47932|48004|45888|46656|49592|50648|49180|51948|53668|53692|51920|54680|59528|65148|73368|85132|88648|79764|73992|73216|72108|74412|76488|99608|103600|95308|78448|73684|68140|70020|72932|75032|79512|82636|83640|77584|75844|77228|66504|59480|58160|55356|55064|54572|53656|52912|51696|51936|52816|52924|53996|52560|52192|51984|51144|50164|48892|48960|49412|49352|48220|49576|50632|49420|48748|48368|46484|47664|46132|47004|46636|45124|43416|41900|40692|40824|39976|40188|41860|40652|40368|39692|39740|40220|38624|37064|37240|37096|37844|39032|39880|40800|40172|38876|37964|39788|38152|37716|37064|34944|34712|33448|33896|33800|33420|33012|32080|30868|30976|29740|30700|29972|29664|29712|29248|29088|27892|27036|26092|24756|24736|25132|24360|24300|23608|22616|21032|20160|19760|18748|18616|18964|18400|17624|16692|16348|15628|15376|14644|14520|14064|13992|14160|15048|16600|15976|14892|13428|12740|12360|11868|11520|10672|9772|9344|9000|8672|8732|8520|9020|8604|8052|8136|8240|8036|7824|7844|8280|7816|7624|7180|7308|6744|7024|6880|6800|6904|6336|6056|6120|5968|6008|5936|5388|5176|4996|5020|4520|4232|4288|4184|3856|3820|3752|3420|3632|3472|3316|3448|3316|3120|2924|2816|2652|2512|2296|1940|1624|1336|1260|1252|936|668|568|576|548|484|512|456|412|376|360|264|288|168|112|104|76|72|12|16|4| -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at HOSTGIS.COM Thu Apr 26 09:27:37 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Thu, 26 Apr 2007 10:27:37 -0600 Subject: Trying to display a geotiff DEM within MapServer In-Reply-To: Message-ID: The first thing that comes to mind is the extent. I may be off, but this is the first thing I'd check. > # minx miny maxx maxy > EXTENT -180 -90 180 90 # World > Upper Left ( 168297.500, 761002.500) ( 72d 0'3.71"W, 6d52'31.02"N) > Lower Left ( 168297.500, 747032.500) ( 72d 0'0.88"W, 6d44'56.70"N) > Upper Right ( 182257.500, 761002.500) ( 71d52'29.42"W, 6d52'33.81"N) > Lower Right ( 182257.500, 747032.500) ( 71d52'26.72"W, 6d44'59.44"N) > Center ( 175277.500, 754017.500) ( 71d56'15.18"W, 6d48'45.26"N) At a size that small, compared to the rest of the map, I'd expect the image to be entirely white, with your TIFF represented by a single pixel. I'd try setting the map's extent to be zoomed in a little tighter, e.g. EXTENT -72 6.75 -71.9 6.9 -- HostGIS Cartographic development and hosting services 707-822-9355 http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From bfraser at GEOANALYTIC.COM Thu Apr 26 09:50:58 2007 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Thu, 26 Apr 2007 10:50:58 -0600 Subject: Trying to display a geotiff DEM within MapServer Message-ID: John, The three most common problems when trying to display raster using a TILEINDEX: Coordinate System Problems: 1. EXTENT given in MAP not suitable for data in LAYER - change EXTENT to match the bounds of the data Data Access: 2. Pathing from TILEINDEX to raster files wrong - put the full paths to the data in the LOCATION attribute of the TILEINDEX Data Organization: 3. Data representation not suitable - use the LAYER's PROCESSING object to scale the 32bit float height values to greyscale. - it could be that Mapserver using GDAL for input will not read the data from a 32bit tiff. See http://mapserver.gis.umn.edu/docs/howto/raster_data for more details. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "John Mitchell" To: Sent: Thursday, April 26, 2007 10:21 AM Subject: [UMN_MAPSERVER-USERS] Trying to display a geotiff DEM within MapServer Hi, I am trying to display a DEM which is in geotiff format (gdalinfo listing below) within MapServer (mapfile layer listing below) and the image is all white. When trying to display this same image within the desktop application called "global mapper" it first asks whether you want to display this data as an image or as a DEM. If select as an image then is displays an image that is all the same color similar to mapserver and if select as a DEM then it displays a color coded elevated image. Is their a way to display a DEM within mapserver that displays the elevated image instead of the all white image that I am currently displaying? Thanks, John J. Mitchell ------------------------------------------------------------ ----------- MAP # all temp files get prefixed with this string NAME All_Raster_Layers_ignore # always returns a map STATUS ON # image format options OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END # projection of the INTERFACE that this mapfile supports PROJECTION "init=epsg:4326" END # minx miny maxx maxy EXTENT -180 -90 180 90 # World # units of map/app UNITS DD WEB # this is set in the form which initializes the page, but can be set here if you want IMAGEPATH "/ms4w/tmp/ms_tmp/" # this is set in the form which initializes the page, but can be set here if you want IMAGEURL "/ms_tmp/" END # start of layer definitions LAYER # name of layer NAME Columbia_1000000012_utm_19_fullResolution_ignore GROUP "Columbia_1000000012_utm_19" PROJECTION "init=epsg:32619" END TYPE RASTER STATUS ON TILEINDEX "Z:\GlobalView\NGA\Columbia\1000000012\utm_19\fullResolution .shp" TILEITEM "Location" # OFFSITE 0 0 0 MAXSCALE 10000 END ------------------------------------------------------------ ----------- Driver: GTiff/GeoTIFF Size is 2792, 2794 Coordinate System is: PROJCS["WGS 84 / UTM zone 19N", GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.2572235630016, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",-69], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]], AUTHORITY["EPSG","32619"]] Origin = (168297.500000000000000,761002.500000000000000) Pixel Size = (5.000000000000000,-5.000000000000000) Metadata: AREA_OR_POINT=Area Corner Coordinates: Upper Left ( 168297.500, 761002.500) ( 72d 0'3.71"W, 6d52'31.02"N) Lower Left ( 168297.500, 747032.500) ( 72d 0'0.88"W, 6d44'56.70"N) Upper Right ( 182257.500, 761002.500) ( 71d52'29.42"W, 6d52'33.81"N) Lower Right ( 182257.500, 747032.500) ( 71d52'26.72"W, 6d44'59.44"N) Center ( 175277.500, 754017.500) ( 71d56'15.18"W, 6d48'45.26"N) Band 1 Block=256x256 Type=Float32, ColorInterp=Gray Minimum=238.364, Maximum=1652.747, Mean=684.315, StdDev=268.118 Metadata: STATISTICS_MINIMUM=238.36408996582 STATISTICS_MAXIMUM=1652.7473144531 STATISTICS_MEAN=684.31510635898 STATISTICS_MEDIAN=628.00527274609 STATISTICS_MODE=506.19808101654 STATISTICS_STDDEV=268.11784359311 STATISTICS_HISTONUMBINS=256 STATISTICS_HISTOMIN=240.4369354248 STATISTICS_HISTOMAX=1657.8297119141 LAYER_TYPE=athematic STATISTICS_HISTOBINVALUES=5200|20332|20380|24760|23240|16028 |7444|4828|4632|7912|18480|38392|44548|44292|52980|55312|530 24|60224|56604|51976|49164|50864|45892|47932|47932|48004|458 88|46656|49592|50648|49180|51948|53668|53692|51920|54680|595 28|65148|73368|85132|88648|79764|73992|73216|72108|74412|764 88|99608|103600|95308|78448|73684|68140|70020|72932|75032|79 512|82636|83640|77584|75844|77228|66504|59480|58160|55356|55 064|54572|53656|52912|51696|51936|52816|52924|53996|52560|52 192|51984|51144|50164|48892|48960|49412|49352|48220|49576|50 632|49420|48748|48368|46484|47664|46132|47004|46636|45124|43 416|41900|40692|40824|39976|40188|41860|40652|40368|39692|39 740|40220|38624|37064|37240|37096|37844|39032|39880|40800|40 172|38876|37964|39788|38152|37716|37064|34944|34712|33448|33 896|33800|33420|33012|32080|30868|30976|29740|30700|29972|29 664|29712|29248|29088|27892|27036|26092|24756|24736|25132|24 360|24300|23608|22616|21032|20160|19760|18748|18616|18964|18 400|17624|16692|16348|15628|15376|14644|14520|14064|13992|14 160|15048|16600|15976|14892|13428|12740|12360|11868|11520|10 672|9772|9344|9000|8672|8732|8520|9020|8604|8052|8136|8240|8 036|7824|7844|8280|7816|7624|7180|7308|6744|7024|6880|6800|6 904|6336|6056|6120|5968|6008|5936|5388|5176|4996|5020|4520|4 232|4288|4184|3856|3820|3752|3420|3632|3472|3316|3448|3316|3 120|2924|2816|2652|2512|2296|1940|1624|1336|1260|1252|936|66 8|568|576|548|484|512|456|412|376|360|264|288|168|112|104|76 |72|12|16|4| -- John J. Mitchell From janos.gonzales at GMAIL.COM Thu Apr 26 09:55:17 2007 From: janos.gonzales at GMAIL.COM (=?ISO-8859-1?Q?J=E1nos_Gonzales?=) Date: Thu, 26 Apr 2007 10:55:17 -0600 Subject: How to pre-render large maps In-Reply-To: Message-ID: Kamap also has a pretiling engine and it works well with mapserver http://ka-map.maptools.org/ After making the tiles, you either use the kamap application to access them or you make your own. On 4/25/07, Nilsson Bengt wrote: > > > Hi, > > Can anyone pls give me a hint of a tool that can render lagre maps (that > will be tailed). My current data is in a postgis DB, in lat-lon. > > Regards Bengt From punk.kish at GMAIL.COM Thu Apr 26 20:28:32 2007 From: punk.kish at GMAIL.COM (P Kishor) Date: Thu, 26 Apr 2007 22:28:32 -0500 Subject: MapScript: drawing points with Perl In-Reply-To: <6fb81fc70704230906k785f3d7do9246c28ef9d55e3b@mail.gmail.com> Message-ID: Hi Benoit, Attached is a small example that adds points to a shapefile. It was written for a custom application, but you can easily adjust it to your needs. As you can see, you don't even need MapScript to add points. You can manipulate Shapefiles directly using Geo:: Shapelib module. Hope this helps you. Puneet. On 4/23/07, Benoit Myard wrote: > Hi list, > > I'm trying to set up an application whose goal is to add Point data to > an existing map using Perl MapScript. My plan is to put all that's > static in a mapfile and to draw the points afterwards. > > For now, I haven't managed to draw anything except what's in the > mapfile and I would like to know if there is anything special I should > know. For example, when you create a point, which projection is in use > ? > > I attached a sample script which should draw a big point over Paris > but actually doesn't. > > > Also, I noted that I can't "use strict;" since the MapScript Variables > (MS_ON, MS_SINGLE, ...) produce errors even when you prefix them with > 'mapserver::' : > > Argument "MS_ON" isn't numeric in subroutine entry at > /opt/csw/lib/perl/site_perl/mapscript.pm line 35. > > > Allthough there is not much documentation for the Perl-side of > MapScript, the MapScript API Reference should be sufficient. Just in > case someone is aware of some well-rounded documentation or examples > for Perl MapScript, it would be great to share with others :). > > > Thanks in advance. > > -- > Benoit Myard > > -- Puneet Kishor http://punkish.eidesis.org/ Nelson Inst. for Env. Studies, UW-Madison http://www.nelson.wisc.edu/ Open Source Geospatial Foundation http://www.osgeo.org/education/ --------------------------------------------------------------------- collaborate, communicate, compete ===================================================================== -------------- next part -------------- A non-text attachment was scrubbed... Name: insertshape.pl Type: text/x-perl-script Size: 6951 bytes Desc: not available URL: From saverio210 at HOTMAIL.COM Fri Apr 27 04:58:50 2007 From: saverio210 at HOTMAIL.COM (SAVERIO FERRARO) Date: Fri, 27 Apr 2007 13:58:50 +0200 Subject: Configure MapServer for IPV6 on Windows XP Message-ID: Hi all, I'm tring to work with MapServer (ms4w) with Apache 2.2.4 on IPv6, on Windows XP. Somone could help me? I have just tried to replace IPv4 Address with IPv6 address in httpd.conf but doesn't work! So, I have run the command "httpd -V" but there isn't the flag APR_HAS_IPV6. Thanks Saverio _________________________________________________________________ Calcio, Quiz, Sudoku, Scacchi Inizia la sfida su Messenger, GRATIS! http://www.messenger.it/giochi_e_attivita.html From saverio210 at HOTMAIL.COM Fri Apr 27 05:36:31 2007 From: saverio210 at HOTMAIL.COM (SAVERIO FERRARO) Date: Fri, 27 Apr 2007 14:36:31 +0200 Subject: Mapserver (MS4W) on IPV6 Message-ID: Hi all, I'm tring Mapserver on IPV6 on windows XP platform. I have changed the IPV4 address in httpd.conf in IPV6 address, but doesn't work! Could you help me? Thanks Saverio _________________________________________________________________ Chi sar? il prossimo ospite delle interviste di MSN Video VIP? http://videovip.it.msn.com/ From gregor at HOSTGIS.COM Fri Apr 27 06:13:59 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Fri, 27 Apr 2007 07:13:59 -0600 Subject: Configure MapServer for IPV6 on Windows XP In-Reply-To: Message-ID: > I'm tring to work with MapServer (ms4w) with Apache 2.2.4 on IPv6, on > Windows XP. Somone could help me? Mapserver doesn't do TCPIP at all; it's just a CGI application. It's your webserver that handles all that stuff. So it's way off topic for the Mapserver list. Make sure that your OS has IPv6 support, and hit up Apache's documentation to get Apache working with IPv6. -- HostGIS Cartographic development and hosting services 707-822-9355 http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From mitchelljj98 at GMAIL.COM Fri Apr 27 08:35:55 2007 From: mitchelljj98 at GMAIL.COM (John Mitchell) Date: Fri, 27 Apr 2007 11:35:55 -0400 Subject: RGB vs grayscale Message-ID: Hi, Below are sections from 2 different gdalinfo listings: RGB that displays the way we expected in MapServer Band 1 Block=256x256 Type=Byte, ColorInterp=Red Band 2 Block=256x256 Type=Byte, ColorInterp=Green Band 3 Block=256x256 Type=Byte, ColorInterp=Blue ---------------------- RGB that displays as a gray scale in MapServer Band 1 Block=1394x1 Type=Byte, ColorInterp=Red Band 2 Block=1394x1 Type=Byte, ColorInterp=Green Band 3 Block=1394x1 Type=Byte, ColorInterp=Blue What does 1394x1 mean (one level deep)? The second image that shows up as gray scale within MapServer shows up as color within the global mapper desktop application. Is their anything that could be done to change the header info within the file (i.e. running gdalwarp against the grayscale appearing image so that MapServer recognizes it as RGB)? Thanks, -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From John.Westwood at PORT.AC.UK Fri Apr 27 08:43:07 2007 From: John.Westwood at PORT.AC.UK (John Westwood) Date: Fri, 27 Apr 2007 16:43:07 +0100 Subject: Reprojected ghost images Message-ID: Hello fellow MapServer users, I have a small problem with reprojecting a tileindexed raster layer. The original layer is in GB National Grid coordinates and I have reprojected this on the fly to latitude and longitude. The coverage of the layer extends to the area of the United Kingdom. The re-projection works fine and I am very happy with it. The problem is if I zoom out to a whole World view, there are two duplicates of the reprojected UK raster layer equally spaced on either side of the real layer. The duplicates are on the same line of latitude as the real layer but are approximately located in North America and East Russia. The duplicates are also heavily distorted, and one is the mirror image of the other. I would like to know what is causing this and how I can possibly prevent it. I have a workaround which is to switch the layer off when I have zoomed out a certain amount; this works ok at the moment but may cause problems in the future. Any ideas would be greatly appreciated. I am using MapServer version 4.10.0-5+etch1 on Debian Etch. Regards, John W. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Fri Apr 27 10:30:46 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 27 Apr 2007 13:30:46 -0400 Subject: Reprojected ghost images In-Reply-To: <4632281B.FEDC.0053.0@port.ac.uk> Message-ID: John - The GB National Grid is a Transverse Mercator projection with a central parallel of 49 degrees North. A world map in that projection would look rather strange, but should be possible (if inadvisable). I realize you?re using a latitude/longitude output projection (equally inadvisable, but that?s another soapbox) but when you put your NG layer on that output map you?re in effect causing a world-sized view of your TM projection in order to figure out where your TM source image should be placed. I?m not quite seeing how your particular symptom is produced by that problem, however. Is your map viewer publicly accessible, and can you post your map file? Thanks. - Ed -- Ed McNierney President and Chief Mapmaker Maps a la carte, Inc. / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed at topozone.com From: John Westwood Reply-To: John Westwood Date: Fri, 27 Apr 2007 16:43:07 +0100 To: Subject: [UMN_MAPSERVER-USERS] Reprojected ghost images Hello fellow MapServer users, I have a small problem with reprojecting a tileindexed raster layer. The original layer is in GB National Grid coordinates and I have reprojected this on the fly to latitude and longitude. The coverage of the layer extends to the area of the United Kingdom. The re-projection works fine and I am very happy with it. The problem is if I zoom out to a whole World view, there are two duplicates of the reprojected UK raster layer equally spaced on either side of the real layer. The duplicates are on the same line of latitude as the real layer but are approximately located in North America and East Russia. The duplicates are also heavily distorted, and one is the mirror image of the other. I would like to know what is causing this and how I can possibly prevent it. I have a workaround which is to switch the layer off when I have zoomed out a certain amount; this works ok at the moment but may cause problems in the future. Any ideas would be greatly appreciated. I am using MapServer version 4.10.0-5+etch1 on Debian Etch. Regards, John W. -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Fri Apr 27 12:09:48 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 27 Apr 2007 15:09:48 -0400 Subject: RGB vs grayscale In-Reply-To: Message-ID: John Mitchell wrote: > Hi, > > Below are sections from 2 different gdalinfo listings: > > RGB that displays the way we expected in MapServer > > Band 1 Block=256x256 Type=Byte, ColorInterp=Red > Band 2 Block=256x256 Type=Byte, ColorInterp=Green > Band 3 Block=256x256 Type=Byte, ColorInterp=Blue > ---------------------- > RGB that displays as a gray scale in MapServer > > Band 1 Block=1394x1 Type=Byte, ColorInterp=Red > Band 2 Block=1394x1 Type=Byte, ColorInterp=Green > Band 3 Block=1394x1 Type=Byte, ColorInterp=Blue > > What does 1394x1 mean (one level deep)? John, 1394x1 is the internal blocksize in the file. It basically means that the file in question is being accessed scanline by scanline, while the other is read in chunks of 256x256 tiles. > The second image that shows up as gray scale within MapServer shows up > as color within the global mapper desktop application. Is their > anything that could be done to change the header info within the file ( > i.e. running gdalwarp against the grayscale appearing image so that > MapServer recognizes it as RGB)? There is no reason obvious from the gdalinfo output that mapserver would have trouble showing the second image in RGB. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From szekerest at GMAIL.COM Fri Apr 27 12:40:44 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Fri, 27 Apr 2007 21:40:44 +0200 Subject: Adding namespace support for the MapScript C# interface Message-ID: Folks, According to the OSGeo affiliation the time has arrived to put the C# interface classes into the right place from a higher level of the abstraction. In this regard I'm planning to place the MapScript classes in a separate namespace so as to harmonize the project with GDAL/OGR where this change have already been done. For choosing the proper name I should follow the general .NET namespace naming guildelines by using CompanyName.TechnologyName as the root. The names should be PascalCase-d without using underscores. Acronyms and abbreviations should also be PascalCase-d. As the result of this change the MapServer/GDAL/OGR classes will reside in the following namespaces: OSGeo.MapServer OSGeo.GDAL OSGeo.OGR OSGeo.OSR I will also change the module name from mapscript to MapScript at the C# interface since the classes shoul also be Pascal cased. However I will not alter the names of the remaining classes like mapObj since these classes come from a common ground of the SWIG bindings and should behave similarly for the various languages. We will also continue to maintain one reference document for all of the bindings. If I get no relevant reason against the additions from the MapScript.NET community, the corresponding changes will be applied for the 5.0 release. Best regards, Tamas Szekeres From woodbri at SWOODBRIDGE.COM Fri Apr 27 14:04:02 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 27 Apr 2007 17:04:02 -0400 Subject: PDF of Symbology Reference Hangs Message-ID: Hi, http://mapserver.gis.umn.edu/docs/reference/symbology/referencemanual-all-pages If you click the pdf link for this page it hangs the browser on both FF2 and IE6 -Steve From p.willis at TELUS.NET Fri Apr 27 14:49:58 2007 From: p.willis at TELUS.NET (pw) Date: Fri, 27 Apr 2007 14:49:58 -0700 Subject: Odd Vector behaviour using Lambert Azimuthal Equal Area and Global Vector Message-ID: Hello, I am working with mapserver version 4.10.1. I am using a global polygon vector of land in SHP format. The vector has a latlong coordinate system. The vector has land color filled and water blank. The map file that mapserver is using defines a map with a Lambert Azimuthal Equal Area projection (laea). Mapserver has no problem with the map Lambert projection centered over most global coordinates. PROBLEM: I am finding that mapserver maps the land vector inverted with land blank and water color filled when I cross various geographic boundaries with my Lambert projection. I have posted a map showing where Mapserver inverts the opaque and transparent colors of the polygon vector when using Lambert AEA. http://www3.telus.net/amphora/images/index.html QUESTIONS: Is this a problem with Mapserver, GDAL, Proj4,...??? Has anyone encountered this before? Is the problem workable or do I need another global land vector centered on the other side of the globe? Thanks for any info, Peter From p.willis at TELUS.NET Fri Apr 27 16:24:41 2007 From: p.willis at TELUS.NET (pw) Date: Fri, 27 Apr 2007 16:24:41 -0700 Subject: Odd Vector behaviour using Lambert Azimuthal Equal Area and Global Vector [Additional Information] In-Reply-To: <46327006.4090709@telus.net> Message-ID: pw wrote: > Hello, > > I am working with mapserver version 4.10.1. > > I am using a global polygon vector of land in SHP format. > The vector has a latlong coordinate system. The vector > has land color filled and water blank. > > The map file that mapserver is using defines a map > with a Lambert Azimuthal Equal Area projection (laea). > > Mapserver has no problem with the map Lambert projection > centered over most global coordinates. > > PROBLEM: > > I am finding that mapserver maps the land vector > inverted with land blank and water color filled when > I cross various geographic boundaries with my Lambert projection. > > I have posted a map showing where Mapserver inverts the > opaque and transparent colors of the polygon vector > when using Lambert AEA. > > http://www3.telus.net/amphora/images/index.html > > QUESTIONS: > > Is this a problem with Mapserver, GDAL, Proj4,...??? > Has anyone encountered this before? > Is the problem workable or do I need another global > land vector centered on the other side of the globe? > > Thanks for any info, > > Peter > > The problem is also related to map scale. I have provided samples images at: http://www3.telus.net/amphora/images/index.html Peter From sirfraz at GMAIL.COM Sat Apr 28 10:00:20 2007 From: sirfraz at GMAIL.COM (sarfaraz ahmed) Date: Sat, 28 Apr 2007 21:00:20 +0400 Subject: How to display arabic labels in Mapserver Message-ID: Hi, I am a new user to map server and I am unable to display Arabic labels in map. I am using chameleon library and along with it I downloaded Arabic fonts and also tried windows Arabic fonts but no use. Sample of layer is like: LAYER NAME Credits STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 200 150 END TEXT '???? ?????? ' END CLASS LABEL TYPE TRUETYPE FONT TITUSCBZ SIZE 14 COLOR 0 0 0 END END END I am using binary ver. 2.2.3 for windows. Please help me. Regards, *Sarfraz * -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Sat Apr 28 17:38:38 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 28 Apr 2007 20:38:38 -0400 Subject: Symbology Questions Message-ID: Hi all, I have some question on symbology that are not address by the current documentation. I'm using mapserver 4.10.1 1) I have truetype font with symbols in it. Some of the symbols I can trying to use show nicely in Windows Character Map as a solid filled pictograph, but when I create a mapserver symbol it is just an outline. SYMBOL NAME "building" TYPE TRUETYPE FONT "cartogra" CHARACTER "F" FILLED TRUE END 2) I need to make a dashed line with some additional symbols along it, like: ----(.)---- ---- ---- ----(.)---- ---- Where the (.) is a circle with a dot. I have a truetype symbol for the (.), but the (.) needs to fall in what would otherwise be a gap. So I am trying something like this: SYMBOL NAME "a_cable_dot" TYPE TRUETYPE FONT "cartogra" CHARACTER "J" GAP 100 END SYMBOL NAME "a_cable_dash" TYPE ELLIPSE POINTS 1 1 END FILLED TRUE STYLE 0 5 20 5 20 5 20 5 20 END END then overlaying the two of these with two styles. Is there a better way of doing this? How can I control the placement of the circle-dot. Thanks, -Steve W From woodbri at SWOODBRIDGE.COM Sat Apr 28 17:56:51 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 28 Apr 2007 20:56:51 -0400 Subject: Symbology Questions In-Reply-To: <4633E90E.30507@swoodbridge.com> Message-ID: On further investigation, it looks like the fill on the truetype symbol is white but the symbol is drawn in black, the requested color. The layer looks like: # Building LAYER NAME "buildin_p" GROUP "CO" STATUS DEFAULT MAXSCALE 100100 TILEINDEX "tindex-50k" DATA "buildin_p" TYPE POINT CLASSITEM "ATC" CLASS ... END ... CLASS EXPRESSION "177" # Industrial building STYLE SYMBOL "building" SIZE 15 ANGLEITEM "ANGLE" COLOR 0 0 0 END END END -Steve Stephen Woodbridge wrote: > Hi all, > > I have some question on symbology that are not address by the current > documentation. I'm using mapserver 4.10.1 > > 1) I have truetype font with symbols in it. Some of the symbols I can > trying to use show nicely in Windows Character Map as a solid filled > pictograph, but when I create a mapserver symbol it is just an outline. > > SYMBOL > NAME "building" > TYPE TRUETYPE > FONT "cartogra" > CHARACTER "F" > FILLED TRUE > END > > 2) I need to make a dashed line with some additional symbols along it, > like: > > ----(.)---- ---- ---- ----(.)---- ---- > > Where the (.) is a circle with a dot. I have a truetype symbol for the > (.), but the (.) needs to fall in what would otherwise be a gap. So I am > trying something like this: > > SYMBOL > NAME "a_cable_dot" > TYPE TRUETYPE > FONT "cartogra" > CHARACTER "J" > GAP 100 > END > > SYMBOL > NAME "a_cable_dash" > TYPE ELLIPSE > POINTS 1 1 END > FILLED TRUE > STYLE 0 5 20 5 20 5 20 5 20 END > END > > then overlaying the two of these with two styles. > Is there a better way of doing this? > How can I control the placement of the circle-dot. > > Thanks, > -Steve W From fend0009 at UMN.EDU Sun Apr 29 07:13:14 2007 From: fend0009 at UMN.EDU (fend0009) Date: Sun, 29 Apr 2007 09:13:14 CDT Subject: Chameleon SQLquery Widget Message-ID: Hi list: I am using a sqlquery widget to build a report on employment change in a mapping application. Having little experience in PostgreSQL and Chameleon, I managed to upload a shapefile (empchgfinal.shp) to PostgreSQL database, created a spatial index (gist type, name "emp") for the shapefile and wrote the following SQL query in the html file. However, when I selected the area of interest (using ROIManager widget), I can see the area is highlighted, but when I click on generate report, I got an empty result. 1) What is sharedresourcename in the SQL Query and Table widgets for and how should it be specified in the table widget? ("EMP" is a report type out of 4 link options in the report.html and "emp" is the name for the spatial index in the shapefile). 2) Is there some thing I should do extra in PostgresSQL so that this will work? Could someone please give me some guidance as to how I can fix this? Any suggestions will be highly appreciated. Thanks! Sincerely, Jessica Fendos