[mapserver-users] Re: Styling a mapfile with SLD?
Hi! Thanks! I really don't understand how that poorly formatted SLD slipped trough the oxygen XML editor, obviously there are many close-tags that misses the backslash. Do you know if there is a ticket regarding the lack of error messages when MapServer fails to either pick up or parse a SLD document? If not I think that I will write one, and encourage one of my colleagues to have a look at the source and maybe write a patch for it. - Regards, Pål Kristensen -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Styling-a-mapfile-with-SLD-tp5126381p5129506.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: Re: [mapserver-users] Mapscript Rasterquery returns empty result
Hi Frank, Alexander, Again thanks for your reply; I've been abroad for a month and haven't had time to check it out. However, I've ben doing some work on it today, and tested the following: I made a test tiff, with 2 large areas surrounded by NoData. When clicking anywhere in any one of the 2 big areas I get the response: {_handle_:Resource id #47,numlines:1,type:0,index:-1,tileindex:-1,classindex:0,numvalues:8,text:,bounds:{_handle_:Resource id #48,minx:401265.0032,miny:633815.31,maxx:401265.0032,maxy:633815.31},values:[null,null,null,null,null,null,null,null]} When I click on any nodata area the response is Warning: [MapServer Error]: msQueryByPoint(): No matching record(s) found. in C:ms4wappsfusionMapServerphpGetRasterPoint.php on line 36 Fatal error: [MapServer Error]: msRASTERLayerGetShape(): Out of range shape index requested. Requested 0 but only 0 shapes available. in C:ms4wappsfusionMapServerphpGetRasterPoint.php on line 42 This behaviour follows the edges of the areas perfectly. Also I checked it out with fixed coord pairs, and it doesn't seem te related to CRS problems. I've also tried IMG instead of TIFF, but no difference there. As mentioned, I'm running mapscript 5.2.1, not 5.6. I'm don't know if this would make a difference, but perhaps someone could test this for me? The TIFF I use for testing is available from: BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }http://www.vdputte.nl/test_tiff.rar *** For the MAP part of the mapfile, I use the following (I removed most non-essential things): EXTENT -100 -120 2902206 1773859 IMAGETYPE PNG24 SIZE 600 600 STATUS ON UNITS METERS NAME Test_Map PROJECTION 'proj=lcc' 'lat_1=52.670002' 'lat_2=54.33' 'lat_0=48' 'lon_0=10' 'x_0=815000' 'y_0=0' 'ellps=intl' 'units=m' 'no_defs' END *** For the test LAYER: LAYER NAME mask DATA c:/ms4w/Apache/htdocs/data/rasters/depthmaps/tert_msk_rast.img TYPE RASTER STATUS ON LAYER TEMPLATE dummy.html CLASS NAME 1 EXPRESSION ([pixel] == 1) STYLE color 255 0 0 END END CLASS NAME 2 EXPRESSION ([pixel] == 2) STYLE color 0 255 0 END END END#layer *** For the querying script I use this: $szLayer = mask; $oLayer = $oMap-getLayerByName($szLayer); //get Layer $oMap-prepareQuery(); // To be sure no CRS problems arise, I use these coords, smack in the middle of the left area $x = 360429; $y = 642536; /* //For NoData, use $x = 759753; $y = 935658; // for a point right between the 2 areas */ $oPoint = ms_newPointObj(); //Create Point $oPoint-setXY($x,$y); $status = $oLayer-queryByPoint($oPoint, MS_MULTIPLE, 1); //Query $status = $oLayer-open(); $result = $oLayer-getResult(0); //Get Result $numResults = $oLayer-getNumResults(); $shape = $oLayer-getShape($result-shapeindex,$result-tileindex); // Retrieve shape echo(var2json($shape)); //echo to browser Can anybody confirm that they get the same behaviour? Cheers, Tom On Thu 29/04/10 16:07 , Frank Warmerdam warmer...@pobox.com sent: Tom van der Putte wrote: Hi, I have the following code: $oMap-prepareQuery(); $oPoint = ms_newPointObj(); $oPoint-setXY($x,$y); //coords received from a AJAX call $oLayer = $oMap-GetLayerByName($szLayer); //Name received from a AJAX call $status = $oLayer-queryByPoint($oPoint, MS_MULTIPLE, 1); $status = $oLayer-open(); $result = $oLayer-getResult(0); $numResults = $oLayer-getNumResults(); $shape = $oLayer-getShape($result-shapeindex,$result-tileindex); echo(var2json($shape)); This results in the follwing json code to be returned: |{_handle_:Resource id #45,numlines:1,type:0,index:-1, tileindex:-1,classindex:0,numvalues:8,text:, bounds:{_handle_:Resource id #46,minx:607000, miny:677000,maxx:607000,maxy:677000}, values:[null,null,null,null,null,null,null,null]}| No matter what I try, it keeps returning empty shapes. How can this be? Tom, I agree with Alexander that you should be carefully reviewing your input coordinate and insuring it is in the same coordinate system as the raster file. The returned values are expected if you are attempting to fetch a non-existant result shape. If you simplify your test case down as much as you can and you still can't figure out why you do not get a result then you could try to bundle this up and submit it as a ticket. Keep in mind that such a ticket is much more likely to be acted on if you make it *easy* for the developer to reproduce your problem. Best regards, -- ---+-- I set the clouds in motion - turn up | Frank Warmerdam, light and sound - activate the
Re: Re: [mapserver-users] Mapscript Rasterquery returns empty result
Hi, LAYER TEMPLATE dummy.html? Does such a thing exist? Have you tried with plain TEMPLATE dummy.html? -Jukka Rahkonen- Lähettäjä: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Tom van der Putte Lähetetty: 2. kesäkuuta 2010 13:34 Vastaanottaja: Frank Warmerdam; Alexander Petkov Kopio: mapserver-users@lists.osgeo.org Aihe: Re: Re: [mapserver-users] Mapscript Rasterquery returns empty result Hi Frank, Alexander, Again thanks for your reply; I've been abroad for a month and haven't had time to check it out. However, I've ben doing some work on it today, and tested the following: I made a test tiff, with 2 large areas surrounded by NoData. When clicking anywhere in any one of the 2 big areas I get the response: {_handle_:Resource id #47,numlines:1,type:0,index:-1,tileindex:-1,classindex:0,numvalues:8,text:,bounds:{_handle_:Resource id #48,minx:401265.0032,miny:633815.31,maxx:401265.0032,maxy:633815.31},values:[null,null,null,null,null,null,null,null]} When I click on any nodata area the response is Warning: [MapServer Error]: msQueryByPoint(): No matching record(s) found. in C:\ms4w\apps\fusion\MapServer\php\GetRasterPoint.php on line 36 Fatal error: [MapServer Error]: msRASTERLayerGetShape(): Out of range shape index requested. Requested 0 but only 0 shapes available. in C:\ms4w\apps\fusion\MapServer\php\GetRasterPoint.php on line 42 This behaviour follows the edges of the areas perfectly. Also I checked it out with fixed coord pairs, and it doesn't seem te related to CRS problems. I've also tried IMG instead of TIFF, but no difference there. As mentioned, I'm running mapscript 5.2.1, not 5.6. I'm don't know if this would make a difference, but perhaps someone could test this for me? The TIFF I use for testing is available from: http://www.vdputte.nl/test_tiff.rar *** For the MAP part of the mapfile, I use the following (I removed most non-essential things): EXTENT -100 -120 2902206 1773859 IMAGETYPE PNG24 SIZE 600 600 STATUS ON UNITS METERS NAME Test_Map PROJECTION 'proj=lcc' 'lat_1=52.670002' 'lat_2=54.33' 'lat_0=48' 'lon_0=10' 'x_0=815000' 'y_0=0' 'ellps=intl' 'units=m' 'no_defs' END *** For the test LAYER: LAYER NAME mask DATA c:/ms4w/Apache/htdocs/data/rasters/depthmaps/tert_msk_rast.img TYPE RASTER STATUS ON LAYER TEMPLATE dummy.html CLASS NAME 1 EXPRESSION ([pixel] == 1) STYLE color 255 0 0 END END CLASS NAME 2 EXPRESSION ([pixel] == 2) STYLE color 0 255 0 END END END#layer *** For the querying script I use this: $szLayer = mask; $oLayer = $oMap-getLayerByName($szLayer); //get Layer $oMap-prepareQuery(); // To be sure no CRS problems arise, I use these coords, smack in the middle of the left area $x = 360429; $y = 642536; /* //For NoData, use $x = 759753; $y = 935658; // for a point right between the 2 areas */ $oPoint = ms_newPointObj(); //Create Point $oPoint-setXY($x,$y); $status = $oLayer-queryByPoint($oPoint, MS_MULTIPLE, 1); //Query $status = $oLayer-open(); $result = $oLayer-getResult(0); //Get Result $numResults = $oLayer-getNumResults(); $shape = $oLayer-getShape($result-shapeindex,$result-tileindex); // Retrieve shape echo(var2json($shape)); //echo to browser Can anybody confirm that they get the same behaviour? Cheers, Tom On Thu 29/04/10 16:07 , Frank Warmerdam warmer...@pobox.com sent: Tom van der Putte wrote: Hi, I have the following code: $oMap-prepareQuery(); $oPoint = ms_newPointObj(); $oPoint-setXY($x,$y); //coords received from a AJAX call $oLayer
Re: Re: Re: [mapserver-users] Mapscript Rasterquery returns empty result
Hi Jukka, Hmmm that does look strange, but as it turns out, removing LAYER didn't help. Thx anyway ;) Tom On Wed 02/06/10 13:23 , Rahkonen Jukka jukka.rahko...@mmmtike.fi sent: BODY { FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif } Hi, LAYER TEMPLATE dummy.html? Does such a thing exist? Have you tried with plain TEMPLATE dummy.html? -Jukka Rahkonen- - Lähettäjä:mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Tom van der Putte Lähetetty: 2. kesäkuuta 2010 13:34 Vastaanottaja:Frank Warmerdam; Alexander Petkov Kopio:mapserver-users@lists.osgeo.org Aihe: Re: Re: [mapserver-users]Mapscript Rasterquery returns empty result Hi Frank, Alexander, Again thanks for your reply; I've beenabroad for a month and haven't had time to check it out. However, I've bendoing some work on it today, and tested the following: I made a testtiff, with 2 large areas surrounded by NoData. When clicking anywhere in anyone of the 2 big areas I get the response: {_handle_:Resource id #47,numlines:1,type:0,index:-1,tileindex:-1,classindex:0,numvalues:8,text:,bounds:{_handle_:Resource id #48,minx:401265.0032,miny:633815.31,maxx:401265.0032,maxy:633815.31},values:[null,null,null,null,null,null,null,null]} WhenI click on any nodata area the response is Warning: [MapServer Error]: msQueryByPoint(): No matching record(s) found. in C:ms4wappsfusionMapServerphpGetRasterPoint.php on line 36 Fatal error: [MapServer Error]: msRASTERLayerGetShape(): Out of range shape index requested. Requested 0 but only 0 shapes available. in C:ms4wappsfusionMapServerphpGetRasterPoint.php on line 42 This behaviour follows the edges of the areas perfectly. Also I checked it out with fixed coord pairs, and it doesn't seem te related to CRS problems. I've also tried IMG instead of TIFF, but no difference there. As mentioned, I'm running mapscript 5.2.1, not 5.6. I'm don't know if this would make a difference, but perhaps someone could test this for me? The TIFF I use for testing is available from: BODY { FONT-SIZE: 12px; FONT-FAMILY: Arial, Helvetica, sans-serif } http://www.vdputte.nl/test_tiff.rar*** For the MAP part of the mapfile,I use the following (I removed most non-essential things): EXTENT -100 -120 29022061773859 IMAGETYPE PNG24 SIZE 600600 STATUS ON UNITSMETERS NAME Test_Map PROJECTION 'proj=lcc' 'lat_1=52.670002' 'lat_2=54.33' 'lat_0=48' 'lon_0=10' 'x_0=815000' 'y_0=0' 'ellps=intl' 'units=m' 'no_defs' END *** For the testLAYER: LAYER NAMEmask DATA c:/ms4w/Apache/htdocs/data/rasters/depthmaps/tert_msk_rast.img TYPE RASTER STATUS ON LAYER TEMPLATE dummy.html CLASS NAME1 EXPRESSION ([pixel] ==1) STYLE color 255 0 0 END END CLASS NAME2 EXPRESSION ([pixel] ==2) STYLE color 0 255 0 END END END#layer *** For the querying script I use this: $szLayer =mask; $oLayer = $oMap-getLayerByName($szLayer); //getLayer $oMap-prepareQuery(); // To be sure no CRS problems arise,I use these coords, smack in the middle of the left area $x = 360429; $y= 642536; /* //For NoData, use $x = 759753; $y = 935658; // for a point rightbetween the 2 areas */ $oPoint = ms_newPointObj();//Create Point $oPoint-setXY($x,$y); $status =$oLayer-queryByPoint($oPoint, MS_MULTIPLE, 1); //Query $status =$oLayer-open(); $result = $oLayer-getResult(0); //GetResult $numResults = $oLayer-getNumResults(); $shape = $oLayer-getShape($result-shapeindex,$result-tileindex); // Retrieve shape echo(var2json($shape)); //echo to browser Cananybody confirm that they get the samebehaviour? Cheers, Tom On Thu 29/04/10 16:07 , Frank Warmerdamwarmer...@pobox.com sent: Tom van der Putte wrote: Hi, I have the following code: $oMap-prepareQuery(); $oPoint = ms_newPointObj(); $oPoint-setXY($x,$y); //coords received from a AJAX call $oLayer = $oMap-GetLayerByName($szLayer); //Name received from a AJAX call $status = $oLayer-queryByPoint($oPoint, MS_MULTIPLE, 1); $status = $oLayer-open(); $result = $oLayer-getResult(0); $numResults = $oLayer-getNumResults(); $shape = $oLayer-getShape($result-shapeindex,$result-tileindex); echo(var2json($shape)); This results in the follwing json code to be returned: |{_handle_:Resource id #45,numlines:1,type:0,index:-1,
Re: [mapserver-users] Re: Styling a mapfile with SLD?
On 02/06/2010 2:39 AM, paalkr wrote: Hi! Thanks! I really don't understand how that poorly formatted SLD slipped trough the oxygen XML editor, obviously there are many close-tags that misses the backslash. Do you know if there is a ticket regarding the lack of error messages when MapServer fails to either pick up or parse a SLD document? If not I think that I will write one, and encourage one of my colleagues to have a look at the source and maybe write a patch for it. There is an ol one http://trac.osgeo.org/mapserver/ticket/1471 that I just updated. The errors are trapped but at this point we let the WMS request succeed without the SLD. I believe the correct way would be to return an exception. best regards, - Regards, Pål Kristensen -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapscript Rasterquery returns empty result
Tom van der Putte wrote: As mentioned, I'm running mapscript 5.2.1, not 5.6. I'm don't know if this would make a difference, but perhaps someone could test this for me? You could test this yourself with MapServer 5.6.3 quickly by extracting MS4W version 3.0 onto a different drive. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: Styling a mapfile with SLD?
Yewondwossen Assefa wrote: On 02/06/2010 2:39 AM, paalkr wrote: Hi! Thanks! I really don't understand how that poorly formatted SLD slipped trough the oxygen XML editor, obviously there are many close-tags that misses the backslash. Do you know if there is a ticket regarding the lack of error messages when MapServer fails to either pick up or parse a SLD document? If not I think that I will write one, and encourage one of my colleagues to have a look at the source and maybe write a patch for it. There is an ol one http://trac.osgeo.org/mapserver/ticket/1471 that I just updated. The errors are trapped but at this point we let the WMS request succeed without the SLD. I believe the correct way would be to return an exception. This needs some consideration. Think about an end user who is using somew ready made application which is set to get styles from an external SLD. Now if this SLD gets broken, which would you prefer as an user: a correct exception without a map, or a map which may have wrong styling? I would take the map. -Jukka Rahkonen- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: Styling a mapfile with SLD?
On 02/06/2010 9:01 AM, Rahkonen Jukka wrote: Yewondwossen Assefa wrote: On 02/06/2010 2:39 AM, paalkr wrote: Hi! Thanks! I really don't understand how that poorly formatted SLD slipped trough the oxygen XML editor, obviously there are many close-tags that misses the backslash. Do you know if there is a ticket regarding the lack of error messages when MapServer fails to either pick up or parse a SLD document? If not I think that I will write one, and encourage one of my colleagues to have a look at the source and maybe write a patch for it. There is an ol one http://trac.osgeo.org/mapserver/ticket/1471 that I just updated. The errors are trapped but at this point we let the WMS request succeed without the SLD. I believe the correct way would be to return an exception. This needs some consideration. Think about an end user who is using somew ready made application which is set to get styles from an external SLD. Now if this SLD gets broken, which would you prefer as an user: a correct exception without a map, or a map which may have wrong styling? I would take the map. -Jukka Rahkonen- I guess it is debatable. I have not seen something in the specs re. this issue. I will send a note to wms-dev list at OGC to see if there is something in the specs that deals with this issue. best regards, -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapScript resultsGetShape confusion [solved!]
Ok.. so with a lot of fiddling around (and with inspiration from a Frank Warmerdam's testing script) I've been able to find the cause of the problem, as well as its solution: with a PostGIS connected layer, a call to resultsGetShape *has* to include the third parameter, tileindex: resultsGetShape(shp, res.shapeindex) -- hangs MS 5.6.3 resultsGetShape(shp, res.shapeindex, res.tileindex) -- works great! I don't know if it's really a bug, but it contradicts the documentation, in which the tileindex argument is optional, and it wasn't behaving like that (to my knowledge) with MS in [5.6.0, 5.6.2]. By the way, an initial observation I made was wrong: it also affects the PHP version, and the workaround is the same. Best regards, Christian On Tue, Jun 1, 2010 at 5:02 PM, Daniel Morissette dmorisse...@mapgears.com wrote: Christian Jauvin wrote: I did what you suggested, and added: CONFIG MS_ERRORFILE error file CONFIG CPL_DEBUG ON DEBUG 5 Did you also include DEBUG 5 inside the POSTGIS layer itself? to my mapfile, and performed my query again. It generated a very long file (200K+ lines!) with only two types of line: [Tue Jun 1 14:36:01 2010].765230 getSymbol(): Symbol definition error. Parsing error near (null):(line 208) [...] [Tue Jun 1 14:36:01 2010].777963 msPostGISLayerResultsGetShape called for record = 338 [...] 200k times the same message sounds like an infinite loop of some sort. Perhaps look at the first few lines of debug/error messages. There may be a different message that would have been output *before* entering the infinite loop and that could give a hint about what is happening. Just a guess... can't do much more from here. What is the last version that worked fine? 5.6.2? Daniel -- Daniel Morissette http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] MapScript resultsGetShape confusion [solved!]
Not sure why it is required with a PostGIS layer, but it shouldn't. In PHP, -1 is passe when the tileindex is not specified. Please fill a bug and assign it to aboudreault, I'm going to take a look. Thanks, Alan On June 2, 2010 11:17:30 am Christian Jauvin wrote: Ok.. so with a lot of fiddling around (and with inspiration from a Frank Warmerdam's testing script) I've been able to find the cause of the problem, as well as its solution: with a PostGIS connected layer, a call to resultsGetShape *has* to include the third parameter, tileindex: resultsGetShape(shp, res.shapeindex) -- hangs MS 5.6.3 resultsGetShape(shp, res.shapeindex, res.tileindex) -- works great! I don't know if it's really a bug, but it contradicts the documentation, in which the tileindex argument is optional, and it wasn't behaving like that (to my knowledge) with MS in [5.6.0, 5.6.2]. By the way, an initial observation I made was wrong: it also affects the PHP version, and the workaround is the same. Best regards, Christian On Tue, Jun 1, 2010 at 5:02 PM, Daniel Morissette dmorisse...@mapgears.com wrote: Christian Jauvin wrote: I did what you suggested, and added: CONFIG MS_ERRORFILE error file CONFIG CPL_DEBUG ON DEBUG 5 Did you also include DEBUG 5 inside the POSTGIS layer itself? to my mapfile, and performed my query again. It generated a very long file (200K+ lines!) with only two types of line: [Tue Jun 1 14:36:01 2010].765230 getSymbol(): Symbol definition error. Parsing error near (null):(line 208) [...] [Tue Jun 1 14:36:01 2010].777963 msPostGISLayerResultsGetShape called for record = 338 [...] 200k times the same message sounds like an infinite loop of some sort. Perhaps look at the first few lines of debug/error messages. There may be a different message that would have been output *before* entering the infinite loop and that could give a hint about what is happening. Just a guess... can't do much more from here. What is the last version that worked fine? 5.6.2? Daniel -- Daniel Morissette http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Alan Boudreault Mapgears http://www.mapgears.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] MapScript resultsGetShape confusion [solved!]
This may be the problem I had when I tried to update to 5.6.3. from 5.6.1. I'm in the middle of a project and did not have time to figure out what was causing the problem. The only change was the change to the MapServer version so I quickly reverted back. I'm using PHP Mapscript. I'll see if I can find the time to check to see if this is the problem I was having. Worth -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Christian Jauvin Sent: Wednesday, June 02, 2010 11:18 AM To: Daniel Morissette Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] MapScript resultsGetShape confusion [solved!] Ok.. so with a lot of fiddling around (and with inspiration from a Frank Warmerdam's testing script) I've been able to find the cause of the problem, as well as its solution: with a PostGIS connected layer, a call to resultsGetShape *has* to include the third parameter, tileindex: resultsGetShape(shp, res.shapeindex) -- hangs MS 5.6.3 resultsGetShape(shp, res.shapeindex, res.tileindex) -- works great! I don't know if it's really a bug, but it contradicts the documentation, in which the tileindex argument is optional, and it wasn't behaving like that (to my knowledge) with MS in [5.6.0, 5.6.2]. By the way, an initial observation I made was wrong: it also affects the PHP version, and the workaround is the same. Best regards, Christian On Tue, Jun 1, 2010 at 5:02 PM, Daniel Morissette dmorisse...@mapgears.com wrote: Christian Jauvin wrote: I did what you suggested, and added: CONFIG MS_ERRORFILE error file CONFIG CPL_DEBUG ON DEBUG 5 Did you also include DEBUG 5 inside the POSTGIS layer itself? to my mapfile, and performed my query again. It generated a very long file (200K+ lines!) with only two types of line: [Tue Jun 1 14:36:01 2010].765230 getSymbol(): Symbol definition error. Parsing error near (null):(line 208) [...] [Tue Jun 1 14:36:01 2010].777963 msPostGISLayerResultsGetShape called for record = 338 [...] 200k times the same message sounds like an infinite loop of some sort. Perhaps look at the first few lines of debug/error messages. There may be a different message that would have been output *before* entering the infinite loop and that could give a hint about what is happening. Just a guess... can't do much more from here. What is the last version that worked fine? 5.6.2? Daniel -- Daniel Morissette http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users