[mapserver-users] Help PHP mapscript. DrawQuery with extent=shapes

2010-01-29 Thread Pedroaa

Hi friends, my english is not so good (im from argentina). 
I need do a $oMap-drawQuery(), but i need do it like Mapserver CGI. 
/cgi-bin/mapserv?mode=nqueryimgext=-60.70866644902204+-31.64842730088904+-60.7026972983+-31.644427300889028
 

- mapext=shapes  - 

imgxy=367+133imgbox=367+133+473+249imgsize=829+552layers=departamentos 

Do you know if there is any way to do that easily using phpmapscript? 


thanks 

Pedro.
-- 
View this message in context: 
http://n2.nabble.com/Help-PHP-mapscript-DrawQuery-with-extent-shapes-tp4479709p4479709.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


[mapserver-users] New to mapserver; question about USGS DRG/GeoTIFF files

2010-01-29 Thread Jon Miner



Hi -

I'm new to Mapserver, and so far impressed by it's capabilities.  I've 
installed the FGS package via fgs-mapserver_basic_5.6.0-fgs_9.5-linux-i386.bin 
and played with their demo program.

I'm having a problem with a USGS DRG file that is encoded as a GeoTIFF file.  
It doesn't display on the webpage, and I'm not sure where to start debugging 
this.  I've checked the file with gdalinfo:

Driver: GTiff/GeoTIFF
Files: o43071a4.tif
Size is 5388, 6854
Coordinate System is:
PROJCS[NAD27 / UTM zone 19N,
GEOGCS[NAD27,
DATUM[North_American_Datum_1927,
SPHEROID[Clarke 1866,6378206.4,294.9786982138982,
AUTHORITY[EPSG,7008]],
AUTHORITY[EPSG,6267]],
PRIMEM[Greenwich,0],
UNIT[degree,0.0174532925199433],
AUTHORITY[EPSG,4267]],
PROJECTION[Transverse_Mercator],
PARAMETER[latitude_of_origin,0],
PARAMETER[central_meridian,-69],
PARAMETER[scale_factor,0.9996],
PARAMETER[false_easting,50],
PARAMETER[false_northing,0],
UNIT[metre,1,
AUTHORITY[EPSG,9001]],
AUTHORITY[EPSG,26719]]
Origin = (295125.99949388772,4778305.84265616444)
Pixel Size = (2.4384000,-2.4384000)
Metadata:
  AREA_OR_POINT=Area
  TIFFTAG_IMAGEDESCRIPTION=USGS GeoTIFF DRG 1:24000 Quad of Manchester North. 
Product:522644
  TIFFTAG_SOFTWARE=USGS CD Archiver program tif2usgsdrg v.1.0
  TIFFTAG_DATETIME=1997:01:10 07:16:28
  TIFFTAG_XRESOLUTION=72
  TIFFTAG_YRESOLUTION=72
  TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
Image Structure Metadata:
  COMPRESSION=PACKBITS
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left  (  295125.999, 4778305.843) ( 71d31'7.66W, 43d 7'54.16N)
Lower Left  (  295125.999, 4761593.049) ( 71d30'45.52W, 42d58'52.88N)
Upper Right (  308264.099, 4778305.843) ( 71d21'26.67W, 43d 8'6.54N)
Lower Right (  308264.099, 4761593.049) ( 71d21'5.95W, 42d59'5.20N)
Center  (  301695.049, 4769949.446) ( 71d26'6.44W, 43d 3'29.80N)
Band 1 Block=5388x1 Type=Byte, ColorInterp=Palette
  Color Table (RGB with 256 entries)
0: 0,0,0,255
1: 255,255,255,255
2: 0,151,164,255
3: 203,0,23,255
4: 131,66,37,255
5: 201,234,157,255
6: 137,51,128,255
7: 255,234,0,255
8: 167,226,226,255
9: 255,184,184,255
   10: 218,179,214,255
   11: 209,209,209,255
   12: 207,164,142,255
(etc...)

And my map file looks like this:

MAP
NAME DEMO
STATUS ON
SIZE 400 300
SYMBOLSET ../etc/symbols.sym
EXTENT -72 42 -71 44
UNITS dd
SCALEDENOM 24000
SHAPEPATH ../data
IMAGECOLOR 255 255 255
FONTSET ../etc/fonts.txt
CONFIG MS_ERRORFILE /tmp/ms_error.txt
#
# Start of web interface definition
#
WEB
  MINSCALEDENOM 24000
  MAXSCALEDENOM 24000
#
# On Windows systems, /tmp and /opt/fgs/tmp/ms_tmp/ should be created at the 
root
# of the drive where the .MAP file resides.
#
  IMAGEPATH /opt/fgs/tmp/ms_tmp/
  IMAGEURL /ms_tmp/
  LOG /tmp/gmap.log
END

LAYER
  NAME usgs
  METADATA
DESCRIPTION USGS GeoTIFF
  END
  TYPE RASTER
  STATUS ON
  DATA o43071a4.tif
END

END # Map File


  
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Help PHP mapscript. DrawQuery with extent=shapes

2010-01-29 Thread Alan Boudreault
Hi Predroaa,

To simulate this CGI request, you could use:

 * the OwsrequestObj class
 * the function Layer-queryByShape()

Alan

On January 29, 2010 07:34:09 am Pedroaa wrote:
 Hi friends, my english is not so good (im from argentina).
 I need do a $oMap-drawQuery(), but i need do it like Mapserver CGI.
 /cgi-bin/mapserv?mode=nqueryimgext=-60.70866644902204+-31.64842730088904+-
 60.7026972983+-31.644427300889028
 
 - mapext=shapes  -
 
 imgxy=367+133imgbox=367+133+473+249imgsize=829+552layers=departamentos
 
 Do you know if there is any way to do that easily using phpmapscript?
 
 
 thanks
 
 Pedro.
 

-- 
Alan Boudreault
Mapgears
http://www.mapgears.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] javscript controls for Zoom and Pan

2010-01-29 Thread Matías Manuel Grandi
Hi friends!
I am just starting with mapserver, it's great!
I have a site with phpmapscript and posgis databases. I want to change the
traditional zoom and pan forms controls and add some javascript control for
this.
Is there any script ready to use to add to my site so my controls look
nicer?

Thx!
Mato.-
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] javscript controls for Zoom and Pan

2010-01-29 Thread Christopher Schmidt
On Fri, Jan 29, 2010 at 11:02:56AM -0300, Matías Manuel Grandi wrote:
 Hi friends!
 I am just starting with mapserver, it's great!
 I have a site with phpmapscript and posgis databases. I want to change the
 traditional zoom and pan forms controls and add some javascript control for
 this.
 Is there any script ready to use to add to my site so my controls look
 nicer?

You might be interested in OpenLayers.

  http://openlayers.org/

-- 
Christopher Schmidt
MetaCarta
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] arithmethic rotation values

2010-01-29 Thread Sven Schroeter

Hi,
I have this layer:

LAYER
 NAME kanal_fliess_haltung
 TYPE point
 STATUS on
 DATA kanal/Fliesspfeil.shp
 CLASS 
  STYLE  
   SYMBOL 'triangle'

   SIZE 10
   COLOR 0 0 0
   ANGLE [Drehung]
  END
END
END

In my ange-field there are arithmethic rotation values, not geographic.
So my symbol gets the wrong rotation. Any idea to solve the problem?

Thanks
Sven


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] C# query method

2010-01-29 Thread Murty Maganti
Hi

 

I want to know if a layer's filter (set using layerObj.setFilter method)
is used while executing any of the query methods on a layer like
queryByShape, queryByAttributes, queryByRect etc.

 

Thanks

Murty

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] How to serve individual RAW binary Bands fromWCS as floating point geotiff

2010-01-29 Thread Peter Willis

Hello,

Interesting... The documentation indicates:

RangeSubset=contents:nearest[Band[120]]

I tried what you suggest but continue to have the same problem.
The mapserver *did not* complain about 'RESAMPLE=BILINEARBand=120'
so I guess we can assume that those parameters work.

Peter


Rahkonen Jukka wrote:

Hi,

I have never used this myself: RangeSubset=contents:nearest[Band[120]]
Is that WCS 1.0.0 parameter?  For selecting bands from WCS 1.0.0 service I have been using something like 
RESAMPLE=BILINEARBand=4


-Jukka Rahkonen-


-Alkuperäinen viesti-
Lähettäjä: mapserver-users-boun...@lists.osgeo.org puolesta: Peter Willis
Lähetetty: pe 29.1.2010 0:26
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: Re: [mapserver-users] How to serve individual RAW binary Bands fromWCS as 
floating point geotiff
 
Hello,


The definition of GEOTIFF_FLOAT is as follows:

OUTPUTFORMAT
   NAME GEOTIFF_FLOAT
   DRIVER GDAL/GTiff
   MIMETYPE application/octet-stream
   IMAGEMODE FLOAT32
END

I Added the MIMETYPE as shown to ensure that web browsers
would ask to save the file rather than just open it in an
image viewer from a temp file. (MS Windows...)

That part works fine.


Mostly I am concerned with extracting a specific 'band'
from the multi-band file. The server serves floating point
geotiff just fine.

Peter


Rahkonen Jukka wrote:

Hi,

How have you defined the OUTPUTFORMAT for GEOTIFF_FLOAT?

-Jukka Rahkonen-


Peter Willis wrote:

 

