[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 -

[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

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-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?

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

[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

[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

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

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

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:

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

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:

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

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

[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:

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

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

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

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,

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

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

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

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:

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

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

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

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,

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