From jasonbeverage at gmail.com Fri May 1 05:46:27 2009 From: jasonbeverage at gmail.com (Jason Beverage) Date: Fri, 1 May 2009 08:46:27 -0400 Subject: [mapserver-users] WCS Elevation and Edge Matching Message-ID: <2c4bbbeb0905010546x26f87430vbfdb633c988480a6@mail.gmail.com> Hi all, I'm working on the osgEarth (http://www.osgearth.org) WCS plugin and I'm trying to connect to MapServer as a WCS to access SRTM data. Things look great for the most part, but I'm having issues that tile edges don't line up exactly, the elevations are slightly off. I am specifying bilinear resampling in the map file via PROCESSING "RESAMPLE=BILINEAR". The edges of the bounding boxes I'm specifying should be lining up exactly with the neighboring tiles. The SRTM I am using is a single tiled geotiff with overviews. Are there any tricks to getting the edges of the tiles to match up exactly? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From vsaraf.gmu at gmail.com Fri May 1 09:53:50 2009 From: vsaraf.gmu at gmail.com (Varun saraf) Date: Fri, 1 May 2009 12:53:50 -0400 Subject: [mapserver-users] Re: Dynamic data loading using Google maps and Mapserver In-Reply-To: <6db14d250904301530w457991c6m50111b694ed69ba1@mail.gmail.com> References: <6db14d250904301530w457991c6m50111b694ed69ba1@mail.gmail.com> Message-ID: <6db14d250905010953w4a2c2906g3f71589c536d9b34@mail.gmail.com> Hi, I just had a look at ImageMap Template on "Output generation"...Can this be used on google maps to get information pooped up on a mouseover or mouseclick in tile mode? If not, what is it that I can do to get a similar result when using Mapserver with google maps? Regards, Varun On Thu, Apr 30, 2009 at 6:30 PM, Varun saraf wrote: > Hi, > > I have successfully drawn layers on of google maps as base using > mapserver. However, I am trying to figure out how to get data > dynamically displayed on the web page when a user clicks on a certain > area. For example, I have divided the entire state of virginia into > many sectors (using a polygon shp file). My requirement is that I want > data to come up on the map/web page when the user selects a particular > sector. I know google provides me with an event api for clicking on > the map but how do I pass this event to mapserver so it can send me > the label for that sector from the shape file? I need to be able to > recognize what sector the user has clicked. Is this possible using > just the mapserv cgi script and a map file or a MapScript has to be > written/used? Can someone point me in the right direction here? Even > providing the link for a previous discussion on this topic would help. > > Thanks, > Varun > From jasonbeverage at gmail.com Fri May 1 11:01:08 2009 From: jasonbeverage at gmail.com (jasonbeverage) Date: Fri, 1 May 2009 11:01:08 -0700 (PDT) Subject: [mapserver-users] WCS Elevation and Edge Matching In-Reply-To: <2c4bbbeb0905010546x26f87430vbfdb633c988480a6@mail.gmail.com> References: <2c4bbbeb0905010546x26f87430vbfdb633c988480a6@mail.gmail.com> Message-ID: <1241200868466-2754493.post@n2.nabble.com> Hi all, I figured out what the issue was this morning. I realized I needed to expand the bounding box of each tile by half a pixel on all sides so that the elevation values on the tile edges would line up with the CENTER of the pixel rather than the edges. Thanks and sorry for the noise! Jason jasonbeverage wrote: > > Hi all, > > I'm working on the osgEarth (http://www.osgearth.org) WCS plugin and I'm > trying to connect to MapServer as a WCS to access SRTM data. > > Things look great for the most part, but I'm having issues that tile edges > don't line up exactly, the elevations are slightly off. I am specifying > bilinear resampling in the map file via PROCESSING "RESAMPLE=BILINEAR". > > The edges of the bounding boxes I'm specifying should be lining up exactly > with the neighboring tiles. > > The SRTM I am using is a single tiled geotiff with overviews. > > Are there any tricks to getting the edges of the tiles to match up > exactly? > > Thanks! > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/WCS-Elevation-and-Edge-Matching-tp2752933p2754493.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Baas at speerit.nl Fri May 1 15:35:46 2009 From: Baas at speerit.nl (Jelmer Baas) Date: Sat, 2 May 2009 00:35:46 +0200 Subject: [mapserver-users] MapScript and ZoomRectangle (and rectObj problems) Message-ID: <68C97F84EAD0174799AC6FCEE219DEF2538499@batavia.Speerit.local> Hello List, Three years ago, I built a web interface for our primary application using MapServer. Now we're in the process of building that same application in VB.Net (but with more features) using MapScript. Although everything comes along nicely (I love the fact that everything returns objects, etc) there is one huge problem that I can't seem to solve: creating and using the rectObj class. I read a lot about it and found many bug cases, older messages, etc, but I still can't make heads or tails of it. I'm sorry about asking it, since it must be the millionth time this question has been asked. I *CAN* get ZoomRect with a rectObj to work when using image coords, even though that requires my own code that flips miny and maxy to solve that lovely error about miny => maxy or something. When I try to use it with map coords however, I can't get it to work. In my init code I create a new rect object: Map = New mapObj(strMapPath) FullExtent = New rectObj(0, 0, 0, 0, 0) With Map.extent FullExtent.maxx = .maxx FullExtent.minx = .minx FullExtent.maxy = .maxy FullExtent.miny = .miny End With When I feed this to ZoomRectangle using Map.zoomRectangle(FullExtent, MapWidth, MapHeight, Map.extent, Nothing) I get that famous "mapscript::mapObj::zoomRectangle(): General error message. image rectangle maxy >= miny". When I flip miny and maxy I end up in the middle of the Sahara (while the original coords should show the Netherlands). Things I wonder about: 1) How can I get zoomRectangle to work with world/map coords instead of image coords? 2) Why does the constructor have an "imageunits as integer"? IMHO a simple rect object has nothing todo with the coordsys of the/a map (since I can more than one). 3) When will the much discussed bugfix be applied that automaticly flips miny/maxy? Any help would be greatly appreciated, With kind regards, Jelmer Baas From voas_acc at hotmail.com Sat May 2 06:20:43 2009 From: voas_acc at hotmail.com (Jim Strevinas) Date: Sat, 2 May 2009 16:20:43 +0300 Subject: [mapserver-users] MapScript and ZoomRectangle (and rectObj problems) In-Reply-To: <68C97F84EAD0174799AC6FCEE219DEF2538499@batavia.Speerit.local> References: <68C97F84EAD0174799AC6FCEE219DEF2538499@batavia.Speerit.local> Message-ID: > Date: Sat, 2 May 2009 00:35:46 +0200 > From: Baas at speerit.nl > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] MapScript and ZoomRectangle (and rectObj problems) > > Hello List, > > Three years ago, I built a web interface for our primary application > using MapServer. Now we're in the process of building that same > application in VB.Net (but with more features) using MapScript. > > Although everything comes along nicely (I love the fact that everything > returns objects, etc) there is one huge problem that I can't seem to > solve: creating and using the rectObj class. I read a lot about it and > found many bug cases, older messages, etc, but I still can't make heads > or tails of it. I'm sorry about asking it, since it must be the > millionth time this question has been asked. > > I *CAN* get ZoomRect with a rectObj to work when using image coords, > even though that requires my own code that flips miny and maxy to solve > that lovely error about miny => maxy or something. When I try to use it > with map coords however, I can't get it to work. > > In my init code I create a new rect object: > Map = New mapObj(strMapPath) > FullExtent = New rectObj(0, 0, 0, 0, 0) > With Map.extent > FullExtent.maxx = .maxx > FullExtent.minx = .minx > FullExtent.maxy = .maxy > FullExtent.miny = .miny > End With > > When I feed this to ZoomRectangle using > Map.zoomRectangle(FullExtent, MapWidth, MapHeight, Map.extent, Nothing) > I get that famous "mapscript::mapObj::zoomRectangle(): General error > message. image rectangle maxy >= miny". > > When I flip miny and maxy I end up in the middle of the Sahara (while > the original coords should show the Netherlands). > > Things I wonder about: > 1) How can I get zoomRectangle to work with world/map coords instead of > image coords? > 2) Why does the constructor have an "imageunits as integer"? IMHO a > simple rect object has nothing todo with the coordsys of the/a map > (since I can more than one). > 3) When will the much discussed bugfix be applied that automaticly flips > miny/maxy? > > Any help would be greatly appreciated, > > With kind regards, > Jelmer Baas > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users Hi, When I want to use ZoomRectangle with real coordinates, i always transform the real coordinates to image coords based on the current rendering of the map. I talk about current rendering because one must compute the pixels by geographical degrees of the image. A simple function to do such conversion could be: # Width and height of the map image (from mapObj.width) # X,Y are the real coord pair # real_extent from mapObj.extent def map2img (width, height, x, y, real_extent): ppd_x=0 ppd_y=0 new_x=0 new_y=0 ppd_x = width / ( real_extent.maxx - real_extent.minx ) # pixel per degrees ppd_y = height / ( real_extent.maxy - real_extent.miny ) new_x=ppd_x * ( x - real_extent.minx ) new_y=height - ppd_y * ( y - real_extent.miny ) return (new_x , new_y) Thus, the two pairs of real coordinates can be converted using two call to this function (there exists a distortion though in large scales). Beware that if your map is using a different "output" projection than the REAL zoom coordinates are (say, zoom coords are latlong while map is LAEA) you should first use a method to reproject the coords to the map's projection equivelant (i do sth like this using the OGR/GDAL's osr module) Finally, prevent minx>maxx error by requiring that the users define the proper points for the input rectangle say (UL and LR) or (UR and LL) Hope this helps a bit. _________________________________________________________________ Show them the way! Add maps and directions to your party invites. http://www.microsoft.com/windows/windowslive/products/events.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Sat May 2 07:28:01 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Sat, 02 May 2009 09:28:01 -0500 Subject: [mapserver-users] Re: Dynamic data loading using Google maps andMapserver Message-ID: <49FC12210200008F00023917@co5.dnr.state.mn.us> One way to do that is to construct MapServer queries based on the event and submit them using AJAX. This site does just that but with OpenLayers: http://www.dnr.state.mn.us/waters/csg/index_copy.html Click on the dots and a MapServer query is done behind the scenes. If successful a little window control is populated, if not, then nothing happens. Simple templates are used to present the information. Steve >>> Varun saraf 05/01/09 11:54 AM >>> Hi, I just had a look at ImageMap Template on "Output generation"...Can this be used on google maps to get information pooped up on a mouseover or mouseclick in tile mode? If not, what is it that I can do to get a similar result when using Mapserver with google maps? Regards, Varun On Thu, Apr 30, 2009 at 6:30 PM, Varun saraf wrote: > Hi, > > I have successfully drawn layers on of google maps as base using > mapserver. However, I am trying to figure out how to get data > dynamically displayed on the web page when a user clicks on a certain > area. For example, I have divided the entire state of virginia into > many sectors (using a polygon shp file). My requirement is that I want > data to come up on the map/web page when the user selects a particular > sector. I know google provides me with an event api for clicking on > the map but how do I pass this event to mapserver so it can send me > the label for that sector from the shape file? I need to be able to > recognize what sector the user has clicked. Is this possible using > just the mapserv cgi script and a map file or a MapScript has to be > written/used? Can someone point me in the right direction here? Even > providing the link for a previous discussion on this topic would help. > > Thanks, > Varun > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From voas_acc at hotmail.com Sat May 2 07:55:16 2009 From: voas_acc at hotmail.com (Jim Strevinas) Date: Sat, 2 May 2009 17:55:16 +0300 Subject: [mapserver-users] Re: Dynamic data loading using Google maps andMapserver In-Reply-To: <49FC12210200008F00023917@co5.dnr.state.mn.us> References: <49FC12210200008F00023917@co5.dnr.state.mn.us> Message-ID: A beautiful example that uses the Google Maps API is: http://www.dyasdesigns.com/geoxml/gmlusa.htm It makes use of an API plugin called geoxml that can load XML data which can be produced by a WFS server. In the source code, a static GML file is used but a google search shows that it can connect to a live WFS server using the URL. > Date: Sat, 2 May 2009 09:28:01 -0500 > From: Steve.Lime at dnr.state.mn.us > To: vsaraf.gmu at gmail.com > Subject: Re: [mapserver-users] Re: Dynamic data loading using Google maps andMapserver > CC: mapserver-users at lists.osgeo.org > > One way to do that is to construct MapServer queries based on the event > and submit them using AJAX. This site does just that but with OpenLayers: > > http://www.dnr.state.mn.us/waters/csg/index_copy.html > > Click on the dots and a MapServer query is done behind the scenes. If successful > a little window control is populated, if not, then nothing happens. Simple templates > are used to present the information. > > Steve > > >>> Varun saraf 05/01/09 11:54 AM >>> > Hi, > > I just had a look at ImageMap Template on "Output generation"...Can > this be used on google maps to get information pooped up on a > mouseover or mouseclick in tile mode? If not, what is it that I can do > to get a similar result when using Mapserver with google maps? > > Regards, > Varun > > On Thu, Apr 30, 2009 at 6:30 PM, Varun saraf wrote: > > Hi, > > > > I have successfully drawn layers on of google maps as base using > > mapserver. However, I am trying to figure out how to get data > > dynamically displayed on the web page when a user clicks on a certain > > area. For example, I have divided the entire state of virginia into > > many sectors (using a polygon shp file). My requirement is that I want > > data to come up on the map/web page when the user selects a particular > > sector. I know google provides me with an event api for clicking on > > the map but how do I pass this event to mapserver so it can send me > > the label for that sector from the shape file? I need to be able to > > recognize what sector the user has clicked. Is this possible using > > just the mapserv cgi script and a map file or a MapScript has to be > > written/used? Can someone point me in the right direction here? Even > > providing the link for a previous discussion on this topic would help. > > > > Thanks, > > Varun > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _________________________________________________________________ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us -------------- next part -------------- An HTML attachment was scrubbed... URL: From vsaraf.gmu at gmail.com Sat May 2 11:33:10 2009 From: vsaraf.gmu at gmail.com (Varun saraf) Date: Sat, 2 May 2009 14:33:10 -0400 Subject: [mapserver-users] Re: Dynamic data loading using Google maps andMapserver In-Reply-To: References: <49FC12210200008F00023917@co5.dnr.state.mn.us> Message-ID: <6db14d250905021133q5519c436p17329f5e75cefcf1@mail.gmail.com> Hi, Thanks a lot Jim and Steve. These are great examples but I am dividing each state of USA into about 1300 polygons and I need a way to find which polygon is selected by the user. I tried building Gpolygons using the polygon data that i have (after converting it into a GML file) but it makes Google damn slow to redraw the polygons on zoom in and zoom out. The tile mode in mapserver is much faster. Now, After I draw the polygon in tile mode using mapserver, Is there a way Mapserver can return to me the specific polygon info (say co-ordinates or any other data in the dbf file relating to that polygon) when I select it on google map? Goggle I believe can give me the exact co-ordinates of the point I clicked. Can mapserver use this point location to find which polygon was selected? Thanks, Varun 2009/5/2 Jim Strevinas : > A beautiful example that uses the Google Maps API is: > > http://www.dyasdesigns.com/geoxml/gmlusa.htm > > It makes use of an API plugin called geoxml that can load XML data which can > be produced by > a WFS server. In the source code, a static GML file is used but a google > search shows that it can > connect to a live WFS server using the URL. > >> Date: Sat, 2 May 2009 09:28:01 -0500 >> From: Steve.Lime at dnr.state.mn.us >> To: vsaraf.gmu at gmail.com >> Subject: Re: [mapserver-users] Re: Dynamic data loading using Google maps >> andMapserver >> CC: mapserver-users at lists.osgeo.org >> >> One way to do that is to construct MapServer queries based on the event >> and submit them using AJAX. This site does just that but with OpenLayers: >> >> http://www.dnr.state.mn.us/waters/csg/index_copy.html >> >> Click on the dots and a MapServer query is done behind the scenes. If >> successful >> a little window control is populated, if not, then nothing happens. Simple >> templates >> are used to present the information. >> >> Steve >> >> >>> Varun saraf 05/01/09 11:54 AM >>> >> Hi, >> >> I just had a look at ImageMap Template on "Output generation"...Can >> this be used on google maps to get information pooped up on a >> mouseover or mouseclick in tile mode? If not, what is it that I can do >> to get a similar result when using Mapserver with google maps? >> >> Regards, >> Varun >> >> On Thu, Apr 30, 2009 at 6:30 PM, Varun saraf wrote: >> > Hi, >> > >> > I have successfully drawn layers on of google maps as base using >> > mapserver. However, I am trying to figure out how to get data >> > dynamically displayed on the web page when a user clicks on a certain >> > area. For example, I have divided the entire state of virginia into >> > many sectors (using a polygon shp file). My requirement is that I want >> > data to come up on the map/web page when the user selects a particular >> > sector. I know google provides me with an event api for clicking on >> > the map but how do I pass this event to mapserver so it can send me >> > the label for that sector from the shape file? I need to be able to >> > recognize what sector the user has clicked. Is this possible using >> > just the mapserv cgi script and a map file or a MapScript has to be >> > written/used? Can someone point me in the right direction here? Even >> > providing the link for a previous discussion on this topic would help. >> > >> > Thanks, >> > Varun >> > >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ________________________________ > Invite your mail contacts to join your friends list with Windows Live > Spaces. It's easy! Try it! > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Baas at speerit.nl Sun May 3 04:20:54 2009 From: Baas at speerit.nl (Jelmer Baas) Date: Sun, 3 May 2009 13:20:54 +0200 Subject: [mapserver-users] MapScript and ZoomRectangle (and rectObj problems) In-Reply-To: References: <68C97F84EAD0174799AC6FCEE219DEF2538499@batavia.Speerit.local> Message-ID: <68C97F84EAD0174799AC6FCEE219DEF253849D@batavia.Speerit.local> Jim, List, Thanks for the reply. I'm afraid that eventually I'll be working with more than one coord system, so I don't believe your solution can work for me. I've been continueing my testing, and it seems like all MapScript zoomto functions either work unlike I expect them, or are completely broken. I tried to following: In the immediate pane in VB .Net: ? map.setCenter(new pointObj(143000,485437,0,0)) 0 ? map.extent {OSGeo.MapServer.rectObj} maxx: 143397.59497452341 maxy: 485654.62790724094 minx: 142602.40502547659 miny: 485219.37209275906 This seems to work properly. Now the following: ? map.zoomScale(1000, new pointObj(143000,485437,0,0),mapwidth, mapheight,map.extent, nothing) 0 ? map.extent {OSGeo.MapServer.rectObj} maxx: 225008.64025899942 maxy: 207042.5828362515 minx: 224520.10434931691 miny: 206775.17742509485 When I change map.extent to fullExtent (which is set after loading, in this case the extents of the Netherlands) ? map.zoomScale(1000, new pointObj(143000,485437,0,2),mapwidth, mapheight,FullExtent, nothing) 0 ? map.extent {OSGeo.MapServer.rectObj} maxx: 85315130.06053336 maxy: -353386875.22545278 minx: 85314641.524623737 miny: -353387142.6308639 These numbers are completely unexpected. Even though I'm not sure about the zoomscale of 1000, the extent returned doesn't make any sense. MapWidth = 1384. mapHeight = 758 This is really a huge problem for us at the moment. I hope someone can shed some light on this. Thanks in advance, Jelmer Baas From Steve.Lime at dnr.state.mn.us Sun May 3 06:56:42 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Sun, 03 May 2009 08:56:42 -0500 Subject: [mapserver-users] Re: Dynamic data loading using Google maps andMapserver Message-ID: <49FD5C4B0200008F0002392C@co5.dnr.state.mn.us> Both examples show how to do this. You have to create a query using the coordinate from Google to access MapServer. My example uses the principle to query points but would work for polygons (which are actually easier). You could issue straight MapServer queries: http://.../cgi-bin/mapserv?mode=query&map=something.map&mapxy=google_x+google_y&qlayer=the_polygons or do a WFS query. Since you're already using straight MapServer the former would probably be easiest. Steve >>> Varun saraf 05/02/09 1:34 PM >>> Hi, Thanks a lot Jim and Steve. These are great examples but I am dividing each state of USA into about 1300 polygons and I need a way to find which polygon is selected by the user. I tried building Gpolygons using the polygon data that i have (after converting it into a GML file) but it makes Google damn slow to redraw the polygons on zoom in and zoom out. The tile mode in mapserver is much faster. Now, After I draw the polygon in tile mode using mapserver, Is there a way Mapserver can return to me the specific polygon info (say co-ordinates or any other data in the dbf file relating to that polygon) when I select it on google map? Goggle I believe can give me the exact co-ordinates of the point I clicked. Can mapserver use this point location to find which polygon was selected? Thanks, Varun 2009/5/2 Jim Strevinas : > A beautiful example that uses the Google Maps API is: > > http://www.dyasdesigns.com/geoxml/gmlusa.htm > > It makes use of an API plugin called geoxml that can load XML data which can > be produced by > a WFS server. In the source code, a static GML file is used but a google > search shows that it can > connect to a live WFS server using the URL. > >> Date: Sat, 2 May 2009 09:28:01 -0500 >> From: Steve.Lime at dnr.state.mn.us >> To: vsaraf.gmu at gmail.com >> Subject: Re: [mapserver-users] Re: Dynamic data loading using Google maps >> andMapserver >> CC: mapserver-users at lists.osgeo.org >> >> One way to do that is to construct MapServer queries based on the event >> and submit them using AJAX. This site does just that but with OpenLayers: >> >> http://www.dnr.state.mn.us/waters/csg/index_copy.html >> >> Click on the dots and a MapServer query is done behind the scenes. If >> successful >> a little window control is populated, if not, then nothing happens. Simple >> templates >> are used to present the information. >> >> Steve >> >> >>> Varun saraf 05/01/09 11:54 AM >>> >> Hi, >> >> I just had a look at ImageMap Template on "Output generation"...Can >> this be used on google maps to get information pooped up on a >> mouseover or mouseclick in tile mode? If not, what is it that I can do >> to get a similar result when using Mapserver with google maps? >> >> Regards, >> Varun >> >> On Thu, Apr 30, 2009 at 6:30 PM, Varun saraf wrote: >> > Hi, >> > >> > I have successfully drawn layers on of google maps as base using >> > mapserver. However, I am trying to figure out how to get data >> > dynamically displayed on the web page when a user clicks on a certain >> > area. For example, I have divided the entire state of virginia into >> > many sectors (using a polygon shp file). My requirement is that I want >> > data to come up on the map/web page when the user selects a particular >> > sector. I know google provides me with an event api for clicking on >> > the map but how do I pass this event to mapserver so it can send me >> > the label for that sector from the shape file? I need to be able to >> > recognize what sector the user has clicked. Is this possible using >> > just the mapserv cgi script and a map file or a MapScript has to be >> > written/used? Can someone point me in the right direction here? Even >> > providing the link for a previous discussion on this topic would help. >> > >> > Thanks, >> > Varun >> > >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ________________________________ > Invite your mail contacts to join your friends list with Windows Live > Spaces. It's easy! Try it! > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From voas_acc at hotmail.com Sun May 3 09:21:43 2009 From: voas_acc at hotmail.com (Jim Strevinas) Date: Sun, 3 May 2009 19:21:43 +0300 Subject: [mapserver-users] MapScript and ZoomRectangle (and rectObj problems) In-Reply-To: <68C97F84EAD0174799AC6FCEE219DEF253849D@batavia.Speerit.local> References: <68C97F84EAD0174799AC6FCEE219DEF2538499@batavia.Speerit.local> <68C97F84EAD0174799AC6FCEE219DEF253849D@batavia.Speerit.local> Message-ID: Hi Jelmer, Concering ZoomRectangle you said "I'll be working with more than one coord system" From that I get the following: 1. Either you mean that the coordinate system of the map can change during the application flow (alas you change your projection using mapObj.SetProjection(...) (the most usual) 2. Or the map projection stays put and you want to input a rectangle expressed in various projections to use with ZoomRectangle In both cases (where different coordinate systems are involved) you still need a way to reproject the input coordinates to the current map object projection. After you do this a function like the one i posted, can do the trick and convert to image coordinates (so you can use ZoomRectangle) As for the next problem you describe, I can't tell much because you use the FullExtent variable for which I can not know its contents (is it expressed in lat/long maybe i don't know, if so you must reproject lat/long to the map projection too). Possible a glimpse at your mapfile would help. Sorry if my post is not so useful to you but errors and misconceptions using mapscript are very common. Regards, Jim > Subject: RE: [mapserver-users] MapScript and ZoomRectangle (and rectObj problems) > Date: Sun, 3 May 2009 13:20:54 +0200 > From: Baas at speerit.nl > To: mapserver-users at lists.osgeo.org > > Jim, List, > > Thanks for the reply. I'm afraid that eventually I'll be working with > more than one coord system, so I don't believe your solution can work > for me. > > I've been continueing my testing, and it seems like all MapScript zoomto > functions either work unlike I expect them, or are completely broken. I > tried to following: > > In the immediate pane in VB .Net: > ? map.setCenter(new pointObj(143000,485437,0,0)) > 0 > ? map.extent > {OSGeo.MapServer.rectObj} > maxx: 143397.59497452341 > maxy: 485654.62790724094 > minx: 142602.40502547659 > miny: 485219.37209275906 > > This seems to work properly. Now the following: > ? map.zoomScale(1000, new pointObj(143000,485437,0,0),mapwidth, > mapheight,map.extent, nothing) > 0 > ? map.extent > {OSGeo.MapServer.rectObj} > maxx: 225008.64025899942 > maxy: 207042.5828362515 > minx: 224520.10434931691 > miny: 206775.17742509485 > > When I change map.extent to fullExtent (which is set after loading, in > this case the extents of the Netherlands) > ? map.zoomScale(1000, new pointObj(143000,485437,0,2),mapwidth, > mapheight,FullExtent, nothing) > 0 > ? map.extent > {OSGeo.MapServer.rectObj} > maxx: 85315130.06053336 > maxy: -353386875.22545278 > minx: 85314641.524623737 > miny: -353387142.6308639 > > These numbers are completely unexpected. Even though I'm not sure about > the zoomscale of 1000, the extent returned doesn't make any sense. > MapWidth = 1384. mapHeight = 758 > > This is really a huge problem for us at the moment. I hope someone can > shed some light on this. > > Thanks in advance, > Jelmer Baas > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _________________________________________________________________ Windows Live?: Keep your life in sync. Check it out! http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_012009 -------------- next part -------------- An HTML attachment was scrubbed... URL: From temiz at deprem.gov.tr Mon May 4 02:32:03 2009 From: temiz at deprem.gov.tr (orkun) Date: Mon, 04 May 2009 12:32:03 +0300 Subject: [mapserver-users] problem with zoomRectangle Message-ID: <1241429523.5797.5.camel@orkun-desktop> hello I am working on java-mapscript I have a problem with zoomRectangle: here it is rect_left: 377.000 rect_top: 120.000 rect_width: 52 rect_height: 36 rectObj rect_img=new rectObj(rect_left,500-(rect_top+rect_height), rect_left+rect_width,500-rect_top,0) ; // 500 map dimensions rect_img.toString() { 'minx': 377 , 'miny': 344 , 'maxx': 429 , 'maxy':380 } // for checking it looks ok map0.zoomRectangle(rect_img,500,500,map0.getExtent(),null); it gives: Caused by: java.lang.UnknownError: mapscript::mapObj::zoomRectangle(): General error message. image rectangle maxy >= miny when I change the places of miny and maxy . it does not work again what is the wrong I am doing ? regards -- Ahmet Temiz Jeo. M?h. Afet ??leri Gen. Md.l??? Deprem Ar. D. Ahmet Temiz Geo. Eng. General Dir. of Disaster Affairs TURKEY -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From umberto.nicoletti at gmail.com Mon May 4 03:17:13 2009 From: umberto.nicoletti at gmail.com (Umberto Nicoletti) Date: Mon, 4 May 2009 12:17:13 +0200 Subject: [mapserver-users] problem with zoomRectangle In-Reply-To: <1241429523.5797.5.camel@orkun-desktop> References: <1241429523.5797.5.camel@orkun-desktop> Message-ID: <75b4b93e0905040317x2bc0a6c0qd260ca45ed40b3bf@mail.gmail.com> I use this code to build the zoomRectangle (note the 1 which allows for miny >= maxy): return new rectObj( (getXAsDouble() < getX2AsDouble() ) ? getXAsDouble() : getX2AsDouble(), (getYAsDouble() < getY2AsDouble() ) ? getY2AsDouble() : getYAsDouble(), (getXAsDouble() < getX2AsDouble() ) ? getX2AsDouble() : getXAsDouble(), (getYAsDouble() < getY2AsDouble() ) ? getYAsDouble() : getY2AsDouble(), 1 // image coordinates, allow for miny >= maxy ); where X,Y and X2,Y2 are class attributes. HTH, Umberto On Mon, May 4, 2009 at 11:32 AM, orkun wrote: > hello > > I am working on java-mapscript > > I have a problem with zoomRectangle: > > here it is > > rect_left: 377.000 > rect_top: 120.000 > rect_width: 52 > rect_height: 36 > > rectObj rect_img=new rectObj(rect_left,500-(rect_top+rect_height), > rect_left+rect_width,500-rect_top,0) ?; // 500 map dimensions > > rect_img.toString() { 'minx': 377 , 'miny': 344 , 'maxx': 429 , > 'maxy':380 } ?// for checking it looks ok > > map0.zoomRectangle(rect_img,500,500,map0.getExtent(),null); > > it gives: > > Caused by: java.lang.UnknownError: mapscript::mapObj::zoomRectangle(): > General error message. image rectangle maxy >= miny > > when I change the places of miny and maxy . it does not work again > > what is the wrong I am doing ? > > regards > -- > Ahmet Temiz > Jeo. M?h. > Afet ??leri Gen. Md.l??? > Deprem Ar. D. > > Ahmet Temiz > Geo. Eng. > General Dir. of > Disaster Affairs > TURKEY > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From schroeter at netgis.de Mon May 4 07:07:15 2009 From: schroeter at netgis.de (Sven Schroeter) Date: Mon, 4 May 2009 16:07:15 +0200 Subject: [mapserver-users] GetFeatureInfo in XML Message-ID: <8E3DDAF38028446B94779E40DBD425DA@SVEN> Hi all, I am currently experimenting with Web Map Services and a custom PHP wrapper. In this script for a GetFeatureInfo-Request with info_format=application/vnd.ogc.wms_xml or info_format=text/xml a XML document is generated. This works well, a XML-template is set in the mapfile dynamically: ... if($k == 'info_format' & ($v == 'application/vnd.ogc.wms_xml' || $v == 'text/xml')){ $layer = $oMap->getLayerByName($layername); $layer->set("template", "template/featureinfo_nsg.xml"); ... } ... Two questions: 1. Is it possible to get a featureInfo-Request in xml native by mapserver (no gml) 2. How can I tell mapserver to enhance the list of capabilities to xml? At this time there comes only ... text/plain text/html application/vnd.ogc.gml ... Thanks Sven From ben at remoteinformation.com.au Mon May 4 07:08:15 2009 From: ben at remoteinformation.com.au (Ben Madin) Date: Mon, 4 May 2009 22:08:15 +0800 Subject: [mapserver-users] MapServer 5.4 WMS Server VERSION=1.3.0 Problem In-Reply-To: <20090414160018.B18D2E015FA@lists.osgeo.org> References: <20090414160018.B18D2E015FA@lists.osgeo.org> Message-ID: G'day all, I'm a little new to WMS, but I confess the GetLegendGraphic feature available now in the 5.4 release caught my eye. So I'm 5.4.0 and using OpenLayers 2.7. However, when I use the URL : /cgi-bin/mapserv?map=/Users/19022662/Sites/marketprices/mapserver/ layers/ ol_countries_wms .map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&STYLES=&SRS=EPSG:4326& I get the following message (embedded in the tile) : msWMSLoadGetMapParams(): WMS server error. Invalid format for the EXCEPTION parameter. If I drop the VERSION (either back to 1.1.1 or just completely loose it, text below in the context of the OL script. var pol_bnd = new OpenLayers.Layer.WMS( 'Countries', 'http://trade.murdoch.local/cgi-bin/mapserv?map=/Users/19022662/Sites/marketprices/mapserver/layers/ol_countries_wms.map&SERVICE=WMS&REQUEST=GetMap&STYLES=&SRS=EPSG:4326&' , {layers: 'countries'} ); map.addLayer(pol_bnd); I get my maps. I can work with this for now, but is there something I'm missing. I did try fiddling with the reported CRS / SRS changes, but I think I just confused myself - but that would be another topic! Perhaps along with the mapfile in the documentation, a copy of a full example of a request url would be great. Some of the mapfile is attached for completeness (it has been sucked across from a CGI Mapserv application): -------------------------- MAP NAME aus_boundaries STATUS ON UNITS DD EXTENT 110 -35 130 -12 # WA extents SIZE 900 650 SHAPEPATH "../geodata/" FONTSET "../geodata/fonts/fonts.lst" SYMBOLSET "../trade.sym" IMAGECOLOR 230 240 255 CONFIG "MS_ERRORFILE" "/var/log/mserr.log" DEBUG 5 PROJECTION "init=epsg:4326" END WEB METADATA "wms_title" "GMS Livestock Trade" "wms_onlineresource" "http://trade.murdoch.local/cgi-bin/mapserv?map=/Users/19022662/Sites/marketprices/mapserver/ol_countries_wms.map& " "wms_srs" "EPSG:4326" END IMAGEPATH "../../tmp/" IMAGEURL "../../tmp/" END LAYER METADATA "wms_title" "Country Boundaries" "wms_srs" "EPSG:4326" "wms_group_title" "Political" END STATUS ON NAME "countries" GROUP "Political" DATA "global/ctybnda" TYPE polygon OPACITY 100 CLASS NAME "Country Borders" COLOR 240 240 180 OUTLINECOLOR 0 70 0 END END ---------------------------- 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 yassefa at dmsolutions.ca Mon May 4 09:16:04 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Mon, 04 May 2009 12:16:04 -0400 Subject: [mapserver-users] MapServer 5.4 WMS Server VERSION=1.3.0 Problem In-Reply-To: References: <20090414160018.B18D2E015FA@lists.osgeo.org> Message-ID: <49FF14C4.4040102@dmsolutions.ca> Hi, Do you have the full URL that is received by the server? MapServer WMS 1.3.0 supports the following EXCEPTIONS : XML, INIMAGE, or BLANK. Is might be possible to add EXCEPTIONS: "XML" (or INIMAGE, or BLANK) when building your OL wms 1.3.0 layer? Best Regards, Ben Madin wrote: > G'day all, > > I'm a little new to WMS, but I confess the GetLegendGraphic feature > available now in the 5.4 release caught my eye. > > So I'm 5.4.0 and using OpenLayers 2.7. However, when I use the URL : > > /cgi-bin/mapserv?map=/Users/19022662/Sites/marketprices/mapserver/layers/ol_countries_wms.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&STYLES=&SRS=EPSG:4326& > > > I get the following message (embedded in the tile) : > > msWMSLoadGetMapParams(): WMS server error. Invalid format for the > EXCEPTION parameter. > > If I drop the VERSION (either back to 1.1.1 or just completely loose it, > text below in the context of the OL script. > > var pol_bnd = new OpenLayers.Layer.WMS( > 'Countries', > 'http://trade.murdoch.local/cgi-bin/mapserv?map=/Users/19022662/Sites/marketprices/mapserver/layers/ol_countries_wms.map&SERVICE=WMS&REQUEST=GetMap&STYLES=&SRS=EPSG:4326&', > > {layers: 'countries'} > ); > map.addLayer(pol_bnd); > > I get my maps. > > I can work with this for now, but is there something I'm missing. I did > try fiddling with the reported CRS / SRS changes, but I think I just > confused myself - but that would be another topic! > > Perhaps along with the mapfile in the documentation, a copy of a full > example of a request url would be great. > > Some of the mapfile is attached for completeness (it has been sucked > across from a CGI Mapserv application): > > -------------------------- > > MAP > NAME aus_boundaries > STATUS ON > UNITS DD > EXTENT 110 -35 130 -12 # WA extents > SIZE 900 650 > SHAPEPATH "../geodata/" > FONTSET "../geodata/fonts/fonts.lst" > SYMBOLSET "../trade.sym" > IMAGECOLOR 230 240 255 > CONFIG "MS_ERRORFILE" "/var/log/mserr.log" > DEBUG 5 > > PROJECTION > "init=epsg:4326" > END > > WEB > METADATA > "wms_title" "GMS Livestock Trade" > "wms_onlineresource" > "http://trade.murdoch.local/cgi-bin/mapserv?map=/Users/19022662/Sites/marketprices/mapserver/ol_countries_wms.map&" > > "wms_srs" "EPSG:4326" > END > IMAGEPATH "../../tmp/" > IMAGEURL "../../tmp/" > END > > > LAYER > METADATA > "wms_title" "Country Boundaries" > "wms_srs" "EPSG:4326" > "wms_group_title" "Political" > END > STATUS ON > NAME "countries" > GROUP "Political" > DATA "global/ctybnda" > TYPE polygon > OPACITY 100 > CLASS > NAME "Country Borders" > COLOR 240 240 180 > OUTLINECOLOR 0 70 0 > END > END > > ---------------------------- > > cheers > > Ben > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From vsaraf.gmu at gmail.com Mon May 4 12:30:58 2009 From: vsaraf.gmu at gmail.com (Varun saraf) Date: Mon, 4 May 2009 15:30:58 -0400 Subject: [mapserver-users] Re: Dynamic data loading using Google maps andMapserver In-Reply-To: <49FD5C4B0200008F0002392C@co5.dnr.state.mn.us> References: <49FD5C4B0200008F0002392C@co5.dnr.state.mn.us> Message-ID: <6db14d250905041230t729af3d7ubb1c5a4d40d5aa7e@mail.gmail.com> Hi Steve, If I provide Mapserver with a point x,y in WGS84 projection (from google maps) as a query, can mapserver give me the enclosing polygon information (using point-in-polygon method or something else)? If yes, how? I have already drawn the polygons on google map using tile mode. Can you suggest me a book/doc that helps with querying mapserver? Thanks, Varun On Sun, May 3, 2009 at 9:56 AM, Steve Lime wrote: > Both examples show how to do this. You have to create a query using > the coordinate from Google to access MapServer. My example uses the > principle to query points but would work for polygons (which are actually > easier). You could issue straight MapServer queries: > > ?http://.../cgi-bin/mapserv?mode=query&map=something.map&mapxy=google_x+google_y&qlayer=the_polygons > > or do a WFS query. Since you're already using straight MapServer the former > would probably be easiest. > > Steve > >>>> Varun saraf 05/02/09 1:34 PM >>> > Hi, > > Thanks a lot Jim and Steve. These are great examples but I am dividing > each state of USA into about 1300 polygons and I need a way to find > which polygon is selected by the user. I tried building Gpolygons > using the polygon data that i have (after converting it into a GML > file) but it makes Google damn slow to redraw the polygons on zoom in > and zoom out. The tile mode in mapserver is much faster. > > Now, After I draw the polygon in tile mode using mapserver, Is there a > way Mapserver can return to me the specific polygon info (say > co-ordinates or any other data in the dbf file relating to that > polygon) when I select it on google map? Goggle I believe can give me > the exact co-ordinates of the point I clicked. Can mapserver use this > point location to find which polygon was selected? > > Thanks, > Varun > > 2009/5/2 Jim Strevinas : >> A beautiful example that uses the Google Maps API is: >> >> http://www.dyasdesigns.com/geoxml/gmlusa.htm >> >> It makes use of an API plugin called geoxml that can load XML data which can >> be produced by >> a WFS server. In the source code, a static GML file is used but a google >> search shows that it can >> connect to a live WFS server using the URL. >> >>> Date: Sat, 2 May 2009 09:28:01 -0500 >>> From: Steve.Lime at dnr.state.mn.us >>> To: vsaraf.gmu at gmail.com >>> Subject: Re: [mapserver-users] Re: Dynamic data loading using Google maps >>> andMapserver >>> CC: mapserver-users at lists.osgeo.org >>> >>> One way to do that is to construct MapServer queries based on the event >>> and submit them using AJAX. This site does just that but with OpenLayers: >>> >>> http://www.dnr.state.mn.us/waters/csg/index_copy.html >>> >>> Click on the dots and a MapServer query is done behind the scenes. If >>> successful >>> a little window control is populated, if not, then nothing happens. Simple >>> templates >>> are used to present the information. >>> >>> Steve >>> >>> >>> Varun saraf 05/01/09 11:54 AM >>> >>> Hi, >>> >>> I just had a look at ImageMap Template on "Output generation"...Can >>> this be used on google maps to get information pooped up on a >>> mouseover or mouseclick in tile mode? If not, what is it that I can do >>> to get a similar result when using Mapserver with google maps? >>> >>> Regards, >>> Varun >>> >>> On Thu, Apr 30, 2009 at 6:30 PM, Varun saraf wrote: >>> > Hi, >>> > >>> > I have successfully drawn layers on of google maps as base using >>> > mapserver. However, I am trying to figure out how to get data >>> > dynamically displayed on the web page when a user clicks on a certain >>> > area. For example, I have divided the entire state of virginia into >>> > many sectors (using a polygon shp file). My requirement is that I want >>> > data to come up on the map/web page when the user selects a particular >>> > sector. I know google provides me with an event api for clicking on >>> > the map but how do I pass this event to mapserver so it can send me >>> > the label for that sector from the shape file? I need to be able to >>> > recognize what sector the user has clicked. Is this possible using >>> > just the mapserv cgi script and a map file or a MapScript has to be >>> > written/used? Can someone point me in the right direction here? Even >>> > providing the link for a previous discussion on this topic would help. >>> > >>> > Thanks, >>> > Varun >>> > >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> ________________________________ >> Invite your mail contacts to join your friends list with Windows Live >> Spaces. It's easy! Try it! >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Steve.Lime at dnr.state.mn.us Mon May 4 14:24:17 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 04 May 2009 16:24:17 -0500 Subject: [mapserver-users] FOSS4G Conference Registration Opens Message-ID: <49FF16B1.5157.008F.0@dnr.state.mn.us> Hi all: A quick note to let folks know that registration has opened for the 2009 FOSS4G conference in Sydney, Australia. I've been to a number of these events and they are well worth attending. I expect the Sydney organizing committee to raise the bar yet again. The MapServer project should be well represented! A press release with more details can be found at: - http://wiki.osgeo.org/wiki/FOSS4G_2009_Press_Release_11 The conference website is at: - http://2009.foss4g.org Hope to see you there! Steve From ben at remoteinformation.com.au Mon May 4 17:31:57 2009 From: ben at remoteinformation.com.au (Ben Madin) Date: Tue, 5 May 2009 08:31:57 +0800 Subject: [mapserver-users] MapServer 5.4 WMS Server VERSION=1.3.0 Problem In-Reply-To: <49FF14C4.4040102@dmsolutions.ca> References: <20090414160018.B18D2E015FA@lists.osgeo.org> <49FF14C4.4040102@dmsolutions.ca> Message-ID: <517B6758-1F36-4299-BB75-FD70B2AFF57F@remoteinformation.com.au> G'day Assefa, On 05/05/2009, at 12:16 AM, Yewondwossen Assefa wrote: > Do you have the full URL that is received by the server? No... I'm not sure how to get this(?) - I thought it might be shown if I set the debug levels high enough, but so far no luck! > MapServer WMS 1.3.0 supports the following EXCEPTIONS : XML, > INIMAGE, or BLANK. > Is might be possible to add EXCEPTIONS: "XML" (or INIMAGE, or > BLANK) when building your OL wms 1.3.0 layer? using either : new OpenLayers.Layer.WMS( 'Countries', 'http://trade.murdoch.local/cgi-bin/mapserv?map=/Users/19022662/Sites/marketprices/mapserver/layers/ol_countries_wms.map&SERVICE=WMS&VERSION=1.3.0&EXCEPTIONS=INIMAGE&REQUEST=GetMap&STYLES=&SRS=EPSG:4326&' , {layers: 'countries'} ); or new OpenLayers.Layer.WMS( 'Tail Tag Areas', 'http://trade.murdoch.local/cgi-bin/mapserv?map=/Users/19022662/Sites/marketprices/mapserver/layers/ol_countries_wms.map&SERVICE=WMS&REQUEST=GetMap&STYLES=&SRS=EPSG:4326' , {layers: 'tailtagareas', transparent: 'true', version: '1.3.0', exceptions: 'xml'} ); gives no error, but neither do I receive any images any more. using the url (such as in the first example) works fine in QGIS, so I'm guessing the web serving 'can' work... very confusing. cheers Ben > Ben Madin wrote: >> G'day all, >> I'm a little new to WMS, but I confess the GetLegendGraphic feature >> available now in the 5.4 release caught my eye. >> So I'm 5.4.0 and using OpenLayers 2.7. However, when I use the URL : >> /cgi-bin/mapserv?map=/Users/19022662/Sites/marketprices/mapserver/ >> layers/ >> ol_countries_wms >> .map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&STYLES=&SRS=EPSG: >> 4326& I get the following message (embedded in the tile) : >> msWMSLoadGetMapParams(): WMS server error. Invalid format for the >> EXCEPTION parameter. >> If I drop the VERSION (either back to 1.1.1 or just completely >> loose it, text below in the context of the OL script. >> var pol_bnd = new OpenLayers.Layer.WMS( >> 'Countries', >> 'http://trade.murdoch.local/cgi-bin/mapserv?map=/Users/19022662/Sites/marketprices/mapserver/layers/ol_countries_wms.map&SERVICE=WMS&REQUEST=GetMap&STYLES=&SRS=EPSG:4326&' >> , {layers: 'countries'} >> ); >> map.addLayer(pol_bnd); >> I get my maps. >> I can work with this for now, but is there something I'm missing. I >> did try fiddling with the reported CRS / SRS changes, but I think I >> just confused myself - but that would be another topic! >> Perhaps along with the mapfile in the documentation, a copy of a >> full example of a request url would be great. >> Some of the mapfile is attached for completeness (it has been >> sucked across from a CGI Mapserv application): >> -------------------------- >> MAP >> NAME aus_boundaries >> STATUS ON >> UNITS DD >> EXTENT 110 -35 130 -12 # WA extents >> SIZE 900 650 >> SHAPEPATH "../geodata/" >> FONTSET "../geodata/fonts/fonts.lst" >> SYMBOLSET "../trade.sym" >> IMAGECOLOR 230 240 255 >> CONFIG "MS_ERRORFILE" "/var/log/mserr.log" >> DEBUG 5 >> PROJECTION >> "init=epsg:4326" >> END >> WEB >> METADATA >> "wms_title" "GMS Livestock Trade" >> "wms_onlineresource" "http://trade.murdoch.local/cgi-bin/mapserv?map=/Users/19022662/Sites/marketprices/mapserver/ol_countries_wms.map& >> " "wms_srs" "EPSG:4326" >> END >> IMAGEPATH "../../tmp/" >> IMAGEURL "../../tmp/" >> END >> LAYER >> METADATA >> "wms_title" "Country Boundaries" >> "wms_srs" "EPSG:4326" >> "wms_group_title" "Political" >> END >> STATUS ON >> NAME "countries" >> GROUP "Political" >> DATA "global/ctybnda" >> TYPE polygon >> OPACITY 100 >> CLASS >> NAME "Country Borders" >> COLOR 240 240 180 >> OUTLINECOLOR 0 70 0 >> END >> END >> ---------------------------- -- 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 pvoudouris at gaiocorp.com Tue May 5 00:42:55 2009 From: pvoudouris at gaiocorp.com (Pano Voudouris) Date: Tue, 5 May 2009 00:42:55 -0700 (PDT) Subject: [mapserver-users] Silverlight Interface for Mapserver Message-ID: <1241509375740-2791496.post@n2.nabble.com> Hi all, This is just for info in case anyone is interested and working with these technologies. We have created a silverlight front-end to Mapserver using mapscript c#. The "map serving" logic is based on the excellent "MapFlash Viewer Framework demo" done by Paolo Corti http://www.paolocorti.net/2006/10/26/mapflashviewer-framework and extended to include more functionality. On the other hand in our case it now focuses squarely on mapserver. The app was developed to be run either as a standalone, low-cost "webGIS" or as embedded 'map in app' in other web pages. (And yes - pages will need to be of the .NET flavour...) You can have a play at the demo at: http://193.92.131.105/slmapview Note though that the actual data is in greek!However assuming you do not have your browser set to Greek you should be able to see the rest of the app in English. Pano -- View this message in context: http://n2.nabble.com/Silverlight-Interface-for-Mapserver-tp2791496p2791496.html Sent from the Mapserver - User mailing list archive at Nabble.com. From andrea.ardito at provincia.biella.it Tue May 5 02:56:49 2009 From: andrea.ardito at provincia.biella.it (Andrea Ardito) Date: Tue, 05 May 2009 11:56:49 +0200 Subject: [mapserver-users] blank image Message-ID: Hi,we have this system working withUbuntu6.06, Apache2.2.9, PHP 4.4.2, Mapserver4.8.2,Maplab In the project below http://webgis.provincia.biella.it/apps/maplab/projects/gmf_apps/at7_2_3/wmdmap.php we receave a blank image at start, but it is ok if one goes on making a zoom in request. This is the error message in the Apache log file: *** glibc detected *** free(): invalid next size (fast): 0x085668f8 *** Does anybody have idea about the problem ? Thanks for your help in any case andrea --http://www.provincia.biella.it------------------------------------------------------ Vuoi rimanere sempre aggiornato sulle nostre attivita'? Visita la pagina dei feed RSS sul nostro sito ed iscriviti alla sezione di interesse. --Avviso------------------------------------------------------------------------------ Questo messaggio e i suoi allegati sono riservati esclusivamente alle persone in indirizzo e possono contenere informazioni confidenziali. Se questo messaggio vi e' pervenuto per errore, vi informiamo che ogni suo uso e'proibito. In questo caso rispedite immediatamente il messaggio al mittente e cancellatelo. Per ogni chiarimento contattateci scrivendo a ced at provincia.biella.it. Grazie -Il Webmaster. --Warning----------------------------------------------------------------------------- This message and its attachments are addressed solely to the persons above and may contain confidential information. If you have received the message in error, be informed that any use of the content hereof is prohibited. Please return it immediately to the sender and delete the message. Should you have any questions, please contact us by replying to ced at provincia.biella.it. The Webmaster. -------------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From manojkapil06 at gmail.com Tue May 5 03:59:34 2009 From: manojkapil06 at gmail.com (zizu) Date: Tue, 5 May 2009 03:59:34 -0700 (PDT) Subject: [mapserver-users] PHP Mapscript - Displaying only image colour except the existing layers Message-ID: <1241521174165-2792269.post@n2.nabble.com> Dear users, I am using FGS-Mapserver, its a stand alone environment on fedora 9. i have successfully play mapserver through cgi, there is absolutely no problem with that. Now am trying to play PHP-Mapscript , example given in the tutorial. The problem am encountering right now is when i run the php file through browser http://localhost:8080/mapfiles/sampletest/htdocs/test.php Luckily the image colour of the map is displaying but the layers of the map is not displaying... herewith am attaching the screen shot of that page.... am also attaching both the map file and php file for your view..... what could be a problem..... please help me out.. tips will be appreciated.... http://n2.nabble.com/file/n2792269/Screenshot.png Screenshot.png http://n2.nabble.com/file/n2792269/test.map test.map http://n2.nabble.com/file/n2792269/test.php test.php many thanks, zizu -- View this message in context: http://n2.nabble.com/PHP-Mapscript---Displaying-only-image-colour-except-the-existing-layers-tp2792269p2792269.html Sent from the Mapserver - User mailing list archive at Nabble.com. From temiz at deprem.gov.tr Tue May 5 04:59:35 2009 From: temiz at deprem.gov.tr (Ahmet Temiz) Date: Tue, 5 May 2009 14:59:35 +0300 Subject: [mapserver-users] confused about using GridObj Message-ID: <20090505115623.M28484@deprem.gov.tr> hello I am confused about using GridObj in java-mapscript Is there any example code containing gridobj in java-mapscript regards Ahmet Temiz -- Open WebMail Project (http://openwebmail.org) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From vtammineni at roulacglobal.com Tue May 5 05:07:49 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Tue, 5 May 2009 17:37:49 +0530 Subject: [mapserver-users] confused about using GridObj In-Reply-To: <20090505115623.M28484@deprem.gov.tr> References: <20090505115623.M28484@deprem.gov.tr> Message-ID: <00d801c9cd7a$1dbf99d0$593ecd70$@com> Hi, GridObj Class Constructor The grid is always embedded inside a layer object defined as a grid (layer->connectiontype = MS_GRATICULE) (for more docs : http://trac.osgeo.org/mapserver/wiki/MapServerGrid) A layer can become a grid layer by adding a grid object to it using : ms_newGridObj(layerObj layer) $oLayer = ms_newlayerobj($oMap); $oLayer->set("name", "GRID"); ms_newgridobj($oLayer); $oLayer->grid->set("labelformat", "DDMMSS"); Members Type Name double minsubdivide double maxsubdivide double minarcs double maxacrs double mininterval double maxinterval string labelformat Methods int set(string property_name, new_value) Set object property to a new value. Thanks, Venkat -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ahmet Temiz Sent: Tuesday, May 05, 2009 5:30 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] confused about using GridObj hello I am confused about using GridObj in java-mapscript Is there any example code containing gridobj in java-mapscript regards Ahmet Temiz -- Open WebMail Project (http://openwebmail.org) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From vtammineni at roulacglobal.com Tue May 5 05:10:10 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Tue, 5 May 2009 17:40:10 +0530 Subject: [mapserver-users] confused about using GridObj References: <20090505115623.M28484@deprem.gov.tr> Message-ID: <00d901c9cd7a$71c7e640$5557b2c0$@com> Hi See here for more ....Here is an example. LAYER NAME "SAMPLE GRID" PROJECTION "proj=latlong" "ellps=WGS84" "datum=WGS84" END TYPE LINE STATUS DEFAULT CLASS COLOR 0 255 128 LABEL TYPE BITMAP SIZE MEDIUM COLOR 255 128 89 END END GRID MINSUBDIVIDE 64 MAXSUBDIVIDE 64 LABELFORMAT "DDMMSS" END END Thanks, Venkat -----Original Message----- From: Venkat Rao Tammineni [mailto:vtammineni at roulacglobal.com] Sent: Tuesday, May 05, 2009 5:38 PM To: 'Ahmet Temiz'; 'mapserver-users at lists.osgeo.org' Subject: RE: [mapserver-users] confused about using GridObj Hi, GridObj Class Constructor The grid is always embedded inside a layer object defined as a grid (layer->connectiontype = MS_GRATICULE) (for more docs : http://trac.osgeo.org/mapserver/wiki/MapServerGrid) A layer can become a grid layer by adding a grid object to it using : ms_newGridObj(layerObj layer) $oLayer = ms_newlayerobj($oMap); $oLayer->set("name", "GRID"); ms_newgridobj($oLayer); $oLayer->grid->set("labelformat", "DDMMSS"); Members Type Name double minsubdivide double maxsubdivide double minarcs double maxacrs double mininterval double maxinterval string labelformat Methods int set(string property_name, new_value) Set object property to a new value. Thanks, Venkat -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ahmet Temiz Sent: Tuesday, May 05, 2009 5:30 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] confused about using GridObj hello I am confused about using GridObj in java-mapscript Is there any example code containing gridobj in java-mapscript regards Ahmet Temiz -- Open WebMail Project (http://openwebmail.org) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From PGiannini at bytewise.it Tue May 5 05:27:42 2009 From: PGiannini at bytewise.it (Giannini Pietro) Date: Tue, 5 May 2009 14:27:42 +0200 Subject: R: [mapserver-users] PHP Mapscript - Displaying only image colour except the existing layers In-Reply-To: <1241521174165-2792269.post@n2.nabble.com> References: <1241521174165-2792269.post@n2.nabble.com> Message-ID: <43411A0E963AFB438880E632F990D81725AFB394@EXCHANGE.bytewise.local> Hi Zizu, STATUS OFF on all the layers of your map. To turn on: $layer = $map->getLayerByName('kerala'); $layer->set('status', MS_ON); $image=$map->draw(); $image_url=$image->saveWebImage(); bye ...................pg ________________________________________ Da: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] per conto di zizu [manojkapil06 at gmail.com] Inviato: marted? 5 maggio 2009 12.59 A: mapserver-users at lists.osgeo.org Oggetto: [mapserver-users] PHP Mapscript - Displaying only image colour except the existing layers Dear users, I am using FGS-Mapserver, its a stand alone environment on fedora 9. i have successfully play mapserver through cgi, there is absolutely no problem with that. Now am trying to play PHP-Mapscript , example given in the tutorial. The problem am encountering right now is when i run the php file through browser http://localhost:8080/mapfiles/sampletest/htdocs/test.php Luckily the image colour of the map is displaying but the layers of the map is not displaying... herewith am attaching the screen shot of that page.... am also attaching both the map file and php file for your view..... what could be a problem..... please help me out.. tips will be appreciated.... http://n2.nabble.com/file/n2792269/Screenshot.png Screenshot.png http://n2.nabble.com/file/n2792269/test.map test.map http://n2.nabble.com/file/n2792269/test.php test.php many thanks, zizu -- View this message in context: http://n2.nabble.com/PHP-Mapscript---Displaying-only-image-colour-except-the-existing-layers-tp2792269p2792269.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From pvoudouris at gaiocorp.com Tue May 5 05:30:33 2009 From: pvoudouris at gaiocorp.com (Pano Voudouris) Date: Tue, 5 May 2009 15:30:33 +0300 Subject: [mapserver-users] PHP Mapscript - Displaying only image colour except the existing layers In-Reply-To: <1241521174165-2792269.post@n2.nabble.com> References: <1241521174165-2792269.post@n2.nabble.com> Message-ID: <002801c9cd7d$4b485f10$e1d91d30$@com> Both your layer have their STATUS set to OFF. Try setting them to ON or DEFAULT Pano -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of zizu Sent: 05 May 2009 14:00 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] PHP Mapscript - Displaying only image colour except the existing layers Dear users, I am using FGS-Mapserver, its a stand alone environment on fedora 9. i have successfully play mapserver through cgi, there is absolutely no problem with that. Now am trying to play PHP-Mapscript , example given in the tutorial. The problem am encountering right now is when i run the php file through browser http://localhost:8080/mapfiles/sampletest/htdocs/test.php Luckily the image colour of the map is displaying but the layers of the map is not displaying... herewith am attaching the screen shot of that page.... am also attaching both the map file and php file for your view..... what could be a problem..... please help me out.. tips will be appreciated.... http://n2.nabble.com/file/n2792269/Screenshot.png Screenshot.png http://n2.nabble.com/file/n2792269/test.map test.map http://n2.nabble.com/file/n2792269/test.php test.php many thanks, zizu -- View this message in context: http://n2.nabble.com/PHP-Mapscript---Displaying-only-image-colour-except-the -existing-layers-tp2792269p2792269.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From manojkapil06 at gmail.com Tue May 5 06:31:39 2009 From: manojkapil06 at gmail.com (zizu) Date: Tue, 5 May 2009 06:31:39 -0700 (PDT) Subject: [mapserver-users] R: PHP Mapscript - Displaying only image colour except the existing layers In-Reply-To: <43411A0E963AFB438880E632F990D81725AFB394@EXCHANGE.bytewise.local> References: <1241521174165-2792269.post@n2.nabble.com> <43411A0E963AFB438880E632F990D81725AFB394@EXCHANGE.bytewise.local> Message-ID: <1241530299708-2794721.post@n2.nabble.com> Hi pietro, Thank you so much... now its works fine...... On Tue, May 5, 2009 at 6:07 PM, Pietro Giannini (via Nabble) < ml-user+94644-1894679202 at n2.nabble.com > wrote: > Hi Zizu, > STATUS OFF on all the layers of your map. > To turn on: > $layer = $map->getLayerByName('kerala'); > $layer->set('status', MS_ON); > $image=$map->draw(); > $image_url=$image->saveWebImage(); > > bye > ...................pg > > > ________________________________________ > Da: mapserver-users-bounces at ...[ > mapserver-users-bounces at ...] > per conto di zizu [manojkapil06 at ...] > > Inviato: marted? 5 maggio 2009 12.59 > A: mapserver-users at ... > Oggetto: [mapserver-users] PHP Mapscript - Displaying only image colour > except the existing layers > > Dear users, > > I am using FGS-Mapserver, its a stand alone environment on fedora 9. i have > > successfully play mapserver through cgi, there is absolutely no problem > with > that. Now am trying to play PHP-Mapscript , example given in the tutorial. > The problem am encountering right now is when i run the php file through > browser > > http://localhost:8080/mapfiles/sampletest/htdocs/test.php > > > Luckily the image colour of the map is displaying but the layers of the map > > is not displaying... herewith am attaching the screen shot of that > page.... > am also attaching both the map file and php file for your view..... > > what could be a problem..... please help me out.. > > tips will be appreciated.... > http://n2.nabble.com/file/n2792269/Screenshot.png Screenshot.png > > http://n2.nabble.com/file/n2792269/test.map test.map > > http://n2.nabble.com/file/n2792269/test.php test.php > > many thanks, > zizu > > > -- > View this message in context: > http://n2.nabble.com/PHP-Mapscript---Displaying-only-image-colour-except-the-existing-layers-tp2792269p2792269.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at ... > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at ... > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > ------------------------------ > This email is a reply to your post @ > http://n2.nabble.com/PHP-Mapscript---Displaying-only-image-colour-except-the-existing-layers-tp2792269p2793318.html > You can reply by email or by visting the link above. > > -- View this message in context: http://n2.nabble.com/PHP-Mapscript---Displaying-only-image-colour-except-the-existing-layers-tp2792269p2794721.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From manojkapil06 at gmail.com Tue May 5 06:41:06 2009 From: manojkapil06 at gmail.com (zizu) Date: Tue, 5 May 2009 06:41:06 -0700 (PDT) Subject: [mapserver-users] R: PHP Mapscript - Displaying only image colour except the existing layers In-Reply-To: <43411A0E963AFB438880E632F990D81725AFB394@EXCHANGE.bytewise.local> References: <1241521174165-2792269.post@n2.nabble.com> <43411A0E963AFB438880E632F990D81725AFB394@EXCHANGE.bytewise.local> Message-ID: <1241530866211-2794973.post@n2.nabble.com> Hi pietro, could you please tell me how to add the layers with the following code... $layer = $map->getLayerByName('kerala') > > ; > $layer->set('status', MS_ON); > $image=$map->draw(); > $image_url=$image->saveWebImage(); many thanks, zizu On Tue, May 5, 2009 at 7:01 PM, kapil manoj wrote: > Hi pietro, > > Thank you so much... now its works fine...... > > > On Tue, May 5, 2009 at 6:07 PM, Pietro Giannini (via Nabble) < > ml-user+94644-1894679202 at n2.nabble.com > > wrote: > >> Hi Zizu, >> STATUS OFF on all the layers of your map. >> To turn on: >> $layer = $map->getLayerByName('kerala'); >> $layer->set('status', MS_ON); >> $image=$map->draw(); >> $image_url=$image->saveWebImage(); >> >> bye >> ...................pg >> >> >> ________________________________________ >> Da: mapserver-users-bounces at ...[ >> mapserver-users-bounces at ...] >> per conto di zizu [manojkapil06 at ...] >> >> Inviato: marted? 5 maggio 2009 12.59 >> A: mapserver-users at ... >> Oggetto: [mapserver-users] PHP Mapscript - Displaying only image colour >> except the existing layers >> >> Dear users, >> >> I am using FGS-Mapserver, its a stand alone environment on fedora 9. i >> have >> successfully play mapserver through cgi, there is absolutely no problem >> with >> that. Now am trying to play PHP-Mapscript , example given in the tutorial. >> >> The problem am encountering right now is when i run the php file through >> browser >> >> http://localhost:8080/mapfiles/sampletest/htdocs/test.php >> >> >> Luckily the image colour of the map is displaying but the layers of the >> map >> is not displaying... herewith am attaching the screen shot of that >> page.... >> am also attaching both the map file and php file for your view..... >> >> what could be a problem..... please help me out.. >> >> tips will be appreciated.... >> http://n2.nabble.com/file/n2792269/Screenshot.png Screenshot.png >> >> http://n2.nabble.com/file/n2792269/test.map test.map >> >> http://n2.nabble.com/file/n2792269/test.php test.php >> >> many thanks, >> zizu >> >> >> -- >> View this message in context: >> http://n2.nabble.com/PHP-Mapscript---Displaying-only-image-colour-except-the-existing-layers-tp2792269p2792269.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at ... >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at ... >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> ------------------------------ >> This email is a reply to your post @ >> http://n2.nabble.com/PHP-Mapscript---Displaying-only-image-colour-except-the-existing-layers-tp2792269p2793318.html >> You can reply by email or by visting the link above. >> >> > -- View this message in context: http://n2.nabble.com/PHP-Mapscript---Displaying-only-image-colour-except-the-existing-layers-tp2792269p2794973.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pvoudouris at gaiocorp.com Tue May 5 06:03:22 2009 From: pvoudouris at gaiocorp.com (Pano Voudouris) Date: Tue, 5 May 2009 16:03:22 +0300 Subject: [mapserver-users] PHP Mapscript - Displaying only image colour except the existing layers In-Reply-To: <7afcc95f0905050545l46488c2dk5ce4238e66d2a954@mail.gmail.com> References: <1241521174165-2792269.post@n2.nabble.com> <002801c9cd7d$4b485f10$e1d91d30$@com> <7afcc95f0905050545l46488c2dk5ce4238e66d2a954@mail.gmail.com> Message-ID: <002f01c9cd81$dfe5bba0$9fb132e0$@com> For the time being you should only care for the Fatal Error. The rest are warnings which have to do with some settings in the mapfile. Don't use PHP I am afraid so I don't know whether you are using it correctly. Does the actual folder set in your IMAGEPATH /home/kapil/FGS-MAPSERVER/tmp/ms_tmp/ exists? And do you get the same fatal error if you use the mapserv cgi? e.g http://localhost/cgi-bin/mapserv?map= /home/kapil/FGS-MAPSERVER/www/htdocs/mapfiles/sampletest/htdocs/test.map&mod e=map Pano From: kapil manoj [mailto:manojkapil06 at gmail.com] Sent: 05 May 2009 15:46 To: Pano Voudouris Subject: Re: [mapserver-users] PHP Mapscript - Displaying only image colour except the existing layers hi pano, i have received the following error after changing the status of the layers to both DEFAULT or ON Warning: [MapServer Error]: msGetLabelSize(): Requested font (arial-bold) not found. in /home/kapil/FGS-MAPSERVER/www/htdocs/mapfiles/sampletest/htdocs/test.php on line 6 Warning: [MapServer Error]: msSearchDiskTree(): Unable to open spatial index for /home/kapil/FGS-MAPSERVER/www/htdocs/mapfiles/sampletest/data/parl_04.qix. In most cases you can safely ignore this message, otherwise check file names and permissions. in /home/kapil/FGS-MAPSERVER/www/htdocs/mapfiles/sampletest/htdocs/test.php on line 6 Warning: [MapServer Error]: msSearchDiskTree(): Unable to open spatial index for /home/kapil/FGS-MAPSERVER/www/htdocs/mapfiles/sampletest/data/parl_04.qix. In most cases you can safely ignore this message, otherwise check file names and permissions. in /home/kapil/FGS-MAPSERVER/www/htdocs/mapfiles/sampletest/htdocs/test.php on line 6 Fatal error: Call to a member function saveWebImage() on a non-object in /home/kapil/FGS-MAPSERVER/www/htdocs/mapfiles/sampletest/htdocs/test.php on line 7 what should i do now? On Tue, May 5, 2009 at 6:00 PM, Pano Voudouris wrote: Both your layer have their STATUS set to OFF. Try setting them to ON or DEFAULT Pano -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of zizu Sent: 05 May 2009 14:00 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] PHP Mapscript - Displaying only image colour except the existing layers Dear users, I am using FGS-Mapserver, its a stand alone environment on fedora 9. i have successfully play mapserver through cgi, there is absolutely no problem with that. Now am trying to play PHP-Mapscript , example given in the tutorial. The problem am encountering right now is when i run the php file through browser http://localhost:8080/mapfiles/sampletest/htdocs/test.php Luckily the image colour of the map is displaying but the layers of the map is not displaying... herewith am attaching the screen shot of that page.... am also attaching both the map file and php file for your view..... what could be a problem..... please help me out.. tips will be appreciated.... http://n2.nabble.com/file/n2792269/Screenshot.png Screenshot.png http://n2.nabble.com/file/n2792269/test.map test.map http://n2.nabble.com/file/n2792269/test.php test.php many thanks, zizu -- View this message in context: http://n2.nabble.com/PHP-Mapscript---Displaying-only-image-colour-except-the -existing-layers-tp2792269p2792269.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From manojkapil06 at gmail.com Tue May 5 06:59:33 2009 From: manojkapil06 at gmail.com (zizu) Date: Tue, 5 May 2009 06:59:33 -0700 (PDT) Subject: [mapserver-users] R: PHP Mapscript - Displaying only image colour except the existing layers In-Reply-To: <43411A0E963AFB438880E632F990D81725AFB394@EXCHANGE.bytewise.local> References: <1241521174165-2792269.post@n2.nabble.com> <43411A0E963AFB438880E632F990D81725AFB394@EXCHANGE.bytewise.local> Message-ID: <1241531973656-2795451.post@n2.nabble.com> Hi pietro, sorry i had a problem in adding the label layer over the kerala map layer.... unknowingly i asked the previous doubt... now i need to add this second layer over the first one.... am getting the following error.... *Warning*: [MapServer Error]: msGetLabelSize(): Requested font (arial-bold) not found. in * /home/kapil/FGS-MAPSERVER/www/htdocs/mapfiles/sampletest/htdocs/test.php* on line *8* *Warning*: [MapServer Error]: msSearchDiskTree(): Unable to open spatial index for /home/kapil/FGS-MAPSERVER/www/htdocs/mapfiles/sampletest/data/parl_04.qix. In most cases you can safely ignore this message, otherwise check file names and permissions. in * /home/kapil/FGS-MAPSERVER/www/htdocs/mapfiles/sampletest/htdocs/test.php* on line *8* *Fatal error*: Call to a member function saveWebImage() on a non-object in * /home/kapil/FGS-MAPSERVER/www/htdocs/mapfiles/sampletest/htdocs/test.php* on line *9 *The follwing is my PHP code... getLayerByName("kerala","states_label"); $layer->set('status',MS_ON); $image=$map->draw(); $image_url=$image->saveWebImage(); ?> Example 1: Displaying a map > * *i guess the problem is in label layer.... please help me out... many thanks, zizu* * On Tue, May 5, 2009 at 7:10 PM, kapil manoj wrote: > Hi pietro, > > could you please tell me how to add the layers with the following code... > > $layer = $map->getLayerByName('kerala') >> >> ; >> $layer->set('status', MS_ON); >> $image=$map->draw(); >> $image_url=$image->saveWebImage(); > > > many thanks, > zizu > > > On Tue, May 5, 2009 at 7:01 PM, kapil manoj wrote: > >> Hi pietro, >> >> Thank you so much... now its works fine...... >> >> >> On Tue, May 5, 2009 at 6:07 PM, Pietro Giannini (via Nabble) < >> ml-user+94644-1894679202 at n2.nabble.com >> > wrote: >> >>> Hi Zizu, >>> STATUS OFF on all the layers of your map. >>> To turn on: >>> $layer = $map->getLayerByName('kerala'); >>> $layer->set('status', MS_ON); >>> $image=$map->draw(); >>> $image_url=$image->saveWebImage(); >>> >>> bye >>> ...................pg >>> >>> >>> ________________________________________ >>> Da: mapserver-users-bounces at ...[ >>> mapserver-users-bounces at ...] >>> per conto di zizu [manojkapil06 at ...] >>> >>> Inviato: marted? 5 maggio 2009 12.59 >>> A: mapserver-users at ... >>> Oggetto: [mapserver-users] PHP Mapscript - Displaying only image colour >>> except the existing layers >>> >>> Dear users, >>> >>> I am using FGS-Mapserver, its a stand alone environment on fedora 9. i >>> have >>> successfully play mapserver through cgi, there is absolutely no problem >>> with >>> that. Now am trying to play PHP-Mapscript , example given in the >>> tutorial. >>> The problem am encountering right now is when i run the php file through >>> browser >>> >>> http://localhost:8080/mapfiles/sampletest/htdocs/test.php >>> >>> >>> Luckily the image colour of the map is displaying but the layers of the >>> map >>> is not displaying... herewith am attaching the screen shot of that >>> page.... >>> am also attaching both the map file and php file for your view..... >>> >>> what could be a problem..... please help me out.. >>> >>> tips will be appreciated.... >>> http://n2.nabble.com/file/n2792269/Screenshot.png Screenshot.png >>> >>> http://n2.nabble.com/file/n2792269/test.map test.map >>> >>> http://n2.nabble.com/file/n2792269/test.php test.php >>> >>> many thanks, >>> zizu >>> >>> >>> -- >>> View this message in context: >>> http://n2.nabble.com/PHP-Mapscript---Displaying-only-image-colour-except-the-existing-layers-tp2792269p2792269.html >>> Sent from the Mapserver - User mailing list archive at Nabble.com. >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at ... >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at ... >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >>> ------------------------------ >>> This email is a reply to your post @ >>> http://n2.nabble.com/PHP-Mapscript---Displaying-only-image-colour-except-the-existing-layers-tp2792269p2793318.html >>> You can reply by email or by visting the link above. >>> >>> >> > -- View this message in context: http://n2.nabble.com/PHP-Mapscript---Displaying-only-image-colour-except-the-existing-layers-tp2792269p2795451.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassefa at dmsolutions.ca Tue May 5 08:21:00 2009 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Tue, 05 May 2009 11:21:00 -0400 Subject: [mapserver-users] MapServer 5.4 WMS Server VERSION=1.3.0 Problem In-Reply-To: <517B6758-1F36-4299-BB75-FD70B2AFF57F@remoteinformation.com.au> References: <20090414160018.B18D2E015FA@lists.osgeo.org> <49FF14C4.4040102@dmsolutions.ca> <517B6758-1F36-4299-BB75-FD70B2AFF57F@remoteinformation.com.au> Message-ID: <4A00595C.3060408@dmsolutions.ca> Ben Madin wrote: > G'day Assefa, > > On 05/05/2009, at 12:16 AM, Yewondwossen Assefa wrote: > >> Do you have the full URL that is received by the server? > > No... I'm not sure how to get this(?) - I thought it might be shown if I > set the debug levels high enough, but so far no luck! > If you have access to the web server you can check the logs (with Apache, it would be the access.log that would contain the request) You can also get it in your browser by checking the URL referenced by the image. >> MapServer WMS 1.3.0 supports the following EXCEPTIONS : XML, INIMAGE, >> or BLANK. >> Is might be possible to add EXCEPTIONS: "XML" (or INIMAGE, or >> BLANK) when building your OL wms 1.3.0 layer? > > using either : > > new OpenLayers.Layer.WMS( 'Countries', > 'http://trade.murdoch.local/cgi-bin/mapserv?map=/Users/19022662/Sites/marketprices/mapserver/layers/ol_countries_wms.map&SERVICE=WMS&VERSION=1.3.0&EXCEPTIONS=INIMAGE&REQUEST=GetMap&STYLES=&SRS=EPSG:4326&', > > {layers: 'countries'} ); > > or > > new OpenLayers.Layer.WMS( 'Tail Tag Areas', > 'http://trade.murdoch.local/cgi-bin/mapserv?map=/Users/19022662/Sites/marketprices/mapserver/layers/ol_countries_wms.map&SERVICE=WMS&REQUEST=GetMap&STYLES=&SRS=EPSG:4326', > > {layers: 'tailtagareas', transparent: 'true', version: > '1.3.0', exceptions: 'xml'} ); > As I understand it, Openlayers (at least version 2.7) does not support wms 1.3.0. But you can still do the following and use CRS:84 in your case: var options2 = { maxExtent: new OpenLayers.Bounds(-180, -90, 180, 90), units: 'degree', //projection: "EPSG:4326" projection: "CRS:84" }; map = new OpenLayers.Map( 'map', options2 ); layer = new OpenLayers.Layer.WMS( "gmap wms", "http://127.0.0.1:8080/cgi-bin/mapserv.exe?map=f:/msapps/gmap-ms40/htdocs/gmap75_wms_4326.map", {layers: 'DEMO', VERSION:'1.3.0', EXCEPTIONS:'INIMAGE', CRS:'CRS:84'} ); map.addLayer(layer); > gives no error, but neither do I receive any images any more. > > using the url (such as in the first example) works fine in QGIS, so I'm > guessing the web serving 'can' work... very confusing. > I think QGIS does support wms 1.3.0. At the end what the GetMap parameters should be is: ...&CRS=EPSG:4326&BBOX=ymin,xmin,ymax,xmax or ...&CRS=CRS:84&BBOX=xmin,ymin,xmax,ymax Best regards, > cheers > > Ben > >> Ben Madin wrote: >>> G'day all, >>> I'm a little new to WMS, but I confess the GetLegendGraphic feature >>> available now in the 5.4 release caught my eye. >>> So I'm 5.4.0 and using OpenLayers 2.7. However, when I use the URL : >>> /cgi-bin/mapserv?map=/Users/19022662/Sites/marketprices/mapserver/layers/ol_countries_wms.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&STYLES=&SRS=EPSG:4326& >>> I get the following message (embedded in the tile) : >>> msWMSLoadGetMapParams(): WMS server error. Invalid format for the >>> EXCEPTION parameter. >>> If I drop the VERSION (either back to 1.1.1 or just completely loose >>> it, text below in the context of the OL script. >>> var pol_bnd = new OpenLayers.Layer.WMS( >>> 'Countries', >>> >>> 'http://trade.murdoch.local/cgi-bin/mapserv?map=/Users/19022662/Sites/marketprices/mapserver/layers/ol_countries_wms.map&SERVICE=WMS&REQUEST=GetMap&STYLES=&SRS=EPSG:4326&', >>> {layers: 'countries'} >>> ); >>> map.addLayer(pol_bnd); >>> I get my maps. >>> I can work with this for now, but is there something I'm missing. I >>> did try fiddling with the reported CRS / SRS changes, but I think I >>> just confused myself - but that would be another topic! >>> Perhaps along with the mapfile in the documentation, a copy of a full >>> example of a request url would be great. >>> Some of the mapfile is attached for completeness (it has been sucked >>> across from a CGI Mapserv application): >>> -------------------------- >>> MAP >>> NAME aus_boundaries >>> STATUS ON >>> UNITS DD >>> EXTENT 110 -35 130 -12 # WA extents >>> SIZE 900 650 >>> SHAPEPATH "../geodata/" >>> FONTSET "../geodata/fonts/fonts.lst" >>> SYMBOLSET "../trade.sym" >>> IMAGECOLOR 230 240 255 >>> CONFIG "MS_ERRORFILE" "/var/log/mserr.log" >>> DEBUG 5 >>> PROJECTION >>> "init=epsg:4326" >>> END >>> WEB >>> METADATA >>> "wms_title" "GMS Livestock Trade" >>> "wms_onlineresource" >>> "http://trade.murdoch.local/cgi-bin/mapserv?map=/Users/19022662/Sites/marketprices/mapserver/ol_countries_wms.map&" >>> "wms_srs" "EPSG:4326" >>> END >>> IMAGEPATH "../../tmp/" >>> IMAGEURL "../../tmp/" >>> END >>> LAYER >>> METADATA >>> "wms_title" "Country Boundaries" >>> "wms_srs" "EPSG:4326" >>> "wms_group_title" "Political" >>> END >>> STATUS ON >>> NAME "countries" >>> GROUP "Political" >>> DATA "global/ctybnda" >>> TYPE polygon >>> OPACITY 100 >>> CLASS >>> NAME "Country Borders" >>> COLOR 240 240 180 >>> OUTLINECOLOR 0 70 0 >>> END >>> END >>> ---------------------------- > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From ahmed.soua at gmail.com Tue May 5 09:45:02 2009 From: ahmed.soua at gmail.com (ahmed soua) Date: Tue, 5 May 2009 16:45:02 +0000 Subject: [mapserver-users] problem with mapserver Message-ID: Hi all, I have installed mapserver under ubuntu, and it runs successfully (when I tape ./mapserv -v it deliver : MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE ) and i have then copied the mapserv binary file to my web root directory. the problem when i put this address in my web browser : http://localhost/cgi-bin/mapser , *i obtained a new firefox window that tell me to download the binray file mapserv :(* Can you help me please to resolve this problem. I will be very grateful. Ahmed -- Le bonheur est comme l'?cho : il vous r?pond : mais il ne vient pas. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ahmed.soua at gmail.com Tue May 5 09:49:35 2009 From: ahmed.soua at gmail.com (ahmed soua) Date: Tue, 5 May 2009 16:49:35 +0000 Subject: [mapserver-users] problem with mapserver Message-ID: Hi all, I have installed mapserver under ubuntu, and it runs successfully (when I tape ./mapserv -v it deliver : MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE ) and i have then copied the mapserv binary file to my web root directory. the problem when i put this address in my web browser : http://localhost/cgi-bin/mapser , *i obtained a new firefox window that tell me to download the binray file mapserv :(* Can you help me please to resolve this problem. I will be very grateful. Ahmed -- Le bonheur est comme l'?cho : il vous r?pond : mais il ne vient pas. -------------- next part -------------- An HTML attachment was scrubbed... URL: From wal3 at mindspring.com Tue May 5 09:57:08 2009 From: wal3 at mindspring.com (Worth Lutz) Date: Tue, 5 May 2009 12:57:08 -0400 Subject: [mapserver-users] Scaledenom in Map object Message-ID: I'm using PHP mapscript. Is $oMap->scaledenom only set by $oMap->draw()? Or is it updated when $oMap->setSize($width, $height); or $oMap->setExtent($minX,$minY,$maxX,$maxY); or one of the zoom methods are called? The manual (in the members list) states that scaledenom is read only, set by mapDraw(). I need to use this value before draw and need to know if I need to calculate it myself or can I set the map size and the use the value from the map object. Thanks, Worth -------------- next part -------------- An HTML attachment was scrubbed... URL: From pal.kristensen at statkart.no Tue May 5 14:01:43 2009 From: pal.kristensen at statkart.no (paalkr) Date: Tue, 5 May 2009 14:01:43 -0700 (PDT) Subject: [mapserver-users] GetFeatureInfo in XML In-Reply-To: <8E3DDAF38028446B94779E40DBD425DA@SVEN> References: <8E3DDAF38028446B94779E40DBD425DA@SVEN> Message-ID: <1241557303682-2806255.post@n2.nabble.com> Hi! This is something that I'm interested in as well, could I please ask you to share your featureinfo_nsg.xml? I would like to have a look at it to get some hints on how to set up a XML template. BTW: I think you can expose a new InfoFormat by setting the wms_feature_info_mime_type keyword in the web metadata section of your mapfile. Regards, P?l Kristensen Sven Schroeter wrote: > > Hi all, > I am currently experimenting with Web Map Services and a custom PHP > wrapper. > In this script for a GetFeatureInfo-Request with > info_format=application/vnd.ogc.wms_xml or info_format=text/xml a XML > document is generated. > This works well, a XML-template is set in the mapfile dynamically: > ... > if($k == 'info_format' & ($v == 'application/vnd.ogc.wms_xml' || $v == > 'text/xml')){ > $layer = $oMap->getLayerByName($layername); > $layer->set("template", "template/featureinfo_nsg.xml"); > ... > } > ... > > Two questions: > 1. Is it possible to get a featureInfo-Request in xml native by mapserver > (no gml) > 2. How can I tell mapserver to enhance the list of capabilities to xml? At > this time there comes only > ... > > text/plain > text/html > application/vnd.ogc.gml > > ... > > Thanks > Sven > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ----- Regards, P?l Kristensen -- View this message in context: http://n2.nabble.com/GetFeatureInfo-in-XML-tp2787413p2806255.html Sent from the Mapserver - User mailing list archive at Nabble.com. From adube at mapgears.com Tue May 5 16:02:17 2009 From: adube at mapgears.com (Alexandre Dube) Date: Tue, 05 May 2009 19:02:17 -0400 Subject: [mapserver-users] WMS Layer with secure http url Message-ID: <4A00C579.70206@mapgears.com> Hi list, I'd like to know if it's possible to have a WMS layer linked to a secure http url (https). Currently, I see this error in log : === LOG === [Tue May 5 18:53:01 2009].853725 msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with curl error code 60 (SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed) for https://foo.com/cgi-bin/mapserv?map=map&LAYERS=Layer&REQUEST=GetMap&SERVICE=WMS&FORMAT=image/png&STYLES=&HEIGHT=482&VERSION=1.1.1&SRS=EPSG:900913&WIDTH=732&BBOX=-7977472.96139656,6196959.95818015,-7973217.53860244,6199762.02619485&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage [Tue May 5 18:53:01 2009].854421 msDrawWMSLayerLow(): WMS server error. WMS GetMap request failed for layer 'Layer' (Status -60: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed). =========== If I try the url in a browser with cookies/cache emptied, the url ask a login/password ( which I know... ) so I guess the WMS layer is refused to access the url since it doesn't have the login/password. Is there a way to accomplish this ? Many thanks, -- Alexandre Dub? Mapgears www.mapgears.com From michael.smith at usace.army.mil Tue May 5 17:24:24 2009 From: michael.smith at usace.army.mil (Michael Smith) Date: Tue, 05 May 2009 20:24:24 -0400 Subject: [mapserver-users] WMS Layer with secure http url In-Reply-To: <4A00C579.70206@mapgears.com> Message-ID: Alexandre, What you need is the servers root certificate added to your libcurl certs. Its failing on validating the servers ssl certificate. The curl-config should list your cert directory and then you can add your cert there and it should validate. Mike -- Michael Smith RSGIS Center ERDC - CRREL US Army Corps of Engineers On 5/5/09 7:02 PM, "Alexandre Dube" wrote: > Hi list, > > I'd like to know if it's possible to have a WMS layer linked to a > secure http url (https). Currently, I see this error in log : > > === LOG === > > [Tue May 5 18:53:01 2009].853725 msHTTPExecuteRequests(): HTTP request > error. HTTP: request failed with curl error code 60 (SSL certificate > problem, verify that the CA cert is OK. Details: > error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate > verify failed) for > https://foo.com/cgi-bin/mapserv?map=map&LAYERS=Layer&REQUEST=GetMap&SERVICE=WM > S&FORMAT=image/png&STYLES=&HEIGHT=482&VERSION=1.1.1&SRS=EPSG:900913&WIDTH=732& > BBOX=-7977472.96139656,6196959.95818015,-7973217.53860244,6199762.02619485&TRA > NSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage > [Tue May 5 18:53:01 2009].854421 msDrawWMSLayerLow(): WMS server error. > WMS GetMap request failed for layer 'Layer' (Status -60: SSL certificate > problem, verify that the CA cert is OK. Details: > error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate > verify failed). > > =========== > > If I try the url in a browser with cookies/cache emptied, the url ask a > login/password ( which I know... ) so I guess the WMS layer is refused > to access the url since it doesn't have the login/password. Is there a > way to accomplish this ? > > Many thanks, From davidn at datalinktech.com.au Tue May 5 20:52:32 2009 From: davidn at datalinktech.com.au (David Nugent) Date: Wed, 6 May 2009 13:52:32 +1000 Subject: [mapserver-users] Mapserver rendering with 24 bit colour Message-ID: <8C151E40-22A7-47E6-8D01-11D42B1F3998@datalinktech.com.au> Greetings all, Once I completed upgrading to mapserver 5.4, I decided I'd give the new AGG renderer a try. To date I have been using the GD renderer in 8 bit color mode. One problem I had with it the renderer, and my main motivation to use the AGG renderer (apart from what appears to be an overall improvement in appearance) was that any layer containing "ANGLE FOLLOW" within a class label definition caused php/mapscript to crash rendering meta tiles (for ka-map, if that matters). The AGG renderer solved that problem immediately and it works flawlessly in that respect. However, as a by-product of changing renderer, the metatiles produced by mapserver differ slightly in colour. Some agree exactly to the RBG colours I am providing, others are rendered with slight variations, and when viewed on the web it becomes fairly obvious where the meta tile borders are. I have tried both OUTPUTFORMAT NAME 'AGG_Q' DRIVER AGG/PNG IMAGEMODE RGB FORMATOPTION "QUANTIZE_FORCE=ON" FORMATOPTION "QUANTIZE_DITHER=OFF" FORMATOPTION "QUANTIZE_COLORS=256" END and OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END but both produce the same results. I have even tried fiddling with the FORMATOPTIONs in the AGG_Q block to no effect. I've double-checked the mapscript used to render the tiles to make sure that the correct output format is being selected. Is there a known solution to this? How can I force all tiles produced to use the exact same colour settings? I would have thought the quantize option would resove it, although obviously this would have a slight detrimental side-effect for anti-aliasing. My map file does include various "ANTIALIAS" options (which the document states are ignored in AGG mode) so I can fall back to GD rendering should I ever get "ANGLE FOLLOW" working again. Regards, -- David Nugent (davidn at datalinktech.com.au) Software Engineer datalink technologies pty ltd Mobile GPS/GPRS business process solutions http://www.datalinktech.com.au/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part URL: From voas_acc at hotmail.com Tue May 5 21:12:32 2009 From: voas_acc at hotmail.com (Jim Strevinas) Date: Wed, 6 May 2009 07:12:32 +0300 Subject: [mapserver-users] Scaledenom in Map object In-Reply-To: References: Message-ID: Hi Worth, If you want the scaledenom to be compute after the creation of the map object you can use the (mapObj) function prepareQuery(). With this method you are able to leave the state of the map object intact for using it later for draw() setExtent() etc.. If setExtent, draw, drawQuery is used, then of course the scaledenom is computed and rewritten. >>> From: wal3 at mindspring.com > Subject: [mapserver-users] Scaledenom in Map object > I?m using PHP mapscript. > Is $oMap->scaledenom only set by > $oMap->draw()?Or is it updated when > $oMap->setSize($width, $height); > or > $oMap->setExtent($minX,$minY,$maxX,$maxY); > or one of the zoom methods are called? > The manual (in the members list) states > that scaledenom is read only, set by mapDraw(). > I need to use this value before draw and > need to know if I need to calculate it myself or can I set the map size and the > use the value from the map object. > Thanks, > Worth _________________________________________________________________ Show them the way! Add maps and directions to your party invites. http://www.microsoft.com/windows/windowslive/products/events.aspx From Jukka.Rahkonen at mmmtike.fi Tue May 5 21:19:56 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 6 May 2009 07:19:56 +0300 Subject: [mapserver-users] WMS Layer with secure http url References: Message-ID: Hi, When the certificate is OK the next thing to do is to change the connection URL so that it includes username and password. If I remember right the format is like https://username:password at foo.com/mapserv?.... -Jukka Rahkonen- Michael Smith wrote: Alexandre, What you need is the servers root certificate added to your libcurl certs. Its failing on validating the servers ssl certificate. The curl-config should list your cert directory and then you can add your cert there and it should validate. Mike -- Michael Smith RSGIS Center ERDC - CRREL US Army Corps of Engineers On 5/5/09 7:02 PM, "Alexandre Dube" wrote: > Hi list, > > I'd like to know if it's possible to have a WMS layer linked to a > secure http url (https). Currently, I see this error in log : > > === LOG === > > [Tue May 5 18:53:01 2009].853725 msHTTPExecuteRequests(): HTTP request > error. HTTP: request failed with curl error code 60 (SSL certificate > problem, verify that the CA cert is OK. Details: > error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate > verify failed) for > https://foo.com/cgi-bin/mapserv?map=map&LAYERS=Layer&REQUEST=GetMap&SERVICE=WM > S&FORMAT=image/png&STYLES=&HEIGHT=482&VERSION=1.1.1&SRS=EPSG:900913&WIDTH=732& > BBOX=-7977472.96139656,6196959.95818015,-7973217.53860244,6199762.02619485&TRA > NSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage > [Tue May 5 18:53:01 2009].854421 msDrawWMSLayerLow(): WMS server error. > WMS GetMap request failed for layer 'Layer' (Status -60: SSL certificate > problem, verify that the CA cert is OK. Details: > error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate > verify failed). > > =========== > > If I try the url in a browser with cookies/cache emptied, the url ask a > login/password ( which I know... ) so I guess the WMS layer is refused > to access the url since it doesn't have the login/password. Is there a > way to accomplish this ? > > Many thanks, _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From voas_acc at hotmail.com Tue May 5 21:22:43 2009 From: voas_acc at hotmail.com (Jim Strevinas) Date: Wed, 6 May 2009 07:22:43 +0300 Subject: [mapserver-users] problem with mapserver In-Reply-To: References: Message-ID: Hello Ahmed, This is almost surely happened because the script alias is not active for your cgi-bin folder. I suppose you use apache: 1. Try to restart your apache (google) or 2. check your httpd.conf file, it should contain a scriptalias pointing to the cgi-bin folder. Alternatevely you can create a scriptalias to the mapserv executable itself. (google for httpd.conf tutorial) Regards Jim ________________________________ > Date: Tue, 5 May 2009 16:49:35 +0000 > From: ahmed.soua at gmail.com > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] problem with mapserver > > > Hi all, > I have installed mapserver under ubuntu, and it runs successfully (when I tape ./mapserv -v it deliver : > > > MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS > INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE ) > > > and i have then copied the mapserv binary file to my web root directory. > the problem when i put this address in my web browser : http://localhost/cgi-bin/mapser , i obtained a new firefox window that tell me to download the binray file mapserv :( > > > Can you help me please to resolve this problem. > I will be very grateful. > > Ahmed > -- > Le bonheur est comme l'?cho : il vous r?pond : mais il ne vient pas. > _________________________________________________________________ Show them the way! Add maps and directions to your party invites. http://www.microsoft.com/windows/windowslive/products/events.aspx From subha at gslab.com Tue May 5 21:43:02 2009 From: subha at gslab.com (Subha Ramakrishnan) Date: Wed, 06 May 2009 10:13:02 +0530 Subject: [mapserver-users] extent/bbox of raster image Message-ID: <4A011556.7080805@gslab.com> Hi, I have a raster image which is displayed on Google base map (Openlayers 2.7) using Mapserver 5.0.2. Is it possible for me to get the extent or bounding box of the image, so that I can zoom to that area once the layer is loaded? I have this functionality for vector data where i can get the extent using the postgis function from the DB. So whenever a layer is loaded, the map zooms to the extent of the layer. I want to support the same for raster data. Is it possible? Thanks for any help. Subha From thomas.bonfort at camptocamp.com Tue May 5 22:31:06 2009 From: thomas.bonfort at camptocamp.com (Thomas Bonfort) Date: Wed, 6 May 2009 07:31:06 +0200 Subject: [mapserver-users] Mapserver rendering with 24 bit colour In-Reply-To: <8C151E40-22A7-47E6-8D01-11D42B1F3998@datalinktech.com.au> References: <8C151E40-22A7-47E6-8D01-11D42B1F3998@datalinktech.com.au> Message-ID: <2922382e0905052231k1ef041emd356d7f37c0c59ca@mail.gmail.com> If your mapserver is compiled with --enable-experimental-png, you can change QUANTIZE_FORCE to QUANTIZE_NEW to use a slower but higher quality quantization algorithm that usually fixes these problems. best regards, thomas www.camptocamp.com +33 4 79 26 57 97 On Wed, May 6, 2009 at 05:52, David Nugent wrote: > Greetings all, > Once I completed upgrading to mapserver 5.4, I decided I'd give the new AGG > renderer a try. > To date I have been using the GD renderer in 8 bit color mode. > One problem I had with it the renderer, and my main motivation to use the > AGG renderer (apart from what appears to be an overall improvement in > appearance) was that any layer containing "ANGLE FOLLOW" within a class > label definition caused php/mapscript to crash rendering meta tiles (for > ka-map, if that matters). The AGG renderer solved that problem immediately > and it works flawlessly in that respect. > However, as a by-product of changing renderer, the metatiles produced by > mapserver differ slightly in colour. Some agree exactly to the RBG colours I > am providing, others are rendered with slight variations, and when viewed on > the web it becomes fairly obvious where the meta tile borders are. > I have tried both > ??OUTPUTFORMAT > ?? ?NAME ? ? ? ? ? ? ? ?'AGG_Q' > ?? ?DRIVER ? ? ? ? ? ? ?AGG/PNG > ?? ?IMAGEMODE ? ? ? RGB > ?? ?FORMATOPTION ?"QUANTIZE_FORCE=ON" > ?? ?FORMATOPTION ?"QUANTIZE_DITHER=OFF" > ?? ?FORMATOPTION ?"QUANTIZE_COLORS=256" > ??END > and > ??OUTPUTFORMAT > ?? ?NAME ? ? ? ? ? ?'AGG' > ?? ?DRIVER ? ? ? ? ?AGG/PNG > ?? ?IMAGEMODE ?RGB > ??END > but both produce the same results. ?I have even tried fiddling with the > FORMATOPTIONs in the AGG_Q block to no effect. > I've double-checked the mapscript used to render the tiles to make sure that > the correct output format is being selected. > Is there a known solution to this? How can I force all tiles produced to use > the exact same colour settings? ?I would have thought the quantize option > would resove it, although obviously this would have a slight detrimental > side-effect for anti-aliasing. > My map file does include various "ANTIALIAS" options (which the document > states are ignored in AGG mode) so I can fall back to GD rendering should I > ever get "ANGLE FOLLOW" working again. > Regards, > -- > David Nugent?(davidn at datalinktech.com.au) > Software Engineer > datalink?technologies pty ltd > Mobile GPS/GPRS business process solutions > http://www.datalinktech.com.au/ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Schoenhammer.Herbert at Regensburg.de Tue May 5 22:28:19 2009 From: Schoenhammer.Herbert at Regensburg.de (=?iso-8859-1?Q?Sch=F6nhammer=2C_Herbert?=) Date: Wed, 6 May 2009 07:28:19 +0200 Subject: [mapserver-users] Still problems with: AGG: support text symbols specified by their character number (#2398) Message-ID: Hi list, reading the trac and the changelog I think that the problem described in http://trac.osgeo.org/mapserver/ticket/2398 is solved since mapserver version 5.2.0. But I still observe this problem (exactly this problem !) using mapserver versions 5.2.x and 5.4.0 ! (Source distribution, compiled on SuSE SLES 10; I'm using mapserver as a wms-server, creating png-images) Which prerequisites must be fulfilled for using this option with agg? (I did not find a hint in mailing-lists, docu, etc.) Has anybody a tipp for me ? Are there some dependencies between the used ttf-font and this option ? (So, only ttf- fonts fulfilling certain conditions could be used ?) Thanks very much for every hint ! regards Herbert -------------- next part -------------- An HTML attachment was scrubbed... URL: From micklesh at gmail.com Tue May 5 23:58:26 2009 From: micklesh at gmail.com (Michael Shishcu) Date: Wed, 6 May 2009 09:58:26 +0300 Subject: [mapserver-users] Mapserver wms duplicate labels Message-ID: Hi, list, I'm newbie in mapserver and have a question. I've set up mapserver as wms server, everything works Ok, and here's layer definition LAYER NAME "name" TYPE POLYGON STATUS ON CONNECTIONTYPE oraclespatial CONNECTION "scheme/pass at DB" DATA "column FROM table" DUMP TRUE LABELITEM "label" CLASS MAXSCALEDENOM 2000 STYLE OUTLINECOLOR 255 153 255 COLOR -1 -1 -1 ANTIALIAS TRUE END LABEL MINFEATURESIZE auto MINDISTANCE 50 OUTLINECOLOR 255 255 255 OUTLINEWIDTH 1 COLOR 0 0 0 FONT times TYPE TRUETYPE SIZE 9 ANTIALIAS TRUE POSITION cc PARTIALS FALSE BUFFER 3 END END Also there is a tilecache server (Oracle Mapviewer) whitch server images to end-user The problem is here: if a polygon object is present in some tiles, it is labeled on each tile causing close duplicate labels (attachment). Has anyone some workaround of this problem Regards, Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Img.JPG Type: image/jpeg Size: 9363 bytes Desc: not available URL: From vtammineni at roulacglobal.com Wed May 6 00:21:52 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Wed, 6 May 2009 12:51:52 +0530 Subject: [mapserver-users] Mapserver wms duplicate labels In-Reply-To: References: Message-ID: <005901c9ce1b$55b2f480$0118dd80$@com> Hi, Can you try without using BUFFER property. Thanks, Venkat From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Michael Shishcu Sent: Wednesday, May 06, 2009 12:28 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapserver wms duplicate labels Hi, list, I'm newbie in mapserver and have a question. I've set up mapserver as wms server, everything works Ok, and here's layer definition LAYER NAME "name" TYPE POLYGON STATUS ON CONNECTIONTYPE oraclespatial CONNECTION "scheme/pass at DB" DATA "column FROM table" DUMP TRUE LABELITEM "label" CLASS MAXSCALEDENOM 2000 STYLE OUTLINECOLOR 255 153 255 COLOR -1 -1 -1 ANTIALIAS TRUE END LABEL MINFEATURESIZE auto MINDISTANCE 50 OUTLINECOLOR 255 255 255 OUTLINEWIDTH 1 COLOR 0 0 0 FONT times TYPE TRUETYPE SIZE 9 ANTIALIAS TRUE POSITION cc PARTIALS FALSE BUFFER 3 END END Also there is a tilecache server (Oracle Mapviewer) whitch server images to end-user The problem is here: if a polygon object is present in some tiles, it is labeled on each tile causing close duplicate labels (attachment). Has anyone some workaround of this problem Regards, Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at camptocamp.com Wed May 6 00:26:04 2009 From: thomas.bonfort at camptocamp.com (Thomas Bonfort) Date: Wed, 6 May 2009 09:26:04 +0200 Subject: [mapserver-users] Mapserver wms duplicate labels In-Reply-To: References: Message-ID: <2922382e0905060026r375d968fv69af8cb5b6d0b179@mail.gmail.com> add PROCESSING "LABEL_NO_CLIP=on" to the layer this fixes the label on a geographical point, instead of repeating it on the clipped geometries at the pixel level. regards, thomas www.camptocamp.com +33 4 79 26 57 97 On Wed, May 6, 2009 at 08:58, Michael Shishcu wrote: > Hi, list, I'm newbie in mapserver and have a question. > > I've set up mapserver as wms server, everything works Ok, and here's layer > definition > LAYER > ? NAME "name" > ? TYPE POLYGON > ? STATUS ON > ? CONNECTIONTYPE oraclespatial > ? CONNECTION "scheme/pass at DB" > ? DATA "column FROM table" > ? DUMP TRUE > ? LABELITEM "label" > ? CLASS > ??? MAXSCALEDENOM 2000 > ??? STYLE > ????? OUTLINECOLOR 255 153 255 > ????? COLOR -1 -1 -1 > ????? ANTIALIAS TRUE > ??? END > ??? LABEL > ????? MINFEATURESIZE auto > ????? MINDISTANCE 50 > ????? OUTLINECOLOR 255 255 255 > ????? OUTLINEWIDTH 1 > ????? COLOR 0 0 0 > ????? FONT times > ????? TYPE TRUETYPE > ????? SIZE 9 > ????? ANTIALIAS TRUE > ????? POSITION cc > ????? PARTIALS FALSE > ????? BUFFER 3 > ??? END > ? END > Also there is a tilecache server (Oracle Mapviewer) whitch server images to > end-user > The problem is here: if a polygon object is present? in some tiles, it is > labeled on each tile causing close duplicate labels (attachment). > Has anyone some workaround of this problem > Regards, > Michael > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From micklesh at gmail.com Wed May 6 01:05:00 2009 From: micklesh at gmail.com (micklesh) Date: Wed, 6 May 2009 01:05:00 -0700 (PDT) Subject: [mapserver-users] Mapserver wms duplicate labels In-Reply-To: <2922382e0905060026r375d968fv69af8cb5b6d0b179@mail.gmail.com> References: <2922382e0905060026r375d968fv69af8cb5b6d0b179@mail.gmail.com> Message-ID: <1241597100903-2809106.post@n2.nabble.com> Thank you very much, Thomas, this solves the problem. (By the way, where can i find list of all processing directives?) Regards, Michael Thomas Bonfort-2 wrote: > > add > PROCESSING "LABEL_NO_CLIP=on" > to the layer > > this fixes the label on a geographical point, instead of repeating it > on the clipped geometries at the pixel level. > > regards, > > thomas > > www.camptocamp.com > +33 4 79 26 57 97 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/Mapserver-wms-duplicate-labels-tp2808935p2809106.html Sent from the Mapserver - User mailing list archive at Nabble.com. From micklesh at gmail.com Wed May 6 01:07:58 2009 From: micklesh at gmail.com (micklesh) Date: Wed, 6 May 2009 01:07:58 -0700 (PDT) Subject: [mapserver-users] Mapserver wms duplicate labels In-Reply-To: <005901c9ce1b$55b2f480$0118dd80$@com> References: <005901c9ce1b$55b2f480$0118dd80$@com> Message-ID: <1241597278985-2809119.post@n2.nabble.com> Thanks for your response, I tried setting BUFFER to false (or simply deleting it), but there were no improvements regards, Michael Venkat Rao Tammineni wrote: > > Hi, > Can you try without using BUFFER property. > > Thanks, > Venkat > > -- View this message in context: http://n2.nabble.com/Mapserver-wms-duplicate-labels-tp2808935p2809119.html Sent from the Mapserver - User mailing list archive at Nabble.com. From temiz at deprem.gov.tr Wed May 6 03:24:46 2009 From: temiz at deprem.gov.tr (orkun) Date: Wed, 06 May 2009 13:24:46 +0300 Subject: [mapserver-users] Grid label format is lost Message-ID: <1241605486.6060.4.camel@orkun-desktop> hello Grid label format is being lost when I zoom my map. It changes from %7.3f to scientific notation. I want it stay in %7.3f. How can I do this ? I am working on java-mapscript. regards -- Ahmet Temiz Jeo. M?h. Afet ??leri Gen. Md.l??? Deprem Ar. D. Ahmet Temiz Geo. Eng. General Dir. of Disaster Affairs TURKEY -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From adube at mapgears.com Wed May 6 05:39:05 2009 From: adube at mapgears.com (Alexandre Dube) Date: Wed, 06 May 2009 08:39:05 -0400 Subject: [mapserver-users] WMS Layer with secure http url In-Reply-To: References: Message-ID: <4A0184E9.9020305@mapgears.com> Thank you both for the tips, I'll try your solutions today. Alexandre Rahkonen Jukka wrote: > Hi, > When the certificate is OK the next thing to do is to change the connection URL so that it includes username and password. If I remember right the format is like https://username:password at foo.com/mapserv?.... > > -Jukka Rahkonen- > > > > Michael Smith wrote: > > > Alexandre, > > What you need is the servers root certificate added to your libcurl certs. > Its failing on validating the servers ssl certificate. > > The curl-config should list your cert directory and then you can add your > cert there and it should validate. > > Mike > > > -- Alexandre Dub? Mapgears www.mapgears.com From michael.smith at usace.army.mil Wed May 6 06:15:41 2009 From: michael.smith at usace.army.mil (Smith, Michael ERDC-CRREL-NH) Date: Wed, 06 May 2009 09:15:41 -0400 Subject: [mapserver-users] WMS Layer with secure http url In-Reply-To: <4A0184E9.9020305@mapgears.com> Message-ID: Rather than putting the username/password in the URL, you can use the metadata fields for the authentication METADATA "wms_auth_username" "foo" "wms_auth_password" "{FF88CFDAAE1A5E33}" "wms_auth_type" "basic" END Mike On 5/6/09 8:39 AM, "Alexandre Dube" wrote: > Thank you both for the tips, I'll try your solutions today. > > Alexandre > > Rahkonen Jukka wrote: >> Hi, >> When the certificate is OK the next thing to do is to change the connection >> URL so that it includes username and password. If I remember right the format >> is like https://username:password at foo.com/mapserv?.... >> >> -Jukka Rahkonen- >> >> >> >> Michael Smith wrote: >> >> >> Alexandre, >> >> What you need is the servers root certificate added to your libcurl certs. >> Its failing on validating the servers ssl certificate. >> >> The curl-config should list your cert directory and then you can add your >> cert there and it should validate. >> >> Mike >> >> >> > From schroeter at netgis.de Wed May 6 06:43:03 2009 From: schroeter at netgis.de (Sven Schroeter) Date: Wed, 6 May 2009 15:43:03 +0200 Subject: [mapserver-users] GetFeatureInfo in XML References: <8E3DDAF38028446B94779E40DBD425DA@SVEN> <1241557303682-2806255.post@n2.nabble.com> Message-ID: P?l , I use a simple XML-File with CGI-Variables ([myvar]) like this: Naturschutzgebiet [name] [objnr] http://www.naturschutz.rlp.de/dokumente/rvo/[objnr].htm [schutzzone] [erfassungsgrundlage] http://www.naturschutz.rlp.de/Impressum.natur?ActiveID=1234 If there is a request for xml I tell my script to set the response-header is XML: ... $buffer = ms_iogetstdoutbufferstring(); header('Content-type: text/xml'); echo $buffer; ... Greetings Sven ----- Original Message ----- From: "paalkr" To: Sent: Tuesday, May 05, 2009 11:01 PM Subject: Re: [mapserver-users] GetFeatureInfo in XML Hi! This is something that I'm interested in as well, could I please ask you to share your featureinfo_nsg.xml? I would like to have a look at it to get some hints on how to set up a XML template. BTW: I think you can expose a new InfoFormat by setting the wms_feature_info_mime_type keyword in the web metadata section of your mapfile. Regards, P?l Kristensen Sven Schroeter wrote: > > Hi all, > I am currently experimenting with Web Map Services and a custom PHP > wrapper. > In this script for a GetFeatureInfo-Request with > info_format=application/vnd.ogc.wms_xml or info_format=text/xml a XML > document is generated. > This works well, a XML-template is set in the mapfile dynamically: > ... > if($k == 'info_format' & ($v == 'application/vnd.ogc.wms_xml' || $v == > 'text/xml')){ > $layer = $oMap->getLayerByName($layername); > $layer->set("template", "template/featureinfo_nsg.xml"); > ... > } > ... > > Two questions: > 1. Is it possible to get a featureInfo-Request in xml native by mapserver > (no gml) > 2. How can I tell mapserver to enhance the list of capabilities to xml? At > this time there comes only > ... > > text/plain > text/html > application/vnd.ogc.gml > > ... > > Thanks > Sven > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ----- Regards, P?l Kristensen -- View this message in context: http://n2.nabble.com/GetFeatureInfo-in-XML-tp2787413p2806255.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From sjfingarfield at gmail.com Wed May 6 07:27:38 2009 From: sjfingarfield at gmail.com (Sam Ingarfield) Date: Wed, 6 May 2009 22:27:38 +0800 Subject: [mapserver-users] expected speeds. Message-ID: <33c7a1e70905060727n772ee13i79093775dac0bc1f@mail.gmail.com> Hi; I've just been through a bit of an optimisation process on my server and was wondering whether the speeds that I am obtaining are somewhat inline with what could be expected with the hardware/datasets that are in use. Firstly: Hardware. 2.2Ghz Xeon (Single Core, but with hyperthreading. not that hyperthreading helps much.) 1.2Gb Memory coupled with over 2Gb of swap (was filling up memory and original swap realllly fast so swap was expanded) Data being served off an array of three ultra320 15k scsi drives in a raid-5 config. Software. OS: Debian Mapserver: Nighly build as of 6/5/09, in fastcgi mode Data source: Postgis database Data: Coastline Layer (9 Polygons with a stupid number of vertices, this is a known slow point due to toast table problems. or at least we think it is) Islands Layer (~9000 polygons, only ~4mb) Internal Waterbodies layer (~11000 polygons, plus ~1.2m lines, 800mb all up) Performance: On a moderate zoom level, about 2s per 256x256 tile. On more zoomed out levels, process times out before completing. and yes, some generalisation needs to take place at further out zoomage but thats not sorted yet. If i drop the coastline layer out (the toast problem one), speed ups to like 80-100ms/tile So, watchathink? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bistrais at maine.gov Wed May 6 08:31:08 2009 From: Bob.Bistrais at maine.gov (Bistrais, Bob) Date: Wed, 6 May 2009 11:31:08 -0400 Subject: [mapserver-users] How to make mouseovers, image maps, etc Message-ID: <4EFF8BB964547748A07CA32961810C0412C48753@SOM-TEAQASMAIL1.som.w2k.state.me.us> I would like to make a web map that, when the user moves the mouse cursor over a feature, attribute information will be displayed. For example, a web map of the state, user moves the mouse over a town, the town's name and population are displayed like a tool tip. I have read some discussions of this in older threads, and also was able to build an image map, but don't really understand the process. Can anyone provide examples, step-by-step instructions, or other information on how to do this? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Wed May 6 11:02:55 2009 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 06 May 2009 13:02:55 -0500 Subject: [mapserver-users] Mapserver wms duplicate labels In-Reply-To: <1241597100903-2809106.post@n2.nabble.com> References: <2922382e0905060026r375d968fv69af8cb5b6d0b179@mail.gmail.com> <1241597100903-2809106.post@n2.nabble.com> Message-ID: <4A018A7F.5157.008F.0@dnr.state.mn.us> Um, there isn't a global list of processing directives although there probably should be. Most are described in the context of other documentation (e.g. http://mapserver.org/output/dynamic_charting.html). I've started a wiki page to document these at: http://trac.osgeo.org/mapserver/wiki/ProcessingDirectives Steve >>> On 5/6/2009 at 3:05 AM, in message <1241597100903-2809106.post at n2.nabble.com>, micklesh wrote: > Thank you very much, Thomas, this solves the problem. > (By the way, where can i find list of all processing directives?) > Regards, > Michael > > > > Thomas Bonfort-2 wrote: >> >> add >> PROCESSING "LABEL_NO_CLIP=on" >> to the layer >> >> this fixes the label on a geographical point, instead of repeating it >> on the clipped geometries at the pixel level. >> >> regards, >> >> thomas >> >> www.camptocamp.com >> +33 4 79 26 57 97 >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> From SansonR at asurequality.com Wed May 6 13:48:22 2009 From: SansonR at asurequality.com (Robert Sanson) Date: Thu, 07 May 2009 08:48:22 +1200 Subject: [mapserver-users] expected speeds. In-Reply-To: <33c7a1e70905060727n772ee13i79093775dac0bc1f@mail.gmail.com> References: <33c7a1e70905060727n772ee13i79093775dac0bc1f@mail.gmail.com> Message-ID: <4A02A054.379F.0037.0@asurequality.com> Hi Sam I would try turning the Coastline layer into a Shapefile and serving it from the Mapserver machine in a local directory. Postgis is probably overkill given the layer is probably static (unlikely to need changing). regards, Robert >>> Sam Ingarfield 7/05/2009 2:27 a.m. >>> Hi; I've just been through a bit of an optimisation process on my server and was wondering whether the speeds that I am obtaining are somewhat inline with what could be expected with the hardware/datasets that are in use. Firstly: Hardware. 2.2Ghz Xeon (Single Core, but with hyperthreading. not that hyperthreading helps much.) 1.2Gb Memory coupled with over 2Gb of swap (was filling up memory and original swap realllly fast so swap was expanded) Data being served off an array of three ultra320 15k scsi drives in a raid-5 config. Software. OS: Debian Mapserver: Nighly build as of 6/5/09, in fastcgi mode Data source: Postgis database Data: Coastline Layer (9 Polygons with a stupid number of vertices, this is a known slow point due to toast table problems. or at least we think it is) Islands Layer (~9000 polygons, only ~4mb) Internal Waterbodies layer (~11000 polygons, plus ~1.2m lines, 800mb all up) Performance: On a moderate zoom level, about 2s per 256x256 tile. On more zoomed out levels, process times out before completing. and yes, some generalisation needs to take place at further out zoomage but thats not sorted yet. If i drop the coastline layer out (the toast problem one), speed ups to like 80-100ms/tile So, watchathink? Click here ( https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg== ) to report this email as spam. ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcreso at pcreso.com Wed May 6 15:38:21 2009 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Wed, 6 May 2009 15:38:21 -0700 (PDT) Subject: [mapserver-users] expected speeds. Message-ID: <196800.38328.qm@web33208.mail.mud.yahoo.com> Hi Sam, You have no mentioned whether or not you created spatial indices on your geometries. Such indexes won't help much when plotting the entire dataset, but will dramatically improve plotting (retrieving) subsets of it. I suggest you use the PostGIS function ST_SimplifyPreserveTopology() to populate an extra geometry column in each table, which should have significantly fewer vertices. Then in your mapfile, use scales dependent layers, so that when zoomed out you use the simplified column, and at larger scales you use the full resolution column. You can assign these to the same group, so they are treated as a single layer from the user's perspective, but mapserver retrieves and renders data at a detail (& hence volume) appropriate for the current scale automatically. When you zoom out, you seldom need the full resolution data, so simplified versions are fine, and much faster. This is the vector data equivalent of raster layers at different resolutions to support zoom layering (or scale based layers). If you have the cpu & memory, PostGIS can be fast enough to have the simplified layer generated as a view on the full dataset, or as a query in the mapfile data definition sql, but given your specs, a separate column will probably give better results. Cheers, Brent Wood --- On Thu, 5/7/09, Robert Sanson wrote: > From: Robert Sanson > Subject: Re: [mapserver-users] expected speeds. > To: "Sam Ingarfield" , mapserver-users at lists.osgeo.org > Date: Thursday, May 7, 2009, 8:48 AM > > > > > Hi Sam > > I would try turning the Coastline layer into a > Shapefile and serving it from the Mapserver machine in a > local directory. Postgis is probably overkill given the > layer is probably static (unlikely to need changing). > > regards, > > Robert > > >>> Sam Ingarfield > 7/05/2009 2:27 a.m. >>> > Hi; > > I've just been through a bit of an optimisation process > on my server and was wondering whether the speeds that I am > obtaining are somewhat inline with what could be expected > with the hardware/datasets that are in use. > > Firstly: Hardware. > 2.2Ghz Xeon (Single Core, but with hyperthreading. not that > hyperthreading helps much.) > 1.2Gb Memory coupled with over 2Gb of swap (was filling up > memory and original swap realllly fast so swap was > expanded) > Data being served off an array of three ultra320 15k scsi > drives in a raid-5 config. > > Software. > OS: Debian > Mapserver: Nighly build as of 6/5/09, in fastcgi mode > Data source: Postgis database > > Data: > Coastline Layer (9 Polygons with a stupid number of > vertices, this is a known slow point due to toast table > problems. or at least we think it is) > Islands Layer (~9000 polygons, only ~4mb) > Internal Waterbodies layer (~11000 polygons, plus ~1.2m > lines, 800mb all up) > > Performance: > On a moderate zoom level, about 2s per 256x256 tile. > On more zoomed out levels, process times out before > completing. and yes, some generalisation needs to take place > at further out zoomage but thats not sorted yet. > If i drop the coastline layer out (the toast problem one), > speed ups to like 80-100ms/tile > > > So, watchathink? > > > > > Click here > to report this email as spam. > > > ------------------------------------------------------------------ > > The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. > > ------------------------------------------------------------------ > > > This message has been > scanned for malware by SurfControl plc. www.surfcontrol.com > > > -----Inline Attachment Follows----- > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Bob.Basques at ci.stpaul.mn.us Wed May 6 16:52:37 2009 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Wed, 06 May 2009 18:52:37 -0500 Subject: [mapserver-users] Label alignment . . . Message-ID: <4A01DC75.163B.00A8.0@ci.stpaul.mn.us> All, I'm playing around with generating a map collar image by labeling some lines with MapServer. I get the labels looking about what I would like them to look like, but the alignment vertically ( and this applies to horizontal alignment as well ) is not playing nice. See this link: http://gis.ci.stpaul.mn.us/datasets/SHP/FED/USGS/USNG/mn_usng_lines_labels_public_2.map?mapext=503179.6728349806%20111379.8994326578%20508281.0020239575%20135621.41573867595&mapsize=70%20600&mode=map&MOOSETIME=1241653121858 ( http://gis.ci.stpaul.mn.us/datasets/SHP/FED/USGS/USNG/mn_usng_lines_labels_public_2.map?mapext=503179.6728349806%20111379.8994326578%20508281.0020239575%20135621.41573867595&mapsize=70%20600&mode=map&MOOSETIME=1241653121858 ) I'm thinking that the labels are moving back and forth horizontally because of the underlying line work, It's not strictly horizontal but curved slightly, and there may or may not be a vertice visible within a view. (Can a vertice be marked somehow?) So I think MapServer is using the longest straight segment within the view to center on for labeling. Question, how do I get these to line up vertically (and horizontally)? I know there was some recent justification work going on, but didn't follow it in detail. Thanks bobb Pertinent mapfile chunks: LAYER METADATA "ows_title" "layer_0" "gml_include_items" "all" END NAME 'usng' DATA '0000_00/MN_Line_Experiments/MN_USNG_Ramsey_Line_Northing_Beta' STATUS DEFAULT TYPE LINE LABELITEM 'NORTHING' CLASS LABEL TYPE TRUETYPE FONT bluehigh SIZE 10 COLOR 25 25 25 OUTLINECOLOR 255 255 254 ANGLE 0 OFFSET -15 -1 FORCE true END END END LAYER METADATA "ows_title" "layer_0" "gml_include_items" "all" END NAME 'usng' DATA '0000_00/MN_Line_Experiments/MN_USNG_Ramsey_Line_Northing_Beta' STATUS DEFAULT TYPE LINE LABELITEM 'NORTHING' CLASS LABEL TYPE TRUETYPE FONT bluehigh SIZE 15 COLOR 25 25 25 OUTLINECOLOR 255 255 254 ANGLE 0 FORCE true END END END LAYER METADATA "ows_title" "layer_0" "gml_include_items" "all" END NAME 'usng' DATA '0000_00/MN_Line_Experiments/MN_USNG_Ramsey_Line_Northing_Beta' STATUS DEFAULT TYPE LINE LABELITEM 'NORTHING' CLASS LABEL TYPE TRUETYPE FONT bluehigh SIZE 10 COLOR 25 25 25 OUTLINECOLOR 255 255 254 ANGLE 0 OFFSET 14 -1 FORCE true END END MAXSCALE 5000000 END -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Wed May 6 17:29:21 2009 From: bfraser at geoanalytic.com (Brent Fraser) Date: Wed, 6 May 2009 18:29:21 -0600 (Mountain Daylight Time) Subject: [mapserver-users] Label alignment . . . In-Reply-To: <4A01DC75.163B.00A8.0@ci.stpaul.mn.us> References: <4A01DC75.163B.00A8.0@ci.stpaul.mn.us> Message-ID: <.68.144.5.189.1241656161.squirrel@68.144.5.189> Bob, The links say a username and password are required... Brent > All, > > I'm playing around with generating a map collar image by labeling some > lines with MapServer. > > I get the labels looking about what I would like them to look like, but > the alignment vertically ( and this applies to horizontal alignment as > well ) is not playing nice. > > See this link: > http://gis.ci.stpaul.mn.us/datasets/SHP/FED/USGS/USNG/mn_usng_lines_labels_public_2.map?mapext=503179.6728349806%20111379.8994326578%20508281.0020239575%20135621.41573867595&mapsize=70%20600&mode=map&MOOSETIME=1241653121858 > ( > http://gis.ci.stpaul.mn.us/datasets/SHP/FED/USGS/USNG/mn_usng_lines_labels_public_2.map?mapext=503179.6728349806%20111379.8994326578%20508281.0020239575%20135621.41573867595&mapsize=70%20600&mode=map&MOOSETIME=1241653121858 > ) > > I'm thinking that the labels are moving back and forth horizontally > because of the underlying line work, It's not strictly horizontal but > curved slightly, and there may or may not be a vertice visible within a > view. (Can a vertice be marked somehow?) So I think MapServer is using > the longest straight segment within the view to center on for labeling. > > Question, how do I get these to line up vertically (and horizontally)? I > know there was some recent justification work going on, but didn't follow > it in detail. > > Thanks > > bobb > > Pertinent mapfile chunks: > > LAYER > > METADATA > > "ows_title" "layer_0" > > "gml_include_items" > > "all" > > END > > NAME 'usng' > > DATA '0000_00/MN_Line_Experiments/MN_USNG_Ramsey_Line_Northing_Beta' > > STATUS DEFAULT > > TYPE LINE > > LABELITEM 'NORTHING' > > CLASS > > LABEL > > TYPE TRUETYPE > > FONT bluehigh > > SIZE 10 > > COLOR 25 25 25 > > OUTLINECOLOR 255 255 254 > > ANGLE 0 > > OFFSET -15 -1 > FORCE true > END > > END > END > > LAYER > > METADATA > > "ows_title" "layer_0" > > "gml_include_items" > > "all" > > END > > NAME 'usng' > > DATA '0000_00/MN_Line_Experiments/MN_USNG_Ramsey_Line_Northing_Beta' > > STATUS DEFAULT > > TYPE LINE > > LABELITEM 'NORTHING' > > CLASS > > LABEL > > TYPE TRUETYPE > > FONT bluehigh > > SIZE 15 > > COLOR 25 25 25 > > OUTLINECOLOR 255 255 254 > > ANGLE 0 > > FORCE true > END > > END > END > > LAYER > > METADATA > > "ows_title" "layer_0" > > "gml_include_items" > > "all" > > END > > NAME 'usng' > > DATA '0000_00/MN_Line_Experiments/MN_USNG_Ramsey_Line_Northing_Beta' > > STATUS DEFAULT > > TYPE LINE > > LABELITEM 'NORTHING' > > CLASS > > LABEL > > TYPE TRUETYPE > > FONT bluehigh > > SIZE 10 > > COLOR 25 25 25 > > OUTLINECOLOR 255 255 254 > > ANGLE 0 > > OFFSET 14 -1 > FORCE true > END > > END > > MAXSCALE 5000000 > > END > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Bob.Basques at ci.stpaul.mn.us Wed May 6 18:57:31 2009 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Wed, 06 May 2009 20:57:31 -0500 Subject: [mapserver-users] Label alignment . . . Message-ID: <4A0207CC020000A800013416@jeckle> Oops, sorry, wrong mapfile: try this one. https://gis.ci.stpaul.mn.us/datasets/SHP/FED/USGS/USNG/mn_usng_lines_labels_2_public.map?mapext=503179.6728349806+111379.8994326578+508281.0020239575+135621.41573867595&mapsize=70+600&mode=map&MOOSETIME=1241653121858 bobb >>> "Brent Fraser" 05/06/09 7:31 PM >>> Bob, The links say a username and password are required... Brent > All, > > I'm playing around with generating a map collar image by labeling some > lines with MapServer. > > I get the labels looking about what I would like them to look like, but > the alignment vertically ( and this applies to horizontal alignment as > well ) is not playing nice. > > See this link: > http://gis.ci.stpaul.mn.us/datasets/SHP/FED/USGS/USNG/mn_usng_lines_labels_public_2.map?mapext=503179.6728349806%20111379.8994326578%20508281.0020239575%20135621.41573867595&mapsize=70%20600&mode=map&MOOSETIME=1241653121858 > ( > http://gis.ci.stpaul.mn.us/datasets/SHP/FED/USGS/USNG/mn_usng_lines_labels_public_2.map?mapext=503179.6728349806%20111379.8994326578%20508281.0020239575%20135621.41573867595&mapsize=70%20600&mode=map&MOOSETIME=1241653121858 > ) > > I'm thinking that the labels are moving back and forth horizontally > because of the underlying line work, It's not strictly horizontal but > curved slightly, and there may or may not be a vertice visible within a > view. (Can a vertice be marked somehow?) So I think MapServer is using > the longest straight segment within the view to center on for labeling. > > Question, how do I get these to line up vertically (and horizontally)? I > know there was some recent justification work going on, but didn't follow > it in detail. > > Thanks > > bobb > > Pertinent mapfile chunks: > > LAYER > > METADATA > > "ows_title" "layer_0" > > "gml_include_items" > > "all" > > END > > NAME 'usng' > > DATA '0000_00/MN_Line_Experiments/MN_USNG_Ramsey_Line_Northing_Beta' > > STATUS DEFAULT > > TYPE LINE > > LABELITEM 'NORTHING' > > CLASS > > LABEL > > TYPE TRUETYPE > > FONT bluehigh > > SIZE 10 > > COLOR 25 25 25 > > OUTLINECOLOR 255 255 254 > > ANGLE 0 > > OFFSET -15 -1 > FORCE true > END > > END > END > > LAYER > > METADATA > > "ows_title" "layer_0" > > "gml_include_items" > > "all" > > END > > NAME 'usng' > > DATA '0000_00/MN_Line_Experiments/MN_USNG_Ramsey_Line_Northing_Beta' > > STATUS DEFAULT > > TYPE LINE > > LABELITEM 'NORTHING' > > CLASS > > LABEL > > TYPE TRUETYPE > > FONT bluehigh > > SIZE 15 > > COLOR 25 25 25 > > OUTLINECOLOR 255 255 254 > > ANGLE 0 > > FORCE true > END > > END > END > > LAYER > > METADATA > > "ows_title" "layer_0" > > "gml_include_items" > > "all" > > END > > NAME 'usng' > > DATA '0000_00/MN_Line_Experiments/MN_USNG_Ramsey_Line_Northing_Beta' > > STATUS DEFAULT > > TYPE LINE > > LABELITEM 'NORTHING' > > CLASS > > LABEL > > TYPE TRUETYPE > > FONT bluehigh > > SIZE 10 > > COLOR 25 25 25 > > OUTLINECOLOR 255 255 254 > > ANGLE 0 > > OFFSET 14 -1 > FORCE true > END > > END > > MAXSCALE 5000000 > > END > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From micklesh at gmail.com Wed May 6 22:37:50 2009 From: micklesh at gmail.com (micklesh) Date: Wed, 6 May 2009 22:37:50 -0700 (PDT) Subject: [mapserver-users] Mapserver wms duplicate labels In-Reply-To: <4A018A7F.5157.008F.0@dnr.state.mn.us> References: <2922382e0905060026r375d968fv69af8cb5b6d0b179@mail.gmail.com> <1241597100903-2809106.post@n2.nabble.com> <4A018A7F.5157.008F.0@dnr.state.mn.us> Message-ID: <1241674670634-2826238.post@n2.nabble.com> Steve, thanks once more for you help best wishes, michael Steve Lime wrote: > > Um, there isn't a global list of processing directives although there > probably should be. Most are > described in the context of other documentation (e.g. > http://mapserver.org/output/dynamic_charting.html). > > I've started a wiki page to document these at: > > http://trac.osgeo.org/mapserver/wiki/ProcessingDirectives > > Steve > >>>> On 5/6/2009 at 3:05 AM, in message >>>> <1241597100903-2809106.post at n2.nabble.com>, > micklesh wrote: > >> Thank you very much, Thomas, this solves the problem. >> (By the way, where can i find list of all processing directives?) >> Regards, >> Michael >> >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/Mapserver-wms-duplicate-labels-tp2808935p2826238.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ben at remoteinformation.com.au Wed May 6 23:00:03 2009 From: ben at remoteinformation.com.au (Ben Madin) Date: Thu, 7 May 2009 14:00:03 +0800 Subject: [mapserver-users] Using Geotransform for arrow heads on lines? Message-ID: G'day all, I am quite interested in this feature (from RFC 48), but not quite sure how it is intended to work - I vaguely interpreted that I could add an arrowhead to a line using it, but do I need to create a second layer (with the GEOTRANSFORM END) parameter to place a symbol, or can it work within the line layer? I have a large number of lines representing the start and end of various movements, and it would be great to be able to add an arrow head just to the end. 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 thomas.bonfort at camptocamp.com Wed May 6 23:07:11 2009 From: thomas.bonfort at camptocamp.com (Thomas Bonfort) Date: Thu, 7 May 2009 08:07:11 +0200 Subject: [mapserver-users] Using Geotransform for arrow heads on lines? In-Reply-To: References: Message-ID: <2922382e0905062307r33ddcf6eqdd2dc0585e94c27c@mail.gmail.com> you add it inside the same layer, eg: class style color 0 0 0 width 1 end style geomtransform 'end' angle auto symbol 'arrowhead' size 8 color 0 0 0 end end regards, thomas www.camptocamp.com +33 4 79 26 57 97 On Thu, May 7, 2009 at 08:00, Ben Madin wrote: > G'day all, > > I am quite interested in this feature (from RFC 48), but not quite sure how > it is intended to work - I vaguely interpreted that I could add an arrowhead > to a line using it, but do I need to create a second layer (with the > GEOTRANSFORM END) parameter to place a symbol, or can it work within the > line layer? > > I have a large number of lines representing the start and end of various > movements, and it would be great to be able to add an arrow head just to the > end. > > 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... > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From voas_acc at hotmail.com Wed May 6 23:20:02 2009 From: voas_acc at hotmail.com (Jim Strevinas) Date: Thu, 7 May 2009 09:20:02 +0300 Subject: [mapserver-users] How to make mouseovers, image maps, etc In-Reply-To: <4EFF8BB964547748A07CA32961810C0412C48753@SOM-TEAQASMAIL1.som.w2k.state.me.us> References: <4EFF8BB964547748A07CA32961810C0412C48753@SOM-TEAQASMAIL1.som.w2k.state.me.us> Message-ID: Hi Bob I do not know if this is the proper answer for a mailing list but i would suggest that you try Bill Kropla's "Understanding MapServer: Open-source GIS developement". It contains the developement of an application like the one you want with clear and easy steps. ________________________________ > Date: Wed, 6 May 2009 11:31:08 -0400 > From: Bob.Bistrais at maine.gov > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] How to make mouseovers, image maps, etc > > I would like to make a web map that, when the user moves the > mouse cursor over a feature, attribute information will be displayed. For > example, a web map of the state, user moves the mouse over a town, the town?s > name and population are displayed like a tool tip. > > I have read some discussions of this in older threads, and > also was able to build an image map, but don?t really understand the > process. Can anyone provide examples, step-by-step instructions, or other > information on how to do this? _________________________________________________________________ More than messages?check out the rest of the Windows Live?. http://www.microsoft.com/windows/windowslive/ From ben at remoteinformation.com.au Wed May 6 23:23:29 2009 From: ben at remoteinformation.com.au (Ben Madin) Date: Thu, 7 May 2009 14:23:29 +0800 Subject: [mapserver-users] Using Geotransform for arrow heads on lines? In-Reply-To: <2922382e0905062307r33ddcf6eqdd2dc0585e94c27c@mail.gmail.com> References: <2922382e0905062307r33ddcf6eqdd2dc0585e94c27c@mail.gmail.com> Message-ID: <525CCFF0-AE0B-428E-9EB4-10DDBC5FD206@remoteinformation.com.au> Thanks Thomas, Brilliant - that feature alone is enough justification for a version release - I have wanted something like this for about 12 months! Fantastic! -------------- next part -------------- A non-text attachment was scrubbed... Name: Picture 2.png Type: image/png Size: 12010 bytes Desc: not available URL: -------------- next part -------------- Thanks again, cheers Ben On 07/05/2009, at 2:07 PM, Thomas Bonfort wrote: > you add it inside the same layer, eg: > > class > style > color 0 0 0 > width 1 > end > style > geomtransform 'end' > angle auto > symbol 'arrowhead' > size 8 > color 0 0 0 > end > end > > regards, > > thomas > > www.camptocamp.com > +33 4 79 26 57 97 > > On Thu, May 7, 2009 at 08:00, Ben Madin > wrote: >> G'day all, >> >> I am quite interested in this feature (from RFC 48), but not quite >> sure how >> it is intended to work - I vaguely interpreted that I could add an >> arrowhead >> to a line using it, but do I need to create a second layer (with the >> GEOTRANSFORM END) parameter to place a symbol, or can it work >> within the >> line layer? >> >> I have a large number of lines representing the start and end of >> various >> movements, and it would be great to be able to add an arrow head >> just to the >> end. -- 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 edgardo.ghibaudo at provincia.biella.it Thu May 7 02:31:00 2009 From: edgardo.ghibaudo at provincia.biella.it (Edgardo Ghibaudo) Date: Thu, 07 May 2009 11:31:00 +0200 Subject: [mapserver-users] Apache crash using Mapserver with big mapfile (about 2500 lines) Message-ID: Dear users, I?m using the following environment: Ubuntu 6.06 (libc6 2.3.6) Apache 2.2.9 Php 4.4.2 Mapserver 4.8.2 Maplab 2.2.1 (last available version) Using a project inside Maplab/gmapfactory with a big mapfile (about 2500 lines) the httpd process of Apache crash. Enclosed you can find the details of the crash (Backtrace). Apache compilation details: ./configure --prefix=/usr/local/apache229 --enable-info --enable-mime-magic --enable-rewrite --enable-so --enable-speling --enable-unique_id --enable-usertrack --with-mpm=prefork PHP compilation details: ./configure --enable-kbmmw --with-regex=system --with-freetype --with-dbase --prefix=/usr/local/apache229/php --with-mysql=/usr/local/mysql4115 --with-pgsql=shared,/usr/local/pgsql8014 --with-pdflib=shared,/usr/local/pdflite703 --with-config-file-path=/usr/local/apache229/php --with-png --with-jpeg --with-jpeg-dir=/usr/local --with-tiff --with-gd --with-zlib --enable-track-vars --enable-sockets --enable-wddx=shared --with-xmlrpc=shared --enable-calendar --with-iconv=/usr/local/libiconv112 --with-iconv-dir=/usr/local/libiconv112 --with-apxs2=/usr/local/apache229/bin/apxs --enable-cgi Mapserver compilation details: ./configure --enable-debug --with-proj=/usr/local --with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config --with-gd --with-httpd=/usr/local/apache229/bin/httpd --with-php=/usr/local/apache229/php --with-php-regex-dir=/usr/local/apache229/php/regex --enable-runpath --enable-force-freetype1 --with-wmsclient --with-freetype --with-png=/usr/local --with-jpeg=/usr/local --with-libiconv=/usr/local --with-wfs --with-wfsclient --with-postgis=/usr/local/pgsql8014/bin/pg_config I tried to upgrade the OS version (Ubuntu 7.04 ? libc6 2.5.0), but the result doesn?t change. I tried also to compile different SW versions (Apache 1.3.41, Php 4.4.9, Mapserver 4.8.3 & 4.8.4), but the result doesn?t change Many thanks, Edgardo *** glibc detected *** /usr/local/apache229/bin/httpd: free(): invalid next size (fast): 0x087bdf40 *** ======= Backtrace: ========= /lib/tls/i686/cmov/libc.so.6[0xb7d7b7cd] /lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7d7ee30] /usr/local/apache229/php/extensions/php_mapscript_44.so(msFreeShape+0x35)[0xb7814de5] /usr/local/apache229/php/extensions/php_mapscript_44.so(msDrawVectorLayer+0x336)[0xb7828ca6] /usr/local/apache229/php/extensions/php_mapscript_44.so(msDrawLayer+0xaa)[0xb7828faa] /usr/local/apache229/php/extensions/php_mapscript_44.so(msDrawMap+0x5d3)[0xb7829f33] /usr/local/apache229/php/extensions/php_mapscript_44.so(mapObj_draw+0x1d)[0xb77e34dd] /usr/local/apache229/php/extensions/php_mapscript_44.so(php3_ms_map_draw+0x6c)[0xb77db65c] /usr/local/apache229/modules/libphp4.so(execute+0x6b43)[0xb7c7d943] /usr/local/apache229/modules/libphp4.so(zend_execute_scripts+0xde)[0xb7c674fe] /usr/local/apache229/modules/libphp4.so(php_execute_script+0x316)[0xb7c3b006] /usr/local/apache229/modules/libphp4.so[0xb7c8171b] /usr/local/apache229/bin/httpd(ap_run_handler+0x59)[0x807b1b9] /usr/local/apache229/bin/httpd(ap_invoke_handler+0x67)[0x807e447] /usr/local/apache229/bin/httpd(ap_process_request+0x178)[0x8098af8] /usr/local/apache229/bin/httpd[0x8095d9b] /usr/local/apache229/bin/httpd(ap_run_process_connection+0x59)[0x8082539] /usr/local/apache229/bin/httpd[0x80b68f5] /usr/local/apache229/bin/httpd[0x80b6bb7] /usr/local/apache229/bin/httpd(ap_mpm_run+0x880)[0x80b7510] /usr/local/apache229/bin/httpd(main+0x865)[0x8068ae5] /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc)[0xb7d29ebc] /usr/local/apache229/bin/httpd(apr_os_proc_mutex_put+0x5d)[0x8067ca1] --http://www.provincia.biella.it------------------------------------------------------ Vuoi rimanere sempre aggiornato sulle nostre attivita'? Visita la pagina dei feed RSS sul nostro sito ed iscriviti alla sezione di interesse. --Avviso------------------------------------------------------------------------------ Questo messaggio e i suoi allegati sono riservati esclusivamente alle persone in indirizzo e possono contenere informazioni confidenziali. Se questo messaggio vi e' pervenuto per errore, vi informiamo che ogni suo uso e'proibito. In questo caso rispedite immediatamente il messaggio al mittente e cancellatelo. Per ogni chiarimento contattateci scrivendo a ced at provincia.biella.it. Grazie -Il Webmaster. --Warning----------------------------------------------------------------------------- This message and its attachments are addressed solely to the persons above and may contain confidential information. If you have received the message in error, be informed that any use of the content hereof is prohibited. Please return it immediately to the sender and delete the message. Should you have any questions, please contact us by replying to ced at provincia.biella.it. The Webmaster. -------------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From temiz at deprem.gov.tr Thu May 7 04:54:04 2009 From: temiz at deprem.gov.tr (Ahmet Temiz) Date: Thu, 7 May 2009 14:54:04 +0300 Subject: [mapserver-users] problem in reference map Message-ID: <20090507115038.M79754@deprem.gov.tr> hello the red box in my reference map isn't settled on my zoomed main map. what am I likely to miss ? regards Ahmet Temiz -- Open WebMail Project (http://openwebmail.org) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From meenu.monu at gmail.com Thu May 7 05:32:58 2009 From: meenu.monu at gmail.com (meenu) Date: Thu, 7 May 2009 05:32:58 -0700 (PDT) Subject: [mapserver-users] Unable to load DLL 'mapscript': Access is denied Message-ID: <1241699578148-2827731.post@n2.nabble.com> hi friends...i created one mapserver website project in vs2005 based on mapserver tutorial available in c#(TutorialMapServerSolution.zip)...all working fine in my localhost...when i hosted website am getting an error like as follows..pls help me to solve this issue Unable to load DLL 'mapscript': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Line 59: ibMap.ImageUrl = "MapStream.aspx?ACTION=INITMAP"; Line 60: //initialize controls Line 61: mapObj map = new mapObj(System.Configuration.ConfigurationSettings.AppSettings["mapFilePath"].ToString()); Line 62: //iterate the map layer to populate ddlLayer and cblLayer Line 63: for(int i=0;i References: <1241699578148-2827731.post@n2.nabble.com> Message-ID: <1241701085981-2827860.post@n2.nabble.com> hi friends,i solved my problems by giving following permission to users...is this one correct way or not? read listfolders contents read/execute ----- Meenu -- View this message in context: http://n2.nabble.com/Unable-to-load-DLL-%27mapscript%27%3A-Access-is-denied-tp2827731p2827860.html Sent from the Mapserver - User mailing list archive at Nabble.com. From gonzalo at sepp0.com.ar Thu May 7 06:33:23 2009 From: gonzalo at sepp0.com.ar (Gonzalo Lionel Rodriguez) Date: Thu, 7 May 2009 10:33:23 -0300 Subject: [mapserver-users] MapServer Dont Draw Message-ID: Hi everyone, I have a website with p.mapper and mapserver and mapserver dont draw the maps, here is the example: http://www.orsep.gob.ar/test/pmapper-stable/map.phtml A strace debug:
\nWarning: dl() has been disabled for security reasons in /home/orsep/public_html/test/pmapper-stable/incphp/globals.php on line 51
\n", 165
Warning: dl() has been disabled for security reasons in /home/orsep/public_html/test/pmapper-stable/incphp/globals.php on line 51
) = 165 write(1, "
\nFatal error: Call to undefined function ms_newMapObj() in /home/orsep/public_html/test/pmapper-stable/incphp/globals.php on line 60
\n", 167
Fatal error: Call to undefined function ms_newMapObj() in /home/orsep/public_html/test/pmapper-stable/incphp/globals.php on line 60
) = 167 pwrite64(3, "PM_BASE_DIR|s:43:\"/home/orsep/public_html/test/pmapper-stable\";PM_BASECONFIG_DIR|s:50:\"/home/orsep/public_html/test/pmapper-stable/config\";PM_CONFIG_LOCATION|s:7:\"default\";PM_CONFIG_DIR|s:58:\"/home/or"..., 1371, 0) = 1371 close(3) = 0 Any idea? Kind regards. From pvoudouris at gaiocorp.com Thu May 7 07:15:29 2009 From: pvoudouris at gaiocorp.com (Pano Voudouris) Date: Thu, 7 May 2009 17:15:29 +0300 Subject: [mapserver-users] Unable to load DLL 'mapscript': Access is denied In-Reply-To: <1241701085981-2827860.post@n2.nabble.com> References: <1241699578148-2827731.post@n2.nabble.com> <1241701085981-2827860.post@n2.nabble.com> Message-ID: <001101c9cf1e$48b4d970$da1e8c50$@com> Hi Meenu- read/execute privileges should be enough. I found that sometimes to get windows to 'refresh' the folder privs you have to go to Properties->Security tab->Advanced->Permissions and check both the 'Allow inheritable permission to propagate...' and 'Replace permission entries..' boxes. Not sure if this is cowboy work but it works! Pano -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of meenu Sent: 07 May 2009 15:58 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Unable to load DLL 'mapscript': Access is denied hi friends,i solved my problems by giving following permission to users...is this one correct way or not? read listfolders contents read/execute ----- Meenu -- View this message in context: http://n2.nabble.com/Unable-to-load-DLL-%27mapscript%27%3A-Access-is-denied- tp2827731p2827860.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From percyd at pdx.edu Thu May 7 08:22:03 2009 From: percyd at pdx.edu (percy) Date: Thu, 07 May 2009 08:22:03 -0700 Subject: [mapserver-users] flash link broken on MS website In-Reply-To: <49EEF1BE0200008F00023379@co5.dnr.state.mn.us> References: <49EEF1BE0200008F00023379@co5.dnr.state.mn.us> Message-ID: <4A02FC9B.3070406@pdx.edu> Hi guys, The link on this page to the flash demo is broken: http://mapserver.org/output/flash.html The broken link is http://mapserver.gis.umn.edu/docs/tutorial/demoflashmap/demoflashmaps Cheers, Percy -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 From vsaraf.gmu at gmail.com Thu May 7 10:27:25 2009 From: vsaraf.gmu at gmail.com (Varun saraf) Date: Thu, 7 May 2009 13:27:25 -0400 Subject: [mapserver-users] Re: Dynamic data loading using Google maps andMapserver In-Reply-To: <6db14d250905041230t729af3d7ubb1c5a4d40d5aa7e@mail.gmail.com> References: <49FD5C4B0200008F0002392C@co5.dnr.state.mn.us> <6db14d250905041230t729af3d7ubb1c5a4d40d5aa7e@mail.gmail.com> Message-ID: <6db14d250905071027j7ff0aac8j30edeb7f8c9389e3@mail.gmail.com> Hi All, I am trying to integrate the census tracts on the google maps base. I am using the tile mode and have successfully drawn the shape files over the states of USA. I have some data in an access database that I need to show to the user when he selects a particular census tract (the shapes are polygons). However, since its a tile mode that I am using on google maps, I am unable to understand how do I get the information from mapserver as to which census tract was selected by the user? Is there a way mapserver can send me the polygon selected based on a co-ordinate lying inside the polygon? I know there is a way by using queries and a querymap for doing this. The query that I am using is as follows http://127.0.0.1:8123/cgi-bin/mapserv.exe?&map=C:/ms4w/apps/census/testMap.map&mode=query&mapxy=38.87795 -77.098617 I am providing a template in my map file that has the tract variables. However, the result is always the same "msQueryByPoint(): Search returned no results. No matching record(s) found." Is it that mapserver is trying to look for a point feature in the location specifies by mapxy in the link above? How do I make mapserver to look for a polygon enclosing this co-ordinate and return me the result? I am attaching my mapfile also for reference. MAP NAME testMap STATUS ON SIZE 600 300 EXTENT -84 37 -75 40 UNITS DD SHAPEPATH "data" IMAGECOLOR 255 255 255 CONFIG "MS_ERRORFILE" "ms_error.txt" IMAGETYPE PNG WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END QUERYMAP STATUS ON STYLE HILITE END LAYER NAME "virginia" STATUS DEFAULT TYPE polygon DATA tr51_d00 DEBUG 5 TOLERANCE 1000 TOLERANCEUNITS pixels TEMPLATE "bodytemplate.html" HEADER "imapheader.html" FOOTER "imapfooter.html" CLASS STYLE OUTLINECOLOR 128 128 128 COLOR 153 205 255 END TEMPLATE "pointTemplate.html" END END END Thanks, Varun On Mon, May 4, 2009 at 3:30 PM, Varun saraf wrote: > Hi Steve, > > If I provide Mapserver with a point x,y in WGS84 projection (from > google maps) as a query, can mapserver give me the enclosing polygon > information (using point-in-polygon method or something else)? If yes, > how? I have already drawn the polygons on google map using tile mode. > Can you suggest me a book/doc that helps with querying mapserver? > > Thanks, > Varun > > On Sun, May 3, 2009 at 9:56 AM, Steve Lime wrote: >> Both examples show how to do this. You have to create a query using >> the coordinate from Google to access MapServer. My example uses the >> principle to query points but would work for polygons (which are actually >> easier). You could issue straight MapServer queries: >> >> ?http://.../cgi-bin/mapserv?mode=query&map=something.map&mapxy=google_x+google_y&qlayer=the_polygons >> >> or do a WFS query. Since you're already using straight MapServer the former >> would probably be easiest. >> >> Steve >> >>>>> Varun saraf 05/02/09 1:34 PM >>> >> Hi, >> >> Thanks a lot Jim and Steve. These are great examples but I am dividing >> each state of USA into about 1300 polygons and I need a way to find >> which polygon is selected by the user. I tried building Gpolygons >> using the polygon data that i have (after converting it into a GML >> file) but it makes Google damn slow to redraw the polygons on zoom in >> and zoom out. The tile mode in mapserver is much faster. >> >> Now, After I draw the polygon in tile mode using mapserver, Is there a >> way Mapserver can return to me the specific polygon info (say >> co-ordinates or any other data in the dbf file relating to that >> polygon) when I select it on google map? Goggle I believe can give me >> the exact co-ordinates of the point I clicked. Can mapserver use this >> point location to find which polygon was selected? >> >> Thanks, >> Varun >> >> 2009/5/2 Jim Strevinas : >>> A beautiful example that uses the Google Maps API is: >>> >>> http://www.dyasdesigns.com/geoxml/gmlusa.htm >>> >>> It makes use of an API plugin called geoxml that can load XML data which can >>> be produced by >>> a WFS server. In the source code, a static GML file is used but a google >>> search shows that it can >>> connect to a live WFS server using the URL. >>> >>>> Date: Sat, 2 May 2009 09:28:01 -0500 >>>> From: Steve.Lime at dnr.state.mn.us >>>> To: vsaraf.gmu at gmail.com >>>> Subject: Re: [mapserver-users] Re: Dynamic data loading using Google maps >>>> andMapserver >>>> CC: mapserver-users at lists.osgeo.org >>>> >>>> One way to do that is to construct MapServer queries based on the event >>>> and submit them using AJAX. This site does just that but with OpenLayers: >>>> >>>> http://www.dnr.state.mn.us/waters/csg/index_copy.html >>>> >>>> Click on the dots and a MapServer query is done behind the scenes. If >>>> successful >>>> a little window control is populated, if not, then nothing happens. Simple >>>> templates >>>> are used to present the information. >>>> >>>> Steve >>>> >>>> >>> Varun saraf 05/01/09 11:54 AM >>> >>>> Hi, >>>> >>>> I just had a look at ImageMap Template on "Output generation"...Can >>>> this be used on google maps to get information pooped up on a >>>> mouseover or mouseclick in tile mode? If not, what is it that I can do >>>> to get a similar result when using Mapserver with google maps? >>>> >>>> Regards, >>>> Varun >>>> >>>> On Thu, Apr 30, 2009 at 6:30 PM, Varun saraf wrote: >>>> > Hi, >>>> > >>>> > I have successfully drawn layers on of google maps as base using >>>> > mapserver. However, I am trying to figure out how to get data >>>> > dynamically displayed on the web page when a user clicks on a certain >>>> > area. For example, I have divided the entire state of virginia into >>>> > many sectors (using a polygon shp file). My requirement is that I want >>>> > data to come up on the map/web page when the user selects a particular >>>> > sector. I know google provides me with an event api for clicking on >>>> > the map but how do I pass this event to mapserver so it can send me >>>> > the label for that sector from the shape file? I need to be able to >>>> > recognize what sector the user has clicked. Is this possible using >>>> > just the mapserv cgi script and a map file or a MapScript has to be >>>> > written/used? Can someone point me in the right direction here? Even >>>> > providing the link for a previous discussion on this topic would help. >>>> > >>>> > Thanks, >>>> > Varun >>>> > >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> ________________________________ >>> Invite your mail contacts to join your friends list with Windows Live >>> Spaces. It's easy! Try it! >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > From Steve.Lime at dnr.state.mn.us Thu May 7 10:26:47 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 07 May 2009 12:26:47 -0500 Subject: [mapserver-users] problem in reference map In-Reply-To: <20090507115038.M79754@deprem.gov.tr> References: <20090507115038.M79754@deprem.gov.tr> Message-ID: <4A02D387.5157.008F.0@dnr.state.mn.us> Most likely your reference map size or extent are incorrect. That's where I'd start. Steve >>> On 5/7/2009 at 6:54 AM, in message <20090507115038.M79754 at deprem.gov.tr>, "Ahmet Temiz" wrote: > hello > > the red box in my reference map isn't settled on my zoomed main map. > > what am I likely to miss ? > > regards > > Ahmet Temiz > > -- > Open WebMail Project (http://openwebmail.org) > From Steve.Lime at dnr.state.mn.us Thu May 7 10:28:59 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 07 May 2009 12:28:59 -0500 Subject: [mapserver-users] Apache crash using Mapserver with big mapfile(about 2500 lines) In-Reply-To: References: Message-ID: <4A02D40B.5157.008F.0@dnr.state.mn.us> Have you tried running through shp2img independently of MapLab to see if it's a problem with MapServer or MapLab specifically? Steve >>> On 5/7/2009 at 4:31 AM, in message , Edgardo Ghibaudo wrote: > Dear users, > > I?m using the following environment: > Ubuntu 6.06 (libc6 2.3.6) > Apache 2.2.9 > Php 4.4.2 > Mapserver 4.8.2 > Maplab 2.2.1 (last available version) > > Using a project inside Maplab/gmapfactory with a big mapfile (about 2500 > lines) the httpd process of Apache crash. > Enclosed you can find the details of the crash (Backtrace). > Apache compilation details: > ./configure --prefix=/usr/local/apache229 --enable-info --enable-mime-magic > --enable-rewrite --enable-so --enable-speling --enable-unique_id --enable-usertrack > --with-mpm=prefork > PHP compilation details: > ./configure --enable-kbmmw --with-regex=system --with-freetype --with-dbase > --prefix=/usr/local/apache229/php --with-mysql=/usr/local/mysql4115 > --with-pgsql=shared,/usr/local/pgsql8014 > --with-pdflib=shared,/usr/local/pdflite703 > --with-config-file-path=/usr/local/apache229/php --with-png --with-jpeg > --with-jpeg-dir=/usr/local --with-tiff --with-gd --with-zlib --enable-track-vars > --enable-sockets --enable-wddx=shared --with-xmlrpc=shared --enable-calendar > --with-iconv=/usr/local/libiconv112 --with-iconv-dir=/usr/local/libiconv112 > --with-apxs2=/usr/local/apache229/bin/apxs --enable-cgi > Mapserver compilation details: > ./configure --enable-debug --with-proj=/usr/local > --with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config > --with-gd --with-httpd=/usr/local/apache229/bin/httpd > --with-php=/usr/local/apache229/php > --with-php-regex-dir=/usr/local/apache229/php/regex --enable-runpath > --enable-force-freetype1 --with-wmsclient --with-freetype --with-png=/usr/local > --with-jpeg=/usr/local --with-libiconv=/usr/local --with-wfs --with-wfsclient > --with-postgis=/usr/local/pgsql8014/bin/pg_config > > I tried to upgrade the OS version (Ubuntu 7.04 ? libc6 2.5.0), but the > result doesn?t change. > I tried also to compile different SW versions (Apache 1.3.41, Php 4.4.9, > Mapserver 4.8.3 & 4.8.4), but the result doesn?t change > > Many thanks, > Edgardo > > *** glibc detected *** /usr/local/apache229/bin/httpd: free(): invalid next > size (fast): 0x087bdf40 *** > ======= Backtrace: ========= > /lib/tls/i686/cmov/libc.so.6[0xb7d7b7cd] > /lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7d7ee30] > /usr/local/apache229/php/extensions/php_mapscript_44.so(msFreeShape+0x35)[0x > b7814de5] > /usr/local/apache229/php/extensions/php_mapscript_44.so(msDrawVectorLayer+0x > 336)[0xb7828ca6] > /usr/local/apache229/php/extensions/php_mapscript_44.so(msDrawLayer+0xaa)[0x > b7828faa] > /usr/local/apache229/php/extensions/php_mapscript_44.so(msDrawMap+0x5d3)[0xb > 7829f33] > /usr/local/apache229/php/extensions/php_mapscript_44.so(mapObj_draw+0x1d)[0x > b77e34dd] > /usr/local/apache229/php/extensions/php_mapscript_44.so(php3_ms_map_draw+0x6 > c)[0xb77db65c] > /usr/local/apache229/modules/libphp4.so(execute+0x6b43)[0xb7c7d943] > /usr/local/apache229/modules/libphp4.so(zend_execute_scripts+0xde)[0xb7c674f > e] > /usr/local/apache229/modules/libphp4.so(php_execute_script+0x316)[0xb7c3b006 > ] > /usr/local/apache229/modules/libphp4.so[0xb7c8171b] > /usr/local/apache229/bin/httpd(ap_run_handler+0x59)[0x807b1b9] > /usr/local/apache229/bin/httpd(ap_invoke_handler+0x67)[0x807e447] > /usr/local/apache229/bin/httpd(ap_process_request+0x178)[0x8098af8] > /usr/local/apache229/bin/httpd[0x8095d9b] > /usr/local/apache229/bin/httpd(ap_run_process_connection+0x59)[0x8082539] > /usr/local/apache229/bin/httpd[0x80b68f5] > /usr/local/apache229/bin/httpd[0x80b6bb7] > /usr/local/apache229/bin/httpd(ap_mpm_run+0x880)[0x80b7510] > /usr/local/apache229/bin/httpd(main+0x865)[0x8068ae5] > /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc)[0xb7d29ebc] > /usr/local/apache229/bin/httpd(apr_os_proc_mutex_put+0x5d)[0x8067ca1] > > > > --http://www.provincia.biella.it------------------------------------------------------ > > Vuoi rimanere sempre aggiornato sulle nostre attivita'? > Visita la pagina dei feed RSS sul nostro sito ed iscriviti alla sezione di > interesse. > > --Avviso------------------------------------------------------------------------------ > Questo messaggio e i suoi allegati sono riservati esclusivamente alle > persone in > indirizzo e possono contenere informazioni confidenziali. Se questo > messaggio vi e' > pervenuto per errore, vi informiamo che ogni suo uso e'proibito. > In questo caso rispedite immediatamente il messaggio al mittente e > cancellatelo. > Per ogni chiarimento contattateci scrivendo a ced at provincia.biella.it. > Grazie -Il Webmaster. > --Warning----------------------------------------------------------------------------- > This message and its attachments are addressed solely to the persons above > and may > contain confidential information. If you have received the message in error, > be > informed that any use of the content hereof is prohibited. > Please return it immediately to the sender and delete the message. Should > you have > any questions, please contact us by replying to ced at provincia.biella.it. > The Webmaster. > -------------------------------------------------------------------------------------- From Steve.Lime at dnr.state.mn.us Thu May 7 10:32:58 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 07 May 2009 12:32:58 -0500 Subject: [mapserver-users] Re: Dynamic data loading using Google maps andMapserver In-Reply-To: <6db14d250905071027j7ff0aac8j30edeb7f8c9389e3@mail.gmail.com> References: <49FD5C4B0200008F0002392C@co5.dnr.state.mn.us> <6db14d250905041230t729af3d7ubb1c5a4d40d5aa7e@mail.gmail.com> <6db14d250905071027j7ff0aac8j30edeb7f8c9389e3@mail.gmail.com> Message-ID: <4A02D4F9.5157.008F.0@dnr.state.mn.us> Something's backwards, you're mapxy is 38.87795, -77.098617 but your extents are neg,pos,neg,pos? Also is your data in lat/lon? Steve >>> On 5/7/2009 at 12:27 PM, in message <6db14d250905071027j7ff0aac8j30edeb7f8c9389e3 at mail.gmail.com>, Varun saraf wrote: > Hi All, > > I am trying to integrate the census tracts on the google maps base. I > am using the tile mode and have successfully drawn the shape files > over the states of USA. I have some data in an access database that I > need to show to the user when he selects a particular census tract > (the shapes are polygons). However, since its a tile mode that I am > using on google maps, I am unable to understand how do I get the > information from mapserver as to which census tract was selected by > the user? Is there a way mapserver can send me the polygon selected > based on a co-ordinate lying inside the polygon? I know there is a way > by using queries and a querymap for doing this. The query that I am > using is as follows > > http://127.0.0.1:8123/cgi-bin/mapserv.exe?&map=C:/ms4w/apps/census/testMap.map& > mode=query&mapxy=38.87795 > -77.098617 > > I am providing a template in my map file that has the tract variables. > However, the result is always the same > > "msQueryByPoint(): Search returned no results. No matching record(s) > found." Is it that mapserver is trying to look for a point feature in > the location specifies by mapxy in the link above? How do I make > mapserver to look for a polygon enclosing this co-ordinate and return > me the result? I am attaching my mapfile also for reference. > > MAP > NAME testMap > STATUS ON > SIZE 600 300 > EXTENT -84 37 -75 40 > UNITS DD > SHAPEPATH "data" > IMAGECOLOR 255 255 255 > CONFIG "MS_ERRORFILE" "ms_error.txt" > > IMAGETYPE PNG > > WEB > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > END > > QUERYMAP > STATUS ON > STYLE HILITE > END > > LAYER > NAME "virginia" > STATUS DEFAULT > TYPE polygon > DATA tr51_d00 > DEBUG 5 > TOLERANCE 1000 > TOLERANCEUNITS pixels > > TEMPLATE "bodytemplate.html" > HEADER "imapheader.html" > FOOTER "imapfooter.html" > > CLASS > STYLE > OUTLINECOLOR 128 128 128 > COLOR 153 205 255 > END > TEMPLATE "pointTemplate.html" > END > > END > END > > Thanks, > Varun > > On Mon, May 4, 2009 at 3:30 PM, Varun saraf wrote: >> Hi Steve, >> >> If I provide Mapserver with a point x,y in WGS84 projection (from >> google maps) as a query, can mapserver give me the enclosing polygon >> information (using point-in-polygon method or something else)? If yes, >> how? I have already drawn the polygons on google map using tile mode. >> Can you suggest me a book/doc that helps with querying mapserver? >> >> Thanks, >> Varun >> >> On Sun, May 3, 2009 at 9:56 AM, Steve Lime wrote: >>> Both examples show how to do this. You have to create a query using >>> the coordinate from Google to access MapServer. My example uses the >>> principle to query points but would work for polygons (which are actually >>> easier). You could issue straight MapServer queries: >>> >>> > http://.../cgi-bin/mapserv?mode=query&map=something.map&mapxy=google_x+google_y > &qlayer=the_polygons >>> >>> or do a WFS query. Since you're already using straight MapServer the former >>> would probably be easiest. >>> >>> Steve >>> >>>>>> Varun saraf 05/02/09 1:34 PM >>> >>> Hi, >>> >>> Thanks a lot Jim and Steve. These are great examples but I am dividing >>> each state of USA into about 1300 polygons and I need a way to find >>> which polygon is selected by the user. I tried building Gpolygons >>> using the polygon data that i have (after converting it into a GML >>> file) but it makes Google damn slow to redraw the polygons on zoom in >>> and zoom out. The tile mode in mapserver is much faster. >>> >>> Now, After I draw the polygon in tile mode using mapserver, Is there a >>> way Mapserver can return to me the specific polygon info (say >>> co-ordinates or any other data in the dbf file relating to that >>> polygon) when I select it on google map? Goggle I believe can give me >>> the exact co-ordinates of the point I clicked. Can mapserver use this >>> point location to find which polygon was selected? >>> >>> Thanks, >>> Varun >>> >>> 2009/5/2 Jim Strevinas : >>>> A beautiful example that uses the Google Maps API is: >>>> >>>> http://www.dyasdesigns.com/geoxml/gmlusa.htm >>>> >>>> It makes use of an API plugin called geoxml that can load XML data which can >>>> be produced by >>>> a WFS server. In the source code, a static GML file is used but a google >>>> search shows that it can >>>> connect to a live WFS server using the URL. >>>> >>>>> Date: Sat, 2 May 2009 09:28:01 -0500 >>>>> From: Steve.Lime at dnr.state.mn.us >>>>> To: vsaraf.gmu at gmail.com >>>>> Subject: Re: [mapserver-users] Re: Dynamic data loading using Google maps >>>>> andMapserver >>>>> CC: mapserver-users at lists.osgeo.org >>>>> >>>>> One way to do that is to construct MapServer queries based on the event >>>>> and submit them using AJAX. This site does just that but with OpenLayers: >>>>> >>>>> http://www.dnr.state.mn.us/waters/csg/index_copy.html >>>>> >>>>> Click on the dots and a MapServer query is done behind the scenes. If >>>>> successful >>>>> a little window control is populated, if not, then nothing happens. Simple >>>>> templates >>>>> are used to present the information. >>>>> >>>>> Steve >>>>> >>>>> >>> Varun saraf 05/01/09 11:54 AM >>> >>>>> Hi, >>>>> >>>>> I just had a look at ImageMap Template on "Output generation"...Can >>>>> this be used on google maps to get information pooped up on a >>>>> mouseover or mouseclick in tile mode? If not, what is it that I can do >>>>> to get a similar result when using Mapserver with google maps? >>>>> >>>>> Regards, >>>>> Varun >>>>> >>>>> On Thu, Apr 30, 2009 at 6:30 PM, Varun saraf wrote: >>>>> > Hi, >>>>> > >>>>> > I have successfully drawn layers on of google maps as base using >>>>> > mapserver. However, I am trying to figure out how to get data >>>>> > dynamically displayed on the web page when a user clicks on a certain >>>>> > area. For example, I have divided the entire state of virginia into >>>>> > many sectors (using a polygon shp file). My requirement is that I want >>>>> > data to come up on the map/web page when the user selects a particular >>>>> > sector. I know google provides me with an event api for clicking on >>>>> > the map but how do I pass this event to mapserver so it can send me >>>>> > the label for that sector from the shape file? I need to be able to >>>>> > recognize what sector the user has clicked. Is this possible using >>>>> > just the mapserv cgi script and a map file or a MapScript has to be >>>>> > written/used? Can someone point me in the right direction here? Even >>>>> > providing the link for a previous discussion on this topic would help. >>>>> > >>>>> > Thanks, >>>>> > Varun >>>>> > >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> ________________________________ >>>> Invite your mail contacts to join your friends list with Windows Live >>>> Spaces. It's easy! Try it! >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From vsaraf.gmu at gmail.com Thu May 7 11:15:42 2009 From: vsaraf.gmu at gmail.com (Varun saraf) Date: Thu, 7 May 2009 14:15:42 -0400 Subject: [mapserver-users] Re: Dynamic data loading using Google maps andMapserver In-Reply-To: <4A02D4F9.5157.008F.0@dnr.state.mn.us> References: <49FD5C4B0200008F0002392C@co5.dnr.state.mn.us> <6db14d250905041230t729af3d7ubb1c5a4d40d5aa7e@mail.gmail.com> <6db14d250905071027j7ff0aac8j30edeb7f8c9389e3@mail.gmail.com> <4A02D4F9.5157.008F.0@dnr.state.mn.us> Message-ID: <6db14d250905071115s6e44aec2g625edda034c78e37@mail.gmail.com> yes my data is in lat, long. I discovered the inverse lat long in mapxy just after sending this email and tried it. It works now but the New problem is that the result is a little tweaked. I guess its a problem with the projection. The tract number is not the current one when I click somewhere on the border of a tract. The projection is not that big a problem for me right now. I need to get this thing up and running by EOD with google maps (The dynamic clicking on the map etc). Thanks a lot for the prompt reply. On Thu, May 7, 2009 at 1:32 PM, Steve Lime wrote: > Something's backwards, you're mapxy is 38.87795, -77.098617 but your extents are neg,pos,neg,pos? Also > is your data in lat/lon? > > Steve > >>>> On 5/7/2009 at 12:27 PM, in message > <6db14d250905071027j7ff0aac8j30edeb7f8c9389e3 at mail.gmail.com>, Varun saraf > wrote: >> Hi All, >> >> I am trying to integrate the census tracts on the google maps base. I >> am using the tile mode and have successfully drawn the shape files >> over the states of USA. I have some data in an access database that I >> need to show to the user when he selects a particular census tract >> (the shapes are polygons). However, since its a tile mode that I am >> using on google maps, I am unable to understand how do I get the >> information from mapserver as to which census tract was selected by >> the user? Is there a way mapserver can send me the polygon selected >> based on a co-ordinate lying inside the polygon? I know there is a way >> by using queries and a querymap for doing this. The query that I am >> using is as follows >> >> http://127.0.0.1:8123/cgi-bin/mapserv.exe?&map=C:/ms4w/apps/census/testMap.map& >> mode=query&mapxy=38.87795 >> -77.098617 >> >> I am providing a template in my map file that has the tract variables. >> However, the result is always the same >> >> "msQueryByPoint(): Search returned no results. No matching record(s) >> found." Is it that mapserver is trying to look for a point feature in >> the location specifies by mapxy in the link above? How do I make >> mapserver to look for a polygon enclosing this co-ordinate and return >> me the result? I am attaching my mapfile also for reference. >> >> MAP >> ? ? NAME testMap >> ? ? STATUS ON >> ? ? SIZE 600 300 >> ? ? EXTENT -84 37 -75 40 >> ? ? UNITS DD >> ? ? SHAPEPATH "data" >> ? ? IMAGECOLOR 255 255 255 >> ? ? CONFIG "MS_ERRORFILE" "ms_error.txt" >> >> ? ? IMAGETYPE PNG >> >> ? ? WEB >> ? ? ? IMAGEPATH "/ms4w/tmp/ms_tmp/" >> ? ? ? IMAGEURL "/ms_tmp/" >> ? ? END >> >> ? ? QUERYMAP >> ? ? ? ? STATUS ON >> ? ? ? ? STYLE HILITE >> ? ? END >> >> ? ? LAYER >> ? ? ? ? NAME "virginia" >> ? ? ? ? STATUS DEFAULT >> ? ? ? ? TYPE polygon >> ? ? ? ? DATA tr51_d00 >> ? ? ? ? DEBUG 5 >> ? ? ? ? TOLERANCE 1000 >> ? ? ? ? TOLERANCEUNITS pixels >> >> ? ? ? ? TEMPLATE "bodytemplate.html" >> ? ? ? ? HEADER "imapheader.html" >> ? ? ? ? FOOTER "imapfooter.html" >> >> ? ? ? ? CLASS >> ? ? ? ? ?STYLE >> ? ? ? ? ? ? OUTLINECOLOR 128 128 128 >> ? ? ? ? ? ? COLOR 153 205 255 >> ? ? ? ? ? END >> ? ? ? ? ?TEMPLATE "pointTemplate.html" >> ? ? ? END >> >> ? ? END >> END >> >> Thanks, >> Varun >> >> On Mon, May 4, 2009 at 3:30 PM, Varun saraf wrote: >>> Hi Steve, >>> >>> If I provide Mapserver with a point x,y in WGS84 projection (from >>> google maps) as a query, can mapserver give me the enclosing polygon >>> information (using point-in-polygon method or something else)? If yes, >>> how? I have already drawn the polygons on google map using tile mode. >>> Can you suggest me a book/doc that helps with querying mapserver? >>> >>> Thanks, >>> Varun >>> >>> On Sun, May 3, 2009 at 9:56 AM, Steve Lime wrote: >>>> Both examples show how to do this. You have to create a query using >>>> the coordinate from Google to access MapServer. My example uses the >>>> principle to query points but would work for polygons (which are actually >>>> easier). You could issue straight MapServer queries: >>>> >>>> >> http://.../cgi-bin/mapserv?mode=query&map=something.map&mapxy=google_x+google_y >> &qlayer=the_polygons >>>> >>>> or do a WFS query. Since you're already using straight MapServer the former >>>> would probably be easiest. >>>> >>>> Steve >>>> >>>>>>> Varun saraf 05/02/09 1:34 PM >>> >>>> Hi, >>>> >>>> Thanks a lot Jim and Steve. These are great examples but I am dividing >>>> each state of USA into about 1300 polygons and I need a way to find >>>> which polygon is selected by the user. I tried building Gpolygons >>>> using the polygon data that i have (after converting it into a GML >>>> file) but it makes Google damn slow to redraw the polygons on zoom in >>>> and zoom out. The tile mode in mapserver is much faster. >>>> >>>> Now, After I draw the polygon in tile mode using mapserver, Is there a >>>> way Mapserver can return to me the specific polygon info (say >>>> co-ordinates or any other data in the dbf file relating to that >>>> polygon) when I select it on google map? Goggle I believe can give me >>>> the exact co-ordinates of the point I clicked. Can mapserver use this >>>> point location to find which polygon was selected? >>>> >>>> Thanks, >>>> Varun >>>> >>>> 2009/5/2 Jim Strevinas : >>>>> A beautiful example that uses the Google Maps API is: >>>>> >>>>> http://www.dyasdesigns.com/geoxml/gmlusa.htm >>>>> >>>>> It makes use of an API plugin called geoxml that can load XML data which can >>>>> be produced by >>>>> a WFS server. In the source code, a static GML file is used but a google >>>>> search shows that it can >>>>> connect to a live WFS server using the URL. >>>>> >>>>>> Date: Sat, 2 May 2009 09:28:01 -0500 >>>>>> From: Steve.Lime at dnr.state.mn.us >>>>>> To: vsaraf.gmu at gmail.com >>>>>> Subject: Re: [mapserver-users] Re: Dynamic data loading using Google maps >>>>>> andMapserver >>>>>> CC: mapserver-users at lists.osgeo.org >>>>>> >>>>>> One way to do that is to construct MapServer queries based on the event >>>>>> and submit them using AJAX. This site does just that but with OpenLayers: >>>>>> >>>>>> http://www.dnr.state.mn.us/waters/csg/index_copy.html >>>>>> >>>>>> Click on the dots and a MapServer query is done behind the scenes. If >>>>>> successful >>>>>> a little window control is populated, if not, then nothing happens. Simple >>>>>> templates >>>>>> are used to present the information. >>>>>> >>>>>> Steve >>>>>> >>>>>> >>> Varun saraf 05/01/09 11:54 AM >>> >>>>>> Hi, >>>>>> >>>>>> I just had a look at ImageMap Template on "Output generation"...Can >>>>>> this be used on google maps to get information pooped up on a >>>>>> mouseover or mouseclick in tile mode? If not, what is it that I can do >>>>>> to get a similar result when using Mapserver with google maps? >>>>>> >>>>>> Regards, >>>>>> Varun >>>>>> >>>>>> On Thu, Apr 30, 2009 at 6:30 PM, Varun saraf wrote: >>>>>> > Hi, >>>>>> > >>>>>> > I have successfully drawn layers on of google maps as base using >>>>>> > mapserver. However, I am trying to figure out how to get data >>>>>> > dynamically displayed on the web page when a user clicks on a certain >>>>>> > area. For example, I have divided the entire state of virginia into >>>>>> > many sectors (using a polygon shp file). My requirement is that I want >>>>>> > data to come up on the map/web page when the user selects a particular >>>>>> > sector. I know google provides me with an event api for clicking on >>>>>> > the map but how do I pass this event to mapserver so it can send me >>>>>> > the label for that sector from the shape file? I need to be able to >>>>>> > recognize what sector the user has clicked. Is this possible using >>>>>> > just the mapserv cgi script and a map file or a MapScript has to be >>>>>> > written/used? Can someone point me in the right direction here? Even >>>>>> > providing the link for a previous discussion on this topic would help. >>>>>> > >>>>>> > Thanks, >>>>>> > Varun >>>>>> > >>>>>> _______________________________________________ >>>>>> mapserver-users mailing list >>>>>> mapserver-users at lists.osgeo.org >>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>> >>>>>> _______________________________________________ >>>>>> mapserver-users mailing list >>>>>> mapserver-users at lists.osgeo.org >>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>>> ________________________________ >>>>> Invite your mail contacts to join your friends list with Windows Live >>>>> Spaces. It's easy! Try it! >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Steve.Lime at dnr.state.mn.us Thu May 7 11:55:59 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 07 May 2009 13:55:59 -0500 Subject: [mapserver-users] Re: Dynamic data loading using Google maps andMapserver In-Reply-To: <6db14d250905071115s6e44aec2g625edda034c78e37@mail.gmail.com> References: <49FD5C4B0200008F0002392C@co5.dnr.state.mn.us> <6db14d250905041230t729af3d7ubb1c5a4d40d5aa7e@mail.gmail.com> <6db14d250905071027j7ff0aac8j30edeb7f8c9389e3@mail.gmail.com> <4A02D4F9.5157.008F.0@dnr.state.mn.us> <6db14d250905071115s6e44aec2g625edda034c78e37@mail.gmail.com> Message-ID: <4A02E86F.5157.008F.0@dnr.state.mn.us> Make sure with polygon data to explicitly set TOLERANCE 0 in the layer definition to make sure the point is in the polygon. Steve >>> On 5/7/2009 at 1:15 PM, in message <6db14d250905071115s6e44aec2g625edda034c78e37 at mail.gmail.com>, Varun saraf wrote: > yes my data is in lat, long. I discovered the inverse lat long in > mapxy just after sending this email and tried it. It works now but the > New problem is that the result is a little tweaked. I guess its a > problem with the projection. The tract number is not the current one > when I click somewhere on the border of a tract. The projection is not > that big a problem for me right now. I need to get this thing up and > running by EOD with google maps (The dynamic clicking on the map etc). > > Thanks a lot for the prompt reply. > > On Thu, May 7, 2009 at 1:32 PM, Steve Lime wrote: >> Something's backwards, you're mapxy is 38.87795, -77.098617 but your extents > are neg,pos,neg,pos? Also >> is your data in lat/lon? >> >> Steve >> >>>>> On 5/7/2009 at 12:27 PM, in message >> <6db14d250905071027j7ff0aac8j30edeb7f8c9389e3 at mail.gmail.com>, Varun saraf >> wrote: >>> Hi All, >>> >>> I am trying to integrate the census tracts on the google maps base. I >>> am using the tile mode and have successfully drawn the shape files >>> over the states of USA. I have some data in an access database that I >>> need to show to the user when he selects a particular census tract >>> (the shapes are polygons). However, since its a tile mode that I am >>> using on google maps, I am unable to understand how do I get the >>> information from mapserver as to which census tract was selected by >>> the user? Is there a way mapserver can send me the polygon selected >>> based on a co-ordinate lying inside the polygon? I know there is a way >>> by using queries and a querymap for doing this. The query that I am >>> using is as follows >>> >>> http://127.0.0.1:8123/cgi-bin/mapserv.exe?&map=C:/ms4w/apps/census/testMap.map& >>> mode=query&mapxy=38.87795 >>> -77.098617 >>> >>> I am providing a template in my map file that has the tract variables. >>> However, the result is always the same >>> >>> "msQueryByPoint(): Search returned no results. No matching record(s) >>> found." Is it that mapserver is trying to look for a point feature in >>> the location specifies by mapxy in the link above? How do I make >>> mapserver to look for a polygon enclosing this co-ordinate and return >>> me the result? I am attaching my mapfile also for reference. >>> >>> MAP >>> NAME testMap >>> STATUS ON >>> SIZE 600 300 >>> EXTENT -84 37 -75 40 >>> UNITS DD >>> SHAPEPATH "data" >>> IMAGECOLOR 255 255 255 >>> CONFIG "MS_ERRORFILE" "ms_error.txt" >>> >>> IMAGETYPE PNG >>> >>> WEB >>> IMAGEPATH "/ms4w/tmp/ms_tmp/" >>> IMAGEURL "/ms_tmp/" >>> END >>> >>> QUERYMAP >>> STATUS ON >>> STYLE HILITE >>> END >>> >>> LAYER >>> NAME "virginia" >>> STATUS DEFAULT >>> TYPE polygon >>> DATA tr51_d00 >>> DEBUG 5 >>> TOLERANCE 1000 >>> TOLERANCEUNITS pixels >>> >>> TEMPLATE "bodytemplate.html" >>> HEADER "imapheader.html" >>> FOOTER "imapfooter.html" >>> >>> CLASS >>> STYLE >>> OUTLINECOLOR 128 128 128 >>> COLOR 153 205 255 >>> END >>> TEMPLATE "pointTemplate.html" >>> END >>> >>> END >>> END >>> >>> Thanks, >>> Varun >>> >>> On Mon, May 4, 2009 at 3:30 PM, Varun saraf wrote: >>>> Hi Steve, >>>> >>>> If I provide Mapserver with a point x,y in WGS84 projection (from >>>> google maps) as a query, can mapserver give me the enclosing polygon >>>> information (using point-in-polygon method or something else)? If yes, >>>> how? I have already drawn the polygons on google map using tile mode. >>>> Can you suggest me a book/doc that helps with querying mapserver? >>>> >>>> Thanks, >>>> Varun >>>> >>>> On Sun, May 3, 2009 at 9:56 AM, Steve Lime wrote: >>>>> Both examples show how to do this. You have to create a query using >>>>> the coordinate from Google to access MapServer. My example uses the >>>>> principle to query points but would work for polygons (which are actually >>>>> easier). You could issue straight MapServer queries: >>>>> >>>>> >>> http://.../cgi-bin/mapserv?mode=query&map=something.map&mapxy=google_x+google_y >>> &qlayer=the_polygons >>>>> >>>>> or do a WFS query. Since you're already using straight MapServer the former >>>>> would probably be easiest. >>>>> >>>>> Steve >>>>> >>>>>>>> Varun saraf 05/02/09 1:34 PM >>> >>>>> Hi, >>>>> >>>>> Thanks a lot Jim and Steve. These are great examples but I am dividing >>>>> each state of USA into about 1300 polygons and I need a way to find >>>>> which polygon is selected by the user. I tried building Gpolygons >>>>> using the polygon data that i have (after converting it into a GML >>>>> file) but it makes Google damn slow to redraw the polygons on zoom in >>>>> and zoom out. The tile mode in mapserver is much faster. >>>>> >>>>> Now, After I draw the polygon in tile mode using mapserver, Is there a >>>>> way Mapserver can return to me the specific polygon info (say >>>>> co-ordinates or any other data in the dbf file relating to that >>>>> polygon) when I select it on google map? Goggle I believe can give me >>>>> the exact co-ordinates of the point I clicked. Can mapserver use this >>>>> point location to find which polygon was selected? >>>>> >>>>> Thanks, >>>>> Varun >>>>> >>>>> 2009/5/2 Jim Strevinas : >>>>>> A beautiful example that uses the Google Maps API is: >>>>>> >>>>>> http://www.dyasdesigns.com/geoxml/gmlusa.htm >>>>>> >>>>>> It makes use of an API plugin called geoxml that can load XML data which can >>>>>> be produced by >>>>>> a WFS server. In the source code, a static GML file is used but a google >>>>>> search shows that it can >>>>>> connect to a live WFS server using the URL. >>>>>> >>>>>>> Date: Sat, 2 May 2009 09:28:01 -0500 >>>>>>> From: Steve.Lime at dnr.state.mn.us >>>>>>> To: vsaraf.gmu at gmail.com >>>>>>> Subject: Re: [mapserver-users] Re: Dynamic data loading using Google maps >>>>>>> andMapserver >>>>>>> CC: mapserver-users at lists.osgeo.org >>>>>>> >>>>>>> One way to do that is to construct MapServer queries based on the event >>>>>>> and submit them using AJAX. This site does just that but with OpenLayers: >>>>>>> >>>>>>> http://www.dnr.state.mn.us/waters/csg/index_copy.html >>>>>>> >>>>>>> Click on the dots and a MapServer query is done behind the scenes. If >>>>>>> successful >>>>>>> a little window control is populated, if not, then nothing happens. Simple >>>>>>> templates >>>>>>> are used to present the information. >>>>>>> >>>>>>> Steve >>>>>>> >>>>>>> >>> Varun saraf 05/01/09 11:54 AM >>> >>>>>>> Hi, >>>>>>> >>>>>>> I just had a look at ImageMap Template on "Output generation"...Can >>>>>>> this be used on google maps to get information pooped up on a >>>>>>> mouseover or mouseclick in tile mode? If not, what is it that I can do >>>>>>> to get a similar result when using Mapserver with google maps? >>>>>>> >>>>>>> Regards, >>>>>>> Varun >>>>>>> >>>>>>> On Thu, Apr 30, 2009 at 6:30 PM, Varun saraf wrote: >>>>>>> > Hi, >>>>>>> > >>>>>>> > I have successfully drawn layers on of google maps as base using >>>>>>> > mapserver. However, I am trying to figure out how to get data >>>>>>> > dynamically displayed on the web page when a user clicks on a certain >>>>>>> > area. For example, I have divided the entire state of virginia into >>>>>>> > many sectors (using a polygon shp file). My requirement is that I want >>>>>>> > data to come up on the map/web page when the user selects a particular >>>>>>> > sector. I know google provides me with an event api for clicking on >>>>>>> > the map but how do I pass this event to mapserver so it can send me >>>>>>> > the label for that sector from the shape file? I need to be able to >>>>>>> > recognize what sector the user has clicked. Is this possible using >>>>>>> > just the mapserv cgi script and a map file or a MapScript has to be >>>>>>> > written/used? Can someone point me in the right direction here? Even >>>>>>> > providing the link for a previous discussion on this topic would help. >>>>>>> > >>>>>>> > Thanks, >>>>>>> > Varun >>>>>>> > >>>>>>> _______________________________________________ >>>>>>> mapserver-users mailing list >>>>>>> mapserver-users at lists.osgeo.org >>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>>> >>>>>>> _______________________________________________ >>>>>>> mapserver-users mailing list >>>>>>> mapserver-users at lists.osgeo.org >>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>> >>>>>> ________________________________ >>>>>> Invite your mail contacts to join your friends list with Windows Live >>>>>> Spaces. It's easy! Try it! >>>>>> _______________________________________________ >>>>>> mapserver-users mailing list >>>>>> mapserver-users at lists.osgeo.org >>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>> >>>>>> >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>>> >>>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> From gregor at hostgis.com Thu May 7 14:20:27 2009 From: gregor at hostgis.com (Gregor at HostGIS) Date: Thu, 07 May 2009 14:20:27 -0700 Subject: [mapserver-users] MapServer Dont Draw In-Reply-To: References: Message-ID: <4A03509B.9070708@hostgis.com> > Warning: dl() has been disabled for security reasons in > /home/orsep/public_html/test/pmapper-stable/incphp/globals.php > on line 51 That says it all: Your PHP installation does not allow you to load PHP modules, such as MapScript. So running a MapScript-based app, just isn't going to happen unless you ask your sysadmin to allow you to use dl() A long shot, but worth a try: Try commenting out the dl() line in globals.php:51 and see whether the app begins working. If so, it means that they pre-loaded MapScript for you and that you don't need to dl() it. If not, then you'll have to ask them very nicely to pre-load MapScript in the php.ini file, or get another web provider. (not to plug for ourselves, but we do map-friendly hosting; see signature) -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ From Bob.Basques at ci.stpaul.mn.us Thu May 7 15:23:42 2009 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Thu, 07 May 2009 17:23:42 -0500 Subject: [mapserver-users] Label alignment (not as desired) . . . Message-ID: <4A03191E.163B.00A8.0@ci.stpaul.mn.us> All, Ok, let's try this again, I redid the link. . . . should work now for everyone. I'm playing around with generating a map collar image by labeling some lines with MapServer. I get the labels looking about what I would like them to look like, but the alignment vertically ( and this applies to horizontal alignment as well ) is not playing nice. See this link: http://gis.ci.stpaul.mn.us/datasets/SHP/FED/USGS/USNG/mn_usng_lines_labels_2_public.map?mapext=503179.6728349806%20111379.8994326578%20508281.0020239575%20135621.41573867595&mapsize=70%20600&mode=map&MOOSETIME=1241653121858 ( http://gis.ci.stpaul.mn.us/datasets/SHP/FED/USGS/USNG/mn_usng_lines_labels_2_public.map?mapext=503179.6728349806%20111379.8994326578%20508281.0020239575%20135621.41573867595&mapsize=70%20600&mode=map&MOOSETIME=1241653121858 ) I'm thinking that the labels are moving back and forth horizontally because of the underlying line work, It's not strictly horizontal but curved slightly, and there may or may not be a vertice visible within a view. (Can a vertice be marked somehow?) So I think MapServer is using the longest straight segment within the view to center on for labeling. Question, how do I get these to line up vertically (and horizontally)? I know there was some recent justification work going on, but didn't follow it in detail. Thanks bobb Pertinent mapfile chunks: LAYER METADATA "ows_title" "layer_0" "gml_include_items" "all" END NAME 'usng' DATA '0000_00/MN_Line_Experiments/MN_USNG_Ramsey_Line_Northing_Beta' STATUS DEFAULT TYPE LINE LABELITEM 'NORTHING' CLASS LABEL TYPE TRUETYPE FONT bluehigh SIZE 10 COLOR 25 25 25 OUTLINECOLOR 255 255 254 ANGLE 0 OFFSET -15 -1 FORCE true END END END LAYER METADATA "ows_title" "layer_0" "gml_include_items" "all" END NAME 'usng' DATA '0000_00/MN_Line_Experiments/MN_USNG_Ramsey_Line_Northing_Beta' STATUS DEFAULT TYPE LINE LABELITEM 'NORTHING' CLASS LABEL TYPE TRUETYPE FONT bluehigh SIZE 15 COLOR 25 25 25 OUTLINECOLOR 255 255 254 ANGLE 0 FORCE true END END END LAYER METADATA "ows_title" "layer_0" "gml_include_items" "all" END NAME 'usng' DATA '0000_00/MN_Line_Experiments/MN_USNG_Ramsey_Line_Northing_Beta' STATUS DEFAULT TYPE LINE LABELITEM 'NORTHING' CLASS LABEL TYPE TRUETYPE FONT bluehigh SIZE 10 COLOR 25 25 25 OUTLINECOLOR 255 255 254 ANGLE 0 OFFSET 14 -1 FORCE true END END MAXSCALE 5000000 END -------------- next part -------------- An HTML attachment was scrubbed... URL: From gonzalo at sepp0.com.ar Thu May 7 16:45:02 2009 From: gonzalo at sepp0.com.ar (Gonzalo Lionel Rodriguez) Date: Thu, 7 May 2009 20:45:02 -0300 Subject: [mapserver-users] MapServer Dont Draw In-Reply-To: <4A03509B.9070708@hostgis.com> References: <4A03509B.9070708@hostgis.com> Message-ID: dl() its allow in the php.ini the extension=php_mapscript.so load ok and the mapserver is: mapserv -v MapServer version 5.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=MYGIS INPUT=SHAPEFILE if commenting the dl() line the strace result is: Fatal error: Call to undefined function ms_newMapObj() in /home/orsep/public_html/test/pmapper-stable/incphp/globals.php on line 60
\n", 167
Fatal error: Call to undefined function ms_newMapObj() in /home/orsep/public_html/test/pmapper-stable/incphp/globals.php on line 60
: >> Warning: ?dl() has been disabled for security reasons ?in >> /home/orsep/public_html/test/pmapper-stable/incphp/globals.php >> on line 51 > > That says it all: Your PHP installation does not allow you to load PHP > modules, such as MapScript. So running a MapScript-based app, just isn't > going to happen unless you ask your sysadmin to allow you to use dl() > > A long shot, but worth a try: Try commenting out the dl() line in > globals.php:51 and see whether the app begins working. > > If so, it means that they pre-loaded MapScript for you and that you don't > need to dl() it. > > If not, then you'll have to ask them very nicely to pre-load MapScript in > the php.ini file, or get another web provider. (not to plug for ourselves, > but we do map-friendly hosting; see signature) > > -- > HostGIS, Open Source solutions for the global GIS community > Greg Allensworth - SysAdmin, Programmer, GIS Person, Security > Network+ ? Server+ ? A+ ? Security+ > From gregor at hostgis.com Thu May 7 18:34:31 2009 From: gregor at hostgis.com (Gregor at HostGIS) Date: Thu, 07 May 2009 18:34:31 -0700 Subject: [mapserver-users] MapServer Dont Draw In-Reply-To: References: <4A03509B.9070708@hostgis.com> Message-ID: <4A038C27.2050400@hostgis.com> > dl() its allow in the php.ini the extension=php_mapscript.so load ok I'd have to disagree. If you call dl() you're told that you're not allowed to use dl() That means that dl() is not allowed in the php.ini If you leave it out, mapscript is obviously not loaded via an extension= line in php.ini since ms_newMapObj() is undefined. And at any rate you don't want to do both. So let's start over: Do you have command-line access? What happens if you run this command? echo ''| php If you get "Module 'MapScript' already loaded" then MapScript really is loading via php.ini In that case, remove the dl() line since it's useless to load an already-loaded module. If not, then php_mapscript.so is definitely NOT being loaded via php.ini and you WILL want to use dl() In this case, double check your php.ini for the enable_dl keyword, and restart Apache if you haven't done so already. -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ From boline at gmail.com Thu May 7 19:16:41 2009 From: boline at gmail.com (cboline) Date: Thu, 7 May 2009 19:16:41 -0700 (PDT) Subject: [mapserver-users] Compiling Mapserver/Mapscript on Ubuntu Message-ID: <1241749001639-2843196.post@n2.nabble.com> When compiling mapscript on ubuntu I'm unable to run the python mapscript tests. I get the following error: File "runalltests.py", line 59, in m = __import__(test) File "/usr/src/mapserver-5.4.0/mapscript/python/tests/cases/symboltest.py", line 40, in from testing import mapscript, MapTestCase File "/usr/src/mapserver-5.4.0/mapscript/python/tests/cases/testing.py", line 61, in import mapscript File "../../build/lib.linux-x86_64-2.5/mapscript.py", line 7, in import _mapscript ImportError: ../../build/lib.linux-x86_64-2.5/_mapscript.so: undefined symbol: _ZN3agg12g_sqrt_tableE I'm running Ubuntu 8.10. Compiling with gcc 4.3.2. I've seen elsewhere that this is an issue caused by using the non PIC version of AGG. I've tried recompiling AGG with -fPIC. I've also modified the makefiles in mapserver to user -lagg_pic and -laggfontfreetype_pic. Neither of these help. Any advice?? Please? -- View this message in context: http://n2.nabble.com/Compiling-Mapserver-Mapscript-on-Ubuntu-tp2843196p2843196.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ben at remoteinformation.com.au Thu May 7 20:12:52 2009 From: ben at remoteinformation.com.au (Ben Madin) Date: Fri, 8 May 2009 11:12:52 +0800 Subject: [mapserver-users] Speed of PostGIS vs Shapefiles in MapServer 5.4 Message-ID: G'day all, I see a rewrite of PostGIS handling was a major achievement in the 5.4 Release. I have a number of polygon layers that I use on a fairly static basis (political boundaries etc) but I vaccilate between using them from: PostGIS (for convenience - I use them for analysis as well so they are in the database anyway, easy to backup and keep consistent between servers) or from Shapefiles (exported because they were faster to render). Most of them are not overly complex or large, is there still significant benefit to using them from shapefiles, or is it becoming a more closely run race between sources. 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 gregor at hostgis.com Thu May 7 20:18:49 2009 From: gregor at hostgis.com (Gregor at HostGIS) Date: Thu, 07 May 2009 20:18:49 -0700 Subject: [mapserver-users] Speed of PostGIS vs Shapefiles in MapServer 5.4 In-Reply-To: References: Message-ID: <4A03A499.70005@hostgis.com> > Most of them are not overly complex or large, is there still significant > benefit to using them from shapefiles, or is it becoming a more closely > run race between sources. It's impossible to say for sure, based on the nuances of your use case. But in my experience PostGIS is at least as fast as shapefiles. It supports indexing and smarter data-seeking than a flat file can, and lays the blocks on disk and caches them in memory better than a flat file can. Of course, when it comes to updates and deletions and other such accesses, writing a Python-OGR program to update a shapefile is far less pleasant than using any ol' DBI you like too! -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ From Steve.Lime at dnr.state.mn.us Thu May 7 21:29:03 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 07 May 2009 23:29:03 -0500 Subject: [mapserver-users] Speed of PostGIS vs Shapefiles in MapServer 5.4 Message-ID: <4A036EBF0200008F00023DB0@co5.dnr.state.mn.us> The PostGIS rewrite was more about maintainability than speed. In fact, the new code is a touch slower although probably not significantly so. If you're really trying to crank as much performance out as possible then in many cases shapefiles will win. Convenience should not be overlooked though so why bother with multiple versions of the same data if you can live with a few milleseconds slower. Steve >>> Ben Madin 05/07/09 10:14 PM >>> G'day all, I see a rewrite of PostGIS handling was a major achievement in the 5.4 Release. I have a number of polygon layers that I use on a fairly static basis (political boundaries etc) but I vaccilate between using them from: PostGIS (for convenience - I use them for analysis as well so they are in the database anyway, easy to backup and keep consistent between servers) or from Shapefiles (exported because they were faster to render). Most of them are not overly complex or large, is there still significant benefit to using them from shapefiles, or is it becoming a more closely run race between sources. 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... _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From rahul.pachaghare at tcs.com Thu May 7 22:01:53 2009 From: rahul.pachaghare at tcs.com (rahulp) Date: Thu, 7 May 2009 22:01:53 -0700 (PDT) Subject: [mapserver-users] mapserver is giving blank map Message-ID: <1241758913998-2843614.post@n2.nabble.com> Hi everyone, I am an ultra newbie to mapserver.I am following the tutorial: http://demo.mapserver.org/tutorial/sections.html In the first example itself I am getting a blank map.Only the background is appearing. I am using the same mapfile from the tutorail i.e. example1-1.map with the only change in the path of the data. Please suggest a solution. -- View this message in context: http://n2.nabble.com/mapserver-is-giving-blank-map-tp2843614p2843614.html Sent from the Mapserver - User mailing list archive at Nabble.com. From temiz at deprem.gov.tr Fri May 8 00:08:34 2009 From: temiz at deprem.gov.tr (Ahmet Temiz) Date: Fri, 8 May 2009 10:08:34 +0300 Subject: [mapserver-users] problem in reference map In-Reply-To: <4A02D387.5157.008F.0@dnr.state.mn.us> References: <20090507115038.M79754@deprem.gov.tr> <4A02D387.5157.008F.0@dnr.state.mn.us> Message-ID: <20090508070209.M53227@deprem.gov.tr> On Thu, 07 May 2009 12:26:47 -0500, Steve Lime wrote thank you reference map extent is same as main map extent. I checked size of reference map. But the problem still exists. > Most likely your reference map size or extent are incorrect. That's > where I'd start. > > Steve > > >>> On 5/7/2009 at 6:54 AM, in message <20090507115038.M79754 at deprem.gov.tr>, > "Ahmet Temiz" wrote: > > hello > > > > the red box in my reference map isn't settled on my zoomed main map. > > > > what am I likely to miss ? > > > > regards > > > > Ahmet Temiz > > > > -- > > Open WebMail Project (http://openwebmail.org) > > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. -- Open WebMail Project (http://openwebmail.org) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From vtammineni at roulacglobal.com Fri May 8 00:16:09 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Fri, 8 May 2009 12:46:09 +0530 Subject: [mapserver-users] problem in reference map In-Reply-To: <20090508070209.M53227@deprem.gov.tr> References: <20090507115038.M79754@deprem.gov.tr> <4A02D387.5157.008F.0@dnr.state.mn.us> <20090508070209.M53227@deprem.gov.tr> Message-ID: <001101c9cfac$dea687b0$9bf39710$@com> HI, Which language you are using ...if it is C# , then I can help you. Thanks Venkat -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ahmet Temiz Sent: Friday, May 08, 2009 12:39 PM To: Steve Lime; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] problem in reference map On Thu, 07 May 2009 12:26:47 -0500, Steve Lime wrote thank you reference map extent is same as main map extent. I checked size of reference map. But the problem still exists. > Most likely your reference map size or extent are incorrect. That's > where I'd start. > > Steve > > >>> On 5/7/2009 at 6:54 AM, in message <20090507115038.M79754 at deprem.gov.tr>, > "Ahmet Temiz" wrote: > > hello > > > > the red box in my reference map isn't settled on my zoomed main map. > > > > what am I likely to miss ? > > > > regards > > > > Ahmet Temiz > > > > -- > > Open WebMail Project (http://openwebmail.org) > > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. -- Open WebMail Project (http://openwebmail.org) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From edgardo.ghibaudo at provincia.biella.it Fri May 8 00:57:00 2009 From: edgardo.ghibaudo at provincia.biella.it (Edgardo Ghibaudo) Date: Fri, 08 May 2009 09:57:00 +0200 Subject: R: [mapserver-users] Apache crash using Mapserver with big mapfile(about 2500 lines) In-Reply-To: <4A02D40B.5157.008F.0@dnr.state.mn.us> Message-ID: <92faf2b9.1c9cfb2.14e4e235.6727@provincia.biella.it> Thank you Steve. Launching shp2img I obtain the following error: ./shp2img -m /opt/fgs/apps/mapservergeo/map/at7_2_3.map *** glibc detected *** malloc(): memory corruption: 0x08467628 *** Aborted Edgardo -----Messaggio originale----- Da: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] Inviato: gioved? 7 maggio 2009 19.29 A: 'mapserver-users at lists.osgeo.org'; Edgardo Ghibaudo Oggetto: Re: [mapserver-users] Apache crash using Mapserver with big mapfile(about 2500 lines) Have you tried running through shp2img independently of MapLab to see if it's a problem with MapServer or MapLab specifically? Steve >>> On 5/7/2009 at 4:31 AM, in message , Edgardo Ghibaudo wrote: > Dear users, > > I'm using the following environment: > Ubuntu 6.06 (libc6 2.3.6) > Apache 2.2.9 > Php 4.4.2 > Mapserver 4.8.2 > Maplab 2.2.1 (last available version) > > Using a project inside Maplab/gmapfactory with a big mapfile (about 2500 > lines) the httpd process of Apache crash. > Enclosed you can find the details of the crash (Backtrace). > Apache compilation details: > ./configure --prefix=/usr/local/apache229 --enable-info --enable-mime-magic > --enable-rewrite --enable-so --enable-speling --enable-unique_id --enable-usertrack > --with-mpm=prefork > PHP compilation details: > ./configure --enable-kbmmw --with-regex=system --with-freetype --with-dbase > --prefix=/usr/local/apache229/php --with-mysql=/usr/local/mysql4115 > --with-pgsql=shared,/usr/local/pgsql8014 > --with-pdflib=shared,/usr/local/pdflite703 > --with-config-file-path=/usr/local/apache229/php --with-png --with-jpeg > --with-jpeg-dir=/usr/local --with-tiff --with-gd --with-zlib --enable-track-vars > --enable-sockets --enable-wddx=shared --with-xmlrpc=shared --enable-calendar > --with-iconv=/usr/local/libiconv112 --with-iconv-dir=/usr/local/libiconv112 > --with-apxs2=/usr/local/apache229/bin/apxs --enable-cgi > Mapserver compilation details: > ./configure --enable-debug --with-proj=/usr/local > --with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config > --with-gd --with-httpd=/usr/local/apache229/bin/httpd > --with-php=/usr/local/apache229/php > --with-php-regex-dir=/usr/local/apache229/php/regex --enable-runpath > --enable-force-freetype1 --with-wmsclient --with-freetype --with-png=/usr/local > --with-jpeg=/usr/local --with-libiconv=/usr/local --with-wfs --with-wfsclient > --with-postgis=/usr/local/pgsql8014/bin/pg_config > > I tried to upgrade the OS version (Ubuntu 7.04 - libc6 2.5.0), but the > result doesn't change. > I tried also to compile different SW versions (Apache 1.3.41, Php 4.4.9, > Mapserver 4.8.3 & 4.8.4), but the result doesn't change > > Many thanks, > Edgardo > > *** glibc detected *** /usr/local/apache229/bin/httpd: free(): invalid next > size (fast): 0x087bdf40 *** > ======= Backtrace: ========= > /lib/tls/i686/cmov/libc.so.6[0xb7d7b7cd] > /lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7d7ee30] > /usr/local/apache229/php/extensions/php_mapscript_44.so(msFreeShape+0x35)[0x > b7814de5] > /usr/local/apache229/php/extensions/php_mapscript_44.so(msDrawVectorLayer+0x > 336)[0xb7828ca6] > /usr/local/apache229/php/extensions/php_mapscript_44.so(msDrawLayer+0xaa)[0x > b7828faa] > /usr/local/apache229/php/extensions/php_mapscript_44.so(msDrawMap+0x5d3)[0xb > 7829f33] > /usr/local/apache229/php/extensions/php_mapscript_44.so(mapObj_draw+0x1d)[0x > b77e34dd] > /usr/local/apache229/php/extensions/php_mapscript_44.so(php3_ms_map_draw+0x6 > c)[0xb77db65c] > /usr/local/apache229/modules/libphp4.so(execute+0x6b43)[0xb7c7d943] > /usr/local/apache229/modules/libphp4.so(zend_execute_scripts+0xde)[0xb7c674f > e] > /usr/local/apache229/modules/libphp4.so(php_execute_script+0x316)[0xb7c3b006 > ] > /usr/local/apache229/modules/libphp4.so[0xb7c8171b] > /usr/local/apache229/bin/httpd(ap_run_handler+0x59)[0x807b1b9] > /usr/local/apache229/bin/httpd(ap_invoke_handler+0x67)[0x807e447] > /usr/local/apache229/bin/httpd(ap_process_request+0x178)[0x8098af8] > /usr/local/apache229/bin/httpd[0x8095d9b] > /usr/local/apache229/bin/httpd(ap_run_process_connection+0x59)[0x8082539] > /usr/local/apache229/bin/httpd[0x80b68f5] > /usr/local/apache229/bin/httpd[0x80b6bb7] > /usr/local/apache229/bin/httpd(ap_mpm_run+0x880)[0x80b7510] > /usr/local/apache229/bin/httpd(main+0x865)[0x8068ae5] > /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc)[0xb7d29ebc] > /usr/local/apache229/bin/httpd(apr_os_proc_mutex_put+0x5d)[0x8067ca1] > > > > --http://www.provincia.biella.it------------------------------------------------------ > > Vuoi rimanere sempre aggiornato sulle nostre attivita'? > Visita la pagina dei feed RSS sul nostro sito ed iscriviti alla sezione di > interesse. > > --Avviso------------------------------------------------------------------------------ > Questo messaggio e i suoi allegati sono riservati esclusivamente alle > persone in > indirizzo e possono contenere informazioni confidenziali. Se questo > messaggio vi e' > pervenuto per errore, vi informiamo che ogni suo uso e'proibito. > In questo caso rispedite immediatamente il messaggio al mittente e > cancellatelo. > Per ogni chiarimento contattateci scrivendo a ced at provincia.biella.it. > Grazie -Il Webmaster. > --Warning----------------------------------------------------------------------------- > This message and its attachments are addressed solely to the persons above > and may > contain confidential information. If you have received the message in error, > be > informed that any use of the content hereof is prohibited. > Please return it immediately to the sender and delete the message. Should > you have > any questions, please contact us by replying to ced at provincia.biella.it. > The Webmaster. > -------------------------------------------------------------------------------------- --http://www.provincia.biella.it------------------------------------------------------ Vuoi rimanere sempre aggiornato sulle nostre attivita'? Visita la pagina dei feed RSS sul nostro sito ed iscriviti alla sezione di interesse. --Avviso------------------------------------------------------------------------------ Questo messaggio e i suoi allegati sono riservati esclusivamente alle persone in indirizzo e possono contenere informazioni confidenziali. Se questo messaggio vi e' pervenuto per errore, vi informiamo che ogni suo uso e'proibito. In questo caso rispedite immediatamente il messaggio al mittente e cancellatelo. Per ogni chiarimento contattateci scrivendo a ced at provincia.biella.it. Grazie -Il Webmaster. --Warning----------------------------------------------------------------------------- This message and its attachments are addressed solely to the persons above and may contain confidential information. If you have received the message in error, be informed that any use of the content hereof is prohibited. Please return it immediately to the sender and delete the message. Should you have any questions, please contact us by replying to ced at provincia.biella.it. The Webmaster. -------------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From edgardo.ghibaudo at provincia.biella.it Fri May 8 01:53:00 2009 From: edgardo.ghibaudo at provincia.biella.it (Edgardo Ghibaudo) Date: Fri, 08 May 2009 10:53:00 +0200 Subject: I: [mapserver-users] Apache crash using Mapserver with big mapfile(about 2500 lines) Message-ID: <86ad9d15.1c9cfba.1518ff46.264@provincia.biella.it> Steve, I compiled mapserver with -enable-debug option. Then I launched shp2img in the following way: ./shp2img -all_debug 5 -m /opt/fgs/apps/mapservergeo/map/at7_2_3.map [Fri May 8 10:45:49 2009].96896 msDrawRasterLayerLow(Sfumo): entering. [Fri May 8 10:45:49 2009].105123 msDrawGDAL(): src=704,474,913,1009, dst=0,0,470,520 [Fri May 8 10:45:49 2009].105479 msDrawGDAL(): red,green,blue,alpha bands = 1,2,3,0 [Fri May 8 10:45:49 2009].277761 msDrawMap(): Layer 0 (Sfumo), 0.181s [Fri May 8 10:45:49 2009].288732 msDrawMap(): Layer 7 (Edificato), 0.011s *** glibc detected *** free(): invalid next size (fast): 0x0846d138 *** Aborted Edgardo -----Messaggio originale----- Da: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] Inviato: gioved? 7 maggio 2009 19.29 A: 'mapserver-users at lists.osgeo.org'; Edgardo Ghibaudo Oggetto: Re: [mapserver-users] Apache crash using Mapserver with big mapfile(about 2500 lines) Have you tried running through shp2img independently of MapLab to see if it's a problem with MapServer or MapLab specifically? Steve --http://www.provincia.biella.it------------------------------------------------------ Vuoi rimanere sempre aggiornato sulle nostre attivita'? Visita la pagina dei feed RSS sul nostro sito ed iscriviti alla sezione di interesse. --Avviso------------------------------------------------------------------------------ Questo messaggio e i suoi allegati sono riservati esclusivamente alle persone in indirizzo e possono contenere informazioni confidenziali. Se questo messaggio vi e' pervenuto per errore, vi informiamo che ogni suo uso e'proibito. In questo caso rispedite immediatamente il messaggio al mittente e cancellatelo. Per ogni chiarimento contattateci scrivendo a ced at provincia.biella.it. Grazie -Il Webmaster. --Warning----------------------------------------------------------------------------- This message and its attachments are addressed solely to the persons above and may contain confidential information. If you have received the message in error, be informed that any use of the content hereof is prohibited. Please return it immediately to the sender and delete the message. Should you have any questions, please contact us by replying to ced at provincia.biella.it. The Webmaster. -------------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From edgardo.ghibaudo at provincia.biella.it Thu May 7 00:48:00 2009 From: edgardo.ghibaudo at provincia.biella.it (Edgardo Ghibaudo) Date: Thu, 07 May 2009 09:48:00 +0200 Subject: [mapserver-users] Apache crash using Mapserver with big mapfile (about 2500 lines) Message-ID: <4876c854.1c9cee8.fb73018.6ca2@provincia.biella.it> Dear users, I?m using the following environment: Ubuntu 6.06 (libc6 2.3.6) Apache 2.2.9 Php 4.4.2 Mapserver 4.8.2 Maplab 2.2.1 (last available version) Using a project inside Maplab/gmapfactory with a big mapfile (about 2500 lines) the httpd process of Apache crash. Enclosed you can find the details of the crash (Backtrace/Memory map). Apache compilation details: ./configure --prefix=/usr/local/apache229 --enable-info --enable-mime-magic --enable-rewrite --enable-so --enable-speling --enable-unique_id --enable-usertrack --with-mpm=prefork PHP compilation details: ./configure --enable-kbmmw --with-regex=system --with-freetype --with-dbase --prefix=/usr/local/apache229/php --with-mysql=/usr/local/mysql4115 --with-pgsql=shared,/usr/local/pgsql8014 --with-pdflib=shared,/usr/local/pdflite703 --with-config-file-path=/usr/local/apache229/php --with-png --with-jpeg --with-jpeg-dir=/usr/local --with-tiff --with-gd --with-zlib --enable-track-vars --enable-sockets --enable-wddx=shared --with-xmlrpc=shared --enable-calendar --with-iconv=/usr/local/libiconv112 --with-iconv-dir=/usr/local/libiconv112 --with-apxs2=/usr/local/apache229/bin/apxs --enable-cgi Mapserver compilation details: ./configure --enable-debug --with-proj=/usr/local --with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config --with-gd --with-httpd=/usr/local/apache229/bin/httpd --with-php=/usr/local/apache229/php --with-php-regex-dir=/usr/local/apache229/php/regex --enable-runpath --enable-force-freetype1 --with-wmsclient --with-freetype --with-png=/usr/local --with-jpeg=/usr/local --with-libiconv=/usr/local --with-wfs --with-wfsclient --with-postgis=/usr/local/pgsql8014/bin/pg_config I tried to upgrade the OS version (Ubuntu 7.04 ? libc6 2.5.0), but the result doesn?t change. I tried also to compile different SW versions (Apache 1.3.41, Php 4.4.9, Mapserver 4.8.3 & 4.8.4), but the result doesn?t change Many thanks, Edgardo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ *** glibc detected *** /usr/local/apache229/bin/httpd: free(): invalid next size (fast): 0x087bdf40 *** ======= Backtrace: ========= /lib/tls/i686/cmov/libc.so.6[0xb7d7b7cd] /lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7d7ee30] /usr/local/apache229/php/extensions/php_mapscript_44.so(msFreeShape+0x35)[0xb7814de5] /usr/local/apache229/php/extensions/php_mapscript_44.so(msDrawVectorLayer+0x336)[0xb7828ca6] /usr/local/apache229/php/extensions/php_mapscript_44.so(msDrawLayer+0xaa)[0xb7828faa] /usr/local/apache229/php/extensions/php_mapscript_44.so(msDrawMap+0x5d3)[0xb7829f33] /usr/local/apache229/php/extensions/php_mapscript_44.so(mapObj_draw+0x1d)[0xb77e34dd] /usr/local/apache229/php/extensions/php_mapscript_44.so(php3_ms_map_draw+0x6c)[0xb77db65c] /usr/local/apache229/modules/libphp4.so(execute+0x6b43)[0xb7c7d943] /usr/local/apache229/modules/libphp4.so(zend_execute_scripts+0xde)[0xb7c674fe] /usr/local/apache229/modules/libphp4.so(php_execute_script+0x316)[0xb7c3b006] /usr/local/apache229/modules/libphp4.so[0xb7c8171b] /usr/local/apache229/bin/httpd(ap_run_handler+0x59)[0x807b1b9] /usr/local/apache229/bin/httpd(ap_invoke_handler+0x67)[0x807e447] /usr/local/apache229/bin/httpd(ap_process_request+0x178)[0x8098af8] /usr/local/apache229/bin/httpd[0x8095d9b] /usr/local/apache229/bin/httpd(ap_run_process_connection+0x59)[0x8082539] /usr/local/apache229/bin/httpd[0x80b68f5] /usr/local/apache229/bin/httpd[0x80b6bb7] /usr/local/apache229/bin/httpd(ap_mpm_run+0x880)[0x80b7510] /usr/local/apache229/bin/httpd(main+0x865)[0x8068ae5] /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc)[0xb7d29ebc] /usr/local/apache229/bin/httpd(apr_os_proc_mutex_put+0x5d)[0x8067ca1] ======= Memory map: ======== 08048000-080d6000 r-xp 00000000 08:02 3574122 /usr/local/apache229/bin/httpd 080d6000-080d9000 rwxp 0008e000 08:02 3574122 /usr/local/apache229/bin/httpd 080d9000-08879000 rwxp 080d9000 00:00 0 [heap] b4697000-b4718000 rwxp b4697000 00:00 0 b4718000-b4719000 ---p b4718000 00:00 0 b4719000-b4f19000 rwxp b4719000 00:00 0 b4f19000-b4f1a000 ---p b4f19000 00:00 0 b4f1a000-b571a000 rwxp b4f1a000 00:00 0 b571a000-b571b000 ---p b571a000 00:00 0 b571b000-b5f1b000 rwxp b571b000 00:00 0 b5f1b000-b5f1c000 ---p b5f1b000 00:00 0 b5f1c000-b6add000 rwxp b5f1c000 00:00 0 b6add000-b6b1e000 rwxp b6b1e000 00:00 0 b6b30000-b6b3f000 rwxp b6b30000 00:00 0 b6b4b000-b6b6a000 r-xp 00000000 08:02 3558881 /usr/local/lib/libNCSUtil.so.0.0.0 b6b6a000-b6b6c000 rwxp 0001e000 08:02 3558881 /usr/local/lib/libNCSUtil.so.0.0.0 b6b6c000-b6b6d000 rwxp b6b6c000 00:00 0 b6b6d000-b6b82000 r-xp 00000000 08:02 3558886 /usr/local/lib/libNCSCnet.so.0.0.0 b6b82000-b6b83000 rwxp 00015000 08:02 3558886 /usr/local/lib/libNCSCnet.so.0.0.0 b6b83000-b6ca4000 r-xp 00000000 08:02 3558876 /usr/local/lib/libNCSEcw.so.0.0.0 b6ca4000-b6cac000 rwxp 00121000 08:02 3558876 /usr/local/lib/libNCSEcw.so.0.0.0 b6cac000-b6cb9000 rwxp b6cac000 00:00 0 b6cb9000-b6cd7000 r-xp 00000000 08:02 3544617 /usr/lib/libexpat.so.1.0.0 b6cd7000-b6cd9000 rwxp 0001d000 08:02 3544617 /usr/lib/libexpat.so.1.0.0 b6cd9000-b6e16000 r-xp 00000000 08:02 3558864 /usr/local/lib/libgeos-3.0.0.so b6e16000-b6e1b000 rwxp 0013d000 08:02 3558864 /usr/local/lib/libgeos-3.0.0.so b6e1b000-b6e2b000 r-xp 00000000 08:02 3558867 /usr/local/lib/libgeos_c.so.1.4.1 b6e2b000-b6e2c000 rwxp 0000f000 08:02 3558867 /usr/local/lib/libgeos_c.so.1.4.1 b6e2c000-b6e37000 r-xp 00000000 08:02 3096590 /lib/libgcc_s.so.1 b6e37000-b6e38000 rwxp 0000a000 08:02 3096590 /lib/libgcc_s.so.1 b6e38000-b6f17000 r-xp 00000000 08:02 3541506 /usr/lib/libstdc++.so.6.0.8 b6f17000-b6f1a000 r-xp 000de000 08:02 3541506 /usr/lib/libstdc++.so.6.0.8 b6f1a000-b6f1c000 rwxp 000e1000 08:02 3541506 /usr/lib/libstdc++.so.6.0.8 b6f1c000-b6f22000 rwxp b6f1c000 00:00 0 b6f22000-b6f3f000 r-xp 00000000 08:02 3544663 /usr/lib/libgd.so.2.0.34 b6f3f000-b6f5f000 rwxp 0001c000 08:02 3544663 /usr/lib/libgd.so.2.0.34 b6f5f000-b6f73000 rwxp b6f5f000 00:00 0 b6f73000-b6fa4000 r-xp 00000000 08:02 3558847 /usr/local/lib/libproj.so.0.5.4 b6fa4000-b6fa6000 rwxp 00030000 08:02 3558847 /usr/local/lib/libproj.so.0.5.4 b6fa6000-b7441000 r-xp 00000000 08:02 3559023 /usr/local/lib/libgdal.so.1.12.2 b7441000-b7496000 rwxp 0049a000 08:02 3559023 /usr/local/lib/libgdal.so.1.12.2 b7496000-b7498000 rwxp b7496000 00:00 0 b7498000-b7500000 r-xp 00000000 08:02 3544629 /usr/lib/libfreetype.so.6.3.10 b7500000-b7503000 rwxp 00068000 08:02 3544629 /usr/lib/libfreetype.so.6.3.10 b7503000-b751b000 r-xp 00000000 08:02 3638511 /usr/local/pgsql8014/lib/libpq.so.4.0 b751b000-b751c000 rwxp 00018000 08:02 3638511 /usr/local/pgsql8014/lib/libpq.so.4.0 b751c000-b7646000 r-xp 00000000 08:02 3559091 /usr/lib/i686/cmov/libcrypto.so.0.9.8 b7646000-b765a000 rwxp 00129000 08:02 3559091 /usr/lib/i686/cmov/libcrypto.so.0.9.8 b765a000-b765e000 rwxp b765a000 00:00 0 b765e000-b769a000 r-xp 00000000 08:02 3559092 /usr/lib/i686/cmov/libssl.so.0.9.8 b769a000-b769e000 rwxp 0003b000 08:02 3559092 /usr/lib/i686/cmov/libssl.so.0.9.8 b769e000-b76cd000 r-xp 00000000 08:02 3544755 /usr/lib/libidn.so.11.5.19 b76cd000-b76ce000 rwxp 0002f000 08:02 3544755 /usr/lib/libidn.so.11.5.19 b76ce000-b76d1000 r-xp 00000000 08:02 3544765 /usr/lib/libkrb5support.so.0.0 b76d1000-b76d2000 rwxp 00003000 08:02 3544765 /usr/lib/libkrb5support.so.0.0 b76d2000-b76f6000 r-xp 00000000 08:02 3544762 /usr/lib/libk5crypto.so.3.0 b76f6000-b76f7000 rwxp 00024000 08:02 3544762 /usr/lib/libk5crypto.so.3.0 b76f7000-b7772000 r-xp 00000000 08:02 3544764 /usr/lib/libkrb5.so.3.2 b7772000-b7774000 rwxp 0007b000 08:02 3544764 /usr/lib/libkrb5.so.3.2 b7774000-b77a8000 r-xp 00000000 08:02 3544758 /usr/lib/libcurl.so.3.0.0 b77a8000-b77a9000 rwxp 00034000 08:02 3544758 /usr/lib/libcurl.so.3.0.0 b77a9000-b789f000 r-xp 00000000 08:02 3639336 /usr/local/apache229/php/extensions/php_mapscript.so b789f000-b78a4000 rwxp 000f6000 08:02 3639336 /usr/local/apache229/php/extensions/php_mapscript.so b78a4000-b78a6000 rwxp b78a4000 00:00 0 b78a6000-b78af000 rwxp b78a6000 00:00 0 b78af000-b78b1000 r-xp 00000000 08:02 3100952 /lib/libcom_err.so.2.1 b78b1000-b78b2000 rwxp 00001000 08:02 3100952 /lib/libcom_err.so.2.1 b78b2000-b78cd000 r-xp 00000000 08:02 3542145 /usr/lib/libgssapi_krb5.so.2.2 b78cd000-b78ce000 rwxp 0001b000 08:02 3542145 /usr/lib/libgssapi_krb5.so.2.2 b78cf000-b78d2000 rwxp b78cf000 00:00 0 b78d2000-b78e2000 rwxs 00000000 00:08 351751 /dev/zero (deleted) b78e2000-b78e9000 r-xs 00000000 08:02 3541006 /usr/lib/gconv/gconv-modules.cache b78e9000-b7924000 r-xp 00000000 08:02 3573704 /usr/lib/locale/it_IT.utf8/LC_CTYPE b7924000-b792d000 r-xp 00000000 08:02 3096738 /lib/tls/i686/cmov/libnss_files-2.5.so b792d000-b792f000 rwxp 00008000 08:02 3096738 /lib/tls/i686/cmov/libnss_files-2.5.so b792f000-b7937000 r-xp 00000000 08:02 3096741 /lib/tls/i686/cmov/libnss_nis-2.5.so b7937000-b7939000 rwxp 00007000 08:02 3096741 /lib/tls/i686/cmov/libnss_nis-2.5.so b7939000-b7940000 r-xp 00000000 08:02 3096736 /lib/tls/i686/cmov/libnss_compat-2.5.so b7940000-b7942000 rwxp 00006000 08:02 3096736 /lib/tls/i686/cmov/libnss_compat-2.5.so b7942000-b7955000 r-xp 00000000 08:02 3096735 /lib/tls/i686/cmov/libnsl-2.5.so b7955000-b7957000 rwxp 00012000 08:02 3096735 /lib/tls/i686/cmov/libnsl-2.5.so b7957000-b7959000 rwxp b7957000 00:00 0 b7959000-b7968000 r-xp 00000000 08:02 3096747 /lib/tls/i686/cmov/libresolv-2.5.so b7968000-b796a000 rwxp 0000f000 08:02 3096747 /lib/tls/i686/cmov/libresolv-2.5.so b796a000-b796c000 rwxp b796a000 00:00 0 b796c000-b798a000 r-xp 00000000 08:02 3558823 /usr/local/lib/libjpeg.so.62.0.0 b798a000-b798b000 rwxp 0001d000 08:02 3558823 /usr/local/lib/libjpeg.so.62.0.0 b798b000-b799e000 r-xp 00000000 08:02 3541002 /usr/lib/libz.so.1.2.3 b799e000-b799f000 rwxp 00012000 08:02 3541002 /usr/lib/libz.so.1.2.3 b799f000-b79c1000 r-xp 00000000 08:02 3558834 /usr/local/lib/libpng12.so.0.29.0 b79c1000-b79c2000 rwxp 00022000 08:02 3558834 /usr/local/lib/libpng12.so.0.29.0 b79c2000-b7a9f000 r-xp 00000000 08:02 3637348 /usr/local/libiconv112/lib/libiconv.so.2.4.0 b7a9f000-b7aa0000 rwxp 000dd000 08:02 3637348 /usr/local/libiconv112/lib/libiconv.so.2.4.0 b7aa0000-b7ad9000 r-xp 00000000 08:02 3606021 /usr/local/mysql4115/lib/mysql/libmysqlclient.so.14.0.0 b7ad9000-b7afc000 rwxp 00039000 08:02 3606021 /usr/local/mysql4115/lib/mysql/libmysqlclient.so.14.0.0 b7afc000-b7afe000 rwxp b7afc000 00:00 0 b7afe000-b7cba000 r-xp 00000000 08:02 3606099 /usr/local/apache229/modules/libphp4.so b7cba000-b7cfa000 rwxp 001bb000 08:02 3606099 /usr/local/apache229/modules/libphp4.so b7cfa000-b7d14000 rwxp b7cfa000 00:00 0 b7d14000-b7e4f000 r-xp 00000000 08:02 3096728 /lib/tls/i686/cmov/libc-2.5.so b7e4f000-b7e50000 r-xp 0013b000 08:02 3096728 /lib/tls/i686/cmov/libc-2.5.so b7e50000-b7e52000 rwxp 0013c000 08:02 3096728 /lib/tls/i686/cmov/libc-2.5.so b7e52000-b7e55000 rwxp b7e52000 00:00 0 b7e55000-b7e57000 r-xp 00000000 08:02 3096732 /lib/tls/i686/cmov/libdl-2.5.so b7e57000-b7e59000 rwxp 00001000 08:02 3096732 /lib/tls/i686/cmov/libdl-2.5.so b7e59000-b7e5a000 rwxp b7e59000 00:00 0 b7e5a000-b7e6d000 r-xp 00000000 08:02 3096746 /lib/tls/i686/cmov/libpthread-2.5.so b7e6d000-b7e6f000 rwxp 00013000 08:02 3096746 /lib/tls/i686/cmov/libpthread-2.5.so b7e6f000-b7e71000 rwxp b7e6f000 00:00 0 b7e71000-b7e76000 r-xp 00000000 08:02 3096730 /lib/tls/i686/cmov/libcrypt-2.5.so b7e76000-b7e78000 rwxp 00004000 08:02 3096730 /lib/tls/i686/cmov/libcrypt-2.5.so b7e78000-b7e9f000 rwxp b7e78000 00:00 0 b7e9f000-b7ea6000 r-xp 00000000 08:02 3096749 /lib/tls/i686/cmov/librt-2.5.so b7ea6000-b7ea8000 rwxp 00006000 08:02 3096749 /lib/tls/i686/cmov/librt-2.5.so b7ea8000-b7ecd000 r-xp 00000000 08:02 3574050 /usr/local/apache229/lib/libapr-1.so.0.3.0 b7ecd000-b7ece000 rwxp 00025000 08:02 3574050 /usr/local/apache229/lib/libapr-1.so.0.3.0 b7ece000-b7ee8000 r-xp 00000000 08:02 3574095 /usr/local/apache229/lib/libexpat.so.0.1.0 b7ee8000-b7eea000 rwxp 00019000 08:02 3574095 /usr/local/apache229/lib/libexpat.so.0.1.0 b7eea000-b7eeb000 rwxp b7eea000 00:00 0 b7eeb000-b7f06000 r-xp 00000000 08:02 3574101 /usr/local/apache229/lib/libaprutil-1.so.0.3.0 b7f06000-b7f07000 rwxp 0001b000 08:02 3574101 /usr/local/apache229/lib/libaprutil-1.so.0.3.0 b7f07000-b7f2c000 r-xp 00000000 08:02 3096733 /lib/tls/i686/cmov/libm-2.5.so b7f2c000-b7f2e000 rwxp 00024000 08:02 3096733 /lib/tls/i686/cmov/libm-2.5.so b7f2e000-b7f34000 rwxp b7f2e000 00:00 0 b7f34000-b7f4d000 r-xp 00000000 08:02 3096591 /lib/ld-2.5.so b7f4d000-b7f4f000 rwxp 00019000 08:02 3096591 /lib/ld-2.5.so bfec6000-bfedc000 rw-p bfec6000 00:00 0 [stack] ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso] [Wed May 06 08:54:04 2009] [notice] child pid 26930 exit signal Aborted (6) --http://www.provincia.biella.it------------------------------------------------------ Vuoi rimanere sempre aggiornato sulle nostre attivita'? Visita la pagina dei feed RSS sul nostro sito ed iscriviti alla sezione di interesse. --Avviso------------------------------------------------------------------------------ Questo messaggio e i suoi allegati sono riservati esclusivamente alle persone in indirizzo e possono contenere informazioni confidenziali. Se questo messaggio vi e' pervenuto per errore, vi informiamo che ogni suo uso e'proibito. In questo caso rispedite immediatamente il messaggio al mittente e cancellatelo. Per ogni chiarimento contattateci scrivendo a ced at provincia.biella.it. Grazie -Il Webmaster. --Warning----------------------------------------------------------------------------- This message and its attachments are addressed solely to the persons above and may contain confidential information. If you have received the message in error, be informed that any use of the content hereof is prohibited. Please return it immediately to the sender and delete the message. Should you have any questions, please contact us by replying to ced at provincia.biella.it. The Webmaster. -------------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From edgardo.ghibaudo at provincia.biella.it Fri May 8 01:50:00 2009 From: edgardo.ghibaudo at provincia.biella.it (Edgardo Ghibaudo) Date: Fri, 08 May 2009 10:50:00 +0200 Subject: I: [mapserver-users] Apache crash using Mapserver with big mapfile(about 2500 lines) Message-ID: <143303a9.1c9cfba.15161107.63b5@provincia.biella.it> Steve, I compiled mapserver with -enable-debug option. Then I re-launched shp2img in the following way: ./shp2img -all_debug 5 -m /opt/fgs/apps/mapservergeo/map/at7_2_3.map [Fri May 8 10:45:49 2009].96896 msDrawRasterLayerLow(Sfumo): entering. [Fri May 8 10:45:49 2009].105123 msDrawGDAL(): src=704,474,913,1009, dst=0,0,470,520 [Fri May 8 10:45:49 2009].105479 msDrawGDAL(): red,green,blue,alpha bands = 1,2,3,0 [Fri May 8 10:45:49 2009].277761 msDrawMap(): Layer 0 (Sfumo), 0.181s [Fri May 8 10:45:49 2009].288732 msDrawMap(): Layer 7 (Edificato), 0.011s *** glibc detected *** free(): invalid next size (fast): 0x0846d138 *** Aborted Edgardo Da: Edgardo Ghibaudo [mailto:edgardo.ghibaudo at provincia.biella.it] Inviato: venerd? 8 maggio 2009 9.57 A: 'Steve Lime'; 'mapserver-users at lists.osgeo.org' Oggetto: R: [mapserver-users] Apache crash using Mapserver with big mapfile(about 2500 lines) Thank you Steve. Launching shp2img I obtain the following error: ./shp2img -m /opt/fgs/apps/mapservergeo/map/at7_2_3.map *** glibc detected *** malloc(): memory corruption: 0x08467628 *** Aborted Edgardo -----Messaggio originale----- Da: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] Inviato: gioved? 7 maggio 2009 19.29 A: 'mapserver-users at lists.osgeo.org'; Edgardo Ghibaudo Oggetto: Re: [mapserver-users] Apache crash using Mapserver with big mapfile(about 2500 lines) Have you tried running through shp2img independently of MapLab to see if it's a problem with MapServer or MapLab specifically? Steve >>> On 5/7/2009 at 4:31 AM, in message , Edgardo Ghibaudo wrote: > Dear users, > > I'm using the following environment: > Ubuntu 6.06 (libc6 2.3.6) > Apache 2.2.9 > Php 4.4.2 > Mapserver 4.8.2 > Maplab 2.2.1 (last available version) > > Using a project inside Maplab/gmapfactory with a big mapfile (about 2500 > lines) the httpd process of Apache crash. > Enclosed you can find the details of the crash (Backtrace). > Apache compilation details: > ./configure --prefix=/usr/local/apache229 --enable-info --enable-mime-magic > --enable-rewrite --enable-so --enable-speling --enable-unique_id --enable-usertrack > --with-mpm=prefork > PHP compilation details: > ./configure --enable-kbmmw --with-regex=system --with-freetype --with-dbase > --prefix=/usr/local/apache229/php --with-mysql=/usr/local/mysql4115 > --with-pgsql=shared,/usr/local/pgsql8014 > --with-pdflib=shared,/usr/local/pdflite703 > --with-config-file-path=/usr/local/apache229/php --with-png --with-jpeg > --with-jpeg-dir=/usr/local --with-tiff --with-gd --with-zlib --enable-track-vars > --enable-sockets --enable-wddx=shared --with-xmlrpc=shared --enable-calendar > --with-iconv=/usr/local/libiconv112 --with-iconv-dir=/usr/local/libiconv112 > --with-apxs2=/usr/local/apache229/bin/apxs --enable-cgi > Mapserver compilation details: > ./configure --enable-debug --with-proj=/usr/local > --with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config > --with-gd --with-httpd=/usr/local/apache229/bin/httpd > --with-php=/usr/local/apache229/php > --with-php-regex-dir=/usr/local/apache229/php/regex --enable-runpath > --enable-force-freetype1 --with-wmsclient --with-freetype --with-png=/usr/local > --with-jpeg=/usr/local --with-libiconv=/usr/local --with-wfs --with-wfsclient > --with-postgis=/usr/local/pgsql8014/bin/pg_config > > I tried to upgrade the OS version (Ubuntu 7.04 - libc6 2.5.0), but the > result doesn't change. > I tried also to compile different SW versions (Apache 1.3.41, Php 4.4.9, > Mapserver 4.8.3 & 4.8.4), but the result doesn't change > > Many thanks, > Edgardo > > *** glibc detected *** /usr/local/apache229/bin/httpd: free(): invalid next > size (fast): 0x087bdf40 *** > ======= Backtrace: ========= > /lib/tls/i686/cmov/libc.so.6[0xb7d7b7cd] > /lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7d7ee30] > /usr/local/apache229/php/extensions/php_mapscript_44.so(msFreeShape+0x35)[0x > b7814de5] > /usr/local/apache229/php/extensions/php_mapscript_44.so(msDrawVectorLayer+0x > 336)[0xb7828ca6] > /usr/local/apache229/php/extensions/php_mapscript_44.so(msDrawLayer+0xaa)[0x > b7828faa] > /usr/local/apache229/php/extensions/php_mapscript_44.so(msDrawMap+0x5d3)[0xb > 7829f33] > /usr/local/apache229/php/extensions/php_mapscript_44.so(mapObj_draw+0x1d)[0x > b77e34dd] > /usr/local/apache229/php/extensions/php_mapscript_44.so(php3_ms_map_draw+0x6 > c)[0xb77db65c] > /usr/local/apache229/modules/libphp4.so(execute+0x6b43)[0xb7c7d943] > /usr/local/apache229/modules/libphp4.so(zend_execute_scripts+0xde)[0xb7c674f > e] > /usr/local/apache229/modules/libphp4.so(php_execute_script+0x316)[0xb7c3b006 > ] > /usr/local/apache229/modules/libphp4.so[0xb7c8171b] > /usr/local/apache229/bin/httpd(ap_run_handler+0x59)[0x807b1b9] > /usr/local/apache229/bin/httpd(ap_invoke_handler+0x67)[0x807e447] > /usr/local/apache229/bin/httpd(ap_process_request+0x178)[0x8098af8] > /usr/local/apache229/bin/httpd[0x8095d9b] > /usr/local/apache229/bin/httpd(ap_run_process_connection+0x59)[0x8082539] > /usr/local/apache229/bin/httpd[0x80b68f5] > /usr/local/apache229/bin/httpd[0x80b6bb7] > /usr/local/apache229/bin/httpd(ap_mpm_run+0x880)[0x80b7510] > /usr/local/apache229/bin/httpd(main+0x865)[0x8068ae5] > /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc)[0xb7d29ebc] > /usr/local/apache229/bin/httpd(apr_os_proc_mutex_put+0x5d)[0x8067ca1] > > > > --http://www.provincia.biella.it------------------------------------------------------ > > Vuoi rimanere sempre aggiornato sulle nostre attivita'? > Visita la pagina dei feed RSS sul nostro sito ed iscriviti alla sezione di > interesse. > > --Avviso------------------------------------------------------------------------------ > Questo messaggio e i suoi allegati sono riservati esclusivamente alle > persone in > indirizzo e possono contenere informazioni confidenziali. Se questo > messaggio vi e' > pervenuto per errore, vi informiamo che ogni suo uso e'proibito. > In questo caso rispedite immediatamente il messaggio al mittente e > cancellatelo. > Per ogni chiarimento contattateci scrivendo a ced at provincia.biella.it. > Grazie -Il Webmaster. > --Warning----------------------------------------------------------------------------- > This message and its attachments are addressed solely to the persons above > and may > contain confidential information. If you have received the message in error, > be > informed that any use of the content hereof is prohibited. > Please return it immediately to the sender and delete the message. Should > you have > any questions, please contact us by replying to ced at provincia.biella.it. > The Webmaster. > -------------------------------------------------------------------------------------- --http://www.provincia.biella.it------------------------------------------------------ Vuoi rimanere sempre aggiornato sulle nostre attivita'? Visita la pagina dei feed RSS sul nostro sito ed iscriviti alla sezione di interesse. --Avviso------------------------------------------------------------------------------ Questo messaggio e i suoi allegati sono riservati esclusivamente alle persone in indirizzo e possono contenere informazioni confidenziali. Se questo messaggio vi e' pervenuto per errore, vi informiamo che ogni suo uso e'proibito. In questo caso rispedite immediatamente il messaggio al mittente e cancellatelo. Per ogni chiarimento contattateci scrivendo a ced at provincia.biella.it. Grazie -Il Webmaster. --Warning----------------------------------------------------------------------------- This message and its attachments are addressed solely to the persons above and may contain confidential information. If you have received the message in error, be informed that any use of the content hereof is prohibited. Please return it immediately to the sender and delete the message. Should you have any questions, please contact us by replying to ced at provincia.biella.it. The Webmaster. -------------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From rahul.pachaghare at tcs.com Fri May 8 02:20:15 2009 From: rahul.pachaghare at tcs.com (rahulp) Date: Fri, 8 May 2009 02:20:15 -0700 (PDT) Subject: [mapserver-users] only background gets displayed not any maps Message-ID: <1241774415248-2844349.post@n2.nabble.com> Hi everyone, I am a newbie using mapserver.I am using the tutorial http://demo.mapserver.org/tutorial/section1.html As I follow the tutorial i am not able to get the map displayed.only background is displayed.I am using the same mapfile with changes in the data. Please suggest solution. Thank You in advance.. -- View this message in context: http://n2.nabble.com/only-background-gets-displayed-not-any-maps-tp2844349p2844349.html Sent from the Mapserver - User mailing list archive at Nabble.com. From peter_rose at hotmail.com Fri May 8 03:10:25 2009 From: peter_rose at hotmail.com (Peter Rose) Date: Fri, 8 May 2009 03:10:25 -0700 (PDT) Subject: [mapserver-users] Another mailing list for MapServer? Message-ID: <1241777425282-2844517.post@n2.nabble.com> Hi, Does anyone know of another mailing list for MapServer where users can ask questions or is this the only one? Thanks, Peter -- View this message in context: http://n2.nabble.com/Another-mailing-list-for-MapServer--tp2844517p2844517.html Sent from the Mapserver - User mailing list archive at Nabble.com. From edgardo.ghibaudo at provincia.biella.it Fri May 8 03:44:00 2009 From: edgardo.ghibaudo at provincia.biella.it (Edgardo Ghibaudo) Date: Fri, 08 May 2009 12:44:00 +0200 Subject: I: [mapserver-users] Apache crash using Mapserver with big mapfile(about 2500 lines) Message-ID: Steve, Using shp2img we understood the reason of the crash. Thank you for your support. We are using Maplab 2.2.1 (the last version available - dated 29/09/2005). This product will constrain us to use Mapserver 4.8.x. The next versions of Mapserver (4.10.x & 5.x.x) doesn't work with Maplab. Do you know some alternative SW for Maplab ? Thanks in advance, Edgardo Da: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Per conto di Edgardo Ghibaudo Inviato: venerd? 8 maggio 2009 10.53 A: 'Steve Lime'; 'mapserver-users at lists.osgeo.org' Oggetto: I: [mapserver-users] Apache crash using Mapserver with big mapfile(about 2500 lines) Steve, I compiled mapserver with -enable-debug option. Then I launched shp2img in the following way: ./shp2img -all_debug 5 -m /opt/fgs/apps/mapservergeo/map/at7_2_3.map [Fri May 8 10:45:49 2009].96896 msDrawRasterLayerLow(Sfumo): entering. [Fri May 8 10:45:49 2009].105123 msDrawGDAL(): src=704,474,913,1009, dst=0,0,470,520 [Fri May 8 10:45:49 2009].105479 msDrawGDAL(): red,green,blue,alpha bands = 1,2,3,0 [Fri May 8 10:45:49 2009].277761 msDrawMap(): Layer 0 (Sfumo), 0.181s [Fri May 8 10:45:49 2009].288732 msDrawMap(): Layer 7 (Edificato), 0.011s *** glibc detected *** free(): invalid next size (fast): 0x0846d138 *** Aborted Edgardo -----Messaggio originale----- Da: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] Inviato: gioved? 7 maggio 2009 19.29 A: 'mapserver-users at lists.osgeo.org'; Edgardo Ghibaudo Oggetto: Re: [mapserver-users] Apache crash using Mapserver with big mapfile(about 2500 lines) Have you tried running through shp2img independently of MapLab to see if it's a problem with MapServer or MapLab specifically? Steve --http://www.provincia.biella.it------------------------------------------------------ Vuoi rimanere sempre aggiornato sulle nostre attivita'? Visita la pagina dei feed RSS sul nostro sito ed iscriviti alla sezione di interesse. --Avviso------------------------------------------------------------------------------ Questo messaggio e i suoi allegati sono riservati esclusivamente alle persone in indirizzo e possono contenere informazioni confidenziali. Se questo messaggio vi e' pervenuto per errore, vi informiamo che ogni suo uso e'proibito. In questo caso rispedite immediatamente il messaggio al mittente e cancellatelo. Per ogni chiarimento contattateci scrivendo a ced at provincia.biella.it. Grazie -Il Webmaster. --Warning----------------------------------------------------------------------------- This message and its attachments are addressed solely to the persons above and may contain confidential information. If you have received the message in error, be informed that any use of the content hereof is prohibited. Please return it immediately to the sender and delete the message. Should you have any questions, please contact us by replying to ced at provincia.biella.it. The Webmaster. -------------------------------------------------------------------------------------- --http://www.provincia.biella.it------------------------------------------------------ Vuoi rimanere sempre aggiornato sulle nostre attivita'? Visita la pagina dei feed RSS sul nostro sito ed iscriviti alla sezione di interesse. --Avviso------------------------------------------------------------------------------ Questo messaggio e i suoi allegati sono riservati esclusivamente alle persone in indirizzo e possono contenere informazioni confidenziali. Se questo messaggio vi e' pervenuto per errore, vi informiamo che ogni suo uso e'proibito. In questo caso rispedite immediatamente il messaggio al mittente e cancellatelo. Per ogni chiarimento contattateci scrivendo a ced at provincia.biella.it. Grazie -Il Webmaster. --Warning----------------------------------------------------------------------------- This message and its attachments are addressed solely to the persons above and may contain confidential information. If you have received the message in error, be informed that any use of the content hereof is prohibited. Please return it immediately to the sender and delete the message. Should you have any questions, please contact us by replying to ced at provincia.biella.it. The Webmaster. -------------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at osgis.nl Fri May 8 03:25:45 2009 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Fri, 8 May 2009 12:25:45 +0200 (CEST) Subject: [mapserver-users] Another mailing list for MapServer? In-Reply-To: <1241777425282-2844517.post@n2.nabble.com> References: <1241777425282-2844517.post@n2.nabble.com> Message-ID: <2843.145.50.39.11.1241778345.squirrel@webmail.hostingdiscounter.nl> Hi, this is the only one (though there regional ones like in Germany IIRC). Why are you asking? Is this one not providing you with answers? Best regards, Bart > > Hi, > > Does anyone know of another mailing list for MapServer where users can ask > questions or is this the only one? > > Thanks, > Peter > > -- > View this message in context: > http://n2.nabble.com/Another-mailing-list-for-MapServer--tp2844517p2844517.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From oliver.wesp at gmail.com Fri May 8 04:20:45 2009 From: oliver.wesp at gmail.com (Oliver Wesp) Date: Fri, 8 May 2009 13:20:45 +0200 Subject: [mapserver-users] Not transforming polygons to points Message-ID: Dear List, I have some datasets where the data is organized in layers containing both points and polygons. I read these datasets through ogr. I need to integrate these datasets as two different layers into my mapfile. One time to display just the polygons (works fine) and another to display the points. Unfortunately mapserver transforms the polygons to points so every node is shown. Is there any way to prevent this transformation and to display only the features that are actually points? best regards, Oliver From peter_rose at hotmail.com Fri May 8 05:35:27 2009 From: peter_rose at hotmail.com (Peter Rose) Date: Fri, 8 May 2009 05:35:27 -0700 (PDT) Subject: [mapserver-users] Another mailing list for MapServer? In-Reply-To: <2843.145.50.39.11.1241778345.squirrel@webmail.hostingdiscounter.nl> References: <1241777425282-2844517.post@n2.nabble.com> <2843.145.50.39.11.1241778345.squirrel@webmail.hostingdiscounter.nl> Message-ID: <1241786127117-2845039.post@n2.nabble.com> Hi, No I've asked the same question 3 times now in different ways but no one has replied so I want to try somewhere else. It is very easy to slip down the list and thereby be forgotten quickly, I think, especially if no one knows the answer. Here is my profile with the question if you should be interested - http://n2.nabble.com/user/UserNodes.jtp?user=200391 I'll try the German site you suggested but my German is not very good. Thanks for your help. Best regards, Peter -- View this message in context: http://n2.nabble.com/Another-mailing-list-for-MapServer--tp2844517p2845039.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bartvde at osgis.nl Fri May 8 05:42:22 2009 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Fri, 8 May 2009 14:42:22 +0200 (CEST) Subject: [mapserver-users] Another mailing list for MapServer? In-Reply-To: <1241786127117-2845039.post@n2.nabble.com> References: <1241777425282-2844517.post@n2.nabble.com> <2843.145.50.39.11.1241778345.squirrel@webmail.hostingdiscounter.nl> <1241786127117-2845039.post@n2.nabble.com> Message-ID: <65472.145.50.39.11.1241786542.squirrel@webmail.hostingdiscounter.nl> Hi, I've read your posts but I still don't understand the problem exactly. Not everybody has a copy of the book you are talking about so we can't guess about that approach. Are you able to share your PHP script, that might help .... TIA. Best regards, Bart > > Hi, > > No I've asked the same question 3 times now in different ways but no one > has > replied so I want to try somewhere else. > It is very easy to slip down the list and thereby be forgotten quickly, I > think, especially if no one knows the answer. > > Here is my profile with the question if you should be interested - > http://n2.nabble.com/user/UserNodes.jtp?user=200391 > > I'll try the German site you suggested but my German is not very good. > > Thanks for your help. > Best regards, > Peter > -- > View this message in context: > http://n2.nabble.com/Another-mailing-list-for-MapServer--tp2844517p2845039.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From woodbri at swoodbridge.com Fri May 8 07:38:48 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Fri, 08 May 2009 10:38:48 -0400 Subject: [mapserver-users] Another mailing list for MapServer? In-Reply-To: <65472.145.50.39.11.1241786542.squirrel@webmail.hostingdiscounter.nl> References: <1241777425282-2844517.post@n2.nabble.com> <2843.145.50.39.11.1241778345.squirrel@webmail.hostingdiscounter.nl> <1241786127117-2845039.post@n2.nabble.com> <65472.145.50.39.11.1241786542.squirrel@webmail.hostingdiscounter.nl> Message-ID: <4A0443F8.6010102@swoodbridge.com> Also, can you show us your whole mapfile. You say your data is coming from MySQL, Are you using GDAL/OGR, how are you connecting to that. In you LAYER definition in your post you do not show a DATA statement. so your layer has NO data to display. When you say "it does not work", your focus is on classification, have you gotten the LAYER to display if you remove the EXPRESSION statements? Because if NO data is display that it a different problem from some data is displaying but you can not get it to be classified. -Steve W bartvde at osgis.nl wrote: > Hi, > > I've read your posts but I still don't understand the problem exactly. > > Not everybody has a copy of the book you are talking about so we can't > guess about that approach. > > Are you able to share your PHP script, that might help .... > > TIA. > > Best regards, > Bart > >> Hi, >> >> No I've asked the same question 3 times now in different ways but no one >> has >> replied so I want to try somewhere else. >> It is very easy to slip down the list and thereby be forgotten quickly, I >> think, especially if no one knows the answer. >> >> Here is my profile with the question if you should be interested - >> http://n2.nabble.com/user/UserNodes.jtp?user=200391 >> >> I'll try the German site you suggested but my German is not very good. >> >> Thanks for your help. >> Best regards, >> Peter >> -- >> View this message in context: >> http://n2.nabble.com/Another-mailing-list-for-MapServer--tp2844517p2845039.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From nico.mandery at geops.de Fri May 8 07:44:25 2009 From: nico.mandery at geops.de (Nico Mandery) Date: Fri, 08 May 2009 16:44:25 +0200 Subject: [mapserver-users] Symbol sizes In-Reply-To: <1240750556206-2717421.post@n2.nabble.com> References: <1240750556206-2717421.post@n2.nabble.com> Message-ID: <4A044549.5050209@geops.de> Hi Peter Peter Rose schrieb: > Hi > > Does anyone out there know how to change symbol sizes depending on values in > attribute data such as a MySQL database? > > > Thanks for any suggestion. > > Peter The SIZE paramter of the style object seems to be able to get its value form an attribute. See http://mapserver.org/mapfile/style.html for the syntax. hope it helps, nico From kreshna_iceheart at yahoo.com Fri May 8 08:20:00 2009 From: kreshna_iceheart at yahoo.com (kreshna_iceheart at yahoo.com) Date: Fri, 8 May 2009 08:20:00 -0700 (PDT) Subject: [mapserver-users] Dynamic intersection color with MapServer? Message-ID: <107901.78725.qm@web110606.mail.gq1.yahoo.com> Let's say I have three layers: A, B, and C. If layer A intersects with layer B, I want the intersection area to be colored with, say, red. Only the intersection area. If layer A intersects with layer C, I want the intersection area to be colored with, say, green. Again, only the intersection area. Is it possible to do such thing with MapServer? For starter, is it possible for MapServer to dynamically "generate" the intersection area on the fly? And it is possible to assign specific color to the intersection area? Many thanks, -Kresh From voas_acc at hotmail.com Fri May 8 08:29:04 2009 From: voas_acc at hotmail.com (Jim Strevinas) Date: Fri, 8 May 2009 18:29:04 +0300 Subject: [mapserver-users] Another mailing list for MapServer? In-Reply-To: <1241777425282-2844517.post@n2.nabble.com> References: <1241777425282-2844517.post@n2.nabble.com> Message-ID: Peter I have the book, as soon as I go home I will check your problem and see why it is not working > Date: Fri, 8 May 2009 03:10:25 -0700 > From: peter_rose at hotmail.com > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Another mailing list for MapServer? > > > Hi, > > Does anyone know of another mailing list for MapServer where users can ask > questions or is this the only one? > > Thanks, > Peter > > -- > View this message in context: http://n2.nabble.com/Another-mailing-list-for-MapServer--tp2844517p2844517.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _________________________________________________________________ More than messages?check out the rest of the Windows Live?. http://www.microsoft.com/windows/windowslive/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Fri May 8 08:33:45 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 08 May 2009 10:33:45 -0500 Subject: [mapserver-users] Dynamic intersection color with MapServer? In-Reply-To: <107901.78725.qm@web110606.mail.gq1.yahoo.com> References: <107901.78725.qm@web110606.mail.gq1.yahoo.com> Message-ID: <4A040A88.5157.008F.0@dnr.state.mn.us> You have to use a tool like PostgreSQL/PostGIS to do such a thing. It can create true geometries based on the intersection of other geometries. You'd have to do this as two separate layers though, AB intersections and AC intersections since the intersections would be defined in the connection string for PostGIS. Steve >>> On 5/8/2009 at 10:20 AM, in message <107901.78725.qm at web110606.mail.gq1.yahoo.com>, "kreshna_iceheart at yahoo.com" wrote: > Let's say I have three layers: A, B, and C. > > If layer A intersects with layer B, I want the intersection area to be > colored with, say, red. Only the intersection area. > > If layer A intersects with layer C, I want the intersection area to be > colored with, say, green. Again, only the intersection area. > > Is it possible to do such thing with MapServer? For starter, is it possible > for MapServer to dynamically "generate" the intersection area on the fly? And > it is possible to assign specific color to the intersection area? > > Many thanks, > -Kresh > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From voas_acc at hotmail.com Fri May 8 08:38:39 2009 From: voas_acc at hotmail.com (Jim Strevinas) Date: Fri, 8 May 2009 18:38:39 +0300 Subject: [mapserver-users] Dynamic intersection color with MapServer? In-Reply-To: <107901.78725.qm@web110606.mail.gq1.yahoo.com> References: <107901.78725.qm@web110606.mail.gq1.yahoo.com> Message-ID: Hi Kreshna, I don't think it is possible to achieve this with the cgi. Possibly some application logic using mapscript could do. I have a simpler idea though, if the map will be used for just presenting the data (not analysing) you could assign an OPACITY parameter to the layers A,B,C and color them with different colors. Thus, the intersection will be mixed with the colors of the layers providing the "effect" you want. > Date: Fri, 8 May 2009 08:20:00 -0700 > From: kreshna_iceheart at yahoo.com > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Dynamic intersection color with MapServer? > > > Let's say I have three layers: A, B, and C. > > If layer A intersects with layer B, I want the intersection area to be colored with, say, red. Only the intersection area. > > If layer A intersects with layer C, I want the intersection area to be colored with, say, green. Again, only the intersection area. > > Is it possible to do such thing with MapServer? For starter, is it possible for MapServer to dynamically "generate" the intersection area on the fly? And it is possible to assign specific color to the intersection area? > > Many thanks, > -Kresh > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users _________________________________________________________________ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter_rose at hotmail.com Fri May 8 09:02:07 2009 From: peter_rose at hotmail.com (Peter Rose) Date: Fri, 8 May 2009 09:02:07 -0700 (PDT) Subject: [mapserver-users] Another mailing list for MapServer? In-Reply-To: <4A0443F8.6010102@swoodbridge.com> References: <1241777425282-2844517.post@n2.nabble.com> <2843.145.50.39.11.1241778345.squirrel@webmail.hostingdiscounter.nl> <1241786127117-2845039.post@n2.nabble.com> <65472.145.50.39.11.1241786542.squirrel@webmail.hostingdiscounter.nl> <4A0443F8.6010102@swoodbridge.com> Message-ID: <1241798527094-2846149.post@n2.nabble.com> Hi, A PHP script accesses MySQL to retrieve dynamic information, and uses the PHP MapScript APA to render a map. It displays a map of the UK with shires, rivers etc. from the content of several shapefiles. Each point (POI) of interest is renders directly from the geographical coordinates stored in the MySQL Database. The user is able to search the database directly on the website by sending a Select statement which in turn generates the pages. You can try the website yourself by going to - http://mapserver.cch.kcl.ac.uk/pase/pasemap2.php If you search for the Latin Name = Edward, you should get 8 results. This site is still very much a work in progress and things change may change at any time! What I want to do is to display the dots on the map in various colours and sizes according to the fiscal values in the database. Fx. So that all values over 3 are large and red while everything under 3 is small and green. The fiscal values are kept in a Float field in the MySQL database. The important thing here is that the data is kept in my MySQL database, not in a shapefile, as I have to be able to change it from time to time. I know that if these values had been kept in the shapefile I could just insert the Expression ([fiscal] < 3) in the mapfile as my example illustrate. However, this doesn?t work with MySQL. My connection to the database takes place in the PHP script like you would normally do it (see bottom of page). As for the Mapfile, only the section I have already shown deals with the points of interest. The rest has to do with the shapefiles, scale, legend etc. and are therefore not relevant for this question. Since the layer is rendered dynamically from a database it does not need a DATA statement. It can still display the points as you can see from the website. As for the expressions not working, what I mean is that only the first class is shown (here it's the "Large fiscal" class with a red dot). But the filtering hasn't taken place so all query results are shown not just the <1 and they are all red. Mapserver therefore seems to ignore the expression all together. It also works without the expression. It makes no difference whether or not the expression is there. Thank you everyone for helping me with this one. I hope a solution to my question will be helpful to other MapServer user. Hope you all have a good weekend. Best regards, Peter //------------------------------------------ // GetStoreTable - returns array containing store table function GetStoreTable($Name, $SearchField) { // Retrieve store table from MySQL database mysql_connect("localhost", "mysql", "password") or die("Could not connect to MySQL server!"); mysql_select_db("mydatabase") or die("Could not select database"); // The basic SELECT statement $select = ' SELECT * '; $from = ' FROM Property'; $where = ' WHERE 1=1'; // Retrieve Search text $Name = $_GET['Name']; $SearchField = $_GET['SearchField']; //Select table field if (($SearchField == 'latinName') AND ($Name != '')) { // SearchField is set to latinName and there is some search text $where .= " AND Tenant.latinName LIKE '$Name'"; } if (($SearchField == 'normalisedName') AND ($Name != '')) { // SearchField is set to normalisedName and there is some search text $where .= " AND Tenant.normalisedName LIKE '$Name'"; } if (($SearchField == 'latinDescriptor') AND ($Name != '')) { // SearchField is set to latinDescriptor and there is some search text $where .= " AND Tenant.latinDescriptor LIKE '$Name'"; } if (($SearchField == 'englishDescriptor') AND ($Name != '')) { // SearchField is set to englishDescriptor and there is some search text $where .= " AND Tenant.englishDescriptor LIKE '$Name'"; } // Join Tenant and Property tables $from = $from.' RIGHT JOIN Tenant USING (propertyKey)'; // Limit Query to 2000 $where = $where." LIMIT 2000"; $result = mysql_query($select . $from . $where); if (mysql_num_rows($result) < 1){ exit ('Could not locate any places with these search criteria. Please Click ' . ' "Back" and try again. '); } // Save each row of result in an array $i = 0; while ( $row = mysql_fetch_array($result,MYSQL_NUM) ) { $qresult[$i] = $row; $i++; } // return array of results return $qresult; } // end GetStoreTable -- View this message in context: http://n2.nabble.com/Another-mailing-list-for-MapServer--tp2844517p2846149.html Sent from the Mapserver - User mailing list archive at Nabble.com. From arjendk at gmx.net Fri May 8 09:01:52 2009 From: arjendk at gmx.net (Arjen de Korte) Date: Fri, 08 May 2009 18:01:52 +0200 Subject: [mapserver-users] Mapserver as WMS client and animated GIF Message-ID: <1241798512.3267.1314491625@webmail.messagingengine.com> Hi Mapserver users, I'm using Mapserver (5.0) as a WMS client with a WMS service that returns animated GIF images. However, it appears that Mapserver does not show the animation but only shows the first frame of the animated GIF. When I call the WMS server directly, the animated image is shown correctly. My mapfile for the WMS layer looks like this: LAYER NAME "product" TYPE raster STATUS on CONNECTION "http://example.com/wms?" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:4326" "wms_name" "animatedlayer" "wms_server_version" "1.1.1" "wms_format" "image/gif" "wms_exceptions_format" "application/vnd.ogc.se_xml" "wms_connectiontimeout" "60" END END Can anyone tell me if there is a solution or work-around to let Mapserver handle these images correctly? Can Mapserver simply not handle animated GIFs through WMS or could I be making a mistake, e.g. in my mapfile? Thanks in advance for any replies, kind regards, Arjen. From dmorissette at mapgears.com Fri May 8 09:18:01 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 08 May 2009 12:18:01 -0400 Subject: [mapserver-users] Mapserver as WMS client and animated GIF In-Reply-To: <1241798512.3267.1314491625@webmail.messagingengine.com> References: <1241798512.3267.1314491625@webmail.messagingengine.com> Message-ID: <4A045B39.1020505@mapgears.com> Arjen de Korte wrote: > > Can anyone tell me if there is a solution or work-around to let > Mapserver handle these images correctly? Can Mapserver simply not handle > animated GIFs through WMS or could I be making a mistake, e.g. in my > mapfile? > I can confirm that MapServer currently has no way to support animated GIFs with CONNECTIONTYPE WMS, and getting the first frame of the animated GIF is the expected result. Daniel -- Daniel Morissette http://www.mapgears.com/ From temiz at deprem.gov.tr Fri May 8 10:25:29 2009 From: temiz at deprem.gov.tr (Ahmet Temiz) Date: Fri, 8 May 2009 20:25:29 +0300 Subject: [mapserver-users] problem in reference map In-Reply-To: <001101c9cfac$dea687b0$9bf39710$@com> References: <20090507115038.M79754@deprem.gov.tr> <4A02D387.5157.008F.0@dnr.state.mn.us> <20090508070209.M53227@deprem.gov.tr> <001101c9cfac$dea687b0$9bf39710$@com> Message-ID: <20090508172404.M69970@deprem.gov.tr> Thank you I am using java. However, I try to adapt C# to java On Fri, 8 May 2009 12:46:09 +0530, Venkat Rao Tammineni wrote > HI, > > Which language you are using ...if it is C# , then I can help you. > > Thanks > Venkat > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ahmet Temiz > Sent: Friday, May 08, 2009 12:39 PM > To: Steve Lime; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] problem in reference map > > On Thu, 07 May 2009 12:26:47 -0500, Steve Lime wrote > > thank you > > reference map extent is same as main map extent. > I checked size of reference map. > > But the problem still exists. > > > Most likely your reference map size or extent are incorrect. That's > > where I'd start. > > > > Steve > > > > >>> On 5/7/2009 at 6:54 AM, in message > <20090507115038.M79754 at deprem.gov.tr>, > > "Ahmet Temiz" wrote: > > > hello > > > > > > the red box in my reference map isn't settled on my zoomed main map. > > > > > > what am I likely to miss ? > > > > > > regards > > > > > > Ahmet Temiz > > > > > > -- > > > Open WebMail Project (http://openwebmail.org) > > > > > > > -- > > This message has been scanned for viruses and > > dangerous content by MailScanner, and is > > believed to be clean. > > -- > Open WebMail Project (http://openwebmail.org) > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. -- Open WebMail Project (http://openwebmail.org) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From voas_acc at hotmail.com Fri May 8 14:31:57 2009 From: voas_acc at hotmail.com (Jim Strevinas) Date: Sat, 9 May 2009 00:31:57 +0300 Subject: [mapserver-users] Another mailing list for MapServer? In-Reply-To: <1241798527094-2846149.post@n2.nabble.com> References: <1241777425282-2844517.post@n2.nabble.com> <2843.145.50.39.11.1241778345.squirrel@webmail.hostingdiscounter.nl> <1241786127117-2845039.post@n2.nabble.com> <65472.145.50.39.11.1241786542.squirrel@webmail.hostingdiscounter.nl> <4A0443F8.6010102@swoodbridge.com> <1241798527094-2846149.post@n2.nabble.com> Message-ID: Hi Peter, Please correct me if i am wrong. I saw earlier that you use Bill Kropla's example application. Thus you use a NON-spatial DB which keeps the longitute, latitude data as floats. Afterwards you manually query the DB as you posted and use the results to populate the table. After that (according to the Kropla example) a function like the one below is used: function AddPoints ( $map, $qresult ) { $this_layer = $map->getLayerByName('poi'); $i = 0; foreach($qresult as $row) { $poi[$i] = ms_newPointObj(); $ln[$i] = ms_newLineObj(); $shp[$i] = ms_newShapeObj(MS_SHAPE_POINT); $poi[$i]->setXY($row[3],$row[2]); $ln[$i]->add($poi[$i]); $shp[$i]->add($ln[$i]); $shp[$i]->set(index, $row[0]); $this_layer->addFeature( $shp[$i] ); $i++; } return; } // end AddPoints This one adds the features to the layer. Now, if you use the above code snippet to populate the layer, you do not add the NON-SPATIAL values to the features created. Thus, the EXPRESSION can not find the associated fieldname (fiscal) in order to classify the features and finally draw different colors for the symbols. If it is the case, it is easy to add fieldnames to the features. If you already took care of that, we must search the solution somewhere else. Waiting for your response Regards, Jim ---------------------------------------- > Date: Fri, 8 May 2009 09:02:07 -0700 > From: peter_rose at hotmail.com > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Another mailing list for MapServer? > > > Hi, > > A PHP script accesses MySQL to retrieve dynamic information, and uses the > PHP MapScript APA to render a map. It displays a map of the UK with shires, > rivers etc. from the content of several shapefiles. Each point (POI) of > interest is renders directly from the geographical coordinates stored in the > MySQL Database. > The user is able to search the database directly on the website by sending a > Select statement which in turn generates the pages. > > You can try the website yourself by going to - > http://mapserver.cch.kcl.ac.uk/pase/pasemap2.php > If you search for the Latin Name = Edward, you should get 8 results. > This site is still very much a work in progress and things change may change > at any time! > > What I want to do is to display the dots on the map in various colours and > sizes according to the fiscal values in the database. Fx. So that all values > over 3 are large and red while everything under 3 is small and green. > The fiscal values are kept in a Float field in the MySQL database. > The important thing here is that the data is kept in my MySQL database, not > in a shapefile, as I have to be able to change it from time to time. > I know that if these values had been kept in the shapefile I could just > insert the Expression ([fiscal] < 3) in the mapfile as my example > illustrate. > However, this doesn?t work with MySQL. > > My connection to the database takes place in the PHP script like you would > normally do it (see bottom of page). As for the Mapfile, only the section I > have already shown deals with the points of interest. The rest has to do > with the shapefiles, scale, legend etc. and are therefore not relevant for > this question. > > Since the layer is rendered dynamically from a database it does not need a > DATA statement. It can still display the points as you can see from the > website. > As for the expressions not working, what I mean is that only the first class > is shown (here it's the "Large fiscal" class with a red dot). But the > filtering hasn't taken place so all query results are shown not just the and they are all red. Mapserver therefore seems to ignore the expression all > together. It also works without the expression. It makes no difference > whether or not the expression is there. > > Thank you everyone for helping me with this one. I hope a solution to my > question will be helpful to other MapServer user. > Hope you all have a good weekend. > Best regards, > Peter _________________________________________________________________ More than messages?check out the rest of the Windows Live?. http://www.microsoft.com/windows/windowslive/ From Bob.Basques at ci.stpaul.mn.us Fri May 8 15:22:26 2009 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Fri, 08 May 2009 17:22:26 -0500 Subject: [mapserver-users] Label alignment . . . In-Reply-To: <4A0207CC020000A800013416@jeckle> References: <4A0207CC020000A800013416@jeckle> Message-ID: <4A046A51.163B.00A8.0@ci.stpaul.mn.us> All, Ok, I made some progress, sort of. I started out here: http://gis.ci.stpaul.mn.us/datasets/SHP/FED/USGS/USNG/mn_usng_lines_labels_2_public.map?mapext=503179.6728349806%20111379.8994326578%20508281.0020239575%20135621.41573867595&mapsize=70%20600&mode=map&MOOSETIME=1241653121858 ( http://gis.ci.stpaul.mn.us/datasets/SHP/FED/USGS/USNG/mn_usng_lines_labels_2_public.map?mapext=503179.6728349806%20111379.8994326578%20508281.0020239575%20135621.41573867595&mapsize=70%20600&mode=map&MOOSETIME=1241653121858 ) The three labels get justified ok horizontally in relation to each other, but they don't line up vertically, which is what I'm after, so . . . I had a thought about using "ANGLE follow" instead of "ANGLE 0" and then I get this: http://gis.ci.stpaul.mn.us/datasets/SHP/FED/USGS/USNG/mn_usng_lines_labels_2b_public.map?mapext=503179.6728349806%20111379.8994326578%20508281.0020239575%20135621.41573867595&mapsize=70%20600&mode=map&MOOSETIME=1241653121858 ( http://gis.ci.stpaul.mn.us/datasets/SHP/FED/USGS/USNG/mn_usng_lines_labels_2b_public.map?mapext=503179.6728349806%20111379.8994326578%20508281.0020239575%20135621.41573867595&mapsize=70%20600&mode=map&MOOSETIME=1241653121858 ) Now the vertical alignment is nice and straight, but the OFFSETs are ignored for the two outside (larger text) labels for the line. Should the OFFSET parameter be ignored with "ANGLE follow"? I could use this with three different images side by side, but it would be nicer to just have one image . . . . Thanks for any ideas . . . . Still putzing with it . . . bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.b at gritechnologies.com Fri May 8 17:35:28 2009 From: bob.b at gritechnologies.com (Bob Basques) Date: Fri, 08 May 2009 19:35:28 -0500 Subject: [mapserver-users] Label alignment . . . In-Reply-To: <4A046A51.163B.00A8.0@ci.stpaul.mn.us> References: <4A0207CC020000A800013416@jeckle> <4A046A51.163B.00A8.0@ci.stpaul.mn.us> Message-ID: <4A04CFD0.9020104@gritechnologies.com> All, Sorry about the links in the previous Email (again), geez I don't know what's going on at work, but here are the real links: https://gis.ci.stpaul.mn.us/datasets/SHP/FED/USGS/USNG/mn_usng_lines_labels_2_public.map?mapext=503179.6728349806+111379.8994326578+508281.0020239575+135621.41573867595&mapsize=70+600&mode=map&MOOSETIME=1241653121858 https://gis.ci.stpaul.mn.us/datasets/SHP/FED/USGS/USNG/mn_usng_lines_labels_2b_public.map?mapext=503179.6728349806+111379.8994326578+508281.0020239575+135621.41573867595&mapsize=70+600&mode=map&MOOSETIME=1241653121858 bobb Bob Basques wrote: > > All, > > > Ok, I made some progress, sort of. > > > I started out here: > > > _/http://gis.ci.stpaul.mn.us/datasets/SHP/FED/USGS/USNG/mn_usng_lines_labels_2_public.map?mapext=503179.6728349806%20111379.8994326578%20508281.0020239575%20135621.41573867595&mapsize=70%20600&mode=map&MOOSETIME=1241653121858/_ > > > > > The three labels get justified ok horizontally in relation to each > other, but they don't line up vertically, which is what I'm after, so > . . . > > > I had a thought about using "ANGLE follow" instead of "ANGLE 0" and > then I get this: > > > _/http://gis.ci.stpaul.mn.us/datasets/SHP/FED/USGS/USNG/mn_usng_lines_labels_2b_public.map?mapext=503179.6728349806%20111379.8994326578%20508281.0020239575%20135621.41573867595&mapsize=70%20600&mode=map&MOOSETIME=1241653121858/_ > > > > > Now the vertical alignment is nice and straight, but the OFFSETs are > ignored for the two outside (larger text) labels for the line. Should > the OFFSET parameter be ignored with "ANGLE follow"? > > > I could use this with three different images side by side, but it > would be nicer to just have one image . . . . > > > Thanks for any ideas . . . . Still putzing with it . . . > > > bobb > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kreshna_iceheart at yahoo.com Fri May 8 23:51:49 2009 From: kreshna_iceheart at yahoo.com (kreshna_iceheart at yahoo.com) Date: Fri, 8 May 2009 23:51:49 -0700 (PDT) Subject: [mapserver-users] Dynamic intersection color with MapServer? Message-ID: <567947.99155.qm@web110605.mail.gq1.yahoo.com> Thanks, Jim & Steve. Yes, I guess I have to use postgreSQL query to define the intersection layer (using intersect spatial query). I still wonder about something, though. Let say I have the following layers: layer A, layer B, and layer C. Layer C is the distinctly-colored intersection layer, which is generated by postgreSQL query. Is it possible to automatically activate layer C whenever layer A and layer B is activated? It needs certain programming, but it is possible to achieve trough cgi alone? Or would I need PHP MapScript? How about p.mapper? Is it easier to do such thing using p.mapper? It is based on PHPMapScript, isn't it? Any sample codes for such purpose? Many thanks, -Kresh From meenu.monu at gmail.com Sat May 9 23:03:25 2009 From: meenu.monu at gmail.com (meenu) Date: Sat, 9 May 2009 23:03:25 -0700 (PDT) Subject: [mapserver-users] need to do the coding in VB using TutorialMapServerSolution.zip Message-ID: <1241935405805-2852968.post@n2.nabble.com> dears...i created one mapserver website project in vs2005 based on mapserver tutorial available in c#(TutorialMapServerSolution.zip)...all working fine good under C#....now my requirement is i need to do the further coding in VB instead of C#...for that i added one "default.aspx.vb" page and converted all c# code inside default.aspx.cs to default.aspx.vb ...now i want to know is any other files is required to change for this? ----- Meenu -- View this message in context: http://n2.nabble.com/need-to-do-the-coding-in-VB-using--TutorialMapServerSolution.zip-tp2852968p2852968.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Sat May 9 23:55:36 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Sun, 10 May 2009 09:55:36 +0300 Subject: [mapserver-users] Apache crash using Mapserver with bigmapfile(about 2500 lines) References: Message-ID: Hi, I thought there were links of MapServer based application fraworks on MapServer web pages, but I cannot find it now. Anyway, MS4W download page has some easy-to-install modules for GeoMOOSE, MapBender, p.mapper etc. I fear none of them is as simple to use for a beginner as MapLab was. There are for sure more alternatives, also commersial like Neapolis (http://www.mapserver.ch/en/index.html) that is quite easy and nice to use. Others can add to my list. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Edgardo Ghibaudo L?hetetty: pe 8.5.2009 13:44 Vastaanottaja: 'Steve Lime'; 'mapserver-users at lists.osgeo.org' Aihe: I: [mapserver-users] Apache crash using Mapserver with bigmapfile(about 2500 lines) Steve, Using shp2img we understood the reason of the crash. Thank you for your support. We are using Maplab 2.2.1 (the last version available - dated 29/09/2005). This product will constrain us to use Mapserver 4.8.x. The next versions of Mapserver (4.10.x & 5.x.x) doesn't work with Maplab. Do you know some alternative SW for Maplab ? Thanks in advance, Edgardo Da: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Per conto di Edgardo Ghibaudo Inviato: venerd? 8 maggio 2009 10.53 A: 'Steve Lime'; 'mapserver-users at lists.osgeo.org' Oggetto: I: [mapserver-users] Apache crash using Mapserver with big mapfile(about 2500 lines) Steve, I compiled mapserver with -enable-debug option. Then I launched shp2img in the following way: ./shp2img -all_debug 5 -m /opt/fgs/apps/mapservergeo/map/at7_2_3.map [Fri May 8 10:45:49 2009].96896 msDrawRasterLayerLow(Sfumo): entering. [Fri May 8 10:45:49 2009].105123 msDrawGDAL(): src=704,474,913,1009, dst=0,0,470,520 [Fri May 8 10:45:49 2009].105479 msDrawGDAL(): red,green,blue,alpha bands = 1,2,3,0 [Fri May 8 10:45:49 2009].277761 msDrawMap(): Layer 0 (Sfumo), 0.181s [Fri May 8 10:45:49 2009].288732 msDrawMap(): Layer 7 (Edificato), 0.011s *** glibc detected *** free(): invalid next size (fast): 0x0846d138 *** Aborted Edgardo -----Messaggio originale----- Da: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] Inviato: gioved? 7 maggio 2009 19.29 A: 'mapserver-users at lists.osgeo.org'; Edgardo Ghibaudo Oggetto: Re: [mapserver-users] Apache crash using Mapserver with big mapfile(about 2500 lines) Have you tried running through shp2img independently of MapLab to see if it's a problem with MapServer or MapLab specifically? Steve --http://www.provincia.biella.it------------------------------------------------------ Vuoi rimanere sempre aggiornato sulle nostre attivita'? Visita la pagina dei feed RSS sul nostro sito ed iscriviti alla sezione di interesse. --Avviso------------------------------------------------------------------------------ Questo messaggio e i suoi allegati sono riservati esclusivamente alle persone in indirizzo e possono contenere informazioni confidenziali. Se questo messaggio vi e' pervenuto per errore, vi informiamo che ogni suo uso e'proibito. In questo caso rispedite immediatamente il messaggio al mittente e cancellatelo. Per ogni chiarimento contattateci scrivendo a ced at provincia.biella.it. Grazie -Il Webmaster. --Warning----------------------------------------------------------------------------- This message and its attachments are addressed solely to the persons above and may contain confidential information. If you have received the message in error, be informed that any use of the content hereof is prohibited. Please return it immediately to the sender and delete the message. Should you have any questions, please contact us by replying to ced at provincia.biella.it. The Webmaster. -------------------------------------------------------------------------------------- --http://www.provincia.biella.it------------------------------------------------------ Vuoi rimanere sempre aggiornato sulle nostre attivita'? Visita la pagina dei feed RSS sul nostro sito ed iscriviti alla sezione di interesse. --Avviso------------------------------------------------------------------------------ Questo messaggio e i suoi allegati sono riservati esclusivamente alle persone in indirizzo e possono contenere informazioni confidenziali. Se questo messaggio vi e' pervenuto per errore, vi informiamo che ogni suo uso e'proibito. In questo caso rispedite immediatamente il messaggio al mittente e cancellatelo. Per ogni chiarimento contattateci scrivendo a ced at provincia.biella.it. Grazie -Il Webmaster. --Warning----------------------------------------------------------------------------- This message and its attachments are addressed solely to the persons above and may contain confidential information. If you have received the message in error, be informed that any use of the content hereof is prohibited. Please return it immediately to the sender and delete the message. Should you have any questions, please contact us by replying to ced at provincia.biella.it. The Webmaster. -------------------------------------------------------------------------------------- From meenu.monu at gmail.com Sun May 10 00:14:52 2009 From: meenu.monu at gmail.com (meenu) Date: Sun, 10 May 2009 00:14:52 -0700 (PDT) Subject: [mapserver-users] convertion from mapinfo to mapserver -one table is not getting Message-ID: <1241939692862-2853077.post@n2.nabble.com> dears when i convert mapinfo file to mapserver script using wor2map.MBX all tables from mapinfo coming perfectly in .map...but i have a problem with converting one table....that table is not getting in to the mapscript...when the files converted in the message window Browsing oman_road_uni_color(OTHER) like this message coming and this table is not getting in mapscript...y the type is coming as OTHER...can anybody help me for this...actually this table type is a LINE ----- Meenu -- View this message in context: http://n2.nabble.com/convertion-from-mapinfo-to-mapserver--one-table-is-not-getting-tp2853077p2853077.html Sent from the Mapserver - User mailing list archive at Nabble.com. From gonzalo at sepp0.com.ar Sun May 10 08:49:34 2009 From: gonzalo at sepp0.com.ar (Gonzalo Lionel Rodriguez) Date: Sun, 10 May 2009 12:49:34 -0300 Subject: [mapserver-users] MapServer Error Message-ID: Hi everyone, I have installed mapserver and pmapper and when custimize my maps have this error: Warning: [MapServer Error]: msLoadMap(): Undefined symbol "Hidro.shp-0-0" in class 0, style 0 of layer Hidrografia. in /home/orsep/public_html/gis2/incphp/globals.php on line 60 Warning: [MapServer Error]: msAddImageSymbol(): Error opening image file /home/orsep/public_html/gis2/mapoteca/presas_gis/Hidro.shp-0-0. in /home/orsep/public_html/gis2/incphp/globals.php on line 60 Warning: Failed to open map file /home/orsep/public_html/gis2/mapoteca/presas_gis/presas_gis.map in /home/orsep/public_html/gis2/incphp/globals.php on line 60 Fatal error: Call to a member function getAllGroupNames() on a non-object in /home/orsep/public_html/gis2/incphp/init/initmap.php on line 129 Any ideas? Kind regards and sorry my bad english. From gregor at hostgis.com Sun May 10 11:27:24 2009 From: gregor at hostgis.com (Gregor at HostGIS) Date: Sun, 10 May 2009 11:27:24 -0700 Subject: [mapserver-users] MapServer Error In-Reply-To: References: Message-ID: <4A071C8C.90100@hostgis.com> Hey Gonzalo. Still wrestling with that puppy, huh? We'll get it hammered into place. :) > Warning: [MapServer Error]: msLoadMap(): Undefined symbol > "Hidro.shp-0-0" in class 0, style 0 of layer Hidrografia. in > /home/orsep/public_html/gis2/incphp/globals.php on line 60 "Undefined symbol" means that you have a keyword in the mapfile that MapServer doesn't understand. It is always advised that you "quote" all words and stuff, such as the name of your shapefile: Bad: DATA filenames.shp Good: DATA "filenames.shp" Where I would start debugging: I'd open up the mapfile and look for "Hidro.shp-0-0" which seems to be in a class somewhere, and post the layer definition. Then we can check for any obvious mistakes. All the rest of your errors, probably stem from that one. If your mapfile is broken, then $m = ms_newMapObj() will return a null, then later on your're caling $m->draw() and that's a non-object, and so on. Usually (but not always) the first error is the real one. -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ From gregor at hostgis.com Sun May 10 16:15:23 2009 From: gregor at hostgis.com (Gregor at HostGIS) Date: Sun, 10 May 2009 16:15:23 -0700 Subject: [mapserver-users] MapServer Error In-Reply-To: References: <4A071C8C.90100@hostgis.com> <4A075151.40601@hostgis.com> <4A0752C2.8060901@hostgis.com> Message-ID: <4A07600B.6090409@hostgis.com> > And the new error: > Warning: [MapServer Error]: msLoadSymbolSet(): First token must be > SYMBOLSET, this doesn't look like a symbol file. in > /home/orsep/public_html/gis2/incphp/globals.php on line 60 That means exactly what it says: symbol files must now start with SYMBOLSET and end with END. This is a security feature introduced in 5.2.1 and 5.4.0. -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ From vtammineni at roulacglobal.com Sun May 10 22:24:54 2009 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Mon, 11 May 2009 10:54:54 +0530 Subject: [mapserver-users] problem in reference map In-Reply-To: <20090508172404.M69970@deprem.gov.tr> References: <20090507115038.M79754@deprem.gov.tr> <4A02D387.5157.008F.0@dnr.state.mn.us> <20090508070209.M53227@deprem.gov.tr> <001101c9cfac$dea687b0$9bf39710$@com> <20090508172404.M69970@deprem.gov.tr> Message-ID: <006601c9d1f8$d2f31390$78d93ab0$@com> Hi, This one u should place in mapfile ###################### Refrence Map ##################### REFERENCE STATUS on IMAGE "..\images\india-map_small.png" SIZE 120 80 EXTENT 64.881 5.469 97.898 37.762 STATUS OFF COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 # MAXBOXSIZE 125 END ########### INCLUDE MAP FILE AREA################ This is my C# code for generating Refrence map.same time you need to have one temp folder with will store the temp images public void LoadLegend(System.Web.UI.WebControls.ImageButton imgleg) { try { string imageLoc; string imageURL; imageObj imgRef; imgRef = MapFunction.Map.drawReferenceMap(); imageLoc = MapFunction.OutputDir + "/" + System.DateTime.Now.ToBinary() + "." + imgRef.format.extension; // here u need to store images in temp forlder imageURL = imageLoc.Substring(imageLoc.IndexOf(MapFunction.OutputDirURL)); // here u need to give the image url imgRef.save(imageLoc, null); imgleg.Width = imgRef.width; imgleg.Height = imgRef.height; imgleg.ImageUrl = "../" + imageURL; MapFunction.IsMapInDirectory = false; } catch (Exception exp) { } } This is working for me in C#.I think it will give some idea. Thanks, Venkat Rao Tammineni Hyderbad India -----Original Message----- From: Ahmet Temiz [mailto:temiz at deprem.gov.tr] Sent: Friday, May 08, 2009 10:55 PM To: Venkat Rao Tammineni; 'Steve Lime'; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] problem in reference map Thank you I am using java. However, I try to adapt C# to java On Fri, 8 May 2009 12:46:09 +0530, Venkat Rao Tammineni wrote > HI, > > Which language you are using ...if it is C# , then I can help you. > > Thanks > Venkat > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ahmet Temiz > Sent: Friday, May 08, 2009 12:39 PM > To: Steve Lime; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] problem in reference map > > On Thu, 07 May 2009 12:26:47 -0500, Steve Lime wrote > > thank you > > reference map extent is same as main map extent. > I checked size of reference map. > > But the problem still exists. > > > Most likely your reference map size or extent are incorrect. That's > > where I'd start. > > > > Steve > > > > >>> On 5/7/2009 at 6:54 AM, in message > <20090507115038.M79754 at deprem.gov.tr>, > > "Ahmet Temiz" wrote: > > > hello > > > > > > the red box in my reference map isn't settled on my zoomed main map. > > > > > > what am I likely to miss ? > > > > > > regards > > > > > > Ahmet Temiz > > > > > > -- > > > Open WebMail Project (http://openwebmail.org) > > > > > > > -- > > This message has been scanned for viruses and > > dangerous content by MailScanner, and is > > believed to be clean. > > -- > Open WebMail Project (http://openwebmail.org) > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. -- Open WebMail Project (http://openwebmail.org) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From thomas.bonfort at camptocamp.com Sun May 10 22:28:43 2009 From: thomas.bonfort at camptocamp.com (Thomas Bonfort) Date: Mon, 11 May 2009 07:28:43 +0200 Subject: [mapserver-users] Label alignment . . . In-Reply-To: <4A01DC75.163B.00A8.0@ci.stpaul.mn.us> References: <4A01DC75.163B.00A8.0@ci.stpaul.mn.us> Message-ID: <2922382e0905102228rd7a6db9he22422e13c6ff6d3@mail.gmail.com> * Mapserver chooses the longest visible segment to place the label. If you set the LABEL_NO_CLIP processing keyword, it will select the longest segment of the underlying feature, whether it is visible or not. * There's no such thing as alignment between labels coming from different features. The alignment keyword is used for centering texct when it spans multiple lines inside a single label. regards, thomas www.camptocamp.com +33 4 79 26 57 97 On Thu, May 7, 2009 at 01:52, Bob Basques wrote: > All, > > I'm playing around with generating a map collar image by labeling some lines > with MapServer. > > I get the labels looking about what I would like them to look like, but the > alignment vertically ( and this applies to horizontal ?alignment as well ) > is not playing nice. > > See this link: > http://gis.ci.stpaul.mn.us/datasets/SHP/FED/USGS/USNG/mn_usng_lines_labels_public_2.map?mapext=503179.6728349806%20111379.8994326578%20508281.0020239575%20135621.41573867595&mapsize=70%20600&mode=map&MOOSETIME=1241653121858 > > I'm thinking that the labels are moving back and forth horizontally because > of the underlying line work, It's not strictly horizontal but curved > slightly, and there may or may not be a vertice visible within a view. ?(Can > a vertice be marked somehow?) So I think MapServer is using the longest > straight segment within the view to center on for labeling. > > Question, how do I get these to line up vertically (and horizontally)? ?I > know there was some recent justification work going on, but didn't follow it > in detail. > > Thanks > > bobb > > Pertinent mapfile chunks: > > ??LAYER > > ????METADATA > > ??????????"ows_title" "layer_0" > > ??????????"gml_include_items" > > ??????????"all" > > ????END > > ?????????NAME 'usng' > > ????DATA '0000_00/MN_Line_Experiments/MN_USNG_Ramsey_Line_Northing_Beta' > > ????STATUS DEFAULT > > ????TYPE LINE > > ????LABELITEM 'NORTHING' > > ????CLASS > > ??????LABEL > > ????????TYPE TRUETYPE > > ????????FONT bluehigh > > ????????SIZE 10 > > ????????COLOR 25 25 25 > > ????????OUTLINECOLOR 255 255 254 > > ????????ANGLE 0 > > ????????OFFSET -15 -1 > > ????????FORCE true > > ??????END > > ????END > > ??END > > ??LAYER > > ????METADATA > > ??????????"ows_title" "layer_0" > > ??????????"gml_include_items" > > ??????????"all" > > ????END > > ?????????NAME 'usng' > > ????DATA '0000_00/MN_Line_Experiments/MN_USNG_Ramsey_Line_Northing_Beta' > > ????STATUS DEFAULT > > ????TYPE LINE > > ????LABELITEM 'NORTHING' > > ????CLASS > > ??????LABEL > > ????????TYPE TRUETYPE > > ????????FONT bluehigh > > ????????SIZE 15 > > ????????COLOR 25 25 25 > > ????????OUTLINECOLOR 255 255 254 > > ????????ANGLE 0 > > ????????FORCE true > > ??????END > > ????END > > ??END > > ??LAYER > > ????METADATA > > ??????????"ows_title" "layer_0" > > ??????????"gml_include_items" > > ??????????"all" > > ????END > > ?????????NAME 'usng' > > ????DATA '0000_00/MN_Line_Experiments/MN_USNG_Ramsey_Line_Northing_Beta' > > ????STATUS DEFAULT > > ????TYPE LINE > > ????LABELITEM 'NORTHING' > > ????CLASS > > ??????LABEL > > ????????TYPE TRUETYPE > > ????????FONT bluehigh > > ????????SIZE 10 > > ????????COLOR 25 25 25 > > ????????OUTLINECOLOR 255 255 254 > > ????????ANGLE 0 > > ????????OFFSET 14 -1 > > ????????FORCE true > > ??????END > > ????END > > ????MAXSCALE 5000000 > > ??END > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From peter_rose at hotmail.com Mon May 11 03:36:07 2009 From: peter_rose at hotmail.com (Peter Rose) Date: Mon, 11 May 2009 03:36:07 -0700 (PDT) Subject: [mapserver-users] Another mailing list for MapServer? In-Reply-To: References: <1241777425282-2844517.post@n2.nabble.com> <2843.145.50.39.11.1241778345.squirrel@webmail.hostingdiscounter.nl> <1241786127117-2845039.post@n2.nabble.com> <65472.145.50.39.11.1241786542.squirrel@webmail.hostingdiscounter.nl> <4A0443F8.6010102@swoodbridge.com> <1241798527094-2846149.post@n2.nabble.com> Message-ID: <1242038167675-2862246.post@n2.nabble.com> Hi Jim, This is exactly the way I have added the points! I have to admit I?m not that very strong in php so I have just followed Kropla?s example and only changed the row numbers to fit my database. You say it is easy to add fieldnames to the features but how do I do this? Do I simply add a new row pointing to the fiscal value in row 8 like this; $fiscal[$i]->set (Fiscal, $row[8]); And will this allow me to use the EXPRESSION in the mapfile that I?ve already got or do I need to write it into this function? Best regards, Peter -- View this message in context: http://n2.nabble.com/Another-mailing-list-for-MapServer--tp2844517p2862246.html Sent from the Mapserver - User mailing list archive at Nabble.com. From medvezs84 at gmail.com Mon May 11 03:49:45 2009 From: medvezs84 at gmail.com (Medve Zsolt) Date: Mon, 11 May 2009 12:49:45 +0200 Subject: [mapserver-users] SDE support for mapserver Message-ID: <4A0802C9.8000306@gmail.com> Hy all!! How can i get SDE support for mapserver? i look at the supoorts i have, but theres is no SDE, I have to dowload files or how? pls help me Best Regard Zsolt From adams at terrestris.de Mon May 11 03:53:57 2009 From: adams at terrestris.de (Till Adams) Date: Mon, 11 May 2009 12:53:57 +0200 Subject: [mapserver-users] SDE support for mapserver In-Reply-To: <4A0802C9.8000306@gmail.com> References: <4A0802C9.8000306@gmail.com> Message-ID: <4A0803C5.2020401@terrestris.de> Medve Zsolt schrieb: > Hy all!! > > How can i get SDE support for mapserver? i look at the supoorts i > have, but theres is no SDE, > I have to dowload files or how? > pls help me > > Best Regard > Zsolt > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > your gdal must be compiled with access to some arcsde libraries. See: http://ms.gis.umn.edu:8081/ms_plone/docs/reference/vector_data/arcsde Regards, Till -- ---------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Gesch?ftsf?hrung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 adams at terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplement?rin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From leonidas_liakos at yahoo.gr Mon May 11 06:00:03 2009 From: leonidas_liakos at yahoo.gr (leonidas) Date: Mon, 11 May 2009 06:00:03 -0700 (PDT) Subject: [mapserver-users] Check layer status in Geomoose Message-ID: <1242046803101-2862814.post@n2.nabble.com> I'm writing a custom tool in geomoose based on php/mapscript. I'm trying to get the layer status for each on of my layers using $qlayer->status property. Always and for each layer it returns the value 2. But there aren't all the layers checked in the treeview of geomoose (and according displayed in the map). I think that $qlayer->status property always return 2 because it checks the status in the mapfile (for my layers the status is DEFAULT) and not what is displayed in the map. So how can I get only the layers that are displayed in the map (or are checked in the treeview of Geomoose)? I also checked the $qlayer->isVisible() property but it also works with the same logic (it returns 1 for all layers, displayed or not).Thank you. -- View this message in context: http://n2.nabble.com/Check-layer-status-in-Geomoose-tp2862814p2862814.html Sent from the Mapserver - User mailing list archive at Nabble.com. From hobu.inc at gmail.com Mon May 11 07:57:14 2009 From: hobu.inc at gmail.com (Howard Butler) Date: Mon, 11 May 2009 09:57:14 -0500 Subject: [mapserver-users] SDE support for mapserver In-Reply-To: <4A0803C5.2020401@terrestris.de> References: <4A0802C9.8000306@gmail.com> <4A0803C5.2020401@terrestris.de> Message-ID: On May 11, 2009, at 5:53 AM, Till Adams wrote: > Medve Zsolt schrieb: >> Hy all!! >> >> How can i get SDE support for mapserver? i look at the supoorts i >> have, but theres is no SDE, >> I have to dowload files or how? >> pls help me >> >> Best Regard >> Zsolt >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > your gdal must be compiled with access to some arcsde libraries. > > See: > http://ms.gis.umn.edu:8081/ms_plone/docs/reference/vector_data/arcsde http://www.mapserver.org/installation/unix.html#arcsde would be the current link to info about installation http://www.mapserver.org/input/vector/arcsde.html would be the current link to usage Howard From massimo.ferraguto at ssf.fi Tue May 12 00:17:25 2009 From: massimo.ferraguto at ssf.fi (Massimo Ferraguto) Date: Tue, 12 May 2009 10:17:25 +0300 Subject: [mapserver-users] mapserver SOS blockSeparator Message-ID: <6EEF55C8C52EAF478462702546102BDDD6FCF4@spock.ssf.fi> Hello, If I send a SOS GetObservation request to mapserver using ResultModel=om:Observation then the response contains the following strange thing: the problem is blockSeparator=",@@" it should be blockSeparator="@@", without the comma ',' My mapfile contains the following: "sos_encoding_blockSeparator" "@@" Has this problem been encountered by somebody else? Should a bug be filed in the bug tracker? I use mapserver 5.2.2 MassimoF From frigerio at itc.nl Tue May 12 02:43:50 2009 From: frigerio at itc.nl (Simone Frigerio) Date: Tue, 12 May 2009 11:43:50 +0200 Subject: [mapserver-users] PHP conflict Message-ID: <5AF149DBB6DFE24AA3F4F53201E539AD055B709B@itcnt24.itc.nl> Hello, I'm working on a cartoweb project and on localhost there's no problem of installation or configuration. Now I had to transfer the application on a Server IIS. Apache and PHP are already setup on the machine, but PHP.exe has a directory that is in conflict with Cartoweb setup on php. I installed cartoweb, every folder is on the same place, but when I launch "project".php there is a failure. Is it possible to change cartoweb setup for php and let it simply to use php.exe present on IIS? In which file can I setup this configuration? Thanks a lot. Simone International Institute for Geo-Information Science and Earth Observation (ITC) Chamber of Commerce: 410 27 560 E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. -------------- next part -------------- An HTML attachment was scrubbed... URL: From medvezs84 at gmail.com Tue May 12 03:06:58 2009 From: medvezs84 at gmail.com (Medve Zsolt) Date: Tue, 12 May 2009 12:06:58 +0200 Subject: [mapserver-users] SDE support help Message-ID: <7d56e9e10905120306u1f7d27b7sfe123ce460ced476@mail.gmail.com> Hy I wrote a mail some days ago, but i cant find a solution for my problems. I read an artice about compileing mapserver on win32 ( i use win) but for me its a bit difficult. i read this: http://www.mapserver.org/installation/win32.html i look at my maperv.exe again ..looks something like on the attachment pic. the point is that there are no line like "input=SDE" Can someone help me a little bit more? i never did things like this before. idownloaded a ms4w package ,installed it , thats all...compilation is more difficult for me right now I waiting for your help in privat mails thank in advance Zsolt -- -[MaC]- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: support.jpg Type: image/jpeg Size: 25884 bytes Desc: not available URL: From Tom.Kralidis at ec.gc.ca Tue May 12 04:56:09 2009 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Tue, 12 May 2009 07:56:09 -0400 Subject: [mapserver-users] mapserver SOS blockSeparator In-Reply-To: <6EEF55C8C52EAF478462702546102BDDD6FCF4@spock.ssf.fi> References: <6EEF55C8C52EAF478462702546102BDDD6FCF4@spock.ssf.fi> Message-ID: <23842457308FD64AA88A8EE62F2A7D5B8339EC@OntExch3.ontario.int.ec.gc.ca> > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Massimo Ferraguto > Sent: Tuesday, 12 May 2009 03:17 > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] mapserver SOS blockSeparator > > Hello, > > If I send a SOS GetObservation request to mapserver using > ResultModel=om:Observation then the response contains the > following strange > thing: > > > decimalSeparator="."/> > > > the problem is blockSeparator=",@@" > it should be blockSeparator="@@", without the comma ',' > > My mapfile contains the following: > "sos_encoding_blockSeparator" "@@" > > Has this problem been encountered by somebody else? > > Should a bug be filed in the bug tracker? > Yes, please file a ticket and assign to me (tomkralidis). > I use mapserver 5.2.2 > > MassimoF > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jmckenna at gatewaygeomatics.com Tue May 12 05:18:56 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 12 May 2009 08:18:56 -0400 Subject: [mapserver-users] SDE support help In-Reply-To: <7d56e9e10905120306u1f7d27b7sfe123ce460ced476@mail.gmail.com> References: <7d56e9e10905120306u1f7d27b7sfe123ce460ced476@mail.gmail.com> Message-ID: <4A096930.4090806@gatewaygeomatics.com> Medve Zsolt wrote: > Hy > > I wrote a mail some days ago, but i cant find a solution for my > problems. I read an artice about compileing mapserver on win32 ( i use > win) but for me its a bit difficult. > > i read this: > http://www.mapserver.org/installation/win32.html > > i look at my maperv.exe again ..looks something like on the attachment pic. > > the point is that there are no line like "input=SDE" > > Can someone help me a little bit more? i never did things like this > before. idownloaded a ms4w package ,installed it , thats > all...compilation is more difficult for me right now > I waiting for your help in privat mails > > thank in advance > Zsolt > > Hello, Yes compiling on Windows is very tricky. Here are some SDE notes: - build GDAL with the SDE section commented - uncomment the SDE section and build the GDAL SDE plugin and the OGR SDE plugin - build MapServer normally - then uncomment the appropriate SDE lines in nmake.opt - make sure to uncomment SDE_OPT = -DUSE_SDE_PLUGIN - then build: nmake /f Makefile.vc plugins - point your SDE vector layer in your mapfile to this MapServer plugin dll using the PLUGIN parameter - for raster layers, GDAL is used so make sure that your GDAL SDE plugin is loaded (test with 'gdalinfo --formats') - example mapfile layers are included in /ms4w/Apache/cgi-bin/ignored-libmap/sde/README-sde.txt in the MS4W 3.0 betas Yes that is confusing and tricky. Notes: - SDE is fully supported in the MS4W 2.3.1 release - if you need formal support (such as a custom build) please contact me directly Have fun. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From jmckenna at gatewaygeomatics.com Tue May 12 05:35:17 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 12 May 2009 08:35:17 -0400 Subject: [mapserver-users] SDE support help In-Reply-To: <4A096930.4090806@gatewaygeomatics.com> References: <7d56e9e10905120306u1f7d27b7sfe123ce460ced476@mail.gmail.com> <4A096930.4090806@gatewaygeomatics.com> Message-ID: <4A096D05.8060608@gatewaygeomatics.com> > Medve Zsolt wrote: >> Hy >> >> I wrote a mail some days ago, but i cant find a solution for my >> problems. I read an artice about compileing mapserver on win32 ( i use >> win) but for me its a bit difficult. >> >> i read this: >> http://www.mapserver.org/installation/win32.html >> >> i look at my maperv.exe again ..looks something like on the attachment >> pic. >> >> the point is that there are no line like "input=SDE" >> >> Can someone help me a little bit more? i never did things like this >> before. idownloaded a ms4w package ,installed it , thats >> all...compilation is more difficult for me right now >> I waiting for your help in privat mails >> >> thank in advance >> Zsolt >> I may have misunderstood your question. If you are asking how to access SDE layers using MS4W 2.3.1 - see /ms4w/Apache/cgi-bin/ignored-libmap/sde/README-sde.txt If you have questions please use the MS4W mailing list. Thanks. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From pal.kristensen at statkart.no Tue May 12 07:18:56 2009 From: pal.kristensen at statkart.no (paalkr) Date: Tue, 12 May 2009 07:18:56 -0700 (PDT) Subject: [mapserver-users] Clipping out unprojectable area? In-Reply-To: <499389FE.5020606@hostgis.com> References: <4990AFF5.1010107@hostgis.com> <20090209234047.GF25534@metacarta.com> <4990C85F.4030101@hostgis.com> <20090210010427.GH25534@metacarta.com> <499389FE.5020606@hostgis.com> Message-ID: <1242137936110-2869427.post@n2.nabble.com> Hi! I'm trying to achieve the same thing, but I need some hints on how to incorporate the spatial filter in the DATA statement. This is a snippet from my mapfile DATA "geometri from general.country USING UNIQUE ogc_fid USING SRID=4326" and this is the spatial filter i try to apply ST_Intersection(geometri,GeomFromText('POLYGON((12 0,18 0,18 84,12 84,12 0))',4326)) but I don't manage build the right the DATA statement! Can someone please help with the DATA statement? Regards, P?l Kristensen Gregor at HostGIS wrote: > > With some SQL know-how I did get the EPSG database merged with our own > spatial_ref_sys table (it has other mods for our uses, so this was > trivial) and our program generating ST_Intersection(the_geom) statements. > > This does work as expected, which is great. Thanks for another simple > and elegant solution, Christopher. > > Now to cope with some of our data having self-intersecting polygons > which break such operators... > > -- > Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ > System Administrator, Lead Programmer > HostGIS development & hosting services, http://www.HostGIS.com/ > > "Remember that no one cares if you can back up, > only if you can restore." - AMANDA > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ----- Regards, P?l Kristensen -- View this message in context: http://n2.nabble.com/Clipping-out-unprojectable-area--tp2299847p2869427.html Sent from the Mapserver - User mailing list archive at Nabble.com. From danlittle at yahoo.com Tue May 12 09:59:03 2009 From: danlittle at yahoo.com (Dan Little) Date: Tue, 12 May 2009 09:59:03 -0700 (PDT) Subject: [mapserver-users] Check layer status in Geomoose In-Reply-To: <1242046803101-2862814.post@n2.nabble.com> References: <1242046803101-2862814.post@n2.nabble.com> Message-ID: <348775.92557.qm@web51408.mail.re2.yahoo.com> You need to have an input type that sends the visiblelayers input to your script. Are you using GeoMOOSE 1.6.X or GeoMOOSE 2.0 beta? ----- Original Message ---- > From: leonidas > To: mapserver-users at lists.osgeo.org > Sent: Monday, May 11, 2009 8:00:03 AM > Subject: [mapserver-users] Check layer status in Geomoose > > > I'm writing a custom tool in geomoose based on php/mapscript. > I'm trying to get the layer status for each on of my layers using > $qlayer->status property. > Always and for each layer it returns the value 2. But there aren't all the > layers checked in the treeview of geomoose (and according displayed in the > map). I think that $qlayer->status property always return 2 because it > checks the status in the mapfile (for my layers the status is DEFAULT) and > not what is displayed in the map. So how can I get only the layers that are > displayed in the map (or are checked in the treeview of Geomoose)? I also > checked the $qlayer->isVisible() property but it also works with the same > logic (it returns 1 for all layers, displayed or not).Thank you. > -- > View this message in context: > http://n2.nabble.com/Check-layer-status-in-Geomoose-tp2862814p2862814.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From leonidas_liakos at yahoo.gr Tue May 12 11:08:54 2009 From: leonidas_liakos at yahoo.gr (Leonidas Liakos) Date: Tue, 12 May 2009 18:08:54 +0000 (GMT) Subject: [mapserver-users] Check layer status in Geomoose In-Reply-To: <348775.92557.qm@web51408.mail.re2.yahoo.com> Message-ID: <221282.5859.qm@web23606.mail.ird.yahoo.com> Thank you, I found it just looking at default identify tool.Is that option documented? --- ???? ????., 12/05/09, ?/? Dan Little ??????: > ???: Dan Little > ????: Re: [mapserver-users] Check layer status in Geomoose > ????: "leonidas" , mapserver-users at lists.osgeo.org > ??????????: ?????, 12 ????? 2009, 19:59 > You need to have an input type that sends the visiblelayers > input to your script. > > Are you using GeoMOOSE 1.6.X or GeoMOOSE 2.0 beta? > > > ----- Original Message ---- > > From: leonidas > > To: mapserver-users at lists.osgeo.org > > Sent: Monday, May 11, 2009 8:00:03 AM > > Subject: [mapserver-users] Check layer status in > Geomoose > > > > > > I'm writing a custom tool in geomoose based on > php/mapscript. > > I'm trying to get the layer status for each on of > my layers using > > $qlayer->status property. > > Always and for each layer it returns the value 2. But > there aren't all the > > layers checked in the treeview of geomoose (and > according displayed in the > > map). I think that $qlayer->status property always > return 2 because it > > checks the status in the mapfile (for my layers the > status is DEFAULT) and > > not what is displayed in the map. So how can I get > only the layers that are > > displayed in the map (or are checked in the treeview > of Geomoose)? I also > > checked the $qlayer->isVisible() property but it > also works with the same > > logic (it returns 1 for all layers, displayed or > not).Thank you. > > -- > > View this message in context: > > > http://n2.nabble.com/Check-layer-status-in-Geomoose-tp2862814p2862814.html > > Sent from the Mapserver - User mailing list archive at > Nabble.com. > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users ___________________________________________________________ ?????????????? Yahoo!; ?????????? ?? ?????????? ???????? (spam); ?? Yahoo! Mail ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? ????????? http://login.yahoo.com/config/mail?.intl=gr From roberto.garcia at cptec.inpe.br Tue May 12 11:15:26 2009 From: roberto.garcia at cptec.inpe.br (Jose Roberto M. Garcia, MSc) Date: Tue, 12 May 2009 15:15:26 -0300 Subject: [mapserver-users] GRIB files Message-ID: <4A09BCBE.9010903@cptec.inpe.br> Hi all, I'm trying to work with GRIB files in MapServer but it's not working. I know that when we work with images we need to classify the output using "[pixel]" as a CLASSITEM and make classes for each value but how is it for GRIB files? I have several levels an variables in it. How do I classify them? Does anybody explain me? Tks in advance Roberto Garcia, Msc Database Group / CPTEC / INPE Voice: +55 (12) 3186-8405 -- The fight against the global warming depends on us, do it right, save natural resources. -- http://www.cptec.inpe.br http://www.inpe.br From warmerdam at pobox.com Tue May 12 11:33:20 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 12 May 2009 14:33:20 -0400 Subject: [mapserver-users] GRIB files In-Reply-To: <4A09BCBE.9010903@cptec.inpe.br> References: <4A09BCBE.9010903@cptec.inpe.br> Message-ID: <4A09C0F0.4030501@pobox.com> Jose Roberto M. Garcia, MSc wrote: > Hi all, > > I'm trying to work with GRIB files in MapServer but it's not working. I > know that when we work with images we need to classify the output using > "[pixel]" as a CLASSITEM and make classes for each value but how is it > for GRIB files? I have several levels an variables in it. How do I > classify them? Does anybody explain me? Roberto, It would be helpful if you could make a GRIB file typical of what you want to use available for download, so we could speak in the context of that file. Grib files often include a number of variables. These variables typically get unrolled as bands. If the variable is 3D (ie. has a time or elevation dimension) then it may be unrolled as multiple bands from a GDAL point of view. One sample GRIB file I happen to have ends up with 40 bands, two of which look like this when reported by gdalinfo: Band 1 Block=360x1 Type=Float64, ColorInterp=Undefined Description = 5[m] DBSL (Depth below sea level) Metadata: GRIB_UNIT=[K] GRIB_COMMENT=Potential temperature [K] GRIB_ELEMENT=POT GRIB_SHORT_NAME=5-DBSL GRIB_REF_TIME= 1130716800 sec UTC GRIB_VALID_TIME= 1133308800 sec UTC GRIB_FORECAST_SECONDS=2592000 sec Band 2 Block=360x1 Type=Float64, ColorInterp=Undefined Description = 15[m] DBSL (Depth below sea level) Metadata: GRIB_UNIT=[K] GRIB_COMMENT=Potential temperature [K] GRIB_ELEMENT=POT GRIB_SHORT_NAME=15-DBSL GRIB_REF_TIME= 1130716800 sec UTC GRIB_VALID_TIME= 1133308800 sec UTC GRIB_FORECAST_SECONDS=2592000 sec As you can see these are temperature values for different depths below sea level. Once you know what band(s) you want to work with in MapServer you can select them using the BANDS= processing directive. eg. PROCESSING "BANDS=2" would select the 2nd band for display. Then you can use classification as you describe. In this case the pixel values are presumably floating point temperatures measured in degrees Kelvin though I'm not that familiar with the product. Pay particular attention to the online mapserver docs on classifying non-8bit data as there are some caveats in this regard. I hope this gets you going. I would suggest: o inspecting your file(s) with gdalinfo, reviewing the metadata. o Translate individual bands into GeoTIFF files and visualize and inspect the results with desktop software like QGIS or OpenEV. Then move to mapserver once you are more comfortable you know how the data is being represented through GDAL. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From thomas.bonfort at camptocamp.com Tue May 12 12:19:06 2009 From: thomas.bonfort at camptocamp.com (Thomas Bonfort) Date: Tue, 12 May 2009 21:19:06 +0200 Subject: [mapserver-users] SVN sandox access Message-ID: <2922382e0905121219v504027dr5aaca867ce253efa@mail.gmail.com> Hi all, Hobu has just added a group in our svn repository to allow commit access in the MapServer sandbox. Those interested in commit access, please contact me privately with an osgeo id [1] so I can add them to the group. best regards, thomas [1] http://www.osgeo.org/osgeo_userid www.camptocamp.com +33 4 79 26 57 97 From meenu.monu at gmail.com Wed May 13 01:31:17 2009 From: meenu.monu at gmail.com (meenu) Date: Wed, 13 May 2009 01:31:17 -0700 (PDT) Subject: [mapserver-users] is animated symbols possible in mapserver website? Message-ID: <1242203477096-2879766.post@n2.nabble.com> dears, how can i add animated symbols in mapserver map ....i need to add symbols like this website(http://www.alovelyworld.com/)...is it possible...now am using the symbol star like as follows...can anybody help me for this? Symbol Name 'star' Type VECTOR Filled TRUE Points 0 .375 .35 .375 .5 0 .65 .375 1 .375 .75 .625 .875 1 .5 .75 .125 1 .25 .625 END END ----- Meenu -- View this message in context: http://n2.nabble.com/is-animated-symbols-possible-in-mapserver-website--tp2879766p2879766.html Sent from the Mapserver - User mailing list archive at Nabble.com. From meenu.monu at gmail.com Wed May 13 01:57:55 2009 From: meenu.monu at gmail.com (meenu) Date: Wed, 13 May 2009 01:57:55 -0700 (PDT) Subject: [mapserver-users] is animated symbols possible in mapserver website? In-Reply-To: <1242203477096-2879766.post@n2.nabble.com> References: <1242203477096-2879766.post@n2.nabble.com> Message-ID: <1242205075772-2879909.post@n2.nabble.com> dears..i did this part like as follows...but the animation is not working...that means ball colour is not changing SYMBOL NAME "ball" TYPE pixmap IMAGE "\images\ball.gif" END ----- Meenu -- View this message in context: http://n2.nabble.com/is-animated-symbols-possible-in-mapserver-website--tp2879766p2879909.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Wed May 13 02:47:33 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 13 May 2009 12:47:33 +0300 Subject: [mapserver-users] is animated symbols possible in mapserverwebsite? In-Reply-To: <1242205075772-2879909.post@n2.nabble.com> References: <1242203477096-2879766.post@n2.nabble.com> <1242205075772-2879909.post@n2.nabble.com> Message-ID: meenu wrote: > > dears..i did this part like as follows...but the animation is > not working...that means ball colour is not changing > > SYMBOL > NAME "ball" > TYPE pixmap > IMAGE "\images\ball.gif" > END I guess that getting this effect with Mapserver would mean creating an animated gif about the whole map and sending that our. I believe that Mapserver does not support this but it building and sending just static images for the client and in this case that static image contains only some fixed pixels which originate from your animated "ball.gif" file. I would guess that they always come from the first frame of the gif file. I do not know enough about web techniques to say how to make what you want. For sure it is possible somehow. I guess it would mean something like sending the base map for the background and the ball.gif to be drawn on top of that and a clever client that puts them together. -Jukka Rahkonen- From meenu.monu at gmail.com Wed May 13 04:52:29 2009 From: meenu.monu at gmail.com (meenu) Date: Wed, 13 May 2009 04:52:29 -0700 (PDT) Subject: [mapserver-users] need to do the coding in VB using TutorialMapServerSolution.zip In-Reply-To: <1241935405805-2852968.post@n2.nabble.com> References: <1241935405805-2852968.post@n2.nabble.com> Message-ID: <1242215549971-2883259.post@n2.nabble.com> dears....i solved my problem using the samples(ASPNET20Sample_50.zip) available in (http://www.coordinatesolutions.com/Samples.aspx).....actually am not familiar with c#...thats y changed coding language from c# to VB.... regards ----- Meenu -- View this message in context: http://n2.nabble.com/need-to-do-the-coding-in-VB-using--TutorialMapServerSolution.zip-tp2852968p2883259.html Sent from the Mapserver - User mailing list archive at Nabble.com. From meenu.monu at gmail.com Wed May 13 05:41:57 2009 From: meenu.monu at gmail.com (meenu) Date: Wed, 13 May 2009 05:41:57 -0700 (PDT) Subject: [mapserver-users] hotspot information on point layers Message-ID: <1242218517448-2883485.post@n2.nabble.com> hi ..advance thanks to all ,in a mapserver project how possible to do the hotspot information of points...for eg i have one pointlocation table like as follows...when the mouse is on the top of these points,need to generte one hotspot information regarding this point with an image...can anybody help me to do this part...regards ****************** LAYER NAME "n_twns" TYPE POINT CONNECTIONTYPE OGR CONNECTION "n_twns.TAB" STATUS ON LABELITEM "NAME" CLASS #SIZE 10 STYLE COLOR 255 0 0 OUTLINECOLOR 0 0 0 SYMBOL 'ball' END #STYLE LABEL COLOR 100 100 255 FONT arial TYPE TRUETYPE SIZE 7 POSITION LC WRAP " " END#LABEL END# CLASS END#LAYER ***************** ----- Meenu -- View this message in context: http://n2.nabble.com/hotspot-information-on-point-layers-tp2883485p2883485.html Sent from the Mapserver - User mailing list archive at Nabble.com. From roberto.garcia at cptec.inpe.br Wed May 13 05:41:48 2009 From: roberto.garcia at cptec.inpe.br (Roberto Garcia,MSc) Date: Wed, 13 May 2009 09:41:48 -0300 Subject: [mapserver-users] GRIB files In-Reply-To: <4A09C0F0.4030501@pobox.com> References: <4A09BCBE.9010903@cptec.inpe.br> <4A09C0F0.4030501@pobox.com> Message-ID: <4A0AC00C.1010306@cptec.inpe.br> Hi, tks for the answers. According to my gdainfo output file attached, can anyone tell me what element could be a CLASSITEM? I can see my grib using Grads but what tool do I use to translate individual bands into GeoTIFF? Converting the data on-the-fly to an image is the right way to work? What are the problems with Apache if I do not do so? Tks Frank Warmerdam wrote: > Jose Roberto M. Garcia, MSc wrote: >> Hi all, >> >> I'm trying to work with GRIB files in MapServer but it's not working. >> I know that when we work with images we need to classify the output >> using "[pixel]" as a CLASSITEM and make classes for each value but >> how is it for GRIB files? I have several levels an variables in it. >> How do I classify them? Does anybody explain me? > > Roberto, > > It would be helpful if you could make a GRIB file typical of what you > want > to use available for download, so we could speak in the context of > that file. > > Grib files often include a number of variables. These variables > typically > get unrolled as bands. If the variable is 3D (ie. has a time or > elevation > dimension) then it may be unrolled as multiple bands from a GDAL point of > view. One sample GRIB file I happen to have ends up with 40 bands, > two of > which look like this when reported by gdalinfo: > > Band 1 Block=360x1 Type=Float64, ColorInterp=Undefined > Description = 5[m] DBSL (Depth below sea level) > Metadata: > GRIB_UNIT=[K] > GRIB_COMMENT=Potential temperature [K] > GRIB_ELEMENT=POT > GRIB_SHORT_NAME=5-DBSL > GRIB_REF_TIME= 1130716800 sec UTC > GRIB_VALID_TIME= 1133308800 sec UTC > GRIB_FORECAST_SECONDS=2592000 sec > Band 2 Block=360x1 Type=Float64, ColorInterp=Undefined > Description = 15[m] DBSL (Depth below sea level) > Metadata: > GRIB_UNIT=[K] > GRIB_COMMENT=Potential temperature [K] > GRIB_ELEMENT=POT > GRIB_SHORT_NAME=15-DBSL > GRIB_REF_TIME= 1130716800 sec UTC > GRIB_VALID_TIME= 1133308800 sec UTC > GRIB_FORECAST_SECONDS=2592000 sec > > As you can see these are temperature values for different depths > below sea level. > > Once you know what band(s) you want to work with in MapServer you can > select them using the BANDS= processing directive. > > eg. > PROCESSING "BANDS=2" > > would select the 2nd band for display. > > Then you can use classification as you describe. In this case the > pixel values are presumably floating point temperatures measured in > degrees Kelvin though I'm not that familiar with the product. Pay > particular attention to the online mapserver docs on classifying > non-8bit data as there are some caveats in this regard. I hope this > gets you going. > > I would suggest: > o inspecting your file(s) with gdalinfo, reviewing the metadata. > o Translate individual bands into GeoTIFF files and visualize > and inspect the results with desktop software like QGIS or OpenEV. > > Then move to mapserver once you are more comfortable you know how > the data is being represented through GDAL. > > Best regards, -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: gdainfo.txt URL: From no-reply at neogeo-online.net Wed May 13 05:54:31 2009 From: no-reply at neogeo-online.net (Guillaume Sueur) Date: Wed, 13 May 2009 14:54:31 +0200 Subject: [mapserver-users] hotspot information on point layers In-Reply-To: <1242218517448-2883485.post@n2.nabble.com> References: <1242218517448-2883485.post@n2.nabble.com> Message-ID: <4A0AC307.9000501@neogeo-online.net> Hi, That will mainly depend on your client side implementation, in which the map image itself will be displayed. For example, if you use OpenLayers as a client, you can set a mouseOver or mouseClick on your layer, and trigger a WMS getFeatureInfo request on it. Regards Guillaume meenu a ?crit : > hi ..advance thanks to all ,in a mapserver project how possible to do the > hotspot information of points...for eg i have one pointlocation table like > as follows...when the mouse is on the top of these points,need to generte > one hotspot information regarding this point with an image...can anybody > help me to do this part...regards > ****************** > LAYER > NAME "n_twns" > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "n_twns.TAB" > STATUS ON > LABELITEM "NAME" > CLASS > #SIZE 10 > STYLE > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > SYMBOL 'ball' > END #STYLE > LABEL > COLOR 100 100 255 > FONT arial > TYPE TRUETYPE > SIZE 7 > POSITION LC > WRAP " " > END#LABEL > END# CLASS > END#LAYER > ***************** > > ----- > Meenu From warmerdam at pobox.com Wed May 13 06:47:53 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 13 May 2009 09:47:53 -0400 Subject: [mapserver-users] GRIB files In-Reply-To: <4A0AC00C.1010306@cptec.inpe.br> References: <4A09BCBE.9010903@cptec.inpe.br> <4A09C0F0.4030501@pobox.com> <4A0AC00C.1010306@cptec.inpe.br> Message-ID: <4A0ACF89.3010004@pobox.com> Roberto Garcia,MSc wrote: > Hi, tks for the answers. > > According to my gdainfo output file attached, can anyone tell me what > element could be a CLASSITEM? Roberto, In MapServer you always classify rasters based on the item [pixel] but you do not need to explicitly state a classitem. This is a relatively simple example of raster classification. LAYER NAME grid1 TYPE raster STATUS default DATA data/float.tif CLASS NAME "red" EXPRESSION ([pixel] < -3) COLOR 255 0 0 END CLASS NAME "green" EXPRESSION ([pixel] >= -3 and [pixel] < 3) COLOR 0 255 0 END CLASS NAME "blue" EXPRESSION ([pixel] >= 3) COLOR 0 0 255 END END > I can see my grib using Grads but what tool do I use to translate > individual bands into GeoTIFF? You can use gdal_translate to extract particular bands from a grib file as a geotiff (or all the bands). For instance, the following would extract band 3 (total precipitation): gdal_translate -b 3 T126L28.grb total_precip.tif > Converting the data on-the-fly to an image is the right way to work? Having MapServer access the grib file on the fly rather than depending on pre-translated extracts will reduce data duplication and may help avoid confusion about what is up to date. However, it is possible that there will be a performance penalty for extracting directly from GRIB. If so, it may not be significant enough to matter to you. > What are the problems with Apache if I do not do so? I don't see how either approach relates to Apache. It is a data management and possibly performance issue with 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 | Geospatial Programmer for Rent From joyw at intierra.com Wed May 13 19:55:16 2009 From: joyw at intierra.com (Joy Babe) Date: Wed, 13 May 2009 19:55:16 -0700 (PDT) Subject: [mapserver-users] WFS Compression Message-ID: <1242269716721-2887927.post@n2.nabble.com> Hi I am using mapserver 5.1-dev on a windows system with IIS and the data is in a postgresql 8.2 database. We have some very large datasets that are accessible via WFS however the large file sizes cause mapserver timeouts. Are any plans to include compressed GML as an output in the windows version of mapserver? Regards -- View this message in context: http://n2.nabble.com/WFS-Compression-tp2887927p2887927.html Sent from the Mapserver - User mailing list archive at Nabble.com. From gregor at hostgis.com Wed May 13 19:57:09 2009 From: gregor at hostgis.com (Gregor at HostGIS) Date: Wed, 13 May 2009 19:57:09 -0700 Subject: [mapserver-users] WFS Compression In-Reply-To: <1242269716721-2887927.post@n2.nabble.com> References: <1242269716721-2887927.post@n2.nabble.com> Message-ID: <4A0B8885.2080306@hostgis.com> > Are any plans to include compressed GML as an output in the windows version > of mapserver? Typically that would be handled silently by your webserver, if the browser supplies an Accept-encoding header including deflate or gzip. Alternately, you can have more control over the process with some compression modules in Apache such as mod_deflate and mod_gz. -- HostGIS, Open Source solutions for the global GIS community Greg Allensworth - SysAdmin, Programmer, GIS Person, Security Network+ Server+ A+ Security+ From danlittle at yahoo.com Wed May 13 20:08:01 2009 From: danlittle at yahoo.com (Dan Little) Date: Wed, 13 May 2009 20:08:01 -0700 (PDT) Subject: [mapserver-users] Check layer status in Geomoose In-Reply-To: <221282.5859.qm@web23606.mail.ird.yahoo.com> References: <221282.5859.qm@web23606.mail.ird.yahoo.com> Message-ID: <899845.94535.qm@web51411.mail.re2.yahoo.com> GeoMOOSE 1.6.X (and 2.0) suffer some documentation difficulties... it's a "learn by example" setup right now. We're trying to get better with GM2.0 and its documentation is arguably better (http://www.geomoose.org/geomoose2/docs/) than GM1.6 but I still need to do more work documenting the different input options. ----- Original Message ---- > From: Leonidas Liakos > To: mapserver-users at lists.osgeo.org; Dan Little > Sent: Tuesday, May 12, 2009 1:08:54 PM > Subject: Re: [mapserver-users] Check layer status in Geomoose > > > Thank you, I found it just looking at default identify tool.Is that option > documented? > > > --- ???? ????., 12/05/09, ?/? Dan Little ??????: > > > ???: Dan Little > > ????: Re: [mapserver-users] Check layer status in Geomoose > > ????: "leonidas" , mapserver-users at lists.osgeo.org > > ??????????: ?????, 12 ????? 2009, 19:59 > > You need to have an input type that sends the visiblelayers > > input to your script. > > > > Are you using GeoMOOSE 1.6.X or GeoMOOSE 2.0 beta? > > > > > > ----- Original Message ---- > > > From: leonidas > > > To: mapserver-users at lists.osgeo.org > > > Sent: Monday, May 11, 2009 8:00:03 AM > > > Subject: [mapserver-users] Check layer status in > > Geomoose > > > > > > > > > I'm writing a custom tool in geomoose based on > > php/mapscript. > > > I'm trying to get the layer status for each on of > > my layers using > > > $qlayer->status property. > > > Always and for each layer it returns the value 2. But > > there aren't all the > > > layers checked in the treeview of geomoose (and > > according displayed in the > > > map). I think that $qlayer->status property always > > return 2 because it > > > checks the status in the mapfile (for my layers the > > status is DEFAULT) and > > > not what is displayed in the map. So how can I get > > only the layers that are > > > displayed in the map (or are checked in the treeview > > of Geomoose)? I also > > > checked the $qlayer->isVisible() property but it > > also works with the same > > > logic (it returns 1 for all layers, displayed or > > not).Thank you. > > > -- > > > View this message in context: > > > > > http://n2.nabble.com/Check-layer-status-in-Geomoose-tp2862814p2862814.html > > > Sent from the Mapserver - User mailing list archive at > > Nabble.com. > > > > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > ___________________________________________________________ > ?????????????? Yahoo!; > ?????????? ?? ?????????? ???????? (spam); ?? Yahoo! Mail > ???????? ??? ???????? ?????? ????????? ???? ??? ??????????? > ????????? http://login.yahoo.com/config/mail?.intl=gr From zhaops at hotmail.com Wed May 13 21:20:15 2009 From: zhaops at hotmail.com (Peisheng Zhao) Date: Thu, 14 May 2009 04:20:15 +0000 Subject: [mapserver-users] =?windows-1256?q?parsing_error_about_setting_d?= =?windows-1256?q?ebug_level=FE?= Message-ID: Hi all I set debug level in map file as "DEBUG 5". But I always get the error message: getSymbol(): Symbol definition error. Parsing error near (5):(line 88) What's wrong with it? Peisheng _________________________________________________________________ Hotmail? has ever-growing storage! Don?t worry about storage limits. http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage1_052009 -------------- next part -------------- An HTML attachment was scrubbed... URL: From davidn at datalinktech.com.au Wed May 13 22:00:45 2009 From: davidn at datalinktech.com.au (David Nugent) Date: Thu, 14 May 2009 15:00:45 +1000 Subject: [mapserver-users] Mapserver rendering with 24 bit colour In-Reply-To: <8C151E40-22A7-47E6-8D01-11D42B1F3998@datalinktech.com.au> References: <8C151E40-22A7-47E6-8D01-11D42B1F3998@datalinktech.com.au> Message-ID: On 06/05/2009, at 1:52 PM, David Nugent wrote: > Once I completed upgrading to mapserver 5.4, I decided I'd give the > new AGG renderer a try. > ~ > However, as a by-product of changing renderer, the metatiles > produced by mapserver differ slightly in colour. Some agree exactly > to the RBG colours I am providing, others are rendered with slight > variations, and when viewed on the web it becomes fairly obvious > where the meta tile borders are. This is to follow up on my own question to which I received no response either on the list or otherwise in case anyone else runs into the same or a similar problem. I finally found the problem in that the php mapscript had a bug, and that "AGG_Q" (AGG with quantize enabled) was being selected regardless that I was trying to tell it to do it differently. Once I correctly set it to AGG without quantize, the colour variation between tiles disappeared and all is well. One interesting aspect of this is that the average file size did not increase significantly when dropping quantize although in general the tiles rendered using AGG are around 40-50% larger than PNG8. Regards, -- David Nugent (davidn at datalinktech.com.au) Software Engineer datalink technologies pty ltd Mobile GPS/GPRS business process solutions http://www.datalinktech.com.au/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part URL: From meenu.monu at gmail.com Wed May 13 22:19:55 2009 From: meenu.monu at gmail.com (meenu) Date: Wed, 13 May 2009 22:19:55 -0700 (PDT) Subject: [mapserver-users] hotspot information on point layers In-Reply-To: <4A0AC307.9000501@neogeo-online.net> References: <1242218517448-2883485.post@n2.nabble.com> <4A0AC307.9000501@neogeo-online.net> Message-ID: <1242278395397-2888289.post@n2.nabble.com> i got ur idea....can u tell me how can i do this in a mapserver website...or can u give me a sample application link for this...withoout any reference it is difficult to move...so pls help me ----- Meenu -- View this message in context: http://n2.nabble.com/hotspot-information-on-point-layers-tp2883485p2888289.html Sent from the Mapserver - User mailing list archive at Nabble.com. From meenu.monu at gmail.com Wed May 13 23:32:04 2009 From: meenu.monu at gmail.com (meenu) Date: Wed, 13 May 2009 23:32:04 -0700 (PDT) Subject: [mapserver-users] convertion from mapinfo to mapserver -one table is not getting In-Reply-To: <1241939692862-2853077.post@n2.nabble.com> References: <1241939692862-2853077.post@n2.nabble.com> Message-ID: <1242282724337-2888456.post@n2.nabble.com> hi friends ,i found out my problem ,which is if the table has s more than one type of features then it will retrive the type as OTHER. ----- Meenu -- View this message in context: http://n2.nabble.com/convertion-from-mapinfo-to-mapserver--one-table-is-not-getting-tp2853077p2888456.html Sent from the Mapserver - User mailing list archive at Nabble.com. From micklesh at gmail.com Wed May 13 23:42:35 2009 From: micklesh at gmail.com (micklesh) Date: Wed, 13 May 2009 23:42:35 -0700 (PDT) Subject: =?UTF-8?Q?Re:_[mapserver-users]_parsing_e?= =?UTF-8?Q?rror_about_setting_debug_level=E2=80=8F?= In-Reply-To: References: Message-ID: <1242283355311-2888501.post@n2.nabble.com> Hi, Peisheng I think this means that there is a syntax error in your symbol definition can you post it here to let us check in up? regards, michael zhao peisheng wrote: > > > Hi all > > I set debug level in map file as "DEBUG 5". But I always get the error > message: > > getSymbol(): Symbol definition error. Parsing error near (5):(line 88) > > What's wrong with it? > > > Peisheng > _________________________________________________________________ > Hotmail? has ever-growing storage! Don?t worry about storage limits. > http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage1_052009 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/parsing-error-about-setting-debug-level%E2%80%8F-tp2888162p2888501.html Sent from the Mapserver - User mailing list archive at Nabble.com. From meenu.monu at gmail.com Thu May 14 00:28:10 2009 From: meenu.monu at gmail.com (meenu) Date: Thu, 14 May 2009 00:28:10 -0700 (PDT) Subject: [mapserver-users] hotspot information on point layers In-Reply-To: <1242218517448-2883485.post@n2.nabble.com> References: <1242218517448-2883485.post@n2.nabble.com> Message-ID: <1242286090499-2888675.post@n2.nabble.com> hi can anybody help me to do hotspot part.....i did the mapserver website usnig vs2005... ----- Meenu -- View this message in context: http://n2.nabble.com/hotspot-information-on-point-layers-tp2883485p2888675.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Thu May 14 01:54:08 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 14 May 2009 11:54:08 +0300 Subject: [mapserver-users] Mapserver rendering with 24 bit colour In-Reply-To: References: <8C151E40-22A7-47E6-8D01-11D42B1F3998@datalinktech.com.au> Message-ID: Hi, Not so that everybody gets answered, sometimes nobody just knows the answer, and after all, this is voluntary. But still, I can see from the archives that Thomas Bonfort had a try on the same day and only one and a half hours delayed :) -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta David Nugent L?hetetty: 14. toukokuuta 2009 8:01 Vastaanottaja: David Nugent Kopio: mapserver-users at lists.osgeo.org Aihe: Re: [mapserver-users] Mapserver rendering with 24 bit colour On 06/05/2009, at 1:52 PM, David Nugent wrote: Once I completed upgrading to mapserver 5.4, I decided I'd give the new AGG renderer a try. ~ However, as a by-product of changing renderer, the metatiles produced by mapserver differ slightly in colour. Some agree exactly to the RBG colours I am providing, others are rendered with slight variations, and when viewed on the web it becomes fairly obvious where the meta tile borders are. This is to follow up on my own question to which I received no response either on the list or otherwise in case anyone else runs into the same or a similar problem. I finally found the problem in that the php mapscript had a bug, and that "AGG_Q" (AGG with quantize enabled) was being selected regardless that I was trying to tell it to do it differently. Once I correctly set it to AGG without quantize, the colour variation between tiles disappeared and all is well. One interesting aspect of this is that the average file size did not increase significantly when dropping quantize although in general the tiles rendered using AGG are around 40-50% larger than PNG8. Regards, -- David Nugent (davidn at datalinktech.com.au) Software Engineer datalink technologies pty ltd Mobile GPS/GPRS business process solutions http://www.datalinktech.com.au/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From adams at terrestris.de Thu May 14 03:06:07 2009 From: adams at terrestris.de (Till Adams) Date: Thu, 14 May 2009 12:06:07 +0200 Subject: [mapserver-users] UMN and SVG output Message-ID: <4A0BED0F.6040809@terrestris.de> Dear list, we have a problem with (old but working) Mapserver 4.10 version and svg output transparency: On one system (solaris 10) everything works fine. On the other system (solaris 10) with exactly the same mapfile, the originally as transparent defined polygons (COLOR -1 -1 -1) come out in black. I guess that GD library is responsible for creating the SVG. Did anybody had this problem before or does anybody have an idea which component may cause this error? Thanks in advance, regards, Till -- ---------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Gesch?ftsf?hrung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 adams at terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplement?rin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From meenu.monu at gmail.com Thu May 14 03:37:35 2009 From: meenu.monu at gmail.com (meenu) Date: Thu, 14 May 2009 03:37:35 -0700 (PDT) Subject: [mapserver-users] 'OSGeo.MapServer' doesn't contain any public member Message-ID: <1242297455442-2889333.post@n2.nabble.com> hi i am getting an error in mapserver as follows.... Namespace or type specified in the Imports 'OSGeo.MapServer' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. can anybody help to solve this issue? ----- Meenu -- View this message in context: http://n2.nabble.com/%27OSGeo.MapServer%27-doesn%27t-contain-any-public-member-tp2889333p2889333.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dmorissette at mapgears.com Thu May 14 03:52:44 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 14 May 2009 06:52:44 -0400 Subject: =?windows-1256?Q?Re=3A_=5Bmapserver-users=5D_parsing_error?= =?windows-1256?Q?_about_setting_debug_level=FE?= In-Reply-To: References: Message-ID: <4A0BF7FC.3070302@mapgears.com> Peisheng Zhao wrote: > Hi all > > I set debug level in map file as "DEBUG 5". But I always get the error > message: > > getSymbol(): Symbol definition error. Parsing error near (5):(line 88) > > What's wrong with it? > Which version of MapServer are you using? To use the "DEBUG 5" syntax and other stuff in RFC-28, you need MapServer 5.0.0 or more recent. (see http://mapserver.org/development/rfc/ms-rfc-28.html) Before 5.0, you could only use DEBUG ON/OFF (or TRUE/FALSE)... so if you're using MapServer 4.x that could explain the error. Daniel -- Daniel Morissette http://www.mapgears.com/ From dmorissette at mapgears.com Thu May 14 04:02:42 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 14 May 2009 07:02:42 -0400 Subject: [mapserver-users] UMN and SVG output In-Reply-To: <4A0BED0F.6040809@terrestris.de> References: <4A0BED0F.6040809@terrestris.de> Message-ID: <4A0BFA52.6010308@mapgears.com> Till Adams wrote: > Dear list, > > we have a problem with (old but working) Mapserver 4.10 version and svg > output transparency: > > On one system (solaris 10) everything works fine. > On the other system (solaris 10) with exactly the same mapfile, the > originally as transparent defined polygons > (COLOR -1 -1 -1) come out in black. > > I guess that GD library is responsible for creating the SVG. Did anybody > had this problem before or does anybody have an idea which component may > cause this error? > Till, Did you really mean SVG? SVG is a vector format which is rendered by the browser, are you using the same browser to access both servers? I'd suggest you start by comparing the SVG output from both to try to figure the difference (it's XML-ish) between the output from your two servers, and then we can go from there. Daniel -- Daniel Morissette http://www.mapgears.com/ From meenu.monu at gmail.com Thu May 14 05:56:41 2009 From: meenu.monu at gmail.com (meenu) Date: Thu, 14 May 2009 05:56:41 -0700 (PDT) Subject: [mapserver-users] coding for pan the map Message-ID: <1242305801588-2889881.post@n2.nabble.com> hi all can anybody help me to do the coding for pan the map? i did one website using the help of TutorialMapServerSolution.zip(VS2005).... advance thanks regards ----- Meenu -- View this message in context: http://n2.nabble.com/coding-for-pan-the-map-tp2889881p2889881.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dmorissette at mapgears.com Thu May 14 07:25:21 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 14 May 2009 10:25:21 -0400 Subject: [mapserver-users] PHP Mapscript - Displaying only image colour except the existing layers In-Reply-To: <002f01c9cd81$dfe5bba0$9fb132e0$@com> References: <1241521174165-2792269.post@n2.nabble.com> <002801c9cd7d$4b485f10$e1d91d30$@com> <7afcc95f0905050545l46488c2dk5ce4238e66d2a954@mail.gmail.com> <002f01c9cd81$dfe5bba0$9fb132e0$@com> Message-ID: <4A0C29D1.10206@mapgears.com> kapil manoj wrote: > > i have received the following error after changing the status of the > layers to both DEFAULT or ON > > Warning: [MapServer Error]: msGetLabelSize(): Requested font > (arial-bold) not found. in > /home/kapil/FGS-MAPSERVER/www/htdocs/mapfiles/sampletest/htdocs/test.php > on line 6 > If you haven't solved this already, then I'd suggest you make sure font "arial-bold" is defined in your fontset and that the path to the corresponding TTF file is valid. Daniel -- Daniel Morissette http://www.mapgears.com/ From apetkov at fs.fed.us Thu May 14 13:37:43 2009 From: apetkov at fs.fed.us (Alexander Petkov) Date: Thu, 14 May 2009 14:37:43 -0600 Subject: [mapserver-users] Actual coverage data+colormap Message-ID: Is it possible to include the colormap from an image being served as a coverage through mapserver? In other words, definining BYTE or INT16 for the IMAGEMODE will provide the actual data from the raster (which is what I am after), but the colormap is discarded when the data is requested through a GetCoverage request. Then I tried PC256 for the IMAGEMODE but I lost the actual data. Is there currently a way to allow me to include a colormap in the OUTPUTFORMAT definition, while providing the actual data through a GetCoverage request? I have defined the output format as follows: OUTPUTFORMAT NAME "GTIFF" MIMETYPE "image/tiff" DRIVER "GDAL/GTiff" EXTENSION "tif" IMAGEMODE "BYTE" TRANSPARENT TRUE FORMATOPTION "COMPRESS=PACKBITS" END Thanks in advance, Alex From szekerest at gmail.com Thu May 14 14:17:59 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Thu, 14 May 2009 23:17:59 +0200 Subject: [mapserver-users] 'OSGeo.MapServer' doesn't contain any public member In-Reply-To: <1242297455442-2889333.post@n2.nabble.com> References: <1242297455442-2889333.post@n2.nabble.com> Message-ID: Meenu, I'm not sure about this problem, mapscript_csharp.dll should always expose all of the classes of the MapScript API. You can use the object browser or the .NET reflector ( http://www.red-gate.com/products/reflector/) to inspect the classes exposed by this dll. Best regards, Tamas 2009/5/14 meenu > > hi i am getting an error in mapserver as follows.... > > Namespace or type specified in the Imports 'OSGeo.MapServer' doesn't > contain > any public member or cannot be found. Make sure the namespace or the type > is > defined and contains at least one public member. Make sure the imported > element name doesn't use any aliases. > > can anybody help to solve this issue? > > ----- > Meenu > -- > View this message in context: > http://n2.nabble.com/%27OSGeo.MapServer%27-doesn%27t-contain-any-public-member-tp2889333p2889333.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Espen.Messel at ffi.no Thu May 14 23:32:18 2009 From: Espen.Messel at ffi.no (Espen.Messel at ffi.no) Date: Fri, 15 May 2009 08:32:18 +0200 Subject: SV: [mapserver-users] Clipping out unprojectable area? In-Reply-To: <1242137936110-2869427.post@n2.nabble.com> References: <4990AFF5.1010107@hostgis.com><20090209234047.GF25534@metacarta.com><4990C85F.4030101@hostgis.com><20090210010427.GH25534@metacarta.com><499389FE.5020606@hostgis.com> <1242137936110-2869427.post@n2.nabble.com> Message-ID: Hi. You could try something like this: DATA "geometri from ( select geometri, * from general.country where ST_Intersection(geometri,GeomFromText('POLYGON((12 0,18 0,18 84,12 84,12 0))',4326)) ) AS FOO USING UNIQUE ogc_fid USING SRID=4326" It's not very nice, but it works. Regards, Espen ---------------------------------------------------------------------- Espen Messel > -----Opprinnelig melding----- > Fra: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] P? vegne av paalkr > Sendt: 12. mai 2009 16:19 > Til: mapserver-users at lists.osgeo.org > Emne: Re: [mapserver-users] Clipping out unprojectable area? > > > Hi! > > I'm trying to achieve the same thing, but I need some hints > on how to incorporate the spatial filter in the DATA > statement. This is a snippet from my mapfile > > DATA "geometri from general.country USING UNIQUE > ogc_fid USING SRID=4326" > > and this is the spatial filter i try to apply > > ST_Intersection(geometri,GeomFromText('POLYGON((12 0,18 > 0,18 84,12 > 84,12 0))',4326)) > > but I don't manage build the right the DATA statement! > > Can someone please help with the DATA statement? > > Regards, > P?l Kristensen > > > Gregor at HostGIS wrote: > > > > With some SQL know-how I did get the EPSG database merged > with our own > > spatial_ref_sys table (it has other mods for our uses, so this was > > trivial) and our program generating > ST_Intersection(the_geom) statements. > > > > This does work as expected, which is great. Thanks for > another simple > > and elegant solution, Christopher. > > > > Now to cope with some of our data having self-intersecting polygons > > which break such operators... > > > > -- > > Gregor Mosheh / Greg Allensworth BS, A+, Network+, > Security+, Server+ > > System Administrator, Lead Programmer > > HostGIS development & hosting services, http://www.HostGIS.com/ > > > > "Remember that no one cares if you can back up, > > only if you can restore." - AMANDA > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > ----- > > Regards, > P?l Kristensen > -- > View this message in context: > http://n2.nabble.com/Clipping-out-unprojectable-area--tp229984 7p2869427.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From adams at terrestris.de Fri May 15 01:51:29 2009 From: adams at terrestris.de (Till Adams) Date: Fri, 15 May 2009 10:51:29 +0200 Subject: [mapserver-users] UMN and SVG output In-Reply-To: <4A0BFA52.6010308@mapgears.com> References: <4A0BED0F.6040809@terrestris.de> <4A0BFA52.6010308@mapgears.com> Message-ID: <4A0D2D11.8060708@terrestris.de> Daniel, firstr of all many thanks for your reply, we already did that: The upper is the SVG code comes from the mapserver, where the SVG appears in black, the lower one is the correct one. The differene between the files is the style definition ' style="fill: none;" ' which is missing in the upper SVG. Both mapservers are 4.10, are compiled with the flag "--with-svg" and use exactly the same mapfile.... could it be that there are any differences in the linked GD library or the uinterface beteen UMN and GD ...? Regards - Till > Till Adams wrote: >> Dear list, >> >> we have a problem with (old but working) Mapserver 4.10 version and >> svg output transparency: >> >> On one system (solaris 10) everything works fine. >> On the other system (solaris 10) with exactly the same mapfile, the >> originally as transparent defined polygons >> (COLOR -1 -1 -1) come out in black. >> >> I guess that GD library is responsible for creating the SVG. Did >> anybody had this problem before or does anybody have an idea which >> component may cause this error? >> > > Till, > > Did you really mean SVG? SVG is a vector format which is rendered by > the browser, are you using the same browser to access both servers? > > I'd suggest you start by comparing the SVG output from both to try to > figure the difference (it's XML-ish) between the output from your two > servers, and then we can go from there. > > Daniel -- ---------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Gesch?ftsf?hrung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 adams at terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplement?rin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From dmorissette at mapgears.com Fri May 15 02:27:46 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 15 May 2009 05:27:46 -0400 Subject: [mapserver-users] UMN and SVG output In-Reply-To: <4A0D2D11.8060708@terrestris.de> References: <4A0BED0F.6040809@terrestris.de> <4A0BFA52.6010308@mapgears.com> <4A0D2D11.8060708@terrestris.de> Message-ID: <4A0D3592.3020309@mapgears.com> Till Adams wrote: > Daniel, > > firstr of all many thanks for your reply, we already did that: > The upper is the SVG code comes from the mapserver, where the SVG > appears in black, the lower one is the correct one. The differene > between the files is the style definition ' style="fill: none;" ' which > is missing in the upper SVG. Both mapservers are 4.10, are compiled with > the flag "--with-svg" and use exactly the same mapfile.... could it be > that there are any differences in the linked GD library or the > uinterface beteen UMN and GD ...? > Ha! Found it! This was an issue in early 4.10.x versions that was fixed in 4.10.2: http://trac.osgeo.org/mapserver/ticket/2055 You probably have 4.10.0 or 4.10.1 on one machine, and 4.10.2 or more recent on the other. Daniel -- Daniel Morissette http://www.mapgears.com/ From thomas.bonfort at camptocamp.com Fri May 15 02:57:28 2009 From: thomas.bonfort at camptocamp.com (Thomas Bonfort) Date: Fri, 15 May 2009 11:57:28 +0200 Subject: [mapserver-users] Re: [mapserver-dev] How to repair the error display label in mapserver application In-Reply-To: <1242379782911-2906829.post@n2.nabble.com> References: <1242379782911-2906829.post@n2.nabble.com> Message-ID: <2922382e0905150257k495fa83coe89d87d5765c0c1e@mail.gmail.com> hi, you probably haven't set the ENCODING keyword in your labels. It should match the encoding of your data. http://mapserver.org/mapfile/label.html regards, thomas www.camptocamp.com +33 4 79 26 57 97 On Fri, May 15, 2009 at 11:29, Huynh Thai Hoc wrote: > Dear list I'm having trouble with using true type fonts in my mapserver > application. My database is using by SQL Server 2005, and connecting by > ArcSDE9.2. I show the map is no problems, but my labels is get error, it is > only the sign (see the image). I don't know what to do, please help me. > Thank you very much > ________________________________ > View this message in context: How to repair the error display label in > mapserver application > Sent from the Mapserver - Dev mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-dev mailing list > mapserver-dev at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-dev > > From nelsonwc7 at hotmail.com Fri May 15 06:38:45 2009 From: nelsonwc7 at hotmail.com (Nelson Correia) Date: Fri, 15 May 2009 13:38:45 +0000 Subject: [mapserver-users] Mapserver returns part of an image and then crashes In-Reply-To: References: Message-ID: Hi, Have anyone ran through the same problem? Any ideas on how to solve it? Thanks, Nelson From: nelsonwc7 at hotmail.com To: szekerest at gmail.com Subject: RE: [mapserver-users] Mapserver returns part of an image and then crashes Date: Fri, 24 Apr 2009 17:28:53 +0000 CC: mapserver-users at lists.osgeo.org Hi, I am using ms4w 2.3.1. Unfortunately it is a large data set and a huge map file, that I am not able to send, sorry. Thanks, Nelson Date: Fri, 24 Apr 2009 19:20:44 +0200 Subject: Re: [mapserver-users] Mapserver returns part of an image and then crashes From: szekerest at gmail.com To: nelsonwc7 at hotmail.com CC: mapserver-users at lists.osgeo.org Which binaries are you using? Could you provide the sample data with a mapfile to repoduce it? Best regards, Tamas 2009/4/24 Nelson Correia Hi, I am using mapserver on windows, and recently, after a few changes in my configuration, it started crashing (only for some bounding boxes - some areas of the map are returned without problem), without returning an error message. It returns only part of the image, but then the mapserver process crashes with the following information: Problem signature: Problem Event Name: APPCRASH Application Name: mapserv.exe Application Version: 0.0.0.0 Application Timestamp: 4935ad86 Fault Module Name: ntdll.dll Fault Module Version: 6.0.6001.18000 Fault Module Timestamp: 4791a783 Exception Code: c0000005 Exception Offset: 0002f8f4 OS Version: 6.0.6001.2.1.0.272.7 Locale ID: 2070 Additional Information 1: c997 Additional Information 2: ae645009e6c492243309385fb187f9cb Additional Information 3: 8219 Additional Information 4: b67578da7791af77bcf37b260b2c58a9 I reverted the changes I've made to a configuration that worked before, but I am no longer able to run it properly, it crashes all the time for certain zones of the map. Any ideas? Thanks, Nelson Get news, entertainment and everything you care about at Live.com. Check it out! _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users check out the rest of the Windows Live?. More than mail?Windows Live? goes way beyond your inbox. More than messages _________________________________________________________________ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us -------------- next part -------------- An HTML attachment was scrubbed... URL: From ritesh.linux at gmail.com Fri May 15 10:05:23 2009 From: ritesh.linux at gmail.com (ritesh ambastha) Date: Fri, 15 May 2009 10:05:23 -0700 (PDT) Subject: [mapserver-users] coding for pan the map In-Reply-To: <1242305801588-2889881.post@n2.nabble.com> References: <1242305801588-2889881.post@n2.nabble.com> Message-ID: <1242407123449-2908884.post@n2.nabble.com> You can exploit the rich features provided by Openlayers. It will help you to setup the basic features like zoom and pan easily. Regards, Ritesh Ambastha meenu wrote: > > hi all > > can anybody help me to do the coding for pan the map? > i did one website using the help of > TutorialMapServerSolution.zip(VS2005).... > > advance thanks > regards > > -- View this message in context: http://n2.nabble.com/coding-for-pan-the-map-tp2889881p2908884.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ritesh.linux at gmail.com Fri May 15 10:17:44 2009 From: ritesh.linux at gmail.com (ritesh ambastha) Date: Fri, 15 May 2009 10:17:44 -0700 (PDT) Subject: [mapserver-users] I: Apache crash using Mapserver with big mapfile(about 2500 lines) In-Reply-To: <86ad9d15.1c9cfba.1518ff46.264@provincia.biella.it> References: <86ad9d15.1c9cfba.1518ff46.264@provincia.biella.it> Message-ID: <1242407864053-2908941.post@n2.nabble.com> Hey, Larger size of mapfile is not the culprit over here. I have used mapfile of more than 20K lines. Issue is something else. I don't know much about it but it seems like you have a glibc version conflict on your box. But, I am sure and 100% confident that mapfile size is not an issue. When you get warnings like "glibc detected malloc()/free()/double", they indicate that the heap has been corrupted. One work around is to use DieHard, which replaces your memory allocator with one that is unaffected by most of these errors (www.diehard-software.org). Note: "I dont work for DieHard. I just got some reference of it on web" Regards, Ritesh Ambastha Edgardo Ghibaudo wrote: > > Steve, > > I compiled mapserver with -enable-debug option. > Then I launched shp2img in the following way: > ./shp2img -all_debug 5 -m /opt/fgs/apps/mapservergeo/map/at7_2_3.map > [Fri May 8 10:45:49 2009].96896 msDrawRasterLayerLow(Sfumo): entering. > [Fri May 8 10:45:49 2009].105123 msDrawGDAL(): src=704,474,913,1009, > dst=0,0,470,520 > [Fri May 8 10:45:49 2009].105479 msDrawGDAL(): red,green,blue,alpha bands > = 1,2,3,0 > [Fri May 8 10:45:49 2009].277761 msDrawMap(): Layer 0 (Sfumo), 0.181s > [Fri May 8 10:45:49 2009].288732 msDrawMap(): Layer 7 (Edificato), 0.011s > *** glibc detected *** free(): invalid next size (fast): 0x0846d138 *** > Aborted > > Edgardo > -----Messaggio originale----- > Da: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] > Inviato: gioved? 7 maggio 2009 19.29 > A: 'mapserver-users at lists.osgeo.org'; Edgardo Ghibaudo > Oggetto: Re: [mapserver-users] Apache crash using Mapserver with big > mapfile(about 2500 lines) > > Have you tried running through shp2img independently of MapLab to see if > it's a problem with MapServer or > MapLab specifically? > > Steve > > > > --http://www.provincia.biella.it------------------------------------------------------ > > Vuoi rimanere sempre aggiornato sulle nostre attivita'? > Visita la pagina dei feed RSS sul nostro sito ed iscriviti alla sezione > di interesse. > > --Avviso------------------------------------------------------------------------------ > Questo messaggio e i suoi allegati sono riservati esclusivamente alle > persone in > indirizzo e possono contenere informazioni confidenziali. Se questo > messaggio vi e' > pervenuto per errore, vi informiamo che ogni suo uso e'proibito. > In questo caso rispedite immediatamente il messaggio al mittente e > cancellatelo. > Per ogni chiarimento contattateci scrivendo a ced at provincia.biella.it. > Grazie -Il Webmaster. > --Warning----------------------------------------------------------------------------- > This message and its attachments are addressed solely to the persons > above and may > contain confidential information. If you have received the message in > error, be > informed that any use of the content hereof is prohibited. > Please return it immediately to the sender and delete the message. > Should you have > any questions, please contact us by replying to ced at provincia.biella.it. > The Webmaster. > -------------------------------------------------------------------------------------- > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/I%3A-Apache-crash-using-Mapserver-with-big-mapfile%28about-2500-lines%29-tp2844265p2908941.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ritesh.linux at gmail.com Fri May 15 10:26:54 2009 From: ritesh.linux at gmail.com (ritesh ambastha) Date: Fri, 15 May 2009 10:26:54 -0700 (PDT) Subject: [mapserver-users] Speed of PostGIS vs Shapefiles in MapServer 5.4 In-Reply-To: References: Message-ID: <1242408414278-2908992.post@n2.nabble.com> Hey, The game is all about how you utilizes the best available practices. No doubt that shapefile usage helps you to render/tile maps at a rapid pace. But, on the other hand, indexing helps a ton on postgis. My recommendation is to set up pgpool on few servers and then try to render/tile the maps. It will be much much faster and convenient than using shapefiles. Regards, Ritesh Ambastha Regards, Ritesh Ambastha Ben Madin wrote: > > G'day all, > > I see a rewrite of PostGIS handling was a major achievement in the 5.4 > Release. I have a number of polygon layers that I use on a fairly > static basis (political boundaries etc) but I vaccilate between using > them from: > > PostGIS (for convenience - I use them for analysis as well so they are > in the database anyway, easy to backup and keep consistent between > servers) or from > Shapefiles (exported because they were faster to render). > > Most of them are not overly complex or large, is there still > significant benefit to using them from shapefiles, or is it becoming a > more closely run race between sources. > > 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... > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/Speed-of-PostGIS-vs-Shapefiles-in-MapServer-5.4-tp2843363p2908992.html Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at gmail.com Fri May 15 15:01:53 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Sat, 16 May 2009 00:01:53 +0200 Subject: [mapserver-users] Mapserver returns part of an image and then crashes In-Reply-To: References: Message-ID: Nelson, The information you've provided is not enough to find out the problem. You should probaly localize which layers/features cause this problem and extract a subset of the data to be able to reproduce it. You could use ogr2ogr and specify the -spat option to copy the relevant data into a new data source. Best regards, Tamas 2009/5/15 Nelson Correia > > Hi, > > Have anyone ran through the same problem? > > Any ideas on how to solve it? > > Thanks, > > Nelson > > ------------------------------ > From: nelsonwc7 at hotmail.com > To: szekerest at gmail.com > Subject: RE: [mapserver-users] Mapserver returns part of an image and then > crashes > Date: Fri, 24 Apr 2009 17:28:53 +0000 > > CC: mapserver-users at lists.osgeo.org > > Hi, > > I am using ms4w 2.3.1. > > Unfortunately it is a large data set and a huge map file, that I am not > able to send, sorry. > > Thanks, > > Nelson > > ------------------------------ > Date: Fri, 24 Apr 2009 19:20:44 +0200 > Subject: Re: [mapserver-users] Mapserver returns part of an image and then > crashes > From: szekerest at gmail.com > To: nelsonwc7 at hotmail.com > CC: mapserver-users at lists.osgeo.org > > Which binaries are you using? > > Could you provide the sample data with a mapfile to repoduce it? > > > Best regards, > > Tamas > > > > 2009/4/24 Nelson Correia > > > Hi, > > I am using mapserver on windows, and recently, after a few changes in my > configuration, it started crashing (only for some bounding boxes - some > areas of the map are returned without problem), without returning an error > message. It returns only part of the image, but then the mapserver process > crashes with the following information: > > *Problem signature: > *Problem Event Name: APPCRASH > Application Name: mapserv.exe > Application Version: 0.0.0.0 > Application Timestamp: 4935ad86 > Fault Module Name: ntdll.dll > Fault Module Version: 6.0.6001.18000 > Fault Module Timestamp: 4791a783 > Exception Code: c0000005 > Exception Offset: 0002f8f4 > OS Version: 6.0.6001.2.1.0.272.7 > Locale ID: 2070 > Additional Information 1: c997 > Additional Information 2: ae645009e6c492243309385fb187f9cb > Additional Information 3: 8219 > Additional Information 4: b67578da7791af77bcf37b260b2c58a9 > > I reverted the changes I've made to a configuration that worked before, but > I am no longer able to run it properly, it crashes all the time for certain > zones of the map. > > Any ideas? > > > > Thanks, > > Nelson > > > > ------------------------------ > Get news, entertainment and everything you care about at Live.com. Check > it out! > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > ------------------------------ > check out the rest of the Windows Live?. More than mail?Windows Live? goes > way beyond your inbox. More than messages > ------------------------------ > Invite your mail contacts to join your friends list with Windows Live > Spaces. It's easy! Try it! > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From meenu.monu at gmail.com Fri May 15 21:29:52 2009 From: meenu.monu at gmail.com (meenu) Date: Fri, 15 May 2009 21:29:52 -0700 (PDT) Subject: [mapserver-users] hotspot information on point layers In-Reply-To: <1242286090499-2888675.post@n2.nabble.com> References: <1242218517448-2883485.post@n2.nabble.com> <1242286090499-2888675.post@n2.nabble.com> Message-ID: <1242448192181-2911368.post@n2.nabble.com> pls help me to do the hotspot in map....if anybody knows the reference links for this...pls forward me.... ----- Meenu -- View this message in context: http://n2.nabble.com/hotspot-information-on-point-layers-tp2883485p2911368.html Sent from the Mapserver - User mailing list archive at Nabble.com. From meenu.monu at gmail.com Sun May 17 01:11:48 2009 From: meenu.monu at gmail.com (meenu) Date: Sun, 17 May 2009 01:11:48 -0700 (PDT) Subject: [mapserver-users] mouse cursor need to change when the cursor is on the specified layer points Message-ID: <1242547908647-2915495.post@n2.nabble.com> hi dears,advance thanks to all....in a mapserver website i need to change the mouse icon style when user will point to the specified layer points....that means i have a layer called n_towns in a map..the coding for that layer is as follows... LAYER NAME "n_towns" TYPE POINT CONNECTIONTYPE OGR CONNECTION "n_towns.TAB" # MINSCALE 1000 #MAXSCALE 588000 #MINSCALE 0.06 # MAXSCALE 36.54 STATUS ON # This enables use of colors and styles from the source file. #STYLEITEM "AUTO" # Define an empty class that will be filled at runtime from the color and # styles read on each shape in the source file. #CLASSITEM "TYPE" LABELITEM "NAME" CLASS #SIZE 10 STYLE COLOR 255 0 0 OUTLINECOLOR 0 0 0 SYMBOL 'ball' END #STYLE #TEXT ([LABEL], [LABEL]) LABEL COLOR 100 100 255 FONT arial TYPE TRUETYPE SIZE 7 POSITION LC WRAP " " END#LABEL END# CLASS END#LAYER in this layer i have 50 records....now my requirement is when the cursor is on the top of this 50 records locations in map,that time need to change the mouse cursor style as hand shape...is it possible?can anybody help me for this...i did the website based on the "tutorialmapserver" project available for reference? ----- Meenu -- View this message in context: http://n2.nabble.com/mouse-cursor-need-to-change-when-the-cursor-is-on-the-specified-layer-points-tp2915495p2915495.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Dejan.Gambin at pula.hr Sun May 17 14:50:54 2009 From: Dejan.Gambin at pula.hr (Dejan.Gambin at pula.hr) Date: Sun, 17 May 2009 23:50:54 +0200 Subject: [mapserver-users] queryByAttributes returns no result with OGR/ODBC data source Message-ID: Hi, I am using OGR Virtual Spatial Data to connect to MS Access database using ODBC. Database has X/Y columns. I have created .ovf file like this: ODBC:@Krk ID Dozvole wkbPoint It is all working fine and the points are showing on the map (using p.mapper). Alos, ogrinfo with -where clause is working fine. But the attribute query gives no result, whichever field I query. Query string is like: ( [KOORDINATAX] = 5460870 ) This syntax works fine with shape files and also wit OGR layers based on MapInfo files. But not with ODBC/Access. I am using ms4w 2.2.7 Any help? regards, dejan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Maher_Karim at dorsch.com.jo Sun May 17 22:28:19 2009 From: Maher_Karim at dorsch.com.jo (Maher Karim) Date: Mon, 18 May 2009 08:28:19 +0300 Subject: [mapserver-users] queryByAttributes returns no result with OGR/ODBC data source In-Reply-To: Message-ID: HI, Please consider that there is a difference the field name definintion for the item query, the field name is differenet when you are using shapefiles than PostGIS tables. Try to use $strExp=( [KOORDINATAX] = 5460870 ); queryByAttributes('itemname',$strExp,MS_MULTIPLE) and if Not working try queryByAttributes( [KOORDINATAX],5460870,MS_MULTIPLE) Hope that it helps Regards Maher |---------+---------------------------------------> | | Dejan.Gambin at pula.hr | | | Sent by: | | | mapserver-users-bounces at list| | | s.osgeo.org | | | | | | | | | 05/18/2009 12:50 AM | |---------+---------------------------------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| | | | To: mapserver-users at lists.osgeo.org | | cc: | | Subject: [mapserver-users] queryByAttributes returns no result with OGR/ODBC data source | >--------------------------------------------------------------------------------------------------------------------------------------------------| Hi, I am using OGR Virtual Spatial Data to connect to MS Access database using ODBC. Database has X/Y columns. I have created .ovf file like this: ODBC:@Krk ID Dozvole wkbPoint It is all working fine and the points are showing on the map (using p.mapper). Alos, ogrinfo with -where clause is working fine. But the attribute query gives no result, whichever field I query. Query string is like: ( [KOORDINATAX] = 5460870 ) This syntax works fine with shape files and also wit OGR layers based on MapInfo files. But not with ODBC/Access. I am using ms4w 2.2.7 Any help? regards, dejan_______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Dejan.Gambin at pula.hr Sun May 17 23:19:07 2009 From: Dejan.Gambin at pula.hr (Dejan.Gambin at pula.hr) Date: Mon, 18 May 2009 08:19:07 +0200 Subject: [mapserver-users] queryByAttributes returns no result with OGR/ODBC data source In-Reply-To: Message-ID: Hi, Unfortunatelly it doesn't help. I have tried with: queryByAttributes("[KOORDINATAX]", ( [KOORDINATAX] = 5460870 ), MS_MULTIPLE); and with queryByAttributes("[KOORDINATAX]", 5460870, MS_MULTIPLE); Neither one gives results :-( dejan Maher Karim wrote on 18.05.2009 07:28:19: > > > > > HI, > Please consider that there is a difference the field name definintion for > the item query, the field name is differenet when you are using shapefiles > than PostGIS tables. > Try to use > $strExp=( [KOORDINATAX] = 5460870 ); > queryByAttributes('itemname',$strExp,MS_MULTIPLE) > > and if Not working try > queryByAttributes( [KOORDINATAX],5460870,MS_MULTIPLE) > > Hope that it helps > > Regards > Maher > > > > > |---------+---------------------------------------> > | | Dejan.Gambin at pula.hr | > | | Sent by: | > | | mapserver-users-bounces at list| > | | s.osgeo.org | > | | | > | | | > | | 05/18/2009 12:50 AM | > |---------+---------------------------------------> > > >-------------------------------------------------------------------------------------------------------------------------------------------------- > | > | | > | To: mapserver-users at lists.osgeo.org | > | cc: | > | Subject: [mapserver-users] queryByAttributes returns no > result with OGR/ODBC data source | > > >-------------------------------------------------------------------------------------------------------------------------------------------------- > | > > > > > Hi, > > I am using OGR Virtual Spatial Data to connect to MS Access database using > ODBC. Database has X/Y columns. I have created .ovf file like this: > > > > ODBC:@Krk > ID > Dozvole > wkbPoint > y="KoordinataY"/> > > > > It is all working fine and the points are showing on the map (using > p.mapper). Alos, ogrinfo with -where clause is working fine. But the > attribute query gives no result, whichever field I query. Query string is > like: > > ( [KOORDINATAX] = 5460870 ) > > This syntax works fine with shape files and also wit OGR layers based on > MapInfo files. But not with ODBC/Access. > > I am using ms4w 2.2.7 > > Any help? > > regards, dejan_______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Maher_Karim at dorsch.com.jo Sun May 17 23:22:37 2009 From: Maher_Karim at dorsch.com.jo (Maher Karim) Date: Mon, 18 May 2009 09:22:37 +0300 Subject: [mapserver-users] queryByAttributes returns no result with OGR/ODBC data source In-Reply-To: Message-ID: Try to remove the brackets [] from the field names queryByAttributes("KOORDINATAX", 5460870, MS_MULTIPLE); Regards Maher |---------+---------------------------> | | Dejan.Gambin at pul| | | a.hr | | | | | | 05/18/2009 09:19| | | AM | |---------+---------------------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| | | | To: Maher Karim | | cc: mapserver-users , mapserver-users-bounces | | Subject: Re: [mapserver-users] queryByAttributes returns no result with OGR/ODBC data source | >--------------------------------------------------------------------------------------------------------------------------------------------------| Hi, Unfortunatelly it doesn't help. I have tried with: queryByAttributes("[KOORDINATAX]", ( [KOORDINATAX] = 5460870 ), MS_MULTIPLE); and with queryByAttributes("[KOORDINATAX]", 5460870, MS_MULTIPLE); Neither one gives results :-( dejan Maher Karim wrote on 18.05.2009 07:28:19: > > > > > HI, > Please consider that there is a difference the field name definintion for > the item query, the field name is differenet when you are using shapefiles > than PostGIS tables. > Try to use > $strExp=( [KOORDINATAX] = 5460870 ); > queryByAttributes('itemname',$strExp,MS_MULTIPLE) > > and if Not working try > queryByAttributes( [KOORDINATAX],5460870,MS_MULTIPLE) > > Hope that it helps > > Regards > Maher > > > > > |---------+---------------------------------------> > | | Dejan.Gambin at pula.hr | > | | Sent by: | > | | mapserver-users-bounces at list| > | | s.osgeo.org | > | | | > | | | > | | 05/18/2009 12:50 AM | > |---------+---------------------------------------> > > >-------------------------------------------------------------------------------------------------------------------------------------------------- > | > | | > | To: mapserver-users at lists.osgeo.org | > | cc: | > | Subject: [mapserver-users] queryByAttributes returns no > result with OGR/ODBC data source | > > >-------------------------------------------------------------------------------------------------------------------------------------------------- > | > > > > > Hi, > > I am using OGR Virtual Spatial Data to connect to MS Access database using > ODBC. Database has X/Y columns. I have created .ovf file like this: > > > > ODBC:@Krk > ID > Dozvole > wkbPoint > y="KoordinataY"/> > > > > It is all working fine and the points are showing on the map (using > p.mapper). Alos, ogrinfo with -where clause is working fine. But the > attribute query gives no result, whichever field I query. Query string is > like: > > ( [KOORDINATAX] = 5460870 ) > > This syntax works fine with shape files and also wit OGR layers based on > MapInfo files. But not with ODBC/Access. > > I am using ms4w 2.2.7 > > Any help? > > regards, dejan_______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Dejan.Gambin at pula.hr Sun May 17 23:31:56 2009 From: Dejan.Gambin at pula.hr (Dejan.Gambin at pula.hr) Date: Mon, 18 May 2009 08:31:56 +0200 Subject: [mapserver-users] queryByAttributes returns no result with OGR/ODBC data source In-Reply-To: Message-ID: Still doesn't help :-(. Maybe I am doing something wrong...I don't know if I can "debug" this query on a lower level... This works for me correctly: ogrinfo -where "KOORDINATAX=5460870" krk.ovf krk although I get : ERROR 4: Update access not supported for VRT datasources Had to open data source read-only. mapserver-users-bounces at lists.osgeo.org wrote on 18.05.2009 08:22:37: > > > > > Try to remove the brackets [] from the field names > > queryByAttributes("KOORDINATAX", 5460870, MS_MULTIPLE); > > Regards > Maher > > > > |---------+---------------------------> > | | Dejan.Gambin at pul| > | | a.hr | > | | | > | | 05/18/2009 09:19| > | | AM | > |---------+---------------------------> > > >-------------------------------------------------------------------------------------------------------------------------------------------------- > | > | | > | To: Maher Karim | > | cc: mapserver-users org>, mapserver-users-bounces org> | > | Subject: Re: [mapserver-users] queryByAttributes returns > no result with OGR/ODBC data source | > > >-------------------------------------------------------------------------------------------------------------------------------------------------- > | > > > > > Hi, > > Unfortunatelly it doesn't help. I have tried with: > > queryByAttributes("[KOORDINATAX]", ( [KOORDINATAX] = 5460870 ), > MS_MULTIPLE); > > and with > > queryByAttributes("[KOORDINATAX]", 5460870, MS_MULTIPLE); > > Neither one gives results :-( > > dejan > > Maher Karim wrote on 18.05.2009 07:28:19: > > > > > > > > > > > HI, > > Please consider that there is a difference the field name definintion for > > the item query, the field name is differenet when you are using > shapefiles > > than PostGIS tables. > > Try to use > > $strExp=( [KOORDINATAX] = 5460870 ); > > queryByAttributes('itemname',$strExp,MS_MULTIPLE) > > > > and if Not working try > > queryByAttributes( [KOORDINATAX],5460870,MS_MULTIPLE) > > > > Hope that it helps > > > > Regards > > Maher > > > > > > > > > > |---------+---------------------------------------> > > | | Dejan.Gambin at pula.hr | > > | | Sent by: | > > | | mapserver-users-bounces at list| > > | | s.osgeo.org | > > | | | > > | | | > > | | 05/18/2009 12:50 AM | > > |---------+---------------------------------------> > > > > > >-------------------------------------------------------------------------------------------------------------------------------------------------- > > > | > > | > | > > | To: mapserver-users at lists.osgeo.org > | > > | cc: > | > > | Subject: [mapserver-users] queryByAttributes returns no > > result with OGR/ODBC data source > | > > > > > >-------------------------------------------------------------------------------------------------------------------------------------------------- > > > | > > > > > > > > > > Hi, > > > > I am using OGR Virtual Spatial Data to connect to MS Access database > using > > ODBC. Database has X/Y columns. I have created .ovf file like this: > > > > > > > > ODBC:@Krk > > ID > > Dozvole > > wkbPoint > > > y="KoordinataY"/> > > > > > > > > It is all working fine and the points are showing on the map (using > > p.mapper). Alos, ogrinfo with -where clause is working fine. But the > > attribute query gives no result, whichever field I query. Query string is > > like: > > > > ( [KOORDINATAX] = 5460870 ) > > > > This syntax works fine with shape files and also wit OGR layers based on > > MapInfo files. But not with ODBC/Access. > > > > I am using ms4w 2.2.7 > > > > Any help? > > > > regards, dejan_______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From meenu.monu at gmail.com Mon May 18 01:11:43 2009 From: meenu.monu at gmail.com (meenu) Date: Mon, 18 May 2009 01:11:43 -0700 (PDT) Subject: [mapserver-users] select one column values from a table Message-ID: <1242634303620-2931342.post@n2.nabble.com> dears,in a mapserver website how can i retrve one column details from a table....for eg in my map i have one table called n_123 ...in this table i have one column named "PLO_900"...i need to retrive value like as follows "select PLO_900 from n_123 "...i did the coding like as follows...but it is giving me the table field names...can anybody help me to solve this issue? Dim layer As layerObj = Util.MSMap.getLayerByName("n_123 ") If layer IsNot Nothing Then layer.open() For i As Integer = 0 To layer.numitems - 1 Me.CmbS.Items.Add(layer.getItem(i)) Next layer.close() ----- Meenu -- View this message in context: http://n2.nabble.com/select-one-column-values-from-a-table-tp2931342p2931342.html Sent from the Mapserver - User mailing list archive at Nabble.com. From adams at terrestris.de Mon May 18 02:32:44 2009 From: adams at terrestris.de (Till Adams) Date: Mon, 18 May 2009 11:32:44 +0200 Subject: [mapserver-users] UMN and SVG output In-Reply-To: <4A0D3592.3020309@mapgears.com> References: <4A0BED0F.6040809@terrestris.de> <4A0BFA52.6010308@mapgears.com> <4A0D2D11.8060708@terrestris.de> <4A0D3592.3020309@mapgears.com> Message-ID: <4A112B3C.2050203@terrestris.de> Daniel, many thanks for your help :- ) - and a beer in Sydney for you, regards, Till From cclabaugh at centwire.com Mon May 18 11:20:09 2009 From: cclabaugh at centwire.com (Chad Clabaugh) Date: Mon, 18 May 2009 14:20:09 -0400 Subject: [mapserver-users] Tile pre-caching Message-ID: <001a01c9d7e5$46e9f470$d4bddd50$@com> Hello, I have successfully set-up a linux mapserver on suse linux. I am using it to generate google tiles from shapefiles. I have been attempting to set-up a tile precache that enables me to generate the image tiles on a local mapserver server then serve them from a remote web server, but have so far failed miserably. I've tried tilecache and ka-map but can't get them to work. So my question is. How can I precache the generated google tiles so that I can simply copy those images where I need them? Shouldn't this be a simple task? Thanks a lot! Chad Clabaugh Technical Support, Engineering Office: 260.760.6398 Mobile: 260.466.8861 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Keith.Moss at landgate.wa.gov.au Mon May 18 22:12:48 2009 From: Keith.Moss at landgate.wa.gov.au (Keith Moss) Date: Tue, 19 May 2009 13:12:48 +0800 Subject: [mapserver-users] FastCGI & PHP MapScript Problem Message-ID: <82C223B25A75614D9F884563CE191C1406A24E55@MAIL.dli.wa.gov.au> Hi all, I've run into a problem with running PHP MapScript and FastCGI on a development server I've been setting up. It's a Windows Server 2003 box with IIS6 and I've installed MapServer 5.4 and PHP 5.2.9. I obtained the necessary dlls for PHP MapScript from the MS4W MapServer 5.4.0rc2 release. The FastCGI install is version 1.0 from iis.net. I tested the basic install before adding FastCGI and everything worked properly in my test file (a GetCapabilities request on a simple one image mapfile). I couldn't find any IIS-specific install instructions for FastCGI so I attempted to adapt the instructions given here for Apache: http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#f-fastcgi Running the GetCapabilities request again throws me the following 500 error: FastCGI Error The FastCGI Handler was unable to process the request. ________________________________ Error Details: * The FastCGI process exited unexpectedly * Error Number: -2147467259 (0x80004005). * Error Description: Unspecified error HTTP Error 500 - Server Error. Internet Information Services (IIS) I've reduced the problem to a simple test case that creates a request object and initialises it. loadparams(); ?> The loadparams() call is the source of the problem but I've been completely unable to find a solution. So far this is the only piece of code I can find that will cause the error. All other normal PHP operations and MapScript code that I've tried work without issue This one has me quite stumped, any help would be much appreciated. cheers __________________________________ Keith Moss Satellite Remote Sensing Services Landgate 65 Brockway Road, FLOREAT WA 6014 PO Box 741 Wembley WA 6913 Ph. (08) 9387 0332 | Fx. (08) 9383 7142 keith.moss at landgate.wa.gov.au www.landgate.wa.gov.au This e-mail and any files transmitted with it are intended only for the use of the addressee(s). It may contain information that is confidential and privileged, in which case neither is intended to be waived or lost by mistaken delivery to you. If you are not an intended recipient, any use, interference with, disclosure, distribution or copying of this material is unauthorised and prohibited. If you receive this e-mail in error, please notify the sender by return e-mail and delete the message and any attachments from your system. Unless specifically indicated, this e-mail does not constitute formal advice or commitment by the sender or the Western Australian Land Information Authority (Landgate). Information in this message not relating to the official business of Landgate shall be understood as neither given nor endorsed by it. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. Landgate?s liability is limited to re-supplying affected attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Dejan.Gambin at pula.hr Mon May 18 23:58:48 2009 From: Dejan.Gambin at pula.hr (Dejan.Gambin at pula.hr) Date: Tue, 19 May 2009 08:58:48 +0200 Subject: [mapserver-users] queryByAttributes returns no result with OGR/ODBC data source In-Reply-To: Message-ID: Since I didn't solve this yet, is there a way to somehow debug the query and see what is happening on individual "layers"? regards, dejan mapserver-users-bounces at lists.osgeo.org wrote on 18.05.2009 08:22:37: > > > > > Try to remove the brackets [] from the field names > > queryByAttributes("KOORDINATAX", 5460870, MS_MULTIPLE); > > Regards > Maher > > > > |---------+---------------------------> > | | Dejan.Gambin at pul| > | | a.hr | > | | | > | | 05/18/2009 09:19| > | | AM | > |---------+---------------------------> > > >-------------------------------------------------------------------------------------------------------------------------------------------------- > | > | | > | To: Maher Karim | > | cc: mapserver-users org>, mapserver-users-bounces org> | > | Subject: Re: [mapserver-users] queryByAttributes returns > no result with OGR/ODBC data source | > > >-------------------------------------------------------------------------------------------------------------------------------------------------- > | > > > > > Hi, > > Unfortunatelly it doesn't help. I have tried with: > > queryByAttributes("[KOORDINATAX]", ( [KOORDINATAX] = 5460870 ), > MS_MULTIPLE); > > and with > > queryByAttributes("[KOORDINATAX]", 5460870, MS_MULTIPLE); > > Neither one gives results :-( > > dejan > > Maher Karim wrote on 18.05.2009 07:28:19: > > > > > > > > > > > HI, > > Please consider that there is a difference the field name definintion for > > the item query, the field name is differenet when you are using > shapefiles > > than PostGIS tables. > > Try to use > > $strExp=( [KOORDINATAX] = 5460870 ); > > queryByAttributes('itemname',$strExp,MS_MULTIPLE) > > > > and if Not working try > > queryByAttributes( [KOORDINATAX],5460870,MS_MULTIPLE) > > > > Hope that it helps > > > > Regards > > Maher > > > > > > > > > > |---------+---------------------------------------> > > | | Dejan.Gambin at pula.hr | > > | | Sent by: | > > | | mapserver-users-bounces at list| > > | | s.osgeo.org | > > | | | > > | | | > > | | 05/18/2009 12:50 AM | > > |---------+---------------------------------------> > > > > > >-------------------------------------------------------------------------------------------------------------------------------------------------- > > > | > > | > | > > | To: mapserver-users at lists.osgeo.org > | > > | cc: > | > > | Subject: [mapserver-users] queryByAttributes returns no > > result with OGR/ODBC data source > | > > > > > >-------------------------------------------------------------------------------------------------------------------------------------------------- > > > | > > > > > > > > > > Hi, > > > > I am using OGR Virtual Spatial Data to connect to MS Access database > using > > ODBC. Database has X/Y columns. I have created .ovf file like this: > > > > > > > > ODBC:@Krk > > ID > > Dozvole > > wkbPoint > > > y="KoordinataY"/> > > > > > > > > It is all working fine and the points are showing on the map (using > > p.mapper). Alos, ogrinfo with -where clause is working fine. But the > > attribute query gives no result, whichever field I query. Query string is > > like: > > > > ( [KOORDINATAX] = 5460870 ) > > > > This syntax works fine with shape files and also wit OGR layers based on > > MapInfo files. But not with ODBC/Access. > > > > I am using ms4w 2.2.7 > > > > Any help? > > > > regards, dejan_______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcorti at gmail.com Tue May 19 01:27:44 2009 From: pcorti at gmail.com (Paolo Corti) Date: Tue, 19 May 2009 01:27:44 -0700 (PDT) Subject: [mapserver-users] select one column values from a table In-Reply-To: <1242634303620-2931342.post@n2.nabble.com> References: <1242634303620-2931342.post@n2.nabble.com> Message-ID: <1242721664439-2938255.post@n2.nabble.com> meenu wrote: > > dears,in a mapserver website how can i retrve one column details from a > table....for eg in my map i have one table called n_123 ...in this table i > have one column named "PLO_900"...i need to retrive value like as follows > "select PLO_900 from n_123 "...i did the coding like as follows...but it > is giving me the table field names...can anybody help me to solve this > issue? > > Dim layer As layerObj = Util.MSMap.getLayerByName("n_123 ") > If layer IsNot Nothing Then > layer.open() > For i As Integer = 0 To layer.numitems - 1 > Me.CmbS.Items.Add(layer.getItem(i)) > Next > layer.close() > In c# this code is accessing a feature's values: String results = ""; layerObj layer = map.getLayerByName("mylayer"); layer.open(); shapeObj shape=layer.getFeature(shapeInd, -1); //iterate fields and getting values for(int i=0; i> follows "select PLO_900 from n_123 "...i did the coding like as >> follows...but it is giving me the table field names...can anybody help me >> to solve this issue? >> >> Dim layer As layerObj = Util.MSMap.getLayerByName("n_123 ") >> If layer IsNot Nothing Then >> layer.open() >> For i As Integer = 0 To layer.numitems - 1 >> Me.CmbS.Items.Add(layer.getItem(i)) >> Next >> layer.close() >> > > In c# this code is accessing a feature's values: > > String results = ""; > layerObj layer = map.getLayerByName("mylayer"); > layer.open(); > shapeObj shape=layer.getFeature(shapeInd, -1); > //iterate fields and getting values > for(int i=0; i { > results += "
" + layer.getItem(i) + "=" + shape.getValue(i); > } > layer.close(); > > let me know if it works for you > best regards > > Paolo > > > > > ----- Meenu -- View this message in context: http://n2.nabble.com/select-one-column-values-from-a-table-tp2931342p2938452.html Sent from the Mapserver - User mailing list archive at Nabble.com. From peter_rose at hotmail.com Tue May 19 02:32:07 2009 From: peter_rose at hotmail.com (Peter Rose) Date: Tue, 19 May 2009 02:32:07 -0700 (PDT) Subject: [mapserver-users] Another mailing list for MapServer? In-Reply-To: <1242038167675-2862246.post@n2.nabble.com> References: <1241777425282-2844517.post@n2.nabble.com> <2843.145.50.39.11.1241778345.squirrel@webmail.hostingdiscounter.nl> <1241786127117-2845039.post@n2.nabble.com> <65472.145.50.39.11.1241786542.squirrel@webmail.hostingdiscounter.nl> <4A0443F8.6010102@swoodbridge.com> <1241798527094-2846149.post@n2.nabble.com> <1242038167675-2862246.post@n2.nabble.com> Message-ID: <1242725527896-2938511.post@n2.nabble.com> Hi Jim, Are you still out there? I?ve responded to you a week ago like you asked me to and I?ve even sent you two e-mails. You say it?s easy to add fieldnames to the features in my php script but this still doesn?t seem to work. Although I could have made a mistake as I?m not very strong on php. I?ve added a fiscal line to my function but still nothing happens. This is what my function looks like now: function AddPoints ( $map, $qresult ) { $this_layer = $map->getLayerByName('poi'); $i = 0; foreach($qresult as $row) { $poi[$i] = ms_newPointObj(); $ln[$i] = ms_newLineObj(); $shp[$i] = ms_newShapeObj(MS_SHAPE_POINT); $poi[$i]->setXY($row[27],$row[28]); $ln[$i]->add($poi[$i]); $shp[$i]->add($ln[$i]); $shp[$i]->values ["fiscal"]; $shp[$i]->set(index, $row[0]); $this_layer->addFeature( $shp[$i] ); $i++; } return; } // end AddPoints -- View this message in context: http://n2.nabble.com/Another-mailing-list-for-MapServer--tp2844517p2938511.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pcorti at gmail.com Tue May 19 03:39:11 2009 From: pcorti at gmail.com (Paolo Corti) Date: Tue, 19 May 2009 03:39:11 -0700 (PDT) Subject: [mapserver-users] select one column values from a table In-Reply-To: <1242724544315-2938452.post@n2.nabble.com> References: <1242634303620-2931342.post@n2.nabble.com> <1242721664439-2938255.post@n2.nabble.com> <1242724544315-2938452.post@n2.nabble.com> Message-ID: <1242729551230-2938771.post@n2.nabble.com> hi friend...thanks for ur response... let me desribe my requirement in detail... i have one table n_123 and in that table i have 2 columns PLO_900,PLO_901. PLO_900 PLO_900 af op_1 3f op_2 h7 op_3 i need the result like as follows af 3f h7 that means all the values from the first column....the specified code u mentioned giving me only one record....can u help me ? Basically you have 2 ways: 1) like in my sample code, iterate all the features and access the field values with layer.getItem(i) 2) much better for performance and if your layer is in a spatial database: do a select distinct. If for example you are using PostGis from .NET use the postgres driver (npgsql: http://npgsql.projects.postgresql.org/) and with a sqlcommand use this commandtext: select distinct(yourfield) from yourtable best regards Paolo -- View this message in context: http://n2.nabble.com/select-one-column-values-from-a-table-tp2931342p2938771.html Sent from the Mapserver - User mailing list archive at Nabble.com. From meenu.monu at gmail.com Tue May 19 04:25:58 2009 From: meenu.monu at gmail.com (meenu) Date: Tue, 19 May 2009 04:25:58 -0700 (PDT) Subject: [mapserver-users] select one column values from a table In-Reply-To: <1242729551230-2938771.post@n2.nabble.com> References: <1242634303620-2931342.post@n2.nabble.com> <1242721664439-2938255.post@n2.nabble.com> <1242724544315-2938452.post@n2.nabble.com> <1242729551230-2938771.post@n2.nabble.com> Message-ID: <1242732358124-2938939.post@n2.nabble.com> hi friend...i am not using postrgis method for this...so am prefering the first option... in a while loop how can i check till the end of records( not fields)... ur mentioned code is taking layer.numitems - 1 ...it is checking all the field count...instead of that how i cancheck record nos?? ----- Meenu -- View this message in context: http://n2.nabble.com/select-one-column-values-from-a-table-tp2931342p2938939.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pcorti at gmail.com Tue May 19 06:49:25 2009 From: pcorti at gmail.com (Paolo Corti) Date: Tue, 19 May 2009 06:49:25 -0700 (PDT) Subject: [mapserver-users] select one column values from a table In-Reply-To: <1242732358124-2938939.post@n2.nabble.com> References: <1242634303620-2931342.post@n2.nabble.com> <1242721664439-2938255.post@n2.nabble.com> <1242724544315-2938452.post@n2.nabble.com> <1242729551230-2938771.post@n2.nabble.com> <1242732358124-2938939.post@n2.nabble.com> Message-ID: <1242740965463-2939629.post@n2.nabble.com> meenu wrote: > > hi friend...i am not using postrgis method for this...so am prefering the > first option... > in a while loop how can i check till the end of records( not fields)... > ur mentioned code is taking layer.numitems - 1 ...it is checking all the > field count...instead of that how i cancheck record nos?? > this should make the trick (couldn't test now): for(int i=0; i From geek at uniserve.com Tue May 19 12:53:32 2009 From: geek at uniserve.com (Dave Stevens) Date: Tue, 19 May 2009 12:53:32 -0700 Subject: [mapserver-users] Centos dependency error with libevent Message-ID: <200905191253.32798.geek@uniserve.com> Hi, I'm using mapserver in a Centos 5.3 environment. Yum reports an update to libevent available from pgdg83 but when trying to update there is an unresolved dependency error on a library. Anyone else having this problem? Advice? Suggestions? Dave -- Canada must refuse to be entangled in any more wars fought to make the world safe for capitalism. -- The Regina Manifesto, 1933 From condit at sdsc.edu Tue May 19 14:23:28 2009 From: condit at sdsc.edu (Christopher Condit) Date: Tue, 19 May 2009 14:23:28 -0700 Subject: [mapserver-users] PERL MapScript In-Reply-To: <20090508172404.M69970@deprem.gov.tr> References: <20090507115038.M79754@deprem.gov.tr> <4A02D387.5157.008F.0@dnr.state.mn.us><20090508070209.M53227@deprem.gov.tr><001101c9cfac$dea687b0$9bf39710$@com> <20090508172404.M69970@deprem.gov.tr> Message-ID: <845AADAC1106E44996327D62097E4C6B012BC069@et.ad.sdsc.edu> Hi- I'm trying to get up and running with PERL MapScript on Linux (CentOS 5, MapServer 5.4 codebase). It seems to compile and install correctly but when I attempt to open a MapFile I get the following error: Can't locate auto/mapscript/mapObj/get.al in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) Has anyone else encountered this problem or know a solution? Thanks, -Chris From Tom.Kralidis at ec.gc.ca Tue May 19 15:44:45 2009 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Tue, 19 May 2009 18:44:45 -0400 Subject: [mapserver-users] PERL MapScript References: <20090507115038.M79754@deprem.gov.tr> <4A02D387.5157.008F.0@dnr.state.mn.us><20090508070209.M53227@deprem.gov.tr><001101c9cfac$dea687b0$9bf39710$@com> <20090508172404.M69970@deprem.gov.tr> <845AADAC1106E44996327D62097E4C6B012BC069@et.ad.sdsc.edu> Message-ID: <23842457308FD64AA88A8EE62F2A7D5B83B435@OntExch3.ontario.int.ec.gc.ca> What does your code look like? The following works for me: #!/usr/bin/perl use strict; use warnings; use mapscript; my $map = new mapscript::mapObj('test.map'); $map->saveMapContext('out2.xml'); ..Tom -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org on behalf of Christopher Condit Sent: Tue 19-May-09 17:23 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] PERL MapScript Hi- I'm trying to get up and running with PERL MapScript on Linux (CentOS 5, MapServer 5.4 codebase). It seems to compile and install correctly but when I attempt to open a MapFile I get the following error: Can't locate auto/mapscript/mapObj/get.al in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) Has anyone else encountered this problem or know a solution? Thanks, -Chris _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From condit at sdsc.edu Tue May 19 16:45:27 2009 From: condit at sdsc.edu (Christopher Condit) Date: Tue, 19 May 2009 16:45:27 -0700 Subject: [mapserver-users] PERL MapScript In-Reply-To: <23842457308FD64AA88A8EE62F2A7D5B83B435@OntExch3.ontario.int.ec.gc.ca> References: <20090507115038.M79754@deprem.gov.tr> <4A02D387.5157.008F.0@dnr.state.mn.us><20090508070209.M53227@deprem.gov.tr><001101c9cfac$dea687b0$9bf39710$@com> <20090508172404.M69970@deprem.gov.tr> <845AADAC1106E44996327D62097E4C6B012BC069@et.ad.sdsc.edu> <23842457308FD64AA88A8EE62F2A7D5B83B435@OntExch3.ontario.int.ec.gc.ca> Message-ID: <845AADAC1106E44996327D62097E4C6B012BC080@et.ad.sdsc.edu> Hi Tom- > What does your code look like? The following works for me: #!/usr/bin/perl use mapscript; use strict; my $map = new mapscript::mapObj("test.map") or die "no map $!"; my $name = $map->get("name"); print $name; > #!/usr/bin/perl > > use strict; > use warnings; > use mapscript; > > my $map = new mapscript::mapObj('test.map'); > $map->saveMapContext('out2.xml'); I also tried running your code. It doesn't generate an error but no test.xml file is created... Any thoughts? Thanks, -Chris From Tom.Kralidis at ec.gc.ca Tue May 19 16:57:42 2009 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Tue, 19 May 2009 19:57:42 -0400 Subject: [mapserver-users] PERL MapScript References: <20090507115038.M79754@deprem.gov.tr> <4A02D387.5157.008F.0@dnr.state.mn.us><20090508070209.M53227@deprem.gov.tr><001101c9cfac$dea687b0$9bf39710$@com> <20090508172404.M69970@deprem.gov.tr> <845AADAC1106E44996327D62097E4C6B012BC069@et.ad.sdsc.edu> <23842457308FD64AA88A8EE62F2A7D5B83B435@OntExch3.ontario.int.ec.gc.ca> <845AADAC1106E44996327D62097E4C6B012BC080@et.ad.sdsc.edu> Message-ID: <23842457308FD64AA88A8EE62F2A7D5B83B436@OntExch3.ontario.int.ec.gc.ca> I get the same error when running mapObj->get("name"). I don't see any get() method in mapObj. From my example, you should see a out2.xml file written to disk. ..Tom -----Original Message----- From: Christopher Condit [mailto:condit at sdsc.edu] Sent: Tue 19-May-09 19:45 To: Kralidis,Tom [Ontario]; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] PERL MapScript Hi Tom- > What does your code look like? The following works for me: #!/usr/bin/perl use mapscript; use strict; my $map = new mapscript::mapObj("test.map") or die "no map $!"; my $name = $map->get("name"); print $name; > #!/usr/bin/perl > > use strict; > use warnings; > use mapscript; > > my $map = new mapscript::mapObj('test.map'); > $map->saveMapContext('out2.xml'); I also tried running your code. It doesn't generate an error but no test.xml file is created... Any thoughts? Thanks, -Chris From woodbri at swoodbridge.com Tue May 19 18:32:28 2009 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 19 May 2009 21:32:28 -0400 Subject: [mapserver-users] PERL MapScript In-Reply-To: <23842457308FD64AA88A8EE62F2A7D5B83B436@OntExch3.ontario.int.ec.gc.ca> References: <20090507115038.M79754@deprem.gov.tr> <4A02D387.5157.008F.0@dnr.state.mn.us><20090508070209.M53227@deprem.gov.tr><001101c9cfac$dea687b0$9bf39710$@com> <20090508172404.M69970@deprem.gov.tr> <845AADAC1106E44996327D62097E4C6B012BC069@et.ad.sdsc.edu> <23842457308FD64AA88A8EE62F2A7D5B83B435@OntExch3.ontario.int.ec.gc.ca> <845AADAC1106E44996327D62097E4C6B012BC080@et.ad.sdsc.edu> <23842457308FD64AA88A8EE62F2A7D5B83B436@OntExch3.ontario.int.ec.gc.ca> Message-ID: <4A135DAC.1070202@swoodbridge.com> Did you try: print mapObj->{name}."\n"; -Steve W Kralidis,Tom [Ontario] wrote: > I get the same error when running mapObj->get("name"). I don't see > any get() method in mapObj. From my example, you should see a > out2.xml file written to disk. > > ..Tom > > > > -----Original Message----- From: Christopher Condit > [mailto:condit at sdsc.edu] Sent: Tue 19-May-09 19:45 To: Kralidis,Tom > [Ontario]; mapserver-users at lists.osgeo.org Subject: RE: > [mapserver-users] PERL MapScript > > Hi Tom- >> What does your code look like? The following works for me: > #!/usr/bin/perl use mapscript; use strict; > > my $map = new mapscript::mapObj("test.map") or die "no map $!"; my > $name = $map->get("name"); print $name; > >> #!/usr/bin/perl >> >> use strict; use warnings; use mapscript; >> >> my $map = new mapscript::mapObj('test.map'); >> $map->saveMapContext('out2.xml'); > > I also tried running your code. It doesn't generate an error but no > test.xml file is created... > > Any thoughts? Thanks, -Chris > > > > _______________________________________________ mapserver-users > mailing list mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jfalvarez at vesifront.org Tue May 19 20:18:37 2009 From: jfalvarez at vesifront.org (Juan Felipe Alvarez Saldarriaga) Date: Tue, 19 May 2009 22:18:37 -0500 Subject: [mapserver-users] MapServer 5.4.0 Buffer Overflow Error Message-ID: <61f49d0f0905192018gdcfe71eqd19b7d49b1b21015@mail.gmail.com> Hey!. I'm trying to load a WMS layer, but I got always a buffer overflow error, thx for any advice! :) This is my mapserv config: root at vesifront:/usr/lib/cgi-bin# ./mapserv -v MapServer version 5.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS _CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=GDAL INPUT=SHAPEFILE My system is a Ubuntu Linux 9.04 and this is the WMS layer into the map file: LAYER NAME 'Mapa Base' TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://wms.jpl.nasa.gov/browse.cgi?wms_server=wms.cgi" METADATA 'wms_server_version' '1.1.1' 'wms_format' 'image/jpeg' 'wms_style' '' 'wms_name' 'BMNG' END METADATA # 'wms_title' 'Mapa Base' 'wms_title' 'BMNG' END STATUS DEFAULT TRANSPARENCY 100 PROJECTION "init=epsg:4326" END END And this is the error that I got when I try to test the map file with shp2img: root at vesifront:/usr/lib/cgi-bin# shp2img -all_debug 3 -m /home/jfalvarez/projec ts/cms/branches/V1/docroot/map-files/9182340517c2d323061dc1cffea6e431.map -o ou t.png [Tue May 19 22:14:03 2009].813526 msLoadMap(): 0.006s [Tue May 19 22:14:03 2009].816973 HTTP: Starting to prepare HTTP requests. [Tue May 19 22:14:03 2009].817552 HTTP request: id=0, http://wms.jpl.nasa.gov/br owse.cgi?wms_server=wms.cgi&LAYERS=BMNG&REQUEST=GetMap&SERVICE=WMS&FORMAT=image/ jpeg&STYLES=&HEIGHT=600&VERSION=1.1.1&SRS=EPSG:4326&WIDTH=800&BBOX=-94.076794657 7629,-54.0575959933222,-1.92320534223706,15.0575959933222&TRANSPARENT=TRUE&EXCEP TIONS=application/vnd.ogc.se_inimage [Tue May 19 22:14:03 2009].819297 HTTP: Before download loop [Tue May 19 22:14:04 2009].175669 msHTTPWriteFct(id=0, 852 bytes) [Tue May 19 22:14:04 2009].279581 HTTP: After download loop [Tue May 19 22:14:04 2009].280033 msHTTPExecuteRequests() timing summary per lay er (connect_time + time_to_first_packet + download_time = total_time in seconds) [Tue May 19 22:14:04 2009].280572 Layer 0: 0.169 + 0.186 + 0.274 = 0.629s [Tue May 19 22:14:04 2009].281375 msDrawRasterLayerLow(BMNG): entering. *** buffer overflow detected ***: shp2img terminated ======= Backtrace: ========= /lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb6a87da8] /lib/tls/i686/cmov/libc.so.6[0xb6a85eb0] /lib/tls/i686/cmov/libc.so.6(__strcpy_chk+0x44)[0xb6a85184] shp2img(msDrawRasterLayerLow+0x91d)[0x80c4e0d] shp2img(msDrawRasterLayer+0x7b)[0x807ffab] shp2img(msDrawLayer+0x35e)[0x8080f0e] shp2img(msDrawWMSLayerLow+0x598)[0x80d57d8] shp2img(msDrawMap+0x834)[0x8082794] shp2img(main+0x912)[0x8059722] /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb69a0775] shp2img[0x8058d71] ======= Memory map: ======== 08048000-08110000 r-xp 00000000 fd:00 197813 /usr/local/bin/shp2img 08110000-08111000 r--p 000c7000 fd:00 197813 /usr/local/bin/shp2img 08111000-08114000 rw-p 000c8000 fd:00 197813 /usr/local/bin/shp2img 08114000-08222000 rw-p 08114000 00:00 0 [heap] b588c000-b5891000 r-xp 00000000 fd:00 98403 /lib/tls/i686/cmov/libnss_dns-2 .9.so b5891000-b5892000 r--p 00004000 fd:00 98403 /lib/tls/i686/cmov/libnss_dns-2 .9.so b5892000-b5893000 rw-p 00005000 fd:00 98403 /lib/tls/i686/cmov/libnss_dns-2 .9.so b5893000-b589d000 r-xp 00000000 fd:00 98405 /lib/tls/i686/cmov/libnss_files -2.9.so b589d000-b589e000 r--p 00009000 fd:00 98405 /lib/tls/i686/cmov/libnss_files -2.9.so b589e000-b589f000 rw-p 0000a000 fd:00 98405 /lib/tls/i686/cmov/libnss_files -2.9.so b589f000-b58a3000 rw-p b589f000 00:00 0 b58a3000-b58a6000 r-xp 00000000 fd:00 49415 /lib/libgpg-error.so.0.3.0 b58a6000-b58a7000 rw-p 00002000 fd:00 49415 /lib/libgpg-error.so.0.3.0 b58a7000-b58ab000 r-xp 00000000 fd:00 199058 /usr/lib/libXdmcp.so.6.0.0 b58ab000-b58ac000 rw-p 00003000 fd:00 199058 /usr/lib/libXdmcp.so.6.0.0 b58ac000-b58ae000 r-xp 00000000 fd:00 197736 /usr/lib/libXau.so.6.0.0 b58ae000-b58af000 r--p 00001000 fd:00 197736 /usr/lib/libXau.so.6.0.0 b58af000-b58b0000 rw-p 00002000 fd:00 197736 /usr/lib/libXau.so.6.0.0 b58b0000-b58c5000 r-xp 00000000 fd:00 98398 /lib/tls/i686/cmov/libnsl-2.9.s o b58c5000-b58c6000 r--p 00014000 fd:00 98398 /lib/tls/i686/cmov/libnsl-2.9.s o b58c6000-b58c7000 rw-p 00015000 fd:00 98398 /lib/tls/i686/cmov/libnsl-2.9.s o b58c7000-b58ca000 rw-p b58c7000 00:00 0 b58ca000-b58cc000 r-xp 00000000 fd:00 49292 /lib/libkeyutils-1.2.so b58cc000-b58cd000 r--p 00001000 fd:00 49292 /lib/libkeyutils-1.2.so b58cd000-b58ce000 rw-p 00002000 fd:00 49292 /lib/libkeyutils-1.2.so b58ce000-b58d5000 r-xp 00000000 fd:00 198044 /usr/lib/libkrb5support.so.0.1 b58d5000-b58d6000 r--p 00006000 fd:00 198044 /usr/lib/libkrb5support.so.0.1 b58d6000-b58d7000 rw-p 00007000 fd:00 198044 /usr/lib/libkrb5support.so.0.1 b58d7000-b58f9000 r-xp 00000000 fd:00 197986 /usr/lib/libk5crypto.so.3.1 b58f9000-b58fa000 r--p 00022000 fd:00 197986 /usr/lib/libk5crypto.so.3.1 b58fa000-b58fb000 rw-p 00023000 fd:00 197986 /usr/lib/libk5crypto.so.3.1 b58fb000-b5911000 r-xp 00000000 fd:00 197574 /usr/lib/libsasl2.so.2.0.22 b5911000-b5912000 r--p 00015000 fd:00 197574 /usr/lib/libsasl2.so.2.0.22 b5912000-b5913000 rw-p 00016000 fd:00 197574 /usr/lib/libsasl2.so.2.0.22 b5913000-b5925000 r-xp 00000000 fd:00 98435 /lib/tls/i686/cmov/libresolv-2. 9.so b5925000-b5926000 r--p 00011000 fd:00 98435 /lib/tls/i686/cmov/libresolv-2. 9.so b5926000-b5927000 rw-p 00012000 fd:00 98435 /lib/tls/i686/cmov/libresolv-2. 9.so b5927000-b592a000 rw-p b5927000 00:00 0 b592a000-b5990000 r-xp 00000000 fd:00 49280 /lib/libgcrypt.so.11.4.4 b5990000-b5991000 r--p 00065000 fd:00 49280 /lib/libgcrypt.so.11.4.4 b5991000-b5993000 rw-p 00066000 fd:00 49280 /lib/libgcrypt.so.11.4.4 b5993000-b59a3000 r-xp 00000000 fd:00 196657 /usr/lib/libtasn1.so.3.0.16 b59a3000-b59a4000 r--p 0000f000 fd:00 196657 /usr/lib/libtasn1.so.3.0.16 b59a4000-b59a5000 rw-p 00010000 fd:00 196657 /usr/lib/libtasn1.so.3.0.16 b59a5000-b59ae000 r-xp 00000000 fd:00 98354 /lib/tls/i686/cmov/libcrypt-2.9 .so b59ae000-b59af000 r--p 00008000 fd:00 98354 /lib/tls/i686/cmov/libcrypt-2.9 .so b59af000-b59b0000 rw-p 00009000 fd:00 98354 /lib/tls/i686/cmov/libcrypt-2.9 .so b59b0000-b59d7000 rw-p b59b0000 00:00 0 b59d7000-b59d9000 r-xp 00000000 fd:00 49185 /lib/libcom_err.so.2.1 b59d9000-b59da000 r--p 00001000 fd:00 49185 /lib/libcom_err.so.2.1 b59da000-b59db000 rw-p 00002000 fd:00 49185 /lib/libcom_err.so.2.1 b59db000-b5a6a000 r-xp 00000000 fd:00 197990 /usr/lib/libkrb5.so.3.3 b5a6a000-b5a6c000 r--p 0008e000 fd:00 197990 /usr/lib/libkrb5.so.3.3 b5a6c000-b5a6d000 rw-p 00090000 fd:00 197990 /usr/lib/libkrb5.so.3.3 b5a6d000-b5a6e000 rw-p b5a6d000 00:00 0 b5a6e000-b5ba1000 r-xp 00000000 fd:00 49509 /lib/i686/cmov/libcrypto.so.0.9 .8 b5ba1000-b5ba9000 r--p 00132000 fd:00 49509 /lib/i686/cmov/libcrypto.so.0.9 .8 b5ba9000-b5bb6000 rw-p 0013a000 fd:00 49509 /lib/i686/cmov/libcrypto.so.0.9 .8 b5bb6000-b5bba000 rw-p b5bb6000 00:00 0 b5bba000-b5bfc000 r-xp 00000000 fd:00 49512 /lib/i686/cmov/libssl.so.0.9.8 b5bfc000-b5bfd000 r--p 00041000 fd:00 49512 /lib/i686/cmov/libssl.so.0.9.8 b5bfd000-b5c00000 rw-p 00042000 fd:00 49512 /lib/i686/cmov/libssl.so.0.9.8 b5c00000-b66d6000 r--p 00000000 fd:00 198175 /usr/lib/libicudata.so.38.1 b66d6000-b66d7000 r--p 00ad5000 fd:00 198175 /usr/lib/libicudata.so.38.1 b66d7000-b67f4000 r-xp 00000000 fd:00 200522 /usr/lib/libicuuc.so.38.1 b67f4000-b67f5000 ---p 0011d000 fd:00 200522 /usr/lib/libicuuc.so.38.1 b67f5000-b67fd000 r--p 0011d000 fd:00 200522 /usr/lib/libicuuc.so.38.1 b67fd000-b67fe000 rw-p 00125000 fd:00 200522 /usr/lib/libicuuc.so.38.1 b67fe000-b6800000 rw-p b67fe000 00:00 0 b6800000-b6807000 r-xp 00000000 fd:00 197048 /usr/lib/libltdl.so.7.2.0 b6807000-b6808000 r--p 00006000 fd:00 197048 /usr/lib/libltdl.so.7.2.0 b6808000-b6809000 rw-p 00007000 fd:00 197048 /usr/lib/libltdl.so.7.2.0 b6809000-b680a000 rw-p b6809000 00:00 0 b680a000-b6930000 r-xp 00000000 fd:00 196683 /usr/lib/libgeos-3.0.0.so b6930000-b6934000 rw-p 00125000 fd:00 196683 /usr/lib/libgeos-3.0.0.so b6934000-b694c000 r-xp 00000000 fd:00 199065 /usr/lib/libxcb.so.1.1.0 b694c000-b694d000 r--p 00017000 fd:00 199065 /usr/lib/libxcb.so.1.1.0 b694d000-b694e000 rw-p 00018000 fd:00 199065 /usr/lib/libxcb.so.1.1.0 b694e000-b6979000 r-xp 00000000 fd:00 196744 /usr/lib/libfontconfig.so.1.3.0 b6979000-b697a000 r--p 0002a000 fd:00 196744 /usr/lib/libfontconfig.so.1.3.0 b697a000-b697b000 rw-p 0002b000 fd:00 196744 /usr/lib/libfontconfig.so.1.3.0 b697b000-b6988000 r-xp 00000000 fd:00 49222 /lib/libgcc_s.so.1 b6988000-b6989000 r--p 0000c000 fd:00 49222 /lib/libgcc_s.so.1 b6989000-b698a000 rw-p 0000d000 fd:00 49222 /lib/libgcc_s.so.1 b698a000-b6ae6000 r-xp 00000000 fd:00 98338 /lib/tls/i686/cmov/libc-2.9.so b6ae6000-b6ae7000 ---p 0015c000 fd:00 98338 /lib/tls/i686/cmov/libc-2.9.so b6ae7000-b6ae9000 r--p 0015c000 fd:00 98338 /lib/tls/i686/cmov/libc-2.9.so b6ae9000-b6aea000 rw-p 0015e000 fd:00 98338 /lib/tls/i686/cmov/libc-2.9.so b6aea000-b6aee000 rw-p b6aea000 00:00 0 b6aee000-b6bd2000 r-xp 00000000 fd:00 198979 /usr/lib/libstdc++.so.6.0.10 b6bd2000-b6bd6000 r--p 000e3000 fd:00 198979 /usr/lib/libstdc++.so.6.0.10 b6bd6000-b6bd7000 rw-p 000e7000 fd:00 198979 /usr/lib/libstdc++.so.6.0.10 b6bd7000-b6bdd000 rw-p b6bd7000 00:00 0 b6bdd000-b6c01000 r-xp 00000000 fd:00 98378 /lib/tls/i686/cmov/libm-2.9.so b6c01000-b6c02000 r--p 00023000 fd:00 98378 /lib/tls/i686/cmov/libm-2.9.so b6c02000-b6c03000 rw-p 00024000 fd:00 98378 /lib/tls/i686/cmov/libm-2.9.so b6c03000-b6da2000 r-xp 00000000 fd:00 197497 /usr/lib/libmysqlclient.so.15.0 .0 b6da2000-b6da5000 r--p 0019e000 fd:00 197497 /usr/lib/libmysqlclient.so.15.0 .0 b6da5000-b6de5000 rw-p 001a1000 fd:00 197497 /usr/lib/libmysqlclient.so.15.0 .0 b6de5000-b6de6000 rw-p b6de5000 00:00 0 b6de6000-b6e7d000 r-xp 00000000 fd:00 201145 /usr/lib/libgnutls.so.26.4.6 b6e7d000-b6e82000 r--p 00097000 fd:00 201145 /usr/lib/libgnutls.so.26.4.6 b6e82000-b6e83000 rw-p 0009c000 fd:00 201145 /usr/lib/libgnutls.so.26.4.6 b6e83000-b6eac000 r-xp 00000000 fd:00 197192 /usr/lib/libgssapi_krb5.so.2.2 b6eac000-b6ead000 r--p 00028000 fd:00 197192 /usr/lib/libgssapi_krb5.so.2.2 b6ead000-b6eae000 rw-p 00029000 fd:00 197192 /usr/lib/libgssapi_krb5.so.2.2 b6eae000-b6eee000 r-xp 00000000 fd:00 198528 /usr/lib/libldap_r-2.4.so.2.4.1 b6eee000-b6eef000 ---p 00040000 fd:00 198528 /usr/lib/libldap_r-2.4.so.2.4.1 b6eef000-b6ef0000 r--p 00040000 fd:00 198528 /usr/lib/libldap_r-2.4.so.2.4.1 b6ef0000-b6ef1000 rw-p 00041000 fd:00 198528 /usr/lib/libldap_r-2.4.so.2.4.1 b6ef1000-b6ef3000 rw-p b6ef1000 00:00 0 b6ef3000-b6eff000 r-xp 00000000 fd:00 198526 /usr/lib/liblber-2.4.so.2.4.1 b6eff000-b6f00000 r--p 0000b000 fd:00 198526 /usr/lib/liblber-2.4.so.2.4.1 b6f00000-b6f01000 rw-p 0000c000 fd:00 198526 /usr/lib/liblber-2.4.so.2.4.1 b6f01000-b6f31000 r-xp 00000000 fd:00 197174 /usr/lib/libidn.so.11.5.39 b6f31000-b6f32000 ---p 00030000 fd:00 197174 /usr/lib/libidn.so.11.5.39 b6f32000-b6f33000 r--p 00030000 fd:00 197174 /usr/lib/libidn.so.11.5.39 b6f33000-b6f34000 rw-p 00031000 fd:00 197174 /usr/lib/libidn.so.11.5.39 b6f34000-b6f6d000 r-xp 00000000 fd:00 201911 /usr/lib/libcurl-gnutls.so.4.1. 0 b6f6d000-b6f6e000 r--p 00038000 fd:00 201911 /usr/lib/libcurl-gnutls.so.4.1. 0 b6f6e000-b6f6f000 rw-p 00039000 fd:00 201911 /usr/lib/libcurl-gnutls.so.4.1. 0 b6f6f000-b6f71000 r-xp 00000000 fd:00 98374 /lib/tls/i686/cmov/libdl-2.9.so b6f71000-b6f72000 r--p 00001000 fd:00 98374 /lib/tls/i686/cmov/libdl-2.9.so b6f72000-b6f73000 rw-p 00002000 fd:00 98374 /lib/tls/i686/cmov/libdl-2.9.so b6f73000-b6f7a000 r-xp 00000000 fd:00 98436 /lib/tls/i686/cmov/librt-2.9.so b6f7a000-b6f7b000 r--p 00006000 fd:00 98436 /lib/tls/i686/cmov/librt-2.9.so b6f7b000-b6f7c000 rw-p 00007000 fd:00 98436 /lib/tls/i686/cmov/librt-2.9.so b6f7c000-b6f7d000 rw-p b6f7c000 00:00 0 b6f7d000-b6f9c000 r-xp 00000000 fd:00 198177 /usr/lib/libpq.so.5.1 b6f9c000-b6f9d000 r--p 0001e000 fd:00 198177 /usr/lib/libpq.so.5.1 b6f9d000-b6f9e000 rw-p 0001f000 fd:00 198177 /usr/lib/libpq.so.5.1 b6f9e000-b6fcd000 r-xp 00000000 fd:00 196821 /usr/lib/libnetcdf.so.4.0.0 b6fcd000-b6fce000 rw-p 0002e000 fd:00 196821 /usr/lib/libnetcdf.so.4.0.0 b6fce000-b6fcf000 rw-p b6fce000 00:00 0 b6fcf000-b6fd6000 r-xp 00000000 fd:00 199094 /usr/lib/libgif.so.4.1.6 b6fd6000-b6fd7000 r--p 00006000 fd:00 199094 /usr/lib/libgif.so.4.1.6 b6fd7000-b6fd8000 rw-p 00007000 fd:00 199094 /usr/lib/libgif.so.4.1.6 b6fd8000-b6ff4000 r-xp 00000000 fd:00 198859 /usr/lib/libogdi.so.3.2 b6ff4000-b6ff5000 r--p 0001b000 fd:00 198859 /usr/lib/libogdi.so.3.2 b6ff5000-b6ff6000 rw-p 0001c000 fd:00 198859 /usr/lib/libogdi.so.3.2 b6ff6000-b7072000 r-xp 00000000 fd:00 197865 /usr/lib/libdf.so.4.1r4 b7072000-b7073000 r--p 0007c000 fd:00 197865 /usr/lib/libdf.so.4.1r4 b7073000-b7075000 rw-p 0007d000 fd:00 197865 /usr/lib/libdf.so.4.1r4 b7075000-b709d000 rw-p b7075000 00:00 0 b709d000-b70bf000 r-xp 00000000 fd:00 197866 /usr/lib/libmfhdf.so.4.1r4 b70bf000-b70c0000 r--p 00021000 fd:00 197866 /usr/lib/libmfhdf.so.4.1r4 b70c0000-b70c1000 rw-p 00022000 fd:00 197866 /usr/lib/libmfhdf.so.4.1r4 b70c1000-b70c3000 rw-p b70c1000 00:00 0 b70c3000-b71f1000 r-xp 00000000 fd:00 197869 /usr/lib/libhdf5-1.6.6.so.0.0.0 b71f1000-b71f2000 r--p 0012e000 fd:00 197869 /usr/lib/libhdf5-1.6.6.so.0.0.0 b71f2000-b71f4000 rw-p 0012f000 fd:00 197869 /usr/lib/libhdf5-1.6.6.so.0.0.0 b71f4000-b71f5000 rw-p b71f4000 00:00 0 b71f5000-b723a000 r-xp 00000000 fd:00 198197 /usr/lib/libjasper.so.1.0.0 b723a000-b723b000 r--p 00044000 fd:00 198197 /usr/lib/libjasper.so.1.0.0 b723b000-b723e000 rw-p 00045000 fd:00 198197 /usr/lib/libjasper.so.1.0.0 b723e000-b7244000 rw-p b723e000 00:00 0 b7244000-b7259000 r-xp 00000000 fd:00 98434 /lib/tls/i686/cmov/libpthread-2 .9.so b7259000-b725a000 r--p 00014000 fd:00 98434 /lib/tls/i686/cmov/libpthread-2 .9.so b725a000-b725b000 rw-p 00015000 fd:00 98434 /lib/tls/i686/cmov/libpthread-2 .9.so b725b000-b725d000 rw-p b725b000 00:00 0 b725d000-b75e6000 r-xp 00000000 fd:00 198036 /usr/lib/libxerces-c.so.28.0 b75e6000-b75f4000 r--p 00388000 fd:00 198036 /usr/lib/libxerces-c.so.28.0 b75f4000-b7616000 rw-p 00396000 fd:00 198036 /usr/lib/libxerces-c.so.28.0 b7616000-b763a000 r-xp 00000000 fd:00 199031 /usr/lib/libexpat.so.1.5.2 b763a000-b763c000 r--p 00023000 fd:00 199031 /usr/lib/libexpat.so.1.5.2 b763c000-b763d000 rw-p 00025000 fd:00 199031 /usr/lib/libexpat.so.1.5.2 b763d000-b7648000 r-xp 00000000 fd:00 197050 /usr/lib/libodbcinst.so.1.0.0 b7648000-b7649000 r--p 0000a000 fd:00 197050 /usr/lib/libodbcinst.so.1.0.0 b7649000-b764a000 rw-p 0000b000 fd:00 197050 /usr/lib/libodbcinst.so.1.0.0 b764a000-b764b000 rw-p b764a000 00:00 0 b764b000-b76ad000 r-xp 00000000 fd:00 200524 /usr/lib/libodbc.so.1.0.0 b76ad000-b76ae000 r--p 00061000 fd:00 200524 /usr/lib/libodbc.so.1.0.0 b76ae000-b76b2000 rw-p 00062000 fd:00 200524 /usr/lib/libodbc.so.1.0.0 b76b2000-b772f000 r-xp 00000000 fd:00 198741 /usr/lib/libsqlite3.so.0.8.6 b772f000-b7730000 r--p 0007d000 fd:00 198741 /usr/lib/libsqlite3.so.0.8.6 b7730000-b7731000 rw-p 0007e000 fd:00 198741 /usr/lib/libsqlite3.so.0.8.6 b7731000-b7740000 r-xp 00000000 fd:00 197743 /usr/lib/libgeos_c.so.1.4.1 b7740000-b7741000 rw-p 0000e000 fd:00 197743 /usr/lib/libgeos_c.so.1.4.1 b7741000-b7c1f000 r-xp 00000000 fd:00 202927 /usr/lib/libgdal1.5.0.so.1.12.2 b7c1f000-b7c31000 r--p 004de000 fd:00 202927 /usr/lib/libgdal1.5.0.so.1.12.2 b7c31000-b7c71000 rw-p 004f0000 fd:00 202927 /usr/lib/libgdal1.5.0.so.1.12.2 b7c71000-b7cb4000 rw-p b7c71000 00:00 0 b7cb4000-b7ce5000 r-xp 00000000 fd:00 198848 /usr/lib/libproj.so.0.5.5 b7ce5000-b7ce7000 rw-p 00031000 fd:00 198848 /usr/lib/libproj.so.0.5.5 b7ce7000-b7ce8000 rw-p b7ce7000 00:00 0 b7ce8000-b7d3a000 r-xp 00000000 fd:00 197496 /usr/lib/libtiff.so.4.2.1 b7d3a000-b7d3c000 r--p 00052000 fd:00 197496 /usr/lib/libtiff.so.4.2.1 b7d3c000-b7d3d000 rw-p 00054000 fd:00 197496 /usr/lib/libtiff.so.4.2.1 b7d3d000-b7e27000 r-xp 00000000 fd:00 199062 /usr/lib/libX11.so.6.2.0 b7e27000-b7e28000 ---p 000ea000 fd:00 199062 /usr/lib/libX11.so.6.2.0 b7e28000-b7e29000 r--p 000ea000 fd:00 199062 /usr/lib/libX11.so.6.2.0 b7e29000-b7e2b000 rw-p 000eb000 fd:00 199062 /usr/lib/libX11.so.6.2.0 b7e2b000-b7e2c000 rw-p b7e2b000 00:00 0 b7e2c000-b7e3b000 r-xp 00000000 fd:00 197079 /usr/lib/libXpm.so.4.11.0 b7e3b000-b7e3c000 rw-p 0000f000 fd:00 197079 /usr/lib/libXpm.so.4.11.0 b7e3c000-b7e50000 r-xp 00000000 fd:00 49250 /lib/libz.so.1.2.3.3 b7e50000-b7e51000 r--p 00013000 fd:00 49250 /lib/libz.so.1.2.3.3 b7e51000-b7e52000 rw-p 00014000 fd:00 49250 /lib/libz.so.1.2.3.3 b7e52000-b7e76000 r-xp 00000000 fd:00 196618 /usr/lib/libpng12.so.0.27.0 b7e76000-b7e77000 r--p 00023000 fd:00 196618 /usr/lib/libpng12.so.0.27.0 b7e77000-b7e78000 rw-p 00024000 fd:00 196618 /usr/lib/libpng12.so.0.27.0 b7e78000-b7eea000 r-xp 00000000 fd:00 197766 /usr/lib/libfreetype.so.6.3.20 b7eea000-b7eee000 r--p 00071000 fd:00 197766 /usr/lib/libfreetype.so.6.3.20 b7eee000-b7eef000 rw-p 00075000 fd:00 197766 /usr/lib/libfreetype.so.6.3.20 b7eef000-b7ef0000 rw-p b7eef000 00:00 0 b7ef0000-b7f0f000 r-xp 00000000 fd:00 198194 /usr/lib/libjpeg.so.62.0.0 b7f0f000-b7f10000 rw-p 0001e000 fd:00 198194 /usr/lib/libjpeg.so.62.0.0 b7f10000-b7f2e000 r-xp 00000000 fd:00 197300 /usr/lib/libgd.so.2.0.0 b7f2e000-b7f2f000 r--p 0001d000 fd:00 197300 /usr/lib/libgd.so.2.0.0 b7f2f000-b7f4e000 rw-p 0001e000 fd:00 197300 /usr/lib/libgd.so.2.0.0 b7f4e000-b7f52000 rw-p b7f4e000 00:00 0 b7f5c000-b7f5e000 rw-p b7f5c000 00:00 0 b7f5e000-b7f7a000 r-xp 00000000 fd:00 49155 /lib/ld-2.9.so b7f7a000-b7f7b000 r--p 0001b000 fd:00 49155 /lib/ld-2.9.so b7f7b000-b7f7c000 rw-p 0001c000 fd:00 49155 /lib/ld-2.9.so bf967000-bf97c000 rw-p bffeb000 00:00 0 [stack] ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso] Aborted -------------- next part -------------- A non-text attachment was scrubbed... Name: my_map.map Type: application/octet-stream Size: 4330 bytes Desc: not available URL: From bestofmukul at gmail.com Wed May 20 01:04:27 2009 From: bestofmukul at gmail.com (Mukul Gupta) Date: Wed, 20 May 2009 01:04:27 -0700 Subject: [mapserver-users] addgeometrycolumn function not identified!!! Message-ID: Hi, I am trying to convert my shape files to postgre files. After getting sql file, postgre got struck by not recognising addgeometrycolumn function.In one of my files-- SELECT AddGeometryColumn('','gisdb','the_geom','-1','MULTILINESTRING',2); works while in other SELECT AddGeometryColumn('','gisdb','the_geom','-1','MULTIPOLYGON',2); doesnt work. Also I m unable to find lat long from successfully generated file. Please help me out urgently. Regards Mukul. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bestofmukul at gmail.com Wed May 20 01:54:23 2009 From: bestofmukul at gmail.com (Mukul Gupta) Date: Wed, 20 May 2009 01:54:23 -0700 Subject: [mapserver-users] Finding Lat-Long from geometric data type of postgre Message-ID: Hi, I want to display a tool tip for the polygons in my application for which I need lat-long values of polygon. Please tell me how to retrieve the values from geometry type field of postgre or If there is any other way of doing this. Regards Mukul -------------- next part -------------- An HTML attachment was scrubbed... URL: From pvoudouris at gaiocorp.com Wed May 20 02:43:32 2009 From: pvoudouris at gaiocorp.com (Pano Voudouris) Date: Wed, 20 May 2009 12:43:32 +0300 Subject: [mapserver-users] Get the nearest layer with mapscript... In-Reply-To: <33fad6880905191146j62628efen2fc34ee450365bf3@mail.gmail.com> References: <33fad6880905191146j62628efen2fc34ee450365bf3@mail.gmail.com> Message-ID: <008301c9d92f$712cc6e0$538654a0$@com> Probably don?t understand what exactly you are trying to achieve here but it is not as simple as map.getLayer(0) to get the topmost layer? And once you have the layer object use one of the query function to select the record? E.g. myLayerObj.queryByPoint ? Pano From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Paul james Sent: 19 May 2009 21:46 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Get the nearest layer with mapscript... Hello guys... I have several layers (lines, points, poly) ... I?m developing a measure tool... User can click on map and I have to select that layer to calculate de Area with postgis... I?m trying to do that WITHOUT using "LAYER ACTIVE SYSTEM"... Is That possible using mapscript? How Can I find the nearest and toppest layer ? Thanks! Paul -------------- next part -------------- An HTML attachment was scrubbed... URL: From iratxe.lejarreta at axios.es Wed May 20 03:39:54 2009 From: iratxe.lejarreta at axios.es (Iratxe Lejarreta) Date: Wed, 20 May 2009 12:39:54 +0200 Subject: [mapserver-users] Limit of records Message-ID: <200905201239.54664.iratxe.lejarreta@axios.es> Hi, I have problems with some layers and I'm thinking that the reason is the number of records. For example, with a layer which has 63057 records, the result is the following: 500 Internal Server Error And Apache log error: Timeout waiting for output from CGI script /var/cgi-bin/mapserv If exist a limit, which is the maximun number of records that mapserver can support? And in this case, what is the solution? Thanks in advance, -- Iratxe Lejarreta www.axios.es -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Wed May 20 03:52:03 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 20 May 2009 13:52:03 +0300 Subject: [mapserver-users] Limit of records In-Reply-To: <200905201239.54664.iratxe.lejarreta@axios.es> References: <200905201239.54664.iratxe.lejarreta@axios.es> Message-ID: Hi, There is no limit for number of records in Mapserver. Apache. that is used as http server in front of Mapserver does have timeout, which is 300 seconds by default but can be adjusted. Generally speaking number of records does not tell much about how hard that layer is to handle, if anything. It depends more on the vector data format, nature of the features (points vs. polygons with thousands of vertices), indexing etc. However, I would say that normally 63 thousand features is not much and if Mapserver hits the timeout then the data are not suitable for Mapserver without some preprocessing. So, please describe what kind of data you have. Ogrinfo report about the layer would be a good addition. -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Iratxe Lejarreta L?hetetty: 20. toukokuuta 2009 13:40 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Limit of records Hi, I have problems with some layers and I'm thinking that the reason is the number of records. For example, with a layer which has 63057 records, the result is the following: 500 Internal Server Error And Apache log error: Timeout waiting for output from CGI script /var/cgi-bin/mapserv If exist a limit, which is the maximun number of records that mapserver can support? And in this case, what is the solution? Thanks in advance, -- Iratxe Lejarreta www.axios.es -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter_rose at hotmail.com Wed May 20 04:20:51 2009 From: peter_rose at hotmail.com (Peter Rose) Date: Wed, 20 May 2009 04:20:51 -0700 (PDT) Subject: [mapserver-users] Limit of records In-Reply-To: <200905201239.54664.iratxe.lejarreta@axios.es> References: <200905201239.54664.iratxe.lejarreta@axios.es> Message-ID: <1242818451380-2945560.post@n2.nabble.com> Hi Iratxe, I've found that the limit on my maps is 2000 records. I store the points in a MySQL database and use PHP/MapScript to create the map so I don't know what sets this limit but 2000 points on a map seems fair enought for the average map. Unless you have a very big map it would quickly get too cluttered and difficult to read for the users. Regards, Peter Rose -- View this message in context: http://n2.nabble.com/Limit-of-records-tp2945434p2945560.html Sent from the Mapserver - User mailing list archive at Nabble.com. From meenu.monu at gmail.com Wed May 20 04:34:58 2009 From: meenu.monu at gmail.com (meenu) Date: Wed, 20 May 2009 04:34:58 -0700 (PDT) Subject: [mapserver-users] select one column values from a table In-Reply-To: <1242740965463-2939629.post@n2.nabble.com> References: <1242634303620-2931342.post@n2.nabble.com> <1242721664439-2938255.post@n2.nabble.com> <1242724544315-2938452.post@n2.nabble.com> <1242729551230-2938771.post@n2.nabble.com> <1242732358124-2938939.post@n2.nabble.com> <1242740965463-2939629.post@n2.nabble.com> Message-ID: <1242819298398-2945586.post@n2.nabble.com> hi friend thanks....i tried mentioned code ...but am getting error like "msLayerGetNumFeatures(): Shapefile error. Not an inline layer" in my map file i wrote the table structure for this specified matter is as follows... is this error comes because of my table or not? LAYER NAME "n_123 " TYPE POINT CONNECTIONTYPE OGR CONNECTION "n_123 .TAB" STATUS ON LABELITEM "PLO_900 " CLASS STYLE COLOR 255 0 0 OUTLINECOLOR 0 0 0 SYMBOL 'ball' END LABEL COLOR 100 100 255 FONT arial TYPE TRUETYPE SIZE 7 POSITION LC WRAP " " END#LABEL END# CLASS END#LAYER ----- Meenu -- View this message in context: http://n2.nabble.com/select-one-column-values-from-a-table-tp2931342p2945586.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Wed May 20 04:38:48 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 20 May 2009 14:38:48 +0300 Subject: [mapserver-users] Limit of records In-Reply-To: <1242818451380-2945560.post@n2.nabble.com> References: <200905201239.54664.iratxe.lejarreta@axios.es> <1242818451380-2945560.post@n2.nabble.com> Message-ID: Hi, I made a quick test by commenting out my MAXSCALEDENOM and MAXFEATURES settings. For me it takes now around 10 seconds to draw 1.1 million polygons from Oracle spatial through WMS. Timing comes from Mapserver log with layer set to DEBUG 5. Sure it does not make sense to draw 1.1 million polygons to 500x400 pixels on screen but it does not need to be extraordinary slow either. -Jukka- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Peter Rose > L?hetetty: 20. toukokuuta 2009 14:21 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] Limit of records > > > Hi Iratxe, > > I've found that the limit on my maps is 2000 records. > I store the points in a MySQL database and use PHP/MapScript > to create the map so I don't know what sets this limit but > 2000 points on a map seems fair enought for the average map. > Unless you have a very big map it would quickly get too > cluttered and difficult to read for the users. > > Regards, > Peter Rose > -- > View this message in context: > http://n2.nabble.com/Limit-of-records-tp2945434p2945560.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jfalvarez at vesifront.org Wed May 20 04:56:23 2009 From: jfalvarez at vesifront.org (Juan Felipe Alvarez Saldarriaga) Date: Wed, 20 May 2009 06:56:23 -0500 Subject: [mapserver-users] MapServer 5.4.0 Buffer Overflow Error In-Reply-To: <75b4b93e0905192239i67bf5ba4lcb6fc43345a3108b@mail.gmail.com> References: <61f49d0f0905192018gdcfe71eqd19b7d49b1b21015@mail.gmail.com> <75b4b93e0905192239i67bf5ba4lcb6fc43345a3108b@mail.gmail.com> Message-ID: <61f49d0f0905200456k544a300dwbdf64535989d0213@mail.gmail.com> Thx Umberto, I'll try to reinstall GDAL then, thx :). On Wed, May 20, 2009 at 12:39 AM, Umberto Nicoletti wrote: > This is a known issue with recent Ubuntu systems which is caused by a > special compiler feature (called fortify) which enables a protection > system against the most common memory management errors. Unfortunately > as a result of this GDAL will break and dependent sw become unusable > (mapserver, grass, qgis, etc). > > Luckily there is a workaround: remove the gdal installed by canonical > and install the packages from ubuntu gis project instead: > > https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable > > You may have to recompile mapserver after this. > Happy hacking, > Umberto > > On Wed, May 20, 2009 at 5:18 AM, Juan Felipe Alvarez Saldarriaga > wrote: >> Hey!. >> >> I'm trying to load a WMS layer, but I got always a buffer overflow >> error, thx for any advice! :) >> >> This is my mapserv config: >> >> root at vesifront:/usr/lib/cgi-bin# ./mapserv -v >> MapServer version 5.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG >> ?SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS >> _CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=GDAL INPUT=SHAPEFILE >> >> My system is a Ubuntu Linux 9.04 and this is the WMS layer into the map file: >> >> ?LAYER >> ? ?NAME 'Mapa Base' >> ? ?TYPE RASTER >> ? ?CONNECTIONTYPE WMS >> ? ?CONNECTION "http://wms.jpl.nasa.gov/browse.cgi?wms_server=wms.cgi" >> ? ?METADATA >> ? ? ?'wms_server_version' '1.1.1' >> ? ? ?'wms_format' 'image/jpeg' >> ? ? ?'wms_style' '' >> ? ? ?'wms_name' 'BMNG' >> ? ?END >> ? ?METADATA >> ? ? ? # 'wms_title' 'Mapa Base' >> ? ? ? 'wms_title' 'BMNG' >> ? ?END >> ? ?STATUS DEFAULT >> ? ?TRANSPARENCY 100 >> ? ?PROJECTION >> ? ? ? ?"init=epsg:4326" >> ? ?END >> ?END >> >> And this is the error that I got when I try to test the map file with shp2img: >> >> root at vesifront:/usr/lib/cgi-bin# shp2img -all_debug 3 -m /home/jfalvarez/projec >> ts/cms/branches/V1/docroot/map-files/9182340517c2d323061dc1cffea6e431.map -o ou >> t.png >> [Tue May 19 22:14:03 2009].813526 msLoadMap(): 0.006s >> [Tue May 19 22:14:03 2009].816973 HTTP: Starting to prepare HTTP requests. >> [Tue May 19 22:14:03 2009].817552 HTTP request: id=0, http://wms.jpl.nasa.gov/br >> owse.cgi?wms_server=wms.cgi&LAYERS=BMNG&REQUEST=GetMap&SERVICE=WMS&FORMAT=image/ >> jpeg&STYLES=&HEIGHT=600&VERSION=1.1.1&SRS=EPSG:4326&WIDTH=800&BBOX=-94.076794657 >> 7629,-54.0575959933222,-1.92320534223706,15.0575959933222&TRANSPARENT=TRUE&EXCEP >> TIONS=application/vnd.ogc.se_inimage >> [Tue May 19 22:14:03 2009].819297 HTTP: Before download loop >> [Tue May 19 22:14:04 2009].175669 msHTTPWriteFct(id=0, 852 bytes) >> [Tue May 19 22:14:04 2009].279581 HTTP: After download loop >> [Tue May 19 22:14:04 2009].280033 msHTTPExecuteRequests() timing summary per lay >> er (connect_time + time_to_first_packet + download_time = total_time in seconds) >> >> [Tue May 19 22:14:04 2009].280572 Layer 0: 0.169 + 0.186 + 0.274 = 0.629s >> [Tue May 19 22:14:04 2009].281375 msDrawRasterLayerLow(BMNG): entering. >> *** buffer overflow detected ***: shp2img terminated >> ======= Backtrace: ========= >> /lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb6a87da8] >> /lib/tls/i686/cmov/libc.so.6[0xb6a85eb0] >> /lib/tls/i686/cmov/libc.so.6(__strcpy_chk+0x44)[0xb6a85184] >> shp2img(msDrawRasterLayerLow+0x91d)[0x80c4e0d] >> shp2img(msDrawRasterLayer+0x7b)[0x807ffab] >> shp2img(msDrawLayer+0x35e)[0x8080f0e] >> shp2img(msDrawWMSLayerLow+0x598)[0x80d57d8] >> shp2img(msDrawMap+0x834)[0x8082794] >> shp2img(main+0x912)[0x8059722] >> /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb69a0775] >> shp2img[0x8058d71] >> ======= Memory map: ======== >> 08048000-08110000 r-xp 00000000 fd:00 197813 ? ? /usr/local/bin/shp2img >> 08110000-08111000 r--p 000c7000 fd:00 197813 ? ? /usr/local/bin/shp2img >> 08111000-08114000 rw-p 000c8000 fd:00 197813 ? ? /usr/local/bin/shp2img >> 08114000-08222000 rw-p 08114000 00:00 0 ? ? ? ? ?[heap] >> b588c000-b5891000 r-xp 00000000 fd:00 98403 ? ? ?/lib/tls/i686/cmov/libnss_dns-2 >> .9.so >> b5891000-b5892000 r--p 00004000 fd:00 98403 ? ? ?/lib/tls/i686/cmov/libnss_dns-2 >> .9.so >> b5892000-b5893000 rw-p 00005000 fd:00 98403 ? ? ?/lib/tls/i686/cmov/libnss_dns-2 >> .9.so >> b5893000-b589d000 r-xp 00000000 fd:00 98405 ? ? ?/lib/tls/i686/cmov/libnss_files >> -2.9.so >> b589d000-b589e000 r--p 00009000 fd:00 98405 ? ? ?/lib/tls/i686/cmov/libnss_files >> -2.9.so >> b589e000-b589f000 rw-p 0000a000 fd:00 98405 ? ? ?/lib/tls/i686/cmov/libnss_files >> -2.9.so >> b589f000-b58a3000 rw-p b589f000 00:00 0 >> b58a3000-b58a6000 r-xp 00000000 fd:00 49415 ? ? ?/lib/libgpg-error.so.0.3.0 >> b58a6000-b58a7000 rw-p 00002000 fd:00 49415 ? ? ?/lib/libgpg-error.so.0.3.0 >> b58a7000-b58ab000 r-xp 00000000 fd:00 199058 ? ? /usr/lib/libXdmcp.so.6.0.0 >> b58ab000-b58ac000 rw-p 00003000 fd:00 199058 ? ? /usr/lib/libXdmcp.so.6.0.0 >> b58ac000-b58ae000 r-xp 00000000 fd:00 197736 ? ? /usr/lib/libXau.so.6.0.0 >> b58ae000-b58af000 r--p 00001000 fd:00 197736 ? ? /usr/lib/libXau.so.6.0.0 >> b58af000-b58b0000 rw-p 00002000 fd:00 197736 ? ? /usr/lib/libXau.so.6.0.0 >> b58b0000-b58c5000 r-xp 00000000 fd:00 98398 ? ? ?/lib/tls/i686/cmov/libnsl-2.9.s >> o >> b58c5000-b58c6000 r--p 00014000 fd:00 98398 ? ? ?/lib/tls/i686/cmov/libnsl-2.9.s >> o >> b58c6000-b58c7000 rw-p 00015000 fd:00 98398 ? ? ?/lib/tls/i686/cmov/libnsl-2.9.s >> o >> b58c7000-b58ca000 rw-p b58c7000 00:00 0 >> b58ca000-b58cc000 r-xp 00000000 fd:00 49292 ? ? ?/lib/libkeyutils-1.2.so >> b58cc000-b58cd000 r--p 00001000 fd:00 49292 ? ? ?/lib/libkeyutils-1.2.so >> b58cd000-b58ce000 rw-p 00002000 fd:00 49292 ? ? ?/lib/libkeyutils-1.2.so >> b58ce000-b58d5000 r-xp 00000000 fd:00 198044 ? ? /usr/lib/libkrb5support.so.0.1 >> b58d5000-b58d6000 r--p 00006000 fd:00 198044 ? ? /usr/lib/libkrb5support.so.0.1 >> b58d6000-b58d7000 rw-p 00007000 fd:00 198044 ? ? /usr/lib/libkrb5support.so.0.1 >> b58d7000-b58f9000 r-xp 00000000 fd:00 197986 ? ? /usr/lib/libk5crypto.so.3.1 >> b58f9000-b58fa000 r--p 00022000 fd:00 197986 ? ? /usr/lib/libk5crypto.so.3.1 >> b58fa000-b58fb000 rw-p 00023000 fd:00 197986 ? ? /usr/lib/libk5crypto.so.3.1 >> b58fb000-b5911000 r-xp 00000000 fd:00 197574 ? ? /usr/lib/libsasl2.so.2.0.22 >> b5911000-b5912000 r--p 00015000 fd:00 197574 ? ? /usr/lib/libsasl2.so.2.0.22 >> b5912000-b5913000 rw-p 00016000 fd:00 197574 ? ? /usr/lib/libsasl2.so.2.0.22 >> b5913000-b5925000 r-xp 00000000 fd:00 98435 ? ? ?/lib/tls/i686/cmov/libresolv-2. >> 9.so >> b5925000-b5926000 r--p 00011000 fd:00 98435 ? ? ?/lib/tls/i686/cmov/libresolv-2. >> 9.so >> b5926000-b5927000 rw-p 00012000 fd:00 98435 ? ? ?/lib/tls/i686/cmov/libresolv-2. >> 9.so >> b5927000-b592a000 rw-p b5927000 00:00 0 >> b592a000-b5990000 r-xp 00000000 fd:00 49280 ? ? ?/lib/libgcrypt.so.11.4.4 >> b5990000-b5991000 r--p 00065000 fd:00 49280 ? ? ?/lib/libgcrypt.so.11.4.4 >> b5991000-b5993000 rw-p 00066000 fd:00 49280 ? ? ?/lib/libgcrypt.so.11.4.4 >> b5993000-b59a3000 r-xp 00000000 fd:00 196657 ? ? /usr/lib/libtasn1.so.3.0.16 >> b59a3000-b59a4000 r--p 0000f000 fd:00 196657 ? ? /usr/lib/libtasn1.so.3.0.16 >> b59a4000-b59a5000 rw-p 00010000 fd:00 196657 ? ? /usr/lib/libtasn1.so.3.0.16 >> b59a5000-b59ae000 r-xp 00000000 fd:00 98354 ? ? ?/lib/tls/i686/cmov/libcrypt-2.9 >> .so >> b59ae000-b59af000 r--p 00008000 fd:00 98354 ? ? ?/lib/tls/i686/cmov/libcrypt-2.9 >> .so >> b59af000-b59b0000 rw-p 00009000 fd:00 98354 ? ? ?/lib/tls/i686/cmov/libcrypt-2.9 >> .so >> b59b0000-b59d7000 rw-p b59b0000 00:00 0 >> b59d7000-b59d9000 r-xp 00000000 fd:00 49185 ? ? ?/lib/libcom_err.so.2.1 >> b59d9000-b59da000 r--p 00001000 fd:00 49185 ? ? ?/lib/libcom_err.so.2.1 >> b59da000-b59db000 rw-p 00002000 fd:00 49185 ? ? ?/lib/libcom_err.so.2.1 >> b59db000-b5a6a000 r-xp 00000000 fd:00 197990 ? ? /usr/lib/libkrb5.so.3.3 >> b5a6a000-b5a6c000 r--p 0008e000 fd:00 197990 ? ? /usr/lib/libkrb5.so.3.3 >> b5a6c000-b5a6d000 rw-p 00090000 fd:00 197990 ? ? /usr/lib/libkrb5.so.3.3 >> b5a6d000-b5a6e000 rw-p b5a6d000 00:00 0 >> b5a6e000-b5ba1000 r-xp 00000000 fd:00 49509 ? ? ?/lib/i686/cmov/libcrypto.so.0.9 >> .8 >> b5ba1000-b5ba9000 r--p 00132000 fd:00 49509 ? ? ?/lib/i686/cmov/libcrypto.so.0.9 >> .8 >> b5ba9000-b5bb6000 rw-p 0013a000 fd:00 49509 ? ? ?/lib/i686/cmov/libcrypto.so.0.9 >> .8 >> b5bb6000-b5bba000 rw-p b5bb6000 00:00 0 >> b5bba000-b5bfc000 r-xp 00000000 fd:00 49512 ? ? ?/lib/i686/cmov/libssl.so.0.9.8 >> b5bfc000-b5bfd000 r--p 00041000 fd:00 49512 ? ? ?/lib/i686/cmov/libssl.so.0.9.8 >> b5bfd000-b5c00000 rw-p 00042000 fd:00 49512 ? ? ?/lib/i686/cmov/libssl.so.0.9.8 >> b5c00000-b66d6000 r--p 00000000 fd:00 198175 ? ? /usr/lib/libicudata.so.38.1 >> b66d6000-b66d7000 r--p 00ad5000 fd:00 198175 ? ? /usr/lib/libicudata.so.38.1 >> b66d7000-b67f4000 r-xp 00000000 fd:00 200522 ? ? /usr/lib/libicuuc.so.38.1 >> b67f4000-b67f5000 ---p 0011d000 fd:00 200522 ? ? /usr/lib/libicuuc.so.38.1 >> b67f5000-b67fd000 r--p 0011d000 fd:00 200522 ? ? /usr/lib/libicuuc.so.38.1 >> b67fd000-b67fe000 rw-p 00125000 fd:00 200522 ? ? /usr/lib/libicuuc.so.38.1 >> b67fe000-b6800000 rw-p b67fe000 00:00 0 >> b6800000-b6807000 r-xp 00000000 fd:00 197048 ? ? /usr/lib/libltdl.so.7.2.0 >> b6807000-b6808000 r--p 00006000 fd:00 197048 ? ? /usr/lib/libltdl.so.7.2.0 >> b6808000-b6809000 rw-p 00007000 fd:00 197048 ? ? /usr/lib/libltdl.so.7.2.0 >> b6809000-b680a000 rw-p b6809000 00:00 0 >> b680a000-b6930000 r-xp 00000000 fd:00 196683 ? ? /usr/lib/libgeos-3.0.0.so >> b6930000-b6934000 rw-p 00125000 fd:00 196683 ? ? /usr/lib/libgeos-3.0.0.so >> b6934000-b694c000 r-xp 00000000 fd:00 199065 ? ? /usr/lib/libxcb.so.1.1.0 >> b694c000-b694d000 r--p 00017000 fd:00 199065 ? ? /usr/lib/libxcb.so.1.1.0 >> b694d000-b694e000 rw-p 00018000 fd:00 199065 ? ? /usr/lib/libxcb.so.1.1.0 >> b694e000-b6979000 r-xp 00000000 fd:00 196744 ? ? /usr/lib/libfontconfig.so.1.3.0 >> >> b6979000-b697a000 r--p 0002a000 fd:00 196744 ? ? /usr/lib/libfontconfig.so.1.3.0 >> >> b697a000-b697b000 rw-p 0002b000 fd:00 196744 ? ? /usr/lib/libfontconfig.so.1.3.0 >> >> b697b000-b6988000 r-xp 00000000 fd:00 49222 ? ? ?/lib/libgcc_s.so.1 >> b6988000-b6989000 r--p 0000c000 fd:00 49222 ? ? ?/lib/libgcc_s.so.1 >> b6989000-b698a000 rw-p 0000d000 fd:00 49222 ? ? ?/lib/libgcc_s.so.1 >> b698a000-b6ae6000 r-xp 00000000 fd:00 98338 ? ? ?/lib/tls/i686/cmov/libc-2.9.so >> b6ae6000-b6ae7000 ---p 0015c000 fd:00 98338 ? ? ?/lib/tls/i686/cmov/libc-2.9.so >> b6ae7000-b6ae9000 r--p 0015c000 fd:00 98338 ? ? ?/lib/tls/i686/cmov/libc-2.9.so >> b6ae9000-b6aea000 rw-p 0015e000 fd:00 98338 ? ? ?/lib/tls/i686/cmov/libc-2.9.so >> b6aea000-b6aee000 rw-p b6aea000 00:00 0 >> b6aee000-b6bd2000 r-xp 00000000 fd:00 198979 ? ? /usr/lib/libstdc++.so.6.0.10 >> b6bd2000-b6bd6000 r--p 000e3000 fd:00 198979 ? ? /usr/lib/libstdc++.so.6.0.10 >> b6bd6000-b6bd7000 rw-p 000e7000 fd:00 198979 ? ? /usr/lib/libstdc++.so.6.0.10 >> b6bd7000-b6bdd000 rw-p b6bd7000 00:00 0 >> b6bdd000-b6c01000 r-xp 00000000 fd:00 98378 ? ? ?/lib/tls/i686/cmov/libm-2.9.so >> b6c01000-b6c02000 r--p 00023000 fd:00 98378 ? ? ?/lib/tls/i686/cmov/libm-2.9.so >> b6c02000-b6c03000 rw-p 00024000 fd:00 98378 ? ? ?/lib/tls/i686/cmov/libm-2.9.so >> b6c03000-b6da2000 r-xp 00000000 fd:00 197497 ? ? /usr/lib/libmysqlclient.so.15.0 >> .0 >> b6da2000-b6da5000 r--p 0019e000 fd:00 197497 ? ? /usr/lib/libmysqlclient.so.15.0 >> .0 >> b6da5000-b6de5000 rw-p 001a1000 fd:00 197497 ? ? /usr/lib/libmysqlclient.so.15.0 >> .0 >> b6de5000-b6de6000 rw-p b6de5000 00:00 0 >> b6de6000-b6e7d000 r-xp 00000000 fd:00 201145 ? ? /usr/lib/libgnutls.so.26.4.6 >> b6e7d000-b6e82000 r--p 00097000 fd:00 201145 ? ? /usr/lib/libgnutls.so.26.4.6 >> b6e82000-b6e83000 rw-p 0009c000 fd:00 201145 ? ? /usr/lib/libgnutls.so.26.4.6 >> b6e83000-b6eac000 r-xp 00000000 fd:00 197192 ? ? /usr/lib/libgssapi_krb5.so.2.2 >> b6eac000-b6ead000 r--p 00028000 fd:00 197192 ? ? /usr/lib/libgssapi_krb5.so.2.2 >> b6ead000-b6eae000 rw-p 00029000 fd:00 197192 ? ? /usr/lib/libgssapi_krb5.so.2.2 >> b6eae000-b6eee000 r-xp 00000000 fd:00 198528 ? ? /usr/lib/libldap_r-2.4.so.2.4.1 >> >> b6eee000-b6eef000 ---p 00040000 fd:00 198528 ? ? /usr/lib/libldap_r-2.4.so.2.4.1 >> >> b6eef000-b6ef0000 r--p 00040000 fd:00 198528 ? ? /usr/lib/libldap_r-2.4.so.2.4.1 >> >> b6ef0000-b6ef1000 rw-p 00041000 fd:00 198528 ? ? /usr/lib/libldap_r-2.4.so.2.4.1 >> >> b6ef1000-b6ef3000 rw-p b6ef1000 00:00 0 >> b6ef3000-b6eff000 r-xp 00000000 fd:00 198526 ? ? /usr/lib/liblber-2.4.so.2.4.1 >> b6eff000-b6f00000 r--p 0000b000 fd:00 198526 ? ? /usr/lib/liblber-2.4.so.2.4.1 >> b6f00000-b6f01000 rw-p 0000c000 fd:00 198526 ? ? /usr/lib/liblber-2.4.so.2.4.1 >> b6f01000-b6f31000 r-xp 00000000 fd:00 197174 ? ? /usr/lib/libidn.so.11.5.39 >> b6f31000-b6f32000 ---p 00030000 fd:00 197174 ? ? /usr/lib/libidn.so.11.5.39 >> b6f32000-b6f33000 r--p 00030000 fd:00 197174 ? ? /usr/lib/libidn.so.11.5.39 >> b6f33000-b6f34000 rw-p 00031000 fd:00 197174 ? ? /usr/lib/libidn.so.11.5.39 >> b6f34000-b6f6d000 r-xp 00000000 fd:00 201911 ? ? /usr/lib/libcurl-gnutls.so.4.1. >> 0 >> b6f6d000-b6f6e000 r--p 00038000 fd:00 201911 ? ? /usr/lib/libcurl-gnutls.so.4.1. >> 0 >> b6f6e000-b6f6f000 rw-p 00039000 fd:00 201911 ? ? /usr/lib/libcurl-gnutls.so.4.1. >> 0 >> b6f6f000-b6f71000 r-xp 00000000 fd:00 98374 ? ? ?/lib/tls/i686/cmov/libdl-2.9.so >> >> b6f71000-b6f72000 r--p 00001000 fd:00 98374 ? ? ?/lib/tls/i686/cmov/libdl-2.9.so >> >> b6f72000-b6f73000 rw-p 00002000 fd:00 98374 ? ? ?/lib/tls/i686/cmov/libdl-2.9.so >> >> b6f73000-b6f7a000 r-xp 00000000 fd:00 98436 ? ? ?/lib/tls/i686/cmov/librt-2.9.so >> >> b6f7a000-b6f7b000 r--p 00006000 fd:00 98436 ? ? ?/lib/tls/i686/cmov/librt-2.9.so >> >> b6f7b000-b6f7c000 rw-p 00007000 fd:00 98436 ? ? ?/lib/tls/i686/cmov/librt-2.9.so >> >> b6f7c000-b6f7d000 rw-p b6f7c000 00:00 0 >> b6f7d000-b6f9c000 r-xp 00000000 fd:00 198177 ? ? /usr/lib/libpq.so.5.1 >> b6f9c000-b6f9d000 r--p 0001e000 fd:00 198177 ? ? /usr/lib/libpq.so.5.1 >> b6f9d000-b6f9e000 rw-p 0001f000 fd:00 198177 ? ? /usr/lib/libpq.so.5.1 >> b6f9e000-b6fcd000 r-xp 00000000 fd:00 196821 ? ? /usr/lib/libnetcdf.so.4.0.0 >> b6fcd000-b6fce000 rw-p 0002e000 fd:00 196821 ? ? /usr/lib/libnetcdf.so.4.0.0 >> b6fce000-b6fcf000 rw-p b6fce000 00:00 0 >> b6fcf000-b6fd6000 r-xp 00000000 fd:00 199094 ? ? /usr/lib/libgif.so.4.1.6 >> b6fd6000-b6fd7000 r--p 00006000 fd:00 199094 ? ? /usr/lib/libgif.so.4.1.6 >> b6fd7000-b6fd8000 rw-p 00007000 fd:00 199094 ? ? /usr/lib/libgif.so.4.1.6 >> b6fd8000-b6ff4000 r-xp 00000000 fd:00 198859 ? ? /usr/lib/libogdi.so.3.2 >> b6ff4000-b6ff5000 r--p 0001b000 fd:00 198859 ? ? /usr/lib/libogdi.so.3.2 >> b6ff5000-b6ff6000 rw-p 0001c000 fd:00 198859 ? ? /usr/lib/libogdi.so.3.2 >> b6ff6000-b7072000 r-xp 00000000 fd:00 197865 ? ? /usr/lib/libdf.so.4.1r4 >> b7072000-b7073000 r--p 0007c000 fd:00 197865 ? ? /usr/lib/libdf.so.4.1r4 >> b7073000-b7075000 rw-p 0007d000 fd:00 197865 ? ? /usr/lib/libdf.so.4.1r4 >> b7075000-b709d000 rw-p b7075000 00:00 0 >> b709d000-b70bf000 r-xp 00000000 fd:00 197866 ? ? /usr/lib/libmfhdf.so.4.1r4 >> b70bf000-b70c0000 r--p 00021000 fd:00 197866 ? ? /usr/lib/libmfhdf.so.4.1r4 >> b70c0000-b70c1000 rw-p 00022000 fd:00 197866 ? ? /usr/lib/libmfhdf.so.4.1r4 >> b70c1000-b70c3000 rw-p b70c1000 00:00 0 >> b70c3000-b71f1000 r-xp 00000000 fd:00 197869 ? ? /usr/lib/libhdf5-1.6.6.so.0.0.0 >> >> b71f1000-b71f2000 r--p 0012e000 fd:00 197869 ? ? /usr/lib/libhdf5-1.6.6.so.0.0.0 >> >> b71f2000-b71f4000 rw-p 0012f000 fd:00 197869 ? ? /usr/lib/libhdf5-1.6.6.so.0.0.0 >> >> b71f4000-b71f5000 rw-p b71f4000 00:00 0 >> b71f5000-b723a000 r-xp 00000000 fd:00 198197 ? ? /usr/lib/libjasper.so.1.0.0 >> b723a000-b723b000 r--p 00044000 fd:00 198197 ? ? /usr/lib/libjasper.so.1.0.0 >> b723b000-b723e000 rw-p 00045000 fd:00 198197 ? ? /usr/lib/libjasper.so.1.0.0 >> b723e000-b7244000 rw-p b723e000 00:00 0 >> b7244000-b7259000 r-xp 00000000 fd:00 98434 ? ? ?/lib/tls/i686/cmov/libpthread-2 >> .9.so >> b7259000-b725a000 r--p 00014000 fd:00 98434 ? ? ?/lib/tls/i686/cmov/libpthread-2 >> .9.so >> b725a000-b725b000 rw-p 00015000 fd:00 98434 ? ? ?/lib/tls/i686/cmov/libpthread-2 >> .9.so >> b725b000-b725d000 rw-p b725b000 00:00 0 >> b725d000-b75e6000 r-xp 00000000 fd:00 198036 ? ? /usr/lib/libxerces-c.so.28.0 >> b75e6000-b75f4000 r--p 00388000 fd:00 198036 ? ? /usr/lib/libxerces-c.so.28.0 >> b75f4000-b7616000 rw-p 00396000 fd:00 198036 ? ? /usr/lib/libxerces-c.so.28.0 >> b7616000-b763a000 r-xp 00000000 fd:00 199031 ? ? /usr/lib/libexpat.so.1.5.2 >> b763a000-b763c000 r--p 00023000 fd:00 199031 ? ? /usr/lib/libexpat.so.1.5.2 >> b763c000-b763d000 rw-p 00025000 fd:00 199031 ? ? /usr/lib/libexpat.so.1.5.2 >> b763d000-b7648000 r-xp 00000000 fd:00 197050 ? ? /usr/lib/libodbcinst.so.1.0.0 >> b7648000-b7649000 r--p 0000a000 fd:00 197050 ? ? /usr/lib/libodbcinst.so.1.0.0 >> b7649000-b764a000 rw-p 0000b000 fd:00 197050 ? ? /usr/lib/libodbcinst.so.1.0.0 >> b764a000-b764b000 rw-p b764a000 00:00 0 >> b764b000-b76ad000 r-xp 00000000 fd:00 200524 ? ? /usr/lib/libodbc.so.1.0.0 >> b76ad000-b76ae000 r--p 00061000 fd:00 200524 ? ? /usr/lib/libodbc.so.1.0.0 >> b76ae000-b76b2000 rw-p 00062000 fd:00 200524 ? ? /usr/lib/libodbc.so.1.0.0 >> b76b2000-b772f000 r-xp 00000000 fd:00 198741 ? ? /usr/lib/libsqlite3.so.0.8.6 >> b772f000-b7730000 r--p 0007d000 fd:00 198741 ? ? /usr/lib/libsqlite3.so.0.8.6 >> b7730000-b7731000 rw-p 0007e000 fd:00 198741 ? ? /usr/lib/libsqlite3.so.0.8.6 >> b7731000-b7740000 r-xp 00000000 fd:00 197743 ? ? /usr/lib/libgeos_c.so.1.4.1 >> b7740000-b7741000 rw-p 0000e000 fd:00 197743 ? ? /usr/lib/libgeos_c.so.1.4.1 >> b7741000-b7c1f000 r-xp 00000000 fd:00 202927 ? ? /usr/lib/libgdal1.5.0.so.1.12.2 >> >> b7c1f000-b7c31000 r--p 004de000 fd:00 202927 ? ? /usr/lib/libgdal1.5.0.so.1.12.2 >> >> b7c31000-b7c71000 rw-p 004f0000 fd:00 202927 ? ? /usr/lib/libgdal1.5.0.so.1.12.2 >> >> b7c71000-b7cb4000 rw-p b7c71000 00:00 0 >> b7cb4000-b7ce5000 r-xp 00000000 fd:00 198848 ? ? /usr/lib/libproj.so.0.5.5 >> b7ce5000-b7ce7000 rw-p 00031000 fd:00 198848 ? ? /usr/lib/libproj.so.0.5.5 >> b7ce7000-b7ce8000 rw-p b7ce7000 00:00 0 >> b7ce8000-b7d3a000 r-xp 00000000 fd:00 197496 ? ? /usr/lib/libtiff.so.4.2.1 >> b7d3a000-b7d3c000 r--p 00052000 fd:00 197496 ? ? /usr/lib/libtiff.so.4.2.1 >> b7d3c000-b7d3d000 rw-p 00054000 fd:00 197496 ? ? /usr/lib/libtiff.so.4.2.1 >> b7d3d000-b7e27000 r-xp 00000000 fd:00 199062 ? ? /usr/lib/libX11.so.6.2.0 >> b7e27000-b7e28000 ---p 000ea000 fd:00 199062 ? ? /usr/lib/libX11.so.6.2.0 >> b7e28000-b7e29000 r--p 000ea000 fd:00 199062 ? ? /usr/lib/libX11.so.6.2.0 >> b7e29000-b7e2b000 rw-p 000eb000 fd:00 199062 ? ? /usr/lib/libX11.so.6.2.0 >> b7e2b000-b7e2c000 rw-p b7e2b000 00:00 0 >> b7e2c000-b7e3b000 r-xp 00000000 fd:00 197079 ? ? /usr/lib/libXpm.so.4.11.0 >> b7e3b000-b7e3c000 rw-p 0000f000 fd:00 197079 ? ? /usr/lib/libXpm.so.4.11.0 >> b7e3c000-b7e50000 r-xp 00000000 fd:00 49250 ? ? ?/lib/libz.so.1.2.3.3 >> b7e50000-b7e51000 r--p 00013000 fd:00 49250 ? ? ?/lib/libz.so.1.2.3.3 >> b7e51000-b7e52000 rw-p 00014000 fd:00 49250 ? ? ?/lib/libz.so.1.2.3.3 >> b7e52000-b7e76000 r-xp 00000000 fd:00 196618 ? ? /usr/lib/libpng12.so.0.27.0 >> b7e76000-b7e77000 r--p 00023000 fd:00 196618 ? ? /usr/lib/libpng12.so.0.27.0 >> b7e77000-b7e78000 rw-p 00024000 fd:00 196618 ? ? /usr/lib/libpng12.so.0.27.0 >> b7e78000-b7eea000 r-xp 00000000 fd:00 197766 ? ? /usr/lib/libfreetype.so.6.3.20 >> b7eea000-b7eee000 r--p 00071000 fd:00 197766 ? ? /usr/lib/libfreetype.so.6.3.20 >> b7eee000-b7eef000 rw-p 00075000 fd:00 197766 ? ? /usr/lib/libfreetype.so.6.3.20 >> b7eef000-b7ef0000 rw-p b7eef000 00:00 0 >> b7ef0000-b7f0f000 r-xp 00000000 fd:00 198194 ? ? /usr/lib/libjpeg.so.62.0.0 >> b7f0f000-b7f10000 rw-p 0001e000 fd:00 198194 ? ? /usr/lib/libjpeg.so.62.0.0 >> b7f10000-b7f2e000 r-xp 00000000 fd:00 197300 ? ? /usr/lib/libgd.so.2.0.0 >> b7f2e000-b7f2f000 r--p 0001d000 fd:00 197300 ? ? /usr/lib/libgd.so.2.0.0 >> b7f2f000-b7f4e000 rw-p 0001e000 fd:00 197300 ? ? /usr/lib/libgd.so.2.0.0 >> b7f4e000-b7f52000 rw-p b7f4e000 00:00 0 >> b7f5c000-b7f5e000 rw-p b7f5c000 00:00 0 >> b7f5e000-b7f7a000 r-xp 00000000 fd:00 49155 ? ? ?/lib/ld-2.9.so >> b7f7a000-b7f7b000 r--p 0001b000 fd:00 49155 ? ? ?/lib/ld-2.9.so >> b7f7b000-b7f7c000 rw-p 0001c000 fd:00 49155 ? ? ?/lib/ld-2.9.so >> bf967000-bf97c000 rw-p bffeb000 00:00 0 ? ? ? ? ?[stack] >> ffffe000-fffff000 r-xp 00000000 00:00 0 ? ? ? ? ?[vdso] >> Aborted >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > From c.declercq at alkante.com Wed May 20 05:03:41 2009 From: c.declercq at alkante.com (Charlotte Declercq) Date: Wed, 20 May 2009 14:03:41 +0200 Subject: [mapserver-users] mapscript memory Message-ID: <4A13F19D.4080408@alkante.com> Hello, I have a problem releasing the memory of mapscript objects. My php script : echo memory_get_usage() . "
"; $Directory="/applications/carmen/data/PACA3/Publication/"; $oMap = @ms_newMapObj($Directory."/environnement_testsymbols_sauvegarde_racine.map"); echo memory_get_usage() . "
"; unset($oMap); echo memory_get_usage() . "
"; The results : 98688 176360 176600 So it seems that the $oMap object hasn't been released from memory. Can anyone help on this? Thanks, -- Charlotte DECLERCQ ALKANTE SAS Ing?nieur R&D SIG 1, rue du Ch?ne Morand 35 510 Cesson-S?vign? Bur: + 33 (0) 2 99 22 25 70 fax : + 33 (0) 2 99 32 12 76 From meenu.monu at gmail.com Wed May 20 05:05:05 2009 From: meenu.monu at gmail.com (meenu) Date: Wed, 20 May 2009 05:05:05 -0700 (PDT) Subject: [mapserver-users] tooltip information on point layers Message-ID: <1242821105534-2945715.post@n2.nabble.com> dears ...can anybody help me to generate tooltip on features in mapserver map...i need to generate tool tip information when the mouse is on the top of this following point layer....can anybody help me...advance thanks LAYER NAME "n_123 " TYPE POINT CONNECTIONTYPE OGR CONNECTION "n_123 .TAB" STATUS ON LABELITEM "PLO_900 " CLASS STYLE COLOR 255 0 0 OUTLINECOLOR 0 0 0 SYMBOL 'ball' END LABEL COLOR 100 100 255 FONT arial TYPE TRUETYPE SIZE 7 POSITION LC WRAP " " END#LABEL END# CLASS END#LAYER ----- Meenu -- View this message in context: http://n2.nabble.com/tooltip-information-on-point-layers-tp2945715p2945715.html Sent from the Mapserver - User mailing list archive at Nabble.com. From meenu.monu at gmail.com Wed May 20 05:07:16 2009 From: meenu.monu at gmail.com (meenu) Date: Wed, 20 May 2009 05:07:16 -0700 (PDT) Subject: [mapserver-users] change mouse icon style on the specified layer Message-ID: <1242821236307-2945729.post@n2.nabble.com> dears ...can anybody help me to change mouse pointer icon as handshape icon when the mouse is on the top of the point layers....is it possible? LAYER NAME "n_123 " TYPE POINT CONNECTIONTYPE OGR CONNECTION "n_123 .TAB" STATUS ON LABELITEM "PLO_900 " CLASS STYLE COLOR 255 0 0 OUTLINECOLOR 0 0 0 SYMBOL 'ball' END LABEL COLOR 100 100 255 FONT arial TYPE TRUETYPE SIZE 7 POSITION LC WRAP " " END#LABEL END# CLASS END#LAYER ----- Meenu -- View this message in context: http://n2.nabble.com/change-mouse-icon-style-on-the-specified-layer-tp2945729p2945729.html Sent from the Mapserver - User mailing list archive at Nabble.com. From iratxe.lejarreta at axios.es Wed May 20 05:07:41 2009 From: iratxe.lejarreta at axios.es (Iratxe Lejarreta) Date: Wed, 20 May 2009 14:07:41 +0200 Subject: [mapserver-users] Limit of records In-Reply-To: References: <200905201239.54664.iratxe.lejarreta@axios.es> Message-ID: <200905201407.41651.iratxe.lejarreta@axios.es> On Wednesday 20 May 2009 12:52:03 pm Rahkonen Jukka wrote: > Hi, > > There is no limit for number of records in Mapserver. Apache. that is used > as http server in front of Mapserver does have timeout, which is 300 > seconds by default but can be adjusted. Generally speaking number of > records does not tell much about how hard that layer is to handle, if > anything. It depends more on the vector data format, nature of the > features (points vs. polygons with thousands of vertices), indexing etc. > However, I would say that normally 63 thousand features is not much and if > Mapserver hits the timeout then the data are not suitable for Mapserver > without some preprocessing. So, please describe what kind of data you > have. Ogrinfo report about the layer would be a good addition. > > -Jukka Rahkonen- > > > ________________________________ > > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Iratxe Lejarreta > L?hetetty: 20. toukokuuta 2009 13:40 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Limit of records > > > Hi, > > > > > > I have problems with some layers and I'm thinking that the reason is the > number of records. For example, with a layer which has 63057 records, the > result is the following: 500 Internal Server Error > And Apache log error: > Timeout waiting for output from CGI script /var/cgi-bin/mapserv > > > > > > If exist a limit, which is the maximun number of records that mapserver > can support? > > And in this case, what is the solution? > > > > > > Thanks in advance, > > > > > > -- > Iratxe Lejarreta > www.axios.es Ok, changing the Apache's timeout, Mapserver is running without problem! Thanks, -- Iratxe Lejarreta www.axios.es -------------- next part -------------- An HTML attachment was scrubbed... URL: From aboudreault at mapgears.com Wed May 20 05:35:58 2009 From: aboudreault at mapgears.com (Alan Boudreault) Date: Wed, 20 May 2009 08:35:58 -0400 Subject: [mapserver-users] mapscript memory In-Reply-To: <4A13F19D.4080408@alkante.com> References: <4A13F19D.4080408@alkante.com> Message-ID: <200905200835.58952.aboudreault@mapgears.com> Hi Charlotte, This is a known issue with PHP Mapscript. With the way the "object" are currently made, complex objects (that have references to other object, like mapObj) are not properly freed when we delete the php object. Note that the memory is well freed as soon as the php script ends. Thanks, Alan On May 20, 2009 08:03:41 am Charlotte Declercq wrote: > Hello, > > I have a problem releasing the memory of mapscript objects. > My php script : > > > echo memory_get_usage() . "
"; > $Directory="/applications/carmen/data/PACA3/Publication/"; > $oMap = > @ms_newMapObj($Directory."/environnement_testsymbols_sauvegarde_racine.map" >); > > echo memory_get_usage() . "
"; > unset($oMap); > echo memory_get_usage() . "
"; > > The results : > 98688 > 176360 > 176600 > > So it seems that the $oMap object hasn't been released from memory. > > Can anyone help on this? > > Thanks, -- Alan Boudreault Mapgears http://www.mapgears.com From aboudreault at mapgears.com Wed May 20 05:45:34 2009 From: aboudreault at mapgears.com (Alan Boudreault) Date: Wed, 20 May 2009 08:45:34 -0400 Subject: [mapserver-users] change mouse icon style on the specified layer In-Reply-To: <1242821236307-2945729.post@n2.nabble.com> References: <1242821236307-2945729.post@n2.nabble.com> Message-ID: <200905200845.34385.aboudreault@mapgears.com> Hi meenu, MapServer returns an image to your browser. At this point, there is no more "layers". That's only an image. You cannot bind any browser mouse event to a specific country or area. You would need OpenLayers + a Vector layer to do that. Thanks, Alan On May 20, 2009 08:07:16 am meenu wrote: > dears ...can anybody help me to change mouse pointer icon as handshape icon > when the mouse is on the top of the point layers....is it possible? > > LAYER > NAME "n_123 " > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "n_123 .TAB" > STATUS ON > LABELITEM "PLO_900 " > CLASS > STYLE > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > SYMBOL 'ball' > END > LABEL > COLOR 100 100 255 > FONT arial > TYPE TRUETYPE > SIZE 7 > POSITION LC > WRAP " " > END#LABEL > END# CLASS > END#LAYER > > ----- > Meenu -- Alan Boudreault Mapgears http://www.mapgears.com From pauljame at gmail.com Wed May 20 05:55:15 2009 From: pauljame at gmail.com (Paul james) Date: Wed, 20 May 2009 09:55:15 -0300 Subject: [mapserver-users] Get the nearest layer with mapscript... In-Reply-To: <008301c9d92f$712cc6e0$538654a0$@com> References: <33fad6880905191146j62628efen2fc34ee450365bf3@mail.gmail.com> <008301c9d92f$712cc6e0$538654a0$@com> Message-ID: <33fad6880905200555j340668f7qe684655515aef18@mail.gmail.com> Thanks Pano... But It?s not that simple... What I need is figure out what LAYER was clicked... Paul On Wed, May 20, 2009 at 6:43 AM, Pano Voudouris wrote: > Probably don?t understand what exactly you are trying to achieve here but > it is not as simple as map.getLayer(0) to get the topmost layer? And once > you have the layer object use one of the query function to select the > record? E.g. myLayerObj.queryByPoint ? > > > > Pano > > > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Paul james > *Sent:* 19 May 2009 21:46 > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] Get the nearest layer with mapscript... > > > > Hello guys... > I have several layers (lines, points, poly) ... > I?m developing a measure tool... User can click on map and I have to > select that layer to calculate de Area with postgis... > > I?m trying to do that WITHOUT using "LAYER ACTIVE SYSTEM"... > > Is That possible using mapscript? How Can I find the nearest and toppest > layer ? > > Thanks! > > Paul > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Wed May 20 06:41:27 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Wed, 20 May 2009 08:41:27 -0500 Subject: [mapserver-users] change mouse icon style on the specified layer In-Reply-To: <200905200845.34385.aboudreault@mapgears.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA4ED@s-sp22.pca.state.mn.us> If you only need to create your map as a static image (with no pan and zoom), you could use MapServer to generate a html imagemap. See the documentation here: http://mapserver.org/output/imagemaps.html Most people these days are using openlayers http://www.openlayers.org or another javascript library to do this. A lot of people are using OpenLayers to build their map interfaces, I recommend that you check it out. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Alan Boudreault Sent: Wednesday, May 20, 2009 7:46 AM To: mapserver-users at lists.osgeo.org Cc: meenu Subject: Re: [mapserver-users] change mouse icon style on the specified layer Hi meenu, MapServer returns an image to your browser. At this point, there is no more "layers". That's only an image. You cannot bind any browser mouse event to a specific country or area. You would need OpenLayers + a Vector layer to do that. Thanks, Alan On May 20, 2009 08:07:16 am meenu wrote: > dears ...can anybody help me to change mouse pointer icon as handshape > icon when the mouse is on the top of the point layers....is it > possible? > > LAYER > NAME "n_123 " > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "n_123 .TAB" > STATUS ON > LABELITEM "PLO_900 " > CLASS > STYLE > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > SYMBOL 'ball' > END > LABEL > COLOR 100 100 255 > FONT arial > TYPE TRUETYPE > SIZE 7 > POSITION LC > WRAP " " > END#LABEL > END# CLASS > END#LAYER > > ----- > Meenu -- Alan Boudreault Mapgears http://www.mapgears.com _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From David.Fawcett at state.mn.us Wed May 20 06:44:45 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Wed, 20 May 2009 08:44:45 -0500 Subject: [mapserver-users] Get the nearest layer with mapscript... In-Reply-To: <33fad6880905200555j340668f7qe684655515aef18@mail.gmail.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA4EE@s-sp22.pca.state.mn.us> Paul, I would guess that this really is about the client-side map interface and not about MapServer. Does your interface only allow them to click/select the topmost layer? Do you pick which layer is selectable? Do you let them pick which layer is selectable? Is it random? Tells us more about the client-side app. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Paul james Sent: Wednesday, May 20, 2009 7:55 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Get the nearest layer with mapscript... Thanks Pano... But It?s not that simple... What I need is figure out what LAYER was clicked... Paul On Wed, May 20, 2009 at 6:43 AM, Pano Voudouris wrote: Probably don't understand what exactly you are trying to achieve here but it is not as simple as map.getLayer(0) to get the topmost layer? And once you have the layer object use one of the query function to select the record? E.g. myLayerObj.queryByPoint ? Pano From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Paul james Sent: 19 May 2009 21:46 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Get the nearest layer with mapscript... Hello guys... I have several layers (lines, points, poly) ... I?m developing a measure tool... User can click on map and I have to select that layer to calculate de Area with postgis... I?m trying to do that WITHOUT using "LAYER ACTIVE SYSTEM"... Is That possible using mapscript? How Can I find the nearest and toppest layer ? Thanks! Paul _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Wed May 20 06:51:33 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 20 May 2009 08:51:33 -0500 Subject: [mapserver-users] Get the nearest layer with mapscript... Message-ID: <4A13C4950200008F0002440C@co5.dnr.state.mn.us> If you're doing point queries MapServer/MapScript can do this for you. You do a mapObj.queryByPoint with the MS_SINGLE mode and then the function will identify the closest feature (considering TOLERANCEs!) in the top-most ACTIVE layer. This site uses this to it's advantage... http://www.dnr.state.mn.us/maps/compass.html A query drops through the layers until a match is hit. Even with other geometry types based on what was described you can probably do it pretty easily. You'd use one of the other query methods and then once the query is done loop through your layer stack backwards (e.g. starting at the top) and stop when you find one with results. Steve >>> Paul james 05/20/09 7:56 AM >>> Thanks Pano... But It?s not that simple... What I need is figure out what LAYER was clicked... Paul On Wed, May 20, 2009 at 6:43 AM, Pano Voudouris wrote: > Probably don?t understand what exactly you are trying to achieve here but > it is not as simple as map.getLayer(0) to get the topmost layer? And once > you have the layer object use one of the query function to select the > record? E.g. myLayerObj.queryByPoint ? > > > > Pano > > > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Paul james > *Sent:* 19 May 2009 21:46 > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] Get the nearest layer with mapscript... > > > > Hello guys... > I have several layers (lines, points, poly) ... > I?m developing a measure tool... User can click on map and I have to > select that layer to calculate de Area with postgis... > > I?m trying to do that WITHOUT using "LAYER ACTIVE SYSTEM"... > > Is That possible using mapscript? How Can I find the nearest and toppest > layer ? > > Thanks! > > Paul > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From pauljame at gmail.com Wed May 20 06:53:53 2009 From: pauljame at gmail.com (Paul james) Date: Wed, 20 May 2009 10:53:53 -0300 Subject: [mapserver-users] Get the nearest layer with mapscript... In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA4EE@s-sp22.pca.state.mn.us> References: <33fad6880905200555j340668f7qe684655515aef18@mail.gmail.com> <6246727221874A4FB8D3F9BBC37D9BD5056DA4EE@s-sp22.pca.state.mn.us> Message-ID: <33fad6880905200653q307a94b5n17615621eb28afed@mail.gmail.com> Hi David... In my system the user SELECT the active layer (dropdown), and so he can "query" it selecting a a area or a point .... But, I?d like to take off that dropdown to select active layer... And when user click on map to query, I figure out what layer was clicked and query that... Paul On Wed, May 20, 2009 at 10:44 AM, Fawcett, David wrote: > Paul, > > I would guess that this really is about the client-side map interface and > not about MapServer. Does your interface only allow them to click/select > the topmost layer? Do you pick which layer is selectable? Do you let them > pick which layer is selectable? Is it random? > > Tells us more about the client-side app. > > David. > > -----Original Message----- > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Paul james > *Sent:* Wednesday, May 20, 2009 7:55 AM > *To:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Get the nearest layer with mapscript... > > Thanks Pano... > But It?s not that simple... > What I need is figure out what LAYER was clicked... > > Paul > > On Wed, May 20, 2009 at 6:43 AM, Pano Voudouris wrote: > >> Probably don?t understand what exactly you are trying to achieve here >> but it is not as simple as map.getLayer(0) to get the topmost layer? And >> once you have the layer object use one of the query function to select the >> record? E.g. myLayerObj.queryByPoint ? >> >> >> >> Pano >> >> >> >> *From:* mapserver-users-bounces at lists.osgeo.org [mailto: >> mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Paul james >> *Sent:* 19 May 2009 21:46 >> *To:* mapserver-users at lists.osgeo.org >> *Subject:* [mapserver-users] Get the nearest layer with mapscript... >> >> >> >> Hello guys... >> I have several layers (lines, points, poly) ... >> I?m developing a measure tool... User can click on map and I have to >> select that layer to calculate de Area with postgis... >> >> I?m trying to do that WITHOUT using "LAYER ACTIVE SYSTEM"... >> >> Is That possible using mapscript? How Can I find the nearest and toppest >> layer ? >> >> Thanks! >> >> Paul >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From matej at matnet.net Wed May 20 07:20:47 2009 From: matej at matnet.net (Matej) Date: Wed, 20 May 2009 16:20:47 +0200 Subject: [mapserver-users] Open3DGIS Message-ID: Hi all, I am investigating different options on using 3D with MapServer.. There was once an application called Open3DGIS (http://open3dgis.sourceforge.net/), which doesn't seem to "live" anymore. Are there any other tools / addons that are alive in this field? Thanks! Matej -------------- next part -------------- An HTML attachment was scrubbed... URL: From gwaldron at gmail.com Wed May 20 07:45:23 2009 From: gwaldron at gmail.com (Glenn Waldron) Date: Wed, 20 May 2009 10:45:23 -0400 Subject: [mapserver-users] Open3DGIS In-Reply-To: References: Message-ID: <70fbea790905200745u23415085i1cfdcbcd38327931@mail.gmail.com> Hi Matej, Take a look at osgEarth (http://osgearth.org), a toolkit that renders open-standards data (from WMS, MapServer, TileCache, etc.) in 3D using the open source OpenSceneGraph library. Glenn Waldron : Pelican Mapping : http://pelicanmapping.com 2009/5/20 Matej > Hi all, > > I am investigating different options on using 3D with MapServer.. There was > once an application called Open3DGIS ( > http://open3dgis.sourceforge.net/), which doesn't seem to "live" anymore. > > Are there any other tools / addons that are alive in this field? > > Thanks! > > Matej > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pauljame at gmail.com Wed May 20 07:53:45 2009 From: pauljame at gmail.com (Paul james) Date: Wed, 20 May 2009 11:53:45 -0300 Subject: [mapserver-users] Get the nearest layer with mapscript... In-Reply-To: <4A13C4950200008F0002440C@co5.dnr.state.mn.us> References: <4A13C4950200008F0002440C@co5.dnr.state.mn.us> Message-ID: <33fad6880905200753p4b06beacsf19bbbd268f4ac3b@mail.gmail.com> Hi Steve! I didn't know that mapObj could call queryByPoint as well ... Thanks... But, How can I get the feature selected after query ? Using LayerObj I did that (using layer.getNumResults() ) if (_layer.queryByPoint(MapaObj, _point, 0, -2) == 0) { for (int i = 0; i < _layer.getNumResults(); i++) { resultCacheMemberObj _result = _layer.getResult(i); return _result.shapeindex.ToString(); } } How can I do that using MapObj ? thanks! On Wed, May 20, 2009 at 10:51 AM, Steve Lime wrote: > If you're doing point queries MapServer/MapScript can do this for you. > You do a > mapObj.queryByPoint with the MS_SINGLE mode and then the function will > identify > the closest feature (considering TOLERANCEs!) in the top-most ACTIVE > layer. > > This site uses this to it's advantage... > > http://www.dnr.state.mn.us/maps/compass.html > > A query drops through the layers until a match is hit. > > Even with other geometry types based on what was described you can > probably do > it pretty easily. You'd use one of the other query methods and then once > the query > is done loop through your layer stack backwards (e.g. starting at the > top) and stop > when you find one with results. > > Steve > > >>> Paul james 05/20/09 7:56 AM >>> > Thanks Pano... > But It?s not that simple... > What I need is figure out what LAYER was clicked... > > Paul > > On Wed, May 20, 2009 at 6:43 AM, Pano Voudouris > wrote: > > > Probably don?t understand what exactly you are trying to achieve here > but > > it is not as simple as map.getLayer(0) to get the topmost layer? And > once > > you have the layer object use one of the query function to select the > > record? E.g. myLayerObj.queryByPoint ? > > > > > > > > Pano > > > > > > > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Paul james > > *Sent:* 19 May 2009 21:46 > > *To:* mapserver-users at lists.osgeo.org > > *Subject:* [mapserver-users] Get the nearest layer with mapscript... > > > > > > > > Hello guys... > > I have several layers (lines, points, poly) ... > > I?m developing a measure tool... User can click on map and I have to > > select that layer to calculate de Area with postgis... > > > > I?m trying to do that WITHOUT using "LAYER ACTIVE SYSTEM"... > > > > Is That possible using mapscript? How Can I find the nearest and > toppest > > layer ? > > > > Thanks! > > > > Paul > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Wed May 20 09:34:08 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 20 May 2009 11:34:08 -0500 Subject: [mapserver-users] Get the nearest layer with mapscript... Message-ID: <4A13EAB00200008F00024440@co5.dnr.state.mn.us> You just need another loop... for( ...each layer...) { layer = ... mapObj get layer ... ... now your getNumResults() loop ... } Steve >>> Paul james 05/20/09 9:54 AM >>> Hi Steve! I didn't know that mapObj could call queryByPoint as well ... Thanks... But, How can I get the feature selected after query ? Using LayerObj I did that (using layer.getNumResults() ) if (_layer.queryByPoint(MapaObj, _point, 0, -2) == 0) { for (int i = 0; i < _layer.getNumResults(); i++) { resultCacheMemberObj _result = _layer.getResult(i); return _result.shapeindex.ToString(); } } How can I do that using MapObj ? thanks! On Wed, May 20, 2009 at 10:51 AM, Steve Lime wrote: > If you're doing point queries MapServer/MapScript can do this for you. > You do a > mapObj.queryByPoint with the MS_SINGLE mode and then the function will > identify > the closest feature (considering TOLERANCEs!) in the top-most ACTIVE > layer. > > This site uses this to it's advantage... > > http://www.dnr.state.mn.us/maps/compass.html > > A query drops through the layers until a match is hit. > > Even with other geometry types based on what was described you can > probably do > it pretty easily. You'd use one of the other query methods and then once > the query > is done loop through your layer stack backwards (e.g. starting at the > top) and stop > when you find one with results. > > Steve > > >>> Paul james 05/20/09 7:56 AM >>> > Thanks Pano... > But It?s not that simple... > What I need is figure out what LAYER was clicked... > > Paul > > On Wed, May 20, 2009 at 6:43 AM, Pano Voudouris > wrote: > > > Probably don?t understand what exactly you are trying to achieve here > but > > it is not as simple as map.getLayer(0) to get the topmost layer? And > once > > you have the layer object use one of the query function to select the > > record? E.g. myLayerObj.queryByPoint ? > > > > > > > > Pano > > > > > > > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Paul james > > *Sent:* 19 May 2009 21:46 > > *To:* mapserver-users at lists.osgeo.org > > *Subject:* [mapserver-users] Get the nearest layer with mapscript... > > > > > > > > Hello guys... > > I have several layers (lines, points, poly) ... > > I?m developing a measure tool... User can click on map and I have to > > select that layer to calculate de Area with postgis... > > > > I?m trying to do that WITHOUT using "LAYER ACTIVE SYSTEM"... > > > > Is That possible using mapscript? How Can I find the nearest and > toppest > > layer ? > > > > Thanks! > > > > Paul > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > From danlittle at yahoo.com Wed May 20 09:53:06 2009 From: danlittle at yahoo.com (Dan Little) Date: Wed, 20 May 2009 09:53:06 -0700 (PDT) Subject: [mapserver-users] Get the nearest layer with mapscript... In-Reply-To: <33fad6880905200653q307a94b5n17615621eb28afed@mail.gmail.com> References: <33fad6880905200555j340668f7qe684655515aef18@mail.gmail.com> <6246727221874A4FB8D3F9BBC37D9BD5056DA4EE@s-sp22.pca.state.mn.us> <33fad6880905200653q307a94b5n17615621eb28afed@mail.gmail.com> Message-ID: <398211.36562.qm@web51408.mail.re2.yahoo.com> Would a "drill down" identify be appropriate for your application? Just query all of the layers? ________________________________ From: Paul james To: "Fawcett, David" Cc: mapserver-users at lists.osgeo.org Sent: Wednesday, May 20, 2009 8:53:53 AM Subject: Re: [mapserver-users] Get the nearest layer with mapscript... Hi David... In my system the user SELECT the active layer (dropdown), and so he can "query" it selecting a a area or a point .... But, I?d like to take off that dropdown to select active layer... And when user click on map to query, I figure out what layer was clicked and query that... Paul On Wed, May 20, 2009 at 10:44 AM, Fawcett, David wrote: Paul, I would guess that this really is about the client-side map interface and not about MapServer. Does your interface only allow them to click/select the topmost layer? Do you pick which layer is selectable? Do you let them pick which layer is selectable? Is it random? Tells us more about the client-side app. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Paul james Sent: Wednesday, May 20, 2009 7:55 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Get the nearest layer with mapscript... Thanks Pano... But It?s not that simple... What I need is figure out what LAYER was clicked... Paul On Wed, May 20, 2009 at 6:43 AM, Pano Voudouris wrote: Probably don?t understand what exactly you are trying to achieve here but it is not as simple as map.getLayer(0) to get the topmost layer? And once you have the layer object use one of the query function to select the record? E.g. myLayerObj.queryByPoint ? Pano From:mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Paul james Sent: 19 May 2009 21:46 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Get the nearest layer with mapscript... Hello guys... I have several layers (lines, points, poly) ... I?m developing a measure tool... User can click on map and I have to select that layer to calculate de Area with postgis... I?m trying to do that WITHOUT using "LAYER ACTIVE SYSTEM"... Is That possible using mapscript? How Can I find the nearest and toppest layer ? Thanks! Paul _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From condit at sdsc.edu Wed May 20 10:56:01 2009 From: condit at sdsc.edu (Christopher Condit) Date: Wed, 20 May 2009 10:56:01 -0700 Subject: [mapserver-users] PERL MapScript In-Reply-To: <23842457308FD64AA88A8EE62F2A7D5B83B436@OntExch3.ontario.int.ec.gc.ca> References: <20090507115038.M79754@deprem.gov.tr> <4A02D387.5157.008F.0@dnr.state.mn.us><20090508070209.M53227@deprem.gov.tr><001101c9cfac$dea687b0$9bf39710$@com> <20090508172404.M69970@deprem.gov.tr> <845AADAC1106E44996327D62097E4C6B012BC069@et.ad.sdsc.edu> <23842457308FD64AA88A8EE62F2A7D5B83B435@OntExch3.ontario.int.ec.gc.ca> <845AADAC1106E44996327D62097E4C6B012BC080@et.ad.sdsc.edu> <23842457308FD64AA88A8EE62F2A7D5B83B436@OntExch3.ontario.int.ec.gc.ca> Message-ID: <845AADAC1106E44996327D62097E4C6B012BC0B2@et.ad.sdsc.edu> Hi Tom- Very strange. I don't see an xml file but now I've tried this and I do get an instance of an imageObj back: my $map = new mapscript::mapObj('test.map') or die "no map $!"; $map->saveMapContext('test.xml'); my $image = $map->draw(); print $image; So I guess I'll proceed and see how things go. Thanks for your input. -Chris > -----Original Message----- > From: Kralidis,Tom [Ontario] [mailto:Tom.Kralidis at ec.gc.ca] > Sent: Tuesday, May 19, 2009 4:58 PM > To: Christopher Condit; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] PERL MapScript > > > I get the same error when running mapObj->get("name"). I don't see any > get() method in mapObj. From my example, you should see a out2.xml > file written to disk. > > ..Tom > > > > -----Original Message----- > From: Christopher Condit [mailto:condit at sdsc.edu] > Sent: Tue 19-May-09 19:45 > To: Kralidis,Tom [Ontario]; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] PERL MapScript > > Hi Tom- > > What does your code look like? The following works for me: > #!/usr/bin/perl > use mapscript; > use strict; > > my $map = new mapscript::mapObj("test.map") or die "no map $!"; > my $name = $map->get("name"); > print $name; > > > #!/usr/bin/perl > > > > use strict; > > use warnings; > > use mapscript; > > > > my $map = new mapscript::mapObj('test.map'); > > $map->saveMapContext('out2.xml'); > > I also tried running your code. It doesn't generate an error but no > test.xml file is created... > > Any thoughts? > Thanks, > -Chris > > From pauljame at gmail.com Wed May 20 11:57:49 2009 From: pauljame at gmail.com (Paul james) Date: Wed, 20 May 2009 15:57:49 -0300 Subject: [mapserver-users] Get the nearest layer with mapscript... In-Reply-To: <4A13EAB00200008F00024440@co5.dnr.state.mn.us> References: <4A13EAB00200008F00024440@co5.dnr.state.mn.us> Message-ID: <33fad6880905201157i2594c210qe6003138fc3fe1f2@mail.gmail.com> Thanks Steve... That worked ! On Wed, May 20, 2009 at 1:34 PM, Steve Lime wrote: > You just need another loop... > > for( ...each layer...) { > layer = ... mapObj get layer ... > > ... now your getNumResults() loop ... > } > > Steve > > >>> Paul james 05/20/09 9:54 AM >>> > Hi Steve! > I didn't know that mapObj could call queryByPoint as well ... Thanks... > But, How can I get the feature selected after query ? > > Using LayerObj I did that (using layer.getNumResults() ) > > if (_layer.queryByPoint(MapaObj, _point, 0, -2) == 0) > { > for (int i = 0; i < _layer.getNumResults(); i++) > { > resultCacheMemberObj _result = _layer.getResult(i); > > return _result.shapeindex.ToString(); > } > } > > How can I do that using MapObj ? > > thanks! > > > On Wed, May 20, 2009 at 10:51 AM, Steve Lime > wrote: > > > If you're doing point queries MapServer/MapScript can do this for you. > > You do a > > mapObj.queryByPoint with the MS_SINGLE mode and then the function will > > identify > > the closest feature (considering TOLERANCEs!) in the top-most ACTIVE > > layer. > > > > This site uses this to it's advantage... > > > > http://www.dnr.state.mn.us/maps/compass.html > > > > A query drops through the layers until a match is hit. > > > > Even with other geometry types based on what was described you can > > probably do > > it pretty easily. You'd use one of the other query methods and then > once > > the query > > is done loop through your layer stack backwards (e.g. starting at the > > top) and stop > > when you find one with results. > > > > Steve > > > > >>> Paul james 05/20/09 7:56 AM >>> > > Thanks Pano... > > But It?s not that simple... > > What I need is figure out what LAYER was clicked... > > > > Paul > > > > On Wed, May 20, 2009 at 6:43 AM, Pano Voudouris > > wrote: > > > > > Probably don?t understand what exactly you are trying to achieve > here > > but > > > it is not as simple as map.getLayer(0) to get the topmost layer? And > > once > > > you have the layer object use one of the query function to select > the > > > record? E.g. myLayerObj.queryByPoint ? > > > > > > > > > > > > Pano > > > > > > > > > > > > *From:* mapserver-users-bounces at lists.osgeo.org [mailto: > > > mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Paul james > > > *Sent:* 19 May 2009 21:46 > > > *To:* mapserver-users at lists.osgeo.org > > > *Subject:* [mapserver-users] Get the nearest layer with mapscript... > > > > > > > > > > > > Hello guys... > > > I have several layers (lines, points, poly) ... > > > I?m developing a measure tool... User can click on map and I have to > > > select that layer to calculate de Area with postgis... > > > > > > I?m trying to do that WITHOUT using "LAYER ACTIVE SYSTEM"... > > > > > > Is That possible using mapscript? How Can I find the nearest and > > toppest > > > layer ? > > > > > > Thanks! > > > > > > Paul > > > > > > _______________________________________________ > > > mapserver-users mailing list > > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cclabaugh at centwire.com Wed May 20 12:16:47 2009 From: cclabaugh at centwire.com (Chad Clabaugh) Date: Wed, 20 May 2009 15:16:47 -0400 Subject: [mapserver-users] Precache Message-ID: <00ff01c9d97f$851c05d0$8f541170$@com> How can I precache tile images from shapefiles? Thanks Chad Clabaugh Technical Support, Engineering Office: 260.760.6398 Mobile: 260.466.8861 -------------- next part -------------- An HTML attachment was scrubbed... URL: From roberto.garcia at cptec.inpe.br Wed May 20 12:41:43 2009 From: roberto.garcia at cptec.inpe.br (Roberto Garcia,MSc) Date: Wed, 20 May 2009 16:41:43 -0300 Subject: [mapserver-users] GRIB files - gdal_translate In-Reply-To: <4A0ACF89.3010004@pobox.com> References: <4A09BCBE.9010903@cptec.inpe.br> <4A09C0F0.4030501@pobox.com> <4A0AC00C.1010306@cptec.inpe.br> <4A0ACF89.3010004@pobox.com> Message-ID: <4A145CF7.5040301@cptec.inpe.br> Hi people, I used gdal_translate in the GRIB file I want to show with mapserver, but there still is something wrong. The following is a partial output from it: Driver: GRIB/GRIdded Binary (.grb) Files: data\raster\T126L28.grb Size is *161, 98* Coordinate System is: ..... Origin = (-150.000000000000000,-61.246000000000002) Pixel Size = (0.938000000000000,-0.001836734693878) Corner Coordinates: Upper Left (-150.0000000, -61.2460000) (150d 0'0.00"W, 61d14'45.60"S) Lower Left (-150.0000000, -61.4260000) (150d 0'0.00"W, 61d25'33.60"S) Upper Right ( 1.0180000, -61.2460000) ( 1d 1'4.80"E, 61d14'45.60"S) Lower Right ( 1.0180000, -61.4260000) ( 1d 1'4.80"E, 61d25'33.60"S) Center ( -74.4910000, -61.3360000) ( 74d29'27.60"W, 61d20'9.60"S) Band 1 Block=*161x1* Type=Float64, ColorInterp=Undefined Description = 0[-] MSL (Mean sea level) Metadata: GRIB_UNIT=[Pa] GRIB_COMMENT=Pressure reduced to MSL [Pa] GRIB_ELEMENT=PRMSL GRIB_SHORT_NAME=0-MSL GRIB_REF_TIME= 1242453600 sec UTC GRIB_VALID_TIME= 1242453600 sec UTC GRIB_FORECAST_SECONDS=0 sec .... As u can see the size according to the its header is 161x98, but all the bands are related as 161x1 block. Why does it happen? Another thing I noticed is that the dif between upper and lower latitude in the corner coordinates is very small (-61.246 to -61.426). The issue is that, when mapserver renders this layer it only draws a straight line below South America, exactly where the whole image should start, as my CTL below shows. dset ^T126L28.grb title pac/sa/atlan sector: troposphere file undef 1e+20 dtype grib index ^T126L28.gmp xdef 161 linear -150.000015 0.937500 ydef 98 levels -61.246 -60.311 -59.376 -58.441 -57.506 -56.571 -55.636 -54.701 -53.766 -52.831 -51.896 -50.961 -50.026 -49.091 -48.156 -47.221 -46.286 -45.350 -44.415 -43.480 -42.545 -41.610 -40.675 -39.740 -38.805 -37.870 -36.935 -36.000 -35.065 -34.130 -33.195 -32.260 -31.325 -30.389 -29.454 -28.519 -27.584 -26.649 -25.714 -24.779 -23.844 -22.909 -21.974 -21.039 -20.104 -19.169 -18.234 -17.299 -16.364 -15.429 -14.493 -13.558 -12.623 -11.688 -10.753 -9.818 -8.883 -7.948 -7.013 -6.078 -5.143 -4.208 -3.273 -2.338 -1.403 -0.468 0.468 1.403 2.338 3.273 4.208 5.143 6.078 7.013 7.948 8.883 9.818 10.753 11.688 12.623 13.558 14.493 15.429 16.364 17.299 18.234 19.169 20.104 21.039 21.974 22.909 23.844 24.779 25.714 26.649 27.584 28.519 29.454 zdef 7 levels 1000 925 850 700 500 300 200 ===> set Z 1 ou 2 ou 3 ... ou 7 (GRADS) tdef 1 linear 6Z16may2009 6hr vars 15 psnm 0 2,102, 0, 0 SEA LEVEL PRESSURE [hPa] tsfc 0 187, 1, 0, 0 SURFACE TEMPERATURE [K] prec 0 61, 1, 0, 0 TOTAL PRECIPITATION [Kg/m2/day] cbnv 0 71, 3, 0, 0 CLOUD COVER [0-1] role 0 114, 8, 0, 0 OUTGOING LONG WAVE AT TOP [W/m2] mask 7 137,100 MASK [-/+] uvel 7 33,100 ZONAL WIND (U) [m/s] vvel 7 34,100 MERIDIONAL WIND (V) [m/s] omeg 7 39,100 OMEGA [Pa/s] fcor 7 35,100 STREAM FUNCTION [m2/s] potv 7 36,100 VELOCITY POTENTIAL [m2/s] zgeo 7 7,100 GEOPOTENTIAL HEIGHT [gpm] temp 7 11,100 ABSOLUTE TEMPERATURE [K] umrl 7 52,100 RELATIVE HUMIDITY [no Dim] umes 7 51,100 SPECIFIC HUMIDITY [kg/kg] endvars Can someone help me to find out what is happening? Tks a lot Roberto Garcia Frank Warmerdam wrote: > Roberto Garcia,MSc wrote: >> Hi, tks for the answers. >> >> According to my gdainfo output file attached, can anyone tell me what >> element could be a CLASSITEM? > > Roberto, > > In MapServer you always classify rasters based on the item [pixel] but > you do not need to explicitly state a classitem. > > This is a relatively simple example of raster classification. > > LAYER > NAME grid1 > TYPE raster > STATUS default > DATA data/float.tif > CLASS > NAME "red" > EXPRESSION ([pixel] < -3) > COLOR 255 0 0 > END > CLASS > NAME "green" > EXPRESSION ([pixel] >= -3 and [pixel] < 3) > COLOR 0 255 0 > END > CLASS > NAME "blue" > EXPRESSION ([pixel] >= 3) > COLOR 0 0 255 > END > END > >> I can see my grib using Grads but what tool do I use to translate >> individual bands into GeoTIFF? > > You can use gdal_translate to extract particular bands from a grib file > as a geotiff (or all the bands). For instance, the following would > extract band 3 (total precipitation): > > gdal_translate -b 3 T126L28.grb total_precip.tif > >> Converting the data on-the-fly to an image is the right way to work? > > Having MapServer access the grib file on the fly rather than depending > on pre-translated extracts will reduce data duplication and may help > avoid confusion about what is up to date. However, it is possible that > there will be a performance penalty for extracting directly from GRIB. > If so, it may not be significant enough to matter to you. > >> What are the problems with Apache if I do not do so? > > I don't see how either approach relates to Apache. It is a > data management and possibly performance issue with MapServer. > > Best regards, -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan.lucena at pmldnet.com Wed May 20 14:46:27 2009 From: ivan.lucena at pmldnet.com (Ivan) Date: Wed, 20 May 2009 17:46:27 -0400 Subject: [mapserver-users] GRIB files - gdal_translate In-Reply-To: <4A145CF7.5040301@cptec.inpe.br> References: <4A09BCBE.9010903@cptec.inpe.br> <4A09C0F0.4030501@pobox.com> <4A0AC00C.1010306@cptec.inpe.br> <4A0ACF89.3010004@pobox.com> <4A145CF7.5040301@cptec.inpe.br> Message-ID: <4A147A33.3000602@pmldnet.com> Hi there! There is nothing wrong with your block X and Y size (161x1). It indicates that your data is not tiled/blocked, so it is most likely to be read row by row. If the image looks strange is not because of that. You have 98 rows in 0.02 degrees, so if it looks like a line, I wouldn't be suprised. Have you try to open it in another GDAL based client application, like QGIS for example? Regards, Ivan Roberto Garcia,MSc wrote: > Hi people, > > I used gdal_translate in the GRIB file I want to show with mapserver, > but there still is something wrong. The following is a partial output > from it: > > Driver: GRIB/GRIdded Binary (.grb) > Files: data\raster\T126L28.grb > Size is *161, 98* > Coordinate System is: > ..... > Origin = (-150.000000000000000,-61.246000000000002) > Pixel Size = (0.938000000000000,-0.001836734693878) > Corner Coordinates: > Upper Left (-150.0000000, -61.2460000) (150d 0'0.00"W, 61d14'45.60"S) > Lower Left (-150.0000000, -61.4260000) (150d 0'0.00"W, 61d25'33.60"S) > Upper Right ( 1.0180000, -61.2460000) ( 1d 1'4.80"E, 61d14'45.60"S) > Lower Right ( 1.0180000, -61.4260000) ( 1d 1'4.80"E, 61d25'33.60"S) > Center ( -74.4910000, -61.3360000) ( 74d29'27.60"W, 61d20'9.60"S) > Band 1 Block=*161x1* Type=Float64, ColorInterp=Undefined > Description = 0[-] MSL (Mean sea level) > Metadata: > GRIB_UNIT=[Pa] > GRIB_COMMENT=Pressure reduced to MSL [Pa] > GRIB_ELEMENT=PRMSL > GRIB_SHORT_NAME=0-MSL > GRIB_REF_TIME= 1242453600 sec UTC > GRIB_VALID_TIME= 1242453600 sec UTC > GRIB_FORECAST_SECONDS=0 sec > .... > > As u can see the size according to the its header is 161x98, but all the > bands are related as 161x1 block. Why does it happen? Another thing I > noticed is that the dif between upper and lower latitude in the corner > coordinates is very small (-61.246 to -61.426). > > The issue is that, when mapserver renders this layer it only draws a > straight line below South America, exactly where the whole image should > start, as my CTL below shows. > > dset ^T126L28.grb > title pac/sa/atlan sector: troposphere file > undef 1e+20 > dtype grib > index ^T126L28.gmp > xdef 161 linear -150.000015 0.937500 > ydef 98 levels > -61.246 -60.311 > -59.376 -58.441 -57.506 -56.571 -55.636 -54.701 -53.766 -52.831 -51.896 > -50.961 > -50.026 -49.091 -48.156 -47.221 -46.286 -45.350 -44.415 -43.480 -42.545 > -41.610 > -40.675 -39.740 -38.805 -37.870 -36.935 -36.000 -35.065 -34.130 -33.195 > -32.260 > -31.325 -30.389 -29.454 -28.519 -27.584 -26.649 -25.714 -24.779 -23.844 > -22.909 > -21.974 -21.039 -20.104 -19.169 -18.234 -17.299 -16.364 -15.429 -14.493 > -13.558 > -12.623 -11.688 -10.753 -9.818 -8.883 -7.948 -7.013 -6.078 -5.143 > -4.208 > -3.273 -2.338 -1.403 -0.468 0.468 1.403 2.338 3.273 > 4.208 5.143 > 6.078 7.013 7.948 8.883 9.818 10.753 11.688 12.623 13.558 > 14.493 > 15.429 16.364 17.299 18.234 19.169 20.104 21.039 21.974 22.909 > 23.844 > 24.779 25.714 26.649 27.584 28.519 29.454 > zdef 7 levels > 1000 925 850 700 500 300 200 ===> set Z 1 ou 2 ou 3 ... ou 7 (GRADS) > tdef 1 linear 6Z16may2009 6hr > vars 15 > psnm 0 2,102, 0, 0 SEA LEVEL PRESSURE [hPa] > tsfc 0 187, 1, 0, 0 SURFACE TEMPERATURE [K] > prec 0 61, 1, 0, 0 TOTAL PRECIPITATION [Kg/m2/day] > cbnv 0 71, 3, 0, 0 CLOUD COVER [0-1] > role 0 114, 8, 0, 0 OUTGOING LONG WAVE AT TOP [W/m2] > mask 7 137,100 MASK [-/+] > uvel 7 33,100 ZONAL WIND (U) [m/s] > vvel 7 34,100 MERIDIONAL WIND (V) [m/s] > omeg 7 39,100 OMEGA [Pa/s] > fcor 7 35,100 STREAM FUNCTION [m2/s] > potv 7 36,100 VELOCITY POTENTIAL [m2/s] > zgeo 7 7,100 GEOPOTENTIAL HEIGHT [gpm] > temp 7 11,100 ABSOLUTE TEMPERATURE [K] > umrl 7 52,100 RELATIVE HUMIDITY [no Dim] > umes 7 51,100 SPECIFIC HUMIDITY [kg/kg] > endvars > > Can someone help me to find out what is happening? > > Tks a lot > > Roberto Garcia > > > Frank Warmerdam wrote: >> Roberto Garcia,MSc wrote: >>> Hi, tks for the answers. >>> >>> According to my gdainfo output file attached, can anyone tell me what >>> element could be a CLASSITEM? >> >> Roberto, >> >> In MapServer you always classify rasters based on the item [pixel] but >> you do not need to explicitly state a classitem. >> >> This is a relatively simple example of raster classification. >> >> LAYER >> NAME grid1 >> TYPE raster >> STATUS default >> DATA data/float.tif >> CLASS >> NAME "red" >> EXPRESSION ([pixel] < -3) >> COLOR 255 0 0 >> END >> CLASS >> NAME "green" >> EXPRESSION ([pixel] >= -3 and [pixel] < 3) >> COLOR 0 255 0 >> END >> CLASS >> NAME "blue" >> EXPRESSION ([pixel] >= 3) >> COLOR 0 0 255 >> END >> END >> >>> I can see my grib using Grads but what tool do I use to translate >>> individual bands into GeoTIFF? >> >> You can use gdal_translate to extract particular bands from a grib file >> as a geotiff (or all the bands). For instance, the following would >> extract band 3 (total precipitation): >> >> gdal_translate -b 3 T126L28.grb total_precip.tif >> >>> Converting the data on-the-fly to an image is the right way to work? >> >> Having MapServer access the grib file on the fly rather than depending >> on pre-translated extracts will reduce data duplication and may help >> avoid confusion about what is up to date. However, it is possible that >> there will be a performance penalty for extracting directly from GRIB. >> If so, it may not be significant enough to matter to you. >> >>> What are the problems with Apache if I do not do so? >> >> I don't see how either approach relates to Apache. It is a >> data management and possibly performance issue with MapServer. >> >> Best regards, > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From simon at sibern.com.au Wed May 20 15:50:22 2009 From: simon at sibern.com.au (Simon Haddon) Date: Thu, 21 May 2009 08:50:22 +1000 Subject: [mapserver-users] Finding Lat-Long from geometric data type of postgre In-Reply-To: References: Message-ID: <5403fc46685179d6a099e23669ab3331@localhost> Hi, I use a combination of server code and Javascript. I convert the lat long values to a javascript array which is loaded into a 2 dimensional array. This data is then loaded with the map which is quick if your polygons are not too complicated. I then have a mouse over ont he map which checks as the mouse moves to see if is within the polygon. Since I am already creating lat/long values from the mouse over I just need to do a simple point in polygon check and I am there. The other way I have thought is to create a html map using the polygon values that come back but I haven't done that. To display the tooltip I use js_graphics (http://www.walterzorn.com/) library of tools which I find fantastic. Cheers, Simon On Wed, 20 May 2009 01:54:23 -0700, Mukul Gupta wrote: Hi, I want to display a tool tip for the polygons in my application for which I need lat-long values of polygon. Please tell me how to retrieve the values from geometry type field of postgre or If there is any other way of doing this. Regards Mukul Cheers, SIMON -------------- next part -------------- An HTML attachment was scrubbed... URL: From randre at gmail.com Wed May 20 20:45:51 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Wed, 20 May 2009 20:45:51 -0700 Subject: [mapserver-users] Precache In-Reply-To: <00ff01c9d97f$851c05d0$8f541170$@com> References: <00ff01c9d97f$851c05d0$8f541170$@com> Message-ID: <9c2015090905202045v1a77e797xe983e887c49172e1@mail.gmail.com> Your request is somewhat lacking in detail, but assuming that your goal is a simple one, here is one way to accomplish this. 1. Create a MapServer project that displays your shapefile in whatever style you choose. 2. Setup a TileCache instance that points to your MapServer project. 3. Run the tilecache_seed.py script to pre-generate tiles. Roger -- On Wed, May 20, 2009 at 12:16 PM, Chad Clabaugh wrote: > How can I precache tile images from shapefiles? > > > > Thanks > > > > Chad Clabaugh > > Technical Support, Engineering > > Office: 260.760.6398 > > Mobile: 260.466.8861 > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From sb.ray at hotmail.com Wed May 20 22:44:55 2009 From: sb.ray at hotmail.com (Subhranil Basu Ray) Date: Thu, 21 May 2009 11:14:55 +0530 Subject: [mapserver-users] display map on aspx page Message-ID: Hi, I would like to display the map generated by mapserver on an aspx page.How can I integrate my ASP.NET 2.0 application with mapserver so that the request comes from aspx page to IIS and from there to mapserver which then provides the map for display on the aspx page. I want the map to be interactive i.e querying should be possible. Is it possible to do that without using an Active X control. If not, then is there any Active X control that can be used with an ASP.NET 2.0 application Thanks for your responses. _________________________________________________________________ Planning the weekend ? Here?s what is happening in your town. http://msn.asklaila.com/events/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From meenu.monu at gmail.com Thu May 21 00:34:49 2009 From: meenu.monu at gmail.com (meenu) Date: Thu, 21 May 2009 00:34:49 -0700 (PDT) Subject: [mapserver-users] openlayers in vs2005 website Message-ID: <1242891289162-2950691.post@n2.nabble.com> dears,i created one website using mapserver in vs2005 ...now i need to know how can i do openlayers in this same website....is it possible?in this same website i need to display one map with tooltip(hotspot) information....for that purpose can anybody tell me how to bind open layers in vs2005 website application? ----- Meenu -- View this message in context: http://n2.nabble.com/openlayers-in-vs2005-website-tp2950691p2950691.html Sent from the Mapserver - User mailing list archive at Nabble.com. From meenu.monu at gmail.com Thu May 21 00:37:39 2009 From: meenu.monu at gmail.com (meenu) Date: Thu, 21 May 2009 00:37:39 -0700 (PDT) Subject: [mapserver-users] display map on aspx page In-Reply-To: References: Message-ID: <1242891459271-2950701.post@n2.nabble.com> hi friend check this link...may helpful for u.. http://n2.nabble.com/how-can-i-create-mapserver-website-in-VS-2005-%28VB%29-td2516841.html#a2567804 ----- Meenu -- View this message in context: http://n2.nabble.com/display-map-on-aspx-page-tp2950436p2950701.html Sent from the Mapserver - User mailing list archive at Nabble.com. From cdhernandez at tenerife.es Thu May 21 03:52:13 2009 From: cdhernandez at tenerife.es (=?iso-8859-1?Q?Carmen_Delia_Hern=E1ndez_P=E9rez?=) Date: Thu, 21 May 2009 11:52:13 +0100 Subject: [mapserver-users] Getcapabilities mime-type Message-ID: Hello! I have installed Mapserver v. 5.2.1 and it?s working. I want my web browser understands directly the file returned by a request Getcapabilities, that is a xml file really, and don?t query me if I want to downloading file . I've read about mime-types configuration in the httpd.conf file of Apache server, but I don`t know what I must write exactly. Any help? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From micklesh at gmail.com Thu May 21 04:08:47 2009 From: micklesh at gmail.com (micklesh) Date: Thu, 21 May 2009 04:08:47 -0700 (PDT) Subject: [mapserver-users] Getcapabilities mime-type In-Reply-To: References: Message-ID: <1242904127222-2951383.post@n2.nabble.com> Hi, Carmen Not sure if I understood you well, but the way the brouser proceeds with any file can be configured in the browser settings. regards, michael Carmen Delia Hern?ndez P?rez-2 wrote: > > Hello! > I have installed Mapserver v. 5.2.1 and it?s working. I want my web > browser understands directly the file returned by a request > Getcapabilities, that is a xml file really, and don?t query me if I want > to downloading file . I've read about mime-types configuration in the > httpd.conf file of Apache server, but I don`t know what I must write > exactly. > > Any help? > > Thanks. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/Getcapabilities-mime-type-tp2951327p2951383.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Thu May 21 04:12:53 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Thu, 21 May 2009 14:12:53 +0300 Subject: [mapserver-users] Getcapabilities mime-type References: Message-ID: Hi, You need to change the behaviour on the client side, because WMS standard says the the mime type must be what it is. You can configure with web browser settings what program you want to use for opening contents of type "application/vnd.ogc.wms_xml". -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Carmen Delia Hern?ndez P?rez L?hetetty: to 21.5.2009 13:52 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Getcapabilities mime-type Hello! I have installed Mapserver v. 5.2.1 and it?s working. I want my web browser understands directly the file returned by a request Getcapabilities, that is a xml file really, and don?t query me if I want to downloading file . I've read about mime-types configuration in the httpd.conf file of Apache server, but I don`t know what I must write exactly. Any help? Thanks. Hi From Tom.Kralidis at ec.gc.ca Thu May 21 04:40:45 2009 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Thu, 21 May 2009 07:40:45 -0400 Subject: [mapserver-users] Getcapabilities mime-type In-Reply-To: References: Message-ID: <23842457308FD64AA88A8EE62F2A7D5B833A51@OntExch3.ontario.int.ec.gc.ca> > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Carmen Delia Hern?ndez P?rez > Sent: Thursday, 21 May 2009 06:52 > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Getcapabilities mime-type > > Hello! > > > > I have installed Mapserver v. 5.2.1 and it?s working. I > want my web browser understands directly the file returned by > a request Getcapabilities, that is a xml file really, and > don?t query me if I want to downloading file . I've read > about mime-types configuration in the httpd.conf file of > Apache server, but I don`t know what I must write exactly. > See http://www.mapserver.org/faq.html#when-i-do-a-getcapabilities-why-does-my-browser-want-to-download-mapserv-exe-mapserv You _could_ write a MapScript WxS wrapper to change the MIME type when GetCapabilities is called, but note that you would be breaking OGC WMS support. ..Tom From cdhernandez at tenerife.es Thu May 21 04:58:58 2009 From: cdhernandez at tenerife.es (=?iso-8859-1?Q?Carmen_Delia_Hern=E1ndez_P=E9rez?=) Date: Thu, 21 May 2009 12:58:58 +0100 Subject: [mapserver-users] Getcapabilities mime-type In-Reply-To: <23842457308FD64AA88A8EE62F2A7D5B833A51@OntExch3.ontario.int.ec.gc.ca> References: <23842457308FD64AA88A8EE62F2A7D5B833A51@OntExch3.ontario.int.ec.gc.ca> Message-ID: Thank you, but then for example these WMS services that I write don?t follow the OGC WMS ? When I do the request GetCapabilites to these services My web browser show me the answer directly. http://www.sigmayores.csic.es/ArcGIS/services/WMS/MapServer/WMSServer?REQUEST=GetCapabilities&SERVICE=WMS http://www.conselldemallorca.net/ide/wms_xarxa_transport/MapServer/WMSServer?REQUEST=GetCapabilities&SERVICE=WMS http://ide.jccm.es/cgi-bin/mapserv?map=/usr/local/webmapping/ideclm/mapserver/ideclm.map&version=1.0.0&REQUEST=GETCAPABILITIES -----Mensaje original----- De: Kralidis,Tom [Ontario] [mailto:Tom.Kralidis at ec.gc.ca] Enviado el: jueves, 21 de mayo de 2009 12:41 Para: Carmen Delia Hern?ndez P?rez; mapserver-users at lists.osgeo.org Asunto: RE: [mapserver-users] Getcapabilities mime-type > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Carmen Delia Hern?ndez P?rez > Sent: Thursday, 21 May 2009 06:52 > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Getcapabilities mime-type > > Hello! > > > > I have installed Mapserver v. 5.2.1 and it?s working. I > want my web browser understands directly the file returned by > a request Getcapabilities, that is a xml file really, and > don?t query me if I want to downloading file . I've read > about mime-types configuration in the httpd.conf file of > Apache server, but I don`t know what I must write exactly. > See http://www.mapserver.org/faq.html#when-i-do-a-getcapabilities-why-does-my-browser-want-to-download-mapserv-exe-mapserv You _could_ write a MapScript WxS wrapper to change the MIME type when GetCapabilities is called, but note that you would be breaking OGC WMS support. ..Tom From Tom.Kralidis at ec.gc.ca Thu May 21 05:01:19 2009 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Ontario]) Date: Thu, 21 May 2009 08:01:19 -0400 Subject: [mapserver-users] Getcapabilities mime-type In-Reply-To: References: <23842457308FD64AA88A8EE62F2A7D5B833A51@OntExch3.ontario.int.ec.gc.ca> Message-ID: <23842457308FD64AA88A8EE62F2A7D5B833A53@OntExch3.ontario.int.ec.gc.ca> > -----Original Message----- > From: Carmen Delia Hern?ndez P?rez [mailto:cdhernandez at tenerife.es] > Sent: Thursday, 21 May 2009 07:59 > To: Kralidis,Tom [Ontario]; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] Getcapabilities mime-type > > Thank you, but then for example these WMS services that I > write don?t follow the OGC WMS ? When I do the request > GetCapabilites to these services My web browser show me the > answer directly. > > > http://www.sigmayores.csic.es/ArcGIS/services/WMS/MapServer/WM > SServer?REQUEST=GetCapabilities&SERVICE=WMS > > http://www.conselldemallorca.net/ide/wms_xarxa_transport/MapSe > rver/WMSServer?REQUEST=GetCapabilities&SERVICE=WMS > > http://ide.jccm.es/cgi-bin/mapserv?map=/usr/local/webmapping/i declm/mapserver/ideclm.map&version=1.0.0&REQUEST=GETCAPABILITIES > Well, if it's returning a 1.1.0 or 1.1.1 WMS Capabilities document, the spec says that application/vnd.ogc.wms_xml must be returned as the MIME type. > > -----Mensaje original----- > De: Kralidis,Tom [Ontario] [mailto:Tom.Kralidis at ec.gc.ca] > Enviado el: jueves, 21 de mayo de 2009 12:41 > Para: Carmen Delia Hern?ndez P?rez; mapserver-users at lists.osgeo.org > Asunto: RE: [mapserver-users] Getcapabilities mime-type > > > > > -----Original Message----- > > From: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf > Of Carmen > > Delia Hern?ndez P?rez > > Sent: Thursday, 21 May 2009 06:52 > > To: mapserver-users at lists.osgeo.org > > Subject: [mapserver-users] Getcapabilities mime-type > > > > Hello! > > > > > > > > I have installed Mapserver v. 5.2.1 and it?s working. I > want my web > > browser understands directly the file returned by a request > > Getcapabilities, that is a xml file really, and don?t query me if I > > want to downloading file . I've read about mime-types > configuration in > > the httpd.conf file of Apache server, but I don`t know what I must > > write exactly. > > > > See > http://www.mapserver.org/faq.html#when-i-do-a-getcapabilities- > why-does-my-browser-want-to-download-mapserv-exe-mapserv > > You _could_ write a MapScript WxS wrapper to change the MIME > type when GetCapabilities is called, but note that you would > be breaking OGC WMS support. > > ..Tom > From roberto.garcia at cptec.inpe.br Thu May 21 05:34:56 2009 From: roberto.garcia at cptec.inpe.br (Jose Roberto M. Garcia, MSc) Date: Thu, 21 May 2009 09:34:56 -0300 Subject: [mapserver-users] GRIB files - gdal_translate In-Reply-To: <4A147A33.3000602@pmldnet.com> References: <4A09BCBE.9010903@cptec.inpe.br> <4A09C0F0.4030501@pobox.com> <4A0AC00C.1010306@cptec.inpe.br> <4A0ACF89.3010004@pobox.com> <4A145CF7.5040301@cptec.inpe.br> <4A147A33.3000602@pmldnet.com> Message-ID: <4A154A70.6010101@cptec.inpe.br> I opened the tif file I've extracted form it in QGIS and it looked like the same thing, a line. What do I need to do to manipulate this as a tiled/blocked data so? I want both things: make mapserver renders direct from the GRIB file and either create GeoTiff files from them using gdal_translate, by this time. Tks a lot Ivan wrote: > Hi there! > > There is nothing wrong with your block X and Y size (161x1). It > indicates that your data is not tiled/blocked, so it is most likely to > be read row by row. If the image looks strange is not because of that. > You have 98 rows in 0.02 degrees, so if it looks like a line, I > wouldn't be suprised. Have you try to open it in another GDAL based > client application, like QGIS for example? > > Regards, > > Ivan > > Roberto Garcia,MSc wrote: >> Hi people, >> >> I used gdal_translate in the GRIB file I want to show with mapserver, >> but there still is something wrong. The following is a partial output >> from it: >> >> Driver: GRIB/GRIdded Binary (.grb) >> Files: data\raster\T126L28.grb >> Size is *161, 98* >> Coordinate System is: >> ..... >> Origin = (-150.000000000000000,-61.246000000000002) >> Pixel Size = (0.938000000000000,-0.001836734693878) >> Corner Coordinates: >> Upper Left (-150.0000000, -61.2460000) (150d 0'0.00"W, 61d14'45.60"S) >> Lower Left (-150.0000000, -61.4260000) (150d 0'0.00"W, 61d25'33.60"S) >> Upper Right ( 1.0180000, -61.2460000) ( 1d 1'4.80"E, 61d14'45.60"S) >> Lower Right ( 1.0180000, -61.4260000) ( 1d 1'4.80"E, 61d25'33.60"S) >> Center ( -74.4910000, -61.3360000) ( 74d29'27.60"W, 61d20'9.60"S) >> Band 1 Block=*161x1* Type=Float64, ColorInterp=Undefined >> Description = 0[-] MSL (Mean sea level) >> Metadata: >> GRIB_UNIT=[Pa] >> GRIB_COMMENT=Pressure reduced to MSL [Pa] >> GRIB_ELEMENT=PRMSL >> GRIB_SHORT_NAME=0-MSL >> GRIB_REF_TIME= 1242453600 sec UTC >> GRIB_VALID_TIME= 1242453600 sec UTC >> GRIB_FORECAST_SECONDS=0 sec >> .... >> >> As u can see the size according to the its header is 161x98, but all >> the bands are related as 161x1 block. Why does it happen? Another >> thing I noticed is that the dif between upper and lower latitude in >> the corner coordinates is very small (-61.246 to -61.426). >> >> The issue is that, when mapserver renders this layer it only draws a >> straight line below South America, exactly where the whole image >> should start, as my CTL below shows. >> >> dset ^T126L28.grb >> title pac/sa/atlan sector: troposphere file >> undef 1e+20 >> dtype grib >> index ^T126L28.gmp >> xdef 161 linear -150.000015 0.937500 >> ydef 98 levels >> -61.246 -60.311 >> -59.376 -58.441 -57.506 -56.571 -55.636 -54.701 -53.766 -52.831 >> -51.896 -50.961 >> -50.026 -49.091 -48.156 -47.221 -46.286 -45.350 -44.415 -43.480 >> -42.545 -41.610 >> -40.675 -39.740 -38.805 -37.870 -36.935 -36.000 -35.065 -34.130 >> -33.195 -32.260 >> -31.325 -30.389 -29.454 -28.519 -27.584 -26.649 -25.714 -24.779 >> -23.844 -22.909 >> -21.974 -21.039 -20.104 -19.169 -18.234 -17.299 -16.364 -15.429 >> -14.493 -13.558 >> -12.623 -11.688 -10.753 -9.818 -8.883 -7.948 -7.013 -6.078 >> -5.143 -4.208 >> -3.273 -2.338 -1.403 -0.468 0.468 1.403 2.338 3.273 >> 4.208 5.143 >> 6.078 7.013 7.948 8.883 9.818 10.753 11.688 12.623 >> 13.558 14.493 >> 15.429 16.364 17.299 18.234 19.169 20.104 21.039 21.974 >> 22.909 23.844 >> 24.779 25.714 26.649 27.584 28.519 29.454 >> zdef 7 levels >> 1000 925 850 700 500 300 200 ===> set Z 1 ou 2 ou 3 ... ou 7 (GRADS) >> tdef 1 linear 6Z16may2009 6hr >> vars 15 >> psnm 0 2,102, 0, 0 SEA LEVEL PRESSURE [hPa] >> tsfc 0 187, 1, 0, 0 SURFACE TEMPERATURE [K] >> prec 0 61, 1, 0, 0 TOTAL PRECIPITATION [Kg/m2/day] >> cbnv 0 71, 3, 0, 0 CLOUD COVER [0-1] >> role 0 114, 8, 0, 0 OUTGOING LONG WAVE AT TOP [W/m2] >> mask 7 137,100 MASK [-/+] >> uvel 7 33,100 ZONAL WIND (U) [m/s] >> vvel 7 34,100 MERIDIONAL WIND (V) [m/s] >> omeg 7 39,100 OMEGA [Pa/s] >> fcor 7 35,100 STREAM FUNCTION [m2/s] >> potv 7 36,100 VELOCITY POTENTIAL [m2/s] >> zgeo 7 7,100 GEOPOTENTIAL HEIGHT [gpm] >> temp 7 11,100 ABSOLUTE TEMPERATURE [K] >> umrl 7 52,100 RELATIVE HUMIDITY [no Dim] >> umes 7 51,100 SPECIFIC HUMIDITY [kg/kg] >> endvars >> >> Can someone help me to find out what is happening? >> >> Tks a lot >> >> Roberto Garcia >> >> >> Frank Warmerdam wrote: >>> Roberto Garcia,MSc wrote: >>>> Hi, tks for the answers. >>>> >>>> According to my gdainfo output file attached, can anyone tell me >>>> what element could be a CLASSITEM? >>> >>> Roberto, >>> >>> In MapServer you always classify rasters based on the item [pixel] but >>> you do not need to explicitly state a classitem. >>> >>> This is a relatively simple example of raster classification. >>> >>> LAYER >>> NAME grid1 >>> TYPE raster >>> STATUS default >>> DATA data/float.tif >>> CLASS >>> NAME "red" >>> EXPRESSION ([pixel] < -3) >>> COLOR 255 0 0 >>> END >>> CLASS >>> NAME "green" >>> EXPRESSION ([pixel] >= -3 and [pixel] < 3) >>> COLOR 0 255 0 >>> END >>> CLASS >>> NAME "blue" >>> EXPRESSION ([pixel] >= 3) >>> COLOR 0 0 255 >>> END >>> END >>> >>>> I can see my grib using Grads but what tool do I use to translate >>>> individual bands into GeoTIFF? >>> >>> You can use gdal_translate to extract particular bands from a grib file >>> as a geotiff (or all the bands). For instance, the following would >>> extract band 3 (total precipitation): >>> >>> gdal_translate -b 3 T126L28.grb total_precip.tif >>> >>>> Converting the data on-the-fly to an image is the right way to work? >>> >>> Having MapServer access the grib file on the fly rather than depending >>> on pre-translated extracts will reduce data duplication and may help >>> avoid confusion about what is up to date. However, it is possible that >>> there will be a performance penalty for extracting directly from GRIB. >>> If so, it may not be significant enough to matter to you. >>> >>>> What are the problems with Apache if I do not do so? >>> >>> I don't see how either approach relates to Apache. It is a >>> data management and possibly performance issue with MapServer. >>> >>> Best regards, >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > Jose Roberto M. Garcia, Msc Grupo Banco de Dados / CPTEC / INPE Fone: (12) 3186-8405 -- A luta contra o aquecimento global depende de cada um de n?s, fa?a sua parte, economize recursos naturais. -- http://www.cptec.inpe.br http://www.inpe.br From warmerdam at pobox.com Thu May 21 05:49:47 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 21 May 2009 08:49:47 -0400 Subject: [mapserver-users] GRIB files - gdal_translate In-Reply-To: <4A145CF7.5040301@cptec.inpe.br> References: <4A09BCBE.9010903@cptec.inpe.br> <4A09C0F0.4030501@pobox.com> <4A0AC00C.1010306@cptec.inpe.br> <4A0ACF89.3010004@pobox.com> <4A145CF7.5040301@cptec.inpe.br> Message-ID: <4A154DEB.7020605@pobox.com> Roberto Garcia,MSc wrote: > Size is *161, 98* > Coordinate System is: > ..... > Origin = (-150.000000000000000,-61.246000000000002) > Pixel Size = (0.938000000000000,-0.001836734693878) ... > Band 1 Block=*161x1* Type=Float64, ColorInterp=Undefined > As u can see the size according to the its header is 161x98, but all the > bands are related as 161x1 block. Why does it happen? Roberto, This means that the file (and bands) are 161x98, but the bands are subdivided into blocks which are 161x1 implying that the natural access chunk is a scanline. This is normal. > Another thing I > noticed is that the dif between upper and lower latitude in the corner > coordinates is very small (-61.246 to -61.426). This appears to be screwed up. Perhaps you could provide the file, and file a ticket about this? > The issue is that, when mapserver renders this layer it only draws a > straight line below South America, exactly where the whole image should > start, as my CTL below shows. What is "CTL"? PS. this would likely be better addressed on gdal-dev. Any ticket should be filed in the GDAL Trac. http://trac.osgeo.org/gdal/ Best regards, > dset ^T126L28.grb > title pac/sa/atlan sector: troposphere file > undef 1e+20 > dtype grib > index ^T126L28.gmp > xdef 161 linear -150.000015 0.937500 > ydef 98 levels > -61.246 -60.311 > -59.376 -58.441 -57.506 -56.571 -55.636 -54.701 -53.766 -52.831 -51.896 > -50.961 > -50.026 -49.091 -48.156 -47.221 -46.286 -45.350 -44.415 -43.480 -42.545 > -41.610 > -40.675 -39.740 -38.805 -37.870 -36.935 -36.000 -35.065 -34.130 -33.195 > -32.260 > -31.325 -30.389 -29.454 -28.519 -27.584 -26.649 -25.714 -24.779 -23.844 > -22.909 > -21.974 -21.039 -20.104 -19.169 -18.234 -17.299 -16.364 -15.429 -14.493 > -13.558 > -12.623 -11.688 -10.753 -9.818 -8.883 -7.948 -7.013 -6.078 -5.143 > -4.208 > -3.273 -2.338 -1.403 -0.468 0.468 1.403 2.338 3.273 > 4.208 5.143 > 6.078 7.013 7.948 8.883 9.818 10.753 11.688 12.623 13.558 > 14.493 > 15.429 16.364 17.299 18.234 19.169 20.104 21.039 21.974 22.909 > 23.844 > 24.779 25.714 26.649 27.584 28.519 29.454 > zdef 7 levels > 1000 925 850 700 500 300 200 ===> set Z 1 ou 2 ou 3 ... ou 7 (GRADS) > tdef 1 linear 6Z16may2009 6hr > vars 15 > psnm 0 2,102, 0, 0 SEA LEVEL PRESSURE [hPa] > tsfc 0 187, 1, 0, 0 SURFACE TEMPERATURE [K] > prec 0 61, 1, 0, 0 TOTAL PRECIPITATION [Kg/m2/day] > cbnv 0 71, 3, 0, 0 CLOUD COVER [0-1] > role 0 114, 8, 0, 0 OUTGOING LONG WAVE AT TOP [W/m2] > mask 7 137,100 MASK [-/+] > uvel 7 33,100 ZONAL WIND (U) [m/s] > vvel 7 34,100 MERIDIONAL WIND (V) [m/s] > omeg 7 39,100 OMEGA [Pa/s] > fcor 7 35,100 STREAM FUNCTION [m2/s] > potv 7 36,100 VELOCITY POTENTIAL [m2/s] > zgeo 7 7,100 GEOPOTENTIAL HEIGHT [gpm] > temp 7 11,100 ABSOLUTE TEMPERATURE [K] > umrl 7 52,100 RELATIVE HUMIDITY [no Dim] > umes 7 51,100 SPECIFIC HUMIDITY [kg/kg] > endvars > > Can someone help me to find out what is happening? > > Tks a lot > > Roberto Garcia > > > Frank Warmerdam wrote: >> Roberto Garcia,MSc wrote: >>> Hi, tks for the answers. >>> >>> According to my gdainfo output file attached, can anyone tell me what >>> element could be a CLASSITEM? >> >> Roberto, >> >> In MapServer you always classify rasters based on the item [pixel] but >> you do not need to explicitly state a classitem. >> >> This is a relatively simple example of raster classification. >> >> LAYER >> NAME grid1 >> TYPE raster >> STATUS default >> DATA data/float.tif >> CLASS >> NAME "red" >> EXPRESSION ([pixel] < -3) >> COLOR 255 0 0 >> END >> CLASS >> NAME "green" >> EXPRESSION ([pixel] >= -3 and [pixel] < 3) >> COLOR 0 255 0 >> END >> CLASS >> NAME "blue" >> EXPRESSION ([pixel] >= 3) >> COLOR 0 0 255 >> END >> END >> >>> I can see my grib using Grads but what tool do I use to translate >>> individual bands into GeoTIFF? >> >> You can use gdal_translate to extract particular bands from a grib file >> as a geotiff (or all the bands). For instance, the following would >> extract band 3 (total precipitation): >> >> gdal_translate -b 3 T126L28.grb total_precip.tif >> >>> Converting the data on-the-fly to an image is the right way to work? >> >> Having MapServer access the grib file on the fly rather than depending >> on pre-translated extracts will reduce data duplication and may help >> avoid confusion about what is up to date. However, it is possible that >> there will be a performance penalty for extracting directly from GRIB. >> If so, it may not be significant enough to matter to you. >> >>> What are the problems with Apache if I do not do so? >> >> I don't see how either approach relates to Apache. It is a >> data management and possibly performance issue with MapServer. >> >> Best regards, > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From roberto.garcia at cptec.inpe.br Thu May 21 07:16:20 2009 From: roberto.garcia at cptec.inpe.br (Roberto Garcia,MSc) Date: Thu, 21 May 2009 11:16:20 -0300 Subject: [mapserver-users] GRIB files - gdal_translate In-Reply-To: <4A154DEB.7020605@pobox.com> References: <4A09BCBE.9010903@cptec.inpe.br> <4A09C0F0.4030501@pobox.com> <4A0AC00C.1010306@cptec.inpe.br> <4A0ACF89.3010004@pobox.com> <4A145CF7.5040301@cptec.inpe.br> <4A154DEB.7020605@pobox.com> Message-ID: <4A156234.8050907@cptec.inpe.br> Hi Frank, tks for the answer. CTL is an ASCII file that follows Grib files (at least here) and informs the metadata of the Grib file. If anyone consider helping me my data is available by ftp in ftp1.cptec.inpe.br inside bdados folder, as my map file is. I access them with http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/grib.map&mode=map&layer=grib1 or http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/grib.map&mode=map&layer=tif1 And the results are almost the same (the diff is the color), a line below S.A. Tks Frank Warmerdam wrote: > Roberto Garcia,MSc wrote: >> Size is *161, 98* >> Coordinate System is: >> ..... >> Origin = (-150.000000000000000,-61.246000000000002) >> Pixel Size = (0.938000000000000,-0.001836734693878) > ... >> Band 1 Block=*161x1* Type=Float64, ColorInterp=Undefined > >> As u can see the size according to the its header is 161x98, but all >> the bands are related as 161x1 block. Why does it happen? > > Roberto, > > This means that the file (and bands) are 161x98, but the bands > are subdivided into blocks which are 161x1 implying that the natural > access chunk is a scanline. This is normal. > >> Another thing I noticed is that the dif between upper and lower >> latitude in the corner coordinates is very small (-61.246 to -61.426). > > This appears to be screwed up. Perhaps you could provide the file, > and file a ticket about this? > >> The issue is that, when mapserver renders this layer it only draws a >> straight line below South America, exactly where the whole image >> should start, as my CTL below shows. > > What is "CTL"? > > PS. this would likely be better addressed on gdal-dev. Any ticket > should be filed in the GDAL Trac. > > http://trac.osgeo.org/gdal/ > > Best regards, > >> dset ^T126L28.grb >> title pac/sa/atlan sector: troposphere file >> undef 1e+20 >> dtype grib >> index ^T126L28.gmp >> xdef 161 linear -150.000015 0.937500 >> ydef 98 levels >> -61.246 -60.311 >> -59.376 -58.441 -57.506 -56.571 -55.636 -54.701 -53.766 -52.831 >> -51.896 -50.961 >> -50.026 -49.091 -48.156 -47.221 -46.286 -45.350 -44.415 -43.480 >> -42.545 -41.610 >> -40.675 -39.740 -38.805 -37.870 -36.935 -36.000 -35.065 -34.130 >> -33.195 -32.260 >> -31.325 -30.389 -29.454 -28.519 -27.584 -26.649 -25.714 -24.779 >> -23.844 -22.909 >> -21.974 -21.039 -20.104 -19.169 -18.234 -17.299 -16.364 -15.429 >> -14.493 -13.558 >> -12.623 -11.688 -10.753 -9.818 -8.883 -7.948 -7.013 -6.078 >> -5.143 -4.208 >> -3.273 -2.338 -1.403 -0.468 0.468 1.403 2.338 3.273 >> 4.208 5.143 >> 6.078 7.013 7.948 8.883 9.818 10.753 11.688 12.623 >> 13.558 14.493 >> 15.429 16.364 17.299 18.234 19.169 20.104 21.039 21.974 >> 22.909 23.844 >> 24.779 25.714 26.649 27.584 28.519 29.454 >> zdef 7 levels >> 1000 925 850 700 500 300 200 ===> set Z 1 ou 2 ou 3 ... ou 7 (GRADS) >> tdef 1 linear 6Z16may2009 6hr >> vars 15 >> psnm 0 2,102, 0, 0 SEA LEVEL PRESSURE [hPa] >> tsfc 0 187, 1, 0, 0 SURFACE TEMPERATURE [K] >> prec 0 61, 1, 0, 0 TOTAL PRECIPITATION [Kg/m2/day] >> cbnv 0 71, 3, 0, 0 CLOUD COVER [0-1] >> role 0 114, 8, 0, 0 OUTGOING LONG WAVE AT TOP [W/m2] >> mask 7 137,100 MASK [-/+] >> uvel 7 33,100 ZONAL WIND (U) [m/s] >> vvel 7 34,100 MERIDIONAL WIND (V) [m/s] >> omeg 7 39,100 OMEGA [Pa/s] >> fcor 7 35,100 STREAM FUNCTION [m2/s] >> potv 7 36,100 VELOCITY POTENTIAL [m2/s] >> zgeo 7 7,100 GEOPOTENTIAL HEIGHT [gpm] >> temp 7 11,100 ABSOLUTE TEMPERATURE [K] >> umrl 7 52,100 RELATIVE HUMIDITY [no Dim] >> umes 7 51,100 SPECIFIC HUMIDITY [kg/kg] >> endvars >> >> Can someone help me to find out what is happening? >> >> Tks a lot >> >> Roberto Garcia >> >> >> Frank Warmerdam wrote: >>> Roberto Garcia,MSc wrote: >>>> Hi, tks for the answers. >>>> >>>> According to my gdainfo output file attached, can anyone tell me >>>> what element could be a CLASSITEM? >>> >>> Roberto, >>> >>> In MapServer you always classify rasters based on the item [pixel] but >>> you do not need to explicitly state a classitem. >>> >>> This is a relatively simple example of raster classification. >>> >>> LAYER >>> NAME grid1 >>> TYPE raster >>> STATUS default >>> DATA data/float.tif >>> CLASS >>> NAME "red" >>> EXPRESSION ([pixel] < -3) >>> COLOR 255 0 0 >>> END >>> CLASS >>> NAME "green" >>> EXPRESSION ([pixel] >= -3 and [pixel] < 3) >>> COLOR 0 255 0 >>> END >>> CLASS >>> NAME "blue" >>> EXPRESSION ([pixel] >= 3) >>> COLOR 0 0 255 >>> END >>> END >>> >>>> I can see my grib using Grads but what tool do I use to translate >>>> individual bands into GeoTIFF? >>> >>> You can use gdal_translate to extract particular bands from a grib file >>> as a geotiff (or all the bands). For instance, the following would >>> extract band 3 (total precipitation): >>> >>> gdal_translate -b 3 T126L28.grb total_precip.tif >>> >>>> Converting the data on-the-fly to an image is the right way to work? >>> >>> Having MapServer access the grib file on the fly rather than depending >>> on pre-translated extracts will reduce data duplication and may help >>> avoid confusion about what is up to date. However, it is possible that >>> there will be a performance penalty for extracting directly from GRIB. >>> If so, it may not be significant enough to matter to you. >>> >>>> What are the problems with Apache if I do not do so? >>> >>> I don't see how either approach relates to Apache. It is a >>> data management and possibly performance issue with MapServer. >>> >>> Best regards, >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From mapserver at geoworld.de Thu May 21 08:55:14 2009 From: mapserver at geoworld.de (Nicol Hermann) Date: Thu, 21 May 2009 17:55:14 +0200 Subject: [mapserver-users] How to use the new templating mechanism? Message-ID: <1242921314.4679.3.camel@localhost> Dear list, can someone please share some code snippets how to use the new templating mechanism? (http://mapserver.org/development/rfc/ms-rfc-36.html) My goal is to create a JOSN string from a getFeatureInfo Request (mapserver version 5.2). I understand that i have to create an outputformat which refers e.g. to a JavaScript file. What i do not understand is, how i approach this outputformat? I followed the instructions in this posting http://lists.osgeo.org/pipermail/mapserver-dev/2009-January/008168.html and I tried to specify &INFO_FORMAT=application/json& in the GetFeatureInfo-Request but this leads to an exception. Any hints? Thanks a lot Nicol From randre at gmail.com Thu May 21 09:46:41 2009 From: randre at gmail.com (=?ISO-8859-1?Q?Roger_Andr=E9?=) Date: Thu, 21 May 2009 09:46:41 -0700 Subject: [mapserver-users] Precache In-Reply-To: <014401c9da0f$23d25000$6b76f000$@com> References: <00ff01c9d97f$851c05d0$8f541170$@com> <9c2015090905202045v1a77e797xe983e887c49172e1@mail.gmail.com> <014401c9da0f$23d25000$6b76f000$@com> Message-ID: <9c2015090905210946p2fcb0e1dy57be9fa36e4c6fb2@mail.gmail.com> Ahh, ok. I'm not sure in what fashion you are using TileCache, but my experience has been with using it to create tiles to display in Google Maps. Google Maps uses the projection which is EPSG:900913. I believe there are other codes for it, but that is the one I use. All of my source data for the MapServer projects I make are in EPSG:4326. So there are 3 things I need to do in order to make the Tilecache output tiles align correctly in Gmaps. 1. I set both the mapfile and the layer projections to EPSG:4326. MAP NAME 'v2_80m_global' PROJECTION "init=epsg:4326" END LAYER NAME 'imagery' PROJECTION "init=epsg:4326" END 2. I explicity allow for a wms request to be made for the layer in EPSG:900913 by setting the following in my MapServer LAYER: METADATA "wms_srs" "EPSG:4326 EPSG:900913" 3. I define my TileCache layer so that it requests images from Mapserver in EPSG:900913. [v2_20m_global] type=MapServerLayer mapfile=/var/www/mapfiles/v2_20m_global/v2_20m_global.map metaTile=true metaSize=2,2 metaBuffer=0,500 layers=imagery spherical_mercator=true srs=EPSG:900913 That's what works for me. Roger -- On Thu, May 21, 2009 at 5:24 AM, Chad Clabaugh wrote: > Thank you Roger, for your response. ?I have done that but I do not > understand how tilecache works. ?The images that are returned from mapserver > line up perfectly. But the images returned from tilecache do not align very > well (they're distorted). ?If tilecache is simply caching the returned > images then I do not understand where this distortion comes from. ?Any > thoughts? > > Thanks! > > -----Original Message----- > From: Roger Andr? [mailto:randre at gmail.com] > Sent: Wednesday, May 20, 2009 11:46 PM > To: Chad Clabaugh > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Precache > > Your request is somewhat lacking in detail, but assuming that your > goal is a simple one, here is one way to accomplish this. > > 1. Create a MapServer project that displays your shapefile in whatever > style you choose. > 2. Setup a TileCache instance that points to your MapServer project. > 3. Run the tilecache_seed.py script to pre-generate tiles. > > Roger > -- > > On Wed, May 20, 2009 at 12:16 PM, Chad Clabaugh > wrote: >> How can I precache tile images from shapefiles? >> >> >> >> Thanks >> >> >> >> Chad Clabaugh >> >> Technical Support, Engineering >> >> Office: 260.760.6398 >> >> Mobile: 260.466.8861 >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > From roberto.garcia at cptec.inpe.br Thu May 21 10:42:03 2009 From: roberto.garcia at cptec.inpe.br (Jose Roberto M. Garcia, MSc) Date: Thu, 21 May 2009 14:42:03 -0300 Subject: [mapserver-users] GRIB files - gdal_translate In-Reply-To: <20090521144413.20476.qmail@s466.sureserver.com> References: <20090521144413.20476.qmail@s466.sureserver.com> Message-ID: <4A15926B.7050704@cptec.inpe.br> Tks people, yes I can wait, for sure. I can send the files to your particular email if u prefer, it's about 3 MB. or at ftp1.cptec.inpe.br (login=anonymous, pwd=some email) (passive mode) once there, go to bdados folder. Tks Lucena, Ivan wrote: > Roberto, > > I can take a look at that tonight if you are not in a hurry. > > Ivan > > >> -------Original Message------- >> From: Roberto Garcia,MSc >> Subject: Re: [mapserver-users] GRIB files - gdal_translate >> Sent: May 21 '09 09:16 >> >> Hi Frank, tks for the answer. >> >> CTL is an ASCII file that follows Grib files (at least here) and informs >> the metadata of the Grib file. If anyone consider helping me my data >> is available by ftp in ftp1.cptec.inpe.br inside bdados folder, as my >> map file is. >> >> I access them with >> http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/grib.map&mode=map&layer=grib1 >> or >> http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/grib.map&mode=map&layer=tif1 >> >> And the results are almost the same (the diff is the color), a line >> below S.A. >> >> Tks >> >> Frank Warmerdam wrote: >> > Roberto Garcia,MSc wrote: >> >> Size is *161, 98* >> >> Coordinate System is: >> >> ..... >> >> Origin = (-150.000000000000000,-61.246000000000002) >> >> Pixel Size = (0.938000000000000,-0.001836734693878) >> > ... >> >> Band 1 Block=*161x1* Type=Float64, ColorInterp=Undefined >> > >> >> As u can see the size according to the its header is 161x98, but all >> >> the bands are related as 161x1 block. Why does it happen? >> > >> > Roberto, >> > >> > This means that the file (and bands) are 161x98, but the bands >> > are subdivided into blocks which are 161x1 implying that the natural >> > access chunk is a scanline. This is normal. >> > >> >> Another thing I noticed is that the dif between upper and lower >> >> latitude in the corner coordinates is very small (-61.246 to -61.426). >> > >> > This appears to be screwed up. Perhaps you could provide the file, >> > and file a ticket about this? >> > >> >> The issue is that, when mapserver renders this layer it only draws a >> >> straight line below South America, exactly where the whole image >> >> should start, as my CTL below shows. >> > >> > What is "CTL"? >> > >> > PS. this would likely be better addressed on gdal-dev. Any ticket >> > should be filed in the GDAL Trac. >> > >> > http://trac.osgeo.org/gdal/ >> > >> > Best regards, >> > >> >> dset ^T126L28.grb >> >> title pac/sa/atlan sector: troposphere file >> >> undef 1e+20 >> >> dtype grib >> >> index ^T126L28.gmp >> >> xdef 161 linear -150.000015 0.937500 >> >> ydef 98 levels >> >> -61.246 -60.311 >> >> -59.376 -58.441 -57.506 -56.571 -55.636 -54.701 -53.766 -52.831 >> >> -51.896 -50.961 >> >> -50.026 -49.091 -48.156 -47.221 -46.286 -45.350 -44.415 -43.480 >> >> -42.545 -41.610 >> >> -40.675 -39.740 -38.805 -37.870 -36.935 -36.000 -35.065 -34.130 >> >> -33.195 -32.260 >> >> -31.325 -30.389 -29.454 -28.519 -27.584 -26.649 -25.714 -24.779 >> >> -23.844 -22.909 >> >> -21.974 -21.039 -20.104 -19.169 -18.234 -17.299 -16.364 -15.429 >> >> -14.493 -13.558 >> >> -12.623 -11.688 -10.753 -9.818 -8.883 -7.948 -7.013 -6.078 >> >> -5.143 -4.208 >> >> -3.273 -2.338 -1.403 -0.468 0.468 1.403 2.338 3.273 >> >> 4.208 5.143 >> >> 6.078 7.013 7.948 8.883 9.818 10.753 11.688 12.623 >> >> 13.558 14.493 >> >> 15.429 16.364 17.299 18.234 19.169 20.104 21.039 21.974 >> >> 22.909 23.844 >> >> 24.779 25.714 26.649 27.584 28.519 29.454 >> >> zdef 7 levels >> >> 1000 925 850 700 500 300 200 ===> set Z 1 ou 2 ou 3 ... ou 7 (GRADS) >> >> tdef 1 linear 6Z16may2009 6hr >> >> vars 15 >> >> psnm 0 2,102, 0, 0 SEA LEVEL PRESSURE [hPa] >> >> tsfc 0 187, 1, 0, 0 SURFACE TEMPERATURE [K] >> >> prec 0 61, 1, 0, 0 TOTAL PRECIPITATION [Kg/m2/day] >> >> cbnv 0 71, 3, 0, 0 CLOUD COVER [0-1] >> >> role 0 114, 8, 0, 0 OUTGOING LONG WAVE AT TOP [W/m2] >> >> mask 7 137,100 MASK [-/+] >> >> uvel 7 33,100 ZONAL WIND (U) [m/s] >> >> vvel 7 34,100 MERIDIONAL WIND (V) [m/s] >> >> omeg 7 39,100 OMEGA [Pa/s] >> >> fcor 7 35,100 STREAM FUNCTION [m2/s] >> >> potv 7 36,100 VELOCITY POTENTIAL [m2/s] >> >> zgeo 7 7,100 GEOPOTENTIAL HEIGHT [gpm] >> >> temp 7 11,100 ABSOLUTE TEMPERATURE [K] >> >> umrl 7 52,100 RELATIVE HUMIDITY [no Dim] >> >> umes 7 51,100 SPECIFIC HUMIDITY [kg/kg] >> >> endvars >> >> >> >> Can someone help me to find out what is happening? >> >> >> >> Tks a lot >> >> >> >> Roberto Garcia >> >> >> >> >> >> Frank Warmerdam wrote: >> >>> Roberto Garcia,MSc wrote: >> >>>> Hi, tks for the answers. >> >>>> >> >>>> According to my gdainfo output file attached, can anyone tell me >> >>>> what element could be a CLASSITEM? >> >>> >> >>> Roberto, >> >>> >> >>> In MapServer you always classify rasters based on the item [pixel] but >> >>> you do not need to explicitly state a classitem. >> >>> >> >>> This is a relatively simple example of raster classification. >> >>> >> >>> LAYER >> >>> NAME grid1 >> >>> TYPE raster >> >>> STATUS default >> >>> DATA data/float.tif >> >>> CLASS >> >>> NAME "red" >> >>> EXPRESSION ([pixel] < -3) >> >>> COLOR 255 0 0 >> >>> END >> >>> CLASS >> >>> NAME "green" >> >>> EXPRESSION ([pixel] >= -3 and [pixel] < 3) >> >>> COLOR 0 255 0 >> >>> END >> >>> CLASS >> >>> NAME "blue" >> >>> EXPRESSION ([pixel] >= 3) >> >>> COLOR 0 0 255 >> >>> END >> >>> END >> >>> >> >>>> I can see my grib using Grads but what tool do I use to translate >> >>>> individual bands into GeoTIFF? >> >>> >> >>> You can use gdal_translate to extract particular bands from a grib file >> >>> as a geotiff (or all the bands). For instance, the following would >> >>> extract band 3 (total precipitation): >> >>> >> >>> gdal_translate -b 3 T126L28.grb total_precip.tif >> >>> >> >>>> Converting the data on-the-fly to an image is the right way to work? >> >>> >> >>> Having MapServer access the grib file on the fly rather than depending >> >>> on pre-translated extracts will reduce data duplication and may help >> >>> avoid confusion about what is up to date. However, it is possible that >> >>> there will be a performance penalty for extracting directly from GRIB. >> >>> If so, it may not be significant enough to matter to you. >> >>> >> >>>> What are the problems with Apache if I do not do so? >> >>> >> >>> I don't see how either approach relates to Apache. It is a >> >>> data management and possibly performance issue with MapServer. >> >>> >> >>> Best regards, >> >> >> >> ------------------------------------------------------------------------ >> >> >> >> _______________________________________________ >> >> mapserver-users mailing list >> >> mapserver-users at lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > Jose Roberto M. Garcia, Msc Grupo Banco de Dados / CPTEC / INPE Fone: (12) 3186-8405 -- A luta contra o aquecimento global depende de cada um de n?s, fa?a sua parte, economize recursos naturais. -- http://www.cptec.inpe.br http://www.inpe.br From Steve.Lime at dnr.state.mn.us Thu May 21 13:39:27 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 21 May 2009 15:39:27 -0500 Subject: [mapserver-users] How to use the new templating mechanism (via WMS)? In-Reply-To: <1242921314.4679.3.camel@localhost> References: <1242921314.4679.3.camel@localhost> Message-ID: <4A1575AF.5157.008F.0@dnr.state.mn.us> I think the problem you're running into is that templated formats are not properly being made available via WMS. That's a different problem and most likely a bug as I bet that code knows nothing about the template driver. Can you create a ticket and we can try to address in 5.4.1? Steve >>> On 5/21/2009 at 10:55 AM, in message <1242921314.4679.3.camel at localhost>, Nicol Hermann wrote: > Dear list, > > can someone please share some code snippets how to use the new > templating mechanism? > (http://mapserver.org/development/rfc/ms-rfc-36.html) > My goal is to create a JOSN string from a getFeatureInfo Request > (mapserver version 5.2). > I understand that i have to create an outputformat which refers e.g. to > a JavaScript file. > What i do not understand is, how i approach this outputformat? > I followed the instructions in this posting > http://lists.osgeo.org/pipermail/mapserver-dev/2009-January/008168.html > and I tried to specify > &INFO_FORMAT=application/json& > in the GetFeatureInfo-Request but this leads to an exception. > > Any hints? > Thanks a lot > Nicol > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Thu May 21 15:16:28 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 21 May 2009 17:16:28 -0500 Subject: [mapserver-users] Upgrade to mapserver 5.4.0 In-Reply-To: <741023.92783.qm@web25902.mail.ukl.yahoo.com> References: <741023.92783.qm@web25902.mail.ukl.yahoo.com> Message-ID: <4A158C6C.5157.008F.0@dnr.state.mn.us> In terms of upgrading there are 3 things for sure to check: 1 - Make sure your mapfiles start with the token MAP. There can be whitespace and comments ahead of it but it *must* be the first token otherwise 2 - Same deal for symbol sets excepth the token is SYMBOLSET 3 - All MapServer templates (browse and query) must have in their first line the magic string "MapServer Template" (case doesn't matter). I typically put 'em in an comment (depending on format) so that an older version isn't bothered by the change and the output still displays correctly. You should be able to make those changes to your existing application and then upgrade. You may need other changes depending on what your starting version is. I can point you to the right docs if you let me know where you're coming from. Steve >>> On 5/19/2009 at 12:35 PM, in message <741023.92783.qm at web25902.mail.ukl.yahoo.com>, Hans Castorp wrote: > Hi to all, > > I would > like to upgrade an old ms4w installation to mapserver 5.4.0, but I don?t > know how to start. Any ideas, tutorial, etc?? > > Thanks in > advance. > > Hans Castorp > > > > From sarawut.map at gmail.com Thu May 21 17:32:46 2009 From: sarawut.map at gmail.com (Sarawut Ninsawat) Date: Fri, 22 May 2009 09:32:46 +0900 Subject: [mapserver-users] Get Pixel value of RASTER data using input geographic coordinate via WMS or WCS Message-ID: Hi list, I would like to get a raster pixel value using WMS or WCS connection. For example, 1 pixel value from 10 Modis image band. The value may be returned as xml or gml if possible. I know we can use GetFeatureInfo via WMS to get a value of pixel (of vector or raster). But the input x and y or is an image oriented not exactly geographic coordinate value. In case of WCS, GetCoverage allow to request data with a geographic coordinate. But I used to familiar with outputformat as Image file. Is there possible to use it and return as GML or text based? Please advise me for some hint, Sarawut -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan.lucena at pmldnet.com Thu May 21 19:27:56 2009 From: ivan.lucena at pmldnet.com (Ivan) Date: Thu, 21 May 2009 22:27:56 -0400 Subject: [mapserver-users] GRIB files - gdal_translate In-Reply-To: <4A15926B.7050704@cptec.inpe.br> References: <20090521144413.20476.qmail@s466.sureserver.com> <4A15926B.7050704@cptec.inpe.br> Message-ID: <4A160DAC.10609@pmldnet.com> Ol? Roberto, The file T126L28.ctl gives up the clue: -- xdef 161 linear *-150.000015* *0.937500* ydef 98 levels *-61.246* -60.311 -59.376 -58.441 -57.506 -56.571 -55.636 -54.701 -53.766 -52.831 -51.896 -50.961 -50.026 -49.091 -48.156 -47.221 -46.286 -45.350 -44.415 -43.480 -42.545 -41.610 -40.675 -39.740 -38.805 -37.870 -36.935 -36.000 -35.065 -34.130 -33.195 -32.260 -31.325 -30.389 -29.454 -28.519 -27.584 -26.649 -25.714 -24.779 -23.844 -22.909 -21.974 -21.039 -20.104 -19.169 -18.234 -17.299 -16.364 -15.429 -14.493 -13.558 -12.623 -11.688 -10.753 -9.818 -8.883 -7.948 -7.013 -6.078 -5.143 -4.208 -3.273 -2.338 -1.403 -0.468 0.468 1.403 2.338 3.273 4.208 5.143 6.078 7.013 7.948 8.883 9.818 10.753 11.688 12.623 13.558 14.493 15.429 16.364 17.299 18.234 19.169 20.104 21.039 21.974 22.909 23.844 24.779 25.714 26.649 27.584 28.519 *29.454* zdef 7 levels -- Whatever "ydef 98 levels" means, it looks like there is one Y ordinate for each one of the 98 rows. So your upper left and lower right values are in fact -150.0 -61.246 0.9375 29.454. I create a VRT file based on that: $ gdal_translate -of VRT T126L28.grb T126L28.vrt -a_ullr -150.0 -61.246 0.9375 29.454 And I opened it on QGIS and the image looks pretty good to me. See attachment. Since you don't want to convert the data to other format you can create VRTs and use then instead. DATA "c:/ms4w/data/raster/T126L28.vrt" Does it make sense? PT_BR: Revisando: Eu interpretei o arquivo .ctl, achei a extensao da imagem e criei arquivos vrt passando estes parametros. Agora quando eu abro o arquivo vrt os dados continuam sendo lidos do .grb mas com a descricao do vrt. Tente fazer o mesmo pra ver se resolve pra voce. (eu estudei no INPE :) Regards, Ivan -------------- next part -------------- A non-text attachment was scrubbed... Name: screenshot.png Type: image/png Size: 26612 bytes Desc: not available URL: From mapserver at geoworld.de Thu May 21 23:52:06 2009 From: mapserver at geoworld.de (Nicol Hermann) Date: Fri, 22 May 2009 08:52:06 +0200 Subject: [mapserver-users] How to use the new templating mechanism (via WMS)? In-Reply-To: <4A1575AF.5157.008F.0@dnr.state.mn.us> References: <1242921314.4679.3.camel@localhost> <4A1575AF.5157.008F.0@dnr.state.mn.us> Message-ID: <1242975126.4682.1.camel@localhost> Hello Steve, done http://trac.osgeo.org/mapserver/ticket/3024 It would be great to have it in 5.4.1 Thanks Nicol Am Donnerstag, den 21.05.2009, 15:39 -0500 schrieb Steve Lime: > I think the problem you're running into is that templated formats are not properly being made available > via WMS. That's a different problem and most likely a bug as I bet that code knows nothing about the > template driver. Can you create a ticket and we can try to address in 5.4.1? > > Steve > > >>> On 5/21/2009 at 10:55 AM, in message <1242921314.4679.3.camel at localhost>, Nicol > Hermann wrote: > > Dear list, > > > > can someone please share some code snippets how to use the new > > templating mechanism? > > (http://mapserver.org/development/rfc/ms-rfc-36.html) > > My goal is to create a JOSN string from a getFeatureInfo Request > > (mapserver version 5.2). > > I understand that i have to create an outputformat which refers e.g. to > > a JavaScript file. > > What i do not understand is, how i approach this outputformat? > > I followed the instructions in this posting > > http://lists.osgeo.org/pipermail/mapserver-dev/2009-January/008168.html > > and I tried to specify > > &INFO_FORMAT=application/json& > > in the GetFeatureInfo-Request but this leads to an exception. > > > > Any hints? > > Thanks a lot > > Nicol > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Baas at speerit.nl Fri May 22 04:38:34 2009 From: Baas at speerit.nl (Jelmer Baas) Date: Fri, 22 May 2009 13:38:34 +0200 Subject: [mapserver-users] Oracle Spatial and "styleitem auto" Message-ID: <68C97F84EAD0174799AC6FCEE219DEF2619B4B@batavia.Speerit.local> Hello List, Are there any plans to create a way for MapServer to automaticly apply a certain style to data retrieved from Oracle Spatial? For example by specifying a style column in the mapfile which contains a MapInfo style description? With kind regards, Jelmer Baas From pvoudouris at gaiocorp.com Fri May 22 06:20:56 2009 From: pvoudouris at gaiocorp.com (Pano Voudouris) Date: Fri, 22 May 2009 06:20:56 -0700 (PDT) Subject: [mapserver-users] Silverlight Interface for Mapserver In-Reply-To: <1242909854538-2951737.post@n2.nabble.com> References: <1241509375740-2791496.post@n2.nabble.com> <1242909854538-2951737.post@n2.nabble.com> Message-ID: <1242998456759-2957356.post@n2.nabble.com> Hi Anil, I am not sure what you are after here. If you want to see examples on how to use silverlight (either using c# or vb) a good place to start is: http://silverlight.net/GetStarted/ Hope this helps? Regards, Pano From: adhiman (via Nabble) [mailto:ml-user+226069-1989752231 at n2.nabble.com] Sent: 21 May 2009 15:44 To: Pano Voudouris Subject: Re: [mapserver-users] Silverlight Interface for Mapserver Hi, I have seen your application. It sounds great. I need a bit of clarity on this piece of application. How can we use mapscript C# with silverlight. Please let me know: Regards, Anil Dhiman *************************************************************************** Pano Voudouris wrote: Hi all, This is just for info in case anyone is interested and working with these technologies. We have created a silverlight front-end to Mapserver using mapscript c#. The "map serving" logic is based on the excellent "MapFlash Viewer Framework demo" done by Paolo Corti http://www.paolocorti.net/2006/10/26/mapflashviewer-framework and extended to include more functionality. On the other hand in our case it now focuses squarely on mapserver. The app was developed to be run either as a standalone, low-cost "webGIS" or as embedded 'map in app' in other web pages. (And yes - pages will need to be of the .NET flavour...) You can have a play at the demo at: http://193.92.131.105/slmapview Note though that the actual data is in greek!However assuming you do not have your browser set to Greek you should be able to see the rest of the app in English. Pano _____ This email is a reply to your post @ http://n2.nabble.com/Silverlight-Interface-for-Mapserver-tp2791496p2951737.h tml You can reply by email or by visting the link above. -- View this message in context: http://n2.nabble.com/Silverlight-Interface-for-Mapserver-tp2791496p2957356.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From danlittle at yahoo.com Fri May 22 06:57:36 2009 From: danlittle at yahoo.com (Dan Little) Date: Fri, 22 May 2009 06:57:36 -0700 (PDT) Subject: [mapserver-users] Oracle Spatial and "styleitem auto" In-Reply-To: <68C97F84EAD0174799AC6FCEE219DEF2619B4B@batavia.Speerit.local> References: <68C97F84EAD0174799AC6FCEE219DEF2619B4B@batavia.Speerit.local> Message-ID: <340193.40207.qm@web51412.mail.re2.yahoo.com> You could use separate classes to do that? ----- Original Message ---- > From: Jelmer Baas > To: mapserver-users at lists.osgeo.org > Sent: Friday, May 22, 2009 6:38:34 AM > Subject: [mapserver-users] Oracle Spatial and "styleitem auto" > > Hello List, > > Are there any plans to create a way for MapServer to automaticly apply a > certain style to data retrieved from Oracle Spatial? For example by > specifying a style column in the mapfile which contains a MapInfo style > description? > > With kind regards, > Jelmer Baas > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From sb.ray at hotmail.com Fri May 22 07:06:36 2009 From: sb.ray at hotmail.com (sunny74) Date: Fri, 22 May 2009 07:06:36 -0700 (PDT) Subject: [mapserver-users] display map on aspx page In-Reply-To: <1242891459271-2950701.post@n2.nabble.com> References: <1242891459271-2950701.post@n2.nabble.com> Message-ID: <1243001196126-2957638.post@n2.nabble.com> meenu wrote: > > hi friend check this link...may helpful for u.. > http://n2.nabble.com/how-can-i-create-mapserver-website-in-VS-2005-%28VB%29-td2516841.html#a2567804 > Thanks for your reply. I am trying to display a map using paolo corti's tutorial for the last 2 days but haven't succeeded so far yet. The latest error I am getting is that - msLoadMap(): Unable to access file IT is unable to access the map file. But If I put the map file URL directly in the browser the map is being displayed. It means that Apache is properly configured and running.The direct url which displays the map is http://localhost:8085/cgi-bin/mapserv.exe?mode=map&map=C:\ms4w\Apache\cgi-bin\INDIA\india.map What should be done so that the application finds the file and displays the map? If this happens it will be thru' server side code. I want to load map and do operations on it using client side javascript. I don't know how to access the mapserver DLL's through javascript. Pls help in this regard. -- View this message in context: http://n2.nabble.com/display-map-on-aspx-page-tp2950436p2957638.html Sent from the Mapserver - User mailing list archive at Nabble.com. From katslu1 at gmail.com Fri May 22 07:28:10 2009 From: katslu1 at gmail.com (Luke Kateregga) Date: Fri, 22 May 2009 17:28:10 +0300 Subject: [mapserver-users] display map on aspx page In-Reply-To: <1243001196126-2957638.post@n2.nabble.com> References: <1242891459271-2950701.post@n2.nabble.com> <1243001196126-2957638.post@n2.nabble.com> Message-ID: Hello there, Iam new to mapserver. I have installed mapserver plus the demo applications - chameleon, p_mapper etc and they are all working fine. The problem is I just cant load my own data. I've tried the mapserver generator in mapwindow, the qgis web plugin plus Amien in Arcmap but still no success. I am currently following Web Mapping Illustrated By Tyler Mitchell, working on his very first example of global.map, global.html. When I click start map server, I get a page with a blank portion, instead of the map itself. The gif however is created in the ms_tmp folder. How do I get to display the map in the browser? Can also anyone perhaps show me how I can import my own data into the already made applications like Pmapper or fusion? Thanks in advance _____________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From ericfrancois at hotmail.com Fri May 22 07:48:56 2009 From: ericfrancois at hotmail.com (Eric Francois) Date: Fri, 22 May 2009 16:48:56 +0200 Subject: [mapserver-users] Using Spot DIMAP Format in Mapserver Message-ID: Hello, I'm trying to use Dimap format from Spot Image( metadata.dim) in my mapfile but my raster is always bad located. METADATA.DIM opens directly in Qgis is well placed and well oriented. The correspondant IMAGERY.TIF is well placed but not well oriented. I'm not able to create the worldfile (pb to catch orientation info) for my tif file so I want to use directly dimap format but I don't understand why metadata.dim is not well interpreted by Mapserver. My Mapfile contains: TYPE RASTER DATA "country/METADATA.DIM" PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END Gdalinfo on IMAGERY.TIF: Driver: GTiff/GeoTIFF Files: IMAGERY.TIF Size is 3000, 3000 Coordinate System is: 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"]] Origin = (11.795597991857200,-4.699265933053320) Pixel Size = (0.000070782000000,-0.000070782000000) Metadata: AREA_OR_POINT=Point TIFFTAG_IMAGEDESCRIPTION=B3 B2 B1 B4 TIFFTAG_DATETIME=20090428 15:04:18 Image Structure Metadata: INTERLEAVE=BAND Corner Coordinates: Upper Left ( 11.7955980, -4.6992659) Lower Left ( 11.7955980, -4.9116119) Upper Right ( 12.0079440, -4.6992659) Lower Right ( 12.0079440, -4.9116119) Center ( 11.9017710, -4.8054389) Band 1 Block=3000x500 Type=Byte, ColorInterp=Red Band 2 Block=3000x500 Type=Byte, ColorInterp=Green Band 3 Block=3000x500 Type=Byte, ColorInterp=Blue Band 4 Block=3000x500 Type=Byte, ColorInterp=Undefined Gdalinfo on the METADATA.DIM of IMAGERY.TIF Driver: DIMAP/SPOT DIMAP Files: METADATA.DIM Size is 3000, 3000 Coordinate System is `' GCP Projection = GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298. 257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenw ich" ,0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EP SG", "9122"]],AUTHORITY["EPSG","4326"]] GCP[ 0]: Id=1, Info= (0.5,0.5) -> (11.795633,-4.699301,0) GCP[ 1]: Id=2, Info= (2999.5,0.5) -> (12.010877,-4.734618,0) GCP[ 2]: Id=3, Info= (0.5,2999.5) -> (11.745949,-4.913964,0) GCP[ 3]: Id=4, Info= (2999.5,2999.5) -> (11.961267,-4.949299,0) Metadata: JOB_ID=R2_CAT_090428123250353_1 PRODUCT_INFO=FORMOSAT-2 SCENE level 1A PRODUCT_TYPE=FORMOSAT-2 SCENE DATASET_PRODUCER_NAME=NSPO / Spot Image DATASET_PRODUCTION_DATE=2009-04-28 15:04:20.000000 GRID_REFERENCE=0067-0481 SHIFT_VALUE=0 IMAGING_DATE=2006-02-28 IMAGING_TIME=08:57:15.197455 MISSION=FORMOSAT MISSION_INDEX=2 INSTRUMENT=RSI INSTRUMENT_INDEX=1 IMAGING_MODE=MS SCENE_PROCESSING_LEVEL=0 VIEWING_ANGLE_ALONG_TRACK=0.273794 VIEWING_ANGLE_ACROSS_TRACK=-3.151896 SATELLITE_INCIDENCE_ANGLE=3.611694 SATELLITE_AZIMUTH_ANGLE=98.138828 SUN_AZIMUTH=98.126829 SUN_ELEVATION=52.988591 REVOLUTION_NUMBER=09085 PROCESSING_LEVEL=1A GEOMETRIC_PROCESSING=SYSTEM RADIOMETRIC_PROCESSING=SYSTEM Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 3000.0) Upper Right ( 3000.0, 0.0) Lower Right ( 3000.0, 3000.0) Center ( 1500.0, 1500.0) Band 1 Block=3000x500 Type=Byte, ColorInterp=Red Band 2 Block=3000x500 Type=Byte, ColorInterp=Green Band 3 Block=3000x500 Type=Byte, ColorInterp=Blue Band 4 Block=3000x500 Type=Byte, ColorInterp=Undefined Thanks for all ERIC From jmckenna at gatewaygeomatics.com Fri May 22 08:14:00 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 22 May 2009 11:14:00 -0400 Subject: [mapserver-users] display map on aspx page In-Reply-To: References: <1242891459271-2950701.post@n2.nabble.com> <1243001196126-2957638.post@n2.nabble.com> Message-ID: <4A16C138.5030500@gatewaygeomatics.com> Luke Kateregga wrote: > Hello there, > Iam new to mapserver. I have installed mapserver plus the demo > applications - chameleon, p_mapper etc and they are all working fine. > The problem is I just cant load my own data. I've tried the mapserver > generator in mapwindow, the qgis web plugin plus Amien in Arcmap but > still no success. I am currently following Web Mapping Illustrated By > Tyler Mitchell, working on his very first example of global.map, > global.html. When I click start map server, I get a page with a blank > portion, instead of the map itself. The gif however is created in the > ms_tmp folder. How do I get to display the map in the browser? > Can also anyone perhaps show me how I can import my own data into the > already made applications like Pmapper or fusion? > Thanks in advance Hello Luke, Welcome to the world of MapServer, I think you're going to love it. I think you should focus on your .map file first, and then worry about the applications later. To start with, you could go through the MapServer workshop[1] that is given every year at the FOSS4G conference - in that you will have access to data and working mapfiles. Also, test your mapfile using the shp2img commandline utility[2]. I would start with a small mapfile with only one layer, test it with shp2img, and once that single layer is showing in the resulting map image from that command, continue adding layers. That should get you going. If you ever get totally frustrated, there are providers out here to help, like myself, offering direct support services, so keep that in mind. Anyway good luck and have fun. -jeff [1] http://www.gatewaygeomatics.com/dl/mapserver-workshop/ms101_ms4w_package.zip [2] http://www.mapserver.org/utilities/shp2img.html -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From aeskreis at gmail.com Fri May 22 12:43:10 2009 From: aeskreis at gmail.com (Adam Eskreis) Date: Fri, 22 May 2009 15:43:10 -0400 Subject: [mapserver-users] Help with symbol layer Message-ID: Hello all. I have a question that may or may not have been answered before, but I can't seem to find anything on it. Is it possible with mapserver to make a symbol fill the entire area of a polygon feature? In other words, can I provide an image as the symbol, and have that symbol completely fill the polygon, regardless of the width and height dimensions of the image? Thank you, -Adam -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at ci.stpaul.mn.us Fri May 22 12:46:03 2009 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Fri, 22 May 2009 14:46:03 -0500 Subject: [mapserver-users] Help with symbol layer In-Reply-To: References: Message-ID: <4A16BAAB.163B.00A8.0@ci.stpaul.mn.us> Yes, see here. . . http://mapserver.org/mapfile/symbology/construction.html?highlight=symbol%20fill ( http://mapserver.org/mapfile/symbology/construction.html?highlight=symbol%20fill ) >>> Adam Eskreis wrote: Hello all. I have a question that may or may not have been answered before, but I can't seem to find anything on it. Is it possible with mapserver to make a symbol fill the entire area of a polygon feature? In other words, can I provide an image as the symbol, and have that symbol completely fill the polygon, regardless of the width and height dimensions of the image? Thank you, -Adam -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at ci.stpaul.mn.us Fri May 22 14:27:25 2009 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Fri, 22 May 2009 16:27:25 -0500 Subject: [mapserver-users] Help with symbol layer In-Reply-To: References: <4A16BAAB.163B.00A8.0@ci.stpaul.mn.us> Message-ID: <4A16D26D.163B.00A8.0@ci.stpaul.mn.us> Oh, well, that's slight different, you want to scale an image/symbol, to fit (once) in a closed polygon, right? That's harder to do (if at all), are all the polygons the same size, or variable in size. Are they the same aspect as th, height to width as the symbol? You may be able to scale on a attribute value if you have the size (width or height) as a attribute for example. SIZE [attributeValueFromDataSource] ## This uses the value in the attributes from the data source to size the symbol. Clipping the symbol to fit an irregular polygon will be another complication, unless you allow for repeating symbols (which is what I thought you were looking for originally. bobb >>> Adam Eskreis wrote: Ok, I read through this, and it was helpful, but i can't figure how to do exactly what I need. What I essentialy want to do is make the symbol act as though it were the "background image" of the polygon. No repeating, and stretched or compressed to fit, so that the entire image is viewable. Is somethign like this possible? -Adam On Fri, May 22, 2009 at 3:46 PM, Bob Basques wrote: Yes, see here. . . http://mapserver.org/mapfile/symbology/construction.html?highlight=symbol%20fill ( http://mapserver.org/mapfile/symbology/construction.html?highlight=symbol%20fill ) >>> Adam Eskreis wrote: Hello all. I have a question that may or may not have been answered before, but I can't seem to find anything on it. Is it possible with mapserver to make a symbol fill the entire area of a polygon feature? In other words, can I provide an image as the symbol, and have that symbol completely fill the polygon, regardless of the width and height dimensions of the image? Thank you, -Adam -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Fri May 22 15:30:26 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Sat, 23 May 2009 00:30:26 +0200 Subject: [mapserver-users] Oracle Spatial and "styleitem auto" In-Reply-To: <68C97F84EAD0174799AC6FCEE219DEF2619B4B@batavia.Speerit.local> References: <68C97F84EAD0174799AC6FCEE219DEF2619B4B@batavia.Speerit.local> Message-ID: Hi, If you are using OGR to access the Oracle Spatial data source, you could specify a valid OGR style string in the table by adding field with name: 'OGR_STYLE'. In this case OGR will extract the feature style automatically when using the STYLEITEM "AUTO" option with this OGR layer. For more information about the OGR feature style strings see: http://www.gdal.org/ogr/ogr_feature_style.html You could use ogr2ogr to transfer the feature styles between various data sources, see the document above. Best regards, Tamas 2009/5/22 Jelmer Baas > Hello List, > > Are there any plans to create a way for MapServer to automaticly apply a > certain style to data retrieved from Oracle Spatial? For example by > specifying a style column in the mapfile which contains a MapInfo style > description? > > With kind regards, > Jelmer Baas > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aeskreis at gmail.com Fri May 22 20:44:58 2009 From: aeskreis at gmail.com (Adam Eskreis) Date: Fri, 22 May 2009 23:44:58 -0400 Subject: [mapserver-users] Help with symbol layer In-Reply-To: <4A16D26D.163B.00A8.0@ci.stpaul.mn.us> References: <4A16BAAB.163B.00A8.0@ci.stpaul.mn.us> <4A16D26D.163B.00A8.0@ci.stpaul.mn.us> Message-ID: Thank you for your help so far Bob. Your suggestion gave me an idea. What I am doing now, I calculated the center point for each polygon, and inserted that geometry into the database table. I am now displaying the symbol centered on the polygon, however there is still the issue of sizing it properly. My idea is to write a stand alone program that will size the images properly depending on the polygon size. The problem of having a different image for every polygon is another story in itself, but I want to focus on getting just a few images in there first. Is it crazy to try to calculate what the screen pixel size of the bounding box surrounding the polygon, depending on scale, in order to resize the image to a size that will fit just right into the polygon? -Adam On Fri, May 22, 2009 at 5:27 PM, Bob Basques wrote: > Oh, well, that's slight different, you want to scale an image/symbol, to > fit (once) in a closed polygon, right? > > That's harder to do (if at all), are all the polygons the same size, or > variable in size. Are they the same aspect as th, height to width as the > symbol? > > You may be able to scale on a attribute value if you have the size (width > or height) as a attribute for example. > > SIZE [attributeValueFromDataSource] ## This uses the value in the > attributes from the data source to size the symbol. Clipping the symbol to > fit an irregular polygon will be another complication, unless you allow for > repeating symbols (which is what I thought you were looking for originally. > > bobb > > > > >>> Adam Eskreis wrote: > > Ok, I read through this, and it was helpful, but i can't figure how to do > exactly what I need. > > What I essentialy want to do is make the symbol act as though it were the > "background image" of the polygon. No repeating, and stretched or compressed > to fit, so that the entire image is viewable. > > Is somethign like this possible? > > -Adam > > On Fri, May 22, 2009 at 3:46 PM, Bob Basques > > > > wrote: > >> Yes, >> >> >> see here. . . >> >> >> >> * >> http://mapserver.org/mapfile/symbology/construction.html?highlight=symbol%20fill >> * >> >> >> >> >>> Adam Eskreis wrote: >> >> Hello all. >> >> I have a question that may or may not have been answered before, but I >> can't seem to find anything on it. >> >> Is it possible with mapserver to make a symbol fill the entire area of a >> polygon feature? In other words, can I provide an image as the symbol, and >> have that symbol completely fill the polygon, regardless of the width and >> height dimensions of the image? >> >> Thank you, >> >> -Adam >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pcorti at gmail.com Sat May 23 05:17:05 2009 From: pcorti at gmail.com (Paolo Corti) Date: Sat, 23 May 2009 05:17:05 -0700 (PDT) Subject: [mapserver-users] openlayers in vs2005 website In-Reply-To: <1242891289162-2950691.post@n2.nabble.com> References: <1242891289162-2950691.post@n2.nabble.com> Message-ID: <1243081025834-2961777.post@n2.nabble.com> meenu wrote: > > dears,i created one website using mapserver in vs2005 ...now i need to > know how can i do openlayers in this same website....is it possible?in > this same website i need to display one map with tooltip(hotspot) > information....for that purpose can anybody tell me how to bind open > layers in vs2005 website application? > if you use OpenLayer you need to expose your mapfile as a WMS or WFS, but if you have placed some business logic using mapscript in ASP .NET (ex to make joins, to selectively exclude features...) you wouldn't be able to use your code. Basically depends on what you want to perform with your app and MapServer best regards -- View this message in context: http://n2.nabble.com/openlayers-in-vs2005-website-tp2950691p2961777.html Sent from the Mapserver - User mailing list archive at Nabble.com. From richard.greenwood at gmail.com Sat May 23 09:59:47 2009 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Sat, 23 May 2009 10:59:47 -0600 Subject: [mapserver-users] Itemquery FILTERITEM Message-ID: Hello Jun, It is usually best to ask these type of questions on the MapServer Users mailing list. You can join here: http://www.mapserver.org/community/lists.html I have taken the liberty of forward your question to the list. Your question is very general. Can you explain exactly what problem you are having and give a compact example? Regards, Rich === original message from JunReyes === Hello Mr. Richard Greenwood, I am developing a tool for displaying health facilities in the Philippines. I am am having problem using FILTERITEM in MapServer. Searching the net i have found one of your inquiries which i too have encountered. I have just browsed the site you have created. Actually i am speechless of its capabilities. I don't like to bother you if you are busy or something. But i would like to seek assistance if you can still recall what you have done to progress from your problem previously. The link is: http://lists.gis.umn.edu/pipermail/mapserver-users/2003-January/000761.html Thank you for your time in reading my email. Any help would be deeply appreciated. Hope i hear from you soon. Thanks.. JunReyes P.S. I would also like to ask where you got the case 1 demo so i can also study it. -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From sb.ray at hotmail.com Sat May 23 23:58:21 2009 From: sb.ray at hotmail.com (sunny74) Date: Sat, 23 May 2009 23:58:21 -0700 (PDT) Subject: [mapserver-users] openlayers in vs2005 website In-Reply-To: <1243081025834-2961777.post@n2.nabble.com> References: <1242891289162-2950691.post@n2.nabble.com> <1243081025834-2961777.post@n2.nabble.com> Message-ID: <1243148301622-2964328.post@n2.nabble.com> Paolo Corti wrote: > > > > meenu wrote: >> >> dears,i created one website using mapserver in vs2005 ...now i need to >> know how can i do openlayers in this same website....is it possible?in >> this same website i need to display one map with tooltip(hotspot) >> information....for that purpose can anybody tell me how to bind open >> layers in vs2005 website application? >> > > if you use OpenLayer you need to expose your mapfile as a WMS or WFS, but > if you have placed some business logic using mapscript in ASP .NET (ex to > make joins, to selectively exclude features...) you wouldn't be able to > use your code. > Basically depends on what you want to perform with your app and MapServer > > best regards > > Hi Paolo, I am trying to use Mapserver to display map using your article for the last few days but without success.I am stuck with one error or another. Pls have a look at my post and reply: http://n2.nabble.com/display-map-on-aspx-page-td2950436.html#a2957638 http://n2.nabble.com/display-map-on-aspx-page-td2950436.html#a2957638 I want to use openlayers javascript library for doing operations like pan zoom, rectangular select,tooltip etc. Pls tell me in detail i.e step by step. I am looking for detailed guidance/support in respect of this map display and I am ready for alternative arrangement other than this forum. If you r ready for alternative arrangement pls let me know I shall give u my email id. Pls reply ASAP. -- View this message in context: http://n2.nabble.com/openlayers-in-vs2005-website-tp2950691p2964328.html Sent from the Mapserver - User mailing list archive at Nabble.com. From sb.ray at hotmail.com Sun May 24 00:03:06 2009 From: sb.ray at hotmail.com (sunny74) Date: Sun, 24 May 2009 00:03:06 -0700 (PDT) Subject: [mapserver-users] display map on aspx page In-Reply-To: <4A16C138.5030500@gatewaygeomatics.com> References: <1242891459271-2950701.post@n2.nabble.com> <1243001196126-2957638.post@n2.nabble.com> <4A16C138.5030500@gatewaygeomatics.com> Message-ID: <1243148586700-2964334.post@n2.nabble.com> Jeff McKenna wrote: > > Luke Kateregga wrote: >> Hello there, >> Iam new to mapserver. I have installed mapserver plus the demo >> applications - chameleon, p_mapper etc and they are all working fine. >> The problem is I just cant load my own data. I've tried the mapserver >> generator in mapwindow, the qgis web plugin plus Amien in Arcmap but >> still no success. I am currently following Web Mapping Illustrated By >> Tyler Mitchell, working on his very first example of global.map, >> global.html. When I click start map server, I get a page with a blank >> portion, instead of the map itself. The gif however is created in the >> ms_tmp folder. How do I get to display the map in the browser? >> Can also anyone perhaps show me how I can import my own data into the >> already made applications like Pmapper or fusion? >> Thanks in advance > > Hello Luke, > > Welcome to the world of MapServer, I think you're going to love it. > > I think you should focus on your .map file first, and then worry about > the applications later. To start with, you could go through the > MapServer workshop[1] that is given every year at the FOSS4G conference > - in that you will have access to data and working mapfiles. Also, test > your mapfile using the shp2img commandline utility[2]. I would start > with a small mapfile with only one layer, test it with shp2img, and once > that single layer is showing in the resulting map image from that > command, continue adding layers. > > That should get you going. If you ever get totally frustrated, there > are providers out here to help, like myself, offering direct support > services, so keep that in mind. > > Anyway good luck and have fun. > > -jeff > > > [1] > http://www.gatewaygeomatics.com/dl/mapserver-workshop/ms101_ms4w_package.zip > [2] http://www.mapserver.org/utilities/shp2img.html > > > -- > Jeff McKenna > FOSS4G Consulting and Training Services > http://www.gatewaygeomatics.com/ > > Hi Jeff, > > Could u pls look into my problem and help solve it. > I want to use openlayers with mapserver in ASP.NET 2.0/C# web application. > I am looking for detailed guidance/ support in this regard and i am ready > for alternative arrangement other than this forum. > If u r ready pls let me know. > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/display-map-on-aspx-page-tp2950436p2964334.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Baas at speerit.nl Sun May 24 08:15:08 2009 From: Baas at speerit.nl (Jelmer Baas) Date: Sun, 24 May 2009 17:15:08 +0200 Subject: [mapserver-users] Oracle Spatial and "styleitem auto" In-Reply-To: <340193.40207.qm@web51412.mail.re2.yahoo.com> References: <68C97F84EAD0174799AC6FCEE219DEF2619B4B@batavia.Speerit.local> <340193.40207.qm@web51412.mail.re2.yahoo.com> Message-ID: <68C97F84EAD0174799AC6FCEE219DEF2619B61@batavia.Speerit.local> Dan, Thank you for your reply, unfortunatly this is not an option due to the large ammount of different styles we (need to) use. Plus, with TAB or Shapefiles each filter slows down map rendering. Tamas, Thanks a lot! At the moment I'm using MapServers' own Oracle interface, but I'll switch to OGR and give it a shot. It looks exactly like what I need. Might I suggest adding a link to http://www.gdal.org/ogr/ogr_feature_style.html in some MapServer pages (even though it's technically an OGR thing, I think it's information that will benifit many more MapServer users). With kind regards, Jelmer Baas > -----Original Message----- > From: Dan Little [mailto:danlittle at yahoo.com] > Sent: vrijdag 22 mei 2009 15:58 > To: Jelmer Baas; mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Oracle Spatial and "styleitem auto" > > > You could use separate classes to do that? > > > > > ----- Original Message ---- > > From: Jelmer Baas > > To: mapserver-users at lists.osgeo.org > > Sent: Friday, May 22, 2009 6:38:34 AM > > Subject: [mapserver-users] Oracle Spatial and "styleitem auto" > > > > Hello List, > > > > Are there any plans to create a way for MapServer to > automaticly apply a > > certain style to data retrieved from Oracle Spatial? For example by > > specifying a style column in the mapfile which contains a > MapInfo style > > description? > > > > With kind regards, > > Jelmer Baas > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > From Baas at speerit.nl Sun May 24 12:22:32 2009 From: Baas at speerit.nl (Jelmer Baas) Date: Sun, 24 May 2009 21:22:32 +0200 Subject: [mapserver-users] Oracle Spatial and "styleitem auto" In-Reply-To: References: <68C97F84EAD0174799AC6FCEE219DEF2619B4B@batavia.Speerit.local> Message-ID: <68C97F84EAD0174799AC6FCEE219DEF2619B66@batavia.Speerit.local> Tamas, Thanks to your url I managed to get it working. The performance is way better than I hoped! The only thing that doesn't seem to work is linewidth for (poly)lines. The style PEN(w:8px,c:#FF6A00) still draws a 1 or 2 pixel line. I tried using cm, pt, etc, but that doesn't change anything. I don't have a style in my map file that overrides it, too (only a class with name and template). Any ideas? Or should I ask this question in a gdal/ogr list? Regards, Jelmer Baas ________________________________ From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: zaterdag 23 mei 2009 0:30 To: Jelmer Baas Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Oracle Spatial and "styleitem auto" Hi, If you are using OGR to access the Oracle Spatial data source, you could specify a valid OGR style string in the table by adding field with name: 'OGR_STYLE'. In this case OGR will extract the feature style automatically when using the STYLEITEM "AUTO" option with this OGR layer. For more information about the OGR feature style strings see: http://www.gdal.org/ogr/ogr_feature_style.html You could use ogr2ogr to transfer the feature styles between various data sources, see the document above. Best regards, Tamas 2009/5/22 Jelmer Baas Hello List, Are there any plans to create a way for MapServer to automaticly apply a certain style to data retrieved from Oracle Spatial? For example by specifying a style column in the mapfile which contains a MapInfo style description? With kind regards, Jelmer Baas -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Sun May 24 13:34:13 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Sun, 24 May 2009 22:34:13 +0200 Subject: [mapserver-users] Oracle Spatial and "styleitem auto" In-Reply-To: <68C97F84EAD0174799AC6FCEE219DEF2619B66@batavia.Speerit.local> References: <68C97F84EAD0174799AC6FCEE219DEF2619B4B@batavia.Speerit.local> <68C97F84EAD0174799AC6FCEE219DEF2619B66@batavia.Speerit.local> Message-ID: Yes, you should post this question to the gdal-dev list, hopefully Daniel could comment it. Best regards, Tamas 2009/5/24 Jelmer Baas > Tamas, > > Thanks to your url I managed to get it working. The performance is way > better than I hoped! The only thing that doesn't seem to work is linewidth > for (poly)lines. The style > PEN(w:8px,c:#FF6A00) still draws a 1 or 2 pixel line. I tried using cm, > pt, etc, but that doesn't change anything. > > I don't have a style in my map file that overrides it, too (only a class > with name and template). > > Any ideas? Or should I ask this question in a gdal/ogr list? > > Regards, > Jelmer Baas > > > ------------------------------ > *From:* Tamas Szekeres [mailto:szekerest at gmail.com] > *Sent:* zaterdag 23 mei 2009 0:30 > *To:* Jelmer Baas > *Cc:* mapserver-users at lists.osgeo.org > *Subject:* Re: [mapserver-users] Oracle Spatial and "styleitem auto" > > Hi, > > If you are using OGR to access the Oracle Spatial data source, you could > specify a valid OGR style string in the table by adding field with name: > 'OGR_STYLE'. > In this case OGR will extract the feature style automatically when using > the STYLEITEM "AUTO" option with this OGR layer. > > For more information about the OGR feature style strings see: > > http://www.gdal.org/ogr/ogr_feature_style.html > > You could use ogr2ogr to transfer the feature styles between various data > sources, see the document above. > > Best regards, > > Tamas > > > > > > 2009/5/22 Jelmer Baas > >> Hello List, >> >> Are there any plans to create a way for MapServer to automaticly apply a >> certain style to data retrieved from Oracle Spatial? For example by >> specifying a style column in the mapfile which contains a MapInfo style >> description? >> >> With kind regards, >> Jelmer Baas > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gonzalo at sepp0.com.ar Sun May 24 13:34:24 2009 From: gonzalo at sepp0.com.ar (Gonzalo Lionel Rodriguez) Date: Sun, 24 May 2009 17:34:24 -0300 Subject: [mapserver-users] P.MAPPER-ERROR Message-ID: Hi everyone... o customize my own .map and i have this error in pm_debug.log: ... [24-May-2009 15:30:03] P.MAPPER debug info P.MAPPER-ERROR: Layer/Group 'Pampa' not existing. Check '/config/config.ini' file definition for section 'defGroups'. [24-May-2009 15:30:03] P.MAPPER debug info P.MAPPER-ERROR: Layer/Group 'MontedeLlanurasyMesetas' not existing. Check '/config/config.ini' file definition for section 'defGroups'. [24-May-2009 15:30:03] P.MAPPER debug info P.MAPPER-ERROR: Layer/Group 'EstepaPatag?nica' not existing. Check '/config/config.ini' file definition for section 'defGroups'. ... I dont know whats wrong, any idea? Here is my config.ini ;========================================================================== ; ; LAYERS/GROUPS DEFINED MANUALLY ; ;========================================================================== ; ALL groups displayed in TOC in this order ; - without definition, the order from map file will be taken. ; - separated with commas ; if INI setting "useCategories = 1" (see below), ; then define the categories in php_config.php ; === RECOMMENDED === ;-------------------------------------------------------------------------- ;allGroups = Argentina, Hidrografia, Rutas, Departamentos, Presas ;allGroups = Im?genesdesat?lite, RecursosNaturales, RecursosNaturales, RecursosH?dricos, L?mitesadministrativos, L?mites administrativos, RecursosH?dricos, RecursosH?dricos, InfraestructuraVial, L?mitesadministrativos, RecursosNaturales, Altos, Puna, SelvaYungas, ChacoSeco, ChacoH?medo, SelvaParanense, EsterosdelIber?, CamposyMalezales, DeltaeIslasdelParan?, Espinal, Pampa, MontedeLlanurasyMesetas, EstepaPatag?nica, BosquesPatag?nicos, IslasdelAtl?nticoSur, MarArgentino, ParqueChaque?o, SelvaMisionera, SelvaTucumanoBoliviana, BosqueAndinoPatag?nico, Espinal, Monte, EspejosdeAgua, R?opermanente, R?otransitorio, Rutanacional, Rutaprovincial, Capitalprovincial, Cabeceradepartamental allGroups = Im?genesdesat?lite, RecursosNaturales, RecursosNaturales, RecursosH?dricos, L?mitesadministrativos, RecursosH?dricos, RecursosH?dricos, InfraestructuraVial, L?mitesadministrativos, RecursosNaturales ; Default Groups (visible at start) ; === RECOMMENDED === ;---------------------------------- ; defGroups = Argentina, Hidrografia, Rutas, Departamentos, Presas ;defGroups = Im?genes, de, sat?lite, Recursos, H?dricos, L?mites, administrativos, L?mites, administrativos, Recursos, H?dricos, Recursos, H?dricos, Infraestructura, Vial, L?mites, administrativos, Recursos, Naturales defGroups = Im?genesdesat?lite, RecursosNaturales, RecursosNaturales, RecursosH?dricos, L?mitesadministrativos, L?mites administrativos, RecursosH?dricos, RecursosH?dricos, InfraestructuraVial, L?mitesadministrativos, RecursosNaturales, Altos, Puna, SelvaYungas, ChacoSeco, ChacoH?medo, SelvaParanense, EsterosdelIber?, CamposyMalezales, DeltaeIslasdelParan?, Espinal, Pampa, MontedeLlanurasyMesetas, EstepaPatag?nica, BosquesPatag?nicos, IslasdelAtl?nticoSur, MarArgentino, ParqueChaque?o, SelvaMisionera, SelvaTucumanoBoliviana, BosqueAndinoPatag?nico, Espinal, Monte, EspejosdeAgua, R?opermanente, R?otransitorio, Rutanacional, Rutaprovincial, Capitalprovincial, Cabeceradepartamental, L?mites, administrativos, Altos, Puna, SelvaYungas, ChacoSeco, ChacoH?medo, SelvaParanense, EsterosdelIber?, CamposyMalezales, DeltaeIslasdelParan?, Espinal, Pampa, MontedeLlanurasyMesetas, EstepaPatag?nica, BosquesPatag?nicos, IslasdelAtl?nticoSur, MarArgentino, ParqueChaque?o, SelvaMisionera, SelvaTucumanoBoliviana, BosqueAndinoPatag?nico, Espinal, Monte, EspejosdeAgua, R?opermanente, R?otransitorio, Rutanacional, Rutaprovincial, Capitalprovincial, Cabeceradepartamental ; Groups/Layers that shall be mutually disabled ; if one is clicked, the other ones will be disabled ;------------------------------------------------------------- ;mutualDisableList = dem, jpl_wms_global_mosaic, corine ; Groups/Layers list where to use auto_identify(tooltip) function ; === OPTIONAL === ;----------------------------------------------------------------- ;autoIdentifyGroups = countries, cities ; Automatically refresh map when selection of ; layers/grouops has changed in TOC ;-------------------------------------------- layerAutoRefresh = 1 And a part of my .map MAP NAME "capas geogr?ficas b?sicas" STATUS ON EXTENT 1821800 3700000 5728200 7600000 SIZE 500 500 SHAPEPATH "/home/orsep/public_html/gis2/capas_geograficas_basicas/data" SYMBOLSET "/home/orsep/public_html/gis2/capas_geograficas_basicas/etc/symbols.sym" FONTSET "/home/orsep/public_html/gis2/capas_geograficas_basicas/etc/fonts.txt" IMAGETYPE png IMAGECOLOR 255 255 255 UNITS METERS WEB IMAGEPATH '/home/orsep/public_html/gis2/tmp/' IMAGEURL '/gis2/tmp/' END REFERENCE STATUS ON IMAGE "images/argentina.jpg" SIZE 80 132 EXTENT 2.75e+06 3.75e+06 5.1e+06 7.65e+06 COLOR -1 -1 -1 OUTLINECOLOR 255 153 0 MINBOXSIZE 3 MAXBOXSIZE 0 MARKER 0 MARKERSIZE 0 END QUERYMAP STATUS ON SIZE -1 -1 COLOR 255 222 73 STYLE SELECTED END LEGEND STATUS ON IMAGECOLOR 255 255 255 TRANSPARENT ON INTERLACE OFF POSITION LL KEYSIZE 15 9 KEYSPACING 5 0 TEMPLATE "/var/www/medioambiente/maplab/projects/gmf_apps/sian/legend_template.html" LABEL TYPE TRUETYPE FONT "fritqat" SIZE 6 MINSIZE 4 MAXSIZE 256 OFFSET 0 0 ANGLE 0.000000 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 0 ANTIALIAS TRUE PARTIALS TRUE FORCE FALSE END END SCALEBAR STATUS ON COLOR 205 205 205 OUTLINECOLOR 100 100 100 BACKGROUNDCOLOR 255 170 0 IMAGECOLOR 255 255 255 UNITS KILOMETERS INTERVALS 5 SIZE 220 4 STYLE 0 POSITION LC LABEL TYPE BITMAP SIZE TINY OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 0 PARTIALS TRUE FORCE FALSE END END OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE PC256 TRANSPARENT OFF END LAYER NAME "LANDSAT" GROUP "Im?genesdesat?lite" STATUS OFF DATA "mosaico_arg_georef.tif" # ok TYPE RASTER UNITS METERS SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS CLASS #NAME " " END # CLASS END LAYER NAME "Ecoregiones" GROUP "RecursosNaturales" STATUS ON DATA "eco_reg_gk3" TYPE POLYGON UNITS METERS SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS OFFSITE 0 0 0 TEMPLATE "../maplab/htdocs/mapbrowser/template/template.map" CLASS NAME "Altos" EXPRESSION ('[Ecorreg]' = 'Altos Andes') TEMPLATE "../maplab/htdocs/mapbrowser/template/template.map" STYLE SYMBOL 0 COLOR 249 239 236 OUTLINECOLOR 255 255 255 SIZE 1 MINSIZE 1 MAXSIZE 100 END END CLASS NAME "Puna" EXPRESSION ('[Ecorreg]' = 'Puna') TEMPLATE "../maplab/htdocs/mapbrowser/template/template.map" STYLE SYMBOL 0 COLOR 215 217 181 OUTLINECOLOR 255 255 255 SIZE 1 MINSIZE 1 MAXSIZE 100 END END CLASS NAME "M" EXPRESSION ('[Ecorreg]' = 'Monte de Sierras y Bolsones') TEMPLATE "../maplab/htdocs/mapbrowser/template/template.map" STYLE SYMBOL 0 COLOR 185 213 187 OUTLINECOLOR 255 255 255 SIZE 1 MINSIZE 1 MAXSIZE 100 END END CLASS NAME "SelvaYungas" EXPRESSION ('[Ecorreg]' = 'Selva de las Yungas') TEMPLATE "../maplab/htdocs/mapbrowser/template/template.map" STYLE SYMBOL 0 COLOR 237 239 228 OUTLINECOLOR 255 255 255 SIZE 1 MINSIZE 1 MAXSIZE 100 END END CLASS NAME "ChacoSeco" EXPRESSION ('[Ecorreg]' = 'Chaco Seco') TEMPLATE "../maplab/htdocs/mapbrowser/template/template.map" STYLE SYMBOL 0 COLOR 230 226 208 OUTLINECOLOR 255 255 255 SIZE 1 MINSIZE 1 MAXSIZE 100 END END CLASS NAME "ChacoH?medo" EXPRESSION ('[Ecorreg]' = 'Chaco H?medo') TEMPLATE "../maplab/htdocs/mapbrowser/template/template.map" STYLE SYMBOL 0 COLOR 248 240 231 OUTLINECOLOR 255 255 255 SIZE 1 MINSIZE 1 MAXSIZE 100 END END CLASS NAME "SelvaParanense" EXPRESSION ('[Ecorreg]' = 'Selva Paranense') TEMPLATE "../maplab/htdocs/mapbrowser/template/template.map" STYLE SYMBOL 0 COLOR 191 230 192 OUTLINECOLOR 255 255 255 SIZE 1 MINSIZE 1 MAXSIZE 100 END END ... Kind regards From Keith.Moss at landgate.wa.gov.au Sun May 24 18:37:45 2009 From: Keith.Moss at landgate.wa.gov.au (Keith Moss) Date: Mon, 25 May 2009 09:37:45 +0800 Subject: [mapserver-users] FastCGI & PHP MapScript Problem References: <82C223B25A75614D9F884563CE191C1406A24E55@MAIL.dli.wa.gov.au> Message-ID: <82C223B25A75614D9F884563CE191C1406A24E6A@MAIL.dli.wa.gov.au> Just replying to my own post with the solution/workaround we found. loadParams() looks for the query string in the CGI enviroment variables and parses them to fill the OWSRequest object. Now, for whatever reason our FastCGI setup didn't have the expected parameters and this was causing the process to die as explained in http://mapserver.org/ogc/mapscript.html#use-in-non-cgi-environments-mod-php-etc. So we are now just parsing the query string and manually filling the Request object. __________________________________ Keith Moss Satellite Remote Sensing Services Information Access Division Landgate 65 Brockway Road, FLOREAT WA 6014 PO Box 741 Wembley WA 6913 Ph. (08) 9387 0332 | Fx. (08) 9383 7142 keith.moss at landgate.wa.gov.au www.landgate.wa.gov.au ________________________________ From: mapserver-users-bounces at lists.osgeo.org on behalf of Keith Moss Sent: Tue 19/05/2009 13:12 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] FastCGI & PHP MapScript Problem Hi all, I've run into a problem with running PHP MapScript and FastCGI on a development server I've been setting up. It's a Windows Server 2003 box with IIS6 and I've installed MapServer 5.4 and PHP 5.2.9. I obtained the necessary dlls for PHP MapScript from the MS4W MapServer 5.4.0rc2 release. The FastCGI install is version 1.0 from iis.net. I tested the basic install before adding FastCGI and everything worked properly in my test file (a GetCapabilities request on a simple one image mapfile). I couldn't find any IIS-specific install instructions for FastCGI so I attempted to adapt the instructions given here for Apache: http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#f-fastcgi Running the GetCapabilities request again throws me the following 500 error: FastCGI Error The FastCGI Handler was unable to process the request. ________________________________ Error Details: * The FastCGI process exited unexpectedly * Error Number: -2147467259 (0x80004005). * Error Description: Unspecified error HTTP Error 500 - Server Error. Internet Information Services (IIS) I've reduced the problem to a simple test case that creates a request object and initialises it. loadparams(); ?> The loadparams() call is the source of the problem but I've been completely unable to find a solution. So far this is the only piece of code I can find that will cause the error. All other normal PHP operations and MapScript code that I've tried work without issue This one has me quite stumped, any help would be much appreciated. cheers __________________________________ Keith Moss Satellite Remote Sensing Services Landgate 65 Brockway Road, FLOREAT WA 6014 PO Box 741 Wembley WA 6913 Ph. (08) 9387 0332 | Fx. (08) 9383 7142 keith.moss at landgate.wa.gov.au www.landgate.wa.gov.au This e-mail and any files transmitted with it are intended only for the use of the addressee(s). It may contain information that is confidential and privileged, in which case neither is intended to be waived or lost by mistaken delivery to you. If you are not an intended recipient, any use, interference with, disclosure, distribution or copying of this material is unauthorised and prohibited. If you receive this e-mail in error, please notify the sender by return e-mail and delete the message and any attachments from your system. Unless specifically indicated, this e-mail does not constitute formal advice or commitment by the sender or the Western Australian Land Information Authority (Landgate). Information in this message not relating to the official business of Landgate shall be understood as neither given nor endorsed by it. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. Landgate's liability is limited to re-supplying affected attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: From windyhendras at gmail.com Sun May 24 21:37:57 2009 From: windyhendras at gmail.com (windyhs) Date: Sun, 24 May 2009 21:37:57 -0700 (PDT) Subject: [mapserver-users] scalebar in svg and template Message-ID: <1243226277784-2967966.post@n2.nabble.com> dear all i want to ask about mapserver 1. can mapserver showing the scalebar but in the svg format? i had already tried, but it didn't work. But if i changed the imagetype to gif or png, the scalebar show up. 2. i'm using template to show the map using the tag
. how can i show the imagefile rendered from mapserver but in the svg format? what should i change in the tag? note: i'm using tag from mapserver such as [img], etc. Thanks for your answer. Best Regard. (i had post this in the dev category and i also send this in the user category to get answer from this category. ) -- View this message in context: http://n2.nabble.com/scalebar-in-svg-and-template-tp2967966p2967966.html Sent from the Mapserver - User mailing list archive at Nabble.com. From hanscastorp76 at yahoo.es Mon May 25 02:06:44 2009 From: hanscastorp76 at yahoo.es (Hans Castorp) Date: Mon, 25 May 2009 09:06:44 +0000 (GMT) Subject: [mapserver-users] Upgrade to mapserver 5.4.0 Message-ID: <287324.69172.qm@web25904.mail.ukl.yahoo.com> Thanks for answering, Where I am finding problems is compilling the sources, it is possible to download precompilled binaries as for past versions? Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pal.kristensen at statkart.no Mon May 25 05:12:25 2009 From: pal.kristensen at statkart.no (paalkr) Date: Mon, 25 May 2009 05:12:25 -0700 (PDT) Subject: [mapserver-users] SV: Clipping out unprojectable area? In-Reply-To: References: <4990AFF5.1010107@hostgis.com> <20090209234047.GF25534@metacarta.com> <4990C85F.4030101@hostgis.com> <20090210010427.GH25534@metacarta.com> <499389FE.5020606@hostgis.com> <1242137936110-2869427.post@n2.nabble.com> Message-ID: <1243253545615-2969326.post@n2.nabble.com> Hi, thanks for the help! I tried your suggestion, but I didn't manage to get it to work correctly, this is what I did: Entered the following DATA statement: DATA "geometri from ( select geometri, * from general.country where ST_Intersection(geometri,GeomFromText('POLYGON((12 0,18 0,18 84,12 84,12 0))',4326)) ) AS country USING UNIQUE ogc_fid USING SRID=4326" but I then got the following error in the MapServer logfile: [Mon May 25 14:03:08 2009].185400 msPostGISLayerWhichShapes query: select encode(AsBinary(force_collection(force_2d("geometri")),'NDR'),'base64') as geom,"ogc_fid" from ( select geometri, * from general.country where ST_Intersection(geometri,GeomFromText('POLYGON((12 0,18 0,18 84,12 84,12 0))',4326)) ) AS country where geometri && GeomFromText('POLYGON((-5.89995617157446 59.7658748898858,-5.89995617157446 75.1604740311875,44.7675433183202 75.1604740311875,44.7675433183202 59.7658748898858,-5.89995617157446 59.7658748898858))',4326) [Mon May 25 14:03:08 2009].187786 msPostGISLayerWhichShapes query status: 7 [Mon May 25 14:03:08 2009].187807 msPostGISLayerWhichShapes(): Query error. Error (ERROR: argument of WHERE must be type boolean, not type geometry Anyone that can help with this? Regards, P?l Kristensen Espen.Messel wrote: > > Hi. > > You could try something like this: > > DATA "geometri from ( select geometri, * from general.country where > ST_Intersection(geometri,GeomFromText('POLYGON((12 0,18 0,18 84,12 84,12 > 0))',4326)) ) AS FOO USING UNIQUE ogc_fid USING SRID=4326" > > It's not very nice, but it works. > > Regards, > Espen > > ---------------------------------------------------------------------- > Espen Messel > > >> -----Opprinnelig melding----- >> Fra: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] P? vegne av paalkr >> Sendt: 12. mai 2009 16:19 >> Til: mapserver-users at lists.osgeo.org >> Emne: Re: [mapserver-users] Clipping out unprojectable area? >> >> >> Hi! >> >> I'm trying to achieve the same thing, but I need some hints >> on how to incorporate the spatial filter in the DATA >> statement. This is a snippet from my mapfile >> >> DATA "geometri from general.country USING UNIQUE >> ogc_fid USING SRID=4326" >> >> and this is the spatial filter i try to apply >> >> ST_Intersection(geometri,GeomFromText('POLYGON((12 0,18 >> 0,18 84,12 >> 84,12 0))',4326)) >> >> but I don't manage build the right the DATA statement! >> >> Can someone please help with the DATA statement? >> >> Regards, >> P?l Kristensen >> >> >> Gregor at HostGIS wrote: >> > >> > With some SQL know-how I did get the EPSG database merged >> with our own >> > spatial_ref_sys table (it has other mods for our uses, so this was >> > trivial) and our program generating >> ST_Intersection(the_geom) statements. >> > >> > This does work as expected, which is great. Thanks for >> another simple >> > and elegant solution, Christopher. >> > >> > Now to cope with some of our data having self-intersecting polygons >> > which break such operators... >> > >> > -- >> > Gregor Mosheh / Greg Allensworth BS, A+, Network+, >> Security+, Server+ >> > System Administrator, Lead Programmer >> > HostGIS development & hosting services, http://www.HostGIS.com/ >> > >> > "Remember that no one cares if you can back up, >> > only if you can restore." - AMANDA >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > >> >> >> ----- >> >> Regards, >> P?l Kristensen >> -- >> View this message in context: >> http://n2.nabble.com/Clipping-out-unprojectable-area--tp229984 > 7p2869427.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ----- Regards, P?l Kristensen -- View this message in context: http://n2.nabble.com/Clipping-out-unprojectable-area--tp2299847p2969326.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dmorissette at mapgears.com Mon May 25 05:20:57 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 25 May 2009 08:20:57 -0400 Subject: [mapserver-users] Oracle Spatial and "styleitem auto" In-Reply-To: <68C97F84EAD0174799AC6FCEE219DEF2619B66@batavia.Speerit.local> References: <68C97F84EAD0174799AC6FCEE219DEF2619B4B@batavia.Speerit.local> <68C97F84EAD0174799AC6FCEE219DEF2619B66@batavia.Speerit.local> Message-ID: <4A1A8D29.60109@mapgears.com> Jelmer Baas wrote: > Tamas, > > Thanks to your url I managed to get it working. The performance is way > better than I hoped! The only thing that doesn't seem to work is > linewidth for (poly)lines. The style > PEN(w:8px,c:#FF6A00) still draws a 1 or 2 pixel line. I tried using cm, > pt, etc, but that doesn't change anything. > MapServer needs a circle symbol to use as a brush to render thick lines. Try defining a symbol called "default-circle" in your symbolset, this symbol should be used to render thick lines. This is explained in the paragraph on "Line Thickness" at: http://mapserver.org/input/vector/ogr.html#mapping-of-ogr-style-info-to-the-mapserver-class-members A new WIDTH parameter has been added to the style object in recent releases that removes the need for the circular brush, but that's not supported yet by the STYLEITEM code... I'll need to add it. Daniel -- Daniel Morissette http://www.mapgears.com/ From jfalvarez at vesifront.org Wed May 20 18:40:50 2009 From: jfalvarez at vesifront.org (Juan Felipe Alvarez Saldarriaga) Date: Wed, 20 May 2009 20:40:50 -0500 Subject: [mapserver-users] MapServer 5.4.0 Buffer Overflow Error In-Reply-To: <61f49d0f0905200456k544a300dwbdf64535989d0213@mail.gmail.com> References: <61f49d0f0905192018gdcfe71eqd19b7d49b1b21015@mail.gmail.com> <75b4b93e0905192239i67bf5ba4lcb6fc43345a3108b@mail.gmail.com> <61f49d0f0905200456k544a300dwbdf64535989d0213@mail.gmail.com> Message-ID: <61f49d0f0905201840l8a53087yf69d9a5a56f93b0c@mail.gmail.com> Hey, I set the ubuntugis repo, but still, I got a overflow error, this is what I got on Ubuntu installed: ii libgdal1-1.6.0 1.6.1-1~jaunty Geospatial Data Abstraction Library ii mapserver-bin 5.4.0-2~jaunty MapServer utilities ii cgi-mapserver 5.4.0-2~jaunty CGI executable for MapServer ii proj 4.6.1-5~jaunty Cartographic projection filter and library I mean, I install all things from the PPA repo, but I still got the overflow :S, thx for any answer, this is the debug from shp2img shp2img -all_debug 3 -m /home/jfalvarez/projects/cms/branches/V1/docroot/map-files/9182340517c2d323061dc1cffea6e431.map HTTP: Starting to prepare HTTP requests. HTTP request: id=0, http://wms.jpl.nasa.gov/browse.cgi?wms_server=wms.cgi&LAYERS =BMNG&REQUEST=GetMap&SERVICE=WMS&FORMAT=image/jpeg&STYLES=&HEIGHT=600&VERSION=1. 1.1&SRS=EPSG:4326&WIDTH=800&BBOX=-94.0767946577629,-54.0575959933222,-1.92320534 223706,15.0575959933222&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inima ge HTTP: Before download loop msHTTPWriteFct(id=0, 852 bytes) HTTP: After download loop msHTTPExecuteRequests() timing summary per layer (connect_time + time_to_first_p acket + download_time = total_time in seconds) Layer 0: 0.169 + 0.248 + 0.271 = 0.688s msDrawRasterLayerLow(BMNG): entering. *** buffer overflow detected ***: shp2img terminated ======= Backtrace: ========= /lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb68bcda8] /lib/tls/i686/cmov/libc.so.6[0xb68baeb0] /lib/tls/i686/cmov/libc.so.6(__strcpy_chk+0x44)[0xb68ba184] shp2img(msDrawRasterLayerLow+0xd4d)[0x812905d] shp2img(msDrawRasterLayer+0x83)[0x80939b3] shp2img(msDrawLayer+0x483)[0x8094a33] shp2img(msDrawWMSLayerLow+0x598)[0x813cb08] shp2img(msDrawMap+0x807)[0x8096387] shp2img(main+0x912)[0x8067722] /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb67d5775] shp2img[0x8066d71] ======= Memory map: ======== 08048000-081ac000 r-xp 00000000 fd:00 201221 /usr/bin/shp2img 081ac000-081ad000 r--p 00163000 fd:00 201221 /usr/bin/shp2img 081ad000-081b0000 rw-p 00164000 fd:00 201221 /usr/bin/shp2img 081b0000-082c1000 rw-p 081b0000 00:00 0 [heap] b56ab000-b56b0000 r-xp 00000000 fd:00 98403 /lib/tls/i686/cmov/libnss_dns-2 .9.so b56b0000-b56b1000 r--p 00004000 fd:00 98403 /lib/tls/i686/cmov/libnss_dns-2 .9.so b56b1000-b56b2000 rw-p 00005000 fd:00 98403 /lib/tls/i686/cmov/libnss_dns-2 .9.so b56b2000-b56bc000 r-xp 00000000 fd:00 98405 /lib/tls/i686/cmov/libnss_files -2.9.so b56bc000-b56bd000 r--p 00009000 fd:00 98405 /lib/tls/i686/cmov/libnss_files -2.9.so b56bd000-b56be000 rw-p 0000a000 fd:00 98405 /lib/tls/i686/cmov/libnss_files -2.9.so b56be000-b56c3000 rw-p b56be000 00:00 0 b56c3000-b56c6000 r-xp 00000000 fd:00 49415 /lib/libgpg-error.so.0.3.0 b56c6000-b56c7000 rw-p 00002000 fd:00 49415 /lib/libgpg-error.so.0.3.0 b56c7000-b56cb000 r-xp 00000000 fd:00 199058 /usr/lib/libXdmcp.so.6.0.0 b56cb000-b56cc000 rw-p 00003000 fd:00 199058 /usr/lib/libXdmcp.so.6.0.0 b56cc000-b56ce000 r-xp 00000000 fd:00 197736 /usr/lib/libXau.so.6.0.0 b56ce000-b56cf000 r--p 00001000 fd:00 197736 /usr/lib/libXau.so.6.0.0 b56cf000-b56d0000 rw-p 00002000 fd:00 197736 /usr/lib/libXau.so.6.0.0 b56d0000-b56d2000 r-xp 00000000 fd:00 49292 /lib/libkeyutils-1.2.so b56d2000-b56d3000 r--p 00001000 fd:00 49292 /lib/libkeyutils-1.2.so b56d3000-b56d4000 rw-p 00002000 fd:00 49292 /lib/libkeyutils-1.2.so b56d4000-b56db000 r-xp 00000000 fd:00 198044 /usr/lib/libkrb5support.so.0.1 b56db000-b56dc000 r--p 00006000 fd:00 198044 /usr/lib/libkrb5support.so.0.1 b56dc000-b56dd000 rw-p 00007000 fd:00 198044 /usr/lib/libkrb5support.so.0.1 b56dd000-b56de000 rw-p b56dd000 00:00 0 b56de000-b5700000 r-xp 00000000 fd:00 197986 /usr/lib/libk5crypto.so.3.1 b5700000-b5701000 r--p 00022000 fd:00 197986 /usr/lib/libk5crypto.so.3.1 b5701000-b5702000 rw-p 00023000 fd:00 197986 /usr/lib/libk5crypto.so.3.1 b5702000-b5718000 r-xp 00000000 fd:00 197574 /usr/lib/libsasl2.so.2.0.22 b5718000-b5719000 r--p 00015000 fd:00 197574 /usr/lib/libsasl2.so.2.0.22 b5719000-b571a000 rw-p 00016000 fd:00 197574 /usr/lib/libsasl2.so.2.0.22 b571a000-b572c000 r-xp 00000000 fd:00 98435 /lib/tls/i686/cmov/libresolv-2. 9.so b572c000-b572d000 r--p 00011000 fd:00 98435 /lib/tls/i686/cmov/libresolv-2. 9.so b572d000-b572e000 rw-p 00012000 fd:00 98435 /lib/tls/i686/cmov/libresolv-2. 9.so b572e000-b5730000 rw-p b572e000 00:00 0 b5730000-b5732000 r-xp 00000000 fd:00 49185 /lib/libcom_err.so.2.1 b5732000-b5733000 r--p 00001000 fd:00 49185 /lib/libcom_err.so.2.1 b5733000-b5734000 rw-p 00002000 fd:00 49185 /lib/libcom_err.so.2.1 b5734000-b57c3000 r-xp 00000000 fd:00 197990 /usr/lib/libkrb5.so.3.3 b57c3000-b57c5000 r--p 0008e000 fd:00 197990 /usr/lib/libkrb5.so.3.3 b57c5000-b57c6000 rw-p 00090000 fd:00 197990 /usr/lib/libkrb5.so.3.3 b57c6000-b57c7000 rw-p b57c6000 00:00 0 b57c7000-b58fa000 r-xp 00000000 fd:00 49509 /lib/i686/cmov/libcrypto.so.0.9 .8 b58fa000-b5902000 r--p 00132000 fd:00 49509 /lib/i686/cmov/libcrypto.so.0.9 .8 b5902000-b590f000 rw-p 0013a000 fd:00 49509 /lib/i686/cmov/libcrypto.so.0.9 .8 b590f000-b5913000 rw-p b590f000 00:00 0 b5913000-b5955000 r-xp 00000000 fd:00 49512 /lib/i686/cmov/libssl.so.0.9.8 b5955000-b5956000 r--p 00041000 fd:00 49512 /lib/i686/cmov/libssl.so.0.9.8 b5956000-b5959000 rw-p 00042000 fd:00 49512 /lib/i686/cmov/libssl.so.0.9.8 b5959000-b642f000 r--p 00000000 fd:00 198175 /usr/lib/libicudata.so.38.1 b642f000-b6430000 r--p 00ad5000 fd:00 198175 /usr/lib/libicudata.so.38.1 b6430000-b654d000 r-xp 00000000 fd:00 200522 /usr/lib/libicuuc.so.38.1 b654d000-b654e000 ---p 0011d000 fd:00 200522 /usr/lib/libicuuc.so.38.1 b654e000-b6556000 r--p 0011d000 fd:00 200522 /usr/lib/libicuuc.so.38.1 b6556000-b6557000 rw-p 00125000 fd:00 200522 /usr/lib/libicuuc.so.38.1 b6557000-b6559000 rw-p b6557000 00:00 0 b6559000-b656e000 r-xp 00000000 fd:00 98398 /lib/tls/i686/cmov/libnsl-2.9.s o b656e000-b656f000 r--p 00014000 fd:00 98398 /lib/tls/i686/cmov/libnsl-2.9.s o b656f000-b6570000 rw-p 00015000 fd:00 98398 /lib/tls/i686/cmov/libnsl-2.9.s o b6570000-b6573000 rw-p b6570000 00:00 0 b6573000-b657c000 r-xp 00000000 fd:00 98354 /lib/tls/i686/cmov/libcrypt-2.9 .so b657c000-b657d000 r--p 00008000 fd:00 98354 /lib/tls/i686/cmov/libcrypt-2.9 .so b657d000-b657e000 rw-p 00009000 fd:00 98354 /lib/tls/i686/cmov/libcrypt-2.9 .so b657e000-b65a5000 rw-p b657e000 00:00 0 b65a5000-b660b000 r-xp 00000000 fd:00 49280 /lib/libgcrypt.so.11.4.4 b660b000-b660c000 r--p 00065000 fd:00 49280 /lib/libgcrypt.so.11.4.4 b660c000-b660e000 rw-p 00066000 fd:00 49280 /lib/libgcrypt.so.11.4.4 b660e000-b661e000 r-xp 00000000 fd:00 196657 /usr/lib/libtasn1.so.3.0.16 b661e000-b661f000 r--p 0000f000 fd:00 196657 /usr/lib/libtasn1.so.3.0.16 b661f000-b6620000 rw-p 00010000 fd:00 196657 /usr/lib/libtasn1.so.3.0.16 b6620000-b6627000 r-xp 00000000 fd:00 197048 /usr/lib/libltdl.so.7.2.0 b6627000-b6628000 r--p 00006000 fd:00 197048 /usr/lib/libltdl.so.7.2.0 b6628000-b6629000 rw-p 00007000 fd:00 197048 /usr/lib/libltdl.so.7.2.0 b6629000-b6763000 r-xp 00000000 fd:00 197720 /usr/lib/libgeos-3.1.0.so b6763000-b6767000 r--p 00139000 fd:00 197720 /usr/lib/libgeos-3.1.0.so b6767000-b6768000 rw-p 0013d000 fd:00 197720 /usr/lib/libgeos-3.1.0.so b6768000-b6769000 rw-p b6768000 00:00 0 b6769000-b6781000 r-xp 00000000 fd:00 199065 /usr/lib/libxcb.so.1.1.0 b6781000-b6782000 r--p 00017000 fd:00 199065 /usr/lib/libxcb.so.1.1.0 b6782000-b6783000 rw-p 00018000 fd:00 199065 /usr/lib/libxcb.so.1.1.0 b6783000-b67ae000 r-xp 00000000 fd:00 196744 /usr/lib/libfontconfig.so.1.3.0 b67ae000-b67af000 r--p 0002a000 fd:00 196744 /usr/lib/libfontconfig.so.1.3.0 b67af000-b67b0000 rw-p 0002b000 fd:00 196744 /usr/lib/libfontconfig.so.1.3.0 b67b0000-b67bd000 r-xp 00000000 fd:00 49222 /lib/libgcc_s.so.1 b67bd000-b67be000 r--p 0000c000 fd:00 49222 /lib/libgcc_s.so.1 b67be000-b67bf000 rw-p 0000d000 fd:00 49222 /lib/libgcc_s.so.1 b67bf000-b691b000 r-xp 00000000 fd:00 98338 /lib/tls/i686/cmov/libc-2.9.so b691b000-b691c000 ---p 0015c000 fd:00 98338 /lib/tls/i686/cmov/libc-2.9.so b691c000-b691e000 r--p 0015c000 fd:00 98338 /lib/tls/i686/cmov/libc-2.9.so b691e000-b691f000 rw-p 0015e000 fd:00 98338 /lib/tls/i686/cmov/libc-2.9.so b691f000-b6922000 rw-p b691f000 00:00 0 b6922000-b6a06000 r-xp 00000000 fd:00 198979 /usr/lib/libstdc++.so.6.0.10 b6a06000-b6a0a000 r--p 000e3000 fd:00 198979 /usr/lib/libstdc++.so.6.0.10 b6a0a000-b6a0b000 rw-p 000e7000 fd:00 198979 /usr/lib/libstdc++.so.6.0.10 b6a0b000-b6a12000 rw-p b6a0b000 00:00 0 b6a12000-b6a36000 r-xp 00000000 fd:00 98378 /lib/tls/i686/cmov/libm-2.9.so b6a36000-b6a37000 r--p 00023000 fd:00 98378 /lib/tls/i686/cmov/libm-2.9.so b6a37000-b6a38000 rw-p 00024000 fd:00 98378 /lib/tls/i686/cmov/libm-2.9.so b6a38000-b6b6d000 r-xp 00000000 fd:00 197244 /usr/lib/libxml2.so.2.6.32 b6b6d000-b6b6e000 ---p 00135000 fd:00 197244 /usr/lib/libxml2.so.2.6.32 b6b6e000-b6b72000 r--p 00135000 fd:00 197244 /usr/lib/libxml2.so.2.6.32 b6b72000-b6b73000 rw-p 00139000 fd:00 197244 /usr/lib/libxml2.so.2.6.32 b6b73000-b6b74000 rw-p b6b73000 00:00 0 b6b74000-b6b7c000 r-xp 00000000 fd:00 200557 /usr/lib/libfcgi.so.0.0.0 b6b7c000-b6b7d000 rw-p 00008000 fd:00 200557 /usr/lib/libfcgi.so.0.0.0 b6b7d000-b6d1c000 r-xp 00000000 fd:00 197497 /usr/lib/libmysqlclient.so.15.0 .0 b6d1c000-b6d1f000 r--p 0019e000 fd:00 197497 /usr/lib/libmysqlclient.so.15.0 .0 b6d1f000-b6d5f000 rw-p 001a1000 fd:00 197497 /usr/lib/libmysqlclient.so.15.0 .0 b6d5f000-b6d60000 rw-p b6d5f000 00:00 0 b6d60000-b6df7000 r-xp 00000000 fd:00 201145 /usr/lib/libgnutls.so.26.4.6 b6df7000-b6dfc000 r--p 00097000 fd:00 201145 /usr/lib/libgnutls.so.26.4.6 b6dfc000-b6dfd000 rw-p 0009c000 fd:00 201145 /usr/lib/libgnutls.so.26.4.6 b6dfd000-b6e26000 r-xp 00000000 fd:00 197192 /usr/lib/libgssapi_krb5.so.2.2 b6e26000-b6e27000 r--p 00028000 fd:00 197192 /usr/lib/libgssapi_krb5.so.2.2 b6e27000-b6e28000 rw-p 00029000 fd:00 197192 /usr/lib/libgssapi_krb5.so.2.2 b6e28000-b6e29000 rw-p b6e28000 00:00 0 b6e29000-b6e69000 r-xp 00000000 fd:00 198528 /usr/lib/libldap_r-2.4.so.2.4.1 b6e69000-b6e6a000 ---p 00040000 fd:00 198528 /usr/lib/libldap_r-2.4.so.2.4.1 b6e6a000-b6e6b000 r--p 00040000 fd:00 198528 /usr/lib/libldap_r-2.4.so.2.4.1 b6e6b000-b6e6c000 rw-p 00041000 fd:00 198528 /usr/lib/libldap_r-2.4.so.2.4.1 b6e6c000-b6e6d000 rw-p b6e6c000 00:00 0 b6e6d000-b6e79000 r-xp 00000000 fd:00 198526 /usr/lib/liblber-2.4.so.2.4.1 b6e79000-b6e7a000 r--p 0000b000 fd:00 198526 /usr/lib/liblber-2.4.so.2.4.1 b6e7a000-b6e7b000 rw-p 0000c000 fd:00 198526 /usr/lib/liblber-2.4.so.2.4.1 b6e7b000-b6eab000 r-xp 00000000 fd:00 197174 /usr/lib/libidn.so.11.5.39 b6eab000-b6eac000 ---p 00030000 fd:00 197174 /usr/lib/libidn.so.11.5.39 b6eac000-b6ead000 r--p 00030000 fd:00 197174 /usr/lib/libidn.so.11.5.39 b6ead000-b6eae000 rw-p 00031000 fd:00 197174 /usr/lib/libidn.so.11.5.39 b6eae000-b6ee7000 r-xp 00000000 fd:00 201911 /usr/lib/libcurl-gnutls.so.4.1. 0 b6ee7000-b6ee8000 r--p 00038000 fd:00 201911 /usr/lib/libcurl-gnutls.so.4.1. 0 b6ee8000-b6ee9000 rw-p 00039000 fd:00 201911 /usr/lib/libcurl-gnutls.so.4.1. 0 b6ee9000-b6eeb000 r-xp 00000000 fd:00 98374 /lib/tls/i686/cmov/libdl-2.9.so b6eeb000-b6eec000 r--p 00001000 fd:00 98374 /lib/tls/i686/cmov/libdl-2.9.so b6eec000-b6eed000 rw-p 00002000 fd:00 98374 /lib/tls/i686/cmov/libdl-2.9.so b6eed000-b6eee000 rw-p b6eed000 00:00 0 b6eee000-b6ef5000 r-xp 00000000 fd:00 98436 /lib/tls/i686/cmov/librt-2.9.so b6ef5000-b6ef6000 r--p 00006000 fd:00 98436 /lib/tls/i686/cmov/librt-2.9.so b6ef6000-b6ef7000 rw-p 00007000 fd:00 98436 /lib/tls/i686/cmov/librt-2.9.so b6ef7000-b6f16000 r-xp 00000000 fd:00 198177 /usr/lib/libpq.so.5.1 b6f16000-b6f17000 r--p 0001e000 fd:00 198177 /usr/lib/libpq.so.5.1 b6f17000-b6f18000 rw-p 0001f000 fd:00 198177 /usr/lib/libpq.so.5.1 b6f18000-b6f47000 r-xp 00000000 fd:00 196821 /usr/lib/libnetcdf.so.4.0.0 b6f47000-b6f48000 rw-p 0002e000 fd:00 196821 /usr/lib/libnetcdf.so.4.0.0 b6f48000-b6f49000 rw-p b6f48000 00:00 0 b6f49000-b6f50000 r-xp 00000000 fd:00 199094 /usr/lib/libgif.so.4.1.6 b6f50000-b6f51000 r--p 00006000 fd:00 199094 /usr/lib/libgif.so.4.1.6 b6f51000-b6f52000 rw-p 00007000 fd:00 199094 /usr/lib/libgif.so.4.1.6 b6f52000-b6f6e000 r-xp 00000000 fd:00 198859 /usr/lib/libogdi.so.3.2 b6f6e000-b6f6f000 r--p 0001b000 fd:00 198859 /usr/lib/libogdi.so.3.2 b6f6f000-b6f70000 rw-p 0001c000 fd:00 198859 /usr/lib/libogdi.so.3.2 b6f70000-b6fec000 r-xp 00000000 fd:00 197865 /usr/lib/libdf.so.4.1r4 b6fec000-b6fed000 r--p 0007c000 fd:00 197865 /usr/lib/libdf.so.4.1r4 b6fed000-b6fef000 rw-p 0007d000 fd:00 197865 /usr/lib/libdf.so.4.1r4 b6fef000-b7018000 rw-p b6fef000 00:00 0 b7018000-b703a000 r-xp 00000000 fd:00 197866 /usr/lib/libmfhdf.so.4.1r4 b703a000-b703b000 r--p 00021000 fd:00 197866 /usr/lib/libmfhdf.so.4.1r4 b703b000-b703c000 rw-p 00022000 fd:00 197866 /usr/lib/libmfhdf.so.4.1r4 b703c000-b703d000 rw-p b703c000 00:00 0 b703d000-b716b000 r-xp 00000000 fd:00 197869 /usr/lib/libhdf5-1.6.6.so.0.0.0 b716b000-b716c000 r--p 0012e000 fd:00 197869 /usr/lib/libhdf5-1.6.6.so.0.0.0 b716c000-b716e000 rw-p 0012f000 fd:00 197869 /usr/lib/libhdf5-1.6.6.so.0.0.0 b716e000-b716f000 rw-p b716e000 00:00 0 b716f000-b71b4000 r-xp 00000000 fd:00 198197 /usr/lib/libjasper.so.1.0.0 b71b4000-b71b5000 r--p 00044000 fd:00 198197 /usr/lib/libjasper.so.1.0.0 b71b5000-b71b8000 rw-p 00045000 fd:00 198197 /usr/lib/libjasper.so.1.0.0 b71b8000-b71be000 rw-p b71b8000 00:00 0 b71be000-b71d3000 r-xp 00000000 fd:00 98434 /lib/tls/i686/cmov/libpthread-2 .9.so b71d3000-b71d4000 r--p 00014000 fd:00 98434 /lib/tls/i686/cmov/libpthread-2 .9.so b71d4000-b71d5000 rw-p 00015000 fd:00 98434 /lib/tls/i686/cmov/libpthread-2 .9.so b71d5000-b71d7000 rw-p b71d5000 00:00 0 b71d7000-b7560000 r-xp 00000000 fd:00 198036 /usr/lib/libxerces-c.so.28.0 b7560000-b756e000 r--p 00388000 fd:00 198036 /usr/lib/libxerces-c.so.28.0 b756e000-b7590000 rw-p 00396000 fd:00 198036 /usr/lib/libxerces-c.so.28.0 b7590000-b7591000 rw-p b7590000 00:00 0 b7591000-b75b5000 r-xp 00000000 fd:00 199031 /usr/lib/libexpat.so.1.5.2 b75b5000-b75b7000 r--p 00023000 fd:00 199031 /usr/lib/libexpat.so.1.5.2 b75b7000-b75b8000 rw-p 00025000 fd:00 199031 /usr/lib/libexpat.so.1.5.2 b75b8000-b75c3000 r-xp 00000000 fd:00 197050 /usr/lib/libodbcinst.so.1.0.0 b75c3000-b75c4000 r--p 0000a000 fd:00 197050 /usr/lib/libodbcinst.so.1.0.0 b75c4000-b75c5000 rw-p 0000b000 fd:00 197050 /usr/lib/libodbcinst.so.1.0.0 b75c5000-b7627000 r-xp 00000000 fd:00 200524 /usr/lib/libodbc.so.1.0.0 b7627000-b7628000 r--p 00061000 fd:00 200524 /usr/lib/libodbc.so.1.0.0 b7628000-b762c000 rw-p 00062000 fd:00 200524 /usr/lib/libodbc.so.1.0.0 b762c000-b76a9000 r-xp 00000000 fd:00 198741 /usr/lib/libsqlite3.so.0.8.6 b76a9000-b76aa000 r--p 0007d000 fd:00 198741 /usr/lib/libsqlite3.so.0.8.6 b76aa000-b76ab000 rw-p 0007e000 fd:00 198741 /usr/lib/libsqlite3.so.0.8.6 b76ab000-b76bd000 r-xp 00000000 fd:00 197993 /usr/lib/libgeos_c.so.1.5.0 b76bd000-b76be000 r--p 00011000 fd:00 197993 /usr/lib/libgeos_c.so.1.5.0 b76be000-b76bf000 rw-p 00012000 fd:00 197993 /usr/lib/libgeos_c.so.1.5.0 b76bf000-b7ca8000 r-xp 00000000 fd:00 201189 /usr/lib/libgdal1.6.0.so.1.13.1 b7ca8000-b7cbe000 r--p 005e8000 fd:00 201189 /usr/lib/libgdal1.6.0.so.1.13.1 b7cbe000-b7d27000 rw-p 005fe000 fd:00 201189 /usr/lib/libgdal1.6.0.so.1.13.1 b7d27000-b7d6b000 rw-p b7d27000 00:00 0 b7d6b000-b7d9d000 r-xp 00000000 fd:00 197767 /usr/lib/libproj.so.0.5.5 b7d9d000-b7d9e000 r--p 00031000 fd:00 197767 /usr/lib/libproj.so.0.5.5 b7d9e000-b7da0000 rw-p 00032000 fd:00 197767 /usr/lib/libproj.so.0.5.5 b7da0000-b7e8a000 r-xp 00000000 fd:00 199062 /usr/lib/libX11.so.6.2.0 b7e8a000-b7e8b000 ---p 000ea000 fd:00 199062 /usr/lib/libX11.so.6.2.0 b7e8b000-b7e8c000 r--p 000ea000 fd:00 199062 /usr/lib/libX11.so.6.2.0 b7e8c000-b7e8e000 rw-p 000eb000 fd:00 199062 /usr/lib/libX11.so.6.2.0 b7e8e000-b7e8f000 rw-p b7e8e000 00:00 0 b7e8f000-b7e9e000 r-xp 00000000 fd:00 197079 /usr/lib/libXpm.so.4.11.0 b7e9e000-b7e9f000 rw-p 0000f000 fd:00 197079 /usr/lib/libXpm.so.4.11.0 b7e9f000-b7eb3000 r-xp 00000000 fd:00 49250 /lib/libz.so.1.2.3.3 b7eb3000-b7eb4000 r--p 00013000 fd:00 49250 /lib/libz.so.1.2.3.3 b7eb4000-b7eb5000 rw-p 00014000 fd:00 49250 /lib/libz.so.1.2.3.3 b7eb5000-b7ed9000 r-xp 00000000 fd:00 196618 /usr/lib/libpng12.so.0.27.0 b7ed9000-b7eda000 r--p 00023000 fd:00 196618 /usr/lib/libpng12.so.0.27.0 b7eda000-b7edb000 rw-p 00024000 fd:00 196618 /usr/lib/libpng12.so.0.27.0 b7edb000-b7f4d000 r-xp 00000000 fd:00 197766 /usr/lib/libfreetype.so.6.3.20 b7f4d000-b7f51000 r--p 00071000 fd:00 197766 /usr/lib/libfreetype.so.6.3.20 b7f51000-b7f52000 rw-p 00075000 fd:00 197766 /usr/lib/libfreetype.so.6.3.20 b7f52000-b7f53000 rw-p b7f52000 00:00 0 b7f53000-b7f72000 r-xp 00000000 fd:00 198194 /usr/lib/libjpeg.so.62.0.0 b7f72000-b7f73000 rw-p 0001e000 fd:00 198194 /usr/lib/libjpeg.so.62.0.0 b7f73000-b7f91000 r-xp 00000000 fd:00 197300 /usr/lib/libgd.so.2.0.0 b7f91000-b7f92000 r--p 0001d000 fd:00 197300 /usr/lib/libgd.so.2.0.0 b7f92000-b7fb1000 rw-p 0001e000 fd:00 197300 /usr/lib/libgd.so.2.0.0 b7fb1000-b7fb5000 rw-p b7fb1000 00:00 0 b7fbf000-b7fc1000 rw-p b7fbf000 00:00 0 b7fc1000-b7fdd000 r-xp 00000000 fd:00 49155 /lib/ld-2.9.so b7fdd000-b7fde000 r--p 0001b000 fd:00 49155 /lib/ld-2.9.so b7fde000-b7fdf000 rw-p 0001c000 fd:00 49155 /lib/ld-2.9.so bf8c9000-bf8de000 rw-p bffeb000 00:00 0 [stack] ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso] Aborted On Wed, May 20, 2009 at 6:56 AM, Juan Felipe Alvarez Saldarriaga wrote: > Thx Umberto, I'll try to reinstall GDAL then, thx :). > > On Wed, May 20, 2009 at 12:39 AM, Umberto Nicoletti > wrote: >> This is a known issue with recent Ubuntu systems which is caused by a >> special compiler feature (called fortify) which enables a protection >> system against the most common memory management errors. Unfortunately >> as a result of this GDAL will break and dependent sw become unusable >> (mapserver, grass, qgis, etc). >> >> Luckily there is a workaround: remove the gdal installed by canonical >> and install the packages from ubuntu gis project instead: >> >> https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable >> >> You may have to recompile mapserver after this. >> Happy hacking, >> Umberto >> >> On Wed, May 20, 2009 at 5:18 AM, Juan Felipe Alvarez Saldarriaga >> wrote: >>> Hey!. >>> >>> I'm trying to load a WMS layer, but I got always a buffer overflow >>> error, thx for any advice! :) >>> >>> This is my mapserv config: >>> >>> root at vesifront:/usr/lib/cgi-bin# ./mapserv -v >>> MapServer version 5.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG >>> ?SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS >>> _CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=GDAL INPUT=SHAPEFILE >>> >>> My system is a Ubuntu Linux 9.04 and this is the WMS layer into the map file: >>> >>> ?LAYER >>> ? ?NAME 'Mapa Base' >>> ? ?TYPE RASTER >>> ? ?CONNECTIONTYPE WMS >>> ? ?CONNECTION "http://wms.jpl.nasa.gov/browse.cgi?wms_server=wms.cgi" >>> ? ?METADATA >>> ? ? ?'wms_server_version' '1.1.1' >>> ? ? ?'wms_format' 'image/jpeg' >>> ? ? ?'wms_style' '' >>> ? ? ?'wms_name' 'BMNG' >>> ? ?END >>> ? ?METADATA >>> ? ? ? # 'wms_title' 'Mapa Base' >>> ? ? ? 'wms_title' 'BMNG' >>> ? ?END >>> ? ?STATUS DEFAULT >>> ? ?TRANSPARENCY 100 >>> ? ?PROJECTION >>> ? ? ? ?"init=epsg:4326" >>> ? ?END >>> ?END >>> >>> And this is the error that I got when I try to test the map file with shp2img: >>> >>> root at vesifront:/usr/lib/cgi-bin# shp2img -all_debug 3 -m /home/jfalvarez/projec >>> ts/cms/branches/V1/docroot/map-files/9182340517c2d323061dc1cffea6e431.map -o ou >>> t.png >>> [Tue May 19 22:14:03 2009].813526 msLoadMap(): 0.006s >>> [Tue May 19 22:14:03 2009].816973 HTTP: Starting to prepare HTTP requests. >>> [Tue May 19 22:14:03 2009].817552 HTTP request: id=0, http://wms.jpl.nasa.gov/br >>> owse.cgi?wms_server=wms.cgi&LAYERS=BMNG&REQUEST=GetMap&SERVICE=WMS&FORMAT=image/ >>> jpeg&STYLES=&HEIGHT=600&VERSION=1.1.1&SRS=EPSG:4326&WIDTH=800&BBOX=-94.076794657 >>> 7629,-54.0575959933222,-1.92320534223706,15.0575959933222&TRANSPARENT=TRUE&EXCEP >>> TIONS=application/vnd.ogc.se_inimage >>> [Tue May 19 22:14:03 2009].819297 HTTP: Before download loop >>> [Tue May 19 22:14:04 2009].175669 msHTTPWriteFct(id=0, 852 bytes) >>> [Tue May 19 22:14:04 2009].279581 HTTP: After download loop >>> [Tue May 19 22:14:04 2009].280033 msHTTPExecuteRequests() timing summary per lay >>> er (connect_time + time_to_first_packet + download_time = total_time in seconds) >>> >>> [Tue May 19 22:14:04 2009].280572 Layer 0: 0.169 + 0.186 + 0.274 = 0.629s >>> [Tue May 19 22:14:04 2009].281375 msDrawRasterLayerLow(BMNG): entering. >>> *** buffer overflow detected ***: shp2img terminated >>> ======= Backtrace: ========= >>> /lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb6a87da8] >>> /lib/tls/i686/cmov/libc.so.6[0xb6a85eb0] >>> /lib/tls/i686/cmov/libc.so.6(__strcpy_chk+0x44)[0xb6a85184] >>> shp2img(msDrawRasterLayerLow+0x91d)[0x80c4e0d] >>> shp2img(msDrawRasterLayer+0x7b)[0x807ffab] >>> shp2img(msDrawLayer+0x35e)[0x8080f0e] >>> shp2img(msDrawWMSLayerLow+0x598)[0x80d57d8] >>> shp2img(msDrawMap+0x834)[0x8082794] >>> shp2img(main+0x912)[0x8059722] >>> /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb69a0775] >>> shp2img[0x8058d71] >>> ======= Memory map: ======== >>> 08048000-08110000 r-xp 00000000 fd:00 197813 ? ? /usr/local/bin/shp2img >>> 08110000-08111000 r--p 000c7000 fd:00 197813 ? ? /usr/local/bin/shp2img >>> 08111000-08114000 rw-p 000c8000 fd:00 197813 ? ? /usr/local/bin/shp2img >>> 08114000-08222000 rw-p 08114000 00:00 0 ? ? ? ? ?[heap] >>> b588c000-b5891000 r-xp 00000000 fd:00 98403 ? ? ?/lib/tls/i686/cmov/libnss_dns-2 >>> .9.so >>> b5891000-b5892000 r--p 00004000 fd:00 98403 ? ? ?/lib/tls/i686/cmov/libnss_dns-2 >>> .9.so >>> b5892000-b5893000 rw-p 00005000 fd:00 98403 ? ? ?/lib/tls/i686/cmov/libnss_dns-2 >>> .9.so >>> b5893000-b589d000 r-xp 00000000 fd:00 98405 ? ? ?/lib/tls/i686/cmov/libnss_files >>> -2.9.so >>> b589d000-b589e000 r--p 00009000 fd:00 98405 ? ? ?/lib/tls/i686/cmov/libnss_files >>> -2.9.so >>> b589e000-b589f000 rw-p 0000a000 fd:00 98405 ? ? ?/lib/tls/i686/cmov/libnss_files >>> -2.9.so >>> b589f000-b58a3000 rw-p b589f000 00:00 0 >>> b58a3000-b58a6000 r-xp 00000000 fd:00 49415 ? ? ?/lib/libgpg-error.so.0.3.0 >>> b58a6000-b58a7000 rw-p 00002000 fd:00 49415 ? ? ?/lib/libgpg-error.so.0.3.0 >>> b58a7000-b58ab000 r-xp 00000000 fd:00 199058 ? ? /usr/lib/libXdmcp.so.6.0.0 >>> b58ab000-b58ac000 rw-p 00003000 fd:00 199058 ? ? /usr/lib/libXdmcp.so.6.0.0 >>> b58ac000-b58ae000 r-xp 00000000 fd:00 197736 ? ? /usr/lib/libXau.so.6.0.0 >>> b58ae000-b58af000 r--p 00001000 fd:00 197736 ? ? /usr/lib/libXau.so.6.0.0 >>> b58af000-b58b0000 rw-p 00002000 fd:00 197736 ? ? /usr/lib/libXau.so.6.0.0 >>> b58b0000-b58c5000 r-xp 00000000 fd:00 98398 ? ? ?/lib/tls/i686/cmov/libnsl-2.9.s >>> o >>> b58c5000-b58c6000 r--p 00014000 fd:00 98398 ? ? ?/lib/tls/i686/cmov/libnsl-2.9.s >>> o >>> b58c6000-b58c7000 rw-p 00015000 fd:00 98398 ? ? ?/lib/tls/i686/cmov/libnsl-2.9.s >>> o >>> b58c7000-b58ca000 rw-p b58c7000 00:00 0 >>> b58ca000-b58cc000 r-xp 00000000 fd:00 49292 ? ? ?/lib/libkeyutils-1.2.so >>> b58cc000-b58cd000 r--p 00001000 fd:00 49292 ? ? ?/lib/libkeyutils-1.2.so >>> b58cd000-b58ce000 rw-p 00002000 fd:00 49292 ? ? ?/lib/libkeyutils-1.2.so >>> b58ce000-b58d5000 r-xp 00000000 fd:00 198044 ? ? /usr/lib/libkrb5support.so.0.1 >>> b58d5000-b58d6000 r--p 00006000 fd:00 198044 ? ? /usr/lib/libkrb5support.so.0.1 >>> b58d6000-b58d7000 rw-p 00007000 fd:00 198044 ? ? /usr/lib/libkrb5support.so.0.1 >>> b58d7000-b58f9000 r-xp 00000000 fd:00 197986 ? ? /usr/lib/libk5crypto.so.3.1 >>> b58f9000-b58fa000 r--p 00022000 fd:00 197986 ? ? /usr/lib/libk5crypto.so.3.1 >>> b58fa000-b58fb000 rw-p 00023000 fd:00 197986 ? ? /usr/lib/libk5crypto.so.3.1 >>> b58fb000-b5911000 r-xp 00000000 fd:00 197574 ? ? /usr/lib/libsasl2.so.2.0.22 >>> b5911000-b5912000 r--p 00015000 fd:00 197574 ? ? /usr/lib/libsasl2.so.2.0.22 >>> b5912000-b5913000 rw-p 00016000 fd:00 197574 ? ? /usr/lib/libsasl2.so.2.0.22 >>> b5913000-b5925000 r-xp 00000000 fd:00 98435 ? ? ?/lib/tls/i686/cmov/libresolv-2. >>> 9.so >>> b5925000-b5926000 r--p 00011000 fd:00 98435 ? ? ?/lib/tls/i686/cmov/libresolv-2. >>> 9.so >>> b5926000-b5927000 rw-p 00012000 fd:00 98435 ? ? ?/lib/tls/i686/cmov/libresolv-2. >>> 9.so >>> b5927000-b592a000 rw-p b5927000 00:00 0 >>> b592a000-b5990000 r-xp 00000000 fd:00 49280 ? ? ?/lib/libgcrypt.so.11.4.4 >>> b5990000-b5991000 r--p 00065000 fd:00 49280 ? ? ?/lib/libgcrypt.so.11.4.4 >>> b5991000-b5993000 rw-p 00066000 fd:00 49280 ? ? ?/lib/libgcrypt.so.11.4.4 >>> b5993000-b59a3000 r-xp 00000000 fd:00 196657 ? ? /usr/lib/libtasn1.so.3.0.16 >>> b59a3000-b59a4000 r--p 0000f000 fd:00 196657 ? ? /usr/lib/libtasn1.so.3.0.16 >>> b59a4000-b59a5000 rw-p 00010000 fd:00 196657 ? ? /usr/lib/libtasn1.so.3.0.16 >>> b59a5000-b59ae000 r-xp 00000000 fd:00 98354 ? ? ?/lib/tls/i686/cmov/libcrypt-2.9 >>> .so >>> b59ae000-b59af000 r--p 00008000 fd:00 98354 ? ? ?/lib/tls/i686/cmov/libcrypt-2.9 >>> .so >>> b59af000-b59b0000 rw-p 00009000 fd:00 98354 ? ? ?/lib/tls/i686/cmov/libcrypt-2.9 >>> .so >>> b59b0000-b59d7000 rw-p b59b0000 00:00 0 >>> b59d7000-b59d9000 r-xp 00000000 fd:00 49185 ? ? ?/lib/libcom_err.so.2.1 >>> b59d9000-b59da000 r--p 00001000 fd:00 49185 ? ? ?/lib/libcom_err.so.2.1 >>> b59da000-b59db000 rw-p 00002000 fd:00 49185 ? ? ?/lib/libcom_err.so.2.1 >>> b59db000-b5a6a000 r-xp 00000000 fd:00 197990 ? ? /usr/lib/libkrb5.so.3.3 >>> b5a6a000-b5a6c000 r--p 0008e000 fd:00 197990 ? ? /usr/lib/libkrb5.so.3.3 >>> b5a6c000-b5a6d000 rw-p 00090000 fd:00 197990 ? ? /usr/lib/libkrb5.so.3.3 >>> b5a6d000-b5a6e000 rw-p b5a6d000 00:00 0 >>> b5a6e000-b5ba1000 r-xp 00000000 fd:00 49509 ? ? ?/lib/i686/cmov/libcrypto.so.0.9 >>> .8 >>> b5ba1000-b5ba9000 r--p 00132000 fd:00 49509 ? ? ?/lib/i686/cmov/libcrypto.so.0.9 >>> .8 >>> b5ba9000-b5bb6000 rw-p 0013a000 fd:00 49509 ? ? ?/lib/i686/cmov/libcrypto.so.0.9 >>> .8 >>> b5bb6000-b5bba000 rw-p b5bb6000 00:00 0 >>> b5bba000-b5bfc000 r-xp 00000000 fd:00 49512 ? ? ?/lib/i686/cmov/libssl.so.0.9.8 >>> b5bfc000-b5bfd000 r--p 00041000 fd:00 49512 ? ? ?/lib/i686/cmov/libssl.so.0.9.8 >>> b5bfd000-b5c00000 rw-p 00042000 fd:00 49512 ? ? ?/lib/i686/cmov/libssl.so.0.9.8 >>> b5c00000-b66d6000 r--p 00000000 fd:00 198175 ? ? /usr/lib/libicudata.so.38.1 >>> b66d6000-b66d7000 r--p 00ad5000 fd:00 198175 ? ? /usr/lib/libicudata.so.38.1 >>> b66d7000-b67f4000 r-xp 00000000 fd:00 200522 ? ? /usr/lib/libicuuc.so.38.1 >>> b67f4000-b67f5000 ---p 0011d000 fd:00 200522 ? ? /usr/lib/libicuuc.so.38.1 >>> b67f5000-b67fd000 r--p 0011d000 fd:00 200522 ? ? /usr/lib/libicuuc.so.38.1 >>> b67fd000-b67fe000 rw-p 00125000 fd:00 200522 ? ? /usr/lib/libicuuc.so.38.1 >>> b67fe000-b6800000 rw-p b67fe000 00:00 0 >>> b6800000-b6807000 r-xp 00000000 fd:00 197048 ? ? /usr/lib/libltdl.so.7.2.0 >>> b6807000-b6808000 r--p 00006000 fd:00 197048 ? ? /usr/lib/libltdl.so.7.2.0 >>> b6808000-b6809000 rw-p 00007000 fd:00 197048 ? ? /usr/lib/libltdl.so.7.2.0 >>> b6809000-b680a000 rw-p b6809000 00:00 0 >>> b680a000-b6930000 r-xp 00000000 fd:00 196683 ? ? /usr/lib/libgeos-3.0.0.so >>> b6930000-b6934000 rw-p 00125000 fd:00 196683 ? ? /usr/lib/libgeos-3.0.0.so >>> b6934000-b694c000 r-xp 00000000 fd:00 199065 ? ? /usr/lib/libxcb.so.1.1.0 >>> b694c000-b694d000 r--p 00017000 fd:00 199065 ? ? /usr/lib/libxcb.so.1.1.0 >>> b694d000-b694e000 rw-p 00018000 fd:00 199065 ? ? /usr/lib/libxcb.so.1.1.0 >>> b694e000-b6979000 r-xp 00000000 fd:00 196744 ? ? /usr/lib/libfontconfig.so.1.3.0 >>> >>> b6979000-b697a000 r--p 0002a000 fd:00 196744 ? ? /usr/lib/libfontconfig.so.1.3.0 >>> >>> b697a000-b697b000 rw-p 0002b000 fd:00 196744 ? ? /usr/lib/libfontconfig.so.1.3.0 >>> >>> b697b000-b6988000 r-xp 00000000 fd:00 49222 ? ? ?/lib/libgcc_s.so.1 >>> b6988000-b6989000 r--p 0000c000 fd:00 49222 ? ? ?/lib/libgcc_s.so.1 >>> b6989000-b698a000 rw-p 0000d000 fd:00 49222 ? ? ?/lib/libgcc_s.so.1 >>> b698a000-b6ae6000 r-xp 00000000 fd:00 98338 ? ? ?/lib/tls/i686/cmov/libc-2.9.so >>> b6ae6000-b6ae7000 ---p 0015c000 fd:00 98338 ? ? ?/lib/tls/i686/cmov/libc-2.9.so >>> b6ae7000-b6ae9000 r--p 0015c000 fd:00 98338 ? ? ?/lib/tls/i686/cmov/libc-2.9.so >>> b6ae9000-b6aea000 rw-p 0015e000 fd:00 98338 ? ? ?/lib/tls/i686/cmov/libc-2.9.so >>> b6aea000-b6aee000 rw-p b6aea000 00:00 0 >>> b6aee000-b6bd2000 r-xp 00000000 fd:00 198979 ? ? /usr/lib/libstdc++.so.6.0.10 >>> b6bd2000-b6bd6000 r--p 000e3000 fd:00 198979 ? ? /usr/lib/libstdc++.so.6.0.10 >>> b6bd6000-b6bd7000 rw-p 000e7000 fd:00 198979 ? ? /usr/lib/libstdc++.so.6.0.10 >>> b6bd7000-b6bdd000 rw-p b6bd7000 00:00 0 >>> b6bdd000-b6c01000 r-xp 00000000 fd:00 98378 ? ? ?/lib/tls/i686/cmov/libm-2.9.so >>> b6c01000-b6c02000 r--p 00023000 fd:00 98378 ? ? ?/lib/tls/i686/cmov/libm-2.9.so >>> b6c02000-b6c03000 rw-p 00024000 fd:00 98378 ? ? ?/lib/tls/i686/cmov/libm-2.9.so >>> b6c03000-b6da2000 r-xp 00000000 fd:00 197497 ? ? /usr/lib/libmysqlclient.so.15.0 >>> .0 >>> b6da2000-b6da5000 r--p 0019e000 fd:00 197497 ? ? /usr/lib/libmysqlclient.so.15.0 >>> .0 >>> b6da5000-b6de5000 rw-p 001a1000 fd:00 197497 ? ? /usr/lib/libmysqlclient.so.15.0 >>> .0 >>> b6de5000-b6de6000 rw-p b6de5000 00:00 0 >>> b6de6000-b6e7d000 r-xp 00000000 fd:00 201145 ? ? /usr/lib/libgnutls.so.26.4.6 >>> b6e7d000-b6e82000 r--p 00097000 fd:00 201145 ? ? /usr/lib/libgnutls.so.26.4.6 >>> b6e82000-b6e83000 rw-p 0009c000 fd:00 201145 ? ? /usr/lib/libgnutls.so.26.4.6 >>> b6e83000-b6eac000 r-xp 00000000 fd:00 197192 ? ? /usr/lib/libgssapi_krb5.so.2.2 >>> b6eac000-b6ead000 r--p 00028000 fd:00 197192 ? ? /usr/lib/libgssapi_krb5.so.2.2 >>> b6ead000-b6eae000 rw-p 00029000 fd:00 197192 ? ? /usr/lib/libgssapi_krb5.so.2.2 >>> b6eae000-b6eee000 r-xp 00000000 fd:00 198528 ? ? /usr/lib/libldap_r-2.4.so.2.4.1 >>> >>> b6eee000-b6eef000 ---p 00040000 fd:00 198528 ? ? /usr/lib/libldap_r-2.4.so.2.4.1 >>> >>> b6eef000-b6ef0000 r--p 00040000 fd:00 198528 ? ? /usr/lib/libldap_r-2.4.so.2.4.1 >>> >>> b6ef0000-b6ef1000 rw-p 00041000 fd:00 198528 ? ? /usr/lib/libldap_r-2.4.so.2.4.1 >>> >>> b6ef1000-b6ef3000 rw-p b6ef1000 00:00 0 >>> b6ef3000-b6eff000 r-xp 00000000 fd:00 198526 ? ? /usr/lib/liblber-2.4.so.2.4.1 >>> b6eff000-b6f00000 r--p 0000b000 fd:00 198526 ? ? /usr/lib/liblber-2.4.so.2.4.1 >>> b6f00000-b6f01000 rw-p 0000c000 fd:00 198526 ? ? /usr/lib/liblber-2.4.so.2.4.1 >>> b6f01000-b6f31000 r-xp 00000000 fd:00 197174 ? ? /usr/lib/libidn.so.11.5.39 >>> b6f31000-b6f32000 ---p 00030000 fd:00 197174 ? ? /usr/lib/libidn.so.11.5.39 >>> b6f32000-b6f33000 r--p 00030000 fd:00 197174 ? ? /usr/lib/libidn.so.11.5.39 >>> b6f33000-b6f34000 rw-p 00031000 fd:00 197174 ? ? /usr/lib/libidn.so.11.5.39 >>> b6f34000-b6f6d000 r-xp 00000000 fd:00 201911 ? ? /usr/lib/libcurl-gnutls.so.4.1. >>> 0 >>> b6f6d000-b6f6e000 r--p 00038000 fd:00 201911 ? ? /usr/lib/libcurl-gnutls.so.4.1. >>> 0 >>> b6f6e000-b6f6f000 rw-p 00039000 fd:00 201911 ? ? /usr/lib/libcurl-gnutls.so.4.1. >>> 0 >>> b6f6f000-b6f71000 r-xp 00000000 fd:00 98374 ? ? ?/lib/tls/i686/cmov/libdl-2.9.so >>> >>> b6f71000-b6f72000 r--p 00001000 fd:00 98374 ? ? ?/lib/tls/i686/cmov/libdl-2.9.so >>> >>> b6f72000-b6f73000 rw-p 00002000 fd:00 98374 ? ? ?/lib/tls/i686/cmov/libdl-2.9.so >>> >>> b6f73000-b6f7a000 r-xp 00000000 fd:00 98436 ? ? ?/lib/tls/i686/cmov/librt-2.9.so >>> >>> b6f7a000-b6f7b000 r--p 00006000 fd:00 98436 ? ? ?/lib/tls/i686/cmov/librt-2.9.so >>> >>> b6f7b000-b6f7c000 rw-p 00007000 fd:00 98436 ? ? ?/lib/tls/i686/cmov/librt-2.9.so >>> >>> b6f7c000-b6f7d000 rw-p b6f7c000 00:00 0 >>> b6f7d000-b6f9c000 r-xp 00000000 fd:00 198177 ? ? /usr/lib/libpq.so.5.1 >>> b6f9c000-b6f9d000 r--p 0001e000 fd:00 198177 ? ? /usr/lib/libpq.so.5.1 >>> b6f9d000-b6f9e000 rw-p 0001f000 fd:00 198177 ? ? /usr/lib/libpq.so.5.1 >>> b6f9e000-b6fcd000 r-xp 00000000 fd:00 196821 ? ? /usr/lib/libnetcdf.so.4.0.0 >>> b6fcd000-b6fce000 rw-p 0002e000 fd:00 196821 ? ? /usr/lib/libnetcdf.so.4.0.0 >>> b6fce000-b6fcf000 rw-p b6fce000 00:00 0 >>> b6fcf000-b6fd6000 r-xp 00000000 fd:00 199094 ? ? /usr/lib/libgif.so.4.1.6 >>> b6fd6000-b6fd7000 r--p 00006000 fd:00 199094 ? ? /usr/lib/libgif.so.4.1.6 >>> b6fd7000-b6fd8000 rw-p 00007000 fd:00 199094 ? ? /usr/lib/libgif.so.4.1.6 >>> b6fd8000-b6ff4000 r-xp 00000000 fd:00 198859 ? ? /usr/lib/libogdi.so.3.2 >>> b6ff4000-b6ff5000 r--p 0001b000 fd:00 198859 ? ? /usr/lib/libogdi.so.3.2 >>> b6ff5000-b6ff6000 rw-p 0001c000 fd:00 198859 ? ? /usr/lib/libogdi.so.3.2 >>> b6ff6000-b7072000 r-xp 00000000 fd:00 197865 ? ? /usr/lib/libdf.so.4.1r4 >>> b7072000-b7073000 r--p 0007c000 fd:00 197865 ? ? /usr/lib/libdf.so.4.1r4 >>> b7073000-b7075000 rw-p 0007d000 fd:00 197865 ? ? /usr/lib/libdf.so.4.1r4 >>> b7075000-b709d000 rw-p b7075000 00:00 0 >>> b709d000-b70bf000 r-xp 00000000 fd:00 197866 ? ? /usr/lib/libmfhdf.so.4.1r4 >>> b70bf000-b70c0000 r--p 00021000 fd:00 197866 ? ? /usr/lib/libmfhdf.so.4.1r4 >>> b70c0000-b70c1000 rw-p 00022000 fd:00 197866 ? ? /usr/lib/libmfhdf.so.4.1r4 >>> b70c1000-b70c3000 rw-p b70c1000 00:00 0 >>> b70c3000-b71f1000 r-xp 00000000 fd:00 197869 ? ? /usr/lib/libhdf5-1.6.6.so.0.0.0 >>> >>> b71f1000-b71f2000 r--p 0012e000 fd:00 197869 ? ? /usr/lib/libhdf5-1.6.6.so.0.0.0 >>> >>> b71f2000-b71f4000 rw-p 0012f000 fd:00 197869 ? ? /usr/lib/libhdf5-1.6.6.so.0.0.0 >>> >>> b71f4000-b71f5000 rw-p b71f4000 00:00 0 >>> b71f5000-b723a000 r-xp 00000000 fd:00 198197 ? ? /usr/lib/libjasper.so.1.0.0 >>> b723a000-b723b000 r--p 00044000 fd:00 198197 ? ? /usr/lib/libjasper.so.1.0.0 >>> b723b000-b723e000 rw-p 00045000 fd:00 198197 ? ? /usr/lib/libjasper.so.1.0.0 >>> b723e000-b7244000 rw-p b723e000 00:00 0 >>> b7244000-b7259000 r-xp 00000000 fd:00 98434 ? ? ?/lib/tls/i686/cmov/libpthread-2 >>> .9.so >>> b7259000-b725a000 r--p 00014000 fd:00 98434 ? ? ?/lib/tls/i686/cmov/libpthread-2 >>> .9.so >>> b725a000-b725b000 rw-p 00015000 fd:00 98434 ? ? ?/lib/tls/i686/cmov/libpthread-2 >>> .9.so >>> b725b000-b725d000 rw-p b725b000 00:00 0 >>> b725d000-b75e6000 r-xp 00000000 fd:00 198036 ? ? /usr/lib/libxerces-c.so.28.0 >>> b75e6000-b75f4000 r--p 00388000 fd:00 198036 ? ? /usr/lib/libxerces-c.so.28.0 >>> b75f4000-b7616000 rw-p 00396000 fd:00 198036 ? ? /usr/lib/libxerces-c.so.28.0 >>> b7616000-b763a000 r-xp 00000000 fd:00 199031 ? ? /usr/lib/libexpat.so.1.5.2 >>> b763a000-b763c000 r--p 00023000 fd:00 199031 ? ? /usr/lib/libexpat.so.1.5.2 >>> b763c000-b763d000 rw-p 00025000 fd:00 199031 ? ? /usr/lib/libexpat.so.1.5.2 >>> b763d000-b7648000 r-xp 00000000 fd:00 197050 ? ? /usr/lib/libodbcinst.so.1.0.0 >>> b7648000-b7649000 r--p 0000a000 fd:00 197050 ? ? /usr/lib/libodbcinst.so.1.0.0 >>> b7649000-b764a000 rw-p 0000b000 fd:00 197050 ? ? /usr/lib/libodbcinst.so.1.0.0 >>> b764a000-b764b000 rw-p b764a000 00:00 0 >>> b764b000-b76ad000 r-xp 00000000 fd:00 200524 ? ? /usr/lib/libodbc.so.1.0.0 >>> b76ad000-b76ae000 r--p 00061000 fd:00 200524 ? ? /usr/lib/libodbc.so.1.0.0 >>> b76ae000-b76b2000 rw-p 00062000 fd:00 200524 ? ? /usr/lib/libodbc.so.1.0.0 >>> b76b2000-b772f000 r-xp 00000000 fd:00 198741 ? ? /usr/lib/libsqlite3.so.0.8.6 >>> b772f000-b7730000 r--p 0007d000 fd:00 198741 ? ? /usr/lib/libsqlite3.so.0.8.6 >>> b7730000-b7731000 rw-p 0007e000 fd:00 198741 ? ? /usr/lib/libsqlite3.so.0.8.6 >>> b7731000-b7740000 r-xp 00000000 fd:00 197743 ? ? /usr/lib/libgeos_c.so.1.4.1 >>> b7740000-b7741000 rw-p 0000e000 fd:00 197743 ? ? /usr/lib/libgeos_c.so.1.4.1 >>> b7741000-b7c1f000 r-xp 00000000 fd:00 202927 ? ? /usr/lib/libgdal1.5.0.so.1.12.2 >>> >>> b7c1f000-b7c31000 r--p 004de000 fd:00 202927 ? ? /usr/lib/libgdal1.5.0.so.1.12.2 >>> >>> b7c31000-b7c71000 rw-p 004f0000 fd:00 202927 ? ? /usr/lib/libgdal1.5.0.so.1.12.2 >>> >>> b7c71000-b7cb4000 rw-p b7c71000 00:00 0 >>> b7cb4000-b7ce5000 r-xp 00000000 fd:00 198848 ? ? /usr/lib/libproj.so.0.5.5 >>> b7ce5000-b7ce7000 rw-p 00031000 fd:00 198848 ? ? /usr/lib/libproj.so.0.5.5 >>> b7ce7000-b7ce8000 rw-p b7ce7000 00:00 0 >>> b7ce8000-b7d3a000 r-xp 00000000 fd:00 197496 ? ? /usr/lib/libtiff.so.4.2.1 >>> b7d3a000-b7d3c000 r--p 00052000 fd:00 197496 ? ? /usr/lib/libtiff.so.4.2.1 >>> b7d3c000-b7d3d000 rw-p 00054000 fd:00 197496 ? ? /usr/lib/libtiff.so.4.2.1 >>> b7d3d000-b7e27000 r-xp 00000000 fd:00 199062 ? ? /usr/lib/libX11.so.6.2.0 >>> b7e27000-b7e28000 ---p 000ea000 fd:00 199062 ? ? /usr/lib/libX11.so.6.2.0 >>> b7e28000-b7e29000 r--p 000ea000 fd:00 199062 ? ? /usr/lib/libX11.so.6.2.0 >>> b7e29000-b7e2b000 rw-p 000eb000 fd:00 199062 ? ? /usr/lib/libX11.so.6.2.0 >>> b7e2b000-b7e2c000 rw-p b7e2b000 00:00 0 >>> b7e2c000-b7e3b000 r-xp 00000000 fd:00 197079 ? ? /usr/lib/libXpm.so.4.11.0 >>> b7e3b000-b7e3c000 rw-p 0000f000 fd:00 197079 ? ? /usr/lib/libXpm.so.4.11.0 >>> b7e3c000-b7e50000 r-xp 00000000 fd:00 49250 ? ? ?/lib/libz.so.1.2.3.3 >>> b7e50000-b7e51000 r--p 00013000 fd:00 49250 ? ? ?/lib/libz.so.1.2.3.3 >>> b7e51000-b7e52000 rw-p 00014000 fd:00 49250 ? ? ?/lib/libz.so.1.2.3.3 >>> b7e52000-b7e76000 r-xp 00000000 fd:00 196618 ? ? /usr/lib/libpng12.so.0.27.0 >>> b7e76000-b7e77000 r--p 00023000 fd:00 196618 ? ? /usr/lib/libpng12.so.0.27.0 >>> b7e77000-b7e78000 rw-p 00024000 fd:00 196618 ? ? /usr/lib/libpng12.so.0.27.0 >>> b7e78000-b7eea000 r-xp 00000000 fd:00 197766 ? ? /usr/lib/libfreetype.so.6.3.20 >>> b7eea000-b7eee000 r--p 00071000 fd:00 197766 ? ? /usr/lib/libfreetype.so.6.3.20 >>> b7eee000-b7eef000 rw-p 00075000 fd:00 197766 ? ? /usr/lib/libfreetype.so.6.3.20 >>> b7eef000-b7ef0000 rw-p b7eef000 00:00 0 >>> b7ef0000-b7f0f000 r-xp 00000000 fd:00 198194 ? ? /usr/lib/libjpeg.so.62.0.0 >>> b7f0f000-b7f10000 rw-p 0001e000 fd:00 198194 ? ? /usr/lib/libjpeg.so.62.0.0 >>> b7f10000-b7f2e000 r-xp 00000000 fd:00 197300 ? ? /usr/lib/libgd.so.2.0.0 >>> b7f2e000-b7f2f000 r--p 0001d000 fd:00 197300 ? ? /usr/lib/libgd.so.2.0.0 >>> b7f2f000-b7f4e000 rw-p 0001e000 fd:00 197300 ? ? /usr/lib/libgd.so.2.0.0 >>> b7f4e000-b7f52000 rw-p b7f4e000 00:00 0 >>> b7f5c000-b7f5e000 rw-p b7f5c000 00:00 0 >>> b7f5e000-b7f7a000 r-xp 00000000 fd:00 49155 ? ? ?/lib/ld-2.9.so >>> b7f7a000-b7f7b000 r--p 0001b000 fd:00 49155 ? ? ?/lib/ld-2.9.so >>> b7f7b000-b7f7c000 rw-p 0001c000 fd:00 49155 ? ? ?/lib/ld-2.9.so >>> bf967000-bf97c000 rw-p bffeb000 00:00 0 ? ? ? ? ?[stack] >>> ffffe000-fffff000 r-xp 00000000 00:00 0 ? ? ? ? ?[vdso] >>> Aborted >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> > From gonzalo at sepp0.com.ar Sun May 24 12:50:02 2009 From: gonzalo at sepp0.com.ar (Gonzalo Lionel Rodriguez) Date: Sun, 24 May 2009 16:50:02 -0300 Subject: [mapserver-users] P.MAPPER-ERROR Message-ID: Hi everyone... o customize my own .map and i have this error in pm_debug.log: ... [24-May-2009 15:30:03] P.MAPPER debug info P.MAPPER-ERROR: Layer/Group 'Pampa' not existing. Check '/config/config.ini' file definition for section 'defGroups'. [24-May-2009 15:30:03] P.MAPPER debug info P.MAPPER-ERROR: Layer/Group 'MontedeLlanurasyMesetas' not existing. Check '/config/config.ini' file definition for section 'defGroups'. [24-May-2009 15:30:03] P.MAPPER debug info P.MAPPER-ERROR: Layer/Group 'EstepaPatag?nica' not existing. Check '/config/config.ini' file definition for section 'defGroups'. ... I dont know whats wrong, any idea? I attach the config.ini and .map file Kind regards -------------- next part -------------- A non-text attachment was scrubbed... Name: capas_geograficas_basicas.map Type: application/octet-stream Size: 17269 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: config.ini Type: application/octet-stream Size: 14278 bytes Desc: not available URL: From pal.kristensen at statkart.no Mon May 25 06:00:15 2009 From: pal.kristensen at statkart.no (paalkr) Date: Mon, 25 May 2009 06:00:15 -0700 (PDT) Subject: [mapserver-users] Point lables and tiles Message-ID: <1243256415662-2969528.post@n2.nabble.com> Hi! When creating tiles for my tilecache I have some issues regarding point labels. Using the PROCESSING label_no_clip=true works for line and polygon labels, but points has not area/size and will therefor newer be present in two neighbouring tiles. The result are clipped labels because only one tile will ever know about the presence of a point. If then the label should have been rendered into the next tile, it will be clipped. Metatiles (requesting more than one tile at a time and splitting it up on the tile server) helps, but only a little, as the same problem will occur between metatiles. A solution would be that MapServer rendered each tile (map) some percentage larger than requested, and then chops of the excess area before delivering the final map. A setting at the MAP level of the mapfile controlling this "grow" mechanism would be great, defining the percentage the map shall be extended before rendering. Second, is there any other way to solve the issue? Especially if there are already features in MapServer that can be used. Regards, P?l Kristensen ----- Regards, P?l Kristensen -- View this message in context: http://n2.nabble.com/Point-lables-and-tiles-tp2969528p2969528.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at camptocamp.com Mon May 25 06:25:58 2009 From: thomas.bonfort at camptocamp.com (Thomas Bonfort) Date: Mon, 25 May 2009 15:25:58 +0200 Subject: [mapserver-users] Point lables and tiles In-Reply-To: <1243256415662-2969528.post@n2.nabble.com> References: <1243256415662-2969528.post@n2.nabble.com> Message-ID: <2922382e0905250625p6db97bdme06546874a8d4f0a@mail.gmail.com> http://lists.osgeo.org/pipermail/mapserver-users/2009-March/060214.html regards, thomas -- www.camptocamp.com +33 4 79 26 57 97 On Mon, May 25, 2009 at 15:00, paalkr wrote: > > Hi! > > When creating tiles for my tilecache I have some issues regarding point > labels. Using the PROCESSING label_no_clip=true works for line and polygon > labels, but points has not area/size and will therefor newer be present in > two neighbouring tiles. The result are clipped labels because only one tile > will ever know about the presence of a point. If then the label should have > been rendered into the next tile, it will be clipped. Metatiles (requesting > more than one tile at a time and splitting it up on the tile server) helps, > but only a little, as the same problem will occur between metatiles. > > A solution would be that MapServer rendered each tile (map) some percentage > larger than requested, and then chops of the excess area before delivering > the final map. A setting at the MAP level of the mapfile controlling this > "grow" mechanism would be great, defining the percentage the map shall be > extended before rendering. > > Second, is there any other way to solve the issue? Especially if there are > already features in MapServer that can be used. > > Regards, > P?l Kristensen > > > > ----- > > Regards, > P?l Kristensen > -- > View this message in context: http://n2.nabble.com/Point-lables-and-tiles-tp2969528p2969528.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jmckenna at gatewaygeomatics.com Mon May 25 07:08:12 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 25 May 2009 10:08:12 -0400 Subject: [mapserver-users] Upgrade to mapserver 5.4.0 In-Reply-To: <287324.69172.qm@web25904.mail.ukl.yahoo.com> References: <287324.69172.qm@web25904.mail.ukl.yahoo.com> Message-ID: <4A1AA64C.8000707@gatewaygeomatics.com> Hans Castorp wrote: > Where I am finding problems is compilling the sources, it is possible to > download precompilled binaries as for past versions? > You can download previous MS4W versions at: http://dl.maptools.org/dl/ms4w/ -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From Baas at speerit.nl Mon May 25 07:23:19 2009 From: Baas at speerit.nl (Jelmer Baas) Date: Mon, 25 May 2009 16:23:19 +0200 Subject: [mapserver-users] Oracle Spatial and "styleitem auto" In-Reply-To: <4A1A8D29.60109@mapgears.com> References: <68C97F84EAD0174799AC6FCEE219DEF2619B4B@batavia.Speerit.local> <68C97F84EAD0174799AC6FCEE219DEF2619B66@batavia.Speerit.local> <4A1A8D29.60109@mapgears.com> Message-ID: <68C97F84EAD0174799AC6FCEE219DEF2619BEA@batavia.Speerit.local> > MapServer needs a circle symbol to use as a brush to render > thick lines. > Try defining a symbol called "default-circle" in your symbolset, this > symbol should be used to render thick lines. > > This is explained in the paragraph on "Line Thickness" at: > http://mapserver.org/input/vector/ogr.html#mapping-of-ogr-styl > e-info-to-the-mapserver-class-members > > A new WIDTH parameter has been added to the style object in recent > releases that removes the need for the circular brush, but that's not > supported yet by the STYLEITEM code... I'll need to add it. Daniel, Thank you, this works like a charm. Regards, Jelmer Baas From pal.kristensen at statkart.no Mon May 25 07:45:15 2009 From: pal.kristensen at statkart.no (paalkr) Date: Mon, 25 May 2009 07:45:15 -0700 (PDT) Subject: [mapserver-users] Point lables and tiles In-Reply-To: <2922382e0905250625p6db97bdme06546874a8d4f0a@mail.gmail.com> References: <1243256415662-2969528.post@n2.nabble.com> <2922382e0905250625p6db97bdme06546874a8d4f0a@mail.gmail.com> Message-ID: <1243262715899-2969950.post@n2.nabble.com> Hi! Thanks for the hint! The problem is that I'm using GeoWebCache and not tilecache :) Is the METADATA labelcache_map_edge_buffer "-10" END a MapServer keyword? What does it do exactly? Any other possible solutions? Regards, P?l Kristensen Thomas Bonfort-2 wrote: > > http://lists.osgeo.org/pipermail/mapserver-users/2009-March/060214.html > > regards, > thomas > > -- > www.camptocamp.com > +33 4 79 26 57 97 > > > > On Mon, May 25, 2009 at 15:00, paalkr wrote: >> >> Hi! >> >> When creating tiles for my tilecache I have some issues regarding point >> labels. Using the PROCESSING label_no_clip=true works for line and >> polygon >> labels, but points has not area/size and will therefor newer be present >> in >> two neighbouring tiles. The result are clipped labels because only one >> tile >> will ever know about the presence of a point. If then the label should >> have >> been rendered into the next tile, it will be clipped. Metatiles >> (requesting >> more than one tile at a time and splitting it up on the tile server) >> helps, >> but only a little, as the same problem will occur between metatiles. >> >> A solution would be that MapServer rendered each tile (map) some >> percentage >> larger than requested, and then chops of the excess area before >> delivering >> the final map. A setting at the MAP level of the mapfile controlling this >> "grow" mechanism would be great, defining the percentage the map shall be >> extended before rendering. >> >> Second, is there any other way to solve the issue? Especially if there >> are >> already features in MapServer that can be used. >> >> Regards, >> P?l Kristensen >> >> >> >> ----- >> >> Regards, >> P?l Kristensen >> -- >> View this message in context: >> http://n2.nabble.com/Point-lables-and-tiles-tp2969528p2969528.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ----- Regards, P?l Kristensen -- View this message in context: http://n2.nabble.com/Point-labels-and-tiles-tp2969528p2969950.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at camptocamp.com Mon May 25 07:53:58 2009 From: thomas.bonfort at camptocamp.com (Thomas Bonfort) Date: Mon, 25 May 2009 16:53:58 +0200 Subject: [mapserver-users] Point lables and tiles In-Reply-To: <1243262715899-2969950.post@n2.nabble.com> References: <1243256415662-2969528.post@n2.nabble.com> <2922382e0905250625p6db97bdme06546874a8d4f0a@mail.gmail.com> <1243262715899-2969950.post@n2.nabble.com> Message-ID: <2922382e0905250753k608746b4j3701aef8f80b290d@mail.gmail.com> it doesn't put any labels in the 10 outermost pixels surrounding the generated image (as they are chopped off by tilecache's metabuffer) thomas -- www.camptocamp.com +33 4 79 26 57 97 On Mon, May 25, 2009 at 16:45, paalkr wrote: > > Hi! > > Thanks for the hint! The problem is that I'm using GeoWebCache and not > tilecache :) Is the > ? ? METADATA > ? ? ? ?labelcache_map_edge_buffer "-10" > ? ?END > a MapServer keyword? What does it do exactly? > > Any other possible solutions? > > Regards, > P?l Kristensen > > > Thomas Bonfort-2 wrote: >> >> http://lists.osgeo.org/pipermail/mapserver-users/2009-March/060214.html >> >> regards, >> thomas >> >> -- >> www.camptocamp.com >> +33 4 79 26 57 97 >> >> >> >> On Mon, May 25, 2009 at 15:00, paalkr wrote: >>> >>> Hi! >>> >>> When creating tiles for my tilecache I have some issues regarding point >>> labels. Using the PROCESSING label_no_clip=true works for line and >>> polygon >>> labels, but points has not area/size and will therefor newer be present >>> in >>> two neighbouring tiles. The result are clipped labels because only one >>> tile >>> will ever know about the presence of a point. If then the label should >>> have >>> been rendered into the next tile, it will be clipped. Metatiles >>> (requesting >>> more than one tile at a time and splitting it up on the tile server) >>> helps, >>> but only a little, as the same problem will occur between metatiles. >>> >>> A solution would be that MapServer rendered each tile (map) some >>> percentage >>> larger than requested, and then chops of the excess area before >>> delivering >>> the final map. A setting at the MAP level of the mapfile controlling this >>> "grow" mechanism would be great, defining the percentage the map shall be >>> extended before rendering. >>> >>> Second, is there any other way to solve the issue? Especially if there >>> are >>> already features in MapServer that can be used. >>> >>> Regards, >>> P?l Kristensen >>> >>> >>> >>> ----- >>> >>> Regards, >>> P?l Kristensen >>> -- >>> View this message in context: >>> http://n2.nabble.com/Point-lables-and-tiles-tp2969528p2969528.html >>> Sent from the Mapserver - User mailing list archive at Nabble.com. >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > ----- > > Regards, > P?l Kristensen > -- > View this message in context: http://n2.nabble.com/Point-labels-and-tiles-tp2969528p2969950.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From pcorti at gmail.com Mon May 25 08:17:45 2009 From: pcorti at gmail.com (Paolo Corti) Date: Mon, 25 May 2009 08:17:45 -0700 (PDT) Subject: [mapserver-users] openlayers in vs2005 website In-Reply-To: <1243148301622-2964328.post@n2.nabble.com> References: <1242891289162-2950691.post@n2.nabble.com> <1243081025834-2961777.post@n2.nabble.com> <1243148301622-2964328.post@n2.nabble.com> Message-ID: <1243264665009-2970131.post@n2.nabble.com> sunny74 wrote: > > > I want to use openlayers javascript library for doing operations like pan > zoom, rectangular select,tooltip etc. > Pls tell me in detail i.e step by step. I am looking for detailed > guidance/support in respect of this map display and I am ready for > alternative arrangement other than this forum. > If you r ready for alternative arrangement pls let me know I shall give u > my email id. > > Pls reply ASAP. > Hi i think you are in the wrong list then ;-) Anyway if you need the basic things like pan, zoom, select etc OpenLayers will brilliantly make the trick without needing to use any mapscript version (.NET in your case). In fact you will just need to cook a bit of JS, expose your map as WFS/WMS and you will be ready. I think you can manage the whole thing easily by reading this documentation: OpenLayers doc: http://docs.openlayers.org/ OpenLayers samples: http://openlayers.org/dev/examples/ MapServer as WMS: http://mapserver.org/ogc/wms_server.html MapServer as WFS: http://mapserver.org/ogc/wfs_server.html OpenLayers mailing lists: http://openlayers.org/mailman/listinfo If you still need a consultant to do this for you i am available, drop me an email and i will answer you best regards Paolo Corti -- View this message in context: http://n2.nabble.com/openlayers-in-vs2005-website-tp2950691p2970131.html Sent from the Mapserver - User mailing list archive at Nabble.com. From gautamvs at gmail.com Mon May 25 08:27:23 2009 From: gautamvs at gmail.com (gautamvs) Date: Mon, 25 May 2009 08:27:23 -0700 (PDT) Subject: [mapserver-users] MAXSCALEDENOM error Message-ID: <1243265243753-2970193.post@n2.nabble.com> Hi, I upgraded from mapserver 5.4.0-beta to 5.4.0, After this in map file the scale parameters - MAXSCALEDENOM and MINSCALEDENOM are not working properly means there is white map image being generated. What could be the issue? Thanks for any suggestions. Regards Gautam -- View this message in context: http://n2.nabble.com/MAXSCALEDENOM-error-tp2970193p2970193.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dmorissette at mapgears.com Mon May 25 08:40:00 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 25 May 2009 11:40:00 -0400 Subject: [mapserver-users] MapServer 5.4.0 Buffer Overflow Error In-Reply-To: <61f49d0f0905201840l8a53087yf69d9a5a56f93b0c@mail.gmail.com> References: <61f49d0f0905192018gdcfe71eqd19b7d49b1b21015@mail.gmail.com> <75b4b93e0905192239i67bf5ba4lcb6fc43345a3108b@mail.gmail.com> <61f49d0f0905200456k544a300dwbdf64535989d0213@mail.gmail.com> <61f49d0f0905201840l8a53087yf69d9a5a56f93b0c@mail.gmail.com> Message-ID: <4A1ABBD0.2000508@mapgears.com> The error you get is similar to the one fixed in GDAL 1.6.1 (http://trac.osgeo.org/gdal/ticket/2896) but it is not the same one. It is actually another instance of a similar problem in MapServer's msDrawRasterLayerLow() source code. (Thanks to EvenR for pointing that to us off-list). Until a new release of MapServer with this fix is available, you could possibly recompile MapServer with -U_FORTIFY_SOURCE or -D_FORTIFY_SOURCE=0 in the CFLAGS. Daniel Juan Felipe Alvarez Saldarriaga wrote: > Hey, I set the ubuntugis repo, but still, I got a overflow error, this > is what I got on Ubuntu installed: > > ii libgdal1-1.6.0 1.6.1-1~jaunty Geospatial Data Abstraction Library > ii mapserver-bin 5.4.0-2~jaunty MapServer utilities > ii cgi-mapserver 5.4.0-2~jaunty CGI executable for MapServer > ii proj 4.6.1-5~jaunty Cartographic projection filter and library > > I mean, I install all things from the PPA repo, but I still got the > overflow :S, thx for any answer, this is the debug from shp2img > > shp2img -all_debug 3 -m > /home/jfalvarez/projects/cms/branches/V1/docroot/map-files/9182340517c2d323061dc1cffea6e431.map > > HTTP: Starting to prepare HTTP requests. > HTTP request: id=0, http://wms.jpl.nasa.gov/browse.cgi?wms_server=wms.cgi&LAYERS > =BMNG&REQUEST=GetMap&SERVICE=WMS&FORMAT=image/jpeg&STYLES=&HEIGHT=600&VERSION=1. > 1.1&SRS=EPSG:4326&WIDTH=800&BBOX=-94.0767946577629,-54.0575959933222,-1.92320534 > 223706,15.0575959933222&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inima > ge > HTTP: Before download loop > msHTTPWriteFct(id=0, 852 bytes) > HTTP: After download loop > msHTTPExecuteRequests() timing summary per layer (connect_time + time_to_first_p > acket + download_time = total_time in seconds) > Layer 0: 0.169 + 0.248 + 0.271 = 0.688s > msDrawRasterLayerLow(BMNG): entering. > *** buffer overflow detected ***: shp2img terminated > ======= Backtrace: ========= > /lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb68bcda8] > /lib/tls/i686/cmov/libc.so.6[0xb68baeb0] > /lib/tls/i686/cmov/libc.so.6(__strcpy_chk+0x44)[0xb68ba184] > shp2img(msDrawRasterLayerLow+0xd4d)[0x812905d] > shp2img(msDrawRasterLayer+0x83)[0x80939b3] > shp2img(msDrawLayer+0x483)[0x8094a33] > shp2img(msDrawWMSLayerLow+0x598)[0x813cb08] > shp2img(msDrawMap+0x807)[0x8096387] > shp2img(main+0x912)[0x8067722] > /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb67d5775] > shp2img[0x8066d71] -- Daniel Morissette http://www.mapgears.com/ From valemunoz at gmail.com Mon May 25 09:15:35 2009 From: valemunoz at gmail.com (=?ISO-8859-1?Q?Valeria_Mu=F1oz?=) Date: Mon, 25 May 2009 12:15:35 -0400 Subject: [mapserver-users] Pink tiles Message-ID: <4b56aefe0905250915wbf68e4aiba475549515ff165@mail.gmail.com> hi do you know how can i change the pink tiles to other color and write a message? RG -------------- next part -------------- An HTML attachment was scrubbed... URL: From crschmidt at metacarta.com Mon May 25 12:00:38 2009 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Mon, 25 May 2009 15:00:38 -0400 Subject: [mapserver-users] Pink tiles In-Reply-To: <4b56aefe0905250915wbf68e4aiba475549515ff165@mail.gmail.com> References: <4b56aefe0905250915wbf68e4aiba475549515ff165@mail.gmail.com> Message-ID: <20090525190036.GA28547@metacarta.com> On Mon, May 25, 2009 at 12:15:35PM -0400, Valeria Mu?oz wrote: > hi > > do you know how can i change the pink tiles to other color and write a > message? This is an OpenLayers question. Please redirect your question to the OpenLayers mailing list. Regards, -- Christopher Schmidt MetaCarta From dmorissette at mapgears.com Mon May 25 12:58:07 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 25 May 2009 15:58:07 -0400 Subject: [mapserver-users] scalebar in svg and template In-Reply-To: <1243226277784-2967966.post@n2.nabble.com> References: <1243226277784-2967966.post@n2.nabble.com> Message-ID: <4A1AF84F.7070608@mapgears.com> windyhs wrote: > > 1. can mapserver showing the scalebar but in the svg format? > i had already tried, but it didn't work. > But if i changed the imagetype to gif or png, the scalebar show up. > No, MapServer doesn't support scalebars in SVG format. > 2. i'm using template to show the map using the tag . > how can i show the imagefile rendered from mapserver but in the svg > format? > what should i change in the tag? > > note: i'm using tag from mapserver such as [img], etc. > How to load SVG in a browser is not MapServer-specific... and in this case Google is your friend... http://www.google.ca/search?hl=en&q=embedding+svg+in+html Daniel -- Daniel Morissette http://www.mapgears.com/ From MMaganti at oriongis.com Mon May 25 15:16:58 2009 From: MMaganti at oriongis.com (Murty Maganti) Date: Mon, 25 May 2009 18:16:58 -0400 Subject: [mapserver-users] Version 5.4 binaries Message-ID: Hi Where can I get map server 5.4 binaries. MS4W website has December 2, 2008 release which appears to be version 5.2. MS4W link that I use to download binaries http://maptools.org/ms4w/index.phtml?page=downloads.html Thanks Murty -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Mon May 25 15:25:58 2009 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 25 May 2009 18:25:58 -0400 Subject: [mapserver-users] Version 5.4 binaries In-Reply-To: References: Message-ID: <4A1B1AF6.50803@gatewaygeomatics.com> Murty Maganti wrote: > Hi > > > > Where can I get map server 5.4 binaries. MS4W website has December 2, > 2008 release which appears to be version 5.2. > > > > MS4W link that I use to download binaries > > http://maptools.org/ms4w/index.phtml?page=downloads.html Hello Murty, I suggest that you join the MS4W-users mailing list to follow the MS4W releases. MS4W 3.0 is in development as mentioned on that list: http://lists.maptools.org/pipermail/ms4w-users/2009-May/001246.html Please follow the notes in that message to provide feedback. Thank you. -jeff -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From pcorti at gmail.com Mon May 25 16:24:49 2009 From: pcorti at gmail.com (Paolo Corti) Date: Mon, 25 May 2009 16:24:49 -0700 (PDT) Subject: [mapserver-users] Silverlight Interface for Mapserver In-Reply-To: <1243232118835-2968163.post@n2.nabble.com> References: <1241509375740-2791496.post@n2.nabble.com> <1243232118835-2968163.post@n2.nabble.com> Message-ID: <1243293889014-2972119.post@n2.nabble.com> adhiman wrote: > > Hi > Thanks for your reply, Silverlight uses multiimagescale control to give a > deep zoom effect with other facilities given with it like easy zooming, > panning etc. Can we use deepzoom with Mapserver applications? Also is > Tiliing and caching possible with Mapserver? > > Anil > > You can tile and cache WMS implemented with MapServer using TileCache or GeoWebCache. You then need a WMS-C/TMS redy client to access the WMS tiles. OpenLayers is an excellent and very popular choice, so i highly recommend you to use that. If you are planning to write your user interface client with Silverlight, Flash, JS or whatever you have anyway to impleement the tile logic. best regards Paolo -- View this message in context: http://n2.nabble.com/Silverlight-Interface-for-Mapserver-tp2791496p2972119.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at mmmtike.fi Mon May 25 20:35:16 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 26 May 2009 06:35:16 +0300 Subject: [mapserver-users] Version 5.4 binaries References: Message-ID: Hi, Usually it goes well to install an older MS4W, and then FWTools that comes with newer Mapserver. Then just replace the whole cgi-bin folder of MS4W with the one from FWTools and you'll have an updated Mapserver. -Jukka Rahkonen- Murty Maganti wrote: Hi Where can I get map server 5.4 binaries. MS4W website has December 2, 2008 release which appears to be version 5.2. MS4W link that I use to download binaries http://maptools.org/ms4w/index.phtml?page=downloads.html Thanks Murty From gautamvs at gmail.com Mon May 25 22:38:17 2009 From: gautamvs at gmail.com (gautamvs) Date: Mon, 25 May 2009 22:38:17 -0700 (PDT) Subject: [mapserver-users] MAXSCALEDENOM error In-Reply-To: <1243265243753-2970193.post@n2.nabble.com> References: <1243265243753-2970193.post@n2.nabble.com> Message-ID: <1243316297306-2972991.post@n2.nabble.com> Hi I could solve the problem it was due to scale computation. I had not specified the map units. After specifying the map units it worked properly. But earlier it was working without map units in mapfile. Thanks Gautam gautamvs wrote: > > Hi, > > I upgraded from mapserver 5.4.0-beta to 5.4.0, After this in map file the > scale parameters - MAXSCALEDENOM and MINSCALEDENOM are not working > properly means there is white map image being generated. What could be the > issue? > > Thanks for any suggestions. > > Regards > Gautam > -- View this message in context: http://n2.nabble.com/MAXSCALEDENOM-error-tp2970193p2972991.html Sent from the Mapserver - User mailing list archive at Nabble.com. From porath at web.de Tue May 26 01:17:43 2009 From: porath at web.de (Holger Porath) Date: Tue, 26 May 2009 10:17:43 +0200 Subject: [mapserver-users] oracle projection issue References: <39E2BB6D-2BA4-4A49-99A5-E5839425344C@porath.de> Message-ID: Hi all, we want to provide a WFS featuretype for a dataset that is stored in an oracle locator database. The database table contains a field with coordinates in UTM32 with the unit millimeter instead of meter. Our mapfile contains a PROJECTION part with the EPSG code for UTM32 (25832) but this code expects the coordinates in meters. The featuretype works but if we want to do an bbox based getFeature query, we have to provide coordinates in millimeter. That's ok for manual checks but our wfs client -probably like any other wfs client - isn't able to provide coordinates in millimeter. So any idea of how we can tell mapserver that the coordinates have millimeter units? Maybe using mapscript or with an custom PROJECTION part? We are using the native oracle spatial support (not OGR). We are not using an SRID. We are not able to recalculate the coordinates in the database. Thanks for your help. Cheers Holger From bamerbalazs at gmail.com Tue May 26 02:29:47 2009 From: bamerbalazs at gmail.com (=?UTF-8?B?QmFsw6F6cyBCw6FtZXI=?=) Date: Tue, 26 May 2009 11:29:47 +0200 Subject: [mapserver-users] Transparent PNG Message-ID: Hi All, I use Mapserver 5.2.2 and would like to produce transparent PNGs such that if there is a red polygon, its red fill and stroke would be for example 50% transparent. I need this to let an other layer's polygon appear at the same location. I tried the following way: CLASS NAME "Fekves" STYLE COLOR 27 158 119 OUTLINECOLOR 27 158 119 OPACITY 50 END END in the layer descriptions and a format part in the MAP section: OUTPUTFORMAT NAME png32 DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" END and a corresponding line IMAGETYPE png32 but not succeeded, everything is totally opaque. Mapserver is compiled using ./configure --with-oci \ --with-oraclespatial=/usr/local/instantclient_11_1 \ --with-proj --with-threads --with-gdal --with-ogr \ --with-jpeg --with-png=/usr/lib --with-php=/usr/include/php5 --with-wmsclient --with-wfsclient I tried adding the option --with-experimental-png but it missed some libraries I coudln't find. I know it is possible to generate such output using Geoserver, but now I need to use Mapserver. What is the solution? Thank you in advance, best regards: Bal?zs B?mer From thomas.bonfort at camptocamp.com Tue May 26 02:36:54 2009 From: thomas.bonfort at camptocamp.com (Thomas Bonfort) Date: Tue, 26 May 2009 11:36:54 +0200 Subject: [mapserver-users] Transparent PNG In-Reply-To: References: Message-ID: <2922382e0905260236l7eb6001di422e4c18435cc363@mail.gmail.com> OPACITY at the STYLE level as you are doing is only available for the AGG renderer, not the GD one. you should either switch to AGG rendering, or move your OPACITY keyword to the LAYER level. regards, thomas -- www.camptocamp.com +33 4 79 26 57 97 On Tue, May 26, 2009 at 11:29, Bal?zs B?mer wrote: > Hi All, > > I use Mapserver 5.2.2 and would like to produce transparent PNGs such > that if there is a red polygon, its red fill and stroke would be for > example 50% transparent. I need this to let an other layer's polygon > appear at the same location. I tried the following way: > ?CLASS > ? ?NAME "Fekves" > ? ?STYLE > ? ? ?COLOR 27 158 119 > ? ? ?OUTLINECOLOR 27 158 119 > ? ? ?OPACITY 50 > ? ?END > ?END > in the layer descriptions > > and a format part in the MAP section: > OUTPUTFORMAT > ?NAME png32 > ?DRIVER "GD/PNG" > ?MIMETYPE "image/png" > ?IMAGEMODE RGBA > ?EXTENSION "png" > END > > and a corresponding line > IMAGETYPE png32 > > but not succeeded, everything is totally opaque. Mapserver is compiled using > ./configure --with-oci \ > ?--with-oraclespatial=/usr/local/instantclient_11_1 \ > ?--with-proj --with-threads --with-gdal --with-ogr \ > ?--with-jpeg --with-png=/usr/lib --with-php=/usr/include/php5 > --with-wmsclient --with-wfsclient > > I tried adding the option --with-experimental-png but it missed some > libraries I coudln't find. > > I know it is possible to generate such output using Geoserver, but now > I need to use Mapserver. > What is the solution? > > Thank you in advance, best regards: Bal?zs B?mer > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From chris.green at ibstv.co.uk Tue May 26 09:56:04 2009 From: chris.green at ibstv.co.uk (Chris Green) Date: Tue, 26 May 2009 17:56:04 +0100 Subject: [mapserver-users] MapServer Demo Message-ID: <001c01c9de22$db93f150$92bbd3f0$@green@ibstv.co.uk> Hi All I have a problem that I can see has been experienced by others, but the advice given to those others does not fix my problem. I have successfully installed Map Server and Apache onto winXP using ms4W, and downloaded the Demo. I put the workshop-5.0 directory in the Apache.htdocs directory, and I have modified the index.html file and Itasca.map files in what seems to be a logical way. My problem is that when I launch the application I get the error message: "msSaveImageGD(): Unable to access file. Unable to open file /C:/ms4w/tmp/ms_tmp/ITASCA12433555452596.png for writing". It seems that this is related to the way that I modified the index.html file, which I did as follows: var snippet = "IMAGEPATH '/C:/ms4w/tmp/ms_tmp/'"; snippet += " IMAGEURL '/ms-tmp/'"; I have been tearing my hair out for a few hours trying to see what I have done wrong. Anyone got any suggestions please? Chris Green -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Tue May 26 11:42:45 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Tue, 26 May 2009 13:42:45 -0500 Subject: [mapserver-users] MapServer Demo In-Reply-To: <001c01c9de22$db93f150$92bbd3f0$@green@ibstv.co.uk> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA51A@s-sp22.pca.state.mn.us> Chris, Try snippet += " IMAGEURL '/tmp/' David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Chris Green Sent: Tuesday, May 26, 2009 11:56 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] MapServer Demo Hi All I have a problem that I can see has been experienced by others, but the advice given to those others does not fix my problem. I have successfully installed Map Server and Apache onto winXP using ms4W, and downloaded the Demo. I put the workshop-5.0 directory in the Apache.htdocs directory, and I have modified the index.html file and Itasca.map files in what seems to be a logical way. My problem is that when I launch the application I get the error message: "msSaveImageGD(): Unable to access file. Unable to open file /C:/ms4w/tmp/ms_tmp/ITASCA12433555452596.png for writing". It seems that this is related to the way that I modified the index.html file, which I did as follows: var snippet = "IMAGEPATH '/C:/ms4w/tmp/ms_tmp/'"; snippet += " IMAGEURL '/ms-tmp/'"; I have been tearing my hair out for a few hours trying to see what I have done wrong. Anyone got any suggestions please? Chris Green -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhaops at hotmail.com Tue May 26 12:02:26 2009 From: zhaops at hotmail.com (Peisheng Zhao) Date: Tue, 26 May 2009 19:02:26 +0000 Subject: [mapserver-users] how to set up time for WMS client Message-ID: Hi all, I found a problem when MapServer is as an WMS client. The MapServer needs an item "WMS_TIME" with a fixed value for a layer in .map file. If this item is missed, the GetMap request redirected to the other WMS does not inclue "TIME" paramemter no matter what the original GetMap request is. If this item is set up with a value, the GetMap request redirected to other WMS inclues "TIME" paramemter with that fixed value no matter what the "TIME" is set up in original GetMap request is. How to make the MapServer to redirect the getMap request with original time value? Thanks. Peisheng _________________________________________________________________ Windows Live?: Keep your life in sync. http://windowslive.com/explore?ocid=TXT_TAGLM_BR_life_in_synch_052009 -------------- next part -------------- An HTML attachment was scrubbed... URL: From chris.green at ibstv.co.uk Tue May 26 12:22:58 2009 From: chris.green at ibstv.co.uk (Chris Green) Date: Tue, 26 May 2009 20:22:58 +0100 Subject: [mapserver-users] MapServer Demo In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5056DA51A@s-sp22.pca.state.mn.us> References: <001c01c9de22$db93f150$92bbd3f0$@green@ibstv.co.uk> <6246727221874A4FB8D3F9BBC37D9BD5056DA51A@s-sp22.pca.state.mn.us> Message-ID: <003801c9de37$6185dc60$24919520$@green@ibstv.co.uk> David Thanks for the suggestion, but that doesn't do it - same error message. I have been wondering if the problem has to do with the tmp file not having permission for other (web-based) users to access it, but I tried declaring it as a system environment variable, still no success. Going round in circles now... Chris From: Fawcett, David [mailto:David.Fawcett at state.mn.us] Sent: Tuesday, May 26, 2009 7:43 PM To: chris.green at ibstv.co.uk; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] MapServer Demo Chris, Try snippet += " IMAGEURL '/tmp/' David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Chris Green Sent: Tuesday, May 26, 2009 11:56 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] MapServer Demo Hi All I have a problem that I can see has been experienced by others, but the advice given to those others does not fix my problem. I have successfully installed Map Server and Apache onto winXP using ms4W, and downloaded the Demo. I put the workshop-5.0 directory in the Apache.htdocs directory, and I have modified the index.html file and Itasca.map files in what seems to be a logical way. My problem is that when I launch the application I get the error message: "msSaveImageGD(): Unable to access file. Unable to open file /C:/ms4w/tmp/ms_tmp/ITASCA12433555452596.png for writing". It seems that this is related to the way that I modified the index.html file, which I did as follows: var snippet = "IMAGEPATH '/C:/ms4w/tmp/ms_tmp/'"; snippet += " IMAGEURL '/ms-tmp/'"; I have been tearing my hair out for a few hours trying to see what I have done wrong. Anyone got any suggestions please? Chris Green -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at geoanalytic.com Tue May 26 12:52:06 2009 From: bfraser at geoanalytic.com (Brent Fraser) Date: Tue, 26 May 2009 13:52:06 -0600 Subject: [mapserver-users] MapServer Demo In-Reply-To: <003801c9de37$6185dc60$24919520$@green@ibstv.co.uk> References: <001c01c9de22$db93f150$92bbd3f0$@green@ibstv.co.uk> <6246727221874A4FB8D3F9BBC37D9BD5056DA51A@s-sp22.pca.state.mn.us> <003801c9de37$6185dc60$24919520$@green@ibstv.co.uk> Message-ID: <4A1C4866.4060802@geoanalytic.com> Try removing the leading "/" from "/C:", to get: var snippet = "IMAGEPATH 'C:/ms4w/tmp/ms_tmp/'"; Chris Green wrote: > David > > > > Thanks for the suggestion, but that doesn?t do it ? same error message. > I have been wondering if the problem has to do with the tmp file not > having permission for other (web-based) users to access it, but I tried > declaring it as a system environment variable, still no success. Going > round in circles now?.. > > > > Chris > > > > *From:* Fawcett, David [mailto:David.Fawcett at state.mn.us] > *Sent:* Tuesday, May 26, 2009 7:43 PM > *To:* chris.green at ibstv.co.uk; mapserver-users at lists.osgeo.org > *Subject:* RE: [mapserver-users] MapServer Demo > > > > Chris, > > > > Try snippet += " IMAGEURL '/tmp/' > > > > David. > > -----Original Message----- > *From:* mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] *On Behalf Of > *Chris Green > *Sent:* Tuesday, May 26, 2009 11:56 AM > *To:* mapserver-users at lists.osgeo.org > *Subject:* [mapserver-users] MapServer Demo > > Hi All > > > > I have a problem that I can see has been experienced by others, but > the advice given to those others does not fix my problem. I have > successfully installed Map Server and Apache onto winXP using ms4W, > and downloaded the Demo. I put the workshop-5.0 directory in the > Apache.htdocs directory, and I have modified the index.html file and > Itasca.map files in what seems to be a logical way. > > > > My problem is that when I launch the application I get the error > message: ?msSaveImageGD(): Unable to access file. Unable to open > file /C:/ms4w/tmp/ms_tmp/ITASCA12433555452596.png for writing?. It > seems that this is related to the way that I modified the index.html > file, which I did as follows: > > > > var snippet = "IMAGEPATH '/C:/ms4w/tmp/ms_tmp/'"; > > snippet += " IMAGEURL '/ms-tmp/'"; > > > > I have been tearing my hair out for a few hours trying to see what I > have done wrong. Anyone got any suggestions please? > > > > > > Chris Green > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From ben at remoteinformation.com.au Tue May 26 17:17:49 2009 From: ben at remoteinformation.com.au (Ben Madin) Date: Wed, 27 May 2009 08:17:49 +0800 Subject: [mapserver-users] MapServer Demo In-Reply-To: <20090526192958.6F5A4E01692@lists.osgeo.org> References: <20090526192958.6F5A4E01692@lists.osgeo.org> Message-ID: <2E26E3E4-6420-4766-AAC7-FFF55C5C2FDC@remoteinformation.com.au> G'day Chris, On 27/05/2009, at 3:29 AM, Chris Green wrote: > ?msSaveImageGD(): Unable to access file. Unable to open file /C:/ > ms4w/tmp/ms_tmp/ITASCA12433555452596.png for writing I'm not sure about using the variables bit, but I would start by putting /C:/ms4w/tmp/ms_tmp/ into the address bar of the normal 'finder' window (is it called explorer on windows) and make certain it takes you to the directory you want. I would then be making all permissions access on this directory (ie open for anyone to read or write or execute). Do you normally prefix a / onto the directory path in windows? 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 aeskreis at gmail.com Tue May 26 23:04:03 2009 From: aeskreis at gmail.com (Adam Eskreis) Date: Wed, 27 May 2009 02:04:03 -0400 Subject: [mapserver-users] openlayers in vs2005 website In-Reply-To: <1243264665009-2970131.post@n2.nabble.com> References: <1242891289162-2950691.post@n2.nabble.com> <1243081025834-2961777.post@n2.nabble.com> <1243148301622-2964328.post@n2.nabble.com> <1243264665009-2970131.post@n2.nabble.com> Message-ID: Pretty sure since OpenLayers is pure javascript, running it in a .net environment would be just fine -Adam On Mon, May 25, 2009 at 11:17 AM, Paolo Corti wrote: > > > > sunny74 wrote: > > > > > > I want to use openlayers javascript library for doing operations like pan > > zoom, rectangular select,tooltip etc. > > Pls tell me in detail i.e step by step. I am looking for detailed > > guidance/support in respect of this map display and I am ready for > > alternative arrangement other than this forum. > > If you r ready for alternative arrangement pls let me know I shall give u > > my email id. > > > > Pls reply ASAP. > > > > Hi > > i think you are in the wrong list then ;-) > Anyway if you need the basic things like pan, zoom, select etc OpenLayers > will brilliantly make the trick without needing to use any mapscript > version > (.NET in your case). > In fact you will just need to cook a bit of JS, expose your map as WFS/WMS > and you will be ready. > I think you can manage the whole thing easily by reading this > documentation: > > OpenLayers doc: http://docs.openlayers.org/ > OpenLayers samples: http://openlayers.org/dev/examples/ > MapServer as WMS: http://mapserver.org/ogc/wms_server.html > MapServer as WFS: http://mapserver.org/ogc/wfs_server.html > OpenLayers mailing lists: http://openlayers.org/mailman/listinfo > > If you still need a consultant to do this for you i am available, drop me > an > email and i will answer you > > best regards > Paolo Corti > > > -- > View this message in context: > http://n2.nabble.com/openlayers-in-vs2005-website-tp2950691p2970131.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.dasilvapereira at iburstafrica.com Tue May 26 23:48:21 2009 From: michael.dasilvapereira at iburstafrica.com (Michael Da Silva Pereira) Date: Wed, 27 May 2009 08:48:21 +0200 Subject: [mapserver-users] Problems getting a JP2 or TIFF raster layer drawen Message-ID: Hi, I am having a problem displaying a JP2 / TIFF image in mapserver, it draws my shape files. However I can not get it to draw my RASTER layer :( Any Suggestions? MAP SIZE 1300 600 DEBUG 5 EXTENT 23.5 -34 23.6 -25 IMAGECOLOR 180 180 250 UNITS DD SCALEBAR STATUS EMBED UNITS KILOMETERS INTERVALS 3 TRANSPARENT TRUE OUTLINECOLOR 0 0 0 END LEGEND STATUS EMBED POSITION LR TRANSPARENT TRUE END WEB TEMPLATE global.html IMAGEPATH "/var/www/ms-tmp/" IMAGEURL "/ms-tmp/" END LAYER NAME vereenigingroads STATUS ON DATA vereenigingroads/vereenigingroads.shp TYPE LINE CLASS NAME 'the world' COLOR 0 0 0 END END LAYER NAME '2627D' TYPE RASTER STATUS ON DATA "/var/www/ms-tmp/2627D.JP2" END END root at michael-laptop:/var/www/ms-tmp# /usr/lib/cgi-bin/mapserv -v MapServer version 5.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=GDAL INPUT=SHAPEFILE [Wed May 27 08:47:04 2009].804606 msLoadMap(): 0.009s [Wed May 27 08:47:04 2009].845677 msDrawMap(): Layer 0 (vereenigingroads), 0.039s [Wed May 27 08:47:04 2009].845729 msDrawRasterLayerLow(2627D): entering. [Wed May 27 08:47:06 2009].130721 msDrawMap(): Layer 1 (2627D), 1.285s [Wed May 27 08:47:06 2009].131031 msDrawMap(): Drawing Label Cache, 0.000s [Wed May 27 08:47:06 2009].131063 msDrawMap() total time: 1.326s [Wed May 27 08:47:06 2009].163796 msSaveImage() total time: 0.033s [Wed May 27 08:47:06 2009].163926 msFreeMap(): freeing map at 0x91168b8. [Wed May 27 08:47:06 2009].163974 freeLayer(): freeing layer at 0x911d508. [Wed May 27 08:47:06 2009].163995 freeLayer(): freeing layer at 0x911e1d0. [Wed May 27 08:47:06 2009].164011 freeLayer(): freeing layer at 0x9246188. [Wed May 27 08:47:06 2009].164025 freeLayer(): freeing layer at 0x92fea48. [Wed May 27 08:47:06 2009].164045 shp2img total time: 1.369s root at michael-laptop:/var/www/ms-tmp# du -hs 2627D.JP2 129M 2627D.JP2 -- Regards, Michael da Silva Pereira Mobile: +27 84 245 2376 Office: +27 11 251 2036 From damarmo at gmail.com Wed May 27 00:10:11 2009 From: damarmo at gmail.com (David Martinez Morata) Date: Wed, 27 May 2009 09:10:11 +0200 Subject: [mapserver-users] Problems getting a JP2 or TIFF raster layer drawen In-Reply-To: References: Message-ID: <9771eb540905270010v20ab8e64wfc6f559ac4275631@mail.gmail.com> Hello. Try to change the palcement of your layers and configure your shape with TRANSPARENT TRUE varible.. Something like LAYER NAME '2627D' TYPE RASTER STATUS ON DATA "/var/www/ms-tmp/2627D.JP2" END LAYER NAME vereenigingroads STATUS ON DATA vereenigingroads/vereenigingroads.shp TYPE LINE TRANSPARENT TRUE CLASS NAME 'the world' COLOR 0 0 0 END END 2009/5/27 Michael Da Silva Pereira > Hi, > > I am having a problem displaying a JP2 / TIFF image in mapserver, it > draws my shape files. However I can not get it to draw my RASTER layer > :( > > Any Suggestions? > > > > > MAP > SIZE 1300 600 > DEBUG 5 > > EXTENT 23.5 -34 23.6 -25 > IMAGECOLOR 180 180 250 > UNITS DD > SCALEBAR > STATUS EMBED > UNITS KILOMETERS > INTERVALS 3 > TRANSPARENT TRUE > OUTLINECOLOR 0 0 0 > END > LEGEND > STATUS EMBED > POSITION LR > TRANSPARENT TRUE > END > WEB > TEMPLATE global.html > IMAGEPATH "/var/www/ms-tmp/" > IMAGEURL "/ms-tmp/" > END > LAYER > NAME vereenigingroads > STATUS ON > DATA vereenigingroads/vereenigingroads.shp > TYPE LINE > CLASS > NAME 'the world' > COLOR 0 0 0 > END > END > LAYER > NAME '2627D' > TYPE RASTER > STATUS ON > DATA "/var/www/ms-tmp/2627D.JP2" > END > END > > root at michael-laptop:/var/www/ms-tmp# /usr/lib/cgi-bin/mapserv -v > MapServer version 5.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV > SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=GDAL INPUT=SHAPEFILE > > [Wed May 27 08:47:04 2009].804606 msLoadMap(): 0.009s > [Wed May 27 08:47:04 2009].845677 msDrawMap(): Layer 0 > (vereenigingroads), 0.039s > [Wed May 27 08:47:04 2009].845729 msDrawRasterLayerLow(2627D): entering. > [Wed May 27 08:47:06 2009].130721 msDrawMap(): Layer 1 (2627D), 1.285s > [Wed May 27 08:47:06 2009].131031 msDrawMap(): Drawing Label Cache, 0.000s > [Wed May 27 08:47:06 2009].131063 msDrawMap() total time: 1.326s > [Wed May 27 08:47:06 2009].163796 msSaveImage() total time: 0.033s > [Wed May 27 08:47:06 2009].163926 msFreeMap(): freeing map at 0x91168b8. > [Wed May 27 08:47:06 2009].163974 freeLayer(): freeing layer at 0x911d508. > [Wed May 27 08:47:06 2009].163995 freeLayer(): freeing layer at 0x911e1d0. > [Wed May 27 08:47:06 2009].164011 freeLayer(): freeing layer at 0x9246188. > [Wed May 27 08:47:06 2009].164025 freeLayer(): freeing layer at 0x92fea48. > [Wed May 27 08:47:06 2009].164045 shp2img total time: 1.369s > > > root at michael-laptop:/var/www/ms-tmp# du -hs 2627D.JP2 > 129M 2627D.JP2 > > > -- > > Regards, > Michael da Silva Pereira > Mobile: +27 84 245 2376 > Office: +27 11 251 2036 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Martinez Morata David Thinking GIS -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.dasilvapereira at iburstafrica.com Wed May 27 00:14:45 2009 From: michael.dasilvapereira at iburstafrica.com (Michael Da Silva Pereira) Date: Wed, 27 May 2009 09:14:45 +0200 Subject: [mapserver-users] Problems getting a JP2 or TIFF raster layer drawen In-Reply-To: <9771eb540905270010v20ab8e64wfc6f559ac4275631@mail.gmail.com> References: <9771eb540905270010v20ab8e64wfc6f559ac4275631@mail.gmail.com> Message-ID: Hi, I've tried by even disabling my shapefile all together and only trying to display the raster and still no luck. Thanks 2009/5/27 David Martinez Morata : > Hello. > Try to change the palcement of your layers and configure your shape? with > TRANSPARENT TRUE varible.. > Something like > > LAYER > ? ? ? ?NAME '2627D' > ? ? ? ?TYPE RASTER > ? ? ? ?STATUS ON > ? ? ? ?DATA "/var/www/ms-tmp/2627D.JP2" > END > LAYER > ? ? ? ?NAME vereenigingroads > ? ? ? ?STATUS ON > ? ? ? ?DATA vereenigingroads/ > vereenigingroads.shp > ? ? ? ?TYPE LINE > TRANSPARENT TRUE > ? ? ? ?CLASS > ? ? ? ? ? ? ? ?NAME 'the world' > ? ? ? ? ? ? ? ?COLOR 0 0 0 > ? ? ? ?END > END > > 2009/5/27 Michael Da Silva Pereira >> >> Hi, >> >> I am having a problem displaying a JP2 / TIFF image in mapserver, it >> draws my shape files. However I can not get it to draw my RASTER layer >> :( >> >> Any Suggestions? >> >> >> >> >> MAP >> ? ? ? ?SIZE 1300 600 >> ? ? ? ?DEBUG 5 >> >> ? ? ? ?EXTENT 23.5 -34 23.6 -25 >> ? ? ? ?IMAGECOLOR 180 180 250 >> ? ? ? ?UNITS DD >> ? ? ? ?SCALEBAR >> ? ? ? ? ? ? ? ?STATUS EMBED >> ? ? ? ? ? ? ? ?UNITS KILOMETERS >> ? ? ? ? ? ? ? ?INTERVALS 3 >> ? ? ? ? ? ? ? ?TRANSPARENT TRUE >> ? ? ? ? ? ? ? ?OUTLINECOLOR 0 0 0 >> ? ? ? ?END >> LEGEND >> ? ? ? ?STATUS EMBED >> ? ? ? ?POSITION LR >> ? ? ? ?TRANSPARENT TRUE >> END >> WEB >> ? ? ? ?TEMPLATE global.html >> ? ? ? ?IMAGEPATH "/var/www/ms-tmp/" >> ? ? ? ?IMAGEURL "/ms-tmp/" >> END >> LAYER >> ? ? ? ?NAME vereenigingroads >> ? ? ? ?STATUS ON >> ? ? ? ?DATA vereenigingroads/vereenigingroads.shp >> ? ? ? ?TYPE LINE >> ? ? ? ?CLASS >> ? ? ? ? ? ? ? ?NAME 'the world' >> ? ? ? ? ? ? ? ?COLOR 0 0 0 >> ? ? ? ?END >> END >> LAYER >> ? ? ? ?NAME '2627D' >> ? ? ? ?TYPE RASTER >> ? ? ? ?STATUS ON >> ? ? ? ?DATA "/var/www/ms-tmp/2627D.JP2" >> END >> END >> >> root at michael-laptop:/var/www/ms-tmp# /usr/lib/cgi-bin/mapserv -v >> MapServer version 5.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV >> SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=GDAL INPUT=SHAPEFILE >> >> [Wed May 27 08:47:04 2009].804606 msLoadMap(): 0.009s >> [Wed May 27 08:47:04 2009].845677 msDrawMap(): Layer 0 >> (vereenigingroads), 0.039s >> [Wed May 27 08:47:04 2009].845729 msDrawRasterLayerLow(2627D): entering. >> [Wed May 27 08:47:06 2009].130721 msDrawMap(): Layer 1 (2627D), 1.285s >> [Wed May 27 08:47:06 2009].131031 msDrawMap(): Drawing Label Cache, 0.000s >> [Wed May 27 08:47:06 2009].131063 msDrawMap() total time: 1.326s >> [Wed May 27 08:47:06 2009].163796 msSaveImage() total time: 0.033s >> [Wed May 27 08:47:06 2009].163926 msFreeMap(): freeing map at 0x91168b8. >> [Wed May 27 08:47:06 2009].163974 freeLayer(): freeing layer at 0x911d508. >> [Wed May 27 08:47:06 2009].163995 freeLayer(): freeing layer at 0x911e1d0. >> [Wed May 27 08:47:06 2009].164011 freeLayer(): freeing layer at 0x9246188. >> [Wed May 27 08:47:06 2009].164025 freeLayer(): freeing layer at 0x92fea48. >> [Wed May 27 08:47:06 2009].164045 shp2img total time: 1.369s >> >> >> root at michael-laptop:/var/www/ms-tmp# du -hs 2627D.JP2 >> 129M ? ?2627D.JP2 >> >> >> -- >> >> Regards, >> Michael da Silva Pereira >> Mobile: +27 84 245 2376 >> Office: +27 11 251 2036 >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > Martinez Morata David > Thinking GIS > -- Regards, Michael da Silva Pereira Mobile: +27 84 245 2376 Office: +27 11 251 2036 From Jukka.Rahkonen at mmmtike.fi Wed May 27 01:18:46 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 27 May 2009 11:18:46 +0300 Subject: [mapserver-users] Problems getting a JP2 or TIFF raster layer drawen In-Reply-To: References: <9771eb540905270010v20ab8e64wfc6f559ac4275631@mail.gmail.com> Message-ID: Hi, Add "DEBUG 5" to your image layer definition and see the log file if it gives some more information. My check list would start from these: 1) Is your image within the EXTENT? Check it with gdalinfo. 2) Is the path to image correct? I would give the full path beginning with drive letter to the image file instead of logical path. 3) Does it work with GeoTIFF? Corvert with gdal_translate -of Gtiff 2627D.jp2 2627d.tif)? -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > Michael Da Silva Pereira > L?hetetty: 27. toukokuuta 2009 10:15 > Vastaanottaja: David Martinez Morata > Kopio: mapserver-users at lists.osgeo.org > Aihe: Re: [mapserver-users] Problems getting a JP2 or TIFF > raster layer drawen > > Hi, > > I've tried by even disabling my shapefile all together and > only trying to display the raster and still no luck. > > Thanks > > 2009/5/27 David Martinez Morata : > > Hello. > > Try to change the palcement of your layers and configure > your shape? > > with TRANSPARENT TRUE varible.. > > Something like > > > > LAYER > > ? ? ? ?NAME '2627D' > > ? ? ? ?TYPE RASTER > > ? ? ? ?STATUS ON > > ? ? ? ?DATA "/var/www/ms-tmp/2627D.JP2" > > END > > LAYER > > ? ? ? ?NAME vereenigingroads > > ? ? ? ?STATUS ON > > ? ? ? ?DATA vereenigingroads/ > > vereenigingroads.shp > > ? ? ? ?TYPE LINE > > TRANSPARENT TRUE > > ? ? ? ?CLASS > > ? ? ? ? ? ? ? ?NAME 'the world' > > ? ? ? ? ? ? ? ?COLOR 0 0 0 > > ? ? ? ?END > > END > > > > 2009/5/27 Michael Da Silva Pereira > > > >> > >> Hi, > >> > >> I am having a problem displaying a JP2 / TIFF image in > mapserver, it > >> draws my shape files. However I can not get it to draw my RASTER > >> layer :( > >> > >> Any Suggestions? > >> > >> > >> > >> > >> MAP > >> ? ? ? ?SIZE 1300 600 > >> ? ? ? ?DEBUG 5 > >> > >> ? ? ? ?EXTENT 23.5 -34 23.6 -25 > >> ? ? ? ?IMAGECOLOR 180 180 250 > >> ? ? ? ?UNITS DD > >> ? ? ? ?SCALEBAR > >> ? ? ? ? ? ? ? ?STATUS EMBED > >> ? ? ? ? ? ? ? ?UNITS KILOMETERS > >> ? ? ? ? ? ? ? ?INTERVALS 3 > >> ? ? ? ? ? ? ? ?TRANSPARENT TRUE > >> ? ? ? ? ? ? ? ?OUTLINECOLOR 0 0 0 > >> ? ? ? ?END > >> LEGEND > >> ? ? ? ?STATUS EMBED > >> ? ? ? ?POSITION LR > >> ? ? ? ?TRANSPARENT TRUE > >> END > >> WEB > >> ? ? ? ?TEMPLATE global.html > >> ? ? ? ?IMAGEPATH "/var/www/ms-tmp/" > >> ? ? ? ?IMAGEURL "/ms-tmp/" > >> END > >> LAYER > >> ? ? ? ?NAME vereenigingroads > >> ? ? ? ?STATUS ON > >> ? ? ? ?DATA vereenigingroads/vereenigingroads.shp > >> ? ? ? ?TYPE LINE > >> ? ? ? ?CLASS > >> ? ? ? ? ? ? ? ?NAME 'the world' > >> ? ? ? ? ? ? ? ?COLOR 0 0 0 > >> ? ? ? ?END > >> END > >> LAYER > >> ? ? ? ?NAME '2627D' > >> ? ? ? ?TYPE RASTER > >> ? ? ? ?STATUS ON > >> ? ? ? ?DATA "/var/www/ms-tmp/2627D.JP2" > >> END > >> END > >> > >> root at michael-laptop:/var/www/ms-tmp# /usr/lib/cgi-bin/mapserv -v > >> MapServer version 5.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > OUTPUT=WBMP > >> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV > >> SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=GDAL INPUT=SHAPEFILE > >> > >> [Wed May 27 08:47:04 2009].804606 msLoadMap(): 0.009s [Wed May 27 > >> 08:47:04 2009].845677 msDrawMap(): Layer 0 > (vereenigingroads), 0.039s > >> [Wed May 27 08:47:04 2009].845729 > msDrawRasterLayerLow(2627D): entering. > >> [Wed May 27 08:47:06 2009].130721 msDrawMap(): Layer 1 (2627D), > >> 1.285s [Wed May 27 08:47:06 2009].131031 msDrawMap(): > Drawing Label > >> Cache, 0.000s [Wed May 27 08:47:06 2009].131063 msDrawMap() total > >> time: 1.326s [Wed May 27 08:47:06 2009].163796 msSaveImage() total > >> time: 0.033s [Wed May 27 08:47:06 2009].163926 > msFreeMap(): freeing map at 0x91168b8. > >> [Wed May 27 08:47:06 2009].163974 freeLayer(): freeing > layer at 0x911d508. > >> [Wed May 27 08:47:06 2009].163995 freeLayer(): freeing > layer at 0x911e1d0. > >> [Wed May 27 08:47:06 2009].164011 freeLayer(): freeing > layer at 0x9246188. > >> [Wed May 27 08:47:06 2009].164025 freeLayer(): freeing > layer at 0x92fea48. > >> [Wed May 27 08:47:06 2009].164045 shp2img total time: 1.369s > >> > >> > >> root at michael-laptop:/var/www/ms-tmp# du -hs 2627D.JP2 129M ? ? > >> 2627D.JP2 > >> > >> > >> -- > >> > >> Regards, > >> Michael da Silva Pereira > >> Mobile: +27 84 245 2376 > >> Office: +27 11 251 2036 > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > -- > > Martinez Morata David > > Thinking GIS > > > > > > -- > > Regards, > Michael da Silva Pereira > Mobile: +27 84 245 2376 > Office: +27 11 251 2036 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From pvoudouris at gaiocorp.com Wed May 27 01:22:42 2009 From: pvoudouris at gaiocorp.com (Pano Voudouris) Date: Wed, 27 May 2009 11:22:42 +0300 Subject: [mapserver-users] Problems getting a JP2 or TIFF raster layer drawen In-Reply-To: References: <9771eb540905270010v20ab8e64wfc6f559ac4275631@mail.gmail.com> Message-ID: <009901c9dea4$4fe12dd0$efa38970$@com> How are you trying to display the mapfile? Just by using cgi-bin? E.g. .../mapserv.exe?map=&mode=map ...etc? I have found- and I am not sure if this is a bug or not that the mode=map ignores any raster layers. If you use mode=browse or mapscript it works w/out a problem. Anyone? Is this a known issue?? Pano -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Michael Da Silva Pereira Sent: 27 May 2009 10:15 To: David Martinez Morata Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problems getting a JP2 or TIFF raster layer drawen Hi, I've tried by even disabling my shapefile all together and only trying to display the raster and still no luck. Thanks 2009/5/27 David Martinez Morata : > Hello. > Try to change the palcement of your layers and configure your shape? with > TRANSPARENT TRUE varible.. > Something like > > LAYER > ? ? ? ?NAME '2627D' > ? ? ? ?TYPE RASTER > ? ? ? ?STATUS ON > ? ? ? ?DATA "/var/www/ms-tmp/2627D.JP2" > END > LAYER > ? ? ? ?NAME vereenigingroads > ? ? ? ?STATUS ON > ? ? ? ?DATA vereenigingroads/ > vereenigingroads.shp > ? ? ? ?TYPE LINE > TRANSPARENT TRUE > ? ? ? ?CLASS > ? ? ? ? ? ? ? ?NAME 'the world' > ? ? ? ? ? ? ? ?COLOR 0 0 0 > ? ? ? ?END > END > > 2009/5/27 Michael Da Silva Pereira >> >> Hi, >> >> I am having a problem displaying a JP2 / TIFF image in mapserver, it >> draws my shape files. However I can not get it to draw my RASTER layer >> :( >> >> Any Suggestions? >> >> >> >> >> MAP >> ? ? ? ?SIZE 1300 600 >> ? ? ? ?DEBUG 5 >> >> ? ? ? ?EXTENT 23.5 -34 23.6 -25 >> ? ? ? ?IMAGECOLOR 180 180 250 >> ? ? ? ?UNITS DD >> ? ? ? ?SCALEBAR >> ? ? ? ? ? ? ? ?STATUS EMBED >> ? ? ? ? ? ? ? ?UNITS KILOMETERS >> ? ? ? ? ? ? ? ?INTERVALS 3 >> ? ? ? ? ? ? ? ?TRANSPARENT TRUE >> ? ? ? ? ? ? ? ?OUTLINECOLOR 0 0 0 >> ? ? ? ?END >> LEGEND >> ? ? ? ?STATUS EMBED >> ? ? ? ?POSITION LR >> ? ? ? ?TRANSPARENT TRUE >> END >> WEB >> ? ? ? ?TEMPLATE global.html >> ? ? ? ?IMAGEPATH "/var/www/ms-tmp/" >> ? ? ? ?IMAGEURL "/ms-tmp/" >> END >> LAYER >> ? ? ? ?NAME vereenigingroads >> ? ? ? ?STATUS ON >> ? ? ? ?DATA vereenigingroads/vereenigingroads.shp >> ? ? ? ?TYPE LINE >> ? ? ? ?CLASS >> ? ? ? ? ? ? ? ?NAME 'the world' >> ? ? ? ? ? ? ? ?COLOR 0 0 0 >> ? ? ? ?END >> END >> LAYER >> ? ? ? ?NAME '2627D' >> ? ? ? ?TYPE RASTER >> ? ? ? ?STATUS ON >> ? ? ? ?DATA "/var/www/ms-tmp/2627D.JP2" >> END >> END >> >> root at michael-laptop:/var/www/ms-tmp# /usr/lib/cgi-bin/mapserv -v >> MapServer version 5.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV >> SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=GDAL INPUT=SHAPEFILE >> >> [Wed May 27 08:47:04 2009].804606 msLoadMap(): 0.009s >> [Wed May 27 08:47:04 2009].845677 msDrawMap(): Layer 0 >> (vereenigingroads), 0.039s >> [Wed May 27 08:47:04 2009].845729 msDrawRasterLayerLow(2627D): entering. >> [Wed May 27 08:47:06 2009].130721 msDrawMap(): Layer 1 (2627D), 1.285s >> [Wed May 27 08:47:06 2009].131031 msDrawMap(): Drawing Label Cache, 0.000s >> [Wed May 27 08:47:06 2009].131063 msDrawMap() total time: 1.326s >> [Wed May 27 08:47:06 2009].163796 msSaveImage() total time: 0.033s >> [Wed May 27 08:47:06 2009].163926 msFreeMap(): freeing map at 0x91168b8. >> [Wed May 27 08:47:06 2009].163974 freeLayer(): freeing layer at 0x911d508. >> [Wed May 27 08:47:06 2009].163995 freeLayer(): freeing layer at 0x911e1d0. >> [Wed May 27 08:47:06 2009].164011 freeLayer(): freeing layer at 0x9246188. >> [Wed May 27 08:47:06 2009].164025 freeLayer(): freeing layer at 0x92fea48. >> [Wed May 27 08:47:06 2009].164045 shp2img total time: 1.369s >> >> >> root at michael-laptop:/var/www/ms-tmp# du -hs 2627D.JP2 >> 129M ? ?2627D.JP2 >> >> >> -- >> >> Regards, >> Michael da Silva Pereira >> Mobile: +27 84 245 2376 >> Office: +27 11 251 2036 >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > -- > Martinez Morata David > Thinking GIS > -- Regards, Michael da Silva Pereira Mobile: +27 84 245 2376 Office: +27 11 251 2036 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Jukka.Rahkonen at mmmtike.fi Wed May 27 01:44:44 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 27 May 2009 11:44:44 +0300 Subject: [mapserver-users] Problems getting a JP2 or TIFF raster layerdrawen In-Reply-To: <009901c9dea4$4fe12dd0$efa38970$@com> References: <9771eb540905270010v20ab8e64wfc6f559ac4275631@mail.gmail.com> <009901c9dea4$4fe12dd0$efa38970$@com> Message-ID: Hi, I just tried, and for me Mapserver 5.2.1 with mode=map does show rasters as well. Have you selected the layers to be shown with "&layers=..."? Naturally if their status is DEFAULT this is not needed. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > Pano Voudouris > L?hetetty: 27. toukokuuta 2009 11:23 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: RE: [mapserver-users] Problems getting a JP2 or TIFF > raster layerdrawen > > How are you trying to display the mapfile? Just by using cgi-bin? E.g. > .../mapserv.exe?map=&mode=map ...etc? > I have found- and I am not sure if this is a bug or not that > the mode=map ignores any raster layers. If you use > mode=browse or mapscript it works w/out a problem. Anyone? Is > this a known issue?? > > Pano > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Michael Da Silva Pereira > Sent: 27 May 2009 10:15 > To: David Martinez Morata > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Problems getting a JP2 or TIFF > raster layer drawen > > Hi, > > I've tried by even disabling my shapefile all together and > only trying to display the raster and still no luck. > > Thanks > > 2009/5/27 David Martinez Morata : > > Hello. > > Try to change the palcement of your layers and configure > your shape? > > with TRANSPARENT TRUE varible.. > > Something like > > > > LAYER > > ? ? ? ?NAME '2627D' > > ? ? ? ?TYPE RASTER > > ? ? ? ?STATUS ON > > ? ? ? ?DATA "/var/www/ms-tmp/2627D.JP2" > > END > > LAYER > > ? ? ? ?NAME vereenigingroads > > ? ? ? ?STATUS ON > > ? ? ? ?DATA vereenigingroads/ > > vereenigingroads.shp > > ? ? ? ?TYPE LINE > > TRANSPARENT TRUE > > ? ? ? ?CLASS > > ? ? ? ? ? ? ? ?NAME 'the world' > > ? ? ? ? ? ? ? ?COLOR 0 0 0 > > ? ? ? ?END > > END > > > > 2009/5/27 Michael Da Silva Pereira > > >> > >> Hi, > >> > >> I am having a problem displaying a JP2 / TIFF image in > mapserver, it > >> draws my shape files. However I can not get it to draw my RASTER > >> layer :( > >> > >> Any Suggestions? > >> > >> > >> > >> > >> MAP > >> ? ? ? ?SIZE 1300 600 > >> ? ? ? ?DEBUG 5 > >> > >> ? ? ? ?EXTENT 23.5 -34 23.6 -25 > >> ? ? ? ?IMAGECOLOR 180 180 250 > >> ? ? ? ?UNITS DD > >> ? ? ? ?SCALEBAR > >> ? ? ? ? ? ? ? ?STATUS EMBED > >> ? ? ? ? ? ? ? ?UNITS KILOMETERS > >> ? ? ? ? ? ? ? ?INTERVALS 3 > >> ? ? ? ? ? ? ? ?TRANSPARENT TRUE > >> ? ? ? ? ? ? ? ?OUTLINECOLOR 0 0 0 > >> ? ? ? ?END > >> LEGEND > >> ? ? ? ?STATUS EMBED > >> ? ? ? ?POSITION LR > >> ? ? ? ?TRANSPARENT TRUE > >> END > >> WEB > >> ? ? ? ?TEMPLATE global.html > >> ? ? ? ?IMAGEPATH "/var/www/ms-tmp/" > >> ? ? ? ?IMAGEURL "/ms-tmp/" > >> END > >> LAYER > >> ? ? ? ?NAME vereenigingroads > >> ? ? ? ?STATUS ON > >> ? ? ? ?DATA vereenigingroads/vereenigingroads.shp > >> ? ? ? ?TYPE LINE > >> ? ? ? ?CLASS > >> ? ? ? ? ? ? ? ?NAME 'the world' > >> ? ? ? ? ? ? ? ?COLOR 0 0 0 > >> ? ? ? ?END > >> END > >> LAYER > >> ? ? ? ?NAME '2627D' > >> ? ? ? ?TYPE RASTER > >> ? ? ? ?STATUS ON > >> ? ? ? ?DATA "/var/www/ms-tmp/2627D.JP2" > >> END > >> END > >> > >> root at michael-laptop:/var/www/ms-tmp# /usr/lib/cgi-bin/mapserv -v > >> MapServer version 5.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > OUTPUT=WBMP > >> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV > >> SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=GDAL INPUT=SHAPEFILE > >> > >> [Wed May 27 08:47:04 2009].804606 msLoadMap(): 0.009s [Wed May 27 > >> 08:47:04 2009].845677 msDrawMap(): Layer 0 > (vereenigingroads), 0.039s > >> [Wed May 27 08:47:04 2009].845729 > msDrawRasterLayerLow(2627D): entering. > >> [Wed May 27 08:47:06 2009].130721 msDrawMap(): Layer 1 (2627D), > >> 1.285s [Wed May 27 08:47:06 2009].131031 msDrawMap(): > Drawing Label > >> Cache, > 0.000s > >> [Wed May 27 08:47:06 2009].131063 msDrawMap() total time: > 1.326s [Wed > >> May 27 08:47:06 2009].163796 msSaveImage() total time: 0.033s [Wed > >> May 27 08:47:06 2009].163926 msFreeMap(): freeing map at 0x91168b8. > >> [Wed May 27 08:47:06 2009].163974 freeLayer(): freeing layer at > 0x911d508. > >> [Wed May 27 08:47:06 2009].163995 freeLayer(): freeing layer at > 0x911e1d0. > >> [Wed May 27 08:47:06 2009].164011 freeLayer(): freeing layer at > 0x9246188. > >> [Wed May 27 08:47:06 2009].164025 freeLayer(): freeing layer at > 0x92fea48. > >> [Wed May 27 08:47:06 2009].164045 shp2img total time: 1.369s > >> > >> > >> root at michael-laptop:/var/www/ms-tmp# du -hs 2627D.JP2 129M ? ? > >> 2627D.JP2 > >> > >> > >> -- > >> > >> Regards, > >> Michael da Silva Pereira > >> Mobile: +27 84 245 2376 > >> Office: +27 11 251 2036 > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > -- > > Martinez Morata David > > Thinking GIS > > > > > > -- > > Regards, > Michael da Silva Pereira > Mobile: +27 84 245 2376 > Office: +27 11 251 2036 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From michael.dasilvapereira at iburstafrica.com Wed May 27 01:46:25 2009 From: michael.dasilvapereira at iburstafrica.com (Michael Da Silva Pereira) Date: Wed, 27 May 2009 10:46:25 +0200 Subject: [mapserver-users] Problems getting a JP2 or TIFF raster layer drawen In-Reply-To: <009901c9dea4$4fe12dd0$efa38970$@com> References: <9771eb540905270010v20ab8e64wfc6f559ac4275631@mail.gmail.com> <009901c9dea4$4fe12dd0$efa38970$@com> Message-ID: I am trying to display from browser using browse mode, and using shp2img to test drawing to a straight .png /home/michael/mapserver-5.4.0/shp2img -m global.map -o test.png -all_debug 1000 2009/5/27 Pano Voudouris : > How are you trying to display the mapfile? Just by using cgi-bin? E.g. > .../mapserv.exe?map=&mode=map ...etc? > I have found- and I am not sure if this is a bug or not that the mode=map > ignores any raster layers. If you use mode=browse or mapscript it works > w/out a problem. Anyone? Is this a known issue?? > > Pano > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Michael Da > Silva Pereira > Sent: 27 May 2009 10:15 > To: David Martinez Morata > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Problems getting a JP2 or TIFF raster layer > drawen > > Hi, > > I've tried by even disabling my shapefile all together and only trying > to display the raster and still no luck. > > Thanks > > 2009/5/27 David Martinez Morata : >> Hello. >> Try to change the palcement of your layers and configure your shape? with >> TRANSPARENT TRUE varible.. >> Something like >> >> LAYER >> ? ? ? ?NAME '2627D' >> ? ? ? ?TYPE RASTER >> ? ? ? ?STATUS ON >> ? ? ? ?DATA "/var/www/ms-tmp/2627D.JP2" >> END >> LAYER >> ? ? ? ?NAME vereenigingroads >> ? ? ? ?STATUS ON >> ? ? ? ?DATA vereenigingroads/ >> vereenigingroads.shp >> ? ? ? ?TYPE LINE >> TRANSPARENT TRUE >> ? ? ? ?CLASS >> ? ? ? ? ? ? ? ?NAME 'the world' >> ? ? ? ? ? ? ? ?COLOR 0 0 0 >> ? ? ? ?END >> END >> >> 2009/5/27 Michael Da Silva Pereira > >>> >>> Hi, >>> >>> I am having a problem displaying a JP2 / TIFF image in mapserver, it >>> draws my shape files. However I can not get it to draw my RASTER layer >>> :( >>> >>> Any Suggestions? >>> >>> >>> >>> >>> MAP >>> ? ? ? ?SIZE 1300 600 >>> ? ? ? ?DEBUG 5 >>> >>> ? ? ? ?EXTENT 23.5 -34 23.6 -25 >>> ? ? ? ?IMAGECOLOR 180 180 250 >>> ? ? ? ?UNITS DD >>> ? ? ? ?SCALEBAR >>> ? ? ? ? ? ? ? ?STATUS EMBED >>> ? ? ? ? ? ? ? ?UNITS KILOMETERS >>> ? ? ? ? ? ? ? ?INTERVALS 3 >>> ? ? ? ? ? ? ? ?TRANSPARENT TRUE >>> ? ? ? ? ? ? ? ?OUTLINECOLOR 0 0 0 >>> ? ? ? ?END >>> LEGEND >>> ? ? ? ?STATUS EMBED >>> ? ? ? ?POSITION LR >>> ? ? ? ?TRANSPARENT TRUE >>> END >>> WEB >>> ? ? ? ?TEMPLATE global.html >>> ? ? ? ?IMAGEPATH "/var/www/ms-tmp/" >>> ? ? ? ?IMAGEURL "/ms-tmp/" >>> END >>> LAYER >>> ? ? ? ?NAME vereenigingroads >>> ? ? ? ?STATUS ON >>> ? ? ? ?DATA vereenigingroads/vereenigingroads.shp >>> ? ? ? ?TYPE LINE >>> ? ? ? ?CLASS >>> ? ? ? ? ? ? ? ?NAME 'the world' >>> ? ? ? ? ? ? ? ?COLOR 0 0 0 >>> ? ? ? ?END >>> END >>> LAYER >>> ? ? ? ?NAME '2627D' >>> ? ? ? ?TYPE RASTER >>> ? ? ? ?STATUS ON >>> ? ? ? ?DATA "/var/www/ms-tmp/2627D.JP2" >>> END >>> END >>> >>> root at michael-laptop:/var/www/ms-tmp# /usr/lib/cgi-bin/mapserv -v >>> MapServer version 5.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >>> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV >>> SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=GDAL INPUT=SHAPEFILE >>> >>> [Wed May 27 08:47:04 2009].804606 msLoadMap(): 0.009s >>> [Wed May 27 08:47:04 2009].845677 msDrawMap(): Layer 0 >>> (vereenigingroads), 0.039s >>> [Wed May 27 08:47:04 2009].845729 msDrawRasterLayerLow(2627D): entering. >>> [Wed May 27 08:47:06 2009].130721 msDrawMap(): Layer 1 (2627D), 1.285s >>> [Wed May 27 08:47:06 2009].131031 msDrawMap(): Drawing Label Cache, > 0.000s >>> [Wed May 27 08:47:06 2009].131063 msDrawMap() total time: 1.326s >>> [Wed May 27 08:47:06 2009].163796 msSaveImage() total time: 0.033s >>> [Wed May 27 08:47:06 2009].163926 msFreeMap(): freeing map at 0x91168b8. >>> [Wed May 27 08:47:06 2009].163974 freeLayer(): freeing layer at > 0x911d508. >>> [Wed May 27 08:47:06 2009].163995 freeLayer(): freeing layer at > 0x911e1d0. >>> [Wed May 27 08:47:06 2009].164011 freeLayer(): freeing layer at > 0x9246188. >>> [Wed May 27 08:47:06 2009].164025 freeLayer(): freeing layer at > 0x92fea48. >>> [Wed May 27 08:47:06 2009].164045 shp2img total time: 1.369s >>> >>> >>> root at michael-laptop:/var/www/ms-tmp# du -hs 2627D.JP2 >>> 129M ? ?2627D.JP2 >>> >>> >>> -- >>> >>> Regards, >>> Michael da Silva Pereira >>> Mobile: +27 84 245 2376 >>> Office: +27 11 251 2036 >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> -- >> Martinez Morata David >> Thinking GIS >> > > > > -- > > Regards, > Michael da Silva Pereira > Mobile: +27 84 245 2376 > Office: +27 11 251 2036 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Regards, Michael da Silva Pereira Mobile: +27 84 245 2376 Office: +27 11 251 2036 From David.Fawcett at state.mn.us Wed May 27 06:47:08 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Wed, 27 May 2009 08:47:08 -0500 Subject: [mapserver-users] MapServer Demo In-Reply-To: <2E26E3E4-6420-4766-AAC7-FFF55C5C2FDC@remoteinformation.com.au> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA51F@s-sp22.pca.state.mn.us> Chris and I solved this one yesterday. It was the problem that Ben and Brent also pointed out. The solution was either to drop the '/' prefix or get rid of the 'C:/'. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ben Madin Sent: Tuesday, May 26, 2009 7:18 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MapServer Demo G'day Chris, On 27/05/2009, at 3:29 AM, Chris Green wrote: > "msSaveImageGD(): Unable to access file. Unable to open file /C:/ > ms4w/tmp/ms_tmp/ITASCA12433555452596.png for writing I'm not sure about using the variables bit, but I would start by putting /C:/ms4w/tmp/ms_tmp/ into the address bar of the normal 'finder' window (is it called explorer on windows) and make certain it takes you to the directory you want. I would then be making all permissions access on this directory (ie open for anyone to read or write or execute). Do you normally prefix a / onto the directory path in windows? 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... _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From warmerdam at pobox.com Wed May 27 08:59:09 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 27 May 2009 11:59:09 -0400 Subject: [mapserver-users] Problems getting a JP2 or TIFF raster layer drawen In-Reply-To: References: <9771eb540905270010v20ab8e64wfc6f559ac4275631@mail.gmail.com> <009901c9dea4$4fe12dd0$efa38970$@com> Message-ID: <4A1D634D.3060509@pobox.com> Michael Da Silva Pereira wrote: > I am trying to display from browser using browse mode, > and using shp2img to test drawing to a straight .png > /home/michael/mapserver-5.4.0/shp2img -m global.map -o test.png -all_debug 1000 Michael, And what output do you see? You might also try setting the CPL_DEBUG environment variable to ON. eg. export CPL_DEBUG=ON /home/michael/mapserver-5.4.0/shp2img -m global.map -o test.png -all_debug 1000 Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From pcorti at gmail.com Wed May 27 09:04:23 2009 From: pcorti at gmail.com (Paolo Corti) Date: Wed, 27 May 2009 18:04:23 +0200 Subject: [mapserver-users] MapServer Demo Message-ID: > Thanks for the suggestion, but that doesn't do it - same error message. I > have been wondering if the problem has to do with the tmp file not having > permission for other (web-based) users to access it, but I tried declaring > it as a system environment variable, still no success. Going round in > circles now... as far as i remember Apache service in Windows is running under LocalSystem users so it shouldn't be a permission issue (that user has full access to filesystem), though you may make sure about this setting full control to everyone in folder properties. best regards From michael.dasilvapereira at iburstafrica.com Wed May 27 09:06:15 2009 From: michael.dasilvapereira at iburstafrica.com (Michael Da Silva Pereira) Date: Wed, 27 May 2009 18:06:15 +0200 Subject: [mapserver-users] Problems getting a JP2 or TIFF raster layer drawen In-Reply-To: <4A1D634D.3060509@pobox.com> References: <9771eb540905270010v20ab8e64wfc6f559ac4275631@mail.gmail.com> <009901c9dea4$4fe12dd0$efa38970$@com> <4A1D634D.3060509@pobox.com> Message-ID: It displays everything normally, except the raster, which is just not drawn GDAL: Auto register /usr/lib/gdal15plugins/gdal_GRASS.so using GDALRegister_GRASS. [Wed May 27 18:04:41 2009].197691 msLoadMap(): 0.570s [Wed May 27 18:04:41 2009].414187 msDrawMap(): Layer 0 (vereenigingroads), 0.194s [Wed May 27 18:04:41 2009].414307 msDrawRasterLayerLow(2627D): entering. JPEG2000: IHDR box found. Dump: width=20018, height=22269, numcmpts=3, bpp=8 JPEG2000: Component 0: bpp=8, signedness=0 JPEG2000: Component 1: bpp=8, signedness=0 JPEG2000: Component 2: bpp=8, signedness=0 GDALJP2Metadata: Got projection from GeoJP2 (geotiff) box: PROJCS["WGS 84 / UTM zone 35S",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.2572235629972,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",27],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",10000000],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AUTHORITY["EPSG","32735"]] GDAL: GDALOpen(/var/www/ms-tmp/./2627D.JP2) succeeds as JPEG2000. GDAL: GDALClose(/var/www/ms-tmp/./2627D.JP2) [Wed May 27 18:04:46 2009].785278 msDrawMap(): Layer 1 (2627D), 5.371s [Wed May 27 18:04:46 2009].786307 msDrawMap(): Drawing Label Cache, 0.000s [Wed May 27 18:04:46 2009].786388 msDrawMap() total time: 5.588s [Wed May 27 18:04:46 2009].829842 msSaveImage() total time: 0.043s [Wed May 27 18:04:46 2009].830048 msFreeMap(): freeing map at 0x9732ac8. [Wed May 27 18:04:46 2009].830136 freeLayer(): freeing layer at 0x9739718. [Wed May 27 18:04:46 2009].830201 freeLayer(): freeing layer at 0x9862a68. [Wed May 27 18:04:46 2009].830240 freeLayer(): freeing layer at 0x991bb38. [Wed May 27 18:04:46 2009].830289 shp2img total time: 6.202s GDAL: GDALDeregister_GTiff() called. 2009/5/27 Frank Warmerdam > Michael Da Silva Pereira wrote: > >> I am trying to display from browser using browse mode, >> and using shp2img to test drawing to a straight .png >> /home/michael/mapserver-5.4.0/shp2img -m global.map -o test.png -all_debug >> 1000 >> > > Michael, > > And what output do you see? You might also try setting the CPL_DEBUG > environment variable to ON. > > eg. > > export CPL_DEBUG=ON > /home/michael/mapserver-5.4.0/shp2img -m global.map -o test.png -all_debug > 1000 > > Best regards, > -- > > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > > -- Regards, Michael da Silva Pereira Mobile: +27 84 245 2376 Office: +27 11 251 2036 -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Wed May 27 09:56:50 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 27 May 2009 12:56:50 -0400 Subject: [mapserver-users] Problems getting a JP2 or TIFF raster layer drawen In-Reply-To: References: <9771eb540905270010v20ab8e64wfc6f559ac4275631@mail.gmail.com> <009901c9dea4$4fe12dd0$efa38970$@com> <4A1D634D.3060509@pobox.com> Message-ID: <4A1D70D2.30906@pobox.com> Michael Da Silva Pereira wrote: > It displays everything normally, except the raster, which is just not drawn > > GDAL: Auto register /usr/lib/gdal15plugins/gdal_GRASS.so using > GDALRegister_GRASS. > [Wed May 27 18:04:41 2009].197691 msLoadMap(): 0.570s > [Wed May 27 18:04:41 2009].414187 msDrawMap(): Layer 0 > (vereenigingroads), 0.194s > [Wed May 27 18:04:41 2009].414307 msDrawRasterLayerLow(2627D): entering. > JPEG2000: IHDR box found. Dump: width=20018, height=22269, numcmpts=3, bpp=8 > JPEG2000: Component 0: bpp=8, signedness=0 > JPEG2000: Component 1: bpp=8, signedness=0 > JPEG2000: Component 2: bpp=8, signedness=0 > GDALJP2Metadata: Got projection from GeoJP2 (geotiff) box: PROJCS["WGS > 84 / UTM zone 35S",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS > 84",6378137,298.2572235629972,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",27],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",10000000],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AUTHORITY["EPSG","32735"]] > GDAL: GDALOpen(/var/www/ms-tmp/./2627D.JP2) succeeds as JPEG2000. > GDAL: GDALClose(/var/www/ms-tmp/./2627D.JP2) Michael, The file is opening fine, so I would suggest very carefully considering the georeferenced bounds reported by gdalinfo for the file, and the map region you are drawing. In fact, the coordinate system of file this is UTM 35S, but your map is in lat/long degrees. If you want MapServer to reproject a UTM image to lat/long on the fly you will need to specify appropriate PROJECTION blocks for the map and the raster layer - which I observe you have not done. For the MAP perhaps something like: PROJECTION "+proj=latlong +datum=WGS84" END and for the raster layer something like: PROJECTION "+proj=utm +zone=35 +south +datum=WGS84" END Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From aeskreis at gmail.com Wed May 27 10:26:11 2009 From: aeskreis at gmail.com (Adam Eskreis) Date: Wed, 27 May 2009 13:26:11 -0400 Subject: [mapserver-users] Attribute based symbol Message-ID: I am trying to create a layer that has a symbol, however, I want the symbol for each geometry to be based on a field from the database. For instance, I am trying to make a layer that would look something like this: LAYER GROUP symbol_layer TYPE point STATUS on CONNECTIONTYPE postgis CONNECTION "" DATA "the_geom from (SELECT the_geom, symbol_img_url from foo) as foo using unique id using SRID=-1" CLASS STYLE SYMBOL "[symbol_img_url]" END END END Is something like this possible? If not, what part of the source would I have to edit in order to make it possible? Thank you -Adam -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Wed May 27 11:26:47 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 27 May 2009 13:26:47 -0500 Subject: [mapserver-users] Attribute based symbol In-Reply-To: References: Message-ID: <4A1D3F96.5157.008F.0@dnr.state.mn.us> You can bind a style symbol to an attribute. The value needs to be the name of a system already loaded by MapServer or the name of a local image. You cannot reference a image url. Steve >>> On 5/27/2009 at 12:26 PM, in message , Adam Eskreis wrote: > I am trying to create a layer that has a symbol, however, I want the symbol > for each geometry to be based on a field from the database. For instance, I > am trying to make a layer that would look something like this: > > LAYER > GROUP symbol_layer > TYPE point > STATUS on > CONNECTIONTYPE postgis > CONNECTION "" > DATA "the_geom from (SELECT the_geom, symbol_img_url from foo) as foo > using unique id using SRID=-1" > CLASS > STYLE > SYMBOL "[symbol_img_url]" > END > END > END > > Is something like this possible? If not, what part of the source would I > have to edit in order to make it possible? > > Thank you > > -Adam From aeskreis at gmail.com Wed May 27 11:59:27 2009 From: aeskreis at gmail.com (Adam Eskreis) Date: Wed, 27 May 2009 14:59:27 -0400 Subject: [mapserver-users] Attribute based symbol In-Reply-To: <4A1D3F96.5157.008F.0@dnr.state.mn.us> References: <4A1D3F96.5157.008F.0@dnr.state.mn.us> Message-ID: It doesn't seem to be working for me I get the following error from apache: [MapServer Error]: msAddImageSymbol(): Error opening image file /var/www/htdocs/maps/[symbol]. I am using the symbol as: SYMBOL "[symbol]" I also tried SYMBOL [symbol] neitehr works Is this only possible with mapserver 5? I believe I am using 4.10 Thank you -Adam On Wed, May 27, 2009 at 2:26 PM, Steve Lime wrote: > You can bind a style symbol to an attribute. The value needs to be the name > of a > system already loaded by MapServer or the name of a local image. You cannot > reference a image url. > > Steve > > >>> On 5/27/2009 at 12:26 PM, in message > , Adam Eskreis > wrote: > > I am trying to create a layer that has a symbol, however, I want the > symbol > > for each geometry to be based on a field from the database. For > instance, I > > am trying to make a layer that would look something like this: > > > > LAYER > > GROUP symbol_layer > > TYPE point > > STATUS on > > CONNECTIONTYPE postgis > > CONNECTION "" > > DATA "the_geom from (SELECT the_geom, symbol_img_url from foo) as foo > > using unique id using SRID=-1" > > CLASS > > STYLE > > SYMBOL "[symbol_img_url]" > > END > > END > > END > > > > Is something like this possible? If not, what part of the source would I > > have to edit in order to make it possible? > > > > Thank you > > > > -Adam > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mitchelljj98 at gmail.com Wed May 27 12:00:21 2009 From: mitchelljj98 at gmail.com (John Mitchell) Date: Wed, 27 May 2009 15:00:21 -0400 Subject: [mapserver-users] Can MapServer host JPEG2000 Interactive Protocol (JPIP) streaming? Message-ID: Hi, Can MapServer host JPEG2000 Interactive Protocol (JPIP) streaming? Thanks, John Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Wed May 27 12:12:55 2009 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 27 May 2009 15:12:55 -0400 Subject: [mapserver-users] Can MapServer host JPEG2000 Interactive Protocol (JPIP) streaming? In-Reply-To: References: Message-ID: <4A1D90B7.7010903@pobox.com> John Mitchell wrote: > Hi, > > Can MapServer host JPEG2000 Interactive Protocol (JPIP) streaming? John, No, MapServer cannot *serve* JPIP. It may be able to act as a client to a JPIP server - using a JPIP server's output for an input to rendering. But that is not widely used and might be tricky. Generally folks use proprietary JPIP servers when wanting to provide JPIP. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From Steve.Lime at dnr.state.mn.us Wed May 27 13:10:31 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 27 May 2009 15:10:31 -0500 Subject: [mapserver-users] Attribute based symbol In-Reply-To: References: <4A1D3F96.5157.008F.0@dnr.state.mn.us> Message-ID: <4A1D57E6.5157.008F.0@dnr.state.mn.us> Yup, this is a 5.0+ function. Steve >>> On 5/27/2009 at 1:59 PM, in message , Adam Eskreis wrote: > It doesn't seem to be working for me > > I get the following error from apache: > > [MapServer Error]: msAddImageSymbol(): Error opening image file > /var/www/htdocs/maps/[symbol]. > > I am using the symbol as: > > SYMBOL "[symbol]" > > I also tried > > SYMBOL [symbol] > > neitehr works > > Is this only possible with mapserver 5? I believe I am using 4.10 > > Thank you > > -Adam > > On Wed, May 27, 2009 at 2:26 PM, Steve Lime wrote: > >> You can bind a style symbol to an attribute. The value needs to be the name >> of a >> system already loaded by MapServer or the name of a local image. You cannot >> reference a image url. >> >> Steve >> >> >>> On 5/27/2009 at 12:26 PM, in message >> , Adam Eskreis >> wrote: >> > I am trying to create a layer that has a symbol, however, I want the >> symbol >> > for each geometry to be based on a field from the database. For >> instance, I >> > am trying to make a layer that would look something like this: >> > >> > LAYER >> > GROUP symbol_layer >> > TYPE point >> > STATUS on >> > CONNECTIONTYPE postgis >> > CONNECTION "" >> > DATA "the_geom from (SELECT the_geom, symbol_img_url from foo) as foo >> > using unique id using SRID=-1" >> > CLASS >> > STYLE >> > SYMBOL "[symbol_img_url]" >> > END >> > END >> > END >> > >> > Is something like this possible? If not, what part of the source would I >> > have to edit in order to make it possible? >> > >> > Thank you >> > >> > -Adam >> >> From a.steenveld at vista-online.nl Wed May 27 14:56:21 2009 From: a.steenveld at vista-online.nl (Andre Steenveld sr) Date: Wed, 27 May 2009 23:56:21 +0200 Subject: [mapserver-users] problems with 'MapServer Itasca Application (ms v5.0)' Message-ID: <096A877344B7E846A3CB4A72A8F5C8633674D9@DXS-CEX-001.dotxs.nl> Hi, I try to install mapserver and to get it going but I run into some problems. Can someone advise me on what I'm doing wrong? This is what I have (and have done). Systems: 1) Windows Vista, dutch version. 2) Windows XP, dutch version. Installed mapserver as suggested in http://www.mapserver.org/introduction.html#introduction Om 1) in E:\usr\local\OSGeo4W On 2) in c:\OSGeo4W On both systems 'MapServer v. 5.0' Testing mapserver with http://127.0.0.1/cgi-bin/mapserv.exe and I get the expected result 'No query information to decode. QUERY_STRING is set, but empty.' (on both systems) Installed 'mapserver demo', added an alias in the apache configuration file, added another section with access rights for /workshop/ (was undocumented), restarted apache and changed the index.html file. The two aliasses in the apache configuration and the section on rights are: Alias /ms_tmp/ "E:\usr\local\OSGeo4W/tmp/ms_tmp/" Alias /workshop/ "E:\usr\local\OSGeo4W/apps/workshop-5.0/" ... AllowOverride None Options None Order allow,deny Allow from all When I open http://127.0.0.1/workshop/ I get a page with a form which looks normal. In that form I select 'Basic Application' and click on the [Initialize] button. The result is an error message. (on both systems) Content-type: text/html isValidTemplate(): Web application error. Missing magic string, itasca_basic.html doesn't look like a MapServer template. I have no idea what is going wrong. Tried to find it in the documentation and archive of this list but nothing came up. The problems might have to do with the changes needed in index.html, it is not completely clear to me what kind of information is needed. This is what I have filled in. ... 08: // EDIT THE NEXT 2 LINES TO MATCH YOUR SETUP 09: var snippet = "IMAGEPATH 'E:/usr/local/OSGeo4W/tmp'"; // "IMAGEPATH '/usr/local/www/docs_maps/tmp/'"; 10: snippet += " IMAGEURL '/tmp/'"; Assuming that on line 09 an absolute path on the server is needed and on line 10 an absolute URL. Note that in the apache configuration there is no alias for /tmp/. Changing line 10 to '/ms_tmp/ does not make any difference. ... 33: 34: 35: Assuming that on line 35 an absolute URL is needed. ... 42: 43: 44: 45: 46: 47: 48: Assuming that on line 43 an absolute path on the server is needed and on lines 45 and 47 an absolute URL. Can somebody point out to me what is wrong? Kind regards, Andre Steenveld. From aeskreis at gmail.com Wed May 27 15:14:53 2009 From: aeskreis at gmail.com (Adam Eskreis) Date: Wed, 27 May 2009 18:14:53 -0400 Subject: [mapserver-users] 5.4.0 installation problem Message-ID: Hello all I have mapserver almost full configured, however, I can't figure out how to enable png support I am certain that my installation of GD has png support. When I run gdlib-config --libs, i get -ljpeg -lfontconfig -lfreetype -lpng12 -lz -lm /usr/local/lib/libiconv.so -Wl,-r path -Wl,/usr/local/lib I assume this means that i have libpng installed properly However, when I configure mapserver, at the end, it says nothing next to "png support" in the rendering section. I even included the --with-gd and --with-png arguments and still it will not recognize libpng what could I be doing wrong? Any help is most apreciated. Thank you. -Adam -------------- next part -------------- An HTML attachment was scrubbed... URL: From peterw at borstad.com Wed May 27 15:48:36 2009 From: peterw at borstad.com (Peter Willis) Date: Wed, 27 May 2009 15:48:36 -0700 Subject: [mapserver-users] Mapserver/PostGIS map file problem (double quotes in layer 'DATA' element) Message-ID: <4A1DC344.8040509@borstad.com> Hello, I am having a problem serving a PostGIS layer via mapserver as WFS. The problem arises from the generation/use of column names in PostgreSQL that require double quotes. ie: SELECT oid,gid, the_geom, "Area","Perimeter","PixelValue" FROM global_Land_poly WHERE "PixelValue"=1; In the map file the 'DATA' member of the PostGIS layer is defined as: DATA "the_geom from (select oid,gid, the_geom, Area,Perimeter,PixelValue FROM global_Land_poly WHERE PixelValue=1 ) AS FOO using SRID=4326" Mapserver relays a PostGIS error from PostgreSQL: 'ERROR: column "area" does not exist... This is because the column name is actually "Area" and requires quotes. How do I define double quotes in my PostGIS query within the 'DATA' element of my mapfile layer? Thanks for any enlightenment, Peter From aeskreis at gmail.com Wed May 27 15:51:13 2009 From: aeskreis at gmail.com (Adam Eskreis) Date: Wed, 27 May 2009 18:51:13 -0400 Subject: [mapserver-users] Mapserver/PostGIS map file problem (double quotes in layer 'DATA' element) In-Reply-To: <4A1DC344.8040509@borstad.com> References: <4A1DC344.8040509@borstad.com> Message-ID: You could try regex \"Area\" -Adam On Wed, May 27, 2009 at 6:48 PM, Peter Willis wrote: > > Hello, > > I am having a problem serving a PostGIS layer via mapserver > as WFS. > > The problem arises from the generation/use of column names > in PostgreSQL that require double quotes. > > ie: > > SELECT oid,gid, the_geom, "Area","Perimeter","PixelValue" FROM > global_Land_poly WHERE "PixelValue"=1; > > > > In the map file the 'DATA' member of the PostGIS layer is defined as: > > DATA "the_geom from (select oid,gid, the_geom, Area,Perimeter,PixelValue > FROM global_Land_poly WHERE PixelValue=1 ) AS FOO using SRID=4326" > > > Mapserver relays a PostGIS error from PostgreSQL: > 'ERROR: column "area" does not exist... > > This is because the column name is actually "Area" > and requires quotes. > > How do I define double quotes in my PostGIS query > within the 'DATA' element of my mapfile layer? > > Thanks for any enlightenment, > > Peter > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From peterw at borstad.com Wed May 27 16:00:24 2009 From: peterw at borstad.com (Peter Willis) Date: Wed, 27 May 2009 16:00:24 -0700 Subject: [mapserver-users] Mapserver/PostGIS map file problem (double quotes in layer 'DATA' element) In-Reply-To: References: <4A1DC344.8040509@borstad.com> Message-ID: <4A1DC608.5000405@borstad.com> I tried that. I get the following error: loadLayer(): Unknown identifier. Parsing error near (Area):(line 30) Mapserver doesn't appear to like the additional formatting. Do I need to recompile with system regex I wonder....? Peter Adam Eskreis wrote: > You could try regex > > \"Area\" > > -Adam > > On Wed, May 27, 2009 at 6:48 PM, Peter Willis > wrote: > > > Hello, > > I am having a problem serving a PostGIS layer via mapserver > as WFS. > > The problem arises from the generation/use of column names > in PostgreSQL that require double quotes. > > ie: > > SELECT oid,gid, the_geom, "Area","Perimeter","PixelValue" FROM > global_Land_poly WHERE "PixelValue"=1; > > > > In the map file the 'DATA' member of the PostGIS layer is defined as: > > DATA "the_geom from (select oid,gid, the_geom, > Area,Perimeter,PixelValue FROM global_Land_poly WHERE PixelValue=1 ) > AS FOO using SRID=4326" > > > Mapserver relays a PostGIS error from PostgreSQL: > 'ERROR: column "area" does not exist... > > This is because the column name is actually "Area" > and requires quotes. > > How do I define double quotes in my PostGIS query > within the 'DATA' element of my mapfile layer? > > Thanks for any enlightenment, > > Peter > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From simon at sibern.com.au Wed May 27 16:03:42 2009 From: simon at sibern.com.au (Simon Haddon) Date: Thu, 28 May 2009 09:03:42 +1000 Subject: [mapserver-users] Mapserver/PostGIS map file problem (double quotes in layer 'DATA' element) In-Reply-To: <4A1DC608.5000405@borstad.com> References: <4A1DC344.8040509@borstad.com> <4A1DC608.5000405@borstad.com> Message-ID: Have you tried DATA 'the_geom from (select oid,gid, the_geom, "Area","Perimeter","PixelValue" FROM "global_Land_poly" WHERE "PixelValue"=1 ) AS FOO using SRID=4326' The other options is to change the table name and column names to be lower case or case insensitive. Mixed case table and column names are always a pain in any database system. If you can't modify the table then try creating a view and using the view in your query instead. Make sure your view is created all lower case without quotes. This will probably mean you will need to alias your select to lower case the column names and you will probably have to add it to the postgis geometry tables manually but other than that it will work. Cheers, Simon On Wed, 27 May 2009 16:00:24 -0700, Peter Willis wrote: > I tried that. I get the following error: > > loadLayer(): Unknown identifier. Parsing error near (Area):(line 30) > > Mapserver doesn't appear to like the additional formatting. > Do I need to recompile with system regex I wonder....? > > Peter > > > Adam Eskreis wrote: >> You could try regex >> >> \"Area\" >> >> -Adam >> >> On Wed, May 27, 2009 at 6:48 PM, Peter Willis > > wrote: >> >> >> Hello, >> >> I am having a problem serving a PostGIS layer via mapserver >> as WFS. >> >> The problem arises from the generation/use of column names >> in PostgreSQL that require double quotes. >> >> ie: >> >> SELECT oid,gid, the_geom, "Area","Perimeter","PixelValue" FROM >> global_Land_poly WHERE "PixelValue"=1; >> >> >> >> In the map file the 'DATA' member of the PostGIS layer is defined as: >> >> DATA "the_geom from (select oid,gid, the_geom, >> Area,Perimeter,PixelValue FROM global_Land_poly WHERE PixelValue=1 ) >> AS FOO using SRID=4326" >> >> >> Mapserver relays a PostGIS error from PostgreSQL: >> 'ERROR: column "area" does not exist... >> >> This is because the column name is actually "Area" >> and requires quotes. >> >> How do I define double quotes in my PostGIS query >> within the 'DATA' element of my mapfile layer? >> >> Thanks for any enlightenment, >> >> Peter >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Cheers, SIMON From peterw at borstad.com Wed May 27 16:26:17 2009 From: peterw at borstad.com (Peter Willis) Date: Wed, 27 May 2009 16:26:17 -0700 Subject: [mapserver-users] [RESOLVED:] Mapserver/PostGIS map file problem (double quotes in layer 'DATA' element) In-Reply-To: <4A1DC608.5000405@borstad.com> References: <4A1DC344.8040509@borstad.com> <4A1DC608.5000405@borstad.com> Message-ID: <4A1DCC19.1060507@borstad.com> After a bit of experimentation I have discovered that using single quotes, to enclose the element value, allows double quotes to be used in the query. ie: DATA 'the_geom from (select oid,gid, the_geom, "Area","Perimeter","PixelValue" FROM global_Land_poly WHERE "PixelValue"=1 ) AS FOO using SRID=4326' Thanks to all, Peter Peter Willis wrote: > > I tried that. I get the following error: > > loadLayer(): Unknown identifier. Parsing error near (Area):(line 30) > > Mapserver doesn't appear to like the additional formatting. > Do I need to recompile with system regex I wonder....? > > Peter > > > Adam Eskreis wrote: >> You could try regex >> >> \"Area\" >> >> -Adam >> >> On Wed, May 27, 2009 at 6:48 PM, Peter Willis > > wrote: >> >> >> Hello, >> >> I am having a problem serving a PostGIS layer via mapserver >> as WFS. >> >> The problem arises from the generation/use of column names >> in PostgreSQL that require double quotes. >> >> ie: >> >> SELECT oid,gid, the_geom, "Area","Perimeter","PixelValue" FROM >> global_Land_poly WHERE "PixelValue"=1; >> >> >> >> In the map file the 'DATA' member of the PostGIS layer is defined as: >> >> DATA "the_geom from (select oid,gid, the_geom, >> Area,Perimeter,PixelValue FROM global_Land_poly WHERE PixelValue=1 ) >> AS FOO using SRID=4326" >> >> >> Mapserver relays a PostGIS error from PostgreSQL: >> 'ERROR: column "area" does not exist... >> >> This is because the column name is actually "Area" >> and requires quotes. >> >> How do I define double quotes in my PostGIS query >> within the 'DATA' element of my mapfile layer? >> >> Thanks for any enlightenment, >> >> Peter >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- Peter Willis Remote Sensing Analyst, Programmer, Electronics Technician ASL Borstad Remote Sensing Inc. 1986 Mills Road Sidney, British Columbia, Canada V8L5Y3 Tel: 250-656-0177 extension 135 From peterw at borstad.com Wed May 27 16:29:54 2009 From: peterw at borstad.com (Peter Willis) Date: Wed, 27 May 2009 16:29:54 -0700 Subject: [mapserver-users] Mapserver/PostGIS map file problem (double quotes in layer 'DATA' element) In-Reply-To: References: <4A1DC344.8040509@borstad.com> <4A1DC608.5000405@borstad.com> Message-ID: <4A1DCCF2.7080802@borstad.com> Hello, Darn!, I just sent a [RESOLVED] with the same solution. (just as I was receiving your email...) Yes, this is how I managed to to make it work. Everything works now. I guess you get the badge for that one. Thanks for your help. Peter Simon Haddon wrote: > Have you tried > > DATA 'the_geom from (select oid,gid, the_geom, > "Area","Perimeter","PixelValue" FROM "global_Land_poly" WHERE > "PixelValue"=1 ) > AS FOO using SRID=4326' > > The other options is to change the table name and column names to be lower > case or case insensitive. Mixed case table and column names are always a > pain in any database system. > > If you can't modify the table then try creating a view and using the view > in your query instead. Make sure your view is created all lower case > without quotes. This will probably mean you will need to alias your select > to lower case the column names and you will probably have to add it to the > postgis geometry tables manually but other than that it will work. > > Cheers, > Simon > From simon at sibern.com.au Wed May 27 17:27:14 2009 From: simon at sibern.com.au (Simon Haddon) Date: Thu, 28 May 2009 10:27:14 +1000 Subject: [mapserver-users] Mapserver/PostGIS map file problem (double quotes in layer 'DATA' element) In-Reply-To: <4A1DCCF2.7080802@borstad.com> References: <4A1DC344.8040509@borstad.com> <4A1DC608.5000405@borstad.com> <4A1DCCF2.7080802@borstad.com> Message-ID: Thanks, Now I just need that chest. lol On Wed, 27 May 2009 16:29:54 -0700, Peter Willis wrote: > Hello, > > Darn!, I just sent a [RESOLVED] with the same solution. > (just as I was receiving your email...) > Yes, this is how I managed to to make it work. > > Everything works now. > I guess you get the badge for that one. > > Thanks for your help. > > Peter > > > > Simon Haddon wrote: >> Have you tried >> >> DATA 'the_geom from (select oid,gid, the_geom, >> "Area","Perimeter","PixelValue" FROM "global_Land_poly" WHERE >> "PixelValue"=1 ) >> AS FOO using SRID=4326' >> >> The other options is to change the table name and column names to be >> lower >> case or case insensitive. Mixed case table and column names are always a >> pain in any database system. >> >> If you can't modify the table then try creating a view and using the view >> in your query instead. Make sure your view is created all lower case >> without quotes. This will probably mean you will need to alias your >> select >> to lower case the column names and you will probably have to add it to >> the >> postgis geometry tables manually but other than that it will work. >> >> Cheers, >> Simon >> -- Cheers, SIMON From gonzalo at sepp0.com.ar Wed May 27 21:16:59 2009 From: gonzalo at sepp0.com.ar (Gonzalo Lionel Rodriguez) Date: Thu, 28 May 2009 01:16:59 -0300 Subject: [mapserver-users] MapServer: Premature end of script headers Message-ID: Hi everyone, I have mapserver: mapserv -v MapServer version 5.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=MYGIS INPUT=SHAPEFILE With pmapper and i have a Internal Server Error: [Thu May 28 01:09:20 2009] [error] [client 190.XXX.XXX.XXX] Premature end of script headers: /home/orsep/public_html/gis2/map.phtml I find some 'solutions' but dont work, the mapserver permissions is 755 and have the right user:group. Any Idea? Kind regards From danlittle at yahoo.com Thu May 28 05:59:31 2009 From: danlittle at yahoo.com (Dan Little) Date: Thu, 28 May 2009 05:59:31 -0700 (PDT) Subject: [mapserver-users] MapServer: Premature end of script headers In-Reply-To: References: Message-ID: <420962.56068.qm@web51405.mail.re2.yahoo.com> Is map.phtml giving the Internal Server Error or is there a tag being rendered by map.phtml that has an internal server error? Also, what does your error log show? Which OS are you running? ----- Original Message ---- > From: Gonzalo Lionel Rodriguez > To: mapserver-users at lists.osgeo.org > Sent: Wednesday, May 27, 2009 11:16:59 PM > Subject: [mapserver-users] MapServer: Premature end of script headers > > Hi everyone, > > I have mapserver: > > mapserv -v > MapServer version 5.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV > SUPPORTS=WMS_SERVER SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=EPPL7 > INPUT=OGR INPUT=GDAL INPUT=MYGIS INPUT=SHAPEFILE > > With pmapper and i have a Internal Server Error: > > [Thu May 28 01:09:20 2009] [error] [client 190.XXX.XXX.XXX] Premature > end of script headers: /home/orsep/public_html/gis2/map.phtml > > I find some 'solutions' but dont work, the mapserver permissions is > 755 and have the right user:group. > > Any Idea? > > Kind regards > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From pal.kristensen at statkart.no Thu May 28 06:36:19 2009 From: pal.kristensen at statkart.no (paalkr) Date: Thu, 28 May 2009 06:36:19 -0700 (PDT) Subject: [mapserver-users] Point lables and tiles In-Reply-To: <2922382e0905250753k608746b4j3701aef8f80b290d@mail.gmail.com> References: <1243256415662-2969528.post@n2.nabble.com> <2922382e0905250625p6db97bdme06546874a8d4f0a@mail.gmail.com> <1243262715899-2969950.post@n2.nabble.com> <2922382e0905250753k608746b4j3701aef8f80b290d@mail.gmail.com> Message-ID: <1243517779820-2987684.post@n2.nabble.com> Hi! OK, are there any methods that could be used to let MapServer produce a bigger image and then chop off excess area before sending the image to the client? I think that this would be the easiest and most flexible solution. Regards, P?l Kristensen Thomas Bonfort-2 wrote: > > it doesn't put any labels in the 10 outermost pixels surrounding the > generated image (as they are chopped off by tilecache's metabuffer) > > thomas > > -- > www.camptocamp.com > +33 4 79 26 57 97 > > > > On Mon, May 25, 2009 at 16:45, paalkr wrote: >> >> Hi! >> >> Thanks for the hint! The problem is that I'm using GeoWebCache and not >> tilecache :) Is the >> ? ? METADATA >> ? ? ? ?labelcache_map_edge_buffer "-10" >> ? ?END >> a MapServer keyword? What does it do exactly? >> >> Any other possible solutions? >> >> Regards, >> P?l Kristensen >> >> >> Thomas Bonfort-2 wrote: >>> >>> http://lists.osgeo.org/pipermail/mapserver-users/2009-March/060214.html >>> >>> regards, >>> thomas >>> >>> -- >>> www.camptocamp.com >>> +33 4 79 26 57 97 >>> >>> >>> >>> On Mon, May 25, 2009 at 15:00, paalkr >>> wrote: >>>> >>>> Hi! >>>> >>>> When creating tiles for my tilecache I have some issues regarding point >>>> labels. Using the PROCESSING label_no_clip=true works for line and >>>> polygon >>>> labels, but points has not area/size and will therefor newer be present >>>> in >>>> two neighbouring tiles. The result are clipped labels because only one >>>> tile >>>> will ever know about the presence of a point. If then the label should >>>> have >>>> been rendered into the next tile, it will be clipped. Metatiles >>>> (requesting >>>> more than one tile at a time and splitting it up on the tile server) >>>> helps, >>>> but only a little, as the same problem will occur between metatiles. >>>> >>>> A solution would be that MapServer rendered each tile (map) some >>>> percentage >>>> larger than requested, and then chops of the excess area before >>>> delivering >>>> the final map. A setting at the MAP level of the mapfile controlling >>>> this >>>> "grow" mechanism would be great, defining the percentage the map shall >>>> be >>>> extended before rendering. >>>> >>>> Second, is there any other way to solve the issue? Especially if there >>>> are >>>> already features in MapServer that can be used. >>>> >>>> Regards, >>>> P?l Kristensen >>>> >>>> >>>> >>>> ----- >>>> >>>> Regards, >>>> P?l Kristensen >>>> -- >>>> View this message in context: >>>> http://n2.nabble.com/Point-lables-and-tiles-tp2969528p2969528.html >>>> Sent from the Mapserver - User mailing list archive at Nabble.com. >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> >> >> ----- >> >> Regards, >> P?l Kristensen >> -- >> View this message in context: >> http://n2.nabble.com/Point-labels-and-tiles-tp2969528p2969950.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ----- Regards, P?l Kristensen -- View this message in context: http://n2.nabble.com/Point-labels-and-tiles-tp2969528p2987684.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pal.kristensen at statkart.no Thu May 28 06:38:08 2009 From: pal.kristensen at statkart.no (paalkr) Date: Thu, 28 May 2009 06:38:08 -0700 (PDT) Subject: [mapserver-users] SV: Clipping out unprojectable area? In-Reply-To: <1243253545615-2969326.post@n2.nabble.com> References: <4990AFF5.1010107@hostgis.com> <20090209234047.GF25534@metacarta.com> <4990C85F.4030101@hostgis.com> <20090210010427.GH25534@metacarta.com> <499389FE.5020606@hostgis.com> <1242137936110-2869427.post@n2.nabble.com> <1243253545615-2969326.post@n2.nabble.com> Message-ID: <1243517888972-2987697.post@n2.nabble.com> Hi! Does anyone have a clue regarding what I have to do, to sort out this issue? Regards, P?l Kristensen paalkr wrote: > > Hi, thanks for the help! > > I tried your suggestion, but I didn't manage to get it to work correctly, > this is what I did: > > Entered the following DATA statement: > > DATA "geometri from ( select geometri, * from general.country where > ST_Intersection(geometri,GeomFromText('POLYGON((12 0,18 0,18 84,12 84,12 > 0))',4326)) ) AS country USING UNIQUE ogc_fid USING SRID=4326" > > but I then got the following error in the MapServer logfile: > > [Mon May 25 14:03:08 2009].185400 msPostGISLayerWhichShapes query: select > encode(AsBinary(force_collection(force_2d("geometri")),'NDR'),'base64') as > geom,"ogc_fid" from ( select geometri, * from general.country where > ST_Intersection(geometri,GeomFromText('POLYGON((12 0,18 0,18 84,12 84,12 > 0))',4326)) ) AS country where geometri && > GeomFromText('POLYGON((-5.89995617157446 > 59.7658748898858,-5.89995617157446 75.1604740311875,44.7675433183202 > 75.1604740311875,44.7675433183202 59.7658748898858,-5.89995617157446 > 59.7658748898858))',4326) > > [Mon May 25 14:03:08 2009].187786 msPostGISLayerWhichShapes query status: > 7 > > [Mon May 25 14:03:08 2009].187807 msPostGISLayerWhichShapes(): Query > error. Error (ERROR: argument of WHERE must be type boolean, not type > geometry > > Anyone that can help with this? > > Regards, > P?l Kristensen > > > Espen.Messel wrote: >> >> Hi. >> >> You could try something like this: >> >> DATA "geometri from ( select geometri, * from general.country where >> ST_Intersection(geometri,GeomFromText('POLYGON((12 0,18 0,18 84,12 84,12 >> 0))',4326)) ) AS FOO USING UNIQUE ogc_fid USING SRID=4326" >> >> It's not very nice, but it works. >> >> Regards, >> Espen >> >> ---------------------------------------------------------------------- >> Espen Messel >> >> >>> -----Opprinnelig melding----- >>> Fra: mapserver-users-bounces at lists.osgeo.org >>> [mailto:mapserver-users-bounces at lists.osgeo.org] P? vegne av paalkr >>> Sendt: 12. mai 2009 16:19 >>> Til: mapserver-users at lists.osgeo.org >>> Emne: Re: [mapserver-users] Clipping out unprojectable area? >>> >>> >>> Hi! >>> >>> I'm trying to achieve the same thing, but I need some hints >>> on how to incorporate the spatial filter in the DATA >>> statement. This is a snippet from my mapfile >>> >>> DATA "geometri from general.country USING UNIQUE >>> ogc_fid USING SRID=4326" >>> >>> and this is the spatial filter i try to apply >>> >>> ST_Intersection(geometri,GeomFromText('POLYGON((12 0,18 >>> 0,18 84,12 >>> 84,12 0))',4326)) >>> >>> but I don't manage build the right the DATA statement! >>> >>> Can someone please help with the DATA statement? >>> >>> Regards, >>> P?l Kristensen >>> >>> >>> Gregor at HostGIS wrote: >>> > >>> > With some SQL know-how I did get the EPSG database merged >>> with our own >>> > spatial_ref_sys table (it has other mods for our uses, so this was >>> > trivial) and our program generating >>> ST_Intersection(the_geom) statements. >>> > >>> > This does work as expected, which is great. Thanks for >>> another simple >>> > and elegant solution, Christopher. >>> > >>> > Now to cope with some of our data having self-intersecting polygons >>> > which break such operators... >>> > >>> > -- >>> > Gregor Mosheh / Greg Allensworth BS, A+, Network+, >>> Security+, Server+ >>> > System Administrator, Lead Programmer >>> > HostGIS development & hosting services, http://www.HostGIS.com/ >>> > >>> > "Remember that no one cares if you can back up, >>> > only if you can restore." - AMANDA >>> > _______________________________________________ >>> > mapserver-users mailing list >>> > mapserver-users at lists.osgeo.org >>> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> > >>> > >>> >>> >>> ----- >>> >>> Regards, >>> P?l Kristensen >>> -- >>> View this message in context: >>> http://n2.nabble.com/Clipping-out-unprojectable-area--tp229984 >> 7p2869427.html >>> Sent from the Mapserver - User mailing list archive at Nabble.com. >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > ----- Regards, P?l Kristensen -- View this message in context: http://n2.nabble.com/Clipping-out-unprojectable-area--tp2299847p2987697.html Sent from the Mapserver - User mailing list archive at Nabble.com. From cclabaugh at centwire.com Thu May 28 06:44:41 2009 From: cclabaugh at centwire.com (Chad Clabaugh) Date: Thu, 28 May 2009 09:44:41 -0400 Subject: [mapserver-users] expressions and threshold color Message-ID: <00dc01c9df9a$73f455c0$5bdd0140$@com> Hello, I'm attempting to color layers by their threshold values. When I use the following mapfile it is only coloring two layers instead of three. Also the layer its coloring changes based on the value in the expression but the areas of each layer never change. Am I going about this correctly? LAYER NAME Coverage TYPE POLYGON STATUS DEFAULT DATA ftwtest PROJECTION "init=epsg:4326" END CLASSGROUP "Coverage group" CLASS EXPRESSION ([THRESHOLD] >= -68) STYLE COLOR 255 0 0 END END CLASS EXPRESSION ([THRESHOLD] >= -73) STYLE COLOR 0 255 0 END END CLASS EXPRESSION ([THRESHOLD] >= -100) STYLE COLOR 0 0 255 END END Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cclabaugh at centwire.com Thu May 28 06:55:05 2009 From: cclabaugh at centwire.com (Chad Clabaugh) Date: Thu, 28 May 2009 09:55:05 -0400 Subject: [mapserver-users] expressions and threshold color (solution found) In-Reply-To: <00dc01c9df9a$73f455c0$5bdd0140$@com> References: <00dc01c9df9a$73f455c0$5bdd0140$@com> Message-ID: <00f001c9df9b$e7556cb0$b6004610$@com> I checked the threshold values contained within my dataset and found that the ranges were not what I expected and I was outside of that range. Everything works properly after tweaking the threshold values. Thanks! From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Chad Clabaugh Sent: Thursday, May 28, 2009 9:45 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] expressions and threshold color Hello, I'm attempting to color layers by their threshold values. When I use the following mapfile it is only coloring two layers instead of three. Also the layer its coloring changes based on the value in the expression but the areas of each layer never change. Am I going about this correctly? LAYER NAME Coverage TYPE POLYGON STATUS DEFAULT DATA ftwtest PROJECTION "init=epsg:4326" END CLASSGROUP "Coverage group" CLASS EXPRESSION ([THRESHOLD] >= -68) STYLE COLOR 255 0 0 END END CLASS EXPRESSION ([THRESHOLD] >= -73) STYLE COLOR 0 255 0 END END CLASS EXPRESSION ([THRESHOLD] >= -100) STYLE COLOR 0 0 255 END END Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pal.kristensen at statkart.no Thu May 28 07:20:24 2009 From: pal.kristensen at statkart.no (paalkr) Date: Thu, 28 May 2009 07:20:24 -0700 (PDT) Subject: [mapserver-users] Hiding layers, again ;) Message-ID: <1243520424197-2987925.post@n2.nabble.com> Hi all dev! I just want to check the status, and if there where any discussion on the Toronto Code sprint regarding the hiding layers in different OGC services issue? There was put up a wiki page discussing different approaches and possible solutions http://trac.osgeo.org/mapserver/wiki/HidingLayersInOGCWebServices and the issue was also on the agenda for the code sprint http://trac.osgeo.org/mapserver/wiki/TorontoCodeSprint2009Notes http://wiki.osgeo.org/wiki/Toronto_Code_Sprint_2009_Agenda#Mapserver Regards, P?l Kristensen ----- Regards, P?l Kristensen -- View this message in context: http://n2.nabble.com/Hiding-layers%2C-again--%29-tp2987925p2987925.html Sent from the Mapserver - User mailing list archive at Nabble.com. From vsaraf.gmu at gmail.com Thu May 28 08:01:19 2009 From: vsaraf.gmu at gmail.com (Varun saraf) Date: Thu, 28 May 2009 11:01:19 -0400 Subject: [mapserver-users] Finding the centroid given the feature Message-ID: <6db14d250905280801q3660a6a7ycbcd5f5a238c595c@mail.gmail.com> Hi, I know mapserver uses a point-in-polygon method to find a feature given a set of co-ordinates, but can it do the same thing reversed? For example. Each polygon I draw has a number associated with it which is in a "dbf" file with the same name as the "shp" file that mapserver uses to draw the polygons. My current map file allows me to fetch that unique number whenever I pass the co-ordinates of any point inside that polygon (mapserver uses the point-in-polygon method to fetch me the polygonID). The query I use is http://127.0.0.1:8123/cgi-bin/mapserv.exe?&map=C:/ms4w/apps/workshop-5.0/testMap.map&mode=query&mapxy=-77.098617 38.87795 where mapxy keeps changing based on the user's click. The html template I send just has the variable name [polygonID] which helps me get the polygon ID of the point I specify in the mapxy variable. Now, is there a way in which I can send this polygonID to mapserver and get hold of any point (perhaps the centroid) inside of this polygon? Can someone point me in the right direction here? Thanks a lot. -Varun From pauljame at gmail.com Thu May 28 08:05:16 2009 From: pauljame at gmail.com (Paul james) Date: Thu, 28 May 2009 12:05:16 -0300 Subject: [mapserver-users] Mapserver layer + Openlayers = Random pink tiles... Message-ID: <33fad6880905280805u12f0154fq5a1bb767369ce02f@mail.gmail.com> Hello guys... I know It is a Openlayer question, but maybe someone here can help-me... I did a simple sample to show my problem... My layer sometimes is 100% showed, but when I zoom, several pink layers appears... Its absolute RANDOM... --> If I click right on the image, and get the image URL and PASTE on browser, I CAN SEE THE IMAGE... So It was created fine... Help? I?m getting crazy ... ps.: Using Windows XP + IIS Code: Javascript : var map, layer; function init() { map = new OpenLayers.Map('map', { numZoomLevels: 14, units: "meters", controls: [ new OpenLayers.Control.ZoomToMaxExtent(), new OpenLayers.Control.PanZoomBar({ zoomWorldIcon: true }), new OpenLayers.Control.LayerSwitcher({ 'ascending': false }), new OpenLayers.Control.MousePosition(), new OpenLayers.Control.MouseDefaults(), new OpenLayers.Control.KeyboardDefaults() ] }); OpenLayers.IMAGE_RELOAD_ATTEMPTS = 10; layer = new OpenLayers.Layer.MapServer("Sample", " http://localhost/cgi-bin/mapserv.exe", { map: "C:/Sample/Openlayer/Map.map", layers: "Test" }); map.addLayer(layer); map.zoomToMaxExtent(); ---- Mapfile MAP EXTENT -79.7892 -34.2426 -24.9958 6.11775 FONTSET "Fonts\Fonts.txt" IMAGECOLOR 230 254 254 IMAGETYPE png SIZE 800 600 STATUS ON UNITS dd NAME "Test" OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE "PC256" TRANSPARENT FALSE END PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END WEB IMAGEPATH 'C:\map\temp' IMAGEURL '/tmp/' QUERYFORMAT text/html LEGENDFORMAT text/html BROWSEFORMAT text/html END QUERYMAP COLOR 255 0 0 SIZE -1 -1 STATUS ON STYLE hilite END REFERENCE EXTENT -79.7892 -34.2426 -24.9958 6.11775 STATUS on SIZE 221 150 MINBOXSIZE 5 MAXBOXSIZE 150 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 MARKERSIZE 8 END LAYER NAME Test GROUP "Tests" TYPE POLYGON STATUS default CONNECTIONTYPE POSTGIS CONNECTION "user=xpassword=xdbname=x host=x port=5432" DATA "the_geom from viwgeo_x USING UNIQUE oid USING SRID=-1" CLASS COLOR 255 0 255 END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Thu May 28 08:12:03 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 28 May 2009 11:12:03 -0400 Subject: [mapserver-users] Mapserver layer + Openlayers = Random pink tiles... In-Reply-To: <33fad6880905280805u12f0154fq5a1bb767369ce02f@mail.gmail.com> References: <33fad6880905280805u12f0154fq5a1bb767369ce02f@mail.gmail.com> Message-ID: <4A1EA9C3.4020808@mapgears.com> Paul james wrote: > > --> If I click right on the image, and get the image URL and PASTE on > browser, I CAN SEE THE IMAGE... So It was created fine... > Help? I?m getting crazy ... > > ps.: Using Windows XP + IIS > Did you check your IIS logs? It could be that you have too many connections at the same time when OpenLayers loads the map and IIS rejects some of them. -- Daniel Morissette http://www.mapgears.com/ From gis.foster at gmail.com Thu May 28 09:28:57 2009 From: gis.foster at gmail.com (Bruce Foster) Date: Thu, 28 May 2009 23:28:57 +0700 Subject: [mapserver-users] Custom CRS/SRS (Malaysia) Message-ID: All, Apologies if this has been asked before and cross posting. Well, in dire situation. I'm working on a project in Malaysia and the ran into major road block because of the local projection. All existing datasets are in older Cassini projection. They have 9 state level Cassini projection for cadastal work and they have different origin. It uses Everest 1830 Modified for spheroid. They are moving to their new projection called GDM2000 and they have EPSG entries. But the older cassini dont have EPSG entries. this puts me in real fix. ArcGIS has the projection parameters for cassini and I dont find any details in spatialreferece or EPSG.org. My work involves GeoServer and PostGIS. Can you plesae guide and help me with this? How do I put a custom projection and how do I work on a projection that dont have EPSG? Since we work lot on EPSG with GeoServer and PostGIS, how can we support the non standard one. This is the CRS parameters; PROJCS["Malaysia_Cassini_Kelantan",GEOGCS["GCS_Kertau",DATUM["D_Kertau",SPHEROID["Everest_1830_Modified",6377304.063,300.8017]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Cassini"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",102.8952083],PARAMETER["Scale_Factor",1],PARAMETER["Latitude_Of_Origin",4.946141667],UNIT["Meter",1]] any guru out there help me? another question, can this be reprojected to WGS84 using on the fly reprojection in GeoServer and PostGIS? Thanks a lot Bruce Foster -------------- next part -------------- An HTML attachment was scrubbed... URL: From pvoudouris at gaiocorp.com Thu May 28 09:49:25 2009 From: pvoudouris at gaiocorp.com (Pano Voudouris) Date: Thu, 28 May 2009 19:49:25 +0300 Subject: [mapserver-users] Problems getting a JP2 or TIFF raster layerdrawen In-Reply-To: References: <9771eb540905270010v20ab8e64wfc6f559ac4275631@mail.gmail.com> <009901c9dea4$4fe12dd0$efa38970$@com> Message-ID: <004601c9dfb4$43545f40$c9fd1dc0$@com> You are right Jukka. It DOES work. Not sure what I was doing there! Just retried it and its fine. Pano -----Original Message----- From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: 27 May 2009 11:45 To: Pano Voudouris; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Problems getting a JP2 or TIFF raster layerdrawen Hi, I just tried, and for me Mapserver 5.2.1 with mode=map does show rasters as well. Have you selected the layers to be shown with "&layers=..."? Naturally if their status is DEFAULT this is not needed. -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > Pano Voudouris > L?hetetty: 27. toukokuuta 2009 11:23 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: RE: [mapserver-users] Problems getting a JP2 or TIFF > raster layerdrawen > > How are you trying to display the mapfile? Just by using cgi-bin? E.g. > .../mapserv.exe?map=&mode=map ...etc? > I have found- and I am not sure if this is a bug or not that > the mode=map ignores any raster layers. If you use > mode=browse or mapscript it works w/out a problem. Anyone? Is > this a known issue?? > > Pano > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Michael Da Silva Pereira > Sent: 27 May 2009 10:15 > To: David Martinez Morata > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Problems getting a JP2 or TIFF > raster layer drawen > > Hi, > > I've tried by even disabling my shapefile all together and > only trying to display the raster and still no luck. > > Thanks > > 2009/5/27 David Martinez Morata : > > Hello. > > Try to change the palcement of your layers and configure > your shape? > > with TRANSPARENT TRUE varible.. > > Something like > > > > LAYER > > ? ? ? ?NAME '2627D' > > ? ? ? ?TYPE RASTER > > ? ? ? ?STATUS ON > > ? ? ? ?DATA "/var/www/ms-tmp/2627D.JP2" > > END > > LAYER > > ? ? ? ?NAME vereenigingroads > > ? ? ? ?STATUS ON > > ? ? ? ?DATA vereenigingroads/ > > vereenigingroads.shp > > ? ? ? ?TYPE LINE > > TRANSPARENT TRUE > > ? ? ? ?CLASS > > ? ? ? ? ? ? ? ?NAME 'the world' > > ? ? ? ? ? ? ? ?COLOR 0 0 0 > > ? ? ? ?END > > END > > > > 2009/5/27 Michael Da Silva Pereira > > >> > >> Hi, > >> > >> I am having a problem displaying a JP2 / TIFF image in > mapserver, it > >> draws my shape files. However I can not get it to draw my RASTER > >> layer :( > >> > >> Any Suggestions? > >> > >> > >> > >> > >> MAP > >> ? ? ? ?SIZE 1300 600 > >> ? ? ? ?DEBUG 5 > >> > >> ? ? ? ?EXTENT 23.5 -34 23.6 -25 > >> ? ? ? ?IMAGECOLOR 180 180 250 > >> ? ? ? ?UNITS DD > >> ? ? ? ?SCALEBAR > >> ? ? ? ? ? ? ? ?STATUS EMBED > >> ? ? ? ? ? ? ? ?UNITS KILOMETERS > >> ? ? ? ? ? ? ? ?INTERVALS 3 > >> ? ? ? ? ? ? ? ?TRANSPARENT TRUE > >> ? ? ? ? ? ? ? ?OUTLINECOLOR 0 0 0 > >> ? ? ? ?END > >> LEGEND > >> ? ? ? ?STATUS EMBED > >> ? ? ? ?POSITION LR > >> ? ? ? ?TRANSPARENT TRUE > >> END > >> WEB > >> ? ? ? ?TEMPLATE global.html > >> ? ? ? ?IMAGEPATH "/var/www/ms-tmp/" > >> ? ? ? ?IMAGEURL "/ms-tmp/" > >> END > >> LAYER > >> ? ? ? ?NAME vereenigingroads > >> ? ? ? ?STATUS ON > >> ? ? ? ?DATA vereenigingroads/vereenigingroads.shp > >> ? ? ? ?TYPE LINE > >> ? ? ? ?CLASS > >> ? ? ? ? ? ? ? ?NAME 'the world' > >> ? ? ? ? ? ? ? ?COLOR 0 0 0 > >> ? ? ? ?END > >> END > >> LAYER > >> ? ? ? ?NAME '2627D' > >> ? ? ? ?TYPE RASTER > >> ? ? ? ?STATUS ON > >> ? ? ? ?DATA "/var/www/ms-tmp/2627D.JP2" > >> END > >> END > >> > >> root at michael-laptop:/var/www/ms-tmp# /usr/lib/cgi-bin/mapserv -v > >> MapServer version 5.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > OUTPUT=WBMP > >> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV > >> SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=GDAL INPUT=SHAPEFILE > >> > >> [Wed May 27 08:47:04 2009].804606 msLoadMap(): 0.009s [Wed May 27 > >> 08:47:04 2009].845677 msDrawMap(): Layer 0 > (vereenigingroads), 0.039s > >> [Wed May 27 08:47:04 2009].845729 > msDrawRasterLayerLow(2627D): entering. > >> [Wed May 27 08:47:06 2009].130721 msDrawMap(): Layer 1 (2627D), > >> 1.285s [Wed May 27 08:47:06 2009].131031 msDrawMap(): > Drawing Label > >> Cache, > 0.000s > >> [Wed May 27 08:47:06 2009].131063 msDrawMap() total time: > 1.326s [Wed > >> May 27 08:47:06 2009].163796 msSaveImage() total time: 0.033s [Wed > >> May 27 08:47:06 2009].163926 msFreeMap(): freeing map at 0x91168b8. > >> [Wed May 27 08:47:06 2009].163974 freeLayer(): freeing layer at > 0x911d508. > >> [Wed May 27 08:47:06 2009].163995 freeLayer(): freeing layer at > 0x911e1d0. > >> [Wed May 27 08:47:06 2009].164011 freeLayer(): freeing layer at > 0x9246188. > >> [Wed May 27 08:47:06 2009].164025 freeLayer(): freeing layer at > 0x92fea48. > >> [Wed May 27 08:47:06 2009].164045 shp2img total time: 1.369s > >> > >> > >> root at michael-laptop:/var/www/ms-tmp# du -hs 2627D.JP2 129M ? ? > >> 2627D.JP2 > >> > >> > >> -- > >> > >> Regards, > >> Michael da Silva Pereira > >> Mobile: +27 84 245 2376 > >> Office: +27 11 251 2036 > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > > > -- > > Martinez Morata David > > Thinking GIS > > > > > > -- > > Regards, > Michael da Silva Pereira > Mobile: +27 84 245 2376 > Office: +27 11 251 2036 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From pauljame at gmail.com Thu May 28 09:59:12 2009 From: pauljame at gmail.com (Paul james) Date: Thu, 28 May 2009 13:59:12 -0300 Subject: [mapserver-users] Mapserver layer + Openlayers = Random pink tiles... In-Reply-To: <4A1EA9C3.4020808@mapgears.com> References: <33fad6880905280805u12f0154fq5a1bb767369ce02f@mail.gmail.com> <4A1EA9C3.4020808@mapgears.com> Message-ID: <33fad6880905280959x691fd84evc9359916d08dc711@mail.gmail.com> Hi Daniel! I ckecked the IIS Log... And I?m getting 403 to the pink tiles : 16:06:04 127.0.0.1 GET /cgi-bin/mapserv.exe 403 The IIS specification : *403 *- Forbidden. IIS defines a number of different 403 errors that indicate a more specific cause of the error: *403.1* - Execute access forbidden. *403.2* - Read access forbidden. *403.3* - Write access forbidden. *403.4* - SSL required. *403.5* - SSL 128 required. *403.6* - IP address rejected. *403.7* - Client certificate required. *403.8* - Site access denied. *403.9* - Too many users. *403.10* - Invalid configuration. *403.11* - Password change. *403.12* - Mapper denied access. *403.13* - Client certificate revoked. *403.14* - Directory listing denied. *403.15* - Client Access Licenses exceeded. *403.16* - Client certificate is untrusted or invalid. *403.17* - Client certificate has expired or is not yet valid. *403.18* - Cannot execute requested URL in the current application pool. This error code is specific to IIS 6.0. *403.19* - Cannot execute CGIs for the client in this application pool. This error code is specific to IIS 6.0. *403.20* - Passport logon failed. This error code is specific to IIS 6.0. Do you know how to "fix" that? Thanks On Thu, May 28, 2009 at 12:12 PM, Daniel Morissette < dmorissette at mapgears.com> wrote: > Paul james wrote: > >> >> --> If I click right on the image, and get the image URL and PASTE on >> browser, I CAN SEE THE IMAGE... So It was created fine... >> Help? I?m getting crazy ... >> >> ps.: Using Windows XP + IIS >> >> > Did you check your IIS logs? It could be that you have too many connections > at the same time when OpenLayers loads the map and IIS rejects some of them. > > -- > Daniel Morissette > http://www.mapgears.com/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pvoudouris at gaiocorp.com Thu May 28 10:05:46 2009 From: pvoudouris at gaiocorp.com (Pano Voudouris) Date: Thu, 28 May 2009 20:05:46 +0300 Subject: [mapserver-users] problems with 'MapServer Itasca Application (ms v5.0)' In-Reply-To: <096A877344B7E846A3CB4A72A8F5C8633674D9@DXS-CEX-001.dotxs.nl> References: <096A877344B7E846A3CB4A72A8F5C8633674D9@DXS-CEX-001.dotxs.nl> Message-ID: <004701c9dfb6$8d9f9ea0$a8dedbe0$@com> Which version of MapServer are you using? You can find it by running in a command prompt: mapserv -v Think that in the latest versions all Mapserver templates must have in their first line the string "MapServer Template" even if it is as a comment. In your case this would be the itasca_basic.html file... Pano -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Andre Steenveld sr Sent: 28 May 2009 00:56 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] problems with 'MapServer Itasca Application (ms v5.0)' Hi, I try to install mapserver and to get it going but I run into some problems. Can someone advise me on what I'm doing wrong? This is what I have (and have done). Systems: 1) Windows Vista, dutch version. 2) Windows XP, dutch version. Installed mapserver as suggested in http://www.mapserver.org/introduction.html#introduction Om 1) in E:\usr\local\OSGeo4W On 2) in c:\OSGeo4W On both systems 'MapServer v. 5.0' Testing mapserver with http://127.0.0.1/cgi-bin/mapserv.exe and I get the expected result 'No query information to decode. QUERY_STRING is set, but empty.' (on both systems) Installed 'mapserver demo', added an alias in the apache configuration file, added another section with access rights for /workshop/ (was undocumented), restarted apache and changed the index.html file. The two aliasses in the apache configuration and the section on rights are: Alias /ms_tmp/ "E:\usr\local\OSGeo4W/tmp/ms_tmp/" Alias /workshop/ "E:\usr\local\OSGeo4W/apps/workshop-5.0/" ... AllowOverride None Options None Order allow,deny Allow from all When I open http://127.0.0.1/workshop/ I get a page with a form which looks normal. In that form I select 'Basic Application' and click on the [Initialize] button. The result is an error message. (on both systems) Content-type: text/html isValidTemplate(): Web application error. Missing magic string, itasca_basic.html doesn't look like a MapServer template. I have no idea what is going wrong. Tried to find it in the documentation and archive of this list but nothing came up. The problems might have to do with the changes needed in index.html, it is not completely clear to me what kind of information is needed. This is what I have filled in. ... 08: // EDIT THE NEXT 2 LINES TO MATCH YOUR SETUP 09: var snippet = "IMAGEPATH 'E:/usr/local/OSGeo4W/tmp'"; // "IMAGEPATH '/usr/local/www/docs_maps/tmp/'"; 10: snippet += " IMAGEURL '/tmp/'"; Assuming that on line 09 an absolute path on the server is needed and on line 10 an absolute URL. Note that in the apache configuration there is no alias for /tmp/. Changing line 10 to '/ms_tmp/ does not make any difference. ... 33: 34: 35: Assuming that on line 35 an absolute URL is needed. ... 42: 43: 44: 45: 46: 47: 48: Assuming that on line 43 an absolute path on the server is needed and on lines 45 and 47 an absolute URL. Can somebody point out to me what is wrong? Kind regards, Andre Steenveld. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From dmorissette at mapgears.com Thu May 28 10:29:55 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 28 May 2009 13:29:55 -0400 Subject: [mapserver-users] Mapserver layer + Openlayers = Random pink tiles... In-Reply-To: <33fad6880905280959x691fd84evc9359916d08dc711@mail.gmail.com> References: <33fad6880905280805u12f0154fq5a1bb767369ce02f@mail.gmail.com> <4A1EA9C3.4020808@mapgears.com> <33fad6880905280959x691fd84evc9359916d08dc711@mail.gmail.com> Message-ID: <4A1ECA13.7060309@mapgears.com> Paul james wrote: > Hi Daniel! > I ckecked the IIS Log... > And I?m getting 403 to the pink tiles : > 16:06:04 127.0.0.1 GET /cgi-bin/mapserv.exe 403 > > The IIS specification : > > *403 *- Forbidden. IIS defines a number of different 403 errors that > indicate a more specific cause of the error: > [...] > > Do you know how to "fix" that? > You mean, other than using Apache? ;) ;) Seriously, you probably need to increase the number of concurrent connections that your IIS will accept, but I have no clue how to do it. Daniel -- Daniel Morissette http://www.mapgears.com/ From aeskreis at gmail.com Thu May 28 10:34:44 2009 From: aeskreis at gmail.com (Adam Eskreis) Date: Thu, 28 May 2009 13:34:44 -0400 Subject: [mapserver-users] Finding the centroid given the feature In-Reply-To: <6db14d250905280801q3660a6a7ycbcd5f5a238c595c@mail.gmail.com> References: <6db14d250905280801q3660a6a7ycbcd5f5a238c595c@mail.gmail.com> Message-ID: I'm not sure if this is what you are doing, but I have done something similar I think. When I want to use the centroid geometry of a polygon, what I do is load the layer into postgis, create a new geometry field called "points_geom" or something like that, and write a stand alone program to find the centroid of each feature, adn insert that geometry into the new geometry field. I usually use Java since it has a really nice PostGIS object library Hope this helps -Adam On Thu, May 28, 2009 at 11:01 AM, Varun saraf wrote: > Hi, > > I know mapserver uses a point-in-polygon method to find a feature > given a set of co-ordinates, but can it do the same thing reversed? > For example. Each polygon I draw has a number associated with it which > is in a "dbf" file with the same name as the "shp" file that mapserver > uses to draw the polygons. My current map file allows me to fetch that > unique number whenever I pass the co-ordinates of any point inside > that polygon (mapserver uses the point-in-polygon method to fetch me > the polygonID). The query I use is > > > http://127.0.0.1:8123/cgi-bin/mapserv.exe?&map=C:/ms4w/apps/workshop-5.0/testMap.map&mode=query&mapxy=-77.098617 > 38.87795 > > where mapxy keeps changing based on the user's click. The html > template I send just has the variable name [polygonID] which helps me > get the polygon ID of the point I specify in the mapxy variable. Now, > is there a way in which I can send this polygonID to mapserver and get > hold of any point (perhaps the centroid) inside of this polygon? Can > someone point me in the right direction here? > > Thanks a lot. > > -Varun > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pauljame at gmail.com Thu May 28 10:43:21 2009 From: pauljame at gmail.com (Paul james) Date: Thu, 28 May 2009 14:43:21 -0300 Subject: [mapserver-users] Mapserver layer + Openlayers = Random pink tiles... In-Reply-To: <4A1ECA13.7060309@mapgears.com> References: <33fad6880905280805u12f0154fq5a1bb767369ce02f@mail.gmail.com> <4A1EA9C3.4020808@mapgears.com> <33fad6880905280959x691fd84evc9359916d08dc711@mail.gmail.com> <4A1ECA13.7060309@mapgears.com> Message-ID: <33fad6880905281043u28b65f42t25acd6a23b0a141f@mail.gmail.com> You are right :P To increase number connections on XP : http://www.dslreports.com/faq/10253 Thanks Daniel! On Thu, May 28, 2009 at 2:29 PM, Daniel Morissette wrote: > Paul james wrote: > >> Hi Daniel! >> I ckecked the IIS Log... >> And I?m getting 403 to the pink tiles : >> 16:06:04 127.0.0.1 GET /cgi-bin/mapserv.exe 403 >> >> The IIS specification : >> >> *403 *- Forbidden. IIS defines a number of different 403 errors that >> indicate a more specific cause of the error: >> >> [...] > > >> Do you know how to "fix" that? >> >> > You mean, other than using Apache? ;) ;) > > Seriously, you probably need to increase the number of concurrent > connections that your IIS will accept, but I have no clue how to do it. > > Daniel > > -- > Daniel Morissette > http://www.mapgears.com/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Thu May 28 11:12:29 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 28 May 2009 13:12:29 -0500 Subject: [mapserver-users] Finding the centroid given the feature In-Reply-To: <6db14d250905280801q3660a6a7ycbcd5f5a238c595c@mail.gmail.com> References: <6db14d250905280801q3660a6a7ycbcd5f5a238c595c@mail.gmail.com> Message-ID: <4A1E8DBD.5157.008F.0@dnr.state.mn.us> What version are you using? What data source? Steve >>> On 5/28/2009 at 10:01 AM, in message <6db14d250905280801q3660a6a7ycbcd5f5a238c595c at mail.gmail.com>, Varun saraf wrote: > Hi, > > I know mapserver uses a point-in-polygon method to find a feature > given a set of co-ordinates, but can it do the same thing reversed? > For example. Each polygon I draw has a number associated with it which > is in a "dbf" file with the same name as the "shp" file that mapserver > uses to draw the polygons. My current map file allows me to fetch that > unique number whenever I pass the co-ordinates of any point inside > that polygon (mapserver uses the point-in-polygon method to fetch me > the polygonID). The query I use is > > http://127.0.0.1:8123/cgi-bin/mapserv.exe?&map=C:/ms4w/apps/workshop-5.0/testMa > p.map&mode=query&mapxy=-77.098617 > 38.87795 > > where mapxy keeps changing based on the user's click. The html > template I send just has the variable name [polygonID] which helps me > get the polygon ID of the point I specify in the mapxy variable. Now, > is there a way in which I can send this polygonID to mapserver and get > hold of any point (perhaps the centroid) inside of this polygon? Can > someone point me in the right direction here? > > Thanks a lot. > > -Varun > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Thu May 28 12:19:37 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 28 May 2009 14:19:37 -0500 Subject: [mapserver-users] Point lables and tiles In-Reply-To: <1243517779820-2987684.post@n2.nabble.com> References: <1243256415662-2969528.post@n2.nabble.com> <2922382e0905250625p6db97bdme06546874a8d4f0a@mail.gmail.com> <1243262715899-2969950.post@n2.nabble.com> <2922382e0905250753k608746b4j3701aef8f80b290d@mail.gmail.com> <1243517779820-2987684.post@n2.nabble.com> Message-ID: <4A1E9D79.5157.008F.0@dnr.state.mn.us> Not within MapServer proper. The various tiling services use this metatile approach so it does work. You'd need an intermediary script to do the clipping for you. Steve >>> On 5/28/2009 at 8:36 AM, in message <1243517779820-2987684.post at n2.nabble.com>, paalkr wrote: > Hi! > > OK, are there any methods that could be used to let MapServer produce a > bigger image and then chop off excess area before sending the image to the > client? I think that this would be the easiest and most flexible solution. > > Regards, > P?l Kristensen > > > > Thomas Bonfort-2 wrote: >> >> it doesn't put any labels in the 10 outermost pixels surrounding the >> generated image (as they are chopped off by tilecache's metabuffer) >> >> thomas >> >> -- >> www.camptocamp.com >> +33 4 79 26 57 97 >> >> >> >> On Mon, May 25, 2009 at 16:45, paalkr wrote: >>> >>> Hi! >>> >>> Thanks for the hint! The problem is that I'm using GeoWebCache and not >>> tilecache :) Is the >>> METADATA >>> labelcache_map_edge_buffer "-10" >>> END >>> a MapServer keyword? What does it do exactly? >>> >>> Any other possible solutions? >>> >>> Regards, >>> P?l Kristensen >>> >>> >>> Thomas Bonfort-2 wrote: >>>> >>>> http://lists.osgeo.org/pipermail/mapserver-users/2009-March/060214.html >>>> >>>> regards, >>>> thomas >>>> >>>> -- >>>> www.camptocamp.com >>>> +33 4 79 26 57 97 >>>> >>>> >>>> >>>> On Mon, May 25, 2009 at 15:00, paalkr >>>> wrote: >>>>> >>>>> Hi! >>>>> >>>>> When creating tiles for my tilecache I have some issues regarding point >>>>> labels. Using the PROCESSING label_no_clip=true works for line and >>>>> polygon >>>>> labels, but points has not area/size and will therefor newer be present >>>>> in >>>>> two neighbouring tiles. The result are clipped labels because only one >>>>> tile >>>>> will ever know about the presence of a point. If then the label should >>>>> have >>>>> been rendered into the next tile, it will be clipped. Metatiles >>>>> (requesting >>>>> more than one tile at a time and splitting it up on the tile server) >>>>> helps, >>>>> but only a little, as the same problem will occur between metatiles. >>>>> >>>>> A solution would be that MapServer rendered each tile (map) some >>>>> percentage >>>>> larger than requested, and then chops of the excess area before >>>>> delivering >>>>> the final map. A setting at the MAP level of the mapfile controlling >>>>> this >>>>> "grow" mechanism would be great, defining the percentage the map shall >>>>> be >>>>> extended before rendering. >>>>> >>>>> Second, is there any other way to solve the issue? Especially if there >>>>> are >>>>> already features in MapServer that can be used. >>>>> >>>>> Regards, >>>>> P?l Kristensen >>>>> >>>>> >>>>> >>>>> ----- >>>>> >>>>> Regards, >>>>> P?l Kristensen >>>>> -- >>>>> View this message in context: >>>>> http://n2.nabble.com/Point-lables-and-tiles-tp2969528p2969528.html >>>>> Sent from the Mapserver - User mailing list archive at Nabble.com. >>>>> >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>>> >>> >>> >>> ----- >>> >>> Regards, >>> P?l Kristensen >>> -- >>> View this message in context: >>> http://n2.nabble.com/Point-labels-and-tiles-tp2969528p2969950.html >>> Sent from the Mapserver - User mailing list archive at Nabble.com. >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > > ----- > > Regards, > P?l Kristensen > -- > View this message in context: > http://n2.nabble.com/Point-labels-and-tiles-tp2969528p2987684.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From a.steenveld at vista-online.nl Thu May 28 12:27:23 2009 From: a.steenveld at vista-online.nl (Andre Steenveld sr) Date: Thu, 28 May 2009 21:27:23 +0200 Subject: [mapserver-users] problems with 'MapServer Itasca Application (ms v5.0)' Message-ID: <096A877344B7E846A3CB4A72A8F5C86336752F@DXS-CEX-001.dotxs.nl> Hi Pano, I'm using version 5.0 and I've received another mail suggesting the same thing. Adding "MapServer Template" did solve my problems. Tanks, Andre Steenveld. -----Original Message----- From: Pano Voudouris [mailto:pvoudouris at gaiocorp.com] Sent: donderdag 28 mei 2009 19:06 To: Andre Steenveld sr; mapserver-users at lists.osgeo.org Subject: RE: [mapserver-users] problems with 'MapServer Itasca Application (ms v5.0)' Which version of MapServer are you using? You can find it by running in a command prompt: mapserv -v Think that in the latest versions all Mapserver templates must have in their first line the string "MapServer Template" even if it is as a comment. In your case this would be the itasca_basic.html file... Pano From peterw at borstad.com Thu May 28 13:27:05 2009 From: peterw at borstad.com (Peter Willis) Date: Thu, 28 May 2009 13:27:05 -0700 Subject: [mapserver-users] How do I get WFS vector type (LINE, POINT or POLYGON) from mapserver WFS query? Message-ID: <4A1EF399.4010102@borstad.com> Hello, I am using mapserver as a WFS server. When I query getCapabilities I get he following capabilities: - GetCapabilities - DescribeFeatureType - GetFeature I also get a list of features. If I then make 'describeFeatureType' or 'getFeature' requests for one of the features on the list I get a non verbose description of the feature, or the GML for the feature. There doesn't appear to be anything that discloses if the feature is a POINT, LINE, or POLYGON type feature. The map file layers are defined properly as POINT, LINE, POLYGON as the case may be. Am I querying mapserver correctly? What am I overlooking in the XML? Thanks, Peter From peterw at borstad.com Thu May 28 13:38:41 2009 From: peterw at borstad.com (Peter Willis) Date: Thu, 28 May 2009 13:38:41 -0700 Subject: [RESOLVED:] [mapserver-users] How do I get WFS vector type (LINE, POINT or POLYGON) from mapserver WFS query? In-Reply-To: <4A1EF399.4010102@borstad.com> References: <4A1EF399.4010102@borstad.com> Message-ID: <4A1EF651.6040801@borstad.com> O.K., that was brief and non-productive.... The 'getFeature' query XML results have ms:msGeometry entries. ie: - <<--------------------HERE!! - - - Sorry about that. Peter Peter Willis wrote: > > Hello, > > I am using mapserver as a WFS server. > > When I query getCapabilities I get he following capabilities: > > - GetCapabilities > - DescribeFeatureType > - GetFeature > > I also get a list of features. > > If I then make 'describeFeatureType' or 'getFeature' requests for > one of the features on the list I get a non verbose description > of the feature, or the GML for the feature. > > There doesn't appear to be anything that discloses if the feature > is a POINT, LINE, or POLYGON type feature. > > The map file layers are defined properly as POINT, LINE, POLYGON > as the case may be. > > Am I querying mapserver correctly? > > What am I overlooking in the XML? > > Thanks, > > Peter From pauljame at gmail.com Thu May 28 13:43:26 2009 From: pauljame at gmail.com (Paul james) Date: Thu, 28 May 2009 17:43:26 -0300 Subject: [mapserver-users] Upgrading 5.2 -> 5.4 generating CGI error... Message-ID: <33fad6880905281343u17447473j9a6b6806a30e5fb8@mail.gmail.com> I got that error when try to enter : http://localhost/cgi-bin/mapserv.exe?map=C:/map.map CGI ErrorThe specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: My Map: MAP EXTENT -79.7892 -34.2426 -24.9958 6.11775 FONTSET "Fonts\Fonts.txt" IMAGECOLOR 230 254 254 IMAGETYPE png SIZE 800 600 STATUS ON UNITS dd NAME "Test" OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE "PC256" TRANSPARENT FALSE END PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END WEB IMAGEPATH 'C:\map\temp' IMAGEURL '/tmp/' QUERYFORMAT text/html LEGENDFORMAT text/html BROWSEFORMAT text/html END QUERYMAP COLOR 255 0 0 SIZE -1 -1 STATUS ON STYLE hilite END REFERENCE EXTENT -79.7892 -34.2426 -24.9958 6.11775 STATUS on SIZE 221 150 MINBOXSIZE 5 MAXBOXSIZE 150 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 MARKERSIZE 8 END LAYER NAME Test GROUP "Tests" TYPE POLYGON STATUS default CONNECTIONTYPE POSTGIS CONNECTION "user=xpassword=xdbname=x host=x port=5432" DATA "the_geom from viwgeo_x USING UNIQUE oid USING SRID=-1" CLASS COLOR 255 0 255 END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben at remoteinformation.com.au Thu May 28 21:04:31 2009 From: ben at remoteinformation.com.au (Ben Madin) Date: Fri, 29 May 2009 12:04:31 +0800 Subject: [mapserver-users] SV: Clipping out unprojectable area? In-Reply-To: <20090528133817.5A42FE01992@lists.osgeo.org> References: <20090528133817.5A42FE01992@lists.osgeo.org> Message-ID: <46E805EC-E722-4DF5-9EA1-E341BE35897D@remoteinformation.com.au> P?l, On 28/05/2009, at 9:38 PM, paalkr wrote: > Does anyone have a clue regarding what I have to do, to sort out > this issue? there is a clue in the log file : > [Mon May 25 14:03:08 2009].187807 msPostGISLayerWhichShapes(): Query > error. Error (ERROR: argument of WHERE must be type boolean, not type > geometry but if you look at your query in the log file (trying to make it look a bit nice for legibility) : > FROM ( > SELECT geometri, * > FROM general.country > WHERE ST_Intersection(geometri,GeomFromText('POLYGON((12 0,18 0,18 > 84,12 84,120))',4326)) > ) AS country You have a WHERE clause that returns a geometry (here is the manual entry) ST_Intersection(geometry, geometry) Returns a geometry that represents the point set intersection of the Geometries. In other words - that portion of geometry A and geometry B that is shared between the two geometries. So you need to actually compare something with the geometry to make the where clause work. I hope this helps to steer you in the right direction... I have no idea what you are trying to compare! Ben > > paalkr wrote: >> >> Hi, thanks for the help! >> >> I tried your suggestion, but I didn't manage to get it to work >> correctly, >> this is what I did: >> >> Entered the following DATA statement: >> >> DATA "geometri from ( select geometri, * from general.country where >> ST_Intersection(geometri,GeomFromText('POLYGON((12 0,18 0,18 84,12 >> 84,12 >> 0))',4326)) ) AS country USING UNIQUE ogc_fid USING SRID=4326" >> >> but I then got the following error in the MapServer logfile: >> >> [Mon May 25 14:03:08 2009].185400 msPostGISLayerWhichShapes query: >> select >> encode >> (AsBinary(force_collection(force_2d("geometri")),'NDR'),'base64') as >> geom,"ogc_fid" from ( select geometri, * from general.country where >> ST_Intersection(geometri,GeomFromText('POLYGON((12 0,18 0,18 84,12 >> 84,12 >> 0))',4326)) ) AS country where geometri && >> GeomFromText('POLYGON((-5.89995617157446 >> 59.7658748898858,-5.89995617157446 75.1604740311875,44.7675433183202 >> 75.1604740311875,44.7675433183202 59.7658748898858,-5.89995617157446 >> 59.7658748898858))',4326) >> >> [Mon May 25 14:03:08 2009].187786 msPostGISLayerWhichShapes query >> status: >> 7 >> >> [Mon May 25 14:03:08 2009].187807 msPostGISLayerWhichShapes(): Query >> error. Error (ERROR: argument of WHERE must be type boolean, not >> type >> geometry >> >> Anyone that can help with this? >> >> Regards, >> P?l Kristensen > -- 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 pal.kristensen at statkart.no Thu May 28 23:41:37 2009 From: pal.kristensen at statkart.no (paalkr) Date: Thu, 28 May 2009 23:41:37 -0700 (PDT) Subject: [mapserver-users] Point lables and tiles In-Reply-To: <4A1E9D79.5157.008F.0@dnr.state.mn.us> References: <1243256415662-2969528.post@n2.nabble.com> <2922382e0905250625p6db97bdme06546874a8d4f0a@mail.gmail.com> <1243262715899-2969950.post@n2.nabble.com> <2922382e0905250753k608746b4j3701aef8f80b290d@mail.gmail.com> <1243517779820-2987684.post@n2.nabble.com> <4A1E9D79.5157.008F.0@dnr.state.mn.us> Message-ID: <1243579297060-2992303.post@n2.nabble.com> Hi! OK, thanks! I guess that MapScript is the way to go then. Steve Lime wrote: > > Not within MapServer proper. The various tiling services use this > metatile approach so it does work. You'd need > an intermediary script to do the clipping for you. > > Steve > >>>> On 5/28/2009 at 8:36 AM, in message > <1243517779820-2987684.post at n2.nabble.com>, > paalkr wrote: > >> Hi! >> >> OK, are there any methods that could be used to let MapServer produce > a >> bigger image and then chop off excess area before sending the image > to the >> client? I think that this would be the easiest and most flexible > solution. >> >> Regards, >> P?l Kristensen >> >> >> >> Thomas Bonfort-2 wrote: >>> >>> it doesn't put any labels in the 10 outermost pixels surrounding > the >>> generated image (as they are chopped off by tilecache's metabuffer) >>> >>> thomas >>> >>> -- >>> www.camptocamp.com >>> +33 4 79 26 57 97 >>> >>> >>> >>> On Mon, May 25, 2009 at 16:45, paalkr > wrote: >>>> >>>> Hi! >>>> >>>> Thanks for the hint! The problem is that I'm using GeoWebCache and > not >>>> tilecache :) Is the >>>> METADATA >>>> labelcache_map_edge_buffer "-10" >>>> END >>>> a MapServer keyword? What does it do exactly? >>>> >>>> Any other possible solutions? >>>> >>>> Regards, >>>> P?l Kristensen >>>> >>>> >>>> Thomas Bonfort-2 wrote: >>>>> >>>>> > http://lists.osgeo.org/pipermail/mapserver-users/2009-March/060214.html > >>>>> >>>>> regards, >>>>> thomas >>>>> >>>>> -- >>>>> www.camptocamp.com >>>>> +33 4 79 26 57 97 >>>>> >>>>> >>>>> >>>>> On Mon, May 25, 2009 at 15:00, paalkr > >>>>> wrote: >>>>>> >>>>>> Hi! >>>>>> >>>>>> When creating tiles for my tilecache I have some issues regarding > point >>>>>> labels. Using the PROCESSING label_no_clip=true works for line > and >>>>>> polygon >>>>>> labels, but points has not area/size and will therefor newer be > present >>>>>> in >>>>>> two neighbouring tiles. The result are clipped labels because > only one >>>>>> tile >>>>>> will ever know about the presence of a point. If then the label > should >>>>>> have >>>>>> been rendered into the next tile, it will be clipped. Metatiles >>>>>> (requesting >>>>>> more than one tile at a time and splitting it up on the tile > server) >>>>>> helps, >>>>>> but only a little, as the same problem will occur between > metatiles. >>>>>> >>>>>> A solution would be that MapServer rendered each tile (map) some >>>>>> percentage >>>>>> larger than requested, and then chops of the excess area before >>>>>> delivering >>>>>> the final map. A setting at the MAP level of the mapfile > controlling >>>>>> this >>>>>> "grow" mechanism would be great, defining the percentage the map > shall >>>>>> be >>>>>> extended before rendering. >>>>>> >>>>>> Second, is there any other way to solve the issue? Especially if > there >>>>>> are >>>>>> already features in MapServer that can be used. >>>>>> >>>>>> Regards, >>>>>> P?l Kristensen >>>>>> >>>>>> >>>>>> >>>>>> ----- >>>>>> >>>>>> Regards, >>>>>> P?l Kristensen >>>>>> -- >>>>>> View this message in context: >>>>>> > http://n2.nabble.com/Point-lables-and-tiles-tp2969528p2969528.html >>>>>> Sent from the Mapserver - User mailing list archive at > Nabble.com. >>>>>> >>>>>> _______________________________________________ >>>>>> mapserver-users mailing list >>>>>> mapserver-users at lists.osgeo.org >>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>>> >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>>> >>>> >>>> >>>> ----- >>>> >>>> Regards, >>>> P?l Kristensen >>>> -- >>>> View this message in context: >>>> http://n2.nabble.com/Point-labels-and-tiles-tp2969528p2969950.html > >>>> Sent from the Mapserver - User mailing list archive at Nabble.com. >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> >> >> ----- >> >> Regards, >> P?l Kristensen >> -- >> View this message in context: >> http://n2.nabble.com/Point-labels-and-tiles-tp2969528p2987684.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > ----- Regards, P?l Kristensen -- View this message in context: http://n2.nabble.com/Point-labels-and-tiles-tp2969528p2992303.html Sent from the Mapserver - User mailing list archive at Nabble.com. From vsaraf.gmu at gmail.com Fri May 29 07:32:41 2009 From: vsaraf.gmu at gmail.com (Varun saraf) Date: Fri, 29 May 2009 10:32:41 -0400 Subject: [mapserver-users] Finding the centroid given the feature In-Reply-To: <4A1E8DBD.5157.008F.0@dnr.state.mn.us> References: <6db14d250905280801q3660a6a7ycbcd5f5a238c595c@mail.gmail.com> <4A1E8DBD.5157.008F.0@dnr.state.mn.us> Message-ID: <6db14d250905290732pb01747wce200eddfe73d1b2@mail.gmail.com> I am using mapserver 5.0 with google maps and the data source is the US Census tracts as shape files and dbf files. On Thu, May 28, 2009 at 2:12 PM, Steve Lime wrote: > What version are you using? What data source? > > Steve > >>>> On 5/28/2009 at 10:01 AM, in message > <6db14d250905280801q3660a6a7ycbcd5f5a238c595c at mail.gmail.com>, Varun saraf > wrote: >> Hi, >> >> I know mapserver uses a point-in-polygon method to find a feature >> given a set of co-ordinates, but can it do the same thing reversed? >> For example. Each polygon I draw has a number associated with it which >> is in a "dbf" file with the same name as the "shp" file that mapserver >> uses to draw the polygons. My current map file allows me to fetch that >> unique number whenever I pass the co-ordinates of any point inside >> that polygon (mapserver uses the point-in-polygon method to fetch me >> the polygonID). The query I use is >> >> http://127.0.0.1:8123/cgi-bin/mapserv.exe?&map=C:/ms4w/apps/workshop-5.0/testMa >> p.map&mode=query&mapxy=-77.098617 >> 38.87795 >> >> where mapxy keeps changing based on the user's click. The html >> template I send just has the variable name [polygonID] which helps me >> get the polygon ID of the point I specify in the mapxy variable. Now, >> is there a way in which I can send this polygonID to mapserver and get >> hold of any point (perhaps the centroid) inside of this polygon? Can >> someone point me in the right direction here? >> >> Thanks a lot. >> >> -Varun >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From pauljame at gmail.com Fri May 29 08:07:57 2009 From: pauljame at gmail.com (Paul james) Date: Fri, 29 May 2009 12:07:57 -0300 Subject: [mapserver-users] Re: Upgrading 5.2 -> 5.4 generating CGI error on IIS(5.1 and 6.0) ... Possible BUG? Message-ID: <33fad6880905290807m51b395cdybbc7792d229af94c@mail.gmail.com> Just some more information about the problem... The error was generated by IIS (5.1 and 6.0) ... Looking the Logfile, It is a 502 error : *502* - Web server received an invalid response while acting as a gateway or proxy. *502.1* - CGI application timeout. *502.2* - Error in CGI application. It only happens with Mapserver 5.4 ... With 5.2 version, thats 100% working... Paul On Thu, May 28, 2009 at 5:43 PM, Paul james wrote: > I got that error when try to enter : > http://localhost/cgi-bin/mapserv.exe?map=C:/map.map > CGI ErrorThe specified CGI application misbehaved by not returning a > complete set of HTTP headers. The headers it did return are: > > > My Map: > > MAP > EXTENT -79.7892 -34.2426 -24.9958 6.11775 > FONTSET "Fonts\Fonts.txt" > IMAGECOLOR 230 254 254 > IMAGETYPE png > SIZE 800 600 > STATUS ON > UNITS dd > NAME "Test" > > OUTPUTFORMAT > NAME "png" > MIMETYPE "image/png" > DRIVER "GD/PNG" > EXTENSION "png" > IMAGEMODE "PC256" > TRANSPARENT FALSE > END > > PROJECTION > 'proj=longlat' > 'ellps=WGS84' > 'datum=WGS84' > 'no_defs' > END > > WEB > IMAGEPATH 'C:\map\temp' > IMAGEURL '/tmp/' > QUERYFORMAT text/html > LEGENDFORMAT text/html > BROWSEFORMAT text/html > END > > QUERYMAP > COLOR 255 0 0 > SIZE -1 -1 > STATUS ON > STYLE hilite > END > > REFERENCE > EXTENT -79.7892 -34.2426 -24.9958 6.11775 > STATUS on > SIZE 221 150 > MINBOXSIZE 5 > MAXBOXSIZE 150 > COLOR -1 -1 -1 > OUTLINECOLOR 255 0 0 > MARKERSIZE 8 > END > > LAYER > NAME Test > GROUP "Tests" > TYPE POLYGON > STATUS default > CONNECTIONTYPE POSTGIS > CONNECTION "user=xpassword=xdbname=x host=x port=5432" > DATA "the_geom from viwgeo_x USING UNIQUE oid USING SRID=-1" > CLASS > COLOR 255 0 255 > END > END > > END > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Fri May 29 08:20:41 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 29 May 2009 11:20:41 -0400 Subject: [mapserver-users] Re: Upgrading 5.2 -> 5.4 generating CGI error on IIS(5.1 and 6.0) ... Possible BUG? In-Reply-To: <33fad6880905290807m51b395cdybbc7792d229af94c@mail.gmail.com> References: <33fad6880905290807m51b395cdybbc7792d229af94c@mail.gmail.com> Message-ID: <4A1FFD49.8060400@mapgears.com> Paul james wrote: > Just some more information about the problem... > The error was generated by IIS (5.1 and 6.0) ... Looking the Logfile, It > is a 502 error : > > *502* - Web server received an invalid response while acting as a > gateway or proxy. > > *502.1* - CGI application timeout. > *502.2* - Error in CGI application. > > It only happens with Mapserver 5.4 ... With 5.2 version, thats 100% > working... > Where did you get your binaries? Are you using MS4W? This may be a sign of a problem with your build or bug in MapServer, but we'd need a testcase to reproduce it in order to help. I tried just loading your mapfile and get the following error: loadReferenceMap(): General error message. No image defined for the reference map. I don't know if that's an indication of the problem, but anyway, if the 502 error persists you could try to package a small testcase (mapfile + data + test url) that can be used to reproduce the issue and file a ticket. Daniel -- Daniel Morissette http://www.mapgears.com/ From robhyx at gmail.com Fri May 29 08:35:54 2009 From: robhyx at gmail.com (Robert Hicks) Date: Fri, 29 May 2009 11:35:54 -0400 Subject: [mapserver-users] Really general question about Mapfiles and GetMap requests Message-ID: In a GetMap request what are the arguments 'height' and 'width' measured in? Pixels? Also what does changing RESOLUTION and SIZE in a mapfile actually do? MAP ... RESOLUTION 300 SIZE 1667 1667 ... END Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From pauljame at gmail.com Fri May 29 08:40:28 2009 From: pauljame at gmail.com (Paul james) Date: Fri, 29 May 2009 12:40:28 -0300 Subject: [mapserver-users] Re: Upgrading 5.2 -> 5.4 generating CGI error on IIS(5.1 and 6.0) ... Possible BUG? In-Reply-To: <4A1FFD49.8060400@mapgears.com> References: <33fad6880905290807m51b395cdybbc7792d229af94c@mail.gmail.com> <4A1FFD49.8060400@mapgears.com> Message-ID: <33fad6880905290840h10fd7606i5508697161fda7d@mail.gmail.com> Hi Daniel... I got the binaries from Tamas build : http://vbkto.dyndns.org:1280/sdk/Default.aspx And from MS4W 3.0 beta2... Same result with both... That error you got is my fault... I took off the : IMAGE "..\Map.png" from REFERENCE definition when copy the code to email... My application works fine with 5.2 binary in iis 5.1 and 6.0 Just replacing with 5.4 binary I got that 502 error... Paul On Fri, May 29, 2009 at 12:20 PM, Daniel Morissette < dmorissette at mapgears.com> wrote: > Paul james wrote: > >> Just some more information about the problem... >> The error was generated by IIS (5.1 and 6.0) ... Looking the Logfile, It >> is a 502 error : >> >> *502* - Web server received an invalid response while acting as a gateway >> or proxy. >> >> *502.1* - CGI application timeout. >> *502.2* - Error in CGI application. >> >> It only happens with Mapserver 5.4 ... With 5.2 version, thats 100% >> working... >> >> > Where did you get your binaries? Are you using MS4W? > > This may be a sign of a problem with your build or bug in MapServer, but > we'd need a testcase to reproduce it in order to help. I tried just loading > your mapfile and get the following error: > > loadReferenceMap(): General error message. No image defined for the > reference map. > > I don't know if that's an indication of the problem, but anyway, if the 502 > error persists you could try to package a small testcase (mapfile + data + > test url) that can be used to reproduce the issue and file a ticket. > > Daniel > -- > Daniel Morissette > http://www.mapgears.com/ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Fri May 29 08:48:13 2009 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Fri, 29 May 2009 10:48:13 -0500 Subject: [mapserver-users] Really general question about Mapfiles and GetMaprequests In-Reply-To: Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5056DA539@s-sp22.pca.state.mn.us> Robert, For GetMap, height and width are measured in pixels. I would like to just point you to http://www.opengeospatial.org/standards/wms , but nothing is particularly easy to glean from the OGC... Plus, I will have to put in a request to my Attorney General staff before I can click through the giant legal agreement required to view the WMS spec. Seriously, what the #$%&! For the map file info, look here: http://mapserver.org/mapfile/map.html >From that page: SIZE [x][y] Size in pixels of the output image (i.e. the map). RESOLUTION [int] Sets the pixels per inch for output, only affects scale computations and nothing else, default is 72. I don't believe that SIZE comes into play when you are requesting a layer as WMS because you are required to specify height and width in your getMap request. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Robert Hicks Sent: Friday, May 29, 2009 10:36 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Really general question about Mapfiles and GetMaprequests In a GetMap request what are the arguments 'height' and 'width' measured in? Pixels? Also what does changing RESOLUTION and SIZE in a mapfile actually do? MAP ... RESOLUTION 300 SIZE 1667 1667 ... END Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From adube at mapgears.com Fri May 29 08:42:36 2009 From: adube at mapgears.com (Alexandre Dube) Date: Fri, 29 May 2009 11:42:36 -0400 Subject: [mapserver-users] Really general question about Mapfiles and GetMap requests In-Reply-To: References: Message-ID: <4A20026C.3040805@mapgears.com> Hi, Robert Hicks wrote: > In a GetMap request what are the arguments 'height' and 'width' > measured in? Pixels? > Yes, it's in pixels. > Also what does changing RESOLUTION and SIZE in a mapfile actually do? > http://mapserver.org/mapfile/map.html See RESOLUTION and SIZE If you use the mapserver cgi to draw your map (mode=map ), then the map draw will have the SIZE defined in your mapfile. See : http://mapserver.org/cgi/controls.html to know more about mapserver cgi. > MAP > ... > > RESOLUTION 300 > > SIZE 1667 1667 > > ... > > END > > > Thanks! Regards, Alexandre > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alexandre Dub? Mapgears www.mapgears.com From dmorissette at mapgears.com Fri May 29 08:56:34 2009 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 29 May 2009 11:56:34 -0400 Subject: [mapserver-users] Re: Upgrading 5.2 -> 5.4 generating CGI error on IIS(5.1 and 6.0) ... Possible BUG? In-Reply-To: <33fad6880905290840h10fd7606i5508697161fda7d@mail.gmail.com> References: <33fad6880905290807m51b395cdybbc7792d229af94c@mail.gmail.com> <4A1FFD49.8060400@mapgears.com> <33fad6880905290840h10fd7606i5508697161fda7d@mail.gmail.com> Message-ID: <4A2005B2.70704@mapgears.com> Paul james wrote: > Hi Daniel... > I got the binaries from Tamas build : > http://vbkto.dyndns.org:1280/sdk/Default.aspx > And from MS4W 3.0 beta2... > Same result with both... > > That error you got is my fault... I took off the : > IMAGE "..\Map.png" > from REFERENCE definition when copy the code to email... > > My application works fine with 5.2 binary in iis 5.1 and 6.0 > Just replacing with 5.4 binary I got that 502 error... > Hopefully you always make sure you update all DLLs as well when you "replace with 5.4 binary"? Even if the DLLs have the same names, if they come from different build environments or versions they may not be compatible and could cause the kind of crashes that you are experiencing. Daniel -- Daniel Morissette http://www.mapgears.com/ From pauljame at gmail.com Fri May 29 09:26:18 2009 From: pauljame at gmail.com (Paul james) Date: Fri, 29 May 2009 13:26:18 -0300 Subject: [mapserver-users] Re: Upgrading 5.2 -> 5.4 generating CGI error on IIS(5.1 and 6.0) ... Possible BUG? In-Reply-To: <4A2005B2.70704@mapgears.com> References: <33fad6880905290807m51b395cdybbc7792d229af94c@mail.gmail.com> <4A1FFD49.8060400@mapgears.com> <33fad6880905290840h10fd7606i5508697161fda7d@mail.gmail.com> <4A2005B2.70704@mapgears.com> Message-ID: <33fad6880905290926g62a9d75ci90d281e53867f368@mail.gmail.com> Yes Daniel... I deleted all previous files and put only 5.4 files... My mapscript application is working fine on 5.4... But the CGI dont... Tested on Windows XP (IIS 5.1) and Windows 2003(IIS 6.0)... Paul On Fri, May 29, 2009 at 12:56 PM, Daniel Morissette < dmorissette at mapgears.com> wrote: > Paul james wrote: > >> Hi Daniel... >> I got the binaries from Tamas build : >> http://vbkto.dyndns.org:1280/sdk/Default.aspx >> And from MS4W 3.0 beta2... >> Same result with both... >> >> That error you got is my fault... I took off the : >> IMAGE "..\Map.png" >> from REFERENCE definition when copy the code to email... >> >> My application works fine with 5.2 binary in iis 5.1 and 6.0 >> Just replacing with 5.4 binary I got that 502 error... >> >> > Hopefully you always make sure you update all DLLs as well when you > "replace with 5.4 binary"? Even if the DLLs have the same names, if they > come from different build environments or versions they may not be > compatible and could cause the kind of crashes that you are experiencing. > > > Daniel > -- > Daniel Morissette > http://www.mapgears.com/ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Fri May 29 10:27:14 2009 From: szekerest at gmail.com (Tamas Szekeres) Date: Fri, 29 May 2009 19:27:14 +0200 Subject: [mapserver-users] Re: Upgrading 5.2 -> 5.4 generating CGI error on IIS(5.1 and 6.0) ... Possible BUG? In-Reply-To: <33fad6880905290926g62a9d75ci90d281e53867f368@mail.gmail.com> References: <33fad6880905290807m51b395cdybbc7792d229af94c@mail.gmail.com> <4A1FFD49.8060400@mapgears.com> <33fad6880905290840h10fd7606i5508697161fda7d@mail.gmail.com> <4A2005B2.70704@mapgears.com> <33fad6880905290926g62a9d75ci90d281e53867f368@mail.gmail.com> Message-ID: Hi Paul, Did you experience the same with the release-1310 and release-1400 versions? Did you experience the same with the development version? Are you using fastCGI or normal cgi? Is this just a PostGIS related problem or you get the same with a simple shapefile? Sorry for the bunch of the questions... Best regards, Tamas 2009/5/29 Paul james > Yes Daniel... I deleted all previous files and put only 5.4 files... My > mapscript application is working fine on 5.4... > But the CGI dont... > Tested on Windows XP (IIS 5.1) and Windows 2003(IIS 6.0)... > > Paul > > > On Fri, May 29, 2009 at 12:56 PM, Daniel Morissette < > dmorissette at mapgears.com> wrote: > >> Paul james wrote: >> >>> Hi Daniel... >>> I got the binaries from Tamas build : >>> http://vbkto.dyndns.org:1280/sdk/Default.aspx >>> And from MS4W 3.0 beta2... >>> Same result with both... >>> >>> That error you got is my fault... I took off the : >>> IMAGE "..\Map.png" >>> from REFERENCE definition when copy the code to email... >>> >>> My application works fine with 5.2 binary in iis 5.1 and 6.0 >>> Just replacing with 5.4 binary I got that 502 error... >>> >>> >> Hopefully you always make sure you update all DLLs as well when you >> "replace with 5.4 binary"? Even if the DLLs have the same names, if they >> come from different build environments or versions they may not be >> compatible and could cause the kind of crashes that you are experiencing. >> >> >> Daniel >> -- >> Daniel Morissette >> http://www.mapgears.com/ >> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From boolean10001 at yahoo.com Fri May 29 10:32:23 2009 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Fri, 29 May 2009 10:32:23 -0700 (PDT) Subject: [mapserver-users] Mapserver and Flash Message-ID: <935257.53697.qm@web38201.mail.mud.yahoo.com> Hi all, I recently explore the way to output a flash file with Mapserver, it only generates me one swf file, so I embed this file into a web page to display it. How can I do things like highligth an element when the mouse passes over it with this single file ? Thanks in advance IC Carlos Ruiz? -------------- next part -------------- An HTML attachment was scrubbed... URL: From chris.green at ibstv.co.uk Fri May 29 10:41:52 2009 From: chris.green at ibstv.co.uk (Chris Green) Date: Fri, 29 May 2009 18:41:52 +0100 Subject: [mapserver-users] Place names...? Message-ID: <023001c9e084$c0ca5440$425efcc0$@green@ibstv.co.uk> Hi all Apologies in advance if this turns out to be a stupid question, but I can't find a way to make Map Server v5.0 display place names. I have created a shape file with points for towns and cities, each of which has a label. If I check this layer with Quantum GIS (which I used to create the points) I can display both the points and the labels showing town and city names. However when I define this layer in the mapfile with type 'point' MapServer gives me a display of the points but not the labels. If I define it as type 'annotation' I don't see either points or labels. I feel sure I am missing something obvious but after quite a few hours I am stuck. Can anyone suggest what I am doing wrong? Chris Green -------------- next part -------------- An HTML attachment was scrubbed... URL: From boolean10001 at yahoo.com Fri May 29 10:49:42 2009 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Fri, 29 May 2009 10:49:42 -0700 (PDT) Subject: [mapserver-users] Place names...? Message-ID: <669538.56450.qm@web38205.mail.mud.yahoo.com> You have to use LABELITEM tag within LAYER block, and to define a style, within the CLASS block, define a LABEL block with the name of the font, size and color. Hope it helps to you IC Carlos Ruiz? --- On Fri, 5/29/09, Chris Green wrote: From: Chris Green Subject: [mapserver-users] Place names...? To: mapserver-users at lists.osgeo.org Date: Friday, May 29, 2009, 12:41 PM Hi all ? Apologies in advance if this turns out to be a stupid question, but I can?t find a way to make Map Server ?v5.0 display place names. I have created a shape file with points for towns and cities, each of which has a label. If I check this layer with Quantum GIS (which I used to create the points) I can display both the points and the labels showing town and city names. However when I define this layer in the mapfile with type ?point? MapServer gives me a display of the points but not the labels. ?If I define it as type ?annotation? I don?t see either points or labels. I feel sure I am missing something obvious but after quite a few hours I am stuck. ?Can anyone suggest what I am doing wrong? ? ? Chris Green ? ? ? -----Inline Attachment Follows----- _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From James_Leveille at dmr.ca Fri May 29 10:52:52 2009 From: James_Leveille at dmr.ca (James Leveille) Date: Fri, 29 May 2009 13:52:52 -0400 Subject: [mapserver-users] Place names...? In-Reply-To: <023001c9e084$c0ca5440$425efcc0$@green@ibstv.co.uk> References: <023001c9e084$c0ca5440$425efcc0$@green@ibstv.co.uk> Message-ID: Hi Chris, In order to help us help you, give us an overview of you code ... It should work fine with POINT. Here is a working example : LAYER NAME "pd_p_bldg" STATUS ON DUMP TRUE PROJECTION . . . END METADATA . . . END EXTENT 3000000 0 10000000 5000000 DATA "pd_p/subset_pd_p" TYPE POINT LABELITEM "bldg_label" CLASS STYLE SYMBOL "single_building" END LABEL TYPE TRUETYPE FONT "times-bold" SIZE 11 POSITION AUTO COLOR 227 119 0 OUTLINECOLOR 250 250 250 PARTIALS FALSE END END END ________________________________________________________________________ James De : mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] De la part de Chris Green Envoy? : 29 mai 2009 13:42 ? : mapserver-users at lists.osgeo.org Objet : [mapserver-users] Place names...? Hi all Apologies in advance if this turns out to be a stupid question, but I can't find a way to make Map Server v5.0 display place names. I have created a shape file with points for towns and cities, each of which has a label. If I check this layer with Quantum GIS (which I used to create the points) I can display both the points and the labels showing town and city names. However when I define this layer in the mapfile with type 'point' MapServer gives me a display of the points but not the labels. If I define it as type 'annotation' I don't see either points or labels. I feel sure I am missing something obvious but after quite a few hours I am stuck. Can anyone suggest what I am doing wrong? Chris Green -------------- next part -------------- An HTML attachment was scrubbed... URL: From pauljame at gmail.com Fri May 29 10:59:08 2009 From: pauljame at gmail.com (Paul james) Date: Fri, 29 May 2009 14:59:08 -0300 Subject: [mapserver-users] Re: Upgrading 5.2 -> 5.4 generating CGI error on IIS(5.1 and 6.0) ... Possible BUG? In-Reply-To: References: <33fad6880905290807m51b395cdybbc7792d229af94c@mail.gmail.com> <4A1FFD49.8060400@mapgears.com> <33fad6880905290840h10fd7606i5508697161fda7d@mail.gmail.com> <4A2005B2.70704@mapgears.com> <33fad6880905290926g62a9d75ci90d281e53867f368@mail.gmail.com> Message-ID: <33fad6880905291059i5602a89q84d7673ddcfff511@mail.gmail.com> 1 - I tried with 1500,1400,1310,development version(1500) and ms4w beta... 2 - I?m using normal CGI 3 - My tests are only with Postgis... I?ll generate a shapefile to test later ... Paul On Fri, May 29, 2009 at 2:27 PM, Tamas Szekeres wrote: > Hi Paul, > > Did you experience the same with the release-1310 and release-1400 > versions? Did you experience the same with the development version? > Are you using fastCGI or normal cgi? > Is this just a PostGIS related problem or you get the same with a simple > shapefile? > > Sorry for the bunch of the questions... > > Best regards, > > Tamas > > > > 2009/5/29 Paul james > >> Yes Daniel... I deleted all previous files and put only 5.4 files... My >> mapscript application is working fine on 5.4... >> But the CGI dont... >> Tested on Windows XP (IIS 5.1) and Windows 2003(IIS 6.0)... >> >> Paul >> >> >> On Fri, May 29, 2009 at 12:56 PM, Daniel Morissette < >> dmorissette at mapgears.com> wrote: >> >>> Paul james wrote: >>> >>>> Hi Daniel... >>>> I got the binaries from Tamas build : >>>> http://vbkto.dyndns.org:1280/sdk/Default.aspx >>>> And from MS4W 3.0 beta2... >>>> Same result with both... >>>> >>>> That error you got is my fault... I took off the : >>>> IMAGE "..\Map.png" >>>> from REFERENCE definition when copy the code to email... >>>> >>>> My application works fine with 5.2 binary in iis 5.1 and 6.0 >>>> Just replacing with 5.4 binary I got that 502 error... >>>> >>>> >>> Hopefully you always make sure you update all DLLs as well when you >>> "replace with 5.4 binary"? Even if the DLLs have the same names, if they >>> come from different build environments or versions they may not be >>> compatible and could cause the kind of crashes that you are experiencing. >>> >>> >>> Daniel >>> -- >>> Daniel Morissette >>> http://www.mapgears.com/ >>> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Fri May 29 10:59:27 2009 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 29 May 2009 20:59:27 +0300 Subject: [mapserver-users] Place names...? References: <023001c9e084$c0ca5440$425efcc0$@green@ibstv.co.uk> Message-ID: Hi, Mapserver needs LABELITEM in the layer definitions before it knows what to write into labels. And then it needs a whole LABEL section that defines how the labels should look like on a map. Label settings are described in http://mapserver.org/mapfile/label.html#label However, I cannot find there a basic example of how to use built-in bitmap fonts for labeling. That would be the most simple way to start with. -Jukka Rahkonen- Chris Green wrote: Hi all Apologies in advance if this turns out to be a stupid question, but I can't find a way to make Map Server v5.0 display place names. I have created a shape file with points for towns and cities, each of which has a label. If I check this layer with Quantum GIS (which I used to create the points) I can display both the points and the labels showing town and city names. However when I define this layer in the mapfile with type 'point' MapServer gives me a display of the points but not the labels. If I define it as type 'annotation' I don't see either points or labels. I feel sure I am missing something obvious but after quite a few hours I am stuck. Can anyone suggest what I am doing wrong? Chris Green From Steve.Lime at dnr.state.mn.us Fri May 29 11:01:32 2009 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 29 May 2009 13:01:32 -0500 Subject: [mapserver-users] Re: Upgrading 5.2 -> 5.4 generating CGI error on IIS(5.1 and 6.0) ... Possible BUG? In-Reply-To: <33fad6880905291059i5602a89q84d7673ddcfff511@mail.gmail.com> References: <33fad6880905290807m51b395cdybbc7792d229af94c@mail.gmail.com> <4A1FFD49.8060400@mapgears.com> <33fad6880905290840h10fd7606i5508697161fda7d@mail.gmail.com> <4A2005B2.70704@mapgears.com> <33fad6880905290926g62a9d75ci90d281e53867f368@mail.gmail.com> <33fad6880905291059i5602a89q84d7673ddcfff511@mail.gmail.com> Message-ID: <4A1FDCAB.5157.008F.0@dnr.state.mn.us> What's the full URL submitted against the CGI? >>> On 5/29/2009 at 12:59 PM, in message <33fad6880905291059i5602a89q84d7673ddcfff511 at mail.gmail.com>, Paul james wrote: > 1 - I tried with 1500,1400,1310,development version(1500) and ms4w beta... > 2 - I?m using normal CGI > 3 - My tests are only with Postgis... I?ll generate a shapefile to test > later ... > > Paul > > On Fri, May 29, 2009 at 2:27 PM, Tamas Szekeres wrote: > >> Hi Paul, >> >> Did you experience the same with the release-1310 and release-1400 >> versions? Did you experience the same with the development version? >> Are you using fastCGI or normal cgi? >> Is this just a PostGIS related problem or you get the same with a simple >> shapefile? >> >> Sorry for the bunch of the questions... >> >> Best regards, >> >> Tamas >> >> >> >> 2009/5/29 Paul james >> >>> Yes Daniel... I deleted all previous files and put only 5.4 files... My >>> mapscript application is working fine on 5.4... >>> But the CGI dont... >>> Tested on Windows XP (IIS 5.1) and Windows 2003(IIS 6.0)... >>> >>> Paul >>> >>> >>> On Fri, May 29, 2009 at 12:56 PM, Daniel Morissette < >>> dmorissette at mapgears.com> wrote: >>> >>>> Paul james wrote: >>>> >>>>> Hi Daniel... >>>>> I got the binaries from Tamas build : >>>>> http://vbkto.dyndns.org:1280/sdk/Default.aspx >>>>> And from MS4W 3.0 beta2... >>>>> Same result with both... >>>>> >>>>> That error you got is my fault... I took off the : >>>>> IMAGE "..\Map.png" >>>>> from REFERENCE definition when copy the code to email... >>>>> >>>>> My application works fine with 5.2 binary in iis 5.1 and 6.0 >>>>> Just replacing with 5.4 binary I got that 502 error... >>>>> >>>>> >>>> Hopefully you always make sure you update all DLLs as well when you >>>> "replace with 5.4 binary"? Even if the DLLs have the same names, if they >>>> come from different build environments or versions they may not be >>>> compatible and could cause the kind of crashes that you are experiencing. >>>> >>>> >>>> Daniel >>>> -- >>>> Daniel Morissette >>>> http://www.mapgears.com/ >>>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> From pauljame at gmail.com Fri May 29 11:08:00 2009 From: pauljame at gmail.com (Paul james) Date: Fri, 29 May 2009 15:08:00 -0300 Subject: [mapserver-users] Re: Upgrading 5.2 -> 5.4 generating CGI error on IIS(5.1 and 6.0) ... Possible BUG? In-Reply-To: <4A1FDCAB.5157.008F.0@dnr.state.mn.us> References: <33fad6880905290807m51b395cdybbc7792d229af94c@mail.gmail.com> <4A1FFD49.8060400@mapgears.com> <33fad6880905290840h10fd7606i5508697161fda7d@mail.gmail.com> <4A2005B2.70704@mapgears.com> <33fad6880905290926g62a9d75ci90d281e53867f368@mail.gmail.com> <33fad6880905291059i5602a89q84d7673ddcfff511@mail.gmail.com> <4A1FDCAB.5157.008F.0@dnr.state.mn.us> Message-ID: <33fad6880905291108i62697bf0u184171d566e5758d@mail.gmail.com> http://localhost/cgi-bin/mapserv.exe?map=C%3A%2Finetpub%2Fwwwroot%2FOpenlayer%2FFiles%2FMapserver%2FMap.map&mode=map&map_imagetype=png&mapext=-180+0+-90+90&imgext=-180+0+-90+90&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 Paul On Fri, May 29, 2009 at 3:01 PM, Steve Lime wrote: > What's the full URL submitted against the CGI? > > >>> On 5/29/2009 at 12:59 PM, in message > <33fad6880905291059i5602a89q84d7673ddcfff511 at mail.gmail.com>, Paul > james > wrote: > > 1 - I tried with 1500,1400,1310,development version(1500) and ms4w > beta... > > 2 - I?m using normal CGI > > 3 - My tests are only with Postgis... I?ll generate a shapefile to > test > > later ... > > > > Paul > > > > On Fri, May 29, 2009 at 2:27 PM, Tamas Szekeres > wrote: > > > >> Hi Paul, > >> > >> Did you experience the same with the release-1310 and release-1400 > >> versions? Did you experience the same with the development version? > >> Are you using fastCGI or normal cgi? > >> Is this just a PostGIS related problem or you get the same with a > simple > >> shapefile? > >> > >> Sorry for the bunch of the questions... > >> > >> Best regards, > >> > >> Tamas > >> > >> > >> > >> 2009/5/29 Paul james > >> > >>> Yes Daniel... I deleted all previous files and put only 5.4 > files... My > >>> mapscript application is working fine on 5.4... > >>> But the CGI dont... > >>> Tested on Windows XP (IIS 5.1) and Windows 2003(IIS 6.0)... > >>> > >>> Paul > >>> > >>> > >>> On Fri, May 29, 2009 at 12:56 PM, Daniel Morissette < > >>> dmorissette at mapgears.com> wrote: > >>> > >>>> Paul james wrote: > >>>> > >>>>> Hi Daniel... > >>>>> I got the binaries from Tamas build : > >>>>> http://vbkto.dyndns.org:1280/sdk/Default.aspx > >>>>> And from MS4W 3.0 beta2... > >>>>> Same result with both... > >>>>> > >>>>> That error you got is my fault... I took off the : > >>>>> IMAGE "..\Map.png" > >>>>> from REFERENCE definition when copy the code to email... > >>>>> > >>>>> My application works fine with 5.2 binary in iis 5.1 and 6.0 > >>>>> Just replacing with 5.4 binary I got that 502 error... > >>>>> > >>>>> > >>>> Hopefully you always make sure you update all DLLs as well when > you > >>>> "replace with 5.4 binary"? Even if the DLLs have the same names, > if they > >>>> come from different build environments or versions they may not > be > >>>> compatible and could cause the kind of crashes that you are > experiencing. > >>>> > >>>> > >>>> Daniel > >>>> -- > >>>> Daniel Morissette > >>>> http://www.mapgears.com/ > >>>> > >>> > >>> > >>> _______________________________________________ > >>> mapserver-users mailing list > >>> mapserver-users at lists.osgeo.org > >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >>> > >>> > >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfischer at houstoneng.com Sat May 30 19:56:05 2009 From: bfischer at houstoneng.com (Brian Fischer) Date: Sat, 30 May 2009 21:56:05 -0500 Subject: [mapserver-users] Re: Upgrading 5.2 -> 5.4 generating CGI error on IIS(5.1 and 6.0) ... Possible BUG? In-Reply-To: <33fad6880905291108i62697bf0u184171d566e5758d@mail.gmail.com> References: <33fad6880905290807m51b395cdybbc7792d229af94c@mail.gmail.com> <4A1FFD49.8060400@mapgears.com> <33fad6880905290840h10fd7606i5508697161fda7d@mail.gmail.com> <4A2005B2.70704@mapgears.com> <33fad6880905290926g62a9d75ci90d281e53867f368@mail.gmail.com> <33fad6880905291059i5602a89q84d7673ddcfff511@mail.gmail.com> <4A1FDCAB.5157.008F.0@dnr.state.mn.us> <33fad6880905291108i62697bf0u184171d566e5758d@mail.gmail.com> Message-ID: Paul, Just to let you know you are not alone. I am experiencing the same problem with MS4W 3.0 beta 1 and 2. I?ve reported it as a bug to the MS4W project. Here?s a link to the bug report http://bugzilla.maptools.org/show_bug.cgi?id=2043. I haven?t heard anything back on a solution yet. I?m not sure if this is a MapServer bug or a bug with the way the MS4W package was compiled. It runs fine of Apache for me. Brian Fischer Houston Engineering, Inc. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Paul james Sent: Friday, May 29, 2009 1:08 PM To: Steve Lime Cc: mapserver-users at lists.osgeo.org; Daniel Morissette Subject: Re: [mapserver-users] Re: Upgrading 5.2 -> 5.4 generating CGI error on IIS(5.1 and 6.0) ... Possible BUG? http://localhost/cgi-bin/mapserv.exe?map=C%3A%2Finetpub%2Fwwwroot%2FOpenlayer%2FFiles%2FMapserver%2FMap.map&mode=map&map_imagetype=png&mapext=-180+0+-90+90&imgext=-180+0+-90+90&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 Paul On Fri, May 29, 2009 at 3:01 PM, Steve Lime > wrote: What's the full URL submitted against the CGI? >>> On 5/29/2009 at 12:59 PM, in message <33fad6880905291059i5602a89q84d7673ddcfff511 at mail.gmail.com>, Paul james > wrote: > 1 - I tried with 1500,1400,1310,development version(1500) and ms4w beta... > 2 - I?m using normal CGI > 3 - My tests are only with Postgis... I?ll generate a shapefile to test > later ... > > Paul > > On Fri, May 29, 2009 at 2:27 PM, Tamas Szekeres > wrote: > >> Hi Paul, >> >> Did you experience the same with the release-1310 and release-1400 >> versions? Did you experience the same with the development version? >> Are you using fastCGI or normal cgi? >> Is this just a PostGIS related problem or you get the same with a simple >> shapefile? >> >> Sorry for the bunch of the questions... >> >> Best regards, >> >> Tamas >> >> >> >> 2009/5/29 Paul james > >> >>> Yes Daniel... I deleted all previous files and put only 5.4 files... My >>> mapscript application is working fine on 5.4... >>> But the CGI dont... >>> Tested on Windows XP (IIS 5.1) and Windows 2003(IIS 6.0)... >>> >>> Paul >>> >>> >>> On Fri, May 29, 2009 at 12:56 PM, Daniel Morissette < >>> dmorissette at mapgears.com> wrote: >>> >>>> Paul james wrote: >>>> >>>>> Hi Daniel... >>>>> I got the binaries from Tamas build : >>>>> http://vbkto.dyndns.org:1280/sdk/Default.aspx >>>>> And from MS4W 3.0 beta2... >>>>> Same result with both... >>>>> >>>>> That error you got is my fault... I took off the : >>>>> IMAGE "..\Map.png" >>>>> from REFERENCE definition when copy the code to email... >>>>> >>>>> My application works fine with 5.2 binary in iis 5.1 and 6.0 >>>>> Just replacing with 5.4 binary I got that 502 error... >>>>> >>>>> >>>> Hopefully you always make sure you update all DLLs as well when you >>>> "replace with 5.4 binary"? Even if the DLLs have the same names, if they >>>> come from different build environments or versions they may not be >>>> compatible and could cause the kind of crashes that you are experiencing. >>>> >>>> >>>> Daniel >>>> -- >>>> Daniel Morissette >>>> http://www.mapgears.com/ >>>> >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From john_cncn at yahoo.com.cn Sun May 31 01:47:49 2009 From: john_cncn at yahoo.com.cn (ezhs) Date: Sun, 31 May 2009 01:47:49 -0700 (PDT) Subject: [mapserver-users] openlayers in vs2005 website In-Reply-To: <1242891289162-2950691.post@n2.nabble.com> References: <1242891289162-2950691.post@n2.nabble.com> Message-ID: <1243759669550-3001273.post@n2.nabble.com> meenu wrote: > > dears,i created one website using mapserver in vs2005 ...now i need to > know how can i do openlayers in this same website....is it possible?in > this same website i need to display one map with tooltip(hotspot) > information....for that purpose can anybody tell me how to bind open > layers in vs2005 website application? > Just copy openlayers in your website,It's just a JS lib. -- View this message in context: http://n2.nabble.com/openlayers-in-vs2005-website-tp2950691p3001273.html Sent from the Mapserver - User mailing list archive at Nabble.com. From john_cncn at yahoo.com.cn Sun May 31 02:16:48 2009 From: john_cncn at yahoo.com.cn (ezhs) Date: Sun, 31 May 2009 02:16:48 -0700 (PDT) Subject: [mapserver-users] I have problem to run then demo PHP applications,pls HELP. Message-ID: <1243761408907-3001337.post@n2.nabble.com> hi,Dears I have changed the listening port to 90,when I run: http://127.0.0.1:90/php_ogr/examples/ogr2ogr.php It reports Fatal error: Call to undefined function OGRRegisterAll() in E:\ms4w\apps\php_ogr\examples\ogr2ogr.php on line 64 By the way,the "http://127.0.0.1:90/phpinfo.php" works fine,the OS is Windows server 2003. -- View this message in context: http://n2.nabble.com/I-have-problem-to-run-then-demo-PHP-applications%2Cpls-HELP.-tp3001337p3001337.html Sent from the Mapserver - User mailing list archive at Nabble.com. From adrian_gh.popa at romtelecom.ro Sun May 31 23:57:33 2009 From: adrian_gh.popa at romtelecom.ro (Adrian Popa) Date: Mon, 01 Jun 2009 09:57:33 +0300 Subject: [mapserver-users] Importing a Google/Yahoo maps raster layer Message-ID: <4A237BDD.8070909@romtelecom.ro> Hello everybody, I'm not sure if it's been disscussed on the list already or not, but I wanted to ask if it's possible to integrate mapserver (and starting with which version?) with Google/Yahoo maps. I would like to display the raster (satellite) images from google/yahoo as a layer in the map. The thing is - I don't want to store the actual raster data on my server - but to make requests to google/yahoo on the fly. Thank you, Adrian Popa