Hello,
I have been setting up a WCS map file for mapserver.
PROBLEM:
Problems arise when rasters are defined
as follows:

LAYER
   NAME SomeDataChannel120
   STATUS OFF
   DEBUG ON
   TYPE RASTER ### required
   PROCESSING BANDS=120
   METADATA
 wcs_label   Data/stuff
 wcs_rangeset_name   'bands'
 wcs_rangeset_label  Stuff thats mapped
 ows_extent '-135 55 -121 46'
 wcs_resolution '0.08332 -0.083332'
 ows_srs 'EPSG:4326'
 wcs_srs 'EPSG:4326'
 wcs_formats 'GEOTIFF_FLOAT,GEOTIFF_INT16'
 wcs_nativeformat 'ENVI'
#wcs_bandcount '563'
 wcs_rangeset_axes 'bands'
   END
   DATA /data/stuff.img
   PROJECTION
 init=epsg:4623
   END
   DUMP TRUE ### required
END


I have  'wcs_bandcount'  commented out because mapserver
causes an internal error in the web server if I define the
band count.

I get floating point geotiff served with the following client request:
http://sparky.com/cgi-bin/wcs?REQUEST=GetCoverageSERVICE=WCSVERSION=1.0.0COVERAGE=SomeDataChannel120CRS=EPSG:4326BBOX=-135,55,-121,46WIDTH=432HEIGHT=216FORMAT=GEOTIFF_FLOATRangeSubset=contents:nearest[Band[120]]

..however, I always only get the first band from the img file


QUESTIONS:

Is there a problem with this setup?

Do I need to define each band as a layer in the mapfile
or will mapserver WCS allow the client to request a single
channel?

Thanks for any enlightenment,

Peter

___
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] javscript controls for Zoom and Pan

2010-01-29 Thread Christian Jauvin
Hi Matias,

I will take the occasion to suggest that you also take a look at
Dracones, a new framework I recently released for MapServer, which
provides easy handling of basic mapping services like pan and zoom,
among other things:

http://surveillance.mcgill.ca/dracones/

Best,

Christian


2010/1/29 Matías Manuel Grandi matiasgra...@gmail.com:
 Hi friends!
 I am just starting with mapserver, it's great!
 I have a site with phpmapscript and posgis databases. I want to change the
 traditional zoom and pan forms controls and add some javascript control for
 this.
 Is there any script ready to use to add to my site so my controls look
 nicer?

 Thx!
 Mato.-

 ___
 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] mapserver 5.4.2 Reprojection error

2010-01-29 Thread Rahkonen Jukka
Hi,

I believe it is basically this issue:
http://trac.osgeo.org/proj/ticket/11

So it is known already.  Make a comment on a ticket and add some pressure, 
perhaps some day it will be corrected.

-Jukka-


-Alkuperäinen viesti-
Lähettäjä: mapserver-users-boun...@lists.osgeo.org puolesta: tommaso
Lähetetty: pe 29.1.2010 18:37
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: Re: [mapserver-users] mapserver 5.4.2 Reprojection error
 
On Tue, 2010-01-26 at 15:13 +0200, Rahkonen Jukka wrote:

 Hi,
 
 I am not sure if this helps in your case, but you can try to edit the
 epsg file in the projection library and add +towgs84=0,0,0 in the
 line that defines the 31467 projection.  EPSG:3067 needs this extra
 parameter for sure and I believe it is the same with your next try
 with  EPGS:32632. Let's hope it cures 31467 as well.
 
  
 
 -Jukka Rahkonen-  


It seems to work with both  EPGS:31467 and EPGS:32632, thanks again.
Is it a bug in Mapserver, it isn't ? should I report a bug?

greets,
Tom



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] javscript controls for Zoom and Pan

2010-01-29 Thread Matías Manuel Grandi
El 29 de enero de 2010 13:46, Christian Jauvin cjau...@gmail.com escribió:

 Hi Matias,

 I will take the occasion to suggest that you also take a look at
 Dracones, a new framework I recently released for MapServer, which
 provides easy handling of basic mapping services like pan and zoom,
 among other things:

 http://surveillance.mcgill.ca/dracones/

 Best,

 Christian


 2010/1/29 Matías Manuel Grandi matiasgra...@gmail.com:
  Hi friends!
  I am just starting with mapserver, it's great!
  I have a site with phpmapscript and posgis databases. I want to change
 the
  traditional zoom and pan forms controls and add some javascript control
 for
  this.
  Is there any script ready to use to add to my site so my controls look
  nicer?
 
  Thx!
  Mato.-
 
  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 

Thanks for both answers. But I was looking for something simple. Just a
piece of code to replace de old-fashioned zoom and pan form controls.
Do something simple exist or I have to start thinking in moving to a
mapserver framework?

Thx!
Mato.-
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] C# query method

2010-01-29 Thread Lime, Steve D (DNR)
The one notable exception is the queryByAttribute method. It definitely ignores 
the existing filter.

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Tamas Szekeres
Sent: Friday, January 29, 2010 12:32 PM
To: Murty Maganti
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] C# query method

Murty,

It's up to the driver how the filter is actually used, but the query methods 
should normally use the specified filter setting to limit the shapes retrieved 
from the data source.

Best regards,

Tamas

2010/1/29 Murty Maganti mmaga...@oriongis.commailto:mmaga...@oriongis.com
Hi

I want to know if a layer's filter (set using layerObj.setFilter method) is 
used while executing any of the query methods on a layer like queryByShape, 
queryByAttributes, queryByRect etc.

Thanks
Murty

___
mapserver-users mailing list
mapserver-users@lists.osgeo.orgmailto: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] C# query method

2010-01-29 Thread Murty Maganti
Hi Steve/Tamas

 

Until now I was under the impression that I can't do a query by
attributes and shape in a single call.  Hence I had written my code
first to execute query by shape and append those results to query
expression as IN clause and invoke queryByAttributes.

 

While doing some testing on oracle spatial layer, I found that
queryByShape is actually honoring filter expression on the layer. Since
this will be executed as a single call, I want to modify my code to call
only queryByShape and set the query expression to filter.  This will
improve overall time taken for the query execution but I want to make
sure that his behavior is consistent across all data sets (providers).

 

Thanks

Murty

 

From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us] 
Sent: Friday, January 29, 2010 2:27 PM
To: Tamas Szekeres; Murty Maganti
Cc: mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] C# query method

 

The one notable exception is the queryByAttribute method. It definitely
ignores the existing filter.

 

Steve

 

From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Tamas
Szekeres
Sent: Friday, January 29, 2010 12:32 PM
To: Murty Maganti
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] C# query method

 

Murty,

It's up to the driver how the filter is actually used, but the query
methods should normally use the specified filter setting to limit the
shapes retrieved from the data source.

Best regards,

Tamas

2010/1/29 Murty Maganti mmaga...@oriongis.com

Hi

 

I want to know if a layer's filter (set using layerObj.setFilter method)
is used while executing any of the query methods on a layer like
queryByShape, queryByAttributes, queryByRect etc.

 

Thanks

Murty


___
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] New to mapserver; question about USGS DRG/GeoTIFF files

2010-01-29 Thread Roger André
Hi Jon,

You don't appear to have any projection info in your map file.  Since you
have UNITS dd in it, I assume you want to display the map in lat/lon
WGS84?  If so, your MAP file needs an entry that looks like this:

  PROJECTION
init=epsg:4326
  END

and your usgs LAYER (the name should be quoted btw) should have the UTM
projection defined in it, like this:

LAYER
  NAME usgs
  PROJECTION  init=epsg:26719 END

Best of luck,

Roger
--




On Fri, Jan 29, 2010 at 4:38 AM, Jon Miner cp_...@yahoo.com wrote:




 Hi -

 I'm new to Mapserver, and so far impressed by it's capabilities.  I've
 installed the FGS package via
 fgs-mapserver_basic_5.6.0-fgs_9.5-linux-i386.bin and played with their demo
 program.

 I'm having a problem with a USGS DRG file that is encoded as a GeoTIFF
 file.  It doesn't display on the webpage, and I'm not sure where to start
 debugging this.  I've checked the file with gdalinfo:

 Driver: GTiff/GeoTIFF
 Files: o43071a4.tif
 Size is 5388, 6854
 Coordinate System is:
 PROJCS[NAD27 / UTM zone 19N,
GEOGCS[NAD27,
DATUM[North_American_Datum_1927,
SPHEROID[Clarke 1866,6378206.4,294.9786982138982,
AUTHORITY[EPSG,7008]],
AUTHORITY[EPSG,6267]],
PRIMEM[Greenwich,0],
UNIT[degree,0.0174532925199433],
AUTHORITY[EPSG,4267]],
PROJECTION[Transverse_Mercator],
PARAMETER[latitude_of_origin,0],
PARAMETER[central_meridian,-69],
PARAMETER[scale_factor,0.9996],
PARAMETER[false_easting,50],
PARAMETER[false_northing,0],
UNIT[metre,1,
AUTHORITY[EPSG,9001]],
AUTHORITY[EPSG,26719]]
 Origin = (295125.99949388772,4778305.84265616444)
 Pixel Size = (2.4384000,-2.4384000)
 Metadata:
  AREA_OR_POINT=Area
  TIFFTAG_IMAGEDESCRIPTION=USGS GeoTIFF DRG 1:24000 Quad of Manchester
 North. Product:522644
  TIFFTAG_SOFTWARE=USGS CD Archiver program tif2usgsdrg v.1.0
  TIFFTAG_DATETIME=1997:01:10 07:16:28
  TIFFTAG_XRESOLUTION=72
  TIFFTAG_YRESOLUTION=72
  TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
 Image Structure Metadata:
  COMPRESSION=PACKBITS
  INTERLEAVE=BAND
 Corner Coordinates:
 Upper Left  (  295125.999, 4778305.843) ( 71d31'7.66W, 43d 7'54.16N)
 Lower Left  (  295125.999, 4761593.049) ( 71d30'45.52W, 42d58'52.88N)
 Upper Right (  308264.099, 4778305.843) ( 71d21'26.67W, 43d 8'6.54N)
 Lower Right (  308264.099, 4761593.049) ( 71d21'5.95W, 42d59'5.20N)
 Center  (  301695.049, 4769949.446) ( 71d26'6.44W, 43d 3'29.80N)
 Band 1 Block=5388x1 Type=Byte, ColorInterp=Palette
  Color Table (RGB with 256 entries)
