[mapserver-users] Spatial queries to Mapserver

2009-06-26 Thread Gabriel Messner
Hi all, Any one know of examples about how to call spatial queries using Postis functions from Mapserver? ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Spatial queries to Mapserver

2009-06-26 Thread Ben Madin
Gabriel, You need to add a layer with your query in it - you can use variable substitution etc. an example (may or may not be a good one!) : LAYER DEBUG 3 NAME buffalo GROUP Movement METADATA layer_title Buffalo layer_order 2

Re: [mapserver-users] geotransform

2009-06-26 Thread Charlotte Declercq
Thanks, ANNOTATION layer is really doing the job. Charlotte PS : thanks to Thomas Bonfort to for his help Steve Lime a écrit : You can also use an ANNOTATION layer to do something like this. Depends if you need a true centroid or not. Annotation layers use label points generated from an

[mapserver-users] What has changed between 5.2.X and 5.4.X?

2009-06-26 Thread frequens
I am sure a lot has changed, but I do experience some weird and not welcome changes in rendered images for which there is no explanation in the documentation. For my application of Cartoweb 3.5 I am using a mapfile with the following: OUTPUTFORMAT NAME 'AGG_Q' DRIVER AGG/PNG FORMATOPTION

[mapserver-users] PHP/Mapscript CLASS TEXT

2009-06-26 Thread Charlotte Declercq
Hello I have an annotation layer on which I want to be able to draw labels. Here is the layer : LAYER CLASSITEM Id_BDCarto CONNECTION Limites_administratives/Departement.TAB CONNECTIONTYPE OGR LABELITEM Nom_Département LABELMAXSCALEDENOM 1e+07 LABELMINSCALEDENOM 1990

[mapserver-users] getfeatureinfo problems

2009-06-26 Thread DeDuikertjes
Dear list, yesterday I reported problems with my WFS server. I could not fix that up till now. I have another possibly related problem. My WMS is set up allright, getcapabilities is ok, I can see the map, pan zoom, etc, no problems. When I do an Identify (GetFeatureInfo request), I get

Re: [mapserver-users] Spatial queries to Mapserver

2009-06-26 Thread Gabriel Messner
Thanks, I´ll digest it :-) 2009/6/26 Ben Madin b...@remoteinformation.com.au Gabriel, You need to add a layer with your query in it - you can use variable substitution etc. an example (may or may not be a good one!) : LAYER DEBUG 3 NAME buffalo GROUP

Re: [mapserver-users] getfeatureinfo problems

2009-06-26 Thread Rahkonen Jukka
Hi, Have you tried to run the SQL queries from logfile directly? I wonder if for example this part is correct and finds any data: WHERE (geoidn='geoidNL.IMRO.0026.SVBBU-0001') and (tc_vlak_geometry setSRID( 'BOX3D(155984.407968748 468982.233317728,156024.590926508

[mapserver-users] classification of a raster image is changing

2009-06-26 Thread Stefan Schantz
Hello list, I have the following problem with UMNMapserver 5.2: I have interpolated some data with gdal_grid. As the result I got a tiff file with one band. In the next step i classified the raster image in UMN Mapserver like this: (..) CLASS NAME = 12 h EXPRESSION ([pixel] 9 AND [pixel] =

Re: [mapserver-users] getfeatureinfo problems

2009-06-26 Thread DeDuikertjes
Jukka, Thank you, I've tried the SQL statement: DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(tc_vlak_geometry)),'NDR'),geoidn::text from NL.IMRO.0026.SVBBU-0001 WHERE (geoidn='geoidNL.IMRO.0026.SVBBU-0001') and (tc_vlak_geometry setSRID(

Re: [mapserver-users] getfeatureinfo problems

2009-06-26 Thread Bart van den Eijnden (OSGIS)
Hi, Mapserver needs an integer type column for the USING UNIQUE clause, not a string column. That won't work. Best regards, Bart DeDuikertjes wrote: Jukka, Thank you, I've tried the SQL statement: DECLARE mycursor BINARY CURSOR FOR SELECT

Re: [mapserver-users] javascript query template examples

2009-06-26 Thread Steve Lime
Responses inline... On 6/25/2009 at 4:59 PM, in message 20090625215916.ga11...@q.rho.net, Wendell Turner wend...@enflight.com wrote: On Thu, Jun 25, 2009 at 03:13:21PM -0500, Steve Lime wrote: Here's one example using new-style templating (recommend MapServer 5.4.1). I'm using 5.2.0.

Re: [mapserver-users] WFS returning empty features

2009-06-26 Thread DeDuikertjes
List, Thanks to Bart van den Eijnden the problem is solved. I used a using unique clause on a column which was unique, but not integer. So I now create my postgis tables with a CREAT TABLE WITH OIDS and I use a using unique oid clause in the DATA statement. As often, details do matter.

Re: [mapserver-users] getfeatureinfo problems

2009-06-26 Thread DeDuikertjes
List, Thanks to Bart van den Eijnden the problem is solved. I used a using unique clause on a column which was unique, but not integer. So I now create my postgis tables with a CREAT TABLE WITH OIDS and I use a using unique oid clause in the DATA statement. As often, details do matter.

Re: [mapserver-users] PHP/Mapscript CLASS TEXT

2009-06-26 Thread Daniel Morissette
Charlotte Declercq wrote: With TEXT = , the layer is drawn without the labels. If TEXT property is present, I am unable to draw the labels, because I can't remove the TEXT property and I can't find a way to write TEXT [attribute_name] with mapscript (do the binding as for example

Re: [mapserver-users] getfeatureinfo problems

2009-06-26 Thread David Nugent
On 26/6/09 11:10 PM, Bart van den Eijnden (OSGIS) wrote: Mapserver needs an integer type column for the USING UNIQUE clause, not a string column. That won't work. Actually, no it doesn't require an integer type column for the UNIQUE clause. I have used text fields in the past with mapserver