0: 0,0,0,255
1: 255,255,255,255
2: 0,151,164,255
3: 203,0,23,255
4: 131,66,37,255
5: 201,234,157,255
6: 137,51,128,255
7: 255,234,0,255
8: 167,226,226,255
9: 255,184,184,255
   10: 218,179,214,255
   11: 209,209,209,255
   12: 207,164,142,255
 (etc...)

 And my map file looks like this:

 MAP
 NAME DEMO
 STATUS ON
 SIZE 400 300
 SYMBOLSET ../etc/symbols.sym
 EXTENT -72 42 -71 44
 UNITS dd
 SCALEDENOM 24000
 SHAPEPATH ../data
 IMAGECOLOR 255 255 255
 FONTSET ../etc/fonts.txt
 CONFIG MS_ERRORFILE /tmp/ms_error.txt
 #
 # Start of web interface definition
 #
 WEB
  MINSCALEDENOM 24000
  MAXSCALEDENOM 24000
 #
 # On Windows systems, /tmp and /opt/fgs/tmp/ms_tmp/ should be created at
 the root
 # of the drive where the .MAP file resides.
 #
  IMAGEPATH /opt/fgs/tmp/ms_tmp/
  IMAGEURL /ms_tmp/
  LOG /tmp/gmap.log
 END

 LAYER
  NAME usgs
  METADATA
DESCRIPTION USGS GeoTIFF
  END
  TYPE RASTER
  STATUS ON
  DATA o43071a4.tif
 END

 END # Map File



 ___
 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] Need help testing WMS segfault

2010-01-29 Thread Roger André
Hi All,

I'm experiencing some strange behavior that I would appreciate some help
testing.  My MapServer 5.6 instance is segfaulting in response to certain
WMS requests it is receiving from TileCache.  Below is one of the specific
requests:

http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/seattle.maplayers=roadsstyles=service=WMSwidth=256format=image/pngrequest=GetMapheight=256srs=EPSG:4326version=1.1.1bbox=-122.338256836,47.6586914062,-122.332763672,47.6641845703

I'd appreciate it if someone who has a layer that covers Seattle would try
the bbox extents listed above and report back if it causes an error for
them.

FYI - When I set this bbox as the EXTENTS in my MAP, and the SIZE to 256
256, Mapserver delivers the image without any problem.

Thanks,

Roger
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Need help testing WMS segfault

2010-01-29 Thread Paul Ramsey
Roger,

It looks like you're on Linux, so pull a stacktrace, it's fun!

gdb /path/to/mapserv

... lots of info ...

(gdb) run 
QUERY_STRING=map=/var/www/mapfiles/seattle.maplayers=roadsstyles=service=WMSwidth=256format=image/pngrequest=GetMapheight=256srs=EPSG:4326version=1.1.1bbox=-122.338256836,47.6586914062,-122.332763672,47.6641845703

then when you hit to segfault, do

(gdb) bt

bt stands for backtrace

now you'll have a lot more useful information about what went wrong,

Yours,

Paul

On Fri, Jan 29, 2010 at 1:27 PM, Roger André ran...@gmail.com wrote:
 Hi All,

 I'm experiencing some strange behavior that I would appreciate some help
 testing.  My MapServer 5.6 instance is segfaulting in response to certain
 WMS requests it is receiving from TileCache.  Below is one of the specific
 requests:

 http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/seattle.maplayers=roadsstyles=service=WMSwidth=256format=image/pngrequest=GetMapheight=256srs=EPSG:4326version=1.1.1bbox=-122.338256836,47.6586914062,-122.332763672,47.6641845703

 I'd appreciate it if someone who has a layer that covers Seattle would try
 the bbox extents listed above and report back if it causes an error for
 them.

 FYI - When I set this bbox as the EXTENTS in my MAP, and the SIZE to 256
 256, Mapserver delivers the image without any problem.

 Thanks,

 Roger

 ___
 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] Need help testing WMS segfault

2010-01-29 Thread Roger André
Hi Paul,

Thanks for the advice. (Chris Schmidt suggested I do the same thing in IRC
yesterday, and I forgot to try it.)

Below are the results of gdb.  It's fun to run, but uhm... not something I'm
readily able to decipher (yet).

$ gdb /usr/lib/cgi-bin/mapserv
GNU gdb (GDB) 7.0-ubuntu
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html

This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as i486-linux-gnu.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /usr/lib/cgi-bin/mapserv...done.
(gdb) run
QUERY_STRING=map=/var/www/mapfiles/seattle.maplayers=roadsstyles=service=WMSwidth=256format=image/pngrequest=GetMapheight=256srs=EPSG:4326version=1.1.1bbox=-122.338256836,47.6586914062,-122.332763672,47.6641845703
Starting program: /usr/lib/cgi-bin/mapserv
QUERY_STRING=map=/var/www/mapfiles/seattle.maplayers=roadsstyles=service=WMSwidth=256format=image/pngrequest=GetMapheight=256srs=EPSG:4326version=1.1.1bbox=-122.338256836,47.6586914062,-122.332763672,47.6641845703
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x0740bbf2 in ?? () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0  0x0740bbf2 in ?? () from /lib/tls/i686/cmov/libc.so.6
#1  0x0740d868 in malloc () from /lib/tls/i686/cmov/libc.so.6
#2  0x006abbb7 in operator new(unsigned int) () from /usr/lib/libstdc++.so.6
#3  0x006abced in operator new[](unsigned int) () from
/usr/lib/libstdc++.so.6
#4  0x080dbdd5 in void
mapserver::render_scanlinesmapserver::rasterizer_scanline_aamapserver::rasterizer_sl_clipmapserver::ras_conv_int
, mapserver::scanline_u8,
mapserver::renderer_scanline_aa_solidmapserver::renderer_basemapserver::pixfmt_alpha_blend_rgbamapserver::blender_rgba_premapserver::rgba8,
mapserver::order_bgra, mapserv_row_ptr_cacheint, int  
(mapserver::rasterizer_scanline_aamapserver::rasterizer_sl_clipmapserver::ras_conv_int
, mapserver::scanline_u8,
mapserver::renderer_scanline_aa_solidmapserver::renderer_basemapserver::pixfmt_alpha_blend_rgbamapserver::blender_rgba_premapserver::rgba8,
mapserver::order_bgra, mapserv_row_ptr_cacheint, int  ) ()
#5  0x080ba7ac in T.1744 ()
#6  0x080bdbda in msDrawShadeSymbolAGG ()
#7  0x0813b3d2 in msDrawShadeSymbol ()
#8  0x0809ff17 in msDrawShape ()
#9  0x080a2cfe in msDrawVectorLayer ()
#10 0x080a343d in msDrawLayer ()
#11 0x080a4fd7 in msDrawMap ()
#12 0x08157d82 in msWMSGetMap ()
#13 0x0815cf36 in msWMSDispatch ()
#14 0x080e9924 in msOWSDispatch ()
#15 0x08056583 in main ()
(gdb)

Roger
--

On Fri, Jan 29, 2010 at 1:38 PM, Paul Ramsey pram...@opengeo.org wrote:

 Roger,

 It looks like you're on Linux, so pull a stacktrace, it's fun!

 gdb /path/to/mapserv

 ... lots of info ...

 (gdb) run
 QUERY_STRING=map=/var/www/mapfiles/seattle.maplayers=roadsstyles=service=WMSwidth=256format=image/pngrequest=GetMapheight=256srs=EPSG:4326version=1.1.1bbox=-122.338256836,47.6586914062,-122.332763672,47.6641845703

 then when you hit to segfault, do

 (gdb) bt

 bt stands for backtrace

 now you'll have a lot more useful information about what went wrong,

 Yours,

 Paul

 On Fri, Jan 29, 2010 at 1:27 PM, Roger André ran...@gmail.com wrote:
  Hi All,
 
  I'm experiencing some strange behavior that I would appreciate some help
  testing.  My MapServer 5.6 instance is segfaulting in response to certain
  WMS requests it is receiving from TileCache.  Below is one of the
 specific
  requests:
 
 
 http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/seattle.maplayers=roadsstyles=service=WMSwidth=256format=image/pngrequest=GetMapheight=256srs=EPSG:4326version=1.1.1bbox=-122.338256836,47.6586914062,-122.332763672,47.6641845703
 
  I'd appreciate it if someone who has a layer that covers Seattle would
 try
  the bbox extents listed above and report back if it causes an error for
  them.
 
  FYI - When I set this bbox as the EXTENTS in my MAP, and the SIZE to 256
  256, Mapserver delivers the image without any problem.
 
  Thanks,
 
  Roger
 
  ___
  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] Need help testing WMS segfault

2010-01-29 Thread Paul Ramsey
Lovely, Another AGG bug. Well the next thing is to package up your environment 
so a developer can duplicate the problem on their rig. Figure out which layer 
it is, so you only have to pack that data up. Since the issue is arising in 
AGG, flag the ticket to the AGG module. When you pack up your map file, 
remember to also pack up or strip out things like templates, font libraries, 
symbol libraries, etc. Ideally, copy the whole mess to a new path on your 
system ensure it does in fact run independently of the rest of your 
installation.

Best,

Paul

On 2010-01-29, at 2:11 PM, Roger André wrote:

 Hi Paul,
 
 Thanks for the advice. (Chris Schmidt suggested I do the same thing in IRC 
 yesterday, and I forgot to try it.)
 
 Below are the results of gdb.  It's fun to run, but uhm... not something I'm 
 readily able to decipher (yet).
 
 $ gdb /usr/lib/cgi-bin/mapserv
 GNU gdb (GDB) 7.0-ubuntu
 Copyright (C) 2009 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.  Type show copying
 and show warranty for details.
 This GDB was configured as i486-linux-gnu.
 For bug reporting instructions, please see:
 http://www.gnu.org/software/gdb/bugs/...
 Reading symbols from /usr/lib/cgi-bin/mapserv...done.
 (gdb) run 
 QUERY_STRING=map=/var/www/mapfiles/seattle.maplayers=roadsstyles=service=WMSwidth=256format=image/pngrequest=GetMapheight=256srs=EPSG:4326version=1.1.1bbox=-122.338256836,47.6586914062,-122.332763672,47.6641845703
 Starting program: /usr/lib/cgi-bin/mapserv 
 QUERY_STRING=map=/var/www/mapfiles/seattle.maplayers=roadsstyles=service=WMSwidth=256format=image/pngrequest=GetMapheight=256srs=EPSG:4326version=1.1.1bbox=-122.338256836,47.6586914062,-122.332763672,47.6641845703
 [Thread debugging using libthread_db enabled]
 
 Program received signal SIGSEGV, Segmentation fault.
 0x0740bbf2 in ?? () from /lib/tls/i686/cmov/libc.so.6
 (gdb) bt
 #0  0x0740bbf2 in ?? () from /lib/tls/i686/cmov/libc.so.6
 #1  0x0740d868 in malloc () from /lib/tls/i686/cmov/libc.so.6
 #2  0x006abbb7 in operator new(unsigned int) () from /usr/lib/libstdc++.so.6
 #3  0x006abced in operator new[](unsigned int) () from /usr/lib/libstdc++.so.6
 #4  0x080dbdd5 in void 
 mapserver::render_scanlinesmapserver::rasterizer_scanline_aamapserver::rasterizer_sl_clipmapserver::ras_conv_int
  , mapserver::scanline_u8, 
 mapserver::renderer_scanline_aa_solidmapserver::renderer_basemapserver::pixfmt_alpha_blend_rgbamapserver::blender_rgba_premapserver::rgba8,
  mapserver::order_bgra, mapserv_row_ptr_cacheint, int   
 (mapserver::rasterizer_scanline_aamapserver::rasterizer_sl_clipmapserver::ras_conv_int
  , mapserver::scanline_u8, 
 mapserver::renderer_scanline_aa_solidmapserver::renderer_basemapserver::pixfmt_alpha_blend_rgbamapserver::blender_rgba_premapserver::rgba8,
  mapserver::order_bgra, mapserv_row_ptr_cacheint, int  ) ()
 #5  0x080ba7ac in T.1744 ()
 #6  0x080bdbda in msDrawShadeSymbolAGG ()
 #7  0x0813b3d2 in msDrawShadeSymbol ()
 #8  0x0809ff17 in msDrawShape ()
 #9  0x080a2cfe in msDrawVectorLayer ()
 #10 0x080a343d in msDrawLayer ()
 #11 0x080a4fd7 in msDrawMap ()
 #12 0x08157d82 in msWMSGetMap ()
 #13 0x0815cf36 in msWMSDispatch ()
 #14 0x080e9924 in msOWSDispatch ()
 #15 0x08056583 in main ()
 (gdb) 
 
 Roger
 --
 
 On Fri, Jan 29, 2010 at 1:38 PM, Paul Ramsey pram...@opengeo.org wrote:
 Roger,
 
 It looks like you're on Linux, so pull a stacktrace, it's fun!
 
 gdb /path/to/mapserv
 
 ... lots of info ...
 
 (gdb) run 
 QUERY_STRING=map=/var/www/mapfiles/seattle.maplayers=roadsstyles=service=WMSwidth=256format=image/pngrequest=GetMapheight=256srs=EPSG:4326version=1.1.1bbox=-122.338256836,47.6586914062,-122.332763672,47.6641845703
 
 then when you hit to segfault, do
 
 (gdb) bt
 
 bt stands for backtrace
 
 now you'll have a lot more useful information about what went wrong,
 
 Yours,
 
 Paul
 
 On Fri, Jan 29, 2010 at 1:27 PM, Roger André ran...@gmail.com wrote:
  Hi All,
 
  I'm experiencing some strange behavior that I would appreciate some help
  testing.  My MapServer 5.6 instance is segfaulting in response to certain
  WMS requests it is receiving from TileCache.  Below is one of the specific
  requests:
 
  http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/seattle.maplayers=roadsstyles=service=WMSwidth=256format=image/pngrequest=GetMapheight=256srs=EPSG:4326version=1.1.1bbox=-122.338256836,47.6586914062,-122.332763672,47.6641845703
 
  I'd appreciate it if someone who has a layer that covers Seattle would try
  the bbox extents listed above and report back if it causes an error for
  them.
 
  FYI - When I set this bbox as the EXTENTS in my MAP, and the SIZE to 256
  256, Mapserver delivers the image without any problem.
 
  Thanks,
 
  Roger
 
  ___
  mapserver-users mailing list
  

RE: [mapserver-users] C# query method

2010-01-29 Thread Lime, Steve D (DNR)
The queryByAttribute method essentially creates a custom filter (first 
preserving the old one) and then hands things off to the underlying driver.  
For that reason it can't apply the existing filter. All the other methods will 
honor the existing filter in the same way drawing does. The point, rect or 
shape filtering happens after the filter is applied by the driver...

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Murty Maganti
Sent: Friday, January 29, 2010 1:51 PM
To: Lime, Steve D (DNR); Tamas Szekeres
Cc: mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] C# query method

Hi Steve/Tamas

Until now I was under the impression that I can't do a query by attributes and 
shape in a single call.  Hence I had written my code first to execute query by 
shape and append those results to query expression as IN clause and invoke 
queryByAttributes.

While doing some testing on oracle spatial layer, I found that queryByShape is 
actually honoring filter expression on the layer. Since this will be executed 
as a single call, I want to modify my code to call only queryByShape and set 
the query expression to filter.  This will improve overall time taken for the 
query execution but I want to make sure that his behavior is consistent across 
all data sets (providers).

Thanks
Murty

From: Lime, Steve D (DNR) [mailto:steve.l...@state.mn.us]
Sent: Friday, January 29, 2010 2:27 PM
To: Tamas Szekeres; Murty Maganti
Cc: mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] C# query method

The one notable exception is the queryByAttribute method. It definitely ignores 
the existing filter.

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Tamas Szekeres
Sent: Friday, January 29, 2010 12:32 PM
To: Murty Maganti
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] C# query method

Murty,

It's up to the driver how the filter is actually used, but the query methods 
should normally use the specified filter setting to limit the shapes retrieved 
from the data source.

Best regards,

Tamas
2010/1/29 Murty Maganti mmaga...@oriongis.commailto:mmaga...@oriongis.com
Hi

I want to know if a layer's filter (set using layerObj.setFilter method) is 
used while executing any of the query methods on a layer like queryByShape, 
queryByAttributes, queryByRect etc.

Thanks
Murty

___
mapserver-users mailing list
mapserver-users@lists.osgeo.orgmailto: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] javscript controls for Zoom and Pan

2010-01-29 Thread Lime, Steve D (DNR)
I guess you'd need to be specific on what you mean by javascript control for 
this. Typically this means moving from a form-based interface where the whole 
page refreshes to one where most of the work happens on the client and 
MapServer is just used to respond to image or query requests. While you *could* 
write your own I think it's much more productive to look at one of the 
frameworks out there, of which a couple have already been mentioned. 
Personally, I'm a big OpenLayers fan with an OL client fronting MapServer-based 
services.  Also, as a php user p.mapper (http://www.pmapper.net/) may be off 
interest and there are others. -Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Matías Manuel 
Grandi
Sent: Friday, January 29, 2010 11:51 AM
To: Christian Jauvin
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] javscript controls for Zoom and Pan


El 29 de enero de 2010 13:46, Christian Jauvin 
cjau...@gmail.commailto:cjau...@gmail.com escribió:
Hi Matias,

I will take the occasion to suggest that you also take a look at
Dracones, a new framework I recently released for MapServer, which
provides easy handling of basic mapping services like pan and zoom,
among other things:

http://surveillance.mcgill.ca/dracones/

Best,

Christian


2010/1/29 Matías Manuel Grandi 
matiasgra...@gmail.commailto:matiasgra...@gmail.com:
 Hi friends!
 I am just starting with mapserver, it's great!
 I have a site with phpmapscript and posgis databases. I want to change the
 traditional zoom and pan forms controls and add some javascript control for
 this.
 Is there any script ready to use to add to my site so my controls look
 nicer?

 Thx!
 Mato.-

 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users


Thanks for both answers. But I was looking for something simple. Just a piece 
of code to replace de old-fashioned zoom and pan form controls.
Do something simple exist or I have to start thinking in moving to a mapserver 
framework?

Thx!
Mato.-
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] How to serve individual RAW binary Bands fromWCS as floating point geotiff

2010-01-29 Thread Lime, Steve D (DNR)
Is this link of help?

  http://mapserver.org/input/raster.html#special-processing-directives

There's a directive to extract a single band from an n-band image...

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Peter Willis
Sent: Friday, January 29, 2010 10:41 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] How to serve individual RAW binary Bands fromWCS 
as floating point geotiff

Hello,

Interesting... The documentation indicates:

RangeSubset=contents:nearest[Band[120]]

I tried what you suggest but continue to have the same problem.
The mapserver *did not* complain about 'RESAMPLE=BILINEARBand=120'
so I guess we can assume that those parameters work.

Peter


Rahkonen Jukka wrote:
 Hi,
 
 I have never used this myself: RangeSubset=contents:nearest[Band[120]]
 Is that WCS 1.0.0 parameter?  For selecting bands from WCS 1.0.0 service I 
 have been using something like 
 RESAMPLE=BILINEARBand=4
 
 -Jukka Rahkonen-
 
 
 -Alkuperäinen viesti-
 Lähettäjä: mapserver-users-boun...@lists.osgeo.org puolesta: Peter Willis
 Lähetetty: pe 29.1.2010 0:26
 Vastaanottaja: mapserver-users@lists.osgeo.org
 Aihe: Re: [mapserver-users] How to serve individual RAW binary Bands fromWCS 
 as floating point geotiff
  
 Hello,
 
 The definition of GEOTIFF_FLOAT is as follows:
 
 OUTPUTFORMAT
NAME GEOTIFF_FLOAT
DRIVER GDAL/GTiff
MIMETYPE application/octet-stream
IMAGEMODE FLOAT32
 END
 
 I Added the MIMETYPE as shown to ensure that web browsers
 would ask to save the file rather than just open it in an
 image viewer from a temp file. (MS Windows...)
 
 That part works fine.
 
 
 Mostly I am concerned with extracting a specific 'band'
 from the multi-band file. The server serves floating point
 geotiff just fine.
 
 Peter
 
 
 Rahkonen Jukka wrote:
 Hi,

 How have you defined the OUTPUTFORMAT for GEOTIFF_FLOAT?

 -Jukka Rahkonen-


 Peter Willis wrote:

  
 Hello,
 I have been setting up a WCS map file for mapserver.
 PROBLEM:
 Problems arise when rasters are defined
 as follows:
 LAYER
NAME SomeDataChannel120
STATUS OFF
DEBUG ON
TYPE RASTER ### required
PROCESSING BANDS=120
METADATA
  wcs_label   Data/stuff
  wcs_rangeset_name   'bands'
  wcs_rangeset_label  Stuff thats mapped
  ows_extent '-135 55 -121 46'
  wcs_resolution '0.08332 -0.083332'
  ows_srs 'EPSG:4326'
  wcs_srs 'EPSG:4326'
  wcs_formats 'GEOTIFF_FLOAT,GEOTIFF_INT16'
  wcs_nativeformat 'ENVI'
 #wcs_bandcount '563'
  wcs_rangeset_axes 'bands'
END
DATA /data/stuff.img
PROJECTION
  init=epsg:4623
END
DUMP TRUE ### required
 END


 I have  'wcs_bandcount'  commented out because mapserver
 causes an internal error in the web server if I define the
 band count.

 I get floating point geotiff served with the following client request:
 http://sparky.com/cgi-bin/wcs?REQUEST=GetCoverageSERVICE=WCSVERSION=1.0.0COVERAGE=SomeDataChannel120CRS=EPSG:4326BBOX=-135,55,-121,46WIDTH=432HEIGHT=216FORMAT=GEOTIFF_FLOATRangeSubset=contents:nearest[Band[120]]

 ..however, I always only get the first band from the img file


 QUESTIONS:

 Is there a problem with this setup?

 Do I need to define each band as a layer in the mapfile
 or will mapserver WCS allow the client to request a single
 channel?

 Thanks for any enlightenment,

 Peter
 ___
 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


Re: [mapserver-users] Need help testing WMS segfault

2010-01-29 Thread Roger André
Hi Paul,

Ok.  I'll see if I can replicate the problem with a single data layer, and
will then package everything together so another developer can run it.

Thanks,

Roger
--

On Fri, Jan 29, 2010 at 2:16 PM, Paul Ramsey pram...@opengeo.org wrote:

 Lovely, Another AGG bug. Well the next thing is to package up your
 environment so a developer can duplicate the problem on their rig. Figure
 out which layer it is, so you only have to pack that data up. Since the
 issue is arising in AGG, flag the ticket to the AGG module. When you pack up
 your map file, remember to also pack up or strip out things like templates,
 font libraries, symbol libraries, etc. Ideally, copy the whole mess to a new
 path on your system ensure it does in fact run independently of the rest of
 your installation.

 Best,

 Paul

 On 2010-01-29, at 2:11 PM, Roger André wrote:

 Hi Paul,

 Thanks for the advice. (Chris Schmidt suggested I do the same thing in IRC
 yesterday, and I forgot to try it.)

 Below are the results of gdb.  It's fun to run, but uhm... not something
 I'm readily able to decipher (yet).

 $ gdb /usr/lib/cgi-bin/mapserv
 GNU gdb (GDB) 7.0-ubuntu
 Copyright (C) 2009 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later 
 http://gnu.org/licenses/gpl.html
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.  Type show copying
 and show warranty for details.
 This GDB was configured as i486-linux-gnu.
 For bug reporting instructions, please see:
 http://www.gnu.org/software/gdb/bugs/...
 Reading symbols from /usr/lib/cgi-bin/mapserv...done.
 (gdb) run
 QUERY_STRING=map=/var/www/mapfiles/seattle.maplayers=roadsstyles=service=WMSwidth=256format=image/pngrequest=GetMapheight=256srs=EPSG:4326version=1.1.1bbox=-122.338256836,47.6586914062,-122.332763672,47.6641845703
 Starting program: /usr/lib/cgi-bin/mapserv
 QUERY_STRING=map=/var/www/mapfiles/seattle.maplayers=roadsstyles=service=WMSwidth=256format=image/pngrequest=GetMapheight=256srs=EPSG:4326version=1.1.1bbox=-122.338256836,47.6586914062,-122.332763672,47.6641845703
 [Thread debugging using libthread_db enabled]

 Program received signal SIGSEGV, Segmentation fault.
 0x0740bbf2 in ?? () from /lib/tls/i686/cmov/libc.so.6
 (gdb) bt
 #0  0x0740bbf2 in ?? () from /lib/tls/i686/cmov/libc.so.6
 #1  0x0740d868 in malloc () from /lib/tls/i686/cmov/libc.so.6
 #2  0x006abbb7 in operator new(unsigned int) () from
 /usr/lib/libstdc++.so.6
 #3  0x006abced in operator new[](unsigned int) () from
 /usr/lib/libstdc++.so.6
 #4  0x080dbdd5 in void
 mapserver::render_scanlinesmapserver::rasterizer_scanline_aamapserver::rasterizer_sl_clipmapserver::ras_conv_int
 , mapserver::scanline_u8,
 mapserver::renderer_scanline_aa_solidmapserver::renderer_basemapserver::pixfmt_alpha_blend_rgbamapserver::blender_rgba_premapserver::rgba8,
 mapserver::order_bgra, mapserv_row_ptr_cacheint, int  
 (mapserver::rasterizer_scanline_aamapserver::rasterizer_sl_clipmapserver::ras_conv_int
 , mapserver::scanline_u8,
 mapserver::renderer_scanline_aa_solidmapserver::renderer_basemapserver::pixfmt_alpha_blend_rgbamapserver::blender_rgba_premapserver::rgba8,
 mapserver::order_bgra, mapserv_row_ptr_cacheint, int  ) ()
 #5  0x080ba7ac in T.1744 ()
 #6  0x080bdbda in msDrawShadeSymbolAGG ()
 #7  0x0813b3d2 in msDrawShadeSymbol ()
 #8  0x0809ff17 in msDrawShape ()
 #9  0x080a2cfe in msDrawVectorLayer ()
 #10 0x080a343d in msDrawLayer ()
 #11 0x080a4fd7 in msDrawMap ()
 #12 0x08157d82 in msWMSGetMap ()
 #13 0x0815cf36 in msWMSDispatch ()
 #14 0x080e9924 in msOWSDispatch ()
 #15 0x08056583 in main ()
 (gdb)

 Roger
 --

 On Fri, Jan 29, 2010 at 1:38 PM, Paul Ramsey pram...@opengeo.org wrote:

 Roger,

 It looks like you're on Linux, so pull a stacktrace, it's fun!

 gdb /path/to/mapserv

 ... lots of info ...

 (gdb) run
 QUERY_STRING=map=/var/www/mapfiles/seattle.maplayers=roadsstyles=service=WMSwidth=256format=image/pngrequest=GetMapheight=256srs=EPSG:4326version=1.1.1bbox=-122.338256836,47.6586914062,-122.332763672,47.6641845703

 then when you hit to segfault, do

 (gdb) bt

 bt stands for backtrace

 now you'll have a lot more useful information about what went wrong,

 Yours,

 Paul

 On Fri, Jan 29, 2010 at 1:27 PM, Roger André ran...@gmail.com wrote:
  Hi All,
 
  I'm experiencing some strange behavior that I would appreciate some help
  testing.  My MapServer 5.6 instance is segfaulting in response to
 certain
  WMS requests it is receiving from TileCache.  Below is one of the
 specific
  requests:
 
 
 http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/seattle.maplayers=roadsstyles=service=WMSwidth=256format=image/pngrequest=GetMapheight=256srs=EPSG:4326version=1.1.1bbox=-122.338256836,47.6586914062,-122.332763672,47.6641845703
 
  I'd appreciate it if someone who has a layer that covers Seattle would
 try
  the bbox extents listed above and report back if it causes an error for
  them.
 
  FYI - When I set this bbox 

RE: [mapserver-users] arithmethic rotation values

2010-01-29 Thread Lime, Steve D (DNR)
Only option (w/shapefile) is to add a new field and do a conversion...

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Sven Schroeter
Sent: Friday, January 29, 2010 8:58 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] arithmethic rotation values

Hi,
I have this layer:

LAYER
  NAME kanal_fliess_haltung
  TYPE point
  STATUS on
  DATA kanal/Fliesspfeil.shp
  CLASS 
   STYLE  
SYMBOL 'triangle'
SIZE 10
COLOR 0 0 0
ANGLE [Drehung]
   END
 END
END

In my ange-field there are arithmethic rotation values, not geographic.
So my symbol gets the wrong rotation. Any idea to solve the problem?

Thanks
Sven


___
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] How to serve individual RAW binary Bands fromWCS as floating point geotiff

2010-01-29 Thread Peter Willis

Hello,

Thanks. I have the following line in the map file LAYER declaration:

PROCESSING BANDS=120

In any case, the current configuration gives me a floating point geotiff
that is all zeros. I know that band 120 of the file has non-zero double 
precision data in it.


Maybe it's a byte ordering problem

Peter



Lime, Steve D (DNR) wrote:

Is this link of help?

  http://mapserver.org/input/raster.html#special-processing-directives

There's a directive to extract a single band from an n-band image...

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Peter Willis
Sent: Friday, January 29, 2010 10:41 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] How to serve individual RAW binary Bands fromWCS 
as floating point geotiff

Hello,

Interesting... The documentation indicates:

RangeSubset=contents:nearest[Band[120]]

I tried what you suggest but continue to have the same problem.
The mapserver *did not* complain about 'RESAMPLE=BILINEARBand=120'
so I guess we can assume that those parameters work.

Peter


Rahkonen Jukka wrote:

Hi,

I have never used this myself: RangeSubset=contents:nearest[Band[120]]
Is that WCS 1.0.0 parameter?  For selecting bands from WCS 1.0.0 service I have been using something like 
RESAMPLE=BILINEARBand=4


-Jukka Rahkonen-


-Alkuperäinen viesti-
Lähettäjä: mapserver-users-boun...@lists.osgeo.org puolesta: Peter Willis
Lähetetty: pe 29.1.2010 0:26
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: Re: [mapserver-users] How to serve individual RAW binary Bands fromWCS as 
floating point geotiff
 
Hello,


The definition of GEOTIFF_FLOAT is as follows:

OUTPUTFORMAT
   NAME GEOTIFF_FLOAT
   DRIVER GDAL/GTiff
   MIMETYPE application/octet-stream
   IMAGEMODE FLOAT32
END

I Added the MIMETYPE as shown to ensure that web browsers
would ask to save the file rather than just open it in an
image viewer from a temp file. (MS Windows...)

That part works fine.


Mostly I am concerned with extracting a specific 'band'
from the multi-band file. The server serves floating point
geotiff just fine.

Peter


Rahkonen Jukka wrote:

Hi,

How have you defined the OUTPUTFORMAT for GEOTIFF_FLOAT?

-Jukka Rahkonen-


Peter Willis wrote:

 

Hello,
I have been setting up a WCS map file for mapserver.
PROBLEM:
Problems arise when rasters are defined
as follows:

LAYER
   NAME SomeDataChannel120
   STATUS OFF
   DEBUG ON
   TYPE RASTER ### required
   PROCESSING BANDS=120
   METADATA
 wcs_label   Data/stuff
 wcs_rangeset_name   'bands'
 wcs_rangeset_label  Stuff thats mapped
 ows_extent '-135 55 -121 46'
 wcs_resolution '0.08332 -0.083332'
 ows_srs 'EPSG:4326'
 wcs_srs 'EPSG:4326'
 wcs_formats 'GEOTIFF_FLOAT,GEOTIFF_INT16'
 wcs_nativeformat 'ENVI'
#wcs_bandcount '563'
 wcs_rangeset_axes 'bands'
   END
   DATA /data/stuff.img
   PROJECTION
 init=epsg:4623
   END
   DUMP TRUE ### required
END


I have  'wcs_bandcount'  commented out because mapserver
causes an internal error in the web server if I define the
band count.

I get floating point geotiff served with the following client request:
http://sparky.com/cgi-bin/wcs?REQUEST=GetCoverageSERVICE=WCSVERSION=1.0.0COVERAGE=SomeDataChannel120CRS=EPSG:4326BBOX=-135,55,-121,46WIDTH=432HEIGHT=216FORMAT=GEOTIFF_FLOATRangeSubset=contents:nearest[Band[120]]

..however, I always only get the first band from the img file


QUESTIONS:

Is there a problem with this setup?

Do I need to define each band as a layer in the mapfile
or will mapserver WCS allow the client to request a single
channel?

Thanks for any enlightenment,

Peter

___
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


Re: [mapserver-users] Need help testing WMS segfault

2010-01-29 Thread Roger André
Alright, I've clipped the data sets down to areas just slightly larger than
the WMS bbox, cleaned up the map file, and replicated the WMS to make sure
that it still breaks.  The tgz file that contains the mapfile and 2
shapefiles is just under 5 MB.  Where should I file the bug, and can I
attach the data to the bug?

Thanks,

Roger
--



On Fri, Jan 29, 2010 at 2:57 PM, Roger André ran...@gmail.com wrote:

 Hi Paul,

 Ok.  I'll see if I can replicate the problem with a single data layer, and
 will then package everything together so another developer can run it.

 Thanks,

 Roger
 --


 On Fri, Jan 29, 2010 at 2:16 PM, Paul Ramsey pram...@opengeo.org wrote:

 Lovely, Another AGG bug. Well the next thing is to package up your
 environment so a developer can duplicate the problem on their rig. Figure
 out which layer it is, so you only have to pack that data up. Since the
 issue is arising in AGG, flag the ticket to the AGG module. When you pack up
 your map file, remember to also pack up or strip out things like templates,
 font libraries, symbol libraries, etc. Ideally, copy the whole mess to a new
 path on your system ensure it does in fact run independently of the rest of
 your installation.

 Best,

 Paul

 On 2010-01-29, at 2:11 PM, Roger André wrote:

 Hi Paul,

 Thanks for the advice. (Chris Schmidt suggested I do the same thing in IRC
 yesterday, and I forgot to try it.)

 Below are the results of gdb.  It's fun to run, but uhm... not something
 I'm readily able to decipher (yet).

 $ gdb /usr/lib/cgi-bin/mapserv
 GNU gdb (GDB) 7.0-ubuntu
 Copyright (C) 2009 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later 
 http://gnu.org/licenses/gpl.html
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.  Type show copying
 and show warranty for details.
 This GDB was configured as i486-linux-gnu.
 For bug reporting instructions, please see:
 http://www.gnu.org/software/gdb/bugs/...
 Reading symbols from /usr/lib/cgi-bin/mapserv...done.
 (gdb) run
 QUERY_STRING=map=/var/www/mapfiles/seattle.maplayers=roadsstyles=service=WMSwidth=256format=image/pngrequest=GetMapheight=256srs=EPSG:4326version=1.1.1bbox=-122.338256836,47.6586914062,-122.332763672,47.6641845703
 Starting program: /usr/lib/cgi-bin/mapserv
 QUERY_STRING=map=/var/www/mapfiles/seattle.maplayers=roadsstyles=service=WMSwidth=256format=image/pngrequest=GetMapheight=256srs=EPSG:4326version=1.1.1bbox=-122.338256836,47.6586914062,-122.332763672,47.6641845703
 [Thread debugging using libthread_db enabled]

 Program received signal SIGSEGV, Segmentation fault.
 0x0740bbf2 in ?? () from /lib/tls/i686/cmov/libc.so.6
 (gdb) bt
 #0  0x0740bbf2 in ?? () from /lib/tls/i686/cmov/libc.so.6
 #1  0x0740d868 in malloc () from /lib/tls/i686/cmov/libc.so.6
 #2  0x006abbb7 in operator new(unsigned int) () from
 /usr/lib/libstdc++.so.6
 #3  0x006abced in operator new[](unsigned int) () from
 /usr/lib/libstdc++.so.6
 #4  0x080dbdd5 in void
 mapserver::render_scanlinesmapserver::rasterizer_scanline_aamapserver::rasterizer_sl_clipmapserver::ras_conv_int
 , mapserver::scanline_u8,
 mapserver::renderer_scanline_aa_solidmapserver::renderer_basemapserver::pixfmt_alpha_blend_rgbamapserver::blender_rgba_premapserver::rgba8,
 mapserver::order_bgra, mapserv_row_ptr_cacheint, int  
 (mapserver::rasterizer_scanline_aamapserver::rasterizer_sl_clipmapserver::ras_conv_int
 , mapserver::scanline_u8,
 mapserver::renderer_scanline_aa_solidmapserver::renderer_basemapserver::pixfmt_alpha_blend_rgbamapserver::blender_rgba_premapserver::rgba8,
 mapserver::order_bgra, mapserv_row_ptr_cacheint, int  ) ()
 #5  0x080ba7ac in T.1744 ()
 #6  0x080bdbda in msDrawShadeSymbolAGG ()
 #7  0x0813b3d2 in msDrawShadeSymbol ()
 #8  0x0809ff17 in msDrawShape ()
 #9  0x080a2cfe in msDrawVectorLayer ()
 #10 0x080a343d in msDrawLayer ()
 #11 0x080a4fd7 in msDrawMap ()
 #12 0x08157d82 in msWMSGetMap ()
 #13 0x0815cf36 in msWMSDispatch ()
 #14 0x080e9924 in msOWSDispatch ()
 #15 0x08056583 in main ()
 (gdb)

 Roger
 --

 On Fri, Jan 29, 2010 at 1:38 PM, Paul Ramsey pram...@opengeo.org wrote:

 Roger,

 It looks like you're on Linux, so pull a stacktrace, it's fun!

 gdb /path/to/mapserv

 ... lots of info ...

 (gdb) run
 QUERY_STRING=map=/var/www/mapfiles/seattle.maplayers=roadsstyles=service=WMSwidth=256format=image/pngrequest=GetMapheight=256srs=EPSG:4326version=1.1.1bbox=-122.338256836,47.6586914062,-122.332763672,47.6641845703

 then when you hit to segfault, do

 (gdb) bt

 bt stands for backtrace

 now you'll have a lot more useful information about what went wrong,

 Yours,

 Paul

 On Fri, Jan 29, 2010 at 1:27 PM, Roger André ran...@gmail.com wrote:
  Hi All,
 
  I'm experiencing some strange behavior that I would appreciate some
 help
  testing.  My MapServer 5.6 instance is segfaulting in response to
 certain
  WMS requests it is receiving from TileCache.  Below is one of the
 specific
  requests:
 
 
 

Re: [mapserver-users] Need help testing WMS segfault

2010-01-29 Thread Paul Ramsey
File bug in trac

http://trac.osgeo.org/mapserver

With a 5mb attachement, you might need to separately upload it somewhere and 
post a URL, not sure what the attachment max size is for osgeo trac.

P

On 2010-01-29, at 4:40 PM, Roger André wrote:

 Alright, I've clipped the data sets down to areas just slightly larger than 
 the WMS bbox, cleaned up the map file, and replicated the WMS to make sure 
 that it still breaks.  The tgz file that contains the mapfile and 2 
 shapefiles is just under 5 MB.  Where should I file the bug, and can I attach 
 the data to the bug?
 
 Thanks,
 
 Roger
 --
 
 
 
 On Fri, Jan 29, 2010 at 2:57 PM, Roger André ran...@gmail.com wrote:
 Hi Paul,
 
 Ok.  I'll see if I can replicate the problem with a single data layer, and 
 will then package everything together so another developer can run it.
 
 Thanks,
 
 Roger
 --
 
 
 On Fri, Jan 29, 2010 at 2:16 PM, Paul Ramsey pram...@opengeo.org wrote:
 Lovely, Another AGG bug. Well the next thing is to package up your 
 environment so a developer can duplicate the problem on their rig. Figure out 
 which layer it is, so you only have to pack that data up. Since the issue is 
 arising in AGG, flag the ticket to the AGG module. When you pack up your map 
 file, remember to also pack up or strip out things like templates, font 
 libraries, symbol libraries, etc. Ideally, copy the whole mess to a new path 
 on your system ensure it does in fact run independently of the rest of your 
 installation.
 
 Best,
 
 Paul
 
 On 2010-01-29, at 2:11 PM, Roger André wrote:
 
 Hi Paul,
 
 Thanks for the advice. (Chris Schmidt suggested I do the same thing in IRC 
 yesterday, and I forgot to try it.)
 
 Below are the results of gdb.  It's fun to run, but uhm... not something I'm 
 readily able to decipher (yet).
 
 $ gdb /usr/lib/cgi-bin/mapserv
 GNU gdb (GDB) 7.0-ubuntu
 Copyright (C) 2009 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.  Type show copying
 and show warranty for details.
 This GDB was configured as i486-linux-gnu.
 For bug reporting instructions, please see:
 http://www.gnu.org/software/gdb/bugs/...
 Reading symbols from /usr/lib/cgi-bin/mapserv...done.
 (gdb) run 
 QUERY_STRING=map=/var/www/mapfiles/seattle.maplayers=roadsstyles=service=WMSwidth=256format=image/pngrequest=GetMapheight=256srs=EPSG:4326version=1.1.1bbox=-122.338256836,47.6586914062,-122.332763672,47.6641845703
 Starting program: /usr/lib/cgi-bin/mapserv 
 QUERY_STRING=map=/var/www/mapfiles/seattle.maplayers=roadsstyles=service=WMSwidth=256format=image/pngrequest=GetMapheight=256srs=EPSG:4326version=1.1.1bbox=-122.338256836,47.6586914062,-122.332763672,47.6641845703
 [Thread debugging using libthread_db enabled]
 
 Program received signal SIGSEGV, Segmentation fault.
 0x0740bbf2 in ?? () from /lib/tls/i686/cmov/libc.so.6
 (gdb) bt
 #0  0x0740bbf2 in ?? () from /lib/tls/i686/cmov/libc.so.6
 #1  0x0740d868 in malloc () from /lib/tls/i686/cmov/libc.so.6
 #2  0x006abbb7 in operator new(unsigned int) () from /usr/lib/libstdc++.so.6
 #3  0x006abced in operator new[](unsigned int) () from 
 /usr/lib/libstdc++.so.6
 #4  0x080dbdd5 in void 
 mapserver::render_scanlinesmapserver::rasterizer_scanline_aamapserver::rasterizer_sl_clipmapserver::ras_conv_int
  , mapserver::scanline_u8, 
 mapserver::renderer_scanline_aa_solidmapserver::renderer_basemapserver::pixfmt_alpha_blend_rgbamapserver::blender_rgba_premapserver::rgba8,
  mapserver::order_bgra, mapserv_row_ptr_cacheint, int   
 (mapserver::rasterizer_scanline_aamapserver::rasterizer_sl_clipmapserver::ras_conv_int
  , mapserver::scanline_u8, 
 mapserver::renderer_scanline_aa_solidmapserver::renderer_basemapserver::pixfmt_alpha_blend_rgbamapserver::blender_rgba_premapserver::rgba8,
  mapserver::order_bgra, mapserv_row_ptr_cacheint, int  ) ()
 #5  0x080ba7ac in T.1744 ()
 #6  0x080bdbda in msDrawShadeSymbolAGG ()
 #7  0x0813b3d2 in msDrawShadeSymbol ()
 #8  0x0809ff17 in msDrawShape ()
 #9  0x080a2cfe in msDrawVectorLayer ()
 #10 0x080a343d in msDrawLayer ()
 #11 0x080a4fd7 in msDrawMap ()
 #12 0x08157d82 in msWMSGetMap ()
 #13 0x0815cf36 in msWMSDispatch ()
 #14 0x080e9924 in msOWSDispatch ()
 #15 0x08056583 in main ()
 (gdb) 
 
 Roger
 --
 
 On Fri, Jan 29, 2010 at 1:38 PM, Paul Ramsey pram...@opengeo.org wrote:
 Roger,
 
 It looks like you're on Linux, so pull a stacktrace, it's fun!
 
 gdb /path/to/mapserv
 
 ... lots of info ...
 
 (gdb) run 
 QUERY_STRING=map=/var/www/mapfiles/seattle.maplayers=roadsstyles=service=WMSwidth=256format=image/pngrequest=GetMapheight=256srs=EPSG:4326version=1.1.1bbox=-122.338256836,47.6586914062,-122.332763672,47.6641845703
 
 then when you hit to segfault, do
 
 (gdb) bt
 
 bt stands for backtrace
 
 now you'll have a lot more useful information about what went wrong,
 
 Yours,
 
 Paul
 
 On Fri, Jan 29, 2010 at 

Re: [mapserver-users] Need help testing WMS segfault

2010-01-29 Thread Roger André
sigh  I'm an idiot.  Total size is much smaller.
72Kagg_wms_segfault.tar.gz

Paul, you'll appreciate this.  The file is much smaller when you do this:

$ ogr2ogr parcel_clip.shp PG:host=localhost dbname=foo \
   -sql SELECT
 parcel_id,
 import_exp,
 external_i,
 ST_Intersection('SRID=4326;POLYGON((-122.339256836
47.6576914062,

-122.331763672 47.6576914062,

-122.331763672 47.6651845703,

 -122.339256836 47.6651845703,

-122.339256836 47.6576914062))', the_geom)
  FROM parcel
  WHERE 'SRID=4326;POLYGON((-122.339256836 47.6576914062,
   -122.331763672
47.6576914062,
   -122.331763672
47.6651845703,
   -122.339256836
47.6651845703,
   -122.339256836
47.6576914062))'
   the_geom \
   -nlt POLYGON

instead of just:

$ ogr2ogr parcel_clip.shp PG:host=localhost dbname=foo \
   -sql SELECT
 parcel_id,
 import_exp,
 external_i,
 ST_Intersection('SRID=4326;POLYGON((-122.339256836
47.6576914062,

-122.331763672 47.6576914062,

-122.331763672 47.6651845703,

 -122.339256836 47.6651845703,

-122.339256836 47.6576914062))', the_geom)
  FROM parcel
   -nlt POLYGON

I'll file the bug now.

Roger
--



On Fri, Jan 29, 2010 at 4:42 PM, Paul Ramsey pram...@opengeo.org wrote:

 File bug in trac

 http://trac.osgeo.org/mapserver

 With a 5mb attachement, you might need to separately upload it somewhere
 and post a URL, not sure what the attachment max size is for osgeo trac.

 P

 On 2010-01-29, at 4:40 PM, Roger André wrote:

 Alright, I've clipped the data sets down to areas just slightly larger than
 the WMS bbox, cleaned up the map file, and replicated the WMS to make sure
 that it still breaks.  The tgz file that contains the mapfile and 2
 shapefiles is just under 5 MB.  Where should I file the bug, and can I
 attach the data to the bug?

 Thanks,

 Roger
 --



 On Fri, Jan 29, 2010 at 2:57 PM, Roger André ran...@gmail.com wrote:

 Hi Paul,

 Ok.  I'll see if I can replicate the problem with a single data layer, and
 will then package everything together so another developer can run it.

 Thanks,

 Roger
 --


 On Fri, Jan 29, 2010 at 2:16 PM, Paul Ramsey pram...@opengeo.org wrote:

 Lovely, Another AGG bug. Well the next thing is to package up your
 environment so a developer can duplicate the problem on their rig. Figure
 out which layer it is, so you only have to pack that data up. Since the
 issue is arising in AGG, flag the ticket to the AGG module. When you pack up
 your map file, remember to also pack up or strip out things like templates,
 font libraries, symbol libraries, etc. Ideally, copy the whole mess to a new
 path on your system ensure it does in fact run independently of the rest of
 your installation.

 Best,

 Paul

 On 2010-01-29, at 2:11 PM, Roger André wrote:

 Hi Paul,

 Thanks for the advice. (Chris Schmidt suggested I do the same thing in
 IRC yesterday, and I forgot to try it.)

 Below are the results of gdb.  It's fun to run, but uhm... not something
 I'm readily able to decipher (yet).

 $ gdb /usr/lib/cgi-bin/mapserv
 GNU gdb (GDB) 7.0-ubuntu
 Copyright (C) 2009 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later 
 http://gnu.org/licenses/gpl.html
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.  Type show
 copying
 and show warranty for details.
 This GDB was configured as i486-linux-gnu.
 For bug reporting instructions, please see:
 http://www.gnu.org/software/gdb/bugs/...
 Reading symbols from /usr/lib/cgi-bin/mapserv...done.
 (gdb) run
 QUERY_STRING=map=/var/www/mapfiles/seattle.maplayers=roadsstyles=service=WMSwidth=256format=image/pngrequest=GetMapheight=256srs=EPSG:4326version=1.1.1bbox=-122.338256836,47.6586914062,-122.332763672,47.6641845703
 Starting program: /usr/lib/cgi-bin/mapserv
 QUERY_STRING=map=/var/www/mapfiles/seattle.maplayers=roadsstyles=service=WMSwidth=256format=image/pngrequest=GetMapheight=256srs=EPSG:4326version=1.1.1bbox=-122.338256836,47.6586914062,-122.332763672,47.6641845703
 [Thread debugging using libthread_db enabled]

 Program received signal SIGSEGV, Segmentation fault.
 0x0740bbf2 in ?? () from /lib/tls/i686/cmov/libc.so.6
 (gdb) bt
 #0  0x0740bbf2 in ?? () from /lib/tls/i686/cmov/libc.so.6
 #1  0x0740d868 in malloc () from /lib/tls/i686/cmov/libc.so.6
 #2  0x006abbb7 in operator new(unsigned int) () from
 /usr/lib/libstdc++.so.6
 #3  0x006abced in operator new[](unsigned int) () from
 /usr/lib/libstdc++.so.6
 #4  0x080dbdd5 in void
 

Re: [mapserver-users] Need help testing WMS segfault

2010-01-29 Thread Paul Ramsey
Right here:
http://www.osgeo.org/osgeo_userid

On 2010-01-29, at 5:09 PM, Roger André wrote:

 It appears I need an OsGeo login with TICKET_CREATE privileges.  How do I 
 get one of those?
 --
 
 On Fri, Jan 29, 2010 at 5:04 PM, Roger André ran...@gmail.com wrote:
 sigh  I'm an idiot.  Total size is much smaller.
 72Kagg_wms_segfault.tar.gz
 
 Paul, you'll appreciate this.  The file is much smaller when you do this:
 
 $ ogr2ogr parcel_clip.shp PG:host=localhost dbname=foo \
-sql SELECT 
  parcel_id, 
  import_exp, 
  external_i, 
  ST_Intersection('SRID=4326;POLYGON((-122.339256836 
 47.6576914062, 
   
-122.331763672 47.6576914062, 
   
-122.331763672 47.6651845703,
   
-122.339256836 47.6651845703, 
   
-122.339256836 47.6576914062))', the_geom) 
   FROM parcel 
   WHERE 'SRID=4326;POLYGON((-122.339256836 47.6576914062, 
-122.331763672 
 47.6576914062, 
-122.331763672 
 47.6651845703, 
-122.339256836 
 47.6651845703, 
-122.339256836 
 47.6576914062))' 
the_geom \ 
-nlt POLYGON
 
 instead of just:
 
 $ ogr2ogr parcel_clip.shp PG:host=localhost dbname=foo \
-sql SELECT 
  parcel_id, 
  import_exp, 
  external_i, 
  ST_Intersection('SRID=4326;POLYGON((-122.339256836 
 47.6576914062, 
   
-122.331763672 47.6576914062, 
   
-122.331763672 47.6651845703,
   
-122.339256836 47.6651845703, 
   
-122.339256836 47.6576914062))', the_geom) 
   FROM parcel
-nlt POLYGON
 
 I'll file the bug now.
 
 Roger
 --
 
 
 
 
 On Fri, Jan 29, 2010 at 4:42 PM, Paul Ramsey pram...@opengeo.org wrote:
 File bug in trac
 
 http://trac.osgeo.org/mapserver
 
 With a 5mb attachement, you might need to separately upload it somewhere and 
 post a URL, not sure what the attachment max size is for osgeo trac.
 
 P
 
 On 2010-01-29, at 4:40 PM, Roger André wrote:
 
 Alright, I've clipped the data sets down to areas just slightly larger than 
 the WMS bbox, cleaned up the map file, and replicated the WMS to make sure 
 that it still breaks.  The tgz file that contains the mapfile and 2 
 shapefiles is just under 5 MB.  Where should I file the bug, and can I 
 attach the data to the bug?
 
 Thanks,
 
 Roger
 --
 
 
 
 On Fri, Jan 29, 2010 at 2:57 PM, Roger André ran...@gmail.com wrote:
 Hi Paul,
 
 Ok.  I'll see if I can replicate the problem with a single data layer, and 
 will then package everything together so another developer can run it.
 
 Thanks,
 
 Roger
 --
 
 
 On Fri, Jan 29, 2010 at 2:16 PM, Paul Ramsey pram...@opengeo.org wrote:
 Lovely, Another AGG bug. Well the next thing is to package up your 
 environment so a developer can duplicate the problem on their rig. Figure 
 out which layer it is, so you only have to pack that data up. Since the 
 issue is arising in AGG, flag the ticket to the AGG module. When you pack up 
 your map file, remember to also pack up or strip out things like templates, 
 font libraries, symbol libraries, etc. Ideally, copy the whole mess to a new 
 path on your system ensure it does in fact run independently of the rest of 
 your installation.
 
 Best,
 
 Paul
 
 On 2010-01-29, at 2:11 PM, Roger André wrote:
 
 Hi Paul,
 
 Thanks for the advice. (Chris Schmidt suggested I do the same thing in IRC 
 yesterday, and I forgot to try it.)
 
 Below are the results of gdb.  It's fun to run, but uhm... not something 
 I'm readily able to decipher (yet).
 
 $ gdb /usr/lib/cgi-bin/mapserv
 GNU gdb (GDB) 7.0-ubuntu
 Copyright (C) 2009 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later 
 http://gnu.org/licenses/gpl.html
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.  Type show copying
 and show warranty for details.
 This GDB was configured as i486-linux-gnu.
 For bug reporting instructions, please see:
 http://www.gnu.org/software/gdb/bugs/...
 Reading symbols from /usr/lib/cgi-bin/mapserv...done.
 (gdb) run